"use strict";this.default_kevlar_base=this.default_kevlar_base||{};(function(_){var window=this;
try{
_._F_toggles_initialize=function(J){(typeof globalThis!=="undefined"?globalThis:typeof self!=="undefined"?self:this)._F_toggles=J||[]};
(0,_._F_toggles_initialize)([0x1000000, 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 cr,Jqr,xfo,bQ,Pr,V2Q,rT,LG,D3,Wr,PQT,M2o,uQ,NTG,t2e,Um,CQR,ntt,TTT,bC,sR2,Loo,Woe,f3m,YmR,kZ,nQ,D_,WB,Ufr,zz,Smu,fQ,Z_,Gz,dft,Oa,R2,GDD,Aq3,RuG,BB,QRu,Jf,eut,b1,otG,xp,jRr,yq3,c8o,Ze,muR,bQf,xuf,V6T,PCt,Xs,BTG,u1,gtJ,J8J,CCu,kzq,HQm,$p,iQt,nZe,TLm,wBQ,s2m,Lj2,z_G,jh,Ya2,ZQG,Uue,$ue,Gze,l1,Je,EZJ,oZe,bR,Q2q,l_r,j2r,Vb,FjJ,xl,r8G,N0,CU,a_,Pw,Hw,gZT,y8m,BLr,w6,JfD,cfR,mRT,xRo,bru,zR,Vh2,P1Q,nU,puJ,NR3,q0,Iem,k4t,he,wuQ,KS3,rfQ,sFu,LS3,Y5r,zo2,E1,O1,Zro,URr,S5t,G4o,Roo,yfG,ceD,PRD,VU,pwR,t9e,tG,K1,
C1,kh,H0,W0,us,f1,iUG,hG,T63,s_t,oh,QU,D0T,j3,FH,ls,yU,zAt,u7G,f2J,Y12,Xw2,ZUT,q12,U0r,S1u,d0D,bL,mN,$0D,GRR,Elq,OUe,vlT,AeG,Il,olm,K6,kL,HR,iL,TG,eAr,sw,FTG,JGQ,DF,cGu,m2f,b1D,zG,x2m,V3J,f6,YL,p0D,ZF,Ixt,K_t,qM,axJ,CsR,k$D,H1R,i1q,nh2,hD,TaQ,w0D,d8,rGt,shr,$L,GG,Ew,vR,L_f,W_R,D2r,AD,uHu,fxe,Y$R,ol,et,jt,FX,lL,yu,BR,X0G,Z1J,q$t,U2f,S$e,h$o,d2e,$2q,G$J,Ehu,vhD,Jk,O1q,AGe,bK,R$R,Vr,Pm,ohD,jhu,F_2,lxJ,Baf,ghr,JD2,xM2,Vtf,PLT,Mt3,pRG,N8r,ttm,aFD,NA,kGe,H6G,i6e,nLq,T8e,wRu,slt,Swe,hNG,dMG,GGQ,ELe,iK,vLo,
TO,Qlm,eNG,jlG,FNQ,lFJ,yDG,B8f,gLr,Dd,ckJ,RND,mAo,bwR,xAq,VUo,PKt,MUf,pme,N7o,tUe,CK2,Kpq,HwD,ad3,kOf,T7D,wmT,rkJ,iwo,LpJ,n0Q,WpQ,Ez,zVf,vm,Ak,utt,Yzf,XmG,UAe,RVo,hVR,Szu,$AG,E0e,dAe,jwJ,Qwf,Fpe,ldD,ykT,B7D,g0e,cyr,Jyf,mi3,bco,xiu,VjG,Mjr,NmG,tj2,ISt,CdJ,K52,W53,lK,zeQ,fS3,Y7f,Xao,ZcT,q7D,S7J,heR,di2,bd,x9,$iQ,Ayr,pc,Ni,eeR,ja3,xse,XFG,aa,qs2,Uso,$sR,hGm,dsJ,wm,GLG,EBR,O2G,A$f,RG2,oBT,QDo,eGQ,jDt,Lc,l7T,B_R,y$J,caG,XZ,U7,b3u,x3D,VsR,PN2,MsR,pG3,tsu,KvQ,Icq,Qx,FZ,ld,WvT,zMt,cF,fcG,Ybt,mY,Z3q,XG2,vyu,
O3u,Aat,oye,FvQ,yaJ,BuJ,gy3,JLm,mUm,xUJ,VDu,PF,N3R,KGG,Cjt,a4J,koT,Hgr,I4o,p7t,MDJ,p2,Pj2,igG,T3e,LG3,rLm,ID,WGq,ubq,f4t,YOQ,X7o,kB,Zgu,UUD,qOf,SOt,dUT,TL,oKf,ekG,FGQ,yL3,B3Q,JUu,D7,zL,WF,xXR,gKG,Vfq,YB,NoR,qs,KLr,k7T,itQ,n$u,Toq,SA,w4T,rUQ,s6t,DXt,WLT,z2u,u_G,Ynu,d_,X4r,Ztr,GL,Os,SnJ,h2o,dXu,RD,E$u,v$e,AUt,BF,FL2,lC2,yUD,BoG,g$o,mv,xy,V6,Vgf,PG,P33,Mgu,pOf,Nv3,C3T,kBe,H4G,atG,p3,i42,rI3,N3,wOr,sNr,nHQ,LCm,K3,WC3,zwu,ucR,ftr,XOD,Yeq,Z4Q,Se3,qef,dzq,AIu,oHr,ewG,FCf,BvG,yIT,ltD,gHG,c5r,bN2,m8G,VEt,
PaQ,MEm,pyG,ze,I1q,tEQ,KeR,Ca2,f3,Yy,a12,HNr,nAQ,r5Q,Le2,s3G,Fk,D8t,iNQ,ZN2,q4T,U8r,JL,S4R,d8q,EAR,A5Q,ON2,eF2,j3T,FeQ,l1t,BPo,blr,gAf,c0D,ma2,xaq,VKT,MKJ,PkR,NKQ,pSo,Cg,tKu,KyT,CkQ,ilq,sO,Lg,n3t,TKm,D4,Lyq,fg,YK,Xb,uRT,Z4,XSe,SD,Zlq,qH3,Uae,SHf,$K,hmo,$aT,Gv2,v3q,A0J,Qz3,jzr,eD,Fye,lPR,y0e,BKR,g32,JST,cSt,mLt,lj,VHQ,PJu,MHr,pAG,NM2,tHe,IuR,K9T,CJq,au2,kmJ,HXt,iXo,x$,Y2o,XAu,VF,P4,MX,ZXe,q2R,ULt,S2D,hYr,dLq,$LR,ASQ,RYm,o2J,Qne,eYf,Ct,k$,H4,iO,wo,ro,sn,F92,DC,ySe,W4,BMr,g2J,z7,J7f,c7T,myu,IZD,CWq,
nYR,scJ,r7e,KAf,LAr,zED,vYJ,qG2,QcD,SG3,oYu,eEf,qX,FAm,Sf,y7q,Bft,JcD,ccr,mrJ,xrG,G7,Pqe,Mrf,pjr,NBe,trR,InR,KUR,Vro,kho,Hv3,iv3,v4,LUT,Drr,s1T,zgt,uBq,YT2,XjQ,fnJ,$ru,Ebt,OvJ,Rg2,go,lnG,FUJ,cOm,bsG,xEm,V5e,PMJ,M5f,p9Q,p4,isr,TU2,k1q,aht,nrR,t5f,rOe,qBq,DEQ,WqQ,z8t,AOu,orT,Osq,yOr,vro,NU2,lhT,LqR,ZsT,R8R,w9J,KqT,Iho,CMQ,Hse,Erq,Dt,KPm,aG3,kgD,H7J,i7R,zZJ,qvR,UlR,dv,hZT,Ggu,Ad2,O73,oVt,QA2,jAo,lGm,FPr,ydD,jg,BpG,gVe,cPD,JPu,Fc,MpR,PBo,VpR,ILf,pPJ,K$J,tpD,CBo,y5,aLo,nxf,Hqe,iqG,wP3,L$t,cy,zpq,Ddo,uGD,
Zqo,qiQ,hpo,$dt,V8,Py,OqQ,APt,M8,pN,Rp2,N8,t5,oxe,I3,QOQ,KN,epr,jOq,a3,F$Q,lLe,yPJ,BsG,gxG,cTt,JTQ,bKr,P$R,V8o,M8m,pgR,mxJ,Nio,Kfu,IID,xxJ,C$m,k9q,Tk,HKq,nMm,iK2,Tit,wgu,stQ,rTJ,LfQ,rP,Wfo,z1G,Dxo,fIG,Yc3,Xge,ScG,$xe,ATr,e1R,s4,lID,yTt,LN,BiT,ua,fN,xJD,Wy,Z1,VQr,PDf,p8m,NJq,IiD,CDT,aiu,kUq,Hy2,TJD,DJm,sgm,nRG,Wxe,zhq,h5,Lxf,uWT,Gk,fiQ,YQJ,X8t,Zyo,hhD,qQJ,SQu,ERo,vRm,Qgf,oRG,Fx3,cmD,m_q,x_R,PcT,MLD,NxQ,tLQ,Ive,Cce,avr,kt2,nge,sxT,Lmu,TxG,Wmo,u1T,zbT,D_m,fvq,XHm,ZZT,qot,U_Q,Soo,y8,By,cS,bk,$_u,Gtf,
vgm,RbQ,x3,VM,ogt,PS,jxo,Fmo,lvm,pl,cKu,Vnf,Mne,pe2,N9R,tnT,IbG,abo,t0,k8f,ndu,Iz,T9m,s52,Lse,DCe,rKT,XeJ,UCG,Z0m,SSe,$Cq,Edq,O0q,Q5T,odr,lbo,HS,yKR,B9D,nl,gdG,Tv,JFr,cFr,mke,xkG,bdJ,VdG,P_q,MdJ,pQJ,ky2,idG,TCT,n8t,KEe,tdJ,rFG,LET,fKf,YKJ,qKm,GyG,v8r,Ll,Od3,R4f,o8Q,e4m,yFr,g82,ci2,mbu,bI2,xbJ,NbD,Voo,CAD,aYQ,HIo,zv,n1r,Tbf,wzT,riD,ssR,LVe,DbJ,z6m,u4D,ZP,fYe,Y9o,q93,UH,ZIr,S9D,GEt,h0,E1J,v1o,OIJ,o1J,Qso,AiT,jsr,Bbe,g13,JED,OH,cET,V_t,PgQ,QM,N2o,M_m,psT,If2,CgG,afG,ncJ,rEo,wsq,T2T,sEr,DBf,WRQ,ZCm,zCm,
qZG,hCQ,UBD,OCu,oc2,eC2,FRf,xwt,P4u,Mzq,IrD,C4m,zm,hS,TD3,LcG,sbT,WcT,zXe,frR,ulR,Y_T,XED,dM,TfR,wEu,Dw2,rWo,U2,eH,UwD,S_r,hXm,dwG,jH,$wJ,Fv,GcR,E_2,v_3,O_T,BA,AWe,Qbm,jbt,FcD,mPt,xPt,VvG,Peu,pir,Ny3,My,IQ3,KQt,Ce2,aQo,kW3,HHD,n6e,wit,s9R,LQt,Poe,xDr,MTQ,tTm,Ijq,ac,KOr,Coq,aju,iVt,TIe,nUm,rVm,LO2,nk,WOu,zs3,DDr,ugu,fje,XYe,qqr,ZVq,UDt,YqJ,Squ,hsm,dDD,$D3,GY3,EUo,vU3,OVQ,AVD,Qef,oUJ,esJ,FOG,jeQ,T2,lje,gUT,xZJ,yVG,VGe,Prq,MGo,p3u,HOT,nWt,TeD,rZe,syT,ZZ,z5t,X3o,qPf,qy,dZ3,h5J,$Zu,h7,G3R,EWr,vW3,AZr,
R5J,oWt,Qy2,jyD,FMm,VBJ,cM3,b$R,MBm,P6o,p$2,NV3,IlJ,C62,knT,i$o,uAG,X$t,qle,UhJ,Slu,hfR,dhr,Gnm,E7R,AMQ,RfR,o7e,QQq,efq,jQD,Fnr,llT,g7Q,b9t,FM,lW,y_,B2,xHu,cj,PUq,kKQ,rg2,TFT,$HG,GKG,Esr,ptt,aO3,IOm,O9J,AgR,Rlq,i9Q,QTe,jTo,lOu,gso,JsJ,Cv,Hj,iq,MJf,PHJ,IoD,KXr,rsm,LXT,WXe,z0f,Y02,Zoe,XLo,S0m,d7Q,R0f,OoR,Giu,As2,Eqe,oq3,FXt,UT,xGJ,cHJ,PuR,MOf,NOt,tOr,hc,I5t,a5T,HYQ,iYr,TOm,nNt,Gh,WKm,o1,uPT,f5Q,er,YxT,XXe,ZYR,qxe,UGR,Sxf,hcD,dGG,$G3,GX2,ENQ,vNG,OYJ,AHo,Rcq,jr,oNf,QM2,ecJ,jMe,FKR,l52,yHT,BOT,gNT,JtJ,
ctr,m6m,lq,x6m,PGQ,pTe,IX3,aXR,krr,HuD,nTm,wTQ,rt2,s7T,P9,uxR,WBJ,fXt,YF2,XTt,U6R,SF3,hJG,$6e,ns,ETJ,H9,OuT,Atu,T1,RJR,oTJ,Q7t,eJe,rU,yte,gTR,x9J,bi2,PFe,M7G,fs,pWu,N1D,INo,CFr,aNr,Him,iiQ,KtQ,nJq,Ltm,uor,fNt,Yr,Y8t,XWJ,hWD,ZiQ,U9o,S8f,OiQ,$9J,A2T,oJ2,eWm,jCe,Fte,lNQ,y2D,B1t,JAm,cA2,mID,bSo,xIr,PEG,pIt,IqJ,k5r,nP2,wI3,LaQ,dU,DI3,Wam,znG,u92,fqm,XIr,ZSD,qfo,UIr,SfJ,hn2,dIQ,$Iu,G5e,EPR,vPJ,AAo,OSm,QVe,jV3,EB,Fau,B0J,yA3,OB,cJr,moR,VuD,MuR,PyR,xoo,tu3,NSu,kZJ,I02,e5,Cyr,sWD,nGo,TSm,wUu,rJD,Lwr,Ww3,Dot,
j5,FF,qMu,umG,ZE3,XUo,f0u,YMQ,hIQ,$oG,EGR,GZQ,RIu,AJq,eIG,jWo,l0e,yJo,Fw2,BS3,JXo,gGT,mpJ,VZq,bv,Pp3,MZ3,tZu,kaq,rXR,Vn,Llt,un2,Z5R,XkD,fy2,Yko,td,hiT,qkT,Upr,dpJ,Ga2,$pQ,O5G,AXQ,oOQ,QJm,eiG,jJr,FlQ,yXu,Bre,L7,Jvr,Wd,cve,V4f,PIR,YV,M4o,N4e,nCm,SM,CIr,iF2,apQ,kfm,sp2,Lzf,rve,DeD,WzD,YDr,zQo,Xpe,ZFG,dp,UeJ,SDo,hQQ,qDo,$e2,deQ,$V,OFR,FzT,lpt,yvo,B42,gCq,JCe,xFQ,mFT,bxo,cCo,PwQ,NYt,K8m,Cw2,kTD,niG,HxT,ixT,TYq,rCo,sUo,L8t,DFQ,W8T,zOm,faq,eM,YXu,qXo,ZxJ,SXm,UFe,hOG,dFJ,$Ft,jM,Eir,yCe,F82,J4T,c42,Mam,pNG,
Nle,taR,IR3,K6e,kbG,HMG,iMQ,nu3,r4t,sGq,L6u,D4q,W6G,zDr,u0G,fRt,Yhf,XNq,qho,U4Q,Sh2,$4f,EuG,RDJ,A4Q,OMJ,vuu,jGr,QGr,lRR,Cq,y4t,Bl3,guR,bAR,JYD,xgr,cYf,Vem,iB,Pxo,Me2,pcT,mge,NAt,aJm,kSJ,HAG,ws,iAm,nQm,TA3,wcR,rYT,sLD,DgR,W2m,zSt,uVT,Xcu,YRm,hS3,fJ2,si,dgm,ZAe,SRG,EQu,OAJ,eSJ,oQt,QLq,RSR,AYQ,Yx,jLJ,lJt,yY3,BA2,gQm,JR3,VRJ,mvJ,cRD,bao,HaQ,asr,xv2,CXe,L0q,Dvq,W03,zd2,uSG,fsm,YYT,qYo,SYm,dvf,Gdr,EIm,vID,oIQ,RdD,Qmu,jme,yd,yR3,Bnt,gIt,J6T,gs,JT,bJJ,PhJ,KI3,HJr,iJR,nST,TzT,wKJ,r6m,LIR,WIu,Dc3,zre,fwJ,YLJ,
XKt,ZJf,qLm,Ucq,VG,SLJ,OJt,A6J,GPu,$cQ,vSG,ESJ,y6r,jHq,Nx,Bzq,gSm,JhT,chq,m$o,bzG,x$r,Vc3,P92,pxf,tcq,KHo,aVu,Hzq,wxr,rhu,sdq,WHo,D$T,LHT,zy3,upt,YEJ,XxG,Zzf,qEQ,kM,SEm,hyq,d$o,GQD,$$t,E4D,Ozq,AhJ,Ryq,Qdo,eyJ,o4o,g4J,mWJ,bDR,xWf,VXt,MXo,PZe,pnQ,Imf,KrD,CZe,amT,HDe,kuQ,nXR,Lr3,s0T,Wre,zaq,udr,qyJ,UWe,SyT,ham,Gur,EXe,A_T,oXe,Rao,Q0o,hT,ea2,j0Q,Bkm,y_T,gX2,JzR,mne,bWr,Pft,pCD,Ngm,tio,Ig3,Kkq,Cf3,agt,kpf,HWG,iWo,Tgq,noT,wCq,rzm,siT,LkR,Dnu,WkG,z72,fgr,Yue,ufu,AT,quJ,Une,SuQ,h7t,dno,GpD,voJ,OWG,Azo,R72,
ooQ,Qit,ji2,FkJ,yzD,goe,cbr,VWQ,bLo,mqt,xqq,Pb2,N$m,MWm,p6u,IMt,aM2,kqu,HLm,nDJ,T$D,w6G,soD,DqR,rbf,WZu,zTJ,uJT,fM3,Y3R,X6u,q3r,ZLT,Uqq,S33,hTo,dqG,$q2,Gqu,EDJ,vD3,RTe,oDD,OLG,Abo,FZ3,lM2,mx,cnt,m5J,x5T,Mle,P2G,pof,NjG,bD,Vg,I8J,K12,py,NJ,He2,C23,a8t,TjR,sZQ,D52,W1q,zP2,u5G,f8R,XoD,Zem,qje,U5r,Sj2,hPJ,d5m,Ky,$5T,GlG,ag,Eeq,vef,Oef,AnJ,RPq,oeG,iD,ny,QZe,ePf,TU,jZJ,F1m,l8G,ynT,gee,Jrm,mVo,Mwe,PP3,Vwu,pVu,NET,ksf,KD3,CPm,IUm,aUu,rJ,TEt,wVr,rrr,sKq,LDr,WDR,Ypm,uqG,sQ,zRt,SpJ,dVo,$Vu,Gs2,EFD,vFu,ArD,RRT,
oFr,QKQ,jK3,FDD,lUT,BED,gF3,clJ,mNT,MVe,Ntu,pqG,I9t,Hjq,ijR,nEm,Ttq,rlt,uD,YR,fy,sBQ,LdQ,DN3,Wdq,uOt,f9q,YrT,Xqt,qrm,Sro,hHo,dNe,XW,$NJ,EEr,vEe,RHq,oEq,Zi,qJ,jBq,QBT,Fdr,Btf,l9f,gEm,SQ,cwr,m12,VIJ,MIQ,h3,NZq,tIG,IzD,Kht,CSJ,azR,kxe,ifR,rwR,s8T,Whr,LhG,D1G,zzq,Xvu,ujQ,YA3,Zfm,qAG,U1f,d1t,$1R,GxG,EwD,vwu,ezm,Q8Q,gw2,mjG,jQ,bbr,uZD,xjJ,Vbe,Mb2,N5R,tbr,ib2,naJ,gJ,T5J,w_u,rpG,skm,Lgm,Wgt,u3Q,Djt,zxo,Ydm,fDm,Ujm,Zbe,SdT,hxm,djT,$jr,GCt,vat,EaG,oaG,jke,QkD,FgD,lDQ,ypD,bc,B5o,gat,Vv,cor,Jo3,mQo,b8D,Vqu,Pzo,
pfR,NXe,tqG,IW3,K4q,kwm,n5J,roT,wft,s4G,L4r,z9e,dQr,Xfo,Gw2,E52,O8u,AoG,e9G,j4r,F4D,lWG,yoG,BXG,g5e,cuQ,xYD,VCt,P8m,MCD,tCe,NqR,aEm,kNJ,HBm,iBo,nfQ,Tqr,ruf,rx,LWt,WH,WWT,uiJ,fEo,UYe,hqe,Efm,OBu,Auo,ofo,QXo,eq3,FWr,yuq,BqT,cjQ,bnt,Pn3,V12,xmt,Zv,pMQ,M1D,NQq,t12,ITG,KuJ,Cnf,aTt,kIG,inm,nme,TQu,wMo,rjJ,sY2,Lu3,DmR,Wur,ua2,fTG,dme,$m3,GIR,EmQ,vmq,R3D,Gt,lTJ,yjJ,BQm,gmt,J1r,Eo,ej,plf,Am,NGm,kJf,a$f,Rx,iTQ,RAo;
_.Jq=function(J,c){if(Error.captureStackTrace)Error.captureStackTrace(this,_.Jq);else{var m=Error().stack;m&&(this.stack=m)}J&&(this.message=String(J));c!==void 0&&(this.cause=c)};
cr=function(){throw Error("B");};
Jqr=function(J,c){c=String.fromCharCode.apply(null,c);return J==null?c:J+c};
xfo=function(J){var c=!1;c=c===void 0?!1:c;if(cqQ){if(c&&(mfo?!J.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(J)))throw Error("C");J=(bGR||(bGR=new TextEncoder)).encode(J)}else{for(var m=0,b=new Uint8Array(3*J.length),x=0;x<J.length;x++){var P=J.charCodeAt(x);if(P<128)b[m++]=P;else{if(P<2048)b[m++]=P>>6|192;else{if(P>=55296&&P<=57343){if(P<=56319&&x<J.length){var p=J.charCodeAt(++x);if(p>=56320&&p<=57343){P=(P-55296)*1024+p-56320+65536;b[m++]=P>>18|
240;b[m++]=P>>12&63|128;b[m++]=P>>6&63|128;b[m++]=P&63|128;continue}else x--}if(c)throw Error("C");P=65533}b[m++]=P>>12|224;b[m++]=P>>6&63|128}b[m++]=P&63|128}}J=m===b.length?b:b.subarray(0,m)}return J};
bQ=function(J){_.mo.setTimeout(function(){throw J;},0)};
_.xt=function(J,c){return J.lastIndexOf(c,0)==0};
Pr=function(J,c){var m=J.length-c.length;return m>=0&&J.indexOf(c,m)==m};
_.Mf=function(J){return/^[\s\xa0]*$/.test(J)};
_.tq=function(J,c){return J.indexOf(c)!=-1};
_.IR=function(J,c){return _.tq(J.toLowerCase(),c.toLowerCase())};
_.aR=function(J,c){var m=0;J=CG(String(J)).split(".");c=CG(String(c)).split(".");for(var b=Math.max(J.length,c.length),x=0;m==0&&x<b;x++){var P=J[x]||"",p=c[x]||"";do{P=/(\d*)(\D*)(.*)/.exec(P)||["","","",""];p=/(\d*)(\D*)(.*)/.exec(p)||["","","",""];if(P[0].length==0&&p[0].length==0)break;m=V2Q(P[1].length==0?0:parseInt(P[1],10),p[1].length==0?0:parseInt(p[1],10))||V2Q(P[2].length==0,p[2].length==0)||V2Q(P[2],p[2]);P=P[3];p=p[3]}while(m==0)}return m};
V2Q=function(J,c){return J<c?-1:J>c?1:0};
_.Hr=function(){var J=_.mo.navigator;return J&&(J=J.userAgent)?J:""};
rT=function(J){if(!iQ||!wT)return!1;for(var c=0;c<wT.brands.length;c++){var m=wT.brands[c].brand;if(m&&_.tq(m,J))return!0}return!1};
LG=function(J){return _.tq(_.Hr(),J)};
D3=function(){return iQ?!!wT&&wT.brands.length>0:!1};
Wr=function(){return D3()?!1:LG("Opera")};
PQT=function(){return D3()?!1:LG("Trident")||LG("MSIE")};
M2o=function(){return D3()?rT("Microsoft Edge"):LG("Edg/")};
uQ=function(){return LG("Firefox")||LG("FxiOS")};
_.qf=function(){return LG("Safari")&&!(_.Xe()||(D3()?0:LG("Coast"))||Wr()||(D3()?0:LG("Edge"))||M2o()||(D3()?rT("Opera"):LG("OPR"))||uQ()||LG("Silk")||LG("Android"))};
_.Xe=function(){return D3()?rT("Chromium"):(LG("Chrome")||LG("CriOS"))&&!(D3()?0:LG("Edge"))||LG("Silk")};
_.pr2=function(){return LG("Android")&&!(_.Xe()||uQ()||Wr()||LG("Silk"))};
NTG=function(J){var c={};J.forEach(function(m){c[m[0]]=m[1]});
return function(m){return c[m.find(function(b){return b in c})]||""}};
t2e=function(J){var c=_.Hr();if(J==="Internet Explorer"){if(PQT())if((J=/rv: *([\d\.]*)/.exec(c))&&J[1])c=J[1];else{J="";var m=/MSIE +([\d\.]+)/.exec(c);if(m&&m[1])if(c=/Trident\/(\d.\d)/.exec(c),m[1]=="7.0")if(c&&c[1])switch(c[1]){case "4.0":J="8.0";break;case "5.0":J="9.0";break;case "6.0":J="10.0";break;case "7.0":J="11.0"}else J="7.0";else J=m[1];c=J}else c="";return c}var b=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");m=[];for(var x;x=b.exec(c);)m.push([x[1],x[2],x[3]||void 0]);
c=NTG(m);switch(J){case "Opera":if(Wr())return c(["Version","Opera"]);if(D3()?rT("Opera"):LG("OPR"))return c(["OPR"]);break;case "Microsoft Edge":if(D3()?0:LG("Edge"))return c(["Edge"]);if(M2o())return c(["Edg"]);break;case "Chromium":if(_.Xe())return c(["Chrome","CriOS","HeadlessChrome"])}return J==="Firefox"&&uQ()||J==="Safari"&&_.qf()||J==="Android Browser"&&_.pr2()||J==="Silk"&&LG("Silk")?(c=m[2])&&c[1]||"":""};
_.I3T=function(J){if(D3()&&J!=="Silk"){var c=wT.brands.find(function(m){return m.brand===J});
if(!c||!c.version)return NaN;c=c.version.split(".")}else{c=t2e(J);if(c==="")return NaN;c=c.split(".")}return c.length===0?NaN:Number(c[0])};
Um=function(){return iQ?!!wT&&!!wT.platform:!1};
_.Ko2=function(){return Um()?wT.platform==="Android":LG("Android")};
CQR=function(){return LG("iPhone")&&!LG("iPod")&&!LG("iPad")};
_.S2=function(){return CQR()||LG("iPad")||LG("iPod")};
_.a3m=function(){return Um()?wT.platform==="macOS":LG("Macintosh")};
_.kDf=function(){return Um()?wT.platform==="Windows":LG("Windows")};
_.HGG=function(){return Um()?wT.platform==="Chrome OS":LG("CrOS")};
_.dT=function(J){return J[J.length-1]};
_.$t=function(J,c,m){c=_.iGJ(J,c,m);return c<0?null:typeof J==="string"?J.charAt(c):J[c]};
_.iGJ=function(J,c,m){for(var b=J.length,x=typeof J==="string"?J.split(""):J,P=0;P<b;P++)if(P in x&&c.call(m,x[P],P,J))return P;return-1};
ntt=function(J){for(var c=_.GD,m=typeof J==="string"?J.split(""):J,b=J.length-1;b>=0;b--)if(b in m&&c.call(void 0,m[b],b,J))return b;return-1};
_.Aq=function(J,c){return _.vr(J,c)>=0};
_.QJ=function(J,c){_.Aq(J,c)||J.push(c)};
_.j2=function(J,c){c=_.vr(J,c);var m;(m=c>=0)&&_.e2(J,c);return m};
_.e2=function(J,c){Array.prototype.splice.call(J,c,1)};
_.Fe=function(J){var c=J.length;if(c>0){for(var m=Array(c),b=0;b<c;b++)m[b]=J[b];return m}return[]};
_.Br=function(J,c){for(var m=1;m<arguments.length;m++){var b=arguments[m];if(_.yJ(b)){var x=J.length||0,P=b.length||0;J.length=x+P;for(var p=0;p<P;p++)J[x+p]=b[p]}else J.push(b)}};
_.wro=function(J,c,m,b){Array.prototype.splice.apply(J,TTT(arguments,1))};
TTT=function(J,c,m){return arguments.length<=2?Array.prototype.slice.call(J,c):Array.prototype.slice.call(J,c,m)};
bC=function(J,c){c=c||J;for(var m=0,b=0,x={};b<J.length;){var P=J[b++],p=_.cB(P)?"o"+_.mj(P):(typeof P).charAt(0)+P;Object.prototype.hasOwnProperty.call(x,p)||(x[p]=!0,c[m++]=P)}c.length=m};
_.rqr=function(J,c,m){m=m||_.xZ;for(var b=0,x=J.length,P;b<x;){var p=b+(x-b>>>1);var t=m(c,J[p]);t>0?b=p+1:(x=p,P=!t)}return P?b:-b-1};
_.Mu=function(J,c,m){if(!_.yJ(J)||!_.yJ(c)||J.length!=c.length)return!1;var b=J.length;m=m||sR2;for(var x=0;x<b;x++)if(!m(J[x],c[x]))return!1;return!0};
_.xZ=function(J,c){return J>c?1:J<c?-1:0};
sR2=function(J,c){return J===c};
Loo=function(J,c,m){c=Array.prototype.splice.call(J,c,1);Array.prototype.splice.call(J,m,0,c[0])};
Woe=function(J){return Dfo[J]||""};
f3m=function(J){if(!zuQ)return _.I2(J);J=ueR.test(J)?J.replace(ueR,Woe):J;J=atob(J);for(var c=new Uint8Array(J.length),m=0;m<J.length;m++)c[m]=J.charCodeAt(m);return c};
YmR=function(J,c){J.__closure__error__context__984382||(J.__closure__error__context__984382={});J.__closure__error__context__984382.severity=c};
_.CQ=function(J){J=Error(J);YmR(J,"warning");return J};
kZ=function(J,c){if(J!=null){var m;var b=(m=XrR)!=null?m:XrR={};m=b[J]||0;m>=c||(b[J]=m+1,J=Error(),YmR(J,"incident"),bQ(J))}};
nQ=function(J,c,m){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(m===void 0?0:m)&&Symbol.for&&J?Symbol.for(J):J!=null?Symbol(J):Symbol():c};
D_=function(J,c){rL||_.sa in J||ZGr(J,qmJ);J[_.sa]|=c};
WB=function(J,c){rL||_.sa in J||ZGr(J,qmJ);J[_.sa]=c};
Ufr=function(J){if(4&J)return 512&J?512:1024&J?1024:0};
zz=function(J){D_(J,34);return J};
Smu=function(J){D_(J,32);return J};
fQ=function(){return typeof BigInt==="function"};
Z_=function(J,c){return c===void 0?J.copyOnWrite!==YZ&&!!(2&(J.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.sa]|0)):!!(2&c)&&J.copyOnWrite!==YZ};
_.$Z=function(J,c){if(J!=null)if(typeof J==="string")J=J?new Ua(J,h8):_.dL();else if(J.constructor!==Ua)if(hum&&J!=null&&J instanceof Uint8Array)J=J.length?new Ua(new Uint8Array(J),h8):_.dL();else{if(!c)throw Error();J=void 0}return J};
Gz=function(J,c){if(typeof c!=="number"||c<0||c>=J.length)throw Error();};
dft=function(J,c,m){var b=c&128?0:-1,x=J.length,P;if(P=!!x)P=J[x-1],P=P!=null&&typeof P==="object"&&P.constructor===Object;var p=x+(P?-1:0);for(c=c&128?1:0;c<p;c++)m(c-b,J[c]);if(P){J=J[x-1];for(var t in J)!isNaN(t)&&m(+t,J[t])}};
Oa=function(J){return J&128?Ea:void 0};
R2=function(J){J.isGuard_doNotManuallySetPrettyPlease=!0;return J};
GDD=function(){var J=$fq;return R2(function(c){for(var m in J)if(c===J[m]&&!/^[0-9]+$/.test(m))return!0;return!1})};
_.F$=function(J){var c=J;if(EtJ(c)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(c))throw Error(String(c));}else if(vtR(c)&&!Number.isSafeInteger(c))throw Error(String(c));return e6?BigInt(J):J=OGQ(J)?J?"1":"0":EtJ(J)?J.trim()||"0":String(J)};
Aq3=function(J,c){if(J.length>c.length)return!1;if(J.length<c.length||J===c)return!0;for(var m=0;m<J.length;m++){var b=J[m],x=c[m];if(b>x)return!1;if(b<x)return!0}};
RuG=function(J){var c=J>>>0;lC=c;yQ=(J-c)/4294967296>>>0};
BB=function(J){if(J<0){RuG(-J);var c=_.M(otG(lC,yQ));J=c.next().value;c=c.next().value;lC=J>>>0;yQ=c>>>0}else RuG(J)};
QRu=function(J,c){var m=c*4294967296+(J>>>0);return Number.isSafeInteger(m)?m:_.gL(J,c)};
Jf=function(J,c){var m=c&2147483648;m&&(J=~J+1>>>0,c=~c>>>0,J==0&&(c=c+1>>>0));J=QRu(J,c);return typeof J==="number"?m?-J:J:m?"-"+J:J};
_.gL=function(J,c){c>>>=0;J>>>=0;if(c<=2097151)var m=""+(4294967296*c+J);else fQ()?m=""+(BigInt(c)<<BigInt(32)|BigInt(J)):(m=(J>>>24|c<<8)&16777215,c=c>>16&65535,J=(J&16777215)+m*6777216+c*6710656,m+=c*8147497,c*=2,J>=1E7&&(m+=J/1E7>>>0,J%=1E7),m>=1E7&&(c+=m/1E7>>>0,m%=1E7),m=c+eut(m)+eut(J));return m};
eut=function(J){J=String(J);return"0000000".slice(J.length)+J};
_.mS=function(J,c){c&2147483648?fQ()?J=""+(BigInt(c|0)<<BigInt(32)|BigInt(J>>>0)):(c=_.M(otG(J,c)),J=c.next().value,c=c.next().value,J="-"+_.gL(J,c)):J=_.gL(J,c);return J};
b1=function(J){if(J.length<16)BB(Number(J));else if(fQ())J=BigInt(J),lC=Number(J&BigInt(4294967295))>>>0,yQ=Number(J>>BigInt(32)&BigInt(4294967295));else{var c=+(J[0]==="-");yQ=lC=0;for(var m=J.length,b=c,x=(m-c)%6+c;x<=m;b=x,x+=6)b=Number(J.slice(b,x)),yQ*=1E6,lC=lC*1E6+b,lC>=4294967296&&(yQ+=Math.trunc(lC/4294967296),yQ>>>=0,lC>>>=0);c&&(c=_.M(otG(lC,yQ)),J=c.next().value,c=c.next().value,lC=J,yQ=c)}};
otG=function(J,c){c=~c;J?J=~J+1:c+=1;return[J,c]};
xp=function(J){return Array.prototype.slice.call(J)};
_.Pu=function(J,c){throw Error(c===void 0?"unexpected value "+J+"!":c);};
_.NR=function(J){if(J!=null&&typeof J!=="number")throw Error("I`"+typeof J+"`"+J);return J};
_.tf=function(J){if(J==null||typeof J==="number")return J;if(J==="NaN"||J==="Infinity"||J==="-Infinity")return Number(J)};
jRr=function(J){if(J!=null&&typeof J!=="boolean")throw Error("J`"+_.IF(J)+"`"+J);return J};
_.FoQ=function(J){if(J==null||typeof J==="boolean")return J;if(typeof J==="number")return!!J};
_.nr=function(J){switch(typeof J){case "bigint":return!0;case "number":return kp(J);case "string":return l3t.test(J);default:return!1}};
_.s5=function(J){if(!kp(J))throw _.CQ("enum");return J|0};
_.Lr=function(J){return J==null?J:kp(J)?J|0:void 0};
yq3=function(J){if(typeof J!=="number")throw _.CQ("int32");if(!kp(J))throw _.CQ("int32");return J|0};
_.De=function(J){return J==null?J:yq3(J)};
_.Wu=function(J){if(J==null)return J;if(typeof J==="string"&&J)J=+J;else if(typeof J!=="number")return;return kp(J)?J|0:void 0};
_.z4=function(J){if(J==null)return J;if(typeof J==="string"&&J)J=+J;else if(typeof J!=="number")return;return kp(J)?J>>>0:void 0};
c8o=function(J){var c=0;c=c===void 0?0:c;if(!_.nr(J))throw _.CQ("int64");var m=typeof J;switch(c){case 512:switch(m){case "string":return u1(J);case "bigint":return String(fr(64,J));default:return BTG(J)}case 1024:switch(m){case "string":return gtJ(J);case "bigint":return _.F$(fr(64,J));default:return J8J(J)}case 0:switch(m){case "string":return u1(J);case "bigint":return _.F$(fr(64,J));default:return Xs(J)}default:return _.Pu(c,"Unknown format requested type for int64")}};
Ze=function(J){return J==null?J:c8o(J)};
muR=function(J){if(J[0]==="-")return!1;var c=J.length;return c<20?!0:c===20&&Number(J.substring(0,6))<184467};
bQf=function(J){var c=J.length;return J[0]==="-"?c<20?!0:c===20&&Number(J.substring(0,7))>-922337:c<19?!0:c===19&&Number(J.substring(0,6))<922337};
xuf=function(J){if(J<0){BB(J);var c=_.gL(lC,yQ);J=Number(c);return qR(J)?J:c}c=String(J);if(muR(c))return c;BB(J);return QRu(lC,yQ)};
V6T=function(J){if(bQf(J))return J;b1(J);return _.mS(lC,yQ)};
PCt=function(J){if(muR(J))return J;b1(J);return _.gL(lC,yQ)};
Xs=function(J){J=U5(J);qR(J)||(BB(J),J=Jf(lC,yQ));return J};
_.M62=function(J){J=U5(J);return J>=0&&qR(J)?J:xuf(J)};
BTG=function(J){J=U5(J);if(qR(J))J=String(J);else{var c=String(J);bQf(c)?J=c:(BB(J),J=_.mS(lC,yQ))}return J};
_.pBQ=function(J){J=U5(J);if(J>=0&&qR(J))J=String(J);else{var c=String(J);muR(c)?J=c:(BB(J),J=_.gL(lC,yQ))}return J};
u1=function(J){var c=U5(Number(J));if(qR(c))return String(c);c=J.indexOf(".");c!==-1&&(J=J.substring(0,c));return V6T(J)};
gtJ=function(J){var c=U5(Number(J));if(qR(c))return _.F$(c);c=J.indexOf(".");c!==-1&&(J=J.substring(0,c));return fQ()?_.F$(fr(64,BigInt(J))):_.F$(V6T(J))};
J8J=function(J){return qR(J)?_.F$(Xs(J)):_.F$(BTG(J))};
_.NLG=function(J){return qR(J)?_.F$(_.M62(J)):_.F$(_.pBQ(J))};
_.t6R=function(J){var c=U5(Number(J));if(qR(c)&&c>=0)return String(c);c=J.indexOf(".");c!==-1&&(J=J.substring(0,c));return PCt(J)};
_.I_m=function(J){var c=U5(Number(J));if(qR(c)&&c>=0)return _.F$(c);c=J.indexOf(".");c!==-1&&(J=J.substring(0,c));return fQ()?_.F$((0,_.Sh)(64,BigInt(J))):_.F$(PCt(J))};
_.Kjf=function(J){if(J==null)return J;if(typeof J==="bigint")return hf(J)?J=Number(J):(J=fr(64,J),J=hf(J)?Number(J):String(J)),J;if(_.nr(J))return typeof J==="number"?Xs(J):u1(J)};
CCu=function(J,c){c=c===void 0?!1:c;var m=typeof J;if(J==null)return J;if(m==="bigint")return String(fr(64,J));if(_.nr(J))return m==="string"?u1(J):c?BTG(J):Xs(J)};
_.a_J=function(J){var c=typeof J;if(J==null)return J;if(c==="bigint")return _.F$(fr(64,J));if(_.nr(J))return c==="string"?gtJ(J):J8J(J)};
kzq=function(J){if(J==null)return J;var c=typeof J;if(c==="bigint")return String(fr(64,J));if(_.nr(J)){if(c==="string")return u1(J);if(c==="number")return Xs(J)}};
HQm=function(J){if(J==null)return J;var c=typeof J;if(c==="bigint")return String((0,_.Sh)(64,J));if(_.nr(J)){if(c==="string")return _.t6R(J);if(c==="number")return _.M62(J)}};
_.dR=function(J){if(typeof J!=="string")throw Error();return J};
$p=function(J){if(J!=null&&typeof J!=="string")throw Error();return J};
_.E5=function(J){return J==null||typeof J==="string"?J:void 0};
iQt=function(J,c,m,b){if(J!=null&&J[vu]===Af)return J;if(!Array.isArray(J))return m?b&2?((J=c[RF])||(J=new c,zz(J.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows),J=c[RF]=J),c=J):c=new c:c=void 0,c;m=J[_.sa]|0;b=m|b&32|b&2;b!==m&&WB(J,b);return new c(J)};
nZe=function(J,c,m){J=c?yq3(J):_.Wu(J);return J==null?m?0:void 0:J|0};
TLm=function(J){return J};
wBQ=function(J){return J};
s2m=function(J,c,m,b,x,P){J=iQt(J,b,m,P);x&&(J=r8G(J));return J};
Lj2=function(J){return[J,this.get(J)]};
z_G=function(){return Due||(Due=new oF(zz([]),void 0,void 0,void 0,Wjr))};
jh=function(J){var c=QR(eh);return c?J[c]:void 0};
Ya2=function(J,c){var m=m===void 0?!1:m;if(QR(u$T)&&QR(eh)&&void 0===u$T){var b=J.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,x=b[eh];if(!x)return;if(x=x.reviveUnknownFields)try{x(b,c,f_Q);return}catch(P){bQ(P)}}m&&(J=J.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,(m=QR(eh))&&m in J&&(J=J[m])&&delete J[c])};
ZQG=function(J,c){var m=QR(eh),b;rL&&m&&((b=J[m])==null?void 0:b[c])!=null&&kZ(XBm,3)};
Uue=function(J,c){c<100||kZ(qa2,1)};
$ue=function(J,c,m,b){var x=b!==void 0;b=!!b;var P=QR(eh),p;!x&&rL&&P&&(p=J[P])&&Fs(p,Uue);P=[];var t=J.length;p=4294967295;var I=!1,a=!!(c&64),k=a?c&128?0:-1:void 0;if(!(c&1)){var H=t&&J[t-1];H!=null&&typeof H==="object"&&H.constructor===Object?(t--,p=t):H=void 0;if(a&&!(c&128)&&!x){I=!0;var T;p=((T=Sau)!=null?T:TLm)(p-k,k,J,H)+k}}c=void 0;for(T=0;T<t;T++){var r=J[T];if(r!=null&&(r=m(r,b))!=null)if(a&&T>=p){var W=T-k,Y=void 0;((Y=c)!=null?Y:c={})[W]=r}else P[T]=r}if(H)for(var Z in H)t=H[Z],t!=null&&
(t=m(t,b))!=null&&(T=+Z,r=void 0,a&&!Number.isNaN(T)&&(r=T+k)<p?P[r]=t:(T=void 0,((T=c)!=null?T:c={})[Z]=t));c&&(I?P.push(c):P[p]=c);x&&QR(eh)&&(J=jh(J))&&J instanceof h_Q&&(P[eh]=duQ(J));return P};
Gze=function(J){J[0]=l1(J[0]);J[1]=l1(J[1]);return J};
l1=function(J){switch(typeof J){case "number":return Number.isFinite(J)?J:""+J;case "bigint":return hf(J)?Number(J):""+J;case "boolean":return J?1:0;case "object":if(Array.isArray(J)){var c=J[_.sa]|0;return J.length===0&&c&1?void 0:$ue(J,c,l1)}if(J!=null&&J[vu]===Af)return EZJ(J);if(J instanceof Ua){c=J.JSC$6830_value_;if(c==null)J="";else if(typeof c==="string")J=c;else{if(zuQ){for(var m="",b=0,x=c.length-10240;b<x;)m+=String.fromCharCode.apply(null,c.subarray(b,b+=10240));m+=String.fromCharCode.apply(null,
b?c.subarray(b):c);c=btoa(m)}else c=_.yR(c);J=J.JSC$6830_value_=c}return J}if(J instanceof oF)return J=J.size!==0?Array.from(gR.prototype.entries.call(J),Gze):void 0,J;return}return J};
Je=function(J,c){if(c){Sau=c==null||c===TLm||c[vZu]!==OQR?TLm:c;try{return EZJ(J)}finally{Sau=void 0}}return EZJ(J)};
EZJ=function(J){J=J.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return $ue(J,J[_.sa]|0,l1)};
oZe=function(J){switch(typeof J){case "boolean":return A82||(A82=[0,void 0,!0]);case "number":return J>0?void 0:J===0?R_u||(R_u=[0,void 0]):[-J,void 0];case "string":return[0,J];case "object":return J}};
bR=function(J,c,m){return J=_.mT(J,c[0],c[1],m?1:2)};
_.mT=function(J,c,m,b){b=b===void 0?0:b;if(J==null){var x=32;m?(J=[m],x|=128):J=[];c&&(x=x&-8380417|(c&1023)<<13)}else{if(!Array.isArray(J))throw Error("L");x=J[_.sa]|0;2048&x&&!(2&x)&&Q2q();if(x&256)throw Error("N");if(x&64)return b!==0||x&2048||WB(J,x|2048),J;if(m&&(x|=128,m!==J[0]))throw Error("O");a:{m=J;x|=64;var P=m.length;if(P){var p=P-1,t=m[p];if(t!=null&&typeof t==="object"&&t.constructor===Object){c=x&128?0:-1;p-=c;if(p>=1024)throw Error("Q");for(var I in t)P=+I,P<p&&(m[P+c]=t[I],delete t[I]);
x=x&-8380417|(p&1023)<<13;break a}}if(c){I=Math.max(c,P-(x&128?0:-1));if(I>1024)throw Error("R");x=x&-8380417|(I&1023)<<13}}}x|=64;b===0&&(x|=2048);WB(J,x);return J};
Q2q=function(){kZ(e_m,5)};
l_r=function(J,c){if(typeof J!=="object")return J;if(Array.isArray(J)){var m=J[_.sa]|0;return J.length===0&&m&1?void 0:j2r(J,m,c)}if(J!=null&&J[vu]===Af)return FjJ(J);if(J instanceof oF){c=J.arrayState;if(c&2)return J;if(!J.size)return;m=zz(Array.from(gR.prototype.entries.call(J)));if(J.valueCtor)for(J=0;J<m.length;J++){var b=m[J],x=b[1];x==null||typeof x!=="object"?x=void 0:x!=null&&x[vu]===Af?x=FjJ(x):Array.isArray(x)?x=j2r(x,x[_.sa]|0,!!(c&32)):x=void 0;b[1]=x}return m}if(J instanceof Ua)return J};
j2r=function(J,c,m){if(c&2)return J;!m||4096&c||16&c?J=xl(J,c,!1,m&&!(c&16)):(D_(J,34),c&4&&Object.freeze(J));return J};
Vb=function(J,c,m){J=new J.constructor(c);m&&(J.copyOnWrite=YZ);J.noLegacyNull=YZ;return J};
FjJ=function(J){var c=J.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,m=c[_.sa]|0;return Z_(J,m)?J:Pw(J,c,m)?Vb(J,c):xl(c,m)};
xl=function(J,c,m,b){b!=null||(b=!!(34&c));J=$ue(J,c,l_r,b);b=32;m&&(b|=2);c=c&8380609|b;WB(J,c);return J};
r8G=function(J){var c=J.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,m=c[_.sa]|0;return Z_(J,m)?Pw(J,c,m)?Vb(J,c,!0):new J.constructor(xl(c,m,!1)):J};
N0=function(J){if(J.copyOnWrite!==YZ)return!1;var c=J.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;c=xl(c,c[_.sa]|0);D_(c,2048);J.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=c;J.copyOnWrite=void 0;J.noLegacyNull=void 0;return!0};
CU=function(J){if(!N0(J)&&Z_(J,J.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.sa]|0))throw Error();};
a_=function(J,c){c===void 0&&(c=J[_.sa]|0);c&32&&!(c&4096)&&WB(J,c|4096)};
Pw=function(J,c,m){return m&2?!0:m&32&&!(m&4096)?(WB(c,m|2),J.copyOnWrite=YZ,!0):!1};
Hw=function(J,c,m,b,x){var P=m+(x?0:-1),p=J.length-1;if(p>=1+(x?0:-1)&&P>=p){var t=J[p];if(t!=null&&typeof t==="object"&&t.constructor===Object)return t[m]=b,c}if(P<=p)return J[P]=b,c;if(b!==void 0){var I;p=((I=c)!=null?I:c=J[_.sa]|0)>>13&1023||536870912;m>=p?b!=null&&(P={},J[p+(x?0:-1)]=(P[m]=b,P)):J[P]=b}return c};
_.TR=function(J,c,m,b,x){var P=J.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,p=P[_.sa]|0;b=Z_(J,p)?1:b;x=!!x||b===3;b===2&&N0(J)&&(P=J.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,p=P[_.sa]|0);J=y8m(P,c);var t=J===iR?7:J[_.sa]|0,I=BLr(t,p);var a=4&I?!1:!0;if(a){4&I&&(J=xp(J),t=0,I=nU(I,p),p=Hw(P,p,c,J));for(var k=0,H=0;k<J.length;k++){var T=m(J[k]);T!=null&&(J[H++]=T)}H<k&&(J.length=H);m=(I|4)&-513;I=m&=-1025;I&=-4097}I!==t&&(WB(J,I),2&I&&Object.freeze(J));return J=gZT(J,I,P,
p,c,b,a,x)};
gZT=function(J,c,m,b,x,P,p,t){var I=c;P===1||(P!==4?0:2&c||!(16&c)&&32&b)?w6(c)||(c|=!J.length||p&&!(4096&c)||32&b&&!(4096&c||16&c)?2:256,c!==I&&WB(J,c),Object.freeze(J)):(P===2&&w6(c)&&(J=xp(J),I=0,c=nU(c,b),b=Hw(m,b,x,J)),w6(c)||(t||(c|=16),c!==I&&WB(J,c)));2&c||!(4096&c||16&c)||a_(m,b);return J};
y8m=function(J,c,m){J=r6(J,c,m);return Array.isArray(J)?J:iR};
BLr=function(J,c){2&c&&(J|=2);return J|1};
w6=function(J){return!!(2&J)&&!!(4&J)||!!(256&J)};
JfD=function(J){return _.$Z(J,!0)};
cfR=function(J,c){var m=J.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,b=m[_.sa]|0;a:{var x=b;b=Z_(J,b);!b&&N0(J)&&(m=J.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,x=m[_.sa]|0);var P=r6(m,c);J=!1;if(P==null){if(b){c=z_G();break a}P=[]}else if(P.constructor===oF)if(P.arrayState&2&&!b)P=Array.from(gR.prototype.entries.call(P));else{c=P;break a}else Array.isArray(P)?J=!!((P[_.sa]|0)&2):P=[];if(b){if(!P.length){c=z_G();break a}J||(J=!0,zz(P))}else if(J){J=!1;b=P;b=xp(b);for(P=0;P<
b.length;P++){var p=b[P]=xp(b[P]);Array.isArray(p[1])&&(p[1]=zz(p[1]))}P=b}!J&&x&32&&Smu(P);b=new oF(P,void 0,nZe,nZe);x=Hw(m,x,c,b);J||a_(m,x);c=b}return c};
_.s1=function(J,c,m,b){CU(J);var x=J.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,P=x[_.sa]|0;if(m==null)return Hw(x,P,c),J;var p=m===iR?7:m[_.sa]|0,t=p,I=w6(p),a=I||Object.isFrozen(m);I||(p=0);a||(m=xp(m),t=0,p=nU(p,P),a=!1);p|=5;var k;I=(k=Ufr(p))!=null?k:0;for(k=0;k<m.length;k++){var H=m[k],T=b(H,I);Object.is(H,T)||(a&&(m=xp(m),t=0,p=nU(p,P),a=!1),m[k]=T)}p!==t&&(a&&(m=xp(m),p=nU(p,P)),WB(m,p));Hw(x,P,c,m);return J};
_.LU=function(J,c,m,b,x){CU(J);var P=J.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;Hw(P,P[_.sa]|0,c,(b==="0"?Number(m)===0:m===b)?void 0:m,x);return J};
_.D2=function(J,c,m){if(c&2)throw Error();var b=Oa(c),x=y8m(J,m,b),P=x===iR?7:x[_.sa]|0,p=BLr(P,c);if(2&p||w6(p)||16&p)x=xp(x),P=0,p=nU(p,c),Hw(J,c,m,x,b);p&=-13;p!==P&&WB(x,p);return x};
mRT=function(J){if(rL){var c;return(c=J[Ww])!=null?c:J[Ww]=new Map}if(Ww in J)return J[Ww];c=new Map;Object.defineProperty(J,Ww,{value:c});return c};
xRo=function(J,c,m,b,x){var P=mRT(J),p=bru(P,J,c,m,x);p!==b&&(p&&(c=Hw(J,c,p,void 0,x)),P.set(m,b));return c};
bru=function(J,c,m,b,x){var P=J.get(b);if(P!=null)return P;for(var p=P=0;p<b.length;p++){var t=b[p];r6(c,t,x)!=null&&(P!==0&&(m=Hw(c,m,P,void 0,x)),P=t)}J.set(b,P);return P};
zR=function(J,c,m,b,x){var P=!1;b=r6(J,b,x,function(p){var t=iQt(p,m,!1,c);P=t!==p&&t!=null;return t});
if(b!=null)return P&&!Z_(b)&&a_(J,c),b};
Vh2=function(J,c,m,b,x,P,p,t){var I=Z_(J,m);P=I?1:P;p=!!p||P===3;I=t&&!I;(P===2||I)&&N0(J)&&(c=J.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,m=c[_.sa]|0);J=y8m(c,x);var a=J===iR?7:J[_.sa]|0,k=BLr(a,m);if(t=!(4&k)){var H=J,T=m,r=!!(2&k);r&&(T|=2);for(var W=!r,Y=!0,Z=0,d=0;Z<H.length;Z++){var G=iQt(H[Z],b,!1,T);if(G instanceof b){if(!r){var e=Z_(G);W&&(W=!e);Y&&(Y=e)}H[d++]=G}}d<Z&&(H.length=d);k|=4;k=Y?k&-4097:k|4096;k=W?k|8:k&-9}k!==a&&(WB(J,k),2&k&&Object.freeze(J));if(I&&!(8&k||!J.length&&
(P===1||(P!==4?0:2&k||!(16&k)&&32&m)))){w6(k)&&(J=xp(J),k=nU(k,m),m=Hw(c,m,x,J));b=J;I=k;for(a=0;a<b.length;a++)H=b[a],k=r8G(H),H!==k&&(b[a]=k);I|=8;k=I=b.length?I|4096:I&-4097;WB(J,k)}return J=gZT(J,k,c,m,x,P,t,p)};
P1Q=function(J){J==null&&(J=void 0);return J};
nU=function(J,c){return J=(2&c?J|2:J&-3)&-273};
_.MhR=function(J,c,m,b,x){CU(J);c=_.TR(J,c,x,2,!0);var P;x=(P=Ufr(c===iR?7:c[_.sa]|0))!=null?P:0;c.push(m(b,x));return J};
puJ=function(J,c,m,b,x,P,p){CU(J);var t=J.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;J=Vh2(J,t,t[_.sa]|0,m,c,2,!0);if(P&&p)x!=null||(x=J.length-1),Gz(J,x),J.splice(x,P),J.length||(J[_.sa]&=-4097);else{if(P){if(typeof x!=="number"||x<0||x>J.length)throw Error();}else b=b!=null?b:new m;x!=void 0?J.splice(x,P,b):J.push(b);x=m=J===iR?7:J[_.sa]|0;(b=Z_(b))?(m&=-9,J.length===1&&(m&=-4097)):m|=4096;m!==x&&WB(J,m);b||a_(t)}};
NR3=function(J,c){if(typeof J==="string")return new uR(f3m(J),c);if(Array.isArray(J))return new uR(new Uint8Array(J),c);if(J.constructor===Uint8Array)return new uR(J,!1);if(J.constructor===ArrayBuffer)return J=new Uint8Array(J),new uR(J,!1);if(J.constructor===Ua)return c=Z2(J)||new Uint8Array(0),new uR(c,!0,J);if(J instanceof Uint8Array)return J=J.constructor===Uint8Array?J:new Uint8Array(J.buffer,J.byteOffset,J.byteLength),new uR(J,!1);throw Error();};
q0=function(){var J=function(){throw Error();};
Object.setPrototypeOf(J,J.prototype);return J};
Iem=function(J,c){var m=m===void 0?thu:m;return new U1(J,c,m)};
k4t=function(J,c,m,b,x){c=KS3(c,b);c!=null&&(m=_.C1r(J,m),x(c,J),_.aee(J,m))};
he=function(J,c,m,b){var x=b[J];if(x)return x;x={};x.binaryFields=b;x.messageMetadata=oZe(b[0]);var P=b[1],p=1;P&&P.constructor===Object&&(x.extensions=P,P=b[++p],typeof P==="function"&&(x.isMessageSet=!0,HrJ!=null||(HrJ=P),ir2!=null||(ir2=b[p+1]),P=b[p+=2]));for(var t={};P&&Array.isArray(P)&&P.length&&typeof P[0]==="number"&&P[0]>0;){for(var I=0;I<P.length;I++)t[P[I]]=P;P=b[++p]}for(I=1;P!==void 0;){typeof P==="number"&&(I+=P,P=b[++p]);var a=void 0;if(P instanceof U1)var k=P;else k=npt,p--;P=void 0;
if((P=k)==null?0:P.$$isMsg){P=b[++p];a=b;var H=p;typeof P==="function"&&(P=P(),a[H]=P);a=P}P=b[++p];H=I+1;typeof P==="number"&&P<0&&(H-=P,P=b[++p]);for(;I<H;I++){var T=t[I];a?m(x,I,k,a,T):c(x,I,k,T)}}return b[J]=x};
wuQ=function(J){return Array.isArray(J)?J[0]instanceof U1?J:[TRG,J]:[J,void 0]};
KS3=function(J,c){if(J instanceof _.d6)return J.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(Array.isArray(J))return bR(J,c,!1)};
rfQ=function(J,c,m,b){var x=m.$$binaryReaderFn;J[c]=b?function(P,p,t){return x(P,p,t,b)}:x};
sFu=function(J,c,m,b,x){var P=m.$$binaryReaderFn,p,t;J[c]=function(I,a,k){return P(I,a,k,t||(t=he($l,rfQ,sFu,b).messageMetadata),p||(p=LS3(b)),x)}};
LS3=function(J){var c=J[DRr];if(c!=null)return c;var m=he($l,rfQ,sFu,J);c=m.isMessageSet?function(b,x){return HrJ(b,x,m)}:function(b,x){for(;WSR(x)&&x.nextWireType_!=4;){var P=x.nextField_,p=m[P];
if(p==null){var t=m.extensions;t&&(t=t[P])&&(t=zo2(t),t!=null&&(p=m[P]=t))}if(p==null||!p(x,b,P)){t=x;p=t.fieldCursor_;GR(t);if(t.discardUnknownFields)var I=void 0;else{var a=t.decoder_.cursor_-p;t.decoder_.cursor_=p;I=uso(t.decoder_,a)}a=t=p=void 0;var k=b;I&&((p=(t=(a=k[eh])!=null?a:k[eh]=new h_Q)[P])!=null?p:t[P]=[]).push(I)}}if(b=jh(b))b.reviveUnknownFields=m.binaryFields[feD];return!0};
J[DRr]=c;J[feD]=Y5r.bind(J);return c};
Y5r=function(J,c,m,b){var x=this[$l],P=this[DRr],p=bR(void 0,x.messageMetadata,!1),t=jh(J);if(t){var I=!1,a=x.extensions;if(a){x=function(W,Y,Z){if(Z.length!==0)if(a[Y])for(W=_.M(Z),Y=W.next();!Y.done;Y=W.next()){Y=XuJ(Y.value);try{I=!0,P(p,Y)}finally{Y.free()}}else b==null||b(J,Y,Z)};
if(c==null)Fs(t,x);else if(t!=null){var k=t[c];k&&x(t,c,k)}if(I){var H=J[_.sa]|0;if(H&2&&H&2048&&(m==null||!m.reviveIntoImmutable))throw Error();var T=Oa(H),r=function(W,Y){if(r6(J,W,T)!=null)switch(m==null?void 0:m.resolutionBehavior){case 1:return;default:throw Error();}Y!=null&&(H=Hw(J,H,W,Y,T));delete t[W]};
c==null?dft(p,p[_.sa]|0,function(W,Y){r(W,Y)}):r(c,r6(p,c,T))}}}};
zo2=function(J){J=wuQ(J);var c=J[0].$$binaryReaderFn;if(J=J[1]){var m=LS3(J),b=he($l,rfQ,sFu,J).messageMetadata;return function(x,P,p){return c(x,P,p,b,m)}}return c};
E1=function(J,c,m){J[c]=m.$$binaryWriterFn};
O1=function(J,c,m,b){var x,P,p=m.$$binaryWriterFn;J[c]=function(t,I,a){return p(t,I,a,P||(P=he(vw,E1,O1,b).messageMetadata),x||(x=Zro(b)))}};
Zro=function(J){var c=J[q53];if(!c){var m=he(vw,E1,O1,J);c=function(b,x){return URr(b,x,m)};
J[q53]=c}return c};
URr=function(J,c,m){dft(J,J[_.sa]|0,function(b,x){if(x!=null){var P=S5t(m,b);P?P(c,x,b):b<500||kZ(hoD,3)}});
(J=jh(J))&&Fs(J,function(b,x,P){Ae(c,c.encoder_.end());for(b=0;b<P.length;b++)Ae(c,Z2(P[b])||new Uint8Array(0))})};
S5t=function(J,c){var m=J[c];if(m)return m;if(m=J.extensions)if(m=m[c]){m=wuQ(m);var b=m[0].$$binaryWriterFn;if(m=m[1]){var x=Zro(m),P=he(vw,E1,O1,m).messageMetadata;m=J.isMessageSet?ir2(P,x):function(p,t,I){return b(p,t,I,P,x)}}else m=b;
return J[c]=m}};
_.dRJ=function(J,c,m){if(Array.isArray(c)){var b=c[_.sa]|0;if(b&4)return c;for(var x=0,P=0;x<c.length;x++){var p=J(c[x]);p!=null&&(c[P++]=p)}P<x&&(c.length=P);m&&(WB(c,(b|5)&-1537),b&2&&Object.freeze(c));return c}};
_.R_=function(J,c,m){return new U1(J,c,m)};
_.$Rq=function(J,c,m){return new U1(J,c,m)};
_.o_=function(J,c,m){Hw(J,J[_.sa]|0,c,m,Oa(J[_.sa]|0))};
G4o=function(J,c,m){c=_.tf(c);c!=null&&(_.e9(J,m,1),J=J.encoder_,m=j9||(j9=new DataView(new ArrayBuffer(8))),m.setFloat64(0,+c,!0),lC=m.getUint32(0,!0),yQ=m.getUint32(4,!0),_.F7(J,lC),_.F7(J,yQ))};
_.lR=function(J,c,m){c=kzq(c);if(c!=null){switch(typeof c){case "string":Epu(c)}if(c!=null)switch(_.e9(J,m,0),typeof c){case "number":J=J.encoder_;BB(c);vpJ(J,lC,yQ);break;case "bigint":m=BigInt.asUintN(64,c);m=new OrQ(Number(m&BigInt(4294967295)),Number(m>>BigInt(32)));vpJ(J.encoder_,m.JSC$6874_lo,m.JSC$6874_hi);break;default:m=Epu(c),vpJ(J.encoder_,m.JSC$6874_lo,m.JSC$6874_hi)}}};
Roo=function(J,c,m){c=_.Wu(c);c!=null&&c!=null&&(_.e9(J,m,0),_.Afo(J.encoder_,c))};
_.eo3=function(J,c,m){op2(J,m,HQm(c))};
_.jFu=function(J,c,m){c=_.FoQ(c);c!=null&&(_.e9(J,m,0),J.encoder_.JSC$6876_buffer_.push(c?1:0))};
_.leo=function(J,c,m){c=_.E5(c);c!=null&&FSt(J,m,xfo(c))};
yfG=function(J,c,m,b,x){c=KS3(c,b);c!=null&&(m=_.C1r(J,m),x(c,J),_.aee(J,m))};
_.BRf=function(J,c,m){c=c==null||typeof c=="string"||c instanceof Ua?c:void 0;c!=null&&FSt(J,m,NR3(c,!0).buffer)};
_.gpm=function(J,c,m){c=_.Wu(c);c!=null&&(c=parseInt(c,10),_.e9(J,m,0),_.Afo(J.encoder_,c))};
_.yb=function(J,c){return function(m,b){var x={treatNewDataAsImmutable:!0};b&&Object.assign(x,b);m=XuJ(m,void 0,void 0,x);try{var P=new J,p=P.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;LS3(c)(p,m);var t=P}finally{m.free()}return t}};
_.Bw=function(J){return function(c){return Je3(c,J)}};
ceD=function(J){return function(){return Je3(this,J)}};
_.g6=function(J){return R2(function(c){return c instanceof J&&!Z_(c)})};
_.JG=function(J){return function(c){return m0u(J,c)}};
PRD=function(J,c){return bU2({child:J,origin:c||"https://gamesnacks.com",channelName:"gspc",receiveMessageConstructor:x0R,getPayloadCase:function(m){return m.getPayloadCase()},
createInitMessage:function(m){var b=new c0,x=new V9q;m=_.m_(x,1,m);return _.bs(b,5,xh,m)}})};
VU=function(J){return{valueOf:J}.valueOf()};
pwR=function(){var J=null;if(!M9D)return J;try{var c=function(m){return m};
J=M9D.createPolicy("goog#html",{createHTML:c,createScript:c,createScriptURL:c})}catch(m){}return J};
t9e=function(){N6m===void 0&&(N6m=pwR());return N6m};
_.p1=function(J){var c=t9e();J=c?c.createScriptURL(J):J;return new P0(J)};
_.N2=function(J){if(J instanceof P0)return J.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("da");};
tG=function(J){return J.toString().indexOf("`")===-1};
K1=function(J){return new _.Ih(I2r,J)};
C1=function(J){return J instanceof _.Ih};
_.ah=function(J){if(C1(J))return J.privateDoNotAccessOrElseWrappedUrl;throw Error("da");};
kh=function(J){return new KTf(function(c){return c.substr(0,J.length+1).toLowerCase()===J+":"})};
H0=function(J,c){c=c===void 0?CRq:c;if(C1(J))return J;for(var m=0;m<c.length;++m){var b=c[m];if(b instanceof KTf&&b.isValid(J))return K1(J)}};
_.n1=function(J,c){c=c===void 0?CRq:c;return H0(J,c)||is};
_.wa=function(J){var c=window;if(typeof MediaSource!=="undefined"&&J instanceof MediaSource||typeof c.ManagedMediaSource!=="undefined"&&J instanceof c.ManagedMediaSource)return K1(URL.createObjectURL(J));c=J.type;c.toLowerCase()==="application/octet-stream"?c=!0:(c=c.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i),c=(c==null?void 0:c.length)===2&&(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(c[1])||/^video\/(?:3gpp|avi|mpeg|mpg|mp4|ogg|webm|x-flv|x-matroska|quicktime|x-ms-wmv)$/i.test(c[1])||
/^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(c[1])||/^font\/[\w-]+$/i.test(c[1])));if(!c)throw Error("da");return K1(URL.createObjectURL(J))};
_.L1=function(J){for(var c=_.s$.apply(1,arguments),m=[J[0]],b=0;b<c.length;b++)m.push(String(c[b])),m.push(J[b+1]);return K1(m.join(""))};
_.kRo=function(J){if(!a2t){a:{var c=document.createElement("a");try{c.href=J}catch(m){J=void 0;break a}J=c.protocol;J=J===":"||J===""?"https:":J}return J}try{c=new URL(J)}catch(m){return"https:"}return c.protocol};
_.Dx=function(J){J instanceof _.Ih?J=_.ah(J):J=HUq.test(J)?J:void 0;return J};
W0=function(J,c){c=_.Dx(c);c!==void 0&&(J.href=c)};
us=function(J){var c=t9e();J=c?c.createHTML(J):J;return new z$(J)};
f1=function(J){if(J instanceof z$)return J.privateDoNotAccessOrElseWrappedHtml;throw Error("da");};
_.Yh=function(J,c){J.src=_.N2(c).toString()};
iUG=function(J,c){J.setAttribute("sandbox","");for(var m=0;m<c.length;m++)J.sandbox.supports&&!J.sandbox.supports(c[m])||J.sandbox.add(c[m])};
_.nl3=function(J,c,m){J.removeAttribute("srcdoc");switch(c){case 0:if(m instanceof P0)throw new XH("TrustedResourceUrl",0);iUG(J,[]);c=_.Dx(m);c!==void 0&&(J.src=c);break;case 1:if(!(m instanceof P0))throw new XH(typeof m,1);iUG(J,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));_.Yh(J,m);break;case 2:if(m instanceof P0)throw new XH("TrustedResourceUrl",2);iUG(J,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));
c=_.Dx(m);c!==void 0&&(J.src=c);break;default:_.Pu(c)}};
_.Zx=function(J,c,m,b){c=_.Dx(c);return c!==void 0?J.open(c,m,b):null};
_.q2=function(J){J=J===void 0?document:J;var c,m;J=(m=(c=J).querySelector)==null?void 0:m.call(c,"script[nonce]");return J==null?"":J.nonce||J.getAttribute("nonce")||""};
_.S3=function(J){var c=t9e();J=c?c.createScript(J):J;return new _.U$(J)};
hG=function(J){if(J instanceof _.U$)return J.privateDoNotAccessOrElseWrappedScript;throw Error("da");};
T63=function(J){var c=_.q2(J.ownerDocument);c&&J.setAttribute("nonce",c)};
_.da=function(J,c){J.textContent=hG(c);T63(J)};
_.$h=function(J,c){J.src=_.N2(c);T63(J)};
_.G$=function(J,c){if(J.nodeType===1&&/^(script|style)$/i.test(J.tagName))throw Error("da");J.innerHTML=f1(c)};
_.E$=function(J,c,m,b){if(J.length===0)throw Error("da");J=J.map(function(P){if(P instanceof wwo)P=P.privateDoNotAccessOrElseWrappedAttributePrefix;else throw Error("da");return P});
var x=m.toLowerCase();if(J.every(function(P){return x.indexOf(P)!==0}))throw Error("ea`"+m);
c.setAttribute(m,b)};
_.O$=function(J,c,m){if(c instanceof P0)J.href=_.N2(c).toString(),J.rel=m;else{if(reo.indexOf(m)===-1)throw Error("fa`"+m);c=_.Dx(c);c!==void 0&&(J.href=c,J.rel=m)}};
s_t=function(J){return"function"==typeof _.AG&&J instanceof _.AG};
_.LTD=function(J){if(s_t(J))return J.privateDoNotAccessOrElseWrappedStyleSheet;throw Error("da");};
_.Rh=function(J,c){c=_.Dx(c);c!==void 0&&(J.href=c)};
oh=function(J,c){J&&(c=J.indexOf(c),0<=c&&J.splice(c,1))};
QU=function(J){return typeof J==="function"};
D0T=function(J){return J instanceof e3||J&&"closed"in J&&QU(J.remove)&&QU(J.add)&&QU(J.unsubscribe)};
j3=function(){};
FH=function(J){WTe(function(){throw J;})};
ls=function(J){return J};
yU=function(){return zAt(_.s$.apply(0,arguments))};
zAt=function(J){return J.length===0?ls:J.length===1?J[0]:function(c){return J.reduce(function(m,b){return b(m)},c)}};
u7G=function(J){var c;return(c=J!=null?J:void 0)!=null?c:Promise};
f2J=function(J,c){return new B0(function(m){var b=0;return c.schedule(function(){b===J.length?m.complete():(m.next(J[b++]),m.closed||this.schedule())})})};
Y12=function(J,c){if(!J)throw Error("ga");return new B0(function(m){var b=new e3;b.add(c.schedule(function(){var x=J[Symbol.asyncIterator]();b.add(c.schedule(function(){var P=this;x.next().then(function(p){p.done?m.complete():(m.next(p.value),P.schedule())})}))}));
return b})};
Xw2=function(J,c,m){c=c.schedule(function(){try{m.call(this)}catch(b){J.error(b)}},0);
J.add(c)};
ZUT=function(J,c){return new B0(function(m){var b;m.add(c.schedule(function(){b=J[JD]();Xw2(m,c,function(){var x=b.next(),P=x.value;x.done?m.complete():(m.next(P),this.schedule())})}));
return function(){var x;return QU((x=b)==null?void 0:x.return)&&b.return()}})};
q12=function(J,c){return new B0(function(m){var b=new e3;b.add(c.schedule(function(){var x=J[cR]();b.add(x.subscribe({next:function(P){b.add(c.schedule(function(){return m.next(P)}))},
error:function(P){b.add(c.schedule(function(){return m.error(P)}))},
complete:function(){b.add(c.schedule(function(){return m.complete()}))}}))}));
return b})};
U0r=function(J,c){return new B0(function(m){return c.schedule(function(){return J.then(function(b){m.add(c.schedule(function(){m.next(b);m.add(c.schedule(function(){return m.complete()}))}))},function(b){m.add(c.schedule(function(){return m.error(b)}))})})})};
S1u=function(J){return new TypeError("ha`"+(J!==null&&typeof J==="object"?"an invalid object":"'"+J+"'"))};
d0D=function(J,c){if(J!=null){if(QU(J[cR]))return q12(J,c);if(hAf(J))return f2J(J,c);if(QU(J==null?void 0:J.then))return U0r(J,c);if(Symbol.asyncIterator&&QU(J==null?void 0:J[Symbol.asyncIterator]))return Y12(J,c);if(QU(J==null?void 0:J[JD]))return ZUT(J,c)}throw S1u(J);};
bL=function(J,c){return c?d0D(J,c):mN(J)};
mN=function(J){if(J instanceof B0)return J;if(J!=null){if(QU(J[cR]))return $0D(J);if(hAf(J))return GRR(J);if(QU(J==null?void 0:J.then))return Elq(J);if(Symbol.asyncIterator&&QU(J==null?void 0:J[Symbol.asyncIterator]))return vlT(J);if(QU(J==null?void 0:J[JD]))return OUe(J)}throw S1u(J);};
$0D=function(J){return new B0(function(c){var m=J[cR]();if(QU(m.subscribe))return m.subscribe(c);throw new TypeError("ia");})};
GRR=function(J){return new B0(function(c){for(var m=0;m<J.length&&!c.closed;m++)c.next(J[m]);c.complete()})};
Elq=function(J){return new B0(function(c){J.then(function(m){c.closed||(c.next(m),c.complete())},function(m){return c.error(m)}).then(null,FH)})};
OUe=function(J){return new B0(function(c){for(var m=J[JD]();!c.closed;){var b=m.next(),x=b.value;b.done?c.complete():c.next(x)}return function(){return QU(m==null?void 0:m.return)&&m.return()}})};
vlT=function(J){return new B0(function(c){AeG(J,c).catch(function(m){return c.error(m)})})};
AeG=function(J,c){var m,b,x,P,p,t;return _.N(function(I){switch(I.nextAddress){case 1:_.xL(I,2,3);var a=J[Symbol.asyncIterator];P=a!==void 0?a.call(J):new RAo(_.M(J));case 5:return _.K(I,P.next(),8);case 8:b=I.yieldResult;if(b.done){I.jumpTo(3);break}p=b.value;c.next(p);I.jumpTo(5);break;case 3:_.PR(I);_.MM(I,9);if(!b||b.done||!(x=P.return)){I.jumpTo(9);break}return _.K(I,x.call(P),9);case 9:_.PR(I,0,0,1);if(m)throw m.error;_.p6(I,10,1);break;case 10:_.p6(I,4);break;case 2:t=_.NM(I);m={error:t};I.jumpTo(3);
break;case 4:c.complete(),_.tD(I)}})};
Il=function(J,c){return c?f2J(J,c):GRR(J)};
olm=function(J){return QU(J[J.length-1])?J.pop():void 0};
K6=function(J){var c=J[J.length-1];return c&&QU(c.schedule)?J.pop():void 0};
kL=function(){var J=_.s$.apply(0,arguments),c=K6(J);return c?f2J(J,c):Il(J)};
HR=function(J){var c=QU(J)?J:function(){return J};
return new B0(function(m){return m.error(c())})};
iL=function(J){return function(c){if(QU(c==null?void 0:c.lift))return c.lift(function(m){try{return J(m,this)}catch(b){this.error(b)}});
throw new TypeError("ja");}};
TG=function(){return iL(function(J,c){var m=null;J._refCount++;var b=new n6(c,void 0,void 0,void 0,function(){if(!J||J._refCount<=0||0<--J._refCount)m=null;else{var x=J._connection,P=m;m=null;!x||P&&x!==P||x.unsubscribe();c.unsubscribe()}});
J.subscribe(b);b.closed||(m=J.connect())})};
eAr=function(){var J=Q_3;var c=c===void 0?0:c;return iL(function(m,b){b.add(J.schedule(function(){return m.subscribe(b)},c))})};
sw=function(J){return iL(function(c,m){var b=0;c.subscribe(new n6(m,function(x){m.next(J.call(void 0,x,b++))}))})};
FTG=function(J){return sw(function(c){return j_2(c)?J.apply(null,_.L6(c)):J(c)})};
JGQ=function(J){if(J.length===1){var c=J[0];if(l2J(c))return{args:c,keys:null};if(c&&typeof c==="object"&&yeq(c)===B6e)return J=gle(c),{args:J.map(function(m){return c[m]}),
keys:J}}return{args:J,keys:null}};
DF=function(){var J=_.s$.apply(0,arguments),c=K6(J),m=olm(J);J=JGQ(J);var b=J.args,x=J.keys;if(b.length===0)return bL([],c);c=new B0(cGu(b,c,x?function(P){for(var p={},t=0;t<P.length;t++)p[x[t]]=P[t];return p}:ls));
return m?c.pipe(FTG(m)):c};
cGu=function(J,c,m){m=m===void 0?ls:m;return function(b){m2f(c,function(){for(var x=J.length,P=Array(x),p=x,t=J.map(function(){return!1}),I=!0,a={i$jscomp$216:0};a.i$jscomp$216<x;a={i$jscomp$216:a.i$jscomp$216},a.i$jscomp$216++)m2f(c,function(k){return function(){bL(J[k.i$jscomp$216],c).subscribe(new WR(b,function(H){P[k.i$jscomp$216]=H;
I&&(t[k.i$jscomp$216]=!0,I=!t.every(ls));I||b.next(m(P.slice()))},function(){return--p===0}))}}(a),b)},b)}};
m2f=function(J,c,m){J?m.add(J.schedule(c)):c()};
b1D=function(J,c,m,b){var x=[],P=0,p=0,t=!1,I=function(a){P++;mN(m(a,p++)).subscribe(new n6(c,function(k){c.next(k)},void 0,function(){P--;
for(var k={};x.length&&P<b;k={bufferedValue:void 0})k.bufferedValue=x.shift(),I(k.bufferedValue);!t||x.length||P||c.complete()}))};
J.subscribe(new n6(c,function(a){return P<b?I(a):x.push(a)},void 0,function(){t=!0;
!t||x.length||P||c.complete()}));
return function(){x=null}};
zG=function(J,c){var m=m===void 0?Infinity:m;if(QU(c))return zG(function(b,x){return sw(function(P,p){return c(b,P,x,p)})(mN(J(b,x)))},m);
typeof c==="number"&&(m=c);return iL(function(b,x){return b1D(b,x,J,m)})};
x2m=function(J){J=J===void 0?Infinity:J;return zG(ls,J)};
V3J=function(){var J=_.s$.apply(0,arguments);return x2m(1)(Il(J,K6(J)))};
f6=function(J){return new B0(function(c){mN(J()).subscribe(c)})};
YL=function(J,c,m){if(QU(m)){var b=m;m=void 0}if(b)return YL(J,c,m).pipe(FTG(b));b=_.M(QU(J.addEventListener)&&QU(J.removeEventListener)?Psu.map(function(p){return function(t){return J[p](c,t,m)}}):QU(J.addListener)&&QU(J.removeListener)?M3Q.map(p0D(J,c)):QU(J.on)&&QU(J.off)?NaD.map(p0D(J,c)):[]);
var x=b.next().value,P=b.next().value;return!x&&hAf(J)?zG(function(p){return YL(p,c,m)})(Il(J)):new B0(function(p){if(!x)throw new TypeError("ka");
var t=function(){var I=_.s$.apply(0,arguments);return p.next(1<I.length?I:I[0])};
x(t);return function(){return P(t)}})};
p0D=function(J,c){return function(m){return function(b){return J[m](c,b)}}};
ZF=function(){var J=_.s$.apply(0,arguments),c=K6(J);var m=typeof J[J.length-1]==="number"?J.pop():Infinity;return J.length?J.length===1?mN(J[0]):x2m(m)(Il(J,c)):XX};
Ixt=function(J){return J.length===1&&t3R(J[0])?J[0]:J};
K_t=function(){var J=Ixt(_.s$.apply(0,arguments));return iL(function(c,m){var b=[c].concat(_.L6(J)),x=function(){if(!m.closed)if(b.length>0){try{var P=mN(b.shift())}catch(t){x();return}var p=new n6(m,void 0,j3,j3);m.add(P.subscribe(p));p.add(x)}else m.complete()};
x()})};
qM=function(J){return iL(function(c,m){var b=0;c.subscribe(new n6(m,function(x){return J.call(void 0,x,b++)&&m.next(x)}))})};
axJ=function(){var J=_.s$.apply(0,arguments);J=Ixt(J);return J.length===1?mN(J[0]):new B0(CsR(J))};
CsR=function(J){return function(c){for(var m=[],b={i$jscomp$219:0};m&&!c.closed&&b.i$jscomp$219<J.length;b={i$jscomp$219:b.i$jscomp$219},b.i$jscomp$219++)m.push(mN(J[b.i$jscomp$219]).subscribe(new n6(c,function(x){return function(P){if(m){for(var p=0;p<m.length;p++)p!==x.i$jscomp$219&&m[p].unsubscribe();m=null}c.next(P)}}(b))))}};
k$D=function(){var J=_.s$.apply(0,arguments),c=olm(J),m=Ixt(J);return m.length?new B0(function(b){var x=m.map(function(){return[]}),P=m.map(function(){return!1});
b.add(function(){x=P=null});
for(var p={sourceIndex$jscomp$1:0};!b.closed&&p.sourceIndex$jscomp$1<m.length;p={sourceIndex$jscomp$1:p.sourceIndex$jscomp$1},p.sourceIndex$jscomp$1++)mN(m[p.sourceIndex$jscomp$1]).subscribe(new n6(b,function(t){return function(I){x[t.sourceIndex$jscomp$1].push(I);x.every(function(a){return a.length})&&(I=x.map(function(a){return a.shift()}),b.next(c?c.apply(null,_.L6(I)):I),x.some(function(a,k){return!a.length&&P[k]})&&b.complete())}}(p),void 0,function(t){return function(){P[t.sourceIndex$jscomp$1]=
!0;
!x[t.sourceIndex$jscomp$1].length&&b.complete()}}(p)));
return function(){x=P=null}}):XX};
H1R=function(J){var c,m,b;return!!J&&typeof J.active==="boolean"&&typeof((c=J.clock)==null?void 0:c.now)==="function"&&((m=J.clock)==null?void 0:m.timeline)!==void 0&&!((b=J.lastMeasurement)==null||!b.timestamp)&&typeof J.equivalentTo==="function"&&typeof J.extrapolateToNow==="function"&&typeof J.extrapolateToTime==="function"&&typeof J.map==="function"&&typeof J.joinWith==="function"};
i1q=function(J){function c(m){return typeof m==="boolean"||typeof m==="string"||typeof m==="number"||m===void 0||m===null}
return c(J)?!0:Array.isArray(J)?J.every(c):typeof J==="object"?Object.keys(J).every(function(m){return typeof m==="string"})&&Object.values(J).every(function(m){return Array.isArray(m)?m.every(c):c(m)}):!1};
nh2=function(J){if(i1q(J))return J;if(H1R(J))return{lastMeasurement:{value:nh2(J.lastMeasurement.value),timestamp:Uw(J.lastMeasurement.timestamp,new St(0,J.lastMeasurement.timestamp.timeline))},active:J.active};try{return JSON.parse(JSON.stringify(J))}catch(c){}return String(J)};
hD=function(J,c){return function(m){return new B0(function(b){return m.subscribe(function(x){J.timeExecution(c,function(){b.next(x)})()},function(x){J.timeExecution(c,function(){b.error(x)})()},function(){J.timeExecution(c,function(){b.complete()})()})})}};
TaQ=function(J,c){var m=!1;return new B0(function(b){var x=J.setTimeout(function(){m=!0;b.next(!0);b.complete()},c);
return function(){m||J.clearTimeout(x)}})};
w0D=function(J){J=J.global;if(J.fetchLater)return J.fetchLater.bind(J)};
d8=function(J){return iL(function(c,m){var b=null,x=!1,P;b=c.subscribe(new n6(m,void 0,function(p){P=mN(J(p,d8(J)(c)));b?(b.unsubscribe(),b=null,P.subscribe(m)):x=!0}));
x&&(b.unsubscribe(),b=null,P.subscribe(m))})};
rGt=function(J,c,m){return function(b,x){var P=m,p=c,t=0;b.subscribe(new n6(x,function(I){var a=t++;p=P?J(p,I,a):(P=!0,I);x.next(p)},void 0,void 0))}};
shr=function(J){J=J===void 0?null:J;return iL(function(c,m){var b=!1;c.subscribe(new n6(m,function(x){b=!0;m.next(x)},void 0,function(){b||m.next(J);
m.complete()}))})};
$L=function(){return iL(function(J,c){J.subscribe(new n6(c,j3))})};
GG=function(J){return iL(function(c,m){c.subscribe(new n6(m,function(){return m.next(J)}))})};
Ew=function(J){return J<=0?function(){return XX}:iL(function(c,m){var b=0;
c.subscribe(new n6(m,function(x){++b<=J&&(m.next(x),J<=b&&m.complete())}))})};
vR=function(J){var c=c===void 0?ls:c;var m;J=(m=J)!=null?m:L_f;return iL(function(b,x){var P,p=!0;b.subscribe(new n6(x,function(t){var I=c(t);if(p||!J(P,I))p=!1,P=I,x.next(t)}))})};
L_f=function(J,c){return J===c};
W_R=function(J){J=J===void 0?D2r:J;return iL(function(c,m){var b=!1;c.subscribe(new n6(m,function(x){b=!0;m.next(x)},void 0,function(){return b?m.complete():m.error(J())}))})};
D2r=function(){return new z$o};
AD=function(){var J=_.s$.apply(0,arguments);return function(c){return V3J(c,kL.apply(null,_.L6(J)))}};
uHu=function(J){return iL(function(c,m){var b=0;c.subscribe(new n6(m,function(x){J.call(void 0,x,b++,c)||(m.next(!1),m.complete())},void 0,function(){m.next(!0);
m.complete()}))})};
fxe=function(){return iL(function(J,c){var m=[];J.subscribe(new n6(c,function(b){m.push(b);1<m.length&&m.shift()},void 0,function(){for(var b=_.M(m),x=b.next();!x.done;x=b.next())c.next(x.value);
c.complete()},function(){m=null}))})};
Y$R=function(J,c){var m=arguments.length>=2;return function(b){return b.pipe(J?qM(function(x,P){return J(x,P,b)}):ls,fxe(),m?shr(c):W_R(function(){return new z$o}))}};
ol=function(J){var c=QU(J)?J:function(){return J};
return QU()?iL(function(m,b){var x=c();(void 0)(x).subscribe(b).add(m.subscribe(x))}):function(m){var b=new Rl(m,c);
QU(m==null?void 0:m.lift)&&(b.lift=m.lift);b.source=m;b.subjectFactory=c;return b}};
et=function(J){var c=new Qu(J,void 0,void 0);return function(m){return ol(function(){return c})(m)}};
jt=function(J,c){return iL(rGt(J,c,arguments.length>=2))};
FX=function(){var J=_.s$.apply(0,arguments),c=K6(J);return iL(function(m,b){(c?V3J(J,m,c):V3J(J,m)).subscribe(b)})};
lL=function(J){return iL(function(c,m){var b=null,x=0,P=!1;c.subscribe(new n6(m,function(p){var t;(t=b)==null||t.unsubscribe();t=x++;mN(J(p,t)).subscribe(b=new n6(m,function(I){return m.next(I)},void 0,function(){b=null;
P&&!b&&m.complete()}))},void 0,function(){(P=!0,!b)&&m.complete()}))})};
yu=function(J,c){c=c===void 0?!1:c;return iL(function(m,b){var x=0;m.subscribe(new n6(b,function(P){var p=J(P,x++);(p||c)&&b.next(P);!p&&b.complete()}))})};
BR=function(J,c,m){var b=QU(J)||c||m?{next:J,error:c,complete:m}:J;return b?iL(function(x,P){x.subscribe(new n6(P,function(p){var t;(t=b.next)==null||t.call(b,p);P.next(p)},function(p){var t;
(t=b.error)==null||t.call(b,p);P.error(p)},function(){var p;
(p=b.complete)==null||p.call(b);P.complete()}))}):ls};
X0G=function(){var J=_.s$.apply(0,arguments),c=olm(J);return iL(function(m,b){for(var x=J.length,P=Array(x),p=J.map(function(){return!1}),t=!1,I={i$jscomp$229:0};I.i$jscomp$229<x;I={i$jscomp$229:I.i$jscomp$229},I.i$jscomp$229++)mN(J[I.i$jscomp$229]).subscribe(new n6(b,function(a){return function(k){P[a.i$jscomp$229]=k;
t||p[a.i$jscomp$229]||(p[a.i$jscomp$229]=!0,(t=p.every(ls))&&(p=null))}}(I),void 0,j3));
m.subscribe(new n6(b,function(a){t&&(a=[a].concat(_.L6(P)),b.next(c?c.apply(null,_.L6(a)):a))}))})};
Z1J=function(J){var c=[],m=0,b;for(b in J)c[m++]=b;return c};
q$t=function(J,c){for(var m in J)if(J[m]==c)return!0;return!1};
U2f=function(J,c,m){for(var b in J)if(c.call(m,J[b],b,J))return b};
S$e=function(J){if(!J||typeof J!=="object")return J;if(typeof J.clone==="function")return J.clone();if(typeof Map!=="undefined"&&J instanceof Map)return new Map(J);if(typeof Set!=="undefined"&&J instanceof Set)return new Set(J);if(J instanceof Date)return new Date(J.getTime());var c=Array.isArray(J)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(J)||J instanceof DataView?{}:new J.constructor(J.length),m;for(m in J)c[m]=S$e(J[m]);return c};
h$o=function(J){var c=arguments.length;if(c==1&&Array.isArray(arguments[0]))return h$o.apply(null,arguments[0]);if(c%2)throw Error("oa");for(var m={},b=0;b<c;b+=2)m[arguments[b]]=arguments[b+1];return m};
d2e=function(J){var c=arguments.length;if(c==1&&Array.isArray(arguments[0]))return d2e.apply(null,arguments[0]);for(var m={},b=0;b<c;b++)m[arguments[b]]=!0;return m};
_.g8=function(J){return new wwo(J[0].toLowerCase())};
$2q=function(J){try{return new URL(J,window.document.baseURI)}catch(c){return new URL("about:invalid")}};
G$J=function(J,c){var m=c.createRange();m.selectNode(c.body);J=us(J);return m.createContextualFragment(f1(J))};
Ehu=function(J){J=J.nodeName;return typeof J==="string"?J:"FORM"};
vhD=function(J){J=J.nodeType;return J===1||typeof J!=="number"};
Jk=function(J,c,m){J.setAttribute(c,m)};
O1q=function(J){return J.parts.map(function(c){var m=c.descriptor;return""+c.url+(m?" "+m:"")}).join(" , ")};
_.cm=function(J){var c=_.s$.apply(1,arguments);if(c.length===0)return _.p1(J[0]);for(var m=J[0],b=0;b<c.length;b++)m+=encodeURIComponent(c[b])+J[b+1];return _.p1(m)};
_.mp=function(J,c){J=_.N2(J).toString();var m=J.split(/[?#]/),b=/[?]/.test(J)?"?"+m[1]:"";return AGe(m[0],b,/[#]/.test(J)?"#"+(b?m[2]:m[1]):"",c)};
AGe=function(J,c,m,b){function x(p,t){p!=null&&(Array.isArray(p)?p.forEach(function(I){return x(I,t)}):(c+=P+encodeURIComponent(t)+"="+encodeURIComponent(p),P="&"))}
var P=c.length?"&":"?";b.constructor===Object&&(b=Object.entries(b));Array.isArray(b)?b.forEach(function(p){return x(p[1],p[0])}):b.forEach(x);
return _.p1(J+c+m)};
bK=function(J,c,m,b){this.top=J;this.right=c;this.bottom=m;this.left=b};
R$R=function(J){J=J.global;if(J.PendingGetBeacon)return J.PendingGetBeacon};
Vr=function(J){return function(c){return c.pipe(ohD(J,ol(new x0)))}};
Pm=function(J){return function(c){return c.pipe(ohD(J,et(1)))}};
ohD=function(J,c){function m(b){return new B0(function(x){return b.subscribe(function(P){MA(J,function(){return void x.next(P)},3)},function(P){MA(J,function(){return void x.error(P)},3)},function(){MA(J,function(){return void x.complete()},3)})})}
return yU(m,eAr(),c,TG(),m)};
jhu=function(J){var c=Qhm(J);return c===null?new pw(null):c.pipe(sw(function(m){m=m.serialize();if(e$Q)m=_.mo.btoa(m);else{for(var b=[],x=0,P=0;P<m.length;P++){var p=m.charCodeAt(P);p>255&&(b[x++]=p&255,p>>=8);b[x++]=p}m=_.yR(b)}return m}),Ew(1),Pm(J.queue))};
F_2=function(J){var c=c===void 0?{}:c;if(typeof Event==="function")return new Event(J,c);if(typeof document!=="undefined"){var m=document.createEvent("CustomEvent");m.initCustomEvent(J,c.bubbles||!1,c.cancelable||!1,c.detail);return m}throw Error();};
lxJ=function(J){return typeof J==="string"?document.getElementById(J):J};
Baf=function(J){var c=!1;c=c===void 0?!1:c;if(J.tagName==="IMG"){if(J.complete&&(!J.naturalWidth||!J.naturalHeight))return!0;var m;if(c&&((m=J.style)==null?void 0:m.display)==="none")return!0}var b,x;return yGR.test((b=J.getAttribute("width"))!=null?b:"")&&yGR.test((x=J.getAttribute("height"))!=null?x:"")};
ghr=function(J,c){if(J.tagName==="IMG")return J.naturalWidth&&J.naturalHeight?!0:!1;try{if(J.readyState)var m=J.readyState;else{var b,x;m=(b=J.contentWindow)==null?void 0:(x=b.document)==null?void 0:x.readyState}return m==="complete"}catch(P){return c===void 0?!1:c}};
JD2=function(J){J||(J=function(c,m,b){c.addEventListener(m,b)});
return J};
xM2=function(J,c){var m=cDm();m=m===void 0?new mMq:m;if(J=lxJ(J)){var b=JD2(b);for(var x=!1,P=function(Z){x||(x=!0,c(Z))},p,t=2,I=0;I<b6r.length;++I)if(b6r[I]===J.tagName){t=3;
p=[J];break}p||(p=J.querySelectorAll(b6r.join(",")));var a=0,k=0,H=!0,T=J=!1;I={};for(var r=0;r<p.length;I={isImg:void 0},r++){var W=p[r];if(!Baf(W))if(I.isImg=W.tagName==="IMG",ghr(W,m.crossDomainLoadedDefault))J=!0,I.isImg&&(H=!0);else{a++;var Y=function(Z){return function(d){a--;!a&&H&&P(t);Z.isImg&&(d=d&&d.type==="error",k--,d||(H=!0),!k&&T&&H&&P(t))}}(I);
b(W,"load",Y);I.isImg&&(k++,b(W,"error",Y))}}k===0&&(H=!0);p=null;p=_.mo.document.readyState==="complete";if(a===0&&!J&&p)t=5;else if(a||!J){b(_.mo,"load",function(){!m.pendingImagesBlockLoad||!k&&H?P(4):T=!0});
return}P(t)}};
Vtf=function(J,c,m){if(J)for(var b=0;J!=null&&b<500&&!m(J);++b)J=c(J)};
PLT=function(J,c){Vtf(J,function(m){try{return m===m.parent?null:m.parent}catch(b){}return null},c)};
Mt3=function(J,c){if(J.tagName=="IFRAME")c(J);else{J=J.querySelectorAll("IFRAME");for(var m=0;m<J.length&&!c(J[m]);++m);}};
pRG=function(J){return(J=J.ownerDocument)&&(J.parentWindow||J.defaultView)||null};
N8r=function(J,c,m){try{var b=JSON.parse(m.data)}catch(p){}if(typeof b==="object"&&b&&b.type==="creativeLoad"){var x=pRG(J);if(m.source&&x){var P;PLT(m.source,function(p){try{if(p.parent===x)return P=p,!0}catch(t){}});
P&&Mt3(J,function(p){if(p.contentWindow===P)return c(b),!0})}}};
ttm=function(J){return typeof J==="string"?document.getElementById(J):J};
aFD=function(){var J={};return J[0]=_.cm(IFm,"current"),J[1]=_.cm(KNG),J[2]=_.cm(CLf),J};
NA=function(J,c){return J.left===c.left&&J.top===c.top&&J.width===c.width&&J.height===c.height};
kGe=function(J,c){return{left:Math.max(J.left,c.left),top:Math.max(J.top,c.top),width:Math.max(0,Math.min(J.left+J.width,c.left+c.width)-Math.max(J.left,c.left)),height:Math.max(0,Math.min(J.top+J.height,c.top+c.height)-Math.max(J.top,c.top))}};
H6G=function(J,c){return{left:Math.round(J.left+c.x),top:Math.round(J.top+c.y),width:J.width,height:J.height}};
i6e=function(J,c,m){if(J&&c!==null&&c!=c.top){if(!c.top)return new _.tk(-12245933,-12245933);c=c.top}try{return(m===void 0?0:m)?(new _.tk(c.innerWidth,c.innerHeight)).round():_.Iw(c).round()}catch(b){return new _.tk(-12245933,-12245933)}};
nLq=function(J,c,m){try{if(J){if(!c.top)return new bK(-12245933,-12245933,-12245933,-12245933);c=c.top}var b=i6e(J,c,m),x=b.height,P=b.width;if(P===-12245933)return new bK(P,P,P,P);var p=Kw(Cw(c.document)),t=p.x,I=p.y;return new bK(I,t+P,I+x,t)}catch(a){return new bK(-12245933,-12245933,-12245933,-12245933)}};
T8e=function(J){var c;return(c=J.google_tag_data)!=null?c:J.google_tag_data={}};
wRu=function(J){var c,m;return typeof((c=J.navigator)==null?void 0:(m=c.userAgentData)==null?void 0:m.getHighEntropyValues)==="function"};
slt=function(J){if(!wRu(J))return null;var c=T8e(J);if(c.uach_promise)return c.uach_promise;J=J.navigator.userAgentData.getHighEntropyValues(rDr).then(function(m){c.uach!=null||(c.uach=m);return m});
return c.uach_promise=J};
Swe=function(J){var c;return LNR(DMT(WN2(zND(uXD(fFf(Ywf(XRo(Z6J(new qwG,J.architecture||""),J.bitness||""),J.mobile||!1),J.model||""),J.platform||""),J.platformVersion||""),J.uaFullVersion||""),((c=J.fullVersionList)==null?void 0:c.map(function(m){var b=new UMm;b=_.aw(b,1,m.brand);return _.aw(b,2,m.version)}))||[]),J.wow64||!1)};
hNG=function(J){var c,m;return(m=(c=slt(J))==null?void 0:c.then(function(b){return Swe(b)}))!=null?m:null};
dMG=function(J,c){return new B0(function(m){var b=!1,x=Array(c.length);x.fill(void 0);var P=new Set,p=new Set,t=function(H,T){J.running?(x[T]=H,P.add(T),b||(b=!0,MA(J,function(){b=!1;m.next(_.Fe(x))},1))):m.error(new k0(T))},I=function(H,T){p.add(T);
P.add(T);MA(J,function(){m.error(H)},1)},a=function(H){p.add(H);
MA(J,function(){p.size===c.length&&m.complete()},1)},k=c.map(function(H,T){return H.subscribe(function(r){return void t(r,T)},function(r){return void I(r,T)},function(){return void a(T)})});
return function(){k.forEach(function(H){return void H.unsubscribe()})}})};
GGQ=function(J,c,m){function b(){if(c.debugChannel){var Z=c.debugChannel,d=Z.next;var G={creativeId:c.debugNames.getName(m),requiredSignals:x,signals:Object.assign({},P),hasPrematurelyCompleted:p,errorMessage:t,erroredSignalKey:I};G={specMajor:2,specMinor:0,specPatch:0,timestamp:Uw(c.timeProvider.now(),new St(0,c.timeProvider.timeline)),instanceId:c.debugNames.getName(c.symbol),creativeState:G};d.call(Z,G)}}
for(var x=Object.keys(J),P={},p=!1,t=null,I=null,a={},k=new Set,H=[],T=[],r=_.M(x),W=r.next(),Y={};!W.done;Y={key$jscomp$374:void 0},W=r.next())Y.key$jscomp$374=W.value,W=J[Y.key$jscomp$374],W instanceof pw?(a[Y.key$jscomp$374]=W.value,k.add(Y.key$jscomp$374),c.debugChannel&&(P[String(Y.key$jscomp$374)]=nh2(W.value))):(W=W.pipe(vR(function(Z,d){return H1R(Z)||H1R(d)?!1:Z===d}),sw(function(Z){return function(d){c.debugChannel&&(P[String(Z.key$jscomp$374)]=nh2(d),b());
var G={};return G[Z.key$jscomp$374]=d,G}}(Y)),d8(function(Z){return function(d){if(d instanceof k0)throw new $MD(String(Z.key$jscomp$374));
throw d;}}(Y)),BR(function(Z){return function(){k.add(Z.key$jscomp$374)}}(Y),function(Z){return function(d){I=String(Z.key$jscomp$374);
t=String(d);b()}}(Y),function(Z){return function(){k.has(Z.key$jscomp$374)||(p=!0,b())}}(Y))),T.push(Y.key$jscomp$374),H.push(W));
(J=Object.keys(P).length>0)&&b();r=dMG(c.queue,H).pipe(d8(function(Z){if(Z instanceof k0)throw new Hm(String(T[Z.inputObservableIndex]));throw Z;}),sw(function(Z){return Object.freeze(Object.assign.apply(Object,[{},
a].concat(_.L6(Z))))}));
return(H=H.length>0)&&J?ZF(kL(Object.freeze(a)),r):H?r:kL(Object.freeze(a))};
ELe=function(J,c,m,b,x){return J.performanceMonitor.timeExecution.bind(J.performanceMonitor)(733,function(){var P={};try{return c.pipe(d8(function(p){b(Object.assign({},P,{error:p}));return XX}),zG(function(p){try{var t=m(J,p)}catch(a){return b(Object.assign({},P,{error:a instanceof Error?a:String(a)})),XX}var I={};
return GGQ(t,J,p.symbol).pipe(BR(function(a){I=a}),et(1),TG()).pipe(x,d8(function(a){b(Object.assign({},I,{error:a}));
return XX}),AD(void 0),sw(function(){return!0}))})).pipe(jt(function(p){return p+1},0),d8(function(p){b(Object.assign({},P,{error:p}));
return XX}))}catch(p){return b(Object.assign({},P,{error:p})),XX}})()};
iK=function(J){var c=new Map;if(typeof J!=="object"||J===null)return c;Object.values(J).forEach(function(m){m&&typeof m.extrapolateToNow==="function"&&(c.has(m.clock.timeline)||c.set(m.clock.timeline,m.clock.now()))});
return c};
vLo=function(J,c){return typeof J==="string"?encodeURIComponent(J):typeof J==="number"?String(J):Array.isArray(J)?J.map(function(m){return vLo(m,c)}).join(","):J instanceof St?J.toString():J&&typeof J.extrapolateToNow==="function"?vLo(J.extrapolateUsingTimestampMap(c).value,c):J===!0?"1":J===!1?"0":J===void 0||J===null?null:J instanceof O6Q?ADR(J):[J.top,
J.left,J.top+J.height,J.left+J.width].join()};
TO=function(J,c){J=Object.entries(J).map(function(m){var b=_.M(m);m=b.next().value;b=b.next().value;b=vLo(b,c);return b===null?"":m+"="+b}).filter(function(m){return m!==""});
return J.length?J.join("&"):""};
Qlm=function(J,c){var m=RND,b=oLR;c=c===void 0?.01:c;return function(x){c>0&&Math.random()<=c&&(J.global.HTMLFencedFrameElement&&J.global.fence&&typeof J.global.fence.reportEvent==="function"&&J.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(J.performanceMonitor.timedFunctionContext),errorEscapedQueryId:x.escapedQueryId}),m(Object.assign({},x,{payloadMapper:function(){return function(P){try{return b(Object.assign({},P))}catch(p){return{}}}}(),
urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=error&bin=17"]}),iK(x)).forEach(function(P){J.beaconFactory.makeBeacon(P).sendNow()}))}};
eNG=function(){var J=_.s$.apply(0,arguments);return function(c){var m=c.pipe(et(1),TG());c=J.map(function(b){return m.pipe(b,AD(!0))});
return DF(c).pipe(Ew(1),$L())}};
jlG=function(){var J=_.s$.apply(0,arguments);return function(c){var m=c.pipe(et(1),TG());c=J.map(function(b){return m.pipe(b,AD(!0))});
return ZF.apply(null,_.L6(c)).pipe(Ew(1),$L())}};
FNQ=function(J,c){return function(m){var b=m.pipe(et(1),TG());m=b.pipe(J,AD(!0));b=b.pipe(yU(c,et(),TG()),AD(!0));m=DF([m,b]);return axJ(m,b).pipe(Ew(1),$L())}};
lFJ=function(J,c,m){m(!0)};
yDG=function(J,c){return yU(lL(function(m){var b=J(m),x=c(m),P={};return b&&x&&P?new B0(function(p){x(b,P,function(t){p.next(Object.assign({},m,{canEmit:t}));p.complete()});
return function(){}}):w7}),qM(function(m){return m.canEmit}))};
B8f=function(J){var c={attributes:!0,childList:!0,characterData:!0,subtree:!0};return function(m){return m.pipe(lL(function(b){return new B0(function(x){function P(){t.disconnect();I.unsubscribe()}
var p=J.MutationObserver;if(p&&b.ref!==void 0){var t=new p(function(a){x.next(a)});
t.observe(b.ref,c);var I=b.JSC$7371_released.subscribe(P);return P}})}))}};
gLr=function(J){if(J.measurementDeferralState===3)return null;if(J.timeOnScreenReason!==void 0){var c=J.creativeFound===!1?"n":null;if(c!==null)return c}return J.geometricMeasurementErrors instanceof r7?"msf":J.contextValidationErrors instanceof sz?"c":J.contextVisibilityKnown===!1?"pv":J.geometricMeasurementErrors||J.contextValidationErrors?"x":null};
Dd=function(J,c){return J.replace(JkR,function(m,b){try{var x=_.Lw.get(c,b);if(x==null||x.toString()==null)return m;x=x.toString();if(x==""||!_.Mf(x==null?"":String(x)))return encodeURIComponent(x).replace(/%2C/g,",")}catch(P){}return m})};
ckJ=function(J,c){var m=Object.assign({},J),b=J.userAgentClientHints;m=(delete m.userAgentClientHints,m);m=J.payloadMapper(m);var x=TO(m,c);return _.Wm(J.urlPrefixes,function(P){var p="";typeof b==="string"&&(p="&"+TO({uach:b},c));var t={};return Dd(P,(t.VIEWABILITY=x,t))+p})};
RND=function(J,c){var m=J.payloadMapper(J),b=TO(m,c);return b?_.Wm(J.urlPrefixes,function(x){x=x.indexOf("?")>=0?x:x+"?";x="?&".indexOf(x.slice(-1))>=0?x:x+"&";return x+b}):J.urlPrefixes};
mAo=function(){return yU(qM(function(J){return J!==void 0}),sw(function(J){return J}))};
bwR=function(J){return yU(sw(function(){return!0}),FX(!1),Pm(J))};
xAq=function(J){return J.length<=0?XX:DF(J.map(function(c){var m=0;return c.pipe(sw(function(b){return{index:m++,value:b}}))})).pipe(qM(function(c){return c.every(function(m){return m.index===c[0].index})}),sw(function(c){return c.map(function(m){return m.value})}))};
VUo=function(J,c){J.currentState&&(J.previousState=J.currentState);J.currentState=c;J.previousState&&J.previousState.value?(c=Math.max(0,Uw(c.timestamp,J.previousState.timestamp)),J.totalTime+=c,J.consecutiveTime+=c):J.consecutiveTime=0;return J};
PKt=function(){return yU(jt(VUo,{totalTime:0,consecutiveTime:0}),sw(function(J){return J.totalTime}))};
MUf=function(){return yU(jt(VUo,{totalTime:0,consecutiveTime:0}),sw(function(J){return J.consecutiveTime}))};
pme=function(J,c){return function(m){return xAq(c.map(function(b){return m.pipe(J(b))}))}};
N7o=function(){var J;return yU(BR(function(c){return void(J=c.timestamp)}),MUf(),sw(function(c){return{timestamp:J,
value:Math.round(c)}}))};
tUe=function(J,c){return NA(J.topWindowViewportExternalGeometry,c.topWindowViewportExternalGeometry)&&NA(J.elementGeometry,c.elementGeometry)&&NA(J.exposedViewportLocalGeometry,c.exposedViewportLocalGeometry)&&NA(J.intersectionGeometry,c.intersectionGeometry)&&J.elementGeometrySourceName===c.elementGeometrySourceName&&J.measurementRequests===c.measurementRequests&&J.viewportGeometrySourceName===c.viewportGeometrySourceName&&J.viewportLocalAppOffset.x===c.viewportLocalAppOffset.x&&J.viewportLocalAppOffset.y===
c.viewportLocalAppOffset.y};
CK2=function(J,c){return function(m){return function(b){var x=b.pipe(ol(new x0),TG());b=m.element.pipe(vR());x=x.pipe(sw(function(P){return P.value}));
return DF([b,x,c]).pipe(sw(function(P){var p=_.M(P);P=p.next().value;var t=p.next().value;p=p.next().value;if(P.ref===void 0)var I={top:0,left:0,width:0,height:0};else{I=P.ref.getBoundingClientRect();var a=P.ref,k=J.global,H=new _.zO(0,0),T=uK(_.fw(a));if(Y0(T,"parent")){do{if(T==k)var r=_.Xt(a);else r=Idt(a),r=new _.zO(r.left,r.top);H.x+=r.x;H.y+=r.y}while(T&&T!=k&&T!=T.parent&&(a=T.frameElement)&&(T=T.parent))}I={top:H.y,left:H.x,width:I.width,height:I.height}}I=H6G(I,t.viewportLocalAppOffset);
k=kGe(I,t.exposedViewportLocalGeometry);H=J.timeProvider.now();T=Object;a=T.assign;if(p!==2||J.inCrossDomainIframe||k.width<=0||k.height<=0)var W=!1;else try{var Y=J.document.elementFromPoint(k.left+k.width/2,k.top+k.height/2);W=Y?!Kpq(Y,P):!1}catch(Z){W=!1}return{timestamp:H,value:a.call(T,{},t,{elementGeometrySourceName:"geo",intersectionGeometry:W?Zd.intersectionGeometry:k,elementGeometry:I})}}),Vr(J.queue))}}};
Kpq=function(J,c,m){m=m===void 0?0:m;return J.ref===void 0||c.ref===void 0?!1:J.ref===c.ref||_.qA(c.ref,function(b){return b===J.ref})?!0:c.ref.ownerDocument&&c.ref.ownerDocument.defaultView&&c.ref.ownerDocument.defaultView===c.ref.ownerDocument.defaultView.top?!1:m<10&&c.ref.ownerDocument&&c.ref.ownerDocument.defaultView&&c.ref.ownerDocument.defaultView.frameElement?Kpq(J,new Uz(c.ref.ownerDocument.defaultView.frameElement),m+1):!0};
HwD=function(J){return function(c){return c.pipe(J.ResizeObserver?ad3(J):kOf(J),et(1),TG())}};
ad3=function(J){return function(c){return c.pipe(lL(function(m){var b=J.ResizeObserver;if(!b||m.ref===void 0)return kL(Zd.elementGeometry);var x=(new B0(function(P){function p(){m.ref!==void 0&&t.unobserve(m.ref);t.disconnect();I.unsubscribe()}
if(m.ref===void 0)return P.complete(),function(){};
var t=new b(function(a){a.forEach(function(k){P.next(k)})});
t.observe(m.ref);var I=m.JSC$7371_released.subscribe(p);return p})).pipe(hD(J.performanceMonitor,736),sw(function(P){return P.contentRect}));
return ZF(kL(m.ref.getBoundingClientRect()),x)}),vR(NA))}};
kOf=function(J){return function(c){var m=c.pipe(B8f(J)),b=J.onResize;m=ZF(c.pipe(sw(function(){return F_2("resize")})),m,b);
return DF(c,m).pipe(hD(J.performanceMonitor,737),sw(function(x){x=_.M(x).next().value;return x.ref===void 0?void 0:x.ref.getBoundingClientRect()}),mAo(),vR(NA))}};
T7D=function(J,c){var m=iwo(J,c).pipe(et(1),TG());return function(b){return function(x){x=x.pipe(lL(function(P){return P.element}),vR());
return DF([m,x]).pipe(lL(function(P){var p=_.M(P);P=p.next().value;p=p.next().value;return n0Q(J,P.intersectionObserver,HwD(J),P.observations,b,P.flushRecords,p)}),Vr(J.queue))}}};
wmT=function(J){return sw(function(c){return c.value.viewportGeometrySourceName!=="nio"?c:Object.assign({},c,{value:Object.assign({},c.value,{exposedViewportLocalGeometry:SU(J,!0),topWindowViewportExternalGeometry:SU(J,!0)})})})};
rkJ=function(J,c){return kL(c).pipe(J,sw(function(){return c}))};
iwo=function(J,c){return J.timeProvider.timeline!==swf?HR(new r7(2)):J.MutationObserver?typeof IntersectionObserver==="undefined"?HR(new r7(0)):(new B0(function(m){var b=new x0,x=new hk(b.next.bind(b),{threshold:[].concat(_.L6(c))});m.next({observations:b.pipe(hD(J.performanceMonitor,735)),intersectionObserver:x,flushRecords:function(P){P=x.takeRecords(P);P.length>0&&b.next(P)}})})).pipe(Ew(1),et(1),TG()):HR(new r7(1))};
LpJ=function(J){return d0D(J.sort(function(c,m){return c.time-m.time}),Q_3)};
n0Q=function(J,c,m,b,x,P,p){return new B0(function(t){function I(){W||(W=!0,p.ref!==void 0&&c.unobserve(x,p.ref),k.unsubscribe(),r.unsubscribe(),T.unsubscribe(),Y.unsubscribe())}
if(p.ref!==void 0){DA3(c,x);c.observe(x,p.ref);var a=new d7({timestamp:J.timeProvider.now(),value:Object.assign({},Zd,{viewportGeometrySourceName:"nio",elementGeometrySourceName:"nio"})}),k=b.pipe(zG(function(Z){return LpJ(Z)}),qM(function(Z){return Z.target===p.ref}),sw(function(Z){return{timestamp:new St(Z.time,swf),
value:{viewportGeometrySourceName:"nio",exposedViewportLocalGeometry:Z.rootBounds||$0,topWindowViewportExternalGeometry:Z.rootBounds||SU(J,!0),measurementRequests:H,elementGeometrySourceName:"nio",intersectionGeometry:Z.intersectionRect,elementGeometry:Z.boundingClientRect,viewportLocalAppOffset:{x:0,y:0},isIntersecting:Z.isIntersecting,isV2Visible:Z.isVisible}}}),ol(a),TG()).subscribe(t),H=new x0,T=H.subscribe(function(){P(x);
t.next({timestamp:J.timeProvider.now(),value:a.value.value});p.ref!==void 0&&(c.unobserve(x,p.ref),c.observe(x,p.ref))}),r=rkJ(m,p).subscribe(function(){H.next()}),W=!1,Y=p.JSC$7371_released.subscribe(function(){return I()});
return I}})};
WpQ=function(J,c){var m=J.getOnBackgrounded().pipe(sw(function(){return"b"}));
return axJ(c,m).pipe(Ew(1),Pm(J.queue))};
Ez=function(J){return function(c){var m;return c.pipe(BR(function(b){return void(m=b.timestamp)}),sw(function(b){return b.value}),J,sw(function(b){return{timestamp:m,
value:b}}))}};
zVf=function(J){return J.intersectionGeometry.width*J.intersectionGeometry.height/(J.elementGeometry.width*J.elementGeometry.height)};
vm=function(J,c,m){m=m===void 0?function(b,x){return b===x}:m;
return J.timestamp.equals(c.timestamp)&&m(J.value,c.value)};
Ak=function(J,c){return c.pipe(sw(function(m){return new Oz(J.timeProvider,{timestamp:J.timeProvider.now(),value:m})}))};
utt=function(J){return function(c){return c.pipe(X0G(J),sw(function(m){var b=_.M(m);m=b.next().value;b=b.next().value;var x=m.value;return{timestamp:m.timestamp,value:x>=1?!0:x<=0?!1:x>=b}}))}};
Yzf=function(){return yU(qM(function(J,c){return c>0}),fdD,FX(-1),vR())};
XmG=function(J,c,m){return J?DF([c,m]).pipe(qM(function(b){var x=_.M(b);b=x.next().value;x=x.next().value;return b.timestamp.equals(x.timestamp)}),sw(function(b){var x=_.M(b);
b=x.next().value;x=x.next().value;return b.value>x.value?b:x})):c};
UAe=function(J){return function(c){var m=c.pipe(ZwD),b=c.pipe(qze);return J instanceof B0?J.pipe(lL(function(x){return XmG(x,m,b)})):XmG(J.value,m,b)}};
RVo=function(J,c,m,b){var x=b.geometryIsOccluded,P=b.exposureThreshold,p=b.wasLargeAdAtRender,t=b.allowLargeAdThreshold,I=b.largeAdExposureThreshold,a=b.mayUseViewportShareExposure,k=b.hasMeasurementStarted;b=b.useIntersectionObserverV2;c=Szu(J,m,c);m=hVR(J,m);b=dAe(c,b);var H=$AG(J,x,a,c),T=H.pipe(sw(function(l){return l.value}),vR(),Pm(J),jt(function(l,y){return Math.max(l,y)},0)),r=H.pipe(sw(function(l){return l.value}),Yzf(),Pm(J)),W=c.pipe(GOD,sw(function(l){return l.value}),Ew(2),vR(),Pm(J));
p=E0e(J,c,p,t);var Y=p.pipe(FX(!1),vR(),sw(function(l){return l?I:P}));
t=H.pipe(utt(Y),vR(),Pm(J));var Z=DF([t,c]).pipe(qM(function(l){var y=_.M(l);l=y.next().value;y=y.next().value;return l.timestamp.equals(y.timestamp)}),sw(function(l){var y=_.M(l);
l=y.next().value;y=y.next().value;return{visible:l.value,geometry:y.value.elementGeometry}}),jt(function(l,y){return!y.visible&&l.visible?l:y},{visible:!1,
geometry:$0}),sw(function(l){return l.geometry}),FX($0),Pm(J),vR(NA));
a=a instanceof B0?a.pipe(vR(),GG()):w7;Y=DF([a,Y]).pipe(GG());var d=c.pipe(qM(function(l){return l.value.viewportGeometrySourceName!=="ns"&&l.value.elementGeometrySourceName!=="ns"}),jt(function(l){return l+1},0),FX(0),Pm(J)),G=m.pipe(GG(!0),FX(!1),Pm(J));
G=DF([k,G]).pipe(sw(function(l){var y=_.M(l);l=y.next().value;y=y.next().value;return l&&!y}),Pm(J));
var e=c.pipe(v03,vR()),A=e.pipe(sw(function(l){return l.value}),jt(function(l,y){return Math.max(l,y)},0),vR(),Pm(J));
J=e.pipe(sw(function(l){return l.value}),Yzf(),Pm(J));
return{shouldResetExposureSignals:a,shouldResetViewabilitySignals:Y,geometrySignals:{readyGeometryWithDefault:c,measurementStrategy:c.pipe(OwT),creativePosition:Z.pipe(vR(NA)),visible:t.pipe(vR(vm)),timestampedExposure:H.pipe(vR(vm)),maximumExposure:T,minimumExposure:r,browserSize:c.pipe(Aku,vR(_.Mu)),timestampedScreenShare:e,maxScreenShare:A,minScreenShare:J,geometricMeasurementErrors:m,measurementRequests:c.pipe(sw(function(l){return l.value.measurementRequests})),
isLargeAd:p,geometryIsOccluded:x,hasMeasurementStarted:k,geometryMeasurable:G,validMeasurementCount:d,loadTimeExposure:W,v2VisibilityBitVector:b}}};
hVR=function(J,c){return c.pipe(qM(function(){return!1}),sw(function(m){return m}),d8(function(m){return Rw(new pw(m),J)}))};
Szu=function(J,c,m){return c.pipe(K_t(w7),Pm(J)).pipe(vR(function(b,x){return vm(b,x,tUe)}),FX({timestamp:m.now(),
value:Zd}),Pm(J))};
$AG=function(J,c,m,b){m=b.pipe(UAe(m),Ez(sw(function(x){return Math.round(x*100)/100})),Pm(J));
return c instanceof pw?m:DF([m,c]).pipe(sw(function(x){var P=_.M(x);x=P.next().value;P=P.next().value;return{timestamp:P.timestamp.maximum(x.timestamp),value:P.value?0:x.value}}),vR(vm),Pm(J))};
E0e=function(J,c,m,b){c=[c.pipe(sw(function(x){return x.value.elementGeometry.width*x.value.elementGeometry.height>=242500}))];
m instanceof B0&&c.push(m.pipe(sw(function(x){return!!x})));
m=DF(c);return b?m.pipe(sw(function(x){return x.some(function(P){return P})}),FX(!1),vR(),Pm(J)):Rw(new pw(!1),J)};
dAe=function(J,c){J=DF([J,c]).pipe(sw(function(x){var P=_.M(x);x=P.next().value;if(P.next().value&&x.value.isIntersecting)return x.value.isV2Visible}),vR());
var m=J.pipe(sw(function(x){return x===void 0?!0:x}),jt(function(x,P){return x||!P},!1)),b=J.pipe(jt(function(x,P){return P===void 0?x:P?!1:x!=null?x:!0},void 0),sw(function(x){return!!x}));
return DF([c,k$D(J,m,b)]).pipe(sw(function(x){var P=_.M(x);x=P.next().value;var p=_.M(P.next().value);P=p.next().value;var t=p.next().value;p=p.next().value;var I=0;if(!x)return 0;if(P===void 0)return 16;P&&(I|=1);P||(I|=2);t&&(I|=4);p&&(I|=8);return I}))};
jwJ=function(J,c,m,b,x){var P=ow.timeThresholdMs;var p=p===void 0?new o0q(c,b):p;return(new B0(function(t){var I=m.pipe(FX(void 0),lL(function(){return Qwf(x)})).pipe(sw(function(a){var k=a.value;
a=a.timestamp;var H=k.visible;k=k.consecutiveViewTime;var T=k>=P;T||!H?Qr(p):(a=Math.max(0,Uw(c.now(),a)),eV2(p,Math.max(0,P-k-a)));return T}),jt(function(a,k){return k||a},!1),vR()).subscribe(t);
return function(){p.dispose();I.unsubscribe()}})).pipe(yu(function(t){return!t},!0),Pm(J))};
Qwf=function(J){return xAq([J,J.pipe(N7o())]).pipe(sw(function(c){var m=_.M(c);c=m.next().value;m=m.next().value;return{timestamp:c.timestamp,value:{visible:c.value,consecutiveViewTime:m.value}}}),vR(function(c,m){return vm(c,m,function(b,x){return b.consecutiveViewTime===x.consecutiveViewTime&&b.visible===x.visible})}))};
Fpe=function(){return yU(MUf(),jt(function(J,c){return Math.max(J,c)},0),sw(function(J){return Math.round(J)}))};
ldD=function(J){return yU(utt(kL(J)),Fpe())};
ykT=function(J,c){return c instanceof B0?c.pipe(lL(function(m){return(m=m?15:null)?HR(new r7(m)):J})):(c=c.value?15:null)?HR(new r7(c)):J};
B7D=function(J){var c=new r7(13);if(J.length<1)return{chain:XX,capturedErrors:XX};var m=new x0,b=J[0];return{chain:J.slice(1).reduce(function(x,P){return x.pipe(d8(function(p){m.next(p);return P}))},b).pipe(d8(function(x){m.next(x);
return HR(c)}),ol(new x0),TG()),
capturedErrors:m}};
g0e=function(J,c){var m=J.pipe(ol(new x0),TG());return lL(function(b){return m.pipe(c(b))})};
cyr=function(J,c){if(J.inCrossDomainIframe)return HR(new r7(6));var m=new x0;return ZF(kL({}),c,m).pipe(sw(function(){return{timestamp:J.timeProvider.now(),value:{viewportGeometrySourceName:"geo",exposedViewportLocalGeometry:Jyf(J),topWindowViewportExternalGeometry:SU(J,!0),measurementRequests:m,viewportLocalAppOffset:{x:0,y:0}}}}),Vr(J.queue))};
Jyf=function(J){var c=SU(J,!1);if(!J.inIframe||!eU(J.global.parent)||J.global.parent===J.global)return c;var m=new jU(J.global.parent,J.debugChannel);m.beaconFactory=J.beaconFactory;m=Jyf(m);J=J.global.frameElement.getBoundingClientRect();return kGe(H6G(kGe(m,J),{x:c.left-J.left,y:c.top-J.top}),c)};
mi3=function(J){if(J.prerendering)return 3;var c;return(c={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[J.visibilityState||J.webkitVisibilityState||J.mozVisibilityState||""])!=null?c:0};
bco=function(J){return J.document.JSC$7382_onVisibilityChange.pipe(sw(function(c){return c==="visible"}),vR(),Pm(J.queue))};
xiu=function(J,c,m){var b;return c.pipe(vR(),lL(function(x){return m.pipe(sw(function(){if(!b){b=!0;try{x.next()}finally{b=!1}}return!0}))}),FX(!1),Pm(J.queue))};
VjG=function(J){return yU(Ez(sw(function(c){return c>=1?!0:c<=0?!1:c>=J})),PKt(),sw(function(c){return Math.round(c)}))};
Mjr=function(J,c,m,b,x){var P=Pdr;if(P.length>1)for(var p=0;p<P.length-1;p++)if(P[p]<P[p+1])throw Error();p=x.pipe(FX(void 0),lL(function(){return m.pipe(N7o())}),vR(),Pm(J));
x=x.pipe(FX(void 0),lL(function(){return m.pipe(Fpe())}),vR(),Pm(J));
return{totalMeasurementTime:b.pipe(FX(void 0),lL(function(){return c.pipe(sw(function(t){return{timestamp:t.timestamp,value:!0}}),PKt())}),vR(),Pm(J)),
totalUnviewedTime:b.pipe(FX(void 0),lL(function(){return c.pipe(sw(function(t){return{timestamp:t.timestamp,value:t.value===0}}),PKt())}),vR(),Pm(J)),
maxTimeOnScreen:b.pipe(FX(void 0),lL(function(){return c.pipe(pme(ldD,P))}),vR(_.Mu),Pm(J)),
timeOnScreen:b.pipe(FX(void 0),lL(function(){return c.pipe(pme(VjG,P),sw(function(t){return t.map(function(I,a){return a>0?I-t[a-1]:I})}))}),vR(_.Mu),Pm(J)),
maxConsecutiveViewTime:x,consecutiveViewTime:p.pipe(vR(vm),Pm(J))}};
NmG=function(J){var c=!0;c=c===void 0?!1:c;return yU(lL(function(m){return pau(J.document,m,c)}),Pm(J.queue))};
tj2=function(J,c,m){var b=m.pipe(sw(function(x){return{value:x,timestamp:J.timeProvider.now()}}),vR(vm));
return c instanceof B0?c.pipe(vR(),lL(function(x){return x?Rw(new pw({value:!1,timestamp:J.timeProvider.now()}),J.queue):b})):c.value===!1?b:new pw(!1)};
ISt=function(J,c,m,b,x,P,p){var t=ow;c=c instanceof B0?c.pipe(FX(!1),vR()):c;var I=!J.isMobile();m=tj2(J,m,b);J=p.measurableCreative.pipe(bwR(J.queue));return Object.assign({},t,{geometryIsOccluded:m,wasLargeAdAtRender:x,allowLargeAdThreshold:I,mayUseViewportShareExposure:c,hasMeasurementStarted:J,useIntersectionObserverV2:P})};
CdJ=function(J,c,m,b,x,P){var p=1;P=P===void 0?!0:P;p=p===void 0?.01:p;var t=t===void 0?J.timeProvider.intervalObservable(100).pipe(Pm(J.queue)):t;return J.performanceMonitor.timeExecution(916,function(){return K52(J,c.pipe(Vr(J.queue)),m.pipe(Vr(J.queue)),b,x,P,p,t)})()};
K52=function(J,c,m,b,x,P,p,t){var I=bco(J).pipe(sw(function(k){return!k})),a=new aSu(J,[new kju(J,Pdr),
new HcG(J,t)]);t=eNG(icT,n9m);return ELe(J,c,function(k,H){var T=Rw(new pw(H.element),k.queue).pipe(NmG(k),Pm(k.queue)),r={loadedElement:T,shouldMeasure:T.pipe(GG(!0)),measurableCreative:T.pipe(sw(function(l){var y=y===void 0?Symbol():y;return Object.freeze({symbol:y,element:Rw(new pw(l),k.queue)})})),
creativeSearchResult:Rw(new pw("mue"),k.queue)},W=new pw(!1),Y=new pw(!1),Z=new pw(17),d=new pw(!1),G=new pw(!1),e=Rw(Ft,k.queue);W=a.buildGeometrySource(r,{inApp:W,useV2:!1,requestSource:Rw(Z,k.queue)}).geometrySource;r=ISt(k,d,Y,I,G,e,r);Y=RVo(k.queue,k.timeProvider,W,r);r=Y.geometrySignals;d=Y.shouldResetViewabilitySignals;Y=Mjr(k.queue,r.timestampedExposure,r.visible,Y.shouldResetExposureSignals,d);d=jwJ(k.queue,k.timeProvider,d,r.measurementRequests,r.visible);G=m.pipe(qM(function(l){return l===
H.element.ref}),sw(function(){return"ur"}));
e=TaQ(k.timeProvider,x).pipe(GG("t"));G=WpQ(k,ZF(G,e));e=xiu(k,r.measurementRequests,G.pipe(qM(function(l){return l!==null})));
W=G.pipe(qM(function(l){return l!==null}),sw(function(){return mi3(k.global.document)===1}));
var A=TmT(k.document);return Object.assign({},{beaconFactory:new pw(k.beaconFactory),context:new pw(k),inferredPingId:new pw("lidar2"),timeOnScreenPingId:new pw("lidartos"),binaryContext:new pw(17),binaryVersion:new pw(b),requestSource:Z,contextValidationErrors:new pw(k.validate()?null:new sz),contextVisibilityKnown:new pw(A),payloadMapper:new pw(oLR),endOfSessionReason:G,timeOnScreenReason:G,requestMeasurementOnEndOfSession:e,hasImpressionFired:wao,crossDomainIframeState:new pw(k.inCrossDomainIframe?
1:void 0),inStatefulBeaconExperiment:Ft,inFetchLaterBeaconExperiment:Ft,isTurtlex:Ft,turtlexReportEventData:new pw(""),reportFencedFrameEvent:w7,isViewableAttributionEnabled:Ft,inViewableAttributionExperiment:new pw(0),fetchBeaconFactory:w7,supportsPendingBeacon:Ft,supportsFetchLater:Ft,emit:new pw(lFJ),beginToRenderEvent:new pw(Symbol()),activeViewUnmeasurableEvent:new pw(Symbol()),activeViewViewableEvent:new pw(Symbol()),creativeFound:wao,immediateUrlPrefixes:new pw(H.immediateUrls),timeOnScreenUrlPrefixes:new pw(H.timeOnScreenUrls),
cpmavUrls:w7,viewableRelayUrls:w7,measurementDeferralState:new pw(2),urlSerializer:new pw(ckJ),viewUrlSerializer:new pw(ryR),isCreativeLoaded:T.pipe(bwR(k.queue)),pageVisible:I.pipe(sw(function(l){return!l})),
eosPageVisible:W,timestampedExposureHistory:r.timestampedExposure.pipe(jt(function(l,y){l.push(y);return l},[]))},r,{viewable:Ak(k,d),
maxTimeOnScreen:Ak(k,Y.maxTimeOnScreen),timeOnScreen:Ak(k,Y.timeOnScreen),maxConsecutiveViewTime:Ak(k,Y.maxConsecutiveViewTime),consecutiveViewTime:Y.consecutiveViewTime.pipe(sw(function(l){return new Oz(k.timeProvider,l)})),
totalMeasurementTime:Ak(k,Y.totalMeasurementTime),totalUnviewedTime:Ak(k,Y.totalUnviewedTime),userAgentClientHints:jhu(k),clientOrderPingCounter:new pw(new O6Q)})},Qlm(J,p),jlG(P?FNQ(t,saq):FNQ(t,L5o),DiQ))};
W53=function(J){var c=_.s$.apply(1,arguments).filter(Boolean).join("&");if(!c)return J;var m=J.match(/[?&]adurl=/);return m?J.slice(0,m.index+1)+c+"&"+J.slice(m.index+1):J+(J.indexOf("?")<0?"?":"&")+c};
lK=function(J,c){return c?"&"+J+"="+encodeURIComponent(c):""};
zeQ=function(){try{var J,c;return!!((J=window)==null?0:(c=J.top)==null?0:c.location.href)&&!1}catch(m){return!0}};
_.yr=function(J){J&&typeof J.dispose=="function"&&J.dispose()};
_.Bm=function(J){for(var c=0,m=arguments.length;c<m;++c){var b=arguments[c];_.yJ(b)?_.Bm.apply(null,b):_.yr(b)}};
fS3=function(){var J=uZD();J=J===void 0?"bevasrsg":J;return new Promise(function(c){var m=window===window.top?window:zeQ()?window:window.top,b=m[J],x;((x=b)==null?0:x.bevasrs)?c(new g7(b.bevasrs)):(b||(b={},b=(b.nqfbel=[],b),m[J]=b),b.nqfbel.push(function(P){c(new g7(P))}))})};
Y7f=function(J){var c={c:J.qb,e:J.x8F,mc:J.qKY,me:J.cOY};J.ku&&(c.co={c:J.ku.h7d,a:J.ku.qPz,s:J.ku.hsB});return c};
Xao=function(J){var c,m,b={qb:J.c,x8F:J.e,qKY:(c=J.mc)!=null?c:!1,cOY:(m=J.me)!=null?m:!1};J.co&&(b.ku={h7d:J.co.c,qPz:J.co.a,hsB:J.co.s});return b};
ZcT=function(J){return function(){var c;return _.N(function(m){if(m.nextAddress==1)return _.K(m,J(),2);c=m.yieldResult;return m.return({f:function(){return c.sEi()},
c:function(b){return c.gLQ(b)},
m:function(b){return c.pX(Xao(b))},
mws:function(b){return c.yO(Xao(b))}})})}};
q7D=function(J,c){var m=uZD();m=m===void 0?"bevasrsg":m;c={s:function(P){var p;return J.snapshot(Object.assign({},P.c&&{qb:P.c},P.s&&{gcu:P.s},{fir:(p=P.p)!=null?p:!0}))},
e:function(P){var p;return void((p=J.iNj)==null?void 0:p.call(J,P))},
c:function(P,p){return J.aKu(P,p)},
p:J.kf2,l:function(){return J.nXa()},
wpc:c?ZcT(c):void 0};var b=window===window.top?window:zeQ()?window:window.top,x=b[m];if(x){x.bevasrs=c;if(x.nqfbel!==void 0)for(m=_.M(x.nqfbel),b=m.next();!b.done;b=m.next())b=b.value,b(c);x.nqfbel=void 0}else x={},x=(x.bevasrs=c,x.nqfbel=void 0,x),b[m]=x};
S7J=function(J){var c=c===void 0?49:c;var m=[];_.Jy(J,Uim,6,_.ca()).forEach(function(b){_.m5(b,2)<=c&&m.push(_.m5(b,1))});
return m};
heR=function(J){var c=c===void 0?49:c;var m=[];_.Jy(J,Uim,6,_.ca()).forEach(function(b){_.m5(b,2)>c&&m.push(_.m5(b,1))});
return m};
di2=function(J){J.then(function(){},function(){})};
bd=function(J){return{fieldType:1,fieldName:J}};
x9=function(J){return{fieldType:2,fieldName:J}};
_.Vx=function(J){return{fieldType:3,fieldName:J}};
$iQ=function(){function J(){x[0]=1732584193;x[1]=4023233417;x[2]=2562383102;x[3]=271733878;x[4]=3285377520;k=a=0}
function c(H){for(var T=p,r=0;r<64;r+=4)T[r/4]=H[r]<<24|H[r+1]<<16|H[r+2]<<8|H[r+3];for(r=16;r<80;r++)H=T[r-3]^T[r-8]^T[r-14]^T[r-16],T[r]=(H<<1|H>>>31)&4294967295;H=x[0];var W=x[1],Y=x[2],Z=x[3],d=x[4];for(r=0;r<80;r++){if(r<40)if(r<20){var G=Z^W&(Y^Z);var e=1518500249}else G=W^Y^Z,e=1859775393;else r<60?(G=W&Y|Z&(W|Y),e=2400959708):(G=W^Y^Z,e=3395469782);G=((H<<5|H>>>27)&4294967295)+G+d+e+T[r]&4294967295;d=Z;Z=Y;Y=(W<<30|W>>>2)&4294967295;W=H;H=G}x[0]=x[0]+H&4294967295;x[1]=x[1]+W&4294967295;x[2]=
x[2]+Y&4294967295;x[3]=x[3]+Z&4294967295;x[4]=x[4]+d&4294967295}
function m(H,T){if(typeof H==="string"){H=unescape(encodeURIComponent(H));for(var r=[],W=0,Y=H.length;W<Y;++W)r.push(H.charCodeAt(W));H=r}T||(T=H.length);r=0;if(a==0)for(;r+64<T;)c(H.slice(r,r+64)),r+=64,k+=64;for(;r<T;)if(P[a++]=H[r++],k++,a==64)for(a=0,c(P);r+64<T;)c(H.slice(r,r+64)),r+=64,k+=64}
function b(){var H=[],T=k*8;a<56?m(t,56-a):m(t,64-(a-56));for(var r=63;r>=56;r--)P[r]=T&255,T>>>=8;c(P);for(r=T=0;r<5;r++)for(var W=24;W>=0;W-=8)H[T++]=x[r]>>W&255;return H}
for(var x=[],P=[],p=[],t=[128],I=1;I<64;++I)t[I]=0;var a,k;J();return{reset:J,update:m,digest:b,digestString:function(){for(var H=b(),T="",r=0;r<H.length;r++)T+="0123456789ABCDEF".charAt(Math.floor(H[r]/16))+"0123456789ABCDEF".charAt(H[r]%16);return T}}};
Ayr=function(J,c){c=c===void 0?Gj3:c;if(!E9D){var m;J=(m=J.navigator)==null?void 0:m.userAgentData;if(!J||typeof J.getHighEntropyValues!=="function"||J.brands&&typeof J.brands.map!=="function")return Promise.reject(Error("ya"));v9t((J.brands||[]).map(function(x){var P=new OcD;P=_.aw(P,1,x.brand);return _.aw(P,2,x.version)}));
typeof J.mobile==="boolean"&&_.Pa(Mi,2,J.mobile);E9D=J.getHighEntropyValues(c)}var b=new Set(c);return E9D.then(function(x){var P=Mi.clone();b.has("platform")&&_.aw(P,3,x.platform);b.has("platformVersion")&&_.aw(P,4,x.platformVersion);b.has("architecture")&&_.aw(P,5,x.architecture);b.has("model")&&_.aw(P,6,x.model);b.has("uaFullVersion")&&_.aw(P,7,x.uaFullVersion);return P.serialize()}).catch(function(){return Mi.serialize()})};
pc=function(J,c,m,b){this.initialValue_=J;this.maxValue_=c;this.currBaseValue_=this.currValue_=J;this.randomFactor_=m||0;this.backoffFactor_=b||2};
Ni=function(J){this.src=J;this.listeners={};this.typeCount_=0};
eeR=function(){for(var J;J=Ree.remove();){try{J.fn.call(J.scope)}catch(c){bQ(c)}o9J.put(J)}QaQ=!1};
_.ty=function(J){switch(J){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}};
ja3=function(J){switch(J){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""}};
_.F5q=function(){};
xse=function(J){return{p5v:new lSq(J),errorCount:new yyQ(J),eventCount:new BmJ(J),ytC:new g9q(J),hyp:new J$2(J),k8f:new c$G(J),kgf:new msr(J),nbr:new b2q(J)}};
XFG=function(J,c,m,b){J=VAo(Pi3(MAu(new _.Ia(1828,"0"),J),new pFq));c.length&&N_e(J,tAR(new I7t,c));b!==void 0&&(J.destinationUrl=b);var x=new KYQ(1828,"","",!1,"",J.build());_.Kc(x,J);var P=new Cc({flush:function(p){try{x.flush(p)}catch(t){m(t)}}});
P.addOnDisposeCallback(function(){setTimeout(function(){try{P.snapshotAndFlush()}finally{x.dispose()}})});
P.invocationLimit=1E5;P.flushInterval=3E4;P.JSC$7798_flushTimer.setInterval(3E4);return P};
aa=function(){var J,c,m;return(m=(J=globalThis.performance)==null?void 0:(c=J.now)==null?void 0:c.call(J))!=null?m:Date.now()};
qs2=function(J,c,m){if(J.disable)return new Z2m;c=c?S7J(c):[];if(m)return m.tYv(c),m.share();J={gw:J.gw,iJa:J.kHg,kVe:J.yQE,destinationUrl:J.destinationUrl,auu:J.auu,d8:J.d8};m=c;m=m===void 0?[]:m;return new k9(J,m)};
Uso=function(J){if(!J)return null;J=_.Ha(J,2);return J===null||J===void 0?null:us(J)};
_.Ssr=function(J){if(!J)return null;J=_.Ha(J,4);return J===null||J===void 0?null:_.p1(J)};
$sR=function(J,c){return c?hGm(c):J?dsJ(J):Promise.resolve()};
hGm=function(J){return new Promise(function(c,m){var b=_.id("SCRIPT"),x=_.Ssr(J);_.$h(b,x);b.onload=function(){_.nc(b);c()};
b.onerror=function(){_.nc(b);m(Error("Ja"))};
(Tj("HEAD")[0]||document.documentElement).appendChild(b)})};
dsJ=function(J){return new Promise(function(c){var m=_.id("SCRIPT");if(J){var b=_.Ha(J,6);b=b===null||b===void 0?null:_.S3(b)}else b=null;_.da(m,b);(Tj("HEAD")[0]||document.documentElement).appendChild(m);_.nc(m);c()})};
wm=function(J,c,m){var b,x=new Promise(function(P){b=setTimeout(P,c)});
return Promise.race([J.finally(function(){return void clearTimeout(b)}),
x.then(m)])};
GLG=function(J,c){try{return globalThis.sessionStorage.setItem(J,c),!0}catch(m){return!1}};
EBR=function(J,c,m,b){c=c===void 0?0:c;m=m===void 0?J.length:m;var x=0;for(b&&(x=EBR(b));c<m;c++)b=typeof J==="string"?J.charCodeAt(c):J[c],x=vBt(31,x)+b|0;return x};
O2G=function(J,c){return[EBR(J,0,J.length>>1,c),EBR(J,J.length>>1)]};
A$f=function(J){var c=_.M(O2G(J,rm));J=c.next().value;c=c.next().value;return J.toString(16)+c.toString(16)};
RG2=function(J,c){var m=O2G(c);J=new Uint32Array(J.buffer);c=J[0];var b=_.M(m);m=b.next().value;b=b.next().value;for(var x=1;x<J.length;x+=2){for(var P=c,p=x,t=m,I=b,a=0;a<22;a++)p=p>>>8|p<<24,p+=P|0,p^=t+38293,P=P<<3|P>>>29,P^=p,I=I>>>8|I<<24,I+=t|0,I^=a+38293,t=t<<3|t>>>29,t^=I;P=[P,p];J[x]^=P[0];x+1<J.length&&(J[x+1]^=P[1])}};
oBT=function(J,c,m,b,x){var P=(4-(rm.length+m.length)%4)%4,p=new Uint8Array(4+P+rm.length+4+m.length),t=new DataView(p.buffer),I=0;t.setUint32(I,Math.random()*4294967295);I=I+4+P;p.set(rm,I);I+=rm.length;t.setUint32(I,x);p.set(m,I+4);RG2(p,b);return J.insert(c,function(a){return void globalThis.sessionStorage.removeItem(a)})?GLG(c,_.yR(p))?"s":"t":"i"};
QDo=function(J,c){var m=globalThis.sessionStorage.getItem(J);if(!m)return["m"];try{var b=_.I2(m);RG2(b,c)}catch(x){return globalThis.sessionStorage.removeItem(J),["c"]}for(c=4;c<7&&b[c]===0;)c++;for(m=0;m<rm.length;m++)if(b[c++]!==rm[m])return globalThis.sessionStorage.removeItem(J),["d"];m=(new DataView(b.buffer)).getUint32(c);return Math.floor(Date.now()/1E3)>=m?(globalThis.sessionStorage.removeItem(J),["e"]):["a",new Uint8Array(b.buffer,c+4)]};
eGQ=function(J){return globalThis.TextEncoder?(new TextEncoder).encode(J):_.s7(J)};
jDt=function(J){var c=J,m;return function(){if(c){var b=c;c=void 0;m=b.apply(this,arguments)}return m}};
Lc=function(J){return R2(function(c){if(c instanceof J)return!0;var m,b,x=c==null?void 0:(m=c.ownerDocument)==null?void 0:(b=m.defaultView)==null?void 0:b[J.name];return FYR(x)&&c instanceof x})};
_.zj=function(J,c,m){_.DS.call(this);this.JSC$8011_listener_=J;this.JSC$8011_interval_=c||0;this.handler_=m;this.callback_=(0,_.Wa)(this.JSC$8013_doAction_,this)};
_.ud=function(J){J=l7T(J);return _.p1(J)};
l7T=function(J){return J===null?"null":J===void 0?"undefined":J};
B_R=function(J){if(J&&J.focus)if(J!==document.activeElement)J.focus();else return y$J(function(){return _.N(function(c){document.activeElement&&document.activeElement.blur();return c.return(y$J(function(){J.focus()}))})})};
_.gBT=function(J){var c=c===void 0?5:c;setTimeout(function(){var m;return _.N(function(b){b.nextAddress==1&&(m=document.activeElement);if(b.nextAddress!=5)return(document.activeElement===m||document.activeElement===document.body)&&c>=0&&J?_.K(b,B_R(J),5):b.jumpTo(0);if(document.activeElement===J)return b.return();J=J.parentElement;--c;return b.jumpTo(2)})},15)};
y$J=function(J){return new Promise(function(c){requestAnimationFrame(function(){c(J())})})};
caG=function(J){if(_.fc)J(_.fc);else{var c;((c=Jaq)!=null?c:Jaq=[]).push(J)}};
XZ=function(){!_.fc&&_.Y9&&_.m3m(_.Y9());return _.fc};
_.m3m=function(J){_.fc=J;var c;(c=Jaq)==null||c.forEach(caG);Jaq=void 0};
_.ZS=function(J){_.fc&&_.fc.beforeLoadModuleCode(J)};
_.qi=function(){_.fc&&_.fc.JSC$8955_setLoaded()};
U7=function(J){return hf(J)?Number(J):String(J)};
b3u=function(J){this.action=J;this.wfv=!1};
x3D=function(J,c){b3u.call(this,"set-drive-options");this.appId=J;this.appOrigin=c};
VsR=function(J){b3u.call(this,"visibility");this.visible=J};
PN2=function(J,c,m){Sj.call(this,J,c,m)};
MsR=function(J){hy.call(this,J)};
pG3=function(J){J=J&&J.getWindow()||window;return J.gadgets&&J.gadgets.rpc};
tsu=function(J,c){var m=c&&c.getWindow()||window;if(pG3(c))J();else if(NuR)NuR.push(J);else var b=NuR=[J],x=m.setInterval(function(){if(pG3(c)){m.clearInterval(x);for(var P=0;P<b.length;P++)b[P]();NuR=null}},100)};
KvQ=function(J,c){var m=new dm(J);_.Kc(c,m);var b={passive:!1};c.listen(m,"mousewheel",function(x){return void Icq(J,x)},b).listen(J,"scroll",function(x){return void Icq(J,x)},b)};
Icq=function(J,c){var m;a:{for(m=c.target;m;){if(m.nodeType==1){var b=_.$9(m,"overflowY");if(b=="auto"||b=="scroll")break a}m=m.parentNode}m=null}if(!m||!_.Gj(J,m)||m.scrollHeight==m.clientHeight||c.deltaY>0&&Math.abs(m.scrollTop-(m.scrollHeight-m.clientHeight))<=1||c.deltaY<0&&m.scrollTop==0)c.preventDefault(),c.stopPropagation()};
Qx=function(J,c,m,b,x,P,p,t,I){t=t===void 0?!1:t;I=I===void 0?!1:I;Sj.call(this,void 0,void 0,void 0);Sj.call(this,P?P+" picker modal-dialog":"picker modal-dialog",!0,m);_.E7(J,"protocol");this.iframeManager_=new CNQ;this.targetId_=va();this.rpcToken_=va();J=_.O7(J);_.Ay(J,"hostId");m=_.Ay(J,"parent");this.useGapi_=!I&&!0||(m==null?void 0:m.includes("onepick.corp.google.com"));t&&_.Ra(J,"fv2","true");this.setUrl(J.toString());this.preferredDialogWidth_=b;this.preferredDialogHeight_=x;b!==void 0||
x!==void 0?b=!0:(b=_.Ay(_.O7(J.toString()),"hostId"),acR||(acR=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),b=!acR.has(b));this.autoSizeDialog_=b;this.JSC$8201_gadgetsDomHelper_=p||this.JSC$8152_dom_;c&&(p=this.JSC$8201_gadgetsDomHelper_,c=_.Ay(_.O7(this.JSC$8203_url_),"grugl")=="true"?keQ:H3R,pG3(p)||(p=p||Cw(document),b=p.createElement("SCRIPT"),_.$h(b,c),b.type="text/javascript",p.JSC$7337_document_.body.appendChild(b)));
J=J.toString();c=null;p=J.indexOf("/picker?");p>-1?c=J.substring(0,p+8-1):Pr(J,"/picker")&&(c=J);c&&this.setRelayUrl(c+"/resources/rpc_relay.html");this.escapeToCancel_=!1;this.buttons_=null;this.buttonEl_&&(this.buttons_?(J=this.buttons_,J.JSC$8186_element_=this.buttonEl_,J.render()):_.G$(this.buttonEl_,i3r),_.oa(this.buttonEl_,!!this.buttons_))};
_.ra2=function(J){var c=c===void 0?nym:c;var m=_.mj(J),b=function(P){P=_.M(P);P.next();P=ej(P);return c(m,P)},x=function(P){var p=_.M(P);
P=p.next().value;p=ej(p);return J.apply(P,p)};
return function(){var P=_.s$.apply(0,arguments),p=this||_.mo,t=Tu3.get(p);t||(t={},Tu3.set(p,t));return wG3(t,[this].concat(_.L6(P)),x,b)}};
FZ=function(J){var c={};J=J.replace(/\r/g,"").split("\n");for(var m=0;m<J.length;m++){var b=J[m],x=b.indexOf(":");x<0||(c[b.substring(0,x)]=b.substring(x+2,b.length))}return c};
ld=function(J,c,m){m=m===void 0?function(){}:m;
return J?c():m()};
_.Lvu=function(J){var c;return((c=sPt.documentOverride)!=null?c:J).__wizdispatcher};
_.Ba=function(J){var c=yx;yx=J;return c};
WvT=function(J){return J===D33||(J==null?void 0:J.name)==="\u0275NotFound"};
zMt=function(J,c){var m;if((m=J)==null?0:m.isDisposed)throw Error("nb`"+String(J.debugName));for(;J!==void 0;){m=J;if(m.retrieve)return m.retrieve(c,{optional:!0});J=J.parent}return D33};
cF=function(J){return{"\u0275prov":{providedIn:"root",token:Symbol(J),factory:void 0,value:void 0}}};
_.uke=function(J){var c=yx;if(!c){switch(J===void 0?3:J){case 0:J=Error("mb");break;case 1:J=Error("ob");break;case 2:J=Error("pb");break;default:J=Error("qb")}throw J;}return c};
fcG=function(J){var c=_.Ba(J);J={};return J[Symbol.dispose]=function(){_.Ba(c)},J};
Ybt=function(J,c){J.disposables||(J.disposables=[]);J.disposables.push(c)};
mY=function(J){var c=yx;c&&!c.isDisposed&&(Ybt(c,J),J.parent=c)};
Z3q=function(J){if(J.disposables){for(var c=_.M(J.disposables),m=c.next();!m.done;m=c.next())m=m.value,typeof m==="function"?m():XG2(m);J.disposables.length=0}};
XG2=function(J){if(!J.isDisposed){J.isDisposed=!0;var c;(c=J[Symbol.dispose])==null||c.call(J);delete J.parent;Z3q(J)}};
vyu=function(J){var c={retrieve:function(m){switch(m.\u0275prov.token){case qbR.\u0275prov.token:var b=J.asyncDeps;break;case U3G.\u0275prov.token:b=J.rootElement;break;case Sb3.\u0275prov.token:b=J.modelRootElement;break;case hMf.\u0275prov.token:b=J.appContext;break;case d3J.\u0275prov.token:b=J.rendererData;break;case $3Q.\u0275prov.token:b=J.injectingConstructor;break;case Get.\u0275prov.token:b=J.dispatcher}if(b)m=b;else a:{for(b=c.parent;b;){var x=b;if(x.retrieve){m=x.retrieve(m);break a}b=
b.parent}b=m.\u0275prov.token;x=Eyt[b];x!==void 0?m=x:(x=m.\u0275prov.providedIn,m.\u0275prov.factory?(m=m.\u0275prov.factory(),b&&x==="root"&&(Eyt[b]=m)):m=D33)}return m}};
mY(c);return c};
O3u=function(){var J=_.uke(1),c=zMt(J,hMf);WvT(c)&&(J=zMt(J,Get),WvT(J)||J.getOptionalAppContext())};
Aat=function(J){if(typeof document!=="undefined"&&document&&document.getElementById&&(J=document.getElementById(J))){var c=J.tagName.toUpperCase();if(c=="SCRIPT"||c=="LINK")return J}return null};
oye=function(J,c){if((J=J===void 0?"":J)&&c)throw Error("wb");var m="";var b=_.mo._F_jsUrl;(J=c||Aat(J))&&(m=J.src?J.src:J.getAttribute("href"));if(b&&m){if(b!=m)throw Error("xb`"+b+"`"+m);m=b}else m=b||m;if(!RMD(m))throw Error("yb");return m};
FvQ=function(){if(!QPo){QPo=!0;try{var J=oye(_.mo._F_jsUrl?"":"base-js")}catch(b){return}var c=eMT(jPR(J)),m=Object.keys(c);m.length!==0&&caG(function(b){for(var x=_.M(m),P=x.next();!P.done;P=x.next()){P=P.value;for(var p=_.M(Object.keys(c[P])),t=p.next();!t.done;t=p.next())b.addExtraEdge(P,t.value)}})}};
yaJ=function(){var J=Object.assign({},lcT);Object.getOwnPropertyNames(lcT).forEach(function(c){_.bi[c]!==void 0&&(J[c]=_.bi[c])});
return J};
BuJ=function(J,c){if(_.bi.enablePerformanceTiming){var m,b;(b=(m=performance).mark)==null||b.call(m,J+"Start__"+c)}};
gy3=function(J,c){if(_.bi.enablePerformanceTiming){var m,b;(b=(m=performance).measure)==null||b.call(m,J+"__"+c,J+"Start__"+c)}};
JLm=function(J,c,m){var b;return J&&c?J+"__"+c:(b=J!=null?J:c)!=null?b:m};
mUm=function(J,c){var m=Object.create(cLf);m.debugName=c;!yx||mY(m);c=_.Ba(m);try{J(m)}finally{_.Ba(c)}return function(){return void XG2(m)}};
xUJ=function(J){return xB(J)&&bgf in J};
VDu=function(J,c){return Object.is(J,c)};
PF=function(J){var c=VD;VD=J;return c};
N3R=function(J){if(Ms)throw Error("da");if(VD!==null){var c=VD.nextProducerIndex++;Pj2(VD);c<VD.producerNode.length&&VD.producerNode[c]!==J&&p2(VD)&&MDJ(VD.producerNode[c],VD.producerIndexOfThis[c]);VD.producerNode[c]!==J&&(VD.producerNode[c]=J,VD.producerIndexOfThis[c]=p2(VD)?p7t(J,VD,c):0);VD.producerLastReadVersion[c]=J.version}};
KGG=function(J){if(!p2(J)||J.dirty)if(J.dirty||J.lastCleanEpoch!==tDu)(J.producerMustRecompute(J)||I4o(J))&&J.producerRecomputeValue(J),J.dirty=!1,J.lastCleanEpoch=tDu};
Cjt=function(J){if(J.liveConsumerNode!==void 0){var c=Ms;Ms=!0;try{for(var m=_.M(J.liveConsumerNode),b=m.next();!b.done;b=m.next()){var x=b.value;x.dirty||(J=void 0,x.dirty=!0,Cjt(x),(J=x.consumerMarkedDirty)==null||J.call(x,x))}}finally{Ms=c}}};
a4J=function(){var J;return((J=VD)==null?void 0:J.consumerAllowSignalWrites)!==!1};
koT=function(J){J&&(J.nextProducerIndex=0);return PF(J)};
Hgr=function(J,c){PF(c);if(J&&J.producerNode!==void 0&&J.producerIndexOfThis!==void 0&&J.producerLastReadVersion!==void 0){if(p2(J))for(c=J.nextProducerIndex;c<J.producerNode.length;c++)MDJ(J.producerNode[c],J.producerIndexOfThis[c]);for(;J.producerNode.length>J.nextProducerIndex;)J.producerNode.pop(),J.producerLastReadVersion.pop(),J.producerIndexOfThis.pop()}};
I4o=function(J){Pj2(J);for(var c=0;c<J.producerNode.length;c++){var m=J.producerNode[c],b=J.producerLastReadVersion[c];if(b!==m.version)return!0;KGG(m);if(b!==m.version)return!0}return!1};
p7t=function(J,c,m){igG(J);if(J.liveConsumerNode.length===0&&J.producerNode!==void 0)for(var b=0;b<J.producerNode.length;b++)J.producerIndexOfThis[b]=p7t(J.producerNode[b],J,b);J.liveConsumerIndexOfThis.push(m);return J.liveConsumerNode.push(c)-1};
MDJ=function(J,c){igG(J);if(J.liveConsumerNode.length===1&&J.producerNode!==void 0)for(var m=0;m<J.producerNode.length;m++)MDJ(J.producerNode[m],J.producerIndexOfThis[m]);m=J.liveConsumerNode.length-1;J.liveConsumerNode[c]=J.liveConsumerNode[m];J.liveConsumerIndexOfThis[c]=J.liveConsumerIndexOfThis[m];J.liveConsumerNode.length--;J.liveConsumerIndexOfThis.length--;c<J.liveConsumerNode.length&&(m=J.liveConsumerIndexOfThis[c],J=J.liveConsumerNode[c],Pj2(J),J.producerIndexOfThis[m]=c)};
p2=function(J){var c,m;return J.consumerIsAlwaysLive||((m=J==null?void 0:(c=J.liveConsumerNode)==null?void 0:c.length)!=null?m:0)>0};
Pj2=function(J){J.producerNode!=null||(J.producerNode=[]);J.producerIndexOfThis!=null||(J.producerIndexOfThis=[]);J.producerLastReadVersion!=null||(J.producerLastReadVersion=[])};
igG=function(J){J.liveConsumerNode!=null||(J.liveConsumerNode=[]);J.liveConsumerIndexOfThis!=null||(J.liveConsumerIndexOfThis=[])};
T3e=function(J){var c=Object.create(nKf);c.computation=J;J=function(){KGG(c);N3R(c);if(c.value===Ns)throw c.error;return c.value};
J[t$]=c;return J};
LG3=function(J,c){var m=Object.create(w7T);m.value=J;c!==void 0&&(m.equal=c);J=function(){N3R(m);return m.value};
J[t$]=m;return[J,function(b){return rLm(m,b)},
function(b){a4J()||srt(m);rLm(m,b(m.value))}]};
rLm=function(J,c){a4J()||srt(J);if(!J.equal(J.value,c)){J.value=c;J.version++;tDu++;Cjt(J);var m;(m=DUq)==null||m(J)}};
ID=function(J){var c=PF(null);try{return J()}finally{PF(c)}};
_.K2=function(J,c,m){m=m===void 0?"":m;J=LG3(J,c==null?void 0:c.equals);var b=J[0],x=b[t$];x.debugName=JLm(c==null?void 0:c.debugName,m,"[signal]");if(!_.bi.enablePerformanceTiming)return J;var P=J[1],p=J[2];return[b,function(t){WGq(function(){return void P(t)},x)},
function(t){WGq(function(){return void p(t)},x)}]};
WGq=function(J,c){BuJ("signalSet",c.debugName);try{J()}finally{gy3("signalSet",c.debugName)}};
ubq=function(J,c){var m=_.M(_.K2(J,void 0,"cPpJzc"));J=m.next().value;m=m.next().value;J[zk2]=m;J[C2]=c;return J};
f4t=function(J){return!!J&&typeof J==="object"&&Object.getPrototypeOf(J)===Object.prototype};
YOQ=function(J){return typeof J==="function"&&zk2 in J&&typeof J[zk2]==="function"};
X7o=function(J,c){Object.defineProperty(J,C2,{get:function(){return c}})};
kB=function(J,c){if(aD(J)){var m=J.map(function(P){return kB(P,c)});
X7o(m,c);return m}if(f4t(J)){m={};J=_.M(Object.entries(J));for(var b=J.next();!b.done;b=J.next()){var x=_.M(b.value);b=x.next().value;x=x.next().value;m[b]=kB(x,c)}X7o(m,c);return m}return ubq(J,c)};
Zgu=function(J){if(aD(J))return J.map(function(x){return Zgu(x)});
if(f4t(J)){var c={};J=_.M(Object.entries(J));for(var m=J.next();!m.done;m=J.next()){var b=_.M(m.value);m=b.next().value;b=b.next().value;c[m]=Zgu(b)}return c}return YOQ(J)?J():J};
UUD=function(){var J={height:0,width:0};if(!f4t(J))throw Error("Kb");var c=Symbol("Lb");return[kB(J,c),function(m,b){if(m[C2]===c)if(typeof b==="function"){var x=[].concat(_.L6(Zgu(m)));b=b(x)||x;qOf(m,[].concat(_.L6(b)))}else qOf(m,b);else throw Error("Mb");}]};
qOf=function(J,c){if(YOQ(J))J[zk2](c);else if(aD(J)&&aD(c))c=kB(c,J[C2]),J.length=0,J.push.apply(J,_.L6(c));else if((f4t(J)||aD(J))&&(aD(c)||typeof c==="object"&&c!==null)){c=_.M(Object.entries(c));for(var m=c.next();!m.done;m=c.next()){var b=_.M(m.value);m=b.next().value;b=b.next().value;var x=J,P=x[m];Object.hasOwn(J,m)?qOf(P,b):x[m]=kB(b,J[C2])}}else throw Error("Nb");};
SOt=function(J){return Object.create(Object.assign({},HF,J))};
dUT=function(){var J;return(J=hkt)!=null?J:hkt=SOt({consumerAllowSignalWrites:!0})};
_.n2=function(J,c,m){m=m===void 0?"":m;J=T3e(J);var b=J[t$];b.debugName=JLm(c==null?void 0:c.debugName,m,"[computed]");(c==null?void 0:c.equals)!=null&&(b.equal=c.equals);return J};
TL=function(J){var c=PF($Uu);try{J()}finally{PF(c)}};
oKf=function(J){if(!J.isDisposed)switch(J.effectType){case Gou:EKR.schedule(J);break;case vKD:Ogt.schedule(J);break;case ALR:Rkr.schedule(J);break;default:_.Pu(J.effectType)}};
ekG=function(J){Qre.push(J);return function(){var c=Qre.indexOf(J);c!==-1&&Qre.splice(c,1)}};
FGQ=function(){if(w_>0)EKR.flush();else for(var J=_.M(jrt),c=J.next();!c.done;c=J.next())c.value.flush()};
yL3=function(J){for(var c=_.M(J),m=c.next();!m.done;m=c.next()){var b=m.value;for(m=[b];b.parent!==void 0;)b=b.parent,l4J(b)&&J.has(b)&&m.push(b);for(;m.length>0;)b=m.pop(),J.delete(b),b.run()}};
B3Q=function(J){w_--;if(J){J=_.M(jrt);for(var c=J.next();!c.done;c=J.next())c.value.clear()}else w_>0||FGQ()};
JUu=function(J,c,m){var b=gKG(J);r_={name:m?b+" ("+m+")":b,isReactive:J.componentType!==L2,parent:r_};J=c();r_=r_.parent;return J};
D7=function(){var J=r_;return J?J.isReactive:!1};
zL=function(J,c){var m=r_;c&&(r_=c);try{return J()}catch(P){J=P;WF(J,r_);if(J!==cUD){mXD=r_;c=[];for(var b=yx;b;){var x=void 0;c.push((x=b.debugName)!=null?x:"[context]");x=void 0;b=(x=b.parent)!=null?x:null}bto=c.reverse()}cUD=J;throw J;}finally{r_=m}};
WF=function(J,c){try{var m=xXR(c);if(m&&!J.componentStack&&(J.componentStack=m,_.bi.enableComponentStacksInErrorMessages)){var b=J.message+"\n\nComponent stack: "+m;J.stack&&(J.stack=J.stack.replace(J.message,b));J.message=b}}catch(x){}};
xXR=function(J){if(xB(J)&&J.name!==void 0&&J.isReactive!==void 0&&J.parent!==void 0||J===null){for(var c=0,m="";c<20&&J;)m+=J.name+" > ",J=J.parent,c++;J=m.slice(0,-3)}else if(_.bi.enableContextBasedComponentStacks){a:{for(J=J===void 0?yx:J;J;){if(xUJ(J))break a;c=void 0;J=(c=J.parent)!=null?c:null}J=null}J=J.getComponentStack().slice(0,20).join(" > ")}else J="";return J};
gKG=function(J){return J.debugName||J.name||"[component]"};
Vfq=function(J,c,m){c=Object.create(c);c.effectFn=J;m&&(c.debugName=m);mY(c);c.componentStack=r_;return c};
_.ui=function(J,c){J=Vfq(J,POG,c);oKf(J)};
_.f2=function(J){var c=yx;if(c){var m=r_;Ybt(c,function(){var b=PF(dUT());try{zL(function(){return void J()},m)}catch(x){throw _.bi.enableContextBasedComponentStacks&&WF(x),x;
}finally{PF(b)}})}};
YB=function(J,c){var m={};(c===void 0||c)&&mY(m);c=_.Ba(m);try{J(m)}finally{_.Ba(c)}return function(){return void XG2(m)}};
_.XD=function(J){return typeof J==="function"?J():(J==null?0:J[Mff])?J.get():J};
_.Z7=function(J,c){J=Vfq(J,p4q,c);oKf(J)};
NoR=function(J){if(yx)throw Error("rb");YB(J,!1)};
qs=function(J,c){J=_.Ba(J);try{return ID(c)}finally{_.Ba(J)}};
_.Us=function(J,c){var m=xXR(mXD),b,x;var P=(x=(b=bto)==null?void 0:b.slice())!=null?x:[];c={componentStack:m,contextTrace:P,errorSeverity:3,featureFlags:yaJ(),tagName:c};return[J,c]};
KLr=function(J,c,m){if(Object.hasOwnProperty.call(tff,J)&&(J=tff[J],Object.hasOwnProperty.call(J,c)&&(J=J[c],J instanceof Array))){for(var b=null,x=!1,P=0,p=J.length;P<p;++P){var t=J[P],I=t.contingentAttribute;if(!I)return t.contract;b===null&&(b={});I=Object.hasOwnProperty.call(b,I)?b[I]:b[I]=m(I);if(I===t.requiredValue)return t.contract;I==null&&(x=!0)}if(x)return null}c=ICe[c];return typeof c==="number"?c:null};
k7T=function(J,c,m){var b=null;(J=COJ[J])&&(b=J[c]);return typeof b!=="number"&&((J=COJ["*"])&&(b=J[c]),typeof b!=="number")?!1:!0===aCJ[b][String(m).toLowerCase()]};
itQ=function(J,c){c=KLr(J.toLowerCase(),c,function(){var b;(b=_.bi.handleError)==null||b.call.apply(b,[_.bi].concat(_.L6(_.Us(Error("Rb"),J.toLowerCase()))))});
if(c===null)return null;var m;return(m=Ht2[c])!=null?m:null};
n$u=function(J,c,m){if(m===null||m===void 0)return m;J=itQ(J,c);return J===null?m:J(c,m)};
Toq=function(){};
SA=function(J,c){for(;J.length>c;)J.pop()};
w4T=function(J){J=Array(J);SA(J,0);return J};
rUQ=function(J,c,m){if(m==null)J.removeAttribute(c);else{var b;(b=c.lastIndexOf("xml:",0)===0?"http://www.w3.org/XML/1998/namespace":c.lastIndexOf("xlink:",0)===0?"http://www.w3.org/1999/xlink":null)?J.setAttributeNS(b,c,m):J.setAttribute(c,m)}};
s6t=function(J,c,m){J[c]=m};
DXt=function(J,c,m){J=J.style;if(typeof m==="string")J.cssText=m;else{J.cssText="";for(var b in m)if(LLt.call(m,b)){c=J;var x=b,P=m[b];x.indexOf("-")>=0?c.setProperty(x,P):c[x]=P}}};
WLT=function(J,c,m){var b=typeof m;b==="object"||b==="function"?J[c]=m:rUQ(J,c,m)};
z2u=function(){var J=new Toq;J[h$.default]=WLT;J.style=DXt;return J};
u_G=function(J,c,m,b){(b[c]||b[h$.default])(J,c,m)};
Ynu=function(J,c,m){c=new fCm(c,m);return J.__incrementalDOMData=c};
d_=function(J,c){if(J.__incrementalDOMData)return J.__incrementalDOMData;var m=J.nodeType===1?J.localName:J.nodeName,b=J.nodeType===1?J.getAttribute("key"):null;c=Ynu(J,m,J.nodeType===1?b||c:null);if(J.nodeType===1&&(J=J.attributes,m=J.length)){b=c._attrsArr||(c._attrsArr=w4T(m*2));for(var x=0,P=0;x<m;x+=1,P+=2){var p=J[x],t=p.value;b[P]=p.name;b[P+1]=t}}return c};
X4r=function(J,c,m,b,x){return c==m&&b==x};
Ztr=function(J){for(var c=$B,m=GL();m!==J;){var b=m.nextSibling;c.removeChild(m);Es.deleted.push(m);m=b}};
GL=function(){return vF?vF.nextSibling:$B.firstChild};
Os=function(){vF=GL()};
SnJ=function(J,c,m){Os();var b;a:{if(b=vF){do{var x=b,P=J,p=c,t=d_(x,p);if(qnq(x,P,t.nameOrCtor,p,t.key))break a}while(c&&(b=b.nextSibling))}b=null}b||(J==="#text"?(m=A$.createTextNode(""),Ynu(m,"#text",null),J=m):(b=A$,x=$B,typeof J==="function"?b=new J:b=(x=J==="svg"?"http://www.w3.org/2000/svg":J==="math"?"http://www.w3.org/1998/Math/MathML":x==null||d_(x).nameOrCtor==="foreignObject"?null:x.namespaceURI)?b.createElementNS(x,J):b.createElement(J),Ynu(b,J,c),J=b,m&&J.setAttribute("nonce",m)),Es.created.push(J),
b=J);m=b;if(m!==vF){if(UXr.indexOf(m)>=0)for(J=$B,c=m.nextSibling,b=vF;b!==null&&b!==m;)x=b.nextSibling,J.insertBefore(b,c),b=x;else $B.insertBefore(m,vF);vF=m}};
h2o=function(J,c,m){SnJ(J,c,m);$B=vF;vF=null;return $B};
dXu=function(){Ztr(null);vF=$B;$B=$B.parentNode};
RD=function(){vF=$B.lastChild};
E$u=function(J,c){c=c===void 0?{}:c;var m=c.matches===void 0?X4r:c.matches;return function(b,x,P){var p=Es,t=A$,I=UXr,a=eA,k=jA,H=vF,T=$B,r=qnq;A$=b.ownerDocument;Es=new $X3(b);qnq=m;eA=[];jA=[];vF=null;var W=$B=b.parentNode,Y,Z=G72.call(b);if((Y=Z.nodeType===11||Z.nodeType===9?Z.activeElement:null)&&b.contains(Y)){for(Z=[];Y!==W;)Z.push(Y),Y=Y.parentNode||(W?Y.host:null);W=Z}else W=[];UXr=W;try{return J(b,x,P)}finally{b=Es,FD&&b.deleted.length>0&&FD(b.deleted),A$=t,Es=p,qnq=r,eA=a,jA=k,vF=H,$B=T,
UXr=I}}};
v$e=function(J,c,m,b){li.push(u_G);li.push(J);li.push(c);li.push(m);li.push(b)};
AUt=function(J,c,m){var b=jA;c=c._attrsArr||(c._attrsArr=w4T(b.length));for(var x=!c.length||!1,P=0;P<b.length;P+=2){var p=b[P];if(x)c[P]=p;else if(c[P]!==p)break;var t=b[P+1];if(x||c[P+1]!==t)c[P+1]=t,v$e(J,p,t,m)}if(P<b.length||P<c.length){for(P=x=P;P<c.length;P+=2)yD[c[P]]=c[P+1];for(P=x;P<b.length;P+=2)x=b[P],p=b[P+1],yD[x]!==p&&v$e(J,x,p,m),c[P]=x,c[P+1]=p,delete yD[x];SA(c,b.length);for(var I in yD)v$e(J,I,void 0,m),delete yD[I]}J=Otf;Otf=m=li.length;for(I=J;I<m;I+=5)(0,li[I])(li[I+1],li[I+
2],li[I+3],li[I+4]);Otf=J;SA(li,J);SA(b,0)};
BF=function(J){SnJ("#text",null);var c=vF;var m=d_(c);if(m.text!==J){m=m.text=J;for(var b=1;b<arguments.length;b+=1)m=(0,arguments[b])(m);c.data!==m&&(c.data=m)}};
FL2=function(J,c,m){if(m===!1&&R2m.has(c))rUQ(J,c,null);else if(c!=="idomKey"&&c!=="skip"&&c!=="skipchildren"&&c!=="children"&&c!=="el"){if(c.startsWith("on"))if(c[2]===":"){if(m===void 0||m===null){var b;(b=_.bi.handleError)==null||b.call.apply(b,[_.bi].concat(_.L6(_.Us(Error("Vb`"+c),J.tagName))));J[c]=void 0;return}if(typeof m!=="object"||m===null)throw Error("Wb`"+c+"`"+typeof m);if(typeof m.getFn!=="function")throw Error("Xb`"+c+"`"+Object.keys(m));var x=m.getFn(0),P=c.slice(3);if((b=D7())&&
J["on"+P]===void 0)J.addEventListener(P,x),_.f2(function(){return void J.removeEventListener(P,x)});
else if(b||!o$2.includes(P))J["on"+P]=x}else{Q6o(J,c,m);return}else if(c.startsWith("data-")&&typeof m==="string")try{m=e2Q(m)}catch(p){m="zSoyz"}typeof m!=="function"||J._disposeEffects!=null?(_.bi.enableAttributeSanitization&&(m=n$u(J.tagName,c,m)),c==="style"?j6Q(J,c,m):c.startsWith("prop:")?(c=c.slice(5),J[c]=m):Q6o(J,c,m)):(J._signalProps||(J._signalProps=[]),J._signalValues||(J._signalValues=[]),J._signalProps.push(c))}};
lC2=function(J,c,m){m=(m===void 0?{}:m).isReactive;if(c==null?0:c.el){var b=c.el;if(typeof b==="function")b(J);else{var x;(x=b.onRender)==null||x.call(b,J);J._disposeRef||(J._disposeRef=function(){var P;(P=b.onUnmount)==null||P.call(b);delete J._disposeRef},m&&_.f2(function(){var P;
return void((P=J._disposeRef)==null?void 0:P.call(J))}))}}};
yUD=function(J){return xB(J)&&g_ in J};
BoG=function(J){return yUD(J)?J[g_].flattened:J};
g$o=function(J,c){var m=_.s$.apply(2,arguments),b;c=(b=c)!=null?b:{};b={};return b.type=J,b.props=c,b.children=m,b[Ja]=!0,b};
_.cG=function(J){return J.children};
mv=function(J){var c=JID!==g$o;JID=J?cIJ:g$o;return c};
_.bN=function(J){return _.cB(J)?"nodeType"in J:!1};
xy=function(){return document.createTextNode("")};
V6=function(J){J=document.createTextNode(String(J));J._isSignalTextNode=!0;return J};
Vgf=function(J){var c=document.createElement("div");if(mzD(J)&&Uso(J))_.G$(c,Uso(J));else if(J instanceof z$)_.G$(c,J);else if(b4G(J)){if(J.contentKind!==xzT)throw Error("Ub");J=us(J.toString());_.G$(c,J)}J=_.M(c.childNodes);for(var m=J.next();!m.done;m=J.next())m.value._isSafeOrSanitizedHtmlNode=!0;return c};
PG=function(J){J=typeof J;return J==="string"||J==="number"||J==="boolean"};
P33=function(J){return J instanceof P0||C1(J)||"function"==typeof _.AG&&J instanceof _.AG||!1};
Mgu=function(J,c){var m=J.parentElement;if(!m)return c;m.replaceChild(c,J);return c};
pOf=function(J,c){var m=J[0].parentElement;if(m)if(J[0].previousSibling||J[J.length-1].nextSibling){m.insertBefore(c,J[0]);for(var b=J.length-1;b>=0;b--)m.removeChild(J[b])}else m.textContent="",m.appendChild(c);return c};
Nv3=function(J,c){if(J[0].parentElement)for(var m=J[0].parentElement,b=c.length,x=J.length,P=b,p=0,t=0,I=J[x-1].nextSibling,a=null;p<x||t<P;)if(J[p]===c[t])p++,t++;else{for(;J[x-1]===c[P-1];)x--,P--;if(x===p)for(var k=P<b?t?c[t-1].nextSibling:c[P-t]:I;t<P;){var H=c[t++];m.insertBefore(H,k)}else if(P===t)for(;p<x;)k=J[p],a&&a.has(k)||m.removeChild(k),p++;else if(J[p]===c[P-1]&&c[t]===J[x-1])k=J[--x].nextSibling,m.insertBefore(c[t++],J[p++].nextSibling),m.insertBefore(c[--P],k),J[x]=c[P];else{if(!a)for(a=
new Map,k=t;k<P;)a.set(c[k],k++);k=a.get(J[p]);if(k==null)m.removeChild(J[p]),p++;else if(t<k&&k<P){H=p;for(var T=1,r=void 0;++H<x&&H<P&&(r=a.get(J[H]))!=null&&r===k+T;)T++;if(T>k-t)for(H=J[p];t<k;)m.insertBefore(c[t++],H);else m.replaceChild(c[t++],J[p++])}else p++}}return c};
C3T=function(J,c){var m;c!=null?m=c:m=_.Lvu(document).getAppContext();m.get(tge).JSC$25479_getEventTarget().dispatchEvent(new Itf(KC3,J,xzT))};
kBe=function(J){if(Array.isArray(J)){if(J.length>1)throw Error("fc`"+J.length+"`"+J.map(atG).join(", "));J=J[0]}if(J==null)return null;if(!(J instanceof _.U$)){var c,m;if((c=window)==null?0:(m=c.trustedTypes)==null?0:m.isScript(J))throw Error("ec");if(String(J).trim().length===0)return null;throw Error("gc`"+atG(J));}return J};
H4G=function(J){if(Array.isArray(J)){if(J.length>1)throw Error("hc`"+J.length+"`"+J.map(atG).join(", "));J=J[0]}if(J==null)return null;if(!s_t(J)){if(String(J).trim().length===0)return null;throw Error("ic`"+atG(J));}return J};
atG=function(J){return"("+typeof J+") "+(J!=null&&typeof J==="object"?J.constructor.name:typeof J)+" "+J};
p3=function(J,c){function m(){x=!1;c.isControlFlowComponent&&w_++;var P=b[0],p=b[g_].flattened,t=mv(!0);try{var I=J(),a=i42(P,I,b);Array.isArray(a)||(b[g_].flattened=[a]);var k=b[g_].flattened;if(p&&(!Array.isArray(p)||p.length!==0)){var H=Array.isArray(p)?p[0]:p,T=H[M3],r=H._disposeEffects;H._disposeEffects=void 0;H=Array.isArray(k)?k[0]:k;H[M3]=T;H[M3]&&(H[M3].numNodes=H===k?1:k.length);H._disposeEffects=r}b[0]=a;c.isControlFlowComponent&&B3Q(!1)}catch(W){throw c.isControlFlowComponent&&B3Q(!0),
W;}finally{mv(t)}}
c=c===void 0?{}:c;var b=nHQ(),x=!0;_.bi.legacyTriggerSoyRendererEvents&&O3u();_.Z7(function(){(TvQ==null?0:TvQ.logger)&&!x?(TvQ.logger.logGraft(b[0],m),TvQ.logger.resetBuilder()):m()},c.debugName);
return b};
i42=function(J,c,m){for(;typeof c==="function";)c=c();if(c!=null&&c[Ja]){var b,x,P;(P=_.bi.handleError)==null||P.call.apply(P,[_.bi].concat(_.L6(_.Us(Error("jc`"+((b=c.type)==null?void 0:b.TAG_NAME)),(x=c.type)==null?void 0:x.TAG_NAME))))}if(J==null)return c==null?xy():PG(c)?V6(c):P33(c)?V6(c.toString()):_.bN(c)?c:c.length===0?xy():wOr(c,m);if(_.bN(J)){if(c==null)return Mgu(J,xy());if(PG(c))return rI3(J,c);if(P33(c))return rI3(J,c.toString());if(_.bN(c))return Mgu(J,c);if(c.length===0)return Mgu(J,
xy());c=wOr(c,m);Nv3([J],m[g_].flattened);return c}J=N3(J);if(c==null)return pOf(J,xy());if(PG(c))return pOf(J,V6(c));if(P33(c))return pOf(J,V6(c.toString()));if(_.bN(c))return Nv3(J,[c])[0];if(c.length===0)return pOf(J,xy());c=wOr(c,m);Nv3(J,m[g_].flattened);return c};
rI3=function(J,c){J.nodeType===Node.TEXT_NODE?J.textContent!==String(c)&&(J.textContent=String(c)):J=Mgu(J,V6(c));return J};
N3=function(J,c,m){return sNr(J,c!=null?c:[],m===void 0?!1:m)};
wOr=function(J,c){var m=N3(J,void 0,!0);if(m.length===0)return xy();c[g_].flattened=m;return J};
sNr=function(J,c,m,b,x){c=c===void 0?[]:c;m=m===void 0?!1:m;x=x===void 0?-1:x;if(J==null)return c;if(J instanceof ta)return J=J.render(),sNr(J,c,m,b,x);if(_.bN(c)&&c.nodeType===Node.ELEMENT_NODE)switch(c.tagName){case "SCRIPT":m=kBe(J);m!==null&&_.da(c,m);return;case "STYLE":m=H4G(J);m!==null&&(c.textContent=_.LTD(m));return}PG(J)&&(J=V6(J),b&&m&&(b[x]=J));if(b4G(J)||J instanceof z$||mzD(J)){m=Vgf(J);m=Array.from(m.childNodes);m=_.M(m);for(J=m.next();!J.done;J=m.next())LCm(c,J.value);return c}P33(J)&&
(J=V6(J.toString()),b&&m&&(b[x]=J));if(_.bN(J))return LCm(c,J);if(Array.isArray(J)){for(var P=0;P<J.length;P++)sNr(J[P],c,m,J,P);return c}if(typeof J==="function"){J=p3(J,{debugName:"qmF2ne"})[0];if(Array.isArray(J)){m=_.M(J);for(J=m.next();!J.done;J=m.next())LCm(c,J.value);return c}b&&m&&(b[x]=J);return LCm(c,J)}if(J!=null&&J[Ja]){b=mv(!0);x=JID;try{P=x.apply(null,[J.type,J.props].concat(_.L6(J.children)))}finally{mv(b)}return sNr(P,c,m)}var p;(p=_.bi.handleError)==null||p.call.apply(p,[_.bi].concat(_.L6(_.Us(Error("kc")))));
return c};
nHQ=function(J){var c={};c=Object.assign([],(c[g_]={flattened:[]},c));if(!J)return c;c[0]=wOr(J,c);return c};
LCm=function(J,c){Array.isArray(J)?J.push(c):J.appendChild(c);return J};
K3=function(J){if(!_.bi.enableLazyTsx)return J;if(Array.isArray(J)){for(var c=0;c<J.length;c++)J[c]=K3(J[c]);return J}return J instanceof ta?(J=J.render(),K3(J)):J};
WC3=function(J,c){var m,b,x=gKG(J),P=function(r){b=r;r=mv(!0);var W=PF(aP);BuJ("render",x);try{m=K3(J(c))}finally{gy3("render",x),PF(W),mv(r)}};
P=_.bi.enableContextPerComponent?mUm(P,x):YB(P,_.bi.alwaysTrackContexts||!!yx);xUJ(b);if(!c.renderedFromIdom){var p=_.Ba(b);try{return Dz3(J,c,m),m}finally{_.Ba(p)}}!yUD(m)&&Array.isArray(m)&&(m=nHQ(m));var t=BoG(m);p=Array.isArray(t)?t[0]:t;var I=!1;if(p){var a,k=(a=c==null?void 0:c.idomKey)!=null?a:J;a=t!==p;p._disposeEffects=P;var H=p[M3]||{},T=yUD(m)?m:H.sourceDynamicRange;Object.assign(H,{key:k,numNodes:a?t.length:1,context:b,higherOrder:!!p[M3],sourceDynamicRange:T});p[M3]=H}else I=!0;(function(){var r=
_.Ba(b);try{Dz3(J,c,t)}finally{_.Ba(r)}})();
I&&P();return m};
zwu=function(J){var c={},m;for(m in J)c={prev$jscomp$23:void 0,next$jscomp$32:void 0},c.prev$jscomp$23=ky[m],c.next$jscomp$32=J[m],ky[m]=function(b){return function(){var x=_.s$.apply(0,arguments);b.prev$jscomp$23.apply(null,_.L6(x));b.next$jscomp$32.apply(null,_.L6(x))}}(c)};
ucR=function(){if(D7())throw Error("lc");return HG};
ftr=function(J,c){if(!J.__unmounted&&c){J.__unmounted=!0;try{J.didUnmount()}catch(x){var m,b;(b=_.bi.handleError)==null||b.call.apply(b,[_.bi].concat(_.L6(_.Us(x,(m=J.JSC$8225___type)==null?void 0:m.TAG_NAME))))}ky.didUnmount(J);J.el=null;c.__instance&&delete c.__instance}};
XOD=function(J,c,m){J._signalProps!=null&&J._disposeEffects==null&&((m===void 0?0:m)?J._disposeEffects=YB(function(){return void Yeq(J,c)},_.bi.alwaysTrackContexts||!!yx):Yeq(J,c))};
Yeq=function(J,c){_.Z7(function(){for(var m=J._signalProps,b=J._signalValues,x=0;x<m.length;x++){var P=m[x],p=c[P]();b[x]!==p&&(b[x]=p,FL2(J,P,p))}},"e3YVbb")};
Z4Q=function(J,c,m){var b,x=[];J._disposeEffects=YB(function(){_.Z7(function(){var P=m();if(P===null||P===void 0)P="";if(PG(P)||P===null)b!=null||(b=document.createTextNode("")),b.parentNode!==J&&(b._isSignalTextNode=!0,J.insertBefore(b,c)),b.textContent=String(P);else if(b4G(P)||P instanceof z$||mzD(P)){for(var p=x.length>0?x[x.length-1].nextSibling:c,t=_.M(x),I=t.next();!I.done;I=t.next())J.removeChild(I.value);P=Vgf(P);x=Array.from(P.childNodes);P=_.M(x);for(t=P.next();!t.done;t=P.next())J.insertBefore(t.value,
p)}else throw I=(t=(p=r_)==null?void 0:p.name)!=null?t:"unknown",Error("ac`"+I+"`"+typeof P);},"VvDgC")},_.bi.alwaysTrackContexts||!!yx)};
Se3=function(J,c){var m=_.s$.apply(2,arguments);c!=null||(c={});return!_.bi.enableLazyTsx||r_!=null&&!D7()?qef(J,c,m):new UzQ(J,c,m)};
qef=function(J,c,m){if(J===_.cG)return m;if(typeof J==="function")return r_&&!D7()&&(c.renderedFromIdom=!0),JUu(J,function(){var P=hwm(J,c,m);if(P)return P;m.length>0&&(c.children=m.length===1?m[0]:m);if(J.componentType===L2){var p;mUm(function(){var t=c;if(J.componentType!==L2)p=!1;else{t||(t={});var I=new iN(t,J),a=PF(aP);try{var k=I.render(t)}finally{PF(a)}k instanceof HTMLElement?(k.__instance=I,I.el=k,I.JSC$8225___type=J,J.TAG_NAME=k.tagName.toLowerCase(),ky.didPatch(I),p=k):p=k}},J.name);
if(p)return p}return WC3(J,c)},c.debugInstance);
var b=dzq(J,c),x;for(x in c)FL2(b,x,c[x]);XOD(b,c);N3(m,b);lC2(b,c,{isReactive:!0});$zt(b,c);return b};
dzq=function(J,c){J=(GBD.has(J.toLowerCase())?0:EHe.has(J.startsWith("svg:")?J.replace("svg:",""):J))?document.createElementNS("http://www.w3.org/2000/svg",J.startsWith("svg:")?J.replace("svg:",""):J):vHD(J,c)||document.createElement(J);J[O4R]=!0;return J};
AIu=function(J){if(J){var c;(c=J._disposeRef)==null||c.call(J);var m;(m=J._disposeEffects)==null||m.call(J);J.__instance&&J.__instance instanceof n3&&(c=J.__instance,ftr(c,J),c instanceof iN&&c.disposeEffects());for(c=0;c<J.childNodes.length;c++)AIu(J.childNodes[c])}};
oHr=function(J){Rwf.push(J)===1&&requestAnimationFrame(function(){setTimeout(function(){var c=[].concat(_.L6(Rwf));Rwf=[];c=_.M(c);for(var m=c.next();!m.done;m=c.next()){m=m.value;try{for(var b=0;b<m.length;b++)AIu(m[b])}catch(x){b=m=void 0,(b=(m=_.bi).handleError)==null||b.call.apply(b,[m].concat(_.L6(_.Us(x))))}}})})};
_.C=function(J,c){return JID.apply(null,[J,c].concat(_.L6(_.s$.apply(2,arguments))))};
ewG=function(){var J=document.body.firstElementChild;window.ng||J.__ngContext__||(J.__ngContext__={},J.setAttribute("ng-version","0.0.0-PLACEHOLDER"),window.ng=QNR)};
_.n=function(J){var c=J.cond;if(c===void 0)return J.else&&J.else();var m=_.n2(function(){return!!c()},void 0,"JHVi8"),b=function(){var x=c();
if(!x){var P;(P=_.bi.handleError)==null||P.call.apply(P,[_.bi].concat(_.L6(_.Us(jNJ.nonNullableCondIsNull()))))}return x};
return p3(function(){var x=m(),P;YB(function(){var p=PF(aP);try{P=K3(x?J.then(b):J.else&&J.else())}finally{PF(p)}},!0);
return P},{debugName:J.debugInstance,
isControlFlowComponent:!0})};
FCf=function(J){return _.n(J)};
_.Te=function(J){return J.keyBy==="INDEX"?ltD(J):yIT(J)};
BvG=function(J){J=_.M(J);for(var c=J.next();!c.done;c=J.next()){var m=void 0;(m=c.value)==null||m()}};
yIT=function(J){var c=J.keyBy===void 0||J.keyBy==="REFERENCE",m=c?function(k){return k}:J.keyBy,b=[],x=[],P=[],p=[],t=[],I=[],a=!0;
_.f2(function(){BvG(p)});
return p3(function(){var k=J.each(),H=k.length;if(H===0){if(b.length===0&&!a)return P;BvG(p);b=k;x=[];for(k=0;k<b.length;k++)x.push(m(b[k]));P=[];p=[];t=[];I=[];J.fallback&&(p[0]=gHG(function(){P[0]=K3(J.fallback())}));
a=!1;return P}for(var T=new J5D,r=b.length-1;r>=0;r--)T.push(x[r],r);r=Array(H);for(var W=Array(H),Y=Array(H),Z=Array(H),d=Array(c?0:H),G={i$jscomp$442:0};G.i$jscomp$442<H;G={i$jscomp$442:G.i$jscomp$442,item$jscomp$103:void 0,key$jscomp$523:void 0},G.i$jscomp$442++){G.item$jscomp$103=k[G.i$jscomp$442];G.key$jscomp$523=m(G.item$jscomp$103);var e=T.pop(G.key$jscomp$523);e!=null?(Y[G.i$jscomp$442]=P[e],W[G.i$jscomp$442]=x[e],r[G.i$jscomp$442]=p[e],Z[G.i$jscomp$442]=t[e],c||(d[G.i$jscomp$442]=I[e]),TL(function(A){return function(){Z[A.i$jscomp$442](A.i$jscomp$442);
if(!c)d[A.i$jscomp$442](A.item$jscomp$103)}}(G)),delete p[e]):r[G.i$jscomp$442]=gHG(function(A){return function(){var l=_.M(_.K2(A.i$jscomp$442,void 0,"Fqk1zd")),y=l.next().value;
l=l.next().value;Z[A.i$jscomp$442]=l;W[A.i$jscomp$442]=A.key$jscomp$523;if(c)Y[A.i$jscomp$442]=K3(J.children(A.item$jscomp$103,y));else{var pG=_.M(_.K2(A.item$jscomp$103,void 0,"GBj5de"));l=pG.next().value;pG=pG.next().value;d[A.i$jscomp$442]=pG;Y[A.i$jscomp$442]=K3(J.children(l,y))}}}(G))}BvG(p);
b=k;x=W;P=Y;p=r;t=Z;I=d;a=!1;return Y},{debugName:J.debugInstance,
isControlFlowComponent:!0})};
ltD=function(J){var c=[],m=[],b=[],x=[],P=!1;_.f2(function(){for(var p=_.M(x),t=p.next();!t.done;t=p.next())t=t.value,t()});
return p3(function(){var p=J.each();P&&p.length>0&&(x.pop()(),c.pop(),P=!1);for(var t=Array(p.length),I={i$jscomp$443:0};I.i$jscomp$443<p.length;I={i$jscomp$443:I.i$jscomp$443},I.i$jscomp$443++)if(I.i$jscomp$443<c.length)c[I.i$jscomp$443]!==p[I.i$jscomp$443]&&(TL(function(k){return function(){return void m[k.i$jscomp$443](p[k.i$jscomp$443])}}(I)),c[I.i$jscomp$443]=p[I.i$jscomp$443]),t[I.i$jscomp$443]=b[I.i$jscomp$443];
else{var a=gHG(function(k){return function(){c[k.i$jscomp$443]=p[k.i$jscomp$443];var H=_.M(_.K2(p[k.i$jscomp$443],void 0,"kGMqJe")),T=H.next().value;H=H.next().value;m[k.i$jscomp$443]=H;t[k.i$jscomp$443]=K3(J.children(T,k.i$jscomp$443))}}(I));
x[I.i$jscomp$443]=a}for(;c.length>p.length;)c.pop(),x.pop()(),m.pop();p.length===0&&!P&&J.fallback&&(I=gHG(function(){t[0]=K3(J.fallback())}),x[0]=I,P=!0);
return b=t},{debugName:J.debugInstance,
isControlFlowComponent:!0})};
gHG=function(J){var c=yx;return YB(function(m){var b=PF(aP);try{m.parent=c,J(m)}finally{PF(b)}},!1)};
_.wu=function(J){return J};
_.ru=function(J){return{isDefault:!0,children:J.children}};
_.sb=function(J){var c=c5r(J),m=_.n2(function(){return m8G(c)},void 0,"F1PF4");
return p3(function(){var b=m(),x;YB(function(){var P=PF(aP);try{x=K3(b())}finally{PF(P)}});
return x},{debugName:J.debugInstance,
isControlFlowComponent:!0})};
c5r=function(J){J=J.children;return Array.isArray(J)?J:[J]};
bN2=function(J){var c=J.props;J=J.getChildren()[0];return c.when?{when:c.when,children:J}:{isDefault:!0,children:J}};
m8G=function(J){var c=function(){return null};
J=_.M(J);for(var m=J.next();!m.done;m=J.next())if(m=m.value,m!=null&&m[Ja]&&(m=m.type===_.ru?{isDefault:!0,children:m.children[0]}:{when:m.props.when,children:m.children[0]}),m instanceof ta&&(m=bN2(m)),m.isDefault)c=m.children;else if(m.when())return m.children;return c};
VEt=function(J){var c=null,m,b={get value(){var P,p;(p=(P=x).validateGetValue)==null||p.call(P);return x.__value},set value(P){x.__hasBeenSet=!0;x.__value=P}},x=(b.__value=null,b.__hasBeenSet=!1,b.__hasErrored=!1,b.onRender=function(P){if(m&&P!==m){m._disposeRef=void 0;var p;(p=c)==null||p()}m=P;c=J(P)||null},b.onUnmount=function(){var P;
(P=c)==null||P();c=null},b[x8J]=!0,b);
return x};
PaQ=function(J){var c=ucR();if(c==null)throw _.L3.PRIMITIVE_INVALID_HOOK_CALL();var m=c.hookCounter++;c.hooks||(c.hooks=[]);var b=c.hooks;b[m]||(b[m]={key:J,host:c});if(J!==b[m].key){if(c.JSC$8225___type){var x;J=(x=c.JSC$8225___type)==null?void 0:x.name}else J=c instanceof iN?gKG(c.functionComponent):"<"+c.el.tagName.toLowerCase()+">";throw _.L3.OUT_OF_ORDER_HOOK_CALL(J);}return b[m]};
MEm=function(J,c){return!J||J.length!==(c==null?void 0:c.length)||J.some(function(m,b){return m!==c[b]})};
pyG=function(J,c){var m=PaQ("onChange"),b=ucR();MEm(m.deps,c)&&(m.deps=c,m.pendingEffect=J,b.__syncEffects||(b.__syncEffects=[]),b.__syncEffects.push(m))};
_.Dc=function(J,c){var m=m===void 0?{enableDevtools:!1}:m;var b=_.bi.legacyTriggerSoyRendererEvents,x=m.appContext,P=zL(function(){var p=PF(aP);try{return YB(function(){var t=_.Lvu(_.fw(J)),I;var a=vyu({rootElement:{value:J},appContext:x||(t==null?void 0:(I=t.getOptionalAppContext)==null?void 0:I.call(t)),dispatcher:t});t=_.Ba(a);a=mv(!0);w_++;try{N3(c(),J),B3Q(!1)}catch(k){throw B3Q(!0),k;}finally{mv(a),_.Ba(t)}},!1)}catch(t){throw _.bi.enableContextBasedComponentStacks&&WF(t),t;
}finally{PF(p)}});
J[NPt]=!0;b&&C3T(J,x);return function(){J.textContent="";P();J[NPt]=!1}};
_.WG=function(J){if(l4J(VD)){var c;(c=_.bi.handleError)==null||c.call.apply(c,[_.bi].concat(_.L6(_.Us(Error("$b")))))}var m=yx,b=r_;Promise.resolve().then(function(){if(m&&!m.isDisposed){var x=_.Ba(m);try{zL(function(){return void J()},b)}catch(P){throw _.bi.enableContextBasedComponentStacks&&WF(P),P;
}finally{_.Ba(x)}}})};
ze=function(J,c){pyG(function(){return ID(J)},c)};
_.uN=function(J){D7()?_.WG(function(){ID(J)}):pyG(function(){return ID(J)},[])};
I1q=function(J){var c=[].concat(_.L6(J));J.length=0;J=_.M(c);for(c=J.next();!c.done;c=J.next()){c=c.value;tEQ(c);var m=c.pendingEffect;c.pendingEffect=null;if(m=m==null?void 0:m())c.pendingCleanup=m}};
tEQ=function(J){var c=J.pendingCleanup;J.pendingCleanup=null;c==null||c()};
KeR=function(J,c){if(D7())return J();var m=PaQ("useMemoInternal");MEm(m.deps,c)&&(m.deps=c,m.value=J());return m.value};
Ca2=function(J,c){return KeR(J,c)};
f3=function(J){return KeR(J,[])};
Yy=function(J){return f3(function(){return{value:J}})};
_.Xk=function(J,c){if(!J)return null;J=Object.keys(J);J=_.M(J);for(var m=J.next();!m.done;m=J.next()){m=m.value;var b=m.toLowerCase();if(b.indexOf(c,b.length-c.length)>-1)return m}return null};
_.q3=function(){var J=arguments,c=_.Zc;J.length>1?c[J[0]]=J[1]:J.length===1&&Object.assign(c,J[0])};
_.Ub=function(J,c){return J in _.Zc?_.Zc[J]:c};
_.Ss=function(J,c){return!!_.Ub(J,c)};
a12=function(J){var c=_.Zc.EXPERIMENT_FLAGS;return c?c[J]:void 0};
HNr=function(J){kkm.forEach(function(c){return c(J)})};
_.du=function(J){return J&&window.yterr?function(){try{return J.apply(this,arguments)}catch(c){_.ha(c)}}:J};
_.ha=function(J){var c=_.$y("yt.logging.errors.log");c?c(J,"ERROR",void 0,void 0,void 0,void 0,void 0):(c=_.Ub("ERRORS",[]),c.push([J,"ERROR",void 0,void 0,void 0,void 0,void 0]),_.q3("ERRORS",c));HNr(J)};
_.Ge=function(J,c,m,b,x){var P=_.$y("yt.logging.errors.log");P?P(J,"WARNING",c,m,b,void 0,x):(P=_.Ub("ERRORS",[]),P.push([J,"WARNING",c,m,b,void 0,x]),_.q3("ERRORS",P))};
nAQ=function(J,c){c=J.split(c);for(var m={},b=0,x=c.length;b<x;b++){var P=c[b].split("=");if(P.length===1&&P[0]||P.length===2)try{var p=iNQ(P[0]||""),t=iNQ(P[1]||"");if(p in m){var I=m[p];Array.isArray(I)?_.Br(I,t):m[p]=[I,t]}else m[p]=t}catch(T){var a=T,k=P[0],H=String(nAQ);a.args=[{key:k,value:P[1],query:J,method:TP2===H?"unchanged":H}];wye.hasOwnProperty(k)||_.Ge(a)}}return m};
r5Q=function(J){var c=[];_.Lw.forEach(J,function(m,b){var x=_.Eb(b);_.vG(Array.isArray(m)?m:[m],function(P){P==""?c.push(x):c.push(x+"="+_.Eb(P))})});
return c.join("&")};
_.Ob=function(J){J.charAt(0)==="?"&&(J=J.substring(1));return nAQ(J,"&")};
_.Aa=function(J){return J.indexOf("?")!==-1?(J=(J||"").split("#")[0],J=J.split("?",2),_.Ob(J.length>1?J[1]:J[0])):{}};
_.RP=function(J,c){return s3G(J,c||{},!0)};
Le2=function(J,c){return s3G(J,c||{},!1)};
s3G=function(J,c,m){var b=J.split("#",2);J=b[0];b=b.length>1?"#"+b[1]:"";var x=J.split("?",2);J=x[0];x=_.Ob(x[1]||"");for(var P in c)if(m||!_.Lw.containsKey(x,P))x[P]=c[P];return _.oP(J,x)+b};
Fk=function(J){if(!c)var c=window.location.href;var m=_.Q6(J)[1]||null,b=_.es(J);return m&&b?js(J,c):b?_.es(c)===b&&(Number(_.Q6(c)[4]||null)||null)===(Number(_.Q6(J)[4]||null)||null):!0};
_.We3=function(J){J=D8t(J);return J===null?!1:J[0]==="com"&&J[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
D8t=function(J){J=_.es(J);return J!==null?J.split(".").reverse():null};
iNQ=function(J){return J&&J.match(zFq)?J:lN(J)};
_.y6=function(J){return new u6o(J)};
_.BG=function(){f1o||(f1o=new Y4R);return f1o};
ZN2=function(J){var c=_.gu,m,b;_.N(function(x){m=_.BG();return(b=m.resolve(_.y6(c)))?(J(b),x.return(Promise.resolve(b))):x.return(m.resolve(new Xy2(c)).then(function(P){J(P);return P}))})};
_.w=function(J){J=JL(J);return typeof J==="string"&&J==="false"?!1:!!J};
_.c7=function(J,c){J=JL(J);return J===void 0&&c!==void 0?c:Number(J||0)};
q4T=function(J){J=JL(J);return Array.isArray(J)?_.Wm(J,function(c){return Number(c||0)}):[Number(J||0)]};
_.mG=function(J){J=JL(J);return J!==void 0?String(J):""};
_.bj=function(J){J=JL(J);return Array.isArray(J)?_.Wm(J,function(c){return String(c||"")}):[String(J||"")]};
U8r=function(){return _.Ub("EXPERIMENTS_TOKEN","")};
JL=function(J){return _.Ub("EXPERIMENT_FLAGS",{})[J]};
S4R=function(){for(var J=[],c=_.Ub("EXPERIMENTS_FORCED_FLAGS",{}),m=_.M(Object.keys(c)),b=m.next();!b.done;b=m.next())b=b.value,J.push({key:b,value:String(c[b])});m=_.Ub("EXPERIMENT_FLAGS",{});b=_.M(Object.keys(m));for(var x=b.next();!x.done;x=b.next())x=x.value,x.startsWith("force_")&&c[x]===void 0&&J.push({key:x,value:String(m[x])});return J};
d8q=function(){if(!hFJ)return null;var J=hFJ();return"open"in J?J:null};
_.$8Q=function(J){switch(_.xK(J)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
_.xK=function(J){return J&&"status"in J?J.status:-1};
_.P7=function(J,c){typeof J==="function"&&(J=_.du(J));return window.setTimeout(J,c)};
_.MU=function(J,c){typeof J==="function"&&(J=_.du(J));return window.setInterval(J,c)};
_.pg=function(J){window.clearTimeout(J)};
EAR=function(J){J=_.Aa(J);for(var c=_.M(Gkf),m=c.next();!m.done;m=c.next())if(J[m.value]!==void 0)return!0;return!1};
A5Q=function(J,c,m,b,x,P,p,t){m=m===void 0?"GET":m;b=b===void 0?"":b;t=t===void 0?!1:t;var I=d8q();if(!I)return null;var a=function(){(I&&"readyState"in I?I.readyState:0)===4&&c&&_.du(c)(I)};
"onloadend"in I?I.addEventListener("loadend",a,!1):I.onreadystatechange=a;_.w("debug_forward_web_query_parameters")&&(J=vAJ(J,window.location.search));I.open(m,J,!0);P&&(I.responseType=P);p&&(I.withCredentials=!0);m=m==="POST"&&(window.FormData===void 0||!(b instanceof FormData));if(x=ON2(J,x))for(var k in x)I.setRequestHeader(k,x[k]),"content-type"===k.toLowerCase()&&(m=!1);m&&I.setRequestHeader("Content-Type","application/x-www-form-urlencoded");if(t&&"setAttributionReporting"in XMLHttpRequest.prototype){J=
{eventSourceEligible:!0,triggerEligible:!1};try{I.setAttributionReporting(J)}catch(H){_.Ge(H)}}I.send(b);return I};
ON2=function(J,c){c=c===void 0?{}:c;var m=Fk(J),b=_.Ub("INNERTUBE_CLIENT_NAME"),x=_.w("web_ajax_ignore_global_headers_if_set"),P;for(P in RFu){var p=_.Ub(RFu[P]),t=P==="X-Goog-AuthUser"||P==="X-Goog-PageId";P!=="X-Goog-Visitor-Id"||p||(p=_.Ub("VISITOR_DATA"));var I;if(!(I=!p)){if(!(I=m||(_.es(J)?!1:!0))){I=J;var a;if(a=_.w("add_auth_headers_to_remarketing_google_dot_com_ping")&&P==="Authorization"&&(b==="TVHTML5"||b==="TVHTML5_UNPLUGGED"||b==="TVHTML5_SIMPLY"))a=D8t(I),a=a===null?!1:a[1]==="google"?
!0:a[2]==="google"?a[0]==="au"&&a[1]==="com"?!0:a[0]==="uk"&&a[1]==="co"?!0:!1:!1;a&&(I=_.NU(I)||"",I=I.split("/"),I="/"+(I.length>1?I[1]:""),a=I==="/pagead");I=a?!0:!1}I=!I}I||x&&c[P]!==void 0||b==="TVHTML5_UNPLUGGED"&&t||(c[P]=p)}"X-Goog-EOM-Visitor-Id"in c&&"X-Goog-Visitor-Id"in c&&delete c["X-Goog-Visitor-Id"];if(m||!_.es(J))c["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(m||!_.es(J)){try{var k=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(H){}k&&(c["X-YouTube-Time-Zone"]=
k)}document.location.hostname.endsWith("youtubeeducation.com")||!m&&_.es(J)||(c["X-YouTube-Ad-Signals"]=r5Q(oAG()));return c};
_.Q33=function(J,c){var m=_.es(J);_.w("debug_handle_relative_url_for_query_forward_killswitch")||!m&&Fk(J)&&(m=document.location.hostname);var b=_.NU(J);b=(m=m&&(m.endsWith("youtube.com")||m.endsWith("youtube-nocookie.com")))&&b&&b.startsWith("/api/");if(!m||b)return J;var x=_.Ob(c),P={};_.vG(Gkf,function(p){x[p]&&(P[p]=x[p])});
return Le2(J,P)};
eF2=function(J,c){c.method="POST";c.postParams||(c.postParams={});return _.tL(J,c)};
j3T=function(J,c){var m=_.Ub("XSRF_FIELD_NAME"),b;c.headers&&(b=c.headers["Content-Type"]);return!c.excludeXsrf&&(!_.es(J)||c.withCredentials||_.es(J)===document.location.hostname)&&c.method==="POST"&&(!b||b==="application/x-www-form-urlencoded")&&!(c.postParams&&c.postParams[m])};
_.tL=function(J,c){var m=c.format||"JSON";J=FeQ(J,c);var b=l1t(J,c),x=!1,P=y5G(J,function(I){if(!x){x=!0;t&&_.pg(t);var a=_.$8Q(I),k=null,H=400<=I.status&&I.status<500,T=500<=I.status&&I.status<600;if(a||H||T)k=BPo(J,m,I,c.convertToSafeHtml);a&&(a=gAf(m,I,k));k=k||{};H=c.context||_.mo;a?c.onSuccess&&c.onSuccess.call(H,I,k):c.onError&&c.onError.call(H,I,k);c.onFinish&&c.onFinish.call(H,I,k)}},c.method,b,c.headers,c.responseType,c.withCredentials);
b=c.timeout||0;if(c.onTimeout&&b>0){var p=c.onTimeout;var t=_.P7(function(){x||(x=!0,P.abort(),_.pg(t),p.call(c.context||_.mo,P))},b)}return P};
FeQ=function(J,c){c.includeDomain&&(J=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+J);var m=_.Ub("XSRF_FIELD_NAME");if(c=c.urlParams)c[m]&&delete c[m],J=_.RP(J,c);return J};
l1t=function(J,c){var m=_.Ub("XSRF_FIELD_NAME"),b=_.Ub("XSRF_TOKEN"),x=c.postBody||"",P=c.postParams;j3T(J,c)&&(P||(P={}),P[m]=b);(_.w("ajax_parse_query_data_only_when_filled")&&P&&Object.keys(P).length>0||P)&&typeof x==="string"&&(x=_.Ob(x),_.Lw.extend(x,P),x=c.postBodyFormat&&c.postBodyFormat==="JSON"?JSON.stringify(x):_.Ir(x));P=x||P&&!_.Lw.isEmpty(P);!J0R&&P&&c.method!=="POST"&&(J0R=!0,_.ha(Error("Fc")));return x};
BPo=function(J,c,m,b){var x=null;switch(c){case "JSON":try{var P=m.responseText}catch(p){throw b=Error("Gc"),b.params=J,_.Ge(b),p;}J=m.getResponseHeader("Content-Type")||"";P&&J.indexOf("json")>=0&&(P.substring(0,5)===")]}'\n"&&(P=P.substring(5)),x=JSON.parse(P));break;case "XML":if(J=(J=m.responseXML)?c0D(J):null)x={},_.vG(J.getElementsByTagName("*"),function(p){x[p.tagName]=ma2(p)})}b&&blr(x);
return x};
blr=function(J){if(_.cB(J))for(var c in J)c==="html_content"||Pr(c,"_html")?J[c]=us(J[c]):blr(J[c])};
gAf=function(J,c,m){if(c&&c.status===204)return!0;switch(J){case "JSON":return!!m;case "XML":return Number(m&&m.return_code)===0;case "RAW":return!0;default:return!!m}};
c0D=function(J){return J?(J=("responseXML"in J?J.responseXML:J).getElementsByTagName("root"))&&J.length>0?J[0]:null:null};
ma2=function(J){var c="";_.vG(J.childNodes,function(m){c+=m.nodeValue});
return c};
xaq=function(J){if(J.name==="JavaException")return!0;J=J.stack;return J.includes("chrome://")||J.includes("-extension://")||J.includes("webkit-masked-url://")};
VKT=function(J){if(!J.stack)return!0;var c=!J.stack.includes("\n");return c&&J.stack.includes("ErrorType: ")||c&&J.stack.includes("Anonymous function (Unknown script")||J.stack.toLowerCase()==="not available"||J.fileName==="user-script"||J.fileName.startsWith("user-script:")?!0:!1};
_.Kg=function(J){_.DS.call(this);this.JSC$8446_key_=1;this.pendingKeys_=[];this.publishDepth_=0;this.subscriptions_=[];this.topics_={};this.async_=!!J};
MKJ=function(J,c){var m=J.length,b=0,x=function(){return J.charCodeAt(b++)};
do{var P=PkR(x);if(P===Infinity)break;var p=P>>3;switch(P&7){case 0:P=PkR(x);if(p===c)return P;break;case 1:if(p===c)return;b+=8;break;case 2:P=PkR(x);if(p===c)return J.substr(b,P);b+=P;break;case 5:if(p===c)return;b+=4;break;default:return}}while(b<m)};
PkR=function(J){var c=J(),m=c&127;if(c<128)return m;c=J();m|=(c&127)<<7;if(c<128)return m;c=J();m|=(c&127)<<14;if(c<128)return m;c=J();return c<128?m|(c&127)<<21:Infinity};
NKQ=function(J,c,m,b){if(J)if(Array.isArray(J)){var x=b;for(b=0;b<J.length&&!(J[b]&&(x+=pSo(b,J[b],c,m),x>500));b++);b=x}else if(typeof J==="object")for(x in J){if(J[x]){var P=x;var p=J[x],t=c,I=m;P=typeof p!=="string"||P!=="clickTrackingParams"&&P!=="trackingParams"?0:(p=MKJ(atob(p.replace(/-/g,"+").replace(/_/g,"/")),2))?pSo(P+".ve",p,t,I):0;b+=P;b+=pSo(x,J[x],c,m);if(b>500)break}}else m[c]=Cg(J),b+=m[c].length;else m[c]=Cg(J),b+=m[c].length;return b};
pSo=function(J,c,m,b){m+="."+J;J=Cg(c);b[m]=J;return m.length+J.length};
Cg=function(J){try{return(typeof J==="string"?J:String(JSON.stringify(J))).substr(0,500)}catch(c){return"unable to serialize "+typeof J+" ("+c.message+")"}};
tKu=function(J){switch(J){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}};
_.kK=function(J,c,m,b,x){_.ar.set(J,c,{maxAge:m,path:"/",domain:b===void 0?"youtube.com":b,secure:x===void 0?!1:x})};
_.IPt=function(J,c,m){_.ar.remove(J,c===void 0?"/":c,m===void 0?"youtube.com":m)};
_.H7=function(){if(_.w("embeds_web_enable_cookie_detection_fix")){if(!_.mo.navigator.cookieEnabled)return!1}else if(!_.ar.isEnabled())return!1;if(!_.ar.isEmpty())return!0;_.w("embeds_web_enable_cookie_detection_fix")?_.ar.set("TESTCOOKIESENABLED","1",{maxAge:60,sameSite:"none",secure:!0}):_.ar.set("TESTCOOKIESENABLED","1",{maxAge:60});if(_.ar.get("TESTCOOKIESENABLED")!=="1")return!1;_.ar.remove("TESTCOOKIESENABLED");return!0};
KyT=function(){var J=_.mo.navigator;return J?J.connection:void 0};
CkQ=function(){if(typeof Intl!=="undefined")try{return(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(J){}};
_.kvu=function(){var J=KyT();if(J){var c=aPq[J.type||"unknown"]||"CONN_UNKNOWN";J=aPq[J.effectiveType||"unknown"]||"CONN_UNKNOWN";c==="CONN_CELLULAR_UNKNOWN"&&J!=="CONN_UNKNOWN"&&(c=J);if(c!=="CONN_UNKNOWN")return c;if(J!=="CONN_UNKNOWN")return J}};
ilq=function(){var J=KyT();if(J!=null&&J.effectiveType)return HlR.hasOwnProperty(J.effectiveType)?HlR[J.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
_.To=function(){try{return _.ij(),!0}catch(J){return!1}};
_.ij=function(J){if(_.Ub("DATASYNC_ID")!==void 0)return _.Ub("DATASYNC_ID");throw new _.w3("Datasync ID not set",J===void 0?"unknown":J);};
_.r3=function(J){this.mechanism=J};
sO=function(J){this.mechanism=J};
Lg=function(J){this.storage_=J;this.cachedIsStorageAvailable_=null};
n3t=function(){var J=null;try{J=_.mo.localStorage||null}catch(c){}Lg.call(this,J)};
TKm=function(){var J=null;try{J=_.mo.sessionStorage||null}catch(c){}Lg.call(this,J)};
D4=function(J,c){this.mechanism_=J;this.JSC$8548_prefix_=c+"::"};
_.wS2=function(J){var c=new n3t;return c.isAvailable()?J?new D4(c,J):c:null};
_.r0t=function(J){var c=new TKm;return c.isAvailable()?J?new D4(c,J):c:null};
Lyq=function(){var J;return(J=szo())==null?void 0:J.get("LAST_RESULT_ENTRY_KEY",!0)};
_.uj=function(J){DaT||(_.W7?_.W7.logError(J):(_.zo.push({type:"ERROR",payload:J}),_.zo.length>10&&_.zo.shift()))};
fg=function(J,c){DaT||(_.W7?_.W7.logEvent(J,c):(_.zo.push({type:"EVENT",eventType:J,payload:c}),_.zo.length>10&&_.zo.shift()))};
YK=function(J){if(J.indexOf(":")>=0)throw Error("Nc");};
Xb=function(J){return J.substr(0,J.indexOf(":"))||J};
uRT=function(){return(WyJ||zmT)&&Z4("applewebkit")&&!Z4("version")&&(!Z4("safari")||Z4("gsa/"))};
Z4=function(J){var c=_.Hr();return c?c.toLowerCase().indexOf(J)>=0:!1};
XSe=function(J,c,m,b){c=Xb(c);var x=J instanceof Error?J:Error("Oc`"+J);if(x instanceof qU)return x;J={objectStoreNames:m,dbName:c,dbVersion:b};if(x.name==="QuotaExceededError")return new qU("QUOTA_EXCEEDED",J);if(_.UO&&x.name==="UnknownError")return new qU("QUOTA_MAYBE_EXCEEDED",J);if(x instanceof fPu)return new qU("MISSING_INDEX",Object.assign({},J,{objectStore:x.objectStore,index:x.index}));if(x.name==="InvalidStateError"&&YHf.some(function(P){return x.message.includes(P)}))return new qU("EXECUTE_TRANSACTION_ON_CLOSED_DB",
J);
if(x.name==="AbortError")return new qU("UNKNOWN_ABORT",J,x.message);x.args=[Object.assign({},J,{name:"IdbError",originalName:x.name})];x.level="WARNING";return x};
SD=function(J,c,m){var b=Lyq();return new qU("IDB_NOT_SUPPORTED",{context:{caller:J,publicName:c,version:m,hasSucceededOnce:b==null?void 0:b.hasSucceededOnce}})};
Zlq=function(J){if(!J)throw Error();throw J;};
qH3=function(J){return J};
Uae=function(J,c,m){var b=function(){try{J.removeEventListener("success",x),J.removeEventListener("error",P)}catch(p){}},x=function(){c(J.result);
b()},P=function(){m(J.error);
b()};
J.addEventListener("success",x);J.addEventListener("error",P)};
SHf=function(J){return new Promise(function(c,m){Uae(J,c,m)})};
$K=function(J){return new hL(new d3(function(c,m){Uae(J,c,m)}))};
hmo=function(J,c){return new hL(new d3(function(m,b){var x=function(){var P=J?c(J):null;P?P.then(function(p){J=p;x()},b):m()};
x()}))};
$aT=function(J,c,m){return new Promise(function(b,x){var P=c!==void 0?self.indexedDB.open(J,c):self.indexedDB.open(J);var p=m.blocked,t=m.blocking,I=m.terminated,a=m.upgrade,k=m.closed,H,T=function(){H||(H=new Go(P.result,{closed:k}));return H};
P.addEventListener("upgradeneeded",function(r){try{if(r.newVersion===null)throw Error("Tc");if(P.transaction===null)throw Error("Uc");r.dataLoss&&r.dataLoss!=="none"&&fg("IDB_DATA_CORRUPTED",{reason:r.dataLossMessage||"unknown reason",dbName:Xb(J)});var W=T(),Y=new daG(P.transaction);a&&a(W,function(Z){return r.oldVersion<Z&&r.newVersion>=Z},Y);
Y.done.catch(function(Z){x(Z)})}catch(Z){x(Z)}});
P.addEventListener("success",function(){var r=P.result;t&&r.addEventListener("versionchange",function(){t(T())});
r.addEventListener("close",function(){fg("IDB_UNEXPECTEDLY_CLOSED",{dbName:Xb(J),dbVersion:r.version});I&&I()});
b(T())});
P.addEventListener("error",function(){x(P.error)});
p&&P.addEventListener("blocked",function(){p()})})};
Gv2=function(J,c,m){m=m===void 0?{}:m;return $aT(J,c,m)};
_.v7=function(J,c){c=c===void 0?{}:c;var m,b,x,P;return _.N(function(p){if(p.nextAddress==1)return _.xL(p,2),m=self.indexedDB.deleteDatabase(J),b=c,(x=b.blocked)&&m.addEventListener("blocked",function(){x()}),_.K(p,SHf(m),4);
if(p.nextAddress!=2)return _.EO(p,0);P=_.NM(p);throw XSe(P,J,"",-1);})};
v3q=function(J,c){var m;return _.N(function(b){if(b.nextAddress==1)return _.K(b,_.OO(E3G,c),2);m=b.yieldResult;return b.return(_.AL(m,["databases"],{enableRetries:!0,mode:"readwrite"},function(x){var P=x.objectStore("databases");return P.get(J.actualName).then(function(p){if(p?J.actualName!==p.actualName||J.publicName!==p.publicName||J.userIdentifier!==p.userIdentifier:1)return P.put(J).then(function(){})})}))})};
_.Rr=function(J,c){var m;return _.N(function(b){if(b.nextAddress==1)return J?_.K(b,_.OO(E3G,c),2):b.return();m=b.yieldResult;return b.return(m.delete("databases",J))})};
_.Olu=function(J,c){var m,b;return _.N(function(x){return x.nextAddress==1?(m=[],_.K(x,_.OO(E3G,c),2)):x.nextAddress!=3?(b=x.yieldResult,_.K(x,_.AL(b,["databases"],{enableRetries:!0,mode:"readonly"},function(P){m.length=0;return or(P.objectStore("databases"),{},function(p){J(p.getValue())&&m.push(p.getValue());return p.continue()})}),3)):x.return(m)})};
A0J=function(J,c){return _.Olu(function(m){return m.publicName===J&&m.userIdentifier!==void 0},c)};
Qz3=function(){var J,c,m,b;return _.N(function(x){switch(x.nextAddress){case 1:J=Lyq();if((c=J)==null?0:c.hasSucceededOnce)return x.return(!0);var P;if(P=RmJ)P=/WebKit\/([0-9]+)/.exec(_.Hr()),P=!!(P&&parseInt(P[1],10)>=600);P&&(P=/WebKit\/([0-9]+)/.exec(_.Hr()),P=!(P&&parseInt(P[1],10)>=602));if(P||Q4)return x.return(!1);try{if(m=self,!(m.indexedDB&&m.IDBIndex&&m.IDBKeyRange&&m.IDBObjectStore))return x.return(!1)}catch(p){return x.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return x.return(!1);
_.xL(x,2);b={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return _.K(x,v3q(b,o3D),4);case 4:return _.K(x,_.Rr("yt-idb-test-do-not-use",o3D),5);case 5:return x.return(!0);case 2:return _.NM(x),x.return(!1)}})};
jzr=function(){if(emo!==void 0)return emo;DaT=!0;return emo=Qz3().then(function(J){DaT=!1;var c;if((c=szo())!=null&&c.expiringStorage_){var m;c={hasSucceededOnce:((m=Lyq())==null?void 0:m.hasSucceededOnce)||J};var b;(b=szo())==null||b.set("LAST_RESULT_ENTRY_KEY",c,2592E3,!0)}return J})};
eD=function(){return _.$y("ytglobal.idbToken_")||void 0};
_.Fb=function(){var J=eD();return J?Promise.resolve(J):jzr().then(function(c){(c=c?o3D:void 0)&&_.jD("ytglobal.idbToken_",c);return c})};
Fye=function(J){if(!_.To())throw J=new qU("AUTH_INVALID",{dbName:J}),_.uj(J),J;var c=_.ij();return{actualName:J+":"+c,publicName:J,userIdentifier:c}};
lPR=function(J,c,m,b){var x,P,p,t,I,a;return _.N(function(k){switch(k.nextAddress){case 1:return P=(x=Error().stack)!=null?x:"",_.K(k,_.Fb(),2);case 2:p=k.yieldResult;if(!p)throw t=SD("openDbImpl",J,c),_.w("ytidb_async_stack_killswitch")||(t.stack=t.stack+"\n"+P.substring(P.indexOf("\n")+1)),_.uj(t),t;YK(J);I=m?{actualName:J,publicName:J,userIdentifier:void 0}:Fye(J);_.xL(k,3);return _.K(k,v3q(I,p),5);case 5:return _.K(k,Gv2(I.actualName,c,b),6);case 6:return k.return(k.yieldResult);case 3:return a=
_.NM(k),_.xL(k,7),_.K(k,_.Rr(I.actualName,p),9);case 9:_.EO(k,8);break;case 7:_.NM(k);case 8:throw a;}})};
y0e=function(J,c,m){m=m===void 0?{}:m;return lPR(J,c,!1,m)};
BKR=function(J,c,m){m=m===void 0?{}:m;return lPR(J,c,!0,m)};
g32=function(J,c){c=c===void 0?{}:c;var m,b;return _.N(function(x){if(x.nextAddress==1)return _.K(x,_.Fb(),2);if(x.nextAddress!=3){m=x.yieldResult;if(!m)return x.return();YK(J);b=Fye(J);return _.K(x,_.v7(b.actualName,c),3)}return _.K(x,_.Rr(b.actualName,m),0)})};
JST=function(J,c,m){J=J.map(function(b){return _.N(function(x){return x.nextAddress==1?_.K(x,_.v7(b.actualName,c),2):_.K(x,_.Rr(b.actualName,m),0)})});
return Promise.all(J).then(function(){})};
cSt=function(J){var c=c===void 0?{}:c;var m,b;return _.N(function(x){if(x.nextAddress==1)return _.K(x,_.Fb(),2);if(x.nextAddress!=3){m=x.yieldResult;if(!m)return x.return();YK(J);return _.K(x,A0J(J,m),3)}b=x.yieldResult;return _.K(x,JST(b,c,m),0)})};
mLt=function(J,c){c=c===void 0?{}:c;var m;return _.N(function(b){if(b.nextAddress==1)return _.K(b,_.Fb(),2);if(b.nextAddress!=3){m=b.yieldResult;if(!m)return b.return();YK(J);return _.K(b,_.v7(J,c),3)}return _.K(b,_.Rr(J,m),0)})};
lj=function(J,c){return bXG(J,c)};
VHQ=function(J){return _.OO(xLG(),J)};
PJu=function(J,c,m,b){var x,P,p;return _.N(function(t){switch(t.nextAddress){case 1:return x={config:J,hashData:c,timestamp:b!==void 0?b:(0,_.y4)()},_.K(t,VHQ(m),2);case 2:return P=t.yieldResult,_.K(t,P.clear("hotConfigStore"),3);case 3:return _.K(t,P.put("hotConfigStore",x),4);case 4:return p=t.yieldResult,t.return(p)}})};
MHr=function(J,c,m,b,x){var P,p,t;return _.N(function(I){switch(I.nextAddress){case 1:return P={config:J,hashData:c,configData:m,timestamp:x!==void 0?x:(0,_.y4)()},_.K(I,VHQ(b),2);case 2:return p=I.yieldResult,_.K(I,p.clear("coldConfigStore"),3);case 3:return _.K(I,p.put("coldConfigStore",P),4);case 4:return t=I.yieldResult,I.return(t)}})};
pAG=function(J){var c,m;return _.N(function(b){return b.nextAddress==1?_.K(b,VHQ(J),2):b.nextAddress!=3?(c=b.yieldResult,m=void 0,_.K(b,_.AL(c,["coldConfigStore"],{mode:"readwrite",enableRetries:!0},function(x){return _.B7(x.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(P){m=P.getValue()})}),3)):b.return(m)})};
NM2=function(J){var c,m;return _.N(function(b){return b.nextAddress==1?_.K(b,VHQ(J),2):b.nextAddress!=3?(c=b.yieldResult,m=void 0,_.K(b,_.AL(c,["hotConfigStore"],{mode:"readwrite",enableRetries:!0},function(x){return _.B7(x.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(P){m=P.getValue()})}),3)):b.return(m)})};
tHe=function(){return _.N(function(J){return _.K(J,cSt("ytGcfConfig"),0)})};
IuR=function(){return"INNERTUBE_API_KEY"in _.Zc&&"INNERTUBE_API_VERSION"in _.Zc};
_.g3=function(){return{innertubeApiKey:_.Ub("INNERTUBE_API_KEY"),innertubeApiVersion:_.Ub("INNERTUBE_API_VERSION"),innertubeContextClientConfigInfo:_.Ub("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),innertubeContextClientName:_.Ub("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientNameFieldNumber:_.Ub("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:_.Ub("INNERTUBE_CONTEXT_CLIENT_VERSION"),innertubeContextHostLanguage:_.Ub("INNERTUBE_CONTEXT_HL"),innertubeContextGeoLocation:_.Ub("INNERTUBE_CONTEXT_GL"),
innertubeHostOverride:_.Ub("INNERTUBE_HOST_OVERRIDE")||"",innertubeUseThirdPartyAuth:_.Ss("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),innertubeOmitApiKeyWhenAuthHeaderIsPresent:_.Ss("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:_.Ub("SERIALIZED_CLIENT_CONFIG_DATA")}};
_.n2m=function(J){var c={client:{hl:J.innertubeContextHostLanguage,gl:J.innertubeContextGeoLocation,clientName:J.innertubeContextClientName,clientVersion:J.innertubeContextClientVersion,configInfo:J.innertubeContextClientConfigInfo}};navigator.userAgent&&(c.client.userAgent=String(navigator.userAgent));var m=_.mo.devicePixelRatio;m&&m!=1&&(c.client.screenDensityFloat=String(m));m=U8r();m!==""&&(c.client.experimentsToken=m);m=S4R();m.length>0&&(c.request={internalExperimentFlags:m});K9T(J,void 0,c);
CJq(void 0,c);au2(void 0,c);kmJ(J,void 0,c);HXt(void 0,c);_.w("start_client_gcf")&&iXo(void 0,c);_.Ub("DELEGATED_SESSION_ID")&&!_.w("pageid_as_header_web")&&(c.user={onBehalfOfUser:_.Ub("DELEGATED_SESSION_ID")});!_.w("fill_delegate_context_in_gel_killswitch")&&(J=_.Ub("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(c.user=Object.assign({},c.user,{serializedDelegationContext:J}));J=_.Ub("INNERTUBE_CONTEXT");var b;if(_.w("enable_persistent_device_token")&&(J==null?0:(b=J.client)==null?0:b.rolloutToken)){var x;
c.client.rolloutToken=J==null?void 0:(x=J.client)==null?void 0:x.rolloutToken}b=Object;x=b.assign;J=c.client;m={};for(var P=_.M(Object.entries(_.Ob(_.Ub("DEVICE","")))),p=P.next();!p.done;p=P.next()){var t=_.M(p.value);p=t.next().value;t=t.next().value;p==="cbrand"?m.deviceMake=t:p==="cmodel"?m.deviceModel=t:p==="cbr"?m.browserName=t:p==="cbrver"?m.browserVersion=t:p==="cos"?m.osName=t:p==="cosver"?m.osVersion=t:p==="cplatform"&&(m.platform=t)}c.client=x.call(b,J,m);return c};
K9T=function(J,c,m){J=J.innertubeContextClientName;if(J==="WEB"||J==="MWEB"||J===1||J===2)if(c){m=_.JU(c,TMR,96)||new TMR;var b=wAf();b=Object.keys(rSe).indexOf(b);b=b===-1?null:b;b!==null&&_.c4(m,3,b);_.m_(c,96,m)}else m&&(m.client.mainAppWebInfo=(b=m.client.mainAppWebInfo)!=null?b:{},m.client.mainAppWebInfo.webDisplayMode=wAf())};
CJq=function(J,c){var m=_.$y("yt.embedded_player.embed_url");m&&(J?(c=_.JU(J,snR,7)||new snR,_.aw(c,4,m),_.m_(J,7,c)):c&&(c.thirdParty={embedUrl:m}))};
au2=function(J,c){var m;if(_.w("web_log_memory_total_kbytes")&&((m=_.mo.navigator)==null?0:m.deviceMemory)){var b;m=(b=_.mo.navigator)==null?void 0:b.deviceMemory;J?_.mL(J,95,Ze(m*1E6)):c&&(c.client.memoryTotalKbytes=""+m*1E6)}};
kmJ=function(J,c,m){if(J.appInstallData)if(c){var b;m=(b=_.JU(c,bO,62))!=null?b:new bO;_.aw(m,6,J.appInstallData);_.m_(c,62,m)}else m&&(m.client.configInfo=m.client.configInfo||{},m.client.configInfo.appInstallData=J.appInstallData)};
HXt=function(J,c){var m=_.kvu();m&&(J?_.c4(J,61,L9Q[m]):c&&(c.client.connectionType=m));_.w("web_log_effective_connection_type")&&(m=ilq())&&(J?_.c4(J,94,DLD[m]):c&&(c.client.effectiveConnectionType=m))};
_.uvu=function(J,c,m){m=m===void 0?{}:m;var b={};_.Ub("EOM_VISITOR_DATA")?b={"X-Goog-EOM-Visitor-Id":_.Ub("EOM_VISITOR_DATA")}:b={"X-Goog-Visitor-Id":m.visitorData||_.Ub("VISITOR_DATA","")};if(c&&c.includes("www.youtube-nocookie.com"))return b;c=m.authorization||_.Ub("AUTHORIZATION");c||(J?c="Bearer "+_.$y("gapi.auth.getToken")().access_token:(W9r.instance||(W9r.instance=new W9r),J=zYq(),_.w("pageid_as_header_web")||delete J["X-Goog-PageId"],b=Object.assign({},b,J)));c&&(b.Authorization=c);return b};
iXo=function(J,c){var m=fut();if(m){var b=m.coldConfigData,x=m.coldHashData;m=m.hotHashData;if(J){var P;c=(P=_.JU(J,bO,62))!=null?P:new bO;b=_.aw(c,1,b);_.aw(b,3,x).setHotHashData(m);_.m_(J,62,c)}else c&&(c.client.configInfo=c.client.configInfo||{},b&&(c.client.configInfo.coldConfigData=b),x&&(c.client.configInfo.coldHashData=x),m&&(c.client.configInfo.hotHashData=m))}};
x$=function(J){for(var c=J.length;--c>=0;)J[c]=0};
Y2o=function(J,c,m,b,x){this.static_tree=J;this.extra_bits=c;this.extra_base=m;this.elems=b;this.max_length=x;this.has_stree=J&&J.length};
XAu=function(J,c){this.dyn_tree=J;this.max_code=0;this.stat_desc=c};
VF=function(J,c){J.pending_buf[J.pending++]=c&255;J.pending_buf[J.pending++]=c>>>8&255};
P4=function(J,c,m){J.bi_valid>16-m?(J.bi_buf|=c<<J.bi_valid&65535,VF(J,J.bi_buf),J.bi_buf=c>>16-J.bi_valid,J.bi_valid+=m-16):(J.bi_buf|=c<<J.bi_valid&65535,J.bi_valid+=m)};
MX=function(J,c,m){P4(J,m[c*2],m[c*2+1])};
ZXe=function(J,c){var m=0;do m|=J&1,J>>>=1,m<<=1;while(--c>0);return m>>>1};
q2R=function(J,c,m){var b=Array(16),x=0,P;for(P=1;P<=15;P++)b[P]=x=x+m[P-1]<<1;for(m=0;m<=c;m++)x=J[m*2+1],x!==0&&(J[m*2]=ZXe(b[x]++,x))};
ULt=function(J){var c;for(c=0;c<286;c++)J.dyn_ltree[c*2]=0;for(c=0;c<30;c++)J.dyn_dtree[c*2]=0;for(c=0;c<19;c++)J.bl_tree[c*2]=0;J.dyn_ltree[512]=1;J.opt_len=J.static_len=0;J.last_lit=J.matches=0};
S2D=function(J){J.bi_valid>8?VF(J,J.bi_buf):J.bi_valid>0&&(J.pending_buf[J.pending++]=J.bi_buf);J.bi_buf=0;J.bi_valid=0};
hYr=function(J,c,m){S2D(J);VF(J,m);VF(J,~m);pt.arraySet(J.pending_buf,J.window,c,m,J.pending);J.pending+=m};
dLq=function(J,c,m,b){var x=c*2,P=m*2;return J[x]<J[P]||J[x]===J[P]&&b[c]<=b[m]};
$LR=function(J,c,m){for(var b=J.heap[m],x=m<<1;x<=J.heap_len;){x<J.heap_len&&dLq(c,J.heap[x+1],J.heap[x],J.depth)&&x++;if(dLq(c,b,J.heap[x],J.depth))break;J.heap[m]=J.heap[x];m=x;x<<=1}J.heap[m]=b};
ASQ=function(J,c,m){var b=0;if(J.last_lit!==0){do{var x=J.pending_buf[J.d_buf+b*2]<<8|J.pending_buf[J.d_buf+b*2+1];var P=J.pending_buf[J.l_buf+b];b++;if(x===0)MX(J,P,c);else{var p=NX[P];MX(J,p+256+1,c);var t=GmJ[p];t!==0&&(P-=E22[p],P4(J,P,t));x--;p=x<256?I6[x]:I6[256+(x>>>7)];MX(J,p,m);t=v2R[p];t!==0&&(x-=OXt[p],P4(J,x,t))}}while(b<J.last_lit)}MX(J,256,c)};
RYm=function(J,c){var m=c.dyn_tree,b=c.stat_desc.static_tree,x=c.stat_desc.has_stree,P=c.stat_desc.elems,p,t=-1;J.heap_len=0;J.heap_max=573;for(p=0;p<P;p++)m[p*2]!==0?(J.heap[++J.heap_len]=t=p,J.depth[p]=0):m[p*2+1]=0;for(;J.heap_len<2;){var I=J.heap[++J.heap_len]=t<2?++t:0;m[I*2]=1;J.depth[I]=0;J.opt_len--;x&&(J.static_len-=b[I*2+1])}c.max_code=t;for(p=J.heap_len>>1;p>=1;p--)$LR(J,m,p);I=P;do p=J.heap[1],J.heap[1]=J.heap[J.heap_len--],$LR(J,m,1),b=J.heap[1],J.heap[--J.heap_max]=p,J.heap[--J.heap_max]=
b,m[I*2]=m[p*2]+m[b*2],J.depth[I]=(J.depth[p]>=J.depth[b]?J.depth[p]:J.depth[b])+1,m[p*2+1]=m[b*2+1]=I,J.heap[1]=I++,$LR(J,m,1);while(J.heap_len>=2);J.heap[--J.heap_max]=J.heap[1];p=c.dyn_tree;I=c.max_code;b=c.stat_desc.static_tree;x=c.stat_desc.has_stree;P=c.stat_desc.extra_bits;var a=c.stat_desc.extra_base,k=c.stat_desc.max_length,H,T=0;for(H=0;H<=15;H++)J.bl_count[H]=0;p[J.heap[J.heap_max]*2+1]=0;for(c=J.heap_max+1;c<573;c++){var r=J.heap[c];H=p[p[r*2+1]*2+1]+1;H>k&&(H=k,T++);p[r*2+1]=H;if(!(r>
I)){J.bl_count[H]++;var W=0;r>=a&&(W=P[r-a]);var Y=p[r*2];J.opt_len+=Y*(H+W);x&&(J.static_len+=Y*(b[r*2+1]+W))}}if(T!==0){do{for(H=k-1;J.bl_count[H]===0;)H--;J.bl_count[H]--;J.bl_count[H+1]+=2;J.bl_count[k]--;T-=2}while(T>0);for(H=k;H!==0;H--)for(r=J.bl_count[H];r!==0;)b=J.heap[--c],b>I||(p[b*2+1]!==H&&(J.opt_len+=(H-p[b*2+1])*p[b*2],p[b*2+1]=H),r--)}q2R(m,t,J.bl_count)};
o2J=function(J,c,m){var b,x=-1,P=c[1],p=0,t=7,I=4;P===0&&(t=138,I=3);c[(m+1)*2+1]=65535;for(b=0;b<=m;b++){var a=P;P=c[(b+1)*2+1];++p<t&&a===P||(p<I?J.bl_tree[a*2]+=p:a!==0?(a!==x&&J.bl_tree[a*2]++,J.bl_tree[32]++):p<=10?J.bl_tree[34]++:J.bl_tree[36]++,p=0,x=a,P===0?(t=138,I=3):a===P?(t=6,I=3):(t=7,I=4))}};
Qne=function(J,c,m){var b,x=-1,P=c[1],p=0,t=7,I=4;P===0&&(t=138,I=3);for(b=0;b<=m;b++){var a=P;P=c[(b+1)*2+1];if(!(++p<t&&a===P)){if(p<I){do MX(J,a,J.bl_tree);while(--p!==0)}else a!==0?(a!==x&&(MX(J,a,J.bl_tree),p--),MX(J,16,J.bl_tree),P4(J,p-3,2)):p<=10?(MX(J,17,J.bl_tree),P4(J,p-3,3)):(MX(J,18,J.bl_tree),P4(J,p-11,7));p=0;x=a;P===0?(t=138,I=3):a===P?(t=6,I=3):(t=7,I=4)}}};
eYf=function(J){var c=4093624447,m;for(m=0;m<=31;m++,c>>>=1)if(c&1&&J.dyn_ltree[m*2]!==0)return 0;if(J.dyn_ltree[18]!==0||J.dyn_ltree[20]!==0||J.dyn_ltree[26]!==0)return 1;for(m=32;m<256;m++)if(J.dyn_ltree[m*2]!==0)return 1;return 0};
Ct=function(J,c,m){J.pending_buf[J.d_buf+J.last_lit*2]=c>>>8&255;J.pending_buf[J.d_buf+J.last_lit*2+1]=c&255;J.pending_buf[J.l_buf+J.last_lit]=m&255;J.last_lit++;c===0?J.dyn_ltree[m*2]++:(J.matches++,c--,J.dyn_ltree[(NX[m]+256+1)*2]++,J.dyn_dtree[(c<256?I6[c]:I6[256+(c>>>7)])*2]++);return J.last_lit===J.lit_bufsize-1};
k$=function(J,c){J.msg=a6[c];return c};
H4=function(J){for(var c=J.length;--c>=0;)J[c]=0};
iO=function(J){var c=J.state,m=c.pending;m>J.avail_out&&(m=J.avail_out);m!==0&&(pt.arraySet(J.output,c.pending_buf,c.pending_out,m,J.next_out),J.next_out+=m,c.pending_out+=m,J.total_out+=m,J.avail_out-=m,c.pending-=m,c.pending===0&&(c.pending_out=0))};
wo=function(J,c){var m=J.block_start>=0?J.block_start:-1,b=J.strstart-J.block_start,x=0;if(J.level>0){J.strm.data_type===2&&(J.strm.data_type=eYf(J));RYm(J,J.l_desc);RYm(J,J.d_desc);o2J(J,J.dyn_ltree,J.l_desc.max_code);o2J(J,J.dyn_dtree,J.d_desc.max_code);RYm(J,J.bl_desc);for(x=18;x>=3&&J.bl_tree[jnT[x]*2+1]===0;x--);J.opt_len+=3*(x+1)+5+5+4;var P=J.opt_len+3+7>>>3;var p=J.static_len+3+7>>>3;p<=P&&(P=p)}else P=p=b+5;if(b+4<=P&&m!==-1)P4(J,c?1:0,3),hYr(J,m,b);else if(J.strategy===4||p===P)P4(J,2+(c?
1:0),3),ASQ(J,nt,T7);else{P4(J,4+(c?1:0),3);m=J.l_desc.max_code+1;b=J.d_desc.max_code+1;x+=1;P4(J,m-257,5);P4(J,b-1,5);P4(J,x-4,4);for(P=0;P<x;P++)P4(J,J.bl_tree[jnT[P]*2+1],3);Qne(J,J.dyn_ltree,m-1);Qne(J,J.dyn_dtree,b-1);ASQ(J,J.dyn_ltree,J.dyn_dtree)}ULt(J);c&&S2D(J);J.block_start=J.strstart;iO(J.strm)};
ro=function(J,c){J.pending_buf[J.pending++]=c};
sn=function(J,c){J.pending_buf[J.pending++]=c>>>8&255;J.pending_buf[J.pending++]=c&255};
F92=function(J,c){var m=J.max_chain_length,b=J.strstart,x=J.prev_length,P=J.nice_match,p=J.strstart>J.w_size-262?J.strstart-(J.w_size-262):0,t=J.window,I=J.w_mask,a=J.prev,k=J.strstart+258,H=t[b+x-1],T=t[b+x];J.prev_length>=J.good_match&&(m>>=2);P>J.lookahead&&(P=J.lookahead);do{var r=c;if(t[r+x]===T&&t[r+x-1]===H&&t[r]===t[b]&&t[++r]===t[b+1]){b+=2;for(r++;t[++b]===t[++r]&&t[++b]===t[++r]&&t[++b]===t[++r]&&t[++b]===t[++r]&&t[++b]===t[++r]&&t[++b]===t[++r]&&t[++b]===t[++r]&&t[++b]===t[++r]&&b<k;);
r=258-(k-b);b=k-258;if(r>x){J.match_start=c;x=r;if(r>=P)break;H=t[b+x-1];T=t[b+x]}}}while((c=a[c&I])>p&&--m!==0);return x<=J.lookahead?x:J.lookahead};
DC=function(J){var c=J.w_size,m;do{var b=J.window_size-J.lookahead-J.strstart;if(J.strstart>=c+(c-262)){pt.arraySet(J.window,J.window,c,c,0);J.match_start-=c;J.strstart-=c;J.block_start-=c;var x=m=J.hash_size;do{var P=J.head[--x];J.head[x]=P>=c?P-c:0}while(--m);x=m=c;do P=J.prev[--x],J.prev[x]=P>=c?P-c:0;while(--m);b+=c}if(J.strm.avail_in===0)break;x=J.strm;m=J.window;P=J.strstart+J.lookahead;var p=x.avail_in;p>b&&(p=b);p===0?m=0:(x.avail_in-=p,pt.arraySet(m,x.input,x.next_in,p,P),x.state.wrap===
1?x.adler=lu3(x.adler,m,p,P):x.state.wrap===2&&(x.adler=Lt(x.adler,m,p,P)),x.next_in+=p,x.total_in+=p,m=p);J.lookahead+=m;if(J.lookahead+J.insert>=3)for(b=J.strstart-J.insert,J.ins_h=J.window[b],J.ins_h=(J.ins_h<<J.hash_shift^J.window[b+1])&J.hash_mask;J.insert&&!(J.ins_h=(J.ins_h<<J.hash_shift^J.window[b+3-1])&J.hash_mask,J.prev[b&J.w_mask]=J.head[J.ins_h],J.head[J.ins_h]=b,b++,J.insert--,J.lookahead+J.insert<3););}while(J.lookahead<262&&J.strm.avail_in!==0)};
ySe=function(J,c){for(var m;;){if(J.lookahead<262){DC(J);if(J.lookahead<262&&c===0)return 1;if(J.lookahead===0)break}m=0;J.lookahead>=3&&(J.ins_h=(J.ins_h<<J.hash_shift^J.window[J.strstart+3-1])&J.hash_mask,m=J.prev[J.strstart&J.w_mask]=J.head[J.ins_h],J.head[J.ins_h]=J.strstart);m!==0&&J.strstart-m<=J.w_size-262&&(J.match_length=F92(J,m));if(J.match_length>=3)if(m=Ct(J,J.strstart-J.match_start,J.match_length-3),J.lookahead-=J.match_length,J.match_length<=J.max_lazy_match&&J.lookahead>=3){J.match_length--;
do J.strstart++,J.ins_h=(J.ins_h<<J.hash_shift^J.window[J.strstart+3-1])&J.hash_mask,J.prev[J.strstart&J.w_mask]=J.head[J.ins_h],J.head[J.ins_h]=J.strstart;while(--J.match_length!==0);J.strstart++}else J.strstart+=J.match_length,J.match_length=0,J.ins_h=J.window[J.strstart],J.ins_h=(J.ins_h<<J.hash_shift^J.window[J.strstart+1])&J.hash_mask;else m=Ct(J,0,J.window[J.strstart]),J.lookahead--,J.strstart++;if(m&&(wo(J,!1),J.strm.avail_out===0))return 1}J.insert=J.strstart<2?J.strstart:2;return c===4?(wo(J,
!0),J.strm.avail_out===0?3:4):J.last_lit&&(wo(J,!1),J.strm.avail_out===0)?1:2};
W4=function(J,c){for(var m,b;;){if(J.lookahead<262){DC(J);if(J.lookahead<262&&c===0)return 1;if(J.lookahead===0)break}m=0;J.lookahead>=3&&(J.ins_h=(J.ins_h<<J.hash_shift^J.window[J.strstart+3-1])&J.hash_mask,m=J.prev[J.strstart&J.w_mask]=J.head[J.ins_h],J.head[J.ins_h]=J.strstart);J.prev_length=J.match_length;J.prev_match=J.match_start;J.match_length=2;m!==0&&J.prev_length<J.max_lazy_match&&J.strstart-m<=J.w_size-262&&(J.match_length=F92(J,m),J.match_length<=5&&(J.strategy===1||J.match_length===3&&
J.strstart-J.match_start>4096)&&(J.match_length=2));if(J.prev_length>=3&&J.match_length<=J.prev_length){b=J.strstart+J.lookahead-3;m=Ct(J,J.strstart-1-J.prev_match,J.prev_length-3);J.lookahead-=J.prev_length-1;J.prev_length-=2;do++J.strstart<=b&&(J.ins_h=(J.ins_h<<J.hash_shift^J.window[J.strstart+3-1])&J.hash_mask,J.prev[J.strstart&J.w_mask]=J.head[J.ins_h],J.head[J.ins_h]=J.strstart);while(--J.prev_length!==0);J.match_available=0;J.match_length=2;J.strstart++;if(m&&(wo(J,!1),J.strm.avail_out===0))return 1}else if(J.match_available){if((m=
Ct(J,0,J.window[J.strstart-1]))&&wo(J,!1),J.strstart++,J.lookahead--,J.strm.avail_out===0)return 1}else J.match_available=1,J.strstart++,J.lookahead--}J.match_available&&(Ct(J,0,J.window[J.strstart-1]),J.match_available=0);J.insert=J.strstart<2?J.strstart:2;return c===4?(wo(J,!0),J.strm.avail_out===0?3:4):J.last_lit&&(wo(J,!1),J.strm.avail_out===0)?1:2};
BMr=function(J,c){for(var m,b,x,P=J.window;;){if(J.lookahead<=258){DC(J);if(J.lookahead<=258&&c===0)return 1;if(J.lookahead===0)break}J.match_length=0;if(J.lookahead>=3&&J.strstart>0&&(b=J.strstart-1,m=P[b],m===P[++b]&&m===P[++b]&&m===P[++b])){for(x=J.strstart+258;m===P[++b]&&m===P[++b]&&m===P[++b]&&m===P[++b]&&m===P[++b]&&m===P[++b]&&m===P[++b]&&m===P[++b]&&b<x;);J.match_length=258-(x-b);J.match_length>J.lookahead&&(J.match_length=J.lookahead)}J.match_length>=3?(m=Ct(J,1,J.match_length-3),J.lookahead-=
J.match_length,J.strstart+=J.match_length,J.match_length=0):(m=Ct(J,0,J.window[J.strstart]),J.lookahead--,J.strstart++);if(m&&(wo(J,!1),J.strm.avail_out===0))return 1}J.insert=0;return c===4?(wo(J,!0),J.strm.avail_out===0?3:4):J.last_lit&&(wo(J,!1),J.strm.avail_out===0)?1:2};
g2J=function(J,c){for(var m;;){if(J.lookahead===0&&(DC(J),J.lookahead===0)){if(c===0)return 1;break}J.match_length=0;m=Ct(J,0,J.window[J.strstart]);J.lookahead--;J.strstart++;if(m&&(wo(J,!1),J.strm.avail_out===0))return 1}J.insert=0;return c===4?(wo(J,!0),J.strm.avail_out===0?3:4):J.last_lit&&(wo(J,!1),J.strm.avail_out===0)?1:2};
z7=function(J,c,m,b,x){this.good_length=J;this.max_lazy=c;this.nice_length=m;this.max_chain=b;this.func=x};
J7f=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 pt.Buf16(1146);this.dyn_dtree=new pt.Buf16(122);this.bl_tree=new pt.Buf16(78);H4(this.dyn_ltree);H4(this.dyn_dtree);H4(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new pt.Buf16(16);this.heap=new pt.Buf16(573);H4(this.heap);this.heap_max=this.heap_len=0;this.depth=new pt.Buf16(573);H4(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};
c7T=function(J,c){if(!J||!J.state||c>5||c<0)return J?k$(J,-2):-2;var m=J.state;if(!J.output||!J.input&&J.avail_in!==0||m.status===666&&c!==4)return k$(J,J.avail_out===0?-5:-2);m.strm=J;var b=m.last_flush;m.last_flush=c;if(m.status===42)if(m.wrap===2)J.adler=0,ro(m,31),ro(m,139),ro(m,8),m.gzhead?(ro(m,(m.gzhead.text?1:0)+(m.gzhead.hcrc?2:0)+(m.gzhead.extra?4:0)+(m.gzhead.name?8:0)+(m.gzhead.comment?16:0)),ro(m,m.gzhead.time&255),ro(m,m.gzhead.time>>8&255),ro(m,m.gzhead.time>>16&255),ro(m,m.gzhead.time>>
24&255),ro(m,m.level===9?2:m.strategy>=2||m.level<2?4:0),ro(m,m.gzhead.os&255),m.gzhead.extra&&m.gzhead.extra.length&&(ro(m,m.gzhead.extra.length&255),ro(m,m.gzhead.extra.length>>8&255)),m.gzhead.hcrc&&(J.adler=Lt(J.adler,m.pending_buf,m.pending,0)),m.gzindex=0,m.status=69):(ro(m,0),ro(m,0),ro(m,0),ro(m,0),ro(m,0),ro(m,m.level===9?2:m.strategy>=2||m.level<2?4:0),ro(m,3),m.status=113);else{var x=8+(m.w_bits-8<<4)<<8;x|=(m.strategy>=2||m.level<2?0:m.level<6?1:m.level===6?2:3)<<6;m.strstart!==0&&(x|=
32);m.status=113;sn(m,x+(31-x%31));m.strstart!==0&&(sn(m,J.adler>>>16),sn(m,J.adler&65535));J.adler=1}if(m.status===69)if(m.gzhead.extra){for(x=m.pending;m.gzindex<(m.gzhead.extra.length&65535)&&(m.pending!==m.pending_buf_size||(m.gzhead.hcrc&&m.pending>x&&(J.adler=Lt(J.adler,m.pending_buf,m.pending-x,x)),iO(J),x=m.pending,m.pending!==m.pending_buf_size));)ro(m,m.gzhead.extra[m.gzindex]&255),m.gzindex++;m.gzhead.hcrc&&m.pending>x&&(J.adler=Lt(J.adler,m.pending_buf,m.pending-x,x));m.gzindex===m.gzhead.extra.length&&
(m.gzindex=0,m.status=73)}else m.status=73;if(m.status===73)if(m.gzhead.name){x=m.pending;do{if(m.pending===m.pending_buf_size&&(m.gzhead.hcrc&&m.pending>x&&(J.adler=Lt(J.adler,m.pending_buf,m.pending-x,x)),iO(J),x=m.pending,m.pending===m.pending_buf_size)){var P=1;break}P=m.gzindex<m.gzhead.name.length?m.gzhead.name.charCodeAt(m.gzindex++)&255:0;ro(m,P)}while(P!==0);m.gzhead.hcrc&&m.pending>x&&(J.adler=Lt(J.adler,m.pending_buf,m.pending-x,x));P===0&&(m.gzindex=0,m.status=91)}else m.status=91;if(m.status===
91)if(m.gzhead.comment){x=m.pending;do{if(m.pending===m.pending_buf_size&&(m.gzhead.hcrc&&m.pending>x&&(J.adler=Lt(J.adler,m.pending_buf,m.pending-x,x)),iO(J),x=m.pending,m.pending===m.pending_buf_size)){P=1;break}P=m.gzindex<m.gzhead.comment.length?m.gzhead.comment.charCodeAt(m.gzindex++)&255:0;ro(m,P)}while(P!==0);m.gzhead.hcrc&&m.pending>x&&(J.adler=Lt(J.adler,m.pending_buf,m.pending-x,x));P===0&&(m.status=103)}else m.status=103;m.status===103&&(m.gzhead.hcrc?(m.pending+2>m.pending_buf_size&&iO(J),
m.pending+2<=m.pending_buf_size&&(ro(m,J.adler&255),ro(m,J.adler>>8&255),J.adler=0,m.status=113)):m.status=113);if(m.pending!==0){if(iO(J),J.avail_out===0)return m.last_flush=-1,0}else if(J.avail_in===0&&(c<<1)-(c>4?9:0)<=(b<<1)-(b>4?9:0)&&c!==4)return k$(J,-5);if(m.status===666&&J.avail_in!==0)return k$(J,-5);if(J.avail_in!==0||m.lookahead!==0||c!==0&&m.status!==666){b=m.strategy===2?g2J(m,c):m.strategy===3?BMr(m,c):uO[m.level].func(m,c);if(b===3||b===4)m.status=666;if(b===1||b===3)return J.avail_out===
0&&(m.last_flush=-1),0;if(b===2&&(c===1?(P4(m,2,3),MX(m,256,nt),m.bi_valid===16?(VF(m,m.bi_buf),m.bi_buf=0,m.bi_valid=0):m.bi_valid>=8&&(m.pending_buf[m.pending++]=m.bi_buf&255,m.bi_buf>>=8,m.bi_valid-=8)):c!==5&&(P4(m,0,3),hYr(m,0,0),c===3&&(H4(m.head),m.lookahead===0&&(m.strstart=0,m.block_start=0,m.insert=0))),iO(J),J.avail_out===0))return m.last_flush=-1,0}if(c!==4)return 0;if(m.wrap<=0)return 1;m.wrap===2?(ro(m,J.adler&255),ro(m,J.adler>>8&255),ro(m,J.adler>>16&255),ro(m,J.adler>>24&255),ro(m,
J.total_in&255),ro(m,J.total_in>>8&255),ro(m,J.total_in>>16&255),ro(m,J.total_in>>24&255)):(sn(m,J.adler>>>16),sn(m,J.adler&65535));iO(J);m.wrap>0&&(m.wrap=-m.wrap);return m.pending!==0?0:1};
myu=function(J){if(!(this instanceof myu))return new myu(J);J=this.options=pt.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},J||{});J.raw&&J.windowBits>0?J.windowBits=-J.windowBits:J.gzip&&J.windowBits>0&&J.windowBits<16&&(J.windowBits+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new bkq;this.strm.avail_out=0;var c=this.strm;var m=J.level,b=J.method,x=J.windowBits,P=J.memLevel,p=J.strategy;if(c){var t=1;m===-1&&(m=6);x<0?(t=0,x=-x):x>15&&
(t=2,x-=16);if(P<1||P>9||b!==8||x<8||x>15||m<0||m>9||p<0||p>4)c=k$(c,-2);else{x===8&&(x=9);var I=new J7f;c.state=I;I.strm=c;I.wrap=t;I.gzhead=null;I.w_bits=x;I.w_size=1<<I.w_bits;I.w_mask=I.w_size-1;I.hash_bits=P+7;I.hash_size=1<<I.hash_bits;I.hash_mask=I.hash_size-1;I.hash_shift=~~((I.hash_bits+3-1)/3);I.window=new pt.Buf8(I.w_size*2);I.head=new pt.Buf16(I.hash_size);I.prev=new pt.Buf16(I.w_size);I.lit_bufsize=1<<P+6;I.pending_buf_size=I.lit_bufsize*4;I.pending_buf=new pt.Buf8(I.pending_buf_size);
I.d_buf=I.lit_bufsize;I.l_buf=3*I.lit_bufsize;I.level=m;I.strategy=p;I.method=b;if(c&&c.state){c.total_in=c.total_out=0;c.data_type=2;m=c.state;m.pending=0;m.pending_out=0;m.wrap<0&&(m.wrap=-m.wrap);m.status=m.wrap?42:113;c.adler=m.wrap===2?0:1;m.last_flush=0;if(!xyR){b=Array(16);for(P=p=0;P<28;P++)for(E22[P]=p,x=0;x<1<<GmJ[P];x++)NX[p++]=P;NX[p-1]=P;for(P=p=0;P<16;P++)for(OXt[P]=p,x=0;x<1<<v2R[P];x++)I6[p++]=P;for(p>>=7;P<30;P++)for(OXt[P]=p<<7,x=0;x<1<<v2R[P]-7;x++)I6[256+p++]=P;for(x=0;x<=15;x++)b[x]=
0;for(x=0;x<=143;)nt[x*2+1]=8,x++,b[8]++;for(;x<=255;)nt[x*2+1]=9,x++,b[9]++;for(;x<=279;)nt[x*2+1]=7,x++,b[7]++;for(;x<=287;)nt[x*2+1]=8,x++,b[8]++;q2R(nt,287,b);for(x=0;x<30;x++)T7[x*2+1]=5,T7[x*2]=ZXe(x,5);Vkm=new Y2o(nt,GmJ,257,286,15);PW3=new Y2o(T7,v2R,0,30,15);Mku=new Y2o([],p2J,0,19,7);xyR=!0}m.l_desc=new XAu(m.dyn_ltree,Vkm);m.d_desc=new XAu(m.dyn_dtree,PW3);m.bl_desc=new XAu(m.bl_tree,Mku);m.bi_buf=0;m.bi_valid=0;ULt(m);m=0}else m=k$(c,-2);m===0&&(c=c.state,c.window_size=2*c.w_size,H4(c.head),
c.max_lazy_match=uO[c.level].max_lazy,c.good_match=uO[c.level].good_length,c.nice_match=uO[c.level].nice_length,c.max_chain_length=uO[c.level].max_chain,c.strstart=0,c.block_start=0,c.lookahead=0,c.insert=0,c.match_length=c.prev_length=2,c.match_available=0,c.ins_h=0);c=m}}else c=-2;if(c!==0)throw Error(a6[c]);J.header&&(c=this.strm)&&c.state&&c.state.wrap===2&&(c.state.gzhead=J.header);if(J.dictionary){var a;typeof J.dictionary==="string"?a=Nfq(J.dictionary):tk3.call(J.dictionary)==="[object ArrayBuffer]"?
a=new Uint8Array(J.dictionary):a=J.dictionary;J=this.strm;P=a;p=P.length;if(J&&J.state)if(a=J.state,c=a.wrap,c===2||c===1&&a.status!==42||a.lookahead)c=-2;else{c===1&&(J.adler=lu3(J.adler,P,p,0));a.wrap=0;p>=a.w_size&&(c===0&&(H4(a.head),a.strstart=0,a.block_start=0,a.insert=0),m=new pt.Buf8(a.w_size),pt.arraySet(m,P,p-a.w_size,a.w_size,0),P=m,p=a.w_size);m=J.avail_in;b=J.next_in;x=J.input;J.avail_in=p;J.next_in=0;J.input=P;for(DC(a);a.lookahead>=3;){P=a.strstart;p=a.lookahead-2;do a.ins_h=(a.ins_h<<
a.hash_shift^a.window[P+3-1])&a.hash_mask,a.prev[P&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=P,P++;while(--p);a.strstart=P;a.lookahead=2;DC(a)}a.strstart+=a.lookahead;a.block_start=a.strstart;a.insert=a.lookahead;a.lookahead=0;a.match_length=a.prev_length=2;a.match_available=0;J.next_in=b;J.input=x;J.avail_in=m;a.wrap=c;c=0}else c=-2;if(c!==0)throw Error(a6[c]);this._dict_set=!0}};
IZD=function(J,c){c=c||{};c.gzip=!0;c=new myu(c);c.push(J,!0);if(c.err)throw c.msg||a6[c.err];return c.result};
CWq=function(J,c){var m=KAf();m&&m.publish.call(m,J.toString(),J,c)};
nYR=function(J,c,m){var b=KAf();if(!b)return 0;var x=b.subscribe(J.toString(),function(P,p){var t=_.$y("ytPubsub2Pubsub2SkipSubKey");t&&t==x||(t=function(){if(aZQ[x])try{if(p&&J instanceof k2m&&J!=P)try{var I=J.dataClass,a=p;if(!a.args||!a.version)throw Error("Wc");try{if(!I.version_){var k=new I;I.version_=k.version}var H=I.version_}catch(T){}if(!H||a.version!=H)throw Error("Xc");try{p=Reflect.construct(I,_.Fe(a.args))}catch(T){throw T.message="yt.pubsub2.Data.deserialize(): "+T.message,T;}}catch(T){throw T.message=
"yt.pubsub2.pubsub2 cross-binary conversion error for "+J.toString()+": "+T.message,T;}c.call(m||window,p)}catch(T){_.ha(T)}},HkR[J.toString()]?_.$y("yt.scheduler.instance")?_.ft.addLowPriorityJob(t):_.P7(t,0):t())});
aZQ[x]=!0;ikr[J.toString()]||(ikr[J.toString()]=[]);ikr[J.toString()].push(x);return x};
scJ=function(){var J=TfR,c=nYR(w2t,function(m){J.apply(void 0,arguments);r7e(c)});
return c};
r7e=function(J){var c=KAf();c&&(typeof J==="number"&&(J=[J]),_.vG(J,function(m){c.unsubscribeByKey(m);delete aZQ[m]}))};
KAf=function(){return _.$y("ytPubsub2Pubsub2Instance")};
LAr=function(J,c,m){m=m===void 0?{sampleRate:.1}:m;Math.random()<Math.min(.02,m.sampleRate/100)&&CWq("meta_logging_csi_event",{timerName:J,timelineData:c})};
_.Dyq=function(J){return J?(J=J.privateDoNotAccessOrElseSafeScriptWrappedValue)?_.S3(J):null:null};
_.Y$=function(J){return J?(J=J.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?_.p1(J):null:null};
zED=function(){WAD||(WAD=_.Y$(_.Ub("WORKER_SERIALIZATION_URL")));return WAD||void 0};
_.fZD=function(){var J=zED();uMr||J===void 0||(uMr=new Worker(_.N2(J),void 0));return uMr};
_.YGt=function(){return typeof Worker==="function"&&zED()?!0:!1};
_.UyD=function(){if(_.YGt()&&!X2T){var J=function(m){m=m.data;if(m.op==="gzippedGelBatch"){var b=ZkD.get(m.key);b&&(qG2(m.gzippedBatch,b.latencyPayload,b.url,b.options,b.sendFn),ZkD.delete(m.key))}},c=_.fZD();
c&&(c.addEventListener("message",J),c.onerror=function(){ZkD.clear()},X2T=!0)}};
vYJ=function(J,c,m,b,x){x=x===void 0?!1:x;var P={startTime:(0,_.y4)(),ticks:{},infos:{}};if(X_)try{var p=SG3(c);if(p!=null&&(p>hEo||p<dyf))b(J,m);else{if(_.w("gzip_gel_with_worker")&&(_.w("initial_gzip_use_main_thread")&&!$yo||!_.w("initial_gzip_use_main_thread"))){X2T||_.UyD();var t=_.fZD();if(t&&!x){ZkD.set(G23,{latencyPayload:P,url:J,options:m,sendFn:b});t.postMessage({op:"gelBatchToGzip",serializedBatch:c,key:G23});G23++;return}}var I=IZD(EY3(c));qG2(I,P,J,m,b)}}catch(a){_.Ge(a),b(J,m)}else b(J,
m)};
qG2=function(J,c,m,b,x){$yo=!1;var P=(0,_.y4)();c.ticks.gelc=P;ZC++;_.w("disable_compression_due_to_performance_degredation")&&P-c.startTime>=Ok2&&(A7Q++,_.w("abandon_compression_after_N_slow_zips")?ZC===_.c7("compression_disable_point")&&A7Q>REq&&(X_=!1):X_=!1);oYu(c);b.headers||(b.headers={});b.headers["Content-Encoding"]="gzip";b.postBody=J;b.postParams=void 0;x(m,b)};
QcD=function(J){var c=c===void 0?!1:c;var m=m===void 0?!1:m;var b=(0,_.y4)(),x={startTime:b,ticks:{},infos:{}},P=c?_.$y("yt.logging.gzipForFetch",!1):!0;if(X_&&P){if(!J.body)return J;try{var p=m?J.body:typeof J.body==="string"?J.body:JSON.stringify(J.body);P=p;if(!m&&typeof p==="string"){var t=SG3(p);if(t!=null&&(t>hEo||t<dyf))return J;m=c?{level:1}:void 0;P=IZD(EY3(p),m);var I=(0,_.y4)();x.ticks.gelc=I;if(c){ZC++;if((_.w("disable_compression_due_to_performance_degredation")||_.w("disable_compression_due_to_performance_degradation_lr"))&&
I-b>=Ok2)if(A7Q++,_.w("abandon_compression_after_N_slow_zips")||_.w("abandon_compression_after_N_slow_zips_lr")){c=A7Q/ZC;var a=REq/_.c7("compression_disable_point");ZC>0&&ZC%_.c7("compression_disable_point")===0&&c>=a&&(X_=!1)}else X_=!1;oYu(x)}}J.headers=Object.assign({},{"Content-Encoding":"gzip"},J.headers||{});J.body=P;return J}catch(k){return _.Ge(k),J}}else return J};
SG3=function(J){try{return(new Blob(J.split(""))).size}catch(c){return _.Ge(c),null}};
oYu=function(J){_.w("gel_compression_csi_killswitch")||!_.w("log_gel_compression_latency")&&!_.w("log_gel_compression_latency_lr")||LAr("gel_compression",J,{sampleRate:.1})};
eEf=function(){this.blockSize=-1};
qX=function(){this.blockSize=-1;this.blockSize=64;this.chain_=[];this.buf_=[];this.W_=[];this.pad_=[];this.pad_[0]=128;for(var J=1;J<this.blockSize;++J)this.pad_[J]=0;this.total_=this.inbuf_=0;this.reset()};
FAm=function(J){J=Object.assign({},J);delete J.Authorization;var c=jcq();if(c){var m=new qX;m.update(_.Ub("INNERTUBE_API_KEY"));m.update(c);J.hash=_.yR(m.digest(),3)}return J};
Sf=function(){lZq||(lZq=new _.Un("yt.innertube"));return lZq};
y7q=function(J,c,m,b){if(b)return null;b=Sf().get("nextId",!0)||1;var x=Sf().get("requests",!0)||{};x[b]={method:J,request:c,authState:FAm(m),requestTime:Math.round((0,_.y4)())};Sf().set("nextId",b+1,86400,!0);Sf().set("requests",x,86400,!0);return b};
Bft=function(J){var c=Sf().get("requests",!0)||{};delete c[J];Sf().set("requests",c,86400,!0)};
JcD=function(J){var c=Sf().get("requests",!0);if(c){for(var m in c){var b=c[m];if(!(Math.round((0,_.y4)())-b.requestTime<6E4)){var x=b.authState,P=FAm(_.uvu(!1));_.Lw.equals(x,P)&&(x=b.request,"requestTimeMs"in x&&(x.requestTimeMs=Math.round((0,_.y4)())),gYr(J,b.method,x,{}));delete c[m]}}Sf().set("requests",c,86400,!0)}};
ccr=function(J){var c;return(J=J==null?void 0:(c=J.error)==null?void 0:c.code)&&J>=400&&J<=599?!1:!0};
mrJ=function(J){var c;J=J==null?void 0:(c=J.error)==null?void 0:c.code;return!(J!==400&&J!==415)};
xrG=function(){if(bvJ)return bvJ();var J={};bvJ=lj("LogsDatabaseV2",{objectStores:(J.LogsRequestsStore={addedAtVersion:2},J),shared:!1,upgrade:function(c,m,b){m(2)&&hU(c,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});m(3);m(5)&&(b=b.objectStore("LogsRequestsStore"),b.JSC$8607_wrapped.indexNames.contains("newRequest")&&b.JSC$8607_wrapped.deleteIndex("newRequest"),$$(b,"newRequestV2",["status","interface","timestamp"]));m(7)&&c.JSC$8592_wrapped.objectStoreNames.contains("sapisid")&&c.JSC$8592_wrapped.deleteObjectStore("sapisid");
m(9)&&c.JSC$8592_wrapped.objectStoreNames.contains("SWHealthLog")&&c.JSC$8592_wrapped.deleteObjectStore("SWHealthLog")},
version:9});return bvJ()};
G7=function(J){return _.OO(xrG(),J)};
Pqe=function(J,c){var m,b,x,P;return _.N(function(p){if(p.nextAddress==1)return m={startTime:(0,_.y4)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},_.K(p,G7(c),2);if(p.nextAddress!=3)return b=p.yieldResult,x=Object.assign({},J,{options:JSON.parse(JSON.stringify(J.options)),interface:_.Ub("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),_.K(p,b.put("LogsRequestsStore",x),3);P=p.yieldResult;m.ticks.tc=(0,_.y4)();Vro(m);return p.return(P)})};
Mrf=function(J,c){var m,b,x,P,p,t,I,a;return _.N(function(k){if(k.nextAddress==1)return m={startTime:(0,_.y4)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},_.K(k,G7(c),2);if(k.nextAddress!=3)return b=k.yieldResult,x=_.Ub("INNERTUBE_CONTEXT_CLIENT_NAME",0),P=[J,x,0],p=[J,x,(0,_.y4)()],t=IDBKeyRange.bound(P,p),I="prev",_.w("use_fifo_for_networkless")&&(I="next"),a=void 0,_.K(k,_.AL(b,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(H){return _.B7(H.objectStore("LogsRequestsStore").index("newRequestV2"),
{query:t,direction:I},function(T){T.getValue()&&(a=T.getValue(),J==="NEW"&&(a.status="QUEUED",T.update(a)))})}),3);
m.ticks.tc=(0,_.y4)();Vro(m);return k.return(a)})};
pjr=function(J,c){var m;return _.N(function(b){if(b.nextAddress==1)return _.K(b,G7(c),2);m=b.yieldResult;return b.return(_.AL(m,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(x){var P=x.objectStore("LogsRequestsStore");return P.get(J).then(function(p){if(p)return p.status="QUEUED",P.put(p).then(function(){return p})})}))})};
NBe=function(J,c,m,b){m=m===void 0?!0:m;var x;return _.N(function(P){if(P.nextAddress==1)return _.K(P,G7(c),2);x=P.yieldResult;return P.return(_.AL(x,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(p){var t=p.objectStore("LogsRequestsStore");return t.get(J).then(function(I){return I?(I.status="NEW",m&&(I.sendCount+=1),b!==void 0&&(I.options.compress=b),t.put(I).then(function(){return I})):hL.resolve(void 0)})}))})};
trR=function(J,c){var m;return _.N(function(b){if(b.nextAddress==1)return _.K(b,G7(c),2);m=b.yieldResult;return b.return(m.delete("LogsRequestsStore",J))})};
InR=function(J){var c,m;return _.N(function(b){if(b.nextAddress==1)return _.K(b,G7(J),2);c=b.yieldResult;m=(0,_.y4)()-2592E6;return _.K(b,_.AL(c,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(x){return or(x.objectStore("LogsRequestsStore"),{},function(P){if(P.getValue().timestamp<=m)return P.delete().then(function(){return P.continue()})})}),0)})};
KUR=function(){_.N(function(J){return _.K(J,cSt("LogsDatabaseV2"),0)})};
Vro=function(J){_.w("nwl_csi_killswitch")||LAr("networkless_performance",J,{sampleRate:1})};
_.anf=function(J){return _.OO(Cqe(),J)};
kho=function(J){var c,m;_.N(function(b){if(b.nextAddress==1)return _.K(b,_.anf(J),2);c=b.yieldResult;m=(0,_.y4)()-2592E6;return _.K(b,_.AL(c,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(x){return or(x.objectStore("SWHealthLog"),{},function(P){if(P.getValue().timestamp<=m)return P.delete().then(function(){return P.continue()})})}),0)})};
Hv3=function(J){var c;return _.N(function(m){if(m.nextAddress==1)return _.K(m,_.anf(J),2);c=m.yieldResult;return _.K(m,c.clear("SWHealthLog"),0)})};
_.En=function(J,c,m,b,x,P,p){x=x===void 0?"":x;P=P===void 0?!1:P;p=p===void 0?!1:p;if(J)if(m&&!Z4("cobalt"))_.Ge(new _.w3("Legacy referrer-scrubbed ping detected")),J&&iv3(J,void 0,{scrubReferrer:!0});else if(x)A5Q(J,c,"POST",x,b);else if(_.Ub("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||b||p)A5Q(J,c,"GET","",b,void 0,P,p);else{b:{try{c:{var t=new nbQ({url:J});if(t.urlParamValues_.dsh==="1")var I=null;else{var a=t.urlParamValues_.ae;if(a==="1"){var k=t.urlParamValues_.adurl;if(k)try{I={version:3,directUrl:decodeURIComponent(k),
asyncUrl:W53(t.JSC$7487_url_,"act=1","ri=1",TBQ(t))};break c}catch(W){}}I=a==="2"?{version:4,directUrl:W53(t.JSC$7487_url_,"dct=1","suid="+t.suid_,""),asyncUrl:W53(t.JSC$7487_url_,"act=1","ri=1","suid="+t.suid_)}:null}}if(I){var H=_.NU(J);var T=!(!H||!H.endsWith("/aclk")||_.E7(J,"ri")!=="1");break b}}catch(W){}T=!1}if(T){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(J,"")){var r=!0;break b}}catch(W){}r=!1}r?(c&&c(),m=!0):m=!1}else m=!1;m||iv3(J,c)}};
iv3=function(J,c,m){m=m===void 0?{}:m;var b=new Image,x=""+wju++;rct[x]=b;b.onload=b.onerror=function(){c&&rct[x]&&c();delete rct[x]};
m.scrubReferrer&&(b.referrerPolicy="no-referrer");b.src=J};
v4=function(J,c){s1T(J,c==="ATTRIBUTION_SRC_MODE_XHR_OPTION")};
LUT=function(J){var c;return((c=document.featurePolicy)==null?0:c.allowedFeatures().includes("attribution-reporting"))?J+"&nis=6":J+"&nis=5"};
Drr=function(J){if(!J)return!1;try{var c;if(((c=_.Ob(J))==null?void 0:c.asm)==="4")return!0}catch(m){_.ha(m)}return!1};
s1T=function(J,c){c?(J=LUT(J),_.En(J,void 0,void 0,void 0,"",!0,!0)):_.En(J)};
zgt=function(){WUr||(WUr=new _.Un("yt.offline"));return WUr};
uBq=function(J){if(_.w("offline_error_handling")){var c=zgt().get("errors",!0)||{};c[J.message]={name:J.name,stack:J.stack};J.level&&(c[J.message].level=J.level);zgt().set("errors",c,2592E3,!0)}};
YT2=function(J,c,m,b){b=b===void 0?!1:b;c=_.w("web_fp_via_jspb")?Object.assign({},c):c;_.w("use_cfr_monitor")&&fnJ(J,c);if(_.w("use_request_time_ms_header"))c.headers&&Fk(J)&&(c.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.y4)())));else{var x;if((x=c.postParams)==null?0:x.requestTimeMs)c.postParams.requestTimeMs=Math.round((0,_.y4)())}m&&Object.keys(c).length===0?_.En(J):c.compress?c.postBody?(typeof c.postBody!=="string"&&(c.postBody=JSON.stringify(c.postBody)),vYJ(J,c.postBody,
c,_.tL,b)):vYJ(J,JSON.stringify(c.postParams),c,eF2,b):_.tL(J,c)};
XjQ=function(J,c){_.w("use_event_time_ms_header")&&Fk(J)&&(c.headers||(c.headers={}),c.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,_.y4)())));return c};
_.qTo=function(){Zve||(Zve=new _.On({logOfflineErrors:!0,enablePolling:!0}));return Zve};
fnJ=function(J,c){var m=c.onError?c.onError:function(){};
c.onError=function(x,P){o6().requestComplete(J,!1);m(x,P)};
var b=c.onSuccess?c.onSuccess:function(){};
c.onSuccess=function(x,P){o6().requestComplete(J,!0);b(x,P)}};
_.Urm=function(){return _.es(document.location.toString())!=="www.youtube-nocookie.com"};
_.dru=function(){return _.$y("ytNetworklessLoggingInitializationOptions")?_.STT.isNwlInitialized:_.hgo};
$ru=function(J,c){if(_.w("polymer_on_demand_shady_dom")){var m;var b=(m=J.__shady_native_firstElementChild)!=null?m:J.firstElementChild}else b=J.firstElementChild;for(;b;){if(J=c(b)?b:$ru(b,c))return J;b=b.nextElementSibling}return null};
Ebt=function(){var J=document;if("visibilityState"in J)return J.visibilityState;var c=Ghf+"VisibilityState";if(c in J)return J[c]};
_.vbq=function(J,c){var m;QF(J,function(b){m=c[b];return!!m});
return m};
_.jf=function(J){var c=OvJ(J);c?c.focus(void 0):_.ef(J)};
OvJ=function(J){return(J=$ru(J,function(c){return _.F_(c)?Acr(c)&&!!c.offsetParent:!1}))?J:null};
_.ef=function(J,c){J.hasAttribute("tabindex")||J.setAttribute("tabindex","-1");J.focus(c)};
Rg2=function(J,c,m,b){b=b===void 0?{}:b;J.addEventListener&&(c!="mouseenter"||"onmouseenter"in document?c!="mouseleave"||"onmouseenter"in document?c=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(c="MozMousePixelScroll"):c="mouseout":c="mouseover");return _.Lw.findKey(lO,function(x){var P=typeof x[4]==="boolean"&&x[4]==!!b,p=_.cB(x[4])&&_.cB(b)&&_.Lw.equals(x[4],b);return!!x.length&&x[0]==J&&x[1]==c&&x[2]==m&&(P||p)})};
_.B4=function(J,c,m,b){b=b===void 0?{}:b;if(!J||!J.addEventListener&&!J.attachEvent)return"";var x=Rg2(J,c,m,b);if(x)return x;x=++obQ.count+"";var P=!(c!="mouseenter"&&c!="mouseleave"||!J.addEventListener||"onmouseenter"in document);var p=P?function(t){t=new yF(t);if(!_.qA(t.relatedTarget,function(I){return I==J},!0))return t.currentTarget=J,t.type=c,m.call(J,t)}:function(t){t=new yF(t);
t.currentTarget=J;return m.call(J,t)};
p=_.du(p);J.addEventListener?(c=="mouseenter"&&P?c="mouseover":c=="mouseleave"&&P?c="mouseout":c=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(c="MozMousePixelScroll"),Q1m()||typeof b==="boolean"?J.addEventListener(c,p,b):J.addEventListener(c,p,!!b.capture)):J.attachEvent("on"+c,p);lO[x]=[J,c,m,p,b];return x};
_.j1q=function(J,c,m){var b=b===void 0?{}:b;var x=_.B4(J,c,function(){_.eg3(x);m.apply(J,arguments)},b)};
_.eg3=function(J){J&&(typeof J=="string"&&(J=[J]),_.vG(J,function(c){if(c in lO){var m=lO[c],b=m[0],x=m[1],P=m[3];m=m[4];b.removeEventListener?Q1m()||typeof m==="boolean"?b.removeEventListener(x,P,m):b.removeEventListener(x,P,!!m.capture):b.detachEvent&&b.detachEvent("on"+x,P);delete lO[c]}}))};
go=function(J){this.callback_=J;this.position_=null;this.previousTime_=0;this.previousPosition_=null;this.previousVelocity_=0;this.cycles_=[];for(J=0;J<4;J++)this.cycles_.push(0);this.index_=0;this.mouseListenerKey_=_.B4(window,"mousemove",(0,_.Wa)(this.onMouseMove_,this));this.timerId_=_.MU((0,_.Wa)(this.checkPosition_,this),25)};
lnG=function(){var J={};var c=J.preferMobileEvents===void 0?!1:J.preferMobileEvents;J=J.enableScrollEventListener===void 0?!0:J.enableScrollEventListener;if(_.$y("_lact",window)==null){var m=parseInt(_.Ub("LACT"),10);m=isFinite(m)?Date.now()-Math.max(m,0):-1;_.jD("_lact",m,window);_.jD("_fact",m,window);m==-1&&_.JI();_.B4(document,"keydown",_.JI);_.B4(document,"keyup",_.JI);_.B4(document,"mousedown",_.JI);_.B4(document,"mouseup",_.JI);c?_.B4(window,"touchmove",function(){FUJ("touchmove",200)},{passive:!0}):
(_.B4(window,"resize",function(){FUJ("resize",200)}),J&&_.B4(window,"scroll",function(){FUJ("scroll",200)}));
new go(function(){FUJ("mouse",100)});
_.B4(document,"touchstart",_.JI,{passive:!0});_.B4(document,"touchend",_.JI,{passive:!0})}};
FUJ=function(J,c){yct[J]||(yct[J]=!0,_.ft.addLowPriorityJob(function(){_.JI();yct[J]=!1},c))};
_.JI=function(){_.$y("_lact",window)==null&&lnG();var J=Date.now();_.jD("_lact",J,window);_.$y("_fact",window)==-1&&_.jD("_fact",J,window);(J=_.$y("ytglobal.ytUtilActivityCallback_"))&&J()};
_.cO=function(){var J=_.$y("_lact",window);return J==null?-1:Math.max(Date.now()-J,0)};
_.V5=function(J,c,m){var b=_.mC();if(b&&c){var x=b.subscribe(J,function(){var P=arguments,p=function(){b3[x]&&c.apply&&typeof c.apply=="function"&&c.apply(m||window,P)};
try{_.BBG[J]?p():_.P7(p,0)}catch(t){_.ha(t)}},m);
b3[x]=!0;xH[J]||(xH[J]=[]);xH[J].push(x);return x}return 0};
_.gb2=function(J){var c=_.mC();c&&(typeof J==="number"?J=[J]:typeof J==="string"&&(J=[parseInt(J,10)]),_.vG(J,function(m){c.unsubscribeByKey(m);delete b3[m]}))};
_.JOm=function(J,c){var m=_.mC();m&&m.publish.apply(m,arguments)};
_.mEm=function(J){var c=_.mC();if(c)if(c.clear(J),J)cOm(J);else for(var m in xH)cOm(m)};
_.mC=function(){return _.mo.ytPubsubPubsubInstance};
cOm=function(J){xH[J]&&(J=xH[J],_.vG(J,function(c){b3[c]&&delete b3[c]}),J.length=0)};
bsG=function(){var J,c;return"h5vcc"in PO&&((J=PO.h5vcc.traceEvent)==null?0:J.traceBegin)&&((c=PO.h5vcc.traceEvent)==null?0:c.traceEnd)?1:"performance"in PO&&PO.performance.mark&&PO.performance.measure?2:0};
xEm=function(J){var c=bsG();switch(c){case 1:PO.h5vcc.traceEvent.traceBegin("YTLR",J);break;case 2:PO.performance.mark(J+"-start");break;case 0:break;default:_.Pu(c,"unknown trace type")}};
V5e=function(J){var c=bsG();switch(c){case 1:PO.h5vcc.traceEvent.traceEnd("YTLR",J);break;case 2:c=J+"-start";var m=J+"-end";PO.performance.mark(m);PO.performance.measure(J,c,m);break;case 0:break;default:_.Pu(c,"unknown trace type")}};
PMJ=function(J){var c,m;(m=(c=window).onerror)==null||m.call(c,J.message,"",0,0,J)};
M5f=function(J){if(_.w("web_lifecycle_error_handling_killswitch"))return J();try{return J()}catch(c){PMJ(c)}};
p9Q=function(J){return[J.auth===void 0?"undefined":J.auth,J.isJspb===void 0?"undefined":J.isJspb,J.cttAuthInfo===void 0?"undefined":J.cttAuthInfo,J.tier===void 0?"undefined":J.tier].join("/")};
_.L=function(J,c){if(J)return J[c.name]};
p4=function(){var J=_.$y("yt.logging.ims");J||(J=new Mz,_.jD("yt.logging.ims",J));return J};
isr=function(J,c){if(J.endpoint==="log_event"){NU2(J);var m=t5f(J),b=Iho(J.payload)||"",x=KqT(b),P=200;if(x){if(x.enabled===!1&&!_.w("web_payload_policy_disabled_killswitch"))return;P=CMQ(x.tier);if(P===400){aht(J,c);return}}Nz[m]=!0;m={cttAuthInfo:m,isJspb:!1,tier:P};p4().storePayload(m,J.payload);k1q(c,!1,m,Hse(b))}};
TU2=function(J,c,m){if(c.endpoint==="log_event"){NU2(void 0,c);var b=t5f(c,!0),x=KqT(J),P=200;if(x){if(x.enabled===!1&&!_.w("web_payload_policy_disabled_killswitch"))return;P=CMQ(x.tier);if(P===400){nrR(J,c,m);return}}Nz[b]=!0;b={cttAuthInfo:b,isJspb:!0,tier:P};p4().storePayload(b,Je(c.payload));k1q(m,!0,b,Hse(J))}};
k1q=function(J,c,m,b){c=c===void 0?!1:c;b=b===void 0?!1:b;J&&(tI=new J);J=_.c7("tvhtml5_logging_max_batch_ads_fork")||_.c7("tvhtml5_logging_max_batch")||_.c7("web_logging_max_batch")||100;var x=(0,_.y4)(),P=w9J(c,m.tier),p=P.lastDebounceQueueFromLogTimeMs;b&&(P.useVideoStatsEndPoint=!0);b=0;m&&(b=p4().getSequenceCount(m));var t=function(){rOe({writeThenSend:!0},c,m.tier)};
b>=1E3?t():b>=J?suR||(suR=LqR(function(){t();suR=void 0},0)):x-p>=10&&(DEQ(c,m.tier),P.lastDebounceQueueFromLogTimeMs=x)};
aht=function(J,c){if(J.endpoint==="log_event"){_.w("more_accurate_gel_parser")&&p4().storePayload({isJspb:!1},J.payload);NU2(J);var m=t5f(J),b=new Map;b.set(m,[J.payload]);var x=Iho(J.payload)||"";c&&(tI=new c);return new _.IN(function(P,p){tI&&tI.isReady()?WqQ(b,tI,P,p,{bypassNetworkless:!0},!0,Hse(x)):P()})}};
nrR=function(J,c,m){if(c.endpoint==="log_event"){NU2(void 0,c);var b=t5f(c,!0),x=new Map;x.set(b,[Je(c.payload)]);m&&(tI=new m);return new _.IN(function(P){tI&&tI.isReady()?z8t(x,tI,P,{bypassNetworkless:!0},!0,Hse(J)):P()})}};
t5f=function(J,c){var m="";if(J.dangerousLogToVisitorSession)m="visitorOnlyApprovedKey";else if(J.cttAuthInfo){if(c===void 0?0:c){c=J.cttAuthInfo.token;m=J.cttAuthInfo;var b=new uFt;m.videoId?b.setVideoId(m.videoId):m.playlistId&&K4(b,2,fhr,$p(m.playlistId));YBf[c]=b}else c=J.cttAuthInfo,m={},c.videoId?m.videoId=c.videoId:c.playlistId&&(m.playlistId=c.playlistId),X92[J.cttAuthInfo.token]=m;m=J.cttAuthInfo.token}return m};
rOe=function(J,c,m){J=J===void 0?{}:J;c=c===void 0?!1:c;new _.IN(function(b,x){var P=w9J(c,m),p=P.useVideoStatsEndPoint;P.useVideoStatsEndPoint=!1;ZsT(P.queueTimer);ZsT(P.queueMaxTimer);P.queueMaxTimer=0;tI&&tI.isReady()?m===void 0&&_.w("enable_web_tiered_gel")?qBq(b,x,J,c,300,p):qBq(b,x,J,c,m,p):(DEQ(c,m),b())})};
qBq=function(J,c,m,b,x,P){var p=tI;m=m===void 0?{}:m;b=b===void 0?!1:b;x=x===void 0?200:x;P=P===void 0?!1:P;var t=new Map,I=new Map,a={isJspb:b,cttAuthInfo:void 0,tier:x},k={isJspb:b,cttAuthInfo:void 0};if(b){c=_.M(Object.keys(Nz));for(x=c.next();!x.done;x=c.next())x=x.value,I=_.w("enable_web_tiered_gel")?p4().smartExtractMatchingEntries({keys:[a,k],sizeLimit:1E3}):p4().extractMatchingEntries({isJspb:!0,cttAuthInfo:x}),I.length>0&&t.set(x,I),(_.w("web_fp_via_jspb_and_json")&&m.writeThenSend||!_.w("web_fp_via_jspb_and_json"))&&
delete Nz[x];z8t(t,p,J,m,!1,P)}else{t=_.M(Object.keys(Nz));for(a=t.next();!a.done;a=t.next())a=a.value,k=_.w("enable_web_tiered_gel")?p4().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:a,tier:x},{isJspb:!1,cttAuthInfo:a}],sizeLimit:1E3}):p4().extractMatchingEntries({isJspb:!1,cttAuthInfo:a}),k.length>0&&I.set(a,k),(_.w("web_fp_via_jspb_and_json")&&m.writeThenSend||!_.w("web_fp_via_jspb_and_json"))&&delete Nz[a];WqQ(I,p,J,c,m,!1,P)}};
DEQ=function(J,c){J=J===void 0?!1:J;c=c===void 0?200:c;var m=function(){rOe({writeThenSend:!0},J,c)},b=w9J(J,c),x=b===UEm||b===SBt?5E3:h8u;
_.w("web_gel_timeout_cap")&&!b.queueMaxTimer&&(x=LqR(function(){m()},x),b.queueMaxTimer=x);
ZsT(b.queueTimer);x=_.Ub("LOGGING_BATCH_TIMEOUT",_.c7("web_gel_debounce_ms",1E4));_.w("shorten_initial_gel_batch_timeout")&&dEt&&(x=$EG);x=LqR(function(){_.c7("gel_min_batch_size")>0?p4().getSequenceCount({cttAuthInfo:void 0,isJspb:J,tier:c})>=G1o&&m():m()},x);
b.queueTimer=x};
WqQ=function(J,c,m,b,x,P,p){x=x===void 0?{}:x;var t=Math.round((0,_.y4)()),I=J.size,a=Erq(p);J=_.M(J);var k=J.next();for(p={};!k.done;p={networkFailures:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,onSuccess$jscomp$3:void 0,onError$jscomp$5:void 0},k=J.next()){var H=_.M(k.value);k=H.next().value;H=H.next().value;p.batchRequest=_.Lw.unsafeClone({context:_.n2m(c.config_||_.g3())});if(!_.yJ(H)&&!_.w("throw_err_when_logevent_malformed_killswitch")){b();break}p.batchRequest.events=H;
(H=X92[k])&&vro(p.batchRequest,k,H);delete X92[k];p.dangerousLogToVisitorSession=k==="visitorOnlyApprovedKey";Osq(p.batchRequest,t,p.dangerousLogToVisitorSession);AOu(x);p.onSuccess$jscomp$3=function(T){_.w("start_client_gcf")&&_.ft.addLowPriorityJob(function(){return _.N(function(r){return _.K(r,R8R(T),0)})});
I--;I||m()};
p.networkFailures=0;p.onError$jscomp$5=function(T){return function(){T.networkFailures++;if(x.bypassNetworkless&&T.networkFailures===1)try{gYr(c,a,T.batchRequest,orT({writeThenSend:!0},T.dangerousLogToVisitorSession,T.onSuccess$jscomp$3,T.onError$jscomp$5,P)),dEt=!1}catch(r){_.ha(r),b()}I--;I||m()}}(p);
try{gYr(c,a,p.batchRequest,orT(x,p.dangerousLogToVisitorSession,p.onSuccess$jscomp$3,p.onError$jscomp$5,P)),dEt=!1}catch(T){_.ha(T),b()}}};
z8t=function(J,c,m,b,x,P){b=b===void 0?{}:b;var p=Math.round((0,_.y4)()),t={value:J.size},I=new Map([].concat(_.L6(J)));I=_.M(I);for(var a=I.next();!a.done;a=I.next()){var k=_.M(a.value).next().value,H=J.get(k);a=new QuJ;var T=c.config_||_.g3(),r=new C4,W=new e8m;_.aw(W,1,T.innertubeContextHostLanguage);_.aw(W,2,T.innertubeContextGeoLocation);_.c4(W,16,T.innertubeContextClientNameFieldNumber);_.aw(W,17,T.innertubeContextClientVersion);if(T.innertubeContextClientConfigInfo){var Y=T.innertubeContextClientConfigInfo,
Z=new bO;Y.coldConfigData&&_.aw(Z,1,Y.coldConfigData);Y.appInstallData&&_.aw(Z,6,Y.appInstallData);Y.coldHashData&&_.aw(Z,3,Y.coldHashData);Y.hotHashData&&Z.setHotHashData(Y.hotHashData);_.m_(W,62,Z)}(Y=_.mo.devicePixelRatio)&&Y!=1&&_.mL(W,65,_.NR(Y));Y=U8r();Y!==""&&_.aw(W,54,Y);Y=S4R();if(Y.length>0){Z=new juo;for(var d=0;d<Y.length;d++){var G=new aN;G.setKey(Y[d].key);K4(G,2,Fqu,$p(Y[d].value));kH(Z,15,aN,G)}_.m_(r,5,Z)}K9T(T,W);CJq(r);au2(W);kmJ(T,W);HXt(W);_.w("start_client_gcf")&&iXo(W);_.Ub("DELEGATED_SESSION_ID")&&
!_.w("pageid_as_header_web")&&(T=new HO,_.aw(T,3,_.Ub("DELEGATED_SESSION_ID")));!_.w("fill_delegate_context_in_gel_killswitch")&&(Y=_.Ub("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(Z=_.JU(r,HO,3)||new HO,T=r,Y=_.aw(Z,18,Y),_.m_(T,3,Y));T=W;Y=_.M(Object.entries(_.Ob(_.Ub("DEVICE",""))));for(Z=Y.next();!Z.done;Z=Y.next())d=_.M(Z.value),Z=d.next().value,d=d.next().value,Z==="cbrand"?_.aw(T,12,d):Z==="cmodel"?_.aw(T,13,d):Z==="cbr"?_.aw(T,87,d):Z==="cbrver"?_.aw(T,88,d):Z==="cos"?_.aw(T,18,
d):Z==="cosver"?_.aw(T,19,d):Z==="cplatform"&&_.c4(T,42,tKu(d));r.setClient(W);_.m_(a,1,r);if(W=YBf[k])a:{if(_.Ha(W,i3(W,fhr,1)))r=1;else if(W.getPlaylistId())r=2;else break a;_.m_(a,4,W);W=a.getContext()||new C4;T=_.JU(W,HO,3)||new HO;Y=new n4;Y.setToken(k);_.c4(Y,1,r);kH(T,12,n4,Y);_.m_(W,3,T)}delete YBf[k];k=k==="visitorOnlyApprovedKey";lhT()||_.TB(a,2,p);!k&&(r=_.Ub("EVENT_ID"))&&(W=yOr(),T=new BUT,_.aw(T,1,r),_.TB(T,2,W),_.m_(a,5,T));AOu(b);if(_.w("jspb_serialize_with_worker")&&(r=_.fZD())&&
b.writeThenSend){_.grR.set(JdD,{client:c,resolve:m,networklessOptions:b,isIsolated:x,useVSSEndpoint:P,dangerousLogToVisitorSession:k,requestsOutstanding:t});r.postMessage({op:"gelBatchToSerialize",batchRequest:Je(a),clientEvents:H,key:JdD});JdD++;break}if(H){r=[];for(W=0;W<H.length;W++)try{r.push(new wv(H[W]))}catch(e){_.ha(new _.w3("Transport failed to deserialize "+String(H[W])))}H=r}else H=[];H=_.M(H);for(r=H.next();!r.done;r=H.next())kH(a,3,wv,r.value);H={startTime:(0,_.y4)(),ticks:{},infos:{}};
a=a.serialize();H.ticks.geljspc=(0,_.y4)();_.w("log_jspb_serialize_latency")&&LAr("gel_jspb_serialize",H,{sampleRate:.1});_.cdQ(a,c,m,b,x,P,k,t)}};
_.cdQ=function(J,c,m,b,x,P,p,t){b=b===void 0?{}:b;t=t===void 0?{value:0}:t;P=Erq(P);b=orT(b,p,function(I){_.w("start_client_gcf")&&_.ft.addLowPriorityJob(function(){return _.N(function(a){return _.K(a,R8R(I),0)})});
t.value--;t.value||m()},function(){t.value--;
t.value||m()},x);
b.headers["Content-Type"]="application/json+protobuf";b.postBodyFormat="JSPB";b.postBody=J;gYr(c,P,"",b);dEt=!1};
AOu=function(J){_.w("always_send_and_write")&&(J.writeThenSend=!1)};
orT=function(J,c,m,b,x){J={retry:!0,onSuccess:m,onError:b,networklessOptions:J,dangerousLogToVisitorSession:c,bypassMonitoring:!!x,headers:{},postBodyFormat:"",postBody:"",compress:_.w("compress_gel")||_.w("compress_gel_lr")};lhT()&&(J.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.y4)())));return J};
Osq=function(J,c,m){lhT()||(J.requestTimeMs=String(c));_.w("unsplit_gel_payloads_in_logs")&&(J.unsplitGelPayloadsInLogs=!0);!m&&(c=_.Ub("EVENT_ID"))&&(m=yOr(),J.serializedClientEventId={serializedEventId:c,clientCounter:String(m)})};
yOr=function(){var J=_.Ub("BATCH_CLIENT_COUNTER")||0;J||(J=Math.floor(Math.random()*65535/2));J++;J>65535&&(J=1);_.q3("BATCH_CLIENT_COUNTER",J);return J};
vro=function(J,c,m){if(m.videoId)var b="VIDEO";else if(m.playlistId)b="PLAYLIST";else return;J.credentialTransferTokenTargetId=m;J.context=J.context||{};J.context.user=J.context.user||{};J.context.user.credentialTransferTokens=[{token:c,scope:b}]};
NU2=function(J,c){var m=_.mG("il_payload_scraping")==="enable_il_payload_scraping";if(!_.$y("yt.logging.transport.enableScrapingForTest"))if(m)mlf=[],_.jD("yt.logging.transport.enableScrapingForTest",!0),_.jD("yt.logging.transport.scrapedPayloadsForTesting",mlf),_.jD("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),_.jD("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
_.jD("yt.logging.transport.scrapeClientEvent",!0);else return;m=_.$y("yt.logging.transport.scrapedPayloadsForTesting");var b=_.$y("yt.logging.transport.payloadToScrape");c&&(c=_.$y("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(c.payload)())&&m.push(c);c=_.$y("yt.logging.transport.scrapeClientEvent");if(b&&b.length>=1)for(var x=0;x<b.length;x++)if(J&&J.payload[b[x]])if(c)m.push(J.payload);else{var P=void 0;m.push(((P=J)==null?void 0:P.payload)[b[x]])}_.jD("yt.logging.transport.scrapedPayloadsForTesting",
m)};
lhT=function(){return _.w("use_request_time_ms_header")||_.w("lr_use_request_time_ms_header")};
LqR=function(J,c){return _.w("transport_use_scheduler")===!1?_.P7(J,c):_.w("logging_avoid_blocking_during_navigation")||_.w("lr_logging_avoid_blocking_during_navigation")?_.rv(_.ft,function(){if(_.b7f().currentState==="none")J();else{var m={};_.b7f().install((m.none={callback:J},m))}},c):_.rv(_.ft,J,c)};
ZsT=function(J){_.w("transport_use_scheduler")?_.ft.cancelJob(J):_.pg(J)};
R8R=function(J){var c,m,b,x,P,p,t,I,a,k;return _.N(function(H){return H.nextAddress==1?(b=(c=J)==null?void 0:(m=c.responseContext)==null?void 0:m.globalConfigGroup,x=_.L(b,xlu),p=(P=b)==null?void 0:P.hotHashData,t=_.L(b,VMQ),a=(I=b)==null?void 0:I.coldHashData,(k=_.BG().resolve(_.y6(se)))?p?x?_.K(H,Pvu(k,p,x),2):_.K(H,Pvu(k,p),2):H.jumpTo(2):H.return()):a?t?_.K(H,MMT(k,a,t),0):_.K(H,MMT(k,a),0):H.jumpTo(0)})};
w9J=function(J,c){c=c===void 0?200:c;return J?c===300?UEm:pdm:c===300?SBt:NpJ};
KqT=function(J){if(_.w("enable_web_tiered_gel")){J=tMe[J||""];var c,m,b,x=_.BG().resolve(_.y6(se))==null?void 0:(c=IGm())==null?void 0:(m=c.loggingHotConfig)==null?void 0:(b=m.eventLoggingConfig)==null?void 0:b.payloadPolicies;if(x)for(c=0;c<x.length;c++)if(x[c].payloadNumber===J)return x[c]}};
Iho=function(J){J=Object.keys(J);J=_.M(J);for(var c=J.next();!c.done;c=J.next())if(c=c.value,tMe[c])return c};
CMQ=function(J){switch(J){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}};
Hse=function(J){return J==="gelDebuggingEvent"};
Erq=function(J){return(J===void 0?0:J)&&_.w("vss_through_gel_video_stats")?"video_stats":"log_event"};
Dt=function(J,c,m,b){b=b===void 0?{}:b;var x={},P=Math.round(b.timestamp||(0,_.y4)());x.eventTimeMs=P<Number.MAX_SAFE_INTEGER?P:0;x[J]=c;J=_.cO();x.context={lastActivityMs:String(b.timestamp||!isFinite(J)?-1:J)};b.sequenceGroup&&!_.w("web_gel_sequence_info_killswitch")&&(J=x.context,c=b.sequenceGroup,c={index:KPm(c),groupKey:c},J.sequence=c,b.endOfSequence&&delete L4[b.sequenceGroup]);(b.sendIsolatedPayload?aht:isr)({endpoint:"log_event",payload:x,cttAuthInfo:b.cttAuthInfo,dangerousLogToVisitorSession:b.dangerousLogToVisitorSession},
m)};
KPm=function(J){L4[J]=J in L4?L4[J]+1:0;return L4[J]};
_.zB=function(J,c,m){m=m===void 0?{}:m;var b=WO;_.Ss("ytLoggingEventsDefaultDisabled",!1)&&WO===WO&&(b=null);Dt(J,c,b,m)};
_.YH=function(){if(_.w("web_fp_via_jspb")){var J=!0;J=J===void 0?!1:J;var c=CvQ;CvQ=[];if(c){c=_.M(c);for(var m=c.next();!m.done;m=c.next())m=m.value,J?Dt(m.payloadName,m.payload,WO,m.options):_.zB(m.payloadName,m.payload,m.options)}rOe(void 0,!0);if(!_.w("web_fp_via_jspb_and_json"))return}rOe(void 0,!1)};
aG3=function(J,c){var m;if((m=c)==null?0:m.componentStack)return c;if(J=J.componentStack)c||(c={}),c.componentStack=J;return c};
kgD=function(){_.vG(_.Ub("ERRORS")||[],function(J){_.Xc.apply(null,J)});
_.q3("ERRORS",[])};
_.Zt=function(J){_.Xc(J)};
_.qz=function(J){_.Xc(J,"WARNING")};
H7J=function(J){J instanceof Error?_.Xc(J):(J=_.cB(J)?JSON.stringify(J):String(J),J=new _.w3(J),J.name="RejectedPromiseError",_.qz(J))};
i7R=function(J,c,m,b,x,P){c=c===void 0?"Unknown file":c;m=m===void 0?0:m;var p=!1,t=a12("log_window_onerror_fraction");if(t&&Math.random()<t)p=!0;else{t=document.getElementsByTagName("script");for(var I=0,a=t.length;I<a;I++)if(t[I].src.indexOf("/debug-")>0){p=!0;break}}p&&(p=!1,x?p=!0:(typeof J==="string"?t=J:ErrorEvent&&J instanceof ErrorEvent?(p=!0,t=J.message,c=J.filename,m=J.lineno,b=J.colno):(t="Unknown error",c="Unknown file",m=0),x=new _.w3(t),x.name="UnhandledWindowError",x.message=t,x.fileName=
c,x.lineNumber=m,isNaN(b)?delete x.columnNumber:x.columnNumber=b),_.w("wiz_enable_component_stack_propagation_killswitch")||(P=aG3(x,P)),P&&_.Ue(x,P),p?_.Xc(x):_.qz(x))};
_.Xc=function(J,c,m,b,x,P,p,t){P=P===void 0?{}:P;P.name=m||_.Ub("INNERTUBE_CONTEXT_CLIENT_NAME",1);P.version=b||_.Ub("INNERTUBE_CONTEXT_CLIENT_VERSION");m=P;c=c===void 0?"ERROR":c;p=p===void 0?!1:p;c=c===void 0?"ERROR":c;p=p===void 0?!1:p;if(J&&(J.hasOwnProperty("level")&&J.level&&(c=J.level),_.w("console_log_js_exceptions")&&(b=[],b.push("Name: "+J.name),b.push("Message: "+J.message),J.hasOwnProperty("params")&&b.push("Error Params: "+JSON.stringify(J.params)),J.hasOwnProperty("args")&&b.push("Error args: "+
JSON.stringify(J.args)),b.push("File name: "+J.fileName),b.push("Stacktrace: "+J.stack),b=b.join("\n"),window.console.log(b,J)),!(nVT>=5))){b=[];x=_.M(TpD);for(P=x.next();!P.done;P=x.next()){P=P.value;try{P()&&b.push(P())}catch(Z){}}b=[].concat(_.L6(wd3),_.L6(b));var I=rdT(J);x=I.message||"Unknown Error";P=I.name||"UnknownError";var a=I.stack||J.stacktrace||"Not available";if(a.startsWith(P+": "+x)){var k=a.split("\n");k.shift();a=k.join("\n")}k=I.lineNumber||"Not available";I=I.fileName||"Not available";
var H=0;if(J.hasOwnProperty("args")&&J.args&&J.args.length)for(var T=0;T<J.args.length&&!(H=NKQ(J.args[T],"params."+T,m,H),H>=500);T++);else if(J.hasOwnProperty("params")&&J.params){var r=J.params;if(typeof J.params==="object")for(T in r){if(r[T]){var W="params."+T,Y=Cg(r[T]);m[W]=Y;H+=W.length+Y.length;if(H>500)break}}else m.params=Cg(r)}if(b.length)for(T=0;T<b.length&&!(H=NKQ(b[T],"params.context."+T,m,H),H>=500);T++);navigator.vendor&&!m.hasOwnProperty("vendor")&&(m["device.vendor"]=navigator.vendor);
T={message:x,name:P,lineNumber:k,fileName:I,stack:a,params:m,sampleWeight:1};m=Number(J.columnNumber);isNaN(m)||(T.lineNumber=T.lineNumber+":"+m);if(J.level==="IGNORED")J=0;else a:{J=sA3();m=_.M(J.messageWeights);for(b=m.next();!b.done;b=m.next())if(b=b.value,T.message&&T.message.match(b.messageRegExp)){J=b.weight;break a}J=_.M(J.callbackWeights);for(m=J.next();!m.done;m=J.next())if(m=m.value,m.callback(T)){J=m.weight;break a}J=1}T.sampleWeight=J;J=_.M(LPr);for(m=J.next();!m.done;m=J.next())if(m=
m.value,m.patternsForType[T.name])for(x=_.M(m.patternsForType[T.name]),b=x.next();!b.done;b=x.next())if(P=b.value,b=T.message.match(P.regexp)){T.params["params.error.original"]=b[0];x=P.groups;P={};for(k=0;k<x.length;k++)P[x[k]]=b[k+1],T.params["params.error."+x[k]]=b[k+1];T.message=m.messageFn(P);break}T.params||(T.params={});J=sA3();T.params["params.errorServiceSignature"]="msg="+J.messageWeights.length+"&cb="+J.callbackWeights.length;T.params["params.serviceWorker"]="false";_.mo.document&&_.mo.document.querySelectorAll&&
(T.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new Sg(Dl2,"sample")).constructor!==Sg&&(T.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(T);if(T.sampleWeight!==0&&!WPR.has(T.message)){if(p&&_.w("web_enable_error_204"))zZJ(c===void 0?"ERROR":c,T);else{c=c===void 0?"ERROR":c;c==="ERROR"?(uzQ.publish("handleError",T),_.w("record_app_crashed_web")&&fGo===0&&T.sampleWeight===1&&(fGo++,p={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},
_.w("report_client_error_with_app_crash_ks")||(p.systemHealth={crashData:{clientError:{logMessage:{message:T.message}}}}),_.zB("appCrashed",p)),YvG++):c==="WARNING"&&uzQ.publish("handleWarning",T);if(_.w("kevlar_gel_error_routing")){p=c;t=t===void 0?{}:t;b:{J=_.M(Xdt);for(m=J.next();!m.done;m=J.next())if(Z4(m.value.toLowerCase())){J=!0;break b}J=!1}if(J)t=void 0;else{m={stackTrace:T.stack};T.fileName&&(m.filename=T.fileName);J=T.lineNumber&&T.lineNumber.split?T.lineNumber.split(":"):[];J.length!==
0&&(J.length!==1||isNaN(Number(J[0]))?J.length!==2||isNaN(Number(J[0]))||isNaN(Number(J[1]))||(m.lineNumber=Number(J[0]),m.columnNumber=Number(J[1])):m.lineNumber=Number(J[0]));J={level:"ERROR_LEVEL_UNKNOWN",message:T.message,errorClassName:T.name,sampleWeight:T.sampleWeight};p==="ERROR"?J.level="ERROR_LEVEL_ERROR":p==="WARNING"&&(J.level="ERROR_LEVEL_WARNNING");m={isObfuscated:!0,browserStackInfo:m};t.pageUrl=window.location.href;t.kvPairs=[];_.Ub("FEXP_EXPERIMENTS")&&(t.experimentIds=_.Ub("FEXP_EXPERIMENTS"));
b=_.Ub("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!a12("web_disable_gel_stp_ecatcher_killswitch")&&b)for(x=_.M(Object.keys(b)),P=x.next();!P.done;P=x.next())P=P.value,t.kvPairs.push({key:P,value:String(b[P])});if(b=T.params)for(x=_.M(Object.keys(b)),P=x.next();!P.done;P=x.next())P=P.value,t.kvPairs.push({key:"client."+P,value:String(b[P])});b=_.Ub("SERVER_NAME");x=_.Ub("SERVER_VERSION");b&&x&&(t.kvPairs.push({key:"server.name",value:b}),t.kvPairs.push({key:"server.version",value:x}));t={errorMetadata:t,
stackTrace:m,logMessage:J}}t&&(_.zB("clientError",t),(p==="ERROR"||_.w("errors_flush_gel_always_killswitch"))&&_.YH())}_.w("suppress_error_204_logging")||zZJ(c,T)}try{WPR.add(T.message)}catch(Z){}nVT++}}};
zZJ=function(J,c){var m=c.params||{};J={urlParams:{a:"logerror",t:"jserror",type:c.name,msg:c.message.substr(0,250),line:c.lineNumber,level:J,"client.name":m.name},postParams:{url:_.Ub("PAGE_NAME",window.location.href),file:c.fileName},method:"POST"};m.version&&(J["client.version"]=m.version);if(J.postParams){c.stack&&(J.postParams.stack=c.stack);c=_.M(Object.keys(m));for(var b=c.next();!b.done;b=c.next())b=b.value,J.postParams["client."+b]=m[b];if(m=_.Ub("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(c=
_.M(Object.keys(m)),b=c.next();!b.done;b=c.next())b=b.value,J.postParams[b]=m[b];(m=_.Ub("LAVA_VERSION"))&&(J.postParams["lava.version"]=m);m=_.Ub("SERVER_NAME");c=_.Ub("SERVER_VERSION");m&&c&&(J.postParams["server.name"]=m,J.postParams["server.version"]=c)}_.tL(_.Ub("ECATCHER_REPORT_HOST","")+"/error_204",J)};
_.Z72=function(J,c){c=c===void 0?"ERROR":c;var m=m===void 0?{}:m;var b=_.$y("ytbin.polymer.shared.lib.tampering.info");b&&(b=b())&&(m["params.tamperingInfo"]=b.sort().join(","));_.Xc(J,c,void 0,void 0,!0,m)};
_.Ue=function(J){var c=_.s$.apply(1,arguments);J.args||(J.args=[]);Array.isArray(J.args)&&J.args.push.apply(J.args,_.L6(c))};
qvR=function(J){J.level="IGNORED"};
UlR=function(J,c){wd3.push(J);c();wd3.pop()};
dv=function(J,c){for(var m in c)c.hasOwnProperty(m)&&(J=_.hI(J,m,c[m]));return J};
_.Svr=function(J,c,m){m=m===void 0?!1:m;if(!J)return null;if(J.adInfoDialogEndpoint||J.backstageImageUploadEndpoint||J.confirmDialogEndpoint||J.clientActionEndpoint||J.createBackstagePostDialogEndpoint||J.createCommentReplyDialogEndpoint||J.flowEndpoint||J.guideBuilderEndpoint||J.liveChatDialogEndpoint||J.modalEndpoint||J.openPopupAction||J.shareEndpoint||J.shareEntityEndpoint||J.showLiveChatItemEndpoint||J.subscriptionManagerEndpoint||J.unlimitedCreateFamilyEndpoint||J.unlimitedFamilyFlowEndpoint||
J.updateCommentDialogEndpoint||J.updateCommentReplyDialogEndpoint||J.userFeedbackEndpoint||J.videoEditorEndpoint||J.ypcCancelSurveyEndpoint)return c=_.c7("polymer_report_client_url_requested_rate"),!m&&Math.random()<c&&_.qz(new _.w3("urlForEndpoint used on client endpoint",J)),null;var b=_.c7("polymer_report_missing_web_navigation_endpoint_rate");if(J.liveChatEndpoint||J.liveChatReplayEndpoint)b=0;if(!J.commandMetadata&&!J.clickTrackingParams&&Math.random()<b){var x={},P;for(P in J)x[P]="1";_.qz(new _.w3("Missing navigation data",
x))}x="";if(J.commandMetadata&&J.commandMetadata.webCommandMetadata&&J.commandMetadata.webCommandMetadata.url)x=J.commandMetadata.webCommandMetadata.url;else if(J.searchEndpoint)Math.random()<b&&_.qz(new _.w3("Should not manually handle search",J)),x="/results?search_query="+encodeURIComponent(J.searchEndpoint.query).replace(/%20/g,"+"),J.searchEndpoint.params&&(x+="&sp="+J.searchEndpoint.params);else if(J.watchEndpoint)Math.random()<b&&_.qz(new _.w3("Should not manually handle watch",J)),x="/watch?v="+
J.watchEndpoint.videoId,J.watchEndpoint.playlistId&&(x+="&list="+J.watchEndpoint.playlistId),J.watchEndpoint.index&&(x+="&index="+J.watchEndpoint.index),J.watchEndpoint.startTimeSeconds&&(x+="&t="+J.watchEndpoint.startTimeSeconds);else if(J.browseEndpoint)b=J.browseEndpoint.browseId,(P=J.browseEndpoint.canonicalBaseUrl)?x=P:b&&(x=b.substr(0,2),x=x==="FE"?b==="FEwhat_to_watch"?"/":b==="FEmy_videos"?"/my_videos":"/feed/"+b.substr(2):x==="VL"?"/playlist?list="+b.substr(2):"/channel/"+b),x&&J.browseEndpoint.query&&
(x=dv(x+"/search",{query:J.browseEndpoint.query})),x&&J.browseEndpoint.params&&(x=dv(x,{params:J.browseEndpoint.params}));else{if(J.urlEndpoint)return J.urlEndpoint.url;J.signInEndpoint?(x="https://accounts.google.com/ServiceLogin",b={},_.Lw.extend(b,c||{},{"continue":window.location.href.split("#")[0],action_handle_signin:!0,passive:!0}),c=b):J.uploadEndpoint?x="//www.youtube.com/upload":J.liveChatEndpoint?(x=J.liveChatEndpoint,b=_.Lw.clone(x),_.cB(x.continuation)&&(P=Object.keys(x.continuation)[0],
b.continuation=x.continuation[P].continuation),x=dv("/youtubei/v1/live_chat/get_live_chat",b)):J.liveChatReplayEndpoint?(x=_.Lw.clone(J.liveChatReplayEndpoint),x.currentPlayerState&&(_.Lw.extend(x,x.currentPlayerState),delete x.currentPlayerState),x=dv("/youtubei/v1/live_chat/get_live_chat_replay",x)):J.liveChatItemContextMenuEndpoint?x=dv("/youtubei/v1/live_chat/get_item_context_menu",J.liveChatItemContextMenuEndpoint):J.liveChatPurchaseMessageEndpoint?x=dv("/youtubei/v1/live_chat/get_live_chat_message_buy_flow",
J.liveChatPurchaseMessageEndpoint):J.openSuperStickerBuyFlowCommand?x=dv("/youtubei/v1/live_chat/get_live_chat_super_sticker_buy_flow",J.openSuperStickerBuyFlowCommand):J.videoEditEndpoint?x=dv("/edit",{video_id:J.videoEditEndpoint.videoId}):J.liveDashboardEndpoint?x=J.liveDashboardEndpoint.videoId?dv("/live_dashboard",{v:J.liveDashboardEndpoint.videoId}):"/live_dashboard":J.signalNavigationEndpoint&&J.signalNavigationEndpoint.signal&&J.signalNavigationEndpoint.signal==="WEBCAM"?x="/webcam":J.getPdgBuyFlowCommand&&
(x=dv(J.getPdgBuyFlowCommand.buyflowApiPath,{params:J.getPdgBuyFlowCommand.params}))}return x||m?dv(x,c||{}):(_.qz(new _.w3("Error: Can't construct url for endpoint","keys:"+Object.keys(J).sort().join(","),J)),null)};
hZT=function(J){if(J){if(J.browseEndpoint)return!!J.browseEndpoint.nofollow;if(J.watchEndpoint)return!!J.watchEndpoint.nofollow;if(J.urlEndpoint)return!!J.urlEndpoint.nofollow}return!1};
_.$lJ=function(J,c){var m=c+J,b=dlr.get(m);if(b)return b;J=c+"-"+J.replace(/([A-Z])/g,"-$1").toLowerCase();dlr.set(m,J);return J};
Ggu=function(J){var c=_.Xk(J,"action")||_.Xk(J,"command")||_.Xk(J,"endpoint");if(!c)return null;c=_.$lJ(c,"yt");_.L(J,_.$H)&&(c+="-"+_.L(J,_.$H).signal.toLowerCase().replace(/_/g,"-"));return c};
Ad2=function(J){try{var c=Object.keys(J)}catch(x){return[]}for(var m=0;m<c.length;m++){var b=c[m];if(EVD.test(b)||vVt.test(b))return O73(J[b])}return[]};
O73=function(J){return J.command?[J.command]:J.onExecutionAction?[J.onExecutionAction]:J.onResponseReceivedCommand?[J.onResponseReceivedCommand]:J.updateFlowCommand?[J.updateFlowCommand]:J.clientActions?J.clientActions:J.action?[J.action]:J.actions||J.commands||J.onResponseReceivedActions||J.onResponseReceivedCommands||J.onResponseReceivedEndpoints||[]};
oVt=function(J,c){c=c===void 0?!1:c;var m=_.BG().resolve(_.y6(GB));m||(m=new RZe,_.BG().addProvider({provide:GB,useValue:m}));return m&&J&&!_.Lw.isEmpty(J)?m.getUrl(J,c):""};
QA2=function(J,c,m){m=m===void 0?"":m;if(c){J.data=c;var b=oVt(c);b?(W0(J,b),hZT(c)||!Fk(b)?J.rel="nofollow":J.removeAttribute("rel"),_.L(c,_.Ee)&&_.L(c,_.Ee).target==="TARGET_NEW_WINDOW"?J.target="_blank":m?J.target=m:J.removeAttribute("target")):(J.removeAttribute("href"),J.removeAttribute("rel"),J.removeAttribute("target"))}};
_.RN=function(J,c){var m=yx;if(D7())eZG(J,function(){var P=_.s$.apply(0,arguments);qs(m,function(){c.apply(null,_.L6(P))})});
else{var b=_.vO.getInstance(),x=Yy(c);pyG(function(){x.value=c});
_.uN(function(){var P={},p=_.Oe(b,(P[J]=function(){var t=_.s$.apply(0,arguments);qs(m,function(){x.value.apply(x,_.L6(t))})},P));
return function(){var t={};_.AI(b,(t[J]="",t),p)}})}};
_.oN=function(J,c){return jAo(J,!1,c)};
_.Q5=function(J,c){return jAo(J,!0,c)};
jAo=function(J,c,m){return D7()?FPr(J,c,m):lGm(J,c,m)};
lGm=function(J,c,m){return f3(function(){return FPr(J,c,m)})};
FPr=function(J,c,m){var b=VEt(function(x){b.__value&&b.__value===x||(b.__count=b.__count?b.__count+1:1);b.value=x;var P=function(){var p=PF(null);try{return m==null?void 0:m(x)}finally{PF(p)}}();
return function(){P==null||P();b.value=null}});
J!==_.eg&&(b.__expectedTagName=J);b.__optional=c;b.isIdom=!D7();return b};
ydD=function(J){var c=yx,m=r_;return{getFn:function(){return function(b){c.isDisposed||zL(function(){return ID(function(){return J(b)})},m)!==!0&&b.stopPropagation()}}}};
jg=function(J){if(typeof J.children==="function")return J.children(),null;J=_.M(J.children);for(var c=J.next();!c.done;c=J.next())c=c.value,c();return null};
BpG=function(J){var c;return((c=J.prototype)==null?void 0:c.render)===void 0};
gVe=function(J){J=J.items.map(J.children);return J.length>0&&typeof J[0]==="string"?J.join(""):J};
cPD=function(J,c,m){m=m===void 0?!1:m;zL(function(){return JPu(J,c,m)})};
JPu=function(J,c,m){m=((m===void 0?0:m)?mdm:bq2)(J,function(){Fc(c)});
return m===null?J:m};
Fc=function(J){if(J!==void 0&&J!==null)if(J instanceof ta)for(var c=$B;GL()!=null&&O4R in GL()&&c.contains(GL());)Os();else if(Array.isArray(J))for(c=_.M(J),J=c.next();!J.done;J=c.next())Fc(J.value);else if(J instanceof P0||"function"==typeof _.AG&&J instanceof _.AG)BF(J.toString());else if(_.bN(J)){if(GL()!==J){var m,b;c=(b=(m=r_)==null?void 0:m.name)!=null?b:"unknown";throw Error("dc`"+J.tagName+"`"+c);}Os()}else if(b4G(J)||J instanceof z$||mzD(J))for(c=Vgf(J),c=Array.from(c.childNodes),c=_.M(c),
J=c.next();!J.done;J=c.next())$B.appendChild(J.value),Os();else if(C1(J)&&(J=J.toString()),m=typeof J,m==="boolean"||m==="number"||m==="string")BF(J);else if(typeof J==="function"){c=$B;var x=GL();x&&(x._isSignalTextNode||x._isSafeOrSanitizedHtmlNode)||Z4Q(c,x,J);Os()}else if(J.type===gVe)Fc(J.type(Object.assign({},J.props,{children:J.children[0]})));else{ky.beforeVisit(J);if(typeof J.type==="string"){a:{J.__open||h2o(J.type,J.props.idomKey);x=$B;for(c in J.props)if(J.props[c]!==xde){var P=J.props[c];
m=jA;m.push(c);m.push(P)}c=_.bi.attributes;c=c===void 0?l3:c;P=$B;m=d_(P);AUt(P,m,c);XOD(x,J.props,!0);if((J.props.skip||J.props.skipchildren)&&$B.hasChildNodes())RD();else{if(J.type==="style"&&H4G(J.children)===null){RD();c=void 0;break a}Fc(J.children)}dXu();J.__open&&(J.__open=!1);lC2(x,J.props);c=x}return c}if(J.type===_.cG)Fc(J.children);else if(!VpR(J)){c=J;try{PBo(c)}catch(p){J=p,(P=_.bi.handleError)==null||P.call.apply(P,[_.bi].concat(_.L6(_.Us(J,(x=c.type)==null?void 0:x.TAG_NAME))))}c.__open&&
(dXu(),c.__open=!1)}}};
MpR=function(J,c){var m;BpG(J)?m=new iN(c,J):m=new J(c);m.JSC$8225___type=J;m.__updateContext={nextState:m.state,isForced:!1};return m};
PBo=function(J){var c=J.type,m=c.TAG_NAME;if(c===jg)J.props.children=J.children,c(J.props);else{J.children.length>0&&(J.props.children=J.children);var b;(b=J.props).idomKey||(b.idomKey=c);if(m){var x=h2o(m,J.props.idomKey);J.__open=!0;var P=x.__instance}P||(P=MpR(c,J.props),P.props=null,x&&(x.__instance=P,P.el=x));var p;m=((p=P.__updateContext)!=null?p:{nextState:P.state,isForced:!1}).nextState;P.__updateContext=void 0;c.getDerivedStateFromProps&&(m=c.getDerivedStateFromProps(J.props,m));P.props=
J.props;P.state=m;p=function(){var t=P;ky.beforeRender(t);var I=t.render(t.props);ky.afterRender(t,I);I?(t.props.idomKey&&(I.props.idomKey=t.props.idomKey),t=I):t=void 0;if(I=t)if(I.__open=J.__open,t=Fc(I),J.__open=I.__open,!c.TAG_NAME)if(t)c.TAG_NAME=t.tagName.toLowerCase(),t.__instance=P,P.el=t;else{var a;if((a=P.hooks)==null?0:a.length){var k;(k=_.bi.handleError)==null||k.call.apply(k,[_.bi].concat(_.L6(_.Us(Error("jd")))))}}P.didPatch();ky.didPatch(P)};
(m=P.functionComponent)?JUu(m,p,P.props.debugInstance):p()}};
VpR=function(J){var c=J.type;if(!BpG(c)||c===jg||c.componentType===L2)return!1;J.props.children=J.children.length>1?J.children:J.children[0];var m,b=(m=J.props.idomKey)!=null?m:J.type,x;if(GL()&&((x=GL()[M3])==null?void 0:x.key)===b){var P=GL(),p=P[M3];if(!p)throw Error("cc`"+P.tagName);var t;(t=p.updateSignalsFromIdomProps)==null||t.call(p,J.props);pPJ(p);return!0}if(NsD.has(c.name))throw t=c.name,c=(p=(P=r_)==null?void 0:P.name)!=null?p:"unknown",Error("bc`"+t+"`"+c);hwm(J.type,J.props,J.children);
J.props.renderedFromIdom=!0;(t=JUu(J.type,function(){return WC3(J.type,J.props)},J.props.debugInstance))&&tpD(t);
return!0};
ILf=function(J){for(var c=0;c<N3(J).length;c++)Os()};
pPJ=function(J){var c=K$J();if(c)ILf(c);else for(var m=0;m<J.numNodes;m++)(c=K$J())?ILf(c):Os()};
K$J=function(){var J;return(J=GL()[M3])==null?void 0:J.sourceDynamicRange};
tpD=function(J){J=BoG(J);J=Array.isArray(J)?J:[J];J=_.M(J);for(var c=J.next();!c.done;c=J.next())$B.insertBefore(c.value,GL()),Os()};
CBo=function(J){var c=ucR(),m=f3(function(){return{value:typeof J==="function"?J():J}});
return[m.value,function(b){if(HG!==null){var x;(x=_.bi.handleError)==null||x.call.apply(x,[_.bi].concat(_.L6(_.Us(Error("kd")))))}m.value=typeof b==="function"?b(m.value):b;c.__updateContext={nextState:c.state,isForced:!0};b=_.Ba(c.effectContext);x=mv(!1);try{if(c.el){var P,p={},t=(p.props=c.props,p.type=c.JSC$8225___type,p.children=(P=c.props.children)!=null?P:[],p[Ja]=!0,p);try{cPD(c.el,t,!0)}catch(k){var I,a;(a=_.bi.handleError)==null||a.call.apply(a,[_.bi].concat(_.L6(_.Us(k,(I=c.JSC$8225___type)==
null?void 0:I.TAG_NAME))))}}}finally{mv(x),_.Ba(b)}}]};
y5=function(J,c){var m=yx,b=function(x){qs(m,function(){c(x)})};
window.addEventListener(J,b,void 0);_.f2(function(){window.removeEventListener(J,b,void 0)})};
_.gv=function(J,c){var m=yx;_.uN(function(){var b,x=(b=c.observer)!=null?b:_.BG().resolve(BO);if(b=J.value){var P=aLo(b),p=[];c.showOption&&p.push(x.observe(b,function(){qs(m,function(){c.visibilityCallback(!0)})},c.showOption));
c.hideOption&&p.push(x.observe(b,function(){qs(m,function(){c.visibilityCallback(!1)})},c.hideOption));
c.prescanOption&&c.prescanCallback&&p.push(x.observe(b,function(){qs(m,function(){c.prescanCallback()})},c.prescanOption));
var t;P.visibilityMonitorKeys=((t=P.visibilityMonitorKeys)!=null?t:[]).concat(p)}})};
aLo=function(J){var c;return(c=J.polymerController)!=null?c:J};
_.J5=function(J){J.componentType=L2};
nxf=function(J,c){var m=kHT;return _.C(_.cG,null,ld(_.bi.enableLazyTsx,function(){return _.C(Hqe,{id:m,value:J,children:c})},function(){var b=iqG(m,J);
mY(b);b=_.Ba(b);try{return c()}finally{_.Ba(b)}}))};
Hqe=function(J){var c=J.children;J=iqG(J.id,J.value);mY(J);J=_.Ba(J);try{return _.C(_.cG,null,K3(c()))}finally{_.Ba(J)}};
iqG=function(J,c){return Object.assign(Object.create(TsG),{id:J,contextValue:c})};
wP3=function(J){var c,m=yx;_.Z7(function(){var b=_.Ba(m),x=mv(!c);try{if(c)cPD(c,J.children(),!0);else if(c=K3(J.children()),!(c instanceof Element))throw Error("ld");}finally{mv(x),_.Ba(b)}});
return c};
_.rPe=function(J,c){var m;c=YB(function(){var b=mv(!0);try{m=N3(J())}finally{mv(b)}},c===void 0?!1:c);
return[m,c]};
L$t=function(J){J=J.buf.charCodeAt(J.pos++);return sOu[J]};
cy=function(J){var c=0,m=0;do{var b=L$t(J);c|=(b&31)<<m;m+=5}while(b&32);return c<0?c+4294967296:c};
zpq=function(J,c,m){Ddo(J,c);J[c][W$J].unshift(m)};
Ddo=function(J,c){if(!J[c]||!J[c][W$J]){var m=J[c],b=m?[m]:[];J[c]=function(){for(var x=_.M(b),P=x.next();!P.done;P=x.next())P.value.apply(this,arguments)};
J[c][W$J]=b}};
uGD=function(J){if(!J)return[];var c=[];J=_.M(J);for(var m=J.next();!m.done;m=J.next())m=m.value,Array.isArray(m)?c.push.apply(c,_.L6(uGD(m))):c.push(m);return c};
_.ba=function(J,c){if(J&&fLu.test(J)||J==="//")return J;if(YiJ===void 0){YiJ=!1;try{var m=new URL("b","http://a");m.pathname="c%20d";YiJ=m.href==="http://a/c%20d"}catch(b){}}c||(c=document.baseURI||window.location.href);if(YiJ)try{return(new URL(J,c)).href}catch(b){return J}me||(me=document.implementation.createHTMLDocument("temp"),me.base=me.createElement("base"),me.head.appendChild(me.base),me.anchor=me.createElement("a"),me.body.appendChild(me.anchor));me.base.href=c;me.anchor.href=J;return me.anchor.href||
J};
Zqo=function(J,c){return J.replace(XPq,function(m,b,x,P){return b+"'"+_.ba(x.replace(/["']/g,""),c)+"'"+P})};
qiQ=function(J){return J.substring(0,J.lastIndexOf("/")+1)};
hpo=function(){UdR=!1;for(var J=xA.length,c=0;c<J;c++){var m=xA[c];if(m)try{m()}catch(b){setTimeout(function(){throw b;})}}xA.splice(0,J);
Sie+=J};
_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry=function(J){console.log("["+J.is+"]: registered")};
$dt=function(J){ddo.push(J)};
V8=function(J){return GHG[J]||(GHG[J]=J.indexOf("-")<0?J:J.replace(Exq,function(c){return c[1].toUpperCase()}))};
Py=function(J){return GHG[J]||(GHG[J]=J.replace(vxQ,"-$1").toLowerCase())};
OqQ=function(J,c){var m=c.parentInfo&&OqQ(J,c.parentInfo);if(m)for(J=m.firstChild,m=0;J;J=J.nextSibling){if(c.parentIndex===m++)return J}else return J};
APt=function(J,c){J=J._methodHost||J;return function(m){if(J[c])J[c](m,m.detail);else console.warn("listener method `"+c+"` not defined")}};
M8=function(J){return J.indexOf(".")>=0};
pN=function(J){var c=J.indexOf(".");return c===-1?J:J.slice(0,c)};
Rp2=function(J,c){return J.indexOf(c+".")===0};
N8=function(J,c){return c.indexOf(J+".")===0};
t5=function(J,c,m){return c+m.slice(J.length)};
oxe=function(J,c){return J===c||Rp2(J,c)||N8(J,c)};
I3=function(J){if(Array.isArray(J)){for(var c=[],m=0;m<J.length;m++)for(var b=J[m].toString().split("."),x=0;x<b.length;x++)c.push(b[x]);return c.join(".")}return J};
QOQ=function(J){return Array.isArray(J)?I3(J).split("."):J.toString().split(".")};
KN=function(J,c,m){c=QOQ(c);for(var b=0;b<c.length;b++){if(!J)return;J=J[c[b]]}m&&(m.path=c.join("."));return J};
epr=function(J,c,m){var b=QOQ(c),x=b[b.length-1];if(b.length>1){for(c=0;c<b.length-1;c++)if(J=J[b[c]],!J)return;J[x]=m}else J[c]=m;return b.join(".")};
jOq=function(J,c,m){var b=J[c];if(!b)b=J[c]={};else if(!J.hasOwnProperty(c)&&(b=J[c]=Object.create(J[c]),m))for(var x in b)for(J=b[x],c=b[x]=Array(J.length),m=0;m<J.length;m++)c[m]=J[m];return b};
a3=function(J,c,m,b,x,P){if(c){var p=!1,t=CN++,I;for(I in m){var a=x?pN(I):I;if(a=c[a])for(var k=0,H=a.length,T=void 0;k<H&&(T=a[k]);k++)T.info&&T.info.lastRun===t||x&&!F$Q(I,T.trigger)||(T.info&&(T.info.lastRun=t),T.fn(J,I,m,b,T.info,x,P),p=!0)}return p}return!1};
F$Q=function(J,c){if(c){var m=c.name;return m==J||!(!c.structured||!Rp2(m,J))||!(!c.wildcard||!N8(m,J))}return!0};
lLe=function(J,c,m,b,x){c=typeof x.method==="string"?J[x.method]:x.method;m=x.property;c?c.call(J,J.__data[m],b[m]):x.dynamicFn||console.warn("observer method `"+x.method+"` not defined")};
yPJ=function(J,c,m,b){m={value:m,queueProperty:!0};b&&(m.path=b);(0,_.kA)(J).dispatchEvent(new CustomEvent(c,{detail:m}))};
BsG=function(J,c,m,b,x,P){P=(b=(P?pN(c):c)!=c?c:null)?KN(J,b):J.__data[c];b&&P===void 0&&(P=m[c]);yPJ(J,x.eventName,P,b)};
gxG=function(J,c,m,b,x){m=J.__data[c];Hy&&(m=Hy(m,x.attrName,"attribute",J));J._propertyToAttribute(c,x.attrName,m)};
cTt=function(J){var c=J.constructor.__orderedComputedDeps;if(!c){c=new Map;for(var m=J.__computeEffects,b=JTQ(J),x=b.counts,P=b.ready,p=b.total;b=P.shift();)c.set(b,c.size),(b=m[b])&&b.forEach(function(t){t=t.info.methodInfo;--p;--x[t]===0&&P.push(t)});
p!==0&&console.warn("Computed graph for "+J.localName+" incomplete; circular?");J.constructor.__orderedComputedDeps=c}return c};
JTQ=function(J){var c=J.__computeInfo,m={};J=J.__computeEffects;var b=[],x=0,P;for(P in c){var p=c[P];x+=m[P]=p.args.filter(function(I){return!I.literal}).length+(p.dynamicFn?1:0)}for(var t in J)c[t]||b.push(t);
return{counts:m,ready:b,total:x}};
bKr=function(J,c,m,b,x){c=mxJ(J,c,m,b,x);if(c===ia)return!1;x=x.methodInfo;if(J.__dataHasAccessor&&J.__dataHasAccessor[x])return J._setPendingProperty(x,c,!0);J[x]=c;return!1};
P$R=function(J,c,m,b,x,P,p){m.bindings=m.bindings||[];b={kind:b,target:x,parts:P,literal:p,isCompound:P.length!==1};m.bindings.push(b);b.target&&b.kind!="attribute"&&b.kind!="text"&&!b.isCompound&&b.parts[0].mode==="{"&&(m=b.parts[0],P=m.negate,b.listenerEvent=m.event||Py(x)+"-changed",b.listenerNegate=P);x=c.nodeInfoList.length;for(m=0;m<b.parts.length;m++){var t=b.parts[m];t.compoundIndex=m;P=J;p=c;var I=b,a=t,k=x;if(!a.literal)if(I.kind==="attribute"&&I.target[0]==="-")console.warn("Cannot set attribute "+
I.target+' because "-" is not a valid attribute starting character');else for(t=a.dependencies,I={index:k,binding:I,part:a,evaluator:P},a=0;a<t.length;a++)k=t[a],typeof k=="string"&&(k=xxJ(k),k.wildcard=!0),P._addTemplatePropertyEffect(p,k.rootProperty,{fn:V8o,info:I,trigger:k})}};
V8o=function(J,c,m,b,x,P,p){p=p[x.index];var t=x.binding,I=x.part;P&&I.source&&c.length>I.source.length&&t.kind=="property"&&!t.isCompound&&p.__isPropertyEffectsClient&&p.__dataHasAccessor&&p.__dataHasAccessor[t.target]?(m=m[c],c=t5(I.source,t.target,c),p._setPendingPropertyOrPath(c,m,!1,!0)&&J._enqueueClient(p)):(c=x.evaluator._evaluateBinding(J,I,c,m,b,P),c!==ia&&(t.isCompound&&(m=p.__dataCompoundStorage[t.target],m[I.compoundIndex]=c,c=m.join("")),t.kind==="attribute"||t.target!=="textContent"&&
(t.target!=="value"||p.localName!=="input"&&p.localName!=="textarea")||(c=c==void 0?"":c),I=c,Hy&&(I=Hy(I,t.target,t.kind,p)),t.kind=="attribute"?J._valueToNodeAttribute(p,I,t.target):(t=t.target,p.__isPropertyEffectsClient&&p.__dataHasAccessor&&p.__dataHasAccessor[t]?p.__readOnly&&p.__readOnly[t]||p._setPendingProperty(t,I)&&J._enqueueClient(p):J._setUnmanagedPropertyToNode(p,t,I))))};
M8m=function(J,c,m){if(m.listenerEvent){var b=m.parts[0];J.addEventListener(m.listenerEvent,function(x){var P=m.target,p=b.source,t=b.negate,I=x.detail,a=I&&I.path;a?(p=t5(P,p,a),x=I&&I.value):x=x.currentTarget[P];c.__readOnly&&c.__readOnly[p]||!c._setPendingPropertyOrPath(p,t?!x:x,!0,!!a)||I&&I.queueProperty||c._invalidateProperties()})}};
pgR=function(J,c,m,b,x,P){P=c.static||P&&(typeof P!=="object"||P[c.methodName]);x={methodName:c.methodName,args:c.args,methodInfo:x,dynamicFn:P};for(var p=0,t=void 0;p<c.args.length&&(t=c.args[p]);p++)t.literal||J._addPropertyEffect(t.rootProperty,m,{fn:b,info:x,trigger:t});P&&J._addPropertyEffect(c.methodName,m,{fn:b,info:x});return x};
mxJ=function(J,c,m,b,x){b=J._methodHost||J;var P=b[x.methodName];if(P)return J=J._marshalArgs(x.args,c,m),J===ia?ia:P.apply(b,J);x.dynamicFn||console.warn("method `"+x.methodName+"` not defined")};
Nio=function(J){for(var c="",m=0;m<J.length;m++)c+=J[m].literal||"";return c};
Kfu=function(J){if(J=J.match(/([^\s]+?)\(([\s\S]*)\)/)){var c={methodName:J[1],static:!0,args:t8e};return J[2].trim()?IID(J[2].replace(/\\,/g,"&comma;").split(","),c):c}return null};
IID=function(J,c){c.args=J.map(function(m){m=xxJ(m);m.literal||(c.static=!1);return m},this);
return c};
xxJ=function(J){J=J.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1");var c={name:J,value:"",literal:!1},m=J[0];m==="-"&&(m=J[1]);m>="0"&&m<="9"&&(m="#");switch(m){case "'":case '"':c.value=J.slice(1,-1);c.literal=!0;break;case "#":c.value=Number(J),c.literal=!0}c.literal||(c.rootProperty=pN(J),c.structured=M8(J),c.structured&&(c.wildcard=J.slice(-2)==".*",c.wildcard&&(c.name=J.slice(0,-2))));return c};
C$m=function(J,c,m){J=KN(J,m);J===void 0&&(J=c[m]);return J};
k9q=function(J,c,m,b){b={indexSplices:b};nN&&!J._overrideLegacyUndefined&&(c.splices=b);J.notifyPath(m+".splices",b);J.notifyPath(m+".length",c.length);nN&&!J._overrideLegacyUndefined&&(b.indexSplices=[])};
Tk=function(J,c,m,b,x,P){k9q(J,c,m,[{index:b,addedCount:x,removed:P,object:c,type:"splice"}])};
HKq=function(J){J=Zqo((J.body?J.body:J).textContent,J.baseURI);var c=document.createElement("style");c.textContent=J;return c};
nMm=function(J){J=J.trim().split(/\s+/);for(var c=[],m=0;m<J.length;m++)c.push.apply(c,_.L6(iK2(J[m])));return c};
iK2=function(J){var c=wP.import(J);if(!c)return console.warn("Could not find style data in module named",J),[];if(c._styles===void 0){J=[];J.push.apply(J,_.L6(_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(c)));var m=c.querySelector("template");m&&J.push.apply(J,_.L6(Tit(m,c.assetpath)));c._styles=J}return c._styles};
Tit=function(J,c){if(!J._styles){for(var m=[],b=J.content.querySelectorAll("style"),x=0;x<b.length;x++){var P=b[x],p=P.getAttribute("include");p&&m.push.apply(m,_.L6(nMm(p).filter(function(t,I,a){return a.indexOf(t)===I})));
c&&(P.textContent=Zqo(P.textContent,c));m.push(P)}J._styles=m}return J._styles};
wgu=function(J){return(J=wP.import(J))?_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(J):[]};
_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(J){var c=[];J=J.querySelectorAll("link[rel=import][type~=css]");for(var m=0;m<J.length;m++){var b=J[m];if(b.import){var x=b.import;if((b=b.hasAttribute("shady-unscoped"))&&!x._unscopedStyle){var P=HKq(x);P.setAttribute("shady-unscoped","");x._unscopedStyle=P}else x._style||(x._style=HKq(x));c.push(b?x._unscopedStyle:x._style)}}return c};
stQ=function(J){J=J.trim().split(/\s+/);for(var c="",m=0;m<J.length;m++)c+=rTJ(J[m]);return c};
rTJ=function(J){var c=wP.import(J);if(c&&c._cssText===void 0){var m=_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(c),b=c.querySelector("template");b&&(m+=LfQ(b,c.assetpath));c._cssText=m||null}c||console.warn("Could not find style data in module named",J);return c&&c._cssText||""};
LfQ=function(J,c){var m="";J=Tit(J,c);for(c=0;c<J.length;c++){var b=J[c];b.parentNode&&b.parentNode.removeChild(b);m+=b.textContent}return m};
_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(J){var c="";J=_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(J);for(var m=0;m<J.length;m++)c+=J[m].textContent;return c};
rP=function(J,c){return{index:J,removed:[],addedCount:c}};
Wfo=function(J,c,m,b){var x=0,P=0,p=0,t=0,I=Math.min(c-x,b-P);if(x==0&&P==0)a:{for(p=0;p<I;p++)if(J[p]!==m[p])break a;p=I}if(c==J.length&&b==m.length){t=J.length;for(var a=m.length,k=0;k<I-p&&Dxo(J[--t],m[--a]);)k++;t=k}x+=p;P+=p;c-=t;b-=t;if(c-x==0&&b-P==0)return[];if(x==c){for(c=rP(x,0);P<b;)c.removed.push(m[P++]);return[c]}if(P==b)return[rP(x,c-x)];I=x;p=P;b=b-p+1;t=c-I+1;c=Array(b);for(a=0;a<b;a++)c[a]=Array(t),c[a][0]=a;for(a=0;a<t;a++)c[0][a]=a;for(a=1;a<b;a++)for(k=1;k<t;k++)if(J[I+k-1]===
m[p+a-1])c[a][k]=c[a-1][k-1];else{var H=c[a-1][k]+1,T=c[a][k-1]+1;c[a][k]=H<T?H:T}I=c.length-1;p=c[0].length-1;b=c[I][p];for(J=[];I>0||p>0;)I==0?(J.push(2),p--):p==0?(J.push(3),I--):(t=c[I-1][p-1],a=c[I-1][p],k=c[I][p-1],H=a<k?a<t?a:t:k<t?k:t,H==t?(t==b?J.push(0):(J.push(1),b=t),I--,p--):H==a?(J.push(3),I--,b=a):(J.push(2),p--,b=k));J.reverse();c=void 0;I=[];for(p=0;p<J.length;p++)switch(J[p]){case 0:c&&(I.push(c),c=void 0);x++;P++;break;case 1:c||(c=rP(x,0));c.addedCount++;x++;c.removed.push(m[P]);
P++;break;case 2:c||(c=rP(x,0));c.addedCount++;x++;break;case 3:c||(c=rP(x,0)),c.removed.push(m[P]),P++}c&&I.push(c);return I};
z1G=function(J,c){return Wfo(J,J.length,c,c.length)};
Dxo=function(J,c){return J===c};
fIG=function(J){if(J instanceof uUf)return J.value;throw Error("Cd`"+J);};
Yc3=function(J,c){for(var m in c)m===null?J.style.removeProperty(m):J.style.setProperty(m,c[m])};
Xge=function(J,c){return(J=window.getComputedStyle(J).getPropertyValue(c))?J.trim():""};
ScG=function(J){requestAnimationFrame(function(){ZKr?ZKr(J):(qc2||(qc2=new Promise(function(c){UxJ=c}),document.readyState==="complete"?UxJ():document.addEventListener("readystatechange",function(){document.readyState==="complete"&&UxJ()})),qc2.then(function(){J&&J()}))})};
$xe=function(J){h1Q=J&&J.shimcssproperties?!1:dxf||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))};
ATr=function(J){if(!(G9m.indexOf(J)>-1)&&J!=="touchend"&&EMu&&vMo&&OKG)return{passive:!0}};
e1R=function(J){for(var c=R1r?["click"]:G9m,m=0,b;m<c.length;m++)b=c[m],J?(oMe.length=0,document.addEventListener(b,QtD,!0)):document.removeEventListener(b,QtD,!0)};
s4=function(J){var c=J.type;return G9m.indexOf(c)>-1?c==="mousemove"?(c=J.buttons===void 0?1:J.buttons,J instanceof window.MouseEvent&&!jtf&&(c=FfR[J.which]||0),!!(c&1)):(J.button===void 0?0:J.button)===0:!1};
lID=function(J){if(J.type==="click"){if(J.detail===0)return!0;var c=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(J);if(!c.nodeType||c.nodeType!==Node.ELEMENT_NODE)return!0;c=c.getBoundingClientRect();var m=J.pageX;J=J.pageY;return!(m>=c.left&&m<=c.right&&J>=c.top&&J<=c.bottom)}return!1};
yTt=function(J,c,m){J.movefn=c;J.upfn=m;document.addEventListener("mousemove",c);document.addEventListener("mouseup",m)};
LN=function(J){document.removeEventListener("mousemove",J.movefn);document.removeEventListener("mouseup",J.upfn);J.movefn=null;J.upfn=null};
BiT=function(J,c){for(var m=document.elementFromPoint(J,c),b=m;b&&b.shadowRoot&&!window.ShadyDOM;){var x=b;b=b.shadowRoot.elementFromPoint(J,c);if(x===b)break;b&&(m=b)}return m};
_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(J){var c=gMQ(J);return c.length>0?c[0]:J.target};
_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(J){var c=J.type,m=J.currentTarget.__polymerGestures;if(m&&(m=m[c])){if(!J.__polymerGesturesHandled&&(J.__polymerGesturesHandled={},c.slice(0,5)==="touch")){var b=J.changedTouches[0];c==="touchstart"&&J.touches.length===1&&(J3q=b.identifier);if(J3q!==b.identifier)return;EMu||(c==="touchstart"||c==="touchmove")&&_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(J)}b=
J.__polymerGesturesHandled;if(!b.skip){for(var x=0,P;x<D1.length;x++)P=D1[x],m[P.name]&&!b[P.name]&&P.flow&&P.flow.start.indexOf(J.type)>-1&&P.reset&&P.reset();for(x=0;x<D1.length;x++)P=D1[x],m[P.name]&&!b[P.name]&&(b[P.name]=!0,P[c](J))}}};
_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(J){var c=J.changedTouches[0],m=J.type;if(m==="touchstart")c3e=c.clientX,mJD=c.clientY,byr=!1;else if(m==="touchmove"&&!byr){byr=!0;m="auto";for(var b=gMQ(J),x=0,P;x<b.length;x++)if(P=b[x],P.__polymerGesturesTouchAction){m=P.__polymerGesturesTouchAction;break}b=!1;x=Math.abs(c3e-c.clientX);c=Math.abs(mJD-c.clientY);J.cancelable&&(m==="none"?b=!0:m==="pan-x"?b=c>x:m==="pan-y"&&(b=x>c));b?J.preventDefault():
Wy("track")}};
ua=function(J,c,m){return zk[c]?(_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(J,c,m),!0):!1};
fN=function(J,c,m){return zk[c]?(_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(J,c,m),!0):!1};
_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(J,c,m){var b=zk[c],x=b.deps,P=b.name,p=J.__polymerGestures;p||(J.__polymerGestures=p={});for(var t=0,I,a;t<x.length;t++)I=x[t],R1r&&G9m.indexOf(I)>-1&&I!=="click"||((a=p[I])||(p[I]=a={_count:0}),a._count===0&&J.addEventListener(I,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,ATr(I)),a[P]=(a[P]||0)+1,a._count=(a._count||0)+1);J.addEventListener(c,m);b.touchAction&&_.YA(J,b.touchAction)};
_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(J,c,m){var b=zk[c],x=b.deps;b=b.name;var P=J.__polymerGestures;if(P)for(var p=0,t,I;p<x.length;p++)t=x[p],(I=P[t])&&I[b]&&(I[b]=(I[b]||1)-1,I._count=(I._count||1)-1,I._count===0&&J.removeEventListener(t,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,ATr(t)));J.removeEventListener(c,m)};
xJD=function(J){D1.push(J);for(var c=0;c<J.emits.length;c++)zk[J.emits[c]]=J};
_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(J){for(var c=0,m;c<D1.length;c++){m=D1[c];for(var b=0,x;b<m.emits.length;b++)if(x=m.emits[b],x===J)return m}return null};
_.YA=function(J,c){EMu&&J instanceof HTMLElement&&X6.run(function(){J.style.touchAction=c});
J.__polymerGesturesTouchAction=c};
_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(J,c,m){c=new Event(c,{bubbles:!0,cancelable:!0,composed:!0});c.detail=m;(0,_.kA)(J).dispatchEvent(c);c.defaultPrevented&&(J=m.preventer||m.sourceEvent)&&J.preventDefault&&J.preventDefault()};
Wy=function(J){J=_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(J);J.info&&(J.info.prevent=!0)};
Z1=function(J,c,m,b){c&&_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(c,J,{x:m.clientX,y:m.clientY,sourceEvent:m,preventer:b,prevent:function(x){return Wy(x)}})};
VQr=function(J,c,m){if(J.prevent)return!1;if(J.started)return!0;m=Math.abs(J.y-m);return Math.abs(J.x-c)>=5||m>=5};
PDf=function(J,c,m){if(c){var b=J.moves[J.moves.length-2],x=J.moves[J.moves.length-1],P=x.x-J.x,p=x.y-J.y,t=0;if(b){var I=x.x-b.x;t=x.y-b.y}_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(c,"track",{state:J.state,x:m.clientX,y:m.clientY,dx:P,dy:p,ddx:I,ddy:t,sourceEvent:m,hover:function(){return BiT(m.clientX,m.clientY)}})}};
p8m=function(J,c,m){var b=Math.abs(c.clientX-J.x),x=Math.abs(c.clientY-J.y),P=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(m||c);!P||MQm[P.localName]&&P.hasAttribute("disabled")||!(isNaN(b)||isNaN(x)||b<=25&&x<=25||lID(c))||J.prevent||_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(P,"tap",{x:c.clientX,y:c.clientY,sourceEvent:c,preventer:m})};
NJq=function(J,c,m,b,x){var P;x&&(P=typeof m==="object"&&m!==null)&&(b=J.__dataTemp[c]);b=b!==m&&(b===b||m===m);P&&b&&(J.__dataTemp[c]=m);return b};
IiD=function(){if(q8&&!U4){if(!tQq){tQq=!0;var J=document.createElement("style");J.textContent="dom-bind,dom-if,dom-repeat{display:none;}";document.head.appendChild(J)}return!0}return!1};
CDT=function(){return Kx2};
aiu=function(J,c){Kx2=J;Object.setPrototypeOf(J,c.prototype);new c;Kx2=null};
kUq=function(J,c){for(var m=0;m<c.length;m++){var b=c[m];if(!!J!=!!b.__hideTemplateChildren__)if(b.nodeType===Node.TEXT_NODE)J?(b.__polymerTextContent__=b.textContent,b.textContent=""):b.textContent=b.__polymerTextContent__;else if(b.localName==="slot")if(J)b.__polymerReplaced__=document.createComment("hidden-slot"),(0,_.kA)((0,_.kA)(b).parentNode).replaceChild(b.__polymerReplaced__,b);else{var x=b.__polymerReplaced__;x&&(0,_.kA)((0,_.kA)(x).parentNode).replaceChild(b,x)}else b.style&&(J?(b.__polymerDisplay__=
b.style.display,b.style.display="none"):b.style.display=b.__polymerDisplay__);b.__hideTemplateChildren__=J;b._showHideChildren&&b._showHideChildren(J)}};
Hy2=function(J){return(J=J.__dataHost)&&J._methodHost||J};
TJD=function(J,c,m){var b=m.mutableData?iyf:SE;h5.mixin&&(b=h5.mixin(b));var x=function(){return b.apply(this,arguments)||this};
_.D(x,b);x.prototype.__templatizeOptions=m;x.prototype._bindTemplate(J);nRG(x,J,c,m);return x};
DJm=function(J,c,m,b){var x=m.forwardHostProp;if(x&&c.hasHostProps){var P=J.localName=="template",p=c.templatizeTemplateClass;if(!p){if(P){var t=m.mutableData?w8R:r3r;p=function(){return t.apply(this,arguments)||this};
_.D(p,t);p=c.templatizeTemplateClass=p}else{var I=J.constructor;p=function(){return I.apply(this,arguments)||this};
_.D(p,I);p=c.templatizeTemplateClass=p}var a=c.hostProps,k;for(k in a)p.prototype._addPropertyEffect("_host_"+k,p.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:sgm(x)}),p.prototype._createNotifyingProperty("_host_"+k);dP&&b&&Lxf(c,m,b)}J.__dataProto&&Object.assign(J.__data,J.__dataProto);if(P)aiu(J,p),J.__dataTemp={},J.__dataPending=null,J.__dataOld=null,J._enableProperties();else{Object.setPrototypeOf(J,p.prototype);c=c.hostProps;for(var H in c)H="_host_"+H,H in J&&(c=J[H],delete J[H],J.__data[H]=
c)}}};
sgm=function(J){return function(c,m,b){J.call(c.__templatizeOwner,m.substring(6),b[m])}};
nRG=function(J,c,m,b){var x=m.hostProps||{},P;for(P in b.instanceProps){delete x[P];var p=b.notifyInstanceProp;p&&J.prototype._addPropertyEffect(P,J.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:Wxe(p)})}if(b.forwardHostProp&&c.__dataHost)for(var t in x)m.hasHostProps||(m.hasHostProps=!0),J.prototype._addPropertyEffect(t,J.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:zhq()})};
Wxe=function(J){return function(c,m,b){J.call(c.__templatizeOwner,c,m,b[m])}};
zhq=function(){return function(J,c,m){J.__dataHost._setPendingPropertyOrPath("_host_"+c,m[c],!0,!0)}};
h5=function(J,c,m){if($A&&!Hy2(J))throw Error("Id");m=m||{};if(J.__templatizeOwner)throw Error("Jd");J.__templatizeOwner=c;var b=(c?c.constructor:SE)._parseTemplate(J),x=b.templatizeInstanceClass;x||(x=TJD(J,b,m),b.templatizeInstanceClass=x);var P=Hy2(J);DJm(J,b,m,P);m=function(){return x.apply(this,arguments)||this};
_.D(m,x);m.prototype._methodHost=P;m.prototype.__dataHost=J;m.prototype.__templatizeOwner=c;m.prototype.__hostProps=b.hostProps;return m};
Lxf=function(J,c,m){m=m.constructor._properties;J=J.propertyEffects;c=c.instanceProps;for(var b in J)if(!(m[b]||c&&c[b]))for(var x=J[b],P=0;P<x.length;P++){var p=x[P].info.part;if(!p.signature||!p.signature.static){console.warn("Property '"+b+"' used in template but not declared in 'properties'; attribute will not be observed.");break}}};
uWT=function(J,c){for(var m;c;)if(m=c.__dataHost?c:c.__templatizeInstance)if(m.__dataHost!=J)c=m.__dataHost;else return m;else c=(0,_.kA)(c).parentNode;return null};
Gk=function(J){return J.localName==="slot"};
fiQ=function(){for(var J=E4.prototype,c="cloneNode appendChild insertBefore removeChild replaceChild setAttribute removeAttribute querySelector querySelectorAll attachShadow".split(" "),m={},b=0;b<c.length;m={method$jscomp$30:void 0},b++)m.method$jscomp$30=c[b],J[m.method$jscomp$30]=function(x){return function(){return this.node[x.method$jscomp$30].apply(this.node,arguments)}}(m)};
YQJ=function(J,c){for(var m={},b=0;b<c.length;m={name$jscomp$380:void 0},b++)m.name$jscomp$380=c[b],Object.defineProperty(J,m.name$jscomp$380,{get:function(x){return function(){return this.node[x.name$jscomp$380]}}(m),
configurable:!0})};
X8t=function(){for(var J=E4.prototype,c=["textContent","innerHTML","className"],m={},b=0;b<c.length;m={name$jscomp$381:void 0},b++)m.name$jscomp$381=c[b],Object.defineProperty(J,m.name$jscomp$381,{get:function(x){return function(){return this.node[x.name$jscomp$381]}}(m),
set:function(x){return function(P){this.node[x.name$jscomp$381]=P}}(m),
configurable:!0})};
Zyo=function(){vy=document.documentElement.getAttribute("dir");vy=document.documentElement.getAttribute("dir");for(var J=0;J<O4.length;J++){var c=O4[J];c.__autoDirOptOut||c.setAttribute("dir",vy)}};
hhD=function(){A5=!0;requestAnimationFrame(function(){A5=!1;qQJ(UJf);setTimeout(function(){for(var J=0,c=R3.length;J<c;J++)SQu(R3.shift())})})};
qQJ=function(J){for(;J.length;)SQu(J.shift())};
SQu=function(J){var c=J[0],m=J[1];J=J[2];try{m.apply(c,J)}catch(b){setTimeout(function(){throw b;})}};
_.dJ2=function(J,c,m){A5||hhD();UJf.push([J,c,m])};
_.o3=function(J,c,m){A5||hhD();R3.push([J,c,m])};
ERo=function(J,c){c=c===void 0?!1:c;if(!$Jq||!GU3||!$Jq.handlesDynamicScoping)return null;var m=GU3.ScopingShim;if(!m)return null;var b=m.scopeForNode(J),x=(0,_.kA)(J).getRootNode(),P=function(p){if((0,_.kA)(p).getRootNode()===x){var t=Array.from($Jq.nativeMethods.querySelectorAll.call(p,"*"));t.push(p);for(p=0;p<t.length;p++){var I=t[p];if((0,_.kA)(I).getRootNode()===x){var a=m.currentScopeForNode(I);a!==b&&(a!==""&&m.unscopeNode(I,a),m.scopeNode(I,b))}}}};
P(J);return c?(c=new MutationObserver(function(p){for(var t=0;t<p.length;t++)for(var I=p[t],a=0;a<I.addedNodes.length;a++){var k=I.addedNodes[a];k.nodeType===Node.ELEMENT_NODE&&P(k)}}),c.observe(J,{childList:!0,
subtree:!0}),c):null};
vRm=function(){document.body.removeAttribute("unresolved")};
Qgf=function(J){var c=J=J.replace(Oyr,"").replace(A3J,""),m=new Rhu;m.start=0;m.end=c.length;for(var b=m,x=0,P=c.length;x<P;x++)if(c[x]==="{"){b.rules||(b.rules=[]);var p=b,t=p.rules[p.rules.length-1]||null;b=new Rhu;b.start=x+1;b.parent=p;b.previous=t;p.rules.push(b)}else c[x]==="}"&&(b.end=x+1,b=b.parent||m);return oRG(m,J)};
oRG=function(J,c){var m=c.substring(J.start,J.end-1);J.parsedCssText=J.cssText=m.trim();J.parent&&(m=c.substring(J.previous?J.previous.end:J.parent.start,J.start-1),m=_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(m),m=m.replace(ehf," "),m=m.substring(m.lastIndexOf(";")+1),m=J.parsedSelector=J.selector=m.trim(),J.atRule=m.indexOf("@")===0,J.atRule?m.indexOf("@media")===0?J.type=4:m.match(jge)&&(J.type=7,J.keyframesName=J.selector.split(ehf).pop()):m.indexOf("--")===
0?J.type=1E3:J.type=1);if(m=J.rules)for(var b=0,x=m.length,P=void 0;b<x&&(P=m[b]);b++)oRG(P,c);return J};
_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(J){return J.replace(/\\([0-9a-f]{1,6})\s/gi,function(){for(var c=arguments[1],m=6-c.length;m--;)c="0"+c;return"\\"+c})};
Fx3=function(J,c,m){m=m===void 0?"":m;var b="";if(J.cssText||J.rules){var x=J.rules;if(x&&!_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(x))for(var P=0,p=x.length,t=void 0;P<p&&(t=x[P]);P++)b=Fx3(t,c,b);else c?c=J.cssText:(c=J.cssText,c=c.replace(lir,"").replace(y3T,""),c=c.replace(BJG,"").replace(gRD,"")),(b=c.trim())&&(b="  "+b+"\n")}b&&(J.selector&&(m+=J.selector+" {\n"),m+=b,J.selector&&(m+="}\n\n"));return m};
_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(J){J=J[0];return!!J&&!!J.selector&&J.selector.indexOf("--")===0};
cmD=function(J){if(J=JmQ[J])J._applyShimCurrentVersion=J._applyShimCurrentVersion||0,J._applyShimValidatingVersion=J._applyShimValidatingVersion||0,J._applyShimNextVersion=(J._applyShimNextVersion||0)+1};
m_q=function(J){return J._applyShimCurrentVersion===J._applyShimNextVersion};
x_R=function(J){J._applyShimValidatingVersion=J._applyShimNextVersion;J._validating||(J._validating=!0,bZm.then(function(){J._applyShimCurrentVersion=J._applyShimNextVersion;J._validating=!1}))};
PcT=function(J){if(!J)return"";typeof J==="string"&&(J=Qgf(J));return Fx3(J,VLu)};
MLD=function(J){!J.__cssRules&&J.textContent&&(J.__cssRules=Qgf(J.textContent));return J.__cssRules||null};
NxQ=function(J,c,m,b){if(J){var x=!1,P=J.type;if(b&&P===4){var p=J.selector.match(pHT);p&&(window.matchMedia(p[1]).matches||(x=!0))}P===1?c(J):m&&P===7?m(J):P===1E3&&(x=!0);if((J=J.rules)&&!x)for(x=0,P=J.length,p=void 0;x<P&&(p=J[x]);x++)NxQ(p,c,m,b)}};
tLQ=function(J,c){var m=J.indexOf("var(");if(m===-1)return c(J,"","","");a:{var b=0;var x=m+3;for(var P=J.length;x<P;x++)if(J[x]==="(")b++;else if(J[x]===")"&&--b===0)break a;x=-1}b=J.substring(m+4,x);m=J.substring(0,m);J=tLQ(J.substring(x+1),c);P=b.indexOf(",");if(P===-1)return c(m,b.trim(),"",J);x=b.substring(0,P).trim();b=b.substring(P+1).trim();return c(m,x,b,J)};
Ive=function(J){if(Q8!==void 0)return Q8;if(J.__cssBuild===void 0){var c=J.getAttribute("css-build");if(c)J.__cssBuild=c;else{a:{c=J.localName==="template"?J.content.firstChild:J.firstChild;if(c instanceof Comment&&(c=c.textContent.trim().split(":"),c[0]==="css-build")){c=c[1];break a}c=""}if(c!==""){var m=J.localName==="template"?J.content.firstChild:J.firstChild;m.parentNode.removeChild(m)}J.__cssBuild=c}}return J.__cssBuild||""};
Cce=function(J,c,m,b){for(var x=c._noAccessors,P=Object.getOwnPropertyNames(c),p=0;p<P.length;p++){var t=P[p];if(!(t in b))if(x)J[t]=c[t];else{var I=Object.getOwnPropertyDescriptor(c,t);I&&(I.configurable=!0,Object.defineProperty(J,t,I))}}for(var a in Km3)c[a]&&(m[a]=m[a]||[],m[a].push(c[a]))};
avr=function(J,c,m){c=c||[];for(var b=J.length-1;b>=0;b--){var x=J[b];x?Array.isArray(x)?avr(x,c):c.indexOf(x)<0&&(!m||m.indexOf(x)<0)&&c.unshift(x):console.warn("behavior is null, check for missing or 404 import")}return c};
kt2=function(J,c){for(var m in c){var b=J[m],x=c[m];J[m]=!("value"in x)&&b&&"value"in b?Object.assign({value:b.value},x):x}};
nge=function(J,c,m){var b={},x=function(){return c.apply(this,arguments)||this};
_.D(x,c);x._finalizeClass=function(){if(this.hasOwnProperty("generatedFrom")){if(p)for(var I=0,a;I<p.length;I++)a=p[I],a.properties&&this.createProperties(a.properties),a.observers&&this.createObservers(a.observers,a.properties);J.properties&&this.createProperties(J.properties);J.observers&&this.createObservers(J.observers,J.properties);this._prepareTemplate()}else c._finalizeClass.call(this)};
x.prototype.created=function(){c.prototype.created.call(this);var I=b.created;if(I)for(var a=0;a<I.length;a++)I[a].call(this)};
x.prototype._registered=function(){var I=x.prototype;if(!I.hasOwnProperty("__hasRegisterFinished")){I.__hasRegisterFinished=!0;c.prototype._registered.call(this);q8&&t(I);I=Object.getPrototypeOf(this);var a=b.beforeRegister;if(a)for(var k=0;k<a.length;k++)a[k].call(I);if(a=b.registered)for(k=0;k<a.length;k++)a[k].call(I)}};
x.prototype._applyListeners=function(){c.prototype._applyListeners.call(this);var I=b.listeners;if(I)for(var a=0;a<I.length;a++){var k=I[a];if(k)for(var H in k)this._addMethodEventListenerToNode(this,H,k[H])}};
x.prototype._ensureAttributes=function(){var I=b.hostAttributes;if(I)for(var a=I.length-1;a>=0;a--){var k=I[a],H;for(H in k)this._ensureAttribute(H,k[H])}c.prototype._ensureAttributes.call(this)};
x.prototype.ready=function(){c.prototype.ready.call(this);var I=b.ready;if(I)for(var a=0;a<I.length;a++)I[a].call(this)};
x.prototype.attached=function(){c.prototype.attached.call(this);var I=b.attached;if(I)for(var a=0;a<I.length;a++)I[a].call(this)};
x.prototype.detached=function(){c.prototype.detached.call(this);var I=b.detached;if(I)for(var a=0;a<I.length;a++)I[a].call(this)};
x.prototype.attributeChanged=function(I,a,k){c.prototype.attributeChanged.call(this);var H=b.attributeChanged;if(H)for(var T=0;T<H.length;T++)H[T].call(this,I,a,k)};
_.eE.Object.defineProperties(x,{properties:{configurable:!0,enumerable:!0,get:function(){var I={};if(p)for(var a=0;a<p.length;a++)kt2(I,p[a].properties);kt2(I,J.properties);return I}},
observers:{configurable:!0,enumerable:!0,get:function(){var I=[];if(p)for(var a=0,k;a<p.length;a++)k=p[a],k.observers&&(I=I.concat(k.observers));J.observers&&(I=I.concat(J.observers));return I}}});
if(m){Array.isArray(m)||(m=[m]);var P=c.prototype.behaviors;var p=avr(m,null,P);x.prototype.behaviors=P?P.concat(m):p}var t=function(I){if(p)for(var a=p,k=0;k<a.length;k++)Cce(I,a[k],b,HZe);Cce(I,J,b,iZQ)};
q8||t(x.prototype);x.generatedFrom=J;return x};
sxT=function(J){var c=typeof J!=="string"?J:{is:J,notifyObserversOnUndefined:!0};c.fastInit===void 0&&(c.fastInit=!0);return function(m){if(!c.disableInheritanceCheck&&Object.getPrototypeOf(m.prototype).constructor!==_.jE)throw Error("Nd");var b=m.prototype;b.is=c.is;zpq(b,"created",function(){this.hostElement=this;this.polymerController=this});
TxG(b,m,c.fastInit);c.notifyObserversOnUndefined&&(b._overrideLegacyUndefined=!0);if(wHR)for(var x=_.M(Object.getOwnPropertyNames(b)),P=x.next();!P.done;P=x.next()){P=P.value;var p=Object.getOwnPropertyDescriptor(b,P);p.enumerable===!1&&(p.enumerable=!0,Object.defineProperty(b,P,p))}if("template"in m)var t=function(){return m.template};
else c.template!==void 0&&(t=c.template);if(t!==void 0){var I;Object.defineProperty(b,"_template",{get:function(){I===void 0&&(I=t());return I},
set:function(a){I=a},
configurable:!0,enumerable:!0})}Polymer(b);m[rmu]=b}};
Lmu=function(J){J=J===void 0?{}:J;J.fastInit===void 0&&(J.fastInit=!0);return function(c){if(!J.disableInheritanceCheck&&Object.getPrototypeOf(c.prototype).constructor!==F6)throw Error("Od");TxG(c.prototype,c,J.fastInit)}};
TxG=function(J,c,m){m=m===void 0?!1:m;D_m(c);m?zpq(J,"created",function(){this.disableEnforceFastDefaultValuesCheck||Wmo(c,this)}):zpq(J,"ready",function(){for(var b={},x=_.M(uGD(this.behaviors)),P=x.next();!P.done;P=x.next())P=P.value,P.properties&&Object.assign(b,zbT(this,P.properties));
Object.assign(b,zbT(this,this.properties));Wmo(c,this);x=_.M(Object.keys(b));for(P=x.next();!P.done;P=x.next())P=P.value,this[P]=b[P]})};
Wmo=function(J,c){if(wHR){J=new J;for(var m=_.M(Object.getOwnPropertyNames(J)),b=m.next();!b.done;b=m.next())b=b.value,c[b]=J[b];for(m=c;m&&m!==Object.prototype;m=Object.getPrototypeOf(m)){b=_.M(Object.getOwnPropertyNames(m));for(var x=b.next();!x.done;x=b.next())x=x.value,J.hasOwnProperty(x)||Object.defineProperty(J,x,u1T(c,x))}}else J.apply(c)};
u1T=function(J,c){return{get:function(){var m=J[c];return m instanceof Function?m.bind(J):m},
set:function(m){J[c]=m}}};
zbT=function(J,c){if(!c)return{};for(var m={},b=_.M(Object.keys(c)),x=b.next();!x.done;x=b.next())if(x=x.value,!c[x].readOnly){var P=J[x];P!==void 0&&(m[x]=P)}return m};
D_m=function(J){var c=new J;J=J.prototype.properties||{};for(var m=_.M(Object.keys(J)),b=m.next();!b.done;b=m.next())if(b=b.value,c.hasOwnProperty(b)){var x=J[b];typeof x==="function"&&(J[b]=x={type:x});c[b]!=null&&x.type===Object&&(x.type=fvq(c[b].constructor))}};
fvq=function(J){for(var c=_.M(YoR),m=c.next();!m.done;m=c.next())if(m=m.value,J===m)return m;return Object};
XHm=function(J){return function(c,m){c.behaviors=c.behaviors||[];c.behaviors.push(J||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?Reflect.getMetadata("design:type",c,m).prototype:void 0));Object.defineProperty(c,m,{get:function(){return this},
enumerable:!0,configurable:!0})}};
ZZT=function(J){J=J===void 0?{}:J;return function(c,m){c.properties=c.properties||{};J.type||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?J.type=fvq(Reflect.getMetadata("design:type",c,m)):J.type=String);var b=J,x=c.properties[m];c.properties[m]=x?Object.assign({},x,b):b}};
qot=function(J){return function(c,m){c.listeners=c.listeners||{};c.listeners[J]=m}};
U_Q=function(){var J=_.s$.apply(0,arguments);if(J.length===0)throw Error("Pd");return function(c,m){c.observers=c.observers||[];c.observers.push(m+"("+J.join(",")+")")}};
Soo=function(){var J=_.s$.apply(0,arguments);return function(c,m,b){var x=Object.getOwnPropertyDescriptor(c,m).get,P="__compute__"+m;Object.defineProperty(c,P,{value:x,enumerable:!0});c.properties=c.properties||{};x=c.properties[m];x||(x={},c.properties[m]=x);x.computed=P+"("+J.join(",")+")";b.get=void 0}};
_.la=function(J,c,m){_.DS.call(this);this.JSC$9221_id_=null;this.usingListeners_=!1;this.JSC$9221_listener_=J;this.handler_=m;this.JSC$9221_win_=c||window;this.callback_=(0,_.Wa)(this.JSC$9223_doAction_,this)};
y8=function(J){this.range_=J};
By=function(J){this.range_=J};
cS=function(J,c,m){_.DS.call(this);this.constrainScroll_=!1;this.horizontalScrolling_=!0;this.containerNode_=J;this.scrollTimer_=new _.gP(50);this.JSC$9300_eventHandler_=new _.J0(this);this.scrollDelta_=new _.zO;this.containerIsActuallyContent_=J.tagName==="BODY"||J.tagName==="HTML";this.containerBounds_=hbJ(J);this.containerIsActuallyContent_&&(J=_.Iw(),this.containerBounds_.height=J.height,this.containerBounds_.width=J.width);this.margin_=c||0;if(c){if(c=this.containerBounds_.clone(),J=this.margin_){var b=
Math.min(J,c.height*.25);c.top+=b;c.height-=2*b;J=Math.min(J,c.width*.25);c.left+=J;c.width-=2*J}}else c=this.containerBounds_;this.scrollBounds_=c;m||this.JSC$9300_eventHandler_.listen(_.fw(this.containerNode_),"mousemove",this.JSC$9302_onMouseMove);this.JSC$9300_eventHandler_.listen(this.scrollTimer_,"tick",this.JSC$9302_onTick_)};
_.my=function(J){this.mechanism=J};
bk=function(J,c){this.JSC$9398_key_=J;this.JSC$9398_value_=c};
$_u=function(J){if(J>=55296&&J<=57343||J>1114111)return"\ufffd";J in d_u&&(J=d_u[J]);var c="";J>65535&&(J-=65536,c+=String.fromCharCode(J>>>10&1023|55296),J=56320|J&1023);return c+=String.fromCharCode(J)};
Gtf=function(J,c){return J<c?1:-1};
vgm=function(){return function(J){return J.charAt(1)==="#"?J.charAt(2)==="X"||J.charAt(2)==="x"?$_u(parseInt(J.substr(3),16)):$_u(parseInt(J.substr(2),10)):EgD[J.slice(1,-1)]}};
RbQ=function(J){return J.slice(1,J.length-1).trim().replace(OZJ,function(c){return AmG[c]||" "})};
x3=function(J){return J===32||J===9};
VM=function(J,c){return c<J.length?J.charCodeAt(c):-1};
ogt=function(J){for(;J;){if(J._lastLineBlank)return!0;var c=J.type;if(c==="list"||c==="item")J=J._lastChild;else break}return!1};
PS=function(J){if(Qxu.test(J)){var c=1,m=0,b=0;for(J[m]=="|"&&m++;m<J.length;){switch(J[m]){case "|":b=1;break;case " ":break;case "\t":break;default:b&&(b=0,c++)}m++}return ebT.test(J)?-c:c}return 0};
jxo=function(J){return J=="table"||J=="row"||J=="cell"};
Fmo=function(){return new Ma("document",[[1,1],[0,0]])};
lvm=function(){};
pl=function(){var J={safe:!1};J=J||{};J.softbreak=J.softbreak||"\n";this.disableTags=0;this.lastOut="\n";this.options=J};
cKu=function(J,c){var m="";if(J)if(J=J.toLowerCase(),J===" "||ymf.test(J))m="space";else if(Bx2.test(J))m="esc";else if(J.length==1){if(!c||gg3.test(J))m=J}else m=JKJ.test(J)?J.replace("arrow",""):J=="multiply"?"*":J;return m};
Vnf=function(J,c){var m=J.hasModifiers;if(c.key)m=cKu(c.key,m);else if(c.detail&&c.detail.key)m=cKu(c.detail.key,m);else{m=c.keyIdentifier;var b="";m&&(m in mCf?b=mCf[m]:b0Q.test(m)?(m=parseInt(m.replace("U+","0x"),16),b=String.fromCharCode(m).toLowerCase()):b=m.toLowerCase());(m=b)||(m=c.keyCode,b="",Number(m)&&(m>=65&&m<=90?b=String.fromCharCode(32+m):m>=112&&m<=123?b="f"+(m-112+1):m>=48&&m<=57?b=String(m-48):m>=96&&m<=105?b=String(m-96):b=xCQ[m]),m=b);m=m||""}return m===J.key&&(!J.hasModifiers||
!!c.shiftKey===!!J.shiftKey&&!!c.ctrlKey===!!J.ctrlKey&&!!c.altKey===!!J.altKey&&!!c.metaKey===!!J.metaKey)};
Mne=function(J){return J.length===1?{combo:J,key:J,event:"keydown"}:J.split("+").reduce(function(c,m){var b=m.split(":");m=b[0];b=b[1];m in P0G?(c[P0G[m]]=!0,c.hasModifiers=!0):(c.key=m,c.event=b||"keydown");return c},{combo:J.split(":").shift()})};
pe2=function(J){return J.trim().split(" ").map(function(c){return Mne(c)})};
N9R=function(J,c){if(J&&J.fn){var m=J.fn;J.fn=function(){try{m.apply(this,arguments)}catch(b){if(b instanceof Na)console.warn("Argument '"+b.arg+"'"+(c?" for method '"+c+"'":"")+" was undefined. Ensure it has a default value, or else ensure the method handles the argument being undefined.");else throw b;}}}return J};
tnT=function(){var J=_.s$.apply(0,arguments);return J.length===0?function(c){return c}:J.length===1?J[0]:J.reduce(function(c,m){return function(){return c(m.apply(null,_.L6(_.s$.apply(0,arguments))))}})};
IbG=function(){var J=_.s$.apply(0,arguments);return function(c){return function(m,b){m=c(m,b);var x=function(){throw Error("ze");},P={getState:m.getState,
dispatch:function(p){return x.apply(null,[p].concat(_.L6(_.s$.apply(1,arguments))))}};
b=J.map(function(p){return p(P)});
x=tnT.apply(null,_.L6(b))(m.dispatch);return Object.assign({},m,{dispatch:x})}}};
abo=function(J){Object.keys(J).forEach(function(c){var m=J[c];if(typeof m(void 0,{type:KsD})==="undefined")throw Error("Ae`"+c);if(typeof m(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+C0Q()})==="undefined")throw Error("Be`"+c+"`"+KsD);})};
t0=function(J){for(var c=Object.keys(J),m={},b=0;b<c.length;b++){var x=c[b];typeof J[x]==="function"&&(m[x]=J[x])}var P=Object.keys(m);try{abo(m)}catch(t){var p=t}return function(t,I){t=t===void 0?{}:t;if(p)throw p;for(var a=!1,k={},H=0;H<P.length;H++){var T=P[H],r=t[T],W=(0,m[T])(r,I);if(typeof W==="undefined")throw t=I&&I.type,Error("Ce`"+(t?'"'+String(t)+'"':"(unknown type)")+"`"+T);k[T]=W;a=a||W!==r}return(a=a||P.length!==Object.keys(t).length)?k:t}};
k8f=function(J,c,m){function b(){if(k)throw Error("De");return t}
function x(r){if(typeof r!=="function")throw Error("Ee`"+typeof r);if(k)throw Error("Fe");var W=!0;a===I&&(a=I.slice());a.push(r);return function(){if(W){if(k)throw Error("Ge");W=!1;a===I&&(a=I.slice());var Y=a.indexOf(r);a.splice(Y,1);I=null}}}
function P(r){if(typeof r!=="object"||r===null)var W=!1;else{for(W=r;Object.getPrototypeOf(W)!==null;)W=Object.getPrototypeOf(W);W=Object.getPrototypeOf(r)===W}if(!W)throw Error("He`"+typeof r);if(typeof r.type==="undefined")throw Error("Ie");if(k)throw Error("Je");try{k=!0,t=p(t,r)}finally{k=!1}W=I=a;for(var Y=0;Y<W.length;Y++)(0,W[Y])();return r}
if(typeof c==="function"&&typeof m==="function"||typeof m==="function"&&typeof arguments[3]==="function")throw Error("Ke");typeof c==="function"&&typeof m==="undefined"&&(m=c,c=void 0);if(typeof m!=="undefined"){if(typeof m!=="function")throw Error("Le`"+typeof m);return m(k8f)(J,c)}if(typeof J!=="function")throw Error("Me`"+typeof J);var p=J,t=c,I=[],a=I,k=!1;P({type:KsD});var H={},T=(H.dispatch=P,H.subscribe=x,H.getState=b,H.replaceReducer=function(r){if(typeof r!=="function")throw Error("Ne`"+
typeof r);p=r;P({type:H0q});return T},H[i0D]=function(){var r={};
return r.subscribe=function(W){function Y(){W.next&&W.next(b())}
if(typeof W!=="object"||W===null)throw new TypeError("Oe`"+typeof W);Y();return{unsubscribe:x(Y)}},r[i0D]=function(){return this},r},H);
return T};
ndu=function(J){function c(){x&&(x=!1,J());P&&b()}
function m(){requestAnimationFrame(c)}
function b(){var t=Date.now();if(x){if(t-p<2)return;P=!0}else x=!0,P=!1,setTimeout(m,20);p=t}
var x=!1,P=!1,p=0;return b};
Iz=function(J){return typeof J==="number"?J:parseFloat(J)||0};
T9m=function(J){return _.s$.apply(1,arguments).reduce(function(c,m){return c+Iz(J["border-"+m+"-width"])},0)};
_.z=function(J,c){c=f1(us(c));J.innerHTML=c};
s52=function(J){var c=we2;c||(c=rKT(),c=we2=_.Lw.transpose(c));c=c[J];return typeof c==="string"?c:_.Kl(J)};
Lse=function(J){J=String(J).toLowerCase();var c=rKT()[J];return typeof c==="string"?c:_.Cl(J)};
DCe=function(J){J=J.toLowerCase();J=rKT()[J];return typeof J==="string"?J:null};
rKT=function(){if(!Wso){for(var J=Object.assign({},zvt),c=_.M(uyf),m=c.next();!m.done;m=c.next())m=m.value,J[m.toLowerCase()]=m;Wso=J}return Wso};
XeJ=function(J,c){var m=window.customElements;return m&&m.get(J)||fbm[J]===!0?2:c.name==="HTMLUnknownElement"?1:c.name==="HTMLElement"&&YSD.test(J)?3:0};
UCG=function(J,c){switch(c){case "innerHTML":return Z0m(J)===1?2:null;case "textContent":return J=Z0m(J),J===1||J===6?1:null;default:var m,b;return(b=(m=qSm[J.localName])==null?void 0:m[c])!=null?b:null}};
Z0m=function(J){var c=J.localName,m=XeJ(c,J.constructor);switch(m){case 0:case 1:return SSe(c,J);case 3:case 2:return 1;default:_.Pu(m,"got an unknown element classification")}};
SSe=function(J,c){var m=Object.hasOwnProperty.call(hvT,J)?hvT[J]:null;return m!==null?m:Object.hasOwnProperty.call(dCR,J)&&c instanceof SVGElement?dCR[J]:null};
$Cq=function(J,c){return c};
Edq=function(J){return(J=J.split(G8e,2))?{url:J[0],metadata:J[1]}:null};
O0q=function(J){var c=String(J.url).replace(vdD,encodeURIComponent);if(J=J.metadata){vdD.lastIndex=0;if(vdD.test(J))return null;c+=" "+J}return c};
Q5T=function(J){function c(a){var k=a.localName;if(!a.getAttribute("is")&&XeJ(k,a.constructor)===2){var H;return(H=I)!=null?H:I=document.createElement("polyresinuncustomized")}(a=t[k])||(a=t[k]=document.createElement(k));return a}
var m=J.reportHandler||void 0,b=J.safeTypesBridge||AKT,x=/^$/;if(J=J.allowedIdentifierPrefixes){J=_.M(J);for(var P=J.next();!P.done;P=J.next())x=new RegExp(x.source+"|^"+_.Rvr(P.value))}m&&m(!1,"initResin",null);var p=odr(x,b,m),t={},I=null;return function(a,k,H){var T=a.nodeType;if(T!==Node.ELEMENT_NODE){if(T===Node.TEXT_NODE){k=a.parentElement;H=!k;if(k&&k.nodeType===Node.ELEMENT_NODE){T=k.localName;var r=XeJ(T,k.constructor);switch(r){case 0:case 1:k=SSe(T,k);H=k===1||k===6;break;case 3:case 2:H=
!0;break;default:_.Pu(r,"got an unknown element classification")}}if(H)return function(d){return""+b(d,"STRING",d)}}return function(d){if(!d&&d!==document.all)return d;
m&&m(!0,"Failed to sanitize "+(a.parentElement&&a.parentElement.nodeName)+" #text node to value "+d,a.parentElement);return az}}var W=a.localName;
T=c(a);var Y=null;switch(H){case "attribute":if(Lse(k)in T)break;return function(d){return d};
case "property":if(k in T){Y=UCG(T,k);break}if((r=DCe(k))&&r in T)break;return function(d){return d};
default:_.Pu(H,"got an unknown resin type, expected either 'property' or 'attribute'")}var Z=H==="attribute"?k.toLowerCase():s52(k);Y||(Y=KLr(W,Z,function(d){var G=a.getAttribute(d);return!G||/[\[\{]/.test(d)?null:G}));
return function(d){var G=k3,e=null;if(!d&&d!==document.all)return d;if(Y!=null){var A=p[Y],l=A.safeType;e=A.safeReplacement;l&&(G=b(d,l,k3));G===k3&&(A.filterString?(G=String(b(d,"STRING",d)),G=A.filterString(W,Z,G)):A.filterRaw&&(G=A.filterRaw(W,Z,d,a)),G===e&&(G=k3))}G===k3&&(G=e||az,m&&m(!0,"Failed to sanitize attribute of <"+W+">: <"+W+" "+Z+'="'+d+'">',a));return G}}};
odr=function(J,c,m){return[,{filterRaw:function(b,x,P){return P},
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:evG,safeType:"URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:evG,safeType:"RESOURCE_URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:az,safeType:"STYLE"},,{filterRaw:void 0,filterString:void 0,safeReplacement:j5f,safeType:"JAVASCRIPT"},{filterRaw:void 0,filterString:function(b,x,P){P=
String(P).toLowerCase();return k7T(b,x,P)?P:az},
safeReplacement:az,safeType:void 0},,{filterRaw:void 0,filterString:function(b,x,P){return J.test(P)?P:az},
safeReplacement:az,safeType:"CONSTANT"},{filterRaw:function(b,x,P,p){if(typeof P==="string")var t=(t=P.match(Fse))?t.map(Edq).filter(Boolean):[];else if(Array.isArray(P))t=P;else return evG;var I=t;t=[];var a=[],k={};if(Array.isArray(I))for(var H=0,T=I.length;H<T;++H){var r=I[H],W=r&&r.url;if(W){var Y=c(W,"URL",k);if(Y){var Z=Y!==k;(Z?t:a).push({url:Z?Y:W,metadata:r.metadata})}}}else a.push(I);I=a.length?JSON.stringify(a):null;a=k3;if(t.length){if(!Array.isArray(t))throw Error();a=t.map(O0q).filter(Boolean).join(" , ")||
k3}I&&m&&m(!0,"Failed to sanitize attribute value of <"+b+">: <"+b+" "+x+'="'+P+'">: '+I,p);return a===k3?evG:a},
filterString:void 0,safeReplacement:void 0,safeType:void 0}]};
lbo=function(J){var c=Q5T(J);return function(m,b,x,P){return P||P===document.all?c(m,b,x)(P):P}};
HS=function(J,c){function m(){function x(t,I,a){for(I=Reflect.getMetadata("parameters",t)||[];I.length<=a;)I.push(null);I[a]=I[a]||[];I[a].push(p);Reflect.defineMetadata(I,t);return t}
var P=_.s$.apply(0,arguments);if(this instanceof m)return b.apply(this,P),this;var p=new (Function.prototype.bind.apply(m,[null].concat(_.L6(P))));x.annotation=p;return x}
var b=yKR(c);m.prototype.toString=function(){return"@"+J};
return m.annotationCls=m};
yKR=function(J){return function(){var c=_.s$.apply(0,arguments),m=this;J.forEach(function(b,x){x=c[x];if(Array.isArray(b))m[b[0]]=x&&x!==void 0?x:b[1];else for(var P in b)m[P]=x&&x[P]!==void 0?x[P]:b[P]})}};
B9D=function(J){return J!==void 0&&J!==null};
nl=function(J){if(typeof J==="string")return J;if(J===void 0||J===null)return""+J;if(J.overriddenName)return J.overriddenName;if(J.name)return J.name;J=J.toString();var c=J.indexOf("\n");return c===-1?J:J.substring(0,c)};
gdG=function(J){J.__forward_ref__=gdG;J.toString=function(){return nl(this())};
return J};
Tv=function(J){return typeof J==="function"&&J.hasOwnProperty("__forward_ref__")&&J.__forward_ref__===gdG?J():J};
JFr=function(J){return J?J.map(function(c){return new (Function.prototype.bind.apply(c.type.annotationCls,[null].concat(_.L6(c.args?c.args:[]))))}):[]};
cFr=function(J){for(var c=[],m=0;m<J.length;++m){if(c.indexOf(J[m])>-1){c.push(J[m]);break}c.push(J[m])}return c};
mke=function(J){return J.length>1?" ("+cFr(J.slice().reverse()).map(function(c){return nl(c.token)}).join(" -> ")+")":""};
xkG=function(J,c,m,b){if(b){var x=Error("Ve``"+(b instanceof Error?b.message:b));x.ngOriginalError=b}else x=Error();x.addKey=bdJ;x.keys=[c];x.injectors=[J];x.constructResolvingMessage=m;x.message=x.constructResolvingMessage();x.ngOriginalError=b;return x};
bdJ=function(J,c){this.injectors.push(J);this.keys.push(c);this.message=this.constructResolvingMessage()};
VdG=function(J,c){return xkG(J,c,function(){return"No provider for "+nl(this.keys[0].token)+"!"+mke(this.keys)})};
P_q=function(J,c){return xkG(J,c,function(){return"Cannot instantiate cyclic dependency!"+mke(this.keys)})};
MdJ=function(J,c,m){return xkG(J,m,function(){var b=nl(this.keys[0].token);return this.ngOriginalError.message+": Error during instantiation of "+b+"!"+mke(this.keys)+"."},c)};
pQJ=function(J,c){for(var m=[],b=0,x=c.length;b<x;b++){var P=c[b];P&&P.length!=0?m.push(P.map(nl).join(" ")):m.push("?")}return Error("Ze`"+nl(J)+"`"+m.join(", ")+"`"+nl(J))};
ky2=function(J){var c=void 0,m=void 0;if(J&&J.useClass!==void 0){c=J.useClass;var b=Tv(J.useClass);var x=NCG.factory(b);b=tdJ(b)}else J&&J.useExisting!==void 0?(x=function(P){return P},b=[IKt(wK.get(Tv(J.useExisting)))]):J&&J.useFactory!==void 0?(x=J.useFactory,b=KEe(J.useFactory,J.deps)):(m=J.useValue,x=function(){return J.useValue},b=C_3);
return new aK2(x,b,c,m)};
idG=function(J){return new HdQ(wK.get(Tv(J.provide)),[ky2(J)],J.multi)};
TCT=function(J){J=n8t(J,[]).map(idG);for(var c=new Map,m=0;m<J.length;m++){var b=J[m],x=c.get(b.key.id);if(x){if(b.multiProvider!==x.multiProvider)throw Error("af`"+x+"`"+b);if(b.multiProvider)for(var P=0;P<b.resolvedFactories.length;P++)x.resolvedFactories.push(b.resolvedFactories[P]);else c.set(b.key.id,b)}else x=void 0,b.multiProvider?x=new HdQ(b.key,b.resolvedFactories.slice(),b.multiProvider):x=b,c.set(b.key.id,x)}return Array.from(c.values())};
n8t=function(J,c){J.forEach(function(m){if(m instanceof wQT)c.push({provide:m,useClass:m});else if(m&&typeof m=="object"&&m.provide!==void 0)c.push(m);else if(m instanceof Array)n8t(m,c);else throw Error("Ye`"+m);});
return c};
KEe=function(J,c){if(c){var m=c.map(function(b){return[b]});
return c.map(function(b){return rFG(J,b,m)})}return tdJ(J)};
tdJ=function(J){var c=NCG.parameters(J);if(!c)return[];if(c.some(function(m){return m==null}))throw pQJ(J,c);
return c.map(function(m){return rFG(J,m,c)})};
rFG=function(J,c,m){var b=null,x=!1;if(!Array.isArray(c))return c instanceof sSm?LET(c.token,x,null):LET(c,x,null);for(var P=null,p=0;p<c.length;++p){var t=c[p];if(t instanceof wQT)b=t;else if(t instanceof sSm)b=t.token;else if(t instanceof Dkr)x=!0;else if(t instanceof WEf||t instanceof z4m)P=t}b=Tv(b);if(b!=null)return LET(b,x,P);throw pQJ(J,m);};
LET=function(J,c,m){return new uYQ(wK.get(Tv(J)),c,m)};
fKf=function(J,c){for(var m=Array(J.providers.length),b=0;b<J.providers.length;++b){var x=b;if(b<0||b>=J.providers.length)throw Error("$e`"+b);m[x]=c(J.providers[b])}return m};
YKJ=function(J){return typeof J==="function"&&NCG.parameters(J).every(function(c){return!!c})};
qKm=function(J){var c=XQQ;ZdT.get(J)||ZdT.set(J,new c);return ZdT.get(J)};
_._hasCachedLockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(J){return _._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(J)>-1};
_._hasCachedUnlockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(J){return _._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(J)>-1};
_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(J,c){var m,b;if(J.contains(c))return!0;J=_.rK(J).querySelectorAll("content,slot");for(m=0;m<J.length;++m){var x=_.rK(J[m]).getDistributedNodes();for(b=0;b<x.length;++b)if(x[b].nodeType===Node.ELEMENT_NODE&&_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(x[b],c))return!0}return!1};
_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(J){J.cancelable&&_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(J)&&J.preventDefault();J.targetTouches&&(J=J.targetTouches[0],UkT=J.pageX,SKR=J.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 J=0,c=sH.length;J<c;J++)document.addEventListener(sH[J],_._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 J=0,c=sH.length;J<c;J++)document.removeEventListener(sH[J],_._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(J){var c=_.rK(J).rootTarget;J.type!=="touchmove"&&h4J!==c&&(h4J=c,dkG=_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(_.rK(J).path));if(!dkG.length)return!0;if(J.type==="touchstart")return!1;J=_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(J);
return!_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(dkG,J.deltaX,J.deltaY)};
_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(J){for(var c=[],m=J.indexOf($kD),b=0;b<=m;b++)if(J[b].nodeType===Node.ELEMENT_NODE){var x=J[b],P=x.style;P.overflow!=="scroll"&&P.overflow!=="auto"&&(P=window.getComputedStyle(x));P.overflow!=="scroll"&&P.overflow!=="auto"||c.push(x)}return c};
_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(J,c,m){if(c||m)for(var b=Math.abs(m)>=Math.abs(c),x=0;x<J.length;x++){var P=J[x];if(b?m<0?P.scrollTop>0:P.scrollTop<P.scrollHeight-P.clientHeight:c<0?P.scrollLeft>0:P.scrollLeft<P.scrollWidth-P.clientWidth)return P}};
_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(J){var c={deltaX:J.deltaX,deltaY:J.deltaY};"deltaX"in J||("wheelDeltaX"in J&&"wheelDeltaY"in J?(c.deltaX=-J.wheelDeltaX,c.deltaY=-J.wheelDeltaY):"wheelDelta"in J?(c.deltaX=0,c.deltaY=-J.wheelDelta):"axis"in J?(c.deltaX=J.axis===1?J.detail:0,c.deltaY=J.axis===2?J.detail:0):J.targetTouches&&(J=J.targetTouches[0],c.deltaX=UkT-J.pageX,c.deltaY=SKR-J.pageY));return c};
GyG=function(J){this.element=J;this.width=this.boundingRect.width;this.height=this.boundingRect.height;this.size=Math.max(this.width,this.height)};
v8r=function(J){this.element=J;this.color=window.getComputedStyle(J).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");_.rK(this.waveContainer).appendChild(this.wave);E8D(this)};
Ll=function(J,c){for(var m in J)if(m.toLowerCase()===c.toLowerCase())return J[m]};
Od3=function(J,c){for(var m in J)if(m.toLowerCase()===c.toLowerCase()){delete J[m];break}};
R4f=function(J){J=_.Lw.clone(J);for(var c=0;c<AFr.length;++c){var m=AFr[c],b=Ll(J,m);b&&(J["X-Goog-Upload-Header-"+m]=b,Od3(J,m))}return J};
o8Q=function(J){J=_.Lw.clone(J);Od3(J,"X-Goog-Upload-Status")};
e4m=function(J){return QSQ.some(function(c){return c.test(J)})};
yFr=function(J,c){var m;var b=(m=J.formContent)==null?void 0:m.locale;m=b==null?void 0:b.split("-")[0];b=b&&jSr.includes(b)?b:m&&jSr.includes(m)?m:void 0;b=(b!=null?b:"en").replaceAll("-","_").toLowerCase();var x;J=((x=J.initializationData)==null?0:x.useNightlyRelease)?"nightly":"live";var P;return(c==null?0:(P=c.getEnableAlohaBinarySplit)==null?0:P.call(c))?_.cm(FEr,J):_.cm(lKT,J,b)};
g82=function(J,c,m,b){if(BC3)return BC3;var x=yFr(J,b);return BC3=c.feedbackV2GlobalObject?Promise.resolve(c.feedbackV2GlobalObject):new Promise(function(P,p){var t=_.id("SCRIPT");_.$h(t,x);t.onload=function(){c.feedbackV2GlobalObject?P(c.feedbackV2GlobalObject):p(Error("df"))};
t.onerror=function(){p(Error("ef`"+x.toString()))};
m.body.appendChild(t)})};
ci2=function(J,c,m,b){if(Jir)return Jir;var x=yFr(J,b);return Jir=c.feedbackV2GlobalObject?Promise.resolve(c.feedbackV2GlobalObject):new Promise(function(P,p){var t=_.id("SCRIPT");_.$h(t,x);t.onload=function(){c.feedbackV2GlobalObject?P(c.feedbackV2GlobalObject):p(Error("df"))};
t.onerror=function(){p(Error("ef`"+x.toString()))};
m.body.appendChild(t)})};
mbu=function(J,c,m,b,x){x=x===void 0?!0:x;var P,p,t,I,a;return _.N(function(k){switch(k.nextAddress){case 1:return P=Date.now(),_.K(k,g82(J,m,b,c),2);case 2:p=k.yieldResult;if(!(x||((I=J.initializationData)==null?0:I.useNightlyRelease)||((a=J.initializationData)==null?0:a.isLocalServer))){t=p.initializeFeedbackClient(J,P,c);k.jumpTo(3);break}return _.K(k,p.initializeFeedbackClientAsync(J,P,c),4);case 4:t=k.yieldResult;case 3:return t.initiateAloha(),k.return(t)}})};
bI2=function(J,c,m,b){var x,P,p;return _.N(function(t){if(t.nextAddress==1)return x=Date.now(),_.K(t,ci2(J,m,b.document,c),2);if(t.nextAddress!=3)return P=t.yieldResult,_.K(t,P.initializeFeedbackClientAsync(J,x,c,b),3);p=t.yieldResult;p.initiateAloha();return t.return(p)})};
xbJ=function(J,c,m){var b=!0;b=b===void 0?!0:b;var x,P,p,t,I,a,k,H,T,r;return _.N(function(W){x=m||_.mo;if((P=c)==null?0:(t=(p=P).getEnableAlohaBinarySplit)==null?0:t.call(p)){I=x;if(I.isFormOpened)throw a=Error("ff"),a.name="DuplicateFormError",a;I.isFormOpened=!0;J.callbacks=J.callbacks||{};k=J.callbacks.onClose||function(){};
J.callbacks.onClose=function(Y){I.isFormOpened=!1;k(Y)};
try{return W.return(bI2(J,c,I,x))}catch(Y){throw I.isFormOpened=!1,Y;}}else{H=x;if(H.isFormOpened)throw T=Error("ff"),T.name="DuplicateFormError",T;H.isFormOpened=!0;J.callbacks=J.callbacks||{};r=J.callbacks.onClose||function(){};
J.callbacks.onClose=function(Y){H.isFormOpened=!1;r(Y)};
try{return W.return(mbu(J,c,H,x.document,b))}catch(Y){throw H.isFormOpened=!1,Y;}}_.tD(W)})};
NbD=function(J,c){return _.N(function(m){return m.return(new Promise(function(b){var x=Voo(c!=null?c:"")+"/aloha_form_properties?productId="+J;PAu(x,function(P){P=P.target;var p=null;try{var t=JSON,I=t.stringify;if(P.JSC$7807_xhr_){var a=P.JSC$7807_xhr_.responseText;a.indexOf(")]}'\n")==0&&(a=a.substring(5));var k=(0,_.DP)(a)}else k=void 0;p=m0u(Mou,I.call(t,k))}catch(H){I=new Mou,k=pze(),k=_.WS(k,13,!1),k=_.WS(k,14,!0),k=_.WS(k,15,!0),k=_.WS(k,20,!1),p=_.m_(I,1,k)}b(p)},"GET","",{},2E3,!0)}))})};
Voo=function(J){return e4m(J)?J:"https://www.google.com/tools/feedback"};
CAD=function(J){J=J.match(new RegExp(tor,"gi"))||[];J=_.M(J);for(var c=J.next();!c.done;c=J.next()){c=c.value;a:{var m=_.M(IYq);for(var b=m.next();!b.done;b=m.next())if(b.value.test(c)){m=!1;break a}m=!0}if(!m)a:{m=_.M(KVJ);for(b=m.next();!b.done;b=m.next())if(b.value.test(c)){m=!0;break a}m=!1}if(m)return!0}return!1};
aYQ=function(J){switch(J){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"}};
HIo=function(J){if(window.crypto&&window.crypto.getRandomValues)try{var c=Array(J),m=new Uint8Array(J);window.crypto.getRandomValues(m);for(var b=0;b<c.length;b++)c[b]=m[b];return c}catch(P){}c=Array(J);for(m=0;m<J;m++){b=Date.now();for(var x=0;x<b%23;x++)c[m]=Math.random();c[m]=Math.floor(Math.random()*256)}if(kEq)for(m=1,b=0;b<kEq.length;b++)c[m%J]^=c[(m-1)%J]/4^kEq.charCodeAt(b),m++;return c};
zv=function(J){J=HIo(J);for(var c=[],m=0;m<J.length;m++)c.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(J[m]&63));return c.join("")};
n1r=function(J){J&&_.zB("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:iIG,clientScreenNonce:J})};
Tbf=function(J){return _.Ub("client-screen-nonce-store",{})[J===void 0?0:J]};
wzT=function(J,c){c=c===void 0?0:c;var m=_.Ub("client-screen-nonce-store");m||(m={},_.q3("client-screen-nonce-store",m));m[c]=J};
riD=function(J){J=J===void 0?0:J;return J===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+J};
ssR=function(J){return _.Ub(riD(J===void 0?0:J))};
_.fl=function(J){return(J=ssR(J===void 0?0:J))?new _.uk({veType:J,youtubeData:void 0,jspbYoutubeData:void 0}):null};
LVe=function(){var J=_.Ub("csn-to-ctt-auth-info");J||(J={},_.q3("csn-to-ctt-auth-info",J));return J};
DbJ=function(){return Object.values(_.Ub("client-screen-nonce-store",{})).filter(function(J){return J!==void 0})};
_.Y3=function(J){J=Tbf(J===void 0?0:J);if(!J&&!_.Ss("USE_CSN_FALLBACK",!0))return null;J||(J="UNDEFINED_CSN");return J?J:null};
z6m=function(J){for(var c=_.M(Object.values(WVT)),m=c.next();!m.done;m=c.next())if(_.Y3(m.value)===J)return!0;return!1};
u4D=function(J,c,m){var b=LVe();(m=_.Y3(m))&&delete b[m];c&&(b[J]=c)};
ZP=function(J){return LVe()[J]};
_.qa=function(J,c,m,b){m=m===void 0?0:m;if(J!==Tbf(m)||c!==_.Ub(riD(m)))if(u4D(J,b,m),wzT(J,m),_.q3(riD(m),c),c=function(){setTimeout(function(){n1r(J)},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(c)}catch(x){c()}else c()};
fYe=function(J,c){c=c===void 0?"":c;var m=[],b;for(b in J)if(J.hasOwnProperty(b)){var x=c!==""?c+"."+b:b;typeof J[b]==="object"?m.push.apply(m,_.L6(fYe(J[b],x))):m.push([x,J[b]])}m.sort();return m};
_.Xze=function(J){var c=_.s$.apply(1,arguments);if(!UH(J)||c.some(function(b){return!UH(b)}))throw Error("gf");
c=_.M(c);for(var m=c.next();!m.done;m=c.next())Y9o(J,m.value)};
Y9o=function(J,c){for(var m in c)if(UH(c[m])){if(m in J&&!UH(J[m]))throw Error("hf");m in J||(J[m]={});Y9o(J[m],c[m])}else if(ZIr(c[m])){if(m in J&&!ZIr(J[m]))throw Error("jf");m in J||(J[m]=[]);q93(J[m],c[m])}else J[m]=c[m];return J};
q93=function(J,c){c=_.M(c);for(var m=c.next();!m.done;m=c.next())m=m.value,UH(m)?J.push(Y9o({},m)):ZIr(m)?J.push(q93([],m)):J.push(m);return J};
UH=function(J){return typeof J==="object"&&!Array.isArray(J)};
ZIr=function(J){return typeof J==="object"&&Array.isArray(J)};
S9D=function(J){for(var c=_.M(Object.entries(Ubo)),m=c.next();!m.done;m=c.next())if(m=_.M(m.value),m.next(),m=m.next().value,m==="SLI_STATUS_"+J)return m;return"SLI_STATUS_UNKNOWN"};
_.SK=function(J,c,m,b){return h6Q(J,c,function(){return new _.dbo(J,c,m,b)})};
_.$br=function(){return _.SK("SLI_NAME_YOUTUBE_WEB_APP_BOOTS","APP_BOOTS",12E4,"TIMEOUT")};
GEt=function(){return _.SK("SLI_NAME_YOUTUBE_WEB_NETWORK_REQUEST","NETWORK_REQUEST",12E4,"TIMEOUT")};
h0=function(){return _.SK("SLI_NAME_YOUTUBE_WEB_WARM_PAGE_NAVIGATION","WARM_PAGE_NAVIGATION",12E4,"TIMEOUT")};
E1J=function(){return _.SK("SLI_NAME_YOUTUBE_WEB_YT_INITIAL_DATA_PRESENT","YT_INITIAL_DATA_LOADED",6E4,"FAILURE")};
v1o=function(){return _.SK("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_ONE_MINUTE","STFE_GREATER_THAN_ONE_MINUTE",6E4,"SUCCESS")};
OIJ=function(){return _.SK("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_TEN_MINUTES","STFE_GREATER_THAN_TEN_MINUTES",6E5,"SUCCESS")};
o1J=function(J){J&&(J.dataset?J.dataset[AiT()]="true":_.E$([_.g8(R6Q)],J,"data-loaded","true".toString()))};
Qso=function(J){return J?J.dataset?J.dataset[AiT()]:J.getAttribute("data-loaded"):null};
AiT=function(){return e6f.loaded||(e6f.loaded="loaded".replace(/\-([a-z])/g,function(J,c){return c.toUpperCase()}))};
_.dK=function(J,c,m){jsr(J,c,m===void 0?null:m)};
_.lYe=function(J,c){J&&c&&(J=""+_.mj(c),(J=FV2[J])&&_.gb2(J))};
jsr=function(J,c,m){m=m===void 0?null:m;var b=_.yiG(J),x=document.getElementById(b),P=x&&Qso(x),p=x&&!P;P?c&&c():(c&&(P=_.V5(b,c),c=""+_.mj(c),FV2[c]=P),p||(x=Bbe(J,b,function(){Qso(x)||(o1J(x),_.JOm(b),_.P7(function(){_.mEm(b)},0))},m)))};
Bbe=function(J,c,m,b){b=b===void 0?null:b;var x=_.id("SCRIPT");x.id=c;x.onload=function(){m&&setTimeout(m,0)};
x.onreadystatechange=function(){switch(x.readyState){case "loaded":case "complete":x.onload()}};
b&&x.setAttribute("nonce",b);_.$h(x,_.ud(J));J=document.getElementsByTagName("head")[0]||document.body;J.insertBefore(x,J.firstChild);return x};
_.yiG=function(J){var c=document.createElement("a");W0(c,J);return"js-"+$3(c.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
g13=function(J){var c=_.Ub("INNERTUBE_HOST_OVERRIDE");c&&(J=String(c)+String(_.Gv(J)));return J};
JED=function(J){var c={};_.w("json_condensed_response")&&(c.prettyPrint="false");return J=Le2(J,c)};
_.EH=function(J){return Fk(J)?"same-origin":"include"};
_.vS=function(J){return Fk(J)?"same-origin":"cors"};
OH=function(J,c,m){m=m===void 0?{}:m;J={method:c===void 0?"POST":c,mode:_.vS(J),credentials:_.EH(J)};c={};for(var b=_.M(Object.keys(m)),x=b.next();!x.done;x=b.next())x=x.value,m[x]&&(c[x]=m[x]);Object.keys(c).length>0&&(J.headers=c);return J};
_.A0=function(J,c){c=c===void 0?{}:c;return"service:"+J+"/"+Object.keys(c).sort().map(function(m){return m+":"+c[m]}).join("/")};
cET=function(J){var c,m,b,x;J=(c=_.L(J,_.Rz))==null?void 0:(m=c.watchEndpointSupportedOnesieConfig)==null?void 0:(b=m.html5PlaybackOnesieConfig)==null?void 0:(x=b.commonConfig)==null?void 0:x.url;if(!J)return[];c=new _.oz(J);return c.JSC$8042_domain_?["https://"+c.JSC$8042_domain_+"/generate_204"]:[]};
_.xBe=function(){return mBD()||uRT()||bCf&&Z4("version/")?!0:_.Ub("EOM_VISITOR_DATA")?!1:!0};
V_t=function(J){var c=J.docid||J.video_id||J.videoId||J.id;if(c)return c;c=J.raw_player_response;c||(J=J.player_response)&&(c=JSON.parse(J));return c&&c.videoDetails&&c.videoDetails.videoId||null};
PgQ=function(J){return J.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()};
QM=function(J){return!isNaN(Number(J))&&!_.Mf(J)};
_.jK=function(J,c,m,b){b=b===void 0?!0:b;var x=_.Ub("VALID_SESSION_TEMPDATA_DOMAINS",[]),P=_.es(window.location.href);P&&x.push(P);P=_.es(J);if(_.Aq(x,P)||!P&&_.xt(J,"/"))if(x=document.createElement("a"),W0(x,J),J=x.href)if(J=_.Gv(J),J=_.eK(J))b&&!c.csn&&(c.itct||c.ved)&&(c=Object.assign({csn:_.Y3()},c)),m?(m=parseInt(m,10),isFinite(m)&&m>0&&M_m(J,c,m)):M_m(J,c)};
N2o=function(J){var c=_.Ub("VALID_SESSION_TEMPDATA_DOMAINS",[]),m=_.es(window.location.href);m&&c.push(m);m=_.es(J);if(!(_.Aq(c,m)||!m&&_.xt(J,"/")))return null;J=_.Gv(J);(J=_.eK(J))?(J=psT(J),J=(J=_.ar.get(J,void 0)||null)?_.Ob(J):{}):J=null;return J};
M_m=function(J,c,m){J=psT(J);c=c?_.Ir(c):"";m=m||5;_.xBe()&&_.kK(J,c,m)};
psT=function(J){for(var c=_.M(t_e),m=c.next();!m.done;m=c.next())J=_.FR(J,m.value);return"ST-"+$3(J).toString(36)};
If2=function(J,c){J.commandMetadata&&_.L(J.commandMetadata,_.lk)&&_.L(J.commandMetadata,_.lk).url&&(J=_.Aa(_.L(J.commandMetadata,_.lk).url).adurl)&&_.We3(J)&&_.jK(_.Gv(J),{encoded_ad_playback_context:c})};
_.KRR=function(J){if(J.requestFullscreen)J=J.requestFullscreen(void 0);else if(J.webkitRequestFullscreen)J=J.webkitRequestFullscreen();else if(J.mozRequestFullScreen)J=J.mozRequestFullScreen();else if(J.msRequestFullscreen)J=J.msRequestFullscreen();else if(J.webkitEnterFullscreen)J=J.webkitEnterFullscreen();else return Promise.reject(Error("sf"));return J instanceof Promise?J:Promise.resolve()};
_.BS=function(J){var c;_.vbq(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)?_.yM()==J&&(c=document):c=J;if(c&&(J=_.vbq(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],c))){J.call(c)instanceof Promise||Promise.resolve();return}Promise.resolve()};
_.yM=function(){var J=J===void 0?!1:J;var c=_.vbq(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(J)for(;c&&c.shadowRoot;)c=c.shadowRoot.fullscreenElement;return c?c:null};
_.gK=function(J,c){c=c===void 0?!0:c;J.addEventListener("wheel",CgG);J.overscrollConfig={cooldown:c}};
_.JS=function(J){J.overscrollConfig=void 0;J.removeEventListener("wheel",CgG)};
CgG=function(J){var c=J.deltaY,m=J.target,b=null;if(window.Polymer&&window.Polymer.Element){if(m=J.path||J.composedPath&&J.composedPath()){m=_.M(m);for(var x=m.next();!x.done&&(x=x.value,!afG(x,c));x=m.next())if(x.overscrollConfig){b=x;break}}}else for(;m&&!afG(m,c);){if(m.overscrollConfig){b=m;break}m=m.parentElement}b&&(c=b.overscrollConfig,c.cooldown?(b=J.deltaY,m=c.lastDeltaY||0,c.lastDeltaY=b,x=c.lastStopped||0,m&&x&&m>0==b>0?Math.abs(m)>=Math.abs(b)?(b=x+1200,m=!1):(b=x+600,m=!0):(b=Date.now()+
600,m=!0),b>Date.now()&&(J.preventDefault(),m&&(c.lastStopped=Date.now()))):J.preventDefault())};
afG=function(J,c){return c<0&&J.scrollTop>0||c>0&&J.scrollTop<J.scrollHeight-J.clientHeight-1?(J=getComputedStyle(J).overflowY,J=="auto"||J=="scroll"):!1};
_.cA=function(J,c,m,b){b||(b={bubbles:!0,cancelable:!1,composed:!0});m!==null&&m!==void 0&&(b.detail=m);var x=new CustomEvent(c,b);_.w("untrack_fire_custom_event_killswitch")?J.dispatchEvent(x):ID(function(){return void J.dispatchEvent(x)});
return x};
_.m9=function(J,c,m,b){c=new k_q(c,!(b===void 0||!b),m);_.cA(J,"yt-action",c);return c.returnValue};
_.bJ=function(J,c,m){return _.m9(J,c,m,!0)};
_.x2=function(J,c,m){return _.m9(J,c,m)[0]};
_.PA=function(J,c,m,b){c&&c.length&&c.forEach(function(x){var P=Ggu(x);P&&(_.w("handle_service_request_actions")&&x.commandMetadata&&x.commandMetadata.webCommandMetadata&&x.commandMetadata.webCommandMetadata.sendPost?_.Vq(m?m:J,[x]):_.bJ(J,P,[x,m,b]))})};
_.Vq=function(J,c){var m=[J];c&&m.push.apply(m,c);c=_.m9(J,"yt-service-request",m);return c.length>0&&(c=c[0],_.cA(J,"yt-service-request-sent",c),c&&c.ajaxPromise)?(c.ajaxPromise.then(function(b){_.cA(J,"yt-service-request-completed",b)},function(b){_.cA(J,"yt-service-request-error",{error:b,
params:m})},J),c.ajaxPromise):_.ML()};
_.tS=function(J,c){if(_.w("handle_service_request_actions"))_.PA(c,J,c);else{J=_.M(J);for(var m=J.next();!m.done;m=J.next()){m=m.value;var b=void 0;((b=_.L(m,_.pX))==null?0:b.commands)?_.tS(_.L(m,_.pX).commands,c):(b=void 0,((b=_.L(m,_.In))==null?0:b.actions)?_.tS(_.L(m,_.In).actions,c):(b=void 0,((b=_.L(m.commandMetadata,_.lk))==null?0:b.sendPost)?_.Vq(c,[m]):_.PA(c,[m],c)))}}};
_.iCT=function(J,c,m){c=c===void 0?{}:c;typeof c==="function"&&(c={callback:c});m||c._c&&c._c.jsl&&c._c.jsl.h||_.Lw.extend(c,{_c:{jsl:{h:_.Ub("GAPI_HINT_PARAMS")}}});(c.gapiHintOverride||_.Ub("GAPI_HINT_OVERRIDE"))&&(m=_.Aa(document.location.href).gapi_jsh)&&_.Lw.extend(c,{_c:{jsl:{h:m}}});HCt(J,c)};
_.CX=function(J,c,m){c=c===void 0?{}:c;J=(J=J in KX?KX[J]:m)||"";m={};for(var b in c){m={key$jscomp$788:m.key$jscomp$788};m.key$jscomp$788=b;var x=function(P){return function(){return String(c[P.key$jscomp$788])}}(m);
J=J.replace(new RegExp("\\$\\{"+m.key$jscomp$788+"\\}","gi"),x);J=J.replace(new RegExp("\\$"+m.key$jscomp$788,"gi"),x)}return J};
_.an=function(J,c){return ncJ(J in KX?KX[J]:{},c)};
ncJ=function(J,c){var m=_.Ub("I18N_PLURAL_RULES");m||(m=function(b){return b==1?"one":"other"});
return(J=J["case"+c]||J[m(c)])?J.replace("#",c.toString()):c+""};
rEo=function(J){var c=T2T(J),m=document.getElementById(c),b=m&&Qso(m);b||m&&!b||(m=wsq(J,c,function(){if(!Qso(m)){o1J(m);_.JOm(c);var x=_.k2(_.mEm,c);_.P7(x,0)}}))};
wsq=function(J,c,m){var b=document.createElement("link");b.id=c;b.onload=function(){m&&setTimeout(m,0)};
J=_.ud(J);_.O$(b,J,"stylesheet");(document.getElementsByTagName("head")[0]||document.body).appendChild(b);return b};
T2T=function(J){var c=_.id("A");W0(c,K1(J));return"css-"+$3(c.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.LRt=function(J){var c=sEr();J!==c&&(c=_.HA(),!_.w("web_autonav_allow_off_by_default")&&J||_.iJ(0,141,!0),_.iJ(0,140,!J),c.save())};
sEr=function(){var J=_.HA();return _.w("web_autonav_allow_off_by_default")&&!J.getFlag(141)&&_.Ub("AUTONAV_OFF_BY_DEFAULT")?!1:!J.getFlag(140)};
DBf=function(J,c){var m,b;J=((m=J.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(b=m.videoAuthorizationToken)==null?void 0:b.credentialTransferTokens)||[];for(m=0;m<J.length;++m)if(J[m].scope===c)return J[m].token||void 0};
WRQ=function(J){for(var c=0,m=0;m<J.length;m++)c=c*31+J.charCodeAt(m),m<J.length-1&&(c%=0x800000000000);return c%1E5};
_.nX=function(J){return _.$y("ytcsi."+(J||"")+"data_")||zCm(J)};
_.u8D=function(J){J=_.nX(J);J.metadata||(J.metadata={});return J.metadata};
_.ff2=function(J){J=_.nX(J);J.tick||(J.tick={});return J.tick};
_.YZ3=function(J){J=_.nX(J);if(J.gel){var c=J.gel;c.gelInfos||(c.gelInfos={});c.gelTicks||(c.gelTicks={})}else J.gel={gelTicks:{},gelInfos:{}};return J.gel};
_.Xsf=function(J){J=_.YZ3(J);J.gelInfos||(J.gelInfos={});return J.gelInfos};
ZCm=function(J){var c=_.nX(J).nonce;c||(c=zv(16),_.nX(J).nonce=c);return c};
zCm=function(J){var c={tick:{},info:{}};_.jD("ytcsi."+(J||"")+"data_",c);return c};
qZG=function(){var J=_.$y("ytcsi.debug");J||(J=[],_.jD("ytcsi.debug",J),_.jD("ytcsi.reference",{}));return J};
_.SZm=function(J){J=J||"";var c=UBD();if(c[J])return c[J];var m=qZG(),b={timerName:J,info:{},tick:{},span:{},jspbInfo:[]};m.push(b);return c[J]=b};
hCQ=function(J){J=J||"";var c=UBD();c[J]&&delete c[J];var m=qZG(),b={timerName:J,info:{},tick:{},span:{},jspbInfo:[]};m.push(b);c[J]=b};
UBD=function(){var J=_.$y("ytcsi.reference");if(J)return J;qZG();return _.$y("ytcsi.reference")};
_.$Bq=function(J){return dBe[J]||"LATENCY_ACTION_UNKNOWN"};
OCu=function(J,c,m){m=m===void 0?{}:m;var b=!1;_.Ss("ytLoggingEventsDefaultDisabled",!1)&&(b=!0);b=b?null:WO;m=m===void 0?{}:m;var x=Math.round(m.timestamp||(0,_.y4)());_.TB(c,1,x<Number.MAX_SAFE_INTEGER?x:0);x=new G_T;if(m.lact)_.TB(x,1,isFinite(m.lact)?m.lact:-1);else if(m.timestamp)_.TB(x,1,-1);else{var P=_.cO();_.TB(x,1,isFinite(P)?P:-1)}if(m.sequenceGroup&&!_.w("web_gel_sequence_info_killswitch")){P=m.sequenceGroup;var p=KPm(P),t=new Ecu;_.TB(t,2,p);_.aw(t,1,P);_.m_(x,3,t);m.endOfSequence&&delete vco[m.sequenceGroup]}_.m_(c,
33,x);(m.sendIsolatedPayload?nrR:TU2)(J,{endpoint:"log_event",payload:c,cttAuthInfo:m.cttAuthInfo,dangerousLogToVisitorSession:m.dangerousLogToVisitorSession},b)};
_.wM=function(){return(_.w("csi_use_time_origin")||_.w("csi_use_time_origin_tvhtml5"))&&_.Tm.timeOrigin?Math.floor(_.Tm.timeOrigin):_.Tm.timing.navigationStart};
_.AEf=function(J,c){_.LX("_start",J,c)};
_.Du=function(J,c){if(!_.w("web_csi_action_sampling_enabled")||!_.nX(c).actionDisabled){var m=_.SZm(c||"");_.Xze(m.info,J);J.loadType&&(m=J.loadType,_.u8D(c).loadType=m);_.Xze(_.Xsf(c),J);m=ZCm(c);c=_.nX(c).cttAuthInfo;RC2().info(J,m,c)}};
oc2=function(){var J,c,m,b;return((b=_.BG().resolve(_.y6(se))==null?void 0:(J=IGm())==null?void 0:(c=J.loggingHotConfig)==null?void 0:(m=c.csiConfig)==null?void 0:m.debugTicks)!=null?b:[]).map(function(x){return Object.values(x)[0]})};
_.LX=function(J,c,m){if(!_.w("web_csi_action_sampling_enabled")||!_.nX(m).actionDisabled){var b=ZCm(m),x;if(x=_.w("web_csi_debug_sample_enabled")&&b){(_.BG().resolve(_.y6(se))==null?0:IGm())&&!QEm&&(QEm=!0,_.LX("gcfl",(0,_.y4)(),m));var P,p,t;x=(_.BG().resolve(_.y6(se))==null?void 0:(P=IGm())==null?void 0:(p=P.loggingHotConfig)==null?void 0:(t=p.csiConfig)==null?void 0:t.debugSampleWeight)||0;if(P=x!==0)b:{P=oc2();if(P.length>0)for(p=0;p<P.length;p++)if(J===P[p]){P=!0;break b}P=!1}P?(x=WRQ(b)%x!==
0,_.nX(m).debugTicksExcludedLogged||(P={},P.debugTicksExcluded=x,_.Du(P,m)),_.nX(m).debugTicksExcludedLogged=!0):x=!1}if(!x){J[0]!=="_"&&eC2(J,m,c);x=_.SZm(m||"");x.tick[J]=c||(0,_.y4)();if(x.callback&&x.callback[J])for(x=_.M(x.callback[J]),P=x.next();!P.done;P=x.next())P=P.value,P();x=_.YZ3(m);x.gelTicks&&(x.gelTicks[J]=!0);P=_.ff2(m);x=c||(0,_.y4)();_.w("log_repeated_ytcsi_ticks")?J in P||(P[J]=x):P[J]=x;P=_.nX(m).cttAuthInfo;J==="_start"?RC2().baseline(b,c,P):RC2().tick(J,b,c,P);_.jEG(m);return x}}};
eC2=function(J,c,m){if(_.Tm.mark)if(J.startsWith("mark_")||(J="mark_"+J),c&&(J+=" ("+c+")"),m===void 0||_.w("web_csi_disable_alt_time_performance_mark"))_.Tm.mark(J);else{m=_.w("csi_use_performance_navigation_timing")?m-_.Tm.timeOrigin:m-(_.Tm.timeOrigin||_.Tm.timing.navigationStart);try{_.Tm.mark(J,{startTime:m})}catch(b){}}};
FRf=function(){var J,c=(J=_.Tm.getEntriesByType)==null?void 0:J.call(_.Tm,"mark");c&&c.forEach(function(m){if(m.name.startsWith("mark_")){var b;(b=_.Tm.clearMarks)==null||b.call(_.Tm,m.name)}})};
_.lft=function(){switch(Ebt()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
_.yEt=function(J){var c={},m=function(P,p,t){p=p.match("_rid")?p.split("_rid")[0]:p;typeof t==="number"&&(t=JSON.stringify(t));P.requestIds?P.requestIds.push({endpoint:p,id:t}):P.requestIds=[{endpoint:p,id:t}]};
J=_.M(Object.entries(J));for(var b=J.next();!b.done;b=J.next()){var x=_.M(b.value);b=x.next().value;x=x.next().value;switch(b){case "GetBrowse_rid":m(c,b,x);break;case "GetGuide_rid":m(c,b,x);break;case "GetHome_rid":m(c,b,x);break;case "GetPlayer_rid":m(c,b,x);break;case "GetSearch_rid":m(c,b,x);break;case "GetSettings_rid":m(c,b,x);break;case "GetTrending_rid":m(c,b,x);break;case "GetWatchNext_rid":m(c,b,x);break;case "yt_red":c.isRedSubscriber=!!x;break;case "yt_ad":c.isMonetized=!!x}}return c};
_.B2J=function(J){var c=_.WA("aft",J);if(c)return c;c=_.Ub((J||"")+"TIMING_AFT_KEYS",["ol"]);for(var m=c.length,b=0;b<m;b++){var x=_.WA(c[b],J);if(x)return x}return NaN};
_.gcG=function(J,c){_.jD("ytglobal.timing"+(c||"")+"ready_",J)};
_.WA=function(J,c){if(J=_.ff2(c)[J])return typeof J==="number"?J:J[J.length-1]};
_.jEG=function(J){var c=_.WA("_start",J),m=_.B2J(J),b=!JWf;c&&m&&b&&(CWq(cWJ,new mwT(Math.round(m-c),J)),JWf=!0)};
xwt=function(J){zCm(J);b_R();FRf();J||(_.Ub("TIMING_ACTION")&&_.q3("PREVIOUS_ACTION",_.Ub("TIMING_ACTION")),_.q3("TIMING_ACTION",""))};
_.Vzo=function(J){J=J===void 0?{}:J;_.du(function(){zm();hCQ();xwt();_.gcG(!1);J.cttAuthInfo&&(_.nX().cttAuthInfo=J.cttAuthInfo);_.q3("TIMING_AFT_KEYS",[]);J.isHot?_.uJ({loadType:"hot"}):_.uJ({loadType:"warm"});_.q3("TIMING_ACTION","");delete _.Ub("TIMING_INFO",{}).yt_lt;_.du(_.AEf)(J.startTime,void 0)})()};
_.fX=function(J,c,m,b){c=c===void 0?{}:c;_.du(function(){var x=m?m:J;P4u(x);var P=c.sampleRate;if(!_.w("web_csi_action_sampling_enabled")||P===void 0||P<=1)P=!1;else{var p=ZCm(x);P=WRQ(p)%P!==0}P&&(_.nX(x).actionDisabled=!0);_.SZm(x||"").info.actionType=J;c.cttAuthInfo&&(_.nX(x).cttAuthInfo=c.cttAuthInfo);_.q3(x+"TIMING_ACTION",J);_.du(_.AEf)(c.startTime,x);P={actionType:b||_.$Bq(J)};c.logPreviousAction&&(P.previousAction=_.$Bq(_.Ub("TIMING_ACTION")));(p=_.Y3())&&p!=="UNDEFINED_CSN"&&(P.clientScreenNonce=
p);_.uJ(P,x);_.gcG(!0,x)})()};
P4u=function(J){_.du(function(){zm(J);hCQ(J);xwt(J)})()};
Mzq=function(){_.du(function(){var J=[],c;for(c in _.$y("ytcsi.".slice(0,-1)))c.endsWith("data_")&&J.push(c.slice(0,-5));J=_.M(J);for(c=J.next();!c.done;c=J.next())P4u(c.value);zm()})()};
_.NDo=function(J){return _.du(function(){return _.pER("_start",J)})()};
_.uJ=function(J,c,m){_.du(_.Du)(J,c,m===void 0?!1:m)};
_.Y2=function(J,c,m){return _.du(_.LX)(J,c,m)};
_.pER=function(J,c){return _.du(function(){var m=_.ff2(c);return J in m})()};
IrD=function(J){if(!_.w("universal_csi_network_ticks"))return"";J=_.NU(J)||"";for(var c=Object.keys(tzG),m=0;m<c.length;m++){var b=c[m];if(J.includes(b))return b}return""};
C4m=function(J){if(!_.w("universal_csi_network_ticks"))return function(){};
var c=tzG[J];return c?(_.Xv(c),function(){var m=_.w("universal_csi_network_ticks")?(m=Kce[J])?_.Xv(m):!1:!1;return m}):function(){}};
_.Xv=function(J,c,m){return _.du(function(){if(_.pER(J,m))return!1;_.Y2(J,c,m);return!0})()};
_.Zu=function(J,c,m){_.du(function(){if(!_.NDo(m)||_.pER(J,m))return!1;_.Y2(J,c,m);return!0})()};
_.qL=function(J){return _.du(_.WA)(J,void 0)};
zm=function(J){_.NDo(J)&&_.Y2("aa",void 0,J)};
_.n_J=function(J,c,m,b,x,P,p,t,I){var a=arQ();t=new _.uk({veType:c,youtubeData:P,jspbYoutubeData:t});P=U2({},a);x&&(P.cttAuthInfo=x);x={csn:a,pageVe:t.getAsJson()};_.w("expectation_logging")&&I&&I.screenCreatedLoggingExpectations&&(x.screenCreatedLoggingExpectations=I.screenCreatedLoggingExpectations);m&&m.visualElement?(x.implicitGesture={parentCsn:m.clientScreenNonce,gesturedVe:m.visualElement.getAsJson()},p&&(x.implicitGesture.gestureType=p)):m&&_.qz(new _.w3("newScreen() parent element does not have a VE - rootVe",
c));b&&(x.cloneCsn=b);J?Dt("screenCreated",x,J,P):_.zB("screenCreated",x,P);CWq(w2t,new kce(a));SH.clear();H_2.clear();i_D.clear();return a};
hS=function(J,c,m,b,x){TD3(J,c,m,[b],x===void 0?!1:x)};
TD3=function(J,c,m,b,x){x=x===void 0?!1:x;for(var P=U2({cttAuthInfo:ZP(c)||void 0},c),p=_.M(b),t=p.next();!t.done;t=p.next()){t=t.value;var I=t.getAsJson();(_.Lw.isEmpty(I)||!I.trackingParams&&!I.veType)&&_.qz(Error("tf"));if(_.w("no_client_ve_attach_unless_shown")){var a=wEu(t,c);if(I.veType&&!H_2.has(a)&&!i_D.has(a)&&!x){if(!_.w("il_attach_cache_limit")||SH.size<1E3){SH.set(a,[J,c,m,t]);return}_.w("il_attach_cache_limit")&&SH.size>1E3&&_.qz(new _.w3("IL Attach cache exceeded limit"))}t=wEu(m,c);
SH.has(t)?rWo(m,c):i_D.set(t,!0)}}b=b.filter(function(k){k.csn!==c?(k.csn=c,k=!0):k=!1;return k});
m={csn:c,parentVe:m.getAsJson(),childVes:_.Wm(b,function(k){return k.getAsJson()})};
c==="UNDEFINED_CSN"?dM("visualElementAttached",P,m):J?Dt("visualElementAttached",m,J,P):_.zB("visualElementAttached",m,P)};
LcG=function(J,c,m,b,x){sbT(J,c,m,x)};
sbT=function(J,c,m,b){Dw2(m,c);var x=U2({cttAuthInfo:ZP(c)||void 0},c);m={csn:c,ve:m.getAsJson(),eventType:1};b&&(m.clientData=b);c==="UNDEFINED_CSN"?dM("visualElementShown",x,m):J?Dt("visualElementShown",m,J,x):_.zB("visualElementShown",m,x)};
WcT=function(J,c,m,b){Dw2(m,c);var x=U2({cttAuthInfo:ZP(c)||void 0},c);m={csn:c,ve:m.getAsJson(),eventType:4};b&&(m.clientData=b);c==="UNDEFINED_CSN"?dM("visualElementShown",x,m):J?Dt("visualElementShown",m,J,x):_.zB("visualElementShown",m,x)};
zXe=function(J,c,m,b,x){var P=(b=b===void 0?!1:b)?16:8;b=U2({cttAuthInfo:ZP(c)||void 0,endOfSequence:b},c);m={csn:c,ve:m.getAsJson(),eventType:P};x&&(m.clientData=x);c==="UNDEFINED_CSN"?dM("visualElementHidden",b,m):J?Dt("visualElementHidden",m,J,b):_.zB("visualElementHidden",m,b)};
frR=function(J,c,m,b,x){ulR(J,c,m,void 0,b,x)};
ulR=function(J,c,m,b,x){Dw2(m,c);b=b||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var P=U2({cttAuthInfo:ZP(c)||void 0},c);m={csn:c,ve:m.getAsJson(),gestureType:b};x&&(m.clientData=x);c==="UNDEFINED_CSN"?dM("visualElementGestured",P,m):J?Dt("visualElementGestured",m,J,P):_.zB("visualElementGestured",m,P)};
Y_T=function(J,c,m,b){var x=U2({cttAuthInfo:ZP(c)||void 0},c);m={csn:c,ve:m.getAsJson(),clientData:b};c==="UNDEFINED_CSN"?dM("visualElementStateChanged",x,m):J?Dt("visualElementStateChanged",m,J,x):_.zB("visualElementStateChanged",m,x)};
XED=function(){var J=HIo(16);for(var c=[],m=0;m<J.length;m++)c.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(J[m]&63));return c.join("")};
dM=function(J,c,m){Z_R.push({payloadName:J,payload:m,jspbPayload:void 0,options:c});q_t||(q_t=scJ())};
TfR=function(J){if(Z_R){for(var c=_.M(Z_R),m=c.next();!m.done;m=c.next())m=m.value,m.payload&&(m.payload.csn=J.csn,_.zB(m.payloadName,m.payload,m.options));Z_R.length=0}q_t=0};
wEu=function(J,c){return""+J.getAsJson().veType+J.getAsJson().veCounter+c};
Dw2=function(J,c){if(_.w("no_client_ve_attach_unless_shown")){var m=wEu(J,c);H_2.set(m,!0);rWo(J,c)}};
rWo=function(J,c){J=wEu(J,c);SH.has(J)&&(c=SH.get(J)||[],hS(c[0],c[1],c[2],c[3],!0),SH.delete(J))};
U2=function(J,c){_.w("log_sequence_info_on_gel_web")&&(J.sequenceGroup=c);return J};
_.$2=function(J,c,m){_.du(hS)(void 0,J,c,m)};
_.Gm=function(J,c,m){_.du(TD3)(void 0,J,c,m)};
_.E2=function(J,c){_.du(LcG)(void 0,J,c,void 0,void 0,void 0)};
_.vA=function(J,c,m){_.du(function(){_.vG(c,function(b){WcT(void 0,J,b,m)})})()};
_.O2=function(J,c,m,b){_.du(function(){_.vG(c,function(x){zXe(void 0,J,x,m,b)})})()};
_.AS=function(J,c,m){_.du(frR)(void 0,J,c,m,void 0)};
_.Rn=function(J,c,m,b){_.du(ulR)(void 0,J,c,m,b,void 0)};
_.on=function(J,c,m){_.du(Y_T)(void 0,J,c,m,void 0)};
eH=function(J){return Qq.get(J)};
UwD=function(J,c){Qq.set(J,c)};
S_r=function(J,c){var m=Object.keys(J);J=new _.w3("[Command Handler] "+c,{filteredCommandNames:m,originalCommand:J});_.Xc(J)};
hXm=function(J,c){S_r(J,c+" was called but not set")};
dwG=function(J){return function(){return new J}};
jH=function(J){return function(){return _.BG().resolve(J)}};
$wJ=function(J,c){var m=_.L(J,_.$H);if(m&&(m=c[m.signal]))return m();J=_.M(Object.keys(J));for(m=J.next();!m.done;m=J.next())if(m=m.value,c[m]&&(m=c[m]))return m()};
Fv=function(J,c,m,b){return{browseEndpoint:{browseId:J},commandMetadata:{webCommandMetadata:{url:c,rootVe:m,webPageType:b===void 0?"WEB_PAGE_TYPE_BROWSE":b}}}};
GcR=function(J,c,m){var b=c=c===void 0?0:c;m=m===void 0?0:m;var x=m-b;return _.lJ(J,"PPSV",void 0,void 0,(x>600?0:x<60||m<=0||b/m>.9)?0:c)};
_.lJ=function(J,c,m,b,x){var P="/watch?v="+J;J={videoId:J};c&&(J.playlistId=c,P+="&list="+c);b&&(P+="&pp="+b);x&&(J.startTimeSeconds=x,P+="&t="+x+"s");c={watchEndpoint:J,commandMetadata:{webCommandMetadata:{url:P,rootVe:3832,webPageType:"WEB_PAGE_TYPE_WATCH"}}};m&&(c.clickTrackingParams=m);b&&(_.L(c,_.Rz).playerParams=b);return c};
E_2=function(J){return{browseEndpoint:{browseId:"VL"+J},commandMetadata:{webCommandMetadata:{url:"/playlist?list="+J,rootVe:5754,webPageType:"WEB_PAGE_TYPE_PLAYLIST"}}}};
v_3=function(J){if(J){var c;if(J){var m=(c=_.L(J.commandMetadata,_.lk))==null?void 0:c.url;c=!(!m||m==="/service_ajax")}else c=!1;if(c)return J;var b;if(J=(b=_.L(J,_.pX))==null?void 0:b.commands)for(b=_.M(J),J=b.next();!J.done;J=b.next())if(J=v_3(J.value))return J}};
_.yq=function(J){return{runs:[{text:J}]}};
O_T=function(J,c){return J&&c?{runs:[{text:J,navigationEndpoint:c}]}:void 0};
BA=function(J){return J?_.yq(J):void 0};
_.gM=function(J){return J?{simpleText:J}:void 0};
_.J7=function(J){var c=J.type;J=J.payload;c={type:c};J!==void 0&&(c.payload=J);return c};
AWe=function(J,c,m){for(var b=Object.assign({},J),x=_.M(Object.keys(c)),P=x.next();!P.done;P=x.next()){P=P.value;var p=J[P],t=c[P];if(t===void 0)delete b[P];else if(p===void 0)b[P]=t;else if(Array.isArray(t)&&Array.isArray(p))b[P]=m?[].concat(_.L6(p),_.L6(t)):t;else if(!Array.isArray(t)&&_.cB(t)&&!Array.isArray(p)&&_.cB(p))b[P]=AWe(p,t,m);else if(typeof t===typeof p)b[P]=t;else return c=new _.w3("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:P,originalValue:p,updateValue:t}),
_.Xc(c),J}return b};
Qbm=function(J){if(!J.length)return"";try{if(RXT)return RXT.decode(J);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(J)}catch(p){}for(var c=0,m=[],b=J.length;c<b;){for(var x=0;x<1024&&c<b;){var P=J[c++];if(P<128)o_e[x++]=P;else{if(P<224)P=(P&31)<<6|J[c++]&63;else if(P<240)P=(P&15)<<12|(J[c++]&63)<<6|J[c++]&63;else{if(x+1===1024){--c;break}P=(P&7)<<18|(J[c++]&63)<<12|(J[c++]&63)<<6|J[c++]&63;P-=65536;o_e[x++]=55296|P>>10;P=56320|P&1023}o_e[x++]=P}}P=String.fromCharCode.apply(String,
o_e);x<1024&&(P=P.substring(0,x));m.push(P)}return m.join("")};
jbt=function(J,c){var m;if((m=eXr)==null?0:m.encodeInto)return c=eXr.encodeInto(J,c),c.read<J.length?J.length*4:c.written;for(var b=m=0;b<J.length;b++){var x=J.charCodeAt(b);x<128?c[m++]=x:(x<2048?c[m++]=x>>6|192:((x&64512)===55296&&b+1<J.length&&(J.charCodeAt(b+1)&64512)===56320?(x=65536+((x&1023)<<10)+(J.charCodeAt(++b)&1023),c[m++]=x>>18|240,c[m++]=x>>12&63|128):c[m++]=x>>12|224,c[m++]=x>>6&63|128),c[m++]=x&63|128)}return m};
FcD=function(J,c){J=new Uint8Array(J);c&&J.set(c);return J};
_.mA=function(J){J=new lrt(new yWu([_.I2(decodeURIComponent(J))]));if(BDJ(J,2)){var c=c2(J);var m=J.pos;var b=J.arrayView;m=m===void 0?0:m;var x=c===void 0?-1:c;m=m===void 0?0:m;x=x===void 0?-1:x;if(b.totalLength&&x){x<0&&(x=b.totalLength-m);b.focus(m);if(!(m-b.arrayPos+x<=b.arrays[b.arrayIdx].length)){var P=b.arrayIdx,p=b.arrayPos;b.focus(m+x-1);p=new Uint8Array(b.arrayPos+b.arrays[b.arrayIdx].length-p);for(var t=0,I=P;I<=b.arrayIdx;I++)p.set(b.arrays[I],t),t+=b.arrays[I].length;b.arrays.splice(P,
b.arrayIdx-P+1,p);b.arrayIdx=0;b.arrayPos=0;b.focus(m)}P=b.arrays[b.arrayIdx];b=new DataView(P.buffer,P.byteOffset+m-b.arrayPos,x)}else b=new DataView(new ArrayBuffer(0));b=new Uint8Array(b.buffer,b.byteOffset,b.byteLength);J.pos+=c;c=b}else c=void 0;c=c?Qbm(c):void 0;J=BDJ(J,4)?c2(J):void 0;b=g_e[J];if(typeof b==="undefined")throw J=new _.w3("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:J}),_.Xc(J),J;return{entityTypeFieldNumber:J,entityType:b,entityId:c}};
_.V_=function(J,c,m){m=m===void 0?0:m;var b=new JNQ;if(eXr)J=eXr.encode(J);else{var x=new Uint8Array(Math.ceil(J.length*1.2)),P=jbt(J,x);x.length<P&&(x=new Uint8Array(P),P=jbt(J,x));x.length>P&&(x=x.subarray(0,P));J=x}J!==void 0&&(bW(b,18),x=J.length,bW(b,x),xY(b,x),b.buf.set(J,b.pos),b.pos+=x);J=cND[c];if(typeof J==="undefined")throw m=new _.w3("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:c}),_.Xc(m),m;J!==void 0&&(bW(b,32),bW(b,J));bW(b,40);bW(b,1);c=new Uint8Array(b.buf.buffer,
b.buf.byteOffset,b.pos);return encodeURIComponent(_.yR(c,m))};
mPt=function(J){J=J.key||J.id;if(!J)throw Error("wf");return J};
xPt=function(J,c){J=J===void 0?{}:J;return bHq(J,c)};
VvG=function(J,c,m,b){if(b===void 0)return b=Object.assign({},J[c]||{}),m=(delete b[m],b),b={},Object.assign({},J,(b[c]=m,b));var x={},P={};return Object.assign({},J,(P[c]=Object.assign({},J[c],(x[m]=b,x)),P))};
Peu=function(J,c,m,b,x){var P=J[c];if(P==null||!P[m])return J;b=AWe(P[m],b,x==="REPEATED_FIELDS_MERGE_OPTION_APPEND");x={};P={};return Object.assign({},J,(P[c]=Object.assign({},J[c],(x[m]=b,x)),P))};
_.P2=function(J,c,m){return J[c]?J[c][m]||null:null};
pir=function(){if(Mvo)return Mvo();var J={};Mvo=lj("PersistentEntityStoreDb",{objectStores:(J.EntityStore={addedAtVersion:1},J.EntityAssociationStore={addedAtVersion:2},J),shared:!1,upgrade:function(c,m){m(1)&&$$(hU(c,"EntityStore",{keyPath:"key"}),"entityType","entityType");m(2)&&(c=hU(c,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),$$(c,"byParentEntityKey","parentEntityKey"),$$(c,"byChildEntityKey","childEntityKey"))},
version:3});return Mvo()};
Ny3=function(J){return _.OO(pir(),J)};
My=function(J){return window.Int32Array?new Int32Array(J):Array(J)};
IQ3=function(J){return _.OO(tvq(),J)};
KQt=function(J){return new pk("WRONG_DATA_TYPE",{encoderVersion:J})};
Ce2=function(J){return J instanceof Error?new pk("UNKNOWN_ENCODE_ERROR",{originalMessage:J.message}):new pk("UNKNOWN_ENCODE_ERROR")};
aQo=function(J){return J instanceof Error?new pk("UNKNOWN_DECODE_ERROR",{originalMessage:J.message}):new pk("UNKNOWN_DECODE_ERROR")};
kW3=function(J,c){J=J instanceof pk?J:c(J);_.Xc(J);throw J;};
HHD=function(J){J=(new TextEncoder).encode(J).subarray(0,16);var c=new Uint8Array(16);c.set(J);return c};
n6e=function(J){var c=iHq[J];if(c)return c;_.qz(new _.w3("Entity model not found.",{entityType:J}))};
_.Ny=function(){Tym||(Tym=wit());return Tym};
wit=function(){var J,c,m;return _.N(function(b){if(b.nextAddress==1)return _.xL(b,2),_.K(b,_.Fb(),4);if(b.nextAddress!=2){J=b.yieldResult;if(!J||!_.To()||typeof _.mo.BroadcastChannel==="undefined")return b.return();c=new rNQ;return b.return(new t7(J,c))}m=_.NM(b);m instanceof Error&&_.Xc(m);return b.return()})};
_.Ic=function(J,c){var m;return _.N(function(b){if(b.nextAddress==1){m=J.mutations;if(!m||m.length<=0)return b.return();c&&c.dispatch(_.J7({type:"ENTITY_LOADED",payload:m}));return _.K(b,s9R(m),2)}m.length=0;_.tD(b)})};
s9R=function(J){var c;return _.N(function(m){return m.nextAddress==1?_.K(m,_.Ny(),2):(c=m.yieldResult)?_.K(m,_.Kk(c,"readwrite",function(b){for(var x={},P=_.M(J),p=P.next(),t={};!p.done;t={mutation$jscomp$4:void 0,mutationEntityType$jscomp$3:void 0},p=P.next())t.mutation$jscomp$4=p.value,t.mutation$jscomp$4.entityKey&&LQt(t.mutation$jscomp$4)&&(t.mutationEntityType$jscomp$3=(0,_.Lw.getAnyKey)(t.mutation$jscomp$4.payload),p=void 0,t.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_REPLACE"&&(p=function(I){return function(){return _.DP3(b,
I.mutation$jscomp$4.payload[I.mutationEntityType$jscomp$3],I.mutationEntityType$jscomp$3)}}(t)),t.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_DELETE"&&(p=function(I){return function(){return WQ3(b,I.mutation$jscomp$4.entityKey)}}(t)),t.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_UPDATE"&&(p=function(I){return function(){return zBG(b,I.mutation$jscomp$4.entityKey,I.mutation$jscomp$4.payload[I.mutationEntityType$jscomp$3],I.mutationEntityType$jscomp$3)}}(t)),p&&(x[t.mutation$jscomp$4.entityKey]=
x[t.mutation$jscomp$4.entityKey]?x[t.mutation$jscomp$4.entityKey].then(p):p()));
return hL.all(Object.values(x))}),0):m.return()})};
LQt=function(J){var c;J=(c=J.options)==null?void 0:c.persistenceOption;return J==="ENTITY_PERSISTENCE_OPTION_PERSIST"||J==="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"};
Poe=function(J,c){var m,b;_.N(function(x){if(x.nextAddress==1)return _.K(x,_.Ny(),2);if(x.nextAddress!=3)return(m=x.yieldResult)?_.K(x,_.Kk(m,"readonly",function(P){var p={},t=Object.keys(c).map(function(I){var a=c[I]?[].concat(_.L6(c[I])):[];return xDr(P,I,a,p)});
return hL.all(t).then(function(){return p})}),3):x.return();
b=x.yieldResult;Object.keys(b).length>0&&J.dispatch(VTR(b));_.tD(x)})};
xDr=function(J,c,m,b){return Ck(J,c,m).then(function(x){b[c]=MTQ(m,x)})};
MTQ=function(J,c){if(c.length!==J.length)throw Error("zf");return c.reduce(function(m,b,x){m[J[x]]=b;return m},{})};
tTm=function(J){var c=J.filter(function(x){var P;return(x==null?void 0:(P=x.transferEntity)==null?void 0:P.transferState)==="TRANSFER_STATE_COMPLETE"}).length,m=J.filter(function(x){var P;
return(x==null?void 0:(P=x.transferEntity)==null?void 0:P.transferState)==="TRANSFER_STATE_FAILED"}).length,b=J.filter(function(x){var P;
return(x==null?void 0:(P=x.transferEntity)==null?void 0:P.transferState)&&pYr.includes(x.transferEntity.transferState)});
if(!(c||b!=null&&b.length))return 0;c=_.NIJ(b)+c;J=J.length-m;return J===0?0:Math.round(c*100/J)/100};
_.NIJ=function(J){var c=[];c=c.concat.apply(c,_.L6(J.filter(function(P){return P.streamEntity}).map(function(P){var p=Object.assign({},P.streamEntity),t,I=(t=P.transferEntity)==null?void 0:t.transferState;
p.streamsProgress=p.streamsProgress||[];p.streamsProgress=p.streamsProgress.map(function(a){var k=Object.assign({},a);k.numBytesDownloaded=I==="TRANSFER_STATE_COMPLETE"?a.numTotalBytes:a.numBytesDownloaded;return k});
return p}).map(function(P){return P.streamsProgress})));
var m=J=0;c=_.M(c);for(var b=c.next();!b.done;b=c.next()){var x=b.value;b=Number(x.numBytesDownloaded);x=Number(x.numTotalBytes);m+=isNaN(b)?0:b;J+=isNaN(x)?0:x}return J===0?0:Math.round(m*100/J)/100};
Ijq=function(J){if(!J||!J.expirationTimestamp||!J.action)return!1;var c=(0,_.y4)()/1E3;return Number(J.expirationTimestamp)>=c};
ac=function(J){return J&&J.expirationTimestamp&&J.action?Ijq(J)&&J.action==="OFFLINE_VIDEO_POLICY_ACTION_OK":!1};
_.kY=function(J){return["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"].includes(J||"TRANSFER_STATE_UNKNOWN")};
KOr=function(J){var c=new JNQ;if(J!==void 0){var m=Math.ceil(Math.log2(J.length*4+2)/7);m=m===void 0?2:m;bW(c,10);c.submessagePosStack.push(c.pos);c.submessagePosStack.push(m);c.pos+=m;xY(c,J.length*1.2);m=jbt(J,c.buf.subarray(c.pos));c.pos+m>c.buf.length&&(xY(c,m),m=jbt(J,c.buf.subarray(c.pos)));c.pos+=m;J=c.submessagePosStack.pop();m=c.submessagePosStack.pop();for(var b=c.pos-m-J;J--;){var x=J?128:0;c.view.setUint8(m++,b&127|x);b>>=7}}c=new Uint8Array(c.buf.buffer,c.buf.byteOffset,c.pos);return(new TextDecoder("utf-8")).decode(c)};
_.H2=function(J){var c=0;J=_.M(J);for(var m=J.next(),b={};!m.done;b={transferState$jscomp$3:void 0},m=J.next()){var x=m.value,P=void 0;m=(P=x.streamEntity)!=null?P:{};P=void 0;b.transferState$jscomp$3=(P=x.transferEntity)==null?void 0:P.transferState;P=x=void 0;((x=m)==null?0:(P=x.streamsProgress)==null?0:P.length)&&m.streamsProgress.forEach(function(p){return function(t){t=Number(p.transferState$jscomp$3==="TRANSFER_STATE_COMPLETE"?t.numTotalBytes:t.numBytesDownloaded);isFinite(t)&&(c+=t)}}(b))}return c};
Coq=function(J){return J.some(function(c){var m;if(!(c==null?0:(m=c.transferEntity)==null?0:m.transferState)){var b;return!(c==null?0:(b=c.policyEntity)==null?0:b.action)||c.policyEntity.action==="OFFLINE_VIDEO_POLICY_ACTION_OK"}return pYr.includes(c.transferEntity.transferState)})};
aju=function(J,c){if(!c)return!1;if(_.w("of_pb_en_po_ks"))return!0;var m;J=(m=_.P2(J,"offlineVideoPolicy",_.V_(c,"offlineVideoPolicy")))!=null?m:void 0;return!!J&&ac(J)};
_.HVQ=function(J){var c=["TRANSFER_STATE_COMPLETE"];c=c===void 0?kYJ:c;return J.filter(function(m){var b,x;return c.includes((x=(b=m.transferEntity)==null?void 0:b.transferState)!=null?x:"TRANSFER_STATE_UNKNOWN")})};
iVt=function(J,c){if(c){var m,b=(m=_.P2(J,"playbackData",_.V_(c,"playbackData")))!=null?m:null,x;m=(x=_.P2(J,"transfer",_.V_(c,"transfer")))!=null?x:null;var P;x=(P=_.P2(J,"offlineVideoStreams",_.V_(c,"offlineVideoStreams")))!=null?P:null;var p;J=(p=_.P2(J,"offlineVideoPolicy",_.V_(c,"offlineVideoPolicy")))!=null?p:null;if(b||m||x||J)return{playbackDataEntity:b,transferEntity:m,streamEntity:x,policyEntity:J}}};
_.iW=function(J){var c=J.playbackData;if(!c)return[];var m=[];c=_.M(Object.keys(c));for(var b=c.next();!b.done;b=c.next()){var x=b.value;if(!nUm(J,_.mA(x).entityId)&&(b=iVt(J,_.mA(x).entityId))){var P=void 0,p=void 0;x=(p=Number((P=_.P2(J,"playbackData",x))==null?void 0:P.streamDownloadTimestampSeconds))!=null?p:(0,_.y4)();m.push({entity:b,streamDownloadTimestamp:x})}}return m.sort(function(t,I){var a=t.streamDownloadTimestamp,k=I.streamDownloadTimestamp;return k===a?t.entity.streamEntity&&!I.entity.streamEntity?
1:-1:k-a}).map(function(t){return t.entity})};
TIe=function(J){return _.HVQ(_.iW(J))};
_.wYr=function(J){return _.iW(J).filter(function(c){var m;if(((m=c.policyEntity)==null?0:m.action)&&c.policyEntity.action!=="OFFLINE_VIDEO_POLICY_ACTION_OK")return!1;var b;if((b=c.transferEntity)==null?0:b.transferState){var x;return pYr.includes((x=c.transferEntity)==null?void 0:x.transferState)}return!0})};
nUm=function(J,c){var m;return((m=_.P2(J,"downloadStatusEntity",_.V_(c,"downloadStatusEntity")))==null?void 0:m.downloadState)==="DOWNLOAD_STATE_USER_DELETED"?!0:!1};
rVm=function(J){var c;if(J==null?0:(c=J.playbackDataEntity)==null?0:c.key)return _.mA(J.playbackDataEntity.key).entityId;var m;if(J==null?0:(m=J.transferEntity)==null?0:m.key)return _.mA(J.transferEntity.key).entityId;var b;if(J==null?0:(b=J.streamEntity)==null?0:b.key)return _.mA(J.streamEntity.key).entityId;var x;if(J==null?0:(x=J.policyEntity)==null?0:x.key)return _.mA(J.policyEntity.key).entityId};
LO2=function(J){var c=new Set,m;J=(m=J.mainDownloadsListEntity)==null?void 0:m[se3];var b;if(!(J==null?0:(b=J.downloads)==null?0:b.length))return c;var x;J==null||(x=J.downloads)==null||x.forEach(function(P){(P==null?0:P.videoItem)&&c.add(P.videoItem)});
return c};
nk=function(J,c){if(c){var m=_.P2(J,"mainVideoEntity",_.V_(c,"mainVideoEntity")),b=_.P2(J,"downloadStatusEntity",_.V_(c,"downloadStatusEntity")),x=_.P2(J,"ytMainChannelEntity",_.V_(c,"ytMainChannelEntity")),P={playbackDataEntity:null,transferEntity:null,streamEntity:null,policyEntity:null};J=iVt(J,c);b=(b==null?void 0:b.downloadState)==="DOWNLOAD_STATE_PENDING_DOWNLOAD"||!_.w("woffle_render_failed_download_state_ks")&&(b==null?void 0:b.downloadState)==="DOWNLOAD_STATE_FAILED";!J&&b&&(J=P);if(J&&m&&
x)return Object.assign({},{videoEntity:m,channelEntity:x},J)}};
WOu=function(J,c){return DDr(J,c)==="TRANSFER_STATE_COMPLETE"&&aju(J,c)};
zs3=function(J,c){if(!c)return!1;var m;J=(m=_.P2(J,"playbackData",_.V_(c,"playbackData")))!=null?m:void 0;return!!J&&!!J.playerResponseJson};
DDr=function(J,c){if(!c)return"TRANSFER_STATE_UNKNOWN";var m=_.P2(J,"transfer",_.V_(c,"transfer"));if(m){var b;return(b=m.transferState)!=null?b:"TRANSFER_STATE_UNKNOWN"}m=_.P2(J,"offlineOrchestrationActionWrapperEntity",_.V_(c,"offlineOrchestrationActionWrapperEntity"));J=_.P2(J,"mainVideoEntity",_.V_(c,"mainVideoEntity"));return m||J?"TRANSFER_STATE_TRANSFER_IN_QUEUE":"TRANSFER_STATE_UNKNOWN"};
ugu=function(J,c){if(!c)return"TRANSFER_STATE_UNKNOWN";if(J=_.P2(J,"transfer",_.V_(c,"transfer"))){var m;return(m=J.transferState)!=null?m:"TRANSFER_STATE_UNKNOWN"}return"TRANSFER_STATE_UNKNOWN"};
fje=function(J,c){return c&&(J=_.P2(J,"videoPlaybackPositionEntity",_.V_(c,"videoPlaybackPositionEntity")),J==null?0:J.lastPlaybackPositionSeconds)?Number(J.lastPlaybackPositionSeconds):0};
XYe=function(J,c){return YqJ(J).some(function(m){var b;return(m==null?void 0:(b=m.mainPlaylistEntity)==null?void 0:b.playlistId)===c})};
qqr=function(J,c,m){var b=ZVq(J,c);if(!b.length)return[];c=[];b=_.M(b);for(var x=b.next();!x.done;x=b.next()){x=x.value;var P=nk(J,x);m&&DDr(J,x)!=="TRANSFER_STATE_COMPLETE"||P&&c.push(P)}return c};
ZVq=function(J,c){if(!c)return[];var m=_.V_(c,"mainPlaylistEntity"),b;c=(b=J.mainPlaylistEntity)==null?void 0:b[m];b=[];if(c==null||!c.videos)return b;c=_.M(c.videos);for(m=c.next();!m.done;m=c.next()){m=m.value;var x=void 0,P=void 0,p=void 0,t=(x=J)==null?void 0:(P=x.mainPlaylistVideoEntity)==null?void 0:(p=P[m])==null?void 0:p.video;t&&(m=_.mA(t).entityId)&&b.push(m)}return b};
UDt=function(J,c){if(c){var m=_.P2(J,"mainPlaylistEntity",_.V_(c,"mainPlaylistEntity")),b=_.P2(J,"mainPlaylistDownloadStateEntity",_.V_(c,"mainPlaylistDownloadStateEntity"));J=_.P2(J,"ytMainChannelEntity",_.V_(c,"ytMainChannelEntity"));if(b&&m)return Object.assign({},{mainPlaylistEntity:m,mainPlaylistDownloadStateEntity:b},!!J&&{channelEntity:J})}};
YqJ=function(J){return Squ(J).sort(function(c,m){return m.addedTimestampMillis-c.addedTimestampMillis}).map(function(c){return c.downloadedPlaylistEntities})};
Squ=function(J){var c=J.mainPlaylistDownloadStateEntity,m=[];if(!c)return m;for(var b=_.M(Object.keys(c)),x=b.next();!x.done;x=b.next()){var P=x.value;x=UDt(J,_.mA(P).entityId);var p=void 0;P=Number((p=c[P])==null?void 0:p.addedTimestampMillis);p=isNaN(P)?(0,_.y4)():P;x!==void 0&&m.push({downloadedPlaylistEntities:x,addedTimestampMillis:p})}return m};
hsm=function(J){var c,m=(c=J.mainPlaylistVideoEntity)!=null?c:{};return new Set(YqJ(J).reduce(function(b,x){b=b===void 0?[]:b;var P,p;x==null||(P=x.mainPlaylistEntity)==null||(p=P.videos)==null||p.forEach(function(t){var I;(t=(I=m[t])==null?void 0:I.video)&&b.push(t)});
return b},[]))};
dDD=function(J){return"downloadedMusicPlaylistEntities"in J};
$D3=function(J){return"mainPlaylistEntity"in J&&"mainPlaylistDownloadStateEntity"in J};
GY3=function(J){return"videoEntity"in J&&"channelEntity"in J};
EUo=function(J){var c=J.musicPlaylistDownloadMetadataEntity,m=[];if(!c)return m;for(var b=_.M(Object.keys(c)),x=b.next();!x.done;x=b.next()){x=x.value;a:{var P=J,p=_.mA(x).entityId;if(p){var t=_.P2(P,"musicPlaylist",_.V_(p,"musicPlaylist"));P=_.P2(P,"musicPlaylistDownloadMetadataEntity",_.V_(p,"musicPlaylistDownloadMetadataEntity"));if(t&&P){t={musicPlaylistEntity:t,musicPlaylistDownloadStateEntity:P};break a}}t=void 0}P=void 0;x=Number((P=c[x])==null?void 0:P.addedTimestampMillis);x=isNaN(x)?(0,_.y4)():
x;t!==void 0&&m.push({downloadedMusicPlaylistEntities:t,addedTimestampMillis:x})}return m};
vU3=function(J){var c=new Set;J=_.M(J);for(var m=J.next();!m.done;m=J.next())if(m=m.value,"musicPlaylistEntity"in m&&"musicPlaylistDownloadStateEntity"in m){m=_.M(m.musicPlaylistEntity.tracks);for(var b=m.next();!b.done;b=m.next())c.add(b.value)}return c};
OVQ=function(J,c){if(c){var m=_.P2(J,"musicTrack",_.V_(c,"musicTrack")),b=_.P2(J,"musicArtist",_.V_(c,"musicArtist"))||{};if((J=iVt(J,c))&&m&&b)return Object.assign({},{musicTrackEntity:m,musicArtistEntity:b},J)}};
AVD=function(J){var c=J.musicTrackDownloadMetadataEntity,m=[];if(!c)return[];c=_.M(Object.keys(c));for(var b=c.next();!b.done;b=c.next()){var x=b.value;b=OVQ(J,_.mA(x).entityId);var P=void 0;x=Number((P=_.P2(J,"musicTrackDownloadMetadataEntity",x))==null?void 0:P.addedTimestampMillis);P=isNaN(x)?(0,_.y4)():x;b!==void 0&&m.push({downloadedMusicEntities:b,addedTimestampMillis:P})}return m};
Qef=function(J,c){if(!c)return[];if(Object.values(RsQ).includes(c))return oUJ(J,c);c=_.V_(c,"musicPlaylist");var m;J=(m=J.musicPlaylist)==null?void 0:m[c];m=[];if(J==null||!J.tracks)return m;J=_.M(J.tracks);for(c=J.next();!c.done;c=J.next())(c=_.mA(c.value).entityId)&&m.push(c);return m};
oUJ=function(J,c){var m=new Set,b=EUo(J).map(function(P){return P.downloadedMusicPlaylistEntities});
b=vU3(b);b=_.M(b);for(var x=b.next();!x.done;x=b.next())(x=_.mA(x.value).entityId)&&m.add(x);return esJ(J).downloadedMusicEntities.filter(function(P){var p;if((p=P.musicTrackEntity)!=null&&p.videoId){P=P.musicTrackEntity;if(p=c==="PPOM"?!0:!m.has(P.videoId))b:switch(P=P.musicVideoType,c){case "PPSE":p=P==="MUSIC_VIDEO_TYPE_PODCAST_EPISODE";break b;default:p=P!=="MUSIC_VIDEO_TYPE_PODCAST_EPISODE"}P=p}else P=!1;return P}).map(function(P){var p;
return(p=P.musicTrackEntity)==null?void 0:p.videoId})};
esJ=function(J){var c=AVD(J).sort(function(m,b){return b.addedTimestampMillis-m.addedTimestampMillis}).map(function(m){return"downloadedMusicEntities"in m?m.downloadedMusicEntities:dDD(m)?m.downloadedMusicPlaylistEntities:{}});
J=EUo(J).sort(function(m,b){return b.addedTimestampMillis-m.addedTimestampMillis}).map(function(m){return"downloadedMusicEntities"in m?m.downloadedMusicEntities:dDD(m)?m.downloadedMusicPlaylistEntities:{}});
return{downloadedMusicEntities:c,downloadedMusicPlaylistEntities:J}};
FOG=function(J,c){c=_.Ub("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?Qef(J,c):ZVq(J,c);if(!c.length)return"TRANSFER_STATE_UNKNOWN";c=c.map(function(m){return ugu(J,m)});
return jeQ(c)};
jeQ=function(J){var c=new Set(J);if(c.has("TRANSFER_STATE_FAILED")&&c.size===1)return"TRANSFER_STATE_FAILED";c.delete("TRANSFER_STATE_FAILED");if(c.has("TRANSFER_STATE_UNKNOWN")&&c.size===1)return"TRANSFER_STATE_PRE_TRANSFER";c.delete("TRANSFER_STATE_UNKNOWN");if(c.has("TRANSFER_STATE_PRE_TRANSFER")&&c.size===1||c.size===0)return"TRANSFER_STATE_PRE_TRANSFER";J=c.has("TRANSFER_STATE_TRANSFERRING");c=c.has("TRANSFER_STATE_TRANSFER_IN_QUEUE");return J||c?"TRANSFER_STATE_TRANSFERRING":"TRANSFER_STATE_COMPLETE"};
T2=function(J){var c=J.mainVideoDownloadStateEntity,m=[];if(!c)return[];c=_.M(Object.keys(c));for(var b=c.next();!b.done;b=c.next()){var x=b.value;if(!nUm(J,_.mA(x).entityId)){b=nk(J,_.mA(x).entityId);var P=void 0,p=void 0;x=(p=Number((P=_.P2(J,"mainVideoDownloadStateEntity",x))==null?void 0:P.addedTimestampMillis))!=null?p:(0,_.y4)();b!==void 0&&m.push({downloadedVideoEntities:b,addedTimestampMillis:x})}}return m};
lje=function(J){return T2(J).sort(function(c,m){return m.addedTimestampMillis-c.addedTimestampMillis}).map(function(c){return c.downloadedVideoEntities})};
_.BIJ=function(J){var c=hsm(J),m=_.wf(J),b=LO2(J),x=T2(J).filter(function(p){var t,I;if((p==null?void 0:(t=p.downloadedVideoEntities)==null?void 0:(I=t.transferEntity)==null?void 0:I.transferState)!=="TRANSFER_STATE_COMPLETE")return!1;var a,k;p=p==null?void 0:(a=p.downloadedVideoEntities)==null?void 0:(k=a.videoEntity)==null?void 0:k.key;return _.w("kevlar_use_library_entity")?p&&(b.has(p)||m[p]):p&&!c.has(p)}),P=Squ(J).filter(function(p){return FOG(J,p.downloadedPlaylistEntities.mainPlaylistEntity.playlistId)===
"TRANSFER_STATE_COMPLETE"});
return[].concat(_.L6(x),_.L6(P)).sort(function(p,t){return t.addedTimestampMillis-p.addedTimestampMillis}).map(function(p){return yVG(p)})};
gUT=function(J,c){if(c&&aju(J,c)){var m,b,x=(b=(m=_.P2(J,"playbackData",_.V_(c,"playbackData")))!=null?m:void 0)==null?void 0:b.playerResponseJson;if(x){try{var P=JSON.parse(x);var p=_.P2(J,"transfer",_.V_(c,"transfer")),t=fje(J,c);t&&(P=Object.assign({},P,{playerConfig:Object.assign({},P.playerConfig,{playbackStartConfig:{startPosition:{streamTimeMillis:""+t*1E3}}})}));P.cotn=p==null?void 0:p.cotn}catch(I){}return P}}};
_.mZD=function(J){var c,m,b;J=(b=(m=((c=J.downloadsPageViewConfigurationEntity)!=null?c:{})[JZT])==null?void 0:m.smartDownloadsOptInBannerVisibility)!=null?b:{};var x;return(x=_.L(J,cZo))!=null?x:{}};
_.wf=function(J){var c,m,b;J=(b=(m=((c=J.mainDownloadsListEntity)!=null?c:{})[_.bOR])==null?void 0:m.downloads)!=null?b:[];c={};m=_.M(J);for(b=m.next();!b.done;b=m.next())J=void 0,c[(J=b.value.videoItem)!=null?J:""]=!0;return c};
xZJ=function(J){var c=_.wf(J);if(Object.keys(c).length===0)return!1;var m=J.mainVideoEntity;if(!m)return!0;m=_.M(Object.keys(m));for(var b=m.next();!b.done;b=m.next()){b=b.value;var x=_.mA(b).entityId;if(c[b]&&!nUm(J,x))return!1}return!0};
_.rf=function(J){var c=_.wf(J);return T2(J).sort(function(m,b){return m.addedTimestampMillis-b.addedTimestampMillis}).map(function(m){return m.downloadedVideoEntities}).filter(function(m){var b;
return(m=m==null?void 0:(b=m.videoEntity)==null?void 0:b.key)&&!!c[m]})};
yVG=function(J){return"downloadedVideoEntities"in J?J.downloadedVideoEntities:"downloadedPlaylistEntities"in J?J.downloadedPlaylistEntities:{}};
VGe=function(J){var c=_.wf(J),m=hsm(J),b=T2(J).filter(function(x){var P,p;return(x=x==null?void 0:(P=x.downloadedVideoEntities)==null?void 0:(p=P.videoEntity)==null?void 0:p.key)&&!c[x]&&!m.has(x)});
J=Squ(J);return[].concat(_.L6(b),_.L6(J)).sort(function(x,P){return P.addedTimestampMillis-x.addedTimestampMillis}).map(function(x){return yVG(x)})};
_.sG=function(J){if(!_.w("kevlar_use_library_entity"))return VGe(J);var c=T2(J).filter(function(b){var x,P;if(x=b=b==null?void 0:(x=b.downloadedVideoEntities)==null?void 0:(P=x.videoEntity)==null?void 0:P.key){var p,t,I;x=((t=(p=J.mainDownloadsListEntity)==null?void 0:p[se3])==null?0:(I=t.downloads)==null?0:I.length)?LO2(J).has(b):!1}return x}),m=Squ(J);
return[].concat(_.L6(c),_.L6(m)).sort(function(b,x){return x.addedTimestampMillis-b.addedTimestampMillis}).map(function(b){return yVG(b)})};
Prq=function(J){var c=_.wf(J),m=hsm(J);return lje(J).filter(function(b){var x;return(b=b==null?void 0:(x=b.videoEntity)==null?void 0:x.key)&&!c[b]&&!m.has(b)})};
MGo=function(J){if(!_.w("kevlar_use_library_entity"))return Prq(J);var c=_.wf(J),m=LO2(J);return lje(J).filter(function(b){var x;return(b=b==null?void 0:(x=b.videoEntity)==null?void 0:x.key)&&!c[b]&&m.has(b)})};
p3u=function(J,c){c=_.V_(c,"settingEntity");var m,b,x;return!!((x=(b=((m=J.settingEntity)!=null?m:{})[c])==null?void 0:b.settingOptionValue)!=null?x:{}).boolValue};
_.Lk=function(J){var c=_.rf(J);if(Coq(c))return 0;var m=[];c=_.M(c);for(var b=c.next();!b.done;b=c.next()){b=b.value;var x=void 0,P=void 0;if((x=b)==null?0:(P=x.videoEntity)==null?0:P.key)x=_.mA(b.videoEntity.key).entityId,b=J,x=_.V_(x,"mainVideoDownloadStateEntity"),b=_.P2(b,"mainVideoDownloadStateEntity",x),(b=Number(b==null?void 0:b.addedTimestampMillis))&&m.push(b)}return Math.max.apply(Math,_.L6(m))};
_.DZ=function(J){return J.ui.richGridMiniMode};
_.W2=function(J){return J.ui.richGridItemsPerRow};
_.Net=function(J){return J.ui.richGridSlimItemsPerRow};
_.tGG=function(J){return J.ui.guideIsExpanded};
_.z2=function(J){return J.ui.miniplayerIsActive};
_.IAe=function(J){return J.ui.singleOptionSurveyIsActive};
_.uW=function(J){return J.ui.currentPageType==="WEB_PAGE_TYPE_WATCH"};
_.KMm=function(J){return J.ui.currentPageType==="WEB_PAGE_TYPE_SHORTS"};
_.CrD=function(J){return J.ui.inlinePreviewIsActive};
_.aAm=function(J){return J.ui.inlinePreviewIsEnabled};
_.k3T=function(J){return J.ui.miniplayerPlaybackState};
HOT=function(J){return J.ui.isOnline};
_.iO3=function(J){return J.ui.frostedGlassMode};
_.YY=function(J,c){return DDr(J.entities,c)};
_.XM=function(J,c){return FOG(J.entities,c)};
nWt=function(J,c){var m;if(c){var b;J=(b=_.P2(J.entities,"offlineVideoPolicy",_.V_(c,"offlineVideoPolicy")))==null?void 0:b.action}else J=void 0;return(m=J)!=null?m:"OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN"};
TeD=function(J,c){var m;c?(J=_.P2(J.entities,"offlineVideoPolicy",_.V_(c,"offlineVideoPolicy")),J=Number(J==null?void 0:J.expirationTimestamp)):J=void 0;return(m=J)!=null?m:0};
_.w3f=function(J){return _.iW(J.entities).length};
rZe=function(J,c){return nk(J.entities,c)};
syT=function(J,c){return UDt(J.entities,c)};
ZZ=function(J,c){return(J=nk(J.entities,c))?_.NIJ([J]):0};
_.LMm=function(J,c){var m=_.Ub("INNERTUBE_CLIENT_NAME")==="WEB_REMIX";if(m){var b=J.entities;var x=Qef(b,c);if(x.length){var P=[];x=_.M(x);for(var p=x.next();!p.done;p=x.next())(p=OVQ(b,p.value))&&P.push(p);b=P}else b=[]}else b=qqr(J.entities,c);var t;if(m){var I=J.entities;c?(c=_.V_(c,"musicPlaylist"),I=(t=I.musicPlaylist)==null?void 0:t[c],t=I!=null&&I.tracks?I.tracks.length:0):t=0}else t=J.entities,c?(c=_.V_(c,"mainPlaylistEntity"),t=(I=t.mainPlaylistEntity)==null?void 0:I[c],t=t!=null&&t.videos?
t.videos.length:0):t=0;return b.length!==t?0:b?tTm(b):0};
_.DZR=function(J){return J.download.isLeaderTab};
_.WMr=function(J,c,m){if(!c&&m){var b=J.entities;if(m){var x=KOr(m),P,p;c=(p=(P=_.P2(b,"offlineabilityEntity",_.V_(x,"offlineabilityEntity")))==null?void 0:P.addToOfflineButtonState)!=null?p:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"}else c="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"}else P=J.entities,c?(p=KOr(c),c=(x=(b=_.P2(P,"offlineabilityEntity",_.V_(p,"offlineabilityEntity")))==null?void 0:b.addToOfflineButtonState)!=null?x:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"):c="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";
return c};
z5t=function(J,c){J=J.entities;if(c){c=KOr(c);var m,b;c=(b=(m=_.P2(J,"offlineabilityEntity",_.V_(c,"offlineabilityEntity")))==null?void 0:m.addToOfflineButtonState)!=null?b:"ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN"}else c="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";return c};
_.uIe=function(J){var c=J.entities;J=HOT(J);var m=p3u(c,"SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED");if(!_.w("kevlar_modern_downloads_page")&&m)var b=!1;else{var x,P;c=(P=(x=((b=c.downloadsPageViewConfigurationEntity)!=null?b:{})[JZT])==null?void 0:x.smartDownloadsOptInBannerVisibility)!=null?P:{};b=J?!!c.visibleWithConnection:!!c.visibleWithoutConnection}return b};
_.fAG=function(J){return p3u(J.entities,"SMART_DOWNLOADS_ENABLED")};
_.YPu=function(J){return xZJ(J.entities)};
X3o=function(J){return _.rf(J.entities).every(function(c){var m;return(c==null?void 0:(m=c.transferEntity)==null?void 0:m.transferState)&&!pYr.includes(c.transferEntity.transferState)})};
_.ZO3=function(J,c){return nUm(J.entities,c)};
qPf=function(J,c){if(c){var m,b;J=(b=(m=_.P2(J.entities,"downloadStatusEntity",_.V_(c,"downloadStatusEntity")))==null?void 0:m.downloadState)!=null?b:"DOWNLOAD_STATE_UNKNOWN"}else J="DOWNLOAD_STATE_UNKNOWN";return J};
qy=function(J,c){return fje(J.entities,c)};
dZ3=function(J){J=_.UZR(J);var c=J.hours===void 0?0:J.hours,m=J.minutes===void 0?0:J.minutes,b=J.seconds===void 0?0:J.seconds,x=c>0;J=[];x&&(c=_.SPu(c),J.push(c));c=x;c=c===void 0?!1:c;m=(["af","be","lt"].includes(_.UG)||c)&&m<10?h5J().format(m):(new Intl.NumberFormat("en-u-nu-latn")).format(m);J.push(m);m=h5J().format(b);J.push(m);m=":";"da fi id si sr sr-Latn".split(" ").includes(_.UG)&&(m=".");return J.join(m)};
_.UZR=function(J){var c=J.hours||0,m=J.minutes||0,b=J.seconds||0;c=b+m*60+c*3600+(J.days||0)*86400+(J.weeks||0)*604800+(J.months||0)*2629800+(J.years||0)*31557600;if(c<=0)return{hours:0,minutes:0,seconds:0};J=c;c=Math.floor(J/3600);J%=3600;m=Math.floor(J/60);b=Math.floor(J%60);return{hours:c,minutes:m,seconds:b}};
_.SPu=function(J){J=(new Intl.NumberFormat("en-u-nu-latn")).format(J);var c=["fr"],m="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(_.UG)?J.replace(",","\u00a0"):c.includes(_.UG)?J.replace(",","\u202f"):m.includes(_.UG)?J.replace(",","."):J};
h5J=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
$Zu=function(J){try{return(new _.Sk(5)).format(J)}catch(c){}};
h7=function(J){return{thumbnailOverlayDownloadingRenderer:{state:J}}};
G3R=function(J){if(J=$Zu(J))return{thumbnailOverlaySidePanelRenderer:{text:_.yq(J),icon:{iconType:"PLAYLISTS"}}}};
EWr=function(){var J=_.CX("PLAY_ALL",void 0,"Play all");return{thumbnailOverlayHoverTextRenderer:{text:_.yq(J),icon:{iconType:"PLAY_ALL"}}}};
vW3=function(J){J=_.df(J,2);return _.UG!=="ru"&&_.UG!=="es_419"&&_.UG!=="es-419"&&_.UG!=="es"&&_.UG!=="es_US"&&_.UG!=="es-US"&&_.UG!=="fr"&&_.UG!=="pl"&&_.UG!=="it"&&_.UG!=="nl"&&_.UG!=="uk"&&_.UG!=="fr_CA"&&_.UG!=="fr-CA"||J===""?J:J[0].toLocaleUpperCase()+J.substring(1)};
AZr=function(J){return function(c){var m=J(),b=_.df(c,m.dateFormat);c=_.df(c,m.timeFormat);var x=OOG.DATETIMEFORMATS[m.joinerStyle];x=x.replace(/'(?!')/g,"");x=x.replace("{0}",c);x=x.replace("{1}",b);return m.capitalize(x)}};
R5J=function(J){return J?typeof J.seconds==="string"&&(J.nanos===void 0||typeof J.nanos==="number"):!1};
oWt=function(J){return new Date(Number(J.seconds)*1E3+(J.nanos||0)*1E-6)};
_.df=function(J,c){if(typeof J.getTime==="function")J={date:J};else if(R5J(J))J={date:oWt(J)};else if(typeof R5J(J.timestamp)&&typeof J.i18nInternalSecondsEastOfUtc==="number")J={date:oWt(J.timestamp),timeZone:$Y(-J.i18nInternalSecondsEastOfUtc/60)};else throw Error("Af`"+JSON.stringify(J));var m=J;J=m.date;m=m.timeZone;c=Qy2(c).format(J,m);_.UG==="zh-TW"&&(J=m?Number(Qy2("H").format(J,m)):J.getHours(),c=J<5?c.replace("\u4e0a\u5348","\u51cc\u6668"):J<8?c.replace("\u4e0a\u5348","\u65e9\u4e0a"):J<12?
c.replace("\u4e0a\u5348","\u4e0a\u5348"):J<13?c.replace("\u4e0b\u5348","\u4e2d\u5348"):J<19?c.replace("\u4e0b\u5348","\u4e0b\u5348"):c.replace("\u4e0b\u5348","\u665a\u4e0a"));return c};
Qy2=function(J){if(e5R.has(J))return e5R.get(J);var c=jyD(J);c=FMm(c);lAG!==!0&&(lAG=!0);yZe=!0;yZe=!1;c=new G2(c,OOG);e5R.set(J,c);return c};
jyD=function(J){return(new G2(J,OOG)).patternParts_.map(function(c){return c.type===0?"'"+c.text+"'":c.text}).join("")};
FMm=function(J){return _.UG==="en"||_.UG==="es_US"||_.UG==="es-US"?J:J.replace(/(?:a\s?)?([hK]+)([:.]mm)(?:\s?a)?/g,function(c,m,b){return"H".repeat(m.length)+b})};
VBJ=function(J,c){Beo||(_.EG=_.gWG,Beo=new JMt);var m=Beo;a:if(J=cM3(J),c=cM3(c||new Date),J>c)m=J.getTime()-c.getTime()>6048E5?_.df(J,1):mhm(J);else{for(var b=0;b$R(J,12*(b+1))<c;)++b;if(b>0)m=m.format(-b,0);else{for(b=0;b$R(J,b+1)<c;)++b;if(b>0)m=m.format(-b,2);else{J=c.getTime()-J.getTime();c=_.M(xhD);for(b=c.next();!b.done;b=c.next()){b=b.value;var x=b.unit,P=Math.floor(J/b.unitDuration);if(P>=(b.threshold===void 0?1:b.threshold)){m=m.format(-P,x);break a}}m=m.format(-0,7)}}}return m};
cM3=function(J){if(typeof J.getTime==="function")return J;if(R5J(J))return oWt(J);throw Error("Bf`"+JSON.stringify(J));};
b$R=function(J,c){for(var m=0,b;;++m)if(b=new Date(J.getFullYear(),J.getMonth()+c,J.getDate()-m,J.getHours(),J.getMinutes(),J.getSeconds()),b.getMonth()===(J.getMonth()+c)%12)return b};
_.v2=function(J){return{runs:[{text:J}]}};
_.OG=function(J){if(J&&J.simpleText)return J.simpleText;var c="";if(J&&J.runs)for(var m=0;m<J.runs.length;m++)J.runs[m].text&&(c+=J.runs[m].text);return c};
MBm=function(J,c,m,b){return J.videoEntity&&!J.policyEntity&&m!=="DOWNLOAD_STATE_FAILED"?[h7("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:ac(J.policyEntity)&&c!=="TRANSFER_STATE_FAILED"&&c!=="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"?c==="TRANSFER_STATE_PAUSED_BY_USER"?[h7("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER")]:_.kY(c)?[h7("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:J.videoEntity.lengthSeconds?P6o(J.videoEntity.lengthSeconds,b):[]:
[h7("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED")]};
P6o=function(J,c){var m=[{thumbnailOverlayTimeStatusRenderer:{text:_.yq(dZ3({seconds:J})),style:"DEFAULT"}}];c&&(J=c<=0||J<=0?0:c>=J?100:Math.ceil(c*100/J),J>0&&m.push({thumbnailOverlayResumePlaybackRenderer:{percentDurationWatched:J}}));return m};
p$2=function(J,c,m,b,x){if(c==="TRANSFER_STATE_UNKNOWN"||!J)return{};if(_.kY(c)||c==="TRANSFER_STATE_PRE_TRANSFER")var P=[h7("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")];else{var p,t;if(c==="TRANSFER_STATE_COMPLETE"&&((p=J.mainPlaylistEntity)==null?0:(t=p.videos)==null?0:t.length)){if(_.w("web_modern_collections_v2")){var I;var a=(P=J.mainPlaylistEntity)==null?void 0:(I=P.videos)==null?void 0:I.length;P=(P=$Zu(a))?{thumbnailOverlayBottomPanelRenderer:{text:_.yq(P),icon:{iconType:"PLAYLISTS"}}}:
void 0}else{var k;P=G3R((a=J.mainPlaylistEntity)==null?void 0:(k=a.videos)==null?void 0:k.length)}var H;P=[EWr(),Object.assign({},(H=P)!=null?H:{})]}else P=[]}H=P;a:if(c==="TRANSFER_STATE_PRE_TRANSFER")m=BA(_.CX("PREPARING_TO_DOWNLOAD",void 0,"Preparing to download..."));else if(c==="TRANSFER_STATE_TRANSFER_IN_QUEUE")m=BA(_.CX("WAITING_TO_DOWNLOAD"));else if(_.kY(c))m=Math.floor(m*100).toString(),m=BA(_.CX("DOWNLOADING_PERCENT",{percent:m},"Downloading... "+m+"%"));else{if(b&&(_.w("playlist_is_offline_selector_killswitch")&&
(x=_.BG().resolve(_.On).isNetworkAvailable()),x)){m=O_T(_.CX("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),E_2(b));break a}m=void 0}c=c==="TRANSFER_STATE_COMPLETE"?[{metadataBadgeRenderer:{label:_.CX("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]:[];return Object.assign({},H.length?{thumbnailOverlays:H}:{},m?{viewPlaylistText:m}:{viewPlaylistText:_.v2("")},c.length?{badges:c}:{})};
NV3=function(J,c,m,b,x,P){if(c==="TRANSFER_STATE_UNKNOWN"||!J)return{};if(b==="DOWNLOAD_STATE_USER_DELETED")return{shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};var p=MBm(J,c,b);if(J.videoEntity&&!J.policyEntity&&b!=="DOWNLOAD_STATE_FAILED"){var t=_.CX("WAITING_TO_DOWNLOAD");if(t)return{shortViewCountText:_.v2(t),publishedTimeText:void 0,thumbnailOverlays:p}}if(!ac(J.policyEntity)){P=J.policyEntity&&!Ijq(J.policyEntity)?_.CX("DOWNLOAD_EXPIRED",{},"Download expired"):
_.CX("TRANSFER_FAILED",{},"Download failed");var I;if((I=J.policyEntity)==null?0:I.shortMessageForDisabledAction)P=J.policyEntity.shortMessageForDisabledAction;return{shortViewCountText:BA(P),publishedTimeText:void 0,thumbnailOverlays:p}}if(c==="TRANSFER_STATE_PAUSED_BY_USER")return{shortViewCountText:_.v2(_.CX("DOWNLOAD_PAUSED",{},"Download paused")),publishedTimeText:void 0,thumbnailOverlays:p};if(c==="TRANSFER_STATE_FAILED"||c==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH")return{shortViewCountText:_.v2(_.CX("TRANSFER_FAILED",
{},"Download failed")),publishedTimeText:void 0,thumbnailOverlays:p};if(c==="TRANSFER_STATE_TRANSFER_IN_QUEUE"&&(I=_.CX("WAITING_TO_DOWNLOAD"),b==="DOWNLOAD_STATE_PAUSED"&&(I=_.CX("DOWNLOAD_PAUSED",{},"Download paused")),I))return{shortViewCountText:_.v2(I),publishedTimeText:void 0,thumbnailOverlays:p};if(_.kY(c))return J=Math.floor(m*100).toString(),{shortViewCountText:_.v2(_.CX("DOWNLOADING_PERCENT",{percent:J},"Downloading... "+J+"%")),publishedTimeText:void 0,thumbnailOverlays:p};c=void 0;J.videoEntity.publishedTimestampMillis&&
(c=new Date,x&&(c=new Date(x)),c=BA(VBJ(new Date(Number(J.videoEntity.publishedTimestampMillis)),c)));x=[];_.w("kevlar_woffle_badge_killswitch")||(x=[{metadataBadgeRenderer:{label:_.CX("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]);var a;J=BA((a=J.videoEntity.localizedStrings)==null?void 0:a.viewCount);return Object.assign({},P?{shortViewCountText:void 0}:{shortViewCountText:J},P?{}:{publishedTimeText:c},{badges:x,thumbnailOverlays:p})};
IlJ=function(J,c){J=J===void 0?tBT:J;switch(c.type){case "SET_COLLAB_INVITE_LINK":return{playlistId:c.payload.playlistId,inviteLinkURL:c.payload.inviteLinkUrl};default:return J}};
C62=function(J,c){J=J===void 0?KnG:J;switch(c.type){case "SET_CURRENT_FORM_ID":return c=c.payload.formId,J.currentFormId===c?J:{currentFormId:c,commandsMap:{}};case "SET_COMMAND_FOR_GROUP_ID":var m=c.payload;c=m.groupId;m=m.command;if(J.currentFormId){var b=Object.assign({},J.commandsMap);b[c]=m;J=Object.assign({},J,{commandsMap:b})}return J;case "RESET_COMMAND_MAP":return Object.assign({},J,{commandsMap:{}});default:return J}};
knT=function(J,c){J=J===void 0?alQ:J;switch(c.type){case "SET_GUIDE_IS_EXPANDED":return Object.assign({},J,{guideIsExpanded:c.payload});case "SET_SCROLL_AT_TOP":return Object.assign({},J,{scrollAtTop:c.payload});case "SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT":return Object.assign({},J,{guideIsVisibleButNotPersistent:c.payload});case "SET_MINIPLAYER_IS_ACTIVE":return Object.assign({},J,{miniplayerIsActive:c.payload});case "SET_SINGLE_OPTION_SURVEY_IS_ACTIVE":return Object.assign({},J,{singleOptionSurveyIsActive:c.payload});
case "SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX":return Object.assign({},J,{slimlineSurveyRatingSelectedIndex:c.payload});case "SET_RICH_GRID_MINI_MODE":return Object.assign({},J,{richGridMiniMode:c.payload});case "SET_RICH_GRID_ITEMS_PER_ROW":return Object.assign({},J,{richGridItemsPerRow:c.payload});case "SET_RICH_GRID_SLIM_ITEMS_PER_ROW":return Object.assign({},J,{richGridSlimItemsPerRow:c.payload});case "SET_RICH_GRID_CONTAINER_WIDTH":return Object.assign({},J,{richGridContainerWidth:c.payload});
case "SET_RICH_GRID_STYLE":return Object.assign({},J,{richGridStyle:c.payload});case "SET_CURRENT_PAGE_TYPE":return Object.assign({},J,{currentPageType:c.payload});case "SET_INLINE_PREVIEW_IS_ACTIVE":return Object.assign({},J,{inlinePreviewIsActive:c.payload});case "SET_INLINE_PREVIEW_IS_ENABLED":return Object.assign({},J,{inlinePreviewIsEnabled:c.payload});case "SET_DARK_MODE_IS_ENABLED":return Object.assign({},J,{darkModeIsEnabled:c.payload});case "SET_MINIPLAYER_PLAYBACK_STATE":return Object.assign({},
J,{miniplayerPlaybackState:c.payload});case "SET_TAB_GESTURES_IS_ACTIVE":return Object.assign({},J,{tabGesturesIsActive:c.payload});case "SET_ONLINE_STATUS":return Object.assign({},J,{isOnline:c.payload});case "SET_CHIP_BAR_IS_STICKY":return Object.assign({},J,{chipBarIsSticky:c.payload});case "SET_FROSTED_GLASS_MODE":return Object.assign({},J,{frostedGlassMode:c.payload});default:return J}};
i$o=function(J,c){J=J===void 0?H$e:J;switch(c.type){case "SET_TRANSCRIPTION_STATE":return Object.assign({},J,{transcription:c.payload});case "SET_OVERLAY_STATE":return Object.assign({},J,{overlay:c.payload});case "RESET_VOICE_SEARCH_STATE":return{};default:return J}};
uAG=function(){return t0(Object.assign({},{continuation:n7o,entities:xPt,download:TVe,reportChannelAbuse:w$D,share:rM3,talkToRecs:sQu,ui:knT,voiceSearch:i$o,watch:Lnf,ypc:DhQ,shorts:Wnm,radioButtonGroup:C62,collabInviteLink:IlJ},zfq))};
X$t=function(){return _.w("web_player_entities_middleware")?new A7(uAG(),[flJ,Ylm]):new A7(uAG(),[flJ])};
_.Rc=function(){Z$q||(Z$q=X$t());return Z$q};
qle=function(J,c,m){if(J.length)return{titleText:_.yq(c!=null?c:_.CX("DOWNLOADS",void 0,"Downloads")),contents:J.map(function(b){var x=b.videoEntity;b={videoId:x.videoId,title:BA(x.title),shortBylineText:BA(b.channelEntity.title),thumbnail:x.thumbnail};var P=x.videoId?qy(_.Rc().getState(),x.videoId):0;x.videoId&&m?b.navigationEndpoint=_.lJ(x.videoId,m,void 0,void 0,P):x.videoId&&(b.navigationEndpoint=GcR(x.videoId,P,x.lengthSeconds));x.lengthSeconds&&(b.thumbnailOverlays=P6o(x.lengthSeconds,P));return{playlistPanelVideoRenderer:b}}),
totalVideos:J.length}};
UhJ=function(J){return(J=(0,_.Lw.getValueByKeys)(J,"playlistId"))?{playlistId:J}:null};
Slu=function(){return{}};
hfR=function(J,c){return new _.IN(function(m,b){J.then(function(x){if(x){if(x=c(x))return m(x);b()}},b)})};
dhr=function(J){var c,m,b,x=(c=J.contents)==null?void 0:(m=c.twoColumnWatchNextResults)==null?void 0:(b=m.autoplay)==null?void 0:b.autoplay,P,p,t;c=(P=J.contents)==null?void 0:(p=P.twoColumnWatchNextResults)==null?void 0:(t=p.playlist)==null?void 0:t.playlist;return x&&c&&c.playlistId?{rawResponse:J,autoplayRenderer:x,playlistPanelRenderer:c,playlistId:c.playlistId}:null};
Gnm=function(J){var c=c===void 0?"UNKNOWN_INTERFACE":c;if(J.length===1)return J[0];var m=$he[c];if(m){m=new RegExp(m);for(var b=_.M(J),x=b.next();!x.done;x=b.next())if(x=x.value,m.exec(x))return x}var P=[];Object.entries($he).forEach(function(p){var t=_.M(p);p=t.next().value;t=t.next().value;c!==p&&P.push(t)});
m=new RegExp(P.join("|"));J.sort(function(p,t){return p.length-t.length});
b=_.M(J);for(x=b.next();!x.done;x=b.next())if(x=x.value,!m.exec(x))return x;return J[0]};
_.oc=function(J){return"/youtubei/v1/"+Gnm(J)};
_.Q_=function(J){return{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:J}}}}};
_.ek=function(J){return _.Q_(_.v2(J))};
E7R=function(J,c){var m={mode:"NORMAL"};J&&(m.autoplayVideo=J.navigationEndpoint,m.nextButtonVideo=J.navigationEndpoint);c&&(m.previousButtonVideo=c.navigationEndpoint);return m};
AMQ=function(J,c,m){if(!m||!m.sets)return{sets:[E7R(J,c)]};var b=m.sets.find(function(p){return p.mode==="NORMAL"}),x=(0,_.Lw.unsafeClone)(m);
if(!b)return x.sets.push(E7R(J,c)),x;if(!J)return m;b=_.Lw.getValueByKeys.apply(null,[b].concat(_.L6(v72)));var P=_.Lw.getValueByKeys.apply(null,[J].concat(_.L6(O$f)));if(b===P)return m;x.sets=x.sets.filter(function(p){return p.mode!=="NORMAL"});
x.sets.push(E7R(J,c));return x};
RfR=function(J){return!!J.playlistPanelVideoRenderer&&!J.playlistPanelVideoRenderer.unplayableText};
o7e=function(J){return!!J.playlistPanelVideoRenderer&&!!J.playlistPanelVideoRenderer.title};
QQq=function(J,c){if(c.contents&&!(J>=c.contents.length)&&(J=c.contents.slice(J).find(RfR)))return J.playlistPanelVideoRenderer};
efq=function(J,c){if(c.contents)return(c=c.contents.find(function(m){return!!m.playlistPanelVideoRenderer&&m.playlistPanelVideoRenderer.videoId===J}))?c.playlistPanelVideoRenderer:void 0};
jQD=function(J,c){return c.contents?c.contents.findIndex(function(m){return!!m.playlistPanelVideoRenderer&&m.playlistPanelVideoRenderer.videoId===J}):-1};
Fnr=function(J,c){return c.contents?c.contents.findIndex(function(m){return!!m.playlistPanelVideoRenderer&&m.playlistPanelVideoRenderer.playlistSetVideoId===J}):-1};
llT=function(J,c){J.contents&&c!==-1&&J.contents.splice(c,1).length===1&&J.totalVideos!==void 0&&(--J.totalVideos,delete J.videoCountText)};
_.yMo=function(J){var c=[];if(!J||!J.contents)return c;J=_.M(J.contents);for(var m=J.next();!m.done;m=J.next())m=m.value,m.playlistPanelVideoRenderer&&m.playlistPanelVideoRenderer.videoId&&c.push(m.playlistPanelVideoRenderer.videoId);return c};
_.BV2=function(J){if(J&&J.contents)return(J=J.contents.find(function(c){return!!c.playlistPanelVideoRenderer&&!!c.playlistPanelVideoRenderer.selected})||J.contents[J.currentIndex])?J.playlistPanelVideoRenderer:void 0};
g7Q=function(J,c,m,b,x,P,p){x=x===void 0?!1:x;P=P===void 0?!1:P;p=p===void 0?!1:p;if(J.contents&&J.contents.length!==0){b&&(J.contents=J.contents.filter(b));b=J.contents.length;for(var t=0;t<b;t++){var I=J.contents[t].playlistPanelVideoRenderer;I&&(t===c?(P&&delete I.menu,I.indexText=_.v2("\u25b6")):x||J.isInfinite||I.indexText===void 0?delete I.indexText:I.indexText=_.v2((t+1+m).toString()))}J.currentIndex=c+m;p&&(delete J.videoCountText,J.totalVideos=b)}};
_.jk=function(J){J=Jgm(J);if(J){var c=J.length;var m=-6%c;m<0&&(m=c+m);J=J.slice(c-m)+J.slice(0,c-m)}else J="";m="";for(c=0;c<J.length&&J[c]!==cge;c++)m+=J[c];return m};
_.mH3=function(J,c){var m=document.body;c=c===void 0?function(t){return t}:c;
var b,x=null;J=_.M(J);for(b=J.next();!b.done;b=J.next()){var P=b.value;b=void 0;var p=(b=P[2])!=null?b:"div";b=document.createElement(p);x||(x=b);p=P[0];P=P[1];p&&(b.id=c(p));if(P)for(P=_.M(P),p=P.next();!p.done;p=P.next())b.classList.add(c(p.value));m.appendChild(b);m=b}return[x,m]};
b9t=function(J,c){for(var m="",b=0;b<c;b++)m+=J.charAt(Math.floor(Math.random()*J.length));return m};
FM=function(J){return b9t("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",J)};
lW=function(J){return b9t("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",J)};
y_=function(J){return b9t("0123456789",J)};
B2=function(){var J=performance.now(),c=new Date;var m="2."+c.getFullYear()+String(c.getMonth()+1).padStart(2,"0")+String(c.getDate()).padStart(2,"0");for(var b,x=Math.floor(Math.random()*11)+15,P=[],p=0;p<x;p++)P.push(Math.floor(Math.random()*26476865)+24547720);b=P.join(",");var t=FM(10),I=FM(100),a=FM(102),k=FM(106),H=FM(108),T=FM(11),r=FM(1140),W=FM(123),Y=FM(14),Z=FM(16),d=FM(1900),G=FM(23),e=FM(26),A=FM(34),l=FM(397),y=FM(44),pG=FM(5),kt=FM(72),nG=FM(74),fG=FM(75),Yt=FM(88),Z3=FM(91),oR="rr3---sn-q4fl6nd7 rr1---sn-q4flrnle rr5---sn-q4fl6nd7 rr1---sn-q4fl6nd7 rr4---sn-q4fl6nlz rr3---sn-q4fl6n6r rr4---sn-5hne6nsy rr4---sn-q4flrn7r rr2---sn-q4fl6n66 rr4---sn-q4flrnld rr5---sn-q4flrne6 rr3---sn-q4flrn7y rr3---sn-q4flrne6 rr1---sn-ntqe6n7k rr3---sn-q4flrnl6 rr1---sn-q4flrnl7 rr4---sn-q4fl6nsk rr4---sn-4g5ednsr rr5---sn-ntqe6n76 rr5---sn-q4flrnle".split(" ");
var Em=oR[Math.floor(Math.random()*oR.length)];var X$=(new Date("2010-01-01")).getTime();var Hu=(new Date(X$+Math.random()*((new Date).getTime()-X$))).toISOString().split("T")[0];for(var S6,a2=[],Nu=0;Nu<4;Nu++)a2.push(Math.floor(Math.random()*100));S6=a2.join(".");var cu=Number(y_(5)),t8=Number(y_(6)),I_=Number(y_(7)),fU=Number(y_(9)),Nf=y_(1),wL=y_(10),qu=y_(16),O5=y_(19),LQ=y_(2),j6=y_(20),Ow=y_(21),QQ=y_(3),VQ=y_(4),vB=y_(5),T4=y_(6),Tz=y_(7),uC=y_(8),Kr=y_(9);var M2=b9t("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_/+",
27352);var MR=[lW(5),lW(5),lW(5)].join("%2C"),w8=[y_(3),y_(5),y_(5)].join("%2C"),NL=lW(0),A8=lW(1),wR=lW(10),Bu=lW(108),M0=lW(11),ii=lW(12),GO=lW(13),IP=lW(14),V4=lW(15),C6=lW(16),qr=lW(17),sm=lW(18),hq=lW(19),Om=lW(2),KQ=lW(20),VR=lW(22),Yl=lW(23),Cr=lW(24),iC=lW(266),HB=lW(3),rR=lW(30),KU=lW(34),PB=lW(35),T$=lW(36),jj=lW(4),S9=lW(40),r8=lW(43),tU=lW(47),Ei=lW(5),RR=lW(6),pr=lW(7),pU=lW(75),G4=lW(8),uL=lW(80),al=lW(9),X7="https://www."+lW(12)+".com",kd={},He={},HI={},QFm={},iE={},Er={},vq={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:b}]},{service:"CSI",params:[{key:"yt_ad",value:"1"},{key:"c",value:"WEB"},{key:"cver",value:m},{key:"yt_li",value:"1"},{key:"GetPlayer_rid",value:"0x"+lW(16).toLowerCase()}]},{service:"GUIDED_HELP",params:[{key:"logged_in",
value:"1"}]},{service:"ECATCHER",params:[{key:"client.version",value:m},{key:"client.name",value:"WEB"},{key:"client.fexp",value:b}]}],maxAgeSeconds:0,mainAppWebResponseContext:{datasyncId:Ow+"||",loggedOut:!1,trackingParam:"kx_fmPxh"+lW(73)},webResponseContextExtensionData:{hasDecorated:!0}},playabilityStatus:{status:"OK",playableInEmbed:!0,offlineability:{buttonRenderer:{serviceEndpoint:{clickTrackingParams:S9,ypcGetOfflineUpsellEndpoint:{params:uL}},trackingParams:PB+"="}},miniplayer:{miniplayerRenderer:{playbackMode:"PLAYBACK_MODE_ALLOW"}},
contextParams:"Q0FFU0FnZ0M="},streamingData:{expiresInSeconds:"21540",formats:[{itag:18,url:"https://"+Em+".googlevideo.com/videoplayback?expire="+wL+"&ei="+G+"&ip="+S6+"&id=o-AF"+r8+"&itag=18&source=youtube&requiressl=yes&mh=X6&mm="+w8+"&mn="+MR+"&ms="+MR+"&mv="+A8+"&mvi="+Nf+"&pl="+LQ+"&initcwndbps="+Tz+"&siu="+Nf+"&spc="+y+"&vprv="+Nf+"&svpuc="+Nf+"&mime=video%2Fmp4&ns="+Cr+"&cnr="+LQ+"&ratebypass=yes&dur="+uC+"&lmt="+qu+"&mt="+wL+"&fvip=3&c=WEB&txp="+Tz+"&n="+Z+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+
H+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+H,mimeType:'video/mp4; codecs="avc1.42001E, mp4a.40.2"',bitrate:t8,width:640,height:360,lastModified:qu,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:Tz,audioSampleRate:"44100",audioChannels:2},{itag:22,url:"https://"+Em+".googlevideo.com/videoplayback?expire="+wL+"&ei="+G+"&ip="+S6+"&id=o-AF"+r8+"&itag=22&source=youtube&requiressl=yes&mh=X6&mm="+w8+"&mn="+
MR+"&ms="+MR+"&mv="+A8+"&mvi="+Nf+"&pl="+LQ+"&initcwndbps="+Tz+"&siu="+Nf+"&spc="+y+"&vprv="+Nf+"&svpuc="+Nf+"&mime=video%2Fmp4&ns="+Cr+"&cnr="+LQ+"&ratebypass=yes&dur="+uC+"&lmt="+qu+"&mt="+wL+"&fvip=3&c=WEB&txp="+Tz+"&n="+Z+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+Bu+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+H,mimeType:'video/mp4; codecs="avc1.64001F, mp4a.40.2"',bitrate:t8,width:1280,
height:720,lastModified:qu,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:Tz,audioSampleRate:"44100",audioChannels:2}],adaptiveFormats:[{itag:137,url:"https://"+Em+".googlevideo.com/videoplayback?expire="+wL+"&ei="+G+"&ip="+S6+"&id=o-AF"+r8+"&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="+w8+"&mn="+MR+"&ms="+
MR+"&mv="+A8+"&mvi="+Nf+"&pl="+LQ+"&initcwndbps="+Tz+"&siu="+Nf+"&spc="+y+"&vprv="+Nf+"&svpuc="+Nf+"&mime=video%2Fmp4&ns="+Cr+"&gir="+HB+"&clen="+Kr+"&dur="+uC+"&lmt="+qu+"&mt="+wL+"&fvip=3&keepalive="+HB+"&c=WEB&txp="+Tz+"&n="+C6+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+I+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+H,mimeType:'video/mp4; codecs="avc1.640028"',bitrate:I_,width:1920,height:1080,
initRange:{start:"0",end:"740"},indexRange:{start:QQ,end:VQ},lastModified:qu,contentLength:Kr,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:I_,approxDurationMs:Tz},{itag:248,url:"https://"+Em+".googlevideo.com/videoplayback?expire="+wL+"&ei="+G+"&ip="+S6+"&id=o-AF"+r8+"&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="+w8+"&mn="+MR+"&ms="+MR+"&mv="+
A8+"&mvi="+Nf+"&pl="+LQ+"&initcwndbps="+Tz+"&siu="+Nf+"&spc="+y+"&vprv="+Nf+"&svpuc="+Nf+"&mime=video%2Fwebm&ns="+Cr+"&gir="+HB+"&clen="+Kr+"&dur="+uC+"&lmt="+qu+"&mt="+wL+"&fvip=3&keepalive="+HB+"&c=WEB&txp="+Tz+"&n="+C6+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+k+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+H,mimeType:'video/webm; codecs="vp9"',bitrate:I_,width:1920,height:1080,initRange:{start:"0",
end:"220"},indexRange:{start:QQ,end:VQ},lastModified:qu,contentLength:Kr,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:I_,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Tz},{itag:399,url:"https://"+Em+".googlevideo.com/videoplayback?expire="+wL+"&ei="+G+"&ip="+S6+"&id=o-AF"+r8+"&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="+
w8+"&mn="+MR+"&ms="+MR+"&mv="+A8+"&mvi="+Nf+"&pl="+LQ+"&initcwndbps="+Tz+"&siu="+Nf+"&spc="+y+"&vprv="+Nf+"&svpuc="+Nf+"&mime=video%2Fmp4&ns="+Cr+"&gir="+HB+"&clen="+Kr+"&dur="+uC+"&lmt="+qu+"&mt="+wL+"&fvip=3&keepalive="+HB+"&c=WEB&txp="+Tz+"&n="+C6+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+I+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+H,mimeType:'video/mp4; codecs="av01.0.08M.08"',bitrate:I_,
width:1920,height:1080,initRange:{start:"0",end:"699"},indexRange:{start:QQ,end:VQ},lastModified:qu,contentLength:Kr,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:I_,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Tz},{itag:136,url:"https://"+Em+".googlevideo.com/videoplayback?expire="+wL+"&ei="+G+"&ip="+S6+"&id=o-AF"+r8+"&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="+
w8+"&mn="+MR+"&ms="+MR+"&mv="+A8+"&mvi="+Nf+"&pl="+LQ+"&initcwndbps="+Tz+"&siu="+Nf+"&spc="+y+"&vprv="+Nf+"&svpuc="+Nf+"&mime=video%2Fmp4&ns="+Cr+"&gir="+HB+"&clen="+Kr+"&dur="+uC+"&lmt="+qu+"&mt="+wL+"&fvip=3&keepalive="+HB+"&c=WEB&txp="+Tz+"&n="+C6+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+H+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+H,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:I_,
width:1280,height:720,initRange:{start:"0",end:"738"},indexRange:{start:QQ,end:VQ},lastModified:qu,contentLength:Kr,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:t8,approxDurationMs:Tz},{itag:247,url:"https://"+Em+".googlevideo.com/videoplayback?expire="+wL+"&ei="+G+"&ip="+S6+"&id=o-AF"+r8+"&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="+w8+"&mn="+
MR+"&ms="+MR+"&mv="+A8+"&mvi="+Nf+"&pl="+LQ+"&initcwndbps="+Tz+"&siu="+Nf+"&spc="+y+"&vprv="+Nf+"&svpuc="+Nf+"&mime=video%2Fwebm&ns="+Cr+"&gir="+HB+"&clen="+Kr+"&dur="+uC+"&lmt="+qu+"&mt="+wL+"&fvip=3&keepalive="+HB+"&c=WEB&txp="+Tz+"&n="+C6+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+H+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+H,mimeType:'video/webm; codecs="vp9"',bitrate:I_,width:1280,
height:720,initRange:{start:"0",end:"219"},indexRange:{start:QQ,end:VQ},lastModified:qu,contentLength:Kr,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:t8,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Tz},{itag:398,url:"https://"+Em+".googlevideo.com/videoplayback?expire="+wL+"&ei="+G+"&ip="+S6+"&id=o-AF"+r8+"&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="+
w8+"&mn="+MR+"&ms="+MR+"&mv="+A8+"&mvi="+Nf+"&pl="+LQ+"&initcwndbps="+Tz+"&siu="+Nf+"&spc="+y+"&vprv="+Nf+"&svpuc="+Nf+"&mime=video%2Fmp4&ns="+Cr+"&gir="+HB+"&clen="+Kr+"&dur="+uC+"&lmt="+qu+"&mt="+wL+"&fvip=3&keepalive="+HB+"&c=WEB&txp="+Tz+"&n="+C6+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+H+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+H,mimeType:'video/mp4; codecs="av01.0.05M.08"',bitrate:I_,
width:1280,height:720,initRange:{start:"0",end:"699"},indexRange:{start:QQ,end:VQ},lastModified:qu,contentLength:Kr,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:t8,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Tz},{itag:135,url:"https://"+Em+".googlevideo.com/videoplayback?expire="+wL+"&ei="+G+"&ip="+S6+"&id=o-AF"+r8+"&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="+
w8+"&mn="+MR+"&ms="+MR+"&mv="+A8+"&mvi="+Nf+"&pl="+LQ+"&initcwndbps="+Tz+"&siu="+Nf+"&spc="+y+"&vprv="+Nf+"&svpuc="+Nf+"&mime=video%2Fmp4&ns="+Cr+"&gir="+HB+"&clen="+uC+"&dur="+uC+"&lmt="+qu+"&mt="+wL+"&fvip=3&keepalive="+HB+"&c=WEB&txp="+Tz+"&n="+C6+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+H+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+H,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:t8,
width:854,height:480,initRange:{start:"0",end:"738"},indexRange:{start:QQ,end:VQ},lastModified:qu,contentLength:uC,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:t8,approxDurationMs:Tz},{itag:244,url:"https://"+Em+".googlevideo.com/videoplayback?expire="+wL+"&ei="+G+"&ip="+S6+"&id=o-AF"+r8+"&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="+w8+"&mn="+
MR+"&ms="+MR+"&mv="+A8+"&mvi="+Nf+"&pl="+LQ+"&initcwndbps="+Tz+"&siu="+Nf+"&spc="+y+"&vprv="+Nf+"&svpuc="+Nf+"&mime=video%2Fwebm&ns="+Cr+"&gir="+HB+"&clen="+uC+"&dur="+uC+"&lmt="+qu+"&mt="+wL+"&fvip=3&keepalive="+HB+"&c=WEB&txp="+Tz+"&n="+C6+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Bu+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+H,mimeType:'video/webm; codecs="vp9"',bitrate:t8,width:854,
height:480,initRange:{start:"0",end:"219"},indexRange:{start:QQ,end:VQ},lastModified:qu,contentLength:uC,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:t8,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Tz},{itag:397,url:"https://"+Em+".googlevideo.com/videoplayback?expire="+wL+"&ei="+G+"&ip="+S6+"&id=o-AF"+r8+"&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="+
w8+"&mn="+MR+"&ms="+MR+"&mv="+A8+"&mvi="+Nf+"&pl="+LQ+"&initcwndbps="+Tz+"&siu="+Nf+"&spc="+y+"&vprv="+Nf+"&svpuc="+Nf+"&mime=video%2Fmp4&ns="+Cr+"&gir="+HB+"&clen="+uC+"&dur="+uC+"&lmt="+qu+"&mt="+wL+"&fvip=3&keepalive="+HB+"&c=WEB&txp="+Tz+"&n="+C6+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+I+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+H,mimeType:'video/mp4; codecs="av01.0.04M.08"',bitrate:t8,
width:854,height:480,initRange:{start:"0",end:"699"},indexRange:{start:QQ,end:VQ},lastModified:qu,contentLength:uC,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:t8,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Tz},{itag:134,url:"https://"+Em+".googlevideo.com/videoplayback?expire="+wL+"&ei="+G+"&ip="+S6+"&id=o-AF"+r8+"&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="+
w8+"&mn="+MR+"&ms="+MR+"&mv="+A8+"&mvi="+Nf+"&pl="+LQ+"&initcwndbps="+Tz+"&siu="+Nf+"&spc="+y+"&vprv="+Nf+"&svpuc="+Nf+"&mime=video%2Fmp4&ns="+Cr+"&gir="+HB+"&clen="+uC+"&dur="+uC+"&lmt="+qu+"&mt="+wL+"&fvip=3&keepalive="+HB+"&c=WEB&txp="+Tz+"&n="+C6+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+H+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+H,mimeType:'video/mp4; codecs="avc1.4d401e"',bitrate:t8,
width:640,height:360,initRange:{start:"0",end:"738"},indexRange:{start:QQ,end:VQ},lastModified:qu,contentLength:uC,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:t8,highReplication:!0,approxDurationMs:Tz},{itag:243,url:"https://"+Em+".googlevideo.com/videoplayback?expire="+wL+"&ei="+G+"&ip="+S6+"&id=o-AF"+r8+"&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="+
w8+"&mn="+MR+"&ms="+MR+"&mv="+A8+"&mvi="+Nf+"&pl="+LQ+"&initcwndbps="+Tz+"&siu="+Nf+"&spc="+y+"&vprv="+Nf+"&svpuc="+Nf+"&mime=video%2Fwebm&ns="+Cr+"&gir="+HB+"&clen="+uC+"&dur="+uC+"&lmt="+qu+"&mt="+wL+"&fvip=3&keepalive="+HB+"&c=WEB&txp="+Tz+"&n="+C6+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+k+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+H,mimeType:'video/webm; codecs="vp9"',bitrate:t8,
width:640,height:360,initRange:{start:"0",end:"219"},indexRange:{start:QQ,end:VQ},lastModified:qu,contentLength:uC,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:t8,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Tz},{itag:396,url:"https://"+Em+".googlevideo.com/videoplayback?expire="+wL+"&ei="+G+"&ip="+S6+"&id=o-AF"+r8+"&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="+
w8+"&mn="+MR+"&ms="+MR+"&mv="+A8+"&mvi="+Nf+"&pl="+LQ+"&initcwndbps="+Tz+"&siu="+Nf+"&spc="+y+"&vprv="+Nf+"&svpuc="+Nf+"&mime=video%2Fmp4&ns="+Cr+"&gir="+HB+"&clen="+uC+"&dur="+uC+"&lmt="+qu+"&mt="+wL+"&fvip=3&keepalive="+HB+"&c=WEB&txp="+Tz+"&n="+C6+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+H+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+H,mimeType:'video/mp4; codecs="av01.0.01M.08"',bitrate:t8,
width:640,height:360,initRange:{start:"0",end:"699"},indexRange:{start:QQ,end:VQ},lastModified:qu,contentLength:uC,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:t8,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Tz},{itag:133,url:"https://"+Em+".googlevideo.com/videoplayback?expire="+wL+"&ei="+G+"&ip="+S6+"&id=o-AF"+r8+"&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="+
w8+"&mn="+MR+"&ms="+MR+"&mv="+A8+"&mvi="+Nf+"&pl="+LQ+"&initcwndbps="+Tz+"&siu="+Nf+"&spc="+y+"&vprv="+Nf+"&svpuc="+Nf+"&mime=video%2Fmp4&ns="+Cr+"&gir="+HB+"&clen="+uC+"&dur="+uC+"&lmt="+qu+"&mt="+wL+"&fvip=3&keepalive="+HB+"&c=WEB&txp="+Tz+"&n="+C6+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+H+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+H,mimeType:'video/mp4; codecs="avc1.4d4015"',bitrate:t8,
width:426,height:240,initRange:{start:"0",end:"738"},indexRange:{start:QQ,end:VQ},lastModified:qu,contentLength:uC,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:t8,approxDurationMs:Tz},{itag:242,url:"https://"+Em+".googlevideo.com/videoplayback?expire="+wL+"&ei="+G+"&ip="+S6+"&id=o-AF"+r8+"&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="+w8+"&mn="+
MR+"&ms="+MR+"&mv="+A8+"&mvi="+Nf+"&pl="+LQ+"&initcwndbps="+Tz+"&siu="+Nf+"&spc="+y+"&vprv="+Nf+"&svpuc="+Nf+"&mime=video%2Fwebm&ns="+Cr+"&gir="+HB+"&clen="+uC+"&dur="+uC+"&lmt="+qu+"&mt="+wL+"&fvip=3&keepalive="+HB+"&c=WEB&txp="+Tz+"&n="+C6+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+H+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+H,mimeType:'video/webm; codecs="vp9"',bitrate:t8,width:426,
height:240,initRange:{start:"0",end:"218"},indexRange:{start:QQ,end:VQ},lastModified:qu,contentLength:uC,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:t8,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Tz},{itag:395,url:"https://"+Em+".googlevideo.com/videoplayback?expire="+wL+"&ei="+G+"&ip="+S6+"&id=o-AF"+r8+"&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="+
w8+"&mn="+MR+"&ms="+MR+"&mv="+A8+"&mvi="+Nf+"&pl="+LQ+"&initcwndbps="+Tz+"&siu="+Nf+"&spc="+y+"&vprv="+Nf+"&svpuc="+Nf+"&mime=video%2Fmp4&ns="+Cr+"&gir="+HB+"&clen="+uC+"&dur="+uC+"&lmt="+qu+"&mt="+wL+"&fvip=3&keepalive="+HB+"&c=WEB&txp="+Tz+"&n="+C6+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+H+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+H,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:t8,
width:426,height:240,initRange:{start:"0",end:"699"},indexRange:{start:QQ,end:VQ},lastModified:qu,contentLength:uC,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:t8,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Tz},{itag:160,url:"https://"+Em+".googlevideo.com/videoplayback?expire="+wL+"&ei="+G+"&ip="+S6+"&id=o-AF"+r8+"&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="+
w8+"&mn="+MR+"&ms="+MR+"&mv="+A8+"&mvi="+Nf+"&pl="+LQ+"&initcwndbps="+Tz+"&siu="+Nf+"&spc="+y+"&vprv="+Nf+"&svpuc="+Nf+"&mime=video%2Fmp4&ns="+Cr+"&gir="+HB+"&clen="+uC+"&dur="+uC+"&lmt="+qu+"&mt="+wL+"&fvip=3&keepalive="+HB+"&c=WEB&txp="+Tz+"&n="+C6+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+k+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+H,mimeType:'video/mp4; codecs="avc1.4d400c"',bitrate:t8,
width:256,height:144,initRange:{start:"0",end:"737"},indexRange:{start:QQ,end:VQ},lastModified:qu,contentLength:uC,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:cu,approxDurationMs:Tz},{itag:278,url:"https://"+Em+".googlevideo.com/videoplayback?expire="+wL+"&ei="+G+"&ip="+S6+"&id=o-AF"+r8+"&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="+w8+"&mn="+
MR+"&ms="+MR+"&mv="+A8+"&mvi="+Nf+"&pl="+LQ+"&initcwndbps="+Tz+"&siu="+Nf+"&spc="+y+"&vprv="+Nf+"&svpuc="+Nf+"&mime=video%2Fwebm&ns="+Cr+"&gir="+HB+"&clen="+uC+"&dur="+uC+"&lmt="+qu+"&mt="+wL+"&fvip=3&keepalive="+HB+"&c=WEB&txp="+Tz+"&n="+C6+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+H+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+H,mimeType:'video/webm; codecs="vp9"',bitrate:t8,width:256,
height:144,initRange:{start:"0",end:"218"},indexRange:{start:QQ,end:VQ},lastModified:qu,contentLength:uC,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:cu,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Tz},{itag:394,url:"https://"+Em+".googlevideo.com/videoplayback?expire="+wL+"&ei="+G+"&ip="+S6+"&id=o-AF"+r8+"&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="+
w8+"&mn="+MR+"&ms="+MR+"&mv="+A8+"&mvi="+Nf+"&pl="+LQ+"&initcwndbps="+Tz+"&siu="+Nf+"&spc="+y+"&vprv="+Nf+"&svpuc="+Nf+"&mime=video%2Fmp4&ns="+Cr+"&gir="+HB+"&clen="+uC+"&dur="+uC+"&lmt="+qu+"&mt="+wL+"&fvip=3&keepalive="+HB+"&c=WEB&txp="+Tz+"&n="+C6+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+I+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+H,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:cu,
width:256,height:144,initRange:{start:"0",end:"699"},indexRange:{start:QQ,end:VQ},lastModified:qu,contentLength:uC,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:cu,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Tz},{itag:140,url:"https://"+Em+".googlevideo.com/videoplayback?expire="+wL+"&ei="+G+"&ip="+S6+"&id=o-AF"+r8+"&itag=140&source=youtube&requiressl=yes&mh=X6&mm="+
w8+"&mn="+MR+"&ms="+MR+"&mv="+A8+"&mvi="+Nf+"&pl="+LQ+"&initcwndbps="+Tz+"&siu="+Nf+"&spc="+y+"&vprv="+Nf+"&svpuc="+Nf+"&mime=audio%2Fmp4&ns="+Cr+"&gir="+HB+"&clen="+uC+"&dur="+uC+"&lmt="+qu+"&mt="+wL+"&fvip=3&keepalive="+HB+"&c=WEB&txp="+Tz+"&n="+C6+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+k+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+H,mimeType:'audio/mp4; codecs="mp4a.40.2"',bitrate:t8,
initRange:{start:"0",end:"631"},indexRange:{start:QQ,end:VQ},lastModified:qu,contentLength:uC,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:t8,highReplication:!0,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:Tz,audioSampleRate:"44100",audioChannels:2,loudnessDb:-3.7800007},{itag:249,url:"https://"+Em+".googlevideo.com/videoplayback?expire="+wL+"&ei="+G+"&ip="+S6+"&id=o-AF"+r8+"&itag=249&source=youtube&requiressl=yes&mh=X6&mm="+w8+"&mn="+MR+"&ms="+MR+"&mv="+A8+"&mvi="+Nf+"&pl="+
LQ+"&initcwndbps="+Tz+"&siu="+Nf+"&spc="+y+"&vprv="+Nf+"&svpuc="+Nf+"&mime=audio%2Fwebm&ns="+Cr+"&gir="+HB+"&clen="+Tz+"&dur="+uC+"&lmt="+qu+"&mt="+wL+"&fvip=3&keepalive="+HB+"&c=WEB&txp="+Tz+"&n="+C6+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+k+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+H,mimeType:'audio/webm; codecs="opus"',bitrate:cu,initRange:{start:"0",end:"265"},indexRange:{start:QQ,
end:VQ},lastModified:qu,contentLength:Tz,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:cu,audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:Tz,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:250,url:"https://"+Em+".googlevideo.com/videoplayback?expire="+wL+"&ei="+G+"&ip="+S6+"&id=o-AF"+r8+"&itag=250&source=youtube&requiressl=yes&mh=X6&mm="+w8+"&mn="+MR+"&ms="+MR+"&mv="+A8+"&mvi="+Nf+"&pl="+LQ+"&initcwndbps="+Tz+"&siu="+Nf+"&spc="+y+"&vprv="+Nf+"&svpuc="+Nf+"&mime=audio%2Fwebm&ns="+
Cr+"&gir="+HB+"&clen="+Tz+"&dur="+uC+"&lmt="+qu+"&mt="+wL+"&fvip=3&keepalive="+HB+"&c=WEB&txp="+Tz+"&n="+C6+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+k+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+H,mimeType:'audio/webm; codecs="opus"',bitrate:cu,initRange:{start:"0",end:"265"},indexRange:{start:QQ,end:VQ},lastModified:qu,contentLength:Tz,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:cu,
audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:Tz,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:251,url:"https://"+Em+".googlevideo.com/videoplayback?expire="+wL+"&ei="+G+"&ip="+S6+"&id=o-AF"+r8+"&itag=251&source=youtube&requiressl=yes&mh=X6&mm="+w8+"&mn="+MR+"&ms="+MR+"&mv="+A8+"&mvi="+Nf+"&pl="+LQ+"&initcwndbps="+Tz+"&siu="+Nf+"&spc="+y+"&vprv="+Nf+"&svpuc="+Nf+"&mime=audio%2Fwebm&ns="+Cr+"&gir="+HB+"&clen="+uC+"&dur="+uC+"&lmt="+qu+"&mt="+wL+"&fvip=3&keepalive="+HB+"&c=WEB&txp="+
Tz+"&n="+C6+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+I+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+H,mimeType:'audio/webm; codecs="opus"',bitrate:t8,initRange:{start:"0",end:"265"},indexRange:{start:QQ,end:VQ},lastModified:qu,contentLength:uC,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:t8,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:Tz,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="+Kr+"&docid="+T+"&ei="+G+"&feature="+t+"&fexp="+NL+"&ns="+Om+"&plid="+Z+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+A8+"&el="+wR+"&len="+VQ+"&of="+VR+
"&uga="+LQ+"&vm="+iC},videostatsDelayplayUrl:{baseUrl:"https://s.youtube.com/api/stats/delayplay?cl="+Kr+"&docid="+T+"&ei="+G+"&feature="+t+"&fexp="+NL+"&ns="+Om+"&plid="+Z+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+A8+"&el="+wR+"&len="+VQ+"&of="+VR+"&uga="+LQ+"&vm="+iC},videostatsWatchtimeUrl:{baseUrl:"https://s.youtube.com/api/stats/watchtime?cl="+Kr+"&docid="+T+"&ei="+G+"&feature="+t+"&fexp="+NL+"&ns="+Om+"&plid="+Z+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+
A8+"&el="+wR+"&len="+VQ+"&of="+VR+"&uga="+LQ+"&vm="+iC},ptrackingUrl:{baseUrl:"https://www.youtube.com/ptracking?ei="+G+"&m="+Yt+"&oid="+VR+"&plid="+Z+"&pltype="+pr+"&ptchn="+VR+"&ptk="+Y+"&video_id="+T},qoeUrl:{baseUrl:"https://s.youtube.com/api/stats/qoe?cl="+Kr+"&docid="+T+"&ei="+G+"&event="+IP+"&feature="+t+"&fexp="+NL+"&ns="+Om+"&plid="+Z+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+A8},atrUrl:{baseUrl:"https://s.youtube.com/api/stats/atr?docid="+T+"&ei="+G+"&feature="+
t+"&len="+VQ+"&ns="+Om+"&plid="+Z+"&ver="+Nf,elapsedMediaTimeSeconds:5},videostatsScheduledFlushWalltimeSeconds:[10,20,30],videostatsDefaultFlushIntervalSeconds:40},captions:{playerCaptionsTracklistRenderer:{captionTracks:[{baseUrl:"https://www.youtube.com/api/timedtext?v="+T+"&caps="+HB+"&opi="+Kr+"&xoaf="+Nf+"&hl="+Om+"&ip="+S6+"&ipbits="+Nf+"&expire="+wL+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+S6+"&key="+HB+"&lang="+pG,name:{simpleText:qr},vssId:".en-US",languageCode:"en-US",isTranslatable:!0,
trackName:""},{baseUrl:"https://www.youtube.com/api/timedtext?v="+T+"&caps="+HB+"&opi="+Kr+"&xoaf="+Nf+"&hl="+Om+"&ip="+S6+"&ipbits="+Nf+"&expire="+wL+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+S6+"&key="+HB+"&kind="+HB+"&lang="+Om,name:{simpleText:jj},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:M0,title:GO,lengthSeconds:"1155",keywords:[Ei,V4,C6,ii],
channelId:Cr,isOwnerViewing:!1,shortDescription:hq,isCrawlable:!0,thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+T+"/hqdefault.jpg?sqp=-oaymwE"+T$+"G&rs="+KU,width:168,height:94},{url:"https://i.ytimg.com/vi/"+T+"/hqdefault.jpg?sqp=-oaymwE"+T$+"G&rs="+KU,width:196,height:110},{url:"https://i.ytimg.com/vi/"+T+"/hqdefault.jpg?sqp=-oaymwE"+T$+"G&rs="+A,width:246,height:138},{url:"https://i.ytimg.com/vi/"+T+"/hqdefault.jpg?sqp=-oaymwE"+T$+"G&rs="+A,width:336,height:188},{url:"https://i.ytimg.com/vi/"+
T+"/maxresdefault.jpg",width:1920,height:1080}]},allowRatings:!0,viewCount:Tz,author:GO,isPrivate:!1,isUnpluggedCorpus:!1,isLiveContent:!1},annotations:[{playerAnnotationsExpandedRenderer:{featuredChannel:{startTimeMs:"0",endTimeMs:Tz,watermark:{thumbnails:[{url:"https://i.ytimg.com/an/"+VR+"/featured_channel.jpg?v="+G4,width:40,height:40}]},trackingParams:PB+"=",navigationEndpoint:{clickTrackingParams:S9,commandMetadata:{webCommandMetadata:{url:"/channel/"+Cr,webPageType:"WEB_PAGE_TYPE_CHANNEL",
rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:Cr}},channelName:GO,subscribeButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:G4}]},subscribed:!1,enabled:!0,type:"FREE",channelId:Cr,showPreferences:!1,subscribedButtonText:{runs:[{text:M0}]},unsubscribedButtonText:{runs:[{text:ii}]},trackingParams:PB+"=",unsubscribeButtonText:{runs:[{text:C6}]},serviceEndpoints:[{clickTrackingParams:S9,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},
subscribeEndpoint:{channelIds:[Cr],params:G4}},{clickTrackingParams:S9,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:S9,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:PB+"=",dialogMessages:[{runs:[{text:G4},{text:al},{text:hq}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:G4}]},serviceEndpoint:{clickTrackingParams:S9,commandMetadata:{webCommandMetadata:{sendPost:!0,
apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[Cr],params:G4}},accessibility:{label:wR},trackingParams:PB+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:ii}]},accessibility:{label:al},trackingParams:PB+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:G4}},unsubscribeAccessibility:{accessibilityData:{label:M0}}}}},allowSwipeDismiss:!0,annotationId:"632ce843-0000-20d6-ace4-3c286d423086"}}],
playerConfig:{audioConfig:{loudnessDb:-3.7800007,perceptualLoudnessDb:-17.78,enablePerFormatLoudness:!0},streamSelectionConfig:{maxBitrate:uC},mediaCommonConfig:{dynamicReadaheadConfig:{maxReadAheadMediaTimeMs:12E4,minReadAheadMediaTimeMs:15E3,readAheadGrowthRateMs:1E3}},webPlayerConfig:{useCobaltTvosDash:!0,webPlayerActionsPorting:{getSharePanelCommand:{clickTrackingParams:S9,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/share/get_web_player_share_panel"}},webPlayerShareEntityServiceEndpoint:{serializedShareEntity:"CgtndjNsdkt5X1dENA%3D%3D"}},
subscribeCommand:{clickTrackingParams:S9,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[Cr],params:G4}},unsubscribeCommand:{clickTrackingParams:S9,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[Cr],params:G4}},addToWatchLaterCommand:{clickTrackingParams:S9,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},
playlistEditEndpoint:{playlistId:"WL",actions:[{addedVideoId:M0,action:"ACTION_ADD_VIDEO"}]}},removeFromWatchLaterCommand:{clickTrackingParams:S9,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID",removedVideoId:M0}]}}}}},storyboards:{playerStoryboardSpecRenderer:{spec:"https://i.ytimg.com/sb/"+T+"/storyboard3_L$L/$N.jpg?sqp=-oaymwE"+T$+"G",recommendedLevel:2}},microformat:{playerMicroformatRenderer:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+
T+"/maxresdefault.jpg",width:1280,height:720}]},embed:{iframeUrl:"https://www.youtube.com/embed/"+M0,width:1280,height:720},title:{simpleText:KQ},description:{simpleText:hq},lengthSeconds:"1156",ownerProfileUrl:"http://www.youtube.com/@"+sm,externalChannelId:Cr,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:Tz,category:"Travel & Events",publishDate:Hu,ownerChannelName:GO,uploadDate:Hu}},cards:{cardCollectionRenderer:{cards:[{cardRenderer:{teaser:{simpleCardTeaserRenderer:{message:{simpleText:IP},trackingParams:PB+"=",prominent:!0,logVisibilityUpdates:!0,onTapCommand:{clickTrackingParams:S9,changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-error-corrections",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}}}},cueRanges:[{startCardActiveMs:"0",
endCardActiveMs:"5000",teaserDurationMs:"6000",iconAfterTeaserMs:"5000"}],trackingParams:PB+"="}}],headerText:{simpleText:KQ},icon:{infoCardIconRenderer:{trackingParams:PB+"="}},closeButton:{infoCardIconRenderer:{trackingParams:PB+"="}},trackingParams:PB+"=",allowTeaserDismiss:!0,logIconVisibilityUpdates:!0}},trackingParams:PB+"=",attestation:{playerAttestationRenderer:{challenge:"a=6&a2=1&b=fTFKUEAUxxmXFgD-AByAUN6WwsY&c=1696917232&d=1&e="+M0+"&c1a=1&c6a=1&c6b=1&x4=1&hh=mbNf63Xfb0v-wi6-05i_8N3EUGCwK7F0b4rqZoUv9mY",
botguardData:{program:M2,interpreterSafeUrl:(kd.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="//www.google.com/js/th/"+rR+".js",kd),serverEnvironment:1}}},videoQualityPromoSupportedRenderers:{videoQualityPromoRenderer:{triggerCriteria:{connectionWhitelist:["WIFI"],joinLatencySeconds:15,rebufferTimeSeconds:10,watchTimeWindowSeconds:180,refractorySeconds:2592E3},text:{runs:[{text:ii},{text:jj,bold:!0}]},endpoint:{clickTrackingParams:S9,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:PB+"=",snackbar:{notificationActionRenderer:{responseText:{runs:[{text:G4}]},actionButton:{buttonRenderer:{text:{runs:[{text:al}]},navigationEndpoint:{clickTrackingParams:S9,commandMetadata:{webCommandMetadata:{url:"https://www.google.com/get/videoqualityreport/?v="+T,webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.google.com/get/videoqualityreport/?v="+
T,target:"TARGET_NEW_WINDOW"}},trackingParams:PB+"="}},trackingParams:PB+"="}}}},endscreen:{endscreenRenderer:{elements:[{endscreenElementRenderer:{style:"CHANNEL",image:{thumbnails:[{url:"https://yt3.ggpht.com/"+kt+"=s250-c-k-c0x00ffffff-no-rj",width:250,height:250},{url:"https://yt3.ggpht.com/"+kt+"=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:Tz,endMs:Tz,title:{accessibility:{accessibilityData:{label:Ei}},simpleText:pr},metadata:{simpleText:G4},callToAction:{simpleText:RR},dismiss:{simpleText:hq},endpoint:{clickTrackingParams:S9,commandMetadata:{webCommandMetadata:{url:"/channel/"+Cr,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:Cr}},hovercardButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:al}]},subscribed:!1,enabled:!0,type:"FREE",channelId:Cr,showPreferences:!1,
subscribedButtonText:{runs:[{text:RR}]},unsubscribedButtonText:{runs:[{text:wR}]},trackingParams:PB+"=",unsubscribeButtonText:{runs:[{text:G4}]},serviceEndpoints:[{clickTrackingParams:S9,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[Cr],params:G4}},{clickTrackingParams:S9,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:S9,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:PB+
"=",dialogMessages:[{runs:[{text:wR},{text:IP},{text:Ei}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:pr}]},serviceEndpoint:{clickTrackingParams:S9,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[Cr],params:G4}},accessibility:{label:wR},trackingParams:PB+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:KQ}]},
accessibility:{label:Ei},trackingParams:PB+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:KQ}},unsubscribeAccessibility:{accessibilityData:{label:IP}}}},trackingParams:PB+"=",isSubscribe:!0,id:j6}},{endscreenElementRenderer:{style:"VIDEO",image:{thumbnails:[{url:"https://i.ytimg.com/vi/"+T+"/hqdefault.jpg?sqp=-oaymwE"+T$+"G&rs="+A,width:168,height:94},{url:"https://i.ytimg.com/vi/"+T+"/hqdefault.jpg?sqp=-oaymwE"+T$+"G&rs="+KU,width:196,height:110},
{url:"https://i.ytimg.com/vi/"+T+"/hqdefault.jpg?sqp=-oaymwE"+T$+"G&rs="+A,width:246,height:138},{url:"https://i.ytimg.com/vi/"+T+"/hqdefault.jpg?sqp=-oaymwE"+T$+"G&rs="+A,width:336,height:188},{url:"https://i.ytimg.com/vi/"+T+"/maxresdefault.jpg",width:1920,height:1080}]},left:.654386,width:.322807,top:.32769307,aspectRatio:1.7777778,startMs:Tz,endMs:Tz,title:{accessibility:{accessibilityData:{label:hq}},simpleText:wR},metadata:{simpleText:GO},endpoint:{clickTrackingParams:S9,commandMetadata:{webCommandMetadata:{url:"/watch?v="+
M0,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832},interactionLoggingCommandMetadata:{loggingExpectations:{screenCreatedLoggingExpectations:{expectedParentScreens:[{screenVeType:3832}]}}}},watchEndpoint:{videoId:M0,watchEndpointSupportedOnesieConfig:{html5PlaybackOnesieConfig:{commonConfig:{url:"https://"+Em+".googlevideo.com/videoplayback?source=youtube&oeis="+Nf+"&c=WEB&oad="+VQ+"&ovd="+VQ+"&oaad="+vB+"&oavd="+vB+"&ocs="+QQ+"&oewis="+Nf+"&oputc="+Nf+"&ofpcc="+Nf+"&siu="+Nf+"&msp="+Nf+"&odepv="+Nf+
"&id=o-AF"+r8+"&ip="+S6+"&initcwndbps="+Tz+"&mt="+wL+"&oweuc="+NL}}}}},trackingParams:PB+"=",id:j6,thumbnailOverlays:[{thumbnailOverlayTimeStatusRenderer:{text:{accessibility:{accessibilityData:{label:Ei}},simpleText:KQ},style:"DEFAULT"}}]}}],startMs:Tz,trackingParams:PB+"="}},adPlacements:[{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_START",adTimeOffset:{offsetStartMilliseconds:Nf,offsetEndMilliseconds:vB},hideCueRangeMarker:!0}},renderer:{linearAdSequenceRenderer:{linearAds:[{instreamVideoAdRenderer:{skipOffsetMilliseconds:5E3,
pings:{impressionPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackimp/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Kr+";dc_trk_cid="+Kr+";dc_dbm_token="+H+";ord="+wL+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Nf+";dc_rui="+Nf+";dc_exteid="+j6+";dc_av="+QQ+";dc_sk="+Nf+";dc_ctype="+LQ+";dc_ref=http://www.youtube.com/video/"+M0+";dc_pubid="+Nf+";dc_btype=23?gclid="+Z3+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+
r+"____________"+W+"AxAA&sigh="+M0+"&cid="+e+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+Nf+"&ns="+Nf+"&event="+Nf+"&device="+Nf+"&content_v="+T+"&el="+wR+"&ei="+G+"&devicever="+m+"&bti="+Tz+"&format="+T4+"&break_type="+Nf+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+Nf+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+S6+"&slot_pos="+Nf+"&slot_len="+Nf+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+w8+"&ad_len="+vB+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+
M0+"&aqi="+G+"&ad_rmp="+Nf+"&sli="+Nf}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+W+"AxAA&sigh="+T+"&cid="+e+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+W+"AxAA&sigh="+T+"&cid="+e+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Nf+";dc_exteid="+j6+";met="+Nf+";ecn"+Nf+"="+Nf+
";etm1="+Nf+";eid1="+LQ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+W+"AxAA&sigh="+T+"&cid="+e+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Nf+";dc_exteid="+j6+";met="+Nf+";ecn"+Nf+"="+Nf+";etm1="+Nf+";eid1="+T4+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
r+"____________"+W+"AxAA&sigh="+T+"&cid="+e+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Nf+";dc_exteid="+j6+";met="+Nf+";ecn"+Nf+"="+Nf+";etm1="+Nf+";eid1="+LQ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+W+"AxAA&sigh="+T+"&cid="+e+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+W+"AxAA&sigh="+T+"&cid="+e+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Nf+";dc_exteid="+j6+";met="+Nf+";ecn"+Nf+"="+Nf+";etm1="+Nf+";eid1="+LQ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+W+"AxAA&sigh="+T+"&cid="+e+
"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Nf+";dc_exteid="+j6+";met="+Nf+";ecn"+Nf+"="+Nf+";etm1="+Nf+";eid1="+Tz+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+W+"AxAA&sigh="+T+"&cid="+e+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
r+"____________"+W+"AxAA&sigh="+T+"&cid="+e+"&label=video_skip_shown&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]",offsetMilliseconds:5E3},{baseUrl:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+r+"____________"+W+"AxAA&ase=2&num="+Nf+"&cid="+e+"&ad_cpn=%5BAD_CPN%5D&sig="+A+"&adurl="+X7+"&ctype="+QQ+"&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"+
r+"____________"+W+"AxAA&ase=2&num="+Nf+"&cid="+e+"&ad_cpn=%5BAD_CPN%5D&sig="+A+"&adurl="+X7+"&label=video_engaged_view&ctype="+QQ+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Nf+";dc_exteid="+j6+";met="+Nf+";ecn"+Nf+"="+Nf+";etm1="+Nf+";eid1="+T4+";?",offsetMilliseconds:15E3}],clickthroughPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
Kr+";dc_trk_cid="+Kr+";dc_dbm_token="+H+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Nf+";ord="+Kr+";dc_rui="+Nf+";dc_exteid="+O5+";dc_av="+Nf+";dc_sk="+Nf+";dc_ctype="+LQ+";dc_pubid="+Nf+";dc_btype=3?gclid="+Z3+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}],fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+W+"AxAA&sigh="+T+"&cid="+e+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Nf+";dc_exteid="+j6+";met="+Nf+";ecn"+Nf+"="+Nf+";etm1="+Nf+";eid1="+LQ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+a+"&sig="+Yl+"&ad_cpn=[AD_CPN]&id="+RR+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+RR+"&dc_pubid="+Nf+"&dc_exteid="+j6+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+W+"AxAA&sigh="+T+"&cid="+e+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+a+"&sig="+Yl+"&ad_cpn=[AD_CPN]&id="+RR+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+Nf},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+RR+"&avm="+Nf+"&dc_pubid="+Nf+"&dc_exteid="+
j6+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+W+"AxAA&sigh="+T+"&cid="+e+"&label=video_abandon&ad_mt=[AD_MT]&ad_tos=[AD_TOS]&ad_wat=[AD_WAT]&final=[FINAL]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Nf+";dc_exteid="+j6+";met="+Nf+";ecn"+Nf+"="+Nf+";etm1="+Nf+";eid1="+LQ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+
a+"&sig="+Yl+"&ad_cpn=[AD_CPN]&id="+RR+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+Nf},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+RR+"&dc_pubid="+Nf+"&dc_exteid="+j6+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Nf+";dc_exteid="+j6+";met="+Nf+";ecn"+Nf+"="+Nf+";etm1="+Nf+";eid1="+LQ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
Nf+";dc_exteid="+j6+";met="+Nf+";ecn"+Nf+"="+Nf+";etm1="+Nf+";eid1="+T4+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Nf+";dc_exteid="+j6+";met="+Nf+";ecn"+Nf+"="+Nf+";etm1="+Nf+";eid1="+LQ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Nf+";dc_exteid="+j6+";met="+Nf+";ecn"+Nf+"="+Nf+";etm1="+Nf+";eid1="+T4+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+W+"AxAA&sigh="+T+"&cid="+e+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Nf+";dc_exteid="+j6+";met="+Nf+";ecn"+Nf+"="+Nf+";etm1="+Nf+";eid1="+LQ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:S9,
commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+r+"____________"+W+"AxAA&ase=2&num="+Nf+"&cid="+e+"&ad_cpn=%5BAD_CPN%5D&sig="+A+"&adurl="+X7+"&label=video_click_to_advertiser_site&ctype="+QQ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+r+"____________"+W+"AxAA&ase=2&num="+Nf+"&cid="+e+"&ad_cpn=%5BAD_CPN%5D&sig="+A+"&adurl="+X7+"&label=video_click_to_advertiser_site&ctype="+
QQ+"&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/"+T+"/mqdefault.jpg",width:320,height:180}]},trackingParams:PB+"="},trackingParams:PB+
"=",templatedCountdown:{templatedAdText:{text:wR,isTemplated:!0,trackingParams:PB+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:KQ,isTemplated:!1,trackingParams:PB+"="},trackingParams:PB+"="}},trackingParams:PB+"=",skipOffsetMilliseconds:5E3}},trackingParams:PB+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:al},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:S9,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
r+"____________"+W+"AxAA&ase=2&num="+Nf+"&cid="+e+"&ad_cpn=%5BAD_CPN%5D&sig="+A+"&adurl="+X7+"&label=video_click_to_advertiser_site&ctype="+QQ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+r+"____________"+W+"AxAA&ase=2&num="+Nf+"&cid="+e+"&ad_cpn=%5BAD_CPN%5D&sig="+A+"&adurl="+X7+"&label=video_click_to_advertiser_site&ctype="+QQ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:PB+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:wR,isTemplated:!1,trackingParams:PB+"="},trackingParams:PB+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:sm,isTemplated:!0,trackingParams:PB+"="}},trackingParams:PB+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:S9,openPopupAction:{popup:{aboutThisAdRenderer:{url:(He.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+d+"&hl="+Om+"&origin=www.youtube.com&ata_theme="+jj,He),trackingParams:PB+"="}},popupType:"DIALOG"}},icon:{iconType:"INFO_OUTLINE"},trackingParams:PB+"="}},hoverText:{runs:[{text:pr}]},trackingParams:PB+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+tU+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:PB+"="},headline:{text:G4,isTemplated:!1,trackingParams:PB+"="},description:{text:ii,
trackingParams:PB+"="},actionButton:{buttonRenderer:{text:{simpleText:V4},navigationEndpoint:{clickTrackingParams:S9,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Kr+";dc_trk_cid="+Kr+";dc_dbm_token="+H+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Nf+";ord="+Kr+";dc_rui="+Nf+";dc_exteid="+j6+";dc_av="+Nf+";dc_sk="+Nf+";dc_ctype="+LQ+";dc_pubid="+Nf+";dc_btype=3?gclid="+Z3+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
r+"____________"+W+"AxAA&ase=2&num="+Nf+"&cid="+e+"&ad_cpn=%5BAD_CPN%5D&sig="+A+"&adurl="+X7+"&label=video_click_to_advertiser_site&ctype="+QQ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+r+"____________"+W+"AxAA&ase=2&num="+Nf+"&cid="+e+"&ad_cpn=%5BAD_CPN%5D&sig="+A+"&adurl="+X7+"&label=video_click_to_advertiser_site&ctype="+QQ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:PB+"="}},startMs:Nf,trackingParams:PB+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:C6},elementId:sm}},elementId:M0,trackingParams:PB+"=",legacyInfoCardVastExtension:IP,sodarExtensionData:{siub:M0,bgub:hq,scs:RR,bgp:ii},externalVideoId:M0,adLayoutLoggingData:{serializedAdServingDataEntry:wR},layoutId:"ZI7I3u4qvI4LVKlq"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+tU+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:PB+"="},
headline:{text:IP,isTemplated:!1,trackingParams:PB+"="},description:{text:qr,isTemplated:!1,trackingParams:PB+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:M0},navigationEndpoint:{clickTrackingParams:S9,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Kr+";dc_trk_cid="+Kr+";dc_dbm_token="+H+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Nf+";ord="+Kr+";dc_rui="+Nf+";dc_exteid="+
j6+";dc_av="+Nf+";dc_sk="+Nf+";dc_ctype="+LQ+";dc_pubid="+Nf+";dc_btype=3?gclid="+Z3+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+r+"____________"+W+"AxAA&ase=2&num="+Nf+"&cid="+e+"&ad_cpn=%5BAD_CPN%5D&sig="+A+"&adurl="+X7+"&label=video_click_to_advertiser_site&ctype="+QQ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+r+"____________"+W+"AxAA&ase=2&num="+
Nf+"&cid="+e+"&ad_cpn=%5BAD_CPN%5D&sig="+A+"&adurl="+X7+"&label=video_click_to_advertiser_site&ctype="+QQ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:PB+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:PB+"="}},navigationEndpoint:{clickTrackingParams:S9,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Kr+";dc_trk_cid="+
Kr+";dc_dbm_token="+H+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Nf+";ord="+Kr+";dc_rui="+Nf+";dc_exteid="+j6+";dc_av="+Nf+";dc_sk="+Nf+";dc_ctype="+LQ+";dc_pubid="+Nf+";dc_btype=3?gclid="+Z3+"&ase=2"},{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+W+"AxAA&sigh="+T+"&cid="+e+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+r+"____________"+
W+"AxAA&ase=2&num="+Nf+"&cid="+e+"&ad_cpn=%5BAD_CPN%5D&sig="+A+"&adurl="+X7+"&label=video_click_to_advertiser_site&ctype="+QQ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+r+"____________"+W+"AxAA&ase=2&num="+Nf+"&cid="+e+"&ad_cpn=%5BAD_CPN%5D&sig="+A+"&adurl="+X7+"&label=video_click_to_advertiser_site&ctype="+QQ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:PB+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:PB+"="},abandonCommands:{commands:[{clickTrackingParams:S9,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+W+"AxAA&sigh="+T+"&cid="+e+"&label=video_abandon&ad_mt=[AD_MT]&ad_tos=[AD_TOS]&ad_wat=[AD_WAT]&final=[FINAL]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Nf+";dc_exteid="+j6+";met="+Nf+";ecn"+
Nf+"="+Nf+";etm1="+Nf+";eid1="+LQ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:S9,commandExecutorCommand:{commands:[{clickTrackingParams:S9,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+W+"AxAA&sigh="+T+"&cid="+e+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},skipButton:{skipButtonRenderer:{message:{text:hq,isTemplated:!1,trackingParams:PB+
"="},trackingParams:PB+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:wR},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+W+"AxAA&sigh="+T+"&cid="+e+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Nf+";dc_exteid="+j6+";met="+Nf+";ecn"+Nf+"="+Nf+";etm1="+Nf+";eid1="+Tz+";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="+Kr+";dc_trk_cid="+Kr+";ord="+wL+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Nf+";dc_rui="+Nf+";dc_exteid="+j6+";dc_av="+QQ+";dc_sk="+Nf+";dc_ctype="+LQ+";dc_ref=http://www.youtube.com/video/"+M0+";dc_pubid="+Nf+";dc_btype=23?gclid="+Z3+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},
{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+r+"____________"+W+"AxAA&sigh="+M0+"&cid="+e+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+Nf+"&ns="+Nf+"&event="+Nf+"&device="+Nf+"&content_v="+T+"&el="+wR+"&ei="+G+"&devicever="+m+"&bti="+Tz+"&format="+T4+"&break_type="+Nf+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+Nf+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+S6+"&slot_pos="+Nf+"&slot_len="+Nf+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+
w8+"&ad_len="+vB+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+M0+"&aqi="+G+"&ad_rmp="+Nf+"&sli="+Nf}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+W+"AxAA&sigh="+M0+"&cid="+e+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+W+"AxAA&sigh="+M0+"&cid="+e+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
Nf+";dc_exteid="+j6+";met="+Nf+";ecn"+Nf+"="+Nf+";etm1="+Nf+";eid1="+LQ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+W+"AxAA&sigh="+M0+"&cid="+e+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Nf+";dc_exteid="+j6+";met="+Nf+";ecn"+Nf+"="+Nf+";etm1="+Nf+";eid1="+T4+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+W+"AxAA&sigh="+M0+"&cid="+e+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Nf+";dc_exteid="+j6+";met="+Nf+";ecn"+Nf+"="+Nf+";etm1="+Nf+";eid1="+LQ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+W+"AxAA&sigh="+M0+"&cid="+
e+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+W+"AxAA&sigh="+M0+"&cid="+e+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Nf+";dc_exteid="+j6+";met="+Nf+";ecn"+Nf+"="+Nf+";etm1="+Nf+";eid1="+LQ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
r+"____________"+W+"AxAA&sigh="+M0+"&cid="+e+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Nf+";dc_exteid="+j6+";met="+Nf+";ecn"+Nf+"="+Nf+";etm1="+Nf+";eid1="+Tz+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+W+"AxAA&sigh="+M0+"&cid="+e+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+W+"AxAA&sigh="+M0+"&cid="+e+"&label=video_skip_shown&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]",offsetMilliseconds:5E3},{baseUrl:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+r+"____________"+W+"AxAA&ase=2&num="+Nf+"&cid="+e+"&ad_cpn=%5BAD_CPN%5D&sig="+A+"&adurl="+X7+"&ctype="+QQ+"&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"+r+"____________"+W+"AxAA&ase=2&num="+Nf+"&cid="+e+"&ad_cpn=%5BAD_CPN%5D&sig="+A+"&adurl="+X7+"&label=video_engaged_view&ctype="+QQ+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Nf+";dc_exteid="+j6+";met="+Nf+";ecn"+Nf+"="+Nf+";etm1="+Nf+";eid1="+T4+";?",offsetMilliseconds:15E3}],
fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+W+"AxAA&sigh="+M0+"&cid="+e+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Nf+";dc_exteid="+j6+";met="+Nf+";ecn"+Nf+"="+Nf+";etm1="+Nf+";eid1="+LQ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+a+"&sig="+Yl+"&ad_cpn=[AD_CPN]&id="+
RR+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+RR+"&dc_pubid="+Nf+"&dc_exteid="+j6+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+W+"AxAA&sigh="+M0+"&cid="+e+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+a+
"&sig="+Yl+"&ad_cpn=[AD_CPN]&id="+RR+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+Nf},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+RR+"&avm="+Nf+"&dc_pubid="+Nf+"&dc_exteid="+j6+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+W+"AxAA&sigh="+M0+"&cid="+e+"&label=video_abandon&ad_mt=[AD_MT]&ad_tos=[AD_TOS]&ad_wat=[AD_WAT]&final=[FINAL]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Nf+";dc_exteid="+j6+";met="+Nf+";ecn"+Nf+"="+Nf+";etm1="+Nf+";eid1="+LQ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+a+"&sig="+Yl+"&ad_cpn=[AD_CPN]&id="+RR+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+Nf},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+RR+"&dc_pubid="+Nf+"&dc_exteid="+j6+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Nf+";dc_exteid="+j6+";met="+Nf+";ecn"+Nf+"="+Nf+";etm1="+Nf+";eid1="+LQ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Nf+";dc_exteid="+j6+";met="+Nf+";ecn"+Nf+"="+Nf+";etm1="+Nf+";eid1="+T4+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
Nf+";dc_exteid="+j6+";met="+Nf+";ecn"+Nf+"="+Nf+";etm1="+Nf+";eid1="+LQ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Nf+";dc_exteid="+j6+";met="+Nf+";ecn"+Nf+"="+Nf+";etm1="+Nf+";eid1="+T4+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+W+"AxAA&sigh="+M0+"&cid="+e+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Nf+";dc_exteid="+j6+";met="+Nf+";ecn"+Nf+"="+Nf+";etm1="+Nf+";eid1="+LQ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:S9,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+r+"____________"+W+"AxAA&ase=2&num="+Nf+"&cid="+e+"&ad_cpn=%5BAD_CPN%5D&sig="+A+"&adurl="+X7+"&label=video_click_to_advertiser_site&ctype="+
QQ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+r+"____________"+W+"AxAA&ase=2&num="+Nf+"&cid="+e+"&ad_cpn=%5BAD_CPN%5D&sig="+A+"&adurl="+X7+"&label=video_click_to_advertiser_site&ctype="+QQ+"&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/"+T+"/mqdefault.jpg",width:320,height:180}]},trackingParams:PB+"="},trackingParams:PB+"=",templatedCountdown:{templatedAdText:{text:sm,isTemplated:!0,trackingParams:PB+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:ii,isTemplated:!1,trackingParams:PB+"="},trackingParams:PB+"="}},
trackingParams:PB+"=",skipOffsetMilliseconds:5E3}},trackingParams:PB+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:sm},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:S9,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+r+"____________"+W+"AxAA&ase=2&num="+Nf+"&cid="+e+"&ad_cpn=%5BAD_CPN%5D&sig="+A+"&adurl="+X7+"&label=video_click_to_advertiser_site&ctype="+QQ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+r+"____________"+W+"AxAA&ase=2&num="+Nf+"&cid="+e+"&ad_cpn=%5BAD_CPN%5D&sig="+A+"&adurl="+X7+"&label=video_click_to_advertiser_site&ctype="+QQ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:PB+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:al,isTemplated:!1,trackingParams:PB+"="},trackingParams:PB+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:V4,
isTemplated:!0,trackingParams:PB+"="}},trackingParams:PB+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:S9,openPopupAction:{popup:{aboutThisAdRenderer:{url:(HI.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+d+"&hl="+Om+"&origin=www.youtube.com&ata_theme="+jj,HI),trackingParams:PB+"="}},popupType:"DIALOG"}},
icon:{iconType:"INFO_OUTLINE"},trackingParams:PB+"="}},hoverText:{runs:[{text:ii}]},trackingParams:PB+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+nG+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:PB+"="},headline:{text:Ei,isTemplated:!1,trackingParams:PB+"="},description:{text:jj,trackingParams:PB+"="},actionButton:{buttonRenderer:{text:{simpleText:jj},navigationEndpoint:{clickTrackingParams:S9,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
r+"____________"+W+"AxAA&ase=2&num="+Nf+"&cid="+e+"&ad_cpn=%5BAD_CPN%5D&sig="+A+"&adurl="+X7+"&label=video_click_to_advertiser_site&ctype="+QQ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+r+"____________"+W+"AxAA&ase=2&num="+Nf+"&cid="+e+"&ad_cpn=%5BAD_CPN%5D&sig="+A+"&adurl="+X7+"&label=video_click_to_advertiser_site&ctype="+QQ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:PB+"="}},startMs:Nf,trackingParams:PB+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:KQ},elementId:G4}},elementId:M0,trackingParams:PB+"=",legacyInfoCardVastExtension:hq,sodarExtensionData:{siub:RR,bgub:ii,scs:IP,bgp:G4},externalVideoId:M0,adLayoutLoggingData:{serializedAdServingDataEntry:wR},layoutId:"OTH1kH5dWmSpUnNw"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+nG+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:PB+"="},headline:{text:jj,
isTemplated:!1,trackingParams:PB+"="},description:{text:al,isTemplated:!1,trackingParams:PB+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:RR},navigationEndpoint:{clickTrackingParams:S9,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+r+"____________"+W+"AxAA&ase=2&num="+Nf+"&cid="+e+"&ad_cpn=%5BAD_CPN%5D&sig="+A+"&adurl="+X7+"&label=video_click_to_advertiser_site&ctype="+QQ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+r+"____________"+W+"AxAA&ase=2&num="+Nf+"&cid="+e+"&ad_cpn=%5BAD_CPN%5D&sig="+A+"&adurl="+X7+"&label=video_click_to_advertiser_site&ctype="+QQ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:PB+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:PB+"="}},navigationEndpoint:{clickTrackingParams:S9,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
r+"____________"+W+"AxAA&sigh="+M0+"&cid="+e+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+r+"____________"+W+"AxAA&ase=2&num="+Nf+"&cid="+e+"&ad_cpn=%5BAD_CPN%5D&sig="+A+"&adurl="+X7+"&label=video_click_to_advertiser_site&ctype="+QQ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+r+"____________"+W+"AxAA&ase=2&num="+
Nf+"&cid="+e+"&ad_cpn=%5BAD_CPN%5D&sig="+A+"&adurl="+X7+"&label=video_click_to_advertiser_site&ctype="+QQ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:PB+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:PB+"="},abandonCommands:{commands:[{clickTrackingParams:S9,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+W+"AxAA&sigh="+M0+"&cid="+e+"&label=video_abandon&ad_mt=[AD_MT]&ad_tos=[AD_TOS]&ad_wat=[AD_WAT]&final=[FINAL]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Nf+";dc_exteid="+j6+";met="+Nf+";ecn"+Nf+"="+Nf+";etm1="+Nf+";eid1="+LQ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:S9,commandExecutorCommand:{commands:[{clickTrackingParams:S9,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+W+"AxAA&sigh="+M0+"&cid="+e+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},
skipButton:{skipButtonRenderer:{message:{text:pr,isTemplated:!1,trackingParams:PB+"="},trackingParams:PB+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:Ei},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+W+"AxAA&sigh="+M0+"&cid="+e+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Nf+";dc_exteid="+j6+";met="+Nf+";ecn"+Nf+"="+Nf+";etm1="+Nf+";eid1="+
Tz+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],layoutId:"x0nw3inGkAJNdtYU"}}],adLayoutMetadata:{layoutId:"kaF8SbSZynKvp81K",layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",adLayoutLoggingData:{serializedAdServingDataEntry:qr}}}},adSlotLoggingData:{serializedSlotAdServingDataEntry:jj}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:vB,offsetEndMilliseconds:T4},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",
getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+G+"&m_pos="+LQ+"&token=ALHj"+l+"&index="+Nf+"&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="+m+"&m_pos_ms="+vB}},adSlotLoggingData:{serializedSlotAdServingDataEntry:KQ}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",
adTimeOffset:{offsetStartMilliseconds:T4,offsetEndMilliseconds:T4},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+G+"&m_pos="+QQ+"&token=ALHj"+l+"&index="+Nf+"&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="+
m+"&m_pos_ms="+T4}},adSlotLoggingData:{serializedSlotAdServingDataEntry:KQ}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:T4,offsetEndMilliseconds:T4},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+G+"&m_pos="+QQ+"&token=ALHj"+l+"&index="+Nf+"&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="+
m+"&m_pos_ms="+T4}},adSlotLoggingData:{serializedSlotAdServingDataEntry:al}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:T4,offsetEndMilliseconds:T4},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+G+"&m_pos="+QQ+"&token=ALHj"+l+"&index="+Nf+"&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="+
m+"&m_pos_ms="+T4}},adSlotLoggingData:{serializedSlotAdServingDataEntry:V4}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:T4,offsetEndMilliseconds:LQ},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+G+"&m_pos="+QQ+"&token=ALHj"+l+"&index="+Nf+"&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="+
m+"&m_pos_ms="+T4}},adSlotLoggingData:{serializedSlotAdServingDataEntry:IP}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_END",adTimeOffset:{offsetStartMilliseconds:LQ,offsetEndMilliseconds:LQ},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+G+"&m_pos="+LQ+"&token=ALHj"+l+"&index="+Nf+"&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="+
m+"&m_pos_ms="+LQ}},adSlotLoggingData:{serializedSlotAdServingDataEntry:qr}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:pr,isTemplated:!1,trackingParams:PB+"="},description:{text:IP,isTemplated:!1,trackingParams:PB+"="},actionButton:{buttonRenderer:{text:{simpleText:V4},navigationEndpoint:{clickTrackingParams:S9,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
Kr+";dc_trk_cid="+Kr+";dc_dbm_token="+H+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Nf+";ord="+Kr+";dc_rui="+Nf+";dc_exteid="+j6+";dc_av="+Nf+";dc_sk="+Nf+";dc_ctype="+LQ+";dc_pubid="+Nf+";dc_btype=3?gclid="+Z3+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+r+"____________"+W+"AxAA&ase=2&num="+Nf+"&cid="+e+"&ad_cpn=%5BAD_CPN%5D&sig="+A+"&adurl="+X7+"&label=video_click_to_advertiser_site&ctype="+QQ+"&ms=[CLICK_MS]",
webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+r+"____________"+W+"AxAA&ase=2&num="+Nf+"&cid="+e+"&ad_cpn=%5BAD_CPN%5D&sig="+A+"&adurl="+X7+"&label=video_click_to_advertiser_site&ctype="+QQ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:PB+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+tU+"=s88-c-k-c0x00ffffff-no-rj",width:48,
height:48}]},trackingParams:PB+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+fG+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:PB+"="},navigationEndpoint:{clickTrackingParams:S9,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Kr+";dc_trk_cid="+Kr+";dc_dbm_token="+H+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Nf+";ord="+Kr+
";dc_rui="+Nf+";dc_exteid="+j6+";dc_av="+Nf+";dc_sk="+Nf+";dc_ctype="+LQ+";dc_pubid="+Nf+";dc_btype=3?gclid="+Z3+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+r+"____________"+W+"AxAA&ase=2&num="+Nf+"&cid="+e+"&ad_cpn=%5BAD_CPN%5D&sig="+A+"&adurl="+X7+"&label=video_click_to_advertiser_site&ctype="+QQ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
r+"____________"+W+"AxAA&ase=2&num="+Nf+"&cid="+e+"&ad_cpn=%5BAD_CPN%5D&sig="+A+"&adurl="+X7+"&label=video_click_to_advertiser_site&ctype="+QQ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:PB+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:S9,openPopupAction:{popup:{aboutThisAdRenderer:{url:(QFm.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+d+"&hl="+Om+"&origin=www.youtube.com&ata_theme="+jj,QFm),trackingParams:PB+"="}},popupType:"DIALOG"}},trackingParams:PB+"="}},hoverText:{runs:[{text:KQ}]},trackingParams:PB+"="}},adVideoId:M0,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+W+"AxAA&sigh="+T+"&cid="+e+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:jj},associatedCompositePlayerBytesLayoutId:C6}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:V4}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:C6,isTemplated:!1,trackingParams:PB+"="},description:{text:hq,isTemplated:!1,trackingParams:PB+"="},actionButton:{buttonRenderer:{text:{simpleText:wR},navigationEndpoint:{clickTrackingParams:S9,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+r+"____________"+
W+"AxAA&ase=2&num="+Nf+"&cid="+e+"&ad_cpn=%5BAD_CPN%5D&sig="+A+"&adurl="+X7+"&label=video_click_to_advertiser_site&ctype="+QQ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+r+"____________"+W+"AxAA&ase=2&num="+Nf+"&cid="+e+"&ad_cpn=%5BAD_CPN%5D&sig="+A+"&adurl="+X7+"&label=video_click_to_advertiser_site&ctype="+QQ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:PB+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+nG+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:PB+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+pU+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:PB+"="},navigationEndpoint:{clickTrackingParams:S9,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+r+"____________"+W+"AxAA&ase=2&num="+
Nf+"&cid="+e+"&ad_cpn=%5BAD_CPN%5D&sig="+A+"&adurl="+X7+"&label=video_click_to_advertiser_site&ctype="+QQ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+r+"____________"+W+"AxAA&ase=2&num="+Nf+"&cid="+e+"&ad_cpn=%5BAD_CPN%5D&sig="+A+"&adurl="+X7+"&label=video_click_to_advertiser_site&ctype="+QQ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:PB+
"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:S9,openPopupAction:{popup:{aboutThisAdRenderer:{url:(iE.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+d+"&hl="+Om+"&origin=www.youtube.com&ata_theme="+jj,iE),trackingParams:PB+"="}},popupType:"DIALOG"}},trackingParams:PB+"="}},
hoverText:{runs:[{text:sm}]},trackingParams:PB+"="}},adVideoId:M0,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+W+"AxAA&sigh="+M0+"&cid="+e+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:hq},associatedCompositePlayerBytesLayoutId:C6}},adSlotLoggingData:{serializedSlotAdServingDataEntry:G4}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:al,
isTemplated:!1,trackingParams:PB+"="},description:{text:jj,isTemplated:!1,trackingParams:PB+"="},actionButton:{buttonRenderer:{text:{simpleText:pr},navigationEndpoint:{clickTrackingParams:S9,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Kr+";dc_trk_cid="+Kr+";dc_dbm_token="+H+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Nf+";ord="+Kr+";dc_rui="+Nf+";dc_exteid="+j6+";dc_av="+Nf+";dc_sk="+Nf+";dc_ctype="+
LQ+";dc_pubid="+Nf+";dc_btype=3?gclid="+Z3+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+r+"____________"+W+"AxAA&ase=2&num="+Nf+"&cid="+e+"&ad_cpn=%5BAD_CPN%5D&sig="+A+"&adurl="+X7+"&label=video_click_to_advertiser_site&ctype="+QQ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+r+"____________"+W+"AxAA&ase=2&num="+Nf+"&cid="+e+"&ad_cpn=%5BAD_CPN%5D&sig="+
A+"&adurl="+X7+"&label=video_click_to_advertiser_site&ctype="+QQ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:PB+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+tU+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:PB+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+fG+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:PB+
"="},navigationEndpoint:{clickTrackingParams:S9,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Kr+";dc_trk_cid="+Kr+";dc_dbm_token="+H+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Nf+";ord="+Kr+";dc_rui="+Nf+";dc_exteid="+j6+";dc_av="+Nf+";dc_sk="+Nf+";dc_ctype="+LQ+";dc_pubid="+Nf+";dc_btype=3?gclid="+Z3+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
r+"____________"+W+"AxAA&ase=2&num="+Nf+"&cid="+e+"&ad_cpn=%5BAD_CPN%5D&sig="+A+"&adurl="+X7+"&label=video_click_to_advertiser_site&ctype="+QQ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+r+"____________"+W+"AxAA&ase=2&num="+Nf+"&cid="+e+"&ad_cpn=%5BAD_CPN%5D&sig="+A+"&adurl="+X7+"&label=video_click_to_advertiser_site&ctype="+QQ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:PB+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:S9,openPopupAction:{popup:{aboutThisAdRenderer:{url:(Er.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+d+"&hl="+Om+"&origin=www.youtube.com&ata_theme="+jj,Er),trackingParams:PB+"="}},popupType:"DIALOG"}},trackingParams:PB+
"="}},hoverText:{runs:[{text:hq}]},trackingParams:PB+"="}},adVideoId:M0,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+r+"____________"+W+"AxAA&sigh="+T+"&cid="+e+"&label=video_companion_reshow_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:IP},isContentVideoCompanion:!0,associatedCompositePlayerBytesLayoutId:C6}},adSlotLoggingData:{serializedSlotAdServingDataEntry:al}}}],adBreakHeartbeatParams:"Q0FBJTNE",frameworkUpdates:{entityBatchUpdate:{mutations:[{entityKey:rR,
type:"ENTITY_MUTATION_TYPE_REPLACE",payload:{offlineabilityEntity:{key:rR,command:{innertubeCommand:{clickTrackingParams:S9,ypcGetOfflineUpsellEndpoint:{params:uL}}},addToOfflineButtonState:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED",contentCheckOk:!1,racyCheckOk:!1,loggingDirectives:{trackingParams:PB+"=",visibility:{types:"4"},enableDisplayloggerExperiment:!0}}}}],timestamp:{seconds:wL,nanos:fU}}}},aIr=JSON.stringify(vq),Or=performance.now()-J;return{objectRepresentation:vq,jsonRepresentation:aIr,generationTime:Or}};
xHu=function(J,c){if(J===c)return!0;if(!J||!c||typeof J!==typeof c)return!1;if(J instanceof Array&&c instanceof Array){if(J.length!==c.length)return!1;for(var m=0;m<J.length;m++)if(!xHu(J[m],c[m]))return!1;return!0}if(typeof J==="object"&&typeof c==="object"&&J&&c){for(m in J)if(!(m in c&&xHu(J[m],c[m])))return!1;for(var b in c)if(!(b in J))return!1;return!0}return!1};
_.Jc=function(){if(!gf){gf=new Cc(new VFo);var J=_.c7("client_streamz_web_flush_count",-1);J!==-1&&(gf.invocationLimit=J)}return gf};
cj=function(J,c,m,b){if(J===c)return!0;if(Array.isArray(J)&&Array.isArray(c)){if(J.length!==c.length)return!1;for(var x=0;x<J.length;x++)if(!cj(J[x],c[x],m,b))return!1;return!0}if(J instanceof Set||c instanceof Set){if(J instanceof Set&&c instanceof Set){if(J.size!==c.size)return!1;b=_.M(J.values());for(x=b.next();!x.done;x=b.next())if(!c.has(x.value))return!1;return!0}return!1}if(J instanceof Function){if(b)return!0;J.name===""&&_.Xc(Error("Ff"),"ERROR");return!1}if(J instanceof Date&&c instanceof
Date)return J.getTime()===c.getTime();if(J instanceof Object&&c instanceof Object){if(PUq(J)&&PUq(c))try{return J.equals(c)}catch(p){_.Xc(Error("Gf`"+p),"ERROR")}x=Object.getOwnPropertyNames(J).filter(function(p){return m?J[p]!==void 0:!0});
var P=Object.getOwnPropertyNames(c).filter(function(p){return m?c[p]!==void 0:!0});
if(x.length!==P.length)return!1;x=_.M(x);for(P=x.next();!P.done;P=x.next())if(P=P.value,!cj(J[P],c[P],m,b))return!1;return!0}return!1};
PUq=function(J){J=Object.getPrototypeOf(J).equals;return J instanceof Function&&J.length===1};
_.NF2=function(){return _.N(function(J){if(J.nextAddress==1)return MFQ!==2?J.jumpTo(2):_.K(J,ptt(),3);J.nextAddress!=2&&(MFQ=J.yieldResult);return J.return(MFQ)})};
_.K7f=function(){return _.N(function(J){if(J.nextAddress==1)return _.w("ab_pl_man")?tFQ!==2?J.jumpTo(2):_.K(J,IOm(),3):J.return(1);J.nextAddress!=2&&(tFQ=J.yieldResult);return J.return(tFQ)})};
kKQ=function(){return _.N(function(J){if(J.nextAddress==1)return _.w("ab_fk_sk_cl")?CUt!==2?J.jumpTo(2):_.K(J,aO3(),3):J.return(1);J.nextAddress!=2&&(CUt=J.yieldResult);return J.return(CUt)})};
_.nsD=function(){return _.N(function(J){if(J.nextAddress==1)return _.w("ab_det_apb_b")?H9R!==2?J.jumpTo(2):_.K(J,i9Q(),3):J.return(1);J.nextAddress!=2&&(H9R=J.yieldResult);return J.return(H9R)})};
rg2=function(){var J;return _.N(function(c){if(c.nextAddress==1)return _.K(c,Promise.all([_.NF2(),_.nsD(),_.K7f(),kKQ()]),2);if(c.nextAddress!=3)return TFT()?c.return(!0):_.K(c,_.wtD(),3);J=c.yieldResult;return c.return(J===0)})};
TFT=function(){var J=!1,c=function(m,b){sTD.increment(b,m);m===0&&(J=!0)};
c(_.L7q(),"j.s_");c(MFQ,"f.i_");c(H9R,"a.b_");c(tFQ,"p.m_");c(CUt,"i.f_");DHG===2&&(DHG=_.W72(zlT));c(DHG,"e.h_");_.w("ks_det_gpbl")||c(_.uLt(),"p.i_");_.w("ks_get_o_pp")||c(_.fOt(),"g.o_");_.w("ab_deg_unex_thr")||c(_.YWR(),"a.o_");c(Xt2,"s.t_");_.w("ab_det_sc_inj_enf")&&c(_.Z9o(),"s.i_");c(qW2,"d.p_");c(_.UHu(_.mU),"o.p_");c(_.SWe()===0?0:_.hlq(),"o.a_");return _.w("debug_sk_em_precheck")?!0:J};
$HG=function(){var J=[].concat(_.L6(dHJ));try{var c=B2();J.push({jsonRepresentation:c.jsonRepresentation,objectRepresentation:c.objectRepresentation})}catch(m){J=[].concat(_.L6(dHJ))}return J};
GKG=function(){var J=["adPlacements","adSlots"];try{return J.filter(function(){return!0}).length!==J.length?0:1}catch(c){return 0}};
_.fOt=function(){if(GKG()===0)return 0;var J=B2(),c=J.objectRepresentation,m=(0,_.Lw.unsafeClone)(c),b=[];if(c&&typeof c==="object")for(var x in c)b.push(x);else return 4;J=J.objectRepresentation.adPlacements;if(!(J&&J.length>0))return 4;try{if(!xHu(b,Object.getOwnPropertyNames(c)))return 0}catch(P){return 0}return xHu(m,c)?1:0};
_.UHu=function(J){if(!J||!J.length||typeof J==="string")return 0;for(var c=Object.getOwnPropertyNames(Object.prototype),m=0;m<J.length;m++)for(var b=_.jk(J[m]),x=_.M(c),P=x.next();!P.done;P=x.next())if(b===P.value)return 0;return 1};
Esr=function(J){var c=_.jk(J[1]);if(J[0]===null)return c;J=J[0];for(var m={},b=0;b<J.length;b++){var x=_.jk(J[b]);if(b===0)m[x]=c;else{var P={};P[x]=m;m=P}}return m};
_.SWe=function(){for(var J=_.bq,c=0;c<J.length;c++){var m=Esr(J[c]),b=[];b.push(m);if(b.length===0)return 0}return 1};
_.hlq=function(){for(var J=_.bq,c={},m=0;m<J.length;c={vQa:void 0},m++){var b=[Esr(J[m])];c.vQa=[];b.forEach(function(x){return function(P){x.vQa[x.vQa.length]=P}}(c));
if(c.vQa.length===0)return 0}return 1};
_.L7q=function(){for(var J=_.M($HG()),c=J.next();!c.done;c=J.next()){var m=c.value;c=m.jsonRepresentation;m=m.objectRepresentation;try{var b=JSON.parse(c);if(!cj(b,m,!1,!1))return 0}catch(x){return 0}}return 1};
_.Z9o=function(){try{var J=_.bj("ab_det_sc_inj_val");J.length===1&&J[0]===""&&(J=['json=JSON.parse(text);for(k of["playerAds","adPlacements","adSlots"])']);for(var c=document.querySelectorAll("script"),m=_.M(c),b=m.next();!b.done;b=m.next())for(var x=b.value,P=_.M(J),p=P.next();!p.done;p=P.next()){var t=p.value;c=void 0;if((c=x.textContent)==null?0:c.includes(t))return 0}}catch(I){return 4}return 1};
_.wtD=function(){var J,c,m,b,x,P,p;return _.N(function(t){switch(t.nextAddress){case 1:_.xL(t,2),J=_.M(dHJ),c=J.next();case 4:if(c.done)return t.return(1);b=m=c.value;x=b.jsonRepresentation;P=b.objectRepresentation;return _.K(t,(new Response(x,{status:200})).json(),7);case 7:p=t.yieldResult;if(!cj(p,P,!1,!1))return t.return(0);c=J.next();t.jumpTo(4);break;case 2:return _.NM(t),t.return(4)}})};
_.YWR=function(){try{btoa("abc")}catch(J){return 0}return 1};
ptt=function(){var J,c,m,b,x,P,p,t,I,a,k;return _.N(function(H){switch(H.nextAddress){case 1:_.xL(H,2),J=_.M($HG()),c=J.next();case 4:if(c.done)return H.return(1);b=m=c.value;x=b.jsonRepresentation;P=b.objectRepresentation;p=btoa(x);t="data:application/json;base64,"+p;I=new Request(t);Object.defineProperty(I,"url",{get:function(){return"https://www.youtube.com/youtubei/v1/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false"}});
Object.defineProperty(I,"method",{get:function(){return"POST"}});
Object.defineProperty(I,"bodyUsed",{get:function(){return!0}});
Object.defineProperty(I,"mode",{get:function(){return"same-origin"}});
Object.defineProperty(I,"body",{get:function(){return new ReadableStream}});
return _.K(H,fetch(I),7);case 7:return a=H.yieldResult,_.K(H,a.json(),8);case 8:k=H.yieldResult;if(!cj(k,P,!1,!1))return H.return(0);c=J.next();H.jumpTo(4);break;case 2:return _.NM(H),H.return(4)}})};
_.W72=function(J){if(!J||!J.length||typeof J==="string")return 0;for(var c=function(x){return _.jk(x)},m=2,b=0;b<J.length&&(m=_.vsJ(_.mH3(J[b],c)),m!==0);b++);
return m};
_.vsJ=function(J){var c=_.M(J);J=c.next().value;c=c.next().value;try{var m=document.createElement("div");document.body.appendChild(m);var b=getComputedStyle(m).display;document.body.removeChild(m);if(b==="none")return 4;var x=getComputedStyle(c).display==="none"?0:1;document.body.removeChild(J);return x}catch(P){return 4}};
aO3=function(){var J,c,m;return _.N(function(b){J=new _.xb;c=document.createElement("button");c.classList.add("ytp-ad-skip-button");c.style.opacity="0";c.style.height="0px";c.style.width="0px";c.style.padding="0px";c.style.border="none";m=function(){c.parentElement&&c.parentElement.removeChild(c)};
c.onclick=function(){J.resolve(0);m()};
document.body.appendChild(c);setTimeout(function(){m();J.resolve(1)},50);
return b.return(J.promise)})};
IOm=function(){var J,c,m,b,x,P,p;return _.N(function(t){J=new _.xb;c=document.createElement("ytd-player");try{document.body.prepend(c)}catch(I){return t.return(4)}m=function(){c.parentElement&&c.parentElement.removeChild(c)};
c.getElementsByTagName("div").length>0?b=c.getElementsByTagName("div")[0]:(b=document.createElement("div"),c.appendChild(b));x=document.createElement("div");b.appendChild(x);P=document.createElement("video");p=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"});P.src=_.ah(_.wa(p));P.ontimeupdate=function(){m();J.resolve(0)};
x.appendChild(P);P.classList.add("html5-main-video");setTimeout(function(){x.classList.add("ad-interrupting")},200);
setTimeout(function(){m();J.resolve(1)},5E3);
return t.return(J.promise)})};
O9J=function(J,c){var m,b;return _.N(function(x){switch(x.nextAddress){case 1:m=[],b=0;case 2:if(!(b<3)){x.jumpTo(4);break}return _.K(x,fetch(J,{cache:"no-store",method:c}).then(function(P){m.push(P.status)}).catch(function(){m.push(-1)}),3);
case 3:b++;x.jumpTo(2);break;case 4:return x.return(m)}})};
AgR=function(J){return J.domainLookupStart===0&&J.domainLookupEnd===0&&J.connectStart===0&&J.connectEnd===0};
Rlq=function(J,c,m){m=m===void 0?"GET":m;var b,x,P,p,t,I,a,k,H,T;return _.N(function(r){if(r.nextAddress==1)return _.K(r,Promise.all([O9J(J,m),O9J(c,m)]),2);b=r.yieldResult;x=_.M(b);P=x.next().value;p=x.next().value;t=P;I=p;if(Math.min.apply(Math,_.L6(I))!==Math.max.apply(Math,_.L6(I))||Math.min.apply(Math,_.L6(t))!==Math.max.apply(Math,_.L6(t)))return r.return(2);if(Math.min.apply(Math,_.L6(I))===Math.min.apply(Math,_.L6(t)))return r.return(1);k=(a=performance.getEntriesByName(J))==null?void 0:a[0];
T=(H=performance.getEntriesByName(c))==null?void 0:H[0];return k&&T?AgR(T)?r.return(1):AgR(k)?r.return(0):r.return(1):r.return(2)})};
i9Q=function(){var J;return _.N(function(c){var m=[];var b;var x,P,p;(x=b=(x=B2().objectRepresentation.streamingData)==null?void 0:(P=x.formats)==null?void 0:(p=P[0])==null?void 0:p.url)&&x&&!b.match(/&pfa=|yt_premiere_broadcast|yt_live_broadcast/)?(x=x.replace("initcwndbps","ctier=L&initcwndbps"),x=x.replace("%2Crequiressl%2C","%2Crequiressl%2Cctier%2C"),b={testUrl:x,baseUrl:b,method:"GET"}):b=void 0;b&&m.push(b);_.w("ab_net_tp_e")&&m.push({testUrl:_.mo.location.origin+"/ad_companion",baseUrl:_.mo.location.origin+
"/generate_204",method:"OPTIONS"});if(_.w("ad_net_pb_ab")){var t;b:{b=/api\/stats\/ads/;var I,a,k,H;x=(t=B2().objectRepresentation.adPlacements)==null?void 0:(I=t[0])==null?void 0:(a=I.adPlacementRenderer)==null?void 0:(k=a.renderer)==null?void 0:(H=k.linearAdSequenceRenderer)==null?void 0:H.linearAds;if(x!=null&&x.length&&(t=_.L(x[0],osq))&&(t=t.pings,t!=null&&t.impressionPings))for(I=[].concat(_.L6(t.impressionPings)),t.progressPings&&(I=[].concat(_.L6(I),_.L6(t.progressPings))),t=_.M(I),I=t.next();!I.done;I=
t.next())if(I=I.value,I.baseUrl&&b.test(I.baseUrl)){t=I.baseUrl.replace("https://www.youtube.com","");break b}t=void 0}t&&m.push({testUrl:_.mo.location.origin+t,baseUrl:_.mo.location.origin+"/feed/download",method:"GET"})}if(_.w("ad_net_pb_pbp")){var T;b:{t=/api\/stats\/qoe/;if(I=B2().objectRepresentation.playbackTracking){a=[];a.push(I==null?void 0:(T=I.videostatsPlaybackUrl)==null?void 0:T.baseUrl);var r;a.push(I==null?void 0:(r=I.videostatsDelayplayUrl)==null?void 0:r.baseUrl);var W;a.push(I==
null?void 0:(W=I.videostatsWatchtimeUrl)==null?void 0:W.baseUrl);var Y;a.push(I==null?void 0:(Y=I.ptrackingUrl)==null?void 0:Y.baseUrl);var Z;a.push(I==null?void 0:(Z=I.qoeUrl)==null?void 0:Z.baseUrl);var d;a.push(I==null?void 0:(d=I.atrUrl)==null?void 0:d.baseUrl);T=_.M(a);for(r=T.next();!r.done;r=T.next())if((r=r.value)&&t.test(r)){T=r.replace("https://www.youtube.com","").replace("https://s.youtube.com","");break b}}T=void 0}T&&m.push({testUrl:_.mo.location.origin+T,baseUrl:_.mo.location.origin+
"/feed/download",method:"GET"})}m=m.length!==0?m[Math.floor(Math.random()*m.length)]:void 0;return(J=m)?c.return(Rlq(J.testUrl,J.baseUrl,J.method)):c.return(4)})};
_.uLt=function(){if(_.mo.hox===void 0||_.mo.hox===null||typeof _.mo.hox!=="function")return 2;try{return _.mo.hox()===!0?0:1}catch(J){return 0}};
QTe=function(J){switch(J){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:_.Pu(J,"unknown result type")}};
_.elJ=function(J,c){var m=Number(_.Ub("CATSTAT",0));if(c.j1v===void 0)return m;c=c.j1v;J=QTe(J);return m&~(3<<c)|J<<c};
jTo=function(J){var c,m;if((J=(c=J.auxiliaryUi)==null?void 0:(m=c.messageRenderers)==null?void 0:m.bkaEnforcementMessageViewModel)&&J.displayType==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER")return J};
lOu=function(){for(var J=_.M(Object.values(_.F7f)),c=J.next();!c.done;c=J.next())c=c.value,c.isAsync&&c.j1v&&_.q3("CATSTAT",_.elJ(2,c))};
_.pv=function(J,c){J=_.VS("FLOW_EVENT_NAMESPACE_ADBLOCK_ENFORCEMENT",J);(c===void 0?0:c)?_.ygm(J,"FLOW_TYPE_ADBLOCK_ENFORCEMENT"):_.Pj(_.Mr(),J,"FLOW_TYPE_ADBLOCK_ENFORCEMENT")};
gso=function(){if(!BFG){if(Polymer.Base){var J=Polymer.Base.createdCallback;Polymer.Base.createdCallback=function(){try{J.apply(this,arguments)}catch(H){_.ha(H)}};
var c=Polymer.Base.attachedCallback;Polymer.Base.attachedCallback=function(){try{c.apply(this,arguments)}catch(H){_.ha(H)}};
var m=Polymer.Base.detachedCallback;Polymer.Base.detachedCallback=function(){try{m.apply(this,arguments)}catch(H){_.ha(H)}};
var b=Polymer.Base.attributeChangedCallback;Polymer.Base.attributeChangedCallback=function(){try{b.apply(this,arguments)}catch(H){_.ha(H)}};
var x=Polymer.Base._listen,P=new WeakMap;Polymer.Base._listen=function(H,T,r){var W=function(){try{r.apply(this,arguments)}catch(Y){_.ha(Y)}};
P.set(r,W);x.call(this,H,T,W)};
var p=Polymer.Base._unlisten;Polymer.Base._unlisten=function(H,T,r){p.call(this,H,T,P.get(r))}}if(Polymer.Async){var t=Polymer.Async,I=t._atEndOfMicrotask;
t._atEndOfMicrotask=function(){try{I.apply(t,arguments)}catch(H){_.ha(H)}}}if(Polymer.RenderStatus){var a=Polymer.RenderStatus,k=a.afterNextRender;
a.afterNextRender=function(H,T,r){k.call(a,H,function(){try{T.apply(this,arguments)}catch(W){_.ha(W)}},r)}}BFG=!0}};
_.Nr=function(J){var c=J?_.NU(J):"";if(c){if(c.indexOf("/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ")===0)return"fashion";if(c.indexOf("/channel/UC4R8DWoMoI7CAwX8_LjQHig")===0)return"live";if(c.indexOf("/channel/UCEgdi0XIXXZ-qJOFPf4JSKw")===0)return"sports";if(c.indexOf("/channel/UCYfdidRxbB8Qhf0Nx7ioOYw")===0)return"news";if(c.indexOf("/channel/UCtFRv9O2AHqOZjjynzrv-xg")===0)return"learning";if(c.indexOf("/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ")===0)return"music";c=c.toLowerCase();if(c==="/")return"home";if(c===
"/channel_memberships")return"channel-memberships-shopfront";if(c.indexOf("/feed/trending")===0)return"trending";if(c.indexOf("/feed/explore")===0)return"explore";if(c.indexOf("/live")===0)return"live";if(c.indexOf("/results")===0)return"search";if(c.indexOf("/sports")===0)return"sports";if(c.indexOf("/fashion")===0||c.indexOf("/feed/fashion_destination")===0)return"fashion";if(/^\/(news)|(feed\/news_destination)|(@news)(\/.*)?$/.test(c))return"news";if(/^\/(learning)|(@learning)(\/.*)?$/.test(c))return"learning";
if(c.indexOf("/channel/")===0||c.indexOf("/user/")===0||c.indexOf("/gaming")===0||c.indexOf("/post/")===0)return"channel";if(JsJ(J))return"show";if(c==="/playlist"||c.indexOf("/playlist/")===0||c==="/view_play_list"||c.indexOf("/view_play_list/")===0||c.indexOf("/show/")===0)return"playlist";if(c==="/feed/history"||c.indexOf("/feed/history/")===0)return"history";if(c==="/new")return"labs";if(c==="/feed/subscriptions")return"subscriptions";if(c.indexOf("/feed/subscriptions/")===0)return"filteredsubscriptions";
if(c==="/history_controls")return"standalone";if(c.indexOf("/account")===0||c==="/gaia_link")return"WEB_PAGE_TYPE_SETTINGS";if(c.indexOf("/paid_memberships")===0||c.indexOf("/refund")===0||c.indexOf("/purchases")===0||c.indexOf("/feed/purchases")===0)return"memberships-and-purchases";if(c.indexOf("/product")===0)return"yts-products";if(c.indexOf("/premium")===0||c.indexOf("/musicpremium")===0)return c.indexOf("/premium/offers")===0||c.indexOf("/musicpremium/offers")===0?"ypc-offers":"red";if(c===
"/cart/checkout"||c==="/cart")return"ypc-checkout";if(c.indexOf("/feed/downloads")===0||c.indexOf("/redeem")===0||c.indexOf("/reporthistory")===0)return"browse";if(c.indexOf("/hashtag")===0)return"hashtag-landing-page";if(c.indexOf("/handle")===0)return"handle";if(c.indexOf("/source")===0)return"audio-pivot";if(c.search(RegExp("^/playables/(?!saved)."))===0)return"mini_app";if(c.indexOf("/playables")===0)return"playables";if(c.indexOf("/create/live/join")===0)return"open-in-app";if(c.indexOf("/shorts")===
0)return"shorts";if(c.indexOf("/feed/channels")===0)return"subscriptions-channels";(c=J?_.NU(J):"")&&c.indexOf("/watch")===0&&_.w("web_watch_enable_learning_journey")?(J=_.Aa(J),J=!!J.list&&J.list.indexOf("LJPP")===0):J=!1;if(J)return"learning_journey_watch"}};
_.tc=function(J){var c,m;(J=(m=_.L(J==null?void 0:J.commandMetadata,_.lk))==null?void 0:m.url)&&(c=_.Nr(J));return c};
JsJ=function(J){var c=J?_.NU(J):"";if(!c)return!1;c=c.toLowerCase();return c.indexOf("/show/")===0||c.indexOf("/playlist")===0&&(J=_.Aa(J),J.list&&J.list.indexOf("EL")===0)?!0:!1};
Cv=function(J){var c="unknown",m;var b=((m=_.L(J==null?void 0:J.commandMetadata,_.lk))==null?void 0:m.webPageType)||"";b?(m=b.toLowerCase(),m.startsWith("web_page_type_")&&(m=m.slice(14))):m=b;m&&csT[m.toUpperCase()]?c=csT[m.toUpperCase()]:_.L(J,_.I1)||_.L(J,m7R)?c="browse":_.L(J,_.Kv)?c="search":_.L(J,_.Rz)&&(c="watch");c==="watch"&&_.tc(J||null)==="learning_journey_watch"&&(c="learning_journey_watch");c==="unknown"&&_.qz(Error("If`"+JSON.stringify({clickTrackingParams:J==null?void 0:J.clickTrackingParams,
commandMetadata:J==null?void 0:J.commandMetadata,allEndpointKeys:Object.keys(J||[])})));return c};
_.a1=function(J){if(!_.boe||J)_.boe=_.Iw();return _.boe};
_.x7G=function(J){return!!_.L(J,_.Rz)||!!_.L(J,_.kb)&&_.w("kevlar_enable_shorts_prefetch")};
_.VJf=function(J,c){J=_.L(J,_.Rz)||_.L(J,_.kb);return"v"+J.videoId+(J.playlistId?"-pl"+J.playlistId:"")+(c?"-an1":"")+(J.params?"-pr"+J.params:"")};
Hj=function(J){return function(){return new J}};
iq=function(J){var c=_.BG();return function(){return c.resolve(J)}};
MJf=function(J){var c=_.c7("web_pbj_log_warning_rate",0);c=c>0&&Math.random()<c;if(!_.L(J,_.kb))return c&&_.qz(Error("Lf")),!1;var m;return _.w("shorts_controller_retrieve_seedless_sequence_v2")&&((m=_.L(J,_.kb))==null?void 0:m.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?!0:PHJ(J)?!0:(c&&_.qz(Error("Mf")),!1)};
PHJ=function(J){var c=(_.L(J,_.Rz)||_.L(J,_.kb)).videoId;if(!c||!pLJ.test(c))return!1;var m;return(J=(m=_.L(J.commandMetadata,_.lk))==null?void 0:m.url)&&(J.includes(c)||J.startsWith("/clip"))?!0:!1};
_.tJo=function(){var J=_.HA();return J.getFlag(192)?J.getFlag(190):!(_.w("web_watch_cinematics_disabled_by_default")||_.w("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&Ndo())};
_.nv=function(J,c,m){var b={};b.currentUrl=c;b.vis=J.vis!==void 0?J.vis:0;b.splay=!1;c=_.HA();b.autoCaptionsDefaultOn=c.getFlag(66);c.getFlag(141)?c.getFlag(140)?b.autonavState="STATE_OFF":b.autonavState="STATE_ON":b.autonavState="STATE_NONE";b.html5Preference="HTML5_PREF_WANTS";isNaN(_.Ub("STS"))||(b.signatureTimestamp=_.Ub("STS"));J.autonav&&(b.autoplay=!0,b.autonav=!0);J.mutedAutoplay&&(b.autoplay=!0,b.mutedAutoplay=!0);J.inlinePlayback&&(b.autoplay=!0,b.autonav=!1,b.isInlineUnmutedPlayback=!!J.inlineUnmuted);
b.referer=m;b.lactMilliseconds=J.lact!==void 0?J.lact.toString():"-1";_.w("enable_unknown_lact_fix_on_html5")&&b.lactMilliseconds==="-1"&&_.qz(new _.w3("Unknown LACT is set in playbackContext.",{"lact in tempData":J.lact||"undefined",autonav:J.autonav||"undefined"}));J={};c.getFlag(194)&&(J.hasShownAmbientMode=!0);c.getFlag(192)&&(J.hasToggledOffAmbientMode=!0);_.tJo()&&(J.watchAmbientModeEnabled=!0);b.watchAmbientModeContext=J;return b};
IoD=function(J){var c={},m=J.pbis||0;m&&(c.playbackBeginsInSeconds=m);J.prefetch_reason&&J.prefetch_reason==="hc_pbis"&&(c.prefetchReason="PREFETCH_REASON_HINT_CONFIG_PLAYBACK_BEGINS_IN_SECONDS");return c};
_.wB=function(J){J=J===void 0?!1:J;var c=_.HA(),m="USER_INTERFACE_THEME_LIGHT";c.getFlag(165)?m="USER_INTERFACE_THEME_DARK":c.getFlag(174)?m="USER_INTERFACE_THEME_LIGHT":_.Th()&&(m="USER_INTERFACE_THEME_DARK");return J?m:KXr()||m};
_.CHe=function(){return!_.w("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches};
_.Th=function(){return _.CHe()&&window.matchMedia("(prefers-color-scheme: dark)").matches};
_.rB=function(){var J=_.HA();return _.CHe()&&!J.getFlag(165)&&!J.getFlag(174)};
KXr=function(){var J=J===void 0?window.location.href:J;if(_.w("kevlar_disable_theme_param"))return null;var c=_.NU(J);if(_.ao2(c))return"USER_INTERFACE_THEME_DARK";try{var m=_.Aa(J).theme;return kim.get(m)||null}catch(b){}return null};
_.ao2=function(J){return _.w("enable_dark_theme_only_on_shorts")?!(J==null||!J.startsWith("/shorts/")):!1};
_.nqu=function(J,c,m,b,x){c=c===void 0?!1:c;m=m===void 0?!1:m;var P=_.Ub("INNERTUBE_CONTEXT");if(!P)return _.Xc(Error("Pf")),{};P=(0,_.Lw.unsafeClone)(P);_.w("web_no_tracking_params_in_shell_killswitch")||delete P.clickTracking;P.client||(P.client={});var p=P.client;p.clientName==="MWEB"&&p.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(p.clientFormFactor=_.Ub("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");p.screenWidthPoints=window.innerWidth;p.screenHeightPoints=window.innerHeight;p.screenPixelDensity=
Math.round(window.devicePixelRatio||1);p.screenDensityFloat=window.devicePixelRatio||1;p.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());p.userInterfaceTheme=_.wB();if(!c){var t=_.kvu();t&&(p.connectionType=t);_.w("web_log_effective_connection_type")&&(t=ilq())&&(P.client.effectiveConnectionType=t)}var I;if(_.w("web_log_memory_total_kbytes")&&((I=_.mo.navigator)==null?0:I.deviceMemory)){var a;I=(a=_.mo.navigator)==null?void 0:a.deviceMemory;P.client.memoryTotalKbytes=""+I*1E6}c&&b&&!_.w("web_it_context_set_original_url_ks")&&
(p.originalUrl=Hoo(_.mo.location.href,b).toString());_.w("web_gcf_hashes_innertube")&&(t=fut())&&(a=t.coldConfigData,I=t.coldHashData,t=t.hotHashData,P.client.configInfo=P.client.configInfo||{},a&&(P.client.configInfo.coldConfigData=a),I&&(P.client.configInfo.coldHashData=I),t&&(P.client.configInfo.hotHashData=t));a=_.Aa(_.mo.location.href);!_.w("web_populate_internal_geo_killswitch")&&a.internalcountrycode&&(p.internalGeo=a.internalcountrycode);!_.w("web_populate_client_screen_killswitch")&&x&&(p.clientScreen=
x);p.clientName==="MWEB"||p.clientName==="WEB"?(p.mainAppWebInfo={graftUrl:b||_.mo.location.href},_.w("kevlar_woffle")&&_.sT.instance&&(b=_.sT.instance,p.mainAppWebInfo.pwaInstallabilityStatus=!b.appInstalledEventFired&&b.deferredInstallPrompt?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),p.mainAppWebInfo.webDisplayMode=wAf(),p.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):p.clientName==="TVHTML5"&&(!_.w("web_lr_app_quality_killswitch")&&
(b=_.Ub("LIVING_ROOM_APP_QUALITY"))&&(p.tvAppInfo=Object.assign(p.tvAppInfo||{},{appQuality:b})),b=_.Ub("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(p.tvAppInfo=Object.assign(p.tvAppInfo||{},{certificationScope:b}));!_.w("web_populate_time_zone_itc_killswitch")&&(b=CkQ())&&(p.timeZone=b);(b=U8r())?p.experimentsToken=b:delete p.experimentsToken;p=S4R();b=_.iou();b=(0,_.Lw.getValues)(b.tokenJars);P.request=Object.assign({},P.request,{internalExperimentFlags:p,consistencyTokenJars:b});!_.w("web_prequest_context_killswitch")&&
(p=_.Ub("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(P.request.externalPrequestContext=p);b=_.HA();p=b.getFlag(58);b=b.get("gsml","");P.user=Object.assign({},P.user);p&&(P.user.enableSafetyMode=p);b&&(P.user.lockedSafetyMode=!0);_.w("warm_op_csn_cleanup")?m&&(c=_.Y3())&&(P.clientScreenNonce=c):!c&&(c=_.Y3())&&(P.clientScreenNonce=c);J&&(P.clickTracking={clickTrackingParams:J});if(J=_.$y("yt.mdx.remote.remoteClient_"))P.remoteClient=J;_.Lv.getInstance().setLocationOnInnerTubeContext(P);try{var k=oAG(),
H=k.bid;delete k.bid;P.adSignalsInfo={params:[],bid:H};for(var T=_.M(Object.entries(k)),r=T.next();!r.done;r=T.next()){var W=_.M(r.value),Y=W.next().value,Z=W.next().value;k=Y;H=Z;J=void 0;(J=P.adSignalsInfo.params)==null||J.push({key:k,value:""+H})}var d,G;if(((d=P.client)==null?void 0:d.clientName)==="TVHTML5"||((G=P.client)==null?void 0:G.clientName)==="TVHTML5_UNPLUGGED"){var e=_.Ub("INNERTUBE_CONTEXT");e.adSignalsInfo&&(P.adSignalsInfo.advertisingId=e.adSignalsInfo.advertisingId,P.adSignalsInfo.advertisingIdSignalType=
"DEVICE_ID_TYPE_CONNECTED_TV_IFA",P.adSignalsInfo.limitAdTracking=e.adSignalsInfo.limitAdTracking)}}catch(A){_.Xc(A)}return P};
_.TdJ=function(J){var c=new Dn(_.Ub("ONE_PICK_URL",""));c.urlParamMap_.set("hostId",J);(J=_.Ub("GAPI_LOCALE"))&&c.urlParamMap_.set("hl",J);(J=_.Ub("SESSION_INDEX"))&&c.urlParamMap_.set("authuser",J);(J=_.Ub("DELEGATED_SESSION_ID"))&&c.urlParamMap_.set("groupId",J);return c};
rsm=function(){var J=_.BG(),c=J.resolve(_.Wj);J=J.resolve(_.zh);return new wL2(c,J)};
LXT=function(J){if(window.IntersectionObserver)return new svt(J,400);throw new TypeError("Wf");};
WXe=function(){var J=Hammer.TouchAction,c=J.prototype.preventDefaults;J.prototype.preventDefaults=function(m){var b=this.actions.indexOf("pan-down")>-1;if(!b)return c.call(this,m);if(!D7f){var x=m.srcEvent;m=m.direction;var P;if((P=this.manager)==null?0:P.session.prevented)x.preventDefault();else if(b&&m&Hammer.DIRECTION_DOWN)return this.preventSrc(x)}}};
z0f=function(J){if(!J||J.size===0)return Hammer.DIRECTION_ALL;if(J.size===2){if(J.has("up")&&J.has("down"))return Hammer.DIRECTION_VERTICAL;if(J.has("right")&&J.has("left"))return Hammer.DIRECTION_HORIZONTAL}if(J.size===1){if(J.has("up"))return Hammer.DIRECTION_UP;if(J.has("down"))return Hammer.DIRECTION_DOWN;if(J.has("right"))return Hammer.DIRECTION_RIGHT;if(J.has("left"))return Hammer.DIRECTION_LEFT}return Hammer.DIRECTION_ALL};
_.foq=function(){return uhe?Promise.resolve(uhe):new Promise(function(J,c){var m=self.indexedDB.open("swpushnotificationsdb");m.onerror=c;m.onsuccess=function(){var b=m.result;if(b.objectStoreNames.contains("swpushnotificationsstore"))uhe=b,J(uhe);else return self.indexedDB.deleteDatabase("swpushnotificationsdb"),_.foq()};
m.onupgradeneeded=Y02})};
Y02=function(J){J=J.target.result;J.objectStoreNames.contains("swpushnotificationsstore")&&J.deleteObjectStore("swpushnotificationsstore");J.createObjectStore("swpushnotificationsstore",{keyPath:"key"})};
Zoe=function(J){var c=XLo(),m;return _.N(function(b){switch(b.nextAddress){case 1:return _.xL(b,2),_.K(b,J.match(c,{cacheName:"yt-appshell-assets"}),4);case 4:m=b.yieldResult;_.EO(b,3);break;case 2:_.NM(b);case 3:return b.return(m)}})};
XLo=function(){var J=typeof ServiceWorkerGlobalScope!=="undefined"&&self instanceof ServiceWorkerGlobalScope?q0D.registration.scope:U7o;J.endsWith("/")&&(J=J.slice(0,-1));return J+"/app_shell_home"};
S0m=function(J){J.map(function(c){return c.source}).join("|")};
_.h0r=function(J){return _.N(function(c){return c.return(Zoe(J))})};
d7Q=function(){var J=window.caches,c;return _.N(function(m){if(m.nextAddress==1)return _.K(m,_.h0r(J),2);c=m.yieldResult;return m.return(!!c)})};
R0f=function(){_.N(function(J){if(J.nextAddress==1){if($7f)return J.jumpTo(0);$7f=!0;if(_.w("enable_system_health_primes_monitoring"))return _.MU(Giu,3E4),Eqe(),J.return();if(!(Math.random()<_.c7("web_system_health_fraction")))return J.jumpTo(0);vqG={heightPixels:screen.height,widthPixels:screen.width};uq&&!isNaN(uq.jsHeapSizeLimit)&&(vqG.memoryTotalKbytes=String(Math.round(uq.jsHeapSizeLimit/1E3)));window.devicePixelRatio&&(vqG.devicePixelRatio=window.devicePixelRatio);return _.K(J,OoR(),4)}_.MU(Giu,
3E4);return _.K(J,As2(),0)})};
OoR=function(){return _.N(function(J){if(J.nextAddress==1)return fv.intersectionObserverPresent="IntersectionObserver"in window,fv.serviceWorkerPresent="serviceWorker"in navigator,fv.webSharePresent="share"in navigator,fv.fullScreenApiPresent="exitFullscreen"in document||"webkitExitFullscreen"in document,fv.cacheStoragePresent="caches"in window,fv.storageEstimatePresent="storage"in navigator&&"estimate"in navigator.storage,fv.storagePersistPresent="storage"in navigator&&"persist"in navigator.storage,
fv.webkitTemporaryStoragePresent="webkitTemporaryStorage"in Yb&&Yb.webkitTemporaryStorage&&"queryUsageAndQuota"in Yb.webkitTemporaryStorage,fv.promiseRejectionEventPresent=typeof PromiseRejectionEvent!=="undefined",_.K(J,jzr(),2);fv.indexedDbPresent=J.yieldResult;fv.subtleCryptoPresent="crypto"in window&&"subtle"in window.crypto&&"importKey"in window.crypto.subtle;fv.broadcastChannelPresent="BroadcastChannel"in window;fv.webLocksApiPresent="locks"in navigator;window.matchMedia&&window.matchMedia("(color-gamut)").matches&&
(fv.supportsP3Color=window.matchMedia("(color-gamut: p3)").matches,fv.supportsRec2020Color=window.matchMedia("(color-gamut: rec2020)").matches);_.tD(J)})};
Giu=function(){var J=9E4+Math.random()*2E3;_.cO()>J||(_.w("enable_system_health_primes_monitoring")?Eqe():As2())};
As2=function(){var J;return _.N(function(c){if(c.nextAddress==1)return _.K(c,oq3(),2);J=c.yieldResult;_.zB("systemHealthCaptured",J);_.tD(c)})};
Eqe=function(){var J={metric:{}},c=Qvq();c.networkEvents.length&&(J.metric.networkEvents=e0R(c));_.zB("systemHealthCaptured",J)};
oq3=function(){var J,c,m,b,x,P,p,t,I,a;return _.N(function(k){switch(k.nextAddress){case 1:J={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)};c=window.screen;_.w("enable_is_extended_monitoring")&&c&&"isExtended"in c&&(J.isExtended=!!c.isExtended);m={metric:{staticContext:vqG,dynamicContext:J,webMetric:jvu,webApiSupport:fv}};
if(b=_.Y3())m.csn=b;uq&&(m.metric.webMetric.currentHeapKbytes=Math.round(uq.usedJSHeapSize/1E3));window.matchMedia&&(m.metric.dynamicContext.hasHoverSupport=window.matchMedia("(any-hover: hover)").matches,m.metric.dynamicContext.hasFinePointer=window.matchMedia("(any-pointer: fine)").matches,m.metric.dynamicContext.hasCoarsePointer=window.matchMedia("(any-pointer: coarse)").matches);if(!("getBattery"in Yb&&typeof Yb.getBattery==="function")){k.jumpTo(2);break}return _.K(k,Yb.getBattery(),3);case 3:if(x=
k.yieldResult)m.metric.dynamicContext.chargingStatus=x.charging?"CHARGING_AC":"CHARGING_INACTIVE";case 2:"onLine"in navigator&&(m.metric.dynamicContext.networkCoarseState=navigator.onLine?0:2);if(fv.storageEstimatePresent)return _.K(k,navigator.storage.estimate(),8);if(!fv.webkitTemporaryStoragePresent){k.jumpTo(5);break}return _.K(k,FXt(),7);case 7:P=k.yieldResult;k.jumpTo(5);break;case 8:P=k.yieldResult;case 5:return m.metric.dynamicContext.deviceStorageQuotaMbytes=((p=P)==null?0:p.quota)?String(Math.round(P.quota/
1048576/10)*10):"-1",m.metric.dynamicContext.deviceStorageUsageMbytes=((t=P)==null?0:t.usage)?String(Math.round(P.usage/1048576/10)*10):"-1",I=m.metric.dynamicContext,_.K(k,d7Q(),9);case 9:return I.hasAppShell=k.yieldResult,a=Qvq(),a.networkEvents.length&&(m.metric.networkEvents=e0R(a)),k.return(m)}})};
FXt=function(){return new Promise(function(J){var c;fv.webkitTemporaryStoragePresent&&(c=Yb.webkitTemporaryStorage)!=null&&c.queryUsageAndQuota?Yb.webkitTemporaryStorage.queryUsageAndQuota(function(m,b){J({usage:m,quota:b})}):J(void 0)})};
_.XB=function(J){J&=16777215;J=[(J&16711680)>>16,(J&65280)>>8,J&255];return loJ(J[0],J[1],J[2])};
_.Zn=function(J){J=[(J&16711680)>>>16,(J&65280)>>>8,J&255,(J&4278190080)>>>24];var c=_.ysQ(J,function(m){return m==(m&255)});
J[3]=(J[3]/255).toFixed(3);if(!c)throw Error("Xf`"+J.join(","));return"rgba("+J.join(",")+")"};
_.BdG=function(J){return[(J&16711680)>>>16,(J&65280)>>>8,J&255]};
_.gqr=function(J){J=J.map(function(c){c/=255;return c<=.03928?c/12.92:Math.pow((c+.05)/1.05,2.4)});
return J[0]*.2126+J[1]*.7152+J[2]*.0722};
UT=function(J,c){J=_.BdG(J);return"rgba("+J[0]+", "+J[1]+", "+J[2]+", "+c+")"};
_.JHT=function(){try{return!!self.localStorage}catch(J){return!1}};
xGJ=function(){if(cHJ())_.qz(Error("Yf"));else{var J=document.createElement("iframe");J.style.display="none";var c=c===void 0?window.location.href:c;var m=_.Y$(_.Ub("PERSIST_IDENTITY_IFRAME_URL"));c=m?m:(new URL(c)).host.indexOf("studio")===0?_.cm(mGr,"persist_identity"):_.cm(bYT,"persist_identity");_.nl3(J,1,c);J.id="persist_identity";var b;(b=document.body)==null||b.appendChild(J)}};
cHJ=function(){var J=VOT;J||(J=document.querySelector("#persist_identity"));return J};
PuR=function(){var J=!1;try{J=!!window.sessionStorage.getItem("session_logininfo")}catch(c){J=!0}return(_.Ub("INNERTUBE_CLIENT_NAME")==="WEB"||_.Ub("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&J};
MOf=function(J,c){if(!PuR())return!1;c||(c=_.Ub("LOGIN_INFO"));return c?(J.session_logininfo=c,!0):!1};
NOt=function(J,c){J=J===void 0?!1:J;if((c===void 0||!c)&&pXT!=="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN")if(window.sessionStorage.getItem("from_switch_account"))window.sessionStorage.removeItem("from_switch_account");else if(_.Ss("LOG_STICKINESS",!1)){c=_.Y3();var m=_.fl(),b={identityStickinessData:{initialState:pXT}};c&&m&&_.on(c,m,b)}if(c=cHJ())if(m=c.src?(new URL(c.src)).origin:"*",J){var x;(x=c.contentWindow)==null||x.postMessage({action:"clear"},m)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>=
2)&&(J=window.sessionStorage.getItem("session_logininfo"))){var P;(P=c.contentWindow)==null||P.postMessage({loginInfo:J},m)}};
_.Sr=function(J){J=J===void 0?!0:J;try{window.sessionStorage.removeItem("stickiness_reload"),window.sessionStorage.removeItem("session_logininfo"),_.q3("LOGIN_INFO",""),J&&window.sessionStorage.setItem("from_switch_account","1"),NOt(!0,J)}catch(c){}};
tOr=function(J){J&&(J.startsWith("https://accounts.google.com/AddSession")?_.Sr():J.startsWith("https://accounts.google.com/ServiceLogin")?_.Sr():J.startsWith("https://myaccount.google.com")&&_.O7(J).getPath().endsWith("/youtubeoptions")&&_.Sr())};
hc=function(J,c){tOr(J);if(_.Ss("LOGGED_IN",!0)&&PuR()){var m=N2o(J);m==null&&(m={});MOf(m,c)&&_.jK(J,m)}};
I5t=function(){function J(c){for(c=c.target;c&&c.nodeName!=="A";)if(c=c.parentNode,!(c&&c instanceof HTMLElement))return;if(c&&!c.hasAttribute("download")&&c.getAttribute("rel")!=="external"&&c.href)return c.href}
document.addEventListener("mousedown",function(c){c.button!==0&&(c=J(c))&&hc(c)});
document.addEventListener("click",function(c){(c=J(c))&&hc(c)})};
a5T=function(){var J=new KKG;try{if(_.Ss("LOGGED_IN",!0)){try{window.sessionStorage.setItem("canUseSessionStorage","true"),window.sessionStorage.removeItem("canUseSessionStorage")}catch(t){J.increment(5,!1);return}if(_.Ub("LOGIN_INFO")){var c=Cum?Cum:window.location;_.Ub("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"&&xGJ();var m=N2o(c.href);m==null&&(m={});var b=m.session_logininfo,x=Number(window.sessionStorage.getItem("stickiness_reload")),P=b===_.Ub("LOGIN_INFO");if(!window.sessionStorage.getItem("session_logininfo")||
x>=2||P)x>=2?J.increment(2,P):P?J.increment(7,P):window.sessionStorage.getItem("session_logininfo")||(J.increment(3,P),pXT="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_NEW_TAB"),window.sessionStorage.setItem("session_logininfo",_.Ub("LOGIN_INFO")),window.sessionStorage.removeItem("stickiness_reload");else if(window.sessionStorage.getItem("session_logininfo"))if(_.Ub("LOGIN_INFO")===window.sessionStorage.getItem("session_logininfo"))J.increment(4,P),window.sessionStorage.removeItem("stickiness_reload");
else if(x<2){window.sessionStorage.setItem("stickiness_reload",String(x+1));var p=c.href;p=_.FR(p,"sttick");hc(p,window.sessionStorage.getItem("session_logininfo"));p=_.RP(p,{sttick:x});J.increment(x,P);_.Rh(c,p)}}else J.increment(6,!1)}else _.Sr(!1)}catch(t){}};
_.dB=function(J,c,m,b,x){c=c===void 0?{}:c;m=m===void 0?"":m;b=b===void 0?window:b;J=_.oP(J,c);hc(J);m=_.n1(J+m,x);_.Rh(b.location,m)};
_.kXr=function(J,c,m,b,x){x=x===void 0?!1:x;m&&_.jK(J,m);m=_.n1(J);var P=_.ah(m);J!=P&&_.Ge(Error("Zf`"+J));J=P;c=c||$3(J).toString(36);try{if(x)return x=J,x=LUT(x),hc(x),_.Zx(window,x,c,"attributionsrc")}catch(p){_.ha(p)}hc(J);return _.Zx(window,m,c,b)};
HYQ=function(J){if(J.urlEndpoint){if(J=_.Aa(J.urlEndpoint.url),J.adurl)return lN(J.adurl)}else if(J.watchEndpoint)return"//www.youtube.com/watch?v="+J.watchEndpoint.videoId;return null};
iYr=function(J){if(!J||!J.reportingPings)return null;var c={};J.reportingPings.forEach(function(m){m.pingType in c?c[m.pingType].push(m.url):c[m.pingType]=[m.url]});
return{adpings:r5Q(c)}};
_.$b=function(){return{isShellLoad:_.Ss("IS_SHELL_LOAD",!1)}};
TOm=function(){navigator.serviceWorker.getRegistrations().then(function(J){J.forEach(nNt)})};
nNt=function(J){J&&_.wXu(rHq,J.scope)};
_.wXu=function(J,c){c={scope:c||_.mG("service_worker_scope")||"/"};return navigator.serviceWorker.register(_.N2(J),c)};
Gh=function(J,c,m,b){if(c&&c.serializedYpcCujLoggingParams){if(m){var x={};x.transactionErrorType=m;b&&(x.errorMessage=b);c.ypcCujLoggingClientPayload={ypcAcquisitionCujLoggingClientPayload:{ypcAcquisitionDebugLoggingParams:x}}}m={};m.ypcCujContext=c;J=_.VS("FLOW_EVENT_NAMESPACE_YPC_ACQUISITION",J,m);_.Pj(_.Mr(),J,"FLOW_TYPE_YPC_ACQUISITION")}};
_.sMt=function(J,c,m,b){var x={};x.serializedTransactionFlowLoggingParams=c;m&&(x.errorType=m);b&&(x.errorMessage=b);_.zB(J,x);_.YH()};
_.LK2=function(J){J&&_.sMt("transactionFlowStarted",J)};
_.DGo=function(J){J&&_.sMt("transactionFlowCancelled",J)};
_.ET=function(J,c,m){c&&_.sMt("transactionFlowFailed",c,J,m)};
WKm=function(J){if(_.w("enable_setting_app_inert_when_buy_flow_opens")){var c=document.querySelector("ytd-app")||document.querySelector("ytmusic-app");c&&(c.inert=J)}};
_.vj=function(){this.megabloxUrl_=null};
_.OT=function(J){try{var c=zcu==null?void 0:zcu.composedPath(J)}catch(m){c=J.composedPath?J.composedPath():[]}return c&&c.length>0?c:J.composedPath?J.composedPath():[]};
_.Ac=function(J){return _.OT(J)[0]};
_.R1=function(J){if(!(J instanceof Element))return null;J=J.classList?Array.from(J.classList):void 0;if(!J)return null;var c=J.indexOf("style-scope");return c>-1&&c+1<J.length?J[c+1]:null};
o1=function(J){if(!(J instanceof HTMLElement))return null;var c=J&&(J.$$||J.polymerController)?J.tagName.toLowerCase():null;return c?c:_.R1(J)};
uPT=function(J,c){return J.replace(/[^a-z]*[^\s]+/g,function(m){return m+".style-scope."+c})};
f5Q=function(J,c){return c?J.split(",").map(function(m){return uPT(m.trim(),c)}).join(", "):J};
_.QS=function(J){var c,m,b,x;return(x=(b=(m=(c=J.root)!=null?c:J.shadowRoot)!=null?m:J.__shady_native_shadowRoot)!=null?b:J.__shady_shadowRoot)!=null?x:J};
er=function(J){return J instanceof ShadowRoot?ShadowRoot:J instanceof DocumentFragment?DocumentFragment:J instanceof Document?Document:HTMLElement};
YxT=function(J){var c,m,b;return(b=(m=(c=J.parentElement)!=null?c:J.__shady_native_parentElement)!=null?m:J.__shady_parentElement)!=null?b:null};
XXe=function(J){var c,m,b;return(b=(m=(c=J.parentNode)!=null?c:J.__shady_native_parentNode)!=null?m:J.__shady_parentNode)!=null?b:null};
ZYR=function(J){var c,m,b;return(b=(m=(c=J.__shady_parentNode)!=null?c:J.__shady_native_parentNode)!=null?m:J.parentNode)!=null?b:null};
qxe=function(J){var c,m;return(m=(c=XXe(J))!=null?c:J.host)!=null?m:null};
UGR=function(J){var c,m,b;return(b=(m=(c=J.nextSibling)!=null?c:J.__shady_native_nextSibling)!=null?m:J.__shady_nextSibling)!=null?b:null};
Sxf=function(J){var c,m,b;return(b=(m=(c=J.previousSibling)!=null?c:J.__shady_native_previousSibling)!=null?m:J.__shady_previousSibling)!=null?b:null};
hcD=function(J){var c,m,b;return(b=(m=(c=J.nextElementSibling)!=null?c:J.__shady_native_nextElementSibling)!=null?m:J.__shady_nextElementSibling)!=null?b:null};
dGG=function(J){var c,m,b;return(b=(m=(c=J.previousElementSibling)!=null?c:J.__shady_native_previousElementSibling)!=null?m:J.__shady_previousElementSibling)!=null?b:null};
$G3=function(J){var c,m,b;return new Set([].concat(_.L6((c=J.children)!=null?c:[]),_.L6((m=J.__shady_native_children)!=null?m:[]),_.L6((b=J.__shady_children)!=null?b:[])))};
GX2=function(J){var c,m,b;return new Set([].concat(_.L6((c=J.childNodes)!=null?c:[]),_.L6((m=J.__shady_native_childNodes)!=null?m:[]),_.L6((b=J.__shady_childNodes)!=null?b:[])))};
ENQ=function(J){if(!J)return null;var c=_.R1(J);if(!c){var m;return(m=Node.prototype.getRootNode)==null?void 0:m.call(J)}c=c.toUpperCase();for(J=YxT(J);J&&J.tagName!==c;)J=YxT(J);return J?_.QS(J):null};
vNG=function(J){for(;J&&!(J instanceof HTMLElement);)J=qxe(J);return J};
OYJ=function(J){var c=vNG(J);return J===c?_.R1(J):c?o1(c):null};
AHo=function(J){return(J=vNG(J))?o1(J):null};
Rcq=function(J){if(J instanceof Comment)return!1;if(J instanceof Text){var c,m;if(((m=(c=J.textContent)==null?void 0:c.trim())!=null?m:"")==="")return!1}return!0};
jr=function(J,c,m){var b=c(J);for(m=m===void 0?AHo(J):m;b&&(OYJ(b)!==m||!Rcq(b));)J=b,b=c(J);return b};
oNf=function(J,c,m){if(!c)return null;J=AHo(J);return OYJ(c)===J&&Rcq(c)?c:jr(c,m,J)};
QM2=function(J){return jr(J,ZYR,_.R1(J))};
ecJ=function(J){return jr(J,hcD)};
jMe=function(J){return jr(J,UGR)};
FKR=function(J){return jr(J,dGG)};
l52=function(J){return jr(J,Sxf)};
yHT=function(J){return oNf(J,J.firstChild||J.__shady_native_firstChild||J.__shady_firstChild||null,UGR)};
BOT=function(J){var c,m,b;var x=(b=(m=(c=J.firstElementChild)!=null?c:J.__shady_native_firstElementChild)!=null?m:J.__shady_firstElementChild)!=null?b:null;return oNf(J,x,hcD)};
gNT=function(J){var c,m,b;var x=(b=(m=(c=J.lastChild)!=null?c:J.__shady_native_lastChild)!=null?m:J.__shady_lastChild)!=null?b:null;return oNf(J,x,Sxf)};
JtJ=function(J){var c,m,b;var x=(b=(m=(c=J.lastElementChild)!=null?c:J.__shady_native_lastElementChild)!=null?m:J.__shady_lastElementChild)!=null?b:null;return oNf(J,x,dGG)};
ctr=function(J){var c=AHo(J);return Array.from(GX2(J)).filter(function(m){return OYJ(m)===c})};
m6m=function(J){var c=o1(J);return Array.from($G3(J)).filter(function(m){return _.R1(m)===c})};
_.FB=function(J,c,m){if(J instanceof HTMLElement&&_.R1(J)===m){var b=Array.from(J.classList).indexOf("style-scope");if(b===-1)J.classList.add("style-scope"),J.classList.add(c);else if(!(b+1>=J.classList.length)){b=J.classList[b+1];var x,P;J==null||(x=J.classList)==null||(P=x.replace)==null||P.call(x,b,c)}}if(J instanceof HTMLElement||J instanceof DocumentFragment)for(x=_.M($G3(J)),P=x.next();!P.done;P=x.next())_.FB(P.value,c,m);return J};
lq=function(J,c){if(J instanceof HTMLElement&&_.R1(J)===c){var m=Array.from(J.classList).indexOf("style-scope");m===-1||m+1>=J.classList.length||J.classList.remove("style-scope",J.classList[m+1])}if(J instanceof HTMLElement||J instanceof DocumentFragment){m=_.M(J.children);for(var b=m.next();!b.done;b=m.next())lq(b.value,c)}return J};
_.buJ=function(J,c){return er(J).prototype.appendChild.call(J,c)};
x6m=function(J,c){if(J===c)return!0;J=GX2(J);return Array.from(J).some(function(m){return x6m(m,c)})};
_.Bj=function(J,c){if(J instanceof yS)return J;(c==null?0:c.ignoreOwnerDocument)&&!Object.getOwnPropertyDescriptor(J,"ownerDocument")&&Object.defineProperty(J,"ownerDocument",{get:function(){return window.document}});
return new yS(J)};
PGQ=function(){var J=yS.prototype,c=[].concat(_.L6(V$J?[]:["getRootNode"]),["setAttribute","removeAttribute"]);c=_.M(c);for(var m=c.next(),b={};!m.done;b={method$jscomp$48:void 0},m=c.next())b.method$jscomp$48=m.value,J[b.method$jscomp$48]=function(x){return function(){return this.host[x.method$jscomp$48].apply(this.host,arguments)}}(b)};
pTe=function(){var J=yS.prototype,c=[].concat(_.L6(V$J?[]:"cloneNode contains appendChild insertBefore removeChild replaceChild".split(" ")),_.L6(M$r?[]:["querySelector","querySelectorAll"]));c=_.M(c);for(var m=c.next(),b={};!m.done;b={method$jscomp$49:void 0},m=c.next())b.method$jscomp$49=m.value,J[b.method$jscomp$49]=function(x){return function(){return this.root[x.method$jscomp$49].apply(this.root,arguments)}}(b)};
IX3=function(){var J=yS.prototype,c=[].concat(_.L6(NWe?[]:["nextSibling","previousSibling","nextElementSibling","previousElementSibling"]),_.L6(t$D?[]:["parentNode"]));c=_.M(c);for(var m=c.next(),b={};!m.done;b={prop$jscomp$62:void 0},m=c.next())b.prop$jscomp$62=m.value,Object.defineProperty(J,b.prop$jscomp$62,{get:function(x){return function(){return this.host[x.prop$jscomp$62]}}(b),
configurable:!0})};
aXR=function(){var J=yS.prototype,c=["activeElement"].concat(_.L6(NWe?[]:["firstChild","firstElementChild","lastElementChild","childNodes"]),_.L6(KBu?[]:["children"]),_.L6(CGD?[]:["lastChild"]));c=_.M(c);for(var m=c.next(),b={};!m.done;b={prop$jscomp$63:void 0},m=c.next())b.prop$jscomp$63=m.value,Object.defineProperty(J,b.prop$jscomp$63,{get:function(x){return function(){return this.root[x.prop$jscomp$63]}}(b),
configurable:!0})};
krr=function(){for(var J=yS.prototype,c=_.M(["innerHTML","textContent"]),m=c.next(),b={};!m.done;b={prop$jscomp$64:void 0},m=c.next())b.prop$jscomp$64=m.value,Object.defineProperty(J,b.prop$jscomp$64,{get:function(x){return function(){return this.root[x.prop$jscomp$64]}}(b),
set:function(x){return function(P){this.root[x.prop$jscomp$64]=P}}(b),
configurable:!0})};
HuD=function(J){var c=yS.prototype;J=_.M(Object.entries(J));for(var m=J.next(),b={};!m.done;b={fn$jscomp$359:void 0},m=J.next()){var x=_.M(m.value);m=x.next().value;x=x.next().value;b.fn$jscomp$359=x;c[m]=function(P){return function(){return P.fn$jscomp$359.apply(null,[this.host.node||this.host].concat(_.L6(arguments)))}}(b)}};
nTm=function(){for(var J=yS.prototype,c=_.M(Object.entries(iuD)),m=c.next(),b={};!m.done;b={fn$jscomp$360:void 0},m=c.next()){var x=_.M(m.value);m=x.next().value;x=x.next().value;b.fn$jscomp$360=x;Object.defineProperty(J,m,{get:function(P){return function(){return P.fn$jscomp$360.apply(null,[this.host.node||this.host].concat(_.L6(arguments)))}}(b),
configurable:!0})}};
_.gB=function(J){return J instanceof TWt||J instanceof Document?J:new TWt(J)};
wTQ=function(){for(var J=TWt.prototype,c=_.M("setAttribute removeAttribute cloneNode contains appendChild insertBefore getRootNode removeChild replaceChild querySelector querySelectorAll".split(" ")),m=c.next(),b={};!m.done;b={method$jscomp$50:void 0},m=c.next())b.method$jscomp$50=m.value,J[b.method$jscomp$50]=function(x){return function(){return HTMLElement.prototype[x.method$jscomp$50].call.apply(HTMLElement.prototype[x.method$jscomp$50],[this.node].concat(_.L6(arguments)))}}(b)};
rt2=function(){for(var J=TWt.prototype,c=_.M("firstChild lastChild firstElementChild lastElementChild childNodes children parentNode nextSibling previousSibling nextElementSibling previousElementSibling classList innerHTML textContent".split(" ")),m=c.next(),b={};!m.done;b={prop$jscomp$65:void 0},m=c.next())b.prop$jscomp$65=m.value,Object.defineProperty(J,b.prop$jscomp$65,{get:function(x){return function(){var P;return(P=this.node["__shady_native_"+x.prop$jscomp$65])!=null?P:this.node[x.prop$jscomp$65]}}(b),
configurable:!0})};
_.mq=function(J,c,m){m===void 0&&(m=!J.classList.contains(c));m?J.classList.add(c):J.classList.remove(c)};
_.bM=function(J,c,m){m===void 0&&(m=!J.hasAttribute(c));if(c==="class")throw Error("cg");m?_.gB(J).setAttribute(c,""):_.gB(J).removeAttribute(c)};
s7T=function(J){return(J.localName!=="slot"?[]:(0,_.xr)(J).assignedNodes({flatten:!0})).filter(function(c){return c.nodeType===Node.ELEMENT_NODE})};
_.LB2=function(J){return(J=_.Bj(J).querySelector("slot"))&&J.localName==="slot"?s7T(J):[]};
_.V1=function(J,c){window.ShadyCSS&&window.ShadyCSS.styleSubtree(J,c)};
P9=function(J,c){var m=c.bind(J);return function(b){m(b,b.detail)}};
_.ME=function(J,c){var m=D6Q.get(J);m||(m=new WeakMap,D6Q.set(J,m));if(m.has(c))return m.get(c);if(_.w("web_fi_listen_disable_bound_fn_helper")){var b=c.bind(J);J=function(x){b(x,x==null?void 0:x.detail)}}else J=P9(J,c);
m.set(c,J);return J};
uxR=function(J,c){WBJ(J);J.created[zJD].push(c)};
WBJ=function(J){if(!J.created||!J.created[zJD]){var c=J.created,m=c?[c]:[];J.created=function(){for(var b=_.M(m),x=b.next();!x.done;x=b.next())x.value.apply(this)};
J.created[zJD]=m}};
fXt=function(J){return function(){var c=_.s$.apply(0,arguments);return function(m,b,x){J.apply(null,_.L6(c))(m,b,x)}}};
YF2=function(){return function(){var J=_.s$.apply(0,arguments);return function(c,m,b){XHm.apply(null,_.L6(J))(c,m,b)}}};
_.f=function(J){return YF2()(J)};
_.q=function(){return fXt(Soo).apply(null,_.L6(_.s$.apply(0,arguments)))};
_.ps=function(J){return _.w("pbcm_fi_listen_decorators")?XTt(J):fXt(qot)(J)};
XTt=function(J){return function(c,m){uxR(c,function(){var b=this[m],x=_.w("web_fi_listen_disable_bound_fn_helper")?function(P){b(P,P.detail)}.bind(this):P9(this,b);
ZuG.has(J)?ua(this.hostElement,J,x):this.hostElement.addEventListener(J,x)})}};
_.NE=function(){return fXt(U_Q).apply(null,_.L6(_.s$.apply(0,arguments)))};
_.U=function(J){J=J===void 0?{}:J;return fXt(ZZT)(J)};
_.tO=function(J){if(J.hostElement&&J!==J.hostElement){var c=_.rK(J.hostElement);c=J.renderIdom?c:c.shadowRoot}c||(J=J.root,c=J instanceof Node?_.rK(J):null);return c};
_.Iu=function(J){return qFf?U6R(J):function(c,m){Object.defineProperty(c,m,{get:function(){var b;return(b=_.tO(this))==null?void 0:b.querySelector(J)},
enumerable:!0,configurable:!0})}};
U6R=function(J){return function(c,m){Object.defineProperty(c,m,{get:function(){var b,x=(b=_.Bj(this.hostElement))==null?void 0:b.querySelector(J);if(x)return x;var P;return(P=_.tO(this))==null?void 0:P.querySelector(J)},
enumerable:!0,configurable:!0})}};
_.Ks=function(J){return qFf?SF3(J):function(c,m){Object.defineProperty(c,m,{get:function(){var b;return(b=_.tO(this))==null?void 0:b.querySelectorAll(J)},
enumerable:!0,configurable:!0})}};
SF3=function(J){return function(c,m){Object.defineProperty(c,m,{get:function(){var b,x=(b=_.Bj(this.hostElement))==null?void 0:b.querySelectorAll(J);if(x==null?0:x.length)return x;var P;return(P=_.tO(this))==null?void 0:P.querySelectorAll(J)},
enumerable:!0,configurable:!0})}};
hJG=function(J){return function(c){if(![_.jE,_.h].includes(Object.getPrototypeOf(c.prototype).constructor))throw Error("dg");sxT(Object.assign({},typeof J!=="string"?J:{is:J,notifyObserversOnUndefined:!0},{disableInheritanceCheck:!0,disableEnforceFastDefaultValuesCheck:!0}))(c)}};
_.au=function(){var J=J===void 0?{}:J;return function(c){if(![F6,_.Cs].includes(Object.getPrototypeOf(c.prototype).constructor))throw Error("eg");Lmu(Object.assign({},J,{disableInheritanceCheck:!0}))(c)}};
$6e=function(J,c){d6T[J]!=null||(d6T[J]=new Set);d6T[J].add(c)};
_.kr=function(){var J=_.NE.apply(null,_.L6(_.s$.apply(0,arguments)));return function(c,m){$6e(c.is,m);J(c,m)}};
ns=function(J,c,m){if(H9(J)&&!Gr3.has(c)){c=c.replace(/^JSC\$[\d]+_/,"");c=c.replace(/\.\d+(\.|$)/g,function(P,p){return".#"+p});
iM[J]!=null||(iM[J]={});var b,x;(b=iM[J])[x=c]!=null||(b[x]=new Set);iM[J][c].has(m)||(iM[J][c].add(m),_.zB("polymerPropertyAccessEvent",{componentName:J,propertyName:c,accessType:m}))}};
ETJ=function(){return _.w("polymer_property_access_logging_debug")||_.w("polymer_enable_property_access_logging")};
H9=function(J){if(_.w("polymer_property_access_logging_debug"))return!0;if(!_.w("polymer_enable_property_access_logging"))return!1;vTr||(vTr=Date.now());return($3(J)+vTr)%100<_.c7("polymer_property_access_logging_percent")};
OuT=function(J,c){return H9(c)&&J.hostElement.loggingStatus?new Proxy(J,{get:function(m,b,x){if(m.hostElement.loggingStatus.bypassProxyController)return m[b];m.hostElement.loggingStatus.isExternalGet=!0;var P=m[b];m.hostElement.loggingStatus.isExternalGet=!1;if(P instanceof Function)return function(){var p=_.s$.apply(0,arguments);try{return m.hostElement.loggingStatus.currentExternalCall=b,ns(c,b,"PROPERTY_ACCESS_CALL_EXTERNAL_CONTROLLER"),P.apply(this===x?m:this,p)}finally{m.hostElement.loggingStatus.currentExternalCall=
void 0}};
ns(c,b,"PROPERTY_ACCESS_GET_EXTERNAL_CONTROLLER");return P},
set:function(m,b,x){if(m.hostElement.loggingStatus.bypassProxyController)return m[b]=x,!0;m.hostElement.loggingStatus.isRendererStamper?ns(c,b,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE"):m.hostElement.loggingStatus.isDeclarativeExternal||ns(c,b,"PROPERTY_ACCESS_SET_EXTERNAL_CONTROLLER_IMPERATIVE");try{m.hostElement.loggingStatus.currentExternalSet=b,m[b]=x}finally{m.hostElement.loggingStatus.currentExternalSet=void 0}return!0}}):J};
Atu=function(J,c){J&&J.loggingStatus&&!J.loggingStatus.isDeclarativeExternal&&!J.loggingStatus.isExternalGet&&J.loggingStatus.currentExternalSet!==c&&ns(J.tagName.toLowerCase(),c,"PROPERTY_ACCESS_GET_INTERNAL")};
T1=function(J,c,m){J&&(m||J.loggingStatus&&!J.loggingStatus.isInitializing&&!J.loggingStatus.isDefiningPropertyAccessor&&J.loggingStatus.currentExternalSet!==c)&&ns(J.tagName.toLowerCase(),c,"PROPERTY_ACCESS_SET_INTERNAL")};
RJR=function(){return{_definePropertyAccessor:function(J,c){var m=this,b=m.hostElement.loggingStatus;b&&(b.isDefiningPropertyAccessor=!0);var x=m[J];x!==void 0&&(m.__data?m._setPendingProperty(J,x):(m.__dataProto!=null||(m.__dataProto={}),m.__dataProto[J]=x));b&&(b.isDefiningPropertyAccessor=!1);Object.defineProperty(this,J,{get:function(){Atu(m.hostElement,J);return this.__data[J]},
set:function(P){c||this._setPendingProperty(J,P,!0)&&this._invalidateProperties()}})},
created:function(){var J=this._setPendingProperty.bind(this);this._setPendingProperty=function(c,m,b){T1(this.hostElement,c);return J.apply(this,[c,m,b])}}}};
oTJ=function(J){ETJ()&&_.f(wU.prototype)(J.prototype,"__templateBindingLoggingBehavior")};
Q7t=function(J,c){if(c.resolvedFactories.length!==J.resolvedFactories.length)return!0;c=_.M(c.resolvedFactories.entries());for(var m=c.next();!m.done;m=c.next()){var b=_.M(m.value);m=b.next().value;b=b.next().value;if(b.providerClass){if(b.providerClass!==J.resolvedFactories[m].providerClass)return!0}else if(b.providerValue){if(b.providerValue!==J.resolvedFactories[m].providerValue)return!0}else if(b.factory!==J.resolvedFactories[m].factory)return!0}return!1};
eJe=function(J,c){J=_.M(J);for(var m=J.next();!m.done;m=J.next())if(m=m.value,m.constructor===Array)eJe(m,c);else{var b=c;b.has(m)||(m.inject&&b.add(m),m.behaviors&&eJe(m.behaviors,b))}};
rU=function(J,c){var m=J[c];J[c]=function(){var b=_.s$.apply(0,arguments);this.initializeInjection&&this.initializeInjection();if(m)return m.apply(this,b)}};
yte=function(){_.sB.Class=function(m,b){m=j7J(m,b);rU(m.prototype,"created");return m};
rU(Ls.prototype,"_initializeProperties");rU(_.Dh.prototype,"_initializeProperties");if(FB2)rU(lXT,"created");else{var J=function(){rU(customElements.get("tp-yt-iron-list").prototype,"_initializeProperties")};
if(customElements.get("tp-yt-iron-list"))J();else{var c=customElements.define;customElements.define=function(m,b,x){c.call(customElements,m,b,x);m==="tp-yt-iron-list"&&(J(),customElements.define=c)}}}};
gTR=function(J,c){J.prototype.behaviors=J.prototype.behaviors||[];J.prototype.behaviors.unshift(BWJ.InjectBehavior);J.prototype.provide=c};
_.uM=function(J){return function(c){if(!J.disableElementRegistration){J.noInjection||gTR(c,J.providers);var m=c.prototype;m.__templateHelpers||XHm(W9.prototype)(m,"__templateHelpers");m=J.is;J2m||(J2m=Date.now());($3(m)+J2m)%100<_.c7("polymer_log_prop_change_observer_percent")&&XHm(z1.prototype)(c.prototype,"__propertyObserverObserver");c.prototype.behaviors=c.prototype.behaviors||[];c.prototype.behaviors.unshift(_.c22.YtHostElementBehavior);oTJ(c);hJG({is:J.is,notifyObserversOnUndefined:J.notifyObserversOnUndefined!==
!1,fastInit:J.fastInit,template:J.template,disableEnforceFastDefaultValuesCheck:!0})(c)}}};
_.E=function(J){return _.uM({is:J.is,template:J.template,disableElementRegistration:J.disableElementRegistration,cssBuildOptOut:J.cssBuildOptOut,notifyObserversOnUndefined:!1,noInjection:!0})};
x9J=function(J,c){if(m9Q){J=new J;for(var m=_.M(Object.getOwnPropertyNames(J)),b=m.next();!b.done;b=m.next())b=b.value,c[b]=J[b];for(m=c;m&&m!==Object.prototype;m=Object.getPrototypeOf(m)){b=_.M(Object.getOwnPropertyNames(m));for(var x=b.next();!x.done;x=b.next())x=x.value,J.hasOwnProperty(x)||Object.defineProperty(J,x,bi2(c,x))}}else J.apply(c)};
bi2=function(J,c){return{get:function(){var m=J[c];return m instanceof Function?m.bind(J):m},
set:function(m){J[c]=m}}};
PFe=function(J,c){for(var m=J._noAccessors,b=_.M(Object.getOwnPropertyNames(J)),x=b.next();!x.done;x=b.next())if(x=x.value,!V7o.has(x))if(m)c[x]=J[x];else{var P=Object.getOwnPropertyDescriptor(J,x);P&&(P.configurable=!0,Object.defineProperty(c,x,P))}};
M7G=function(J,c,m){return function(b){if(m){var x=m();b.model=x}if(J[c])J[c](b,b.detail)}};
fs=function(J){var c=[];if(typeof J==="string")J.length>0&&c.push.apply(c,_.L6(J.split(".")));else{J=_.M(J);for(var m=J.next();!m.done;m=J.next())m=m.value,typeof m==="string"?c.push.apply(c,_.L6(m.split("."))):c.push(m)}return c};
pWu=function(J,c){if(c[c.length-1]!=="*"&&c[c.length-1]!=="splices"){for(var m=0;m<c.length;m++){if(!J)return;J=J[c[m]]}return J}};
N1D=function(J,c){if(J.length>c.length)return!1;for(var m=0;m<J.length;m++)if(J[m]!==c[m])return!1;return!0};
INo=function(J,c,m){if(c.type==="compute"){var b=c.getter.bind(m);var x=c.args}else b=function(){return m[c.method.methodName].apply(m,_.L6(_.s$.apply(0,arguments)))},x=c.method.args;
t7o(J,c.propertyKey,b,x,c.value)};
CFr=function(J,c){if(c.readOnly){var m=Object.getOwnPropertyDescriptor(J.model,c.propertyKey);Object.defineProperty(J.model,c.propertyKey,{get:m.get,set:function(){}});
J.model[KtQ(c.propertyKey)]=m.set}};
aNr=function(J,c,m){if(m){var b=c.propertyKey,x=c.selector;c=[{type:"path",path:"reduxPropertiesRecomputeTrigger"}].concat(_.L6(c.selectorArgs.map(function(P){return{type:"path",path:P}})));
t7o(J,b,function(P){var p=_.s$.apply(1,arguments);return x.apply(null,[m.getState()].concat(_.L6(p)))},c)}};
Him=function(J,c,m){var b=_.Kl(c.propertyKey)+"-changed";kMu(J,function(x){var P={value:x.value,queueProperty:!0};x.path.split(".").length>1&&(P.path=x.path);m.dispatchEvent(new CustomEvent(b,{detail:P}))},[{type:"wildcard",
path:c.propertyKey}])};
iiQ=function(J,c,m){kMu(J,function(){m[c.method.methodName].apply(m,_.L6(_.s$.apply(0,arguments)))},c.method.args)};
KtQ=function(J){return"_set"+(J.charAt(0).toUpperCase()+J.slice(1))};
nJq=function(){var J,c=YB(function(m){J=m},!1);
return[J,c]};
Ltm=function(J){J=J.trim().replace(T1r,",").replace(wWJ,"$1");var c=J[0];c==="-"&&(c=J[1]);if(c>="0"&&c<="9")return{type:"literal",value:Number(J)};if(c==="'"||c==='"')return{type:"literal",value:J.slice(1,-1)};if(c=J.match(r2Q)){c=c[1];var m=sCe[c];if(m)return{type:m,path:J.slice(0,-(c.length+1))}}return{type:"path",path:J}};
uor=function(J){var c=J.match(D9m);if(c)return J={methodName:c[1],args:WtT},c[2].trim()&&(c=c[2].replace(zW3,"&comma;").split(","),J.args=c.map(Ltm)),J};
fNt=function(J,c,m,b){b=b===void 0?!1:b;c=_.Kl(c);var x=Hy;x&&(m=x(m,c,"attribute",J));Yr(J,m,c,b)};
Yr=function(J,c,m,b){c=Y8t(c,b===void 0?!1:b);c===void 0?J.removeAttribute(m):J.setAttribute(m,c)};
Y8t=function(J,c){switch(typeof J){case "object":case "function":if(J instanceof Date)return J.toString();if(J){if((c===void 0?0:c)&&!_.w("polymer_reflect_objects_as_boolean_killswitch"))return J?"":void 0;c=window.trustedTypes?window.trustedTypes.isHTML(J)||window.trustedTypes.isScript(J)||window.trustedTypes.isScriptURL(J):void 0;if(c)return J;try{return JSON.stringify(J)}catch(m){_.qz(Error("Ag`"+J))}}break;case "boolean":return J?"":void 0;default:return J!==null&&J!==void 0?J.toString():void 0}};
XWJ=function(J){if(J===void 0)throw Error("Bg");return J};
hWD=function(J,c,m,b){var x=ZiQ(b);if(x.length){b=m;var P="property";q8R.test(m)?P="attribute":m[m.length-1]==="$"&&(m=m.slice(0,-1),P="attribute");var p=U9o(x);p&&P==="attribute"&&(m==="class"&&J.hasAttribute("class")&&(p+=" "+J.getAttribute(m)),Yr(J,p,m));P==="attribute"&&b==="disable-upgrade$"&&J.setAttribute("disable-upgrade","");J.localName==="input"&&b==="value"&&J.setAttribute("value","");J.removeAttribute(b);P==="property"&&(m=_.Cl(m));c=XWJ(c);S8f(c,P,m,x);return!0}return m.slice(0,3)===
"on-"?(J.removeAttribute(m),(P=c).events!=null||(P.events=[]),c.events.push({name:m.slice(3),value:b}),!0):m==="id"?(c.id=b,!0):!1};
ZiQ=function(J){for(var c=[],m=0,b;(b=d9G.exec(J))!==null;){b.index>m&&c.push({type:"literal",value:J.slice(m,b.index)});var x=b[1][0];m=!!b[2];b=b[3].trim();if(x==="{")throw Error("Cg");(x=uor(b))?c.push({type:"method",negate:m,signature:x}):c.push({type:"path",negate:m,path:b});m=d9G.lastIndex}m&&m<J.length&&(J=J.substring(m))&&c.push({type:"literal",value:J});return c};
U9o=function(J){for(var c="",m=0;m<J.length;m++){var b=J[m];b.type==="literal"&&(c+=b.value)}return c};
S8f=function(J,c,m,b){J.bindings!=null||(J.bindings=[]);J.bindings.push({kind:c,target:m,parts:b})};
OiQ=function(J,c,m){var b=!1;if(J.localName==="template"){b=m;var x=c.stripWhitespace;x=$9J(J,x===void 0?!1:x);var P=J.content.ownerDocument.createDocumentFragment();x.content=P;P.appendChild(J.content);b&&(b.templateInfo=x);b=!0}else J.localName==="slot"&&(c.hasInsertionPoint=!0);if(J.firstChild&&(x=m,J.localName!=="script"&&J.localName!=="style")){P=0;for(var p=J.firstChild;p;){var t=p;if(t.localName==="template"){var I=t.getAttribute("is");if((p=I==="dom-if")||I==="dom-repeat"){t.removeAttribute("is");
I=t.ownerDocument.createElement("ps-"+I);t.parentNode.replaceChild(I,t);I.appendChild(t);var a=Array.from(t.attributes);a=_.M(a);for(var k=a.next();!k.done;k=a.next())k=k.value,p?GMG.has(k.name)&&Yr(I,k.value,k.name):EJu.has(k.name)?Yr(I,k.value,k.name):vJR.has(k.name),t.removeAttribute(k.name);p=I}else p=t}if(p.nodeType===Node.TEXT_NODE){t=void 0;I=J;for(a=p;((t=a.nextSibling)==null?void 0:t.nodeType)===Node.TEXT_NODE;)k=void 0,(k=a).textContent!=null||(k.textContent=""),a.nextSibling.textContent&&
(a.textContent+=a.nextSibling.textContent),I.removeChild(a.nextSibling);if(c.stripWhitespace&&p.textContent&&!p.textContent.trim()){J.removeChild(p);p=p.nextSibling;continue}}OiQ(p,c,{parentIndex:P,parentInfo:x});p.parentNode&&P++;p=p.nextSibling}}var H;if((H=J.hasAttributes)==null?0:H.call(J)){H=m=XWJ(m);x=!1;P=Array.from(J.attributes);P=_.M(P);for(t=P.next();!t.done;t=P.next())t=t.value,x=hWD(J,H,t.name,t.value)||x;b=x||b}J.nodeType===Node.TEXT_NODE&&(H=ZiQ(J.textContent),H.length&&(J.textContent=
U9o(H)||" ",m=XWJ(m),S8f(m,"text","textContent",H),b=!0));m&&b&&(m.infoIndex=c.nodeInfoList.push(m)-1)};
$9J=function(J,c){c={nodeInfoList:[],stripWhitespace:(c===void 0?!1:c)||J.hasAttribute("strip-whitespace")};OiQ(J.content,c);return c};
A2T=function(J){Object.assign(J,{_disposeEffects:void 0,_signalProps:void 0,_signalValues:void 0})};
oJ2=function(J,c,m){c.signalCache!=null||(c.signalCache={});var b=c.signalCache[m];if(!b){var x=m.split(".");b=!RWT(J,x[0]);if(x.length>1&&b){var P=J.getPathMutationSignal(x);b=function(){var p=qs(J.owner,function(){return J.getWithPath([x[0]])}),t,I=(t=P())==null?void 0:t.value;
return{rootWasDefined:p!==void 0,value:I}}}else b=function(){var p=J.getWithPath(x);
return{rootWasDefined:p!==void 0,value:p}};
c.signalCache[m]=b}return b()};
eWm=function(J,c,m,b,x){c=c.parts.map(function(p,t){if(p.type==="literal"){m.partWasDefined!=null||(m.partWasDefined=[]);var I;(I=m.partWasDefined)[t]||(I[t]=p.value!==void 0);return p.value}var a;if(p.type==="method"){var k,H=(k=(a=m.partWasDefined)==null?void 0:a[t])!=null?k:!1;H||(H=p.signature.args.every(function(W){return W.type==="literal"}));
var T=!1,r=!0;a=p.signature.args.map(function(W){if(W.type==="literal")return W.value;if(W.type!=="path")throw Error("Dg`"+W.type);var Y=oJ2(J,m,W.path);W=Y.value;Y=Y.rootWasDefined;T||(T=Y);r&&(r=Y);return W});
H||(H=x===1?r:T);m.partWasDefined!=null||(m.partWasDefined={});m.partWasDefined[t]=H;if(!H)return;a=(t=oJ2(J,m,p.signature.methodName).value)&&typeof t==="function"?t.apply(b,a):void 0}else k=oJ2(J,m,p.path),a=k.value,m.partWasDefined!=null||(m.partWasDefined={}),(H=m.partWasDefined)[t]||(H[t]=a!==void 0||k.rootWasDefined);p.negate&&(a=!a);return a});
if(c.length===1){var P;return((P=m.partWasDefined)==null?0:P[0])?c[0]:QCf}return c.join("")};
jCe=function(J){return typeof J==="object"&&!!J&&"notifyPath"in J&&"canNotifyPath"in J};
Fte=function(J){return typeof J==="object"&&!!J&&"notifyPath"in J};
lNQ=function(J){return"polymerController"in J};
y2D=function(J,c){c=""+fs(c)[0];if(jCe(J))return J.canNotifyPath(c);if(lNQ(J)&&jCe(J.polymerController))return J.polymerController.canNotifyPath(c);if(Fte(J)){var m;return!((m=J.properties)==null||!m[c])}if(lNQ(J)&&Fte(J.polymerController)){var b;return!((b=J.polymerController.properties)==null||!b[c])}return!1};
B1t=function(J,c,m){jCe(J)||Fte(J)?J.notifyPath(c,m):lNQ(J)&&(jCe(J.polymerController)||Fte(J.polymerController))&&J.polymerController.notifyPath(c,m)};
JAm=function(J,c,m){if(m!==QCf){J.kind==="attribute"||J.target!=="textContent"&&(J.target!=="value"||c.localName!=="input"&&c.localName!=="textarea")||(m=m===void 0?"":m);var b,x=(b=gJ3.Polymer)==null?void 0:b.sanitizeDOMValue;x&&(m=x(m,J.target,J.kind,c));if(J.kind==="attribute"){J=J.target;if(J==="class"||J==="name"||J==="slot")c=(0,_.xr)(c);Yr(c,m,J)}else if(J=J.target,m!==c[J]||typeof m==="object")c.loggingStatus&&(c.loggingStatus.isDeclarativeExternal=!0,ns(c.localName,J,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE")),
c[J]=m,c.loggingStatus&&(c.loggingStatus.isDeclarativeExternal=!1)}};
cA2=function(J,c,m,b){var x=c.parts[0];if(c.parts.length!==1||x.type!=="path"||!y2D(m,c.target))return!1;var P=_.M(x.path.split(".")),p=P.next().value,t=ej(P);if(RWT(J,p))return!1;b.signalCache!=null||(b.signalCache={});P=b.signalCache[x.path];var I;P=(I=P)==null?void 0:I().value;if((P==null?void 0:P.path)!==void 0){b=fs(P.path);var a=fs(x.path);b=[c.target].concat(_.L6(b.slice(a.length-1)));B1t(m,b,x.negate?!P.value:P.value);return!0}var k=XF(J,p);var H=k.getChangeRecordSignal(t),T=!1;P=function(){if(!T){var W=
qs(J.owner,function(){return k.getWithPath([])});
T||(T=W!==void 0)}return{value:H(),rootWasDefined:T}};
b.signalCache[x.path]=P;b.partWasDefined!=null||(b.partWasDefined={});P=P();(a=b.partWasDefined)[0]||(a[0]=P.rootWasDefined);var r=qs(J.owner,function(){return k.getWithPath(t)});
b.partWasDefined[0]&&qs(J.owner,function(){return void JAm(c,m,x.negate?!r:r)});
return!0};
mID=function(J,c,m,b,x,P){if(!cA2(J,c,m,b)){var p=eWm(J,c,b,x,P);qs(J.owner,function(){return void JAm(c,m,p)})}};
bSo=function(J,c,m,b,x,P){m=_.M(m);for(var p=m.next(),t={};!p.done;t={infoIndex:void 0},p=m.next()){p=p.value;var I=p.bindings;t.infoIndex=p.infoIndex;p=p.parentInfo;if(I){I=_.M(I);for(var a=I.next(),k={};!a.done;k={b$jscomp$253:void 0,bindingCtx$jscomp$4:void 0},a=I.next()){k.b$jscomp$253=a.value;if(t.infoIndex===void 0)throw Error("Eg");k.bindingCtx$jscomp$4={};J.effect(function(H,T){return function(){x&&!x()||mID(J,H.b$jscomp$253,c[T.infoIndex],H.bindingCtx$jscomp$4,b,P)}}(k,t))}}p&&bSo(J,c,[p],
b,x,P)}};
xIr=function(J,c){J=(c.parentInfo?xIr(J,c.parentInfo):J).firstChild;for(var m=0;J;J=J.nextSibling)if(c.parentIndex===m++)return J;throw Error("Fg");};
PEG=function(J,c,m,b){J=document.importNode(J.content,!0);J.__noInsertionPoint=!(b==null?0:b.hasInsertionPoint);for(var x=Array(c.length),P={},p=0;p<c.length;p++){var t=c[p],I=xIr(J,t);x[p]=I;t.id&&(P[t.id]=I);if(t.templateInfo){var a=I.parentElement;a&&(a.templateInfo=t.templateInfo,a.parentSignalProxy=m,a.eventListenerHost=b.eventListenerHost,a.stampingEnabled=b.enabledSignal)}a=void 0;if((a=t.events)==null?0:a.length)for(a=0;a<t.events.length;a++){var k=t.events[a];Vy2(b.eventListenerHost,I,k.name,
k.value,b.getModel)}}bSo(m,x,c,b.thisCtx,b.enabledSignal,b.methodInvocationRequirement);return{root:J,nodes:x,nodesById:P}};
pIt=function(J,c){J=J();var m;(m=MyQ.ShadyCSS)==null||m.prepareTemplate(J,c);c=$9J(J);return{template:J,nodeInfoList:c.nodeInfoList,hasInsertionPoint:c.hasInsertionPoint}};
IqJ=function(){N0o=!1;for(var J=Zh.length,c=0;c<J;c++){var m=Zh[c];if(m)try{m()}catch(b){Promise.resolve().then(function(){throw b;})}}Zh.splice(0,J);
tyt+=J};
k5r=function(J){N0o||(N0o=!0,Kat.textContent=(CEu++).toString());Zh.push(J);return aqt++};
_.S5=function(J,c,m){qE++;J=c?new HSR(qE,J,c,m):new iSq(qE,J);UB.set(qE,J);return qE};
nP2=function(J){(J=UB.get(J))&&J.cancel()};
wI3=function(J,c){J=T02.get(J);return J?(c=J.get(c))?c:null:null};
_.hO=function(J,c,m,b){var x=wI3(J,c);if(!x){x=new rAD;var P=T02.get(J);P||(P=new Map,T02.set(J,P));P.set(c,x)}J=m.bind(J);x.run(J,b,void 0)};
_.sVr=function(J,c){var m;(m=wI3(J,c))==null||m.cancel()};
LaQ=function(J){var c;(c=wI3(J,"doRender"))==null||c.flush()};
dU=function(J){var c;return(c=J.hostElement)!=null?c:J};
DI3=function(J){var c=J.indexOf(".");return c===-1?J:J.slice(0,c)};
Wam=function(J,c,m,b,x,P){P=(x=(b=P?DI3(c):c)?c:null)?J.get(x):J.__data[c];x&&P===void 0&&(P=m[c]);_.cA(J.hostElement,PgQ(b)+"-changed",{value:P,queueProperty:!0,path:x!=null?x:void 0},{bubbles:!1,composed:!1})};
znG=function(J,c){J.__isReflecting=!0;fNt(J.hostElement,c,J.__data[c]);J.__isReflecting=!1};
u92=function(J){if(J._onIronRequestResizeNotifications){var c=J._onIronRequestResizeNotifications.bind(J);J._onIronRequestResizeNotifications=function(m){_.Ac(m)!==J.hostElement&&c(m)}}J._ariaActiveAttributeChanged&&(J._ariaActiveAttributeChanged=J._ariaActiveAttributeChanged.bind(J.hostElement));
J._activeChanged&&(J._activeChanged=function(m){J.toggles?Yr(J.hostElement,m?"true":"false",J.ariaActiveAttribute):J.hostElement.removeAttribute(J.ariaActiveAttribute);J._changedButtonState()});
J._asyncClick&&(J._asyncClick=function(){_.S5(function(){J.hostElement.click()},1)});
!J.keyEventTarget||J.keyEventTarget instanceof EventTarget||(J.keyEventTarget=dU(J.keyEventTarget));J._disabledChanged&&(J._disabledChanged=J._disabledChanged.bind(J.hostElement));J._observeItems&&(J._observeItems=function(m){var b=dU(m);return _.rK(b).observeNodes(function(x){J._updateItems();J._updateSelected();_.cA(b,"iron-items-changed",x,{bubbles:!1,cancelable:!1})})});
J._updateItems&&J._updateItems===_.$r._updateItems&&(J._updateItems=function(){var m=_.rK(J.hostElement).queryDistributedElements(J.selectable||"*");m=Array.prototype.filter.call(m,J._bindFilterItem);J._setItems(m)});
J._computeKeyboardClass&&(J._computeKeyboardClass=function(m){_.mq(J.hostElement,"keyboard-focus",m)});
J.ensureRipple&&(J.ensureRipple=function(m){if(J.hasRipple&&!J.hasRipple()){if(!J._createRipple)return;J._ripple=J._createRipple();J._ripple.noink=J.noink;var b=J._rippleContainer||J.hostElement;b&&_.Bj(b).appendChild(J._ripple)}var x;if(m&&((x=J._ripple)==null?0:x.uiDownAction)){b=_.Bj(J._rippleContainer||J.hostElement);var P;x=(P=m.composedPath())==null?void 0:P[0];b.contains(x)&&J._ripple.uiDownAction(m)}});
J._updateMultiselectable&&(J._updateMultiselectable=function(m){m?J.hostElement.setAttribute("aria-multiselectable","true"):J.hostElement.removeAttribute("aria-multiselectable")})};
fqm=function(J,c,m){m=_.M(m);for(var b=m.next();!b.done;b=m.next())x9J(b.value.constructor,J);x9J(c.constructor,J)};
XIr=function(J,c){J=_.M(J);for(var m=J.next();!m.done;m=J.next())if(m=m.value,m.type==="signal"){var b=m.propertyKey;if(c.hasOwnProperty(b)&&c[b]!=null&&m.attributeType===Object){a:{b=c[b].constructor;for(var x=_.M(Yfq),P=x.next();!P.done;P=x.next())if(P=P.value,b===P){b=P;break a}b=Object}m.attributeType=b}}};
ZSD=function(){};
qfo=function(J){var c;return(c=J.hostElement)!=null?c:J};
UIr=function(){throw Error("Jg");};
SfJ=function(J,c){J.constructor.prototype.useSignals=!0;var m=new J.constructor;fqm(m,J,c.behaviors);XIr(c.reactiveSchemas,m);m={};for(var b=_.M(c.reactiveSchemas),x=b.next();!x.done;x=b.next())x=x.value,x.type==="signal"&&(m[x.propertyKey]=x.attributeType);var P={copyPropertiesToProto:UIr,didRegister:!1,typesForSignals:m},p=["disable-upgrade"].concat(_.L6(c.observedAttributes)),t=function(I){G1.call(this,J,c,P,I)};
_.D(t,G1);_.eE.Object.defineProperties(t,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return p}}});
P.copyPropertiesToProto=function(){for(var I=0;I<c.behaviors.length;I++)PFe(c.behaviors[I],t.prototype);PFe(J,t.prototype)};
c.legacyOptimizations||P.copyPropertiesToProto();t.prototype.is=J.is;return t};
hn2=function(J,c){if(Object.getPrototypeOf(c.prototype).constructor!==_.h)throw Error("Kg");c.prototype.is=J.is;return SfJ(c.prototype,J)};
dIQ=function(J){return J.type==="compute"||J.type==="computeWithMethod"};
$Iu=function(J){for(var c=J.reactiveSchemas.filter(dIQ),m=new Map,b=new Map,x=new Map,P=_.M(c),p=P.next();!p.done;p=P.next())p=p.value,m.set(p.propertyKey,p),b.set(p.propertyKey,[]),x.set(p.propertyKey,0);P=0;c=_.M(c);for(p=c.next();!p.done;p=c.next()){p=p.value;for(var t=_.M(p.type==="computeWithMethod"?p.method.args:p.args),I=t.next();!I.done;I=t.next())I=I.value,I.type!=="literal"&&(I=I.path.split(".")[0],b.has(I)&&(b.get(I).push(p.propertyKey),x.set(p.propertyKey,x.get(p.propertyKey)+1),P++))}p=
[].concat(_.L6(b.keys())).filter(function(a){return x.get(a)===0});
for(c=[];p.length;)for(t=p.shift(),c.push(m.get(t)),t=_.M(b.get(t)),I=t.next();!I.done;I=t.next())I=I.value,x.set(I,x.get(I)-1),P--,x.get(I)===0&&p.push(I);m=J.reactiveSchemas.filter(function(a){return!dIQ(a)});
J.reactiveSchemas=[].concat(_.L6(m),_.L6(c))};
G5e=function(J,c){if(c.properties)for(var m=_.M(Object.entries(c.properties)),b=m.next();!b.done;b=m.next()){var x=_.M(b.value);b=x.next().value;x=x.next().value;J.properties[b]=typeof x==="function"?{type:x}:x}c.observers&&J.observers.push.apply(J.observers,_.L6(c.observers));c.disabledPolySiReactions&&J.disabledPolySiReactions.push.apply(J.disabledPolySiReactions,_.L6(c.disabledPolySiReactions))};
EPR=function(J,c){for(var m=c.length-1;m>=0;m--){var b=c[m];Array.isArray(b)?EPR(J,b):J.indexOf(b)<0&&J.unshift(b)}};
vPJ=function(J,c){J.reactiveSchemas=J.reactiveSchemas.filter(function(m){return m.type==="observe"&&c.includes(m.method.methodName)||dIQ(m)&&c.includes(m.propertyKey)?!1:!0})};
AAo=function(J,c){var m=c.prototype,b,x,P={is:J.is,reactiveSchemas:[],observedAttributes:[],behaviors:[BWJ.InjectBehavior,W9.prototype],disableElementRegistration:J.disableElementRegistration,provide:(b=J.providers)!=null?b:[],reactivityMode:J.reactivityMode,signalProperties:(x=m.signalProperties)!=null?x:[]};"template"in c?P.templateGetter=function(){return c.template}:J.getTemplate&&(P.templateGetter=J.getTemplate);
m.behaviors&&EPR(P.behaviors,m.behaviors);OSm(P,c);return P};
OSm=function(J,c){for(var m=c.prototype,b={properties:{},observers:[],disabledPolySiReactions:[]},x=_.M(J.behaviors),P=x.next();!P.done;P=x.next())G5e(b,P.value);G5e(b,m);if(J.signalProperties)for(m=_.M(J.signalProperties),x=m.next();!x.done;x=m.next())delete b.properties[x.value];m=_.M(Object.entries(b.properties));for(x=m.next();!x.done;x=m.next()){P=_.M(x.value);x=P.next().value;P=P.next().value;var p=void 0;if((p=J.signalProperties)==null||!p.includes(x)){p=void 0;var t=J,I=P.type;if(!I)if(window.Reflect!==
void 0&&window.Reflect.getMetadata!==void 0)a:{I=Reflect.getMetadata("design:type",c,x);for(var a=_.M(Rnq),k=a.next();!k.done;k=a.next())if(k=k.value,I===k){I=k;break a}I=Object}else I=String;P.computed||P.selector||(t.reactiveSchemas.push({type:"signal",propertyKey:x,value:P.value,attributeType:I,readOnly:P.readOnly}),t.observedAttributes.push(_.Kl(x)));P.reflectToAttribute&&t.reactiveSchemas.push({type:"reflect",propertyKey:x});if(P.computed){I=uor(P.computed);if(!I)throw Error("Lg");t.reactiveSchemas.push({type:"computeWithMethod",
propertyKey:x,method:I,value:P.value})}P.observer&&t.reactiveSchemas.push({type:"observe",method:{methodName:P.observer,args:[{type:"path",path:x}]}});P.notify&&t.reactiveSchemas.push({type:"notify",propertyKey:x});P.selector&&t.reactiveSchemas.push({type:"redux",propertyKey:x,selector:P.selector,selectorArgs:(p=P.selectorArgs)!=null?p:[]})}}oPJ&&$Iu(J);c=_.M(b.observers);for(x=c.next();!x.done;x=c.next())m=J,x=x.value,(P=uor(x))?m.reactiveSchemas.push({type:"observe",method:P}):console.log('Warning: unable to parse observe declaration: "'+
x+'"');vPJ(J,b.disabledPolySiReactions)};
QVe=function(J,c){for(var m=0;m<c.length;m++){var b=c[m],x=void 0;(x=b).showHideApi!=null||(x.showHideApi={});x=void 0;!!J!==!((x=b.showHideApi)==null||!x.hideTemplateChildren)&&(b.nodeType===Node.TEXT_NODE?J?(b.showHideApi.polymerTextContent=b.textContent,b.textContent=""):(x=void 0,b.textContent=(x=b.showHideApi.polymerTextContent)!=null?x:null):b instanceof Element&&b.localName==="slot"?J?(b.showHideApi.polymerReplaced=document.createComment("hidden-slot"),(0,_.xr)((0,_.xr)(b).parentNode).replaceChild(b.showHideApi.polymerReplaced,
b)):(x=b.showHideApi.polymerReplaced)&&(0,_.xr)((0,_.xr)(x).parentNode).replaceChild(b,x):b instanceof HTMLElement&&b.style&&(J?(b.showHideApi.polymerDisplay=b.style.display,b.style.display="none"):b.style.display=b.showHideApi.polymerDisplay));b.showHideApi.hideTemplateChildren=J;b.showHideChildren&&b.showHideChildren(J)}};
jV3=function(){if(!enq){var J=document.createElement("style");J.innerText="ps-dom-if,ps-dom-repeat{display:none;}";document.head.appendChild(J);enq=!0}};
EB=function(){return _.w("disable_hidden_dom_if_using_stamper")||_.w("creator_disable_hidden_dom_if_using_stamper")};
Fau=function(J,c){var m=_.v9().getState();return c?J.apply(null,[m].concat(_.L6(c))):J(m)};
B0J=function(){if(lqG)return lqG;var J=_.M(_.K2(0,void 0,"Nl6eIe")),c=J.next().value;J.next();var m=J.next().value;_.v9().subscribe(function(){yA3(m)});
return lqG=c};
yA3=function(J){_.w("delay_redux_signal_update_killswitch")?J(function(c){return c+1}):gPQ||(gPQ=!0,Promise.resolve().then(function(){J(function(c){return c+1});
gPQ=!1}))};
_.v9=function(){return JJ3.getAppStore()};
OB=function(J,c){return JJ3.getSelectFn()(J,c)};
_.AO=function(J){JJ3.getDispatchFn()(J)};
cJr=function(J,c){var m={},b;for(b in J)m[b]=c(J[b],b);return m};
_.Ru=function(J,c){return function(){var m;return(m=_.XD(J))!=null?m:c}};
_.ou=function(J,c){var m=Object.assign({},J),b;for(b in c)c.hasOwnProperty(b)&&(m[b]=_.Ru(J[b],c[b]));return m};
moR=function(J,c,m){J instanceof Element&&(m.debugName||(m.debugName="<"+J.tagName.toLowerCase()+(J.tagName.includes("-")?">":"."+J.className+">")),_.w("ytwiz_enable_debug_component_props")&&(J.debugProps||(J.debugProps=cJr(c,function(b){return function(){return b()}}))))};
_.Q1=function(J,c){var m=function(b){var x=bE3={};var P;if(((P=m)==null?0:P.idomCompat)&&b.renderedFromIdom){var p;P=typeof m.idomCompat==="object"?(p=m)==null?void 0:p.idomCompat.callbacks:{};b=_.M(xoo(b,P,m.debugName));P=b.next().value;b.next();b=b.next().value;p=VuD(J,P);x.privateValue=p;bE3=void 0;moR(p,P,m);x=BoG(p);x=Array.isArray(x)?x[0]:x;x[M3]||(x[M3]={});x[M3].updateSignalsFromIdomProps=b;x=p}else p=cJr(b,PyR),b=VuD(J,p),x.privateValue=b,bE3=void 0,moR(b,p,m),x=b;return x};
m.debugName=c===void 0?"":c;return m};
VuD=function(J,c){J=J(c);return K3(J)};
MuR=function(J,c){J[c]||(J=new _.w3("IDOM interop setter undefined. Key:",c),_.Xc(J))};
PyR=function(J,c){return c==="children"||c==="ref"||typeof J==="function"||J===void 0?J:function(){return _.XD(J)}};
xoo=function(J,c,m){var b={},x={},P={},p={},t;for(t in J){p={key$jscomp$893:p.key$jscomp$893};p.key$jscomp$893=t;var I=J[p.key$jscomp$893];if(p.key$jscomp$893==="children"||p.key$jscomp$893==="ref")b[p.key$jscomp$893]=I;else if(typeof I==="function")p.key$jscomp$893 in c||I.length>0?(P[p.key$jscomp$893]=I,b[p.key$jscomp$893]=function(k){return function(){return P[k.key$jscomp$893].apply(P,_.L6(_.s$.apply(0,arguments)))}}(p)):b[p.key$jscomp$893]=I;
else if(!(J[p.key$jscomp$893]===void 0&&p.key$jscomp$893 in c)){var a=_.M(_.K2(J[p.key$jscomp$893],{debugName:"__cwis:"+m+":"+p.key$jscomp$893},"W25zpe"));I=a.next().value;a=a.next().value;b[p.key$jscomp$893]=I;x[p.key$jscomp$893]=a}}return[b,x,function(k){var H={},T;for(T in k)H={key$jscomp$894:H.key$jscomp$894,val$jscomp$117:void 0},H.key$jscomp$894=T,H.val$jscomp$117=k[H.key$jscomp$894],H.key$jscomp$894!=="children"&&H.key$jscomp$894!=="ref"&&(typeof H.val$jscomp$117==="function"?H.key$jscomp$894 in
c?P[H.key$jscomp$894]=H.val$jscomp$117:H.val$jscomp$117.length>0&&(P[H.key$jscomp$894]=H.val$jscomp$117,_.qz(new _.w3("Callback detected that was not set in the idomCompat callbacks map. Key:",H.key$jscomp$894))):H.key$jscomp$894 in c&&H.val$jscomp$117===void 0||(MuR(x,H.key$jscomp$894),TL(function(r){return function(){x[r.key$jscomp$894](r.val$jscomp$117)}}(H))))}]};
tu3=function(J,c,m){var b=nge(J.prototype,pUJ,J.prototype.behaviors);b.prototype.is=c;b.prototype.localName=c;m&&NSu(b,m);return function(x){x&&(b.prototype.hostElement=x);var P=new b;P.root=P;P.hostElement=x;return P}};
NSu=function(J,c){var m;Object.defineProperty(J.prototype,"_template",{get:function(){m===void 0&&(m=c());return m},
set:function(b){m=b},
configurable:!0,enumerable:!0})};
kZJ=function(J,c,m,b){function x(){if(!r){for(var W=new Set,Y=_.M(k),Z=Y.next();!Z.done;Z=Y.next()){Z=Z.value;for(var d=_.M(Object.getOwnPropertyNames(Z)),G=d.next();!G.done;G=d.next()){G=G.value;var e=void 0,A=(e=Object.getOwnPropertyDescriptor(Z,G))==null?void 0:e.value;A&&A instanceof Function&&!e5(G)&&(!t[G]||_.w("polymer_forward_method_killswitch"))&&W.add(G)}}Y=_.M(Object.entries(Object.getOwnPropertyDescriptors(J.prototype)));for(Z=Y.next();!Z.done;Z=Y.next())d=_.M(Z.value),Z=d.next().value,
d=d.next().value,d.value instanceof Function&&!e5(Z)&&W.add(Z);r=W}return r}
I02(J,c,b==null?void 0:b.providers);TxG(J.prototype,J,!0);var P=tu3(J,c,m),p,t=(p=J.prototype.properties)!=null?p:{},I,a,k=(a=(I=J.prototype.behaviors)==null?void 0:I.flat(Infinity))!=null?a:[];m=_.M(k);for(p=m.next();!p.done;p=m.next())t=Object.assign({},p.value.properties,t);var H=[].concat(_.L6(Kwm),_.L6(Object.keys(t).map(function(W){return _.Kl(W)}))),T=!1,r;
return{ctor:function(W,Y){var Z=P(W),d,G;W=[].concat(_.L6((d=b==null?void 0:b.allowedProps)!=null?d:[]),_.L6((G=b==null?void 0:b.allowedPropsFromBehaviors)!=null?G:[]));Z.allowedProps=W.length>0?W:void 0;d={};G=_.M(H);for(W=G.next();!W.done;W=G.next())W=W.value,d[W]=_.Cl(W);Z.__dataAttributes=d;var e=Z.ready.bind(Z);Z.ready=function(){Y.beforeReady();e();if(H9(c)&&!T){var A=Z.__templateInfo;if(A==null?0:A.hostProps){A=_.M(Object.keys(A.hostProps));for(var l=A.next();!l.done;l=A.next())ns(c,l.value,
"PROPERTY_ACCESS_GET_INTERNAL")}T=!0}};
Z._overrideLegacyUndefined=!0;return Z},
props:t,observedAttributes:H,getInitialMethods:x,getPropsToForwardBeforeRegister:function(){for(var W=[],Y=new Set,Z=_.M(Object.keys(t)),d=Z.next();!d.done;d=Z.next())d=d.value,W.push([d,t[d].readOnly]),Y.add(d);Z=x();d=_.M(Object.keys(Object.getOwnPropertyDescriptors(J.prototype)));for(var G=d.next();!G.done;G=d.next())G=G.value,!Cyr(G)||Z.has(G)||Y.has(G)||(W.push([G,!1]),Y.add(G));Y=_.M(a0m);for(Z=Y.next();!Z.done;Z=Y.next())W.push([Z.value,!0]);return W},
getPropsToForwardBeforeReady:function(W){for(var Y=[],Z=_.M(Object.entries(W)),d=Z.next();!d.done;d=Z.next()){var G=_.M(d.value);d=G.next().value;G=G.next().value;if(Cyr(d)&&!(G instanceof Function)&&(Y.push([d,!1]),H9(c))){var e=G=void 0;(e=(G=W)._createPropertyAccessor)==null||e.call(G,d)}}return Y},
shouldForwardProp:Cyr,shouldLog:H9}};
I02=function(J,c,m){gTR(J,m);J.prototype.behaviors.unshift(HEJ);if(ETJ()){if(H9(c)){var b;(b=J.prototype).behaviors!=null||(b.behaviors=[]);J.prototype.behaviors.unshift(RJR())}oTJ(J)}_.f(W9.prototype)(J.prototype,"__templateHelpers")};
e5=function(J){return iER.has(J)||J.startsWith("__compute__")};
Cyr=function(J){return!e5(J)&&!J.startsWith("_")&&!J.endsWith("_")};
sWD=function(J,c){function m(){var T=I();T=_.M(T);for(var r=T.next();!r.done;r=T.next()){var W=_.M(r.value);r=W.next().value;W=W.next().value;nGo(H.prototype,r,W)}b=!0}
var b=!1,x=J.ctor,P=J.getInitialMethods,p=J.observedAttributes,t=J.getPropsToForwardBeforeReady,I=J.getPropsToForwardBeforeRegister,a=J.shouldForwardProp,k=J.shouldLog,H=function(){var T=HTMLElement.call(this)||this;T.didForwardDynamicProps=!1;T.loggingStatus={};b||m();T.inst=x(T,{beforeReady:function(){T.didForwardDynamicProps||(T.forwardDynamicProps(),T.didForwardDynamicProps=!0)}});
T.controllerProxy=OuT(T.inst,c);T.forwardMethods();return T};
_.D(H,HTMLElement);H.prototype.forwardMethods=function(){for(var T=this,r=_.M(this.inst.getExtraMethodsToForward()),W=r.next(),Y={};!W.done;Y={method$jscomp$60:void 0},W=r.next()){var Z=_.M(W.value);W=Z.next().value;Z=Z.next().value;Y.method$jscomp$60=Z;this[W]=function(d){return function(){return d.method$jscomp$60.call.apply(d.method$jscomp$60,[T.inst].concat(_.L6(_.s$.apply(0,arguments))))}}(Y)}r=_.M(P());
for(Y=r.next();!Y.done;Y=r.next())Y=Y.value,a(Y)&&TSm(this,Y),k(c)&&!e5(Y)&&wUu(this.inst,Y)};
H.prototype.forwardDynamicProps=function(){var T=t(this.inst);T=_.M(T);for(var r=T.next();!r.done;r=T.next()){var W=_.M(r.value);r=W.next().value;W=W.next().value;nGo(this,r,W);k(c)&&!e5(r)&&rJD(this.inst,r)}};
H.prototype.connectedCallback=function(){this.inst.connectedCallback();this.inst.isConnected=!0};
H.prototype.disconnectedCallback=function(){this.inst.disconnectedCallback();this.inst.isConnected=!1};
H.prototype.attributeChangedCallback=function(T,r,W){this.inst.attributeChangedCallbackWrapper(T,r,W)};
_.eE.Object.defineProperties(H.prototype,{is:{configurable:!0,enumerable:!0,get:function(){return c}},
polymerController:{configurable:!0,enumerable:!0,get:function(){return this.controllerProxy}}});
_.eE.Object.defineProperties(H,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return p}}});
customElements.define(c,H)};
nGo=function(J,c,m){J.hasOwnProperty(c)||Object.defineProperty(J,c,{get:function(){var b,x=((b=J.is)!=null?b:J.tagName).toLowerCase();if(this.polymerController)return this.loggingStatus.isDeclarativeExternal||ns(x,c,"PROPERTY_ACCESS_GET_EXTERNAL"),this.loggingStatus.isExternalGet=!0,this.loggingStatus.bypassProxyController=!0,b=this.polymerController[c],this.loggingStatus.isExternalGet=!1,this.loggingStatus.bypassProxyController=!1,b},
set:function(b){if(!m){var x,P=((x=J.is)!=null?x:J.tagName).toLowerCase();this.polymerController&&(this.loggingStatus.isDeclarativeExternal||ns(P,c,"PROPERTY_ACCESS_SET_EXTERNAL_IMPERATIVE"),this.loggingStatus.currentExternalSet=c,this.loggingStatus.bypassProxyController=!0,this.polymerController[c]!==b&&(x={},this.polymerController.setProperties((x[c]=b,x)),this.loggingStatus.currentExternalSet=void 0,this.loggingStatus.bypassProxyController=!1))}}})};
TSm=function(J,c,m){var b=J.polymerController;J[c]=function(){var x=_.s$.apply(0,arguments);J.loggingStatus.currentExternalCall=c;J.loggingStatus.bypassProxyController=!0;var P,p=((P=J.is)!=null?P:J.tagName).toLowerCase();ns(p,c,"PROPERTY_ACCESS_CALL_EXTERNAL");var t;P=(t=m!=null?m:b[c])==null?void 0:t.call.apply(t,[b].concat(_.L6(x)));J.loggingStatus.currentExternalCall=void 0;J.loggingStatus.bypassProxyController=!1;return P}};
wUu=function(J,c){var m=J.hostElement,b=J[c];J[c]=function(){var x=_.s$.apply(0,arguments);if(m.loggingStatus.currentExternalCall!==c){var P,p=((P=m.is)!=null?P:m.tagName).toLowerCase();ns(p,c,"PROPERTY_ACCESS_CALL_INTERNAL")}return b==null?void 0:b.apply(J,x)}};
rJD=function(J,c){var m=Object.getOwnPropertyDescriptor(J,c);m&&!m.get&&Object.defineProperty(J,c,{get:function(){Atu(J.hostElement,c);return m.value},
set:function(b){T1(J.hostElement,c);m.value=b}})};
Lwr=function(J){return _.w("poly_si_dom_repeat_detached_fix_killswitch")||J.tagName!=="PS-DOM-REPEAT"?J.tagName==="DOM-REPEAT":!0};
Ww3=function(J,c){var m=Dot(J);J instanceof Element&&m.unshift(J);J=_.M(m.filter(Lwr));for(var b=J.next();!b.done;b=J.next()){var x=void 0;b=_.M((x=b.value.__instances)!=null?x:[]);for(x=b.next();!x.done;x=b.next())if(x=x.value,x.root){x=Array.from(x.root.children);x=_.M(x);for(var P=x.next();!P.done;P=x.next())m.push.apply(m,_.L6(Ww3(P.value,c)))}}return m.filter(function(p){return p.usePatchedLifecycles&&p.lifecycleIsConnected===c})};
Dot=function(J){var c=null;J instanceof Element?c=Element.prototype.querySelectorAll:J instanceof DocumentFragment&&(c=DocumentFragment.prototype.querySelectorAll);return c?Array.from(c.call(J,"*")):[]};
j5=function(J){ID(function(){for(var c=_.M(Ww3(J,!1)),m=c.next();!m.done;m=c.next()){m=m.value;m.lifecycleIsConnected=!0;try{var b=void 0,x=void 0,P=void 0,p=void 0;(b=(p=m.polymerController)!=null?p:m)==null||(P=(x=b).connectedCallback)==null||P.call(x)}catch(t){_.Xc(t)}}})};
FF=function(J){ID(function(){for(var c=_.M(Ww3(J,!0)),m=c.next();!m.done;m=c.next()){m=m.value;m.lifecycleIsConnected=!1;try{var b=void 0,x=void 0,P=void 0,p=void 0;(b=(p=m.polymerController)!=null?p:m)==null||(P=(x=b).disconnectedCallback)==null||P.call(x)}catch(t){_.Xc(t)}}})};
qMu=function(){if(!zIf){zIf=!0;var J=[Node];lM&&J.push(lM.Wrapper);var c=Node.prototype.insertBefore,m=Node.prototype.removeChild;J=_.M(J);for(var b=J.next(),x={};!b.done;x={nativeInsertBefore:void 0,nativeAppendChild:void 0,nativeRemoveChild:void 0,nativeReplaceChild:void 0},b=J.next())b=b.value,x.nativeInsertBefore=b.prototype.insertBefore,b.prototype.insertBefore=function(p){return function(t,I){if(t instanceof DocumentFragment){var a=Array.from(t.children);t=p.nativeInsertBefore.call(this,t,I);
if(this.isConnected&&p.nativeInsertBefore===c)for(I=_.M(a),a=I.next();!a.done;a=I.next())j5(a.value);return t}a=t instanceof Element&&t.isConnected;I=p.nativeInsertBefore.call(this,t,I);a&&FF(t);this.isConnected&&j5(t);return I}}(x),x.nativeAppendChild=b.prototype.appendChild,b.prototype.appendChild=function(p){return function(t){if(t instanceof DocumentFragment){var I=Array.from(t.children);
t=p.nativeAppendChild.call(this,t);if(this.isConnected){I=_.M(I);for(var a=I.next();!a.done;a=I.next())j5(a.value)}return t}I=t instanceof Element&&t.isConnected;a=p.nativeAppendChild.call(this,t);I&&FF(t);this.isConnected&&j5(t);return a}}(x),x.nativeRemoveChild=b.prototype.removeChild,b.prototype.removeChild=function(p){return function(t){var I=t instanceof Element&&t.isConnected,a=p.nativeRemoveChild.call(this,t);
I&&m===p.nativeRemoveChild&&FF(t);return a}}(x),x.nativeReplaceChild=b.prototype.replaceChild,b.prototype.replaceChild=function(p){return function(t,I){if(t instanceof DocumentFragment){var a=Array.from(t.children);
t=p.nativeReplaceChild.call(this,t,I);if(this.isConnected)for(FF(I),I=_.M(a),a=I.next();!a.done;a=I.next())j5(a.value);return t}a=t instanceof Element&&t.isConnected;var k=this.isConnected,H=p.nativeReplaceChild.call(this,t,I);k&&FF(I);a&&FF(t);k&&j5(t);return H}}(x);
J=[Element];lM&&J.push(lM.Wrapper);J=_.M(J);b=J.next();for(x={};!b.done;x={nativeReplaceWith:void 0,nativeRemove:void 0,nativeInsertAdjacentElement:void 0,nativeSetAttribute:void 0,nativeRemoveAttribute:void 0,nativeToggleAttribute:void 0},b=J.next())b=b.value,b.prototype.before=umG(b.prototype.before),b.prototype.after=umG(b.prototype.after),x.nativeReplaceWith=b.prototype.replaceWith,b.prototype.replaceWith=function(p){return function(){var t=_.s$.apply(0,arguments),I=_.M(f0u(t)),a=I.next().value,
k=I.next().value;I=this.isConnected;p.nativeReplaceWith.apply(this,t);t=_.M(k);for(k=t.next();!k.done;k=t.next())FF(k.value);if(I)for(FF(this),a=_.M(a),I=a.next();!I.done;I=a.next())I=I.value,I instanceof Element&&j5(I)}}(x),x.nativeRemove=b.prototype.remove,b.prototype.remove=function(p){return function(){var t=this.isConnected;
p.nativeRemove.call(this);t&&FF(this)}}(x),x.nativeInsertAdjacentElement=b.prototype.insertAdjacentElement,b.prototype.insertAdjacentElement=function(p){return function(t,I){var a=I.isConnected;
t=p.nativeInsertAdjacentElement.call(this,t,I);a&&FF(I);t.isConnected&&j5(t);return t}}(x),x.nativeSetAttribute=b.prototype.setAttribute,b.prototype.setAttribute=function(p){return function(t,I){var a=YMQ(this);
if(!a.usePatchedLifecycles)return p.nativeSetAttribute.call(this,t,I);var k=this.getAttribute(t);p.nativeSetAttribute.call(this,t,I);I=this.getAttribute(t);XUo(a,t,k,I)}}(x),x.nativeRemoveAttribute=b.prototype.removeAttribute,b.prototype.removeAttribute=function(p){return function(t){var I=YMQ(this);
if(!I.usePatchedLifecycles)return p.nativeRemoveAttribute.call(this,t);var a=this.getAttribute(t);p.nativeRemoveAttribute.call(this,t);a!==null&&XUo(I,t,a,null)}}(x),x.nativeToggleAttribute=b.prototype.toggleAttribute,b.prototype.toggleAttribute=function(p){return function(t,I){var a=YMQ(this);
if(!this.usePatchedLifecycles)return p.nativeToggleAttribute.call(this,t,I);var k=this.getAttribute(t),H=k!==null;I=p.nativeToggleAttribute.call(this,t,I);I!==H&&XUo(a,t,k,I?"":null);return I}}(x);
J=[Document,DocumentFragment,Element,ShadowRoot];lM&&J.push(lM.Wrapper);J=_.M(J);for(x=J.next();!x.done;x=J.next())x=x.value,x.prototype.prepend=umG(x.prototype.prepend),x.prototype.append=umG(x.prototype.append);(lM==null?void 0:lM.noPatch)===!0&&ZE3();document.readyState==="complete"?j5(document.body):document.addEventListener("readystatechange",function(){document.readyState==="complete"&&j5(document.body)});
var P=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerText");P&&P.get&&P.set&&Object.defineProperty(HTMLElement.prototype,"innerText",{enumerable:P.enumerable,configurable:!0,get:P.get,set:function(p){p||FF(this);P.set.call(this,p);return p}})}};
umG=function(J){return function(){var c=_.s$.apply(0,arguments),m=_.M(f0u(c)),b=m.next().value;m=m.next().value;J.apply(this,c);c=_.M(m);for(m=c.next();!m.done;m=c.next())FF(m.value);if(this.isConnected)for(b=_.M(b),c=b.next();!c.done;c=b.next())c=c.value,c instanceof Element&&j5(c)}};
ZE3=function(){for(var J=_.M(Uof),c=J.next();!c.done;c=J.next()){c=c.value.prototype;for(var m=_.M(SMo),b=m.next();!b.done;b=m.next()){b=b.value;var x=Object.getOwnPropertyDescriptor(c,b);x&&Object.defineProperty(c,"__shady_native_"+b,x)}}};
XUo=function(J,c,m,b){var x,P;if((x=J.polymerController)==null?0:(P=x.observedAttributes)==null?0:P.includes(c))if(J=J.polymerController,J.attributeChangedCallbackWrapper)J.attributeChangedCallbackWrapper.call(J,c,m,b);else{var p;(p=J.attributeChangedCallback)==null||p.call(J,c,m,b)}};
f0u=function(J){var c=[],m=[];J=_.M(J);for(var b=J.next();!b.done;b=J.next())b=b.value,b instanceof Element&&b.isConnected&&m.push(b),b instanceof DocumentFragment?c.push.apply(c,_.L6(Array.from(b.children))):c.push(b);return[c,m]};
YMQ=function(J){return!(J instanceof Element)&&J.node instanceof Element?J.node:J};
hIQ=function(J,c){var m=c?["children"].concat(_.L6(c)):["children"];c=[];m=_.M(m);for(var b=m.next();!b.done;b=m.next()){var x=b.value;if(J.hasOwnProperty(x)){b=J[x];b=typeof b==="function"?b():b;b=K3(Array.isArray(b)?b:[b]).flat();if(x!=="children"){x=PgQ(x);for(var P=_.M(b),p=P.next();!p.done;p=P.next())p=p.value,p instanceof Element&&p.setAttribute("slot",x)}c.push(b)}}c.length===0?J=[]:(J=K3(_.C("div",null,c)),J=Array.from(J.childNodes));return J};
$oG=function(J,c,m){var b={};_.Z7(function(){var x={},P;for(P in c)if(c.hasOwnProperty(P)){var p=void 0,t=void 0;if(!(((p=m.slotProps)==null?0:p.includes(P))||P==="children"||((t=m.callbackProps)==null?0:t.includes(P))||P==="ref")&&(p=_.XD(c[P]),b[P]!==p)){b[P]=p;t=void 0;var I=(t=J.hostElement)!=null?t:J;doD.has(P)&&(I[P]=p);x[P]=p}}TL(function(){if(J.setProperties)J.setProperties(x);else for(var a=_.M(Object.entries(x)),k=a.next();!k.done;k=a.next()){var H=_.M(k.value);k=H.next().value;H=H.next().value;
J[k]=H}})})};
EGR=function(J,c,m,b){var x=hIQ(m,b.slotProps),P=(0,_.xr)(J);x=_.M(x);for(var p=x.next();!p.done;p=x.next())P.appendChild(p.value);$oG(c,m,b);b=_.M(b.callbackProps||[]);x=b.next();for(P={};!x.done;P={kebabEventName:void 0,eventListener:void 0},x=b.next())p=x=x.value,String(x).substring(0,2)==="on"&&m[p]?(P.kebabEventName=PgQ(String(x).substring(2)),P.eventListener=m[p],J.addEventListener(P.kebabEventName,P.eventListener),_.f2(function(k){return function(){J.removeEventListener(k.kebabEventName,k.eventListener)}}(P))):
c[p]=m[p];
if(m.ref){m=_.M(GZQ(m.ref));var t=m.next().value,I=m.next().value,a=c.attached.bind(c);c.attached=function(){t(J);a()};
_.f2(function(){I()})}};
GZQ=function(J){if(typeof J==="function"){var c;return[function(m){c=J(m)},
function(){var m;(m=c)==null||m()}]}if(!J.onRender||!J.onUnmount)throw Error("Pg");
return[J.onRender,J.onUnmount]};
RIu=function(J,c,m,b,x){b=b===void 0?{}:b;var P=vG2,p=!1;P?(p=!0,vG2=void 0):(OET=c,P=document.createElement(c),OET=void 0);var t=P;t.usePatchedLifecycles=!0;t.lifecycleIsConnected=!1;P.loggingStatus={};var I=AJq(J,c,P,b,x);_.f2(function(){t.lifecycleIsConnected&&(t.lifecycleIsConnected=!1,I.disconnectedCallback())});
p||EGR(P,I,m,b);return P};
AJq=function(J,c,m,b,x){x=x===void 0?kZJ:x;oGm[c]!=null||(oGm[c]=x(J,c,b==null?void 0:b.getTemplate,b));var P=oGm[c],p=P.ctor;x=P.getInitialMethods;var t=P.getPropsToForwardBeforeReady;J=P.getPropsToForwardBeforeRegister;b=P.shouldForwardProp;var I=P.observedAttributes,a=P.shouldLog,k=p(m,{beforeReady:function(){var H=k;H._takeAttributes?H._takeAttributes():H.setPropertiesFromInitialAttributeValues&&H.setPropertiesFromInitialAttributeValues();H=_.M(t(m.polymerController));for(var T=H.next();!T.done;T=
H.next()){var r=_.M(T.value);T=r.next().value;r=r.next().value;nGo(m,T,r);a(c)&&!e5(T)&&rJD(m.polymerController,T)}m.polymerController=OuT(k,c)}});
m.polymerController=k;m.polymerController.observedAttributes=I;P=_.M(k.getExtraMethodsToForward());for(p=P.next();!p.done;p=P.next())I=_.M(p.value),p=I.next().value,I=I.next().value,TSm(m,p,I);x=_.M(x());for(P=x.next();!P.done;P=x.next())P=P.value,b(P)&&TSm(m,P),a(c)&&!e5(P)&&wUu(k,P);J=_.M(J());for(b=J.next();!b.done;b=J.next())x=_.M(b.value),b=x.next().value,x=x.next().value,nGo(m,b,x);return k};
eIG=function(J,c){return y1===c?(J.isInert=!0,y1="",!0):QWu===c?(J.isInert=!0,QWu="",!0):!1};
jWo=function(J){var c=B9;B9=J;return c};
l0e=function(J){if(gU.has(J))QWu=J;else if(Jd.has(J)&&B9&&Fw2(B9)===J){var c;(c=B9)._numRenders!=null||(c._numRenders=0);B9._numRenders++;if(B9._numRenders>1)throw Error("Qg");return B9}};
yJo=function(J){gU.has(Fw2(J))?QWu=Fw2(J):Jd.has(Fw2(J))&&B9!==J&&(J._isInert=!0)};
Fw2=function(J){var c;return(c=J==null?void 0:J.tagName.toLowerCase())!=null?c:""};
BS3=function(J,c){if(J.componentType===L2)throw Error("Rg");Jd.add(c);var m=function(){var b=HTMLElement.call(this)||this;b.is=c;if(OET===c)return b.isInert=!0,b;b.createElement();return b};
_.D(m,HTMLElement);m.prototype.createElement=function(){if(!this.isInert){vG2=this;var b=_.M(_.rPe(function(){return _.C(J,null)})).next().value;
vG2=void 0;A2T(this);return b}};
customElements.define(c,m)};
JXo=function(J,c,m,b,x){J.prototype.is=c;(b==null?0:b.useSink)?gGT(J,c,m,b,x):(m=kZJ(J,c,m,b),sWD(m,c));return J};
gGT=function(J,c,m,b,x){qMu();var P=_.Q1(function(p){return RIu(J,c,p,Object.assign({},b,{getTemplate:m}),x)},"a");
BS3(P,c);return P};
mpJ=function(J){return!cXR.has(J)};
VZq=function(J,c,m,b){function x(){if(!H){for(var T=new Set(b5G),r=_.M(P.behaviors),W=r.next();!W.done;W=r.next()){W=W.value;for(var Y=_.M(Object.getOwnPropertyNames(W)),Z=Y.next();!Z.done;Z=Y.next()){Z=Z.value;var d=void 0,G=(d=Object.getOwnPropertyDescriptor(W,Z))==null?void 0:d.value;G&&G instanceof Function&&(!a[Z]||_.w("polymer_forward_method_killswitch"))&&T.add(Z)}}r=_.M(Object.entries(Object.getOwnPropertyDescriptors(J.prototype)));for(W=r.next();!W.done;W=r.next())Y=_.M(W.value),W=Y.next().value,
Y=Y.next().value,Y.value instanceof Function&&T.add(W);H=T}return H}
var P=AAo({is:c,disableElementRegistration:!1,getTemplate:m,providers:b==null?void 0:b.providers,reactivityMode:b==null?void 0:b.reactivityMode},J);if((b==null?0:b.allowedProps)||(b==null?0:b.allowedPropsFromBehaviors)){var p,t;P.allowedProps=[].concat(_.L6((p=b.allowedProps)!=null?p:[]),_.L6((t=b.allowedPropsFromBehaviors)!=null?t:[]))}var I=hn2(P,J);c=I.observedAttributes;var a={};m=_.M(P.reactiveSchemas);for(b=m.next();!b.done;b=m.next())if(b=b.value,b.type==="signal")a[b.propertyKey]={readOnly:b.readOnly},
b.readOnly&&(a[KtQ(b.propertyKey)]={readOnly:!0});else if(b.type==="compute"||b.type==="computeWithMethod"||b.type==="redux")a[b.propertyKey]={readOnly:!0};var k=P.reactiveSchemas.length,H;return{ctor:function(T,r){T=new I(T);T.beforeReady=r.beforeReady;return T},
props:a,observedAttributes:c,getInitialMethods:x,getPropsToForwardBeforeRegister:function(){for(var T=[],r=new Set,W=_.M(xpm),Y=W.next();!Y.done;Y=W.next())Y=Y.value,T.push([Y,Y!=="observers"&&Y!=="properties"]),r.add(Y);W=_.M(Object.keys(a));for(Y=W.next();!Y.done;Y=W.next())Y=Y.value,T.push([Y,a[Y].readOnly]),r.add(Y);W=x();Y=_.M(Object.keys(Object.getOwnPropertyDescriptors(J.prototype)));for(var Z=Y.next();!Z.done;Z=Y.next())Z=Z.value,!mpJ(Z)||W.has(Z)||r.has(Z)||(T.push([Z,!1]),r.add(Z));T.push(["allowedProps",
!0]);return T},
getPropsToForwardBeforeReady:function(T){var r=[];T=_.M(Object.keys(T));for(var W=T.next();!W.done;W=T.next()){W=W.value;var Y=x();mpJ(W)&&!Y.has(W)&&r.push([W,!1])}T=_.M(P.reactiveSchemas.slice(k));for(W=T.next();!W.done;W=T.next())W=W.value,W.type!=="compute"&&W.type!=="computeWithMethod"&&W.type!=="redux"&&W.type!=="signal"||r.push([W.propertyKey,W.type==="signal"?W.readOnly:!0]);return r},
shouldForwardProp:mpJ,shouldLog:H9}};
_.v=function(J,c,m,b){var x,P,p=(P=(x=b)==null?void 0:x.mode)!=null?P:0;b!=null||(b={});var t;(t=b).reactivityMode!=null||(t.reactivityMode=0);p===1&&_.bj("creator_poly_si_disable_list").includes(c)&&(p=2);return p===1?JXo(J,c,m,Object.assign({},b,{useSink:!0}),VZq):JXo(J,c,m,Object.assign({},b,{useSink:p===2}))};
_.cd=function(){return function(J,c,m,b){var x,P,p=(P=(x=b)==null?void 0:x.mode)!=null?P:2;b!=null||(b={});var t;(t=b).reactivityMode!=null||(t.reactivityMode=0);if(p===0)throw Error("Sg`"+p);return gGT(J,c,m,b,p===1?VZq:void 0)}};
_.mP=function(J){return _.w("creator_poly_si_killswitch")?!1:_.w("force_all_poly_si_batches")&&(J==="poly_si_all_on_test_check"||J==="creator_poly_si_batch_050"?0:J)||document.documentElement.hasAttribute("use-signals")?!0:!J||_.w(J+"_holdback_enabled")&&_.w("kevlar_polysi_holdback")?!1:_.w(J)};
bv=function(J){return J?J.icon?J.icon.iconType.toLowerCase():J.customThumbnail?"member":"":""};
Pp3=function(J){if(!J)return"";J=_.M(J);for(var c=J.next();!c.done;c=J.next())if((c=c.value)&&c.liveChatAuthorBadgeRenderer&&(c=bv(c.liveChatAuthorBadgeRenderer))&&c!=="verified")return c;return""};
MZ3=function(J,c){if(!J)return null;var m;return((m=J.find(function(b){return b&&b.liveChatAuthorBadgeRenderer?bv(b.liveChatAuthorBadgeRenderer)===c:!1}))==null?void 0:m.liveChatAuthorBadgeRenderer)||null};
_.Cpu=function(J){var c=getComputedStyle(document.querySelector("yt-live-chat-renderer")).backgroundColor;J=pke(J);c=pke(c);var m=Nre(J.hex);c=Nre(c.hex);var b=c[0]/255;var x=c[1]/255,P=c[2]/255,p=Math.max(b,x,P),t=Math.min(b,x,P),I=0,a=0,k=.5*(p+t);p!=t&&(p==b?I=60*(x-P)/(p-t):p==x?I=60*(P-b)/(p-t)+120:p==P&&(I=60*(b-x)/(p-t)+240),a=0<k&&k<=.5?(p-t)/(2*k):(p-t)/(2-2*k));b=[Math.round(I+360)%360,a,k];m=tZu(m,c);for(J=Iym(J.hex);m<4.5;){J=b[2]>=.5?J.darker((4.5-m)/2):J.brighter((4.5-m)/2);m=J.toString();
x=Klq(m);if(!x.length)throw Error("Rd`"+m);m=x;m=tZu(m,c)}return J.hex()};
tZu=function(J,c){J=_.gqr(J);c=_.gqr(c);return(Math.max(J,c)+.05)/(Math.min(J,c)+.05)};
_.xV=function(J){return"#"+("000000"+(J&16777215).toString(16)).slice(-6)};
_.ayr=function(J){for(var c=0,m=0;m<J.length;m++)c=J.charCodeAt(m)+((c<<5)-c);J="#";for(m=0;m<3;m++)J+=("00"+(c>>m*8&255).toString(16)).slice(-2);return J};
kaq=function(J){J=(J||"").split(":");J.length===1&&J.unshift("yt-icons");J[1]=J[1].toLowerCase();return J};
rXR=function(J,c){var m=(c=c===void 0?!1:c)?H5Q:i5e,b=c?nOu:Trm;J.getIconNames().forEach(function(x){x=c?x:x.substring(x.indexOf(":")+1);J.name==="yt-icons"?wkG.add(x):x.includes("-filled")?m.add(x):b.add(x)})};
Vn=function(J,c,m,b){m=m===void 0?!1:m;b=b===void 0?!1:b;var x,P,p;return _.N(function(t){if(t.nextAddress==1)return _.K(t,sJe,2);if(b)return t.return(wkG.has(J));x=m?H5Q:i5e;P=m?nOu:Trm;return c?(p=J.includes("-filled")?J:J.concat("-filled"),t.return(x.has(p))):t.return(P.has(J))})};
_.WlG=function(J){if(Llt(J))return J;var c=J=J.toLowerCase();(J=DpD.get(J))&&(c=J);return c};
_.Pd=function(J){if(Llt(J))return J.toString();var c=ziR.get(J);if(c)return c;c=J.toLowerCase();var m="yt-icons",b=c.replace(/_/g,"-");switch(J){case "MY_CHANNEL":c="account_circle";break;case "ADD_TO_LIBRARY":c="add";break;case "ALERT_WARN_RED":c="warning";break;case "ARTIST":case "ARTIST_ANALYTICS":c="person_music";break;case "BLOCK_USER":c="block";break;case "CAPTIONS":c="closed_caption";break;case "CLOSED_CAPTION":m="av";c="closed-caption";break;case "COLLECTION":m="maps";c="layers";break;case "CONTACT":m=
"icons";c="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":m="ytcp-icons";c=b.split("creator-studio-")[1];break;case "DISMISSAL":c="close";break;case "DO_NOT_DISTURB":c="block";break;case "DOGFOOD":m="icons";c="pets";break;case "DRAFT":c="paper_corner_folded";break;
case "EMPTY_LIKE":c="like_outline";break;case "EXIT_APP":c="exit_to_app";break;case "EXPAND_MORE":case "EXPAND_LESS":c=b;break;case "GAMES":m="ytg";c="my-games";break;case "GO_TO_PAGE":c="arrow-forward";break;case "GROUP":m="social";break;case "HIDE":c="not_interested";break;case "INPUT_COMPONENT":m="icons";c="settings-input-component";break;case "KIDS_BLOCK":c="block";break;case "MEMBERSHIP_LIMITED_PRE_PURCHASE":case "MEMBERSHIP_OFFER":m="ytg";c="membership-pre-purchase";break;case "MEMBERSHIP_LIMITED_POST_PURCHASE":m=
"ytg";c="membership-post-purchase";break;case "MULTIVIEW":c="screen_multi_view";break;case "MY_LOCATION":m="maps";c=b;break;case "NOTIFICATIONS_INBOX":c="NOTIFICATIONS";break;case "NEXT":c="chevron_right";break;case "OFFLINE":c="power-settings-new";break;case "PAUSE":m="miniplayer";break;case "PAYMENT":m="icons";break;case "PHONE_DOWNLOAD":c="phone_download";break;case "PREMIUM_STANDALONE":m="yt-logos";c="premium_standalone";break;case "PREMIUM_STANDALONE_CAIRO":m="yt-logos";c="premium_standalone_cairo";
break;case "QUESTION_ANSWER":c="question_answer";break;case "REDEEM":m="icons";c="redeem";break;case "REMOVE":case "REMOVE_FROM_HISTORY":case "REMOVE_FROM_PLAYLIST":c="remove-circle-outline";break;case "SAVE_PLAYLIST":case "LIBRARY_ADD":c="library_add";break;case "SCHOOL":m="yt-sys-icons";c="creator_academy";break;case "SETTINGS_LIGHT":c="settings_applications";break;case "SETTINGS_MATERIAL":c="settings";break;case "SEARCH_HISTORY":c="watch_history";break;case "SHOPPING_BAG":c="bag";break;case "SOCIAL":case "PEOPLE":m=
"yt-icons";c="people";break;case "STAFF_PICK":m="ytg";c="spotlight";break;case "START_DVR":c="add";break;case "STOP_DVR":m="av";c="stop";break;case "TAB_LIKED":c="like";break;case "TAB_INBOX":c="mail";break;case "TERMS_OF_SERVICE":m="icons";c="description";break;case "TRENDING":c="fire";break;case "UNBLOCK_USER":c="remove";break;case "UNPLUGGED_DARK_THEME":m="image";c="brightness-3";break;case "UNPLUGGED_LIVE_GUIDE":case "LIVE":c="live";break;case "UNPLUGGED_SPORTS":m="ytu";c="visibility-off";break;
case "VIDEOS":m="av";c="play-circle-filled";break;case "YOUTUBE":m="yt-logos";c="lozenge";break;case "YOUTUBE_RED_LOGO":case "YOUTUBE_PREMIUM_LOGO":m="yt-logos-ext";c="yt-logo-red-updated";break;case "YOUTUBE_LOGO":m="yt-logos-ext";c="yt-logo-updated";break;case "OFFLINE_NO_CONTENT":m="offline-no-content";break;case "SHORTS_COMMENT":case "SHORTS_DISLIKE":case "SHORTS_LIKE":case "SHORTS_SHARE":m="shorts";c=b;break;case "OUTLINE_YOUTUBE_IMPROVE_TV":m="yt-sys-icons";c="youtube_improve_tv";break;case "OUTLINE_BAG":m=
"yt-sys-icons";c="bag";break;case "QUEUE_PLAY_LAST":m="yt-sys-icons";c="list_queue_last";break;case "SLASH_CIRCLE_LEFT":c="slash_circle_left";break;case "SPEED_1_POINT_2X":c="1_point_2x";break;case "SPEED_1_POINT_5X":c="1_point_5x";break;case "SPEED_1_POINT_8X":c="1_point_8x";break;case "SPEED_POINT_2X":c="point_2x";break;case "SPEED_POINT_5X":c="point_5x";break;case "SPEED_POINT_8X":c="point_8x";break;case "SPEED_1X":c="1x";break;case "SPEED_2X":c="2x";break;case "TAB_BOOKMARK":c="bookmark";break;
case "OUTLINE_CLOCK_HALF_CIRCLE":m="yt-sys-icons";c="clock_half_circle";break;case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16":case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16":m="yt-sys-icons";c="youtube_shorts_no_triangle-filled";break;case "PLAYABLES_LOGO":m="yt-sys-icons",c="tic_tac_toe"}c=m+":"+c;ziR.set(J,c);return c};
Llt=function(J){var c;_.w("kevlar_use_wil_icons")?c=!!_.BG().resolve(_.Ml).resolveIcon({iconName:J.toString()}):c=!1;return c};
_.Nl=function(J,c,m,b){m=m===void 0?{}:m;b=b===void 0?!1:b;m===null&&(m={});var x=_.bj("kevlar_command_handler_command_banlist");x=_.M(x);for(var P=x.next();!P.done;P=x.next())if(P=J?J.hasOwnProperty(P.value):void 0,P)return!1;x=_.L(J.commandMetadata,_.lk);return b&&x!=null&&x.url?!1:!c.disableCommandHandlerOverride&&_.p7.instance?(b=_.p7.instance,m.form||(m.form={element:c}),m.form.element||(m.form.element=c),!m.clickedVisualElement&&c.visualElement&&(m.clickedVisualElement=c.visualElement),b.resolveCommand(J,
m),!0):!1};
un2=function(J,c){J=td(J);for(var m=_.M(J.visibilityMonitorKeys||[]),b=m.next();!b.done;b=m.next())c.unobserveByKey(b.value);J.visibilityMonitorKeys=void 0};
Z5R=function(J,c){if(_.Y3()){if(_.w("kevlar_vimio_use_shared_monitor"))fy2(J,c.data);else if(!fy2(J,c.data))return;var m=c.data,b=Yko(m);if(_.w("enable_client_ve_spec_logging"))un2(J,c.observer);else{var x=td(J);x.trackedParams&&x.trackedParams!==b&&un2(J,c.observer)}x=td(J);!m||x.data&&x.data===m||(x.data=m);XkD(J,c);x.trackedParams=b}};
XkD=function(J,c){var m=c.observer;if(!m&&_.w("web_skip_missing_vimio_observer")){var b,x;_.qz(new _.w3("VisibilityObserver is not defined.",J.tagName,J.trackedParams,(b=c.data)==null?void 0:b.trackingParams,(x=c.data)==null?void 0:x.loggingDirectives))}else{var P=c.layer,p=c.visibilityCallback||function(){},t=c.prescanCallback,I=td(J);
b=[];c.showOption&&b.push(m.observe(J,function(){c.skipLogging&&c.skipLogging()||_.IA().reportShown(I,void 0,P);p(!0)},c.showOption));
c.hideOption&&b.push(m.observe(J,function(){_.IA().reportHidden(I,void 0,P);p(!1)},c.hideOption));
c.prescanOption&&t&&b.push(m.observe(J,function(){t()},c.prescanOption));
I.visibilityMonitorKeys=b}};
fy2=function(J,c){J=td(J);if(J.visualElement&&!c)return!0;if(!c)return!1;var m=!1;if(_.w("enable_client_ve_spec_logging")){var b,x;m=!!((b=c.loggingDirectives)==null?0:(x=b.clientVeSpec)==null?0:x.uiType)}b=Yko(c);if(!b&&!m)return!1;_.w("mweb_component_visibility_logging")&&(J.veContainer||(J.veContainer={}),J.veContainer.trackingParams=b);if(J.trackedParams&&J.trackedParams===b)return!1;var P;if(_.w("enable_client_ve_spec_logging")&&((P=J.visualElement)==null?0:P.isClientVe())){var p;P=(p=J.visualElement)==
null?void 0:p.getAsJspb();var t,I,a,k;if(_.m5(P,2)===((t=c.loggingDirectives)==null?void 0:(I=t.clientVeSpec)==null?void 0:I.uiType)&&_.m5(P,3,-1)===((a=c.loggingDirectives)==null?void 0:(k=a.clientVeSpec)==null?void 0:k.elementIndex))return!1}if(_.w("enable_client_ve_spec_logging")){var H,T;!J.visualElement&&((H=c.loggingDirectives)==null?0:(T=H.clientVeSpec)==null?0:T.uiType)&&(t=c.loggingDirectives.clientVeSpec,c=t.uiType,p=t.elementIndex,t=t.clientYoutubeData,J.visualElement=_.K7(_.C7(),{veType:c,
elementIndex:p,clientYouTubeData:t}))}return!0};
Yko=function(J){if(J==null?0:J.rendererContext){var c=_.L(J.rendererContext,_.aA);if(c==null?0:c.loggingDirectives)return c.loggingDirectives.trackingParams}return(J==null?0:J.loggingDirectives)?J.loggingDirectives.trackingParams:J==null?void 0:J.trackingParams};
td=function(J){var c;return(c=J.polymerController)!=null?c:J};
hiT=function(J){_.IA();if(_.du(kV().JSC$10471_elementShouldLogGesture).bind(kV())(J,4)){qkT(J);var c=Upr(J);SkG.set(J,c)}};
qkT=function(J){SkG.has(J)&&(SkG.get(J).cancel("untrack hover element"),SkG.delete(J))};
Upr=function(J){var c,m=[],b=!1,x=new _.IN(function(P,p){Hd(J,"mouseenter",_.du(function(){var t,I,a;return _.N(function(k){if(k.nextAddress==1)return c=(0,_.y4)(),t=dpJ(J),m.push(t),I=$pQ(J,function(){b=!0;p(Error("Tg"))}),_.K(k,t,2);
if(k.nextAddress!=3)return I&&iv(I),a=Ga2(J),m.push(a),_.K(k,a,3);P();_.tD(k)})}))});
x.then(function(){var P=(0,_.y4)()-c;P=Math.round(P);if(!(500>P||6E5<=P)){var p=J.getScreenLayer?J.getScreenLayer():void 0;p=_.Y3(p)||"";var t=EOe(_.IA(),J);_.Rn(p,J.visualElement?J.visualElement:_.n7(t),"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{hoverData:{durationHoveredMs:P}})}hiT(J)},function(){Tg&&(Tg(),Tg=null);
b&&(qkT(J),hiT(J))});
return x};
dpJ=function(J){var c;return(new _.IN(function(m,b){Tg=function(){b(Error("Ug"))};
c=_.ft.debounce(_.du(function(){iv(x);m()}),1,100);
var x=_.wp(J,"mousemove",c)})).thenCatch(function(){var m=_.ft.cancelDebouncedJobMap.get(c);
m&&_.ft.cancelJob(m)})};
Ga2=function(J){var c;return(new _.IN(function(m,b){Tg=function(){b(Error("Vg"))};
c=Hd(J,"mouseleave",_.du(function(){m()}))})).thenCatch(function(){iv(c)})};
$pQ=function(J,c){return Hd(J,"mouseleave",_.du(c))};
O5G=function(J){vOt&&_.rp.cancel(vOt);vOt=_.rp.run(function(){_.cA(J,"yt-visibility-refresh");vOt=0})};
AXQ=function(J){J=Number(J);return"rgba("+[J>>16&255,J>>8&255,J&255,(J>>24&255)/255].join()+")"};
oOQ=function(J){if(!J)return!1;if(_.L(J,_.Ri2))return!0;var c;if(J=(c=_.L(J,_.pX))==null?void 0:c.commands)for(c=_.M(J),J=c.next();!J.done;J=c.next())if(_.L(J.value,_.Ri2))return!0;return!1};
QJm=function(J){var c=!0;c=c===void 0?!0:c;if(!J.useSignals&&!J.experimentalPropertiesChanged||_.w("experimental_templating_behavior_nopatch_killswitch")){var m=J._propertiesChanged;J._propertiesChanged=function(b,x,P){c?J.debounceRender():J.doRender();m&&m.call(J,b,x,P)}}};
eiG=function(J,c){if(J.useSignals||J.experimentalPropertiesChanged)if(_.w("experimental_templating_behavior_nopatch_killswitch"))J.experimentalPropertiesChanged=function(){};
else return;var m=new Set,b=[J].concat(_.L6(J.behaviors));b=_.M(b);for(var x=b.next();!x.done;x=b.next()){x=x.value;for(var P in x.properties)m.has(P)||(J._addPropertyEffect(P,"function",c),m.add(P))}};
jJr=function(){var J=Polymer.Element,c=J._prepareTemplate;J._prepareTemplate=function(){c.call(this);var m=this.prototype;if(m.experimentalTemplatingInUse&&m.experimentalTemplatingInUse()&&m.switchTemplateAtRegistration&&this.template!==void 0)if(typeof this.template==="string")_.Xc(Error("Wg"));else{m=this.template.content.childNodes;for(var b=m.length-1;b>=0;b--){var x=m[b];x.nodeName!=="STYLE"&&x.nodeName!=="LINK"&&x.nodeName!=="SCRIPT"&&x.nodeName!=="#comment"&&x.remove()}}}};
FlQ=function(J){var c=!0;c=c===void 0?!0:c;jJr();var m=J.ready;J.ready=function(){this._template=null;m.call(this)};
eiG(J,c?J.debounceRender:J.doRender)};
yXu=function(J,c,m){if(m===null||m===void 0)return m;var b=KLr(J.tagName.toLowerCase(),c,function(){throw Error("Rb");});
if(b===null)return m;b=lyt[b];var x;if((x=b.isUnwrappable)==null?0:x.call(b,m)){if(b.unwrap)return b.unwrap(m);throw Error("Zg");}return b.filterString?b.filterString(J.tagName,c,String(m)):m};
Bre=function(J,c,m){var b=c[c.length-1]!=="$",x=yXu(J,c,m);if(b)if(typeof x==="function"&&c.startsWith("reactiveon")&&c===c.toLowerCase()){var P=yx;s6t(J,c.slice(8),function(p){qs(P,function(){x(p)})})}else J[c]=x;
else m=x==null?null:String(x),rUQ(J,c.slice(0,-1),m)};
L7=function(J){gOR.length===0&&requestAnimationFrame(function(){setTimeout(function(){var c=gOR.slice();gOR.length=0;c=_.M(c);for(var m=c.next();!m.done;m=c.next()){m=m.value;try{m()}catch(b){_.sv(b)}}})});
gOR.push(J)};
Jvr=function(J){if(J){var c=J.component;if(c){var m;c==null||(m=c.events)==null||m.publish("DISCONNECTED");var b;c==null||(b=c.onDisconnected)==null||b.call(c)}var x,P;(x=J.__spec)==null||(P=x.didUnmount)==null||P.call(x);for(c=0;c<J.childNodes.length;c++)Jvr(J.childNodes[c])}};
Wd=function(J,c,m){var b=c&&c.key,x=eA;x[0]=J;x[1]=b;x[2]=void 0;for(var P in c)c.hasOwnProperty(P)&&(J=c[P],b=jA,b.push(P),b.push(J));c=eA;a:{if(P=eA[2])for(J=0;J<P.length;J+=2)if(P[J]==="nonce"){P=P[J+1];break a}P=""}P=h2o(c[0],c[1],P);J=d_(P);b=c[2];if(!J.staticsApplied&&(J.staticsApplied=!0,b&&b.length))if((x=J._attrsArr)&&x.length){for(x=0;x<b.length;x+=2)DG[b[x]]=x+1;x=J._attrsArr||(J._attrsArr=w4T(0));for(var p=0,t=0;t<x.length;t+=2){var I=x[t],a=x[t+1],k=DG[I];k?b[k]===a&&delete DG[I]:(x[p]=
I,x[p+1]=a,p+=2)}SA(x,p);for(var H in DG)u_G(P,H,b[DG[H]],l3),delete DG[H]}else for(H=0;H<b.length;H+=2)u_G(P,b[H],b[H+1],l3);AUt(P,J,l3);SA(c,0);m&&m($B);dXu()};
cve=function(J){var c=J.toString().toLowerCase();return function(m,b){Wd(c,m,b)}};
_.zg=function(J,c,m){m===void 0?delete J[c.name]:J[c.name]=m};
_.uv=function(J){var c={androidIncludeFontPadding:!1},m=0,b=[],x=[],P=[];if(J.simpleText)return c.content=J.simpleText,c;if(J.runs===void 0)return c.content="",c;J=_.M(J.runs);for(var p=J.next();!p.done;p=J.next()){p=p.value;var t=p.text,I=void 0,a=(I=t)==null?void 0:I.length;if(t&&a){b.push(t);if(p.bold||p.italics||p.strikethrough||p.underline||p.textColor!=null&&p.textColor!==0||p.deemphasize){t=x;I=t.push;var k={startIndex:m,length:a};p.bold&&(k.weightLabel="FONT_WEIGHT_MEDIUM");p.italics&&(k.italic=
!0);p.strikethrough&&(k.strikethrough="LINE_STYLE_SINGLE");p.underline&&(k.underline="LINE_STYLE_SINGLE");p.textColor!=null&&p.textColor!==0?document.documentElement.hasAttribute("dark")?k.fontColor=p.darkModeTextColor||p.textColor:k.fontColor=p.textColor:p.deemphasize&&(document.documentElement.hasAttribute("dark")?k.fontColor=parseInt("ff"+me2("#aaa").substring(1),16):k.fontColor=parseInt("ff"+me2("#606060").substring(1),16));I.call(t,k)}p.navigationEndpoint&&(t=P,I=t.push,k={startIndex:m,length:a,
onTap:{innertubeCommand:p.navigationEndpoint}},p.loggingDirectives&&_.zg(k,bFJ,p.loggingDirectives),I.call(t,k));m+=a}}c.content=b.join("");c.styleRuns=x.length?x:void 0;c.commandRuns=P.length?P:void 0;return c};
V4f=function(J){if(J==null||!J.runs)return!0;J=_.M(J.runs);for(var c=J.next();!c.done;c=J.next())if(c=c.value,c.bracket||c.errorUnderline||c.deemphasize||_.L(c,f7)||_.L(c,xeT))return!1;return!0};
PIR=function(J,c){return function(m){var b=c.unit;if(b!==m)throw Error("bh`"+J+"`"+b+"`"+m);return c}};
YV=function(J){if(!((J==null?0:J.value)&&(J==null?0:J.unit)))return"";switch(J.unit){case "DIMENSION_UNIT_FRACTION":var c="%";break;default:c="px"}J=J.value;c==="%"&&(J*=100);return""+J+c};
M4o=function(J){try{return J()}catch(c){_.qz(c)}};
_.ZG=function(J){var c=_.L(J,_.Xz);if(c)return c;if((c=_.L(J,ppo))&&c.commands)return N4e(c.commands);if((c=_.L(J,t4u))&&c.commands)return N4e(c.commands);if((J=_.L(J,IpR))&&J.identifier&&J.command&&(KzR||(KzR=[]),!KzR.includes(J.identifier)))return KzR.push(J.identifier),_.L(J.command,_.Xz)};
N4e=function(J){if(J.length!==0){var c=[];J=_.M(J);for(var m=J.next();!m.done;m=J.next())(m=_.ZG(m.value))&&c.push(m);return{commandExecutorCommand:{commands:c}}}};
_.Uv=function(J){var c=J.defaultTarget,m=J.elementConfig,b=J.elementsCommand,x=J.skipOnClick,P=J.forceNewState,p=J.additionalCommandArgs,t=J.innertubeCommand||_.ZG(b);if(t){J={};var I=CIr(t);b=I.navigatingCommand;I=I.href;b&&I?(J.href$=I,apQ(J,b,I,c),_.w("web_atagconfig_pointerdown")&&kfm(J,b),P&&(J["force-new-state$"]=!0)):(J.role$="button",J.href$="javascript:void(0);");_.L(t,HFr)&&(J["aria-haspopup$"]=!0);x||(J.onclick=function(a){if(iF2(a)){var k=Object.assign({},{form:{element:a.target,event:a}},
p);a.preventDefault();_.ql(t,k)}});
return Object.assign({},m,J)}};
nCm=function(J){if(J.length){if(J.length===1)return J[0];var c={};_.zg(c,_.pX,{commands:J});return c}};
SM=function(J){return J&&J.href$!=="javascript:void(0);"};
CIr=function(J){var c,m=((c=_.L(J,_.pX))==null?void 0:c.commands)||[J];J=_.M(m);for(c=J.next();!c.done;c=J.next()){c=c.value;var b=void 0,x=void 0;m=(x=_.L((b=c)==null?void 0:b.commandMetadata,_.lk))==null?void 0:x.url;_.w("web_remove_web_navigation_endpoint_data")||(b=void 0,m=m||((b=_.L(c,T4t))==null?void 0:b.url));if(m&&m!=="/service_ajax"){if(b=H0(m,wp3))return J=_.ah(b),{navigatingCommand:c,href:J};_.qz(new _.w3("AttributedString URL could not be sanitized",m))}}return{}};
iF2=function(J){return J.button!==void 0?J.button===0&&!(J.shiftKey||J.altKey||J.metaKey||J.ctrlKey):!(J.shiftKey||J.altKey||J.metaKey||J.ctrlKey)};
apQ=function(J,c,m,b){m=!Fk(m);var x,P,p;if((x=_.L(c,_.I1))!=null&&x.nofollow||(P=_.L(c,_.Rz))!=null&&P.nofollow||(p=_.L(c,_.Ee))!=null&&p.nofollow||m)J.rel$="nofollow";var t;c=((t=_.L(c,_.Ee))==null?void 0:t.target)==="TARGET_NEW_WINDOW"?"_blank":b===void 0?"":b;J.target$=c};
kfm=function(J,c){c.clickTrackingParams&&(J.params={itct:c.clickTrackingParams});J.onpointerdown=function(m){rve(m)};
J._data=c};
sp2=function(J){(J.loggingUrls||[]).forEach(function(c){v4(c.baseUrl,c.attributionSrcMode)})};
Lzf=function(J){J.currentTarget._data&&sp2(J.currentTarget._data)};
rve=function(J){var c=J.currentTarget;J=M4o(function(){return c.href});
var m=c.params;J&&_.jK(J,m||{},8,!0)};
DeD=function(J,c){if(c=_.L(c,_.Ee))(c==null?void 0:c.target)==="TARGET_NEW_WINDOW"&&(J.target="_blank"),c.nofollow&&(J.rel="nofollow")};
WzD=function(J){J=_.L(J==null?void 0:J.commandMetadata,_.lk);return(J==null?0:J.url)?J.url:null};
_.hd=function(J,c){(J=_.ZG(J))&&_.ql(J,c)};
_.ql=function(J,c){ZN2(function(m){c?m.resolveCommand(J,c):m.resolveCommand(J)})};
YDr=function(J,c){var m=["yt-core-attributed-string__link"];c!=null&&c.noLinkColor||((c==null?0:c.isOverlay)?m.push("yt-core-attributed-string__link--overlay-call-to-action-color"):m.push("yt-core-attributed-string__link--call-to-action-color"),(c==null?0:c.linkInheritColor)&&m.push("yt-core-attributed-string--link-inherit-color"));m={className:m.join(" "),tabindex$:"0"};var b=J.onTap||J.onLongPress;if(!b)return m;var x=zQo(J);x&&(m["aria-label$"]=x);c=_.Uv({elementsCommand:b,elementConfig:m,skipOnClick:!(c==
null||!c.skipOnClick),forceNewState:!0});J.onLongPress&&(b=new uwu(function(){var P=_.ZG(J.onLongPress);P&&_.BG().resolve(_.gu).resolveCommand(P)}),c&&fpq(b,c));
return c||m};
zQo=function(J){var c,m;return(c=J.onTapOptions)==null?void 0:(m=c.accessibilityInfo)==null?void 0:m.accessibilityLabel};
Xpe=function(J){var c=J;J<=16777215&&(c+=parseInt("ff000000",16));return _.Zn(c)};
ZFG=function(J){var c=J.isDarkTheme;var m=J.extension;J=J.runColor;var b=void 0;if(m=m==null?void 0:m.colorMap){c=c?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";m=_.M(m);for(var x=m.next();!x.done;x=m.next())if(x=x.value,c===x.key){b=x.value;break}}b==null&&J&&(b=J);if(b)return Xpe(b)};
dp=function(J){var c=J.config;var m=J.image;var b=J.imageConfig;var x=J.imageWrapperConfig;var P=J.run;var p=J.tag;var t=J.textLength;var I=J.startIndex===void 0?0:J.startIndex;J=J.length;I===void 0&&(I=0);P={run:P,startIndex:I,endIndex:J!==void 0?I+J:t,tag:p};m&&(P.image=m);b&&(P.imageConfig=b);x&&(P.imageWrapperConfig=x);c&&(P.config=c);return P};
UeJ=function(J,c){var m=[];m.push("yt-core-attributed-string");(c==null?0:c.className)&&m.push(c==null?void 0:c.className);(c==null?0:c.ellipsisTruncate)?m.push("yt-core-attributed-string--ellipsis-truncate"):(c==null?0:c.noWrap)?m.push("yt-core-attributed-string--white-space-no-wrap"):(c==null?0:c.noPreWrap)||m.push("yt-core-attributed-string--white-space-pre-wrap");(c==null?0:c.linkInheritColor)&&m.push("yt-core-attributed-string--link-inherit-color");J.alignment&&m.push(qDo(J.alignment));J.lineBreakMode&&
m.push("yt-core-attributed-string--word-wrapping");return m.join(" ")};
SDo=function(J){if(J.weight)return J.weight;switch(J.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}};
hQQ=function(J){switch(J){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"}};
qDo=function(J){switch(J){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"}};
$e2=function(J,c,m){var b=c;J.content&&m&&(m=J.content.indexOf("\n"),m!==-1&&(b=Math.min(c,m)));if(!J.content||J.content.length<=b)c=J;else if(J.attachmentRuns||J.commandRuns||J.decorationRuns||J.styleRuns||J.paragraphStyleRuns){c=$V(J.content,b);m=b;var x=J.attachmentRuns;if(x){var P=[];x=_.M(x);for(var p=x.next();!p.done;p=x.next())p=Object.assign({},p.value),p.startIndex===void 0||p.startIndex>=m||(p.length||(p.length=0),p.length+p.startIndex>m&&(p.length=m-p.startIndex),P.push(p));m=P}else m=
void 0;P=deQ(b,J.commandRuns);x=b;var t=J.decorationRuns;if(t){p=[];t=_.M(t);for(var I=t.next();!I.done;I=t.next()){I=I.value;var a=_.L(I.textDecorator,Gg);if(a&&a.startIndex!==void 0&&!(a.startIndex>=x)){I=Object.assign({},I,{textDecorator:{highlightTextDecorator:Object.assign({},a)}});a=_.L(I.textDecorator,Gg);if(!a.length||a.length+a.startIndex>x)a.length=x-a.startIndex;p.push(I)}}x=p}else x=void 0;p=deQ(b,J.styleRuns);if(t=J.paragraphStyleRuns)for(J=[],t=_.M(t),I=t.next();!I.done;I=t.next()){var k=
I.value;I=Object.assign({},k);if(!(I.startIndex===void 0||I.startIndex>=b)){if(!I.length||I.length+I.startIndex>b)I.length=b-I.startIndex;a=[];var H=void 0,T=void 0;if((H=k)==null?0:(T=H.listGroup)==null?0:T.listItems)for(k=_.M(k.listGroup.listItems),H=k.next();!H.done;H=k.next())if(H=Object.assign({},H.value),!(H.startIndex===void 0||H.startIndex>=b)){if(!H.length||H.length+H.startIndex>b)H.length=b-H.startIndex;a.push(H)}a.length>0&&(I.listGroup||(I.listGroup={}),I.listGroup=Object.assign({},I.listGroup,
{listItems:a}));J.push(I)}}else J=void 0;c={content:c,attachmentRuns:m,commandRuns:P,decorationRuns:x,styleRuns:p,paragraphStyleRuns:J}}else c=Object.assign({},J,{content:$V(J.content,b)});return c};
deQ=function(J,c){if(c){var m=[];c=_.M(c);for(var b=c.next();!b.done;b=c.next())if(b=Object.assign({},b.value),!(b.startIndex===void 0||b.startIndex>=J)){if(!b.length||b.length+b.startIndex>J)b.length=J-b.startIndex;m.push(b)}return m}};
$V=function(J,c){var m=c,b;if(b=m>0)b=J.charCodeAt(m-1),b=b>=55296&&b<=56319;b&&(m=J.charCodeAt(m),b=m>=56320&&m<=57343);b&&--c;return J.substring(0,c)};
OFR=function(J,c,m){m=m===void 0?Gf2:m;if(J){var b=_.BG().resolve(BO);b||_.w("mweb_no_observer_killswitch")?Z5R(J,{data:c,observer:b,visibilityCallback:m,hideOption:ECQ,showOption:vCo,layer:J.layer}):_.qz(new _.w3("Warning: monitorVisibility called with null observer",J.tagName,c==null?void 0:c.loggingDirectives,c==null?void 0:c.trackingParams))}else _.qz(new _.w3("Warning: monitorVisibility called with null element",c==null?void 0:c.loggingDirectives,c==null?void 0:c.trackingParams,c==null?void 0:
c.rendererContext))};
FzT=function(J,c){var m=[],b=J.content.length,x,P=(x=_.BG().resolve(_.y6(_.Ev)))==null?void 0:x();if(J.paragraphStyleRuns){x=_.M(J.paragraphStyleRuns);for(var p=x.next();!p.done;p=x.next()){var t=m.push,I=t.apply;var a=void 0;p=p.value;if((a=p.listGroup)!=null&&a.listItems){a=[];b:switch(p.listGroup.listType){case "LIST_TYPE_BULLET":var k="ul";break b;default:k="span"}a.push(dp({run:p,textLength:b,tag:k,config:{className:"yt-core-attributed-string__list-group"},startIndex:p.startIndex,length:p.length}));
k=_.M(p.listGroup.listItems);for(var H=k.next();!H.done;H=k.next()){H=H.value;b:switch(p.listGroup.listType){case "LIST_TYPE_BULLET":var T="li";break b;default:T="span"}a.push(dp({run:p,textLength:b,tag:T,startIndex:H.startIndex,length:H.length}))}p=a}else p=[];I.call(t,m,_.L6(p))}}if(J.styleRuns&&(c==null||!c.noStyleRuns))for(x=_.M(J.styleRuns),t=x.next();!t.done;t=x.next()){t=t.value;I=ZFG({extension:_.L(t.styleRunExtensions,AvJ),isDarkTheme:P===void 0?!1:P,runColor:t.fontColor});a=[];I&&a.push("yt-core-attributed-string--link-inherit-color");
t.italic&&a.push("yt-core-attributed-string--italicized");t.underline&&t.strikethrough?a.push("yt-core-attributed-string--underline-strikethrough",hQQ(t.underline)):t.underline?a.push("yt-core-attributed-string--underlined",hQQ(t.underline)):t.strikethrough&&a.push("yt-core-attributed-string--strikethrough",hQQ(t.strikethrough));if(t.baselineOffset){a:switch(t.baselineOffset){case "BASELINE_OFFSET_SUBSCRIPT":p="yt-core-attributed-string--baseline-offset-subscript";break a;case "BASELINE_OFFSET_SUPERSCRIPT":p=
"yt-core-attributed-string--baseline-offset-superscript";break a;default:p="yt-core-attributed-string--baseline-offset-unknown"}a.push(p)}p=a.join(" ");a=t;k={};if(a.weight||a.weightLabel)k.fontWeight=SDo(a).toString();I&&(k.color=I);m.push(dp({run:t,textLength:b,tag:"span",config:{className:p,style:k},startIndex:t.startIndex,length:t.length}))}if(J.decorationRuns)for(x=_.M(J.decorationRuns),t=x.next();!t.done;t=x.next())t=t.value,I={},t.textDecorator&&(k=t.textDecorator,p=P===void 0?!1:P,H=[],a=
_.L(k,Gg),k=_.L(k,RQ2),a?(k=H,H=k.concat,T=[],(p=ZFG({extension:_.L(a.highlightTextDecoratorExtensions,oCt),isDarkTheme:p,runColor:a.backgroundColor}))&&T.push("background-color: "+p+";"),a.backgroundCornerRadius!==void 0&&T.push("border-radius: "+a.backgroundCornerRadius+"px;"),a.leftPadding!==void 0&&T.push("padding-left: "+a.leftPadding+"px;"),a.rightPadding!==void 0&&T.push("padding-right: "+a.rightPadding+"px;"),a.topPadding!==void 0&&T.push("padding-top: "+a.topPadding+"px;"),a.bottomPadding!==
void 0&&T.push("padding-bottom: "+a.bottomPadding+"px;"),H=H.call(k,T)):k&&(a=H,H=a.concat,p=p?"#2ba640":"#107516",p=k.color?Xpe(k.color):p,p=["padding: 2px;","border-top: solid "+p+" 2px;","border-bottom: solid "+p+" 2px;","background: linear-gradient(135deg, "+p+" 3px, rgba(0, 0, 0, 0) 3px),\n      linear-gradient(315deg, "+p+" 3px, rgba(0, 0, 0, 0) 3px);"],H=H.call(a,p)),p=H.join(" "),I.style$=p,p=t.textDecorator,a=[],k=_.L(p,RQ2),_.L(p,Gg)?a.push("yt-core-attributed-string--highlight-text-decorator"):
k&&a.push("yt-core-attributed-string--bracket-text-decorator"),p=a.join(" "),I.className=p,I.dir="auto"),p=_.L(t.textDecorator,Gg),a=_.L(t.textDecorator,RQ2),k=_.L(t.textDecorator,Gg),H=_.L(t.textDecorator,RQ2),m.push(dp({run:t,textLength:b,tag:"span",config:I,startIndex:(p==null?void 0:p.startIndex)||(a==null?void 0:a.startIndex)||0,length:(k==null?void 0:k.length)||(H==null?void 0:H.length)||0}));if(J.commandRuns&&(c==null||!c.noEndpoints))for(P=_.M(J.commandRuns),x=P.next();!x.done;x=P.next())x=
x.value,t=YDr(x,c),m.push(dp({run:x,textLength:b,tag:"a",config:t,startIndex:x.startIndex,length:x.length}));if(J.attachmentRuns)for(J=_.M(J.attachmentRuns),P=J.next();!P.done;P=J.next()){P=P.value;I=t=void 0;x={className:"yt-core-attributed-string--inline-block-mod"};if((I=P.element)==null?0:I.properties){I=(t=P.element)==null?void 0:t.properties;t=[];I=_.L(I,Qp2);if(I==null?0:I.margin)I=I.margin,I.left&&t.push("margin-left: "+YV(I.left)+";"),I.right&&t.push("margin-right: "+YV(I.right)+";"),I.top&&
t.push("margin-top: "+YV(I.top)+";"),I.bottom&&t.push("margin-bottom: "+YV(I.bottom)+";");t=t.length!==0?t.join(" "):void 0;x.style$=t}p=void 0;t={alt:"",preserveHeight:!0,preserveWidth:!0};I=["yt-core-attributed-string__image-element"];if(P.alignment){a:switch(P.alignment){case "ALIGNMENT_BASELINE":a="yt-core-attributed-string__image-element--image-alignment-baseline";break a;case "ALIGNMENT_VERTICAL_CENTER":a="yt-core-attributed-string__image-element--image-alignment-vertical-center";break a;default:a=
"yt-core-attributed-string__image-element--image-alignment-bottom"}I.push(a)}if((p=P.element)==null?0:p.properties)p=[],a=_.L(P.element.properties,Qp2),(a==null?0:a.height)&&p.push("height: "+YV(a.height)+";"),(a==null?0:a.width)&&p.push("width: "+YV(a.width)+";"),p=p.length!==0?p.join(" "):void 0,t.style$=p,a=void 0,p=((a=_.L(P.element.properties,eQJ))==null?void 0:a.label)||"",t.alt=p;t.className=I.join(" ");I=void 0;k=a=void 0;p=((k=P.element)==null?0:k.type)?(a=_.L(P.element.type,jpq))==null?
void 0:a.image:void 0;m.push(dp({run:P,textLength:b,tag:"img",image:p,imageConfig:t,imageWrapperConfig:x,startIndex:P.startIndex,length:(I=P.length)!=null?I:0}))}if(c==null?0:c.headerRuns)for(c=_.M(c.headerRuns),J=c.next();!J.done;J=c.next())if(J=J.value,J.headerMapping&&["ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3"].includes(J.headerMapping)){a:{switch(J.headerMapping){case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1":P=
"yt-core-attributed-string--heading-1";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2":P="yt-core-attributed-string--heading-2";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3":P="yt-core-attributed-string--heading-3";break a}P=void 0}m.push(dp({run:J,textLength:b,tag:"span",config:P?{className:P}:void 0,startIndex:J.startIndex,length:J.length}))}return m};
_.vd=function(J){return(J==null?void 0:J.content)!==void 0};
lpt=function(J){return _.vd(J)?J:_.uv(J)};
yvo=function(J){return J.image!==void 0&&J.imageConfig!==void 0};
B42=function(J,c){if(c==null?0:c.userInput)for(J=_.M(J),c=J.next();!c.done;c=J.next())if(c=c.value,c.tag!=="a"&&c.tag!=="li"){var m=void 0;(m=c).config||(m.config={});c.config.dir=c.tag==="ul"?_.BG().resolve(_.Ov):"auto"}};
gCq=function(J){return function(c){var m=J.run;(m.onTap!==void 0||m.onLongPress!==void 0)&&_.L(m,bFJ)&&OFR(c,{loggingDirectives:_.L(m,bFJ)})}};
JCe=function(J){return function(c){for(var m in J)(l3[m]||l3[h$["default"]])(c,m,J[m])}};
xFQ=function(J,c){cCo(c);var m={data:null,start:0,end:J.length,parts:[]};c=_.M(c);for(var b=c.next();!b.done;b=c.next())b=b.value,mFT(m,b.startIndex,b.endIndex,b);bxo(J,m);return m};
mFT=function(J,c,m,b){for(var x=_.M(J.parts),P=x.next();!P.done;P=x.next()){P=P.value;if(typeof P==="string")throw Error("dh");if(P.start<=c&&m<=P.end){mFT(P,c,m,b);return}}J.parts.push({data:b,parts:[],start:c,end:m})};
bxo=function(J,c){for(var m=c.parts.length;m>=0;m--){var b=c.parts[m],x=c.parts[m-1],P=m===c.parts.length?c.end:b.start;x=m===0?c.start:x.end;P!==x&&c.parts.splice(m,0,J.slice(x,P));b&&bxo(J,b)}};
cCo=function(J){J.sort(function(c,m){if(c.startIndex<m.startIndex)return-1;if(m.startIndex<c.startIndex)return 1;c=c.endIndex-c.startIndex;m=m.endIndex-m.startIndex;return c>m?-1:m>c?1:0})};
_.VmG=function(J){var c=J.thumbnails;if(c){J={sources:[]};c=_.M(c);for(var m=c.next();!m.done;m=c.next()){m=m.value;var b={};b.url=m.url;b.width=m.width;b.height=m.height;J.sources.push(b)}return J}};
PwQ=function(J,c,m,b){if(!c)return J.length>=1?J[J.length-1]:null;if(b)for(var x=_.M(J),P=x.next();!P.done;P=x.next()){P=P.value;var p=void 0,t=(p=P.url)==null?void 0:p.indexOf(b);if(t!==void 0&&t>=0)return P}b=_.M(J);for(x=b.next();!x.done;x=b.next())if(x=x.value,x.width&&x.height&&(m&&x.width>=c||!m&&x.height>=c))return x;for(c=J.length-1;c>=0;c--)if(m&&J[c].width||!m&&J[c].height)return J[c];return J[0]};
_.MmR=function(J){var c;return(J=(c=J.sources)==null?void 0:c[0])?J.width/J.height:0};
_.pbu=function(J){if(J.sources){J=_.M(J.sources);for(var c=J.next();!c.done;c=J.next()){c=c.value;var m=void 0;if((m=c.clientResource)==null?0:m.imageName)return c}}};
NYt=function(J){var c;if((c=J.clientResource)!=null&&c.imageColor)return _.Zn(J.clientResource.imageColor)};
_.Iat=function(J,c,m,b,x,P,p){if(!c||c.length===0||c[0].clientResource)return null;if(m&&c[0].url)return c[0].url;b===void 0&&(b=!0);if(b){var t;J=tmu*(x||(J==null?void 0:(t=J.getBoundingClientRect())==null?void 0:t.width)||0)}else{var I;J=tmu*(P||(J==null?void 0:(I=J.getBoundingClientRect())==null?void 0:I.height)||0)}c=PwQ(c,J,b,p);return(c==null?0:c.url)?c.url:(c==null?0:c.imageData)?c.imageData:null};
K8m=function(J,c,m){m=m?[m]:[];J.opacity&&m.push("opacity: "+J.opacity+";");c&&J.placeholderColor?(J=_.Zn(J.placeholderColor),m.push("background-color: "+J+";")):m.push("background-color: transparent;");return m.join(" ")};
Cw2=function(J,c,m,b,x){var P=["yt-core-image"];c&&P.push(c);m||P.push("yt-core-image--fill-parent-height");b||P.push("yt-core-image--fill-parent-width");switch(J.contentMode){case "CONTENT_MODE_SCALE_ASPECT_FIT":P.push("yt-core-image--content-mode-scale-aspect-fit");break;case "CONTENT_MODE_SCALE_ASPECT_FILL":P.push("yt-core-image--content-mode-scale-aspect-fill");break;case "CONTENT_MODE_CENTER":P.push("yt-core-image--content-mode-center");break;default:P.push("yt-core-image--content-mode-scale-to-fill")}J.flipForRtlLayout&&
P.push("yt-core-image--flip-rtl");switch(x){case "TOP_START":var p;P.push(((p=document.body)==null?void 0:p.getAttribute("dir"))==="rtl"?"yt-core-image--object-position-top-right":"yt-core-image--object-position-top-left")}return P.join(" ")};
kTD=function(J){var c;if(J==null?0:(c=J.clientResource)==null?0:c.imageName){var m;J=(m=J.clientResource)==null?void 0:m.imageName;a:{switch(J){case "yt_premium_wordmark_header_light":case "yt_premium_wordmark_header_dark":m="yt-logos-ext:yt-logo-red-updated";break a;case "yt_wordmark_header_light":case "yt_wordmark_header_dark":m="yt-logos-ext:yt-logo-updated";break a}m=void 0}return m||aaQ.get(J)||J}};
niG=function(J){return _.w("mweb_wiz_skip_render")?HxT(J):ixT(J)};
HxT=function(J){return function(c){var m=h2o("wink-root");RD();dXu();cPD(m,_.C(J,c))}};
ixT=function(J){var c=c===void 0?!1:c;return function(m){if(!c||!_.w("mweb_skip_keto_to_c3_if_no_data")||m.data!==void 0){var b=mv(!1);try{var x=m.children;_.w("mweb_render_outside_patch_killswitch")||$B?x?Fc(_.C(J,m,x)):Fc(_.C(J,m)):_.qz(new _.w3("ketoToC3 called outside of a patch",{tagName:J.TAG_NAME}))}finally{mv(b)}}}};
TYq=function(){return window.matchMedia&&window.matchMedia("(orientation: landscape)").matches};
rCo=function(J,c){J.onViewportEntered=c;wbo.observe(J)};
sUo=function(){var J={rootMargin:"10%",threshold:.01};_.w("mweb_enable_set_io_root_to_null_safari")?J.root=null:_.w("mweb_enable_set_io_root_to_body_safari")&&(J.root=document.body);return new IntersectionObserver(function(c,m){c.filter(function(b){return b.intersectionRect.height>0}).forEach(function(b){b=b.target;
if(!_.w("mweb_enable_only_update_image_when_connected")||b.isConnected!==!1){var x;(x=b.onViewportEntered)==null||x.call(b);m.unobserve(b)}})},J)};
L8t=function(J,c,m,b,x){function P(){if(b){var t=b.loadedClass,I=b.notifyOnUnloaded;t&&_.Ad(J,t);I&&J.dispatchEvent(new Event("image-unloaded",{bubbles:!0,composed:!0}))}}
function p(){var t=m(c,J);t&&J.getAttribute("src")!==t&&(_.w("mweb_enable_only_update_image_when_connected")&&J.isConnected===!1||t===J.src||(J.src=t),P())}
x=x===void 0?!0:x;J.removeAttribute("src");P();c&&(x?rCo(J,p):p())};
DFQ=function(J,c,m){if(!c)return!1;c=m(c,J);m=J.getAttribute("src");return c&&c===m&&J.complete};
W8T=function(J,c){for(var m in c)m==="className"?J.className=c[m]:(l3[m]||l3[h$.default])(J,m,c[m])};
zOm=function(J,c,m,b){niG(_.RA)({contentMode:c.contentMode,loadedClass:c.loadedClass,isPreloaded:c.isPreloaded,notifyOnLoaded:c.notifyOnLoaded,notifyOnUnloaded:c.notifyOnUnloaded,preferredThumbnail:c.preferredThumbnail,preserveHeight:c.preserveHeight,preserveWidth:c.preserveWidth,objectPosition:c.objectPosition,targetWidth:c.targetWidth,targetHeight:c.targetHeight,shouldShowPlaceholder:c.shouldShowPlaceholder,useWidth:c.useWidth,alt:c.alt,className:c.className,onerror:c.onerror,onload:c.onload,style$:c.style$,
color:c.color,width:c.width,height:c.height,"aria-hidden$":c["aria-hidden$"],draggable:c.draggable,"data-disabled$":c["data-disabled$"],data:J,callback:m,renderLazy:b===void 0?!0:b,hideOn404:!1})};
faq=function(J,c,m){m=m===void 0?!1:m;var b=J.sources!==void 0?J:_.VmG(J);if(b){var x=c.onload;c.onload=function(I){var a=I.target;m&&a.naturalWidth===120||_.oA(a,"yt-core-image--loaded");c.notifyOnLoaded&&a.dispatchEvent(new Event("image-loaded",{bubbles:!0,composed:!0}));x==null||x(I)};
c.targetWidth&&c.preserveWidth&&(c.width=c.targetWidth);c.targetHeight&&c.preserveHeight&&(c.height=c.targetHeight);var P=_.pbu(b),p=P&&kTD(P);if(p)return(J=NYt(P))&&(c.color=J),{type:"icon",iconName:p,config:Object.assign({},c,c.alt?{}:{"aria-hidden$":"true"},{"aria-label$":c.alt,role:"img"})};if(J.sources===void 0){c.alt=J.accessibility&&J.accessibility.accessibilityData&&J.accessibility.accessibilityData.label||c.alt;c.style$=K8m(J,c.shouldShowPlaceholder,c.style$);var t;c.isPreloaded=!((t=_.L(J,
uTq))==null||!t.isPreloaded)}c.contentMode&&!b.contentMode&&(b.contentMode=c.contentMode);c.className=Cw2(b,c.className,c.preserveHeight,c.preserveWidth,c.objectPosition);c.loadedClass="yt-core-image--loaded";return{type:"image",image:b,config:c}}};
_.Qn=function(){var J=_.s$.apply(0,arguments);return _.Q5(_.eg,function(c){var m=J.map(function(b){return b(c)});
return function(){return void m.forEach(function(b){return void(b==null?void 0:b())})}})};
eM=function(J,c){var m=c==null?void 0:c.initial;return _.n2(function(){_.XD(!0);return m=J(m)},{equals:c==null?void 0:c.isEqual},"rSlKsc")};
YXu=function(J,c){if(J===c)return!0;if(J===void 0||c===void 0)return!1;var m,b,x,P,p,t,I,a;return J.content===c.content&&((m=J.styleRuns)==null?void 0:m.length)===((b=c.styleRuns)==null?void 0:b.length)&&((x=J.commandRuns)==null?void 0:x.length)===((P=c.commandRuns)==null?void 0:P.length)&&((p=J.attachmentRuns)==null?void 0:p.length)===((t=c.attachmentRuns)==null?void 0:t.length)&&((I=J.decorationRuns)==null?void 0:I.length)===((a=c.decorationRuns)==null?void 0:a.length)};
qXo=function(J,c){if(J){var m=lpt(J);if(m!=null&&m.content)if(_.w("attr_string_reactive"))niG(Xbe)({text:J,config:c});else{var b=!(c==null||!c.ariaLabel)||!(m.commandRuns&&m.commandRuns.length!==0||m.paragraphStyleRuns&&m.paragraphStyleRuns.length!==0);J=b?c==null?void 0:c.ariaLabel:null;b=b?"text":null;Wd("span",{className:UeJ(m,c),dir$:(c==null?0:c.userInput)?"auto":void 0,"aria-label$":J,role$:b},function(){if(m.styleRuns||m.commandRuns||m.attachmentRuns||m.decorationRuns){var x=FzT(m,c);B42(x,
c);x=xFQ(m.content,x);x=_.M(x.parts);for(var P=x.next();!P.done;P=x.next())ZxJ(P.value)}else BF(m.content)})}}};
ZxJ=function(J){typeof J==="string"?BF(J):yvo(J.data)?Wd("span",J.data.imageWrapperConfig,function(){zOm(J.data.image,J.data.imageConfig)}):Wd(J.data.tag,J.data.config,function(c){gCq(J.data)(c);
c=_.M(J.parts);for(var m=c.next();!m.done;m=c.next())ZxJ(m.value)})};
SXm=function(J){return J.parts.map(UFe)};
UFe=function(J){if(typeof J==="string")return J;J=yvo(J.data)?_.C("span",{el:_.Qn(JCe(J.data.imageWrapperConfig))},_.C(_.RA,Object.assign({},{data:J.data.image},J.data.imageConfig))):_.C(J.data.tag,{el:_.Qn(gCq(J.data),JCe(J.data.config))},J.parts.map(UFe));return K3(J)};
hOG=function(J,c){return J===c?!0:J===void 0||c===void 0?!1:J.noStyleRuns===c.noStyleRuns&&J.noLinkColor===c.noLinkColor&&J.noEndpoints===c.noEndpoints&&J.headerRuns===c.headerRuns&&J.isOverlay===c.isOverlay&&J.linkInheritColor===c.linkInheritColor&&J.userInput===c.userInput};
dFJ=function(J){return function(){var c,m,b,x,P,p,t,I,a,k,H,T,r,W;return{ariaLabel:(c=J.ariaLabel)==null?void 0:c.call(J),className:(m=J.className)==null?void 0:m.call(J),ellipsisTruncate:(b=J.ellipsisTruncate)==null?void 0:b.call(J),isOverlay:(x=J.isOverlay)==null?void 0:x.call(J),linkInheritColor:(P=J.linkInheritColor)==null?void 0:P.call(J),noEndpoints:(p=J.noEndpoints)==null?void 0:p.call(J),noStyleRuns:(t=J.noStyleRuns)==null?void 0:t.call(J),noLinkColor:(I=J.noLinkColor)==null?void 0:I.call(J),
noPreWrap:(a=J.noPreWrap)==null?void 0:a.call(J),noWrap:(k=J.noWrap)==null?void 0:k.call(J),skipOnClick:(H=J.skipOnClick)==null?void 0:H.call(J),stopPropagation:(T=J.stopPropagation)==null?void 0:T.call(J),userInput:(r=J.userInput)==null?void 0:r.call(J),headerRuns:(W=J.headerRuns)==null?void 0:W.call(J)}}};
$Ft=function(J){return J.value===""||J.value==="true"?!0:J.value==="false"?!1:isNaN(Number(J.value))?J.value:Number(J.value)};
jM=function(J,c){J=new GTo(J,c);_.Xc(J);throw J;};
Eir=function(J,c,m){var b=jWo(J);J._numRenders=0;try{var x=_.rPe(function(){return _.C(c,Object.assign({},m))})}catch(p){var P=function(t){t.args||(t.args=[]);
t.args.push("Error in web component wrapper");t.args.push(J.tagName.toLowerCase());return t};
_.Zt(p instanceof Error?P(p):new GTo("Wiz rendering error",J.tagName.toLowerCase()));throw p;}finally{jWo(b)}return x};
_.lv=function(J,c,m){function b(k){var H={};k=_.M(k);for(var T=k.next();!T.done;T=k.next()){T=T.value;var r=void 0,W=void 0,Y=void 0,Z=_.Cl((Y=(W=(r=T).getAttribute)==null?void 0:W.call(r,"slot"))!=null?Y:"children");if(r=H[Z])r.push(T);else if(Z in P||Z==="children")H[Z]=[T]}k=_.M(Object.keys(H));Z=k.next();for(T={};!Z.done;T={content$jscomp$55:void 0},Z=k.next())Z=Z.value,Z!=="children"&&(T.content$jscomp$55=H[Z],H[Z]=function(d){return function(){return d.content$jscomp$55}}(T));
return H}
m=m===void 0?{}:m;J.componentType!==L2||jM("Components must be marked reactive to be used from web component wrapper.",c);gU.has(c)&&jM("Do not register a Wiz component to be rendered with boththe deprecated wrapper and the signals based wrapper.",c);var x,P=(x=m.props)!=null?x:{};Jd.add(c);var p=viT();x=function(){var k=p.apply(this,arguments)||this;k.rawProps={};k.queuingRender=!1;k.dispose=function(){};
k.isWebComponentWrapper=!0;k.isReparenting=!1;k.hasRendered=!1;return k};
_.D(x,p);x.prototype.render=function(){this.hasRendered=!0;for(var k=_.M([].concat(_.L6(this.attributes))),H=k.next();!H.done;H=k.next())H=H.value,H.name!=="slot"&&this.removeAttribute(H.name);k=Object.assign({},this.componentProps,this.slotProps);H=_.M(Eir(this,J,k));k=H.next().value;H=H.next().value;!(k[0]instanceof Element)||k.length>1?jM("Wrapped Wiz components must return a single root element.",c):(k=k[0].tagName.toLowerCase(),k!==c&&jM("Wrapped Wiz components must have the same host tag name as the web component. Expected tag '"+
(k+" !== '"+c),c),this.dispose=H)};
x.prototype.setUpProps=function(){for(var k=this.rawProps,H=this.attributes,T=_.M(Object.keys(P)),r=T.next();!r.done;r=T.next()){r=r.value;var W=void 0;((W=this)==null?0:W[r])&&this[r]!==OxD&&k[r]===void 0&&(k[r]=this[r],(W=Object.getOwnPropertyDescriptor(this.constructor.prototype,r))&&Object.defineProperty(this,r,W))}T=_.M(H);for(r=T.next();!r.done;r=T.next()){W=r.value;r=_.Cl(W.name);var Y=r==="class"&&!H.getNamedItem("class-name");if(r in P||Y)W=$Ft(W),r!=="class"||k.className?k[r]=W:k.className=
W}H={};for(var Z in P)P[Z]!==_.Fz&&P[Z]!==AC2&&(k[Z]instanceof Function&&jM("Function props must be configured as STATIC, not SIGNAL.",c),r=_.M(_.K2(k[Z],void 0,"Ri8MSe")),T=r.next().value,r=r.next().value,H[Z]=r,k[Z]=T);k=_.M([k,H]);this.componentProps=k.next().value;this.setters=k.next().value;this.slotProps=b(this.childNodes)};
x.prototype.connectedCallback=function(){y1===c&&(this._isInert=!0);this._isInert||(this.isReparenting?this.isReparenting=!1:(this.queuingRender="data"in P&&!this.rawProps.data&&!this.getAttribute("data"),this.hasRendered||this.queuingRender||this.setUpProps(),this.queuingRender||this.render()))};
x.prototype.disconnectedCallback=function(){if(!this._isInert){var k;a:{if(_.RO3)for(k=this;k;){if(_.oiQ.has(k)){k=!0;break a}k=k.parentElement}k=!1}if(k)this.isReparenting=!0;else{this.dispose();if(!this.queuingRender){k=_.M([].concat(_.L6(this.attributes)));for(var H=k.next();!H.done;H=k.next())H=H.value,H.name!=="slot"&&this.removeAttribute(H.name)}this.innerText="";A2T(this)}}};
x.prototype._setPendingPropertyOrPath=function(){};
x.prototype.notifyPath=function(){};
_.eE.Object.defineProperties(x.prototype,{__isPropertyEffectsClient:{configurable:!0,enumerable:!0,get:function(){return!1}},
__dataHasAccessor:{configurable:!0,enumerable:!0,get:function(){}}});
for(var t=_.M(Object.keys(P)),I=t.next(),a={};!I.done;a={prop$jscomp$104:void 0},I=t.next())a.prop$jscomp$104=I.value,I=void 0,((I=m.legacyPolymer)==null?0:I.forwardHostProps)&&doD.has(a.prop$jscomp$104)||Object.defineProperty(x.prototype,a.prop$jscomp$104,{set:function(k){return function(H){var T=this;this._isInert||(this.setters?TL(function(){var r,W;return void((W=(r=T.setters)[k.prop$jscomp$104])==null?void 0:W.call(r,H))}):(this.rawProps[k.prop$jscomp$104]=H,this.queuingRender&&k.prop$jscomp$104===
"data"&&H!=null&&(this.queuingRender=!1,this.setUpProps(),this.render())))}}(a),
get:QUr.has(a.prop$jscomp$104)?void 0:function(){return OxD}});
customElements.define(c,x)};
_.eOT=function(J,c){return(J=_.yn(J,c))?_.ah(_.n1(J)):null};
_.Bd=function(J){if(J=_.yn(J,Number.MAX_VALUE,void 0,"width"))return _.n1(J)};
_.yn=function(J,c,m,b){b=b===void 0?"width":b;if(!J||!J.length)return null;if(_.w("kevlar_tuner_should_always_use_device_pixel_ratio")){var x=window.devicePixelRatio;_.w("kevlar_tuner_should_clamp_device_pixel_ratio")?x=Math.min(x,_.c7("kevlar_tuner_clamp_device_pixel_ratio")):_.w("kevlar_tuner_should_use_thumbnail_factor")&&(x=_.c7("kevlar_tuner_thumbnail_factor"));jU2=x}else jU2||(jU2=window.devicePixelRatio);x=jU2;_.w("kevlar_tuner_should_always_use_device_pixel_ratio")?c*=x:x>1&&(c*=x);if(_.w("kevlar_tuner_min_thumbnail_quality"))return J[0].url||
null;x=J.length;if(_.w("kevlar_tuner_max_thumbnail_quality"))return J[x-1].url||null;if(m)for(var P=0;P<x;P++)if(J[P].url.indexOf(m)>=0)return J[P].url||null;for(m=0;m<x;m++)if(J[m][b]>=c)return J[m].url||null;for(c=x-1;c>0;c--)if(J[c][b])return J[c].url||null;return J[0].url||null};
yCe=function(){gp.size?setTimeout(function(){JP(F82)},0):lao=0};
F82=function(){var J=(0,_.y4)(),c=null,m=!1;gp.forEach(function(x){x.loaded=!0;x.loadTime=J;x.pendingPaint=!1;var P=BYf.get(x);P&&P.resolve(J);c=x;m||!x.ftlEligible&&x.tagName!=="YT-THUMBNAIL-VIEW-MODEL"||(m=!0)});
var b;((b=c)==null?0:b.markDirty)&&c.markDirty();gp.clear();lao=0;m&&giG(J)};
J4T=function(J){gp.add(J);J.pendingPaint=!0;lao||(lao=_.cP(_.ft,yCe))};
c42=function(J){J.loaded=!1;J.loadTime=Infinity;var c=BYf.get(J);c&&(c.reject(Error("jh")),BYf.delete(J));J.pendingPaint&&(gp.delete(J),J.pendingPaint=!1)};
_.m4r=function(J){var c=J.indexOf(":");return c===-1?{originalName:J}:{originalName:J.substring(0,c),datasyncId:J.substring(c+1)}};
_.x4J=function(){return _.N(function(J){if(bMT!==void 0)return J.return(bMT);bMT=new Promise(function(c){var m;return _.N(function(b){switch(b.nextAddress){case 1:return _.xL(b,2),_.K(b,_.m$.open("test-only"),4);case 4:return _.K(b,_.m$.delete("test-only"),5);case 5:_.EO(b,3);break;case 2:if(m=_.NM(b),m instanceof Error&&m.name==="SecurityError")return c(!1),b.return();case 3:c("caches"in window),_.tD(b)}})});
return J.return(bMT)})};
Mam=function(){return _.N(function(J){if(J.nextAddress==1)return _.K(J,_.x4J(),2);if(!J.yieldResult)return J.return(void 0);VaQ||(VaQ=new PTQ);return J.return(VaQ)})};
pNG=function(J){var c,m,b,x;return _.N(function(P){switch(P.nextAddress){case 1:return _.K(P,Mam(),2);case 2:c=P.yieldResult;if(!c)throw Error("lh");return _.K(P,c.open("yt-player-local-img"),3);case 3:return m=P.yieldResult,_.K(P,m.match(J),4);case 4:b=P.yieldResult;if(!b)throw Error("mh");return _.K(P,b.blob(),5);case 5:return x=P.yieldResult,P.return(x)}})};
Nle=function(J,c){for(var m in J)if(J.hasOwnProperty(m)&&c[m])return m;return null};
taR=function(J){return"stamp"+J.replace("-","_")+"_"};
IR3=function(J){var c=J.match(/\[\[([\w\.]+)\]\]/);if(c&&c.length>1)return c[1];_.Xc(Error("oh`"+J));return null};
K6e=function(J){return J===void 0?_.Ss("REUSE_COMPONENTS",!1):J||!1};
kbG=function(J,c,m){m&&(c.is?(CTm.has(c)&&(J=CTm.get(c),m=J.listener,delete c[J.property],m.type==="element"&&c.removeEventListener(m.eventName,m.handler),CTm.delete(c)),aRo(c)):c.__proto__==HTMLElement.prototype&&(c=new _.w3("Rendererstamper removed a non custom element","Stamper: "+J+" element: "+(c&&c.nodeName)),_.qz(c)))};
HMG=function(J,c,m,b){var x=c.node?c.node:c;_.Bj(m).parentNode===x&&(c.removeChild(m),kbG(J,m,b));if(J=bB.get(m))bB.delete(m),_.ft.cancelJob(J);m.hidden=!1};
iMQ=function(J,c,m,b){if(c&&c.children&&(m=c.children[m]))if(_.Ss("DEFERRED_DETACH"))for(;m&&!bB.has(m);){var x=J,P=c,p=m,t=b;p.hidden=!0;x=_.rv(_.ft,HMG.bind(null,x,P,p,t),0);bB.set(p,x);m=m.nextElementSibling}else for(;(p=c.lastElementChild)&&(c.removeChild(p),kbG(J,p,b),p!=m););};
nu3=function(J){var c=_.oN("__slot-el");_.uN(function(){for(var m=_.M(J.slotContent),b=m.next();!b.done;b=m.next())c.value.appendChild(b.value)});
return _.C("__slot-el",{el:c,skip:!0})};
_.xx=function(J,c,m){m=m===void 0?Tlq:m;gU.add(c);var b;(b=m).propNames!=null||(b.propNames=[]);var x=new Set(m.propNames),P=viT();b=function(){var a=P.call(this)||this;a.props={};a.isUpdating=!1;a.hasAttached=!1;a.isInert=!1;a.updateQueued=!1;a.initialClasses=[];eIG(a,c);return a};
_.D(b,P);b.prototype.forwardKebabCaseProp=function(a,k){a=_.Cl(a);if(x.has(a)||a==="children")this.props[a]=k};
b.prototype.afterFirstPatch=function(){this.isUpdating=!0;for(var a=_.M(this.initialClasses),k=a.next();!k.done;k=a.next())(k=k.value)&&this.classList.add(k);this.initialClasses.length>0&&(this.initialClasses.length=0);this.isUpdating=!1};
b.prototype.handleSlottedContent=function(){for(var a=new Map,k=_.M(this.children),H=k.next();!H.done;H=k.next()){H=H.value;var T=void 0,r=(T=H.getAttribute("slot"))!=null?T:"children";(T=a.get(r))?T.push(H):a.set(r,[H]);if(!H.getAttribute("key")){var W=void 0,Y=void 0;H.setAttribute("key",r+"_"+((Y=(W=T)==null?void 0:W.length)!=null?Y:0))}}a=_.M(a);for(k=a.next();!k.done;k=a.next())H=_.M(k.value),k=H.next().value,H=H.next().value,this.forwardKebabCaseProp(k,_.C(nu3,{slotContent:H}))};
b.prototype.connectedCallback=function(){var a=this;if(!eIG(this,c)&&!this.isInert)if(this.hasAttached)this.enqueueUpdate();else{for(var k=_.M(this.attributes),H=k.next();!H.done;H=k.next())H=H.value,this.forwardKebabCaseProp(H.name,$Ft(H));this.handleSlottedContent();m.synchronous?(this.update(),this.afterFirstPatch()):this.enqueueUpdate().then(function(){a.afterFirstPatch()});
this.hasAttached=!0}};
b.prototype.attributeChangedCallback=function(a,k,H){this.isInert||this.isUpdating||this.isConnected||a!=="class"||this.initialClasses.push.apply(this.initialClasses,_.L6(H.split(" ")))};
b.prototype.disconnectedCallback=function(){AIu(this)};
b.prototype.update=function(){if(!this.isInert){this.isUpdating=!0;try{var a,k;cPD(this,_.C(J,Object.assign({},this.props,{idomKey:(k=(a=this.__incrementalDOMData)==null?void 0:a.key)!=null?k:c})),!0)}catch(T){var H=T instanceof Error?T:new _.w3("Wiz rendering error");H.args||(H.args=[]);H.args.push("Error in deprecated web component wrapper");H.args.push(c.toLowerCase());_.Xc(H);throw T;}finally{this.updateQueued=this.isUpdating=!1}}};
b.prototype.enqueueUpdate=function(){var a=this;return _.N(function(k){if(m.synchronous)return a.update(),k.return();if(a.updateQueued)return k.return();a.updateQueued=!0;return k.return(Promise.resolve().then(function(){a.update()}))})};
b.prototype.notifyPath=function(){m.enableUnsafeRenderOnNotifyPath&&this.enqueueUpdate()};
_.eE.Object.defineProperties(b,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["class"]}}});
for(var p=_.M(m.propNames),t=p.next(),I={};!t.done;I={prop$jscomp$106:void 0},t=p.next())I.prop$jscomp$106=t.value,Object.defineProperty(b.prototype,I.prop$jscomp$106,{set:function(a){return function(k){this.isInert||k===this.props[a.prop$jscomp$106]||(this.props[a.prop$jscomp$106]=k,this.hasAttached&&!this.isUpdating&&this.enqueueUpdate())}}(I)});
customElements.define(c,b)};
_.wNt=function(J,c){return _.P2(J.entities,"markersEngagementPanelSyncEntity",c)};
r4t=function(J,c){return _.P2(J.entities,"fantasyWinProbabilityEntity",c)};
sGq=function(J,c){return _.P2(J.entities,"fantasyTeamEntity",c)};
L6u=function(J,c){return _.P2(J.entities,"fantasyPlayerEntity",c)};
D4q=function(J,c){return _.P2(J.entities,"booleanEntity",c)};
W6G=function(J,c){return _.P2(J.entities,"qrCodeEntity",c)};
zDr=function(J){return _.P2(J.entities,"likeButtonAnimationEntity","EhxsaWtlX2J1dHRvbl9hbmltYXRpb25fZW50aXR5ILcEKAE%3D")};
u0G=function(){if(Vd)return Vd;if(window.lottie)return Vd=Promise.resolve(window.lottie);var J=_.Y$(_.Ub("LOTTIE_URL"));return J?Vd=new Promise(function(c,m){var b=document.createElement("script");b.addEventListener("load",function(){c(lottie)});
b.addEventListener("error",function(x){var P="Lottie library failed to load.";x?x.message&&(P+=" Original description: "+x.message,_.Ue(x,P)):x=Error(P);_.qz(x);m(x)});
b.setAttribute("async","");_.$h(b,J);document.head.appendChild(b)}):Promise.reject(Error("ph"))};
fRt=function(){return Vd?Vd:u0G()};
Yhf=function(J){if(J)switch(J){case "yt-icons:like":case "LIKE":case "LIKE_SELECTED":if(_.w("kevlar_use_wil_icons"))return J=(J=zDr(_.Rc().getState()))&&J.animationLightUrl&&J.animationDarkUrl?{name:"custom_animated_like_icon",nameDarkTheme:"custom_animated_like_icon_dark",path:J.animationLightUrl,pathDarkTheme:J.animationDarkUrl,lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"CUSTOM_LIKE",totalFrames:60,lazyLoad:!0}:void 0,J?J:PP.get("LIKE")}};
XNq=function(J){var c=Yhf(J);if(c)return c;switch(J){case "FACE_FILLED_HAPPY":case "FACE_OUTLINED_HAPPY":return PP.get("FACE_HAPPY");case "FACE_FILLED_MEH":case "FACE_OUTLINED_MEH":return PP.get("FACE_MEH");case "FACE_FILLED_SAD":case "FACE_OUTLINED_SAD":return PP.get("FACE_SAD");case "FACE_FILLED_UNHAPPY":case "FACE_OUTLINED_UNHAPPY":return PP.get("FACE_UNHAPPY");case "FACE_FILLED_VERY_HAPPY":case "FACE_OUTLINED_VERY_HAPPY":return PP.get("FACE_VERY_HAPPY");case "NOTIFICATIONS_NONE":return PP.get("NOTIFICATION_BELL")}};
qho=function(J,c){if(!J||ZMJ)c=!1;else{if(J.closest){var m=!!Yhf(c);m=_.Ub("ID_TOKEN")&&m?!!J.closest("segmented-like-dislike-button-view-model"):!1}else m=!1;if(!m)if(J.closest)if(m=!_.Ub("ID_TOKEN"),J=J.closest("ytd-subscription-notification-toggle-button-renderer-next"),m||!J)m=!1;else{var b;m=((b=J.data)==null?void 0:b.targetId)==="notification-bell"&&c!=="EXPAND_MORE"}else m=!1;c=m}return c};
U4Q=function(J){var c,m;return _.N(function(b){switch(b.nextAddress){case 1:return _.xL(b,2),_.K(b,fetch(J),4);case 4:return c=b.yieldResult,_.K(b,c.json(),5);case 5:return b.return(b.yieldResult);case 2:m=_.NM(b),_.qz(m),_.tD(b)}})};
Sh2=function(J,c){var m,b,x;return _.N(function(P){if(P.nextAddress==1)return(m=c?J.pathDarkTheme:J.path)?_.K(P,Promise.all([U4Q(m),u0G()]),2):P.return();b=P.yieldResult;x=b[0];Md.set(m,x);_.tD(P)})};
_.pq=function(){var J=_.s$.apply(0,arguments);return function(){for(var c="",m=_.M(J),b=m.next();!b.done;b=m.next())if(b=b.value,typeof b==="function"&&(b=b()),b)if(typeof b==="string")c+=" "+b;else for(var x in b)if(b.hasOwnProperty(x)){var P=b[x];typeof P==="function"&&(P=P());P&&(c+=" "+x)}c=c.trim()||void 0;return _.XD(c)}};
_.Nd=function(J){var c;var m=J.data;var b=J.className;var x=J.animationName;var P=J.animationRef;var p=(c=J.elRefForInterop)||_.oN("lottie-component"),t;_.f2(function(){var k;return void((k=t)==null?void 0:k.destroy())});
var I;_.ui(function(){var k=_.XD(x);if(k!==I){I=k;var H=Object.assign({},{animationName:k,animationRef:_.XD(P)},_.XD(m));try{_.BG().resolve(hD3)().then(function(W){var Y;(Y=t)==null||Y.destroy();Y=H.animationRef;var Z=H.listeners;W=W.loadAnimation(Object.assign({},{container:p.value},H.animationConfig));Y&&(Y.lottieEl=W);if(Z)for(Y=_.M(Object.entries(Z)),Z=Y.next();!Z.done;Z=Y.next()){var d=_.M(Z.value);Z=d.next().value;(d=d.next().value)&&W.addEventListener(Z,d)}t=W})}catch(W){k=W;
var T="LottieComponent error.";k.message&&(T+=" Original description: "+k.message);_.Ue(k,T);_.qz(k);var r;((r=H.listeners)==null?0:r.error)&&H.listeners.error(k)}}},"Cu2JNe");
var a=_.pq("ytLottieComponentHost",b);return _.C(FCf,{cond:function(){return!c},
then:function(){return _.C("lottie-component",{class:a,el:p})}})};
$4f=function(J,c,m,b){function x(p,t){if(c.value===t&&J!=null&&J.value){for(;J.value.firstChild;)J.value.removeChild(J.value.firstChild);J.value.classList.add("yt-spec-icon-shape");p(J.value,b)}}
m=_.d4e(_.BG().resolve(_.Ml),m);if(typeof m==="function")c.value=null,x(m,null);else{var P=new _.IN(m.then,m);c.value=P;P.then(function(p){x(p,P)})}};
EuG=function(J,c){var m=document.createElement("div"),b=_.Dc(m,function(){return _.C(_.n,{cond:J,then:function(x){return _.C(Gbq,{data:x,options:c})}})});
return[m,b]};
_.tP=function(){for(var J=[],c=_.M(_.s$.apply(0,arguments)),m=c.next();!m.done;m=c.next())if(m=m.value)if(typeof m==="string")J.push(m);else{m=_.M(Object.entries(m));for(var b=m.next();!b.done;b=m.next()){var x=_.M(b.value);b=x.next().value;(x=x.next().value)&&J.push(b)}}return J.join(" ")};
RDJ=function(J){var c=_.oN("animated-rolling-character"),m=Yy(),b=QM(J.character)||QM(J.previousCharacter);pyG(function(){if(J.marginMultiplier){var x;(x=m.value)==null||x.cancel();b?(x=J.previousCharacter?Number(J.previousCharacter)+10:J.rollUp?0:30,J.shouldAnimate||(x-=vuu(J,x))):(x=J.rollUp?0:2,J.shouldAnimate||(x-=J.rollUp?-1:1));c.value.style.marginTop="-"+x*J.marginMultiplier+"px";J.shouldAnimate?m.value=OMJ(c.value,J,x,b):c.value.style.display=J.character?"":"none"}});
return _.C("animated-rolling-character",{el:c,class:"animated-rolling-character-wiz"},ld(b,function(){for(var x=[],P=1;P<30;P++)x.push(_.C("div",null,P%10));return _.C(_.cG,null,_.C("div",null,"\u00a0"),x,_.C("div",null,"\u00a0"))},function(){return A4Q(J.character)}))};
A4Q=function(J){return _.C(_.cG,null,_.C("div",null,"\u00a0"),_.C(_.cG,null,ld(!J||_.Mf(J),function(){return _.C("div",null,"\u00a0")},function(){return _.C("div",null,J)})),_.C("div",null,"\u00a0"))};
OMJ=function(J,c,m,b){m=new Animation(new KeyframeEffect(J,[{transform:"translateY(0px)"},{transform:"translateY("+(b?vuu(c,m):c.rollUp?-1:1)*c.marginMultiplier+"px)"}],out),document.timeline);c.character?(J.style.display="",m.onfinish=null):m.onfinish=function(){J.style.display="none"};
m.play();return m};
vuu=function(J,c){var m=Number(J.character)+10;if(J.previousCharacter)if(J.character){var b=Number(J.character),x=Number(J.previousCharacter);J=J.rollUp?x<b?m:m+10:x<b?m-10:m}else J=J.rollUp?30:0;else J=J.character==="0"?m:J.rollUp?m-10:m+10;return c-J};
_.IO=function(J,c){return function(m){var b={},x;for(x in m){var P=void 0,p=void 0;((P=c)==null?0:(p=P.callbacks)==null?0:p[x])||(b[x]=m[x])}return _.C(wP3,null,function(){for(var t in b)m[t]=_.XD(b[t]);m.disableReactiveLogging=!0;return _.C(J,Object.assign({},m))})}};
jGr=function(J,c,m,b,x,P,p){m=new Animation(new KeyframeEffect(J,[{transform:"translateY(0px)"},{transform:"translateY("+(P?QGr(c,m,b,x):b?-1:1)*p+"px)"}],eDD),document.timeline);c?(J.style.display="",m.onfinish=null):m.onfinish=function(){J.style.display="none"};
m.play();return m};
QGr=function(J,c,m,b){var x=Number(J)+10;c?J?(J=Number(J),c=Number(c),m=m?c<J?x:x+10:c<J?x-10:x):m=m?30:0:m=J==="0"?x:m?x-10:x+10;return b-m};
lRR=function(J){var c=Yy(),m=Yy();ze(function(){c.value=J.numberText;m.value=J.numberValue},[J.numberText]);
var b=J.fontSizeMultiplier?J.heightPx*J.fontSizeMultiplier:J.heightPx,x=Ca2(function(){if(J.numberText){var p=J.numberText;var t=J.forceRollUp||!m.value||!J.numberValue||m.value<J.numberValue;var I=!!J.shouldAnimate,a=c.value,k=[],H=0,T=0,r=(a?a.replace(/\D/g,"").length:0)-(p?p.replace(/\D/g,"").length:0);a=a?a.split(/(\d)/).filter(Boolean):[];for(p=p.split(/(\d)/).filter(Boolean);r<0;){var W=p[T];k.push({character:W,rollUp:t,marginMultiplier:b,shouldAnimate:I});T++;QM(W)&&r++}for(;H<r;)W=a[H],k.push({previousCharacter:W,
rollUp:t,marginMultiplier:b,shouldAnimate:I}),H++,QM(W)||r++;for(;T<p.length;)r=p[T],W=a[H],QM(r)===QM(W)?(T++,H++):QM(r)?(H++,r=void 0):QM(W)&&(T++,W=void 0),k.push({character:r,previousCharacter:W,rollUp:t,marginMultiplier:b,shouldAnimate:I});t=k}else t=[];return t},[J.numberText]),P=J.numberText?["height: "+b+"px;",
"line-height: "+J.heightPx+"px;"].join(" "):"";return _.C("yt-animated-rolling-number",{class:"animated-rolling-number-wiz",style:P,dir:"ltr","aria-hidden":"true"},x.map(function(p){return _.C(F6e,Object.assign({},p))}))};
_.Kq=function(J){return ydD(function(c){c=J==null?void 0:J(c);return typeof c==="boolean"?c:!0})};
Cq=function(J){return function(){return J()?J():void 0}};
y4t=function(J){return new KeyframeEffect(J,[{offset:0,opacity:.1,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"},{offset:1,opacity:0}],{duration:400})};
Bl3=function(J){return new KeyframeEffect(J,[{offset:0,opacity:.2,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:0}],{duration:400})};
_.aO=function(J){var c=eM(function(m){m=m?ID(m[0]):void 0;return _.K2(J(m),void 0,"AwTxXe")},{isEqual:function(m,b){return ID(m[0])===ID(b[0])}});
return[function(){return c()[0]()},
function(m){return void c()[1](m)}]};
_.kx=function(J){return function(){var c="",m;for(m in J){for(var b=J[m];typeof b==="function";)b=b();b!==void 0&&b!==null&&(c+="; "+m+": "+b)}return c.length>0?_.XD(c.slice(2)):_.XD()}};
guR=function(J){switch(J){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"}};
bAR=function(J,c,m,b,x,P){var p=JYD(J),t=p.disabled,I=p.iconPosition,a=p.style,k=p.focused,H=function(){return!!W()&&I()==="icon-only"},T=function(){return!!W()&&I()==="icon-only-40"},r=function(){return!!W()&&I()==="icon-with-label"},W=function(){return!!c||!(b==null||!b())};
return{type:function(){return a()==="call-to-action-inverse"?"text":a()==="overlay-dark"&&J().type!=="filled"&&J().type!=="tonal"?"tonal":J().type},
shouldFocus:function(){return(k()||(P==null?void 0:P()))&&!t()},
hasIconLeading:function(){return!!W()&&I()==="leading"},
hasIconTrailing:function(){return!!W()&&I()==="trailing"},
hasIconLeadingTrailing:function(){return!!W()&&!!(m||x!=null&&x())&&I()==="leading-trailing"},
hasIconOnly:H,hasIconOnly40:T,hasIconWithLabel:r,iconButton:function(){return H()||T()||r()},
visiblyDisabled:function(){return(t()?"disabled":J().state)==="disabled"||t()},
overrideSmallSizeIcon:function(){return cYf(J(),W())},
iconToRender:c?c:function(){return _.C(_.HP,{icon:b,size:function(){return iB(J(),!0)},
active:function(){return J().toggled},
iconFilter:function(){return mge(J())}})},
secondaryIconToRender:m?m:function(){return _.C(_.HP,{icon:x,size:function(){return iB(J(),!0)},
active:function(){return J().toggled},
iconFilter:function(){return mge(J())}})}}};
JYD=function(J){return{size:function(){return J().size},
style:function(){return J().style},
focused:function(){return J().focused},
disabled:function(){return J().disabled},
onTap:function(c){var m,b;return(b=(m=J()).onTap)==null?void 0:b.call(m,c)},
alignByText:function(){return J().alignByText},
aTagConfig:function(){return J().aTagConfig},
customColors:function(){return J().customColors},
segmentedPosition:function(){return J().segmentedPosition},
toggled:function(){return J().toggled},
toggleable:function(){return J().toggleable},
accessibilityLabel:function(){return J().accessibilityLabel},
onToggle:function(c){var m,b;return(b=(m=J()).onToggle)==null?void 0:b.call(m,c)},
iconPosition:function(){return J().iconPosition},
oneOffCustomTextWrap:function(){return J().oneOffCustomTextWrap},
disableTextEllipsis:function(){return J().disableTextEllipsis},
disableBackdropFilter:function(){return J().disableBackdropFilter},
tooltipText:function(){return J().tooltipText},
ariaHidden:function(){return J().ariaHidden},
tabIndex:function(){return J().tabIndex},
buttonText:function(){return J().buttonText},
formattedButtonText:function(){return J().formattedButtonText},
animatedTextProps:function(){return J().animatedTextProps}}};
xgr=function(J){return J.style==="overlay-dark"?4:J.style==="overlay"?J.type==="filled"?4:3:J.type==="filled"||J.style==="call-to-action-inverse"||J.style==="mono-inverse"?2:1};
cYf=function(J,c){c=(J.iconPosition==="icon-only"||J.iconPosition==="icon-only-40"||J.iconPosition==="icon-with-label")&&c;return!J.segmentedPosition&&c&&J.size==="S"};
Vem=function(){return!_.w("web_disable_backdrop_filter")};
iB=function(J,c){switch(J.size){case "XS":return 16;case "S":return cYf(J,c)?24:16;default:return 24}};
Pxo=function(J){switch(J){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"}};
Me2=function(J){switch(J){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"}};
pcT=function(J){switch(J){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"}};
mge=function(J){if(J.style==="overlay-dark"&&J.type==="tonal")return"drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.3))"};
NAt=function(J){if(!J)return{};var c=J.color,m=J.backgroundColor;J=J.borderColor;var b="";c&&(b+="color: "+c+";");m&&(b+="background-color: "+m+";");J&&(b+="border-color: "+J+";");return{style:b}};
aJm=function(J,c,m){var b=J.buttonText,x=J.formattedButtonText,P=J.formattedButtonTextLegacy,p=J.animatedTextProps,t=J.style,I=J.size,a=J.focused,k=J.disabled,H=J.onTap,T=J.alignByText,r=J.aTagConfig,W=J.customColors,Y=J.segmentedPosition,Z=J.toggled,d=J.toggleable,G=J.accessibilityLabel,e=J.onToggle,A=J.iconPosition,l=J.oneOffCustomTextWrap,y=J.disableTextEllipsis,pG=J.disableBackdropFilter,kt=J.tooltipText,nG=J.ariaHidden,fG=J.tabIndex,Yt=J.state,Z3=J.type;t==="call-to-action-inverse"&&(Z3="text");
t==="overlay-dark"&&Z3!=="filled"&&Z3!=="tonal"&&(Z3="tonal");var oR=!!c&&A==="leading",Em=!!c&&A==="trailing",X$=!!c&&!!m&&A==="leading-trailing",Hu=!!c&&A==="icon-only",S6=!!c&&A==="icon-only-40",a2=!!c&&A==="icon-with-label",Nu=Hu||S6||a2;k&&(Yt="disabled");var cu=Yt==="disabled"||k;Yt=cYf(J,!!c);var t8={},I_=(t8["yt-spec-button-shape-next"]=!0,t8[Pxo(Z3)]=!0,t8[Me2(t)]=!cu,t8["yt-spec-button-shape-next--disabled"]=!!cu,t8[pcT(I)]=!0,t8["yt-spec-button-shape-next--focused"]=!!a&&!k,t8["yt-spec-button-shape-next--icon-trailing"]=
Em,t8["yt-spec-button-shape-next--icon-leading"]=oR,t8["yt-spec-button-shape-next--icon-leading-trailing"]=X$,t8["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=X$&&!(b||x),t8["yt-spec-button-shape-next--icon-button"]=Hu||a2,t8["yt-spec-button-shape-next--icon-only-default"]=S6,t8["yt-spec-button-shape-next--align-by-text"]=!!T,t8["yt-spec-button-shape-next--segmented-start"]=Y==="start",t8["yt-spec-button-shape-next--segmented-end"]=Y==="end",t8["yt-spec-button-shape-next--override-small-size-icon"]=
Yt,t8["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=!!l,t8["yt-spec-button-shape-next--disable-text-ellipsis"]=!!y,t8["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=!pG&&Vem(),t8),fU=function(){if(p)niG(_.ter)(p);else if(P)P(A==="icon-with-label"||l?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",textAlignment:"TEXT_ALIGNMENT_CENTER"}:{});else if(x){var j6=A==="icon-with-label"||l;qXo(Object.assign({},x,j6?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}:
{}),{noLinkColor:!0,noWrap:!j6})}else b&&BF(b)},Nf=function(j6){H==null||H(j6);
d&&(e==null||e(j6))},wL=r?IJ2:K22,qu=r?"aria-current$":"aria-pressed$",O5=function(){c&&(oR||X$||Nu)&&function(){nq({className:"yt-spec-button-shape-next__icon",
"aria-hidden$":!0},function(){c()})}();
(b||x||P||p)&&!Nu&&function(){nq({className:"yt-spec-button-shape-next__button-text-content"},function(){fU()})}();
Em&&function(){nq({className:"yt-spec-button-shape-next__icon"},function(){c()})}();
X$&&function(){nq({className:"yt-spec-button-shape-next__secondary-icon"},function(){m()})}();
k||niG(_.TH)({model:{color:xgr(J)}})},LQ=function(){var j6={};
wL(Object.assign({},(j6.className=_.tP(I_),j6.onclick=r?void 0:Nf,j6.disabled=k,j6["aria-disabled$"]=cu,j6.style=k&&r?"pointer-events:none":void 0,j6[qu]=d?!!Z:void 0,j6["aria-label$"]=G,j6.title$=kt!=null?kt:"",j6["aria-hidden$"]=nG,j6.tabindex$=fG,j6),r,NAt(W)),function(){O5()})};
a2?(I={},t=(I["yt-spec-button-shape-with-label"]=!0,I["yt-spec-button-shape-with-label--is-overlay"]=t==="overlay"||t==="overlay-dark",I),Cxu({className:_.tP(t)},function(){LQ();nq({"aria-hidden$":!0,className:"yt-spec-button-shape-with-label__label"},fU)})):LQ()};
kSJ=function(J,c){if(!yx){var m;NoR(function(){return m=nxf(J,c)});
return m}return nxf(J,c)};
HAG=function(){var J=zMt(yx||void 0,kHT);return WvT(J)?void 0:J};
ws=function(J,c){_.ql(J,Object.assign({},c,{forceClickLogging:!0}))};
iAm=function(J,c,m,b){var x=void 0;return function(P){var p=_.ZG(m?J==null?void 0:J.onDisabledTap:J==null?void 0:J.onTap);if(p){var t;x=(t=x)!=null?t:c==null?void 0:c.value;if(p)if(_.w("web_button_vm_click_client_ve_killswitch"))ws(p,Object.assign({},{form:{element:x,event:P}},void 0));else{var I;t=p==null?void 0:p.clickTrackingParams;var a,k=J==null?void 0:(I=J.loggingDirectives)==null?void 0:(a=I.clientVeSpec)==null?void 0:a.uiType;I=k&&!t?_.rs(k):void 0;ws(p,Object.assign({},{form:{element:x,event:P}},
{clickedVisualElement:I}))}}b&&b(P)}};
nQm=function(J){switch(J){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"}};
TA3=function(J){switch(J){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"}};
wcR=function(J){switch(J){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"}};
rYT=function(J){switch(J){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"}};
sLD=function(J,c){return _.P2(J.entities,"engagementToolbarStateEntityPayload",c)};
DgR=function(J){(J=_.n7(J))&&_.L2u(J)};
_.L2u=function(J){var c=_.Y3();c&&_.E2(c,J)};
W2m=function(J,c,m){_.m9(J,"yt-open-popup-action",[c,m||J])};
zSt=function(J,c){var m=_.Xk(J,"endpoint"),b=_.Xk(J,"action");return(m=b?b:m)&&c&&(m=c.navigationEndpointPopupMap[m])&&(J=_.$y(m,J),(m=_.Xk(J,"renderer"))&&c.supportedPopups.hasOwnProperty(m))?{openPopupAction:{popupType:c.popupTypeMap[m],popup:J}}:null};
uVT=function(J,c,m,b){if(b){var x;m=m==null?void 0:(x=m.data)==null?void 0:x.contents;(x=m instanceof Array&&m.length?m[0]:m)&&(m=_.Xk(x,"renderer"))&&b.supportedPopups.hasOwnProperty(m)&&(c.stopPropagation(),W2m(J,{openPopupAction:{popupType:b.popupTypeMap[m],popup:x}}))}};
Xcu=function(J,c,m,b){b=b===void 0?!1:b;var x=fJ2(c);if(x){x.href&&hc(x.href);var P=c.button;P=P!==void 0?P===0&&!si(c):!si(c);x.data&&P&&YRm(J,x,c,m,b)}};
YRm=function(J,c,m,b,x){x=x===void 0?!1:x;var P=_.c7("pbj_navigate_limit",-1)===0;ZAe(c);_.BG().resolve(_.y6(GB));var p=c.data;if(Object.keys(p).length!==0)if(!_.w("unplugged_web_disable_actions_for_cec_endpoint")&&_.L(p,_.pX))_.w("endpoint_behavior_command_executor_fix_killswitch")||(m.preventDefault(),m.stopPropagation()),_.PA(J,[p],J);else if(b=zSt(p,b))p.loggingUrls&&p.loggingUrls.forEach(function(I){I.baseUrl&&_.En(I.baseUrl)}),m.preventDefault(),m.stopPropagation(),W2m(J,b,c);
else{var t=qRT(0,c.data,m);if(J=c.getForm)J=J(),t.tempData=t.tempData||{},t.tempData=Object.assign({},t.tempData,J);J=_.OT(m);if(b=J.find(function(I){return!!I.visualElement}))t.createScreenConfig=t.createScreenConfig||{},t.createScreenConfig.clickedVisualElement=b.visualElement;
if(!P)if(m.preventDefault(),m.stopPropagation(),_.L(p,_.Ugt)&&!x&&_.p7.instance)_.p7.instance.resolveCommand(p,t);else if(_.w("kevlar_command_handler_formatted_string")&&!x&&_.p7.instance&&SRG(p))x=J.find(function(I){return!!I.is})||m.target,m={form:Object.assign({},t,{event:m,
element:x,originatingNode:c})},_.p7.instance.resolveCommand(p,m);else{p=_.OT(m);m=[];for(x=0;x<p.length;x++)(P=p[x].is)&&m.push(P);UlR({parents:m.join(","),text:c.innerText},function(){_.cA(c,"yt-navigate",t)})}}};
hS3=function(J){if(J=fJ2(J))ZAe(J),tOr(J.href)};
fJ2=function(J){J=_.OT(J);for(var c,m=0;m<J.length;m++)if(c=J[m],c.tagName==="A"&&c.classList.contains("yt-simple-endpoint")){if(!c.data)break;return c}return null};
si=function(J){return J.shiftKey||J.altKey||J.metaKey||J.ctrlKey};
dgm=function(J,c){var m={itct:c.clickTrackingParams};_.w("kevlar_client_side_screens")&&(!_.L(c,_.kb)||_.w("kevlar_exclude_endpoint_killswitch"))&&(m.endpoint=JSON.stringify(c));_.w("enable_unknown_lact_fix_on_html5")&&_.BG().resolve(_.y6(_.Lq))&&(m.lact=_.cO());MOf(m);_.jK(J,m)};
ZAe=function(J){J.href&&Object.keys(J.data).length!==0&&dgm(J.href,J.data)};
SRG=function(J){for(var c=_.M($gR),m=c.next();!m.done;m=c.next())if(J[m.value])return!1;return!0};
_.DL=function(J,c){if(c){var m={};GSm.forEach(function(b){b=EQu(c,b,"--yt-lightsource-");Object.assign(m,b)});
vQR.forEach(function(b){b=EQu(c,b,"--yt-basic-");Object.assign(m,b)});
_.V1(J,m)}};
EQu=function(J,c,m){var b={};b[m+_.Kl(c)]=J&&J[c]?_.Zn(J[c]):"";return b};
_.zH=function(J,c,m){WP[J]||(WP[J]={});WP[J][c]=m};
_.uB=function(J){WP[J]||(WP[J]={});return WP[J]};
OAJ=function(J){if(!J)return{};var c=J.foregroundTitleColor,m=J.backgroundColor;J=J.borderColor;var b="text";J?b="outline":m&&(b="filled");return{type:b,customColors:{color:c?_.Zn(c):void 0,backgroundColor:m?_.Zn(m):void 0,borderColor:J?_.Zn(J):void 0}}};
eSJ=function(J){var c=J.renderer;var m=J.element;var b=J.commandController;var x=J.onTapCallback;var P=J.skipCommandHandling;var p=J.overrides;var t=J.forceIcon;var I=J.forceModernIconButton;var a=J.forceDisabled;var k=J.isSubscribe===void 0?!1:J.isSubscribe;var H=J.isPressed===void 0?!1:J.isPressed;var T=J.useButtonSize===void 0?!1:J.useButtonSize;J=AYQ(c);k&&(J.style="mono",J.type="filled");t=!c.icon||!t&&c.text?c.icon?c.iconPosition==="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"?"trailing":"leading":
void 0:I?"icon-only":"icon-only-40";t==="icon-only-40"&&(J.type="text");var r;I=Object;k=I.assign;T=RSR(c,T);H=!!c.isSelected||!_.w("web_propagate_is_pressed_killswitch")&&!!H;var W=c.isSelected!==void 0;a=a===void 0?c.isDisabled:a;var Y=c.text?_.uv(c.text):void 0;var Z,d,G,e=((Z=c.accessibilityData)==null?void 0:(d=Z.accessibilityData)==null?void 0:d.label)||((G=c.accessibility)==null?void 0:G.label);Z=e?e:_.OG(c.text);m=oQt(c,m,b,x,P);b=QLq(c);b!=null&&b.length?(b=_.Uv({innertubeCommand:nCm(b),
forceNewState:!0}),b=SM(b)?b:void 0):b=void 0;return k.call(I,{},J,T,{iconPosition:t},p,{focused:!1,toggled:H,toggleable:W,disabled:a,formattedButtonText:Y,accessibilityLabel:Z,onTap:m,aTagConfig:b},OAJ((r=c.colorData)==null?void 0:r.basicColorPaletteData),{oneOffCustomTextWrap:c.oneOffCustomTextWrap})};
oQt=function(J,c,m,b,x){return function(P){var p=QLq(J);b(p,P);if(!x){p=_.M(p);for(var t=p.next();!t.done;t=p.next())ws(t.value,{form:{element:c,event:P},commandController:m})}}};
QLq=function(J){var c=[];J.command&&c.push(J.command);J.serviceEndpoint&&c.push(J.serviceEndpoint);J.navigationEndpoint&&c.push(J.navigationEndpoint);return c};
RSR=function(J,c){if(c)switch(J.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(J.style){case "STYLE_COMPACT_GRAY":return{size:"S"};default:return{size:"M"}}};
AYQ=function(J){switch(J.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"}}};
_.fq=function(J){return _.n2(function(){B0J()();return OB(J)},void 0,"Icv7j")};
Yx=function(J,c){return _.P2(J.entities,"likeStatusEntity",c)};
jLJ=function(J,c){return _.P2(J.entities,"likeCountEntity",c)};
_.F2r=function(J,c){return _.P2(J.entities,"stringEntity",c)};
lJt=function(J,c){if(!J)return!1;var m,b=(m=_.L(J,_.In))==null?void 0:m.signal;if(b&&c.signalEndpointMap)return!!c.signalEndpointMap[b];var x;if((m=(x=_.L(J,_.XG))==null?void 0:x.request)&&c.continuationEndpointMap)return!!c.continuationEndpointMap[m];for(var P in J)if(c.commandEndpointMap[P])return!0;return!1};
yY3=function(J,c){if(c.streamingEndpointMap)for(var m in J)if(c.streamingEndpointMap[m]&&(J=c.streamingEndpointMap[m]))return J()};
BA2=function(J,c){var m,b=(m=_.L(J,_.In))==null?void 0:m.signal;if(b&&c.signalEndpointMap&&(m=c.signalEndpointMap[b]))return m();var x;if((m=(x=_.L(J,_.XG))==null?void 0:x.request)&&c.continuationEndpointMap&&(x=c.continuationEndpointMap[m]))return x();for(var P in J)if(c.commandEndpointMap[P]&&(J=c.commandEndpointMap[P]))return J()};
gQm=function(J){var c={"Content-Type":"application/json"};_.Ub("EOM_VISITOR_DATA")?c["X-Goog-EOM-Visitor-Id"]=_.Ub("EOM_VISITOR_DATA"):_.Ub("VISITOR_DATA")&&(c["X-Goog-Visitor-Id"]=_.Ub("VISITOR_DATA"));c["X-Youtube-Bootstrap-Logged-In"]=_.Ub("LOGGED_IN",!1);_.Ub("DEBUG_SETTINGS_METADATA")&&(c["X-Debug-Settings-Metadata"]=_.Ub("DEBUG_SETTINGS_METADATA"));J!=="cors"&&((J=_.Ub("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(c["X-Youtube-Client-Name"]=J),(J=_.Ub("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(c["X-Youtube-Client-Version"]=
J),(J=_.Ub("CHROME_CONNECTED_HEADER"))&&(c["X-Youtube-Chrome-Connected"]=J),(J=_.Ub("DOMAIN_ADMIN_STATE"))&&(c["X-Youtube-Domain-Admin-State"]=J),_.Ss("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(J=_.Ub("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(c["X-YouTube-Lava-Device-Context"]=J));return c};
JR3=function(J,c){c.watchNextResponse||c.reelItemWatchResponse?c.watchNextResponse?J.content=c.watchNextResponse:J.content=c.reelItemWatchResponse:c.playerResponse?J.player=c.playerResponse:c.reelWatchSequenceResponse&&(J.reelSequence=c.reelWatchSequenceResponse)};
_.ZL=function(J){if(!J)return null;for(var c=[],m=0;m<J.textSegments.length;m++){var b=J.textSegments[m];b.text?c.push(b):b.emojiId&&c.push({emoji_id:b.emojiId})}return{text_segments:c}};
VRJ=function(J,c,m,b,x,P,p){P=P===void 0?[]:P;var t=new _.qd;t.endpoint=m;if(!m)return _.Zt(new _.w3("handle undefined endpoint",c.tagName)),t;var I=Ad2(m);I.length&&(_.PA(J,I,c,b),t.actions=I);m.loggingUrls&&m.loggingUrls.forEach(function(k){k.baseUrl&&v4(k.baseUrl,k.attributionSrcMode)});
I=!_.w("web_skip_impression_click_killswitch")&&b&&b.impression;if(m.clickTrackingParams&&!cRD(m)&&!mvJ(c)&&!I&&(I=_.C7(),!_.Ui(I,c))){var a=c.getScreenLayer&&c.getScreenLayer();a?I.clickCommand(m,null,a):I.clickCommand(m,null)}I=!1;for(a=0;a<P.length;a++)if((0,P[a])(c,m,b)){I=!0;break}!I&&bao(m)&&(t.ajaxPromise=xv2(J,c,m,b,x,p));return t};
mvJ=function(J){var c;return(J=(c=J.data)==null?void 0:c.navigationEndpoint)&&!!J.clickTrackingParams};
cRD=function(J){var c=_.L(J,_.In);if(c&&(c=c.signal)&&PXm.indexOf(c)>=0)return!0;for(var m in J)if(MRG.indexOf(m)>=0)return!0;return!1};
bao=function(J){var c;if(((c=_.L(J,_.In))==null?void 0:c.signal)==="CLIENT_SIGNAL")return!1;for(var m in J)if(pJD.indexOf(m)>=0)return!1;J=Object.keys(J);return J.length===1&&J[0]==="loggingUrls"?!1:!0};
HaQ=function(J,c,m,b,x,P,p){var t=_.Sp.instance;if(t&&_.hP(t,b))var I=_.ds(t,b,x).then(function(k){return(k==null?0:k.data)?k:{data:k}});
else I=J.requestDataForServiceEndpoint(b,x),_.L(b,Nnq)||_.L(b,tRD)||_.L(b,_.IsT)||_.L(b,K0T)||_.qz(new _.w3("No RequestBuilder for endpoint",b));var a=_.$x();a.promise.thenCatch(function(){var k=_.Xk(b,"action")||_.Xk(b,"command")||_.Xk(b,"endpoint");k&&(k=b[k],k.hasOwnProperty("onFailureAction")?_.PA(c,[k.onFailureAction],m):k.hasOwnProperty("onFailureCommand")&&_.PA(c,k.onFailureCommand,m));I.cancel("Resolver promise rejected")});
I.then(function(k){if(k){var H=k.error;if(H){if(P&&P.onServerError)P.onServerError(b,k);a.reject(new _.w3("Response error",b,H))}else if(k=k.data)if(H=k.error){if(P&&P.onServerError)P.onServerError(b,k);a.reject(new _.w3("Returned error",b,H))}else{CXe(c,m,k,b);asr(k);if(H=O73(k))for(var T=_.M(H),r=T.next();!r.done;r=T.next()){r=r.value;var W=_.BG().resolve(_.y6(kd2))||GH;if(!_.Sp.instance||!W.some(function(Z){return!!_.L(b,Z)})||_.w("kevlar_response_processor_allowlist_killswitch")){var Y=W=void 0;
((Y=_.L((W=r)==null?void 0:W.commandMetadata,_.lk))==null?0:Y.sendPost)?_.Vq(c,[r]):_.PA(c,[r],m)}}(T=_.L(k==null?void 0:k.frameworkUpdates,vP))&&p&&p(T);if(P&&P.onSuccess)P.onSuccess(b,k);a.resolve(new _.Oi(k,H))}}else a.reject(new _.w3("Invalid service endpoint provided",b))},function(k){a.reject(k)});
return a.promise};
asr=function(J){var c;(J=(c=_.L(J==null?void 0:J.onResponseReceivedCommand,_.iaT))==null?void 0:c.continuationItems)&&(J==null?void 0:J.length)===1&&_.L(J[0],nI2)&&_.Y2("so_r",void 0,"search_overview_answer")};
xv2=function(J,c,m,b,x,P){var p;return(p=c.getNetworkManager&&c.getNetworkManager()?c.getNetworkManager():_.BG().resolve(_.y6(_.Wj)))?HaQ(p,J,c,m,b,x,P):_.sv("No network manager.")};
CXe=function(J,c,m,b){if(m=m.trackingParams||m.loggingDirectives&&m.loggingDirectives.trackingParams){var x;(_.L(b,Tnf)||_.L(b,wJQ)||_.L(b,rRq))&&b.clickTrackingParams?x=_.n7(b.clickTrackingParams):_.w("web_graft_to_parent_command")&&b.clickTrackingParams&&(x=_.n7(b.clickTrackingParams));var P;b=(P=c.getScreenLayer)==null?void 0:P.call(c);c=_.C7().graftServerVe(m,x,b);_.bJ(J,"yt-store-grafted-ve-action",[c])}};
_.smQ=function(J){var c=new Image;return new _.IN(function(m,b){c.addEventListener("load",function(){m()});
c.addEventListener("error",function(){b()});
c.src=J})};
L0q=function(J){return!!J};
Dvq=function(J){return!!J};
W03=function(J,c,m){var b=J.rowIndex;b!==void 0&&_.bJ(J.hostElement,"yt-section-reactive-dismissal",[b,c,m])};
_.AP=function(J,c,m){J=_.M(J);for(var b=J.next();!b.done;b=J.next()){b=b.value;if(b===c)break;for(var x=_.M(m),P=x.next();!P.done;P=x.next())if(P=P.value,b.tagName===P||!_.w("web_event_button_role_check_killswitch")&&b.role==="button"&&P==="BUTTON")return!0}return!1};
_.RO=function(J,c,m){J=_.M(J);for(var b=J.next();!b.done;b=J.next()){b=b.value;if(b===c)break;for(var x=_.M(m),P=x.next();!P.done;P=x.next())if(b.id===P.value)return!0}return!1};
zd2=function(J,c){if(!J&&!c)return"medium";J=Math.max(J||0,c||0);return J>=256?"large":J>=96?"medium":"small"};
uSG=function(J){switch(J){case 1:return 2/3;case 4:return.5625;case 3:return 1;default:return 16/9}};
_.ep=function(){var J=_.BG().resolve(_.y6(_.oO));return J?(J=J.getCurrentPage())?_.Qd(J):null:null};
_.jp=function(){var J=_.ep();if(!J){var c=_.BG().resolve(_.y6(_.oO)),m=c?typeof c:"no page manager";c=c?c.getCurrentPage():null;m=new _.w3("Player is missing when requested.",m,c?c.tagName:"no page");_.Xc(m)}return J};
_.Qd=function(J){return J&&J.getPlayer?J.getPlayer():null};
fsm=function(J,c){J={args:{raw_player_response:J}};c&&(J.args=Object.assign({},J.args,c));return J};
YYT=function(J){if(J.args){if(J.args.raw_player_response)return J.args.raw_player_response;if(J.args.player_response)return JSON.parse(J.args.player_response)}};
_.XJq=function(J,c){var m={url:"/watch?v="+J.videoId,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832};J.playlistId&&(m.url+="&list="+J.playlistId);J.playerParams&&(m.url+="&pp="+J.playerParams);J={watchEndpoint:J,commandMetadata:{webCommandMetadata:m}};c&&(J.clickTrackingParams=c);return J};
qYo=function(){return ZaT||!!_.$y("yt.player.Application")};
SYm=function(){return Uvt||!!document.querySelector("link#player-css")};
dvf=function(){function J(){ZaT=!0;hd3.resolve()}
var c,m;return _.N(function(b){hd3||(hd3=new _.xb,qYo()?J():(c=document.createElement("script"),c.addEventListener("load",J),m=_.ud(_.Ub("PLAYER_JS_URL")),_.$h(c,m),document.head.appendChild(c)));return b.return(hd3.promise)})};
Gdr=function(){function J(){Uvt=!0;$v3.resolve()}
if(!$v3)if($v3=new _.xb,SYm())J();else{var c=document.createElement("link");c.id="player-css";c.addEventListener("load",J);var m=_.ud(_.Ub("PLAYER_CSS_URL"));_.O$(c,m,"stylesheet");document.head.appendChild(c)}return $v3.promise};
EIm=function(){return qYo()&&SYm()?Promise.resolve([]):Promise.all([dvf(),Gdr()])};
vID=function(J,c,m){var b={args:{}};J&&(b.args.raw_player_response=J);c&&(b.args.raw_watch_next_response=c);m&&(b.args=Object.assign({},b.args,m));return b};
oIQ=function(J,c,m){var b=!1;b=b===void 0?!0:b;J=typeof J==="string"?_.FG(document,J):J;var x=OaG+"_"+_.mj(J),P=ARu[x];if(P&&b)return RdD(c,m)?P.api.loadVideoByPlayerVars(c.args||null):P.loadNewVideoConfig(c),P.api;P=new lB(J,x,c,m,void 0);ARu[x]=P;P.addOnDisposeCallback(function(){delete ARu[P.getId()]});
return P.api};
RdD=function(J,c){return c&&c.serializedExperimentFlags?c.serializedExperimentFlags.includes("web_player_remove_playerproxy=true"):J&&J.args&&J.args.fflags?J.args.fflags.includes("web_player_remove_playerproxy=true"):!1};
Qmu=function(){var J=new _.xb;J.resolved=!1;var c=J.resolve;J.resolve=function(m){J.resolved=!0;c(m)};
return J};
jme=function(J){var c={};edo().install((c.document_disposed={callback:J},c))};
yd=function(J,c){if(!J&&Math.random()<=_.c7("kevlar_unified_player_logging_threshold")){J=Error("rh`"+(c?c:"Unspecified error"));if(_.w("kevlar_unified_player_throw_errors"))throw J;_.qz(J)}};
_.F0u=function(){var J=_.$y("ytDebugData.callbacks");J||(J={},_.jD("ytDebugData.callbacks",J));return J};
yR3=function(J,c){var m=_.F0u();if(_.w("web_dd_iu")||lsG.includes(J))m[J]=c};
Bnt=function(){return _.N(function(J){return J.return({isLeader:_.DZR(_.Rc().getState()),c:_.Ub("INNERTUBE_CONTEXT_CLIENT_NAME"),cver:_.Ub("INNERTUBE_CONTEXT_CLIENT_VERSION")})})};
gIt=function(){var J;_.N(function(c){if(c.nextAddress==1)return yR3("APP_STATE",Bnt),_.K(c,_.BG().resolve(_.BP),2);J=c.yieldResult;yR3("PI",function(){return _.N(function(m){return m.return(J.getVideoStats())})});
_.tD(c)})};
J6T=function(J){var c=_.eK(_.Gv(_.mo.location.href));J=_.eK(_.Gv(J));return _.w("kevlar_clear_non_displayable_url_params")?c==gs(J):gs(c)==gs(J)};
gs=function(J){var c=_.c6r(J);J=J.slice(0);var m=["frags"];_.w("kevlar_hide_pp_url_param")&&m.push("pp");_.w("kevlar_hide_time_continue_url_param")&&m.push("time_continue");m=_.M(m);for(var b=m.next();!b.done;b=m.next())b=b.value,J=_.FR(_.eK(J),b);return _.eK(J)+(c?"#"+c:"")};
JT=function(J,c){c=Number(c)*1E3;var m=Math.round((0,_.y4)()),b=m.toString();J={innertubeResponse:J,serverDateTimestampMs:b,lastModifiedTimestampMs:b,expireTimestampMs:(m+c).toString()};if(c=_.Ub("INNERTUBE_CONTEXT_CLIENT_NAME"))J.clientName=c;return J};
bJJ=function(){return window&&window.performance&&window.performance.now?window.performance.now():Date&&Date.now?Date.now():++mcT};
_.xcD=function(){var J=_.fl(),c=_.Y3();c&&J&&_.O2(c,[J],!0)};
PhJ=function(J){return J&&VYQ.some(function(c){return J.includes(c)})};
KI3=function(J){var c=_.L(J,_.Ee);if(!c)return!1;var m=c.url,b=c.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME";if(!m)return _.Xc(Error("wh")),!1;if(c.target==="TARGET_NEW_WINDOW"){var x={};_.w("resolve_url_parent_tracking_params")&&(!_.es(m)||js(window.location.href,m))&&(x={endpoint:J,itct:J.clickTrackingParams});MOf(x);J=null;try{if(b)return J=_.kXr(m,"_blank",x,void 0,b),MYu(_.BG().resolve(pKT),J,m),!0}catch(T){_.Xc(T)}_.jK(m,x);c={target:"_blank",noopener:_.w("set_window_noopener_ks")&&
!c.allowOpener};J=window;b=C1(m)?m:_.n1(typeof m.href!="undefined"?m.href:String(m));x=self.crossOriginIsolated!==void 0;var P="strict-origin-when-cross-origin";window.Request&&(P=(new Request("/")).referrerPolicy);var p=c.noreferrer;if(x&&p&&P==="unsafe-url")throw Error("pe");P=p&&!x;p=c.target||m.target;var t=[],I=[],a=!1;for(H in c){var k=c[H];switch(H){case "width":case "height":case "top":case "left":t.push(H+"="+k);break;case "target":break;case "noopener":case "noreferrer":k?I.push(H):(a=!0,
I.push(H+"=false"));break;case "attributionsrc":t.push(H+(k?"="+k:""));break;default:t.push(H+"="+(k?1:0))}}var H=p!==void 0&&!["_blank","_self","_top","_parent",""].includes(p);H=uQ()&&H;NzT&&x&&t.length===0&&I.length>0&&!H&&!a?(I.length===2&&(I=["noreferrer"]),_.Zx(J,b,p,I[0]),J=tYq()):(H=t.join(","),_.S2()&&J.navigator&&J.navigator.standalone&&p&&p!="_self"?(H=_.id("A"),W0(H,b),H.target=p,P&&(H.rel="noreferrer"),((c=c.attributionsrc)||c==="")&&H.setAttribute("attributionsrc",c),c=document.createEvent("MouseEvent"),
c.initMouseEvent("click",!0,!0,J,1),H.dispatchEvent(c),J=tYq()):P?(J=_.Zx(J,"",p,H),c=_.ah(b),J&&(J.opener=null,c===""&&(c="javascript:''"),c='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+cg(c)+'">',c=us(c),(b=J.document)&&b.write&&(b.write(f1(c)),b.close()))):((J=_.Zx(J,b,p,H))&&c.noopener&&(J.opener=null),J&&c.noreferrer&&(J.opener=null)));MYu(_.BG().resolve(pKT),J,m);return!0}c=_.NU(m);c=PhJ(c)||m==="https://studio.youtube.com/";b=!(!_.es(m)||js(window.location.href,
m));H=m.indexOf("disable_polymer=1")>=0;if(b||H||c)hc(m),zm(),_.dB(m,void 0,void 0,window.top,IwQ);else return _.qz(new _.w3("UrlEndpoint should not be used for same origin navigations. Use a better typed command instead",J)),!1;return!0};
_.kPT=function(J,c){c=c===void 0?0:c;if(!(_.L(J,Ch3)||_.L(J,awo)||_.L(J,_.Ee)&&_.L(J,_.Ee).url))return!1;var m,b=(m=_.L(J,_.Ee))==null?void 0:m.url;m=b?{externalLinkData:{url:b}}:null;return _.C7().clickCommand(J,m,c)};
HJr=function(J,c){return _.P2(J.entities,"subscriptionStateEntity",c)};
iJR=function(J,c){return _.P2(J.entities,"subscriptionNotificationStateEntity",c)};
nST=function(J,c){return _.P2(J.entities,"upcomingEventReminderStateEntity",c)};
TzT=function(J,c){return _.P2(J.entities,"engagementToolbarSurfaceEntityPayload",c)};
wKJ=function(J,c){return _.P2(J.entities,"triStateButtonStateEntityPayload",c)};
r6m=function(J,c){return _.P2(J.entities,"commerceCartCheckoutButtonEntity",c)};
_.sHe=function(J,c){return _.P2(J.entities,"playlistLoopStateEntity",c)};
LIR=function(J,c){return _.P2(J.entities,"commandEntity",c)};
WIu=function(J,c,m,b,x){x=x===void 0?{}:x;return function(P){var p,t;var I=((p=J.loggingDirectives)==null?0:(t=p.clientVeSpec)==null?0:t.uiType)?_.rs(J.loggingDirectives.clientVeSpec.uiType):void 0;x.clickedVisualElement||(x.clickedVisualElement=I);I=Dc3(J,c);m(I,P);I=_.M(I);for(p=I.next();!p.done;p=I.next()){p=p.value;t=b;var a=P,k=x;k.form?k.form.event=a:k.form={element:t,event:a};ws(p,k)}}};
Dc3=function(J,c){var m=[];c?(J.toggledCommand&&m.push(J.toggledCommand),J.toggledServiceEndpoint&&m.push(J.toggledServiceEndpoint)):(J.defaultCommand&&m.push(J.defaultCommand),J.defaultServiceEndpoint&&m.push(J.defaultServiceEndpoint),J.defaultNavigationEndpoint&&m.push(J.defaultNavigationEndpoint));return m};
zre=function(J,c){var m=J.toggledStyle||J.style,b;switch((b=c?m:J.style)==null?void 0:b.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"}}};
_.mf=function(){return _.N(function(J){return J.nextAddress==1?_.K(J,_.BG().resolve(_.BP),2):J.return(_.BG().resolve(uEm)())})};
_.b$=function(){return _.BG().resolve(uEm)()};
_.xM=function(){return f3(function(){return{lottieEl:void 0}})};
fwJ=function(J,c){return J.startsWith(c.uniqueId)};
YLJ=function(J){var c,m;_.N(function(b){if(b.nextAddress==1)return _.K(b,_.mf(),2);c=b.yieldResult;if((m=c)==null||!m.addEventListener)return VG(),b.return();c.addEventListener("onCueRangeEnter",J);_.tD(b)})};
XKt=function(J){var c,m;_.N(function(b){if(b.nextAddress==1)return _.K(b,_.mf(),2);c=b.yieldResult;if((m=c)==null||!m.removeEventListener)return VG(),b.return();c.removeEventListener("onCueRangeEnter",J);_.tD(b)})};
ZJf=function(J){var c,m,b,x,P;_.N(function(p){if(p.nextAddress==1)return _.K(p,_.mf(),2);c=p.yieldResult;if((m=c)==null||!m.addCueRange)return VG(),p.return();b=_.M(J.timings);for(x=b.next();!x.done;x=b.next())P=x.value,c.addCueRange(J.uniqueId+"-"+P,P/1E3,(P+100)/1E3);_.tD(p)})};
qLm=function(J){var c,m,b,x,P;_.N(function(p){if(p.nextAddress==1)return _.K(p,_.mf(),2);c=p.yieldResult;if((m=c)==null||!m.removeCueRange)return VG(),p.return();b=_.M(J.timings);for(x=b.next();!x.done;x=b.next())P=x.value,c.removeCueRange(J.uniqueId+"-"+P);_.tD(p)})};
Ucq=function(){var J,c,m;return _.N(function(b){if(b.nextAddress==1)return _.K(b,_.mf(),2);J=b.yieldResult;if((c=J)==null||!c.getPlayerState)return VG(),b.return();m=J.getPlayerState();return b.return(m===2)})};
VG=function(){_.qz(new _.w3("Smartimation player does not exist or is corrupted"))};
SLJ=function(){try{var J;return(J=window.CSS)!=null&&J.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(c){return _.qz(new _.w3("Smartimation CSS.supports threw an error")),!1}};
OJt=function(J,c,m,b,x){var P=J.playlistId?hrt:dcG;c=c();m=m();x=!!J.videoId&&x()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";if(_.kY(c))return $cQ({data:J,actionType:P,disabled:x},m);if(J.videoId&&b())return GPu({data:J,actionType:P,disabled:x});switch(c){case "TRANSFER_STATE_UNKNOWN":return GPu({data:J,actionType:P,disabled:x});case "TRANSFER_STATE_FAILED":return J.videoId?ESJ({data:J,actionType:P,disabled:x}):vSG({data:J,actionType:P,disabled:x});case "TRANSFER_STATE_COMPLETE":return vSG({data:J,
actionType:P,disabled:x});case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":return $cQ({data:J,actionType:P,disabled:x},m);case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return J.videoId?ESJ({data:J,actionType:P,disabled:x}):GPu({data:J,actionType:P,disabled:x});default:return GPu({data:J,actionType:P,disabled:x})}};
A6J=function(J,c){var m=J.onTapCommand,b=_.ZG(m);if(J.videoId&&_.L(b,_.Mx))return _.L(b,_.Mx).action=c,m;J.playlistId&&_.L(b,_.pK)&&(_.L(b,_.pK).action=c);return m};
GPu=function(J){var c=J.data;var m=J.actionType;J=J.disabled;return{text:Rrq,iconType:"OFFLINE_DOWNLOAD",onTap:A6J(c,m.ACTION_ADD),disabled:J}};
$cQ=function(J,c){var m=J.data;var b=J.actionType;J=J.disabled;var x="OFFLINE_DOWNLOAD";c>=0&&c<=.1?x="OFFLINE_DOWNLOADING_ZERO":c>.1&&c<=.3?x="OFFLINE_DOWNLOADING_TWENTY":c>.3&&c<=.5?x="OFFLINE_DOWNLOADING_FORTY":c>.5&&c<=.7?x="OFFLINE_DOWNLOADING_SIXTY":c>.7&&c<1?x="OFFLINE_DOWNLOADING_EIGHTY":c===1&&(x="OFFLINE_PIN");return{text:oSe,iconType:x,onTap:A6J(m,b.ACTION_REMOVE_WITH_PROMPT),disabled:J}};
vSG=function(J){var c=J.data;var m=J.actionType;J=J.disabled;return{text:QHe,iconType:"OFFLINE_PIN",onTap:A6J(c,m.ACTION_REMOVE_WITH_PROMPT),disabled:J}};
ESJ=function(J){var c=J.data;var m=J.actionType;J=J.disabled;return{text:er3,iconType:"OFFLINE_DOWNLOAD",onTap:A6J(c,m.ACTION_RETRY),disabled:J}};
y6r=function(J){var c=jHq;FI3.push(J);lwr||(c(function(){for(var m=_.M(FI3),b=m.next();!b.done;b=m.next())b=b.value,b();FI3.length=0;lwr=!1}),lwr=!0)};
jHq=function(J){Promise.resolve().then(J)};
Nx=function(J){J=_.M(CBo(J));var c=J.next().value,m=J.next().value,b=!1;_.uN(function(){return function(){b=!0}});
return[c,function(x){y6r(function(){b&&!_.w("cow_prevent_state_setter_after_cleanup_killswitch")||m(x)})}]};
Bzq=function(){var J=_.M(Nx(!1)),c=J.next().value,m=J.next().value;return function(){m(!c)}};
gSm=function(J){return f3(function(){return{value:J}})};
JhT=function(J,c){var m=gSm(J),b=gSm(c);ze(function(){m.value=J},[J]);
ze(function(){b.value=c},c&&c.length>=1?c:[void 0]);
var x=f3(function(){return{value:void 0}});
if(J!==m.value||b.value!==c||x.value===void 0)x.value=OB(J,c);var P=Bzq();_.uN(function(){function p(){var I=OB(m.value,c);I!==x.value&&(x.value=I,P())}
var t=_.v9().subscribe(p);p();return t});
return x.value};
_.tT=function(J,c){var m=B0J();return _.n2(function(){m();return OB(J,[_.XD(c)||""])},void 0,"HaeHEc")};
chq=function(J){var c=_.tT(_.YY,function(){return J().videoId}),m=_.tT(_.XM,function(){return J().playlistId});
return function(){return J().videoId?c:J().playlistId?m:_.M(_.K2("TRANSFER_STATE_UNKNOWN",void 0,"Qibycf")).next().value}};
m$o=function(J){var c=_.tT(ZZ,function(){return J().videoId}),m=_.tT(_.LMm,function(){return J().playlistId});
return function(){return J().videoId?c:J().playlistId?m:_.M(_.K2(0,void 0,"K4tgOc")).next().value}};
bzG=function(J){var c=_.tT(_.ZO3,function(){return J().videoId});
return function(){return J().videoId?c:_.M(_.K2(!1,void 0,"Oaxwcf")).next().value}};
x$r=function(J){var c=_.tT(z5t,function(){return J().videoId});
return function(){return J().videoId?c:_.M(_.K2("ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN",void 0,"MsSpJc")).next().value}};
Vc3=function(){return{}};
P92=function(){var J,c;return(c=(J=_.BG().resolve(_.y6(_.Ev)))==null?void 0:J())!=null?c:!1};
pxf=function(J,c){J=J===void 0?McR:J;switch(c.type){case "SET_IS_BOTTOM_SHEET_OPEN_STATE":return Object.assign({},J,{isOpen:c.payload});default:return J}};
tcq=function(J,c){J=J===void 0?NHR:J;switch(c.type){case "SET_CINEMATIC_SETTING_STATE":return Object.assign({},J,{isAllowed:c.payload});default:return J}};
KHo=function(J,c){J=J===void 0?IVm:J;switch(c.type){case "SET_ERROR_MESSAGE_CREATE_PLAYLIST_STATE":return Object.assign({},J,{errorMessage:c.payload});case "SET_TITLE_CREATE_PLAYLIST_STATE":return Object.assign({},J,{title:c.payload});case "SET_PRIVACY_CREATE_PLAYLIST_STATE":return Object.assign({},J,{privacy:c.payload});case "SET_IS_DISABLED_CREATE_PLAYLIST_STATE":return Object.assign({},J,{isDisabled:c.payload});default:return J}};
aVu=function(J,c){J=J===void 0?C9Q:J;switch(c.type){case "SET_IS_DRAWER_LAYOUT_OPEN_STATE":return Object.assign({},J,{isOpen:c.payload});default:return J}};
Hzq=function(J,c){J=J===void 0?kQm:J;switch(c.type){case "SET_IS_FULLSCREEN_STATE":return Object.assign({},J,{isFullscreen:c.payload});case "SET_NAVIGATION_BUTTON":var m=c.payload.targetId,b=Object.assign({},J.navigationButtons);b[m]=c.payload.button;return Object.assign({},J,{navigationButtons:b});case "SET_TOP_PANEL_ID_STATE":return Object.assign({},J,{topPanelId:c.payload});case "SET_SECONDARY_HEADER":return m=c.payload.panelId,b=Object.assign({},J.secondaryHeader),b[m]=c.payload.secondaryHeader,
Object.assign({},J,{secondaryHeader:b});default:return J}};
wxr=function(){return t0(Object.assign({},{entities:xPt,voiceSearch:i$o,engagementPanel:Hzq,bottomSheet:pxf,cinematicSetting:tcq,shorts:Wnm,drawerLayout:aVu,createPlaylist:KHo,locationCollection:izo,reportChannel:n4G,reportForm:TH3},zfq))};
rhu=function(J,c){_.ft.addLowPriorityJob(function(){var m,b,x;return _.N(function(P){switch(P.nextAddress){case 1:return _.xL(P,2),_.K(P,u0G(),4);case 4:return _.K(P,fetch(J),5);case 5:return m=P.yieldResult,_.K(P,m.json(),6);case 6:b=P.yieldResult;Md.set(J,b);requestAnimationFrame(function(){c(b)});
_.EO(P,0);break;case 2:x=_.NM(P),_.qz(x),_.tD(P)}})})};
sdq=function(J){var c={animationConfig:{},listeners:{}},m=function(){J(!0)};
c.listeners.data_failed=m;c.listeners.error=m;c.listeners.data_ready=function(){J(!1)};
return c};
WHo=function(J){var c=J.model;var m=J.subscribed;var b=J.isOverlay;var x=J.element;var P=J.commandController;var p=J.notificationState;if(m){var t,I;var a=(c==null?void 0:(t=c.buttonStyle)==null?void 0:t.subscribedStateStyle)==="SUBSCRIBE_BUTTON_VIEW_MODEL_SUBSCRIBED_STATE_STYLE_DROPDOWN_COMPACT"?void 0:c==null?void 0:(I=c.unsubscribeButtonContent)==null?void 0:I.buttonText}else{var k;a=c==null?void 0:(k=c.subscribeButtonContent)==null?void 0:k.buttonText}a:{var H;switch(c==null?void 0:(H=c.buttonStyle)==
null?void 0:H.buttonSize){case "SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_XSMALL":t="S";break a;default:t="M"}}a:if(b)b="overlay";else switch(c.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":b="overlay";break a;default:b="mono"}a:if(m)var T="tonal";else switch((T=c.buttonStyle)==
null?void 0:T.unsubscribedStateStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_UNSUBSCRIBED_STATE_STYLE_SECONDARY":T="tonal";break a;default:T="filled"}return{style:b,type:T,state:c.disableSubscribeButton?"disabled":"active",size:t,focused:J.focused,toggled:m,accessibilityLabel:LHT(c,m,p),buttonText:a,iconPosition:c.disableNotificationBell?"none":"leading-trailing",onTap:D$T(c,m,x,P),disableTextEllipsis:!!J.disableTextEllipsis}};
D$T=function(J,c,m,b){return function(x){if(c){var P;var p=J.disableNotificationBell?_.ZG(J==null?void 0:(P=J.unsubscribeButtonContent)==null?void 0:P.onTapCommand):_.ZG(J==null?void 0:J.onShowSubscriptionOptions)}else{var t;p=_.ZG(J==null?void 0:(t=J.subscribeButtonContent)==null?void 0:t.onTapCommand)}p&&ws(p,{form:{element:m==null?void 0:m.value},commandController:b});x.stopPropagation()}};
LHT=function(J,c,m){if(c){if(J==null?0:J.disableNotificationBell){var b;return J==null?void 0:(b=J.unsubscribeButtonContent)==null?void 0:b.accessibilityText}switch(m){case "SUBSCRIPTION_NOTIFICATION_STATE_OCCASIONAL":var x;return J==null?void 0:(x=J.bellAccessibilityData)==null?void 0:x.occasionalLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":var P;return J==null?void 0:(P=J.bellAccessibilityData)==null?void 0:P.allLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":var p;return J==null?void 0:(p=
J.bellAccessibilityData)==null?void 0:p.offLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":var t;return J==null?void 0:(t=J.bellAccessibilityData)==null?void 0:t.disabledLabel;default:var I;return J==null?void 0:(I=J.unsubscribeButtonContent)==null?void 0:I.accessibilityText}}else{var a;return J==null?void 0:(a=J.subscribeButtonContent)==null?void 0:a.accessibilityText}};
zy3=function(J){if(J){switch(J){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":J="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":J="NOTIFICATIONS_OFF";break;default:J="NOTIFICATIONS_NONE"}return J}};
upt=function(J,c,m){m.subscribed!==c&&((m=m.key)&&_.AO(_.It("subscriptionStateEntity",m,{key:m,subscribed:c})),J.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:c})),c||_.m9(J,"yt-unsubscribe-action"))};
YEJ=function(J){J=_.L(_.ZG(J),_.KK);var c,m,b,x;return(x=_.L(J==null?void 0:(c=J.panelLoadingStrategy)==null?void 0:(m=c.inlineContent)==null?void 0:(b=m.sheetViewModel)==null?void 0:b.content,fVu))==null?void 0:x.listItems};
XxG=function(J,c){if(J.onShowSubscriptionOptions&&c&&(J=YEJ(J.onShowSubscriptionOptions),J!=null&&J.length)){var m=zy3(c);J.forEach(function(b){b=_.L(b,_.CK);var x,P,p,t,I=b==null?void 0:(x=b.leadingImage)==null?void 0:(P=x.sources)==null?void 0:(p=P[0])==null?void 0:(t=p.clientResource)==null?void 0:t.imageName;b&&I&&(b.isSelected=I===m)})}};
Zzf=function(J,c,m,b){c&&m?J.style.width=m+"px":!c&&b&&(J.style.width=b+"px")};
qEQ=function(J,c,m){var b;(b=J.lottieEl)==null||b.goToAndPlay(0);var x;(x=c.lottieEl)==null||x.goToAndPlay(0);_.at(_.ft,function(){var P;(P=m.lottieEl)==null||P.goToAndPlay(0)},300)};
kM=function(){return _.BG().resolve(_.y6(U$2))||{}};
SEm=function(J){return typeof J==="function"};
_.Hg=function(J){Object.keys(J);var c=function(m,b){var x=c.mapping||J;if(!m)return _.C(_.cG,null);if(Array.isArray(m)&&(m=hyq(x,c,m),Array.isArray(m))){if(!m.length)return _.C(_.cG,null);if(m.length>1){for(var P=!1,p=!1,t=[],I={},a=0;a<m.length;I={data$jscomp$1847:void 0},a++)if(I.data$jscomp$1847=m[a],I.data$jscomp$1847){var k=d$o(I.data$jscomp$1847,x),H=k.mappingEntry;k=k.rendererName;H&&k&&(H&&(!SEm(H)&&$$t(H)&&(p=!0),!SEm(H)&&H.asyncId||(P=!0)),t.push(GQD(I.data$jscomp$1847,H,k,c,b)))}return p&&
!P?_.C(_.cG,null,E4D()):_.C(_.cG,null,t)}m=m[0]}if(!m)return _.C(_.cG,null);m=hyq(x,c,[m])[0];if(!m)return _.C(_.cG,null);P=d$o(m,x);x=P.mappingEntry;P=P.rendererName;return x&&P?_.C(_.cG,null,GQD(m,x,P,c,b)):_.C(_.cG,null)};
c.mapping=J;return c};
_.v4Q=function(J){var c=void 0,m;for(m in J)if(J.hasOwnProperty(m)){c=m;break}return c};
hyq=function(J,c,m){var b,x=(b=kM().preProcessOptions)==null?void 0:b.idomOptions;if(!x)return m;kM();return x.preProcessPropsIdom(J,m,c.triggerRerender)};
d$o=function(J,c){return(J=_.v4Q(J))?{mappingEntry:c[J],rendererName:J}:{mappingEntry:void 0,rendererName:void 0}};
GQD=function(J,c,m,b,x){if(!c)return _.C(_.cG,null);var P={};x&&x[m]&&(P=Object.assign({},x[m]));J[m]!==void 0&&(P.data=J[m]);if(SEm(c))return c.debugName||(c.debugName=m),_.C(c,P);c.asyncId&&(b.pendingIdsMap=b.pendingIdsMap||{},b.pendingIdsMap[m]=c.asyncId);return c.templateFn?c.templateFn(P):$$t(c)?E4D():_.C(_.cG,null)};
$$t=function(J){var c;return(c=J.showPlaceholder)!=null?c:kM().defaultShowPlaceholder};
E4D=function(){var J=kM().placeholder;return J()};
Ozq=function(J,c){c=c===void 0?{shouldPersist:!0}:c;return{useUpdatableData:function(m,b){var x=[],P=_.M(_.aO(function(){var a=m();if(b!=null&&b.length&&x){var k=x.length>0;for(var H=!1,T=0;T<b.length;T++){var r=b[T]();k&&r!==x[T]&&(H=!0);x[T]=r}k=H}else k=!1;if(k)_.i$.remove(I());else if(k=_.i$.get(I()))return k;return a})),p=P.next().value,t=P.next().value,I=_.n2(function(){return J(m())},void 0,"VFraLb");
_.ui(function(){if(I()!=null){nK.set(I(),[p,t,!1]);var a=I();_.f2(function(){nK.delete(a)})}},"Fdafud");
return[p,function(a){t(a);c.shouldPersist&&_.i$.set(I(),a)}]},
getData:function(m){var b;return(b=nK.get(J(m)))==null?void 0:b[0]()},
updateData:function(m,b){m=J(m);var x=nK.get(m);if(!x)return!1;var P=_.M(x);x=P.next().value;P=P.next().value;b=b(x());P(b);c.shouldPersist&&_.i$.set(m,b);return!0},
useUpdatableDataIdom:function(m,b){var x=J(m),P=_.i$.get(x),p=_.M(Nx(P!=null?P:m)),t=p.next().value,I=p.next().value,a=Yy(P!=null?P:m);ze(function(){if(x!=null)return nK.set(x,[function(){return a.value},
function(k){I(k);a.value=k},
nK.has(x)]),_.ft.addJob(function(){_.T9(_.ft,function(){var k=nK.get(x);k&&(k[2]=!1)},0)},8),function(){var k;
((k=nK.get(x))==null?0:k[2])||nK.delete(x)}},[x]);
ze(function(){t!==m&&(I(m),a.value=m)},b?[].concat(_.L6(b),[x]):[x]);
return[t,I]}}};
AhJ=function(J){var c=_.M(_.K2(!0,void 0,"bKtO6d")),m=c.next().value;c.next();return function(){var b=K3(J.children());return _.C(_.n,{cond:m,then:function(){return b},
else:J.fallback})}()};
_.wi=function(J){var c=Ryq(J),m=c.data,b=c.mapping,x=c.wrapper;c=c.pendingFallback;var P=function(){return o4o(_.XD(m))},p=function(){var t=P(),I=[];
t=_.M(t);for(var a=t.next();!a.done;a=t.next()){var k=void 0;a=a.value;var H=void 0;for(k in a)if(!(!a).hasOwnProperty(k)){H=k;break}(k=H)&&I.push(k)}return I};
return J.data?_.C(AhJ,{fallback:c},function(){return _.C(_.Te,{each:p},function(t,I){var a=x?function(H){return x(function(){return b[t](H,I)},k,I)}:function(H){return b[t](H,I)};
a.debugName||(a.debugName=String(t));if(!b[String(t)])return document.createComment("");var k=Qdo(P,t,I);return _.C(a,{data:k})})}):_.C(_.cG,null)};
Ryq=function(J){var c=J.targetId||eyJ(J.children);if(!J.data||!c||_.w("mweb_new_replaceables_killswitch"))return Object.assign({},J,{mapping:J.children,wrapper:void 0});var m="stamper-"+jdQ++,b=function(){var t;return(t=_.XD(J.targetId))!=null?t:m};
c=_.M(FHm(function(){var t=o4o(J.data());t.targetId=b;return t})).next().value;
var x=Object.assign({},kM().replaceableMapping,J.children);if(J.replacementWrapper){var P=x.notificationTextRenderer,p=x.notificationMultiActionRenderer;P&&(x.notificationTextRenderer=function(t,I){return J.replacementWrapper(P({data:t.data},I))});
p&&(x.notificationMultiActionRenderer=function(t,I){return J.replacementWrapper(p({data:t.data},I))})}return Object.assign({},J,{data:c,
mapping:x,wrapper:function(t,I,a){return kSJ({targetId:b,stamperIndex:a},t)}})};
Qdo=function(J,c,m){var b;return _.n2(function(){var x=J()[m()];if(x)b=x[c];else return _.qz(new _.w3("Stamper failed to find "+String(c)+" at index "+m()+" of data array of length "+(J().length+" (b/365643359). Did you access a signal after a component has been cleaned up?"))),b;return x[c]},void 0,"DHuMIe")};
eyJ=function(J){J=_.M(Object.keys(J));for(var c=J.next();!c.done;c=J.next())if(c=c.value,lVm.includes(c)||yhq.includes(c)||BHe.includes(c))return!0;return!1};
o4o=function(J){return J?Array.isArray(J)?J:[J]:[]};
g4J=function(J){J=_.L(J,_.ri);return(J==null?void 0:J.iconName)&&!(J==null?0:J.title)};
mWJ=function(J,c,m){var b;return _.C(_.cG,null,J==null?void 0:(b=J.actions)==null?void 0:b.map(function(x){return _.C("div",{class:function(){var P={"yt-flexible-actions-view-model-wiz__action":!0};P["yt-flexible-actions-view-model-wiz__action--row-action"]=c;P["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1;if(g4J(x))var p=!0;else if(p=_.L(x,_.sc),(p==null?0:p.isToggled)&&g4J(p==null?void 0:p.toggledButtonViewModel)||(p==null||!p.isToggled)&&g4J(p==null?void 0:p.defaultButtonViewModel))p=
!0;else{var t;p=((t=_.L(x,J_t))==null?0:t.playlistId)?!0:!1}P=(P["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=p,P["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=m,P);return _.tP(P)}},c_r([x],{subscribeButtonViewModel:{isOverlay:!1,
animateWidth:!c}}))}))};
bDR=function(J){var c=J.layout===1,m,b=((m=J.data)==null?void 0:m.style)==="FLEXIBLE_ACTIONS_STYLE_SCROLLING";m={};b=(m["yt-flexible-actions-view-model-wiz"]=!0,m["yt-flexible-actions-view-model-wiz--inline"]=!c,m["yt-flexible-actions-view-model-wiz--scrollable"]=b,m);var x,P;return _.C("yt-flexible-actions-view-model",{class:_.tP(J.className,b)},(x=J.data)==null?void 0:(P=x.actionsRows)==null?void 0:P.map(function(p){if(c){var t;return _.C("div",{class:"yt-flexible-actions-view-model-wiz__action-row"},
mWJ(p,c,!((t=J.data)==null||!t.respectActionIntrinsicWidth)))}return mWJ(p,c,!1)}))};
xWf=function(J){return!(J==null||!J.iconName||(J==null?0:J.title))};
VXt=function(J){var c=_.L(J.data.toggleButtonViewModel,_.sc),m,b=(m=J.data.dislikeEntityKey)!=null?m:"",x=JhT(Yx,[b]);c=Object.assign({},c,{isToggled:x?x.likeStatus==="DISLIKE":c.isToggled});return _.C("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.C(_.LK,{data:c,buttonShapeOverrides:J.buttonShapeOverrideables,onToggle:function(P){x&&P!==(x.likeStatus==="DISLIKE")&&x.key&&_.AO(_.DI("likeStatusEntity",x.key,{likeStatus:P?"DISLIKE":"INDIFFERENT",hadUserInteraction:P}))}}))};
MXo=function(J){var c=_.w("web_supports_animations_api"),m=_.L(J.data.toggleButtonViewModel,_.sc),b,x,P,p,t=_.M(Nx({numberText:(p=(b=J.likeCountEntity)==null?void 0:(x=b.likeCountIfIndifferent)==null?void 0:x.content)!=null?p:"",numberValue:Number((P=J.likeCountEntity)==null?void 0:P.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!1})),I=t.next().value,a=t.next().value,k,H,T,r;b=_.M(Nx({numberText:(r=(k=J.likeCountEntity)==null?void 0:(H=k.likeCountIfLiked)==null?void 0:H.content)!=null?
r:"",numberValue:Number((T=J.likeCountEntity)==null?void 0:T.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!1}));k=b.next().value;var W=b.next().value;H=_.M(Nx());var Y=H.next().value,Z=H.next().value,d;H=(d=J.data.likeStatusEntityKey)!=null?d:"";var G,e;d=(e=(G=J.likeCountEntity)==null?void 0:G.key)!=null?e:"";var A=JhT(Yx,[H]),l=JhT(jLJ,[d]);G=Ca2(function(){return(A==null?void 0:A.likeStatus)==="LIKE"},[A]);
ze(function(){var y,pG=l&&((y=l.likeCountIfIndifferent)==null?void 0:y.content)!==I.numberText;if(!Y&&pG){var kt,nG;a({numberText:(nG=l==null?void 0:(kt=l.likeCountIfIndifferent)==null?void 0:kt.content)!=null?nG:"",numberValue:Number(l==null?void 0:l.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!0});var fG,Yt;W({numberText:(Yt=l==null?void 0:(fG=l.likeCountIfLiked)==null?void 0:fG.content)!=null?Yt:"",numberValue:Number(l==null?void 0:l.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!0})}},
[l]);
m=Object.assign({},m,{isToggled:G});c=c&&J.likeCountEntity;return _.C("like-button-view-model",{class:"ytLikeButtonViewModelHost"},_.C(_.LK,{data:m,buttonShapeOverrides:J.buttonShapeOverrideables,animatedTextPropsDefault:c?I:void 0,animatedTextPropsToggled:c?k:void 0,onToggle:function(y){PZe(y,A,Y,Z)},
style:function(){return J.disableIconAnimation?void 0:{animateIcon:"true"}}}))};
PZe=function(J,c,m,b){m&&_.ft.cancelJob(m);m=_.ft.addLowPriorityJob(function(){b(void 0)},5E3);
b(m);c&&J!==(c.likeStatus==="LIKE")&&c.key&&_.AO(_.It("likeStatusEntity",c.key,{key:c.key,likeStatus:J?"LIKE":"INDIFFERENT",hadUserInteraction:J}))};
pnQ=function(J,c,m,b){m&&_.ft.cancelJob(m);m=_.ft.addLowPriorityJob(function(){b(void 0)},5E3);
b(m);c&&J!==(c.likeStatus==="LIKE")&&c.key&&_.AO(_.It("likeStatusEntity",c.key,{key:c.key,likeStatus:J?"LIKE":"INDIFFERENT",hadUserInteraction:J}))};
Imf=function(J){var c,m=_.L((c=J.data)==null?void 0:c.likeButtonViewModel,_.Wg),b;c=_.L((b=J.data)==null?void 0:b.dislikeButtonViewModel,_.z9);var x,P=(x=JhT(Yx,[(m==null?void 0:m.likeStatusEntityKey)||""]))!=null?x:m==null?void 0:m.likeStatusEntity;b=Ca2(function(){var p=J.data,t;p=(p==null?void 0:(t=p.timedAnimationData)==null?void 0:t.animationTiming)||[];return{uniqueId:"like-dislike",timings:p,enabled:(P==null?void 0:P.likeStatus)==="INDIFFERENT"&&p.length>0,experimentEnabled:p.length>0}},[J.data,
P]);return _.C("segmented-like-dislike-button-view-model",{class:_.tP(J.className,"ytSegmentedLikeDislikeButtonViewModelHost"),"button-renderer":!0},_.C(u$,{settings:b},_.C("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},m?_.C(Nko,{data:m,likeCountEntity:J.data.likeCountEntity,buttonShapeOverrideables:{segmentedPosition:"start"}}):null,c?_.C(tX2,{data:c,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}}):null)))};
KrD=function(J,c){var m=eH(J)||{layerNode:c};m.layerNode=c;UwD(J,m);J.getScreenLayer=function(){return fK(m.layerNode)}};
CZe=function(J){var c;J=J.parentNode;for(var m;J&&((c=eH(J))==null||!c.isRenderer)&&!((m=J.polymerController)!=null?m:J).isRenderer_;)J=J.parentNode||J.host;if(c=J)return eH(c)};
amT=function(J){if(J){Qq.delete(J);var c=_.BG().resolve(BO);un2(J,c)}};
HDe=function(J,c,m){if(m===void 0?0:m){if(m=J.getAttribute("client-ve-type"),c.data&&!c.disableReactiveLogging||m)_.Z7(function(){kuQ(J,_.XD(c.data))}),_.f2(function(){return void amT(J)})}else typeof c.data!=="function"&&kuQ(J,c.data)};
kuQ=function(J,c){iDo++;nXR(J,c)&&_.ft.addJob(function(){_.T9(_.ft,function(){if(nXR(J,c)&&J.ownerDocument.documentElement===document.documentElement&&J){var m;if(J.getAttribute("layer")){var b=m=Number(J.getAttribute("layer")),x=eH(J);x?x.layerNode.layer=b:KrD(J,new Tkm(b));(b=CZe(J))&&(x=eH(J))!=null&&(x.layerNode.parent=b.layerNode)}else if(m=eH(J))m=fK(m.layerNode);else{m=fK;b=new Tkm;if(x=CZe(J))b.parent=x.layerNode;KrD(J,b);m=m(b)}m!=null||(m=0);b=J.getAttribute("client-ve-type");x=Number(b);
var P=!1;b=!1;var p=eH(J),t;if((t=p)&&!(t=p[YM]!==c)&&(t=x)){var I;t=((I=Qq.get(J))==null?void 0:I.clientVeType)===void 0}t&&(p[YM]=c,P=b=p.isRenderer=!0);Qq.has(J)&&(Qq.get(J).clientVeType=x);J.visualElement&&(b=!0);if(_.w("wiz_next_ld_fix_client_ve_spec")){var a;I=((a=_.L(c==null?void 0:c.rendererContext,_.aA))==null?void 0:a.loggingDirectives)||(c==null?void 0:c.loggingDirectives)}else I=c==null?void 0:c.loggingDirectives;I&&I.clientVeSpec&&(a=wnt(_.IA(),J),a=_.r_J(_.C7(),I,a||void 0,m))&&(J.visualElement=
a);!J.visualElement&&x&&P&&(J.veType=x,a=void 0,_.w("wiz_next_client_ve_parent_fix")&&(a=wnt(_.IA(),J)),a=_.K7(_.C7(),J,a,m),J.visualElement=a);b&&(a=_.BG().resolve(BO),Z5R(J,{data:c,observer:a,layer:m,showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}))}},0)},8)};
nXR=function(J,c){return(c==null?0:c.trackingParams)||(c==null?0:c.loggingDirectives)||_.L(c==null?void 0:c.rendererContext,_.aA)||J.getAttribute("client-ve-type")?!0:!1};
Lr3=function(J){return _.w("cow_logging_in_component_wrapper")?function(c){HDe(c,J,!0)}:s0T};
s0T=function(){};
_.DWD=function(J,c){return _.P2(J.entities,"accountLinkStatusEntity",c)};
Wre=function(J,c){return _.P2(J.entities,"hatsSurveyEntity",c)};
zaq=function(J,c){return _.P2(J.entities,"hatsSurveyStateEntity",c)};
udr=function(J,c){return _.P2(J.entities,"quantityIncrementerEntity",c)};
qyJ=function(J){var c=J.data;var m=J.className===void 0?"":J.className;var b=J.setMinWidth;J=J.forceIconOnly;var x=_.oN("account-link-button-view-model",Lr3({data:c}));b=b?"ytwAccountLinkButtonViewModelHostMinWidth":"";var P=_.tT(_.DWD,function(){var H;return(H=_.XD(c).accountLinkStatusEntityKey)!=null?H:""}),p=_.tT(_.DWD,function(){var H;
return(H=_.XD(c).accountLinkStatusSecondaryEntityKey)!=null?H:""}),t=function(){if(!_.w("web_account_link_secondary_killswitch")){var H,T;
return((H=P())==null?void 0:H.linked)||((T=p())==null?void 0:T.linked)}var r;return(r=P())==null?void 0:r.linked};
_.ui(function(){var H=P();if(H){var T=fmQ(new Yyf,XnR(new ZDu,!!H.linked));_.mf().then(function(r){r&&(r.setAccountLinkState(_.yR(T.JSC$10075_serializeBinary(),4)),r.updateAccountLinkingConfig(!!H.linked))})}},"lLLHt");
var I=function(){return _.L(_.XD(c).toggleButtonViewModel,_.sc)};
_.RN("yt-signal-action-show-account-link-dialog",function(){if(I()){var H=t()?I().toggledButtonViewModel:I().defaultButtonViewModel;H=_.L(H,_.ri);var T;if((T=P())==null?0:T.isWarning){T=_.L(_.XD(c).warningButtonViewModel,_.ri);if(!T){_.Ge(Error("xh"));return}H=T}var r;(T=_.ZG((r=H)==null?void 0:r.onTap))&&_.tS([T],x.value)}else _.Ge(Error("yh"))});
var a=function(){var H=I();return Object.assign({},H,{isToggled:t()})},k=J?{iconPosition:"icon-only"}:{};
return _.C("account-link-button-view-model",{class:_.pq("ytwAccountLinkButtonViewModelHost",function(){return _.XD(m)},b),
el:x,"button-renderer":!0},_.C("div",null,_.C(_.n,{cond:function(){var H;if((H=P())==null?0:H.isWarning)return(H=_.L(_.XD(c).warningButtonViewModel,_.ri))||_.Ge(Error("xh")),H},
then:function(H){return _.C(_.XU,{data:H,buttonOverrides:k})},
else:function(){return _.C(_.LK,{data:a,buttonShapeOverrides:k})}})))};
UWe=function(J){switch(J){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}};
SyT=function(J){switch(J){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}};
ham=function(J){switch(J){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"}};
_.$W3=function(J){var c=_.c7("web_generic_client_event_wait_period ",0);c||(c=3E5);var m=dWu.get(J);!_.w("enable_web_client_experiment_event_timeout_killswitch")&&m&&(0,_.y4)()-m<c||(dWu.set(J,(0,_.y4)()),_.zB("genericClientExperimentEvent",{eventType:J}))};
Gur=function(J){switch(J){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""}};
EXe=function(J){if(!J)return"";var c,m=(c=_.BG().resolve(_.y6(_.Ev)))==null?void 0:c(),b;if(!m&&((b=J.vibrantColorPalette)==null?0:b.iconInactiveColor))return UT(J.vibrantColorPalette.iconInactiveColor,"1");var x;return m&&((x=J.darkColorPalette)==null?0:x.iconInactiveColor)?UT(J.darkColorPalette.iconInactiveColor,"1"):J.color?UT(J.color,"1"):J.sampledThumbnailColor?(J=J.sampledThumbnailColor,"rgba("+J.red+","+J.green+","+J.blue+");"):""};
_.ZI=function(J,c){if(!J.includes("DATE_PLACEHOLDER"))return J;var m=new Date(0);m.setUTCSeconds(c);return J.replace("DATE_PLACEHOLDER",vXJ(m))};
_.qx=function(J){return J!=null&&J.watch?J.watch.isTheaterMode:!1};
_.Uc=function(J){return J!=null&&J.watch?J.watch.isWatchFullscreen:!1};
_.S8=function(J){J=_.ODQ(J);return _.w("web_watch_enable_single_column_grid_view")?J:!1};
_.ODQ=function(J){return J.watch.isWatchNarrowWidth};
A_T=function(J,c,m){return function(b){var x=J.command;x&&(ws(x,{form:{element:m}}),c([x],b))}};
oXe=function(J,c,m,b,x){return function(P){var p=Rao(J,m);p&&ws(p,{form:{element:b},commandController:x});c&&c.stopPropagation&&P.stopPropagation()}};
Rao=function(J,c){if(J.signInEndpoint&&!_.w("web_subscribe_sign_in_endpoint_killswitch"))return J.signInEndpoint;if(c){if(J.serviceEndpoints)return J.serviceEndpoints[1];if(J.onUnsubscribeEndpoints)return J.onUnsubscribeEndpoints[0]}else{if(J.serviceEndpoints)return J.serviceEndpoints[0];if(J.onSubscribeEndpoints)return J.onSubscribeEndpoints[0]}};
Q0o=function(J,c){var m,b,x,P;c=c&&((m=J.unsubscribeAccessibility)==null?void 0:(b=m.accessibilityData)==null?void 0:b.label)||((x=J.subscribeAccessibility)==null?void 0:(P=x.accessibilityData)==null?void 0:P.label);return J.longSubscriberCountText?[c,_.OG(J.longSubscriberCountText)].filter(function(p){return p}).join(" "):c};
hT=function(J,c){return c||(J==null?0:J.isChannelDelegate)?"disabled":"active"};
ea2=function(J,c){var m;switch((m=J.style)==null?void 0:m.styleType){case "COMPACT_GRAY":return{style:"mono",type:"tonal",state:hT(J)};case "MEDIUM_GRAY":return{style:"mono",type:"tonal",state:hT(J)};case "VISIBLY_DISABLED":return{style:"mono",type:"text",state:hT(J,!0)};case "OVERLAY":return c?{style:"overlay",type:"tonal",state:hT(J)}:{style:"overlay",type:"filled",state:hT(J)};default:return c?{style:"mono",type:"tonal",state:hT(J)}:{style:"mono",type:"filled",state:hT(J)}}};
j0Q=function(J,c){var m=J.map(function(b){return b.toString()});
return _.Kq(function(b){if(m.includes(b.key)){c&&b.preventDefault();var x;(x=b.currentTarget)==null||x.click()}})};
_.Fru=function(){return j0Q(["Enter"])};
_.lm2=function(){return j0Q(["Enter"," "],!0)};
_.di=function(J){if(J.composedPath)return J.composedPath();if(!J.__composedPath){for(var c=[],m=J.target;m;)c.push(m),m=m.parentNode;c.push(window);J.__composedPath=c}return J.__composedPath};
_.$M=function(J,c,m){J=_.M(J);for(var b=J.next();!b.done;b=J.next()){b=b.value;if(b===c)break;for(var x=_.M(m),P=x.next();!P.done;P=x.next())if(P=P.value,b.tagName===P||b.role==="button"&&P==="BUTTON")return!0}return!1};
Bkm=function(J,c){var m,b=(m=c.observer)!=null?m:_.BG().resolve(BO);if(J){m=y_T(J);var x=[];c.showOption&&x.push(b.observe(J,function(){c.visibilityCallback(!0)},c.showOption));
c.hideOption&&x.push(b.observe(J,function(){c.visibilityCallback(!1)},c.hideOption));
c.prescanOption&&c.prescanCallback&&x.push(b.observe(J,function(){c.prescanCallback()},c.prescanOption));
var P;m.visibilityMonitorKeys=((P=m.visibilityMonitorKeys)!=null?P:[]).concat(x)}};
y_T=function(J){var c;return(c=J.polymerController)!=null?c:J};
_.Ec=function(J){return!!_.G9(J)};
_.czQ=function(J,c){var m=HAG();ze(function(){var b=J.value;if(b)return gX2(b,c),JzR(b,c,void 0,void 0,void 0,m)},[c])};
_.vg=function(J,c,m,b,x,P){var p=HAG();_.ui(function(){var t=J.value;t&&(gX2(t,c(),P),t=JzR(t,c(),m,b,x,p),_.f2(t))},"GXtnHd")};
gX2=function(J,c,m){var b=mne(c),x=bWr(c);c=b&&xnJ;var P=x&&ViD;(b||x)&&Bkm(J,{visibilityCallback:function(p){var t=_.BG().resolve(_.gu);p&&b?t.resolveCommand(b,{form:{element:m?J:void 0},disableClickTracking:!0}):!p&&x&&t.resolveCommand(x,{form:{element:m?J:void 0},disableClickTracking:!0})},
showOption:c,hideOption:P})};
JzR=function(J,c,m,b,x,P){var p=new Map;if(c=_.G9(c)){var t;J=(b==null?void 0:(t=b.onTap)==null?void 0:t.value)||J;m=Pft(c,J,m==null?void 0:m.onTap,x,P);J.addEventListener("click",m);p.set("click",m)}return function(){for(var I=_.M(p),a=I.next();!a.done;a=I.next()){var k=_.M(a.value);a=k.next().value;k=k.next().value;J.removeEventListener(a,k)}}};
_.G9=function(J){var c;return(J=(c=_.L(J,Mif))==null?void 0:c.onTap)&&_.ZG(J)};
mne=function(J){var c;return(J=(c=_.L(J,Mif))==null?void 0:c.onVisible)&&_.ZG(J)};
bWr=function(J){var c;return(J=(c=_.L(J,Mif))==null?void 0:c.onHidden)&&_.ZG(J)};
Pft=function(J,c,m,b,x){var P=function(t){_.BG().resolve(_.gu).resolveCommand(J,t)},p=function(t){b&&_.$M(_.di(t),c,b)||P(t.target?{form:{element:t.target,
sourceData:J,mutationContext:x}}:void 0)};
m&&(p=function(t){m(t,P)});
return p};
pCD=function(J){switch(J){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}};
Ngm=function(J){var c=J.numAvatarsInCluster;switch(J.clusterSize){case "small":return c===2?22:18;case "40":return c===2?24:22;default:return c===2?24:20}};
tio=function(J,c){return function(m){var b=Object.keys(c);_.ui(function(){if(J()){for(var x=_.M(b),P=x.next();!P.done;P=x.next())P=P.value,m.addEventListener(P,c[P]);_.f2(function(){for(var p=_.M(b),t=p.next();!t.done;t=p.next())t=t.value,m.removeEventListener(t,c[t])})}},"bXZGfe")}};
Ig3=function(J){switch(Ngm(J)){case 18:return"yt-spec-avatar-shape--avatar-in-cluster-size-18";case 20:return"yt-spec-avatar-shape--avatar-in-cluster-size-20";case 22:return"yt-spec-avatar-shape--avatar-in-cluster-size-22";case 24:return"yt-spec-avatar-shape--avatar-in-cluster-size-24";default:return""}};
Kkq=function(J){switch(J){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""}};
Cf3=function(J){switch(Ngm(J)){case 18:return"yt-spec-avatar-shape__button--button-in-cluster-size-18";case 20:return"yt-spec-avatar-shape__button--button-in-cluster-size-20";case 22:return"yt-spec-avatar-shape__button--button-in-cluster-size-22";case 24:return"yt-spec-avatar-shape__button--button-in-cluster-size-24";default:return""}};
agt=function(J){switch(J){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""}};
kpf=function(J){switch(J){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}};
HWG=function(J){return J==="medium"||J==="48"||J==="large"||J==="extra-large"||J==="extra-extra-large"||J==="giant"};
iWo=function(J){return!!((J==null?0:J.includes(3))||(J==null?0:J.includes(5)))};
Tgq=function(J){return{size:noT(J.data.avatarImageSize),onTap:J.onTap,decorations:J.decorations||[],badgeText:J.badgeText,accessibilityText:J.accessibilityText,avatarButtonCustomClassName:J.avatarButtonCustomClassName,clusterLayoutConfig:J.clusterLayoutConfig}};
noT=function(J){switch(J){case "AVATAR_SIZE_XXS":return"tiny";case "AVATAR_SIZE_XS":return"extra-small";case "AVATAR_SIZE_S":return"small";case "AVATAR_SIZE_M":return"medium";case "AVATAR_SIZE_L":return"large";case "AVATAR_SIZE_XL":return"extra-large";case "AVATAR_SIZE_XXL":return"extra-extra-large";case "AVATAR_SIZE_XXXL":return"giant";case "AVATAR_SIZE_RESPONSIVE":return"responsive";case "AVATAR_SIZE_40":return"40";case "AVATAR_SIZE_48":return"48";default:return"medium"}};
wCq=function(J){switch(J){case "AVATAR_SIZE_XXS":return 16;case "AVATAR_SIZE_XS":return 24;case "AVATAR_SIZE_S":return 32;case "AVATAR_SIZE_M":return 36;case "AVATAR_SIZE_40":return 40;case "AVATAR_SIZE_48":return 48;case "AVATAR_SIZE_L":return 56;case "AVATAR_SIZE_XL":return 72;case "AVATAR_SIZE_XXL":return 120;case "AVATAR_SIZE_XXXL":return 160;default:return 0}};
rzm=function(J){switch(J){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""}};
siT=function(J){var c=J.layoutType==="AVATAR_STACK_LAYOUT_CLUSTER",m,b=J.avatars&&J.avatars.length>0?(m=_.L(J.avatars[0],_.Oc))==null?void 0:m.avatarImageSize:"AVATAR_SIZE_UNKNOWN";m=wCq(b)||0;if(c){var x,P=(x=J.avatarClusterSize)!=null?x:"AVATAR_SIZE_M";c=wCq(P);var p,t,I=Math.min((t=(p=J.avatars)==null?void 0:p.length)!=null?t:0,4),a;return{avatars:((a=J.avatars)==null?void 0:a.slice(0,4))||[],avatarSizeInPx:m,avatarStackStyle:{width:c+"px",height:c+"px",position:"relative"},avatarStyle:function(H){var T=
Ngm({clusterSize:noT(P),numAvatarsInCluster:I,avatarIndex:H});var r=wCq(P);I===3&&H===2?(r=(r-T)/2,r=(_.Ub("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl"?-1:1)*r):r=void 0;return{position:"absolute",top:I===2&&H===1||I===3&&H===2||I===4&&H>=2?"0":void 0,bottom:I===2&&H===0||I>2&&H<2?"0":void 0,left:I===2&&H===1||I>2&&(H===1||H===3)?"0":void 0,right:I<=3&&H===0||I===4&&(H===0||H===2)?"0":void 0,transform:r?"translateX("+r+"px)":void 0,width:T+"px",height:T+"px"}},
avatarStackClass:void 0,avatarClass:void 0,clusterLayoutConfig:function(H){return{clusterSize:noT(J.avatarClusterSize),numAvatarsInCluster:I,avatarIndex:H}},
avatarButtonCustomClassName:void 0}}var k;return{avatars:((k=J.avatars)==null?void 0:k.slice())||[],avatarSizeInPx:m,avatarStackClass:"yt-avatar-stack-view-model-wiz__avatars",avatarClass:rzm(b),avatarStyle:function(){return{}},
avatarStackStyle:{},clusterLayoutConfig:void 0,avatarButtonCustomClassName:"yt-avatar-stack-view-model-wiz__avatar-button"}};
LkR=function(J,c,m){return function(){ws(J,{form:{element:c},commandController:m})}};
Dnu=function(J){switch(J){case "small":return"ytThumbnailOverlayAvatarStackViewModelavatarStackSmall";case "medium":return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium";case "large":return"ytThumbnailOverlayAvatarStackViewModelavatarStackLarge";default:return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium"}};
WkG=function(J){switch(J){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"}};
z72=function(J){var c=J.data;J=J.hidden===void 0?!1:J.hidden;var m={};J={class:_.tP("yt-page-indicator-view-model",(m["yt-page-indicator-view-model__indicator--hidden"]=!c.indicatorCount,m)),hidden:J};if(c.indicatorCount){m=[];for(var b=0;b<c.indicatorCount;b++){var x={};x=_.tP("yt-page-indicator-view-model__indicator",(x["yt-page-indicator-view-model__indicator--selected"]=c.selectedIndex===b,x));m.push(_.C("div",{class:x}))}c=_.C(_.cG,null,m)}else c=_.C(_.cG,null);return _.C("yt-page-indicator-view-model",
J,c)};
fgr=function(J){J&&(ufu(J)?delete J.inlinePlayerData:"inlinePlaybackEndpoint"in J&&delete J.inlinePlaybackEndpoint)};
Yue=function(J){if("accessibilityText"in J)return J.accessibilityText||"";if("title"in J){var c,m,b;return((c=J.title)==null?void 0:(m=c.accessibility)==null?void 0:(b=m.accessibilityData)==null?void 0:b.label)||""}if("accessibility"in J){var x,P;return((x=J.accessibility)==null?void 0:(P=x.accessibilityData)==null?void 0:P.label)||""}return""};
ufu=function(J){return"inlinePlayerData"in J};
AT=function(J){return new XCo(J)};
_.ZWo=function(J,c,m,b,x,P){var p=function(a){a.preventDefault()},t=function(){var a=J.value;
if(a)return(a._data=c)?(a.addEventListener("touchstart",rve,{passive:!0}),a.addEventListener("click",Lzf),c.clickTrackingParams&&(a.params={itct:c.clickTrackingParams}),DeD(a,c),W0(a,WzD(c)||"")):a.addEventListener("click",p),function(){c?(a.removeEventListener("touchstart",rve,{passive:!0}),a.removeEventListener("click",Lzf)):a.removeEventListener("click",p)}},I=function(){var a=J.value;
if(a){var k=_.Uv({innertubeCommand:c,elementsCommand:m,forceNewState:b,stopPropagation:P});if(k)return a._data=k._data,k["aria-haspopup$"]&&a.setAttribute("aria-haspopup",k["aria-haspopup$"].toString()),k["force-new-state$"]&&a.setAttribute("force-new-state",k["force-new-state$"].toString()),k.href$&&W0(a,k.href$),k.rel$&&(a.rel=k.rel$),k.role$&&a.setAttribute("role",k.role$),k.target$&&(a.target=k.target$),a.params=k.params,k.onclick&&a.addEventListener("click",k.onclick),k.onpointerdown&&a.addEventListener("onpointerdown",
k.onpointerdown),function(){k.onclick&&a.removeEventListener("click",k.onclick);k.onpointerdown&&a.removeEventListener("onpointerdown",k.onpointerdown)}}};
ze(x?I:t,[c,m])};
quJ=function(J){var c=J.children;var m=J.className;var b=J.dir;var x=J.style;var P=J.role;var p=J.ariaSelected;var t=J.ariaLabel;var I=J.ariaHidden;var a=J.ariaLabelledby;var k=J.ariaDescribedby;var H=J.command;var T=J.elementsCommand;var r=J.forceNewState;var W=J.isPlaceholder;var Y=J.tabIdentifier;var Z=J.target;var d=J.tabIndex;var G=J.useATagConfig;var e=J.stopPropagation;J=_.oN("a");_.ZWo(J,H,T,r,G,e);return _.C("a",{el:J,"on:click":_.Kq(function(){return e===!1}),
class:m,style:x,dir:b,role:P?P:H?void 0:"group","aria-hidden":I?!0:void 0,"aria-label":t,"aria-labelledby":a,"aria-describedby":k,"aria-selected":p,tabindex:d!==void 0?d:void 0,target:Z,"tab-identifier":Y,"force-new-state":r?!0:void 0,"is-placeholder":W?!0:void 0},c)};
Une=function(J){var c=J.data;J=_.Kq(function(){var x=_.L(c.onTap,_.Xz);x&&_.BG().resolve(_.gu).resolveCommand(x);return!1});
var m={sources:[{url:c.thumbnailUrl,width:120,height:90}]},b=c.rating&&c.ratingA11yLabel&&c.reviewsCount&&c.reviewsCountA11yLabel;return _.C("place-data-view-model",null,c.placeName&&c.placeCategory?_.C("div",{class:"yt-spec-place-data-view-model-shape","on:click":J},_.C(_.RA,{data:m,alt:"",targetWidth:120,targetHeight:90,className:"yt-spec-place-data-view-model-shape__thumbnail"}),_.C(quJ,{className:"yt-spec-place-data-view-model-shape__place-link",command:_.L(c.onTap,_.Xz),forceNewState:!0,useATagConfig:!0},
_.C("h3",{class:"yt-spec-place-data-view-model-shape__name",title:c.placeName},c.placeName)),_.C("div",{class:"yt-spec-place-data-view-model-shape__metadata"},b?_.C("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-ratings"},_.C("span",{class:"score",title:c.ratingA11yLabel},c.rating),_.C("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-star-icon"},_.C(_.HP,{icon:"STAR",active:!0,style:"width: 14px; height: 14px; color: #fabb05"})),
_.C("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-reviews",title:c.reviewsCountA11yLabel},c.reviewsCount)):_.C("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-ratings"}),_.C("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-categories"},_.C("span",{class:"category",title:c.placeCategory},c.placeCategory)))):null)};
SuQ=function(J){return function(c){J&&(J.thumbnailElRef=c.thumbnailElRef,J.thumbnail=c.thumbnail,J.thumbnailOverlays=c.thumbnailOverlays,J.thumbnailSize=c.thumbnailSize)}};
h7t=function(J){var c;return(c=J.sharedUi)==null?void 0:c.animatedThumbnailEnabled};
dno=function(J){var c;return(c=J.sharedUi)==null?void 0:c.inlinePreviewEnabled};
_.$nD=function(J){var c;return(c=J.sharedUi)==null?void 0:c.currentPageSubType};
GpD=function(J){switch(J){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"}};
voJ=function(J){var c=_.M(_.K2(!1,void 0,"RIOonf")),m=c.next().value,b=c.next().value;_.uN(function(){var x=J==null?void 0:J();if(x){var P=_.BG().resolve(_.y6(Eof));if(P){var p={triggeringElement:x,onDwellTriggeredFn:function(){b(!0)},
onDwellEndFn:function(){b(!1)}};
P.registerElement(p);_.f2(function(){P.unregisterElement(p)})}}});
return m};
OWG=function(J,c,m){m?m(c):_.hd(c,J.target?{form:{element:J.target}}:void 0)};
_.Rt=function(J,c,m,b){_.ui(function(){var x=J.value;if(x){var P=new Map,p,t=(p=c())==null?void 0:p.onTap;t&&(p=function(I){a:{var a=I.composedPath();a=_.M(a);for(var k=a.next();!k.done;k=a.next()){k=k.value;if(k===x)break;if(k.className.indexOf("HostIsClickableAdComponent")>=0||k.tagName==="A".toString()||k.tagName==="BUTTON".toString()){a=!0;break a}}a=!1}a||(_.w("enable_square_image_components_ui_web_with_float_button")?_.cA(J.value,"yt-navigate",{endpoint:_.ZG(t)}):OWG(I,t,m))},(b==null?0:b())||
_.w("enable_web_home_top_landscape_image_layout_level_click")?(x.addEventListener("tap",p),P.set("tap",p)):(x.addEventListener("click",p),P.set("click",p)));
_.f2(function(){for(var I=_.M(P),a=I.next();!a.done;a=I.next()){var k=_.M(a.value);a=k.next().value;k=k.next().value;x.removeEventListener(a,k)}})}},"NUPHue")};
Azo=function(J,c){var m,b=(m=J.interaction)==null?void 0:m.onTap;if(J=_.Uv({elementsCommand:b,forceNewState:!0,skipOnClick:!0}))return J.onclick=function(x){iF2(x)&&(x.preventDefault(),b&&OWG(x,b,c))},SM(J)?J:void 0};
R72=function(J){switch(J){case "AD_BUTTON_SIZE_COMPACT":return"S";case "AD_BUTTON_SIZE_DEFAULT":return"M";case "AD_BUTTON_SIZE_LARGE":return"L";default:return"M"}};
ooQ=function(J){switch(J){case "AD_BUTTON_STYLE_OVERLAY":case "AD_BUTTON_STYLE_OVERLAY_TONAL":case "AD_BUTTON_STYLE_OVERLAY_TEXT":return"overlay";case "AD_BUTTON_STYLE_TRANSPARENT":case "AD_BUTTON_STYLE_MONO_FILLED":case "AD_BUTTON_STYLE_MONO_TONAL":case "AD_BUTTON_STYLE_MONO_OUTLINE":return"mono";case "AD_BUTTON_STYLE_OVERLAY_FILLED":return"call-to-action-overlay";default:return"call-to-action"}};
Qit=function(J){switch(J){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"}};
_.e7D=function(J){return _.w("rich_grid_enable_dynamic_offset")&&J?Math.max(Math.round((J-_.c7("rich_grid_dynamic_offset_anchor_width",1300))/100*_.c7("rich_grid_dynamic_offset_offset_per_100",10)),_.c7("rich_grid_dynamic_offset_lower_bound",-60)):0};
ji2=function(J,c){switch(c){case 4:return 16;case 1:return J<528?16:J<1024?32:48;case 2:return(J>=528?16:8)/2;case 3:return(J<528?16:J<1024?32:48)+(J>=528?16:8)/2;default:return 0}};
FkJ=function(J){var c=J.originalContainerWidth;var m=J.sizing;var b=J.standardUnit;if(J.isCompactList&&c<528)return 1;switch(m){case "STANDARD":return b;case "COMPACT":return b+1;case "EXTRA_COMPACT":return _.w("web_responsive_extra_compact_2x")?b*2:_.w("web_responsive_current")?b===1?2:b%2===0?b/2*3:b+2:b<4?b*2:Math.ceil(b*3/2);case "MINI":return b>1?b*2:3;default:return b}};
yzD=function(J){var c=J.containerWidth;var m=J.peek;var b=J.gutter;var x=J.numItems;J=J.ignoreMaxWidthLimit;c=m?Math.max((c-m-b*x)/x,0):Math.max((c-b*(x-1))/x,0);return J?c:Math.min(c,lgD)};
_.ot=function(J){var c=J.containerWidth;var m=J.hasPeek;var b=J.sizing;var x=J.marginSettings;var P=J.isCompactList;var p=J.enableFullBleedForSingleCol;var t=J.standardUnitMinWidth;b=b||"STANDARD";m=!!m;J=c>=528?16:8;var I=m?c>=528?48:24:0;x=ji2(c,x);var a=Math.max(c-x*2,0);t=_.w("kevlar_disable_min_width_override")?void 0:t;t=Math.min(Math.max(Math.floor((a-I+J)/((t!=null?t:BgT)+_.e7D(c)+J)),1),6);var k=(p=!!p&&t===1)||t===1&&b!=="STANDARD";m=m||k?a:Math.min(a,(lgD+J)*t-J);b=FkJ({originalContainerWidth:c,
sizing:b,standardUnit:t,isCompactList:P});return{itemWidth:yzD({containerWidth:m,peek:I,gutter:J,numItems:b,ignoreMaxWidthLimit:k}),gutter:J,maxContainerWidth:m,numItems:b,margin:p?0:x,contentMargin:ji2(c,1),typographyBump:yzD({containerWidth:m,peek:I,gutter:J,numItems:t,ignoreMaxWidthLimit:k})>400&&!(P&&c<528),standardUnit:t}};
goe=function(J){switch(J){case "RESPONSIVE_SIZE_COMPACT":return"COMPACT";case "RESPONSIVE_SIZE_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RESPONSIVE_SIZE_TINY":return"MINI";default:return"STANDARD"}};
_.JbQ=function(J){if(J){var c;if((c=J.responsiveContainerConfiguration)==null?0:c.responsiveSize)return goe(J.responsiveContainerConfiguration.responsiveSize);if(J.layoutSizing)switch(J.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"}}};
cbr=function(J){if(J.fullbleed)return 1;switch(J.containerType){case "CONTAINER_TYPE_VERTICAL_LIST":return 3;case "CONTAINER_TYPE_GRID":return 2;case "CONTAINER_TYPE_HORIZONTAL_LIST":return 4;default:return 3}};
VWQ=function(J,c,m,b,x,P,p,t){a:switch(J){case 4:P=!!(P&&P<100);break a;default:P=!1}a:switch(J){case 3:case 4:var I=b==="LOCKUP_CONTENT_TYPE_CHANNEL"||b==="LOCKUP_CONTENT_TYPE_SOURCE";break a;default:I=!1}a:switch(J){case 5:var a=!0;break a;case 4:a=!1;break a;default:a=!1}a:if(J===4&&b==="LOCKUP_CONTENT_TYPE_SOURCE")var k=1;else switch(J){case 3:k=1;break a;default:k=0}return{isOverlay:a,isCard:mqt(b,p),sizing:c!=null?c:"STANDARD",typographyBump:m!=null?m:!1,isTiny:P,isCentered:I,isCollection:bLo(b),
arrangement:k,addMarginForFullbleed:J===1&&b!=="LOCKUP_CONTENT_TYPE_VIDEO",fullbleed:J===1&&b==="LOCKUP_CONTENT_TYPE_VIDEO",aspectRatio:xqq(b,x,t),disableRounding:J===5||mqt(b,p)||J===1&&b==="LOCKUP_CONTENT_TYPE_VIDEO",collectionStackNumber:bLo(b)?2:0,useLegacyTypography:!(t==null||!t.useLegacyTypography),useRichGridLegacyTypography:!(t==null||!t.useRichGridLegacyTypography)&&!_.w("web_enable_typography_bump")}};
bLo=function(J){switch(J){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}};
mqt=function(J,c){if(c&&J==="LOCKUP_CONTENT_TYPE_VIDEO")return!0;switch(J){case "LOCKUP_CONTENT_TYPE_SOURCE":return!0;default:return!1}};
xqq=function(J,c,m){if(c&&(m==null||!m.alwaysRespectPodcastShowAspectRatio||J!=="LOCKUP_CONTENT_TYPE_PODCAST"))return 0;switch(J){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}};
Pb2=function(J){switch(J){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"}};
N$m=function(J,c,m){a:switch(J.badgeStyle){case "BADGE_OVERLAY":var b=!0;break a;default:b=!1}return{type:c?16:MWm(J.badgeStyle),brNzRatingBadgeType:p6u(J.badgeStyle),text:J.badgeText,icon:J.iconName,isOverlay:b,modern:m||_.w("web_modern_badge_view_model")}};
MWm=function(J){switch(J){case "BADGE_COMMERCE":case "BADGE_MEMBERS_ONLY":return 8;case "BADGE_STATUS_NEW":return 11;case "BADGE_PREMIUM":return 5;default:return 0}};
p6u=function(J){switch(J){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}};
IMt=function(J){var c=J.data?N$m(J.data,!!J.workaroundShortsIsThumbnailBadge,J.modern):void 0;return _.C("yt-badge-view-model",{class:_.tP("yt-badge-view-model-wiz",J.class)},ld(c==null?void 0:c.brNzRatingBadgeType,function(){return _.C(tWm,{data:c})}),ld(c&&!c.brNzRatingBadgeType,function(){return _.C(_.QG,{data:c})}))};
_.e8=function(J){if(J){var c;return((c=_.BG().resolve(_.y6(_.Ev)))==null?0:c())?J.darkThemeImage:J.image}};
aM2=function(J,c,m,b,x,P){if(x&&P&&c==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")return{width:x,height:P};if(!m)return{};x=m.size;m=m.allowFullWidth;if(c==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"&&m)return{fullWidth:!0};if(x===void 0)return{};switch(J){case "CONTENT_PREVIEW_IMAGE_STYLE_SQUARE":case "CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE":return{width:x,height:x};case "CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3":return{width:x,height:1/KZm*x};case "CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9":return{width:x*
CbG,height:x};default:return(b==null?0:b.height)&&(b==null?0:b.width)?b.width/b.height>1?{maxWidth:x*CbG}:{maxWidth:x}:{maxWidth:x}}};
kqu=function(J){var c;return J&&((c=_.e8(J.themedImage))!=null?c:J.image)};
HLm=function(J){var c;return J==null?void 0:(c=J.sources)==null?void 0:c[0]};
nDJ=function(J,c){var m,b;return!!((J==null?0:(m=J.byline)==null?0:m.hideAvatar)&&((b=_.L(c,iLQ))==null?void 0:b.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")};
T$D=function(J,c){var m,b;return!!((J==null?0:(m=J.byline)==null?0:m.addPadding)&&((b=_.L(c,iLQ))==null?void 0:b.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")};
w6G=function(J,c,m,b){var x={},P=(x["yt-content-metadata-view-model-wiz__delimiter"]=!0,x["yt-content-metadata-view-model-wiz__delimiter--standalone"]=b,x);return ld(c-1>m,function(){return _.C("span",{class:_.tP(P),"aria-hidden":!0},J)})};
soD=function(J,c){return _.C(_.j8,{text:J.text,linkInheritColor:!0,className:rbf(c),userInput:!0})};
DqR=function(J){var c=J.metadataPart;var m=J.isOverlay;var b=J.useMediumText;var x=J.hideAvatar;var P=1;c.maxLines!==void 0&&(P=c.maxLines);return _.C(_.cG,null,ld(c.avatarStack,function(){return LZD(c.avatarStack,{avatarStackViewModel:{isOverlay:m,useMediumText:b,hideAvatar:x}})}),ld(c.text,function(){var p=P;
return _.C(_.cG,null,c.tooltip?_.C("span",{title:c.tooltip,role:"tooltip"},soD(c,p)):soD(c,p))}))};
rbf=function(J){switch(J){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"}};
WZu=function(J){var c=J.metadataRow;var m=J.isInline;var b=J.delimiter;var x=J.isOverlay;var P=J.useMediumText;var p=J.extensions;var t=nDJ(p==null?void 0:p.lockupMetadata,c);J=T$D(p==null?void 0:p.lockupMetadata,c);p=!(!((p==null?0:p.lockupMetadata)&&c.badges)||c.metadataParts);var I={};J=(I["yt-content-metadata-view-model-wiz__metadata-row"]=!0,I["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-inline"]=m,I["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-padding"]=
J,I["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-wrap"]=p,I);var a,k;return _.C("div",{class:_.tP(J)},(a=c.badges)==null?void 0:a.map(function(H){return _.C("div",{class:"yt-content-metadata-view-model-wiz__badge"},LZD(H))}),(k=c.metadataParts)==null?void 0:k.map(function(H,T){return _.C(_.cG,null,DqR({metadataPart:H,
isOverlay:x,useMediumText:P,hideAvatar:t}),w6G(b,c.metadataParts.length,T,!1))}),ld(c.isSpacerRow&&!m,function(){return _.C("div",{class:"yt-content-metadata-view-model-wiz__spacer"})}))};
zTJ=function(J){var c=J.className;var m=J.data;var b=J.layout===void 0?0:J.layout;var x=J.isOverlay===void 0?!1:J.isOverlay;var P=J.useMediumText;var p=J.extensions;J=_.oN("yt-content-metadata-view-model");var t=b===0;b={};b=(b["yt-content-metadata-view-model-wiz"]=!0,b["yt-content-metadata-view-model-wiz--inline"]=t,b["yt-content-metadata-view-model-wiz--tappable"]=_.Ec(m.rendererContext),b["yt-content-metadata-view-model-wiz--medium-text"]=P,b);_.czQ(J,m.rendererContext);return _.C("yt-content-metadata-view-model",
{class:_.tP(c,b),el:J},ld(m.metadataRows,function(){return m.metadataRows.map(function(I,a){return _.C(_.cG,null,WZu({metadataRow:I,isInline:t,delimiter:m.delimiter,isOverlay:x,useMediumText:P,extensions:p}),ld(t&&!I.isSpacerRow,function(){return w6G(m.delimiter,m.metadataRows.length,a,!0)}))})}))};
uJT=function(J){switch(J){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"}};
fM3=function(J){switch(J.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"}}};
Y3R=function(J){var c=_.$nD(_.v9().getState())||"";return J?J+c:""};
X6u=function(J){switch(J){case 1:return"ytDismissibleItemAspectRatio2By3";case 2:return"ytDismissibleItemAspectRatio3By4";case 4:return"ytDismissibleItemShortsAspectRatio9By16";case 3:return"ytDismissibleItemAspectRatio1By1";case 0:return"ytDismissibleItemAspectRatio16By9"}};
q3r=function(J){var c=_.M(_.K2(void 0,void 0,"BIquNb")),m=c.next().value,b=c.next().value,x=_.M(_.K2(void 0,void 0,"eR0GH"));c=x.next().value;var P=x.next().value;x=_.M(_.K2(void 0,void 0,"UmkP0"));var p=x.next().value,t=x.next().value;return{touchFeedbackEvents:{pointerUpEvent:m,pointerDownEvent:c,pointerLeaveEvent:p},touchFeedbackOnPointerUp:_.Kq(function(I){if(ZLT(_.di(I)))return!1;b(I);P(void 0);t(void 0);return!0}),
touchFeedbackOnPointerDown:_.Kq(function(I){J==null||J(I);if(ZLT(_.di(I)))return!1;P(I);b(void 0);t(void 0);return!0}),
touchFeedbackOnPointerLeave:_.Kq(function(I){ZLT(_.di(I))||(t(I),P(void 0),b(void 0))})}};
ZLT=function(J){var c=["BUTTON".toString()];J=_.M(J);for(var m=J.next();!m.done;m=J.next()){m=m.value;for(var b=_.M(c),x=b.next();!x.done;x=b.next())if(m.tagName===x.value)return!0}return!1};
Uqq=function(J){switch(J){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"}};
S33=function(J,c){var m;return $e2(J,((m=J.content)==null?void 0:m.length)||0,!c)};
hTo=function(J,c){c=S33(J,c);var m,b;return(((m=J.content)==null?void 0:m.length)||0)>(((b=c.content)==null?void 0:b.length)||0)};
dqG=function(J){var c=J.isTruncated;var m=J.isAbsoluteButton;var b=J.lineHeight;var x=J.contentRef.value,P=J.placeholderTruncationTextRef.value,p=J.truncationTextRef.value;J=J.appDirection==="rtl";if(x&&P){var t=P.offsetLeft;J&&(t=x.offsetWidth-P.offsetWidth-P.offsetLeft);if(c){c=P.offsetWidth;P=x.offsetWidth;var I=m?P-c-70:t-70;b="linear-gradient(\n      to top, transparent 0%,\n      transparent "+b+"px,\n      #000 "+b+"px,\n      #000 100%), linear-gradient(\n      to "+((J?"left":"right")+",\n      #000 0px,\n      #000 "+
I+"px,\n      transparent "+(m?P-c:I+70)+"px)");x.style.setProperty("-webkit-mask-image",b);x.style.setProperty("mask-image",b)}else x.style.setProperty("-webkit-mask-image",""),x.style.setProperty("mask-image","");m?J?(p.style.setProperty("left","0"),p.style.setProperty("right","unset")):(p.style.setProperty("left",""),p.style.setProperty("right","0")):J?(p.style.setProperty("left","unset"),p.style.setProperty("right",t+"px")):(p.style.setProperty("left",t+"px"),p.style.setProperty("right","unset"))}};
$q2=function(J,c,m,b,x,P,p){var t=_.oN("truncated-text-content"),I=_.oN("button"),a=_.oN("button"),k=S33(J,x),H=_.BG().resolve(_.Ov),T=_.M(Nx(hTo(J,x))),r=T.next().value,W=T.next().value,Y=Yy(null);ze(function(){function Z(){if(t.value&&I.value&&a.value){var e=t.value;e.scrollHeight-e.offsetHeight>1?(W(!0),b||dqG({isTruncated:!0,isAbsoluteButton:!0,lineHeight:m,contentRef:t,placeholderTruncationTextRef:I,truncationTextRef:a,appDirection:H})):(e=hTo(J,x),W(e),b||dqG({isTruncated:e,isAbsoluteButton:!1,
lineHeight:m,contentRef:t,placeholderTruncationTextRef:I,truncationTextRef:a,appDirection:H}))}}
var d,G;(d=Y.value)==null||(G=d.stop)==null||G.call(d);d=new _.FU(Z,17);Z();Y.value=d},[J.content,
c,m,H,b,P,p,x]);_.uN(function(){var Z=function(){var G,e;(G=Y.value)==null||(e=G.fire)==null||e.call(G)};
if(window.ResizeObserver){var d=new ResizeObserver(Z);d.observe(t.value);return function(){var G,e;(G=Y.value)==null||(e=G.stop)==null||e.call(G);d.disconnect()}}window.addEventListener("resize",Z);
return function(){var G,e;(G=Y.value)==null||(e=G.stop)==null||e.call(G);window.removeEventListener("resize",Z)}});
return{isTruncated:r,displayText:k,contentRef:t,placeholderTruncationTextRef:I,truncationTextRef:a}};
Gqu=function(J){return _.C("button",{"aria-disabled":!0,disabled:!0,class:J.className,el:J.elRef,style:"line-height: "+J.lineHeight+"px;"},_.C(_.j8,{text:J.text}))};
EDJ=function(J){var c=J.text;var m=J.alwaysShowTruncationText;var b=J.truncationText;var x=J.onExpandClick;var P=J.lineHeight===void 0?16:J.lineHeight;var p=J.maxLines===void 0?2:J.maxLines;var t=J.disableTextMask===void 0?!1:J.disableTextMask;var I=J.textStyle===void 0?"default":J.textStyle;var a=J.accessibilityLabel===void 0?"":J.accessibilityLabel;var k=J.textSize===void 0?"small":J.textSize;var H=_.Kq(function(){return void(x==null?void 0:x())}),T=$q2(c,p,P,t,J.alwaysTruncateAtMaxLines===void 0?
!1:J.alwaysTruncateAtMaxLines,k,I),r=T.isTruncated;
J=T.displayText;c=T.contentRef;var W=T.placeholderTruncationTextRef;T=T.truncationTextRef;var Y={};m=_.tP((Y["truncated-text-wiz__absolute-button"]=!t,Y["truncated-text-wiz__bottom-button"]=t,Y["truncated-text-wiz--hidden"]=!(m||r),Y));t={};I=_.tP((t["truncated-text-wiz"]=!0,t["truncated-text-wiz--overlay"]=I==="overlay",t["truncated-text-wiz--medium-text"]=k==="medium",t["truncated-text-wiz--large-text"]=k==="large",t["truncated-text-wiz--primary-text"]=I==="primary-text",t));return _.C("truncated-text",
{class:I,"on:click":H,style:"line-height: "+P+"px;"},_.C("truncated-text-content",{class:"truncated-text-wiz__truncated-text-content",el:c,style:"max-height: "+p*P+"px;"},_.C(_.j8,{text:J}),_.C(Gqu,{text:b,lineHeight:P,elRef:W,className:"truncated-text-wiz__inline-button"})),_.C("button",{"aria-label":a,class:m,el:T,style:"line-height: "+P+"px;"},_.C(_.j8,{text:b})))};
vD3=function(J){return{content:J!=null?J:""}};
RTe=function(J){var c=J.data;var m;J={class:J.className};a:switch(c.orientation){case "VIDEO_ATTRIBUTE_ORIENTATION_VERTICAL":var b="yt-video-attribute-view-model--vertical";break a;default:b="yt-video-attribute-view-model--horizontal"}a:switch(c.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(c.imageStyle){case "VIDEO_ATTRIBUTE_IMAGE_STYLE_SQUARE":var P="yt-video-attribute-view-model--image-square";
break a;case "VIDEO_ATTRIBUTE_IMAGE_STYLE_AVATAR":P="yt-video-attribute-view-model--image-avatar";break a;default:P=""}a:switch(c.metadataStyle){case "VIDEO_ATTRIBUTE_METADATA_STYLE_HEADER":var p="yt-video-attribute-view-model--metadata-header";break a;default:p=""}a:switch(c.containerStyle){case "VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD":var t="yt-video-attribute-view-model--container-card";break a;default:t=""}var I=_.ZG(c.onTap)||_.G9(c.rendererContext)?"yt-video-attribute-view-model--clickable":"";
b=["yt-video-attribute-view-model",b,x,P,p,t,I].join(" ");if(c.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var a="";else x=c.lightColorPalette,P=c.darkColorPalette,p=((a=_.BG().resolve(_.y6(_.Ev)))==null?0:a())&&P?P:x,a=(a=p==null?void 0:p.section2Color)?_.Zn(a):"";return _.C("yt-video-attribute-view-model",J,_.C("div",{class:b,style:_.kx({"background-color":a})},_.C(quJ,{className:"yt-video-attribute-view-model__link-container",useATagConfig:!0,stopPropagation:!1,command:(m=_.ZG(c.onTap))!=
null?m:_.G9(c.rendererContext),role:"group",ariaLabel:c.title,forceNewState:!0},c.heroText||c.image?_.C(OLG,{data:c}):null,_.C(Abo,{data:c,sizeSmall:c.imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}))))};
oDD=function(J){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:J.overflowMenuA11yLabel,onTap:function(c){c.preventDefault();c.stopPropagation();if(J.overflowMenuOnTap){var m=_.Uv({elementsCommand:J.overflowMenuOnTap,forceNewState:!0});if(m==null?0:m.onclick)m.onclick(c)}}}};
OLG=function(J){J=J.data;var c,m=((c=_.BG().resolve(_.y6(_.Ev)))==null?0:c())&&J.darkThemeImage?J.darkThemeImage:J.image;c=oDD(J);return _.C("div",{class:"yt-video-attribute-view-model__hero-section"},m?_.C(_.RA,{data:m,className:"yt-video-attribute-view-model__hero-image",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}):J.heroText?_.C("div",{class:"yt-video-attribute-view-model__hero-text-wrapper"},_.C("span",{class:"yt-video-attribute-view-model__hero-text"},J.heroText)):null,J.overflowMenuOnTap?
_.C("div",{class:"yt-video-attribute-view-model__overflow-menu"},_.C(l$,{data:c,iconName:"MORE_VERT"})):null)};
Abo=function(J){var c=J.data;J=J.sizeSmall;var m=c.containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD",b=_.ZG(c.onTap)||_.G9(c.rendererContext);b=_.Uv({innertubeCommand:b});b=SM(b);var x={};J={class:_.tP("yt-video-attribute-view-model__metadata",(x["yt-video-attribute-view-model--small-font"]=J,x)),role:b?"link":"group"};b=_.C("h1",{class:"yt-video-attribute-view-model__title"},c.title);m=c.subtitle?_.C("h4",{class:"yt-video-attribute-view-model__subtitle"},m?_.C(EDJ,{text:vD3(c.subtitle),truncationText:vD3(c.subtitleTruncationText),
maxLines:2}):_.C("span",null,c.subtitle)):null;if(c.secondarySubtitle){x=c.secondarySubtitle;if(x!=null&&x.attachmentRuns){for(var P=[],p=_.M(x.attachmentRuns),t=p.next();!t.done;t=p.next())t=t.value,t.element&&P.push(Object.assign({},t,{element:Object.assign({},t.element,{properties:{layoutProperties:{height:{unit:"DIMENSION_UNIT_POINT",value:15},width:{unit:"DIMENSION_UNIT_POINT",value:15}}}})}));x=Object.assign({},x,{attachmentRuns:P})}x=_.C("span",{class:"yt-video-attribute-view-model__secondary-subtitle"},
_.C(_.j8,{text:x}))}else x=null;return _.C("div",J,b,m,x,c.buttonViewModel?Qou(c.buttonViewModel,{buttonViewModel:{className:"yt-video-attribute-view-model__button"}}):null)};
_.yG=function(J,c,m,b,x){b=b===void 0?{}:b;if(!x||Math.random()<5E-4){c=c||null;m=m||null;J=J instanceof Error?J:new _.w3(J);if(J.args)for(var P=_.M(J.args),p=P.next();!p.done;p=P.next())p=p.value,p instanceof Object&&(b=Object.assign({},p,b));b.category="H5 Ads Control Flow";c&&(b.slot=c?"slot:  "+c.slotType:"");m&&(b.layout=m?"layout:  "+m.layoutType:"",b.layoutId=m.layoutId);x&&(b.known_error_aggressively_sampled=!0);J.args=[b];_.qz(J)}};
_.eTe=function(J,c){_.m9(J,"yt-open-popup-action",[_.Q_(c),J])};
_.Bg=function(J,c){_.eTe(J,_.v2(c))};
FZ3=function(J){if(!J)return"";if(joq[J])return joq[J];gi||(gi=_.id("A"));gi.href!==J&&W0(gi,J);var c=gi.pathname;joq[J]=c.startsWith("/")?c:"/"+c;return joq[J]};
lM2=function(){var J=FZ3(window.location.href);if(J==="/")return"home";if(J.startsWith("/results"))return"search";if(J.startsWith("/watch"))return"watch";if(J.startsWith("/shorts"))return"shorts";if(J.startsWith("/hashtag"))return"hashtag";if(J.startsWith("/create_channel"))return"create_channel";if(J.startsWith("/@")||J.startsWith("/user/")||J.startsWith("/channel/"))return"channel";if(J.startsWith("/experiments"))return"experiments";if(J.startsWith("/sponsor_channel"))return"sponsorship";if(J.startsWith("/select_site"))return"settings";
if(J.startsWith("/locate"))return"locate";if(J.startsWith("/redeem"))return"redeem";if(J.startsWith("/musicpremium")||J.startsWith("/premium")||J.startsWith("/red"))return"premium";if(J.startsWith("/paid_memberships"))return"paid_memberships";if(J.startsWith("/oops"))return"oops";if(J.startsWith("/clip"))return"clip";var c;return(J3==null?void 0:(c=J3.response)==null?void 0:c.page)==="404"?"404":J.startsWith("/feed/history")?"history":J.startsWith("/feed/library")?"library":J.startsWith("/feed/subscriptions")?
"subscriptions":J.startsWith("/feed/trending")?"trending":J.startsWith("/feed/news_destination")?"news":J.startsWith("/playlist")?"playlist":J.startsWith("/minor_moment")?"minor_moment":J.startsWith("/playable/")||J.match("^/playables/(?!saved).")?"mini_app":J.startsWith("/playables")?"playables":J.startsWith("/create/live/join")?"open_in_app":J.startsWith("/feed/explore")?"explore":"browse"};
_.Jno=function(){var J=J3==null?void 0:J3.response,c=J==null?void 0:J.endpoint;if(!c)return(J==null?void 0:J.page)==="watch"?"watch":lM2();var m;J=(m=_.L(c==null?void 0:c.commandMetadata,_.lk))==null?void 0:m.webPageType;m=!1;if(J&&!ybm.includes(J))switch(J){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 b;return((b=_.L(c==null?void 0:c.commandMetadata,_.lk))==null?0:b.url)&&FZ3(_.L(c.commandMetadata,_.lk).url).startsWith("/clip")?"clip":"watch";case "WEB_PAGE_TYPE_BROWSE":var x;return(c=(x=_.L(c,_.I1))==null?void 0:x.browseId)?B$Q[c]||"browse":"browse";default:m=!0}if(_.L(c,_.c8)||_.L(c,gDQ))return"sponsorship";x=FZ3(window.location.href);if(x.startsWith("/experiments"))return"experiments";if(x.startsWith("/create_channel"))return"create_channel";
if(_.L(c,_.Ee)&&x.startsWith("/shorts"))return"shorts";if(_.L(c,_.Ee)&&x.startsWith("/watch"))return"watch";m&&(c=new _.w3("Unsupported mWeb page type",{pathname:x,webPageType:J}),_.Xc(c));return"browse"};
mx=function(J,c,m,b){return J&&c?J!==m||c!==b?(_.yG(Error("Eh"),void 0,void 0,{"stored-slot":J,"stored-layout":c,"latest-slot":m,"latest-layout":b}),!1):!0:!1};
cnt=function(J,c,m){return J({targetId:c},function(b){return m.slot==="RELOAD_CONTINUATION_SLOT_HEADER"?Object.assign({},b,{header:m.continuationItems?m.continuationItems[0]:void 0}):Object.assign({},b,{contents:m.continuationItems?m.continuationItems:[]})})};
m5J=function(J,c,m,b){if(c=c.trackingParams){var x,P=(x=m.getScreenLayer)==null?void 0:x.call(m);m=_.Y3(P);x=_.fl(P);if(m&&x){var p=_.n7(c);_.w("combine_ve_grafts")?J.graftServerVe(c,x,P):_.$2(m,x,p);b==null||b(p)}}};
x5T=function(J){var c;return((c=beT.get(J))==null?void 0:c.successEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
Mle=function(J,c){var m={type:c.slotType,controlFlowManagerLayer:Vl2.get(c.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};c.slotEntryTrigger&&(m.entryTriggerType=c.slotEntryTrigger.triggerType);c.slotPhysicalPosition!==1&&(m.slotPhysicalPosition=c.slotPhysicalPosition);if(J){m.debugData={slotId:c.slotId};if(J=c.slotEntryTrigger)m.debugData.slotEntryTriggerData=P2G(J);J=c.slotFulfillmentTriggers;m.debugData.fulfillmentTriggerData=[];J=_.M(J);for(var b=J.next();!b.done;b=J.next())m.debugData.fulfillmentTriggerData.push(P2G(b.value));
c=c.slotExpirationTriggers;m.debugData.expirationTriggerData=[];c=_.M(c);for(J=c.next();!J.done;J=c.next())m.debugData.expirationTriggerData.push(P2G(J.value))}return m};
P2G=function(J,c){var m={type:J.triggerType};c!=null&&(m.category=c);J.triggeringSlotId!=null&&(m.triggerSourceData||(m.triggerSourceData={}),m.triggerSourceData.associatedSlotId=J.triggeringSlotId);J.triggeringLayoutId!=null&&(m.triggerSourceData||(m.triggerSourceData={}),m.triggerSourceData.associatedLayoutId=J.triggeringLayoutId);return m};
pof=function(J,c,m,b){c={opportunityType:c};J&&(b||m)&&(b=_.Wm(b||[],function(x){return Mle(J,x)}),c.debugData=Object.assign({},m&&m.length>0?{associatedSlotId:m}:{},b.length>0?{slots:b}:{}));
return c};
NjG=function(J){return bD(J.opportunityAdapterMap).concat(bD(J.triggerAdapterMap)).concat(bD(J.fulfillmentAdapterFactoryMap)).concat(bD(J.slotAdapterFactoryMap)).concat(bD(J.layoutRenderingAdapterFactoryMap))};
bD=function(J){var c=[];J=_.M(J.values());for(var m=J.next();!m.done;m=J.next())m=m.value,m.isAdsControlFlowEventListener&&c.push(m);return c};
Vg=function(J){var c=J.slotId,m=J.slotType,b=J.slotPhysicalPosition;return c===void 0?new xR("Cannot construct a slot due to the missing id.",{adSlotMetadata:J}):m===void 0?new xR("Cannot construct a slot due to the missing type.",{adSlotMetadata:J}):b===void 0?new xR("Cannot construct a slot due to the missing physical position.",{adSlotMetadata:J}):{slotId:c,slotType:m,slotPhysicalPosition:b,managerLayer:"external",adSlotLoggingData:J.adSlotLoggingData,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],
slotExpirationTriggers:[],clientMetadata:new tl3}};
I8J=function(J){var c=J.layoutId,m=J.layoutType;return c===void 0?new P8("Cannot construct a layout due to the missing id.",{adLayoutMetadata:J}):m===void 0?new P8("Cannot construct a layout due to the missing type.",{adLayoutMetadata:J}):{layoutId:c,layoutType:m,managerLayer:"external",adLayoutLoggingData:J.adLayoutLoggingData,trackingPings:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],
clientMetadata:new tl3,interactionLoggingAdsClientData:{}}};
K12=function(J){if((J=J.value)&&J.querySelector("img")){var c=J.querySelector("img");c.addEventListener("error",function(){pNG(c.src).then(function(m){(m=_.wa(m).toString())?c.src=m:c.removeAttribute("src")}).catch(function(){c.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="})})}};
py=function(J,c){if(c&&(C23(c.viewableCommand)||C23(c.endOfSessionCommand))){J=J.value;var m=a8t(c==null?void 0:c.viewableCommand);c=a8t(c==null?void 0:c.endOfSessionCommand);if(!MJ){var b=_.c7("custom_active_view_tos_timeout_ms");MJ=b>0&&b!==36E5?new klD(He2(),b):new klD(He2())}ief(MJ,J);neo(MJ,J,m,c)}};
NJ=function(J){MJ&&ief(MJ,J.value)};
He2=function(){var J=_.Ub("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(J==null?void 0:J.length)===2?J[1]:null};
C23=function(J){J=_.ZG(J);return!(J==null||!J.loggingUrls)&&J.loggingUrls.length>0};
a8t=function(J){if(!J)return[];var c=[],m,b;((b=(m=_.ZG(J))==null?void 0:m.loggingUrls)!=null?b:[]).forEach(function(x){x.baseUrl&&c.push(x.baseUrl)});
return c};
TjR=function(J){return J.shorts.isDesktopSmallWidth};
_.woT=function(J){return J.shorts.isWatchWhileMode};
_.t3=function(J){return J.shorts.isFullscreen};
_.Ig=function(J){return J.shorts.isShortsPipActive};
sZQ=function(J){var c,m;if(J=(c=_.L(J.reelsAdCardButtoned,rnm))==null?void 0:(m=c.animatedRenderingConfig)==null?void 0:m.easeOutSeconds)return J+"s"};
D52=function(J,c,m){return _.N(function(b){return b.return(new Promise(function(x){var P=new Image;P.onload=function(){x(new L1D(J,c,m,P.naturalWidth,P.naturalHeight))};
P.src=m.toString()}))})};
W1q=function(J,c){return Math.round(J/1E-5)===Math.round(c/1E-5)};
zP2=function(J,c){return Math.round(J/1E-5)===Math.round(c/1E-5)};
u5G=function(J,c){return J.year===c.year&&J.month===c.month&&J.day===c.day};
f8R=function(J,c){return J.year!==c.year?J.year<c.year:J.month!==c.month?J.month<c.month:J.day<c.day};
XoD=function(J){return J.day===Yjr(J.year,J.month)?J.month===11?{year:J.year+1,month:0,day:1}:{year:J.year,month:J.month+1,day:1}:{year:J.year,month:J.month,day:J.day+1}};
Zem=function(){var J=new Date,c={year:J.getFullYear(),month:J.getMonth(),day:J.getDate()};return{start:c,end:{year:J.getFullYear()+2,month:J.getMonth(),day:J.getDate()},selectedDate:XoD(c)}};
qje=function(J){return(new G2(2)).format(new Date(J.year,J.month,J.day))};
U5r=function(J){return{year:J.getFullYear(),month:J.getMonth(),day:J.getDate()}};
Sj2=function(J,c){J=(J+(Number(c.utcOffsetSec)+(new Date(J*1E3)).getTimezoneOffset()*60))*1E3;c=U5r(new Date(J));return{date:c,secondsSinceMidnight:Math.floor((J-(new Date(c.year,c.month,c.day)).getTime())/1E3)}};
hPJ=function(J,c){c=c.months.findIndex(function(m){return m.year===J.year&&m.month===J.month});
return c>=0?c:void 0};
d5m=function(J){if(!J)return!1;try{if(J.host&&J.host.tagName==="YT-FORMATTED-STRING"&&J.host.id==="contenteditable-textarea"||J.nodeType===Node.ELEMENT_NODE&&J.tagName==="YTD-COMMENTBOX")return!0}catch(c){return!1}return d5m(J.parentNode)};
Ky=function(J){return J?!(J.tagName!=="A"||!J.href||!J.classList.contains("yt-simple-endpoint")):!1};
$5T=function(J){return J?J.tagName==="IMG"&&J.classList.contains("emoji"):!1};
GlG=function(J,c,m){if(!J)return null;var b=Ky(J);if(b&&m)return c=J.pathname.substring(J.pathname.indexOf("/channel/")+9),document.createTextNode("@"+c);if(b&&!m)return document.createTextNode("");if($5T(J))return m=J.alt,J=J.dataset.emojiId,!J&&c&&(c=_.Cy(c,m))&&c.isCustomEmoji&&(J=c.emojiId),J?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+J+">"):document.createTextNode(m);b=J.cloneNode(!1);for(var x=0;x<J.childNodes.length;++x){var P=GlG(J.childNodes[x],c,m);P&&b.appendChild(P)}return b};
ag=function(J){return J?Ky(J)?J:ag(J.lastChild):null};
Eeq=function(J){return J?Ky(J)?J:Eeq(J.firstChild):null};
vef=function(J){if(!J)return null;for(var c=J.previousSibling;c;)if(c.nodeType===Node.ELEMENT_NODE&&c.nodeName==="BR")c=c.previousSibling;else if(c.nodeType===Node.TEXT_NODE&&/\s+/.test(c.textContent))c=c.previousSibling;else break;(c=ag(c))?J=c:J=(J=J.parentNode)?ag(J.previousElementSibling):null;return J};
Oef=function(J){if(!J)return null;for(var c=J.nextSibling;c;)if(c.nodeType===Node.ELEMENT_NODE&&c.nodeName==="BR")c=c.nextSibling;else if(c.nodeType===Node.TEXT_NODE&&/\s+/.test(c.textContent))c=c.nextSibling;else break;return(c=Eeq(c))?c:Oef(J.parentNode)};
AnJ=function(J){var c=_.kR(),m=c.JSC$9254_getStartNode();if(!d5m(m.parentNode))return null;c=c.JSC$9254_getStartOffset();if(m.nodeType===Node.TEXT_NODE){var b=_.qA(m,Ky);if(b){if(J&&c===0||!J&&c===m.length)return b}else{if(J&&c===m.length)return!m||m.nodeName==="BR"||m.nextElementSibling&&_.H8(m.nextElementSibling,"display")==="block"?null:Eeq(m.nextElementSibling);if(!J&&c===0)return m?ag(m.previousElementSibling):null}}if(m.nodeType===Node.ELEMENT_NODE)if(J){if(0<=c&&c<m.childNodes.length)return Eeq(m.childNodes[c])}else if(0<
c&&c<=m.childNodes.length)return ag(m.childNodes[c-1]);return null};
RPq=function(J,c,m){if(!J)return null;if(J.nodeType===Node.TEXT_NODE)if(m){var b=vef(J);if(b&&!/^\s+\S/.test(J.wholeText.substr(0,c)))return b}else if((b=Oef(J))&&!/\S\s+/.test(J.wholeText.substr(c,J.wholeText.length)))return b;return J.nodeType===Node.ELEMENT_NODE?m?vef(J.childNodes[c]):Oef(J.childNodes[c]):RPq(J.parentNode,c,m)};
oeG=function(J){if(J.hasChildNodes())switch(J.tagName){case "DIV":case "A":case "SPAN":var c="";for(J=J.firstChild;J;J=J.nextSibling)c+=oeG(J);return c;default:return""}else switch(J.nodeType){case 3:return J.textContent;default:return""}};
iD=function(J,c){return J.year===c.year&&J.month===c.month&&J.day===c.day};
ny=function(J,c){return J.year!==c.year?J.year<c.year:J.month!==c.month?J.month<c.month:J.day<c.day};
QZe=function(J){return{year:J.getFullYear(),month:J.getMonth(),day:J.getDate()}};
ePf=function(J){var c=vW3;c=c===void 0?vW3:c;c(new Date(J.year,J.month,J.day))};
TU=function(J){return QZe(new Date(Number(J.seconds)*1E3))};
jZJ=function(J){return J.year!==void 0&&J.month!==void 0&&J.day!==void 0};
F1m=function(J){return J.start!==void 0&&J.end!==void 0};
l8G=function(J){return F1m(J)?J.start:J};
ynT=function(J){return F1m(J)?J.end:void 0};
gee=function(J,c){for(var m=[],b=new Date(J.start.year,J.start.month);b.getFullYear()<J.end.year||b.getFullYear()===J.end.year&&b.getMonth()<=J.end.month;){var x=m,P=x.push,p=b.getFullYear(),t=b.getMonth(),I=J,a=c,k=void 0,H=[],T=Object.freeze({extraCssClass:"invisible"}),r=new Date(p,t),W=QZe(r);r=r.getDay();for(var Y=QZe(new Date);W.month===t;){r!==Bj2&&k||(k=Array.from({length:7}).fill(T),H.push(k));var Z={date:{year:p,month:t,day:W.day},extraCssClass:"",debugClass:""};Z.extraCssClass=a(Z.date,
W,Y,I).trim();k[(r-Bj2+7)%7]=Z;W=W.day===Yjr(W.year,W.month)?W.month===11?{year:W.year+1,month:0,day:1}:{year:W.year,month:W.month+1,day:1}:{year:W.year,month:W.month,day:W.day+1};r=(r+1)%7}P.call(x,{weeks:H,monthLabel:wJ.SHORTMONTHS[t]+" "+p,year:p,month:t,monthLabelExtraCssClass:H[0][2]===T?"shift-down-label":""});b.setMonth(b.getMonth()+1)}return m};
Jrm=function(J,c){c=c.months.findIndex(function(m){return m.year===J.year&&m.month===J.month});
return c>=0?c:void 0};
mVo=function(J,c){a:{var m=m===void 0?[2,3]:m;m=_.M(m);for(var b=m.next();!b.done;b=m.next()){var x=new Date;if((new cre(b.value)).parse(c,x,{validate:!0})){x.setHours(0,0,0,0);c=x;break a}}c=null}if(!c)return{isValid:!1,value:void 0};c=QZe(c);m=J.end;return ny(c,J.start)||ny(m,c)?{isValid:!1,value:void 0}:{isValid:!0,value:c}};
Mwe=function(J){var c=bpu;c=c===void 0?xVq:c;var m=J.columnsToShow||[],b=Vwu(J.columnDimensions,J.columnsToShow,J.leftFloatingColumns,c);return m.map(function(x,P){var p=J.columns[x];if(p===void 0)throw Error("Kh");var t=b?b[P]:"";var I=J.getCustomTooltip?J.getCustomTooltip(x,p.headerTooltipParagraphs):p.headerTooltipParagraphs;var a=PP3(J,x);return{type:x,index:P,style:t,classes:a,headerName:p.headerName||"",headerIcon:p.headerIcon,headerTooltipParagraphs:I||[],headerTooltipHelpContext:p.headerTooltipHelpContext,
sortOrders:p.sortOrders||[],selectionState:p.isSelectionCheckbox?J.selectionState:void 0}})};
PP3=function(J,c){var m=["DEFAULTS","FLOATING","RIGHT_ALIGN","SORTING"],b=J.columns[c];if(b===void 0)return"";var x=m.includes("DEFAULTS")&&b.cssClass?[b.cssClass]:[];if(m.includes("SORTING")){b.sortOrders&&b.sortOrders.length&&x.push("sortable");if(J.sorting&&J.sorting.columnType===c)a:switch(J.sorting.sortOrder){case "ASCENDING":case "DESCENDING":var P="column-sorted";break a;default:P=""}else P="";P&&x.push(P)}m.includes("FLOATING")&&(c=J.columnsToShow.indexOf(c),J.leftFloatingColumns&&c<J.leftFloatingColumns&&
x.push("floating-column"),J.leftFloatingColumns&&c===J.leftFloatingColumns-1&&x.push("last-floating-column"));m.includes("RIGHT_ALIGN")&&b.rightAlignHeader&&x.push("right-align");return x.filter(function(p){return p}).join(" ")};
Vwu=function(J,c,m,b){m=m===void 0?0:m;b=b===void 0?xVq:b;if(J){var x=[],P=0;pVu(J,c,b).forEach(function(p,t){var I="min-width:"+p.minWidth+"px;padding-left:"+p.paddingLeft+"px;padding-right:"+p.paddingRight+"px;flex:"+p.flexGrow+" 0 "+p.minWidth+"px;";p.maxWidth!==Infinity&&(I=[I,"max-width:"+p.maxWidth+"px;"].join(""));P>0&&t<m&&(I=[I,"left:"+P+"px;"].join(""));x.push(I);P+=p.minWidth+p.paddingLeft+p.paddingRight});
return x}};
pVu=function(J,c,m){m=m===void 0?xVq:m;return c.map(function(b,x){b=J&&J[b]||{};var P=x===0?m.paddingLeftFirstColumn:m.padding;b.paddingLeft!==void 0&&(P=b.paddingLeft);x=x===c.length-1?m.paddingRightLastColumn:m.padding;b.paddingRight!==void 0&&(x=b.paddingRight);return{paddingLeft:P,paddingRight:x,minWidth:b.minWidth!==void 0?b.minWidth:m.minWidth,maxWidth:b.maxWidth!==void 0?b.maxWidth:m.maxWidth,flexGrow:b.flexGrow!==void 0?b.flexGrow:m.flexGrow}})};
NET=function(J){var c=J.reduce(function(b,x){var P=x.columnId,p={};x.headerText&&(p.headerName=_.OG(x.headerText));x.rightAlignHeader&&(p.rightAlignHeader=x.rightAlignHeader);var t;if((t=x.headerIcon)==null?0:t.iconType)p.headerIcon=_.Pd(x.headerIcon.iconType);b[P]=p;return b},{}),m=J.filter(function(b){return!b.hideColumn}).map(function(b){return b.columnId});
J=J.filter(function(b){return!!b.dimensions}).reduce(function(b,x){b[x.columnId]=x.dimensions;
return b},{});
return{columns:c,columnsToShow:m,columnDimensions:J}};
_.twu=function(J){return J?J.simpleText?J.simpleText:J.runs?J.runs.map(function(c){return c.text}).join(""):"":""};
ksf=function(J){var c=J.data;var m=J.onTap;var b=J.isSelected;var x=J.onFocusIn;if(!c)return{};J=IUm(c);b===void 0&&(b=c==null?void 0:c.isSelected);var P;return{text:KD3(c,J),startIcon:(P=c.icon)==null?void 0:P.iconType,state:b?0:2,type:0,onTap:CPm(c,m),accessibilityLabel:aUu(c,J),onFocusIn:function(){return x==null?void 0:x()}}};
KD3=function(J,c){if(!c)return J.text?_.twu(J.text):void 0};
CPm=function(J,c){return function(m){c==null||c(m,J)}};
IUm=function(J){J=J.style&&J.style.styleType;return!Hpq&&J==="STYLE_EXPLORE_LAUNCHER_CHIP"};
aUu=function(J,c){if(c){var m,b,x;return(x=(m=J.accessibilityData)==null?void 0:(b=m.accessibilityData)==null?void 0:b.label)!=null?x:KD3(J,!1)}};
rJ=function(J){return{signalAction:{signal:J}}};
TEt=function(){return _.Ub("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?ipT:_.nFo};
wVr=function(J,c){J=J===void 0?"SOFT_RELOAD_PAGE":J;c=c===void 0?49504:c;return{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:_.yq(_.CX("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:c}},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:J}}]}}}};
rrr=function(){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.yq(_.CX("GO_TO_DOWNLOADS",void 0,"Go to downloads")),loggingDirectives:{clientVeSpec:{uiType:49503}},navigationEndpoint:TEt()}};
sKq=function(){return{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.yq(_.CX("VIEW_DOWNLOADS",void 0,"View")),loggingDirectives:{clientVeSpec:{uiType:98970}},navigationEndpoint:TEt()}};
LDr=function(J,c){var m=_.yq(_.CX("CONNECT_TO_THE_INTERNET",void 0,"Connect to the internet")),b=_.yq(_.CX("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),x={style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.yq(_.CX("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:49504}}};x.serviceEndpoint=J?J:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[rJ("SOFT_RELOAD_PAGE")]}};return{title:m,bodyText:b,icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{reloadPageButtonRenderer:x},
style:{value:c!=null?c:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}};
WDR=function(J){J=J===void 0?{}:J;return{title:_.yq(J.localizedZeroStateTitleText===void 0?"":J.localizedZeroStateTitleText),bodyText:_.yq(J.localizedZeroStateMessage===void 0?"":J.localizedZeroStateMessage),ctaButton:{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.yq(J.localizedZeroStateButtonText===void 0?"":J.localizedZeroStateButtonText),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",
boolValue:!0}},loggingDirectives:{clientVeSpec:{uiType:127983}}}},thumbnail:{thumbnails:[DVf]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:127982}}}};
_.fUD=function(J,c,m,b,x,P,p,t){b=b===void 0?!1:b;x=x===void 0?!1:x;P=P===void 0?0:P;p=p===void 0?-Infinity:p;t=t===void 0?!1:t;var I=[],a=_.yq(_.CX("SMART_DOWNLOADS",void 0,"Smart downloads"));p=_.yq(zRt(P,p,J.length));P=void 0;b?P=J.length>0?uqG(J,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS",_.w("kevlar_manual_downloads_above"),a,p):t?{alertBannerViewModel:{heading:{content:m.localizedOptInBannerTitleText===void 0?"":m.localizedOptInBannerTitleText},body:{content:m.localizedPromptMessage===
void 0?"":m.localizedPromptMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.CX("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now"),accessibilityText:_.CX("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:_.bOR}]}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:129729}}}}}}:{backgroundPromoRenderer:{bodyText:_.yq(_.CX("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&&(P={alertBannerViewModel:{heading:{content:m.localizedOptInBannerTitleText===void 0?"":m.localizedOptInBannerTitleText},body:{content:m.localizedOptInMessage===
void 0?"":m.localizedOptInMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.CX("TURN_ON",void 0,"Turn on"),accessibilityText:_.CX("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}}}}}});m=_.yq(_.CX("YOUR_DOWNLOADS",void 0,"Your downloads"));x=void 0;c.length>0?(x=void 0,_.w("kevlar_display_downloads_numbers")&&(x=_.yq(_.an("VIDEO_COUNT",c.length))),x=uqG(c,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS",!0,m,x)):b||J.length||(x={backgroundPromoRenderer:{bodyText:_.yq(_.CX("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}}}});P&&!_.w("kevlar_manual_downloads_above")&&I.push({richSectionRenderer:{content:P,loggingDirectives:{clientVeSpec:{uiType:139572}}}});x&&I.push({richSectionRenderer:{content:x,loggingDirectives:{clientVeSpec:{uiType:51721}}}});P&&_.w("kevlar_manual_downloads_above")&&I.push({richSectionRenderer:{content:P,loggingDirectives:{clientVeSpec:{uiType:139572}}}});(c.length>0||b&&J.length>0)&&I.push({richSectionRenderer:{content:{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.yq(_.CX("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:I}};
_.XV3=function(J){return Ypm(J,"RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE")};
_.ZpG=function(J){return Ypm(J,"RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE")};
Ypm=function(J,c){var m=[];J=uqG(J,c,!0);m.push({richSectionRenderer:{content:J}});return{contents:m}};
uqG=function(J,c,m,b,x){m=m===void 0?!1:m;var P="RESPONSIVE_SIZE_STANDARD";_.w("kevlar_modern_downloads_compact")?P="RESPONSIVE_SIZE_COMPACT":_.w("kevlar_modern_downloads_extra_compact")&&(P="RESPONSIVE_SIZE_EXTRA_COMPACT");J={isExpanded:m,contents:sQ(J),entitySelectorType:c,responsiveContainerConfiguration:{responsiveSize:P}};b&&(J.title=b);x&&(J.subtitle=x);m||(_.w("kevlar_smart_downloads_show_more_button")?(J.showMoreButton={buttonRenderer:{accessibility:{label:_.CX("SHOW_MORE",void 0,"Show more")},
icon:{iconType:"EXPAND"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:192921}},text:_.yq(_.CX("SHOW_MORE",void 0,"Show more"))}},J.showLessButton={buttonRenderer:{accessibility:{label:_.CX("SHOW_LESS",void 0,"Show less")},icon:{iconType:"COLLAPSE"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",text:_.yq(_.CX("SHOW_LESS",void 0,"Show less"))}}):(J.previousButton={buttonViewModel:{iconName:"CHEVRON_LEFT",accessibilityText:_.CX("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}}}},J.nextButton={buttonViewModel:{iconName:"CHEVRON_RIGHT",accessibilityText:_.CX("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}}}},J.menu={menuRenderer:{topLevelButtons:[{buttonViewModel:{title:_.CX("VIEW_ALL",void 0,"View all"),accessibilityText:_.CX("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:Fv("FEsmart_downloads","/feed/smart_downloads",248381)}}}]}}));return{richShelfRenderer:J}};
sQ=function(J){var c=[];J=_.M(J);for(var m=J.next();!m.done;m=J.next())if(m=m.value,GY3(m)){var b=c,x=b.push;var P=void 0;if(m==null?0:(P=m.videoEntity)==null?0:P.videoId){P=qy(_.Rc().getState(),m.videoEntity.videoId);var p=_.Rc().getState();var t=_.V_(m.videoEntity.videoId,"mainVideoEntity");p=!!_.wf(p.entities)[t];p={videoId:m.videoEntity.videoId,title:BA(m.videoEntity.title),shortBylineText:BA(m.channelEntity.title),thumbnail:m.videoEntity.thumbnail,loggingDirectives:{clientVeSpec:{uiType:p&&_.w("kevlar_modern_downloads_page")?
129218:42356}},navigationEndpoint:GcR(m.videoEntity.videoId,P,m.videoEntity.lengthSeconds),badges:[{metadataBadgeRenderer:{label:_.CX("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};m.videoEntity.lengthSeconds&&(p.thumbnailOverlays=P6o(m.videoEntity.lengthSeconds,P));p.isWatched=P>0;_.w("kevlar_modern_downloads_page")&&(p.menu={menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:m.videoEntity.videoId}}}}],accessibility:{accessibilityData:{label:_.CX("VIDEO_ACTION_MENU",
void 0,"Action menu")}}}},p.badges=void 0);m=p}else m={};x.call(b,{richItemRenderer:{content:{videoRenderer:m},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"}})}else if($D3(m)){b=c;x=b.push;var I=t=P=void 0,a=void 0,k=void 0,H=void 0,T=void 0,r=void 0,W=void 0,Y=void 0,Z=void 0,d=void 0;p=m.mainPlaylistEntity.playlistId;var G=m==null?void 0:(d=m.mainPlaylistEntity)==null?void 0:(Z=d.thumbnailStyleData)==null?void 0:(Y=Z[0])==null?void 0:(W=Y.value)==null?void 0:(r=W.collageThumbnail)==
null?void 0:r.coverThumbnail;if(p&&G){r=E_2(p);!_.w("enable_offline_playlist_page")&&(m==null?0:(T=m.mainPlaylistEntity)==null?0:T.videos)&&(T=m==null?void 0:(H=m.mainPlaylistEntity)==null?void 0:(k=H.videos)==null?void 0:k[0],k=_.mA(T).entityId,k=JSON.parse(k).videoId,k!==void 0&&(H=qy(_.Rc().getState(),k),r=_.lJ(k,p,void 0,void 0,H)));k=[];if(m==null?0:(a=m.mainPlaylistEntity)==null?0:(I=a.videos)==null?0:I.length)k=[EWr(),Object.assign({},(t=G3R(m==null?void 0:m.mainPlaylistEntity.videos.length))!=
null?t:{})];m={playlistId:p,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:G}},navigationEndpoint:r,loggingDirectives:{clientVeSpec:{uiType:42357}},thumbnailOverlays:k,title:BA(m.mainPlaylistEntity.title),shortBylineText:BA(m==null?void 0:(P=m.channelEntity)==null?void 0:P.title),badges:[{metadataBadgeRenderer:{label:_.CX("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};_.w("kevlar_modern_downloads_page")&&(m.menu={menuRenderer:{items:[{menuServiceItemRenderer:{text:qpR,
icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:p,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.CX("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},m.badges=void 0)}else m=void 0;x.call(b,{richItemRenderer:{content:{playlistRenderer:m},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST"}})}return c};
zRt=function(J,c,m){J=J?UVR(J):"";c!==void 0&&isFinite(c)?c===0?c=_.CX("UPDATING",void 0,"Updating..."):(c=VBJ(new Date(c),new Date),c=_.CX("UPDATED_TIME",{relative_time:c},"Updated "+c)):c="";var b="";J&&c&&(b=" \u2022 ");if(m&&_.w("kevlar_display_downloads_numbers")){m=_.an("VIDEO_COUNT",m);if(J||c)b=" \u2022 ";return m+b+J+b+c}return J+b+c};
SpJ=function(J){return YqJ(J.entities).length};
_.hRJ=function(J,c){var m=goe(J.responsiveSize),b;J=!((b=J.responsiveMap)==null||!b.some(function(x){return x.containerSize==="CONTAINER_SIZE_NARROW"&&x.containerType==="CONTAINER_TYPE_VERTICAL_LIST"}));
return{marginSettings:2,containerWidth:c,sizing:m,enableFullBleedForSingleCol:!1,isCompactList:m==="COMPACT"&&J}};
dVo=function(J,c){return _.P2(J.entities,"votingEntity",c)};
$Vu=function(J){if(J){var c;return((c=_.BG().resolve(_.y6(_.Ev)))==null?0:c())?J.darkTheme:J.lightTheme}};
Gs2=function(J,c){if(J.simpleText)return Object.assign({},J,{simpleText:$V(J.simpleText,c)});if(!J.runs)return J;for(var m=Object.assign({},J,{runs:[]}),b=0,x=_.M(J.runs),P=x.next();!P.done;P=x.next())if(P=P.value,P.text)if(b+P.text.length<=c)m.runs.push(P),b+=P.text.length;else return m.runs.push(Object.assign({},P,{text:$V(P.text,c-b)})),m;return J};
EFD=function(J,c){return _.P2(J.entities,"chipBarStateEntity",c)};
vFu=function(J,c){return _.P2(J.entities,"chipEntity",c)};
ArD=function(J,c,m,b){return function(){var x=Opf.has(J.displayType)&&J.selected,P=x&&J.deselectCommand?J.deselectCommand:J.tapCommand;!P||x&&b||_.hd(P,{form:{element:c==null?void 0:c.value}});m==null||m()}};
RRT=function(J){switch(J){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""}};
oFr=function(J,c){return{triggeringElement:J,onDwellTriggeredFn:function(){var m={triggeringElement:J,loadVideoPreviewEventData:c},b=document.querySelector(".video-preview");b&&b.dispatchEvent(new CustomEvent("yt-load-video-preview",{detail:m}))},
onDwellEndFn:function(){var m=document.querySelector(".video-preview");m&&m.dispatchEvent(new CustomEvent("yt-end-video-preview"))}}};
QKQ=function(J,c){var m=_.BG().resolve(_.y6(Eof)),b=function(){var x=c();return m&&x?oFr(J.value,x):null};
_.ui(function(){var x=b();m&&x&&Promise.resolve().then(function(){m.registerElement(x)});
_.f2(function(){m&&x&&Promise.resolve().then(function(){m.unregisterElement(x)})})},"csPUge")};
jK3=function(J){var c=J.dataset.resizeObserverId;if(c)return c;c=""+eRr++;return J.dataset.resizeObserverId=c};
FDD=function(J,c){var m=jK3(J);Ly.has(m)||Ly.set(m,new Set);Ly.get(m).add(c);Di.has(m)&&c(Object.assign({},{target:J},Di.get(m)))};
lUT=function(J){J=_.M(J);for(var c=J.next();!c.done;c=J.next()){c=c.value;var m=jK3(c.target),b=Object.assign({},{target:c.target},Di.get(m));if(b!=null&&b.contentRect?b.contentRect.width!==c.contentRect.width||b.contentRect.height!==c.contentRect.height:1)for(Di.set(m,{borderBoxSize:c.borderBoxSize,contentBoxSize:c.contentBoxSize,contentRect:c.contentRect,devicePixelContentBoxSize:c.devicePixelContentBoxSize}),m=_.M(Ly.get(m)||[]),b=m.next();!b.done;b=m.next())b=b.value,b(c)}};
BED=function(){return W8?W8:W8=new yre(lUT)};
gF3=function(J,c){var m=jK3(J);Ly.has(m)&&(Ly.get(m).delete(c),Ly.get(m).size===0&&(Ly.delete(m),Di.delete(m),W8.unobserve(J),delete J.dataset.resizeObserverId));Ly.size===0&&W8&&(W8.disconnect(),W8=void 0)};
clJ=function(J,c){var m=_.BG().resolve(BO);return JlR.map(function(b){return m.observe(J,c,b)})};
mNT=function(J){var c=_.BG().resolve(BO);J.forEach(function(m){c.unobserveByKey(m)})};
_.VVe=function(J,c){var m=Object.assign({},bjT,c);c=_.M(UUD());var b=c.next().value,x=c.next().value,P=function(p){var t=p.contentRect.height;if((p=p.contentRect.width)||t||m.canHaveZeroSize)b.width()===p&&b.height()===t||x(b,{height:t,width:p})};
_.uN(function(){var p=J instanceof HTMLElement?J:J.value,t=xNG(P,m.throttleMs),I=[];m.useVisibilityObserver&&(I=clJ(p,function(a,k){requestAnimationFrame(function(){k==="visible"?(FDD(p,t),BED().observe(p)):gF3(p,t)})}));
I.length||(FDD(p,t),BED().observe(p));_.f2(function(){I.length&&(mNT(I),I.length=0);gF3(p,t)})});
return b};
MVe=function(J){var c=J.data;var m=J.callback;var b=J.enableSingleChipSelection;var x=J.disableChipsScrollAnimation;var P=_.Q5("div"),p=Yy(!1),t=Yy(0);J={};J=_.M(Nx(c.autoselectedChipIndex!=null?(J[c.autoselectedChipIndex]=!0,J):{}));var I=J.next().value,a=J.next().value,k=function(){var kt=P.value;return kt==null||kt.scrollLeft-1<=0},H=function(){var kt=P.value;
return kt==null?!1:kt.scrollLeft+1>=(kt==null?NaN:kt.scrollWidth)-(kt==null?NaN:kt.clientWidth)};
J=_.M(Nx(k()));var T=J.next().value,r=J.next().value;J=_.M(Nx(H()));var W=J.next().value,Y=J.next().value;J=c.isHorizontallyScrollable;var Z=function(kt){P.value!=null&&(_.Ub("HTML_DIR")==="rtl"&&(kt=-kt),P.value.scrollBy({left:kt,behavior:x?"instant":"smooth"}))},d=function(){Z(-320)},G=function(){Z(320)},e=_.Kq(function(kt){p.value=!0;
t.value=kt.clientX}),A=_.Kq(function(kt){if(p.value){kt=kt.clientX;
var nG=kt-t.value;t.value=kt;var fG;(fG=P.value)==null||fG.scrollBy({left:-nG})}}),l=_.Kq(function(){var kt=k(),nG=H();
kt!==T&&r(kt);nG!==W&&Y(nG)});
y5("pointerup",function(){p.value&&(p.value=!1)});
var y={},pG={};return _.C("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},ld(c.title,function(){return _.C("div",{class:"ytChipsShelfViewModelChipsShelfHeader"},_.C("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},c.title),Pto(c.overflowButton))}),_.C("div",{class:"ytChipsShelfViewModelChipsShelfContent"},ld(c.previousButton!=null,function(){var kt={};
return _.C("div",{class:_.tP("ytChipsShelfViewModelLeftArrowContainer",(kt.ytChipsShelfViewModelLeftArrowContainerIsHidden=T,kt))},Pto(c.previousButton,{buttonViewModel:{className:"ytChipsShelfViewModelLeftArrow",onClick:d}}))}),_.C("div",{el:P,
"on:pointerdown":e,"on:pointermove":A,"on:scroll":l,class:_.tP("ytChipsShelfViewModelChipsScrollContainer",(y.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=!!J,y))},_.C("div",{class:_.tP("ytChipsShelfViewModelChipsContainer",(pG.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollable=!!J,pG.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollableFeaturePhone=!!J&&!1,pG))},(c.contents||[]).map(function(kt,nG){return _.C("div",{class:"ytChipsShelfViewModelChipWrapper"},Pto(kt,
{chipViewModel:{callback:function(fG,Yt){if(b){var Z3={};a((Z3[nG]=Yt,Z3))}else Z3={},a(Object.assign({},I,(Z3[nG]=Yt,Z3)));m==null||m(fG,Yt,nG)},
disableDeselection:b,selected:!!I[nG]}}))}))),ld(c.nextButton!=null,function(){var kt={};
return _.C("div",{class:_.tP("ytChipsShelfViewModelRightArrowContainer",(kt.ytChipsShelfViewModelRightArrowContainerIsHidden=W,kt))},Pto(c.nextButton,{buttonViewModel:{className:"ytChipsShelfViewModelRightArrow",onClick:G}}))})))};
Ntu=function(J,c,m,b,x){J=c?J.switchOffCommand:J.switchOnCommand;if(b&&x)pqG(J,m,x);else{var P,p;(P=_.Uv({elementsCommand:J}))==null||(p=P.onclick)==null||p.call(P,m)}};
pqG=function(J,c,m){J=_.Uv({elementsCommand:J,additionalCommandArgs:{commandController:{onSuccess:function(){m(!1)},
onServerError:function(){m(!1)}}}});
if(J==null?0:J.onclick)J.onclick(c),m(!0)};
I9t=function(J){if(J)return _.L(J,tVu)};
Hjq=function(J,c,m){if(c)return[Kdt];switch(J){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_COMPLETE":return[zU];case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFERRING":return m?[zU]:[CtJ,zU];case "TRANSFER_STATE_PAUSED_BY_USER":return[a9T,zU];case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return[kVe,zU];default:return[Kdt]}};
ijR=function(J,c,m,b){return Hjq(J,c,b).map(function(x){var P=x.text,p=x.iconType,t=x.videoAction;x=x.playlistAction;P=P?{content:P}:void 0;p=p&&{sources:[{clientResource:{imageName:p}}]};var I=(0,_.Lw.unsafeClone)(m);if(I){var a=_.L(I,_.Mx),k=_.L(I,_.pK);a&&t?a.action=t:k&&x&&(k.action=x)}return{title:P,leadingImage:p,rendererContext:I&&{commandContext:{onTap:{innertubeCommand:I}}}}})};
nEm=function(J){J=_.G9(J.rendererContext);var c;return(c=_.L(J,_.pK))==null?void 0:c.playlistId};
Ttq=function(J){var c;return(c=J.listItems)==null?void 0:c.some(function(m){var b;return _.Ec((b=_.L(m,_.CK))==null?void 0:b.rendererContext)})};
rlt=function(J){var c;return(c=J.listItems)==null?void 0:c.some(function(m){m=_.L(m,_.CK);return!!_.L(m==null?void 0:m.leadingAccessory,wqQ)})};
uD=function(J){var c=_.BG().resolve(_.y6(_.Ev));return c!=null&&c()?J.darkThemeColorPalette:J.lightThemeColorPalette};
YR=function(J){return{primaryTextColor:fy(J,0),secondaryTextColor:fy(J,1),optionColor:fy(J,2),backgroundColor:fy(J,3),videoBackgroundColor:fy(J,4)}};
fy=function(J,c){if(J){switch(c){case 0:J=J.primaryTitleColor;break;case 1:J=J.secondaryTitleColor;break;case 2:J=J.surgeColor;break;case 3:J=J.section2Color;break;case 4:J=J.section3Color;break;default:return}if(J)return _.XB(J)}};
sBQ=function(J){return J?_.Zn(J):""};
LdQ=function(J){return(J==null?void 0:J.contentType)==="LOCKUP_CONTENT_TYPE_SOURCE"?64:void 0};
DN3=function(J,c){var m;return"linear-gradient(to bottom, "+((m=c==null?void 0:c.map(function(b){var x=J?b.darkThemeColor:b.lightThemeColor;return x?_.Zn(x)+" "+((b==null?void 0:b.startLocation)||0)*100+"%":"transparent"}))==null?void 0:m.join(", "))+")"};
Wdq=function(J,c,m,b,x){if(!((b==null?0:b.height)&&(b==null?0:b.width)))return{size:0};var P=b.width;b=b.height;if(x)return c==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||c==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"&&P>b?{size:312/CbG}:c==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"?{size:160}:{size:312};if(!(m!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"||J!==1&&J!==2||c!=="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"&&c!=="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"&&c!==
"CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"))return{allowFullWidth:!0};if(c==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||c==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"||b===P)switch(J){case 1:return{size:208};case 2:case 3:return{size:240};default:return{size:360}}if(c==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||b>P)switch(J){case 1:case 3:return{size:240*KZm};default:return{size:360*KZm}}switch(J){case 1:case 2:return{size:1/CbG*(window.innerWidth-32)};case 3:return{size:160};
default:return{size:240}}};
_.zHq=function(J){if(!("matchMedia"in window))return _.Ge(Error("Lh")),function(){return!1};
var c=window.matchMedia(J);J=_.M(_.K2(c.matches,void 0,"jLJc8e"));var m=J.next().value,b=J.next().value,x=function(P){b(P.matches)};
c.addEventListener?(c.addEventListener("change",x),_.f2(function(){c.removeEventListener("change",x)})):c.addListener&&(c.addListener(x),_.f2(function(){c.removeListener(x)}));
return m};
uOt=function(J){return J==="IMAGE_BANNER_STYLE_INSET"||J==="IMAGE_BANNER_STYLE_UNKNOWN"};
f9q=function(){if(!("matchMedia"in window))return _.Ge(Error("Lh")),function(){return 0};
var J=f3(function(){return window.matchMedia("(max-width: 527.9px)")}),c=f3(function(){return window.matchMedia("(min-width: 528px) and (max-width: 839.9px)")}),m=f3(function(){return window.matchMedia("(min-width: 840px) and (max-width: 1023.9px)")}),b=f3(function(){return window.matchMedia("(min-width: 1024px)")}),x=_.M(_.K2(J.matches,void 0,"og9kEc")),P=x.next().value,p=x.next().value;
x=_.M(_.K2(c.matches,void 0,"ybDWCb"));var t=x.next().value,I=x.next().value;x=_.M(_.K2(m.matches,void 0,"o0Gfh"));var a=x.next().value,k=x.next().value;x=_.M(_.K2(b.matches,void 0,"yqUUgd"));var H=x.next().value,T=x.next().value,r=f3(function(){return function(d){p(d.matches)}}),W=f3(function(){return function(d){I(d.matches)}}),Y=f3(function(){return function(d){k(d.matches)}}),Z=f3(function(){return function(d){T(d.matches)}});
_.uN(function(){J.addEventListener?(J.addEventListener("change",r),c.addEventListener("change",W),m.addEventListener("change",Y),b.addEventListener("change",Z)):J.addListener&&(J.addListener(r),c.addListener(W),m.addListener(Y),b.addListener(Z));_.f2(function(){J.removeEventListener?(J.removeEventListener("change",r),c.removeEventListener("change",W),m.removeEventListener("change",Y),b.removeEventListener("change",Z)):J.removeListener&&(J.removeListener(r),c.removeListener(W),m.removeListener(Y),
b.removeListener(Z))})});
return function(){return P()?1:t()?2:a()?3:H()?4:0}};
YrT=function(J){var c=0;J=_.M([J.title,J.metadata,J.actions,J.description,J.attribution]);for(var m=J.next();!m.done;m=J.next())m.value&&c++;return c};
Xqt=function(J){return J===1||J===2?1:0};
qrm=function(J){var c,m=((c=_.BG().resolve(_.y6(_.Ev)))==null?0:c())&&J.data.darkThemeImage?J.data.darkThemeImage:J.data.image;c=_.C("div",{class:"ytwSearchFrictionViewModelHostImageAndMenuWrapper"},_.C("div",{class:"ytwSearchFrictionViewModelHostImageContainer"},m?_.C(_.RA,{data:m,alt:"",className:"ytwSearchFrictionViewModelHostImage"}):null),Zje(J.data.overflowMenuButton,{buttonViewModel:{className:"ytwSearchFrictionViewModelHostMenuButton"}}));m=_.C(_.j8,{text:J.data.title,className:"ytwSearchFrictionViewModelHostTitle"});
var b=J.data;if(b.bodyText){var x=[];b=_.M(b.bodyText);for(var P=b.next();!P.done;P=b.next())x.push(_.C(_.j8,{text:P.value,className:"ytwSearchFrictionViewModelHostBodyText"}))}else x=_.C(_.cG,null);return _.C("ytw-search-friction-view-model",{class:"ytwSearchFrictionViewModelHost"},c,m,x,Zje(J.data.actions,{buttonViewModel:{className:"ytwSearchFrictionViewModelHostButton"}}),_.C(_.j8,{text:J.data.disclaimer,className:"ytwSearchFrictionViewModelHostDisclaimer"}),_.C(_.j8,{text:J.data.attribution,
className:"ytwSearchFrictionViewModelHostAttribution"}))};
Sro=function(J){J=(new UNe).parse(J);return(new pl).render(J).replace(/\b(?:\d{1,2}:)?(?:\d{1,2}:)\d{1,2}\b/g,function(c){var m=c.split(":").map(Number),b=0,x=0;if(m.length===3)m=_.M(m),b=m.next().value,x=m.next().value,m=m.next().value;else if(m.length===2)m=_.M(m),x=m.next().value,m=m.next().value;else if(m.length===1)m=_.M(m).next().value;else throw Error("Mh");return'<span class="ytwMarkdownDivTimestamp" data-time="'+(b*3600+x*60+m)+'" role="button">'+c+"</span>"})};
hHo=function(J){J=_.M(J.getElementsByClassName("ytwMarkdownDivTimestamp"));for(var c=J.next(),m={};!c.done;m={clickHandler$jscomp$4:void 0},c=J.next()){c=c.value;m.clickHandler$jscomp$4=function(x){x=Number(x.target.getAttribute("data-time"));if(isNaN(x))throw Error("Nh");var P;(P=_.b$())==null||P.seekTo(x,!0)};
var b=function(x){return function(P){P.key!=="Enter"&&P.key!=="Space"||(0,x.clickHandler$jscomp$4)(P)}}(m);
c.setAttribute("tabindex","0");c.removeEventListener("click",m.clickHandler$jscomp$4);c.removeEventListener("keydown",b);c.addEventListener("click",m.clickHandler$jscomp$4);c.addEventListener("keydown",b)}};
dNe=function(){return _.C("overview-answer-ghost-card",{class:"ytwOverviewAnswerGhostCardHost"},_.C(XW,{percentWidth:100}),_.C(XW,{animationDelay:200}),_.C(XW,{animationDelay:400}),_.C(XW,{animationDelay:600}),_.C(XW,{animationDelay:800,percentWidth:60}),_.C("div",{class:"ytwOverviewAnswerGhostCardLineBreak"}),_.C(XW,{percentWidth:100}),_.C(XW,{animationDelay:200}),_.C(XW,{animationDelay:400}),_.C(XW,{animationDelay:600,percentWidth:50}))};
XW=function(J){return _.C("div",{class:"ytwOverviewAnswerGhostCardGhostLine",style:"max-width:"+(J.percentWidth===void 0?100:J.percentWidth)+"%"},_.C("div",{class:"ytwOverviewAnswerGhostCardSlider",style:"animation-delay:"+(J.animationDelay===void 0?0:J.animationDelay)+"ms"}))};
$NJ=function(){var J=_.M(_.K2(function(){return""},void 0,"v2wS5e")),c=J.next().value;
return[function(){return c()()},
J.next().value]};
EEr=function(J){J=J===void 0?{}:J;return{title:_.yq(J.localizedOptInBannerTitleText===void 0?"":J.localizedOptInBannerTitleText),titleLength:19,subtitle:_.yq(J.localizedOptInMessage===void 0?"":J.localizedOptInMessage),primaryButton:{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.yq(_.CX("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:_.yq(_.CX("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:[GVf]},
loggingDirectives:{clientVeSpec:{uiType:127982}}}};
vEe=function(J,c){J=J?UVR(J):"";c!==void 0&&isFinite(c)?c===0?c=_.CX("UPDATING",void 0,"Updating..."):(c=VBJ(new Date(c),new Date),c=_.CX("UPDATED_TIME",{relative_time:c},"Updated "+c)):c="";var m="";J&&c&&(m=" \u2022 ");return _.yq(J+m+c)};
RHq=function(J,c,m,b,x,P){c=c===void 0?0:c;var p=Ojq[c],t=p.title,I=p.iconType,a=p.topButtonRenderer,k=p.sectionClientVE;p=p.videoClientVE;var H;if(c!==1||J.length){m=[];J=_.M(J);for(b=J.next();!b.done;b=J.next()){var T=b.value;if(GY3(T))m.push({downloadedVideoGridVideoRenderer:{renderer:{gridVideoRenderer:{videoId:T.videoEntity.videoId,title:BA(T.videoEntity.title),shortBylineText:BA(T.channelEntity.title),thumbnail:T.videoEntity.thumbnail,menu:{menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:T.videoEntity.videoId}}}}],
accessibility:{accessibilityData:{label:_.CX("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:p}}}}}});else if($D3(T)){b=m;var r=b.push;var W=void 0,Y=void 0,Z=void 0,d=void 0,G=void 0,e=void 0,A=void 0,l=void 0,y=T.mainPlaylistEntity.playlistId,pG=T==null?void 0:(l=T.mainPlaylistEntity)==null?void 0:(A=l.thumbnailStyleData)==null?void 0:(e=A[0])==null?void 0:(G=e.value)==null?void 0:(d=G.collageThumbnail)==null?void 0:d.coverThumbnail;d=E_2(y);if(!_.w("enable_offline_playlist_page")&&
(T==null?0:(Z=T.mainPlaylistEntity)==null?0:Z.videos)){b:{Z=T==null?void 0:(Y=T.mainPlaylistEntity)==null?void 0:Y.videos;Y=_.Rc().getState().entities;if(Z!=null&&Z.length&&Y)for(Z=_.M(Z),G=Z.next();!G.done;G=Z.next())if(G=_.mA(G.value).entityId,(G=JSON.parse(G).videoId)&&ugu(Y,G)==="TRANSFER_STATE_COMPLETE"){Y=G;break b}Y=""}Y!==void 0&&(d=qy(_.Rc().getState(),Y),d=_.lJ(Y,y,void 0,void 0,d))}Y=O_T(_.CX("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),E_2(y));T=y&&pG&&Y?{playlistId:y,navigationEndpoint:d,
viewPlaylistText:Y,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:pG}},title:BA(T.mainPlaylistEntity.title),shortBylineText:BA(T==null?void 0:(W=T.channelEntity)==null?void 0:W.title),menu:{menuRenderer:{items:[{menuServiceItemRenderer:{text:Alr,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:y,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.CX("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:p}}}:
void 0;r.call(b,{gridPlaylistRenderer:T})}}p={gridRenderer:{items:m}};c===1&&(H=vEe(x,P))}else if(b){var kt=_.yq((r=m==null?void 0:m.localizedPromptMessage)!=null?r:"");p={horizontalListRenderer:{items:[{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.yq(_.CX("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now")),isDisabled:!1,defaultServiceEndpoint:{offlineOrchestrationActionCommand:{actions:[{actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",
entityKey:_.bOR}]}},loggingDirectives:{clientVeSpec:{uiType:129730}}}},{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.yq(_.CX("TURN_OFF",void 0,"Turn off")),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!1}},loggingDirectives:{clientVeSpec:{uiType:129731}}}}],loggingDirectives:{clientVeSpec:{uiType:129729}}}};H=vEe(x,P)}else kt=_.yq(_.CX("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),
p={};return{contents:[{shelfRenderer:{title:t,titleAnnotation:H,icon:{iconType:I},subtitle:kt,content:p,menu:{menuRenderer:{topLevelButtons:[{buttonRenderer:a}]}}}}],loggingDirectives:{clientVeSpec:{uiType:k}}}};
oEq=function(J,c,m,b,x,P,p,t){m=m===void 0?{}:m;b=b===void 0?!1:b;x=x===void 0?!1:x;P=P===void 0?!1:P;p=p===void 0?0:p;t=t===void 0?-Infinity:t;if(!c.length&&!J.length&&!b)return x?[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:WDR(m)}]}}]:[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:{title:_.yq(_.CX("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 I=[];J.length&&I.push(RHq(J,0));b?I.push(RHq(c,1,m,P,p,t)):x&&I.push({contents:[{statementBannerRenderer:EEr(m)}]});(b&&c.length||J.length)&&I.push({contents:[{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.yq(_.CX("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 I.map(function(a){return{itemSectionRenderer:a}})};
Zi=function(J,c){if(typeof J!=="object")return null;J=_.M(Object.entries(J));for(var m=J.next();!m.done;m=J.next()){var b=_.M(m.value);m=b.next().value;b=b.next().value;if(m===c)return m;if(b=Zi(b,c))return m+"."+b}return null};
qJ=function(J){var c=J.content;return(J=J.styleRuns)&&c?{runs:J.map(function(m){var b={text:c.slice(m.startIndex,m.startIndex+m.length)};m.fontColor&&(b.textColor=m.fontColor);return b})}:{simpleText:c}};
jBq=function(J,c,m,b){var x=QBT;b&&(J.quantity=b);if(!J.quantity||!J.maxQuantity)return{};b=J.minusButton;var P=J.plusButton,p,t,I,a;return{value:J.quantity,maxValue:J.maxQuantity,onChangeCallback:function(k){x(J,k)},
minusLabel:(p=_.L(b,eHe))==null?void 0:p.label,minimumReachedLabel:(t=_.L(b,eHe))==null?void 0:t.limitReachedLabel,plusLabel:(I=_.L(P,eHe))==null?void 0:I.label,maximumReachedLabel:(a=_.L(P,eHe))==null?void 0:a.limitReachedLabel,disabled:c,onRemoveCommand:m}};
QBT=function(J,c){var m=J.quantityIncrementerEntityKey;if(m){var b={};b.quantity=c;_.AO(_.DI("quantityIncrementerEntity",m,b));J.onChangeCommand&&_.hd(J.onChangeCommand)}};
Fdr=function(J){return _.w("kevlar_comments_clone_data_killswitch")?J:_.Lw.unsafeClone(J)};
Btf=function(J,c){(J=l9f(J))&&(c?ylq.push({command:J,sourceData:{},commandContext:void 0}):_.BG().resolve(_.gu).resolveCommand(J))};
l9f=function(J){return _.L(J,_.Xz)};
gEm=function(){var J=window.performance.timeOrigin+window.performance.now(),c=(new _.UQ).setSeconds(J/1E9);return _.LU(c,2,_.De(J%1E9),0)};
SQ=function(J,c){var m=_.L(_.L(J,_.Xz),Jwf);m&&(c&&(m.serializedAdditionalMetadata=_.yR(c)),Btf(J,!0))};
cwr=function(J){switch(J){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"}};
m12=function(){return!!_.Ub("ID_TOKEN")};
VIJ=function(J){return J instanceof Error&&J.cause instanceof bfQ&&J.cause.rpcErrorCode!==void 0?!x12.includes(J.cause.rpcErrorCode):!0};
MIQ=function(){return _.oP(PSt,{authuser:""+(_.Ub("SESSION_INDEX")||0)})};
h3=function(J,c,m,b){m=m===void 0?"MINI_APP_SDK_API_UNSPECIFIED":m;b=b===void 0?"":b;var x=new _.w3;m={source:"MINI_APP_ERROR_SOURCE_PLAYABLE_CONTAINER",sdkVersion:b,sdkApi:m};J instanceof Error&&(x.message=J.message,x.name=J.name,J.cause instanceof bfQ&&J.cause.rpcErrorCode!==void 0&&(m.rpcErrorCode=J.cause.rpcErrorCode));var P;(P=c.onError)==null||P.call(c,{loggingError:x,metadata:m})};
NZq=function(J,c,m,b){switch(J){case "MINI_APP_SOURCE_GAMESNACKS":return new dJ(c,m,b);default:return new pvf(c,m,b)}};
tIG=function(J){switch(J){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"}};
IzD=function(J){switch(J){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"}};
Kht=function(J){switch(J){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"}};
CSJ=function(){return Math.floor(Math.random()*4)+1};
azR=function(J,c,m,b){J=_.M(Object.entries(J));for(var x=J.next(),P={};!x.done;P={message$jscomp$957:void 0},x=J.next()){var p=_.M(x.value);x=p.next().value;p=p.next().value;P.message$jscomp$957=p;c.push(setTimeout(function(t){return function(){b(!1);m(t.message$jscomp$957.text)}}(P),P.message$jscomp$957.delayMs));
Number(x)>0&&c.push(setTimeout(function(){b(!0)},P.message$jscomp$957.delayMs-400))}};
kxe=function(J,c){var m=m===void 0?Gf2:m;_.w("mweb_fix_monitor_visibility_after_render")?J&&L7(function(){OFR(J,c,m)}):L7(function(){OFR(J,c,m)})};
ifR=function(J){var c=J.data;var m=J.uniqueId;J=J.overrides;var b,x=((b=c.timedAnimationData)==null?void 0:b.animationTiming)||[];return _.C("timed-animation-button-renderer",{class:"ytwTimedAnimationButtonRendererHost"},_.C(u$,{settings:{uniqueId:m,timings:x,experimentEnabled:x.length>0,enabled:x.length>0}},HfQ(c.buttonRenderer,{buttonRenderer:{buttonOverrides:J}})))};
rwR=function(J){nwT||(nwT=TZJ(new _.Sk(1,void 0,void 0,wve),0));var c=nwT.format(Math.floor(J));c=_.UG==="be"||_.UG==="bg"||_.UG==="es"||_.UG==="et"||_.UG==="hu"||_.UG==="ka"||_.UG==="lv"||_.UG==="pl"||_.UG==="pt-PT"||_.UG==="sq"?c.replace(new RegExp("^(\\d)"+wve.GROUP_SEP.replace(".","\\.")+"(\\d+("+wve.DECIMAL_SEP.replace(".","\\.")+"\\d+)?\\D*)$"),"$1$2"):c;return J>=1E3&&J<=9999&&c[1]==="."&&(_.UG==="sl"||_.UG==="it")?c.replace(".",""):c};
s8T=function(J,c){Wd("ytd-button-renderer",{data:J,className:c?c.className:"",overrides:c==null?void 0:c.buttonOverrides},RD)};
Whr=function(J,c,m,b){if(J)return b=b||J.likeStatus,c?{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:b==="LIKE",isDisabled:!J.likesAllowed,defaultIcon:{iconType:m},defaultText:b==="LIKE"?J.likeCountWithUnlikeText:J.likeCountText,toggledText:b==="LIKE"?J.likeCountText:J.likeCountWithLikeText,defaultNavigationEndpoint:LhG(J,"LIKE"),defaultServiceEndpoint:D1G(J,"LIKE"),toggledServiceEndpoint:D1G(J,"INDIFFERENT"),defaultTooltip:_.OG(J.likeCountTooltipText),toggledTooltip:_.OG(J.likeCountTooltipText),
targetId:J.targetId}:{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:b==="DISLIKE",isDisabled:!J.likesAllowed,defaultIcon:{iconType:m},defaultText:b==="DISLIKE"?J.dislikeCountWithUndislikeText:J.dislikeCountText,toggledText:b==="DISLIKE"?J.dislikeCountText:J.dislikeCountWithDislikeText,defaultNavigationEndpoint:LhG(J,"DISLIKE"),defaultServiceEndpoint:D1G(J,"DISLIKE"),toggledServiceEndpoint:D1G(J,"INDIFFERENT"),defaultTooltip:_.OG(J.dislikeCountTooltipText),
toggledTooltip:_.OG(J.dislikeCountTooltipText)}};
LhG=function(J,c){if(c==="LIKE")return J.likeCommand;if(c==="DISLIKE")return J.dislikeNavigationEndpoint};
D1G=function(J,c){var m;return(m=J.serviceEndpoints)==null?void 0:m.find(function(b){var x;return((x=_.L(b,_.$R))==null?void 0:x.status)===c})};
_.fzR=function(J,c,m){return window.spf&&!_.w("web_disable_spfjs_client")?zzq(J,c,m):ujQ(J,c)};
zzq=function(J,c,m){var b=null,x=(new _.IN(function(P,p){var t={};if(c){t.method=c.method;var I=c.postParams||{};j3T(J,c)&&(I[_.Ub("XSRF_FIELD_NAME")]=_.Ub("XSRF_TOKEN"));t.postData=_.Ir(I);c.type&&(t.type=c.type);I=c.headers}t.headers=ON2(J,I);_.w("debug_forward_web_query_parameters")&&(J=_.Q33(J,window.location.search));t.experimental_headers=t.headers;t.onError=function(a){a.err&&a.xhr&&(a.err.params={url:a.xhr.responseURL,response:a.xhr.responseText.substr(0,64)});p(a.err)};
t.onPartDone=function(a){m&&m.call(null,a.part)};
t.onDone=function(a){var k=YA3(a.response,"xsrf_token");js(window.location.href,J)&&k&&_.q3("XSRF_TOKEN",k);if(k=YA3(a.response,"service_worker_killswitch"))_.q3("SERVICE_WORKER_KILLSWITCH",k),TOm();P(a.response)};
b=spf.request(J,t)})).then(Xvu);
x.thenCatch(function(P){var p=P instanceof _.OQ,t=P&&P.hasOwnProperty("params")&&P.params.response?P.params.response:"";P instanceof Error&&(t?p?qvR(P):t===')]}\'\n{"reload":"now"}'?qvR(P):(Zfm(P,J,t),qAG(P,t)?_.qz(P):_.Xc(P)):qvR(P));b&&b.abort()});
return x};
Xvu=function(J){if(J.type==="multipart"){var c=J.timing;J=J.parts.reduce(function(m,b){Object.assign(m,b);return m},{});
J.timing=J.timing||{};Object.assign(J.timing,c);J.type="reduced"}return J};
ujQ=function(J,c){c=c===void 0?{}:c;var m=null,b=new _.IN(function(x,P){c.onFinish=function(p){if(p.readyState===XMLHttpRequest.DONE)if(p.status===200){if(p.responseType!=="json"){var t=p.response;t.substring(0,5)===")]}'\n"&&(t=t.substring(5));try{var I=JSON.parse(t)}catch(a){I=a}}else I=p.response;I instanceof Error?P(I):(t=YA3(I,"xsrf_token"),js(window.location.href,J)&&t&&_.q3("XSRF_TOKEN",t),p=p.responseURL,window.performance&&window.performance.getEntriesByName?(t=window.performance.getEntriesByName(p).pop())?
p={responseStart:(0,_.y4)()-(t.responseEnd-t.responseStart)}:(Math.random()<.01&&(t=Error("Zh"),t.params=p,_.qz(t)),p={responseStart:-1}):p={responseStart:0},I.timing=I.timing||{},Object.assign(I.timing,p),x(I))}else P(Error("Yh`"+p.status))};
(m=_.tL(J,c))||P(Error("Yh`"+m.status))});
b.thenCatch(function(x){x instanceof Error&&(Zfm(x,J),qAG(x)&&(x.level="WARNING"))});
_.w("cancel_pending_navs")&&b.thenCatch(function(){m.abort()});
return b};
YA3=function(J,c){var m=J[c],b=J.parts;J.type==="multipart"&&b&&(m=(J=b.find(function(x){return c in x}))&&J[c]);
return m};
Zfm=function(J,c,m){var b=J.message||"";c={original:b,url:c};if(m)if(b=b.match(/position:?\s*(\d+)/)){b=b&&Number(b[1])?Number(b[1]):0;var x=Math.max(b-25,0);c.position=b;c.response=m.substring(x,b+25)}else c.response=m.substring(0,50);_.Ue(J,c);try{J.message="JSON parse error"}catch(P){}};
qAG=function(J,c){J=J.message||"";J=!!(J.indexOf("<")>=0||J.indexOf("end of ")>=0||J.indexOf("Unterminated string")>=0||J.indexOf("Unexpected EOF"));if(!J&&c)for(var m=c.length,b=!1,x=0;x<m;x++)if(b&&c[x]==="\\")x++;else if(c[x]==='"')b=!b;else if(c[x]==="<"&&!b){J=!0;break}return J};
U1f=function(){return document.documentElement.hasAttribute("dark")};
_.SA3=function(J,c){if(J!=="GFEEDBACK"&&J!=="GUIDED_HELP")_.ha(Error("$h`"+J));else{var m=_.BG().resolve(_.y6(_.oO));if(m&&(m=m.getCurrentPage())&&m.getServiceTrackingParams&&(m=m.getServiceTrackingParams()))for(var b=0,x;x=m[b++];)if(x.service===J){if(J=x.params)for(m=0;b=J[m++];)c[b.key]=b.value;break}}};
_.hzJ=function(J){var c=_.ep();c&&(c=c.getPlayer())&&(c.pauseVideo(),J.playback_id=c.getVideoData().cpn,J.eid=c.getVideoData().eventId,Object.assign(J,c.getFeedbackProductData()))};
d1t=function(){var J={abuseLink:"https://support.google.com/youtube/bin/answer.py?answer=140536",customZIndex:"2000000005",allowNonLoggedInFeedback:!0};_.Ub("GOOGLE_FEEDBACK_FORCE_ANONYMOUS")&&(J.enableAnonymousFeedback=!0);_.Ub("SESSION_INDEX")&&(J.authuser=String(_.Ub("SESSION_INDEX")));_.w("enable_pageid_for_feedback")&&_.Ub("DELEGATED_SESSION_ID")&&(J.pageId=String(_.Ub("DELEGATED_SESSION_ID")));return J};
_.A3=function(J){_.w("enable_ypc_spinners")&&_.m9(J,"yt-open-popup-action",[{openPopupAction:{popupType:"FULLSCREEN_OVERLAY",properties:{noCancelOnOutsideClick:!0,noAutoFocus:!0},popup:{loadingRenderer:{hack:!0}}}},J])};
_.Rg=function(J){_.w("enable_ypc_spinners")&&_.m9(J,"yt-close-popup-action",["yt-loading-renderer"])};
$1R=function(J){return new Promise(function(c,m){_.ql({verifyCommand:{recaptchaToken:J.recaptchaResponse}},{commandController:{onSuccess:function(b,x){x||m("ChallengeService did not return a response.");var P;c({challengeCompleted:(P=x.verified)!=null?P:!1})},
onServerError:function(b,x){m(x)}}})})};
GxG=function(J,c,m,b){c({recaptchaResponse:b}).then(function(x){x.challengeCompleted?_.H7()?(m(3),_.BG().resolve(_.gu).resolveCommand({signalAction:{signal:"RELOAD_PAGE"}},{form:{element:J}})):m(2):m(4)},function(){m(4)})};
EwD=function(J,c,m){_.dK("https://www.google.com/recaptcha/api.js?trustedtypes=true&hl="+_.Ub("HL"),function(){var b;(b=window.grecaptcha)==null||b.ready(function(){var x=window.grecaptcha;x?(m(x.render(J,{sitekey:"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog",callback:GxG.bind(null,J,$1R,c)})),c(1)):c(4)})})};
vwu=function(J,c){return function(){switch(c()){case 0:return J().captchaLoadingMessage;case 1:return J().challengeReason;case 3:return J().captchaSuccessfulMessage;case 2:return J().captchaCookieSetFailureMessage;case 4:return J().captchaFailedMessage;default:return J().challengeReason}}()};
_.og=function(){if(!OfG){var J=document.querySelector("#player.skeleton");J&&(_.nc(J),OfG=!0)}};
_.Rzm=function(){return Aw2=TFT()};
ezm=function(){return _.N(function(J){return owJ!==void 0?J.return():_.K(J,Q8Q(),0)})};
Q8Q=function(){return _.N(function(J){if(J.nextAddress==1)return _.K(J,rg2(),2);Aw2=J.yieldResult;owJ=_.ft.addLowPriorityJob(Q8Q,5E3);_.tD(J)})};
gw2=function(J){var c=c===void 0?j8t:c;var m,b,x=(m=J.responseContext)==null?void 0:(b=m.mainAppWebResponseContext)==null?void 0:b.trackingParam;if(!x){c.increment("MISSING");var P,p,t,I,a,k;_.qz(new _.w3("282054944_a",{kCr:!!((P=J.responseContext)==null?0:(p=P.mainAppWebResponseContext)==null?0:p.loggedOut),pSB:((t=J.responseContext)==null?void 0:t.mainAppWebResponseContext)===void 0,sCz:J.responseContext===void 0,wcp:(I=J.playabilityStatus)==null?void 0:I.contextParams,nly:(((a=J.streamingData)==
null?void 0:a.formats)||[]).length>0,vlX:(((k=J.streamingData)==null?void 0:k.adaptiveFormats)||[]).length>0,os:!!J.offlineState,cotn:J.cotn}));return 2}m="";try{m=Fhf(x)}catch(r){return c.increment("C_ERROR"),_.Xc(r),2}try{var H=_.lzD(m);var T=ywo(H)}catch(r){return c.increment("P_ERROR"),_.Xc(r),2}T=_.Jy(T,BZe,1,_.ca());x=[];T=_.M(T);for(H=T.next();!H.done;H=T.next())b=H.value,H=b.getPath(),m=(0,_.Lw.getValueByKeys)(J,H.split(".")),m=String(m===void 0||m===null?"":m),b=b.getValue()||"",P=/[+\-\/_]/g,
m.replace(P,"")!==b.replace(P,"")&&(c.increment("MISMATCH"),_.w("ab_mis_log_err")&&(m=new _.w3("282054944_p",{uGo:H,g:String(m),e:String(b)}),_.Xc(m)),["auxiliaryUi.messageRenderers.enforcementMessageViewModel.displayType"].includes(H)||(H.match(/enforcementMessageViewModel/i)?x.push(3):x.push(2)));if(x.length>0)return Math.max.apply(Math,_.L6(x));c.increment("SUCCESS");return 1};
mjG=function(J){var c=new Qg;if(J.interpreterJavascript){var m=_.Dyq(J.interpreterJavascript);m=hG(m).toString();var b=new Jp2;_.aw(b,6,m);_.m_(c,1,b,Ea)}else J.interpreterUrl&&(m=_.Y$(J.interpreterUrl),m=_.N2(m).toString(),b=new _.cpG,_.aw(b,4,m),_.m_(c,2,b,Ea));J.interpreterHash&&_.eQ(c,3,J.interpreterHash,Ea);J.program&&_.eQ(c,4,J.program,Ea);J.globalName&&_.eQ(c,5,J.globalName,Ea);J.clientExperimentsStateBlob&&_.eQ(c,7,J.clientExperimentsStateBlob,Ea);return c};
jQ=function(J){var c={};J=_.M(J.split("&"));for(var m=J.next();!m.done;m=J.next())m=m.value.split("="),m.length===2&&(c[m[0]]=m[1]);return c};
bbr=function(J){return Number(J.t)||7200};
uZD=function(){if(_.w("bg_st_hr"))return"havuokmhhs-0";var J,c=((J=performance)==null?void 0:J.timeOrigin)||0;return"havuokmhhs-"+Math.floor(c)};
xjJ=function(){return new Promise(function(J){var c=window.top;c.ntpevasrs!==void 0?J(new FW(c.ntpevasrs)):(c.ntpqfbel===void 0&&(c.ntpqfbel=[]),c.ntpqfbel.push(function(m){J(new FW(m))}))})};
Vbe=function(J){var c=J.zYv.bind(J);_.jD("yt.aba.att",c);J=J.izD.bind(J);_.jD("yt.aba.att2",J)};
Mb2=function(J){switch(_.NU(J.input)){case _.oc(PY2):var c={};return c.encryptedVideoId=J.innerTubeRequest.externalVideoId,c}return{}};
N5R=function(J){switch(_.NU(J.input)){case _.oc(PY2):if(_.w("enable_att_for_transcript_request_on_web_client"))return"ENGAGEMENT_TYPE_VIDEO_TRANSCRIPT_REQUEST";break;case _.oc(lD):if(_.w("PremiumClientSharedConfig__enable_att_for_get_premium_on_web_client")&&J.innerTubeRequest.browseId==="SPunlimited")return"ENGAGEMENT_TYPE_YPC_GET_PREMIUM_PAGE";break;case _.oc(p_T):var c,m;if(_.w("PremiumClientSharedConfig__enable_att_for_get_download_action_on_web_client")&&((m=_.L((c=J.config)==null?void 0:c.command,
Tnf))==null?0:m.requiresAttestationResponse))return"ENGAGEMENT_TYPE_YPC_GET_DOWNLOAD_ACTION"}return null};
_.IDe=function(J){var c;if(J.playlistVideoRenderer&&((c=J.playlistVideoRenderer)==null?0:c.engagementBar))return tbr(J.playlistVideoRenderer.engagementBar);if(_.L(J,yg)){var m;if(J=(m=_.L(J,yg))==null?void 0:m.engagementBar)return tbr(J)}return""};
tbr=function(J){if(!J)return"";J=_.L(J,_.KgQ);if(J==null||!J.actions)return"";J=_.M(J.actions);for(J=J.next();!J.done;J=J.next()){J=_.L(J.value,_.CYq);var c=void 0;if((c=J)==null||!c.itemId)break;return J.itemId}return""};
_.aD2=function(J){var c;if(J.playlistVideoRenderer&&((c=J.playlistVideoRenderer)==null?0:c.videoId))return J.playlistVideoRenderer.videoId;if(_.L(J,yg)){var m,b;if(J=(m=_.L(J,yg))==null?void 0:(b=m.playlistItemData)==null?void 0:b.videoId)return J}return""};
_.kCQ=function(J){var c;if(J.playlistVideoRenderer&&((c=J.playlistVideoRenderer)==null?0:c.voteCount))return J.playlistVideoRenderer.voteCount;if(_.L(J,yg)){var m,b;if(J=(m=_.L(J,yg))==null?void 0:(b=m.playlistItemData)==null?void 0:b.voteCount)return J}return 0};
_.B8=function(J,c){return _.P2(J.entities,"flowStateEntity",c)};
ib2=function(J,c,m,b){var x=void 0;J=_.M(J[c.iconName]||[]);for(var P=J.next();!P.done;P=J.next()){P=P.value;var p=c.iconSize;var t=c.iconStyle;p=!p||p===P[2];var I=Hbo[P[0]];b&&b!==P[1]||!p||t&&t!==I?t=!1:x?(t=Hbo[P[0]],t=!!c.iconStyle||t==="youtube_outline",p=x.version<=P[1],t=(!!c.iconSize||P[2]===24)&&t&&p):t=!0;t&&(x={name:c.iconName,style:Hbo[P[0]],size:P[2],version:P[1],allowMirroring:!!P[3],url:m(c.iconName,P)})}return x};
naJ=function(J,c,m,b){return J+(""+Hbo[m[0]]+((b===void 0?0:b)?"_experimental":"")+"/"+c+"/v"+m[1]+"/")+(m[2]+"px.svg")};
gJ=function(J){return _.w("web_bookmark_playlist_save_icon")?"bookmark":J};
T5J=function(J,c){return naJ("https://fonts.gstatic.com/s/i/",J,c)};
w_u=function(J,c){return naJ("https://fonts.gstatic.com/s/i/",J,c,!0)};
rpG=function(J,c){return naJ("https://www.gstatic.com/youtube/img/icons/web/",J,c)};
skm=function(J){var c=J.enabled;var m=J.itemPlaybackModel;var b=J.thumbnailElRef;var x=J.containerElRef;var P=J.options;var p;_.ui(function(){var t=x==null?void 0:x.value;var I,a=(I=b())==null?void 0:I.value;I=m();var k=P();if(c&&I&&t&&a&&(k==null?0:k.thumbnail)){var H={data:I,hostElement:t},T,r,W=_.w("web_explore_hub_on_hover")||_.w("web_client_explore_hub_on_hover")?[].concat(_.L6((T=k.thumbnailOverlays)!=null?T:[]),_.L6((r=I.overlays)!=null?r:[])):k.thumbnailOverlays||[],Y,Z;t={mediaRenderer:H,
lockupElement:t,thumbnailElement:a,videoPreviewOpts:{videoPreviewData:{inlinePlaybackEndpoint:_.ZG((Y=I.inlinePlayerData)==null?void 0:Y.onVisible),navigationEndpoint:_.ZG((Z=I.inlinePlayerData)==null?void 0:Z.onSelect),thumbnail:k.thumbnail,thumbnailOverlays:W,accessibilityText:k.accessibilityText||""},thumbnailSize:k.thumbnailSize,enableRounding:k.enableRounding}}}else t=void 0;if(Y=t){var d;(d=p)==null||Jm(d);p=AT(Y)}},"B33dEc");
_.f2(function(){var t;(t=p)==null||Jm(t)})};
Lgm=function(J){J=atob(J);for(var c=[],m=0;m<J.length;m++)c.push(J.charCodeAt(m));return new Blob([new Uint8Array(c)],{type:"image/png"})};
Wgt=function(J,c,m,b){b=b===void 0?"INSERTION_POSITION_UNSPECIFIED":b;return J({targetId:c},function(x){var P,p=(P=x.contents)!=null?P:[];P=m!=null?m:[];var t=Djt(p);switch(b){case "INSERTION_POSITION_UNSPECIFIED":return Object.assign({},x,{contents:[].concat(_.L6(p.slice(0,t)),_.L6(P),_.L6(p.slice(t+1)))});case "INSERTION_POSITION_FIRST":return Object.assign({},x,{contents:[].concat(_.L6(P),_.L6(p))});case "INSERTION_POSITION_LAST":return Object.assign({},x,{contents:[].concat(_.L6(p),_.L6(P))});
default:return x}})};
u3Q=function(J,c,m,b,x){x=x===void 0?"RELATIVE_INSERTION_POSITION_AFTER":x;return J({targetId:c},function(P){var p,t=(p=P.contents)!=null?p:[];p=zxo(t,m);if(p<0)return P;p=x==="RELATIVE_INSERTION_POSITION_BEFORE"?p:p+1;return Object.assign({},P,{contents:[].concat(_.L6(t.slice(0,p)),_.L6(b),_.L6(t.slice(p)))})})};
Djt=function(J){var c=J.findIndex(function(m){return _.L(m,_.cH)});
return c>=0?c:J.length};
zxo=function(J,c){return J.findIndex(function(m){a:{m=_.M(Object.values(m));for(var b=m.next();!b.done;b=m.next())if((b=b.value)&&b.targetId){m=b.targetId;break a}m=""}return m===c})};
Ydm=function(J,c,m){return J({targetId:c},function(b){var x,P=(x=b.contents)!=null?x:[];return Object.assign({},b,{contents:fDm(P,m)})})};
fDm=function(J,c){return J.filter(function(m){var b=c.includes;a:{m=_.M(Object.values(m));for(var x=m.next();!x.done;x=m.next())if((x=x.value)&&x.targetId){m=x.targetId;break a}m=""}return!b.call(c,m||"")})};
_.X_o=function(J,c){return{engagementPanelSectionListRenderer:{panelIdentifier:J,identifier:c,visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",content:{contentLoadingRenderer:{useSpinner:!0}}}}};
_.qdR=function(J){var c,m=(c=J.getOption("captions","tracklist",{includeAsr:!0}))!=null?c:[];return m=Zbe(m,J)};
Ujm=function(J){return J.getOption("captions","translationLanguages",{includeAsr:!0})||[]};
Zbe=function(J,c){c=Ujm(c);if(c==null||!c.length)return J;var m=c.filter(function(p){return p});
c=J.filter(function(p){return p.languageCode.startsWith("en")});
m=_.M(m);for(var b=m.next();!b.done;b=m.next())if(b=b.value,c.length){var x=c[0],P=Object.assign({},x);x.languageCode!==b.languageCode&&(P.displayName=x.languageName+" >> "+b.languageName,P.translationLanguage=b,J.push(P))}return J};
SdT=function(J,c,m){J=_.qdR(J);if(J.length)return m?J.find(function(b){if(typeof(b==null?void 0:b.translationLanguage)==="object"){var x;return((x=b.translationLanguage)==null?void 0:x.languageCode)===c}return!1}):J==null?void 0:J.find(function(b){return b.languageCode===c})};
hxm=function(J){return J.getOption("captions","tracklist",{includeAsr:!0})};
djT=function(J){return J.getOption("captions","tracklist",{includeAsr:!0})};
$jr=function(J){var c=djT(J);if(c==null?0:c.length)return c;J.loadModule("captions");return djT(J)};
GCt=function(J){var c=J.getOption("captions","track");if(c)return c;J.loadModule("captions");return J.getOption("captions","track")};
vat=function(J){var c=$jr(J);if(c!=null&&c.length){var m=GCt(J),b;return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:_.CX("PLAYER_CAPTION_OFF",void 0,"Off")},isSelected:!(m==null?0:m.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:""}}]}}}}}}}].concat(_.L6(c.map(function(x){return{listItemViewModel:{title:{content:x.displayName},
isSelected:x.displayName===(m==null?void 0:m.displayName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:x.languageCode}}]}}}}}}}})),[{listItemViewModel:Object.assign({},{title:{content:_.CX("AUTO_TRANSLATE",void 0,"Auto-translate")},
isSelected:!!m.translationLanguage,selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT"},!!m.translationLanguage&&{selectionText:{content:(m==null?void 0:(b=m.translationLanguage)==null?void 0:b.languageName)||""}},{rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[EaG(J)]}}}}}})}]),visibleElementCount:5}}}}}}}}};
EaG=function(J){var c=Ujm(J);if(c==null||!c.length)throw Error("xi");var m=GCt(J);J=c.filter(function(b){return!b.languageCode.startsWith("en")});
return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.L6(J.map(function(b){var x;return{listItemViewModel:{title:{content:b.languageName},isSelected:b.languageName===(m==null?void 0:(x=m.translationLanguage)==null?void 0:x.languageName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:b.languageCode,
isAutoTranslated:!0}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}};
oaG=function(J){return new Promise(function(c,m){if(J===void 0)_.Xc(Error("Bi"),"ERROR"),m(Error("Bi"));else{m=new _.Ob3;var b=_.ApJ();m=m.init();var x=_.RxJ(_.Ub("YPC_MB_URL"),!0);Promise.all([m,x]).then(function(){var P=payments.business.integration.ClientTokenFactory.createClientToken(J,b);c(P)})}})};
jke=function(J,c,m,b,x,P,p){var t=_.$x();m=m.replace(/-/g,"+").replace(/_/g,"/");var I=_.HA().get("hl"),a=_.mm(_.vj),k=c==null?void 0:c.element;k&&_.A3(k);QkD(c,!0);_.exQ(a,m,t.resolve,function(){k&&_.Rg(k)},function(H){k&&_.Rg(k);
t.reject(H)},I,b?function(H){b&&_.ds(J,b,{backend_analytics:H})}:void 0,t.resolve,x,P,p);
return t.promise};
QkD=function(J,c){!(J=J==null?void 0:J.element)||J.tagName!=="YT-BUTTON-RENDERER"&&J.tagName!=="YTD-BUTTON-RENDERER"||(J.disabled=c)};
FgD=function(){var J=_.CX("DOWNLOADED",void 0,"Downloaded");return{popup:{notificationActionRenderer:{responseText:_.yq(J),actionButton:{buttonRenderer:sKq()}}},popupType:"TOAST"}};
lDQ=function(){var J=_.CX("UNAVAILABLE_OFFLINE",void 0,"Unavailable offline");return{popup:{notificationActionRenderer:{responseText:_.yq(J),loggingDirectives:{clientVeSpec:{uiType:135356}}}},popupType:"TOAST"}};
ypD=function(J){return{itemSectionRenderer:{contents:[{backgroundPromoRenderer:J}]}}};
bc=function(J,c,m,b){var x;return _.N(function(P){if(P.nextAddress==1)return _.xL(P,2),_.K(P,J,4);if(P.nextAddress!=2)return(x=_.iW(c.getState().entities).length>0)?P.return({title:_.yq(_.CX("YOU_ARE_OFFLINE",void 0,"You are offline")),bodyText:_.yq(_.CX("CHECK_CONNECTION_OR_DOWNLOADS",void 0,"Please check your connection or watch your downloaded videos.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:rrr()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}):
P.return(LDr(m,b));_.NM(P);return P.return(LDr(m,b))})};
B5o=function(J,c){return c?c==="PPSV"||XYe(J,c):!1};
gat=function(J){J.responseContext||(J.responseContext={});J.responseContext.maxAgeSeconds=0;return J};
Vv=function(J){var c;return _.N(function(m){return m.nextAddress==1?_.K(m,Jo3(J,"service:topbar:fallback"),2):(c=m.yieldResult)&&_.xg(c)?m.return(gat(_.xg(c))):m.return()})};
cor=function(J){var c;return _.N(function(m){return m.nextAddress==1?_.K(m,Jo3(J,"service:downloads_settings:fallback"),2):(c=m.yieldResult)&&_.xg(c)?m.return(c):m.return()})};
Jo3=function(J,c){var m;return _.N(function(b){if(b.nextAddress==1)return J?_.K(b,J.get(c),2):b.return();m=b.yieldResult;return!m||!_.xg(m)||!isNaN(Number(m.data.expireTimestampMs))&&m.isExpired()?b.return():b.return(m)})};
mQo=function(J){var c=_.BG().resolve(PH).getState().entities;return J.playlistId?B5o(c,J.playlistId):!1};
b8D=function(J,c){var m;if(c==null?0:(m=c.requestTemplate)==null?0:m.panelId)J.panelId=c.requestTemplate.panelId;var b;if(c==null?0:(b=c.requestTemplate)==null?0:b.params)J.params=c.requestTemplate.params};
Vqu=function(){if(xQm)return xQm();var J=!_.w("idb_response_store_auth_killswitch"),c={};xQm=lj("yt-it-response-store",{objectStores:(c.ResponseStore={addedAtVersion:1},c),shared:!J,upgrade:function(m,b){b(1)&&(m=hU(m,"ResponseStore",{keyPath:["key","clientName"]}),$$(m,"byExpiration","expireTimestampMs"),$$(m,"byInterface","clientName"))},
version:1});return xQm()};
Pzo=function(J){return _.OO(Vqu(),J)};
pfR=function(J,c){var m;return _.N(function(b){return b.nextAddress==1?_.K(b,_.Fb(),2):(m=b.yieldResult)?b.return(new Mqu(J,c,m)):b.return()})};
NXe=function(J){var c=Object.keys(J)[0];if(c)return J.screenExit&&(c=c+";"+J.screenExit.screen),c};
tqG=function(J){var c=new Map;J=_.M(J);for(var m=J.next();!m.done;m=J.next())m=m.value,m!=null&&(c.has(m.taskType)||c.set(m.taskType,[]),c.get(m.taskType).push(m));return c};
IW3=function(J){return!isNaN(J)&&J>0};
K4q=function(J){J=[].concat(_.L6(J)).sort(function(m,b){return m-b});
var c=Math.floor(J.length/2);return J.length%2?J[c]:(J[c-1]+J[c])/2};
kwm=function(J,c){J=J===void 0?i7R:J;c=c===void 0?{}:c;_.jD("yt.logging.errors.log",_.Xc);kgD();Czr(sA3(),c);window.onerror=J;aWT=H7J;window.addEventListener("unhandledrejection",function(m){if(m.reason instanceof Error){var b=m.reason;_.Ue(b,{source:"unhandledrejection"});b.name==="AbortError"&&(b.level="WARNING")}H7J(m.reason);m.preventDefault()})};
_.H8T=function(J){return J.a11y.ephemeralAction||null};
_.i82=function(J){var c,m,b,x,P,p,t,I,a,k,H,T,r,W,Y,Z,d,G,e,A,l,y,pG,kt,nG,fG,Yt,Z3,oR,Em,X$,Hu,S6,a2,Nu,cu,t8,I_,fU,Nf;return _.N(function(wL){if(wL.nextAddress==1)return _.K(wL,_.Kk(J,{mode:"readonly",enableRetries:!0},function(qu){return Ck(qu,"playbackData").then(function(O5){var LQ=O5.map(function(VQ){return VQ.transfer}).filter(function(VQ){return!!VQ}),j6=O5.map(function(VQ){return VQ.offlineVideoPolicy}).filter(function(VQ){return!!VQ}),Ow=O5.filter(function(VQ){return!!VQ.key}).map(function(VQ){return _.V_(_.mA(VQ.key).entityId,
"downloadStatusEntity")});
LQ=Ck(qu,"transfer",LQ);j6=Ck(qu,"offlineVideoPolicy",j6);Ow=Ck(qu,"downloadStatusEntity",Ow);var QQ=LQ.then(function(VQ){VQ=VQ.reduce(function(vB,T4){(T4==null?0:T4.offlineVideoStreams)&&vB.push.apply(vB,_.L6(T4.offlineVideoStreams));return vB},[]).filter(function(vB){return!!vB});
return Ck(qu,"offlineVideoStreams",VQ)});
return hL.all([LQ,j6,QQ,Ow]).then(function(VQ){var vB=_.M(VQ);VQ=vB.next().value;var T4=vB.next().value;var Tz=vB.next().value;vB=vB.next().value;return[O5,VQ,T4,Tz,vB]})})}),2);
if(wL.nextAddress!=3)return c=wL.yieldResult,_.K(wL,_.Kk(J,{mode:"readonly",enableRetries:!0},function(qu){return Ck(qu,"mainDownloadsListEntity").then(function(O5){var LQ,j6;return(j6=(LQ=O5[0])==null?void 0:LQ.downloads)!=null?j6:[]})}),3);
m=wL.yieldResult;b=_.M(c);x=b.next().value;P=b.next().value;p=b.next().value;t=b.next().value;I=b.next().value;a=x;k=P;H=p;T=t;r=I;W={};Y={};Z={};d={};G={};e=[];A=_.M(k);for(l=A.next();!l.done;l=A.next())(y=l.value)&&(W[y.key]=y);pG=_.M(H);for(kt=pG.next();!kt.done;kt=pG.next())(nG=kt.value)&&(Y[nG.key]=nG);fG=_.M(r);for(Yt=fG.next();!Yt.done;Yt=fG.next())(Z3=Yt.value)&&(Z[Z3.key]=Z3);oR=_.M(T);for(Em=oR.next();!Em.done;Em=oR.next())(X$=Em.value)&&(d[X$.key]=X$);Hu=_.M(m);for(S6=Hu.next();!S6.done;S6=
Hu.next())a2=S6.value,Nu=void 0,G[(Nu=a2.videoItem)!=null?Nu:""]=!0,a2.videoItem&&(t8=cu=void 0,I_=(t8=(cu=_.mA(a2.videoItem))==null?void 0:cu.entityId)!=null?t8:"",e.push({externalVideoId:I_}));fU=a.filter(function(qu){if(!qu||!qu.key||!qu.offlineVideoPolicy)return!1;qu=_.mA(qu.key).entityId;qu=_.V_(qu,"downloadStatusEntity");var O5;return!(qu&&((O5=Z[qu])==null?void 0:O5.downloadState)==="DOWNLOAD_STATE_USER_DELETED")});
Nf=fU.map(function(qu){var O5=W[qu.transfer],LQ=[];if(O5==null?0:O5.offlineVideoStreams)for(var j6=_.M(O5.offlineVideoStreams),Ow=j6.next();!Ow.done;Ow=j6.next())(Ow=d[Ow.value])&&LQ.push(Ow);j6=Y[qu.offlineVideoPolicy];Ow=G;var QQ=qu==null?void 0:qu.playerResponseTimestamp,VQ=_.mA(j6.key).entityId;qu=_.V_(VQ,"mainVideoEntity");if(j6.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"){var vB="OFFLINE_VIDEO_STATE_DISABLED";j6.expirationTimestamp&&Number(j6.expirationTimestamp)<Date.now()/1E3&&(vB="OFFLINE_VIDEO_STATE_EXPIRED")}else if(j6.action===
"OFFLINE_VIDEO_POLICY_ACTION_DOWNLOAD_FAILED")vB="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";else{switch(O5==null?void 0:O5.transferState){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":vB="OFFLINE_VIDEO_STATE_PENDING";break;case "TRANSFER_STATE_TRANSFERRING":vB="OFFLINE_VIDEO_STATE_TRANSFERRING";break;case "TRANSFER_STATE_PAUSED_BY_USER":vB="OFFLINE_VIDEO_STATE_PAUSED_TRANSFER";break;case "TRANSFER_STATE_FAILED":vB="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";break;case "TRANSFER_STATE_COMPLETE":vB="OFFLINE_VIDEO_STATE_PLAYABLE";
break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":vB="OFFLINE_VIDEO_STATE_STREAMS_OUT_OF_DATE";break;default:vB="OFFLINE_VIDEO_STATE_UNKNOWN"}if(vB==="OFFLINE_VIDEO_STATE_OFFLINE_FAILED")switch(O5==null?void 0:O5.failureReason){case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":vB="OFFLINE_VIDEO_STATE_OUT_OF_STORAGE_ERROR";break;case "TRANSFER_FAILURE_REASON_STREAM_MISSING":vB="OFFLINE_VIDEO_STATE_STREAMS_MISSING";break;case "TRANSFER_FAILURE_REASON_NETWORK":case "TRANSFER_FAILURE_REASON_NETWORK_LOST":vB=
"OFFLINE_VIDEO_STATE_NETWORK_ERROR"}}VQ={id:VQ,videoState:vB};if(O5==null?0:O5.cotn)VQ.cotn=O5.cotn;if(O5==null?0:O5.maximumDownloadQuality)VQ.selectedVideoQuality=O5==null?void 0:O5.maximumDownloadQuality;if(O5==null?0:O5.lastProgressTimeMs)VQ.lastProgressTimeMs=O5.lastProgressTimeMs;QQ&&(VQ.playerResponseSavedTimeMs=String(Number(QQ)*1E3));O5=String;QQ=0;LQ=_.M(LQ);for(vB=LQ.next();!vB.done;vB=LQ.next())if(vB=vB.value,vB.streamsProgress){vB=_.M(vB.streamsProgress);for(var T4=vB.next();!T4.done;T4=
vB.next()){var Tz=void 0;QQ+=Number((Tz=T4.value.numBytesDownloaded)!=null?Tz:0)}}VQ.downloadedBytes=O5(QQ);VQ.selectedOfflineMode=Ow[qu]?"OFFLINE_MODE_TYPE_AUTO_OFFLINE":"OFFLINE_NOW";j6.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"&&(VQ.offlinePlaybackDisabledReason=j6.offlinePlaybackDisabledReason);return VQ});
return wL.return({offlineVideos:Nf,additionalOfflineClientState:{mainAppAdditionalOfflineClientState:{smartDownloadVideos:e}}})})};
n5J=function(){var J;return _.N(function(c){return c.nextAddress==1?_.K(c,_.Ny(),2):(J=c.yieldResult)?c.return(_.i82(J)):c.return({state:"PES Unavailable"})})};
roT=function(){var J,c,m,b;return _.N(function(x){if(x.nextAddress==1)return _.K(x,_.Ny(),2);if(x.nextAddress!=3)return(J=x.yieldResult)?_.K(x,TXu(J),3):x.return({state:"PES Unavailable"});c=x.yieldResult;m={};b=c.reduce(function(P,p){P[p.key]=p;return P},m);
return x.return(wft(b))})};
wft=function(J){for(var c={},m=[],b=_.M(Object.keys(J)),x=b.next();!x.done;x=b.next()){var P=x.value;x=J[P];var p=void 0;if(((p=x)==null?void 0:p.entityType)==="mainVideoEntity"){delete J[P];var t=x.data;x={};if(t){var I=void 0;p=(I=t.videoId)!=null?I:"vid-"+P;P=J;x.video=t;delete x.video.formattedDescription;delete x.video.thumbnail;t.owner&&(I=P[t.owner],I==null?0:I.data)&&(delete P[I.key],x.video.owner=I.data,delete x.video.owner.avatar);if(t=t.downloadState)if(I=P[t],I==null?0:I.data)if(delete P[t],
t=I.data.playbackData)if(I=P[t],I!=null&&I.data){delete P[t];t=I.data;delete t.playerResponseJson;x.playbackData=t;if(t.transfer&&(I=P[t.transfer],I==null?0:I.data)){delete P[I.key];var a=I.data;x.transfer=a;I=[];a=_.M(a.offlineVideoStreams||[]);for(var k=a.next();!k.done;k=a.next())if(k=P[k.value])delete P[k.key],I.push(k.data);I&&(x.streams=I)}(t=t.offlineVideoPolicy)&&(t=P[t])&&t.data&&(delete P[t.key],x.offlineVideoPolicy=t.data)}c[p]=x}}else x&&x.entityType==="offlineOrchestrationActionWrapperEntity"&&
x.data&&(delete J[x.key],p=x.data,P=void 0,m.push({id:p.rootActionId,type:((P=p.actionProto)==null?void 0:P.actionType)||"",entity:x}))}c.wrapperEntities=m;Object.keys(J).length>0&&(c.unknownKeys=J);return c};
s4G=function(){var J,c,m,b,x,P,p,t,I;return _.N(function(a){if(a.nextAddress==1)return J=!!(new _.Un("")).expiringStorage_,b=!!((c=_.mo.crypto)==null?0:(m=c.subtle)==null?0:m.importKey),x=!!_.mo.BroadcastChannel,P=!!_.mo.navigator.locks,_.K(a,jzr(),2);p=a.yieldResult;t=J&&b&&x&&P&&p;I={isSupported:t};if(t)return a.return(I);I.missingBrowserFeatures=[];p||I.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_INDEXED_DB");J||I.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_LOCALSTORAGE");
b||I.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_CRYPTO_EXTENSION");x||I.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_BROADCAST_CHANNEL");P||I.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_WEB_LOCKS_API");return a.return(I)})};
L4r=function(){var J;return!((J=M_?M_:null)==null||!J.window)};
_.W42=function(J){if(_.Xe()&&_.I3T("Chromium")>=120){var c=_.DQu().mediaSession;try{c.setActionHandler("enterpictureinpicture",function(){J()})}catch(m){}}};
z9e=function(J){for(var c=[],m=_.M(document.styleSheets),b=m.next(),x={};!b.done;x={node$jscomp$725:void 0},b=m.next())x.node$jscomp$725=b.value.ownerNode,x.node$jscomp$725&&(x.node$jscomp$725 instanceof HTMLStyleElement||x.node$jscomp$725 instanceof HTMLLinkElement)&&c.push(new Promise(function(P){return function(p){var t=P.node$jscomp$725.cloneNode(!0);t.onload=function(){p()};
t.onerror=function(){_.qz(Error("dj"));p()};
J.document.head.appendChild(t)}}(x)));
return Promise.all(c)};
dQr=function(J){var c=[_.g8(uND),_.g8(fWu),_.g8(YgJ)];Xfo(window.document.documentElement,J.document.documentElement,[_.g8(Z83),_.g8(qgm),_.g8(UQf),_.g8(Sgt),_.g8(h9t)]);Xfo(window.document.body,J.document.body,c)};
Xfo=function(J,c,m){J=_.M(J.attributes);for(var b=J.next();!b.done;b=J.next())if(b=b.value)try{_.E$(m,c,b.name,b.value)}catch(x){}};
Gw2=function(J,c){J=new _.pZ(J.document.documentElement);J.start($QQ,c);return J};
E52=function(J){var c=J.document.documentElement;c.addEventListener("click",function(m){Xcu(c,m)});
c.addEventListener("touchstart",function(m){hS3(m)});
c.addEventListener("mousedown",function(m){hS3(m)})};
O8u=function(J,c,m,b){b=b===void 0?!1:b;c=new v5f(c||J,m||J);return{x:J.x+((b===void 0?0:b)?c.lengthX*-1:c.lengthX)*.2,y:J.y+((b===void 0?0:b)?c.lengthY*-1:c.lengthY)*.2}};
AoG=function(J){if(!J)return!1;var c=J.status==="OK"||J.status==="LIVE_STREAM_OFFLINE",m,b,x,P=(x=(m=J.errorScreen)==null?void 0:m.playerLegacyDesktopYpcTrailerRenderer)!=null?x:(b=J.errorScreen)==null?void 0:b.ypcTrailerRenderer;return!!c||!!P};
_.R9G=function(J,c){if(!J)return!1;var m,b=(m=J.errorScreen)==null?void 0:m.playerLegacyDesktopYpcOfferRenderer,x;c=!!(c==null?0:(x=c.playerOverlayRenderer)==null?0:x.gatedActionsOverlayRenderer);return!!AoG(J)||!!b||!!c};
e9G=function(J){return o5m(J,0,"gclid",J.search(Q4T))>=0||o5m(J,0,"gad_source",J.search(Q4T))>=0};
j4r=function(J){return new Promise(function(c){window.setTimeout(c,J)})};
F4D=function(J){var c={bicf:function(P){J.hHJ=P},
blc:function(){return J.getLatestChallengeResponse()},
bcr:function(P){J.cGW.push(P)}},m=window.top;
m.ntpevasrs=c;if(m.ntpqfbel!==void 0)for(var b=_.M(m.ntpqfbel),x=b.next();!x.done;x=b.next())x=x.value,x(c);m.ntpqfbel=void 0};
lWG=function(J){return _.N(function(c){if(c.nextAddress==1)return _.xL(c,2),_.K(c,J.sEi(),4);if(c.nextAddress!=2)return _.EO(c,0);_.NM(c);_.tD(c)})};
yoG=function(J){var c,m;(c=J.ytcsi)==null||(m=c.tick)==null||m.call(c,"pot_ist")};
BXG=function(J){if(J instanceof Error){var c=_.$y("yt.logging.errors.log");c&&c(J,"WARNING")}};
g5e=function(J){try{var c=JSON.parse(J);if(c.bgChallenge)return c}catch(m){}};
cuQ=function(){var J=window,c={networkStatusManagerPromise:_.BG().resolve(new Xy2(_.On)),initialChallengeSli:_.w("wpo_att_sli")?new _.dbo("SLI_NAME_YOUTUBE_WEB_INITIAL_ATTESTATION_CHALLENGE","",3E3,"TIMEOUT"):void 0};J=J===void 0?window:J;var m=J.ytAtR,b;c==null||(b=c.initialChallengeSli)==null||_.N_(b);if(m){if(m=g5e(m)){var x;c==null||(x=c.initialChallengeSli)==null||_.tm(x,"SUCCESS");JuQ(m,c)}J.ytAtR=void 0}else J.ytAtRC=function(P){if(P=g5e(P)){var p;c==null||(p=c.initialChallengeSli)==null||
_.tm(p,"SUCCESS");JuQ(P,c);J.ytAtRC=void 0}}};
xYD=function(){if(mYm)return mYm;try{var J=_.id("IFRAME");_.Yh(J,_.cm(bBQ));J.sandbox.add("allow-same-origin");J.style.display="none";document.body.appendChild(J);return mYm=J}catch(c){J=new _.w3("Failed to create sandbox iframe"),_.Xc(J)}};
VCt=function(J){var c,m;return(m=J==null?void 0:(c=J.contentWindow)==null?void 0:c.fetch)!=null?m:window.fetch};
P8m=function(J){var c,m;return(m=J==null?void 0:(c=J.contentWindow)==null?void 0:c.JSON.parse)!=null?m:JSON.parse};
MCD=function(J){var c,m;return(m=J==null?void 0:(c=J.contentWindow)==null?void 0:c.Request)!=null?m:window.Request};
tCe=function(){if(Ebt()==="hidden")var J="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND";else Ebt()==="visible"&&(J="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND",phG=null);J&&NqR(J)};
NqR=function(J){if(J==="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND"||J==="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND"){if(IEu===J)return;IEu=J}var c=9E4+Math.random()*2E3;if(J!=="FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"||!(_.cO()>c)&&Ebt()==="visible"){c=-1;phG&&(c=Math.round((0,_.y4)()-phG));var m=String;var b=_.$y("_fact",window);b=b==null||b==-1?-1:Math.max(Date.now()-b,0);_.zB("foregroundHeartbeat",{firstActivityMs:m(b),clientDocumentNonce:iIG,index:String(KW2),lastEventDeltaMs:String(c),trigger:J});
_.jD("_fact",-1,window);KW2++;phG=(0,_.y4)()}};
_.C8D=function(){try{return!!self.sessionStorage}catch(J){return!1}};
aEm=function(){var J=navigator;return new Promise(function(c,m){var b;(b=J.webkitTemporaryStorage)!=null&&b.queryUsageAndQuota?J.webkitTemporaryStorage.queryUsageAndQuota(function(x,P){c({usage:x,quota:P})},function(x){m(x)}):m(Error("mj"))})};
kNJ=function(J,c){var m={errorSeverity:c.errorSeverity.toString(),wizFeatureFlags:Object.entries(c.featureFlags).join("\n")};aG3(c,m);c=c.errorSeverity;c===3?_.Xc(J,"ERROR",void 0,void 0,void 0,m):c===2&&_.Xc(J,"WARNING",void 0,void 0,void 0,m);_.w("cow_if_errors_in_popup")&&c===3&&J.message.indexOf("<If>")!==-1&&window.alert(J.message)};
HBm=function(J,c,m){J.componentType!==L2&&m instanceof HTMLElement&&c&&!_.w("cow_logging_in_component_wrapper")&&HDe(m,c,!0)};
iBo=function(J,c,m){c=c===void 0?{}:c;var b,x=(b=_.L(J.commandMetadata,_.lk))==null?void 0:b.url;b=c.form||{};!m||b.element||b.skipDefaultElement||(c.form=c.form||{},c.form.element=m);if(x&&x!=="/service_ajax")return{type:0,command:J,form:c.form};if(_.w("kevlar_service_command_check")){if(_.hP(_.BG().resolve(_.zh),J))return Object.assign({},{type:1,command:J},c)}else{var P;if((P=_.L(J.commandMetadata,_.lk))==null?0:P.apiUrl)return Object.assign({},{type:1,command:J},c)}return{type:2,command:J,form:c.form}};
nfQ=function(J){if(J.form){var c=J.form,m=Object.assign({},c);c=c.element;m=(delete m.element,m);if(c)return[_.Vq(c,[J.command,m,J.commandController])]}return[]};
Tqr=function(J){if(J.form){var c=J.form,m=Object.assign({},c);c=c.element;m=(delete m.element,m);c&&_.PA(c,[J.command],c,m)}};
ruf=function(J,c,m){var b=new wh2(J,c),x=new Ix(J,c,m);J={"/youtubei/v1/browse":new KZ(J,c,m),"/youtubei/v1/player":b,"/youtubei/v1/navigation/resolve_url":new CZ,"/youtubei/v1/next":x,"/youtubei/v1/guide":new ax(m),"/youtubei/v1/search":new kg(J,c,m),"/youtubei/v1/reel/reel_item_watch":new HH(J,c,m),"/youtubei/v1/get_watch":new ic(b,x)};J["/youtubei/v1/account/account_menu"]=new nZ;J["/youtubei/v1/notification/get_notification_menu"]=new Tt;return J};
rx=function(){var J=_.BG().resolve(wx);return Promise.resolve(sXm(J,_.mo.location.href,{},document.referrer,function(){return 0},function(){return!1}))};
LWt=function(J){return J&&(J=_.so(_.c6r(J)))?(new URLSearchParams(J)).get("service"):null};
WH=function(J,c){_.cP(_.LZ(),function(){_.Y2("adl")});
_.BG().resolve(DYT)(c);J=J.root;J.loadData&&J.loadData(c);(c==null?0:c.response)?_.tm(E1J(),"SUCCESS"):_.qz(new _.w3("Lifecycle: No response in data",_.Ss("IS_SHELL_LOAD"),c?c.page:"NO_PAGE",c?c.endpoint:"NO_ENDPOINT"));J.polymerController.$["page-manager"].lazyPrepareCriticalPages((c==null?void 0:c.page)||"",c.endpoint);var m,b;((b=_.L(c==null?void 0:(m=c.endpoint)==null?void 0:m.commandMetadata,_.lk))==null?0:b.webPageType)&&_.Rc().dispatch(_.Dv(_.L(c.endpoint.commandMetadata,_.lk).webPageType))};
WWT=function(){var J,c;return _.N(function(m){switch(m.nextAddress){case 1:J=window;if(!J.getDataPromise){m.jumpTo(2);break}_.xL(m,3);return _.K(m,J.getDataPromise(),5);case 5:return m.return(m.yieldResult);case 3:return _.NM(m),_.K(m,rx(),6);case 6:return m.return(m.yieldResult);case 2:if(J.getInitialData)return c=J.getInitialData(),J.getInitialData=void 0,m.return(c);throw Error("oj`"+_.mo.location.href);}})};
uiJ=function(){_.q3("CSI_SERVICE_NAME","youtube");_.uJ({loadType:"cold"});_.w("kevlar_log_lcp")&&zqm(function(J){_.Y2("lcp",J.value)})};
fEo=function(){var J=_.E7(document.location.href,"enable");J&&J.indexOf("scraper")>-1&&_.q3("ADD_SCRAPER_ATTRIBUTES",!0)};
UYe=function(J){var c=J.root;J=[YVo,Xho,_.zt];_.w("web_feedback_endpoint_autolog_allowlist_killswitch")&&J.push(_.uc,ZBJ);qVr(function(m,b){return iBo(m,b,c)},function(m){if(!m.command)return[];
var b;((b=m.form)==null?0:b.element)?m.form.element.dispatchEvent(new CustomEvent("yt-navigate",{bubbles:!0,composed:!0,detail:Object.assign({},m.form,{endpoint:m.command})})):c.handleNavigate(m);return[]},J);
_.BG().addProvider({provide:_.gu,useValue:_.p7.instance})};
hqe=function(){var J={},c={},m;for(m in SV3){var b=_.M(_.K2(SV3[m],void 0,"NBH2te"));J[m]=b.next().value;c[m]=b.next().value}return[J,function(x){for(var P in x){var p=void 0;(p=c[P])==null||p(x[P])}}]};
_.GNe=function(J,c){var m=_.Lw.getValueByKeys(J,"contents","twoColumnWatchNextResults","results","results","contents"),b=_.Lw.getValueByKeys(J,"contents","twoColumnWatchNextResults","playlist","playlist")||null,x=null,P=null;if(b)x=_.Lw.getValueByKeys(b,"titleText"),P=_.Lw.unsafeClone(_.Lw.getValueByKeys(b,"longBylineText")),m="",P&&(m=_.OG(P)),P=_.v2(m);else if(m){m=_.M(m);for(var p=m.next();!p.done;p=m.next())p=p.value,p.videoPrimaryInfoRenderer&&(x=_.Lw.getValueByKeys.apply(_.Lw,[p].concat(_.L6(dYu)))),
p.videoSecondaryInfoRenderer&&(P=_.Lw.getValueByKeys.apply(_.Lw,[p].concat(_.L6($YJ))))}else _.Ge(Error("tj"));var t;J.currentVideoEndpoint?t=J.currentVideoEndpoint:_.Ge(Error("uj"));var I;c&&(I=_.Lw.getValueByKeys(c,"playabilityStatus","miniplayer","miniplayerRenderer"));J={miniplayerTitle:x,miniplayerSubtitle:P,watchEndpoint:t,playlistData:b};I&&(J.miniplayerRenderer=I);return J};
Efm=function(J){if(J)return _.uv(J)};
_.vfG=function(){return{isFullscreen:function(){throw Error("vj");},
toggleFullscreen:function(){throw Error("wj");},
exitFullscreen:function(){throw Error("xj");},
isAutonavEnabled:function(){throw Error("yj");},
setAutonavEnabled:function(){throw Error("zj");},
isAutoplaySetExplicitly:function(){throw Error("Aj");}}};
OBu=function(J){return J.videoDuration?J.numTaps>1&&J.tapDirection!==0?_.fZ(J.draggedTime/J.videoDuration,0,1):_.fZ((J.playedTime||0)/J.videoDuration,0,1):0};
Auo=function(J){return J.videoDuration?J.isDragging||J.numTaps>1&&J.tapDirection!==0?_.fZ(J.draggedTime/J.videoDuration,0,1):_.fZ((J.playedTime||0)/J.videoDuration,0,1):0};
ofo=function(J){var c,m,b;return _.L(J==null?void 0:(c=J.markersMap)==null?void 0:(m=c.find(function(x){return x.key==="HEATSEEKER"}))==null?void 0:(b=m.value)==null?void 0:b.heatmap,Rqt)};
QXo=function(J){var c,m;return(m=(c=ofo(J))==null?void 0:c.heatMarkersDecorations)!=null?m:[]};
eq3=function(J){if(_.w("mweb_supported_chapters_killswitch"))return!0;var c;return!!(J==null?0:(c=J.markersMap)==null?0:c.find(function(m){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(m.key)}))};
_.jXR=function(J){var c=Object,m=c.assign,b;J={isDragging:!1,draggedTime:0,isHovering:!1,hoveredTime:0,percentLoaded:0,playerState:(b=J==null?void 0:J.getPlayerState())!=null?b:-1,videoDuration:0,playedTime:0,wasPlaying:!1};return m.call(c,{},{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},J,{playbackRate:1},{controlsVisible:!1,shouldWaitToHideControls:!1,isOverlayHidden:!1},{fineScrubbingActiveState:"off",storyboardInterval:0,filmStripXDistance:0,fineScrubbingEnteredTime:0})};
FWr=function(J){return function(c){var m=J(),b,x=(b=m.playerApi)==null?void 0:b.getPlayerState();c&&c!==m.playerState&&(c===1||c===2)&&m.setState({playerState:x})}};
yuq=function(J){return function(c){var m=J(),b=m.playerApi;b&&(c==null?void 0:c.type)==="newdata"&&(lED&&(clearTimeout(lED),lED=void 0),_.w("web_shorts_use_progress_state_for_gapless")?(c=b==null?void 0:b.getProgressState(c==null?void 0:c.playertype),c=c.seekableEnd-c.seekableStart):c=b==null?void 0:b.getDuration(c==null?void 0:c.playertype),m.setState({playedTime:0,videoDuration:c}))}};
BqT=function(J){return function(c){var m=J(),b=m.playerApi;if(b){var x=b.getPresentingPlayerType();_.w("web_shorts_use_progress_state_for_gapless")?(b=b.getProgressState(x),b=b.seekableEnd-b.seekableStart):b=b.getDuration(x);m.setState({playedTime:c,videoDuration:b})}}};
cjQ=function(J){var c=J.element;var m=J.veType;var b=J.storedVisualElement===void 0?null:J.storedVisualElement;var x=J.elementIndex===void 0?0:J.elementIndex;J=J.clientYouTubeData;var P=_.Y3();P!==gfr&&(Jjt.clear(),gfr=P);if(c.visualElement&&Jjt.has(c.visualElement))return null;if(b&&Jjt.has(b))return c.visualElement=b,null;m=_.K7(_.C7(),{veType:m,elementIndex:x,clientYouTubeData:J});if(!m)return null;c.visualElement=m;Jjt.add(m);return m};
_.Yg=function(J,c,m,b){m=m===void 0?null:m;b=b===void 0?Gf2:b;var x=x===void 0?null:x;L7(function(){if(c){m instanceof Function&&(m=m());var P=cjQ({element:c,veType:J,storedVisualElement:m,clientYouTubeData:void 0});P&&(OFR(c,x),b(P))}})};
bnt=function(J){_.Yg(112394,J,function(){return mm2},function(c){mm2=c})};
Pn3=function(J,c){if(!J)return[];var m,b,x;J=((m=J.markersMap)==null?void 0:(b=m.find(function(P){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(P.key)}))==null?void 0:(x=b.value)==null?void 0:x.chapters)||[];
!xmt(J)||(c==null?0:c.ignoreStub)||(J=[V12()].concat(_.L6(J)));return J};
V12=function(){return{chapterRenderer:{timeRangeStartMillis:0}}};
xmt=function(J){if(J.length===0)return!1;var c;return((c=_.L(J[0],X1))==null?void 0:c.timeRangeStartMillis)!==0};
Zv=function(J){return J?J.timeRangeStartMillis||0:0};
pMQ=function(J,c){if(J.isDragging&&c)return J=M1D(J,c),J===-1?V12():Pn3(c)[J]};
M1D=function(J,c){return J.isDragging&&c?Pn3(c,{ignoreStub:!0}).findIndex(function(m,b,x){m=NQq(J);return t12(m,x,b).scrubberHovering}):-1};
NQq=function(J){return Object.assign({},J,{videoDuration:J.videoDuration*1E3,playedTime:J.playedTime*1E3,draggedTime:J.draggedTime*1E3})};
t12=function(J,c,m){var b=Zv(_.L(c[m],X1));c=Zv(_.L(c[m+1],X1))||J.videoDuration;m=J.isDragging;var x;if(x=J.isDragging)x=J.draggedTime,x=x!==null&&x>=b&&x<c;var P=J.playedTime;return P!==null&&P>=b&&P<c?{videoPosition:"active",isScrubbing:m,scrubberHovering:x}:J.playedTime<b?{videoPosition:"pending",isScrubbing:m,scrubberHovering:x}:{videoPosition:"seen",isScrubbing:m,scrubberHovering:x}};
ITG=function(J,c){return J.videoPosition==="seen"||(c===void 0?0:c)>0};
KuJ=function(J,c,m){c=J/c.storyboardInterval;var b=Pn3(m);if(!b.length)return-c*72;m=0;b=_.M(b);for(var x=b.next();!x.done;x=b.next())if(Zv(_.L(x.value,X1))/1E3<J)m++;else break;return-(c*72)-m*56};
Cnf=function(J){return J?J.width/J.columns:0};
aTt=function(J){return J.isHovering?J.hoveredTime:J.draggedTime};
kIG=function(J,c){J=J.draggedTime*1E3;return J>=c.visibleTimeRangeStartMillis&&J<=c.visibleTimeRangeEndMillis};
_.HnT=function(J){if(J===void 0||Number.isNaN(J))return"--:--";var c=Math.abs(Math.floor(J)),m=Math.floor(c/86400),b=Math.floor(c%86400/3600),x=Math.floor(c%3600/60);c=Math.floor(c%60);var P="";m>0&&(P+=m+":",b<10&&(P+="0"));if(m>0||b>0)P+=b+":",x<10&&(P+="0");P+=x+":";c<10&&(P+="0");P+=c;return J>=0?P:"-"+P};
inm=function(J,c){return function(){var m=aTt(J());var b=c();var x=J().playerApi;if(x&&x.getNumberOfStoryboardLevels()!==0){var P=x.getStoryboardFrameIndex(m,1);P!==-1?b=x.getStoryboardFrame(P,1):(m=x.getStoryboardFrameIndex(m,0),x=x.getStoryboardFrame(m,0),b&&x&&(x.height*=3,x.width*=3),b=x)}else b=null;if(!b)return null;c()&&(b.width=90*b.columns,b.height=160*b.rows);return b}};
_.q_=function(J){if(!J||J.getVideoData)return J};
nme=function(){var J;return{playerApi:(J=_.b$())!=null?J:void 0}};
TQu=function(J){var c;_.N(function(m){if(m.nextAddress==1)return _.K(m,_.mf(),2);if(c=m.yieldResult)c.unMute(!0),c.setVolume(J,!0);_.tD(m)})};
wMo=function(J,c){J&&(J.value=""+c,J.style.setProperty("--gradient-percent",c+"%"))};
rjJ=function(J){var c;return(c=J==null?void 0:J.value)!=null?c:0};
sY2=function(){var J;_.N(function(c){if(c.nextAddress==1)return _.K(c,_.mf(),2);J=c.yieldResult;if(!J)return c.return();J.isMuted()?J.unMute(!0):J.mute(!0);_.tD(c)})};
Lu3=function(J){var c=_.BG().resolve(_.Uo).getPlayerElement();c&&J&&(J===1?c.pause():c.play())};
DmR=function(J){_.bJ(J,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_PREV"])};
Wur=function(J){_.bJ(J,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_NEXT"])};
ua2=function(J){return _.Dc(J.document.body,function(){return _.C(z3G,null)})};
fTG=function(){var J=window.performance.getEntriesByType("navigation");return J?J.map(function(c){return c.type}).includes("reload"):!1};
dme=function(){SL(SL(SL(SL(SL(SL(SL(_.BG().resolve(_.hm),_.Y6t),_.XMq),_.Znf),_.q6Q),_.UmQ),_.S62),_.h3J)};
$m3=function(J,c){c=c===void 0?!1:c;var m,b,x,P;return _.N(function(p){if(p.nextAddress==1)return c||!_.w("kevlar_shorts_seedless_retry_initial_load")||(m=window,b=!(!m.getDataPromise&&!m.getInitialData),b)?_.K(p,WWT(),2):(setTimeout($m3.bind(window,J,!0),1E3),p.return());if(p.nextAddress!=3)return x=p.yieldResult,_.K(p,GIR(x),3);P=p.yieldResult;WH(J,P);_.tD(p)})};
GIR=function(J){var c;if((c=J.response)==null||!c.replacementEndpoint)return _.ML(J);c=_.BG().resolve(wx);J=J.response;_.L(J.replacementEndpoint,_.kb)&&J.sequenceContinuation&&(_.L(J.replacementEndpoint,_.kb).sequenceParams=J.sequenceContinuation);return dx(c,J.replacementEndpoint,{},_.mo.location.href,"shorts",function(){},function(){return!1})};
EmQ=function(J){var c=_.Rc(),m,b=_.L((m=J.response)==null?void 0:m.frameworkUpdates,vP),x;m=_.L((x=J.playerResponse)==null?void 0:x.frameworkUpdates,vP);var P;J=_.L((P=J.reelWatchSequenceResponse)==null?void 0:P.frameworkUpdates,vP);b&&_.Ic(b,c);m&&_.Ic(m,c);J&&_.Ic(J,c)};
vmq=function(J){var c;_.w("enable_redirect_linking_for_desktop_web_client")&&((c=window.location.hash)==null?0:c.includes("redirect_state"))&&J.url&&(J.url=J.url.toString()+window.location.hash)};
R3D=function(J){var c=_.BG(),m=c.resolve(wx);c=c.resolve(_.OnG);J.endpoint&&(m=Aju(m,J.endpoint),m.content&&J.response&&_.$g(c,J.response,m.content),m.player&&J.playerResponse&&_.$g(c,J.playerResponse,m.player),m.reelSequence&&J.reelWatchSequenceResponse&&_.$g(c,J.reelWatchSequenceResponse,m.reelSequence))};
Gt=function(J,c){EmQ(c);var m;(c==null?0:c.url)&&((m=window.location.hash)==null?0:m.includes("redirect_state"))&&(vmq(c),(m=LWt(c.url))&&_.m9(J.root,"yt-initialize-third-party",[m,c]));R3D(c);m=_.BG();var b=m.resolve(omu);c.playerResponse&&m.resolve(QYu).handleResponse(c.playerResponse);if(c.playerResponse){m=void 0;if(_.w("ab_v_vid_sig")&&c.endpoint){var x,P=(x=_.L(c.endpoint,_.Rz))!=null?x:_.L(c.endpoint,_.kb);P&&(m=P.videoId)}e3T(b,c.playerResponse,m)}c.playerResponse&&jTo(c.playerResponse)&&
_.w("web_enable_ab_rsp_cl")?ezm().then(function(){jY3(b,c.playerResponse);WH(J,c)}):WH(J,c)};
lTJ=function(J){if(J=J.root.data){var c=_.BG().resolve(Fuu);J.endpoint&&(J.response&&c.handleResponse(J.response,void 0,document.querySelector("ytd-app")),J.playerResponse&&c.handleResponse(J.playerResponse),J.reelWatchSequenceResponse&&c.handleResponse(J.reelWatchSequenceResponse))}};
yjJ=function(J){var c,m,b,x,P,p;return _.N(function(t){switch(t.nextAddress){case 1:c=window;if(!c.getDataPromise){t.jumpTo(2);break}_.xL(t,3);return _.K(t,c.getDataPromise(),5);case 5:m=t.yieldResult;Gt(J,m);_.EO(t,4);break;case 3:return _.NM(t),_.K(t,rx(),6);case 6:b=t.yieldResult,WH(J,b);case 4:return t.return();case 2:if(!_.w("sw_nav_preload_pbj")){t.jumpTo(7);break}c.fetchInitialData=function(){var I;return _.N(function(a){if(a.nextAddress==1)return _.K(a,rx(),2);I=a.yieldResult;WH(J,I);_.tD(a)})};
if(c.getInitialData){c.loadInitialData=function(I){Gt(J,I)};
x=c.getInitialData();c.getInitialData=void 0;Gt(J,x);t.jumpTo(8);break}c.fetchInitialData=void 0;return _.K(t,rx(),9);case 9:P=t.yieldResult,WH(J,P);case 8:return t.return();case 7:c.getInitialData?(p=c.getInitialData(),c.getInitialData=void 0,Gt(J,p)):c.loadInitialData=function(I){Gt(J,I)},_.tD(t)}})};
BQm=function(J){var c=0;return function(){return c<J.length?{done:!1,value:J[c++]}:{done:!0}}};
gmt=typeof Object.defineProperties=="function"?Object.defineProperty:function(J,c,m){if(J==Array.prototype||J==Object.prototype)return J;J[c]=m.value;return J};
J1r=function(J){J=["object"==typeof globalThis&&globalThis,J,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var c=0;c<J.length;++c){var m=J[c];if(m&&m.Math==Math)return m}throw Error("a");};
_.eE=J1r(this);Eo=function(J,c){if(c)a:{var m=_.eE;J=J.split(".");for(var b=0;b<J.length-1;b++){var x=J[b];if(!(x in m))break a;m=m[x]}J=J[J.length-1];b=m[J];c=c(b);c!=b&&c!=null&&gmt(m,J,{configurable:!0,writable:!0,value:c})}};
Eo("Symbol",function(J){if(J)return J;var c=function(P,p){this.$jscomp$symbol$id_=P;gmt(this,"description",{configurable:!0,writable:!0,value:p})};
c.prototype.toString=function(){return this.$jscomp$symbol$id_};
var m="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",b=0,x=function(P){if(this instanceof x)throw new TypeError("b");return new c(m+(P||"")+"_"+b++,P)};
return x});
Eo("Symbol.iterator",function(J){if(J)return J;J=Symbol("c");for(var c="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),m=0;m<c.length;m++){var b=_.eE[c[m]];typeof b==="function"&&typeof b.prototype[J]!="function"&&gmt(b.prototype,J,{configurable:!0,writable:!0,value:function(){return c1R(BQm(this))}})}return J});
Eo("Symbol.asyncIterator",function(J){return J?J:Symbol("d")});
var c1R=function(J){J={next:J};J[Symbol.iterator]=function(){return this};
return J},mtQ=typeof Object.create=="function"?Object.create:function(J){var c=function(){};
c.prototype=J;return new c},bTm=function(){function J(){function m(){}
new m;Reflect.construct(m,[],function(){});
return new m instanceof m}
if(typeof Reflect!="undefined"&&Reflect.construct){if(J())return Reflect.construct;var c=Reflect.construct;return function(m,b,x){m=c(m,b);x&&Reflect.setPrototypeOf(m,x.prototype);return m}}return function(m,b,x){x===void 0&&(x=m);
x=mtQ(x.prototype||Object.prototype);return Function.prototype.apply.call(m,x,b)||x}}(),xtu;
if(typeof Object.setPrototypeOf=="function")xtu=Object.setPrototypeOf;else{var VP2;a:{var PVm={a:!0},MPm={};try{MPm.__proto__=PVm;VP2=MPm.a;break a}catch(J){}VP2=!1}xtu=VP2?function(J,c){J.__proto__=c;if(J.__proto__!==c)throw new TypeError("e`"+J);return J}:null}_.vH=xtu;
_.D=function(J,c){J.prototype=mtQ(c.prototype);J.prototype.constructor=J;if(_.vH)(0,_.vH)(J,c);else for(var m in c)if(m!="prototype")if(Object.defineProperties){var b=Object.getOwnPropertyDescriptor(c,m);b&&Object.defineProperty(J,m,b)}else J[m]=c[m];J.superClass_=c.prototype};
_.M=function(J){var c=typeof Symbol!="undefined"&&Symbol.iterator&&J[Symbol.iterator];if(c)return c.call(J);if(typeof J.length=="number")return{next:BQm(J)};throw Error("f`"+String(J));};
ej=function(J){for(var c,m=[];!(c=J.next()).done;)m.push(c.value);return m};
_.L6=function(J){return J instanceof Array?J:ej(_.M(J))};
_.Oo=function(J){return plf(J,J)};
plf=function(J,c){J.raw=c;Object.freeze&&(Object.freeze(J),Object.freeze(c));return J};
Am=function(J,c){return Object.prototype.hasOwnProperty.call(J,c)};
NGm=typeof Object.assign=="function"?Object.assign:function(J,c){for(var m=1;m<arguments.length;m++){var b=arguments[m];if(b)for(var x in b)Am(b,x)&&(J[x]=b[x])}return J};
Eo("Object.assign",function(J){return J||NGm});
var tP2=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null},I$m=function(J){if(J.isRunning_)throw new TypeError("h");
J.isRunning_=!0};
tP2.prototype.JSC$6750_next_=function(J){this.yieldResult=J};
var Kbm=function(J,c){J.abruptCompletion_={exception:c,isException:!0};J.nextAddress=J.catchAddress_||J.finallyAddress_};
tP2.prototype.return=function(J){this.abruptCompletion_={return:J};this.nextAddress=this.finallyAddress_};
_.K=function(J,c,m){J.nextAddress=m;return{value:c}};
tP2.prototype.jumpTo=function(J){this.nextAddress=J};
_.tD=function(J){J.nextAddress=0};
_.xL=function(J,c,m){J.catchAddress_=c;m!=void 0&&(J.finallyAddress_=m)};
_.MM=function(J,c){J.catchAddress_=0;J.finallyAddress_=c||0};
_.EO=function(J,c,m){J.nextAddress=c;J.catchAddress_=m||0};
_.NM=function(J,c){J.catchAddress_=c||0;c=J.abruptCompletion_.exception;J.abruptCompletion_=null;return c};
_.PR=function(J,c,m,b){b?J.finallyContexts_[b]=J.abruptCompletion_:J.finallyContexts_=[J.abruptCompletion_];J.catchAddress_=c||0;J.finallyAddress_=m||0};
_.p6=function(J,c,m){m=J.finallyContexts_.splice(m||0)[0];(m=J.abruptCompletion_=J.abruptCompletion_||m)?m.isException?J.nextAddress=J.catchAddress_||J.finallyAddress_:m.jumpTo!=void 0&&J.finallyAddress_<m.jumpTo?(J.nextAddress=m.jumpTo,J.abruptCompletion_=null):J.nextAddress=J.finallyAddress_:J.nextAddress=c};
_.CVr=function(J){this.JSC$6755_context_=new tP2;this.program_=J};
kJf=function(J,c){I$m(J.JSC$6755_context_);var m=J.JSC$6755_context_.yieldAllIterator_;if(m)return a$f(J,"return"in m?m["return"]:function(b){return{value:b,done:!0}},c,J.JSC$6755_context_.return);
J.JSC$6755_context_.return(c);return Rx(J)};
a$f=function(J,c,m,b){try{var x=c.call(J.JSC$6755_context_.yieldAllIterator_,m);if(!(x instanceof Object))throw new TypeError("g`"+x);if(!x.done)return J.JSC$6755_context_.isRunning_=!1,x;var P=x.value}catch(p){return J.JSC$6755_context_.yieldAllIterator_=null,Kbm(J.JSC$6755_context_,p),Rx(J)}J.JSC$6755_context_.yieldAllIterator_=null;b.call(J.JSC$6755_context_,P);return Rx(J)};
Rx=function(J){for(;J.JSC$6755_context_.nextAddress;)try{var c=J.program_(J.JSC$6755_context_);if(c)return J.JSC$6755_context_.isRunning_=!1,{value:c.value,done:!1}}catch(m){J.JSC$6755_context_.yieldResult=void 0,Kbm(J.JSC$6755_context_,m)}J.JSC$6755_context_.isRunning_=!1;if(J.JSC$6755_context_.abruptCompletion_){c=J.JSC$6755_context_.abruptCompletion_;J.JSC$6755_context_.abruptCompletion_=null;if(c.isException)throw c.exception;return{value:c.return,done:!0}}return{value:void 0,done:!0}};
_.HTr=function(J){this.next=function(c){I$m(J.JSC$6755_context_);J.JSC$6755_context_.yieldAllIterator_?c=a$f(J,J.JSC$6755_context_.yieldAllIterator_.next,c,J.JSC$6755_context_.JSC$6750_next_):(J.JSC$6755_context_.JSC$6750_next_(c),c=Rx(J));return c};
this.throw=function(c){I$m(J.JSC$6755_context_);J.JSC$6755_context_.yieldAllIterator_?c=a$f(J,J.JSC$6755_context_.yieldAllIterator_["throw"],c,J.JSC$6755_context_.JSC$6750_next_):(Kbm(J.JSC$6755_context_,c),c=Rx(J));return c};
this.return=function(c){return kJf(J,c)};
this[Symbol.iterator]=function(){return this}};
iTQ=function(J){function c(b){return J.next(b)}
function m(b){return J.throw(b)}
return new Promise(function(b,x){function P(p){p.done?b(p.value):Promise.resolve(p.value).then(c,m).then(P,x)}
P(J.next())})};
_.N=function(J){return iTQ(new _.HTr(new _.CVr(J)))};
RAo=function(J){this[Symbol.asyncIterator]=function(){return this};
this[Symbol.iterator]=function(){return J};
this.next=function(c){return Promise.resolve(J.next(c))};
this["throw"]=function(c){return new Promise(function(m,b){var x=J["throw"];x!==void 0?m(x.call(J,c)):(m=J["return"],m!==void 0&&m.call(J),b(new TypeError("i")))})};
J["return"]!==void 0&&(this["return"]=function(c){return Promise.resolve(J["return"](c))})};
_.s$=function(){for(var J=Number(this),c=[],m=J;m<arguments.length;m++)c[m-J]=arguments[m];return c};
Eo("globalThis",function(J){return J||_.eE});
Eo("Reflect",function(J){return J?J:{}});
Eo("Reflect.construct",function(){return bTm});
Eo("Reflect.setPrototypeOf",function(J){return J?J:_.vH?function(c,m){try{return(0,_.vH)(c,m),!0}catch(b){return!1}}:null});
Eo("Promise",function(J){function c(){this.batch_=null}
function m(p){return p instanceof x?p:new x(function(t){t(p)})}
if(J&&(typeof _.eE.PromiseRejectionEvent!=="undefined"||!_.eE.Promise||_.eE.Promise.toString().indexOf("[native code]")===-1))return J;c.prototype.asyncExecute=function(p){if(this.batch_==null){this.batch_=[];var t=this;this.asyncExecuteFunction(function(){t.executeBatch_()})}this.batch_.push(p)};
var b=_.eE.setTimeout;c.prototype.asyncExecuteFunction=function(p){b(p,0)};
c.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var p=this.batch_;this.batch_=[];for(var t=0;t<p.length;++t){var I=p[t];p[t]=null;try{I()}catch(a){this.asyncThrow_(a)}}}this.batch_=null};
c.prototype.asyncThrow_=function(p){this.asyncExecuteFunction(function(){throw p;})};
var x=function(p){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var t=this.createResolveAndReject_();try{p(t.resolve,t.reject)}catch(I){t.reject(I)}};
x.prototype.createResolveAndReject_=function(){function p(a){return function(k){I||(I=!0,a.call(t,k))}}
var t=this,I=!1;return{resolve:p(this.resolveTo_),reject:p(this.JSC$6771_reject_)}};
x.prototype.resolveTo_=function(p){if(p===this)this.JSC$6771_reject_(new TypeError("j"));else if(p instanceof x)this.settleSameAsPromise_(p);else{a:switch(typeof p){case "object":var t=p!=null;break a;case "function":t=!0;break a;default:t=!1}t?this.resolveToNonPromiseObj_(p):this.fulfill_(p)}};
x.prototype.resolveToNonPromiseObj_=function(p){var t=void 0;try{t=p.then}catch(I){this.JSC$6771_reject_(I);return}typeof t=="function"?this.settleSameAsThenable_(t,p):this.fulfill_(p)};
x.prototype.JSC$6771_reject_=function(p){this.settle_(2,p)};
x.prototype.fulfill_=function(p){this.settle_(1,p)};
x.prototype.settle_=function(p,t){if(this.state_!=0)throw Error("k`"+p+"`"+t+"`"+this.state_);this.state_=p;this.result_=t;this.state_===2&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};
x.prototype.scheduleUnhandledRejectionCheck_=function(){var p=this;b(function(){if(p.notifyUnhandledRejection_()){var t=_.eE.console;typeof t!=="undefined"&&t.error(p.result_)}},1)};
x.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var p=_.eE.CustomEvent,t=_.eE.Event,I=_.eE.dispatchEvent;if(typeof I==="undefined")return!0;typeof p==="function"?p=new p("unhandledrejection",{cancelable:!0}):typeof t==="function"?p=new t("unhandledrejection",{cancelable:!0}):(p=_.eE.document.createEvent("CustomEvent"),p.initCustomEvent("unhandledrejection",!1,!0,p));p.promise=this;p.reason=this.result_;return I(p)};
x.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var p=0;p<this.onSettledCallbacks_.length;++p)P.asyncExecute(this.onSettledCallbacks_[p]);this.onSettledCallbacks_=null}};
var P=new c;x.prototype.settleSameAsPromise_=function(p){var t=this.createResolveAndReject_();p.callWhenSettled_(t.resolve,t.reject)};
x.prototype.settleSameAsThenable_=function(p,t){var I=this.createResolveAndReject_();try{p.call(t,I.resolve,I.reject)}catch(a){I.reject(a)}};
x.prototype.then=function(p,t){function I(T,r){return typeof T=="function"?function(W){try{a(T(W))}catch(Y){k(Y)}}:r}
var a,k,H=new x(function(T,r){a=T;k=r});
this.callWhenSettled_(I(p,a),I(t,k));return H};
x.prototype.catch=function(p){return this.then(void 0,p)};
x.prototype.callWhenSettled_=function(p,t){function I(){switch(a.state_){case 1:p(a.result_);break;case 2:t(a.result_);break;default:throw Error("l`"+a.state_);}}
var a=this;this.onSettledCallbacks_==null?P.asyncExecute(I):this.onSettledCallbacks_.push(I);this.isRejectionHandled_=!0};
x.resolve=m;x.reject=function(p){return new x(function(t,I){I(p)})};
x.race=function(p){return new x(function(t,I){for(var a=_.M(p),k=a.next();!k.done;k=a.next())m(k.value).callWhenSettled_(t,I)})};
x.all=function(p){var t=_.M(p),I=t.next();return I.done?m([]):new x(function(a,k){function H(W){return function(Y){T[W]=Y;r--;r==0&&a(T)}}
var T=[],r=0;do T.push(void 0),r++,m(I.value).callWhenSettled_(H(T.length-1),k),I=t.next();while(!I.done)})};
return x});
var ox=function(J,c,m){if(J==null)throw new TypeError("m`"+m);if(c instanceof RegExp)throw new TypeError("n`"+m);return J+""};
Eo("String.prototype.startsWith",function(J){return J?J:function(c,m){var b=ox(this,c,"startsWith"),x=b.length,P=c.length;m=Math.max(0,Math.min(m|0,b.length));for(var p=0;p<P&&m<x;)if(b[m++]!=c[p++])return!1;return p>=P}});
Eo("Object.setPrototypeOf",function(J){return J||_.vH});
Eo("Symbol.dispose",function(J){return J?J:Symbol("o")});
Eo("SuppressedError",function(J){function c(m,b,x){if(!(this instanceof c))return new c(m,b,x);x=Error(x);"stack"in x&&(this.stack=x.stack);this.message=x.message;this.error=m;this.suppressed=b}
if(J)return J;_.D(c,Error);c.prototype.name="SuppressedError";return c});
var nkT=function(J,c,m){J instanceof String&&(J=String(J));for(var b=J.length,x=0;x<b;x++){var P=J[x];if(c.call(m,P,x,J))return{i:x,v:P}}return{i:-1,v:void 0}};
Eo("Array.prototype.find",function(J){return J?J:function(c,m){return nkT(this,c,m).v}});
Eo("WeakMap",function(J){function c(){}
function m(I){var a=typeof I;return a==="object"&&I!==null||a==="function"}
function b(I){if(!Am(I,P)){var a=new c;gmt(I,P,{value:a})}}
function x(I){var a=Object[I];a&&(Object[I]=function(k){if(k instanceof c)return k;Object.isExtensible(k)&&b(k);return a(k)})}
if(function(){if(!J||!Object.seal)return!1;try{var I=Object.seal({}),a=Object.seal({}),k=new J([[I,2],[a,3]]);if(k.get(I)!=2||k.get(a)!=3)return!1;k.delete(I);k.set(a,4);return!k.has(I)&&k.get(a)==4}catch(H){return!1}}())return J;
var P="$jscomp_hidden_"+Math.random();x("freeze");x("preventExtensions");x("seal");var p=0,t=function(I){this.JSC$6778_id_=(p+=Math.random()+1).toString();if(I){I=_.M(I);for(var a;!(a=I.next()).done;)a=a.value,this.set(a[0],a[1])}};
t.prototype.set=function(I,a){if(!m(I))throw Error("p");b(I);if(!Am(I,P))throw Error("q`"+I);I[P][this.JSC$6778_id_]=a;return this};
t.prototype.get=function(I){return m(I)&&Am(I,P)?I[P][this.JSC$6778_id_]:void 0};
t.prototype.has=function(I){return m(I)&&Am(I,P)&&Am(I[P],this.JSC$6778_id_)};
t.prototype.delete=function(I){return m(I)&&Am(I,P)&&Am(I[P],this.JSC$6778_id_)?delete I[P][this.JSC$6778_id_]:!1};
return t});
Eo("Map",function(J){if(function(){if(!J||typeof J!="function"||!J.prototype.entries||typeof Object.seal!="function")return!1;try{var t=Object.seal({x:4}),I=new J(_.M([[t,"s"]]));if(I.get(t)!="s"||I.size!=1||I.get({x:4})||I.set({x:4},"t")!=I||I.size!=2)return!1;var a=I.entries(),k=a.next();if(k.done||k.value[0]!=t||k.value[1]!="s")return!1;k=a.next();return k.done||k.value[0].x!=4||k.value[1]!="t"||!a.next().done?!1:!0}catch(H){return!1}}())return J;
var c=new WeakMap,m=function(t){this[0]={};this[1]=P();this.size=0;if(t){t=_.M(t);for(var I;!(I=t.next()).done;)I=I.value,this.set(I[0],I[1])}};
m.prototype.set=function(t,I){t=t===0?0:t;var a=b(this,t);a.list||(a.list=this[0][a.id]=[]);a.entry?a.entry.value=I:(a.entry={next:this[1],previous:this[1].previous,head:this[1],key:t,value:I},a.list.push(a.entry),this[1].previous.next=a.entry,this[1].previous=a.entry,this.size++);return this};
m.prototype.delete=function(t){t=b(this,t);return t.entry&&t.list?(t.list.splice(t.index,1),t.list.length||delete this[0][t.id],t.entry.previous.next=t.entry.next,t.entry.next.previous=t.entry.previous,t.entry.head=null,this.size--,!0):!1};
m.prototype.clear=function(){this[0]={};this[1]=this[1].previous=P();this.size=0};
m.prototype.has=function(t){return!!b(this,t).entry};
m.prototype.get=function(t){return(t=b(this,t).entry)&&t.value};
m.prototype.entries=function(){return x(this,function(t){return[t.key,t.value]})};
m.prototype.keys=function(){return x(this,function(t){return t.key})};
m.prototype.values=function(){return x(this,function(t){return t.value})};
m.prototype.forEach=function(t,I){for(var a=this.entries(),k;!(k=a.next()).done;)k=k.value,t.call(I,k[1],k[0],this)};
m.prototype[Symbol.iterator]=m.prototype.entries;var b=function(t,I){var a=I&&typeof I;a=="object"||a=="function"?c.has(I)?a=c.get(I):(a=""+ ++p,c.set(I,a)):a="p_"+I;var k=t[0][a];if(k&&Am(t[0],a))for(t=0;t<k.length;t++){var H=k[t];if(I!==I&&H.key!==H.key||I===H.key)return{id:a,list:k,index:t,entry:H}}return{id:a,list:k,index:-1,entry:void 0}},x=function(t,I){var a=t[1];
return c1R(function(){if(a){for(;a.head!=t[1];)a=a.previous;for(;a.next!=a.head;)return a=a.next,{done:!1,value:I(a)};a=null}return{done:!0,value:void 0}})},P=function(){var t={};
return t.previous=t.next=t.head=t},p=0;
return m});
Eo("Set",function(J){if(function(){if(!J||typeof J!="function"||!J.prototype.entries||typeof Object.seal!="function")return!1;try{var m=Object.seal({x:4}),b=new J(_.M([m]));if(!b.has(m)||b.size!=1||b.add(m)!=b||b.size!=1||b.add({x:4})!=b||b.size!=2)return!1;var x=b.entries(),P=x.next();if(P.done||P.value[0]!=m||P.value[1]!=m)return!1;P=x.next();return P.done||P.value[0]==m||P.value[0].x!=4||P.value[1]!=P.value[0]?!1:x.next().done}catch(p){return!1}}())return J;
var c=function(m){this.JSC$6792_map_=new Map;if(m){m=_.M(m);for(var b;!(b=m.next()).done;)this.add(b.value)}this.size=this.JSC$6792_map_.size};
c.prototype.add=function(m){m=m===0?0:m;this.JSC$6792_map_.set(m,m);this.size=this.JSC$6792_map_.size;return this};
c.prototype.delete=function(m){m=this.JSC$6792_map_.delete(m);this.size=this.JSC$6792_map_.size;return m};
c.prototype.clear=function(){this.JSC$6792_map_.clear();this.size=0};
c.prototype.has=function(m){return this.JSC$6792_map_.has(m)};
c.prototype.entries=function(){return this.JSC$6792_map_.entries()};
c.prototype.values=function(){return this.JSC$6792_map_.values()};
c.prototype.keys=c.prototype.values;c.prototype[Symbol.iterator]=c.prototype.values;c.prototype.forEach=function(m,b){var x=this;this.JSC$6792_map_.forEach(function(P){return m.call(b,P,P,x)})};
return c});
Eo("Math.log2",function(J){return J?J:function(c){return Math.log(c)/Math.LN2}});
Eo("Object.values",function(J){return J?J:function(c){var m=[],b;for(b in c)Am(c,b)&&m.push(c[b]);return m}});
Eo("Object.is",function(J){return J?J:function(c,m){return c===m?c!==0||1/c===1/m:c!==c&&m!==m}});
Eo("Array.prototype.includes",function(J){return J?J:function(c,m){var b=this;b instanceof String&&(b=String(b));var x=b.length;m=m||0;for(m<0&&(m=Math.max(m+x,0));m<x;m++){var P=b[m];if(P===c||Object.is(P,c))return!0}return!1}});
Eo("String.prototype.includes",function(J){return J?J:function(c,m){return ox(this,c,"includes").indexOf(c,m||0)!==-1}});
Eo("Array.from",function(J){return J?J:function(c,m,b){m=m!=null?m:function(t){return t};
var x=[],P=typeof Symbol!="undefined"&&Symbol.iterator&&c[Symbol.iterator];if(typeof P=="function"){c=P.call(c);for(var p=0;!(P=c.next()).done;)x.push(m.call(b,P.value,p++))}else for(P=c.length,p=0;p<P;p++)x.push(m.call(b,c[p],p));return x}});
Eo("Object.entries",function(J){return J?J:function(c){var m=[],b;for(b in c)Am(c,b)&&m.push([b,c[b]]);return m}});
Eo("Number.isFinite",function(J){return J?J:function(c){return typeof c!=="number"?!1:!isNaN(c)&&c!==Infinity&&c!==-Infinity}});
Eo("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
Eo("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
Eo("Number.isInteger",function(J){return J?J:function(c){return Number.isFinite(c)?c===Math.floor(c):!1}});
Eo("Number.isSafeInteger",function(J){return J?J:function(c){return Number.isInteger(c)&&Math.abs(c)<=Number.MAX_SAFE_INTEGER}});
Eo("String.prototype.endsWith",function(J){return J?J:function(c,m){var b=ox(this,c,"endsWith");m===void 0&&(m=b.length);m=Math.max(0,Math.min(m|0,b.length));for(var x=c.length;x>0&&m>0;)if(b[--m]!=c[--x])return!1;return x<=0}});
var TGe=function(J,c){J instanceof String&&(J+="");var m=0,b=!1,x={next:function(){if(!b&&m<J.length){var P=m++;return{value:c(P,J[P]),done:!1}}b=!0;return{done:!0,value:void 0}}};
x[Symbol.iterator]=function(){return x};
return x};
Eo("Array.prototype.entries",function(J){return J?J:function(){return TGe(this,function(c,m){return[c,m]})}});
Eo("Math.trunc",function(J){return J?J:function(c){c=Number(c);if(isNaN(c)||c===Infinity||c===-Infinity||c===0)return c;var m=Math.floor(Math.abs(c));return c<0?-m:m}});
Eo("Number.isNaN",function(J){return J?J:function(c){return typeof c==="number"&&isNaN(c)}});
Eo("Array.prototype.keys",function(J){return J?J:function(){return TGe(this,function(c){return c})}});
Eo("Array.prototype.values",function(J){return J?J:function(){return TGe(this,function(c,m){return m})}});
Eo("Array.prototype.fill",function(J){return J?J:function(c,m,b){var x=this.length||0;m<0&&(m=Math.max(0,x+m));if(b==null||b>x)b=x;b=Number(b);b<0&&(b=Math.max(0,x+b));for(m=Number(m||0);m<b;m++)this[m]=c;return this}});
var Qv=function(J){return J?J:Array.prototype.fill};
Eo("Int8Array.prototype.fill",Qv);Eo("Uint8Array.prototype.fill",Qv);Eo("Uint8ClampedArray.prototype.fill",Qv);Eo("Int16Array.prototype.fill",Qv);Eo("Uint16Array.prototype.fill",Qv);Eo("Int32Array.prototype.fill",Qv);Eo("Uint32Array.prototype.fill",Qv);Eo("Float32Array.prototype.fill",Qv);Eo("Float64Array.prototype.fill",Qv);
Eo("Object.fromEntries",function(J){return J?J:function(c){var m={};if(!(Symbol.iterator in c))throw new TypeError("r`"+c);c=c[Symbol.iterator].call(c);for(var b=c.next();!b.done;b=c.next()){b=b.value;if(Object(b)!==b)throw new TypeError("s");m[b[0]]=b[1]}return m}});
Eo("String.prototype.replaceAll",function(J){return J?J:function(c,m){if(c instanceof RegExp&&!c.global)throw new TypeError("t");return c instanceof RegExp?this.replace(c,m):this.replace(new RegExp(String(c).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),m)}});
Eo("Object.getOwnPropertySymbols",function(J){return J?J:function(){return[]}});
Eo("String.prototype.repeat",function(J){return J?J:function(c){var m=ox(this,null,"repeat");if(c<0||c>1342177279)throw new RangeError("u");c|=0;for(var b="";c;)if(c&1&&(b+=m),c>>>=1)m+=m;return b}});
Eo("Array.prototype.findIndex",function(J){return J?J:function(c,m){return nkT(this,c,m).i}});
Eo("Array.prototype.flatMap",function(J){return J?J:function(c,m){var b=[];Array.prototype.forEach.call(this,function(x,P){x=c.call(m,x,P,this);Array.isArray(x)?b.push.apply(b,x):b.push(x)});
return b}});
Eo("String.prototype.codePointAt",function(J){return J?J:function(c){var m=ox(this,null,"codePointAt"),b=m.length;c=Number(c)||0;if(c>=0&&c<b){c|=0;var x=m.charCodeAt(c);if(x<55296||x>56319||c+1===b)return x;c=m.charCodeAt(c+1);return c<56320||c>57343?x:(x-55296)*1024+c+9216}}});
Eo("String.fromCodePoint",function(J){return J?J:function(c){for(var m="",b=0;b<arguments.length;b++){var x=Number(arguments[b]);if(x<0||x>1114111||x!==Math.floor(x))throw new RangeError("v`"+x);x<=65535?m+=String.fromCharCode(x):(x-=65536,m+=String.fromCharCode(x>>>10&1023|55296),m+=String.fromCharCode(x&1023|56320))}return m}});
Eo("String.prototype.padStart",function(J){return J?J:function(c,m){var b=ox(this,null,"padStart");c-=b.length;m=m!==void 0?String(m):" ";return(c>0&&m?m.repeat(Math.ceil(c/m.length)).substring(0,c):"")+b}});
Eo("Promise.prototype.finally",function(J){return J?J:function(c){return this.then(function(m){return Promise.resolve(c()).then(function(){return m})},function(m){return Promise.resolve(c()).then(function(){throw m;
})})}});
Eo("Math.imul",function(J){return J?J:function(c,m){c=Number(c);m=Number(m);var b=c&65535,x=m&65535;return b*x+((c>>>16&65535)*x+b*(m>>>16&65535)<<16>>>0)|0}});
Eo("Object.hasOwn",function(J){return J?J:function(c,m){return Object.prototype.hasOwnProperty.call(c,m)}});
Eo("Math.sign",function(J){return J?J:function(c){c=Number(c);return c===0||isNaN(c)?c:c>0?1:-1}});
Eo("Array.prototype.flat",function(J){return J?J:function(c){c=c===void 0?1:c;var m=[];Array.prototype.forEach.call(this,function(b){Array.isArray(b)&&c>0?(b=Array.prototype.flat.call(b,c-1),m.push.apply(m,b)):m.push(b)});
return m}});
Eo("String.raw",function(J){return J?J:function(c,m){if(c==null)throw new TypeError("w");for(var b=c.raw,x=b.length,P="",p=0;p<x;++p)P+=b[p],p+1<x&&p+1<arguments.length&&(P+=String(arguments[p+1]));return P}});
Eo("Reflect.ownKeys",function(J){return J?J:function(c){var m=[],b=Object.getOwnPropertyNames(c);c=Object.getOwnPropertySymbols(c);for(var x=0;x<b.length;x++)(b[x].substring(0,14)=="jscomp_symbol_"?c:m).push(b[x]);return m.concat(c)}});
Eo("Object.getOwnPropertyDescriptors",function(J){return J?J:function(c){for(var m={},b=Reflect.ownKeys(c),x=0;x<b.length;x++)m[b[x]]=Object.getOwnPropertyDescriptor(c,b[x]);return m}});
Eo("WeakSet",function(J){if(function(){if(!J||!Object.seal)return!1;try{var m=Object.seal({}),b=Object.seal({}),x=new J([m]);if(!x.has(m)||x.has(b))return!1;x.delete(m);x.add(b);return!x.has(m)&&x.has(b)}catch(P){return!1}}())return J;
var c=function(m){this.JSC$6799_map_=new WeakMap;if(m){m=_.M(m);for(var b;!(b=m.next()).done;)this.add(b.value)}};
c.prototype.add=function(m){this.JSC$6799_map_.set(m,!0);return this};
c.prototype.has=function(m){return this.JSC$6799_map_.has(m)};
c.prototype.delete=function(m){return this.JSC$6799_map_.delete(m)};
return c});
Eo("Promise.allSettled",function(J){function c(b){return{status:"fulfilled",value:b}}
function m(b){return{status:"rejected",reason:b}}
return J?J:function(b){var x=this;b=Array.from(b,function(P){return x.resolve(P).then(c,m)});
return x.all(b)}});
Eo("Number.parseInt",function(J){return J||parseInt});
_._DumpException=window._DumpException||function(J){throw J;};
window._DumpException=_._DumpException;var wlu,r1T,eL,jL,sq2,Lbm,DtR,Wbu,QR,zUe;wlu=wlu||{};_.mo=this||self;_.jD=function(J,c,m){J=J.split(".");m=m||_.mo;for(var b;J.length&&(b=J.shift());)J.length||c===void 0?m[b]&&m[b]!==Object.prototype[b]?m=m[b]:m=m[b]={}:m[b]=c};
r1T=function(J){var c=_.$y("WIZ_global_data.oxN3nb");J=c&&c[J];return J!=null?J:!1};
eL=_.mo._F_toggles||[];jL=function(){};
jL.get=function(){return null};
_.$y=function(J,c){J=J.split(".");c=c||_.mo;for(var m=0;m<J.length;m++)if(c=c[J[m]],c==null)return null;return c};
_.F1=function(J){J.instance_=void 0;J.getInstance=function(){return J.instance_?J.instance_:J.instance_=new J}};
_.IF=function(J){var c=typeof J;return c!="object"?c:J?Array.isArray(J)?"array":c:"null"};
_.yJ=function(J){var c=_.IF(J);return c=="array"||c=="object"&&typeof J.length=="number"};
_.cB=function(J){var c=typeof J;return c=="object"&&J!=null||c=="function"};
_.mj=function(J){return Object.prototype.hasOwnProperty.call(J,sq2)&&J[sq2]||(J[sq2]=++Lbm)};
sq2="closure_uid_"+(Math.random()*1E9>>>0);Lbm=0;DtR=function(J,c,m){return J.call.apply(J.bind,arguments)};
Wbu=function(J,c,m){if(!J)throw Error();if(arguments.length>2){var b=Array.prototype.slice.call(arguments,2);return function(){var x=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(x,b);return J.apply(c,x)}}return function(){return J.apply(c,arguments)}};
_.Wa=function(J,c,m){_.Wa=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?DtR:Wbu;return _.Wa.apply(null,arguments)};
_.k2=function(J,c){var m=Array.prototype.slice.call(arguments,1);return function(){var b=m.slice();b.push.apply(b,arguments);return J.apply(this,b)}};
_.lc=function(){return Date.now()};
QR=function(J){return J};
_.yv=function(J,c){function m(){}
m.prototype=c.prototype;J.superClass_=c.prototype;J.prototype=new m;J.prototype.constructor=J;J.base=function(b,x,P){for(var p=Array(arguments.length-2),t=2;t<arguments.length;t++)p[t-2]=arguments[t];return c.prototype[x].apply(b,p)}};
zUe=function(J){return J};var uKq,f$T;_.O=function(J,c,m,b){var x=arguments.length,P=x<3?c:b===null?b=Object.getOwnPropertyDescriptor(c,m):b,p;if(Reflect&&typeof Reflect==="object"&&typeof Reflect.decorate==="function")P=Reflect.decorate(J,c,m,b);else for(var t=J.length-1;t>=0;t--)if(p=J[t])P=(x<3?p(P):x>3?p(c,m,P):p(c,m))||P;return x>3&&P&&Object.defineProperty(c,m,P),P};
_.R=function(J,c){if(Reflect&&typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(J,c)};
uKq=function(J,c){if(c!==null&&c!==void 0){if(typeof c!=="object"&&typeof c!=="function")throw new TypeError("x");if(m===void 0){if(!Symbol.dispose)throw new TypeError("z");var m=c[Symbol.dispose]}if(typeof m!=="function")throw new TypeError("A");J.stack.push({value:c,dispose:m,async:!1})}return c};
f$T=function(J){function c(P){J.error=J.hasError?new SuppressedError(P,J.error,"An error was suppressed during disposal."):P;J.hasError=!0}
function m(){for(;b=J.stack.pop();)try{if(!b.async&&x===1)return x=0,J.stack.push(b),Promise.resolve().then(m);if(b.dispose){var P=b.dispose.call(b.value);if(b.async)return x|=2,Promise.resolve(P).then(m,function(p){c(p);return m()})}else x|=1}catch(p){c(p)}if(x===1)return J.hasError?Promise.reject(J.error):Promise.resolve();
if(J.hasError)throw J.error;}
var b,x=0;m()};_.yv(_.Jq,Error);_.Jq.prototype.name="CustomError";var YNr;var Xlm=void 0,ZT2,qNr=typeof TextDecoder!=="undefined",bGR,mfo=typeof String.prototype.isWellFormed==="function",cqQ=typeof TextEncoder!=="undefined";var Utu;_.s7=function(J){for(var c=[],m=0,b=0;b<J.length;b++){var x=J.charCodeAt(b);x<128?c[m++]=x:(x<2048?c[m++]=x>>6|192:((x&64512)==55296&&b+1<J.length&&(J.charCodeAt(b+1)&64512)==56320?(x=65536+((x&1023)<<10)+(J.charCodeAt(++b)&1023),c[m++]=x>>18|240,c[m++]=x>>12&63|128):c[m++]=x>>12|224,c[m++]=x>>6&63|128),c[m++]=x&63|128)}return c};
Utu=function(J){for(var c=[],m=0,b=0;m<J.length;){var x=J[m++];if(x<128)c[b++]=String.fromCharCode(x);else if(x>191&&x<224){var P=J[m++];c[b++]=String.fromCharCode((x&31)<<6|P&63)}else if(x>239&&x<365){P=J[m++];var p=J[m++],t=J[m++];x=((x&7)<<18|(P&63)<<12|(p&63)<<6|t&63)-65536;c[b++]=String.fromCharCode(55296+(x>>10));c[b++]=String.fromCharCode(56320+(x&1023))}else P=J[m++],p=J[m++],c[b++]=String.fromCharCode((x&15)<<12|(P&63)<<6|p&63)}return c.join("")};var CG=String.prototype.trim?function(J){return J.trim()}:function(J){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(J)[1]},SNQ=/&/g,hUf=/</g,dt3=/>/g,$tu=/"/g,GJf=/'/g,EkG=/\x00/g,vkm=/[\x00&<>"']/;var OTD=!!(eL[0]>>15&1),A13=!!(eL[0]>>16&1),RUq=!!(eL[0]&2),okt=!!(eL[0]&4),Qqu=!!(eL[0]&16);var iQ=OTD?A13:r1T(610401301),eU2=OTD?RUq:r1T(513659523),jqr=OTD?okt:r1T(568333945),NzT=OTD?Qqu:r1T(1331761403);var wT,FbD=_.mo.navigator;wT=FbD?FbD.userAgentData||null:null;var QF;_.vr=function(J,c){return Array.prototype.indexOf.call(J,c,void 0)};
_.vG=function(J,c,m){Array.prototype.forEach.call(J,c,m)};
_.BH=function(J,c,m){return Array.prototype.filter.call(J,c,m)};
_.Wm=function(J,c,m){return Array.prototype.map.call(J,c,m)};
QF=function(J,c,m){return Array.prototype.some.call(J,c,m)};
_.ysQ=function(J,c,m){return Array.prototype.every.call(J,c,m)};var gx=function(J){gx[" "](J);return J};
gx[" "]=function(){};
var Y0=function(J,c){try{return gx(J[c]),!0}catch(m){}return!1},wG3=function(J,c,m,b){b=b?b(c):c;
return Object.prototype.hasOwnProperty.call(J,b)?J[b]:J[b]=m(c)};var l$2,Q4,y1e,BGu,JQ3,cQe,bCf,mSf,bRm,xS2,Hpq,P5Q,MNf,IBf,KJQ,C5T;_.DQu=function(){return _.mo.navigator||null};
l$2=Wr();_.JK=PQT();Q4=LG("Edge");y1e=Q4||_.JK;_.ce=LG("Gecko")&&!(_.IR(_.Hr(),"WebKit")&&!LG("Edge"))&&!(LG("Trident")||LG("MSIE"))&&!LG("Edge");_.ms=_.IR(_.Hr(),"WebKit")&&!LG("Edge");BGu=_.ms&&LG("Mobile");_.gku=_.a3m();JQ3=_.kDf();cQe=(Um()?wT.platform==="Linux":LG("Linux"))||_.HGG();bCf=_.Ko2();mSf=CQR();bRm=LG("iPad");xS2=LG("iPod");_.VNr=_.S2();Hpq=_.IR(_.Hr(),"KaiOS");P5Q=function(){var J=_.mo.document;return J?J.documentMode:void 0};
a:{var p1f="",Ncu=function(){var J=_.Hr();if(_.ce)return/rv:([^\);]+)(\)|;)/.exec(J);if(Q4)return/Edge\/([\d\.]+)/.exec(J);if(_.JK)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(J);if(_.ms)return/WebKit\/(\S+)/.exec(J);if(l$2)return/(?:Version)[ \/]?(\S+)/.exec(J)}();
Ncu&&(p1f=Ncu?Ncu[1]:"");if(_.JK){var tNJ=P5Q();if(tNJ!=null&&tNJ>parseFloat(p1f)){MNf=String(tNJ);break a}}MNf=p1f}IBf=MNf;KJQ={};_.b0=function(J){return wG3(KJQ,J,function(){return _.aR(IBf,J)>=0})};
if(_.mo.document&&_.JK){var aBo=P5Q();C5T=aBo?aBo:parseInt(IBf,10)||void 0}else C5T=void 0;_.kAT=C5T;var WyJ,zmT,HRT;_.xd=uQ();WyJ=CQR()||LG("iPod");zmT=LG("iPad");HRT=_.pr2();_.Va=_.Xe();_.UO=_.qf()&&!_.S2();var iRr,Pe,e$Q,Jgm,Tcq,nzD;iRr={};Pe=null;e$Q=_.ce||_.ms||typeof _.mo.btoa=="function";_.yR=function(J,c){c===void 0&&(c=0);nzD();c=iRr[c];for(var m=Array(Math.floor(J.length/3)),b=c[64]||"",x=0,P=0;x<J.length-2;x+=3){var p=J[x],t=J[x+1],I=J[x+2],a=c[p>>2];p=c[(p&3)<<4|t>>4];t=c[(t&15)<<2|I>>6];I=c[I&63];m[P++]=a+p+t+I}a=0;I=b;switch(J.length-x){case 2:a=J[x+1],I=c[(a&15)<<2]||b;case 1:J=J[x],m[P]=c[J>>2]+c[(J&3)<<4|a>>4]+I+b}return m.join("")};
Jgm=function(J){var c="";Tcq(J,function(m){c+=String.fromCharCode(m)});
return c};
_.lzD=function(J){var c=[];Tcq(J,function(m){c.push(m)});
return c};
_.I2=function(J){var c=J.length,m=c*3/4;m%3?m=Math.floor(m):_.tq("=.",J[c-1])&&(m=_.tq("=.",J[c-2])?m-2:m-1);var b=new Uint8Array(m),x=0;Tcq(J,function(P){b[x++]=P});
return x!==m?b.subarray(0,x):b};
Tcq=function(J,c){function m(I){for(;b<J.length;){var a=J.charAt(b++),k=Pe[a];if(k!=null)return k;if(!_.Mf(a))throw Error("E`"+a);}return I}
nzD();for(var b=0;;){var x=m(-1),P=m(0),p=m(64),t=m(64);if(t===64&&x===-1)break;c(x<<2|P>>4);p!=64&&(c(P<<4&240|p>>2),t!=64&&c(p<<6&192|t))}};
nzD=function(){if(!Pe){Pe={};for(var J="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),c=["+/=","+/","-_=","-_.","-_"],m=0;m<5;m++){var b=J.concat(c[m].split(""));iRr[m]=b;for(var x=0;x<b.length;x++){var P=b[x];Pe[P]===void 0&&(Pe[P]=x)}}}};var hum=typeof Uint8Array!=="undefined",zuQ=!_.JK&&typeof btoa==="function",ueR=/[-_.]/g,Dfo={"-":"+",_:"/",".":"="},h8={};var Ua,rQ2;Ua=function(J,c){if(c!==h8)throw Error("G");this.JSC$6830_value_=J;if(J!=null&&J.length===0)throw Error("F");};
_.dL=function(){return w1o||(w1o=new Ua(null,h8))};
rQ2=function(J){return new Uint8Array(Z2(J)||0)};
Ua.prototype.isEmpty=function(){return this.JSC$6830_value_==null};
Ua.prototype.sizeBytes=function(){var J=Z2(this);return J?J.length:0};
var Z2=function(J){if(h8!==h8)throw Error("G");var c=J.JSC$6830_value_;c=c==null||hum&&c!=null&&c instanceof Uint8Array?c:typeof c==="string"?f3m(c):null;return c==null?c:J.JSC$6830_value_=c},w1o;var XrR=void 0;var rL=typeof Symbol==="function"&&typeof Symbol()==="symbol",sft=nQ("jas",void 0,!0),RF=nQ(void 0,"0di"),Ww=nQ(void 0,"1oa"),eh=nQ(void 0,Symbol()),XBm=nQ(void 0,"0ub"),qa2=nQ(void 0,"0ubs"),hoD=nQ(void 0,"0ubsb"),e_m=nQ(void 0,"0actk"),vu=nQ("m_m","messagePrototypeMarker",!0),vZu=nQ(void 0,"vps"),u$T=nQ();var qmJ,ZGr,iR,LJu;qmJ={internalArrayState:{value:0,configurable:!0,writable:!0,enumerable:!1}};ZGr=Object.defineProperties;_.sa=rL?sft:"internalArrayState";LJu=[];WB(LJu,7);iR=Object.freeze(LJu);var Af={},YZ={},DSf=function(J,c,m){this.iterable=J;this.mapper=c;this.thisArg=m};
DSf.prototype.next=function(){var J=this.iterable.next();J.done||(J.value=this.mapper.call(this.thisArg,J.value));return J};
DSf.prototype[Symbol.iterator]=function(){return this};
var WJo=Object.freeze({}),Ea={};_.ztQ=R2(function(J){return J!==null&&J!==void 0});var vtR=R2(function(J){return typeof J==="number"}),EtJ=R2(function(J){return typeof J==="string"}),OGQ=R2(function(J){return typeof J==="boolean"}),uQe=R2(function(J){return J!=null&&typeof J==="object"&&typeof J.then==="function"}),FYR=R2(function(J){return typeof J==="function"}),xB=R2(function(J){return!!J&&(typeof J==="object"||typeof J==="function")});var e6=typeof _.mo.BigInt==="function"&&typeof _.mo.BigInt(0)==="bigint";var hf=R2(function(J){return e6?J>=fB2&&J<=YCm:J[0]==="-"?Aq3(J,X1f):Aq3(J,ZRQ)}),X1f=Number.MIN_SAFE_INTEGER.toString(),fB2=e6?BigInt(Number.MIN_SAFE_INTEGER):void 0,ZRQ=Number.MAX_SAFE_INTEGER.toString(),YCm=e6?BigInt(Number.MAX_SAFE_INTEGER):void 0;var qCT=typeof Uint8Array.prototype.slice==="function",lC=0,yQ=0,j9;var fr,qR,kp,U5,l3t;fr=typeof BigInt==="function"?BigInt.asIntN:void 0;_.Sh=typeof BigInt==="function"?BigInt.asUintN:void 0;qR=Number.isSafeInteger;kp=Number.isFinite;U5=Math.trunc;l3t=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var OQR={};var Wjr={},USe=function(){try{var J=function(){return bTm(Map,[],this.constructor)};
_.D(J,Map);gx(new J);return!1}catch(c){return!0}}(),MC=function(){this.JSC$6850_map_=new Map};
_.V=MC.prototype;_.V.get=function(J){return this.JSC$6850_map_.get(J)};
_.V.set=function(J,c){this.JSC$6850_map_.set(J,c);this.size=this.JSC$6850_map_.size;return this};
_.V.delete=function(J){J=this.JSC$6850_map_.delete(J);this.size=this.JSC$6850_map_.size;return J};
_.V.clear=function(){this.JSC$6850_map_.clear();this.size=this.JSC$6850_map_.size};
_.V.has=function(J){return this.JSC$6850_map_.has(J)};
_.V.entries=function(){return this.JSC$6850_map_.entries()};
_.V.keys=function(){return this.JSC$6850_map_.keys()};
_.V.values=function(){return this.JSC$6850_map_.values()};
_.V.forEach=function(J,c){return this.JSC$6850_map_.forEach(J,c)};
MC.prototype[Symbol.iterator]=function(){return this.entries()};
var gR=function(){if(USe)return Object.setPrototypeOf(MC.prototype,Map.prototype),Object.defineProperties(MC.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),MC;var J=function(){return bTm(Map,[],this.constructor)};
_.D(J,Map);return J}(),oF=function(J,c,m,b){m=m===void 0?wBQ:m;
b=b===void 0?wBQ:b;var x=gR.call(this)||this;x.arrayState=J[_.sa]|0;x.valueCtor=c;x.keyToApi=m;x.valueToApi=x.valueCtor?s2m:b;for(var P=0;P<J.length;P++){var p=J[P],t=m(p[0],!1,!0),I=p[1];c?I===void 0&&(I=null):I=b(p[1],!1,!0,void 0,void 0,x.arrayState);gR.prototype.set.call(x,t,I)}return x};
_.D(oF,gR);var SC2=function(J){if(J.arrayState&2)throw Error("K");};
_.V=oF.prototype;_.V.clear=function(){SC2(this);gR.prototype.clear.call(this)};
_.V.delete=function(J){SC2(this);return gR.prototype.delete.call(this,this.keyToApi(J,!0,!1))};
_.V.entries=function(){if(this.valueCtor){var J=gR.prototype.keys.call(this);J=new DSf(J,Lj2,this)}else J=gR.prototype.entries.call(this);return J};
_.V.values=function(){if(this.valueCtor){var J=gR.prototype.keys.call(this);J=new DSf(J,oF.prototype.get,this)}else J=gR.prototype.values.call(this);return J};
_.V.forEach=function(J,c){this.valueCtor?gR.prototype.forEach.call(this,function(m,b,x){J.call(c,x.get(b),b,x)}):gR.prototype.forEach.call(this,J,c)};
_.V.set=function(J,c){SC2(this);J=this.keyToApi(J,!0,!1);return J==null?this:c==null?(gR.prototype.delete.call(this,J),this):gR.prototype.set.call(this,J,this.valueToApi(c,!0,!0,this.valueCtor,!1,this.arrayState))};
_.V.has=function(J){return gR.prototype.has.call(this,this.keyToApi(J,!1,!1))};
_.V.get=function(J){J=this.keyToApi(J,!1,!1);var c=gR.prototype.get.call(this,J);if(c!==void 0){var m=this.valueCtor;return m?(m=this.valueToApi(c,!1,!0,m,this.callToMutableOnAccess,this.arrayState),m!==c&&gR.prototype.set.call(this,J,m),m):c}};
oF.prototype[Symbol.iterator]=function(){return this.entries()};
oF.prototype.toJSON=void 0;var Due;var h_Q=function(){},Fs=function(J,c){for(var m in J)!isNaN(m)&&c(J,+m,J[m])},duQ=function(J){var c=new h_Q;
Fs(J,function(m,b,x){c[b]=xp(x)});
c.reviveUnknownFields=J.reviveUnknownFields;return c},f_Q={reviveIntoImmutable:!0};var Sau;var A82,R_u;var htq,r6,K4,i3,dSG,i0,kH,$SR,GAo,r9,Ezq,sS,We,z8;htq=_.F$(0);_.p0={};_.NC=function(J,c,m,b,x){c=r6(J.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,c,m,x);if(c!==null||b&&J.noLegacyNull!==YZ)return c};
r6=function(J,c,m,b){if(c===-1)return null;var x=c+(m?0:-1),P=J.length-1;if(!(P<1+(m?0:-1))){if(x>=P){var p=J[P];if(p!=null&&typeof p==="object"&&p.constructor===Object){m=p[c];var t=!0}else if(x===P)m=p;else return}else m=J[x];if(b&&m!=null){b=b(m);if(b==null)return b;if(!Object.is(b,m))return t?p[c]=b:J[x]=b,b}return m}};
_.mL=function(J,c,m,b){CU(J);var x=J.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;Hw(x,x[_.sa]|0,c,m,b);return J};
_.tK=function(J,c,m){J=J.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return zR(J,J[_.sa]|0,c,m)!==void 0};
_.I5=function(J,c,m,b){var x=J.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return zR(x,x[_.sa]|0,c,i3(J,b,m))!==void 0};
_.ca=function(J){return J===WJo?2:4};
_.K0=function(J,c){J=_.NC(J,c,void 0,void 0,JfD);return J==null?_.dL():J};
K4=function(J,c,m,b){CU(J);var x=J.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,P=x[_.sa]|0;if(b==null){var p=mRT(x);if(bru(p,x,P,m)===c)p.set(m,0);else return J}else P=xRo(x,P,m,c);Hw(x,P,c,b);return J};
_.C0=function(J,c,m,b){var x=J[_.sa]|0,P=Oa(x);x=xRo(J,x,m,c,P);Hw(J,x,c,b,P)};
i3=function(J,c,m){return _.a5(J,c)===m?m:-1};
_.a5=function(J,c){J=J.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return bru(mRT(J),J,void 0,c,void 0)};
dSG=function(J,c,m){var b=J[_.sa]|0,x=Oa(b),P=r6(J,m,x);if(P!=null&&P[vu]===Af){if(!Z_(P))return N0(P),P.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var p=P.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows}else Array.isArray(P)&&(p=P);if(p){var t=p[_.sa]|0;t&2&&(p=xl(p,t))}p=bR(p,c,!0);p!==P&&Hw(J,b,m,p,x);return p};
_.JU=function(J,c,m,b){var x=J.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,P=x[_.sa]|0;c=zR(x,P,c,m,b);if(c==null)return c;P=x[_.sa]|0;if(!Z_(J,P)){var p=r8G(c);p!==c&&(N0(J)&&(x=J.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,P=x[_.sa]|0),c=p,P=Hw(x,P,m,c,b),a_(x,P))}return c};
_.Jy=function(J,c,m,b){var x=J.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return Vh2(J,x,x[_.sa]|0,c,m,b,!1,!0)};
_.m_=function(J,c,m,b){m=P1Q(m);_.mL(J,c,m,b);m&&!Z_(m)&&a_(J.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return J};
_.bs=function(J,c,m,b){b=P1Q(b);K4(J,c,m,b);b&&!Z_(b)&&a_(J.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return J};
i0=function(J,c,m){CU(J);var b=J.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,x=b[_.sa]|0;if(m==null)return Hw(b,x,c),J;for(var P=m===iR?7:m[_.sa]|0,p=P,t=w6(P),I=t||Object.isFrozen(m),a=!0,k=!0,H=0;H<m.length;H++){var T=m[H];t||(T=Z_(T),a&&(a=!T),k&&(k=T))}t||(P=a?13:5,P=k?P&-4097:P|4096);I&&P===p||(m=xp(m),p=0,P=nU(P,x));P!==p&&WB(m,P);x=Hw(b,x,c,m);2&P||!(4096&P||16&P)||a_(b,x);return J};
kH=function(J,c,m,b){puJ(J,c,m,b);return J};
$SR=function(J,c,m){puJ(J,c,n0,void 0,m,1,!0);return J};
_.T8=function(J,c,m){J=_.NC(J,c,void 0,m);c=typeof J;J=J==null?J:c==="bigint"?_.F$((0,_.Sh)(64,J)):_.nr(J)?c==="string"?_.I_m(J):_.NLG(J):void 0;return J};
_.w9=function(J,c){var m=m===void 0?!1:m;var b;return(b=_.FoQ(_.NC(J,c)))!=null?b:m};
_.m5=function(J,c,m){m=m===void 0?0:m;var b;return(b=_.Wu(_.NC(J,c)))!=null?b:m};
GAo=function(J,c){var m=m===void 0?0:m;J=_.z4(_.NC(J,c));return J!=null?J:m};
r9=function(J,c,m){m=m===void 0?htq:m;var b;return(b=_.a_J(_.NC(J,c)))!=null?b:m};
Ezq=function(J){var c=c===void 0?htq:c;var m;return(m=_.T8(J,23))!=null?m:c};
sS=function(J,c){var m=m===void 0?0:m;var b;return(b=_.NC(J,c,void 0,void 0,_.tf))!=null?b:m};
_.L0=function(J,c,m,b){m=m===void 0?"":m;var x;return(x=_.E5(_.NC(J,c,b)))!=null?x:m};
_.Db=function(J,c){var m=m===void 0?0:m;var b;return(b=_.Lr(_.NC(J,c)))!=null?b:m};
We=function(J,c){var m=m===void 0?"0":m;J=CCu(_.NC(J,c),!0);return J!=null?J:m};
z8=function(J,c,m){return _.L0(J,i3(J,m,c))};
_.u0=function(J,c,m,b){return _.JU(J,c,i3(J,b,m),void 0)};
_.Ha=function(J,c){return _.E5(_.NC(J,c,void 0,_.p0))};
_.Pa=function(J,c,m){return _.mL(J,c,jRr(m))};
_.WS=function(J,c,m){return _.LU(J,c,jRr(m),!1)};
_.f0=function(J,c,m){return _.mL(J,c,_.De(m))};
_.TB=function(J,c,m){return _.mL(J,c,Ze(m))};
_.aw=function(J,c,m){return _.mL(J,c,$p(m))};
_.eQ=function(J,c,m,b){return _.LU(J,c,$p(m),"",b)};
_.c4=function(J,c,m){return _.mL(J,c,m==null?m:_.s5(m))};
_.Yd=function(J,c,m){return _.LU(J,c,m==null?m:_.s5(m),0)};var uR=function(J,c,m){this.buffer=J;if(m&&!c)throw Error();this.JSC$6862_isImmutable=c};var vzQ=function(J,c,m,b){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$6865_start_=0;this.init(J,c,m,b)},Xy,AQq,Rte,Qf3,uso,OR2;
_.V=vzQ.prototype;_.V.init=function(J,c,m,b){var x=b===void 0?{}:b;b=x.aliasBytesFields===void 0?!1:x.aliasBytesFields;x=x.treatNewDataAsImmutable===void 0?!1:x.treatNewDataAsImmutable;this.aliasBytesFields=b;this.treatNewDataAsImmutable=x;J&&(J=NR3(J,this.treatNewDataAsImmutable),this.bytes_=J.buffer,this.bytesAreImmutable_=J.JSC$6862_isImmutable,this.JSC$6865_start_=c||0,this.end_=m!==void 0?this.JSC$6865_start_+m:this.bytes_.length,this.cursor_=this.JSC$6865_start_)};
_.V.free=function(){this.clear();OR2.length<100&&OR2.push(this)};
_.V.clear=function(){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$6865_start_=0;this.aliasBytesFields=!1};
_.V.reset=function(){this.cursor_=this.JSC$6865_start_};
_.V.atEnd=function(){return this.cursor_==this.end_};
_.Zb=function(J,c){var m=0,b=0,x=0,P=J.bytes_,p=J.cursor_;do{var t=P[p++];m|=(t&127)<<x;x+=7}while(x<32&&t&128);x>32&&(b|=(t&127)>>4);for(x=3;x<32&&t&128;x+=7)t=P[p++],b|=(t&127)<<x;Xy(J,p);if(t<128)return c(m>>>0,b>>>0);throw Error("X");};
Xy=function(J,c){J.cursor_=c;if(c>J.end_)throw Error("Y`"+c+"`"+J.end_);};
_.qC=function(J){var c=J.bytes_,m=J.cursor_,b=c[m++],x=b&127;if(b&128&&(b=c[m++],x|=(b&127)<<7,b&128&&(b=c[m++],x|=(b&127)<<14,b&128&&(b=c[m++],x|=(b&127)<<21,b&128&&(b=c[m++],x|=b<<28,b&128&&c[m++]&128&&c[m++]&128&&c[m++]&128&&c[m++]&128&&c[m++]&128)))))throw Error("X");Xy(J,m);return x};
_.US=function(J){var c=J.bytes_,m=J.cursor_,b=c[m],x=c[m+1],P=c[m+2];c=c[m+3];Xy(J,J.cursor_+4);return(b<<0|x<<8|P<<16|c<<24)>>>0};
AQq=function(J){var c=_.US(J);J=_.US(J);return QRu(c,J)};
Rte=function(J){var c=_.US(J),m=_.US(J);J=(m>>31)*2+1;var b=m>>>20&2047;c=4294967296*(m&1048575)+c;return b==2047?c?NaN:J*Infinity:b==0?J*4.9E-324*c:J*Math.pow(2,b-1075)*(c+4503599627370496)};
_.ozu=function(J){for(var c=0,m=J.cursor_,b=m+10,x=J.bytes_;m<b;){var P=x[m++];c|=P;if((P&128)===0)return Xy(J,m),!!(c&127)}throw Error("X");};
Qf3=function(J,c){if(c<0)throw Error("Z`"+c);var m=J.cursor_,b=m+c;if(b>J.end_)throw Error("Y`"+(J.end_-m)+"`"+c);J.cursor_=b;return m};
uso=function(J,c){if(c==0)return _.dL();var m=Qf3(J,c);J.aliasBytesFields&&J.bytesAreImmutable_?m=J.bytes_.subarray(m,m+c):(J=J.bytes_,c=m+c,m=m===c?new Uint8Array(0):qCT?J.slice(m,c):new Uint8Array(J.subarray(m,c)));return m.length==0?_.dL():new Ua(m,h8)};
OR2=[];var jfm=function(J,c,m,b){if(OR2.length){var x=OR2.pop();x.init(J,c,m,b);J=x}else J=new vzQ(J,c,m,b);this.decoder_=J;this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1;ett(this,b)},ett=function(J,c){c=c===void 0?{}:c;
J.discardUnknownFields=c.discardUnknownFields===void 0?!1:c.discardUnknownFields},XuJ=function(J,c,m,b){if(FJm.length){var x=FJm.pop();
ett(x,b);x.decoder_.init(J,c,m,b);return x}return new jfm(J,c,m,b)},WSR,GR,lBT,FJm;
jfm.prototype.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=-1;FJm.length<100&&FJm.push(this)};
jfm.prototype.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1};
WSR=function(J){if(J.decoder_.atEnd())return!1;J.fieldCursor_=J.decoder_.cursor_;var c=_.qC(J.decoder_)>>>0,m=c>>>3;c&=7;if(!(c>=0&&c<=5))throw Error("T`"+c+"`"+J.fieldCursor_);if(m<1)throw Error("U`"+m+"`"+J.fieldCursor_);J.nextField_=m;J.nextWireType_=c;return!0};
GR=function(J){switch(J.nextWireType_){case 0:J.nextWireType_!=0?GR(J):_.ozu(J.decoder_);break;case 1:J=J.decoder_;Xy(J,J.cursor_+8);break;case 2:if(J.nextWireType_!=2)GR(J);else{var c=_.qC(J.decoder_)>>>0;J=J.decoder_;Xy(J,J.cursor_+c)}break;case 5:J=J.decoder_;Xy(J,J.cursor_+4);break;case 3:c=J.nextField_;do{if(!WSR(J))throw Error("V");if(J.nextWireType_==4){if(J.nextField_!=c)throw Error("W");break}GR(J)}while(1);break;default:throw Error("T`"+J.nextWireType_+"`"+J.fieldCursor_);}};
lBT=function(J,c,m){var b=J.decoder_.end_,x=_.qC(J.decoder_)>>>0,P=J.decoder_.cursor_+x,p=P-b;p<=0&&(J.decoder_.end_=P,m(c,J,void 0,void 0,void 0),p=P-J.decoder_.cursor_);if(p)throw Error("S`"+x+"`"+(x-p));J.decoder_.cursor_=P;J.decoder_.end_=b};
_.yQ3=function(J){var c=_.qC(J.decoder_)>>>0;J=J.decoder_;var m=Qf3(J,c);J=J.bytes_;if(qNr){var b=J,x;(x=ZT2)||(x=ZT2=new TextDecoder("utf-8",{fatal:!0}));c=m+c;b=m===0&&c===b.length?b:b.subarray(m,c);try{var P=x.decode(b)}catch(a){if(Xlm===void 0){try{x.decode(new Uint8Array([128]))}catch(k){}try{x.decode(new Uint8Array([97])),Xlm=!0}catch(k){Xlm=!1}}!Xlm&&(ZT2=void 0);throw a;}}else{P=m;c=P+c;m=[];for(var p=null,t,I;P<c;)t=J[P++],t<128?m.push(t):t<224?P>=c?cr():(I=J[P++],t<194||(I&192)!==128?(P--,
cr()):m.push((t&31)<<6|I&63)):t<240?P>=c-1?cr():(I=J[P++],(I&192)!==128||t===224&&I<160||t===237&&I>=160||((x=J[P++])&192)!==128?(P--,cr()):m.push((t&15)<<12|(I&63)<<6|x&63)):t<=244?P>=c-2?cr():(I=J[P++],(I&192)!==128||(t<<28)+(I-144)>>30!==0||((x=J[P++])&192)!==128||((b=J[P++])&192)!==128?(P--,cr()):(t=(t&7)<<18|(I&63)<<12|(x&63)<<6|b&63,t-=65536,m.push((t>>10&1023)+55296,(t&1023)+56320))):cr(),m.length>=8192&&(p=Jqr(p,m),m.length=0);P=Jqr(p,m)}return P};
_.Bc3=function(J){var c=_.qC(J.decoder_)>>>0;return uso(J.decoder_,c)};
_.gzu=function(J,c,m){var b=_.qC(J.decoder_)>>>0;for(b=J.decoder_.cursor_+b;J.decoder_.cursor_<b;)m.push(c(J.decoder_))};
FJm=[];var JBG=function(J,c){this.JSC$6872_lo=J>>>0;this.JSC$6872_hi=c>>>0},mTR=function(J){if(!J)return cBf||(cBf=new JBG(0,0));
if(!/^\d+$/.test(J))return null;b1(J);return new JBG(lC,yQ)},cBf,OrQ=function(J,c){this.JSC$6874_lo=J>>>0;
this.JSC$6874_hi=c>>>0},Epu=function(J){if(!J)return bme||(bme=new OrQ(0,0));
if(!/^-?\d+$/.test(J))return null;b1(J);return new OrQ(lC,yQ)},bme;var xTT=function(){this.JSC$6876_buffer_=[]},vpJ,V02;
xTT.prototype.length=function(){return this.JSC$6876_buffer_.length};
xTT.prototype.end=function(){var J=this.JSC$6876_buffer_;this.JSC$6876_buffer_=[];return J};
vpJ=function(J,c,m){for(;m>0||c>127;)J.JSC$6876_buffer_.push(c&127|128),c=(c>>>7|m<<25)>>>0,m>>>=7;J.JSC$6876_buffer_.push(c)};
V02=function(J,c){for(;c>127;)J.JSC$6876_buffer_.push(c&127|128),c>>>=7;J.JSC$6876_buffer_.push(c)};
_.Afo=function(J,c){if(c>=0)V02(J,c);else{for(var m=0;m<9;m++)J.JSC$6876_buffer_.push(c&127|128),c>>=7;J.JSC$6876_buffer_.push(1)}};
_.F7=function(J,c){J.JSC$6876_buffer_.push(c>>>0&255);J.JSC$6876_buffer_.push(c>>>8&255);J.JSC$6876_buffer_.push(c>>>16&255);J.JSC$6876_buffer_.push(c>>>24&255)};var Pm2,Ae,op2,FSt;Pm2=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new xTT};
Ae=function(J,c){c.length!==0&&(J.blocks_.push(c),J.totalLength_+=c.length)};
_.C1r=function(J,c){_.e9(J,c,2);c=J.encoder_.end();Ae(J,c);c.push(J.totalLength_);return c};
_.aee=function(J,c){var m=c.pop();for(m=J.totalLength_+J.encoder_.length()-m;m>127;)c.push(m&127|128),m>>>=7,J.totalLength_++;c.push(m);J.totalLength_++};
_.e9=function(J,c,m){V02(J.encoder_,c*8+m)};
op2=function(J,c,m){if(m!=null){switch(typeof m){case "string":mTR(m)}_.e9(J,c,1);switch(typeof m){case "number":J=J.encoder_;RuG(m);_.F7(J,lC);_.F7(J,yQ);break;case "bigint":m=BigInt.asUintN(64,m);m=new JBG(Number(m&BigInt(4294967295)),Number(m>>BigInt(32)));J=J.encoder_;c=m.JSC$6872_hi;_.F7(J,m.JSC$6872_lo);_.F7(J,c);break;default:m=mTR(m),J=J.encoder_,c=m.JSC$6872_hi,_.F7(J,m.JSC$6872_lo),_.F7(J,c)}}};
FSt=function(J,c,m){_.e9(J,c,2);V02(J.encoder_,m.length);Ae(J,J.encoder_.end());Ae(J,m)};var thu,Nh3,t0o,Cmf,a6m;thu=q0();_.M03=q0();_.p5m=q0();Nh3=q0();t0o=q0();_.I6r=q0();_.Sn=q0();_.K32=q0();Cmf=q0();a6m=q0();_.kFm=q0();_.Hmo=q0();_.d6=function(J,c,m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J,c,m)};
_.d6.prototype.toJSON=function(){return Je(this)};
_.d6.prototype.serialize=function(J){return JSON.stringify(Je(this,J))};
var m0u=function(J,c){if(c==null||c=="")return new J;c=JSON.parse(c);if(!Array.isArray(c))throw Error("$");return new J(Smu(c))};
_.d6.prototype.getExtension=function(J){ZQG(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,J.fieldIndex);Ya2(this,J.fieldIndex);return J.ctor?J.isRepeated?J.getExtensionFn(this,J.ctor,J.fieldIndex,_.ca(),J.JSC$6887_hasMessageId):J.getExtensionFn(this,J.ctor,J.fieldIndex,J.JSC$6887_hasMessageId):J.isRepeated?J.getExtensionFn(this,J.fieldIndex,_.ca(),J.JSC$6887_hasMessageId):J.getExtensionFn(this,J.fieldIndex,J.defaultValue,J.JSC$6887_hasMessageId)};
_.d6.prototype.clone=function(){var J=this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,c=J[_.sa]|0;return Pw(this,J,c)?Vb(this,J,!0):new this.constructor(xl(J,c,!1))};
_.d6.prototype[vu]=Af;_.d6.prototype.toString=function(){return this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows.toString()};var U1=function(J,c,m){this.$$binaryReaderFn=J;this.$$binaryWriterFn=c;J=QR(thu);this.$$isMsg=!!J&&m===J||!1},npt=Iem(function(J,c,m,b,x){if(J.nextWireType_!==2)return!1;
lBT(J,dSG(c,b,m),x);return!0},k4t),TRG=Iem(function(J,c,m,b,x){if(J.nextWireType_!==2)return!1;
lBT(J,dSG(c,b,m),x);return!0},k4t),vw=Symbol(),$l=Symbol(),DRr=Symbol(),q53=Symbol(),feD=Symbol(),HrJ,ir2;var Je3,imT,nj3,Thq,w5o,rBT,sIu,L3Q,DTt,W3r,zKD,f6e,YJD,Zme,qJt;Je3=function(J,c){var m=new Pm2;URr(J.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,m,he(vw,E1,O1,c));Ae(m,m.encoder_.end());J=new Uint8Array(m.totalLength_);c=m.blocks_;for(var b=c.length,x=0,P=0;P<b;P++){var p=c[P];J.set(p,x);x+=p.length}m.blocks_=[J];return J};
imT=_.R_(function(J,c,m){if(J.nextWireType_!==1)return!1;_.o_(c,m,Rte(J.decoder_));return!0},G4o,a6m);
nj3=_.R_(function(J,c,m,b){if(J.nextWireType_!==1)return!1;_.C0(c,m,b,Rte(J.decoder_));return!0},G4o,a6m);
Thq=_.R_(function(J,c,m,b){if(J.nextWireType_!==5)return!1;var x=_.US(J.decoder_);J=(x>>31)*2+1;var P=x>>>23&255;x&=8388607;_.C0(c,m,b,P==255?x?NaN:J*Infinity:P==0?J*1.401298464324817E-45*x:J*Math.pow(2,P-150)*(x+8388608));return!0},function(J,c,m){c=_.tf(c);
c!=null&&(_.e9(J,m,5),J=J.encoder_,m=j9||(j9=new DataView(new ArrayBuffer(8))),m.setFloat32(0,+c,!0),yQ=0,lC=m.getUint32(0,!0),_.F7(J,lC))},Cmf);
_.hK=_.R_(function(J,c,m){if(J.nextWireType_!==0)return!1;_.o_(c,m,_.Zb(J.decoder_,Jf));return!0},_.lR,_.Sn);
w5o=_.R_(function(J,c,m){if(J.nextWireType_!==0)return!1;J=_.Zb(J.decoder_,Jf);_.o_(c,m,J===0?void 0:J);return!0},_.lR,_.Sn);
rBT=_.R_(function(J,c,m,b){if(J.nextWireType_!==0)return!1;_.C0(c,m,b,_.Zb(J.decoder_,Jf));return!0},_.lR,_.Sn);
_.$d=_.R_(function(J,c,m){if(J.nextWireType_!==0)return!1;_.o_(c,m,_.qC(J.decoder_));return!0},Roo,Nh3);
sIu=_.R_(function(J,c,m){if(J.nextWireType_!==0)return!1;J=_.qC(J.decoder_);_.o_(c,m,J===0?void 0:J);return!0},Roo,Nh3);
L3Q=_.R_(function(J,c,m,b){if(J.nextWireType_!==0)return!1;_.C0(c,m,b,_.qC(J.decoder_));return!0},Roo,Nh3);
DTt=_.R_(function(J,c,m){if(J.nextWireType_!==1)return!1;_.o_(c,m,AQq(J.decoder_));return!0},_.eo3,_.K32);
W3r=_.$Rq(function(J,c,m){if(J.nextWireType_!==1&&J.nextWireType_!==2)return!1;c=_.D2(c,c[_.sa]|0,m);J.nextWireType_==2?_.gzu(J,AQq,c):c.push(AQq(J.decoder_));return!0},function(J,c,m){c=_.dRJ(HQm,c,!1);
if(c!=null)for(var b=0;b<c.length;b++)op2(J,m,c[b])},_.K32);
_.G8=_.R_(function(J,c,m){if(J.nextWireType_!==0)return!1;_.o_(c,m,_.ozu(J.decoder_));return!0},_.jFu,_.M03);
zKD=_.R_(function(J,c,m,b){if(J.nextWireType_!==0)return!1;_.C0(c,m,b,_.ozu(J.decoder_));return!0},_.jFu,_.M03);
_.ES=_.R_(function(J,c,m){if(J.nextWireType_!==2)return!1;_.o_(c,m,_.yQ3(J));return!0},_.leo,_.p5m);
_.uCo=_.R_(function(J,c,m,b){if(J.nextWireType_!==2)return!1;_.C0(c,m,b,_.yQ3(J));return!0},_.leo,_.p5m);
f6e=_.$Rq(function(J,c,m){if(J.nextWireType_!==2)return!1;J=_.yQ3(J);_.D2(c,c[_.sa]|0,m).push(J);return!0},function(J,c,m){c=_.dRJ(_.E5,c,!0);
if(c!=null)for(var b=0;b<c.length;b++){var x=J,P=m,p=c[b];p!=null&&FSt(x,P,xfo(p))}},_.p5m);
YJD=void 0;YJD=YJD===void 0?thu:YJD;_.ve=new U1(function(J,c,m,b,x){if(J.nextWireType_!==2)return!1;b=bR(void 0,b,!0);_.D2(c,c[_.sa]|0,m).push(b);lBT(J,b,x);return!0},function(J,c,m,b,x){if(Array.isArray(c))for(var P=0;P<c.length;P++)yfG(J,c[P],m,b,x)},YJD);
_.OS=Iem(function(J,c,m,b,x,P){if(J.nextWireType_!==2)return!1;var p=c[_.sa]|0;xRo(c,p,P,m,Oa(p));c=dSG(c,b,m);lBT(J,c,x);return!0},yfG);
_.X5e=_.R_(function(J,c,m){if(J.nextWireType_!==2)return!1;_.o_(c,m,_.Bc3(J));return!0},_.BRf,_.kFm);
Zme=_.R_(function(J,c,m,b){if(J.nextWireType_!==2)return!1;_.C0(c,m,b,_.Bc3(J));return!0},_.BRf,_.kFm);
qJt=_.R_(function(J,c,m,b){if(J.nextWireType_!==0)return!1;_.C0(c,m,b,_.qC(J.decoder_)>>>0);return!0},function(J,c,m){c=_.z4(c);
c!=null&&c!=null&&(_.e9(J,m,0),V02(J.encoder_,c))},t0o);
_.AK=_.R_(function(J,c,m){if(J.nextWireType_!==0)return!1;_.o_(c,m,_.qC(J.decoder_));return!0},_.gpm,_.Hmo);var hKT=function(){var J=UTm,c=SJr;this.fieldIndex=175237375;this.ctor=c;this.isRepeated=0;this.getExtensionFn=_.JU;this.defaultValue=void 0;this.JSC$6887_hasMessageId=J.messageId!=null?Ea:void 0};
hKT.prototype.register=function(){gx(this)};var dTQ=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(dTQ,_.d6);var $TD=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D($TD,_.d6);var V9q=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(V9q,_.d6);var GFR=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(GFR,_.d6);var Ejr=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(Ejr,_.d6);var vjm=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(vjm,_.d6);var Omt=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(Omt,_.d6);Omt.prototype.getData=function(){return _.K0(this,2)};var ABD=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(ABD,_.d6);var RKm=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(RKm,_.d6);RKm.prototype.getStyle=function(){return _.JU(this,dTQ,1)};var c0=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(c0,_.d6);c0.prototype.getPayloadCase=function(){return _.a5(this,xh)};
c0.prototype.getStyle=function(){return _.u0(this,RKm,6,xh)};
var ojm=function(){var J=new c0,c=new Ejr;return _.bs(J,7,xh,c)},QIo=function(){var J=new c0,c=new vjm;
return _.bs(J,8,xh,c)},xh=[1,
2,3,4,5,6,7,8];var eKu=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(eKu,_.d6);var jIJ=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(jIJ,_.d6);var F3D=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(F3D,_.d6);var l6R=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(l6R,_.d6);var yBJ=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(yBJ,_.d6);var Bhe=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(Bhe,_.d6);var gj3=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(gj3,_.d6);var JxD=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(JxD,_.d6);JxD.prototype.getData=function(){return _.K0(this,2)};var cxu=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(cxu,_.d6);var x0R=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(x0R,_.d6);x0R.prototype.getPayloadCase=function(){return _.a5(this,R5)};
var R5=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];var o5=function(J,c){J=Error.call(this,J);this.message=J.message;"stack"in J&&(this.stack=J.stack);this.code=c===void 0?2:c};
_.D(o5,Error);var mKu=Promise;var bPo=function(J){this.channelPromise=J};
bPo.prototype.send=function(J,c,m){this.channelPromise.then(function(b){b.send(J,c,m)})};var xK3=function(J,c){this.data=J;this.channel=c};
xK3.prototype.reply=function(J,c,m){this.channel.send(J,c,m)};var VxD=function(J){this.JSC$6953_port_=J};
VxD.prototype.send=function(J,c,m){m=m===void 0?[]:m;var b=new MessageChannel;PlD(b.port1,c);this.JSC$6953_port_.postMessage(J,[b.port2].concat(m))};
var Mxo=function(J,c){PlD(J,c);return new VxD(J)},PlD=function(J,c){c&&(J.onmessage=function(m){c(new xK3(m.data,Mxo(m.ports[0])))})};var pZm=function(J){this.verifier_=J},NwJ=function(J){var c=Object.create(null);
(typeof J==="string"?[J]:J).forEach(function(m){if(m==="null")throw Error("ba");c[m]=!0});
return function(m){return c[m]===!0}};_.txJ=function(){if(!_.mo.addEventListener||!Object.defineProperty)return!1;var J=!1,c=Object.defineProperty({},"passive",{get:function(){J=!0}});
try{var m=function(){};
_.mo.addEventListener("test",m,c);_.mo.removeEventListener("test",m,c)}catch(b){}return J}();var IHq;_.Qa=function(J){var c=J.destination;var m=J.iframe;var b=J.origin;var x=J.channelName===void 0?"ZNWN1d":J.channelName;var P=J.onMessage===void 0?void 0:J.onMessage;J=J.onEstablished===void 0?void 0:J.onEstablished;return IHq({destination:c,getSource:function(){return m.contentWindow},
originVerifier:b instanceof pZm?b:typeof b==="function"?new pZm(b):new pZm(NwJ(b)),channelName:x,onMessage:P,onEstablished:J})};
IHq=function(J){var c=J.destination;var m=J.getSource;var b=J.originVerifier;var x=J.token===void 0?void 0:J.token;var P=J.channelName;var p=J.onMessage===void 0?void 0:J.onMessage;var t=J.onEstablished===void 0?void 0:J.onEstablished;return new bPo(new mKu(function(I,a){var k=function(H){H.source&&H.source===m()&&b.verifier_(H.origin)&&(H.data.n||H.data)===P&&(c.removeEventListener("message",k,!1),x&&H.data.t!==x?a(Error("ca`"+P+"`"+x+"`"+H.data.t)):(I(Mxo(H.ports[0],p)),t&&t(H)))};
c.addEventListener("message",k,!1)}))};var KFT=function(J){try{J()}catch(c){bQ(c)}};var aH2=function(J){var c=this;var m=J.getMessageType;var b=J.onUnregisteredMessage===void 0?function(){}:J.onUnregisteredMessage;
var x=J.onBeforeRegisteredMessage===void 0?function(){}:J.onBeforeRegisteredMessage;
J=J.onAfterRegisteredMessage===void 0?function(){}:J.onAfterRegisteredMessage;
this.registry_=new Map;this.getMessageType_=m;this.onUnregisteredMessage_=b;this.onBeforeRegisteredMessage_=x;this.onAfterRegisteredMessage_=J;this.onMessage=function(P){return Cl3(c,P)}};
aH2.prototype.register=function(J,c){this.registry_.set(J,c);return this};
var Cl3=function(J,c){var m=J.getMessageType_(c.data),b=J.registry_.get(m);b?(KFT(function(){return J.onBeforeRegisteredMessage_(c,m)}),KFT(function(){return b(c)}),KFT(function(){return J.onAfterRegisteredMessage_(c,m)})):KFT(function(){return J.onUnregisteredMessage_(c,m)})};var k6m=function(J){this.JSC$6970_channel_=J},iPo,nvt;
k6m.prototype.send=function(J,c,m){this.JSC$6970_channel_.send(Je(J),c,m)};
_.HPD=function(J,c){return function(m){var b=new J(m.data);return c(new xK3(b,m.channel))}};
iPo=function(J){return function(c){return J(new xK3(c.data,new k6m(c.channel)))}};
nvt=function(J,c){return iPo(_.HPD(J,c))};var Twf=function(J,c,m,b){this.registry=J;this.delegate=c;this.receiveMessageConstructor=m;this.createInitMessage=b;this.initialised=!1;this.registry.register.bind(this.registry);this.features=new Set},bU2=function(J){var c=new aH2({getMessageType:J.getPayloadCase});
return new Twf(c,new k6m(_.Qa({iframe:J.child,destination:window,origin:J.origin,channelName:J.channelName,onMessage:nvt(J.receiveMessageConstructor,c.onMessage)})),J.receiveMessageConstructor,J.createInitMessage)},wZR=function(J,c){J.createInitMessage=c};
Twf.prototype.send=function(J){if(!this.initialised)throw new o5("Attempted to send a message before initialisation.");this.delegate.send(J)};
var rxt=function(J,c){return _.N(function(m){if(!J.initialised)throw new o5("Attempted to send a message before initialisation.");return m.return(new Promise(function(b){J.delegate.send(c,nvt(J.receiveMessageConstructor,b))}))})};
Twf.prototype.init=function(){var J=this;return _.N(function(c){if(J.initialised)throw new o5("Attempted to initialise twice. The SDK can only be initialised once.");if(J.createInitMessage!==void 0){var m=J.delegate,b=m.send,x=J.createInitMessage;var P=new $TD;var p=[].concat(_.L6(J.features));P=_.s1(P,1,p,_.s5);b.call(m,x.call(J,P))}J.initialised=!0;_.tD(c)})};
var en=function(J,c){if(J.initialised)throw new o5('Attempted to set up API "'+c+'" after initialisation. All APIs must be set up before initialising the SDK.');J.features.add(c);return J.registry};
_.eE.Object.defineProperties(Twf.prototype,{isInitialised:{configurable:!0,enumerable:!0,get:function(){return this.initialised}}});var s$t=function(J){this.channel=J;this.registered=!1};
s$t.prototype.update=function(J){if(this.channel.isInitialised){if(!this.registered)throw new o5("Using unregistered Audio Feature. Please call audio.update() before init() to indicate usage of the Audio Api.");var c=new c0;var m=new GFR;m=_.Pa(m,1,J);c=_.bs(c,2,xh,m);this.channel.send(c)}else this.register();this.JSC$6984_audioEnabled=J};
s$t.prototype.register=function(){en(this.channel,1);this.registered=!0};
s$t.prototype.isAudioEnabled=function(){return this.JSC$6984_audioEnabled};var LFf=function(J){this.channel=J};
_.V=LFf.prototype;_.V.onFirstFrameReady=function(J){en(this.channel,2).register(11,function(c){c=_.u0(c.data,eKu,11,R5);if(!c)throw new o5("Unexpectedly nonexistent GameFirstFrameReadyEvent");J(_.L0(c,1))})};
_.V.onReady=function(J){en(this.channel,2).register(4,function(c){c=_.u0(c.data,F3D,4,R5);if(!c)throw new o5("Unexpectedly nonexistent GameReadyEvent");J(_.L0(c,1))})};
_.V.onLevelComplete=function(J){en(this.channel,2).register(5,function(c){c=_.u0(c.data,l6R,5,R5);if(!c)throw new o5("Unexpectedly nonexistent LevelCompleteEvent");J(_.L0(c,1),_.m5(c,2))})};
_.V.onGameOver=function(J){en(this.channel,2).register(6,function(c){c=_.u0(c.data,jIJ,6,R5);if(!c)throw new o5("Unexpectedly nonexistent GameOverEvent");J(_.L0(c,1))})};
_.V.pause=function(){var J=this;if(!this.channel.isInitialised)return en(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new o5("Using unregistered Game Feature: pause.");var c=ojm();return new Promise(function(m){return _.N(function(b){if(b.nextAddress==1)return _.K(b,rxt(J.channel,c),2);m();_.tD(b)})})};
_.V.resume=function(){var J=this;if(!this.channel.isInitialised)return en(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new o5("Using unregistered Game Feature: resume.");var c=QIo();return new Promise(function(m){return _.N(function(b){if(b.nextAddress==1)return _.K(b,rxt(J.channel,c),2);m();_.tD(b)})})};var DKJ=function(J){this.channel=J};
DKJ.prototype.onReady=function(J){en(this.channel,5).register(8,function(c){if(!_.u0(c.data,yBJ,8,R5))throw new o5("Unexpectedly nonexistent PageReadyEvent");J()})};var WFo=function(J){this.channel=J};
WFo.prototype.onChange=function(J){en(this.channel,3).register(7,function(c){c=_.u0(c.data,Bhe,7,R5);if(!c)throw new o5("Unexpectedly nonexistent ScoreEvent");J(_.L0(c,1),_.m5(c,2))})};var zLr={load:function(){throw new o5("Storage used, but storage.onLoad() listener not set!");},
save:function(){throw new o5("Storage used, but storage.onSave() listener not set!");}},urJ=function(J){this.channel=J;
this.saveRegistered=this.loadRegistered=this.initialSetupDone=!1},fHD=function(J){en(J.channel,4).register(2,zLr.load).register(3,zLr.save);
J.initialSetupDone=!0};
urJ.prototype.onLoad=function(J){this.initialSetupDone||fHD(this);this.loadRegistered||(this.loadRegistered=!0,en(this.channel,4).register(2,function(c){var m,b,x;return _.N(function(P){if(P.nextAddress==1){m=_.u0(c.data,gj3,2,R5);if(!m)throw new o5("Unexpectedly nonexistent StorageLoad");b=_.L0(m,1);return _.K(P,J(b),2)}x=P.yieldResult;var p=c.reply,t=new c0;var I=new Omt;I=_.aw(I,1,b);I=_.mL(I,2,_.$Z(x,!1));t=_.bs(t,3,xh,I);p.call(c,t);_.tD(P)})}))};
urJ.prototype.onSave=function(J){this.initialSetupDone||fHD(this);this.saveRegistered||(this.saveRegistered=!0,en(this.channel,4).register(3,function(c){var m,b,x;return _.N(function(P){if(P.nextAddress==1){m=_.u0(c.data,JxD,3,R5);if(!m)throw new o5("Unexpectedly nonexistent StorageSave");b=_.L0(m,1);x=rQ2(m.getData());return _.K(P,J(b,x),2)}var p=c.reply,t=new c0;var I=new ABD;I=_.aw(I,1,b);t=_.bs(t,4,xh,I);p.call(c,t);_.tD(P)})}))};var YUJ=function(J){this.channel=J};
YUJ.prototype.update=function(J){if(!this.channel.features.has(6))throw new o5("Using unregistered Style Feature. Please call style.register() before init() to indicate usage of the Style Api.");var c=new c0,m=new RKm;J=_.m_(m,1,J);c=_.bs(c,6,xh,J);this.channel.send(c)};
YUJ.prototype.register=function(){en(this.channel,6)};var XZQ=function(J){this.channel=J;this.userActivityLoggingIntervalMs=0};
XZQ.prototype.onUserActivity=function(J,c){this.userActivityLoggingIntervalMs=c;en(this.channel,7).register(9,function(m){if(!_.u0(m.data,cxu,9,R5))throw new o5("Unexpectedly nonexistent ClickEvent");J()})};var ZPJ=function(J){var c=this;this.channel=J;this.init=this.channel.init.bind(this.channel);this.page=new DKJ(this.channel);this.game=new LFf(this.channel);this.audio=new s$t(this.channel);this.score=new WFo(this.channel);this.storage=new urJ(this.channel);this.style=new YUJ(this.channel);this.userActivity=new XZQ(this.channel);wZR(this.channel,function(m){var b=new V9q;m=_.m_(b,1,m);m=_.f0(m,3,c.userActivity.userActivityLoggingIntervalMs);b=c.audio.isAudioEnabled();b!==void 0&&_.Pa(m,2,b);b=new c0;
return _.bs(b,5,xh,m)})};var qUQ=function(){this.timedFunctionContext=0};
qUQ.prototype.timeExecution=function(J,c){var m=this;return function(){var b=_.s$.apply(0,arguments);m.timedFunctionContext=J;return c.apply(null,_.L6(b))}};var UKQ=function(){var J={};this.priorityTasks=(J[3]=[],J[2]=[],J[1]=[],J);this.isFlushing=!1},MA=function(J,c,m){var b=SUR(J,m);
J.priorityTasks[m].push(c);b&&J.priorityTasks[m].length===1&&J.flush()},SUR=function(J,c){return Object.keys(J.priorityTasks).map(function(m){return Number(m)}).filter(function(m){return!isNaN(m)&&m>c}).every(function(m){return J.priorityTasks[m].length===0})};
UKQ.prototype.flush=function(){if(!this.isFlushing){this.isFlushing=!0;try{for(;Object.values(this.priorityTasks).some(function(J){return J.length>0});)hLr(this,3),hLr(this,2),hLr(this,1)}catch(J){throw Object.values(this.priorityTasks).forEach(function(c){return void c.splice(0,c.length)}),J;
}finally{this.isFlushing=!1}}};
var hLr=function(J,c){for(;SUR(J,c)&&J.priorityTasks[c].length>0;)J.priorityTasks[c][0](),J.priorityTasks[c].shift()};
_.eE.Object.defineProperties(UKQ.prototype,{running:{configurable:!0,enumerable:!0,get:function(){return Object.values(this.priorityTasks).some(function(J){return J.length>0})}}});var I2r={};var dKD=globalThis.trustedTypes,M9D=dKD,N6m;var P0=function(J){this.privateDoNotAccessOrElseWrappedResourceUrl=J};
P0.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""};var $Kt=_.Oo([""]),G6t=plf(["\x00"],["\\0"]),EvR=plf(["\n"],["\\n"]),vvq=plf(["\x00"],["\\u0000"]);tG(function(J){return J($Kt)})||tG(function(J){return J(G6t)})||tG(function(J){return J(EvR)})||tG(function(J){return J(vvq)});var is;_.Ih=function(J,c){this.privateDoNotAccessOrElseWrappedUrl=c};
_.Ih.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};
_.OPt=K1("about:blank");is=K1("about:invalid#zClosurez");var KTf=function(J){this.isValid=J},Ax2=new KTf(function(J){return/^[^:]*([/?#]|$)/.test(J)}),RLG=kh("data"),ovG=kh("http"),Q$t=kh("https"),eLe=kh("ftp"),j$Q=kh("mailto"),FFf=kh("intent"),lHe=kh("vnd.youtube"),CRq=[RLG,
ovG,Q$t,j$Q,eLe,Ax2],a2t=VU(function(){return typeof URL==="function"}),yxe=["data:",
"http:","https:","mailto:","ftp:"],HUq=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var z$=function(J){this.privateDoNotAccessOrElseWrappedHtml=J};
z$.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml+""};
var i3r=VU(function(){return new z$(dKD?dKD.emptyHTML:"")});var BwR={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"},XH=function(J,c){var m=Error.call(this,J+" cannot be used with intent "+BwR[c]);this.message=m.message;"stack"in m&&(this.stack=m.stack);this.type=J;this.intent=c;this.name="TypeCannotBeUsedWithIframeIntentError"};
_.D(XH,Error);_.U$=function(J){this.privateDoNotAccessOrElseWrappedScript=J};
_.U$.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedScript+""};var wwo=function(J){this.privateDoNotAccessOrElseWrappedAttributePrefix=J};
wwo.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedAttributePrefix};var reo="alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");var rdT=function(J){var c=_.$y("window.location.href");J==null&&(J='Unknown Error of type "null/undefined"');if(typeof J==="string")return{message:J,name:"Unknown error",lineNumber:"Not available",fileName:c,stack:"Not available"};var m=!1;try{var b=J.lineNumber||J.line||"Not available"}catch(p){b="Not available",m=!0}try{var x=J.fileName||J.filename||J.sourceURL||_.mo.$googDebugFname||c}catch(p){x="Not available",m=!0}c=gvm(J);if(!(!m&&J.lineNumber&&J.fileName&&J.stack&&J.message&&J.name)){m=J.message;
if(m==null){if(J.constructor&&J.constructor instanceof Function){if(J.constructor.name)m=J.constructor.name;else if(m=J.constructor,jn[m])m=jn[m];else{m=String(m);if(!jn[m]){var P=/function\s+([^\(]+)/m.exec(m);jn[m]=P?P[1]:"[Anonymous]"}m=jn[m]}m='Unknown Error of type "'+m+'"'}else m="Unknown Error of unknown type";typeof J.toString==="function"&&Object.prototype.toString!==J.toString&&(m+=": "+J.toString())}return{message:m,name:J.name||"UnknownError",lineNumber:b,fileName:x,stack:c||"Not available"}}return{message:J.message,
name:J.name,lineNumber:J.lineNumber,fileName:J.fileName,stack:c}},gvm=function(J,c){c||(c={});
c[J9D(J)]=!0;var m=J.stack||"",b=J.cause;b&&!c[J9D(b)]&&(m+="\nCaused by: ",b.stack&&b.stack.indexOf(b.toString())==0||(m+=typeof b==="string"?b:b.message+"\n"),m+=gvm(b,c));J=J.errors;if(Array.isArray(J)){b=1;var x;for(x=0;x<J.length&&!(b>4);x++)c[J9D(J[x])]||(m+="\nInner error "+b++ +": ",J[x].stack&&J[x].stack.indexOf(J[x].toString())==0||(m+=typeof J[x]==="string"?J[x]:J[x].message+"\n"),m+=gvm(J[x],c));x<J.length&&(m+="\n... "+(J.length-x)+" more inner errors")}return m},J9D=function(J){var c=
"";
typeof J.toString==="function"&&(c=""+J);return c+J.stack},jn={};var c9u,lN,cg,bh3,xOq,mOG,va,$3,P7m;c9u=function(J,c){for(var m=J.split("%s"),b="",x=Array.prototype.slice.call(arguments,1);x.length&&m.length>1;)b+=m.shift()+x.shift();return b+m.join("%s")};
_.Eb=function(J){return encodeURIComponent(String(J))};
lN=function(J){return decodeURIComponent(J.replace(/\+/g," "))};
cg=function(J){vkm.test(J)&&(J.indexOf("&")!=-1&&(J=J.replace(SNQ,"&amp;")),J.indexOf("<")!=-1&&(J=J.replace(hUf,"&lt;")),J.indexOf(">")!=-1&&(J=J.replace(dt3,"&gt;")),J.indexOf('"')!=-1&&(J=J.replace($tu,"&quot;")),J.indexOf("'")!=-1&&(J=J.replace(GJf,"&#39;")),J.indexOf("\x00")!=-1&&(J=J.replace(EkG,"&#0;")));return J};
bh3=function(J){var c={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var m=_.mo.document.createElement("div");return J.replace(mOG,function(b,x){var P=c[b];if(P)return P;x.charAt(0)=="#"&&(x=Number("0"+x.slice(1)),isNaN(x)||(P=String.fromCharCode(x)));P||(_.G$(m,us(b+" ")),P=m.firstChild.nodeValue.slice(0,-1));return c[b]=P})};
xOq=function(J){return J.replace(/&([^;]+);/g,function(c,m){switch(m){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return m.charAt(0)!="#"||(m=Number("0"+m.slice(1)),isNaN(m))?c:String.fromCharCode(m)}})};
mOG=/&([^;\s<&]+);?/g;_.Rvr=function(J){return String(J).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
_.VSe=String.prototype.repeat?function(J,c){return J.repeat(c)}:function(J,c){return Array(c+1).join(J)};
_.Fy=function(J,c){if(!Number.isFinite(J))return String(J);J=String(J);var m=J.indexOf(".");m===-1&&(m=J.length);var b=J[0]==="-"?"-":"";b&&(J=J.substring(1));return b+(0,_.VSe)("0",Math.max(0,c-m))+J};
va=function(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^_.lc()).toString(36)};
$3=function(J){for(var c=0,m=0;m<J.length;++m)c=31*c+J.charCodeAt(m)>>>0;return c};
_.Cl=function(J){return String(J).replace(/\-([a-z])/g,function(c,m){return m.toUpperCase()})};
_.Kl=function(J){return String(J).replace(/([A-Z])/g,"-$1").toLowerCase()};
P7m=function(J){return J.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(c,m,b){return m+b.toUpperCase()})};var MSu=function(){this.names=new Map};
MSu.prototype.getName=function(J){var c=this.names.get(J);if(c)return c;var m;c=(m=J.description)!=null?m:va();this.names.set(J,c);return c};var pDJ=function(J){var c=Error.call(this,J?J.length+" errors occurred during unsubscription:\n"+J.map(function(m,b){return b+1+") "+m.toString()}).join("\n  "):"");
this.message=c.message;"stack"in c&&(this.stack=c.stack);this.errors=J;Object.setPrototypeOf(this,this.constructor.prototype);this.name="UnsubscriptionError"};
_.D(pDJ,Error);var e3=function(J){this.initialTeardown=J;this.closed=!1;this._teardowns=this._parentage=null};
_.V=e3.prototype;
_.V.unsubscribe=function(){if(!this.closed){this.closed=!0;var J=this._parentage;if(Array.isArray(J))for(var c=_.M(J),m=c.next();!m.done;m=c.next())m.value.remove(this);else J==null||J.remove(this);c=this.initialTeardown;if(QU(c))try{c()}catch(P){var b=P instanceof pDJ?P.errors:[P]}var x=this._teardowns;if(x)for(this._teardowns=null,c=_.M(x),m=c.next();!m.done;m=c.next()){m=m.value;try{QU(m)?m():m.unsubscribe()}catch(P){m=void 0,b=(m=b)!=null?m:[],P instanceof pDJ?b=[].concat(_.L6(b),_.L6(P.errors)):
b.push(P)}}if(b)throw new pDJ(b);}};
_.V.add=function(J){if(J&&J!==this)if(this.closed)QU(J)?J():J.unsubscribe();else{if(J instanceof e3){if(J.closed||J._hasParent(this))return;J._addParent(this)}var c;(this._teardowns=(c=this._teardowns)!=null?c:[]).push(J)}};
_.V._hasParent=function(J){var c=this._parentage;return c===J||Array.isArray(c)&&c.includes(J)};
_.V._addParent=function(J){var c=this._parentage;this._parentage=Array.isArray(c)?(c.push(J),c):c?[c,J]:J};
_.V._removeParent=function(J){var c=this._parentage;c===J?this._parentage=null:Array.isArray(c)&&oh(c,J)};
_.V.remove=function(J){var c=this._teardowns;c&&oh(c,J);J instanceof e3&&J._removeParent(this)};
var NNm=new e3;NNm.closed=!0;e3.JSC$7080_EMPTY=NNm;var WTe=function(){setTimeout.apply(null,_.L6(_.s$.apply(0,arguments)))};var l0=function(J){e3.call(this);this.JSC$7085_isStopped=!1;this.destination=J instanceof l0?J:new ya(!J||QU(J)?{next:J!=null?J:void 0}:J);D0T(J)&&J.add(this)};
_.D(l0,e3);l0.JSC$7080_EMPTY=e3.JSC$7080_EMPTY;l0.create=function(J,c,m){return new Be(J,c,m)};
_.V=l0.prototype;_.V.next=function(J){this.JSC$7085_isStopped||this._next(J)};
_.V.error=function(J){this.JSC$7085_isStopped||(this.JSC$7085_isStopped=!0,this._error(J))};
_.V.complete=function(){this.JSC$7085_isStopped||(this.JSC$7085_isStopped=!0,this._complete())};
_.V.unsubscribe=function(){this.closed||(this.JSC$7085_isStopped=!0,e3.prototype.unsubscribe.call(this))};
_.V._next=function(J){this.destination.next(J)};
_.V._error=function(J){this.destination.error(J);this.unsubscribe()};
_.V._complete=function(){this.destination.complete();this.unsubscribe()};
var ya=function(J){this.partialObserver=J};
ya.prototype.next=function(J){var c=this.partialObserver;if(c.next)try{c.next(J)}catch(m){FH(m)}};
ya.prototype.error=function(J){var c=this.partialObserver;if(c.error)try{c.error(J)}catch(m){FH(m)}else FH(J)};
ya.prototype.complete=function(){var J=this.partialObserver;if(J.complete)try{J.complete()}catch(c){FH(c)}};
var Be=function(J,c,m){l0.call(this);var b;QU(J)||!J?b={next:J!=null?J:void 0,error:c!=null?c:void 0,complete:m!=null?m:void 0}:b=J;this.destination=new ya(b)};
_.D(Be,l0);Be.JSC$7080_EMPTY=l0.JSC$7080_EMPTY;Be.create=l0.create;var cR=typeof Symbol==="function"&&Symbol.observable||"@@observable";var B0=function(J){J&&(this._subscribe=J)};
_.V=B0.prototype;_.V.lift=function(J){var c=new B0;c.source=this;c.operator=J;return c};
_.V.subscribe=function(J,c,m){J=J&&J instanceof l0||J&&QU(J.next)&&QU(J.error)&&QU(J.complete)&&D0T(J)?J:new Be(J,c,m);c=this.operator;m=this.source;J.add(c?c.call(J,m):m?this._subscribe(J):this._trySubscribe(J));return J};
_.V._trySubscribe=function(J){try{return this._subscribe(J)}catch(c){J.error(c)}};
_.V.forEach=function(J,c){var m=this;c=u7G(c);return new c(function(b,x){var P=m.subscribe(function(p){try{J(p)}catch(t){x(t),P==null||P.unsubscribe()}},x,b)})};
_.V._subscribe=function(J){var c;return(c=this.source)==null?void 0:c.subscribe(J)};
B0.prototype[cR]=function(){return this};
B0.prototype.pipe=function(){var J=_.s$.apply(0,arguments);return J.length?zAt(J)(this):this};
B0.create=function(J){return new B0(J)};var tSt=function(){var J=Error.call(this,"object unsubscribed");this.message=J.message;"stack"in J&&(this.stack=J.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="ObjectUnsubscribedError"};
_.D(tSt,Error);var x0=function(){this.observers=[];this.hasError=this.JSC$7101_isStopped=this.closed=!1;this.thrownError=null};
_.D(x0,B0);_.V=x0.prototype;_.V.lift=function(J){var c=new g9(this,this);c.operator=J;return c};
_.V._throwIfClosed=function(){if(this.closed)throw new tSt;};
_.V.next=function(J){this._throwIfClosed();if(!this.JSC$7101_isStopped){var c=this.observers.slice();c=_.M(c);for(var m=c.next();!m.done;m=c.next())m.value.next(J)}};
_.V.error=function(J){this._throwIfClosed();if(!this.JSC$7101_isStopped){this.hasError=this.JSC$7101_isStopped=!0;this.thrownError=J;for(var c=this.observers;c.length;)c.shift().error(J)}};
_.V.complete=function(){this._throwIfClosed();if(!this.JSC$7101_isStopped){this.JSC$7101_isStopped=!0;for(var J=this.observers;J.length;)J.shift().complete()}};
_.V.unsubscribe=function(){this.JSC$7101_isStopped=this.closed=!0;this.observers=null};
_.V._trySubscribe=function(J){this._throwIfClosed();return B0.prototype._trySubscribe.call(this,J)};
_.V._subscribe=function(J){this._throwIfClosed();this._checkFinalizedStatuses(J);return this._innerSubscribe(J)};
_.V._innerSubscribe=function(J){var c=this,m=this.JSC$7101_isStopped,b=this.observers;return this.hasError||m?e3.JSC$7080_EMPTY:(b.push(J),new e3(function(){return oh(c.observers,J)}))};
_.V._checkFinalizedStatuses=function(J){var c=this.thrownError,m=this.JSC$7101_isStopped;this.hasError?J.error(c):m&&J.complete()};
x0.create=function(J,c){return new g9(J,c)};
var g9=function(J,c){x0.call(this);this.destination=J;this.source=c};
_.D(g9,x0);g9.create=x0.create;g9.prototype.next=function(J){var c,m;(c=this.destination)==null||(m=c.next)==null||m.call(c,J)};
g9.prototype.error=function(J){var c,m;(c=this.destination)==null||(m=c.error)==null||m.call(c,J)};
g9.prototype.complete=function(){var J,c;(J=this.destination)==null||(c=J.complete)==null||c.call(J)};
g9.prototype._subscribe=function(J){var c,m;return(m=(c=this.source)==null?void 0:c.subscribe(J))!=null?m:e3.JSC$7080_EMPTY};var d7=function(J){x0.call(this);this._value=J};
_.D(d7,x0);d7.create=x0.create;d7.prototype._subscribe=function(J){var c=x0.prototype._subscribe.call(this,J);!c.closed&&J.next(this._value);return c};
d7.prototype.getValue=function(){var J=this.thrownError,c=this._value;if(this.hasError)throw J;this._throwIfClosed();return c};
d7.prototype.next=function(J){x0.prototype.next.call(this,this._value=J)};
_.eE.Object.defineProperties(d7.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});var XX=new B0(function(J){return J.complete()});var JD=typeof Symbol==="function"&&Symbol.iterator?Symbol.iterator:"@@iterator";var hAf=function(J){return J&&typeof J.length==="number"&&typeof J!=="function"};var Ikt={now:function(){return(Ikt.delegate||Date).now()},
delegate:void 0};var Qu=function(J,c,m){J=J===void 0?Infinity:J;c=c===void 0?Infinity:c;m=m===void 0?Ikt:m;x0.call(this);this.JSC$7123_bufferSize=J;this.windowTime=c;this.timestampProvider=m;this.buffer=[];this.infiniteTimeWindow=!0;this.infiniteTimeWindow=c===Infinity;this.JSC$7123_bufferSize=Math.max(1,J);this.windowTime=Math.max(1,c)};
_.D(Qu,x0);Qu.create=x0.create;Qu.prototype.next=function(J){var c=this.buffer,m=this.infiniteTimeWindow,b=this.timestampProvider,x=this.windowTime;this.JSC$7101_isStopped||(c.push(J),!m&&c.push(b.now()+x));KiJ(this);x0.prototype.next.call(this,J)};
Qu.prototype._subscribe=function(J){this._throwIfClosed();KiJ(this);for(var c=this._innerSubscribe(J),m=this.infiniteTimeWindow,b=this.buffer.slice(),x=0;x<b.length&&!J.closed;x+=m?1:2)J.next(b[x]);this._checkFinalizedStatuses(J);return c};
var KiJ=function(J){var c=J.JSC$7123_bufferSize,m=J.timestampProvider,b=J.buffer;J=J.infiniteTimeWindow;var x=(J?1:2)*c;c<Infinity&&x<b.length&&b.splice(0,b.length-x);if(!J){c=m.now();m=0;for(J=1;J<b.length&&b[J]<=c;J+=2)m=J;m&&b.splice(0,m+1)}};var akT=function(J,c){c=c===void 0?C7u:c;this.schedulerActionCtor=J;this.now=c};
akT.prototype.schedule=function(J,c,m){c=c===void 0?0:c;return(new this.schedulerActionCtor(this,J)).schedule(m,c)};
var C7u=Ikt.now;var z$o=function(){var J=Error.call(this,"no elements in sequence");this.message=J.message;"stack"in J&&(this.stack=J.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="EmptyError"};
_.D(z$o,Error);var n6=function(J,c,m,b,x){l0.call(this,J);this.onUnsubscribe=x;c&&(this._next=function(P){try{c(P)}catch(p){this.destination.error(p)}});
m&&(this._error=function(P){try{m(P)}catch(p){this.destination.error(p)}this.unsubscribe()});
b&&(this._complete=function(){try{b()}catch(P){this.destination.error(P)}this.unsubscribe()})};
_.D(n6,l0);n6.JSC$7080_EMPTY=l0.JSC$7080_EMPTY;n6.create=l0.create;n6.prototype.unsubscribe=function(){var J;this.closed||(J=this.onUnsubscribe)!=null&&J.call(this);l0.prototype.unsubscribe.call(this)};var Rl=function(J,c){this.source=J;this.subjectFactory=c;this._subject=null;this._refCount=0;this._connection=null};
_.D(Rl,B0);Rl.create=B0.create;Rl.prototype._subscribe=function(J){return k0J(this).subscribe(J)};
var k0J=function(J){var c=J._subject;if(!c||c.JSC$7101_isStopped)J._subject=J.subjectFactory();return J._subject};
Rl.prototype._teardown=function(){this._refCount=0;var J=this._connection;this._subject=this._connection=null;J==null||J.unsubscribe()};
Rl.prototype.connect=function(){var J=this,c=this._connection;if(!c){c=this._connection=new e3;var m=k0J(this);c.add(this.source.subscribe(new n6(m,void 0,function(b){J._teardown();m.error(b)},function(){J._teardown();
m.complete()},function(){return J._teardown()})));
c.closed&&(this._connection=null,c=e3.JSC$7080_EMPTY)}return c};var j_2=Array.isArray;var l2J=Array.isArray,Hhm=Object,yeq=Hhm.getPrototypeOf,B6e=Hhm.prototype,gle=Hhm.keys;var WR=function(J,c,m){l0.call(this,J);this._next=c;this.shouldComplete=m};
_.D(WR,l0);WR.JSC$7080_EMPTY=l0.JSC$7080_EMPTY;WR.create=l0.create;WR.prototype._complete=function(){this.shouldComplete()?l0.prototype._complete.call(this):this.unsubscribe()};var M3Q=["addListener","removeListener"],Psu=["addEventListener","removeEventListener"],NaD=["on","off"];var JF=function(){e3.call(this)};
_.D(JF,e3);JF.JSC$7080_EMPTY=e3.JSC$7080_EMPTY;JF.prototype.schedule=function(){return this};var ihR=function(J,c){return setInterval.apply(null,[J,c].concat(_.L6(_.s$.apply(2,arguments))))};var cQ=function(J,c){e3.call(this);this.scheduler=J;this.work=c;this.pending=!1};
_.D(cQ,JF);cQ.JSC$7080_EMPTY=JF.JSC$7080_EMPTY;cQ.prototype.schedule=function(J,c){c=c===void 0?0:c;if(this.closed)return this;this.state=J;J=this.id;var m=this.scheduler;J!=null&&(this.id=nn3(this,J,c));this.pending=!0;this.delay=c;this.id=this.id||this.requestAsyncId(m,this.id,c);return this};
cQ.prototype.requestAsyncId=function(J,c,m){m=m===void 0?0:m;return ihR(J.flush.bind(J,this),m)};
var nn3=function(J,c,m){m=m===void 0?0:m;if(m!=null&&J.delay===m&&J.pending===!1)return c;clearInterval(c)};
cQ.prototype.execute=function(J,c){if(this.closed)return Error("la");this.pending=!1;if(J=this._execute(J,c))return J;this.pending===!1&&this.id!=null&&(this.id=nn3(this,this.id,null))};
cQ.prototype._execute=function(J){var c=!1;try{this.work(J)}catch(b){c=!0;var m=!!b&&b||Error(b)}if(c)return this.unsubscribe(),m};
cQ.prototype.unsubscribe=function(){if(!this.closed){var J=this.id,c=this.scheduler.actions;this.work=this.state=this.scheduler=null;this.pending=!1;oh(c,this);J!=null&&(this.id=nn3(this,J,null));this.delay=null;JF.prototype.unsubscribe.call(this)}};var TNR=function(J,c){c=c===void 0?C7u:c;akT.call(this,J,c);this.actions=[];this.active=!1;this.scheduled=void 0};
_.D(TNR,akT);TNR.prototype.flush=function(J){var c=this.actions;if(this.active)c.push(J);else{var m;this.active=!0;do if(m=J.execute(J.state,J.delay))break;while(J=c.shift());this.active=!1;if(m){for(;J=c.shift();)J.unsubscribe();throw m;}}};var w7=new B0(j3);var t3R=Array.isArray;var mE=function(J,c){cQ.call(this,J,c);this.scheduler=J;this.work=c};
_.D(mE,cQ);mE.JSC$7080_EMPTY=cQ.JSC$7080_EMPTY;mE.prototype.schedule=function(J,c){c=c===void 0?0:c;if(c>0)return cQ.prototype.schedule.call(this,J,c);this.delay=c;this.state=J;this.scheduler.flush(this);return this};
mE.prototype.execute=function(J,c){return c>0||this.closed?cQ.prototype.execute.call(this,J,c):this._execute(J,c)};
mE.prototype.requestAsyncId=function(J,c,m){m=m===void 0?0:m;return m!=null&&m>0||m==null&&this.delay>0?cQ.prototype.requestAsyncId.call(this,J,c,m):J.flush(this)};var wDf=function(){TNR.apply(this,arguments)};
_.D(wDf,TNR);var Q_3=new wDf(mE);var r9o=function(){this.performanceMonitor=new qUQ;this.queue=new UKQ;this.internalSymbol=Symbol();this.debugNames=new MSu};
r9o.prototype.getOnBackgrounded=function(){return w7};
_.eE.Object.defineProperties(r9o.prototype,{symbol:{configurable:!0,enumerable:!0,get:function(){return this.internalSymbol}}});var b_=function(J,c){c=Error.call(this,c?J+": "+c:String(J));this.message=c.message;"stack"in c&&(this.stack=c.stack);this.code=J;this.__proto__=b_.prototype;this.name=String(J)};
_.D(b_,Error);var r7=function(J){b_.call(this,1E3,'sfr:"'+J+'"');this.measurementStrategyFailureReason=J;this.__proto__=r7.prototype};
_.D(r7,b_);var sz=function(){b_.call(this,1003);this.__proto__=sz.prototype};
_.D(sz,b_);var x8=function(){b_.call(this,1009);this.__proto__=x8.prototype};
_.D(x8,b_);var sjo=function(){b_.call(this,1011);this.__proto__=sjo.prototype};
_.D(sjo,b_);var Li2=function(){b_.call(this,1007);this.__proto__=sz.prototype};
_.D(Li2,b_);var k0=function(J){b_.call(this,1004,String(J));this.inputObservableIndex=J;this.__proto__=k0.prototype};
_.D(k0,b_);var $MD=function(J){b_.call(this,1010,J);this.__proto__=Hm.prototype};
_.D($MD,b_);var Hm=function(J){b_.call(this,1005,J);this.__proto__=Hm.prototype};
_.D(Hm,b_);var DOf=function(J){var c=_.s$.apply(1,arguments),m=this;this.orderedFactories=[];this.orderedFactories.push(J);c.forEach(function(b){m.orderedFactories.push(b)})};
DOf.prototype.isSupported=function(J){return this.orderedFactories.some(function(c){return c.isSupported(J)})};
DOf.prototype.makeBeacon=function(J,c){for(var m=0;m<this.orderedFactories.length;m++)if(this.orderedFactories[m].isSupported(c))return this.orderedFactories[m].makeBeacon(J,c);throw new x8;};var swf=Symbol("ma"),Wir=Symbol("na"),St=function(J,c){this.value=J;this.timeline=c},Uw=function(J,c){if(c.timeline!==J.timeline)throw new Li2;
return J.value-c.value};
_.V=St.prototype;_.V.equals=function(J){return Uw(this,J)===0};
_.V.maximum=function(J){if(J.timeline!==this.timeline)throw new Li2;return this.value>=J.value?this:J};
_.V.round=function(){return new St(Math.round(this.value),this.timeline)};
_.V.add=function(J){return new St(this.value+J,this.timeline)};
_.V.toString=function(){return String(this.value)};var Vl=function(J,c){this.context=J;this.JSC$7207_pinger=c};
Vl.prototype.isSupported=function(J){return this.JSC$7207_pinger.isSupported(J)};
Vl.prototype.makeBeacon=function(J,c){if(!this.isSupported(c))throw new x8;return new PQ(this.context,this.JSC$7207_pinger,c!=null?c:void 0,J)};
var PQ=function(J,c,m,b){var x=this;this.JSC$7213_pinger=c;this.properties=m;this.url=b;this.internalIsPending=!0;this.customHeaders=new Map;this.body=void 0;var P;this.method=(P=m==null?void 0:m.beaconMethod)!=null?P:"GET";this.backgroundedSubscription=J.getOnBackgrounded().subscribe(function(){x.sendNow()})};
PQ.prototype.deactivate=function(){this.internalIsPending=!1};
PQ.prototype.sendNow=function(){if(this.internalIsPending)if(this.backgroundedSubscription.unsubscribe(),this.JSC$7213_pinger.isSupported(this.properties))try{if(this.customHeaders.size>0||this.body!==void 0){var J,c;this.JSC$7213_pinger.pingWithHeadersAndBody((J=this.properties)!=null?J:{},this.customHeaders,(c=this.body)!=null?c:"",this.url)}else this.JSC$7213_pinger.ping(this.url);this.internalIsPending=!1}catch(m){}else this.internalIsPending=!1};
PQ.prototype.setHeader=function(J){this.customHeaders.set(J,void 0)};
_.eE.Object.defineProperties(PQ.prototype,{isPending:{configurable:!0,enumerable:!0,get:function(){return this.internalIsPending}}});var uuD=function(){for(var J=_.M(_.s$.apply(0,arguments)),c=J.next();!c.done;c=J.next())if(c=c.value,c.available()){this.timeProvider=c;return}this.timeProvider=new zj3};
_.V=uuD.prototype;_.V.available=function(){return this.timeProvider.available()};
_.V.now=function(){return this.timeProvider.now()};
_.V.setTimeout=function(J,c){return this.timeProvider.setTimeout(J,c)};
_.V.clearTimeout=function(J){this.timeProvider.clearTimeout(J)};
_.V.interval=function(J,c){var m=this.intervalObservable(J).subscribe(c);return function(){return void m.unsubscribe()}};
_.V.intervalObservable=function(J){return this.timeProvider.intervalObservable(J)};
_.eE.Object.defineProperties(uuD.prototype,{timeline:{configurable:!0,enumerable:!0,get:function(){return this.timeProvider.timeline}}});
var zj3=function(){this.timeline=Symbol()};
_.V=zj3.prototype;_.V.available=function(){return!1};
_.V.now=function(){return new St(0,this.timeline)};
_.V.setTimeout=function(){return 0};
_.V.clearTimeout=function(){};
_.V.interval=function(){return function(){}};
_.V.intervalObservable=function(){return w7};var Mk=function(J,c){this.intrinsicFunctionNamespace=J;this.performanceMonitor=c};
_.V=Mk.prototype;_.V.setTimeout=function(J,c){return this.intrinsicFunctionNamespace.setTimeout(this.performanceMonitor.timeExecution(734,J),c)};
_.V.clearTimeout=function(J){this.intrinsicFunctionNamespace.clearTimeout(J)};
_.V.interval=function(J,c){var m=this.intervalObservable(J).subscribe(c);return function(){return void m.unsubscribe()}};
_.V.intervalObservable=function(J){var c=this;return new B0(function(m){var b=0,x=c.intrinsicFunctionNamespace.setInterval(function(){m.next(b++)},J);
return function(){c.intrinsicFunctionNamespace.clearInterval(x)}})};
_.V.available=function(){return!!this.intrinsicFunctionNamespace.clearTimeout&&"setTimeout"in this.intrinsicFunctionNamespace&&"setInterval"in this.intrinsicFunctionNamespace&&!!this.intrinsicFunctionNamespace.clearInterval};var fkm=function(J,c){Mk.call(this,J,c);this.timeline=Wir};
_.D(fkm,Mk);fkm.prototype.now=function(){return new St(this.intrinsicFunctionNamespace.Date.now(),this.timeline)};
fkm.prototype.available=function(){return!!this.intrinsicFunctionNamespace.Date&&!!this.intrinsicFunctionNamespace.Date.now&&Mk.prototype.available.call(this)};var YtT=function(J,c){Mk.call(this,J,c);this.timeline=swf};
_.D(YtT,Mk);YtT.prototype.now=function(){return new St(this.intrinsicFunctionNamespace.performance.now(),this.timeline)};
YtT.prototype.available=function(){return!!this.intrinsicFunctionNamespace.performance&&!!this.intrinsicFunctionNamespace.performance.now&&Mk.prototype.available.call(this)};var ZhG=function(J){this.context=J;if(XDf===void 0)a:{var c,m,b=(c=J.global)==null?void 0:(m=c.document)==null?void 0:m.createElement("meta");if(b)try{b.httpEquiv="origin-trial";b.content="AxjhRadLCARYRJawRjMjq4U8V8okQvSnrBIJWdMajuEkN3/DfVAcLcFhMVrUWnOXagwlI8dQD84FwJDGj9ohqAYAAABveyJvcmlnaW4iOiJodHRwczovL2dvb2dsZWFkc2VydmljZXMuY29tOjQ0MyIsImZlYXR1cmUiOiJGZXRjaExhdGVyQVBJIiwiZXhwaXJ5IjoxNzI1NDA3OTk5LCJpc1RoaXJkUGFydHkiOnRydWV9";J.global.document.head.append(b);XDf=b;break a}catch(x){}XDf=void 0}},
XDf;
ZhG.prototype.isSupported=function(J){return w0D(this.context)!==void 0&&!(J==null||!J.endOfSession)&&!pd(this.context)&&!(J==null?0:J.attributionEnabled)&&!(J==null?0:J.customHeaders)&&!(J==null?0:J.customBody)};
ZhG.prototype.makeBeacon=function(J,c){if(!this.isSupported(c))throw new x8;return new Nk(this.context,J,c)};
var Nk=function(J,c,m){this.context=J;this.properties=m;this.JSC$7240_urlWithoutToken=c;var b;this.beaconMethod=(b=m==null?void 0:m.beaconMethod)!=null?b:"GET";J=w0D(this.context);if(J===void 0)throw Error();this.fetchLater=J;qtD(this,UOq(this))},qtD=function(J,c){J.beaconResult&&J.beaconResult.activated||(J.beaconAbort=new AbortController,J.beaconResult=J.fetchLater(c,{method:J.beaconMethod,
cache:"no-cache",mode:"no-cors",signal:J.beaconAbort.signal,activateAfter:96E4}))},UOq=function(J){J=J.JSC$7240_urlWithoutToken;
return(J.slice(-1)[0]==="&"?J:J+"&")+"flapi=1"};
Nk.prototype.deactivate=function(){this.beaconResult&&!this.beaconResult.activated&&this.beaconAbort&&(this.beaconAbort.abort(),this.beaconResult=void 0)};
Nk.prototype.sendNow=function(){};
Nk.prototype.setHeader=function(){};
_.eE.Object.defineProperties(Nk.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$7240_urlWithoutToken},
set:function(J){this.JSC$7240_urlWithoutToken=J;J=UOq(this);this.beaconResult&&this.beaconResult.activated||!this.beaconAbort||(this.beaconAbort.abort(),this.beaconResult=void 0);qtD(this,J)}},
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 Stu=function(J){this.context=J};
Stu.prototype.isSupported=function(){return!pd(this.context)&&!!this.context.global.fetch};
Stu.prototype.ping=function(){var J=this;return ZF.apply(null,_.L6(_.s$.apply(0,arguments).map(function(c){return bL(J.context.global.fetch(c,{method:"GET",cache:"no-cache",keepalive:!0,mode:"no-cors"})).pipe(sw(function(m){return m.status===200}))}))).pipe(uHu(function(c){return c}),Y$R())};
Stu.prototype.pingWithHeadersAndBody=function(J,c,m){for(var b=_.s$.apply(3,arguments),x=this,P=new Headers,p=_.M(c.entries()),t=p.next();!t.done;t=p.next()){var I=_.M(t.value);t=I.next().value;I=I.next().value;P.set(t,I)}var a,k=(a=J.keepAlive)!=null?a:!1;ZF.apply(null,_.L6(b.map(function(H){return bL(x.context.global.fetch(H,Object.assign({},{method:String(J.beaconMethod),cache:"no-cache"},k?{keepalive:!0}:{},{mode:"no-cors",headers:P,body:m}))).pipe(sw(function(T){return T.status===200}))}))).pipe(uHu(function(H){return H}),
Y$R())};var hjG,xNG;_.tF=function(){};
_.GD=function(J){return J};
hjG=function(J){var c=c||0;return function(){return J.apply(this,Array.prototype.slice.call(arguments,0,c))}};
_.IS=function(J){var c=!1,m;return function(){c||(m=J(),c=!0);return m}};
_.Kd=function(J,c){var m=0;return function(b){_.mo.clearTimeout(m);var x=arguments;m=_.mo.setTimeout(function(){J.apply(void 0,x)},c)}};
xNG=function(J,c){var m=0,b=!1,x=[],P=function(){m=0;b&&(b=!1,p())},p=function(){m=_.mo.setTimeout(P,c);
var t=x;x=[];J.apply(void 0,t)};
return function(t){x=arguments;m?b=!0:p()}};var $Or=function(){return iQ&&wT?wT.mobile:!dOJ()&&(LG("iPod")||LG("iPhone")||LG("Android")||LG("IEMobile"))},dOJ=function(){return iQ&&wT?!wT.mobile&&(LG("iPad")||LG("Android")||LG("Silk")):LG("iPad")||LG("Android")&&!LG("Mobile")||LG("Silk")};var G0J;_.Lw={};G0J="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");_.Lw.add=function(J,c,m){if(J!==null&&c in J)throw Error("pa`"+c);J[c]=m};
_.Lw.clear=function(J){for(var c in J)delete J[c]};
_.Lw.clone=function(J){var c={},m;for(m in J)c[m]=J[m];return c};
_.Lw.contains=function(J,c){return q$t(J,c)};
_.Lw.containsKey=function(J,c){return J!==null&&c in J};
_.Lw.containsValue=q$t;_.Lw.create=h$o;_.Lw.createImmutableView=function(J){var c=J;Object.isFrozen&&!Object.isFrozen(J)&&(c=Object.create(J),Object.freeze(c));return c};
_.Lw.createSet=d2e;_.Lw.equals=function(J,c){for(var m in J)if(!(m in c)||J[m]!==c[m])return!1;for(var b in c)if(!(b in J))return!1;return!0};
_.Lw.every=function(J,c,m){for(var b in J)if(!c.call(m,J[b],b,J))return!1;return!0};
_.Lw.extend=function(J,c){for(var m,b,x=1;x<arguments.length;x++){b=arguments[x];for(m in b)J[m]=b[m];for(var P=0;P<G0J.length;P++)m=G0J[P],Object.prototype.hasOwnProperty.call(b,m)&&(J[m]=b[m])}};
_.Lw.filter=function(J,c,m){var b={},x;for(x in J)c.call(m,J[x],x,J)&&(b[x]=J[x]);return b};
_.Lw.findKey=U2f;_.Lw.findValue=function(J,c,m){return(c=U2f(J,c,m))&&J[c]};
_.Lw.forEach=function(J,c,m){for(var b in J)c.call(m,J[b],b,J)};
_.Lw.get=function(J,c,m){return J!==null&&c in J?J[c]:m};
_.Lw.getAllPropertyNames=function(J,c,m){if(!J)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return Z1J(J);for(var b={};J&&(J!==Object.prototype||c)&&(J!==Function.prototype||m);){for(var x=Object.getOwnPropertyNames(J),P=0;P<x.length;P++)b[x[P]]=!0;J=Object.getPrototypeOf(J)}return Z1J(b)};
_.Lw.getAnyKey=function(J){for(var c in J)return c};
_.Lw.getAnyValue=function(J){for(var c in J)return J[c]};
_.Lw.getCount=function(J){var c=0,m;for(m in J)c++;return c};
_.Lw.getKeys=Z1J;_.Lw.getSuperClass=function(J){return(J=Object.getPrototypeOf(J.prototype))&&J.constructor};
_.Lw.getValueByKeys=function(J,c){var m=_.yJ(c),b=m?c:arguments;for(m=m?0:1;m<b.length;m++){if(J==null)return;J=J[b[m]]}return J};
_.Lw.getValues=function(J){var c=[],m=0,b;for(b in J)c[m++]=J[b];return c};
_.Lw.isEmpty=function(J){for(var c in J)return!1;return!0};
_.Lw.isImmutableView=function(J){return!!Object.isFrozen&&Object.isFrozen(J)};
_.Lw.map=function(J,c,m){var b={},x;for(x in J)b[x]=c.call(m,J[x],x,J);return b};
_.Lw.remove=function(J,c){var m;(m=c in J)&&delete J[c];return m};
_.Lw.set=function(J,c,m){J[c]=m};
_.Lw.setIfUndefined=function(J,c,m){return c in J?J[c]:J[c]=m};
_.Lw.setWithReturnValueIfNotSet=function(J,c,m){if(c in J)return J[c];m=m();return J[c]=m};
_.Lw.some=function(J,c,m){for(var b in J)if(c.call(m,J[b],b,J))return!0;return!1};
_.Lw.transpose=function(J){var c={},m;for(m in J)c[J[m]]=m;return c};
_.Lw.unsafeClone=S$e;var Cd=function(J,c,m,b,x){this.allowedElements=J;this.elementPolicies=c;this.allowedGlobalAttributes=m;this.globalAttributePolicies=b;this.globallyAllowedAttributePrefixes=x},Ent=function(J,c,m){m=J.elementPolicies.get(m);
return(m==null?0:m.has(c))?m.get(c):J.allowedGlobalAttributes.has(c)?{policyAction:1}:(m=J.globalAttributePolicies.get(c))?m:J.globallyAllowedAttributePrefixes&&[].concat(_.L6(J.globallyAllowedAttributePrefixes)).some(function(b){return c.indexOf(b)===0})?{policyAction:1}:{policyAction:0}};var vnu="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(" "),
OhT=[["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}]])]],A9o="title aria-atomic aria-autocomplete aria-busy aria-checked aria-current aria-disabled aria-dropeffect aria-expanded aria-haspopup aria-hidden aria-invalid aria-label aria-level aria-live aria-multiline aria-multiselectable aria-orientation aria-posinset aria-pressed aria-readonly aria-relevant aria-required aria-selected aria-setsize aria-sort aria-valuemax aria-valuemin aria-valuenow aria-valuetext alt align autocapitalize autocomplete autocorrect autofocus autoplay bgcolor border cellpadding cellspacing checked cite color cols colspan controls controlslist coords crossorigin datetime disabled download draggable enctype face formenctype frameborder height hreflang hidden inert ismap label lang loop max maxlength media minlength min multiple muted nonce open playsinline placeholder poster preload rel required reversed role rows rowspan selected shape size sizes slot span spellcheck start step summary translate type usemap valign value width wrap itemscope itemtype itemid itemprop itemref".split(" "),
Rj2=[["dir",{policyAction:3,conditions:VU(function(){return new Map([["dir",new Set(["auto","ltr","rtl"])]])})}],
["async",{policyAction:3,conditions:VU(function(){return new Map([["async",new Set(["async"])]])})}],
["loading",{policyAction:3,conditions:VU(function(){return new Map([["loading",new Set(["eager","lazy"])]])})}],
["target",{policyAction:3,conditions:VU(function(){return new Map([["target",new Set(["_self","_blank"])]])})}]],onT=new Cd(new Set(vnu),new Map(OhT),new Set(A9o),new Map(Rj2)),Qjr=new Cd(new Set(vnu.concat(["BUTTON",
"INPUT"])),new Map(OhT),new Set(VU(function(){return A9o.concat(["class","id","name"])})),new Map(VU(function(){return Rj2.concat([["style",
{policyAction:1}]])})));var ejm,jjQ,lkt;ejm=function(J,c,m,b){this.JSC$7300_sanitizerTable=J;this.styleElementSanitizer=c;this.styleAttributeSanitizer=m;this.JSC$7300_resourceUrlPolicy=b;this.changes=[]};
_.FiJ=function(J,c){var m=document.implementation.createHTMLDocument("");J=jjQ(J,c,m);m=m.body;m.appendChild(J);m=(new XMLSerializer).serializeToString(m);m=m.slice(m.indexOf(">")+1,m.lastIndexOf("</"));return us(m)};
jjQ=function(J,c,m){c=G$J(c,m);c=document.createTreeWalker(c,5,function(t){if(t.nodeType===3)t=1;else if(vhD(t))if(t=Ehu(t),t===null)t=2;else{var I=J.JSC$7300_sanitizerTable;t=t!=="FORM"&&(I.allowedElements.has(t)||I.elementPolicies.has(t))?1:2}else t=2;return t});
for(var b=c.nextNode(),x=m.createDocumentFragment(),P=x;b!==null;){var p=void 0;if(b.nodeType===3)J.styleElementSanitizer&&P.nodeName==="STYLE"?(b=J.styleElementSanitizer(b.data),p=J.createTextNode(b)):p=J.createTextNode(b.data);else if(vhD(b))p=lkt(J,b,m);else throw Error("da");P.appendChild(p);if(b=c.firstChild())P=p;else for(;!(b=c.nextSibling())&&(b=c.parentNode());)P=P.parentNode}return x};
ejm.prototype.createTextNode=function(J){return document.createTextNode(J)};
lkt=function(J,c,m){var b,x=Ehu(c);m=m.createElement(x);c=c.attributes;for(var P=_.M(c),p=P.next();!p.done;p=P.next()){var t=p.value;p=t.name;t=t.value;var I=Ent(J.JSC$7300_sanitizerTable,p,x);a:{if(b=I.conditions){b=_.M(b);for(var a=b.next();!a.done;a=b.next()){var k=_.M(a.value);a=k.next().value;k=k.next().value;var H=void 0;if((a=(H=c.getNamedItem(a))==null?void 0:H.value)&&!k.has(a)){b=!1;break a}}}b=!0}if(b)switch(I.policyAction){case 1:Jk(m,p,t);break;case 2:I=_.kRo(t);t=I!==void 0&&yxe.indexOf(I.toLowerCase())!==
-1?t:"about:invalid#zClosurez";Jk(m,p,t);break;case 3:Jk(m,p,t.toLowerCase());break;case 4:J.styleAttributeSanitizer?(t=J.styleAttributeSanitizer(t),Jk(m,p,t)):Jk(m,p,t);break;case 5:J.JSC$7300_resourceUrlPolicy?(I={type:2,attributeName:p,elementName:x},t=$2q(t),(t=J.JSC$7300_resourceUrlPolicy(t,I))&&Jk(m,p,t.toString())):Jk(m,p,t);break;case 6:if(J.JSC$7300_resourceUrlPolicy){I={type:2,attributeName:p,elementName:x};b=[];t=_.M(t.split(","));for(a=t.next();!a.done;a=t.next())k=_.M(a.value.trim().split(/\s+/,
2)),a=k.next().value,k=k.next().value,b.push({url:a,descriptor:k});t={parts:[]};b=_.M(b);for(a=b.next();!a.done;a=b.next())a=a.value,k=$2q(a.url),(k=J.JSC$7300_resourceUrlPolicy(k,I))&&t.parts.push({url:k.toString(),descriptor:a.descriptor});Jk(m,p,O1q(t))}else Jk(m,p,t)}}return m};
_.y9G=VU(function(){return new ejm(onT)});
_.BND=VU(function(){return new ejm(Qjr)});var gnr=function(){this.calledBuild=!1;this.JSC$7312_sanitizerTable=onT},JqB=function(){gnr.apply(this,arguments)};
_.D(JqB,gnr);JqB.prototype.build=function(){if(this.calledBuild)throw Error("ra");this.calledBuild=!0;return new ejm(this.JSC$7312_sanitizerTable,void 0,void 0,this.JSC$7312_resourceUrlPolicy)};var cqC=/[^#]*/;var eU=function(J){try{return!!J&&J.location.href!=null&&Y0(J,"foo")}catch(c){return!1}},bG2=function(J){var c=mfj;
if(c)for(var m in c)Object.prototype.hasOwnProperty.call(c,m)&&J(c[m],m,c)},xfj=function(){var J=[];
bG2(function(c){J.push(c)});
return J},mfj={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"},V2C=_.IS(function(){return xfj()}),M2j=function(){var J=PQL("IFRAME"),
c={};
_.vG(V2C(),function(m){J.sandbox&&J.sandbox.supports&&J.sandbox.supports(m)&&(c[m]=!0)});
return c},PQL=function(J,c){c=c===void 0?document:c;
return c.createElement(String(J).toLowerCase())};var aS;_.fZ=function(J,c,m){return Math.min(Math.max(J,c),m)};
aS=function(J,c,m){return J+m*(c-J)};_.zO=function(J,c){this.x=J!==void 0?J:0;this.y=c!==void 0?c:0};
_.V=_.zO.prototype;_.V.clone=function(){return new _.zO(this.x,this.y)};
_.V.equals=function(J){return J instanceof _.zO&&(this==J?!0:this&&J?this.x==J.x&&this.y==J.y:!1)};
_.V.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
_.V.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
_.V.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
_.V.translate=function(J,c){J instanceof _.zO?(this.x+=J.x,this.y+=J.y):(this.x+=Number(J),typeof c==="number"&&(this.y+=c));return this};
_.V.scale=function(J,c){this.x*=J;this.y*=typeof c==="number"?c:J;return this};_.tk=function(J,c){this.width=J;this.height=c};
_.V=_.tk.prototype;_.V.clone=function(){return new _.tk(this.width,this.height)};
_.V.area=function(){return this.width*this.height};
_.V.aspectRatio=function(){return this.width/this.height};
_.V.isEmpty=function(){return!this.area()};
_.V.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.V.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.V.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.V.scale=function(J,c){this.width*=J;this.height*=typeof c==="number"?c:J;return this};var Sg=function(J,c){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=J===Dl2&&c||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=pr6};
Sg.prototype.toString=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
var NTQ=function(J){return J instanceof Sg&&J.constructor===Sg&&J.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===pr6?J.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"},pr6={},Dl2={};
new Sg(Dl2,"");var Cw,Tj,HQ,t2$,CQ2,Ko6,uK,kDu,iGQ,HGQ,wC,ntZ,Wo$,Dfj,Loj,zuC,ue2,f3a,Ym2,Acr,Xr2,qmQ,UfB,ZGB,k8;Cw=function(J){return J?new k8(_.fw(J)):YNr||(YNr=new k8)};
_.FG=function(J,c){return typeof c==="string"?J.getElementById(c):c};
Tj=function(J,c){return(c||document).getElementsByTagName(String(J))};
_.I3L=function(J){return t2$("yt-formatted-string","paper-input-input",J)};
HQ=function(J,c,m,b){J=b||J;return(c=c&&c!="*"?String(c).toUpperCase():"")||m?J.querySelectorAll(c+(m?"."+m:"")):J.getElementsByTagName("*")};
t2$=function(J,c,m){var b=document,x=J&&J!="*"?String(J).toUpperCase():"";return x||c?(m||b).querySelector(x+(c?"."+c:"")):HQ(b,J,c,m)[0]||null};
CQ2=function(J,c){_.Lw.forEach(c,function(m,b){b=="style"?J.style.cssText=m:b=="class"?J.className=m:b=="for"?J.htmlFor=m:Ko6.hasOwnProperty(b)?J.setAttribute(Ko6[b],m):_.xt(b,"aria-")||_.xt(b,"data-")?J.setAttribute(b,m):J[b]=m})};
Ko6={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"};_.Iw=function(J){J=(J||window).document;J=J.compatMode=="CSS1Compat"?J.documentElement:J.body;return new _.tk(J.clientWidth,J.clientHeight)};
_.a3a=function(J){var c=_.i_(J);J=J.defaultView;return new _.zO(J.pageXOffset||c.scrollLeft,J.pageYOffset||c.scrollTop)};
_.i_=function(J){return J.scrollingElement?J.scrollingElement:_.ms||J.compatMode!="CSS1Compat"?J.body||J.documentElement:J.documentElement};
uK=function(J){return J?J.defaultView:window};
_.nd=function(J,c,m){return kDu(document,arguments)};
kDu=function(J,c){var m=c[1],b=HGQ(J,String(c[0]));m&&(typeof m==="string"?b.className=m:Array.isArray(m)?b.className=m.join(" "):CQ2(b,m));c.length>2&&iGQ(J,b,c,2);return b};
iGQ=function(J,c,m,b){function x(t){t&&c.appendChild(typeof t==="string"?J.createTextNode(t):t)}
for(;b<m.length;b++){var P=m[b];if(!_.yJ(P)||_.cB(P)&&P.nodeType>0)x(P);else{a:{if(P&&typeof P.length=="number"){if(_.cB(P)){var p=typeof P.item=="function"||typeof P.item=="string";break a}if(typeof P==="function"){p=typeof P.item=="function";break a}}p=!1}_.vG(p?_.Fe(P):P,x)}}};
_.id=function(J){return HGQ(document,J)};
HGQ=function(J,c){c=String(c);J.contentType==="application/xhtml+xml"&&(c=c.toLowerCase());return J.createElement(c)};
_.Ty=function(){return document.createTextNode("\n")};
wC=function(J){if(J.nodeType!=1)return!1;switch(J.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};
ntZ=function(J,c){iGQ(_.fw(J),J,arguments,1)};
_.rC=function(J){for(var c;c=J.firstChild;)J.removeChild(c)};
_.sK=function(J,c){c.parentNode&&c.parentNode.insertBefore(J,c)};
_.Ld=function(J,c){c.parentNode&&c.parentNode.insertBefore(J,c.nextSibling)};
_.nc=function(J){return J&&J.parentNode?J.parentNode.removeChild(J):null};
_.TTL=function(J,c){var m=c.parentNode;m&&m.replaceChild(J,c)};
_.wrj=function(J){var c,m=J.parentNode;if(m&&m.nodeType!=11)if(J.removeNode)J.removeNode(!1);else{for(;c=J.firstChild;)m.insertBefore(c,J);_.nc(J)}};
_.DK=function(J){return J.children!=void 0?J.children:Array.prototype.filter.call(J.childNodes,function(c){return c.nodeType==1})};
_.sR6=function(J){return J.nextElementSibling!==void 0?J.nextElementSibling:_.rqB(J.nextSibling,!0)};
_.rqB=function(J,c){for(;J&&J.nodeType!=1;)J=c?J.nextSibling:J.previousSibling;return J};
_.F_=function(J){return _.cB(J)&&J.nodeType==1};
_.Gj=function(J,c){if(!J||!c)return!1;if(J.contains&&c.nodeType==1)return J==c||J.contains(c);if(typeof J.compareDocumentPosition!="undefined")return J==c||!!(J.compareDocumentPosition(c)&16);for(;c&&J!=c;)c=c.parentNode;return c==J};
Wo$=function(J,c){if(J==c)return 0;if(J.compareDocumentPosition)return J.compareDocumentPosition(c)&2?1:-1;if("sourceIndex"in J||J.parentNode&&"sourceIndex"in J.parentNode){var m=J.nodeType==1,b=c.nodeType==1;if(m&&b)return J.sourceIndex-c.sourceIndex;var x=J.parentNode,P=c.parentNode;return x==P?Loj(J,c):!m&&_.Gj(x,c)?-1*Dfj(J,c):!b&&_.Gj(P,J)?Dfj(c,J):(m?J.sourceIndex:x.sourceIndex)-(b?c.sourceIndex:P.sourceIndex)}b=_.fw(J);m=b.createRange();m.selectNode(J);m.collapse(!0);J=b.createRange();J.selectNode(c);
J.collapse(!0);return m.compareBoundaryPoints(_.mo.Range.START_TO_END,J)};
Dfj=function(J,c){var m=J.parentNode;if(m==c)return-1;for(;c.parentNode!=m;)c=c.parentNode;return Loj(c,J)};
Loj=function(J,c){for(;c=c.previousSibling;)if(c==J)return-1;return 1};
zuC=function(J){var c,m=arguments.length;if(!m)return null;if(m==1)return arguments[0];var b=[],x=Infinity;for(c=0;c<m;c++){for(var P=[],p=arguments[c];p;)P.unshift(p),p=p.parentNode;b.push(P);x=Math.min(x,P.length)}P=null;for(c=0;c<x;c++){p=b[0][c];for(var t=1;t<m;t++)if(p!=b[t][c])return P;P=p}return P};
_.fw=function(J){return J.nodeType==9?J:J.ownerDocument||J.document};
ue2=function(J){return J.contentDocument||J.contentWindow.document};
_.WQ=function(J,c){if("textContent"in J)J.textContent=c;else if(J.nodeType==3)J.data=String(c);else if(J.firstChild&&J.firstChild.nodeType==3){for(;J.lastChild!=J.firstChild;)J.removeChild(J.lastChild);J.firstChild.data=String(c)}else _.rC(J),J.appendChild(_.fw(J).createTextNode(String(c)))};
f3a={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};Ym2={IMG:" ",BR:"\n"};Acr=function(J){var c;J.tagName=="A"&&J.hasAttribute("href")||J.tagName=="INPUT"||J.tagName=="TEXTAREA"||J.tagName=="SELECT"||J.tagName=="BUTTON"?c=!J.disabled&&(!J.hasAttribute("tabindex")||Xr2(J)):c=J.hasAttribute("tabindex")&&Xr2(J);return c};
Xr2=function(J){J=J.tabIndex;return typeof J==="number"&&J>=0&&J<32768};
qmQ=function(J){var c=[];ZGB(J,c,!0);J=c.join("");J=J.replace(/ \xAD /g," ").replace(/\xAD/g,"");J=J.replace(/\u200B/g,"");J=J.replace(/ +/g," ");J!=" "&&(J=J.replace(/^\s*/,""));return J};
UfB=function(J){var c=[];ZGB(J,c,!1);return c.join("")};
ZGB=function(J,c,m){if(!(J.nodeName in f3a))if(J.nodeType==3)m?c.push(String(J.nodeValue).replace(/(\r\n|\r|\n)/g,"")):c.push(J.nodeValue);else if(J.nodeName in Ym2)c.push(Ym2[J.nodeName]);else for(J=J.firstChild;J;)ZGB(J,c,m),J=J.nextSibling};
_.Sm_=function(J,c,m){if(!c&&!m)return null;var b=c?String(c).toUpperCase():null;return _.qA(J,function(x){return(!b||x.nodeName==b)&&(!m||typeof x.className==="string"&&_.Aq(x.className.split(/\s+/),m))},!0)};
_.qA=function(J,c,m){J&&!m&&(J=J.parentNode);for(m=0;J;){if(c(J))return J;J=J.parentNode;m++}return null};
k8=function(J){this.JSC$7337_document_=J||_.mo.document||document};
_.V=k8.prototype;_.V.getElement=function(J){return _.FG(this.JSC$7337_document_,J)};
_.V.$=k8.prototype.getElement;_.V.getElementsByTagName=function(J,c){return(c||this.JSC$7337_document_).getElementsByTagName(String(J))};
_.V.getElementsByTagNameAndClass=function(J,c,m){return HQ(this.JSC$7337_document_,J,c,m)};
_.V.$$=k8.prototype.getElementsByTagNameAndClass;_.V.setProperties=CQ2;_.V.JSC$7339_createDom=function(J,c,m){return kDu(this.JSC$7337_document_,arguments)};
_.V.createElement=function(J){return HGQ(this.JSC$7337_document_,J)};
_.V.createTextNode=function(J){return this.JSC$7337_document_.createTextNode(String(J))};
_.V.getWindow=function(){return this.JSC$7337_document_.defaultView};
var Kw=function(J){return _.a3a(J.JSC$7337_document_)};
_.V=k8.prototype;_.V.appendChild=function(J,c){J.appendChild(c)};
_.V.append=ntZ;_.V.canHaveChildren=wC;_.V.removeNode=_.nc;_.V.getChildren=_.DK;_.V.contains=_.Gj;_.V=bK.prototype;_.V.getWidth=function(){return this.right-this.left};
_.V.getHeight=function(){return this.bottom-this.top};
_.V.clone=function(){return new bK(this.top,this.right,this.bottom,this.left)};
_.V.contains=function(J){return this&&J?J instanceof bK?J.left>=this.left&&J.right<=this.right&&J.top>=this.top&&J.bottom<=this.bottom:J.x>=this.left&&J.x<=this.right&&J.y>=this.top&&J.y<=this.bottom:!1};
_.V.expand=function(J,c,m,b){_.cB(J)?(this.top-=J.top,this.right+=J.right,this.bottom+=J.bottom,this.left-=J.left):(this.top-=J,this.right+=Number(c),this.bottom+=Number(m),this.left-=Number(b));return this};
_.V.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};
_.V.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};
_.V.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};
_.V.translate=function(J,c){J instanceof _.zO?(this.left+=J.x,this.right+=J.x,this.top+=J.y,this.bottom+=J.y):(this.left+=J,this.right+=J,typeof c==="number"&&(this.top+=c,this.bottom+=c));return this};
_.V.scale=function(J,c){c=typeof c==="number"?c:J;this.left*=J;this.right*=J;this.top*=c;this.bottom*=c;return this};var zy=function(J,c,m,b){this.left=J;this.top=c;this.width=m;this.height=b};
_.V=zy.prototype;_.V.clone=function(){return new zy(this.left,this.top,this.width,this.height)};
_.V.boundingRect=function(J){var c=Math.max(this.left+this.width,J.left+J.width),m=Math.max(this.top+this.height,J.top+J.height);this.left=Math.min(this.left,J.left);this.top=Math.min(this.top,J.top);this.width=c-this.left;this.height=m-this.top};
_.V.contains=function(J){return J instanceof _.zO?J.x>=this.left&&J.x<=this.left+this.width&&J.y>=this.top&&J.y<=this.top+this.height:this.left<=J.left&&this.left+this.width>=J.left+J.width&&this.top<=J.top&&this.top+this.height>=J.top+J.height};
_.V.distance=function(J){var c=J.x<this.left?this.left-J.x:Math.max(J.x-(this.left+this.width),0);J=J.y<this.top?this.top-J.y:Math.max(J.y-(this.top+this.height),0);return Math.sqrt(c*c+J*J)};
_.V.getSize=function(){return new _.tk(this.width,this.height)};
_.V.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};
_.V.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};
_.V.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};
_.V.translate=function(J,c){J instanceof _.zO?(this.left+=J.x,this.top+=J.y):(this.left+=J,typeof c==="number"&&(this.top+=c));return this};
_.V.scale=function(J,c){c=typeof c==="number"?c:J;this.left*=J;this.width*=J;this.top*=c;this.height*=c;return this};var dfZ,Y8,Idt,fd,vt2,EtQ,OGC,hbJ,Aq_,otQ;_.u_=function(J,c,m){if(typeof c==="string")(c=_.hua(J,c))&&(J.style[c]=m);else for(var b in c){m=J;var x=c[b],P=_.hua(m,b);P&&(m.style[P]=x)}};
dfZ={};_.hua=function(J,c){var m=dfZ[c];if(!m){var b=_.Cl(c);m=b;J.style[b]===void 0&&(b=(_.ms?"Webkit":_.ce?"Moz":null)+P7m(b),J.style[b]!==void 0&&(m=b));dfZ[c]=m}return m};
_.H8=function(J,c){var m=_.fw(J);return m.defaultView&&m.defaultView.getComputedStyle&&(J=m.defaultView.getComputedStyle(J,null))?J[c]||J.getPropertyValue(c)||"":""};
_.$9=function(J,c){return _.H8(J,c)||(J.currentStyle?J.currentStyle[c]:null)||J.style&&J.style[c]};
_.$f8=function(J){return _.$9(J,"position")};
Y8=function(J,c,m){if(c instanceof _.zO){var b=c.x;c=c.y}else b=c,c=m;J.style.left=fd(b,!1);J.style.top=fd(c,!1)};
Idt=function(J){try{return J.getBoundingClientRect()}catch(c){return{left:0,top:0,right:0,bottom:0}}};
_.Xt=function(J){var c=_.fw(J),m=new _.zO(0,0);if(J==(c?_.fw(c):document).documentElement)return m;J=Idt(J);c=Kw(Cw(c));m.x=J.left+c.x;m.y=J.top+c.y;return m};
_.GDz=function(J,c,m){if(c instanceof _.tk)m=c.height,c=c.width;else if(m==void 0)throw Error("sa");J.style.width=fd(c,!0);J.style.height=fd(m,!0)};
fd=function(J,c){typeof J=="number"&&(J=(c?Math.round(J):J)+"px");return J};
vt2=function(J){return EtQ(J)};
EtQ=function(J){var c=OGC;if(_.$9(J,"display")!="none")return c(J);var m=J.style,b=m.display,x=m.visibility,P=m.position;m.visibility="hidden";m.position="absolute";m.display="inline";J=c(J);m.display=b;m.position=P;m.visibility=x;return J};
OGC=function(J){var c=J.offsetWidth,m=J.offsetHeight,b=_.ms&&!c&&!m;return(c===void 0||b)&&J.getBoundingClientRect?(J=Idt(J),new _.tk(J.right-J.left,J.bottom-J.top)):new _.tk(c,m)};
hbJ=function(J){var c=_.Xt(J);J=EtQ(J);return new zy(c.x,c.y,J.width,J.height)};
Aq_=function(J,c){J=J.style;"opacity"in J?J.opacity=c:"MozOpacity"in J?J.MozOpacity=c:"filter"in J&&(J.filter=c===""?"":"alpha(opacity="+Number(c)*100+")")};
_.oa=function(J,c){J.style.display=c?"":"none"};
_.RuQ=function(J){return"rtl"==_.$9(J,"direction")};
otQ=function(J){var c=_.H8(J,"marginLeft"),m=_.H8(J,"marginRight"),b=_.H8(J,"marginTop");J=_.H8(J,"marginBottom");return new bK(parseFloat(b),parseFloat(m),parseFloat(J),parseFloat(c))};
_.QR_=function(J){var c=_.H8(J,"borderLeftWidth"),m=_.H8(J,"borderRightWidth"),b=_.H8(J,"borderTopWidth");J=_.H8(J,"borderBottomWidth");return new bK(parseFloat(b),parseFloat(m),parseFloat(J),parseFloat(c))};var XY=function(J){this.context=J};
XY.prototype.isSupported=function(J){return(J==null?0:J.attributionEnabled)||(J==null?void 0:J.beaconMethod)==="POST"||(J==null?0:J.customHeaders)||(J==null?0:J.customBody)||(J==null?0:J.keepAlive)?!1:!pd(this.context)};
XY.prototype.ping=function(){var J=this;return kL(_.s$.apply(0,arguments).map(function(c){try{var m=J.context.global,b=!1;b=b===void 0?!1:b;m.google_image_requests||(m.google_image_requests=[]);var x=PQL("IMG",m.document);b&&(x.attributionSrc="");x.src=c;m.google_image_requests.push(x);return!0}catch(P){return!1}}).every(function(c){return c}))};
XY.prototype.pingWithHeadersAndBody=function(J,c,m){this.ping.apply(this,_.L6(_.s$.apply(3,arguments)))};var euZ=function(J){this.context=J};
euZ.prototype.isSupported=function(J){return jRB&&!pd(this.context)&&R$R(this.context)!==void 0&&!(J==null?0:J.attributionEnabled)&&(J==null?void 0:J.beaconMethod)!=="POST"&&!(J==null?0:J.customHeaders)&&!(J==null?0:J.customBody)};
euZ.prototype.makeBeacon=function(J,c){if(!this.isSupported(c))throw new x8;return new ZK(this.context,J)};
var jRB=!1,ZK=function(J,c){this.context=J;this.JSC$7358_urlWithoutToken=c;J=R$R(this.context);if(J===void 0)throw Error();this.wrappedBeacon=new J(FoC(this),{})},FoC=function(J){J=J.JSC$7358_urlWithoutToken;
return(J.slice(-1)[0]==="&"?J:J+"&")+"pbapi=1"};
ZK.prototype.deactivate=function(){this.wrappedBeacon.deactivate()};
ZK.prototype.sendNow=function(){this.wrappedBeacon.sendNow()};
ZK.prototype.setHeader=function(){};
_.eE.Object.defineProperties(ZK.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$7358_urlWithoutToken},
set:function(J){this.JSC$7358_urlWithoutToken=J;this.wrappedBeacon.setURL(FoC(this))}},
method:{configurable:!0,enumerable:!0,get:function(){return"GET"},
set:function(J){if(J!=="GET")throw new x8;}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.wrappedBeacon.pending}}});var l3Z=function(J){this.context=J};
l3Z.prototype.isSupported=function(J){if((J==null?0:J.attributionEnabled)||(J==null?void 0:J.beaconMethod)==="GET"||(J==null?0:J.customHeaders)||(J==null?0:J.customBody)||(J==null?0:J.keepAlive))return!1;var c;return!pd(this.context)&&((c=this.context.global.navigator)==null?void 0:c.sendBeacon)!==void 0};
l3Z.prototype.ping=function(){var J=this;return kL(_.s$.apply(0,arguments).map(function(c){var m;return(m=J.context.global.navigator)==null?void 0:m.sendBeacon(c)}).every(function(c){return c}))};
l3Z.prototype.pingWithHeadersAndBody=function(J,c,m){this.ping.apply(this,_.L6(_.s$.apply(3,arguments)))};var pw=function(J){this.value=J},Rw=function(J,c){return kL(J.value).pipe(Pm(c))},Ft=new pw(!1),wao=new pw(!0);var Uz=function(J){this.value=J;this.releasedSubject=new x0};
Uz.prototype.release=function(){this.releasedSubject.next();this.releasedSubject.complete();this.value=void 0};
_.eE.Object.defineProperties(Uz.prototype,{ref:{configurable:!0,enumerable:!0,get:function(){return this.value}},
JSC$7371_released:{configurable:!0,enumerable:!0,get:function(){return this.releasedSubject}}});var b6r=["FRAME","IMG","IFRAME"],yGR=/^[01](px)?$/,mMq=function(){this.pendingImagesBlockLoad=this.crossDomainLoadedDefault=!1},cDm=function(){var J=new mMq;
J.crossDomainLoadedDefault=!0;J.pendingImagesBlockLoad=!0;return J};var yq_=function(J,c){var m=ttm(J);if(m)if(m.onCreativeLoad)m.onCreativeLoad(c);else{var b=c?[c]:[],x=function(P){for(var p=0;p<b.length;++p)try{b[p](1,P)}catch(t){}b={push:function(t){t(1,P)}}};
m.onCreativeLoad=function(P){b.push(P)};
m.setAttribute("data-creative-load-listener","");m.addEventListener("creativeLoad",function(P){x(P.detail)});
_.mo.addEventListener("message",function(P){N8r(m,x,P)})}};var qk=function(J,c){var m=this;this.global=J;this.parentContext=c;this.JSC$7382_onVisibilityChange=this.document?ZF(kL(!0),YL(this.document,"visibilitychange")).pipe(hD(this.parentContext.performanceMonitor,748),sw(function(){return m.getVisibilityState()}),vR()):kL("visible");
this.document?YL(this.document,"DOMContentLoaded").pipe(hD(this.parentContext.performanceMonitor,739),Ew(1)):kL(F_2("DOMContentLoaded"))},TmT=function(J){return J.document!==null&&J.document.visibilityState!==void 0};
qk.prototype.getVisibilityState=function(){return this.document?this.document.visibilityState:"visible"};
qk.prototype.querySelector=function(J){return this.document?this.document.querySelector(J):null};
qk.prototype.querySelectorAll=function(J){return this.document?_.Fe(this.document.querySelectorAll(J)):[]};
qk.prototype.elementFromPoint=function(J,c){if(!this.document||this.document===null||typeof this.document.elementFromPoint!=="function")return null;J=this.document.elementFromPoint(J,c);return J===null?null:new Uz(J)};
var pau=function(J,c,m){m=m===void 0?!1:m;if(c.ref===void 0||!J.document)return kL(c).pipe(hD(J.parentContext.performanceMonitor,749));var b=new Qu(1),x=function(){b.next(c)};
m||yq_(c.ref,x);xM2(c.ref,x);return b.pipe(hD(J.parentContext.performanceMonitor,749),Ew(1))};
_.eE.Object.defineProperties(qk.prototype,{document:{configurable:!0,enumerable:!0,get:function(){return Y0(this.global,"document")?this.global.document||null:null}}});var IFm=_.Oo(["https://www.googleadservices.com/pagead/managed/js/activeview/","/reach_worklet.html"]),KNG=_.Oo(["./reach_worklet.js"]),CLf=_.Oo(["./reach_worklet.js"]),BTQ=_.Oo(["./reach_worklet.html"]),gtQ=_.Oo(["./reach_worklet.js"]),J8Q=_.Oo(["./reach_worklet.js"]);_.cm(BTQ);_.cm(gtQ);_.cm(J8Q);var $0={left:0,top:0,width:0,height:0};var c8j,mu2,bQu,xuu,js,PCZ,M66,pBC,o5m,Q4T,I_a,Kju;c8j=function(J,c,m,b,x,P,p){var t="";J&&(t+=J+":");m&&(t+="//",c&&(t+=c+"@"),t+=m,b&&(t+=":"+b));x&&(t+=x);P&&(t+="?"+P);p&&(t+="#"+p);return t};
mu2=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");_.Q6=function(J){return J.match(mu2)};
_.so=function(J,c){return J?c?decodeURI(J):decodeURIComponent(J):J};
bQu=function(J){J=_.Q6(J)[1]||null;!J&&_.mo.self&&_.mo.self.location&&(J=_.mo.self.location.protocol.slice(0,-1));return J?J.toLowerCase():""};
_.es=function(J){return _.so(_.Q6(J)[3]||null,!0)};
_.NU=function(J){return _.so(_.Q6(J)[5]||null,!0)};
_.c6r=function(J){var c=J.indexOf("#");return c<0?null:J.slice(c+1)};
xuu=function(J){J=_.Q6(J);return c8j(J[1],J[2],J[3],J[4])};
_.V6L=function(J){J=_.Q6(J);return c8j(J[1],null,J[3],J[4])};
_.Gv=function(J){J=_.Q6(J);return c8j(null,null,null,null,J[5],J[6],J[7])};
_.eK=function(J){var c=J.indexOf("#");return c<0?J:J.slice(0,c)};
js=function(J,c){J=_.Q6(J);c=_.Q6(c);return J[3]==c[3]&&J[1]==c[1]&&J[4]==c[4]};
PCZ=function(J,c){if(J){J=J.split("&");for(var m=0;m<J.length;m++){var b=J[m].indexOf("="),x=null;if(b>=0){var P=J[m].substring(0,b);x=J[m].substring(b+1)}else P=J[m];c(P,x?lN(x):"")}}};
M66=function(J){var c=J.indexOf("#");c<0&&(c=J.length);var m=J.indexOf("?");if(m<0||m>c){m=c;var b=""}else b=J.substring(m+1,c);return[J.slice(0,m),b,J.slice(c)]};
pBC=function(J,c){return c?J?J+"&"+c:c:J};
_.NLQ=function(J,c){if(!c)return J;J=M66(J);J[1]=pBC(J[1],c);return J[0]+(J[1]?"?"+J[1]:"")+J[2]};
_.t62=function(J,c,m){if(Array.isArray(c))for(var b=0;b<c.length;b++)_.t62(J,String(c[b]),m);else c!=null&&m.push(J+(c===""?"":"="+_.Eb(c)))};
_.Ir=function(J){var c=[],m;for(m in J)_.t62(m,J[m],c);return c.join("&")};
_.oP=function(J,c){c=_.Ir(c);return _.NLQ(J,c)};
_.UK=function(J,c,m){m=m!=null?"="+_.Eb(m):"";return _.NLQ(J,c+m)};
o5m=function(J,c,m,b){for(var x=m.length;(c=J.indexOf(m,c))>=0&&c<b;){var P=J.charCodeAt(c-1);if(P==38||P==63)if(P=J.charCodeAt(c+x),!P||P==61||P==38||P==35)return c;c+=x+1}return-1};
Q4T=/#|$/;_.E7=function(J,c){var m=J.search(Q4T),b=o5m(J,0,c,m);if(b<0)return null;var x=J.indexOf("&",b);if(x<0||x>m)x=m;b+=c.length+1;return lN(J.slice(b,x!==-1?x:0))};
I_a=/[?&]($|#)/;_.FR=function(J,c){for(var m=J.search(Q4T),b=0,x,P=[];(x=o5m(J,b,c,m))>=0;)P.push(J.substring(b,x)),b=Math.min(J.indexOf("&",x)+1||m,m);P.push(J.slice(b));return P.join("").replace(I_a,"$1")};
_.hI=function(J,c,m){return _.UK(_.FR(J,c),c,m)};
Kju=function(J){var c=M66(window.location.href),m=c[1],b=[];m&&m.split("&").forEach(function(x){var P=x.indexOf("=");P=P>=0?x.slice(0,P):x;J.hasOwnProperty(P)||b.push(x)});
c[1]=pBC(b.join("&"),_.Ir(J));return c[0]+(c[1]?"?"+c[1]:"")+c[2]};var UMm=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(UMm,_.d6);UMm.prototype.getVersion=function(){return _.L0(this,2)};var qwG=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(qwG,_.d6);var zND=function(J,c){return _.aw(J,2,c)},Z6J=function(J,c){return _.aw(J,3,c)};
qwG.prototype.getModel=function(){return _.L0(this,4)};
var fFf=function(J,c){return _.aw(J,4,c)},WN2=function(J,c){return _.aw(J,5,c)},XRo=function(J,c){return _.aw(J,9,c)},DMT=function(J,c){return i0(J,10,c)},LNR=function(J,c){return _.Pa(J,11,c)},uXD=function(J,c){return _.aw(J,1,c)},Ywf=function(J,c){return _.Pa(J,7,c)};var rDr="platform platformVersion architecture model uaFullVersion bitness fullVersionList wow64".split(" ");var jU=function(J,c,m,b){J=J===void 0?window:J;c=c===void 0?null:c;m=m===void 0?new qUQ:m;b=b===void 0?aFD():b;r9o.call(this);var x=this;this.global=J;this.debugChannel=c;this.performanceMonitor=m;this.onPageHide=f6(function(){return YL(x.global,"pagehide")}).pipe(hD(this.performanceMonitor,941));
this.onLoad=f6(function(){return YL(x.global,"load")}).pipe(hD(this.performanceMonitor,738),Ew(1));
this.onResize=f6(function(){return YL(x.global,"resize")}).pipe(hD(this.performanceMonitor,741));
this.onMessage=f6(function(){return YL(x.global,"message")}).pipe(hD(this.performanceMonitor,740));
this.document=new qk(this.global,this);this.timeProvider=new uuD(new YtT(this.intrinsicFunctionNamespace,this.performanceMonitor),new fkm(this.intrinsicFunctionNamespace,this.performanceMonitor));this.beaconFactory=new DOf(new ZhG(this),new euZ(this),new Vl(this,new Stu(this)),new Vl(this,new l3Z(this)),new Vl(this,new XY(this)))};
_.D(jU,r9o);var pd=function(J){var c=J.global;return!!J.global.HTMLFencedFrameElement&&!!c.fence&&typeof c.fence.reportEvent==="function"};
_.V=jU.prototype;_.V.reportFencedFrameEvent=function(J){pd(this)&&this.global.fence.reportEvent(J)};
_.V.getOnBackgrounded=function(){return this.onPageHide.pipe(hD(this.performanceMonitor,942),Pm(this.queue),sw(function(){}))};
_.V.postMessage=function(J,c,m){m=m===void 0?[]:m;this.global.postMessage(J,c,m)};
_.V.getWidth=function(){return eU(this.global)?this.global.width:0};
_.V.getHeight=function(){return eU(this.global)?this.global.height:0};
_.V.isMobile=function(){return dOJ()||$Or()};
var SU=function(J,c){try{var m=nLq(c,J.global,J.isMobile());return{left:m.left,top:m.top,width:m.getWidth(),height:m.getHeight()}}catch(b){return $0}};
jU.prototype.validate=function(){var J=this.beaconFactory.isSupported()||pd(this);return this.global&&this.timeProvider.available()&&J};
var Qhm=function(J){return(J=hNG(J.global))?bL(J):null};
_.eE.Object.defineProperties(jU.prototype,{sharedStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.sharedStorage}catch(J){}}},
intrinsicFunctionNamespace:{configurable:!0,enumerable:!0,get:function(){return window}},
inCrossDomainIframe:{configurable:!0,enumerable:!0,get:function(){return!eU(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}}});_.CC_=!_.JK&&!_.qf();var ryR=function(J){return J};var L5o=function(J){return J.pipe(qM(function(c){var m=c.endOfSessionReason;var b;return((b=c.viewable)==null?void 0:b.extrapolateToNow().value)||m!=void 0}),Ew(1),$L())};var O6Q=function(){this.startTime=Math.floor(Date.now()/1E3-1704067200);this.sequenceNumber=0},ADR=function(J){var c=J.sequenceNumber.toString(10).padStart(2,"0");
c=""+J.startTime+c;J.sequenceNumber<99&&J.sequenceNumber++;return c};var n9m=yU(yu(function(J){return J.endOfSessionReason===void 0}),sw(function(J){return Object.assign({},J,{timestamps:iK(J)})}),qM(function(J){var c=J.viewable;
J=J.timestamps;var m;return(m=c==null?void 0:c.extrapolateUsingTimestampMap(J).value)!=null?m:!1}),sw(function(J){var c=J.beaconFactory;
var m=J.timestampedExposureHistory;var b=J.timeOnScreen;var x=J.binaryContext;J=J.timestamps;if(c===void 0||m===void 0||b===void 0||x===void 0)return!1;if(b.extrapolateUsingTimestampMap(J).value.every(function(P){return P>=0}))return!0;
m=m.map(function(P){return P.timestamp+":"+P.value}).join(",");
b=TO({bin:x,tos:b},J);c.makeBeacon("https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=dv&"+b+("&eh="+m)).sendNow();return!0}),yu(function(J){return!J}),$L());var oLR=function(J){return{id:J.pingId,mcvt:J.maxConsecutiveViewTime,p:J.creativePosition,asp:J.adSpeedPosition,tm:J.totalMeasurementTime,tu:J.totalUnviewedTime,mtos:J.maxTimeOnScreen,tos:J.timeOnScreen,v:J.binaryVersion,bin:J.binaryContext,avms:J.measurementStrategy,bs:J.browserSize,mc:J.maximumExposure,"if":J.crossDomainIframeState,vu:J.delayedImpressionJsState,app:J.inApp,mse:J.mraidError,mtop:J.mraidSituation,itpl:J.injectedTemplateId,adk:J.adKey,exk:J.awbidKey,rs:J.requestSource,la:J.isLargeAd,
cr:J.isContentRecommendationAd,uach:J.userAgentClientHints,vs:J.viewState,r:J.reasonCode,pay:J.hasCpmavUrl,co:J.clientPingOrderCounter,rst:J.adRenderStartTime,rpt:J.adRenderPeriodTime,isd:J.initialScrollDepth,lsd:J.loadedScrollDepth,context:J.errorContext,msg:J.errorMessage,stack:J.errorStack,name:J.errorName,ec:J.hasElementChanged,sfr:J.strategyFailureReasons,met:J.creativeSearchResult,wmsd:J.webMeasurementStartDiagnostic,pv:J.pageVisible,epv:J.eosPageVisible,pbe:J.inStatefulBeaconExperiment,fle:J.inFetchLaterBeaconExperiment,
vae:J.inViewableAttributionExperiment,spb:J.supportsPendingBeacon,sfl:J.supportsFetchLater,ffslot:J.isFencedFrameSlotTurtlex,reach:J.sharedStorageReachMode,io2:J.v2VisibilityBitVector,rxdbg:J.rxDebugger,omida:J.omidAppId,omidp:J.omidPartner,omidpv:J.omidPartnerVersion,omidor:J.omidOcclusionReasons,omidv:J.omidVersion,omids:J.omidSessionType,omidam:J.omidAccessMode,omidct:J.omidCreativeType,omidia:J.omidInApp,omiddc:J.omidDeviceCategory,omidlat:J.omidLastActivity,omiddit:J.omidDeviceIdleTime,qid:J.errorEscapedQueryId}};var saq=function(J){var c=[];return J.pipe(sw(function(m){var b=m.beaconFactory,x=m.fetchBeaconFactory,P=m.timeOnScreen,p=m.timeOnScreenUrlPrefixes,t=m.payloadMapper,I=m.timeOnScreenPingId,a=m.timeOnScreenReason,k=m.urlSerializer,H=m.viewable,T=m.hasImpressionFired,r=m.inStatefulBeaconExperiment,W=m.supportsPendingBeacon,Y=m.supportsFetchLater,Z=m.turtlexReportEventData;if(!m.geometryMeasurable||!T||m.maxTimeOnScreen===void 0||P===void 0||p===void 0||t===void 0||I===void 0||k===void 0||b===void 0)return!1;
if(m.isTurtlex){if(a===void 0)return!1;p=m.reportFencedFrameEvent;if(!p)return!1;p({eventType:"active-view-time-on-screen",eventData:Z!=null?Z:"",destination:["buyer"]});return!0}if(!(r||Y||a))return!1;Z=iK(m);var d;H=(d=H==null?void 0:H.extrapolateUsingTimestampMap(Z).value)!=null?d:!1;d=k(Object.assign({},m,{pingId:I,viewState:H?4:3,reasonCode:a!=null?a:"u",payloadMapper:t,urlPrefixes:p}),Z);if(r){for(;c.length>p.length;)m=void 0,(m=c.shift())==null||m.deactivate();d.forEach(function(e,A){A>=c.length?
c.push(b.makeBeacon(e)):c[A].url=e});
return W&&x&&a!==void 0?(d.forEach(function(e){x.makeBeacon(e).sendNow()}),!0):a!==void 0}if(W&&x&&a!==void 0)return d.forEach(function(e){x.makeBeacon(e).sendNow()}),!0;
if(Y&&x){for(;c.length>p.length;)W=void 0,(W=c.shift())==null||W.deactivate();var G=k(Object.assign({},m,{pingId:I,viewState:H?4:3,reasonCode:a!=null?a:"u",payloadMapper:t,urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=fetch&later&lidartos"]}),Z)[0];d.forEach(function(e,A){A>=c.length?c.push(b.makeBeacon(G,{endOfSession:!0})):c[A].url=G});
return a!==void 0?(d.forEach(function(e){x.makeBeacon(e).sendNow()}),!0):a!==void 0}return a!==void 0?(d.forEach(function(e){b.makeBeacon(e).sendNow()}),!0):!1}),yu(function(m){return!m}),$L())};var DiQ=yU(qM(function(J){return J.immediateUrlPrefixes!==void 0&&J.payloadMapper!==void 0&&J.urlSerializer!==void 0&&J.inferredPingId!==void 0&&J.beaconFactory!==void 0}),qM(function(J){return gLr(J)!==null}),yDG(function(J){return J.activeViewUnmeasurableEvent},function(J){return J.emit}),sw(function(J){if(J.isTurtlex){var c=J.reportFencedFrameEvent;
if(c){var m;c({eventType:"active-view-unmeasurable",eventData:(m=J.turtlexReportEventData)!=null?m:"",destination:["buyer"]})}}else{m=void 0;var b=gLr(J);if(b==="x"){var x,P=(x=J.geometricMeasurementErrors)!=null?x:J.contextValidationErrors;P&&(c=P.stack,m=P.message)}J.urlSerializer(Object.assign({},J,{urlPrefixes:J.immediateUrlPrefixes,payloadMapper:J.payloadMapper,pingId:J.inferredPingId,viewState:2,reasonCode:b,errorMessage:m,errorStack:c}),iK(J)).forEach(function(p){J.beaconFactory.makeBeacon(p).sendNow()})}}),
Ew(1),$L());var JkR=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var icT=yU(qM(function(J){return J.payloadMapper!==void 0&&J.immediateUrlPrefixes!==void 0&&J.urlSerializer!==void 0&&J.inferredPingId!==void 0&&J.beaconFactory!==void 0}),sw(function(J){return Object.assign({},J,{timestamps:iK(J)})}),qM(function(J){var c=J.viewable;
var m=J.hasImpressionFired;J=J.timestamps;var b;return!!m&&((b=c==null?void 0:c.extrapolateUsingTimestampMap(J).value)!=null?b:!1)}),yDG(function(J){return J.activeViewViewableEvent},function(J){return J.emit}),sw(function(J){var c=J.beaconFactory,m=J.turtlexReportEventData;
if(J.isTurtlex){var b=J.reportFencedFrameEvent;if(!b)return!1;b({eventType:"active-view-viewable",eventData:m!=null?m:"",destination:["buyer"]});return!0}m=J.urlSerializer(Object.assign({},J,{urlPrefixes:J.immediateUrlPrefixes,payloadMapper:J.payloadMapper,pingId:J.inferredPingId,viewState:4,reasonCode:"v"}),J.timestamps);(b=J.cpmavUrls)&&b.length>0&&J.viewUrlSerializer&&J.viewUrlSerializer(b,J).forEach(function(x){c.makeBeacon(x).sendNow()});
(b=J.viewableRelayUrls)&&b.length>0&&J.viewUrlSerializer&&J.viewUrlSerializer(b,J).forEach(function(x){c.makeBeacon(x).sendNow()});
m.forEach(function(x){c.makeBeacon(x,{attributionEnabled:J.isViewableAttributionEnabled}).sendNow()});
return!0}),yu(function(J){return!J}),$L());var Aku=sw(function(J){return[J.value.topWindowViewportExternalGeometry.width,J.value.topWindowViewportExternalGeometry.height]});var hk=function(J,c){this.callback=J;this.options=c;this.intersectionObserverV2=this.intersectionObserverV1=null},DA3=function(J,c){c?J.intersectionObserverV2||(c=Object.assign({},J.options,{delay:100,
trackVisibility:!0}),J.intersectionObserverV2=new IntersectionObserver(J.callback,c)):J.intersectionObserverV1||(J.intersectionObserverV1=new IntersectionObserver(J.callback,J.options))},a_Q=function(J,c){J=c?J.intersectionObserverV2:J.intersectionObserverV1;
if(!J)throw new sjo;return J};
hk.prototype.observe=function(J,c){a_Q(this,J).observe(c)};
hk.prototype.unobserve=function(J,c){a_Q(this,J).unobserve(c)};
hk.prototype.disconnect=function(J){a_Q(this,J).disconnect()};
hk.prototype.takeRecords=function(J){return a_Q(this,J).takeRecords()};var Zd={viewportGeometrySourceName:"ns",exposedViewportLocalGeometry:$0,topWindowViewportExternalGeometry:$0,measurementRequests:new x0,elementGeometrySourceName:"ns",elementGeometry:$0,intersectionGeometry:$0,viewportLocalAppOffset:{x:0,y:0}};var ZwD=Ez(yU(sw(function(J){var c;return(c=J.exposureOverride)!=null?c:zVf(J)}),sw(function(J){return isFinite(J)?J:0}))),GOD=Ez(yU(sw(function(J){var c;
return(c=J.exposureOverride)!=null?c:zVf(J)}),sw(function(J){return isFinite(J)?J:-1})));var Sd=function(J,c){this.a=J;this.b=c;if(J.clock.timeline!==c.clock.timeline)throw Error();};
Sd.prototype.equivalentTo=function(J){return J instanceof Sd?this.a.equivalentTo(J.a)&&this.b.equivalentTo(J.b):!1};
Sd.prototype.extrapolateToTime=function(J){var c=this.a.extrapolateToTime(J).value,m=this.b.extrapolateToTime(J).value;return{timestamp:J,value:[c,m]}};
_.eE.Object.defineProperties(Sd.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 J=this.a.lastMeasurement.timestamp.maximum(this.b.lastMeasurement.timestamp),c=this.a.lastMeasurement.timestamp.equals(J)?this.a.lastMeasurement.value:this.a.extrapolateToTime(J).value,m=this.b.lastMeasurement.timestamp.equals(J)?this.b.lastMeasurement.value:this.b.extrapolateToTime(J).value;return{timestamp:J,value:[c,m]}}}});var hF=function(J,c){this.input=J;this.mapFunction=c;this.lastMeasurement={timestamp:this.input.lastMeasurement.timestamp,value:this.mapFunction(this.input.lastMeasurement.value)}};
hF.prototype.equivalentTo=function(J){return J instanceof hF?this.input.equivalentTo(J.input)&&this.mapFunction===J.mapFunction:!1};
hF.prototype.extrapolateToTime=function(J){J=this.input.extrapolateToTime(J);return{timestamp:J.timestamp,value:this.mapFunction(J.value)}};
_.eE.Object.defineProperties(hF.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.input.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.input.clock}}});var dC=function(){};
dC.prototype.extrapolateToNow=function(){return this.extrapolateToTime(this.clock.now())};
dC.prototype.extrapolateUsingTimestampMap=function(J){var c=this.clock.timeline,m,b=(m=J.get(c))!=null?m:this.clock.now();J.set(c,b);return this.extrapolateToTime(b)};
dC.prototype.map=function(J){return new kz8(this,J)};
dC.prototype.joinWith=function(J){return new HQa(this,J)};
var HQa=function(){Sd.apply(this,arguments);this.map=dC.prototype.map;this.joinWith=dC.prototype.joinWith;this.extrapolateToNow=dC.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=dC.prototype.extrapolateUsingTimestampMap};
_.D(HQa,Sd);var kz8=function(){hF.apply(this,arguments);this.map=dC.prototype.map;this.joinWith=dC.prototype.joinWith;this.extrapolateToNow=dC.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=dC.prototype.extrapolateUsingTimestampMap};
_.D(kz8,hF);var Oz=function(J,c){this.lastMeasurement=c;this.extrapolateToNow=dC.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=dC.prototype.extrapolateUsingTimestampMap;this.map=dC.prototype.map;this.joinWith=dC.prototype.joinWith;this.clock=J};
Oz.prototype.equivalentTo=function(J){return J.active};
Oz.prototype.extrapolateToTime=function(){return this.lastMeasurement};
_.eE.Object.defineProperties(Oz.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return!1}}});var OwT=sw(function(J){if(J.value.viewportGeometrySourceName==="omid"){if(J.value.elementGeometrySourceName==="nio")return"omio";if(J.value.elementGeometrySourceName==="geo")return"omgeo"}return J.value.elementGeometrySourceName==="geo"||J.value.elementGeometrySourceName==="nio"?J.value.viewportGeometrySourceName:J.value.elementGeometrySourceName});var fdD=yU(qM(function(J){return!isNaN(J)}),jt(function(J,c){return isNaN(J)?c:Math.min(J,c)},NaN),vR());var qze=Ez(yU(sw(function(J){return J.intersectionGeometry.width*J.intersectionGeometry.height/(J.exposedViewportLocalGeometry.width*J.exposedViewportLocalGeometry.height)}),sw(function(J){return isFinite(J)?Math.min(1,J):0})));var v03=yU(Ez(sw(function(J){J=J.exposureOverride?J.elementGeometry.width*J.elementGeometry.height*J.exposureOverride/(J.topWindowViewportExternalGeometry.width*J.topWindowViewportExternalGeometry.height):J.intersectionGeometry.width*J.intersectionGeometry.height/(J.topWindowViewportExternalGeometry.width*J.topWindowViewportExternalGeometry.height);return isFinite(J)?J:0})));var o0q=function(J,c){var m=this;this.timeProvider=J;this.measurementRequestObserver=this.lastMeasurementRequest=null;this.requestSubscription=c.pipe(vR()).subscribe(function(b){Qr(m);m.measurementRequestObserver=b})},eV2=function(J,c){Qr(J);
J.lastMeasurementRequest=J.timeProvider.setTimeout(function(){var m;return void((m=J.measurementRequestObserver)==null?void 0:m.next())},c)},Qr=function(J){J.lastMeasurementRequest!==null&&J.timeProvider.clearTimeout(J.lastMeasurementRequest);
J.lastMeasurementRequest=null};
o0q.prototype.dispose=function(){Qr(this);this.requestSubscription.unsubscribe();this.measurementRequestObserver=null};var iQZ=function(){};var aSu=function(J,c){this.context=J;this.strategies=c};
_.D(aSu,iQZ);aSu.prototype.buildGeometrySource=function(J,c){var m=this.strategies.map(function(P){return P.buildGeometrySource(J,c)}),b=B7D(m.map(function(P){return P.geometrySource})),x=b.capturedErrors.pipe(nZ$());
return{geometrySource:b.chain.pipe(Pm(this.context.queue)),additionalOutputs:Object.assign.apply(Object,[{strategyFailureReasons:x,strategyErrors:b.capturedErrors}].concat(_.L6(m.map(function(P){return P.additionalOutputs}))))}};
var nZ$=function(){return jt(function(J,c){c instanceof r7?J.push(c.measurementStrategyFailureReason):J.push(-1);return J},[])};var HcG=function(J,c){this.context=J;this.poller=c};
_.D(HcG,iQZ);HcG.prototype.buildGeometrySource=function(J,c){var m=g0e(cyr(this.context,this.poller),CK2(this.context,c.requestSource));return{geometrySource:ykT(J.measurableCreative.pipe(m),c.inApp),additionalOutputs:{}}};var kju=function(J,c,m){m=m===void 0?T7D(J,c):m;this.context=J;this.intersectionObserverStrategy=m};
_.D(kju,iQZ);kju.prototype.buildGeometrySource=function(J,c){var m=this.intersectionObserverStrategy(c.useV2);return{geometrySource:ykT(J.measurableCreative.pipe(m,wmT(this.context)),c.inApp),additionalOutputs:{}}};var TLa=function(J,c,m){var b=b===void 0?Symbol():b;this.element=J;this.immediateUrls=c;this.timeOnScreenUrls=m;this.symbol=b};var ow=Object.freeze({timeThresholdMs:1E3,exposureThreshold:.5,largeAdExposureThreshold:.3}),Pdr=Object.freeze([1,.75,ow.exposureThreshold,ow.largeAdExposureThreshold,0]);var klD=function(J,c){c=c===void 0?36E5:c;var m=m===void 0?!0:m;this.creatives=new x0;this.elementsToUnregister=new x0;this.elementMap=new Map;var b=new jU(window,null);b.beaconFactory=new Vl(b,new XY(b));CdJ(b,this.creatives,this.elementsToUnregister,J,c,m).subscribe()},neo=function(J,c,m,b){if(!J.elementMap.has(c)){var x=new Uz(c);
J.elementMap.set(c,x);J.creatives.next(new TLa(x,m,b))}},ief=function(J,c){J.elementsToUnregister.next(c);
var m=J.elementMap.get(c);m!==void 0&&(m.release(),J.elementMap.delete(c))};var nbQ=function(J){var c=J.url;J=J.uaDataValues;this.JSC$7487_url_=c;this.uaDataValues_=J;this.suid_=(new Date).getTime()-17040672E5;this.urlParamValues_={};for(var m=/[?&]([^&=]+)=([^&]*)/g;J=m.exec(c);)this.urlParamValues_[J[1]]=J[2]},TBQ=function(J){J=J.uaDataValues_;
if(!J)return"";var c=lK("uap",J.platform)+lK("uapv",J.platformVersion)+lK("uafv",J.uaFullVersion)+lK("uaa",J.architecture)+lK("uam",J.model)+lK("uab",J.bitness);J.fullVersionList&&(c+="&uafvl="+encodeURIComponent(J.fullVersionList.map(function(m){return encodeURIComponent(m.brand)+";"+encodeURIComponent(m.version)}).join("|")));
J.wow64!=null&&(c+="&uaw="+Number(J.wow64));return c.slice(1)};var $8=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D($8,_.d6);$8.prototype.getId=function(){return _.L0(this,1)};
$8.prototype.setId=function(J){return _.eQ(this,1,J)};var Gy=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(Gy,_.d6);Gy.prototype.getSeconds=function(){return r9(this,1)};
Gy.prototype.setSeconds=function(J){return _.LU(this,1,Ze(J),"0")};_.UQ=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(_.UQ,_.d6);_.UQ.prototype.getSeconds=function(){return r9(this,1)};
_.UQ.prototype.setSeconds=function(J){return _.LU(this,1,Ze(J),"0")};
_.wBC=function(J){var c=Number(We(J,1));J=_.m5(J,2);return new Date(c*1E3+J/1E6)};var EK=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(EK,_.d6);EK.prototype.getUrl=function(){return _.L0(this,1)};
EK.prototype.setUrl=function(J){return _.eQ(this,1,J)};
EK.prototype.getHeight=function(){return _.m5(this,2)};
EK.prototype.getWidth=function(){return _.m5(this,3)};var vQ=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(vQ,_.d6);vQ.prototype.getAspectRatio=function(){return sS(this,1)};
vQ.prototype.setAspectRatio=function(J){return _.LU(this,1,_.NR(J),0)};
vQ.prototype.getDuration=function(){return _.JU(this,Gy,2)};var r8Q=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(r8Q,_.d6);var s2a=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(s2a,_.d6);var Lj6=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(Lj6,_.d6);var Du$=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(Du$,_.d6);var WjB=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(WjB,_.d6);var z_Q=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(z_Q,_.d6);var u$L=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(u$L,_.d6);var f_C=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(f_C,_.d6);var Ya6=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(Ya6,_.d6);var OK=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(OK,_.d6);var AF=[2,4,5,6,7];var XBa=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(XBa,_.d6);var n0=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(n0,_.d6);_.V=n0.prototype;_.V.getId=function(){return _.JU(this,$8,1)};
_.V.setId=function(J){return _.m_(this,1,J)};
_.V.getName=function(){return _.L0(this,2)};
_.V.setDescription=function(J){return _.eQ(this,3,J)};
_.V.getUrl=function(){return _.L0(this,8)};
_.V.setUrl=function(J){return _.eQ(this,8,J)};
var RS=function(J){return _.Jy(J,EK,10,_.ca())};
n0.prototype.getOwner=function(J){var c=_.TR(this,40,_.E5,3,!0);Gz(c,J);return c[J]};
n0.prototype.getVersion=function(){return r9(this,45)};
var oS=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(oS,_.d6);_.ZQQ=[0,w5o,sIu];_.qa6=[0,w5o,sIu];var Uu$=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(Uu$,_.d6);var Ql=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(Ql,_.d6);Ql.prototype.getStatus=function(){return _.Db(this,1)};
Ql.prototype.removeItem=function(J){return $SR(this,2,J)};var Sa_=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(Sa_,_.d6);Sa_.prototype.getName=function(){return _.L0(this,8)};var ed=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(ed,_.d6);ed.prototype.getCommand=function(){return _.Db(this,1)};
ed.prototype.getSource=function(){return _.JU(this,Sa_,2)};
ed.prototype.setVisible=function(J){return _.WS(this,5,J)};
ed.prototype.removeItem=function(J){return $SR(this,7,J)};var h_C=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(h_C,_.d6);h_C.prototype.getCommand=function(){return _.Db(this,1)};
h_C.prototype.removeItem=function(J){return $SR(this,4,J)};
var duC=_.JG(h_C);var jd=function(J,c,m){m=m===void 0?Error():m;var b=Error.call(this);this.message=b.message;"stack"in b&&(this.stack=b.stack);this.code=J;c+=":";m instanceof Error?(this.message=c+m.message,this.stack=m.stack||""):(this.message=c+String(m),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)};
_.D(jd,Error);_.DS=function(){this.JSC$7545_disposed_=this.JSC$7545_disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};
_.DS.prototype.JSC$7545_disposed_=!1;_.DS.prototype.isDisposed=function(){return this.JSC$7545_disposed_};
_.DS.prototype.dispose=function(){this.JSC$7545_disposed_||(this.JSC$7545_disposed_=!0,this.disposeInternal())};
_.DS.prototype[Symbol.dispose]=function(){this.dispose()};
_.Kc=function(J,c){J.addOnDisposeCallback(_.k2(_.yr,c))};
_.DS.prototype.addOnDisposeCallback=function(J,c){this.JSC$7545_disposed_?c!==void 0?J.call(c):J():(this.onDisposeCallbacks_||(this.onDisposeCallbacks_=[]),c&&(J=J.bind(c)),this.onDisposeCallbacks_.push(J))};
_.DS.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var FY=function(J){_.DS.call(this);this.wpc=J};
_.D(FY,_.DS);FY.prototype.sEi=function(){return this.wpc.f()};
FY.prototype.gLQ=function(J){return this.wpc.c(J)};
FY.prototype.pX=function(J){return this.wpc.m(Y7f(J))};
FY.prototype.yO=function(J){return this.wpc.mws(Y7f(J))};
var g7=function(J){_.DS.call(this);var c=this;this.vA=J;this.fHf="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.byQ=void 0;this.kf2=this.vA.p;this.swm=this.iNj.bind(this);this.addOnDisposeCallback(function(){return void $u$(c)})};
_.D(g7,_.DS);var Gz$=function(J){var c;return _.N(function(m){if(m.nextAddress==1){if(!J.vA.wpc)throw new jd(30,"NWA");return J.tvv?m.return(J.tvv):_.K(m,J.vA.wpc(),2)}c=m.yieldResult;J.tvv=new FY(c);return m.return(J.tvv)})};
g7.prototype.snapshot=function(J){return this.vA.s(Object.assign({},J.qb&&{c:J.qb},J.gcu&&{s:J.gcu},J.cW8!==void 0&&{p:J.cW8}))};
g7.prototype.iNj=function(J){this.vA.e(J)};
g7.prototype.aKu=function(J,c){return this.vA.c(J,c,!1)};
var $u$=function(J){J.byQ!==void 0&&(J.fHf.forEach(function(c){var m;(m=J.byQ)==null||m.removeEventListener(c,J.swm)}),J.byQ=void 0)};
g7.prototype.nXa=function(){return this.vA.l()};var EZQ,l_=function(){_.DS.apply(this,arguments);this.eC2=1;this[EZQ]=this.dispose};
_.D(l_,_.DS);l_.prototype.share=function(){if(this.isDisposed())throw Error("ta");this.eC2++;return this};
l_.prototype.dispose=function(){--this.eC2||_.DS.prototype.dispose.call(this)};
EZQ=Symbol.dispose;var lSq=function(J){this.tkE=J;J.addNewEventMetric("/client_streamz/bg/frs",_.Vx("mk"))};
lSq.prototype.record=function(J,c){this.tkE.record("/client_streamz/bg/frs",J,c)};
var J$2=function(J){this.xbV=J;J.addNewEventMetric("/client_streamz/bg/wrl",_.Vx("mn"),x9("ac"),x9("sc"),_.Vx("rk"),_.Vx("mk"))};
J$2.prototype.record=function(J,c,m,b,x,P){this.xbV.record("/client_streamz/bg/wrl",J,c,m,b,x,P)};
var BmJ=function(J){this.mbT=J;J.addNewCounter("/client_streamz/bg/ec",_.Vx("en"),_.Vx("mk"))};
BmJ.prototype.increment=function(J,c){this.mbT.JSC$7798_incrementCounter("/client_streamz/bg/ec",J,c)};
var g9q=function(J){this.abD=J;J.addNewEventMetric("/client_streamz/bg/el",_.Vx("en"),_.Vx("mk"))};
g9q.prototype.record=function(J,c,m){this.abD.record("/client_streamz/bg/el",J,c,m)};
var yyQ=function(J){this.rED=J;J.addNewCounter("/client_streamz/bg/cec",x9("ec"),_.Vx("mk"))};
yyQ.prototype.increment=function(J,c){this.rED.JSC$7798_incrementCounter("/client_streamz/bg/cec",J,c)};
var c$G=function(J){this.gpB=J;J.addNewCounter("/client_streamz/bg/po/csc",x9("cs"),_.Vx("mk"))};
c$G.prototype.increment=function(J,c){this.gpB.JSC$7798_incrementCounter("/client_streamz/bg/po/csc",J,c)};
var msr=function(J){this.wMD=J;J.addNewCounter("/client_streamz/bg/po/ctav",_.Vx("av"),_.Vx("mk"))};
msr.prototype.increment=function(J,c){this.wMD.JSC$7798_incrementCounter("/client_streamz/bg/po/ctav",J,c)};
var b2q=function(J){this.i3A=J;J.addNewCounter("/client_streamz/bg/po/cwsc",_.Vx("su"),_.Vx("mk"))};
b2q.prototype.increment=function(J,c){this.i3A.JSC$7798_incrementCounter("/client_streamz/bg/po/cwsc",J,c)};var I7t=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(I7t,_.d6);var tAR=function(J,c){return _.s1(J,3,c,yq3)};var vZ_=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(vZ_,_.d6);var OQ2=[1,2,3];var A86=[0,OQ2,_.uCo,L3Q,zKD];var R__=[0,_.ve,[0,imT,_.hK]];var oZ$=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(oZ$,_.d6);var Q28=[1,2,3];var e_a=[0,Q28,rBT,nj3,_.OS,R__];var j2B=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(j2B,_.d6);var FjQ=[0,_.ve,A86,e_a];var l_B=[0,_.ES];var y8a=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(y8a,_.d6);var BLB=[0,_.ES,-1,_.G8];var gZL=[0,_.ES,-1,_.$d,_.G8];var Jfz=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(Jfz,_.d6);var cf2=[1,2,3];var mRL=[0,cf2,_.OS,BLB,_.OS,gZL,_.OS,l_B];var br_=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(br_,_.d6);br_.prototype.JSC$7618_serializeBinary=ceD([0,_.ES,mRL,f6e,_.ve,FjQ,DTt,W3r]);var xRj=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(xRj,_.d6);var Mh2=function(J){var c=new br_;c=_.aw(c,1,J.JSC$7734_metricName);var m=Vh6(J);c=_.s1(c,3,m,_.dR);m=[];for(var b=[],x=_.M(J.cellMap.keys()),P=x.next();!P.done;P=x.next())b.push(P.value.split(","));for(x=0;x<b.length;x++){P=b[x];for(var p=J.cellType,t=J.getCells(P)||[],I=[],a=0;a<t.length;a++){var k=t[a],H=k&&k.cellValue;k=new oZ$;switch(p){case 3:H=Number(H);Number.isFinite(H)&&K4(k,1,Q28,Ze(H));break;case 2:K4(k,2,Q28,_.NR(Number(H)))}I.push(k)}p=I;for(t=0;t<p.length;t++){I=p[t];a=new j2B;I=_.m_(a,
2,I);a=[];k=P1C(J);for(H=0;H<k.length;H++){var T=k[H],r=P[H],W=new vZ_;switch(T){case 3:K4(W,1,OQ2,$p(String(r)));break;case 2:T=Number(r);Number.isFinite(T)&&K4(W,2,OQ2,_.De(T));break;case 1:K4(W,3,OQ2,jRr(r==="true"))}a.push(W)}i0(I,1,a);m.push(I)}}i0(c,4,m);return c};var puQ=function(J){if(!J)return"";if(/^about:(?:blank|srcdoc)$/.test(J))return window.origin||"";J.indexOf("blob:")===0&&(J=J.substring(5));J=J.split("#")[0].split("?")[0];J=J.toLowerCase();J.indexOf("//")==0&&(J=window.location.protocol+J);/^[\w\-]*:\/\//.test(J)||(J=window.location.href);var c=J.substring(J.indexOf("://")+3),m=c.indexOf("/");m!=-1&&(c=c.substring(0,m));m=J.substring(0,J.indexOf("://"));if(!m)throw Error("ua`"+J);if(m!=="http"&&m!=="https"&&m!=="chrome-extension"&&m!=="moz-extension"&&
m!=="file"&&m!=="android-app"&&m!=="chrome-search"&&m!=="chrome-untrusted"&&m!=="chrome"&&m!=="app"&&m!=="devtools")throw Error("va`"+m);J="";var b=c.indexOf(":");if(b!=-1){var x=c.substring(b+1);c=c.substring(0,b);if(m==="http"&&x!=="80"||m==="https"&&x!=="443")J=":"+x}return m+"://"+c+J};var th_=function(J,c,m){var b=String(_.mo.location.href);return b&&J&&c?[c,NR_(puQ(b),J,m||null)].join(" "):null},NR_=function(J,c,m){var b=[],x=[];
if((Array.isArray(m)?2:1)==1)return x=[c,J],_.vG(b,function(t){x.push(t)}),Iea(x.join(" "));
var P=[],p=[];_.vG(m,function(t){p.push(t.key);P.push(t.value)});
m=Math.floor((new Date).getTime()/1E3);x=P.length==0?[m,c,J]:[P.join(":"),m,c,J];_.vG(b,function(t){x.push(t)});
J=Iea(x.join(" "));J=[m,J];p.length==0||J.push(p.join(""));return J.join("_")},Iea=function(J){var c=$iQ();
c.update(J);return c.digestString().toLowerCase()};var yl=function(J){this.JSC$7629_document_=J||{cookie:""}},KS_;
_.V=yl.prototype;_.V.isEnabled=function(){if(!_.mo.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};
_.V.set=function(J,c,m){var b=!1;if(typeof m==="object"){var x=m.sameSite;b=m.secure||!1;var P=m.domain||void 0;var p=m.path||void 0;var t=m.maxAge}if(/[;=\s]/.test(J))throw Error("wa`"+J);if(/[;\r\n]/.test(c))throw Error("xa`"+c);t===void 0&&(t=-1);m=P?";domain="+P:"";p=p?";path="+p:"";b=b?";secure":"";t=t<0?"":t==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+t*1E3)).toUTCString();this.JSC$7629_document_.cookie=J+"="+c+m+p+t+b+(x!=null?";samesite="+x:"")};
_.V.get=function(J,c){for(var m=J+"=",b=(this.JSC$7629_document_.cookie||"").split(";"),x=0,P;x<b.length;x++){P=CG(b[x]);if(P.lastIndexOf(m,0)==0)return P.slice(m.length);if(P==J)return""}return c};
_.V.remove=function(J,c,m){var b=this.containsKey(J);this.set(J,"",{maxAge:0,path:c,domain:m});return b};
_.V.getKeys=function(){return KS_(this).keys};
_.V.getValues=function(){return KS_(this).values};
_.V.isEmpty=function(){return!this.JSC$7629_document_.cookie};
_.V.getCount=function(){return this.JSC$7629_document_.cookie?(this.JSC$7629_document_.cookie||"").split(";").length:0};
_.V.containsKey=function(J){return this.get(J)!==void 0};
_.V.containsValue=function(J){for(var c=KS_(this).values,m=0;m<c.length;m++)if(c[m]==J)return!0;return!1};
_.V.clear=function(){for(var J=KS_(this).keys,c=J.length-1;c>=0;c--)this.remove(J[c])};
KS_=function(J){J=(J.JSC$7629_document_.cookie||"").split(";");for(var c=[],m=[],b,x,P=0;P<J.length;P++)x=CG(J[P]),b=x.indexOf("="),b==-1?(c.push(""),m.push(x)):(c.push(x.substring(0,b)),m.push(x.substring(b+1)));return{keys:c,values:m}};
_.ar=new yl(typeof document=="undefined"?null:document);var mBD=function(){var J=_.mo.__SAPISID||_.mo.__APISID||_.mo.__3PSAPISID||_.mo.__1PSAPISID||_.mo.__OVERRIDE_SID;if(J)return!0;typeof document!=="undefined"&&(J=new yl(document),J=J.get("SAPISID")||J.get("APISID")||J.get("__Secure-3PAPISID")||J.get("__Secure-1PAPISID"));return!!J},C1B=function(J,c,m,b){(J=_.mo[J])||typeof document==="undefined"||(J=(new yl(document)).get(c));
return J?th_(J,m,b):null},jcq=function(J){var c=puQ(_.mo==null?void 0:_.mo.location.href),m=[];
if(mBD()){c=c.indexOf("https:")==0||c.indexOf("chrome-extension:")==0||c.indexOf("chrome-untrusted://new-tab-page")==0||c.indexOf("moz-extension:")==0;var b=c?_.mo.__SAPISID:_.mo.__APISID;b||typeof document==="undefined"||(b=new yl(document),b=b.get(c?"SAPISID":"APISID")||b.get("__Secure-3PAPISID"));(b=b?th_(b,c?"SAPISIDHASH":"APISIDHASH",J):null)&&m.push(b);c&&((c=C1B("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",J))&&m.push(c),(J=C1B("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",J))&&m.push(J))}return m.length==
0?null:m.join(" ")};var ae$=function(){this.minSize=1024};
ae$.prototype.compress=function(J){var c,m,b,x;return _.N(function(P){switch(P.nextAddress){case 1:return c=new CompressionStream("gzip"),m=(new Response(c.readable)).arrayBuffer(),b=c.writable.getWriter(),_.K(P,b.write((new TextEncoder).encode(J)),2);case 2:return _.K(P,b.close(),3);case 3:return x=Uint8Array,_.K(P,m,4);case 4:return P.return(new x(P.yieldResult))}})};
ae$.prototype.isSupported=function(J){return J<this.minSize?!1:typeof CompressionStream!=="undefined"};var k4Z=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(k4Z,_.d6);var BQ=function(J,c){this.intervalMs=J;this.callback=c;this.enabled=!1;this.nowFn=function(){return _.lc()};
this.lastTimeMs=this.nowFn()};
BQ.prototype.setInterval=function(J){this.intervalMs=J;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};
BQ.prototype.start=function(){var J=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){J.tick()},this.intervalMs),this.lastTimeMs=this.nowFn())};
BQ.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};
BQ.prototype.tick=function(){var J=this;if(this.enabled){var c=Math.max(this.nowFn()-this.lastTimeMs,0);c<this.intervalMs*.8?this.timer=setTimeout(function(){J.tick()},this.intervalMs-c):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0};var HrQ=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(HrQ,_.d6);var ir6=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(ir6,_.d6);var npZ=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(npZ,_.d6);npZ.prototype.getTransmissionType=function(){return _.Db(this,1)};var OcD=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(OcD,_.d6);OcD.prototype.getVersion=function(){return _.L0(this,2)};var gC=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(gC,_.d6);var v9t=function(J){i0(Mi,1,J)};
gC.prototype.getModel=function(){return _.L0(this,6)};
var TRQ=_.JG(gC);var wuC=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(wuC,_.d6);var Gj3=["platform","platformVersion","architecture","model","uaFullVersion"],Mi=new gC,E9D=null;var rfC=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(rfC,_.d6);var sF_=function(J){return _.c4(J,1,1)};var LS_=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J,4)};
_.D(LS_,_.d6);_.Ji=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J,36)};
_.D(_.Ji,_.d6);_.Ji.prototype.getExperimentIds=function(){return _.JU(this,k4Z,16)};var DRB=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J,19)};
_.D(DRB,_.d6);DRB.prototype.setLogSource=function(J){return _.c4(this,2,J)};
DRB.prototype.setScheduler=function(J){return _.c4(this,10,J)};var zo6=function(J,c){this.isServiceWorkerScope=c=c===void 0?!1:c;this.uach=this.locale=null;this.transmissionType=0;this.isFinal=!1;this.logRequest=new DRB;Number.isInteger(J)&&this.logRequest.setLogSource(J);c||(this.locale=document.documentElement.getAttribute("lang"));WS2(this,new rfC)};
zo6.prototype.setLogSource=function(J){this.logRequest.setLogSource(J);return this};
var WS2=function(J,c){_.m_(J.logRequest,1,c);_.Db(c,1)||sF_(c);J.isServiceWorkerScope||(c=cz(J),_.L0(c,5)||_.aw(c,5,J.locale));J.uach&&(c=cz(J),_.JU(c,gC,9)||_.m_(c,9,J.uach))},usj=function(J,c){J.transmissionType=c},fez=function(J){var c=c===void 0?Gj3:c;
var m=J.isServiceWorkerScope?void 0:uK();m?Ayr(m,c).then(function(b){J.uach=TRQ(b!=null?b:"[]");b=cz(J);_.m_(b,9,J.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)},cz=function(J){J=_.JU(J.logRequest,rfC,1);
var c=_.JU(J,wuC,11);c||(c=new wuC,_.m_(J,11,c));return c};
zo6.prototype.build=function(J,c,m,b,x,P){c=c===void 0?0:c;m=m===void 0?0:m;b=b===void 0?null:b;x=x===void 0?0:x;P=P===void 0?0:P;if(!this.isServiceWorkerScope){var p=cz(this);var t=new npZ;t=_.c4(t,1,this.transmissionType);t=_.Pa(t,2,this.isFinal);m=_.f0(t,3,m>0?m:void 0);m=_.f0(m,4,x>0?x:void 0);m=_.f0(m,5,P>0?P:void 0);x=m.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;P=x[_.sa]|0;m=Z_(m,P)?m:Pw(m,x,P)?Vb(m,x):new m.constructor(xl(x,P,!0));_.m_(p,10,m)}p=this.logRequest.clone();m=Date.now().toString();
p=_.mL(p,4,Ze(m));J=J.slice();J=i0(p,3,J);b&&(p=new HrQ,b=_.f0(p,13,b),p=new ir6,b=_.m_(p,2,b),p=new LS_,b=_.m_(p,1,b),b=_.c4(b,2,9),_.m_(J,18,b));c&&_.TB(J,14,c);return J};pc.prototype.currBackoffCount_=0;pc.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_;this.currBackoffCount_=0};
pc.prototype.getValue=function(){return this.currValue_};
var Y5B=function(J){J.currBaseValue_=Math.min(J.maxValue_,J.currBaseValue_*J.backoffFactor_);J.currValue_=Math.min(J.maxValue_,J.currBaseValue_+(J.randomFactor_?Math.round(J.randomFactor_*(Math.random()-.5)*2*J.currBaseValue_):0));J.currBackoffCount_++};var UTm=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J,8)};
_.D(UTm,_.d6);var XuQ=_.JG(UTm);var SJr=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(SJr,_.d6);var mV;mV=new hKT;var bA=function(J){_.DS.call(this);var c=this;this.componentId="";this.pendingEvents=[];this.lastFailedAuth="";this.pageId=null;this.noFlushUntilMs=this.startWaitingMs=-1;this.JSC$7707_compressor=this.experimentIds=null;this.numRetriesSinceLastSuccessfulFlush=this.numLogsDroppedSinceLastFlush=0;this.metalogService=null;this.persistedLogExpiredCount=this.persistedLogRecoveredCount=0;this.sequencePosition=1;this.timeoutMillis=0;this.JSC$7707_sendBeaconApiEnabled=!1;this.logSource=J.logSource;this.getAuthHeaderValue=
J.getAuthHeaderValue||function(){};
this.logRequestBuilder=new zo6(J.logSource,J.isServiceWorkerScope);this.network=J.network||null;this.productID=J.productID||null;this.clearcutUrl=J.urlOverride||null;this.sessionIndex=J.sessionIndex||null;this.disableAutomaticFlush=J.disableAutomaticFlush||!1;this.logger=null;this.withCredentials=!J.disableWithCredentials;this.isServiceWorkerScope=J.isServiceWorkerScope||!1;this.isSendBeaconSupported=!this.isServiceWorkerScope&&!!uK()&&!!uK().navigator&&uK().navigator.sendBeacon!==void 0;this.isBrowserSupported=
typeof URLSearchParams!=="undefined"&&!!(new URL(Zrj())).searchParams&&!!(new URL(Zrj())).searchParams.set;var m=sF_(new rfC);WS2(this.logRequestBuilder,m);this.flushBackoff=new pc(1E4,3E5,.1);J=q5_(this,J.backgroundJobDeferrer);this.JSC$7707_flushTimer=new BQ(this.flushBackoff.getValue(),J);this.backupTimer=new BQ(6E5,J);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){URB(c);
var b;(b=c.metalogService)==null||b.flush()}}),document.addEventListener("pagehide",function(){URB(c);
var b;(b=c.metalogService)==null||b.flush()}))};
_.D(bA,_.DS);var q5_=function(J,c){return J.isBrowserSupported?c?function(){c().then(function(){J.flush()})}:function(){J.flush()}:function(){}};
bA.prototype.disposeInternal=function(){URB(this);this.JSC$7707_flushTimer.stop();this.backupTimer.stop();_.DS.prototype.disposeInternal.call(this)};
var S5Z=function(J){J.clearcutUrl||(J.clearcutUrl=Zrj());try{return(new URL(J.clearcutUrl)).toString()}catch(c){return(new URL(J.clearcutUrl,uK().location.origin)).toString()}};
bA.prototype.dispatch=function(J){if(J instanceof _.Ji)this.log(J);else try{var c=new _.Ji,m=J.serialize();var b=_.aw(c,8,m);this.log(b)}catch(x){x1(this,4,1)}};
var x1=function(J,c,m){J.metalogService&&J.metalogService.increment(c,m)};
bA.prototype.log=function(J){x1(this,2,1);if(this.isBrowserSupported){J=J.clone();var c=this.sequencePosition++;J=_.TB(J,21,c);this.componentId&&_.aw(J,26,this.componentId);c=J;if(CCu(_.NC(c,1))==null){var m=Date.now();m=Number.isFinite(m)?m.toString():"0";_.mL(c,1,Ze(m))}_.Kjf(_.NC(c,15))!=null||_.TB(c,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(m=this.experimentIds.clone(),_.m_(c,16,m));x1(this,1,1);c=this.pendingEvents.length-1E3+1;c>0&&(this.pendingEvents.splice(0,c),this.numLogsDroppedSinceLastFlush+=
c,x1(this,3,c));this.pendingEvents.push(J);this.disableAutomaticFlush||this.JSC$7707_flushTimer.enabled||this.JSC$7707_flushTimer.start()}};
bA.prototype.flush=function(J,c){var m=this;if(this.pendingEvents.length===0)J&&J();else if(this.JSC$7707_sendBeaconApiEnabled&&this.isSendBeaconSupported)this.logRequestBuilder.transmissionType=3,hoz(this);else{var b=Date.now();if(this.noFlushUntilMs>b&&this.startWaitingMs<b)c&&c("throttled");else{this.network&&(typeof this.network.getTransmissionType==="function"?usj(this.logRequestBuilder,this.network.getTransmissionType()):this.logRequestBuilder.transmissionType=0);var x=this.pendingEvents.length,
P=this.logRequestBuilder.build(this.pendingEvents,this.numLogsDroppedSinceLastFlush,this.numRetriesSinceLastSuccessfulFlush,this.productID,this.persistedLogRecoveredCount,this.persistedLogExpiredCount),p=this.getAuthHeaderValue();if(p&&this.lastFailedAuth===p)c&&c("stale-auth-token");else{this.pendingEvents=[];this.JSC$7707_flushTimer.enabled&&this.JSC$7707_flushTimer.stop();this.numLogsDroppedSinceLastFlush=0;b=P.serialize();var t;this.JSC$7707_compressor&&this.JSC$7707_compressor.isSupported(b.length)&&
(t=this.JSC$7707_compressor.compress(b));var I=dRQ(this,b,p),a=function(T){m.flushBackoff.reset();m.JSC$7707_flushTimer.setInterval(m.flushBackoff.getValue());if(T){var r=null;try{var W=JSON.stringify(JSON.parse(T.replace(")]}'\n","")));r=XuQ(W)}catch(Y){}r&&(T=Number(r9(r,1,_.F$("-1"))),T>0&&(m.startWaitingMs=Date.now(),m.noFlushUntilMs=m.startWaitingMs+T),ZQG(r.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,mV.fieldIndex),Ya2(r,mV.fieldIndex),r=mV.ctor?mV.getExtensionFn(r,mV.ctor,mV.fieldIndex,
mV.JSC$6887_hasMessageId):mV.getExtensionFn(r,mV.fieldIndex,null,mV.JSC$6887_hasMessageId),r=r===null?void 0:r)&&(r=_.m5(r,1,-1),r!==-1&&(m.flushBackoff=new pc(r<1?1:r,3E5,.1),m.JSC$7707_flushTimer.setInterval(m.flushBackoff.getValue())))}J&&J();m.numRetriesSinceLastSuccessfulFlush=0},k=function(T,r){var W=_.Jy(P,_.Ji,3,_.ca());
var Y=Number(r9(P,14));Y5B(m.flushBackoff);m.JSC$7707_flushTimer.setInterval(m.flushBackoff.getValue());T===401&&p&&(m.lastFailedAuth=p);Y&&(m.numLogsDroppedSinceLastFlush+=Y);r===void 0&&(r=m.isRetryable(T));r&&(m.pendingEvents=W.concat(m.pendingEvents),m.disableAutomaticFlush||m.JSC$7707_flushTimer.enabled||m.JSC$7707_flushTimer.start());x1(m,7,1);c&&c("net-send-failed",T);++m.numRetriesSinceLastSuccessfulFlush},H=function(){m.network&&m.network.send(I,a,k)};
t?t.then(function(T){x1(m,5,x);I.requestHeaders["Content-Encoding"]="gzip";I.requestHeaders["Content-Type"]="application/binary";I.body=T;I.bodyType=2;H()},function(){x1(m,6,x);
H()}):H()}}}};
var dRQ=function(J,c,m){m=m===void 0?null:m;var b=b===void 0?J.withCredentials:b;var x={},P=new URL(S5Z(J));m&&(x.Authorization=m);J.sessionIndex&&(x["X-Goog-AuthUser"]=J.sessionIndex,P.searchParams.set("authuser",J.sessionIndex));J.pageId&&(Object.defineProperty(x,"X-Goog-PageId",{value:J.pageId}),P.searchParams.set("pageId",J.pageId));return{url:P.toString(),body:c,bodyType:1,requestHeaders:x,requestType:"POST",withCredentials:b,timeoutMillis:J.timeoutMillis}},URB=function(J){J.logRequestBuilder.isFinal=
!0;
J.flush();J.logRequestBuilder.isFinal=!1},hoz=function(J){$R8(J,function(c,m){c=new URL(c);
c.searchParams.set("format","json");var b=!1;try{b=uK().navigator.sendBeacon(c.toString(),m.serialize())}catch(x){}b||(J.isSendBeaconSupported=!1);return b})},$R8=function(J,c){if(J.pendingEvents.length!==0){var m=new URL(S5Z(J));
m.searchParams.delete("format");var b=J.getAuthHeaderValue();b&&m.searchParams.set("auth",b);m.searchParams.set("authuser",J.sessionIndex||"0");for(b=0;b<10&&J.pendingEvents.length;++b){var x=J.pendingEvents.slice(0,32),P=J.logRequestBuilder.build(x,J.numLogsDroppedSinceLastFlush,J.numRetriesSinceLastSuccessfulFlush,J.productID,J.persistedLogRecoveredCount,J.persistedLogExpiredCount);if(!c(m.toString(),P)){++J.numRetriesSinceLastSuccessfulFlush;break}J.numLogsDroppedSinceLastFlush=0;J.numRetriesSinceLastSuccessfulFlush=
0;J.persistedLogRecoveredCount=0;J.persistedLogExpiredCount=0;J.pendingEvents=J.pendingEvents.slice(x.length)}J.JSC$7707_flushTimer.enabled&&J.JSC$7707_flushTimer.stop()}};
bA.prototype.isRetryable=function(J){return 500<=J&&J<600||J===401||J===0};
var Zrj=function(){return"https://play.google.com/log?format=json&hasfast=true"};var G4j=function(){this.abortSupported=typeof AbortController!=="undefined"};
G4j.prototype.send=function(J,c,m){var b=this,x,P,p,t,I,a,k,H,T,r;return _.N(function(W){switch(W.nextAddress){case 1:return P=(x=b.abortSupported?new AbortController:void 0)?setTimeout(function(){x.abort()},J.timeoutMillis):void 0,_.xL(W,2,3),p=Object.assign({},{method:J.requestType,
headers:Object.assign({},J.requestHeaders)},J.body&&{body:J.body},J.withCredentials&&{credentials:"include"},{signal:J.timeoutMillis&&x?x.signal:null}),_.K(W,fetch(J.url,p),5);case 5:t=W.yieldResult;if(t.status!==200){(I=m)==null||I(t.status);W.jumpTo(3);break}if((a=c)==null){W.jumpTo(7);break}return _.K(W,t.text(),8);case 8:a(W.yieldResult);case 7:case 3:_.PR(W);clearTimeout(P);_.p6(W,0);break;case 2:k=_.NM(W);switch((H=k)==null?void 0:H.name){case "AbortError":(T=m)==null||T(408);break;default:(r=
m)==null||r(400)}W.jumpTo(3)}})};
G4j.prototype.getTransmissionType=function(){return 4};_.Ia=function(J,c){c=c===void 0?"0":c;_.DS.call(this);this.logSource=J;this.sessionIndex=c;this.destinationUrl="https://play.google.com/log?format=json&hasfast=true";this.buildLabel=null;this.serviceWorkerScopeEnabled=!1;this.network=null;this.componentId="";this.JSC$7725_clearExperimentIds=this.productID=null;this.JSC$7725_sendBeaconApiEnabled=!1;this.pageId=null};
_.D(_.Ia,_.DS);var MAu=function(J,c){J.buildLabel=c;return J},Pi3=function(J,c){J.network=c;
return J},N_e=function(J,c){J.JSC$7725_clearExperimentIds=c},VAo=function(J){J.JSC$7725_sendBeaconApiEnabled=!0;
return J};
_.Ia.prototype.disableWithCredentials=function(){this.withCredentialsDisabled=!0;return this};
_.Ia.prototype.build=function(){this.network||(this.network=new G4j);var J=new bA({logSource:this.logSource,getAuthHeaderValue:this.getAuthHeaderValue?this.getAuthHeaderValue:jcq,sessionIndex:this.sessionIndex,urlOverride:this.destinationUrl,isServiceWorkerScope:this.serviceWorkerScopeEnabled,disableAutomaticFlush:!1,disableWithCredentials:this.withCredentialsDisabled,backgroundJobDeferrer:this.backgroundJobDeferrer,network:this.network});_.Kc(this,J);if(this.buildLabel){var c=this.buildLabel,m=cz(J.logRequestBuilder);
_.aw(m,7,c)}J.JSC$7707_compressor=new ae$;this.componentId&&(J.componentId=this.componentId);this.productID&&(J.productID=this.productID);this.pageId&&(J.pageId=this.pageId);this.JSC$7725_clearExperimentIds&&((m=this.JSC$7725_clearExperimentIds)?(J.experimentIds||(J.experimentIds=new k4Z),c=J.experimentIds,m=m.serialize(),_.aw(c,4,m)):J.experimentIds&&_.mL(J.experimentIds,4));this.JSC$7725_sendBeaconApiEnabled&&(J.JSC$7707_sendBeaconApiEnabled=J.isSendBeaconSupported);fez(J.logRequestBuilder);this.network.setLogSource&&
this.network.setLogSource(this.logSource);this.network.setTransportReferenceAndAttemptFlush&&this.network.setTransportReferenceAndAttemptFlush(J);return J};var KYQ=function(J,c,m,b,x,P,p){J=J===void 0?-1:J;c=c===void 0?"":c;m=m===void 0?"":m;b=b===void 0?!1:b;x=x===void 0?"":x;_.DS.call(this);this.logSource=J;this.componentId=c;P?c=P:(J=new _.Ia(J,"0"),J.componentId=c,_.Kc(this,J),m!==""&&(J.destinationUrl=m),b&&(J.serviceWorkerScopeEnabled=!0),x&&MAu(J,x),p&&Pi3(J,p),c=J.build());this.JSC$7729_transport=c};
_.D(KYQ,_.DS);KYQ.prototype.flush=function(J){J=J||[];if(J.length){for(var c=new xRj,m=[],b=0;b<J.length;b++){var x=J[b],P=Mh2(x);m.push(P);x.clear()}i0(c,1,m);this.JSC$7729_transport.dispatch(c);this.JSC$7729_transport.flush()}};var Ep_=function(J){this.cellValue=J};var Vh=function(J,c,m){this.JSC$7734_metricName=J;this.cellType=c;this.fields=m||[];this.cellMap=new Map},P1C=function(J){return J.fields.map(function(c){return c.fieldType})},Vh6=function(J){return J.fields.map(function(c){return c.fieldName})};
_.V=Vh.prototype;_.V.addCell=function(J){var c=_.s$.apply(1,arguments),m=this.getCells(c);m?m.push(new Ep_(J)):this.JSC$7734_setCell(J,c)};
_.V.JSC$7734_setCell=function(J){var c=this.JSC$7734_getKey(_.s$.apply(1,arguments));this.cellMap.set(c,[new Ep_(J)])};
_.V.getCells=function(){var J=this.JSC$7734_getKey(_.s$.apply(0,arguments));return this.cellMap.has(J)?this.cellMap.get(J):void 0};
_.V.getCell=function(){var J=this.getCells(_.s$.apply(0,arguments));return J&&J.length?J[0]:void 0};
_.V.clear=function(){this.cellMap.clear()};
_.V.JSC$7734_getKey=function(){var J=_.s$.apply(0,arguments);return J?J.join(","):"key"};var vpQ=function(J,c){Vh.call(this,J,3,c)};
_.D(vpQ,Vh);vpQ.prototype.JSC$7737_incrementCounterBy=function(J){var c=_.s$.apply(1,arguments),m=0,b=this.getCell(c);b&&(m=b.cellValue);this.JSC$7734_setCell(m+J,c)};var OrC=function(J,c){Vh.call(this,J,2,c)};
_.D(OrC,Vh);OrC.prototype.record=function(J){this.addCell(J,_.s$.apply(1,arguments))};_.Pz=function(J){this.id=J};
_.Pz.prototype.toString=function(){return this.id};_.Mb=function(J,c){this.type=J instanceof _.Pz?String(J):J;this.currentTarget=this.target=c;this.defaultPrevented=this.propagationStopped_=!1};
_.Mb.prototype.stopPropagation=function(){this.propagationStopped_=!0};
_.Mb.prototype.preventDefault=function(){this.defaultPrevented=!0};_.pI=function(J,c){_.Mb.call(this,J?J.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;J&&this.init(J,c)};
_.yv(_.pI,_.Mb);
_.pI.prototype.init=function(J,c){var m=this.type=J.type,b=J.changedTouches&&J.changedTouches.length?J.changedTouches[0]:null;this.target=J.target||J.srcElement;this.currentTarget=c;c=J.relatedTarget;c||(m=="mouseover"?c=J.fromElement:m=="mouseout"&&(c=J.toElement));this.relatedTarget=c;b?(this.clientX=b.clientX!==void 0?b.clientX:b.pageX,this.clientY=b.clientY!==void 0?b.clientY:b.pageY,this.screenX=b.screenX||0,this.screenY=b.screenY||0):(this.offsetX=_.ms||J.offsetX!==void 0?J.offsetX:J.layerX,
this.offsetY=_.ms||J.offsetY!==void 0?J.offsetY:J.layerY,this.clientX=J.clientX!==void 0?J.clientX:J.pageX,this.clientY=J.clientY!==void 0?J.clientY:J.pageY,this.screenX=J.screenX||0,this.screenY=J.screenY||0);this.button=J.button;this.keyCode=J.keyCode||0;this.key=J.key||"";this.charCode=J.charCode||(m=="keypress"?J.keyCode:0);this.ctrlKey=J.ctrlKey;this.altKey=J.altKey;this.shiftKey=J.shiftKey;this.metaKey=J.metaKey;this.pointerId=J.pointerId||0;this.pointerType=J.pointerType;this.state=J.state;
this.timeStamp=J.timeStamp;this.event_=J;J.defaultPrevented&&_.pI.superClass_.preventDefault.call(this)};
_.pI.prototype.stopPropagation=function(){_.pI.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};
_.pI.prototype.preventDefault=function(){_.pI.superClass_.preventDefault.call(this);var J=this.event_;J.preventDefault?J.preventDefault():J.returnValue=!1};var Afj="closure_listenable_"+(Math.random()*1E6|0),Nb=function(J){return!(!J||!J[Afj])};var Roj=0;var op6=function(J,c,m,b,x){this.listener=J;this.proxy=null;this.src=c;this.type=m;this.capture=!!b;this.handler=x;this.key=++Roj;this.removed=this.callOnce=!1},QFa=function(J){J.removed=!0;
J.listener=null;J.proxy=null;J.src=null;J.handler=null};Ni.prototype.add=function(J,c,m,b,x){var P=J.toString();J=this.listeners[P];J||(J=this.listeners[P]=[],this.typeCount_++);var p=eo_(J,c,b,x);p>-1?(c=J[p],m||(c.callOnce=!1)):(c=new op6(c,this.src,P,!!b,x),c.callOnce=m,J.push(c));return c};
Ni.prototype.remove=function(J,c,m,b){J=J.toString();if(!(J in this.listeners))return!1;var x=this.listeners[J];c=eo_(x,c,m,b);return c>-1?(QFa(x[c]),_.e2(x,c),x.length==0&&(delete this.listeners[J],this.typeCount_--),!0):!1};
var jF_=function(J,c){var m=c.type;if(!(m in J.listeners))return!1;var b=_.j2(J.listeners[m],c);b&&(QFa(c),J.listeners[m].length==0&&(delete J.listeners[m],J.typeCount_--));return b};
Ni.prototype.removeAll=function(J){J=J&&J.toString();var c=0,m;for(m in this.listeners)if(!J||m==J){for(var b=this.listeners[m],x=0;x<b.length;x++)++c,QFa(b[x]);delete this.listeners[m];this.typeCount_--}return c};
Ni.prototype.getListener=function(J,c,m,b){J=this.listeners[J.toString()];var x=-1;J&&(x=eo_(J,c,m,b));return x>-1?J[x]:null};
Ni.prototype.hasListener=function(J,c){var m=J!==void 0,b=m?J.toString():"",x=c!==void 0;return _.Lw.some(this.listeners,function(P){for(var p=0;p<P.length;++p)if(!(m&&P[p].type!=b||x&&P[p].capture!=c))return!0;return!1})};
var eo_=function(J,c,m,b){for(var x=0;x<J.length;++x){var P=J[x];if(!P.removed&&P.listener==c&&P.capture==!!m&&P.handler==b)return x}return-1};var FSZ,lej,yfQ,gpa,Je_,Hd,iv,bU6,cez,m0_,ti,x02,BRu;FSZ="closure_lm_"+(Math.random()*1E6|0);lej={};yfQ=0;_.wp=function(J,c,m,b,x){if(b&&b.once)return Hd(J,c,m,b,x);if(Array.isArray(c)){for(var P=0;P<c.length;P++)_.wp(J,c[P],m,b,x);return null}m=BRu(m);return Nb(J)?J.listen(c,m,_.cB(b)?!!b.capture:!!b,x):gpa(J,c,m,!1,b,x)};
gpa=function(J,c,m,b,x,P){if(!c)throw Error("za");var p=_.cB(x)?!!x.capture:!!x,t=ti(J);t||(J[FSZ]=t=new Ni(J));m=t.add(c,m,b,p,P);if(m.proxy)return m;b=Je_();m.proxy=b;b.src=J;b.listener=m;if(J.addEventListener)_.txJ||(x=p),x===void 0&&(x=!1),J.addEventListener(c.toString(),b,x);else if(J.attachEvent)J.attachEvent(cez(c.toString()),b);else if(J.addListener&&J.removeListener)J.addListener(b);else throw Error("Aa");yfQ++;return m};
Je_=function(){var J=m0_,c=function(m){return J.call(c.src,c.listener,m)};
return c};
Hd=function(J,c,m,b,x){if(Array.isArray(c)){for(var P=0;P<c.length;P++)Hd(J,c[P],m,b,x);return null}m=BRu(m);return Nb(J)?J.listenOnce(c,m,_.cB(b)?!!b.capture:!!b,x):gpa(J,c,m,!0,b,x)};
_.Is=function(J,c,m,b,x){if(Array.isArray(c))for(var P=0;P<c.length;P++)_.Is(J,c[P],m,b,x);else b=_.cB(b)?!!b.capture:!!b,m=BRu(m),Nb(J)?J.unlisten(c,m,b,x):J&&(J=ti(J))&&(c=J.getListener(c,m,b,x))&&iv(c)};
iv=function(J){if(typeof J==="number"||!J||J.removed)return!1;var c=J.src;if(Nb(c))return jF_(c.eventTargetListeners_,J);var m=J.type,b=J.proxy;c.removeEventListener?c.removeEventListener(m,b,J.capture):c.detachEvent?c.detachEvent(cez(m),b):c.addListener&&c.removeListener&&c.removeListener(b);yfQ--;(m=ti(c))?(jF_(m,J),m.typeCount_==0&&(m.src=null,c[FSZ]=null)):QFa(J);return!0};
bU6=function(J,c,m,b,x){m=BRu(m);b=!!b;return Nb(J)?J.getListener(c,m,b,x):J?(J=ti(J))?J.getListener(c,m,b,x):null:null};
cez=function(J){return J in lej?lej[J]:lej[J]="on"+J};
m0_=function(J,c){if(J.removed)J=!0;else{c=new _.pI(c,this);var m=J.listener,b=J.handler||J.src;J.callOnce&&iv(J);J=m.call(b,c)}return J};
ti=function(J){J=J[FSZ];return J instanceof Ni?J:null};
x02="__closure_events_fn_"+(Math.random()*1E9>>>0);BRu=function(J){if(typeof J==="function")return J;J[x02]||(J[x02]=function(c){return J.handleEvent(c)});
return J[x02]};_.KI=function(){_.DS.call(this);this.eventTargetListeners_=new Ni(this);this.actualEventTarget_=this;this.parentEventTarget_=null};
_.yv(_.KI,_.DS);_.KI.prototype[Afj]=!0;_.V=_.KI.prototype;_.V.setParentEventTarget=function(J){this.parentEventTarget_=J};
_.V.addEventListener=function(J,c,m,b){_.wp(this,J,c,m,b)};
_.V.removeEventListener=function(J,c,m,b){_.Is(this,J,c,m,b)};
_.V.dispatchEvent=function(J){var c,m=this.parentEventTarget_;if(m)for(c=[];m;m=m.parentEventTarget_)c.push(m);m=this.actualEventTarget_;var b=J.type||J;if(typeof J==="string")J=new _.Mb(J,m);else if(J instanceof _.Mb)J.target=J.target||m;else{var x=J;J=new _.Mb(b,m);_.Lw.extend(J,x)}x=!0;var P;if(c)for(P=c.length-1;!J.propagationStopped_&&P>=0;P--){var p=J.currentTarget=c[P];x=V98(p,b,!0,J)&&x}J.propagationStopped_||(p=J.currentTarget=m,x=V98(p,b,!0,J)&&x,J.propagationStopped_||(x=V98(p,b,!1,J)&&
x));if(c)for(P=0;!J.propagationStopped_&&P<c.length;P++)p=J.currentTarget=c[P],x=V98(p,b,!1,J)&&x;return x};
_.V.disposeInternal=function(){_.KI.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};
_.V.listen=function(J,c,m,b){return this.eventTargetListeners_.add(String(J),c,!1,m,b)};
_.V.listenOnce=function(J,c,m,b){return this.eventTargetListeners_.add(String(J),c,!0,m,b)};
_.V.unlisten=function(J,c,m,b){return this.eventTargetListeners_.remove(String(J),c,m,b)};
_.V.removeAllListeners=function(J){return this.eventTargetListeners_?this.eventTargetListeners_.removeAll(J):0};
var V98=function(J,c,m,b){c=J.eventTargetListeners_.listeners[String(c)];if(!c)return!0;c=c.concat();for(var x=!0,P=0;P<c.length;++P){var p=c[P];if(p&&!p.removed&&p.capture==m){var t=p.listener,I=p.handler||p.src;p.callOnce&&jF_(J.eventTargetListeners_,p);x=t.call(I,b)!==!1&&x}}return x&&!b.defaultPrevented};
_.KI.prototype.getListener=function(J,c,m,b){return this.eventTargetListeners_.getListener(String(J),c,m,b)};
_.KI.prototype.hasListener=function(J,c){return this.eventTargetListeners_.hasListener(J!==void 0?String(J):void 0,c)};var CI=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(J){return J&&AsyncContext.Snapshot.wrap(J)}:function(J){return J};var PRz=function(J,c){this.create_=J;this.reset_=c;this.occupants_=0;this.JSC$7769_head_=null};
PRz.prototype.get=function(){if(this.occupants_>0){this.occupants_--;var J=this.JSC$7769_head_;this.JSC$7769_head_=J.next;J.next=null}else J=this.create_();return J};
PRz.prototype.put=function(J){this.reset_(J);this.occupants_<100&&(this.occupants_++,J.next=this.JSC$7769_head_,this.JSC$7769_head_=J)};var M9z=function(){this.workTail_=this.workHead_=null};
M9z.prototype.add=function(J,c){var m=o9J.get();m.set(J,c);this.workTail_?this.workTail_.next=m:this.workHead_=m;this.workTail_=m};
M9z.prototype.remove=function(){var J=null;this.workHead_&&(J=this.workHead_,this.workHead_=this.workHead_.next,this.workHead_||(this.workTail_=null),J.next=null);return J};
var o9J=new PRz(function(){return new pw2},function(J){return J.reset()}),pw2=function(){this.next=this.scope=this.fn=null};
pw2.prototype.set=function(J,c){this.fn=J;this.scope=c;this.next=null};
pw2.prototype.reset=function(){this.next=this.scope=this.fn=null};var N6a,QaQ,Ree,t9$;QaQ=!1;Ree=new M9z;_.as=function(J,c){N6a||t9$();QaQ||(N6a(),QaQ=!0);Ree.add(J,c)};
t9$=function(){var J=Promise.resolve(void 0);N6a=function(){J.then(eeR)}};var I2B=function(J){J.prototype.$goog_Thenable=!0},KTu=function(J){if(!J)return!1;
try{return!!J.$goog_Thenable}catch(c){return!1}};var CR8,a2Z,kRj,iUQ,nl_,T6_,LTz,zAZ,Xw6,f2Q,aWT;_.IN=function(J,c){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(J!=_.tF)try{var m=this;J.call(c,function(b){m.resolve_(2,b)},function(b){m.resolve_(3,b)})}catch(b){this.resolve_(3,b)}};
CR8=function(){this.next=this.context=this.JSC$7780_onRejected=this.JSC$7780_onFulfilled=this.child=null;this.always=!1};
CR8.prototype.reset=function(){this.context=this.JSC$7780_onRejected=this.JSC$7780_onFulfilled=this.child=null;this.always=!1};
a2Z=new PRz(function(){return new CR8},function(J){J.reset()});
kRj=function(J,c,m){var b=a2Z.get();b.JSC$7780_onFulfilled=J;b.JSC$7780_onRejected=c;b.context=m;return b};
_.ML=function(J){if(J instanceof _.IN)return J;var c=new _.IN(_.tF);c.resolve_(2,J);return c};
_.sv=function(J){return new _.IN(function(c,m){m(J)})};
iUQ=function(J,c,m){HU8(J,c,m,null)||_.as(_.k2(c,J))};
_.k1=function(J){return new _.IN(function(c,m){var b=J.length,x=[];if(b)for(var P=function(a,k){b--;x[a]=k;b==0&&c(x)},p=function(a){m(a)},t,I=0;I<J.length;I++)t=J[I],iUQ(t,_.k2(P,I),p);
else c(x)})};
nl_=function(J){return new _.IN(function(c){var m=J.length,b=[];if(m)for(var x=function(t,I,a){m--;b[t]=I?{fulfilled:!0,value:a}:{fulfilled:!1,reason:a};m==0&&c(b)},P,p=0;p<J.length;p++)P=J[p],iUQ(P,_.k2(x,p,!0),_.k2(x,p,!1));
else c(b)})};
T6_=function(J){return new _.IN(function(c,m){var b=J.length,x=[];if(b)for(var P=function(a){c(a)},p=function(a,k){b--;
x[a]=k;b==0&&m(x)},t,I=0;I<J.length;I++)t=J[I],iUQ(t,P,_.k2(p,I));
else c(void 0)})};
_.$x=function(){var J,c,m=new _.IN(function(b,x){J=b;c=x});
return new wwj(m,J,c)};
_.IN.prototype.then=function(J,c,m){return rej(this,CI(typeof J==="function"?J:null),CI(typeof c==="function"?c:null),m)};
I2B(_.IN);LTz=function(J,c,m,b){s_Z(J,kRj(c||_.tF,m||null,b))};
_.Hz=function(J,c){c=CI(c);c=kRj(c,c);c.always=!0;s_Z(J,c);return J};
_.IN.prototype.finally=function(J){var c=this;J=CI(J);return new Promise(function(m,b){LTz(c,function(x){J();m(x)},function(x){J();
b(x)})})};
_.IN.prototype.thenCatch=function(J,c){return rej(this,null,CI(J),c)};
_.IN.prototype.catch=_.IN.prototype.thenCatch;_.IN.prototype.cancel=function(J){if(this.state_==0){var c=new _.OQ(J);_.as(function(){D0L(this,c)},this)}};
var D0L=function(J,c){if(J.state_==0)if(J.parent_){var m=J.parent_;if(m.callbackEntries_){for(var b=0,x=null,P=null,p=m.callbackEntries_;p&&(p.always||(b++,p.child==J&&(x=p),!(x&&b>1)));p=p.next)x||(P=p);x&&(m.state_==0&&b==1?D0L(m,c):(P?(b=P,b.next==m.callbackEntriesTail_&&(m.callbackEntriesTail_=b),b.next=b.next.next):WT$(m),zAZ(m,x,3,c)))}J.parent_=null}else J.resolve_(3,c)},s_Z=function(J,c){J.callbackEntries_||J.state_!=2&&J.state_!=3||u7Q(J);
J.callbackEntriesTail_?J.callbackEntriesTail_.next=c:J.callbackEntries_=c;J.callbackEntriesTail_=c},rej=function(J,c,m,b){var x=kRj(null,null,null);
x.child=new _.IN(function(P,p){x.JSC$7780_onFulfilled=c?function(t){try{var I=c.call(b,t);P(I)}catch(a){p(a)}}:P;
x.JSC$7780_onRejected=m?function(t){try{var I=m.call(b,t);I===void 0&&t instanceof _.OQ?p(t):P(I)}catch(a){p(a)}}:p});
x.child.parent_=J;s_Z(J,x);return x.child};
_.IN.prototype.unblockAndFulfill_=function(J){this.state_=0;this.resolve_(2,J)};
_.IN.prototype.unblockAndReject_=function(J){this.state_=0;this.resolve_(3,J)};
_.IN.prototype.resolve_=function(J,c){this.state_==0&&(this===c&&(J=3,c=new TypeError("Ba")),this.state_=1,HU8(c,this.unblockAndFulfill_,this.unblockAndReject_,this)||(this.result_=c,this.state_=J,this.parent_=null,u7Q(this),J!=3||c instanceof _.OQ||f2Q(this,c)))};
var HU8=function(J,c,m,b){if(J instanceof _.IN)return LTz(J,c,m,b),!0;if(KTu(J))return J.then(c,m,b),!0;if(_.cB(J))try{var x=J.then;if(typeof x==="function")return Y16(J,x,c,m,b),!0}catch(P){return m.call(b,P),!0}return!1},Y16=function(J,c,m,b,x){var P=!1,p=function(I){P||(P=!0,m.call(x,I))},t=function(I){P||(P=!0,b.call(x,I))};
try{c.call(J,p,t)}catch(I){t(I)}},u7Q=function(J){J.executing_||(J.executing_=!0,_.as(J.executeCallbacks_,J))},WT$=function(J){var c=null;
J.callbackEntries_&&(c=J.callbackEntries_,J.callbackEntries_=c.next,c.next=null);J.callbackEntries_||(J.callbackEntriesTail_=null);return c};
_.IN.prototype.executeCallbacks_=function(){for(var J;J=WT$(this);)zAZ(this,J,this.state_,this.result_);this.executing_=!1};
zAZ=function(J,c,m,b){if(m==3&&c.JSC$7780_onRejected&&!c.always)for(;J&&J.hadUnhandledRejection_;J=J.parent_)J.hadUnhandledRejection_=!1;if(c.child)c.child.parent_=null,Xw6(c,m,b);else try{c.always?c.JSC$7780_onFulfilled.call(c.context):Xw6(c,m,b)}catch(x){aWT.call(null,x)}a2Z.put(c)};
Xw6=function(J,c,m){c==2?J.JSC$7780_onFulfilled.call(J.context,m):J.JSC$7780_onRejected&&J.JSC$7780_onRejected.call(J.context,m)};
f2Q=function(J,c){J.hadUnhandledRejection_=!0;_.as(function(){J.hadUnhandledRejection_&&aWT.call(null,c)})};
aWT=bQ;_.OQ=function(J){_.Jq.call(this,J)};
_.yv(_.OQ,_.Jq);_.OQ.prototype.name="cancel";var wwj=function(J,c,m){this.promise=J;this.resolve=c;this.reject=m};var iA;_.gP=function(J,c){_.KI.call(this);this.JSC$7792_interval_=J||1;this.timerObject_=c||_.mo;this.boundTick_=(0,_.Wa)(this.tick_,this);this.last_=_.lc()};
_.yv(_.gP,_.KI);_.V=_.gP.prototype;_.V.enabled=!1;_.V.JSC$7794_timer_=null;_.V.setInterval=function(J){this.JSC$7792_interval_=J;this.JSC$7794_timer_&&this.enabled?(this.stop(),this.start()):this.JSC$7794_timer_&&this.stop()};
_.V.tick_=function(){if(this.enabled){var J=_.lc()-this.last_;J>0&&J<this.JSC$7792_interval_*.8?this.JSC$7794_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$7792_interval_-J):(this.JSC$7794_timer_&&(this.timerObject_.clearTimeout(this.JSC$7794_timer_),this.JSC$7794_timer_=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
_.V.start=function(){this.enabled=!0;this.JSC$7794_timer_||(this.JSC$7794_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$7792_interval_),this.last_=_.lc())};
_.V.stop=function(){this.enabled=!1;this.JSC$7794_timer_&&(this.timerObject_.clearTimeout(this.JSC$7794_timer_),this.JSC$7794_timer_=null)};
_.V.disposeInternal=function(){_.gP.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
iA=function(J,c,m){if(typeof J==="function")m&&(J=(0,_.Wa)(J,m));else if(J&&typeof J.handleEvent=="function")J=(0,_.Wa)(J.handleEvent,J);else throw Error("Ca");return Number(c)>2147483647?-1:_.mo.setTimeout(J,c||0)};
_.ZUL=function(J){var c=null;return(new _.IN(function(m,b){c=iA(function(){m(void 0)},J);
c==-1&&b(Error("Da"))})).thenCatch(function(m){_.mo.clearTimeout(c);
throw m;})};var Cc=function(J){_.DS.call(this);this.streamzLogger=J;this.invocationCount=0;this.invocationLimit=100;this.shouldSendIsolatedPayload=!1;this.metricMap=new Map;this.disabledMetrics=new Set;this.flushInterval=3E4;this.JSC$7798_flushTimer=new _.gP(this.flushInterval);this.JSC$7798_flushTimer.listen("tick",this.snapshotAndFlush,!1,this);_.Kc(this,this.JSC$7798_flushTimer)};
_.D(Cc,_.DS);Cc.prototype.sendIsolatedPayload=function(J){this.shouldSendIsolatedPayload=J;this.invocationLimit=1};
var q16=function(J){J.JSC$7798_flushTimer.enabled||J.JSC$7798_flushTimer.start();J.invocationCount++;J.invocationCount>=J.invocationLimit&&J.snapshotAndFlush()};
Cc.prototype.snapshotAndFlush=function(){var J=this.metricMap.values();J=[].concat(_.L6(J)).filter(function(c){return c.cellMap.size});
J.length&&this.streamzLogger.flush(J,this.shouldSendIsolatedPayload);U0B(J);this.invocationCount=0;this.JSC$7798_flushTimer.enabled&&this.JSC$7798_flushTimer.stop()};
Cc.prototype.addNewCounter=function(J){var c=_.s$.apply(1,arguments);this.metricMap.has(J)||this.metricMap.set(J,new vpQ(J,c))};
Cc.prototype.addNewEventMetric=function(J){var c=_.s$.apply(1,arguments);this.metricMap.has(J)||this.metricMap.set(J,new OrC(J,c))};
var S1_=function(J,c){return J.disabledMetrics.has(c)?void 0:J.metricMap.get(c)};
Cc.prototype.JSC$7798_incrementCounter=function(J){this.JSC$7798_incrementCounterBy(J,1,_.s$.apply(1,arguments))};
Cc.prototype.JSC$7798_incrementCounterBy=function(J,c){var m=_.s$.apply(2,arguments),b=S1_(this,J);b&&b instanceof vpQ&&(b.JSC$7737_incrementCounterBy(c,m),q16(this))};
Cc.prototype.record=function(J,c){var m=_.s$.apply(2,arguments),b=S1_(this,J);b&&b instanceof OrC&&(b.record(c,m),q16(this))};
var U0B=function(J){for(var c=0;c<J.length;c++)J[c].clear()};_.nI=function(J,c,m){m=m===void 0?{}:m;c=Error.call(this,c);this.message=c.message;"stack"in c&&(this.stack=c.stack);this.code=J;this.metadata=m;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
_.D(_.nI,Error);_.nI.prototype.toString=function(){var J="RpcError("+(ja3(this.code)||String(this.code))+")";this.message&&(J+=": "+this.message);return J};_.hAu=_.mo.JSON.parse;_.TE=_.mo.JSON.stringify;_.DP=_.mo.JSON.parse;_.d0z=function(J){switch(J){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 $0z=function(J){switch(J){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var GR2,El8=function(){};
_.yv(El8,_.F5q);El8.prototype.createInstance=function(){return new XMLHttpRequest};
GR2=new El8;_.wb=function(J){_.KI.call(this);this.headers=new Map;this.JSC$7807_xmlHttpFactory_=J||null;this.JSC$7807_active_=!1;this.JSC$7807_xhr_=null;this.JSC$7807_lastUri_="";this.JSC$7807_lastErrorCode_=0;this.JSC$7807_lastError_="";this.inAbort_=this.inOpen_=this.inSend_=this.errorDispatched_=!1;this.timeoutInterval_=0;this.JSC$7807_timeoutId_=null;this.responseType_="";this.JSC$7807_withCredentials_=!1};
_.yv(_.wb,_.KI);var vlL=/^https?$/i,OU$=["POST","PUT"],AeQ=[],PAu=function(J,c,m,b,x,P,p){var t=new _.wb;AeQ.push(t);c&&t.listen("complete",c);t.listenOnce("ready",t.cleanupSend_);P&&(t.timeoutInterval_=Math.max(0,P));p&&(t.JSC$7807_withCredentials_=p);t.send(J,m,b,x)};
_.wb.prototype.cleanupSend_=function(){this.dispose();_.j2(AeQ,this)};
_.wb.prototype.send=function(J,c,m,b){if(this.JSC$7807_xhr_)throw Error("Ea`"+this.JSC$7807_lastUri_+"`"+J);c=c?c.toUpperCase():"GET";this.JSC$7807_lastUri_=J;this.JSC$7807_lastError_="";this.JSC$7807_lastErrorCode_=0;this.errorDispatched_=!1;this.JSC$7807_active_=!0;this.JSC$7807_xhr_=this.createXhr();this.JSC$7807_xhr_.onreadystatechange=CI((0,_.Wa)(this.onReadyStateChange_,this));try{this.inOpen_=!0,this.JSC$7807_xhr_.open(c,String(J),!0),this.inOpen_=!1}catch(p){RAj(this,p);return}J=m||"";m=new Map(this.headers);
if(b)if(Object.getPrototypeOf(b)===Object.prototype)for(var x in b)m.set(x,b[x]);else if(typeof b.keys==="function"&&typeof b.get==="function"){x=_.M(b.keys());for(var P=x.next();!P.done;P=x.next())P=P.value,m.set(P,b.get(P))}else throw Error("Fa`"+String(b));b=Array.from(m.keys()).find(function(p){return"content-type"==p.toLowerCase()});
x=_.mo.FormData&&J instanceof _.mo.FormData;!_.Aq(OU$,c)||b||x||m.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");c=_.M(m);for(b=c.next();!b.done;b=c.next())m=_.M(b.value),b=m.next().value,m=m.next().value,this.JSC$7807_xhr_.setRequestHeader(b,m);this.responseType_&&(this.JSC$7807_xhr_.responseType=this.responseType_);"withCredentials"in this.JSC$7807_xhr_&&this.JSC$7807_xhr_.withCredentials!==this.JSC$7807_withCredentials_&&(this.JSC$7807_xhr_.withCredentials=this.JSC$7807_withCredentials_);
try{this.JSC$7807_timeoutId_&&(clearTimeout(this.JSC$7807_timeoutId_),this.JSC$7807_timeoutId_=null),this.timeoutInterval_>0&&(this.JSC$7807_timeoutId_=setTimeout(this.timeout_.bind(this),this.timeoutInterval_)),this.inSend_=!0,this.JSC$7807_xhr_.send(J),this.inSend_=!1}catch(p){RAj(this,p)}};
_.wb.prototype.createXhr=function(){return this.JSC$7807_xmlHttpFactory_?this.JSC$7807_xmlHttpFactory_.createInstance():GR2.createInstance()};
_.wb.prototype.timeout_=function(){typeof wlu!="undefined"&&this.JSC$7807_xhr_&&(this.JSC$7807_lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.JSC$7807_lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};
var RAj=function(J,c){J.JSC$7807_active_=!1;J.JSC$7807_xhr_&&(J.inAbort_=!0,J.JSC$7807_xhr_.abort(),J.inAbort_=!1);J.JSC$7807_lastError_=c;J.JSC$7807_lastErrorCode_=5;ola(J);Q__(J)},ola=function(J){J.errorDispatched_||(J.errorDispatched_=!0,J.dispatchEvent("complete"),J.dispatchEvent("error"))};
_.wb.prototype.abort=function(J){this.JSC$7807_xhr_&&this.JSC$7807_active_&&(this.JSC$7807_active_=!1,this.inAbort_=!0,this.JSC$7807_xhr_.abort(),this.inAbort_=!1,this.JSC$7807_lastErrorCode_=J||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),Q__(this))};
_.wb.prototype.disposeInternal=function(){this.JSC$7807_xhr_&&(this.JSC$7807_active_&&(this.JSC$7807_active_=!1,this.inAbort_=!0,this.JSC$7807_xhr_.abort(),this.inAbort_=!1),Q__(this,!0));_.wb.superClass_.disposeInternal.call(this)};
_.wb.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)eAB(this);else this.onReadyStateChangeEntryPoint_()};
_.wb.prototype.onReadyStateChangeEntryPoint_=function(){eAB(this)};
var eAB=function(J){if(J.JSC$7807_active_&&typeof wlu!="undefined")if(J.inSend_&&_.rb(J)==4)setTimeout(J.onReadyStateChange_.bind(J),0);else if(J.dispatchEvent("readystatechange"),J.isComplete()){J.JSC$7807_active_=!1;try{if(J.isSuccess())J.dispatchEvent("complete"),J.dispatchEvent("success");else{J.JSC$7807_lastErrorCode_=6;try{var c=_.rb(J)>2?J.JSC$7807_xhr_.statusText:""}catch(m){c=""}J.JSC$7807_lastError_=c+" ["+J.getStatus()+"]";ola(J)}}finally{Q__(J)}}},Q__=function(J,c){if(J.JSC$7807_xhr_){J.JSC$7807_timeoutId_&&
(clearTimeout(J.JSC$7807_timeoutId_),J.JSC$7807_timeoutId_=null);
var m=J.JSC$7807_xhr_;J.JSC$7807_xhr_=null;c||J.dispatchEvent("ready");try{m.onreadystatechange=null}catch(b){}}};
_.wb.prototype.isActive=function(){return!!this.JSC$7807_xhr_};
_.wb.prototype.isComplete=function(){return _.rb(this)==4};
_.wb.prototype.isSuccess=function(){var J=this.getStatus(),c;if(!(c=$0z(J))){if(J=J===0)J=bQu(String(this.JSC$7807_lastUri_)),J=!vlL.test(J);c=J}return c};
_.rb=function(J){return J.JSC$7807_xhr_?J.JSC$7807_xhr_.readyState:0};
_.V=_.wb.prototype;_.V.getStatus=function(){try{return _.rb(this)>2?this.JSC$7807_xhr_.status:-1}catch(J){return-1}};
_.V.getResponseText=function(){try{return this.JSC$7807_xhr_?this.JSC$7807_xhr_.responseText:""}catch(J){return""}};
_.V.getResponse=function(){try{if(!this.JSC$7807_xhr_)return null;if("response"in this.JSC$7807_xhr_)return this.JSC$7807_xhr_.response;switch(this.responseType_){case "":case "text":return this.JSC$7807_xhr_.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in this.JSC$7807_xhr_)return this.JSC$7807_xhr_.mozResponseArrayBuffer}return null}catch(J){return null}};
_.V.getAllResponseHeaders=function(){return this.JSC$7807_xhr_&&_.rb(this)>=2?this.JSC$7807_xhr_.getAllResponseHeaders()||"":""};
_.V.getLastError=function(){return typeof this.JSC$7807_lastError_==="string"?this.JSC$7807_lastError_:String(this.JSC$7807_lastError_)};var pFq=function(){};
pFq.prototype.send=function(J,c,m){c=c===void 0?function(){}:c;
m=m===void 0?function(){}:m;
PAu(J.url,function(b){b=b.target;b.isSuccess()?c(b.getResponseText()):m(b.getStatus())},J.requestType,J.body,J.requestHeaders,J.timeoutMillis,J.withCredentials)};
pFq.prototype.getTransmissionType=function(){return 1};var j_6=function(J,c){this.logger=J;this.event=c;this.startTime=aa()};
j_6.prototype.done=function(){this.logger.vg(this.event,aa()-this.startTime)};
var s9=function(){l_.apply(this,arguments);this.TEST_ONLY={getExperimentIds:function(){return[]}}};
_.D(s9,l_);var LI=function(J,c,m){var b=aa();c=c();J.vg(m,aa()-b);return c},Z2m=function(){s9.apply(this,arguments)};
_.D(Z2m,s9);_.V=Z2m.prototype;_.V.sJe=function(){};
_.V.kj=function(){};
_.V.vg=function(){};
_.V.logError=function(){};
_.V.k8=function(){};
_.V.xxF=function(){};
_.V.nme=function(){};
_.V.t9e=function(){};
_.V.tYv=function(){};
var FTQ=function(J){s9.call(this);var c=this;this.logger=J;this.TEST_ONLY={hgB:function(){return c.logger},
getExperimentIds:function(){return c.logger.TEST_ONLY.getExperimentIds()}};
this.addOnDisposeCallback(function(){return void c.logger.dispose()})};
_.D(FTQ,s9);_.V=FTQ.prototype;_.V.update=function(J){this.logger.dispose();this.logger=J};
_.V.kj=function(J){this.logger.kj(J)};
_.V.vg=function(J,c){this.logger.vg(J,c)};
_.V.logError=function(J){this.logger.logError(J)};
_.V.k8=function(){this.logger.k8()};
_.V.xxF=function(J){this.logger.xxF(J)};
_.V.nme=function(J){this.logger.nme(J)};
_.V.t9e=function(J){this.logger.t9e(J)};
_.V.tYv=function(J){this.logger.tYv(J)};
_.V.sJe=function(J){this.logger.sJe(J)};
var l2Q=function(J,c){_.DS.call(this);var m=this;this.callback=J;this.sPU=c;this.vA8=-c;this.addOnDisposeCallback(function(){return void clearTimeout(m.timer)})};
_.D(l2Q,_.DS);var ye8=function(J){if(J.timer===void 0){var c=Math.max(0,J.vA8+J.sPU-aa());J.timer=setTimeout(function(){try{J.callback()}finally{J.vA8=aa(),J.timer=void 0}},c)}},B6$=function(J,c){s9.call(this);
this.metrics=J;this.gw=c};
_.D(B6$,s9);_.V=B6$.prototype;_.V.sJe=function(J){this.metrics.p5v.record(J,this.gw)};
_.V.kj=function(J){this.metrics.eventCount.increment(J,this.gw)};
_.V.vg=function(J,c){this.metrics.ytC.record(c,J,this.gw)};
_.V.logError=function(J){this.metrics.errorCount.increment(J,this.gw)};
_.V.xxF=function(J){this.metrics.k8f.increment(J,this.gw)};
_.V.nme=function(J){this.metrics.kgf.increment(J,this.gw)};
_.V.t9e=function(J){this.metrics.nbr.increment(J,this.gw)};
var k9=function(J,c){c=c===void 0?[]:c;var m={gw:J.gw||"_",iJa:J.iJa||[],kVe:J.kVe|0,destinationUrl:J.destinationUrl,auu:J.auu||function(){},
d8:J.d8||function(P,p){return XFG(P,p,m.auu,m.destinationUrl)}},b=m.d8("49",m.iJa.concat(c));
B6$.call(this,xse(b),m.gw);var x=this;this.TEST_ONLY={getExperimentIds:function(){return x.options.iJa.concat(x.ypx).sort(function(P,p){return P-p})}};
this.options=m;this.service=b;this.tN8=!J.d8;this.flushDebouncer=new l2Q(function(){return void x.service.snapshotAndFlush()},m.kVe);
this.addOnDisposeCallback(function(){x.flushDebouncer.dispose();x.tN8&&x.service.dispose()});
(this.ypx=c.slice()).sort(_.xZ)};
_.D(k9,B6$);k9.prototype.tYv=function(J){var c=this;J=J.slice();J.sort(_.xZ);_.Mu(J,this.ypx)||(this.flushDebouncer.dispose(),this.tN8&&this.service.dispose(),this.service=this.options.d8("49",this.options.iJa.concat(J)),this.flushDebouncer=new l2Q(function(){return void c.service.snapshotAndFlush()},this.options.kVe),this.metrics=xse(this.service),this.ypx=J)};
k9.prototype.k8=function(){ye8(this.flushDebouncer)};var Jp2=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(Jp2,_.d6);_.cpG=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(_.cpG,_.d6);var Qg=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J,0,Qg.messageId)};
_.D(Qg,_.d6);var gl$=_.g6(Qg);Qg.messageId="bfkj";var Uim=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(Uim,_.d6);var JGC=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(JGC,_.d6);var cG_=_.JG(JGC);_.xb=function(){var J=this;this.promise=new Promise(function(c,m){J.resolve=c;J.reject=m})};_.DY=function(J){_.DS.call(this);var c=this;this.kWe=Math.floor(Math.random()*200);this.wxi=new JGC;if("challenge"in J&&gl$(J.challenge)){var m=_.L0(J.challenge,4,void 0,Ea);var b=_.L0(J.challenge,5,void 0,Ea);_.L0(J.challenge,7,void 0,Ea)&&(this.wxi=cG_(_.L0(J.challenge,7,void 0,Ea)))}else m=J.program,b=J.globalName;this.addOnDisposeCallback(function(){var W,Y,Z;return _.N(function(d){if(d.nextAddress==1)return _.K(d,c.nYa,2);W=d.yieldResult;Y=W.mrl;(Z=Y)==null||Z();_.tD(d)})});
this.logger=qs2(J.pP||{},this.wxi,J.bnk);_.Kc(this,this.logger);var x=new _.xb;this.nYa=x.promise;this.logger.kj("t");var P=this.logger.share(),p=new j_6(P,"t"),t=function(W,Y,Z,d){if(!c.logger.isDisposed()){var G="k";Y?G="h":Z&&(G="u");G!=="k"?d!==0&&(c.logger.kj(G),c.logger.vg(G,W)):c.kWe<=0?(c.logger.kj(G),c.logger.vg(G,W),c.kWe=Math.floor(Math.random()*200)):c.kWe--}},I=function(W,Y,Z,d){Promise.resolve().then(function(){p.done();
P.k8();P.dispose();x.resolve({alT:W,mrl:Y,nsf:Z,dsV:d})})};
if(!_.mo[b])throw this.logger.logError(25),Error("Ga");if(!_.mo[b].a)throw this.logger.logError(26),Error("Ha");try{var a=_.mo[b].a;b=[];for(var k=[],H=S7J(this.wxi),T=0;T<H.length;T++)b.push(H[T]),k.push(1);var r=heR(this.wxi);for(H=0;H<r.length;H++)b.push(r[H]),k.push(2);this.cHl=_.M(a(m,I,!0,J.eBl,t,[b,k],_.L0(this.wxi,5))).next().value;this.kf2=x.promise.then(function(){})}catch(W){throw this.logger.logError(28),W;
}};
_.D(_.DY,_.DS);_.DY.prototype.snapshot=function(J){if(this.isDisposed())throw Error("Ia");this.logger.kj("n");var c=this.logger.share();return this.nYa.then(function(m){var b=m.alT;return new Promise(function(x){var P=new j_6(c,"n");b(function(p){P.done();c.sJe(p.length);c.k8();c.dispose();x(p)},[J.qb,
J.gcu,J.beg,J.cW8])})})};
_.m2u=function(J,c){if(J.isDisposed())throw Error("Ia");J.logger.kj("n");var m=LI(J.logger,function(){return J.cHl([c.qb,c.gcu,c.beg,c.cW8])},"n");
J.logger.sJe(m.length);J.logger.k8();return m};
_.DY.prototype.iNj=function(J){this.nYa.then(function(c){var m;(m=c.nsf)==null||m(J)})};
_.DY.prototype.aKu=function(J,c){return this.nYa.then(function(m){var b;return(b=m.dsV)==null?void 0:b(J,c,!1)})};
_.DY.prototype.nXa=function(){return this.logger.share()};var b1z=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(b1z,_.d6);var mzD=_.g6(b1z);var x2a=function(){this.w0x={};this.jXW=null},V3Q=function(){x2a.instance||(x2a.instance=new x2a);
return x2a.instance},M3C=function(J,c){return Ps_(J,_.JU(c,Jp2,1,Ea),_.JU(c,_.cpG,2,Ea),_.L0(c,3,void 0,Ea))},Ps_=function(J,c,m,b){if(!c&&!m)return Promise.resolve();
if(!b)return $sR(c,m);var x;(x=J.w0x)[b]||(x[b]=new Promise(function(P,p){$sR(c,m).then(function(){J.jXW=b;P()},function(t){delete J.w0x[b];
p(t)})}));
return J.w0x[b]};var p0z=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(p0z,_.d6);var Naz=function(J,c){return _.eQ(J,1,c)},t32=function(J,c){return _.eQ(J,2,c)};var Wz=function(J){_.DS.call(this);var c=this;this.options=J;this.cPE=new _.xb;this.kf2=this.cPE.promise;this.exj=new _.xb;this.i9U=1;this.bsu=new _.xb;this.xbF=[];this.zgd=J.zgd||function(){};
this.logger=new FTQ(qs2(J.pP||{}));IxZ(this,J.jc,J.mLU,J.ucp,J.olv,Object.assign({},K_Z,J.mBE||{}));this.addOnDisposeCallback(function(){return void Cs2(c)})};
_.D(Wz,_.DS);Wz.prototype.snapshot=function(J){var c=this;return _.N(function(m){switch(m.nextAddress){case 1:if(c.isDisposed())throw Error("Ia");if(c.qa||c.drW){m.jumpTo(2);break}return _.K(m,c.exj.promise,2);case 2:if(!c.qa){m.jumpTo(4);break}return _.K(m,c.qa.snapshot(J),5);case 5:return m.return(m.yieldResult);case 4:throw c.drW;}})};
var axQ=function(J){var c;return _.N(function(m){if(J.isDisposed())throw Error("Ia");(c=J.y4)!=null&&(c.endTimeMs=0,c.resolver(1));return _.K(m,J.bsu.promise,0)})},Cs2=function(J){J.drW=Error("Ka");
J.exj.resolve();di2(J.cPE.promise);J.cPE.reject(Error("Ka"));J.logger.dispose();Promise.all(J.xbF).then(function(){var m;return _.N(function(b){(m=J.qa)==null||m.dispose();J.qa=void 0;_.tD(b)})});
J.xbF=[];var c;(c=J.y4)!=null&&(c.endTimeMs=0,c.resolver(1));di2(J.bsu.promise);J.bsu.reject(Error("Ka"))};
Wz.prototype.iNj=function(J){var c,m;(c=this.qa)==null||(m=c.iNj)==null||m.call(c,J)};
Wz.prototype.aKu=function(J,c){var m,b,x;return(x=(m=this.qa)==null?void 0:(b=m.aKu)==null?void 0:b.call(m,J,c))!=null?x:Promise.resolve()};
var k$z=function(J,c){var m=J.zgd;J.zgd=function(){m();c()}},H12=function(J,c){J.isDisposed()||(J.qa=c,J.logger.update(c.nXa()),J.exj.resolve(),J.cPE.resolve(void 0),J.zgd())};
Wz.prototype.handleError=function(J){if(!this.isDisposed()){this.drW=J;this.exj.resolve();var c,m;(m=(c=this.options).vwT)==null||m.call(c,J)}};
var i18=function(J,c){c&&(Promise.all(J.xbF).then(function(){return void c.dispose()}),J.xbF=[])},zE=function(J,c){J.i9U=c;
var m,b;(b=(m=J.options).d6X)==null||b.call(m,c)},nh6=function(J){J.isDisposed()||(J.bsu.resolve(),J.bsu=new _.xb)},IxZ=function(J,c,m,b,x,P){b=b===void 0?V3Q():b;
x=x===void 0?Promise.resolve(void 0):x;var p,t,I,a,k,H,T,r,W,Y,Z,d;_.N(function(G){switch(G.nextAddress){case 1:return _.K(G,0,3);case 3:t=null;if(!p){G.jumpTo(6);break}zE(J,7);_.xL(G,7);return _.K(G,wm(p.snapshot({}),P.idl,function(){return Promise.resolve("E:CTO")}),9);
case 9:t=G.yieldResult;_.EO(G,6);break;case 7:_.NM(G),t="E:UCE";case 6:I=void 0,a=p?P.gmU:P.wIE,k=new pc(a,P.if5,P.hLA,P.rt5),H=1;case 10:if(!(H<=P.maxAttempts)){G.jumpTo(12);break}if(H===1){G.jumpTo(13);break}zE(J,0);J.y4=new TaC(k.getValue(),P.l65,P.nHT);return _.K(G,J.y4.promise,14);case 14:T=G.yieldResult,J.y4=void 0,T===1?(H=1,k.reset()):Y5B(k);case 13:_.xL(G,15);r=void 0;if(m){r=m;G.jumpTo(17);break}zE(J,5);W=b.jXW;return _.K(G,wm(w0z(c,W,t),P.icg,function(){return Promise.reject(Error("La"))}),
18);
case 18:r=G.yieldResult;case 17:return zE(J,3),_.K(G,wm(M3C(b,r),P.hPV,function(){return Promise.reject(Error("Ma"))}),19);
case 19:return zE(J,8),_.K(G,x,20);case 20:return Y=new _.DY({challenge:r,pP:J.options.pP,eBl:J.options.eBl}),_.K(G,wm(Y.kf2,P.kkv,function(){return Promise.reject(Error("Na"))}),21);
case 21:I=Y;G.jumpTo(12);break;case 15:Z=_.NM(G),J.handleError(Z),nh6(J);case 11:H++;G.jumpTo(10);break;case 12:if(J.isDisposed()){G.jumpTo(5);break}I&&(m=void 0,i18(J,p),p=I,H12(J,I),nh6(J));zE(J,2);J.y4=new TaC(P.qHT,P.l65,P.nHT);return _.K(G,J.y4.promise,22);case 22:J.y4=void 0;if(J.isDisposed()){G.jumpTo(5);break}G.jumpTo(3);break;case 5:(d=p)==null||d.dispose(),_.tD(G)}})};
Wz.prototype.nXa=function(){return this.logger.share()};
var K_Z={qHT:432E5,l65:3E5,nHT:10,idl:1E4,icg:3E4,hPV:3E4,kkv:6E4,wIE:1E3,gmU:6E4,if5:6E5,hLA:.25,rt5:2,maxAttempts:10},TaC=function(J,c,m){var b=this;this.endTimeMs=Date.now()+J;this.promise=new Promise(function(P){b.resolver=P});
var x=function(){var P=b.endTimeMs-Date.now();P<=m?b.resolver(0):setTimeout(x,Math.min(P,c))};
x()};var rGZ,vBt=(rGZ=Math.imul)!=null?rGZ:function(J,c){return J*c|0},rm=[196,
200,224,18],uA=function(J,c,m){m=m===void 0?[]:m;this.maxItems=J;this.gh=c===void 0?0:c;this.j0=m},shB=function(J){var c=globalThis.sessionStorage.getItem("iU5q-!O9@$");
if(!c)return new uA(J);var m=c.split(",");if(m.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new uA(J);c=m.slice(1);c.length===1&&c[0]===""&&(c=[]);m=Number(m[0]);return isNaN(m)||m<0||m>c.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new uA(J)):new uA(J,m,c)};
uA.prototype.serialize=function(){return String(this.gh)+","+this.j0.join()};
uA.prototype.insert=function(J,c){var m=void 0;if(this.j0[this.gh]!==J){var b=this.j0.indexOf(J);b!==-1?(this.j0.splice(b,1),b<this.gh&&this.gh--,this.j0.splice(this.gh,0,J)):(m=this.j0[this.gh],this.j0[this.gh]=J)}this.gh=(this.gh+1)%this.maxItems;J=GLG("iU5q-!O9@$",this.serialize());m&&J&&c(m);return J};
var L_u=function(J,c){this.logger=c;try{var m=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(b){m=!1}m&&(this.index=shB(J))},D2B=function(J,c,m,b,x){var P=J.index?LI(J.logger,function(){return oBT(J.index,A$f(c),m,b,x)},"W"):"u";
J.logger.t9e(P)},W_2=function(J,c,m){var b=_.M(J.index?LI(J.logger,function(){return QDo(A$f(c),m)},"R"):["u"]),x=b.next().value;
b=b.next().value;J.logger.nme(x);return b};var z$j={toString:function(J){var c=[],m=0;J-=-2147483648;c[m++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(J%52);for(J=Math.floor(J/52);J>0;)c[m++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(J%62),J=Math.floor(J/62);return c.join("")}};var Y$2=function(J){J=uH_(J);for(var c=2654435769,m=2654435769,b=314159265,x=J.length,P=x,p=0,t=function(){c-=m;c-=b;c^=b>>>13;m-=b;m-=c;m^=c<<8;b-=c;b-=m;b^=m>>>13;c-=m;c-=b;c^=b>>>12;m-=b;m-=c;m^=c<<16;b-=c;b-=m;b^=m>>>5;c-=m;c-=b;c^=b>>>3;m-=b;m-=c;m^=c<<10;b-=c;b-=m;b^=m>>>15};P>=12;P-=12,p+=12)c+=fx$(J,p),m+=fx$(J,p+4),b+=fx$(J,p+8),t();
b+=x;switch(P){case 11:b+=J[p+10]<<24;case 10:b+=J[p+9]<<16;case 9:b+=J[p+8]<<8;case 8:m+=J[p+7]<<24;case 7:m+=J[p+6]<<16;case 6:m+=J[p+5]<<8;case 5:m+=J[p+4];case 4:c+=J[p+3]<<24;case 3:c+=J[p+2]<<16;case 2:c+=J[p+1]<<8;case 1:c+=J[p]}t();return z$j.toString(b)},uH_=function(J){for(var c=[],m=0;m<J.length;m++)c.push(J.charCodeAt(m));
return c},fx$=function(J,c){return J[c]+(J[c+1]<<8)+(J[c+2]<<16)+(J[c+3]<<24)};var X0Q,fI=function(J){_.DS.call(this);this.logger=J;this.h6U=new _.xb;this[X0Q]=this.dispose};
_.D(fI,_.DS);var Z1Q=function(J,c){var m=setTimeout(function(){J.h6U.resolve()},c);
J.addOnDisposeCallback(function(){return void clearTimeout(m)})};
fI.prototype.yO=function(J,c){var m=this.pX(J);c==null||c(m);return LI(this.logger,function(){return _.yR(m,2)},this.niu)};
var q$Z=function(J,c,m,b){return LI(J.logger,function(){return m?J.yO(c,b):J.pX(c,b)},J.sH)};
X0Q=Symbol.dispose;var U2u=function(J,c,m,b){fI.call(this,J);this.dwl=c;this.eEm=m;this.sH="m";this.niu="x";this.jP5=0;Z1Q(this,b)};
_.D(U2u,fI);U2u.prototype.pX=function(J,c){var m=this;this.logger.kj(this.sH);++this.jP5>=this.eEm&&this.h6U.resolve();var b=J();J=LI(this.logger,function(){return m.dwl(b)},"C");
if(J===void 0)throw new jd(17,"YNJ:Undefined");if(!(J instanceof Uint8Array))throw new jd(18,"ODM:Invalid");c==null||c(J);return J};
var S$$=function(J,c,m){fI.call(this,J);this.r6B=c;this.sH="f";this.niu="z";Z1Q(this,m)};
_.D(S$$,fI);S$$.prototype.pX=function(){return this.r6B};
var h$j=function(J,c,m){fI.call(this,J);this.zlg=c;this.sH="w";this.niu="z";Z1Q(this,m)};
_.D(h$j,fI);h$j.prototype.pX=function(){var J=this;return LI(this.logger,function(){return _.I2(J.zlg)},"d")};
h$j.prototype.yO=function(){return this.zlg};
var d2$=function(J,c){fI.call(this,J);this.error=c;this.sH="e";this.niu="y"};
_.D(d2$,fI);var $28=function(J,c){var m=(c(J.error.message)+":"+c(J.error.stack)).substring(0,2048);c=m.length+1;m=eGQ(m);var b=new Uint8Array(4+m.length);b.set([42,c&127|128,c>>7,J.error.code]);b.set(m,4);return b};
d2$.prototype.pX=function(){if(this.tGw)return this.tGw;this.tGw=$28(this,function(J){return"_"+Y$2(J)});
return $28(this,function(J){return J})};
var G$Q=function(J,c,m){fI.call(this,J);this.iUl=c;this.clientState=m;this.sH="S";this.niu="q"};
_.D(G$Q,fI);G$Q.prototype.pX=function(){var J=Math.floor(Date.now()/1E3),c=[Math.random()*255,Math.random()*255],m=c.concat([this.iUl&255,this.clientState],[J>>24&255,J>>16&255,J>>8&255,J&255]);J=new Uint8Array(2+m.length);J[0]=34;J[1]=m.length;J.set(m,2);m=J.subarray(2);for(var b=c=c.length;b<m.length;++b)m[b]^=m[b%c];this.logger.xxF(this.clientState);return J};var Eh_={bcD:3E4,yJB:2E4},Y1=function(J){_.DS.call(this);var c=this;this.iwn=new _.xb;this.cCn=0;this.qR=void 0;this.state=2;this.vA=J.vA;this.jc=J.jc;this.mBE=Object.assign({},Eh_,J.mBE||{});this.logger=J.vA.nXa();var m;this.onError=(m=J.onError)!=null?m:function(){};
this.wze=J.wze||!1;if(vhz(J)){var b=this.vA;this.f3Y=function(){return axQ(b).catch(function(p){p=c.reportError(new jd(c.tW?20:32,"TRG:Disposed",p));c.qR=p;var t;(t=c.tW)==null||t.dispose();c.tW=void 0;c.iwn.reject(p)})};
k$z(b,function(){return void O18(c)});
b.i9U===2&&O18(this)}else this.f3Y=J.ymf,O18(this);var x=this.logger.share();x.kj("o");var P=new j_6(x,"o");this.iwn.promise.then(function(){P.done();x.k8();x.dispose()},function(){return void x.dispose()});
this.addOnDisposeCallback(function(){c.tW?(c.tW.dispose(),c.tW=void 0):c.qR?c.logger.k8():(c.qR=c.reportError(new jd(32,"TNP:Disposed")),c.logger.k8(),c.iwn.reject(c.qR))});
_.Kc(this,this.logger)};
_.D(Y1,_.DS);Y1.prototype.sEi=function(){return this.iwn.promise};
var AG$=function(J,c){if(!(c instanceof jd))if(c instanceof _.nI){var m=Error(c.toString());m.stack=c.stack;c=new jd(11,"EBH:Error",m)}else c=new jd(12,"BSO:Unknown",c);return J.reportError(c)},O18=function(J){var c,m,b,x,P,p,t,I,a,k,H,T,r,W,Y;
return _.N(function(Z){switch(Z.nextAddress){case 1:c=void 0;J.cCn++;m=new _.xb;J.vA instanceof Wz&&J.vA.xbF.push(m.promise);if(!J.wze){Z.jumpTo(2);break}b=new _.xb;setTimeout(function(){return void b.resolve()});
return _.K(Z,b.promise,2);case 2:return x=J.logger.share(),_.xL(Z,4,5),J.state=5,P={},p=[],_.K(Z,wm(J.vA.snapshot({qb:P,beg:p}),J.mBE.yJB,function(){return Promise.reject(new jd(15,"MDA:Timeout"))}),7);
case 7:t=Z.yieldResult;if(J.isDisposed())throw new jd(J.tW?20:32,"MDA:Disposed");I=p[0];J.state=6;return _.K(Z,wm(R$2(J.jc,t),J.mBE.bcD,function(){return Promise.reject(new jd(10,"BWB:Timeout"))}),8);
case 8:a=Z.yieldResult;if(J.isDisposed())throw new jd(J.tW?20:32,"BWB:Disposed");J.state=7;c=LI(x,function(){var G=ohz(J,a,m,I);G.h6U.promise.then(function(){return void J.f3Y()});
return G},"i");
case 5:_.PR(Z);x.dispose();_.p6(Z,6);break;case 4:k=_.NM(Z);(H=c)==null||H.dispose();if(!J.qR){T=AG$(J,k);m.resolve();var d;if(d=J.vA instanceof Wz&&J.cCn<2)a:if(k instanceof jd)d=k.code!==32&&k.code!==20&&k.code!==10;else{if(k instanceof _.nI)switch(k.code){case 2:case 13:case 14:case 4:break;default:d=!1;break a}d=!0}if(d)return r=(1+Math.random()*.25)*(J.tW?6E4:1E3),W=setTimeout(function(){return void J.f3Y()},r),J.addOnDisposeCallback(function(){return void clearTimeout(W)}),Z.return();
J.qR=T}x.logError(J.tW?13:14);J.iwn.reject(J.qR);return Z.return();case 6:J.state=8,J.cCn=0,(Y=J.tW)==null||Y.dispose(),J.tW=c,J.iwn.resolve(),_.tD(Z)}})},ohz=function(J,c,m,b){var x=GAo(c,2)*1E3;
if(x<=0)throw new jd(31,"TTM:Invalid");if(_.L0(c,4))return new h$j(J.logger,_.L0(c,4),x);if(!GAo(c,3))return new S$$(J.logger,rQ2(_.K0(c,1)),x);if(!b)throw new jd(4,"PMD:Undefined");b=b(rQ2(_.K0(c,1)));if(!(b instanceof Function))throw new jd(16,"APF:Failed");J.qd5=Math.floor((Date.now()+x)/1E3);J=new U2u(J.logger,b,GAo(c,3),x);J.addOnDisposeCallback(function(){return void m.resolve()});
return J};
Y1.prototype.pX=function(J){return Qha(this,Object.assign({},J),!1)};
Y1.prototype.yO=function(J){return Qha(this,Object.assign({},J),!0)};
Y1.prototype.gLQ=function(J){if(J>150)return!1;try{return this.cache=new L_u(J,this.logger),!0}catch(c){return this.reportError(new jd(22,"GBJ:init",c)),!1}};
Y1.prototype.reportError=function(J){this.logger.logError(J.code);this.onError(J);return J};
var e$C=function(J,c){c=c instanceof jd?c:new jd(5,"TVD:error",c);return J.reportError(c)},Qha=function(J,c,m){try{if(J.isDisposed())throw new jd(21,"BNT:disposed");
if(!J.tW&&J.qR)throw J.qR;var b,x;return(x=(b=jh_(J,c,m))!=null?b:F_6(J,c,m))!=null?x:lxQ(J,c,m)}catch(P){if(!c.cOY)throw e$C(J,P);return yG2(J,m,P)}},jh_=function(J,c,m){var b;
return(b=J.tW)==null?void 0:q$Z(b,function(){return Bau(J,c)},m,function(x){var P;
if(J.tW instanceof U2u&&((P=c.ku)==null?0:P.hsB))try{var p;(p=J.cache)==null||D2B(p,Bau(J,c),x,c.ku.h7d,J.qd5-120)}catch(t){J.reportError(new jd(24,"ELX:write",t))}})},F_6=function(J,c,m){var b;
if((b=c.ku)!=null&&b.qPz)try{var x,P=(x=J.cache)==null?void 0:W_2(x,Bau(J,c),c.ku.h7d);return P?m?LI(J.logger,function(){return _.yR(P,2)},"a"):P:void 0}catch(p){J.reportError(new jd(23,"RXO:read",p))}},lxQ=function(J,c,m){var b={stack:[],
error:void 0,hasError:!1};try{if(!c.qKY)throw new jd(29,"SDF:notready");return q$Z(uKq(b,new G$Q(J.logger,0,J.state)),function(){return Bau(J,c)},m)}catch(x){b.error=x,b.hasError=!0}finally{f$T(b)}},yG2=function(J,c,m){var b={stack:[],
error:void 0,hasError:!1};try{var x=e$C(J,m);return q$Z(uKq(b,new d2$(J.logger,x)),function(){return[]},c)}catch(P){b.error=P,b.hasError=!0}finally{f$T(b)}},Bau=function(J,c){return c.x8F?c.x8F:c.qb?LI(J.logger,function(){return c.x8F=eGQ(c.qb)},"c"):[]},vhz=function(J){return R2(function(c){if(!xB(c))return!1;
for(var m=_.M(Object.entries(J)),b=m.next();!b.done;b=m.next()){var x=_.M(b.value);b=x.next().value;x=x.next().value;if(!(b in c)){if(x.isOptionalGuard_doNotManuallySetPrettyPlease===!0)continue;return!1}if(!x(c[b]))return!1}return!0})}({vA:function(J){return R2(function(c){return c instanceof J})}(Wz)},"");var ghB=function(){var J=_.Jc();this.JSC$7925_streamzService=J;J.addNewCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",bd("cookie_enabled"),bd("cookie_3p_enabled"),_.Vx("browser"))};
ghB.prototype.increment=function(J,c,m){this.JSC$7925_streamzService.JSC$7798_incrementCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",J,c,m)};
var KKG=function(){var J=_.Jc();this.JSC$7949_streamzService=J;J.addNewCounter("/client_streamz/youtube/identity/stickiness/reload",x9("tick"),bd("from_st_cookie"))};
KKG.prototype.increment=function(J,c){this.JSC$7949_streamzService.JSC$7798_incrementCounter("/client_streamz/youtube/identity/stickiness/reload",J,c)};
var JD6=function(){var J=_.Jc();this.JSC$7955_streamzService=J;J.addNewCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",_.Vx("status"))};
JD6.prototype.increment=function(J){this.JSC$7955_streamzService.JSC$7798_incrementCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",J)};
var cDa=function(){var J=_.Jc();this.JSC$7958_streamzService=J;J.addNewCounter("/client_streamz/youtube/ads/desktop_masthead",_.Vx("stage"),bd("is_using_ytd_player"),bd("has_expandable_tiles"))};
cDa.prototype.increment=function(J,c,m){this.JSC$7958_streamzService.JSC$7798_incrementCounter("/client_streamz/youtube/ads/desktop_masthead",J,c,m)};
var mM8=function(){var J=_.Jc();this.JSC$7961_streamzService=J;J.addNewCounter("/client_streamz/youtube/web/response_signature",_.Vx("check_status"))};
mM8.prototype.increment=function(J){this.JSC$7961_streamzService.JSC$7798_incrementCounter("/client_streamz/youtube/web/response_signature",J)};
var b6B=function(){var J=_.Jc();this.JSC$7964_streamzService=J;J.addNewCounter("/client_streamz/youtube/web/e_sig_log",_.Vx("sig"),x9("de"))};
b6B.prototype.increment=function(J,c){this.JSC$7964_streamzService.JSC$7798_incrementCounter("/client_streamz/youtube/web/e_sig_log",J,c)};
var xM6=function(){var J=_.Jc();this.JSC$7967_streamzService=J;J.addNewCounter("/client_streamz/youtube/web/e_sig_en",_.Vx("sig"),x9("de"))};
xM6.prototype.increment=function(J,c){this.JSC$7967_streamzService.JSC$7798_incrementCounter("/client_streamz/youtube/web/e_sig_en",J,c)};
_.Vtu=function(){var J=_.Jc();this.JSC$7970_streamzService=J;J.addNewCounter("/client_streamz/youtube/web/enforcement_intent",_.Vx("action"))};
_.Vtu.prototype.increment=function(J){this.JSC$7970_streamzService.JSC$7798_incrementCounter("/client_streamz/youtube/web/enforcement_intent",J)};var X4=window;var PLL=(new Date).getTime();var Mt_=function(J){this.servicePromise_=J;J.then((0,_.Wa)(function(){},this),function(){},this)},pRQ=function(J,c,m){J.servicePromise_.then(function(b){var x=b[c];
if(!x)throw Error("Oa`"+c);return x.apply(b,m)})},IFa=function(J,c,m){for(var b=Array(arguments.length-2),x=2;x<arguments.length;x++)b[x-2]=arguments[x];
x=N8B(J,c).then(function(P){return P.apply(null,b)},function(P){P=Error("Pa`"+c+"`"+J,{cause:P});
delete tta[c];return _.sv(P)});
return new Mt_(x)},tta={},N8B=function(J,c){var m=tta[c];
if(m)return m;m=(m=_.$y(c))?_.ML(m):(new _.IN(function(b,x){var P=(new k8(document)).createElement("SCRIPT");P.async=!0;_.$h(P,_.p1(NTQ(J)));P.onload=P.onreadystatechange=function(){P.readyState&&P.readyState!="loaded"&&P.readyState!="complete"||b()};
P.onerror=function(p){x(Error("Qa`"+c+"`"+J,{cause:p}))};
(document.head||document.getElementsByTagName("head")[0]).appendChild(P)})).then(function(){var b=_.$y(c);
if(!b)throw Error("Ra`"+c+"`"+J);return b});
return tta[c]=m};var KNQ={GOOGLE:"https://www.google.com",SUPPORT:"https://support.google.com",PLAY:"https://play.google.com"},aFz=function(){var J=this;this.rsaForList=[];this.rsaForPromises=[];this.initialize=jDt(function(){return _.N(function(c){if(c.nextAddress==1)return typeof document==="undefined"||document.requestStorageAccessFor===void 0||navigator.permissions===void 0||navigator.permissions.query===void 0||location.hostname.match(".+\\.google\\.com$")?c.return(Promise.resolve()):_.K(c,CLu(J),2);J.rsaForList.length>
0&&document.addEventListener("click",J.requestAccessForHelpPanel);_.tD(c)})});
this.requestAccessForHelpPanel=function(){if(!(J.rsaForPromises.length>0)){for(var c=_.M(J.rsaForList),m=c.next();!m.done;m=c.next()){m=m.value;try{J.rsaForPromises.push(document.requestStorageAccessFor(m))}catch(b){}}Promise.all(J.rsaForPromises).then(function(){}).catch(function(){}).finally(function(){J.reset()})}}};
aFz.prototype.reset=function(){document.removeEventListener("click",this.requestAccessForHelpPanel)};
var CLu=function(J){var c,m,b,x;return _.N(function(P){switch(P.nextAddress){case 1:c=_.M(Object.values(KNQ)),m=c.next();case 2:if(m.done){P.jumpTo(0);break}b=m.value;_.xL(P,5);return _.K(P,navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:b}),7);case 7:x=P.yieldResult;x.state!=="granted"&&J.rsaForList.push(b);_.EO(P,3);break;case 5:_.NM(P);P.jumpTo(0);break;case 3:m=c.next(),P.jumpTo(2)}})};(new aFz).initialize();var kG$=function(J){this.JSC$7984_loader_=J};
kG$.prototype.startHelp=function(J){pRQ(this.JSC$7984_loader_,"startHelp",arguments)};
kG$.prototype.JSC$7986_loadChatSupport=function(J){pRQ(this.JSC$7984_loader_,"loadChatSupport",arguments)};
var i6$=function(J,c){c=c||{};J=IFa(H6Q,"help.service.Lazy.create",J,{apiKey:c.apiKey||c.apiKey,asxUiUri:c.asxUiUri||c.asxUiUri,environment:c.environment||c.environment,flow:c.flow||c.flow,frdProductData:c.frdProductData||c.frdProductData,frdProductDataSerializedJspb:c.frdProductDataSerializedJspb||c.frdProductDataSerializedJspb,helpCenterPath:c.helpCenterPath||c.helpCenterPath,locale:c.locale||c.locale||"en-US".replace(/-/g,"_"),nonce:c.nonce||c.nonce,productData:c.productData||c.productData,receiverUri:c.receiverUri||
c.receiverUri,renderApiUri:c.renderApiUri||c.renderApiUri,theme:c.theme||c.theme,window:c.window||c.window});return new kG$(J)},H6Q=new Sg(Dl2,"https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");var nL8=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(nL8,_.d6);var T8$=_.JG(nL8);_.wR_=new function(J,c,m,b){this.configType=J;this.flagName=m;this.defaultValue=b;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 slZ=function(){this.retriever=_.BG().resolve(rDB)};Lc(Node);Lc(Element);var LN2=Lc(HTMLElement);Lc(SVGElement);var DML,WN6,U9,zNz;DML=function(J){return typeof J.className=="string"?J.className:J.getAttribute&&J.getAttribute("class")||""};
WN6=function(J){return J.classList?J.classList:DML(J).match(/\S+/g)||[]};
_.ZY=function(J,c){typeof J.className=="string"?J.className=c:J.setAttribute&&J.setAttribute("class",c)};
_.qb=function(J,c){return J.classList?J.classList.contains(c):_.Aq(WN6(J),c)};
_.oA=function(J,c){if(J.classList)J.classList.add(c);else if(!_.qb(J,c)){var m=DML(J);_.ZY(J,m+(m.length>0?" "+c:c))}};
U9=function(J,c){if(J.classList)Array.prototype.forEach.call(c,function(x){_.oA(J,x)});
else{var m={};Array.prototype.forEach.call(WN6(J),function(x){m[x]=!0});
Array.prototype.forEach.call(c,function(x){m[x]=!0});
c="";for(var b in m)c+=c.length>0?" "+b:b;_.ZY(J,c)}};
_.Ad=function(J,c){J.classList?J.classList.remove(c):_.qb(J,c)&&_.ZY(J,Array.prototype.filter.call(WN6(J),function(m){return m!=c}).join(" "))};
zNz=function(J,c){J.classList?Array.prototype.forEach.call(c,function(m){_.Ad(J,m)}):_.ZY(J,Array.prototype.filter.call(WN6(J),function(m){return!_.Aq(c,m)}).join(" "))};var uXz=function(J){this.logger=this.previouslyFocusedElement=this.focusChangeHandler=null;this.document=J.document},XRj=function(J,c){fFu(J);
var m=document.createElement("div"),b;(b=c.parentNode)==null||b.insertBefore(m,c);m.tabIndex=0;m.id="fc-focus-trap-pre-div";m=document.createElement("div");var x;(x=c.parentNode)==null||x.insertBefore(m,c.nextSibling);m.tabIndex=0;m.id="fc-focus-trap-post-div";var P=Ywu(J,c),p=Ywu(J,c,!0);P&&p&&(J.focusChangeHandler=function(){var t=J.document.activeElement;if(t)if(_.Gj(c,t))J.previouslyFocusedElement=t;else if(t===J.document.activeElement)switch(J.previouslyFocusedElement){case P:p.focus();J.previouslyFocusedElement=
p;break;default:P.focus(),J.previouslyFocusedElement=P}},J.document.addEventListener("focus",J.focusChangeHandler,!0),J.document.addEventListener("focusin",J.focusChangeHandler))},fFu=function(J){J.focusChangeHandler&&(document.removeEventListener("focus",J.focusChangeHandler,!0),document.removeEventListener("focusin",J.focusChangeHandler),J.focusChangeHandler=null);
var c;(c=document.getElementById("fc-focus-trap-pre-div"))==null||c.remove();var m;(m=document.getElementById("fc-focus-trap-post-div"))==null||m.remove()},Z6Q=function(J,c,m,b,x){m=m===void 0?!0:m;
var P;x=(P=x===void 0?null:x)!=null?P:Ywu(J,c,b===void 0?!1:b);x!==null&&(x.focus(),m&&XRj(J,c))};
uXz.prototype.disableButton=function(J,c){c=c===void 0?null:c;J.disabled=!0;c&&_.oA(J,c)};
var Ywu=function(J,c,m){m=m===void 0?!1:m;if(Acr(c)&&!m)return c;var b=m?[].slice.call(c.children,0).reverse():c.children;b=_.M(b);for(var x=b.next();!x.done;x=b.next())if(x=x.value,LN2(x)&&(x=Ywu(J,x,m)))return x;return Acr(c)&&m?c:null};var qwQ=function(J){this.originalBodyOverflow="";this.JSC$8010_domHelper=Cw(J)};_.yv(_.zj,_.DS);_.V=_.zj.prototype;_.V.JSC$8013_id_=0;_.V.disposeInternal=function(){_.zj.superClass_.disposeInternal.call(this);this.stop();delete this.JSC$8011_listener_;delete this.handler_};
_.V.start=function(J){this.stop();this.JSC$8013_id_=iA(this.callback_,J!==void 0?J:this.JSC$8011_interval_)};
_.V.stop=function(){this.isActive()&&_.mo.clearTimeout(this.JSC$8013_id_);this.JSC$8013_id_=0};
_.V.fire=function(){this.stop();this.JSC$8013_doAction_()};
_.V.isActive=function(){return this.JSC$8013_id_!=0};
_.V.JSC$8013_doAction_=function(){this.JSC$8013_id_=0;this.JSC$8011_listener_&&this.JSC$8011_listener_.call(this.handler_)};_.J0=function(J){_.DS.call(this);this.handler_=J;this.JSC$8014_keys_={}};
_.yv(_.J0,_.DS);var UMa=[];_.J0.prototype.listen=function(J,c,m,b){Array.isArray(c)||(c&&(UMa[0]=c.toString()),c=UMa);for(var x=0;x<c.length;x++){var P=_.wp(J,c[x],m||this.handleEvent,b||!1,this.handler_||this);if(!P)break;this.JSC$8014_keys_[P.key]=P}return this};
_.J0.prototype.listenOnce=function(J,c,m,b){return Sw$(this,J,c,m,b)};
var Sw$=function(J,c,m,b,x,P){if(Array.isArray(m))for(var p=0;p<m.length;p++)Sw$(J,c,m[p],b,x,P);else{c=Hd(c,m,b||J.handleEvent,x,P||J.handler_||J);if(!c)return J;J.JSC$8014_keys_[c.key]=c}return J};
_.J0.prototype.unlisten=function(J,c,m,b,x){if(Array.isArray(c))for(var P=0;P<c.length;P++)this.unlisten(J,c[P],m,b,x);else if(J=bU6(J,c,m||this.handleEvent,_.cB(b)?!!b.capture:!!b,x||this.handler_||this))iv(J),delete this.JSC$8014_keys_[J.key];return this};
_.J0.prototype.removeAll=function(){_.Lw.forEach(this.JSC$8014_keys_,function(J,c){this.JSC$8014_keys_.hasOwnProperty(c)&&iv(J)},this);
this.JSC$8014_keys_={}};
_.J0.prototype.disposeInternal=function(){_.J0.superClass_.disposeInternal.call(this);this.removeAll()};
_.J0.prototype.handleEvent=function(){throw Error("Sa");};var So=function(){_.DS.call(this);this.services_={}};
_.yv(So,_.DS);_.V=So.prototype;_.V.logger=null;_.V.connect=function(J){J&&J()};
_.V.isConnected=function(){return!0};
_.V.registerService=function(J,c,m){this.services_[J]={callback:c,objectPayload:!!m}};
_.V.getService=function(J,c){var m=this.services_[J];return m?m:this.defaultService_?{callback:_.k2(this.defaultService_,J),objectPayload:_.cB(c)}:null};
var hNQ=function(J,c){if(c&&typeof J==="string")try{return JSON.parse(J)}catch(m){return null}else if(!c&&typeof J!=="string")return(0,_.TE)(J);return J};
So.prototype.disposeInternal=function(){So.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 hi=function(J,c){this.sequence_=[];this.onCancelFunction_=J;this.defaultScope_=c||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};
hi.prototype.cancel=function(J){if(this.fired_)this.result_ instanceof hi&&this.result_.cancel();else{if(this.parent_){var c=this.parent_;delete this.parent_;J?c.cancel(J):(c.branches_--,c.branches_<=0&&c.cancel())}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||this.errback(new db(this))}};
hi.prototype.continue_=function(J,c){this.blocked_=!1;dMQ(this,J,c)};
var dMQ=function(J,c,m){J.fired_=!0;J.result_=m;J.hadError_=!c;$Mz(J)},EL$=function(J){if(J.fired_){if(!J.silentlyCanceled_)throw new GGC(J);
J.silentlyCanceled_=!1}};
hi.prototype.callback=function(J){EL$(this);dMQ(this,!0,J)};
hi.prototype.errback=function(J){EL$(this);dMQ(this,!1,J)};
var vLj=function(J,c,m){$1(J,c,null,m)};
hi.prototype.finally=function(J){var c=this;return new Promise(function(m,b){$1(c,function(x){J();m(x)},function(x){J();
b(x)})})};
var $1=function(J,c,m,b){var x=J.fired_;x||(c===m?c=m=CI(c):(c=CI(c),m=CI(m)));J.sequence_.push([c,m,b]);x&&$Mz(J)};
hi.prototype.then=function(J,c,m){var b,x,P=new _.IN(function(p,t){x=p;b=t});
$1(this,x,function(p){p instanceof db?P.cancel():b(p);return O6C},this);
return P.then(J,c,m)};
I2B(hi);var AD2=function(J,c){c instanceof hi?vLj(J,(0,_.Wa)(c.branch,c)):vLj(J,function(){return c})};
hi.prototype.branch=function(J){var c=new hi;$1(this,c.callback,c.errback,c);J&&(c.parent_=this,this.branches_++);return c};
hi.prototype.isError=function(J){return J instanceof Error};
var RNz=function(J){return QF(J.sequence_,function(c){return typeof c[1]==="function"})},O6C={},$Mz=function(J){if(J.unhandledErrorId_&&J.fired_&&RNz(J)){var c=J.unhandledErrorId_,m=oL2[c];
m&&(_.mo.clearTimeout(m.JSC$8031_id_),delete oL2[c]);J.unhandledErrorId_=0}J.parent_&&(J.parent_.branches_--,delete J.parent_);c=J.result_;for(var b=m=!1;J.sequence_.length&&!J.blocked_;){var x=J.sequence_.shift(),P=x[0],p=x[1];x=x[2];if(P=J.hadError_?p:P)try{var t=P.call(x||J.defaultScope_,c);t===O6C&&(t=void 0);t!==void 0&&(J.hadError_=J.hadError_&&(t==c||J.isError(t)),J.result_=c=t);if(KTu(c)||typeof _.mo.Promise==="function"&&c instanceof _.mo.Promise)b=!0,J.blocked_=!0}catch(I){c=I,J.hadError_=
!0,RNz(J)||(m=!0)}}J.result_=c;b&&(t=(0,_.Wa)(J.continue_,J,!0),b=(0,_.Wa)(J.continue_,J,!1),c instanceof hi?($1(c,t,b),c.blocking_=!0):c.then(t,b));m&&(c=new Qla(c),oL2[c.JSC$8031_id_]=c,J.unhandledErrorId_=c.JSC$8031_id_)},GGC=function(){_.Jq.call(this)};
_.yv(GGC,_.Jq);GGC.prototype.message="Deferred has already fired";GGC.prototype.name="AlreadyCalledError";var db=function(){_.Jq.call(this)};
_.yv(db,_.Jq);db.prototype.message="Deferred was canceled";db.prototype.name="CanceledError";var Qla=function(J){this.JSC$8031_id_=_.mo.setTimeout((0,_.Wa)(this.throwError,this),0);this.JSC$8031_error_=J};
Qla.prototype.throwError=function(){delete oL2[this.JSC$8031_id_];throw this.JSC$8031_error_;};
var oL2={};var eNQ={1:"NativeMessagingTransport"},jlQ=["pu","lru","pru","lpu","ppu"],lFQ=function(){for(var J=10,c=FNC,m=c.length,b="";J-- >0;)b+=c.charAt(Math.floor(Math.random()*m));return b},FNC="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";var GE=function(J){_.DS.call(this);this.JSC$8034_domHelper_=J||Cw()};
_.yv(GE,_.DS);GE.prototype.transportType=0;GE.prototype.getWindow=function(){return this.JSC$8034_domHelper_.getWindow()};
GE.prototype.getName=function(){return eNQ[String(this.transportType)]||""};var E9=function(J,c,m,b,x){GE.call(this,m);this.JSC$8037_channel_=J;this.protocolVersion_=x||2;this.peerHostname_=c||"*";this.JSC$8037_eventHandler_=new _.J0(this);this.maybeAttemptToConnectTimer_=new _.gP(100,this.getWindow());this.oneSidedHandshake_=!!b;this.setupAckReceived_=new hi;this.setupAckSent_=new hi;this.JSC$8037_connected_=new hi;this.endpointId_=lFQ();this.peerEndpointId_=null;this.oneSidedHandshake_?yDQ(this.JSC$8037_channel_)==1?AD2(this.JSC$8037_connected_,this.setupAckReceived_):
AD2(this.JSC$8037_connected_,this.setupAckSent_):(AD2(this.JSC$8037_connected_,this.setupAckReceived_),this.protocolVersion_==2&&AD2(this.JSC$8037_connected_,this.setupAckSent_));vLj(this.JSC$8037_connected_,this.notifyConnected_,this);this.JSC$8037_connected_.callback(!0);this.JSC$8037_eventHandler_.listen(this.maybeAttemptToConnectTimer_,"tick",this.maybeAttemptToConnect_)};
_.yv(E9,GE);E9.prototype.peerProtocolVersion_=null;E9.prototype.initialized_=!1;E9.prototype.transportType=1;var B8u={};E9.prototype.sendTimerId_=0;
var ckQ=function(J){var c=J.event_.data;if(typeof c!=="string")return!1;var m=c.indexOf("|"),b=c.indexOf(":");if(m==-1||b==-1)return!1;var x=c.substring(0,m);m=c.substring(m+1,b);c=c.substring(b+1);if(b=vz[x])return b.xpcDeliver(m,c,J.event_.origin),!0;b=gLB(c)[0];for(var P in vz){var p=vz[P];if(yDQ(p)==1&&!p.isConnected()&&m=="tp"&&(b=="SETUP"||b=="SETUP_NTPV2")&&Jk2(p,J.event_.origin))return delete vz[p.name],p.name=x,vz[x]=p,p.xpcDeliver(m,c),!0}return!1},mAj=function(J){J.protocolVersion_!=2||
J.peerProtocolVersion_!=null&&J.peerProtocolVersion_!=2||J.send("tp","SETUP_NTPV2,"+J.endpointId_);
J.peerProtocolVersion_!=null&&J.peerProtocolVersion_!=1||J.send("tp","SETUP")},bw2=function(J,c){if(J.protocolVersion_!=2||J.peerProtocolVersion_!=null&&J.peerProtocolVersion_!=2||c!=2){if(J.peerProtocolVersion_!=null&&J.peerProtocolVersion_!=1||c!=1)return;
J.send("tp","SETUP_ACK")}else J.send("tp","SETUP_ACK_NTPV2");J.setupAckSent_.fired_||J.setupAckSent_.callback(!0)},xA8=function(J,c){c>J.peerProtocolVersion_&&(J.peerProtocolVersion_=c);
J.peerProtocolVersion_==1&&(J.setupAckSent_.fired_||J.oneSidedHandshake_||J.setupAckSent_.callback(!0),J.peerEndpointId_=null)};
_.V=E9.prototype;_.V.connect=function(){var J=this.getWindow(),c=_.mj(J),m=B8u[c];typeof m!=="number"&&(m=0);m==0&&_.wp(J.postMessage?J:J.document,"message",ckQ,!1,E9);B8u[c]=m+1;this.initialized_=!0;this.maybeAttemptToConnect_()};
_.V.maybeAttemptToConnect_=function(){var J=yDQ(this.JSC$8037_channel_)==0;this.oneSidedHandshake_&&J||this.JSC$8037_channel_.isConnected()||this.isDisposed()?this.maybeAttemptToConnectTimer_.stop():(this.maybeAttemptToConnectTimer_.start(),mAj(this))};
_.V.send=function(J,c){var m=this.JSC$8037_channel_.peerWindowObject_;m&&(this.send=function(b,x){var P=this,p=this.JSC$8037_channel_.name;this.sendTimerId_=iA(function(){P.sendTimerId_=0;try{var t=m.postMessage?m:m.document;t.postMessage&&t.postMessage(p+"|"+b+":"+x,P.peerHostname_)}catch(I){}},0)},this.send(J,c))};
_.V.notifyConnected_=function(){var J=this.JSC$8037_channel_,c=this.protocolVersion_==1||this.peerProtocolVersion_==1?200:void 0;J.isConnected()||J.connectionDelay_&&J.connectionDelay_.isActive()||(J.state_=2,_.yr(J.connectionDelay_),c!==void 0?(J.connectionDelay_=new _.zj(J.connectCb_,c),J.connectionDelay_.start()):(J.connectionDelay_=null,J.connectCb_()))};
_.V.disposeInternal=function(){if(this.initialized_){var J=this.getWindow(),c=_.mj(J),m=B8u[c];B8u[c]=m-1;m==1&&_.Is(J.postMessage?J:J.document,"message",ckQ,!1,E9)}this.sendTimerId_&&(_.mo.clearTimeout(this.sendTimerId_),this.sendTimerId_=0);_.yr(this.JSC$8037_eventHandler_);delete this.JSC$8037_eventHandler_;_.yr(this.maybeAttemptToConnectTimer_);delete this.maybeAttemptToConnectTimer_;this.setupAckReceived_.cancel();delete this.setupAckReceived_;this.setupAckSent_.cancel();delete this.setupAckSent_;
this.JSC$8037_connected_.cancel();delete this.JSC$8037_connected_;delete this.send;E9.superClass_.disposeInternal.call(this)};
var gLB=function(J){J=J.split(",");J[1]=J[1]||null;return J};_.O9=function(J){if(J.getValues&&typeof J.getValues=="function")return J.getValues();if(typeof Map!=="undefined"&&J instanceof Map||typeof Set!=="undefined"&&J instanceof Set)return Array.from(J.values());if(typeof J==="string")return J.split("");if(_.yJ(J)){for(var c=[],m=J.length,b=0;b<m;b++)c.push(J[b]);return c}return _.Lw.getValues(J)};
_.VUj=function(J){if(J.getKeys&&typeof J.getKeys=="function")return J.getKeys();if(!J.getValues||typeof J.getValues!="function"){if(typeof Map!=="undefined"&&J instanceof Map)return Array.from(J.keys());if(!(typeof Set!=="undefined"&&J instanceof Set)){if(_.yJ(J)||typeof J==="string"){var c=[];J=J.length;for(var m=0;m<J;m++)c.push(m);return c}return _.Lw.getKeys(J)}}};
_.PKZ=function(J,c,m){if(J.forEach&&typeof J.forEach=="function")J.forEach(c,m);else if(_.yJ(J)||typeof J==="string")Array.prototype.forEach.call(J,c,m);else for(var b=_.VUj(J),x=_.O9(J),P=x.length,p=0;p<P;p++)c.call(m,x[p],b&&b[p],J)};var Hoo,F4,yh,CK6,MUu,N7j,pm$,Kp8,tU$;
_.oz=function(J,c){this.JSC$8042_domain_=this.userInfo_=this.scheme_="";this.JSC$8042_port_=null;this.fragment_=this.JSC$8042_path_="";this.JSC$8042_ignoreCase_=!1;var m;J instanceof _.oz?(this.JSC$8042_ignoreCase_=c!==void 0?c:J.JSC$8042_ignoreCase_,_.Ai(this,J.scheme_),this.userInfo_=J.userInfo_,_.Rs(this,J.JSC$8042_domain_),_.os(this,J.JSC$8042_port_),_.Qh(this,J.getPath()),_.eo(this,J.JSC$8042_queryData_.clone()),_.jo(this,J.fragment_)):J&&(m=_.Q6(String(J)))?(this.JSC$8042_ignoreCase_=!!c,_.Ai(this,
m[1]||"",!0),this.userInfo_=F4(m[2]||""),_.Rs(this,m[3]||"",!0),_.os(this,m[4]),_.Qh(this,m[5]||"",!0),_.eo(this,m[6]||"",!0),_.jo(this,m[7]||"",!0)):(this.JSC$8042_ignoreCase_=!!c,this.JSC$8042_queryData_=new _.lA(null,this.JSC$8042_ignoreCase_))};
_.oz.prototype.toString=function(){var J=[],c=this.scheme_;c&&J.push(yh(c,MUu,!0),":");var m=this.JSC$8042_domain_;if(m||c=="file")J.push("//"),(c=this.userInfo_)&&J.push(yh(c,MUu,!0),"@"),J.push(_.Eb(m).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),m=this.JSC$8042_port_,m!=null&&J.push(":",String(m));if(m=this.getPath())this.JSC$8042_domain_&&m.charAt(0)!="/"&&J.push("/"),J.push(yh(m,m.charAt(0)=="/"?pm$:N7j,!0));(m=this.JSC$8042_queryData_.toString())&&J.push("?",m);(m=this.fragment_)&&J.push("#",yh(m,
tU$));return J.join("")};
_.oz.prototype.resolve=function(J){var c=this.clone(),m=!!J.scheme_;m?_.Ai(c,J.scheme_):m=!!J.userInfo_;m?c.userInfo_=J.userInfo_:m=!!J.JSC$8042_domain_;m?_.Rs(c,J.JSC$8042_domain_):m=J.JSC$8042_port_!=null;var b=J.getPath();if(m)_.os(c,J.JSC$8042_port_);else if(m=!!J.JSC$8042_path_){if(b.charAt(0)!="/")if(this.JSC$8042_domain_&&!this.JSC$8042_path_)b="/"+b;else{var x=c.getPath().lastIndexOf("/");x!=-1&&(b=c.getPath().slice(0,x+1)+b)}x=b;if(x==".."||x==".")b="";else if(_.tq(x,"./")||_.tq(x,"/.")){b=
_.xt(x,"/");x=x.split("/");for(var P=[],p=0;p<x.length;){var t=x[p++];t=="."?b&&p==x.length&&P.push(""):t==".."?((P.length>1||P.length==1&&P[0]!="")&&P.pop(),b&&p==x.length&&P.push("")):(P.push(t),b=!0)}b=P.join("/")}else b=x}m?_.Qh(c,b):m=J.JSC$8042_queryData_.toString()!=="";m?_.eo(c,J.JSC$8042_queryData_.clone()):m=!!J.fragment_;m&&_.jo(c,J.fragment_);return c};
_.oz.prototype.clone=function(){return new _.oz(this)};
_.Ai=function(J,c,m){J.scheme_=m?F4(c,!0):c;J.scheme_&&(J.scheme_=J.scheme_.replace(/:$/,""));return J};
_.Rs=function(J,c,m){J.JSC$8042_domain_=m?F4(c,!0):c;return J};
_.os=function(J,c){if(c){c=Number(c);if(isNaN(c)||c<0)throw Error("Ta`"+c);J.JSC$8042_port_=c}else J.JSC$8042_port_=null;return J};
_.oz.prototype.getPath=function(){return this.JSC$8042_path_};
_.Qh=function(J,c,m){J.JSC$8042_path_=m?F4(c,!0):c;return J};
_.eo=function(J,c,m){c instanceof _.lA?(J.JSC$8042_queryData_=c,IdZ(J.JSC$8042_queryData_,J.JSC$8042_ignoreCase_)):(m||(c=yh(c,Kp8)),J.JSC$8042_queryData_=new _.lA(c,J.JSC$8042_ignoreCase_));return J};
_.Ra=function(J,c,m){J.JSC$8042_queryData_.set(c,m);return J};
_.Ay=function(J,c){return J.JSC$8042_queryData_.get(c)};
_.jo=function(J,c,m){J.fragment_=m?F4(c):c;return J};
_.Bz=function(J){_.Ra(J,"zx",va());return J};
_.O7=function(J,c){return J instanceof _.oz?J.clone():new _.oz(J,c)};
Hoo=function(J,c){J instanceof _.oz||(J=_.O7(J));c instanceof _.oz||(c=_.O7(c));return J.resolve(c)};
F4=function(J,c){return J?c?decodeURI(J.replace(/%25/g,"%2525")):decodeURIComponent(J):""};
yh=function(J,c,m){return typeof J==="string"?(J=encodeURI(J).replace(c,CK6),m&&(J=J.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),J):null};
CK6=function(J){J=J.charCodeAt(0);return"%"+(J>>4&15).toString(16)+(J&15).toString(16)};
MUu=/[#\/\?@]/g;N7j=/[#\?:]/g;pm$=/[#\?]/g;Kp8=/[#\?@]/g;tU$=/#/g;_.lA=function(J,c){this.count_=this.keyMap_=null;this.encodedQuery_=J||null;this.JSC$8043_ignoreCase_=!!c};
_.gb=function(J){J.keyMap_||(J.keyMap_=new Map,J.count_=0,J.encodedQuery_&&PCZ(J.encodedQuery_,function(c,m){J.add(lN(c),m)}))};
_.V=_.lA.prototype;_.V.getCount=function(){_.gb(this);return this.count_};
_.V.add=function(J,c){_.gb(this);this.encodedQuery_=null;J=JE(this,J);var m=this.keyMap_.get(J);m||this.keyMap_.set(J,m=[]);m.push(c);this.count_+=1;return this};
_.V.remove=function(J){_.gb(this);J=JE(this,J);return this.keyMap_.has(J)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(J).length,this.keyMap_.delete(J)):!1};
_.V.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};
_.V.isEmpty=function(){_.gb(this);return this.count_==0};
_.V.containsKey=function(J){_.gb(this);J=JE(this,J);return this.keyMap_.has(J)};
_.V.containsValue=function(J){var c=this.getValues();return _.Aq(c,J)};
_.V.forEach=function(J,c){_.gb(this);this.keyMap_.forEach(function(m,b){m.forEach(function(x){J.call(c,x,b,this)},this)},this)};
_.V.getKeys=function(){_.gb(this);for(var J=Array.from(this.keyMap_.values()),c=Array.from(this.keyMap_.keys()),m=[],b=0;b<c.length;b++)for(var x=J[b],P=0;P<x.length;P++)m.push(c[b]);return m};
_.V.getValues=function(J){_.gb(this);var c=[];if(typeof J==="string")this.containsKey(J)&&(c=c.concat(this.keyMap_.get(JE(this,J))));else{J=Array.from(this.keyMap_.values());for(var m=0;m<J.length;m++)c=c.concat(J[m])}return c};
_.V.set=function(J,c){_.gb(this);this.encodedQuery_=null;J=JE(this,J);this.containsKey(J)&&(this.count_-=this.keyMap_.get(J).length);this.keyMap_.set(J,[c]);this.count_+=1;return this};
_.V.get=function(J,c){if(!J)return c;J=this.getValues(J);return J.length>0?String(J[0]):c};
_.ad_=function(J,c,m){J.remove(c);m.length>0&&(J.encodedQuery_=null,J.keyMap_.set(JE(J,c),_.Fe(m)),J.count_+=m.length)};
_.lA.prototype.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var J=[],c=Array.from(this.keyMap_.keys()),m=0;m<c.length;m++){var b=c[m],x=_.Eb(b);b=this.getValues(b);for(var P=0;P<b.length;P++){var p=x;b[P]!==""&&(p+="="+_.Eb(b[P]));J.push(p)}}return this.encodedQuery_=J.join("&")};
_.lA.prototype.clone=function(){var J=new _.lA;J.encodedQuery_=this.encodedQuery_;this.keyMap_&&(J.keyMap_=new Map(this.keyMap_),J.count_=this.count_);return J};
var JE=function(J,c){c=String(c);J.JSC$8043_ignoreCase_&&(c=c.toLowerCase());return c},IdZ=function(J,c){c&&!J.JSC$8043_ignoreCase_&&(_.gb(J),J.encodedQuery_=null,J.keyMap_.forEach(function(m,b){var x=b.toLowerCase();
b!=x&&(this.remove(b),_.ad_(this,x,m))},J));
J.JSC$8043_ignoreCase_=c};
_.lA.prototype.extend=function(J){for(var c=0;c<arguments.length;c++)_.PKZ(arguments[c],function(m,b){this.add(b,m)},this)};var cs=function(J,c){So.call(this);for(var m=0,b;b=jlQ[m];m++)if(b in J&&!/^https?:\/\//.test(J[b]))throw Error("Va`"+J[b]+"`"+b);this.cfg_=J;this.name=this.cfg_.cn||lFQ();this.JSC$8038_domHelper_=c||Cw();this.deferredDeliveries_=[];this.peerLoadHandler_=new _.J0(this);J.lpu=J.lpu||xuu(this.JSC$8038_domHelper_.getWindow().location.href)+"/robots.txt";J.ppu=J.ppu||xuu(J.pu||"")+"/robots.txt";vz[this.name]=this;bU6(window,"unload",kOu)||Hd(window,"unload",kOu)};
_.yv(cs,So);var Hwz=RegExp("^%*tp$"),iwj=RegExp("^%+tp$");_.V=cs.prototype;_.V.connectionDelay_=null;_.V.peerWindowDeferred_=null;_.V.transport_=null;_.V.state_=1;_.V.isConnected=function(){return this.state_==2};
_.V.peerWindowObject_=null;_.V.iframeElement_=null;_.V.connect=function(J){this.connectCb_=J||_.tF;this.state_==3&&(this.state_=1);this.peerWindowDeferred_?vLj(this.peerWindowDeferred_,this.continueConnection_):this.continueConnection_()};
_.V.continueConnection_=function(){this.peerWindowDeferred_=null;this.cfg_.ifrid&&(this.iframeElement_=this.JSC$8038_domHelper_.getElement(this.cfg_.ifrid));if(this.iframeElement_){var J=this.iframeElement_.contentWindow;J||(J=window.frames[this.cfg_.ifrid]);this.peerWindowObject_=J}if(!this.peerWindowObject_){if(window==window.top)throw Error("Xa");this.peerWindowObject_=window.parent}if(!this.transport_){this.cfg_.tp||(this.cfg_.tp=typeof document.postMessage==="function"||typeof window.postMessage===
"function"?1:0);if(typeof this.cfg_.tp==="function")this.transport_=new this.cfg_.tp(this,this.JSC$8038_domHelper_);else switch(this.cfg_.tp){case 1:this.transport_=new E9(this,this.cfg_.ph,this.JSC$8038_domHelper_,!!this.cfg_.osh,this.cfg_.nativeProtocolVersion||2)}if(!this.transport_)throw Error("Wa");}for(this.transport_.connect();this.deferredDeliveries_.length>0;)this.deferredDeliveries_.shift()()};
_.V.close=function(){this.peerWindowDeferred_&&(this.peerWindowDeferred_.cancel(),this.peerWindowDeferred_=null);this.deferredDeliveries_.length=0;this.peerLoadHandler_.removeAll();this.state_=3;_.yr(this.transport_);this.connectCb_=this.transport_=null;_.yr(this.connectionDelay_);this.connectionDelay_=null};
_.V.send=function(J,c){if(this.isConnected()){try{var m=!!this.peerWindowObject_&&!this.peerWindowObject_.closed}catch(x){m=!1}if(m){_.cB(c)&&(c=(0,_.TE)(c));m=this.transport_;var b=m.send;Hwz.test(J)&&(J="%"+J);J=J.replace(/[%:|]/g,encodeURIComponent);b.call(m,J,c)}else this.close()}};
_.V.xpcDeliver=function(J,c,m){if(this.peerWindowDeferred_)this.deferredDeliveries_.push((0,_.Wa)(this.xpcDeliver,this,J,c,m));else if(Jk2(this,m)&&!this.isDisposed()&&this.state_!=3)if(J&&J!="tp")this.isConnected()&&(J=J.replace(/%[0-9a-f]{2}/gi,decodeURIComponent),J=iwj.test(J)?J.substring(1):J,J=this.getService(J,c))&&(c=hNQ(c,J.objectPayload),c!=null&&J.callback(c));else switch(J=this.transport_,m=gLB(c),c=m[1],m[0]){case "SETUP_ACK":xA8(J,1);J.setupAckReceived_.fired_||J.setupAckReceived_.callback(!0);
break;case "SETUP_ACK_NTPV2":J.protocolVersion_==2&&(xA8(J,2),J.setupAckReceived_.fired_||J.setupAckReceived_.callback(!0));break;case "SETUP":xA8(J,1);bw2(J,1);break;case "SETUP_NTPV2":J.protocolVersion_==2&&(m=J.peerProtocolVersion_,xA8(J,2),bw2(J,2),m!=1&&J.peerEndpointId_==null||J.peerEndpointId_==c||mAj(J),J.peerEndpointId_=c)}};
var yDQ=function(J){var c=J.cfg_.role;return typeof c==="number"?c:window.parent==J.peerWindowObject_?1:0},Jk2=function(J,c){var m=J.cfg_.ph;
return _.Mf(c==null?"":String(c))||_.Mf(m==null?"":String(m))||c==J.cfg_.ph};
cs.prototype.disposeInternal=function(){this.close();this.iframeElement_=this.peerWindowObject_=null;delete vz[this.name];_.yr(this.peerLoadHandler_);delete this.peerLoadHandler_;cs.superClass_.disposeInternal.call(this)};
var kOu=function(){for(var J in vz)_.yr(vz[J])},vz={};var T7z=function(J,c){this.JSC$8052_win=J;this.allowAdsHttpEndpoint=c;this.wallElement=this.allowAdsCrossPageChannel=this.allowAdsPopup=null;this.JSC$8052_domHelper=Cw(J);this.scrollManager=new qwQ(J);this.accessibilityManager=new uXz(J);n0C(this)},n0C=function(J){var c=function(){J.allowAdsPopup&&J.allowAdsPopup.style.setProperty("display","none","important");
J.wallElement.style.setProperty("display","","important");fFu(J.accessibilityManager);Z6Q(J.accessibilityManager,J.wallElement.querySelector(".fc-dialog-container"),!1,!1,J.wallElement.querySelector(".fc-button-whitelist"));var x=J.scrollManager;x.JSC$8010_domHelper.JSC$7337_document_.body.style.overflow=x.originalBodyOverflow};
J.allowAdsPopup=J.JSC$8052_domHelper.JSC$7339_createDom("DIV",{"class":"fc-whitelist-root"});J.allowAdsPopup.style.setProperty("display","none","important");J.JSC$8052_domHelper.appendChild(J.JSC$8052_domHelper.JSC$7337_document_.body,J.allowAdsPopup);var m=J.JSC$8052_domHelper.JSC$7339_createDom("DIV",{"class":"fc-dialog-overlay"});J.JSC$8052_domHelper.appendChild(J.allowAdsPopup,m);var b=J.JSC$8052_domHelper.JSC$7339_createDom("DIV",{"class":"fc-whitelist-dialog-wrapper",onclick:c});J.JSC$8052_domHelper.appendChild(J.allowAdsPopup,
b);m=J.JSC$8052_domHelper.JSC$7339_createDom("IFRAME");m.className="fc-whitelist-dialog";m.frameBorder="0";m.id="fc-whitelist-iframe";m.tabIndex="0";_.Yh(m,J.allowAdsHttpEndpoint);J.JSC$8052_domHelper.appendChild(b,m);b={};b.pu=_.N2(J.allowAdsHttpEndpoint).toString();b.tp=1;b.cn="fc-whitelist-channel";b.ifrid=m.id;b.osh=!0;J.allowAdsCrossPageChannel=new cs(b);J.allowAdsCrossPageChannel.registerService("close",c);J.allowAdsCrossPageChannel.registerService("refresh",function(){J.JSC$8052_win.location.reload()});
J.allowAdsCrossPageChannel.registerService("resize",function(x){if(x){var P=J.allowAdsPopup.querySelector(".fc-whitelist-dialog");x.width&&P.style.setProperty("width",x.width,"important");x.height&&P.style.setProperty("height",x.height,"important")}},!0);
J.allowAdsCrossPageChannel.connect()};
T7z.prototype.tearDown=function(){this.allowAdsPopup&&(this.JSC$8052_domHelper.removeNode(this.allowAdsPopup),this.allowAdsPopup=null);this.allowAdsCrossPageChannel&&this.allowAdsCrossPageChannel.close()};/*
 gapi.loader.OBJECT_CREATE_TEST_OVERRIDE &&*/
var bg=window,xc=document,wmL=bg.location,rkQ=function(){},swu=/\[native code\]/,VP=function(J,c,m){return J[c]=J[c]||m},LpQ=function(J){J=J.sort();
for(var c=[],m=void 0,b=0;b<J.length;b++){var x=J[b];x!=m&&c.push(x);m=x}return c},Ps=function(){var J;
if((J=Object.create)&&swu.test(J))J=J(null);else{J={};for(var c in J)J[c]=void 0}return J},MB=VP(bg,"gapi",{});var pC={};pC=VP(bg,"___jsl",Ps());VP(pC,"I",0);VP(pC,"hel",10);var DA_=function(){var J=wmL.href;if(pC.dpo)var c=pC.h;else{c=pC.h;var m=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),b=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(J=J&&(m.exec(J)||b.exec(J)))try{c=decodeURIComponent(J[2])}catch(x){}}return c},WpC=function(J){var c=VP(pC,"PQ",[]);
pC.PQ=[];var m=c.length;if(m===0)J();else for(var b=0,x=function(){++b===m&&J()},P=0;P<m;P++)c[P](x)},zVu=function(J){return VP(VP(pC,"H",Ps()),J,Ps())};var NB=function(J){this.JSC$8054_obj_=J};
NB.prototype.value=function(){return this.JSC$8054_obj_};
NB.prototype.getWidth=function(){return this.JSC$8054_obj_.width};
NB.prototype.getHeight=function(){return this.JSC$8054_obj_.height};
NB.prototype.getStyle=function(){return this.JSC$8054_obj_.style};var utZ=function(J){this.JSC$8057_obj_=J||{}};
_.V=utZ.prototype;_.V.value=function(){return this.JSC$8057_obj_};
_.V.setUrl=function(J){this.JSC$8057_obj_.url=J;return this};
_.V.getUrl=function(){return this.JSC$8057_obj_.url};
_.V.getStyle=function(){return this.JSC$8057_obj_.style};
_.V.setId=function(J){this.JSC$8057_obj_.id=J;return this};
_.V.getId=function(){return this.JSC$8057_obj_.id};
_.V.getContext=function(){return this.JSC$8057_obj_.context};
var fdz=function(J){J.JSC$8057_obj_.attributes=J.JSC$8057_obj_.attributes||{};return new NB(J.JSC$8057_obj_.attributes)};var Yzu=function(){utZ.apply(this,arguments)};
_.D(Yzu,utZ);var XmQ=VP(pC,"perf",Ps());VP(XmQ,"g",Ps());var Zwz=VP(XmQ,"i",Ps());VP(XmQ,"r",[]);Ps();Ps();var UA$=function(J,c,m){c&&c.length>0&&(c=qz$(c),m&&m.length>0&&(c+="___"+qz$(m)),c.length>28&&(c=c.substr(0,28)+(c.length-28)),m=c,c=VP(Zwz,"_p",Ps()),VP(c,m,Ps())[J]=(new Date).getTime(),c=XmQ.r,typeof c==="function"?c(J,"_p",m):c.push([J,"_p",m]))},qz$=function(J){return J.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/,/g,"_")};var Sz_=Ps(),hV2=[],tE=function(J){throw Error("Ya`"+J);};
hV2.push(["jsl",function(J){for(var c in J)if(Object.prototype.hasOwnProperty.call(J,c)){var m=J[c];typeof m=="object"?pC[c]=VP(pC,c,[]).concat(m):VP(pC,c,m)}if(c=J.u)J=VP(pC,"us",[]),J.push(c),(c=/^https:(.*)$/.exec(c))&&J.push("http:"+c[1])}]);
var dA$=/^(\/[a-zA-Z0-9_\-]+)+$/,$AQ=[/\/amp\//,/\/amp$/,/^\/amp$/],GOz=/^[a-zA-Z0-9\-_\.,!]+$/,E0$=/^gapi\.loaded_[0-9]+$/,v0_=/^[a-zA-Z0-9,._-]+$/,o08=function(J,c,m,b,x){var P=J.split(";"),p=P.shift(),t=Sz_[p],I=null;t?I=t(P,c,m,b):tE("no hint processor for: "+p);I||tE("failed to generate load url");c=I;m=c.match(OwL);(b=c.match(Ak_))&&b.length===1&&RVj.test(c)&&m&&m.length===1||tE("failed sanity: "+J);try{J="?";if(x&&x.length>0){bC(x);var a=x.join(",");I=I+"?le="+a;J="&"}if(pC.rol){var k=pC.ol;
k&&k.length&&(I=""+I+J+"ol="+k.length)}}catch(H){}return I},jwQ=function(J,c,m,b){J=Qwu(J);
E0$.test(m)||tE("invalid_callback");c=eV6(c);b=b&&b.length?eV6(b):null;var x=function(P){return encodeURIComponent(P).replace(/%2C/g,",")};
return[encodeURIComponent(J.pathPrefix).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",x(J.version),"/m=",x(c),b?"/exm="+x(b):"","/rt=j/sv=1/d=1/ed=1",J.activeMods?"/am="+x(J.activeMods):"",J.resourceSig?"/rs="+x(J.resourceSig):"",J.zcms?"/t="+x(J.zcms):"","/cb=",x(m)].join("")},Qwu=function(J){J.charAt(0)!=="/"&&tE("relative path");
for(var c=J.substring(1).split("/"),m=[];c.length;){J=c.shift();if(!J.length||J.indexOf(".")==0)tE("empty/relative directory");else if(J.indexOf("=")>0){c.unshift(J);break}m.push(J)}J={};for(var b=0,x=c.length;b<x;++b){var P=c[b].split("="),p=decodeURIComponent(P[0]),t=decodeURIComponent(P[1]);P.length==2&&p&&t&&(J[p]=J[p]||t)}c="/"+m.join("/");dA$.test(c)||tE("invalid_prefix");m=0;for(b=$AQ.length;m<b;++m)$AQ[m].test(c)&&tE("invalid_prefix");m=Fp$(J,"k",!0);b=Fp$(J,"am");x=Fp$(J,"rs");J=Fp$(J,"t");
return{pathPrefix:c,version:m,activeMods:b,resourceSig:x,zcms:J}},eV6=function(J){for(var c=[],m=0,b=J.length;m<b;++m){var x=J[m].replace(/\./g,"_").replace(/-/g,"_");
v0_.test(x)&&c.push(x)}return c.join(",")},Fp$=function(J,c,m){J=J[c];
!J&&m&&tE("missing: "+c);if(J){if(GOz.test(J))return J;tE("invalid: "+c)}return null},RVj=/^https?:\/\/[a-z0-9_.-]+\.google(rs)?\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,Ak_=/\/cb=/g,OwL=/\/\//g;
Sz_.m=function(J,c,m,b){(J=J[0])||tE("missing_hint");return"https://apis.google.com"+jwQ(J,c,m,b)};
var ldz=decodeURI("%73cript"),ykL=/^[-+_0-9\/A-Za-z]+={0,2}$/,B7z=function(J,c){for(var m=[],b=0;b<J.length;++b){var x=J[b],P;if(P=x){a:{for(P=0;P<c.length;P++)if(c[P]===x)break a;P=-1}P=P<0}P&&m.push(x)}return m},g0$=function(){var J=pC.nonce;
return J!==void 0?J&&J===String(J)&&J.match(ykL)?J:pC.nonce=null:xc.querySelector?(J=xc.querySelector("script[nonce]"))?(J=J.nonce||J.getAttribute("nonce")||"",J&&J===String(J)&&J.match(ykL)?pC.nonce=J:pC.nonce=null):null:null},mi_=function(J){if(xc.readyState!="loading")Jyu(J);
else{var c=g0$(),m="";c!==null&&(m=' nonce="'+c+'"');J="<"+ldz+' src="'+encodeURI(J)+'"'+m+"></"+ldz+">";xc.write(cyB?cyB.createHTML(J):J)}},Jyu=function(J){var c=xc.createElement(ldz);
c.setAttribute("src",cyB?cyB.createScriptURL(J):J);J=g0$();J!==null&&c.setAttribute("nonce",J);c.async="true";(J=xc.getElementsByTagName(ldz)[0])?J.parentNode.insertBefore(c,J):(xc.head||xc.body||xc.documentElement).appendChild(c)},xi_=function(J,c,m){bcj(function(){var b=c===DA_()?VP(MB,"_",Ps()):Ps();
b=VP(zVu(c),"_",b);J(b)},m)},HCt=function(J,c){var m=c||{};
typeof c=="function"&&(m={},m.callback=c);var b=(c=m)&&c._c;if(b)for(var x=0;x<hV2.length;x++){var P=hV2[x][0],p=hV2[x][1];p&&Object.prototype.hasOwnProperty.call(b,P)&&p(b[P],J,c)}c=[];J?c=J.split(":"):m.features&&(c=m.features);if(!(J=m.h)&&(J=DA_(),!J))throw Error("Za");VjQ(c||[],m,J)},VjQ=function(J,c,m){J=LpQ(J)||[];
var b=c.callback,x=c.config,P=c.timeout,p=c.ontimeout,t=c.onerror,I=void 0;typeof t=="function"&&(I=t);var a=null,k=!1;if(P&&!p||!P&&p)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";t=VP(zVu(m),"r",[]).sort();var H=VP(zVu(m),"L",[]).sort(),T=pC.le||[],r=[].concat(t),W=function(e,A){if(k)return 0;bg.clearTimeout(a);H.push.apply(H,Y);var l=((MB||{}).config||{}).update;l?l(x):x&&VP(pC,"cu",[]).push(x);if(A){UA$("me0",e,r);try{xi_(A,m,I)}finally{UA$("me1",e,r)}}return 1};
P>0&&(a=bg.setTimeout(function(){k=!0;p()},P));
var Y=B7z(J,H);if(Y.length){Y=B7z(J,t);var Z=VP(pC,"CP",[]),d=Z.length;Z[d]=function(e){if(!e)return 0;UA$("ml1",Y,r);var A=function(y){Z[d]=null;W(Y,e)&&WpC(function(){b&&b();y()})},l=function(){var y=Z[d+1];
y&&y()};
d>0&&Z[d-1]?Z[d]=function(){A(l)}:A(l)};
if(Y.length){var G="loaded_"+pC.I++;MB[G]=function(e){Z[d](e);MB[G]=null};
J=o08(m,Y,"gapi."+G,t,T);t.push.apply(t,Y);UA$("ml0",Y,r);c.sync||bg.___gapisync?mi_(J):Jyu(J)}else Z[d](rkQ)}else W(Y)&&b&&b()},PdB;
var MjB=null,pa_=_.mo.trustedTypes;if(pa_&&pa_.createPolicy){try{MjB=pa_.createPolicy("goog#gapi",{createHTML:zUe,createScript:zUe,createScriptURL:zUe})}catch(J){_.mo.console&&_.mo.console.error(J.message)}PdB=MjB}else PdB=MjB;var cyB=PdB,bcj=function(J,c){if(pC.hee&&pC.hel>0)try{return J()}catch(m){c&&c(m),pC.hel--,HCt("debug_error",function(){try{window.___jsl.hefn(m)}catch(b){throw m;}})}else try{return J()}catch(m){throw c&&c(m),m;
}},NmQ=MB.load;
NmQ&&VP(pC,"ol",[]).push(NmQ);MB.load=function(J,c){return bcj(function(){return HCt(J,c)})};var Jaq;var tj6=function(J,c){this.serviceId_=J;this.moduleId_=c||null};
tj6.prototype.toString=function(){return this.serviceId_};
tj6.prototype.getModuleId=function(){return this.moduleId_};var tge=new tj6("MpJwZc","MpJwZc");var KC3=new _.Pz("a"),Itf=function(J,c,m){_.Mb.call(this,J,c);this.node=c;this.kind=m};
_.D(Itf,_.Mb);var ISZ=function(){this.JSC$8070_keys_={};this.urlPrefix_="";this.JSC$8070_queryData_={}};
ISZ.prototype.toString=function(){var J=this.urlPrefix_+K56(this),c=_.Ir(this.JSC$8070_queryData_),m="";c!=""&&(m="?"+c);return J+m};
var CdQ=function(J){J=IE(J,"md");return!!J&&J!=="0"},K56=function(J){var c=[],m=(0,_.Wa)(function(b){this.JSC$8070_keys_[b]!==void 0&&c.push(b+"="+this.JSC$8070_keys_[b])},J);
CdQ(J)?(m("md"),m("k"),m("ck"),m("am"),m("rs"),m("gssmodulesetproto"),m("slk"),m("dti")):(m("sdch"),m("k"),m("ck"),m("am"),m("rt"),"d"in J.JSC$8070_keys_||KC(J,"d","0"),m("d"),m("exm"),m("excm"),(J.JSC$8070_keys_.excm||J.JSC$8070_keys_.exm)&&c.push("ed=1"),m("im"),m("dg"),m("sm"),IE(J,"br")!="1"&&IE(J,"br")!="0"||m("br"),m("br-d"),IE(J,"rb")=="1"&&m("rb"),IE(J,"zs")!=="0"&&m("zs"),aS_(J)!==""&&m("wt"),m("gssmodulesetproto"),m("ujg"),m("sp"),m("rs"),m("cb"),m("ee"),m("slk"),m("dti"),m("m"));return c.join("/")},
IE=function(J,c){return J.JSC$8070_keys_[c]?J.JSC$8070_keys_[c]:null},KC=function(J,c,m){m?J.JSC$8070_keys_[c]=m:delete J.JSC$8070_keys_[c]},kj_=function(J,c){J.urlPrefix_=c},HcQ=function(J,c){c&&c.length>0?(c.sort(),KC(J,"exm",c.join(","))):KC(J,"exm",null)},icL=function(J,c){c&&c.length>0?(c.sort(),KC(J,"excm",c.join(","))):KC(J,"excm",null)},n9a=function(J){return(J=IE(J,"m"))?J.split(","):[]},aS_=function(J){switch(IE(J,"wt")){case "0":return"0";
case "1":return"1";case "2":return"2";default:return""}},TmL=function(J,c){var m=Object.keys(c).filter(function(b){return!!Object.keys(c[b]).length}).map(function(b){var x=Object.keys(c[b]);
x.length>1&&x.sort();return b+":"+x.join(",")});
m.sort();KC(J,"ee",m.join(";"))},eMT=function(J){var c=IE(J,"ee");
if(!c)return{};J={};c=_.M(c.split(";"));for(var m=c.next();!m.done;m=c.next()){var b=_.M(m.value.split(":"));m=b.next().value;b=b.next().value;J[m]={};b=_.M(b.split(","));for(var x=b.next();!x.done;x=b.next())J[m][x.value]=!0}return J},waj=function(J){delete J.JSC$8070_keys_.m;
delete J.JSC$8070_keys_.exm;delete J.JSC$8070_keys_.ed};
ISZ.prototype.clone=function(){var J=new ISZ;J.JSC$8070_keys_=Object.assign({},this.JSC$8070_keys_);J.urlPrefix_=this.urlPrefix_;J.JSC$8070_queryData_=Object.assign({},this.JSC$8070_queryData_);return J};
var jPR=function(J,c){c=c===void 0?!0:c;var m=ry2(J),b=new ISZ,x=_.Q6(m)[5];_.Lw.forEach(sa8,function(p){var t=x.match("/"+p+"=([^/]+)");t&&KC(b,p,t[1])});
var P="";P=J.indexOf("_/ss/")!=-1?"_/ss/":"_/js/";kj_(b,J.substr(0,J.indexOf(P)+P.length));if(!c)return b;(J=_.Q6(m)[6]||null)&&PCZ(J,function(p,t){b.JSC$8070_queryData_[p]=t});
return b},RMD=function(J){J=_.NU(ry2(J));
return J===null?!1:RegExp("(/_/js/)|(/_/ss/)","g").test(J)?/\/k=/.test(J):!1},ry2=function(J){return J.startsWith("https://uberproxy-pen-redirect.corp.google.com/uberproxy/pen?url=")?J.substr(65):J},sa8={ROW_KEY:"k",
CSS_ROW_KEY:"ck",MODULES:"m",EXCLUDED_MODULES:"exm",EXCLUDED_CSS_MODULES:"excm",ACTIVE_MODS:"am",MASKED_MODS:"mm",RESPONSE_TYPE:"rt",INCLUDE_DEPS:"d",EXCLUDED_DEPS:"ed",SPEC_VERSION:"sv",DEOBFUSCATION_VERSION:"deob",CALLBACK:"cb",SIGNATURE:"rs",SDCH:"sdch",INSERT_MARKERS:"im",DEPENDENCY_GRAPH:"dg",ENABLE_BROTLI_ENCODING:"br",ENABLE_BROTLI_DICTIONARY_ENCODING:"br-d",ENABLE_RBROTLI_ENCODING:"rb",ZSTD_LEVEL:"zs",WRAP_IN_TRY:"wt",EXTRA_EDGES:"ee",SOURCE_MAP:"sm",METADATA:"md",GSS_MODULE_SET_PROTO:"gssmodulesetproto",
USE_JS_GRAPH_FOR_COMBINED_REQUESTS:"ujg",USE_INSTALL_CSS_PROTO:"sp",SIDELOADING_ROWKEY:"slk",DISABLE_TOGGLES_INIT:"dti"},L5j=RegExp("^loaded_(g|h)?[_\\d]+$");_.CC=function(J){this.JSC$8082_id_=J;this.opts={}};
_.CC.prototype.JSC$8084_setLabel=function(J){this.label_=J||void 0;return this};
_.CC.prototype.addUploadMetadata=function(J,c){var m=this.opts.data||{};m[J]=c;this.opts.data=m;return this};
var DiC=function(J){var c=_.Lw.filter(J.opts,function(m){return m!==null});
c=_.Lw.isEmpty(c)?null:c;J=[J.JSC$8082_id_,J.label_,c];c=ntt(J);return J=J.slice(0,c+1)};
_.CC.prototype.toString=function(){var J=DiC(this);return"("+_.Wm(J,function(c){return JSON.stringify(c)}).join(",")+")"};
_.CC.prototype.getId=function(){return this.JSC$8082_id_};
_.CC.prototype.getOptions=function(){return _.Lw.clone(this.opts)};var aE=function(){_.CC.call(this,"image-search")};
_.D(aE,_.CC);aE.prototype.setSize=function(J){this.opts.imgsz=J;return this};
aE.prototype.JSC$8084_setLabel=function(J){_.CC.prototype.JSC$8084_setLabel.call(this,J);return this};
aE.prototype.addUploadMetadata=function(J,c){_.CC.prototype.addUploadMetadata.call(this,J,c);return this};var kc=function(){_.CC.call(this,"maps")};
_.D(kc,_.CC);kc.prototype.setZoom=function(J){this.opts.zoom=J;return this};
kc.prototype.JSC$8084_setLabel=function(J){_.CC.prototype.JSC$8084_setLabel.call(this,J);return this};
kc.prototype.addUploadMetadata=function(J,c){_.CC.prototype.addUploadMetadata.call(this,J,c);return this};_.Hs=function(){_.CC.call(this,"photos")};
_.D(_.Hs,_.CC);_.Hs.prototype.JSC$8084_setLabel=function(J){_.CC.prototype.JSC$8084_setLabel.call(this,J);return this};
_.Hs.prototype.addUploadMetadata=function(J,c){_.CC.prototype.addUploadMetadata.call(this,J,c);return this};var ig=function(){_.CC.call(this,"url")};
_.D(ig,_.CC);var W5_=function(){var J=new ig;J.opts.type="video";J.opts.site="youtube.com";return J};
ig.prototype.JSC$8084_setLabel=function(J){_.CC.prototype.JSC$8084_setLabel.call(this,J);return this};
ig.prototype.addUploadMetadata=function(J,c){_.CC.prototype.addUploadMetadata.call(this,J,c);return this};var nC=function(){_.CC.call(this,"video-search")};
_.D(nC,_.CC);var zeC=function(){var J=new nC;J.opts.site="youtube.com";return J};
nC.prototype.JSC$8084_setLabel=function(J){_.CC.prototype.JSC$8084_setLabel.call(this,J);return this};
nC.prototype.addUploadMetadata=function(J,c){_.CC.prototype.addUploadMetadata.call(this,J,c);return this};var uZz=function(){_.CC.call(this,"web")};
_.D(uZz,_.CC);uZz.prototype.JSC$8084_setLabel=function(J){_.CC.prototype.JSC$8084_setLabel.call(this,J);return this};
uZz.prototype.addUploadMetadata=function(J,c){_.CC.prototype.addUploadMetadata.call(this,J,c);return this};var T_=function(){this.items_=[];this.opts={}},fS_=function(J){switch(J){case "image-search":return new aE;
case "maps":return new kc;case "photos":return new _.Hs;case "url":return new ig;case "video-search":return new nC;case "web":return new uZz}return new _.CC(J)};
T_.prototype.addView=function(J){this.items_.push(typeof J==="string"?fS_(J):J);return this};
var Y7u=function(J){return"("+_.Wm(J.items_,function(c){return c.toString()}).join(",")+")"};
T_.prototype.toString=function(){return Y7u(this)};
T_.prototype.getViews=function(J,c){c=c===void 0?[]:c;for(var m=this.items_,b=0;b<m.length;b++){var x=m[b];x instanceof T_?x.getViews(J,c):x.getId()==J&&c.push(x)}return c};
T_.prototype.getOptions=function(){return _.Lw.clone(this.opts)};var hy=function(J){this.basePickerUrl_=J||"https://docs.google.com/picker";this.nav_=new T_};
hy.prototype.nav_=null;hy.prototype.addView=function(J){this.nav_.addView(J);return this};
hy.prototype.getBaseUrl=function(){return this.basePickerUrl_};
hy.prototype.getViews=function(J){return this.nav_.getViews(J)};
_.Xaj=function(J,c){J.callback_=c;return J};var ZcL=new Map;ZcL.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob");ZcL.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob");ZcL.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var q7z=new Set;q7z.add("application/vnd.google-apps.kix");q7z.add("application/vnd.google-apps.ritz");q7z.add("application/vnd.google-apps.punch");var o9Q=function(J,c,m){var b=m&&_.L0(m,1);m=Uia(m);var x=J[0].getId();switch(_.Db(x,2)){case 13:return S7Q(J,c,b,m);case 3:return he2(J,c,b,m);case 10:return di6(J,c,b,m);case 27:return di6(J,c,b,m);case 12:return $iC(J,c);case 2:return Gj_(J,c,b,m);case 5:return E9z(J,c,b,m);case 9:return v9Z(J,c,b,m);case 6:return Ocz(J,c,b,m);case 25:return AyB(J,c,b,m);case 1:return _.tK(J[0],r8Q,26)?Re$(J,c,b,m):di6(J,c,b,m);default:return{}}},Ocz=function(J,c,m,b){J=J.map(function(x){return{id:x.getId().getId(),
serviceId:"youtube",name:x.getName(),description:_.L0(x,3),type:w2(x),lastEditedUtc:_.wBC(_.JU(x,_.UQ,16)).getTime(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:x.getUrl(),embedUrl:_.L0(x,13),thumbnails:r2(RS(x))}});
return{action:c,docs:J,viewToken:b,view:m||"youtube",v2Translated:!0}},Gj_=function(J,c,m,b){var x=J.map(function(P){var p=P.getId().getId(),t=_.L0(P,7),I=P.getName(),a=w2(P),k=_.wBC(_.JU(P,_.UQ,12)).getTime(),H=P.getUrl(),T=Number(Ezq(P)),r=_.L0(P,3),W=_.L0(P,11),Y=r2(RS(P));
var Z=_.JU(P,oS,21);Z=_.w9(Z,1);var d=_.JU(P,oS,21);d=_.L0(d,10);var G=_.L0(P,13);var e=_.JU(P,oS,21);e=_.w9(e,9);var A=_.JU(P,oS,21);A=_.L0(A,11);p={id:p,serviceId:"docs",mimeType:t,name:I,type:a,lastEditedUtc:k,url:H,sizeBytes:T,description:r,iconUrl:W,thumbnails:Y,isShared:Z,downloadUrl:d,embedUrl:G,copyable:e,resourceKey:A};t=_.JU(P,oS,21);_.w9(t,12)&&(p.uploadState="success",p.isNew=!0);t=_.JU(P,oS,21);_.tK(t,vQ,3)&&(P=_.JU(P,oS,21),P=_.JU(P,vQ,3),_.tK(P,Gy,2)&&(t=U7(P.getDuration().getSeconds()),
I=P.getDuration(),I=_.m5(I,2),p.duration=t+I/1E9),p.aspectRatio=P.getAspectRatio());return p});
return{action:c,docs:x,viewToken:b,view:m||"all",extraUserInputs:QaC(J),v2Translated:!0}},E9z=function(J,c,m,b){J=J.map(function(x){var P=_.JU(x,XBa,15);
P=_.JU(P,EK,1);kH(x,10,EK,P);return{id:x.getId().getId(),serviceId:"web",mimeType:_.L0(x,7),name:x.getName(),type:w2(x),url:x.getUrl(),description:_.L0(x,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:r2(RS(x))}});
return{action:c,docs:J,viewToken:b,view:m||"image-search",v2Translated:!0}},v9Z=function(J,c,m,b){J=J.map(function(x){return{serviceId:"url",
name:RS(x)[0].getUrl().split("/").pop(),type:w2(x),mimeType:_.L0(x,7),url:x.getUrl(),description:_.L0(x,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:r2(RS(x))}});
return{action:c,docs:J,viewToken:b,view:m||"url",v2Translated:!0}},Re$=function(J,c,m,b){J=J.map(function(x){return{id:x.getId().getId(),
serviceId:"picasa",name:x.getName(),type:w2(x),description:_.L0(x,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:r2(RS(x))}});
return{action:c,docs:J,viewToken:b,view:m||"webcam",v2Translated:!0}},di6=function(J,c,m,b){return{action:c,
docs:J.map(ee2),viewToken:b,view:ja_(m||"upload",J),extraUserInputs:QaC(J),v2Translated:!0}},ja_=function(J,c){return c.some(function(m){var b;
return((b=_.JU(m,OK,30))==null?void 0:_.Db(b,3))===9})?J+"/gmailphotos":J},he2=function(J,c,m,b){var x=J.map(function(P){var p={id:P.getId().getId(),
serviceId:"picasa",mimeType:_.L0(P,7),name:P.getName(),type:w2(P),lastEditedUtc:_.wBC(_.JU(P,_.UQ,12)).getTime(),url:P.getUrl(),sizeBytes:Number(Ezq(P)),description:_.L0(P,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:r2(RS(P)),mediaKey:P.getId().getId(),parentId:_.L0(P,4)},t,I=(t=_.JU(P,Du$,18))==null?void 0:_.JU(t,Lj6,3);I&&(p.latitude=sS(I,1),p.longitude=sS(I,2));var a;P=(a=_.JU(P,Du$,18))==null?void 0:r9(a,6);a=P!=null?U7(P):void 0;a&&(p.version=
a);return p});
return{action:c,docs:x,viewToken:b,view:m||"photos",extraUserInputs:QaC(J),v2Translated:!0}},S7Q=function(J,c,m,b){J=J.map(function(x){return{id:x.getId().getId(),
serviceId:"et",name:RS(x)[0].getUrl().split("/").pop(),description:_.L0(x,3),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:r2(RS(x),"etjpg")}});
return{action:c,docs:J,viewToken:b,view:m||"et",v2Translated:!0}},AyB=function(J,c,m,b){J=J.map(function(x){var P=x.getId().getId(),p=b["2"];
return{id:P,serviceId:p.type!=="gmail_themes"&&p.parent==="6226252643674576769"?"picasa":"static_themes",name:x.getName(),mimeType:_.L0(x,7),type:w2(x),description:_.L0(x,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:x.getUrl(),embedUrl:x.getUrl(),thumbnails:r2(RS(x))}});
return{action:c,docs:J,viewToken:b,view:m||"photos",v2Translated:!0}},$iC=function(J,c){J=J.map(function(m){var b=_.JU(m,s2a,27);
b=_.TR(b,1,_.E5,_.ca())[0];return{id:m.getId().getId(),serviceId:"contacts",mimeType:_.L0(m,7),name:m.getName(),description:_.L0(m,3),url:"mailto:"+b,thumbnail:[{url:_.L0(m,11)}],email:b}});
return{action:c,docs:J,view:"contacts",v2Translated:!0}},Uia=function(J){if(!J)return{};
var c=_.L0(J,3);c=c&&JSON.parse(c)||{};return{0:_.L0(J,1),1:_.L0(J,2),2:c}},r2=function(J,c){c=c===void 0?"":c;
if(!J.length)return null;c=="etjpg"&&(J=J.filter(function(m){return m.getUrl().includes("w1200-h300")}));
return J.map(function(m){return{url:m.getUrl(),height:m.getHeight(),width:m.getWidth(),type:c}})},QaC=function(J){return{isAttachment:J.some(function(c){return _.w9(c,31)})}},ee2=function(J){var c,m={id:(c=J.getId())==null?void 0:c.getId(),
serviceId:F58(J),mimeType:_.L0(J,7),name:J.getName(),type:w2(J),sizeBytes:Number(Ezq(J)),description:_.L0(J,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:r2(RS(J)),isNew:!0};if(c=_.JU(J,OK,30)){m.dataUrl=_.L0(c,1)||null;a:{var b=_.JU(J,OK,30);switch(_.Db(b,3)){case 9:b=_.u0(b,f_C,2,AF);b={remoteRefs:b&&_.L0(b,1)};break a;case 10:case 15:b=_.u0(b,u$L,4,AF);var x=RS(J);b={photo_id:b&&_.L0(b,1),media_key:J.getId().getId(),media_type:_.Db(J,6)===1?1:2,image_url:x&&
x[0].getUrl(),width:x&&String(x[0].getWidth()),height:x&&String(x[0].getHeight())};break a}b=null}m.uploadMetadata=b;m.uploadId=_.L0(c,9)||null;m.uploadState=lS8(c)||null}(b=c&&_.u0(c,u$L,4,AF))&&(m.id=_.L0(b,1));(b=c&&_.u0(c,Ya6,5,AF))&&(m.contentId=_.L0(b,1));(b=c&&_.u0(c,WjB,7,AF))&&(m.contentId=_.L0(b,1));(b=c&&_.u0(c,z_Q,6,AF))&&(m.contentId=_.L0(b,1));(c==null?void 0:_.Db(c,3))===1&&(m.mediaKey=J.getId().getId());return m},F58=function(J){var c;
switch(((c=_.JU(J,OK,30))==null?void 0:_.Db(c,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},w2=function(J){switch(_.Db(J,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 _.L0(J,7).startsWith("application/vnd.google-apps.")?"document":"file";default:return"file"}},lS8=function(J){switch(J==null?void 0:_.Db(J,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 J$6,yyC,BmQ,g98;_.sZ=function(J,c){var m=c||{};c=m.document||document;var b=_.N2(J).toString(),x=(new k8(c)).createElement("SCRIPT"),P={script_:x,timeout_:void 0},p=new hi(yyC,P),t=null,I=m.timeout!=null?m.timeout:5E3;I>0&&(t=window.setTimeout(function(){BmQ(x,!0);p.errback(new g98(1,"Timeout reached for loading script "+b))},I),P.timeout_=t);
x.onload=x.onreadystatechange=function(){x.readyState&&x.readyState!="loaded"&&x.readyState!="complete"||(BmQ(x,m.cleanupWhenDone||!1,t),p.callback(null))};
x.onerror=function(){BmQ(x,!0,t);p.errback(new g98(0,"Error while loading script "+b))};
P=m.attributes||{};_.Lw.extend(P,{type:"text/javascript",charset:"UTF-8"});CQ2(x,P);_.$h(x,J);J$6(c).appendChild(x);return p};
J$6=function(J){var c=Tj("HEAD",J);return c&&c.length!==0?c[0]:J.documentElement};
yyC=function(){if(this&&this.script_){var J=this.script_;J&&J.tagName=="SCRIPT"&&BmQ(J,!0,this.timeout_)}};
BmQ=function(J,c,m){m!=null&&_.mo.clearTimeout(m);J.onload=function(){};
J.onerror=function(){};
J.onreadystatechange=function(){};
c&&window.setTimeout(function(){_.nc(J)},0)};
g98=function(J,c){var m="Jsloader error (code #"+J+")";c&&(m+=": "+c);_.Jq.call(this,m);this.code=J};
_.yv(g98,_.Jq);var c$Q=_.Oo(["https://apis.google.com/js/api.js"]),msB=_.cm(c$Q),Pi_=function(J,c){var m=!1,b=b28(J,c).then(function(P){m=!0;return P}),x=_.ZUL(5E3).then(function(){return m?b28(J,c):xs$(c).then(function(P){return VAj(P,J)})});
return T6_([b,x])},b28=function(J,c){return MA_(c).then(function(m){return VAj(m,J)})},VAj=function(J,c){var m=_.xt(c,"gapi.")?c.slice(5):c;
return J[m]?_.ML(J[m]):new _.IN(function(b,x){var P=iA(function(){x(Error("bb"))},3E4);
J.load(c,{callback:function(){_.mo.clearTimeout(P);b(J[m])},
onerror:function(p){_.mo.clearTimeout(P);x(p)}})})},MA_=function(J){return J.gapi&&J.gapi.load?_.ML(J.gapi):xs$(J)},xs$=function(J){return _.sZ(msB,{document:J.document}).then(function(){return J.gapi})},pF8=function(){};
pF8.prototype.load=function(J,c){c=c===void 0?window:c;var m=Date.now();return Pi_(J,c).then(function(b){var x=Date.now();return{library:b,loadStartMs:m,loadEndMs:x}},function(b){throw b instanceof Error?b:Error(String(b));
})};var CNQ=function(){_.DS.call(this);this.gapiLoader_=new pF8;this.origin_=null;this.gapiPickerIframeResolver_=_.$x();this.gapiIframesResolver_=_.$x();this.gapiIframesResolver_.promise.then(null,function(){});
this.gapiPickerIframeResolver_.promise.then(null,function(){});
this.hostMessageHandlerInternal_={}};
_.D(CNQ,_.DS);var N_$=function(J,c){var m=_.$y("gapi.iframes",c);return m?(J=Date.now(),_.ML({library:m,loadStartMs:J,loadEndMs:J})):J.gapiLoader_.load("gapi.iframes",c)},tA2=function(J,c,m,b,x,P){var p=!1;
p=p===void 0?!1:p;N_$(J,uK(c.ownerDocument)).then(function(t){var I=t.library;J.gapiIframesResolver_.resolve(I);t=J.gapiPickerIframeResolver_;var a=t.resolve,k=p;k=k===void 0?!1:k;var H={};H["host-message-handler"]=m;J.hostMessageHandlerInternal_=H;var T=_.O7(b);T=_.O7(T);T=_.os(_.Rs(_.Ai(new _.oz,T.scheme_),T.JSC$8042_domain_),T.JSC$8042_port_).toString();J.origin_=T;T=(new Yzu).setUrl(b);T.JSC$8057_obj_.where=c;T.JSC$8057_obj_.allowPost=k;T.JSC$8057_obj_.messageHandlers=H;k=_.$y("makeWhiteListIframesFilter",
I)([J.origin_]);T.JSC$8057_obj_.messageHandlersFilter=k;x!=null&&T.setId(x);P!=null&&(T.JSC$8057_obj_.rpctoken=P);k=fdz(T);k.JSC$8054_obj_.style={display:"block","min-width":"100%",width:"1px"};k.JSC$8054_obj_.height="100%";fdz(T).value().allow="camera 'src' "+J.origin_;I=I.getContext().openChild(T.value());a.call(t,I)},function(t){J.gapiIframesResolver_.reject(t);
J.gapiPickerIframeResolver_.reject(t)});
return J.gapiPickerIframeResolver_.promise},I7Z=function(J,c){return _.k1([J.gapiIframesResolver_.promise,
J.gapiPickerIframeResolver_.promise]).then(function(m){var b=_.M(m);m=b.next().value;return(b=b.next().value)?b.send("picker-message-handler",c,void 0,_.$y("makeWhiteListIframesFilter",m)([J.origin_])):_.sv(Error("cb"))})};
CNQ.prototype.disposeInternal=function(){KYC(this);_.DS.prototype.disposeInternal.call(this)};
var KYC=function(J){J.gapiPickerIframeResolver_.promise.then(function(c){c&&(c.unregister("host-message-handler"),delete J.hostMessageHandlerInternal_["host-message-handler"])})};var Ciz=function(){this.nextId=0};var kL2=function(J,c){switch(J.action){case "select-contacts":J=a7Q(J.contacts);break;case "visibility":J=J.visible;var m=new ed;J=_.Yd(m,1,7).setVisible(J);m={};m["iframe-command"]=J.serialize();J=m;break;default:J=null}return J?I7Z(c,J):_.ML()},a7Q=function(J){if(!J||J.length==0)return null;
var c=new ed;_.Yd(c,1,11);var m=new Ciz;J.forEach(function(b){if(b.email){var x=new n0;x=_.eQ(x,2,b.name?b.name:b.email);var P=new s2a;b=_.MhR(P,1,_.dR,b.email,_.E5);b=_.m_(x,27,b);x=b.setId;P=(new $8).setId(":"+(m.nextId++).toString(36));P=_.Yd(P,2,12);b=x.call(b,P)}else b=null;b&&kH(c,7,n0,b)});
J={};J["iframe-command"]=c.serialize();return J};_.H2L=function(){if(JQ3){var J=/Windows NT ([0-9.]+)/;return(J=J.exec(_.Hr()))?J[1]:"0"}return _.gku?(J=/1[0|1][_.][0-9_.]+/,(J=J.exec(_.Hr()))?J[0].replace(/_/g,"."):"10"):bCf?(J=/Android\s+([^\);]+)(\)|;)/,(J=J.exec(_.Hr()))?J[1]:""):mSf||bRm||xS2?(J=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(J=J.exec(_.Hr()))?J[1].replace(/_/g,"."):""):""}();var LC;LC=function(J){return(J=J.exec(_.Hr()))?J[1]:""};
_.i2$=function(){if(_.xd)return LC(/Firefox\/([0-9.]+)/);if(_.JK||Q4||l$2)return IBf;if(_.Va){if(_.S2()||_.a3m()){var J=LC(/CriOS\/([0-9.]+)/);if(J)return J}return LC(/Chrome\/([0-9.]+)/)}if(_.UO&&!_.S2())return LC(/Version\/([0-9.]+)/);if(WyJ||zmT){if(J=/Version\/(\S+).*Mobile\/(\S+)/.exec(_.Hr()))return J[1]+"."+J[2]}else if(HRT)return(J=LC(/Android\s+([0-9.]+)/))?J:LC(/Version\/([0-9.]+)/);return""}();var nB2=function(){};
_.F1(nB2);nB2.prototype.nextId_=0;_.Df=function(J){return":"+(J.nextId_++).toString(36)};var Ws=function(J){_.KI.call(this);this.JSC$8152_dom_=J||Cw();this.JSC$8152_id_=null;this.inDocument_=!1;this.JSC$8152_element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=this.model_=null;this.wasDecorated_=!1};
_.yv(Ws,_.KI);Ws.prototype.idGenerator_=nB2.getInstance();Ws.prototype.getId=function(){return this.JSC$8152_id_||(this.JSC$8152_id_=_.Df(this.idGenerator_))};
Ws.prototype.setId=function(J){this.parent_&&this.parent_.childIndex_&&(_.Lw.remove(this.parent_.childIndex_,this.JSC$8152_id_),_.Lw.add(this.parent_.childIndex_,J,this));this.JSC$8152_id_=J};
Ws.prototype.getElement=function(){return this.JSC$8152_element_};
var z_=function(J){J.googUiComponentHandler_||(J.googUiComponentHandler_=new _.J0(J));return J.googUiComponentHandler_},T_2=function(J,c){if(J==c)throw Error("db");
var m;if(m=c&&J.parent_&&J.JSC$8152_id_){m=J.parent_;var b=J.JSC$8152_id_;m=m.childIndex_&&b?_.Lw.get(m.childIndex_,b)||null:null}if(m&&J.parent_!=c)throw Error("db");J.parent_=c;Ws.superClass_.setParentEventTarget.call(J,c)};
Ws.prototype.setParentEventTarget=function(J){if(this.parent_&&this.parent_!=J)throw Error("eb");Ws.superClass_.setParentEventTarget.call(this,J)};
Ws.prototype.JSC$8154_createDom=function(){this.JSC$8152_element_=this.JSC$8152_dom_.createElement("DIV")};
Ws.prototype.render=function(J){wFB(this,J)};
var wFB=function(J,c,m){if(J.inDocument_)throw Error("fb");J.JSC$8152_element_||J.JSC$8154_createDom();c?c.insertBefore(J.JSC$8152_element_,m||null):J.JSC$8152_dom_.JSC$7337_document_.body.appendChild(J.JSC$8152_element_);J.parent_&&!J.parent_.inDocument_||J.enterDocument()};
_.V=Ws.prototype;_.V.decorate=function(J){if(this.inDocument_)throw Error("fb");if(J&&this.canDecorate(J)){this.wasDecorated_=!0;var c=_.fw(J);this.JSC$8152_dom_&&this.JSC$8152_dom_.JSC$7337_document_==c||(this.JSC$8152_dom_=Cw(J));this.decorateInternal(J);this.enterDocument()}else throw Error("gb");};
_.V.canDecorate=function(){return!0};
_.V.decorateInternal=function(J){this.JSC$8152_element_=J};
_.V.enterDocument=function(){this.inDocument_=!0;r$C(this,function(J){!J.inDocument_&&J.getElement()&&J.enterDocument()})};
_.V.exitDocument=function(){r$C(this,function(J){J.inDocument_&&J.exitDocument()});
this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};
_.V.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);r$C(this,function(J){J.dispose()});
!this.wasDecorated_&&this.JSC$8152_element_&&_.nc(this.JSC$8152_element_);this.parent_=this.model_=this.JSC$8152_element_=this.childIndex_=this.children_=null;Ws.superClass_.disposeInternal.call(this)};
_.V.getModel=function(){return this.model_};
_.V.addChild=function(J,c){var m=this.children_?this.children_.length:0;if(J.inDocument_&&(c||!this.inDocument_))throw Error("fb");if(m<0||m>(this.children_?this.children_.length:0))throw Error("hb");this.childIndex_&&this.children_||(this.childIndex_={},this.children_=[]);J.parent_==this?(_.Lw.set(this.childIndex_,J.getId(),J),_.j2(this.children_,J)):_.Lw.add(this.childIndex_,J.getId(),J);T_2(J,this);_.wro(this.children_,m,0,J);J.inDocument_&&this.inDocument_&&J.parent_==this?(c=this.getContentElement(),
(c.childNodes[m]||null)!=J.getElement()&&(J.getElement().parentElement==c&&c.removeChild(J.getElement()),m=c.childNodes[m]||null,c.insertBefore(J.getElement(),m))):c?(this.JSC$8152_element_||this.JSC$8154_createDom(),m=this.children_?this.children_[m+1]||null:null,wFB(J,this.getContentElement(),m?m.JSC$8152_element_:null)):this.inDocument_&&!J.inDocument_&&J.JSC$8152_element_&&J.JSC$8152_element_.parentNode&&J.JSC$8152_element_.parentNode.nodeType==1&&J.enterDocument()};
_.V.getContentElement=function(){return this.JSC$8152_element_};
var r$C=function(J,c){J.children_&&J.children_.forEach(c,void 0)};
Ws.prototype.removeChild=function(J,c){if(J){var m=typeof J==="string"?J:J.getId();J=this.childIndex_&&m?_.Lw.get(this.childIndex_,m)||null:null;m&&J&&(_.Lw.remove(this.childIndex_,m),_.j2(this.children_,J),c&&(J.exitDocument(),J.JSC$8152_element_&&_.nc(J.JSC$8152_element_)),T_2(J,null))}if(!J)throw Error("ib");return J};_.yv(x3D,b3u);_.yv(VsR,b3u);var sD8;var LYZ=function(J,c){c?J.setAttribute("role",c):J.removeAttribute("role")},ug=function(J,c,m){Array.isArray(m)&&(m=m.join(" "));
var b="aria-"+c;m===""||m==void 0?(sD8||(m={},sD8=(m.atomic=!1,m.autocomplete="none",m.dropeffect="none",m.haspopup=!1,m.live="off",m.multiline=!1,m.multiselectable=!1,m.orientation="vertical",m.readonly=!1,m.relevant="additions text",m.required=!1,m.sort="none",m.busy=!1,m.disabled=!1,m.hidden=!1,m.invalid="false",m)),m=sD8,c in m?J.setAttribute(b,m[c]):J.removeAttribute(b)):J.setAttribute(b,m)};var DsQ;_.fC=function(J,c,m){_.KI.call(this);this.target=J;this.handle=c||J;this.limits=m||new zy(NaN,NaN,NaN,NaN);this.JSC$8157_document_=_.fw(J);this.JSC$8157_eventHandler_=new _.J0(this);_.Kc(this,this.JSC$8157_eventHandler_);this.deltaY=this.deltaX=this.startY=this.startX=this.screenY=this.screenX=this.clientY=this.clientX=0;this.enabled_=!0;this.dragging_=!1;this.hysteresisDistanceSquared_=0;_.wp(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=DsQ};
_.yv(_.fC,_.KI);DsQ=_.mo.document&&_.mo.document.documentElement&&!!_.mo.document.documentElement.setCapture&&!!_.mo.document.releaseCapture;_.WY$=function(J,c){J.hysteresisDistanceSquared_=Math.pow(c,2)};
_.V=_.fC.prototype;_.V.setEnabled=function(J){this.enabled_=J};
_.V.disposeInternal=function(){_.fC.superClass_.disposeInternal.call(this);_.Is(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.JSC$8157_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$8157_document_.releaseCapture();this.handle=this.target=null};
_.V.startDrag=function(J){var c=J.type=="mousedown";if(!this.enabled_||this.dragging_||c&&(J.event_.button!=0||_.gku&&J.ctrlKey))this.dispatchEvent("earlycancel");else{if(this.hysteresisDistanceSquared_==0)if(this.dispatchEvent(new Yc("start",this,J.clientX,J.clientY,J)))this.dragging_=!0,c&&J.preventDefault();else return;else c&&J.preventDefault();c=this.JSC$8157_document_;var m=c.documentElement,b=!this.useSetCapture_;this.JSC$8157_eventHandler_.listen(c,["touchmove","mousemove"],this.handleMove_,
{capture:b,passive:!1});this.JSC$8157_eventHandler_.listen(c,["touchend","mouseup"],this.endDrag,b);this.useSetCapture_?(m.setCapture(!1),this.JSC$8157_eventHandler_.listen(m,"losecapture",this.endDrag)):this.JSC$8157_eventHandler_.listen(uK(c),"blur",this.endDrag);this.scrollTarget_&&this.JSC$8157_eventHandler_.listen(this.scrollTarget_,"scroll",this.onScroll_,b);this.clientX=this.startX=J.clientX;this.clientY=this.startY=J.clientY;this.screenX=J.screenX;this.screenY=J.screenY;this.deltaX=this.target.offsetLeft;
this.deltaY=this.target.offsetTop;this.pageScroll=Kw(Cw(this.JSC$8157_document_))}};
_.V.endDrag=function(J,c){this.JSC$8157_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$8157_document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new Yc("end",this,J.clientX,J.clientY,J,zGB(this,this.deltaX),uDC(this,this.deltaY),c||J.type=="touchcancel"))):this.dispatchEvent("earlycancel")};
_.V.handleMove_=function(J){if(this.enabled_){var c=J.clientX-this.clientX,m=J.clientY-this.clientY;this.clientX=J.clientX;this.clientY=J.clientY;this.screenX=J.screenX;this.screenY=J.screenY;if(!this.dragging_){var b=this.startX-this.clientX,x=this.startY-this.clientY;if(b*b+x*x>this.hysteresisDistanceSquared_)if(this.dispatchEvent(new Yc("start",this,J.clientX,J.clientY,J)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(J);return}}m=f7C(this,c,m);c=m.x;m=m.y;this.dragging_&&this.dispatchEvent(new Yc("beforedrag",
this,J.clientX,J.clientY,J,c,m))&&(Ys_(this,J,c,m),J.preventDefault())}};
var f7C=function(J,c,m){var b=Kw(Cw(J.JSC$8157_document_));c+=b.x-J.pageScroll.x;m+=b.y-J.pageScroll.y;J.pageScroll=b;J.deltaX+=c;J.deltaY+=m;return new _.zO(zGB(J,J.deltaX),uDC(J,J.deltaY))};
_.fC.prototype.onScroll_=function(J){var c=f7C(this,0,0);J.clientX=this.clientX;J.clientY=this.clientY;Ys_(this,J,c.x,c.y)};
var Ys_=function(J,c,m,b){J.target.style.left=m+"px";J.target.style.top=b+"px";J.dispatchEvent(new Yc("drag",J,c.clientX,c.clientY,c,m,b))},zGB=function(J,c){var m=J.limits;
J=isNaN(m.left)?null:m.left;m=isNaN(m.width)?0:m.width;return Math.min(J!=null?J+m:Infinity,Math.max(J!=null?J:-Infinity,c))},uDC=function(J,c){var m=J.limits;
J=isNaN(m.top)?null:m.top;m=isNaN(m.height)?0:m.height;return Math.min(J!=null?J+m:Infinity,Math.max(J!=null?J:-Infinity,c))};
_.fC.prototype.isDragging=function(){return this.dragging_};
var Yc=function(J,c,m,b,x,P,p){_.Mb.call(this,J);this.clientX=m;this.clientY=b;this.browserEvent=x;this.left=P!==void 0?P:c.deltaX;this.top=p!==void 0?p:c.deltaY};
_.yv(Yc,_.Mb);var X8=function(J){this.JSC$8164_map_=new Map;var c=arguments.length;if(c>1){if(c%2)throw Error("oa");for(var m=0;m<c;m+=2)this.set(arguments[m],arguments[m+1])}else J&&this.addAll(J)};
_.V=X8.prototype;_.V.getCount=function(){return this.JSC$8164_map_.size};
_.V.getValues=function(){return Array.from(this.JSC$8164_map_.values())};
_.V.getKeys=function(){return Array.from(this.JSC$8164_map_.keys())};
_.V.containsKey=function(J){return this.JSC$8164_map_.has(J)};
_.V.containsValue=function(J){return this.getValues().some(function(c){return c==J})};
_.V.equals=function(J,c){var m=this;c=c===void 0?function(b,x){return b===x}:c;
return this===J?!0:this.JSC$8164_map_.size!=J.getCount()?!1:this.getKeys().every(function(b){return c(m.JSC$8164_map_.get(b),J.get(b))})};
_.V.isEmpty=function(){return this.JSC$8164_map_.size==0};
_.V.clear=function(){this.JSC$8164_map_.clear()};
_.V.remove=function(J){return this.JSC$8164_map_.delete(J)};
_.V.get=function(J,c){return this.JSC$8164_map_.has(J)?this.JSC$8164_map_.get(J):c};
_.V.set=function(J,c){this.JSC$8164_map_.set(J,c);return this};
_.V.addAll=function(J){if(J instanceof X8){J=_.M(J.JSC$8164_map_);for(var c=J.next();!c.done;c=J.next()){var m=_.M(c.value);c=m.next().value;m=m.next().value;this.JSC$8164_map_.set(c,m)}}else if(J)for(J=_.M(Object.entries(J)),c=J.next();!c.done;c=J.next())m=_.M(c.value),c=m.next().value,m=m.next().value,this.JSC$8164_map_.set(c,m)};
_.V.forEach=function(J,c){var m=this;c=c===void 0?this:c;this.JSC$8164_map_.forEach(function(b,x){return J.call(c,b,x,m)})};
_.V.clone=function(){return new X8(this)};(function(){for(var J=["ms","moz","webkit","o"],c,m=0;c=J[m]&&!_.mo.requestAnimationFrame;++m)_.mo.requestAnimationFrame=_.mo[c+"RequestAnimationFrame"],_.mo.cancelAnimationFrame=_.mo[c+"CancelAnimationFrame"]||_.mo[c+"CancelRequestAnimationFrame"];if(!_.mo.requestAnimationFrame){var b=0;_.mo.requestAnimationFrame=function(x){var P=(new Date).getTime(),p=Math.max(0,16-(P-b));b=P+p;return _.mo.setTimeout(function(){x(P+p)},p)};
_.mo.cancelAnimationFrame||(_.mo.cancelAnimationFrame=function(x){clearTimeout(x)})}})();
var XFQ=[[],[]],Z2a=0,qs6=!1,Usj=0,hGa=function(J,c){var m=Usj++,b={measureTask:{id:m,fn:J.measure,context:c},mutateTask:{id:m,fn:J.mutate,context:c},state:{},args:void 0,isScheduled:!1};return function(){arguments.length>0?(b.args||(b.args=[]),b.args.length=0,b.args.push.apply(b.args,arguments),b.args.push(b.state)):b.args&&b.args.length!=0?(b.args[0]=b.state,b.args.length=1):b.args=[b.state];b.isScheduled||(b.isScheduled=!0,XFQ[Z2a].push(b));qs6||(qs6=!0,window.requestAnimationFrame(SsB))}},SsB=
function(){qs6=!1;
var J=XFQ[Z2a],c=J.length;Z2a=(Z2a+1)%2;for(var m,b=0;b<c;++b){m=J[b];var x=m.measureTask;m.isScheduled=!1;x.fn&&x.fn.apply(x.context,m.args)}for(b=0;b<c;++b)m=J[b],x=m.mutateTask,m.isScheduled=!1,x.fn&&x.fn.apply(x.context,m.args),m.state={};J.length=0};var dsQ=_.Oo(["about:blank"]),$s2=_.Oo(["javascript:undefined"]),GLQ=_.cm(dsQ);_.N2(GLQ);var EB2=_.cm($s2);_.N2(EB2);var Zf=function(J){_.KI.call(this);this.JSC$8170_element_=J;this.listenKeyIn_=_.wp(this.JSC$8170_element_,"focus",this,!0);this.listenKeyOut_=_.wp(this.JSC$8170_element_,"blur",this,!0)};
_.yv(Zf,_.KI);Zf.prototype.handleEvent=function(J){var c=new _.pI(J.event_);c.type=J.type=="focusin"||J.type=="focus"?"focusin":"focusout";this.dispatchEvent(c)};
Zf.prototype.disposeInternal=function(){Zf.superClass_.disposeInternal.call(this);iv(this.listenKeyIn_);iv(this.listenKeyOut_);delete this.JSC$8170_element_};var vBZ=function(J,c){this.JSC$8173_element_=J;this.JSC$8173_dom_=c};var qB=function(J,c){Ws.call(this,c);this.useIframeMask_=!!J;this.lastFocus_=null;this.resizeBackgroundTask_=hGa({mutate:this.resizeBackground_},this);hGa({mutate:this.updateModalAndBackground_},this)};
_.yv(qB,Ws);_.V=qB.prototype;_.V.focusHandler_=null;_.V.visible_=!1;_.V.bgEl_=null;_.V.bgIframeEl_=null;_.V.tabCatcherElement_=null;_.V.backwardTabWrapInProgress_=!1;_.V.getCssClass=function(){return"goog-modalpopup"};
_.V.getBackgroundElement=function(){return this.bgEl_};
_.V.JSC$8154_createDom=function(){qB.superClass_.JSC$8154_createDom.call(this);var J=this.getElement(),c=CG(this.getCssClass()).split(" ");U9(J,c);J.tabIndex=0;_.oa(J,!1);O2Q(this);A$u(this)};
var O2Q=function(J){if(J.useIframeMask_&&!J.bgIframeEl_){var c=J.JSC$8152_dom_.JSC$7339_createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});_.Yh(c,GLQ);J.bgIframeEl_=c;J.bgIframeEl_.className=J.getCssClass()+"-bg";_.oa(J.bgIframeEl_,!1);Aq_(J.bgIframeEl_,0)}J.bgEl_||(J.bgEl_=J.JSC$8152_dom_.JSC$7339_createDom("DIV",J.getCssClass()+"-bg"),_.oa(J.bgEl_,!1))},A$u=function(J){J.tabCatcherElement_||(J.tabCatcherElement_=J.JSC$8152_dom_.createElement("SPAN"),_.oa(J.tabCatcherElement_,
!1),J.tabCatcherElement_.tabIndex=0,J.tabCatcherElement_.style.position="absolute")};
_.V=qB.prototype;_.V.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};
_.V.canDecorate=function(J){return!!J&&J.tagName=="DIV"};
_.V.decorateInternal=function(J){qB.superClass_.decorateInternal.call(this,J);J=CG(this.getCssClass()).split(" ");U9(this.getElement(),J);O2Q(this);A$u(this);this.getElement().tabIndex=0;_.oa(this.getElement(),!1)};
_.V.enterDocument=function(){this.bgIframeEl_&&_.sK(this.bgIframeEl_,this.getElement());_.sK(this.bgEl_,this.getElement());qB.superClass_.enterDocument.call(this);_.Ld(this.tabCatcherElement_,this.getElement());this.focusHandler_=new Zf(this.JSC$8152_dom_.JSC$7337_document_);z_(this).listen(this.focusHandler_,"focusin",this.onFocus);RG6(this,!1)};
_.V.exitDocument=function(){this.isVisible()&&this.setVisible(!1);_.yr(this.focusHandler_);qB.superClass_.exitDocument.call(this);_.nc(this.bgIframeEl_);_.nc(this.bgEl_);_.nc(this.tabCatcherElement_)};
_.V.setVisible=function(J){if(J!=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_&&RG6(this,J),J){if(this.dispatchEvent("beforeshow")){try{this.lastFocus_=this.JSC$8152_dom_.JSC$7337_document_.activeElement}catch(x){}this.updateModalAndBackground_();z_(this).listen(this.JSC$8152_dom_.getWindow(),
"resize",this.resizeBackground_).listen(this.JSC$8152_dom_.getWindow(),"orientationchange",this.resizeBackgroundTask_);oBL(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)Hd(this.popupShowTransition_,"end",this.onShow,!1,this),this.bgShowTransition_.play(),this.popupShowTransition_.play();else this.onShow()}}else if(this.dispatchEvent("beforehide")){z_(this).unlisten(this.JSC$8152_dom_.getWindow(),"resize",this.resizeBackground_).unlisten(this.JSC$8152_dom_.getWindow(),
"orientationchange",this.resizeBackgroundTask_);this.visible_=!1;if(this.popupHideTransition_&&this.bgHideTransition_)Hd(this.popupHideTransition_,"end",this.onHide,!1,this),this.bgHideTransition_.play(),this.popupHideTransition_.play();else this.onHide();a:{try{var c=this.JSC$8152_dom_,m=c.JSC$7337_document_.body,b=c.JSC$7337_document_.activeElement||m;if(!this.lastFocus_||this.lastFocus_==m){this.lastFocus_=null;break a}(b==m||c.contains(this.getElement(),b))&&this.lastFocus_.focus()}catch(x){}this.lastFocus_=
null}}};
var RG6=function(J,c){J.modalAriaVisibilityHelper_||(J.modalAriaVisibilityHelper_=new vBZ(J.JSC$8152_element_,J.JSC$8152_dom_));J=J.modalAriaVisibilityHelper_;if(c){J.hiddenElements_||(J.hiddenElements_=[]);c=J.JSC$8173_dom_.getChildren(J.JSC$8173_dom_.JSC$7337_document_.body);for(var m=0;m<c.length;m++){var b=c[m],x;if(x=b!=J.JSC$8173_element_)x=b.getAttribute("aria-hidden"),x=!(x==null||x==void 0?0:String(x));x&&(ug(b,"hidden",!0),J.hiddenElements_.push(b))}}else if(J.hiddenElements_){for(c=0;c<
J.hiddenElements_.length;c++)J.hiddenElements_[c].removeAttribute("aria-hidden");J.hiddenElements_=null}};
qB.prototype.updateModalAndBackground_=function(){this.resizeBackground_();this.reposition()};
var oBL=function(J,c){J.bgIframeEl_&&_.oa(J.bgIframeEl_,c);J.bgEl_&&_.oa(J.bgEl_,c);_.oa(J.getElement(),c);_.oa(J.tabCatcherElement_,c)};
_.V=qB.prototype;_.V.onShow=function(){this.dispatchEvent("show")};
_.V.onHide=function(){oBL(this,!1);this.dispatchEvent("hide")};
_.V.isVisible=function(){return this.visible_};
_.V.focus=function(){this.focusElement_()};
_.V.resizeBackground_=function(){this.bgIframeEl_&&_.oa(this.bgIframeEl_,!1);this.bgEl_&&_.oa(this.bgEl_,!1);var J=this.JSC$8152_dom_.JSC$7337_document_;var c=_.Iw(uK(this.JSC$8152_dom_.JSC$7337_document_)||window);var m=Math.max(c.width,Math.max(J.body.scrollWidth,J.documentElement.scrollWidth));J=Math.max(c.height,Math.max(J.body.scrollHeight,J.documentElement.scrollHeight));this.bgIframeEl_&&(_.oa(this.bgIframeEl_,!0),_.GDz(this.bgIframeEl_,m,J));this.bgEl_&&(_.oa(this.bgEl_,!0),_.GDz(this.bgEl_,
m,J))};
_.V.reposition=function(){var J;if(_.$f8(this.getElement())=="fixed")var c=J=0;else c=Kw(this.JSC$8152_dom_),J=c.x,c=c.y;var m=vt2(this.getElement());var b=_.Iw(uK(this.JSC$8152_dom_.JSC$7337_document_)||window);J=Math.max(J+b.width/2-m.width/2,0);c=Math.max(c+b.height/2-m.height/2,0);Y8(this.getElement(),J,c);Y8(this.tabCatcherElement_,J,c)};
_.V.onFocus=function(J){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():J.target==this.tabCatcherElement_&&iA(this.focusElement_,0,this)};
_.V.focusElement_=function(){try{this.getElement().focus()}catch(J){}};
_.V.disposeInternal=function(){_.yr(this.popupShowTransition_);this.popupShowTransition_=null;_.yr(this.popupHideTransition_);this.popupHideTransition_=null;_.yr(this.bgShowTransition_);this.bgShowTransition_=null;_.yr(this.bgHideTransition_);this.bgHideTransition_=null;qB.superClass_.disposeInternal.call(this)};var Sj=function(J,c,m){qB.call(this,c,m);this.JSC$8183_class_=J||"modal-dialog";this.buttons_=(new UZ).addButton(QDj,!0).addButton(eGC,!1,!0)};
_.yv(Sj,qB);_.V=Sj.prototype;_.V.escapeToCancel_=!0;_.V.hasTitleCloseButton_=!0;_.V.modal_=!0;_.V.draggable_=!0;_.V.backgroundElementOpacity_=.5;_.V.title_="";_.V.JSC$8185_dragger_=null;_.V.JSC$8185_disposeOnHide_=!1;_.V.titleEl_=null;_.V.titleTextEl_=null;_.V.titleTextId_=null;_.V.titleCloseEl_=null;_.V.contentEl_=null;_.V.buttonEl_=null;_.V.getCssClass=function(){return this.JSC$8183_class_};
_.V.setTitle=function(J){this.title_=J;this.titleTextEl_&&_.WQ(this.titleTextEl_,J)};
_.V.getTitle=function(){return this.title_};
_.V.getContent=function(){return""};
_.V.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};
var jDZ=function(J){J.getElement()||J.render();return J.getElement()};
Sj.prototype.getBackgroundElement=function(){this.getElement()||this.render();return Sj.superClass_.getBackgroundElement.call(this)};
var FY2=function(J,c){J.backgroundElementOpacity_=c;J.getElement()&&(c=J.getBackgroundElement())&&Aq_(c,J.backgroundElementOpacity_)};
Sj.prototype.setDraggable=function(J){this.draggable_=J;l7L(this,J&&this.inDocument_)};
Sj.prototype.JSC$8185_handleDrag=function(){};
var l7L=function(J,c){var m=CG(J.JSC$8183_class_+"-title-draggable").split(" ");J.getElement()&&(c?U9(J.titleEl_,m):zNz(J.titleEl_,m));c&&!J.JSC$8185_dragger_?(c=new _.fC(J.getElement(),J.titleEl_),J.JSC$8185_dragger_=c,U9(J.titleEl_,m),_.wp(J.JSC$8185_dragger_,"start",J.setDraggerLimits_,!1,J),_.wp(J.JSC$8185_dragger_,"drag",J.JSC$8185_handleDrag,!1,J)):!c&&J.JSC$8185_dragger_&&(J.JSC$8185_dragger_.dispose(),J.JSC$8185_dragger_=null)};
_.V=Sj.prototype;
_.V.JSC$8154_createDom=function(){Sj.superClass_.JSC$8154_createDom.call(this);var J=this.getElement(),c=this.JSC$8152_dom_;this.titleTextId_=this.getId();var m=this.getId()+".contentEl";this.titleEl_=c.JSC$7339_createDom("DIV",this.JSC$8183_class_+"-title",this.titleTextEl_=c.JSC$7339_createDom("SPAN",{className:this.JSC$8183_class_+"-title-text",id:this.titleTextId_},this.title_),this.titleCloseEl_=c.JSC$7339_createDom("SPAN",this.JSC$8183_class_+"-title-close"));ntZ(J,this.titleEl_,this.contentEl_=
c.JSC$7339_createDom("DIV",{className:this.JSC$8183_class_+"-content",id:m}),this.buttonEl_=c.JSC$7339_createDom("DIV",this.JSC$8183_class_+"-buttons"));LYZ(this.titleTextEl_,"heading");LYZ(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;ug(this.titleCloseEl_,"label","Close");LYZ(J,"dialog");ug(J,"labelledby",this.titleTextId_||"");_.oa(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(J=this.buttons_,J.JSC$8186_element_=this.buttonEl_,J.render());_.oa(this.buttonEl_,!!this.buttons_);
FY2(this,this.backgroundElementOpacity_)};
_.V.decorateInternal=function(J){Sj.superClass_.decorateInternal.call(this,J);J=this.getElement();var c=this.JSC$8183_class_+"-content";this.contentEl_=HQ(document,null,c,J)[0];this.contentEl_||(this.contentEl_=this.JSC$8152_dom_.JSC$7339_createDom("DIV",c),J.appendChild(this.contentEl_));c=this.JSC$8183_class_+"-title";var m=this.JSC$8183_class_+"-title-text",b=this.JSC$8183_class_+"-title-close";(this.titleEl_=HQ(document,null,c,J)[0])?(this.titleTextEl_=HQ(document,null,m,this.titleEl_)[0],this.titleCloseEl_=
HQ(document,null,b,this.titleEl_)[0]):(this.titleEl_=this.JSC$8152_dom_.JSC$7339_createDom("DIV",c),J.insertBefore(this.titleEl_,this.contentEl_));this.titleTextEl_?(this.title_=qmQ(this.titleTextEl_),this.titleTextEl_.id||(this.titleTextEl_.id=this.getId())):(this.titleTextEl_=_.nd("SPAN",{className:m,id:this.getId()}),this.titleEl_.appendChild(this.titleTextEl_));this.titleTextId_=this.titleTextEl_.id;ug(J,"labelledby",this.titleTextId_||"");this.titleCloseEl_||(this.titleCloseEl_=this.JSC$8152_dom_.JSC$7339_createDom("SPAN",
b),this.titleEl_.appendChild(this.titleCloseEl_));_.oa(this.titleCloseEl_,this.hasTitleCloseButton_);c=this.JSC$8183_class_+"-buttons";(this.buttonEl_=HQ(document,null,c,J)[0])?(this.buttons_=new UZ(this.JSC$8152_dom_),this.buttons_.decorate(this.buttonEl_)):(this.buttonEl_=this.JSC$8152_dom_.JSC$7339_createDom("DIV",c),J.appendChild(this.buttonEl_),this.buttons_&&(J=this.buttons_,J.JSC$8186_element_=this.buttonEl_,J.render()),_.oa(this.buttonEl_,!!this.buttons_));FY2(this,this.backgroundElementOpacity_)};
_.V.enterDocument=function(){Sj.superClass_.enterDocument.call(this);z_(this).listen(this.getElement(),"keydown",this.onKey_).listen(this.getElement(),"keypress",this.onKey_);z_(this).listen(this.buttonEl_,"click",this.onButtonClick_);l7L(this,this.draggable_);z_(this).listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var J=this.getElement();LYZ(J,"dialog");this.titleTextEl_.id!==""&&ug(J,"labelledby",this.titleTextEl_.id);if(!this.modal_){this.modal_=!1;if(this.inDocument_){J=this.JSC$8152_dom_;
var c=this.getBackgroundElement();J.removeNode(this.bgIframeEl_);J.removeNode(c)}this.isVisible()&&RG6(this,!1)}};
_.V.exitDocument=function(){this.isVisible()&&this.setVisible(!1);l7L(this,!1);Sj.superClass_.exitDocument.call(this)};
_.V.setVisible=function(J){J!=this.isVisible()&&(this.inDocument_||this.render(),Sj.superClass_.setVisible.call(this,J))};
_.V.onShow=function(){Sj.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
_.V.onHide=function(){Sj.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.JSC$8185_disposeOnHide_&&this.dispose()};
_.V.setDraggerLimits_=function(){var J=this.JSC$8152_dom_.JSC$7337_document_,c=_.Iw(uK(J)||window),m=Math.max(J.body.scrollWidth,c.width);J=Math.max(J.body.scrollHeight,c.height);var b=vt2(this.getElement());_.$f8(this.getElement())=="fixed"?this.JSC$8185_dragger_.limits=new zy(0,0,Math.max(0,c.width-b.width),Math.max(0,c.height-b.height)):this.JSC$8185_dragger_.limits=new zy(0,0,m-b.width,J-b.height)};
_.V.onTitleCloseClick_=function(){y$Q(this)};
var y$Q=function(J){if(J.hasTitleCloseButton_){var c=J.buttons_,m=c&&c.cancelButton_;m?(c=c.get(m),J.dispatchEvent(new S_(m,c))&&J.setVisible(!1)):J.setVisible(!1)}},B_2=function(J){J.hasTitleCloseButton_=!1;
J.titleCloseEl_&&_.oa(J.titleCloseEl_,J.hasTitleCloseButton_)};
Sj.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;Sj.superClass_.disposeInternal.call(this)};
Sj.prototype.onButtonClick_=function(J){a:{for(J=J.target;J!=null&&J!=this.buttonEl_;){if(J.tagName=="BUTTON")break a;J=J.parentNode}J=null}if(J&&!J.disabled){J=J.name;var c=this.buttons_.get(J);this.dispatchEvent(new S_(J,c))&&this.setVisible(!1)}};
Sj.prototype.onKey_=function(J){var c=!1,m=!1,b=this.buttons_,x=J.target;if(J.type=="keydown")if(this.escapeToCancel_&&J.keyCode==27){var P=b&&b.cancelButton_;x=x.tagName=="SELECT"&&!x.disabled;P&&!x?(m=!0,c=b.get(P),c=this.dispatchEvent(new S_(P,c))):x||(c=!0)}else{if(J.keyCode==9&&J.shiftKey&&x==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(k){}iA(this.resetBackwardTabWrap_,0,this)}}else if(J.keyCode==13){if(x.tagName=="BUTTON"&&!x.disabled)P=x.name;
else if(x==this.titleCloseEl_)y$Q(this);else if(b){var p=b.defaultButton_,t;if(t=p)a:{t=Tj("BUTTON",b.JSC$8186_element_);for(var I,a=0;I=t[a];a++)if(I.name==p||I.id==p){t=I;break a}t=null}x=(x.tagName=="TEXTAREA"||x.tagName=="SELECT"||x.tagName=="A")&&!x.disabled;!t||t.disabled||x||(P=p)}P&&b&&(m=!0,c=this.dispatchEvent(new S_(P,String(b.get(P)))))}else x!=this.titleCloseEl_||J.keyCode!=32&&J.key!=" "||y$Q(this);if(c||m)J.stopPropagation(),J.preventDefault();c&&this.setVisible(!1)};
var S_=function(J,c){this.type="dialogselect";this.key=J;this.caption=c};
_.yv(S_,_.Mb);var UZ=function(J){X8.call(this);J||Cw();this.cancelButton_=this.JSC$8186_element_=this.defaultButton_=null};
_.yv(UZ,X8);_.V=UZ.prototype;_.V.clear=function(){X8.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};
_.V.set=function(J,c,m,b){X8.prototype.set.call(this,J,c);m&&(this.defaultButton_=J);b&&(this.cancelButton_=J);return this};
_.V.addButton=function(J,c,m){return this.set(J.key,J.caption,c,m)};
_.V.render=function(){if(this.JSC$8186_element_){_.G$(this.JSC$8186_element_,i3r);var J=Cw(this.JSC$8186_element_);this.forEach(function(c,m){c=J.JSC$7339_createDom("BUTTON",{name:m},c);m==this.defaultButton_&&(c.className="goog-buttonset-default");this.JSC$8186_element_.appendChild(c)},this)}};
_.V.decorate=function(J){if(J&&J.nodeType==1){this.JSC$8186_element_=J;J=Tj("BUTTON",this.JSC$8186_element_);for(var c,m,b,x=0;c=J[x];x++)if(m=c.name||c.id,b=qmQ(c)||c.value,m){var P=x==0;this.set(m,b,P,c.name=="cancel");P&&_.oA(c,"goog-buttonset-default")}}};
_.V.getElement=function(){return this.JSC$8186_element_};
var QDj={key:"ok",caption:"OK"},eGC={key:"cancel",caption:"Cancel"},gBL={key:"yes",caption:"Yes"},Ja8={key:"no",caption:"No"},caQ={key:"save",caption:"Save"},m3a={key:"continue",caption:"Continue"};typeof document!="undefined"&&((new UZ).addButton(QDj,!0,!0),(new UZ).addButton(QDj,!0).addButton(eGC,!1,!0),(new UZ).addButton(gBL,!0).addButton(Ja8,!1,!0),(new UZ).addButton(gBL).addButton(Ja8,!0).addButton(eGC,!1,!0),(new UZ).addButton(m3a).addButton(caQ).addButton(eGC,!0,!0));_.yv(PN2,Sj);_.yv(MsR,hy);var b3_=_.Oo(["//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick"]),x3z=_.Oo(["//apis.google.com/js/rpc.js"]),H3R=_.cm(b3_),keQ=_.cm(x3z),NuR=null;var dm=function(J,c){_.KI.call(this);this.JSC$8195_element_=J;J=_.F_(this.JSC$8195_element_)?this.JSC$8195_element_:this.JSC$8195_element_?this.JSC$8195_element_.body:null;this.isRtl_=!!J&&_.RuQ(J);this.listenKey_=_.wp(this.JSC$8195_element_,_.ce?"DOMMouseScroll":"mousewheel",this,c)};
_.yv(dm,_.KI);dm.prototype.handleEvent=function(J){var c=0,m=0,b=J.event_;b.type=="mousewheel"?(J=Vs2(-b.wheelDelta),b.wheelDeltaX!==void 0?(c=Vs2(-b.wheelDeltaX),m=Vs2(-b.wheelDeltaY)):m=J):(J=b.detail,J>100?J=3:J<-100&&(J=-3),b.axis!==void 0&&b.axis===b.HORIZONTAL_AXIS?c=J:m=J);typeof this.maxDeltaX_==="number"&&(c=_.fZ(c,-this.maxDeltaX_,this.maxDeltaX_));typeof this.maxDeltaY_==="number"&&(m=_.fZ(m,-this.maxDeltaY_,this.maxDeltaY_));this.isRtl_&&(c=-c);c=new PN6(J,b,c,m);this.dispatchEvent(c)};
var Vs2=function(J){return _.ms&&(_.gku||cQe)&&J%40!=0?J:J/40};
dm.prototype.disposeInternal=function(){dm.superClass_.disposeInternal.call(this);iv(this.listenKey_);this.listenKey_=null};
var PN6=function(J,c,m,b){_.pI.call(this,c);this.type="mousewheel";this.detail=J;this.deltaX=m;this.deltaY=b};
_.yv(PN6,_.pI);_.mm=function(J){var c="instance_";if(J.instance_&&J.hasOwnProperty(c))return J.instance_;c=new J;return J.instance_=c};var acR;var Ms2=_.Oo(["https://about:blank"]),pG_=_.Oo(['javascript:""']),Nu2=_.Oo(["about:blank"]);_.yv(Qx,PN2);_.V=Qx.prototype;_.V.JSC$8203_url_="";_.V.JSC$8203_iframe_=null;_.V.iframeLoaded_=!1;_.V.loadedFired_=!1;_.V.callback_=function(){};
_.V.enterDocument=function(){Qx.superClass_.enterDocument.call(this);KvQ(this.getBackgroundElement(),z_(this))};
_.V.render=function(J){var c=this;Qx.superClass_.render.call(this,J);this.useGapi_?N_$(this.iframeManager_,window).then(function(){return ts_(c)}).then(null,function(){c.callback_({action:"error"})}):Ic8(this)};
var ts_=function(J){var c=J.JSC$8152_dom_.JSC$7339_createDom("div",["picker-dialog-content","picker-frame"]);_.oa(c,!1);J.getContentElement().appendChild(c);return tA2(J.iframeManager_,c,function(m){var b=duC(m["iframe-command"]);switch(b.getCommand()){case 1:m=J.callback_;b=_.JU(b,Ql,2);var x="";switch(b.getStatus()){case 2:x="cancel";break;case 1:x="picked";break;case 3:x="error"}var P=_.Jy(b,n0,2,_.ca(WJo));b=P.length===0?{action:x}:o9Q(P,x,_.JU(b,Uu$,7));m.call(J,b);J.setVisible(!1);break;case 4:B_2(J);
J.callback_({action:"loaded"});break;case 7:case 8:m=J.callback_;a:{x=b.getCommand();P=_.JU(b,Ql,2);switch(x){case 7:x="uploadScheduled";break;case 8:x="uploadStateChange";break;default:b={};break a}b=_.Jy(P,n0,2,_.ca(WJo));if(b.length===0)b={action:x};else{var p=_.JU(P,Uu$,7);P=p&&_.L0(p,1);p=Uia(p);b=di6(b,x,P,p)}}m.call(J,b)}},J.JSC$8203_url_,J.targetId_,J.rpcToken_).then(function(m){J.JSC$8203_iframe_=m.getIframeEl();
KvC(J);_.oa(J.JSC$8203_iframe_.parentElement,!0);_.oA(J.getElement(),"picker-dialog");CNC(J);return m})},Ic8=function(J){J.JSC$8203_iframe_=J.JSC$8152_dom_.JSC$7339_createDom("IFRAME",{id:J.targetId_,
name:J.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});_.Yh(J.JSC$8203_iframe_,ac2(J));_.oA(J.getElement(),"picker-dialog");J.getContentElement().appendChild(J.JSC$8203_iframe_);z_(J).listen(J.JSC$8203_iframe_,"load",function(){return void KvC(J)});
J.JSC$8203_iframe_.src=J.JSC$8203_url_;CNC(J)},H32=function(J){keC(J,(0,_.Wa)(function(c){c.setAuthToken(this.targetId_,this.rpcToken_)},J))},CNC=function(J){var c=_.Ay(_.O7(J.JSC$8203_url_),"title");
c&&J.setTitle(c)},ac2=function(J){return _.I3T("Internet Explorer")>=7&&_.xt(J.JSC$8203_url_,"https")?_.cm(Ms2):_.JK?_.cm(pG_):_.cm(Nu2)},KvC=function(J){H32(J);
J.iframeLoaded_=!0;J.JSC$8203_iframe_.tabIndex=0;J.isVisible()&&J.focus()};
Qx.prototype.handleKeydown_=function(J){J.keyCode==27&&(this.setVisible(!1),this.callback_({action:"cancel"}),J.stopPropagation(),J.preventDefault())};
var keC=function(J,c){var m=J.JSC$8201_gadgetsDomHelper_;tsu(function(){c(m.getWindow().gadgets.rpc)},m)};
Qx.prototype.setUrl=function(J){J=_.Ra(new _.oz(J),"rpcService",this.targetId_);_.Ra(J,"rpctoken",this.rpcToken_);_.jo(J,"rpctoken="+this.rpcToken_);_.Ai(J,"https");this.JSC$8203_url_=J.toString();this.JSC$8203_iframe_&&(this.JSC$8203_iframe_.src=this.JSC$8203_url_)};
var i3B=function(J,c){J.callback_=c;keC(J,(0,_.Wa)(function(m){m.register(this.targetId_,(0,_.Wa)(this.handlePickerAction_,this))},J))};
Qx.prototype.handlePickerAction_=function(J){var c=J.action;c=="loaded"&&(this.loadedFired_=!0,nya(this,new VsR(this.isVisible())),Tu_(this),B_2(this),z_(this).unlisten(this.JSC$8152_dom_.getWindow(),"keydown",this.handleKeydown_),this.JSC$8203_iframe_.tabIndex=0);c!="picked"&&c!="cancel"||this.setVisible(!1);this.callback_(J)};
var Tu_=function(J){J.JSC$8203_appId_&&nya(J,new x3D(J.JSC$8203_appId_,window.location.protocol+"//"+window.location.host))};
Qx.prototype.setRelayUrl=function(J){keC(this,(0,_.Wa)(function(c){c.setRelayUrl(this.targetId_,J)},this))};
var nya=function(J,c){J.useGapi_&&kL2(c,J.iframeManager_).then(null,function(){J.callback_({action:"error"})});
keC(J,(0,_.Wa)(function(m){m.call(this.targetId_,"picker",null,c)},J))};
Qx.prototype.resizePicker_=function(){var J=uK(this.JSC$8152_dom_.JSC$7337_document_)||window;if(_.Ay(_.O7(this.JSC$8203_url_),"ignoreLimits")=="true")J=new _.tk(this.preferredDialogWidth_,this.preferredDialogHeight_);else if(_.Ay(_.O7(this.JSC$8203_url_),"shadeDialog")=="true"){var c=jDZ(this);c=otQ(c);var m=_.Iw(J);J=m.width-80;m=m.height-40;c&&(J-=c.left?c.left:0,J-=c.right?c.right:0,m-=c.top?c.top:0,m-=c.bottom?c.bottom:0);J=new _.tk(J>0?J:0,m>0?m:0)}else(c=this.preferredDialogWidth_)?(c=Math.max(320,
Math.min(1051,c)),(m=this.preferredDialogHeight_)||(m=_.Iw(J).height*.85),m=Math.max(480,Math.min(650,m))):(c=_.Iw(J),m=c.width*.618,m=m<c.height?Math.round(Math.max(480,Math.min(650,m*.85))):Math.round(Math.max(480,Math.min(650,c.height*.85))),c=Math.round(m/.618)),J=_.Iw(J),c=Math.min(c,Math.max(J.width,320)),m=Math.min(m,Math.max(J.height,480)),J=new _.tk(c,m);_.GDz(this.getContentElement(),J);this.reposition()};
Qx.prototype.reposition=function(){if(_.Ay(_.O7(this.JSC$8203_url_),"shadeDialog")=="true"){var J=vt2(this.getElement()),c=_.Iw(this.JSC$8152_dom_.getWindow());J=Math.floor(c.width/2-J.width/2);c=jDZ(this);if(c=otQ(c)){var m=c.left?c.left:0;m+=c.right?c.right:0;J=Math.floor(J-m/2)}J=J>0?J:0;c=Kw(this.JSC$8152_dom_).y;Y8(this.getElement(),J,c)}else Qx.superClass_.reposition.call(this)};
Qx.prototype.setVisible=function(J){if(J!=this.isVisible()&&this.autoSizeDialog_){var c=this.JSC$8152_dom_.getWindow();J?(this.resizePicker_(),z_(this).listen(c,"resize",this.resizePicker_),this.iframeLoaded_||z_(this).listen(c,"keydown",this.handleKeydown_)):(z_(this).unlisten(c,"resize",this.resizePicker_),this.iframeLoaded_||z_(this).unlisten(c,"keydown",this.handleKeydown_))}Qx.superClass_.setVisible.call(this,J);nya(this,new VsR(J))};
Qx.prototype.focus=function(){Qx.superClass_.focus.call(this);if(this.JSC$8203_iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.JSC$8203_iframe_.focus()}catch(J){}};var Dn=function(J,c){c=c===void 0?Qx:c;hy.call(this,J);this.pickerConstructor=c;this.urlParamMap_=new Map;this.urlParamMap_.set("protocol","gadgets");(J=window.location.origin)||(J=window.location.protocol+"//"+window.location.host);J&&this.urlParamMap_.set("origin",J);this.postProcessors_=[]};
_.D(Dn,MsR);Dn.prototype.JSC$8208_disposeOnHide_=!1;
Dn.prototype.build=function(){this.JSC$8109_appId_&&this.urlParamMap_.has("oauth_token")&&this.urlParamMap_.set("appId",this.JSC$8109_appId_);this.getRelayUrl()||this.setRelayUrl(_.Qh(_.jo(_.eo(_.O7(window.location.href)),""),"/favicon.ico").toString());this.urlParamMap_.set("ifls",Date.now());if(this.urlParamMap_.get("minimal"))throw Error("jb");var J=new this.pickerConstructor(wG_(this).toString(),!0,null,this.dialogWidth_,this.dialogHeight_,"",void 0,!1,!1);J.JSC$8185_disposeOnHide_=this.JSC$8208_disposeOnHide_;
J.JSC$8203_appId_=this.JSC$8109_appId_;J.loadedFired_&&Tu_(J);i3B(J,this.callback_);return J};
var ra6=function(J){J.urlParamMap_.set("multiselectEnabled","true");return J};
Dn.prototype.getHeight=function(){return this.dialogHeight_};
Dn.prototype.getRelayUrl=function(){return this.urlParamMap_.get("parent")};
Dn.prototype.getTitle=function(){return this.urlParamMap_.get("title")};
Dn.prototype.getWidth=function(){return this.dialogWidth_};
var sPZ=function(J){J.JSC$8208_disposeOnHide_=void 0;return J};
Dn.prototype.setRelayUrl=function(J){this.urlParamMap_.set("parent",J);return this};
var Lv_=function(J,c){J.urlParamMap_.set("selectButtonLabel",c);return J};
Dn.prototype.setSize=function(J,c){this.dialogWidth_=J;this.dialogHeight_=c;return this};
Dn.prototype.setTitle=function(J){this.urlParamMap_.set("title",J);return this};
var wG_=function(J){J.postProcessors_.length&&J.urlParamMap_.set("pp",JSON.stringify(J.postProcessors_));J.urlParamMap_.set("nav",Y7u(J.nav_));var c=new _.oz(J.getBaseUrl());J.urlParamMap_.forEach(function(m,b){_.Ra(c,b,m)});
return c};var zMZ=function(J,c){J.name!==void 0?(this.name=J.name,this.code=D3_[J.name]):(this.code=J=J.code,this.name=WvL(J));_.Jq.call(this,c9u("%s %s",this.name,c))};
_.yv(zMZ,_.Jq);var WvL=function(J){var c=_.Lw.findKey(D3_,function(m){return J==m});
if(c===void 0)throw Error("lb`"+J);return c},hE={},D3_=(hE.AbortError=3,hE.EncodingError=5,hE.InvalidModificationError=9,hE.InvalidStateError=7,hE.NotFoundError=1,hE.NotReadableError=4,hE.NoModificationAllowedError=6,hE.PathExistsError=12,hE.QuotaExceededError=10,hE.SecurityError=2,hE.SyntaxError=8,hE.TypeMismatchError=11,hE);var uk$=function(J,c){_.Mb.call(this,J.type,c);this.event_=J};
_.yv(uk$,_.Mb);var fcQ=function(J,c,m){m===void 0&&(m=J.size);return J.slice?J.slice(c,m):null};var Tu3=new WeakMap,nym=function(J,c){J=[J];for(var m=c.length-1;m>=0;--m)J.push(typeof c[m],c[m]);return J.join("\v")};_.ra2(function(){if(!_.mo.Blob)return!1;var J=new Uint8Array(100);try{var c=new Blob([J])}catch(m){return!1}return c.size!=100?!1:!0});
var YbZ=_.ra2(function(){if(!_.mo.Blob)return!1;var J=new Uint8Array(100);try{var c=new Blob([J])}catch(m){return!1}return fcQ(c,0,1)===null?!1:!0});_.mo.U3bHHf!=null||(_.mo.U3bHHf=0);_.mo.U3bHHf++;var sPt={};var yx=void 0;var D33=Symbol("tb");var Get=cF("WizInjectionContext_Dispatcher");var Ja=Symbol("ub");var ta=function(){},x8J=Symbol("vb"),n3=function(J){this.props=J;
this.__unmounted=!1};
n3.prototype.didPatch=function(){};
n3.prototype.didMount=function(){};
n3.prototype.didUnmount=function(){};
n3.prototype.didUpdate=function(){};var U3G=cF("WizInjectionContext_RootElement");var hMf=cF("WizInjectionContext_AppContext"),Sb3=cF("WizInjectionContext_ModelRootElement"),d3J=cF("WizInjectionContext_RendererData"),$3Q=cF("WizInjectionContext_InjectingConstructor"),qbR=cF("WizInjectionContext_AsyncDeps"),Eyt={};var QPo=!1;var lcT={enableAttributeSanitization:!0,enableComponentStacksInErrorMessages:!0,enableContextBasedComponentStacks:!1,enableContextPerComponent:eU2,enableLazyTsx:jqr,enablePerformanceTiming:!1,alwaysTrackContexts:!1,enableClientOnlyWizVeLogging:!0,disableSoyJsRenderEvents:!1,legacyTriggerSoyRendererEvents:!1};_.bi=Object.assign({},{attributes:{},handleError:function(J){throw J;}},lcT);var XG6=Symbol("zb"),Gou=Symbol("Ab"),ALR=Symbol("Bb"),vKD=Symbol("Cb"),l4J=R2(function(J){return xB(J)&&XG6 in J});var bgf=Symbol("Db"),d2={},cLf=(d2[bgf]=!0,d2.debugName="[component]",d2.getComponentStack=function(){for(var J=[],c=this;c;)xUJ(c)&&J.push(c.debugName),c=c.parent;return J},d2.registerSignal=function(){},d2.registerEffect=function(){},d2);var VD=null,Ms=!1,tDu=1,t$=Symbol("Eb"),HF={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 $c=Symbol("Fb"),G_=Symbol("Gb"),Ns=Symbol("Hb"),nKf=Object.assign({},HF,{value:$c,dirty:!0,error:null,equal:VDu,kind:"computed",producerMustRecompute:function(J){return J.value===$c||J.value===G_},
producerRecomputeValue:function(J){if(J.value===G_)throw Error("da");var c=J.value;J.value=G_;var m=koT(J),b=!1;try{var x=J.computation();PF(null);b=c!==$c&&c!==Ns&&x!==Ns&&J.equal(c,x)}catch(P){x=Ns,J.error=P}finally{Hgr(J,m)}b?J.value=c:(J.value=x,J.version++)}});var srt=function(){throw Error();};var DUq=null,w7T=Object.assign({},HF,{equal:VDu,value:void 0,kind:"signal"});Object.assign({},HF,{value:$c,dirty:!0,error:null,equal:VDu,kind:"linkedSignal",producerMustRecompute:function(J){return J.value===$c||J.value===G_},
producerRecomputeValue:function(J){if(J.value===G_)throw Error("da");var c=J.value;J.value=G_;var m=koT(J);try{var b=J.source();var x=J.computation(b,c===$c||c===Ns?void 0:{source:J.sourceValue,value:c});J.sourceValue=b}catch(P){x=Ns,J.error=P}finally{Hgr(J,m)}c!==$c&&x!==Ns&&J.equal(c,x)?J.value=c:(J.value=x,J.version++)}});Object.assign({},HF,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:function(J){J.schedule!==null&&J.schedule(J.ref)},
hasRun:!1,cleanupFn:function(){}});var zk2=Symbol("Ib"),C2=Symbol("Jb");var aD=Array.isArray;var hkt;var Z38={},$Uu=SOt(Object.assign({},{consumerAllowSignalWrites:!0},Z38)),aP=SOt(Object.assign({},{consumerAllowSignalWrites:!0},Z38));var w_=0,EZ=function(){this.queue=new Set};
EZ.prototype.remove=function(J){this.queue.delete(J)};
EZ.prototype.clear=function(){this.queue.clear()};
var qb2=function(){EZ.apply(this,arguments)};
_.D(qb2,EZ);qb2.prototype.schedule=function(J){this.queue.add(J)};
qb2.prototype.flush=function(){if(this.queue.size)for(var J=_.M(this.queue),c=J.next();!c.done;c=J.next()){c=c.value;this.queue.delete(c);try{c.run()}catch(m){U3Q(m)}}};
var Sb_=new qb2,vs=function(){EZ.apply(this,arguments)};
_.D(vs,EZ);var hMu=function(){vs.apply(this,arguments)};
_.D(hMu,vs);hMu.prototype.schedule=function(J){J.hasRun?this.queue.add(J):J.run()};
hMu.prototype.flush=function(){if(this.queue.size){var J=this.queue;this.queue=new Set;yL3(J)}};
var EKR=new hMu,d3Q=function(){vs.apply(this,arguments)};
_.D(d3Q,vs);d3Q.prototype.schedule=function(J){var c=this;return _.N(function(m){if(m.nextAddress==1)return J.hasRun?m.jumpTo(2):_.K(m,Promise.resolve(),3);if(m.nextAddress!=2)return J.run(),m.return();c.queue.add(J);_.tD(m)})};
d3Q.prototype.flush=function(){var J=this;return _.N(function(c){if(c.nextAddress==1)return J.queue.size?_.K(c,Promise.resolve(),2):c.return();yL3(J.queue);_.tD(c)})};
var Rkr=new d3Q,$3C=function(){vs.apply(this,arguments)};
_.D($3C,vs);$3C.prototype.schedule=function(J){this.queue.add(J)};
$3C.prototype.flush=function(){this.queue.size&&yL3(this.queue)};
var Ogt=new $3C,jrt=[EKR,Sb_,Ogt,Rkr],GeZ=[EKR,Ogt,Rkr],Qre=[];DUq=function(){FGQ();for(var J=_.M(Qre),c=J.next();!c.done;c=J.next())c=c.value,c()};
var U3Q=bQ;var L2=Symbol("Ob");var r_=null,cUD,mXD=null,bto;var OZ={},EyZ=Object.assign({},HF,(OZ[XG6]=!0,OZ.effectType=Gou,OZ.isResettableContext=!0,OZ.producerNode=void 0,OZ.hasRun=!1,OZ.effectFn=null,OZ.consumerIsAlwaysLive=!0,OZ.consumerAllowSignalWrites=!0,OZ.consumerMarkedDirty=oKf,OZ.run=function(){if(this.effectFn!==null&&!this.isDisposed){if(Ms)throw Error("Pb");this.dirty=!1;if(!this.hasRun||I4o(this)){this.hasRun=!0;Z3q(this);var J=_.Ba(this),c=koT(this);BuJ("effectRun",this.debugName);try{zL(this.effectFn,this.componentStack)}catch(m){throw _.bi.enableContextBasedComponentStacks&&
WF(m),m;}finally{gy3("effectRun",this.debugName),Hgr(this,c),_.Ba(J)}}}},OZ.componentStack=void 0,OZ.debugName="[effect]",OZ[Symbol.dispose]=function(){Pj2(this);
if(p2(this))for(var J=0;J<this.producerNode.length;J++)MDJ(this.producerNode[J],this.producerIndexOfThis[J]);this.producerNode.length=this.producerLastReadVersion.length=this.producerIndexOfThis.length=0;this.liveConsumerNode&&(this.liveConsumerNode.length=this.liveConsumerIndexOfThis.length=0);J=_.M(GeZ);for(var c=J.next();!c.done;c=J.next())c.value.remove(this);XG2(this)},OZ));var POG=Object.assign({},EyZ,{effectType:ALR});var Mff=Symbol("Qb");var p4q=Object.assign({},EyZ,{effectType:Gou});var R2m=new Set("allowfullscreen allowtransparency async autofocus autoplay checked controls default defer disabled disableremoteplayback formnovalidate hidden inert ismap itemscope jsshadow jsslot loop multiple muted nomodule novalidate open playsinline readonly required reversed scoped seamless selected spellcheck sortable typemustmatch".split(" "));var ICe={align:1,alt:1,"aria-activedescendant":10,"aria-atomic":1,"aria-autocomplete":1,"aria-busy":1,"aria-checked":1,"aria-controls":10,"aria-current":1,"aria-describedby":10,"aria-disabled":1,"aria-dropeffect":1,"aria-expanded":1,"aria-haspopup":1,"aria-hidden":1,"aria-invalid":1,"aria-label":1,"aria-labelledby":10,"aria-level":1,"aria-live":1,"aria-multiline":1,"aria-multiselectable":1,"aria-orientation":1,"aria-owns":10,"aria-posinset":1,"aria-pressed":1,"aria-readonly":1,"aria-relevant":1,"aria-required":1,
"aria-selected":1,"aria-setsize":1,"aria-sort":1,"aria-valuemax":1,"aria-valuemin":1,"aria-valuenow":1,"aria-valuetext":1,async:8,autocapitalize:1,autocomplete:1,autocorrect:1,autofocus:1,autoplay:1,bgcolor:1,border:1,cellpadding:1,cellspacing:1,checked:1,cite:1,"class":1,color:1,cols:1,colspan:1,contenteditable:1,controls:1,controlslist:1,coords:1,crossorigin:1,datetime:1,dir:8,disabled:1,download:1,draggable:1,enctype:1,face:1,"for":10,formenctype:1,frameborder:1,height:1,hidden:1,href:4,hreflang:1,
id:10,inert:1,ismap:1,itemid:1,itemprop:1,itemref:1,itemscope:1,itemtype:1,label:1,lang:1,list:10,loading:8,loop:1,max:1,maxlength:1,media:1,min:1,minlength:1,multiple:1,muted:1,name:10,nonce:1,open:1,placeholder:1,playsinline:1,poster:1,preload:1,rel:1,required:1,reversed:1,role:1,rows:1,rowspan:1,selected:1,shape:1,size:1,sizes:1,slot:1,span:1,spellcheck:1,src:4,srcset:12,start:1,step:1,style:5,summary:1,tabindex:1,target:8,title:1,translate:1,type:1,usemap:1,valign:1,value:1,width:1,wrap:1},tff=
{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}]}},hvT={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},aCJ=[{auto:!0,ltr:!0,rtl:!0},{async:!0},{eager:!0,lazy:!0},{_self:!0,_blank:!0}],COJ={"*":{async:1,dir:0,loading:2,target:3}};var vy_=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,AE={},Ht2=(AE[1]=null,AE[2]=function(J,c){return c instanceof z$?f1(c):is.toString()},AE[3]=function(J,c){return C1(c)?_.ah(c):vy_.test(String(c))?String(c):is.toString()},AE[4]=function(J,c){return c instanceof P0?_.N2(c):is.toString()},AE[5]=function(J,c){return String(c)},AE[7]=null,AE[8]=null,AE[10]=null,AE);var xde=Symbol("Sb");var UVR=function(J){var c=O3_,m=J,b="",x="",P=1;J<0&&(J=-J);if(J===Infinity)J=(Infinity*Math.sign(m)).toString();else{for(var p=0;p<AaZ.length;p++){var t=AaZ[p];P=c[t];if(J>=P||P<=1&&J>.1*P){b=t;break}}b?(b+="B",x=" "):P=1;J=Math.round(m/P*10)/10+x+b}return J},AaZ="Y Z E P T G M K  m u n".split(" "),O3_={"":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};_.RMz=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 xzT={};RegExp.prototype.hasOwnProperty("sticky");var e2Q=function(J){J=String(J);for(var c=function(b,x,P){for(var p=Math.min(x.length-P,b.length),t=0;t<p;t++){var I=x[P+t];if(b[t]!==("A"<=I&&I<="Z"?I.toLowerCase():I))return!1}return!0},m=0;(m=J.indexOf("<",m))!=-1;){if(c("\x3c/script",J,m)||c("\x3c!--",J,m))return"zSoyz";
m+=1}return J},b4G=function(J){return J!=null&&J.contentKind===xzT};var h$={default:"__default"};var LLt=Object.prototype.hasOwnProperty;Toq.prototype=Object.create(null);var l3=z2u();var FD=null;var $X3=function(J){this.created=[];this.deleted=[];this.node=J};var G72=typeof Node!=="undefined"&&Node.prototype.getRootNode||function(){for(var J=this,c=J;J;)c=J,J=J.parentNode;return c};var fCm=function(J,c){this._attrsArr=null;this.staticsApplied=!1;this.nameOrCtor=J;this.key=c;this.text=void 0};var Es=null,vF=null,$B=null,A$=null,UXr=[],qnq=X4r,eA=[],jA=[],bq2=function(J){return E$u(function(c,m,b){$B=vF=c;vF=null;m(b);Ztr(null);vF=$B;$B=$B.parentNode;return c},J)}(),mdm=function(J){return E$u(function(c,m,b){var x={nextSibling:c};
vF=x;m(b);$B&&Ztr(c.nextSibling);return x===vF?null:vF},J)}();var li=[],Otf=0;var yD=new Toq;var DG=new Toq;var oy$=z2u(),Q6o=oy$[h$.default],j6Q=oy$.style,o$2=["focusin","focusout"];var hwm=function(){},Dz3=function(){},vHD=function(){},$zt=function(){};var g_=Symbol("Yb");var cIJ,JID=g$o;var M3=Symbol("Zb");var TvQ={};var EHe=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(" ")),
GBD=new Set(["a","font","script","style","title"]);var ky={afterOpen:function(){},
onElementDeleted:function(){},
beforeVisit:function(){},
beforeRender:function(){},
afterRender:function(){},
didMount:function(){},
didPatch:function(){},
didUnmount:function(){},
didUpdate:function(){}};var HG=null,iN=function(J,c){n3.call(this,J);var m=this;this.functionComponent=c;this.hooks=[];this.hookCounter=0;this.disposeEffects=YB(function(b){m.effectContext=b;_.f2(function(){ftr(m,m.el)})},_.bi.alwaysTrackContexts||!!yx)};
_.D(iN,n3);iN.prototype.render=function(J){var c=HG;HG=this;this.hookCounter=0;var m=PF(aP),b=_.Ba(this.effectContext);try{return BuJ("render",this.componentName),this.functionComponent(J)}finally{gy3("render",this.componentName),_.Ba(b),PF(m),HG=c}};
_.eE.Object.defineProperties(iN.prototype,{componentName:{configurable:!0,enumerable:!0,get:function(){return gKG(this.functionComponent)}}});var O4R=Symbol("mc"),UzQ=function(J,c,m){this.kind=J;this.props=c;this.children=m};
_.D(UzQ,ta);UzQ.prototype.render=function(){return qef(this.kind,this.props,this.children)};
UzQ.prototype.getChildren=function(){return this.children};var Rwf=[];srt=function(J){throw Error("sb`"+J.debugName);};
(function(){var J=FD;FD=function(c){J==null||J(c);oHr(c)}})();var QPj=void 0,eML={},jP2=new WeakMap,QNR={getComponent:function(J){if(J.hasAttribute("ng-version"))return eML;if(!J.__wizComponent)return null;J=J.__wizComponent;jP2.set(J.propsAndState,J);return J.propsAndState},
getDirectiveMetadata:function(J){if(J===eML)return{framework:"wiz",name:"<Root>",props:{}};J=jP2.get(J);if(!J)throw Error("nc");return{framework:"wiz",name:J.name,props:Object.fromEntries(Object.keys(J.props).map(function(c){return[c,c]}))}},
"\u0275setProfiler":function(J){var c;(c=QPj)==null||c();QPj=ekG(function(){J(2)})},
isSignal:function(J){return typeof J==="function"&&J[t$]!==void 0}};_.n.debugName="RlDudd";var jNJ={nonNullableCondIsNull:function(){return Error("rc")}};var J5D=function(){this.map=new Map};
J5D.prototype.push=function(J,c){var m=this.map;m.has(J)&&(this.multi||(this.multi=new Map),this.multi.set(c,m.get(J)));m.set(J,c)};
J5D.prototype.pop=function(J){var c=this.map,m=c.get(J),b;m!==void 0&&((b=this.multi)==null?0:b.has(m))?(c.set(J,this.multi.get(m)),this.multi.delete(m)):c.delete(J);return m};_.Te.debugName="nsTGHd";_.wu.debugName="tbhMcf";_.ru.debugName="zyMFzb";_.sb.debugName="vI1rtf";_.L3={OUT_OF_ORDER_HOOK_CALL:function(J){return Error("sc`"+J)},
PRIMITIVE_INVALID_HOOK_CALL:function(){return Error("tc")},
RETURNING_CLEANUP_FUNCTION_FROM_ONINIT:function(){return Error("uc")},
SIGNAL_INVALID_HOOK_CALL:function(){return Error("vc")},
USE_ELEMENT_ACCESSED_DURING_RENDER:function(J,c){return Error("wc`"+((c===void 0?0:c)?"IDOM":"Reactive")+"`"+J)},
USE_ELEMENT_UNEXPECTED_ELEMENT:function(J,c){return Error("xc`"+J+"`"+c)},
USE_ELEMENT_MULTIPLE_ASSIGNMENTS:function(J){return Error("yc`"+J)},
USE_ELEMENT_NOT_ASSIGNED:function(J){return Error("zc`"+String(J))}};cIJ=Se3;var NPt=Symbol("Ac");zwu({beforeRender:function(J){var c=_.Ba(J.effectContext);try{var m;((m=J.__syncEffects)==null?0:m.length)&&I1q(J.__syncEffects)}finally{_.Ba(c)}},
didPatch:function(J){var c=_.Ba(J.effectContext);try{var m;((m=J.__syncEffects)==null?0:m.length)&&I1q(J.__syncEffects)}finally{_.Ba(c)}},
didUnmount:function(J){var c;((c=J.hooks)==null?0:c.length)&&J.hooks.forEach(tEQ)}});var FvC,lcL,yaQ;FvC=_.mo.window;_.Zc=(FvC==null?void 0:(lcL=FvC.yt)==null?void 0:lcL.config_)||(FvC==null?void 0:(yaQ=FvC.ytcfg)==null?void 0:yaQ.data_)||{};_.jD("yt.config_",_.Zc);var BuQ={},kkm=[];_.w3=function(J){var c=_.s$.apply(1,arguments);var m=Error.call(this,J);this.message=m.message;"stack"in m&&(this.stack=m.stack);this.args=[].concat(_.L6(c));Object.setPrototypeOf(this,this.constructor.prototype)};
_.D(_.w3,Error);var k_q=function(J,c,m){this.actionName=J;this.optionalAction=c===void 0?!1:c;this.args=m===void 0?null:m;this.returnValue=[]};_.Q=function(J){this.name=J};_.$H=new _.Q("signalAction");var zFq=/^[\w.]*$/,wye={q:!0,search_query:!0},TP2=String(nAQ);var RE;RE=Symbol("Bc");_.oE=function(J){this.name=J};
_.oE.prototype.toString=function(){return"InjectionToken("+this.name+")"};
var u6o=function(J){this.key=J},Xy2=function(J){this.deferredKey=J},Y4R=function(){var J=this;
this.providers=new Map;this.JSC$8416_deferred=new Map;this.cachedValues=new Map;this.TEST_ONLY={getInjectionSnapshot:function(){return new Map(J.providers)}}};
Y4R.prototype.addProvider=function(J){this.providers.set(J.provide,J);var c=this.JSC$8416_deferred.get(J.provide);if(c)try{c.resolver(this.resolve(J.provide))}catch(m){c.rejector(m)}};
Y4R.prototype.resolve=function(J){return J instanceof Xy2?gy_(this,J):J instanceof u6o?JLa(this,J.key,[],!0):JLa(this,J,[])};
var gy_=function(J,c){c=c.deferredKey;if(J.JSC$8416_deferred.has(c))return J.JSC$8416_deferred.get(c).promise;var m={};m.promise=new Promise(function(b,x){m.resolver=b;m.rejector=x});
J.JSC$8416_deferred.set(c,m);return m.promise},JLa=function(J,c,m,b){b=b===void 0?!1:b;
if(m.indexOf(c)>-1)throw Error("Cc`"+c);if(J.cachedValues.has(c))return J.cachedValues.get(c);if(!J.providers.has(c)){if(b)return;throw Error("Dc`"+c);}b=J.providers.get(c);m.push(c);if(b.useValue!==void 0)var x=b.useValue;else if(b.useFactory)x=b[RE]?cLu(J,b[RE],m):[],x=b.useFactory.apply(b,_.L6(x));else if(b.useClass){x=b.useClass;var P=x[RE]?cLu(J,x[RE],m):[];x=new (Function.prototype.bind.apply(x,[null].concat(_.L6(P))))}else throw Error("Ec`"+c);m.pop();b.skipCache||J.cachedValues.set(c,x);return x},
cLu=function(J,c,m){return c?c.map(function(b){return b instanceof u6o?JLa(J,b.key,m,!0):JLa(J,b,m)}):[]};var f1o;var GB=new _.oE("ENDPOINT_HANDLER_TOKEN");_.Ee=new _.Q("urlEndpoint");var mUa=function(){this.data=[];this.cachedPackedInt52=-1};
mUa.prototype.set=function(J,c){c=c===void 0?!0:c;0<=J&&J<52&&Number.isInteger(J)&&this.data[J]!==c&&(this.data[J]=c,this.cachedPackedInt52=-1)};
mUa.prototype.get=function(J){return!!this.data[J]};
var bgu=function(J){J.cachedPackedInt52===-1&&(J.cachedPackedInt52=J.data.reduce(function(c,m,b){return c+(m?Math.pow(2,b):0)},0));
return J.cachedPackedInt52};var oAG=function(J){var c=xUQ;J=J===void 0?_.$y("yt.ads.biscotti.lastId_")||"":J;var m=Object,b=m.assign,x={};x.dt=PLL;x.flash="0";a:{try{var P=c.JSC$8422_win_.top.location.href}catch(kt){P=2;break a}P=P?P===c.doc_.location.href?0:1:2}x=(x.frm=P,x);try{x.u_tz=-(new Date).getTimezoneOffset();var p=p===void 0?X4:p;try{var t=p.history.length}catch(kt){t=0}x.u_his=t;var I;x.u_h=(I=X4.screen)==null?void 0:I.height;var a;x.u_w=(a=X4.screen)==null?void 0:a.width;var k;x.u_ah=(k=X4.screen)==null?void 0:k.availHeight;
var H;x.u_aw=(H=X4.screen)==null?void 0:H.availWidth;var T;x.u_cd=(T=X4.screen)==null?void 0:T.colorDepth}catch(kt){}t=c.JSC$8422_win_;try{var r=t.screenX;var W=t.screenY}catch(kt){}try{var Y=t.outerWidth;var Z=t.outerHeight}catch(kt){}try{var d=t.innerWidth;var G=t.innerHeight}catch(kt){}try{var e=t.screenLeft;var A=t.screenTop}catch(kt){}try{d=t.innerWidth,G=t.innerHeight}catch(kt){}try{var l=t.screen.availWidth;var y=t.screen.availTop}catch(kt){}r=[e,A,r,W,l,y,Y,Z,d,G];W=i6e(!1,c.JSC$8422_win_.top);
Y={};var pG=pG===void 0?_.mo:pG;Z=new mUa;"SVGElement"in pG&&"createElementNS"in pG.document&&Z.set(0);d=M2j();d["allow-top-navigation-by-user-activation"]&&Z.set(1);d["allow-popups-to-escape-sandbox"]&&Z.set(2);pG.crypto&&pG.crypto.subtle&&Z.set(3);"TextDecoder"in pG&&"TextEncoder"in pG&&Z.set(4);pG=bgu(Z);c=(Y.bc=pG,Y.bih=W.height,Y.biw=W.width,Y.brdim=r.join(),Y.vis=mi3(c.doc_),Y.wgl=!!X4.WebGLRenderingContext,Y);m=b.call(m,x,c);m.ca_type="image";J&&(m.bid=J);return m},xUQ=new function(){var J=
window.document;
this.JSC$8422_win_=window;this.doc_=J};
_.jD("yt.ads_.signals_.getAdSignalsString",function(J){return r5Q(oAG(J))});_.lc();navigator.userAgent.indexOf(" (CrKey ");var hFJ="XMLHttpRequest"in _.mo?function(){return new XMLHttpRequest}:null;var VD_="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" "),Pj6=[].concat(_.L6(VD_),["client_dev_set_cookie"]);var RFu={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"},Gkf="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(_.L6(VD_)),J0R=!1,vAJ=_.Q33,y5G=A5Q;var LPr=[{messageFn:function(J){return"Cannot read property '"+J.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(J){return"Cannot call '"+J.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(J){return J.key+" is not defined"},
patternsForType:{ReferenceError:[{regexp:/(.*) is not defined/,groups:["key"]},{regexp:/Can't find variable: (.*)/,groups:["key"]}]}}];var MDQ={messageWeights:[],callbackWeights:[{callback:xaq,weight:500},{callback:VKT,weight:500}]};var p7Z=function(){this.callbackWeights=[];this.messageWeights=[]},N32,sA3=function(){if(!N32){var J=N32=new p7Z;
J.messageWeights.length=0;J.callbackWeights.length=0;Czr(J,MDQ)}return N32},Czr=function(J,c){c.messageWeights&&J.messageWeights.push.apply(J.messageWeights,c.messageWeights);
c.callbackWeights&&J.callbackWeights.push.apply(J.callbackWeights,c.callbackWeights)};_.yv(_.Kg,_.DS);_.Kg.prototype.subscribe=function(J,c,m){var b=this.topics_[J];b||(b=this.topics_[J]=[]);var x=this.JSC$8446_key_;this.subscriptions_[x]=J;this.subscriptions_[x+1]=c;this.subscriptions_[x+2]=m;this.JSC$8446_key_=x+3;b.push(x);return x};
var tD_=function(J){var c=uzQ,m=!1,b=c.subscribe("handleError",function(x){m||(m=!0,this.unsubscribeByKey(b),J.apply(void 0,arguments))},c)};
_.Kg.prototype.unsubscribe=function(J,c,m){if(J=this.topics_[J]){var b=this.subscriptions_;if(J=J.find(function(x){return b[x+1]==c&&b[x+2]==m}))return this.unsubscribeByKey(J)}return!1};
_.Kg.prototype.unsubscribeByKey=function(J){var c=this.subscriptions_[J];if(c){var m=this.topics_[c];this.publishDepth_!=0?(this.pendingKeys_.push(J),this.subscriptions_[J+1]=function(){}):(m&&_.j2(m,J),delete this.subscriptions_[J],delete this.subscriptions_[J+1],delete this.subscriptions_[J+2])}return!!c};
_.Kg.prototype.publish=function(J,c){var m=this.topics_[J];if(m){var b=Array(arguments.length-1),x=arguments.length,P;for(P=1;P<x;P++)b[P-1]=arguments[P];if(this.async_)for(P=0;P<m.length;P++)x=m[P],I4j(this.subscriptions_[x+1],this.subscriptions_[x+2],b);else{this.publishDepth_++;try{for(P=0,x=m.length;P<x&&!this.isDisposed();P++){var p=m[P];this.subscriptions_[p+1].apply(this.subscriptions_[p+2],b)}}finally{if(this.publishDepth_--,this.pendingKeys_.length>0&&this.publishDepth_==0)for(;m=this.pendingKeys_.pop();)this.unsubscribeByKey(m)}}return P!=
0}return!1};
var I4j=function(J,c,m){_.as(function(){J.apply(c,m)})};
_.Kg.prototype.clear=function(J){if(J){var c=this.topics_[J];c&&(c.forEach(this.unsubscribeByKey,this),delete this.topics_[J])}else this.subscriptions_.length=0,this.topics_={}};
_.Kg.prototype.getCount=function(J){if(J){var c=this.topics_[J];return c?c.length:0}J=0;for(c in this.topics_)J+=this.getCount(c);return J};
_.Kg.prototype.disposeInternal=function(){_.Kg.superClass_.disposeInternal.call(this);this.clear();this.pendingKeys_.length=0};var uzQ=new _.Kg;var bO=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(bO,_.d6);bO.prototype.getColdHashData=function(){return _.L0(this,3)};
bO.prototype.getHotHashData=function(){return _.L0(this,5)};
bO.prototype.setHotHashData=function(J){return _.aw(this,5,J)};var TMR=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(TMR,_.d6);var e8m=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(e8m,_.d6);_.V=e8m.prototype;_.V.getDeviceId=function(){return _.L0(this,6)};
_.V.getExperimentIds=function(J){var c=_.TR(this,9,_.Wu,3,!0);Gz(c,J);return c[J]};
_.V.getPlayerType=function(){return _.Db(this,36)};
_.V.setHomeGroupInfo=function(J){return _.m_(this,81,J)};
_.V.clearLocationPlayabilityToken=function(){return _.mL(this,89)};var aN=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(aN,_.d6);aN.prototype.setKey=function(J){return _.aw(this,1,J)};
aN.prototype.getValue=function(){return z8(this,2,Fqu)};
var Fqu=[2,3,4,5,6];var KGQ=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(KGQ,_.d6);KGQ.prototype.setTrackingParams=function(J){return _.mL(this,1,_.$Z(J,!1))};var juo=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(juo,_.d6);var snR=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(snR,_.d6);snR.prototype.getExperimentIds=function(J){var c=_.TR(this,5,_.z4,3,!0);Gz(c,J);return c[J]};var n4=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(n4,_.d6);n4.prototype.getToken=function(){return _.Ha(this,2)};
n4.prototype.setToken=function(J){return _.aw(this,2,J)};var HO=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(HO,_.d6);HO.prototype.setSafetyMode=function(J){return _.c4(this,5,J)};var C4=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(C4,_.d6);C4.prototype.setClient=function(J){return _.m_(this,1,J)};var rSe={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 wAf;_.sT=function(){var J=this;this.deferredInstallPrompt=void 0;this.appInstalledEventFired=!1;_.mo.addEventListener("beforeinstallprompt",function(c){c.preventDefault();J.deferredInstallPrompt=c});
_.mo.addEventListener("appinstalled",function(){J.appInstalledEventFired=!0},{once:!0})};
wAf=function(){if(!_.mo.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return _.mo.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":_.mo.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":_.mo.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":_.mo.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(J){return"WEB_DISPLAY_MODE_UNKNOWN"}};var W9r=function(){this.syncHeaders=!0},zYq=function(J){var c={},m=[];
"USER_SESSION_ID"in _.Zc&&m.push({key:"u",value:_.Ub("USER_SESSION_ID")});if(m=jcq(m))c.Authorization=m,m=J=J==null?void 0:J.sessionIndex,m===void 0&&(m=Number(_.Ub("SESSION_INDEX",0)),m=isNaN(m)?0:m),_.w("voice_search_auth_header_removal")||(c["X-Goog-AuthUser"]=m.toString()),"INNERTUBE_HOST_OVERRIDE"in _.Zc||(c["X-Origin"]=window.location.origin),J===void 0&&"DELEGATED_SESSION_ID"in _.Zc&&(c["X-Goog-PageId"]=_.Ub("DELEGATED_SESSION_ID"));return c};var CjZ={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var QP=_.$y("ytglobal.prefsUserPrefsPrefs_")||{},a4Q;_.jD("ytglobal.prefsUserPrefsPrefs_",QP);_.e_=function(){this.cookieName=_.Ub("ALT_PREF_COOKIE_NAME","PREF");this.cookieDomain=_.Ub("ALT_PREF_COOKIE_DOMAIN","youtube.com");var J=_.ar.get(this.cookieName,void 0);J&&this.parse(J)};
_.HA=function(){a4Q||(a4Q=new _.e_);return a4Q};
_.e_.prototype.get=function(J,c){koL(J);HgB(J);J=QP[J]!==void 0?QP[J].toString():null;return J!=null?J:c?c:""};
_.e_.prototype.set=function(J,c){koL(J);HgB(J);if(c==null)throw Error("Hc");QP[J]=c.toString()};
_.e_.prototype.getFlag=function(J){return!!((igQ("f"+(Math.floor(J/31)+1))||0)&1<<J%31)};
_.iJ=function(J,c,m){J="f"+(Math.floor(c/31)+1);c=1<<c%31;var b=igQ(J)||0;b=m?b|c:b&~c;b===0?delete QP[J]:(m=b.toString(16),QP[J]=m.toString())};
_.e_.prototype.remove=function(J){koL(J);HgB(J);delete QP[J]};
_.e_.prototype.save=function(){var J=!0;_.w("web_secure_pref_cookie_killswitch")&&(J=!1);_.kK(this.cookieName,this.dump(),63072E3,this.cookieDomain,J)};
_.e_.prototype.clear=function(){_.Lw.clear(QP)};
_.e_.prototype.dump=function(){var J=[],c;for(c in QP)QP.hasOwnProperty(c)&&J.push(c+"="+encodeURIComponent(String(QP[c])));return J.join("&")};
var HgB=function(J){if(/^f([1-9][0-9]*)$/.test(J))throw Error("Ic`"+J);},koL=function(J){if(!/^\w+$/.test(J))throw Error("Jc`"+J);
},igQ=function(J){J=QP[J]!==void 0?QP[J].toString():null;
return J!=null&&/^[A-Fa-f0-9]+$/.test(J)?parseInt(J,16):null};
_.e_.prototype.parse=function(J){J=decodeURIComponent(J).split("&");for(var c=0;c<J.length;c++){var m=J[c].split("="),b=m[0];(m=m[1])&&(QP[b]=m.toString())}};var aPq={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"},L9Q={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},DLD={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},HlR={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};var JP;_.j_=function(){this.cancelDebouncedJobMap=new WeakMap;this.cancelThrottledJobMap=new WeakMap};
_.rv=function(J,c,m){return J.addJob(c,0,m)};
_.j_.prototype.addLowPriorityJob=function(J,c){return this.addJob(J,1,c)};
_.at=function(J,c,m){return J.addJob(c,2,m)};
_.T9=function(J,c,m){return J.addJob(c,3,m)};
_.cP=function(J,c,m){return J.addJob(c,4,m)};
JP=function(J){var c=_.$y("yt.scheduler.instance.addImmediateJob");c?c(J):J()};
_.j_.prototype.debounce=function(J,c,m){var b=this,x=0,P=function(){x&&b.cancelJob(x);x=b.addJob(J,c,m);b.cancelDebouncedJobMap.set(P,x)};
return P};
_.j_.prototype.cancelThrottle=function(J){(J=this.cancelThrottledJobMap.get(J))&&J()};var F8=function(){_.j_.apply(this,arguments)};
_.D(F8,_.j_);_.LZ=function(){F8.instance||(F8.instance=new F8);return F8.instance};
F8.prototype.addJob=function(J,c,m){m!==void 0&&Number.isNaN(Number(m))&&(m=void 0);var b=_.$y("yt.scheduler.instance.addJob");return b?b(J,c,m):m===void 0?(J(),NaN):_.P7(J,m||0)};
F8.prototype.cancelJob=function(J){if(J===void 0||!Number.isNaN(Number(J))){var c=_.$y("yt.scheduler.instance.cancelJob");c?c(J):_.pg(J)}};
F8.prototype.start=function(){var J=_.$y("yt.scheduler.instance.start");J&&J()};
F8.prototype.pause=function(){var J=_.$y("yt.scheduler.instance.pause");J&&J()};
_.ft=_.LZ();_.r3.prototype.set=function(J,c){c===void 0?this.mechanism.remove(J):this.mechanism.set(J,(0,_.TE)(c))};
_.r3.prototype.get=function(J){try{var c=this.mechanism.get(J)}catch(m){return}if(c!==null)try{return JSON.parse(c)}catch(m){throw"Storage: Invalid value was encountered";}};
_.r3.prototype.remove=function(J){this.mechanism.remove(J)};var lg=function(J){this.mechanism=J};
_.yv(lg,_.r3);var nKu=function(J){this.data=J},T3$=function(J){return J===void 0||J instanceof nKu?J:new nKu(J)};
lg.prototype.set=function(J,c){lg.superClass_.set.call(this,J,T3$(c))};
lg.prototype.getWrapper=function(J){J=lg.superClass_.get.call(this,J);if(J===void 0||J instanceof Object)return J;throw"Storage: Invalid value was encountered";};
lg.prototype.get=function(J){if(J=this.getWrapper(J)){if(J=J.data,J===void 0)throw"Storage: Invalid value was encountered";}else J=void 0;return J};_.yv(sO,lg);_.w7L=function(J){var c=J.creation;J=J.expiration;return!!J&&J<_.lc()||!!c&&c>_.lc()};
sO.prototype.set=function(J,c,m){if(c=T3$(c)){if(m){if(m<_.lc()){sO.prototype.remove.call(this,J);return}c.expiration=m}c.creation=_.lc()}sO.superClass_.set.call(this,J,c)};
sO.prototype.getWrapper=function(J,c){var m=sO.superClass_.getWrapper.call(this,J);if(m)if(!c&&_.w7L(m))sO.prototype.remove.call(this,J);else return m};var yP=function(){};
yP.prototype.next=function(){return Bs};
var Bs={done:!0,value:void 0},g2=function(J){return{value:J,done:!1}};
yP.prototype.__iterator__=function(){return this};
_.rLa=function(J){if(J instanceof yP)return J;if(typeof J.__iterator__=="function")return J.__iterator__(!1);if(_.yJ(J)){var c=0,m=new yP;m.next=function(){for(;;){if(c>=J.length)return Bs;if(c in J)return g2(J[c++]);c++}};
return m}throw Error("Kc");};var srZ=function(J){if(J instanceof JW||J instanceof cE||J instanceof mc)return J;if(typeof J.next=="function")return new JW(function(){return J});
if(typeof J[Symbol.iterator]=="function")return new JW(function(){return J[Symbol.iterator]()});
if(typeof J.__iterator__=="function")return new JW(function(){return J.__iterator__()});
throw Error("Lc");},JW=function(J){this.func_=J};
JW.prototype.__iterator__=function(){return new cE(this.func_())};
JW.prototype[Symbol.iterator]=function(){return new mc(this.func_())};
JW.prototype.toEs6=function(){return new mc(this.func_())};
var cE=function(J){this.JSC$8530_iter_=J};
_.D(cE,yP);cE.prototype.next=function(){return this.JSC$8530_iter_.next()};
cE.prototype[Symbol.iterator]=function(){return new mc(this.JSC$8530_iter_)};
cE.prototype.toEs6=function(){return new mc(this.JSC$8530_iter_)};
var mc=function(J){JW.call(this,function(){return J});
this.JSC$8533_iter_=J};
_.D(mc,JW);mc.prototype.next=function(){return this.JSC$8533_iter_.next()};var LG_=function(){};var b4=function(){};
_.yv(b4,LG_);b4.prototype.getCount=function(){for(var J=0,c=_.M(this),m=c.next();!m.done;m=c.next())J++;return J};
b4.prototype[Symbol.iterator]=function(){return srZ(this.__iterator__(!0)).toEs6()};
b4.prototype.clear=function(){var J=Array.from(this);J=_.M(J);for(var c=J.next();!c.done;c=J.next())this.remove(c.value)};_.yv(Lg,b4);_.V=Lg.prototype;_.V.isAvailable=function(){if(this.cachedIsStorageAvailable_===null){var J=this.storage_;if(J)try{J.setItem("__sak","1");J.removeItem("__sak");var c=!0}catch(m){c=m instanceof DOMException&&(m.name==="QuotaExceededError"||m.code===22||m.code===1014||m.name==="NS_ERROR_DOM_QUOTA_REACHED")&&J&&J.length!==0}else c=!1;this.cachedIsStorageAvailable_=c}return this.cachedIsStorageAvailable_};
_.V.set=function(J,c){x_(this);try{this.storage_.setItem(J,c)}catch(m){if(this.storage_.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
_.V.get=function(J){x_(this);J=this.storage_.getItem(J);if(typeof J!=="string"&&J!==null)throw"Storage mechanism: Invalid value was encountered";return J};
_.V.remove=function(J){x_(this);this.storage_.removeItem(J)};
_.V.getCount=function(){x_(this);return this.storage_.length};
_.V.__iterator__=function(J){x_(this);var c=0,m=this.storage_,b=new yP;b.next=function(){if(c>=m.length)return Bs;var x=m.key(c++);if(J)return g2(x);x=m.getItem(x);if(typeof x!=="string")throw"Storage mechanism: Invalid value was encountered";return g2(x)};
return b};
_.V.clear=function(){x_(this);this.storage_.clear()};
_.V.key=function(J){x_(this);return this.storage_.key(J)};
var x_=function(J){if(J.storage_==null)throw Error("Mc");J.isAvailable()||bQ(Error("Mc"))};_.yv(n3t,Lg);_.yv(TKm,Lg);_.yv(D4,b4);D4.prototype.set=function(J,c){this.mechanism_.set(this.JSC$8548_prefix_+J,c)};
D4.prototype.get=function(J){return this.mechanism_.get(this.JSC$8548_prefix_+J)};
D4.prototype.remove=function(J){this.mechanism_.remove(this.JSC$8548_prefix_+J)};
D4.prototype.__iterator__=function(J){var c=this.mechanism_[Symbol.iterator](),m=this,b=new yP;b.next=function(){var x=c.next();if(x.done)return x;for(x=x.value;x.slice(0,m.JSC$8548_prefix_.length)!=m.JSC$8548_prefix_;){x=c.next();if(x.done)return x;x=x.value}return g2(J?x.slice(m.JSC$8548_prefix_.length):m.mechanism_.get(x))};
return b};_.Un=function(J){this.expiringStorage_=(J=_.wS2(J))?new sO(J):null;this.JSC$8552_domain_=document.domain||window.location.hostname};
_.Un.prototype.set=function(J,c,m,b){m=m||31104E3;this.remove(J);if(this.expiringStorage_)try{this.expiringStorage_.set(J,c,Date.now()+m*1E3);return}catch(P){}var x="";if(b)try{x=escape((0,_.TE)(c))}catch(P){return}else x=escape(c);_.kK(J,x,m,this.JSC$8552_domain_)};
_.Un.prototype.get=function(J,c){var m=void 0,b=!this.expiringStorage_;if(!b)try{m=this.expiringStorage_.get(J)}catch(x){b=!0}if(b&&(m=_.ar.get(J,void 0))&&(m=unescape(m),c))try{m=JSON.parse(m)}catch(x){this.remove(J),m=void 0}return m};
_.Un.prototype.remove=function(J){this.expiringStorage_&&this.expiringStorage_.remove(J);_.IPt(J,"/",this.JSC$8552_domain_)};
_.Un.prototype.getCreationTime=function(J){return this.expiringStorage_&&(J=(this.expiringStorage_.getWrapper(J)||{}).creation,typeof J==="number")?J:null};var szo=function(){var J;return function(){J||(J=new _.Un("ytidb"));return J}}();var DaT;_.zo=[];DaT=!1;var RmJ=WyJ||zmT;var Vs={},DU8=(Vs.AUTH_INVALID="No user identifier specified.",Vs.EXPLICIT_ABORT="Transaction was explicitly aborted.",Vs.IDB_NOT_SUPPORTED="IndexedDB is not supported.",Vs.MISSING_INDEX="Index not created.",Vs.MISSING_OBJECT_STORES="Object stores not created.",Vs.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",Vs.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",Vs.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",Vs.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",Vs.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",Vs.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",Vs.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",Vs),PE={},WG8=(PE.AUTH_INVALID="ERROR",PE.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",PE.EXPLICIT_ABORT="IGNORED",
PE.IDB_NOT_SUPPORTED="ERROR",PE.MISSING_INDEX="WARNING",PE.MISSING_OBJECT_STORES="ERROR",PE.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",PE.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",PE.QUOTA_EXCEEDED="WARNING",PE.QUOTA_MAYBE_EXCEEDED="WARNING",PE.UNKNOWN_ABORT="WARNING",PE.INCOMPATIBLE_DB_VERSION="WARNING",PE),Mw={},zk6=(Mw.AUTH_INVALID=!1,Mw.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,Mw.EXPLICIT_ABORT=!1,Mw.IDB_NOT_SUPPORTED=!1,Mw.MISSING_INDEX=!1,Mw.MISSING_OBJECT_STORES=!1,Mw.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,Mw.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,Mw.QUOTA_EXCEEDED=!1,Mw.QUOTA_MAYBE_EXCEEDED=!0,Mw.UNKNOWN_ABORT=!0,Mw.INCOMPATIBLE_DB_VERSION=!1,Mw),qU=function(J,c,m,b,x){c=c===void 0?{}:c;m=m===void 0?DU8[J]:m;b=b===void 0?WG8[J]:b;x=x===void 0?zk6[J]:x;_.w3.call(this,m,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:J},c));this.type=J;this.message=m;this.level=b;this.retryable=x;Object.setPrototypeOf(this,qU.prototype)};
_.D(qU,_.w3);var ub8=function(J,c){qU.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:c,foundObjectStores:J},DU8.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,ub8.prototype)};
_.D(ub8,qU);var fPu=function(J,c){var m=Error.call(this);this.message=m.message;"stack"in m&&(this.stack=m.stack);this.index=J;this.objectStore=c;Object.setPrototypeOf(this,fPu.prototype)};
_.D(fPu,Error);var YHf=["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 d3=function(J){this.executor=J},hL=function(J){var c=this;
this.state={status:"PENDING"};this.JSC$8580_onFulfilled=[];this.JSC$8580_onRejected=[];J=J.executor;var m=function(x){if(c.state.status==="PENDING"){c.state={status:"FULFILLED",value:x};x=_.M(c.JSC$8580_onFulfilled);for(var P=x.next();!P.done;P=x.next())P=P.value,P()}},b=function(x){if(c.state.status==="PENDING"){c.state={status:"REJECTED",
reason:x};x=_.M(c.JSC$8580_onRejected);for(var P=x.next();!P.done;P=x.next())P=P.value,P()}};
try{J(m,b)}catch(x){b(x)}};
hL.all=function(J){return new hL(new d3(function(c,m){var b=[],x=J.length;x===0&&c(b);for(var P={i$jscomp$461:0};P.i$jscomp$461<J.length;P={i$jscomp$461:P.i$jscomp$461},++P.i$jscomp$461)hL.resolve(J[P.i$jscomp$461]).then(function(p){return function(t){b[p.i$jscomp$461]=t;x--;x===0&&c(b)}}(P)).catch(function(p){m(p)})}))};
hL.resolve=function(J){return new hL(new d3(function(c,m){J instanceof hL?J.then(c,m):c(J)}))};
hL.reject=function(J){return new hL(new d3(function(c,m){m(J)}))};
hL.prototype.then=function(J,c){var m=this,b=J!=null?J:qH3,x=c!=null?c:Zlq;return new hL(new d3(function(P,p){m.state.status==="PENDING"?(m.JSC$8580_onFulfilled.push(function(){f4Z(m,m,b,P,p)}),m.JSC$8580_onRejected.push(function(){YOC(m,m,x,P,p)})):m.state.status==="FULFILLED"?f4Z(m,m,b,P,p):m.state.status==="REJECTED"&&YOC(m,m,x,P,p)}))};
hL.prototype.catch=function(J){return this.then(void 0,J)};
var f4Z=function(J,c,m,b,x){try{if(J.state.status!=="FULFILLED")throw Error("Pc");var P=m(J.state.value);P instanceof hL?X7j(J,c,P,b,x):b(P)}catch(p){x(p)}},YOC=function(J,c,m,b,x){try{if(J.state.status!=="REJECTED")throw Error("Qc");
var P=m(J.state.reason);P instanceof hL?X7j(J,c,P,b,x):b(P)}catch(p){x(p)}},X7j=function(J,c,m,b,x){c===m?x(new TypeError("Rc")):m.then(function(P){P instanceof hL?X7j(J,c,P,b,x):b(P)},function(P){x(P)})};var p_;p_=window;_.y4=p_.ytcsi&&p_.ytcsi.now?p_.ytcsi.now:p_.performance&&p_.performance.timing&&p_.performance.now&&p_.performance.timing.navigationStart?function(){return p_.performance.timing.navigationStart+p_.performance.now()}:function(){return(new Date).getTime()};var Go=function(J,c){this.JSC$8592_wrapped=J;this.options=c;this.transactionCount=0;this.startedMs=Math.round((0,_.y4)());this.hasUnknownAbortedTransaction=!1},UUz,SOZ,Ib,$U_;
Go.prototype.add=function(J,c,m){return _.AL(this,[J],{mode:"readwrite",enableRetries:!0},function(b){return b.objectStore(J).add(c,m)})};
Go.prototype.clear=function(J){return _.AL(this,[J],{mode:"readwrite",enableRetries:!0},function(c){return c.objectStore(J).clear()})};
Go.prototype.close=function(){this.JSC$8592_wrapped.close();var J;((J=this.options)==null?0:J.closed)&&this.options.closed()};
Go.prototype.count=function(J,c){return _.AL(this,[J],{mode:"readonly",enableRetries:!0},function(m){return m.objectStore(J).count(c)})};
var hU=function(J,c,m){J=J.JSC$8592_wrapped.createObjectStore(c,m);return new Nw(J)};
Go.prototype.delete=function(J,c){return _.AL(this,[J],{mode:"readwrite",enableRetries:!0},function(m){return m.objectStore(J).delete(c)})};
var Zg_=function(J,c){return _.AL(J,["ResponseStore"],{mode:"readwrite",enableRetries:!0},function(m){return m.objectStore("ResponseStore").index("byInterface").delete(c)})};
Go.prototype.get=function(J,c){return _.AL(this,[J],{mode:"readonly",enableRetries:!0},function(m){return m.objectStore(J).get(c)})};
Go.prototype.getAll=function(J,c,m){return _.AL(this,[J],{mode:"readonly",enableRetries:!0},function(b){return b.objectStore(J).getAll(c,m)})};
Go.prototype.put=function(J,c,m){return _.AL(this,[J],{mode:"readwrite",enableRetries:!0},function(b){return b.objectStore(J).put(c,m)})};
Go.prototype.objectStoreNames=function(){return Array.from(this.JSC$8592_wrapped.objectStoreNames)};
_.AL=function(J,c,m,b){var x,P,p,t,I,a,k,H,T,r,W,Y;return _.N(function(Z){switch(Z.nextAddress){case 1:var d={mode:"readonly",enableRetries:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof m==="string"?d.mode=m:Object.assign(d,m);x=d;J.transactionCount++;P=x.enableRetries?3:1;p=0;case 2:if(t){Z.jumpTo(4);break}p++;I=Math.round((0,_.y4)());_.xL(Z,5);a=J.JSC$8592_wrapped.transaction(c,x.mode);d=new daG(a);d=qOu(d,b);return _.K(Z,d,7);case 7:return k=Z.yieldResult,H=Math.round((0,_.y4)()),UUz(J,I,H,p,void 0,
c.join(),x),Z.return(k);case 5:T=_.NM(Z);r=Math.round((0,_.y4)());W=XSe(T,J.JSC$8592_wrapped.name,c.join(),J.JSC$8592_wrapped.version);if((Y=W instanceof qU&&!W.retryable)||p>=P)UUz(J,I,r,p,W,c.join(),x),t=W;Z.jumpTo(2);break;case 4:return Z.return(Promise.reject(t))}})};
UUz=function(J,c,m,b,x,P,p){c=m-c;x?(x instanceof qU&&(x.type==="QUOTA_EXCEEDED"||x.type==="QUOTA_MAYBE_EXCEEDED")&&fg("QUOTA_EXCEEDED",{dbName:Xb(J.JSC$8592_wrapped.name),objectStoreNames:P,transactionCount:J.transactionCount,transactionMode:p.mode}),x instanceof qU&&x.type==="UNKNOWN_ABORT"&&(m-=J.startedMs,m<0&&m>=2147483648&&(m=0),fg("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:P,transactionDuration:c,transactionCount:J.transactionCount,dbDuration:m}),J.hasUnknownAbortedTransaction=!0),
SOZ(J,!1,b,P,c,p.tag),_.uj(x)):SOZ(J,!0,b,P,c,p.tag)};
SOZ=function(J,c,m,b,x,P){fg("TRANSACTION_ENDED",{objectStoreNames:b,connectionHasUnknownAbortedTransaction:J.hasUnknownAbortedTransaction,duration:x,isSuccessful:c,tryCount:m,tag:P===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":P})};
Go.prototype.getVersion=function(){return this.JSC$8592_wrapped.version};
Go.prototype.getName=function(){return this.JSC$8592_wrapped.name};
var Nw=function(J){this.JSC$8607_wrapped=J};
Nw.prototype.add=function(J,c){return $K(this.JSC$8607_wrapped.add(J,c))};
Nw.prototype.autoIncrement=function(){return this.JSC$8607_wrapped.autoIncrement};
Nw.prototype.clear=function(){return $K(this.JSC$8607_wrapped.clear()).then(function(){})};
var $$=function(J,c,m){J.JSC$8607_wrapped.createIndex(c,m,{unique:!1})};
Nw.prototype.count=function(J){return $K(this.JSC$8607_wrapped.count(J))};
var hkZ=function(J,c){return or(J,{query:c},function(m){return m.delete().then(function(){return m.continue()})}).then(function(){})};
Nw.prototype.delete=function(J){return J instanceof IDBKeyRange?hkZ(this,J):$K(this.JSC$8607_wrapped.delete(J))};
Nw.prototype.get=function(J){return $K(this.JSC$8607_wrapped.get(J))};
Nw.prototype.getAll=function(J,c){return"getAll"in IDBObjectStore.prototype?$K(this.JSC$8607_wrapped.getAll(J,c)):dUL(this,J,c)};
var dUL=function(J,c,m){var b=[];return or(J,{query:c},function(x){if(!(m!==void 0&&b.length>=m))return b.push(x.getValue()),x.continue()}).then(function(){return b})};
Nw.prototype.index=function(J){try{return new tW(this.JSC$8607_wrapped.index(J))}catch(c){if(c instanceof Error&&c.name==="NotFoundError")throw new fPu(J,this.JSC$8607_wrapped.name);throw c;}};
Nw.prototype.getName=function(){return this.JSC$8607_wrapped.name};
Nw.prototype.keyPath=function(){return this.JSC$8607_wrapped.keyPath};
Nw.prototype.put=function(J,c){return $K(this.JSC$8607_wrapped.put(J,c))};
var or=function(J,c,m){J=J.JSC$8607_wrapped.openCursor(c.query,c.direction);return $U_(J).then(function(b){return hmo(b,m)})},daG=function(J){var c=this;
this.JSC$8615_wrapped=J;this.objectStoreCache=new Map;this.JSC$8615_aborted=!1;this.done=new Promise(function(m,b){c.JSC$8615_wrapped.addEventListener("complete",function(){m()});
c.JSC$8615_wrapped.addEventListener("error",function(x){x.currentTarget===x.target&&b(c.JSC$8615_wrapped.error)});
c.JSC$8615_wrapped.addEventListener("abort",function(){var x=c.JSC$8615_wrapped.error;if(x)b(x);else if(!c.JSC$8615_aborted){x=qU;for(var P=c.JSC$8615_wrapped.objectStoreNames,p=[],t=0;t<P.length;t++){var I=P.item(t);if(I===null)throw Error("Sc");p.push(I)}x=new x("UNKNOWN_ABORT",{objectStoreNames:p.join(),dbName:c.JSC$8615_wrapped.db.name,mode:c.JSC$8615_wrapped.mode});b(x)}})})},qOu=function(J,c){var m=new Promise(function(b,x){try{c(J).then(function(P){b(P)}).catch(x)}catch(P){x(P),J.abort()}});
return Promise.all([m,J.done]).then(function(b){return _.M(b).next().value})};
daG.prototype.abort=function(){this.JSC$8615_wrapped.abort();this.JSC$8615_aborted=!0;throw new qU("EXPLICIT_ABORT");};
daG.prototype.objectStore=function(J){J=this.JSC$8615_wrapped.objectStore(J);var c=this.objectStoreCache.get(J);c||(c=new Nw(J),this.objectStoreCache.set(J,c));return c};
var tW=function(J){this.JSC$8617_wrapped=J};
tW.prototype.count=function(J){return $K(this.JSC$8617_wrapped.count(J))};
tW.prototype.delete=function(J){return _.B7(this,{query:J},function(c){return c.delete().then(function(){return c.continue()})})};
tW.prototype.get=function(J){return $K(this.JSC$8617_wrapped.get(J))};
tW.prototype.getAll=function(J,c){return"getAll"in IDBIndex.prototype?$K(this.JSC$8617_wrapped.getAll(J,c)):Go_(this,J,c)};
var Go_=function(J,c,m){var b=[];return _.B7(J,{query:c},function(x){if(!(m!==void 0&&b.length>=m))return b.push(x.getValue()),x.continue()}).then(function(){return b})};
tW.prototype.keyPath=function(){return this.JSC$8617_wrapped.keyPath};
tW.prototype.unique=function(){return this.JSC$8617_wrapped.unique};
_.B7=function(J,c,m){J=J.JSC$8617_wrapped.openCursor(c.query===void 0?null:c.query,c.direction===void 0?"next":c.direction);return $U_(J).then(function(b){return hmo(b,m)})};
Ib=function(J,c){this.request=J;this.cursor=c};
$U_=function(J){return $K(J).then(function(c){return c?new Ib(J,c):null})};
Ib.prototype.continue=function(J){this.cursor.continue(J);return $U_(this.request)};
Ib.prototype.delete=function(){return $K(this.cursor.delete()).then(function(){})};
Ib.prototype.getValue=function(){return this.cursor.value};
Ib.prototype.update=function(J){return $K(this.cursor.update(J))};var K_=function(J,c){this.name=J;this.options=c;this.isCompatible=!0;this.timesReopenedToFixMissingObjectStore=this.timesDeletedToFixMissingObjectStore=0},EK2;
K_.prototype.openDb=function(J,c,m){m=m===void 0?{}:m;return Gv2(J,c,m)};
K_.prototype.delete=function(J){J=J===void 0?{}:J;return _.v7(this.name,J)};
EK2=function(J,c){return new qU("INCOMPATIBLE_DB_VERSION",{dbName:J.name,oldVersion:J.options.version,newVersion:c})};
_.OO=function(J,c){if(!c)throw SD("openWithToken",Xb(J.name));return J.open()};
K_.prototype.open=function(){var J=this;if(!this.isCompatible)throw EK2(this);if(this.connectionPromise)return this.connectionPromise;var c,m=function(){J.connectionPromise===c&&(J.connectionPromise=void 0)},b={blocking:function(P){P.close()},
closed:m,terminated:m,upgrade:this.options.upgrade},x=function(){var P,p,t,I,a,k,H,T,r,W;return _.N(function(Y){switch(Y.nextAddress){case 1:return p=(P=Error().stack)!=null?P:"",_.xL(Y,2),_.K(Y,J.openDb(J.name,J.options.version,b),4);case 4:for(var Z=t=Y.yieldResult,d=J.options,G=[],e=_.M(Object.keys(d.objectStores)),A=e.next();!A.done;A=e.next()){A=A.value;var l=d.objectStores[A],y=l.removedAtVersion===void 0?Number.MAX_VALUE:l.removedAtVersion;!(Z.JSC$8592_wrapped.version>=l.addedAtVersion)||Z.JSC$8592_wrapped.version>=
y||Z.JSC$8592_wrapped.objectStoreNames.contains(A)||G.push(A)}I=G;if(I.length===0){Y.jumpTo(5);break}a=Object.keys(J.options.objectStores);k=t.objectStoreNames();if(J.timesReopenedToFixMissingObjectStore<_.c7("ytidb_reopen_db_retries",0))return J.timesReopenedToFixMissingObjectStore++,t.close(),_.uj(new qU("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:J.name,expectedObjectStores:a,foundObjectStores:k})),Y.return(x());if(!(J.timesDeletedToFixMissingObjectStore<_.c7("ytidb_remake_db_retries",1))){Y.jumpTo(6);
break}J.timesDeletedToFixMissingObjectStore++;return _.K(Y,J.delete(),7);case 7:return _.uj(new qU("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:J.name,expectedObjectStores:a,foundObjectStores:k})),Y.return(x());case 6:throw new ub8(k,a);case 5:return Y.return(t);case 2:H=_.NM(Y);if(H instanceof DOMException?H.name!=="VersionError":"DOMError"in self&&H instanceof DOMError?H.name!=="VersionError":!(H instanceof Object&&"message"in H)||H.message!=="An attempt was made to open a database using a lower version than the existing version."){Y.jumpTo(8);
break}return _.K(Y,J.openDb(J.name,void 0,Object.assign({},b,{upgrade:void 0})),9);case 9:T=Y.yieldResult;r=T.getVersion();if(J.options.version!==void 0&&r>J.options.version+1)throw T.close(),J.isCompatible=!1,EK2(J,r);return Y.return(T);case 8:throw m(),H instanceof Error&&!_.w("ytidb_async_stack_killswitch")&&(H.stack=H.stack+"\n"+p.substring(p.indexOf("\n")+1)),XSe(H,J.name,"",(W=J.options.version)!=null?W:-1);}})};
return this.connectionPromise=c=x()};var E3G=new K_("YtIdbMeta",{objectStores:{databases:{addedAtVersion:1}},upgrade:function(J,c){c(1)&&hU(J,"databases",{keyPath:"actualName"})}});var emo,o3D=new function(){}(new function(){});new _.xb;var vKz=function(J,c){K_.call(this,J,c);this.options=c;YK(J)};
_.D(vKz,K_);var bXG=function(J,c){var m;return function(){m||(m=new vKz(J,c));return m}};
vKz.prototype.openDb=function(J,c,m){m=m===void 0?{}:m;return(this.options.shared?BKR:y0e)(J,c,Object.assign({},m))};
vKz.prototype.delete=function(J){J=J===void 0?{}:J;return(this.options.shared?mLt:g32)(this.name,J)};var OgZ={},xLG=lj("ytGcfConfig",{objectStores:(OgZ.coldConfigStore={addedAtVersion:1},OgZ.hotConfigStore={addedAtVersion:1},OgZ),shared:!1,upgrade:function(J,c){c(1)&&($$(hU(J,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),$$(hU(J,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});var AL2=function(){_.DS.call(this);this.localHotConfigJobQueue=[];this.sharedHotConfigJobQueue=[];var J=_.$y("yt.gcf.config.hotUpdateCallbacks");J?(this.localHotConfigJobQueue=[].concat(_.L6(J)),this.sharedHotConfigJobQueue=J):(this.sharedHotConfigJobQueue=[],_.jD("yt.gcf.config.hotUpdateCallbacks",this.sharedHotConfigJobQueue))};
_.D(AL2,_.DS);AL2.prototype.disposeInternal=function(){for(var J=_.M(this.localHotConfigJobQueue),c=J.next();!c.done;c=J.next()){var m=this.sharedHotConfigJobQueue;c=m.indexOf(c.value);c>=0&&m.splice(c,1)}this.localHotConfigJobQueue.length=0;_.DS.prototype.disposeInternal.call(this)};var se=function(){var J=this;this.isConfigDbInitialized=!1;this.debounceTimer=this.initJob=0;this.configUpdateService=new AL2;this.TEST_ONLY={initializeConfigDb:function(){J.isConfigDbInitialized=!0},
getColdConfigGroup:function(){return J.coldGlobalConfigGroup},
setHotConfigGroup:function(c){RkB(J,c)},
setHotHashData:function(c){J.setHotHashData(c)},
setColdConfigGroup:function(c){oKu(J,c)},
getColdHashData:function(){return J.coldHashData},
getHotHashData:function(){return J.hotHashData},
getHotConfigGroup:function(){return J.hotGlobalConfigGroup},
getExportedColdConfigGroup:function(){return Qr$()},
getExportedHotConfigGroup:function(){return C_()},
getExportedColdHashData:function(){return _.$y("yt.gcf.config.coldHashData")},
getExportedHotHashData:function(){return _.$y("yt.gcf.config.hotHashData")},
triggerScheduleConfigs:function(){ekQ(J)},
resetInstance:function(){J.setHotHashData(void 0);jrZ(J);delete se.instance},
setDebounceTimer:function(c){J.debounceTimer=c},
getDebounceTimer:function(){return J.debounceTimer}}},FGC=function(){if(!se.instance){var J=new se;
se.instance=J}return se.instance},B3C=function(J){var c;
_.N(function(m){if(m.nextAddress==1)return _.w("start_client_gcf")||_.w("delete_gcf_config_db")?_.w("start_client_gcf")?_.K(m,_.Fb(),3):m.jumpTo(2):m.return();m.nextAddress!=2&&((c=m.yieldResult)&&_.To()&&!_.w("delete_gcf_config_db")?(J.isConfigDbInitialized=!0,ekQ(J)):(l4Q(J),yL_(J)));return _.w("delete_gcf_config_db")?_.K(m,tHe(),0):m.jumpTo(0)})},IGm=function(){var J;
return(J=C_())!=null?J:_.Ub("RAW_HOT_CONFIG_GROUP")},gKQ=function(J){var c,m,b,x,P,p;
return _.N(function(t){switch(t.nextAddress){case 1:if(J.hotGlobalConfigGroup)return t.return(C_());if(!J.isConfigDbInitialized)return c=SD("getHotConfig IDB not initialized"),_.Ge(c),t.return(Promise.reject(c));m=eD();b=_.Ub("TIME_CREATED_MS");if(!m){x=SD("getHotConfig token error");_.Ge(x);t.jumpTo(2);break}return _.K(t,NM2(m),3);case 3:if((P=t.yieldResult)&&P.timestamp>b)return RkB(J,P.config),J.setHotHashData(P.hashData),t.return(C_());case 2:yL_(J);if(!(m&&J.hotGlobalConfigGroup&&J.hotHashData)){t.jumpTo(4);
break}return _.K(t,PJu(J.hotGlobalConfigGroup,J.hotHashData,m,b),4);case 4:return J.hotGlobalConfigGroup?t.return(C_()):(p=new _.w3("Config not available in ytConfig"),_.Ge(p),t.return(Promise.reject(p)))}})},cUz=function(J){var c,m,b,x,P,p;
return _.N(function(t){switch(t.nextAddress){case 1:if(J.coldGlobalConfigGroup)return t.return(Qr$());if(!J.isConfigDbInitialized)return c=SD("getColdConfig IDB not initialized"),_.Ge(c),t.return(Promise.reject(c));m=eD();b=_.Ub("TIME_CREATED_MS");if(!m){x=SD("getColdConfig");_.Ge(x);t.jumpTo(2);break}return _.K(t,pAG(m),3);case 3:if((P=t.yieldResult)&&P.timestamp>b)return oKu(J,P.config),JU_(J,P.configData),jrZ(J,P.hashData),t.return(Qr$());case 2:l4Q(J);if(!(m&&J.coldGlobalConfigGroup&&J.coldHashData&&
J.configData)){t.jumpTo(4);break}return _.K(t,MHr(J.coldGlobalConfigGroup,J.coldHashData,J.configData,m,b),4);case 4:return J.coldGlobalConfigGroup?t.return(Qr$()):(p=new _.w3("Config not available in ytConfig"),_.Ge(p),t.return(Promise.reject(p)))}})},ekQ=function(J){if(!J.hotGlobalConfigGroup||!J.coldGlobalConfigGroup){if(!eD()){var c=SD("scheduleGetConfigs");
_.Ge(c)}J.initJob||(J.initJob=_.ft.addLowPriorityJob(function(){return _.N(function(m){switch(m.nextAddress){case 1:return _.xL(m,2),_.K(m,gKQ(J),4);case 4:_.EO(m,3);break;case 2:_.NM(m);case 3:return _.xL(m,5),_.K(m,cUz(J),7);case 7:_.EO(m,6);break;case 5:_.NM(m);case 6:J.initJob&&(J.initJob=0),_.tD(m)}})},100))}},Pvu=function(J,c,m){var b,x,P;
return _.N(function(p){switch(p.nextAddress){case 1:if(!_.w("start_client_gcf")){p.jumpTo(0);break}m&&RkB(J,m);J.setHotHashData(c);b=eD();if(!b){p.jumpTo(3);break}if(m){p.jumpTo(4);break}return _.K(p,NM2(b),5);case 5:x=p.yieldResult,m=(P=x)==null?void 0:P.config;case 4:return _.K(p,PJu(m,c,b),3);case 3:if(m)for(var t=m,I=_.M(J.configUpdateService.sharedHotConfigJobQueue),a=I.next();!a.done;a=I.next())a=a.value,a(t);_.tD(p)}})},MMT=function(J,c,m){var b,x,P,p;
return _.N(function(t){if(t.nextAddress==1){if(!_.w("start_client_gcf"))return t.jumpTo(0);jrZ(J,c);return(b=eD())?m?t.jumpTo(4):_.K(t,pAG(b),5):t.jumpTo(0)}t.nextAddress!=4&&(x=t.yieldResult,m=(P=x)==null?void 0:P.config);if(!m)return t.jumpTo(0);p=m.configData;return _.K(t,MHr(m,c,p,b),0)})},fut=function(){var J=FGC(),c=(0,_.y4)()-J.debounceTimer;
if(!(J.debounceTimer!==0&&c<_.c7("send_config_hash_timer"))){c=_.$y("yt.gcf.config.coldConfigData");var m=_.$y("yt.gcf.config.hotHashData"),b=_.$y("yt.gcf.config.coldHashData");c&&m&&b&&(J.debounceTimer=(0,_.y4)());return{coldConfigData:c,hotHashData:m,coldHashData:b}}},l4Q=function(J){oKu(J,_.Ub("RAW_COLD_CONFIG_GROUP"));
jrZ(J,_.Ub("SERIALIZED_COLD_HASH_DATA"));var c;JU_(J,(c=J.coldGlobalConfigGroup)==null?void 0:c.configData)},yL_=function(J){RkB(J,_.Ub("RAW_HOT_CONFIG_GROUP"));
J.setHotHashData(_.Ub("SERIALIZED_HOT_HASH_DATA"))},RkB=function(J,c){J.hotGlobalConfigGroup=c;
_.jD("yt.gcf.config.hotConfigGroup",J.hotGlobalConfigGroup||null)},oKu=function(J,c){J.coldGlobalConfigGroup=c;
_.jD("yt.gcf.config.coldConfigGroup",J.coldGlobalConfigGroup||null)};
se.prototype.setHotHashData=function(J){this.hotHashData=J;_.jD("yt.gcf.config.hotHashData",this.hotHashData||null)};
var jrZ=function(J,c){J.coldHashData=c;_.jD("yt.gcf.config.coldHashData",J.coldHashData||null)},JU_=function(J,c){J.configData=c;
_.jD("yt.gcf.config.coldConfigData",J.configData||null)},C_=function(){return _.$y("yt.gcf.config.hotConfigGroup")},Qr$=function(){return _.$y("yt.gcf.config.coldConfigGroup")};var pt={},mXz=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";pt.assign=function(J){for(var c=Array.prototype.slice.call(arguments,1);c.length;){var m=c.shift();if(m){if(typeof m!=="object")throw new TypeError("Vc`"+m);for(var b in m)Object.prototype.hasOwnProperty.call(m,b)&&(J[b]=m[b])}}return J};
pt.shrinkBuf=function(J,c){if(J.length===c)return J;if(J.subarray)return J.subarray(0,c);J.length=c;return J};
var btj={arraySet:function(J,c,m,b,x){if(c.subarray&&J.subarray)J.set(c.subarray(m,m+b),x);else for(var P=0;P<b;P++)J[x+P]=c[m+P]},
flattenChunks:function(J){var c,m;var b=m=0;for(c=J.length;b<c;b++)m+=J[b].length;var x=new Uint8Array(m);b=m=0;for(c=J.length;b<c;b++){var P=J[b];x.set(P,m);m+=P.length}return x}},xX2={arraySet:function(J,c,m,b,x){for(var P=0;P<b;P++)J[x+P]=c[m+P]},
flattenChunks:function(J){return[].concat.apply([],J)}};
pt.setTyped=function(){mXz?(pt.Buf8=Uint8Array,pt.Buf16=Uint16Array,pt.Buf32=Int32Array,pt.assign(pt,btj)):(pt.Buf8=Array,pt.Buf16=Array,pt.Buf32=Array,pt.assign(pt,xX2))};
pt.setTyped();var Vf8=!0;try{new Uint8Array(1)}catch(J){Vf8=!1}
var Nfq=function(J){var c,m,b=J.length,x=0;for(c=0;c<b;c++){var P=J.charCodeAt(c);if((P&64512)===55296&&c+1<b){var p=J.charCodeAt(c+1);(p&64512)===56320&&(P=65536+(P-55296<<10)+(p-56320),c++)}x+=P<128?1:P<2048?2:P<65536?3:4}var t=new pt.Buf8(x);for(c=m=0;m<x;c++)P=J.charCodeAt(c),(P&64512)===55296&&c+1<b&&(p=J.charCodeAt(c+1),(p&64512)===56320&&(P=65536+(P-55296<<10)+(p-56320),c++)),P<128?t[m++]=P:(P<2048?t[m++]=192|P>>>6:(P<65536?t[m++]=224|P>>>12:(t[m++]=240|P>>>18,t[m++]=128|P>>>12&63),t[m++]=
128|P>>>6&63),t[m++]=128|P&63);return t};var lu3={};lu3=function(J,c,m,b){var x=J&65535|0;J=J>>>16&65535|0;for(var P;m!==0;){P=m>2E3?2E3:m;m-=P;do x=x+c[b++]|0,J=J+x|0;while(--P);x%=65521;J%=65521}return x|J<<16|0};for(var Lt={},ab,POQ=[],Mfu=0;Mfu<256;Mfu++){ab=Mfu;for(var p48=0;p48<8;p48++)ab=ab&1?3988292384^ab>>>1:ab>>>1;POQ[Mfu]=ab}Lt=function(J,c,m,b){m=b+m;for(J^=-1;b<m;b++)J=J>>>8^POQ[(J^c[b])&255];return J^-1};var a6={};a6={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 GmJ=[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],v2R=[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],p2J=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],jnT=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],nt=Array(576);x$(nt);var T7=Array(60);x$(T7);var I6=Array(512);x$(I6);var NX=Array(256);x$(NX);var E22=Array(29);x$(E22);var OXt=Array(30);x$(OXt);var Vkm,PW3,Mku,xyR=!1;var uO;
uO=[new z7(0,0,0,0,function(J,c){var m=65535;for(m>J.pending_buf_size-5&&(m=J.pending_buf_size-5);;){if(J.lookahead<=1){DC(J);if(J.lookahead===0&&c===0)return 1;if(J.lookahead===0)break}J.strstart+=J.lookahead;J.lookahead=0;var b=J.block_start+m;if(J.strstart===0||J.strstart>=b)if(J.lookahead=J.strstart-b,J.strstart=b,wo(J,!1),J.strm.avail_out===0)return 1;if(J.strstart-J.block_start>=J.w_size-262&&(wo(J,!1),J.strm.avail_out===0))return 1}J.insert=0;if(c===4)return wo(J,!0),J.strm.avail_out===0?3:
4;J.strstart>J.block_start&&wo(J,!1);return 1}),
new z7(4,4,8,4,ySe),new z7(4,5,16,8,ySe),new z7(4,6,32,32,ySe),new z7(4,4,16,16,W4),new z7(8,16,32,32,W4),new z7(8,16,128,128,W4),new z7(8,32,128,256,W4),new z7(32,128,258,1024,W4),new z7(32,258,258,4096,W4)];var bkq={};bkq=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 tk3=Object.prototype.toString;
myu.prototype.push=function(J,c){var m=this.strm,b=this.options.chunkSize;if(this.ended)return!1;var x=c===~~c?c:c===!0?4:0;typeof J==="string"?m.input=Nfq(J):tk3.call(J)==="[object ArrayBuffer]"?m.input=new Uint8Array(J):m.input=J;m.next_in=0;m.avail_in=m.input.length;do{m.avail_out===0&&(m.output=new pt.Buf8(b),m.next_out=0,m.avail_out=b);J=c7T(m,x);if(J!==1&&J!==0)return No2(this,J),this.ended=!0,!1;if(m.avail_out===0||m.avail_in===0&&(x===4||x===2))if(this.options.to==="string"){var P=pt.shrinkBuf(m.output,
m.next_out);c=P;P=P.length;if(P<65537&&(c.subarray&&Vf8||!c.subarray))c=String.fromCharCode.apply(null,pt.shrinkBuf(c,P));else{for(var p="",t=0;t<P;t++)p+=String.fromCharCode(c[t]);c=p}this.chunks.push(c)}else c=pt.shrinkBuf(m.output,m.next_out),this.chunks.push(c)}while((m.avail_in>0||m.avail_out===0)&&J!==1);if(x===4)return(m=this.strm)&&m.state?(b=m.state.status,b!==42&&b!==69&&b!==73&&b!==91&&b!==103&&b!==113&&b!==666?J=k$(m,-2):(m.state=null,J=b===113?k$(m,-3):0)):J=-2,No2(this,J),this.ended=
!0,J===0;x===2&&(No2(this,0),m.avail_out=0);return!0};
var No2=function(J,c){c===0&&(J.result=J.options.to==="string"?J.chunks.join(""):pt.flattenChunks(J.chunks));J.chunks=[];J.err=c;J.msg=J.strm.msg};var tfu=typeof TextEncoder!=="undefined"?new TextEncoder:null,EY3=tfu?function(J){return tfu.encode(J)}:function(J){J=_.s7(J);
for(var c=new Uint8Array(J.length),m=0;m<c.length;m++)c[m]=J[m];return c};var tzG={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},Kce={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};var k_=function(J,c){this.version=J;this.args=c};
k_.prototype.serialize=function(){return{version:this.version,args:this.args}};var k2m=function(J,c){this.topic=J;this.dataClass=c};
k2m.prototype.toString=function(){return this.topic};var IC$=_.$y("ytPubsub2Pubsub2Instance")||new _.Kg;_.Kg.prototype.subscribe=_.Kg.prototype.subscribe;_.Kg.prototype.unsubscribeByKey=_.Kg.prototype.unsubscribeByKey;_.Kg.prototype.publish=_.Kg.prototype.publish;_.Kg.prototype.clear=_.Kg.prototype.clear;_.jD("ytPubsub2Pubsub2Instance",IC$);var aZQ=_.$y("ytPubsub2Pubsub2SubscribedKeys")||{};_.jD("ytPubsub2Pubsub2SubscribedKeys",aZQ);var ikr=_.$y("ytPubsub2Pubsub2TopicToKeys")||{};_.jD("ytPubsub2Pubsub2TopicToKeys",ikr);
var HkR=_.$y("ytPubsub2Pubsub2IsAsync")||{};_.jD("ytPubsub2Pubsub2IsAsync",HkR);_.jD("ytPubsub2Pubsub2SkipSubKey",null);var uMr=void 0,WAD=void 0;var hEo=_.c7("max_body_size_to_compress",5E5),dyf=_.c7("min_body_size_to_compress",500),X_=!0,A7Q=0,ZC=0,Ok2=_.c7("compression_performance_threshold_lr",250),REq=_.c7("slow_compressions_before_abandon_count",4),X2T=!1,ZkD=new Map,G23=1,$yo=!0;_.yv(qX,eEf);qX.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 KLB=function(J,c,m){m||(m=0);var b=J.W_;if(typeof c==="string")for(var x=0;x<16;x++)b[x]=c.charCodeAt(m)<<24|c.charCodeAt(m+1)<<16|c.charCodeAt(m+2)<<8|c.charCodeAt(m+3),m+=4;else for(x=0;x<16;x++)b[x]=c[m]<<24|c[m+1]<<16|c[m+2]<<8|c[m+3],m+=4;for(c=16;c<80;c++)m=b[c-3]^b[c-8]^b[c-14]^b[c-16],b[c]=(m<<1|m>>>31)&4294967295;c=J.chain_[0];m=J.chain_[1];x=J.chain_[2];for(var P=J.chain_[3],p=J.chain_[4],t,I,a=0;a<80;a++)a<40?a<20?(t=P^m&(x^P),I=1518500249):(t=m^x^P,I=1859775393):a<60?(t=m&x|P&(m|x),
I=2400959708):(t=m^x^P,I=3395469782),t=(c<<5|c>>>27)+t+p+I+b[a]&4294967295,p=P,P=x,x=(m<<30|m>>>2)&4294967295,m=c,c=t;J.chain_[0]=J.chain_[0]+c&4294967295;J.chain_[1]=J.chain_[1]+m&4294967295;J.chain_[2]=J.chain_[2]+x&4294967295;J.chain_[3]=J.chain_[3]+P&4294967295;J.chain_[4]=J.chain_[4]+p&4294967295};
qX.prototype.update=function(J,c){if(J!=null){c===void 0&&(c=J.length);for(var m=c-this.blockSize,b=0,x=this.buf_,P=this.inbuf_;b<c;){if(P==0)for(;b<=m;)KLB(this,J,b),b+=this.blockSize;if(typeof J==="string")for(;b<c;){if(x[P]=J.charCodeAt(b),++P,++b,P==this.blockSize){KLB(this,x);P=0;break}}else for(;b<c;)if(x[P]=J[b],++P,++b,P==this.blockSize){KLB(this,x);P=0;break}}this.inbuf_=P;this.total_+=c}};
qX.prototype.digest=function(){var J=[],c=this.total_*8;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var m=this.blockSize-1;m>=56;m--)this.buf_[m]=c&255,c/=256;KLB(this,this.buf_);for(m=c=0;m<5;m++)for(var b=24;b>=0;b-=8)J[c]=this.chain_[m]>>b&255,++c;return J};var lZq;var i4=function(J){var c=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(k){c.databaseToken=k},
triggerThrottle:function(){c.throttledSend()},
cancelThrottle:function(){c.cancelThrottledSend()},
immediateSend:function(k){return _.N(function(H){return _.K(H,c.immediateSend(k),0)})},
requestWithinAgeLimit:function(k,H){return c.requestWithinAgeLimit(k,H)},
retryQueuedRequests:function(){c.retryQueuedRequests()}};
var m;this.throttleTimeout=(m=J.throttleTimeout)!=null?m:100;var b;this.retryMaxAttempts=(b=J.retryMaxAttempts)!=null?b:1;var x;this.requestAgeLimitMs=(x=J.requestAgeLimitMs)!=null?x:2592E6;var P;this.queuedRequestAgeLimitMs=(P=J.queuedRequestAgeLimitMs)!=null?P:12E4;var p;this.retryDelayMs=(p=J.retryDelayMs)!=null?p:5E3;var t;this.databaseToken=(t=J.databaseToken)!=null?t:void 0;this.enableCleaning=!!J.enableCleaning;var I;this.cleaningRate=(I=J.cleaningRate)!=null?I:.1;var a;this.potentialEsfErrorLimit=
(a=J.potentialEsfErrorLimit)!=null?a:10;J.handleError&&(this.handleError=J.handleError);J.handleWarning&&(this.handleWarning=J.handleWarning);J.disableYtIdbTransactions&&(this.disableYtIdbTransactions=J.disableYtIdbTransactions);J.bypassDbTokenDependency&&(this.bypassDbTokenDependency=J.bypassDbTokenDependency);this.getBooleanFlag=J.getBooleanFlag;this.jobManager=J.jobManager;this.logsStore=J.logsStore;this.networkManager=J.networkManager;this.sendFn=J.sendFn;this.onlineEvent=J.onlineEvent;this.offlineEvent=
J.offlineEvent;HE(this)&&(!this.getBooleanFlag||this.getBooleanFlag("networkless_logging"))&&COQ(this)},COQ=function(J){HE(J)&&!J.disableYtIdbTransactions&&(J.initialized=!0,J.enableCleaning&&Math.random()<=J.cleaningRate&&J.logsStore.cleanLogsStore(J.databaseToken),J.retryQueuedRequests(),J.networkManager.isNetworkAvailable()&&J.throttledSend(),J.networkManager.listen(J.onlineEvent,J.throttledSend.bind(J)),J.networkManager.listen(J.offlineEvent,J.cancelThrottledSend.bind(J)))};
_.V=i4.prototype;_.V.writeThenSend=function(J,c){var m=this;c=c===void 0?{}:c;if(HE(this)&&this.initialized){var b={url:J,options:c,timestamp:this.now(),status:"NEW",sendCount:0};this.logsStore.set(b,this.databaseToken).then(function(x){b.id=x;m.networkManager.isNetworkAvailable()&&m.immediateSend(b)}).catch(function(x){m.immediateSend(b);
aCQ(m,x)})}else this.sendFn(J,c)};
_.V.sendThenWrite=function(J,c,m){var b=this;c=c===void 0?{}:c;if(HE(this)&&this.initialized){var x={url:J,options:c,timestamp:this.now(),status:"NEW",sendCount:0};this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&(x.skipRetry=m);if(this.networkManager.isNetworkAvailable()||this.getBooleanFlag&&this.getBooleanFlag("nwl_aggressive_send_then_write")&&!x.skipRetry){if(!x.skipRetry){var P=c.onError?c.onError:function(){};
c.onError=function(p,t){return _.N(function(I){if(I.nextAddress==1)return _.K(I,b.logsStore.set(x,b.databaseToken).catch(function(a){aCQ(b,a)}),2);
P(p,t);_.tD(I)})}}this.sendFn(J,c,x.skipRetry)}else this.logsStore.set(x,this.databaseToken).catch(function(p){b.sendFn(J,c,x.skipRetry);
aCQ(b,p)})}else this.sendFn(J,c,this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&m)};
_.V.sendAndWrite=function(J,c){var m=this;c=c===void 0?{}:c;if(HE(this)&&this.initialized){var b={url:J,options:c,timestamp:this.now(),status:"NEW",sendCount:0},x=!1,P=c.onSuccess?c.onSuccess:function(){};
b.options.onSuccess=function(p,t){b.id!==void 0?m.logsStore.deleteRequest(b.id,m.databaseToken):x=!0;m.networkManager.networkStatusHint&&m.getBooleanFlag&&m.getBooleanFlag("vss_network_hint")&&m.networkManager.networkStatusHint(!0);P(p,t)};
this.sendFn(b.url,b.options,void 0,!0);this.logsStore.set(b,this.databaseToken).then(function(p){b.id=p;x&&m.logsStore.deleteRequest(b.id,m.databaseToken)}).catch(function(p){aCQ(m,p)})}else this.sendFn(J,c,void 0,!0)};
_.V.throttledSend=function(){var J=this;if(!HE(this))throw Error("Yc");this.intervalJob||(this.intervalJob=this.jobManager.addLowPriorityJob(function(){var c;return _.N(function(m){if(m.nextAddress==1)return _.K(m,J.logsStore.getMostRecentByStatus("NEW",J.databaseToken),2);if(m.nextAddress!=3)return c=m.yieldResult,c?_.K(m,J.immediateSend(c),3):(J.cancelThrottledSend(),m.return());J.intervalJob&&(J.intervalJob=0,J.throttledSend());_.tD(m)})},this.throttleTimeout))};
_.V.cancelThrottledSend=function(){this.jobManager.cancelJob(this.intervalJob);this.intervalJob=0};
_.V.immediateSend=function(J){var c=this,m;return _.N(function(b){switch(b.nextAddress){case 1:if(!HE(c))throw Error("Zc");if(J.id===void 0){b.jumpTo(2);break}return _.K(b,c.logsStore.markAsQueued(J.id,c.databaseToken),3);case 3:(m=b.yieldResult)||c.handleWarning(Error("$c"));case 2:if(c.requestWithinAgeLimit(J,c.requestAgeLimitMs)){b.jumpTo(4);break}c.handleWarning(Error("ad"));if(J.id===void 0){b.jumpTo(5);break}return _.K(b,c.logsStore.deleteRequest(J.id,c.databaseToken),5);case 5:return b.return();
case 4:J.skipRetry||(J=k7L(c,J));if(!J){b.jumpTo(0);break}if(!J.skipRetry||J.id===void 0){b.jumpTo(8);break}return _.K(b,c.logsStore.deleteRequest(J.id,c.databaseToken),8);case 8:c.sendFn(J.url,J.options,!!J.skipRetry),_.tD(b)}})};
var k7L=function(J,c){if(!HE(J))throw Error("bd");var m=c.options.onError?c.options.onError:function(){};
c.options.onError=function(x,P){var p,t,I,a;return _.N(function(k){switch(k.nextAddress){case 1:p=ccr(P);(t=mrJ(P))&&J.getBooleanFlag&&J.getBooleanFlag("web_enable_error_204")&&J.handleError(Error("cd"),c.url,P);if(!(J.getBooleanFlag&&J.getBooleanFlag("nwl_consider_error_code")&&p||J.getBooleanFlag&&!J.getBooleanFlag("nwl_consider_error_code")&&J.potentialEsfErrorCounter<=J.potentialEsfErrorLimit)){k.jumpTo(2);break}if(!J.networkManager.sendNetworkCheckRequest){k.jumpTo(3);break}return _.K(k,J.networkManager.sendNetworkCheckRequest(),
3);case 3:if(J.networkManager.isNetworkAvailable()){k.jumpTo(2);break}m(x,P);if(!J.getBooleanFlag||!J.getBooleanFlag("nwl_consider_error_code")||((I=c)==null?void 0:I.id)===void 0){k.jumpTo(6);break}return _.K(k,J.logsStore.resetRequest(c.id,J.databaseToken,!1),6);case 6:return k.return();case 2:if(J.getBooleanFlag&&J.getBooleanFlag("nwl_consider_error_code")&&!p&&J.potentialEsfErrorCounter>J.potentialEsfErrorLimit)return k.return();J.potentialEsfErrorCounter++;if(((a=c)==null?void 0:a.id)===void 0){k.jumpTo(8);
break}return c.sendCount<J.retryMaxAttempts?_.K(k,J.logsStore.resetRequest(c.id,J.databaseToken,!0,t?!1:void 0),12):_.K(k,J.logsStore.deleteRequest(c.id,J.databaseToken),8);case 12:J.jobManager.addLowPriorityJob(function(){J.networkManager.isNetworkAvailable()&&J.throttledSend()},J.retryDelayMs);
case 8:m(x,P),_.tD(k)}})};
var b=c.options.onSuccess?c.options.onSuccess:function(){};
c.options.onSuccess=function(x,P){var p;return _.N(function(t){if(t.nextAddress==1)return((p=c)==null?void 0:p.id)===void 0?t.jumpTo(2):_.K(t,J.logsStore.deleteRequest(c.id,J.databaseToken),2);J.networkManager.networkStatusHint&&J.getBooleanFlag&&J.getBooleanFlag("vss_network_hint")&&J.networkManager.networkStatusHint(!0);b(x,P);_.tD(t)})};
return c};
i4.prototype.requestWithinAgeLimit=function(J,c){J=J.timestamp;return this.now()-J>=c?!1:!0};
i4.prototype.retryQueuedRequests=function(){var J=this;if(!HE(this))throw Error("dd");this.logsStore.getMostRecentByStatus("QUEUED",this.databaseToken).then(function(c){c&&!J.requestWithinAgeLimit(c,J.queuedRequestAgeLimitMs)?J.jobManager.addLowPriorityJob(function(){return _.N(function(m){if(m.nextAddress==1)return c.id===void 0?m.jumpTo(2):_.K(m,J.logsStore.resetRequest(c.id,J.databaseToken),2);J.retryQueuedRequests();_.tD(m)})}):J.networkManager.isNetworkAvailable()&&J.throttledSend()})};
var aCQ=function(J,c){J.writeError&&!J.networkManager.isNetworkAvailable()?J.writeError(c):J.handleError(c)},HE=function(J){return!!J.databaseToken||J.bypassDbTokenDependency};var bvJ;var tMe={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135,
mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28,
nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42,
assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225,
liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72,visualElementHidden:73,
visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,spacecastSummaryRequested:88,
spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,vrCopresencePartyStats:153,
vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,buyFlowStarted:136,
mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,buyFlowEvent:167,
kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,transactionFlowPaymentCallBackReceived:387,
transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189,
ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258,
ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,watchTimeSegment:219,appWidthLayoutError:221,
accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,deviceContextEvent:244,templateResolutionException:245,
musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,ytbFileOpened:268,tfliteModelError:269,apiTest:270,
yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,watchRestoreAttempt:294,liteAccountSignIn:296,
notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478,
tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340,
iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361,
mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,browseThumbnailPreloadEvent:379,finalPayload:380,
mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,gelDebuggingEvent:399,webLinkTtsPlayEnd:400,
clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,sfvEffectGlThreadBlockedEvent:420,
mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,offlineTransferStarted:4,musicOfflineMixtapePreferencesChanged:16,
mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440,embedsVideoDataDidChange:441,shortsFirst:443,
cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,getCtvTokenEvent:464,startupDroppedFramesSummary:466,screenshotEvent:468,
miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,unpluggedAmbientInterludesCounterfactualEvent:489,keyPlaysPlayback:490,
shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,embedsAutoplayStatusChanged:512,remoteConnectEvent:513,connectedSessionMisattributionEvent:514,producerProjectElementModified:515,
adsSeenClientLogging:517,producerEvent:518,tvhtml5CleanStart:519,deviceAccountMetricsEvent:520};var Ht6={},Cqe=lj("ServiceWorkerLogsDatabase",{objectStores:(Ht6.SWHealthLog={addedAtVersion:1},Ht6),shared:!0,upgrade:function(J,c){c(1)&&$$(hU(J,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var rct={},wju=0;var WUr;var n_=function(){this.requestMap=new Map;this.anyRequestHasSucceeded=!1},o6=function(){if(!n_.instance){var J=_.$y("yt.networkRequestMonitor.instance")||new n_;
_.jD("yt.networkRequestMonitor.instance",J);n_.instance=J}return n_.instance};
n_.prototype.requestComplete=function(J,c){c&&(this.anyRequestHasSucceeded=!0);J=this.removeParams(J);this.requestMap.get(J)||this.requestMap.set(J,c)};
n_.prototype.isEndpointCFR=function(J){J=this.removeParams(J);return(J=this.requestMap.get(J))?!1:J===!1&&this.anyRequestHasSucceeded?!0:null};
n_.prototype.removeParams=function(J){return J.split("?")[0]};
n_.prototype.removeParams=n_.prototype.removeParams;n_.prototype.isEndpointCFR=n_.prototype.isEndpointCFR;n_.prototype.requestComplete=n_.prototype.requestComplete;n_.getInstance=o6;var Tc=function(J){_.KI.call(this);var c=this;this.pollingJob=this.abortTimeoutKey=0;this.jobManager=J!=null?J:{addLowPriorityJob:function(x,P){return setTimeout(x,P)},
cancelJob:function(x){clearTimeout(x)}};
var m,b;this.isOnline=(b=(m=window.navigator)==null?void 0:m.onLine)!=null?b:!0;this.onNavigatorChange=function(){return _.N(function(x){return _.K(x,itC(c),0)})};
window.addEventListener("offline",this.onNavigatorChange);window.addEventListener("online",this.onNavigatorChange);this.pollingJob||n$_(this)};
_.D(Tc,_.KI);Tc.prototype.dispose=function(){window.removeEventListener("offline",this.onNavigatorChange);window.removeEventListener("online",this.onNavigatorChange);this.jobManager.cancelJob(this.pollingJob);delete Tc.instance};
Tc.prototype.isNetworkAvailable=function(){return this.isOnline};
var n$_=function(J){J.pollingJob=J.jobManager.addLowPriorityJob(function(){var c;return _.N(function(m){if(m.nextAddress==1)return J.isOnline?((c=window.navigator)==null?0:c.onLine)?m.jumpTo(3):_.K(m,itC(J),3):_.K(m,itC(J),3);n$_(J);_.tD(m)})},3E4)},itC=function(J,c){return J.networkRequestPromise?J.networkRequestPromise:J.networkRequestPromise=new Promise(function(m){var b,x,P,p;
return _.N(function(t){switch(t.nextAddress){case 1:return b=window.AbortController?new window.AbortController:void 0,P=(x=b)==null?void 0:x.signal,p=!1,_.xL(t,2,3),b&&(J.abortTimeoutKey=J.jobManager.addLowPriorityJob(function(){b.abort()},c||2E4)),_.K(t,fetch("/generate_204",{method:"HEAD",
signal:P}),5);case 5:p=!0;case 3:_.PR(t);J.networkRequestPromise=void 0;J.abortTimeoutKey&&(J.jobManager.cancelJob(J.abortTimeoutKey),J.abortTimeoutKey=0);p!==J.isOnline&&(J.isOnline=p,J.isOnline?J.dispatchEvent("networkstatus-online"):J.dispatchEvent("networkstatus-offline"));m(p);_.p6(t,0);break;case 2:_.NM(t),p=!1,t.jumpTo(3)}})})};var wD=function(){_.KI.call(this);var J=this;this.shouldFlushErrors=!1;Tc.instance||(Tc.instance=new Tc(_.ft));this.sharedNetworkStatusManager=Tc.instance;this.sharedNetworkStatusManager.listen("networkstatus-online",function(){if(J.shouldFlushErrors&&_.w("offline_error_handling")){var c=zgt().get("errors",!0);if(c){for(var m in c)if(c[m]){var b=new _.w3(m,"sent via offline_errors");b.name=c[m].name;b.stack=c[m].stack;b.level=c[m].level;_.ha(b)}zgt().set("errors",{},2592E3,!0)}}})};
_.D(wD,_.KI);var To8=function(){if(!wD.instance){var J=_.$y("yt.networkStatusManager.instance")||new wD;_.jD("yt.networkStatusManager.instance",J);wD.instance=J}return wD.instance};
_.V=wD.prototype;_.V.isNetworkAvailable=function(){return this.sharedNetworkStatusManager.isNetworkAvailable()};
_.V.networkStatusHint=function(J){this.sharedNetworkStatusManager.isOnline=J};
_.V.getWindowStatus=function(){var J=window.navigator.onLine;return J===void 0?!0:J};
_.V.enableErrorFlushing=function(){this.shouldFlushErrors=!0};
_.V.listen=function(J,c){return this.sharedNetworkStatusManager.listen(J,c)};
_.V.sendNetworkCheckRequest=function(J){J=itC(this.sharedNetworkStatusManager,J);J.then(function(c){_.w("use_cfr_monitor")&&o6().requestComplete("generate_204",c)});
return J};
wD.prototype.sendNetworkCheckRequest=wD.prototype.sendNetworkCheckRequest;wD.prototype.listen=wD.prototype.listen;wD.prototype.enableErrorFlushing=wD.prototype.enableErrorFlushing;wD.prototype.getWindowStatus=wD.prototype.getWindowStatus;wD.prototype.networkStatusHint=wD.prototype.networkStatusHint;wD.prototype.isNetworkAvailable=wD.prototype.isNetworkAvailable;wD.getInstance=To8;_.On=function(J){J=J===void 0?{}:J;_.KI.call(this);var c=this;this.lastJobTime=this.schedulerJob=0;this.nsmInstance=To8();var m=_.$y("yt.networkStatusManager.instance.listen").bind(this.nsmInstance);m&&(J.rateLimit?(this.rateLimit=J.rateLimit,m("networkstatus-online",function(){w4L(c,"publicytnetworkstatus-online")}),m("networkstatus-offline",function(){w4L(c,"publicytnetworkstatus-offline")})):(m("networkstatus-online",function(){c.dispatchEvent("publicytnetworkstatus-online")}),m("networkstatus-offline",
function(){c.dispatchEvent("publicytnetworkstatus-offline")})))};
_.D(_.On,_.KI);_.On.prototype.isNetworkAvailable=function(){var J=_.$y("yt.networkStatusManager.instance.isNetworkAvailable");return J?J.bind(this.nsmInstance)():!0};
_.On.prototype.networkStatusHint=function(J){var c=_.$y("yt.networkStatusManager.instance.networkStatusHint").bind(this.nsmInstance);c&&c(J)};
_.On.prototype.sendNetworkCheckRequest=function(J){var c=this,m;return _.N(function(b){m=_.$y("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(c.nsmInstance);return _.w("skip_network_check_if_cfr")&&o6().isEndpointCFR("generate_204")?b.return(new Promise(function(x){var P;c.networkStatusHint(((P=window.navigator)==null?void 0:P.onLine)||!0);x(c.isNetworkAvailable())})):m?b.return(m(J)):b.return(!0)})};
var w4L=function(J,c){J.rateLimit?J.lastJobTime?(_.ft.cancelJob(J.schedulerJob),J.schedulerJob=_.ft.addLowPriorityJob(function(){J.lastPublicSignalSent!==c&&(J.dispatchEvent(c),J.lastPublicSignalSent=c,J.lastJobTime=(0,_.y4)())},J.rateLimit-((0,_.y4)()-J.lastJobTime))):(J.dispatchEvent(c),J.lastPublicSignalSent=c,J.lastJobTime=(0,_.y4)()):J.dispatchEvent(c)};var Zve,rD=function(){i4.call(this,{logsStore:{cleanLogsStore:InR,deleteRequest:trR,getMostRecentByStatus:Mrf,markAsQueued:pjr,resetRequest:NBe,set:Pqe},networkManager:_.qTo(),handleError:function(J,c,m){var b,x=m==null?void 0:(b=m.error)==null?void 0:b.code;if(x===400||x===415){var P;J=new _.w3(J.message,c,m==null?void 0:(P=m.error)==null?void 0:P.code);_.Ge(J,void 0,void 0,void 0,!0)}else _.ha(J)},
handleWarning:_.Ge,sendFn:YT2,now:_.y4,writeError:uBq,jobManager:_.LZ(),onlineEvent:"publicytnetworkstatus-online",offlineEvent:"publicytnetworkstatus-offline",enableCleaning:!0,cleaningRate:.1,potentialEsfErrorLimit:_.c7("potential_esf_error_limit",10),getBooleanFlag:_.w,disableYtIdbTransactions:!(_.To()&&_.Urm())});this.initializationPromise=new _.xb;_.w("networkless_immediately_drop_all_requests")&&KUR();mLt("LogsDatabaseV2")};
_.D(rD,i4);_.s6Z=function(){var J=_.$y("yt.networklessRequestController.instance");J||(J=new rD,_.jD("yt.networklessRequestController.instance",J),_.w("networkless_logging")&&_.Fb().then(function(c){J.databaseToken=c;COQ(J);J.initializationPromise.resolve();J.enableCleaning&&Math.random()<=J.cleaningRate&&J.databaseToken&&kho(J.databaseToken);_.w("networkless_immediately_drop_sw_health_store")&&rUC(J)}));
return J};
rD.prototype.writeThenSend=function(J,c){c||(c={});c=XjQ(J,c);_.To()||(this.initialized=!1);i4.prototype.writeThenSend.call(this,J,c)};
rD.prototype.sendThenWrite=function(J,c,m){c||(c={});c=XjQ(J,c);_.To()||(this.initialized=!1);i4.prototype.sendThenWrite.call(this,J,c,m)};
rD.prototype.sendAndWrite=function(J,c){c||(c={});c=XjQ(J,c);_.To()||(this.initialized=!1);i4.prototype.sendAndWrite.call(this,J,c)};
rD.prototype.awaitInitialization=function(){return this.initializationPromise.promise};
var rUC=function(J){var c;_.N(function(m){if(!J.databaseToken)throw c=SD("clearSWHealthLogsDb"),c;return m.return(Hv3(J.databaseToken).catch(function(b){J.handleError(b)}))})};_.hgo=!1;_.STT=_.mo.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:_.hgo};_.jD("ytNetworklessLoggingInitializationOptions",_.STT);var WO=function(J){var c=this;this.config_=null;J?this.config_=J:IuR()&&(this.config_=_.g3());_.rv(_.ft,function(){JcD(c)},5E3)};
WO.prototype.isReady=function(){!this.config_&&IuR()&&(this.config_=_.g3());return!!this.config_};
var gYr=function(J,c,m,b){!_.Ub("VISITOR_DATA")&&c!=="visitor_id"&&Math.random()<.01&&_.Ge(new _.w3("Missing VISITOR_DATA when sending innertube request.",c,m,b));if(!J.isReady()){var x=new _.w3("innertube xhrclient not ready",c,m,b);_.ha(x);throw x;}var P={headers:b.headers||{},method:"POST",postParams:m,postBody:b.postBody,postBodyFormat:b.postBodyFormat||"JSON",onTimeout:function(){b.onTimeout()},
onFetchTimeout:b.onTimeout,onSuccess:function(H,T){if(b.onSuccess)b.onSuccess(T)},
onFetchSuccess:function(H){if(b.onSuccess)b.onSuccess(H)},
onError:function(H,T){if(b.onError)b.onError(T)},
onFetchError:function(H){if(b.onError)b.onError(H)},
timeout:b.timeout,withCredentials:!0,compress:b.compress};P.headers["Content-Type"]||(P.headers["Content-Type"]="application/json");var p="";(x=J.config_.innertubeHostOverride)&&(p=x);var t=J.config_.innertubeUseThirdPartyAuth||!1,I=_.uvu(t,p,b);Object.assign(P.headers,I);P.headers.Authorization&&!p&&t&&(P.headers["x-origin"]=window.location.origin);var a=_.RP(p+("/youtubei/"+J.config_.innertubeApiVersion+"/"+c),{alt:"json"}),k=function(H){H=H===void 0?!1:H;var T;if(b.retry&&p!="www.youtube-nocookie.com"&&
(H||_.w("skip_ls_gel_retry")||P.headers["Content-Type"]!=="application/json"||(T=y7q(c,m,I,t)),T)){var r=P.onSuccess,W=P.onFetchSuccess;P.onSuccess=function(d,G){Bft(T);r(d,G)};
m.onFetchSuccess=function(d,G){Bft(T);W(d,G)}}try{if(H&&b.retry&&!b.networklessOptions.bypassNetworkless)P.method="POST",b.networklessOptions.writeThenSend?_.s6Z().writeThenSend(a,P):_.s6Z().sendAndWrite(a,P);
else if(b.compress){var Y=!b.networklessOptions.writeThenSend;if(P.postBody){var Z=P.postBody;typeof Z!=="string"&&(Z=JSON.stringify(P.postBody));vYJ(a,Z,P,_.tL,Y)}else vYJ(a,JSON.stringify(P.postParams),P,eF2,Y)}else _.w("web_all_payloads_via_jspb")?_.tL(a,P):eF2(a,P)}catch(d){if(d.name==="InvalidAccessError")T&&(Bft(T),T=0),_.Ge(Error("ed"));else throw d;}T&&_.rv(_.ft,function(){JcD(J)},5E3)};
_.dru()?jzr().then(function(H){k(H)}):k(!1)};var Ecu=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(Ecu,_.d6);var LLZ=0,Ghf=_.ms?"webkit":_.ce?"moz":_.JK?"ms":l$2?"o":"";_.jD("ytDomDomGetNextId",_.$y("ytDomDomGetNextId")||function(){return++LLZ});var DXZ={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},yF=function(J){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(J=
J||window.event){this.event=J;for(var c in J)c in DXZ||(this[c]=J[c]);this.scale=J.scale;this.rotation=J.rotation;var m=J.target||J.srcElement;m&&m.nodeType==3&&(m=m.parentNode);this.target=m;var b=J.relatedTarget;if(b)try{b=b.nodeName?b:null}catch(x){b=null}else this.type=="mouseover"?b=J.fromElement:this.type=="mouseout"&&(b=J.toElement);this.relatedTarget=b;this.clientX=J.clientX!=void 0?J.clientX:J.pageX;this.clientY=J.clientY!=void 0?J.clientY:J.pageY;this.keyCode=J.keyCode?J.keyCode:J.which;
this.charCode=J.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=J.altKey;this.ctrlKey=J.ctrlKey;this.shiftKey=J.shiftKey;this.metaKey=J.metaKey;this.pageX_=J.pageX;this.pageY_=J.pageY}}catch(x){}},WLL=function(J){if(document.body&&document.documentElement){var c=document.body.scrollTop+document.documentElement.scrollTop;
J.pageX_=J.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);J.pageY_=J.clientY+c}};
yF.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
yF.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
yF.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var lO=_.mo.ytEventsEventsListeners||{};_.jD("ytEventsEventsListeners",lO);var obQ=_.mo.ytEventsEventsCounter||{count:0};_.jD("ytEventsEventsCounter",obQ);var Q1m=_.IS(function(){var J=!1;try{var c=Object.defineProperty({},"capture",{get:function(){J=!0}});
window.addEventListener("test",null,c)}catch(m){}return J});_.yv(go,_.DS);go.prototype.onMouseMove_=function(J){J.pageX_===void 0&&WLL(J);var c=J.pageX_;J.pageY_===void 0&&WLL(J);this.position_=new _.zO(c,J.pageY_)};
go.prototype.checkPosition_=function(){if(this.position_){var J=(0,_.y4)();if(this.previousTime_!=0){var c=this.previousPosition_,m=this.position_,b=c.x-m.x;c=c.y-m.y;b=Math.sqrt(b*b+c*c)/(J-this.previousTime_);this.cycles_[this.index_]=Math.abs((b-this.previousVelocity_)/this.previousVelocity_)>.5?1:0;for(m=c=0;m<4;m++)c+=this.cycles_[m]||0;c>=3&&this.callback_();this.previousVelocity_=b}this.previousTime_=J;this.previousPosition_=this.position_;this.index_=(this.index_+1)%4}};
go.prototype.disposeInternal=function(){window.clearInterval(this.timerId_);_.eg3(this.mouseListenerKey_)};var yct={};var VMQ=new _.Q("rawColdConfigGroup");var xlu=new _.Q("rawHotConfigGroup");var z2_=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(z2_,_.d6);var G_T=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(G_T,_.d6);var wv=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J,500)};
_.D(wv,_.d6);wv.prototype.getPayloadCase=function(){return _.a5(this,u_Q)};
wv.prototype.getContext=function(){return _.JU(this,G_T,33)};
var u_Q=[2,3,5,6,7,11,13,20,21,22,23,24,28,32,37,45,59,72,73,74,76,78,79,80,85,91,97,100,102,105,111,117,119,126,127,136,146,148,151,156,157,158,159,163,164,168,176,177,178,179,184,188,189,190,191,193,194,195,196,197,198,199,200,201,202,203,204,205,206,208,209,215,219,222,225,226,227,229,232,233,234,240,241,244,247,248,249,251,254,255,256,257,258,259,260,261,266,270,272,278,288,291,293,300,304,308,309,310,311,313,314,319,320,321,323,324,327,328,330,331,332,334,337,338,340,344,348,350,351,352,353,
354,355,356,357,358,361,363,364,368,369,370,373,374,375,378,380,381,383,388,389,399,402,403,410,411,412,413,414,415,416,417,418,423,424,425,426,427,429,430,431,439,441,444,448,458,469,471,473,474,480,481,482,484,485,486,491,495,496,506,507,509,511,512,513,514,515,516,517,518,519,520];var BUT=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(BUT,_.d6);var uFt=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(uFt,_.d6);uFt.prototype.setVideoId=function(J){return K4(this,1,fhr,$p(J))};
uFt.prototype.getPlaylistId=function(){return _.Ha(this,i3(this,fhr,2))};
var fhr=[1,2];var QuJ=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(QuJ,_.d6);QuJ.prototype.getContext=function(){return _.JU(this,C4,1)};
QuJ.prototype.getTier=function(){return _.Db(this,7)};var fCa,b3,xH;fCa=_.mo.ytPubsubPubsubInstance||new _.Kg;b3=_.mo.ytPubsubPubsubSubscribedKeys||{};xH=_.mo.ytPubsubPubsubTopicToKeys||{};_.BBG=_.mo.ytPubsubPubsubIsSynchronous||{};_.Kg.prototype.subscribe=_.Kg.prototype.subscribe;_.Kg.prototype.unsubscribeByKey=_.Kg.prototype.unsubscribeByKey;_.Kg.prototype.publish=_.Kg.prototype.publish;_.Kg.prototype.clear=_.Kg.prototype.clear;_.jD("ytPubsubPubsubInstance",fCa);_.jD("ytPubsubPubsubTopicToKeys",xH);_.jD("ytPubsubPubsubIsSynchronous",_.BBG);
_.jD("ytPubsubPubsubSubscribedKeys",b3);var PO=window;var s_=_.w("web_enable_lifecycle_monitoring")&&bsG()!==0,Yn_=_.w("web_enable_lifecycle_monitoring");var ZtB=function(J){var c=this;var m=m===void 0?0:m;var b=b===void 0?_.LZ():b;this.JSC$8814_defaultPriority=m;this.scheduler=b;this.completedResolver=new _.xb;this.scheduledPayloads=J;for(J={i$jscomp$485:0};J.i$jscomp$485<this.scheduledPayloads.length;J={payload$jscomp$18:void 0,i$jscomp$485:J.i$jscomp$485},J.i$jscomp$485++)J.payload$jscomp$18=this.scheduledPayloads[J.i$jscomp$485],m=function(x){return function(){x.payload$jscomp$18.job();c.scheduledPayloads[x.i$jscomp$485].processed=!0;c.scheduledPayloads.every(function(P){return P.processed===
!0})&&c.completedResolver.resolve()}}(J),b=this.scheduler.addJob(m,X4B(this,J.payload$jscomp$18)),this.scheduledPayloads[J.i$jscomp$485]=Object.assign({},J.payload$jscomp$18,{job:m,
jobId:b})};
ZtB.prototype.flushJobs=function(){var J=this,c=Array.from(this.scheduledPayloads.keys()).sort(function(b,x){return X4B(J,J.scheduledPayloads[x])-X4B(J,J.scheduledPayloads[b])});
c=_.M(c);for(var m=c.next();!m.done;m=c.next())m=this.scheduledPayloads[m.value],m.jobId===void 0||m.processed||(this.scheduler.cancelJob(m.jobId),this.scheduler.addJob(m.job,10))};
ZtB.prototype.cancel=function(){for(var J=_.M(this.scheduledPayloads),c=J.next();!c.done;c=J.next())c=c.value,c.jobId===void 0||c.processed||this.scheduler.cancelJob(c.jobId),c.processed=!0;this.completedResolver.resolve()};
var X4B=function(J,c){var m;return(m=c.priority)!=null?m:J.JSC$8814_defaultPriority};var L_=function(J){this.state=J;this.plugins=[];this.overridePriority=void 0;this.processPluginOptions={};s_&&xEm(this.state)};
L_.prototype.install=function(J){this.plugins.push(J);return this};
L_.prototype.uninstall=function(){var J=this;_.s$.apply(0,arguments).forEach(function(c){c=J.plugins.indexOf(c);c>-1&&J.plugins.splice(c,1)})};
L_.prototype.transition=function(J,c){var m=this;s_&&V5e(this.state);var b=this.transitions.find(function(P){return Array.isArray(P.from)?P.from.find(function(p){return p===m.state&&P.to===J}):P.from===m.state&&P.to===J});
if(b){this.jobSet&&(this.jobSet.flushJobs(),this.jobSet=void 0);qn8(this,J,c);this.state=J;s_&&xEm(this.state);b=b.action.bind(this);var x=this.plugins.filter(function(P){return P[J]}).map(function(P){return P[J]});
b(UXB(this,x),c)}else throw Error("fd`"+this.state+"`"+J);};
var UXB=function(J,c){var m=c.filter(function(x){return SnQ(J,x)===10}),b=c.filter(function(x){return SnQ(J,x)!==10});
return J.processPluginOptions.shouldWaitOnAsyncImmediate?function(){var x=_.s$.apply(0,arguments);return _.N(function(P){if(P.nextAddress==1)return _.K(P,J.runImmediateJobsAsync.apply(J,[m].concat(_.L6(x))),2);J.setJobSetWithScheduledJobs.apply(J,[b].concat(_.L6(x)));_.tD(P)})}:function(){var x=_.s$.apply(0,arguments);
J.runImmediateJobsSync.apply(J,[m].concat(_.L6(x)));J.setJobSetWithScheduledJobs.apply(J,[b].concat(_.L6(x)))}};
L_.prototype.runImmediateJobsSync=function(J){var c=_.s$.apply(1,arguments);_.LZ();for(var m=_.M(J),b=m.next(),x={};!b.done;x={lifecycle$jscomp$2:void 0},b=m.next())x.lifecycle$jscomp$2=b.value,JP(function(P){return function(){h2j(P.lifecycle$jscomp$2.name);M5f(function(){return P.lifecycle$jscomp$2.callback.apply(P.lifecycle$jscomp$2,_.L6(c))});
Dr(P.lifecycle$jscomp$2.name)}}(x))};
L_.prototype.runImmediateJobsAsync=function(J){var c=_.s$.apply(1,arguments),m,b,x,P;return _.N(function(p){p.nextAddress==1&&(_.LZ(),m=_.M(J),b=m.next(),x={});if(p.nextAddress!=3){if(b.done)return p.jumpTo(0);x.lifecycle$jscomp$3=b.value;x.asyncJobCompletion=void 0;P=function(t){return function(){h2j(t.lifecycle$jscomp$3.name);var I=M5f(function(){return t.lifecycle$jscomp$3.callback.apply(t.lifecycle$jscomp$3,_.L6(c))});
uQe(I)?t.asyncJobCompletion=_.w("web_lifecycle_error_handling_killswitch")?I.then(function(){Dr(t.lifecycle$jscomp$3.name)}):I.then(function(){Dr(t.lifecycle$jscomp$3.name)},function(a){PMJ(a);
Dr(t.lifecycle$jscomp$3.name)}):Dr(t.lifecycle$jscomp$3.name)}}(x);
JP(P);return x.asyncJobCompletion?_.K(p,x.asyncJobCompletion,3):p.jumpTo(3)}x={lifecycle$jscomp$3:void 0,asyncJobCompletion:void 0};b=m.next();return p.jumpTo(2)})};
L_.prototype.setJobSetWithScheduledJobs=function(J){var c=_.s$.apply(1,arguments),m=this,b=J.map(function(x){return{job:function(){h2j(x.name);M5f(function(){return x.callback.apply(x,_.L6(c))});
Dr(x.name)},
priority:SnQ(m,x)}});
b.length&&(this.jobSet=new ZtB(b))};
var SnQ=function(J,c){var m,b;return(b=(m=J.overridePriority)!=null?m:c.priority)!=null?b:0},h2j=function(J){s_&&J&&xEm(J)},Dr=function(J){s_&&J&&V5e(J)},qn8=function(J,c,m){Yn_&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+J.constructor.name+"] '"+J.state+"' to '"+c+"'"),console.log("with message: ",m),console.groupEnd())};
_.eE.Object.defineProperties(L_.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var dX_=function(J){L_.call(this,J===void 0?"none":J);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(){}}]},$X_;
_.D(dX_,L_);dX_.prototype.runApplicationNavigationBegin=function(J,c){var m=this;this.navigationTimer=_.rv(_.ft,function(){m.currentState==="application_navigating"&&m.transition("none")},5E3);
J(c==null?void 0:c.event)};
dX_.prototype.runApplicationNavigationEnd=function(J,c){this.navigationTimer&&(_.ft.cancelJob(this.navigationTimer),this.navigationTimer=null);J(c==null?void 0:c.event)};
_.b7f=function(){$X_||($X_=new dX_);return $X_};var mlf=[];_.jD("yt.logging.transport.getScrapedGelPayloads",function(){return mlf});var Mz=function(){var J=this;this.store={};this.totalEntries=0;this.memoizedKeySequences={};this.TEST_ONLY={getEntriesCount:function(){return J.totalEntries}}};
Mz.prototype.storePayload=function(J,c){J=p9Q(J);this.store[J]?this.store[J].push(c):(this.memoizedKeySequences={},this.store[J]=[c]);this.totalEntries++;_.w("more_accurate_gel_parser")&&(c=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(c));return J};
Mz.prototype.smartExtractMatchingEntries=function(J){if(!J.keys.length)return[];for(var c=G76(this,J.keys.splice(0,1)[0]),m=[],b=0;b<c.length;b++)this.store[c[b]]&&J.sizeLimit&&(this.store[c[b]].length<=J.sizeLimit?(m.push.apply(m,_.L6(this.store[c[b]])),delete this.store[c[b]]):m.push.apply(m,_.L6(this.store[c[b]].splice(0,J.sizeLimit))));this.totalEntries-=m.length;(J==null?0:J.sizeLimit)&&m.length<(J==null?void 0:J.sizeLimit)&&(J.sizeLimit-=m.length,m.push.apply(m,_.L6(this.smartExtractMatchingEntries(J))));
return m};
Mz.prototype.extractMatchingEntries=function(J){J=G76(this,J);for(var c=[],m=0;m<J.length;m++)this.store[J[m]]&&(c.push.apply(c,_.L6(this.store[J[m]])),delete this.store[J[m]]);this.totalEntries-=c.length;return c};
Mz.prototype.getSequenceCount=function(J){J=G76(this,J);for(var c=0,m=0;m<J.length;m++){var b=void 0;c+=((b=this.store[J[m]])==null?void 0:b.length)||0}return c};
var G76=function(J,c){var m=p9Q(c);if(J.memoizedKeySequences[m])return J.memoizedKeySequences[m];var b=Object.keys(J.store)||[];if(b.length<=1&&p9Q(c)===b[0])return b;for(var x=[],P=0;P<b.length;P++){var p=b[P].split("/");if(E$_(c.auth,p[0])){var t=c.isJspb;E$_(t===void 0?"undefined":t?"true":"false",p[1])&&E$_(c.cttAuthInfo,p[2])&&(t=c.tier,t=t===void 0?"undefined":JSON.stringify(t),E$_(t,p[3])&&x.push(b[P]))}}return J.memoizedKeySequences[m]=x},E$_=function(J,c){return J===void 0||J==="undefined"?
!0:J===c};
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 $EG,h8u,G1o,tI,v$$,NpJ,pdm,SBt,UEm,suR,dEt,JdD,X92;$EG=_.c7("initial_gel_batch_timeout",2E3);h8u=_.c7("gel_queue_timeout_max_ms",6E4);G1o=_.c7("gel_min_batch_size",5);tI=void 0;v$$=function(){this.lastDebounceQueueFromLogTimeMs=this.queueMaxTimer=this.queueTimer=0;this.useVideoStatsEndPoint=!1};
NpJ=new v$$;pdm=new v$$;SBt=new v$$;UEm=new v$$;dEt=!0;JdD=1;_.grR=new Map;X92=_.mo.ytLoggingTransportTokensToCttTargetIds_||{};_.jD("ytLoggingTransportTokensToCttTargetIds_",X92);var YBf=_.mo.ytLoggingTransportTokensToJspbCttTargetIds_||{};_.jD("ytLoggingTransportTokensToJspbCttTargetIds_",YBf);var Nz={};var L4=_.mo.ytLoggingGelSequenceIdObj_||{};_.jD("ytLoggingGelSequenceIdObj_",L4);var CvQ=[];var WPR=new Set,nVT=0,YvG=0,fGo=0,wd3=[],TpD=[],Xdt=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var RZe=function(){};
RZe.prototype.getUrl=function(J,c){c=c===void 0?!1:c;return J.hasOwnProperty("shareEndpoint")?null:_.Svr(J,null,c)};
var qRT=function(J,c,m){J={endpoint:c,actions:[]};m=(m.path?m.path[0]:m.target).icon||"";c=m.indexOf(":");c>0&&(m=m.substr(c+1));m&&J.actions.push(m);return J};var vVt=/Command$/,EVD=/Endpoint$/,dlr=new Map;var Otu,AUZ;Otu=1;_.vO=function(){this.actionRoutingMap=new Map};
_.vO.prototype.triggerAction=function(J){var c=new k_q(J,!1,_.s$.apply(1,arguments));this.handleAction(c);return c.returnValue};
_.vO.prototype.triggerOptionalAction=function(J){var c=new k_q(J,!0,_.s$.apply(1,arguments));this.handleAction(c);return c.returnValue};
_.WE=function(J,c,m){c.forEach(function(b){var x=Ggu(b);x&&J.triggerOptionalAction(x,b,m,void 0)})};
_.vO.prototype.handleAction=function(J){var c=this.actionRoutingMap.get(J.actionName);c&&AUZ(J,c);J.optionalAction||J.returnValue.length!==0||(J=new _.w3("Unhandled action",J.actionName),_.Ge(J))};
AUZ=function(J,c){c.forEach(function(m){var b=null;m?b=m.apply(null,J.args):(m=Error("gd"),m.params=J.actionName,_.ha(m));J.returnValue.push(b)})};
_.Oe=function(J,c,m){m||(m=Otu++);for(var b=_.M(Object.keys(c)),x=b.next();!x.done;x=b.next()){x=x.value;var P=J.actionRoutingMap.get(x);P||(P=new Map,J.actionRoutingMap.set(x,P));J.registerActionHandler(m,x,c[x],P)}return m};
_.vO.prototype.registerActionHandler=function(J,c,m,b){b.set(J,_.du(m))};
_.AI=function(J,c,m){c=_.M(Object.keys(c));for(var b=c.next();!b.done;b=c.next())(b=J.actionRoutingMap.get(b.value))&&b.delete(m)};
_.F1(_.vO);var eZG=function(J,c){var m=_.vO.getInstance();_.uN(function(){var b={},x=_.Oe(m,(b[J]=c,b));_.f2(function(){var P={};_.AI(m,(P[J]="",P),x)})})};_.eg=Symbol("id");cIJ=Se3;var NsD=new Set(["For","If","Match","Watch"]),R2a={},o$6=(R2a[h$.default]=function(){return FL2},R2a.style=function(){return FL2},R2a),Q6j;
for(Q6j in o$6)_.bi.attributes[Q6j]=o$6[Q6j](_.bi.attributes[Q6j]);var BO=new _.oE("VISIBILITY_OBSERVER");var TsG={retrieve:function(J){return this.id.\u0275prov.token===J.\u0275prov.token?this.contextValue:this?zMt(this,this.id):D33}};var e2C=function(J,c,m){if(J!==jg)return!1;J=bq2(document.createElement("div"),function(){var b=mv(!1);try{m[0]()}finally{mv(b)}});
J=Array.from(J.childNodes);J.length===1&&(J=J[0]);return J};var j6C=function(J){J=J.clone();waj(J);KC(J,"dg",null);KC(J,"d","0");HcQ(J,null);icL(J,null);return J},FL6=!0,lC6=function(J,c,m){var b=m===void 0?{}:m;
m=b.cssRowKey===void 0?void 0:b.cssRowKey;var x=b.combinedSignature===void 0?void 0:b.combinedSignature;var P=b.extraEdges===void 0?void 0:b.extraEdges;b=b.callback===void 0?void 0:b.callback;KC(J,"m",c.join(","));P&&TmL(J,P);m&&(KC(J,"ck",m),x?KC(J,"rs",x):FL6&&(FL6=!1));if(b){if(b!=null&&!L5j.test(b))throw Error("ab`"+b);KC(J,"cb",b)}J=J.toString();_.xt(J,"/")&&(J=xuu(document.location.href)+J);return _.p1(J)};var BoQ=function(J){return yUz(J).then(function(c){return JSON.parse(c.responseText)})},yUz=function(J){var c={},m=c.xmlHttpFactory?c.xmlHttpFactory.createInstance():GR2.createInstance();
return(new _.IN(function(b,x){var P;try{m.open("GET",J,!0)}catch(I){x(new zc("Error opening XHR: "+I.message,J,m))}m.onreadystatechange=function(){if(m.readyState==4){_.mo.clearTimeout(P);var I;!(I=$0z(m.status))&&(I=m.status===0)&&(I=bQu(J),I=!(I=="http"||I=="https"||I==""));I?b(m):x(new g$j(m.status,J,m))}};
m.onerror=function(){x(new zc("Network error",J,m))};
if(c.headers)for(var p in c.headers){var t=c.headers[p];t!=null&&m.setRequestHeader(p,t)}c.withCredentials&&(m.withCredentials=c.withCredentials);c.responseType&&(m.responseType=c.responseType);c.mimeType&&m.overrideMimeType(c.mimeType);c.timeoutMs>0&&(P=_.mo.setTimeout(function(){m.onreadystatechange=function(){};
m.abort();x(new JIz(J,m))},c.timeoutMs));
try{m.send(null)}catch(I){m.onreadystatechange=function(){},_.mo.clearTimeout(P),x(new zc("Error sending XHR: "+I.message,J,m))}})).thenCatch(function(b){b instanceof _.OQ&&m.abort();
throw b;})},zc=function(J,c,m){_.Jq.call(this,J+", url="+c);
this.url=c;this.xhr=m};
_.yv(zc,_.Jq);zc.prototype.name="XhrError";var g$j=function(J,c,m){zc.call(this,"Request Failed, status="+J,c,m);this.status=J};
_.yv(g$j,zc);g$j.prototype.name="XhrHttpError";var JIz=function(J,c){zc.call(this,"Request timed out",J,c)};
_.yv(JIz,zc);JIz.prototype.name="XhrTimeoutError";jL=jL||{};var u4=function(){_.DS.call(this)};
_.yv(u4,_.DS);u4.prototype.initialize=function(){};var cIQ=function(J,c){this.fn_=J;this.handler_=c};
cIQ.prototype.execute=function(J){this.fn_&&(this.fn_.call(this.handler_||null,J),this.fn_=this.handler_=null)};
cIQ.prototype.abort=function(){this.handler_=this.fn_=null};var f_=function(J,c){_.DS.call(this);this.deps_=J;this.JSC$8942_id_=c;this.onloadCallbacks_=[];this.JSC$8942_onErrorCallbacks_=[];this.earlyOnloadCallbacks_=[]};
_.yv(f_,_.DS);f_.prototype.moduleConstructor_=u4;f_.prototype.module_=null;f_.prototype.getId=function(){return this.JSC$8942_id_};
f_.prototype.registerCallback=function(J,c){return mzz(this.onloadCallbacks_,J,c)};
var b4Q=function(J,c){mzz(J.JSC$8942_onErrorCallbacks_,c)},mzz=function(J,c,m){c=new cIQ(c,m);
J.push(c);return c};
f_.prototype.isLoaded=function(){return!!this.module_};
f_.prototype.onLoad=function(J){var c=new this.moduleConstructor_;c.initialize(J());this.module_=c;c=(c=xzL(this.earlyOnloadCallbacks_,J()))||xzL(this.onloadCallbacks_,J());c||(this.JSC$8942_onErrorCallbacks_.length=0);return c};
f_.prototype.onError=function(J){(J=xzL(this.JSC$8942_onErrorCallbacks_,J))&&bQ(Error("md`"+J));this.earlyOnloadCallbacks_.length=0;this.onloadCallbacks_.length=0};
var xzL=function(J,c){for(var m=[],b=0;b<J.length;b++)try{J[b].execute(c)}catch(x){bQ(x),m.push(x)}J.length=0;return m.length?m:null};
f_.prototype.disposeInternal=function(){f_.superClass_.disposeInternal.call(this);_.yr(this.module_)};var Vgu,Itu,Nv_,tg$,Mg_,pOu,H4Q,atQ,kB$;
_.Xl=function(J,c,m,b,x){b=b===void 0?!1:b;x=x===void 0?!1:x;var P=P===void 0?!0:P;this.scsReferenceUrl_=jPR(_.N2(J).toString(),P);this.cssRowKey_=c;this.combinedSignature_=m;this.useNegativeLoading_=b;this.requestedModuleMap_={};this.JSC$8945_moduleInfoMap_={};this.requestedModuleList_=[];this.requestedModuleListSorted_=!0;this.loadedCssModuleList_=(J=IE(this.scsReferenceUrl_,"excm"))?J.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;FvQ();this.logger=null;_.Y_(this,n9a(this.scsReferenceUrl_));this.fetchPriority=void 0;this.enableFallbackFetch=!1;this.maybeSetAdditionalFields()};
Vgu=function(J,c){if(c.href||c.getAttribute("data-href"))if(c=c.href||c.getAttribute("data-href"),RMD(c)&&!jPR(c).urlPrefix_.endsWith("_/js/")){c=n9a(jPR(c));c=_.M(c);for(var m=c.next();!m.done;m=c.next())m=m.value,J.loadedCssModuleList_.includes(m)||J.loadedCssModuleList_.push(m)}};
_.Xl.prototype.JSC$8947_loadModules=function(J,c,m){var b=m===void 0?{}:m;m=b.extraEdges;var x=b.onError;var P=b.onSuccess;b=b.forceReload;this.JSC$8945_moduleInfoMap_=c;if(!J)throw Error("nd");if(this.shouldScanForCss_){c=_.M(document.getElementsByTagName("style"));for(var p=c.next();!p.done;p=c.next())Vgu(this,p.value);c=_.M(document.getElementsByTagName("link"));for(p=c.next();!p.done;p=c.next())Vgu(this,p.value)}P3_(this,Mg_(this,J),m,x,P,b)};
var P3_=function(J,c,m,b,x,P){b=b===void 0?function(){}:b;
x=x===void 0?function(){}:x;
P=P===void 0?!1:P;pOu(J,c,function(p,t,I){I=I===void 0?t:I;J.enableFallbackFetch&&P?J.loadWithFetch(p,t,b,x,I):J.load(p,t,b,x,I,m)},m)||b(-1)};
_.Xl.prototype.loadWithFetch=function(){_.N(function(){throw Error("od");})};
_.Xl.prototype.maybeSetAdditionalFields=function(){};
Itu=function(J,c,m){if(J.useNegativeLoading_){var b=J.scsReferenceUrl_;J={cssRowKey:J.cssRowKey_,combinedSignature:J.combinedSignature_,extraEdges:m,requestedModuleIds:Nv_(J),requestedCssModuleIds:tg$(J)};var x=J===void 0?{}:J;J=x.requestedModuleIds===void 0?[]:x.requestedModuleIds;m=x.requestedCssModuleIds===void 0?[]:x.requestedCssModuleIds;var P=x.cssRowKey===void 0?void 0:x.cssRowKey;var p=x.combinedSignature===void 0?void 0:x.combinedSignature;var t=x.extraEdges===void 0?void 0:x.extraEdges;
x=x.callback===void 0?void 0:x.callback;b=j6C(b);KC(b,"d","1");HcQ(b,J);icL(b,m);c=lC6(b,c,{cssRowKey:P,combinedSignature:p,extraEdges:t,callback:x})}else b=J.scsReferenceUrl_,J={cssRowKey:J.cssRowKey_,combinedSignature:J.combinedSignature_,requestedModuleIds:Nv_(J),requestedCssModuleIds:tg$(J)},t=J===void 0?{}:J,J=t.requestedCssModuleIds===void 0?[]:t.requestedCssModuleIds,m=t.cssRowKey===void 0?void 0:t.cssRowKey,P=t.combinedSignature===void 0?void 0:t.combinedSignature,p=t.extraEdges===void 0?
void 0:t.extraEdges,t=t.callback===void 0?void 0:t.callback,b=j6C(b),icL(b,J),c=lC6(b,c,{cssRowKey:m,combinedSignature:P,extraEdges:p,callback:t});return c};
_.Y_=function(J,c){for(var m=!1,b=[],x=0;x<c.length;++x){var P=c[x];J.requestedModuleMap_[P]||(J.requestedModuleMap_[P]=!0,J.requestedModuleList_.push(P),m=!0,b.push(P))}m&&(J.requestedModuleListSorted_=!1)};
_.Zr=function(J,c){for(var m=[],b=0;b<c.length;++b){var x=c[b];J.requestedModuleMap_[x]&&(delete J.requestedModuleMap_[x],_.j2(J.requestedModuleList_,x),m.push(x))}};
_.Xl.prototype.load=function(J,c,m,b,x){x=x===void 0?c:x;_.N2(J);var P=this.useCors_,p=this.corsMode_,t=this.fetchPriority,I=_.id("SCRIPT");_.$h(I,J);P&&(I.crossOrigin=p);I.async=!1;t&&I.setAttribute("fetchpriority",t);_.Y_(this,c);_.KC_(this,J,I,c,m,b,x)};
_.KC_=function(J,c,m,b,x,P,p){p=p===void 0?b:p;J.lastScript_=m;J.insertPos.insertBefore(m,J.insertPos.firstChild);_.C3L(m,b,function(){m.parentElement.removeChild(m);J.lastScript_==m&&(J.lastScript_=null);var t=new Set;b.map(function(a){return t.add(a)});
for(var I in J.JSC$8945_moduleInfoMap_)J.JSC$8945_moduleInfoMap_[I].isLoaded()&&t.add(I);Array.from(t);P()},function(t){m.parentElement.removeChild(m);
J.lastScript_==m&&(J.lastScript_=null);_.Zr(J,t);J.pendingModuleGraphUpdate_?J.pendingModuleGraphUpdate_.then(function(){x(-1,c)}):x(-1,c)},p)};
_.C3L=function(J,c,m,b,x){x=x===void 0?c:x;var P=c.length,p=function(){P=0;J.onload=null;J.onerror=null;t=function(){}},t=function(){p();
var a=x.filter(function(k){return!XZ().getModuleInfo(k).isLoaded()});
a.length!==0?b(a,"Response was successful but was missing module(s) "+a+"."):m()},I=function(){P--;
P==0&&t()};
c.forEach(function(a){a=XZ().getModuleInfo(a);a.isLoaded()?I():(mzz(a.earlyOnloadCallbacks_,I),b4Q(a,I))});
J.onload=function(){return t()};
J.onerror=function(){p();b(c)}};
Nv_=function(J){J.requestedModuleListSorted_||(J.requestedModuleListSorted_=!0,J.requestedModuleList_.sort());return J.requestedModuleList_};
tg$=function(J){J=J.loadedCssModuleList_;J.sort();return J};
Mg_=function(J,c){return c.filter(function(m){return!J.requestedModuleMap_[m]})};
pOu=function(J,c,m,b){if(J.pendingModuleGraphUpdate_)return J.pendingModuleGraphUpdate_.then(function(){pOu(J,c,m,b)}),!0;
if(!J.useNegativeLoading_){var x=[],P=Object.assign({},J.requestedModuleMap_);atQ(J,c,function(k){x.push(k.getId())},b,function(k){return!k.isLoaded()},P);
c=x}for(P=0;P<c.length;){for(var p=c.length-P,t=P==0?c:c.slice(P,c.length),I=Itu(J,t,b),a=_.N2(I).toString();a.length>J.urlMaxLength;)if(p>1)p-=Math.ceil((a.length-J.urlMaxLength)/6),p=Math.max(p,1),t=c.slice(P,P+p),I=Itu(J,t,b),a=_.N2(I).toString();else return J.useNegativeLoading_?(J.useNegativeLoading_=!1,J.pendingModuleGraphUpdate_=kB$(J).then(function(k){H4Q(J,k,b)}),pOu(J,c.slice(P),m,b)):!1;
P+=p;J.useNegativeLoading_?m(I,t):m(I,t,P===c.length?c:[])}return!0};
H4Q=function(J,c,m){XZ().setAllModuleInfoString((c||{}).moduleGraph);atQ(J,Nv_(J),function(b){_.Y_(J,[b.getId()])},m);
J.pendingModuleGraphUpdate_=null};
atQ=function(J,c,m,b,x,P){P=P===void 0?{}:P;var p=XZ();c=_.M(c);for(var t=c.next();!t.done;t=c.next()){t=t.value;var I=p.getModuleInfo(t);if(!(P[t]||x&&!x(I))){P[t]=!0;var a=I.deps_||[];if(b){var k=[];b[t]&&(k=Object.keys(b[t]));a=a.concat(k)}atQ(J,a,m,b,x,P);m(I)}}};
kB$=function(J){J=J.scsReferenceUrl_.clone();waj(J);KC(J,"dg",null);KC(J,"md","1");return BoQ(J.toString())};var sOu=new Uint8Array(123);var i46=[];var nHC=function(){this.JSC$8064_loader_=null};
_.V=nHC.prototype;_.V.setBatchModeEnabled=function(){};
_.V.setAllModuleInfoString=function(){};
_.V.addExtraEdge=function(){throw Error("pd");};
_.V.removeExtraEdge=function(){throw Error("qd");};
_.V.getModuleContext=function(){return null};
_.V.isActive=function(){return!1};
_.V.isUserActive=function(){return!1};
_.V.registerCallback=function(){};var qw=function(J,c,m,b,x){var P=Error.call(this);this.message=P.message;"stack"in P&&(this.stack=P.stack);this.name="ModuleLoadFailure";this.type=J;this.status=c;this.requestedModuleIds=m;this.url=b;this.cause=x;this.message=this.toString()};
_.D(qw,Error);qw.prototype.toString=function(){return TvC(this)+" ("+(this.status!=void 0?this.status:"?")+")"};
var TvC=function(J){switch(J.type){case qw.JSC$8957_Type.UNAUTHORIZED:return"Unauthorized";case qw.JSC$8957_Type.CONSECUTIVE_FAILURES:return"Consecutive load failures";case qw.JSC$8957_Type.TIMEOUT:return"Timed out";case qw.JSC$8957_Type.OLD_CODE_GONE:return"Out of date module id";case qw.JSC$8957_Type.INIT_ERROR:return"Init error";default:return"Unknown failure type "+J.type}};
jL.ModuleLoadFailure=qw;jL.ModuleLoadFailure.JSC$8957_Type={UNAUTHORIZED:0,CONSECUTIVE_FAILURES:1,TIMEOUT:2,OLD_CODE_GONE:3,INIT_ERROR:4};var U_=function(){this.moduleIds_=this.JSC$8064_loader_=null;this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.requestedModuleIds_=[];this.requestedModuleIdsQueue_=[];this.userInitiatedLoadingModuleIds_=[];this.JSC$8960_extraEdges_={};this.JSC$8960_callbackMap_={};this.JSC$8960_currentlyLoadingModule_=this.baseModuleInfo_=new f_([],"");this.lastInitialModuleId_=null;this.initialModulesLoaded_=new hi;this.batchModeEnabled_=!1;this.consecutiveFailures_=0;this.isDisposed_=
this.userLastActive_=this.lastActive_=!1};
_.yv(U_,nHC);var wOB=function(J,c){_.Jq.call(this,"Error loading "+J+": "+c)};
_.yv(wOB,_.Jq);U_.prototype.setBatchModeEnabled=function(J){this.batchModeEnabled_=J};
U_.prototype.setAllModuleInfoString=function(J,c){if(!(this instanceof U_))this.setAllModuleInfoString(J,c);else if(typeof J==="string"){if(J.startsWith("d$")){J=J.substring(2);for(var m=[],b=0,x=J.indexOf("/"),P=0,p=!1,t=0;;){var I=p?J.substring(P):J.substring(P,x);if(I.length===0)b++,P="sy"+b.toString(36),I=[];else{var a=I.indexOf(":");if(a<0)P=I,I=[];else if(a===I.length-1)P=I.substring(0,a),I=Array(m[t-1]);else{P=I.substring(0,a);I=I.substring(a+1).split(",");a=t;for(var k=0;k<I.length;k++)a-=
I[k].length===0?1:Number(I[k]),I[k]=m[a]}a=0;if(P.length===0)a=1;else if(P.charAt(0)==="+"||P.charAt(0)==="-")a=Number(P);a!==0&&(b+=a,P="sy"+b.toString(36))}m.push(P);rI_(this,P,I);if(p)break;P=x+1;x=J.indexOf("/",P);x===-1&&(p=!0);t++}this.moduleIds_=m}else if(J.startsWith("p$"))sNB(this,J);else{J=J.split("/");m=[];for(b=0;b<J.length;b++){t=J[b].split(":");x=t[0];p=[];if(t[1])for(p=t[1].split(","),t=0;t<p.length;t++)p[t]=m[parseInt(p[t],36)];m.push(x);rI_(this,x,p)}this.moduleIds_=m}c&&c.length?
(_.Br(this.loadingModuleIds_,c),this.lastInitialModuleId_=_.dT(c)):this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback();Object.freeze(this.moduleIds_);this.JSC$8960_currentlyLoadingModule_==this.baseModuleInfo_&&(this.JSC$8960_currentlyLoadingModule_=null,(c=this.baseModuleInfo_.onLoad((0,_.Wa)(this.getModuleContext,this)))&&c.length&&LCa(this,new jL.ModuleLoadFailure(jL.ModuleLoadFailure.JSC$8957_Type.INIT_ERROR,void 0,void 0,void 0,c[0])),Sz(this))}};
var sNB=function(J,c){var m=c.substring(2);for(c=0;c<64;c++)sOu["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charCodeAt(c)]=c;var b={buf:m,pos:0};cy(b);var x=cy(b),P=cy(b)+1;c=Array(x);var p=Array(x),t=Array(x);P=Array(P);var I=0,a=0,k=b.pos,H=b.buf.indexOf("|",b.pos);b.pos=H+1;for(H=0;H<x;H++){var T=cy(b),r=T&2,W=T&1;T>>>=2;W?(I+=T>>>1^-(T&1),T="sy"+I.toString(36)):(W=k,k+=T,T=m.substring(W,k));c[H]=T;r&&(P[a++]=T)}P[a]="";b.pos++;a=x&-2;m=x&1;for(I=0;I<a;I+=2)k=L$t(b),t[I]=
k&7,t[I+1]=k>>>3&7;m&&(m=L$t(b),t[a]=m&7);b.pos++;for(a=0;a<x;a++)t[a]===7&&(t[a]=cy(b));b.pos++;for(m=a=0;m<x;m++){I=t[m];k=I===0?i46:Array(I);p[m]=k;H=a;for(r=0;r<I;r++)H-=cy(b),k[r]=P[H];P[a]===c[m]&&a++}for(b=0;b<c.length;b++)rI_(J,c[b],p[b]);J.moduleIds_=c};
_.V=U_.prototype;_.V.getModuleInfo=function(J){return this.moduleInfoMap[J]};
_.V.addExtraEdge=function(J,c){var m=this.getModuleInfo(J);m&&m.isLoaded()?this.load(c):(this.JSC$8960_extraEdges_[J]||(this.JSC$8960_extraEdges_[J]={}),this.JSC$8960_extraEdges_[J][c]=!0)};
_.V.removeExtraEdge=function(J,c){if(this.JSC$8960_extraEdges_[J]){delete this.JSC$8960_extraEdges_[J][c];for(var m in this.JSC$8960_extraEdges_[J])return;delete this.JSC$8960_extraEdges_[J]}};
_.V.isActive=function(){return this.loadingModuleIds_.length>0};
_.V.isUserActive=function(){return this.userInitiatedLoadingModuleIds_.length>0};
var Sz=function(J){var c=J.lastActive_,m=J.isActive();m!=c&&(J.executeCallbacks_(m?"active":"idle"),J.lastActive_=m);c=J.isUserActive();c!=J.userLastActive_&&(J.executeCallbacks_(c?"userActive":"userIdle"),J.userLastActive_=c)},rI_=function(J,c,m){J.moduleInfoMap[c]?(J=J.moduleInfoMap[c].deps_,J!=m&&J.splice.apply(J,[0,
J.length].concat(_.L6(m)))):J.moduleInfoMap[c]=new f_(m,c)},WC_=function(J,c,m){var b=[];
bC(c,b);c=[];for(var x={},P=0;P<b.length;P++){var p=b[P],t=J.getModuleInfo(p);if(!t)throw Error("rd`"+p);var I=new hi;x[p]=I;t.isLoaded()?I.callback(null):(Dz_(J,p,t,!!m,I),J.isModuleLoading(p)||c.push(p))}c.length>0&&(J.loadingModuleIds_.length===0?J.loadModules_(c):(J.requestedModuleIdsQueue_.push(c),Sz(J)));return x},Dz_=function(J,c,m,b,x){m.registerCallback(x.callback,x);
b4Q(m,function(P){x.errback(new wOB(c,P))});
J.isModuleLoading(c)?b&&(zw_(J,c),Sz(J)):b&&zw_(J,c)};
U_.prototype.loadModules_=function(J,c,m){var b=this;c||(this.consecutiveFailures_=0);var x=uc2(this,J);this.loadingModuleIds_=x;this.requestedLoadingModuleIds_=this.batchModeEnabled_?J:_.Fe(x);Sz(this);if(x.length!==0){this.requestedModuleIds_.push.apply(this.requestedModuleIds_,x);if(Object.keys(this.JSC$8960_extraEdges_).length>0&&!this.JSC$8064_loader_.supportsExtraEdges)throw Error("sd");J=(0,_.Wa)(this.JSC$8064_loader_.JSC$8947_loadModules,this.JSC$8064_loader_,_.Fe(x),this.moduleInfoMap,{extraEdges:this.JSC$8960_extraEdges_,
forceReload:!!m,onError:function(P,p){var t=b.requestedLoadingModuleIds_;P=P!=null?P:void 0;b.consecutiveFailures_++;var I=_.Fe(x);b.requestedLoadingModuleIds_=t;x.forEach(_.k2(_.j2,b.requestedModuleIds_),b);P==401?(LCa(b,new jL.ModuleLoadFailure(jL.ModuleLoadFailure.JSC$8957_Type.UNAUTHORIZED,P)),b.requestedModuleIdsQueue_.length=0):P==410?(ftB(b,new jL.ModuleLoadFailure(jL.ModuleLoadFailure.JSC$8957_Type.OLD_CODE_GONE,P)),Ye8(b)):b.consecutiveFailures_>=3?(ftB(b,new jL.ModuleLoadFailure(jL.ModuleLoadFailure.JSC$8957_Type.CONSECUTIVE_FAILURES,
P,I,p)),Ye8(b)):b.loadModules_(b.requestedLoadingModuleIds_,!0,P==8001||!1)},
onTimeout:(0,_.Wa)(this.handleLoadTimeout_,this)});(c=Math.pow(this.consecutiveFailures_,2)*5E3)?_.mo.setTimeout(J,c):J()}};
var uc2=function(J,c){c=c.filter(function(x){return J.moduleInfoMap[x].isLoaded()?(_.mo.setTimeout(function(){return Error("td`"+x)},0),!1):!0});
for(var m=[],b=0;b<c.length;b++)m=m.concat(XOz(J,c[b]));bC(m);return!J.batchModeEnabled_&&m.length>1?(c=m.shift(),J.requestedModuleIdsQueue_=m.map(function(x){return[x]}).concat(J.requestedModuleIdsQueue_),[c]):m},XOz=function(J,c){var m=_.Lw.createSet(J.requestedModuleIds_),b=[];
m[c]||b.push(c);c=[c];for(var x=0;x<c.length;x++)for(var P=J.getModuleInfo(c[x]).deps_,p=P.length-1;p>=0;p--){var t=P[p];J.getModuleInfo(t).isLoaded()||m[t]||(b.push(t),c.push(t))}b.reverse();bC(b);return b};
U_.prototype.JSC$8955_setLoaded=function(){if(this.JSC$8960_currentlyLoadingModule_){var J=this.JSC$8960_currentlyLoadingModule_.getId(),c=[];if(this.JSC$8960_extraEdges_[J]){for(var m=_.M(Object.keys(this.JSC$8960_extraEdges_[J])),b=m.next();!b.done;b=m.next()){b=b.value;var x=this.getModuleInfo(b);x&&!x.isLoaded()&&(this.removeExtraEdge(J,b),c.push(b))}this.loadMultiple(c)}this.isDisposed()||((c=this.moduleInfoMap[J].onLoad((0,_.Wa)(this.getModuleContext,this)))&&c.length&&LCa(this,new jL.ModuleLoadFailure(jL.ModuleLoadFailure.JSC$8957_Type.INIT_ERROR,
void 0,void 0,void 0,c[0])),_.j2(this.userInitiatedLoadingModuleIds_,J),_.j2(this.loadingModuleIds_,J),this.loadingModuleIds_.length===0&&Ye8(this),this.lastInitialModuleId_&&J==this.lastInitialModuleId_&&(this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback()),Sz(this),this.JSC$8960_currentlyLoadingModule_=null)}};
U_.prototype.isModuleLoading=function(J){if(_.Aq(this.loadingModuleIds_,J))return!0;for(var c=0;c<this.requestedModuleIdsQueue_.length;c++)if(_.Aq(this.requestedModuleIdsQueue_[c],J))return!0;return!1};
U_.prototype.load=function(J,c){return WC_(this,[J],c)[J]};
U_.prototype.loadMultiple=function(J){return WC_(this,J)};
var zw_=function(J,c){_.Aq(J.userInitiatedLoadingModuleIds_,c)||J.userInitiatedLoadingModuleIds_.push(c)};
U_.prototype.beforeLoadModuleCode=function(J){var c=this;this.JSC$8960_currentlyLoadingModule_&&this.JSC$8960_currentlyLoadingModule_.getId()==="synthetic_module_overhead"&&(this.JSC$8955_setLoaded(),delete this.moduleInfoMap.synthetic_module_overhead);this.moduleInfoMap[J]&&Z4C(this,this.moduleInfoMap[J].deps_||[],function(m){m.module_=new u4;_.j2(c.loadingModuleIds_,m.getId())},function(m){return!m.isLoaded()});
this.JSC$8960_currentlyLoadingModule_=this.getModuleInfo(J)};
U_.prototype.handleLoadTimeout_=function(){ftB(this,new jL.ModuleLoadFailure(jL.ModuleLoadFailure.JSC$8957_Type.TIMEOUT));Ye8(this)};
var ftB=function(J,c){J.requestedLoadingModuleIds_.length>1?J.requestedModuleIdsQueue_=J.requestedLoadingModuleIds_.map(function(m){return[m]}).concat(J.requestedModuleIdsQueue_):LCa(J,c)},LCa=function(J,c){var m=J.requestedLoadingModuleIds_;
J.loadingModuleIds_.length=0;for(var b=[],x=0;x<J.requestedModuleIdsQueue_.length;x++){var P=J.requestedModuleIdsQueue_[x].filter(function(I){var a=XOz(this,I);return QF(m,function(k){return _.Aq(a,k)})},J);
_.Br(b,P)}for(x=0;x<m.length;x++)_.QJ(b,m[x]);for(x=0;x<b.length;x++){for(P=0;P<J.requestedModuleIdsQueue_.length;P++)_.j2(J.requestedModuleIdsQueue_[P],b[x]);_.j2(J.userInitiatedLoadingModuleIds_,b[x])}if(x=J.JSC$8960_callbackMap_.error)for(P=0;P<x.length;P++)for(var p=x[P],t=0;t<b.length;t++)p("error",b[t],c);for(b=0;b<m.length;b++)if(J.moduleInfoMap[m[b]])J.moduleInfoMap[m[b]].onError(c);J.requestedLoadingModuleIds_.length=0;Sz(J)},Ye8=function(J){for(;J.requestedModuleIdsQueue_.length;){var c=
J.requestedModuleIdsQueue_.shift().filter(function(m){return!this.getModuleInfo(m).isLoaded()},J);
if(c.length>0){J.loadModules_(c);return}}Sz(J)};
U_.prototype.registerCallback=function(J,c){Array.isArray(J)||(J=[J]);for(var m=0;m<J.length;m++){var b=J[m],x=c,P=this.JSC$8960_callbackMap_;P[b]||(P[b]=[]);P[b].push(x)}};
U_.prototype.executeCallbacks_=function(J){for(var c=this.JSC$8960_callbackMap_[J],m=0;c&&m<c.length;m++)c[m](J)};
var Z4C=function(J,c,m,b,x){b=b===void 0?function(){return!0}:b;
x=x===void 0?{}:x;c=_.M(c);for(var P=c.next();!P.done;P=c.next()){P=P.value;var p=J.getModuleInfo(P);!x[P]&&b(p)&&(x[P]=!0,Z4C(J,p.deps_||[],m,b,x),m(p))}};
U_.prototype.dispose=function(){_.Bm(_.Lw.getValues(this.moduleInfoMap),this.baseModuleInfo_);this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.userInitiatedLoadingModuleIds_=[];this.requestedModuleIdsQueue_=[];this.JSC$8960_callbackMap_={};this.isDisposed_=!0};
U_.prototype.isDisposed=function(){return this.isDisposed_};
_.Y9=function(){return new U_};var qeu=[5E3,2E4],UzC=function(){this.JSC$8064_loader_=null;this.JSC$8968_moduleInfoMap_=Object.create(null);this.loadingModules_=Object.create(null);this.activeLoads_=0;this.JSC$8968_queue_=[];this.JSC$8968_extraEdges_=Object.create(null);this.JSC$8968_currentlyLoadingModule_=this.getModuleInfo("{base}")};
_.D(UzC,nHC);_.V=UzC.prototype;_.V.setAllModuleInfoString=function(){this.JSC$8968_currentlyLoadingModule_&&this.JSC$8968_currentlyLoadingModule_.getId()=="{base}"&&this.JSC$8955_setLoaded()};
_.V.getModuleInfo=function(J){var c=this.JSC$8968_moduleInfoMap_[J];c||(c=new f_([],J),this.JSC$8968_moduleInfoMap_[J]=c);return c};
_.V.addExtraEdge=function(J,c){this.getModuleInfo(J).isLoaded()?this.load(c):(this.JSC$8968_extraEdges_[J]||(this.JSC$8968_extraEdges_[J]={}),this.JSC$8968_extraEdges_[J][c]=!0)};
_.V.removeExtraEdge=function(J,c){if(this.JSC$8968_extraEdges_[J]){delete this.JSC$8968_extraEdges_[J][c];for(var m in this.JSC$8968_extraEdges_[J])return;delete this.JSC$8968_extraEdges_[J]}};
_.V.isModuleLoading=function(J){return!!this.loadingModules_[J]};
_.V.load=function(J){Se_(this,[J]);return hwa(this,J)};
_.V.loadMultiple=function(J){var c=this,m=Object.create(null),b=[];J.forEach(function(x){m[x]||(m[x]=hwa(c,x),b.push(x))});
Se_(this,b);return m};
_.V.beforeLoadModuleCode=function(J){var c;((c=this.JSC$8968_currentlyLoadingModule_)==null?void 0:c.getId())==="synthetic_module_overhead"&&this.JSC$8955_setLoaded();var m,b;dz8(this,(b=(m=this.JSC$8968_moduleInfoMap_[J])==null?void 0:m.deps_)!=null?b:[],function(x){x.module_=new u4},function(x){return!x.isLoaded()});
this.JSC$8968_currentlyLoadingModule_=this.getModuleInfo(J)};
_.V.JSC$8955_setLoaded=function(){if(this.JSC$8968_currentlyLoadingModule_){var J=this.JSC$8968_currentlyLoadingModule_.getId(),c=[];if(this.JSC$8968_extraEdges_[J]){for(var m=_.M(Object.keys(this.JSC$8968_extraEdges_[J])),b=m.next();!b.done;b=m.next())b=b.value,this.getModuleInfo(b).isLoaded()||(this.removeExtraEdge(J,b),c.push(b));this.loadMultiple(c)}this.JSC$8968_currentlyLoadingModule_.onLoad(function(){return null});
this.JSC$8968_currentlyLoadingModule_=null;(!this.isModuleLoading(J)&&/^sy[0-9a-z]{0,4}$/.test(J)||J==="synthetic_module_overhead")&&delete this.JSC$8968_moduleInfoMap_[J];this.unsetModulesAsLoading(J)}};
_.V.setModulesAsLoading=function(){var J=this;_.s$.apply(0,arguments).forEach(function(c){J.loadingModules_[c]=!0})};
_.V.unsetModulesAsLoading=function(){var J=this;_.s$.apply(0,arguments).forEach(function(c){delete J.loadingModules_[c]})};
var hwa=function(J,c){return new _.IN(function(m,b){var x=J.getModuleInfo(c);x.isLoaded()?m(null):(x.registerCallback(function(){m(null)}),b4Q(x,function(P){var p="Error loading "+c+": "+P;
P instanceof jL.ModuleLoadFailure&&P.url&&(p=p+", requested url: "+P.url.toString());b(Error(p))}))})},Se_=function(J,c){c=c.filter(function(m){return!J.isModuleLoading(m)&&!J.getModuleInfo(m).isLoaded()});
c.length>0&&(J.setModulesAsLoading.apply(J,_.L6(c)),J.JSC$8968_queue_.push(c),$zZ(J))},$zZ=function(J){for(var c={};J.activeLoads_<Infinity&&J.JSC$8968_queue_.length>0;c={finishLoad:void 0,
ids$jscomp$36:void 0,attempt$jscomp$6:void 0,load$jscomp$1:void 0})c.ids$jscomp$36=J.JSC$8968_queue_.shift().filter(function(m){return!J.getModuleInfo(m).isLoaded()}),c.ids$jscomp$36.length>0&&(J.activeLoads_++,c.finishLoad=function(m){return function(){J.activeLoads_--;
$zZ(J);m.finishLoad=function(){}}}(c),_.k1(c.ids$jscomp$36.map(function(m){return hwa(J,m)})).then(function(m){return function(){(0,m.finishLoad)()}}(c)),c.attempt$jscomp$6=0,c.load$jscomp$1=function(m){return function(){if(Object.keys(J.JSC$8968_extraEdges_).length>0&&!J.JSC$8064_loader_.supportsExtraEdges)throw Error("sd");
J.JSC$8064_loader_.JSC$8947_loadModules(m.ids$jscomp$36,J.JSC$8968_moduleInfoMap_,{extraEdges:J.JSC$8968_extraEdges_,onError:function(b,x){var P=qeu[m.attempt$jscomp$6++];P!==void 0?setTimeout(function(){(0,m.load$jscomp$1)()},P):(J.unsetModulesAsLoading.apply(J,_.L6(m.ids$jscomp$36)),(0,m.finishLoad)(),m.ids$jscomp$36.forEach(function(p){p=J.getModuleInfo(p);
if(!p.isLoaded())p.onError(new jL.ModuleLoadFailure(jL.ModuleLoadFailure.JSC$8957_Type.CONSECUTIVE_FAILURES,b,m.ids$jscomp$36,x))}))}})}}(c),(0,c.load$jscomp$1)())},dz8=function(J,c,m,b,x){b=b===void 0?function(){return!0}:b;
x=x===void 0?{}:x;c=_.M(c);for(var P=c.next();!P.done;P=c.next()){P=P.value;var p=J.getModuleInfo(P);!x[P]&&b(p)&&(x[P]=!0,dz8(J,p.deps_||[],m,b,x),m(p))}};var GBz=!/^\s*class\s*\{\s*\}\s*$/.test(function(){}.toString());var W$J=Symbol("vd");window.JSCompiler_renameProperty=function(J){return J};/*

 Copyright 2016 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var EH$=!GBz||HTMLElement.es5Shimmed||_.mo.Reflect===void 0||_.mo.customElements===void 0||_.mo.customElements.polyfillWrapFlushCallback||!1,vHz,viT=function(){var J=HTMLElement;if(EH$)return J;if(vHz!==void 0)return vHz;var c=_.mo.Reflect,m=function(){return c.construct(J,[],this.constructor)};
m.prototype=J.prototype;m.prototype.constructor=m;m.es5Shimmed=!0;Object.setPrototypeOf(m,J);return vHz=m},O42=!1;EH$||O42||(O42=!0,_.mo.HTMLElement=viT());/*

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 XPq=/(url\()([^)]*)(\))/g,fLu=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,YiJ,me;var U4=!window.ShadyDOM||!window.ShadyDOM.inUse,AI_=!(window.ShadyCSS&&!window.ShadyCSS.nativeCss),Rwu=!window.customElements.polyfillWrapFlushCallback,oHB;if(oHB=U4&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype)try{var QN2=new CSSStyleSheet;QN2.replaceSync("");var ewQ=document.createElement("div");ewQ.attachShadow({mode:"open"});ewQ.shadowRoot.adoptedStyleSheets=[QN2];oHB=ewQ.shadowRoot.adoptedStyleSheets[0]===QN2}catch(J){oHB=!1}
var jNQ=oHB,FCu=window.Polymer&&window.Polymer.rootPath||qiQ(document.baseURI||window.location.href),Hy=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,OKG=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,$A=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,ltz=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,q8=window.Polymer&&window.Polymer.legacyOptimizations||!1,dP=window.Polymer&&window.Polymer.legacyWarnings||!1,yIL=window.Polymer&&window.Polymer.syncInitialRender||
!1,nN=window.Polymer&&window.Polymer.legacyUndefined||!1,BvQ=window.Polymer&&window.Polymer.orderedComputed||!1,hW=window.Polymer&&window.Polymer.removeNestedTemplates||!1,dD=window.Polymer&&window.Polymer.fastDomIf||!1,$_=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,gHQ=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,J5z=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;var Gc={},c5B={},wP=function(){return HTMLElement.apply(this,arguments)||this};
_.D(wP,HTMLElement);wP.import=function(J,c){return J?(J=Gc[J]||c5B[J.toLowerCase()])&&c?J.querySelector(c):J:null};
wP.prototype.attributeChangedCallback=function(J,c,m){c!==m&&this.register()};
wP.prototype.register=function(J){if(J=J||this.id){if($A&&(Gc[J]||c5B[J.toLowerCase()])!==void 0)throw Gc[J]=c5B[J.toLowerCase()]=null,Error("wd`"+J);this.id=J;Gc[J]=c5B[J.toLowerCase()]=this;this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}};
_.eE.Object.defineProperties(wP.prototype,{assetpath:{configurable:!0,enumerable:!0,get:function(){if(!this.__assetpath){var J=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument;J=_.ba(this.getAttribute("assetpath")||"",J.baseURI);this.__assetpath=qiQ(J)}return this.__assetpath}}});
_.eE.Object.defineProperties(wP,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["id"]}}});
wP["import"]=wP.import;wP.prototype.modules=Gc;customElements.define("dom-module",wP);var m8Q=0,Sie=0,xA=[],bN6=0,UdR=!1,x8Q=document.createTextNode(""),VEZ,X6;(new window.MutationObserver(hpo)).observe(x8Q,{characterData:!0});_.E_={after:function(J){return{run:function(c){return window.setTimeout(c,J)},
cancel:function(c){window.clearTimeout(c)}}},
run:function(J,c){return window.setTimeout(J,c)},
cancel:function(J){window.clearTimeout(J)}};
_.rp={run:function(J){return window.requestAnimationFrame(J)},
cancel:function(J){window.cancelAnimationFrame(J)}};
VEZ={run:function(J){return window.requestIdleCallback?window.requestIdleCallback(J):window.setTimeout(J,16)},
cancel:function(J){window.cancelIdleCallback?window.cancelIdleCallback(J):window.clearTimeout(J)}};
X6={run:function(J){UdR||(UdR=!0,x8Q.textContent=bN6++);xA.push(J);return m8Q++},
cancel:function(J){var c=J-Sie;if(c>=0){if(!xA[c])throw Error("xd`"+J);xA[c]=null}}};var PaC=0,vE=function(J){var c=J.__mixinApplications;c||(c=new WeakMap,J.__mixinApplications=c);var m=PaC++;return function(b){var x=b.__mixinSet;if(x&&x[m])return b;var P=c,p=P.get(b);p||(p=J(b),P.set(b,p),b=Object.create(p.__mixinSet||x||null),b[m]=!0,p.__mixinSet=b);return p}};_.kA=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?function(J){return ShadyDOM.patch(J)}:function(J){return J};var MEa=vE(function(J){var c=function(){var m=J.call(this)||this;m.__dataEnabled=!1;m.__dataReady=!1;m.__dataInvalid=!1;m.__data={};m.__dataPending=null;m.__dataOld=null;m.__dataInstanceProps=null;m.__dataCounter=0;m.__serializing=!1;m._initializeProperties();return m};
_.D(c,J);c.createProperties=function(m){var b=this.prototype,x;for(x in m)x in b||b._createPropertyAccessor(x)};
c.attributeNameForProperty=function(m){return m.toLowerCase()};
c.typeForProperty=function(){};
c.prototype._createPropertyAccessor=function(m,b){this._addPropertyToAttributeMap(m);this.hasOwnProperty("__dataHasAccessor")||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor));this.__dataHasAccessor[m]||(this.__dataHasAccessor[m]=!0,this._definePropertyAccessor(m,b))};
c.prototype._addPropertyToAttributeMap=function(m){this.hasOwnProperty("__dataAttributes")||(this.__dataAttributes=Object.assign({},this.__dataAttributes));var b=this.__dataAttributes[m];b||(b=this.constructor.attributeNameForProperty(m),this.__dataAttributes[b]=m);return b};
c.prototype._definePropertyAccessor=function(m,b){Object.defineProperty(this,m,{get:function(){return this.__data[m]},
set:b?function(){}:function(x){this._setPendingProperty(m,x,!0)&&this._invalidateProperties()}})};
c.prototype.ready=function(){this.__dataReady=!0;this._flushProperties()};
c.prototype._initializeProperties=function(){for(var m in this.__dataHasAccessor)this.hasOwnProperty(m)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[m]=this[m],delete this[m])};
c.prototype._initializeInstanceProperties=function(m){Object.assign(this,m)};
c.prototype._setProperty=function(m,b){this._setPendingProperty(m,b)&&this._invalidateProperties()};
c.prototype._getProperty=function(m){return this.__data[m]};
c.prototype._setPendingProperty=function(m,b){var x=this.__data[m],P=this._shouldPropertyChange(m,b,x);P&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||m in this.__dataOld||(this.__dataOld[m]=x),this.__data[m]=b,this.__dataPending[m]=b);return P};
c.prototype._isPropertyPending=function(m){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(m))};
c.prototype._invalidateProperties=function(){var m=this;!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,X6.run(function(){m.__dataInvalid&&(m.__dataInvalid=!1,m._flushProperties())}))};
c.prototype._enableProperties=function(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())};
c.prototype._flushProperties=function(){this.__dataCounter++;var m=this.__data,b=this.__dataPending,x=this.__dataOld;this._shouldPropertiesChange(m,b,x)&&(this.__dataOld=this.__dataPending=null,this._propertiesChanged(m,b,x));this.__dataCounter--};
c.prototype._shouldPropertiesChange=function(m,b){return!!b};
c.prototype._propertiesChanged=function(){};
c.prototype._shouldPropertyChange=function(m,b,x){return x!==b&&(x===x||b===b)};
c.prototype.attributeChangedCallback=function(m,b,x,P){b!==x&&this._attributeToProperty(m,x);J.prototype.attributeChangedCallback&&J.prototype.attributeChangedCallback.call(this,m,b,x,P)};
c.prototype._attributeToProperty=function(m,b,x){if(!this.__serializing){var P=this.__dataAttributes;m=P&&P[m]||m;this[m]=this._deserializeValue(b,x||this.constructor.typeForProperty(m))}};
c.prototype._propertyToAttribute=function(m,b,x){this.__serializing=!0;x=arguments.length<3?this[m]:x;this._valueToNodeAttribute(this,x,b||this.constructor.attributeNameForProperty(m));this.__serializing=!1};
c.prototype._valueToNodeAttribute=function(m,b,x){b=this._serializeValue(b);if(x==="class"||x==="name"||x==="slot")m=(0,_.kA)(m);b===void 0?m.removeAttribute(x):m.setAttribute(x,b===""&&window.trustedTypes?window.trustedTypes.emptyScript:b)};
c.prototype._serializeValue=function(m){switch(typeof m){case "boolean":return m?"":void 0;default:return m!=null?m.toString():void 0}};
c.prototype._deserializeValue=function(m,b){switch(b){case Boolean:return m!==null;case Number:return Number(m);default:return m}};
return c});var pyQ=0,ddo=[];var NPZ=vE(function(J){function c(P){P=Object.getPrototypeOf(P);return P.prototype instanceof x?P:null}
function m(P){if(!P.hasOwnProperty("__ownProperties")){var p=null;if(P.hasOwnProperty("properties")){var t=P.properties;if(t){p={};for(var I in t){var a=t[I];p[I]=typeof a==="function"?{type:a}:a}}}P.__ownProperties=p}return P.__ownProperties}
var b=MEa(J),x=function(){return b.apply(this,arguments)||this};
_.D(x,b);x.finalize=function(){if(!this.hasOwnProperty("__finalized")){var P=c(this);P&&P.finalize();this.__finalized=!0;this._finalizeClass()}};
x._finalizeClass=function(){var P=m(this);P&&this.createProperties(P)};
x.typeForProperty=function(P){return(P=this._properties[P])&&P.type};
x.prototype._initializeProperties=function(){pyQ++;this.constructor.finalize();b.prototype._initializeProperties.call(this)};
x.prototype.connectedCallback=function(){b.prototype.connectedCallback&&b.prototype.connectedCallback.call(this);this._enableProperties()};
x.prototype.disconnectedCallback=function(){b.prototype.disconnectedCallback&&b.prototype.disconnectedCallback.call(this)};
_.eE.Object.defineProperties(x,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){var P=this;if(!this.hasOwnProperty("__observedAttributes")){$dt(this.prototype);var p=this._properties;this.__observedAttributes=p?Object.keys(p).map(function(t){return P.prototype._addPropertyToAttributeMap(t)}):[]}return this.__observedAttributes}},
_properties:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("__properties")){var P=c(this);this.__properties=Object.assign({},P&&P._properties,m(this))}return this.__properties}}});
return x});var GHG={},Exq=/-[a-z]/g,vxQ=/([A-Z])/g;for(var tEC={},I18=HTMLElement.prototype;I18;){for(var Ke2=Object.getOwnPropertyNames(I18),Ca6=0;Ca6<Ke2.length;Ca6++)tEC[Ke2[Ca6]]=!0;I18=Object.getPrototypeOf(I18)}var a16=window.trustedTypes?function(J){return trustedTypes.isHTML(J)||trustedTypes.isScript(J)||trustedTypes.isScriptURL(J)}:function(){return!1},kka=vE(function(J){var c=MEa(J);
J=function(){return c.apply(this,arguments)||this};
_.D(J,c);J.createPropertiesForAttributes=function(){for(var m=this.observedAttributes,b=0;b<m.length;b++)this.prototype._createPropertyAccessor(V8(m[b]))};
J.attributeNameForProperty=function(m){return Py(m)};
J.prototype._initializeProperties=function(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null);c.prototype._initializeProperties.call(this)};
J.prototype._initializeProtoProperties=function(m){for(var b in m)this._setProperty(b,m[b])};
J.prototype._ensureAttribute=function(m,b){this.hasAttribute(m)||this._valueToNodeAttribute(this,b,m)};
J.prototype._serializeValue=function(m){switch(typeof m){case "object":if(m instanceof Date)return m.toString();if(m){if(a16(m))return m;try{return JSON.stringify(m)}catch(b){return""}}default:return c.prototype._serializeValue.call(this,m)}};
J.prototype._deserializeValue=function(m,b){switch(b){case Object:try{var x=JSON.parse(m)}catch(P){x=m}break;case Array:try{x=JSON.parse(m)}catch(P){x=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+m)}break;case Date:x=isNaN(m)?String(m):Number(m);x=new Date(x);break;default:x=c.prototype._deserializeValue.call(this,m,b)}return x};
J.prototype._definePropertyAccessor=function(m,b){if(!tEC[m]){var x=this[m];x!==void 0&&(this.__data?this._setPendingProperty(m,x):(this.__dataProto?this.hasOwnProperty("__dataProto")||(this.__dataProto=Object.create(this.__dataProto)):this.__dataProto={},this.__dataProto[m]=x))}c.prototype._definePropertyAccessor.call(this,m,b)};
J.prototype._hasAccessor=function(m){return this.__dataHasAccessor&&this.__dataHasAccessor[m]};
J.prototype._isPropertyPending=function(m){return!!(this.__dataPending&&m in this.__dataPending)};
return J});var HNB={"dom-if":!0,"dom-repeat":!0},iNC=!1,nAC=!1,TP6=function(){var J=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:function(c){return c}});
return function(c,m,b){m=m.getAttribute(b);J&&b.startsWith("on-")?c.setAttribute(b,J.createScript(m,b)):c.setAttribute(b,m)}}(),wy$=vE(function(J){var c=function(){return J.apply(this,arguments)||this};
_.D(c,J);c._parseTemplate=function(m,b){if(!m._templateInfo){var x=m._templateInfo={};x.nodeInfoList=[];x.nestedTemplate=!!b;x.stripWhiteSpace=b&&b.stripWhiteSpace||m.hasAttribute&&m.hasAttribute("strip-whitespace");this._parseTemplateContent(m,x,{parent:null})}return m._templateInfo};
c._parseTemplateContent=function(m,b,x){return this._parseTemplateNode(m.content,b,x)};
c._parseTemplateNode=function(m,b,x){var P=!1;m.localName!="template"||m.hasAttribute("preserve-content")?m.localName==="slot"&&(b.hasInsertionPoint=!0):P=this._parseTemplateNestedTemplate(m,b,x)||P;if(!iNC){iNC=!0;var p=document.createElement("textarea");p.placeholder="a";nAC=p.placeholder===p.textContent}nAC&&m.localName==="textarea"&&m.placeholder&&m.placeholder===m.textContent&&(m.textContent=null);m.firstChild&&this._parseTemplateChildNodes(m,b,x);m.hasAttributes&&m.hasAttributes()&&(P=this._parseTemplateNodeAttributes(m,
b,x)||P);return P||x.noted};
c._parseTemplateChildNodes=function(m,b,x){if(m.localName!=="script"&&m.localName!=="style")for(var P=m.firstChild,p=0,t;P;P=t){if(P.localName=="template"){var I=P.getAttribute("is");if(I&&HNB[I])for(t=P,t.removeAttribute("is"),P=t.ownerDocument.createElement(I),t.parentNode.replaceChild(P,t),P.appendChild(t);t.attributes.length;)I=t.attributes[0].name,TP6(P,t,I),t.removeAttribute(I)}t=P.nextSibling;if(P.nodeType===Node.TEXT_NODE){for(I=t;I&&I.nodeType===Node.TEXT_NODE;)P.textContent+=I.textContent,
t=I.nextSibling,m.removeChild(I),I=t;if(b.stripWhiteSpace&&!P.textContent.trim()){m.removeChild(P);continue}}I={parentIndex:p,parentInfo:x};this._parseTemplateNode(P,b,I)&&(I.infoIndex=b.nodeInfoList.push(I)-1);P.parentNode&&p++}};
c._parseTemplateNestedTemplate=function(m,b,x){b=this._parseTemplate(m,b);(b.content=m.content.ownerDocument.createDocumentFragment()).appendChild(m.content);x.templateInfo=b;return!0};
c._parseTemplateNodeAttributes=function(m,b,x){for(var P=!1,p=Array.from(m.attributes),t=p.length-1,I;I=p[t];t--)P=this._parseTemplateNodeAttribute(m,b,x,I.name,I.value)||P;return P};
c._parseTemplateNodeAttribute=function(m,b,x,P,p){return P.slice(0,3)==="on-"?(m.removeAttribute(P),x.events=x.events||[],x.events.push({name:P.slice(3),value:p}),!0):P==="id"?(x.id=p,!0):!1};
c._contentForTemplate=function(m){var b=m._templateInfo;return b&&b.content||m.content};
c.prototype._stampTemplate=function(m,b){m&&!m.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(m);b=b||this.constructor._parseTemplate(m);var x=b.nodeInfoList;m=document.importNode(b.content||m.content,!0);m.__noInsertionPoint=!b.hasInsertionPoint;var P=m.nodeList=Array(x.length);m.$={};for(var p=0,t=x.length,I=void 0;p<t&&(I=x[p]);p++){var a=P[p]=OqQ(m,I);I.id&&(m.$[I.id]=a);var k=a,H=I,T=b;H.templateInfo&&(k._templateInfo=H.templateInfo,k._parentTemplateInfo=
T);if(I.events&&I.events.length)for(k=0,H=I.events,T=void 0;k<H.length&&(T=H[k]);k++)this._addMethodEventListenerToNode(a,T.name,T.value,this)}return m};
c.prototype._addMethodEventListenerToNode=function(m,b,x,P){x=APt(P||m,x);this._addEventListenerToNode(m,b,x);return x};
c.prototype._addEventListenerToNode=function(m,b,x){m.addEventListener(b,x)};
c.prototype._removeEventListenerFromNode=function(m,b,x){m.removeEventListener(b,x)};
return c});var CN=0,ia=[],r5C={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},s3Q=/[A-Z]/,Le6=function(J,c,m,b,x){var P=x?pN(J):J;if(c=c[P])for(P=0;P<c.length;P++){var p=c[P];if(p.info.lastRun!==CN&&(!x||F$Q(J,p.trigger))){p.info.lastRun=CN;p=p.info;for(var t=m,I=b,a=0,k=t.length-1,H=-1;a<=k;){var T=a+k>>1,r=I.get(t[T].methodInfo)-I.get(p.methodInfo);if(r<0)a=T+1;else if(r>0)k=T-1;else{H=T;break}}H<
0&&(H=k+1);t.splice(H,0,p)}}},t8e=[],D8Z=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"),AW=vE(function(J){var c=wy$(kka(J));
J=function(){var m=c.call(this)||this;m.__isPropertyEffectsClient=!0;return m};
_.D(J,c);J.prototype._initializeProperties=function(){c.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};
J.prototype._registerHost=function(){if(O_.length){var m=O_[O_.length-1];m._enqueueClient(this);this.__dataHost=m}};
J.prototype._initializeProtoProperties=function(m){this.__data=Object.create(m);this.__dataPending=Object.create(m);this.__dataOld={}};
J.prototype._initializeInstanceProperties=function(m){var b=this.__readOnly,x;for(x in m)b&&b[x]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[x]=this.__dataPending[x]=m[x])};
J.prototype._addPropertyEffect=function(m,b,x){this._createPropertyAccessor(m,b=="__readOnly");var P=jOq(this,b,!0)[m];P||(P=this[b][m]=[]);P.push(x)};
J.prototype._removePropertyEffect=function(m,b,x){m=jOq(this,b,!0)[m];x=m.indexOf(x);x>=0&&m.splice(x,1)};
J.prototype._hasPropertyEffect=function(m,b){b=this[b];return!(!b||!b[m])};
J.prototype._hasReadOnlyEffect=function(m){return this._hasPropertyEffect(m,"__readOnly")};
J.prototype._hasNotifyEffect=function(m){return this._hasPropertyEffect(m,"__notifyEffects")};
J.prototype._hasReflectEffect=function(m){return this._hasPropertyEffect(m,"__reflectEffects")};
J.prototype._hasComputedEffect=function(m){return this._hasPropertyEffect(m,"__computeEffects")};
J.prototype._setPendingPropertyOrPath=function(m,b,x,P){if(P||pN(Array.isArray(m)?m[0]:m)!==m){if(!P&&(P=KN(this,m),m=epr(this,m,b),!m||!c.prototype._shouldPropertyChange.call(this,m,b,P)))return!1;this.__dataHasPaths=!0;if(this._setPendingProperty(m,b,x)){if(x=this.__dataLinkedPaths)for(var p in x)P=x[p],N8(p,m)?(P=t5(p,P,m),this._setPendingPropertyOrPath(P,b,!0,!0)):N8(P,m)&&(P=t5(P,p,m),this._setPendingPropertyOrPath(P,b,!0,!0));return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[m])return this._setPendingProperty(m,
b,x);this[m]=b}return!1};
J.prototype._setUnmanagedPropertyToNode=function(m,b,x){if(x!==m[b]||typeof x=="object")b==="className"&&(m=(0,_.kA)(m)),m[b]=x};
J.prototype._setPendingProperty=function(m,b,x){var P=this.__dataHasPaths&&M8(m);if(this._shouldPropertyChange(m,b,(P?this.__dataTemp:this.__data)[m])){this.__dataPending||(this.__dataPending={},this.__dataOld={});m in this.__dataOld||(this.__dataOld[m]=this.__data[m]);P?this.__dataTemp[m]=b:this.__data[m]=b;this.__dataPending[m]=b;if(P||this.__notifyEffects&&this.__notifyEffects[m])this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[m]=x;return!0}return!1};
J.prototype._setProperty=function(m,b){this._setPendingProperty(m,b,!0)&&this._invalidateProperties()};
J.prototype._invalidateProperties=function(){this.__dataReady&&this._flushProperties()};
J.prototype._enqueueClient=function(m){this.__dataPendingClients=this.__dataPendingClients||[];m!==this&&this.__dataPendingClients.push(m)};
J.prototype._flushClients=function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)};
J.prototype.__enableOrFlushClients=function(){var m=this.__dataPendingClients;if(m){this.__dataPendingClients=null;for(var b=0;b<m.length;b++){var x=m[b];x.__dataEnabled?x.__dataPending&&x._flushProperties():x._enableProperties()}}};
J.prototype._readyClients=function(){this.__enableOrFlushClients()};
J.prototype.setProperties=function(m,b){for(var x in m)!b&&this.__readOnly&&this.__readOnly[x]||this._setPendingPropertyOrPath(x,m[x],!0);this._invalidateProperties()};
J.prototype.ready=function(){this._flushProperties();this.__dataClientsReady||this._flushClients();this.__dataPending&&this._flushProperties()};
J.prototype._propertiesChanged=function(m,b,x){m=this.__dataHasPaths;this.__dataHasPaths=!1;var P;if(P=this.__computeEffects)if(BvQ){CN++;var p=cTt(this),t=[],I;for(I in b)Le6(I,P,t,p,m);for(;I=t.shift();)bKr(this,"",b,x,I)&&Le6(I.methodInfo,P,t,p,m);Object.assign(x,this.__dataOld);Object.assign(b,this.__dataPending);this.__dataPending=null}else for(p=b;a3(this,P,p,x,m);)Object.assign(x,this.__dataOld),Object.assign(b,this.__dataPending),p=this.__dataPending,this.__dataPending=null;P=this.__dataToNotify;
this.__dataToNotify=null;this._propagatePropertyChanges(b,x,m);this._flushClients();a3(this,this.__reflectEffects,b,x,m);a3(this,this.__observeEffects,b,x,m);if(P){p=this.__notifyEffects;t=CN++;for(var a in P)if(P[a]){if(I=p){var k=p;I=t;var H=a,T=b,r=x,W=m,Y=!1,Z=W?pN(H):H;if(k=k[Z]){Z=0;for(var d=k.length,G=void 0;Z<d&&(G=k[Z]);Z++)G.info&&G.info.lastRun===I||W&&!F$Q(H,G.trigger)||(G.info&&(G.info.lastRun=I),G.fn(this,H,T,r,G.info,W,void 0),Y=!0)}I=Y}if(I)var e=!0;else{if(I=m)I=a,H=b,T=pN(I),T!==
I?(T=Py(T)+"-changed",yPJ(this,T,H[I],I),I=!0):I=!1;I&&(e=!0)}}var A;e&&(A=this.__dataHost)&&A._invalidateProperties&&A._invalidateProperties()}this.__dataCounter==1&&(this.__dataTemp={})};
J.prototype._propagatePropertyChanges=function(m,b,x){this.__propagateEffects&&a3(this,this.__propagateEffects,m,b,x);this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,m,b,x)};
J.prototype._runEffectsForTemplate=function(m,b,x,P){var p=this,t=function(I,a){a3(p,m.propertyEffects,I,x,a,m.nodeList);for(var k=m.firstChild;k;k=k.nextSibling)p._runEffectsForTemplate(k,I,x,a)};
m.runEffects?m.runEffects(t,b,P):t(b,P)};
J.prototype.linkPaths=function(m,b){m=I3(m);b=I3(b);this.__dataLinkedPaths=this.__dataLinkedPaths||{};this.__dataLinkedPaths[m]=b};
J.prototype.unlinkPaths=function(m){m=I3(m);this.__dataLinkedPaths&&delete this.__dataLinkedPaths[m]};
J.prototype.notifySplices=function(m,b){var x={path:""};m=KN(this,m,x);k9q(this,m,x.path,b)};
J.prototype.get=function(m,b){return KN(b||this,m)};
J.prototype.set=function(m,b,x){x?epr(x,m,b):this.__readOnly&&this.__readOnly[m]||this._setPendingPropertyOrPath(m,b,!0)&&this._invalidateProperties()};
J.prototype.push=function(m){var b=_.s$.apply(1,arguments),x={path:""},P=KN(this,m,x),p=P.length,t=P.push.apply(P,_.L6(b));b.length&&Tk(this,P,x.path,p,b.length,[]);return t};
J.prototype.pop=function(m){var b={path:""};m=KN(this,m,b);var x=!!m.length,P=m.pop();x&&Tk(this,m,b.path,m.length,0,[P]);return P};
J.prototype.splice=function(m,b,x){var P=_.s$.apply(3,arguments),p={path:""},t=KN(this,m,p);b<0?b=t.length-Math.floor(-b):b&&(b=Math.floor(b));var I=arguments.length===2?t.splice(b):t.splice.apply(t,[b,x].concat(_.L6(P)));(P.length||I.length)&&Tk(this,t,p.path,b,P.length,I);return I};
J.prototype.shift=function(m){var b={path:""};m=KN(this,m,b);var x=!!m.length,P=m.shift();x&&Tk(this,m,b.path,0,0,[P]);return P};
J.prototype.unshift=function(m){var b=_.s$.apply(1,arguments),x={path:""},P=KN(this,m,x),p=P.unshift.apply(P,_.L6(b));b.length&&Tk(this,P,x.path,0,b.length,[]);return p};
J.prototype.notifyPath=function(m,b){if(arguments.length==1){var x={path:""};b=KN(this,m,x);x=x.path}else x=Array.isArray(m)?I3(m):m;this._setPendingPropertyOrPath(x,b,!0,!0)&&this._invalidateProperties()};
J.prototype._createReadOnlyProperty=function(m,b){this._addPropertyEffect(m,"__readOnly");b&&(this["_set"+(m[0].toUpperCase()+m.substring(1))]=function(x){this._setProperty(m,x)})};
J.prototype._createPropertyObserver=function(m,b,x){var P={property:m,method:b,dynamicFn:!!x};this._addPropertyEffect(m,"__observeEffects",{fn:lLe,info:P,trigger:{name:m}});x&&this._addPropertyEffect(b,"__observeEffects",{fn:lLe,info:P,trigger:{name:b}})};
J.prototype._createMethodObserver=function(m,b){var x=Kfu(m);if(!x)throw Error("yd`"+m);pgR(this,x,"__observeEffects",mxJ,null,b)};
J.prototype._createNotifyingProperty=function(m){this._addPropertyEffect(m,"__notifyEffects",{fn:BsG,info:{eventName:Py(m)+"-changed",property:m}})};
J.prototype._createReflectedProperty=function(m){var b=this.constructor.attributeNameForProperty(m);b[0]==="-"?console.warn("Property "+m+" cannot be reflected to attribute "+b+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(m,"__reflectEffects",{fn:gxG,info:{attrName:b}})};
J.prototype._createComputedProperty=function(m,b,x){var P=Kfu(b);if(!P)throw Error("zd`"+b);b=pgR(this,P,"__computeEffects",bKr,m,x);jOq(this,"__computeInfo")[m]=b};
J.prototype._marshalArgs=function(m,b,x){for(var P=this.__data,p=[],t=0,I=m.length;t<I;t++){var a=m[t],k=a.name,H=a.structured,T=a.wildcard,r=a.value;a.literal||(T?(a=N8(k,b),H=C$m(P,x,a?b:k),r={path:a?b:k,value:H,base:a?KN(P,k):H}):r=H?C$m(P,x,k):P[k]);if(nN&&!this._overrideLegacyUndefined&&r===void 0&&m.length>1)return ia;p[t]=r}return p};
J.addPropertyEffect=function(m,b,x){this.prototype._addPropertyEffect(m,b,x)};
J.createPropertyObserver=function(m,b,x){this.prototype._createPropertyObserver(m,b,x)};
J.createMethodObserver=function(m,b){this.prototype._createMethodObserver(m,b)};
J.createNotifyingProperty=function(m){this.prototype._createNotifyingProperty(m)};
J.createReadOnlyProperty=function(m,b){this.prototype._createReadOnlyProperty(m,b)};
J.createReflectedProperty=function(m){this.prototype._createReflectedProperty(m)};
J.createComputedProperty=function(m,b,x){this.prototype._createComputedProperty(m,b,x)};
J.bindTemplate=function(m){return this.prototype._bindTemplate(m)};
J.prototype._bindTemplate=function(m,b){var x=this.constructor._parseTemplate(m),P=this.__preBoundTemplateInfo==x;if(!P)for(var p in x.propertyEffects)this._createPropertyAccessor(p);b?(x=Object.create(x),x.wasPreBound=P,this.__templateInfo?(m=m._parentTemplateInfo||this.__templateInfo,b=m.lastChild,x.parent=m,m.lastChild=x,(x.previousSibling=b)?b.nextSibling=x:m.firstChild=x):this.__templateInfo=x):this.__preBoundTemplateInfo=x;return x};
J._addTemplatePropertyEffect=function(m,b,x){(m.hostProps=m.hostProps||{})[b]=!0;m=m.propertyEffects=m.propertyEffects||{};(m[b]=m[b]||[]).push(x)};
J.prototype._stampTemplate=function(m,b){b=b||this._bindTemplate(m,!0);O_.push(this);m=c.prototype._stampTemplate.call(this,m,b);O_.pop();b.nodeList=m.nodeList;if(!b.wasPreBound)for(var x=b.childNodes=[],P=m.firstChild;P;P=P.nextSibling)x.push(P);m.templateInfo=b;x=b.nodeList;P=b.nodeInfoList;if(P.length)for(var p=0;p<P.length;p++){var t=x[p],I=P[p].bindings;if(I)for(var a=0;a<I.length;a++){var k=I[a],H=t,T=k;if(T.isCompound){for(var r=H.__dataCompoundStorage||(H.__dataCompoundStorage={}),W=T.parts,
Y=Array(W.length),Z=0;Z<W.length;Z++)Y[Z]=W[Z].literal;W=T.target;r[W]=Y;T.literal&&T.kind=="property"&&(W==="className"&&(H=(0,_.kA)(H)),H[W]=T.literal)}M8m(t,this,k)}t.__dataHost=this}this.__dataClientsReady&&(this._runEffectsForTemplate(b,this.__data,null,!1),this._flushClients());return m};
J.prototype._removeBoundDom=function(m){m=m.templateInfo;var b=m.previousSibling,x=m.nextSibling,P=m.parent;b?b.nextSibling=x:P&&(P.firstChild=x);x?x.previousSibling=b:P&&(P.lastChild=b);m.nextSibling=m.previousSibling=null;m=m.childNodes;for(b=0;b<m.length;b++)x=m[b],(0,_.kA)((0,_.kA)(x).parentNode).removeChild(x)};
J._parseTemplateNode=function(m,b,x){var P=c._parseTemplateNode.call(this,m,b,x);if(m.nodeType===Node.TEXT_NODE){var p=this._parseBindings(m.textContent,b);p&&(m.textContent=Nio(p)||" ",P$R(this,b,x,"text","textContent",p),P=!0)}return P};
J._parseTemplateNodeAttribute=function(m,b,x,P,p){var t=this._parseBindings(p,b);if(t){p=P;var I="property";s3Q.test(P)?I="attribute":P[P.length-1]=="$"&&(P=P.slice(0,-1),I="attribute");var a=Nio(t);a&&I=="attribute"&&(P=="class"&&m.hasAttribute("class")&&(a+=" "+m.getAttribute(P)),m.setAttribute(P,a));I=="attribute"&&p=="disable-upgrade$"&&m.setAttribute(P,"");m.localName==="input"&&p==="value"&&m.setAttribute(p,"");m.removeAttribute(p);I==="property"&&(P=V8(P));P$R(this,b,x,I,P,t,a);return!0}return c._parseTemplateNodeAttribute.call(this,
m,b,x,P,p)};
J._parseTemplateNestedTemplate=function(m,b,x){var P=c._parseTemplateNestedTemplate.call(this,m,b,x),p=m.parentNode,t=x.templateInfo,I=p.localName==="dom-if",a=p.localName==="dom-repeat";hW&&(I||a)&&(p.removeChild(m),x=x.parentInfo,x.templateInfo=t,x.noted=!0,P=!1);m=t.hostProps;if(dD&&I)m&&(b.hostProps=Object.assign(b.hostProps||{},m),hW||(x.parentInfo.noted=!0));else for(var k in m)P$R(this,b,x,"property","_host_"+k,[{mode:"{",source:k,dependencies:[k],hostProp:!0}]);return P};
J._parseBindings=function(m,b){for(var x=[],P=0,p;(p=D8Z.exec(m))!==null;){p.index>P&&x.push({literal:m.slice(P,p.index)});P=p[1][0];var t=!!p[2];p=p[3].trim();var I=!1,a="",k=-1;P=="{"&&(k=p.indexOf("::"))>0&&(a=p.substring(k+2),p=p.substring(0,k),I=!0);k=Kfu(p);var H=[];if(k){var T=k,r=T.args;T=T.methodName;for(var W=0;W<r.length;W++){var Y=r[W];Y.literal||H.push(Y)}if((r=b.dynamicFns)&&r[T]||k.static)H.push(T),k.dynamicFn=!0}else H.push(p);x.push({source:p,mode:P,negate:t,customEvent:I,signature:k,
dependencies:H,event:a});P=D8Z.lastIndex}P&&P<m.length&&(m=m.substring(P))&&x.push({literal:m});return x.length?x:null};
J._evaluateBinding=function(m,b,x,P,p,t){m=b.signature?mxJ(m,x,P,p,b.signature):x!=b.source?KN(m,b.source):t&&M8(x)?KN(m,x):m.__data[x];b.negate&&(m=!m);return m};
_.eE.Object.defineProperties(J.prototype,{PROPERTY_EFFECT_TYPES:{configurable:!0,enumerable:!0,get:function(){return r5C}}});
return J}),O_=[];var We_=window.ShadyCSS&&window.ShadyCSS.cssBuild,Rb=vE(function(J){function c(b,x,P,p){if(!We_){for(var t=x.content.querySelectorAll("style"),I=Tit(x),a=wgu(P),k=x.content.firstElementChild,H=0;H<a.length;H++){var T=a[H];T.textContent=b._processStyleText(T.textContent,p);x.content.insertBefore(T,k)}for(k=a=0;k<I.length;k++)H=I[k],T=t[a],T!==H?(H=H.cloneNode(!0),T.parentNode.insertBefore(H,T)):a++,H.textContent=b._processStyleText(H.textContent,p)}window.ShadyCSS&&window.ShadyCSS.prepareTemplate(x,
P);if(J5z&&We_&&jNQ&&(x=x.content.querySelectorAll("style"))){var r="";Array.from(x).forEach(function(W){r+=W.textContent;W.parentNode.removeChild(W)});
b._styleSheet=new CSSStyleSheet;b._styleSheet.replaceSync(r)}}
var m=NPZ(AW(J));J=function(){return m.call(this)||this};
_.D(J,m);J._finalizeClass=function(){m._finalizeClass.call(this);var b;this.hasOwnProperty("__ownObservers")||(this.__ownObservers=this.hasOwnProperty("observers")?this.observers:null);(b=this.__ownObservers)&&this.createObservers(b,this._properties);this._prepareTemplate()};
J._prepareTemplate=function(){var b=this.template;b&&(typeof b==="string"?(console.error("template getter must return HTMLTemplateElement"),b=null):q8||(b=b.cloneNode(!0)));this.prototype._template=b};
J.createProperties=function(b){for(var x in b){var P=this.prototype,p=x,t=b[x],I=b;t.computed&&(t.readOnly=!0);t.computed&&(P._hasReadOnlyEffect(p)?console.warn("Cannot redefine computed property '"+p+"'."):P._createComputedProperty(p,t.computed,I));t.readOnly&&!P._hasReadOnlyEffect(p)?P._createReadOnlyProperty(p,!t.computed):t.readOnly===!1&&P._hasReadOnlyEffect(p)&&console.warn("Cannot make readOnly property '"+p+"' non-readOnly.");t.reflectToAttribute&&!P._hasReflectEffect(p)?P._createReflectedProperty(p):
t.reflectToAttribute===!1&&P._hasReflectEffect(p)&&console.warn("Cannot make reflected property '"+p+"' non-reflected.");t.notify&&!P._hasNotifyEffect(p)?P._createNotifyingProperty(p):t.notify===!1&&P._hasNotifyEffect(p)&&console.warn("Cannot make notify property '"+p+"' non-notify.");t.observer&&P._createPropertyObserver(p,t.observer,I[t.observer]);P._addPropertyToAttributeMap(p)}};
J.createObservers=function(b,x){for(var P=this.prototype,p=0;p<b.length;p++)P._createMethodObserver(b[p],x)};
J.prototype._initializeProperties=function(){this.constructor.finalize();this.constructor._finalizeTemplate(this.localName);m.prototype._initializeProperties.call(this);this.rootPath=FCu;this.importPath=this.constructor.importPath;var b=this.constructor;if(!b.hasOwnProperty("__propertyDefaults")){b.__propertyDefaults=null;var x=b._properties,P;for(P in x){var p=x[P];"value"in p&&(b.__propertyDefaults=b.__propertyDefaults||{},b.__propertyDefaults[P]=p)}}if(b=b.__propertyDefaults)for(var t in b)x=b[t],
this._canApplyPropertyDefault(t)&&(x=typeof x.value=="function"?x.value.call(this):x.value,this._hasAccessor(t)?this._setPendingProperty(t,x,!0):this[t]=x)};
J.prototype._canApplyPropertyDefault=function(b){return!this.hasOwnProperty(b)};
J._processStyleText=function(b,x){return Zqo(b,x)};
J._finalizeTemplate=function(b){var x=this.prototype._template;if(x&&!x.__polymerFinalized){x.__polymerFinalized=!0;var P=this.importPath;P=P?_.ba(P):"";c(this,x,b,P);this.prototype._bindTemplate(x)}};
J.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this);m.prototype.connectedCallback.call(this)};
J.prototype.ready=function(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$);m.prototype.ready.call(this)};
J.prototype._readyClients=function(){this._template&&(this.root=this._attachDom(this.root));m.prototype._readyClients.call(this)};
J.prototype._attachDom=function(b){var x=(0,_.kA)(this);if(x.attachShadow)return b?(x.shadowRoot||(x.attachShadow({mode:"open",shadyUpgradeFragment:b}),x.shadowRoot.appendChild(b),this.constructor._styleSheet&&(x.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),yIL&&window.ShadyDOM&&window.ShadyDOM.flushInitial(x.shadowRoot),x.shadowRoot):null;throw Error("Bd");};
J.prototype.updateStyles=function(b){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,b)};
J.prototype.resolveUrl=function(b,x){!x&&this.importPath&&(x=_.ba(this.importPath));return _.ba(b,x)};
J._parseTemplateContent=function(b,x,P){x.dynamicFns=x.dynamicFns||this._properties;return m._parseTemplateContent.call(this,b,x,P)};
J._addTemplatePropertyEffect=function(b,x,P){!dP||x in this._properties||P.info.part.signature&&P.info.part.signature.static||P.info.part.hostProp||b.nestedTemplate||console.warn("Property '"+x+"' used in template but not declared in 'properties'; attribute will not be observed.");return m._addTemplatePropertyEffect.call(this,b,x,P)};
_.eE.Object.defineProperties(J,{template:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_template")){var b=this.prototype.hasOwnProperty("_template")?this.prototype._template:void 0;typeof b==="function"&&(b=b());if(b===void 0){if(b=this.hasOwnProperty("is")){b=this.is;var x=null;if(b&&(!$A||ltz)&&(x=wP.import(b,"template"),$A&&!x))throw Error("Ad`"+b);b=x}b=b||Object.getPrototypeOf(this.prototype).constructor.template}this._template=b}return this._template},
set:function(b){this._template=b}},
importPath:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_importPath")){var b=this.importMeta;b?this._importPath=qiQ(b.url):this._importPath=(b=wP.import(this.is))&&b.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}return this._importPath}}});
return J});var zF8=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:function(J){return J}}),uUf=function(J,c){u6j(J,c);
this.value=c.reduce(function(m,b,x){return m+fIG(b)+J[x+1]},J[0]).toString()},u6j;
uUf.prototype.toString=function(){return this.value};
_.f1j=function(J){var c=_.s$.apply(1,arguments);u6j(J,c);var m=document.createElement("template");c=c.reduce(function(b,x,P){if(x instanceof HTMLTemplateElement)x=x.innerHTML;else if(x instanceof uUf)x=fIG(x);else throw Error("Dd`"+x);return b+x+J[P+1]},J[0]);
zF8&&(c=zF8.createHTML(c));m.innerHTML=c;return m};
u6j=function(J,c){if(!Array.isArray(J)||!Array.isArray(J.raw)||c.length!==J.length-1)throw new TypeError("Ed");};var ob=Rb(HTMLElement);var Y42=vE(function(J){var c=Rb(J);J=function(){var m=c.call(this)||this;m.__lastItems=null;m.__lastMulti=null;m.__selectedMap=null;return m};
_.D(J,c);J.prototype.__updateSelection=function(m,b){var x=b.path;x=="items"?(b=b.base||[],x=this.__lastItems,m!==this.__lastMulti&&this.clearSelection(),x&&(x=z1G(b,x),this.__applySplices(x)),this.__lastItems=b,this.__lastMulti=m):b.path=="items.splices"?this.__applySplices(b.value.indexSplices):(m=x.slice(6),b=parseInt(m,10),m.indexOf(".")<0&&m==b&&this.__deselectChangedIdx(b))};
J.prototype.__applySplices=function(m){for(var b=this,x=this.__selectedMap,P={},p=0;p<m.length;P={s$jscomp$108:void 0},p++){P.s$jscomp$108=m[p];x.forEach(function(k){return function(H,T){H<k.s$jscomp$108.index||(H>=k.s$jscomp$108.index+k.s$jscomp$108.removed.length?x.set(T,H+k.s$jscomp$108.addedCount-k.s$jscomp$108.removed.length):x.set(T,-1))}}(P));
for(var t=0;t<P.s$jscomp$108.addedCount;t++){var I=P.s$jscomp$108.index+t;x.has(this.items[I])&&x.set(this.items[I],I)}}this.__updateLinks();var a=0;x.forEach(function(k,H){k<0?(b.multi?b.splice("selected",a,1):b.selected=b.selectedItem=null,x.delete(H)):a++})};
J.prototype.__updateLinks=function(){var m=this;this.__dataLinkedPaths={};if(this.multi){var b=0;this.__selectedMap.forEach(function(x){x>=0&&m.linkPaths("items."+x,"selected."+b++)})}else this.__selectedMap.forEach(function(x){m.linkPaths("selected","items."+x);
m.linkPaths("selectedItem","items."+x)})};
J.prototype.clearSelection=function(){this.__dataLinkedPaths={};this.__selectedMap=new Map;this.selected=this.multi?[]:null;this.selectedItem=null};
J.prototype.isSelected=function(m){return this.__selectedMap.has(m)};
J.prototype.isIndexSelected=function(m){return this.isSelected(this.items[m])};
J.prototype.__deselectChangedIdx=function(m){var b=this,x=this.__selectedIndexForItemIndex(m);if(x>=0){var P=0;this.__selectedMap.forEach(function(p,t){x==P++&&b.deselect(t)})}};
J.prototype.__selectedIndexForItemIndex=function(m){if(m=this.__dataLinkedPaths["items."+m])return parseInt(m.slice(9),10)};
J.prototype.deselect=function(m){var b=this.__selectedMap.get(m);if(b>=0){this.__selectedMap.delete(m);var x;this.multi&&(x=this.__selectedIndexForItemIndex(b));this.__updateLinks();this.multi?this.splice("selected",x,1):this.selected=this.selectedItem=null}};
J.prototype.deselectIndex=function(m){this.deselect(this.items[m])};
J.prototype.select=function(m){this.selectIndex(this.items.indexOf(m))};
J.prototype.selectIndex=function(m){var b=this.items[m];this.isSelected(b)?this.toggle&&this.deselectIndex(m):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(b,m),this.__updateLinks(),this.multi?this.push("selected",b):this.selected=this.selectedItem=b)};
_.eE.Object.defineProperties(J,{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 J}),Xy6=Y42(ob),Qs=function(){return Xy6.apply(this,arguments)||this};
_.D(Qs,Xy6);_.eE.Object.defineProperties(Qs,{is:{configurable:!0,enumerable:!0,get:function(){return"array-selector"}},
template:{configurable:!0,enumerable:!0,get:function(){return null}}});
customElements.define(Qs.is,Qs);var ZN6=window.Polymer;window.Polymer=function(J){return window.Polymer._polymerFn(J)};
ZN6&&Object.assign(Polymer,ZN6);Polymer._polymerFn=function(){throw Error("Fd");};/*

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:Zqo,resolveUrl:_.ba,pathFromUrl:qiQ};Polymer.DomModule=wP;Polymer.Async={timeOut:_.E_,animationFrame:_.rp,idlePeriod:VEZ,microTask:X6};Polymer.dedupingMixin=vE;Polymer.wrap=_.kA;Polymer.PropertiesChanged=MEa;Polymer.telemetry={instanceCount:pyQ,incrementInstanceCount:function(){pyQ++},
registrations:ddo,register:$dt,dumpRegistrations:function(){ddo.forEach(_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry)}};Polymer.PropertiesMixin=NPZ;Polymer.CaseMap={dashToCamelCase:V8,camelToDashCase:Py};Polymer.PropertyAccessors=kka;Polymer.TemplateStamp=wy$;Polymer.Path={isPath:M8,root:pN,isAncestor:Rp2,isDescendant:N8,translate:t5,matches:oxe,normalize:I3,split:QOQ,get:KN,set:epr,isDeep:M8};Polymer.Settings={useShadow:U4,useNativeCSSProperties:AI_,useNativeCustomElements:Rwu,get rootPath(){return FCu},setRootPath:function(J){FCu=J},
get sanitizeDOMValue(){return Hy},setSanitizeDOMValue:function(J){Hy=J},
get passiveTouchGestures(){return OKG},setPassiveTouchGestures:function(J){OKG=J},
get strictTemplatePolicy(){return $A},setStrictTemplatePolicy:function(J){$A=J},
get allowTemplateFromDomModule(){return ltz},setAllowTemplateFromDomModule:function(J){ltz=J},
get legacyOptimizations(){return q8},setLegacyOptimizations:function(J){q8=J},
get syncInitialRender(){return yIL},setSyncInitialRender:function(J){yIL=J},
get legacyUndefined(){return nN},setLegacyUndefined:function(J){nN=J},
get legacyWarnings(){return dP},setLegacyWarnings:function(J){dP=J},
get orderedComputed(){return BvQ},setOrderedComputed:function(J){BvQ=J},
get fastDomIf(){return dD},setFastDomIf:function(J){dD=J},
get removeNestedTemplates(){return hW},setRemoveNestedTemplates:function(J){hW=J},
get suppressTemplateNotifications(){return $_},setSuppressTemplateNotifications:$_};Polymer.rootPath!==void 0&&(FCu=Polymer.rootPath);Polymer.sanitizeDOMValue!==void 0&&(Hy=Polymer.sanitizeDOMValue);Polymer.passiveTouchGestures!==void 0&&(OKG=Polymer.passiveTouchGestures);Polymer.strictTemplatePolicy!==void 0&&($A=Polymer.strictTemplatePolicy);ltz=Polymer.allowTemplateFromDomModule!==void 0?Polymer.allowTemplateFromDomModule:!0;Polymer.legacyOptimizations!==void 0&&(q8=Polymer.legacyOptimizations);
Polymer.syncInitialRender!==void 0&&(yIL=Polymer.syncInitialRender);Polymer.legacyUndefined!==void 0&&(nN=Polymer.legacyUndefined);Polymer.legacyWarnings!==void 0&&(dP=Polymer.legacyWarnings);Polymer.orderedComputed!==void 0&&(BvQ=Polymer.orderedComputed);Polymer.fastDomIf!==void 0&&(dD=Polymer.fastDomIf);Polymer.removeNestedTemplates!==void 0&&(hW=Polymer.removeNestedTemplates);Polymer.suppressTemplateNotifications!==void 0&&($_=Polymer.suppressTemplateNotifications);
Object.defineProperty(Polymer,"sanitizeDOMValue",{get:function(){return Hy},
set:function(J){Hy=J}});Polymer.PropertyEffects=AW;Polymer.StyleGather={stylesFromModules:nMm,stylesFromModule:iK2,stylesFromTemplate:Tit,stylesFromModuleImports:wgu,cssFromModules:stQ,cssFromModule:rTJ,cssFromTemplate:LfQ,cssFromModuleImports:function(J){return(J=wP.import(J))?_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(J):""}};Polymer.ElementMixin=Rb;Polymer.updateStyles=function(J){window.ShadyCSS&&window.ShadyCSS.styleDocument(J)};
Polymer.version="3.5.0";Polymer.ArraySplice={calculateSplices:z1G};Polymer.html=_.f1j;Polymer.htmlLiteral=function(J){return new uUf(J,_.s$.apply(1,arguments))};Polymer.Element=ob;Polymer.ArraySelectorMixin=Y42;Polymer.ArraySelector=Qs;var q4L=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,U8B=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,pHT=/@media\s(.*)/;var qc2=null,ZKr=window.HTMLImports&&window.HTMLImports.whenReady||null,UxJ;var S42=null,ez=null,jz=function(){this.customStyles=[];this.enqueued=!1;ScG(function(){window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})},hFQ=function(J){!J.enqueued&&ez&&(J.enqueued=!0,ScG(ez))};
jz.prototype.addCustomStyle=function(J){J.__seenByShadyCSS||(J.__seenByShadyCSS=!0,this.customStyles.push(J),hFQ(this))};
jz.prototype.getStyleForCustomStyle=function(J){if(J.__shadyCSSCachedStyle)return J.__shadyCSSCachedStyle;var c;J.getStyle?c=J.getStyle():c=J;return c};
jz.prototype.processStyles=function(){for(var J=this.customStyles,c=0;c<J.length;c++){var m=J[c];if(!m.__shadyCSSCachedStyle){var b=this.getStyleForCustomStyle(m);b&&(b=b.__appliedElement||b,S42&&S42(b),m.__shadyCSSCachedStyle=b)}}return J};
jz.prototype.addCustomStyle=jz.prototype.addCustomStyle;jz.prototype.getStyleForCustomStyle=jz.prototype.getStyleForCustomStyle;jz.prototype.processStyles=jz.prototype.processStyles;Object.defineProperties(jz.prototype,{transformCallback:{get:function(){return S42},
set:function(J){S42=J}},
validateCallback:{get:function(){return ez},
set:function(J){var c=!1;ez||(c=!0);ez=J;c&&hFQ(this)}}});var dxf=!(window.ShadyDOM&&window.ShadyDOM.inUse),h1Q,Q8;window.ShadyCSS&&window.ShadyCSS.cssBuild!==void 0&&(Q8=window.ShadyCSS.cssBuild);var d88=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);window.ShadyCSS&&window.ShadyCSS.nativeCss!==void 0?h1Q=window.ShadyCSS.nativeCss:window.ShadyCSS?($xe(window.ShadyCSS),window.ShadyCSS=void 0):$xe(window.WebComponents&&window.WebComponents.flags);var VLu=h1Q;var $8C=new jz;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(){},
prepareTemplateDom:function(){},
prepareTemplateStyles:function(){},
styleSubtree:function(J,c){$8C.processStyles();Yc3(J,c)},
styleElement:function(){$8C.processStyles()},
styleDocument:function(J){$8C.processStyles();Yc3(document.body,J)},
getComputedStyleValue:function(J,c){return Xge(J,c)},
flushCustomStyles:function(){},
nativeCss:VLu,nativeShadow:dxf,cssBuild:Q8,disableRuntime:d88});window.ShadyCSS.CustomStyleInterface=$8C;var Gku=window.ShadyCSS.CustomStyleInterface,Fl=function(){var J=HTMLElement.call(this)||this;J._style=null;Gku.addCustomStyle(J);return J};
_.D(Fl,HTMLElement);Fl.prototype.getStyle=function(){if(this._style)return this._style;var J=this.querySelector("style");if(!J)return null;this._style=J;var c=J.getAttribute("include");c&&(J.removeAttribute("include"),J.textContent=stQ(c)+J.textContent);this.ownerDocument!==window.document&&window.document.head.appendChild(this);return this._style};
Fl.prototype.getStyle=Fl.prototype.getStyle;window.customElements.define("custom-style",Fl);Polymer.CustomStyle=Fl;var l4=function(){this._timer=this._callback=this._asyncModule=null},ys,vAQ;
l4.prototype.setConfig=function(J,c){var m=this;this._asyncModule=J;this._callback=c;this._timer=this._asyncModule.run(function(){m._timer=null;ys.delete(m);m._callback()})};
l4.prototype.cancel=function(){this.isActive()&&(EA2(this),ys.delete(this))};
var EA2=function(J){J.isActive()&&(J._asyncModule.cancel(J._timer),J._timer=null)};
l4.prototype.flush=function(){this.isActive()&&(this.cancel(),this._callback())};
l4.prototype.isActive=function(){return this._timer!=null};
_.BE=function(J,c,m){J instanceof l4?EA2(J):J=new l4;J.setConfig(c,m);return J};
ys=new Set;_.gD=function(J){ys.add(J)};
vAQ=function(){var J=!!ys.size;ys.forEach(function(c){try{c.flush()}catch(m){setTimeout(function(){throw m;})}});
return J};var EMu=typeof document.head.style.touchAction==="string",G9m=["mousedown","mousemove","mouseup","click"],FfR=[0,1,4,2],ON6;try{ON6=(new MouseEvent("test",{buttons:1})).buttons===1}catch(J){ON6=!1}var jtf=ON6,vMo=!1;(function(){try{var J=Object.defineProperty({},"passive",{get:function(){vMo=!0}});
window.addEventListener("test",null,J);window.removeEventListener("test",null,J)}catch(c){}})();
var R1r=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),oMe=[],A5C={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},MQm={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0},QtD=function(J){var c=J.sourceCapabilities;if(!c||c.firesTouchEvents)if(J.__polymerGesturesHandled={skip:!0},J.type==="click"){c=!1;for(var m=gMQ(J),b=0;b<m.length;b++){if(m[b].nodeType===Node.ELEMENT_NODE)if(m[b].localName==="label")oMe.push(m[b]);
else if(A5C[m[b].localName]){var x=m[b];var P=Array.prototype.slice.call(x.labels||[]);if(!P.length){P=[];try{var p=x.getRootNode();if(x.id){var t=p.querySelectorAll("label[for = '"+x.id+"']");for(x=0;x<t.length;x++)P.push(t[x])}}catch(I){}}for(x=0;x<P.length;x++)c=c||oMe.indexOf(P[x])>-1}if(m[b]===RF_)return}c||(J.preventDefault(),J.stopPropagation())}},RF_=null,JN=null,c3e=0,mJD=0,J3q=-1,byr=!1;
document.addEventListener("touchend",function(J){JN||e1R(!0);RF_=gMQ(J)[0];JN=_.BE(JN,_.E_.after(2500),function(){e1R();JN=RF_=null})},vMo?{passive:!0}:!1);
var gMQ=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:function(J){return J.composedPath&&J.composedPath()||[]},zk={},D1=[];
xJD({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){LN(this.info)},
mousedown:function(J){if(s4(J)){var c=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(J),m=this;yTt(this.info,function(b){s4(b)||(Z1("up",c,b),LN(m.info))},function(b){s4(b)&&Z1("up",c,b);
LN(m.info)});
Z1("down",c,J)}},
touchstart:function(J){Z1("down",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(J),J.changedTouches[0],J)},
touchend:function(J){Z1("up",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(J),J.changedTouches[0],J)}});
xJD({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(J){this.moves.length>2&&this.moves.shift();this.moves.push(J)},
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;LN(this.info)},
mousedown:function(J){if(s4(J)){var c=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(J),m=this,b=function(x){var P=x.clientX,p=x.clientY;VQr(m.info,P,p)&&(m.info.state=m.info.started?x.type==="mouseup"?"end":"track":"start",m.info.state==="start"&&Wy("tap"),m.info.addMove({x:P,y:p}),s4(x)||(m.info.state="end",LN(m.info)),c&&PDf(m.info,c,x),m.info.started=!0)};
yTt(this.info,b,function(x){m.info.started&&b(x);LN(m.info)});
this.info.x=J.clientX;this.info.y=J.clientY}},
touchstart:function(J){J=J.changedTouches[0];this.info.x=J.clientX;this.info.y=J.clientY},
touchmove:function(J){var c=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(J);J=J.changedTouches[0];var m=J.clientX,b=J.clientY;VQr(this.info,m,b)&&(this.info.state==="start"&&Wy("tap"),this.info.addMove({x:m,y:b}),PDf(this.info,c,J),this.info.state="track",this.info.started=!0)},
touchend:function(J){var c=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(J);J=J.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:J.clientX,y:J.clientY}),PDf(this.info,c,J))}});
xJD({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(J){s4(J)&&(this.info.x=J.clientX,this.info.y=J.clientY)},
click:function(J){s4(J)&&p8m(this.info,J)},
touchstart:function(J){J=J.changedTouches[0];this.info.x=J.clientX;this.info.y=J.clientY},
touchend:function(J){p8m(this.info,J.changedTouches[0],J)}});var oAQ=vE(function(J){var c=function(){return J.apply(this,arguments)||this};
_.D(c,J);c.prototype._addEventListenerToNode=function(m,b,x){ua(m,b,x)||J.prototype._addEventListenerToNode.call(this,m,b,x)};
c.prototype._removeEventListenerFromNode=function(m,b,x){fN(m,b,x)||J.prototype._removeEventListenerFromNode.call(this,m,b,x)};
return c});var ci=vE(function(J){var c=function(){return J.apply(this,arguments)||this};
_.D(c,J);c.prototype._shouldPropertyChange=function(m,b,x){return NJq(this,m,b,x,!0)};
return c}),Q3_=vE(function(J){var c=function(){return J.apply(this,arguments)||this};
_.D(c,J);c.prototype._shouldPropertyChange=function(m,b,x){return NJq(this,m,b,x,this.mutableData)};
_.eE.Object.defineProperties(c,{properties:{configurable:!0,enumerable:!0,get:function(){return{mutableData:Boolean}}}});
return c});
ci._mutablePropertyChange=NJq;var tQq=!1;var eF6=oAQ(Q3_(AW(HTMLElement))),mQ=function(){var J=eF6.call(this)||this;if($A)throw Error("Gd");J.root=null;J.$=null;J.__children=null;return J};
_.D(mQ,eF6);_.V=mQ.prototype;_.V.attributeChangedCallback=function(){this.mutableData=!0};
_.V.connectedCallback=function(){IiD()||(this.style.display="none");this.render()};
_.V.disconnectedCallback=function(){this.__removeChildren()};
_.V.__insertChildren=function(){(0,_.kA)((0,_.kA)(this).parentNode).insertBefore(this.root,this)};
_.V.__removeChildren=function(){if(this.__children)for(var J=0;J<this.__children.length;J++)this.root.appendChild(this.__children[J])};
_.V.render=function(){var J=this;if(!this.__children){var c=c||this.querySelector("template");if(!c){var m=new MutationObserver(function(){if(c=J.querySelector("template"))m.disconnect(),J.render();else throw Error("Hd");});
m.observe(this,{childList:!0});return}this.root=this._stampTemplate(c);this.$=this.root.$;this.__children=[];for(var b=this.root.firstChild;b;b=b.nextSibling)this.__children[this.__children.length]=b;this._enableProperties()}this.__insertChildren();this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
_.eE.Object.defineProperties(mQ,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["mutable-data"]}}});
customElements.define("dom-bind",mQ);Polymer.Debouncer=l4;Polymer.Gestures={gestures:zk,recognizers:D1,deepTargetFind:BiT,addListener:ua,removeListener:fN,register:xJD,setTouchAction:_.YA,prevent:Wy,resetMouseCanceller:function(){JN&&JN.flush()},
findOriginalTarget:_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,add:ua,remove:fN};Polymer.GestureEventListeners=oAQ;Polymer.MutableData=ci;Polymer.OptionalMutableData=Q3_;Polymer.DomBind=mQ;_.be=function(){do{var J=window.ShadyDOM&&ShadyDOM.flush();window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush();var c=vAQ()}while(J||c)};var Kx2=null;CDT.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:CDT,writable:!0}});var r3r=AW(CDT),w8R=ci(r3r),j3L=AW(function(){}),SE=function(J){var c=j3L.call(this)||this;
c._configureProperties(J);c.root=c._stampTemplate(c.__dataHost);var m=[];c.children=m;for(var b=c.root.firstChild;b;b=b.nextSibling)m.push(b),b.__templatizeInstance=c;c.__templatizeOwner&&c.__templatizeOwner.__hideTemplateChildren__&&c._showHideChildren(!0);m=c.__templatizeOptions;(J&&m.instanceProps||!m.instanceProps)&&c._enableProperties();return c};
_.D(SE,j3L);_.V=SE.prototype;_.V._configureProperties=function(J){if(this.__templatizeOptions.forwardHostProp)for(var c in this.__hostProps)this._setPendingProperty(c,this.__dataHost["_host_"+c]);for(var m in J)this._setPendingProperty(m,J[m])};
_.V.forwardHostProp=function(J,c){this._setPendingPropertyOrPath(J,c,!1,!0)&&this.__dataHost._enqueueClient(this)};
_.V._addEventListenerToNode=function(J,c,m){var b=this;if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(J,c,function(P){P.model=b;m(P)});
else{var x=this.__dataHost.__dataHost;x&&x._addEventListenerToNode(J,c,m)}};
_.V._showHideChildren=function(J){kUq(J,this.children)};
_.V._setUnmanagedPropertyToNode=function(J,c,m){J.__hideTemplateChildren__&&J.nodeType==Node.TEXT_NODE&&c=="textContent"?J.__polymerTextContent__=m:j3L.prototype._setUnmanagedPropertyToNode.call(this,J,c,m)};
_.V.dispatchEvent=function(){return!0};
_.eE.Object.defineProperties(SE.prototype,{parentModel:{configurable:!0,enumerable:!0,get:function(){var J=this.__parentModel;if(!J){var c;J=this;do J=J.__dataHost.__dataHost;while((c=J.__templatizeOptions)&&!c.parentModel);this.__parentModel=J}return J}}});
var iyf=ci(SE);var x6=function(){var J=ob.call(this)||this;J.__renderDebouncer=null;J._lastIf=!1;J.__hideTemplateChildren__=!1;return J};
_.D(x6,ob);_.V=x6.prototype;_.V.__debounceRender=function(){var J=this;this.__renderDebouncer=_.BE(this.__renderDebouncer,X6,function(){return J.__render()});
_.gD(this.__renderDebouncer)};
_.V.disconnectedCallback=function(){ob.prototype.disconnectedCallback.call(this);var J=(0,_.kA)(this).parentNode;J&&(J.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||(0,_.kA)(J).host)||this.__teardownInstance()};
_.V.connectedCallback=function(){ob.prototype.connectedCallback.call(this);IiD()||(this.style.display="none");this.if&&this.__debounceRender()};
_.V.__ensureTemplate=function(){var J=this;if(!this.__template){var c=this._templateInfo?this:(0,_.kA)(this).querySelector("template");if(!c){var m=new MutationObserver(function(){if((0,_.kA)(J).querySelector("template"))m.disconnect(),J.__render();else throw Error("Kd");});
m.observe(this,{childList:!0});return!1}this.__template=c}return!0};
_.V.__ensureInstance=function(){var J=(0,_.kA)(this).parentNode;if(this.__hasInstance()){var c=this.__getInstanceNodes();if(c&&c.length&&(0,_.kA)(this).previousSibling!==c[c.length-1])for(var m=0,b=void 0;m<c.length&&(b=c[m]);m++)(0,_.kA)(J).insertBefore(b,this)}else{if(!J||!this.__ensureTemplate())return!1;this.__createAndInsertInstance(J)}return!0};
_.V.render=function(){_.be()};
_.V.__render=function(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren();$_&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)};
_.V.__hasInstance=function(){};
_.V.__getInstanceNodes=function(){};
_.V.__createAndInsertInstance=function(){};
_.V.__teardownInstance=function(){};
_.V._showHideChildren=function(){};
_.eE.Object.defineProperties(x6,{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:x6.prototype.__debounceRender},restamp:{type:Boolean,observer:x6.prototype.__debounceRender},notifyDomChange:{type:Boolean}}}}});
var FeC=function(){var J=x6.call(this)||this;J.__instance=null;J.__syncInfo=null;return J};
_.D(FeC,x6);_.V=FeC.prototype;_.V.__hasInstance=function(){return!!this.__instance};
_.V.__getInstanceNodes=function(){return this.__instance.templateInfo.childNodes};
_.V.__createAndInsertInstance=function(J){var c=this,m=this.__dataHost||this;if($A&&!this.__dataHost)throw Error("Id");var b=m._bindTemplate(this.__template,!0);b.runEffects=function(x,P,p){var t=c.__syncInfo;if(c.if)t&&(c.__syncInfo=null,c._showHideChildren(),P=Object.assign(t.changedProps,P)),x(P,p);else if(c.__instance)if(t||(t=c.__syncInfo={runEffects:x,changedProps:{}}),p)for(var I in P)x=pN(I),t.changedProps[x]=c.__dataHost[x];else Object.assign(t.changedProps,P)};
this.__instance=m._stampTemplate(this.__template,b);(0,_.kA)(J).insertBefore(this.__instance,this)};
_.V.__syncHostProperties=function(){var J=this.__syncInfo;J&&(this.__syncInfo=null,J.runEffects(J.changedProps,!1))};
_.V.__teardownInstance=function(){var J=this.__dataHost||this;this.__instance&&(J._removeBoundDom(this.__instance),this.__syncInfo=this.__instance=null)};
_.V._showHideChildren=function(){var J=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==J&&(this.__instance.__hidden=J,kUq(J,this.__instance.templateInfo.childNodes));J||this.__syncHostProperties()};
var l1Z=function(){var J=x6.call(this)||this;J.__ctor=null;J.__instance=null;J.__invalidProps=null;return J};
_.D(l1Z,x6);_.V=l1Z.prototype;_.V.__hasInstance=function(){return!!this.__instance};
_.V.__getInstanceNodes=function(){return this.__instance.children};
_.V.__createAndInsertInstance=function(J){this.__ctor||(this.__ctor=h5(this.__template,this,{mutableData:!0,forwardHostProp:function(c,m){this.__instance&&(this.if?this.__instance.forwardHostProp(c,m):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[pN(c)]=!0))}}));
this.__instance=new this.__ctor;(0,_.kA)(J).insertBefore(this.__instance.root,this)};
_.V.__teardownInstance=function(){if(this.__instance){var J=this.__instance.children;if(J&&J.length){var c=(0,_.kA)(J[0]).parentNode;if(c){c=(0,_.kA)(c);for(var m=0,b=void 0;m<J.length&&(b=J[m]);m++)c.removeChild(b)}}this.__instance=this.__invalidProps=null}};
_.V.__syncHostProperties=function(){var J=this.__invalidProps;if(J){this.__invalidProps=null;for(var c in J)this.__instance._setPendingProperty(c,this.__dataHost[c]);this.__instance._flushProperties()}};
_.V._showHideChildren=function(){var J=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==J&&(this.__instance.__hidden=J,this.__instance._showHideChildren(J));J||this.__syncHostProperties()};
_.Dh=dD?FeC:l1Z;customElements.define(_.Dh.is,_.Dh);Polymer.enqueueDebouncer=_.gD;Polymer.flush=_.be;Polymer.Templatize={templatize:h5,modelForElement:uWT};Polymer.TemplateInstanceBase=SE;Polymer.DomIf=_.Dh;var y5Q=Q3_(ob),Ls=function(){var J=y5Q.call(this)||this;J.__instances=[];J.__renderDebouncer=null;J.__itemsIdxToInstIdx={};J.__chunkCount=null;J.__renderStartTime=null;J.__itemsArrayChanged=!1;J.__shouldMeasureChunk=!1;J.__shouldContinueChunking=!1;J.__chunkingId=0;J.__sortFn=null;J.__filterFn=null;J.__observePaths=null;J.__ctor=null;J.__isDetached=!0;J.template=null;return J};
_.D(Ls,y5Q);_.V=Ls.prototype;_.V.disconnectedCallback=function(){y5Q.prototype.disconnectedCallback.call(this);this.__isDetached=!0;for(var J=0;J<this.__instances.length;J++)this.__detachInstance(J);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)};
_.V.connectedCallback=function(){y5Q.prototype.connectedCallback.call(this);IiD()||(this.style.display="none");if(this.__isDetached){this.__isDetached=!1;for(var J=(0,_.kA)((0,_.kA)(this).parentNode),c=0;c<this.__instances.length;c++)this.__attachInstance(c,J);this.__chunkingId&&this.__render()}};
_.V.__ensureTemplatized=function(){var J=this;if(!this.__ctor){var c=this.template=this._templateInfo?this:this.querySelector("template");if(!c){var m=new MutationObserver(function(){if(J.querySelector("template"))m.disconnect(),J.__render();else throw Error("Ld");});
m.observe(this,{childList:!0});return!1}var b={};b[this.as]=!0;b[this.indexAs]=!0;b[this.itemsIndexAs]=!0;this.__ctor=h5(c,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:b,forwardHostProp:function(x,P){for(var p=this.__instances,t=0,I=void 0;t<p.length&&(I=p[t]);t++)I.forwardHostProp(x,P)},
notifyInstanceProp:function(x,P,p){oxe(this.as,P)&&(x=x[this.itemsIndexAs],P==this.as&&(this.items[x]=p),P=t5(this.as,"items."+x,P),this.notifyPath(P,p))}})}return!0};
_.V.__getMethodHost=function(){return this.__dataHost._methodHost||this.__dataHost};
_.V.__functionFromPropertyValue=function(J){if(typeof J==="string"){var c=this.__getMethodHost();return function(){return c[J].apply(c,arguments)}}return J};
_.V.__sortChanged=function(J){this.__sortFn=this.__functionFromPropertyValue(J);this.items&&this.__debounceRender(this.__render)};
_.V.__filterChanged=function(J){this.__filterFn=this.__functionFromPropertyValue(J);this.items&&this.__debounceRender(this.__render)};
_.V.__computeFrameTime=function(J){return Math.ceil(1E3/J)};
_.V.__observeChanged=function(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")};
_.V.__handleObservedPaths=function(J){if(this.__sortFn||this.__filterFn)if(!J)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths)for(var c=this.__observePaths,m=0;m<c.length;m++)J.indexOf(c[m])===0&&this.__debounceRender(this.__render,this.delay)};
_.V.__itemsChanged=function(J){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items);this.__handleItemPath(J.path,J.value)||(J.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))};
_.V.__debounceRender=function(J,c){c=c===void 0?0:c;this.__renderDebouncer=_.BE(this.__renderDebouncer,c>0?_.E_.after(c):X6,J.bind(this));_.gD(this.__renderDebouncer)};
_.V.render=function(){this.__debounceRender(this.__render);_.be()};
_.V.__render=function(){var J=this;if(this.__ensureTemplatized()){var c=this.items||[],m=this.__sortAndFilterItems(c),b=this.__calculateLimit(m.length);this.__updateInstances(c,b,m);this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(function(){J.__chunkingId=null;J.__continueChunking()}));
this._setRenderedItemCount(this.__instances.length);$_&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.V.__sortAndFilterItems=function(J){for(var c=this,m=Array(J.length),b=0;b<J.length;b++)m[b]=b;this.__filterFn&&(m=m.filter(function(x,P,p){return c.__filterFn(J[x],P,p)}));
this.__sortFn&&m.sort(function(x,P){return c.__sortFn(J[x],J[P])});
return m};
_.V.__calculateLimit=function(J){var c=J,m=this.__instances.length;if(this.initialCount){var b;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(c=Math.min(J,this.initialCount),this.__chunkCount=(b=Math.max(c-m,0))||1):(b=Math.min(Math.max(J-m,0),this.__chunkCount),c=Math.min(m+b,J));this.__shouldMeasureChunk=b===this.__chunkCount;this.__shouldContinueChunking=c<J;this.__renderStartTime=performance.now()}this.__itemsArrayChanged=!1;return c};
_.V.__continueChunking=function(){if(this.__shouldMeasureChunk){var J=performance.now()-this.__renderStartTime;this.__chunkCount=Math.round(this._targetFrameTime/J*this.__chunkCount)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)};
_.V.__updateInstances=function(J,c,m){var b=this.__itemsIdxToInstIdx={},x;for(x=0;x<c;x++){var P=this.__instances[x],p=m[x],t=J[p];b[p]=x;P?(P._setPendingProperty(this.as,t),P._setPendingProperty(this.indexAs,x),P._setPendingProperty(this.itemsIndexAs,p),P._flushProperties()):this.__insertInstance(t,x,p)}for(J=this.__instances.length-1;J>=x;J--)this.__detachAndRemoveInstance(J)};
_.V.__detachInstance=function(J){J=this.__instances[J];for(var c=(0,_.kA)(J.root),m=0;m<J.children.length;m++)c.appendChild(J.children[m]);return J};
_.V.__attachInstance=function(J,c){c.insertBefore(this.__instances[J].root,this)};
_.V.__detachAndRemoveInstance=function(J){this.__detachInstance(J);this.__instances.splice(J,1)};
_.V.__stampInstance=function(J,c,m){var b={};b[this.as]=J;b[this.indexAs]=c;b[this.itemsIndexAs]=m;return new this.__ctor(b)};
_.V.__insertInstance=function(J,c,m){J=this.__stampInstance(J,c,m);m=(m=this.__instances[c+1])?m.children[0]:this;(0,_.kA)((0,_.kA)(this).parentNode).insertBefore(J.root,m);return this.__instances[c]=J};
_.V._showHideChildren=function(J){for(var c=0;c<this.__instances.length;c++)this.__instances[c]._showHideChildren(J)};
_.V.__handleItemPath=function(J,c){var m=J.slice(6),b=m.indexOf(".");J=b<0?m:m.substring(0,b);if(J==parseInt(J,10)){m=b<0?"":m.substring(b+1);this.__handleObservedPaths(m);if(J=this.__instances[this.__itemsIdxToInstIdx[J]])J._setPendingPropertyOrPath(this.as+(m?"."+m:""),c,!1,!0),J._flushProperties();return!0}};
_.V.itemForElement=function(J){return(J=this.modelForElement(J))&&J[this.as]};
_.V.indexForElement=function(J){return(J=this.modelForElement(J))&&J[this.indexAs]};
_.V.modelForElement=function(J){return uWT(this.template,J)};
_.eE.Object.defineProperties(Ls,{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:Ls.prototype.__sortChanged},filter:{type:Function,observer:Ls.prototype.__filterChanged},observe:{type:String,observer:Ls.prototype.__observeChanged},delay:Number,renderedItemCount:{type:Number,notify:!$_,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.*)"]}}});
Ls.prototype._setRenderedItemCount=function(){};
customElements.define(Ls.is,Ls);Polymer.DomRepeat=Ls;var BPj=function(J,c){var m=this;this._nativeChildrenObserver=this._shadyChildrenObserver=null;this._connected=!1;this._target=J;this.callback=c;this._effectiveNodes=[];this._observer=null;this._scheduled=!1;this._boundSchedule=function(){m._schedule()};
this.connect();this._schedule()},gAu=function(J){var c=(0,_.kA)(J);
if(Gk(J))return c.assignedNodes({flatten:!0});J=[];for(var m=0;m<c.childNodes.length;m++){var b=c.childNodes[m];Gk(b)?J.push.apply(J,_.L6((0,_.kA)(b).assignedNodes({flatten:!0}))):J.push(b)}return J};
_.V=BPj.prototype;_.V.connect=function(){var J=this;Gk(this._target)?this._listenSlots([this._target]):(0,_.kA)(this._target).children&&(this._listenSlots((0,_.kA)(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,function(c){J._processMutations(c)}):(this._nativeChildrenObserver=new MutationObserver(function(c){J._processMutations(c)}),this._nativeChildrenObserver.observe(this._target,{childList:!0})));
this._connected=!0};
_.V.disconnect=function(){Gk(this._target)?this._unlistenSlots([this._target]):(0,_.kA)(this._target).children&&(this._unlistenSlots((0,_.kA)(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};
_.V._schedule=function(){var J=this;this._scheduled||(this._scheduled=!0,X6.run(function(){return J.flush()}))};
_.V._processMutations=function(J){this._processSlotMutations(J);this.flush()};
_.V._processSlotMutations=function(J){if(J)for(var c=0;c<J.length;c++){var m=J[c];m.addedNodes&&this._listenSlots(m.addedNodes);m.removedNodes&&this._unlistenSlots(m.removedNodes)}};
_.V.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 J={target:this._target,addedNodes:[],removedNodes:[]},c=gAu(this._target),m=z1G(c,this._effectiveNodes),b=0,x=void 0;b<m.length&&(x=m[b]);b++)for(var P=0,p=void 0;P<x.removed.length&&(p=x.removed[P]);P++)J.removedNodes.push(p);
b=0;for(x=void 0;b<m.length&&(x=m[b]);b++)for(P=x.index;P<x.index+x.addedCount;P++)J.addedNodes.push(c[P]);this._effectiveNodes=c;c=!1;if(J.addedNodes.length||J.removedNodes.length)c=!0,this.callback.call(this._target,J);return c};
_.V._listenSlots=function(J){for(var c=0;c<J.length;c++){var m=J[c];Gk(m)&&m.addEventListener("slotchange",this._boundSchedule)}};
_.V._unlistenSlots=function(J){for(var c=0;c<J.length;c++){var m=J[c];Gk(m)&&m.removeEventListener("slotchange",this._boundSchedule)}};var Vi=Element.prototype,J02=Vi.matches||Vi.matchesSelector||Vi.mozMatchesSelector||Vi.msMatchesSelector||Vi.oMatchesSelector||Vi.webkitMatchesSelector,c0z=function(J,c){return J02.call(J,c)},E4=function(J){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(J);
this.node=J},VKL;
_.V=E4.prototype;_.V.observeNodes=function(J){return new BPj(this.node,J)};
_.V.unobserveNodes=function(J){J.disconnect()};
_.V.notifyObserver=function(){};
_.V.deepContains=function(J){if((0,_.kA)(this.node).contains(J))return!0;var c=J;for(J=J.ownerDocument;c&&c!==J&&c!==this.node;)c=(0,_.kA)(c).parentNode||(0,_.kA)(c).host;return c===this.node};
_.V.getOwnerRoot=function(){return(0,_.kA)(this.node).getRootNode()};
_.V.getDistributedNodes=function(){return this.node.localName==="slot"?(0,_.kA)(this.node).assignedNodes({flatten:!0}):[]};
_.V.getDestinationInsertionPoints=function(){for(var J=[],c=(0,_.kA)(this.node).assignedSlot;c;)J.push(c),c=(0,_.kA)(c).assignedSlot;return J};
_.V.importNode=function(J,c){return(0,_.kA)(this.node instanceof Document?this.node:this.node.ownerDocument).importNode(J,c)};
_.V.getEffectiveChildNodes=function(){return gAu(this.node)};
_.V.queryDistributedElements=function(J){for(var c=this.getEffectiveChildNodes(),m=[],b=0,x=c.length,P=void 0;b<x&&(P=c[b]);b++)P.nodeType===Node.ELEMENT_NODE&&c0z(P,J)&&m.push(P);return m};
_.eE.Object.defineProperties(E4.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){var J=this.node;return J._activeElement!==void 0?J._activeElement:J.activeElement}}});
var Pi=function(J){this.event=J};
_.eE.Object.defineProperties(Pi.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 ma6=E4;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){var blB=window.ShadyDOM.Wrapper,xa8=function(){return blB.apply(this,arguments)||this};
_.D(xa8,blB);Object.getOwnPropertyNames(E4.prototype).forEach(function(J){J!="activeElement"&&J!="constructor"&&(xa8.prototype[J]=E4.prototype[J])});
YQJ(xa8.prototype,["classList"]);ma6=xa8;Object.defineProperties(Pi.prototype,{localTarget:{get:function(){var J=this.event.currentTarget;J=J&&_.rK(J).getOwnerRoot();for(var c=this.path,m=0;m<c.length;m++){var b=c[m];if(_.rK(b).getOwnerRoot()===J)return b}},
configurable:!0},path:{get:function(){return window.ShadyDOM.composedPath(this.event)},
configurable:!0}})}else fiQ(),YQJ(E4.prototype,"parentNode firstChild lastChild nextSibling previousSibling firstElementChild lastElementChild nextElementSibling previousElementSibling childNodes children classList shadowRoot".split(" ")),X8t();VKL=ma6;_.rK=function(J){J=J||document;if(J instanceof ma6)return J;if(J instanceof Pi)return J;var c=J.__domApi;c||(J instanceof Event?c=new Pi(J):c=new ma6(J),J.__domApi=c);return c};var Pk2=/:host\(:dir\((ltr|rtl)\)\)/g,MKQ=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,pSj=/:dir\((?:ltr|rtl)\)/,NKC=!(!window.ShadyDOM||!window.ShadyDOM.inUse),O4=[],MP=null,vy="",tK_=vE(function(J){NKC||MP||(vy=document.documentElement.getAttribute("dir"),MP=new MutationObserver(Zyo),MP.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));var c=kka(J);J=function(){var m=c.call(this)||this;m.__autoDirOptOut=!1;return m};
_.D(J,c);J._processStyleText=function(m,b){m=c._processStyleText.call(this,m,b);!NKC&&pSj.test(m)&&(m=this._replaceDirInCssText(m),this.__activateDir=!0);return m};
J._replaceDirInCssText=function(m){m=m.replace(Pk2,':host([dir="$1"])');return m=m.replace(MKQ,':host([dir="$2"]) $1')};
J.prototype.ready=function(){c.prototype.ready.call(this);this.__autoDirOptOut=this.hasAttribute("dir")};
J.prototype.connectedCallback=function(){c.prototype.connectedCallback&&c.prototype.connectedCallback.call(this);this.constructor.__activateDir&&(MP&&MP.takeRecords().length&&Zyo(),O4.push(this),this.__autoDirOptOut||this.setAttribute("dir",vy))};
J.prototype.disconnectedCallback=function(){c.prototype.disconnectedCallback&&c.prototype.disconnectedCallback.call(this);if(this.constructor.__activateDir){var m=O4.indexOf(this);m>-1&&O4.splice(m,1)}};
J.__activateDir=!1;return J});var IPZ=function(J){for(;J;){var c=Object.getOwnPropertyDescriptor(J,"observedAttributes");if(c)return c.get;J=Object.getPrototypeOf(J.prototype).constructor}return function(){return[]}};
vE(function(J){var c=Rb(J),m=IPZ(c);J=function(){return c.call(this)||this};
_.D(J,c);J.prototype._initializeProperties=function(){this.hasAttribute("disable-upgrade")?this.__isUpgradeDisabled=!0:c.prototype._initializeProperties.call(this)};
J.prototype._enableProperties=function(){this.__isUpgradeDisabled||c.prototype._enableProperties.call(this)};
J.prototype._canApplyPropertyDefault=function(b){return c.prototype._canApplyPropertyDefault.call(this,b)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(b))};
J.prototype.attributeChangedCallback=function(b,x,P,p){b=="disable-upgrade"?this.__isUpgradeDisabled&&P==null&&(c.prototype._initializeProperties.call(this),this.__isUpgradeDisabled=!1,(0,_.kA)(this).isConnected&&c.prototype.connectedCallback.call(this)):c.prototype.attributeChangedCallback.call(this,b,x,P,p)};
J.prototype.connectedCallback=function(){this.__isUpgradeDisabled||c.prototype.connectedCallback.call(this)};
J.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||c.prototype.disconnectedCallback.call(this)};
_.eE.Object.defineProperties(J,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return m.call(this).concat("disable-upgrade")}}});
return J});var A5=!1,UJf=[],R3=[];var $Jq=window.ShadyDOM,GU3=window.ShadyCSS;window.WebComponents?window.addEventListener("WebComponentsReady",vRm):document.readyState==="interactive"||document.readyState==="complete"?vRm():window.addEventListener("DOMContentLoaded",vRm);var Rhu=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=""},Oyr=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,A3J=/@import[^;]*;/gim,lir=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,y3T=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,BJG=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,gRD=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,jge=/^@[^\s]*keyframes/,
ehf=/\s+/g;var JmQ={};var bZm=Promise.resolve();var KyL=new Set;var CkC=/;\s*/m,aP8=/^\s*(initial)|(inherit)\s*$/,kv_=/\s*!important/,Hl2=function(){this._map={}};
Hl2.prototype.set=function(J,c){J=J.trim();this._map[J]={properties:c,dependants:{}}};
Hl2.prototype.get=function(J){J=J.trim();return this._map[J]||null};
var il8=null,pH=function(){this._measureElement=this._currentElement=null;this._map=new Hl2};
_.V=pH.prototype;_.V.detectMixin=function(J){J=U8B.test(J)||q4L.test(J);U8B.lastIndex=0;q4L.lastIndex=0;return J};
_.V.transformTemplate=function(J,c){if(J._gatheredStyle===void 0){var m=[];for(var b=J.content.querySelectorAll("style"),x=0;x<b.length;x++){var P=b[x];if(P.hasAttribute("shady-unscoped")){if(!dxf){var p=P.textContent;if(!KyL.has(p)){KyL.add(p);var t=document.createElement("style");t.setAttribute("shady-unscoped","");t.textContent=p;document.head.appendChild(t)}P.parentNode.removeChild(P)}}else m.push(P.textContent),P.parentNode.removeChild(P)}(m=m.join("").trim())?(b=document.createElement("style"),
b.textContent=m,J.content.insertBefore(b,J.content.firstChild),m=b):m=null;J._gatheredStyle=m}return(J=J._gatheredStyle)?this.JSC$9178_transformStyle(J,c):null};
_.V.JSC$9178_transformStyle=function(J,c){c=c===void 0?"":c;var m=MLD(J);this.transformRules(m,c);J.textContent=PcT(m);return m};
_.V.transformCustomStyle=function(J){var c=this,m=MLD(J);NxQ(m,function(b){b.selector===":root"&&(b.selector="html");c.transformRule(b)});
J.textContent=PcT(m);return m};
_.V.transformRules=function(J,c){var m=this;this._currentElement=c;NxQ(J,function(b){m.transformRule(b)});
this._currentElement=null};
_.V.transformRule=function(J){J.cssText=n3Z(this,J.parsedCssText,J);J.selector===":root"&&(J.selector=":host > *")};
var n3Z=function(J,c,m){c=c.replace(q4L,function(b,x,P,p){return J._produceCssProperties(b,x,P,p,m)});
return J._consumeCssProperties(c,m)};
_.V=pH.prototype;_.V._getInitialValueForProperty=function(J){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(J)};
_.V._fallbacksFromPreviousRules=function(J){for(var c=this,m=J;m.parent;)m=m.parent;var b={},x=!1;NxQ(m,function(P){(x=x||P===J)||P.selector===J.selector&&Object.assign(b,c._cssTextToMap(P.parsedCssText))});
return b};
_.V._consumeCssProperties=function(J,c){for(var m;m=U8B.exec(J);){var b=m[0],x=m[1];m=m.index;var P=m+b.indexOf("@apply"),p=m+b.length;b=J.slice(0,P);J=J.slice(p);P=c?this._fallbacksFromPreviousRules(c):{};Object.assign(P,this._cssTextToMap(b));x=this._atApplyToCssProperties(x,P);J=b+x+J;U8B.lastIndex=m+x.length}return J};
_.V._atApplyToCssProperties=function(J,c){J=J.replace(CkC,"");var m=[],b=this._map.get(J);b||(this._map.set(J,{}),b=this._map.get(J));if(b){this._currentElement&&(b.dependants[this._currentElement]=!0);var x,P=b.properties;for(x in P){var p=c&&c[x];b=[x,": var(",J,"_-_",x];p&&b.push(",",p.replace(kv_,""));b.push(")");kv_.test(P[x])&&b.push(" !important");m.push(b.join(""))}}return m.join("; ")};
_.V._replaceInitialOrInherit=function(J,c){var m=aP8.exec(c);m&&(c=m[1]?this._getInitialValueForProperty(J):"apply-shim-inherit");return c};
_.V._cssTextToMap=function(J,c){c=c===void 0?!1:c;J=J.split(";");for(var m,b,x={},P=0;P<J.length;P++)if(m=J[P])b=m.split(":"),b.length>1&&(m=b[0].trim(),b=b.slice(1).join(":"),c&&(b=this._replaceInitialOrInherit(m,b)),x[m]=b);return x};
_.V._invalidateMixinEntry=function(J){if(il8)for(var c in J.dependants)c!==this._currentElement&&il8(c)};
_.V._produceCssProperties=function(J,c,m,b,x){var P=this;m&&tLQ(m,function(W,Y){Y&&P._map.get(Y)&&(b="@apply "+Y+";")});
if(!b)return J;var p=this._consumeCssProperties(""+b,x);x=J.slice(0,J.indexOf("--"));var t=p=this._cssTextToMap(p,!0),I=this._map.get(c),a=I&&I.properties;a?t=Object.assign(Object.create(a),p):this._map.set(c,t);var k=[],H,T=!1;for(H in t){var r=p[H];r===void 0&&(r="initial");!a||H in a||(T=!0);k.push(c+"_-_"+H+": "+r)}T&&this._invalidateMixinEntry(I);I&&(I.properties=t);m&&(x=J+";"+x);return x+k.join("; ")+";"};
pH.prototype.detectMixin=pH.prototype.detectMixin;pH.prototype.transformStyle=pH.prototype.JSC$9178_transformStyle;pH.prototype.transformCustomStyle=pH.prototype.transformCustomStyle;pH.prototype.transformRules=pH.prototype.transformRules;pH.prototype.transformRule=pH.prototype.transformRule;pH.prototype.transformTemplate=pH.prototype.transformTemplate;pH.prototype._separator="_-_";Object.defineProperty(pH.prototype,"invalidCallback",{get:function(){return il8},
set:function(J){il8=J}});var NP=new pH,TKa=function(){this.customStyleInterface=null;NP.invalidCallback=cmD},tN=function(J){!J.customStyleInterface&&window.ShadyCSS.CustomStyleInterface&&(J.customStyleInterface=window.ShadyCSS.CustomStyleInterface,J.customStyleInterface.transformCallback=function(c){NP.transformCustomStyle(c)},J.customStyleInterface.validateCallback=function(){requestAnimationFrame(function(){J.customStyleInterface.enqueued&&J.flushCustomStyles()})})};
_.V=TKa.prototype;_.V.prepareTemplate=function(J,c){tN(this);Ive(J)===""&&(JmQ[c]=J,c=NP.transformTemplate(J,c),J._styleAst=c)};
_.V.flushCustomStyles=function(){tN(this);if(this.customStyleInterface){var J=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(var c=0;c<J.length;c++){var m=this.customStyleInterface.getStyleForCustomStyle(J[c]);m&&NP.transformCustomStyle(m)}this.customStyleInterface.enqueued=!1}}};
_.V.styleSubtree=function(J,c){tN(this);c&&Yc3(J,c);if(J.shadowRoot)for(this.styleElement(J),J=J.shadowRoot.children||J.shadowRoot.childNodes,c=0;c<J.length;c++)this.styleSubtree(J[c]);else for(J=J.children||J.childNodes,c=0;c<J.length;c++)this.styleSubtree(J[c])};
_.V.styleElement=function(J){tN(this);var c=J.localName,m;c?c.indexOf("-")>-1?m=c:m=J.getAttribute&&J.getAttribute("is")||"":m=J.is;c=JmQ[m];if(!(c&&Ive(c)!==""||!c||m_q(c))){if(m_q(c)||c._applyShimValidatingVersion!==c._applyShimNextVersion)this.prepareTemplate(c,m),x_R(c);if(J=J.shadowRoot)if(J=J.querySelector("style"))J.__cssRules=c._styleAst,J.textContent=PcT(c._styleAst)}};
_.V.styleDocument=function(J){tN(this);this.styleSubtree(document.body,J)};
if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var I9=new TKa,wS6=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(J,c){I9.flushCustomStyles();I9.prepareTemplate(J,c)},
prepareTemplateStyles:function(J,c,m){window.ShadyCSS.prepareTemplate(J,c,m)},
prepareTemplateDom:function(){},
styleSubtree:function(J,c){I9.flushCustomStyles();I9.styleSubtree(J,c)},
styleElement:function(J){I9.flushCustomStyles();I9.styleElement(J)},
styleDocument:function(J){I9.flushCustomStyles();I9.styleDocument(J)},
getComputedStyleValue:function(J,c){return Xge(J,c)},
flushCustomStyles:function(){I9.flushCustomStyles()},
nativeCss:VLu,nativeShadow:dxf,cssBuild:Q8,disableRuntime:d88};wS6&&(window.ShadyCSS.CustomStyleInterface=wS6)}window.ShadyCSS.ApplyShim=NP;var r0Z;r0Z=window.ShadyCSS;_.KH=vE(function(J){J=oAQ(Rb(J));var c=We_?J:tK_(J),m=IPZ(c),b={x:"pan-x",y:"pan-y",none:"none",all:"auto"};J=function(){return c.call(this)||this};
_.D(J,c);J.prototype.created=function(){};
J.prototype.__attributeReaction=function(x,P,p){(this.__dataAttributes&&this.__dataAttributes[x]||x==="disable-upgrade")&&this.attributeChangedCallback(x,P,p,null)};
J.prototype.setAttribute=function(x,P){if(gHQ&&!this._legacyForceObservedAttributes){var p=this.getAttribute(x);c.prototype.setAttribute.call(this,x,P);this.__attributeReaction(x,p,String(P))}else c.prototype.setAttribute.call(this,x,P)};
J.prototype.removeAttribute=function(x){if(gHQ&&!this._legacyForceObservedAttributes){var P=this.getAttribute(x);c.prototype.removeAttribute.call(this,x);this.__attributeReaction(x,P,null)}else c.prototype.removeAttribute.call(this,x)};
J.prototype._enableProperties=function(){this.__isUpgradeDisabled||c.prototype._enableProperties.call(this)};
J.prototype._canApplyPropertyDefault=function(x){return c.prototype._canApplyPropertyDefault.call(this,x)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(x))};
J.prototype.connectedCallback=function(){this.__needsAttributesAtConnected&&this._takeAttributes();this.__isUpgradeDisabled||(c.prototype.connectedCallback.call(this),this.isAttached=!0,this.attached())};
J.prototype.attached=function(){};
J.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||(c.prototype.disconnectedCallback.call(this),this.isAttached=!1,this.detached())};
J.prototype.detached=function(){};
J.prototype.attributeChangedCallback=function(x,P,p,t){P!==p&&(x=="disable-upgrade"?this.__isUpgradeDisabled&&p==null&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,(0,_.kA)(this).isConnected&&this.connectedCallback()):(c.prototype.attributeChangedCallback.call(this,x,P,p,t),this.attributeChanged(x,P,p)))};
J.prototype.attributeChanged=function(){};
J.prototype._initializeProperties=function(){if(q8&&this.hasAttribute("disable-upgrade"))this.__isUpgradeDisabled=!0;else{var x=Object.getPrototypeOf(this);x.hasOwnProperty("__hasRegisterFinished")||(this._registered(),x.__hasRegisterFinished=!0);c.prototype._initializeProperties.call(this);this.root=this;this.created();gHQ&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0));this._applyListeners()}};
J.prototype._takeAttributes=function(){for(var x=this.attributes,P=0,p=x.length;P<p;P++){var t=x[P];this.__attributeReaction(t.name,null,t.value)}};
J.prototype._registered=function(){};
J.prototype.ready=function(){this._ensureAttributes();c.prototype.ready.call(this)};
J.prototype._ensureAttributes=function(){};
J.prototype._applyListeners=function(){};
J.prototype.serialize=function(x){return this._serializeValue(x)};
J.prototype.deserialize=function(x,P){return this._deserializeValue(x,P)};
J.prototype.reflectPropertyToAttribute=function(x,P,p){this._propertyToAttribute(x,P,p)};
J.prototype.serializeValueToAttribute=function(x,P,p){this._valueToNodeAttribute(p||this,x,P)};
J.prototype.extend=function(x,P){if(!x||!P)return x||P;for(var p=Object.getOwnPropertyNames(P),t=0,I=void 0;t<p.length&&(I=p[t]);t++){var a=Object.getOwnPropertyDescriptor(P,I);a&&Object.defineProperty(x,I,a)}return x};
J.prototype.mixin=function(x,P){for(var p in P)x[p]=P[p];return x};
J.prototype.chainObject=function(x,P){x&&P&&x!==P&&(x.__proto__=P);return x};
J.prototype.instanceTemplate=function(x){x=this.constructor._contentForTemplate(x);return document.importNode(x,!0)};
J.prototype.fire=function(x,P,p){p=p||{};P=P===null||P===void 0?{}:P;x=new Event(x,{bubbles:p.bubbles===void 0?!0:p.bubbles,cancelable:!!p.cancelable,composed:p.composed===void 0?!0:p.composed});x.detail=P;(0,_.kA)(p.node||this).dispatchEvent(x);return x};
J.prototype.listen=function(x,P,p){x=x||this;var t=this.__boundListeners||(this.__boundListeners=new WeakMap),I=t.get(x);I||(I={},t.set(x,I));t=P+p;I[t]||(I[t]=this._addMethodEventListenerToNode(x,P,p,this))};
J.prototype.unlisten=function(x,P,p){x=x||this;var t=this.__boundListeners&&this.__boundListeners.get(x);p=P+p;var I=t&&t[p];I&&(this._removeEventListenerFromNode(x,P,I),t[p]=null)};
J.prototype.setScrollDirection=function(x,P){_.YA(P||this,b[x]||"auto")};
J.prototype.$$=function(x){return this.root.querySelector(x)};
J.prototype.distributeContent=function(){var x=_.rK(this);window.ShadyDOM&&x.shadowRoot&&ShadyDOM.flush()};
J.prototype.getEffectiveChildNodes=function(){return _.rK(this).getEffectiveChildNodes()};
J.prototype.queryDistributedElements=function(x){return _.rK(this).queryDistributedElements(x)};
J.prototype.getEffectiveChildren=function(){return this.getEffectiveChildNodes().filter(function(x){return x.nodeType===Node.ELEMENT_NODE})};
J.prototype.getEffectiveTextContent=function(){for(var x=this.getEffectiveChildNodes(),P=[],p=0,t;t=x[p];p++)t.nodeType!==Node.COMMENT_NODE&&P.push(t.textContent);return P.join("")};
J.prototype.queryEffectiveChildren=function(x){return(x=this.queryDistributedElements(x))&&x[0]};
J.prototype.queryAllEffectiveChildren=function(x){return this.queryDistributedElements(x)};
J.prototype.getContentChildNodes=function(x){return(x=this.root.querySelector(x||"slot"))?_.rK(x).getDistributedNodes():[]};
J.prototype.getContentChildren=function(x){return this.getContentChildNodes(x).filter(function(P){return P.nodeType===Node.ELEMENT_NODE})};
J.prototype.isLightDescendant=function(x){return this!==x&&(0,_.kA)(this).contains(x)&&(0,_.kA)(this).getRootNode()===(0,_.kA)(x).getRootNode()};
J.prototype.isLocalDescendant=function(x){return this.root===(0,_.kA)(x).getRootNode()};
J.prototype.scopeSubtree=function(x,P){return ERo(x,P===void 0?!1:P)};
J.prototype.getComputedStyleValue=function(x){return r0Z.getComputedStyleValue(this,x)};
J.prototype.debounce=function(x,P,p){this._debouncers=this._debouncers||{};return this._debouncers[x]=_.BE(this._debouncers[x],p>0?_.E_.after(p):X6,P.bind(this))};
J.prototype.isDebouncerActive=function(x){this._debouncers=this._debouncers||{};x=this._debouncers[x];return!(!x||!x.isActive())};
J.prototype.flushDebouncer=function(x){this._debouncers=this._debouncers||{};(x=this._debouncers[x])&&x.flush()};
J.prototype.cancelDebouncer=function(x){this._debouncers=this._debouncers||{};(x=this._debouncers[x])&&x.cancel()};
J.prototype.async=function(x,P){return P>0?_.E_.run(x.bind(this),P):~X6.run(x.bind(this))};
J.prototype.cancelAsync=function(x){x<0?X6.cancel(~x):_.E_.cancel(x)};
J.prototype.create=function(x,P){x=document.createElement(x);if(P)if(x.setProperties)x.setProperties(P);else for(var p in P)x[p]=P[p];return x};
J.prototype.elementMatches=function(x,P){return c0z(P||this,x)};
J.prototype.toggleAttribute=function(x,P){var p=this;arguments.length===3&&(p=arguments[2]);arguments.length==1&&(P=!p.hasAttribute(x));if(P)return(0,_.kA)(p).setAttribute(x,""),!0;(0,_.kA)(p).removeAttribute(x);return!1};
J.prototype.toggleClass=function(x,P,p){p=p||this;arguments.length==1&&(P=!p.classList.contains(x));P?p.classList.add(x):p.classList.remove(x)};
J.prototype.transform=function(x,P){P=P||this;P.style.webkitTransform=x;P.style.transform=x};
J.prototype.translate3d=function(x,P,p,t){this.transform("translate3d("+x+","+P+","+p+")",t||this)};
J.prototype.arrayDelete=function(x,P){if(Array.isArray(x)){if(P=x.indexOf(P),P>=0)return x.splice(P,1)}else if(P=KN(this,x).indexOf(P),P>=0)return this.splice(x,P,1);return null};
J.prototype._logger=function(x,P){Array.isArray(P)&&P.length===1&&Array.isArray(P[0])&&(P=P[0]);switch(x){case "log":case "warn":case "error":console[x].apply(console,_.L6(P))}};
J.prototype._log=function(){this._logger("log",_.s$.apply(0,arguments))};
J.prototype._warn=function(){this._logger("warn",_.s$.apply(0,arguments))};
J.prototype._error=function(){this._logger("error",_.s$.apply(0,arguments))};
J.prototype._logf=function(x){return["[%s::%s]",this.is,x].concat(_.L6(_.s$.apply(1,arguments)))};
_.eE.Object.defineProperties(J.prototype,{domHost:{configurable:!0,enumerable:!0,get:function(){var x=(0,_.kA)(this).getRootNode();return x instanceof DocumentFragment?x.host:x}}});
_.eE.Object.defineProperties(J,{importMeta:{configurable:!0,enumerable:!0,get:function(){return this.prototype.importMeta}},
observedAttributes:{configurable:!0,enumerable:!0,get:function(){return gHQ&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty("__observedAttributes")||(this.__observedAttributes=[],$dt(this.prototype)),this.__observedAttributes):m.call(this).concat("disable-upgrade")}}});
J.prototype.is="";return J});Polymer.FlattenedNodesObserver=BPj;Polymer.DomApi=VKL;Polymer.EventApi=Pi;Polymer.dom=_.rK;Polymer.dom.matchesSelector=c0z;Polymer.dom.flush=_.be;Polymer.dom.addDebouncer=_.gD;Polymer.DirMixin=tK_;Polymer.RenderStatus={beforeNextRender:_.dJ2,afterNextRender:_.o3,flush:function(){for(;UJf.length||R3.length;)qQJ(UJf),qQJ(R3);A5=!1}};Polymer.LegacyElementMixin=_.KH;var szj;szj=ci._mutablePropertyChange;var Ly8={properties:{mutableData:Boolean},_shouldPropertyChange:function(J,c,m){return szj(this,J,c,m,this.mutableData)}};Polymer.MutableDataBehavior={_shouldPropertyChange:function(J,c,m){return szj(this,J,c,m,!0)}};
Polymer.OptionalMutableDataBehavior=Ly8;var Km3={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},iZQ={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},HZe=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},iZQ),DaL=(0,_.KH)(HTMLElement),j7J=function(J,c){J||console.warn("Polymer.Class requires `info` argument");c=c?c(DaL):DaL;c=nge(J,c,J.behaviors);c.is=c.prototype.is=
J.is;return c};Polymer.Class=j7J;Polymer.mixinBehaviors=function(J,c){return nge({},(0,_.KH)(c),J)};
Polymer.GenerateClassFromInfo=nge;_.sB=function(J){var c=typeof J==="function"?J:_.sB.Class(J);J._legacyForceObservedAttributes&&(c.prototype._legacyForceObservedAttributes=J._legacyForceObservedAttributes);customElements.define(c.is,c);return c};
_.sB.Class=j7J;Polymer._polymerFn=_.sB;var WyQ=window.onLegacyPolymerFunctionDefinedCallback;WyQ&&WyQ();var lXT={templatize:function(J,c){this._templatizerTemplate=J;this.ctor=h5(J,this,{mutableData:!!c,parentModel:this._parentModel,instanceProps:this._instanceProps,forwardHostProp:this._forwardHostPropV2,notifyInstanceProp:this._notifyInstancePropV2})},
stamp:function(J){return new this.ctor(J)},
modelForElement:function(J){return uWT(this._templatizerTemplate,J)}};Polymer.Templatizer=lXT;_.CH=(0,_.KH)(HTMLElement).prototype;Polymer.Base=_.CH;var wHR=/\bclass\b/.test(function(){}.toString());
window.PolymerFakeBaseClass=function(){};
_.jE=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.D(_.jE,PolymerFakeBaseClass);var F6=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.D(F6,PolymerFakeBaseClass);var rmu=Symbol("Md"),YoR=[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 zmL=zmL||{id:"third_party/javascript/node_modules/reflect_decorators/Reflect.closure.js"},uRL;(function(J){function c(A,l,y){var pG=e.get(A);if(!pG){if(!y)return;pG=new d;e.set(A,pG)}A=pG.get(l);if(!A){if(!y)return;A=new d;pG.set(l,A)}return A}
function m(A,l,y){if(b(A,l,y))return!0;l=T(l);return l!==null?m(A,l,y):!1}
function b(A,l,y){l=c(l,y,!1);return l===void 0?!1:!!l.has(A)}
function x(A,l,y){if(b(A,l,y))return P(A,l,y);l=T(l);if(l!==null)return x(A,l,y)}
function P(A,l,y){l=c(l,y,!1);if(l!==void 0)return l.get(A)}
function p(A,l){var y=t(A,l);A=T(A);if(A===null)return y;var pG=p(A,l);if(pG.length<=0)return y;if(y.length<=0)return pG;l=new G;A=[];y=_.M(y);for(var kt=y.next();!kt.done;kt=y.next())kt=kt.value,l.has(kt)||(l.add(kt),A.push(kt));y=_.M(pG);for(pG=y.next();!pG.done;pG=y.next())pG=pG.value,l.has(pG)||(l.add(pG),A.push(pG));return A}
function t(A,l){A=c(A,l,!1);var y=[];A&&A.forEach(function(pG,kt){return y.push(kt)});
return y}
function I(A){return A===void 0}
function a(A){return typeof A==="object"?A!==null:typeof A==="function"}
function k(A){return typeof A==="function"}
function H(A){return typeof A==="symbol"?A:String(A)}
function T(A){var l=Object.getPrototypeOf(A);if(typeof A!=="function"||A===Z||l!==Z)return l;var y=Object.getPrototypeOf(A.prototype);if(y==null||y===Object.prototype)return l;y=y.constructor;return typeof y!=="function"||y===A?l:y}
function r(){function A(){this._keys=[];this._values=[];this._cache=l}
var l={};A.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 pG=this._find(y);if(pG>=0)return this._cache=y,this._values[pG]},
set:function(y,pG){this.delete(y);this._keys.push(y);this._values.push(pG);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=l,!0):!1},
clear:function(){this._keys.length=0;this._values.length=0;this._cache=l},
forEach:function(y){for(var pG=this.size,kt=0;kt<pG;++kt){var nG=this._keys[kt],fG=this._values[kt];this._cache=nG;y.call(this,fG,nG,this)}},
_find:function(y){for(var pG=this._keys,kt=pG.length,nG=0;nG<kt;++nG)if(pG[nG]===y)return nG;return-1}};
return A}
function W(){function A(){this._map=new d}
A.prototype={get size(){return this._map.length},has:function(l){return this._map.has(l)},
add:function(l){this._map.set(l,l);return this},
delete:function(l){return this._map.delete(l)},
clear:function(){this._map.clear()},
forEach:function(l,y){this._map.forEach(l,y)}};
return A}
function Y(){function A(){this._key=y()}
function l(Z3,oR){for(var Em=0;Em<oR;++Em)Z3[Em]=Math.random()*255|0}
function y(){do{if(kt)var Z3=kt.randomBytes(16);else typeof Uint8Array==="function"?(Z3=new Uint8Array(16),typeof crypto!=="undefined"?crypto.getRandomValues(Z3):l(Z3,16)):(Z3=Array(16),l(Z3,16));Z3[6]=Z3[6]&79|64;Z3[8]=Z3[8]&191|128;for(var oR="",Em=0;Em<16;++Em){var X$=Z3[Em];if(Em===4||Em===6||Em===8)oR+="-";X$<16&&(oR+="0");oR+=X$.toString(16).toLowerCase()}Z3="@@WeakMap@@"+oR}while(nG.call(fG,Z3));fG[Z3]=!0;return Z3}
function pG(Z3,oR){if(!nG.call(Z3,Yt)){if(!oR)return;Object.defineProperty(Z3,Yt,{value:Object.create(null)})}return Z3[Yt]}
var kt=typeof global!=="undefined"&&typeof zmL==="object"&&typeof require==="function"&&require("crypto"),nG=Object.prototype.hasOwnProperty,fG={},Yt=y();A.prototype={has:function(Z3){return(Z3=pG(Z3,!1))?this._key in Z3:!1},
get:function(Z3){if(Z3=pG(Z3,!1))return Z3[this._key]},
set:function(Z3,oR){pG(Z3,!0)[this._key]=oR;return this},
delete:function(Z3){return(Z3=pG(Z3,!1))&&this._key in Z3?delete Z3[this._key]:!1},
clear:function(){this._key=y()}};
return A}
var Z=Object.getPrototypeOf(Function),d=typeof Map==="function"?Map:r(),G=typeof Set==="function"?Set:W(),e=new (typeof WeakMap==="function"?WeakMap:Y());J.decorate=function(A,l,y,pG){if(I(pG)){if(I(y)){if(!Array.isArray(A))throw new TypeError;if(!k(l))throw new TypeError;for(y=A.length-1;y>=0;--y)if(pG=(0,A[y])(l),!I(pG)){if(!k(pG))throw new TypeError;l=pG}return l}if(!Array.isArray(A))throw new TypeError;if(!a(l))throw new TypeError;y=H(y);for(pG=A.length-1;pG>=0;--pG)(0,A[pG])(l,y)}else{if(Array.isArray(A))if(a(l)){if(I(y))throw new TypeError;
if(!a(pG))throw new TypeError;}else throw new TypeError;else throw new TypeError;y=H(y);for(var kt=A.length-1;kt>=0;--kt){var nG=(0,A[kt])(l,y,pG);if(!I(nG)){if(!a(nG))throw new TypeError;pG=nG}}return pG}};
J.metadata=function(A,l){return function(y,pG){if(I(pG)){if(!k(y))throw new TypeError;c(y,void 0,!0).set(A,l)}else{if(!a(y))throw new TypeError;pG=H(pG);c(y,pG,!0).set(A,l)}}};
J.defineMetadata=function(A,l){var y;if(a(l))I(y)||(y=H(y));else throw new TypeError;c(l,y,!0).set("parameters",A)};
J.hasMetadata=function(A,l,y){if(a(l))I(y)||(y=H(y));else throw new TypeError;return m(A,l,y)};
J.hasOwnMetadata=function(A,l,y){if(a(l))I(y)||(y=H(y));else throw new TypeError;return b(A,l,y)};
J.getMetadata=function(A,l,y){if(a(l))I(y)||(y=H(y));else throw new TypeError;return x(A,l,y)};
J.getOwnMetadata=function(A,l,y){if(a(l))I(y)||(y=H(y));else throw new TypeError;return P(A,l,y)};
J.getMetadataKeys=function(A,l){if(a(A))I(l)||(l=H(l));else throw new TypeError;return p(A,l)};
J.getOwnMetadataKeys=function(A,l){if(a(A))I(l)||(l=H(l));else throw new TypeError;return t(A,l)};
J.deleteMetadata=function(A,l,y){if(a(l))I(y)||(y=H(y));else throw new TypeError;var pG=c(l,y,!1);if(!I(pG)){if(!pG.delete(A))return!1;if(pG.size>0)return!0;A=e.get(l);A.delete(y);if(A.size>0)return!0;e.delete(l);return!0}};
(function(A){if(typeof A.Reflect!=="undefined"){if(A.Reflect!==J)for(var l in J)A.Reflect[l]=J[l]}else A.Reflect=J})(typeof window!=="undefined"?window:typeof WorkerGlobalScope!=="undefined"?self:typeof global!=="undefined"?global:globalThis)})(uRL||(uRL={}));var q0D=self;var fP_=[0,_.$d,_.ES,_.$d];var YHu=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(YHu,_.d6);var XS$=_.yb(YHu,[0,_.X5e,_.ve,fP_,_.ES,_.AK]);_.yv(_.la,_.DS);_.V=_.la.prototype;_.V.start=function(){this.stop();this.usingListeners_=!1;var J=Zl8(this),c=qH_(this);J&&!c&&this.JSC$9221_win_.mozRequestAnimationFrame?(this.JSC$9221_id_=_.wp(this.JSC$9221_win_,"MozBeforePaint",this.callback_),this.JSC$9221_win_.mozRequestAnimationFrame(null),this.usingListeners_=!0):this.JSC$9221_id_=J&&c?J.call(this.JSC$9221_win_,this.callback_):this.JSC$9221_win_.setTimeout(hjG(this.callback_),20)};
_.V.stop=function(){if(this.isActive()){var J=Zl8(this),c=qH_(this);J&&!c&&this.JSC$9221_win_.mozRequestAnimationFrame?iv(this.JSC$9221_id_):J&&c?c.call(this.JSC$9221_win_,this.JSC$9221_id_):this.JSC$9221_win_.clearTimeout(this.JSC$9221_id_)}this.JSC$9221_id_=null};
_.V.fire=function(){this.stop();this.JSC$9223_doAction_()};
_.V.isActive=function(){return this.JSC$9221_id_!=null};
_.V.JSC$9223_doAction_=function(){this.usingListeners_&&this.JSC$9221_id_&&iv(this.JSC$9221_id_);this.JSC$9221_id_=null;this.JSC$9221_listener_.call(this.handler_,_.lc())};
_.V.disposeInternal=function(){this.stop();_.la.superClass_.disposeInternal.call(this)};
var Zl8=function(J){J=J.JSC$9221_win_;return J.requestAnimationFrame||J.webkitRequestAnimationFrame||J.mozRequestAnimationFrame||J.oRequestAnimationFrame||J.msRequestAnimationFrame||null},qH_=function(J){J=J.JSC$9221_win_;
return J.cancelAnimationFrame||J.cancelRequestAnimationFrame||J.webkitCancelRequestAnimationFrame||J.mozCancelRequestAnimationFrame||J.oCancelRequestAnimationFrame||J.msCancelRequestAnimationFrame||null};_.FU=function(J,c,m){_.DS.call(this);this.JSC$9224_listener_=m!=null?J.bind(m):J;this.JSC$9224_interval_=c;this.args_=null;this.shouldFire_=!1;this.pauseCount_=0;this.JSC$9224_timer_=null};
_.D(_.FU,_.DS);_.V=_.FU.prototype;_.V.fire=function(J){this.args_=arguments;this.JSC$9224_timer_||this.pauseCount_?this.shouldFire_=!0:Ua$(this)};
_.V.stop=function(){this.JSC$9224_timer_&&(_.mo.clearTimeout(this.JSC$9224_timer_),this.JSC$9224_timer_=null,this.shouldFire_=!1,this.args_=null)};
_.V.pause=function(){this.pauseCount_++};
_.V.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.JSC$9224_timer_||(this.shouldFire_=!1,Ua$(this))};
_.V.disposeInternal=function(){_.DS.prototype.disposeInternal.call(this);this.stop()};
var Ua$=function(J){J.JSC$9224_timer_=iA(function(){J.JSC$9224_timer_=null;J.shouldFire_&&!J.pauseCount_&&(J.shouldFire_=!1,Ua$(J))},J.JSC$9224_interval_);
var c=J.args_;J.args_=null;J.JSC$9224_listener_.apply(null,c)};var SHu=function(J,c){this.childIterator_=J[_.mo.Symbol.iterator]();this.mapFn_=c};
SHu.prototype[Symbol.iterator]=function(){return this};
SHu.prototype.next=function(){var J=this.childIterator_.next();return{value:J.done?void 0:this.mapFn_.call(void 0,J.value),done:J.done}};
var hmj=function(J,c){return new SHu(J,c)};var daQ={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 pke=function(J){var c=$aL(J);if(!c)throw Error("Qd`"+J);return c},$aL=function(J){var c={};
J=String(J);var m=J.charAt(0)=="#"?J:"#"+J;if(Gv6.test(m))return c.hex=me2(m),c.type="hex",c;m=Klq(J);return m.length?(c.hex=loJ(m[0],m[1],m[2]),c.type="rgb",c):daQ&&(J=daQ[J.toLowerCase()])?(c.hex=J,c.type="named",c):null},E3Q=/#(.)(.)(.)/,me2=function(J){if(!Gv6.test(J))throw Error("Sd`"+J);
J.length==4&&(J=J.replace(E3Q,"#$1$1$2$2$3$3"));return J.toLowerCase()},Nre=function(J){J=me2(J);
J=parseInt(J.slice(1),16);return[J>>16,J>>8&255,J&255]},loJ=function(J,c,m){J=Number(J);
c=Number(c);m=Number(m);if(J!=(J&255)||c!=(c&255)||m!=(m&255))throw Error("Td`"+J+"`"+c+"`"+m);c=J<<16|c<<8|m;return J<16?"#"+(16777216|c).toString(16).slice(1):"#"+c.toString(16)},Gv6=/^#(?:[0-9a-f]{3}){1,2}$/i,v38=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i,Klq=function(J){var c=J.match(v38);
if(c){J=Number(c[1]);var m=Number(c[2]);c=Number(c[3]);if(J>=0&&J<=255&&m>=0&&m<=255&&c>=0&&c<=255)return[J,m,c]}return[]};var Ol_={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},wJ=Ol_;wJ=Ol_;var Yjr,A0Q,RmQ;Yjr=function(J,c){switch(c){case 1:return J%4!=0||J%100==0&&J%400!=0?28:29;case 5:case 8:case 10:case 3:return 30}return 31};
A0Q=function(J,c,m,b,x){J=new Date(J,c,m);x=x||0;return J.valueOf()+(((b!==void 0?b:3)-x+7)%7-((J.getDay()+6)%7-x+7)%7)*864E5};
_.a9=function(J,c,m){typeof J==="number"?(this.date=RmQ(J,c||0,m||1),o3z(this,m||1)):_.cB(J)?(this.date=RmQ(J.getFullYear(),J.getMonth(),J.getDate()),o3z(this,J.getDate())):(this.date=new Date(_.lc()),J=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),o3z(this,J))};
RmQ=function(J,c,m){c=new Date(J,c,m);J>=0&&J<100&&c.setFullYear(c.getFullYear()-1900);return c};
_.V=_.a9.prototype;_.V.firstDayOfWeek_=wJ.FIRSTDAYOFWEEK;_.V.firstWeekCutOffDay_=wJ.FIRSTWEEKCUTOFFDAY;_.V.clone=function(){var J=new _.a9(this.date);J.firstDayOfWeek_=this.firstDayOfWeek_;J.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return J};
_.V.getFullYear=function(){return this.date.getFullYear()};
_.V.getYear=function(){return this.getFullYear()};
_.V.getMonth=function(){return this.date.getMonth()};
_.V.getDate=function(){return this.date.getDate()};
_.V.getTime=function(){return this.date.getTime()};
_.V.getDay=function(){return this.date.getDay()};
_.V.getUTCFullYear=function(){return this.date.getUTCFullYear()};
_.V.getUTCMonth=function(){return this.date.getUTCMonth()};
_.V.getUTCDate=function(){return this.date.getUTCDate()};
_.V.getUTCDay=function(){return this.date.getDay()};
_.V.getUTCHours=function(){return this.date.getUTCHours()};
_.V.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.V.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
_.V.set=function(J){this.date=new Date(J.getFullYear(),J.getMonth(),J.getDate())};
_.V.setFullYear=function(J){this.date.setFullYear(J)};
_.V.setYear=function(J){this.setFullYear(J)};
_.V.setMonth=function(J){this.date.setMonth(J)};
_.V.setDate=function(J){this.date.setDate(J)};
_.V.setTime=function(J){this.date.setTime(J)};
_.V.setUTCFullYear=function(J){this.date.setUTCFullYear(J)};
_.V.setUTCMonth=function(J){this.date.setUTCMonth(J)};
_.V.setUTCDate=function(J){this.date.setUTCDate(J)};
_.V.add=function(J){if(J.years||J.months){var c=this.getMonth()+J.months+J.years*12,m=this.getYear()+Math.floor(c/12);c%=12;c<0&&(c+=12);var b=Math.min(Yjr(m,c),this.getDate());this.setDate(1);this.setFullYear(m);this.setMonth(c);this.setDate(b)}J.days&&(m=this.getYear(),c=m>=0&&m<=99?-1900:0,J=new Date((new Date(m,this.getMonth(),this.getDate(),12)).getTime()+J.days*864E5),this.setDate(1),this.setFullYear(J.getFullYear()+c),this.setMonth(J.getMonth()),this.setDate(J.getDate()),o3z(this,J.getDate()))};
_.V.JSC$9237_toIsoString=function(J){var c=this.getFullYear(),m=c<0?"-":c>=1E4?"+":"";return[m+_.Fy(Math.abs(c),m?6:4),_.Fy(this.getMonth()+1,2),_.Fy(this.getDate(),2)].join(J?"-":"")};
_.V.equals=function(J){return!(!J||this.getYear()!=J.getYear()||this.getMonth()!=J.getMonth()||this.getDate()!=J.getDate())};
_.V.toString=function(){return this.JSC$9237_toIsoString()};
var o3z=function(J,c){J.getDate()!=c&&J.date.setUTCHours(J.date.getUTCHours()+(J.getDate()<c?1:-1))};
_.a9.prototype.valueOf=function(){return this.date.valueOf()};var Hi=function(J,c,m,b,x){this.reversed=!!c;this.node=null;this.tagType=0;this.started_=!1;this.constrained=!m;J&&k6(this,J,b);this.depth=x!=void 0?x:this.tagType||0;this.reversed&&(this.depth*=-1)};
_.yv(Hi,yP);var k6=function(J,c,m,b){if(J.node=c)J.tagType=typeof m==="number"?m:J.node.nodeType!=1?0:J.reversed?-1:1;typeof b==="number"&&(J.depth=b)};
_.V=Hi.prototype;_.V.JSC$9252_copyFrom=function(J){this.node=J.node;this.tagType=J.tagType;this.depth=J.depth;this.reversed=J.reversed;this.constrained=J.constrained};
_.V.clone=function(){return new Hi(this.node,this.reversed,!this.constrained,this.tagType,this.depth)};
_.V.next=function(){if(this.started_){if(!this.node||this.constrained&&this.depth==0)return Bs;var J=this.node;var c=this.reversed?-1:1;if(this.tagType==c){var m=this.reversed?J.lastChild:J.firstChild;m?k6(this,m):k6(this,J,c*-1)}else(m=this.reversed?J.previousSibling:J.nextSibling)?k6(this,m):k6(this,J.parentNode,c*-1);this.depth+=this.tagType*(this.reversed?-1:1)}else this.started_=!0;return(J=this.node)?g2(J):Bs};
_.V.equals=function(J){return J.node==this.node&&(!this.node||J.tagType==this.tagType)};
_.V.splice=function(J){var c=this.node,m=this.reversed?1:-1;this.tagType==m&&(this.tagType=m*-1,this.depth+=this.tagType*(this.reversed?-1:1));this.reversed=!this.reversed;Hi.prototype.next.call(this);this.reversed=!this.reversed;m=_.yJ(arguments[0])?arguments[0]:arguments;for(var b=m.length-1;b>=0;b--)_.Ld(m[b],c);_.nc(c)};var Qz_=function(){},ie=function(J){for(var c=[],m=J.getTextRangeCount(),b=0;b<m;b++)c.push(J.getTextRange(b));
return c};
Qz_.prototype.isReversed=function(){return!1};
Qz_.prototype.getWindow=function(){return uK(_.fw(this.JSC$9254_getStartNode()))};
var emj=function(J,c){Hi.call(this,J,c,!0)};
_.yv(emj,Hi);var nH=function(J,c,m,b,x){this.endNode_=this.startNode_=null;this.endOffset_=this.startOffset_=0;this.isReversed_=!!x;if(J){this.startNode_=J;this.startOffset_=c;this.endNode_=m;this.endOffset_=b;if(J.nodeType==1&&J.tagName!="BR")if(J=J.childNodes,c=J[c])this.startNode_=c,this.startOffset_=0;else{J.length&&(this.startNode_=_.dT(J));var P=!0}m.nodeType==1&&((this.endNode_=m.childNodes[b])?this.endOffset_=0:this.endNode_=m)}Hi.call(this,this.isReversed_?this.endNode_:this.startNode_,this.isReversed_,
!0);P&&this.next()};
_.yv(nH,emj);_.V=nH.prototype;_.V.JSC$9260_getStartNode=function(){return this.startNode_};
_.V.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)};
_.V.next=function(){return this.isLast()?Bs:nH.superClass_.next.call(this)};
_.V.JSC$9252_copyFrom=function(J){this.startNode_=J.startNode_;this.endNode_=J.endNode_;this.startOffset_=J.startOffset_;this.endOffset_=J.endOffset_;this.isReversed_=J.isReversed_;nH.superClass_.JSC$9252_copyFrom.call(this,J)};
_.V.clone=function(){var J=new nH(this.startNode_,this.startOffset_,this.endNode_,this.endOffset_,this.isReversed_);J.JSC$9252_copyFrom(this);return J};var jzB=function(){};
jzB.prototype.__iterator__=function(){return new nH(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var TW=function(J){this.range_=J};
_.yv(TW,jzB);var Fy$=function(J){var c=_.fw(J).createRange();if(J.nodeType==3)c.setStart(J,0),c.setEnd(J,J.length);else if(wC(J)||J.nodeType==3){for(var m,b=J;(m=b.firstChild)&&(wC(m)||m.nodeType==3);)b=m;c.setStart(b,0);for(b=J;(m=b.lastChild)&&(wC(m)||m.nodeType==3);)b=m;c.setEnd(b,b.nodeType==1?b.childNodes.length:b.length)}else m=J.parentNode,J=Array.prototype.indexOf.call(m.childNodes,J),c.setStart(m,J),c.setEnd(m,J+1);return c},lP2=function(J,c,m,b){var x=_.fw(J).createRange();
x.setStart(J,c);x.setEnd(m,b);return x};
_.V=TW.prototype;_.V.clone=function(){return new this.constructor(this.range_.cloneRange())};
_.V.getContainer=function(){return this.range_.commonAncestorContainer};
_.V.compareBrowserRangeEndpoints=function(J,c,m){return this.range_.compareBoundaryPoints(m==1?c==1?_.mo.Range.START_TO_START:_.mo.Range.START_TO_END:c==1?_.mo.Range.END_TO_START:_.mo.Range.END_TO_END,J)};
_.V.isCollapsed=function(){return this.range_.collapsed};
_.V.select=function(J){this.selectInternal(uK(_.fw(this.range_.startContainer)).getSelection(),J)};
_.V.selectInternal=function(J){J.removeAllRanges();J.addRange(this.range_)};
_.V.insertNode=function(J,c){var m=this.range_.cloneRange();m.collapse(c);m.insertNode(J);m.detach();return J};
_.V.collapse=function(J){this.range_.collapse(J)};_.yv(y8,TW);y8.prototype.selectInternal=function(J,c){!c||this.isCollapsed()?y8.superClass_.selectInternal.call(this,J,c):(J.collapse(this.range_.endContainer,this.range_.endOffset),J.extend(this.range_.startContainer,this.range_.startOffset))};_.yv(By,TW);By.prototype.compareBrowserRangeEndpoints=function(J,c,m){return By.superClass_.compareBrowserRangeEndpoints.call(this,J,c,m)};
By.prototype.selectInternal=function(J,c){c?J.setBaseAndExtent(this.range_.endContainer,this.range_.endOffset,this.range_.startContainer,this.range_.startOffset):J.setBaseAndExtent(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var y0$=function(J){return _.ms?new By(J):_.ce?new y8(J):new TW(J)};var wy=function(){this.endOffset_=this.endNode_=this.startOffset_=this.startNode_=this.browserRangeWrapper_=null;this.isReversed_=!1},BK2;
_.yv(wy,Qz_);BK2=function(J,c){var m=new wy;m.browserRangeWrapper_=J;m.isReversed_=!!c;return m};
_.g36=function(J){J=_.ms?new By(Fy$(J)):_.ce?new y8(Fy$(J)):new TW(Fy$(J));return BK2(J)};
_.ry=function(J,c,m,b){var x=new wy;x.isReversed_=JSL(J,c,m,b);if(_.F_(J)&&!wC(J)){var P=J.parentNode;c=Array.prototype.indexOf.call(P.childNodes,J);J=P}_.F_(m)&&!wC(m)&&(P=m.parentNode,b=Array.prototype.indexOf.call(P.childNodes,m),m=P);x.isReversed_?(x.startNode_=m,x.startOffset_=b,x.endNode_=J,x.endOffset_=c):(x.startNode_=J,x.startOffset_=c,x.endNode_=m,x.endOffset_=b);return x};
_.V=wy.prototype;_.V.clone=function(){var J=new wy;J.browserRangeWrapper_=this.browserRangeWrapper_&&this.browserRangeWrapper_.clone();J.startNode_=this.startNode_;J.startOffset_=this.startOffset_;J.endNode_=this.endNode_;J.endOffset_=this.endOffset_;J.isReversed_=this.isReversed_;return J};
_.V.JSC$9254_getType=function(){return"text"};
_.V.getBrowserRangeObject=function(){return sI(this).range_};
_.V.getTextRangeCount=function(){return 1};
_.V.getTextRange=function(){return this};
var sI=function(J){var c;if(!(c=J.browserRangeWrapper_)){c=J.JSC$9254_getStartNode();var m=J.JSC$9254_getStartOffset(),b=J.JSC$9254_getEndNode(),x=J.JSC$9254_getEndOffset();c=_.ms?new By(lP2(c,m,b,x)):_.ce?new y8(lP2(c,m,b,x)):new TW(lP2(c,m,b,x));c=J.browserRangeWrapper_=c}return c};
_.V=wy.prototype;_.V.getContainer=function(){return sI(this).getContainer()};
_.V.JSC$9254_getStartNode=function(){return this.startNode_||(this.startNode_=sI(this).range_.startContainer)};
_.V.JSC$9254_getStartOffset=function(){return this.startOffset_!=null?this.startOffset_:this.startOffset_=sI(this).range_.startOffset};
_.V.JSC$9254_getEndNode=function(){return this.endNode_||(this.endNode_=sI(this).range_.endContainer)};
_.V.JSC$9254_getEndOffset=function(){return this.endOffset_!=null?this.endOffset_:this.endOffset_=sI(this).range_.endOffset};
_.V.isReversed=function(){return this.isReversed_};
_.V.JSC$9254_containsRange=function(J,c){if(J.JSC$9254_getType()=="text"){var m=sI(this);J=sI(J);c=c&&!J.isCollapsed();J=J.range_;m=c?m.compareBrowserRangeEndpoints(J,0,1)>=0&&m.compareBrowserRangeEndpoints(J,1,0)<=0:m.compareBrowserRangeEndpoints(J,0,0)>=0&&m.compareBrowserRangeEndpoints(J,1,1)<=0}else m=!1;return m};
_.V.isCollapsed=function(){return sI(this).isCollapsed()};
_.V.JSC$9254_getText=function(){return sI(this).range_.toString()};
_.V.__iterator__=function(){return new nH(this.JSC$9254_getStartNode(),this.JSC$9254_getStartOffset(),this.JSC$9254_getEndNode(),this.JSC$9254_getEndOffset())};
_.V.select=function(){sI(this).select(this.isReversed_)};
_.V.JSC$9254_removeContents=function(){var J=sI(this).range_;J.extractContents();if(J.startContainer.hasChildNodes()&&(J=J.startContainer.childNodes[J.startOffset])){var c=J.previousSibling;UfB(J)==""&&_.nc(J);c&&UfB(c)==""&&_.nc(c)}this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null};
_.V.insertNode=function(J,c){J=sI(this).insertNode(J,c);this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null;return J};
_.V.collapse=function(J){J=this.isReversed()?!J:J;this.browserRangeWrapper_&&this.browserRangeWrapper_.collapse(J);J?(this.endNode_=this.startNode_,this.endOffset_=this.startOffset_):(this.startNode_=this.endNode_,this.startOffset_=this.endOffset_);this.isReversed_=!1};var cSZ=function(){};
_.yv(cSZ,Qz_);cSZ.prototype.JSC$9254_containsRange=function(J,c){var m=ie(this);J=ie(J);return(c?QF:_.ysQ)(J,function(b){return QF(m,function(x){return x.JSC$9254_containsRange(b,c)})})};
cSZ.prototype.insertNode=function(J,c){c?_.sK(J,this.JSC$9254_getStartNode()):_.Ld(J,this.JSC$9254_getEndNode());return J};var mLZ,bXQ=Cw().JSC$7337_document_.documentElement;mLZ=bXQ.requestFullscreen?"fullscreenchange":bXQ.webkitRequestFullscreen?"webkitfullscreenchange":bXQ.mozRequestFullScreen?"mozfullscreenchange":bXQ.msRequestFullscreen?"MSFullscreenChange":"fullscreenchange";var xLQ=function(){var J=Cw().JSC$7337_document_;return!!(J.webkitIsFullScreen||J.mozFullScreen||J.msFullscreenElement||J.fullscreenElement)};var LH=function(){this.browserRanges_=[];this.ranges_=[];this.container_=this.sortedRanges_=null};
_.yv(LH,cSZ);_.V=LH.prototype;_.V.clone=function(){var J=new LH;J.browserRanges_=_.Fe(this.browserRanges_);return J};
_.V.JSC$9254_getType=function(){return"mutli"};
_.V.getBrowserRangeObject=function(){return this.browserRanges_[0]};
_.V.getTextRangeCount=function(){return this.browserRanges_.length};
_.V.getTextRange=function(J){this.ranges_[J]||(this.ranges_[J]=BK2(y0$(this.browserRanges_[J])));return this.ranges_[J]};
_.V.getContainer=function(){if(!this.container_){for(var J=[],c=this.getTextRangeCount(),m=0;m<c;m++)J.push(this.getTextRange(m).getContainer());this.container_=zuC.apply(null,J)}return this.container_};
var DQ=function(J){J.sortedRanges_||(J.sortedRanges_=ie(J),J.sortedRanges_.sort(function(c,m){var b=c.JSC$9254_getStartNode();c=c.JSC$9254_getStartOffset();var x=m.JSC$9254_getStartNode();m=m.JSC$9254_getStartOffset();return b==x&&c==m?0:JSL(b,c,x,m)?1:-1}));
return J.sortedRanges_};
_.V=LH.prototype;_.V.JSC$9254_getStartNode=function(){return DQ(this)[0].JSC$9254_getStartNode()};
_.V.JSC$9254_getStartOffset=function(){return DQ(this)[0].JSC$9254_getStartOffset()};
_.V.JSC$9254_getEndNode=function(){return _.dT(DQ(this)).JSC$9254_getEndNode()};
_.V.JSC$9254_getEndOffset=function(){return _.dT(DQ(this)).JSC$9254_getEndOffset()};
_.V.isCollapsed=function(){return this.browserRanges_.length==0||this.browserRanges_.length==1&&this.getTextRange(0).isCollapsed()};
_.V.JSC$9254_getText=function(){return ie(this).map(function(J){return J.JSC$9254_getText()}).join("")};
_.V.__iterator__=function(){return new Wi(this)};
_.V.select=function(){var J=this.getWindow().getSelection();J.removeAllRanges();for(var c=this.getTextRangeCount(),m=0;m<c;m++)J.addRange(this.getTextRange(m).getBrowserRangeObject())};
_.V.JSC$9254_removeContents=function(){ie(this).forEach(function(J){J.JSC$9254_removeContents()})};
_.V.collapse=function(J){if(!this.isCollapsed()){var c=J?this.getTextRange(0):this.getTextRange(this.getTextRangeCount()-1);this.ranges_=[];this.container_=this.sortedRanges_=null;c.collapse(J);this.ranges_=[c];this.sortedRanges_=[c];this.browserRanges_=[c.getBrowserRangeObject()]}};
var Wi=function(J){this.iterators_=null;this.currentIdx_=0;J&&(this.iterators_=DQ(J).map(function(c){return _.rLa(c)}));
Hi.call(this,J?this.JSC$9260_getStartNode():null,!1,!0)};
_.yv(Wi,emj);_.V=Wi.prototype;_.V.JSC$9260_getStartNode=function(){return this.iterators_[0].JSC$9260_getStartNode()};
_.V.isLast=function(){return this.iterators_[this.currentIdx_].isLast()};
_.V.next=function(){for(;this.currentIdx_<this.iterators_.length;){var J=this.iterators_[this.currentIdx_],c=J.next();if(c.done)this.currentIdx_++;else return k6(this,J.node,J.tagType,J.depth),c}return Bs};
_.V.JSC$9252_copyFrom=function(J){this.iterators_=_.Fe(J.iterators_);Wi.superClass_.JSC$9252_copyFrom.call(this,J)};
_.V.clone=function(){var J=new Wi(null);J.JSC$9252_copyFrom(this);return J};var VHC,JSL;_.kR=function(){var J=window.getSelection();return J&&VHC(J)};
VHC=function(J){var c=!1;if(J.createRange)try{var m=J.createRange()}catch(x){return null}else if(J.rangeCount){if(J.rangeCount>1){m=new LH;c=J.rangeCount;for(var b=0;b<c;b++)m.browserRanges_.push(J.getRangeAt(b));return m}m=J.getRangeAt(0);c=JSL(J.anchorNode,J.anchorOffset,J.focusNode,J.focusOffset)}else return null;return BK2(y0$(m),c)};
_.zW=function(J,c){return _.ry(J,c,J,c)};
_.ue=function(J,c,m,b){return _.ry(J,c,m,b)};
JSL=function(J,c,m,b){if(J==m)return b<c;var x;if(J.nodeType==1&&c)if(x=J.childNodes[c])J=x,c=0;else if(_.Gj(J,m))return!0;if(m.nodeType==1&&b)if(x=m.childNodes[b])m=x,b=0;else if(_.Gj(m,J))return!1;return(Wo$(J,m)||c-b)>0};var fH=function(){_.KI.call(this);this.reader_=new FileReader;this.reader_.onloadstart=(0,_.Wa)(this.dispatchProgressEvent_,this);this.reader_.onprogress=(0,_.Wa)(this.dispatchProgressEvent_,this);this.reader_.onload=(0,_.Wa)(this.dispatchProgressEvent_,this);this.reader_.onabort=(0,_.Wa)(this.dispatchProgressEvent_,this);this.reader_.onerror=(0,_.Wa)(this.dispatchProgressEvent_,this);this.reader_.onloadend=(0,_.Wa)(this.dispatchProgressEvent_,this)};
_.yv(fH,_.KI);fH.prototype.abort=function(){try{this.reader_.abort()}catch(J){throw new zMZ(J,"aborting read");}};
fH.prototype.getError=function(){return this.reader_.error&&new zMZ(this.reader_.error,"reading file")};
fH.prototype.dispatchProgressEvent_=function(J){this.dispatchEvent(new uk$(J,this))};
fH.prototype.disposeInternal=function(){fH.superClass_.disposeInternal.call(this);delete this.reader_};
var MHB=function(J){var c=new fH,m=PJ_(c);c.reader_.readAsArrayBuffer(J);return m},pAQ=function(J){var c=new fH,m=PJ_(c);
c.reader_.readAsDataURL(J);return m},PJ_=function(J){var c=new hi;
J.listen("loadend",_.k2(function(m,b){var x=b.reader_.result,P=b.getError();x==null||P?m.errback(P):m.callback(x);b.dispose()},c,J));
return c};var Y6=function(){_.KI.call(this);this.hysteresisDistance_=0;this.dragLists_=[];this.dragItems_=[];this.dragItemForHandle_={};this.JSC$9294_eventHandler_=new _.J0(this);this.JSC$9294_isInitialized_=!1};
_.yv(Y6,_.KI);var NM6=new _.Pz("d"),tH$=new _.Pz("beforedragstart"),Iu2=new _.Pz("dragstart"),K9L=new _.Pz("beforedragmove"),CJ8=new _.Pz("dragmove"),au6=new _.Pz("beforedragend"),kmQ=new _.Pz("dragend"),HXZ=new _.Pz("e");Y6.prototype.isDragging=function(){return!!this.JSC$9294_dragger_};
var iXj=function(J,c){c.dlgGrowthDirection_=0;c.dlgDragHoverClass_=void 0;c.dlgDragPermission=0;J.dragLists_.push(c)},n2a=function(J,c){J.getHandleForDragItem_=c};
Y6.prototype.init=function(){if(!this.JSC$9294_isInitialized_){for(var J=this.dragLists_.length,c=0;c<J;c++)for(var m=_.DK(this.dragLists_[c]),b=m.length,x=0;x<b;++x){var P=m[x],p=this.getHandleForDragItem_(P),t=_.mj(p);this.dragItemForHandle_[t]=P;this.dragItemHoverClasses_&&(this.JSC$9294_eventHandler_.listen(P,"mouseover",this.handleDragItemMouseover_),this.JSC$9294_eventHandler_.listen(P,"mouseout",this.handleDragItemMouseout_));this.dragItemHandleHoverClasses_&&(this.JSC$9294_eventHandler_.listen(p,
"mouseover",this.handleDragItemHandleMouseover_),this.JSC$9294_eventHandler_.listen(p,"mouseout",this.handleDragItemHandleMouseout_));this.dragItems_.push(P);this.JSC$9294_eventHandler_.listen(p,["mousedown","touchstart"],this.handlePotentialDragStart_)}this.JSC$9294_isInitialized_=!0}};
Y6.prototype.disposeInternal=function(){this.JSC$9294_eventHandler_.dispose();for(var J=this.dragLists_.length,c=0;c<J;c++){var m=this.dragLists_[c];m.dlgGrowthDirection_=void 0;m.dlgDragHoverClass_=void 0}this.dragLists_.length=0;this.dragItems_.length=0;this.dragItemForHandle_=null;TM2(this);Y6.superClass_.disposeInternal.call(this)};
var wAu=function(J,c){for(var m=J.dragLists_.length,b=0;b<m;b++){var x=J.dragLists_[b];x.dlgBounds_=hbJ(x)}m=J.dragItems_.length;for(b=0;b<m;b++)x=J.dragItems_[b],x!=c&&(x.dlgBounds_=hbJ(x))};
_.V=Y6.prototype;
_.V.handlePotentialDragStart_=function(J){var c=_.mj(J.currentTarget);c=this.dragItemForHandle_[c];if(c.parentElement.dlgDragPermission!=2){this.currDragItem_=c;a:{c=this.currDragItem_;for(var m=c.cloneNode(!0),b=Tj("TEXTAREA",c),x=Tj("TEXTAREA",m),P=0;P<b.length;P++)x[P].value=b[P].value;switch(c.tagName){case "TR":c=_.nd("TABLE",null,_.nd("TBODY",null,m));break a;case "TD":case "TH":c=_.nd("TABLE",null,_.nd("TBODY",null,_.nd("TR",null,m)));break a;case "TEXTAREA":m.value=c.value;default:c=m;break a}c=
void 0}this.draggerEl_=c;this.draggerElClasses_&&U9(this.draggerEl_,this.draggerElClasses_||[]);this.draggerEl_.style.margin="0";this.draggerEl_.style.position="absolute";this.draggerEl_.style.visibility="hidden";_.fw(this.currDragItem_).body.appendChild(this.draggerEl_);m=_.Xt(this.currDragItem_);c=this.draggerEl_;b=_.Xt(c);if(m instanceof _.zO){var p=m.y;m=m.x}Y8(c,c.offsetLeft+(m-b.x),c.offsetTop+(Number(p)-b.y));this.JSC$9294_dragger_=new _.fC(this.draggerEl_);_.WY$(this.JSC$9294_dragger_,this.hysteresisDistance_);
_.wp(this.JSC$9294_dragger_,"start",this.handleDragStart_,!1,this);_.wp(this.JSC$9294_dragger_,"end",this.handleDragEnd_,!1,this);_.wp(this.JSC$9294_dragger_,"earlycancel",this.JSC$9296_cleanup_,!1,this);this.dispatchEvent(new X2(NM6,this,J,this.currDragItem_,this.draggerEl_,this.JSC$9294_dragger_));this.JSC$9294_dragger_.startDrag(J)}};
_.V.handleDragStart_=function(J){if(this.dispatchEvent(new X2(tH$,this,J.browserEvent,this.currDragItem_,null,null))){this.origList_=this.currDragItem_.parentNode;this.origNextItem_=_.sR6(this.currDragItem_);this.currHoverList_=this.origList_;this.currDragItemClasses_?U9(this.currDragItem_,this.currDragItemClasses_||[]):this.currDragItem_.style.visibility="hidden";var c=EtQ(this.draggerEl_);this.draggerEl_.halfWidth=c.width/2;this.draggerEl_.halfHeight=c.height/2;c=this.draggerEl_.getBoundingClientRect();
var m=J.clientY,b=zGB(this.JSC$9294_dragger_,J.clientX);if(b>c.right){var x=this.currDragItem_.getBoundingClientRect();this.JSC$9294_dragger_.deltaX=b-(b-x.left)/x.width*c.width}m=uDC(this.JSC$9294_dragger_,m);m>c.bottom&&(this.JSC$9294_dragger_.deltaY+=m-c.bottom);this.draggerEl_.style.visibility="";this.currDragItem_.style.display="none";wAu(this,this.currDragItem_);this.currDragItem_.style.display="";_.wp(this.JSC$9294_dragger_,"drag",this.handleDragMove_,!1,this);this.dispatchEvent(new X2(Iu2,
this,J.browserEvent,this.currDragItem_,this.draggerEl_,this.JSC$9294_dragger_))}else J.preventDefault(),this.JSC$9296_cleanup_()};
_.V.handleDragMove_=function(J){var c=_.Xt(this.draggerEl_);c=new _.zO(c.x+this.draggerEl_.halfWidth,c.y+this.draggerEl_.halfHeight);a:{var m=null;if(this.currDragItem_.style.display!="none"){m=this.currDragItem_.parentNode;var b=hbJ(m);if(rS$(c,b))break a}b=this.dragLists_.length;for(var x=0;x<b;x++){var P=this.dragLists_[x];if(P!=m&&rS$(c,P.dlgBounds_)){m=P;break a}}m=null}if(m){if(m==null)throw Error("Ud");b=0;x=!1;P=void 0;switch(m.dlgGrowthDirection_){case 0:b=c.y;var p=sn2;var t=L9C;break;case 4:x=
!0;case 2:b=c.x;p=DLz;t=L9C;break;case 5:x=!0;case 3:b=c.x,p=W9B,t=zY8}for(var I=null,a,k=_.DK(m),H=k.length,T=0;T<H;T++){var r=k[T];if(r!=this.currDragItem_){var W=p(r.dlgBounds_);if(x){var Y=uv_(r,c);P===void 0&&(P=Y);t(b,W)&&(a==void 0||Y<P||Y==P&&(t(W,a)||W==a))&&(I=r,a=W);Y<P&&(P=Y)}else t(b,W)&&(a==void 0||t(W,a))&&(I=r,a=W)}}p=I!==null&&uv_(I,c)>P?null:I}else p=null;if(!this.dispatchEvent(new X2(K9L,this,J,this.currDragItem_,this.draggerEl_,this.JSC$9294_dragger_,c,m,p)))return!1;if(m&&m.dlgDragPermission!=
1)this.currDragItem_.parentNode==m&&_.sR6(this.currDragItem_)==p||m.insertBefore(this.currDragItem_,p),this.currDragItem_.style.display="",m.dlgDragHoverClass_&&_.oA(m,m.dlgDragHoverClass_);else for(this.currDragItem_.style.display="none",t=this.dragLists_.length,a=0;a<t;a++)b=this.dragLists_[a],b.dlgDragHoverClass_&&_.Ad(b,b.dlgDragHoverClass_);m!=this.currHoverList_&&(this.currHoverList_=m,wAu(this,this.currDragItem_));this.dispatchEvent(new X2(CJ8,this,J,this.currDragItem_,this.draggerEl_,this.JSC$9294_dragger_,
c,m,p));return!1};
_.V.JSC$9296_cleanup_=function(){TM2(this);this.JSC$9294_dragger_=this.draggerEl_=this.origNextItem_=this.origList_=this.currHoverList_=this.currDragItem_=null;for(var J=this.dragLists_.length,c=0;c<J;c++)this.dragLists_[c].dlgBounds_=null;J=this.dragItems_.length;for(c=0;c<J;c++)this.dragItems_[c].dlgBounds_=null};
_.V.handleDragEnd_=function(J){if(!this.dispatchEvent(new X2(au6,this,J,this.currDragItem_,this.draggerEl_,this.JSC$9294_dragger_)))return!1;TM2(this);this.dispatchEvent(new X2(kmQ,this,J,this.currDragItem_,this.draggerEl_,this.JSC$9294_dragger_));this.JSC$9296_cleanup_();return!0};
var TM2=function(J){_.yr(J.JSC$9294_dragger_);var c=J.draggerEl_&&J.draggerEl_.parentElement;J.draggerEl_&&_.nc(J.draggerEl_);J.currDragItem_&&J.currDragItem_.style.display=="none"&&(J.origList_.insertBefore(J.currDragItem_,J.origNextItem_),J.currDragItem_.style.display="");J.currDragItemClasses_&&J.currDragItem_?zNz(J.currDragItem_,J.currDragItemClasses_||[]):J.currDragItem_&&(J.currDragItem_.style.visibility="");for(var m=J.dragLists_.length,b=0;b<m;b++){var x=J.dragLists_[b];x.dlgDragHoverClass_&&
_.Ad(x,x.dlgDragHoverClass_)}c&&J.dispatchEvent(new X2(HXZ,J,null,J.currDragItem_,J.draggerEl_,J.JSC$9294_dragger_))};
_.V=Y6.prototype;_.V.getHandleForDragItem_=function(J){return J};
_.V.handleDragItemMouseover_=function(J){U9(J.currentTarget,this.dragItemHoverClasses_||[])};
_.V.handleDragItemMouseout_=function(J){zNz(J.currentTarget,this.dragItemHoverClasses_||[])};
_.V.handleDragItemHandleMouseover_=function(J){U9(J.currentTarget,this.dragItemHandleHoverClasses_||[])};
_.V.handleDragItemHandleMouseout_=function(J){zNz(J.currentTarget,this.dragItemHandleHoverClasses_||[])};
var rS$=function(J,c){return J.x>c.left&&J.x<c.left+c.width&&J.y>c.top&&J.y<c.top+c.height},uv_=function(J,c){J=J.dlgBounds_;
return Math.abs(c.y-(J.top+(J.height-1)/2))},sn2=function(J){return J.top+J.height-1},DLz=function(J){return J.left+J.width-1},W9B=function(J){return J.left||0},L9C=function(J,c){return J<c},zY8=function(J,c){return J>c},X2=function(J,c,m,b,x,P){_.Mb.call(this,J);
this.event=m;this.currDragItem=b;this.draggerEl=x;this.JSC$9298_dragger=P};
_.yv(X2,_.Mb);_.yv(cS,_.DS);var fuZ=new _.zO(0,0);cS.prototype.JSC$9302_onTick_=function(){this.containerNode_.scrollTop+=this.scrollDelta_.y;this.containerNode_.scrollLeft+=this.scrollDelta_.x};
cS.prototype.JSC$9302_onMouseMove=function(J){var c=this.containerIsActuallyContent_?fuZ:Kw(Cw(this.containerNode_)),m=this.horizontalScrolling_?this.calculateScrollDelta(J.clientX+c.x,this.scrollBounds_.left,this.scrollBounds_.width):0,b=this.calculateScrollDelta(J.clientY+c.y,this.scrollBounds_.top,this.scrollBounds_.height);this.scrollDelta_.x=m;this.scrollDelta_.y=b;!(m=!m&&!b)&&(m=this.constrainScroll_)&&(m=J.clientX+c.x,J=J.clientY+c.y,c=this.containerBounds_,m=!(c.left<=m&&c.left+c.width>=
m&&c.top<=J&&c.top+c.height>=J));m?this.scrollTimer_.stop():this.scrollTimer_.enabled||this.scrollTimer_.start()};
cS.prototype.calculateScrollDelta=function(J,c,m){var b=0;J<c?b=-8:J>c+m&&(b=8);return b};
cS.prototype.disposeInternal=function(){cS.superClass_.disposeInternal.call(this);this.JSC$9300_eventHandler_.dispose();this.scrollTimer_.dispose()};var Y2j={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"}}},ZQ=Y2j;ZQ=Y2j;var qP={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 XA_=function(){},$Y=function(J){if(typeof J=="number"){var c=new XA_;
c.standardOffset_=J;var m=J;if(m==0)m="Etc/GMT";else{var b=["Etc/GMT",m<0?"-":"+"];m=Math.abs(m);b.push(Math.floor(m/60)%100);m%=60;m!=0&&b.push(":",_.Fy(m,2));m=b.join("")}c.timeZoneId_=m;m=J;m==0?m="UTC":(b=["UTC",m<0?"+":"-"],m=Math.abs(m),b.push(Math.floor(m/60)%100),m%=60,m!=0&&b.push(":",m),m=b.join(""));J=ZX$(J);c.tzNames_=[m,m];c.tzNamesExt_={STD_LONG_NAME_GMT:J,STD_GENERIC_LOCATION:J};c.transitions_=[];return c}c=new XA_;c.timeZoneId_=J.id;c.standardOffset_=-J.std_offset;c.tzNames_=J.names;
c.tzNamesExt_=J.names_ext;c.transitions_=J.transitions;return c},ZX$=function(J){var c=["GMT"];
c.push(J<=0?"+":"-");J=Math.abs(J);c.push(_.Fy(Math.floor(J/60)%100,2),":",_.Fy(J%60,2));return c.join("")},q22=function(J,c){c=Date.UTC(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate(),c.getUTCHours(),c.getUTCMinutes())/36E5;
for(var m=0;m<J.transitions_.length&&c>=J.transitions_[m];)m+=2;return m==0?0:J.transitions_[m-1]},ULZ=function(J,c){J=J.standardOffset_-q22(J,c);
return J===-1440?0:J};var G2=function(J,c){this.patternParts_=[];this.JSC$9313_dateTimeSymbols_=c||wJ;typeof J=="number"?S2z(this,J):hYB(this,J)},dL8=[/^'(?:[^']|'')*('|$)/,
/^(?: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]+/],UI=function(J){return J.getHours?J.getHours():0},hYB=function(J,c){for(yZe&&(c=c.replace(/\u200f/g,""));c;){for(var m=c,b=0;b<dL8.length;++b){var x=c.match(dL8[b]);
if(x){var P=x[0];c=c.substring(P.length);b==0&&(P=="''"?P="'":(P=P.substring(1,x[1]=="'"?P.length-1:P.length),P=P.replace(/''/g,"'")));J.patternParts_.push({text:P,type:b});break}}if(m===c)throw Error("Vd`"+c);}};
G2.prototype.format=function(J,c){if(!J)throw Error("Wd");var m=c?(J.getTimezoneOffset()-ULZ(c,J))*6E4:0,b=m?new Date(J.getTime()+m):J,x=b;c&&b.getTimezoneOffset()!=J.getTimezoneOffset()&&(b=new Date(b.getTime()+(b.getTimezoneOffset()-J.getTimezoneOffset())*6E4),x=new Date(J.getTime()+(m+(m>0?-864E5:864E5))));m=[];for(var P=0;P<this.patternParts_.length;++P){var p=this.patternParts_[P].text;1==this.patternParts_[P].type?m.push($L2(this,p,J,b,x,c)):m.push(p)}return m.join("")};
var S2z=function(J,c){if(c<4)var m=J.JSC$9313_dateTimeSymbols_.DATEFORMATS[c];else if(c<8)m=J.JSC$9313_dateTimeSymbols_.TIMEFORMATS[c-4];else if(c<12)m=J.JSC$9313_dateTimeSymbols_.DATETIMEFORMATS[c-8],m=m.replace("{1}",J.JSC$9313_dateTimeSymbols_.DATEFORMATS[c-8]),m=m.replace("{0}",J.JSC$9313_dateTimeSymbols_.TIMEFORMATS[c-8]);else if(c===12)m=J.JSC$9313_dateTimeSymbols_.DATEFORMATS[0].replace(/[^EMd]*yy*[^EMd]*/,"");else if(c===13)m=J.JSC$9313_dateTimeSymbols_.DATEFORMATS[2].replace(/[^EMd]*yy*[^EMd]*/,
"");else{S2z(J,10);return}hYB(J,m)},Sv=function(J,c){c=String(c);
J=J.JSC$9313_dateTimeSymbols_||wJ;if(J.ZERODIGIT!==void 0&&!lAG){for(var m=[],b=0;b<c.length;b++){var x=c.charCodeAt(b);m.push(48<=x&&x<=57?String.fromCharCode(J.ZERODIGIT+x-48):c.charAt(b))}c=m.join("")}return c},lAG=!1,yZe=!1,E26=function(J,c,m,b){m=m.getFullYear();
m<=0&&b&&(m=1-m);return Sv(J,GmQ(m,c))},GmQ=function(J,c){c==2&&(J%=100);
J<0&&c++;return _.Fy(J,c)},hN=function(J){if(!(J.getHours&&J.getSeconds&&J.getMinutes))throw Error("Xd");
},v22=function(J,c){hN(c);
c=UI(c);return J.JSC$9313_dateTimeSymbols_.AMPMS[c>=12&&c<24?1:0]},$L2=function(J,c,m,b,x,P){var p=c.length;
switch(c.charAt(0)){case "G":return m=b.getFullYear()>0?1:0,p>=4?J.JSC$9313_dateTimeSymbols_.ERANAMES[m]:J.JSC$9313_dateTimeSymbols_.ERAS[m];case "y":return E26(J,p,b,!0);case "Y":return m=(new Date(A0Q(b.getFullYear(),b.getMonth(),b.getDate(),J.JSC$9313_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,J.JSC$9313_dateTimeSymbols_.FIRSTDAYOFWEEK))).getFullYear(),p==2&&(m%=100),Sv(J,GmQ(m,p));case "u":return E26(J,p,b,!1);case "M":a:switch(m=b.getMonth(),p){case 5:p=J.JSC$9313_dateTimeSymbols_.NARROWMONTHS[m];break a;
case 4:p=J.JSC$9313_dateTimeSymbols_.MONTHS[m];break a;case 3:p=J.JSC$9313_dateTimeSymbols_.SHORTMONTHS[m];break a;default:p=Sv(J,_.Fy(m+1,p))}return p;case "k":return hN(x),Sv(J,_.Fy(UI(x)||24,p));case "S":return Sv(J,(x.getMilliseconds()/1E3).toFixed(Math.min(3,p)).slice(2)+(p>3?_.Fy(0,p-3):""));case "E":return m=b.getDay(),p>=4?J.JSC$9313_dateTimeSymbols_.WEEKDAYS[m]:J.JSC$9313_dateTimeSymbols_.SHORTWEEKDAYS[m];case "a":return v22(J,x);case "b":return v22(J,x);case "B":return v22(J,x);case "h":return hN(x),
Sv(J,_.Fy(UI(x)%12||12,p));case "K":return hN(x),Sv(J,_.Fy(UI(x)%12,p));case "H":return hN(x),Sv(J,_.Fy(UI(x),p));case "c":a:switch(m=b.getDay(),p){case 5:p=J.JSC$9313_dateTimeSymbols_.STANDALONENARROWWEEKDAYS[m];break a;case 4:p=J.JSC$9313_dateTimeSymbols_.STANDALONEWEEKDAYS[m];break a;case 3:p=J.JSC$9313_dateTimeSymbols_.STANDALONESHORTWEEKDAYS[m];break a;default:p=Sv(J,_.Fy(m,1))}return p;case "L":a:switch(m=b.getMonth(),p){case 5:p=J.JSC$9313_dateTimeSymbols_.STANDALONENARROWMONTHS[m];break a;
case 4:p=J.JSC$9313_dateTimeSymbols_.STANDALONEMONTHS[m];break a;case 3:p=J.JSC$9313_dateTimeSymbols_.STANDALONESHORTMONTHS[m];break a;default:p=Sv(J,_.Fy(m+1,p))}return p;case "Q":return m=Math.floor(b.getMonth()/3),p<4?J.JSC$9313_dateTimeSymbols_.SHORTQUARTERS[m]:J.JSC$9313_dateTimeSymbols_.QUARTERS[m];case "d":return Sv(J,_.Fy(b.getDate(),p));case "m":return hN(x),Sv(J,_.Fy(x.getMinutes?x.getMinutes():0,p));case "s":return hN(x),Sv(J,_.Fy(x.getSeconds(),p));case "v":return(P||$Y(m.getTimezoneOffset())).timeZoneId_;
case "V":return J=P||$Y(m.getTimezoneOffset()),p<=2?J.timeZoneId_:q22(J,m)>0?J.tzNamesExt_.DST_GENERIC_LOCATION!==void 0?J.tzNamesExt_.DST_GENERIC_LOCATION:J.tzNamesExt_.DST_GENERIC_LOCATION:J.tzNamesExt_.STD_GENERIC_LOCATION!==void 0?J.tzNamesExt_.STD_GENERIC_LOCATION:J.tzNamesExt_.STD_GENERIC_LOCATION;case "w":return m=A0Q(x.getFullYear(),x.getMonth(),x.getDate(),J.JSC$9313_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,J.JSC$9313_dateTimeSymbols_.FIRSTDAYOFWEEK),Sv(J,_.Fy(Math.floor(Math.round((m-(new Date((new Date(m)).getFullYear(),
0,1)).valueOf())/864E5)/7)+1,p));case "z":return J=P||$Y(m.getTimezoneOffset()),p<4?J.tzNames_[q22(J,m)>0?2:0]:J.tzNames_[q22(J,m)>0?3:1];case "Z":return c=P||$Y(m.getTimezoneOffset()),p<4?(p=-ULZ(c,m),J=[p<0?"-":"+"],p=Math.abs(p),J.push(_.Fy(Math.floor(p/60)%100,2),_.Fy(p%60,2)),p=J.join("")):p=Sv(J,ZX$(ULZ(c,m))),p;default:return""}};var OXZ=/^[ \t\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]/,ASC=/^[\s\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]+/,cre=function(J){this.patternParts_=[];this.JSC$9322_dateTimeSymbols_=wJ;if(typeof J=="number"){J>11&&(J=10);if(J<4)var c=this.JSC$9322_dateTimeSymbols_.DATEFORMATS[J];else J<8?c=this.JSC$9322_dateTimeSymbols_.TIMEFORMATS[J-4]:(c=this.JSC$9322_dateTimeSymbols_.DATETIMEFORMATS[J-8],c=c.replace("{1}",this.JSC$9322_dateTimeSymbols_.DATEFORMATS[J-8]),c=c.replace("{0}",this.JSC$9322_dateTimeSymbols_.TIMEFORMATS[J-
8]));RYa(this,c)}else RYa(this,J)},RYa=function(J,c){for(var m=!1,b="",x=0;x<c.length;x++){var P=c.charAt(x);
if(OXZ.test(P))for(b.length>0&&(J.patternParts_.push({text:b,count:0,abutStart:!1,numeric:!1}),b=""),J.patternParts_.push({text:" ",count:0,abutStart:!1,numeric:!1});x<c.length-1&&c.charAt(x+1)==" ";)x++;else if(m)P=="'"?x+1<c.length&&c.charAt(x+1)=="'"?(b+="'",x++):m=!1:b+=P;else if("GyMdkHmsSEDabBhKzZvQL".indexOf(P)>=0){b.length>0&&(J.patternParts_.push({text:b,count:0,abutStart:!1,numeric:!1}),b="");for(var p=c.charAt(x),t=x+1;t<c.length&&c.charAt(t)==p;)t++;p=t-x;p<=0?t=!1:(t="MydhHmsSDkK".indexOf(P),
t=t>0||t==0&&p<3);J.patternParts_.push({text:P,count:p,abutStart:!1,numeric:t});x+=p-1}else P=="'"?x+1<c.length&&c.charAt(x+1)=="'"?(b+="'",x++):m=!0:b+=P}b.length>0&&J.patternParts_.push({text:b,count:0,abutStart:!1,numeric:!1});c=!1;for(m=0;m<J.patternParts_.length;m++)J.patternParts_[m].numeric?!c&&m+1<J.patternParts_.length&&J.patternParts_[m+1].numeric&&(c=!0,J.patternParts_[m].abutStart=!0):c=!1};
cre.prototype.parse=function(J,c,m){var b=!1,x=!1;m&&(b=m.predictive||!1,x=m.validate||!1);if(b)for(m=0;m<this.patternParts_.length;m++){var P=this.patternParts_[m];if(P.count>0&&("abBhHkKm".indexOf(P.text.charAt(0))<0||P.count>2||P.abutStart))throw Error("Yd`"+P.text.charAt(0));}P=new o2Q;m=[0];P.dayPeriodIndex=-1;for(var p=0;p<this.patternParts_.length&&!(b&&m[0]>=J.length);p++){if(this.patternParts_[p].count==0){a:{var t=J;var I=m,a=this.patternParts_[p],k=b;if(a.text.match(OXZ)!=null){if(a=I[0],
Qn$(t,I),I[0]>a){t=!0;break a}}else{if(t.indexOf(a.text,I[0])==I[0]){I[0]+=a.text.length;t=!0;break a}if(k&&a.text.indexOf(t.substring(I[0]))==0){I[0]+=t.length-I[0];t=!0;break a}}t=!1}if(t)continue;return 0}if(this.patternParts_[p].abutStart){a:{I=J;a=m;k=p;var H=a[0],T=0;for(t=k;t<this.patternParts_.length;t++){var r=this.patternParts_[t],W=r.count;if(W===0)break;if(t==k&&(W-=T,T++,W==0)){t=0;break a}var Y=t>k&&r.numeric,Z=a[0];if(!eYu(this,I,a,r,W,P,!1)||Y&&a[0]-Z<W)t=k-1,a[0]=H}t-=k}if(t<=0)return 0;
p+=t-1}else if(!eYu(this,J,m,this.patternParts_[p],0,P,b))return 0}a:{J=x;if(c==null)throw Error("Zd");P.era!=void 0&&P.year!=void 0&&P.era==0&&P.year>0&&(P.year=-(P.year-1));P.year!=void 0&&c.setFullYear(P.year);b=c.getDate();c.setDate(1);P.month!=void 0&&c.setMonth(P.month);P.day!=void 0?c.setDate(P.day):(x=Yjr(c.getFullYear(),c.getMonth()),c.setDate(b>x?x:b));typeof c.setHours==="function"&&(P.hours==void 0&&(P.hours=c.getHours()),P.hours<12&&(P.ampm!=void 0&&P.ampm>0?P.hours+=12:P.dayPeriodName!==
void 0&&("isPm noon afternoon1 afternoon2 evening1 evening2".split(" ").includes(P.dayPeriodName)||["night1","night2"].includes(P.dayPeriodName)&&P.hours>=6)&&(P.hours+=12)),c.setHours(P.hours));typeof c.setMinutes==="function"&&P.minutes!=void 0&&c.setMinutes(P.minutes);typeof c.setSeconds==="function"&&P.seconds!=void 0&&c.setSeconds(P.seconds);typeof c.setMilliseconds==="function"&&P.milliseconds!=void 0&&c.setMilliseconds(P.milliseconds);if(J&&(P.year&&P.year!=c.getFullYear()||P.month&&P.month!=
c.getMonth()||P.day&&P.day!=c.getDate()||P.hours&&P.hours>=24||P.minutes&&P.minutes>=60||P.seconds&&P.seconds>=60||P.milliseconds&&P.milliseconds>=1E3))c=!1;else{P.tzOffset!=void 0&&c.setTime(c.getTime()+(P.tzOffset-c.getTimezoneOffset())*60*1E3);P.ambiguousYear&&(J=new Date,J.setFullYear(J.getFullYear()-80),c.getTime()<J.getTime()&&c.setFullYear(J.getFullYear()+100));if(P.dayOfWeek!=void 0)if(P.day==void 0)P=(7+P.dayOfWeek-c.getDay())%7,P>3&&(P-=7),J=c.getMonth(),c.setDate(c.getDate()+P),c.getMonth()!=
J&&c.setDate(c.getDate()+(P>0?-7:7));else if(P.dayOfWeek!=c.getDay()){c=!1;break a}c=!0}}return c?m[0]:0};
var eYu=function(J,c,m,b,x,P,p){Qn$(c,m);if(b.numeric&&x>0&&m[0]+x>c.length)return!1;switch(b.text.charAt(0)){case "G":return dy(c,m,[J.JSC$9322_dateTimeSymbols_.ERAS],function(t){return P.era=t}),!0;
case "M":case "L":return jnL(J,c,m,x,b,P);case "E":return dy(c,m,[J.JSC$9322_dateTimeSymbols_.WEEKDAYS,J.JSC$9322_dateTimeSymbols_.SHORTWEEKDAYS],function(t){return P.dayOfWeek=t});
case "B":case "b":return x=[],J=[[].concat(J.JSC$9322_dateTimeSymbols_.AMPMS)],x.push("isAm"),x.push("isPm"),c=dy(c,m,J,function(t){return P.dayPeriodIndex=t},p),P.dayPeriodName=x[P.dayPeriodIndex],p?c:!0;
case "a":return c=dy(c,m,[J.JSC$9322_dateTimeSymbols_.AMPMS],function(t){return P.ampm=t},p),p?c:!0;
case "y":return F96(J,c,m,b,x,P);case "Q":return dy(c,m,[J.JSC$9322_dateTimeSymbols_.QUARTERS,J.JSC$9322_dateTimeSymbols_.SHORTQUARTERS],function(t){P.month=t*3;P.day=1});
case "d":return $6(J,c,m,b,x,function(t){P.day=t}),!0;
case "S":return lu_(J,c,m,x,P);case "h":case "K":case "H":case "k":return c=$6(J,c,m,b,x,function(t){P.hours=b.text.charAt(0)==="h"&&t===12?0:t},p),p?c:!0;
case "m":return c=$6(J,c,m,b,x,function(t){P.minutes=t},p),p?c:!0;
case "s":return $6(J,c,m,b,x,function(t){P.seconds=t}),!0;
case "z":case "Z":case "v":return yS$(J,c,m,P);default:return!1}},F96=function(J,c,m,b,x,P){var p=m[0];
x=GW(J,c,m,x);x===null&&(x=GW(J,c,m,0,!0));if(x===null)return!1;x>=0&&m[0]-p==2&&b.count==2?(J=x,c=(new Date).getFullYear()-80,m=c%100,P.ambiguousYear=J==m,J+=Math.floor(c/100)*100+(J<m?100:0),P.year=J):P.year=x;return!0},jnL=function(J,c,m,b,x,P){return x.numeric&&$6(J,c,m,x,b,function(p){P.month=p-1})?!0:dy(c,m,[J.JSC$9322_dateTimeSymbols_.MONTHS,
J.JSC$9322_dateTimeSymbols_.STANDALONEMONTHS,J.JSC$9322_dateTimeSymbols_.SHORTMONTHS,J.JSC$9322_dateTimeSymbols_.STANDALONESHORTMONTHS],function(p){P.month=p})},lu_=function(J,c,m,b,x){var P=m[0];
J=GW(J,c,m,b);if(J===null)return!1;m=m[0]-P;x.milliseconds=m<3?J*Math.pow(10,3-m):Math.round(J/Math.pow(10,m-3));return!0},yS$=function(J,c,m,b){c.indexOf("GMT",m[0])==m[0]&&(m[0]+=3);
if(m[0]>=c.length)return b.tzOffset=0,!0;var x=m[0],P=GW(J,c,m,0,!0);if(P===null)return!1;if(m[0]<c.length&&c.charAt(m[0])==":"){var p=P*60;m[0]++;P=GW(J,c,m,0);if(P===null)return!1;p+=P}else p=P,p=p<24&&m[0]-x<=3?p*60:p%100+p/100*60;b.tzOffset=-p;return!0},$6=function(J,c,m,b,x,P,p){p=p||!1;
var t=m[0];J=GW(J,c,m,x);if(J===null)return!1;if(p&&m[0]-t<b.count){if(m[0]<c.length)return!1;J*=Math.pow(10,b.count-(m[0]-t))}P(J);return!0},dy=function(J,c,m,b,x){x=x||!1;
for(var P,p=0;p<m.length;p++){P=c;for(var t=m[p],I=x,a=0,k=null,H=J.substring(P[0]).toLowerCase(),T=0;T<t.length;T++){var r=t[T].toLowerCase();if(I&&r.indexOf(H)==0){a=H.length;k=T;break}t[T].length>a&&H.indexOf(r)==0&&(a=t[T].length,k=T)}k!==null&&(P[0]+=a);P=k;if(P!==null)return b(P),!0}return!1},Qn$=function(J,c){(J=J.substring(c[0]).match(ASC))&&(c[0]+=J[0].length)},GW=function(J,c,m,b,x){c=b>0?c.substring(0,m[0]+b):c;
x=x||!1;if(J.JSC$9322_dateTimeSymbols_.ZERODIGIT){b=[];for(var P=m[0];P<c.length;P++){var p=c.charCodeAt(P)-J.JSC$9322_dateTimeSymbols_.ZERODIGIT;b.push(0<=p&&p<=9?String.fromCharCode(p+48):c.charAt(P))}c=b.join("")}else c=c.substring(m[0]);J=c.match(new RegExp("^"+(x?"[+-]?":"")+"\\d+"));if(!J)return null;m[0]+=J[0].length;return parseInt(J[0],10)},o2Q=function(){};
o2Q.prototype.ambiguousYear=!1;_.BMB={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 g2Q={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"},J7u=g2Q,c7L=g2Q;c7L=J7u=g2Q;var bk8,EI,OI,TZJ,vi,my_;
_.Sk=function(J,c,m,b){var x;if(x=c){a:if(c&&c.length===3){for(x=0;x<3;x++){var P=c[x];if(P<"A"||P>"Z"&&P<"a"||P>"z"){x=!1;break a}}x=!0}else x=!1;x=!x}if(x)throw new TypeError("$d");this.intlCurrencyCode_=c?c.toUpperCase():null;this.currencyStyle_=m||0;this.overrideNumberFormatSymbols_=b||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_=EI(this).MINUS_SIGN;this.negativeSuffix_="";this.multiplier_=1;this.negativePercentSignExpected_=!1;this.groupingArray_=[];this.useExponentialNotation_=this.decimalSeparatorAlwaysShown_=!1;this.compactStyle_=0;if(typeof J==="number")switch(J){case 1:vi(this,EI(this).DECIMAL_PATTERN);break;case 2:vi(this,EI(this).SCIENTIFIC_PATTERN);break;case 3:vi(this,EI(this).PERCENT_PATTERN);break;case 4:J=EI(this).CURRENCY_PATTERN;c=["0"];if(m=
qP[OI(this)]){m=m[0]&7;if(m>0)for(c.push("."),b=0;b<m;b++)c.push("0");J=J.replace(/0.00/g,c.join(""))}vi(this,J);break;case 5:my_(this,1);break;case 6:my_(this,2);break;default:throw Error("ce");}else vi(this,J)};
bk8=!1;EI=function(J){return J.overrideNumberFormatSymbols_||(bk8?c7L:J7u)};
OI=function(J){return J.intlCurrencyCode_||EI(J).DEF_CURRENCY_CODE};
TZJ=function(J,c){if(c>308)throw Error("be`"+c);J.maximumFractionDigits_=c;return J};
vi=function(J,c){var m=[0];J.positivePrefix_=xy2(J,c,m);for(var b=m[0],x=-1,P=0,p=0,t=0,I=-1,a=c.length,k=!0;m[0]<a&&k;m[0]++)switch(c.charAt(m[0])){case "#":p>0?t++:P++;I>=0&&x<0&&I++;break;case "0":if(t>0)throw Error("ie`"+c);p++;I>=0&&x<0&&I++;break;case ",":I>0&&J.groupingArray_.push(I);I=0;break;case ".":if(x>=0)throw Error("je`"+c);x=P+p+t;break;case "E":if(J.useExponentialNotation_)throw Error("ke`"+c);J.useExponentialNotation_=!0;J.minExponentDigits_=0;m[0]+1<a&&c.charAt(m[0]+1)=="+"&&(m[0]++,
J.useSignForPositiveExponent_=!0);for(;m[0]+1<a&&c.charAt(m[0]+1)=="0";)m[0]++,J.minExponentDigits_++;if(P+p<1||J.minExponentDigits_<1)throw Error("le`"+c);k=!1;break;default:m[0]--,k=!1}p==0&&P>0&&x>=0&&(p=x,p==0&&p++,t=P-p,P=p-1,p=1);if(x<0&&t>0||x>=0&&(x<P||x>P+p)||I==0)throw Error("me`"+c);t=P+p+t;J.maximumFractionDigits_=x>=0?t-x:0;x>=0&&(J.minimumFractionDigits_=P+p-x,J.minimumFractionDigits_<0&&(J.minimumFractionDigits_=0));J.minimumIntegerDigits_=(x>=0?x:t)-P;J.useExponentialNotation_&&(J.maximumIntegerDigits_=
P+J.minimumIntegerDigits_,J.maximumFractionDigits_==0&&J.minimumIntegerDigits_==0&&(J.minimumIntegerDigits_=1));J.groupingArray_.push(Math.max(0,I));J.decimalSeparatorAlwaysShown_=x==0||x==t;b=m[0]-b;J.positiveSuffix_=xy2(J,c,m);m[0]<c.length&&c.charAt(m[0])==";"?(m[0]++,J.multiplier_!=1&&(J.negativePercentSignExpected_=!0),J.negativePrefix_=xy2(J,c,m),m[0]+=b,J.negativeSuffix_=xy2(J,c,m)):(J.negativePrefix_+=J.positivePrefix_,J.negativeSuffix_+=J.positiveSuffix_)};
my_=function(J,c){J.compactStyle_=c;vi(J,EI(J).DECIMAL_PATTERN);J.minimumFractionDigits_=0;TZJ(J,2);if(J.minimumFractionDigits_>0)throw Error("ae");J.significantDigits_=2};
_.Sk.prototype.parse=function(J,c){c=c||[0];if(this.compactStyle_!==0)throw Error("de");J=J.replace(/ |\u202f/g,"\u00a0");var m=J.indexOf(this.positivePrefix_,c[0])==c[0],b=J.indexOf(this.negativePrefix_,c[0])==c[0];m&&b&&(this.positivePrefix_.length>this.negativePrefix_.length?b=!1:this.positivePrefix_.length<this.negativePrefix_.length&&(m=!1));m?c[0]+=this.positivePrefix_.length:b&&(c[0]+=this.negativePrefix_.length);if(J.indexOf(EI(this).INFINITY,c[0])==c[0]){c[0]+=EI(this).INFINITY.length;var x=
Infinity}else{x=J;var P=!1,p=!1,t=!1,I=-1,a=1,k=EI(this).DECIMAL_SEP,H=EI(this).GROUP_SEP,T=EI(this).EXP_SYMBOL;if(this.compactStyle_!=0)throw Error("ee");H=H.replace(/\u202f/g,"\u00a0");for(var r="";c[0]<x.length;c[0]++){var W=x.charAt(c[0]),Y=Vka(this,W);if(Y>=0&&Y<=9)r+=Y,t=!0;else if(W==k.charAt(0)){if(P||p)break;r+=".";P=!0}else if(W==H.charAt(0)&&("\u00a0"!=H.charAt(0)||c[0]+1<x.length&&Vka(this,x.charAt(c[0]+1))>=0)){if(P||p)break}else if(W==T.charAt(0)){if(p)break;r+="E";p=!0;I=c[0]}else if(W==
"+"||W=="-"){if(t&&I!=c[0]-1)break;r+=W}else if(this.multiplier_==1&&W==EI(this).PERCENT.charAt(0)){if(a!=1)break;a=100;if(t){c[0]++;break}}else if(this.multiplier_==1&&W==EI(this).PERMILL.charAt(0)){if(a!=1)break;a=1E3;if(t){c[0]++;break}}else break}this.multiplier_!=1&&(a=this.multiplier_);x=parseFloat(r)/a}if(m){if(J.indexOf(this.positiveSuffix_,c[0])!=c[0])return NaN;c[0]+=this.positiveSuffix_.length}else if(b){if(J.indexOf(this.negativeSuffix_,c[0])!=c[0])return NaN;c[0]+=this.negativeSuffix_.length}return b?
-x:x};
_.Sk.prototype.format=function(J){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("fe");if(isNaN(J))return EI(this).NAN;var c=[];var m=J;if(this.compactStyle_==0)m=AN;else{m=Math.abs(m);var b=PW_(this,m<=1?0:Mk_(m)).divisorBase;m=PW_(this,b+Mk_(p2Q(this,R9(m,-b)).intValue))}J=R9(J,-m.divisorBase);(b=J<0||J==0&&1/J<0)?m.negative_prefix?c.push(m.negative_prefix):(c.push(m.prefix),c.push(this.negativePrefix_)):(c.push(m.prefix),c.push(this.positivePrefix_));if(isFinite(J))if(J*=
b?-1:1,J*=this.multiplier_,this.useExponentialNotation_){var x=J;if(x==0)Nf8(this,x,this.minimumIntegerDigits_,c),tk_(this,0,c);else{var P=Math.floor(Math.log(x)/Math.log(10)+2E-15);x=R9(x,-P);var p=this.minimumIntegerDigits_;this.maximumIntegerDigits_>1&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(p=P%this.maximumIntegerDigits_,p<0&&(p=this.maximumIntegerDigits_+p),x=R9(x,p),P-=p,p=1):this.minimumIntegerDigits_<1?(P++,x=R9(x,-1)):(P-=this.minimumIntegerDigits_-1,x=R9(x,this.minimumIntegerDigits_-
1));Nf8(this,x,p,c);tk_(this,P,c)}}else Nf8(this,J,this.minimumIntegerDigits_,c);else c.push(EI(this).INFINITY);b?m.negative_suffix?c.push(m.negative_suffix):(isFinite(J)&&c.push(m.suffix),c.push(this.negativeSuffix_)):(isFinite(J)&&c.push(m.suffix),c.push(this.positiveSuffix_));return c.join("")};
var p2Q=function(J,c){var m=R9(c,J.maximumFractionDigits_);J.significantDigits_>0&&(m=IZz(m,J.significantDigits_,J.maximumFractionDigits_));m=Math.round(m);if(isFinite(m)){var b=Math.floor(R9(m,-J.maximumFractionDigits_));m=Math.floor(m-R9(b,J.maximumFractionDigits_));if(m<0||m>=R9(1,J.maximumFractionDigits_))b=Math.round(c),m=0}else b=c,m=0;return{intValue:b,fracValue:m}},Nf8=function(J,c,m,b){if(J.minimumFractionDigits_>J.maximumFractionDigits_)throw Error("fe");
b||(b=[]);c=p2Q(J,c);var x=c.intValue,P=c.fracValue,p=J.minimumFractionDigits_>0||P>0||!1;c=J.minimumFractionDigits_;p&&(c=J.minimumFractionDigits_);for(var t="",I=x;I>1E20;)t="0"+t,I=Math.round(R9(I,-1));t=I+t;var a=EI(J).DECIMAL_SEP;I=EI(J).ZERO_DIGIT.codePointAt(0);var k=t.length,H=0;if(x>0||m>0){for(x=k;x<m;x++)b.push(String.fromCodePoint(I));if(J.groupingArray_.length>=2)for(m=1;m<J.groupingArray_.length;m++)H+=J.groupingArray_[m];m=k-H;if(m>0){x=J.groupingArray_;H=k=0;for(var T,r=EI(J).GROUP_SEP,
W=t.length,Y=0;Y<W;Y++)if(b.push(String.fromCodePoint(I+Number(t.charAt(Y)))),W-Y>1)if(T=x[H],Y<m){var Z=m-Y;(T===1||T>0&&Z%T===1)&&b.push(r)}else H<x.length&&(Y===m?H+=1:T===Y-m-k+1&&(b.push(r),k+=T,H+=1))}else{m=t;t=J.groupingArray_;x=EI(J).GROUP_SEP;T=m.length;r=[];for(k=t.length-1;k>=0&&T>0;k--){H=t[k];for(W=0;W<H&&T-W-1>=0;W++)r.push(String.fromCodePoint(I+Number(m.charAt(T-W-1))));T-=H;T>0&&r.push(x)}b.push.apply(b,r.reverse())}}else p||b.push(String.fromCodePoint(I));(J.decimalSeparatorAlwaysShown_||
p)&&b.push(a);P=String(P);p=P.split("e+");p.length==2&&(P=String(IZz(parseFloat(p[0]),J.significantDigits_,1)),P=P.replace(".",""),P+=(0,_.VSe)("0",parseInt(p[1],10)-P.length+1));J.maximumFractionDigits_+1>P.length&&(P="1"+(0,_.VSe)("0",J.maximumFractionDigits_-P.length)+P);for(J=P.length;P.charAt(J-1)=="0"&&J>c+1;)J--;for(c=1;c<J;c++)b.push(String.fromCodePoint(I+Number(P.charAt(c))))},tk_=function(J,c,m){m.push(EI(J).EXP_SYMBOL);
c<0?(c=-c,m.push(EI(J).MINUS_SIGN)):J.useSignForPositiveExponent_&&m.push(EI(J).PLUS_SIGN);c=""+c;for(var b=EI(J).ZERO_DIGIT,x=c.length;x<J.minExponentDigits_;x++)m.push(b);J=b.codePointAt(0)-KAu;for(b=0;b<c.length;b++)m.push(String.fromCodePoint(J+c.codePointAt(b)))},Vka=function(J,c){c=c.codePointAt(0);
if(48<=c&&c<58)return c-48;J=EI(J).ZERO_DIGIT.codePointAt(0);return J<=c&&c<J+10?c-J:-1},KAu="0".codePointAt(0),xy2=function(J,c,m){for(var b="",x=!1,P=c.length;m[0]<P;m[0]++){var p=c.charAt(m[0]);
if(p=="'")m[0]+1<P&&c.charAt(m[0]+1)=="'"?(m[0]++,b+="'"):x=!x;else if(x)b+=p;else switch(p){case "#":case "0":case ",":case ".":case ";":return b;case "\u00a4":if(m[0]+1<P&&c.charAt(m[0]+1)=="\u00a4")m[0]++,b+=OI(J);else switch(J.currencyStyle_){case 0:p=OI(J);b+=p in qP?qP[p][1]:p;break;case 2:p=OI(J);var t=qP[p];b+=t?p==t[1]?p:p+" "+t[1]:p;break;case 1:p=OI(J),b+=p in qP?qP[p][2]:p}break;case "%":if(!J.negativePercentSignExpected_&&J.multiplier_!=1)throw Error("ge");if(J.negativePercentSignExpected_&&
J.multiplier_!=100)throw Error("he");J.multiplier_=100;J.negativePercentSignExpected_=!1;b+=EI(J).PERCENT;break;case "\u2030":if(!J.negativePercentSignExpected_&&J.multiplier_!=1)throw Error("ge");if(J.negativePercentSignExpected_&&J.multiplier_!=1E3)throw Error("he");J.multiplier_=1E3;J.negativePercentSignExpected_=!1;b+=EI(J).PERMILL;break;default:b+=p}}return b},AN={divisorBase:0,
negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},PW_=function(J,c){J=J.compactStyle_==1?ZQ.COMPACT_DECIMAL_SHORT_PATTERN:ZQ.COMPACT_DECIMAL_LONG_PATTERN;J==null&&(J=ZQ.COMPACT_DECIMAL_SHORT_PATTERN);if(c<3)return AN;c=Math.min(14,c);var m=J[R9(1,c)];for(--c;!m&&c>=3;)m=J[R9(1,c)],c--;if(!m)return AN;m=m.other;var b=J="",x=m.indexOf(";");x>=0&&(m=m.substring(0,x),x=m.substring(x+1))&&(b=/([^0]*)(0+)(.*)/.exec(x),J=b[1],b=b[3]);return m&&m!="0"?(m=/([^0]*)(0+)(.*)/.exec(m))?{divisorBase:c+
1-(m[2].length-1),negative_prefix:J,negative_suffix:b,prefix:m[1],suffix:m[3]}:AN:AN},Mk_=function(J){if(!isFinite(J))return J>0?J:0;
for(var c=0;(J/=10)>=1;)c++;return c},R9=function(J,c){if(!J||!isFinite(J)||c==0)return J;
J=String(J).split("e");return parseFloat(J[0]+"e"+(parseInt(J[1]||0,10)+c))},CW8=function(J,c){return J&&isFinite(J)?R9(Math.round(R9(J,c)),-c):J},IZz=function(J,c,m){if(!J)return J;
c=c-Mk_(J)-1;return c<-m?CW8(J,-m):CW8(J,c)};var aZC=function(J){return J%10==1&&J%100!=11?"one":J%10==2&&J%100!=12?"two":J%10==3&&J%100!=13?"few":"other"},k2a=aZC;
k2a=aZC;var Hk2;Hk2=function(J,c){var m=J|0;if(void 0===c){c=Math;var b=c.min,x=J+"",P=x.indexOf(".");c=b.call(c,P===-1?0:x.length-P-1,3)}b=Math.pow(10,c);J={v:c,f:(J*b|0)%b};return m==1&&J.v==0?"one":"other"};
_.EG=Hk2;_.EG=Hk2;var ikB,nY2,Tf2,r7$,scQ;_.w2Z=function(J){this.JSC$9365_pattern_=J;this.parsedPattern_=this.literals_=this.initialLiterals_=null;J=J7u;var c=ZQ;if(ikB!==J||nY2!==c)ikB=J,nY2=c,Tf2=new _.Sk(1);this.numberFormatter_=Tf2};
ikB=null;nY2=null;Tf2=null;r7$=RegExp("'([{}#].*?)'","g");scQ=RegExp("''","g");
_.w2Z.prototype.format=function(J){if(this.JSC$9365_pattern_){this.initialLiterals_=[];var c=LAB(this,this.JSC$9365_pattern_);this.parsedPattern_=Dy8(this,c);this.JSC$9365_pattern_=null}if(this.parsedPattern_&&this.parsedPattern_.length!=0)for(this.literals_=_.Fe(this.initialLiterals_),c=[],WAz(this,this.parsedPattern_,J,!1,c),J=c.join("");this.literals_.length>0;)J=J.replace(this.buildPlaceholder_(this.literals_),String(this.literals_.pop()).replace("$","$$$$"));else J="";return J};
var WAz=function(J,c,m,b,x){for(var P=0;P<c.length;P++)switch(c[P].type){case 4:x.push(c[P].value);break;case 3:var p=c[P].value;var t=J,I=x,a=m[p];a===void 0?I.push("Undefined parameter - "+p):(t.literals_.push(a),I.push(t.buildPlaceholder_(t.literals_)));break;case 2:p=c[P].value;t=J;I=m;a=b;var k=x,H=p.argumentIndex;I[H]===void 0?k.push("Undefined parameter - "+H):(H=p[I[H]],H===void 0&&(H=p.other),WAz(t,H,I,a,k));break;case 0:p=c[P].value;zEz(J,p,m,_.EG,b,x);break;case 1:p=c[P].value,zEz(J,p,
m,k2a,b,x)}},zEz=function(J,c,m,b,x,P){var p=c.argumentIndex,t=c.argumentOffset,I=+m[p];
isNaN(I)?P.push("Undefined or invalid parameter - "+p):(t=I-t,p=c[m[p]],p===void 0&&(b=b(Math.abs(t)),p=c[b],p===void 0&&(p=c.other)),c=[],WAz(J,p,m,x,c),m=c.join(""),x?P.push(m):(J=J.numberFormatter_.format(t),P.push(m.replace(/#/g,J))))},LAB=function(J,c){var m=J.initialLiterals_,b=J.buildPlaceholder_.bind(J);
c=c.replace(scQ,function(){m.push("'");return b(m)});
return c=c.replace(r7$,function(x,P){m.push(P);return b(m)})},uMB=function(J){var c=0,m=[],b=[],x=/[{}]/g;
x.lastIndex=0;for(var P;P=x.exec(J);){var p=P.index;P[0]=="}"?(m.pop(),m.length==0&&(P={type:1},P.value=J.substring(c,p),b.push(P),c=p+1)):(m.length==0&&(c=J.substring(c,p),c!=""&&b.push({type:0,value:c}),c=p+1),m.push("{"))}J=J.substring(c);J!=""&&b.push({type:0,value:J});return b},fZz=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,YGZ=/^\s*(\w+)\s*,\s*selectordinal\s*,/,X2L=/^\s*(\w+)\s*,\s*select\s*,/,Dy8=function(J,c){var m=[];
c=uMB(c);for(var b=0;b<c.length;b++){var x={};if(0==c[b].type)x.type=4,x.value=c[b].value;else if(1==c[b].type){var P=c[b].value;switch(fZz.test(P)?0:YGZ.test(P)?1:X2L.test(P)?2:/^\s*\w+\s*/.test(P)?3:5){case 2:x.type=2;x.value=Zkz(J,c[b].value);break;case 0:x.type=0;x.value=qG6(J,c[b].value);break;case 1:x.type=1;x.value=Uyz(J,c[b].value);break;case 3:x.type=3,x.value=c[b].value}}m.push(x)}return m},Zkz=function(J,c){var m="";
c=c.replace(X2L,function(t,I){m=I;return""});
var b={};b.argumentIndex=m;c=uMB(c);for(var x=0;x<c.length;){var P=c[x].value;x++;var p=void 0;1==c[x].type&&(p=Dy8(J,c[x].value));b[P.replace(/\s/g,"")]=p;x++}return b},qG6=function(J,c){var m="",b=0;
c=c.replace(fZz,function(I,a,k){m=a;k&&(b=parseInt(k,10));return""});
var x={};x.argumentIndex=m;x.argumentOffset=b;c=uMB(c);for(var P=0;P<c.length;){var p=c[P].value;P++;var t=void 0;1==c[P].type&&(t=Dy8(J,c[P].value));x[p.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=t;P++}return x},Uyz=function(J,c){var m="";
c=c.replace(YGZ,function(t,I){m=I;return""});
var b={};b.argumentIndex=m;b.argumentOffset=0;c=uMB(c);for(var x=0;x<c.length;){var P=c[x].value;x++;var p=void 0;1==c[x].type&&(p=Dy8(J,c[x].value));b[P.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=p;x++}return b};
_.w2Z.prototype.buildPlaceholder_=function(J){return"\ufddf_"+(J.length-1).toString(10)+"_"};var SG_;
SG_={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 JMt=function(){this.rdtfSymbols_=hEj||SG_;this.alwaysNumeric_=this.alwaysNumeric_=!0;this.style_=0};
JMt.prototype.format=function(J,c){a:{c=dyu(this,c);switch(this.style_){case 2:if(c.NARROW!=void 0){c=c.NARROW;break a}case 1:if(c.SHORT!=void 0){c=c.SHORT;break a}default:c=c.LONG;break a}c=void 0}if(!this.alwaysNumeric_&&c&&c.R&&c.R[""+J])J=c.R[""+J];else if(c){var m=Math.abs(J);J=(new _.w2Z("{N,plural,"+(J>0||J==0&&1/J==Infinity?c.F:c.P)+"}")).format({N:m})}else J="";return J};
var dyu=function(J,c){switch(c){default:case 0:return J.rdtfSymbols_.YEAR;case 1:return J.rdtfSymbols_.QUARTER;case 2:return J.rdtfSymbols_.MONTH;case 3:return J.rdtfSymbols_.WEEK;case 4:return J.rdtfSymbols_.DAY;case 5:return J.rdtfSymbols_.HOUR;case 6:return J.rdtfSymbols_.MINUTE;case 7:return J.rdtfSymbols_.SECOND}};var $yj=function(J,c,m,b,x,P,p,t){this.x0=J;this.y0=c;this.x1=m;this.y1=b;this.x2=x;this.y2=P;this.x3=p;this.y3=t};
$yj.prototype.clone=function(){return new $yj(this.x0,this.y0,this.x1,this.y1,this.x2,this.y2,this.x3,this.y3)};
$yj.prototype.equals=function(J){return this.x0==J.x0&&this.y0==J.y0&&this.x1==J.x1&&this.y1==J.y1&&this.x2==J.x2&&this.y2==J.y2&&this.x3==J.x3&&this.y3==J.y3};
var G2_=function(J,c){if(c==0)return J.x0;if(c==1)return J.x3;var m=aS(J.x0,J.x1,c),b=aS(J.x1,J.x2,c);J=aS(J.x2,J.x3,c);m=aS(m,b,c);b=aS(b,J,c);return aS(m,b,c)},EY_=function(J,c){var m=(c-J.x0)/(J.x3-J.x0);
if(m<=0)return 0;if(m>=1)return 1;for(var b=0,x=1,P=0,p=0;p<8;p++){P=G2_(J,m);var t=(G2_(J,m+1E-6)-P)/1E-6;if(Math.abs(P-c)<1E-6)return m;if(Math.abs(t)<1E-6)break;else P<c?b=m:x=m,m-=(P-c)/t}for(p=0;Math.abs(P-c)>1E-6&&p<8;p++)P<c?(b=m,m=(m+x)/2):(x=m,m=(m+b)/2),P=G2_(J,m);return m};var o9=function(){_.KI.call(this);this.JSC$9386_name_="closure_frame"+vYQ++;this.iframesForDisposal_=[];Ok6[this.JSC$9386_name_]=this},Qi;
_.yv(o9,_.KI);var Ok6={},vYQ=0,A7C=function(J,c){var m=Cw(J);_.PKZ(c,function(b,x){Array.isArray(b)||(b=[b]);_.vG(b,function(P){P=m.JSC$7339_createDom("INPUT",{type:"hidden",name:x,value:P});J.appendChild(P)})})};
_.V=o9.prototype;_.V.JSC$9388_form_=null;_.V.JSC$9388_iframe_=null;_.V.iframeName_=null;_.V.nextIframeId_=0;_.V.JSC$9388_active_=!1;_.V.complete_=!1;_.V.success_=!1;_.V.lastContent_=null;_.V.JSC$9388_lastErrorCode_=0;_.V.iframeDisposalTimer_=null;
_.V.send=function(J,c,m,b){if(this.JSC$9388_active_)throw Error("ne");J=new _.oz(J);c=c?c.toUpperCase():"GET";m&&_.Bz(J);Qi||(Qi=_.nd("FORM"),Qi.acceptCharset="utf-8",m=Qi.style,m.position="absolute",m.visibility="hidden",m.top=m.left="-10px",m.width=m.height="10px",m.overflow="hidden",document.body.appendChild(Qi));this.JSC$9388_form_=Qi;c=="GET"&&A7C(this.JSC$9388_form_,J.JSC$8042_queryData_);b&&A7C(this.JSC$9388_form_,b);m=J.toString();m=l7T(m);b=this.JSC$9388_form_;m=_.Dx(K1(m));m!==void 0&&(b.action=
m);this.JSC$9388_form_.method=c;RE8(this);oY_(this)};
_.V.abort=function(J){if(this.JSC$9388_active_){var c=ev(this);if(c)if(Nb(c))c.removeAllListeners(void 0);else if(c=ti(c)){var m=0,b;for(b in c.listeners)for(var x=c.listeners[b].concat(),P=0;P<x.length;++P)iv(x[P])&&++m}this.success_=this.JSC$9388_active_=this.complete_=!1;this.JSC$9388_lastErrorCode_=J||7;this.dispatchEvent("abort");Qcz(this)}};
_.V.disposeInternal=function(){this.JSC$9388_active_&&this.abort();o9.superClass_.disposeInternal.call(this);this.JSC$9388_iframe_&&eEu(this);oY_(this);this.JSC$9388_form_=null;delete this.errorChecker_;this.lastContent_=this.JSC$9388_form_=null;this.JSC$9388_lastErrorCode_=0;delete Ok6[this.JSC$9386_name_]};
_.V.isComplete=function(){return this.complete_};
_.V.isSuccess=function(){return this.success_};
_.V.isActive=function(){return this.JSC$9388_active_};
_.V.getResponseText=function(){return this.lastContent_};
_.V.getLastError=function(){return _.d0z(this.JSC$9388_lastErrorCode_)};
var RE8=function(J){J.JSC$9388_active_=!0;J.complete_=!1;J.JSC$9388_lastErrorCode_=0;J.iframeName_=J.JSC$9386_name_+"_"+(J.nextIframeId_++).toString(36);J.JSC$9388_iframe_=Cw(J.JSC$9388_form_).JSC$7339_createDom("IFRAME",{name:J.iframeName_,id:J.iframeName_});var c=J.JSC$9388_iframe_.style;c.visibility="hidden";c.width=c.height="10px";c.display="none";_.ms?c.marginTop=c.marginLeft="-10px":(c.position="absolute",c.top=c.left="-10px");Cw(J.JSC$9388_form_).JSC$7337_document_.body.appendChild(J.JSC$9388_iframe_);
c=J.iframeName_+"_inner";var m=ue2(J.JSC$9388_iframe_);if(document.baseURI){var b=cg(c);b='<head><base href="'+cg(document.baseURI)+'"></head><body><iframe id="'+b+'" name="'+b+'"></iframe>';b=us(b)}else b=cg(c),b=us('<body><iframe id="'+b+'" name="'+b+'"></iframe>');m.write(f1(b));_.wp(m.getElementById(c),"load",J.onIframeLoaded_,!1,J);b=Tj("TEXTAREA",J.JSC$9388_form_);for(var x=0,P=b.length;x<P;x++){var p=b[x].value;UfB(b[x])!=p&&(_.WQ(b[x],p),b[x].value=p)}b=m.importNode(J.JSC$9388_form_,!0);b.target=
c;b.action=J.JSC$9388_form_.action;m.body.appendChild(b);x=Tj("SELECT",J.JSC$9388_form_);P=Tj("SELECT",b);p=0;for(var t=x.length;p<t;p++)for(var I=Tj("OPTION",x[p]),a=Tj("OPTION",P[p]),k=0,H=I.length;k<H;k++)a[k].selected=I[k].selected;x=Tj("INPUT",J.JSC$9388_form_);P=Tj("INPUT",b);p=0;for(t=x.length;p<t;p++)if(x[p].type=="file"&&x[p].value!=P[p].value){J.JSC$9388_form_.target=c;b=J.JSC$9388_form_;break}try{J.errorHandled_=!1,b.submit(),m.close(),_.ce&&setTimeout(J.testForFirefoxSilentError_.bind(J),
250)}catch(T){_.Is(m.getElementById(c),"load",J.onIframeLoaded_,!1,J),m.close(),jv(J,2)}};
o9.prototype.onIframeLoaded_=function(){_.Is(ev(this),"load",this.onIframeLoaded_,!1,this);try{var J=this.JSC$9388_iframe_?ue2(ev(this)):null;this.complete_=!0;this.JSC$9388_active_=!1;try{var c=J.body;this.lastContent_=c.textContent||c.innerText}catch(x){var m=1}var b;m||typeof this.errorChecker_!="function"||(b=this.errorChecker_(J))&&(m=4);m?jv(this,m):(this.success_=!0,this.JSC$9388_lastErrorCode_=0,this.dispatchEvent("complete"),this.dispatchEvent("success"),Qcz(this))}catch(x){jv(this,1)}};
var jv=function(J,c){J.errorHandled_||(J.success_=!1,J.JSC$9388_active_=!1,J.complete_=!0,J.JSC$9388_lastErrorCode_=c,J.dispatchEvent("complete"),J.dispatchEvent("error"),Qcz(J),J.errorHandled_=!0)},Qcz=function(J){eEu(J);
oY_(J);J.JSC$9388_form_=null;J.dispatchEvent("ready")},eEu=function(J){var c=J.JSC$9388_iframe_;
c&&(c.onreadystatechange=null,c.onload=null,c.onerror=null,J.iframesForDisposal_.push(c));J.iframeDisposalTimer_&&(clearTimeout(J.iframeDisposalTimer_),J.iframeDisposalTimer_=null);_.ce?J.iframeDisposalTimer_=setTimeout(J.disposeIframes_.bind(J),2E3):J.disposeIframes_();J.JSC$9388_iframe_=null;J.iframeName_=null};
o9.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(clearTimeout(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;this.iframesForDisposal_.length!=0;){var J=this.iframesForDisposal_.pop();_.nc(J)}};
var oY_=function(J){J.JSC$9388_form_&&J.JSC$9388_form_==Qi&&_.rC(J.JSC$9388_form_)},ev=function(J){return J.JSC$9388_iframe_?ue2(J.JSC$9388_iframe_).getElementById(J.iframeName_+"_inner"):null};
o9.prototype.testForFirefoxSilentError_=function(){if(this.JSC$9388_active_){var J=this.JSC$9388_iframe_?ue2(ev(this)):null;J&&!Y0(J,"documentUri")?(_.Is(ev(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?jv(this,3):jv(this,9)):setTimeout(this.testForFirefoxSilentError_.bind(this),250)}};_.F2=function(J){return J=="\r"||J=="\n"||J==" "||J=="\t"};var jc8;_.le=function(J){this.errorMessage_=null;this.result_=[];this.JSC$9390_buffer_="";this.stack_=[];this.JSC$9390_pos_=this.depth_=0;this.slashed_=!1;this.unicodeCount_=0;this.stringInputPattern_=/[\\"]/g;this.state_=this.streamState_=0;this.deliverMessageAsRawString_=!(!J||!J.deliverMessageAsRawString)};
jc8={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};_.le.prototype.isInputValid=function(){return this.streamState_!=3};
_.le.prototype.done=function(){return this.streamState_===2};
var yi=function(J,c,m){J.streamState_=3;J.errorMessage_="The stream is broken @"+J.JSC$9390_pos_+"/"+m+". With input:\n"+c;throw Error(J.errorMessage_);};
_.le.prototype.acceptsBinaryInput=function(){return!1};
_.le.prototype.parse=function(J){function c(){for(;T<J.length;)if(_.F2(J[T]))T++,P.JSC$9390_pos_++;else break;return T<a}
function m(){for(var W;;){W=J[T++];if(!W)break;P.JSC$9390_pos_++;switch(P.state_){case I.INIT:W==="{"?P.state_=I.OBJECT_OPEN:W==="["?P.state_=I.ARRAY_OPEN:_.F2(W)||yi(P,J,T);continue;case I.KEY_START:case I.OBJECT_OPEN:if(_.F2(W))continue;if(P.state_===I.KEY_START)p.push(I.KEY_END);else if(W==="}"){x("{}");P.state_=b();continue}else p.push(I.OBJECT_END);W==='"'?P.state_=I.STRING:yi(P,J,T);continue;case I.KEY_END:case I.OBJECT_END:if(_.F2(W))continue;W===":"?(P.state_===I.OBJECT_END&&(p.push(I.OBJECT_END),
P.depth_++),P.state_=I.VALUE):W==="}"?(P.depth_--,x(),P.state_=b()):W===","?(P.state_===I.OBJECT_END&&p.push(I.OBJECT_END),P.state_=I.KEY_START):yi(P,J,T);continue;case I.ARRAY_OPEN:case I.VALUE:if(_.F2(W))continue;if(P.state_===I.ARRAY_OPEN)if(P.depth_++,P.state_=I.VALUE,W==="]"){P.depth_--;if(P.depth_===0){P.state_=I.ARRAY_END;return}x("[]");P.state_=b();continue}else p.push(I.ARRAY_END);W==='"'?P.state_=I.STRING:W==="{"?P.state_=I.OBJECT_OPEN:W==="["?P.state_=I.ARRAY_OPEN:W==="t"?P.state_=I.TRUE1:
W==="f"?P.state_=I.FALSE1:W==="n"?P.state_=I.NULL1:W!=="-"&&("0123456789".indexOf(W)!==-1?P.state_=I.NUM_DIGIT:yi(P,J,T));continue;case I.ARRAY_END:if(W===",")p.push(I.ARRAY_END),P.state_=I.VALUE,P.depth_===1&&(H=T);else if(W==="]"){P.depth_--;if(P.depth_===0)return;x();P.state_=b()}else if(_.F2(W))continue;else yi(P,J,T);continue;case I.STRING:var Y=T;a:for(;;){for(;P.unicodeCount_>0;)if(W=J[T++],P.unicodeCount_===4?P.unicodeCount_=0:P.unicodeCount_++,!W)break a;if(W==='"'&&!P.slashed_){P.state_=
b();break}if(W==="\\"&&!P.slashed_&&(P.slashed_=!0,W=J[T++],!W))break;if(P.slashed_)if(P.slashed_=!1,W==="u"&&(P.unicodeCount_=1),W=J[T++])continue;else break;t.lastIndex=T;W=t.exec(J);if(!W){T=J.length+1;break}T=W.index+1;W=J[W.index];if(!W)break}P.JSC$9390_pos_+=T-Y;continue;case I.TRUE1:if(!W)continue;W==="r"?P.state_=I.TRUE2:yi(P,J,T);continue;case I.TRUE2:if(!W)continue;W==="u"?P.state_=I.TRUE3:yi(P,J,T);continue;case I.TRUE3:if(!W)continue;W==="e"?P.state_=b():yi(P,J,T);continue;case I.FALSE1:if(!W)continue;
W==="a"?P.state_=I.FALSE2:yi(P,J,T);continue;case I.FALSE2:if(!W)continue;W==="l"?P.state_=I.FALSE3:yi(P,J,T);continue;case I.FALSE3:if(!W)continue;W==="s"?P.state_=I.FALSE4:yi(P,J,T);continue;case I.FALSE4:if(!W)continue;W==="e"?P.state_=b():yi(P,J,T);continue;case I.NULL1:if(!W)continue;W==="u"?P.state_=I.NULL2:yi(P,J,T);continue;case I.NULL2:if(!W)continue;W==="l"?P.state_=I.NULL3:yi(P,J,T);continue;case I.NULL3:if(!W)continue;W==="l"?P.state_=b():yi(P,J,T);continue;case I.NUM_DECIMAL_POINT:W===
"."?P.state_=I.NUM_DIGIT:yi(P,J,T);continue;case I.NUM_DIGIT:if("0123456789.eE+-".indexOf(W)!==-1)continue;else T--,P.JSC$9390_pos_--,P.state_=b();continue;default:yi(P,J,T)}}}
function b(){var W=p.pop();return W!=null?W:I.VALUE}
function x(W){P.depth_>1||(W||(W=H===-1?P.JSC$9390_buffer_+J.substring(k,T):J.substring(H,T)),P.deliverMessageAsRawString_?P.result_.push(W):P.result_.push(JSON.parse(W)),H=T)}
for(var P=this,p=P.stack_,t=P.stringInputPattern_,I=jc8,a=J.length,k=0,H=-1,T=0;T<a;)switch(P.streamState_){case 3:return yi(P,J,T),null;case 2:return c()&&yi(P,J,T),null;case 0:if(c()){var r=J[T++];P.JSC$9390_pos_++;if(r==="["){P.streamState_=1;k=T;P.state_=I.ARRAY_OPEN;continue}else yi(P,J,T)}return null;case 1:return m(),P.depth_===0&&P.state_==I.ARRAY_END?(P.streamState_=2,P.JSC$9390_buffer_=J.substring(T)):P.JSC$9390_buffer_=H===-1?P.JSC$9390_buffer_+J.substring(k):J.substring(H),P.result_.length>
0?(r=P.result_,P.result_=[],r):null}return null};_.yv(_.my,sO);bk.prototype.getValue=function(){return this.JSC$9398_value_};
bk.prototype.clone=function(){return new bk(this.JSC$9398_key_,this.JSC$9398_value_)};var Bi=function(J){this.nodes_=[];if(J)a:{if(J instanceof Bi){var c=J.getKeys();J=J.getValues();if(this.getCount()<=0){for(var m=this.nodes_,b=0;b<c.length;b++)m.push(new bk(c[b],J[b]));break a}}else c=_.Lw.getKeys(J),J=_.Lw.getValues(J);for(m=0;m<c.length;m++)this.insert(c[m],J[m])}};
_.V=Bi.prototype;_.V.insert=function(J,c){var m=this.nodes_;m.push(new bk(J,c));J=m.length-1;c=this.nodes_;for(m=c[J];J>0;){var b=J-1>>1;if(c[b].JSC$9398_key_>m.JSC$9398_key_)c[J]=c[b],J=b;else break}c[J]=m};
_.V.remove=function(){var J=this.nodes_,c=J.length,m=J[0];if(!(c<=0)){if(c==1)J.length=0;else{J[0]=J.pop();J=0;c=this.nodes_;for(var b=c.length,x=c[J];J<b>>1;){var P=J*2+1,p=J*2+2;P=p<b&&c[p].JSC$9398_key_<c[P].JSC$9398_key_?p:P;if(c[P].JSC$9398_key_>x.JSC$9398_key_)break;c[J]=c[P];J=P}c[J]=x}return m.getValue()}};
_.V.peek=function(){var J=this.nodes_;if(J.length!=0)return J[0].getValue()};
_.V.getValues=function(){for(var J=this.nodes_,c=[],m=J.length,b=0;b<m;b++)c.push(J[b].getValue());return c};
_.V.getKeys=function(){for(var J=this.nodes_,c=[],m=J.length,b=0;b<m;b++)c.push(J[b].JSC$9398_key_);return c};
_.V.containsValue=function(J){return this.nodes_.some(function(c){return c.getValue()==J})};
_.V.containsKey=function(J){return this.nodes_.some(function(c){return c.JSC$9398_key_==J})};
_.V.clone=function(){return new Bi(this)};
_.V.getCount=function(){return this.nodes_.length};
_.V.isEmpty=function(){return this.nodes_.length===0};
_.V.clear=function(){this.nodes_.length=0};_.gy=function(J,c){this.JSC$9404_map_={};this.JSC$9404_keys_=[];this.version_=this.size=0;var m=arguments.length;if(m>1){if(m%2)throw Error("oa");for(var b=0;b<m;b+=2)this.set(arguments[b],arguments[b+1])}else J&&this.addAll(J)};
_.V=_.gy.prototype;_.V.getCount=function(){return this.size};
_.V.getValues=function(){JV(this);for(var J=[],c=0;c<this.JSC$9404_keys_.length;c++)J.push(this.JSC$9404_map_[this.JSC$9404_keys_[c]]);return J};
_.V.getKeys=function(){JV(this);return this.JSC$9404_keys_.concat()};
_.V.containsKey=function(J){return this.has(J)};
_.V.has=function(J){return cY(this.JSC$9404_map_,J)};
_.V.containsValue=function(J){for(var c=0;c<this.JSC$9404_keys_.length;c++){var m=this.JSC$9404_keys_[c];if(cY(this.JSC$9404_map_,m)&&this.JSC$9404_map_[m]==J)return!0}return!1};
_.V.equals=function(J,c){if(this===J)return!0;if(this.size!=J.getCount())return!1;c=c||FAa;JV(this);for(var m,b=0;m=this.JSC$9404_keys_[b];b++)if(!c(this.get(m),J.get(m)))return!1;return!0};
var FAa=function(J,c){return J===c};
_.gy.prototype.isEmpty=function(){return this.size==0};
_.gy.prototype.clear=function(){this.JSC$9404_map_={};this.version_=this.size=this.JSC$9404_keys_.length=0};
_.gy.prototype.remove=function(J){return this.delete(J)};
_.gy.prototype.delete=function(J){return cY(this.JSC$9404_map_,J)?(delete this.JSC$9404_map_[J],--this.size,this.version_++,this.JSC$9404_keys_.length>2*this.size&&JV(this),!0):!1};
var JV=function(J){if(J.size!=J.JSC$9404_keys_.length){for(var c=0,m=0;c<J.JSC$9404_keys_.length;){var b=J.JSC$9404_keys_[c];cY(J.JSC$9404_map_,b)&&(J.JSC$9404_keys_[m++]=b);c++}J.JSC$9404_keys_.length=m}if(J.size!=J.JSC$9404_keys_.length){c={};for(b=m=0;m<J.JSC$9404_keys_.length;){var x=J.JSC$9404_keys_[m];cY(c,x)||(J.JSC$9404_keys_[b++]=x,c[x]=1);m++}J.JSC$9404_keys_.length=b}};
_.V=_.gy.prototype;_.V.get=function(J,c){return cY(this.JSC$9404_map_,J)?this.JSC$9404_map_[J]:c};
_.V.set=function(J,c){cY(this.JSC$9404_map_,J)||(this.size+=1,this.JSC$9404_keys_.push(J),this.version_++);this.JSC$9404_map_[J]=c};
_.V.addAll=function(J){if(J instanceof _.gy)for(var c=J.getKeys(),m=0;m<c.length;m++)this.set(c[m],J.get(c[m]));else for(c in J)this.set(c,J[c])};
_.V.forEach=function(J,c){for(var m=this.getKeys(),b=0;b<m.length;b++){var x=m[b],P=this.get(x);J.call(c,P,x,this)}};
_.V.clone=function(){return new _.gy(this)};
_.V.transpose=function(){for(var J=new _.gy,c=0;c<this.JSC$9404_keys_.length;c++){var m=this.JSC$9404_keys_[c];J.set(this.JSC$9404_map_[m],m)}return J};
_.V.keys=function(){return srZ(this.__iterator__(!0)).toEs6()};
_.V.values=function(){return srZ(this.__iterator__(!1)).toEs6()};
_.V.entries=function(){var J=this;return hmj(this.keys(),function(c){return[c,J.get(c)]})};
_.V.__iterator__=function(J){JV(this);var c=0,m=this.version_,b=this,x=new yP;x.next=function(){if(m!=b.version_)throw Error("oe");if(c>=b.JSC$9404_keys_.length)return Bs;var P=b.JSC$9404_keys_[c++];return g2(J?P:b.JSC$9404_map_[P])};
return x};
var cY=function(J,c){return Object.prototype.hasOwnProperty.call(J,c)};var y78=function(){this.JSC$9407_map_=new _.gy;this.JSC$9407_head_=new lZ8("");this.JSC$9407_head_.next=this.JSC$9407_head_.prev=this.JSC$9407_head_},BfZ=function(J,c){if(c=J.JSC$9407_map_.get(c))c.remove(),J.insert_(c);
return c};
_.V=y78.prototype;_.V.get=function(J,c){return(J=BfZ(this,J))?J.value:c};
_.V.set=function(J,c){var m=BfZ(this,J);m?m.value=c:(m=new lZ8(J,c),this.JSC$9407_map_.set(J,m),this.insert_(m))};
_.V.peek=function(){return this.JSC$9407_head_.next.value};
_.V.shift=function(){return gYB(this,this.JSC$9407_head_.next)};
_.V.pop=function(){return gYB(this,this.JSC$9407_head_.prev)};
_.V.remove=function(J){return(J=this.JSC$9407_map_.get(J))?(this.removeNode(J),!0):!1};
_.V.removeNode=function(J){J.remove();this.JSC$9407_map_.remove(J.key)};
_.V.getCount=function(){return this.JSC$9407_map_.getCount()};
_.V.isEmpty=function(){return this.JSC$9407_map_.isEmpty()};
_.V.getKeys=function(){return this.map(function(J,c){return c})};
_.V.getValues=function(){return this.map(function(J){return J})};
_.V.contains=function(J){return this.some(function(c){return c==J})};
_.V.containsKey=function(J){return this.JSC$9407_map_.containsKey(J)};
_.V.clear=function(){for(;this.getCount()>0;)this.removeNode(this.JSC$9407_head_.prev)};
_.V.forEach=function(J,c){for(var m=this.JSC$9407_head_.next;m!=this.JSC$9407_head_;m=m.next)J.call(c,m.value,m.key,this)};
_.V.map=function(J,c){for(var m=[],b=this.JSC$9407_head_.next;b!=this.JSC$9407_head_;b=b.next)m.push(J.call(c,b.value,b.key,this));return m};
_.V.some=function(J,c){for(var m=this.JSC$9407_head_.next;m!=this.JSC$9407_head_;m=m.next)if(J.call(c,m.value,m.key,this))return!0;return!1};
_.V.every=function(J,c){for(var m=this.JSC$9407_head_.next;m!=this.JSC$9407_head_;m=m.next)if(!J.call(c,m.value,m.key,this))return!1;return!0};
_.V.insert_=function(J){J.next=this.JSC$9407_head_.next;J.prev=this.JSC$9407_head_;this.JSC$9407_head_.next=J;for(J.next.prev=J;this.getCount()>100;)this.removeNode(this.JSC$9407_head_.prev)};
var gYB=function(J,c){J.JSC$9407_head_!=c&&J.removeNode(c);return c.value},lZ8=function(J,c){this.key=J;
this.value=c};
lZ8.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};var Jcz=function(){Bi.apply(this,arguments)};
_.D(Jcz,Bi);Jcz.prototype.enqueue=function(J,c){this.insert(J,c)};var ccB=function(){var J=Error();J.name="SecurityError";throw J;},tYq=function(){return{get opener(){return null},
get closed(){return!0},get location(){ccB()},get document(){ccB()},postMessage:function(){},
close:function(){},
focus:function(){}}};var d_u={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 EgD={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 mrQ={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(EgD).join("|");var bvQ=function(){function J(t){t.substr(-1)!==";"&&(t+=";");return p(t)}
for(var c=Object.keys(mrQ).sort(Gtf),m=Object.keys(EgD).sort(Gtf),b=0,x=0;b<m.length;b++)c[x]===m[b]?(m[b]+=";?",x++):m[b]+=";";var P=new RegExp("&(?:"+m.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),p=vgm();return function(t){return String(t).replace(P,J)}}();/*

 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 xrQ={};var Vrj=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"),Pq$=/[\\&]/,Mru=RegExp("\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","gi"),pjB=RegExp('[&<>"]',"g"),NB$=RegExp('&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});|[&<>"]',
"gi"),tr2=function(J){return J.charCodeAt(0)===92?J.charAt(1):bvQ(J)},In2=function(J){return Pq$.test(J)?J.replace(Mru,tr2):J},KU2=function(J){try{var c,m="";
if(typeof x!=="string"){var b=x;var x=";/?:@&=+$,-_.!~*'()#"}typeof b==="undefined"&&(b=!0);var P,p=xrQ[x];if(p)var t=p;else{p=xrQ[x]=[];for(P=0;P<128;P++){var I=String.fromCharCode(P);/^[0-9a-z]$/i.test(I)?p.push(I):p.push("%"+("0"+P.toString(16).toUpperCase()).slice(-2))}for(P=0;P<x.length;P++)p[x.charCodeAt(P)]=x[P];t=p}var a=0;for(c=J.length;a<c;a++){var k=J.charCodeAt(a);if(b&&k===37&&a+2<c&&/^[0-9a-f]{2}$/i.test(J.slice(a+1,a+3)))m+=J.slice(a,a+3),a+=2;else if(k<128)m+=t[k];else if(k>=55296&&
k<=57343){if(k>=55296&&k<=56319&&a+1<c){var H=J.charCodeAt(a+1);if(H>=56320&&H<=57343){m+=encodeURIComponent(J[a]+J[a+1]);a++;continue}}m+="%EF%BF%BD"}else m+=encodeURIComponent(J[a])}return m}catch(T){return J}},Cq$=function(J){switch(J){case "&":return"&amp;";
case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";default:return J}},mO=function(J,c){return pjB.test(J)?c?J.replace(NB$,Cq$):J.replace(pjB,Cq$):J};/*

 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 bo;if(String.fromCodePoint)bo=function(J){try{return String.fromCodePoint(J)}catch(c){if(c instanceof RangeError)return String.fromCharCode(65533);throw c;}};
else{var anu=String.fromCharCode,khj=Math.floor;bo=function(){var J=[],c=-1,m=arguments.length;if(!m)return"";for(var b="";++c<m;){var x=Number(arguments[c]);if(!isFinite(x)||x<0||x>1114111||khj(x)!==x)return String.fromCharCode(65533);if(x<=65535)J.push(x);else{x-=65536;var P=(x>>10)+55296;x=x%1024+56320;J.push(P,x)}if(c+1===m||J.length>16384)b+=anu.apply(null,J),J.length=0}return b}};var Hv_=function(J){this.root=this.current=J;this.entering=!0};
Hv_.prototype.next=function(){var J=this.current,c=this.entering;if(J===null)return null;a:switch(J._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 m=!0;break a;default:m=!1}c&&m?J._firstChild?(this.current=J._firstChild,this.entering=!0):this.entering=!1:J===this.root?this.current=null:J._next===null?(this.current=
J._parent,this.entering=!1):(this.current=J._next,this.entering=!0);return{entering:c,node:J}};
var Ma=function(J,c){this._type=J;this._next=this._prev=this._lastChild=this._firstChild=this._parent=null;this._sourcepos=c;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};
Ma.prototype.appendChild=function(J){xU(J);J._parent=this;this._lastChild?(this._lastChild._next=J,J._prev=this._lastChild):this._firstChild=J;this._lastChild=J};
var xU=function(J){J._prev?J._prev._next=J._next:J._parent&&(J._parent._firstChild=J._next);J._next?J._next._prev=J._prev:J._parent&&(J._parent._lastChild=J._prev);J._parent=null;J._next=null;J._prev=null},iv_=function(J,c){xU(c);
c._next=J._next;c._next&&(c._next._prev=c);c._prev=J;J._next=c;c._parent=J._parent;c._next||(c._parent._lastChild=c)};
Ma.prototype.insertBefore=function(J){xU(J);J._prev=this._prev;J._prev&&(J._prev._next=J);J._next=this;this._prev=J;J._parent=this._parent;J._prev||(J._parent._firstChild=J)};
_.eE.Object.defineProperties(Ma.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(J){this._literal=J}},
destination:{configurable:!0,enumerable:!0,get:function(){return this._destination},
set:function(J){this._destination=J}},
title:{configurable:!0,enumerable:!0,get:function(){return this._title},
set:function(J){this._title=J}},
info:{configurable:!0,enumerable:!0,get:function(){return this._info},
set:function(J){this._info=J}},
level:{configurable:!0,enumerable:!0,get:function(){return this._level},
set:function(J){this._level=J}},
listType:{configurable:!0,enumerable:!0,get:function(){return this._listData.type},
set:function(J){this._listData.type=J}},
listTight:{configurable:!0,enumerable:!0,get:function(){return this._listData.tight},
set:function(J){this._listData.tight=J}},
listStart:{configurable:!0,enumerable:!0,get:function(){return this._listData.start},
set:function(J){this._listData.start=J}},
onEnter:{configurable:!0,enumerable:!0,get:function(){return this._onEnter},
set:function(J){this._onEnter=J}},
onExit:{configurable:!0,enumerable:!0,get:function(){return this._onExit},
set:function(J){this._onExit=J}}});var OZJ=/[ \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,
AmG={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 nbC=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]/),
TBC=RegExp("^(?:\"(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^\"\\x00])*\"|'(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^'\\x00])*'|\\((\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^)\\x00])*\\))"),wj_=RegExp("^(?:[<](?:[^ <>\\t\\n\\\\\\x00]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\)*[>])"),rcZ=RegExp("^[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]"),s1L=RegExp("^&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","i"),LUL=/`+/,DrB=/^`+/,WUB=/\.\.\./g,zgZ=/--+/g,uB8=/^<([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])?)*)>/,
fnQ=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,YT6=/^ *(?:\n *)?/,XjC=/^[ \t\n\x0b\x0c\x0d]/,Zv$=/[ \t\n\x0b\x0c\x0d]+/g,qTj=/^\s/,Ura=/ *$/,STL=/^ */,hgj=/^ *(?:\n|$)/,dr_=RegExp("^\\[(?:[^\\\\\\[\\]]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\){0,1000}\\]"),$r_=/^[^\n`\[\]\\!<&*_'"]+/m,V2=function(J){var c=new Ma("text");c._literal=J;return c},PY=function(J){this.subject="";
this.brackets=this.delimiters=null;this.pos=0;this.refmap={};this.options=J||{}};
PY.prototype.match=function(J){J=J.exec(this.subject.slice(this.pos));if(J===null)return null;this.pos+=J.index+J[0].length;return J[0]};
PY.prototype.peek=function(){return this.pos<this.subject.length?this.subject.charCodeAt(this.pos):-1};
var MD=function(J){J.match(YT6);return!0},Ghu=function(J,c,m){var b=0;
var x=J.pos;if(c===39||c===34)b++,J.pos++;else for(;J.peek()===c;)b++,J.pos++;if(b===0)b=null;else{var P=x===0?"\n":J.subject.charAt(x-1);var p=J.peek();p=p===-1?"\n":bo(p);var t=qTj.test(p);p=nbC.test(p);var I=qTj.test(P);var a=nbC.test(P);P=!t&&!(p&&!I&&!a);t=!I&&!(a&&!t&&!p);c===95?(I=P&&(!t||a),p=t&&(!P||p)):(I=c===39||c===34?P&&!t:P,p=t);J.pos=x;b={numdelims:b,can_open:I,can_close:p}}if(!b)return!1;x=b.numdelims;p=J.pos;J.pos+=x;p=c===39?"\u2019":c===34?"\u201c":J.subject.slice(p,J.pos);p=V2(p);
m.appendChild(p);J.delimiters={cc:c,numdelims:x,origdelims:x,node:p,previous:J.delimiters,next:null,can_open:b.can_open,can_close:b.can_close};J.delimiters.previous!==null&&(J.delimiters.previous.next=J.delimiters);return!0},EbZ=function(J,c){c.previous!==null&&(c.previous.next=c.next);
c.next===null?J.delimiters=c.previous:c.next.previous=c.previous},vb8=function(J,c){var m,b,x=[],P=!1;
x[95]=c;x[42]=c;x[39]=c;x[34]=c;for(m=J.delimiters;m!==null&&m.previous!==c;)m=m.previous;for(;m!==null;){var p=m.cc;if(m.can_close){var t=m.previous;for(b=!1;t!==null&&t!==c&&t!==x[p];){P=(m.can_open||t.can_close)&&(t.origdelims+m.origdelims)%3===0;if(t.cc===m.cc&&t.can_open&&!P){b=!0;break}t=t.previous}var I=m;if(p===42||p===95)if(b){var a=m.numdelims>=2&&t.numdelims>=2?2:1;var k=t.node;var H=m.node;t.numdelims-=a;m.numdelims-=a;k._literal=k._literal.slice(0,k._literal.length-a);H._literal=H._literal.slice(0,
H._literal.length-a);var T=new Ma(a===1?"emph":"strong");for(a=k._next;a&&a!==H;){var r=a._next;xU(a);T.appendChild(a);a=r}iv_(k,T);a=t;r=m;a.next!==r&&(a.next=r,r.previous=a);t.numdelims===0&&(xU(k),EbZ(J,t));m.numdelims===0&&(xU(H),t=m.next,EbZ(J,m),m=t)}else m=m.next;else p===39?(m.node._literal="\u2019",b&&(t.node._literal="\u2018"),m=m.next):p===34&&(m.node._literal="\u201d",b&&(t.node.literal="\u201c"),m=m.next);b||P||(x[p]=I.previous,I.can_open||EbZ(J,I))}else m=m.next}for(;J.delimiters!==
null&&J.delimiters!==c;)EbZ(J,J.delimiters)},OvQ=function(J){J=J.match(TBC);
return J===null?null:In2(J.substr(1,J.length-2))},AcB=function(J){var c=J.match(wj_);
if(c===null){c=J.pos;for(var m=0,b;(b=J.peek())!==-1;)if(b===92)J.pos+=1,J.peek()!==-1&&(J.pos+=1);else if(b===40)J.pos+=1,m+=1;else if(b===41)if(m<1)break;else J.pos+=1,--m;else if(XjC.exec(bo(b))!==null)break;else J.pos+=1;c=J.subject.substr(c,J.pos-c);return KU2(In2(c))}return KU2(In2(c.substr(1,c.length-2)))},Rg6=function(J){J=J.match(dr_);
return J===null||J.length>1001?0:J.length},obC=function(J,c,m,b){J.brackets!==null&&(J.brackets.bracketAfter=!0);
J.brackets={node:c,previous:J.brackets,previousDelimiter:J.delimiters,index:m,image:b,active:!0}},Q1a=function(J,c){var m;
return(m=J.match($r_))?(J.options.smart?c.appendChild(V2(m.replace(WUB,"\u2026").replace(zgZ,function(b){var x=0,P=0;b.length%3===0?P=b.length/3:b.length%2===0?x=b.length/2:b.length%3===2?(x=1,P=(b.length-2)/3):(x=2,P=(b.length-4)/3);b="";var p;for(p=0;p<P;p++)b+="\u2014";for(p=0;p<x;p++)b+="\u2013";return b}))):c.appendChild(V2(m)),!0):!1},eg_=function(J,c,m){J.subject=c;
J.pos=0;c=J.pos;var b=Rg6(J);if(b===0)return 0;var x=J.subject.substr(0,b);if(J.peek()===58)J.pos++;else return J.pos=c,0;MD(J);b=AcB(J);if(b===null||b.length===0)return J.pos=c,0;var P=J.pos;MD(J);var p=OvQ(J);p===null&&(p="",J.pos=P);var t=!0;J.match(hgj)===null&&(p===""?t=!1:(p="",J.pos=P,t=J.match(hgj)!==null));if(!t)return J.pos=c,0;x=RbQ(x);if(x==="")return J.pos=c,0;m[x]||(m[x]={destination:b,title:p});return J.pos-c},j18=function(J,c){var m,b=J.peek();
if(b===-1)return!1;switch(b){case 10:J.pos+=1;if((m=c._lastChild)&&m.type==="text"&&m._literal[m._literal.length-1]===" "){var x=m._literal[m._literal.length-2]===" ";m._literal=m._literal.replace(Ura,"");c.appendChild(new Ma(x?"linebreak":"softbreak"))}else c.appendChild(new Ma("softbreak"));J.match(STL);m=!0;break;case 92:m=J.subject;J.pos+=1;J.peek()===10?(J.pos+=1,m=new Ma("linebreak"),c.appendChild(m)):rcZ.test(m.charAt(J.pos))?(c.appendChild(V2(m.charAt(J.pos))),J.pos+=1):c.appendChild(V2("\\"));
m=!0;break;case 96:a:if(m=J.match(DrB),m===null)m=!1;else{x=J.pos;for(var P;(P=J.match(LUL))!==null;)if(P===m){P=new Ma("code");P._literal=J.subject.slice(x,J.pos-m.length).trim().replace(Zv$," ");c.appendChild(P);m=!0;break a}J.pos=x;c.appendChild(V2(m));m=!0}break;case 42:case 95:m=Ghu(J,b,c);break;case 39:case 34:m=J.options.smart&&Ghu(J,b,c);break;case 91:m=J.pos;J.pos+=1;x=V2("[");c.appendChild(x);obC(J,x,m,!1);m=!0;break;case 33:m=J.pos;J.pos+=1;J.peek()===91?(J.pos+=1,x=V2("!["),c.appendChild(x),
obC(J,x,m+1,!0)):c.appendChild(V2("!"));m=!0;break;case 93:var p,t=!1,I;J.pos+=1;var a=J.pos;x=J.brackets;if(x===null)c.appendChild(V2("]"));else if(x.active){m=x.image;var k=J.pos;J.peek()===40&&(J.pos++,MD(J)&&(P=AcB(J))!==null&&MD(J)&&(XjC.test(J.subject.charAt(J.pos-1))&&(p=OvQ(J)),1)&&MD(J)&&J.peek()===41?(J.pos+=1,t=!0):J.pos=k);if(!t){var H=J.pos,T=Rg6(J);T>2?I=J.subject.slice(H,H+T):x.bracketAfter||(I=J.subject.slice(x.index,a));T===0&&(J.pos=k);I&&(I=J.refmap[RbQ(I)])&&(P=I.destination,p=
I.title,t=!0)}if(t){a=new Ma(m?"image":"link");a._destination=P;a._title=p||"";for(P=x.node._next;P;)p=P._next,xU(P),a.appendChild(P),P=p;c.appendChild(a);vb8(J,x.previousDelimiter);J.brackets=J.brackets.previous;xU(x.node);if(!m)for(x=J.brackets;x!==null;)x.image||(x.active=!1),x=x.previous}else J.brackets=J.brackets.previous,J.pos=a,c.appendChild(V2("]"))}else c.appendChild(V2("]")),J.brackets=J.brackets.previous;m=!0;break;case 60:(m=J.match(uB8))?(m=m.slice(1,m.length-1),x=new Ma("link"),x._destination=
KU2("mailto:"+m),x._title="",x.appendChild(V2(m)),c.appendChild(x),m=!0):(m=J.match(fnQ))?(m=m.slice(1,m.length-1),x=new Ma("link"),x._destination=KU2(m),x._title="",x.appendChild(V2(m)),c.appendChild(x),m=!0):m=!1;m||(m=J.match(Vrj),m===null?m=!1:(x=new Ma("html_inline"),x._literal=m,c.appendChild(x),m=!0));break;case 38:(m=J.match(s1L))?(c.appendChild(V2(bvQ(m))),m=!0):m=!1;break;default:m=Q1a(J,c)}m||(J.pos+=1,c.appendChild(V2(bo(b))));return!0};
PY.prototype.parseInlines=function(J){this.subject=J._string_content.trim();this.pos=0;for(this.brackets=this.delimiters=null;j18(this,J););J._string_content=null;vb8(this,null)};
PY.prototype.parse=PY.prototype.parseInlines;var FUQ=[/./,/^<(?: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")],lnQ=[/./,/<\/(?:script|pre|style)>/i,/--\x3e/,/\?>/,/>/,/\]\]>/],ycZ=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/,BBQ=/^[#`~*+_=<>0-9-\|]|\|/,gb6=/[^ \t\f\v\r\n]/,JOa=/^[*+-]/,cOa=/^(\d{1,9})([.)])/,mEa=/^#{1,6}(?:[ \t]+|$)/,bsQ=/^`{3,}(?!.*`)|^~{3,}(?!.*~)/,xEa=/^(?:`{3,}|~{3,})(?= *$)/,V5$=/^(?:=+|-+)[ \t]*$/,PMQ=/\r\n|\n|\r/,Qxu=/(^\|?[^\|]+(\|[^\|]+)+\|?)|(\|.*\|)/,ebT=/(^\|?\s*:?---+:?\s*(\|\s*:?---+:?\s*)+\|?)|(^\s*\|\s*:?---+:?\s*\|$)/,M5u={document:{continue:function(){return 0},
finalize:function(){},
canContain:function(J){return J!=="item"},
acceptsLines:!1},list:{continue:function(){return 0},
finalize:function(J,c){for(J=c._firstChild;J;){if(ogt(J)&&J._next){c._listData.tight=!1;break}for(var m=J._firstChild;m;){if(ogt(m)&&(J._next||m._next)){c._listData.tight=!1;break}m=m._next}J=J._next}},
canContain:function(J){return J==="item"},
acceptsLines:!1},block_quote:{continue:function(J){var c=J.currentLine;if(J.indented||VM(c,J.nextNonspace)!==62)return 1;pV(J);ND(J,1,!1);x3(VM(c,J.offset))&&ND(J,1,!0);return 0},
finalize:function(){},
canContain:function(J){return J!=="item"},
acceptsLines:!1},item:{continue:function(J,c){if(J.blank){if(c._firstChild==null)return 1;pV(J)}else if(J.indent>=c._listData.markerOffset+c._listData.padding)ND(J,c._listData.markerOffset+c._listData.padding,!0);else return 1;return 0},
finalize:function(){},
canContain:function(J){return J!=="item"&&!jxo(J)},
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(J,c){var m=J.currentLine,b=J.indent;if(c._isFenced){if((b=b<=3&&m.charAt(J.nextNonspace)===c._fenceChar&&m.slice(J.nextNonspace).match(xEa))&&b[0].length>=c._fenceLength)return J.finalize(c,J.lineNumber),2;for(c=c._fenceOffset;c>0&&x3(VM(m,J.offset));)ND(J,1,!0),c--}else if(b>=4)ND(J,4,!0);else if(J.blank)pV(J);else return 1;return 0},
finalize:function(J,c){if(c._isFenced){var m=c._string_content,b=m.indexOf("\n");J=m.slice(0,b);m=m.slice(b+1);c.info=In2(J.trim());c._literal=m}else c._literal=c._string_content.replace(/(\n *)+$/,"\n");c._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},html_block:{continue:function(J,c){return!J.blank||c._htmlBlockType!==6&&c._htmlBlockType!==7?0:1},
finalize:function(J,c){c._literal=c._string_content.replace(/(\n *)+$/,"");c._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},paragraph:{continue:function(J){return J.blank?1:0},
finalize:function(J,c){for(var m,b=!1;VM(c._string_content,0)===91&&(m=eg_(J.inlineParser,c._string_content,J.refmap));)c._string_content=c._string_content.slice(m),b=!0;b&&!gb6.test(c._string_content)&&xU(c)},
canContain:function(){return!1},
acceptsLines:!0},table:{continue:function(J){return PS(J.currentLine)!==0?0:1},
finalize:function(){},
canContain:function(J){return J=="row"},
acceptsLines:!1},row:{continue:function(){return 1},
finalize:function(J,c){if(!c._rowIsDelimiter){J=c._isHeader?"th":"td";for(var m=c._parent._tableColumns,b=c._string_content,x=0,P="",p,t=c._sourcepos[0][0];x<b.length;){switch(b[x]){case "|":p&&(p._string_content=P.trim(),P="",p=null,m--,m<=0&&(x=b.length));break;default:if(!p){p=new Ma(J,[[t,x],[t,x]]);var I=c._parent._columnAlignment,a=c._parent._tableColumns-m;I&&a<=I.length&&a>=0&&(p._alignment=I[a]);c.appendChild(p)}P+=b[x];p._sourcepos[1][1]=x}x++}p&&(p._string_content=P.trim());c._string_content=
""}},
canContain:function(J){return J!=="row"},
acceptsLines:!1}},p9C=[function(J){if(J.indented||VM(J.currentLine,J.nextNonspace)!==62)return 0;pV(J);ND(J,1,!1);x3(VM(J.currentLine,J.offset))&&ND(J,1,!0);tV(J);J.addChild("block_quote",J.nextNonspace);return 1},
function(J){var c;if(!J.indented&&(c=J.currentLine.slice(J.nextNonspace).match(mEa))){pV(J);ND(J,c[0].length,!1);tV(J);var m=J.addChild("heading",J.nextNonspace);m.level=c[0].trim().length;m._string_content=J.currentLine.slice(J.offset).replace(/^ *#+ *$/,"").replace(/ +#+ *$/,"");ND(J,J.currentLine.length-J.offset);return 2}return 0},
function(J){var c;if(!J.indented&&(c=J.currentLine.slice(J.nextNonspace).match(bsQ))){var m=c[0].length;tV(J);var b=J.addChild("code_block",J.nextNonspace);b._isFenced=!0;b._fenceLength=m;b._fenceChar=c[0][0];b._fenceOffset=J.indent;pV(J);ND(J,m,!1);return 2}return 0},
function(J,c){if(!J.indented&&VM(J.currentLine,J.nextNonspace)===60){var m=J.currentLine.slice(J.nextNonspace),b;for(b=1;b<=7;b++)if(FUQ[b].test(m)&&(b<7||c.type!=="paragraph"))return tV(J),J.addChild("html_block",J.offset)._htmlBlockType=b,2}return 0},
function(J,c){var m;if(!J.indented&&c.type==="paragraph"&&(m=J.currentLine.slice(J.nextNonspace).match(V5$))){tV(J);var b=new Ma("heading",c.sourcepos);b.level=m[0][0]==="="?1:2;b._string_content=c._string_content;iv_(c,b);xU(c);J.tip=b;ND(J,J.currentLine.length-J.offset,!1);return 2}return 0},
function(J){return!J.indented&&ycZ.test(J.currentLine.slice(J.nextNonspace))?(tV(J),J.addChild("thematic_break",J.nextNonspace),ND(J,J.currentLine.length-J.offset,!1),2):0},
function(J,c){var m,b;if(!(b=J.indented&&c.type!=="list")){a:{var x=c,P=J.currentLine.slice(J.nextNonspace);b={type:null,tight:!0,bulletChar:null,start:null,delimiter:null,padding:null,markerOffset:J.indent};if(m=P.match(JOa))b.type="bullet",b.bulletChar=m[0][0];else{if(!(m=P.match(cOa))||x.type==="paragraph"&&m[1]!=="1"){m=null;break a}b.type="ordered";b.start=parseInt(m[1],10);b.delimiter=m[2]}var p=VM(J.currentLine,J.nextNonspace+m[0].length);if(p!==-1&&p!==9&&p!==32||x.type==="paragraph"&&!J.currentLine.slice(J.nextNonspace+
m[0].length).match(gb6))m=null;else{pV(J);ND(J,m[0].length,!0);x=J.column;P=J.offset;do ND(J,1,!0),p=VM(J.currentLine,J.offset);while(J.column-x<5&&x3(p));p=VM(J.currentLine,J.offset)===-1;var t=J.column-x;t>=5||t<1||p?(b.padding=m[0].length+1,J.column=x,J.offset=P,x3(VM(J.currentLine,J.offset))&&ND(J,1,!0)):b.padding=m[0].length+t;m=b}}b=!m}if(b)return 0;tV(J);(b=J.tip.type!=="list")||(c=c._listData,b=!(c.type===m.type&&c.delimiter===m.delimiter&&c.bulletChar===m.bulletChar));b&&(c=J.addChild("list",
J.nextNonspace),c._listData=m);c=J.addChild("item",J.nextNonspace);c._listData=m;return 1},
function(J){var c;return((c=J.options.shouldParseIndentAsCodeBlock)!=null?c:1)&&J.indented&&J.tip.type!=="paragraph"&&!J.blank?(ND(J,4,!0),tV(J),J.addChild("code_block",J.offset),2):0},
function(J,c){var m=PS(J.currentLine),b=PS(J.lookahead);if(m!==0&&b<0&&Math.abs(m)==Math.abs(b)&&!jxo(c.type)){tV(J);c=J.addChild("table",J.nextNonspace);c._tableRows=1;c._tableColumns=Math.abs(m);m=J.lookahead;if(ebT.test(m)){b=[];for(var x=0,P=!1,p=0,t=void 0;x<m.length;){var I=p>=3;switch(m[x]){case "-":p++;break;case "|":P&&(b.push(t),t=void 0,p=0);P=!0;break;case ":":t||I||(t="left"),!t&&I&&(t="right"),t==="left"&&I&&(t="center")}x++}m=b}else m=void 0;c._columnAlignment=m;c=J.addChild("row",
J.nextNonspace);c._isHeader=!0;ND(J,J.currentLine.length-J.offset,!1);c._string_content=J.currentLine;return 1}return 0},
function(J,c){if(c.type=="table"&&PS(J.currentLine)!==0){tV(J);var m=c;c=J.addChild("row",J.nextNonspace);PS(J.currentLine)<0?c._rowIsDelimiter=!0:m._tableRows+=1;ND(J,J.currentLine.length-J.offset,!1);c._string_content=J.currentLine;return 2}return 0}],UNe=function(){var J={shouldParseIndentAsCodeBlock:!1};
J=J===void 0?{}:J;this.lastMatchedContainer=this.doc=Fmo();this.refmap={};this.lastLineLength=0;this.inlineParser=new PY(J);this.options=J;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=M5u;this.blockStarts=p9C},NU6=function(J){J.partiallyConsumedTab&&(J.offset+=1,J.tip._string_content+=" ".repeat(4-J.column%
4));
J.tip._string_content+=J.currentLine.slice(J.offset)+"\n"};
UNe.prototype.addChild=function(J,c){for(;!this.blocks[this.tip.type].canContain(J);)this.finalize(this.tip,this.lineNumber-1);J=new Ma(J,[[this.lineNumber,c+1],[0,0]]);J._string_content="";this.tip.appendChild(J);return this.tip=J};
var tV=function(J){if(!J.allClosed){for(;J.oldtip!==J.lastMatchedContainer;){var c=J.oldtip._parent;J.finalize(J.oldtip,J.lineNumber-1);J.oldtip=c}J.allClosed=!0}},ND=function(J,c,m){for(var b=J.currentLine,x,P;c>0&&(P=b[J.offset]);)P==="\t"?(x=4-J.column%4,m?(J.partiallyConsumedTab=x>c,x=x>c?c:x,J.column+=x,J.offset+=J.partiallyConsumedTab?0:1,c-=x):(J.partiallyConsumedTab=!1,J.column+=x,J.offset+=1,--c)):(J.partiallyConsumedTab=!1,J.offset+=1,J.column+=1,--c)},pV=function(J){J.offset=J.nextNonspace;
J.column=J.nextNonspaceColumn;J.partiallyConsumedTab=!1},t5u=function(J){for(var c=J.currentLine,m=J.offset,b=J.column,x;(x=c.charAt(m))!=="";)if(x===" ")m++,b++;
else if(x==="\t")m++,b+=4-b%4;else break;J.blank=x==="\n"||x==="\r"||x==="";J.nextNonspace=m;J.nextNonspaceColumn=b;J.indent=J.nextNonspaceColumn-J.column;J.indented=J.indent>=4};
UNe.prototype.finalize=function(J,c){var m=J._parent;J._open=!1;J.sourcepos[1]=[c,this.lastLineLength];this.blocks[J.type].finalize(this,J);this.tip=m};
UNe.prototype.parse=function(J){this.tip=this.doc=Fmo();this.refmap={};this.column=this.offset=this.lastLineLength=this.lineNumber=0;this.lastMatchedContainer=this.doc;this.currentLine="";if(!J)return this.doc;this.options.time&&console.time("preparing input");var c=J.split(PMQ),m=c.length;J.charCodeAt(J.length-1)===10&&--m;this.options.time&&console.timeEnd("preparing input");this.options.time&&console.time("block parsing");for(J=0;J<m;J++)a:{var b=void 0,x=c[J],P=c[J+1],p=!0,t=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=P;(b=t._lastChild)&&b._open;){t=b;t5u(this);switch(this.blocks[t.type].continue(this,t)){case 0:break;case 1:p=!1;break;case 2:this.lastLineLength=x.length;break a;default:throw"continue returned illegal value, must be 0, 1, or 2";}if(!p){t=t._parent;break}}this.allClosed=t===this.oldtip;this.lastMatchedContainer=
t;b=t.type!=="paragraph"&&M5u[t.type].acceptsLines;P=this.blockStarts;for(p=P.length;!b;){t5u(this);if(!this.indented&&!BBQ.test(x.slice(this.nextNonspace))){pV(this);break}for(var I=0;I<p;){var a=P[I](this,t);if(a===1){t=this.tip;break}else if(a===2){t=this.tip;b=!0;break}else I++}if(I===p){pV(this);break}}if(this.allClosed||this.blank||this.tip.type!=="paragraph"){tV(this);this.blank&&t.lastChild&&(t.lastChild._lastLineBlank=!0);b=t.type;P=this.blank&&!(b==="block_quote"||b==="code_block"&&t._isFenced||
b==="item"&&!t._firstChild&&t.sourcepos[0][0]===this.lineNumber);for(p=t;p;)p._lastLineBlank=P,p=p._parent;this.blocks[b].acceptsLines?(NU6(this),b==="html_block"&&t._htmlBlockType>=1&&t._htmlBlockType<=5&&lnQ[t._htmlBlockType].test(this.currentLine.slice(this.offset))&&this.finalize(t,this.lineNumber)):this.offset<x.length&&!this.blank&&(this.addChild("paragraph",this.offset),pV(this),NU6(this))}else NU6(this);this.lastLineLength=x.length}for(;this.tip;)this.finalize(this.tip,m);this.options.time&&
console.timeEnd("block parsing");this.options.time&&console.time("inline parsing");x=new Hv_(this.doc);this.inlineParser.refmap=this.refmap;for(this.inlineParser.options=this.options;m=x.next();)c=m.node,J=c.type,m.entering||J!=="paragraph"&&J!=="heading"&&J!=="th"&&J!="td"||this.inlineParser.parse(c);this.options.time&&console.timeEnd("inline parsing");return this.doc};lvm.prototype.render=function(J){J=new Hv_(J);var c;this.buffer="";for(this.lastOut="\n";c=J.next();){var m=c.node.type;if(this[m])this[m](c.node,c.entering)}return this.buffer};
lvm.prototype.out=function(J){Ie(this,J)};
var Ie=function(J,c){J.buffer+=c;J.lastOut=c};
lvm.prototype.cr=function(){this.lastOut!=="\n"&&Ie(this,"\n")};var Ihj=/^javascript:|vbscript:|file:|data:/i,KqL=/^data:image\/(?:png|gif|jpeg|webp)/i,CMC=function(J){return Ihj.test(J)&&!KqL.test(J)};
pl.prototype=Object.create(lvm.prototype);_.V=pl.prototype;_.V.text=function(J){this.out(J.literal)};
_.V.html_inline=function(J){this.options.safe?Ie(this,"\x3c!-- raw HTML omitted --\x3e"):Ie(this,J.literal)};
_.V.html_block=function(J){this.cr();this.options.safe?Ie(this,"\x3c!-- raw HTML omitted --\x3e"):Ie(this,J.literal);this.cr()};
_.V.softbreak=function(){Ie(this,this.options.softbreak)};
_.V.linebreak=function(){this.tag("br",[],!0);this.cr()};
_.V.link=function(J,c){var m=this.attrs(J);c?(this.options.safe&&CMC(J.destination)||m.push(["href",mO(J.destination,!0)]),J.title&&m.push(["title",mO(J.title,!0)]),this.tag("a",m)):this.tag("/a")};
_.V.image=function(J,c){c?(this.disableTags===0&&(this.options.safe&&CMC(J.destination)?Ie(this,'<img src="" alt="'):Ie(this,'<img src="'+mO(J.destination,!0)+'" alt="')),this.disableTags+=1):(--this.disableTags,this.disableTags===0&&(J.title&&Ie(this,'" title="'+mO(J.title,!0)),Ie(this,'" />')))};
_.V.emph=function(J,c){this.tag(c?"em":"/em")};
_.V.strong=function(J,c){this.tag(c?"strong":"/strong")};
_.V.paragraph=function(J,c){var m=J.parent.parent;J=this.attrs(J);m!==null&&m.type==="list"&&m.listTight||(c?(this.cr(),this.tag("p",J)):(this.tag("/p"),this.cr()))};
_.V.heading=function(J,c){var m="h"+J.level;J=this.attrs(J);c?(this.cr(),this.tag(m,J)):(this.tag("/"+m),this.cr())};
_.V.code=function(J){this.tag("code");this.out(J.literal);this.tag("/code")};
_.V.code_block=function(J){var c=J.info?J.info.split(/\s+/):[],m=this.attrs(J);c.length>0&&c[0].length>0&&m.push(["class","language-"+mO(c[0],!0)]);this.cr();this.tag("pre");this.tag("code",m);this.out(J.literal);this.tag("/code");this.tag("/pre");this.cr()};
_.V.thematic_break=function(J){J=this.attrs(J);this.cr();this.tag("hr",J,!0);this.cr()};
_.V.block_quote=function(J,c){J=this.attrs(J);c?(this.cr(),this.tag("blockquote",J)):(this.cr(),this.tag("/blockquote"));this.cr()};
_.V.list=function(J,c){var m=J.listType==="bullet"?"ul":"ol",b=this.attrs(J);c?(J=J.listStart,J!==null&&J!==1&&b.push(["start",J.toString()]),this.cr(),this.tag(m,b)):(this.cr(),this.tag("/"+m));this.cr()};
_.V.item=function(J,c){J=this.attrs(J);c?this.tag("li",J):(this.tag("/li"),this.cr())};
_.V.custom_inline=function(J,c){c&&J.onEnter?Ie(this,J.onEnter):!c&&J.onExit&&Ie(this,J.onExit)};
_.V.custom_block=function(J,c){this.cr();c&&J.onEnter?Ie(this,J.onEnter):!c&&J.onExit&&Ie(this,J.onExit);this.cr()};
_.V.table=function(J,c){J=this.attrs(J);c?(this.cr(),this.tag("table",J)):(this.tag("/table"),this.cr())};
_.V.row=function(J,c){J._rowIsDelimiter||(J=this.attrs(J),c?this.tag("tr",J):this.tag("/tr"))};
_.V.td=function(J,c){var m=this.attrs(J);J._alignment&&m.push(["align",J._alignment]);c?this.tag("td",m):this.tag("/td")};
_.V.th=function(J,c){var m=this.attrs(J);J._alignment&&m.push(["align",J._alignment]);c?this.tag("th",m):this.tag("/th")};
_.V.out=function(J){Ie(this,mO(J,!1))};
_.V.tag=function(J,c,m){if(!(this.disableTags>0)){this.buffer+="<"+J;if(c&&c.length>0){J=0;for(var b;(b=c[J])!==void 0;)this.buffer+=" "+b[0]+'="'+b[1]+'"',J++}m&&(this.buffer+=" /");this.buffer+=">";this.lastOut=">"}};
_.V.attrs=function(J){var c=[];this.options.sourcepos&&(J=J.sourcepos)&&c.push(["data-sourcepos",String(J[0][0])+":"+String(J[0][1])+"-"+String(J[1][0])+":"+String(J[1][1])]);return c};
pl.prototype.text=pl.prototype.text;pl.prototype.html_inline=pl.prototype.html_inline;pl.prototype.html_block=pl.prototype.html_block;pl.prototype.softbreak=pl.prototype.softbreak;pl.prototype.linebreak=pl.prototype.linebreak;pl.prototype.link=pl.prototype.link;pl.prototype.image=pl.prototype.image;pl.prototype.emph=pl.prototype.emph;pl.prototype.strong=pl.prototype.strong;pl.prototype.paragraph=pl.prototype.paragraph;pl.prototype.heading=pl.prototype.heading;pl.prototype.code=pl.prototype.code;
pl.prototype.code_block=pl.prototype.code_block;pl.prototype.thematic_break=pl.prototype.thematic_break;pl.prototype.block_quote=pl.prototype.block_quote;pl.prototype.list=pl.prototype.list;pl.prototype.item=pl.prototype.item;pl.prototype.custom_inline=pl.prototype.custom_inline;pl.prototype.custom_block=pl.prototype.custom_block;pl.prototype.table=pl.prototype.table;pl.prototype.row=pl.prototype.row;pl.prototype.td=pl.prototype.td;pl.prototype.th=pl.prototype.th;pl.prototype.out=pl.prototype.out;
pl.prototype.tag=pl.prototype.tag;pl.prototype.attrs=pl.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 ahZ,k18,Iym;(function(){function J(X,u){return X<u?-1:X>u?1:X>=u?0:NaN}
function c(X){return function(u,S){return J(X(u),S)}}
function m(){for(var X=0,u=arguments.length,S={},F;X<u;++X){if(!(F=arguments[X]+"")||F in S)throw Error("qe`"+F);S[F]=[]}return new b(S)}
function b(X){this._=X}
function x(X,u){return X.trim().split(/^|\s+/).map(function(S){var F="",VJ=S.indexOf(".");VJ>=0&&(F=S.slice(VJ+1),S=S.slice(0,VJ));if(S&&!u.hasOwnProperty(S))throw Error("re`"+S);return{type:S,name:F}})}
function P(X,u,S){for(var F=0,VJ=X.length;F<VJ;++F)if(X[F].name===u){X[F]=rmo;X=X.slice(0,F).concat(X.slice(F+1));break}S!=null&&X.push({name:u,value:S});return X}
function p(X){var u=X,S=u.indexOf(":");S>=0&&(u=X.slice(0,S))!=="xmlns"&&(X=X.slice(S+1));return GU.hasOwnProperty(u)?{space:GU[u],local:X}:X}
function t(X){return function(){var u=this.ownerDocument,S=this.namespaceURI;return S==="http://www.w3.org/1999/xhtml"&&u.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?u.createElement(X):u.createElementNS(S,X)}}
function I(X){return function(){return this.ownerDocument.createElementNS(X.space,X.local)}}
function a(X){X=p(X);return(X.local?I:t)(X)}
function k(){}
function H(X){return X==null?k:function(){return this.querySelector(X)}}
function T(X){return Array(X.length)}
function r(X,u){this.ownerDocument=X.ownerDocument;this.namespaceURI=X.namespaceURI;this._next=null;this._parent=X;this.__data__=u}
function W(X){return function(){return X}}
function Y(X,u,S,F,VJ,KG){for(var TD=0,zD,gT=u.length,lQ=KG.length;TD<lQ;++TD)(zD=u[TD])?(zD.__data__=KG[TD],F[TD]=zD):S[TD]=new r(X,KG[TD]);for(;TD<gT;++TD)if(zD=u[TD])VJ[TD]=zD}
function Z(X,u,S,F,VJ,KG,TD){var zD,gT,lQ={},J8=u.length,pQ=KG.length,o2=Array(J8),aF;for(zD=0;zD<J8;++zD)if(gT=u[zD])o2[zD]=aF="$"+TD.call(gT,gT.__data__,zD,u),aF in lQ?VJ[zD]=gT:lQ[aF]=gT;for(zD=0;zD<pQ;++zD)aF="$"+TD.call(X,KG[zD],zD,KG),(gT=lQ[aF])?(F[zD]=gT,gT.__data__=KG[zD],lQ[aF]=null):S[zD]=new r(X,KG[zD]);for(zD=0;zD<J8;++zD)(gT=u[zD])&&lQ[o2[zD]]===gT&&(VJ[zD]=gT)}
function d(X,u){return X<u?-1:X>u?1:X>=u?0:NaN}
function G(X){return function(){this.removeAttribute(X)}}
function e(X){return function(){this.removeAttributeNS(X.space,X.local)}}
function A(X,u){return function(){this.setAttribute(X,u)}}
function l(X,u){return function(){this.setAttributeNS(X.space,X.local,u)}}
function y(X,u){return function(){var S=u.apply(this,arguments);S==null?this.removeAttribute(X):this.setAttribute(X,S)}}
function pG(X,u){return function(){var S=u.apply(this,arguments);S==null?this.removeAttributeNS(X.space,X.local):this.setAttributeNS(X.space,X.local,S)}}
function kt(X){return function(){this.style.removeProperty(X)}}
function nG(X,u,S){return function(){this.style.setProperty(X,u,S)}}
function fG(X,u,S){return function(){var F=u.apply(this,arguments);F==null?this.style.removeProperty(X):this.style.setProperty(X,F,S)}}
function Yt(X,u){return X.style.getPropertyValue(u)||(X.ownerDocument&&X.ownerDocument.defaultView||X.document&&X||X.defaultView).getComputedStyle(X,null).getPropertyValue(u)}
function Z3(X){return function(){delete this[X]}}
function oR(X,u){return function(){this[X]=u}}
function Em(X,u){return function(){var S=u.apply(this,arguments);S==null?delete this[X]:this[X]=S}}
function X$(){this.textContent=""}
function Hu(X){return function(){this.textContent=X}}
function S6(X){return function(){var u=X.apply(this,arguments);this.textContent=u==null?"":u}}
function a2(){this.innerHTML=""}
function Nu(X){return function(){this.innerHTML=X}}
function cu(X){return function(){var u=X.apply(this,arguments);this.innerHTML=u==null?"":u}}
function t8(){return null}
function I_(){var X=this.parentNode;X&&X.removeChild(this)}
function fU(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}
function Nf(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}
function wL(X,u,S){X=qu(X,u,S);return function(F){var VJ=F.relatedTarget;VJ&&(VJ===this||VJ.compareDocumentPosition(this)&8)||X.call(this,F)}}
function qu(X,u,S){return function(){X.call(this,this.__data__,u,S)}}
function O5(X){return X.trim().split(/^|\s+/).map(function(u){var S="",F=u.indexOf(".");F>=0&&(S=u.slice(F+1),u=u.slice(0,F));return{type:u,name:S}})}
function LQ(X){return function(){var u=this.__on;if(u){for(var S=0,F=-1,VJ=u.length,KG;S<VJ;++S)(KG=u[S],X.type&&KG.type!==X.type||KG.name!==X.name)?u[++F]=KG:this.removeEventListener(KG.type,KG.listener,KG.capture);++F?u.length=F:delete this.__on}}}
function j6(X,u,S){var F=yW_.hasOwnProperty(X.type)?wL:qu;return function(VJ,KG,TD){VJ=this.__on;var zD;KG=F(u,KG,TD);if(VJ){TD=0;for(var gT=VJ.length;TD<gT;++TD)if((zD=VJ[TD]).type===X.type&&zD.name===X.name){this.removeEventListener(zD.type,zD.listener,zD.capture);this.addEventListener(zD.type,zD.listener=KG,zD.capture=S);zD.value=u;return}}this.addEventListener(X.type,KG,S);zD={type:X.type,name:X.name,value:u,listener:KG,capture:S};VJ?VJ.push(zD):this.__on=[zD]}}
function Ow(X,u,S){var F=X.ownerDocument&&X.ownerDocument.defaultView||X.document&&X||X.defaultView,VJ=F.CustomEvent;typeof VJ==="function"?VJ=new VJ(u,S):(VJ=F.document.createEvent("Event"),S?(VJ.initEvent(u,S.bubbles,S.cancelable),VJ.detail=S.detail):VJ.initEvent(u,!1,!1));X.dispatchEvent(VJ)}
function QQ(X,u){return function(){return Ow(this,X,u)}}
function VQ(X,u){return function(){return Ow(this,X,u.apply(this,arguments))}}
function vB(X,u){this._groups=X;this._parents=u}
function T4(){return new vB([[document.documentElement]],sxR)}
function Tz(){this._="@"+(++Lmo).toString(36)}
function uC(X,u,S){X.prototype=u.prototype=S;S.constructor=X}
function Kr(X,u){X=Object.create(X.prototype);for(var S in u)X[S]=u[S];return X}
function M2(){}
function MR(X){var u;X=(X+"").trim().toLowerCase();return(u=D_5.exec(X))?(u=parseInt(u[1],16),new Bu(u>>8&15|u>>4&240,u>>4&15|u&240,(u&15)<<4|u&15,1)):(u=WmS.exec(X))?w8(parseInt(u[1],16)):(u=zbR.exec(X))?new Bu(u[1],u[2],u[3],1):(u=u1R.exec(X))?new Bu(u[1]*255/100,u[2]*255/100,u[3]*255/100,1):(u=fvf.exec(X))?NL(u[1],u[2],u[3],u[4]):(u=YoF.exec(X))?NL(u[1]*255/100,u[2]*255/100,u[3]*255/100,u[4]):(u=XH5.exec(X))?ii(u[1],u[2]/100,u[3]/100,1):(u=ZZR.exec(X))?ii(u[1],u[2]/100,u[3]/100,u[4]):BDQ.hasOwnProperty(X)?
w8(BDQ[X]):X==="transparent"?new Bu(NaN,NaN,NaN,0):null}
function w8(X){return new Bu(X>>16&255,X>>8&255,X&255,1)}
function NL(X,u,S,F){F<=0&&(X=u=S=NaN);return new Bu(X,u,S,F)}
function A8(X){X instanceof M2||(X=MR(X));if(!X)return new Bu;X=X.rgb();return new Bu(X.r,X.g,X.b,X.opacity)}
function wR(X,u,S,F){return arguments.length===1?A8(X):new Bu(X,u,S,F==null?1:F)}
function Bu(X,u,S,F){this.r=+X;this.g=+u;this.b=+S;this.opacity=+F}
function M0(X){X=Math.max(0,Math.min(255,Math.round(X)||0));return(X<16?"0":"")+X.toString(16)}
function ii(X,u,S,F){F<=0?X=u=S=NaN:S<=0||S>=1?X=u=NaN:u<=0&&(X=NaN);return new V4(X,u,S,F)}
function GO(X){if(X instanceof V4)return new V4(X.h,X.s,X.l,X.opacity);X instanceof M2||(X=MR(X));if(!X)return new V4;if(X instanceof V4)return X;X=X.rgb();var u=X.r/255,S=X.g/255,F=X.b/255,VJ=Math.min(u,S,F),KG=Math.max(u,S,F),TD=NaN,zD=KG-VJ,gT=(KG+VJ)/2;zD?(TD=u===KG?(S-F)/zD+(S<F)*6:S===KG?(F-u)/zD+2:(u-S)/zD+4,zD/=gT<.5?KG+VJ:2-KG-VJ,TD*=60):zD=gT>0&&gT<1?0:TD;return new V4(TD,zD,gT,X.opacity)}
function IP(X,u,S,F){return arguments.length===1?GO(X):new V4(X,u,S,F==null?1:F)}
function V4(X,u,S,F){this.h=+X;this.s=+u;this.l=+S;this.opacity=+F}
function C6(X,u,S){return(X<60?u+(S-u)*X/60:X<180?S:X<240?u+(S-u)*(240-X)/60:u)*255}
function qr(X){if(X instanceof sm)return new sm(X.l,X.a,X.b,X.opacity);if(X instanceof iC){if(isNaN(X.h))return new sm(X.l,0,0,X.opacity);var u=X.h*g_$;return new sm(X.l,Math.cos(u)*X.c,Math.sin(u)*X.c,X.opacity)}X instanceof Bu||(X=A8(X));var S=VR(X.r),F=VR(X.g),VJ=VR(X.b);u=hq(.2225045*S+.7168786*F+.0606169*VJ);if(S===F&&F===VJ)var KG=S=u;else KG=hq((.4360747*S+.3850649*F+.1430804*VJ)/.96422),S=hq((.0139322*S+.0971045*F+.7141733*VJ)/.82521);return new sm(116*u-16,500*(KG-u),200*(u-S),X.opacity)}
function sm(X,u,S,F){this.l=+X;this.a=+u;this.b=+S;this.opacity=+F}
function hq(X){return X>qop?Math.pow(X,1/3):X/JNC+cNz}
function Om(X){return X>xS?X*X*X:JNC*(X-cNz)}
function KQ(X){return 255*(X<=.0031308?12.92*X:1.055*Math.pow(X,1/2.4)-.055)}
function VR(X){return(X/=255)<=.04045?X/12.92:Math.pow((X+.055)/1.055,2.4)}
function Yl(X){if(X instanceof iC)return new iC(X.h,X.c,X.l,X.opacity);X instanceof sm||(X=qr(X));if(X.a===0&&X.b===0)return new iC(NaN,0,X.l,X.opacity);var u=Math.atan2(X.b,X.a)*mPZ;return new iC(u<0?u+360:u,Math.sqrt(X.a*X.a+X.b*X.b),X.l,X.opacity)}
function Cr(X,u,S,F){return arguments.length===1?Yl(X):new iC(X,u,S,F==null?1:F)}
function iC(X,u,S,F){this.h=+X;this.c=+u;this.l=+S;this.opacity=+F}
function HB(X,u,S,F){if(arguments.length===1){var VJ=X;if(VJ instanceof rR)VJ=new rR(VJ.h,VJ.s,VJ.l,VJ.opacity);else{VJ instanceof Bu||(VJ=A8(VJ));var KG=VJ.g/255,TD=VJ.b/255,zD=(bH8*TD+VJ.r/255*-1.7884503806-3.5172982438*KG)/(bH8+-1.7884503806-3.5172982438);TD-=zD;var gT=(1.97294*(KG-zD)- -.29227*TD)/-.90649;TD=(KG=Math.sqrt(gT*gT+TD*TD)/(1.97294*zD*(1-zD)))?Math.atan2(gT,TD)*mPZ-120:NaN;VJ=new rR(TD<0?TD+360:TD,KG,zD,VJ.opacity)}}else VJ=new rR(X,u,S,F==null?1:F);return VJ}
function rR(X,u,S,F){this.h=+X;this.s=+u;this.l=+S;this.opacity=+F}
function KU(X,u,S,F,VJ){var KG=X*X,TD=KG*X;return((1-3*X+3*KG-TD)*u+(4-6*KG+3*TD)*S+(1+3*X+3*KG-3*TD)*F+TD*VJ)/6}
function PB(X){return function(){return X}}
function T$(X,u){return function(S){return X+S*u}}
function jj(X,u,S){return X=Math.pow(X,S),u=Math.pow(u,S)-X,S=1/S,function(F){return Math.pow(X+F*u,S)}}
function S9(X,u){var S=u-X;return S?T$(X,S>180||S<-180?S-360*Math.round(S/360):S):PB(isNaN(X)?u:X)}
function r8(X){return(X=+X)===1?tU:function(u,S){return S-u?jj(u,S,X):PB(isNaN(u)?S:u)}}
function tU(X,u){var S=u-X;return S?T$(X,S):PB(isNaN(X)?u:X)}
function Ei(X){return function(u){var S=u.length,F=Array(S),VJ=Array(S),KG=Array(S),TD;for(TD=0;TD<S;++TD){var zD=wR(u[TD]);F[TD]=zD.r||0;VJ[TD]=zD.g||0;KG[TD]=zD.b||0}F=X(F);VJ=X(VJ);KG=X(KG);zD.opacity=1;return function(gT){zD.r=F(gT);zD.g=VJ(gT);zD.b=KG(gT);return zD+""}}}
function RR(X,u){return X=+X,u-=X,function(S){return X+u*S}}
function pr(X){return function(){return X}}
function pU(X){return function(u){return X(u)+""}}
function G4(X,u){var S=u2r.lastIndex=fQe.lastIndex=0,F,VJ,KG,TD=-1,zD=[],gT=[];X+="";for(u+="";(F=u2r.exec(X))&&(VJ=fQe.exec(u));)(KG=VJ.index)>S&&(KG=u.slice(S,KG),zD[TD]?zD[TD]+=KG:zD[++TD]=KG),(F=F[0])===(VJ=VJ[0])?zD[TD]?zD[TD]+=VJ:zD[++TD]=VJ:(zD[++TD]=null,gT.push({i:TD,x:RR(F,VJ)})),S=fQe.lastIndex;S<u.length&&(KG=u.slice(S),zD[TD]?zD[TD]+=KG:zD[++TD]=KG);return zD.length<2?gT[0]?pU(gT[0].x):pr(u):(u=gT.length,function(lQ){for(var J8=0,pQ;J8<u;++J8)zD[(pQ=gT[J8]).i]=pQ.x(lQ);return zD.join("")})}
function uL(X,u,S,F,VJ,KG){var TD,zD,gT;if(TD=Math.sqrt(X*X+u*u))X/=TD,u/=TD;if(gT=X*S+u*F)S-=X*gT,F-=u*gT;if(zD=Math.sqrt(S*S+F*F))S/=zD,F/=zD,gT/=zD;X*F<u*S&&(X=-X,u=-u,gT=-gT,TD=-TD);return{translateX:VJ,translateY:KG,rotate:Math.atan2(u,X)*xPZ,skewX:Math.atan(gT)*xPZ,scaleX:TD,scaleY:zD}}
function al(X,u,S,F){function VJ(lQ){return lQ.length?lQ.pop()+" ":""}
function KG(lQ,J8,pQ,o2,aF,kl){lQ!==pQ||J8!==o2?(aF=aF.push("translate(",null,u,null,S),kl.push({i:aF-4,x:RR(lQ,pQ)},{i:aF-2,x:RR(J8,o2)})):(pQ||o2)&&aF.push("translate("+pQ+u+o2+S)}
function TD(lQ,J8,pQ,o2){lQ!==J8?(lQ-J8>180?J8+=360:J8-lQ>180&&(lQ+=360),o2.push({i:pQ.push(VJ(pQ)+"rotate(",null,F)-2,x:RR(lQ,J8)})):J8&&pQ.push(VJ(pQ)+"rotate("+J8+F)}
function zD(lQ,J8,pQ,o2){lQ!==J8?o2.push({i:pQ.push(VJ(pQ)+"skewX(",null,F)-2,x:RR(lQ,J8)}):J8&&pQ.push(VJ(pQ)+"skewX("+J8+F)}
function gT(lQ,J8,pQ,o2,aF,kl){lQ!==pQ||J8!==o2?(aF=aF.push(VJ(aF)+"scale(",null,",",null,")"),kl.push({i:aF-4,x:RR(lQ,pQ)},{i:aF-2,x:RR(J8,o2)})):pQ===1&&o2===1||aF.push(VJ(aF)+"scale("+pQ+","+o2+")")}
return function(lQ,J8){var pQ=[],o2=[];lQ=X(lQ);J8=X(J8);KG(lQ.translateX,lQ.translateY,J8.translateX,J8.translateY,pQ,o2);TD(lQ.rotate,J8.rotate,pQ,o2);zD(lQ.skewX,J8.skewX,pQ,o2);gT(lQ.scaleX,lQ.scaleY,J8.scaleX,J8.scaleY,pQ,o2);lQ=J8=null;return function(aF){for(var kl=-1,v0=o2.length,ra;++kl<v0;)pQ[(ra=o2[kl]).i]=ra.x(aF);return pQ.join("")}}}
function X7(X){return function(u,S){var F=X((u=IP(u)).h,(S=IP(S)).h),VJ=tU(u.s,S.s),KG=tU(u.l,S.l),TD=tU(u.opacity,S.opacity);return function(zD){u.h=F(zD);u.s=VJ(zD);u.l=KG(zD);u.opacity=TD(zD);return u+""}}}
function kd(X){return function(u,S){var F=X((u=Cr(u)).h,(S=Cr(S)).h),VJ=tU(u.c,S.c),KG=tU(u.l,S.l),TD=tU(u.opacity,S.opacity);return function(zD){u.h=F(zD);u.c=VJ(zD);u.l=KG(zD);u.opacity=TD(zD);return u+""}}}
function He(X){return function F(S){function VJ(KG,TD){var zD=X((KG=HB(KG)).h,(TD=HB(TD)).h),gT=tU(KG.s,TD.s),lQ=tU(KG.l,TD.l),J8=tU(KG.opacity,TD.opacity);return function(pQ){KG.h=zD(pQ);KG.s=gT(pQ);KG.l=lQ(Math.pow(pQ,S));KG.opacity=J8(pQ);return KG+""}}
S=+S;VJ.gamma=F;return VJ}(1)}
function HI(){return dS||(VvQ(QFm),dS=Eg.now()+CiD)}
function QFm(){dS=0}
function iE(){this._call=this._time=this._next=null}
function Er(X,u,S){var F=new iE;F.restart(X,u,S);return F}
function vq(){dS=(a7G=Eg.now())+CiD;VX=vf=0;try{HI();++VX;for(var X=kLR,u;X;)(u=dS-X._time)>=0&&X._call.call(null,u),X=X._next;--VX}finally{VX=0;X=kLR;for(var S=Infinity;X;)if(X._call){S>X._time&&(S=X._time);var F=X;X=X._next}else u=X._next,X._next=null,X=F?F._next=u:kLR=u;Og=F;Or(S);dS=0}}
function aIr(){var X=Eg.now(),u=X-a7G;u>1E3&&(CiD-=u,a7G=X)}
function Or(X){VX||(vf&&(vf=clearTimeout(vf)),X-dS>24?(X<Infinity&&(vf=setTimeout(vq,X-Eg.now()-CiD)),Ao&&(Ao=clearInterval(Ao))):(Ao||(a7G=Eg.now(),Ao=setInterval(aIr,1E3)),VX=1,VvQ(vq)))}
function Pe_(X,u,S){var F=new iE;u=u==null?0:+u;F.restart(function(VJ){F.stop();X(VJ+u)},u,S);
return F}
function YI3(X,u,S,F,VJ,KG){var TD=X.__transition;if(!TD)X.__transition={};else if(S in TD)return;U_1(X,S,{name:u,index:F,group:VJ,on:SoS,tween:hbR,time:KG.time,delay:KG.delay,duration:KG.duration,ease:KG.ease,timer:null,state:0})}
function Xiq(X,u){X=mR(X,u);if(X.state>0)throw Error("se");return X}
function $G(X,u){X=mR(X,u);if(X.state>2)throw Error("te");return X}
function mR(X,u){X=X.__transition;if(!X||!(X=X[u]))throw Error("ue");return X}
function U_1(X,u,S){function F(gT){var lQ,J8;if(S.state!==1)return KG();for(o2 in TD){var pQ=TD[o2];if(pQ.name===S.name){if(pQ.state===3)return Pe_(F);pQ.state===4?(pQ.state=6,pQ.timer.stop(),pQ.on.call("interrupt",X,X.__data__,pQ.index,pQ.group),delete TD[o2]):+o2<u&&(pQ.state=6,pQ.timer.stop(),delete TD[o2])}}Pe_(function(){S.state===3&&(S.state=4,S.timer.restart(VJ,S.delay,S.time),VJ(gT))});
S.state=2;S.on.call("start",X,X.__data__,S.index,S.group);if(S.state===2){S.state=3;zD=Array(J8=S.tween.length);var o2=0;for(lQ=-1;o2<J8;++o2)if(pQ=S.tween[o2].value.call(X,X.__data__,S.index,S.group))zD[++lQ]=pQ;zD.length=lQ+1}}
function VJ(gT){gT=gT<S.duration?S.ease.call(null,gT/S.duration):(S.timer.restart(KG),S.state=5,1);for(var lQ=-1,J8=zD.length;++lQ<J8;)zD[lQ].call(null,gT);S.state===5&&(S.on.call("end",X,X.__data__,S.index,S.group),KG())}
function KG(){S.state=6;S.timer.stop();delete TD[u];for(var gT in TD)return;delete X.__transition}
var TD=X.__transition,zD;TD[u]=S;S.timer=Er(function(gT){S.state=1;S.timer.restart(F,S.delay,S.time);S.delay<=gT&&F(gT-S.delay)},0,S.time)}
function d_o(X,u){var S,F;return function(){var VJ=$G(this,X),KG=VJ.tween;if(KG!==S){F=S=KG;KG=0;for(var TD=F.length;KG<TD;++KG)if(F[KG].name===u){F=F.slice();F.splice(KG,1);break}}VJ.tween=F}}
function $_o(X,u,S){var F,VJ;if(typeof S!=="function")throw Error();return function(){var KG=$G(this,X),TD=KG.tween;if(TD!==F){VJ=(F=TD).slice();TD={name:u,value:S};for(var zD=0,gT=VJ.length;zD<gT;++zD)if(VJ[zD].name===u){VJ[zD]=TD;break}zD===gT&&VJ.push(TD)}KG.tween=VJ}}
function ZHD(X,u,S){var F=X._id;X.each(function(){var VJ=$G(this,F);(VJ.value||(VJ.value={}))[u]=S.apply(this,arguments)});
return function(VJ){return mR(VJ,F).value[u]}}
function Mvj(X,u){var S;return(typeof u==="number"?RR:u instanceof MR?piB:(S=MR(u))?(u=S,piB):G4)(X,u)}
function GtR(X){return function(){this.removeAttribute(X)}}
function Eg4(X){return function(){this.removeAttributeNS(X.space,X.local)}}
function vg5(X,u,S){var F,VJ;return function(){var KG=this.getAttribute(X);return KG===S?null:KG===F?VJ:VJ=u(F=KG,S)}}
function OZR(X,u,S){var F,VJ;return function(){var KG=this.getAttributeNS(X.space,X.local);return KG===S?null:KG===F?VJ:VJ=u(F=KG,S)}}
function Amr(X,u,S){var F,VJ,KG;return function(){var TD=S(this);if(TD==null)return void this.removeAttribute(X);var zD=this.getAttribute(X);return zD===TD?null:zD===F&&TD===VJ?KG:KG=u(F=zD,VJ=TD)}}
function Rb1(X,u,S){var F,VJ,KG;return function(){var TD=S(this);if(TD==null)return void this.removeAttributeNS(X.space,X.local);var zD=this.getAttributeNS(X.space,X.local);return zD===TD?null:zD===F&&TD===VJ?KG:KG=u(F=zD,VJ=TD)}}
function ogp(X,u){function S(){var F=this,VJ=u.apply(F,arguments);return VJ&&function(KG){F.setAttributeNS(X.space,X.local,VJ(KG))}}
S._value=u;return S}
function Qxo(X,u){function S(){var F=this,VJ=u.apply(F,arguments);return VJ&&function(KG){F.setAttribute(X,VJ(KG))}}
S._value=u;return S}
function ebR(X,u){return function(){Xiq(this,X).delay=+u.apply(this,arguments)}}
function jxS(X,u){return u=+u,function(){Xiq(this,X).delay=u}}
function FmS(X,u){return function(){$G(this,X).duration=+u.apply(this,arguments)}}
function lv5(X,u){return u=+u,function(){$G(this,X).duration=u}}
function ymR(X,u){if(typeof u!=="function")throw Error();return function(){$G(this,X).ease=u}}
function Bxh(X){return(X+"").trim().split(/^|\s+/).every(function(u){var S=u.indexOf(".");S>=0&&(u=u.slice(0,S));return!u||u==="start"})}
function gge(X,u,S){var F,VJ,KG=Bxh(u)?Xiq:$G;return function(){var TD=KG(this,X),zD=TD.on;if(zD!==F)(VJ=(F=zD).copy()).on(u,S);TD.on=VJ}}
function JKR(X){return function(){var u=this.parentNode,S;for(S in this.__transition)if(+S!==X)return;u&&u.removeChild(this)}}
function cKo(X,u){var S,F,VJ;return function(){var KG=Yt(this,X),TD=(this.style.removeProperty(X),Yt(this,X));return KG===TD?null:KG===S&&TD===F?VJ:VJ=u(S=KG,F=TD)}}
function mCR(X){return function(){this.style.removeProperty(X)}}
function b01(X,u,S){var F,VJ;return function(){var KG=Yt(this,X);return KG===S?null:KG===F?VJ:VJ=u(F=KG,S)}}
function xC1(X,u,S){var F,VJ,KG;return function(){var TD=Yt(this,X),zD=S(this);zD==null&&(zD=(this.style.removeProperty(X),Yt(this,X)));return TD===zD?null:TD===F&&zD===VJ?KG:KG=u(F=TD,VJ=zD)}}
function VnR(X,u,S){function F(){var VJ=this,KG=u.apply(VJ,arguments);return KG&&function(TD){VJ.style.setProperty(X,KG(TD),S)}}
F._value=u;return F}
function P0r(X){return function(){this.textContent=X}}
function Mns(X){return function(){var u=X(this);this.textContent=u==null?"":u}}
function po(X,u,S,F){this._groups=X;this._parents=u;this._name=S;this._id=F}
function qIm(X){return{type:X}}
function UPr(){this._x0=this._y0=this._x1=this._y1=null;this._=""}
function H2T(){}
function Ny_(X,u){var S=new H2T;if(X instanceof H2T)X.each(function(TD,zD){S.set(zD,TD)});
else if(Array.isArray(X)){var F=-1,VJ=X.length,KG;if(u==null)for(;++F<VJ;)S.set(F,X[F]);else for(;++F<VJ;)S.set(u(KG=X[F],F,X),KG)}else if(X)for(F in X)S.set(F,X[F]);return S}
function i2e(){}
function tv8(X){return function(u){for(var S={},F=0;F<X.length;F++)S[X[F]]=u[F]||"";return S}}
function peh(X,u){var S=tv8(X);return function(F,VJ){return u(S(F),VJ,X)}}
function N9F(X){var u=Object.create(null),S=[];X.forEach(function(F){for(var VJ in F)VJ in u||S.push(u[VJ]=VJ)});
return S}
function IQ_(X){function u(TD,zD){function gT(){if(kl)return SIr;if(v0)return v0=!1,KQZ;var AU,gm=pQ,rM;if(TD.charCodeAt(gm)===34){for(;pQ++<J8&&TD.charCodeAt(pQ)!==34||TD.charCodeAt(++pQ)===34;);(AU=pQ)>=J8?kl=!0:(rM=TD.charCodeAt(pQ++))===10?v0=!0:rM===13&&(v0=!0,TD.charCodeAt(pQ)===10&&++pQ);return TD.slice(gm+1,AU-1).replace(/""/g,'"')}for(;pQ<J8;){if((rM=TD.charCodeAt(AU=pQ++))===10)v0=!0;else if(rM===13)v0=!0,TD.charCodeAt(pQ)===10&&++pQ;else if(rM!==KG)continue;return TD.slice(gm,AU)}return kl=
!0,TD.slice(gm,J8)}
var lQ=[],J8=TD.length,pQ=0,o2=0,aF,kl=J8<=0,v0=!1;TD.charCodeAt(J8-1)===10&&--J8;for(TD.charCodeAt(J8-1)===13&&--J8;(aF=gT())!==SIr;){for(var ra=[];aF!==KQZ&&aF!==SIr;)ra.push(aF),aF=gT();zD&&(ra=zD(ra,o2++))==null||lQ.push(ra)}return lQ}
function S(TD){return TD.map(F).join(X)}
function F(TD){return TD==null?"":VJ.test(TD)?'"'+TD.replace(/"/g,'""')+'"':TD}
var VJ=new RegExp('["'+X+"\n\r]"),KG=X.charCodeAt(0);return{parse:function(TD,zD){var gT,lQ;TD=u(TD,function(J8,pQ){if(gT)return gT(J8,pQ-1);lQ=J8;gT=zD?peh(J8,zD):tv8(J8)});
TD.columns=lQ||[];return TD},
parseRows:u,format:function(TD,zD){zD==null&&(zD=N9F(TD));return[zD.map(F).join(X)].concat(TD.map(function(gT){return zD.map(function(lQ){return F(gT[lQ])}).join(X)})).join("\n")},
formatRows:function(TD){return TD.map(S).join("\n")}}}
function tnR(X){if(!X.ok)throw Error("ve`"+X.status+"`"+X.statusText);return X.text()}
function Ce6(X){return function(u,S,F){arguments.length===2&&typeof S==="function"&&(F=S,S=void 0);return fetch(u,S).then(tnR).then(function(VJ){return X(VJ,F)})}}
function aQj(X,u,S,F){if(isNaN(u)||isNaN(S))return X;var VJ,KG=X._root;F={data:F};var TD=X._x0,zD=X._y0,gT=X._x1,lQ=X._y1,J8,pQ,o2,aF,kl;if(!KG)return X._root=F,X;for(;KG.length;)if((o2=u>=(J8=(TD+gT)/2))?TD=J8:gT=J8,(aF=S>=(pQ=(zD+lQ)/2))?zD=pQ:lQ=pQ,VJ=KG,!(KG=KG[kl=aF<<1|o2]))return VJ[kl]=F,X;var v0=+X._x.call(null,KG.data);var ra=+X._y.call(null,KG.data);if(u===v0&&S===ra)return F.next=KG,VJ?VJ[kl]=F:X._root=F,X;do VJ=VJ?VJ[kl]=Array(4):X._root=Array(4),(o2=u>=(J8=(TD+gT)/2))?TD=J8:gT=J8,(aF=
S>=(pQ=(zD+lQ)/2))?zD=pQ:lQ=pQ;while((kl=aF<<1|o2)===(o2=(ra>=pQ)<<1|v0>=J8));return VJ[o2]=KG,VJ[kl]=F,X}
function JO(X,u,S,F,VJ){this.node=X;this.x0=u;this.y0=S;this.x1=F;this.y1=VJ}
function Ibr(X){return X[0]}
function Ks4(X){return X[1]}
function hBo(X,u,S,F,VJ,KG){this._x=X;this._y=u;this._x0=S;this._y0=F;this._x1=VJ;this._y1=KG;this._root=void 0}
function kW_(X){for(var u={data:X.data},S=u;X=X.next;)S=S.next={data:X.data};return u}
function nBR(X,u){if((u=(X=u?X.toExponential(u-1):X.toExponential()).indexOf("e"))<0)return null;var S=X.slice(0,u);return[S.length>1?S[0]+S.slice(2):S,+X.slice(u+1)]}
function C01(X){return X=nBR(Math.abs(X)),X?X[1]:NaN}
function abS(X,u){return function(S,F){for(var VJ=S.length,KG=[],TD=0,zD=X[0],gT=0;VJ>0&&zD>0;){gT+zD+1>F&&(zD=Math.max(1,F-gT));KG.push(S.substring(VJ-=zD,VJ+zD));if((gT+=zD+1)>F)break;zD=X[TD=(TD+1)%X.length]}return KG.reverse().join(u)}}
function k8R(X){return function(u){return u.replace(/[0-9]/g,function(S){return X[+S]})}}
function dPQ(X){return new $PT(X)}
function $PT(X){if(!(u=H0f.exec(X)))throw Error("we`"+X);var u;this.fill=u[1]||" ";this.align=u[2]||">";this.sign=u[3]||"-";this.symbol=u[4]||"";this.zero=!!u[5];this.width=u[6]&&+u[6];this.comma=!!u[7];this.precision=u[8]&&+u[8].slice(1);this.trim=!!u[9];this.type=u[10]||""}
function HHz(X,u){u=nBR(X,u);if(!u)return X+"";X=u[0];u=u[1];return u<0?"0."+Array(-u).join("0")+X:X.length>u+1?X.slice(0,u+1)+"."+X.slice(u+1):X+Array(u-X.length+2).join("0")}
function iH8(X){return X}
function i04(X){function u(zD){function gT(Qb){var Kt=rM,Yp=Pg,te,cw;if(gm==="c")Yp=J$(Qb)+Yp,Qb="";else{Qb=+Qb;var i1=Qb<0;Qb=J$(Math.abs(Qb),ra);if(AU){var oD=Qb.length,u3=1,R6=-1;a:for(;u3<oD;++u3)switch(Qb[u3]){case ".":R6=te=u3;break;case "0":R6===0&&(R6=u3);te=u3;break;default:if(!+Qb[u3])break a;R6>0&&(R6=0)}Qb=R6>0?Qb.slice(0,R6)+Qb.slice(te+1):Qb}i1&&+Qb===0&&(i1=!1);Kt=(i1?pQ==="("?pQ:"-":pQ==="-"||pQ==="("?"":pQ)+Kt;Yp=(gm==="s"?n6$[8+Tya/3]:"")+Yp+(i1&&pQ==="("?")":"");if(nw)for(i1=-1,
te=Qb.length;++i1<te;)if(cw=Qb.charCodeAt(i1),48>cw||cw>57){Yp=(cw===46?VJ+Qb.slice(i1+1):Qb.slice(i1))+Yp;Qb=Qb.slice(0,i1);break}}v0&&!aF&&(Qb=S(Qb,Infinity));cw=Kt.length+Qb.length+Yp.length;i1=cw<kl?Array(kl-cw+1).join(lQ):"";v0&&aF&&(Qb=S(i1+Qb,i1.length?kl-Yp.length:Infinity),i1="");switch(J8){case "<":Qb=Kt+Qb+Yp+i1;break;case "=":Qb=Kt+i1+Qb+Yp;break;case "^":Qb=i1.slice(0,cw=i1.length>>1)+Kt+Qb+Yp+i1.slice(cw);break;default:Qb=i1+Kt+Qb+Yp}return KG(Qb)}
zD=dPQ(zD);var lQ=zD.fill,J8=zD.align,pQ=zD.sign,o2=zD.symbol,aF=zD.zero,kl=zD.width,v0=zD.comma,ra=zD.precision,AU=zD.trim,gm=zD.type;gm==="n"?(v0=!0,gm="g"):wiZ[gm]||(ra==null&&(ra=12),AU=!0,gm="g");if(aF||lQ==="0"&&J8==="=")aF=!0,lQ="0",J8="=";var rM=o2==="$"?F[0]:o2==="#"&&/[boxX]/.test(gm)?"0"+gm.toLowerCase():"",Pg=o2==="$"?F[1]:/[%p]/.test(gm)?TD:"",J$=wiZ[gm],nw=/[defgprs%]/.test(gm);ra=ra==null?6:/[gprs]/.test(gm)?Math.max(1,Math.min(21,ra)):Math.max(0,Math.min(20,ra));gT.toString=function(){return zD+
""};
return gT}
var S=X.grouping&&X.thousands?abS(X.grouping,X.thousands):iH8,F=X.currency,VJ=X.decimal,KG=X.numerals?k8R(X.numerals):iH8,TD=X.percent||"%";return{format:u,formatPrefix:function(zD,gT){var lQ=u((zD=dPQ(zD),zD.type="f",zD));zD=Math.max(-8,Math.min(8,Math.floor(C01(gT)/3)))*3;var J8=Math.pow(10,-zD),pQ=n6$[8+zD/3];return function(o2){return lQ(J8*o2)+pQ}}}}
function d9(){this.reset()}
function rNC(X,u,S){var F=X.s=u+S,VJ=F-u;X.t=u-(F-VJ)+(S-VJ)}
function T_R(X){return X>1?EQ:X<-1?-EQ:Math.asin(X)}
function ndo(){}
function s92(X){var u=X[0];X=X[1];var S=v8(X);return[S*v8(u),S*fk(u),fk(X)]}
function LQZ(X,u){return[X[1]*u[2]-X[2]*u[1],X[2]*u[0]-X[0]*u[2],X[0]*u[1]-X[1]*u[0]]}
function DP_(X){var u=wFr(X[0]*X[0]+X[1]*X[1]+X[2]*X[2]);X[0]/=u;X[1]/=u;X[2]/=u}
function T95(){var X=[],u;return{point:function(S,F){u.push([S,F])},
lineStart:function(){X.push(u=[])},
lineEnd:ndo,rejoin:function(){X.length>1&&X.push(X.pop().concat(X.shift()))},
result:function(){var S=X;X=[];u=null;return S}}}
function r$Q(X,u,S,F){this.x=X;this.z=u;this.o=S;this.e=F;this.v=!1;this.n=this.p=null}
function weh(X,u,S,F,VJ){var KG=[],TD=[];X.forEach(function(pQ){if(!((o2=pQ.length-1)<=0)){var o2,aF=pQ[0],kl=pQ[o2],v0=aF;if(N7(v0[0]-kl[0])<1E-6&&N7(v0[1]-kl[1])<1E-6){VJ.lineStart();for(zD=0;zD<o2;++zD)VJ.point((aF=pQ[zD])[0],aF[1]);VJ.lineEnd()}else KG.push(o2=new r$Q(aF,pQ,null,!0)),TD.push(o2.o=new r$Q(aF,null,o2,!1)),KG.push(o2=new r$Q(kl,pQ,null,!1)),TD.push(o2.o=new r$Q(kl,null,o2,!0))}});
if(KG.length){TD.sort(u);WQ_(KG);WQ_(TD);var zD=0;for(X=TD.length;zD<X;++zD)TD[zD].e=S=!S;S=KG[0];for(var gT;;){for(var lQ=S,J8=!0;lQ.v;)if((lQ=lQ.n)===S)return;u=lQ.z;VJ.lineStart();do{lQ.v=lQ.o.v=!0;if(lQ.e){if(J8)for(zD=0,X=u.length;zD<X;++zD)VJ.point((gT=u[zD])[0],gT[1]);else F(lQ.x,lQ.n.x,1,VJ);lQ=lQ.n}else{if(J8)for(u=lQ.p.z,zD=u.length-1;zD>=0;--zD)VJ.point((gT=u[zD])[0],gT[1]);else F(lQ.x,lQ.p.x,-1,VJ);lQ=lQ.p}lQ=lQ.o;u=lQ.z;J8=!J8}while(!lQ.v);VJ.lineEnd()}}}
function WQ_(X){if(u=X.length){for(var u,S=0,F=X[0],VJ;++S<u;)F.n=VJ=X[S],VJ.p=F,F=VJ;F.n=VJ=X[0];VJ.p=F}}
function rKR(X){return X.length>1}
function s5h(X,u){return((X=X.x)[0]<0?X[1]-EQ-1E-6:EQ-X[1])-((u=u.x)[0]<0?u[1]-EQ-1E-6:EQ-u[1])}
function GWD(){}
function zBQ(X){return function(u,S){var F=v8(u),VJ=v8(S);F=X(F*VJ);return[F*VJ*fk(u),F*fk(S)]}}
function R4(X){return function(u,S){var F=wFr(u*u+S*S),VJ=X(F),KG=fk(VJ);VJ=v8(VJ);return[u2B(u*KG,F*VJ),T_R(F&&S*KG/F)]}}
function Lss(X){var u=0,S=X.children,F=S&&S.length;if(F)for(;--F>=0;)u+=S[F].value;else u=1;X.value=u}
function fQ$(X,u){var S=new o4(X);X=+X.value&&(S.value=X.value);var F,VJ=[S],KG,TD,zD,gT;for(u==null&&(u=DCs);F=VJ.pop();)if(X&&(F.value=+F.data.value),(TD=u(F.data))&&(gT=TD.length))for(F.children=Array(gT),zD=gT-1;zD>=0;--zD)VJ.push(KG=F.children[zD]=new o4(TD[zD])),KG.parent=F,KG.depth=F.depth+1;return S.eachBefore(WsS)}
function DCs(X){return X.children}
function zvp(X){X.data=X.data.data}
function WsS(X){var u=0;do X.height=u;while((X=X.parent)&&X.height<++u)}
function o4(X){this.data=X;this.depth=this.height=0;this.parent=null}
function ik(X,u,S,F){function VJ(KG){return X(KG=new Date(+KG)),KG}
VJ.floor=VJ;VJ.ceil=function(KG){return X(KG=new Date(KG-1)),u(KG,1),X(KG),KG};
VJ.round=function(KG){var TD=VJ(KG),zD=VJ.ceil(KG);return KG-TD<zD-KG?TD:zD};
VJ.offset=function(KG,TD){return u(KG=new Date(+KG),TD==null?1:Math.floor(TD)),KG};
VJ.range=function(KG,TD,zD){var gT=[],lQ;KG=VJ.ceil(KG);zD=zD==null?1:Math.floor(zD);if(!(KG<TD&&zD>0))return gT;do gT.push(lQ=new Date(+KG)),u(KG,zD),X(KG);while(lQ<KG&&KG<TD);return gT};
VJ.filter=function(KG){return ik(function(TD){if(TD>=TD)for(;X(TD),!KG(TD);)TD.setTime(TD-1)},function(TD,zD){if(TD>=TD)if(zD<0)for(;++zD<=0;)for(;u(TD,-1),!KG(TD););
else for(;--zD>=0;)for(;u(TD,1),!KG(TD););})};
S&&(VJ.count=function(KG,TD){E6q.setTime(+KG);v6o.setTime(+TD);X(E6q);X(v6o);return Math.floor(S(E6q,v6o))},VJ.every=function(KG){KG=Math.floor(KG);
return isFinite(KG)&&KG>0?KG>1?VJ.filter(F?function(TD){return F(TD)%KG===0}:function(TD){return VJ.count(0,TD)%KG===0}):VJ:null});
return VJ}
function GZ(X){return ik(function(u){u.setDate(u.getDate()-(u.getDay()+7-X)%7);u.setHours(0,0,0,0)},function(u,S){u.setDate(u.getDate()+S*7)},function(u,S){return(S-u-(S.getTimezoneOffset()-u.getTimezoneOffset())*6E4)/6048E5})}
function EM(X){return ik(function(u){u.setUTCDate(u.getUTCDate()-(u.getUTCDay()+7-X)%7);u.setUTCHours(0,0,0,0)},function(u,S){u.setUTCDate(u.getUTCDate()+S*7)},function(u,S){return(S-u)/6048E5})}
function uyR(X){if(0<=X.y&&X.y<100){var u=new Date(-1,X.m,X.d,X.H,X.M,X.S,X.L);u.setFullYear(X.y);return u}return new Date(X.y,X.m,X.d,X.H,X.M,X.S,X.L)}
function sDq(X){if(0<=X.y&&X.y<100){var u=new Date(Date.UTC(-1,X.m,X.d,X.H,X.M,X.S,X.L));u.setUTCFullYear(X.y);return u}return new Date(Date.UTC(X.y,X.m,X.d,X.H,X.M,X.S,X.L))}
function Qm(X){return{y:X,m:0,d:1,H:0,M:0,S:0,L:0}}
function fb5(X){function u(Yp,te){return function(cw){var i1=[],oD=-1,u3=0,R6=Yp.length,C3,LV;for(cw instanceof Date||(cw=new Date(+cw));++oD<R6;)if(Yp.charCodeAt(oD)===37){i1.push(Yp.slice(u3,oD));(u3=YI_[C3=Yp.charAt(++oD)])!=null?C3=Yp.charAt(++oD):u3=C3==="e"?" ":"0";if(LV=te[C3])C3=LV(cw,u3);i1.push(C3);u3=oD+1}i1.push(Yp.slice(u3,oD));return i1.join("")}}
function S(Yp,te){return function(cw){var i1=Qm(1900);if(F(i1,Yp,cw,0)!=cw.length)return null;if("Q"in i1)return new Date(i1.Q);"p"in i1&&(i1.H=i1.H%12+i1.p*12);if("V"in i1){if(i1.V<1||i1.V>53)return null;"w"in i1||(i1.w=1);if("Z"in i1){cw=sDq(Qm(i1.y));var oD=cw.getUTCDay();cw=oD>4||oD===0?OHm.ceil(cw):OHm(cw);cw=Xi8.offset(cw,(i1.V-1)*7);i1.y=cw.getUTCFullYear();i1.m=cw.getUTCMonth();i1.d=cw.getUTCDate()+(i1.w+6)%7}else cw=te(Qm(i1.y)),oD=cw.getDay(),cw=oD>4||oD===0?ANR.ceil(cw):ANR(cw),cw=ZHz.offset(cw,
(i1.V-1)*7),i1.y=cw.getFullYear(),i1.m=cw.getMonth(),i1.d=cw.getDate()+(i1.w+6)%7}else if("W"in i1||"U"in i1)"w"in i1||(i1.w="u"in i1?i1.u%7:"W"in i1?1:0),oD="Z"in i1?sDq(Qm(i1.y)).getUTCDay():te(Qm(i1.y)).getDay(),i1.m=0,i1.d="W"in i1?(i1.w+6)%7+i1.W*7-(oD+5)%7:i1.w+i1.U*7-(oD+6)%7;return"Z"in i1?(i1.H+=i1.Z/100|0,i1.M+=i1.Z%100,sDq(i1)):te(i1)}}
function F(Yp,te,cw,i1){for(var oD=0,u3=te.length,R6=cw.length,C3;oD<u3;){if(i1>=R6)return-1;C3=te.charCodeAt(oD++);if(C3===37){if(C3=te.charAt(oD++),C3=Kt[C3 in YI_?te.charAt(oD++):C3],!C3||(i1=C3(Yp,cw,i1))<0)return-1}else if(C3!=cw.charCodeAt(i1++))return-1}return i1}
var VJ=X.dateTime,KG=X.date,TD=X.time,zD=X.periods,gT=X.days,lQ=X.shortDays,J8=X.months,pQ=X.shortMonths,o2=eq(zD),aF=jq(zD),kl=eq(gT),v0=jq(gT),ra=eq(lQ),AU=jq(lQ),gm=eq(J8),rM=jq(J8),Pg=eq(pQ),J$=jq(pQ),nw={a:function(Yp){return lQ[Yp.getDay()]},
A:function(Yp){return gT[Yp.getDay()]},
b:function(Yp){return pQ[Yp.getMonth()]},
B:function(Yp){return J8[Yp.getMonth()]},
c:null,d:qIa,e:qIa,f:YS4,H:XeR,I:Z05,j:qS5,L:UPB,m:UCr,M:SSs,p:function(Yp){return zD[+(Yp.getHours()>=12)]},
Q:SIB,s:hBj,S:hvR,u:dCF,U:$Cf,V:G8s,w:Edf,W:vd4,x:null,X:null,y:O0f,Y:AKR,Z:Rvu,"%":dPC},Qb={a:function(Yp){return lQ[Yp.getUTCDay()]},
A:function(Yp){return gT[Yp.getUTCDay()]},
b:function(Yp){return pQ[Yp.getUTCMonth()]},
B:function(Yp){return J8[Yp.getUTCMonth()]},
c:null,d:$PL,e:$PL,f:odu,H:Q5R,I:evr,j:j5R,L:GWz,m:Fss,M:lbS,p:function(Yp){return zD[+(Yp.getUTCHours()>=12)]},
Q:SIB,s:hBj,S:yKF,u:B94,U:gdr,V:JFu,w:cFu,W:mks,x:null,X:null,y:bdR,Y:xkr,Z:Vdr,"%":dPC},Kt={a:function(Yp,te,cw){return(te=ra.exec(te.slice(cw)))?(Yp.w=AU[te[0].toLowerCase()],cw+te[0].length):-1},
A:function(Yp,te,cw){return(te=kl.exec(te.slice(cw)))?(Yp.w=v0[te[0].toLowerCase()],cw+te[0].length):-1},
b:function(Yp,te,cw){return(te=Pg.exec(te.slice(cw)))?(Yp.m=J$[te[0].toLowerCase()],cw+te[0].length):-1},
B:function(Yp,te,cw){return(te=gm.exec(te.slice(cw)))?(Yp.m=rM[te[0].toLowerCase()],cw+te[0].length):-1},
c:function(Yp,te,cw){return F(Yp,VJ,te,cw)},
d:E68,e:E68,f:P_f,H:v6j,I:v6j,j:MdR,L:pQR,m:NCr,M:tdR,p:function(Yp,te,cw){return(te=o2.exec(te.slice(cw)))?(Yp.p=aF[te[0].toLowerCase()],cw+te[0].length):-1},
Q:IKp,s:KEs,S:C_e,u:aKh,U:kyh,V:Hd1,w:idr,W:n8p,x:function(Yp,te,cw){return F(Yp,KG,te,cw)},
X:function(Yp,te,cw){return F(Yp,TD,te,cw)},
y:TCR,Y:wQR,Z:rFr,"%":sS5};nw.x=u(KG,nw);nw.X=u(TD,nw);nw.c=u(VJ,nw);Qb.x=u(KG,Qb);Qb.X=u(TD,Qb);Qb.c=u(VJ,Qb);return{format:function(Yp){var te=u(Yp,nw);te.toString=function(){return Yp};
return te},
parse:function(Yp){var te=S(Yp,uyR);te.toString=function(){return Yp};
return te},
utcFormat:function(Yp){var te=u(Yp,Qb);te.toString=function(){return Yp};
return te},
utcParse:function(Yp){var te=S(Yp,sDq);te.toString=function(){return Yp};
return te}}}
function ss(X,u,S){var F=X<0?"-":"";X=(F?-X:X)+"";var VJ=X.length;return F+(VJ<S?Array(S-VJ+1).join(u)+X:X)}
function LER(X){return X.replace(Dku,"\\$&")}
function eq(X){return new RegExp("^(?:"+X.map(LER).join("|")+")","i")}
function jq(X){for(var u={},S=-1,F=X.length;++S<F;)u[X[S].toLowerCase()]=S;return u}
function idr(X,u,S){return(u=s2.exec(u.slice(S,S+1)))?(X.w=+u[0],S+u[0].length):-1}
function aKh(X,u,S){return(u=s2.exec(u.slice(S,S+1)))?(X.u=+u[0],S+u[0].length):-1}
function kyh(X,u,S){return(u=s2.exec(u.slice(S,S+2)))?(X.U=+u[0],S+u[0].length):-1}
function Hd1(X,u,S){return(u=s2.exec(u.slice(S,S+2)))?(X.V=+u[0],S+u[0].length):-1}
function n8p(X,u,S){return(u=s2.exec(u.slice(S,S+2)))?(X.W=+u[0],S+u[0].length):-1}
function wQR(X,u,S){return(u=s2.exec(u.slice(S,S+4)))?(X.y=+u[0],S+u[0].length):-1}
function TCR(X,u,S){return(u=s2.exec(u.slice(S,S+2)))?(X.y=+u[0]+(+u[0]>68?1900:2E3),S+u[0].length):-1}
function rFr(X,u,S){return(u=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(u.slice(S,S+6)))?(X.Z=u[1]?0:-(u[2]+(u[3]||"00")),S+u[0].length):-1}
function NCr(X,u,S){return(u=s2.exec(u.slice(S,S+2)))?(X.m=u[0]-1,S+u[0].length):-1}
function E68(X,u,S){return(u=s2.exec(u.slice(S,S+2)))?(X.d=+u[0],S+u[0].length):-1}
function MdR(X,u,S){return(u=s2.exec(u.slice(S,S+3)))?(X.m=0,X.d=+u[0],S+u[0].length):-1}
function v6j(X,u,S){return(u=s2.exec(u.slice(S,S+2)))?(X.H=+u[0],S+u[0].length):-1}
function tdR(X,u,S){return(u=s2.exec(u.slice(S,S+2)))?(X.M=+u[0],S+u[0].length):-1}
function C_e(X,u,S){return(u=s2.exec(u.slice(S,S+2)))?(X.S=+u[0],S+u[0].length):-1}
function pQR(X,u,S){return(u=s2.exec(u.slice(S,S+3)))?(X.L=+u[0],S+u[0].length):-1}
function P_f(X,u,S){return(u=s2.exec(u.slice(S,S+6)))?(X.L=Math.floor(u[0]/1E3),S+u[0].length):-1}
function sS5(X,u,S){return(X=WER.exec(u.slice(S,S+1)))?S+X[0].length:-1}
function IKp(X,u,S){return(u=s2.exec(u.slice(S)))?(X.Q=+u[0],S+u[0].length):-1}
function KEs(X,u,S){return(u=s2.exec(u.slice(S)))?(X.Q=+u[0]*1E3,S+u[0].length):-1}
function qIa(X,u){return ss(X.getDate(),u,2)}
function XeR(X,u){return ss(X.getHours(),u,2)}
function Z05(X,u){return ss(X.getHours()%12||12,u,2)}
function qS5(X,u){return ss(1+ZHz.count(PK(X),X),u,3)}
function UPB(X,u){return ss(X.getMilliseconds(),u,3)}
function YS4(X,u){return UPB(X,u)+"000"}
function UCr(X,u){return ss(X.getMonth()+1,u,2)}
function SSs(X,u){return ss(X.getMinutes(),u,2)}
function hvR(X,u){return ss(X.getSeconds(),u,2)}
function dCF(X){X=X.getDay();return X===0?7:X}
function $Cf(X,u){return ss(z45.count(PK(X),X),u,2)}
function G8s(X,u){var S=X.getDay();X=S>=4||S===0?RBD(X):RBD.ceil(X);return ss(RBD.count(PK(X),X)+(PK(X).getDay()===4),u,2)}
function Edf(X){return X.getDay()}
function vd4(X,u){return ss(ANR.count(PK(X),X),u,2)}
function O0f(X,u){return ss(X.getFullYear()%100,u,2)}
function AKR(X,u){return ss(X.getFullYear()%1E4,u,4)}
function Rvu(X){X=X.getTimezoneOffset();return(X>0?"-":(X*=-1,"+"))+ss(X/60|0,"0",2)+ss(X%60,"0",2)}
function $PL(X,u){return ss(X.getUTCDate(),u,2)}
function Q5R(X,u){return ss(X.getUTCHours(),u,2)}
function evr(X,u){return ss(X.getUTCHours()%12||12,u,2)}
function j5R(X,u){return ss(1+Xi8.count(Mc(X),X),u,3)}
function GWz(X,u){return ss(X.getUTCMilliseconds(),u,3)}
function odu(X,u){return GWz(X,u)+"000"}
function Fss(X,u){return ss(X.getUTCMonth()+1,u,2)}
function lbS(X,u){return ss(X.getUTCMinutes(),u,2)}
function yKF(X,u){return ss(X.getUTCSeconds(),u,2)}
function B94(X){X=X.getUTCDay();return X===0?7:X}
function gdr(X,u){return ss(uY1.count(Mc(X),X),u,2)}
function JFu(X,u){var S=X.getUTCDay();X=S>=4||S===0?o6m(X):o6m.ceil(X);return ss(o6m.count(Mc(X),X)+(Mc(X).getUTCDay()===4),u,2)}
function cFu(X){return X.getUTCDay()}
function mks(X,u){return ss(OHm.count(Mc(X),X),u,2)}
function bdR(X,u){return ss(X.getUTCFullYear()%100,u,2)}
function xkr(X,u){return ss(X.getUTCFullYear()%1E4,u,4)}
function Vdr(){return"+0000"}
function dPC(){return"%"}
function SIB(X){return+X}
function hBj(X){return Math.floor(+X/1E3)}
function Vu(X){for(var u=X.length/6|0,S=Array(u),F=0;F<u;)S[F]="#"+X.slice(F*6,++F*6);return S}
function QD(X){return fKR(X[X.length-1])}
function LYt(X){var u=X.length;return function(S){return X[Math.max(0,Math.min(u-1,Math.floor(S*u)))]}}
function OHa(X){this._context=X}
function AN2(X){this._curve=X}
function RBz(X,u,S){var F=X._x1-X._x0;u-=X._x1;var VJ=(X._y1-X._y0)/(F||u<0&&-0);X=(S-X._y1)/(u||F<0&&-0);return((VJ<0?-1:1)+(X<0?-1:1))*Math.min(Math.abs(VJ),Math.abs(X),.5*Math.abs((VJ*u+X*F)/(F+u)))||0}
function o6a(X,u){var S=X._x1-X._x0;return S?(3*(X._y1-X._y0)/S-u)/2:u}
function Q9D(X,u,S){var F=X._x0,VJ=X._x1,KG=X._y1,TD=(VJ-F)/3;X._context.bezierCurveTo(F+TD,X._y0+TD*u,VJ-TD,KG-TD*S,VJ,KG)}
function eBG(X){this._context=X}
function Q9z(X){this._context=X}
function FN(X,u,S){this.k=X;this.x=u;this.y=S}
(function(X){X.length===1&&(X=c(X));return{left:function(u,S,F,VJ){F==null&&(F=0);VJ==null&&(VJ=u.length);for(;F<VJ;){var KG=F+VJ>>>1;X(u[KG],S)<0?F=KG+1:VJ=KG}return F},
right:function(u,S,F,VJ){F==null&&(F=0);VJ==null&&(VJ=u.length);for(;F<VJ;){var KG=F+VJ>>>1;X(u[KG],S)>0?VJ=KG:F=KG+1}return F}}})(J);
var rmo={value:function(){}};
b.prototype=m.prototype={constructor:b,on:function(X,u){var S=this._,F=x(X+"",S),VJ,KG=-1,TD=F.length;if(arguments.length<2)for(;++KG<TD;){var zD;if(zD=VJ=(X=F[KG]).type){a:{zD=S[VJ];for(var gT=0,lQ=zD.length;gT<lQ;++gT)if((VJ=zD[gT]).name===X.name){VJ=VJ.value;break a}VJ=void 0}zD=VJ}if(zD)return VJ}else{if(u!=null&&typeof u!=="function")throw Error("xe`"+u);for(;++KG<TD;)if(VJ=(X=F[KG]).type)S[VJ]=P(S[VJ],X.name,u);else if(u==null)for(VJ in S)S[VJ]=P(S[VJ],X.name,null);return this}},
copy:function(){var X={},u=this._,S;for(S in u)X[S]=u[S].slice();return new b(X)},
call:function(X,u){if((VJ=arguments.length-2)>0)for(var S=Array(VJ),F=0,VJ,KG;F<VJ;++F)S[F]=arguments[F+2];if(!this._.hasOwnProperty(X))throw Error("re`"+X);KG=this._[X];F=0;for(VJ=KG.length;F<VJ;++F)KG[F].value.apply(u,S)},
apply:function(X,u,S){if(!this._.hasOwnProperty(X))throw Error("re`"+X);X=this._[X];for(var F=0,VJ=X.length;F<VJ;++F)X[F].value.apply(u,S)}};
var GU={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/"},eBQ=function(X){return function(){return this.matches(X)}};
if(typeof document!=="undefined"){var lz=document.documentElement;if(!lz.matches){var YKR=lz.webkitMatchesSelector||lz.msMatchesSelector||lz.mozMatchesSelector||lz.oMatchesSelector;eBQ=function(X){return function(){return YKR.call(this,X)}}}}var j92=eBQ;
r.prototype={constructor:r,appendChild:function(X){return this._parent.insertBefore(X,this._next)},
insertBefore:function(X,u){return this._parent.insertBefore(X,u)},
querySelector:function(X){return this._parent.querySelector(X)},
querySelectorAll:function(X){return this._parent.querySelectorAll(X)}};
var yW_={};typeof document!=="undefined"&&("onmouseenter"in document.documentElement||(yW_={mouseenter:"mouseover",mouseleave:"mouseout"}));var sxR=[null];vB.prototype=T4.prototype={constructor:vB,select:function(X){typeof X!=="function"&&(X=H(X));for(var u=this._groups,S=u.length,F=Array(S),VJ=0;VJ<S;++VJ)for(var KG=u[VJ],TD=KG.length,zD=F[VJ]=Array(TD),gT,lQ,J8=0;J8<TD;++J8)(gT=KG[J8])&&(lQ=X.call(gT,gT.__data__,J8,KG))&&("__data__"in gT&&(lQ.__data__=gT.__data__),zD[J8]=lQ);return new vB(F,this._parents)},
filter:function(X){typeof X!=="function"&&(X=j92(X));for(var u=this._groups,S=u.length,F=Array(S),VJ=0;VJ<S;++VJ)for(var KG=u[VJ],TD=KG.length,zD=F[VJ]=[],gT,lQ=0;lQ<TD;++lQ)(gT=KG[lQ])&&X.call(gT,gT.__data__,lQ,KG)&&zD.push(gT);return new vB(F,this._parents)},
data:function(X,u){if(!X)return aF=Array(this.size()),lQ=-1,this.each(function(gm){aF[++lQ]=gm}),aF;
var S=u?Z:Y,F=this._parents,VJ=this._groups;typeof X!=="function"&&(X=W(X));for(var KG=VJ.length,TD=Array(KG),zD=Array(KG),gT=Array(KG),lQ=0;lQ<KG;++lQ){var J8=F[lQ],pQ=VJ[lQ],o2=pQ.length,aF=X.call(J8,J8&&J8.__data__,lQ,F),kl=aF.length,v0=zD[lQ]=Array(kl),ra=TD[lQ]=Array(kl);o2=gT[lQ]=Array(o2);S(J8,pQ,v0,ra,o2,aF,u);pQ=J8=0;for(var AU;J8<kl;++J8)if(o2=v0[J8]){for(J8>=pQ&&(pQ=J8+1);!(AU=ra[pQ])&&++pQ<kl;);o2._next=AU||null}}TD=new vB(TD,F);TD._enter=zD;TD._exit=gT;return TD},
exit:function(){return new vB(this._exit||this._groups.map(T),this._parents)},
merge:function(X){var u=this._groups;X=X._groups;for(var S=u.length,F=Math.min(S,X.length),VJ=Array(S),KG=0;KG<F;++KG)for(var TD=u[KG],zD=X[KG],gT=TD.length,lQ=VJ[KG]=Array(gT),J8,pQ=0;pQ<gT;++pQ)if(J8=TD[pQ]||zD[pQ])lQ[pQ]=J8;for(;KG<S;++KG)VJ[KG]=u[KG];return new vB(VJ,this._parents)},
order:function(){for(var X=this._groups,u=-1,S=X.length;++u<S;)for(var F=X[u],VJ=F.length-1,KG=F[VJ],TD;--VJ>=0;)if(TD=F[VJ])KG&&KG!==TD.nextSibling&&KG.parentNode.insertBefore(TD,KG),KG=TD;return this},
sort:function(X){function u(pQ,o2){return pQ&&o2?X(pQ.__data__,o2.__data__):!pQ-!o2}
X||(X=d);for(var S=this._groups,F=S.length,VJ=Array(F),KG=0;KG<F;++KG){for(var TD=S[KG],zD=TD.length,gT=VJ[KG]=Array(zD),lQ,J8=0;J8<zD;++J8)if(lQ=TD[J8])gT[J8]=lQ;gT.sort(u)}return(new vB(VJ,this._parents)).order()},
call:function(){var X=arguments[0];arguments[0]=this;X.apply(null,arguments);return this},
nodes:function(){var X=Array(this.size()),u=-1;this.each(function(){X[++u]=this});
return X},
node:function(){for(var X=this._groups,u=0,S=X.length;u<S;++u)for(var F=X[u],VJ=0,KG=F.length;VJ<KG;++VJ){var TD=F[VJ];if(TD)return TD}return null},
size:function(){var X=0;this.each(function(){++X});
return X},
empty:function(){return!this.node()},
each:function(X){for(var u=this._groups,S=0,F=u.length;S<F;++S)for(var VJ=u[S],KG=0,TD=VJ.length,zD;KG<TD;++KG)(zD=VJ[KG])&&X.call(zD,zD.__data__,KG,VJ);return this},
attr:function(X,u){var S=p(X);if(arguments.length<2){var F=this.node();return S.local?F.getAttributeNS(S.space,S.local):F.getAttribute(S)}return this.each((u==null?S.local?e:G:typeof u==="function"?S.local?pG:y:S.local?l:A)(S,u))},
style:function(X,u,S){return arguments.length>1?this.each((u==null?kt:typeof u==="function"?fG:nG)(X,u,S==null?"":S)):Yt(this.node(),X)},
property:function(X,u){return arguments.length>1?this.each((u==null?Z3:typeof u==="function"?Em:oR)(X,u)):this.node()[X]},
text:function(X){return arguments.length?this.each(X==null?X$:(typeof X==="function"?S6:Hu)(X)):this.node().textContent},
html:function(X){return arguments.length?this.each(X==null?a2:(typeof X==="function"?cu:Nu)(X)):this.node().innerHTML},
append:function(X){var u=typeof X==="function"?X:a(X);return this.select(function(){return this.appendChild(u.apply(this,arguments))})},
insert:function(X,u){var S=typeof X==="function"?X:a(X),F=u==null?t8:typeof u==="function"?u:H(u);return this.select(function(){return this.insertBefore(S.apply(this,arguments),F.apply(this,arguments)||null)})},
remove:function(){return this.each(I_)},
clone:function(X){return this.select(X?Nf:fU)},
datum:function(X){return arguments.length?this.property("__data__",X):this.node().__data__},
on:function(X,u,S){var F=O5(X+""),VJ=F.length,KG;if(arguments.length<2){var TD=this.node().__on;if(TD)for(var zD=0,gT=TD.length,lQ;zD<gT;++zD){var J8=0;for(lQ=TD[zD];J8<VJ;++J8)if((KG=F[J8]).type===lQ.type&&KG.name===lQ.name)return lQ.value}}else{TD=u?j6:LQ;S==null&&(S=!1);for(J8=0;J8<VJ;++J8)this.each(TD(F[J8],u,S));return this}},
dispatch:function(X,u){return this.each((typeof u==="function"?VQ:QQ)(X,u))}};
var Lmo=0;Tz.prototype=function(){return new Tz}.prototype={constructor:Tz,
get:function(X){for(var u=this._;!(u in X);)if(!(X=X.parentNode))return;return X[u]},
set:function(X,u){return X[this._]=u},
remove:function(X){return this._ in X&&delete X[this._]},
toString:function(){return this._}};
var pJ=1/.7,D_5=/^#([0-9a-f]{3})$/,WmS=/^#([0-9a-f]{6})$/,zbR=RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),u1R=RegExp("^rgb\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),fvf=RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),YoF=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*\\)$"),
XH5=RegExp("^hsl\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),ZZR=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*\\)$"),BDQ={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};
uC(M2,MR,{displayable:function(){return this.rgb().displayable()},
hex:function(){return this.rgb().hex()},
toString:function(){return this.rgb()+""}});
uC(Bu,wR,Kr(M2,{brighter:function(X){X=X==null?pJ:Math.pow(pJ,X);return new Bu(this.r*X,this.g*X,this.b*X,this.opacity)},
darker:function(X){X=X==null?.7:Math.pow(.7,X);return new Bu(this.r*X,this.g*X,this.b*X,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"#"+M0(this.r)+M0(this.g)+M0(this.b)},
toString:function(){var X=this.opacity;X=isNaN(X)?1:Math.max(0,Math.min(1,X));return(X===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))+(X===1?")":", "+X+")")}}));
uC(V4,IP,Kr(M2,{brighter:function(X){X=X==null?pJ:Math.pow(pJ,X);return new V4(this.h,this.s,this.l*X,this.opacity)},
darker:function(X){X=X==null?.7:Math.pow(.7,X);return new V4(this.h,this.s,this.l*X,this.opacity)},
rgb:function(){var X=this.h%360+(this.h<0)*360,u=this.l,S=u+(u<.5?u:1-u)*(isNaN(X)||isNaN(this.s)?0:this.s);u=2*u-S;return new Bu(C6(X>=240?X-240:X+120,u,S),C6(X,u,S),C6(X<120?X+240:X-120,u,S),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 g_$=Math.PI/180,mPZ=180/Math.PI,cNz=4/29,xS=6/29,JNC=3*xS*xS,qop=xS*xS*xS;uC(sm,function(X,u,S,F){return arguments.length===1?qr(X):new sm(X,u,S,F==null?1:F)},Kr(M2,{brighter:function(X){return new sm(this.l+18*(X==null?1:X),this.a,this.b,this.opacity)},
darker:function(X){return new sm(this.l-18*(X==null?1:X),this.a,this.b,this.opacity)},
rgb:function(){var X=(this.l+16)/116,u=isNaN(this.a)?X:X+this.a/500,S=isNaN(this.b)?X:X-this.b/200;u=.96422*Om(u);X=1*Om(X);S=.82521*Om(S);return new Bu(KQ(3.1338561*u-1.6168667*X-.4906146*S),KQ(-.9787684*u+1.9161415*X+.033454*S),KQ(.0719453*u-.2289914*X+1.4052427*S),this.opacity)}}));
uC(iC,Cr,Kr(M2,{brighter:function(X){return new iC(this.h,this.c,this.l+18*(X==null?1:X),this.opacity)},
darker:function(X){return new iC(this.h,this.c,this.l-18*(X==null?1:X),this.opacity)},
rgb:function(){return qr(this).rgb()}}));
var bH8=1.78277*-.29227-.1347134789;uC(rR,HB,Kr(M2,{brighter:function(X){X=X==null?pJ:Math.pow(pJ,X);return new rR(this.h,this.s,this.l*X,this.opacity)},
darker:function(X){X=X==null?.7:Math.pow(.7,X);return new rR(this.h,this.s,this.l*X,this.opacity)},
rgb:function(){var X=isNaN(this.h)?0:(this.h+120)*g_$,u=+this.l,S=isNaN(this.s)?0:this.s*u*(1-u),F=Math.cos(X);X=Math.sin(X);return new Bu(255*(u+S*(-.14861*F+1.78277*X)),255*(u+S*(-.29227*F+-.90649*X)),255*(u+1.97294*F*S),this.opacity)}}));
var piB=function S(u){function F(KG,TD){var zD=VJ((KG=wR(KG)).r,(TD=wR(TD)).r),gT=VJ(KG.g,TD.g),lQ=VJ(KG.b,TD.b),J8=tU(KG.opacity,TD.opacity);return function(pQ){KG.r=zD(pQ);KG.g=gT(pQ);KG.b=lQ(pQ);KG.opacity=J8(pQ);return KG+""}}
var VJ=r8(u);F.gamma=S;return F}(1),fKR=Ei(function(u){var S=u.length-1;
return function(F){var VJ=F<=0?F=0:F>=1?(F=1,S-1):Math.floor(F*S),KG=u[VJ],TD=u[VJ+1];return KU((F-VJ/S)*S,VJ>0?u[VJ-1]:2*KG-TD,KG,TD,VJ<S-1?u[VJ+2]:2*TD-KG)}});
Ei(function(u){var S=u.length;return function(F){var VJ=Math.floor(((F%=1)<0?++F:F)*S);return KU((F-VJ/S)*S,u[(VJ+S-1)%S],u[VJ%S],u[(VJ+1)%S],u[(VJ+2)%S])}});
var u2r=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,fQe=new RegExp(u2r.source,"g"),xPZ=180/Math.PI,j9R={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},ym,FQD,FQz,DsJ,XQ1=al(function(u){if(u==="none")return j9R;ym||(ym=document.createElement("DIV"),FQD=document.documentElement,FQz=document.defaultView);ym.style.transform=u;u=FQz.getComputedStyle(FQD.appendChild(ym),null).getPropertyValue("transform");FQD.removeChild(ym);u=u.slice(7,-1).split(",");return uL(+u[0],+u[1],+u[2],+u[3],
+u[4],+u[5])},"px, ","px)","deg)"),ZdR=al(function(u){if(u==null)return j9R;
DsJ||(DsJ=document.createElementNS("http://www.w3.org/2000/svg","g"));DsJ.setAttribute("transform",u);if(!(u=DsJ.transform.baseVal.consolidate()))return j9R;u=u.matrix;return uL(u.a,u.b,u.c,u.d,u.e,u.f)},", ",")",")");
X7(S9);X7(tU);kd(S9);kd(tU);He(S9);var lQe=He(tU),VX=0,vf=0,Ao=0,kLR,Og,a7G=0,dS=0,CiD=0,Eg=typeof performance==="object"&&performance.now?performance:Date,VvQ=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(u){setTimeout(u,17)};
iE.prototype=Er.prototype={constructor:iE,restart:function(u,S,F){if(typeof u!=="function")throw new TypeError("ye");F=(F==null?HI():+F)+(S==null?0:+S);this._next||Og===this||(Og?Og._next=this:kLR=this,Og=this);this._call=u;this._time=F;Or()},
stop:function(){this._call&&(this._call=null,this._time=Infinity,Or())}};
var SoS=m("start","end","interrupt"),hbR=[],qK5=T4.prototype.constructor,lQ$=0,Nc=T4.prototype;po.prototype=function(u){return T4().transition(u)}.prototype={constructor:po,
select:function(u){var S=this._name,F=this._id;typeof u!=="function"&&(u=H(u));for(var VJ=this._groups,KG=VJ.length,TD=Array(KG),zD=0;zD<KG;++zD)for(var gT=VJ[zD],lQ=gT.length,J8=TD[zD]=Array(lQ),pQ,o2,aF=0;aF<lQ;++aF)(pQ=gT[aF])&&(o2=u.call(pQ,pQ.__data__,aF,gT))&&("__data__"in pQ&&(o2.__data__=pQ.__data__),J8[aF]=o2,YI3(J8[aF],S,F,aF,J8,mR(pQ,F)));return new po(TD,this._parents,S,F)},
filter:function(u){typeof u!=="function"&&(u=j92(u));for(var S=this._groups,F=S.length,VJ=Array(F),KG=0;KG<F;++KG)for(var TD=S[KG],zD=TD.length,gT=VJ[KG]=[],lQ,J8=0;J8<zD;++J8)(lQ=TD[J8])&&u.call(lQ,lQ.__data__,J8,TD)&&gT.push(lQ);return new po(VJ,this._parents,this._name,this._id)},
merge:function(u){if(u._id!==this._id)throw Error();var S=this._groups;u=u._groups;for(var F=S.length,VJ=Math.min(F,u.length),KG=Array(F),TD=0;TD<VJ;++TD)for(var zD=S[TD],gT=u[TD],lQ=zD.length,J8=KG[TD]=Array(lQ),pQ,o2=0;o2<lQ;++o2)if(pQ=zD[o2]||gT[o2])J8[o2]=pQ;for(;TD<F;++TD)KG[TD]=S[TD];return new po(KG,this._parents,this._name,this._id)},
selection:function(){return new qK5(this._groups,this._parents)},
transition:function(){for(var u=this._name,S=this._id,F=++lQ$,VJ=this._groups,KG=VJ.length,TD=0;TD<KG;++TD)for(var zD=VJ[TD],gT=zD.length,lQ,J8=0;J8<gT;++J8)if(lQ=zD[J8]){var pQ=mR(lQ,S);YI3(lQ,u,F,J8,zD,{time:pQ.time+pQ.delay+pQ.duration,delay:0,duration:pQ.duration,ease:pQ.ease})}return new po(VJ,this._parents,u,F)},
call:Nc.call,nodes:Nc.nodes,node:Nc.node,size:Nc.size,empty:Nc.empty,each:Nc.each,on:function(u,S){var F=this._id;return arguments.length<2?mR(this.node(),F).on.on(u):this.each(gge(F,u,S))},
attr:function(u,S){var F=p(u),VJ=F==="transform"?ZdR:Mvj;return this.attrTween(u,typeof S==="function"?(F.local?Rb1:Amr)(F,VJ,ZHD(this,"attr."+u,S)):S==null?(F.local?Eg4:GtR)(F):(F.local?OZR:vg5)(F,VJ,S+""))},
attrTween:function(u,S){var F="attr."+u;if(arguments.length<2)return(F=this.tween(F))&&F._value;if(S==null)return this.tween(F,null);if(typeof S!=="function")throw Error();var VJ=p(u);return this.tween(F,(VJ.local?ogp:Qxo)(VJ,S))},
style:function(u,S,F){var VJ=u==="transform"?XQ1:Mvj;return S==null?this.styleTween(u,cKo(u,VJ)).on("end.style."+u,mCR(u)):this.styleTween(u,typeof S==="function"?xC1(u,VJ,ZHD(this,"style."+u,S)):b01(u,VJ,S+""),F)},
styleTween:function(u,S,F){var VJ="style."+u;if(arguments.length<2)return(VJ=this.tween(VJ))&&VJ._value;if(S==null)return this.tween(VJ,null);if(typeof S!=="function")throw Error();return this.tween(VJ,VnR(u,S,F==null?"":F))},
text:function(u){return this.tween("text",typeof u==="function"?Mns(ZHD(this,"text",u)):P0r(u==null?"":u+""))},
remove:function(){return this.on("end.remove",JKR(this._id))},
tween:function(u,S){var F=this._id;if(arguments.length<2){F=mR(this.node(),F).tween;for(var VJ=0,KG=F.length,TD;VJ<KG;++VJ)if((TD=F[VJ]).name===u)return TD.value;return null}return this.each((S==null?d_o:$_o)(F,u,S))},
delay:function(u){var S=this._id;return arguments.length?this.each((typeof u==="function"?ebR:jxS)(S,u)):mR(this.node(),S).delay},
duration:function(u){var S=this._id;return arguments.length?this.each((typeof u==="function"?FmS:lv5)(S,u)):mR(this.node(),S).duration},
ease:function(u){var S=this._id;return arguments.length?this.each(ymR(S,u)):mR(this.node(),S).ease}};
var yN2={time:null,delay:0,duration:250,ease:function(u){return((u*=2)<=1?u*u*u:(u-=2)*u*u+2)/2}};
T4.prototype.transition=function(u){var S;if(u instanceof po){var F=u._id;u=u._name}else F=++lQ$,(S=yN2).time=HI(),u=u==null?null:u+"";for(var VJ=this._groups,KG=VJ.length,TD=0;TD<KG;++TD)for(var zD=VJ[TD],gT=zD.length,lQ,J8=0;J8<gT;++J8)if(lQ=zD[J8]){var pQ=lQ,o2=u,aF=F,kl=J8,v0=zD,ra;if(!(ra=S))a:{ra=void 0;for(var AU=F;!(ra=lQ.__transition)||!(ra=ra[AU]);)if(!(lQ=lQ.parentNode)){ra=(yN2.time=HI(),yN2);break a}}YI3(pQ,o2,aF,kl,v0,ra)}return new po(VJ,this._parents,u,F)};
["e","w"].map(qIm);["n","s"].map(qIm);"n e s w nw ne se sw".split(" ").map(qIm);UPr.prototype=function(){return new UPr}.prototype={constructor:UPr,
moveTo:function(u,S){this._+="M"+(this._x0=this._x1=+u)+","+(this._y0=this._y1=+S)},
closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},
lineTo:function(u,S){this._+="L"+(this._x1=+u)+","+(this._y1=+S)},
bezierCurveTo:function(u,S,F,VJ,KG,TD){this._+="C"+ +u+","+ +S+","+ +F+","+ +VJ+","+(this._x1=+KG)+","+(this._y1=+TD)},
rect:function(u,S,F,VJ){this._+="M"+(this._x0=this._x1=+u)+","+(this._y0=this._y1=+S)+"h"+ +F+"v"+ +VJ+"h"+-F+"Z"},
toString:function(){return this._}};
H2T.prototype=Ny_.prototype={constructor:H2T,has:function(u){return" "+u in this},
get:function(u){return this[" "+u]},
set:function(u,S){this[" "+u]=S;return this},
remove:function(u){u=" "+u;return u in this&&delete this[u]},
clear:function(){for(var u in this)u[0]===" "&&delete this[u]},
keys:function(){var u=[],S;for(S in this)S[0]===" "&&u.push(S.slice(1));return u},
values:function(){var u=[],S;for(S in this)S[0]===" "&&u.push(this[S]);return u},
entries:function(){var u=[],S;for(S in this)S[0]===" "&&u.push({key:S.slice(1),value:this[S]});return u},
size:function(){var u=0,S;for(S in this)S[0]===" "&&++u;return u},
empty:function(){for(var u in this)if(u[0]===" ")return!1;return!0},
each:function(u){for(var S in this)S[0]===" "&&u(this[S],S.slice(1),this)}};
var vU=Ny_.prototype;i2e.prototype=function(u,S){var F=new i2e;if(u instanceof i2e)u.each(function(TD){F.add(TD)});
else if(u){var VJ=-1,KG=u.length;if(S==null)for(;++VJ<KG;)F.add(u[VJ]);else for(;++VJ<KG;)F.add(S(u[VJ],VJ,u))}return F}.prototype={constructor:i2e,
has:vU.has,add:function(u){this[" "+u]=u;return this},
remove:vU.remove,clear:vU.clear,values:vU.keys,size:vU.size,empty:vU.empty,each:vU.each};var KQZ={},SIr={},UkR=IQ_(",").parse,SKF=IQ_("\t").parse;Ce6(UkR);Ce6(SKF);var c9=function(u,S,F){S=new hBo(S==null?Ibr:S,F==null?Ks4:F,NaN,NaN,NaN,NaN);return u==null?S:S.addAll(u)}.prototype=hBo.prototype;
c9.copy=function(){var u=new hBo(this._x,this._y,this._x0,this._y0,this._x1,this._y1),S=this._root,F,VJ;if(!S)return u;if(!S.length)return u._root=kW_(S),u;for(F=[{source:S,target:u._root=Array(4)}];S=F.pop();)for(var KG=0;KG<4;++KG)if(VJ=S.source[KG])VJ.length?F.push({source:VJ,target:S.target[KG]=Array(4)}):S.target[KG]=kW_(VJ);return u};
c9.add=function(u){var S=+this._x.call(null,u),F=+this._y.call(null,u);return aQj(this.cover(S,F),S,F,u)};
c9.addAll=function(u){var S,F,VJ=u.length,KG,TD,zD=Array(VJ),gT=Array(VJ),lQ=Infinity,J8=Infinity,pQ=-Infinity,o2=-Infinity;for(F=0;F<VJ;++F)isNaN(KG=+this._x.call(null,S=u[F]))||isNaN(TD=+this._y.call(null,S))||(zD[F]=KG,gT[F]=TD,KG<lQ&&(lQ=KG),KG>pQ&&(pQ=KG),TD<J8&&(J8=TD),TD>o2&&(o2=TD));pQ<lQ&&(lQ=this._x0,pQ=this._x1);o2<J8&&(J8=this._y0,o2=this._y1);this.cover(lQ,J8).cover(pQ,o2);for(F=0;F<VJ;++F)aQj(this,zD[F],gT[F],u[F]);return this};
c9.cover=function(u,S){if(isNaN(u=+u)||isNaN(S=+S))return this;var F=this._x0,VJ=this._y0,KG=this._x1,TD=this._y1;if(isNaN(F))KG=(F=Math.floor(u))+1,TD=(VJ=Math.floor(S))+1;else if(F>u||u>KG||VJ>S||S>TD){var zD=KG-F,gT=this._root,lQ;switch(lQ=(S<(VJ+TD)/2)<<1|u<(F+KG)/2){case 0:do{var J8=Array(4);J8[lQ]=gT;gT=J8}while(zD*=2,KG=F+zD,TD=VJ+zD,u>KG||S>TD);break;case 1:do J8=Array(4),J8[lQ]=gT,gT=J8;while(zD*=2,F=KG-zD,TD=VJ+zD,F>u||S>TD);break;case 2:do J8=Array(4),J8[lQ]=gT,gT=J8;while(zD*=2,KG=F+zD,
VJ=TD-zD,u>KG||VJ>S);break;case 3:do J8=Array(4),J8[lQ]=gT,gT=J8;while(zD*=2,F=KG-zD,VJ=TD-zD,F>u||VJ>S)}this._root&&this._root.length&&(this._root=gT)}else return this;this._x0=F;this._y0=VJ;this._x1=KG;this._y1=TD;return this};
c9.data=function(){var u=[];this.visit(function(S){if(!S.length){do u.push(S.data);while(S=S.next)}});
return u};
c9.extent=function(u){return arguments.length?this.cover(+u[0][0],+u[0][1]).cover(+u[1][0],+u[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]};
c9.find=function(u,S,F){var VJ=this._x0,KG=this._y0,TD,zD,gT,lQ,J8=this._x1,pQ=this._y1,o2=[],aF=this._root,kl;aF&&o2.push(new JO(aF,VJ,KG,J8,pQ));F==null?F=Infinity:(VJ=u-F,KG=S-F,J8=u+F,pQ=S+F,F*=F);for(;kl=o2.pop();)if(!(!(aF=kl.node)||(TD=kl.x0)>J8||(zD=kl.y0)>pQ||(gT=kl.x1)<VJ||(lQ=kl.y1)<KG))if(aF.length){kl=(TD+gT)/2;var v0=(zD+lQ)/2;o2.push(new JO(aF[3],kl,v0,gT,lQ),new JO(aF[2],TD,v0,kl,lQ),new JO(aF[1],kl,zD,gT,v0),new JO(aF[0],TD,zD,kl,v0));if(aF=(S>=v0)<<1|u>=kl)kl=o2[o2.length-1],o2[o2.length-
1]=o2[o2.length-1-aF],o2[o2.length-1-aF]=kl}else if(kl=u-+this._x.call(null,aF.data),v0=S-+this._y.call(null,aF.data),kl=kl*kl+v0*v0,kl<F){var ra=Math.sqrt(F=kl);VJ=u-ra;KG=S-ra;J8=u+ra;pQ=S+ra;ra=aF.data}return ra};
c9.remove=function(u){if(isNaN(lQ=+this._x.call(null,u))||isNaN(J8=+this._y.call(null,u)))return this;var S,F=this._root,VJ,KG=this._x0,TD=this._y0,zD=this._x1,gT=this._y1,lQ,J8,pQ,o2,aF,kl,v0;if(!F)return this;if(F.length)for(;;){(aF=lQ>=(pQ=(KG+zD)/2))?KG=pQ:zD=pQ;(kl=J8>=(o2=(TD+gT)/2))?TD=o2:gT=o2;if(!(S=F,F=F[v0=kl<<1|aF]))return this;if(!F.length)break;if(S[v0+1&3]||S[v0+2&3]||S[v0+3&3]){var ra=S;var AU=v0}}for(;F.data!==u;)if(!(VJ=F,F=F.next))return this;(u=F.next)&&delete F.next;if(VJ)return u?
VJ.next=u:delete VJ.next,this;if(!S)return this._root=u,this;u?S[v0]=u:delete S[v0];(F=S[0]||S[1]||S[2]||S[3])&&F===(S[3]||S[2]||S[1]||S[0])&&!F.length&&(ra?ra[AU]=F:this._root=F);return this};
c9.removeAll=function(u){for(var S=0,F=u.length;S<F;++S)this.remove(u[S]);return this};
c9.root=function(){return this._root};
c9.size=function(){var u=0;this.visit(function(S){if(!S.length){do++u;while(S=S.next)}});
return u};
c9.visit=function(u){var S=[],F,VJ=this._root,KG,TD,zD,gT,lQ;for(VJ&&S.push(new JO(VJ,this._x0,this._y0,this._x1,this._y1));F=S.pop();)if(!u(VJ=F.node,TD=F.x0,zD=F.y0,gT=F.x1,lQ=F.y1)&&VJ.length){F=(TD+gT)/2;var J8=(zD+lQ)/2;(KG=VJ[3])&&S.push(new JO(KG,F,J8,gT,lQ));(KG=VJ[2])&&S.push(new JO(KG,TD,J8,F,lQ));(KG=VJ[1])&&S.push(new JO(KG,F,zD,gT,J8));(KG=VJ[0])&&S.push(new JO(KG,TD,zD,F,J8))}};
c9.visitAfter=function(u){var S=[],F=[],VJ;for(this._root&&S.push(new JO(this._root,this._x0,this._y0,this._x1,this._y1));VJ=S.pop();){var KG=VJ.node;if(KG.length){var TD,zD=VJ.x0,gT=VJ.y0,lQ=VJ.x1,J8=VJ.y1,pQ=(zD+lQ)/2,o2=(gT+J8)/2;(TD=KG[0])&&S.push(new JO(TD,zD,gT,pQ,o2));(TD=KG[1])&&S.push(new JO(TD,pQ,gT,lQ,o2));(TD=KG[2])&&S.push(new JO(TD,zD,o2,pQ,J8));(TD=KG[3])&&S.push(new JO(TD,pQ,o2,lQ,J8))}F.push(VJ)}for(;VJ=F.pop();)u(VJ.node,VJ.x0,VJ.y0,VJ.x1,VJ.y1);return this};
c9.x=function(u){return arguments.length?(this._x=u,this):this._x};
c9.y=function(u){return arguments.length?(this._y=u,this):this._y};
var H0f=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;dPQ.prototype=$PT.prototype;$PT.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 Tya,wiZ={"%":function(u,S){return(u*100).toFixed(S)},
b:function(u){return Math.round(u).toString(2)},
c:function(u){return u+""},
d:function(u){return Math.round(u).toString(10)},
e:function(u,S){return u.toExponential(S)},
f:function(u,S){return u.toFixed(S)},
g:function(u,S){return u.toPrecision(S)},
o:function(u){return Math.round(u).toString(8)},
p:function(u,S){return HHz(u*100,S)},
r:HHz,s:function(u,S){var F=nBR(u,S);if(!F)return u+"";var VJ=F[0];F=F[1];F=F-(Tya=Math.max(-8,Math.min(8,Math.floor(F/3)))*3)+1;var KG=VJ.length;return F===KG?VJ:F>KG?VJ+Array(F-KG+1).join("0"):F>0?VJ.slice(0,F)+"."+VJ.slice(F):"0."+Array(1-F).join("0")+nBR(u,Math.max(0,S+F-1))[0]},
X:function(u){return Math.round(u).toString(16).toUpperCase()},
x:function(u){return Math.round(u).toString(16)}},n6$="y z a f p n \u00b5 m  k M G T P E Z Y".split(" "),h4R;
(function(u){return h4R=i04(u)})({decimal:".",
thousands:",",grouping:[3],currency:["$",""]});d9.prototype={constructor:d9,reset:function(){this.s=this.t=0},
add:function(u){rNC(WYe,u,this.t);rNC(this,WYe.s,this.s);this.s?this.t+=WYe.t:this.s=WYe.t},
valueOf:function(){return this.s}};
var WYe=new d9,f4=Math.PI,EQ=f4/2,yN6=f4/4,dkr=f4*2,Byq=f4/180,N7=Math.abs,g62=Math.atan,u2B=Math.atan2,v8=Math.cos,fk=Math.sin,wFr=Math.sqrt;new d9;new d9;new d9;var JVm=new d9;(function(u,S,F,VJ){return function(KG){function TD(J$,nw){u(J$,nw)&&KG.point(J$,nw)}
function zD(J$,nw){aF.point(J$,nw)}
function gT(){Pg.point=zD;aF.lineStart()}
function lQ(){Pg.point=TD;aF.lineEnd()}
function J8(J$,nw){rM.push([J$,nw]);v0.point(J$,nw)}
function pQ(){v0.lineStart();rM=[]}
function o2(){J8(rM[0][0],rM[0][1]);v0.lineEnd();var J$=v0.clean(),nw=kl.result(),Qb=nw.length,Kt;rM.pop();AU.push(rM);rM=null;if(Qb)if(J$&1){if(Qb=nw[0],(nw=Qb.length-1)>0){ra||(KG.polygonStart(),ra=!0);KG.lineStart();for(J$=0;J$<nw;++J$)KG.point((Kt=Qb[J$])[0],Kt[1]);KG.lineEnd()}}else Qb>1&&J$&2&&nw.push(nw.pop().concat(nw.shift())),gm.push(nw.filter(rKR))}
var aF=S(KG),kl=T95(),v0=S(kl),ra=!1,AU,gm,rM,Pg={point:TD,lineStart:gT,lineEnd:lQ,polygonStart:function(){Pg.point=J8;Pg.lineStart=pQ;Pg.lineEnd=o2;gm=[];AU=[]},
polygonEnd:function(){Pg.point=TD;Pg.lineStart=gT;Pg.lineEnd=lQ;var J$=gm,nw=J$.length;var Qb=-1;for(var Kt=0,Yp,te;++Qb<nw;)Kt+=J$[Qb].length;for(Yp=Array(Kt);--nw>=0;)for(te=J$[nw],Qb=te.length;--Qb>=0;)Yp[--Kt]=te[Qb];gm=Yp;J$=AU;nw=VJ[0];Kt=VJ[1];var cw=fk(Kt);Qb=[fk(nw),-v8(nw),0];te=Yp=0;JVm.reset();cw===1?Kt=EQ+1E-6:cw===-1&&(Kt=-EQ-1E-6);cw=0;for(var i1=J$.length;cw<i1;++cw)if(u3=(oD=J$[cw]).length){var oD,u3,R6=oD[u3-1],C3=R6[0],LV=R6[1]/2+yN6,zGr=fk(LV),By8=v8(LV);for(LV=0;LV<u3;++LV,C3=
cVT,zGr=g66,By8=Bf,R6=uDQ){var uDQ=oD[LV],cVT=uDQ[0];Bf=uDQ[1]/2+yN6;var g66=fk(Bf),Bf=v8(Bf),t6=cVT-C3,mDe=t6>=0?1:-1,bVf=mDe*t6,f7Q=bVf>f4;zGr*=g66;JVm.add(u2B(zGr*mDe*fk(bVf),By8*Bf+zGr*v8(bVf)));Yp+=f7Q?t6+mDe*dkr:t6;f7Q^C3>=nw^cVT>=nw&&(R6=LQZ(s92(R6),s92(uDQ)),DP_(R6),C3=LQZ(Qb,R6),DP_(C3),C3=(f7Q^t6>=0?-1:1)*T_R(C3[2]),Kt>C3||Kt===C3&&(R6[0]||R6[1]))&&(te+=f7Q^t6>=0?1:-1)}}J$=(Yp<-1E-6||Yp<1E-6&&JVm<-1E-6)^te&1;gm.length?(ra||(KG.polygonStart(),ra=!0),weh(gm,s5h,J$,F,KG)):J$&&(ra||(KG.polygonStart(),
ra=!0),KG.lineStart(),F(null,null,1,KG),KG.lineEnd());ra&&(KG.polygonEnd(),ra=!1);gm=AU=null},
sphere:function(){KG.polygonStart();KG.lineStart();F(null,null,1,KG);KG.lineEnd();KG.polygonEnd()}};
return Pg}})(function(){return!0},function(u){var S=NaN,F=NaN,VJ=NaN,KG;
return{lineStart:function(){u.lineStart();KG=1},
point:function(TD,zD){var gT=TD>0?f4:-f4,lQ=N7(TD-S);if(N7(lQ-f4)<1E-6)u.point(S,F=(F+zD)/2>0?EQ:-EQ),u.point(VJ,F),u.lineEnd(),u.lineStart(),u.point(gT,F),u.point(TD,F),KG=0;else if(VJ!==gT&&lQ>=f4){N7(S-VJ)<1E-6&&(S-=VJ*1E-6);N7(TD-gT)<1E-6&&(TD-=gT*1E-6);lQ=S;var J8=F,pQ=TD,o2,aF,kl=fk(lQ-pQ);F=N7(kl)>1E-6?g62((fk(J8)*(aF=v8(zD))*fk(pQ)-fk(zD)*(o2=v8(J8))*fk(lQ))/(o2*aF*kl)):(J8+zD)/2;u.point(VJ,F);u.lineEnd();u.lineStart();u.point(gT,F);KG=0}u.point(S=TD,F=zD);VJ=gT},
lineEnd:function(){u.lineEnd();S=F=NaN},
clean:function(){return 2-KG}}},function(u,S,F,VJ){u==null?(F*=EQ,VJ.point(-f4,F),VJ.point(0,F),VJ.point(f4,F),VJ.point(f4,0),VJ.point(f4,-F),VJ.point(0,-F),VJ.point(-f4,-F),VJ.point(-f4,0),VJ.point(-f4,F)):N7(u[0]-S[0])>1E-6?(u=u[0]<S[0]?f4:-f4,F=F*u/2,VJ.point(-u,F),VJ.point(0,F),VJ.point(u,F)):VJ.point(S[0],S[1])},[-f4,
-EQ]);new d9;new d9;new d9;new d9;GWD.prototype={constructor:GWD,point:function(u,S){this.stream.point(u,S)},
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()}};
v8(30*Byq);(function(u){return function(S){var F=new GWD,VJ;for(VJ in u)F[VJ]=u[VJ];F.stream=S;return F}})({point:function(u,S){this.stream.point(u*Byq,S*Byq)}});
zBQ(function(u){return wFr(2/(1+u))}).invert=R4(function(u){return 2*T_R(u/2)});
zBQ(function(u){return(u=u>1?0:u<-1?f4:Math.acos(u))&&u/fk(u)}).invert=R4(function(u){return u});
wFr(3);R4(g62);R4(T_R);R4(function(u){return 2*g62(u)});
o4.prototype=fQ$.prototype={constructor:o4,count:function(){return this.eachAfter(Lss)},
each:function(u){var S,F=[this],VJ;do{var KG=F.reverse();for(F=[];S=KG.pop();)if(u(S),S=S.children){var TD=0;for(VJ=S.length;TD<VJ;++TD)F.push(S[TD])}}while(F.length);return this},
eachAfter:function(u){for(var S,F=[this],VJ=[],KG,TD;S=F.pop();)if(VJ.push(S),S=S.children)for(KG=0,TD=S.length;KG<TD;++KG)F.push(S[KG]);for(;S=VJ.pop();)u(S);return this},
eachBefore:function(u){for(var S,F=[this],VJ;S=F.pop();)if(u(S),S=S.children)for(VJ=S.length-1;VJ>=0;--VJ)F.push(S[VJ]);return this},
sum:function(u){return this.eachAfter(function(S){for(var F=+u(S.data)||0,VJ=S.children,KG=VJ&&VJ.length;--KG>=0;)F+=VJ[KG].value;S.value=F})},
sort:function(u){return this.eachBefore(function(S){S.children&&S.children.sort(u)})},
path:function(u){var S=this;var F=S;var VJ=u;if(F!==VJ){var KG=F.ancestors(),TD=VJ.ancestors(),zD=null;F=KG.pop();for(VJ=TD.pop();F===VJ;)zD=F,F=KG.pop(),VJ=TD.pop();F=zD}for(VJ=[S];S!==F;)S=S.parent,VJ.push(S);for(S=VJ.length;u!==F;)VJ.splice(S,0,u),u=u.parent;return VJ},
ancestors:function(){for(var u=this,S=[u];u=u.parent;)S.push(u);return S},
links:function(){var u=this,S=[];u.each(function(F){F!==u&&S.push({source:F.parent,target:F})});
return S},
copy:function(){return fQ$(this).eachBefore(zvp)}};
(function(u,S){this._=u;this.A=this.children=this.parent=null;this.a=this;this.s=this.c=this.m=this.z=0;this.t=null;this.i=S}).prototype=Object.create(o4.prototype);
var E6q=new Date,v6o=new Date,JVa=ik(function(){},function(u,S){u.setTime(+u+S)},function(u,S){return S-u});
JVa.every=function(u){u=Math.floor(u);return isFinite(u)&&u>0?u>1?ik(function(S){S.setTime(Math.floor(S/u)*u)},function(S,F){S.setTime(+S+F*u)},function(S,F){return(F-S)/u}):JVa:null};
ik(function(u){u.setTime(Math.floor(u/1E3)*1E3)},function(u,S){u.setTime(+u+S*1E3)},function(u,S){return(S-u)/1E3},function(u){return u.getUTCSeconds()});
ik(function(u){u.setTime(Math.floor(u/6E4)*6E4)},function(u,S){u.setTime(+u+S*6E4)},function(u,S){return(S-u)/6E4},function(u){return u.getMinutes()});
ik(function(u){var S=u.getTimezoneOffset()*6E4%36E5;S<0&&(S+=36E5);u.setTime(Math.floor((+u-S)/36E5)*36E5+S)},function(u,S){u.setTime(+u+S*36E5)},function(u,S){return(S-u)/36E5},function(u){return u.getHours()});
var ZHz=ik(function(u){u.setHours(0,0,0,0)},function(u,S){u.setDate(u.getDate()+S)},function(u,S){return(S-u-(S.getTimezoneOffset()-u.getTimezoneOffset())*6E4)/864E5},function(u){return u.getDate()-1}),z45=GZ(0),ANR=GZ(1);
GZ(2);GZ(3);var RBD=GZ(4);GZ(5);GZ(6);ik(function(u){u.setDate(1);u.setHours(0,0,0,0)},function(u,S){u.setMonth(u.getMonth()+S)},function(u,S){return S.getMonth()-u.getMonth()+(S.getFullYear()-u.getFullYear())*12},function(u){return u.getMonth()});
var PK=ik(function(u){u.setMonth(0,1);u.setHours(0,0,0,0)},function(u,S){u.setFullYear(u.getFullYear()+S)},function(u,S){return S.getFullYear()-u.getFullYear()},function(u){return u.getFullYear()});
PK.every=function(u){return isFinite(u=Math.floor(u))&&u>0?ik(function(S){S.setFullYear(Math.floor(S.getFullYear()/u)*u);S.setMonth(0,1);S.setHours(0,0,0,0)},function(S,F){S.setFullYear(S.getFullYear()+F*u)}):null};
ik(function(u){u.setUTCSeconds(0,0)},function(u,S){u.setTime(+u+S*6E4)},function(u,S){return(S-u)/6E4},function(u){return u.getUTCMinutes()});
ik(function(u){u.setUTCMinutes(0,0,0)},function(u,S){u.setTime(+u+S*36E5)},function(u,S){return(S-u)/36E5},function(u){return u.getUTCHours()});
var Xi8=ik(function(u){u.setUTCHours(0,0,0,0)},function(u,S){u.setUTCDate(u.getUTCDate()+S)},function(u,S){return(S-u)/864E5},function(u){return u.getUTCDate()-1}),uY1=EM(0),OHm=EM(1);
EM(2);EM(3);var o6m=EM(4);EM(5);EM(6);ik(function(u){u.setUTCDate(1);u.setUTCHours(0,0,0,0)},function(u,S){u.setUTCMonth(u.getUTCMonth()+S)},function(u,S){return S.getUTCMonth()-u.getUTCMonth()+(S.getUTCFullYear()-u.getUTCFullYear())*12},function(u){return u.getUTCMonth()});
var Mc=ik(function(u){u.setUTCMonth(0,1);u.setUTCHours(0,0,0,0)},function(u,S){u.setUTCFullYear(u.getUTCFullYear()+S)},function(u,S){return S.getUTCFullYear()-u.getUTCFullYear()},function(u){return u.getUTCFullYear()});
Mc.every=function(u){return isFinite(u=Math.floor(u))&&u>0?ik(function(S){S.setUTCFullYear(Math.floor(S.getUTCFullYear()/u)*u);S.setUTCMonth(0,1);S.setUTCHours(0,0,0,0)},function(S,F){S.setUTCFullYear(S.getUTCFullYear()+F*u)}):null};
var YI_={"-":"",_:" ",0:"0"},s2=/^\s*\d+/,WER=/^%/,Dku=/[\\^$*+?|[\]().{}]/g,Ysu;(function(u){Ysu=fb5(u);ahZ=Ysu.utcFormat;k18=Ysu.utcParse;return Ysu})({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||ahZ("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||k18("%Y-%m-%dT%H:%M:%S.%LZ");Vu("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");
Vu("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6");Vu("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9");Vu("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");Vu("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");Vu("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");Vu("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");
Vu("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");Vu("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");Vu("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");Vu("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");Vu("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var $k4=Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e",
"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(Vu);QD($k4);var Gyr=Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837",
"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(Vu);QD(Gyr);var E84=Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419",
"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(Vu);QD(E84);var v8u=Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(Vu);
QD(v8u);var Ode=Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(Vu);QD(Ode);var AFu=Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040",
"ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(Vu);QD(AFu);var R4R=Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4",
"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(Vu);QD(R4R);var o81=Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850",
"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(Vu);QD(o81);var QS1=Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd",
"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(Vu);QD(QS1);var e45=Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(Vu);QD(e45);var jSu=Array(3).concat("e0ecf49ebcda8856a7",
"edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(Vu);QD(jSu);var FEu=Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e",
"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(Vu);QD(FEu);var lKR=Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(Vu);QD(lKR);var yFu=Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59",
"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(Vu);QD(yFu);var BCe=Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(Vu);QD(BCe);var g8h=Array(3).concat("e7e1efc994c7dd1c77",
"f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(Vu);QD(g8h);var Jiu=Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177",
"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(Vu);QD(Jiu);var cih=Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(Vu);QD(cih);var mbo=Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837",
"ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(Vu);QD(mbo);var bIh=Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(Vu);QD(bIh);var xbR=Array(3).concat("ffeda0feb24cf03b20",
"ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(Vu);QD(xbR);var VoS=Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594",
"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(Vu);QD(VoS);var PAo=Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(Vu);QD(PAo);var Moo=Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525",
"f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(Vu);QD(Moo);var pzs=Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(Vu);QD(pzs);var Nb4=Array(3).concat("fee0d2fc9272de2d26",
"fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(Vu);QD(Nb4);var tou=Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04",
"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(Vu);QD(tou);lQe(HB(300,.5,0),HB(-240,.5,1));lQe(HB(-100,.75,.35),HB(80,1.5,.8));lQe(HB(260,.75,.35),HB(80,1.5,.8));HB();wR();LYt(Vu("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));
LYt(Vu("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));
LYt(Vu("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));
LYt(Vu("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
OHa.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(u,S){u=+u;S=+S;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(u,S):this._context.moveTo(u,S);break;case 1:this._point=2;default:this._context.lineTo(u,S)}}};
(function(u){function S(F){return new AN2(u(F))}
S._curve=u;return S})(function(u){return new OHa(u)});
AN2.prototype={lineStart:function(){this._curve.lineStart()},
lineEnd:function(){this._curve.lineEnd()},
point:function(u,S){this._curve.point(S*Math.sin(u),S*-Math.cos(u))}};
eBG.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:Q9D(this,this._t0,o6a(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(u,S){var F=NaN;u=+u;S=+S;if(u!==this._x1||S!==this._y1){switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(u,S):this._context.moveTo(u,S);break;case 1:this._point=2;break;case 2:this._point=3;Q9D(this,o6a(this,F=RBz(this,u,S)),F);break;default:Q9D(this,this._t0,F=RBz(this,u,S))}this._x0=this._x1;this._x1=u;this._y0=this._y1;this._y1=S;this._t0=F}}};
(function(u){this._context=new Q9z(u)}.prototype=Object.create(eBG.prototype)).point=function(u,S){eBG.prototype.point.call(this,S,u)};
Q9z.prototype={moveTo:function(u,S){this._context.moveTo(S,u)},
closePath:function(){this._context.closePath()},
lineTo:function(u,S){this._context.lineTo(S,u)},
bezierCurveTo:function(u,S,F,VJ,KG,TD){this._context.bezierCurveTo(S,u,VJ,F,TD,KG)}};
FN.prototype={constructor:FN,scale:function(u){return u===1?this:new FN(this.k*u,this.x,this.y)},
translate:function(u,S){return u===0&S===0?this:new FN(this.k,this.x+this.k*u,this.y+this.k*S)},
apply:function(u){return[u[0]*this.k+this.x,u[1]*this.k+this.y]},
invert:function(u){return[(u[0]-this.x)/this.k,(u[1]-this.y)/this.k]},
toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};
new FN(1,0,0);Iym=MR;GU.svg=GU.svg;GU.xhtml=GU.xhtml;GU.xlink=GU.xlink;GU.xml=GU.xml;GU.xmlns=GU.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 Hs$="hammer_"+(Math.random()*1E6|0),isB=function(){var J=document||document;if(!J[Hs$]){var c=function(){(function(m,b,x,P){function p(sm,hq,Om){return setTimeout(T(sm,Om),hq)}
function t(sm,hq,Om){return Array.isArray(sm)?(I(sm,Om[hq],Om),!0):!1}
function I(sm,hq,Om){var KQ;if(sm)if(sm.forEach)sm.forEach(hq,Om);else if(sm.length!==P){var VR=0;for(KQ=sm.length;VR<KQ;VR++)hq.call(Om,sm[VR],VR,sm)}else for(VR in sm)sm.hasOwnProperty(VR)&&hq.call(Om,sm[VR],VR,sm)}
function a(sm,hq,Om){for(var KQ=Object.keys(hq),VR=0,Yl=KQ.length;VR<Yl;VR++)if(!Om||Om&&sm[KQ[VR]]===P)sm[KQ[VR]]=hq[KQ[VR]];return sm}
function k(sm,hq){return a(sm,hq,!0)}
function H(sm,hq,Om){hq=hq.prototype;var KQ=sm.prototype=Object.create(hq);KQ.constructor=sm;KQ._super=hq;Om&&a(KQ,Om)}
function T(sm,hq){return function(){return sm.apply(hq,arguments)}}
function r(sm,hq){return typeof sm=="function"?sm.apply(hq?hq[0]||P:P,hq):sm}
function W(sm,hq,Om){I(Z(hq),function(KQ){sm.addEventListener(KQ,Om,!1)})}
function Y(sm,hq,Om){I(Z(hq),function(KQ){sm.removeEventListener(KQ,Om,!1)})}
function Z(sm){return sm.trim().split(/\s+/g)}
function d(sm,hq,Om){if(sm.indexOf&&!Om)return sm.indexOf(hq);for(var KQ=0,VR=sm.length;KQ<VR;KQ++)if(Om&&sm[KQ][Om]==hq||!Om&&sm[KQ]===hq)return KQ;return-1}
function G(sm,hq,Om){for(var KQ=[],VR=[],Yl=0,Cr=sm.length;Yl<Cr;Yl++){var iC=hq?sm[Yl][hq]:sm[Yl];d(VR,iC)<0&&KQ.push(sm[Yl]);VR[Yl]=iC}Om&&(KQ=hq?KQ.sort(function(HB,rR){return HB[hq]>rR[hq]}):KQ.sort());
return KQ}
function e(sm,hq){for(var Om,KQ=hq[0].toUpperCase()+hq.slice(1),VR=0,Yl=VQ.length;VR<Yl;VR++)if(Om=(Om=VQ[VR])?Om+KQ:hq,Om in sm)return Om;return P}
function A(sm,hq){var Om=this;this.manager=sm;this.callback=hq;this.element=sm.element;this.target=sm.options.inputTarget;this.domHandler=function(KQ){r(sm.options.enable,[sm])&&Om.handler(KQ)};
this.evEl&&W(this.element,this.evEl,this.domHandler);this.evTarget&&W(this.target,this.evTarget,this.domHandler);this.evWin&&W(m,this.evWin,this.domHandler)}
function l(sm){var hq;w8?hq=oR:NL?hq=Em:MR?hq=X$:hq=Z3;return new hq(sm,y)}
function y(sm,hq,Om){var KQ=Om.pointers.length,VR=Om.changedPointers.length,Yl=hq&1&&KQ-VR===0;Om.isFirst=!!Yl;Om.isFinal=!!(hq&12&&KQ-VR===0);Yl&&(sm.session={});Om.eventType=hq;hq=sm.session;KQ=Om.pointers;VR=KQ.length;hq.firstInput||(hq.firstInput=pG(Om));VR>1&&!hq.firstMultiple?hq.firstMultiple=pG(Om):VR===1&&(hq.firstMultiple=!1);Yl=hq.firstInput;var Cr=(VR=hq.firstMultiple)?VR.center:Yl.center,iC=Om.center=kt(KQ);Om.timeStamp=uC();Om.deltaTime=Om.timeStamp-Yl.timeStamp;Om.angle=Yt(Cr,iC);Om.distance=
fG(Cr,iC);Yl=Om.center;Cr=hq.offsetDelta||{};iC=hq.prevDelta||{};var HB=hq.prevInput||{};if(Om.eventType===1||HB.eventType===4)iC=hq.prevDelta={x:HB.deltaX||0,y:HB.deltaY||0},Cr=hq.offsetDelta={x:Yl.x,y:Yl.y};Om.deltaX=iC.x+(Yl.x-Cr.x);Om.deltaY=iC.y+(Yl.y-Cr.y);Om.offsetDirection=nG(Om.deltaX,Om.deltaY);VR?(Yl=VR.pointers,Yl=fG(KQ[0],KQ[1],wR)/fG(Yl[0],Yl[1],wR)):Yl=1;Om.scale=Yl;VR?(VR=VR.pointers,KQ=Yt(KQ[1],KQ[0],wR)-Yt(VR[1],VR[0],wR)):KQ=0;Om.rotation=KQ;Cr=hq.lastInterval||Om;KQ=Om.timeStamp-
Cr.timeStamp;Om.eventType!=8&&(KQ>25||Cr.velocity===P)?(Yl=Cr.deltaX-Om.deltaX,Cr=Cr.deltaY-Om.deltaY,iC=Yl/KQ||0,HB=Cr/KQ||0,KQ=iC,VR=HB,iC=Tz(iC)>Tz(HB)?iC:HB,Yl=nG(Yl,Cr),hq.lastInterval=Om):(iC=Cr.velocity,KQ=Cr.velocityX,VR=Cr.velocityY,Yl=Cr.direction);Om.velocity=iC;Om.velocityX=KQ;Om.velocityY=VR;Om.direction=Yl;hq=sm.element;a:{for(KQ=Om.srcEvent.target;KQ;){if(KQ==hq){KQ=!0;break a}KQ=KQ.parentNode}KQ=!1}KQ&&(hq=Om.srcEvent.target);Om.target=hq;sm.emit("hammer.input",Om);sm.recognize(Om);
sm.session.prevInput=Om}
function pG(sm){for(var hq=[],Om=0;Om<sm.pointers.length;Om++)hq[Om]={clientX:T4(sm.pointers[Om].clientX),clientY:T4(sm.pointers[Om].clientY)};return{timeStamp:uC(),pointers:hq,center:kt(hq),deltaX:sm.deltaX,deltaY:sm.deltaY}}
function kt(sm){var hq=sm.length;if(hq===1)return{x:T4(sm[0].clientX),y:T4(sm[0].clientY)};for(var Om=0,KQ=0,VR=0;VR<hq;VR++)Om+=sm[VR].clientX,KQ+=sm[VR].clientY;return{x:T4(Om/hq),y:T4(KQ/hq)}}
function nG(sm,hq){return sm===hq?1:Tz(sm)>=Tz(hq)?sm>0?2:4:hq>0?8:16}
function fG(sm,hq,Om){Om||(Om=A8);var KQ=hq[Om[0]]-sm[Om[0]];sm=hq[Om[1]]-sm[Om[1]];return Math.sqrt(KQ*KQ+sm*sm)}
function Yt(sm,hq,Om){Om||(Om=A8);return Math.atan2(hq[Om[1]]-sm[Om[1]],hq[Om[0]]-sm[Om[0]])*180/Math.PI}
function Z3(){this.evEl="mousedown";this.evWin="mousemove mouseup";this.allow=!0;this.pressed=!1;A.apply(this,arguments)}
function oR(){this.evEl=GO;this.evWin=IP;A.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}
function Em(){this.evTarget="touchstart touchmove touchend touchcancel";this.targetIds={};A.apply(this,arguments)}
function X$(){A.apply(this,arguments);var sm=T(this.handler,this);this.touch=new Em(this.manager,sm);this.mouse=new Z3(this.manager,sm)}
function Hu(sm,hq){this.manager=sm;this.set(hq)}
function S6(sm){if(sm.indexOf("none")>-1)return"none";var hq=sm.indexOf("pan-x")>-1,Om=sm.indexOf("pan-y")>-1;return hq&&Om?"pan-x pan-y":hq||Om?hq?"pan-x":"pan-y":sm.indexOf("manipulation")>-1?"manipulation":"auto"}
function a2(sm){this.id=Kr++;this.manager=null;this.options=k(sm||{},this.defaults);sm=this.options.enable;this.options.enable=sm===P?!0:sm;this.state=1;this.simultaneous={};this.requireFail=[]}
function Nu(sm){return sm==16?"down":sm==8?"up":sm==2?"left":sm==4?"right":""}
function cu(sm,hq){return(hq=hq.manager)?hq.get(sm):sm}
function t8(){a2.apply(this,arguments)}
function I_(){t8.apply(this,arguments);this.pY=this.pX=null}
function fU(){t8.apply(this,arguments)}
function Nf(){a2.apply(this,arguments);this._input=this._timer=null}
function wL(){t8.apply(this,arguments)}
function qu(){t8.apply(this,arguments)}
function O5(){a2.apply(this,arguments);this.pCenter=this.pTime=!1;this._input=this._timer=null;this.count=0}
function LQ(sm,hq){hq=hq||{};var Om=hq.recognizers;hq.recognizers=Om===P?LQ.defaults.preset:Om;return new j6(sm,hq)}
function j6(sm,hq){hq=hq||{};this.options=k(hq,LQ.defaults);this.options.inputTarget=this.options.inputTarget||sm;this.handlers={};this.session={};this.recognizers=[];this.element=sm;this.input=l(this);this.touchAction=new Hu(this,this.options.touchAction);Ow(this,!0);I(hq.recognizers,function(Om){var KQ=this.add(new Om[0](Om[1]));Om[2]&&KQ.recognizeWith(Om[2]);Om[3]&&KQ.requireFailure(Om[2])},this)}
function Ow(sm,hq){var Om=sm.element;I(sm.options.cssProps,function(KQ,VR){Om.style[e(Om.style,VR)]=hq?KQ:""})}
function QQ(sm,hq){var Om=b.createEvent("Event");Om.initEvent(sm,!0,!0);Om.gesture=hq;hq.target.dispatchEvent(Om)}
var VQ=" webkit moz MS ms o".split(" "),vB=b.createElement("div"),T4=Math.round,Tz=Math.abs,uC=Date.now,Kr=1,M2=/mobile|tablet|ip(ad|hone|od)|android/i,MR="ontouchstart"in m,w8=e(m,"PointerEvent")!==P,NL=MR&&M2.test(navigator.userAgent),A8=["x","y"],wR=["clientX","clientY"];A.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(m,this.evWin,this.domHandler)}};
var Bu={mousedown:1,mousemove:2,mouseup:4};H(Z3,A,{handler:function(sm){var hq=Bu[sm.type];hq&1&&sm.button===0&&(this.pressed=!0);hq&2&&sm.which!==1&&(hq=4);this.pressed&&this.allow&&(hq&4&&(this.pressed=!1),this.callback(this.manager,hq,{pointers:[sm],changedPointers:[sm],pointerType:"mouse",srcEvent:sm}))}});
var M0={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},ii={2:"touch",3:"pen",4:"mouse",5:"kinect"},GO="pointerdown",IP="pointermove pointerup pointercancel";m.MSPointerEvent&&(GO="MSPointerDown",IP="MSPointerMove MSPointerUp MSPointerCancel");H(oR,A,{handler:function(sm){var hq=this.store,Om=!1,KQ=sm.type.toLowerCase().replace("ms","");KQ=M0[KQ];var VR=ii[sm.pointerType]||sm.pointerType;KQ&1&&(sm.button===0||VR=="touch")?hq.push(sm):KQ&12&&(Om=!0);var Yl=d(hq,sm.pointerId,"pointerId");
Yl<0||(hq[Yl]=sm,this.callback(this.manager,KQ,{pointers:hq,changedPointers:[sm],pointerType:VR,srcEvent:sm}),Om&&hq.splice(Yl,1))}});
var V4={touchstart:1,touchmove:2,touchend:4,touchcancel:8};H(Em,A,{handler:function(sm){var hq=V4[sm.type];var Om=Array.prototype.slice.call(sm.touches,0);var KQ=this.targetIds;if(hq&3&&Om.length===1)KQ[Om[0].identifier]=!0,KQ=[Om,Om];else{var VR,Yl=Array.prototype.slice.call(sm.targetTouches,0),Cr=Array.prototype.slice.call(sm.changedTouches,0),iC=[];if(hq===1)for(Om=0,VR=Yl.length;Om<VR;Om++)KQ[Yl[Om].identifier]=!0;Om=0;for(VR=Cr.length;Om<VR;Om++)KQ[Cr[Om].identifier]&&iC.push(Cr[Om]),hq&12&&
delete KQ[Cr[Om].identifier];KQ=iC.length?[G(Yl.concat(iC),"identifier",!0),iC]:void 0}KQ&&this.callback(this.manager,hq,{pointers:KQ[0],changedPointers:KQ[1],pointerType:"touch",srcEvent:sm})}});
H(X$,A,{handler:function(sm,hq,Om){var KQ=Om.pointerType=="mouse";if(Om.pointerType=="touch")this.mouse.allow=!1;else if(KQ&&!this.mouse.allow)return;hq&12&&(this.mouse.allow=!0);this.callback(sm,hq,Om)},
destroy:function(){this.touch.destroy();this.mouse.destroy()}});
var C6=e(vB.style,"touchAction"),qr=C6!==P;Hu.prototype={set:function(sm){sm=="compute"&&(sm=this.compute());qr&&(this.manager.element.style[C6]=sm);this.actions=sm.toLowerCase().trim()},
update:function(){this.set(this.manager.options.touchAction)},
compute:function(){var sm=[];I(this.manager.recognizers,function(hq){r(hq.options.enable,[hq])&&(sm=sm.concat(hq.getTouchAction()))});
return S6(sm.join(" "))},
preventDefaults:function(sm){if(!qr){var hq=sm.srcEvent;sm=sm.offsetDirection;if(this.manager.session.prevented)hq.preventDefault();else{var Om=this.actions,KQ=Om.indexOf("none")>-1,VR=Om.indexOf("pan-y")>-1;Om=Om.indexOf("pan-x")>-1;if(KQ||VR&&Om||VR&&sm&6||Om&&sm&24)return this.preventSrc(hq)}}},
preventSrc:function(sm){this.manager.session.prevented=!0;sm.preventDefault()}};
a2.prototype={defaults:{},set:function(sm){a(this.options,sm);this.manager&&this.manager.touchAction.update();return this},
recognizeWith:function(sm){if(t(sm,"recognizeWith",this))return this;var hq=this.simultaneous;sm=cu(sm,this);hq[sm.id]||(hq[sm.id]=sm,sm.recognizeWith(this));return this},
dropRecognizeWith:function(sm){if(t(sm,"dropRecognizeWith",this))return this;sm=cu(sm,this);delete this.simultaneous[sm.id];return this},
requireFailure:function(sm){if(t(sm,"requireFailure",this))return this;var hq=this.requireFail;sm=cu(sm,this);d(hq,sm)===-1&&(hq.push(sm),sm.requireFailure(this));return this},
dropRequireFailure:function(sm){if(t(sm,"dropRequireFailure",this))return this;sm=cu(sm,this);sm=d(this.requireFail,sm);sm>-1&&this.requireFail.splice(sm,1);return this},
hasRequireFailures:function(){return this.requireFail.length>0},
canRecognizeWith:function(sm){return!!this.simultaneous[sm.id]},
emit:function(sm){function hq(VR){Om.manager.emit(Om.options.event+(VR?KQ&16?"cancel":KQ&8?"end":KQ&4?"move":KQ&2?"start":"":""),sm)}
var Om=this,KQ=this.state;KQ<8&&hq(!0);hq();KQ>=8&&hq(!0)},
tryEmit:function(sm){if(this.canEmit())return this.emit(sm);this.state=32},
canEmit:function(){for(var sm=0;sm<this.requireFail.length;sm++)if(!(this.requireFail[sm].state&33))return!1;return!0},
recognize:function(sm){sm=a({},sm);r(this.options.enable,[this,sm])?(this.state&56&&(this.state=1),this.state=this.process(sm),this.state&30&&this.tryEmit(sm)):(this.reset(),this.state=32)},
process:function(){},
getTouchAction:function(){},
reset:function(){}};
H(t8,a2,{defaults:{pointers:1},attrTest:function(sm){var hq=this.options.pointers;return hq===0||sm.pointers.length===hq},
process:function(sm){var hq=this.state,Om=sm.eventType,KQ=hq&6;sm=this.attrTest(sm);return KQ&&(Om&8||!sm)?hq|16:KQ||sm?Om&4?hq|8:hq&2?hq|4:2:32}});
H(I_,t8,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var sm=this.options.direction;if(sm===30)return["none"];var hq=[];sm&6&&hq.push("pan-y");sm&24&&hq.push("pan-x");return hq},
directionTest:function(sm){var hq=this.options,Om=!0,KQ=sm.distance,VR=sm.direction,Yl=sm.deltaX,Cr=sm.deltaY;VR&hq.direction||(hq.direction&6?(VR=Yl===0?1:Yl<0?2:4,Om=Yl!=this.pX,KQ=Math.abs(sm.deltaX)):(VR=Cr===0?1:Cr<0?8:16,Om=Cr!=this.pY,KQ=Math.abs(sm.deltaY)));sm.direction=VR;return Om&&KQ>hq.threshold&&VR&hq.direction},
attrTest:function(sm){return t8.prototype.attrTest.call(this,sm)&&(this.state&2||!(this.state&2)&&this.directionTest(sm))},
emit:function(sm){this.pX=sm.deltaX;this.pY=sm.deltaY;var hq=Nu(sm.direction);hq&&this.manager.emit(this.options.event+hq,sm);this._super.emit.call(this,sm)}});
H(fU,t8,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(sm){return this._super.attrTest.call(this,sm)&&(Math.abs(sm.scale-1)>this.options.threshold||this.state&2)},
emit:function(sm){this._super.emit.call(this,sm);sm.scale!==1&&this.manager.emit(this.options.event+(sm.scale<1?"in":"out"),sm)}});
H(Nf,a2,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return["auto"]},
process:function(sm){var hq=this.options,Om=sm.pointers.length===hq.pointers,KQ=sm.distance<hq.threshold,VR=sm.deltaTime>hq.time;this._input=sm;if(!KQ||!Om||sm.eventType&12&&!VR)this.reset();else if(sm.eventType&1)this.reset(),this._timer=p(function(){this.state=8;this.tryEmit()},hq.time,this);
else if(sm.eventType&4)return 8;return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(sm){this.state===8&&(sm&&sm.eventType&4?this.manager.emit(this.options.event+"up",sm):(this._input.timeStamp=uC(),this.manager.emit(this.options.event,this._input)))}});
H(wL,t8,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(sm){return this._super.attrTest.call(this,sm)&&(Math.abs(sm.rotation)>this.options.threshold||this.state&2)}});
H(qu,t8,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:30,pointers:1},getTouchAction:function(){return I_.prototype.getTouchAction.call(this)},
attrTest:function(sm){var hq=this.options.direction;if(hq&30)var Om=sm.velocity;else hq&6?Om=sm.velocityX:hq&24&&(Om=sm.velocityY);return this._super.attrTest.call(this,sm)&&hq&sm.direction&&Tz(Om)>this.options.velocity&&sm.eventType&4},
emit:function(sm){var hq=Nu(sm.direction);hq&&this.manager.emit(this.options.event+hq,sm);this.manager.emit(this.options.event,sm)}});
H(O5,a2,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return["manipulation"]},
process:function(sm){var hq=this.options,Om=sm.pointers.length===hq.pointers,KQ=sm.distance<hq.threshold,VR=sm.deltaTime<hq.time;this.reset();if(sm.eventType&1&&this.count===0)return this.failTimeout();if(KQ&&VR&&Om){if(sm.eventType!=4)return this.failTimeout();Om=this.pTime?sm.timeStamp-this.pTime<hq.interval:!0;KQ=!this.pCenter||fG(this.pCenter,sm.center)<hq.posThreshold;this.pTime=sm.timeStamp;this.pCenter=sm.center;KQ&&Om?this.count+=1:this.count=1;this._input=sm;if(this.count%hq.taps===0)return this.hasRequireFailures()?
(this._timer=p(function(){this.state=8;this.tryEmit()},hq.interval,this),2):8}return 32},
failTimeout:function(){this._timer=p(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))}});
LQ.VERSION="2.0.2";LQ.defaults={domEvents:!1,touchAction:"compute",inputTarget:null,enable:!0,preset:[[wL,{enable:!1}],[fU,{enable:!1},["rotate"]],[qu,{direction:6}],[I_,{direction:6},["swipe"]],[O5],[O5,{event:"doubletap",taps:2},["tap"]],[Nf]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};j6.prototype={set:function(sm){a(this.options,sm);return this},
stop:function(sm){this.session.stopped=sm?2:1},
recognize:function(sm){var hq=this.session;if(!hq.stopped){this.touchAction.preventDefaults(sm);var Om=this.recognizers,KQ=hq.curRecognizer;if(!KQ||KQ&&KQ.state&8)KQ=hq.curRecognizer=null;for(var VR=0,Yl=Om.length;VR<Yl;VR++){var Cr=Om[VR];hq.stopped===2||KQ&&Cr!=KQ&&!Cr.canRecognizeWith(KQ)?Cr.reset():Cr.recognize(sm);!KQ&&Cr.state&14&&(KQ=hq.curRecognizer=Cr)}}},
get:function(sm){if(sm instanceof a2)return sm;for(var hq=this.recognizers,Om=0;Om<hq.length;Om++)if(hq[Om].options.event==sm)return hq[Om];return null},
add:function(sm){if(t(sm,"add",this))return this;var hq=this.get(sm.options.event);hq&&this.remove(hq);this.recognizers.push(sm);sm.manager=this;this.touchAction.update();return sm},
remove:function(sm){if(t(sm,"remove",this))return this;var hq=this.recognizers;sm=this.get(sm);hq.splice(d(hq,sm),1);this.touchAction.update();return this},
on:function(sm,hq){var Om=this.handlers;I(Z(sm),function(KQ){Om[KQ]=Om[KQ]||[];Om[KQ].push(hq)});
return this},
off:function(sm,hq){var Om=this.handlers;I(Z(sm),function(KQ){hq?Om[KQ].splice(d(Om[KQ],hq),1):delete Om[KQ]});
return this},
emit:function(sm,hq){this.options.domEvents&&QQ(sm,hq);var Om=this.handlers[sm]&&this.handlers[sm].slice();if(Om&&Om.length){hq.type=sm;hq.preventDefault=function(){hq.srcEvent.preventDefault()};
sm=0;for(var KQ=Om.length;sm<KQ;sm++)Om[sm](hq)}},
destroy:function(){this.element&&Ow(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null}};
a(LQ,{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:j6,Input:A,TouchAction:Hu,Recognizer:a2,AttrRecognizer:t8,Tap:O5,Pan:I_,Swipe:qu,Pinch:fU,Rotate:wL,Press:Nf,on:W,off:Y,each:I,merge:k,extend:a,inherit:H,bindFn:T,prefixed:e});
m[x]=LQ})(window,document,"Hammer");
return window.Hammer}.call({});
c.DOCUMENT=J;J[Hs$]=c}return J[Hs$]};/*

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

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

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

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 qD,FPB,lGa;qD=Element.prototype;FPB=qD.matches||qD.matchesSelector||qD.mozMatchesSelector||qD.msMatchesSelector||qD.oMatchesSelector||qD.webkitMatchesSelector;lGa=function(){};
_.BpQ=function(J){var c=ydz,m=[];return c._collectTabbableNodes(J,m)?c._sortByTabIndex(m):m};
_.V=lGa.prototype;_.V._normalizedTabIndex=function(J){return(FPB.call(J,"input, select, textarea, button, object")?FPB.call(J,":not([disabled])"):FPB.call(J,"a[href], area[href], iframe, [tabindex], [contentEditable]"))?(J=J.getAttribute("tabindex")||0,Number(J)):-1};
_.V._collectTabbableNodes=function(J,c){if(J.nodeType!==Node.ELEMENT_NODE||!this._isVisible(J))return!1;var m=this._normalizedTabIndex(J),b=m>0;m>=0&&c.push(J);if(J.localName==="content"||J.localName==="slot")m=_.rK(J).getDistributedNodes();else{var x;m=((x=_.rK(J).shadowRoot)!=null?x:_.rK(J.root||J)).children}for(J=0;J<m.length;J++)b=this._collectTabbableNodes(m[J],c)||b;return b};
_.V._isVisible=function(J){var c=J.style;return c.visibility!=="hidden"&&c.display!=="none"?(c=window.getComputedStyle(J),c.visibility!=="hidden"&&c.display!=="none"):!1};
_.V._sortByTabIndex=function(J){var c=J.length;if(c<2)return J;var m=Math.ceil(c/2);c=this._sortByTabIndex(J.slice(0,m));J=this._sortByTabIndex(J.slice(m));return this._mergeSortByTabIndex(c,J)};
_.V._mergeSortByTabIndex=function(J,c){for(var m=[];J.length>0&&c.length>0;)this._hasLowerTabOrder(J[0],c[0])?m.push(c.shift()):m.push(J.shift());return m.concat(J,c)};
_.V._hasLowerTabOrder=function(J,c){J=Math.max(J.tabIndex,0);c=Math.max(c.tabIndex,0);return J===0||c===0?c>J:J>c};
var ydz=new lGa;var gV$;var JP_;_.sB({_template:function(){if(JP_!==void 0)return JP_;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;gV$===void 0&&(gV$=document.createElement("template"));var b=gV$;m.call(c,b.content.cloneNode(!0),J.content.firstChild);return JP_=J},
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&&_.rK(document.body).appendChild(this)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
complete:function(){this.opened||this.parentNode!==document.body||_.rK(this.parentNode).removeChild(this)},
_onTransitionend:function(J){J&&J.target===this&&this.complete()},
_openedChanged:function(J){J?this.prepare():(J=window.getComputedStyle(this),J.transitionDuration!=="0s"&&J.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 Uq=function(){this._overlays=[];this._minimumZ=101;this._backdropElement=null;ua(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)};
Uq.prototype._bringOverlayAtIndexToFront=function(J){var c=this._overlays[J];if(c){var m=this._overlays.length-1,b=this._overlays[m];b&&this._shouldBeBehindOverlay(c,b)&&m--;if(!(J>=m)){b=Math.max(this._getZ(_.cPz(this)),this._minimumZ);for(this._getZ(c)<=b&&this._applyOverlayZ(c,b);J<m;)this._overlays[J]=this._overlays[J+1],J++;this._overlays[m]=c}}};
Uq.prototype.addOverlay=function(J){var c=this._overlays.indexOf(J);if(c>=0)this._bringOverlayAtIndexToFront(c);else{c=this._overlays.length;var m=this._overlays[c-1],b=Math.max(this._getZ(m),this._minimumZ),x=this._getZ(J);m&&this._shouldBeBehindOverlay(J,m)&&(this._applyOverlayZ(m,b),c--,b=Math.max(this._getZ(this._overlays[c-1]),this._minimumZ));x<=b&&this._applyOverlayZ(J,b);this._overlays.splice(c,0,J)}this.trackBackdrop()};
Uq.prototype.removeOverlay=function(J){J=this._overlays.indexOf(J);J!==-1&&(this._overlays.splice(J,1),this.trackBackdrop())};
_.cPz=function(J){return J._overlays[J._overlays.length-1]};
_.V=Uq.prototype;_.V.trackBackdrop=function(){var J=this._overlayWithBackdrop();if(J||this._backdropElement)this.backdropElement.style.zIndex=this._getZ(J)-1,this.backdropElement.opened=!!J,this.backdropElement.prepare()};
_.V._overlayWithBackdrop=function(){for(var J=this._overlays.length-1;J>=0;J--)if(this._overlays[J].withBackdrop)return this._overlays[J]};
_.V._getZ=function(J){var c=this._minimumZ;if(J){var m,b,x=Number(((m=J.hostElement)!=null?m:J).style.zIndex||window.getComputedStyle((b=J.hostElement)!=null?b:J).zIndex);x===x&&(c=x)}return c};
_.V._setZ=function(J,c){var m;((m=J.hostElement)!=null?m:J).style.zIndex=c};
_.V._applyOverlayZ=function(J,c){this._setZ(J,c+2)};
_.V._overlayInPath=function(J){J=J||[];for(var c=0;c<J.length;c++){var m=void 0;if(((m=J[c].polymerController)!=null?m:J[c])._manager===this)return J[c]}};
_.V._onCaptureClick=function(J){var c=this._overlays.length-1;if(c!==-1)for(var m=_.rK(J).path,b,x;(b=this._overlays[c])&&this._overlayInPath(m)!==((x=b.hostElement)!=null?x:b);)if(b._onCaptureClick(J),b.allowClickThrough)c--;else break};
_.V._onCaptureFocus=function(J){var c=_.cPz(this);c&&c._onCaptureFocus(J)};
_.V._onCaptureKeyDown=function(J){var c=_.cPz(this);c&&(_.KV.keyboardEventMatchesKeys(J,"esc")?c._onCaptureEsc(J):_.KV.keyboardEventMatchesKeys(J,"tab")&&c._onCaptureTab(J))};
_.V._shouldBeBehindOverlay=function(J,c){return!J.alwaysOnTop&&c.alwaysOnTop&&!c.contains(J)};
_.eE.Object.defineProperties(Uq.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 J=document.activeElement;J&&J instanceof Element!==!1||(J=document.body);for(;J.root&&_.rK(J.root).activeElement;)J=_.rK(J.root).activeElement;return J}}});
_.ST=new Uq;var UkT=0,SKR=0,h4J=null,dkG=[],sH=["wheel","mousewheel","DOMMouseScroll"],$kD;_.w("web_no_lock_on_touchstart_killswitch")&&(sH.push("touchstart"),sH.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;_.hV={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:_.ST},_focusedChild:{type:Object}},listeners:{"iron-resize":"_onIronResize"},observers:["__updateScrollObservers(isAttached, opened, scrollAction)"],get backdropElement(){return this._manager.backdropElement},get _focusNode(){var J;return this._focusedChild||_.rK((J=this.hostElement)!=null?J:this).querySelector("[autofocus]")||this.hostElement||this},get _focusableNodes(){var J;return _.BpQ((J=this.hostElement)!=null?J: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 J;this._observer=_.rK((J=this.hostElement)!=null?J:this).observeNodes(this._onNodesChange)},
detached:function(){if(this._observer){var J;_.rK((J=this.hostElement)!=null?J:this).unobserveNodes(this._observer)}this._observer=null;for(var c in this.__rafs)this.__rafs[c]!==null&&cancelAnimationFrame(this.__rafs[c]);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(J){this.fire("iron-overlay-canceled",J,{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 J;((J=this.hostElement)!=null?J:this).style.outline="none";var c;((c=this.hostElement)!=null?c:this).style.display="none"}},
_openedChanged:function(J){if(J){var c;((c=this.hostElement)!=null?c:this).removeAttribute("aria-hidden")}else{var m;((m=this.hostElement)!=null?m: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 J;if(this.withBackdrop&&!((J=this.hostElement)!=null?J:this).hasAttribute("tabindex")){var c;((c=this.hostElement)!=null?c:this).setAttribute("tabindex","-1");this.__shouldRemoveTabIndex=!0}else if(this.__shouldRemoveTabIndex){var m;((m=this.hostElement)!=null?m: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 J;((J=this.hostElement)!=null?J:this).style.display="none";var c;((c=this.hostElement)!=null?c:this).style.zIndex="";this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-closed",this.closingReason)},
_preparePositioning:function(){var J,c;((J=this.hostElement)!=null?J:this).style.transition=((c=this.hostElement)!=null?c:this).style.webkitTransition="none";var m,b;((m=this.hostElement)!=null?m:this).style.transform=((b=this.hostElement)!=null?b:this).style.webkitTransform="none";var x;((x=this.hostElement)!=null?x:this).style.display=""},
_finishPositioning:function(){var J;((J=this.hostElement)!=null?J:this).style.display="none";this.scrollTop=this.scrollTop;var c,m;((c=this.hostElement)!=null?c:this).style.transition=((m=this.hostElement)!=null?m:this).style.webkitTransition="";var b,x;((b=this.hostElement)!=null?b:this).style.transform=((x=this.hostElement)!=null?x:this).style.webkitTransform="";var P;((P=this.hostElement)!=null?P:this).style.display="";this.scrollTop=this.scrollTop},
_applyFocus:function(){if(this.opened)this.noAutoFocus||this._focusNode.focus();else{if(this.restoreFocusOnClose&&this.__restoreFocusNode){var J=this._manager.deepActiveElement,c;if(!(c=J===document.body))a:{for(;J;J=J.assignedSlot||J.parentNode||J.host)if(J===this){c=!0;break a}c=!1}c&&this.__restoreFocusNode.focus()}this.__restoreFocusNode=null;this._focusNode.blur();this._focusedChild=null}},
_onCaptureClick:function(J){this.noCancelOnOutsideClick||this.cancel(J)},
_onCaptureFocus:function(J){if(this.withBackdrop){var c=_.rK(J).path;c.indexOf(this)===-1?(J.stopPropagation(),this._applyFocus()):this._focusedChild=c[0]}},
_onCaptureEsc:function(J){this.noCancelOnEscKey||this.cancel(J)},
_onCaptureTab:function(J){if(this.withBackdrop){this.__ensureFirstLastFocusables();var c=J.shiftKey,m=c?this.__firstFocusableNode:this.__lastFocusableNode;c=c?this.__lastFocusableNode:this.__firstFocusableNode;if(m===c)m=!0;else{var b=this._manager.deepActiveElement;m=b===m||b===this}m&&(J.preventDefault(),this._focusedChild=c,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 J=this._focusableNodes;this.__firstFocusableNode=J[0];this.__lastFocusableNode=J[J.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(J,c){var m=this.__rafs;m[J]!==null&&cancelAnimationFrame(m[J]);m[J]=requestAnimationFrame(function(){m[J]=null;c.call(this)}.bind(this))},
__updateScrollObservers:function(J,c,m){J&&c&&this.__isValidScrollAction(m)?(m==="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),$kD=_._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()):(J=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(this),J!==-1&&(_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.splice(J,1),$kD=_._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(U4)for(var J=this;J;)J.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&J.host&&this.__rootNodes.push(J),J=J.host||J.assignedSlot||J.parentNode;this.__rootNodes.push(document)}this.__rootNodes.forEach(function(c){c.addEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this)},
__removeScrollListeners:function(){this.__rootNodes&&this.__rootNodes.forEach(function(J){J.removeEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this);
this.isAttached||(this.__rootNodes=null)},
__isValidScrollAction:function(J){return J==="lock"||J==="refit"||J==="cancel"},
__onCaptureScroll:function(J){if(!(this.__isAnimating||_.rK(J).path.indexOf(this)>=0))switch(this.scrollAction){case "lock":this.__restoreScrollPosition();break;case "refit":this.__deraf("refit",this.refit);break;case "cancel":this.cancel(J)}},
__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)}};
_.dI=[jAj,_.rI,_.hV];_.sB({_template:function(){if(QA6!==void 0)return QA6;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);var c=J.content,m=c.insertBefore;oVZ===void 0&&(oVZ=document.createElement("template"));var b=oVZ;m.call(c,b.content.cloneNode(!0),J.content.firstChild);return QA6=J},
is:"tp-yt-iron-dropdown",behaviors:[_.CV,_.KV,_.dI,h8_],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 J=_.rK(this.$.content).getDistributedNodes(),c=0,m=J.length;c<m;c++)if(J[c].nodeType===Node.ELEMENT_NODE)return J[c]},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(),_.hV._openedChanged.apply(this,arguments))},
_renderOpened:function(){!this.noAnimations&&this.animationConfig.open?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("open")):_.hV._renderOpened.apply(this,arguments)},
_renderClosed:function(){!this.noAnimations&&this.animationConfig.close?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("close")):_.hV._renderClosed.apply(this,arguments)},
_onNeonAnimationFinish:function(){this.$.contentWrapper.classList.remove("animating");this.opened?this._finishRenderOpened():this._finishRenderClosed()},
_updateAnimationConfig:function(){for(var J=this.containedElement,c=[].concat(this.openAnimationConfig||[],this.closeAnimationConfig||[]),m=0;m<c.length;m++)c[m].node=J;this.animationConfig={open:this.openAnimationConfig,close:this.closeAnimationConfig}},
_updateOverlayPosition:function(){this.isAttached&&this.notifyResize()},
_allowOutsideScrollChanged:function(J){this._readied&&(J?this.scrollAction&&this.scrollAction!=="lock"||(this.scrollAction="refit"):this.scrollAction="lock")},
_applyFocus:function(){var J=this.focusTarget||this.containedElement;J&&this.opened&&!this.noAutoFocus?J.focus():_.hV._applyFocus.apply(this,arguments)}});var mda;var bq6;/*

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 xd$=new _.io({type:"iconset"});
_.sB({_template:function(){if(bq6!==void 0)return bq6;var J=document.createElement("template");_.z(J,"\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");J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);var c=J.content,m=c.insertBefore;mda===void 0&&(mda=document.createElement("template"));
var b=mda;m.call(c,b.content.cloneNode(!0),J.content.firstChild);return bq6=J},
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(J){J=(J||"").split(":");this._iconName=J.pop();this._iconsetName=J.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&&_.rK(this.root).removeChild(this._img),this._iconName==="")this._iconset&&this._iconset.removeIcon(this);else{if(this._iconsetName)if(this._iconset=xd$.byKey(this._iconsetName)){var J=this._iconset.applyIcon(this,this._iconName,this.theme);J&&J.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,_.rK(this.root).appendChild(this._img)}});var Vp2;var PBj;_.sB({_template:function(){if(PBj!==void 0)return PBj;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);
var c=J.content,m=c.insertBefore;Vp2===void 0&&(Vp2=document.createElement("template"));var b=Vp2;m.call(c,b.content.cloneNode(!0),J.content.firstChild);return PBj=J},
is:"tp-yt-iron-input",behaviors:[_.TY],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(){_.Zj.requestAvailability();this._previousValidInput="";this._patternAlreadyChecked=!1},
attached:function(){this._observer=_.rK(this).observeNodes(function(){this._initSlottedInput()}.bind(this))},
detached:function(){this._observer&&(_.rK(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 J=new RegExp(this.allowedPattern);else switch(this.inputElement.type){case "number":J=/[0-9.,e-]/}return J},_bindValueChanged:function(J,c){c&&(J===void 0?c.value=null:J!==c.value&&(this.inputElement.value=J),this.autoValidate&&this.validate(),this.fire("bind-value-changed",{value:J}))},
_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(J){var c=J.keyCode==19||J.keyCode==20||J.keyCode==45||J.keyCode==46||J.keyCode==144||J.keyCode==145||J.keyCode>32&&J.keyCode<41||J.keyCode>111&&J.keyCode<124;return!(J.keyCode==8||J.keyCode==9||J.keyCode==13||J.keyCode==27)&&!(J.charCode==0&&c)},
_onKeypress:function(J){if(this.allowedPattern||this.inputElement.type==="number"){var c=this._patternRegExp;if(c&&!(J.metaKey||J.ctrlKey||J.altKey)){this._patternAlreadyChecked=!0;var m=String.fromCharCode(J.charCode);this._isPrintable(J)&&!c.test(m)&&(J.preventDefault(),this._announceInvalidCharacter("Invalid character "+m+" not entered."))}}},
_checkPatternValidity:function(){var J=this._patternRegExp;if(!J)return!0;for(var c=0;c<this.inputElement.value.length;c++)if(!J.test(this.inputElement.value[c]))return!1;return!0},
validate:function(){if(!this.inputElement)return this.invalid=!1,!0;var J=this.inputElement.checkValidity();J&&(this.required&&this.bindValue===""?J=!1:this.hasValidator()&&(J=_.TY.validate.call(this,this.bindValue)));this.invalid=!J;this.fire("iron-input-validate");return J},
_announceInvalidCharacter:function(J){this.fire("iron-announce",{text:J})},
_computeValue:function(J){return J}});var Mp2;var pPQ;var Nsz=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/),tpz=Nsz&&Nsz[1]>=8;
_.sB({_template:function(){if(pPQ!==void 0)return pPQ;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;Mp2===void 0&&(Mp2=document.createElement("template"));var b=Mp2;m.call(c,b.content.cloneNode(!0),J.content.firstChild);return pPQ=J},
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:[lXT,_.rI,_.SBZ,Ly8],_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 _.rK(_.rK(this._userTemplate).parentNode)},get _maxScrollTop(){return this._estScrollHeight-
this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){var J=this._convertIndexToCompleteRow(this._virtualCount);return Math.max(0,J-this._physicalCount)},set _virtualStart(J){J=this._clamp(J,0,this._maxVirtualStart);this.grid&&(J-=J%this._itemsPerRow);this._virtualStartVal=J},get _virtualStart(){return this._virtualStartVal||0},set _physicalStart(J){J%=this._physicalCount;J<0&&(J=this._physicalCount+J);this.grid&&(J-=J%this._itemsPerRow);this._physicalStartVal=J},get _physicalStart(){return this._physicalStartVal||
0},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},set _physicalCount(J){this._physicalCountVal=J},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 J=this._firstVisibleIndexVal;if(J==null){var c=this._physicalTop+this._scrollOffset;this._firstVisibleIndexVal=
J=this._iterateItems(function(m,b){c+=this._getPhysicalSizeIncrement(m);if(c>this._scrollPosition)return this.grid?b-b%this._itemsPerRow:b;if(this.grid&&this._virtualCount-1===b)return b-b%this._itemsPerRow})||0}return J},
get lastVisibleIndex(){var J=this._lastVisibleIndexVal;if(J==null){if(this.grid)J=Math.min(this._virtualCount,this.firstVisibleIndex+this._estRowsInView*this._itemsPerRow-1);else{var c=this._physicalTop+this._scrollOffset;this._iterateItems(function(m,b){c<this._scrollBottom&&(J=b);c+=this._getPhysicalSizeIncrement(m)})}this._lastVisibleIndexVal=J}return J},
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,_.rp);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(J){this.style.webkitOverflowScrolling=J===this?"touch":"";this.style.overflowY=J===this?"auto":"";this._firstVisibleIndexVal=this._lastVisibleIndexVal=null;this._debounce("_render",this._render,_.rp)},
updateViewportBoundaries:function(){var J=window.getComputedStyle(this);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(J["padding-top"],10);this._isRTL=J.direction==="rtl";this._viewportWidth=this.$.items.offsetWidth;this._viewportHeight=this._scrollTargetHeight;this.grid&&this._updateGridMetrics()},
_scrollHandler:function(){var J=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop)),c=J-this._scrollPosition,m=c>=0;this._scrollPosition=J;this._lastVisibleIndexVal=this._firstVisibleIndexVal=null;Math.abs(c)>this._physicalSize&&this._physicalSize>0?(c-=this._scrollOffset,m=Math.round(c/this._physicalAverage)*this._itemsPerRow,this._virtualStart+=m,this._physicalStart+=m,this._physicalTop=Math.min(Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage,this._scrollPosition),this._update()):
this._physicalCount>0&&(J=this._getReusables(m),m?(this._physicalTop=J.physicalTop,this._virtualStart+=J.indexes.length,this._physicalStart+=J.indexes.length):(this._virtualStart=this._virtualStart-J.indexes.length,this._physicalStart=this._physicalStart-J.indexes.length),this._update(J.indexes,m?null:J.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),X6))},
_getReusables:function(J){var c=[],m=this._hiddenContentSize*this._ratio,b=this._virtualStart,x=this._virtualEnd,P=this._physicalCount,p=this._physicalTop+this._scrollOffset;var t=this._physicalBottom+this._scrollOffset;var I=this._scrollPosition,a=this._scrollBottom;if(J){var k=this._physicalStart;t=I-p}else k=this._physicalEnd,t-=a;for(;;){var H=this._getPhysicalSizeIncrement(k);t-=H;if(c.length>=P||t<=m)break;if(J){if(x+c.length+1>=this._virtualCount)break;if(p+H>=I-this._scrollOffset)break;c.push(k);
p+=H;k=(k+1)%P}else{if(b-c.length<=0)break;if(p+this._physicalSize-H<=a)break;c.push(k);p-=H;k=k===0?P-1:k-1}}return{indexes:c,physicalTop:p-this._scrollOffset}},
_update:function(J,c){if(!(J&&J.length===0||this._physicalCount===0)){this._manageFocus();this._assignModels(J);this._updateMetrics(J);if(c)for(;c.length;)J=c.pop(),this._physicalTop-=this._getPhysicalSizeIncrement(J);this._positionItems();this._updateScrollerSize()}},
_createPool:function(J){this._ensureTemplatized();var c,m=Array(J);for(c=0;c<J;c++){var b=this.stamp(null);m[c]=b.root.querySelector("*");this._itemsParent.appendChild(b.root)}return m},
_isClientFull:function(){return this._scrollBottom!=0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},
_increasePoolIfNeeded:function(J){J=this._clamp(this._physicalCount+J,3,this._virtualCount-this._virtualStart);J=this._convertIndexToCompleteRow(J);if(this.grid){var c=J%this._itemsPerRow;c&&J-c<=this._physicalCount&&(J+=this._itemsPerRow);J-=c}J-=this._physicalCount;c=Math.round(this._physicalCount*.5);if(!(J<0)){if(J>0){c=window.performance.now();[].push.apply(this._physicalItems,this._createPool(J));for(var m=0;m<J;m++)this._physicalSizes.push(0);this._physicalCount+=J;this._physicalStart>this._physicalEnd&&
this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=J);this._update();this._templateCost=(window.performance.now()-c)/J;c=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||c===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,c)),VEZ):this._debounce("_increasePoolIfNeeded",
this._increasePoolIfNeeded.bind(this,c),X6))}},
_render:function(){if(this.isAttached&&this._isVisible)if(this._physicalCount!==0){var J=this._getReusables(!0);this._physicalTop=J.physicalTop;this._virtualStart+=J.indexes.length;this._physicalStart+=J.indexes.length;this._update(J.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 J={__key__:!0};J[this.as]=!0;J[this.indexAs]=!0;J[this.selectedAs]=!0;J.tabIndex=!0;this._instanceProps=J;this.templatize(this._userTemplate,this.mutableData)}},
_gridChanged:function(J,c){typeof c!=="undefined"&&(this.notifyResize(),_.be(),J&&this._updateGridMetrics())},
_itemsChanged:function(J){if(J.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,
_.rp);else if(J.path==="items.splices"){this._adjustVirtualIndex(J.value.indexSplices);this._virtualCount=this.items?this.items.length:0;if(J.value.indexSplices.some(function(m){return m.addedCount>0||m.removed.length>0})){var c=this._getActiveElement();
this.contains(c)&&c.blur()}J=J.value.indexSplices.some(function(m){return m.index+m.addedCount>=this._virtualStart&&m.index<=this._virtualEnd},this);
this._isClientFull()&&!J||this._debounce("_render",this._render,_.rp)}else J.path!=="items.length"&&this._forwardItemPath(J.path,J.value)},
_forwardItemPath:function(J,c){J=J.slice(6);var m=J.indexOf(".");m===-1&&(m=J.length);var b,x=this.modelForElement(this._offscreenFocusedItem),P=parseInt(J.substring(0,m),10);if(b=this._isIndexRendered(P)){var p=this._getPhysicalIndex(P);var t=this.modelForElement(this._physicalItems[p])}else x&&(t=x);t&&t[this.indexAs]===P&&(J=J.substring(m+1),J=this.as+(J?"."+J:""),t._setPendingPropertyOrPath(J,c,!1,!0),t._flushProperties&&t._flushProperties(),b&&(this._updateMetrics([p]),this._positionItems(),
this._updateScrollerSize()))},
_adjustVirtualIndex:function(J){J.forEach(function(c){c.removed.forEach(this._removeItem,this);c.index<this._virtualStart&&(c=Math.max(c.addedCount-c.removed.length,c.index-this._virtualStart),this._virtualStart+=c,this._focusedVirtualIndex>=0&&(this._focusedVirtualIndex+=c))},this)},
_removeItem:function(J){this.$.selector.deselect(J);this._focusedItem&&this.modelForElement(this._focusedItem)[this.as]===J&&this._removeFocusedItem()},
_iterateItems:function(J,c){var m,b;if(arguments.length===2&&c)for(b=0;b<c.length;b++){var x=c[b];var P=this._computeVidx(x);if((m=J.call(this,x,P))!=null)return m}else{x=this._physicalStart;for(P=this._virtualStart;x<this._physicalCount;x++,P++)if((m=J.call(this,x,P))!=null)return m;for(x=0;x<this._physicalStart;x++,P++)if((m=J.call(this,x,P))!=null)return m}},
_computeVidx:function(J){return J>=this._physicalStart?this._virtualStart+(J-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+J},
_assignModels:function(J){this._iterateItems(function(c,m){var b=this._physicalItems[c],x=this.items&&this.items[m];if(x!=null){var P=this.modelForElement(b);P.__key__=null;this._forwardProperty(P,this.as,x);this._forwardProperty(P,this.selectedAs,this.$.selector.isSelected(x));this._forwardProperty(P,this.indexAs,m);this._forwardProperty(P,"tabIndex",this._focusedVirtualIndex===m?0:-1);this._physicalIndexForKey[P.__key__]=c;P._flushProperties&&P._flushProperties(!0);b.removeAttribute("hidden")}else b.setAttribute("hidden",
"")},J)},
_updateMetrics:function(J){_.be();var c=0,m=0,b=this._physicalAverageCount,x=this._physicalAverage;this._iterateItems(function(P){m+=this._physicalSizes[P];this._physicalSizes[P]=this._physicalItems[P].offsetHeight;c+=this._physicalSizes[P];this._physicalAverageCount+=this._physicalSizes[P]?1:0},J);
this.grid?(this._updateGridMetrics(),this._physicalSize=Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight):(m=this._itemsPerRow===1?m:Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight,this._physicalSize=this._physicalSize+c-m,this._itemsPerRow=1);this._physicalAverageCount!==b&&(this._physicalAverage=Math.round((x*b+c)/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 J=this._physicalTop;if(this.grid){var c=(this._viewportWidth-this._itemsPerRow*this._itemWidth)/2;this._iterateItems(function(m,b){var x=Math.floor(b%this._itemsPerRow*this._itemWidth+c);this._isRTL&&(x*=-1);this.translate3d(x+"px",J+"px",0,this._physicalItems[m]);this._shouldRenderNextRow(b)&&(J+=this._rowHeight)})}else this._iterateItems(function(m){this.translate3d(0,J+"px",0,this._physicalItems[m]);
J+=this._physicalSizes[m]})},
_getPhysicalSizeIncrement:function(J){return this.grid?this._computeVidx(J)%this._itemsPerRow!==this._itemsPerRow-1?0:this._rowHeight:this._physicalSizes[J]},
_shouldRenderNextRow:function(J){return J%this._itemsPerRow===this._itemsPerRow-1},
_adjustScrollPosition:function(){var J=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(J!==0){this._physicalTop=this._physicalTop-J;var c=this._scrollPosition;!tpz&&c>0&&this._resetScrollPosition(c-J)}},
_resetScrollPosition:function(J){this.scrollTarget&&J>=0&&(this._scrollPosition=this._scrollTop=J)},
_updateScrollerSize:function(J){this.grid?this._estScrollHeight=this._virtualRowCount*this._rowHeight:this._estScrollHeight=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;if((J=(J=(J=J||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(J){return this.scrollToIndex(this.items.indexOf(J))},
scrollToIndex:function(J){if(!(typeof J!=="number"||J<0||J>this.items.length-1)&&(_.be(),this._physicalCount!==0)){J=this._clamp(J,0,this._virtualCount-1);if(!this._isIndexRendered(J)||J>=this._maxVirtualStart)this._virtualStart=this.grid?J-this._itemsPerRow*2:J-1;this._manageFocus();this._assignModels();this._updateMetrics();this._physicalTop=Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage;for(var c=this._physicalStart,m=this._virtualStart,b=0,x=this._hiddenContentSize;m<J&&
b<=x;)b+=this._getPhysicalSizeIncrement(c),c=(c+1)%this._physicalCount,m++;this._updateScrollerSize(!0);this._positionItems();this._resetScrollPosition(this._physicalTop+this._scrollOffset+b);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)},_.rp)},
selectItem:function(J){return this.selectIndex(this.items.indexOf(J))},
selectIndex:function(J){if(!(J<0||J>=this._virtualCount)){!this.multiSelection&&this.selectedItem&&this.clearSelection();if(this._isIndexRendered(J)){var c=this.modelForElement(this._physicalItems[this._getPhysicalIndex(J)]);c&&(c[this.selectedAs]=!0);this.updateSizeForIndex(J)}this.$.selector.selectIndex(J)}},
deselectItem:function(J){return this.deselectIndex(this.items.indexOf(J))},
deselectIndex:function(J){J<0||J>=this._virtualCount||(this._isIndexRendered(J)&&(this.modelForElement(this._physicalItems[this._getPhysicalIndex(J)])[this.selectedAs]=!1,this.updateSizeForIndex(J)),this.$.selector.deselectIndex(J))},
toggleSelectionForItem:function(J){return this.toggleSelectionForIndex(this.items.indexOf(J))},
toggleSelectionForIndex:function(J){(this.$.selector.isIndexSelected?this.$.selector.isIndexSelected(J):this.$.selector.isSelected(this.items[J]))?this.deselectIndex(J):this.selectIndex(J)},
clearSelection:function(){this._iterateItems(function(J){this.modelForElement(this._physicalItems[J])[this.selectedAs]=!1});
this.$.selector.clearSelection()},
_selectionEnabledChanged:function(J){(J?this.listen:this.unlisten).call(this,this,"tap","_selectionHandler")},
_selectionHandler:function(J){var c=this.modelForElement(J.target);if(c){var m=_.rK(J).path[0];J=this._getActiveElement();var b=this._physicalItems[this._getPhysicalIndex(c[this.indexAs])];if(m.localName!=="input"&&m.localName!=="button"&&m.localName!=="select"){m=c.tabIndex;c.tabIndex=-100;var x=J?J.tabIndex:-1;c.tabIndex=m;J&&b!==J&&b.contains(J)&&x!==-100||this.toggleSelectionForItem(c[this.as])}}},
_multiSelectionChanged:function(J){this.clearSelection();this.$.selector.multi=J},
updateSizeForItem:function(J){return this.updateSizeForIndex(this.items.indexOf(J))},
updateSizeForIndex:function(J){if(!this._isIndexRendered(J))return null;this._updateMetrics([this._getPhysicalIndex(J)]);this._positionItems();return null},
_manageFocus:function(){var J=this._focusedVirtualIndex;J>=0&&J<this._virtualCount?this._isIndexRendered(J)?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(J){this._itemsPerRow=this._itemsPerRow||1;return this.grid?Math.ceil(J/this._itemsPerRow)*this._itemsPerRow:J},
_isIndexRendered:function(J){return J>=this._virtualStart&&J<=this._virtualEnd},
_isIndexVisible:function(J){return J>=this.firstVisibleIndex&&J<=this.lastVisibleIndex},
_getPhysicalIndex:function(J){return(this._physicalStart+(J-this._virtualStart))%this._physicalCount},
focusItem:function(J){this._focusPhysicalItem(J)},
_focusPhysicalItem:function(J){if(!(J<0||J>=this._virtualCount)){this._restoreFocusedItem();this._isIndexRendered(J)||this.scrollToIndex(J);var c=this._physicalItems[this._getPhysicalIndex(J)],m=this.modelForElement(c),b;m.tabIndex=-100;c.tabIndex===-100&&(b=c);b||(b=_.rK(c).querySelector('[tabindex="-100"]'));m.tabIndex=0;this._focusedVirtualIndex=J;b&&b.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 J=this._focusedPhysicalIndex;if(!(this._offscreenFocusedItem||this._focusedVirtualIndex<0)){if(!this._focusBackfillItem){var c=this.stamp(null);this._focusBackfillItem=c.root.querySelector("*");this._itemsParent.appendChild(c.root)}this._offscreenFocusedItem=this._physicalItems[J];this.modelForElement(this._offscreenFocusedItem).tabIndex=0;this._physicalItems[J]=this._focusBackfillItem;this._focusedPhysicalIndex=J;this.translate3d(0,"-10000px",0,this._offscreenFocusedItem)}},
_restoreFocusedItem:function(){if(this._offscreenFocusedItem&&!(this._focusedVirtualIndex<0)){this._assignModels();var J=this._focusedPhysicalIndex=this._getPhysicalIndex(this._focusedVirtualIndex),c=this._physicalItems[J];if(c){var m=this.modelForElement(c),b=this.modelForElement(this._offscreenFocusedItem);m[this.as]===b[this.as]?(this._focusBackfillItem=c,m.tabIndex=-1,this._physicalItems[J]=this._offscreenFocusedItem,this.translate3d(0,"-10000px",0,this._focusBackfillItem)):(this._removeFocusedItem(),
this._focusBackfillItem=null);this._offscreenFocusedItem=null}}},
_didFocus:function(J){J=this.modelForElement(J.target);var c=this.modelForElement(this._focusedItem),m=this._offscreenFocusedItem!==null,b=this._focusedVirtualIndex;J&&(c===J?this._isIndexVisible(b)||this.scrollToIndex(b):(this._restoreFocusedItem(),c&&(c.tabIndex=-1),J.tabIndex=0,this._focusedVirtualIndex=b=J[this.indexAs],this._focusedPhysicalIndex=this._getPhysicalIndex(b),this._focusedItem=this._physicalItems[this._focusedPhysicalIndex],m&&!this._offscreenFocusedItem&&this._update()))},
_keydownHandler:function(J){switch(J.keyCode){case 40:this._focusedVirtualIndex<this._virtualCount-1&&J.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&&J.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(J)}},
_clamp:function(J,c,m){return Math.min(m,Math.max(c,J))},
_debounce:function(J,c,m){this._debouncers=this._debouncers||{};this._debouncers[J]=_.BE(this._debouncers[J],m,c.bind(this));_.gD(this._debouncers[J])},
_forwardProperty:function(J,c,m){J._setPendingProperty(c,m)},
_forwardHostPropV2:function(J,c){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(m){m&&this.modelForElement(m).forwardHostProp(J,c)},this)},
_notifyInstancePropV2:function(J,c,m){oxe(this.as,c)&&(J=J[this.indexAs],c==this.as&&(this.items[J]=m),this.notifyPath(t5(this.as,"items."+J,c),m))},
_getStampedChildren:function(){return this._physicalItems},
_forwardInstancePath:function(J,c,m){c.indexOf(this.as+".")===0&&this.notifyPath("items."+J.__key__+"."+c.slice(this.as.length+1),m)},
_forwardParentPath:function(J,c){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(m){m&&this.modelForElement(m).notifyPath(J,c)},this)},
_forwardParentProp:function(J,c){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(m){m&&(this.modelForElement(m)[J]=c)},this)},
_getActiveElement:function(){var J=this._itemsParent.node.domHost;return _.rK(J?J.root:document).activeElement},
_scrollTargetChanged:function(J,c){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);if(c)if(J==="document")this.scrollTarget=this._doc;else if(typeof J==="string"){var m,b;this.scrollTarget=(c=(b=(m=this.domHost)==null?void 0:m.polymerController)!=null?b:this.domHost)&&c.$?c.$[J]:_.rK(this.ownerDocument).querySelector("#"+J)}else this._isValidScrollTarget()&&(this._oldScrollTarget=J,this._toggleScrollListener(this._shouldHaveListener,J))}});var ILu;var K$Q;var CBj=function(J,c,m,b){J-=m;c-=b;return Math.sqrt(J*J+c*c)},aLj=window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now;
GyG.prototype={get boundingRect(){return this.element.getBoundingClientRect()}};var E8D=function(J){J.maxRadius=0;J.mouseDownStart=0;J.mouseUpStart=0;J.xStart=0;J.yStart=0;J.xEnd=0;J.yEnd=0;J.containerMetrics=new GyG(J.element)};
v8r.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){if(!this.mouseDownStart)return 0;var J=aLj()-this.mouseDownStart;this.mouseUpStart&&(J-=this.mouseUpElapsed);return J},get mouseUpElapsed(){return this.mouseUpStart?aLj()-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 J=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(J*(1-Math.pow(80,-(this.mouseInteractionSeconds/(1.1-J/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 J=this.radius/(this.containerMetrics.size/2);var c=this.xNow-this.containerMetrics.width/2;var m=this.yNow-this.containerMetrics.height/
2;this.waveContainer.style.webkitTransform="translate("+c+"px, "+m+"px)";this.waveContainer.style.transform="translate3d("+c+"px, "+m+"px, 0)";this.wave.style.webkitTransform="scale("+J+","+J+")";this.wave.style.transform="scale3d("+J+","+J+",1)"},
downAction:function(J){var c=this.containerMetrics.width/2,m=this.containerMetrics.height/2;E8D(this);this.mouseDownStart=aLj();this.center?(this.xStart=c,this.yStart=m):(this.xStart=J?J.detail.x-this.containerMetrics.boundingRect.left:this.containerMetrics.width/2,this.yStart=J?J.detail.y-this.containerMetrics.boundingRect.top:this.containerMetrics.height/2);this.recenters&&(this.xEnd=c,this.yEnd=m);J=this.containerMetrics;c=this.xStart;m=this.yStart;this.maxRadius=Math.max(CBj(c,m,0,0),CBj(c,m,
J.width,0),CBj(c,m,0,J.height),CBj(c,m,J.width,J.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=aLj())},
remove:function(){_.rK(_.rK(this.waveContainer).parentNode).removeChild(this.waveContainer)}};
_.sB({_template:function(){if(K$Q!==void 0)return K$Q;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);var c=J.content,m=c.insertBefore;ILu===void 0&&(ILu=document.createElement("template"));var b=ILu;m.call(c,b.content.cloneNode(!0),J.content.firstChild);return K$Q=J},
is:"tp-yt-paper-ripple",behaviors:[_.KV],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(){_.rK(this).parentNode.nodeType==11?this.keyEventTarget=_.rK(this).getOwnerRoot().host:this.keyEventTarget=_.rK(this).parentNode;var J=this.keyEventTarget;this.listen(J,"up","uiUpAction");this.listen(J,"down","uiDownAction")},
detached:function(){this.unlisten(this.keyEventTarget,"up","uiUpAction");this.unlisten(this.keyEventTarget,"down","uiDownAction");this.keyEventTarget=null;this.ripples.forEach(function(J){J.remove()});
this.ripples.length=0;this._setAnimating(!1)},
get shouldKeepAnimating(){for(var J=0;J<this.ripples.length;++J)if(!this.ripples[J].isAnimationComplete)return!0;return!1},simulatedRipple:function(){this.downAction(null);this.async(function(){this.upAction()},1)},
uiDownAction:function(J){this.noink||this.downAction(J)},
downAction:function(J){this.holdDown&&this.ripples.length>0||(this.addRipple().downAction(J),this._animating||(this._animating=!0,this.animate()))},
uiUpAction:function(J){this.noink||this.upAction(J)},
upAction:function(J){this.holdDown||(this.ripples.forEach(function(c){c.upAction(J)}),this._animating=!0,this.animate())},
onAnimationComplete:function(){for(var J=0;J<this.ripples.length;++J){var c=this.ripples[J];c.isOpacityFullyDecayed&&!c.isRestingAtMaxRadius&&this.removeRipple(c)}this._animating=!1;this.$.background.style.backgroundColor="";this.fire("transitionend")},
addRipple:function(){var J=new v8r(this);_.rK(this.$.waves).appendChild(J.waveContainer);this.$.background.style.backgroundColor=J.color;this.ripples.push(J);this._setAnimating(!0);return J},
removeRipple:function(J){var c=this.ripples.indexOf(J);c<0||(this.ripples.splice(c,1),J.remove(),this.ripples.length||this._setAnimating(!1))},
animate:function(){if(this._animating){var J;for(J=0;J<this.ripples.length;++J){var c=this.ripples[J];c.draw();this.$.background.style.opacity=c.outerOpacity;c.isOpacityFullyDecayed&&!c.isRestingAtMaxRadius&&this.removeRipple(c)}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(J,c){c!==void 0&&(J?this.downAction():this.upAction())}});var $U={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_rippleContainer:{type:Object},_ripple:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ensureRipple()},
_downHandler:function(J){ae._downHandler.call(this,J);this.pressed&&this.ensureRipple(J)},
ensureRipple:function(J){if(!this.hasRipple()){this._ripple=this._createRipple();this._ripple.noink=this.noink;var c=this._rippleContainer||this.root;c&&_.rK(c).appendChild(this._ripple);if(J){c=_.rK(this._rippleContainer||this);var m=_.rK(J).rootTarget;c.deepContains(m)&&this._ripple.uiDownAction(J)}}},
getRipple:function(){this.ensureRipple();return this._ripple},
hasRipple:function(){return!!this._ripple},
_createRipple:function(){return document.createElement("tp-yt-paper-ripple")},
_noinkChanged:function(J){this.hasRipple()&&(this._ripple.noink=J)}};var kHL={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 J=1;this.disabled?J=0:this.active||this.pressed?J=4:this.receivedFocusFromKeyboard&&(J=3);this._setElevation(J)},
_computeKeyboardClass:function(J){this.toggleClass("keyboard-focus",J)},
_spaceKeyDownHandler:function(J){ae._spaceKeyDownHandler.call(this,J);this.hasRipple()&&this.getRipple().ripples.length<1&&this._ripple.uiDownAction()},
_spaceKeyUpHandler:function(J){ae._spaceKeyUpHandler.call(this,J);this.hasRipple()&&this._ripple.uiUpAction()}},Hq$=[Lq2,
_.CV,$U,kHL];_.iqQ={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(J){J&&this.ensureRipple();this.hasRipple()&&(this._ripple.holdDown=J)},
_createRipple:function(){var J=$U._createRipple();J.id="ink";J.setAttribute("center","");J.classList.add("circle");return J}};
_.nxu=[Lq2,_.CV,$U,_.iqQ];_.TsQ=[_.nxu,z8Z,{_checkedChanged:function(){WqC._checkedChanged.call(this);this.hasRipple()&&(this.checked?this._ripple.setAttribute("checked",""):this._ripple.removeAttribute("checked"))},
_buttonStateChanged:function(){$U._buttonStateChanged.call(this);!this.disabled&&this.isAttached&&(this.checked=this.active)}}];var wP_;var rP$;var sO_=function(){};
_.V=sO_.prototype;_.V.registered=function(){};
_.V.addOwnKeyBinding=function(){};
_.V.removeOwnKeyBindings=function(){};
_.V.keyboardEventMatchesKeys=function(){};
_.V._collectKeyBindings=function(){};
_.V._prepKeyBindings=function(){};
_.V._addKeyBinding=function(){};
_.V._resetKeyEventListeners=function(){};
_.V._listenKeyEventListeners=function(){};
_.V._unlistenKeyEventListeners=function(){};
_.V._onKeyBindingEvent=function(){};
_.V._triggerKeyHandler=function(){};
_.V._tapHandler=function(){};
_.V._focusChanged=function(){};
_.V._detectKeyboardFocus=function(){};
_.V._userActivate=function(){};
_.V._upHandler=function(){};
_.V._asyncClick=function(){};
_.V._pressedChanged=function(){};
_.V._ariaActiveAttributeChanged=function(){};
_.V._activeChanged=function(){};
_.V._controlStateChanged=function(){};
_.V._changedButtonState=function(){};
_.V._focusBlurHandler=function(){};
_.V._disabledChanged=function(){};
_.V._changedControlState=function(){};
_.V._buttonStateChanged=function(){};
_.V._downHandler=function(){};
_.V.ensureRipple=function(){};
_.V.getRipple=function(){};
_.V.hasRipple=function(){};
_.V._createRipple=function(){};
_.V._noinkChanged=function(){};
_.V._computeKeyboardClass=function(){};
_.V._spaceKeyDownHandler=function(){};
_.V._spaceKeyUpHandler=function(){};
_.V._setPressed=function(){};
_.V._setPointerDown=function(){};
_.V._setReceivedFocusFromKeyboard=function(){};
_.V._setFocused=function(){};
_.V._setElevation=function(){};
sO_=_.sB({_template:function(){if(rP$!==void 0)return rP$;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);
var c=J.content,m=c.insertBefore;wP_===void 0&&(wP_=document.createElement("template"));var b=wP_;m.call(c,b.content.cloneNode(!0),J.content.firstChild);return rP$=J},
is:"tp-yt-paper-button",hostAttributes:{"style-target":"host"},behaviors:[Hq$],properties:{raised:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"_calculateElevation"}},_calculateElevation:function(){this.raised?kHL._calculateElevation.apply(this):this._setElevation(0)}});var L$Z;var Ddj;var W$Q={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(J){_.w("dialog_behavior_no_tap_killswitch")&&this._onDialogClick(J)},
_onDialogClickWrapped:function(J){_.w("dialog_behavior_no_tap_killswitch")||this._onDialogClick(J)},
ready:function(){this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick;this.__prevNoCancelOnEscKey=this.noCancelOnEscKey;this.__prevWithBackdrop=this.withBackdrop;this.__readied=!0},
_modalChanged:function(J,c){c&&(J?(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(J){this.closingReason=this.closingReason||{};this.closingReason.confirmed=J},
_onDialogClick:function(J){for(var c=_.rK(J).path,m=0,b,x=c.indexOf((b=this.hostElement)!=null?b:this);m<x;m++)if(b=c[m],b.hasAttribute&&(b.hasAttribute("dialog-dismiss")||b.hasAttribute("dialog-confirm"))){this._updateClosingReasonConfirmed(b.hasAttribute("dialog-confirm"));this.close();J.stopPropagation();break}}},zp8=[_.dI,
W$Q];var uGz=document.createElement("template");_.z(uGz,'<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(uGz.content);var fL_=document.createElement("template");_.z(fL_,'<custom-style><style is="custom-style"></style></custom-style>');document.head.appendChild(fL_.content);_.sB({_template:function(){if(Ddj!==void 0)return Ddj;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);
var c=J.content,m=c.insertBefore;L$Z===void 0&&(L$Z=document.createElement("template"));var b=L$Z;m.call(c,b.content.cloneNode(!0),J.content.firstChild);return Ddj=J},
is:"tp-yt-paper-dialog",hostAttributes:{"style-target":"host"},behaviors:[zp8,h8_],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 YiQ;var XP8;_.sB({_template:function(){if(XP8!==void 0)return XP8;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);var c=J.content,m=c.insertBefore;YiQ===void 0&&(YiQ=document.createElement("template"));var b=YiQ;m.call(c,b.content.cloneNode(!0),J.content.firstChild);return XP8=J},
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 J,c,m;if(((J=window.ShadyDOM)==null?void 0:J.noPatch)!==!0&&((c=window.ShadyDOM)==null?void 0:c.noPatch)!=="on-demand"||((m=this.__shady_parentNode)==null?void 0:m.nodeName)!=="#document-fragment")this.dialogElement=this.dialogElement||this.parentElement;this.dialogElement&&this.dialogElement.behaviors&&this.dialogElement.behaviors.indexOf(W$Q)>=0?(this.dialogElement.sizingTarget=this.scrollTarget,this.scrollTarget.classList.remove("fit")):this.dialogElement&&this.scrollTarget.classList.add("fit")}});var Zqj=_.Oo(['<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>']),qiC=_.f1j(Zqj);qiC.setAttribute("style","display: none;");document.head.appendChild(qiC.content);var Ud2;var Si$;var hpj;var ddj;_.sB({is:"tp-yt-paper-menu-grow-height-animation",_template:null,behaviors:[sq],configure:function(J){var c=J.node,m=c.getBoundingClientRect().height;return this._effect=new KeyframeEffect(c,[{height:m/2+"px"},{height:m+"px"}],this.timingFromConfig(J))}});
_.sB({is:"tp-yt-paper-menu-grow-width-animation",_template:null,behaviors:[sq],configure:function(J){var c=J.node,m=c.getBoundingClientRect().width;return this._effect=new KeyframeEffect(c,[{width:m/2+"px"},{width:m+"px"}],this.timingFromConfig(J))}});
_.sB({is:"tp-yt-paper-menu-shrink-width-animation",_template:null,behaviors:[sq],configure:function(J){var c=J.node,m=c.getBoundingClientRect().width;return this._effect=new KeyframeEffect(c,[{width:m+"px"},{width:m-m/20+"px"}],this.timingFromConfig(J))}});
_.sB({is:"tp-yt-paper-menu-shrink-height-animation",_template:null,behaviors:[sq],configure:function(J){var c=J.node,m=c.getBoundingClientRect().height;this.setPrefixedProperty(c,"transformOrigin","0 0");return this._effect=new KeyframeEffect(c,[{height:m+"px",transform:"translateY(0)"},{height:m/2+"px",transform:"translateY(-20px)"}],this.timingFromConfig(J))}});var GY={ANIMATION_CUBIC_BEZIER:"cubic-bezier(.3,.95,.5,1)",MAX_ANIMATION_TIME_MS:400},$dZ=function(){};
_.V=$dZ.prototype;_.V.registered=function(){};
_.V.addOwnKeyBinding=function(){};
_.V.removeOwnKeyBindings=function(){};
_.V.keyboardEventMatchesKeys=function(){};
_.V._collectKeyBindings=function(){};
_.V._prepKeyBindings=function(){};
_.V._addKeyBinding=function(){};
_.V._resetKeyEventListeners=function(){};
_.V._listenKeyEventListeners=function(){};
_.V._unlistenKeyEventListeners=function(){};
_.V._onKeyBindingEvent=function(){};
_.V._triggerKeyHandler=function(){};
_.V._focusBlurHandler=function(){};
_.V._changedControlState=function(){};
_.V._setFocused=function(){};
$dZ=_.sB({_template:function(){if(ddj!==void 0)return ddj;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);var c=J.content,m=c.insertBefore;hpj===void 0&&(hpj=document.createElement("template"));var b=hpj;m.call(c,b.content.cloneNode(!0),J.content.firstChild);return ddj=J},
is:"tp-yt-paper-menu-button",behaviors:[_.KV,_.CV],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:GY.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-grow-height-animation",timing:{delay:100,duration:275,easing:GY.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:GY.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 J=_.rK(this.$.content).getDistributedNodes(),c=0,m=J.length;c<m;c++)if(J[c].nodeType===Node.ELEMENT_NODE)return J[c]},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(J,c){J?(this._dropdownContent=this.contentElement,this.fire("paper-dropdown-open")):c!=null&&this.fire("paper-dropdown-close")},
_disabledChanged:function(J){_.CV._disabledChanged.apply(this,arguments);J&&this.opened&&this.close()},
__onIronOverlayCanceled:function(J){var c=this.$.trigger;_.rK(J.detail).path.indexOf(c)>-1&&J.preventDefault()}});
Object.keys(GY).forEach(function(J){$dZ[J]=GY[J]});var GHQ=_.kU.IronButtonState,Ex8=(0,_.KH)(HTMLElement);
_.sB({_template:function(){if(Si$!==void 0)return Si$;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;Ud2===void 0&&(Ud2=document.createElement("template"));var b=Ud2;m.call(c,b.content.cloneNode(!0),J.content.firstChild);return Si$=J},
is:"tp-yt-paper-dropdown-menu-light",hostAttributes:{"style-target":"host"},behaviors:[GHQ,_.CV,$U,_.HY,_.TY],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(J){var c=(0,_.kA)(this);c.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:J});c.shadowRoot.appendChild(J);return Ex8.prototype._attachDom.call(this,J)},
focus:function(){this.$["dropdown-trigger"].focus()},
attached:function(){var J=this.contentElement;J&&J.selectedItem&&this._setSelectedItem(J.selectedItem)},
get contentElement(){for(var J=_.rK(this.$.content).getDistributedNodes(),c=0,m=J.length;c<m;c++)if(J[c].nodeType===Node.ELEMENT_NODE)return J[c]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(J){this._setSelectedItem(J.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(J){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(J)===this&&this.open()},
_selectedItemChanged:function(J){var c="";J?c=J.label||J.getAttribute("label")||J.textContent.trim():c="";this.value=c;this._setSelectedItemLabel(c)},
_computeMenuVerticalOffset:function(J,c){return c?c:J?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var J=this.opened?"true":"false",c=this.contentElement;c&&c.setAttribute("aria-expanded",J)},
_computeLabelClass:function(J,c,m){var b="label";if(J)m&&(b+=" label-is-hidden");else if(m||c)b+=" label-is-floating";return b},
_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 vxC;var OqC;_.sB({is:"tp-yt-paper-icon-button",_template:function(){if(OqC!==void 0)return OqC;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);var c=J.content,m=c.insertBefore;vxC===void 0&&(vxC=document.createElement("template"));var b=vxC;m.call(c,b.content.cloneNode(!0),J.content.firstChild);return OqC=J},
hostAttributes:{role:"button",tabindex:"0","style-target":"host"},behaviors:[_.nxu],properties:{src:{type:String},icon:{type:String},alt:{type:String,observer:"_altChanged"}},_altChanged:function(J,c){var m=this.getAttribute("aria-label");m&&c!=m||this.setAttribute("aria-label",J)}});var APZ;var Rp6;_.Eq=[Lq2,_.CV,{hostAttributes:{role:"option",tabindex:"0"}}];_.sB({_template:function(){if(Rp6!==void 0)return Rp6;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);var c=J.content,m=c.insertBefore;APZ===void 0&&(APZ=document.createElement("template"));var b=APZ;m.call(c,b.content.cloneNode(!0),J.content.firstChild);return Rp6=J},
is:"tp-yt-paper-icon-item",hostAttributes:{"style-target":"host"},behaviors:[_.Eq]});var ox$;var QOC;var epB={attached:function(){this.fire("addon-attached")},
update:function(){}};var jO8=1,F$C=1,lL$=1,yPQ=[_.CV,_.KV,{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();!ob&&this.inputElement&&this._typesThatHaveText.indexOf(this.inputElement.type)!==-1&&(this.alwaysFloatLabel=!0)},
_appendStringWithSpace:function(J,c){J?J=J+" "+c:J=c;return J},
_onAddonAttached:function(J){J=_.rK(J).rootTarget;if(J.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,J.id);else{var c="paper-input-add-on-"+F$C++;J.id=c;this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,c)}},
validate:function(){return this.inputElement.validate()},
_focusBlurHandler:function(J){_.CV._focusBlurHandler.call(this,J);this.focused&&!this._shiftTabPressed&&this._focusableElement&&this._focusableElement.focus()},
_onShiftTabDown:function(){var J=this.getAttribute("tabindex");this._shiftTabPressed=!0;this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",J);this._shiftTabPressed=!1},1)},
_handleAutoValidate:function(){this.autoValidate&&this.validate()},
updateValueAndPreserveCaret:function(J){try{var c=this.inputElement.selectionStart;this.value=J;this.inputElement.selectionStart=c;this.inputElement.selectionEnd=c}catch(m){this.value=J}},
_computeAlwaysFloatLabel:function(J,c){return c||J},
_updateAriaLabelledBy:function(){var J=_.rK(this.root).querySelector("label");if(J){if(J.id)var c=J.id;else c="paper-input-label-"+jO8++,J.id=c;this._ariaLabelledBy=c}else this._ariaLabelledBy=""},
_generateInputId:function(){this._inputId&&this._inputId!==""||(this._inputId="input-"+lL$++)},
_onChange:function(J){this.shadowRoot&&this.fire(J.type,{sourceEvent:J},{node:this,bubbles:J.bubbles,cancelable:J.cancelable})},
_autofocusChanged:function(){if(this.autofocus&&this._focusableElement){var J=document.activeElement;J instanceof HTMLElement&&J!==document.body&&J!==document.documentElement||this._focusableElement.focus()}}}];var BsQ;var gxQ;_.sB({_template:function(){if(gxQ!==void 0)return gxQ;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);var c=J.content,m=c.insertBefore;BsQ===void 0&&(BsQ=document.createElement("template"));var b=BsQ;m.call(c,b.content.cloneNode(!0),J.content.firstChild);return gxQ=J},
is:"tp-yt-paper-input-char-counter",hostAttributes:{"style-target":"host"},behaviors:[epB],properties:{_charCounterStr:{type:String,value:"0"}},update:function(J){if(J.inputElement){J.value=J.value||"";var c=J.value.toString().length.toString();J.inputElement.hasAttribute("maxlength")&&(c+="/"+J.inputElement.getAttribute("maxlength"));this._charCounterStr=c}}});var JTC;var cTZ;_.sB({_template:function(){if(cTZ!==void 0)return cTZ;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);var c=J.content,m=c.insertBefore;JTC===void 0&&(JTC=document.createElement("template"));var b=JTC;m.call(c,b.content.cloneNode(!0),J.content.firstChild);return cTZ=J},
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 V8(this.attrForValue)},get _inputElement(){return _.rK(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(J){this._addons||(this._addons=[]);J=J.target;this._addons.indexOf(J)===-1&&(this._addons.push(J),this.isAttached&&this._handleValue(this._inputElement))},
_onFocus:function(){this._setFocused(!0)},
_onBlur:function(){this._setFocused(!1);this._handleValueAndAutoValidate(this._inputElement)},
_onInput:function(J){this._handleValueAndAutoValidate(J.target)},
_onValueChanged:function(J){var c=J.target;if(this.__isFirstValueUpdate&&(this.__isFirstValueUpdate=!1,c.value===void 0||c.value===""))return;this._handleValueAndAutoValidate(J.target)},
_handleValue:function(J){var c=this._inputElementValue;c||c===0||J.type==="number"&&!J.checkValidity()?this._inputHasContent=!0:this._inputHasContent=!1;this.updateAddons({inputElement:J,value:c,invalid:this.invalid})},
_handleValueAndAutoValidate:function(J){this.autoValidate&&J&&(this.invalid=!(J.validate?J.validate(this._inputElementValue):J.checkValidity()));this._handleValue(J)},
_onIronInputValidate:function(){this.invalid=this._inputElement.invalid},
_invalidChanged:function(){this._addons&&this.updateAddons({invalid:this.invalid})},
updateAddons:function(J){if(this._addons)for(var c,m=0;c=this._addons[m];m++)c.update(J)},
_computeInputContentClass:function(J,c,m,b,x){var P="input-content";J?(x&&(P+=" label-is-hidden"),b&&!this.noUnfloatedLabelError&&(P+=" is-invalid")):(J=this.querySelector("label"),c||x?(P+=" label-is-floating",this.$.labelAndInputContainer.style.position="static",b?P+=" is-invalid":m&&(P+=" label-is-highlighted")):(J&&(this.$.labelAndInputContainer.style.position="relative"),b&&!this.noUnfloatedLabelError&&(P+=" is-invalid")));m&&(P+=" focused");return P},
_computeUnderlineClass:function(J,c){var m="underline";c?m+=" is-invalid":J&&(m+=" is-highlighted");return m},
_computeAddOnContentClass:function(J,c){var m="add-on-content";c?m+=" is-invalid":J&&(m+=" is-highlighted");return m}});var mxQ;var bKB;_.sB({_template:function(){if(bKB!==void 0)return bKB;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);var c=J.content,m=c.insertBefore;mxQ===void 0&&(mxQ=document.createElement("template"));var b=mxQ;m.call(c,b.content.cloneNode(!0),J.content.firstChild);return bKB=J},
is:"tp-yt-paper-input-error",hostAttributes:{"style-target":"host"},behaviors:[epB],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(J){this._setInvalid(J.invalid)}});_.sB({is:"tp-yt-paper-input",_template:function(){if(QOC!==void 0)return QOC;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);var c=J.content,m=c.insertBefore;ox$===void 0&&(ox$=document.createElement("template"));var b=ox$;m.call(c,b.content.cloneNode(!0),J.content.firstChild);return QOC=J},
behaviors:[yPQ,_.HY],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 xxQ;var V8j;_.sB({_template:function(){if(V8j!==void 0)return V8j;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);var c=
J.content,m=c.insertBefore;xxQ===void 0&&(xxQ=document.createElement("template"));var b=xxQ;m.call(c,b.content.cloneNode(!0),J.content.firstChild);return V8j=J},
is:"tp-yt-paper-item",hostAttributes:{"style-target":"host"},behaviors:[_.Eq]});var P$2;var M8a;_.sB({_template:function(){if(M8a!==void 0)return M8a;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);
var c=J.content,m=c.insertBefore;P$2===void 0&&(P$2=document.createElement("template"));var b=P$2;m.call(c,b.content.cloneNode(!0),J.content.firstChild);return M8a=J},
is:"tp-yt-paper-item-body"});var pg2;var Nij;var t8$=function(){};
_.V=t8$.prototype;_.V.indexOf=function(){};
_.V.selectPrevious=function(){};
_.V.selectNext=function(){};
_.V.selectIndex=function(){};
_.V.forceSynchronousItemUpdate=function(){};
_.V._checkFallback=function(){};
_.V._addListener=function(){};
_.V._removeListener=function(){};
_.V._activateEventChanged=function(){};
_.V._updateItems=function(){};
_.V._selectSelected=function(){};
_.V._filterItem=function(){};
_.V._valueToItem=function(){};
_.V._valueToIndex=function(){};
_.V._indexToValue=function(){};
_.V._valueForItem=function(){};
_.V._observeItems=function(){};
_.V._itemActivate=function(){};
_.V.multiChanged=function(){};
_.V._updateAttrForSelected=function(){};
_.V._updateSelected=function(){};
_.V._selectMulti=function(){};
_.V._selectionChange=function(){};
_.V._toggleSelected=function(){};
_.V._valuesToItems=function(){};
_.V.registered=function(){};
_.V.addOwnKeyBinding=function(){};
_.V.removeOwnKeyBindings=function(){};
_.V.keyboardEventMatchesKeys=function(){};
_.V._collectKeyBindings=function(){};
_.V._prepKeyBindings=function(){};
_.V._addKeyBinding=function(){};
_.V._resetKeyEventListeners=function(){};
_.V._listenKeyEventListeners=function(){};
_.V._unlistenKeyEventListeners=function(){};
_.V._onKeyBindingEvent=function(){};
_.V._triggerKeyHandler=function(){};
_.V.select=function(){};
_.V._resetTabindices=function(){};
_.V._updateMultiselectable=function(){};
_.V._focusWithKeyboardEvent=function(){};
_.V._clearSearchText=function(){};
_.V._focusPrevious=function(){};
_.V._focusNext=function(){};
_.V._applySelection=function(){};
_.V._focusedItemChanged=function(){};
_.V._onIronItemsChanged=function(){};
_.V._onShiftTabDown=function(){};
_.V._onFocus=function(){};
_.V._onUpKey=function(){};
_.V._onDownKey=function(){};
_.V._onEscKey=function(){};
_.V._onKeydown=function(){};
_.V._activateHandler=function(){};
_.V._disabledChanged=function(){};
_.V._setSelectedItem=function(){};
_.V._setItems=function(){};
_.V._setSelectedItems=function(){};
_.V._setFocusedItem=function(){};
t8$=_.sB({_template:function(){if(Nij!==void 0)return Nij;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);
var c=J.content,m=c.insertBefore;pg2===void 0&&(pg2=document.createElement("template"));var b=pg2;m.call(c,b.content.cloneNode(!0),J.content.firstChild);return Nij=J},
is:"tp-yt-paper-listbox",behaviors:[X96],hostAttributes:{role:"listbox"}});var IIz;var Kf_;var C$a={properties:{active:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__activeChanged"},alt:{type:String,value:"loading",observer:"__altChanged"},__coolingDown:{type:Boolean,value:!1}},__computeContainerClasses:function(J,c){return[J||c?"active":"",c?"cooldown":""].join(" ")},
__activeChanged:function(J,c){this.__setAriaHidden(!J);this.__coolingDown=!J&&c},
__altChanged:function(J){this.setAttribute("aria-label",J||"loading")},
__setAriaHidden:function(J){J?this.setAttribute("aria-hidden","true"):this.removeAttribute("aria-hidden")},
__reset:function(){this.__coolingDown=this.active=!1}};_.sB({_template:function(){if(Kf_!==void 0)return Kf_;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);var c=J.content,m=c.insertBefore;IIz===void 0&&(IIz=document.createElement("template"));var b=IIz;m.call(c,b.content.cloneNode(!0),J.content.firstChild);return Kf_=J},
is:"tp-yt-paper-spinner",behaviors:[C$a]});var aIB;var k98;_.sB({_template:function(){if(k98!==void 0)return k98;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);var c=J.content,m=c.insertBefore;aIB===void 0&&(aIB=document.createElement("template"));var b=aIB;m.call(c,b.content.cloneNode(!0),J.content.firstChild);return k98=J},
is:"tp-yt-paper-spinner-lite",behaviors:[C$a]});var HK8;var iK6;_.sB({_template:function(){if(iK6!==void 0)return iK6;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);var c=J.content,m=c.insertBefore;HK8===void 0&&(HK8=document.createElement("template"));var b=HK8;m.call(c,b.content.cloneNode(!0),J.content.firstChild);return iK6=J},
is:"tp-yt-paper-tab",behaviors:[_.CV,_.kU.IronButtonState,$U],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 J=_.rK(this).parentNode;return!!J&&!!J.noink},_updateNoink:function(){this.noink=!!this.noink||!!this._parentNoink},
_onTap:function(J){if(this.link){var c=this.queryEffectiveChildren("a");c&&J.target!==c&&c.click()}}});var nMa;var TiZ;var wg_=_.Oo(['<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>']),rTQ=_.f1j(wg_);document.head.appendChild(rTQ.content);_.sB({_template:function(){if(TiZ!==void 0)return TiZ;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);var c=J.content,m=c.insertBefore;nMa===void 0&&(nMa=document.createElement("template"));var b=nMa;m.call(c,b.content.cloneNode(!0),J.content.firstChild);return TiZ=J},
is:"tp-yt-paper-tabs",behaviors:[_.rI,_.qB8],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(J){_.rK(this).querySelectorAll("tp-yt-paper-tab").forEach(J?this._setNoinkAttribute:this._removeNoinkAttribute)},
_setNoinkAttribute:function(J){J.setAttribute("noink","")},
_removeNoinkAttribute:function(J){J.removeAttribute("noink")},
_computeScrollButtonClass:function(J,c,m,b){return!c||m?"hidden":J?b?"hidden":"not-visible":""},
_computeTabsContentClass:function(J,c){var m="tabs-content";J&&(m+=" scrollable");if(!J||c)m+=" fit-container";return m},
_computeSelectionBarClass:function(J,c){var m="selection-bar";J?m+=" hidden":c&&(m+=" align-bottom");return m},
_onTabSizingChanged:function(){this.debounce("_onTabSizingChanged",function(){this._scroll();this._tabChanged(this.selectedItem)},10)},
_makeString:function(J){return""+J},
_onIronSelect:function(J){this._tabChanged(J.detail.item,this._previousTab);this._previousTab=J.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();_.wI._activateHandler.apply(this,arguments)},
_scheduleActivation:function(J,c){this._pendingActivationItem=J;this._pendingActivationTimeout=this.async(this._bindDelayedActivationHandler,c)},
_delayedActivationHandler:function(){var J=this._pendingActivationItem;this._pendingActivationTimeout=this._pendingActivationItem=void 0;J.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(J){J.target===this._pendingActivationItem&&this._cancelPendingActivation()},
get _tabContainerScrollSize(){return Math.max(0,this.$.tabsContainer.scrollWidth-this.$.tabsContainer.offsetWidth)},_scroll:function(J,c){this.scrollable&&this._affectScroll(c&&-c.ddx||0)},
_down:function(){this.async(function(){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null)},1)},
_affectScroll:function(J){this.$.tabsContainer.scrollLeft+=J;J=this.$.tabsContainer.scrollLeft;this._leftHidden=J===0||this.hideScrollButtons;this._rightHidden=J===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(J,c){if(J){var m=this.$.tabsContent.getBoundingClientRect(),b=m.width,x=J.getBoundingClientRect();m=x.left-m.left;this._pos={width:this._calcPercent(x.width,b),left:this._calcPercent(m,b)};if(this.noSlide||c==null)this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(this._pos.width,this._pos.left);else{var P=c.getBoundingClientRect();c=this.items.indexOf(c);J=this.items.indexOf(J);this.$.selectionBar.classList.add("expand");
J=c<J;this._isRTL&&(J=!J);J?this._positionBar(this._calcPercent(x.left+x.width-P.left,b)-5,this._left):this._positionBar(this._calcPercent(P.left+P.width-x.left,b)-5,this._calcPercent(m,b)+5);this.scrollable&&this._scrollToSelectedIfNeeded(x.width,m)}}else this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(0,0)},
_scrollToSelectedIfNeeded:function(J,c){c-=this.$.tabsContainer.scrollLeft;c<0?this.$.tabsContainer.scrollLeft+=c:(c+=J-this.$.tabsContainer.offsetWidth,c>0&&(this.$.tabsContainer.scrollLeft+=c))},
_calcPercent:function(J,c){return 100*J/c},
_positionBar:function(J,c){J=J||0;c=c||0;this._width=J;this._left=c;this.transform("translateX("+c+"%) scaleX("+J/100+")",this.$.selectionBar)},
_onBarTransitionEnd:function(){var J=this.$.selectionBar.classList;J.contains("expand")?(J.remove("expand"),J.add("contract"),this._positionBar(this._pos.width,this._pos.left)):J.contains("contract")&&J.remove("contract")}});var stC;var LfC;_.sB({_template:function(){if(LfC!==void 0)return LfC;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);var c=J.content,m=c.insertBefore;stC===void 0&&(stC=document.createElement("template"));var b=stC;m.call(c,b.content.cloneNode(!0),J.content.firstChild);return LfC=J},
is:"tp-yt-paper-textarea",behaviors:[yPQ,_.HY],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(J){this.$.input.textarea.selectionStart=J},get selectionEnd(){return this.$.input.textarea.selectionEnd},
set selectionEnd(J){this.$.input.textarea.selectionEnd=J},_ariaLabelledByChanged:function(J){this._focusableElement.setAttribute("aria-labelledby",J)},
_ariaDescribedByChanged:function(J){this._focusableElement.setAttribute("aria-describedby",J)},
get _focusableElement(){return this.inputElement.textarea}});var Dxj;var Wfj;/*

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 z1Q=function(){};
_.V=z1Q.prototype;_.V.addOwnKeyBinding=function(){};
_.V.removeOwnKeyBindings=function(){};
_.V.keyboardEventMatchesKeys=function(){};
_.V._collectKeyBindings=function(){};
_.V._prepKeyBindings=function(){};
_.V._addKeyBinding=function(){};
_.V._resetKeyEventListeners=function(){};
_.V._listenKeyEventListeners=function(){};
_.V._unlistenKeyEventListeners=function(){};
_.V._onKeyBindingEvent=function(){};
_.V._triggerKeyHandler=function(){};
_.V._tapHandler=function(){};
_.V._focusChanged=function(){};
_.V._detectKeyboardFocus=function(){};
_.V._userActivate=function(){};
_.V._upHandler=function(){};
_.V._spaceKeyDownHandler=function(){};
_.V._spaceKeyUpHandler=function(){};
_.V._asyncClick=function(){};
_.V._pressedChanged=function(){};
_.V._ariaActiveAttributeChanged=function(){};
_.V._activeChanged=function(){};
_.V._controlStateChanged=function(){};
_.V._changedButtonState=function(){};
_.V._focusBlurHandler=function(){};
_.V._disabledChanged=function(){};
_.V._changedControlState=function(){};
_.V._downHandler=function(){};
_.V.ensureRipple=function(){};
_.V.getRipple=function(){};
_.V.hasRipple=function(){};
_.V._noinkChanged=function(){};
_.V._focusedChanged=function(){};
_.V.registered=function(){};
_.V._invalidChanged=function(){};
_.V.hasValidator=function(){};
_.V.validate=function(){};
_.V._getValidity=function(){};
_.V._requiredChanged=function(){};
_.V._valueChanged=function(){};
_.V._checkedChanged=function(){};
_.V._buttonStateChanged=function(){};
_.V._setPressed=function(){};
_.V._setPointerDown=function(){};
_.V._setReceivedFocusFromKeyboard=function(){};
_.V._setFocused=function(){};
z1Q=_.sB({is:"tp-yt-paper-toggle-button",_template:function(){if(Wfj!==void 0)return Wfj;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);var c=J.content,m=c.insertBefore;Dxj===void 0&&(Dxj=document.createElement("template"));var b=Dxj;m.call(c,b.content.cloneNode(!0),J.content.firstChild);return Wfj=J},
behaviors:[_.TsQ],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");_.o3(this,function(){_.YA(this,"pan-y")})},
_ontrack:function(J){J=J.detail;J.state==="start"?this._trackStart(J):J.state==="track"?this._trackMove(J):J.state==="end"&&this._trackEnd(J)},
_trackStart:function(){this._isRtl=this.__calculateIsRtl();this._width=this.$.toggleBar.offsetWidth/2;this._trackChecked=this.checked;this.$.toggleButton.classList.add("dragging")},
_trackMove:function(J){J=J.dx;this._x=this._isRtl?Math.max(-this._width,Math.min(0,this._trackChecked?-this._width+J:J)):Math.min(this._width,Math.max(0,this._trackChecked?this._width+J:J));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 J=$U._createRipple();J.id="ink";J.setAttribute("recenters","");J.classList.add("circle","toggle-ink");return J}});var uUu;var fIQ;_.sB({_template:function(){if(fIQ!==void 0)return fIQ;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);var c=J.content,m=c.insertBefore;uUu===void 0&&(uUu=document.createElement("template"));var b=uUu;m.call(c,b.content.cloneNode(!0),J.content.firstChild);return fIQ=J},
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 J=_.rK(this).parentNode,c=_.rK(this).getOwnerRoot(),m;this.for?m=_.rK(c).querySelector("#"+this.for):m=J.nodeType==Node.DOCUMENT_FRAGMENT_NODE?c.host:J;return m},attached:function(){this._findTarget()},
detached:function(){this.manualMode||this._removeListeners()},
playAnimation:function(J){J==="entry"?this.show():J==="exit"&&this.hide()},
cancelAnimation:function(){this.$.tooltip.classList.add("cancel-animation")},
show:function(){if(!this._showing){if(!this.alwaysDisplay&&_.rK(this).textContent.trim()===""){for(var J=!0,c=_.rK(this).getEffectiveChildNodes(),m=0;m<c.length;m++)if(c[m].textContent.trim()!==""){J=!1;break}if(J)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 J=this.offset;this.marginTop!=14&&this.offset==14&&(J=this.marginTop);var c=this.offsetParent.getBoundingClientRect(),m=this._target.getBoundingClientRect(),b=this.getBoundingClientRect(),x=(m.width-b.width)/2,P=(m.height-b.height)/2,p=m.left-c.left,t=m.top-c.top;switch(this.position){case "top":var I=p+x;var a=t-b.height-J;break;case "bottom":I=p+x;a=t+m.height+J;break;case "left":I=p-b.width-J;a=t+P;break;case "right":I=p+m.width+
J,a=t+P}this.fitToVisibleBounds?(c.left+I+b.width>window.innerWidth?(this.style.right="0px",this.style.left="auto"):(this.style.left=Math.max(0,I)+"px",this.style.right="auto"),c.top+a+b.height>window.innerHeight?(this.style.bottom=c.height+"px",this.style.top="auto"):(this.style.top=Math.max(-c.top,a)+"px",this.style.bottom="auto")):(this.style.left=I+"px",this.style.top=a+"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(J){J!==500&&this.updateStyles({"--paper-tooltip-delay-in":J+"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(J){if(J==="entry"&&this.animationEntry!=="")return this.animationEntry;if(J==="exit"&&this.animationExit!=="")return this.animationExit;if(this.animationConfig[J]&&typeof this.animationConfig[J][0].name==="string"){if(this.animationConfig[J][0].timing&&this.animationConfig[J][0].timing.delay&&this.animationConfig[J][0].timing.delay!==0){var c=this.animationConfig[J][0].timing.delay;J==="entry"?this.updateStyles({"--paper-tooltip-delay-in":c+"ms"}):J==="exit"&&this.updateStyles({"--paper-tooltip-delay-out":c+
"ms"})}return this.animationConfig[J][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 Yc_=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(Yc_,_.d6);var Xg$=_.yb(Yc_,[0,_.AK]);var vY=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(vY,_.d6);var ZKB=[3,4],qc6=[5,6];var UxQ=[0,ZKB,qc6,_.ZQQ,-1,_.OS,_.qa6,-1,Zme,qJt];var ScQ=_.yb(vY,UxQ),h1C=_.Bw(UxQ);var dxu=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(dxu,_.d6);var $x$=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D($x$,_.d6);var G9a=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(G9a,_.d6);var EM_=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(EM_,_.d6);var vMj=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(vMj,_.d6);var Oq=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(Oq,_.d6);Oq.prototype.getSource=function(){return _.Db(this,1)};
Oq.prototype.getMessage=function(){return _.L0(this,4)};
Oq.prototype.getData=function(){return _.JU(this,vMj,8)};var OKQ=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(OKQ,_.d6);var AV=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(AV,_.d6);var Re=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(Re,_.d6);var oe=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(oe,_.d6);oe.prototype.getUrl=function(){return _.L0(this,1)};
oe.prototype.setUrl=function(J){return _.aw(this,1,J)};
oe.prototype.hasUrl=function(){return _.E5(_.NC(this,1))!=null};var ATB=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(ATB,_.d6);var R1B=[3];var oM$=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(oM$,_.d6);var Q2=function(J){var c=new oM$;return _.c4(c,2,J)};
oM$.prototype.getLanguage=function(){return z8(this,4,eT)};
var Qtz=function(J){var c=Q2(1);return _.bs(c,6,eT,J)},eT=[3,
4,5,6];var e12=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(e12,_.d6);var jT=function(J){var c=new e12;return _.c4(c,1,J)},Fg=function(J,c){return _.bs(J,2,jtu,c)},jtu=[2,
3,4,5];var Ff2=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(Ff2,_.d6);var lo=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(lo,_.d6);var lIz=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(lIz,_.d6);var yTZ=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(yTZ,_.d6);var BiL=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(BiL,_.d6);var gMC=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(gMC,_.d6);var J38=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(J38,_.d6);var y2=function(J){return _.JU(J,Re,5)};var c3$=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(c3$,_.d6);c3$.prototype.getValue=function(){return r9(this,1)};var mJz=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(mJz,_.d6);var BY=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(BY,_.d6);BY.prototype.getMetadata=function(){return _.u0(this,BiL,7,gI)};
BY.prototype.hasMetadata=function(){return _.I5(this,BiL,7,gI)};
var byB=_.g6(BY),gI=[2,3,4,5,6,7,8,9,10,11,12,13,14,15];var JZ=function(J){this.JSC$9930_name_=J;this.files_=[];this.directories_=[];this.directoryMap_={}};
JZ.prototype.getName=function(){return this.JSC$9930_name_};var mM=function(J,c){this.callback_=c;this.hasError_=!1;this.unscannedDirectories_=[];this.fileOps_=this.directoryOps_=0;this.rootDirectory_=new JZ("");xJz(this,J,this.rootDirectory_);c3(this)},xJz=function(J,c,m){for(var b=0;b<c.length;b++){var x=c[b];
x.isFile?(J.fileOps_++,x.file((0,_.Wa)(J.handleFileSuccess_,J,m),(0,_.Wa)(J.handleFileError_,J))):J.unscannedDirectories_.push(new VQB(x,m))}},c3=function(J){if(J.unscannedDirectories_.length>0&&J.directoryOps_<5&&!J.hasError_){J.directoryOps_++;
var c=J.unscannedDirectories_.shift(),m=c.entry,b=new JZ(m.name);c=c.parent;c.directoryMap_[b.getName()]=b;c.directories_.push(b);m=m.createReader();m.readEntries((0,_.Wa)(J.handleDirectorySuccess_,J,m,b),(0,_.Wa)(J.handleDirectoryError_,J))}J.directoryOps_!=0||J.fileOps_!=0||J.unscannedDirectories_.length!=0&&!J.hasError_||J.callback_(J.rootDirectory_.files_,J.rootDirectory_.directories_,J.hasError_)};
mM.prototype.handleDirectorySuccess_=function(J,c,m){xJz(this,m,c);m.length==0?(this.directoryOps_--,c3(this)):J.readEntries((0,_.Wa)(this.handleDirectorySuccess_,this,J,c),(0,_.Wa)(this.handleDirectoryError_,this))};
mM.prototype.handleDirectoryError_=function(){this.hasError_=!0;this.directoryOps_--;c3(this)};
mM.prototype.handleFileSuccess_=function(J,c){J.files_.push(c);this.fileOps_--;c3(this)};
mM.prototype.handleFileError_=function(){this.hasError_=!0;this.fileOps_--;c3(this)};
var VQB=function(J,c){this.entry=J;this.parent=c};var br=function(J){_.KI.call(this);_.wp(J,"drop",this.onObjectsDropped_,!1,this);_.wp(J,"dragenter",this.onFilesDragged_,!1,this);_.wp(J,"dragover",this.onFilesDragged_,!1,this);_.wp(J,"dragleave",this.onDragLeave_,!1,this);_.wp(J,"dragend",this.onDragLeave_,!1,this)};
_.yv(br,_.KI);var PDu=function(J,c){_.Mb.call(this,"f");this.files=J;this.directories=c};
_.yv(PDu,_.Mb);var MQa=function(){_.Mb.call(this,"h")};
_.yv(MQa,_.Mb);var p8a=function(){_.Mb.call(this,"i")};
_.yv(p8a,_.Mb);var NJ8=function(){_.Mb.call(this,"g")};
_.yv(NJ8,_.Mb);br.prototype.onObjectsDropped_=function(J){var c=this;J.preventDefault();var m=J.event_.dataTransfer;if((J=m&&m.items)&&J.length>0&&J[0].webkitGetAsEntry){m=[];for(var b=[],x=0;x<J.length;x++){var P=J[x].webkitGetAsEntry();P?m.push(P):b.push(J[x])}new mM(m,function(p,t,I){I?c.dispatchEvent(new NJ8("Error occurred while reading from the file system.")):c.dispatchEvent(new PDu(p,t,b))})}else(J=m&&m.files)&&this.dispatchEvent(new PDu(Array.from(J),[]))};
br.prototype.onFilesDragged_=function(J){J.type==="dragenter"&&this.dispatchEvent(new MQa);J.preventDefault()};
br.prototype.onDragLeave_=function(){this.dispatchEvent(new p8a)};var tQ8=function(J,c){this.JSC$9953_name_=J;this.inputElement_=c};
tQ8.prototype.getName=function(){return this.JSC$9953_name_};
tQ8.prototype.getInputElement=function(){return this.inputElement_};var xW=function(J,c,m){c=c===void 0?"single_file":c;m=m===void 0?[]:m;_.KI.call(this);this.overlayTarget_=J;this.parentOverlay_=J!=null?J.parentNode:_.id("scotty-overlay-parent");this.selectorType_=c;this.acceptTypes_=m;this.overlay_=Iiz(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
_.D(xW,_.KI);
var Iiz=function(J,c,m,b){var x=document.createElement("input");x.setAttribute("type","file");x.setAttribute("name","Filedata");_.wp(x,"change",J.onFilesSelected_,!1,J);m==="multiple_file"&&(x.multiple="true");m==="single_directory"&&(x.webkitdirectory="true");b.length>0&&x.setAttribute("accept",b.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(J.overlayTarget_!=
null)return x.style.height=c.offsetHeight+"px",x.style.width=c.offsetWidth+"px",J.parentOverlay_&&(J.parentOverlay_.style.position="relative"),_.Ld(x,c),Y8(x,new _.zO(c.offsetLeft,c.offsetTop)),x;J.parentOverlay_.appendChild(x);return x};
xW.prototype.click=function(){this.overlay_.click()};
xW.prototype.onFilesSelected_=function(J){a:{try{var c=(new XMLHttpRequest).upload!==void 0;break a}catch(a){}c=!1}if(c){var m;J=Array.from((m=J.target.files)!=null?m:[]);m=[];if(this.selectorType_==="single_directory"&&(_.ms||Q4||_.ce)){m=new JZ("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(c=0;c<J.length;c++)for(var b=J[c],x=b.webkitRelativePath.split("/"),P=m,p=0;p<x.length;p++){var t=x[p];if(p==x.length-1){t!="."&&P.files_.push(b);break}var I=P.directoryMap_[t];I==void 0&&(t=
I=new JZ(t),P.directoryMap_[t.getName()]=t,P.directories_.push(t));P=I}m=m.directories_}this.dispatchEvent(new Kx6(J,m,null))}else J=J.target.value,J.match(/^c:\\fakepath\\/i)&&(J=J.substring(12)),this.dispatchEvent(new Kx6([],[],new tQ8(J,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=Iiz(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var Kx6=function(J,c){_.Mb.call(this,"j");this.files=J;this.directories=c};
_.D(Kx6,_.Mb);var CDL=function(J){this.uploadUrl_=J};var ai_=function(){_.KI.call(this)};
_.yv(ai_,_.KI);var VV=function(J){_.Mb.call(this,J)};
_.yv(VV,_.Mb);var P3=function(J){_.Mb.call(this,J)};
_.yv(P3,_.Mb);var kU8=function(J,c,m,b,x){_.KI.call(this);m=document.createElement("form");m.setAttribute("method",c);m.setAttribute("enctype","multipart/form-data");m.setAttribute("encoding","multipart/form-data");c=document.createElement("input");c.setAttribute("type","hidden");c.setAttribute("name","metadata");c.setAttribute("value",x);m.appendChild(c);m.appendChild(b);this.JSC$9970_form_=m;J=new _.oz(J);_.Ra(J,"upload_protocol","multipart");this.JSC$9970_url_=J.toString();this.JSC$9970_request_=new o9;this.state_=
"Ready";this.JSC$9970_errorDescription_=null;this.JSC$9970_eventHandler_=new _.J0(this);_.Kc(this,this.JSC$9970_eventHandler_);this.JSC$9970_eventHandler_.listen(this.JSC$9970_request_,"success",this.onTransferSuccess_);this.JSC$9970_eventHandler_.listen(this.JSC$9970_request_,"error",this.onTransferError_)};
_.D(kU8,ai_);_.V=kU8.prototype;_.V.run=function(){this.state_="Transferring";var J=this.JSC$9970_request_,c=this.JSC$9970_form_;if(J.JSC$9388_active_)throw Error("ne");var m=new _.oz(this.JSC$9970_url_||c.action);J.JSC$9388_form_=c;c=J.JSC$9388_form_;m=_.Dx(m.toString());m!==void 0&&(c.action=m);RE8(J)};
_.V.getResponseCode=function(){return null};
_.V.getResponseText=function(){return this.JSC$9970_request_&&this.JSC$9970_request_.getResponseText()||null};
_.V.JSC$25878_getErrorDescription=function(){return this.JSC$9970_errorDescription_};
_.V.cancel=function(){this.JSC$9970_request_&&this.JSC$9970_request_.abort();this.state_="Cancelled";this.dispatchEvent(new VV("o"))};
_.V.pause=function(){};
_.V.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new VV("l"))};
_.V.onTransferError_=function(){this.JSC$9970_errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new VV("n"))};var MZ=function(){_.wb.call(this)};
_.D(MZ,_.wb);MZ.prototype.createXhr=function(){var J=_.wb.prototype.createXhr.call(this);J.upload&&(J.upload.onprogress=(0,_.Wa)(this.onProgress_,this));return J};
MZ.prototype.onProgress_=function(J){this.dispatchEvent(J)};var Hy6=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},nRQ=function(J,c){var m=J.attempt_+1;
if(J.maxAttempts_>0&&m>J.maxAttempts_)return!1;m==0?c():J.delayCallId_=iA(function(){J.delayCallId_=null;c()},iyu(J),J);
J.attempt_=m;return!0};
Hy6.prototype.reset=function(){this.delayCallId_&&_.mo.clearTimeout(this.delayCallId_);this.attempt_=-1};
var iyu=function(J){var c=250*Math.pow(2,J.attempt_);J.maxDelayMs_>=0&&(c=Math.min(c,J.maxDelayMs_));return c};var AFr=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];var pO=function(){_.KI.call(this);this.JSC$9980_request_=this.state_=null;this.JSC$9980_withCredentials_=!1;this.transferHandle_=null;this.offset_=this.JSC$9980_bytesTransferred_=0;this.retryIterator_=new Hy6;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.JSC$9980_errorDescription_=null;this.JSC$9980_eventHandler_=new _.J0(this);_.Kc(this,this.JSC$9980_eventHandler_);this.JSC$9980_url_=this.blob_=null;this.JSC$9980_method_=void 0;this.chunkSize_=this.JSC$9980_metadata_=
this.JSC$9980_headers_=null;this.requireUploadRequestModification_=!1;this.originalBlobSize_=0;this.detectCorruptedBlobEnabled_=!1;this.lastCommandResponseCode_=this.JSC$9980_responseText_=this.JSC$9980_responseCode_=null;this.pauseRequested_=!1;this.stateAfterUnpausing_=null};
_.yv(pO,ai_);_.V=pO.prototype;_.V.run=function(){NZ(this)};
_.V.getResponseCode=function(){return this.JSC$9980_responseCode_};
_.V.getResponseText=function(){return this.JSC$9980_responseText_};
_.V.JSC$25878_getErrorDescription=function(){return this.JSC$9980_errorDescription_};
_.V.cancel=function(){if(this.state_!="Response received"&&this.state_!="Error"){this.JSC$9980_eventHandler_.removeAll();this.JSC$9980_request_&&this.JSC$9980_request_.abort();this.retryIterator_.reset();var J=this.state_==="Paused"?this.stateAfterUnpausing_:this.state_;if(J==="Upload"||J==="Query")J=new MZ,J.JSC$7807_withCredentials_=this.JSC$9980_withCredentials_,J.send(this.transferHandle_.uploadUrl_,"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.JSC$9980_bytesTransferred_=
0;this.dispatchEvent(new VV("o"))}};
_.V.pause=function(){this.pauseRequested_=!0};
var NZ=function(J){var c=J.state_;J.pauseRequested_?(J.pauseRequested_=!1,J.stateAfterUnpausing_=c,J.state_="Paused"):nRQ(J.retryIterator_,function(){switch(J.state_){case "Start":J.JSC$9980_request_=new MZ;var m=_.Lw.clone(J.JSC$9980_headers_);J.blob_.size!=null&&(m["Content-Length"]=J.blob_.size);m=R4f(m);m["X-Goog-Upload-Protocol"]="resumable";m["X-Goog-Upload-Command"]="start";J.JSC$9980_eventHandler_.removeAll();J.JSC$9980_eventHandler_.listen(J.JSC$9980_request_,"complete",J.onStartComplete_);
J.JSC$9980_request_.JSC$7807_withCredentials_=J.JSC$9980_withCredentials_;J.JSC$9980_request_.send(J.JSC$9980_url_,J.JSC$9980_method_,J.JSC$9980_metadata_,m);J.lastCommandResponseCode_=null;J.dispatchEvent(new P3("q"));break;case "Upload":m=J.transferHandle_.uploadUrl_;var b=J.blob_.size;if(YbZ()){var x=J.chunkSize_;var P=J.offset_+x>=b;b=fcQ(J.blob_,J.offset_,P?b:J.offset_+x)}else J.offset_=0,b=J.blob_,P=!0;J.JSC$9980_request_=new MZ;J.JSC$9980_request_.JSC$7807_withCredentials_=J.JSC$9980_withCredentials_;
J.JSC$9980_eventHandler_.removeAll();J.JSC$9980_eventHandler_.listen(J.JSC$9980_request_,"progress",J.onUploadProgress_);x=(0,_.Wa)(J.JSC$9982_onUploadComplete_,J,J.offset_+b.size,P);J.JSC$9980_eventHandler_.listen(J.JSC$9980_request_,"complete",x);J.lastCommandResponseCode_=null;J.dispatchEvent(new P3("q"));P=Object.assign({},J.JSC$9980_headers_||{},{"X-Goog-Upload-Command":"upload"+(P?", finalize":""),"X-Goog-Upload-Offset":J.offset_});J.JSC$9980_request_.send(m,"POST",b,P);break;case "Query":J.JSC$9980_request_=
new MZ;J.JSC$9980_eventHandler_.removeAll();J.JSC$9980_eventHandler_.listen(J.JSC$9980_request_,"complete",J.onQueryComplete_);m=Object.assign({},J.JSC$9980_headers_||{},{"X-Goog-Upload-Command":"query"});J.JSC$9980_request_.send(J.transferHandle_.uploadUrl_,"POST","",m);J.lastCommandResponseCode_=null;J.dispatchEvent(new P3("q"));break;default:throw Error("cf");}})||tZ(J,"Transfer encountered too many consecutive failures.")},tZ=function(J,c){J.state_="Error";
J.JSC$9980_errorDescription_=c;J.dispatchEvent(new VV("n"))};
pO.prototype.onStartComplete_=function(J){var c=J.target;this.lastCommandResponseCode_=c.getStatus();this.dispatchEvent(new P3("r"));if(TJz(c))w82(this,c);else if(r3B(c)){J=FZ(J.target.getAllResponseHeaders());for(var m in J)_.xt(m.toLowerCase(),"x-goog-upload-header-");this.dispatchEvent(new VV("m"));m=Ll(J,"X-Goog-Upload-URL");J=(J=Ll(J,"X-Goog-Upload-Chunk-Granularity"))?parseInt(J,10):1;m===void 0||isNaN(J)||J<=0?tZ(this,"Server returned invalid headers."):(this.chunkSize_=Math.floor(1073741824/
J)*J,this.transferHandle_=new CDL(m),this.dispatchEvent(new VV("p")),this.state_="Upload",this.retryIterator_.reset(),NZ(this))}else NZ(this)};
pO.prototype.onUploadProgress_=function(J){this.JSC$9980_bytesTransferred_=this.offset_+J.loaded;this.dispatchEvent(new VV("k"))};
pO.prototype.JSC$9982_onUploadComplete_=function(J,c,m){var b=this,x,P;return _.N(function(p){switch(p.nextAddress){case 1:x=m.target;b.lastCommandResponseCode_=x.getStatus();b.dispatchEvent(new P3("r"));if(sga(x)||x.getStatus()==404)return b.JSC$9980_bytesTransferred_=J,w82(b,x),p.return();if(r3B(x)){p.jumpTo(2);break}if(!(P=b.detectCorruptedBlobEnabled_)){p.jumpTo(3);break}return _.K(p,Lxu(b),4);case 4:P=p.yieldResult;case 3:if(P)return tZ(b,"Blob has been modified or corrupted."),p.return();b.requireUploadRequestModification_=
x.getStatus()==400;b.state_="Query";NZ(b);return p.return();case 2:if(c)return tZ(b,"Got a non-final success response after issuing a finalize command."),p.return();b.JSC$9980_bytesTransferred_=J;b.offset_=J;b.retryIterator_.reset();NZ(b);return p.return()}})};
pO.prototype.onQueryComplete_=function(J){var c=J.target;this.lastCommandResponseCode_=c.getStatus();this.dispatchEvent(new P3("r"));TJz(c)?(c.getStatus()===200&&(this.JSC$9980_bytesTransferred_=this.blob_.size),w82(this,c)):r3B(c)?(J=FZ(J.target.getAllResponseHeaders()),J=parseInt(Ll(J,"X-Goog-Upload-Size-Received"),10),isNaN(J)?tZ(this,"Server did not respond with current offset."):J<this.offset_?tZ(this,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+
J+"."):this.requireUploadRequestModification_&&this.offset_===J?tZ(this,"Server returned the same offset as the last failed upload attempt."):(this.requireUploadRequestModification_=!1,this.offset_<J&&this.retryIterator_.reset(),this.offset_=this.JSC$9980_bytesTransferred_=J,this.state_="Upload",NZ(this))):NZ(this)};
var w82=function(J,c){J.JSC$9980_responseCode_=c.getStatus();var m=FZ(c.getAllResponseHeaders());o8Q(m);J.JSC$9980_responseText_=c.getResponseText();J.state_="Response received";J.dispatchEvent(new VV("l"))},r3B=function(J){var c=J.getStatus();
J=FZ(J.getAllResponseHeaders());J=Ll(J,"X-Goog-Upload-Status");return c===200&&J==="active"},sga=function(J){J=FZ(J.getAllResponseHeaders());
return Ll(J,"X-Goog-Upload-Status")==="final"},TJz=function(J){if(sga(J))return!0;
J=J.getStatus();return J>=400&&J<500},Lxu=function(J){var c;
return _.N(function(m){if(m.nextAddress==1){if(!J.blob_||J.originalBlobSize_<=0)return m.return(!1);if(J.blob_.size!==J.originalBlobSize_)return m.return(!0);_.xL(m,2);if(c=fcQ(J.blob_,0,1)){var b=new fH,x=PJ_(b);b.reader_.readAsBinaryString(c);m=_.K(m,x,4)}else m=m.return(!0);return m}if(m.nextAddress!=2)return m.return(J.blob_.size!==J.originalBlobSize_);_.NM(m);return m.return(!0)})};var DJa=function(J,c,m,b,x,P){_.KI.call(this);this.payload_=b;this.JSC$9983_url_=J;this.JSC$9983_method_=c;this.JSC$9983_headers_=m;this.JSC$9983_metadata_=x;this.encoding_=P||"binary";J=new _.a9;this.boundary_="uploader-"+va()+"-"+J.JSC$9237_toIsoString();this.JSC$9983_responseText_=this.JSC$9983_responseCode_=this.transferRequest_=null;this.state_="Ready";this.JSC$9983_errorDescription_=null;this.JSC$9983_eventHandler_=new _.J0(this);_.Kc(this,this.JSC$9983_eventHandler_)};
_.D(DJa,ai_);_.V=DJa.prototype;
_.V.run=function(){var J=_.Lw.clone(this.JSC$9983_headers_);this.payload_.length!=null&&(J["Content-Length"]=this.payload_.length);J=R4f(J);J["X-Goog-Upload-Protocol"]="multipart";J["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=new MZ;this.JSC$9983_eventHandler_.removeAll();this.JSC$9983_eventHandler_.listen(this.transferRequest_,"progress",this.onTransferProgress_);this.JSC$9983_eventHandler_.listen(this.transferRequest_,"complete",
this.onTransferComplete_);this.transferRequest_.send(this.JSC$9983_url_,this.JSC$9983_method_,"--"+this.boundary_+'\r\nContent-Disposition: form-data; name="metadata"\r\n\r\n'+(this.JSC$9983_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",J)};
_.V.getResponseCode=function(){return this.JSC$9983_responseCode_};
_.V.getResponseText=function(){return this.JSC$9983_responseText_};
_.V.JSC$25878_getErrorDescription=function(){return this.JSC$9983_errorDescription_};
_.V.cancel=function(){this.state_!="Complete"&&this.state_!="Error"&&(this.JSC$9983_eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new VV("o")))};
_.V.pause=function(){};
_.V.onTransferProgress_=function(){this.dispatchEvent(new VV("k"))};
_.V.onTransferComplete_=function(J){var c=J.target.getStatus();c===void 0||c===-1?(this.JSC$9983_errorDescription_="Connection broken before response was received.",this.state_="Error",this.dispatchEvent(new VV("n"))):(this.JSC$9983_responseCode_=c,J=J.target,c=FZ(J.getAllResponseHeaders()),o8Q(c),this.JSC$9983_responseText_=J.getResponseText(),this.state_="Complete",this.dispatchEvent(new VV("l")))};_.Wx$=function(J,c,m,b){b=b===void 0?!1:b;if(m instanceof tQ8)return new kU8(J,"POST",c,m.getInputElement(),"");if(typeof m==="string"||m instanceof String)return new DJa(J,"POST",c,m,"");var x=new pO(void 0);x.JSC$9980_url_=J;x.JSC$9980_method_="POST";x.JSC$9980_headers_=c;x.blob_=m;x.originalBlobSize_=m.size;x.JSC$9980_metadata_="";b&&(x.JSC$9980_withCredentials_=b);x.state_="Start";return x};var Iy=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(Iy,_.d6);_.V=Iy.prototype;_.V.getEnableSsEngine=function(){return _.w9(this,2)};
_.V.getEnableAwr=function(){return _.w9(this,3)};
_.V.getAlohaAutoGaRollout=function(){return _.w9(this,5)};
_.V.getEnableConfigurator=function(){return _.w9(this,6)};
_.V.getEnableMweb=function(){return _.w9(this,7)};
var uWL=function(){var J=zh8();return _.WS(J,7,!0)};
Iy.prototype.getEnableCtlConsentCheckbox=function(){return _.w9(this,8)};
Iy.prototype.getEnableIframe=function(){return _.w9(this,9)};
var zh8=function(){var J=new Iy;J=_.WS(J,5,!0);J=_.WS(J,2,!0);J=_.WS(J,4,!1);J=_.WS(J,8,!0);return _.WS(J,9,!0)};
Iy.prototype.getEnableScreenshotNudge=function(){return _.w9(this,10)};
var fiC=function(){var J=uWL();return _.WS(J,10,!0)};
Iy.prototype.getEnableWebStartupConfigEndpoint=function(){return _.w9(this,11)};
Iy.prototype.getEnableJunkNudge=function(){return _.w9(this,12)};
var pze=function(){var J=fiC();return _.WS(J,12,!0)};
_.V=Iy.prototype;_.V.getEnableConfiguratorLocale=function(){return _.w9(this,13)};
_.V.getEnableTinyNoPointer=function(){return _.w9(this,14)};
_.V.getEnableSupportSessionLogging=function(){return _.w9(this,15)};
_.V.getEnableFileUploadForScreenshot=function(){return _.w9(this,16)};
_.V.getEnableDirectDeflectionForSingleCategory=function(){return _.w9(this,17)};
_.V.getEnableImageSanitization=function(){return _.w9(this,18)};
_.V.getEnableAlohaBinarySplit=function(){return _.w9(this,19)};
_.V.getEnableDbFeedbackIntents=function(){return _.w9(this,20)};
_.V.getEnableMarkMandatoryFieldsWithRequired=function(){return _.w9(this,21)};
_.V.getEnableFeedbackCategoryCustomUi=function(){return _.w9(this,22)};
_.V.getEnableRealtimeCtl=function(){return _.w9(this,23)};var Mou=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(Mou,_.d6);var QSQ=[/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 jSr="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 FEr=_.Oo(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),lKT=_.Oo(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);var BC3,Jir;var YQQ,X8Z;
YQQ=function(J,c,m){J.timeOfStartCall=(new Date).getTime();var b=m||_.mo,x=b.document,P=J.nonce||_.q2(b.document);P&&!J.nonce&&(J.nonce=P);if(J.flow=="help"){var p=_.$y("document.location.href",b);!J.helpCenterContext&&p&&(J.helpCenterContext=p.substring(0,1200));p=!0;if(c&&JSON&&JSON.stringify){var t=JSON.stringify(c);(p=t.length<=1200)&&(J.psdJson=t)}p||(c={invalidPsd:!0})}c=[J,c,m];b.GOOGLE_FEEDBACK_START_ARGUMENTS=c;m=J.feedbackServerUri||"//www.google.com/tools/feedback";if(p=b.GOOGLE_FEEDBACK_START)p.apply(b,c);
else{b=m+"/load.js?";for(var I in J)c=J[I],c==null||_.cB(c)||(b+=encodeURIComponent(I)+"="+encodeURIComponent(c)+"&");J=Cw(x).createElement("SCRIPT");P&&J.setAttribute("nonce",P);_.$h(J,_.p1(b));x.body.appendChild(J)}};
X8Z=function(J,c,m,b){var x,P;_.N(function(p){x=m||_.mo;var t=J.serverEnvironment==="DEV",I=m||_.mo;I=J.nonce||_.q2(I.document);t={integrationKeys:{productId:J.productId,feedbackBucket:J.bucket,triggerId:J.triggerId},callbacks:{onClose:J.callback,onLoad:J.onLoadCallback},formContent:{locale:J.locale,disableScreenshot:J.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:J.abuseLink,additionalDataConsent:J.additionalDataConsent},initializationData:{isLocalServer:t,nonce:I,useNightlyRelease:t,feedbackJsUrl:void 0,feedbackCssUrl:void 0,feedbackJsUrlSerialized:void 0,feedbackCssUrlSerialized:void 0,submissionServerUri:J.feedbackServerUri,colorScheme:J.colorScheme},extraData:{productVersion:J.productVersion,authUser:J.authuser,configuratorId:J.configuratorId,customZIndex:J.customZIndex,tinyNoPointer:J.tinyNoPointer,
allowNonLoggedInFeedback:J.allowNonLoggedInFeedback,enableAnonymousFeedback:J.enableAnonymousFeedback}};c&&(I=new Map(Object.entries(c)),t.extraData.productSpecificData=I);P=t;return _.K(p,xbJ(P,b,x),0)})};
_.Zyj=function(J,c,m){try{if(J.flow==="help"){var b=J.helpCenterPath.replace(/^\//,"");_.Zx(m||window,"https://support.google.com/"+b)}else J.flow==="submit"?YQQ(J,c,m):NbD(J.productId,J.feedbackServerUri).then(function(x){x=_.JU(x,Iy,1);var P=!BGu||(x==null?void 0:x.getEnableMweb()),p=!J.tinyNoPointer||(x==null?void 0:x.getEnableTinyNoPointer());!x||x.getAlohaAutoGaRollout()&&P&&p?X8Z(J,c,m,x):YQQ(J,c,m)},function(x){x&&x.name!=="DuplicateFormError"&&YQQ(J,c,m)})}catch(x){X8Z(J,c,m,null)}};
_.jD("userfeedback.api.startFeedback",_.Zyj);var tor=/https?:\/\/\S+\.\S+/,IYq=[/^https?:\/\/[0-9a-zA-Z_.-]+\.youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtu\.be(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i],KVJ=[/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtube\.com[\/]+redirect\?.*$/i,/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtu.be[\/]+redirect\?.*$/i];var Fhf=function(J){var c=J.split(""),m=[-263237435,15,c,function(b,x,P){var p=x.length;P.forEach(function(t,I,a){this.push(a[I]=x[(x.indexOf(t)-x.indexOf(this[I])+I+p--)%x.length])},b.split(""))},
function(b,x){b=(b%x.length+x.length)%x.length;x.splice(-b).reverse().forEach(function(P){x.unshift(P)})},
"response",function(){for(var b=64,x=[];++b-x.length-32;){switch(b){case 58:b-=14;case 91:case 92:case 93:continue;case 123:b=47;case 94:case 95:case 96:continue;case 46:b=95}x.push(String.fromCharCode(b))}return x},
null,12,1540023973,65941107,null,c,function(b,x){for(b=(b%x.length+x.length)%x.length;b--;)x.unshift(x.pop())},
695603893,function(b){for(var x=b.length;x;)b.push(b.splice(--x,1)[0])},
"'[;'[(",function(b,x){b.push(x)},
null,function(b,x,P,p,t){return x(P,p,t)},
"continuation",c,function(b,x){if(b.length!=0){x=(x%b.length+b.length)%b.length;var P=b[0];b[0]=b[x];b[x]=P}},
function(){for(var b=64,x=[];++b-x.length-32;){switch(b){case 91:b=44;continue;case 123:b=65;break;case 65:b-=18;continue;case 58:b=96;continue;case 46:b=95}x.push(String.fromCharCode(b))}return x},
'"),/]];'];m[7]=m;m[11]=m;m[18]=m;try{(((0,m[15])(m[21]),m[22])(m[11],m[9]),m[22])(m[new Date("1970-01-01T04:30:12.000+04:30")/1E3],m[1]),((0,m[22])(m[11],m[23]),m[4])(m[10],m[18]),(0,m[20])(m[21],m[14])<<(0,m[17])(m[18],m[1]),(0,m[4])(m[8],m[21]),(0,m[19])((0,m[19])((0,m[17])(m[7],m[9]),m[3],m[20],(0,m[6])(),m[2]),m[3],m[5],(0,m[15])(),m[2])}catch(b){return"aTlOUOubTO4AP____8P_"+J}return c.join("")};_.qQQ=new _.Q("runAttestationCommand");var UJu=new _.Q("verifyCommand");_.KO=new _.Q("accessibilityContext");var SQ_=new _.Q("accessibilityData");var hhz=new _.Q("profileCardCommand");var awo=new _.Q("signInEndpoint");var Ch3=new _.Q("signOutEndpoint");var $J8;_.dJ6=new _.Q("accountItemSectionRenderer");$J8=new _.Q("accountItemRenderer");_.GU_=new _.Q("saveCommandToSessionStorageAction");var ERj=new _.Q("crossAccountChannelTransferEndpoint");var tRD=new _.Q("getAccountMenuEndpoint");_.IsT=new _.Q("getAccountSwitcherEndpoint");var Nnq=new _.Q("getAccountsListEndpoint");var vRa=new _.Q("getAccountsListInnertubeEndpoint");_.CO=new _.Q("addToToastAction");var OyB=new _.Q("hideEnclosingAction");_.ay=new _.Q("replaceEnclosingAction");var A3Q=new _.Q("buttonRefreshAction");var Rh_=new _.Q("adsControlFlowOpportunityReceivedCommand");var oRQ=new _.Q("openAdAllowlistInstructionCommand");var Qgu=new _.Q("videoMastheadAdPrimaryVideoRenderer");var ehu=new _.Q("displayAdRenderer");var osq=new _.Q("instreamVideoAdRenderer");_.jg$=new _.Q("inFeedAdLayoutRenderer");var Fx_=new _.Q("sequenceItemInPlayerAdLayoutRenderer");_.liB=new _.Q("adSlotRenderer");var y3L=new _.Q("adAvatarViewModel");var BJQ=new _.Q("adBadgeViewModel");var gRz=new _.Q("adButtonViewModel");var kW=new _.Q("adImageViewModel");var rnm=new _.Q("reelsAdCardButtonedViewModel");var JmC=new _.Q("reelsPlayerOverlayLayoutViewModel");var cmz=new _.Q("showSchedulingPanelCommand");var m_8=new _.Q("backstageCommentsRenderer");var bZa=new _.Q("backstageImageRenderer");var x_2=new _.Q("backstagePostRenderer");var VL_=new _.Q("postRenderer");var PcL=new _.Q("sharedPostRenderer");var MLz=new _.Q("createBackstagePostEndpoint");var pHL=new _.Q("getPostVideoPreviewEndpoint");var NxC=new _.Q("updateBackstagePostEndpoint");var tLC=new _.Q("filterChipTransformCommand");var Iv$=new _.Q("insertRichSectionCommand");var Xho=new _.Q("talkToRecsDeselectCommand");var Km_=new _.Q("talkToRecsNextCommand");var YVo=new _.Q("talkToRecsSelectCommand");var Cc$=new _.Q("talkToRecsUpdateTextCommand");_.I1=new _.Q("browseEndpoint");_.avB=new _.Q("confirmDialogEndpoint");var kt6=new _.Q("expandOnHoverCardRenderer");var HZ$=new _.Q("lumiereShelfDetailsRenderer");var iZC=new _.Q("revealBusinessEmailCommand");var ng$=new _.Q("validateChannelHandleCommand");var TxQ=new _.Q("channelCreationFormEndpoint");var wH2=new _.Q("aboutChannelViewModel");var rm_=new _.Q("channelThumbnailWithLinkRenderer");var sxL=new _.Q("channelCreationServiceEndpoint");var Lm_=new _.Q("updateChannelPageSettingsEndpoint");var H3=function(J){this.delegate=J},ir=function(){H3.apply(this,arguments)};
_.D(ir,H3);_.eE.Object.defineProperties(ir.prototype,{entityMetadata:{configurable:!0,enumerable:!0,get:function(){return this.delegate.entityMetadata},
set:function(J){this.delegate.entityMetadata=J}}});var D_a=function(){ir.apply(this,arguments)};
_.D(D_a,ir);D_a.prototype.getAssociations=function(){return[]};var uTq=new _.Q("webThumbnailDetailsExtensionData");var Mif=new _.Q("commandContext");var Wmj=new _.Q("addVideoLinkAction");var zbL=new _.Q("createPollAction");var u1L=new _.Q("hideIdentityChipAction");var fv8=new _.Q("openUpdateCommentDialogAction");var nO=new _.Q("updateBackstagePollAction");var Yo2=new _.Q("updateCommentVoteAction");var XHa=new _.Q("commentThreadRenderer");var ZZL=function(){ir.apply(this,arguments)};
_.D(ZZL,ir);ZZL.prototype.getAssociations=function(){return[]};_.qoZ=new _.Q("commentDialogRenderer");var U_C=new _.Q("updateCommentsSettingsEndpoint");var Soj=new _.Q("commentViewModel");var hbQ=new _.Q("triStateButtonViewModel");var d__=new _.Q("voiceReplyContainerViewModel");_.pX=new _.Q("commandExecutorCommand");var f7=new _.Q("emoji");var $__=new _.Q("updateCreatorChannelInnertubeCommand");_.Gtu=new _.Q("appendContinuationItemsAction");_.Egz=new _.Q("changeEngagementPanelVisibilityAction");_.XG=new _.Q("continuationCommand");var vga=new _.Q("listMutationCommand");_.T3=new _.Q("openPopupAction");var OZQ=new _.Q("persistSubscriptionsDisplayPreferencesCommand");var lva;_.AmQ=new _.Q("playlistRemoveVideosAction");_.RbC=new _.Q("updatePlaylistAction");_.ogZ=new _.Q("addToPlaylistCommand");_.Qx_=new _.Q("endPlaylistCommand");_.ebL=new _.Q("recoverPlaylistCommand");_.jxj=new _.Q("refreshPlaylistCommand");_.Fmj=new _.Q("refreshFormCommand");lva=new _.Q("openOnePickAddVideoModalCommand");_.iaT=new _.Q("reloadContinuationItemsCommand");_.ymu=new _.Q("scrollToEngagementPanelCommand");var Bx6=new _.Q("selectCountryCommand");var gg_=new _.Q("showReloadUiCommand");var JKQ=new _.Q("undoFeedbackAction");var cK_=new _.Q("updateButtonAction");var mCu=new _.Q("updateSubscribeButtonAction");var b0C=new _.Q("updateToggleAction");var xCC=new _.Q("webNativeShareCommand");_.lk=new _.Q("webCommandMetadata");_.we=new _.Q("webHandleServiceEndpointExtension");var T4t=new _.Q("webNavigationEndpointData");var Vnu=new _.Q("copyLinkCommand");var P0Q=new _.Q("playlistVotingRefreshPopupCommand");var Mn$=new _.Q("selectChipCommand");var pe6=new _.Q("setCookieCommand");var N92=new _.Q("setLocalStorageCommand");var tnL=new _.Q("setPrefStorageEntryCommand");var abj;_.IbQ=new _.Q("settingsUpdateCheckboxCommand");_.Ksz=new _.Q("settingsUpdateTextCommand");_.C0C=new _.Q("settingsUpdateOptionsCommand");abj=new _.Q("settingsUpdateSwitchCommand");_.k8u=new _.Q("settingsUpdateConnectedAppRendererCommand");var H08=new _.Q("updateTextInputFormFieldRendererCommand");var i0z=new _.Q("updateToggleButtonStateCommand");var nd_=new _.Q("updateUrlParamCommand");var T9a=new _.Q("webSubmitFormCommand");var we6=new _.Q("channelSwitcherPageRenderer"),rKL=new _.Q("updateChannelSwitcherPageAction");_.cH=new _.Q("continuationItemRenderer");_.re=new _.Q("richItemRenderer");var s56=new _.Q("richSectionRenderer");_.Ls$=new _.Q("richShelfRenderer");_.DC$=new _.Q("metadataBadgeRenderer");_.Wsj=new _.Q("multiPageMenuNotificationSectionRenderer");_.zvZ=new _.Q("playlistLoopButtonStateRenderer");var uyu=new _.Q("claimLegacyYoutubeChannelEndpoint");var fba=new _.Q("getNotificationMenuEndpoint");var YSz=new _.Q("getSearchInVideoCommand");_.XeQ=new _.Q("getTranscriptEndpoint");_.In=new _.Q("signalServiceEndpoint");var Z0a=new _.Q("verifyAgeEndpoint");var BZe=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(BZe,_.d6);BZe.prototype.getPath=function(){return _.L0(this,1)};
BZe.prototype.getValue=function(){return _.L0(this,2)};var qSa=[0,_.ES,-1];var UCQ=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(UCQ,_.d6);var ywo=_.yb(UCQ,[0,_.ve,qSa]);var SS$=new _.Q("dismissalEndpoint");var hvL=new _.Q("elementsCommand");_.Xz=new _.Q("innertubeCommand");var dC2=new _.Q("multipleInlinePlaybackCommand");var bFJ=new _.Q("loggingDirectives");var $C8=new _.Q("acknowledgeChannelTouStrikeCommand");var G8$=function(){ir.apply(this,arguments)};
_.D(G8$,ir);G8$.prototype.getAssociations=function(){return[]};var Ed8=function(){ir.apply(this,arguments)};
_.D(Ed8,ir);Ed8.prototype.getAssociations=function(){return[]};var vP=new _.Q("entityBatchUpdate");_.vdz=new _.Q("entityUpdateCommand");var O08=function(){ir.apply(this,arguments)};
_.D(O08,ir);O08.prototype.getAssociations=function(){var J=[];this.delegate.alternateChannel&&J.push(this.delegate.alternateChannel);this.delegate.alternateChannelList&&J.push.apply(J,_.L6(this.delegate.alternateChannelList));this.delegate.oneofChannelEntity&&J.push(this.delegate.oneofChannelEntity);return[].concat(_.L6(new Set(J)))};var AKL=function(){ir.apply(this,arguments)};
_.D(AKL,ir);AKL.prototype.getAssociations=function(){var J=[];this.delegate.entryCollection&&J.push(this.delegate.entryCollection);return[].concat(_.L6(new Set(J)))};
var RvB=function(){ir.apply(this,arguments)};
_.D(RvB,ir);RvB.prototype.getAssociations=function(){var J=[];this.delegate.parentPlaylist&&J.push(this.delegate.parentPlaylist);if(this.delegate.entries)for(var c=_.M(this.delegate.entries),m=c.next();!m.done;m=c.next())J.push.apply(J,_.L6((new odB(m.value)).getAssociations()));return[].concat(_.L6(new Set(J)))};
var odB=function(){H3.apply(this,arguments)};
_.D(odB,H3);odB.prototype.getAssociations=function(){var J=[];this.delegate.video&&J.push(this.delegate.video);return[].concat(_.L6(new Set(J)))};var Q5L=function(){ir.apply(this,arguments)};
_.D(Q5L,ir);Q5L.prototype.getAssociations=function(){var J=[];this.delegate.descriptionEntity&&J.push(this.delegate.descriptionEntity);this.delegate.creators&&J.push.apply(J,_.L6(this.delegate.creators));this.delegate.theBiggestFan&&J.push(this.delegate.theBiggestFan);return[].concat(_.L6(new Set(J)))};
var evQ=function(){ir.apply(this,arguments)};
_.D(evQ,ir);evQ.prototype.getAssociations=function(){return[]};var j5u=new _.Q("fantasyRosterViewModel");var Fs$=new _.Q("addFollowUpSurveyCommand");var lbj=new _.Q("getSurveyCommand");var yK2=new _.Q("ratingSurveyOptionRenderer");_.uc=new _.Q("feedbackEndpoint");var B9z=new _.Q("reportHistoryTableCellRenderer"),gdQ=new _.Q("reportHistoryTableTextCellRenderer"),JFB=new _.Q("reportHistoryTableReasonCellRenderer");_.cFB=new _.Q("flagEndpoint");var mk$=new _.Q("getFlowCommand");var bdQ=new _.Q("submitFormWithValidationFlowCommand");var xkQ=function(){ir.apply(this,arguments)};
_.D(xkQ,ir);xkQ.prototype.getAssociations=function(){return[]};var VdQ=new _.Q("flowFormState");var P_8=new _.Q("gameCardRenderer");var MdQ=new _.Q("accountLinkingStateChangedCommand");var pQQ=function(){ir.apply(this,arguments)};
_.D(pQQ,ir);pQQ.prototype.getAssociations=function(){return[]};var NCQ=new _.Q("changeMiniAppPlayStateCommand");var tdQ=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(tdQ,_.d6);var sP=[1,2,3];var IKZ=[0,sP,zKD,_.uCo,Thq];var KE$=_.yb(tdQ,IKZ),C__=_.Bw(IKZ);var aK6=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(aK6,_.d6);var ky6=[0,_.hK,_.ES];var HdC=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(HdC,_.d6);var idQ=[0,_.ES,_.hK,-1];var n8Z=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(n8Z,_.d6);var TCL=function(J,c){return _.c4(J,3,c)};var wQL=_.Bw([0,1,ky6,_.AK,idQ]);var rFQ=new _.Q("miniAppScoreChallengeViewModel");var sSa=new _.Q("miniGameCardViewModel");var LEL=new _.Q("teaserCardViewModel");var DkB=function(){ir.apply(this,arguments)};
_.D(DkB,ir);DkB.prototype.getAssociations=function(){return[]};_.WEu=new _.Q("feedbackItemRenderer");var z4a=function(){ir.apply(this,arguments)};
_.D(z4a,ir);z4a.prototype.getAssociations=function(){return[]};_.uYC=new _.Q("playerInterstitialRenderer");var fKu=new _.Q("getKidsBlocklistPickerCommand");_.YKQ=new _.Q("updateKidsBlacklistEndpoint");_.$R=new _.Q("likeEndpoint");var XQC,ZdL,qKa;XQC=new _.Q("addChatItemAction");ZdL=new _.Q("removeChatItemAction");qKa=new _.Q("markChatItemAsDeletedAction");_.UkL=new _.Q("setLiveChatCollapsedStateAction");var SK2=function(){ir.apply(this,arguments)};
_.D(SK2,ir);SK2.prototype.getAssociations=function(){return[]};var h4Q=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(h4Q,_.d6);var dkQ=_.yb(h4Q,[0,1,_.hK]);var $kz=new _.Q("liveChatEndpoint");var GyQ=new _.Q("liveChatItemContextMenuEndpoint");var E8z=new _.Q("liveChatReplayEndpoint");_.v8B=new _.Q("emojiPickerRenderer");var Od_=new _.Q("liveChatAuthorBadgeViewModel");var AFB=new _.Q("deleteLiveChatMessageCommand");var R4u=new _.Q("liveChatActionEndpoint");var o8C=new _.Q("createLiveChatPollEndpoint");var QSC=new _.Q("manageLiveChatUserEndpoint");var e4a=new _.Q("moderateLiveChatEndpoint");_.jSB=new _.Q("sendLiveChatMessageEndpoint");var FEB=new _.Q("sendLiveChatVoteEndpoint");var lKL=new _.Q("clearLocationCommand");var yFB=new _.Q("resolveLocationCommand");var BC_=new _.Q("interactionLoggingCommandMetadata");var ZDu=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(ZDu,_.d6);var XnR=function(J,c){return _.Pa(J,1,c)};var g86=[0,_.G8];var Yyf=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(Yyf,_.d6);var fmQ=function(J,c){return kH(J,1,ZDu,c)};Yyf.prototype.JSC$10075_serializeBinary=ceD([0,_.ve,g86]);var Ubo={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 JiB={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"},
ci6={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 $fq={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"};_.Ri2=new _.Q("logFlowLoggingEventCommand");_.aA=new _.Q("loggingContext");var mb_=new _.Q("captionLanguageSelectActionCommand");var bI6=new _.Q("showCaptionLanguageSelectActionCommand");var xbQ=new _.Q("dismissDialogEndpoint");var Voj=new _.Q("hideItemSectionVideosByIdCommand");var PA_=new _.Q("showMiniplayerCommand");var Mo_=function(){ir.apply(this,arguments)};
_.D(Mo_,ir);Mo_.prototype.getAssociations=function(){return[]};var pz$=function(){ir.apply(this,arguments)};
_.D(pz$,ir);pz$.prototype.getAssociations=function(){return[]};var Nbz=function(){ir.apply(this,arguments)};
_.D(Nbz,ir);Nbz.prototype.getAssociations=function(){return[]};var toB=function(){ir.apply(this,arguments)};
_.D(toB,ir);toB.prototype.getAssociations=function(){var J=[];this.delegate.downloadsList&&J.push(this.delegate.downloadsList);this.delegate.smartDownloadsList&&J.push(this.delegate.smartDownloadsList);this.delegate.recommendedDownloadsList&&J.push(this.delegate.recommendedDownloadsList);this.delegate.refresh&&J.push(this.delegate.refresh);return[].concat(_.L6(new Set(J)))};var IY8=function(){ir.apply(this,arguments)};
_.D(IY8,ir);IY8.prototype.getAssociations=function(){var J=[];this.delegate.refresh&&J.push(this.delegate.refresh);if(this.delegate.downloads)for(var c=_.M(this.delegate.downloads),m=c.next();!m.done;m=c.next())J.push.apply(J,_.L6((new KVQ(m.value)).getAssociations()));return[].concat(_.L6(new Set(J)))};
var KVQ=function(){H3.apply(this,arguments)};
_.D(KVQ,H3);KVQ.prototype.getAssociations=function(){var J=[];this.delegate.video&&J.push(this.delegate.video);this.delegate.playlist&&J.push(this.delegate.playlist);this.delegate.videoItem&&J.push(this.delegate.videoItem);this.delegate.playlistItem&&J.push(this.delegate.playlistItem);return[].concat(_.L6(new Set(J)))};var CAz=function(){ir.apply(this,arguments)};
_.D(CAz,ir);CAz.prototype.getAssociations=function(){var J=[];this.delegate.localImageEntities&&J.push.apply(J,_.L6(this.delegate.localImageEntities));return[].concat(_.L6(new Set(J)))};var aYC=function(){ir.apply(this,arguments)};
_.D(aYC,ir);aYC.prototype.getAssociations=function(){var J=[];this.delegate.playbackData&&J.push(this.delegate.playbackData);this.delegate.localImageEntities&&J.push.apply(J,_.L6(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&J.push(this.delegate.videoDownloadContextEntity);return[].concat(_.L6(new Set(J)))};var kE8=function(){ir.apply(this,arguments)};
_.D(kE8,ir);kE8.prototype.getAssociations=function(){return[]};var HIj=function(){ir.apply(this,arguments)};
_.D(HIj,ir);HIj.prototype.getAssociations=function(){var J=[];this.delegate.fakeChildren&&J.push.apply(J,_.L6(this.delegate.fakeChildren));return[].concat(_.L6(new Set(J)))};var iIQ=function(){ir.apply(this,arguments)};
_.D(iIQ,ir);iIQ.prototype.getAssociations=function(){var J=[];this.delegate.video&&J.push(this.delegate.video);this.delegate.playbackData&&J.push(this.delegate.playbackData);this.delegate.offlineVideoPolicy&&J.push(this.delegate.offlineVideoPolicy);return[].concat(_.L6(new Set(J)))};var n1B=function(){ir.apply(this,arguments)};
_.D(n1B,ir);n1B.prototype.getAssociations=function(){return[]};var Tbu=function(){ir.apply(this,arguments)};
_.D(Tbu,ir);Tbu.prototype.getAssociations=function(){var J=[];this.delegate.channelOwner&&J.push(this.delegate.channelOwner);this.delegate.videos&&J.push.apply(J,_.L6(this.delegate.videos));this.delegate.collaboratorChannels&&J.push.apply(J,_.L6(this.delegate.collaboratorChannels));this.delegate.downloadState&&J.push(this.delegate.downloadState);this.delegate.refresh&&J.push(this.delegate.refresh);return[].concat(_.L6(new Set(J)))};var wzL=function(){ir.apply(this,arguments)};
_.D(wzL,ir);wzL.prototype.getAssociations=function(){var J=[];this.delegate.video&&J.push(this.delegate.video);this.delegate.channelContributor&&J.push(this.delegate.channelContributor);return[].concat(_.L6(new Set(J)))};var riz=function(){H3.apply(this,arguments)};
_.D(riz,H3);riz.prototype.getAssociations=function(){var J=[];this.delegate.recommendedVideoMetadata&&J.push.apply(J,_.L6((new ss2(this.delegate.recommendedVideoMetadata)).getAssociations()));return[].concat(_.L6(new Set(J)))};
var ss2=function(){H3.apply(this,arguments)};
_.D(ss2,H3);ss2.prototype.getAssociations=function(){var J=[];this.delegate.localImageEntities&&J.push.apply(J,_.L6(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&J.push(this.delegate.videoDownloadContextEntity);return[].concat(_.L6(new Set(J)))};var LV$=function(){H3.apply(this,arguments)};
_.D(LV$,H3);LV$.prototype.getAssociations=function(){var J=[];this.delegate.playbackPosition&&J.push(this.delegate.playbackPosition);return[].concat(_.L6(new Set(J)))};var DbQ=function(){ir.apply(this,arguments)};
_.D(DbQ,ir);DbQ.prototype.getAssociations=function(){var J=[];this.delegate.owner&&J.push(this.delegate.owner);this.delegate.downloadState&&J.push(this.delegate.downloadState);this.delegate.userState&&J.push.apply(J,_.L6((new LV$(this.delegate.userState)).getAssociations()));this.delegate.additionalMetadata&&J.push.apply(J,_.L6((new riz(this.delegate.additionalMetadata)).getAssociations()));return[].concat(_.L6(new Set(J)))};var WVL=function(){ir.apply(this,arguments)};
_.D(WVL,ir);WVL.prototype.getAssociations=function(){var J=[];this.delegate.userChannelDetails&&J.push(this.delegate.userChannelDetails);return[].concat(_.L6(new Set(J)))};var z6a=function(){ir.apply(this,arguments)};
_.D(z6a,ir);z6a.prototype.getAssociations=function(){var J=[];this.delegate.channelOwner&&J.push(this.delegate.channelOwner);this.delegate.playbackPosition&&J.push(this.delegate.playbackPosition);this.delegate.localImageEntities&&J.push.apply(J,_.L6(this.delegate.localImageEntities));this.delegate.downloadStatus&&J.push(this.delegate.downloadStatus);return[].concat(_.L6(new Set(J)))};var cZo=new _.Q("downloadsPageSmartDownloadsOptInBannerParams");var u4z=function(){ir.apply(this,arguments)};
_.D(u4z,ir);u4z.prototype.getAssociations=function(){return[]};var fY$=function(){ir.apply(this,arguments)};
_.D(fY$,ir);fY$.prototype.getAssociations=function(){return[]};var Y9j=function(){ir.apply(this,arguments)};
_.D(Y9j,ir);Y9j.prototype.getAssociations=function(){return[]};var Xz$=function(){ir.apply(this,arguments)};
_.D(Xz$,ir);Xz$.prototype.getAssociations=function(){return[]};var ZIB=function(){ir.apply(this,arguments)};
_.D(ZIB,ir);ZIB.prototype.getAssociations=function(){return[]};var q9_=function(){ir.apply(this,arguments)};
_.D(q9_,ir);q9_.prototype.getAssociations=function(){return[]};var Ubj=function(){ir.apply(this,arguments)};
_.D(Ubj,ir);Ubj.prototype.getAssociations=function(){return[]};var S9z=function(){ir.apply(this,arguments)};
_.D(S9z,ir);S9z.prototype.getAssociations=function(){return[]};var h6C=function(){ir.apply(this,arguments)};
_.D(h6C,ir);h6C.prototype.getAssociations=function(){return[]};_.z9=new _.Q("dislikeButtonViewModel");_.Wg=new _.Q("likeButtonViewModel");var dbj=new _.Q("videoSummaryContentViewModel");var $bB=new _.Q("videoSummaryParagraphViewModel");var GEZ=new _.Q("changeTimelyActionVisibilityCommand");var E1Q=new _.Q("hideEngagementPanelEndpoint");var v1j=new _.Q("refreshPanelEndpoint");var OIQ=new _.Q("scrollToSectionEndpoint");var AiL=new _.Q("seekToVideoTimestampCommand");_.zt=new _.Q("showEngagementPanelEndpoint");var R6C=new _.Q("showTransientPlayerScrimOverlayCommand");var o1Q=new _.Q("toggleEngagementPanelCommand");_.Qsj=new _.Q("createBroadcastCommand");var e6u=new _.Q("metadataUpdateCommand");var jsB=function(){ir.apply(this,arguments)};
_.D(jsB,ir);jsB.prototype.getAssociations=function(){return[]};var FV6=function(){ir.apply(this,arguments)};
_.D(FV6,ir);FV6.prototype.getAssociations=function(){return[]};var lY$=function(){ir.apply(this,arguments)};
_.D(lY$,ir);lY$.prototype.getAssociations=function(){return[]};_.yiQ=new _.Q("merchandiseShelfRenderer");var Bb$=new _.Q("gridMovieRenderer");_.g1_=new _.Q("movieRenderer");var JEz=function(){ir.apply(this,arguments)};
_.D(JEz,ir);JEz.prototype.getAssociations=function(){var J=[];this.delegate.trackDownloadMetadatas&&J.push.apply(J,_.L6(this.delegate.trackDownloadMetadatas));return[].concat(_.L6(new Set(J)))};var cEL=function(){ir.apply(this,arguments)};
_.D(cEL,ir);
cEL.prototype.getAssociations=function(){var J=[];this.delegate.downloadedTracks&&J.push.apply(J,_.L6(this.delegate.downloadedTracks));this.delegate.smartDownloadedTracks&&J.push.apply(J,_.L6(this.delegate.smartDownloadedTracks));this.delegate.downloadedEpisodes&&J.push.apply(J,_.L6(this.delegate.downloadedEpisodes));this.delegate.downloadedAlbumReleases&&J.push.apply(J,_.L6(this.delegate.downloadedAlbumReleases));this.delegate.smartDownloadedAlbumReleases&&J.push.apply(J,_.L6(this.delegate.smartDownloadedAlbumReleases));this.delegate.downloadedPlaylists&&
J.push.apply(J,_.L6(this.delegate.downloadedPlaylists));this.delegate.smartDownloadedPlaylists&&J.push.apply(J,_.L6(this.delegate.smartDownloadedPlaylists));this.delegate.metadataOnlyTracks&&J.push.apply(J,_.L6(this.delegate.metadataOnlyTracks));return[].concat(_.L6(new Set(J)))};var mBz=function(){ir.apply(this,arguments)};
_.D(mBz,ir);mBz.prototype.getAssociations=function(){var J=[];this.delegate.trackDownloadMetadatas&&J.push.apply(J,_.L6(this.delegate.trackDownloadMetadatas));return[].concat(_.L6(new Set(J)))};var bCu=function(){ir.apply(this,arguments)};
_.D(bCu,ir);bCu.prototype.getAssociations=function(){var J=[];this.delegate.playbackData&&J.push(this.delegate.playbackData);this.delegate.localImageEntities&&J.push.apply(J,_.L6(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&J.push(this.delegate.videoDownloadContextEntity);return[].concat(_.L6(new Set(J)))};var xB$=function(){ir.apply(this,arguments)};
_.D(xB$,ir);
xB$.prototype.getAssociations=function(){var J=[];this.delegate.musicLibraryStatusEntity&&J.push(this.delegate.musicLibraryStatusEntity);this.delegate.primaryArtists&&J.push.apply(J,_.L6(this.delegate.primaryArtists));this.delegate.details&&J.push(this.delegate.details);this.delegate.userDetails&&J.push(this.delegate.userDetails);this.delegate.tracks&&J.push.apply(J,_.L6(this.delegate.tracks));this.delegate.share&&J.push(this.delegate.share);this.delegate.downloadMetadata&&J.push(this.delegate.downloadMetadata);this.delegate.refresh&&
J.push(this.delegate.refresh);return[].concat(_.L6(new Set(J)))};
var V_Z=function(){ir.apply(this,arguments)};
_.D(V_Z,ir);V_Z.prototype.getAssociations=function(){var J=[];this.delegate.albumRelease&&J.push(this.delegate.albumRelease);this.delegate.tracks&&J.push.apply(J,_.L6(this.delegate.tracks));return[].concat(_.L6(new Set(J)))};
var PgC=function(){ir.apply(this,arguments)};
_.D(PgC,ir);PgC.prototype.getAssociations=function(){var J=[];this.delegate.albumRelease&&J.push(this.delegate.albumRelease);return[].concat(_.L6(new Set(J)))};var M_a=function(){ir.apply(this,arguments)};
_.D(M_a,ir);M_a.prototype.getAssociations=function(){var J=[];this.delegate.details&&J.push(this.delegate.details);this.delegate.userDetails&&J.push(this.delegate.userDetails);return[].concat(_.L6(new Set(J)))};
var psL=function(){ir.apply(this,arguments)};
_.D(psL,ir);psL.prototype.getAssociations=function(){var J=[];this.delegate.parentArtist&&J.push(this.delegate.parentArtist);return[].concat(_.L6(new Set(J)))};
var N2j=function(){ir.apply(this,arguments)};
_.D(N2j,ir);N2j.prototype.getAssociations=function(){var J=[];this.delegate.parentArtist&&J.push(this.delegate.parentArtist);return[].concat(_.L6(new Set(J)))};var t_$=function(){ir.apply(this,arguments)};
_.D(t_$,ir);t_$.prototype.getAssociations=function(){return[]};var If6=function(){ir.apply(this,arguments)};
_.D(If6,ir);If6.prototype.getAssociations=function(){return[]};var KR2=function(){ir.apply(this,arguments)};
_.D(KR2,ir);
KR2.prototype.getAssociations=function(){var J=[];this.delegate.tracks&&J.push.apply(J,_.L6(this.delegate.tracks));this.delegate.refresh&&J.push(this.delegate.refresh);this.delegate.musicLibraryStatusEntity&&J.push(this.delegate.musicLibraryStatusEntity);this.delegate.details&&J.push(this.delegate.details);this.delegate.downloadMetadata&&J.push(this.delegate.downloadMetadata);this.delegate.sideloadMetadata&&J.push(this.delegate.sideloadMetadata);this.delegate.userDetails&&J.push(this.delegate.userDetails);this.delegate.entryCollection&&
J.push(this.delegate.entryCollection);this.delegate.share&&J.push(this.delegate.share);this.delegate.podcastShowAdditionalMetadata&&J.push.apply(J,_.L6((new CgQ(this.delegate.podcastShowAdditionalMetadata)).getAssociations()));return[].concat(_.L6(new Set(J)))};
var CgQ=function(){H3.apply(this,arguments)};
_.D(CgQ,H3);CgQ.prototype.getAssociations=function(){var J=[];this.delegate.creatorEntity&&J.push(this.delegate.creatorEntity);return[].concat(_.L6(new Set(J)))};var afQ=function(){ir.apply(this,arguments)};
_.D(afQ,ir);afQ.prototype.getAssociations=function(){return[]};var k_8=function(){ir.apply(this,arguments)};
_.D(k_8,ir);
k_8.prototype.getAssociations=function(){var J=[];this.delegate.musicLibraryStatusEntity&&J.push(this.delegate.musicLibraryStatusEntity);this.delegate.artists&&J.push.apply(J,_.L6(this.delegate.artists));this.delegate.audioModeVersion&&J.push(this.delegate.audioModeVersion);this.delegate.videoModeVersion&&J.push(this.delegate.videoModeVersion);this.delegate.userDetails&&J.push(this.delegate.userDetails);this.delegate.details&&J.push(this.delegate.details);this.delegate.albumRelease&&J.push(this.delegate.albumRelease);this.delegate.share&&
J.push(this.delegate.share);this.delegate.libraryEdit&&J.push(this.delegate.libraryEdit);this.delegate.downloadMetadata&&J.push(this.delegate.downloadMetadata);this.delegate.playbackPosition&&J.push(this.delegate.playbackPosition);this.delegate.lyrics&&J.push(this.delegate.lyrics);return[].concat(_.L6(new Set(J)))};
var HCZ=function(){ir.apply(this,arguments)};
_.D(HCZ,ir);HCZ.prototype.getAssociations=function(){var J=[];this.delegate.parentTrack&&J.push(this.delegate.parentTrack);return[].concat(_.L6(new Set(J)))};
var iCL=function(){ir.apply(this,arguments)};
_.D(iCL,ir);iCL.prototype.getAssociations=function(){var J=[];this.delegate.parentTrack&&J.push(this.delegate.parentTrack);return[].concat(_.L6(new Set(J)))};var yg=new _.Q("musicResponsiveListItemRenderer");var rRq=new _.Q("addToPlaylistEndpoint");var ncQ=new _.Q("captionPickerEndpoint");var T2L=new _.Q("suggestStats");var ws8=new _.Q("backstageImageUploadEndpoint");var rEj=new _.Q("createBackstagePostDialogEndpoint");_.sEB=new _.Q("createCommentReplyDialogEndpoint");_.LRZ=new _.Q("updateCommentDialogEndpoint");_.DBu=new _.Q("updateCommentReplyDialogEndpoint");var WRC=new _.Q("menuEndpoint");var HFr=new _.Q("modalEndpoint");var zCa=new _.Q("playlistEditorEndpoint");var u8z=new _.Q("copyTextEndpoint");var ff6,YZ_;ff6=new _.Q("shareEndpoint");YZ_=new _.Q("shareEntityEndpoint");_.Xsu=new _.Q("shareEntityServiceEndpoint");_.Ugt=new _.Q("userFeedbackEndpoint");_.Rz=new _.Q("watchEndpoint");var m7R=new _.Q("watchPlaylistEndpoint");var ZCa=new _.Q("addUpcomingEventReminderEndpoint");_.LO=new _.Q("getCommentsFromInboxCommand");var qZQ=new _.Q("notificationOptOutEndpoint");var UBz=new _.Q("recordNotificationInteractionsEndpoint");var SZa=new _.Q("removeUpcomingEventReminderEndpoint");var Tnf=new _.Q("getDownloadActionCommand");_.hCC=new _.Q("offlineOrchestrationActionCommand");var dB$=function(){ir.apply(this,arguments)};
_.D(dB$,ir);dB$.prototype.getAssociations=function(){return[]};var $B8=function(){ir.apply(this,arguments)};
_.D($B8,ir);$B8.prototype.getAssociations=function(){return[]};var G_L=function(){ir.apply(this,arguments)};
_.D(G_L,ir);G_L.prototype.getAssociations=function(){return[]};var Ec_=function(){ir.apply(this,arguments)};
_.D(Ec_,ir);Ec_.prototype.getAssociations=function(){return[]};var vcj=function(){ir.apply(this,arguments)};
_.D(vcj,ir);vcj.prototype.getAssociations=function(){var J=[];this.delegate.transfer&&J.push(this.delegate.transfer);this.delegate.adsPlaybackData&&J.push.apply(J,_.L6(this.delegate.adsPlaybackData));this.delegate.drmLicense&&J.push(this.delegate.drmLicense);this.delegate.offlineVideoPolicy&&J.push(this.delegate.offlineVideoPolicy);this.delegate.videoDownloadContextEntity&&J.push(this.delegate.videoDownloadContextEntity);return[].concat(_.L6(new Set(J)))};var OC_=function(){ir.apply(this,arguments)};
_.D(OC_,ir);OC_.prototype.getAssociations=function(){return[]};var AEu=function(){ir.apply(this,arguments)};
_.D(AEu,ir);AEu.prototype.getAssociations=function(){var J=[];this.delegate.offlineVideoStreams&&J.push.apply(J,_.L6(this.delegate.offlineVideoStreams));this.delegate.captionTrack&&J.push.apply(J,_.L6(this.delegate.captionTrack));return[].concat(_.L6(new Set(J)))};var RC6=function(){ir.apply(this,arguments)};
_.D(RC6,ir);RC6.prototype.getAssociations=function(){return[]};var oc6=new _.Q("showMoreDrawerCommand");var QEa=new _.Q("updateEngagementPanelContentCommand");var eC6=new _.Q("getPdgBuyFlowCommand");var jEQ=new _.Q("liveChatPurchaseMessageEndpoint");var FRu=new _.Q("openSuperStickerBuyFlowCommand");var lfZ=new _.Q("updatePdgFeatureEnablementCommand");var yEZ=function(){ir.apply(this,arguments)};
_.D(yEZ,ir);yEZ.prototype.getAssociations=function(){return[]};var B2Q=function(){ir.apply(this,arguments)};
_.D(B2Q,ir);B2Q.prototype.getAssociations=function(){return[]};_.gcQ=new _.Q("pdgCommentChipRenderer");_.JWu=new _.Q("permissionRoleBottomBarRenderer");_.cWQ=new _.Q("updatePermissionRoleCommand");var mwL=new _.Q("prefetchWatchCommand");var b_2=new _.Q("updatePlayerErrorMessageCommand");var K0T=new _.Q("toggleCaptionsVisibilityCommand");_.xwZ=new _.Q("quickActionsViewModel");var Vzj=new _.Q("playerResponse");var P4_=new _.Q("playlistRenderer");_.Mz8=new _.Q("playlistVideoListRenderer");_.DA=new _.Q("playlistEditEndpoint");var pE2=new _.Q("createImagePollCommand");var NDj=new _.Q("createQuizCommand");var tzQ=new _.Q("quizRenderer");var Irz=new _.Q("uploadedVideoRenderer");var Kc$=new _.Q("decorateMessageEndpoint");var C4a=new _.Q("lpOfferCardOptionViewModel");var arC=new _.Q("sfvAudioItemPlaybackCommand");var kc$=function(){ir.apply(this,arguments)};
_.D(kc$,ir);kc$.prototype.getAssociations=function(){return[]};_.W3=new _.Q("reelNonVideoContentEndpoint");_.kb=new _.Q("reelWatchEndpoint");_.z3=new _.Q("reelItemRenderer");_.H_6=new _.Q("reelMetapanelViewModel");_.i_z=new _.Q("reelNonVideoContentRenderer");_.n_Q=new _.Q("reelPlayerOverlayRenderer");var TD_=new _.Q("shortsLockupViewModel");var wE_=new _.Q("sponsorButtonViewModel");var rWj=new _.Q("reelItemWatchResponse");var sbL=new _.Q("textBadgeRenderer");_.ur=new _.Q("buttonRenderer");_.fO=new _.Q("toggleButtonRenderer");var tVu=new _.Q("switchButtonViewModel");_.LcQ=new _.Q("confirmDialogRenderer");var Dw6;Dw6=new _.Q("menuRenderer");_.WcL=new _.Q("menuFlexibleItemRenderer");var zX$=new _.Q("pollRenderer");_.ul2=new _.Q("backgroundPromoRenderer");var Y_L;_.fr2=new _.Q("chipCloudRenderer");Y_L=new _.Q("chipCloudChipRenderer");var XEz=new _.Q("dropdownRenderer");var Z_2=new _.Q("gridVideoRenderer");_.q_Z=new _.Q("itemSectionRenderer");_.Uwz=new _.Q("messageRenderer");var S_B=new _.Q("sortFilterHeaderRenderer");_.YW=new _.Q("videoRenderer");var hXa=new _.Q("resolveUrlCommandMetadata");var dwQ=function(){ir.apply(this,arguments)};
_.D(dwQ,ir);dwQ.prototype.getAssociations=function(){return[]};_.$wQ=new _.Q("getAnswerCommand");_.Kv=new _.Q("searchEndpoint");var Gc2=new _.Q("genAiRichTextViewModel");var nI2=new _.Q("overviewAnswerViewModel");var E_6=new _.Q("addToPlaylistServiceEndpoint");var v__=new _.Q("clearSearchHistoryEndpoint");var O_L=new _.Q("clearWatchHistoryEndpoint");var AW$=new _.Q("webSerializedServiceEndpointExtension");_.RXL=new _.Q("createCommentEndpoint");var o_$=new _.Q("createCommentReplyEndpoint");var Qba=new _.Q("performCommentActionEndpoint");var eXB=new _.Q("updateCommentEndpoint");var jbZ=new _.Q("updateCommentReplyEndpoint");_.XI=new _.Q("createPlaylistServiceEndpoint");var Fcz=new _.Q("deletePlaylistEndpoint");var lrZ=new _.Q("deleteVideoEndpoint");var wJQ=new _.Q("getReportFormEndpoint");var cVL=new _.Q("modifyChannelNotificationPreferenceEndpoint");var hrt;_.pK=new _.Q("offlinePlaylistEndpoint");hrt={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 dcG;_.Mx=new _.Q("offlineVideoEndpoint");dcG={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 mD$=new _.Q("pingingEndpoint");_.bVu=new _.Q("selectActiveIdentityEndpoint");var xDB=new _.Q("setSettingEndpoint");var ZBJ=new _.Q("undoFeedbackEndpoint");var VT2=new _.Q("unsubscribeEndpoint");_.Po$=new _.Q("updatedMetadataEndpoint");var MTC=function(){ir.apply(this,arguments)};
_.D(MTC,ir);MTC.prototype.getAssociations=function(){return[]};_.pYB=new _.Q("updateLocalAppSettingCommand");var NIQ=new _.Q("saveImageToDeviceEndpoint");var tTa=new _.Q("shareImageCommand");var Ij8=new _.Q("sharingProviderDataCommand");var KOB=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(KOB,_.d6);var Co8=[0,_.ES,-1];KOB.prototype.JSC$10276_serializeBinary=ceD(Co8);var aj_=_.Bw(Co8);var kYQ=new _.Q("userMentionSuggestionRenderer");var HVC=new _.Q("liveChatTunnelCommand");var iVZ=new _.Q("showSponsorshipsGiftOfferDialogCommand");var nUa=new _.Q("sponsorshipsScrollableShelfViewModel");var TI$=new _.Q("updateUpcomingEventReminderButtonStateCommand");var wYB=new _.Q("upcomingEventReminderButtonStateRenderer");var rVa=new _.Q("subscribeEndpoint");var se_=new _.Q("registerTasksCommand");var LO6=new _.Q("showDialogCommand");_.KK=new _.Q("showSheetCommand");var DDB=new _.Q("showSnackbarCommand");var WO_=function(){ir.apply(this,arguments)};
_.D(WO_,ir);WO_.prototype.getAssociations=function(){return[]};var zs_=function(){ir.apply(this,arguments)};
_.D(zs_,ir);zs_.prototype.getAssociations=function(){return[]};_.Oc=new _.Q("avatarViewModel");var ug_=new _.Q("badgeViewModel");_.ri=new _.Q("buttonViewModel");_.ZA=new _.Q("chipViewModel");var wqQ=new _.Q("collectionThumbnailViewModel");var fj$=new _.Q("contentPreviewImageViewModel");var YqQ=new _.Q("decoratedAvatarViewModel");var J_t=new _.Q("downloadButtonViewModel");_.KgQ=new _.Q("engagementBarViewModel");_.XY$=new _.Q("imageBannerViewModel");var iLQ=new _.Q("lockupContentMetadataRowExtension");var ZV8=new _.Q("lockupMetadataViewModel");_.qqB=new _.Q("lockupViewModel");var UDZ=new _.Q("avatarStackViewModel");var Sq_=function(){ir.apply(this,arguments)};
_.D(Sq_,ir);Sq_.prototype.getAssociations=function(){return[]};_.hsa=new _.Q("pageHeaderViewModel");var dDz=new _.Q("snackbarViewModel");var $D_=new _.Q("thumbnailHoverOverlayToggleActionsViewModel");_.sc=new _.Q("toggleButtonViewModel");var GY_=function(){ir.apply(this,arguments)};
_.D(GY_,ir);GY_.prototype.getAssociations=function(){return[]};_.CYq=new _.Q("votingViewModel");var EUj=new _.Q("sectionHeaderViewModel");var vU_=new _.Q("notifyDropdownOptionSelectedCommand");var fVu=new _.Q("listViewModel");_.CK=new _.Q("listItemViewModel");var OVC=new _.Q("dialogHeaderViewModel");var AVz=function(){ir.apply(this,arguments)};
_.D(AVz,ir);AVz.prototype.getAssociations=function(){return[]};var RsC=function(){ir.apply(this,arguments)};
_.D(RsC,ir);RsC.prototype.getAssociations=function(){return[]};var oUQ=function(){ir.apply(this,arguments)};
_.D(oUQ,ir);oUQ.prototype.getAssociations=function(){return[]};_.Qeu=new _.Q("transcriptSubmitCaptionCorrectionCommand");var esQ=function(){ir.apply(this,arguments)};
_.D(esQ,ir);esQ.prototype.getAssociations=function(){return[]};var xeT=new _.Q("unpluggedStringRunImage");var jeC=new _.Q("tabViewModel");var FOQ=new _.Q("tabbedViewModel");var lj$=function(){ir.apply(this,arguments)};
_.D(lj$,ir);lj$.prototype.getAssociations=function(){return[]};_.yVQ=new _.Q("updateDescriptionAction");var BIQ=new _.Q("updateToggleButtonTextAction");_.gUL=new _.Q("autoplaySwitchButtonRenderer");var X1;_.JZL=new _.Q("multiMarkersPlayerBarRenderer");X1=new _.Q("chapterRenderer");var cZj=new _.Q("heatMarkerRenderer");var Rqt=new _.Q("heatmapRenderer");var mZz=new _.Q("smartSkipPlayerScrimOverlayRenderer");var bO2=new _.Q("timedMarkerDecorationRenderer");var Jwf=new _.Q("postWebToNativeMessageCommand");var xZQ=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(xZQ,_.d6);var VG$=_.yb(xZQ,[0,_.ES,-2]);var Pr8=new _.Q("whitelistEditEndpoint");var MGj=new _.Q("clearUrlParamCommand");var p3_=new _.Q("commerceActionCommand");_.NeZ=new _.Q("getPaymentInstrumentsParamsCommand");var tGQ=new _.Q("getPaymentsClientTokenCommand");var IA$=new _.Q("googlePaymentBillingCommand");var KMa=new _.Q("googlePaymentPurchaseManagerCommand");_.Crz=new _.Q("logGtmCommand");var aAa=new _.Q("updateCardItemOnClickCommand");_.k3L=new _.Q("ypcPauseSubscriptionCommand");_.HOL=new _.Q("ypcResumeSubscriptionCommand");var iO_=function(){ir.apply(this,arguments)};
_.D(iO_,ir);iO_.prototype.getAssociations=function(){return[]};var nWZ=function(){ir.apply(this,arguments)};
_.D(nWZ,ir);nWZ.prototype.getAssociations=function(){return[]};var Tez=function(){ir.apply(this,arguments)};
_.D(Tez,ir);Tez.prototype.getAssociations=function(){return[]};var w3u=function(){ir.apply(this,arguments)};
_.D(w3u,ir);w3u.prototype.getAssociations=function(){return[]};var rZ$=function(){ir.apply(this,arguments)};
_.D(rZ$,ir);rZ$.prototype.getAssociations=function(){return[]};var gDQ=new _.Q("ypcOffersEndpoint");var syL=new _.Q("cardItemRenderer"),LMa=new _.Q("cardItemTextRenderer");var DZ2=new _.Q("commerceCartItemQuantityPickerRenderer");var WMB=new _.Q("linkCardRenderer");var eHe=new _.Q("quantityIncrementerButtonViewModel");var z5Z=new _.Q("quantityIncrementerViewModel");var uI$=new _.Q("themedImageViewModel");_.fAQ=new _.Q("ypcCancelRecurrenceEndpoint");var YP_=new _.Q("ypcCompleteTransactionEndpoint");_.X3j=new _.Q("ypcGetCartEndpoint");_.c8=new _.Q("ypcGetOffersEndpoint");_.qZ=new _.Q("ypcHandleTransactionEndpoint");var ZO_=new _.Q("ypcLogWalletAnalyticDataEndpoint");_.qPu=new _.Q("ypcRedeemCodeEndpoint");var UZ2=new _.Q("ypcUpdateFopEndpoint");Fg(jT(1),Q2(4));Mxo((new MessageChannel).port2);var SP_=function(){this.register=new Map},h6Q=function(J,c,m){J=J+"_"+c;
UP.register.has(J)?m=UP.register.get(J):(m=m(),UP.register.set(J,m));return m},h5Q=function(J){J=_.M(J.register.values());
for(var c=J.next();!c.done;c=J.next())_.tm(c.value,"ABORTED")};
SP_.prototype.clear=function(){h5Q(this);this.register.clear()};
var UP=new SP_;var kEq=Date.now().toString();var iIG,dZ_=_.mo.ytLoggingDocDocumentNonce_;dZ_||(dZ_=zv(16),_.jD("ytLoggingDocDocumentNonce_",dZ_));iIG=dZ_;var WVT={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 $Z_;$Z_=1;_.uk=function(J){this.veData=J};
_.n7=function(J){return new _.uk({trackingParams:J})};
_.rs=function(J,c,m,b,x,P){var p=$Z_++;return new _.uk({veType:J,veCounter:p,elementIndex:m,dataElement:c,youtubeData:b,jspbYoutubeData:x,loggingDirectives:P})};
_.V=_.uk.prototype;
_.V.getAsJson=function(){var J={};this.veData.trackingParams!==void 0?J.trackingParams=this.veData.trackingParams:(J.veType=this.veData.veType,this.veData.veCounter!==void 0&&(J.veCounter=this.veData.veCounter),this.veData.elementIndex!==void 0&&(J.elementIndex=this.veData.elementIndex));this.veData.dataElement!==void 0&&(J.dataElement=this.veData.dataElement.getAsJson());this.veData.youtubeData!==void 0&&(J.youtubeData=this.veData.youtubeData);this.veData.isCounterfactual&&(J.isCounterfactual=!0);
return J};
_.V.getAsJspb=function(){var J=new KGQ;this.veData.trackingParams!==void 0?J.setTrackingParams(this.veData.trackingParams):(this.veData.veType!==void 0&&_.f0(J,2,this.veData.veType),this.veData.veCounter!==void 0&&_.f0(J,6,this.veData.veCounter),this.veData.elementIndex!==void 0&&_.f0(J,3,this.veData.elementIndex),this.veData.isCounterfactual&&_.Pa(J,5,!0));if(this.veData.dataElement!==void 0){var c=this.veData.dataElement.getAsJspb();_.m_(J,7,c)}this.veData.youtubeData!==void 0&&_.m_(J,8,this.veData.jspbYoutubeData);
return J};
_.V.toString=function(){return JSON.stringify(this.getAsJson())};
_.V.isClientVe=function(){return!this.veData.trackingParams&&!!this.veData.veType};
_.V.getLoggingDirectives=function(){return this.veData.loggingDirectives};_.jD("yt_logging_screen.getRootVeType",ssR);_.jD("yt_logging_screen.getCurrentCsn",_.Y3);_.jD("yt_logging_screen.getCttAuthInfo",ZP);_.jD("yt_logging_screen.setCurrentScreen",_.qa);var G32=function(){this.events=new Map},EWB=function(J){var c=[];
J=_.M(J.events.values());for(var m=J.next();!m.done;m=J.next())c.push(m.value);return c};
G32.prototype.clear=function(){this.events.clear()};var OOQ=function(){this.logTransport=new vW_;this.loggedEventRegister=new G32;this.unloggedEventRegister=new G32;this.eventsCount=0;this.flushInterval=3E4;this.JSC$10333_flushTimer=new _.gP(this.flushInterval);this.JSC$10333_flushTimer.listen("tick",this.flush,!1,this)};
OOQ.prototype.flush=function(){if(this.eventsCount){var J={loggedEvents:EWB(this.loggedEventRegister),unloggedEvents:EWB(this.unloggedEventRegister)};if(_.w("export_player_version_to_ytconfig")){var c;(c=_.Ub("PLAYER_CLIENT_VERSION"))?(c=c.split("-")[0].replace(/\./g,""),c=isNaN(Number(c))?"0":c):c="";var m=_.Ub("PLAYER_CLIENT_VERSION");if(m){m=m.split("-");var b="";m.length>1&&(b=m[m.length-1]);m=aYQ(b.startsWith("canary_experiment")?"canary":b.startsWith("canary_control")?"control":"none")}else m=
"CLIENT_CANARY_STATE_UNKNOWN";J.dimensions={playerClientVersion:c,playerCanaryState:m}}this.logTransport.flush(J);this.loggedEventRegister.clear();this.unloggedEventRegister.clear();this.eventsCount=0;this.JSC$10333_flushTimer.enabled&&this.JSC$10333_flushTimer.stop()}};
var AZB=function(J){SG==null&&(SG=new OOQ);var c=SG;var m=c.loggedEventRegister;J.dimensions=J.dimensions||{};J.dimensions.csn=_.Y3()||"";var b=fYe(J.dimensions).join(";");if(J.records!=null)if(m.events.has(b)){var x;(x=m.events.get(b).records)==null||x.push.apply(x,_.L6(J.records))}else m.events.set(b,J);c.JSC$10333_flushTimer.enabled||c.JSC$10333_flushTimer.start();c.eventsCount++;c.eventsCount>=100&&c.flush()};var vW_=function(){};
vW_.prototype.flush=function(J,c){_.w("enable_client_sli_logging")&&_.zB("sliEventBatch",J,{sendIsolatedPayload:!!c})};var SG;var oWZ;oWZ=function(J){var c=R5Q;J=J===void 0?{}:J;c=c.name;var m=S9D("SUCCESS");AZB({dimensions:J,records:[{name:c,state:"SLI_STATE_END",status:m}]})};
_.dbo=function(J,c,m,b){this.name=J;this.sliId=c;this.timeoutMs=m;this.statusOnTimeout=b;this.logSliId="";this.timeoutHandle=-1;this.ongoing=!1;this.dimensions={}};
_.dbo.prototype.getId=function(){return this.sliId};
_.N_=function(J,c){c=c===void 0?{}:c;J.ongoing||(J.ongoing=!0,J.dimensions=c,J.logSliId=Os8(),AZB({dimensions:J.dimensions,records:[{name:J.name,state:"SLI_STATE_START",sliId:J.logSliId}]}),J.timeoutMs>0&&(J.timeoutHandle=setTimeout(function(){_.tm(J,J.statusOnTimeout)},J.timeoutMs)))};
_.tm=function(J,c){J.ongoing&&(J.timeoutMs>0&&clearTimeout(J.timeoutHandle),J.ongoing=!1,c={dimensions:J.dimensions,records:[{name:J.name,status:S9D(c),state:"SLI_STATE_END",sliId:J.logSliId}]},UP.register.delete(J.name+"_"+J.sliId),AZB(c))};var R5Q=new function(){this.name="SLI_NAME_YOUTUBE_WEB_SESSION_PARTITION"};var Qy6=function(){ir.apply(this,arguments)};
_.D(Qy6,ir);Qy6.prototype.getAssociations=function(){return[]};var oCt=new _.Q("highlightTextDecoratorColorMapExtension");var AvJ=new _.Q("styleRunColorMapExtension");var R6Q=_.Oo(["data-"]),e6f={};var FV2={};var hZ=function(J){this.wrappedPromise_=J===void 0?null:J;this.state_=0;this.JSC$10365_value_=null};
hZ.prototype.then=function(J,c,m){return this.wrappedPromise_?this.wrappedPromise_.then(J,c,m):this.state_===1&&J?(J=J.call(m,this.JSC$10365_value_))&&typeof J.then==="function"?J:_.de(J):this.state_===2&&c?(J=c.call(m,this.JSC$10365_value_))&&typeof J.then==="function"?J:_.e52(J):this};
hZ.prototype.getValue=function(){return this.JSC$10365_value_};
hZ.prototype.isRejected=function(){return this.state_==2};
I2B(hZ);_.e52=function(J){var c=new hZ;J=J===void 0?null:J;c.state_=2;c.JSC$10365_value_=J===void 0?null:J;return c};
_.de=function(J){var c=new hZ;J=J===void 0?null:J;c.state_=1;c.JSC$10365_value_=J===void 0?null:J;return c};var t_e="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var jyz=["load","abort","error"],$W=function(J,c,m){this.transformedData=null;this.invalidAspectRatio=this.cropped=!1;this.JSC$10385_maxAspectRatio_=J;this.disableAnimation_=c===void 0?!1:c;this.disableExifRotation_=m===void 0?!1:m;this.JSC$10385_image_=new Image;this.angle_=this.dataUrl_=this.mime_=this.JSC$10385_reject_=this.resolve_=null};
$W.prototype.transform=function(J){var c=this;this.mime_=J.type;$1(pAQ(J),this.dataUrlRead_,this.readError_,this);$1(MHB(J.slice(0,65536)),this.exifRead_,this.readError_,this);return new Promise(function(m,b){c.resolve_=m;c.JSC$10385_reject_=b})};
$W.prototype.dataUrlRead_=function(J){this.dataUrl_=J;this.angle_!=null&&FMa(this)};
$W.prototype.exifRead_=function(J){if(this.disableExifRotation_)this.angle_=0;else{a:if(J=new DataView(J),J.byteLength<2||J.getUint16(0)!==65496)J=-2;else{for(var c=2,m=J.byteLength;c<m;){var b=J.getUint16(c),x=J.getUint16(c+2);if(b===65505){c+=4;b=J.getUint32(c);x=J.getUint16(c+4);if(b!==1165519206||x!==0)break;c+=6;b=J.getUint16(c)===18761;c+=J.getUint32(c+4,b);x=J.getUint16(c,b);c+=2;for(var P=0;P<x;P++){if(J.getUint16(c,b)===274){c+=8;J=J.getUint16(c,b);break a}c+=12}}else if(b>>8!==255)break;
else c+=x+2}J=-1}switch(J){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&&FMa(this)};
$W.prototype.readError_=function(){this.JSC$10385_reject_()};
var FMa=function(J){Hd(J.JSC$10385_image_,jyz,J.completeTransform_,!1,J);J.JSC$10385_image_.src=_.n1(J.dataUrl_).toString();J.JSC$10385_image_.src!=is.toString()&&J.JSC$10385_image_.src.substr(0,11)==="data:image/"||J.JSC$10385_reject_()};
$W.prototype.completeTransform_=function(){if(this.JSC$10385_image_.src!=is.toString()){var J=_.n1(this.dataUrl_),c=this.JSC$10385_image_.naturalHeight?this.JSC$10385_image_.naturalWidth/this.JSC$10385_image_.naturalHeight:null;this.invalidAspectRatio=c>this.JSC$10385_maxAspectRatio_||c<1/this.JSC$10385_maxAspectRatio_;if(this.mime_!=="image/gif"||this.disableAnimation_){var m=this.JSC$10385_image_.naturalWidth,b=this.JSC$10385_image_.naturalHeight,x=c=0,P=this.JSC$10385_image_.naturalHeight?this.JSC$10385_image_.naturalWidth/
this.JSC$10385_image_.naturalHeight:null;P>this.JSC$10385_maxAspectRatio_?(m=this.JSC$10385_maxAspectRatio_*b,c=(m-this.JSC$10385_image_.naturalWidth)/2,this.cropped=!0):P<1/this.JSC$10385_maxAspectRatio_?(b=this.JSC$10385_maxAspectRatio_*m,x=(b-this.JSC$10385_image_.naturalHeight)/2,this.cropped=!0):this.mime_==="image/gif"&&this.disableAnimation_&&(this.cropped=!0);if(this.angle_==90||this.angle_==270)P=m,m=b,b=P,P=c,c=x,x=P;switch(this.angle_){case 90:x-=m;break;case 180:c-=m;x-=b;break;case 270:c-=
b}this.cropped||this.angle_%360!==0?(J=document.createElement("canvas"),J.width=m||1,J.height=b||1,this.JSC$10385_image_.naturalWidth&&this.JSC$10385_image_.naturalHeight&&(m=J.getContext("2d"),m.rotate(Math.PI/180*this.angle_),m.drawImage(this.JSC$10385_image_,c,x,this.JSC$10385_image_.naturalWidth,this.JSC$10385_image_.naturalHeight)),this.transformedData=_.n1(J.toDataURL(this.mime_))):this.transformedData=J}else this.transformedData=J;this.resolve_(this)}};var G3=function(J,c){_.Mb.call(this,J);this.value=c};
_.D(G3,_.Mb);
var EP=function(J,c,m,b,x,P,p){p=p===void 0?!1:p;_.KI.call(this);var t=this;this.JSC$10390_url_=J;this.channelId_=c;this.maxFileSizeMb_=m;this.JSC$10390_maxAspectRatio_=b;this.dropZoneEl_=x;this.rejectInvalidAspectRatio_=p;this.selectButtonEl_=P;this.JSC$10390_reject_=this.resolve_=this.uploadPromise_=null;this.dropZoneOverlay_=new br(this.dropZoneEl_);this.selectOverlay_=new xW(this.selectButtonEl_);this.selectButtonEl_.nextSibling.tagName=="INPUT"&&this.selectButtonEl_.nextSibling.setAttribute("accept","image/*");
this.JSC$10390_image_=this.transfer_=null;this.handler_=new _.J0(this);_.Kc(this,this.handler_);this.handler_.listen(this.dropZoneOverlay_,"f",this.onChange_).listen(this.dropZoneEl_,"dragover",this.onHover_).listen(this.dropZoneEl_,"dragleave",this.onHover_).listen(P,"click",function(){t.selectOverlay_.click()}).listen(this.selectOverlay_,"j",this.onChange_)};
_.D(EP,_.KI);EP.prototype.disposeInternal=function(){for(var J=this.selectButtonEl_.nextSibling;J&&J.parentNode&&J.tagName=="INPUT";)J.parentNode.removeChild(J),J=this.selectButtonEl_.nextSibling;this.cancel();_.KI.prototype.disposeInternal.call(this)};
EP.prototype.uploadPromise=function(){if(this.JSC$10390_image_==null)return null;this.uploadPromise_||lAQ(this);return this.uploadPromise_};
EP.prototype.cancel=function(){yZ$(this);this.JSC$10390_image_=null};
var yZ$=function(J){J.transfer_&&J.transfer_.cancel();J.transfer_=null;J.uploadPromise_=null;J.resolve_=null;J.JSC$10390_reject_=null},lAQ=function(J){yZ$(J);
J.transfer_=_.Wx$(J.JSC$10390_url_,{"X-YouTube-ChannelId":J.channelId_},J.JSC$10390_image_);J.handler_.listenOnce(J.transfer_,"l",J.JSC$10392_onUploadComplete_);J.handler_.listenOnce(J.transfer_,"n",J.onUploadError_);J.transfer_.run();J.uploadPromise_=new Promise(function(c,m){J.resolve_=c;J.JSC$10390_reject_=m})};
_.V=EP.prototype;_.V.onChange_=function(J){J.files.length&&(this.JSC$10390_image_=J.files[0],this.JSC$10390_image_.size>1048576*this.maxFileSizeMb_?(this.JSC$10390_image_=null,this.dispatchEvent(new G3("yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"))):(lAQ(this),(new $W(this.JSC$10390_maxAspectRatio_)).transform(this.JSC$10390_image_).then((0,_.Wa)(this.onPreview_,this),(0,_.Wa)(this.onPreviewError_,this))))};
_.V.onPreview_=function(J){if(J.invalidAspectRatio&&(this.rejectInvalidAspectRatio_&&(this.JSC$10390_image_=null),this.dispatchEvent(new G3("yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT")),this.rejectInvalidAspectRatio_))return;J.cropped&&this.dispatchEvent(new G3("yt.comments.ImageUploadOverlay.CROPPED_EVENT"));this.dispatchEvent(new G3("yt.comments.ImageUploadOverlay.CHANGE_EVENT",J.transformedData))};
_.V.onPreviewError_=function(){this.JSC$10390_image_=null;this.dispatchEvent(new G3("yt.comments.ImageUploadOverlay.INVALID_EVENT"))};
_.V.onHover_=function(J){J.stopPropagation();J.preventDefault();if(J.type==="dragover")J=!0;else if(J.type==="dragleave")J=!1;else return;this.dispatchEvent(new G3("yt.comments.ImageUploadOverlay.HOVER_EVENT",J))};
_.V.JSC$10392_onUploadComplete_=function(){var J=(0,_.hAu)(this.transfer_.getResponseText());this.resolve_(J.encryptedBlobId)};
_.V.onUploadError_=function(){this.JSC$10390_reject_();yZ$(this)};var Bej=function(J){J=J||{};var c={},m={};this.url=J.url||"";this.args=J.args||_.Lw.clone(c);this.assets=J.assets||{};this.attrs=J.attrs||_.Lw.clone(m);this.fallback=J.fallback||null;this.fallbackMessage=J.fallbackMessage||null;this.html5=!!J.html5;this.disable=J.disable||{};this.loaded=!!J.loaded;this.messages=J.messages||{}};
Bej.prototype.clone=function(){var J=new Bej,c;for(c in this)if(this.hasOwnProperty(c)){var m=this[c];J[c]=_.IF(m)=="object"?_.Lw.clone(m):m}return J};var gWQ,JMZ,cM_,lD,b$2,xhz,VBQ,P6j,MBa,p$6,NV_,tBL,IlQ,KnQ,C66,alC,knL,H$$,i$j,n7j,TV$,w$z,rM_,sQ_,Lnu,DhC,Wna,zf8,uAQ,p_T,flQ,Yla,X$Z,Z$8,ql$,UhQ,Sl_,hf2,dhB,$h$,Gna,E72,v76,O$u,AMC,Rf2,o7$,QQ8,ef8,jQz,FnB,llL,yMj,BV6,g7C,Jga,v3,cg$,mH_,b9Z,xH_,VFj,PU8,MFC,ptZ,NF6,tFC,IOa,K7u,CUZ,aO_,kKC,H92,i9C,nsz,PY2,TFL,wtz,rg6,sTz,L78,DHQ,W76,zlL,uLZ,fOZ,YW2,Xt6,Z9j,qW6,UH_,SW$,hl8,dHQ,$HQ,GKQ,EsB,vsQ,O9Q,Ag2,Rl8;gWQ=["account/accounts_list"];JMZ=["acknowledge_channel_tou_strike"];cM_=["notification/add_upcoming_event_reminder"];
_.mha=["att/get"];lD=["browse","music/browse","unplugged/browse"];b$2=["channel/claim_legacy_youtube_channel"];xhz=["history/clear_search_history"];VBQ=["history/clear_watch_history"];P6j=["comment/perform_comment_action"];MBa=["comment/get_comment_replies"];p$6=["ypc/commerce_action"];NV_=["backstage/create_post"];tBL=["live/create_broadcast"];IlQ=["channel/create_channel"];KnQ=["comment/create_comment_reply"];C66=["comment/create_comment"];alC=["live_chat/create_poll"];knL=["playlist/create"];
H$$=["decorate_message"];i$j=["live_chat/delete_message"];n7j=["playlist/delete"];TV$=["video/delete"];w$z=["like/dislike"];rM_=["dismissal/dismiss"];sQ_=["flag/flag"];Lnu=["flow"];DhC=["account/account_menu"];Wna=["playlist/get_add_to_playlist"];zf8=["get_answer"];uAQ=["channel/get_channel_creation_form"];p_T=["offline/get_download_action"];flQ=["kids/get_kids_blocklist_picker"];Yla=["live_chat/get_item_context_menu"];X$Z=["live_chat/get_live_chat_message_buy_flow"];Z$8=["live_chat/get_live_chat_replay"];
ql$=["live_chat/get_live_chat","live_chat/get_live_interactivity","live_chat/get_streaming_live_chat"];UhQ=["live_chat/get_live_chat_super_sticker_buy_flow"];Sl_=["notification/get_notification_menu"];hf2=["playlist/get_settings_editor"];dhB=["backstage/get_post_video_preview"];$h$=["account/get_profile_card"];Gna=["share/get_share_panel"];E72=["share/get_sharing_provider_data"];v76=["get_survey"];O$u=["notification/get_unseen_count"];AMC=["get_user_mention_suggestions"];Rf2=["get_watch"];o7$=["guide"];
QQ8=["feedback"];ef8=["kids/update_blacklist"];jQz=["like/like"];FnB=["live_chat/live_chat_action"];llL=["live_chat/manage_user"];yMj=["video_manager/metadata_update"];BV6=["live_chat/moderate"];g7C=["notification/modify_channel_preference"];Jga=["notification/opt_out"];v3=["get_panel","get_posts_by_host_panel"];cg$=["player"];mH_=["browse/edit_playlist"];b9Z=["notification/record_interactions"];xH_=["reel/reel_item_watch"];VFj=["reel/reel_watch_sequence"];PU8=["like/removelike"];MFC=["notification/remove_upcoming_event_reminder"];
ptZ=["flag/get_form"];NF6=["miniapp/report_value"];tFC=["navigation/resolve_url"];IOa=["channel/reveal_business_email"];K7u=["in_video/search"];CUZ=["search","sfv/search","unplugged/search"];aO_=["live_chat/send_message"];kKC=["live_chat/send_live_chat_vote"];H92=["account/set_setting"];i9C=["submit_caption_correction"];nsz=["subscription/subscribe"];PY2=["get_transcript"];TFL=["resolve_location","unplugged/resolve_location"];wtz=["subscription/unsubscribe"];rg6=["backstage/update_post"];sTz=["channel_edit/update_channel_page_settings"];
L78=["comment/update_comment_reply"];DHQ=["comment/update_comment"];W76=["comment/update_comments_settings"];zlL=["creator/update_creator_channel"];uLZ=["pdg/update_enablement"];fOZ=["updated_metadata"];YW2=["channel_edit/validate_channel_handle"];Xt6=["verify_age"];Z9j=["next","unplugged/watch_next"];qW6=["whitelist/edit"];UH_=["ypc/cancel_recurrence"];SW$=["ypc/complete_transaction"];hl8=["ypc/get_cart"];dHQ=["ypc/get_fix_instrument_params"];$HQ=["ypc/get_offers"];GKQ=["ypc/get_payment_instruments_params"];
EsB=["ypc/handle_transaction"];vsQ=["ypc/log_payment_server_analytics"];O9Q=["ypc/pause_subscription"];Ag2=["ypc/redeem_code"];Rl8=["ypc/resume_subscription"];var os8=[3611,27686,221058,85013,23462,241187,157557,42016,26926,51236,79148,50160,77504,153587,87907,18630,177018,177023,54445,80935,152172,184553,105675,150723,37521,147285,47786,231255,231254,231258,231259,98349,237299,168271,168954,168277,168273,168270,123695,226987,226990,226988,6827,29434,255010,171388,244189,236208,7282,124448,196088,250897,198104,32276,195115,195114,76278,200635,230594,147868,147869,93911,106531,257234,252598,252597,252600,252599,252596,225031,177843,27259,27262,27263,21759,
160866,204249,222900,204250,180626,177959,177957,180628,205716,197878,171243,160789,171244,171241,171245,171242,225560,180627,177960,231589,177958,180629,205717,197879,177565,212573,210709,230684,229801,230685,197337,209010,197336,197338,198618,175492,198052,198051,197852,197976,175493,175494,175495,189254,175496,175497,38408,175498,175503,175504,175505,175506,175507,175508,80637,68727,206933,207944,206934,206929,221575,68728,221576,80353,80356,249107,180635,74610,45707,83962,83970,46713,166591,89711,
74612,213809,179607,245006,155792,93265,74611,131380,128979,139311,128978,131391,105350,139312,134800,131392,113533,229298,93252,99357,94521,114252,113532,94522,94583,202371,88E3,139580,93253,93254,94387,94388,93255,97424,72502,219868,212991,110111,76019,117092,117093,89431,191831,110466,231346,77240,60508,186091,148123,148124,137401,137402,137046,73393,246776,113534,92098,131381,84517,83759,230676,249183,230679,230678,230677,230681,230680,162711,235234,162712,80357,243315,86113,72598,168413,72733,
107349,124275,118203,200410,133275,160157,152569,156651,133274,160159,160158,133272,133273,133276,144507,143247,175994,156652,143248,143249,143250,143251,189892,189894,189893,156653,214236,144401,117431,133797,225137,222612,222613,153964,201133,201134,201135,201136,201137,128572,200411,200412,190337,133405,117429,117430,177950,174734,177951,201138,201139,201140,201141,201142,117432,173996,173995,174953,173994,173997,120080,117259,178546,197891,156655,156654,121692,211414,211411,211412,211413,211403,
184846,185993,145656,156656,145655,145653,145654,145657,132972,133051,133658,132971,97615,181262,190762,250344,254027,143359,143356,143361,143358,143360,143357,142303,143353,172859,143354,144479,143355,31402,181590,133624,146477,133623,133622,133621,192418,84774,197993,241460,160801,197995,95117,172721,150497,98930,98931,98932,153320,153321,43347,249295,210016,210017,262686,211851,211852,211853,129889,197888,197889,149123,221959,221627,221958,45474,100352,98443,117985,74613,155911,74614,64502,136032,
74615,74616,122224,74617,77820,74618,262988,262989,226981,93278,93274,93275,93276,200688,200686,200687,199841,22110,29433,133798,132295,120541,222112,82047,113550,75836,75837,192409,203221,42352,84512,76065,75989,205911,205912,252649,205913,252650,252651,51879,16623,32594,27240,32633,74858,222932,213915,225216,251244,258251,218674,251266,258250,251265,251245,156999,3945,16989,45520,25488,25492,25494,232113,55760,14057,18451,57204,57203,17897,18198,17898,17909,43980,221053,195529,189660,46220,11721,
147994,49954,96369,3854,217640,151633,56251,205192,216797,159108,181568,25624,152036,16906,99999,68172,47973,72773,26970,26971,96805,17752,73233,205923,109512,22256,14115,22696,234409,234408,89278,89277,195745,109513,43278,43459,43464,89279,43717,55764,22255,147912,89281,40963,43277,43442,91824,120137,186350,186351,256690,264349,264351,264350,264352,211026,250896,96367,36850,72694,37414,36851,124863,121343,73491,54473,166861,43375,46674,242528,143815,139095,144402,149968,149969,32473,72901,72906,
50612,50613,50942,84938,84943,84939,84941,84944,84940,84942,35585,51926,79983,18921,57893,41182,135732,33424,22207,36229,22206,22205,44763,33427,67793,22182,37091,34650,50617,22287,25144,97917,220122,62397,150871,150874,125598,137935,36961,108035,27426,27857,27846,27854,69692,61411,39299,38696,62520,36382,108701,192682,50663,36387,14908,37533,105443,61635,62274,161670,133818,182119,65702,65703,65701,76256,263843,196075,194768,252201,194769,191885,233634,265810,194770,195350,195349,194771,166382,37671,
49953,220669,249229,213774,204572,191389,253830,253831,253832,253833,253834,204574,187917,191390,179556,191402,238596,212661,191392,197826,191393,204573,36216,28237,241212,173718,39553,192547,29222,26107,241211,38050,26108,120745,26109,26110,66881,28236,14586,160598,57929,226736,74723,44098,173689,44099,23528,61699,134104,134103,198313,59149,181013,173191,173192,173193,101951,171502,196043,198305,97346,118051,95102,64882,119505,63595,257268,63349,240553,95101,75240,27039,68823,21537,83464,75707,252904,
170215,223033,83113,101952,101953,79610,125755,24402,24400,32925,193406,57173,183351,156421,122502,145268,138480,64423,64424,33986,100828,129089,21409,185612,222825,245366,135155,135156,135157,135158,158225,135159,135160,167651,135161,135162,135163,158226,158227,135164,135165,135166,11070,11074,17880,30709,30707,30711,30710,30708,185213,185273,146143,63648,63649,221056,264490,211189,111059,211188,5754,264491,20445,233471,151308,151152,228067,130975,130976,247244,261210,210815,246127,245256,244950,
191925,167637,234545,197196,214295,110386,221054,113746,66557,183215,17310,28631,201935,21589,242036,238351,164817,168011,154946,68012,162617,60480,184431,138664,249827,194E3,141121,164502,31571,195002,206793,141978,233985,250895,254052,254053,254054,254051,254050,254055,150105,150106,150107,150108,76980,41577,45469,38669,13768,13777,141842,62985,213190,4724,223052,59369,43927,43928,12924,197853,100355,56219,27669,209928,10337,203648,203649,47896,122629,186204,222824,139723,139722,121258,253789,253787,
253786,253788,253790,107598,127991,96639,107536,130169,216522,96661,145188,213904,96658,116646,159428,168611,168612,121122,219862,96660,127738,127083,155281,162959,220886,227356,248007,163566,186641,147842,217932,104443,96659,147595,106442,247162,231493,213427,246575,182423,162776,228908,134840,63667,63668,63669,130686,248381,147036,239094,262743,189810,239095,78314,147799,237146,174049,148649,55761,127098,134841,96368,67374,48992,146176,176105,233035,49956,190190,225739,31961,26388,23811,5E4,126250,
96370,210549,47355,47356,37935,45521,21760,83769,49977,49974,93497,93498,34325,140759,115803,123707,100081,35309,237706,68314,25602,100339,170873,143516,178921,254884,258232,59018,18248,50625,9729,37168,37169,21667,16749,18635,39305,18046,221057,53969,8213,93926,221055,210542,212552,102852,110099,22678,69076,137575,139224,100856,235770,154430,235861,209757,17736,3832,147111,55759,64031,234746,93044,93045,170701,170702,194796,34388,167841,170419,17657,17655,39579,39578,170412,77448,8196,11357,69877,
8197,168501,156512,161613,156509,208274,161612,161614,262801,266131,266132,262800,262799,262802,262798,82039];var KX=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};_.jD("yt.msgs_",KX);var OP=new _.oE("ACTION_ROUTER_TOKEN");_.AZ=function(){this.autonavState_=_.w("kevlar_is_pupi_enabled")?2:sEr()?2:1;this.disabledAutonavPauseReason_=this.autonavPauseReason_=void 0;this.autoplayChangedByUser=!1};
_.AZ.prototype.getState=function(){return this.autonavState_};
_.AZ.prototype.pause=function(J){this.autonavState_==2?(this.setState(3,!1,!1),this.autonavPauseReason_=J):this.autonavState_==1&&(this.disabledAutonavPauseReason_=J)};
_.AZ.prototype.setState=function(J,c,m){c&&(this.autoplayChangedByUser=!0);c=this.autonavState_===3||J===3;this.autonavState_!=J&&(this.autonavState_=J,J!=3&&_.LRt(J==2),J=_.w("kevlar_is_pupi_enabled")?m||c:!0,_.vO.getInstance().triggerOptionalAction("yt-autonav-state-changed-action",this.autonavState_,J,m))};
_.AZ.prototype.isAutoplaySetExplicitly=function(){return this.autoplayChangedByUser};
_.F1(_.AZ);var Ry=function(){this.hasRun=!1};var oy={},dBe=(oy.auto_search="LATENCY_ACTION_AUTO_SEARCH",oy.ad_to_ad="LATENCY_ACTION_AD_TO_AD",oy.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",oy.app_startup="LATENCY_ACTION_APP_STARTUP",oy.browse="LATENCY_ACTION_BROWSE",oy.cast_splash="LATENCY_ACTION_CAST_SPLASH",oy.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",oy.channels="LATENCY_ACTION_CHANNELS",oy.chips="LATENCY_ACTION_CHIPS",oy.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",oy.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
oy.editor="LATENCY_ACTION_EDITOR",oy.embed="LATENCY_ACTION_EMBED",oy.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",oy.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",oy.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",oy.explore="LATENCY_ACTION_EXPLORE",oy.favorites="LATENCY_ACTION_FAVORITES",oy.home="LATENCY_ACTION_HOME",oy.inboarding="LATENCY_ACTION_INBOARDING",oy.landing="LATENCY_ACTION_LANDING",oy.library="LATENCY_ACTION_LIBRARY",oy.live=
"LATENCY_ACTION_LIVE",oy.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",oy.management="LATENCY_ACTION_MANAGEMENT",oy.mini_app="LATENCY_ACTION_MINI_APP_PLAY",oy.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",oy.onboarding="LATENCY_ACTION_ONBOARDING",oy.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",oy.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",oy.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",oy.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",
oy.prebuffer="LATENCY_ACTION_PREBUFFER",oy.prefetch="LATENCY_ACTION_PREFETCH",oy.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",oy.profile_switcher="LATENCY_ACTION_LOGIN",oy.projects="LATENCY_ACTION_PROJECTS",oy.reel_watch="LATENCY_ACTION_REEL_WATCH",oy.results="LATENCY_ACTION_RESULTS",oy.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",oy.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",oy.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",oy.review="LATENCY_ACTION_REVIEW",oy.search_overview_answer=
"LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",oy.search_ui="LATENCY_ACTION_SEARCH_UI",oy.search_suggest="LATENCY_ACTION_SUGGEST",oy.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",oy.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",oy.seek="LATENCY_ACTION_PLAYER_SEEK",oy.settings="LATENCY_ACTION_SETTINGS",oy.store="LATENCY_ACTION_STORE",oy.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",oy.tenx="LATENCY_ACTION_TENX",oy.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",oy.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",
oy.watch="LATENCY_ACTION_WATCH",oy.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",oy["watch,watch7"]="LATENCY_ACTION_WATCH",oy["watch,watch7_html5"]="LATENCY_ACTION_WATCH",oy["watch,watch7ad"]="LATENCY_ACTION_WATCH",oy["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",oy.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",oy.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",oy.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",oy.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",oy.networkless_performance=
"LATENCY_ACTION_NETWORKLESS_PERFORMANCE",oy.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",oy.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",oy.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",oy);var mwT=function(J,c){k_.call(this,1,arguments);this.timer=c};
_.D(mwT,k_);var cWJ=new k2m("aft-recorded",mwT);var vco=_.mo.ytLoggingGelSequenceIdObj_||{};_.jD("ytLoggingGelSequenceIdObj_",vco);var QV=_.mo.ytLoggingLatencyUsageStats_||{};_.jD("ytLoggingLatencyUsageStats_",QV);var eG=function(){this.cleanupJob=0},RC2=function(){eG.instance||(eG.instance=new eG);
return eG.instance};
_.V=eG.prototype;_.V.baseline=function(J,c,m){jG(this,"baseline_"+J)||_.zB("latencyActionBaselined",{clientActionNonce:J},{timestamp:c,cttAuthInfo:m})};
_.V.tick=function(J,c,m,b){jG(this,"tick_"+J+"_"+c)||_.zB("latencyActionTicked",{tickName:J,clientActionNonce:c},{timestamp:m,cttAuthInfo:b})};
_.V.info=function(J,c,m){var b=Object.keys(J).join("");jG(this,"info_"+b+"_"+c)||(J=Object.assign({},J),J.clientActionNonce=c,_.zB("latencyActionInfo",J,{cttAuthInfo:m}))};
_.V.jspbInfo=function(J,c,m){for(var b="",x=0;x<Je(J).length;x++)Je(J)[x]!==void 0&&(b=x===0?b.concat(""+x):b.concat("_"+x));jG(this,"info_"+b+"_"+c)||(_.aw(J,2,c),c={cttAuthInfo:m},m=_.w("jspb_sparse_encoded_pivot")?new wv([{}]):new wv,_.bs(m,7,u_Q,J),OCu("latencyActionInfo",m,c))};
_.V.span=function(J,c,m){var b=Object.keys(J).join("");jG(this,"span_"+b+"_"+c)||(J.clientActionNonce=c,_.zB("latencyActionSpan",J,{cttAuthInfo:m}))};
var jG=function(J,c){QV[c]=QV[c]||{count:0};var m=QV[c];m.count++;m.time=(0,_.y4)();J.cleanupJob||(J.cleanupJob=_.rv(_.ft,function(){var b=(0,_.y4)(),x;for(x in QV)QV[x]&&b-QV[x].time>6E4&&delete QV[x];J&&(J.cleanupJob=0)},5E3));
return m.count>5?(m.count===6&&Math.random()*1E5<1&&(m=new _.w3("CSI data exceeded logging limit with key",c.split("_")),c.indexOf("plev")>=0||_.qz(m)),!0):!1};var QT$,elQ;QT$=window;elQ=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
_.Tm=QT$.performance||QT$.mozPerformance||QT$.msPerformance||QT$.webkitPerformance||new elQ;var JWf=!1,QEm=!1,b_R=(0,_.Wa)(_.Tm.clearResourceTimings||_.Tm.webkitClearResourceTimings||_.Tm.mozClearResourceTimings||_.Tm.msClearResourceTimings||_.Tm.oClearResourceTimings||_.tF,_.Tm);var jTj=window;jTj.ytcsi&&(jTj.ytcsi.infoGel=_.uJ,jTj.ytcsi.tick=_.Y2);var kce=function(J){k_.call(this,1,arguments);this.csn=J};
_.D(kce,k_);var w2t=new k2m("screen-created",kce),Z_R=[],arQ=XED,q_t=0,SH=new Map,H_2=new Map,i_D=new Map;var YM=Symbol("uf"),Qq=new WeakMap;var FI=function(){this.shownElements=new Set;this.hiddenElements=new Set;this.visibleState=new Map;this.client=void 0;this.csn=null},kV=function(){FI.instance||(FI.instance=new FI);
return FI.instance};
_.V=FI.prototype;_.V.setClient=function(J){this.client=J};
_.V.JSC$10471_newScreen=function(){this.clear();this.csn=_.Y3()};
_.V.clear=function(){this.shownElements.clear();this.hiddenElements.clear();this.visibleState.clear();this.csn=null};
_.V.reportShown=function(J,c,m){var b=this.JSC$10471_getTrackingParams(J),x=J.visualElement?J.visualElement:b;c=this.shownElements.has(x);var P=this.visibleState.get(x);this.shownElements.add(x);this.visibleState.set(x,!0);J.impressionLog&&!c&&J.impressionLog();if(b||J.visualElement)if(m=F7u(this,J,m))if(x=lO_(this,J),lr(this,J)||x){b=J.visualElement?J.visualElement:_.n7(b);var p=J.interactionLoggingClientData;x||c?lr(this,J)&4?P||WcT(this.client,m,b,p):lr(this,J)&1&&!c&&sbT(this.client,m,b,p):sbT(this.client,
m,b,p)}};
_.V.reportHidden=function(J,c,m){var b=this.JSC$10471_getTrackingParams(J),x=J.visualElement?J.visualElement:b;c=this.hiddenElements.has(x);var P=this.visibleState.get(x);this.hiddenElements.add(x);this.visibleState.set(x,!1);if(P===!1)return!0;if(!b&&!J.visualElement)return!1;m=F7u(this,J,m);if(!m||!lr(this,J)&&lO_(this,J))return!1;b=J.visualElement?J.visualElement:_.n7(b);lr(this,J)&8?zXe(this.client,m,b):lr(this,J)&2&&!c&&(J=this.client,c=U2({cttAuthInfo:ZP(m)||void 0},m),b={csn:m,ve:b.getAsJson(),
eventType:2},m==="UNDEFINED_CSN"?dM("visualElementHidden",c,b):J?Dt("visualElementHidden",b,J,c):_.zB("visualElementHidden",b,c));return!0};
_.V.JSC$10471_getTrackingParams=function(J){var c=this.getData(J),m,b;if(_.w("il_use_view_model_logging_context")&&(c==null?0:(m=c.context)==null?0:(b=m.loggingContext)==null?0:b.loggingDirectives))return c.context.loggingContext.loggingDirectives.trackingParams||"";var x,P;if(c==null?0:(x=c.rendererContext)==null?0:(P=x.loggingContext)==null?0:P.loggingDirectives)return c.rendererContext.loggingContext.loggingDirectives.trackingParams||"";if(c==null?0:c.loggingDirectives)return c.loggingDirectives.trackingParams||
"";var p;return((p=J.veContainer)==null?0:p.trackingParams)?J.veContainer.trackingParams:(c==null?void 0:c.trackingParams)||""};
_.V.JSC$10471_elementShouldLogGesture=function(J,c){J=this.getData(J);return!!((Math.floor(Number(J&&J.loggingDirectives&&J.loggingDirectives.gestures&&J.loggingDirectives.gestures.types||""))||0)&c)};
_.V.JSC$10471_getNearestParentVe=function(J){var c=this.JSC$10471_getTrackingParams(J);return J.visualElement?J.visualElement:c?_.n7(c):J.parentElement?this.JSC$10471_getNearestParentVe(J.parentElement):null};
var F7u=function(J,c,m){var b=_.Y3(m);return J.csn===null||b===J.csn||m?b:(J=new _.w3("VisibilityLogger called before newScreen",{caller:c.tagName,previous_csn:J.csn,current_csn:b}),_.qz(J),null)};
FI.prototype.getData=function(J){var c,m=J.data||((c=J.props)==null?void 0:c.data);if(!m&&_.w("enable_wiz_always_try_logging_info_map")){var b;m=(b=eH(J))==null?void 0:b[YM]}else if(J.isWebComponentWrapper){var x;m=(x=eH(J))==null?void 0:x[YM]}return m};
var lO_=function(J,c){var m;return!((m=J.getData(c))==null||!m.loggingDirectives)},lr=function(J,c){J=J.getData(c);
return Math.floor(Number(J&&J.loggingDirectives&&J.loggingDirectives.visibility&&J.loggingDirectives.visibility.types||""))||1};var yV;yV=function(){};
_.IA=function(){yV.instance||(yV.instance=new yV);return yV.instance};
yV.prototype.setClient=function(J){_.du(kV().setClient).bind(kV())(J)};
_.yga=function(){_.IA();_.du(kV().JSC$10471_newScreen).bind(kV())()};
yV.prototype.clear=function(){_.du(kV().clear).bind(kV())()};
yV.prototype.reportShown=function(J,c,m){_.du(kV().reportShown).bind(kV())(J,c,m)};
yV.prototype.reportHidden=function(J,c,m){return _.du(kV().reportHidden).bind(kV())(J,c,m)};
var EOe=function(J,c){return _.du(kV().JSC$10471_getTrackingParams).bind(kV())(c)},wnt=function(J,c){return _.du(kV().JSC$10471_getNearestParentVe).bind(kV())(c)};var B3,BFQ;B3=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};
_.C7=function(){B3.instance||(B3.instance=new B3);return B3.instance};
B3.prototype.setClient=function(J){this.client=J};
BFQ=function(J,c,m){m=m===void 0?{}:m;_.du(function(){var b,x,P,p=((b=_.L(c==null?void 0:c.commandMetadata,_.lk))==null?void 0:b.rootVe)||((x=_.L(c==null?void 0:c.commandMetadata,BC_))==null?void 0:(P=x.screenVisualElement)==null?void 0:P.uiType);if(p){b=_.L(c==null?void 0:c.commandMetadata,hXa);if(b==null?0:b.parentTrackingParams){var t=_.n7(b.parentTrackingParams);if(b.parentCsn)var I=b.parentCsn}else m.clickedVisualElement?t=m.clickedVisualElement:c.clickTrackingParams&&(t=_.n7(c.clickTrackingParams));
a:{b=_.L(c,_.Rz);x=_.L(c,m7R);if(b){if(x=DBf(b,"VIDEO")){b={token:x,videoId:b.videoId};break a}}else if(x&&(b=DBf(x,"PLAYLIST"))){b={token:b,playlistId:x.playlistId};break a}b=void 0}m=Object.assign({},{cttAuthInfo:b,parentCsn:I},m);if(_.w("expectation_logging")){var a;m.loggingExpectations=((a=_.L(c==null?void 0:c.commandMetadata,BC_))==null?void 0:a.loggingExpectations)||void 0}_.ge(J,p,t,m)}else _.qz(new _.w3("Error: Trying to create a new screen without a rootVeType",c))})()};
_.ge=function(J,c,m,b){b=b===void 0?{}:b;_.du(function(){os8.includes(c)||(_.qz(new _.w3("createClientScreen() called with a non-page VE",c)),c=83769);b.isHistoryNavigation||(J.forwardHistoryStack=[],J.backHistoryStack.push({rootVe:c,key:b.key||""}));J.graftQueue=[];J.stateChangedQueue=[];b.dataPromises?gsj(J,c,m,b):JsQ(J,c,m,b)})()};
_.csL=function(J,c,m){m=m===void 0?0:m;_.du(function(){c.then(function(b){J.pendingScreenCreation.has(m)&&J.pendingScreenFn&&J.pendingScreenFn();var x=_.Y3(m),P=_.fl(m);if(x&&P){var p;(b==null?0:(p=b.response)==null?0:p.trackingParams)&&hS(J.client,x,P,_.n7(b.response.trackingParams));var t;(b==null?0:(t=b.playerResponse)==null?0:t.trackingParams)&&hS(J.client,x,P,_.n7(b.playerResponse.trackingParams))}})})()};
B3.prototype.graftServerVe=function(J,c,m){var b=this;return _.du(function(){var x=_.n7(J);_.JM(b,x,c,m);return x})()};
_.r_J=function(J,c,m,b){return _.w("enable_client_ve_spec")&&c.clientVeSpec?(c=_.rs(c.clientVeSpec.uiType,void 0,c.clientVeSpec.elementIndex,c.clientVeSpec.clientYoutubeData,void 0,c),_.JM(J,c,m,b)?c:null):c.trackingParams?J.graftServerVe(c.trackingParams,m,b):null};
_.K7=function(J,c,m,b){return _.du(function(){if(!c.veType)return _.Zt(new _.w3("Error: Trying to graft a client VE without a veType.")),null;if(c.visibilityTypes){var x=c.visibilityTypes.reduce(function(P,p){return P|p});
x={visibility:{types:String(x)}}}x=_.rs(c.veType,c.visualElement,c.elementIndex,c.clientYouTubeData,void 0,x);return _.JM(J,x,m,b)?x:null})()};
_.JM=function(J,c,m,b){b=b===void 0?0:b;return _.du(function(){if(J.pendingScreenCreation.has(b))return J.graftQueue.push([c,m]),!0;var x=_.Y3(b),P=m||_.fl(b);if(x&&P){if(_.w("combine_ve_grafts")){var p=J.cachedVisualElements.get(P.toString());p?p.push(c):(J.cachedRootVisualElements.set(P.toString(),P),J.cachedVisualElements.set(P.toString(),[c]));J.attachTimeout||(J.attachTimeout=_.rv(_.ft,function(){m72(J,x)},1200))}else hS(J.client,x,P,c);
return!0}return!1})()};
_.c$=function(J,c,m){m=m===void 0?0:m;var b=J.recurringGrafts.get(m)||new Map;if(_.w("smarter_ve_dedupping"))for(var x=Array.from(b.keys()),P=0;P<x.length;P++){var p=void 0,t=void 0;var I=c;var a=x[P];a.isClientVe()&&I.isClientVe()?(p=I.getAsJson(),t=a.getAsJson(),I=p.veType!==t.veType||p.elementIndex!==t.elementIndex||p.dataElement!==t.dataElement||I.getLoggingDirectives()!==a.getLoggingDirectives()?!1:!0):I=a.veData.trackingParams!==void 0&&I.veData.trackingParams!==void 0?((t=I.veData)==null?void 0:
t.trackingParams)===((p=a.veData)==null?void 0:p.trackingParams):!1;if(I)return}else if(b.has(c))return;b.set(c,void 0);J.recurringGrafts.set(m,b);_.Y3(m)==="UNDEFINED_CSN"||J.pendingScreenCreation.has(m)||_.JM(J,c,void 0,m)};
_.mn=function(J,c,m,b){b=_.Y3(b===void 0?0:b);if(!b)return!1;frR(J.client,b,c,m);return!0};
_.b6=function(J,c,m,b){if(!c)return!1;b=_.Y3(b===void 0?0:b);if(!b)return!1;frR(J.client,b,_.n7(c),m);return!0};
_.Ui=function(J,c){var m=c.getScreenLayer&&c.getScreenLayer();if(c.visualElement)return _.mn(J,c.visualElement,void 0,m);c=EOe(_.IA(),c);return _.b6(J,c,void 0,m)};
B3.prototype.clickCommand=function(J,c,m){return _.b6(this,J.clickTrackingParams,c,m===void 0?0:m)};
B3.prototype.stateChanged=function(J,c,m){this.visualElementStateChanged(_.n7(J),c,m===void 0?0:m)};
B3.prototype.visualElementStateChanged=function(J,c,m){m=m===void 0?0:m;m===0&&this.pendingScreenCreation.has(m)?this.stateChangedQueue.push([J,c]):this.logStateChanged(J,c,m)};
B3.prototype.logStateChanged=function(J,c,m){m=m===void 0?0:m;var b=_.Y3(m);J=J||_.fl(m);return b&&J?(Y_T(this.client,b,J,c),!0):!1};
var gsj=function(J,c,m,b){b=b===void 0?{}:b;J.pendingScreenCreation.add(b.layer||0);J.pendingScreenFn=function(){JsQ(J,c,m,b);var p=_.fl(b.layer);if(p){for(var t=_.M(J.graftQueue),I=t.next();!I.done;I=t.next())I=I.value,_.JM(J,I[0],I[1]||p,b.layer);p=_.M(J.stateChangedQueue);for(t=p.next();!t.done;t=p.next())t=t.value,J.logStateChanged(t[0],t[1])}};
m||_.Y3(b.layer)||J.pendingScreenFn();if(b.dataPromises)for(var x=_.M(b.dataPromises),P=x.next();!P.done;P=x.next())_.csL(J,P.value,b.layer);else _.Xc(Error("vf"))},JsQ=function(J,c,m,b){b=b===void 0?{}:b;
var x=void 0;b.layer||(b.layer=0);x=b.parentLayer!==void 0?b.parentLayer:b.layer;var P=_.Y3(x);x=_.fl(x);var p=m||x,t;p&&(b.parentCsn!==void 0?t={clientScreenNonce:b.parentCsn,visualElement:p}:P&&P!=="UNDEFINED_CSN"&&(t={clientScreenNonce:P,visualElement:p}));var I,a=_.Ub("EVENT_ID");P==="UNDEFINED_CSN"&&a&&(I={servletData:{serializedServletEventId:a}});_.w("combine_ve_grafts")&&P&&m72(J,P);_.w("no_client_ve_attach_unless_shown")&&p&&P&&rWo(p,P);try{var k=_.n_J(J.client,c,t,b.csnToClone,b.cttAuthInfo,
I,b.implicitGestureType,void 0,b.loggingExpectations)}catch(r){_.Ue(r,{rootVeType:c,rootVe:x,parentVisualElement:m,currentCsn:P,parentEl:t,csnToClone:b.csnToClone});_.Xc(r);return}_.qa(k,c,b.layer,b.cttAuthInfo);P&&P!=="UNDEFINED_CSN"&&x&&!z6m(P)&&zXe(J.client,P,x,!0);J.backHistoryStack[J.backHistoryStack.length-1]&&!J.backHistoryStack[J.backHistoryStack.length-1].csn&&(J.backHistoryStack[J.backHistoryStack.length-1].csn=k||"");_.uJ({clientScreenNonce:k});_.yga();var H=_.fl(b.layer);P&&P!=="UNDEFINED_CSN"&&
H&&(_.w("web_mark_root_visible")||_.w("music_web_mark_root_visible"))&&_.E2(k,H);J.pendingScreenCreation.delete(b.layer||0);J.pendingScreenFn=void 0;var T;(T=J.recurringGrafts.get(b.layer))==null||T.forEach(function(r,W){r?_.JM(J,W,r,b.layer):H&&_.JM(J,W,H,b.layer)});
bo$(J)},bo$=function(J){for(var c=0;c<J.afterNewScreenOneOffJobs.length;c++){var m=J.afterNewScreenOneOffJobs[c];
try{m()}catch(b){_.Xc(b)}}for(c=J.afterNewScreenOneOffJobs.length=0;c<J.afterNewScreenRecurringJobs.length;c++){m=J.afterNewScreenRecurringJobs[c];try{m()}catch(b){_.Xc(b)}}},m72=function(J,c){if(c===void 0)for(var m=DbJ(),b=0;b<m.length;b++)m[b]!==void 0&&m72(J,m[b]);
else J.cachedVisualElements.forEach(function(x,P){(P=J.cachedRootVisualElements.get(P))&&TD3(J.client,c,P,x)}),J.cachedVisualElements.clear(),J.cachedRootVisualElements.clear(),J.attachTimeout=void 0};var x7=function(J){J=J===void 0?{layer:0}:J;this.hasRun=!1;this.createScreenConfig=J;J={};this.q5e=(J.response=!1,J.playerResponse=!1,J)};
_.D(x7,Ry);x7.prototype.validate=function(J){return!(!J.data||!J.data.response&&!J.data.playerResponse)};
x7.prototype.handle=function(J){var c=_.C7(),m=this.createScreenConfig.layer;J.data.response&&J.data.response.trackingParams&&!this.q5e.response&&(c.graftServerVe(J.data.response.trackingParams,void 0,m),this.q5e.response=!0);J.data.playerResponse&&J.data.playerResponse.trackingParams&&!this.q5e.playerResponse&&(c.graftServerVe(J.data.playerResponse.trackingParams,void 0,m),this.q5e.playerResponse=!0)};var Vt=function(){this.dE=_.$x();this.nJ=[];this.x9F=0};
Vt.prototype.processChunk=function(J){if(J){for(var c=_.M(this.nJ),m=c.next();!m.done;m=c.next())m=m.value,m.validate(J)&&(m.handle(J),m.hasRun=!0);_.Y2("np"+this.x9F);this.x9F++}};var qVr,PHQ;_.p7=function(J,c,m,b,x,P,p){p=p===void 0?[]:p;this.buildCommandPayload=J;this.navigate=c;this.handleServiceRequest=m;this.sendAction=b;this.JSC$10510_screenManager=x;this.commandResolverMap=P;this.autoLogResolverAllowlist=p;this.pendingCommands=new Set};
qVr=function(J,c,m){var b=nfQ,x=Tqr,P=_.C7(),p=x7Q;m=m===void 0?[]:m;_.p7.instance=new _.p7(J,c,b,x,P,p,m)};
PHQ=function(J,c,m){if(!J.commandResolverMap)return!1;var b=$wJ(c,J.commandResolverMap);return b?((J.autoLogResolverAllowlist.some(function(x){return!!_.L(c,x)})||(m==null?0:m.forceClickLogging))&&VJu(J,c,m),b instanceof Promise?b.then(function(x){x.resolve(c,m)}):b.resolve(c,m),!0):!1};
_.p7.prototype.resolveCommand=function(J,c){var m=this,b=MJu(J);if(PHQ(this,J,c))return!0;if(b)return pLQ(this,J,c);if(!this.buildCommandPayload)return S_r(J,"Unhandled command by buildCommandPayload"),!1;var x=this.buildCommandPayload(J,c);if(c==null?0:c.commandController)x.commandController=c.commandController;if(x.type===0){if(!this.navigate)return hXm(J,"navigate"),!1;if(!Ndj(x.command))return S_r(J,"Page requests need to specify a url"),!1;_.w("logging_avoid_blocking_during_navigation")&&_.b7f().transition("application_navigating");
J=this.navigate(x)||[];nl_(J).then(function(){m.pendingCommands.delete(x.command)});
return!0}if(x.type===1){if(!this.handleServiceRequest)return hXm(J,"handleServiceRequest"),!1;(c==null?0:c.forceClickLogging)&&VJu(this,x.command,c);J=this.handleServiceRequest(x);nl_(J).then(function(){m.pendingCommands.delete(x.command)});
return!0}if(x.type===2){if(!this.sendAction)return hXm(J,"sendAction"),!1;VJu(this,x.command,c);this.sendAction(x);return!0}return!1};
var VJu=function(J,c,m){if((m==null||!m.disableClickTracking)&&J.JSC$10510_screenManager)if(c.clickTrackingParams&&_.w("log_click_with_layer_from_element_in_command_handler")){var b;m=m==null?void 0:(b=m.form)==null?void 0:b.element;J.JSC$10510_screenManager.clickCommand(c,null,m&&m.getScreenLayer&&m.getScreenLayer())}else c.clickTrackingParams?J.JSC$10510_screenManager.clickCommand(c):!_.w("disable_clicked_visual_element_in_command_handler")&&(m==null?0:m.clickedVisualElement)&&_.mn(J.JSC$10510_screenManager,
m.clickedVisualElement)},MJu=function(J){var c=!!_.L(J,_.pX),m;
J=((m=_.L(J,_.In))==null?void 0:m.signal)==="CLIENT_SIGNAL";return c||J},pLQ=function(J,c,m){var b=_.L(c,_.pX);
if(b)var x=(b==null?void 0:b.commands)||[];else{var P;if(((P=_.L(c,_.In))==null?void 0:P.signal)==="CLIENT_SIGNAL"){var p;x=((p=_.L(c,_.In))==null?void 0:p.actions)||[]}}if(x){c=_.M(x);for(x=c.next();!x.done;x=c.next()){x=x.value;try{J.resolveCommand(x,m)}catch(t){t instanceof Error&&_.Xc(t)}}return!0}S_r(c,"Could not handle the meta command");return!1},Ndj=function(J){var c;
return!((c=_.L(J==null?void 0:J.commandMetadata,_.lk))==null||!c.url)};var P$=function(){Ry.apply(this,arguments)};
_.D(P$,Ry);P$.prototype.validate=function(J){var c,m;return!this.hasRun&&!!((c=J.data.response)==null?0:(m=c.onResponseReceivedEndpoints)==null?0:m.length)};
P$.prototype.handle=function(J){var c=_.p7.instance;J=_.M(J.data.response.onResponseReceivedEndpoints);for(var m=J.next();!m.done;m=J.next())c.resolveCommand(m.value)};var tJj,Ioz,KXB;
tJj=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=_.ML();this.navigatingAwayFromWatchDeletedVideo=!1;this.currentEndpoint=null;
this.isVideoPlaying=!1};
_.Mh=function(){Ioz||(Ioz=new tJj);return Ioz};
KXB=function(){var J=_.Mh();J.miniplayerButtonActivation=!1;J.userActivation=!1;J.playlistWatchPageActivation=!1;J.productDetailsPageActivation=!1;J.miniAppPageActivation=!1;J.playablesDestPageActivation=!1;J.lockupActivation=!1;J.showMiniplayerCommandActivation=!1;J.playlistSuggestionsShelfActivation=!1;J.mediaSessionPipActivation=!1;J.watchPipActivation=!1;J.watchWhileActivation=!1;J.shortsPipActivation=!1};
_.CH$=function(){var J=_.Mh(),c=J.mediaSessionPipActivation,m=J.watchPipActivation,b=J.watchWhileActivation,x=J.playlistWatchPageActivation,P=J.lockupActivation,p=J.showMiniplayerCommandActivation,t=J.navigatingAwayFromWatchDeletedVideo,I=J.shortsPipActivation,a=J.playlistSuggestionsShelfActivation,k=J.productDetailsPageActivation,H=J.miniAppPageActivation,T=J.playablesDestPageActivation;return!J.miniplayerButtonActivation&&!x&&!a&&!k&&!H&&!T&&!P&&!p&&!c&&!m&&!b&&!I||t};var ipT;_.p$=Fv("FEwhat_to_watch","/",3854);_.nFo=Fv("FEdownloads","/feed/downloads",42352);ipT=Fv("FEmusic_offline","browse/FEmusic_offline",42352);var A7=function(J,c){c=c===void 0?[]:c;var m=m===void 0?[]:m;c=tnT.apply(null,[IbG.apply(null,_.L6(c))].concat(_.L6(m)));this.store=k8f(J,void 0,c)};
A7.prototype.getState=function(){return this.store.getState()};
A7.prototype.dispatch=function(J){return this.store.dispatch(J)};
A7.prototype.subscribe=function(J){return this.store.subscribe(J)};
A7.prototype.replaceReducer=function(J){return this.store.replaceReducer(J)};
A7.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};
_.Nh=function(J,c,m){var b=c(J.getState());return J.subscribe(function(){var x=c(J.getState());if(x!==b){var P=b;b=x;m(x,P)}})};var VTR;_.It=function(J,c,m){return _.J7({type:"REPLACE_ENTITY",payload:{entityPayload:m,entityType:J,key:c}})};
VTR=function(J){return _.J7({type:"REPLACE_ENTITIES",payload:J})};
_.DI=function(J,c,m,b){return _.J7({type:"UPDATE_ENTITY",payload:{entityPayload:m,entityType:J,key:c,mergeOption:b}})};var yWu=function(J){var c=this;J=J===void 0?[]:J;this.arrays=[];this.totalLength=this.arrayPos=this.arrayIdx=0;J.forEach(function(m){c.append(m)})};
_.V=yWu.prototype;_.V.getLength=function(){return this.totalLength};
_.V.append=function(J){var c=this.arrays.length===0?!1:(c=this.arrays[this.arrays.length-1])&&c.buffer===J.buffer&&c.byteOffset+c.length===J.byteOffset;c?(c=this.arrays[this.arrays.length-1],this.arrays[this.arrays.length-1]=new Uint8Array(c.buffer,c.byteOffset,c.length+J.length),this.arrayPos=this.arrayIdx=0):this.arrays.push(J);this.totalLength+=J.length};
_.V.split=function(J){for(var c=new yWu,m=new yWu,b=_.M(this.arrays),x=b.next();!x.done;x=b.next())x=x.value,J>=x.length?(c.append(x),J-=x.length):J?(c.append(new Uint8Array(x.buffer,x.byteOffset,J)),m.append(new Uint8Array(x.buffer,x.byteOffset+J,x.length-J)),J=0):m.append(x);return{headView:c,tailView:m}};
_.V.extract=function(J,c){return this.split(J).tailView.split(c).headView};
_.V.isFocused=function(J){return J>=this.arrayPos&&J<this.arrayPos+this.arrays[this.arrayIdx].length};
_.V.focus=function(J){if(!this.isFocused(J))for(J<this.arrayPos&&(this.arrayPos=this.arrayIdx=0);this.arrayPos+this.arrays[this.arrayIdx].length<=J&&this.arrayIdx<this.arrays.length;)this.arrayPos+=this.arrays[this.arrayIdx].length,this.arrayIdx+=1};
var ao6=function(J,c){J.focus(c);return J.arrays[J.arrayIdx][c-J.arrayPos]};(function(){var J=function(b){return new Uint8Array(b)},c=function(b){for(var x=new Uint8Array(b.length),P=0;P<b.length;P++)x[P]=b[P];
return x},m=new Uint8Array([1]);
return m.length===1&&m[0]===1?J:c})();
var o_e=Array(1024),RXT=window.TextDecoder?new TextDecoder:void 0,eXr=window.TextEncoder?new TextEncoder:void 0;var lrt=function(J){this.arrayView=J;this.pos=0;this.pendingTagAndType=-1},c2=function(J){var c=ao6(J.arrayView,J.pos);
++J.pos;if(c<128)return c;for(var m=c&127,b=1;c>=128;)c=ao6(J.arrayView,J.pos),++J.pos,b*=128,m+=(c&127)*b;return m},BDJ=function(J,c){var m=J.pendingTagAndType;
for(J.pendingTagAndType=-1;J.pos+1<=J.arrayView.totalLength;){m<0&&(m=c2(J));var b=m>>3,x=m&7;if(b===c)return!0;if(b>c){J.pendingTagAndType=m;break}m=-1;switch(x){case 0:c2(J);break;case 1:J.pos+=8;break;case 2:b=c2(J);J.pos+=b;break;case 5:J.pos+=4}}return!1};var JNQ=function(){this.pos=0;this.submessagePosStack=[];this.buf=FcD(4096);this.view=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength)},xY=function(J,c){c=J.pos+c;
if(!(J.buf.length>=c)){for(var m=J.buf.length*2;m<c;)m*=2;J.buf=FcD(m,J.buf.subarray(0,J.pos));J.view=new DataView(J.buf.buffer,J.buf.byteOffset,J.buf.byteLength)}},bW=function(J,c){if(c>268435455){xY(J,4);
for(var m=c&1073741823,b=0;b<4;b++)J.view.setUint8(J.pos,m&127|128),m>>=7,J.pos+=1;c=Math.floor(c/268435456)}for(xY(J,4);c>127;)J.view.setUint8(J.pos,c&127|128),c>>=7,J.pos+=1;J.view.setUint8(J.pos,c);J.pos+=1};for(var cND={accountLinkStatusEntity:122,booleanEntity:307,buttonEntity:358,captionTrack:225,channelHandle:275,chipEntity:498,commerceAcquisitionClientPayloadEntity:276,commerceCartListEntity:236,contextNoteFeedEntityPayload:483,continuationTokenEntity:406,downloadQualityPickerEntity:202,downloadsPageRefreshTokenEntity:299,downloadsPageViewConfigurationEntity:264,downloadStatusEntity:141,dismissState:540,sfvAudioItemCurrentlyPlayingEntity:186,emojiFountainDataEntity:393,emojiCustomizationSetEntity:496,
fakeChannel:2,fakePlaylist:279,fakePlaylistEntryCollection:280,fakeVideo:182,fakeVideoDescription:278,featuredProductsEntity:392,flowStateEntity:252,iconBadgeEntity:229,interstitialInteractionStateEntity:443,likeButtonAnimationEntity:567,liveChatPollStateEntity:217,liveViewerLeaderboardChatEntryPointStateEntity:563,liveViewerLeaderboardPointsEntity:564,liveReactionsDataEntity:503,logoEntity:245,macroMarkerEntity:329,mainDownloadsLibraryEntity:158,mainDownloadsListEntity:164,mainPlaylistDownloadStateEntity:373,
mainPlaylistEntity:306,mainPlaylistVideoEntity:368,mainVideoDownloadStateEntity:262,mainVideoEntity:261,markersEngagementPanelSyncEntity:196,markersVisibilityOverrideEntity:312,musicAlbumReleaseDetail:18,musicAlbumReleaseDownloadMetadataEntity:259,musicAlbumRelease:17,musicAlbumReleaseUserDetail:19,musicArtistDetail:21,musicArtist:20,musicArtistUserDetail:22,musicDownloadsLibraryEntity:257,musicLibraryEdit:121,musicLibraryStatusEntity:318,musicPlaylist:24,musicPlaylistDownloadMetadataEntity:248,musicShare:100,
musicTrackDetail:29,musicTrackDownloadMetadataEntity:234,musicTrack:28,musicTrackUserDetail:30,offlineOrchestrationActionWrapperEntity:169,offlineVideoPolicy:130,offlineVideoStreams:198,offlineabilityEntity:246,orchestrationWebSamplingEntity:242,pageHeaderEntity:495,pdpStateEntity:524,pinnedProductEntity:273,playbackData:119,quantityIncrementerEntity:356,playerStateEntity:323,refresh:148,saveToPlaylistListEntity:231,selectedChipIndexEntityPayload:479,settingEntity:297,stringEntity:382,suggestedFeedbackChipStateEntity:485,
transfer:120,trendingOfferEntity:469,videoDownloadContextEntity:461,videoOverviewAsyncDataEntity:545,videoPlaybackPositionEntity:76,votingEntity:561,ytMainChannelEntity:152,youchatPendingResponseEntity:553,ytMainDownloadedVideoEntity:155,ytMainVideoEntity:151},g_e={},kia=_.M(Object.entries(cND)),Hoj=kia.next();!Hoj.done;Hoj=kia.next()){var io_=_.M(Hoj.value),nq_=io_.next().value,TdQ=io_.next().value,wL6=nq_,rsa=TdQ;rsa&&(g_e[rsa]=wL6)};var bHq=function(J,c){J=J===void 0?{}:J;switch(c.type){case "ENTITY_LOADED":return c.payload.reduce(function(b,x){var P,p=(P=x.options)==null?void 0:P.persistenceOption;if(p&&p!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&p!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return b;if(!x.entityKey)return _.Xc(Error("xf")),b;if(x.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!x.payload)return x=new _.w3("REPLACE entity mutation is missing a payload",{entityKey:x.entityKey}),_.Xc(x),b;var t=(0,_.Lw.getAnyKey)(x.payload);
return VvG(b,t,x.entityKey,x.payload[t])}if(x.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{x=x.entityKey;try{var I=_.mA(x).entityType;t=VvG(b,I,x);break a}catch(H){if(H instanceof Error){x=new _.w3("Failed to deserialize entity key",{entityKey:x,originalMessage:H.message});_.Xc(x);t=b;break a}throw H;}t=void 0}return t}if(x.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!x.payload)return x=new _.w3("UPDATE entity mutation is missing a payload",{entityKey:x.entityKey}),_.Xc(x),b;t=(0,_.Lw.getAnyKey)(x.payload);
var a,k;return Peu(b,t,x.entityKey,x.payload[t],(a=x.fieldMask)==null?void 0:(k=a.mergeOptions)==null?void 0:k.repeatedFieldsMergeOption)}return b},J);
case "REPLACE_ENTITY":var m=c.payload;return VvG(J,m.entityType,m.key,m.entityPayload);case "REPLACE_ENTITIES":return Object.keys(c.payload).reduce(function(b,x){var P=c.payload[x];return Object.keys(P).reduce(function(p,t){return VvG(p,x,t,P[t])},b)},J);
case "UPDATE_ENTITY":return m=c.payload,Peu(J,m.entityType,m.key,m.entityPayload,m.mergeOption);default:return J}};var Mvo;var svZ=!1,tM,IQ,K$,C$,aQ,LXL=function(J){_.DS.call(this);this.counter=[0,0,0,0];this.cipherBlock=new Uint8Array(16);this.blockOffset=16;if(!svZ){var c,m=new Uint8Array(256),b=new Uint8Array(256);var x=1;for(c=0;c<256;c++)m[x]=c,b[c]=x,x^=x<<1^(x>>7&&283);tM=new Uint8Array(256);IQ=My(256);K$=My(256);C$=My(256);aQ=My(256);for(var P=0;P<256;P++){x=P?b[255^m[P]]:0;x^=x<<1^x<<2^x<<3^x<<4;x=x&255^x>>>8^99;tM[P]=x;c=x<<1^(x>>7&&283);var p=c^x;IQ[P]=c<<24|x<<16|x<<8|p;K$[P]=p<<24|IQ[P]>>>8;C$[P]=x<<24|K$[P]>>>
8;aQ[P]=x<<24|C$[P]>>>8}svZ=!0}x=My(44);for(m=0;m<4;m++)x[m]=J[4*m]<<24|J[4*m+1]<<16|J[4*m+2]<<8|J[4*m+3];for(b=1;m<44;m++)J=x[m-1],m%4||(J=(tM[J>>16&255]^b)<<24|tM[J>>8&255]<<16|tM[J&255]<<8|tM[J>>>24],b=b<<1^(b>>7&&283)),x[m]=x[m-4]^J;this.key=x};
_.D(LXL,_.DS);
LXL.prototype.encrypt=function(J){var c=J.length;J=new Uint8Array(J.buffer.slice(J.byteOffset,J.byteOffset+c));for(var m=this.cipherBlock,b=0;b<c&&this.blockOffset<16;)J[b++]^=m[this.blockOffset++];for(var x=c-(c-b)%16;b<x;)D7u(this),J[b++]^=m[0],J[b++]^=m[1],J[b++]^=m[2],J[b++]^=m[3],J[b++]^=m[4],J[b++]^=m[5],J[b++]^=m[6],J[b++]^=m[7],J[b++]^=m[8],J[b++]^=m[9],J[b++]^=m[10],J[b++]^=m[11],J[b++]^=m[12],J[b++]^=m[13],J[b++]^=m[14],J[b++]^=m[15];if(b<c)for(D7u(this),this.blockOffset=0;b<c;)J[b++]^=
m[this.blockOffset++];return J};
var WX$=function(J,c){for(var m=0;m<4;m++)J.counter[m]=c[m*4]<<24|c[m*4+1]<<16|c[m*4+2]<<8|c[m*4+3];J.blockOffset=16},D7u=function(J){for(var c=J.key,m=J.counter[0]^c[0],b=J.counter[1]^c[1],x=J.counter[2]^c[2],P=J.counter[3]^c[3],p=3;p>=0&&!(J.counter[p]=-~J.counter[p]);p--);
for(var t,I,a=4;a<40;)p=IQ[m>>>24]^K$[b>>16&255]^C$[x>>8&255]^aQ[P&255]^c[a++],t=IQ[b>>>24]^K$[x>>16&255]^C$[P>>8&255]^aQ[m&255]^c[a++],I=IQ[x>>>24]^K$[P>>16&255]^C$[m>>8&255]^aQ[b&255]^c[a++],P=IQ[P>>>24]^K$[m>>16&255]^C$[b>>8&255]^aQ[x&255]^c[a++],m=p,b=t,x=I;J=J.cipherBlock;p=c[40];J[0]=tM[m>>>24]^p>>>24;J[1]=tM[b>>16&255]^p>>16&255;J[2]=tM[x>>8&255]^p>>8&255;J[3]=tM[P&255]^p&255;p=c[41];J[4]=tM[b>>>24]^p>>>24;J[5]=tM[x>>16&255]^p>>16&255;J[6]=tM[P>>8&255]^p>>8&255;J[7]=tM[m&255]^p&255;p=c[42];
J[8]=tM[x>>>24]^p>>>24;J[9]=tM[P>>16&255]^p>>16&255;J[10]=tM[m>>8&255]^p>>8&255;J[11]=tM[b&255]^p&255;p=c[43];J[12]=tM[P>>>24]^p>>>24;J[13]=tM[m>>16&255]^p>>16&255;J[14]=tM[b>>8&255]^p>>8&255;J[15]=tM[x&255]^p&255};var z0u=!1;(function(){var J=function(b){return new Uint8Array(b)},c=function(b){for(var x=new Uint8Array(b.length),P=0;P<b.length;P++)x[P]=b[P];
return x},m=new Uint8Array([1]);
return m.length===1&&m[0]===1?J:c})();
var k7;var uh$=function(J){this.JSC$10578_aesKey=J};
uh$.prototype.encrypt=function(J,c){var m=this,b,x;return _.N(function(P){if(P.nextAddress==1){a:{if(!z0u&&!Q4){if(k7){var p=k7;break a}k7=(p=window.crypto)==null?void 0:p.subtle;var t,I,a;if(((t=k7)==null?0:t.importKey)&&((I=k7)==null?0:I.sign)&&((a=k7)==null?0:a.encrypt)){p=k7;break a}k7=void 0}p=void 0}b=p;if(!b)return P.return(fo8(m,J,c));_.xL(P,3);return _.K(P,Y06(m,J,c,b),5)}if(P.nextAddress!=3)return P.return(P.yieldResult);x=_.NM(P);_.qz(x);z0u=!0;return P.return(fo8(m,J,c))})};
var Y06=function(J,c,m,b){var x,P;return _.N(function(p){switch(p.nextAddress){case 1:if(J.cryptoKey){p.jumpTo(2);break}return _.K(p,b.importKey("raw",J.JSC$10578_aesKey,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:J.cryptoKey=p.yieldResult;case 2:return x={name:"AES-CTR",counter:m,length:128},_.K(p,b.encrypt(x,J.cryptoKey,c),4);case 4:return P=p.yieldResult,p.return(new Uint8Array(P))}})},fo8=function(J,c,m){J.encryptorPolyfill||(J.encryptorPolyfill=new LXL(J.JSC$10578_aesKey));
WX$(J.encryptorPolyfill,m);return J.encryptorPolyfill.encrypt(c)},XLj=function(J){this.JSC$10582_aesKey=J};
XLj.prototype.encrypt=function(J,c){this.encryptor||(this.encryptor=new LXL(this.JSC$10582_aesKey));WX$(this.encryptor,c);return this.encryptor.encrypt(J)};var Zo$={},tvq=lj("yt-idb-pref-storage",{objectStores:(Zo$.prefs={addedAtVersion:1},Zo$),shared:!1,upgrade:function(J,c){c(1)&&$$(hU(J,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});_.H$=function(J){this.token=J};
_.H$.getInstance=function(){return _.N(function(J){return J.return(new Promise(function(c){_.Fb().then(function(m){m?(_.H$.instance||(_.H$.instance=new _.H$(m)),c(_.H$.instance)):c(void 0)})}))})};
_.H$.prototype.get=function(J){var c=this,m,b,x;return _.N(function(P){if(P.nextAddress==1)return _.K(P,IQ3(c.token),2);if(P.nextAddress!=3)return m=P.yieldResult,_.K(P,m.get("prefs",J),3);b=P.yieldResult;if(!b)return P.return();x=(0,_.y4)();return b.expirationTimestampMs<=x?P.return():P.return(b.value)})};
_.H$.prototype.set=function(J,c,m){m=m===void 0?31536E3:m;var b=this,x,P,p;return _.N(function(t){if(t.nextAddress==1)return x=(0,_.y4)(),P={key:J,value:c,expirationTimestampMs:x+m*1E3},_.K(t,IQ3(b.token),2);p=t.yieldResult;return _.K(t,p.put("prefs",P),0)})};
_.H$.prototype.remove=function(J){var c=this,m;return _.N(function(b){if(b.nextAddress==1)return _.K(b,IQ3(c.token),2);m=b.yieldResult;return _.K(b,m.delete("prefs",J),0)})};var i6={},q0z=(i6.INVALID_ENCODER_VERSION="Invalid encoder version",i6.KEY_CREATION_FAILED="Failed to create encoder key",i6.UNKNOWN_DECODE_ERROR="Failed to decode PES data",i6.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",i6.WRONG_DATA_TYPE="Encoder cannot process the data type",i6),pk=function(J,c){c=c===void 0?{}:c;_.w3.call(this,q0z[J],Object.assign({},{name:"PESEncoderError",type:J},c));this.type=J;this.level="WARNING";Object.setPrototypeOf(this,pk.prototype)};
_.D(pk,_.w3);var U7j=function(){},S0a=function(J,c,m){try{return J.encodeImpl(c,m)}catch(b){kW3(b,Ce2)}},h0B=function(J,c,m){var b;
return _.N(function(x){if(x.nextAddress==1)return _.xL(x,2),_.K(x,J.decodeAsyncImpl(c,m),4);if(x.nextAddress!=2)return x.return(x.yieldResult);b=_.NM(x);kW3(b,aQo);_.tD(x)})};
U7j.prototype.decodeAsyncImpl=function(J,c){return Promise.resolve(this.decodeImpl(J,c))};var n$=function(J,c){this.aesEncryptor=J;this.aesEncryptorAsync=c};
_.D(n$,U7j);n$.prototype.encodeImpl=function(J,c){c=HHD(c);J=(new TextEncoder).encode(JSON.stringify(J));return this.aesEncryptor.encrypt(J,c)};
n$.prototype.decodeImpl=function(J,c){if(!(J instanceof Uint8Array))throw KQt(1);var m=new TextDecoder;c=HHD(c);J=this.aesEncryptor.encrypt(J,c);return JSON.parse(m.decode(J))};
n$.prototype.decodeAsyncImpl=function(J,c){var m=this,b,x,P;return _.N(function(p){if(p.nextAddress==1){if(!(J instanceof Uint8Array))throw KQt(1);b=new TextDecoder;x=HHD(c);return _.K(p,m.aesEncryptorAsync.encrypt(J,x),2)}P=p.yieldResult;return p.return(JSON.parse(b.decode(P)))})};var iHq={accountLinkStatusEntity:pQQ,booleanEntity:G8$,buttonEntity:esQ,captionTrack:dB$,channelHandle:D_a,chipEntity:WO_,commerceAcquisitionClientPayloadEntity:iO_,commerceCartListEntity:nWZ,contextNoteFeedEntityPayload:ZZL,continuationTokenEntity:n1B,downloadQualityPickerEntity:Mo_,downloadsPageRefreshTokenEntity:Nbz,downloadsPageViewConfigurationEntity:u4z,downloadStatusEntity:pz$,dismissState:zs_,sfvAudioItemCurrentlyPlayingEntity:kc$,emojiFountainDataEntity:RsC,emojiCustomizationSetEntity:AVz,
fakeChannel:O08,fakePlaylist:AKL,fakePlaylistEntryCollection:RvB,fakeVideo:Q5L,fakeVideoDescription:evQ,featuredProductsEntity:jsB,flowStateEntity:xkQ,iconBadgeEntity:Tez,interstitialInteractionStateEntity:z4a,likeButtonAnimationEntity:fY$,liveChatPollStateEntity:SK2,liveViewerLeaderboardChatEntryPointStateEntity:yEZ,liveViewerLeaderboardPointsEntity:B2Q,liveReactionsDataEntity:oUQ,logoEntity:DkB,macroMarkerEntity:Y9j,mainDownloadsLibraryEntity:toB,mainDownloadsListEntity:IY8,mainPlaylistDownloadStateEntity:CAz,
mainPlaylistEntity:Tbu,mainPlaylistVideoEntity:wzL,mainVideoDownloadStateEntity:aYC,mainVideoEntity:DbQ,markersEngagementPanelSyncEntity:Xz$,markersVisibilityOverrideEntity:ZIB,musicAlbumReleaseDetail:V_Z,musicAlbumReleaseDownloadMetadataEntity:JEz,musicAlbumRelease:xB$,musicAlbumReleaseUserDetail:PgC,musicArtistDetail:psL,musicArtist:M_a,musicArtistUserDetail:N2j,musicDownloadsLibraryEntity:cEL,musicLibraryEdit:t_$,musicLibraryStatusEntity:If6,musicPlaylist:KR2,musicPlaylistDownloadMetadataEntity:mBz,
musicShare:afQ,musicTrackDetail:HCZ,musicTrackDownloadMetadataEntity:bCu,musicTrack:k_8,musicTrackUserDetail:iCL,offlineOrchestrationActionWrapperEntity:$B8,offlineVideoPolicy:G_L,offlineVideoStreams:Ec_,offlineabilityEntity:kE8,orchestrationWebSamplingEntity:HIj,pageHeaderEntity:Sq_,pdpStateEntity:w3u,pinnedProductEntity:FV6,playbackData:vcj,playerStateEntity:q9_,quantityIncrementerEntity:rZ$,refresh:OC_,saveToPlaylistListEntity:dwQ,selectedChipIndexEntityPayload:Ubj,settingEntity:MTC,stringEntity:Ed8,
suggestedFeedbackChipStateEntity:S9z,transfer:AEu,trendingOfferEntity:lY$,videoDownloadContextEntity:RC6,videoOverviewAsyncDataEntity:Qy6,videoPlaybackPositionEntity:lj$,votingEntity:GY_,ytMainChannelEntity:WVL,youchatPendingResponseEntity:h6C,ytMainDownloadedVideoEntity:iIQ,ytMainVideoEntity:z6a};var d7C,Gi_,Ck,WQ3,zBG,Oo2,R0u,As6,vqQ;d7C=function(J,c){this.JSC$10601_wrapped=J;this.JSC$10601_encoderRegistry=c;this.changedKeys={}};
Gi_=function(J,c){a:{J=$7u(J.JSC$10601_encoderRegistry,c.version);try{var m=J.decodeImpl(c.data,c.key);break a}catch(b){kW3(b,aQo)}m=void 0}return m};
_.Eq$=function(J,c,m){return J.JSC$10601_wrapped.objectStore("EntityStore").get(c).then(function(b){if(b){if(m&&b.entityType!==m)throw Error("yf");return Gi_(J,b)}})};
Ck=function(J,c,m){return m?(m=m.map(function(b){return _.Eq$(J,b,c)}),hL.all(m)):J.JSC$10601_wrapped.objectStore("EntityStore").index("entityType").getAll(IDBKeyRange.only(c)).then(function(b){return b.map(function(x){return Gi_(J,x)})})};
_.DP3=function(J,c,m){var b=mPt(c),x=$7u(J.JSC$10601_encoderRegistry,1),P=Object.assign({},c);return J.JSC$10601_wrapped.objectStore("EntityStore").get(b).then(function(p){if(p){if(p.entityType!==m)throw Error("yf");P.entityMetadata||(p=Gi_(J,p),P.entityMetadata=p.entityMetadata)}}).then(function(){var p={key:b,
entityType:m,data:S0a(x,P,b),version:1};return hL.all([J.JSC$10601_wrapped.objectStore("EntityStore").put(p),vqQ(J,P,m)])}).then(function(){Oo2(J,b,m);
return b})};
WQ3=function(J,c){var m=_.mA(c).entityType;return hL.all([J.JSC$10601_wrapped.objectStore("EntityStore").delete(c),As6(J,c)]).then(function(){Oo2(J,c,m)})};
zBG=function(J,c,m,b){var x=$7u(J.JSC$10601_encoderRegistry,1);return _.Eq$(J,c,b).then(function(P){if(P){P=AWe(P,m);var p={key:c,entityType:b,data:S0a(x,P,c),version:1};return hL.all([J.JSC$10601_wrapped.objectStore("EntityStore").put(p),vqQ(J,P,b)])}}).then(function(){Oo2(J,c,b);
return c})};
Oo2=function(J,c,m){var b=J.changedKeys[m];b||(b=new Set,J.changedKeys[m]=b);b.add(c)};
R0u=function(J,c,m){var b=mPt(c);m=n6e(m);if(!m)return hL.resolve([]);m=new m(c);J=J.JSC$10601_wrapped.objectStore("EntityAssociationStore");c=[];m=_.M(m.getAssociations());for(var x=m.next();!x.done;x=m.next())c.push(J.put({parentEntityKey:b,childEntityKey:x.value}));return hL.all(c).then(function(P){return P.map(function(p){return p[1]})})};
As6=function(J,c){return J.JSC$10601_wrapped.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(c))};
vqQ=function(J,c,m){var b=mPt(c);return As6(J,b).then(function(){return R0u(J,c,m)})};var oq_=function(){};
_.D(oq_,U7j);oq_.prototype.encodeImpl=function(J){return J};
oq_.prototype.decodeImpl=function(J){if(J instanceof Uint8Array)throw KQt(0);return J};var rNQ=function(){this.cacheMap={};this.cacheMap[0]=new oq_;if(!_.w("aes_pes_encoder_killswitch")){var J=this.cacheMap;try{var c=_.ij();var m=HHD(c);var b=new n$(new XLj(m),new uh$(m))}catch(x){throw J=x instanceof Error?new pk("KEY_CREATION_FAILED",{originalMessage:x.message}):new pk("KEY_CREATION_FAILED"),_.Xc(J),J;}J[1]=b}},$7u=function(J,c){c=c===void 0?0:c;
J=J.cacheMap[c];if(!J)throw c=new pk("INVALID_ENCODER_VERSION",{encoderVersion:c}),_.Xc(c),c;return J};var t7=function(J,c){_.DS.call(this);this.token=J;this.JSC$10615_encoderRegistry=c;this.observers=[];J=new _.mo.BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+_.ij());J.onmessage=this.handleMessage.bind(this);this.channel=J};
_.D(t7,_.DS);_.Kk=function(J,c,m){var b,x,P,p;return _.N(function(t){if(t.nextAddress==1)return _.K(t,Ny3(J.token),2);if(t.nextAddress!=3)return b=t.yieldResult,_.K(t,_.AL(b,["EntityStore","EntityAssociationStore"],c,function(I){x=new d7C(I,J.JSC$10615_encoderRegistry);return m(x)}),3);
P=t.yieldResult;x&&(p=x.changedKeys,Object.keys(p).length>0&&(J.channel.postMessage(p),Qv8(J,p)));return t.return(P)})};
t7.prototype.observe=function(J){var c=this;this.observers.push(J);return function(){var m=c.observers.indexOf(J);m>=0&&c.observers.splice(m,1)}};
var TXu=function(J){var c;return _.N(function(m){if(m.nextAddress==1)return _.K(m,_.Kk(J,{mode:"readonly",enableRetries:!0},function(b){return b.JSC$10601_wrapped.objectStore("EntityStore").getAll()}),2);
c=m.yieldResult;return m.return(Promise.all(c.filter(function(b){return!!b}).map(function(b){var x,P;
return _.N(function(p){if(p.nextAddress==1){x=b.key;P=b.entityType;var t=h0B($7u(J.JSC$10615_encoderRegistry,b.version),b.data,b.key);return _.K(p,t,2)}return p.return({key:x,entityType:P,data:p.yieldResult})})})))})};
t7.prototype.handleMessage=function(J){Qv8(this,J.data)};
var Qv8=function(J,c){J=_.M(J.observers);for(var m=J.next();!m.done;m=J.next())m=m.value,m(c)};
t7.prototype.disposeInternal=function(){this.channel.close()};
var Tym;var Tn,jv_,JZT,se3;Tn={};_.e02=(Tn.mainVideoEntity="mainVideoEntityActionMetadata",Tn.mainPlaylistEntity="mainPlaylistEntityActionMetadata",Tn.musicTrack="musicTrackEntityActionMetadata",Tn.musicPlaylist="musicPlaylistEntityActionMetadata",Tn);jv_=new _.oE("DOWNLOADS_ENTITY_TYPE_MAP");JZT=_.V_("","downloadsPageViewConfigurationEntity");se3=_.V_("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");_.bOR=_.V_("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");
_.V_("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");_.V_("SMART_DOWNLOADS_ENABLED","settingEntity");_.V_("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var pYr=["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_TRANSFERRING"];var kYJ=["TRANSFER_STATE_COMPLETE","TRANSFER_STATE_FAILED","TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"];var RsQ={ALL_DOWNLOADS:"PPAD",DOWNLOADS_PAGE:"PPDP",OFFLINE_PLAYLIST:"PPOM",RECOMMENDED_VIDEOS:"PPRC",SAVED_PODCAST_EPISODES:"PPSE",SAVED_VIDEOS:"PPSV"};var wV,OOG,hEj,wve;wV=window;_.UG=wV.YT_I18N_FORMATTING_GOOG_LOCALE||"en-US";_.gWG=wV.YT_I18N_FORMATTING_PLURAL_RULES_SELECT||_.EG;OOG=wV.YT_I18N_FORMATTING_DATE_TIME_SYMBOLS||wJ;hEj=wV.YT_I18N_FORMATTING_RELATIVE_DATE_TIME_SYMBOLS||SG_;_.FXZ=wV.YT_I18N_FORMATTING_DURATION_TIME_SYMBOLS||_.BMB;wve=wV.YT_I18N_FORMATTING_NUMBER_FORMAT_SYMBOLS||c7L;$Y({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 mhm=AZr(function(){return{dateFormat:1,timeFormat:7,joinerStyle:1,capitalize:function(J){return J}}}),vXJ=AZr(function(){return{dateFormat:3,
timeFormat:7,joinerStyle:3,capitalize:function(J){return J}}}),e5R=new Map;var xhD=[{unitDuration:6048E5,unit:3,threshold:2},{unitDuration:864E5,unit:4},{unitDuration:36E5,unit:5},{unitDuration:6E4,unit:6},{unitDuration:1E3,unit:7}],Beo;var loQ=function(J){return _.J7({type:"SET_EPHEMERAL_ACTION",payload:J})};var ysC={ephemeralAction:null};var BdQ={animatedThumbnailEnabled:!1,inlinePreviewEnabled:!1,currentPageType:"",currentPageSubType:""};var zfq={sharedUi:function(J,c){J=J===void 0?BdQ:J;switch(c.type){case "SET_SHARED_ANIMATED_THUMBNAIL_ENABLED":return Object.assign({},J,{animatedThumbnailEnabled:c.payload});case "SET_SHARED_INLINE_PREVIEW_ENABLED":return Object.assign({},J,{inlinePreviewEnabled:c.payload});case "SET_SHARED_CURRENT_PAGE_TYPE":return Object.assign({},J,{currentPageType:c.payload});case "SET_SHARED_CURRENT_PAGE_SUB_TYPE":return Object.assign({},J,{currentPageSubType:c.payload});default:return J}},
a11y:t0({ephemeralAction:function(J,c){J=J===void 0?ysC.ephemeralAction:J;switch(c.type){case "SET_EPHEMERAL_ACTION":return c.payload;default:return J}}})};var TVe=t0({isLeaderTab:function(J,c){J=J===void 0?!0:J;switch(c.type){case "SET_IS_LEADER_TAB":var m,b;return(b=c==null?void 0:(m=c.payload)==null?void 0:m.isLeaderTab)!=null?b:J;default:return J}}});var gqB=function(J){return _.J7({type:"SET_IS_SHORTS_PIP_ACTIVE",payload:{isShortsPipActive:J}})};var Wnm=t0({isDesktopSmallWidth:function(J,c){switch(c.type){case "SET_IS_DESKTOP_SMALL_WIDTH":return c.payload.isDesktopSmallWidth;default:return J===void 0?!1:J}},
isShortsActive:function(J,c){switch(c.type){case "SET_IS_SHORTS_ACTIVE":return c.payload.isShortsActive;default:return J===void 0?!1:J}},
isWatchWhileMode:function(J,c){switch(c.type){case "SET_IS_WATCH_WHILE_MODE":return c.payload.isWatchWhileMode;default:return J===void 0?!1:J}},
playerState:function(J,c){switch(c.type){case "SET_PLAYER_STATE":return c.payload.playerState;default:return J===void 0?-1:J}},
isFullscreen:function(J,c){switch(c.type){case "SET_IS_FULLSCREEN":return c.payload.isFullscreen;default:return J===void 0?!1:J}},
isSmallScreenSqueezeback:function(J,c){switch(c.type){case "SET_IS_SMALL_SCREEN_SQUEEZEBACK":return c.payload.isSmallScreenSqueezeback;default:return J===void 0?!1:J}},
isShortsPipActive:function(J,c){switch(c.type){case "SET_IS_SHORTS_PIP_ACTIVE":return c.payload.isShortsPipActive;default:return J===void 0?!1:J}},
isPlaybackStarted:function(J,c){switch(c.type){case "SET_IS_PLAYBACK_STARTED":return c.payload.isPlaybackStarted;default:return J===void 0?!1:J}}});var tBT={playlistId:"",inviteLinkURL:""};var JHL={};var n7o=t0({continuationCommand:function(J,c){J=J===void 0?JHL:J;switch(c.type){case "SET_CONTINUATION_COMMAND":return c.payload.continuationCommand;default:return J}}});var flJ=function(){return function(J){return function(c){var m=J(c);_.m9(document.documentElement,"yt-forward-redux-action-to-live-chat-iframe",[c],!0);return m}}};var cHQ,uEm;cHQ=new _.xb;_.BP=new _.oE("WATCH_PLAYER_PROMISE_TOKEN");_.mGB=new _.xb;_.bYL=new _.oE("SHORTS_PLAYER_PROMISE_TOKEN");uEm=new _.oE("");var Ylm=function(){return function(J){return function(c){c.type==="ENTITY_LOADED"&&_.BG().resolve(_.BP).then(function(m){var b;(b=m.dispatchReduxAction)==null||b.call(m,c)});
return J(c)}}};var KnG={currentFormId:"",commandsMap:{}};var xGQ={};var w$D=t0({additionalContext:function(J,c){switch(c.type){case "CHANNEL_REPORT_RESET":return"";case "ADDITIONAL_CONTEXT_UPDATED":var m;return(m=c.payload)!=null?m:"";default:return J===void 0?"":J}},
impersonatedChannelUrl:function(J,c){switch(c.type){case "CHANNEL_REPORT_RESET":return"";case "IMPERSONATED_CHANNEL_URL_UPDATED":var m;return(m=c.payload)!=null?m:"";default:return J===void 0?"":J}},
selectedVideoIds:function(J,c){J=J===void 0?xGQ:J;switch(c.type){case "CHANNEL_REPORT_RESET":return{};case "VIDEO_SELECTED":var m={};return Object.assign({},J,(m[c.payload]=!0,m));case "VIDEO_UNSELECTED":return c=c.payload,J=Object.assign({},J),delete J[c],J;default:return J}}});var rM3=t0({parentClickTrackingParams:function(J,c){switch(c.type){case "SET_PARENT_CLICK_TRACKING_PARAMS":return c.payload.parentClickTrackingParams;case "CLEAR_PARENT_CLICK_TRACKING_PARAMS":return"";default:return J===void 0?"":J}}});var VOL=function(J){return _.J7({type:"TALK_TO_RECS_UPDATE_SELECTION",payload:J})};var Pu2={};var sQu=t0({stepStates:function(J,c){J=J===void 0?Pu2:J;switch(c.type){case "TALK_TO_RECS_RESET_STEP_STATES":return{};case "TALK_TO_RECS_UPDATE_SELECTION":var m=J,b=c.payload,x,P,p;J={};c={selectionStates:Object.assign({},(p=(x=m[b.stepId])==null?void 0:x.selectionStates)!=null?p:{},(J[b.token]={isSelected:b.isSelected},J)),userQuery:(P=m[b.stepId])==null?void 0:P.userQuery};x={};return Object.assign({},m,(x[b.stepId]=c,x));case "TALK_TO_RECS_UPDATE_USER_QUERY":return x=J,P=c.payload,p={selectionStates:Object.assign({},
(b=(m=x[P.stepId])==null?void 0:m.selectionStates)!=null?b:{}),userQuery:{userQuery:P.userQuery,token:P.userQueryToken}},m={},Object.assign({},x,(m[P.stepId]=p,m));default:return J}}});var MOu,pXL,tOB;MOu=function(J){return _.J7({type:"SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX",payload:J})};
pXL=function(J){return _.J7({type:"SET_MINIPLAYER_PLAYBACK_STATE",payload:J})};
_.Dv=function(J){return _.J7({type:"SET_CURRENT_PAGE_TYPE",payload:J})};
_.NOZ=function(J){return _.J7({type:"SET_INLINE_PREVIEW_IS_ENABLED",payload:J})};
tOB=function(J){return _.J7({type:"SET_CHIP_BAR_IS_STICKY",payload:J})};var alQ={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"};_.I5Z=function(J){return _.J7({type:"SET_PLAYER_STATE",payload:{playerState:J}})};var KKQ=[],Cua={width:0,height:0};var Lnf=t0({isTheaterMode:function(J,c){J=J===void 0?_.w("kevlar_disable_theater_mode_persistence")?!1:_.Ss("START_IN_THEATER_MODE"):J;switch(c.type){case "SET_IS_THEATER_MODE":return c.payload.isTheaterMode;default:return J}},
isWatchActive:function(J,c){switch(c.type){case "SET_IS_WATCH_ACTIVE":return c.payload.isWatchActive;default:return J===void 0?!1:J}},
isLearningJourneyActive:function(J,c){switch(c.type){case "SET_IS_LEARNING_JOURNEY_ACTIVE":return c.payload.isLearningJourneyActive;default:return J===void 0?!1:J}},
isWatchFullscreen:function(J,c){switch(c.type){case "SET_IS_WATCH_FULLSCREEN":return c.payload.isWatchFullscreen;default:return J===void 0?!1:J}},
isWatchNarrowWidth:function(J,c){switch(c.type){case "SET_IS_WATCH_NARROW_WIDTH":return c.payload.isWatchNarrowWidth;default:return J===void 0?!1:J}},
isWatchRetroMode:function(J,c){switch(c.type){case "SET_IS_WATCH_RETRO_MODE":return c.payload.isWatchRetroMode;default:return J===void 0?!1:J}},
isLiveChatCollapsed:function(J,c){switch(c.type){case "SET_IS_LIVE_CHAT_COLLAPSED":return c.payload.isLiveChatCollapsed;default:return J===void 0?!1:J}},
openEngagementPanels:function(J,c){J=J===void 0?KKQ:J;var m=[].concat(_.L6(J));switch(c.type){case "ADD_OPEN_ENGAGEMENT_PANEL":return m.push(c.payload.panelToAdd),m;case "REMOVE_OPEN_ENGAGEMENT_PANEL":return m.splice(m.indexOf(c.payload.panelToRemove),1),m;default:return J}},
playerState:function(J,c){switch(c.type){case "SET_PLAYER_STATE":return c.payload.playerState;default:return J===void 0?-1:J}},
watchScrollTop:function(J,c){switch(c.type){case "SET_WATCH_SCROLL_TOP":return c.payload.watchScrollTop;default:return J===void 0?0:J}},
watchWindowSize:function(J,c){J=J===void 0?Cua:J;switch(c.type){case "SET_WATCH_WINDOW_SIZE":return c.payload.watchWindowSize;default:return J}}});var a5L={feedbackTokens:[]};var DhQ=t0({surveyFeedbackData:function(J,c){J=J===void 0?a5L:J;switch(c.type){case "YPC_UPDATE_SURVEY_FEEDBACK_DATA":return c.payload;case "YPC_UPDATE_PARTIAL_SURVEY_FEEDBACK_DATA":return Object.assign({},J,c.payload);default:return J}}});var H$e={};var Z$q=void 0;_.w("web_enable_redux_store_on_demand")||(Z$q=X$t());var kXB=function(J,c,m){var b=this;this.listId=J;this.JSC$10749_updateCallback=c;this.isOfflineVideoCallback=m;_.Rc().subscribe(function(){b.handleUpdate()})};
kXB.prototype.getPlaylistData=function(){var J=_.Rc().getState().entities;if(this.listId&&this.listId!=="PPSV"){var c=qqr(J,this.listId,!0),m=_.V_(this.listId,"mainPlaylistEntity"),b,x;J=J==null?void 0:(b=J.mainPlaylistEntity)==null?void 0:(x=b[m])==null?void 0:x.title;return qle(c,J,this.listId)}c=_.HVQ(MGo(J));J=_.HVQ(_.rf(J));return qle(c.concat(J))};
kXB.prototype.getPlaylistId=function(){return this.listId};
kXB.prototype.handleUpdate=function(){this.isOfflineVideoCallback()&&this.JSC$10749_updateCallback(this.listId,this.getPlaylistData(),{})};var rV=function(J,c,m,b){b=b===void 0?[]:b;this.JSC$10752_playlistNetworkManager=J;this.listId=c;this.JSC$10752_updateCallback=m;this.videoIds=b;this.pendingUpdates=[];this.currentIndex=0};
rV.prototype.JSC$10752_setCurrentIndex=function(J){this.currentIndex=J};
rV.prototype.setListId=function(J){this.listId=J};
var HYC=function(J,c){J.currentCreateRequest&&J.currentCreateRequest.cancel(c);J.currentUpdateRequest&&J.currentUpdateRequest.cancel(c);J.currentRefreshRequest&&J.currentRefreshRequest.cancel(c)};
rV.prototype.delete=function(){HYC(this,"PROXY DELETED")};
rV.prototype.addVideos=function(J,c,m){var b=this;m!==void 0?this.videoIds.splice.apply(this.videoIds,[m,0].concat(_.L6(J))):this.videoIds.push.apply(this.videoIds,_.L6(J));this.listId||this.currentCreateRequest?(J.forEach(function(x,P){x={addedVideoId:x,action:"ACTION_ADD_VIDEO"};m&&(x.addedVideoPosition=m+P);b.pendingUpdates.push(x)}),sl(this)):iYB(this,c.onCreateListCommand)};
var nNZ=function(J,c,m,b,x){Loo(J.videoIds,c,m);c>J.currentIndex&&m<=J.currentIndex?J.JSC$10752_setCurrentIndex(J.currentIndex+1):c===J.currentIndex?J.JSC$10752_setCurrentIndex(m):c<J.currentIndex&&m>=J.currentIndex&&J.JSC$10752_setCurrentIndex(J.currentIndex-1);J.pendingUpdates.push({action:"ACTION_MOVE_VIDEO_AFTER",setVideoId:b,movedSetVideoIdPredecessor:x});sl(J)},iYB=function(J,c){HYC(J,"OBSOLETE");
J.currentCreateRequest=TOa(J.JSC$10752_playlistNetworkManager,c,J.videoIds);_.Hz(J.currentCreateRequest,function(){J.currentCreateRequest=void 0}).then(function(m){J.setListId(m.playlistId);
J.pendingUpdates.length>0?sl(J):wX_(J)})},sl=function(J){if(J.pendingUpdates.length!==0&&(J.currentRefreshRequest&&J.currentRefreshRequest.cancel("OBSOLETE"),!J.currentUpdateRequest&&!J.currentCreateRequest)){var c=J.pendingUpdates.splice(0,J.pendingUpdates.length);
J.currentUpdateRequest=J.JSC$10752_playlistNetworkManager.updatePlaylist(J.listId,c);_.Hz(J.currentUpdateRequest,function(){J.currentUpdateRequest=void 0}).then(function(){J.pendingUpdates.length>0?sl(J):wX_(J)}).thenCatch(function(){J.pendingUpdates.unshift.apply(J.pendingUpdates,_.L6(c))})}},wX_=function(J){J.currentRefreshRequest=_.rH8(J.JSC$10752_playlistNetworkManager,J.listId,J.currentIndex,J.videoIds[J.currentIndex]);
_.Hz(J.currentRefreshRequest,function(){J.currentRefreshRequest=void 0}).then(function(c){J.JSC$10752_updateCallback(c.playlistId,c.playlistPanelRenderer,c.autoplayRenderer)})};
rV.prototype.size=function(){return this.videoIds.length};var sMZ=function(J,c,m,b){b=b===void 0?[]:b;rV.call(this,J,c,m,b);this.JSC$10752_playlistNetworkManager=J;this.listId=c;this.JSC$10752_updateCallback=m;this.videoIds=b};
_.D(sMZ,rV);_.L$=function(J,c,m,b,x,P,p){x=x===void 0?[]:x;p=p===void 0?yl:p;rV.call(this,J,c,m,x);this.JSC$10752_playlistNetworkManager=J;this.listId=c;this.JSC$10752_updateCallback=m;this.onAuthChange=b;this.videoIds=x;this.storage=P;this.cookieReader=p;this.queueSapisId="";this.queueSapisIdJob=0;this.attributionData=new Map;this.queueSapisId=(new this.cookieReader(window.document)).get("SAPISID","");this.queueSapisIdJob=_.cP(_.ft,this.checkLoggedInStatusChange.bind(this),1E3)};
_.D(_.L$,rV);_.V=_.L$.prototype;_.V.checkLoggedInStatusChange=function(){(new this.cookieReader(window.document)).get("SAPISID","")!==this.queueSapisId?(this.onAuthChange(),this.storage&&this.storage.clear()):this.queueSapisIdJob=_.cP(_.ft,this.checkLoggedInStatusChange.bind(this),1E3)};
_.V.JSC$10752_setCurrentIndex=function(J){rV.prototype.JSC$10752_setCurrentIndex.call(this,J);this.store()};
_.V.delete=function(){_.ft.cancelJob(this.queueSapisIdJob);rV.prototype.delete.call(this)};
_.V.setListId=function(J){rV.prototype.setListId.call(this,J);this.store()};
_.V.store=function(){this.storage&&this.listId&&this.currentIndex!==void 0&&this.storage.store(this.listId,this.currentIndex)};var LK6=["response","contents","twoColumnWatchNextResults","autoplay","autoplay"],DGj=["playerResponse","videoDetails"],WKa=["response","currentVideoEndpoint","watchEndpoint","videoId"],zc_=["response","currentVideoEndpoint","watchEndpoint","playlistId"],uPL=["response","playerOverlays","playerOverlayRenderer","endScreen","watchNextEndScreenRenderer"],f5C=["response","contents","twoColumnWatchNextResults","playlist","playlist"],YxL=["response","webWatchNextResponseExtensionData","relatedVideoArgs"],
XX$=["response","contents","twoColumnWatchNextResults"];var Dl={},$he=(Dl.WEB_UNPLUGGED="^unplugged/",Dl.WEB_UNPLUGGED_ONBOARDING="^unplugged/",Dl.WEB_UNPLUGGED_OPS="^unplugged/",Dl.WEB_UNPLUGGED_PUBLIC="^unplugged/",Dl.WEB_CREATOR="^creator/",Dl.WEB_KIDS="^kids/",Dl.WEB_EXPERIMENTS="^experiments/",Dl.WEB_MUSIC="^music/",Dl.WEB_REMIX="^music/",Dl.WEB_MUSIC_EMBEDDED_PLAYER="^music/",Dl.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",Dl);var wL2,TOa;wL2=function(J,c){this.networkManager=J;this.innertubeTransportService=c};
TOa=function(J,c,m){if(!_.L(c,_.XI))return _.sv(Error("Cf"));_.L(c,_.XI).videoIds=m;m={create_playlist_title:_.CX("QUEUE",void 0,"Queue")};return hfR(_.ds(J.innertubeTransportService,c,m),UhJ)};
_.rH8=function(J,c,m,b){c={videoId:b,playlistId:c,playlistIndex:m};m=_.oc(Z9j);return hfR(_.W$(J.innertubeTransportService,c,m),dhr)};
wL2.prototype.updatePlaylist=function(J,c){return hfR(_.ds(this.innertubeTransportService,{commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse/edit_playlist",sendPost:!0}},playlistEditEndpoint:{playlistId:J,actions:c}}),Slu)};var ZY2=function(J){this.storage=J},qx$;
ZY2.prototype.store=function(J,c){c=c===void 0?0:c;if(this.storage&&J.startsWith("TLPQ"))try{this.storage.set("TLPQplaylist",J),this.storage.set("TLPQindex",String(c)),this.storage.set("TLPQtimestamp",String(Date.now()))}catch(m){}};
ZY2.prototype.clear=function(){this.storage&&(this.storage.remove("TLPQtimestamp"),this.storage.remove("TLPQplaylist"),this.storage.remove("TLPQindex"))};
ZY2.prototype.getPlaylistId=function(){if(!this.storage)return null;var J=null;try{J=this.storage.get("TLPQplaylist")}catch(c){}return J};var O$f=["navigationEndpoint","watchEndpoint","videoId"],v72=["nextButtonVideo","watchEndpoint","videoId"];_.Wj=new _.oE("NETWORK_TOKEN");_.oO=new _.oE("PAGE_TOKEN");_.zn=new _.oE("PLAYLIST_TOKEN");var UG2;UG2=new _.oE("ASYNC_INNERTUBE_TRANSPORT_TOKEN");_.zh=new _.oE("INNERTUBE_TRANSPORT_TOKEN");var Sxu,u6,dGQ,$G_,ENC,vNQ;Sxu=new Set(["ci","cr","carml"]);u6=function(){this.signals=[];this.compoundSignals=new Map;this.inProgressSignals=new Set;this.JSC$10799_parkedJobs=new Map;this.parkedProcessors=new Map};
_.f$=function(){u6.instance||(u6.instance=new u6);return u6.instance};
u6.prototype.onAny=function(J){return _.hcz(this,J,2)};
u6.prototype.parkOrScheduleJob=function(J,c,m,b,x){_.Y7(this,m)?_.LZ().addJob(J,c,b):(x&&(J=dGQ(J),$G_(this,J,c,m,x)),x=this.JSC$10799_parkedJobs.get(m),x||(this.JSC$10799_parkedJobs.set(m,[]),x=this.JSC$10799_parkedJobs.get(m)),x.push({job:J,priority:c,delay:b}))};
u6.prototype.addListener=function(J,c,m){m&&(c=dGQ(c),$G_(this,c,0,J,m));m=this.parkedProcessors.get(J);m||(this.parkedProcessors.set(J,[]),m=this.parkedProcessors.get(J));m.push(c)};
u6.prototype.processSignal=function(J){if(!_.Y7(this,J)){this.inProgressSignals.add(J);var c=this.JSC$10799_parkedJobs.get(J);if(c){c=_.M(c);for(var m=c.next();!m.done;m=c.next())m=m.value,_.LZ().addJob(m.job,m.priority,m.delay);this.JSC$10799_parkedJobs.delete(J)}if(c=this.parkedProcessors.get(J)){c=_.M(c);for(m=c.next();!m.done;m=c.next())m=m.value,m();this.parkedProcessors.delete(J)}this.signals.push(J);this.inProgressSignals.delete(J)}};
_.Y7=function(J,c){return Sxu.has(c)||_.Ss("IS_HOMEPAGE_COLD")||_.Ss("IS_RESULTS_PAGE_COLD")||_.Ss("IS_WATCH_PAGE_COLD")?J.signals.indexOf(c)>=0:!0};
dGQ=function(J){var c=!1;return function(){c||(c=!0,J())}};
$G_=function(J,c,m,b,x){if(GX6.has(b))_.LZ().addJob(c,m,x);else{var P=J.compoundSignals.get(b);P&&_.LZ().addJob(function(){_.Y7(J,b)||(P.isTimeoutConditionSatisfied?_.LZ().addJob(c,m):P.timeoutConditionObservers.push(function(){_.LZ().addJob(c,m)}))},m,x)}};
_.hcz=function(J,c,m){if(c.length>1){var b=[],x=Object.create(null);c=_.M(c);for(var P=c.next();!P.done;P=c.next())P=P.value,x[P]||(b.push(P),x[P]=!0);c=b}if(c.length===1)return c[0];P=c;b="";x=m===2?"|":"&";P.sort();P=_.M(P);for(var p=P.next();!p.done;p=P.next())b+=p.value+x;if(!J.compoundSignals.get(b)){x=0;P=[];p=_.M(c);for(var t=p.next();!t.done;t=p.next())t=t.value,x++,_.Y7(J,t)||P.push(t);(m=m===2)&&x>P.length||!m&&!P.length?J.signals.push(b):ENC(J,b,m,c,P)}return b};
ENC=function(J,c,m,b,x){var P=x.length,p=function(){m||--P===0?J.processSignal(c):vNQ(J,c)};
x=_.M(x);for(var t=x.next();!t.done;t=x.next())J.addListener(t.value,p);J.compoundSignals.set(c,{signals:b,isOnAny:m,isInitialized:!1,isTimeoutConditionSatisfied:!1,timeoutConditionObservers:[]});vNQ(J,c)};
vNQ=function(J,c){if(!_.Y7(J,c)){var m=J.compoundSignals.get(c);if(m&&!m.isTimeoutConditionSatisfied){for(var b=!1,x=0,P=0,p=_.M(m.signals),t=p.next();!t.done;t=p.next()){var I=t.value;t=!_.Y7(J,I);GX6.has(I)?b=!0:(I=J.compoundSignals.get(I))?t&&!I.isTimeoutConditionSatisfied&&(P++,m.isInitialized||I.timeoutConditionObservers.push(function(){vNQ(J,c)})):t&&x++}m.isInitialized=!0;
m.isOnAny?b&&(m.isTimeoutConditionSatisfied=!0):x===0&&P===0&&(m.isTimeoutConditionSatisfied=!0);if(m.isTimeoutConditionSatisfied)for(m=_.M(m.timeoutConditionObservers),b=m.next();!b.done;b=m.next())b=b.value,b()}}};
u6.prototype.processSignal=u6.prototype.processSignal;u6.prototype.parkOrScheduleJob=u6.prototype.parkOrScheduleJob;u6.prototype.onAny=u6.prototype.onAny;_.jD("ytsignals.getInstance",_.f$);u6.prototype.onAny=u6.prototype.onAny;u6.prototype.parkOrScheduleJob=u6.prototype.parkOrScheduleJob;u6.prototype.processSignal=u6.prototype.processSignal;var GX6=new Set(["eop","eocs","dl","pcl"]);_.Uo=new _.oE("MINIPLAYER_SERVICE");var XA,OYQ,AHj;XA=function(J,c,m){var b=_.vO.getInstance();if(!qx$){var x=new TKm;var P=void 0,p=_.Ub("ID_TOKEN");p&&x.isAvailable()&&(P=new D4(x,"yt-queue"+p));qx$=new ZY2(P)}x=qx$;P=_.f$();this.JSC$10806_actionRouter=b;this.pageManager=J;this.playlistManager=c;this.JSC$10806_playlistNetworkManager=m;this.storage=x;this.signals=P;this.responsePlaylistData=this.response=this.index=this.listId=void 0;this.temporaryItems=[];this.downloadPlaylistProxy=this.playlistProxy=this.queueProxy=void 0};
_.Zl=function(){if(!OYQ){var J=_.BG(),c=J.resolve(_.y6(_.oO)),m=J.resolve(_.y6(_.Wj)),b=J.resolve(_.y6(_.zn));J=J.resolve(_.zh);OYQ=new XA(c,b,new wL2(m,J))}return OYQ};
AHj=function(J,c,m){if(m){var b;if(((b=J.responsePlaylistData)==null?void 0:b.playlistId)!==m)return}J.responsePlaylistData&&(m=jQD(c,J.responsePlaylistData),J.responsePlaylistData=(0,_.Lw.unsafeClone)(J.responsePlaylistData),llT(J.responsePlaylistData,m));m=J.temporaryItems.findIndex(function(x){return x.videoId===c});
m>-1&&J.temporaryItems.splice(m,1);_.qh(J,_.Ul(J,J.response?J.response.autoplayRenderer:void 0))};
_.Rc8=function(J,c){if(J.responsePlaylistData){var m=Fnr(c,J.responsePlaylistData);llT(J.responsePlaylistData,m);if(J.queueProxy){var b=J.queueProxy;m<0||(b.videoIds.splice(m,1),m<b.currentIndex&&b.JSC$10752_setCurrentIndex(b.currentIndex-1),b.pendingUpdates.push({action:"ACTION_REMOVE_VIDEO",setVideoId:c}),sl(b))}}_.qh(J,_.Ul(J,J.response?J.response.autoplayRenderer:void 0))};
XA.prototype.clearQueue=function(){this.temporaryItems=[];this.storage.clear();this.queueProxy&&(this.queueProxy.delete(),this.responsePlaylistData=this.queueProxy=void 0);this.response&&_.qh(this,{autoplayRenderer:this.response.autoplayRenderer,playerData:{}})};
XA.prototype.setPlaylistData=function(J,c,m){this.temporaryItems=[];this.listId=J;this.responsePlaylistData=c;_.qh(this,_.Ul(this,m))};
var oNu=function(J){return(J==null?0:J.playlistId)?J.playlistId:"PPSV"},QM6=function(J){return J&&J.playlistId?J.playlistId==="PPSV"?!0:XYe(_.Rc().getState().entities,J.playlistId):!1};
XA.prototype.isPlayingOfflineVideo=function(){return this.response?QM6(this.response):!1};
XA.prototype.closeMiniplayer=function(J){var c=this.queueProxy&&this.queueProxy.size()<=1,m=_.BG().resolve(_.Uo);if(!this.queueProxy||c)this.queueProxy&&this.clearQueue(),m.close(!0);else{m.pipController.getWindow()&&window.focus();c=this.responsePlaylistData;var b=this.temporaryItems.length+(c&&c.contents?c.contents.length:0);c=_.CX("QUEUE_CLEARED_UNPLURALIZED")||_.an("QUEUE_CLEARED",b);c=_.ek(c);m=_.CX("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TITLE",void 0,"Close the queue");b=_.CX("QUEUE_CLOSE_MINIPLAYER_CONFIRM_BODY_TEXT")||
_.an("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TEXT",b);var x=_.CX("MINIPLAYER_CLOSE",void 0,"Close"),P=_.CX("CANCEL",void 0,"Cancel");_.WE(this.JSC$10806_actionRouter,[{openPopupAction:{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.v2(m),dialogMessages:[_.v2(b)],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.v2(x),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{endPlaylistCommand:{closeMiniplayer:!0,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}},
c]}}}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.v2(P)}}}}}}],J)}};
_.Ul=function(J,c){var m={},b=J.response;m.autoplayRenderer=c;if(!J.responsePlaylistData&&!J.temporaryItems.length)return!b||!b.hasRelatedVideoData&&_.w("kevlar_prefetch_data_augments_network_data")||(m.playerData={rvs:b.relatedVideoArgs,endScreenRenderer:b.endScreenRenderer}),m;m.playerData={};if(J.index===void 0)return _.Xc(Error("Ef")),m;m.panel=J.responsePlaylistData?(0,_.Lw.unsafeClone)(J.responsePlaylistData):{titleText:_.v2(_.CX("QUEUE",void 0,"Queue")),currentIndex:0,totalVideos:1,contents:[]};
c=m.panel;if(c.contents)for(var x=_.M(J.temporaryItems),P=x.next();!P.done;P=x.next())c.contents.push({playlistPanelVideoRenderer:P.value});J.queueProxy&&b&&b.playingVideo&&b.playingVideoId&&!efq(b.playingVideoId,m.panel)&&(c=b.playingVideo,x=m.panel,P=J.index,x.contents&&x.contents.splice(P===void 0?0:P,0,{playlistPanelVideoRenderer:c}));b&&b.playingVideoId&&(c=J.index,x=m.panel,c=!x.contents||c>=x.contents.length?void 0:x.contents[c].playlistPanelVideoRenderer,c&&c.videoId===b.playingVideoId||(c=
jQD(b.playingVideoId,m.panel),J.index=c!==-1?c:J.index?J.index-1:0));c=QQq(J.index+1,m.panel);x=void 0;J.index>0&&(x=QQq(J.index-1,m.panel));if(x||c)m.autoplayRenderer=AMQ(c,x,m.autoplayRenderer);!c&&(b==null?0:b.relatedVideoArgs)&&(m.playerData.rvs=b.relatedVideoArgs);b=b?b.playlistIndexOffset:0;J.queueProxy?g7Q(m.panel,J.index,b,o7e,!0,!0,!0):g7Q(m.panel,J.index,b);m.playerData.playlistPanelRenderer=m.panel;return m};
XA.prototype.openToast=function(J){_.BG().resolve(_.Uo).openToast(J,_.CX("ADDED_TO_QUEUE",void 0,"Added to queue"))};
XA.prototype.isMiniplayerActive=function(){return _.BG().resolve(_.Uo).isMiniplayerActive()};
_.qh=function(J,c){J.playlistManager.setAutoplayRenderer(c.autoplayRenderer||null);J.playlistManager.setPlaylistData(c.panel||null);c.playerData&&J.playlistManager.setPlayerPlaybackControlData(c.playerData)};var cge="#";var ecQ={},jM$={},FK2={},l56={},yHL={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:(ecQ.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="ap",ecQ),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:(jM$.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="as",jM$),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:(FK2.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="zx",FK2),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:(l56.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="po",l56),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:yHL},{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:yHL}}];var zlT;_.bq=[[["MXloaXdsa2luZCNyN256eGw=","NHJkbHp4dmFsdWUjYXRyaWFy"],"MzM2bnB4QURfUExBQ0VNRU5UX0tJTkRfU1RBUlQjZDFoOWxo"]];
zlT=[[["Nm5sdDh1cHJpbWFyeSNjcjJlNHY=",null,null],[null,["N204cW43eXRkLXR3by1jb2x1bW4tYnJvd3NlLXJlc3VsdHMtcmVuZGVyZXIjeGJmeXQ=","cWgxYWdkc3R5bGUtc2NvcGUjYzdtNnhi"],null],["NW85MDNmbWFzdGhlYWQtYWQjc3lvZGU5",["ODR6NzM3eXRkLXJpY2gtZ3JpZC1yZW5kZXJlciNhbmhoc2o="],null],[null,["czNtY3Q4eXRkLXJpY2gtZ3JpZC1yZW5kZXJlciNjN2JidXU=","NHEzb212c3R5bGUtc2NvcGUjZG5kMzRv"],null],[null,["dmo0aTIzeXRkLWJhbm5lci1wcm9tby1yZW5kZXJlciNjNWhhZW8=","d251Ynkzc3R5bGUtc2NvcGUjMjBhdGVs"],null],[null,["eW1wdzFxeXRkLWFkLXNsb3QtcmVuZGVyZXIja2VrbmY1"],
null]],[["eTEwMHJwcGxheWVyLWFkcyMxNGxjZzQ=",null,null]]];_.mU=["cmQzMGd0Z2xvYmFsQ2FsbGJhY2tzI3M4bGh5cw==","d2lyOTM5b25BYm5vcm1hbGl0eURldGVjdGVkIzJ5aGxvYw==","dGo3aDFvb25BZFNraXAjczd2dzBq","ZGthbG93cmF3X3BsYXllcl9yZXNwb25zZSNrZTEzMA==","NHVlaTdjYWRTbG90cyMzamowM2Y="];_.SB="cmQzMGd0Z2xvYmFsQ2FsbGJhY2tzI3M4bGh5cw== d2lyOTM5b25BYm5vcm1hbGl0eURldGVjdGVkIzJ5aGxvYw== dGo3aDFvb25BZFNraXAjczd2dzBq ZGthbG93cmF3X3BsYXllcl9yZXNwb25zZSNrZTEzMA== NnR4b3Bwd2ViX3BsYXlsaXN0X3F1ZXVlX211bHRpcGxlX3NraXBzX2tzI3hsZ3gybw== ZGxuMHVqYWJfc2FfZWYjbjk4ZzNu NHVlaTdjYWRTbG90cyMzamowM2Y=".split(" ");var hM;hM=function(J,c,m){this.oZ9=J;this.isAsync=c;this.j1v=m};
_.F7f=[new hM("b.f_",!1,0),new hM("j.s_",!1,2),new hM("r.s_",!1,4),new hM("e.h_",!1,6),new hM("i.s_",!0,8),new hM("s.t_",!1,10),new hM("p.h_",!1,12),new hM("s.i_",!1,14),new hM("f.i_",!1,16),new hM("a.b_",!1,18),new hM("a.o_",!1),new hM("g.o_",!1,22),new hM("p.i_",!1,24),new hM("p.m_",!1),new hM("n.k_",!0,20),new hM("i.f_",!1),new hM("a.s_",!0),new hM("m.c_",!1),new hM("n.h_",!1,26),new hM("o.p_",!1),new hM("m.p_",!0,28),new hM("o.a_",!1),new hM("d.p_",!1),new hM("e.i_",!1)].reduce(function(J,c){J[c.oZ9]=
c;return J},{});var BOL=function(){};
BOL.prototype.flush=function(J,c){J=J===void 0?[]:J;c=c===void 0?!1:c;if(_.w("enable_client_streamz_web")){J=_.M(J);for(var m=J.next();!m.done;m=J.next())m=Mh2(m.value),this.rootSpec&&_.m_(m,2,this.rootSpec),m={serializedIncrementBatch:_.yR(m.JSC$7618_serializeBinary())},_.zB("streamzIncremented",m,{sendIsolatedPayload:c})}};
var VFo=function(){};
_.D(VFo,BOL);var gNL=function(J){var c=new Jfz;var m=new y8a;m=_.aw(m,1,"botguard");J=_.aw(m,2,J);this.rootSpec=_.bs(c,1,cf2,J)};
_.D(gNL,BOL);var gf,JtQ=new Map;var Xt2,MFQ,H9R,tFQ,CUt,DHG,qW2,sTD;Xt2=2;MFQ=2;H9R=2;tFQ=2;CUt=2;DHG=2;qW2=2;sTD=new xM6;var m6a,buQ,x6a;m6a=function(){this.ongoingFlowNonces=new Map};
_.Mr=function(){buQ||(buQ=new m6a);return buQ};
_.VS=function(J,c,m){return{eventType:{flowEventNamespace:J,flowEventType:c},metadata:m,statusCode:void 0,csn:void 0,can:void 0}};
_.ygm=function(J,c){var m=_.Mr(),b=x6a(m,c,!0);_.Pj(m,J,c,b)};
_.Pj=function(J,c,m,b){J={flowNonce:b||x6a(J,m),flowType:m,flowEventType:c.eventType};c.metadata&&(J.flowMetadata=c.metadata);c.statusCode!==void 0&&(J.flowEventStatus=c.statusCode);c.csn&&(J.csn=c.csn);c.can&&(J.can=c.can);_.zB("flowEvent",J,void 0)};
x6a=function(J,c,m){m=m===void 0?!1:m;var b=J.ongoingFlowNonces.get(c);if(!b||m)b=zv(16),J.ongoingFlowNonces.set(c,b);return b};_.V$Q=new b6B;var csT={UNKNOWN:"unknown",BROWSE:"browse",WATCH:"watch",SEARCH:"search",ACCOUNTS:"accounts",SETTINGS:"settings",WELCOME:"welcome",ACCOUNT_SELECTOR:"account_selector",CHANNEL:"channel",PLAYLIST:"playlist",SIGN_IN_IDENTIFIER_ENTRY:"sign_in_identifier_entry",SIGN_IN_PASSWORD_ENTRY:"sign_in_password_entry",SIGN_IN_DEVICE_PROMPT_CHALLENGE:"sign_in_device_prompt_challenge",SHORTS:"shorts",PROMO:"promo",CALL_TO_CAST:"call_to_cast",AMBIENT_INTERLUDES:"ambient_interludes",PRIVACY:"privacy",NO_OP:"noop",MINI_APP:"mini_app",
MINI_APP_EMBED:"mini_app",OPEN_IN_APP:"open_in_app",LEARNING_JOURNEY_WATCH:"learning_journey_watch"};var dV=function(J,c,m,b,x,P,p){m=m===void 0?!1:m;b=b===void 0?!1:b;P=P===void 0?_.Zl():P;this.hasRun=!1;this.f4d=J;this.uXf=c;this.bLD=m;this.fromHistory=b;this.previousVideoId=x;this.zmg=P;this.tempData=p;this.hmD=new _.Vtu};
_.D(dV,Ry);dV.prototype.validate=function(J){return!(!J.data.playerResponse||J.data.page!=="watch"&&J.data.page!=="learning_journey_watch"&&J.data.page!=="shorts"||this.hasRun)};
dV.prototype.handle=function(J){var c=this,m=_.L(J.endpoint,_.Rz),b=_.L(J.endpoint,_.kb);if(_.w("kevlar_continue_playback_without_player_response")&&(m==null?0:m.videoId)&&this.previousVideoId&&(m==null?void 0:m.videoId)===this.previousVideoId&&(m==null?0:m.continuePlayback)&&!this.fromHistory)this.f4d.resolve();else{var x={};m?x.watch_endpoint=m:b&&(x.watch_endpoint=b,b.endTimeSeconds&&(x.end=b.endTimeSeconds));J.data.page==="watch"?(J.data.filler||this.bLD||(_.Xv("cfg"),_.vO.getInstance().triggerAction("yt-start-loading-watch")),
Object.assign(x,PGC(this,J.endpoint)),_.w("enable_masthead_quartile_ping_fix")&&Object.assign(x,M$B(this)),Object.assign(x,void 0),J.data.forceExternalPlaylist&&(x.external_list=!0)):J.data.page==="shorts"?_.vO.getInstance().triggerAction("yt-start-loading-shorts"):J.data.page==="learning_journey_watch"&&_.vO.getInstance().triggerAction("yt-start-loading-learning-journey");if(m=this.uXf()){try{m.loadVideoWithPlayerResponse(J.data.playerResponse,x),m.getPlayerPromise().then(this.f4d.resolve)}catch(P){_.Xc(P),
this.f4d.resolve()}this.hasRun=!0;m.getPlayerPromise().then(function(P){P.addEventListener("onAbnormalityDetected",function(){var p=J.data.playerResponse,t=P.getVideoData().cpn;qW2=0;_.ctB=t;if(t=jTo(p))c.hmD.increment("IN_PLAYER"),_.pv(5),_.w("ab_st_vid_ks")?P.pauseVideo(!0):P.stopVideo(),p.playabilityStatus=Object.assign({},p.playabilityStatus,{status:"ERROR",errorScreen:{enforcementMessageViewModel:t}}),p.videoDetails=void 0,_.vO.getInstance().triggerOptionalAction("yt-updated-playability-status",
p.playabilityStatus)})})}else _.qz(Error("Hf"))}};
var PGC=function(J,c){var m=_.L(c,_.Rz);if(c&&m&&m.playlistId&&m.videoId&&(J=J.zmg,J.queueProxy?(J=J.queueProxy,m=J.listId===m.playlistId?J.attributionData.get(m.videoId):void 0):m=void 0,m))return{queue_info:m}},M$B=function(J){var c;
if((c=J.tempData)==null?0:c.adpings)return{adpings:J.tempData.adpings}};var $7=function(J,c,m){this.hasRun=!1;this.p8B=J;this.hwB=c;this.yZC=m};
_.D($7,Ry);$7.prototype.validate=function(J){return!!_.Lw.getValueByKeys.apply(null,[J.data].concat(_.L6(XX$)))};
$7.prototype.handle=function(J){var c=this;this.p8B.promise.then(function(){var m=J.data;var b=_.Lw.getValueByKeys.apply(null,[m].concat(_.L6(LK6))),x=_.Lw.getValueByKeys.apply(null,[m].concat(_.L6(f5C))),P=_.Lw.getValueByKeys.apply(null,[m].concat(_.L6(WKa)));var p=(p=_.Lw.getValueByKeys.apply(null,[m].concat(_.L6(DGj))))?{videoId:p.videoId,thumbnail:p.thumbnail,title:p.title?_.v2(p.title):void 0,shortBylineText:p.author?_.v2(p.author):void 0}:void 0;var t=void 0;_.w("web_get_playlist_id_from_current_endpoint_ks")||
(t=_.Lw.getValueByKeys.apply(null,[m].concat(_.L6(zc_))));var I=_.Lw.getValueByKeys.apply(null,[m].concat(_.L6(YxL))),a=_.Lw.getValueByKeys.apply(null,[m].concat(_.L6(uPL))),k=!!I||!!a&&!!a.results&&a.results.length>0,H=0;x&&x.currentIndex&&x.localCurrentIndex&&(H=x.currentIndex-x.localCurrentIndex);x&&x.playlistId&&(t=x.playlistId);m={rawResponse:m,autoplayRenderer:b,hasRelatedVideoData:k,playingVideo:p,playingVideoId:P,playlistPanelRenderer:x,playlistId:t,playlistIndex:x&&x.currentIndex,relatedVideoArgs:I,
endScreenRenderer:a,playlistIndexOffset:H};a:{b=c.yZC;x=c.hwB;b.response=m;if(QM6(m))b.downloadPlaylistProxy&&b.downloadPlaylistProxy.getPlaylistId()===oNu(m)||(b.downloadPlaylistProxy=new kXB(oNu(m),b.setPlaylistData.bind(b),b.isPlayingOfflineVideo.bind(b))),b.responsePlaylistData=b.downloadPlaylistProxy.getPlaylistData(),b.listId=oNu(m),b.index=0;else if(m.playlistPanelRenderer&&m.playlistId&&m.autoplayRenderer)m.playlistId.startsWith("TLPQ")?b.queueProxy?b.listId===m.playlistId?(b.index=m.playlistIndex,
b.responsePlaylistData=m.playlistPanelRenderer,b.queueProxy.JSC$10752_setCurrentIndex(b.index)):m.playingVideoId&&b.index!==void 0&&x.clientParams.autoSaveToQueue&&(b.index+=1,b.queueProxy.JSC$10752_setCurrentIndex(b.index),b.queueProxy.addVideos([m.playingVideoId],{},b.index)):(b.queueProxy=new _.L$(b.JSC$10806_playlistNetworkManager,m.playlistId,b.setPlaylistData.bind(b),b.clearQueue.bind(b),_.yMo(m.playlistPanelRenderer),b.storage),b.responsePlaylistData=m.playlistPanelRenderer,b.listId=m.playlistId,
b.index=m.playlistIndex):(b.index=m.playlistIndex,b.listId!==m.playlistId&&b.clearQueue(),b.responsePlaylistData=m.playlistPanelRenderer,b.listId=m.playlistId,b.playlistProxy=new sMZ(b.JSC$10806_playlistNetworkManager,m.playlistId,b.setPlaylistData.bind(b),_.yMo(m.playlistPanelRenderer)));else if(!b.queueProxy)b.responsePlaylistData=void 0;else if(m.playingVideoId&&x.clientParams.autoSaveToQueue){if(b.index===void 0){_.Xc(Error("Df"));b.clearQueue();break a}b.queueProxy.videoIds.includes(m.playingVideoId)||
(b.index+=1,b.queueProxy.JSC$10752_setCurrentIndex(b.index),b.queueProxy.addVideos([m.playingVideoId],{},b.index))}_.qh(b,_.Ul(b,b.response.autoplayRenderer))}})};var pT$=function(J,c){c=c===void 0?_.Zl():c;Vt.call(this);this.nJ.push(new $7(this.dE,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},c));this.nJ.push(new dV(this.dE,J,!1,!1));_.w("web_response_commands_chunk_processor")&&this.nJ.push(new P$)};
_.D(pT$,Vt);pT$.prototype.processChunk=function(J){J&&J.data.player===void 0&&this.dE.resolve();Vt.prototype.processChunk.call(this,J)};var Gn=function(J,c){J=J===void 0?{layer:0}:J;this.hasRun=!1;this.createScreenConfig=J;this.zwW=c};
_.D(Gn,Ry);Gn.prototype.validate=function(J){return!(this.hasRun||!J.endpoint)};
Gn.prototype.handle=function(J){var c=_.C7(),m,b,x=(b=_.L((m=J.endpoint)==null?void 0:m.commandMetadata,_.lk))==null?void 0:b.rootVe;this.zwW&&x?_.ge(c,x,this.zwW,this.createScreenConfig):BFQ(c,J.endpoint,this.createScreenConfig);this.hasRun=!0};var El=function(J,c){this.hasRun=!1;this.s4l=J;this.previousVideoId=c};
_.D(El,Ry);El.prototype.validate=function(J){return _.w("kevlar_continue_playback_without_player_response")&&(J=_.L(J.endpoint,_.Rz),(J==null?0:J.videoId)&&this.previousVideoId&&(J==null?void 0:J.videoId)===this.previousVideoId&&(J==null?0:J.continuePlayback))?!1:this.s4l.x9F===0};
El.prototype.handle=function(J){_.vO.getInstance().triggerAction("yt-stop-old-player",J.data,!0)};var NW$=function(J){J=J===void 0?{layer:0}:J;Vt.call(this);this.nJ.push(new El(this));this.nJ.push(new Gn(J));this.nJ.push(new x7(J))};
_.D(NW$,Vt);var t$z=function(){this.hasRun=this.hasRun=!1};
_.D(t$z,Ry);t$z.prototype.validate=function(J){return!this.hasRun&&!(!J.data.csn||!J.data.rootVe)};
t$z.prototype.handle=function(J){this.hasRun=!0;_.qa(J.data.csn,J.data.rootVe,3)};var IX_=function(){Ry.apply(this,arguments)};
_.D(IX_,Ry);IX_.prototype.validate=function(J){return!!J.data.preconnect};
IX_.prototype.handle=function(J){_.Y2("bc");J=_.M(J.data.preconnect);for(var c=J.next();!c.done;c=J.next())c=c.value,(new Image).src=c};var KB_=function(J,c,m){m=m===void 0?{layer:0}:m;Vt.call(this);this.nJ.push(new dV(this.dE,J));this.nJ.push(new Gn(m));this.nJ.push(new x7(m))};
_.D(KB_,Vt);var CGz=function(J,c,m,b,x){m=m===void 0?{layer:0}:m;b=b===void 0?_.Zl():b;Vt.call(this);var P=!!c&&!!c.clientParams&&!!c.clientParams.miniplayer;P&&this.nJ.push(new t$z);this.nJ.push(new $7(this.dE,c,b));this.nJ.push(new IX_);var p,t;this.nJ.push(new dV(this.dE,J,P,!((p=c.clientParams)==null||!p.fromHistory),(t=c.clientParams)==null?void 0:t.previousVideoId,b,c.tempData));var I;this.nJ.push(new El(this,(I=c.clientParams)==null?void 0:I.previousVideoId));var a;(a=c.clientParams)!=null&&a.fromHistory||
(m.layer||(m=Object.assign({},m,{layer:P?3:0})),this.nJ.push(new Gn(m,x)),this.nJ.push(new x7(m)));_.w("web_response_commands_chunk_processor")&&this.nJ.push(new P$)};
_.D(CGz,Vt);var v$,Huz;v$={};
_.aX2=(v$["subs-guide-item"]={bodyText:"SUBS_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},v$["subs-filter-by-channel"]={bodyText:"SUBS_FILTER_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},v$["subs-filtered-by-channel"]={bodyText:"SUBS_FILTER_EDU_CHANNEL_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},v$["membership-join"]={titleText:"JOIN_MEMBERSHIP_EDU_TITLE",bodyText:"JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},v$["membership-freebie-join"]=
{bodyText:"FREEBIE_JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},v$["membership-manage"]={bodyText:"MANAGE_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},v$["library-guide-item"]={titleText:"LIBRARY_GUIDE_ITEM_EDU_TITLE",bodyText:"LIBRARY_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},v$);_.Ol=new _.Un("yt-edu");_.krB=function(){this.JSC$10907_eduDisplayedThisLoad_={}};
Huz=function(J){var c=_.krB.getInstance();var m=_.c7("kevlar_tooltip_impression_cap");c=m&&parseInt(_.Ol.get(J+"-impression")||0,10)>=m||_.Ol.get(J+"-dismissed")?!1:(m=_.aX2[J])&&!c.JSC$10907_eduDisplayedThisLoad_[m.setKey||J]&&(m.titleText&&_.CX(m.titleText)||m.bodyText&&_.CX(m.bodyText))?!0:!1;if(!c)return null;c=_.aX2[J];if(!c)return null;m=c.bodyText?_.CX(c.bodyText):void 0;var b=c.titleText?_.CX(c.titleText):void 0;return[{openPopupAction:{popupType:"HINT",position:c.position,popup:{bubbleHintRenderer:{text:b?
_.v2(b):void 0,detailsText:m?_.v2(m):void 0,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP",confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.v2(_.CX("EDU_GOT_IT")),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{eduDismissAction:{key:J}}]}}}}}}}},{eduImpressionAction:{key:J}}]};
_.F1(_.krB);var BFG=!1;for(var iuz="WEB_PAGE_TYPE_SETTINGS red playlist labs handle ypc-offers show ypc-checkout".split(" "),nTa=[],AM=6;AM>=1;AM--)nTa.push({columnCount:AM,query:AM==1?0:AM*2*107-4+32,className:"grid-"+AM+"-columns",width:AM*2*107+"px"});_.wTC=function(J){this.actionRouter_=J=J===void 0?_.vO.getInstance():J;this.documentWidth_=document.body.clientWidth;this.currentSnapState_=_.TWZ(this);this.miniGuideVisible_=this.guidePersistentAndVisible_=!1};
_.TWZ=function(J){var c=J.miniGuideVisible_?72:0,m=J.documentWidth_-(J.guidePersistentAndVisible_?240:c);return nTa.find(function(b){return m>b.query})};
_.F1(_.wTC);var rt6=function(){var J=this;this.JSC$10919_keyboardInUse=!1;document.addEventListener("keydown",function(){J.onKeydown()});
document.addEventListener("mousedown",function(){J.JSC$10919_keyboardInUse=!1})},s7L;
rt6.prototype.isKeyBoardInUse=function(){return this.JSC$10919_keyboardInUse};
rt6.prototype.onKeydown=function(){this.JSC$10919_keyboardInUse=!0};var LB6,Qt;_.RQ=new _.Un("yt-mentions");_.oQ=function(){};
LB6=function(J,c){return Qt(c,"drag-to-reorder-edu-displayed")};
Qt=function(J,c,m,b,x,P){m=m===void 0?"OPEN_POPUP_POSITION_TOP":m;if(c){if(_.RQ.get(c))return;_.RQ.set(c,!0,b)}if(x&&P!==void 0){c=Number(_.RQ.get(x)||0);if(c>=P)return;_.RQ.set(x,c+1)}return[{openPopupAction:{popupType:"HINT",position:m,popup:{bubbleHintRenderer:{detailsText:J,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP"}}}}]};
_.F1(_.oQ);var D6C,WBQ,zJz;D6C=function(J,c,m,b){this.JSC$10929_taskManager_=J;this.onFulfilled_=typeof c==="function"?c:null;this.onRejected_=typeof m==="function"?m:null;this.JSC$10929_context_=b};
WBQ=function(J,c){J.onFulfilled_&&_.at(J.JSC$10929_taskManager_,function(){J.onFulfilled_.call(J.JSC$10929_context_,c)})};
zJz=function(J,c){J.onRejected_&&_.at(J.JSC$10929_taskManager_,function(){J.onRejected_.call(J.JSC$10929_context_,c)})};
_.eB=function(J){this.JSC$10932_taskManager_=J;this.callbacks_=[]};
_.eB.prototype.then=function(J,c,m){this.callbacks_.push(new D6C(this.JSC$10932_taskManager_,J,c,m));return this};
_.eB.prototype.onSuccess=function(J){this.callbacks_.forEach(function(c){WBQ(c,J)})};
_.eB.prototype.onFailure=function(J){this.callbacks_.forEach(function(c){zJz(c,J)})};
_.eB.prototype.cancel=function(){this.callbacks_.length=0};
I2B(_.eB);_.boe=null;_.Lq=new _.oE("ACTIVITY_TOKEN");var jB=function(J,c){this.serviceId=new tj6(J,c)};
jB.prototype.toString=function(){return this.serviceId.toString()};var ux2=function(){this.internalMap={}};
_.V=ux2.prototype;_.V.contains=function(J){return Object.prototype.hasOwnProperty.call(this.internalMap,J)};
_.V.get=function(J){if(this.contains(J))return this.internalMap[J]};
_.V.set=function(J,c){this.internalMap[J]=c};
_.V.getKeys=function(){return Object.keys(this.internalMap)};
_.V.remove=function(J){delete this.internalMap[J]};var FA=function(){this.mappings=new ux2;this.errorCallbacks=new Set};
FA.prototype.getModuleId=function(J){return J.serviceId.getModuleId()};
FA.prototype.get=function(J){var c=this.mappings.get(J.toString());return fXZ(this,c,J)};
FA.prototype.getMultipleAsync=function(){var J=_.s$.apply(0,arguments),c=this,m=J.map(function(I){return c.getModuleId(I)}),b=J.map(function(I){return c.mappings.get(I.toString())}).filter(function(I){return I});
if(b.length===J.length)return _.ML(b.map(function(I,a){return fXZ(c,I,J[a])}));
var x=XZ().loadMultiple(m);b=_.k1(m.map(function(I){return x[I]}));
var P=document.hidden,p=-1,t=_.c7("get_async_timeout_ms",-1);t>-1&&(p=setTimeout(function(){_.qz(new _.w3("Module timeout.",m,P,document.hidden))},t));
return _.Hz(b.then(function(){return J.map(function(I){return fXZ(c,c.mappings.get(I.toString()),I)})}).thenCatch(function(I){for(var a=_.M(c.errorCallbacks),k=a.next();!k.done;k=a.next())k=k.value,k(I);
throw I;}),function(){clearTimeout(p)})};
FA.prototype.registerService=function(J,c){this.mappings.set(J.toString(),{type:"mapping",value:c});return J};
var fXZ=function(J,c,m){switch(c.type){case "mapping":return c.value;case "factory":return c=c.value(),J.mappings.set(m.toString(),{type:"mapping",value:c}),c;default:return _.Pu(c)}};
FA.prototype.onLoadError=function(J){var c=this;this.errorCallbacks.add(J);return function(){c.errorCallbacks.delete(J)}};
_.l6=new FA;var pLJ=/^[a-zA-Z0-9_\-]{11}$/;var Ndo=_.IS(function(){var J,c;return(c=(J=window).matchMedia)==null?void 0:c.call(J,"(prefers-reduced-motion: reduce)").matches});var YF6=_.IS(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 J=_.$y("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_");J||(J=_.id("VIDEO"),_.jD("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_",
J));return!!(J&&J.canPlayType&&J.canPlayType('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"'))});var kim=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var B$;B$=function(){this.tokenJars={};if(this.cookiesEnabled=_.H7()){var J=_.ar.get("CONSISTENCY",void 0);J&&XTZ(this,{encryptedTokenJarContents:J})}};
_.iou=function(){B$.instance||(B$.instance=new B$);return B$.instance};
B$.prototype.handleResponse=function(J,c){if(!c)throw Error("Nf");var m,b;c=((m=c.innerTubeRequest.context)==null?void 0:(b=m.request)==null?void 0:b.consistencyTokenJars)||[];var x;(J=(x=J.responseContext)==null?void 0:x.consistencyTokenJar)&&this.replace(c,J)};
B$.prototype.replace=function(J,c){J=_.M(J);for(var m=J.next();!m.done;m=J.next())delete this.tokenJars[m.value.encryptedTokenJarContents];XTZ(this,c)};
var XTZ=function(J,c){if(c.encryptedTokenJarContents&&(J.tokenJars[c.encryptedTokenJarContents]=c,typeof c.expirationSeconds==="string")){var m=Number(c.expirationSeconds);setTimeout(function(){delete J.tokenJars[c.encryptedTokenJarContents]},m*1E3);
J.cookiesEnabled&&_.kK("CONSISTENCY",c.encryptedTokenJarContents,m,void 0,!0)}};var ZuQ,gV;ZuQ=window.location.hostname.split(".").slice(-2).join(".");_.Lv=function(){this.remoteLocationPlayabilityTokenTimeoutID=-1;var J=_.Ub("LOCATION_PLAYABILITY_TOKEN");_.Ub("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=qFu(this))&&(J=this.localStorage.get("yt-location-playability-token"));J&&(this.locationPlayabilityToken=J,this.mostRecentPosition=void 0)};
_.Lv.getInstance=function(){gV=_.$y("yt.clientLocationService.instance");gV||(gV=new _.Lv,_.jD("yt.clientLocationService.instance",gV));return gV};
_.Lv.prototype.setLocationOnInnerTubeContext=function(J){J.client||(J.client={});if(this.mostRecentPosition)J.client.locationInfo||(J.client.locationInfo={}),J.client.locationInfo.latitudeE7=Math.floor(this.mostRecentPosition.coords.latitude*1E7),J.client.locationInfo.longitudeE7=Math.floor(this.mostRecentPosition.coords.longitude*1E7),J.client.locationInfo.horizontalAccuracyMeters=Math.round(this.mostRecentPosition.coords.accuracy),J.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.remoteLocationPlayabilityToken||
this.locationPlayabilityToken)J.client.locationPlayabilityToken=this.remoteLocationPlayabilityToken||this.locationPlayabilityToken};
_.Lv.prototype.handleResponse=function(J){var c;J=(c=J.responseContext)==null?void 0:c.locationPlayabilityToken;J!==void 0&&(this.locationPlayabilityToken=J,this.mostRecentPosition=void 0,_.Ub("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=qFu(this))&&this.localStorage.set("yt-location-playability-token",J,15552E3):_.kK("YT_CL",JSON.stringify({loctok:J}),15552E3,ZuQ,!0))};
var qFu=function(J){return J.localStorage===void 0?new _.Un("yt-client-location"):J.localStorage};
_.Lv.prototype.clearLocationPlayabilityToken=function(J){J==="TVHTML5"?(this.localStorage=qFu(this))&&this.localStorage.remove("yt-location-playability-token"):_.IPt("YT_CL");this.remoteLocationPlayabilityToken=void 0;this.remoteLocationPlayabilityTokenTimeoutID!==-1&&(clearTimeout(this.remoteLocationPlayabilityTokenTimeoutID),this.remoteLocationPlayabilityTokenTimeoutID=-1)};
_.Lv.prototype.getCurrentPositionFromGeolocation=function(){var J=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Of"));var c=!1,m=1E4;_.Ub("INNERTUBE_CLIENT_NAME")==="MWEB"&&(c=!0,m=15E3);return new Promise(function(b,x){navigator.geolocation.getCurrentPosition(function(P){J.mostRecentPosition=P;b(P)},function(P){x(P)},{enableHighAccuracy:c,
maximumAge:0,timeout:m})})};
_.Lv.prototype.createUnpluggedLocationInfo=function(J){var c={};J=J.coords;if(J==null?0:J.latitude)c.latitudeE7=Math.floor(J.latitude*1E7);if(J==null?0:J.longitude)c.longitudeE7=Math.floor(J.longitude*1E7);if(J==null?0:J.accuracy)c.locationRadiusMeters=Math.round(J.accuracy);return c};
_.Lv.prototype.createLocationInfo=function(J){var c={};J=J.coords;if(J==null?0:J.latitude)c.latitudeE7=Math.floor(J.latitude*1E7);if(J==null?0:J.longitude)c.longitudeE7=Math.floor(J.longitude*1E7);return c};var U62=function(){};
_.V=U62.prototype;
_.V.JSC$10999_getRequest=function(J,c,m){c=c===void 0?{}:c;m=m===void 0?CjZ:m;var b=c;if(this.isNavigationCommand()){var x,P=(x=_.L(J==null?void 0:J.commandMetadata,_.lk))==null?void 0:x.url;b=_.nqu(J.clickTrackingParams,!0,!1,P,this.JSC$10999_getClientScreen(b))}else b=_.nqu(J.clickTrackingParams,!1,this.includeCsn);b={context:b};if(x=this.getExtension(J))return this.JSC$10999_buildRequest(b,x,c),x=this.getApiUrl(J),P=Object.assign({},{command:J},this.getRequestConfig(J,c)),b={input:x,requestShell:OH(x),
innerTubeRequest:b,config:P},b.config.authStrategy?b.config.authStrategy.identity=m:b.config.authStrategy={identity:m},(J=this.JSC$10999_getRequestKey(J,c))&&!b.config.requestKey&&(b.config.requestKey=J),b;J=new _.w3("Error: Failed to create Request from Command.",J);_.Xc(J)};
_.V.getApiUrl=function(J){var c=_.oc(this.getApiPaths(J)),m;(J=(m=_.L(J.commandMetadata,_.lk))==null?void 0:m.apiUrl)&&(c=J);return JED(g13(c))};
_.V.isNavigationCommand=function(){return!1};
_.V.JSC$10999_getClientScreen=function(){};
_.V.JSC$10999_getRequestKey=function(){};
_.V.getRequestConfig=function(){};
_.eE.Object.defineProperties(U62.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!1}}});
var Jg=function(){};
_.D(Jg,U62);Jg.prototype.JSC$11006_getStoreKey=function(){};
Jg.prototype.JSC$10999_getRequestKey=function(J,c){c=c===void 0?{}:c;return this.JSC$11006_getStoreKey(J,c)};var hJQ;_.ct=function(J,c,m){var b=m&&m>0?m:0;m=b?Date.now()+b*1E3:0;if((b=b?(0,_.SF_)():hJQ())&&window.JSON){typeof c!=="string"&&(c=JSON.stringify(c,void 0));try{b.set(J,c,m)}catch(x){b.remove(J)}}};
_.m7=function(J){var c=hJQ(),m=(0,_.SF_)();if(!c&&!m||!window.JSON)return null;try{var b=c.get(J)}catch(x){}if(typeof b!=="string")try{b=m.get(J)}catch(x){}if(typeof b!=="string")return null;try{b=JSON.parse(b,void 0)}catch(x){}return b};
_.bU=function(J){try{var c=hJQ(),m=(0,_.SF_)();c&&c.remove(J);m&&m.remove(J)}catch(b){}};
_.SF_=_.IS(function(){try{var J=new n3t;var c=J.isAvailable()?J:null}catch(m){return null}return c?new _.my(c):null});
hJQ=_.IS(function(){var J=new TKm;return J.isAvailable()?new _.my(J):null});var PH=new _.oE("ENTITY_STATE_TOKEN"),xs=new _.oE("PERSISTENT_ENTITY_STORE_ACCESSOR_TOKEN");var d6L=XMLHttpRequest.prototype.fetch,$6$=d6L&&d6L.length===3?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!Q4?!0:!1;var Vw=function(J){this.JSC$11011_storeWithEntities=J};
_.D(Vw,Jg);_.V=Vw.prototype;_.V.getApiPaths=function(){return cg$};
_.V.getExtension=function(J){return _.L(J,_.Rz)||_.L(J,_.kb)||_.L(J,mwL)};
_.V.isNavigationCommand=function(){return!0};
_.V.JSC$11006_getStoreKey=function(J){if((_.w("kevlar_cache_on_ttl_player")||_.w("mweb_enable_shorts_innertube_player_prefetch")||_.w("mweb_use_new_history_manager")||_.w("web_shorts_prefetch_service_enabled"))&&(J=this.getExtension(J))&&J.videoId){var c={videoId:J.videoId};J.playlistId&&(c.playlistId=J.playlistId);J.playerParams&&(c.params=J.playerParams);return _.A0("player",c)}};
_.V.JSC$10999_getClientScreen=function(J){var c;return((c=J.contentPlaybackContext)==null?void 0:c.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.V.JSC$10999_buildRequest=function(J,c,m){if(_.w("enable_interstitial_entity_check")){var b=this.JSC$11011_storeWithEntities;if(c.videoId)for(var x=_.M(["CONTENT_CHECK_REQUIRED","AGE_CHECK_REQUIRED"]),P=x.next();!P.done;P=x.next()){P=P.value;var p;var t=void 0,I=void 0,a=c.videoId,k=P;(p=b)?(a=_.V_(a+k,"interstitialInteractionStateEntity"),p=(t=(I=_.P2(p.getState().entities,"interstitialInteractionStateEntity",a))==null?void 0:I.primaryButtonClicked)!=null?t:!1):p=!1;if(p)switch(P){case "CONTENT_CHECK_REQUIRED":c.contentCheckOk=
!0;break;case "AGE_CHECK_REQUIRED":c.racyCheckOk=!0}}}c.videoId&&(J.videoId=c.videoId);c.playlistId&&(J.playlistId=c.playlistId);c.index!==void 0&&(J.playlistIndex=c.index+1);c.playerParams&&(J.params=c.playerParams);"startTimeSeconds"in c&&c.startTimeSeconds&&(_.w("enable_player_request_builder_start_time_floor")?J.startTimeSecs=Math.floor(c.startTimeSeconds):J.startTimeSecs=c.startTimeSeconds);m.contentPlaybackContext&&(J.playbackContext={contentPlaybackContext:m.contentPlaybackContext});m.prefetchPlaybackContext&&
(J.playbackContext=Object.assign({},J.playbackContext,{prefetchPlaybackContext:m.prefetchPlaybackContext}),J.context.request||(J.context.request={}),J.context.request.isPrefetch=!0);J.playbackContext||(J.playbackContext={});b=YF6();J.playbackContext.devicePlaybackCapabilities={supportsVp9Encoding:!!b,supportXhr:$6$};m.overrideMutedAtStart&&(J.overrideMutedAtStart=m.overrideMutedAtStart);J.racyCheckOk=!!c.racyCheckOk;J.contentCheckOk=!!c.contentCheckOk;!_.w("captions_prefs_killswitch")&&(m=(m=_.m7("yt-player-caption-language-preferences"))?
m:[],m==null?0:m.length)&&(J.captionParams={viewerSelectedCaptionLangs:m})};
_.V.getRequestConfig=function(J){J=this.JSC$11006_getStoreKey(J);var c;J&&(c={storeStrategy:{storeKey:J}});_.w("web_log_player_watch_next_ticks")&&(c=c||{},c.requestTick="ps_s",c.responseTick="ps_r");return c};
Vw[RE]=[PH];var Pt=function(){};
_.D(Pt,Jg);_.V=Pt.prototype;_.V.getApiPaths=function(){return Z9j};
_.V.getExtension=function(J){return _.L(J,_.Rz)};
_.V.isNavigationCommand=function(){return!0};
_.V.JSC$11006_getStoreKey=function(J){if((J=this.getExtension(J))&&J.videoId){var c={videoId:J.videoId};J.playlistId&&(c.playlistId=J.playlistId);J.index&&(c.index=J.index);J.params&&(c.params=J.params);return _.A0("next",c)}};
_.V.JSC$10999_getClientScreen=function(J){var c;return((c=J.contentPlaybackContext)==null?void 0:c.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.V.JSC$10999_buildRequest=function(J,c,m){c.videoId&&(J.videoId=c.videoId);c.playlistId&&(J.playlistId=c.playlistId);c.params&&(J.params=c.params);c.index!==void 0&&(J.playlistIndex=c.index);J.racyCheckOk=!(!m.racyCheckOk&&!c.racyCheckOk);J.contentCheckOk=!!c.contentCheckOk;m.contentPlaybackContext&&(J.autonavState=m.contentPlaybackContext.autonavState,J.playbackContext={vis:m.contentPlaybackContext.vis,lactMilliseconds:m.contentPlaybackContext.lactMilliseconds});m.prefetchPlaybackContext&&(J.context.request||
(J.context.request={}),J.context.request.isPrefetch=!0);_.w("captions_hats_killswitch")||(c=_.HA().getFlag(65),c=c!=null?!c:!1,m=!!_.m7("yt-player-sticky-caption"),J.captionsRequested=c&&m)};
_.V.getRequestConfig=function(J){J=this.JSC$11006_getStoreKey(J);var c;J&&(c={storeStrategy:{storeKey:J}});_.w("web_log_player_watch_next_ticks")&&(c=c||{},c.requestTick="wn_s",c.responseTick="wn_r");return c};
var MH=function(){};
_.D(MH,Jg);MH.prototype.getApiPaths=function(){return Z9j};
MH.prototype.getExtension=function(J){return _.L(J,_.XG)};
MH.prototype.JSC$10999_buildRequest=function(J,c){c.token&&(J.continuation=c.token)};var p9=function(J,c){this.playerRequestBuilder=J;this.watchNextRequestBuilder=c};
_.D(p9,Jg);p9.prototype.getApiPaths=function(){return Rf2};
p9.prototype.getExtension=function(J){return _.L(J,_.Rz)};
p9.prototype.isNavigationCommand=function(){return!0};
p9.prototype.JSC$10999_buildRequest=function(J,c,m){J.playerRequest={};this.playerRequestBuilder.JSC$10999_buildRequest(J.playerRequest,c,m);_.w("web_streaming_watch")&&(J.watchNextRequest={},this.watchNextRequestBuilder.JSC$10999_buildRequest(J.watchNextRequest,c,m))};
p9[RE]=[Vw,Pt];var Gr_;_.NH=new _.oE("SHORTS_CONTROLLER_TOKEN");Gr_=new _.oE("SHORTS_STATE_STORE_TOKEN");var tg=function(J,c){var m=_.s$.apply(2,arguments);J=J===void 0?0:J;_.w3.call(this,c,m);this.errorType=J;Object.setPrototypeOf(this,this.constructor.prototype)};
_.D(tg,_.w3);var ETQ,vTB,At_,sXm,dx,Aju,eJ$,Q7Z,gT2,lXL,FB6;ETQ=new RegExp("jct sld rapt cid channel_creation_token force_ad_format ex_ads extra_kw".split(" ").map(function(J){return J+"="}).join("|"));
vTB=RegExp(".*\\?.*playnext=1.*");_.IT=function(J,c,m,b){this.watchEndpointMap=J;this.reelWatchEndpointMap=c;this.innerTubeTransportService=m;this.fetchPbj=b};
At_=function(J,c,m){var b=_.BG().resolve(_.y6(OuL));_.IT.instance=new _.IT(J,c,m,b)};
_.RJ2=function(J,c){var m=_.c7("web_pbj_log_warning_rate",0);m=m>0&&Math.random()<m;var b;if((b=_.L(c.commandMetadata,_.lk))==null||!b.rootVe)return m&&_.qz(Error("Qf")),!1;var x;b=(x=_.L(c.commandMetadata,_.lk))==null?void 0:x.url;if(!b)return m&&_.qz(Error("Rf")),!1;if(vTB.test(b))return!0;if(ETQ.test(b))return m&&_.qz(Error("Sf`"+b)),!1;if(_.L(c,_.Rz)){if(!(J.watchEndpointMap.watchNext&&J.watchEndpointMap.player||_.w("kevlar_fetch_initial_data_op_watch_client")))return m&&_.qz(Error("Jf")),!1;
J=_.c7("web_pbj_log_warning_rate",0);J=J>0&&Math.random()<J;_.L(c,_.Rz)?PHJ(c)?c=!0:(J&&_.qz(Error("Kf")),c=!1):(J&&_.qz(Error("Jf")),c=!1);return c}if(_.L(c,_.kb))return MJf(c);if(_.L(c,_.W3))return!0;J=_.hP(J.innerTubeTransportService,c);!J&&m&&_.Xc(Error("Tf"),"WARNING",void 0,void 0,void 0,{command:JSON.stringify(c)});return J};
sXm=function(J,c,m,b,x,P){c={url:c};if(m==null?0:m.itct)c.parentTrackingParams=m.itct;var p=_.oc(tFC);return _.W$(J.innerTubeTransportService,c,p).then(function(t){(t=t.endpoint)||(t=_.p$);(m==null?0:m.itct)&&t&&!t.trackingParams&&(t.trackingParams=m.itct);var I=Cv(t);return dx(J,t,m,b,I,x,P)})};
dx=function(J,c,m,b,x,P,p,t){t=t===void 0?{}:t;if(J.fetchPbj&&!_.RJ2(J,c)&&!_.w("force_one_platform")){t=J.fetchPbj(c);var I=_.ML(t.then(function(A){if(!A)throw Error("Uf");p(I)||P(c,A);return A}));
return I}var a,k,H={rootVe:(a=_.L(c.commandMetadata,_.lk))==null?void 0:a.rootVe,url:(k=_.L(c.commandMetadata,_.lk))==null?void 0:k.url,endpoint:c,page:x};if(_.L(c,_.Rz)){var T,r={contentPlaybackContext:_.nv(m,(T=_.L(c.commandMetadata,_.lk))==null?void 0:T.url,b)},W=_.$x();_.w("web_streaming_watch")&&window.TextDecoderStream?(t=oTQ(J.innerTubeTransportService,c,r,function(A){!H.response&&A.content&&(H.response=A.content);!H.playerResponse&&A.player&&(H.playerResponse=A.player);P(c,H)}),a=cET(c),a.length&&
(H.preconnect=a,P(c,H)),Q7Z(t,W,H).catch(function(A){A instanceof tg&&A.errorType===2&&eJ$(J,c,r,H,P,p,W)})):eJ$(J,c,r,H,P,p,W);
return W.promise}if(_.L(c,_.kb)){var Y;if(((Y=_.L(c,_.kb))==null?void 0:Y.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var Z=_.$x();_.j7Q(_.BG().resolve(_.NH),c).then(function(A){FB6(J,m,b,x,P,Z,A)});
return Z.promise}t=_.ML();var d;a={contentPlaybackContext:_.nv(m,(d=_.L(c.commandMetadata,_.lk))==null?void 0:d.url,b)};(d=J.reelWatchEndpointMap.player)&&(d=d().JSC$10999_getRequest(c,a))&&(t=_.W$(J.innerTubeTransportService,d.innerTubeRequest,d.input,c.clickTrackingParams,d.config));d=_.ML();(k=J.reelWatchEndpointMap.reelItemWatch)&&(k=k().JSC$10999_getRequest(c))&&(d=_.W$(J.innerTubeTransportService,k.innerTubeRequest,k.input,c.clickTrackingParams,k.config));k=_.ML();(T=J.reelWatchEndpointMap.reelWatchSequence)&&
_.L(c,_.kb).sequenceParams&&(a=T().JSC$10999_getRequest(c,a))&&(k=_.W$(J.innerTubeTransportService,a.innerTubeRequest,a.input,c.clickTrackingParams,a.config));a=_.ML(H);T=_.$x();lXL(c,a,t,d,k,P,p,T);return T.promise}var G;if(_.L(c,m7R)&&((G=_.L(c.commandMetadata,_.lk))==null?0:G.url))return t=Hoo(_.O7(uK().location.href),_.O7(_.L(c.commandMetadata,_.lk).url)).toString(),sXm(J,t,m,b,P,function(){return!1});
if(_.L(c,_.W3))return P(c,H),_.ML(H);if(_.hP(J.innerTubeTransportService,c)){t=Object.assign({},{tempData:m,disableCache:m.disableCache},t);var e=_.ds(J.innerTubeTransportService,c,t).then(function(A){H.response=A;p(e)||P(c,H);return H});
return e}return _.ML(H)};
_.BWQ=function(J,c,m,b){if(_.L(c,_.Rz)||_.L(c,_.kb)&&(_.w("mweb_enable_shorts_innertube_player_prefetch")||_.w("kevlar_enable_shorts_prefetch_in_sequence"))||_.L(c,mwL)&&_.w("web_enable_prefetching_videos_on_home")){var x,P={contentPlaybackContext:_.nv(m,(x=_.L(c.commandMetadata,_.lk))==null?void 0:x.url,b),prefetchPlaybackContext:IoD(m)},p,t,I;if(((p=_.L(c,_.Rz))==null?void 0:(t=p.watchEndpointSupportedPrefetchConfig)==null?void 0:(I=t.prefetchHintConfig)==null?void 0:I.prefetchType)==="PREFETCH_TYPE_WATCH_NEXT"){if(m=
J.watchEndpointMap.watchNext)if(P=m().JSC$10999_getRequest(c,P))return Promise.resolve(_.W$(J.innerTubeTransportService,P.innerTubeRequest,P.input,void 0,P.config).then(function(H){return H}))}else if(_.L(c,_.kb)&&_.w("web_prefetch_riw_for_next_video")){if(m=J.reelWatchEndpointMap.reelItemWatch)if((m=m().JSC$10999_getRequest(c,P))&&_.W$(J.innerTubeTransportService,m.innerTubeRequest,m.input,void 0,m.config).then(function(H){return H}),m=J.reelWatchEndpointMap.player)if(P=m().JSC$10999_getRequest(c,
P))return Promise.resolve(_.W$(J.innerTubeTransportService,P.innerTubeRequest,P.input,void 0,P.config).then(function(H){return H}))}else if(m=J.watchEndpointMap.player)if(P=m().JSC$10999_getRequest(c,P))return Promise.resolve(_.W$(J.innerTubeTransportService,P.innerTubeRequest,P.input,void 0,P.config).then(function(H){return H}))}else if(_.hP(J.innerTubeTransportService,c)){var a={tempData:m},k=yt$(J.innerTubeTransportService,c);
return k?new Promise(function(H,T){var r,W;return _.N(function(Y){if(Y.nextAddress==1)return _.K(Y,k,2);if(Y.nextAddress!=4)return r=Y.yieldResult,r.JSC$11006_getStoreKey(c,a)?_.K(Y,_.ds(J.innerTubeTransportService,c,a),4):(T(new _.w3("Prefetching request builder with no store key.",c)),Y.jumpTo(0));W=Y.yieldResult;H(W);_.tD(Y)})}):Promise.reject(new _.w3("Prefetching unregistered request builder.",c))}return Promise.reject(new _.w3("No request builder available to prefetch endpoint.",c))};
Aju=function(J,c){var m,b,x;if(_.L(c,_.Rz)){var P=J.watchEndpointMap.watchNext;P&&(m=P());(J=J.watchEndpointMap.player)&&(b=J())}else if(_.L(c,_.kb))(P=J.reelWatchEndpointMap.reelItemWatch)&&(m=P()),(P=J.reelWatchEndpointMap.player)&&(b=P()),(J=J.reelWatchEndpointMap.reelWatchSequence)&&(x=J());else{a:{J=BA2(c,J.innerTubeTransportService.endpointMap);if(J!==void 0)if(typeof J.then==="function")_.Xc(new _.w3("Attempted to get deferred RequestBuilder that is unresolved or still wrapped.",c));else break a;
J=void 0}J&&(m=J)}var p,t,I;return{content:(p=m)==null?void 0:p.JSC$11006_getStoreKey(c),player:(t=b)==null?void 0:t.JSC$11006_getStoreKey(c),reelSequence:(I=x)==null?void 0:I.JSC$11006_getStoreKey(c)}};
eJ$=function(J,c,m,b,x,P,p){var t=_.ML(),I=J.watchEndpointMap.player;_.w("web_streaming_player")&&(I=iq(p9));I&&(I=I().JSC$10999_getRequest(c,m))&&(t=_.W$(J.innerTubeTransportService,I.innerTubeRequest,I.input,c.clickTrackingParams,I.config));I=_.ML();var a=J.watchEndpointMap.watchNext;a&&(m=a().JSC$10999_getRequest(c,m))&&(I=_.W$(J.innerTubeTransportService,m.innerTubeRequest,m.input,c.clickTrackingParams,m.config));J=_.ML(b);gT2(c,J,t,I,x,P,p)};
Q7Z=function(J,c,m){return _.N(function(b){if(b.nextAddress==1)return _.K(b,J,2);c.resolve(m);_.tD(b)})};
gT2=function(J,c,m,b,x,P,p){var t,I,a,k,H;_.N(function(T){switch(T.nextAddress){case 1:return _.K(T,c,2);case 2:t=T.yieldResult;if(P(p.promise))return p.resolve(t),T.return();x(J,t);I=cET(J);if(!I.length){T.jumpTo(3);break}return _.K(T,c,4);case 4:t.preconnect=I,x(J,t);case 3:return _.xL(T,5),_.K(T,m,7);case 7:a=T.yieldResult;_.EO(T,6);break;case 5:return k=_.NM(T),p.reject(k),T.return();case 6:if(a===void 0)return t.reload=!0,x(J,t),p.resolve(t),T.return();if(P(p.promise))return p.resolve(t),T.return();
t.playerResponse=a;x(J,t);_.xL(T,8);return _.K(T,b,10);case 10:H=T.yieldResult;_.EO(T,9);break;case 8:_.NM(T);case 9:if(H===void 0)return t.response={responseContext:{}},p.resolve(t),T.return();if(P(p.promise))return p.resolve(t),T.return();t.response=H;x(J,t);p.resolve(t);_.tD(T)}})};
lXL=function(J,c,m,b,x,P,p,t){var I,a,k,H,T,r;_.N(function(W){switch(W.nextAddress){case 1:return _.K(W,c,2);case 2:I=W.yieldResult;if(p(t.promise))return t.resolve(I),W.return();P(J,I);a=cET(J);if(!a.length){W.jumpTo(3);break}return _.K(W,c,4);case 4:I.preconnect=a,P(J,I);case 3:return _.xL(W,5),_.K(W,m,7);case 7:k=W.yieldResult;_.EO(W,6);break;case 5:return H=_.NM(W),t.reject(H),W.return();case 6:if(k===void 0)return I.reload=!0,P(J,I),t.resolve(I),W.return();if(p(t.promise))return t.resolve(I),
W.return();I.playerResponse=k;P(J,I);_.xL(W,8);return _.K(W,b,10);case 10:T=W.yieldResult;_.EO(W,9);break;case 8:_.NM(W);case 9:if(T===void 0)return I.response={responseContext:{}},t.resolve(I),W.return();if(p(t.promise))return t.resolve(I),W.return();I.response=T;P(J,I);_.xL(W,11);return _.K(W,x,13);case 13:r=W.yieldResult;_.EO(W,12);break;case 11:_.NM(W);case 12:if(p(t.promise))return t.resolve(I),W.return();I.reelWatchSequenceResponse=r;P(J,I);t.resolve(I);_.tD(W)}})};
FB6=function(J,c,m,b,x,P,p){var t,I,a,k,H,T;_.N(function(r){if((t=p)==null||!t.replacementEndpoint)return P.reject(),r.return();I=p.replacementEndpoint;(a=_.L(I,_.kb))?(p.sequenceContinuation&&(a.sequenceParams=p.sequenceContinuation),k=_.BG().resolve(_.NH),H=a.sequenceParams,J2a(k,I)&&delete a.sequenceParams,T=dx(J,I,c,m,b,x,function(){return!1}),T.then(function(W){return _.N(function(Y){if(Y.nextAddress==1)return c26(k,{reelWatchEndpoint:{sequenceParams:H}},W),_.K(Y,0,2);
P.resolve(W);_.tD(Y)})})):P.reject();
_.tD(r)})};_.m9C=function(J){if(J.validatedFragments_.length==0)return null;if(!J.mergedPrefetchedData_){for(var c=[],m=_.M(J.validatedFragments_),b=m.next();!b.done;b=m.next()){b=_.M(J.fragmentConfiguration_[b.value].graftedKeys);for(var x=b.next();!x.done;x=b.next())(x=J.prefetchedData_[x.value].trackingParams)&&c.push(x)}J.mergedPrefetchedData_={};Object.assign(J.mergedPrefetchedData_,J.prefetchedData_,{clientSideGrafts:c})}return J.mergedPrefetchedData_};var bi6;_.K9=function(){this.prefetchCache_=new Map;this.pendingPrefetchJob_=null};
bi6=function(J,c,m){if(_.x7G(c))return J.prefetchCache_.get(_.VJf(c,m))};_.C9=new _.oE("NAVIGATION_TOKEN");var x9Q=function(J){var c=this;var m=m===void 0?rsm():m;var b=b===void 0?_.BG().resolve(_.C9):b;this.onePickCommand=J;this.JSC$11109_playlistNetworkManager=m;this.navigationManager=b;this.videoPickerBuilder=_.TdJ("yt-addtoplaylist");_.Xaj(sPZ(Lv_(ra6(this.videoPickerBuilder.setTitle(J.modalTitle).setSize(1E3).addView(zeC()).addView(W5_())).addView("youtube"),J.selectButtonLabel)),function(x){c.handleAction(x)})};
x9Q.prototype.show=function(){this.videoPickerBuilder.build().setVisible(!0)};
x9Q.prototype.handleAction=function(J){var c=this;if(J&&this.onePickCommand.listId&&J.action==="picked"&&J.docs){var m=[];J.docs.forEach(function(b){m.push({addedVideoId:b.id,action:"ACTION_ADD_VIDEO"})});
this.JSC$11109_playlistNetworkManager.updatePlaylist(this.onePickCommand.listId,m).then(function(){_.w("playlist_add_video_hard_reload_killswitch")?c.navigationManager.reload():V7j(c.navigationManager)})}};var PF$=function(){if(this.constructor===PF$)throw new TypeError("Vf");};
_.V=PF$.prototype;_.V.dispose=function(){};
_.V.disconnect=function(){};
_.V.reconnect=function(){};
_.V.observe=function(J,c,m){return{element:J,option:m}};
_.V.unobserveByKey=function(){};var svt=function(J,c){c=c===void 0?0:c;PF$.call(this);this.viewroot=J;this.defaultPrescanHeight=c;this.isConnected=!0;this.pauseObservingUntilReconnect=!1;this.observer=new IntersectionObserver(this.handleObserveEvent.bind(this),J?{root:J,rootMargin:"-0.1px"}:{rootMargin:"-0.1px"});this.prescanObservers=new Map;this.handlers=new Map};
_.D(svt,PF$);_.V=svt.prototype;_.V.dispose=function(){this.disconnect();this.handlers.clear()};
_.V.disconnect=function(J){this.isConnected=!1;this.pauseObservingUntilReconnect=J===void 0?!1:J;this.observer.disconnect();J=_.M(this.prescanObservers.values());for(var c=J.next();!c.done;c=J.next())c.value.disconnect()};
_.V.reconnect=function(){if(!this.isConnected){this.isConnected=!0;this.pauseObservingUntilReconnect=!1;for(var J=_.M(this.handlers),c=J.next();!c.done;c=J.next()){var m=_.M(c.value);c=m.next().value;var b=m.next().value;m=!1;b=_.M(b.keys());for(var x=b.next();!x.done;x=b.next())if((x=x.value)&&x.state==="prescan"){m=!0;break}m&&M7Q(this,c).observe(c);this.observer.observe(c)}}};
_.V.handleObserveEvent=function(J){J=_.M(J);for(var c=J.next();!c.done;c=J.next()){c=c.value;var m=this.handlers.get(c.target);if(m){var b=c.isIntersecting;m=_.M(m);for(var x=m.next();!x.done;x=m.next()){var P=_.M(x.value);x=P.next().value;P=P.next().value;x&&(x.state==="visible"&&b||x.state==="hidden"&&!b)&&(P(c.target,x.state),x.calledOnce&&this.unobserveByKey({element:c.target,option:x}))}}}};
_.V.handlePrescanEvent=function(J){J=_.M(J);for(var c=J.next();!c.done;c=J.next()){c=c.value;var m=this.handlers.get(c.target);if(m&&c.isIntersecting){m=_.M(m);for(var b=m.next();!b.done;b=m.next()){var x=_.M(b.value);b=x.next().value;x=x.next().value;b&&b.state==="prescan"&&(x(c.target,b.state),b.calledOnce&&this.unobserveByKey({element:c.target,option:b}))}}}};
_.V.observe=function(J,c,m){var b=(b=this.handlers.get(J))&&b.has(m)?{element:J,option:m}:void 0;if(b)return b;b={element:J,option:m};this.handlers.has(J)||this.handlers.set(J,new Map);var x=this.handlers.get(J);x&&!x.has(m)&&x.set(m,c);this.pauseObservingUntilReconnect||(m.state==="prescan"&&M7Q(this,J).observe(J),this.observer.observe(J));return b};
_.V.unobserveByKey=function(J){var c=this.handlers.get(J.element);if(c&&c.has(J.option)){c.delete(J.option);if(J&&J.option.state==="prescan")for(var m=_.M(this.prescanObservers.values()),b=m.next();!b.done;b=m.next())b.value.unobserve(J.element);c.size===0&&(this.handlers.delete(J.element),this.observer.unobserve(J.element))}};
var M7Q=function(J,c){var m=J.defaultPrescanHeight;c.hasAttribute("prescan-height")&&(c=Number(c.getAttribute("prescan-height")),isNaN(c)||(m=c));if(J.prescanObservers.has(m))return J.prescanObservers.get(m);c="-0.1px -0.1px "+m+"px -0.1px";c=new IntersectionObserver(J.handlePrescanEvent.bind(J),J.viewroot?{root:J.viewroot,rootMargin:c}:{rootMargin:c});J.prescanObservers.set(m,c);return c};var pW_=["browse-video-menu-button","unified-verified-badge","topbar-guide-menu"],N1z=function(){var J,c=this;this.JSC$11126_actionRouter=J=J===void 0?_.vO.getInstance():J;this.targetMap=new Map;this.targetedElements=new WeakMap;this.triggeredTargets=new Set;this.TEST_ONLY={getVisibilityObserver:function(){return c.visibilityObserver},
getVisibilityObservedElementHandlerKeys:function(){return c.visibilityObservedElementHandlerKeys}}},t7j,KtC,kM_;
N1z.prototype.initVisibilityObserver=function(){!this.visibilityObserver&&_.w("kevlar_use_vimio_behavior")&&_.Ub("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&(this.visibilityObserver=LXT())};
N1z.prototype.dispose=function(){this.visibilityMonitor&&_.Is(this.visibilityMonitor,"yt-visibility-monitor-refreshed",this.handleVisibilityRefreshed,!1,this);this.visibilityObserver&&this.visibilityObserver.dispose()};
N1z.prototype.handleVisibilityRefreshed=function(){for(var J=_.M(this.targetMap.entries()),c=J.next();!c.done;c=J.next()){var m=_.M(c.value);c=m.next().value;m=m.next().value;_.INj(this,c,m)}};
_.aNB=function(J,c,m){KtC(J,m);var b=_.CFB(J,c);b.element=m;J.targetedElements.set(m,c);_.INj(J,c,b)};
KtC=function(J,c){var m=J.targetedElements.get(c);if(m){var b=J.targetMap.get(m);b&&(delete b.element,J.targetMap.set(m,b));J.targetedElements.delete(c);J.visibilityObserver&&J.visibilityObservedElementHandlerKeys&&(m=J.visibilityObservedElementHandlerKeys.get(c))&&(J.visibilityObserver.unobserveByKey(m),J.visibilityObservedElementHandlerKeys.delete(c))}};
_.INj=function(J,c,m){var b=m.action,x=m.element;x&&b&&(pW_.includes(c)||_.Ub("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||J.visibilityMonitor&&J.visibilityMonitor.isNodeVisible(x)?kM_(J,c,m):J.visibilityObserver&&(J.visibilityObservedElementHandlerKeys||(J.visibilityObservedElementHandlerKeys=new WeakMap),b=J.visibilityObserver.observe(x,function(){kM_(J,c,m);J.visibilityObservedElementHandlerKeys.delete(x)},{calledOnce:!0,
state:"visible"}),J.visibilityObservedElementHandlerKeys.set(x,b)))};
kM_=function(J,c,m){var b=m.action;(m=m.element)&&b&&(_.WE(J.JSC$11126_actionRouter,[b],m),J.targetMap.delete(c),J.targetedElements.delete(m),J.triggeredTargets.add(c))};
_.CFB=function(J,c){var m=J.targetMap.get(c);m||(m={},J.targetMap.set(c,m));return m};
_.aT=function(){t7j||(t7j=new N1z);return t7j};var Hia=document.createElement("div");Hia.style.touchAction="pan-down";var D7f=Hia.style.touchAction==="pan-down";var iiC,nJ8;iiC=function(){this.hammerFn=isB();this.JSC$11134_screenManager=_.C7();this.lastPinchTime=NaN;this.nodeManagerMapping=new Map;this.ve=_.rs(83615);_.c$(this.JSC$11134_screenManager,this.ve);WXe()};
_.ks=function(){nJ8||(nJ8=new iiC);return nJ8};
iiC.prototype.registerTouchEvents=function(J,c,m){var b=_.s$.apply(3,arguments),x=this.hammerFn(J,{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}]]});m&&x.set({touchAction:m});this.nodeManagerMapping.set(J,x);var P=
z0f(c);b=_.M(b);for(var p=b.next();!p.done;p=b.next()){p=p.value;if(p.includes("swipe")||p.includes("pinch")||p.includes("pan"))p.includes("swipe")?x.get("swipe").set({enable:!0,direction:P,velocity:.2}):p.includes("pinch")?x.get("pinch").set({enable:!0}):p.includes("pan")&&(x.get("pan").set({enable:!0,direction:P}),x.get("swipe").set({enable:!0,direction:P,velocity:.2}),x.get("swipe").recognizeWith("pan"));T1B(this,J,x,p)}};
var T1B=function(J,c,m,b){m.on(b,function(x){if(b.includes("pinch"))J.lastPinchTime=Date.now();else if(b.includes("swipe")&&Date.now()-J.lastPinchTime<400)return;x.pointerType!=="mouse"&&(x=b==="doubletap"?{coordinates:x.center}:b.includes("pan")?x:b.includes("swipe")?{target:x.target}:{},c.dispatchEvent(new CustomEvent(b,{bubbles:!0,composed:!0,detail:x})))})};
iiC.prototype.unregisterTouchEvents=function(J){var c=_.s$.apply(1,arguments),m=this.nodeManagerMapping.get(J);if(m){c=_.M(c);for(var b=c.next();!b.done;b=c.next())m.off(b.value);this.nodeManagerMapping.delete(J);J.style.touchAction="unset"}};var wWQ=window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches;var uhe=null;var r2C=function(){this.networkEvents=[];this.index=Math.floor(Math.random()*1E5)},Qvq=function(){r2C.instance||(r2C.instance=new r2C);
return r2C.instance},e0R=function(J){var c=J.networkEvents;
J.networkEvents=[];return _.w("enable_network_monitoring")?c:[]};var sC$;sC$={};_.Lta=lj("yt-serviceworker-metadata",{objectStores:(sC$.auth={addedAtVersion:1},sC$["resource-manifest-assets"]={addedAtVersion:2},sC$),shared:!0,upgrade:function(J,c){c(1)&&hU(J,"resource-manifest-assets");c(2)&&hU(J,"auth")},
version:2});var U7o=self.location.origin+"/";S0m([/\.css$/,/\.js$/,/\.ico$/,/\/ytmweb\/_\/js\//,/\/ytmweb\/_\/ss\//,/\/kabuki\/_\/js\//,/\/kabuki\/_\/ss\//,/\/ytmainappweb\/_\/js\//,/\/ytmainappweb\/_\/ss\//,/\/ytmusicweb\/_\/js\//,/\/ytmusicweb\/_\/ss\//,/\/music_integrations\/_\/js\//,/\/music_integrations\/_\/ss\//]);S0m([/purge_shell=1/]);var D9a=void 0;D9a=D9a===void 0?[]:D9a;for(var WtL=[],zW_=_.M(Pj6),uoB=zW_.next();!uoB.done;uoB=zW_.next())WtL.push({key:uoB.value});for(var fNZ=_.M(D9a),Y8Z=fNZ.next();!Y8Z.done;Y8Z=fNZ.next())WtL.push(Y8Z.value);var XWQ,uq=_.mo==null?void 0:(XWQ=_.mo.performance)==null?void 0:XWQ.memory,$7f=!1,jvu={},vqG={},fv={},Yb=navigator;var Ht=function(J){this.JSC$11178_expiringStorage=new sO(J)};
Ht.prototype.set=function(J,c,m){m=m!==void 0?Date.now()+m:void 0;this.JSC$11178_expiringStorage.set(J,c,m)};
Ht.prototype.get=function(J){return this.JSC$11178_expiringStorage.get(J)};
Ht.prototype.remove=function(J){this.JSC$11178_expiringStorage.remove(J)};var mGr=_.Oo(["https://www.youtube.com/",""]),bYT=_.Oo(["https://studio.youtube.com/",""]),pXT="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN",VOT=null,Cum;var ZiC=_.Oo(["https://www.youtube.com/iframe_api"]),iU=function(){this.playerResolver_=_.$x();this.playerPromise_=this.playerResolver_.promise;this.playerVars_=null;this.playbackEndedCallback_=_.tF;this.playbackDurationSeconds_=0},q82=function(J){var c=function(){return window.YT&&typeof window.YT.ready==="function"};
if(c())return _.ML(window.YT);var m=_.$x(),b=_.id("SCRIPT");b.onload=b.onreadystatechange=function(){b.readyState&&b.readyState!="loaded"&&b.readyState!="complete"||(b.onload=_.tF,b.onreadystatechange=_.tF,b.onerror=_.tF,c()?m.resolve(window.YT):m.reject(new _.w3("Failed to load the iframe player library","script.onload",b.readyState,typeof window.YT,window.YT?typeof window.YT.ready:"YT.ready() missing",window.yt?typeof window.yt.ready:"yt.ready() missing")))};
b.onerror=function(x){b.onload=_.tF;b.onreadystatechange=_.tF;b.onerror=_.tF;m.reject(new _.w3("Failed to load the iframe player library","script.onerror",x&&x.target&&x.target.src))};
_.$h(b,_.cm(ZiC));J.insertBefore(b,J.firstChild);return m.promise},U9j=function(J,c,m){var b,x;
_.N(function(P){switch(P.nextAddress){case 1:return J.playbackEndedCallback_=m,_.xL(P,2),_.K(P,q82(c.parentElement||null),4);case 4:b=P.yieldResult;_.EO(P,3);break;case 2:return x=_.NM(P),x instanceof _.w3&&x.args&&x.args[0]=="script.onerror"?_.qz(x):_.Xc(x),P.return();case 3:b.ready(function(){return new b.Player(c,{playerVars:{controls:0,enablejsapi:1,iv_load_policy:3,modestbranding:1,mute:1,rel:0,showinfo:0},events:{onReady:J.onPlayerReady_.bind(J),onStateChange:J.onPlayerStateChange_.bind(J),
onCueRangeExit:J.onCueRangeExit_.bind(J)}})}),_.tD(P)}})};
_.V=iU.prototype;_.V.getPlayerPromise=function(){return this.playerPromise_};
_.V.onPlayerReady_=function(J){this.playerResolver_.resolve(J.target)};
_.V.onPlayerStateChange_=function(J){if(J.data==YT.PlayerState.PLAYING){J=J.target;var c=J.getCurrentTime();J.addCueRange("playback",c,c+this.playbackDurationSeconds_)}};
_.V.onCueRangeExit_=function(J){J.data=="playback"&&(J.target.stopVideo(),this.playbackEndedCallback_())};
_.V.stopVideo=function(){this.playerPromise_.then(function(J){J.stopVideo()})};
var S8u=function(J){J.playerVars_&&J.playerPromise_.then(function(c){typeof c.cueVideoByPlayerVars!="function"?_.qz(new _.w3("vmh: player API not ready","cueVideoByPlayerVars",typeof c.cueVideoByPlayerVars)):c.cueVideoByPlayerVars(J.playerVars_)})};
iU.prototype.playVideo=function(){var J=this;this.playerVars_&&this.playerPromise_.then(function(c){typeof c.loadVideoByPlayerVars!="function"?(c=new _.w3("vmh: player API not ready","loadVideoByPlayerVars",typeof c.loadVideoByPlayerVars),_.Xc(c)):c.loadVideoByPlayerVars(J.playerVars_)})};
var hWz=function(J,c,m,b,x){c&&(m===void 0&&(m=0),b===void 0&&(b=0),J.playbackDurationSeconds_=b/1E3,J.playerVars_={adformat:"17_8",videoId:c,suggestedQuality:"hd720",startSeconds:m/1E3,player_params:x})};
iU.prototype.mute=function(){this.playerPromise_.then(function(J){J.mute()})};
iU.prototype.unMute=function(){this.playerPromise_.then(function(J){J.unMute()})};var d9Q=function(J,c){var m=h0();J||(J="unknown");c||(c="unknown");J="MAIN_APP_WEB_PAGE_TYPE_"+J.toUpperCase();J in JiB||(J="MAIN_APP_WEB_PAGE_TYPE_UNKNOWN");c="MAIN_APP_WEB_REQUEST_TYPE_"+c.toUpperCase();c in ci6||(c="MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN");_.N_(m,{mainAppWeb:{pageType:J,requestType:c,isShellLoad:_.Ss("IS_SHELL_LOAD",!1)}})},$9Q={start:function(){_.N_(GEt(),{mainAppWeb:_.$b()})},
success:function(){_.tm(GEt(),"SUCCESS")},
failure:function(){_.tm(GEt(),"FAILURE")},
cancelled:function(){_.tm(GEt(),"CANCELLED")}};var GMQ,EJ_,rHq;GMQ=_.Oo(["/sw.js"]);EJ_=_.Oo(["/sw.js?0"]);_.vJ2=_.cm(GMQ);rHq=_.cm(EJ_);var OiC=function(){var J=Error.apply(this,arguments);this.message=J.message;"stack"in J&&(this.stack=J.stack)};
_.D(OiC,Error);_.vj.prototype.load=function(J){this.megabloxUrl_=_.Ub("YPC_MB_URL");_.dK(this.megabloxUrl_,(0,_.Wa)(function(){J&&J()},this))};
_.exQ=function(J,c,m,b,x,P,p,t,I,a,k){_.LK2(I);J.load((0,_.Wa)(function(){try{var H=P?P:_.Ub("HL"),T=_.Ub("SESSION_INDEX");_.iCT("client",function(){i6$("59",{helpCenterPath:"/youtube",locale:H,window:window}).JSC$7986_loadChatSupport({authuser:String(T)})})}catch(r){throw Gh(10,k,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","GAPI_LOAD_ERROR"),x&&x(r),_.Xc(r),r;
}A2L(this,c,m,b,x,P,p,t,I,a,k)},J))};
_.vj.prototype.openFixFlowDialog=function(J,c,m,b){this.load((0,_.Wa)(function(){try{RWL(this,_.$y("payments.business.integration")).forWidget().fixInstrument().withEncryptedParameters(J).withIntegratorCallback(c).load(m,b)}catch(x){throw _.Xc(x),x;}},this))};
var RWL=function(J,c,m,b){var x=c.mashupMode.popup("buyFlowDivId").usingDraggableDialog().usingPreferredWidth(600);_.w("enable_window_constrained_buy_flow_dialog")&&(x=x.usingPopupStyle(_.$y("payments.business.integration").PopupStyle.WINDOW_CONSTRAINED));b&&(x=x.usingCloseCallback(b));c.bootstrap.fromPaymentsUrl(J.megabloxUrl_);J=c.bootstrap.asMashupMode(x);m=m?m:_.Ub("HL");J.usingGaiaIndex(_.Ub("SESSION_INDEX")).usingLocale(m).usingDefaultActivityStatusChangeHandler().usingBaseZIndex(2E9);_.w("enable_google_payments_buyflow_material2_style_web")?
J.usingStyle(":m2;pc=#444;ac=#065fd4"):J.usingStyle(":md;pc=#444;ac=#065fd4");return J},A2L=function(J,c,m,b,x,P,p,t,I,a,k){try{var H=_.$y("payments.business.integration");
if(!H)throw new OiC("payments.business.integration is undefined");var T=H.standaloneContextAuthId.forUserId(),r=t;_.w("enable_setting_app_inert_when_buy_flow_opens")&&(r=t?function(){WKm(!1);t()}:function(){WKm(!1)});
var W=RWL(J,H,P,r);p&&W.usingServerAnalyticsEventHandler(p);var Y=W.inStandaloneContext(T).buyFlow(function(Z){if(Z&&(!Z.integratorData||Z.integratorData===""||Z.error))if(Z.error!=null)if(String(Z.error)==="-1")_.DGo(I);else{var d=String(Z.error)==="132"?"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_LEGAL_ADDRESS_RESTRICTION_VIOLATION":"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE";Gh(10,k,d,Z.debugCode);_.ET(d,I,Z.debugCode);d=new _.w3("PAYMENT_ERROR_MESSAGE::"+Z.userVisibleErrorMessage,"PAYMENT_ERROR_DETAILS::"+
Z.internalErrorDetails);_.Xc(d)}else Gh(10,k,"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY","EMPTY_INTEGRATOR_DATA"),_.ET("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY",I,"EMPTY_INTEGRATOR_DATA"),_.Xc(Error("$f"));m&&(WKm(!1),m(Z))}).withEncryptedParameters(c);
a&&Y.withClientParameters(Utu(_.lzD(a)));Y.load(function(){Gh(24,k);_.Zu("ttc",void 0,"commerce_transaction");P4u("commerce_transaction");b&&(WKm(!0),b())},function(Z){if(Z==null?0:Z.debugCode)var d=Z==null?void 0:Z.debugCode;
else if(!Z||(Z==null?0:Z.debugCode))d="EMPTY_LOAD_FAILURE_ERROR",_.Xc(Error(d));else{d="EMPTY_LOAD_FAILURE_DEBUG_CODE";var G=new _.w3("LOAD_FAILURE:"+Z.message," DEBUG_CODE:"+d);_.Xc(G)}Gh(10,k,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE",d);_.ET("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",I,d);_.Xc(Z);x&&x(Z)})}catch(Z){throw Z instanceof OiC&&(Gh(10,k,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","ERROR_BEFORE_BUY_FLOW_LOAD"),x&&x(Z)),_.Xc(Z),Z;
}};var oJ6;oJ6=/^(?:https:)?\/\/[0-9a-z-.]+\.(google|youtube)\.com\//;_.RxJ=function(J,c){c=c===void 0?!1:c;J=oJ6.test(J)?_.p1(J):null;!c&&window.payments||!J?(J=_.$x(),c=J.promise,J.resolve()):c=_.sZ(J,{attributes:{"data-payments-main":"",id:"payment-lib"}});return c};var QCu;QCu=_.Oo(["//www.googletagmanager.com/gtm.js?id=",""]);_.n9=function(J,c){_.FG(document,"gtm")||(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"user_consent",country_code:c}),window.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js",geo:_.Ub("GL")}),c=_.id("SCRIPT"),c.async=!0,_.$h(c,_.cm(QCu,J)),c.id="gtm",J=document.getElementsByTagName("script"),J.length==0?document.head.appendChild(c):(J=J[0],J.parentNode.insertBefore(c,J)))};
_.TK=function(J){if(J=JSON.parse(J))window.dataLayer=window.dataLayer||[],window.dataLayer.push(J)};var eWa,jC$;eWa=_.Oo(["https://clients2.google.com/gr/gr_sync.js"]);_.Ob3=function(){};
_.Ob3.prototype.init=function(){if(jC$()){var J=_.$x();J.resolve();return J.promise}return _.sZ(_.cm(eWa)).then(function(){if(!jC$())throw Error("ag");},function(){throw Error("bg");
})};
_.ApJ=function(){if(!jC$())return"";var J=window.google.gr;J.init({async:{schedule:"sync"},merchantId:"youtube"});J.start();J=J.finish();return J==null?"":J};
jC$=function(){return window.google!=null&&window.google.gr!=null};window.PolymerFakeBaseClassWithoutHtml=function(){};
_.h=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.D(_.h,PolymerFakeBaseClassWithoutHtml);_.Cs=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.D(_.Cs,PolymerFakeBaseClassWithoutHtml);var zcu=window.ShadyDOM;var M$r,V$J,NWe,t$D,KBu,CGD,wF,yS;M$r=_.w("enable_shadydom_free_scoped_query_methods");V$J=_.w("enable_shadydom_free_scoped_node_methods");NWe=_.w("enable_shadydom_free_scoped_readonly_properties_batch_one");t$D=_.w("enable_shadydom_free_parent_node");KBu=_.w("enable_shadydom_free_children");CGD=_.w("enable_shadydom_free_last_child");wF=window.ShadyDOM;_.xr=wF&&wF.noPatch&&wF.wrap?wF.wrap:wF?function(J){return wF.patch(J)}:function(J){return J};
yS=function(J){if(J instanceof ShadowRoot)this.host=(0,_.xr)(J.host),this.root=J;else if(J.$$){this.host=(0,_.xr)(J);var c;this.root=(c=J.root)!=null?c:this.host}else if(J.polymerController){this.host=(0,_.xr)(J);var m;this.root=(m=this.host.shadowRoot)!=null?m:this.host}else this.root=this.host=(0,_.xr)(J)};
PGQ();pTe();aXR();krr();IX3();var Ft$={querySelector:function(J,c){c=f5Q(c,o1(J));J=_.QS(J);return er(J).prototype.querySelector.call(J,c)},
querySelectorAll:function(J,c){c=f5Q(c,o1(J));J=_.QS(J);return er(J).prototype.querySelectorAll.call(J,c)}},lNC={appendChild:function(J,c){var m=o1(J),b=_.R1(c);
return _.buJ(_.QS(J),m?_.FB(c,m,b):c)},
cloneNode:function(J,c){var m=_.R1(J);J=_.QS(J);c=er(J).prototype.cloneNode.call(J,c);return m?lq(c,m):c},
contains:function(J,c){var m=o1(J),b=_.R1(c);return m!==b?!1:x6m(J,c)},
insertBefore:function(J,c,m){var b=o1(J),x=_.R1(c);J=_.QS(J);c=b?_.FB(c,b,x):c;return er(J).prototype.insertBefore.call(J,c,m)},
removeChild:function(J,c){var m=o1(J);J=_.QS(J);c=m?lq(c,m):c;return er(J).prototype.removeChild.call(J,c)},
replaceChild:function(J,c,m){var b=o1(J),x=_.R1(c);c=b?_.FB(c,b,x):x?lq(c,x):c;m=b?lq(m,b):m;J=_.QS(J);return er(J).prototype.replaceChild.call(J,c,m)},
getRootNode:function(J,c){c=c===void 0?{composed:!0}:c;var m;if(((m=c)!=null?m:{}).composed)J=ENQ(J);else{c=J;for(J=XXe(J);J;)c=J,J=qxe(J);J=c}return J}},iuD=NWe?{firstChild:yHT,
nextSibling:jMe,previousSibling:l52,firstElementChild:BOT,lastElementChild:JtJ,nextElementSibling:ecJ,previousElementSibling:FKR,childNodes:ctr}:{};t$D&&(iuD.parentNode=QM2);KBu&&(iuD.children=m6m);CGD&&(iuD.lastChild=gNT);M$r&&HuD(Ft$);V$J&&HuD(lNC);nTm();var TWt=function(J){this.node=J instanceof ShadowRoot?J.host:J};
wTQ();rt2();var D6Q=new WeakMap;var zJD=Symbol("vd");var ZuG=new Set(["tap","track","down","up"]),qFf=_.w("pbcm_fi_query_decorators");var rF=function(){return _.Cs.apply(this,arguments)||this};
_.D(rF,_.Cs);_.V=rF.prototype;_.V.getState=function(){return this.store.getState()};
_.V.dispatch=function(J){this.store.dispatch(J)};
_.V.beforeRegister=function(){if(this&&typeof this==="object"){var J;var c=!!this.useSignals||!((J=this.polymerController)==null||!J.useSignals)}else c=!1;if(!c&&this.properties)for(c=_.M(Object.keys(this.properties)),J=c.next();!J.done;J=c.next()){var m=J.value;J=this.properties[m];if(J.selector){if(J.computed)throw Error("hg");m=["reduxPropertiesRecomputeTrigger",'"'+m+'"'].concat(_.L6(J.selectorArgs||[])).join(",");J.computed="recomputeReduxSelector("+m+")"}}};
_.V.attached=function(){var J=this;this.reduxPropertiesRecomputeTrigger=0;this.activeStoreSubscription||(this.activeStoreSubscription=this.store.subscribe(function(){J.reduxPropertiesRecomputeTrigger++}));
_.w("redux_disable_update_on_attached_killswitch")&&this.reduxPropertiesRecomputeTrigger++};
_.V.detached=function(){this.activeStoreSubscription&&(this.activeStoreSubscription(),this.activeStoreSubscription=void 0)};
_.V.recomputeReduxSelector=function(J,c){var m=_.s$.apply(2,arguments),b=this.properties[c].selector;if(!b)throw Error("fg`"+c);return b.apply(null,[this.store.getState()].concat(_.L6(m)))};
_.V.select=function(J){var c=_.s$.apply(1,arguments);this.reduxPropertiesRecomputeTrigger;return J.apply(null,[this.store.getState()].concat(_.L6(c)))};
_.eE.Object.defineProperties(rF.prototype,{store:{configurable:!0,enumerable:!0,get:function(){throw Error("gg");}}});
rF.prototype.recomputeReduxSelector=rF.prototype.recomputeReduxSelector;_.O([_.U(),_.R("design:type",Number)],rF.prototype,"reduxPropertiesRecomputeTrigger",void 0);rF=_.O([_.au()],rF);var sW=[],d6T={},z1=function(){return F6.apply(this,arguments)||this};
_.D(z1,F6);z1.prototype._addPropertyEffect=function(J,c,m){if(c==="__observeEffects"&&m){var b,x=(b=m.info.method)!=null?b:m.info.methodName;if(x){var P=this[x];this[x]=function(){sW.push(x);try{P==null||P.apply(this,arguments)}finally{sW.pop()}}}}_.CH._addPropertyEffect.apply(this,[J,
c,m])};
z1.prototype._setPendingProperty=function(J,c,m){if(sW.length){var b=sW[sW.length-1],x;(x=d6T[this.is])!=null&&x.has(b)||($6e(this.is,b),_.zB("polymerPropertyChangedInObserver",{componentName:this.is,observerName:b}))}return _.CH._setPendingProperty.apply(this,[J,c,m])};
z1=_.O([Lmu()],z1);var Gr3=new Set(["allowedProps","_definePropertyAccessor","_setPendingProperty","_setUnmanagedPropertyToNode"]),vTr,iM={};_.w("polymer_property_access_logging_debug")&&(window.PROPERTY_ACCESS_MAP=iM);var wU=function(){return _.Cs.apply(this,arguments)||this};
_.D(wU,_.Cs);wU.prototype._setUnmanagedPropertyToNode=function(J,c,m){J.loggingStatus&&(J.loggingStatus.isDeclarativeExternal=!0);if(m!==J[c]||typeof m==="object")J[c]=m;J.is&&J.polymerController&&J.polymerController!==J&&ns(J.is,c,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");J.loggingStatus&&(J.loggingStatus.isDeclarativeExternal=!1)};
wU=_.O([_.au()],wU);ETJ()&&(SE.prototype._setUnmanagedPropertyToNode=(new wU)._setUnmanagedPropertyToNode);_.c22={YtHostElementBehavior:[{get hostElement(){return this},get polymerController(){return this},set hostElement(J){},set polymerController(J){}}]};var W9=function(){var J=F6.apply(this,arguments)||this;J.json=function(){};
return J};
_.D(W9,F6);W9.prototype.equals=function(J,c){return J===c};
W9.prototype.isEmpty=function(J){return!J||_.yJ(J)&&J.length===0};
W9=_.O([Lmu()],W9);var y2z=function(J){J=TCT(J);YU.call(this,J)};
_.D(y2z,YU);y2z.prototype.addProvider=function(J){J=J.key?J:TCT([J])[0];var c=this.keyIdToIndex.get(J.key.id);if(c){if(Q7t(J,this.providers[c]))throw Error("ig`"+J.key.displayName);}else YU.prototype.addProvider.call(this,J)};
var B1Z=new y2z([]);var gJ_=!1;var BWJ={};gJ_||(yte(),gJ_=!0);
BWJ.InjectBehavior={initializeInjection:function(){var J=this.provide;try{if((J=J!=null?J:[])&&J.length>0)for(var c=TCT(J),m=_.M(c),b=m.next();!b.done;b=m.next())B1Z.addProvider(b.value);var x=new Set;eJe(this.behaviors||[],x);c={};for(var P=_.M(x),p=P.next();!p.done;p=P.next()){var t=p.value;t.inject&&Object.assign(c,t.inject)}this.inject&&Object.assign(c,this.inject);for(var I=_.M(Object.keys(c)),a=I.next();!a.done;a=I.next()){var k=a.value,H=c[k];try{this[k]=B1Z.resolve(H)}catch(T){throw T;}}}catch(T){throw Error(T.message);
}}};var J2m;var m9Q=/\bclass\b/.test(function(){}.toString()),V7o=new Set("_noAccessors attached beforeRegister constructor created detached ready registered properties observers".split(" "));var JAa=function(J){this.wasDefined=!0;Array.isArray(J)||J instanceof Array?(this.JSC$11307_getImpl=J[0],this.JSC$11307_setImpl=J[1]):this.JSC$11307_getImpl=J};
_.V=JAa.prototype;_.V.getWithPath=function(J){return pWu(this.JSC$11307_getImpl(),J)};
_.V.setWithPath=function(J,c){var m=this;if(J.length)throw Error("jg");if(!this.JSC$11307_setImpl)throw Error("kg");TL(function(){m.JSC$11307_setImpl(c)})};
_.V.notifyPath=function(){throw Error("lg");};
_.V.notifySplices=function(){throw Error("mg");};
_.V.getChangeRecordSignal=function(J,c){var m=this;if(J.length)throw Error("ng");return function(){var b=m.getWithPath(J);return{path:c!=null?c:"",base:b,value:b}}};
_.V.getSplicesSignal=function(){throw Error("og");};
_.V.getPathMutationSignal=function(){throw Error("pg");};
_.V.pop=function(){throw Error("qg");};
_.V.push=function(){throw Error("rg");};
_.V.splice=function(){throw Error("sg");};
_.V.unshift=function(){throw Error("tg");};var L9=function(J){var c=this;this.observedPath={pathComponents:[],data:void 0,subPaths:{}};this.mutationIndex=0;Array.isArray(J)||J instanceof Array?(this.JSC$11312_getImpl=J[0],this.JSC$11312_setImpl=J[1]):this.JSC$11312_getImpl=J;this.wasDefined=!1;ID(function(){c.wasDefined=c.JSC$11312_getImpl()!==void 0})};
L9.prototype.getWithPath=function(J){return pWu(this.JSC$11312_getImpl(),J)};
L9.prototype.setWithPath=function(J,c){var m=this;if(J[J.length-1]!=="*"&&J[J.length-1]!=="splices"){if(J.length===0){if(!this.JSC$11312_setImpl)throw Error("ug");this.wasDefined||(this.wasDefined=c!==void 0);TL(function(){m.JSC$11312_setImpl(c)})}else{for(var b=ID(function(){return m.getWithPath([])}),x=0;x<J.length-1;x++){if(!b)return;
b=b[J[x]]}x=J[J.length-1];b&&(b[x]=c);this.wasDefined||(this.wasDefined=J.length>1||c!==void 0)}cA6(this,J,{pathComponents:J,value:c})}};
L9.prototype.notifyPath=function(J,c){J.length===0?c&&this.setWithPath(J,c.value):cA6(this,J,{pathComponents:J,value:c==null?void 0:c.value,fallbackWhenUndefined:c==null?void 0:c.value})};
var cA6=function(J,c,m,b){if(J.setMutationSignal){var x=++J.mutationIndex,P=[J.observedPath],p=J.observedPath,t;c.length===0&&(t=p);for(var I=0;I<c.length;I++){var a=p.subPaths[c[I]];if(!a)break;P.push(a);p=a;I===c.length-1&&(t=a)}for(c=!1;P.length;)p=P.shift(),p.data={index:x,mutation:m,spliceMutationIndex:b},c||(c=p===t),c&&P.push.apply(P,_.L6(Object.values(p.subPaths)));TL(function(){J.setMutationSignal(x)})}};
L9.prototype.notifySplices=function(J,c){var m=this,b=ID(function(){return m.getWithPath(J)}),x=[].concat(_.L6(J),["splices"]);
cA6(this,x,{pathComponents:x,value:{indexSplices:c}});if(b==null?0:b.length)c=this.mutationIndex,x=[].concat(_.L6(J),["length"]),cA6(this,x,{pathComponents:x,value:b.length},c)};
var mIz=function(J,c,m,b,x,P){J.notifySplices(m,[{index:b,addedCount:x,removed:P,object:c,type:"splice"}])},bSj=function(J,c){J=J.observedPath;
for(var m=0;m<c.length;m++){var b=c[m],x=J.subPaths[b];x||(x={pathComponents:c.slice(0,m+1),subPaths:{}},J.subPaths[b]=x);J=x}},Vy6=function(J,c,m){bSj(J,c);
if(!J.getMutationSignal){var b=_.M(_.K2(J.mutationIndex,void 0,"HavCgf"));J.getMutationSignal=b.next().value;J.setMutationSignal=b.next().value}var x=J.getMutationSignal;return _.n2(function(){x();return m(xIB(J,c))},void 0,"BYaPo")};
L9.prototype.getChangeRecordSignal=function(J,c){var m=this,b=this.mutationIndex,x;return Vy6(this,J,function(P){if(P&&P.index>b){var p=P.mutation;b=P.index;x=void 0}P=ID(function(){return m.getWithPath(J)});
if(p){var t=p.pathComponents[p.pathComponents.length-1],I=[].concat(_.L6(p.pathComponents));if(t==="splices"||t==="length")return{base:P,path:(c?[c].concat(_.L6(I)):I).join("."),value:p.value};var a=J.length>I.length?J:I,k;return{base:P!=null?P:p.fallbackWhenUndefined,path:(c?[c].concat(_.L6(a)):a).join("."),value:(k=ID(function(){return m.getWithPath(a)}))!=null?k:p.fallbackWhenUndefined}}x||(x={base:P,
path:(c?[c].concat(_.L6(J)):J).join("."),value:P});return x})};
L9.prototype.getSplicesSignal=function(J){var c=this.mutationIndex,m;return Vy6(this,J,function(b){if(b&&b.index>c&&b.spliceMutationIndex!==c){var x=b.mutation;c=b.index;m=void 0}return x&&x.pathComponents[x.pathComponents.length-1]==="splices"?m=b=x.value:m})};
L9.prototype.getPathMutationSignal=function(J){var c=this;bSj(this,J);if(!this.getMutationSignal){var m=_.M(_.K2(this.mutationIndex,void 0,"yZelVe"));this.getMutationSignal=m.next().value;this.setMutationSignal=m.next().value}var b=this.getMutationSignal,x=this.mutationIndex,P;return _.n2(function(){b();var p=xIB(c,J);if(p&&p.index>x&&p.mutation&&N1D(p.mutation.pathComponents,J)){var t=p.mutation;x=p.index}if(!P||x!==P.index){var I,a;p=(a=ID(function(){return c.getWithPath(J)}))!=null?a:(I=t)==null?
void 0:I.fallbackWhenUndefined;
P={index:x,value:p}}return P},void 0,"Aumsyf")};
var xIB=function(J,c){J=J.observedPath;c=_.M(c);for(var m=c.next();!m.done;m=c.next())J=J.subPaths[m.value];return J.data};
L9.prototype.pop=function(J){var c=this,m=ID(function(){return c.getWithPath(J)});
if(!(m instanceof Array))throw Error("vg");var b=m.length>0,x=m.pop();b&&mIz(this,m,J,m.length,0,[x]);return x};
L9.prototype.push=function(J){var c=_.s$.apply(1,arguments),m=this,b=ID(function(){return m.getWithPath(J)});
if(!(b instanceof Array))throw Error("wg");var x=b.length,P=b.push.apply(b,_.L6(c));c.length&&mIz(this,b,J,x,c.length,[]);return P};
L9.prototype.splice=function(J,c,m){var b=_.s$.apply(3,arguments),x=this,P=ID(function(){return x.getWithPath(J)});
if(!(P instanceof Array))throw Error("xg");c<0?c=P.length-Math.floor(-c):c&&(c=Math.floor(c));var p=P.splice.apply(P,[c,m].concat(_.L6(b)));(b.length||p.length)&&mIz(this,P,J,c,b.length,p);return p};
L9.prototype.unshift=function(J){var c=_.s$.apply(1,arguments),m=this,b=ID(function(){return m.getWithPath(J)});
if(!(b instanceof Array))throw Error("yg");var x=b.unshift.apply(b,_.L6(c));c.length&&mIz(this,b,J,0,c.length,[]);return x};var PEQ=!0,MyC=!1,oPJ=!1,pIZ=!1,DO=!1,N0j=0;pIZ=!1;N0j=0;PEQ=!0;DO=MyC=oPJ=!1;var Wt=function(J,c,m){this.model=J;this.unknownSignalResolver=c;this.options=m;this.signalCache={};this.isDisposed=!1;this.childSignalProxies=[];c=_.M(nJq());J=c.next().value;c=c.next().value;this.owner=J;this.disposeImpl=c};
Wt.prototype.dispose=function(){if(!this.isDisposed){for(var J=_.M(this.childSignalProxies),c=J.next();!c.done;c=J.next())c.value.dispose();this.disposeImpl();this.childSignalProxies=[];this.isDisposed=!0}};
var tyZ=function(J,c){J=_.Ba(J.owner);try{c()}finally{_.Ba(J)}};
Wt.prototype.effect=function(J){tyZ(this,function(){_.Z7(J)})};
var IqQ=function(J,c){J.options!=null||(J.options={});var m;(m=J.options).immutableProps!=null||(m.immutableProps=new Set);J.options.immutableProps.add(c)},RWT=function(J,c){c=""+c;
KaZ(J,c);var m,b;if((m=J.options)==null?0:(b=m.immutableProps)==null?0:b.has(c))return!0;var x;if((x=J.model.__signalCache)==null?0:x.has(c))m=J.model.__signalCache.get(c),Array.isArray(m)&&IqQ(J,c);var P,p,t;return(t=(P=J.options)==null?void 0:(p=P.immutableProps)==null?void 0:p.has(c))!=null?t:!1},CE_=function(J,c){var m;
J.unknownSignalResolver&&(m=J.unknownSignalResolver(c));var b,x;((b=J.options)==null?0:(x=b.immutableProps)==null?0:x.has(c))?m!=null||(m=new JAa(_.K2(J.model[c],void 0,"bgwlkd"))):m!=null||(m=new L9(_.K2(J.model[c],void 0,"V1hou")));var P=J.model.hostElement;Object.defineProperty(J.model,c,{get:function(){Atu(P,c);return m.getWithPath([])},
set:function(p){T1(P,c);J.setWithPath([c],p)},
configurable:!0});return m},KaZ=function(J,c){var m,b,x;
((m=J.model.__signalCache)==null||!m.has(c))&&((b=J.options)==null?0:(x=b.externalSignalProps)==null?0:x.has(c))&&J.model[c]},XF=function(J,c){c=""+c;
var m=J.signalCache[c];if(m!==void 0)return m;m=!1;KaZ(J,c);var b;if((b=J.model.__signalCache)==null?0:b.has(c))if(m=J.model.__signalCache.get(c),Array.isArray(m))m=!0,IqQ(J,c);else return J.signalCache[c]=J.model.__signalCache.get(c).signal,J.signalCache[c];var x,P;b=(P=(x=J.options)==null?void 0:x.reactivityMode)!=null?P:0;var p,t;if(!((p=J.options)==null?0:(t=p.reactiveProps)==null?0:t.has(c))&&!m&&b===1)throw Error("zg`"+c);x=m?aqZ(J,c):CE_(J,c);return J.signalCache[c]=x},aqZ=function(J,c){var m=
Object.getOwnPropertyDescriptor(J.model.constructor.prototype,c),b=function(){return J.model[c]};
return new JAa(m&&m.get&&!m.set?b:[b,function(x){J.model[c]=x}])};
Wt.prototype.getWithPath=function(J){var c=_.M(J);J=c.next().value;c=ej(c);Atu(this.model.hostElement,""+J);return XF(this,J).getWithPath(c)};
Wt.prototype.setWithPath=function(J,c){if(J.length){T1(this.model.hostElement,J.join("."));var m=_.M(J);J=m.next().value;m=ej(m);XF(this,J).setWithPath(m,c)}};
Wt.prototype.getPathMutationSignal=function(J){var c=_.M(J);J=c.next().value;c=ej(c);return XF(this,J).getPathMutationSignal(c)};
Wt.prototype.notifyPath=function(J,c){var m=_.M(J);J=m.next().value;m=ej(m);XF(this,J).notifyPath(m,c)};
var k5B=function(J,c){if(c.type==="literal")return function(){return{rootWasDefined:!0,value:c.value}};
var m=fs(c.path),b=_.M(m),x=b.next().value;b=ej(b);var P,p;if(c.type==="path"&&(m.length===1||((P=J.options)==null?0:(p=P.immutableProps)==null?0:p.has(x))))return function(){var H=J.getWithPath(m.slice(0,1)),T=pWu(H,m.slice(1));H=H!==void 0;DO&&(H=XF(J,m[0]).wasDefined);return{rootWasDefined:H,value:T}};
var t=XF(J,x);if(c.type==="path"){var I=t.getPathMutationSignal(b);return function(){var H=DO?t.wasDefined:qs(J.owner,function(){return t.getWithPath([])})!==void 0;
var T,r=(T=I())==null?void 0:T.value;return{rootWasDefined:H,value:r}}}if(c.type==="splices"){var a=t.getSplicesSignal(b);
return function(){var H=a();return{rootWasDefined:DO?t.wasDefined:H!==void 0,value:H}}}var k=t.getChangeRecordSignal(b,""+x);
return function(){var H=k();return{rootWasDefined:DO?t.wasDefined:H!==void 0,value:H}}},kMu=function(J,c,m){var b=m.map(function(t){return k5B(J,t)}),x=m.length===0,P=[],p=m.length!==1||m[0].type!=="path"?!1:!0;
J.effect(function(){for(var t=b.length,I=[],a=!!P.length,k=0;k<t;k++){var H=b[k](),T=H.rootWasDefined;H=H.value;x||(x=T);I[k]=H;p&&(I[k+t]=a?P[k]:I[k],P[k]=H)}x&&qs(J.owner,function(){return void c.apply(null,_.L6(I))})})},t7o=function(J,c,m,b,x){var P=XF(J,c);
x!==void 0&&P.setWithPath([],x);kMu(J,function(){var p=_.s$.apply(0,arguments);T1(J.model.hostElement,c,!0);P.setWithPath([],m.apply(null,_.L6(p)))},b)};
Wt.prototype.arrayPush=function(J){var c=_.s$.apply(1,arguments),m=_.M(J),b=m.next().value;m=ej(m);b=XF(this,b);return b.push.apply(b,[m].concat(_.L6(c)))};
Wt.prototype.arraySplice=function(J,c,m){var b=_.s$.apply(3,arguments),x=_.M(J),P=x.next().value;x=ej(x);P=XF(this,P);return P.splice.apply(P,[x,c,m].concat(_.L6(b)))};
Wt.prototype.arrayUnshift=function(J){var c=_.s$.apply(1,arguments),m=_.M(J),b=m.next().value;m=ej(m);b=XF(this,b);return b.unshift.apply(b,[m].concat(_.L6(c)))};
Wt.prototype.notifySplices=function(J,c){var m=_.M(J);J=m.next().value;m=ej(m);XF(this,J).notifySplices(m,c)};var D9m=/([^\s]+?)\(([\s\S]*)\)/,r2Q=/\.([^.]+)$/,zW3=/\\,/g,T1r=/&comma;/g,wWJ=/\\(.)/g,WtT=[],sCe={"*":"wildcard",splices:"splices"};var d9G=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"),q8R=/[A-Z]/,HS2=["class","hidden","id","on-dom-change"],GMG=new Set([].concat(_.L6(HS2),
["if","notify-dom-change","restamp"])),EJu=new Set([].concat(_.L6(HS2),"as index-as initial-count items items-index-as notify-dom-change target-framerate strip-whitespace".split(" "))),vJR=new Set(["restamp"]);var doD=new Set(["className","id"]);var QCf=Symbol(),gJ3=window;var MyQ=window;var aqt=0,tyt=0,Zh=[],CEu=0,N0o=!1,Kat=document.createTextNode("");(new window.MutationObserver(IqJ)).observe(Kat,{characterData:!0});var UB=new Map,qE=0,iS8=function(J){this.mappedHandleId=J},HSR=function(J,c,m,b){this.mappedHandleId=J;
var x=this;this.mappedHandleId=J;this.callback=c;this.waitTime=m;this.schedulerPriority=b;this.handleId=_.ft.addJob(function(){x.callback();UB.delete(x.mappedHandleId)},this.schedulerPriority||1,this.waitTime)};
_.D(HSR,iS8);HSR.prototype.cancel=function(){_.ft.cancelJob(this.handleId);UB.delete(this.mappedHandleId)};
var iSq=function(J,c){this.mappedHandleId=J;var m=this;this.mappedHandleId=J;this.callback=c;this.handleId=k5r(function(){m.callback();UB.delete(m.mappedHandleId)})};
_.D(iSq,iS8);iSq.prototype.cancel=function(){var J=this.handleId-tyt;J<0||Zh.length<=J||(Zh[J]=null);UB.delete(this.mappedHandleId)};var rAD=function(){};
rAD.prototype.cancel=function(){this.jobHandle!==void 0&&(nP2(this.jobHandle),this.jobHandle=void 0)};
rAD.prototype.run=function(J,c,m){var b=this;this.cancel();this.callback=J;this.jobHandle=_.S5(function(){J();b.callback=void 0},c,m)};
rAD.prototype.flush=function(){this.callback&&this.jobHandle!==void 0&&(this.cancel(),this.callback())};
var T02=new WeakMap;var nP6=vE(function(J){for(var c=J,m=0;m<3;m++)c=Object.getPrototypeOf(c);delete c.prototype.connectedCallback;var b=function(){return J.apply(this,arguments)||this};
_.D(b,J);b.prototype._attachDom=function(x){if(!x)return null;var P=(0,_.xr)(this.hostElement);P.attachShadow({mode:"open",shadyUpgradeFragment:x});P.shadowRoot.appendChild(x);return P.shadowRoot};
b.prototype._takeAttributes=function(){for(var x=this.hostElement.attributes,P=0;P<x.length;P++){var p=x[P],t=void 0,I=void 0;(I=(t=this).__attributeReaction)==null||I.call(t,p.name,null,p.value)}};
b.prototype._readyClients=function(){J.prototype._readyClients.call(this);this.root=this};
b.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this.hostElement);J.prototype.connectedCallback.call(this)};
_.eE.Object.defineProperties(b,{template:{configurable:!0,enumerable:!0,get:function(){return b.prototype._template}}});
return b}),T06=vE(function(J){var c=function(){return J.apply(this,arguments)||this};
_.D(c,J);c.prototype.created=function(){if(this.__notifyEffects)for(var m=_.M(Object.values(this.__notifyEffects)),b=m.next();!b.done;b=m.next()){b=_.M(b.value);for(var x=b.next();!x.done;x=b.next())x.value.fn=Wam}if(this.__reflectEffects)for(m=_.M(Object.values(this.__reflectEffects)),b=m.next();!b.done;b=m.next())for(b=_.M(b.value),x=b.next();!x.done;x=b.next())x.value.fn=znG};
c.prototype._addEventListenerToNode=function(m,b,x){m=dU(m);ua(m,b,x)||J.prototype._addEventListenerToNode.call(this,m,b,x)};
c.prototype._removeEventListenerFromNode=function(m,b,x){m=dU(m);fN(m,b,x)||J.prototype._removeEventListenerFromNode.call(this,m,b,x)};
c.prototype._propertiesChanged=function(m,b,x){if(this.__dataToNotify&&this.__notifyEffects)for(var P=_.M(Object.keys(this.__dataToNotify)),p=P.next();!p.done;p=P.next()){p=p.value;var t=DI3(p);this.__notifyEffects[t]||delete this.__dataToNotify[p]}else this.__dataToNotify=null;J.prototype._propertiesChanged.call(this,m,b,x)};
c.prototype.fire=function(m,b,x){b=b===void 0?{}:b;var P;return _.cA(dU((P=x==null?void 0:x.node)!=null?P:this),m,b,x)};
c.prototype._ensureAttribute=function(m,b){var x=dU(this);x.hasAttribute(m)||Yr(x,b,m)};
c.prototype.isLightDescendant=function(m){var b=dU(this);return dU(b)!==m&&_.Bj(b).contains(m)&&_.Bj(b).getRootNode()===_.Bj(m).getRootNode()};
return c});
_.CV.ready=function(){var J;((J=this.hostElement)!=null?J:this).addEventListener("focus",this._boundFocusBlurHandler,!0);var c;((c=this.hostElement)!=null?c:this).addEventListener("blur",this._boundFocusBlurHandler,!0)};
_.rI._subscribeIronResize=function(J){var c;((c=J.hostElement)!=null?c:J).addEventListener("iron-resize",this._boundOnDescendantIronResize)};
_.rI._unsubscribeIronResize=function(J){var c;((c=J.hostElement)!=null?c:J).removeEventListener("iron-resize",this._boundOnDescendantIronResize)};var Yfq=[Array,Boolean,Date,Number,Object,String],G1=function(J,c,m,b){this.polySiInfo=J;this.polySiParams=c;this.polySiContext=m;this.upgradeDisabled=this.isPolySiElementConnected=this.didCallReady=!1;this.mutablePropNames=new Set;this.reflecting=!1;b||this instanceof HTMLElement&&(b=this);if(!b)throw Error("Gg");this.allowedProps=c.allowedProps;this.hostElement=b;this.is=J.is;this.upgradeDisabled=!!c.legacyOptimizations&&this.hostElement.hasAttribute("disable-upgrade");J=new Set(c.reactiveSchemas.filter(function(x){return x.type!==
"observe"}).map(function(x){return x.propertyKey}));
this.signalProxy=new Wt(this,void 0,{reactiveProps:J,reactivityMode:c.reactivityMode});this.__dataHasAccessor={};c=_.M(c.reactiveSchemas);for(J=c.next();!J.done;J=c.next())J=J.value,J.type==="signal"&&(this.__dataHasAccessor[J.propertyKey]=!0);this.upgradeDisabled||wI_(this)};
G1.prototype.getExtraMethodsToForward=function(){return[]};
var wI_=function(J){J.polySiContext.didRegister||(J.registered(),J.polySiContext.didRegister=!0);J.polySiContext.finalizedTemplate||(J.polySiContext.finalizedTemplate={},J.polySiParams.templateGetter&&(J.polySiContext.finalizedTemplate.processedTemplate=pIt(J.polySiParams.templateGetter,J.polySiParams.is)));rAz(J);var c=J.hostElement;c.loggingStatus!=null||(c.loggingStatus={});c.loggingStatus.isInitializing=!0;ID(function(){return void J.created()});
c.loggingStatus.isInitializing=!1;J.isPolySiElementConnected&&sVB(J)},sVB=function(J){J.didCallReady||(ID(function(){return void J.ready()}),J.didCallReady=!0);
J.isAttached=!0;J.attached()};
_.V=G1.prototype;_.V.connectedCallback=function(){this.isPolySiElementConnected=!0;this.upgradeDisabled||sVB(this)};
_.V.disconnectedCallback=function(){this.isPolySiElementConnected=!1;this.upgradeDisabled||(this.isAttached=!1,this.detached())};
_.V.attributeChangedCallback=function(J,c,m){if(this.upgradeDisabled)J==="disable-upgrade"&&m===null&&(this.upgradeDisabled=!1,wI_(this));else if(c!==m){var b=_.Cl(J),x=this.polySiContext.typesForSignals[b];if(x&&(!this.reflecting||_.w("polysi_attribute_changed_serializing_killswitch"))){switch(x){case Object:try{var P=JSON.parse(m)}catch(t){P=m}break;case Array:try{P=JSON.parse(m)}catch(t){P=null}break;case Date:P=isNaN(m)?String(m):Number(m);P=new Date(P);break;case Boolean:P=m!==null;break;case Number:P=
Number(m);break;default:P=m}this[b]=P}b=_.M(this.polySiParams.behaviors);for(x=b.next();!x.done;x=b.next())P=void 0,(P=x.value.attributeChanged)==null||P.call(this,J,c,m);var p;(p=this.attributeChanged)==null||p.call(this,J,c,m)}};
_.V.attributeChangedCallbackWrapper=function(J,c,m){this.attributeChangedCallback(J,c,m)};
_.V.setPropertiesFromInitialAttributeValues=function(){for(var J=0;J<this.hostElement.attributes.length;J++){var c=this.hostElement.attributes[J];(c.name==="disable-upgrade"||this.polySiParams.observedAttributes.includes(c.name))&&this.attributeChangedCallback(c.name,null,c.value)}};
_.V.created=function(){this.provide=this.polySiParams.provide;var J;(J=this.initializeInjection)==null||J.call(this);J=_.M(this.polySiParams.reactiveSchemas);for(var c=J.next();!c.done;c=J.next())c=c.value,c.type==="signal"&&(this.mutablePropNames.add(c.propertyKey),XF(this.signalProxy,c.propertyKey));fqm(this,this.polySiInfo,this.polySiParams.behaviors);J=_.M(this.polySiParams.reactiveSchemas);for(c=J.next();!c.done;c=J.next())c=c.value,c.type==="signal"&&c.value!==void 0&&(this.signalProxy.model[c.propertyKey]=
typeof c.value==="function"?c.value.call(this):c.value);if(this.polySiParams.signalProperties)for(J=_.M(this.polySiParams.signalProperties),c=J.next();!c.done;c=J.next()){c=c.value;var m=void 0;((m=this.__signalCache)==null?0:m.has(c))||(this.signalProxy.model[c]=void 0)}pIZ||LaC(this);u92(this);J=_.M(this.polySiParams.behaviors);for(c=J.next();!c.done;c=J.next())m=void 0,(m=c.value.created)==null||m.call(this);var b;(b=this.polySiInfo.created)==null||b.call(this)};
_.V.registered=function(){var J=this;this.polySiParams.legacyOptimizations&&this.polySiContext.copyPropertiesToProto();var c=Object.getPrototypeOf(this);c.addReactiveSchema=function(t){J.polySiParams.reactiveSchemas.push(t)};
for(var m=_.M(this.polySiParams.behaviors),b=m.next();!b.done;b=m.next()){var x=void 0;(x=b.value.beforeRegister)==null||x.call(c)}var P;(P=this.polySiInfo.beforeRegister)==null||P.call(c);c.addReactiveSchema=ZSD;m=_.M(this.polySiParams.behaviors);for(b=m.next();!b.done;b=m.next())x=void 0,(x=b.value.registered)==null||x.call(c);var p;(p=this.polySiInfo.registered)==null||p.call(c)};
_.V.ready=function(){var J;(J=this.beforeReady)==null||J.call(this);pIZ&&LaC(this);var c;if(J=(c=this.polySiContext.finalizedTemplate)==null?void 0:c.processedTemplate){J=PEG(J.template,J.nodeInfoList,this.signalProxy,{eventListenerHost:this,hasInsertionPoint:J.hasInsertionPoint,thisCtx:this});c=J.nodesById;J=J.root;var m=this.hostElement;var b=b===void 0?!1:b;m=(0,_.xr)(m);if(!m.attachShadow)throw Error("Bd");if(!m.shadowRoot||b)m.attachShadow({mode:"open",shadyUpgradeFragment:J}),m.shadowRoot.appendChild(J);
this.root=m.shadowRoot;this.$=c}DI_(this);b=_.M(this.polySiParams.behaviors);for(c=b.next();!c.done;c=b.next())J=void 0,(J=c.value.ready)==null||J.call(this);var x;(x=this.polySiInfo.ready)==null||x.call(this)};
_.V.attached=function(){for(var J=_.M(this.polySiParams.behaviors),c=J.next();!c.done;c=J.next()){var m=void 0;(m=c.value.attached)==null||m.call(this)}var b;(b=this.polySiInfo.attached)==null||b.call(this)};
_.V.detached=function(){for(var J=_.M(this.polySiParams.behaviors),c=J.next();!c.done;c=J.next()){var m=void 0;(m=c.value.detached)==null||m.call(this)}var b;(b=this.polySiInfo.detached)==null||b.call(this)};
var rAz=function(J){for(var c=_.M(J.polySiParams.behaviors),m=c.next();!m.done;m=c.next())if(m=m.value,m.listeners)for(var b in m.listeners)Vy2(J,J.hostElement,b,m.listeners[b]);if(J.polySiInfo.listeners)for(var x in J.polySiInfo.listeners)Vy2(J,J.hostElement,x,J.polySiInfo.listeners[x])},Vy2=function(J,c,m,b,x){J=M7G(J,b,x);
ua(c,m,J)||c.addEventListener(m,J);return J},LaC=function(J){for(var c=_.M(J.polySiParams.reactiveSchemas),m=c.next();!m.done;m=c.next())m=m.value,m.type==="compute"||m.type==="computeWithMethod"?INo(J.signalProxy,m,J):m.type==="redux"?aNr(J.signalProxy,m,J.store):m.type==="signal"&&m.readOnly&&CFr(J.signalProxy,m)},DI_=function(J){for(var c=_.M(J.polySiParams.reactiveSchemas),m=c.next(),b={};!m.done;b={schema$jscomp$12:void 0},m=c.next())b.schema$jscomp$12=m.value,b.schema$jscomp$12.type==="notify"?
Him(J.signalProxy,b.schema$jscomp$12,J.hostElement):b.schema$jscomp$12.type==="observe"?iiQ(J.signalProxy,b.schema$jscomp$12,J):b.schema$jscomp$12.type==="reflect"&&J.signalProxy.effect(function(P){return function(){var p=J.signalProxy.getWithPath([P.schema$jscomp$12.propertyKey]);
J.reflecting=!0;fNt(J.hostElement,P.schema$jscomp$12.propertyKey,p,!0);J.reflecting=!1}}(b));
if(J.reflectedAttributes)for(c=_.M(Object.entries(J.reflectedAttributes)),b=c.next(),m={};!b.done;m={key$jscomp$880:void 0,value$jscomp$8837:void 0},b=c.next()){var x=_.M(b.value);b=x.next().value;x=x.next().value;m.key$jscomp$880=b;m.value$jscomp$8837=x;J.signalProxy.effect(function(P){return function(){J.reflecting=!0;fNt(J.hostElement,P.key$jscomp$880,(0,P.value$jscomp$8837)(),!0);J.reflecting=!1}}(m))}};
_.V=G1.prototype;_.V._setPendingProperty=function(J,c){this.set(J,c);return!1};
_.V._enableProperties=function(){};
_.V._setPendingPropertyOrPath=function(J,c){this.notifyPath(J,c);return!1};
_.V._addPropertyEffect=function(){};
_.V._stampTemplate=function(){throw Error("Hg");};
_.V.fire=function(J,c,m){c=c===void 0?{}:c;m=m===void 0?{}:m;var b,x,P={bubbles:(b=m.bubbles)!=null?b:!0,cancelable:!!m.cancelable,composed:(x=m.composed)!=null?x:!0},p;return _.cA(qfo((p=m.node)!=null?p:this.hostElement),J,c,P)};
_.V.get=function(J,c){var m=fs(J);return c?pWu(c,m):J==="hidden"?this.hostElement.hidden:this.signalProxy.getWithPath(m)};
_.V.linkPaths=function(){};
_.V.listen=function(J,c,m){J=qfo(J);this.boundListeners!=null||(this.boundListeners=new WeakMap);var b=this.boundListeners.get(J);b||(b={},this.boundListeners.set(J,b));var x=c+m;b[x]||(b[x]=Vy2(this,J,c,m))};
_.V.notifyPath=function(J,c){this.signalProxy.notifyPath(fs(J),arguments.length===2?{value:c}:void 0)};
_.V.canNotifyPath=function(J){return this.mutablePropNames.has(J)&&!RWT(this.signalProxy,J)};
_.V.notifySplices=function(J,c){this.signalProxy.notifySplices(fs(J),c)};
_.V.pop=function(J){var c=this.signalProxy;J=fs(J);var m=_.M(J);J=m.next().value;m=ej(m);return XF(c,J).pop(m)};
_.V.push=function(J){var c=_.s$.apply(1,arguments);return this.signalProxy.arrayPush.apply(this.signalProxy,[fs(J)].concat(_.L6(c)))};
_.V.set=function(J,c,m){if(m)throw Error("Ig");J==="hidden"?this.hostElement.hidden=!!c:this.signalProxy.setWithPath(fs(J),c)};
_.V.setProperties=function(J){J=_.M(Object.entries(J));for(var c=J.next();!c.done;c=J.next()){var m=_.M(c.value);c=m.next().value;m=m.next().value;this[c]=m}};
_.V.splice=function(J,c,m){var b=_.s$.apply(3,arguments);return this.signalProxy.arraySplice.apply(this.signalProxy,[fs(J),c,m].concat(_.L6(b)))};
_.V.unlinkPaths=function(){};
_.V.unlisten=function(J,c,m){J=qfo(J);if(this.boundListeners){var b=this.boundListeners.get(J);if(b){m=c+m;var x=b[m];x&&(fN(J,c,x)||J.removeEventListener(c,x),delete b[m])}}};
_.V.unshift=function(J){var c=_.s$.apply(1,arguments);return this.signalProxy.arrayUnshift.apply(this.signalProxy,[fs(J)].concat(_.L6(c)))};
_.eE.Object.defineProperties(G1.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 Rnq=[Array,Boolean,Date,Number,Object,String];var enq=!1;var zK=function(){var J=HTMLElement.apply(this,arguments)||this;J.restamp=!1;J.notifyDomChange=!1;J.JSC$11420_didCallConnected=!1;J.JSC$11420_renderDebouncer=null;J.disableTemplateUpdateSignalImpl=EB()?void 0:_.K2(!1,void 0,"zLXz1e");var c;J.getDisableTemplateUpdate=(c=J.disableTemplateUpdateSignalImpl)==null?void 0:c[0];var m;J.setDisableTemplateUpdate=(m=J.disableTemplateUpdateSignalImpl)==null?void 0:m[1];return J};
_.D(zK,HTMLElement);var Waa=function(J){J.conditionSignalImpl!=null||(J.conditionSignalImpl=new L9(_.K2(!1,void 0,"wcuOQ")));return J.conditionSignalImpl};
_.V=zK.prototype;_.V.showHideChildren=function(J){znQ(this,J,this.if)};
_.V.attributeChangedCallback=function(J,c,m){if(this.JSC$11420_didCallConnected)throw Error("Mg`"+J);J==="notify-dom-change"?this.notifyDomChange=m!==null:J==="restamp"&&(this.restamp=m!==null)};
_.V.debounceRender=function(){this.JSC$11420_renderDebouncer=_.BE(this.JSC$11420_renderDebouncer,X6,this.JSC$11420_renderImpl.bind(this));_.gD(this.JSC$11420_renderDebouncer)};
_.V.disconnectedCallback=function(){var J=(0,_.xr)(this).parentNode;(!J||J.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in J&&!J.host)&&u96(this)};
_.V.connectedCallback=function(){var J=this;this.JSC$11420_didCallConnected=!0;PEQ?jV3():this.style.display="none";this.parentSignalProxy.effect(function(){Waa(J).getWithPath([]);J.debounceRender()})};
_.V.render=function(){_.be()};
_.V.JSC$11420_renderImpl=function(){if(!this.parentSignalProxy.isDisposed){var J=this.if;if(J){a:{var c=(0,_.xr)(this).parentNode;if(this.hasInstance()){var m=this.instance.children;if((m==null?0:m.length)&&(0,_.xr)(this).previousSibling!==m[m.length-1])for(var b=0;b<m.length;b++)(0,_.xr)(c).insertBefore(m[b],this)}else{if(!c){c=!1;break a}fqa(this,c)}c=!0}if(!c)return}else this.restamp&&u96(this);znQ(this,!1,J);J&&Yf8(this);MyC&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",
{bubbles:!0,composed:!0}))}};
_.V.hasInstance=function(){return!!this.instance};
var fqa=function(J,c){var m=J.parentSignalProxy;if(EB()){var b=_.M(_.K2(!0,void 0,"wXzgnc"));var x=b.next().value;b=b.next().value;m=J.parentSignalProxy}else{var P;var p=new Wt((P=XIB(J))!=null?P:{},function(I){var a=XF(J.parentSignalProxy,I).getChangeRecordSignal([]);I=_.K2(void 0,void 0,"mryEkc");var k=new L9(I);p.effect(function(){if(J.getDisableTemplateUpdate&&!J.getDisableTemplateUpdate()){var H=a();k.notifyPath(fs(H.path),{value:H.value})}});
return k});
J.parentSignalProxy.childSignalProxies.push(p);var t=m=p}m=PEG(J.templateInfo,J.templateInfo.nodeInfoList,m,{eventListenerHost:J.eventListenerHost,hasInsertionPoint:J.templateInfo.hasInsertionPoint,thisCtx:J.eventListenerHost,enabledSignal:EB()?x:void 0,getModel:function(){return XIB(J)}}).root;
J.instance={root:m,children:[],hidden:!1,signalProxy:t,getTemplateUpdatesEnabled:x,setTemplateUpdatesEnabled:b};t=_.M(m.childNodes);for(x=t.next();!x.done;x=t.next())J.instance.children.push(x.value);(0,_.xr)(c).insertBefore(J.instance.root,J)},XIB=function(J){if((J=J.parentSignalProxy.model)&&!J.hostElement){var c={},m;
for(m in J)J.hasOwnProperty(m)&&(c[m]=J[m]);return c}},u96=function(J){if(J.instance){var c=J.instance.children;
if(c.length){var m=(0,_.xr)(c[0]).parentNode;if(m){m=(0,_.xr)(m);for(var b=0;b<c.length;b++)m.removeChild(c[b])}}EB()?J.instance.setTemplateUpdatesEnabled(!1):J.instance.signalProxy.dispose();J.instance=void 0}},znQ=function(J,c,m){c=c||!m;
J.instance&&J.instance.hidden!==c&&(J.instance.hidden=c,QVe(c,J.instance.children))},Yf8=function(J){if(EB()){var c=J.instance;
c&&qs(J.parentSignalProxy.owner,function(){return!c.getTemplateUpdatesEnabled()})&&c.setTemplateUpdatesEnabled(!0)}else J.setDisableTemplateUpdate(!1)};
_.eE.Object.defineProperties(zK.prototype,{if:{configurable:!0,enumerable:!0,get:function(){var J=this;return qs(this.parentSignalProxy.owner,function(){return Waa(J).getWithPath([])})},
set:function(J){J||(EB()?this.instance&&this.instance.setTemplateUpdatesEnabled(!1):this.setDisableTemplateUpdate(!0));Waa(this).setWithPath([],!!J)}}});
_.eE.Object.defineProperties(zK,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["restamp","notify-dom-change"]}}});
customElements.define("ps-dom-if",zK);var ZSz=[],uU=function(){var J=HTMLElement.apply(this,arguments)||this;J.as="item";J.indexAs="index";J.itemsIndexAs="itemsIndex";J.targetFramerate=20;J.notifyDomChange=!1;J.isDetached=!1;J.JSC$11427_renderDebouncer=null;J.instances=[];J.chunkingId=null;J.chunkCount=null;J.shouldMeasureChunk=!1;J.shouldContinueChunking=!1;J.renderStartTime=null;J.JSC$11427_didCallConnected=!1;return J};
_.D(uU,HTMLElement);var qfj=function(J){J.itemSignalImpl!=null||(J.itemSignalImpl=new L9(_.K2(ZSz,void 0,"YBrqgf")));return J.itemSignalImpl},UIB=function(J,c){Array.isArray(c)||(c=ZSz);
qfj(J).setWithPath([],c)};
_.V=uU.prototype;_.V.showHideChildren=function(J){for(var c=_.M(this.instances),m=c.next();!m.done;m=c.next())QVe(J,m.value.children)};
_.V.notifyPath=function(J,c){J=fs(J);J[0]==="items"&&(J.length===1?UIB(this,c):qfj(this).setWithPath(J.slice(1),c))};
_.V.canNotifyPath=function(J){return J==="items"};
_.V.attributeChangedCallback=function(J,c,m){if(this.JSC$11427_didCallConnected)throw Error("Ng`"+J);J==="as"?this.as=m:J==="index-as"?this.indexAs=m:J==="items-index-as"?this.itemsIndexAs=m:J==="initial-count"?this.initialCount=Number(m):J==="notify-dom-change"?this.notifyDomChange=m!==null:J==="target-framerate"&&(this.targetFramerate=Number(m))};
_.V.disconnectedCallback=function(){this.isDetached=!0;for(var J=0;J<this.instances.length;J++)SfQ(this,J);this.chunkingId&&cancelAnimationFrame(this.chunkingId)};
_.V.connectedCallback=function(){var J=this,c=qfj(this).getChangeRecordSignal([],"");this.parentSignalProxy.effect(function(){var x=c(),P=fs(x.path);if(P[0]===void 0||P[0]==="splices"||P[0]==="length")J.debounceRender();else{var p=P[0];if(p=J.instances[typeof p==="string"?Math.floor(Number(p)):p])P=[J.as].concat(_.L6(P.slice(1))),p.signalProxy.notifyPath(P,x)}});
this.JSC$11427_didCallConnected=!0;PEQ?jV3():this.style.display="none";if(this.isDetached){this.isDetached=!1;for(var m=(0,_.xr)((0,_.xr)(this).parentNode),b=0;b<this.instances.length;b++)m.insertBefore(this.instances[b].root,this);this.chunkingId&&this.render()}};
_.V.debounceRender=function(){this.JSC$11427_renderDebouncer=_.BE(this.JSC$11427_renderDebouncer,X6,this.JSC$11427_renderImpl.bind(this));_.gD(this.JSC$11427_renderDebouncer)};
_.V.render=function(){this.debounceRender();_.be()};
_.V.JSC$11427_renderImpl=function(){var J=this,c=this.items,m=hn6(this,c.length);dIC(this,c,m);this.initialCount&&(this.shouldMeasureChunk||this.shouldContinueChunking)&&(cancelAnimationFrame(this.chunkingId),this.chunkingId=requestAnimationFrame(function(){J.chunkingId=null;if(J.shouldMeasureChunk){var b=performance.now()-J.renderStartTime;J.chunkCount=Math.round(Math.ceil(1E3/J.targetFramerate)/b*J.chunkCount)||1}J.shouldContinueChunking&&J.debounceRender()}));
MyC&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
var hn6=function(J,c){var m=c,b=J.instances.length;if(J.initialCount){if(J.chunkCount){var x=Math.min(Math.max(c-b,0),J.chunkCount);m=Math.min(b+x,c)}else m=Math.min(c,J.initialCount),x=Math.max(m-b,0),J.chunkCount=x||1;J.shouldMeasureChunk=x===J.chunkCount;J.shouldContinueChunking=m<c;J.renderStartTime=performance.now()}return m},dIC=function(J,c,m){for(var b=0;b<m;b++){var x=J.instances[b],P=c[b];
x?(x.signalProxy.setWithPath([J.as],P),x.signalProxy.setWithPath([J.indexAs],b)):$I_(J,P,b)}for(c=J.instances.length-1;c>=b;c--)m=J,x=c,SfQ(m,x),_.M(m.instances.splice(x,1)).next().value.signalProxy.dispose()},SfQ=function(J,c){J=J.instances[c];
c=(0,_.xr)(J.root);for(var m=0;m<J.children.length;m++)c.appendChild(J.children[m])},$I_=function(J,c,m){var b={};
c=Object.assign({},G5$(J),(b[J.as]=c,b[J.indexAs]=m,b[J.itemsIndexAs]=m,b));var x=new Wt(c,function(p){if(p!==J.as&&p!==J.indexAs){if(p===J.itemsIndexAs)return XF(x,J.indexAs);var t=XF(J.parentSignalProxy,p).getChangeRecordSignal([]);p=_.K2(void 0,void 0,"Mu2Bwb");var I=new L9(p);x.effect(function(){var a=t();I.notifyPath(fs(a.path),{value:a.value})});
return I}});
J.parentSignalProxy.childSignalProxies.push(x);b=PEG(J.templateInfo,J.templateInfo.nodeInfoList,x,{eventListenerHost:J.eventListenerHost,getModel:function(){var p={};return Object.assign({},G5$(J),(p[J.as]=x.model[J.as],p[J.indexAs]=x.model[J.indexAs],p[J.itemsIndexAs]=x.model[J.indexAs],p))},
hasInsertionPoint:J.templateInfo.hasInsertionPoint,thisCtx:J.eventListenerHost,methodInvocationRequirement:N0j,enabledSignal:J.stampingEnabled}).root;c={root:b,children:[],signalProxy:x};b=_.M(b.childNodes);for(var P=b.next();!P.done;P=b.next())c.children.push(P.value);b=(b=J.instances[m+1])?b.children[0]:J;(0,_.xr)((0,_.xr)(J).parentNode).insertBefore(c.root,b);J.instances[m]=c},G5$=function(J){if((J=J.parentSignalProxy.model)&&!J.hostElement){var c={},m;
for(m in J)J.hasOwnProperty(m)&&(c[m]=J[m]);return c}};
uU.prototype.itemForElement=function(J){var c=this,m=this.instances.find(function(b){return b.children.includes(J)});
if(m)return qs(this.parentSignalProxy.owner,function(){return m.signalProxy.getWithPath([c.as])})};
uU.prototype.indexForElement=function(J){var c=this.instances.findIndex(function(m){return m.children.includes(J)});
return c>=0?c:void 0};
_.eE.Object.defineProperties(uU.prototype,{items:{configurable:!0,enumerable:!0,get:function(){var J=this;return qs(this.parentSignalProxy.owner,function(){return qfj(J).getWithPath([])})},
set:function(J){UIB(this,J)}},
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}}});
_.eE.Object.defineProperties(uU,{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",uU);var EP2,vPQ;_.f9=new _.oE("STATE_STORE_TOKEN");EP2=new _.oE("SELECT_TOKEN");vPQ=new _.oE("DISPATCH_TOKEN");var JJ3={getSelectFn:function(){var J;return(J=_.BG().resolve(_.y6(EP2)))!=null?J:Fau},
getDispatchFn:function(){var J;return(J=_.BG().resolve(_.y6(vPQ)))!=null?J:_.v9().dispatch.bind(_.v9())},
getAppStore:function(){return _.BG().resolve(_.f9)}},lqG,gPQ=!1;var bE3=void 0;var OSa=function(){};
OSa.prototype.hasAttribute=function(J){if(J==="dir")return!1;if(J==="disable-upgrade"){var c,m;return(m=(c=this.hostElement)==null?void 0:c.hasAttribute("disable-upgrade"))!=null?m:!1}throw Error("Og`"+J);};
OSa.prototype.attributeChangedCallbackWrapper=function(J,c,m){if(J==="disable-upgrade"&&this.__isUpgradeDisabled&&m===null){this._initializeProperties();this.__isUpgradeDisabled=!1;var b;((b=this.hostElement)!=null?b:this).isConnected&&this.connectedCallback()}else c===m||this.__isReflecting||this.attributeChangedCallback(J,c,m)};
OSa.prototype.getExtraMethodsToForward=function(){for(var J=this,c=[],m=_.M(AAj),b=m.next(),x={};!b.done;x={tagName$jscomp$53:void 0,name$jscomp$531:void 0},b=m.next())x.name$jscomp$531=b.value,b=void 0,x.name$jscomp$531==="_setPendingProperty"?(x.tagName$jscomp$53=this.hostElement.tagName.toLowerCase(),b=function(P){return function(p,t,I){ns(P.tagName$jscomp$53,p,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");return J._setPendingProperty(p,t,I)}}(x)):b=function(P){return function(){return J[P.name$jscomp$531].apply(J,
_.L6(_.s$.apply(0,arguments)))}}(x),c.push([x.name$jscomp$531,
b]);return c};
for(var pUJ=T06(nP6((0,_.KH)(OSa))),Kwm=["disabled","disable-upgrade"],Rn8=(0,_.KH)(function(){}),oPQ=new Set(Object.getOwnPropertyNames(Rn8.prototype)),iER=new Set("is hostElement root rootPath importPath inject behaviors properties provide".split(" ").concat(_.L6(oPQ))),a0m=new Set(["__dataEnabled",
"__dataHasAccessor","__dataPending","__isPropertyEffectsClient","__readOnly"]),AAj=new Set("_enableProperties _flushProperties _setPendingProperty _setPendingPropertyOrPath set get".split(" ")),QV$=new Set([].concat(_.L6(a0m),_.L6(AAj),_.L6(oPQ))),en8=_.M(QV$),jV_=en8.next();!jV_.done;jV_=en8.next())Gr3.add(jV_.value);var HEJ={created:function(){u92(this);this.initializeInjection()}};var zIf=!1,lM=window.ShadyDOM,SMo=["appendChild","insertBefore","removeChild","replaceChild"],Uof=[Node];lM&&Uof.push(lM.Wrapper);var vG2,OET,oGm={};var gU=new Set,y1="",QWu="";var B9,Jd=new Set;var cXR=new Set("context didCallReady is info params signalProxy".split(" ")),b5G="_enableProperties _setPendingProperty _setPendingPropertyOrPath fire get linkPaths listen notifyPath notifySplices pop push set setProperties splice unlinkPaths unlisten unshift".split(" "),xpm="__dataHasAccessor __isPropertyEffectsClient $ hostElement isAttached observers properties".split(" ");var Fa_=t0({entities:xPt}),lqQ=new A7(Fa_);var Ys=function(){return _.Cs.apply(this,arguments)||this};
_.D(Ys,_.Cs);_.eE.Object.defineProperties(Ys.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return lqQ}}});
Ys=_.O([_.au()],Ys);_.XL=[rF.prototype,Ys.prototype];_.ZO={YtLiveChatTooltipTargetingBehavior:{created:function(){this.handler_=null},
ready:function(){var J=this,c={};setTimeout(function(){var m;return _.cA((m=J.hostElement)!=null?m:J,"yt-live-chat-add-tooltip-target",c)},0);
this.handler_=c.handler},
detached:function(){if(this.handler_){var J;this.handler_.removeElementFromSupportingTooltips((J=this.hostElement)!=null?J:this)}this.handler_=null}}};_.Ml=new _.oE("ICON_MANAGER_TOKEN");var yA_=[48,20,18,16,15,13,12],ziR=new Map,wkG=new Set,i5e=new Set,Trm=new Set,H5Q=new Set,nOu=new Set,sJe=new Promise(function(J){var c=!1,m=!1,b=!1,x=[],P=function(p){if("detail"in p)if(p=p.detail,p.name==="yt-icons")rXR(p),c=!0;else if(p.name==="yt-sys-icons")rXR(p),m=!0;else{var t;((t=p.name)==null?0:t.includes("yt-sys-icons"))&&p.size!==24&&(rXR(p,!0),x.push(p.size),x.length===yA_.length&&(b=!0))}c&&m&&b&&(window.removeEventListener("iron-iconset-added",P),J())};
window.addEventListener("iron-iconset-added",P)}),DpD=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"]]);_.qH={};_.qH.YtComponentBehavior={_noAccessors:!0,getSimpleString:_.OG,computeHref_:function(J,c){c=c===void 0?!1:c;if(!J||J.commandExecutorCommand)return null;var m=oVt(J,c);return c||m!==null?m?_.w("enable_polymer_resin")?_.n1(m).toString():m:null:(_.qz(new _.w3("computeHref was null",this.is,J)),null)},
computeOptionalHref_:function(J){return this.computeHref_(J,!0)},
computeNofollow_:function(J){return J?hZT(J)?"nofollow":null:null},
computeIcon_:function(J){return J&&J.iconType?_.Pd(J.iconType):""},
resolveCommand:function(J,c,m){c=c===void 0?{}:c;return _.Nl(J,this.hostElement,c,m===void 0?!1:m)}};var gPC,UW;_.B0Q={};gPC=null;
UW={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_=LXT(this.viewroot));_.S5(this.initVisibilityObserver_.bind(this))},
initVisibilityObserver_:function(){this.visibilityObserver&&this.configureVisibilityObserver_()},
configureVisibilityObserver_:function(){var J=this;this.unobserve_();if(_.w("kevlar_vimio_use_shared_monitor"))Z5R(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 c=[];this.visibilityOptionVisible_&&c.push(this.visibilityObserver.observe(this.hostElement,function(){return J.onVisible()},this.visibilityOptionVisible_));
this.visibilityOptionHidden_&&c.push(this.visibilityObserver.observe(this.hostElement,function(){return J.onHidden()},this.visibilityOptionHidden_));
this.visibilityOptionPrescan_&&c.push(this.visibilityObserver.observe(this.hostElement,function(){return J.onPrescanVisible()},this.visibilityOptionPrescan_));
this.visibilityMonitorKeys=c}},
detached:function(){this.unobserve_();this.visibilityObserverForChild_=this.localVisibilityObserver_=null},
unobserve_:function(){un2(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 J=_.qA(this.parentNode,function(m){var b,x=(b=m.polymerController)!=null?b:m;return!!x.getVisibilityObserverForChild&&x.getVisibilityObserverForChild()},!0);
if(J){var c;this.localVisibilityObserver_=((c=J.polymerController)!=null?c:J).getVisibilityObserverForChild()}else gPC||(gPC=LXT()),this.localVisibilityObserver_=gPC;return this.localVisibilityObserver_},visibilityCallback:function(J){J?this.onVisible():this.onHidden()},
onVisible:function(){},
onHidden:function(){},
onPrescanVisible:function(){},
shouldSkipLogging:function(){}};
_.w("kevlar_use_vimio_behavior")||(UW={});UW&&!_.w("kevlar_use_vimio_behavior")&&(delete UW.attached,delete UW.detached);_.B0Q.YtVisibilityObserverBehavior=[UW];var JJ_={};JJ_.YtVisualElementBehavior=[_.B0Q.YtVisibilityObserverBehavior,{properties:{observeVisibleOption:{type:String,value:"observe_multiple"},observeHiddenOption:{type:String,value:"observe_multiple"},visualElement:Object},onVisible:function(){if(_.w("kevlar_use_vimio_behavior")&&this.onShow)this.onShow();if(!_.w("kevlar_vimio_use_shared_monitor")&&!this.shouldSkipLogging()){var J=this.getScreenLayer&&this.getScreenLayer(),c=this.getVisibilityLogger();c&&c.reportShown(this,void 0,J)}},
onHidden:function(){if(_.w("kevlar_use_vimio_behavior")&&this.onHide)this.onHide();if(!_.w("kevlar_vimio_use_shared_monitor")){var J=this.getScreenLayer&&this.getScreenLayer(),c=this.getVisibilityLogger();c&&c.reportHidden(this,void 0,J)}},
getVisibilityLogger:function(){return _.w("kevlar_use_vimio_behavior")?_.IA():null},
shouldSkipLogging:function(){if(_.Ub("INNERTUBE_CLIENT_NAME")!=="WEB"||!this.data)return!1;var J=this.getParentRenderer&&this.getParentRenderer();if(!J)return!1;var c,m=(c=J.polymerController)!=null?c:J;if(!m.data)return!1;J=this.data.trackingParams;J=this.data.loggingDirectives?this.data.loggingDirectives.trackingParams:J;var b;c=(b=m.data)==null?void 0:b.trackingParams;var x,P;c=((x=m.data)==null?0:x.loggingDirectives)?(P=m.data)==null?void 0:P.loggingDirectives.trackingParams:c;return J&&c&&J===
c}}];var SkG=new Map,Tg;var Tkm=function(J){this.layer=J},fK=function(J){return J.layer!==void 0?J.layer:J.parent?fK(J.parent):J.layer=0};var vOt;_.g={};vOt=0;_.g.YtRendererBehavior=[_.qH.YtComponentBehavior,JJ_.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_:_.w("kevlar_use_vimio_behavior"),created:function(){this.useVimio_||(this.childCache_=new Set)},
detached:function(){if(this.monitorScroll){var J,c;(c=(J=this.monitorScrollElement)!=null?J:this.hostElement)==null||c.removeEventListener("scroll",_.ME(this,this.onScroll))}this.parentComponent&&(this.parentComponent.childCache_&&this.parentComponent.childCache_.delete(this.hostElement),this.parentComponent=null);this.useVimio_||this.markDirty();qkT(this.hostElement);KtC(_.aT(),this.hostElement);Qq.delete(this.hostElement)},
registerRenderer:function(J){var c;((c=J.polymerController)!=null?c:J).parentComponent=this.hostElement;this.useVimio_||(this.childCache_.add(J),this.markDirty())},
unregisterRenderer_:function(J){this.useVimio_||(this.childCache_.delete(J),this.markDirty())},
attached:function(){var J=this,c=this.getParentRenderer();if(c){var m,b,x;(b=(m=(x=c.polymerController)!=null?x:c).registerRenderer)==null||b.call(m,this.hostElement)}if(!this.useVimio_&&this.monitorScroll){var P,p;(p=(P=this.monitorScrollElement)!=null?P:this.hostElement)==null||p.addEventListener("scroll",_.ME(this,this.onScroll))}_.ft.addJob(function(){hiT(J.hostElement)},8);
m=new Tkm(this.screenLayer||void 0);(c=eH(c))&&c.layerNode&&(m.parent=c.layerNode);c={};UwD(this.hostElement,(c.isRenderer=!0,c.layerNode=m,c[YM]=this.data,c))},
getParentRenderer:function(){for(var J=this.hostElement.parentNode,c,m;J&&((c=eH(J))==null||!c.isRenderer)&&!((m=J.polymerController)!=null?m:J).isRenderer_;)J=J.parentNode||J.host;return J},
ytRendererBehaviorDataObserver_:function(){if(this.data){this.wasVisible=!1;_.w("kevlar_use_vimio_behavior")&&this.markDirtyVisibilityObserver();_.Ss("ADD_SCRAPER_ATTRIBUTES")&&this.data.trackingParams&&(this.hostElement.dataset.ved=this.data.trackingParams);if(_.w("debug_web_ve_data")&&this.data.trackingParams){var J="";try{J=atob(this.data.trackingParams.replace(/-/g,"+").replace(/_/g,"/"))}catch(m){_.Xc(m)}if(J){var c=MKJ(J,1);c!==void 0&&(this.hostElement.dataset.veIndex=String(c));J=MKJ(J,2);
J!==void 0&&(this.hostElement.dataset.ve=String(J))}}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,_.w("debug_web_ve_data")&&
(this.hostElement.dataset.ve=String(this.veType)),this.data.loggingDirectives.trackingParams&&(this.dataElement=_.n7(this.data.loggingDirectives.trackingParams)),this.visualElement=_.K7(_.C7(),this)||void 0,this.veFromLoggingDirective_=!0)}},
ytRendererBehaviorTargetIdObserver_:function(){if(this.data&&this.data.targetId){var J=this.data.targetId;_.aNB(_.aT(),J,this.hostElement)}else KtC(_.aT(),this.hostElement)},
onScroll:function(){var J=Date.now();J-this.lastHandledScroll_<50||(this.lastHandledScroll_=J,this.markDirty())},
markDirty:function(){_.w("kevlar_use_vimio_behavior")?this.markDirtyVisibilityObserver():O5G(this.hostElement)},
getScreenLayer:function(){if(this.screenLayer)return this.screenLayer;var J=this.getParentRenderer();if(J&&(J=eH(J))&&J.layerNode)return fK(J.layerNode)},
invalidate:function(){this.markDirty();this.wasPrescan=this.wasVisible=!1},
getNodes:function(){return this.childCache_?[].concat(_.L6(this.childCache_)):[]},
impressionLog:function(){if(this.data&&this.data.impressionEndpoints)for(var J=0;J<this.data.impressionEndpoints.length;J++)this.sendImpression(this.data.impressionEndpoints[J]);else this.data&&this.data.impressionEndpoint&&this.sendImpression(this.data.impressionEndpoint)},
sendImpression:function(J){J.clickTrackingParams&&delete J.clickTrackingParams;var c,m;(J==null?0:(c=J.commandMetadata)==null?0:(m=c.webCommandMetadata)==null?0:m.sendPost)?_.Vq(this.hostElement,[J,{impression:!0}]):_.PA(this.hostElement,[J],this.hostElement)},
logExplicitClick:function(J){var c=_.Y3(this.getScreenLayer());if(c){var m,b=(m=J.polymerController)!=null?m:J;J=b.visualElement;b=b.trackingParams||b.clickTrackingParams;!J&&b&&(J=_.n7(b));J&&_.AS(c,J)}}}];var cJB={},SF=function(){return _.Cs.apply(this,arguments)||this};
_.D(SF,_.Cs);SF.prototype.onPdgItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
SF.prototype.onPdgItemBehaviorClick=SF.prototype.onPdgItemBehaviorClick;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],SF.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],SF.prototype,"data",void 0);_.O([_.ps("click"),_.R("design:type",Function),_.R("design:paramtypes",[Event]),_.R("design:returntype")],SF.prototype,"onPdgItemBehaviorClick",null);SF=_.O([_.au()],SF);cJB.YtPdgLiveChatItemBehavior=[SF.prototype,_.g.YtRendererBehavior];var mo2;var bE_;_.hg={};_.hg.YtVisibilityBehavior={_noAccessors:!0,properties:{disablePrescanVisibility:Boolean,prescanHeight:{type:Number,reflectToAttribute:!0}},onShow:function(){if(this.onShow_)this.onShow_()}};var dF=function(){var J=F6.apply(this,arguments)||this;J.switchTemplateAtRegistration=!1;return J};
_.D(dF,F6);dF.prototype.ready=function(){this.templatingFn&&(this.switchTemplateAtRegistration||QJm(this),_.sVr(this,"doRender"),this.doRender())};
dF.prototype.debounceRender=function(){this.templatingFn&&_.hO(this,"doRender",this.doRender)};
dF.prototype.doRender=function(){this.templatingFn?this.templatingFn():_.Xc(Error("Yg"))};
dF.prototype.experimentalTemplatingInUse=function(){return!!this.templatingFn};
dF=_.O([Lmu()],dF);var xoj=dF;var Vuz=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,$s={},lyt=($s[1]={filterString:null,isUnwrappable:null,unwrap:null},$s[2]={filterString:function(J,c,m){return cg(m)},
isUnwrappable:function(J){return J instanceof z$},
unwrap:function(J){return f1(J)}},$s[3]={filterString:function(J,c,m){return Vuz.test(m)?m:is.toString()},
isUnwrappable:function(J){return C1(J)},
unwrap:function(J){return _.ah(J)}},$s[4]={filterString:function(){return is.toString()},
isUnwrappable:function(J){return J instanceof P0},
unwrap:function(J){return _.N2(J).toString()}},$s[5]={filterString:function(J,c,m){return m},
isUnwrappable:function(J){return typeof J==="string"},
unwrap:function(J){return J.toString()}},$s[7]={filterString:function(){return" /*zClosurez*/ "},
isUnwrappable:function(J){return J instanceof _.U$},
unwrap:function(J){return hG(J)}},$s[8]={filterString:function(J,c,m){m=String(m).toLowerCase();
return k7T(J,c,m)?m:"zClosurez"},
isUnwrappable:null,unwrap:null},$s[10]={filterString:null,isUnwrappable:null,unwrap:null},$s);l3[h$["default"]]=Bre;var gOR=[];var IJ2=cve("A"),K22=cve("BUTTON"),nq=cve("DIV"),Cxu=cve("LABEL");(function(){var J=FD;FD=function(c){J==null||J(c);L7(function(){for(var m=0;m<c.length;m++)Jvr(c[m])})}})();var GK=function(){var J=_.Cs.apply(this,arguments)||this;J.hasUnmounted=!1;return J};
_.D(GK,_.Cs);_.V=GK.prototype;_.V.beforeRegister=function(){var J=this.doIdomRender;this.templatingFn?_.Xc(Error("Xg")):(this.templatingFn=J,this.switchTemplateAtRegistration=!0,FlQ(this))};
_.V.attached=function(){};
_.V.detached=function(){Jvr(this.hostElement)};
_.V.renderIdom=function(){throw Error("$g");};
_.V.doIdomRender=function(){var J=this;bq2(this.hostElement,function(){J.renderIdom()})};
GK=_.O([_.au()],GK);var Py2=[xoj.prototype,GK.prototype];var Mu2,pUQ=function(){return Mu2!==void 0?Mu2:Mu2=document.createElement("template")};
document.head.appendChild(pUQ().content);var NS_;var tu_,I06=function(){return tu_!==void 0?tu_:tu_=document.createElement("template")};
document.head.appendChild(I06().content);var Kwa;var CyB=document.head,a0a=CyB.appendChild,kZQ;if(Kwa===void 0){var HEQ=document.createElement("template");_.z(HEQ,"\x3c!--css-build:shady--\x3e");HEQ.content.insertBefore(I06().content.cloneNode(!0),HEQ.content.firstChild);Kwa=HEQ}kZQ=Kwa;a0a.call(CyB,kZQ.content);var iE2,nGj=function(){return iE2!==void 0?iE2:iE2=document.createElement("template")};
document.head.appendChild(nGj().content);var TSa;var wU_=document.head,rJz=wU_.appendChild,sWz;if(TSa===void 0){var LwB=document.createElement("template");_.z(LwB,"\x3c!--css-build:shady--\x3e");LwB.content.insertBefore(nGj().content.cloneNode(!0),LwB.content.firstChild);TSa=LwB}sWz=TSa;rJz.call(wU_,sWz.content);var DoZ=document.head,Ww_=DoZ.appendChild,zIu;if(NS_===void 0){var umQ=document.createElement("template");_.z(umQ,"\x3c!--css-build:shady--\x3e");umQ.content.insertBefore(pUQ().content.cloneNode(!0),umQ.content.firstChild);NS_=umQ}zIu=NS_;Ww_.call(DoZ,zIu.content);var f0_,YMC=function(){return f0_!==void 0?f0_:f0_=document.createElement("template")};
document.head.appendChild(YMC().content);var XUj;_.Ev=new _.oE("DARK_THEME_TOKEN");var eQJ=new _.Q("accessibilityProperties");var Qp2=new _.Q("layoutProperties");var jpq=new _.Q("imageType");var ZE_={};if("ytAttributedStringLinkHoverColor"in ZE_)throw Error("ch`ytAttributedStringLinkHoverColor");(function(J,c){ZE_[J]="value"in c&&"unit"in c?PIR(J,c):function(m){try{return c(m)}catch(b){throw Error("ah`"+J+"`"+b.message);}}})("ytAttributedStringLinkHoverColor",{value:"unset !stv-no-inline",
unit:"str"});var qM_=function(J){var c=this;this.holdTime=J===void 0?500:J;this.longPressTimeout=NaN;this.moveOccurred=this.longPressOccurred=!1;this.onlongpress=function(m){var b=new CustomEvent("LONG_PRESS"),x;(x=m.changedTouches[0].target)==null||x.dispatchEvent(b)};
this.ontouchstart=function(m){c.longPressTimeout=_.T9(_.ft,function(){c.onlongpress(m);c.longPressOccurred=!0},c.holdTime)};
this.ontouchmove=function(){_.ft.cancelJob(c.longPressTimeout);c.longPressTimeout=NaN;c.longPressOccurred=!1;c.moveOccurred=!0};
this.ontouchend=function(m){if(c.longPressTimeout&&!c.longPressOccurred&&!c.moveOccurred){var b;(b=m.changedTouches[0].target)==null||b.dispatchEvent(new Event("click"))}_.ft.cancelJob(c.longPressTimeout);c.longPressTimeout=NaN;c.longPressOccurred=!1;c.moveOccurred=!1}};var uwu=function(J,c){qM_.call(this,c);var m=this;this.callback=J;this.onlongpress=function(b){var x;(x=m.callback)==null||x.call(m,b)}};
_.D(uwu,qM_);var fpq=function(J,c){var m=Object.assign({},c);J=_.M(new Map([["ontouchstart",J.ontouchstart],["ontouchend",J.ontouchend],["ontouchmove",J.ontouchmove]]));for(var b=J.next(),x={};!b.done;x={eventName$jscomp$85:void 0,eventHandler$jscomp$1:void 0},b=J.next()){var P=_.M(b.value);b=P.next().value;P=P.next().value;x.eventName$jscomp$85=b;x.eventHandler$jscomp$1=P;c[x.eventName$jscomp$85]=function(p){return function(t){var I;(I=m[p.eventName$jscomp$85])==null||I.call(m,t);(0,p.eventHandler$jscomp$1)(t)}}(x)}};_.gu=new _.oE("COMMAND_HANDLER_TOKEN");var ppo=new _.Q("parallelCommand");var IpR=new _.Q("performOnceCommand");var t4u=new _.Q("serialCommand");var KzR=void 0;var Uou=function(){this.data=[]};
Uou.prototype.push=function(J){this.data.push(J)};var J3={};_.K2(J3,void 0,"sgPmTd");_.K2(null,void 0,"jypsq");var ylq=new Uou;var wp3=[RLG,ovG,Q$t,j$Q,eLe,Ax2,FFf,lHe];var RQ2=new _.Q("bracketTextDecorator");var Gg=new _.Q("highlightTextDecorator");_.Ov=new _.oE("APP_DIRECTION_TOKEN");Object.freeze&&Object.freeze(Object.create(null));var Gf2=function(){},SMj;
(SMj=window.requestIdleCallback)==null||SMj.bind(window);var vCo={calledOnce:!1,state:"visible"},ECQ={calledOnce:!1,state:"hidden"};var hIC=new _.oE("ICON_WIZ_COMPONENT_TOKEN");_.HP=_.Q1(function(J){var c=J.icon;var m=J.active;var b=J.className;var x=J.style;var P=J.dataSelected;var p=J.dataDisabled;var t=J.role;var I=J.animateIcon;var a=J.themeOverride;var k=J.ariaHidden;var H=J.ariaExpanded;var T=J.ariaLabel;var r=J.id;var W=J.size;var Y=J.iconFilter;return _.C(_.n,{cond:c,then:function(){var Z=_.BG().resolve(hIC);return _.C(Z,{icon:c,dataSelected:P,dataDisabled:p,animateIcon:I,themeOverride:a,ariaExpanded:H,id:r,active:m,size:W,role:t,className:b,ariaHidden:k,ariaLabel:T,
style:function(){return x!=null&&x()||W==null||!W()?x==null?void 0:x():"width: "+(W==null?void 0:W())+"px;height: "+((W==null?void 0:W())+"px;")},
iconFilter:Y})}})},"b");
_.HP.idomCompat=!0;var tmu=window.devicePixelRatio||1;var aaQ=new Map([["yt_outline_bag_black_24","bag"]]);var EW=function(J){var c=this;this.margin=.1;this.whenInViewportWithMargin=J;this.observationTargets=[];this.scanRequested=!1;window.addEventListener("touchmove",function(){c.requestScan()});
window.addEventListener("touchend",function(){c.requestScan()});
window.addEventListener("updateui",function(){c.requestScan()});
var m=new _.FU((0,_.Wa)(this.requestScan,this),100);window.addEventListener("scroll",function(){m.fire()},!0);
window.addEventListener("resize",(0,_.Wa)(this.requestScan,this));window.addEventListener("state-navigatestart",function(){c.observationTargets=[]});
window.addEventListener("state-navigateend",(0,_.Wa)(this.requestScan,this))};
EW.prototype.observe=function(J){this.observationTargets.includes(J)||this.observationTargets.push(J)};
EW.prototype.unobserve=function(J){this.observationTargets=this.observationTargets.filter(function(c){return c!==J})};
EW.prototype.requestScan=function(){var J=this;this.scanRequested||(L7(function(){doz(J)}),this.scanRequested=!0)};
var doz=function(J){var c=(1+J.margin)*(document.documentElement.clientHeight||window.innerHeight);J.observationTargets=J.observationTargets.filter(function(m){var b=m.getBoundingClientRect();(b=c>b.top&&!!b.height)&&J.whenInViewportWithMargin(m);return!b&&m.parentNode});
J.scanRequested=!1};
EW.prototype.disconnect=function(){this.observationTargets=[]};var $oQ,EG2;$oQ=_.M(_.K2(TYq(),void 0,"O3X2wd"));_.GZC=$oQ.next().value;EG2=$oQ.next().value;window.addEventListener("resize",function(){EG2(TYq())});var vG6={landscape:"(min-width: 931px) and (orientation: landscape)",portrait:"(min-width: 550px) and (orientation: portrait)"},OEL=void 0,AJ8=window.innerWidth,RI_=window.innerHeight;window.addEventListener("resize",function(){OEL=void 0});var oGa;if("IntersectionObserver"in window)oGa=sUo();else{if(OEL===void 0){var QW_;QW_="matchMedia"in window?window.matchMedia(vG6.landscape+","+vG6.portrait).matches:void 0;OEL=QW_!==void 0?QW_:AJ8>=930&&RI_>=550||AJ8>=550&&RI_>=930}oGa=OEL?{observe:function(J){L7(function(){var c;(c=J.onViewportEntered)==null||c.call(J)})},
unobserve:function(){}}:new EW(function(J){L7(function(){var c;
(c=J.onViewportEntered)==null||c.call(J)})})}var wbo=oGa;var eIQ=_.Q1(function(J){var c=!1,m=_.oN("img",function(b){_.f2(function(){c=!0;b.onload=null})});
_.ui(function(){var b,x=(b=J.data)==null?void 0:b.call(J),P,p=(P=J.getSrc)==null?void 0:P.call(J).cb,t;b=(t=J.config)==null?void 0:t.call(J);if(t=m.value)if(P=function(a,k){if(!c)return p?p(a,k):a},W8T(t,b),_.w("web_image_dont_reload_same_src")&&DFQ(t,x,P))_.w("web_image_dont_reload_same_src_simulate_load")&&t.dispatchEvent(new CustomEvent("load",{bubbles:!1,
cancelable:!1,detail:{message:"Simulating load event for already loaded image"}}));else{var I;L8t(t,x||null,P,b,(I=J.lazy)==null?void 0:I.call(J))}},"v0I2p");
return _.C("img",{el:m})},"c");
eIQ.idomCompat=!0;_.RA=_.Q1(function(J){var c=function(){var m,b=J.data(),x,P,p,t,I,a,k,H,T,r,W,Y,Z,d,G,e,A,l,y,pG,kt,nG,fG,Yt,Z3,oR,Em;var X$={contentMode:(x=J.contentMode)==null?void 0:x.call(J),loadedClass:(P=J.loadedClass)==null?void 0:P.call(J),isPreloaded:(p=J.isPreloaded)==null?void 0:p.call(J),notifyOnLoaded:(t=J.notifyOnLoaded)==null?void 0:t.call(J),notifyOnUnloaded:(I=J.notifyOnUnloaded)==null?void 0:I.call(J),preferredThumbnail:(a=J.preferredThumbnail)==null?void 0:a.call(J),preserveHeight:(k=J.preserveHeight)==
null?void 0:k.call(J),preserveWidth:(H=J.preserveWidth)==null?void 0:H.call(J),objectPosition:(T=J.objectPosition)==null?void 0:T.call(J),targetWidth:(r=J.targetWidth)==null?void 0:r.call(J),targetHeight:(W=J.targetHeight)==null?void 0:W.call(J),shouldShowPlaceholder:(Y=J.shouldShowPlaceholder)==null?void 0:Y.call(J),useWidth:(Z=J.useWidth)==null?void 0:Z.call(J),alt:(d=J.alt)==null?void 0:d.call(J),className:(G=J.className)==null?void 0:G.call(J),onerror:J.onerror,onload:J.onload,style$:((e=J.style$)==
null?void 0:e.call(J))||((A=J.style)==null?void 0:A.call(J)),color:(l=J.color)==null?void 0:l.call(J),width:(y=J.width)==null?void 0:y.call(J),height:(pG=J.height)==null?void 0:pG.call(J),"aria-hidden$":(oR=(kt=J["aria-hidden$"])==null?void 0:kt.call(J))!=null?oR:(nG=J.ariaHidden)==null?void 0:nG.call(J),draggable:(fG=J.draggable)==null?void 0:fG.call(J),"data-disabled$":(Em=(Yt=J["data-disabled$"])==null?void 0:Yt.call(J))!=null?Em:(Z3=J.dataDisabled)==null?void 0:Z3.call(J)};return faq(b,X$,(m=
J.hideOn404)==null?void 0:m.call(J))};
return _.C(_.sb,null,_.C(_.wu,{when:function(){var m;return((m=c())==null?void 0:m.type)==="image"}},function(){return _.C(eIQ,{data:function(){return c().image},
getSrc:{cb:function(m,b){var x=c().image.sources,P=c().config.isPreloaded,p=c().config.useWidth,t=c().config.targetWidth,I=c().config.targetHeight,a=c().config.preferredThumbnail;return _.Iat(b,x,P,p,t,I,a)||""}},
config:function(){var m=c().config,b;for(b in m)m[b]===void 0&&delete m[b];return m},
lazy:J.renderLazy})}),_.C(_.wu,{when:function(){var m;
return((m=c())==null?void 0:m.type)==="icon"}},function(){return _.C(_.HP,{icon:function(){return c().iconName},
role:function(){return c().config.role},
className:function(){return c().config.className},
style:function(){return c().config.style$+";width: "+(c().config.width+"px;height: ")+(c().config.height+"px;color: ")+(c().config.color+";")},
ariaLabel:function(){return c().config["aria-label$"]},
ariaHidden:function(){return c().config["aria-hidden$"]},
dataDisabled:function(){return c().config["data-disabled$"]}})}))},"d");
_.RA.idomCompat={callbacks:{callback:!0,onerror:!0,onload:!0}};var jWj=function(J){return function(c){return _.C(wP3,null,function(){var m=c.data(),b=_.XD(c.config);return _.C(jg,null,function(){return void J(m,b)})})}}(qXo),Xbe=_.Q1(function(J){var c=function(b){var x,P=_.Qn(function(T){x=YB(function(){for(var r=_.M(k()),W=r.next();!W.done;W=r.next()){W=UFe(W.value);
W=typeof W==="string"?document.createTextNode(W):W;if(!(W instanceof Node)){r=new _.w3("Part is not a node",W,typeof W);_.Xc(r);break}T.appendChild(W)}})}),p=eM(function(){return lpt(b())},{isEqual:YXu}),t=_.Ru(J.config),I=function(){var T,r=p();
return!((T=t())==null||!T.ariaLabel)||!(r.commandRuns&&r.commandRuns.length!==0||r.paragraphStyleRuns&&r.paragraphStyleRuns.length!==0)},a=eM(t,{isEqual:hOG}),k=function(){var T=FzT(p(),a());
B42(T,a());return p().content?xFQ(p().content,T).parts:[]},H=!0;
_.ui(function(){p();a();if(H)H=!1;else{var T=k();Promise.resolve().then(function(){var r=P.value;if(r){r.innerText="";var W;(W=x)==null||W();x=_.Dc(r,function(){return _.C(SXm,{parts:T})})}})}},"YlhjWd");
return _.C("span",{el:P,class:function(){return p()&&UeJ(p(),t())},
dir:function(){var T;return((T=t())==null?0:T.userInput)?"auto":void 0},
"aria-label":function(){var T;return I()?(T=t())==null?void 0:T.ariaLabel:void 0},
role:function(){return I()?"text":void 0}})},m;
return((m=J.config)==null?0:m.renderedFromFormattedString)?c(J.text):_.C(_.n,{cond:J.text,then:c})},"e");
Xbe.idomCompat=!0;_.j8=_.Q1(function(J){var c=_.Ru(J.text),m=dFJ(J);J.renderedFromFormattedString!==void 0&&(m.renderedFromFormattedString=!0);return _.w("attr_string_reactive")?_.C(Xbe,{text:c,config:m}):_.C(_.n,{cond:function(){var b;return c()&&((b=lpt(c()))==null?void 0:b.content)},
then:function(){return _.C(jWj,{data:J.text,config:m})},
debugInstance:"Apcuac"})},"f");
_.j8.idomCompat=!0;var GTo=function(J,c,m){c=c===void 0?"unknown":c;m=m===void 0?{}:m;_.w3.call(this,J+" ("+c+")",Object.assign({},{name:"YtWcwError",tagName:c},m));Object.setPrototypeOf(this,this.constructor.prototype)};
_.D(GTo,_.w3);_.oiQ=new WeakMap;_.RO3=!1;var AC2,QUr,OxD;_.vt=Symbol("eh");_.Fz=Symbol("fh");AC2=Symbol("gh");QUr=new Set(Object.getOwnPropertyNames(Element.prototype));OxD=Symbol("hh");var Fw6=_.Q1(function(J){return _.C("yt-attributed-string",{"aria-label":J.ariaLabel,hidden:J.hidden,id:J.id,class:J.className,"force-default-style":J.forceDefaultStyle},_.C(_.j8,{text:J.data,ariaLabel:J.ariaLabel,ellipsisTruncate:J.ellipsisTruncate,isOverlay:J.isOverlay,linkInheritColor:J.linkInheritColor,noPreWrap:J.noPreWrap,noWrap:J.noWrap,userInput:J.userInput,noEndpoints:J.noEndpoints,headerRuns:J.headerRuns}))},"g");
_.w("web_wiz_attributed_string")&&_.lv(Fw6,"yt-attributed-string",{props:{ariaHidden:_.vt,ariaLabel:_.vt,className:_.vt,ellipsisTruncate:_.vt,isOverlay:_.vt,linkInheritColor:_.vt,noEndpoints:_.vt,noStyleRuns:_.vt,noLinkColor:_.vt,noPreWrap:_.vt,noWrap:_.vt,skipOnClick:_.vt,userInput:_.vt,headerRuns:_.vt,id:_.vt,data:_.vt,hidden:_.vt,forceDefaultStyle:_.vt,text:_.Fz,stopPropagation:_.Fz,disableUpgrade:_.Fz,disable:_.Fz,slot:_.Fz}});var OW=function(){return _.h.apply(this,arguments)||this};
_.D(OW,_.h);OW.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},qXo(this.data,this.config))};
_.O([_.f(Py2),_.R("design:type",Object)],OW.prototype,"ytIdomTemplatingBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],OW.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],OW.prototype,"ariaLabel",void 0);_.O([_.U(),_.R("design:type",Boolean)],OW.prototype,"disable",void 0);_.O([_.U(),_.R("design:type",Boolean)],OW.prototype,"ellipsisTruncate",void 0);_.O([_.U(),_.R("design:type",Boolean)],OW.prototype,"isOverlay",void 0);
_.O([_.U(),_.R("design:type",Boolean)],OW.prototype,"linkInheritColor",void 0);_.O([_.U(),_.R("design:type",Boolean)],OW.prototype,"noPreWrap",void 0);_.O([_.U(),_.R("design:type",Boolean)],OW.prototype,"noWrap",void 0);_.O([_.U(),_.R("design:type",Boolean)],OW.prototype,"userInput",void 0);_.O([_.U(),_.R("design:type",Boolean)],OW.prototype,"noEndpoints",void 0);_.O([_.U(),_.R("design:type",Array)],OW.prototype,"headerRuns",void 0);
OW=_.O([_.uM({is:"yt-attributed-string",disableElementRegistration:!0})],OW);
_.w("web_wiz_attributed_string")||_.v(OW,"yt-attributed-string",function(){if(XUj===void 0){var J=document.createElement("template");_.z(J,"\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");J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);
J.content.insertBefore(YMC().content.cloneNode(!0),J.content.firstChild);XUj=J}J=XUj;return J},{mode:2});var l0$,yJj,giG;l0$=function(){this.firstThumbnailLoaded=!1};
_.BS_=function(){yJj||(yJj=new l0$);return yJj};
giG=function(J){var c=_.BS_();c.firstThumbnailLoaded||(c.firstThumbnailLoaded=!0,_.Y2("ftl",J))};
l0$.prototype.reset=function(){this.firstThumbnailLoaded=!1};var jU2=0,BYf=new WeakMap,lao=0,gp=new Set;var gGL,JXj=function(){return gGL!==void 0?gGL:gGL=document.createElement("template")};
document.head.appendChild(JXj().content);var cX2;var bMT,VaQ,Ag;_.m$=_.mo.caches;Ag=function(){};
Ag.prototype.open=function(J){return _.m$.open(mpQ(J))};
Ag.prototype.has=function(J){return _.m$.has(mpQ(J))};
Ag.prototype.delete=function(J){return _.m$.delete(mpQ(J))};
Ag.prototype.match=function(J,c){var m=this,b,x,P,p,t,I;return _.N(function(a){switch(a.nextAddress){case 1:return _.K(a,m.keys(),2);case 2:b=a.yieldResult,x=_.M(b),P=x.next();case 3:if(P.done){a.jumpTo(5);break}p=P.value;return _.K(a,m.open(p),6);case 6:return t=a.yieldResult,_.K(a,t.match(J,c),7);case 7:if(I=a.yieldResult)return a.return(I);P=x.next();a.jumpTo(3);break;case 5:return a.return()}})};
var PTQ=function(){};
_.D(PTQ,Ag);var mpQ=function(J){if(J.includes(":"))throw Error("kh`"+J);return J+":"+_.ij("CacheStorage get")};
PTQ.prototype.keys=function(){var J,c,m,b,x,P,p,t,I;return _.N(function(a){if(a.nextAddress==1)return J=[],c=_.ij("CacheStorage keys"),_.K(a,_.m$.keys(),2);m=a.yieldResult;b=_.M(m);for(x=b.next();!x.done;x=b.next())P=x.value,p=_.m4r(P),t=p.originalName,I=p.datasyncId,I===c&&J.push(t);return a.return(J)})};var RT=function(){var J=_.h.apply(this,arguments)||this;J.objectURL=null;J.loadTime=Infinity;return J};
_.D(RT,_.h);_.V=RT.prototype;_.V.renderIdom=function(){c42(this.hostElement);if(this.data){if(!this.width&&!this.height)throw Error("nh");this.setConfig();this.config&&zOm(this.data,this.config,void 0,this.shouldRenderLazy)}};
_.V.objectFitToContentMode=function(J){switch(J){case "CONTAIN":return"CONTENT_MODE_SCALE_ASPECT_FIT";case "FILL":return"CONTENT_MODE_SCALE_TO_FILL";default:return"CONTENT_MODE_SCALE_ASPECT_FILL"}};
_.V.logThumbnailFailureVe=function(){var J=_.rs(197497);_.JM(_.C7(),J);var c=_.Y3();c&&J&&c&&_.vA(c,[J])};
_.V.loadImageFromCacheIfExists=function(J){var c=this,m=J.target;(m==null?0:m.src)&&pNG(m.src).then(function(b){c.objectURL=_.wa(b).toString();c.setSrc(m,c.objectURL)}).catch(function(){})};
_.V.onError=function(J){var c=this;if(_.w("web_use_cache_for_image_fallback")){var m=J.target;m&&pNG(m.src).then(function(b){c.objectURL=_.wa(b).toString();c.setSrc(m,c.objectURL)}).catch(function(){_.w("kevlar_woffle_log_thumbnail_failure_ve")&&c.logThumbnailFailureVe();
_.w("kevlar_woffle_fallback_image")&&c.setSrc(m,"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")})}else this.revokeObjectURL()};
_.V.revokeObjectURL=function(){this.objectURL&&(URL.revokeObjectURL(this.objectURL),this.objectURL=null)};
_.V.setConfig=function(){var J=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(c){J.loadImageFromCacheIfExists(c);J.revokeObjectURL();J4T(J.hostElement)},
onerror:function(c){J.onError(c)},
targetHeight:this.height,targetWidth:this.width,shouldShowPlaceholder:_.w("kevlar_thumbnail_bg"),useWidth:this.useWidth}};
_.V.setSrc=function(J,c){c&&(J.src=c)};
_.O([_.f(Py2),_.R("design:type",Object)],RT.prototype,"ytIdomTemplatingBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],RT.prototype,"data",void 0);_.O([_.U(),_.R("design:type",String)],RT.prototype,"alt",void 0);_.O([_.U(),_.R("design:type",Boolean)],RT.prototype,"ftlEligible",void 0);_.O([_.U(),_.R("design:type",Number)],RT.prototype,"height",void 0);_.O([_.U(),_.R("design:type",Boolean)],RT.prototype,"notifyOnLoaded",void 0);
_.O([_.U(),_.R("design:type",Boolean)],RT.prototype,"notifyOnUnloaded",void 0);_.O([_.U(),_.R("design:type",String)],RT.prototype,"objectFit",void 0);_.O([_.U(),_.R("design:type",String)],RT.prototype,"objectPosition",void 0);_.O([_.U(),_.R("design:type",String)],RT.prototype,"preferredThumbnail",void 0);_.O([_.U(),_.R("design:type",Boolean)],RT.prototype,"preserveHeight",void 0);_.O([_.U(),_.R("design:type",Boolean)],RT.prototype,"preserveWidth",void 0);
_.O([_.U({value:!0}),_.R("design:type",Boolean)],RT.prototype,"useWidth",void 0);_.O([_.U({value:function(){return!_.Ss("DISABLE_YT_IMG_DELAY_LOADING",!1)}}),
_.R("design:type",Boolean)],RT.prototype,"shouldRenderLazy",void 0);_.O([_.U(),_.R("design:type",Number)],RT.prototype,"width",void 0);RT=_.O([_.uM({is:"yt-image",disableElementRegistration:!0})],RT);
_.v(RT,"yt-image",function(){if(cX2===void 0){var J=document.createElement("template");_.z(J,"\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");J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);J.content.insertBefore(JXj().content.cloneNode(!0),J.content.firstChild);
cX2=J}J=cX2;return J},{mode:2});var oT=function(){return _.h.apply(this,arguments)||this};
_.D(oT,_.h);oT.prototype.onShow_=function(){if(this.data&&this.data.onVisibleCommand){var J=_.ZG(this.data.onVisibleCommand);J&&this.ytComponentBehavior.resolveCommand(J)}};
_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],oT.prototype,"ytComponentBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],oT.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.hg.YtVisibilityBehavior),_.R("design:type",Object)],oT.prototype,"ytVisibilityBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],oT.prototype,"data",void 0);oT=_.O([_.uM({disableElementRegistration:!0,is:"yt-bumper-user-edu-content-view-model"})],oT);
_.v(oT,"yt-bumper-user-edu-content-view-model",function(){if(bE_===void 0){var J=document.createElement("template");_.z(J,'\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>');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);var c=J.content,m=c.insertBefore;mo2===void 0&&(mo2=document.createElement("template"));var b=mo2;m.call(c,b.content.cloneNode(!0),J.content.firstChild);bE_=J}J=bE_;return J},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var b5Q;var xpa,VZ8=function(){if(xpa!==void 0)return xpa;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);var c=J.content,m=c.insertBefore;b5Q===void 0&&(b5Q=document.createElement("template"));var b=b5Q;m.call(c,b.content.cloneNode(!0),J.content.firstChild);return xpa=J};var Pp_;_.Qw={};Pp_=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"]);_.Qw.YtTaskEmitterBehavior={created:function(){this.cachedProviderNode_=null},
detached:function(){this.cachedProviderNode_=null},
getTaskManager:function(){var J=this.getContext_();return J?J.getTaskManager():_.ft},
getContext_:function(){if(this.shouldUseTaskManager()){if(!this.cachedProviderNode_){var J=_.cA(this.hostElement,"yt-get-context-provider",{});J.detail&&J.detail.contextProvider?this.cachedProviderNode_=J.detail.contextProvider:this.hostElement.parentElement&&(this.cachedProviderNode_=this)}if(this.cachedProviderNode_&&this.cachedProviderNode_.getProvidedContext&&this.cachedProviderNode_.getProvidedContext())return this.cachedProviderNode_.getProvidedContext()}},
shouldUseTaskManager:function(){return Pp_.has(this.hostElement.localName)},
getNetworkManager:function(){var J=this.getContext_();if(J)return J.getNetworkManager()}};var aRo,MZ_,Nr$,pk$;_.eF=function(J){var c=MZ_.get(J);if(c&&(c=c.pop()))return pk$++,c;Nr$++;try{var m=document.createElement(J)}catch(b){throw new _.w3("ElementPool failed to create element",J,b.message);}return m};
aRo=function(J){var c=J.is;if(c){var m=MZ_.get(c);m||(m=[],MZ_.set(c,m));var b=_.Ub("ELEMENT_POOL_CONFIG")||{};m.length>=(b[c]!==void 0?b[c]:_.Ub("ELEMENT_POOL_DEFAULT_CAP",0))||m.push(J)}else _.qz(new _.w3("Element pool should only handle custom elements:",J.nodeName))};
MZ_=new Map;Nr$=0;pk$=0;var bB=new WeakMap,CTm=new WeakMap;var Iya;_.jF=function(J,c,m){m=m===void 0?_.LZ():m;this.JSC$11690_defaultPriority=J;this.signal=c;this.scheduler=m;this.nextJobDescriptor=0;this.JSC$11690_parkedJobs=[];this.scheduledJobs=new Map};
_.FL=function(J,c){if(c){var m=_.f$();J.signal&&!_.Y7(m,J.signal)?(m.addListener(J.signal,function(){J.processSignal()}),J.JSC$11690_parkedJobs.push({job:c,
priority:void 0})):tZ_(J,c)}};
Iya=function(J,c){if(c!==J.JSC$11690_defaultPriority){J.JSC$11690_defaultPriority=c;for(var m=_.M(J.scheduledJobs.values()),b=m.next();!b.done;b=m.next())b=b.value,J.scheduler.cancelJob(b.jobId),b.jobId=J.scheduler.addJob(b.jobWrapper,c)}};
_.jF.prototype.flushJobs=function(){Iya(this,10);this.processSignal()};
_.jF.prototype.cancel=function(){for(var J=_.M(this.scheduledJobs),c=J.next();!c.done;c=J.next()){var m=_.M(c.value);c=m.next().value;m=m.next().value;this.scheduler.cancelJob(m.jobId);this.scheduledJobs.delete(c)}this.JSC$11690_parkedJobs=[]};
_.jF.prototype.processSignal=function(){for(var J=_.M(this.JSC$11690_parkedJobs),c=J.next();!c.done;c=J.next())c=c.value,tZ_(this,c.job,c.priority);this.JSC$11690_parkedJobs=[]};
var tZ_=function(J,c,m){m=m||J.JSC$11690_defaultPriority;if(m===10)JP(c);else{var b=J.nextJobDescriptor++,x=function(){c();J.scheduledJobs.delete(b)},P=J.scheduler.addJob(x,m);
J.scheduledJobs.set(b,{jobWrapper:x,jobId:P,priority:m})}};_.J5(nu3);var Tlq={propNames:[],synchronous:!1,enableUnsafeRenderOnNotifyPath:!1};zwu({beforeVisit:function(J){if(gU.has(J.type)){var c;(c=J.props).idomKey!=null||(c.idomKey=J.type)}else J.type.TAG_NAME&&(y1=J.type.TAG_NAME)},
afterRender:function(J,c){var m;y1=(m=c==null?void 0:c.type)!=null?m:""},
didPatch:function(){y1=""}});var Kl8;_.lU={};Kl8={"yt-live-chat-text-message-renderer":!0,"yt-live-chat-author-badge-renderer":!0};_.lU.YtRendererstamperBehavior=[_.Qw.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 J in this.stampDom){var c=this.stampDom[J];c&&c.id&&this.addReactiveSchema({type:"observe",method:{methodName:taR(c.id),args:[{type:"wildcard",path:J}]}})}else{(J=(this.constructor.generatedFrom||this).observers)||(J=[]);for(c in this.stampDom){var m=this.stampDom[c];m&&m.id&&J.push(taR(m.id)+"("+c+".*)")}this.constructor.generatedFrom.observers=J}},
addStampDomObserverFns_:function(){for(var J in this.stampDom){var c=this.stampDom[J];c.id?(this[taR(c.id)]=this.rendererStamperObserver_.bind(this,J,c.id),this.hasDataPath_[J]=!1):(c=new _.w3("Bad rendererstamper config",this.is+":"+J),_.Xc(c))}},
rendererStamperObserver_:function(J,c,m){if(m.path==J){if(m.value===void 0&&!this.hasDataPath_[J])return;this.hasDataPath_[J]=m.value!==void 0}this.rendererStamperApplyChangeRecord_(J,c,m)},
rendererStamperApplyChangeRecord_:function(J,c,m){var b=this.renderJobsMap_[c],x=null;J==m.path?(m=m.value,_.yJ(m)||(m=m===void 0||m===null?[]:[m]),J=this.stampDom[J],J.mapping&&(x=this.stampDomArray_.bind(this,m,c,J.mapping,J.reuseComponents,J.events,J.stamperStableList)),b&&b.cancel(),m=J.usePageScheduler?this.getTaskManager():void 0,b||J.initialRenderPriority==void 0)?J.renderPriority==void 0||b||(b=new _.jF(J.renderPriority,J.waitForSignal,m),this.renderJobsMap_[c]=b):(b=new _.jF(J.initialRenderPriority,
J.waitForSignal,m),this.renderJobsMap_[c]=b,x=function(P,p){P();Iya(p,10)}.bind(this,x,b)):x=J+".splices"==m.path?this.stampDomArraySplices_.bind(this,J,c,m.value):this.forwardRendererStamperChanges_.bind(this,J,c,m);
b?_.FL(b,x):x()},
forwardRendererStamperChanges_:function(J,c,m){var b=m.path.slice(J.length+1),x=this.getStampContainer_(c),P=b.indexOf("."),p=b.substring(0,P),t=!1,I=0,a=parseInt(p,0);if(p[0]=="#"){t=parseInt(p.substring(1),0);a=this.get(J);var k=this.get([J,p]);a[t]==k?I=t:I=a.indexOf(k);t=!0}else isNaN(a)||(I=a,t=!0);t&&(b=b.substring(p.length+1),P=b.indexOf("."));p=_.rK(x).children[I];var H;if(x=(H=p==null?void 0:p.polymerController)!=null?H:p)b="data"+b.slice(P),typeof x.notifyPath!=="function"?_.qz(new _.w3("notifyPath missing",
this.is+": "+J+", "+c)):m.value?x.notifyPath(b,m.value):x.notifyPath(b)},
stampDomArraySplices_:function(J,c,m){if(m&&m.indexSplices){var b=this.getStampContainer_(c);if(b){for(var x=_.rK(b),P=K6e(this.stampDom[J].reuseComponents),p=m.indexSplices.length,t=0;t<p;t++){for(var I=m.indexSplices[t],a=x.children[I.index],k=I.removed.length;k>0;k--)a&&a.parentElement&&(_.rK(a.parentElement).removeChild(a),P&&aRo(a),a=x.children[I.index]);k=this.stampDom[J].mapping;for(var H=I.index+I.addedCount,T=document.createDocumentFragment(),r=P,W=I.index;W<H;W++){var Y=I.object[W],Z=Nle(k,
Y);if(Z){var d=k[Z];Y=Y[Z];Z=this.getComponentName_(d,Y);var G=a?bB.has(a):!1;r&&a&&a.is==Z&&G?(Z=a,this.telemetry_.reuse++,a=a.nextElementSibling):r&&a&&G?(Z=this.createComponent_(d,Y,P),G=_.rK(a).nextElementSibling,x.insertBefore(Z,G),HMG(this.is,x,a,P),a=G):(r=!1,Z=this.createComponent_(d,Y,P),T.appendChild(Z));this.deferRenderStamperBinding_(Z,d,Y)}else d=new _.w3("Unimplemented type",J,c,b.tagName,Object.keys(Y)[0]),_.Xc(d)}x.insertBefore(T,a)}this.flushRenderStamperComponentBindings_();this.stampDom[J].events&&
_.cA(this.hostElement,"yt-rendererstamper-finished",{container:b})}else J=new _.w3("Container object not found",c,this.hostElement?this.hostElement.is:""),_.Xc(J)}},
stampDomArray_:function(J,c,m,b,x,P){var p=this.getStampContainer_(c);if(p)if(c=_.rK(p),b=K6e(b),J){var t=0,I=0,a;if(P=P===void 0?_.Ss("STAMPER_STABLE_LIST",!1):P||!1)for(a=c.firstElementChild;a&&!bB.has(a)&&J.length>I;){P=J[I];var k=Nle(m,P);if(k){if(this.getComponentName_(m[k],P[k])!=a.is){var H=this.createComponent_(m[k],P[k],b),T=_.rK(a).nextElementSibling;T?c.insertBefore(H,T):c.appendChild(H);HMG(this.is,c,a,b);a=H}else this.telemetry_.reuse++;this.deferRenderStamperBinding_(a,m[k],P[k]);t++;
I++;a=_.rK(a).nextElementSibling}else I++}iMQ(this.is,c,t,b);t=a;if(J.length>I){P=document.createDocumentFragment();for(k=J.length;I<k;I++)if(H=J[I],T=Nle(m,H))a=this.createComponent_(m[T],H[T],b),this.deferRenderStamperBinding_(a,m[T],H[T]),P.appendChild(a);t&&_.rK(t).parentNode&&a&&!bB.has(a)?c.insertBefore(P,t):c.appendChild(P)}this.flushRenderStamperComponentBindings_();this.markDirty&&this.markDirty();x&&_.cA(this.hostElement,"yt-rendererstamper-finished",{container:p})}else iMQ(this.is,c,0,
b);else J=new _.w3("Container object not found",c,this.hostElement?this.hostElement.is:""),_.Xc(J)},
getStampContainer_:function(J){return this.$&&this.$[J]||_.Bj(this.hostElement).querySelector("#"+J)},
getComponentName_:function(J,c){return typeof J==="string"?J:J.matcher?J.matcher.call(this,c):J.component},
createComponent_:function(J,c,m){J=this.getComponentName_(J,c);try{var b=Jd.has(J)||gU.has(J);if(m&&!b){var x=_.eF(J);try{_.V1(x)}catch(P){m="Failed to clear styles for "+J+".",P.message&&(m+=" Original error: "+P.message),_.qz(new _.w3(m))}}else x=document.createElement(J)}catch(P){return x="YtRendererStamperBehavior failed to create "+J+".",P.message&&(x+=" Original description: "+P.message),P.message="YtRendererStamperBehavior failed to create element",_.Ue(P,x),Kl8.hasOwnProperty(J)?_.qz(P):_.Xc(P),
document.createElement("SPAN")}this.telemetry_.create++;return x},
deferRenderStamperBinding_:function(J,c,m){this.deferredBindingTasks_.push({component:J,typeOrConfig:c,data:m})},
flushRenderStamperComponentBindings_:function(){for(var J=0,c=this.deferredBindingTasks_.length;J<c;J++){var m=this.deferredBindingTasks_[J];if(!m)break;var b=void 0,x=void 0,P=void 0,p=void 0,t=m.component,I=m.typeOrConfig;m=m.data;var a=(p=t.polymerController)!=null?p:t;p=t.loggingStatus;try{p&&(p.isRendererStamper=!0);if(typeof I!=="string"){for(P in I.attributes)I.attributes[P]===!0?t.setAttribute(P,""):I.attributes[P]===!1?t.removeAttribute(P):t.setAttribute(P,I.attributes[P]);for(x in I.params)a[x]=
I.params[x],t!==a&&ns(t.localName,x,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");for(b in I.properties){var k=I.properties[b];if(k){var H=IR3(k);a[b]=this.get(H);t!==a&&ns(t.localName,b,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");if(b==="on-tap"||b==="on-click"){var T=this.get(H);t.addEventListener("click",T);CTm.set(t,{property:b,listener:{type:"element",eventName:"click",handler:T}})}}else{var r=new _.w3("Undefined property binding",b);_.Xc(r)}}}if(I.classListBinding){var W=IR3(I.classListBinding),
Y=W?this[W]:null;if(Y)for(b=0;b<Y.length;b++)_.mq(t,Y[b],!0)}a.data=m}finally{p&&(p.isRendererStamper=!1)}if(b=bB.get(t))t.hidden=!1,bB.delete(t),_.ft.cancelJob(b)}this.deferredBindingTasks_.length=0}}];_.yw={YtActionHandlerBehavior:[{actionMap:{},attached:function(){this.registerActionMap(this.actionMap)},
detached:function(){this.unregisterActionMap(this.actionMap)},
registerActionMap:function(J){for(var c=_.vO.getInstance(),m=_.M(Object.keys(J)),b=m.next();!b.done;b=m.next()){var x=b.value;b=J[x];if(this&&this[b]){var P=c.actionRoutingMap.get(x);P||(P=new Map,c.actionRoutingMap.set(x,P));c.registerActionHandler(this,x,this[b].bind(this),P)}else x=Error("hd"),x.params=b,_.ha(x)}},
unregisterActionMap:function(J){_.AI(_.vO.getInstance(),J,this)}}]};var PP=new Map([["FACE_HAPPY",{name:"animated_face_happy_light",nameDarkTheme:"animated_face_happy_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_happy.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_happy.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_HAPPY",totalFrames:121,lazyLoad:!1}],["FACE_MEH",{name:"animated_face_meh_light",nameDarkTheme:"animated_face_meh_dark",
path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_meh.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_meh.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_MEH",totalFrames:121,lazyLoad:!1}],["FACE_SAD",{name:"animated_face_sad_light",nameDarkTheme:"animated_face_sad_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_sad.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_sad.json",
lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_SAD",totalFrames:121,lazyLoad:!1}],["FACE_UNHAPPY",{name:"animated_face_unhappy_light",nameDarkTheme:"animated_face_unhappy_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_unhappy.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_unhappy.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_UNHAPPY",totalFrames:121,
lazyLoad:!1}],["FACE_VERY_HAPPY",{name:"animated_face_very_happy_light",nameDarkTheme:"animated_face_very_happy_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_very_happy.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_very_happy.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_VERY_HAPPY",totalFrames:121,lazyLoad:!1}],["LIKE",{name:"animated_like_light",nameDarkTheme:"animated_like_dark",
path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_light_v4.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_v4.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE",totalFrames:60,lazyLoad:!0}],["NOTIFICATION_BELL",{name:"notification_bell_light",nameDarkTheme:"notification_bell_dark",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_light.json",
pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_dark.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"NOTIFICATION_BELL",totalFrames:79,lazyLoad:!1}]]);var Vd;var Md=new Map;var ZMJ=window.matchMedia("(forced-colors: active)").matches;var Cp_;var ayB;var hD3=new _.oE("LOTTIE_LOADER_TOKEN");_.lv(_.Q1(function(J){return _.C("ytd-lottie-player",{id:J.id,hidden:J.hidden,class:J.className,"aria-label":J.ariaLabel,style:"display: block;"},_.C(_.Nd,{data:J.data,animationName:function(){var c;return((c=J.data().animationConfig)==null?void 0:c.name)||""},
animationRef:function(){return J.data().animationRef}}))},"h"),"ytd-lottie-player",{props:{data:_.vt,
id:_.vt,hidden:_.vt,className:_.vt,ariaLabel:_.vt}});var Bt=function(){var J=_.h.apply(this,arguments)||this;J.animationRef={};return J};
_.D(Bt,_.h);_.V=Bt.prototype;
_.V.handlePropertyChange=function(){var J=this.animatedIcon,c=this.active,m=this.isDarkTheme;if(J){var b=this.previousActive!==c;this.previousActive=c;this.animationRef.lottieEl?b&&this.toggleAnimation(c,J.totalFrames):c?this.initializeAnimationAsToggled(J.lottiePlayerProps,J.totalFrames):this.initializeAnimationAsUntoggled(J.lottiePlayerProps);J.lottiePlayerProps.animationRef=this.animationRef;this.animatedIconType=J.type;this.lottiePlayerProps=this.computeLottiePlayerProps(J,m)}};
_.V.computeLottiePlayerProps=function(J,c){var m=this.deepCloneLottiePlayerProps(J);c?(c=J.nameDarkTheme,J=J.pathDarkTheme):(c=J.name,J=J.path);m.animationConfig.name=c;(c=Md.get(J))?m.animationConfig.animationData=c:m.animationConfig.path=J;return m};
_.V.initializeAnimationAsToggled=function(J,c){J.animationConfig.initialSegment=[c-1,c]};
_.V.initializeAnimationAsUntoggled=function(J){J.animationConfig.initialSegment=void 0};
_.V.toggleAnimation=function(J,c){if(J){var m;(m=this.animationRef.lottieEl)==null||m.playSegments([0,c],!0)}else{var b;(b=this.animationRef.lottieEl)==null||b.playSegments([0,1],!0)}};
_.V.deepCloneLottiePlayerProps=function(J){var c=Object.assign({},J.lottiePlayerProps.animationConfig);J=Object.assign({},J.lottiePlayerProps);J.animationConfig=c;return J};
Bt.prototype.handlePropertyChange=Bt.prototype.handlePropertyChange;_.O([_.U(),_.R("design:type",Object)],Bt.prototype,"animatedIcon",void 0);_.O([_.U({value:!1}),_.R("design:type",Boolean)],Bt.prototype,"active",void 0);_.O([_.U(),_.R("design:type",Boolean)],Bt.prototype,"isDarkTheme",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",String)],Bt.prototype,"animatedIconType",void 0);_.O([_.U(),_.R("design:type",Boolean)],Bt.prototype,"previousActive",void 0);
_.O([_.U(),_.R("design:type",Object)],Bt.prototype,"lottiePlayerProps",void 0);_.O([_.U(),_.R("design:type",Object)],Bt.prototype,"animationRef",void 0);_.O([_.NE("animatedIcon","active","isDarkTheme"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Bt.prototype,"handlePropertyChange",null);Bt=_.O([_.uM({is:"yt-animated-icon",disableElementRegistration:!0})],Bt);
_.v(Bt,"yt-animated-icon",function(){if(ayB===void 0){var J=document.createElement("template");_.z(J,'\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>');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;Cp_===void 0&&(Cp_=document.createElement("template"));var b=Cp_;m.call(c,b.content.cloneNode(!0),J.content.firstChild);ayB=J}J=ayB;return J},{mode:2});var ka8;var H5C;var Gbq=_.Q1(function(J){var c=_.Q5("span"),m=f3(function(){return{value:null}});
_.f2(function(){var x;(x=m.value)==null||x.cancel()});
var b=_.n2(J.data,{equals:function(x,P){return x.iconName===P.iconName&&x.iconStyle===P.iconStyle&&x.iconSize===P.iconSize&&x.iconSetName===P.iconSetName&&x.iconSelected===P.iconSelected}},"aoiXAb");
_.ui(function(){var x,P=(x=J.options)==null?void 0:x.call(J);$4f(c,m,b(),P)},"QXgxJd");
return _.C("span",{class:"yt-icon-shape",el:c})},"i");
Gbq.idomCompat=!0;var Hbo=["youtube_fill","youtube_outline"];var i5$=new _.io({type:"iconset",value:void 0}),gF=function(){var J=_.h.apply(this,arguments)||this;J.isDarkTheme=document.documentElement.hasAttribute("dark");J.iconName="";J.iconsetName="yt-icons";J.iconset=null;J.missingIconSet=!1;J.iconType=null;J.iconShapeDataSignal=_.K2(void 0,void 0,"RQ9kUb");J.renderingOptionsSignal=_.K2({iconWidth:"100%",iconHeight:"100%",iconFilter:J.iconFilter},void 0,"qtx8Ef");J.wizHasRendered=!1;J.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return J};
_.D(gF,_.h);gF.prototype.onDarkModeToggledAction=function(J){J!==this.isDarkTheme&&(this.isDarkTheme=J)};
gF.prototype.handlePropertyChange=function(){var J=this,c,m,b,x,P,p,t,I,a,k,H,T,r,W,Y,Z,d;return _.N(function(G){switch(G.nextAddress){case 1:if(c=!J.icon&&!J.iconName||!J.isAttached)return G.return();m=J;b=m.icon;x=m.size;P=m.defaultToFilled;p=m.active;t=m.targetContainer;J.toggleContainerClass(t);_.w("kevlar_use_wil_icons")&&b&&(I=kaq(b),J.iconType=I.length?I[1]:null);if(b){G.jumpTo(2);break}J.iconsetName="";J.iconName="";return _.K(G,J.renderIcon(t,b),3);case 3:return G.return();case 2:a=gF.computeIcon(b);
k=kaq(a);k.length&&(J.iconsetName=k[0],J.iconName=k[1]);if(!_.w("kevlar_use_wil_icons")){G.jumpTo(4);break}H=gF;T=H.getIconShapeData;r=J.iconType;W=J.active;Y=J.defaultToFilled;Z=J.size;d=J.iconsetName;return _.K(G,gF.getIconManager(),6);case 6:return _.K(G,T.call(H,r,W,Y,Z,d,G.yieldResult),5);case 5:J.iconShapeData=G.yieldResult;case 4:if(J.shouldRenderIconShape(t)){G.jumpTo(7);break}return _.K(G,J.determineIconSet(a,p,P,x,t),7);case 7:return _.K(G,J.renderIcon(t,b),0)}})};
gF.prototype.toggleContainerClass=function(J){J?this.hostElement.classList.add("external-container"):this.hostElement.classList.remove("external-container")};
gF.computeIcon=function(J){return!_.w("default_to_innertube_icon")||J.indexOf(":")>0?J:_.Pd(J)};
_.V=gF.prototype;_.V.determineIconSet=function(J,c,m,b){var x=this;return _.N(function(P){return P.nextAddress==1?_.w("kevlar_system_icons")||_.Ub("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||_.Ub("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?_.K(P,x.switchToYtSysIconset(J,c,m,b),3):P.jumpTo(2):P.nextAddress!=2?P.return():_.K(P,x.useYtSysIconsetForMissingIcons(J,c,m,b),0)})};
_.V.switchToYtSysIconset=function(J,c,m,b){var x=this,P,p,t,I,a,k,H;return _.N(function(T){switch(T.nextAddress){case 1:if(!J||x.iconsetName!=="yt-icons"&&x.iconsetName!=="yt-sys-icons"){T.jumpTo(0);break}P=kaq(J);p=P[1];p=_.WlG(p);_.w("enable_polymer_icons_replace_underscores_dash")&&p.includes("_filled")&&(p=p.replace(/_filled/g,"-filled"));return _.K(T,Vn(p,!0),3);case 3:return t=T.yieldResult,_.K(T,Vn(p,!1),4);case 4:if((I=T.yieldResult)||c&&t)x.iconsetName="yt-sys-icons";x.iconName=x.getIconName(p,
c,m,I,t);if(b===24){T.jumpTo(0);break}a="yt-sys-icons"+b+":"+x.iconName;return _.K(T,Vn(a,!1,!0),6);case 6:return k=T.yieldResult,_.K(T,Vn(a,!0,!0),7);case 7:H=T.yieldResult;x.iconName=x.getIconName(p,c,m,k,H);if(!c&&k||c&&H)x.iconsetName="yt-sys-icons"+b;_.tD(T)}})};
_.V.getIconName=function(J,c,m,b,x){J.includes("-filled")&&(J=J.replace("-filled",""));return x&&(c||m)?J+"-filled":J};
_.V.useYtSysIconsetForMissingIcons=function(J,c,m,b){var x=this,P,p;return _.N(function(t){if(t.nextAddress==1)return x.iconsetName!=="yt-icons"?t.jumpTo(0):_.K(t,Vn(x.iconName,!1,!1,!0),3);if(t.nextAddress!=4)return P=t.yieldResult,_.K(t,Vn(x.iconName,!1),4);p=t.yieldResult;if(P||!p)return t.jumpTo(0);x.iconsetName="yt-sys-icons";return _.K(t,x.switchToYtSysIconset(J,c,m,b),0)})};
_.V.onIconsetAdded=function(){this.renderIcon(this.targetContainer,this.icon)};
gF.getIconManager=function(){return _.N(function(J){try{return J.return(_.BG().resolve(_.Ml))}catch(c){return J.return(new Promise(function(m){_.f$().parkOrScheduleJob(function(){m(_.BG().resolve(_.Ml))},2,"ci")}))}})};
gF.getIconShapeData=function(J,c,m,b,x,P){b=b===void 0?24:b;if(J){J=J.toLowerCase();var p=J.endsWith("_filled")||J.endsWith("-filled");c={iconName:J,iconStyle:(c===void 0?0:c)||(m===void 0?0:m)||p?"youtube_fill":"youtube_outline",iconSize:b,iconSetName:x===void 0?"yt-icons":x};m=!!P.resolveIcon(c);m||(c.iconSize=void 0,m=!!P.resolveIcon(c));!m&&p&&(c.iconName=J.substring(0,J.length-7),c.iconSize=b,m=!!P.resolveIcon(c),m||(c.iconSize=void 0,m=!!P.resolveIcon(c)));m||(c.iconStyle=void 0,m=!!P.resolveIcon(c));
m||_.qz(new _.w3("Icon not supported",{iconName:c.iconName,iconStyle:c.iconStyle,iconSize:c.iconSize,iconType:J}));return m?c:void 0}};
_.V=gF.prototype;_.V.shouldRenderIconShape=function(J){if(!_.w("kevlar_use_wil_icons")||!this.iconType||!this.iconShapeData||this.isAnimatedIcon)return!1;J=this.getContainer(J);return!qho(J,this.icon)};
_.V.renderIcon=function(J,c){var m=this,b,x,P,p,t,I,a,k;return _.N(function(H){switch(H.nextAddress){case 1:if(c&&m.icon!==c)return H.return();b=m.getContainer(J);x=qho(b,m.icon);if(m.shouldRenderIconShape(J)&&m.iconType)return m.applyIconShape(x,b),H.return();m.removeIconShape();if(!b)return H.return();m.iconName===""&&m.iconset&&b&&(m.removeStaticIcon(m.iconset,b),x&&m.removeAnimatedIcon(b));if(m.iconName===""&&m.iconset||!m.iconsetName||!i5$)return H.return();m.iconset=i5$.byKey(m.iconsetName);
if(!m.iconset)return m.missingIconSet=!0,window.addEventListener("iron-iconset-added",_.ME(m,m.onIconsetAdded)),H.return();m.missingIconSet&&(m.missingIconSet=!1,window.removeEventListener("iron-iconset-added",_.ME(m,m.onIconsetAdded)));p=(P=x||m.isAnimatedIcon?XNq(m.icon):void 0)&&!P.lazyLoad;I=P&&((t=P)==null?void 0:t.lazyLoad)&&(P.lottiePlayerProps.animationConfig.animationData?!0:Md.get(m.isDarkTheme?P.pathDarkTheme:P.path)?!0:!1);if(p||I)return m.applyAnimatedIcon(b,P,m.iconset),H.return();if(I||
(a=P)==null||!a.lazyLoad){H.jumpTo(2);break}k=Sh2(P,m.isDarkTheme);m.applyStaticIcon(m.iconset,b,m.iconName,J,x);return _.K(H,k,3);case 3:return _.K(H,m.renderIcon(m.targetContainer,m.icon),4);case 4:return H.return();case 2:m.applyStaticIcon(m.iconset,b,m.iconName,J,x),_.tD(H)}})};
_.V.getContainer=function(J){var c,m=(c=ENQ(this.hostElement))==null?void 0:c.host;c=!!m&&!!m.polymerController;if(!J||c)return J?this.getTargetContainer(J,m):this.hostElement};
_.V.getTargetContainer=function(J,c){var m=_.Bj(c).querySelector("#"+J);m||(J=new _.w3("yt-icon container missing",c.is,J),_.Xc(J));return m};
_.V.applyStaticIcon=function(J,c,m,b,x){x&&this.removeAnimatedIcon(c);this.removeIconShape();x=x&&!!this.iconType&&!!this.iconShapeData&&_.w("kevlar_use_wil_icons");try{x?this.applyIconShape(!1,c):J.applyIcon(c,m)}catch(P){this.handleError(P,b,c)}};
_.V.applyIconShape=function(J,c){this.iconset&&c&&(this.removeStaticIcon(this.iconset,c),J&&this.removeAnimatedIcon(c));J={iconWidth:"100%",iconHeight:"100%",iconFilter:this.iconFilter};var m=_.M(this.iconShapeDataSignal);c=m.next().value;m=m.next().value;var b=_.M(this.renderingOptionsSignal),x=b.next().value;b=b.next().value;m(this.iconShapeData);b(J);if(!this.wizHasRendered)for(this.wizHasRendered=!0,J=_.M(EuG(c,x)).next().value;J.firstChild;)_.Bj(this.hostElement).appendChild(J.firstChild)};
_.V.removeIconShape=function(){if(_.w("kevlar_use_wil_icons"))(0,this.iconShapeDataSignal[1])(void 0)};
_.V.removeStaticIcon=function(J,c){J.removeIcon(c)};
_.V.applyAnimatedIcon=function(J,c,m){this.removeStaticIcon(m,J);this.removeIconShape();var b;m=this.animatedIconElement&&((b=this.animatedIconElement.polymerController.animatedIcon)==null?void 0:b.type)===c.type;if(this.animatedIconElement&&m){this.animatedIconElement.polymerController.animatedIcon=c;var x;((x=this.animatedIconElement)==null?void 0:x.polymerController.active)!==this.active&&(this.animatedIconElement.polymerController.active=this.active)}else this.animatedIconElement&&this.removeAnimatedIcon(J),
this.animatedIconElement=document.createElement("yt-animated-icon"),this.animatedIconElement.polymerController.animatedIcon=c,this.animatedIconElement.polymerController.active=this.active,this.animatedIconElement.polymerController.isDarkTheme=this.isDarkTheme,_.w("kevlar_use_wil_icons")?J.insertBefore(this.animatedIconElement,J.childNodes[0]):(J=_.Bj(J),J.insertBefore(this.animatedIconElement,J.childNodes[0]))};
_.V.removeAnimatedIcon=function(J){_.w("kevlar_use_wil_icons")?this.animatedIconElement&&J.contains(this.animatedIconElement)&&J.removeChild(this.animatedIconElement):(J=_.Bj(J),this.animatedIconElement&&J.contains(this.animatedIconElement)&&J.removeChild(this.animatedIconElement));this.animatedIconElement=void 0};
_.V.handleError=function(J,c,m){_.Ue(J,this.iconName,c,m);c=qho(m,this.icon);var b=!1;window.location.href.includes("JpymaW6Lh2w")?b=!0:m._svgIcon&&(m=(m=m._svgIcon.parentNode)?m.tagName:"unknown",_.Ue(J,m),m==="YT-ICON"&&J.name==="NotFoundError"?b=!0:J.name==="NotFoundError"&&c&&(b=!0));b?_.qz(J):_.Xc(J)};
_.eE.Object.defineProperties(gF,{template:{configurable:!0,enumerable:!0,get:function(){if(H5C===void 0){var J=document.createElement("template");_.z(J,"\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");J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);var c=J.content,m=c.insertBefore;
ka8===void 0&&(ka8=document.createElement("template"));var b=ka8;m.call(c,b.content.cloneNode(!0),J.content.firstChild);H5C=J}J=H5C;return J}}});
gF.prototype.handlePropertyChange=gF.prototype.handlePropertyChange;_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],gF.prototype,"actionHandlerBehavior",void 0);_.O([_.U(),_.R("design:type",String)],gF.prototype,"icon",void 0);_.O([_.U({value:!1}),_.R("design:type",Boolean)],gF.prototype,"active",void 0);_.O([_.U({value:!1}),_.R("design:type",Boolean)],gF.prototype,"defaultToFilled",void 0);_.O([_.U({value:!1}),_.R("design:type",Boolean)],gF.prototype,"isAnimatedIcon",void 0);
_.O([_.U({value:24}),_.R("design:type",Number)],gF.prototype,"size",void 0);_.O([_.U({value:""}),_.R("design:type",String)],gF.prototype,"targetContainer",void 0);_.O([_.U(),_.R("design:type",Object)],gF.prototype,"animatedIconElement",void 0);_.O([_.U(),_.R("design:type",Object)],gF.prototype,"isDarkTheme",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],gF.prototype,"ariaHidden",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",String)],gF.prototype,"ariaLabel",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",String)],gF.prototype,"role",void 0);_.O([_.U(),_.R("design:type",String)],gF.prototype,"style",void 0);_.O([_.U(),_.R("design:type",String)],gF.prototype,"iconFilter",void 0);_.O([_.NE("icon","active","defaultToFilled","size","targetContainer","isAttached","isDarkTheme"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype",Promise)],gF.prototype,"handlePropertyChange",null);
gF=_.O([_.uM({is:"yt-icon",noInjection:!0})],gF);var nO_;var Tra=function(){var J=document.body,c=J.appendChild;if(nO_===void 0){var m=document.createElement("template");_.z(m,'\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>');
nO_=m}m=nO_;c.call(J,m.content)};
document.body?Tra():window.addEventListener("DOMContentLoaded",Tra);var wkQ,rX2=function(){return wkQ!==void 0?wkQ:wkQ=document.createElement("template")};
document.head.appendChild(rX2().content);var sJ$,LlZ=function(){return sJ$!==void 0?sJ$:sJ$=document.createElement("template")};
document.head.appendChild(LlZ().content);var Dpz;_.Js=new _.oE("KEY_MANAGER_TOKEN");var out={duration:1E3,easing:"ease",fill:"forwards"};_.J5(RDJ);var eDD={duration:1E3,easing:"ease",fill:"forwards"},un6=_.Q1(function(J){var c=_.oN("animated-rolling-character"),m=void 0,b=function(){var x,P;return QM((x=J.character)==null?void 0:x.call(J))||QM((P=J.previousCharacter)==null?void 0:P.call(J))};
_.ui(function(){if(J.marginMultiplier()){var x;(x=m)==null||x.cancel();if(b()){var P;x=((P=J.previousCharacter)==null?0:P.call(J))?Number(J.previousCharacter())+10:J.rollUp()?0:30;var p;if((p=J.shouldAnimate)==null||!p.call(J)){var t,I;x-=QGr((t=J.character)==null?void 0:t.call(J),(I=J.previousCharacter)==null?void 0:I.call(J),J.rollUp(),x)}}else{x=J.rollUp()?0:2;var a;(a=J.shouldAnimate)!=null&&a.call(J)||(P=x,p=J.rollUp()?-1:1,x=P-p)}c.value.style.marginTop="-"+x*J.marginMultiplier()+"px";var k;
if((k=J.shouldAnimate)==null?0:k.call(J)){var H,T;m=jGr(c.value,(H=J.character)==null?void 0:H.call(J),(T=J.previousCharacter)==null?void 0:T.call(J),J.rollUp(),x,b(),J.marginMultiplier())}else{var r;c.value.style.display=((r=J.character)==null?0:r.call(J))?"":"none"}}},"vt9b9b");
return _.C("animated-rolling-character",{el:c,class:"animated-rolling-character-wiz"},_.C(_.n,{cond:b,then:function(){return _.C(WlQ,null)},
else:function(){return _.C(zi2,{character:J.character})}}))},"j");
un6.idomCompat=!0;var F6e=_.w("web_enable_sink_animated_rolling_character_and_number")?un6:RDJ,fy6=_.w("web_enable_sink_animated_rolling_character_and_number")?un6:_.IO(RDJ),WlQ=_.Q1(function(){for(var J=[],c=1;c<30;c++)J.push(_.C("div",null,c%10));return _.C(_.cG,null,_.C("div",null,"\u00a0"),J,_.C("div",null,"\u00a0"))},"k"),zi2=_.Q1(function(J){var c=J.character;
return _.C(_.cG,null,_.C("div",null,"\u00a0"),_.C(_.n,{cond:function(){return!(c==null?0:c())||_.Mf(c==null?void 0:c())},
then:function(){return _.C("div",null,"\u00a0")},
else:function(){return _.C("div",null,c)}}),_.C("div",null,"\u00a0"))},"l");_.J5(lRR);var Ykj=_.Q1(function(J){var c=void 0,m=void 0,b=function(){var P;return((P=J.fontSizeMultiplier)==null?0:P.call(J))?J.heightPx()*J.fontSizeMultiplier():J.heightPx()},x=_.n2(function(){if(!J.numberText())return[];
var P,p,t=((P=J.forceRollUp)==null?void 0:P.call(J))||!m||!((p=J.numberValue)==null?0:p.call(J))||m<J.numberValue(),I,a=J.numberText();P=b();p=!((I=J.shouldAnimate)==null||!I.call(J));I=[];var k=0,H=0,T=(c?c.replace(/\D/g,"").length:0)-(a?a.replace(/\D/g,"").length:0),r=c?c.split(/(\d)/).filter(Boolean):[];for(a=a.split(/(\d)/).filter(Boolean);T<0;){var W=a[H];I.push({character:W,rollUp:t,marginMultiplier:P,shouldAnimate:p});H++;QM(W)&&T++}for(;k<T;)W=r[k],I.push({previousCharacter:W,rollUp:t,marginMultiplier:P,
shouldAnimate:p}),k++,QM(W)||T++;for(;H<a.length;)T=a[H],W=r[k],QM(T)===QM(W)?(H++,k++):QM(T)?(k++,T=void 0):QM(W)&&(H++,W=void 0),I.push({character:T,previousCharacter:W,rollUp:t,marginMultiplier:P,shouldAnimate:p});c=J.numberText();var Y;m=(Y=J.numberValue)==null?void 0:Y.call(J);return I},void 0,"B9AmNd");
return _.C("yt-animated-rolling-number",{class:"animated-rolling-number-wiz",style:function(){return J.numberText()?["height: "+b()+"px;","line-height: "+J.heightPx()+"px;"].join(" "):""},
dir:"ltr","aria-hidden":"true"},_.C(_.Te,{each:x,keyBy:"INDEX"},function(P){return _.C(fy6,{character:function(){return P().character},
previousCharacter:function(){return P().previousCharacter},
marginMultiplier:function(){return P().marginMultiplier},
rollUp:function(){return P().rollUp},
shouldAnimate:function(){return P().shouldAnimate}})}))},"m");
Ykj.idomCompat=!0;_.ter=_.w("web_enable_sink_animated_rolling_character_and_number")?Ykj:lRR;_.Xkz=_.w("web_enable_sink_animated_rolling_character_and_number")?Ykj:_.IO(lRR);_.cL=_.Q1(function(J){var c=_.oN("a",J.ref),m=J.aTagConfig?J.aTagConfig:_.n2(function(){var b,x,P,p,t,I;var a=(I=_.ZG((p=J.command)==null?void 0:p.call(J)))!=null?I:(t=J.command)==null?void 0:t.call(J);return _.Uv({innertubeCommand:a,skipOnClick:(b=J.skipOnClick)==null?void 0:b.call(J),stopPropagation:(x=J.dangerousStopPropagation)==null?void 0:x.call(J),defaultTarget:(P=J.target)==null?void 0:P.call(J)})||{}},void 0,"gnrRge");
_.ui(function(){c.value._data=m()._data;c.value.params=m().params},"dcjvAe");
return _.C("a",{el:c,href:function(){return m().href$},
rel:function(){return m().rel$},
class:function(){var b,x;return(x=m().className)!=null?x:(b=J.className)==null?void 0:b.call(J)},
style:function(){var b;if((b=J.style)==null?0:b.call(J))return J.style();var x;return((x=J.disabled)==null?0:x.call(J))?"pointer-events:none":""},
"aria-haspopup":function(){return!!m()["aria-haspopup$"]},
"force-new-state":Cq(function(){return m()["force-new-state$"]}),
title:Cq(function(){var b,x;return(x=m().title$)!=null?x:(b=J.title)==null?void 0:b.call(J)}),
role:Cq(function(){return m().role$}),
target:Cq(function(){return m().target$}),
dir:Cq(function(){var b;return((b=J.dir)==null?0:b.call(J))?J.dir():m().dir}),
tabindex:function(){var b;return m().tabindex$?Number(m().tabindex$):(b=J.tabIndex)==null?void 0:b.call(J)},
"aria-hidden":function(){var b,x;return(x=m()["aria-hidden$"])!=null?x:(b=J.ariaHidden)==null?void 0:b.call(J)},
"aria-label":function(){var b,x;return(x=m()["aria-label$"])!=null?x:(b=J.ariaLabel)==null?void 0:b.call(J)},
"aria-current":J.ariaCurrent,"aria-labelledby":J.ariaLabelledby,"aria-describedby":J.ariaDescribedby,"aria-selected":J.ariaSelected,"tab-identifier":J.tabIdentifier,"on:pointerdown":_.Kq(function(b){var x,P;return void((P=(x=m()).onpointerdown)==null?void 0:P.call(x,b))}),
"on:click":_.Kq(function(b){var x,P;return void((P=(x=m()).onclick)==null?void 0:P.call(x,b))})},J.children)},"n");var Z52=function(J,c){this.fillAnimation=new Animation(y4t(J),document.timeline);this.strokeAnimation=new Animation(Bl3(c),document.timeline)};
Z52.prototype.play=function(){var J,c;(c=(J=this.fillAnimation).play)==null||c.call(J);var m,b;(b=(m=this.strokeAnimation).play)==null||b.call(m)};
Z52.prototype.cancel=function(){var J,c;(c=(J=this.fillAnimation).cancel)==null||c.call(J);var m,b;(b=(m=this.strokeAnimation).cancel)==null||b.call(m)};_.TH=_.Q1(function(J){var c=J.model;var m=J.pointerDownEvent;var b=J.pointerUpEvent;var x=J.pointerLeaveEvent;J=_.oN("div");var P=_.kx({"border-radius":function(){return c().borderRadius}}),p=_.oN("div"),t=_.oN("div"),I=_.M(_.aO(function(){return(b==null?0:b())||(x==null?0:x())?!1:!(m==null||!m())||!1})),a=I.next().value,k=I.next().value,H=void 0,T=function(){!H&&t.value&&p.value&&typeof Animation==="function"&&typeof KeyframeEffect==="function"&&(H=new Z52(t.value,p.value));
var G;(G=H)==null||G.play()},r=function(){var G;
(G=H)==null||G.cancel()},W=function(){var G;
(G=H)==null||G.cancel()};
_.ui(function(){(b==null?0:b())&&T()},"YjVIpd");
_.ui(function(){(m==null?0:m())&&r()},"UrXvqb");
_.ui(function(){(x==null?0:x())&&W()},"QK6L8b");
I=_.Kq(function(){T();k(!1)});
var Y=_.Kq(function(){r();k(!0)}),Z=_.Kq(function(){W();
k(!1)});
_.f2(function(){if(H){var G;(G=H)==null||G.cancel();H=void 0}});
var d={};a=_.pq("yt-spec-touch-feedback-shape",function(){return guR(c().color)},(d["yt-spec-touch-feedback-shape--focused"]=function(){return!!c().focused&&!c().disabled},d["yt-spec-touch-feedback-shape--circular"]=function(){return!!c().circular},d["yt-spec-touch-feedback-shape--is-extended"]=function(){return!!c().isExtended},d["yt-spec-touch-feedback-shape--down"]=a,d["yt-spec-touch-feedback-shape--trigger-events"]=function(){return!!c().triggerEvents},d));
return _.C("yt-touch-feedback-shape",{style:_.kx({"border-radius":"inherit"})},_.C("div",{el:J,class:a,style:_.kx({"margin-top":function(){return c().customTopExtend?"-"+c().customTopExtend+"px":void 0}}),
"on:mousedown":Y,"on:mouseup":I,"on:pointerleave":Z,"on:touchstart":Y,"on:touchend":I,"aria-hidden":!0},_.C("div",{class:"yt-spec-touch-feedback-shape__stroke",style:P,el:p}),_.C("div",{class:"yt-spec-touch-feedback-shape__fill",style:P,el:t})))},"o");
_.TH.idomCompat=!0;var qkL={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 mX=_.Hr();mX=mX.toLowerCase();if(_.tq(mX,"android")){var UpB=mX.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);UpB&&parseFloat(UpB[1])<100||mX.match("("+Object.keys(qkL).join("|")+")")};var SkQ=_.Q1(function(J){return _.C(_.n,{cond:J.aTagConfig,then:function(c){return _.C(_.cL,{aTagConfig:c,disabled:J.disabled,className:J.className,style:J.style,title:J.title,ariaLabel:J.ariaLabel,ariaCurrent:function(){var m,b;return((m=J.toggleable)==null?void 0:m.call(J))&&((b=J.toggled)==null?void 0:b.call(J))}},J.children)},
else:function(){return _.C("button",{"on:click":_.Kq(function(c){var m;return(m=J.onClick)==null?void 0:m.call(J,c)}),
class:J.className,title:J.title,style:J.style,disabled:J.disabled,"aria-pressed":function(){var c,m;return((c=J.toggleable)==null?0:c.call(J))?!((m=J.toggled)==null||!m.call(J)):void 0},
"aria-label":J.ariaLabel,"aria-disabled":J.visiblyDisabled,"aria-hidden":J.ariaHidden,tabindex:J.tabIndex},J.children)}})},"p"),dpQ=_.Q1(function(J){var c=J.data;
var m=J.hasIconLeading;var b=J.hasIconLeadingTrailing;var x=J.hasIconTrailing;var P=J.iconButton;var p=J.iconClassName;var t=J.secondaryIconClassName;var I=J.icon;var a=J.secondaryIcon;var k=J.textContentClassName;return _.C(bH,{className:"",style:"display: inherit; justify-content: center"},_.C(_.n,{debugInstance:"V4z1Uc",cond:function(){return I&&(m()||b()||(P==null?void 0:P()))},
then:function(){return _.C(bH,null,_.C("div",{class:p,"aria-hidden":"true"},I==null?void 0:I()))}}),_.C(_.n,{debugInstance:"ok3btb",
cond:function(){return(c().buttonText||c().animatedTextProps||c().formattedButtonText)&&!(P==null?0:P())},
then:function(){return _.C(bH,null,_.C(hiL,{className:k,iconPosition:function(){return c().iconPosition},
text:function(){return c().buttonText},
oneOffCustomTextWrap:function(){return c().oneOffCustomTextWrap},
formattedButtonText:function(){return c().formattedButtonText},
animatedTextProps:function(){return c().animatedTextProps}}))}}),_.C(_.n,{debugInstance:"DO5Rz",
cond:x,then:function(){return _.C(bH,null,_.C("div",{class:p},I==null?void 0:I()))}}),_.C(_.n,{debugInstance:"bnojSc",
cond:b,then:function(){return _.C(bH,null,_.C("div",{class:t},a==null?void 0:a()))}}),_.C(_.n,{debugInstance:"HN3kad",
cond:function(){return!c().disabled&&!0},
then:function(){return _.C(_.TH,{model:function(){return{color:xgr(c())}}})}}))},"q"),hiL=_.Q1(function(J){var c=function(){var m,b;
return((m=J.iconPosition)==null?void 0:m.call(J))==="icon-with-label"||((b=J.oneOffCustomTextWrap)==null?void 0:b.call(J))};
return _.C("div",{class:J.className,"aria-hidden":function(){var m,b,x;return((m=J.ariaHidden)==null?void 0:m.call(J))&&(!((b=J.animatedTextProps)==null||!b.call(J))||!((x=J.formattedButtonText)==null||!x.call(J)))}},_.C(_.sb,null,_.C(_.wu,{when:function(){var m;
return(m=J.animatedTextProps)==null?void 0:m.call(J)}},function(){return _.C(_.Xkz,{numberText:function(){return J.animatedTextProps().numberText},
numberValue:function(){return J.animatedTextProps().numberValue},
heightPx:function(){return J.animatedTextProps().heightPx},
fontSizeMultiplier:function(){return J.animatedTextProps().fontSizeMultiplier},
shouldAnimate:function(){return J.animatedTextProps().shouldAnimate},
forceRollUp:function(){return J.animatedTextProps().forceRollUp}})}),_.C(_.wu,{when:function(){var m;
return(m=J.formattedButtonText)==null?void 0:m.call(J)}},function(){return _.C(_.j8,{text:function(){return Object.assign({},J.formattedButtonText(),{lineBreakMode:c()?"LINE_BREAK_MODE_BY_WORD_WRAPPING":J.formattedButtonText().lineBreakMode,
alignment:c()?"TEXT_ALIGNMENT_CENTER":J.formattedButtonText().alignment})},
noLinkColor:!0,noWrap:function(){return!c()}})}),_.C(_.wu,{when:function(){var m,b;
return((m=J.iconPosition)==null?void 0:m.call(J))==="icon-with-label"&&((b=J.text)==null?void 0:b.call(J))}},function(){return _.C(_.j8,{text:function(){return{content:J.text(),
lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}},
noLinkColor:!0,noWrap:!1})}),_.C(_.ru,null,function(){return J.text})))},"r"),$pC=_.Q1(function(J){return _.C(_.n,{debugInstance:"kM7Sgc",
cond:J.hasLabel,then:function(){var c;return _.C("label",{class:J.className},J.children,(c=J.textContent)==null?void 0:c.call(J))},
else:function(){return J.children}})},"s"),bH=_.Q1(function(J){return J.children},"t");var kHT=cF("stamper-context");var l$=_.Q1(function(J){var c=J.data;var m=J.icon;var b=J.iconName;var x=J.secondaryIcon;var P=J.secondaryIconName;var p=J.focusedOverride;HAG();var t=JYD(c),I=t.size,a=t.style;J=t.disabled;var k=t.onTap,H=t.alignByText,T=t.aTagConfig,r=t.customColors,W=t.segmentedPosition,Y=t.toggled,Z=t.toggleable,d=t.accessibilityLabel,G=t.onToggle,e=t.iconPosition,A=t.oneOffCustomTextWrap,l=t.disableTextEllipsis,y=t.disableBackdropFilter,pG=t.tooltipText,kt=t.ariaHidden,nG=t.tabIndex,fG=t.buttonText,Yt=t.formattedButtonText,
Z3=t.animatedTextProps,oR=bAR(c,m,x,b,P,p),Em=oR.type;m=oR.shouldFocus;b=oR.hasIconLeading;x=oR.hasIconTrailing;var X$=oR.hasIconLeadingTrailing,Hu=oR.hasIconOnly;P=oR.hasIconOnly40;var S6=oR.hasIconWithLabel;p=oR.iconButton;var a2=oR.visiblyDisabled;t=oR.overrideSmallSizeIcon;var Nu=oR.iconToRender;oR=oR.secondaryIconToRender;var cu={},t8={};return _.C($pC,{className:_.pq("yt-spec-button-shape-with-label",(cu["yt-spec-button-shape-with-label--is-overlay"]=function(){return a()==="overlay"||a()===
"overlay-dark"},cu)),
hasLabel:S6,textContent:function(){return _.C(hiL,{text:fG,className:"yt-spec-button-shape-with-label__label",ariaHidden:!0,oneOffCustomTextWrap:A,iconPosition:e,formattedButtonText:Yt,animatedTextProps:Z3})}},_.C(SkQ,{aTagConfig:T,
className:_.pq("yt-spec-button-shape-next",function(){return Pxo(Em())},function(){return a2()?void 0:Me2(a())},function(){return pcT(I())},(t8["yt-spec-button-shape-next--disabled"]=a2,t8["yt-spec-button-shape-next--focused"]=m,t8["yt-spec-button-shape-next--icon-trailing"]=x,t8["yt-spec-button-shape-next--icon-leading"]=b,t8["yt-spec-button-shape-next--icon-leading-trailing"]=X$,t8["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=function(){return X$()&&!(fG()||Yt())},t8["yt-spec-button-shape-next--icon-button"]=
function(){return Hu()||S6()},t8["yt-spec-button-shape-next--icon-only-default"]=P,t8["yt-spec-button-shape-next--align-by-text"]=H,t8["yt-spec-button-shape-next--segmented-start"]=function(){return W()==="start"},t8["yt-spec-button-shape-next--segmented-end"]=function(){return W()==="end"},t8["yt-spec-button-shape-next--override-small-size-icon"]=t,t8["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=A,t8["yt-spec-button-shape-next--disable-text-ellipsis"]=l,t8["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=
function(){return!y()&&Vem()},t8)),
style:function(){return NAt(r()).style},
onClick:function(I_){k==null||k(I_);Z()&&(G==null||G(I_))},
disabled:J,ariaLabel:d,toggleable:Z,toggled:Y,title:function(){var I_;return(I_=pG())!=null?I_:""},
visiblyDisabled:a2,ariaHidden:kt,tabIndex:nG},_.C(dpQ,{data:c,hasIconLeading:b,hasIconLeadingTrailing:X$,hasIconTrailing:x,iconButton:p,icon:Nu,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:oR})))},"u");
l$.idomCompat={callbacks:{icon:!0,secondaryIcon:!0}};var Ga6=_.Q1(function(J){var c=J.data;var m=J.id;var b=J.hidden;var x=J.className;var P=J.iconName;var p=J.secondaryIconName;J=_.M(_.K2(!1,void 0,"RyKHFc"));var t=J.next().value,I=J.next().value,a=function(){var H=_.BG().resolve(_.y6(_.Js));H&&I(H.isKeyBoardInUse())},k=function(){I(!1)};
J=_.oN("yt-button-shape",function(H){if(_.BG().resolve(_.y6(_.Js)))return H.addEventListener("focusin",a),H.addEventListener("focusout",k),function(){H.removeEventListener("focusin",a);H.removeEventListener("focusout",k)}});
return _.C("yt-button-shape",{el:J,id:m,class:x,hidden:b},_.C(_.n,{cond:c,then:function(){return _.C(l$,{data:c,iconName:P,secondaryIconName:p,focusedOverride:t})}}))},"v");
_.w("web_wiz_button_shape")&&_.lv(Ga6,"yt-button-shape",{props:{data:_.vt,id:_.vt,hidden:_.vt,className:_.vt,iconName:_.vt,secondaryIconName:_.vt},unsafeExternallySettableAttributes:new Set(["key","dialog-dismiss","disable-upgrade"])});var xq=function(){var J=_.h.apply(this,arguments)||this;J.keyboardFocused=!1;return J};
_.D(xq,_.h);xq.prototype.onFocus=function(){var J=_.BG().resolve(_.y6(_.Js));J&&(this.keyboardFocused=J.isKeyBoardInUse())};
xq.prototype.onBlur=function(){this.keyboardFocused=!1};
xq.prototype.renderIdom=function(){var J=this;if(this.data){var c=iB(this.data,!!this.iconName),m=mge(this.data);this.data.focused=this.keyboardFocused;aJm(this.data,function(){var b;Wd("yt-icon",{icon:J.iconName,active:(b=J.data)==null?void 0:b.toggled,size:c,style:"width: "+c+"px; height: "+c+"px;",iconFilter:m},RD)},function(){var b;
Wd("yt-icon",{icon:J.secondaryIconName,active:(b=J.data)==null?void 0:b.toggled,size:c,style:"width: "+c+"px; height: "+c+"px;",iconFilter:m},RD)});
_.cA(this.hostElement,"yt-renderidom-finished")}};
_.eE.Object.defineProperties(xq,{template:{configurable:!0,enumerable:!0,get:function(){if(Dpz===void 0){var J=document.createElement("template");_.z(J,"\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");
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);J.content.insertBefore(LlZ().content.cloneNode(!0),J.content.firstChild);J.content.insertBefore(rX2().content.cloneNode(!0),J.content.firstChild);Dpz=J}J=Dpz;return J}}});
xq.prototype.onBlur=xq.prototype.onBlur;xq.prototype.onFocus=xq.prototype.onFocus;_.O([_.f(Py2),_.R("design:type",Object)],xq.prototype,"ytIdomTemplatingBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],xq.prototype,"data",void 0);_.O([_.U(),_.R("design:type",String)],xq.prototype,"iconName",void 0);_.O([_.U(),_.R("design:type",String)],xq.prototype,"secondaryIconName",void 0);_.O([_.U(),_.R("design:type",Object)],xq.prototype,"keyboardFocused",void 0);
_.O([_.ps("focusin"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],xq.prototype,"onFocus",null);_.O([_.ps("focusout"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],xq.prototype,"onBlur",null);xq=_.O([_.uM({is:"yt-button-shape",isInjectionRoot:!0,disableElementRegistration:_.w("web_wiz_button_shape")})],xq);_.lv(_.Q1(function(J){function c(){m().seconds&&P(dZ3({seconds:Number(m().seconds)-Date.now()/1E3}))}
var m=J.targetTimestamp;J=J.className;var b=_.M(_.K2("",void 0,"U1Q8Ae")),x=b.next().value,P=b.next().value;_.WG(function(){c();var p=setInterval(function(){c()},1E3);
_.f2(function(){clearInterval(p)})});
return _.C("yt-countdown",{class:_.pq("ytCountDownHost",J)},_.C("div",null,x))},"w"),"yt-countdown",{props:{targetTimestamp:_.vt,
className:_.Fz}});_.XU=_.Q1(function(J){var c=J.data;var m=J.className;var b=J.style;var x=J.useOutlinedIcon;var P=J.buttonOverrides;var p=J.animatedTextProps;var t=J.onClick;var I=_.oN("button-view-model",function(Z){Z.dispatchEvent(new CustomEvent("yt-renderidom-finished",{bubbles:!0,cancelable:!1,composed:!0}));var d=c().targetId;d&&_.aNB(_.aT(),d,Z);return function(){KtC(_.aT(),Z)}}),a=function(){return c().iconName},k,H=(k=_.BG().resolve(_.y6(_.Ev)))==null?void 0:k(),T=function(){var Z=c();
var d=P==null?void 0:P(),G=p==null?void 0:p();if(Z){var e=TA3(Z.type);var A=!!Z.title||!!Z.titleFormatted;var l=!(!Z.iconName&&!Z.iconImage);A=l&&!A?"icon-only":l?Z.iconTrailing||Z.iconPosition==="BUTTON_VIEW_MODEL_ICON_POSITION_TRAILING"?"trailing":"leading":void 0;A==="icon-only-40"&&(e="text");var y,pG=(y=d==null?void 0:d.disabled)!=null?y:Z.state==="BUTTON_VIEW_MODEL_STATE_DISABLED"||Z.state==="BUTTON_VIEW_MODEL_STATE_INACTIVE";y=Object;l=y.assign;var kt=Z.title,nG=Z.titleFormatted;G=G&&G.numberText&&
!isNaN(Number(G.numberValue))?G:void 0;var fG=Z.accessibilityText,Yt=nQm(Z.style),Z3=wcR(Z.state),oR=rYT(Z.buttonSize),Em=iAm(Z,I,pG,t);pG=pG&&!Z.onDisabledTap;var X$=_.Uv({elementsCommand:Z.onTap,forceNewState:!0});X$=SM(X$)?X$:void 0;var Hu=Z.customFontColor,S6=Z.customBackgroundColor;var a2=Z.customBorderColor;var Nu=Z.customDarkThemeFontColor,cu=Z.customDarkThemeBackgroundColor,t8=Z.customDarkThemeBorderColor;Hu=H&&Nu?Nu:Hu;S6=H&&cu?cu:S6;a2=H&&t8?t8:a2;a2={color:Hu?_.Zn(Hu):void 0,backgroundColor:S6?
_.Zn(S6):void 0,borderColor:a2?_.Zn(a2):void 0};Z=l.call(y,{},{buttonText:kt,formattedButtonText:nG,animatedTextProps:G,accessibilityLabel:fG,style:Yt,type:e,state:Z3,size:oR,iconPosition:A,onTap:Em,disabled:pG,aTagConfig:X$,customColors:a2,tooltipText:Z.tooltip},d)}else Z={style:"mono",type:"text",state:"active",size:"M"};Z.focused=Y();return Z},r=function(){return iB(T(),!!c().iconName)};
J=_.M(_.K2(!1,void 0,"vxWDPb"));k=J.next().value;var W=J.next().value,Y=k;J=_.Kq(function(){var Z=_.BG().resolve(_.y6(_.Js));Z&&W(Z.isKeyBoardInUse());return!1});
k=_.Kq(function(){W(!1);return!1});
_.ui(function(){var Z,d=_.L(c==null?void 0:(Z=c())==null?void 0:Z.onVisible,_.Xz);d&&_.ql(d,{disableClickTracking:!0})},"x3DHkf");
return _.C("button-view-model",{el:I,class:_.pq("yt-spec-button-view-model",m),"on:focusin":J,"on:focusout":k},_.C(_.n,{cond:function(){var Z;return(c==null?0:(Z=c())==null?0:Z.iconImage)?{sources:[c().iconImage]}:void 0},
then:function(Z){return _.C(l$,{data:T,icon:function(){return _.C(_.RA,{data:Z,alt:"",targetWidth:r,targetHeight:r,preserveWidth:!0,preserveHeight:!0})}})},
else:function(){return _.C(l$,{data:T,icon:function(){return _.C(_.HP,{icon:a,active:function(){return(x==null?0:x())?!1:T().toggled},
animateIcon:function(){var Z;return!!(b==null?0:(Z=b())==null?0:Z.animateIcon)},
size:r})}})}}))},"x");
_.XU.idomCompat={callbacks:{onClick:!0}};_.lv(_.Q1(function(J){return _.C("yt-button-view-model",{id:J.id,class:_.pq(J.scopingClassName,J.classes),icon:function(){var c;return(c=J.icon)==null?void 0:c.call(J)},
"dialog-dismiss":function(){var c;return((c=J.dialogDismiss)==null?0:c.call(J))?"":void 0}},_.C(_.XU,{data:function(){var c;
return(c=J.data)==null?void 0:c.call(J)},
className:function(){var c;return(c=J.className)==null?void 0:c.call(J)},
style:function(){var c;return(c=J.style)==null?void 0:c.call(J)},
useOutlinedIcon:function(){var c;return(c=J.useOutlinedIcon)==null?void 0:c.call(J)},
buttonOverrides:function(){var c;return(c=J.buttonOverrides)==null?void 0:c.call(J)},
animatedTextProps:function(){var c;return(c=J.animatedTextProps)==null?void 0:c.call(J)},
onClick:function(c){var m;return(m=J.onClick)==null?void 0:m.call(J,c)}}))},"y"),"yt-button-view-model",{props:{data:_.vt,
className:_.vt,style:_.vt,useOutlinedIcon:_.vt,buttonOverrides:_.vt,animatedTextProps:_.vt,onClick:_.Fz,scopingClassName:_.vt,id:_.vt,icon:_.vt,dialogDismiss:_.vt,classes:_.vt}});var V7=function(){var J=_.h.apply(this,arguments)||this;J.isGoalActive=!0;return J};
_.D(V7,_.h);V7.prototype.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
V7.prototype.progressBarChanged=function(){var J=_.Bj(this.hostElement).querySelector("#progress-bar-progress"),c,m,b,x=(b=Number((c=this.creatorGoalState)==null?void 0:c.currentGoalCount)/Number((m=this.creatorGoalState)==null?void 0:m.totalGoalCount)*100)!=null?b:0,P;J.style.width=((P=Math.min(x,100))!=null?P:0)+"%"};
V7.prototype.goalStateChanged=function(){var J;this.isGoalActive=((J=this.creatorGoalState)==null?void 0:J.creatorGoalState)==="CREATOR_GOAL_STATE_ACTIVE";var c;J={"--yt-progress-bar-color":AXQ((c=this.creatorGoalState)==null?void 0:c.progressBarColor)};_.V1(this.hostElement,J)};
V7.prototype.configureRendererStamper=function(){return{"creatorGoalState.progressFlowButton":{id:"progress-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
_.eE.Object.defineProperties(V7.prototype,{shouldShowCountdown:{configurable:!0,enumerable:!0,get:function(){var J;return this.isGoalActive&&!((J=this.creatorGoalState)==null||!J.shouldShowCountdown)}},
endTimestamp:{configurable:!0,enumerable:!0,get:function(){var J;if((J=this.creatorGoalState)==null?0:J.endTimestampMs){var c;J=Number((c=this.creatorGoalState)==null?void 0:c.endTimestampMs)/1E3;return{seconds:String(J)}}}},
targetIconThemedImage:{configurable:!0,enumerable:!0,get:function(){var J;if((J=this.creatorGoalState)==null?0:J.themedTargetImage){var c;J=_.L((c=this.creatorGoalState)==null?void 0:c.themedTargetImage,uI$);return this.isAppDarkTheme()?J==null?void 0:J.imageDark:J==null?void 0:J.imageLight}}}});
_.eE.Object.defineProperties(V7,{template:{configurable:!0,enumerable:!0,get:function(){return VZ8()}}});
V7.prototype.goalStateChanged=V7.prototype.goalStateChanged;V7.prototype.progressBarChanged=V7.prototype.progressBarChanged;_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],V7.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.XL),_.R("design:type",Object)],V7.prototype,"ytLiveChatReduxBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],V7.prototype,"ytRendererBehavior",void 0);
_.O([_.U({selectorArgs:["data.creatorGoalEntityKey"],selector:function(J,c){return _.P2(J.entities,"creatorGoalEntity",c)}}),
_.R("design:type",Object)],V7.prototype,"creatorGoalState",void 0);_.O([_.U(),_.R("design:type",Object)],V7.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],V7.prototype,"isGoalActive",void 0);_.O([_.q("creatorGoalState","isGoalActive"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],V7.prototype,"shouldShowCountdown",null);_.O([_.q("creatorGoalState"),_.R("design:type",Object),_.R("design:paramtypes",[])],V7.prototype,"endTimestamp",null);
_.O([_.q("creatorGoalState"),_.R("design:type",Object),_.R("design:paramtypes",[])],V7.prototype,"targetIconThemedImage",null);_.O([_.NE("creatorGoalState.currentGoalCount"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],V7.prototype,"progressBarChanged",null);_.O([_.NE("creatorGoalState.creatorGoalState"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],V7.prototype,"goalStateChanged",null);
V7=_.O([_.uM({is:"yt-creator-goal-progress-flow-view-model",disableElementRegistration:!0,noInjection:!0})],V7);_.v(V7,"yt-creator-goal-progress-flow-view-model",function(){return VZ8()},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var EO$;var vOZ;var PL=function(){return _.h.apply(this,arguments)||this};
_.D(PL,_.h);PL.prototype.attached=function(){var J,c,m;if(this==null?0:(J=this.data)==null?0:(c=J.pdgPurchasedBumperLoggingDirectives)==null?0:(m=c.loggingDirectives)==null?0:m.trackingParams){var b,x,P;DgR(this==null?void 0:(b=this.data)==null?void 0:(x=b.pdgPurchasedBumperLoggingDirectives)==null?void 0:(P=x.loggingDirectives)==null?void 0:P.trackingParams)}};
PL.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{bumperUserEduContentViewModel:{component:"yt-bumper-user-edu-content-view-model"}}}}};
_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],PL.prototype,"ytComponentBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],PL.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],PL.prototype,"data",void 0);PL=_.O([_.uM({disableElementRegistration:!0,is:"yt-live-chat-item-bumper-view-model"})],PL);
_.v(PL,"yt-live-chat-item-bumper-view-model",function(){if(vOZ===void 0){var J=document.createElement("template");_.z(J,'\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>');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;EO$===void 0&&(EO$=document.createElement("template"));var b=EO$;m.call(c,b.content.cloneNode(!0),J.content.firstChild);vOZ=J}J=vOZ;return J},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var O5Q;var AXC;_.Oi=function(J,c){this.data=J;this.actions=c;this.data=J;this.actions=c};
_.qd=function(){};_.M7={};_.M7.YtOpenPopupBehavior={properties:{popupPositionTarget:Object},listeners:{"yt-service-request-completed":"onOpenPopupServiceRequestCompleted_"},created:function(){this.openPopupConfig=null},
openPopup:function(J,c){W2m(this.hostElement,J,c)},
getNavigationEndpointPopupAction:function(J){return zSt(J,this.openPopupConfig)},
onOpenPopupServiceRequestCompleted_:function(J,c){uVT(this.hostElement,J,c,this.openPopupConfig)}};var $gR=["backstageImageUploadEndpoint","openUpdateCommentDialogAction","updateCommentDialogEndpoint","updateCommentReplyDialogEndpoint"];_.ts={};
_.ts.YtEndpointBehavior=[_.M7.YtOpenPopupBehavior,{properties:{openPopupConfig:Object,useClickHandler:{type:Boolean,value:!1}},ready:function(){this.openPopupConfig=_.Ub("openPopupConfig");(this.useClickHandler=_.Ss("useClickHandler",!1))?this.hostElement.addEventListener("click",P9(this,this.onEndpointClick_)):(ua(this.hostElement,"tap",P9(this,this.onEndpointTap_)),ua(this.hostElement,"touchend",P9(this,this.onEndpointTouchEnd_)));ua(this.hostElement,"touchstart",P9(this,this.onEndpointTapStart_));this.hostElement.addEventListener("mousedown",
P9(this,this.onEndpointTapStart_))},
onEndpointClick_:function(J){Xcu(this.hostElement,J,this.openPopupConfig,this.disableCommandHandlerOverride)},
onEndpointTap_:function(J){var c=this.hostElement,m=this.openPopupConfig,b=this.disableCommandHandlerOverride;b=b===void 0?!1:b;var x=fJ2(J);if(x){x.href&&hc(x.href);var P=J.detail;var p=P.sourceEvent;P=P.preventer;p=p.button!==void 0?p.button===0&&!si(p):P?!si(P):!0;x.data&&p&&YRm(c,x,J,m,b)}},
onEndpointTouchEnd_:function(J){si(J)||fJ2(J)&&J.preventDefault()},
onEndpointTapStart_:function(J){hS3(J)}}];var GSm="section1Color section2Color section3Color section4Color navBarColor primaryTitleColor secondaryTitleColor bodyTextColor iconActivatedColor iconInactiveColor iconDisabledColor".split(" "),vQR=["backgroundColor","borderColor","foregroundTitleColor","foregroundBodyColor","foregroundActivatedColor"];var Ri6={};Ri6.YtPlaintextBehavior=[_.KV,{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(J){J.preventDefault();J=J.clipboardData.getData("text/plain");document.execCommand("insertText",!1,J)},
preventRichTextFormatting_:function(J){_.Va&&(J=J.detail.keyboardEvent,J.stopImmediatePropagation(),J.preventDefault())}}];var oOC;var QJa;var Iv=function(){var J=_.h.apply(this,arguments)||this;J.ignoreShadyDom=!1;J.hasChange_=!1;J.hasSetTitle_=!1;J.useIOObserverForVisibilityLogging_=_.w("kevlar_use_vimio_behavior")&&_.Ub("INNERTUBE_CLIENT_NAME")==="WEB";J.ytFormattedStringObserverHandlerKeys_=void 0;return J};
_.D(Iv,_.h);_.V=Iv.prototype;_.V.created=function(){this.useIOObserverForVisibilityLogging_=_.w("kevlar_use_vimio_behavior")&&_.Ub("INNERTUBE_CLIENT_NAME")==="WEB";this.isEmpty=!0};
_.V.ready=function(){_.Ub("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_()};
_.V.attached=function(){this.hasChange_&&this.textChanged_(this.text)};
_.V.detached=function(){this.unobserveIOObservers_()};
_.V.clearContents_=function(){for(var J=this.getRoot(),c=J.lastChild;c&&c.tagName!=="STYLE";){try{J.removeChild(c)}catch(m){break}c=J.lastChild}};
_.V.unobserveIOObservers_=function(){if(this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&this.ytFormattedStringObserverHandlerKeys_){for(var J=_.M(this.ytFormattedStringObserverHandlerKeys_),c=J.next();!c.done;c=J.next())this.ytRendererBehavior.visibilityObserver.unobserveByKey(c.value);this.ytFormattedStringObserverHandlerKeys_.length=0}};
_.V.resetForAttributedString=function(){var J=this.getRoot();!J.querySelector("yt-attributed-string")&&this.ytAttributedStringElementRef&&(this.clearContents_(),J.appendChild(this.ytAttributedStringElementRef))};
_.V.resetForFormattedString=function(){var J=this.getRoot(),c=J.querySelector("yt-attributed-string");c&&(this.ytAttributedStringElementRef=J.removeChild(c))};
_.V.textChanged=function(){this.textChanged_(this.text)};
_.V.textChanged_=function(J){if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;this.isEmpty=!J||!J.runs&&!J.simpleText;if(_.w("web_replace_formatted_with_attributed_string")){if(this.useYtAttributedString){this.resetForAttributedString();return}this.resetForFormattedString()}this.unobserveIOObservers_();for(var c=this.hostElement.firstChild;c&&c.nodeName==="FONT";){var m=c;c=c.nextSibling;this.hostElement.removeChild(m)}c=this.getRoot();if(this.isEmpty)this.clearContents_();else{this.ellipsisTruncateChanged_();
m=J.simpleText;var b;!m&&((b=J.runs)==null?void 0:b.length)===1&&this.isSimpleString_(J.runs[0])&&(m=J.runs[0].text);m!==void 0&&!this.respectHtmlDir&&this.useMixedDirectionFormattedStrings&&_.Ub("HTML_DIR")==="rtl"&&(this.hostElement.dir="auto");if(m!==void 0){try{c.textContent=m}catch(x){}c.textContent||(this.isEmpty=!0)}else J=J.runs,m!==void 0&&(J=[{text:m}]),this.ellipsisTruncate?this.hostElement.classList.add("complex-string"):this.hostElement.classList.remove("complex-string"),J&&this.updateText_(J),
c.textContent||this.hasEmoji||(this.isEmpty=!0)}}};
_.V.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)};
_.V.computeAriaLabel_=function(J){return J};
_.V.computeEllipsisTruncateStyling=function(J,c){return J&&!c};
_.V.computeUseAttributedString=function(J){return _.w("web_replace_formatted_with_attributed_string")&&V4f(J)&&!this.disableAttributedString&&!this.enableContentEditable};
_.V.setNodeStyle_=function(J,c){!this.useMixedDirectionFormattedStrings||this.respectHtmlDir||_.w("disable_child_node_auto_formatted_strings")&&this.hostElement.dir==="auto"?c.removeAttribute("dir"):c.setAttribute("dir","auto");c.classList.remove("bold","deemphasize","italic","strikethrough","bracket","error-underline");c.style.color="";var m=null;this.noStyles||(J.bold&&(c.classList.add("bold"),m="bold"),J.deemphasize&&(c.classList.add("deemphasize"),m="deemphasize"),J.italics&&c.classList.add("italic"),
J.strikethrough&&c.classList.add("strikethrough"),J.errorUnderline&&(c.classList.add("error-underline"),this.isDarkTheme=document.documentElement.hasAttribute("dark")),J.bracket&&c.classList.add("bracket"),J.textColor&&(c.style.color=_.XB(J.textColor)));m!==c.getAttribute("style-target")&&(m?c.setAttribute("style-target",m):c.removeAttribute("style-target"))};
_.V.setUpVisibilityLogging_=function(J,c){var m=this;this.setNodeTrackingParams_(J,c);var b;((b=c.data)==null?0:b.trackingParams)&&this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&(J=this.ytRendererBehavior.visibilityObserver.observe(c,function(x){var P=m.ytRendererBehavior.getVisibilityLogger();P&&P.reportShown(x)},this.ytRendererBehavior.visibilityOptionVisible_),c=this.ytRendererBehavior.visibilityObserver.observe(c,function(x){var P=m.ytRendererBehavior.getVisibilityLogger();
P&&P.reportHidden(x)},this.ytRendererBehavior.visibilityOptionHidden_),this.ytFormattedStringObserverHandlerKeys_||(this.ytFormattedStringObserverHandlerKeys_=[]),this.ytFormattedStringObserverHandlerKeys_.push(J),this.ytFormattedStringObserverHandlerKeys_.push(c))};
_.V.setNodeTrackingParams_=function(J,c){c.data||(c.data={});if((J=J.loggingDirectives?J.loggingDirectives.trackingParams:null)||c.data.trackingParams)c.data.trackingParams=J};
_.V.computeHasLinkOnly_=function(J){return!(!J||J.length!==1||this.noEndpoints||!J[0].navigationEndpoint)};
_.V.getRoot=function(){var J=this.buildScopeDomOptions();return this.enableContentEditable?_.Bj(_.Bj(this.hostElement,J).querySelector("[contenteditable]")):_.Bj(this.hostElement,J)};
_.V.fixContenteditableScope=function(){var J=function(c){c&&(c.nodeType===1&&c.classList&&(c.classList.add("style-scope"),c.classList.add("yt-formatted-string")),c.childNodes&&c.childNodes.forEach(function(m){J(m)}))};
J(this.getRoot())};
_.V.updateText_=function(J){for(var c=J.length,m=this.getRoot(),b=m.firstChild;b&&b.nodeName==="STYLE";)b=b.nextSibling;for(var x=0;x<c&&b;){var P=J[x],p=_.w("remove_cr_char")&&P.text?P.text.replace("\r",""):P.text;if(this.isSimpleString_(P)&&!this.useMixedDirectionFormattedStrings)if(b.nodeName==="#text"){b.textContent!=p&&(b.textContent=p);x++;b=b.nextSibling;continue}else break;if(_.L(P,f7))break;else if(!this.noEndpoints&&P.navigationEndpoint){if(b.nodeName!=="A")break;this.setDataOnAnchor_(b,
P.navigationEndpoint)}else if(b.nodeName!=="SPAN")break;this.setNodeStyle_(P,b);this.setUpVisibilityLogging_(P,b);b.textContent!=p&&(b.textContent=p);x++;b=b.nextSibling}if(b)for(P=m.lastChild,b=x?b.previousSibling:null;P&&P!=b;){try{m.removeChild(P)}catch(t){break}P=m.lastChild}x!==c&&this.addTextNodes_(J,x)};
_.V.addTextNodes_=function(J,c){for(var m=document.createDocumentFragment(),b=J.length;c<b;c++){var x=J[c],P=_.w("remove_cr_char")&&x.text?x.text.replace("\r",""):x.text;if(this.isSimpleString_(x)&&!this.useMixedDirectionFormattedStrings)m.appendChild(document.createTextNode(P));else{var p=_.L(x,f7);if(p){if(p.image){var t=document.createElement("img");p.isCustomEmoji||t.classList.add("small-emoji");t.classList.add("emoji");p.isCustomEmoji&&(t.dataset.emojiId=p.emojiId);t.src=_.yn(p.image.thumbnails,
this.emojiSize);(x=this.get("image.accessibility.accessibilityData.label",p))?t.alt=x:p.shortcuts&&p.shortcuts.length>0?t.alt=p.shortcuts[0]:p.emojiId&&(t.alt=p.emojiId);m.appendChild(t);this.hasEmoji=!0}}else!this.noEndpoints&&x.navigationEndpoint?(t=document.createElement("a"),t.classList.add("yt-simple-endpoint"),t.setAttribute("spellcheck","false"),this.setDataOnAnchor_(t,x.navigationEndpoint)):t=document.createElement("span"),this.setNodeStyle_(x,t),this.setUpVisibilityLogging_(x,t),t.appendChild(document.createTextNode(P)),
m.appendChild(t)}}this.getRoot().appendChild(m)};
_.V.isSimpleString_=function(J){return(this.noEndpoints||!J.navigationEndpoint)&&!_.L(J,f7)&&(this.noStyles||!(J.bold||J.deemphasize||J.italics||J.strikethrough||J.errorUnderline||J.bracket||J.textColor))&&!J.loggingDirectives};
_.V.getRawText=function(){return _.OG(this.text)};
_.V.getFirstRunText=function(){var J;if(((J=this.text)==null?0:J.runs)&&this.text.runs[0])return this.text.runs[0].text};
_.V.setFirstRunText=function(J){var c;((c=this.text)==null?0:c.runs)&&this.text.runs[0]&&(this.text.runs[0].text=J,this.textChanged_(this.text))};
_.V.setDataOnAnchor_=function(J,c){var m=this;!_.w("yf_formatted_string_service_endpoint_killswitch")&&this.isServiceEndpoint_(c)||this.isSignalServiceEndpoint_(c)?(J.onclick=this.serviceEndpointHandler_(c),W0(J,"#")):UlR({text:this.text,command:c},function(){QA2(J,c,m.target)})};
_.V.isServiceEndpoint_=function(J){var c;return!((c=_.L(J==null?void 0:J.commandMetadata,_.lk))==null||!c.sendPost)};
_.V.isSignalServiceEndpoint_=function(J){return!!_.L(J,_.In)};
_.V.serviceEndpointHandler_=function(J){var c=this;return function(m){_.Vq(c.hostElement,[J]);m.preventDefault()}};
_.V.overrideAriaLabelChanged_=function(){var J=this.getRoot();this.enableContentEditable&&J&&J.setAttribute("aria-label",this.overrideAriaLabel)};
_.V.enableContentEditableChanged_=function(){var J=this,c=this.buildScopeDomOptions();if(this.enableContentEditable){if(this.hostElement.removeAttribute("dir"),c=_.Bj(this.hostElement,c),!c.lastChild||c.lastChild instanceof HTMLElement&&c.lastChild.id!=="contenteditable-root"){var m=document.createElement("div");m.id="contenteditable-root";m.setAttribute("contenteditable","true");m.setAttribute("dir","auto");m.onfocus=function(){J.hostElement.dispatchEvent(new FocusEvent("focus",{bubbles:!1}))};
c.appendChild(m);this.overrideAriaLabel&&m.setAttribute("aria-label",this.overrideAriaLabel)}}else m=_.gB(this.hostElement).firstChild,m instanceof HTMLElement&&m.id==="contenteditable-root"&&_.Bj(this.hostElement,c).removeChild(m)};
_.V.buildScopeDomOptions=function(){if(this.ignoreShadyDom)return{ignoreOwnerDocument:!0}};
_.V.getNodesForVisibilityLogging_=function(){return _.BH(this.getRoot().childNodes,function(J){var c;return!((c=J.data)==null||!c.trackingParams)})};
_.V.getNodes=function(){return this.getNodesForVisibilityLogging_()};
_.V.onShow=function(){if(!this.useIOObserverForVisibilityLogging_){var J=this.ytRendererBehavior.getVisibilityLogger();J&&this.getNodesForVisibilityLogging_().forEach(function(c){J.reportShown(c)})}};
_.V.onHide=function(){if(!this.useIOObserverForVisibilityLogging_){var J=this.ytRendererBehavior.getVisibilityLogger();J&&this.getNodesForVisibilityLogging_().forEach(function(c){J.reportHidden(c)})}};
_.eE.Object.defineProperties(Iv.prototype,{useMixedDirectionFormattedStrings:{configurable:!0,enumerable:!0,get:function(){return this.plaintextOnly?!1:_.w("enable_mixed_direction_formatted_strings")}}});
Iv.prototype.enableContentEditableChanged_=Iv.prototype.enableContentEditableChanged_;Iv.prototype.overrideAriaLabelChanged_=Iv.prototype.overrideAriaLabelChanged_;Iv.prototype.ellipsisTruncateChanged_=Iv.prototype.ellipsisTruncateChanged_;Iv.prototype.textChanged=Iv.prototype.textChanged;_.O([_.f(Ri6.YtPlaintextBehavior),_.R("design:type",Object)],Iv.prototype,"ytPlaintextBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],Iv.prototype,"ytComponentBehavior",void 0);
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Iv.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Iv.prototype,"text",void 0);_.O([_.U(),_.R("design:type",Boolean)],Iv.prototype,"noEndpoints",void 0);_.O([_.U(),_.R("design:type",Boolean)],Iv.prototype,"noStyles",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],Iv.prototype,"isDarkTheme",void 0);
_.O([_.U({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],Iv.prototype,"splitLines",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],Iv.prototype,"forceDefaultStyle",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],Iv.prototype,"ellipsisTruncate",void 0);_.O([_.U(),_.R("design:type",Object)],Iv.prototype,"ignoreShadyDom",void 0);
_.O([_.U({reflectToAttribute:!0,computed:"computeEllipsisTruncateStyling(ellipsisTruncate, useYtAttributedString)"}),_.R("design:type",Boolean)],Iv.prototype,"ellipsisTruncateStyling",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeAriaLabel_(text.accessibility.accessibilityData.label)"}),_.R("design:type",String)],Iv.prototype,"ariaLabel",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],Iv.prototype,"isEmpty",void 0);
_.O([_.U({reflectToAttribute:!0,computed:"computeHasLinkOnly_(text.runs)"}),_.R("design:type",Boolean)],Iv.prototype,"hasLinkOnly_",void 0);_.O([_.U(),_.R("design:type",Boolean)],Iv.prototype,"hasEmoji",void 0);_.O([_.U(),_.R("design:type",Boolean)],Iv.prototype,"disableAttributedString",void 0);_.O([_.U(),_.R("design:type",Boolean)],Iv.prototype,"isOverlay",void 0);_.O([_.U(),_.R("design:type",Boolean)],Iv.prototype,"linkInheritColor",void 0);
_.O([_.U(),_.R("design:type",Boolean)],Iv.prototype,"noPreWrap",void 0);_.O([_.U(),_.R("design:type",Boolean)],Iv.prototype,"userInput",void 0);_.O([_.U({value:16}),_.R("design:type",Number)],Iv.prototype,"emojiSize",void 0);_.O([_.U(),_.R("design:type",String)],Iv.prototype,"target",void 0);_.O([_.U(),_.R("design:type",Boolean)],Iv.prototype,"enableContentEditable",void 0);_.O([_.U(),_.R("design:type",String)],Iv.prototype,"overrideAriaLabel",void 0);
_.O([_.U(),_.R("design:type",Boolean)],Iv.prototype,"respectHtmlDir",void 0);_.O([_.U(),_.R("design:type",Boolean)],Iv.prototype,"respectLangDir",void 0);_.O([_.q("plaintextOnly"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Iv.prototype,"useMixedDirectionFormattedStrings",null);_.O([_.U({computed:"computeUseAttributedString(text)"}),_.R("design:type",Boolean)],Iv.prototype,"useYtAttributedString",void 0);
_.O([_.NE("text"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Iv.prototype,"textChanged",null);_.O([_.NE("ellipsisTruncate"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Iv.prototype,"ellipsisTruncateChanged_",null);_.O([_.NE("overrideAriaLabel"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Iv.prototype,"overrideAriaLabelChanged_",null);
_.O([_.NE("enableContentEditable"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Iv.prototype,"enableContentEditableChanged_",null);Iv=_.O([_.uM({is:"yt-formatted-string",disableElementRegistration:!0})],Iv);
_.v(Iv,"yt-formatted-string",function(){if(QJa===void 0){var J=document.createElement("template");_.z(J,'\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>');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;oOC===void 0&&(oOC=document.createElement("template"));var b=oOC;m.call(c,b.content.cloneNode(!0),J.content.firstChild);QJa=J}J=QJa;return J});var eiQ;var jJB;var FlC;var lyZ;var Ko=function(){var J=_.h.apply(this,arguments)||this;J.focused=!1;J.disabled=!1;J.isOverlay=!1;return J};
_.D(Ko,_.h);Ko.prototype.triggerDown=function(){if(!this.disabled){_.mq(this.hostElement,"down",!0);var J;(J=this.currentAnimation)==null||J.cancel()}};
Ko.prototype.triggerUp=function(){if(!this.disabled){_.mq(this.hostElement,"down",!1);var J=this.fillElement;var c=this.strokeElement;typeof GroupEffect==="function"?(J=new GroupEffect([y4t(J),Bl3(c)]),J=new Animation(J,document.timeline)):J=new Z52(J,c);this.currentAnimation=J;var m;(m=this.currentAnimation)==null||m.play()}};
_.O([_.Iu(".stroke"),_.R("design:type",HTMLElement)],Ko.prototype,"strokeElement",void 0);_.O([_.Iu(".fill"),_.R("design:type",HTMLElement)],Ko.prototype,"fillElement",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Ko.prototype,"focused",void 0);_.O([_.U(),_.R("design:type",Object)],Ko.prototype,"disabled",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Ko.prototype,"isOverlay",void 0);Ko=_.O([_.uM({is:"yt-interaction",disableElementRegistration:!0})],Ko);
_.v(Ko,"yt-interaction",function(){if(lyZ===void 0){var J=document.createElement("template");_.z(J,'\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>');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;FlC===void 0&&(FlC=document.createElement("template"));var b=FlC;m.call(c,b.content.cloneNode(!0),J.content.firstChild);lyZ=J}J=lyZ;return J},{mode:2});var Co=function(){return _.h.apply(this,arguments)||this};
_.D(Co,_.h);_.V=Co.prototype;_.V.ready=function(){var J=this,c=_.Bj(this.hostElement).querySelector("#button");c.addEventListener("focus",function(){s7L||(s7L=new rt6);J.keyboardFocused=s7L.isKeyBoardInUse()});
c.addEventListener("blur",function(){J.keyboardFocused=!1;J.rippleUp_()})};
_.V.computeTabIndex_=function(J){return J?-1:0};
_.V.computeButtonAriaPressed_=function(J){if(this.toggleable)return J?"true":"false"};
_.V.rippleDown_=function(){_.Bj(this.hostElement).querySelector("#interaction").triggerDown()};
_.V.rippleUp_=function(){_.Bj(this.hostElement).querySelector("#interaction").triggerUp()};
_.V.onPressedChanged_=function(){var J=_.gB(_.Bj(this.hostElement).querySelector("#button")).querySelector("yt-icon")||_.gB(_.Bj(this.hostElement).querySelector("#button")).children[0];J&&(J.active=this.pressed)};
Co.prototype.onPressedChanged_=Co.prototype.onPressedChanged_;Co.prototype.rippleUp_=Co.prototype.rippleUp_;Co.prototype.rippleDown_=Co.prototype.rippleDown_;_.O([_.U(),_.R("design:type",String)],Co.prototype,"label",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],Co.prototype,"disabled",void 0);_.O([_.U(),_.R("design:type",Boolean)],Co.prototype,"pressed",void 0);_.O([_.U(),_.R("design:type",Object)],Co.prototype,"toggleable",void 0);
_.O([_.U(),_.R("design:type",Boolean)],Co.prototype,"untabbable",void 0);_.O([_.U(),_.R("design:type",Boolean)],Co.prototype,"keyboardFocused",void 0);_.O([_.ps("down"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Co.prototype,"rippleDown_",null);_.O([_.ps("up"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Co.prototype,"rippleUp_",null);
_.O([_.NE("pressed"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Co.prototype,"onPressedChanged_",null);Co=_.O([_.uM({is:"yt-icon-button",disableElementRegistration:!0})],Co);
_.v(Co,"yt-icon-button",function(){if(jJB===void 0){var J=document.createElement("template");_.z(J,'\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>');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;eiQ===void 0&&(eiQ=document.createElement("template"));var b=eiQ;m.call(c,b.content.cloneNode(!0),J.content.firstChild);jJB=J}J=jJB;return J},{mode:2});var yX_=_.Oo(["aria-"]),av={};av.YtRenderButtonBehavior=[_.g.YtRendererBehavior,_.ts.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!!_.BG().resolve(_.y6(_.Js))&&_.w("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 J=this.computeHref_(this.endpoint,!0);J?W0(this.elements_.endpoint,J):this.elements_.endpoint.removeAttribute("href")}if(this.buttonClass){J=this.buttonClass.split(" ");J=_.M(J);for(var c=J.next();!c.done;c=J.next())c=c.value,_.mq(this.hostElement,c,!0),this.elements_.button&&_.mq(this.elements_.button,c,!0),this.elements_.text&&_.mq(this.elements_.text,c,!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&&(J=null,this.buttonAccessibility&&(J=this.buttonAccessibility.label),this.elements_.button.is=="yt-icon-button"?this.elements_.button.label=J:J?_.E$([_.g8(yX_)],this.elements_.button,"aria-label",J):this.elements_.button.removeAttribute("aria-label"))},
dataChanged_:function(){this.updateRenderedElements()},
onFocus_:function(){this.addTooltips_();if(this.useKeyboardFocused){var J=_.BG().resolve(_.y6(_.Js));J&&(this.keyboardFocused=J.isKeyBoardInUse())}},
onBlur_:function(){this.keyboardFocused=!1},
addTooltips_:function(){this.elements_.endpoint&&this.showTooltips&&this.buttonTooltip&&(this.elements_.tooltip||(this.elements_.tooltip=this.reuseEnabled_()?_.eF("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,_.rK(this.elements_.endpoint).appendChild(this.elements_.tooltip)),_.rK(this.elements_.tooltip).textContent=this.buttonTooltip)},
buttonClassChanged_:function(J,c){if(c)for(J=c.split(" "),J=_.M(J),c=J.next();!c.done;c=J.next())c=c.value,_.mq(this.hostElement,c,!1),this.elements_.button&&_.mq(this.elements_.button,c,!1),this.elements_.text&&_.mq(this.elements_.text,c,!1)},
buttonIconChanged_:function(J){this.elements_.icon?J?(this.elements_.icon.icon=J,this.setIconActive_(this.elements_.icon)):(this.elements_.button&&_.rK(this.elements_.button).removeChild(this.elements_.icon),this.elements_.icon=null,_.bM(this.hostElement,"is-paper-button-with-icon",!1)):J&&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"&&_.rK(this.elements_.button).appendChild(this.elements_.icon):_.rK(this.elements_.button).insertBefore(this.elements_.icon,this.elements_.text),_.bM(this.hostElement,"is-paper-button-with-icon",!0))},
stampTypeChanged_:function(J){if(this.isAttached===void 0)this.hasChange_=!0;else if(this.hasChange_=!1,this.emptyContainer_(),this.elements_={},this.componentReady_=!1,J){var c=!1;this.elements_.endpoint=document.createElement("a");this.elements_.endpoint.classList.add("yt-simple-endpoint");this.elements_.endpoint.tabIndex=-1;switch(J){case "yt_icon_button_with_label":c=!0;_.mq(this.hostElement,"force-icon-button",!0);this.elements_.button=this.getYtIconButton_();J=_.rK(this.elements_.button).firstElementChild;
this.elements_.icon=J;this.setIconActive_(this.elements_.icon);this.elements_.text=this.getFormattedString_();this.elements_.text.id="text";this.elements_.text.ellipsisTruncate=this.ellipsisTruncate;_.rK(this.elements_.endpoint).appendChild(this.elements_.button);_.rK(this.elements_.endpoint).appendChild(this.elements_.text);break;case "paper_button":this.elements_.button=this.reuseEnabled_()?_.eF("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;_.rK(this.elements_.button).appendChild(this.elements_.text);_.rK(this.elements_.endpoint).appendChild(this.elements_.button);this.buttonIcon&&this.addIconElementToPaperButton_();break;case "yt-icon-button":c=!0,this.elements_.button=this.getYtIconButton_(),J=_.rK(this.elements_.button).firstElementChild,this.elements_.icon=J,this.setIconActive_(this.elements_.icon),
_.rK(this.elements_.endpoint).appendChild(this.elements_.button)}_.bM(this.hostElement,"is-icon-button",c);_.bM(this.hostElement,"is-paper-button",!c);_.bM(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 m;_.Bj((m=this.container.hostElement)!=null?m:this.container).appendChild(this.elements_.endpoint);this.componentReady_=!0}},
iconPositionTypeChanged_:function(){this.iconPositionType&&(this.elements_.button&&this.elements_.icon&&_.rK(this.elements_.button).removeChild(this.elements_.icon),this.addIconElementToPaperButton_(),this.elements_.icon.icon=this.buttonIcon)},
isDisabledChanged_:function(J){if(J!=void 0||this.disabled)this.disabled=J,this.elements_.button&&(this.elements_.button.disabled=J)},
isSelectedChanged_:function(){this.setIconActive_(this.elements_.icon)},
setIconActive_:function(J){_.w("kevlar_system_icons")&&J&&this.data&&(this.data.isSelected!==void 0?J.active=this.data.isSelected:this.data.isToggled!==void 0&&(J.active=this.data.isToggled))},
observeBasicPalette_:function(J){_.DL(this.hostElement,J)},
disabledChanged_:function(J){this.data&&this.set("data.isDisabled",J)},
onYtButtonTap_:function(J){if(this.disabled)J.stopImmediatePropagation(),this.sendServiceEndpointWhenDisabled&&this.serviceEndpoint&&_.Vq(this.hostElement,[this.serviceEndpoint]),this.sendCommandWhenDisabled&&this.data&&this.data.command&&this.resolveCommand(this.data.command,{},!0);else if(J=this.disableCommandHandlerOverride,!this.data||!this.data.command||J||!this.resolveCommand(this.data.command,{},!0)){if(this.serviceEndpoint)_.w("handle_service_request_actions")||_.Vq(this.hostElement,[this.serviceEndpoint]),
_.cA(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:this.serviceEndpoint});else this.onYtButtonTapHandler();_.w("handle_service_request_actions")?(J=[],this.serviceEndpoint&&J.push(this.serviceEndpoint),this.data&&this.data.command&&this.data.command!=this.serviceEndpoint&&J.push(this.data.command),J.length&&_.PA(this.hostElement,J,this.hostElement)):this.data&&this.data.command&&(J=this.data.command,J.accountUnlinkCommand||J.accountLinkCommand||J.insertAdCommand||J.insertHighlightMarkerCommand||
J.createLivestreamHighlightClipCommand||J.getVideoUploadFeedbackCommand||J.musicDeletePrivatelyOwnedEntityCommand||J.ypcCancelRecurrenceEndpoint||J.getMultiSelectCommandEndpoint?_.Vq(this.hostElement,[J]):_.PA(this.hostElement,[J],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 J,c=_.Bj((J=this.container.hostElement)!=null?J:this.container);c.lastChild&&c.lastChild.tagName!="STYLE";)try{c.removeChild(c.lastChild)}catch(m){break}},
getYtIconButton_:function(){var J=this.reuseEnabled_()?_.eF("yt-icon-button"):document.createElement("yt-icon-button"),c=_.rK(J).firstElementChild;if(c&&c.is!="yt-icon"){for(c=_.rK(J);c.lastChild;)c.removeChild(c.lastChild);c=null}c||(c=this.getIcon_(),this.setIconActive_(c),_.rK(J).appendChild(c));return J},
reuseEnabled_:function(){return _.w("enable_button_behavior_reuse")},
getIcon_:function(){return this.reuseEnabled_()?_.eF("yt-icon"):document.createElement("yt-icon")},
getFormattedString_:function(){return this.reuseEnabled_()?_.eF("yt-formatted-string"):document.createElement("yt-formatted-string")}}];_.Br$={};
_.Br$.YtButtonBehavior=[av.YtRenderButtonBehavior,{properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.text)","stateChanged_(data.isDisabled)","stateChanged_(data.style)","stateChanged_(forceIconOnly)"],stateChanged_:function(){var J=this.data;J&&(this._setEndpoint(this.computeEndpoint_(J)),this._setServiceEndpoint(this.computeServiceEndpoint_(J)),this._setCommand(this.computeCommand_(J)),this._setButtonIcon(this.computeButtonIcon_(J)),this._setButtonText(this.computeButtonText_(J,this.forceIconOnly)),
this._setButtonAccessibility(this.computeAccessibility_(J)),this._setButtonTooltip(this.computeTooltip_(J)),this._setButtonClass(this.computeButtonClass_(J)),this._setIconPositionType(this.computeIconPositionType_(J)),this.updateRenderedElements())},
setPressedState:function(J){var c;if((c=this.elements_)==null?0:c.button)this.elements_.button.pressed=!!J},
computeIconPositionType_:function(J){return J&&J.iconPosition||null},
computeEndpoint_:function(J){var c=J&&J.navigationEndpoint,m=this.get("data.command.commandMetadata.webCommandMetadata.url"),b=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return c?c:J&&J.command&&J.command.modalEndpoint?J.command:m&&!b&&J.command?J.command:null},
computeServiceEndpoint_:function(J){var c=J&&J.serviceEndpoint,m=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return c?c:m&&J.command?J.command:null},
computeCommand_:function(J){return J&&J.command||null},
computeButtonIcon_:function(J){return J&&J.icon&&J.icon.iconType?_.Pd(J.icon.iconType):null},
computeButtonText_:function(J,c){return!c&&J&&J.text||null},
computeAccessibility_:function(J){return this.get("accessibilityData.accessibilityData",J)||J&&J.accessibility||(J&&J.text?{label:this.getSimpleString(J.text)}:null)},
computeTooltip_:function(J){return J?J.isDisabled&&J.disabledTooltip||J.tooltip||null:null},
computeButtonClass_:function(J){var c=J&&J.style?J.style.toLowerCase().replace(/_/g,"-")+" ":"";c+=J&&J.size?J.size.toLowerCase().replace(/_/g,"-")+" ":"";J.colorData&&J.colorData.basicColorPaletteData&&J.colorData.basicColorPaletteData.borderColor&&(c+="palette-with-border");return c.trim()}}];var WP={};var gO2;var JvB;var cv$,me6=function(){return cv$!==void 0?cv$:cv$=document.createElement("template")};
document.head.appendChild(me6().content);var bFQ;var xeL,V4u=function(){return xeL!==void 0?xeL:xeL=document.createElement("template")};
document.head.appendChild(V4u().content);var PI2;var M4j,ppj=function(){return M4j!==void 0?M4j:M4j=document.createElement("template")};
document.head.appendChild(ppj().content);var N4$;var t4_=document.head,Ip2=t4_.appendChild,Kz2;if(N4$===void 0){var CIB=document.createElement("template");_.z(CIB,"\x3c!--css-build:shady--\x3e");CIB.content.insertBefore(ppj().content.cloneNode(!0),CIB.content.firstChild);N4$=CIB}Kz2=N4$;Ip2.call(t4_,Kz2.content);var apC=document.head,kfa=apC.appendChild,HFB;if(PI2===void 0){var iF6=document.createElement("template");_.z(iF6,"\x3c!--css-build:shady--\x3e");iF6.content.insertBefore(V4u().content.cloneNode(!0),iF6.content.firstChild);PI2=iF6}HFB=PI2;kfa.call(apC,HFB.content);var nCa=document.head,T4Z=nCa.appendChild,wp_;if(bFQ===void 0){var rv$=document.createElement("template");_.z(rv$,"\x3c!--css-build:shady--\x3e");rv$.content.insertBefore(me6().content.cloneNode(!0),rv$.content.firstChild);bFQ=rv$}wp_=bFQ;T4Z.call(nCa,wp_.content);var sp6;_.zH("sharingToggleButtonAndDefaultButton","buttonRenderer","yt-button-renderer");sp6=_.w("web_button_rework")&&_.Ss("BUTTON_REWORK")||_.w("web_button_rework_with_live");_.kq=function(){return _.h.apply(this,arguments)||this};
_.D(_.kq,_.h);_.kq.prototype.created=function(){this.openPopupConfig=_.Ub("openPopupConfig");this.ytButtonBehavior.showTooltips=!0};
_.kq.prototype.onYtNavigate_=function(J){var c=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(J.detail.endpoint);c&&(this.ytOpenPopupBehavior.openPopup(c),J.stopPropagation(),J.preventDefault())};
_.eE.Object.defineProperties(_.kq,{template:{configurable:!0,enumerable:!0,get:function(){if(JvB===void 0){var J=document.createElement("template");_.z(J,"\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");J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);
var c=J.content,m=c.insertBefore;gO2===void 0&&(gO2=document.createElement("template"));var b=gO2;m.call(c,b.content.cloneNode(!0),J.content.firstChild);JvB=J}J=JvB;return J}}});
_.kq.prototype.onYtNavigate_=_.kq.prototype.onYtNavigate_;_.O([_.f(_.M7.YtOpenPopupBehavior),_.R("design:type",Object)],_.kq.prototype,"ytOpenPopupBehavior",void 0);_.O([_.f(_.Br$.YtButtonBehavior),_.R("design:type",Object)],_.kq.prototype,"ytButtonBehavior",void 0);_.O([_.ps("yt-navigate"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],_.kq.prototype,"onYtNavigate_",null);
_.kq=_.O([_.uM({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:sp6})],_.kq);var Lzu;var Dez=_.w("web_button_rework")&&_.Ss("BUTTON_REWORK")||_.w("web_button_rework_with_live"),HL=function(){var J=_.h.apply(this,arguments)||this;J.isPressed=!1;J.forceIconButton=!1;J.forceIconOnly=!1;J.forceModernIconButton=!1;J.skipCommandHandling=!1;J.alignByText=!1;J.fitToVisibleBounds=!0;J.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};J.onTap=function(c){_.cA(J.hostElement,"yt-service-request-sent-button-renderer",c)};
return J};
_.D(HL,_.h);_.V=HL.prototype;_.V.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","");this.hostElement.setAttribute("button-next","")};
_.V.onClick=function(J){var c,m=this.disabled||((c=this.data)==null?void 0:c.isDisabled);c=this.hostElement.hasAttribute("dialog-dismiss")||this.hostElement.hasAttribute("dialog-confirm");m&&c&&J.stopPropagation()};
_.V.computeIcon=function(){var J,c,m=(J=this.data)==null?void 0:(c=J.icon)==null?void 0:c.iconType;if(m)return _.Pd(m)};
_.V.computeTooltip=function(){return this.data?this.data.isDisabled&&this.data.disabledTooltip||this.data.tooltip||null:null};
_.V.handleUpdateButtonAction=function(J){J=_.L(J,cK_);var c=_.L(J==null?void 0:J.updatedButton,_.ur);if(this.data&&J&&c){var m=this.data;m.targetId&&J.targetId&&m.targetId===J.targetId&&(this.data=c)}};
_.eE.Object.defineProperties(HL.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){var J=this;if(this.data){var c=eSJ({renderer:this.data,element:this.hostElement,commandController:{onSuccess:function(){return _.cA(J.hostElement,"yt-service-request-completed-button-renderer")},
onServerError:function(){return _.cA(J.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});c.alignByText=this.alignByText;return c}}}});
_.eE.Object.defineProperties(HL,{template:{configurable:!0,enumerable:!0,get:function(){if(Lzu===void 0){var J=document.createElement("template");_.z(J,'\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>');Lzu=J}J=Lzu;return J}}});
HL.prototype.onClick=HL.prototype.onClick;_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],HL.prototype,"ytComponentBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],HL.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],HL.prototype,"ytActionHandlerBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],HL.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],HL.prototype,"isPressed",void 0);
_.O([_.U(),_.R("design:type",Object)],HL.prototype,"forceIconButton",void 0);_.O([_.U(),_.R("design:type",Object)],HL.prototype,"forceIconOnly",void 0);_.O([_.U(),_.R("design:type",Object)],HL.prototype,"forceModernIconButton",void 0);_.O([_.U(),_.R("design:type",Object)],HL.prototype,"skipCommandHandling",void 0);_.O([_.U(),_.R("design:type",Object)],HL.prototype,"alignByText",void 0);_.O([_.U(),_.R("design:type",Object)],HL.prototype,"buttonTooltipPosition",void 0);
_.O([_.U(),_.R("design:type",Object)],HL.prototype,"fitToVisibleBounds",void 0);_.O([_.U({computed:"computeTooltip(data)"}),_.R("design:type",Object)],HL.prototype,"tooltip",void 0);_.O([_.U(),_.R("design:type",Object)],HL.prototype,"overrides",void 0);_.O([_.U(),_.R("design:type",Boolean)],HL.prototype,"disabled",void 0);_.O([_.ps("click"),_.R("design:type",Function),_.R("design:paramtypes",[Event]),_.R("design:returntype")],HL.prototype,"onClick",null);
_.O([_.q("data.*","forceIconButton","forceIconOnly","alignByText","disabled","forceModernIconButton","overrides"),_.R("design:type",Object),_.R("design:paramtypes",[])],HL.prototype,"computedButtonShape",null);HL=_.O([_.uM({is:"ytd-button-renderer",noInjection:!0,disableElementRegistration:!Dez,cssBuildOptOut:!0}),_.uM({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:!Dez,cssBuildOptOut:!0})],HL);var Wzz;var zQj;var iH=function(){var J=_.h.apply(this,arguments)||this;J.empty_=!0;J.loadTime=Infinity;J.pendingPaint=!1;J.hasChange_=!1;J.oldThumbnail_=null;J.oldDelayedSrc_="";J.objectURL_=null;return J};
_.D(iH,_.h);_.V=iH.prototype;_.V.attached=function(){this.hasChange_&&this.thumbnailChanged_()};
_.V.ready=function(){var J=this.shouldShowPlaceholder_();_.mq(this.hostElement,"no-transition",!0);J&&this.hostElement.classList.add("with-placeholder")};
_.V.isPreloaded=function(){return this.isThumbPreloaded_(this.thumbnail)};
_.V.isThumbPreloaded_=function(J){return!!this.get("webThumbnailDetailsExtensionData.isPreloaded",J)};
_.V.computeSrc_=function(){return this.delayedSrc||this.computeThumbnailSrc_(this.thumbnail)||uw_};
_.V.computeThumbnailSrc_=function(J){return J&&J.thumbnails?_.yn(J.thumbnails,this.dimension==="width"?this.width:this.height,this.preferredThumbnail,this.dimension):null};
_.V.computeAlt_=function(){var J=this.thumbnail&&this.thumbnail.accessibility&&this.thumbnail.accessibility.accessibilityData&&this.thumbnail.accessibility.accessibilityData.label;return this.loaded&&J||""};
_.V.thumbnailChanged_=function(){var J=_.M([this.thumbnail,this.oldThumbnail_]),c=J.next().value;J=J.next().value;this.oldThumbnail_=c;if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;if(this.loaded&&(J=this.computeThumbnailSrc_(J),this.computeThumbnailSrc_(c)===J))return;_.w("kevlar_use_vimio_behavior")&&this.ytRendererBehavior.markDirty();this.isThumbPreloaded_(c)?(this.loadTime=Infinity,this.setSrc_(this.thumbnail.thumbnails[0].url),this.empty_=!1):c&&_.Ss("DISABLE_YT_IMG_DELAY_LOADING",
!1)?this.loaded&&!this.empty_?_.o3(this,this.onReload_):_.o3(this,this.onShow_):this.resetImage_();c&&(this.hostElement.style.opacity=""+c.opacity)}};
_.V.delayedSrcChanged_=function(){var J=this.oldDelayedSrc_;this.oldDelayedSrc_=this.delayedSrc;this.loaded&&this.delayedSrc===J||this.resetImage_()};
_.V.setSrc_=function(J){J?(_.Bj(this.hostElement).querySelector("#img").src||this.hostElement.classList.remove("empty"),_.Bj(this.hostElement).querySelector("#img").src=J):(_.Bj(this.hostElement).querySelector("#img").removeAttribute("src"),this.hostElement.classList.add("empty"))};
_.V.resetImage_=function(){c42(this.hostElement);this.empty_=!0;this.setSrc_(uw_);this.ytRendererBehavior.invalidate(!1)};
_.V.observePlaceholderColor_=function(){var J=this.thumbnail&&this.thumbnail.placeholderColor;J?this.hostElement.style.backgroundColor=_.XB(J):this.shouldShowPlaceholder_()||(this.hostElement.style.backgroundColor="transparent")};
_.V.onLoad_=function(){_.Bj(this.hostElement).querySelector("#img").src&&_.Bj(this.hostElement).querySelector("#img").src!==uw_&&(J4T(this.hostElement),this.notifyOnLoaded&&_.cA(this.hostElement,"yt-img-shadow-loaded"),this.objectURL_&&(URL.revokeObjectURL(this.objectURL_),this.objectURL_=null))};
_.V.onError_=function(){var J=this;if(_.w("web_use_cache_for_image_fallback"))pNG(_.Bj(this.hostElement).querySelector("#img").src).then(function(c){J.objectURL_=_.wa(c).toString();J.setSrc_(J.objectURL_)}).catch(function(){_.w("kevlar_woffle_fallback_image")&&J.setSrc_("data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")});
else this.onLoad_()};
_.V.onPrescanVisible=function(){this.onShow_()};
_.V.onVisible=function(){if(_.w("yt_img_shadow_trigger_show_on_visible"))this.onShow_()};
_.V.onShow_=function(){if(!this.loaded||this.empty_){this.empty_=!1;var J=this.computeSrc_();J!==_.Bj(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(J))}};
_.V.onReload_=function(){this.empty_=!1;var J=this.computeSrc_();J!==_.Bj(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(J))};
_.V.shouldShowPlaceholder_=function(){return _.w("kevlar_thumbnail_bg")};
iH.prototype.observePlaceholderColor_=iH.prototype.observePlaceholderColor_;iH.prototype.delayedSrcChanged_=iH.prototype.delayedSrcChanged_;iH.prototype.thumbnailChanged_=iH.prototype.thumbnailChanged_;_.O([_.U({reflectToAttribute:!0}),_.R("design:type",String)],iH.prototype,"alt",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],iH.prototype,"ariaHidden",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",String)],iH.prototype,"ariaLabel",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],iH.prototype,"hidden",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",String)],iH.prototype,"id",void 0);_.O([_.f(_.hg.YtVisibilityBehavior),_.R("design:type",Object)],iH.prototype,"ytVisibilityBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],iH.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",String)],iH.prototype,"delayedSrc",void 0);
_.O([_.U(),_.R("design:type",Object)],iH.prototype,"thumbnail",void 0);_.O([_.U({value:!1,reflectToAttribute:!0}),_.R("design:type",Boolean)],iH.prototype,"loaded",void 0);_.O([_.U(),_.R("design:type",Boolean)],iH.prototype,"notifyOnLoaded",void 0);_.O([_.U(),_.R("design:type",Number)],iH.prototype,"height",void 0);_.O([_.U(),_.R("design:type",Number)],iH.prototype,"width",void 0);_.O([_.U({value:function(){return"width"}}),
_.R("design:type",String)],iH.prototype,"dimension",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],iH.prototype,"fit",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],iH.prototype,"fitHeight",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],iH.prototype,"fitWidth",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",String)],iH.prototype,"objectFit",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",String)],iH.prototype,"objectPosition",void 0);_.O([_.U(),_.R("design:type",String)],iH.prototype,"preferredThumbnail",void 0);_.O([_.U({value:"",computed:"computeAlt_(thumbnail.accessibility.accessibilityData.label, loaded)"}),_.R("design:type",String)],iH.prototype,"alt_",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",String)],iH.prototype,"sharedTooltipText",void 0);
_.O([_.U(),_.R("design:type",Boolean)],iH.prototype,"ftlEligible",void 0);_.O([_.U({value:void 0}),_.R("design:type",String)],iH.prototype,"observeHiddenOption",void 0);_.O([_.U({value:"observe_once"}),_.R("design:type",String)],iH.prototype,"observePrescanOption",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],iH.prototype,"roundedContainer",void 0);
_.O([_.kr("thumbnail"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],iH.prototype,"thumbnailChanged_",null);_.O([_.kr("delayedSrc"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],iH.prototype,"delayedSrcChanged_",null);_.O([_.NE("thumbnail.placeholderColor"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],iH.prototype,"observePlaceholderColor_",null);
iH=_.O([_.uM({is:"yt-img-shadow",disableElementRegistration:!0})],iH);var uw_=_.Ss("NO_EMPTY_DATA_IMG")?"":"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
_.cd()(iH,"yt-img-shadow",function(){if(zQj===void 0){var J=document.createElement("template");_.z(J,'\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">');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;Wzz===void 0&&(Wzz=document.createElement("template"));var b=Wzz;m.call(c,b.content.cloneNode(!0),J.content.firstChild);zQj=J}J=zQj;return J},{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 DYT;_.no=new _.oE("SCREEN_MANAGER_TOKEN");DYT=new _.oE("LOG_INITIAL_SCREEN_TOKEN");_.LK=_.Q1(function(J){function c(pG){return _.L(pG,_.ri)}
function m(){var pG=b().isTogglingDisabled||T()?Y():!Y();Z(pG);G(!1);if(!b().isTogglingDisabled){var kt;(kt=p)==null||kt(!!pG)}var nG;((nG=P)==null?0:nG())||_.b6(_.BG().resolve(_.no),b().trackingParams);var fG;if(!pG||!c(b().defaultButtonViewModel)||(fG=P)!=null&&fG()){var Yt;!c(b().toggledButtonViewModel)||((Yt=P)==null?0:Yt())||_.b6(_.BG().resolve(_.no),c(b().toggledButtonViewModel).trackingParams)}else _.b6(_.BG().resolve(_.no),c(b().defaultButtonViewModel).trackingParams)}
var b=J.data,x=J.buttonShapeOverrides,P=J.disableExplicitClickLogging,p=J.onToggle,t=J.style,I=J.useOutlinedIcon,a=J.className,k=function(){var pG,kt;return Y()?(pG=J.animatedTextPropsToggled)==null?void 0:pG.call(J):(kt=J.animatedTextPropsDefault)==null?void 0:kt.call(J)},H=_.n2(function(){return k()?Object.assign({},k(),{shouldAnimate:d()}):void 0},void 0,"ZKEa0b"),T=function(){var pG;
return((pG=l())==null?void 0:pG.isToggled)!==void 0},r=_.M(_.aO(function(){var pG,kt,nG;
return T()?(pG=l())==null?void 0:pG.isToggled:(nG=x==null?void 0:(kt=x())==null?void 0:kt.toggled)!=null?nG:b().isToggled})),W=r.next().value;
r=r.next().value;var Y=W,Z=r;r=_.M(_.aO(function(){var pG,kt;return(pG=J.animatedTextPropsToggled)==null?void 0:(kt=pG.call(J))==null?void 0:kt.shouldAnimate}));
W=r.next().value;r=r.next().value;var d=W,G=r;W=_.M(_.K2(!1,void 0,"S11hid"));var e=W.next().value,A=W.next().value,l=_.fq(function(pG){var kt;a:{var nG=b().entityKey,fG=b().toggledStateEntitySelectorType;if(fG&&nG)switch(fG){case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_SFV_AUDIO_ITEM":var Yt;pG=(Yt=_.P2(pG.entities,"sfvAudioItemCurrentlyPlayingEntity",nG))!=null?Yt:void 0;Yt=(kt=pG==null?void 0:pG.sfvAudioItemPlaybackState)!=null?kt:void 0;if(Yt==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"){kt={isToggled:!0};
break a}if(Yt){kt={isToggled:!1};break a}break;default:_.qz(new _.w3("Error: entitySelectorType defined but not matched in selector.",pG,fG))}kt=void 0}return kt}),y=function(){return Object.assign({},x==null?void 0:x(),{onToggle:m,
toggleable:!0,toggled:Y(),focused:e()})};
return _.C("toggle-button-view-model",{"on:focusin":_.Kq(function(){var pG=_.BG().resolve(_.y6(_.Js));pG&&A(pG.isKeyBoardInUse());return!1}),
"on:focusout":_.Kq(function(){A(!1);return!1}),
class:a},_.C(_.n,{cond:function(){return Y()?c(b().toggledButtonViewModel):c(b().defaultButtonViewModel)},
then:function(pG){return _.C(_.XU,{data:pG,className:a,style:t,useOutlinedIcon:I,buttonOverrides:y,animatedTextProps:H})}}))},"z");
_.LK.idomCompat={callbacks:{onToggle:!0}};_.lv(_.Q1(function(J){return _.C("yt-toggle-button-view-model",{class:function(){var c;return(c=J.scopingClassName)==null?void 0:c.call(J)}},_.C(_.LK,{data:function(){var c;
return(c=J.data)==null?void 0:c.call(J)},
buttonShapeOverrides:function(){var c;return(c=J.overrides)==null?void 0:c.call(J)},
animatedTextPropsDefault:function(){var c;return(c=J.animatedTextPropsDefault)==null?void 0:c.call(J)},
animatedTextPropsToggled:function(){var c;return(c=J.animatedTextPropsToggled)==null?void 0:c.call(J)},
disableExplicitClickLogging:function(){var c;return(c=J.disableExplicitClickLogging)==null?void 0:c.call(J)},
onToggle:function(c){var m;return(m=J.onToggle)==null?void 0:m.call(J,c)},
style:function(){var c;return(c=J.style)==null?void 0:c.call(J)},
useOutlinedIcon:function(){var c;return(c=J.useOutlinedIcon)==null?void 0:c.call(J)},
className:function(){var c;return(c=J.className)==null?void 0:c.call(J)}}))},"A"),"yt-toggle-button-view-model",{props:{data:_.vt,
buttonShapeOverrides:_.vt,overrides:_.vt,animatedTextPropsDefault:_.vt,animatedTextPropsToggled:_.vt,disableExplicitClickLogging:_.vt,onToggle:_.Fz,style:_.vt,useOutlinedIcon:_.vt,className:_.vt,scopingClassName:_.vt}});var Ti=function(){return _.h.apply(this,arguments)||this};
_.D(Ti,_.h);Ti.prototype.onTap=function(J){J.stopPropagation();J=this.isLiked?"TOOLBAR_LIKE_STATE_INDIFFERENT":"TOOLBAR_LIKE_STATE_LIKED";this.engagementState?this.ytLiveChatReduxBehavior.dispatch(_.DI("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:J})):this.ytLiveChatReduxBehavior.dispatch(_.It("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:J}))};
_.eE.Object.defineProperties(Ti.prototype,{isLiked:{configurable:!0,enumerable:!0,get:function(){var J;return((J=this.engagementState)==null?void 0:J.likeState)==="TOOLBAR_LIKE_STATE_LIKED"}},
toggleButton:{configurable:!0,enumerable:!0,get:function(){if(this.data){var J=_.L(this.data.toggleButton,_.sc),c;if(Number(((c=this.likeCountState)==null?void 0:c.likeCountIfIndifferentNumber)||"0")===0){var m;c=((m=this.data.likeCountPlaceholder)==null?void 0:m.content)||""}else{var b,x,P;c=((b=this.likeCountState)==null?void 0:(x=b.likeCountIfIndifferent)==null?void 0:x.content)||((P=this.data.likeCountPlaceholder)==null?void 0:P.content)||""}var p,t;m=((p=this.likeCountState)==null?void 0:(t=
p.likeCountIfLiked)==null?void 0:t.content)||"1";p=_.L(J.toggledButtonViewModel,_.ri);return Object.assign({},J,{isToggled:this.isLiked,defaultButtonViewModel:{buttonViewModel:Object.assign({},_.L(J.defaultButtonViewModel,_.ri),{title:c})},toggledButtonViewModel:{buttonViewModel:Object.assign({},p,{title:m})}})}}}});
Ti.prototype.onTap=Ti.prototype.onTap;_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],Ti.prototype,"ytComponentBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Ti.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.XL),_.R("design:type",Object)],Ti.prototype,"ytLiveChatReduxBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Ti.prototype,"data",void 0);
_.O([_.U({selectorArgs:["data.likeCountEntityKey"],selector:jLJ}),_.R("design:type",Object)],Ti.prototype,"likeCountState",void 0);_.O([_.U({selectorArgs:["data.engagementStateKey"],selector:sLD}),_.R("design:type",Object)],Ti.prototype,"engagementState",void 0);_.O([_.q("data","engagementState"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Ti.prototype,"isLiked",null);
_.O([_.q("data","likeCountState","isLiked"),_.R("design:type",Object),_.R("design:paramtypes",[])],Ti.prototype,"toggleButton",null);_.O([_.ps("tap"),_.R("design:type",Function),_.R("design:paramtypes",[Event]),_.R("design:returntype")],Ti.prototype,"onTap",null);Ti=_.O([_.uM({disableElementRegistration:!0,is:"yt-live-chat-like-button-view-model",noInjection:!0})],Ti);
_.v(Ti,"yt-live-chat-like-button-view-model",function(){if(AXC===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;O5Q===void 0&&(O5Q=document.createElement("template"));var b=O5Q;m.call(c,b.content.cloneNode(!0),J.content.firstChild);AXC=J}J=AXC;return J},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var fp8;var YDB;var wd=function(){return _.h.apply(this,arguments)||this};
_.D(wd,_.h);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],wd.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],wd.prototype,"data",void 0);wd=_.O([_.uM({disableElementRegistration:!0,is:"yt-live-chat-paid-message-footer-renderer",isInjectionRoot:!0})],wd);
_.v(wd,"yt-live-chat-paid-message-footer-renderer",function(){if(YDB===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;fp8===void 0&&(fp8=document.createElement("template"));var b=fp8;m.call(c,b.content.cloneNode(!0),J.content.firstChild);YDB=J}J=YDB;return J},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var Xp$;var ZFQ;var qDj;var UeQ,SDj=function(){if(UeQ!==void 0)return UeQ;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);var c=J.content,m=c.insertBefore;qDj===void 0&&(qDj=document.createElement("template"));var b=qDj;m.call(c,b.content.cloneNode(!0),J.content.firstChild);return UeQ=J};var rd=function(){return _.h.apply(this,arguments)||this};
_.D(rd,_.h);rd.prototype.onTap=function(J){J.stopPropagation()};
_.eE.Object.defineProperties(rd.prototype,{buttonViewModel:{configurable:!0,enumerable:!0,get:function(){if(this.data){var J=_.L(this.data.replyButton,_.ri),c,m,b,x,P,p,t,I=Number(((c=this.replyCountState)==null?void 0:c.replyCountNumber)||"0")===0?(m=this.data)==null?void 0:(b=m.replyCountPlaceholder)==null?void 0:b.content:((x=this.replyCountState)==null?void 0:(P=x.replyCount)==null?void 0:P.content)||((p=this.data)==null?void 0:(t=p.replyCountPlaceholder)==null?void 0:t.content)||"",a;return Object.assign({},
J,{title:I,accessibilityText:(a=this.replyCountState)==null?void 0:a.replyButtonAccessibilityText})}}}});
_.eE.Object.defineProperties(rd,{template:{configurable:!0,enumerable:!0,get:function(){return SDj()}}});
rd.prototype.onTap=rd.prototype.onTap;_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],rd.prototype,"ytComponentBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],rd.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.XL),_.R("design:type",Object)],rd.prototype,"ytLiveChatReduxBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],rd.prototype,"data",void 0);
_.O([_.U({selectorArgs:["data.replyCountEntityKey"],selector:function(J,c){return _.P2(J.entities,"replyCountEntity",c)}}),
_.R("design:type",Object)],rd.prototype,"replyCountState",void 0);_.O([_.q("data","replyCountState"),_.R("design:type",Object),_.R("design:paramtypes",[])],rd.prototype,"buttonViewModel",null);_.O([_.ps("tap"),_.R("design:type",Function),_.R("design:paramtypes",[Event]),_.R("design:returntype")],rd.prototype,"onTap",null);rd=_.O([_.uM({disableElementRegistration:!0,is:"yt-live-chat-reply-button-view-model",noInjection:!0})],rd);
_.v(rd,"yt-live-chat-reply-button-view-model",function(){return SDj()},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var hQC;var deC;var s0=function(){var J=_.h.apply(this,arguments)||this;J.ariaLabel="";return J};
_.D(s0,_.h);
s0.prototype.dataChanged=function(){for(var J=(0,_.xr)(_.Bj(this.hostElement).querySelector("#image"));J.firstChild;)J.removeChild(J.firstChild);if(this.data)if(this.data.icon){var c=document.createElement("yt-icon");this.data.icon.iconType==="MODERATOR"&&this.enableNewModeratorBadge?(c.polymerController.icon="yt-sys-icons:shield-filled",c.polymerController.defaultToFilled=!0):c.polymerController.icon="live-chat-badges:"+this.data.icon.iconType.toLowerCase();J.appendChild(c)}else if(this.data.customThumbnail){c=document.createElement("img");
var m=_.eOT(this.data.customThumbnail.thumbnails,16);m?(c.src=m,J.appendChild(c),c.setAttribute("alt",this.hostElement.ariaLabel||"")):_.qz(new _.w3("Could not compute URL for thumbnail",this.data.customThumbnail))}};
s0.prototype.identity=function(J){return J};
s0.prototype.computeType=function(J){return bv(J||void 0)};
s0.prototype.dataChanged=s0.prototype.dataChanged;_.O([_.U(),_.R("design:type",Object)],s0.prototype,"data",void 0);_.O([_.U({computed:"identity(data.accessibility.accessibilityData.label)",reflectToAttribute:!0}),_.R("design:type",Object)],s0.prototype,"ariaLabel",void 0);_.O([_.U({computed:"computeType(data)",reflectToAttribute:!0}),_.R("design:type",String)],s0.prototype,"type",void 0);
_.O([_.U({computed:"identity(data.tooltip)",reflectToAttribute:!0}),_.R("design:type",String)],s0.prototype,"sharedTooltipText",void 0);_.O([_.U({reflectToAttribute:!0,value:function(){return _.w("live_chat_enable_new_moderator_badge")}}),
_.R("design:type",Boolean)],s0.prototype,"enableNewModeratorBadge",void 0);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],s0.prototype,"dataChanged",null);s0=_.O([_.uM({disableElementRegistration:!0,is:"yt-live-chat-author-badge-renderer",noInjection:!0})],s0);
_.v(s0,"yt-live-chat-author-badge-renderer",function(){if(deC===void 0){var J=document.createElement("template");_.z(J,'\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>');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;hQC===void 0&&(hQC=document.createElement("template"));var b=hQC;m.call(c,b.content.cloneNode(!0),J.content.firstChild);deC=J}J=deC;return J},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var $e6;var Gf6;var Lo=function(){return _.h.apply(this,arguments)||this};
_.D(Lo,_.h);_.V=Lo.prototype;_.V.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"}}}}};
_.V.computeBadgesInsideChip=function(J){return J?J.filter(function(c){return bv(c.liveChatAuthorBadgeRenderer)==="verified"}):[]};
_.V.computeBadgesOutsideChip=function(J){return this.prependChatBadges||!J?[]:J.filter(function(c){c=bv(c.liveChatAuthorBadgeRenderer);return c!=="verified"&&c!=="owner"})};
_.V.computeBadgesBeforeChip=function(J){return this.prependChatBadges&&J?J.filter(function(c){c=bv(c.liveChatAuthorBadgeRenderer);return c!=="verified"&&c!=="owner"}):[]};
_.V.computeIsHighlighted=function(J,c){var m=!!MZ3(J,"owner"),b=!!MZ3(J,"verified");J=!!MZ3(J,"moderator");return(m||b&&!J)&&!c};
_.V.computeAuthorType=function(J){return Pp3(J)};
_.V.computeAuthorClass=function(J,c){return c?(J?J+" ":"")+"single-line":J};
_.V.onSeedColorChanged=function(){_.w("live_chat_author_name_color_usernames")||_.w("live_chat_seed_color_usernames")||_.w("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):_.w("live_chat_simple_color_usernames")&&this.authorNameColor&&(this.username.style.color=
this.authorNameColor)};
Lo.prototype.onSeedColorChanged=Lo.prototype.onSeedColorChanged;_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],Lo.prototype,"ytComponentBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],Lo.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Lo.prototype,"authorName",void 0);_.O([_.U(),_.R("design:type",Array)],Lo.prototype,"authorBadges",void 0);
_.O([_.U({computed:"computeAuthorType(authorBadges)"}),_.R("design:type",String)],Lo.prototype,"authorType",void 0);_.O([_.U({computed:"computeAuthorClass(authorType, singleLine)"}),_.R("design:type",String)],Lo.prototype,"authorClass",void 0);_.O([_.U({computed:"computeBadgesInsideChip(authorBadges)"}),_.R("design:type",Array)],Lo.prototype,"badgesInsideChip",void 0);_.O([_.U({computed:"computeBadgesOutsideChip(authorBadges)"}),_.R("design:type",Array)],Lo.prototype,"badgesOutsideChip",void 0);
_.O([_.U({computed:"computeBadgesBeforeChip(authorBadges)"}),_.R("design:type",Array)],Lo.prototype,"badgesBeforeChip",void 0);_.O([_.U({computed:"computeIsHighlighted(authorBadges, disableHighlighting)",reflectToAttribute:!0}),_.R("design:type",Boolean)],Lo.prototype,"isHighlighted",void 0);_.O([_.U({value:!1}),_.R("design:type",Boolean)],Lo.prototype,"singleLine",void 0);_.O([_.U({value:!1}),_.R("design:type",Boolean)],Lo.prototype,"disableHighlighting",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],Lo.prototype,"dashboardMoneyFeed",void 0);_.O([_.U({value:_.w("live_chat_prepend_badges"),reflectToAttribute:!0}),_.R("design:type",Boolean)],Lo.prototype,"prependChatBadges",void 0);_.O([_.U(),_.R("design:type",String)],Lo.prototype,"authorNameColor",void 0);_.O([_.Iu("#author-name"),_.R("design:type",HTMLDivElement)],Lo.prototype,"username",void 0);
_.O([_.NE("authorNameColor"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Lo.prototype,"onSeedColorChanged",null);Lo=_.O([_.uM({disableElementRegistration:!0,is:"yt-live-chat-author-chip",noInjection:!0})],Lo);
_.v(Lo,"yt-live-chat-author-chip",function(){if(Gf6===void 0){var J=document.createElement("template");_.z(J,'\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>');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;$e6===void 0&&($e6=document.createElement("template"));var b=$e6;m.call(c,b.content.cloneNode(!0),J.content.firstChild);Gf6=J}J=Gf6;return J},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var ECC;var vCj;var Do=function(){var J=_.h.apply(this,arguments)||this;J.debounceCommand=_.Kd(function(c){J.ytComponentBehavior.resolveCommand(c)},1500);
return J};
_.D(Do,_.h);Do.prototype.onTap=function(){if(this.engagementState&&this.engagementState.key&&this.isEditable){var J=this.isHearted?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE",c,m,b=this.isHearted?(c=this.data)==null?void 0:c.unheartCommand:(m=this.data)==null?void 0:m.heartCommand;this.ytLiveChatReduxBehavior.dispatch(_.DI("engagementToolbarStateEntityPayload",this.engagementState.key,{heartState:J}));(J=_.ZG(b))&&this.debounceCommand(J)}};
_.eE.Object.defineProperties(Do.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var J,c;if(!((J=this.data)==null?0:(c=J.creatorThumbnail)==null?0:c.sources))return{};J={thumbnails:[]};c={};c.url=this.data.creatorThumbnail.sources[0].url;J.thumbnails.push(c);return J}},
isHearted:{configurable:!0,enumerable:!0,get:function(){var J,c;return((J=this.engagementState)==null?void 0:J.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((c=this.engagementState)==null?void 0:c.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
isEditable:{configurable:!0,enumerable:!0,get:function(){var J,c;return((J=this.engagementState)==null?void 0:J.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((c=this.engagementState)==null?void 0:c.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
showCreatorView:{configurable:!0,enumerable:!0,get:function(){var J;return((J=this.engagementState)==null?void 0:J.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"}},
showButton:{configurable:!0,enumerable:!0,get:function(){var J,c,m;return((J=this.engagementState)==null?void 0:J.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((c=this.engagementState)==null?void 0:c.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||((m=this.engagementState)==null?void 0:m.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}}});
Do.prototype.onTap=Do.prototype.onTap;_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],Do.prototype,"ytComponentBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Do.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.XL),_.R("design:type",Object)],Do.prototype,"ytLiveChatReduxBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Do.prototype,"data",void 0);
_.O([_.U({selectorArgs:["data.engagementStateKey"],selector:sLD}),_.R("design:type",Object)],Do.prototype,"engagementState",void 0);_.O([_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],Do.prototype,"thumbnailDetails",null);_.O([_.q("data","engagementState"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Do.prototype,"isHearted",null);_.O([_.q("data","engagementState"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Do.prototype,"isEditable",null);
_.O([_.q("data","engagementState"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Do.prototype,"showCreatorView",null);_.O([_.q("data","engagementState"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Do.prototype,"showButton",null);_.O([_.q("data","isHearted"),_.R("design:type",String),_.R("design:paramtypes",[])],Do.prototype,"label",null);_.O([_.q("data","isHearted"),_.R("design:type",Object),_.R("design:paramtypes",[])],Do.prototype,"heartHoverText",null);
_.O([_.ps("tap"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Do.prototype,"onTap",null);Do=_.O([_.uM({disableElementRegistration:!0,is:"yt-live-chat-creator-heart-view-model"})],Do);
_.v(Do,"yt-live-chat-creator-heart-view-model",function(){if(vCj===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;ECC===void 0&&(ECC=document.createElement("template"));var b=ECC;m.call(c,b.content.cloneNode(!0),J.content.firstChild);vCj=J}J=vCj;return J},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var WL=function(){};
_.D(WL,Jg);WL.prototype.JSC$10999_getRequest=function(){return{input:"/getDatasyncIdsEndpoint",requestShell:OH("/getDatasyncIdsEndpoint","GET"),innerTubeRequest:{}}};
WL.prototype.getApiPaths=function(){return[]};
WL.prototype.getExtension=function(){};
WL.prototype.JSC$10999_buildRequest=function(){};var OF2={},AvQ=(OF2.GET_DATASYNC_IDS=Hj(WL),OF2);var RQ6,oCZ,Qp6,oTQ,zi,FzL,yt$,jp8,eQQ;RQ6="tokens consistency mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD shorts_prefetch".split(" ");oCZ=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse"];
_.Sp=function(J,c,m,b,x,P,p,t,I){this.endpointMap=J;this.networkManager=c;this.authService=m;this.responseProcessorMap=b;this.innertubeResponseStore=x;this.contextProcessors=P;this.asyncContextProcessors=p;this.localInnertubeRouter=t;this.requestSequencer=I;this.inflightRequests=new Map;J.signalEndpointMap||(J.signalEndpointMap={});J.signalEndpointMap=Object.assign({},AvQ,J.signalEndpointMap)};
Qp6=function(J,c,m,b,x,P,p,t,I){if(_.Sp.instance!==void 0){if(b=_.Sp.instance,J=[J!==b.endpointMap,c!==b.networkManager,m!==b.authService,x!==b.innertubeResponseStore,P!==b.contextProcessors,p!==b.asyncContextProcessors,t!==b.localInnertubeRouter],J.some(function(a){return a}))throw new _.w3("InnerTubeTransportService is already initialized",J);
}else _.Sp.instance=new _.Sp(J,c,m,b,x,P,p,t,I)};
_.ds=function(J,c,m){var b=b===void 0?CjZ:b;var x=yt$(J,c);return x?new _.IN(function(P,p){var t,I,a,k,H;return _.N(function(T){switch(T.nextAddress){case 1:return _.K(T,x,2);case 2:t=T.yieldResult;I=t.JSC$10999_getRequest(c,m,b);if(!I){p(new _.w3("Error: Failed to build request for command.",c));T.jumpTo(0);break}hc(I.input);k=((a=I.requestShell)==null?void 0:a.mode)==="cors"?"cors":void 0;if(J.authService.syncHeaders){H=eQQ(I.config,k);T.jumpTo(4);break}return _.K(T,jp8(I.config,k),5);case 5:H=
T.yieldResult;case 4:P(FzL(J,I,H)),_.tD(T)}})}):_.sv(new _.w3("Error: No request builder found for command.",c))};
oTQ=function(J,c,m,b){var x=x===void 0?CjZ:x;var P,p,t,I,a,k,H,T,r,W,Y,Z,d,G,e,A,l,y;return _.N(function(pG){switch(pG.nextAddress){case 1:P=yY3(c,J.endpointMap);if(!P)throw new _.w3("Error: No streaming request builder found for command",c);p=P.JSC$10999_getRequest(c,m,x);if(!p)throw new _.w3("Failed to build YtRequest for streaming Command",c);if((t=J.localInnertubeRouter)==null||!t.shouldPreferLocalResponse(p.input,p.innerTubeRequest)){pG.jumpTo(2);break}return _.K(pG,J.localInnertubeRouter.localInnertubeResponse(p.input,
p.innerTubeRequest),3);case 3:return I=pG.yieldResult,a={},I.playerResponse&&(zi(J,I.playerResponse,p),a.player=I.playerResponse,(k=b)==null||k(a,I)),I.watchNextResponse&&(zi(J,I.watchNextResponse,p),a.content=I.watchNextResponse,(H=b)==null||H(a,I)),pG.return(a);case 2:r=((T=p.requestShell)==null?void 0:T.mode)==="cors"?"cors":void 0;if(J.authService.syncHeaders){W=eQQ(p.config,r);pG.jumpTo(4);break}return _.K(pG,jp8(p.config,r),5);case 5:W=pG.yieldResult;case 4:return d=(Z=(Y=p.requestShell)==null?
void 0:Y.headers)!=null?Z:{},p.requestShell=Object.assign({},p.requestShell,{headers:Object.assign({},d,W)}),G=Object.assign({},p.requestShell),e=JSON.stringify(p.innerTubeRequest),p.requestShell.method==="POST"&&(G=Object.assign({},G,{body:e})),A=function(kt,nG){zi(J,nG.playerResponse||nG.watchNextResponse||nG.reelItemWatchResponse||nG.reelWatchSequenceResponse,p);b==null||b(kt,nG)},l={},_.K(pG,lpZ(J.networkManager,p.input,G,A),6);
case 6:return l=pG.yieldResult,((y=p.config)==null?0:y.responseTick)&&_.Y2(p.config.responseTick),pG.return(l)}})};
_.W$=function(J,c,m,b,x){x=x===void 0?{authStrategy:{identity:CjZ}}:x;var P=P===void 0?!0:P;var p=function(){};
p=C4m(IrD(m));c.context||(c.context=_.nqu(b,P));return new _.IN(function(t){var I,a,k,H,T;return _.N(function(r){if(r.nextAddress==1)return I=g13(m),a=_.vS(I),J.authService.syncHeaders?(k=eQQ(x,a),r.jumpTo(2)):_.K(r,jp8(x,a),3);r.nextAddress!=2&&(k=r.yieldResult);H=JED(g13(m));T={input:H,requestShell:OH(H),innerTubeRequest:c,config:x};t(FzL(J,T,k,p));_.tD(r)})})};
zi=function(J,c,m){var b;if(c&&!(c==null?0:(b=c.sequenceMetaData)==null?0:b.skipProcessing)&&J.responseProcessorMap){b=_.M(RQ6);for(var x=b.next();!x.done;x=b.next())x=x.value,J.responseProcessorMap[x]&&J.responseProcessorMap[x].handleResponse(c,m)}};
FzL=function(J,c,m,b){b=b===void 0?function(){}:b;
var x,P,p,t,I,a,k,H,T,r,W,Y,Z,d,G,e,A,l,y,pG,kt,nG,fG,Yt,Z3,oR,Em,X$,Hu,S6,a2,Nu,cu,t8,I_,fU,Nf,wL,qu,O5;return _.N(function(LQ){switch(LQ.nextAddress){case 1:p=(x=c.config)==null?void 0:(P=x.storeStrategy)==null?void 0:P.storeKey;if(!(p&&J.innertubeResponseStore&&J.innertubeResponseStore.has(p))||((t=c.config)==null?0:(I=t.storeStrategy)==null?0:I.disableCache)){LQ.jumpTo(2);break}return _.K(LQ,J.innertubeResponseStore.get(p),3);case 3:if((a=LQ.yieldResult)&&!a.isExpired())return LQ.return(Promise.resolve(_.xg(a)));
case 2:if(!((k=c)==null?0:(H=k.innerTubeRequest)==null?0:H.context)){LQ.jumpTo(4);break}T=c.innerTubeRequest.context;if(!(J.asyncContextProcessors&&J.asyncContextProcessors.length>0)){LQ.jumpTo(5);break}r=[];W=_.M(J.asyncContextProcessors);for(Y=W.next();!Y.done;Y=W.next())Z=Y.value,d=Z.processContext(c),d.wrappedPromise_&&r.push(d.wrappedPromise_);if(!(r.length>0)){LQ.jumpTo(5);break}return _.K(LQ,Promise.all(r),5);case 5:G=_.M(J.contextProcessors||[]),e=G.next();case 8:if(e.done){LQ.jumpTo(4);break}A=
e.value;return _.K(LQ,A.processContext(T),9);case 9:e=G.next();LQ.jumpTo(8);break;case 4:if((l=J.localInnertubeRouter)==null||!l.shouldPreferLocalResponse(c.input,c.innerTubeRequest)){LQ.jumpTo(12);break}return _.K(LQ,J.localInnertubeRouter.localInnertubeResponse(c.input,c.innerTubeRequest),13);case 13:return y=LQ.yieldResult,zi(J,y,c),LQ.return(y);case 12:return(nG=(kt=c.config)==null?void 0:kt.requestKey)&&J.inflightRequests.has(nG)?pG=J.inflightRequests.get(nG):(fG=JSON.stringify(c.innerTubeRequest),
oR=(Z3=(Yt=c.requestShell)==null?void 0:Yt.headers)!=null?Z3:{},c.requestShell=Object.assign({},c.requestShell,{headers:Object.assign({},oR,m)}),Em=Object.assign({},c.requestShell),c.requestShell.method==="POST"&&(Em=Object.assign({},Em,{body:fG})),((X$=c.config)==null?0:X$.requestTick)&&_.Y2(c.config.requestTick),Hu=function(){return J.networkManager.fetch(c.input,Em,c.config)},pG=J.requestSequencer?yvj(J.requestSequencer,c,Hu):Hu(),nG&&J.inflightRequests.set(nG,pG)),_.K(LQ,pG,14);
case 14:(S6=LQ.yieldResult)&&_.w("web_streaming_player")&&Array.isArray(S6)&&(S6=S6[0].playerResponse);if(S6&&"error"in S6&&((a2=S6)==null?0:(Nu=a2.error)==null?0:Nu.details))for(cu=S6.error.details,t8=_.M(cu),I_=t8.next();!I_.done;I_=t8.next())fU=I_.value,(Nf=fU["@type"])&&oCZ.indexOf(Nf)>-1&&(delete fU["@type"],S6=fU);nG&&J.inflightRequests.has(nG)&&J.inflightRequests.delete(nG);((wL=c.config)==null?0:wL.responseTick)&&_.Y2(c.config.responseTick);if(S6||(qu=J.localInnertubeRouter)==null||!qu.canProvideFallbackResponse(c.input,
c.innerTubeRequest)){LQ.jumpTo(15);break}return _.K(LQ,J.localInnertubeRouter.localFallbackInnertubeResponse(c.input,c.innerTubeRequest),16);case 16:S6=LQ.yieldResult;case 15:return zi(J,S6,c),((O5=c.config)==null?0:O5.processorTick)&&_.Y2(c.config.processorTick),b(),LQ.return(S6||void 0)}})};
_.hP=function(J,c){return lJt(c,J.endpointMap)};
yt$=function(J,c){J=BA2(c,J.endpointMap);if(J!==void 0)return Promise.resolve(J)};
jp8=function(J,c){var m,b,x,P;return _.N(function(p){if(p.nextAddress==1){x=(m=J)==null?void 0:(b=m.authStrategy)==null?void 0:b.sessionIndex;var t=_.ML(zYq({sessionIndex:x}));return _.K(p,t,2)}P=p.yieldResult;return p.return(Promise.resolve(Object.assign({},gQm(c),P)))})};
eQQ=function(J,c){var m;J=J==null?void 0:(m=J.authStrategy)==null?void 0:m.sessionIndex;m=zYq({sessionIndex:J});return Object.assign({},gQm(c),m)};var B46,gC8,JC$,cCj,mFL,bxj,PwC,Mm2,Yq,pb_,NYZ,VmQ,tm_;B46=0;gC8=/tone[1-5]/;JC$=" \ud83c\udffb \ud83c\udffc \ud83c\udffd \ud83c\udffe \ud83c\udfff".split(" ");cCj="UCzC5CNksIBaiT-NdMJjJNOQ/COLRg9qOwdQCFce-qgodrbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CMKC7uKOwdQCFce-qgodqbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CJiQ8uiOwdQCFcx9qgodysAOHg UCzC5CNksIBaiT-NdMJjJNOQ/CI3h3uDJitgCFdARTgodejsFWg UCzC5CNksIBaiT-NdMJjJNOQ/CI69oYTKitgCFdaPTgodsHsP5g UCzC5CNksIBaiT-NdMJjJNOQ/CKzQr47KitgCFdCITgodq6EJZg UCzC5CNksIBaiT-NdMJjJNOQ/CPGD8Iu8kN4CFREChAod9OkLmg".split(" ");
mFL=Number.MAX_SAFE_INTEGER;bxj=RegExp("\ufe0f","g");_.uH=function(J){this.skinTone=0;this.emojiSize=24;this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.pickerCustomEmojiIds=[];this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1;J&&_.xFC(this,J)};
_.xFC=function(J,c){try{_.tL(c,{context:J,onSuccess:function(b,x){Array.isArray(x)?J.load(x):(b=new _.w3("Emoji manager JSON response was not an array!",{response:x}),_.Xc(b))},
onError:function(b){b=new _.w3("Failed to retrieve emoji manager initial JSON data!",{url:c,statusCode:_.xK(b).toString()});_.qz(b)}})}catch(b){var m=new _.w3("Failed to parse unicode emoji JSON data! Error: {e.message}",{url:c});
_.qz(m)}};
_.uH.prototype.clear=function(){this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1};
_.uH.prototype.load=function(J,c){if(c)if(J.length)J=J.concat(c.emojis);else{this.emojis=c.emojis;this.emojiMap=c.emojiMap;this.emojiShortcutMap=c.emojiShortcutMap;this.emojiShortcutCharMap=VmQ(c);this.hasInitializedShortcutCharMap=!0;this.emojiRegex=c.emojiRegex;return}this.emojis=[].concat(_.L6(new Set(this.emojis.concat(J))));this.hasInitializedShortcutCharMap=!1;J=Array(this.emojis.length);for(c=0;c<this.emojis.length;c++){var m=this.emojis[c];if(m.emojiId){this.emojiMap[m.emojiId]=m;this.emojiMap[m.emojiId].index=
c;for(var b=0;m.shortcuts&&b<m.shortcuts.length;b++)this.emojiShortcutMap[m.shortcuts[b].toLocaleLowerCase()]=m;J[c]=m.isCustomEmoji&&m.shortcuts?m.shortcuts[0]:m.emojiId}}J.sort(function(x,P){return P.length-x.length});
if(J.length)try{this.emojiRegex=new RegExp(J.join("|").replace("*","\\*"),"gi")}catch(x){this.emojiRegex=/$./}else this.emojiRegex=/$./};
PwC=function(J,c){c=_.M(c);for(var m=c.next();!m.done;m=c.next()){var b=m.value;if(b.emojiId&&J.emojiMap[b.emojiId]){m=Object.assign({},J.emojiMap[b.emojiId],b);J.emojiMap[b.emojiId]=m;var x=void 0;m.index&&((x=J.emojis[m.index])==null?void 0:x.emojiId)===b.emojiId&&(J.emojis[m.index]=m);b=void 0;if((b=m.shortcuts)==null?0:b.length)for(J.hasInitializedShortcutCharMap=!1,b=_.M(m.shortcuts),x=b.next();!x.done;x=b.next())J.emojiShortcutMap[x.value.toLocaleLowerCase()]=m}}};
Mm2=function(J){var c,m;_.N(function(b){if(b.nextAddress==1)return _.K(b,_.H$.getInstance(),2);if(b.nextAddress!=3)return(c=b.yieldResult)?_.K(b,c.get("ytlc-emoji-pref"),3):b.return();(m=b.yieldResult)&&PwC(J,Object.keys(m).map(function(x){return{emojiId:x,stickyPrefId:m[x]}}).filter(function(x){return!!x.emojiId&&!!x.stickyPrefId}));
_.tD(b)})};
_.fo=function(J,c,m){return(J=J.emojiMap[c])&&(!J.isLocked||m!==void 0&&m)?J:void 0};
Yq=function(J,c,m){m=_.fo(J,c,m===void 0?!1:m);var b=c.match("\u200d");m&&J.skinTone!==0&&(J=(b==null?void 0:b.length)===1?_.fo(J,c.replace("\u200d",JC$[J.skinTone]+"\u200d")):_.fo(J,c+JC$[J.skinTone]))&&(m=J);return m};
pb_=function(J,c){var m=J.emojiMap[c];return(m==null?0:m.stickyPrefId)?J.emojiMap[m.stickyPrefId]:Yq(J,c)};
_.Cy=function(J,c){J=J.emojiShortcutMap[c.toLocaleLowerCase()];return!J||J.isLocked?null:J};
NYZ=function(J,c,m){return VmQ(J,m===void 0?!1:m)[c]||{}};
VmQ=function(J,c){c=c===void 0?!1:c;if(!J.hasInitializedShortcutCharMap){J.hasInitializedShortcutCharMap=!0;for(var m=0;m<J.emojis.length;m++){var b=J.emojis[m];if(!(b.isLocked||c&&b.isCustomEmoji&&b.emojiId&&!J.pickerCustomEmojiIds.includes(b.emojiId)))for(var x=0;b.shortcuts&&x<b.shortcuts.length;x++){var P=b.shortcuts[x];P.startsWith(":_")&&b.isCustomEmoji&&(J.emojiShortcutCharMap[":_"]==null&&(J.emojiShortcutCharMap[":_"]=Object.create(null)),J.emojiShortcutCharMap[":_"][P]=b);if(!(P.length<3||
!b.isCustomEmoji&&gC8.test(P))){var p=P.substr(0,3).toLocaleLowerCase();J.emojiShortcutCharMap[p]==null&&(J.emojiShortcutCharMap[p]=Object.create(null));J.emojiShortcutCharMap[p][P]=b}}}}return J.emojiShortcutCharMap};
_.uH.prototype.createEmoji=function(J,c){c=c===void 0?!0:c;var m=document.createElement("img");J.isCustomEmoji||m.classList.add("small-emoji");m.classList.add("emoji");m.classList.add("yt-formatted-string");m.src=J.image?_.yn(J.image.thumbnails,this.emojiSize)||"":"";var b=void 0;J.image&&J.image.accessibility&&J.image.accessibility.accessibilityData&&(b=J.image.accessibility.accessibilityData.label);m.alt=b?b:(J.isCustomEmoji&&J.shortcuts?J.shortcuts[0]:J.emojiId)||"";J.isCustomEmoji&&(m.dataset.emojiId=
J.emojiId);_.JK&&(m.setAttribute("contenteditable","false"),m.setAttribute("unselectable","on"));c&&(J.shortcuts&&J.shortcuts.length&&m.setAttribute("shared-tooltip-text",J.shortcuts[0]),m.id="emoji-"+B46++);return m};
_.uH.prototype.createDocumentFragment=function(J,c,m,b){c=c===void 0?!1:c;m=m===void 0?!0:m;b=b===void 0?!1:b;J=J.replace(bxj,"");for(var x=document.createDocumentFragment(),P=0,p,t=0;(p=this.emojiRegex.exec(J))!=null;){var I=_.fo(this,p[0])||_.Cy(this,p[0]);!I||I.isCustomEmoji&&!c||(I=this.createEmoji(I,m),P!==p.index&&x.appendChild(document.createTextNode(J.substring(P,p.index))),x.appendChild(I),P=p.index+p[0].length,t++)}if(!b||t)return x.appendChild(document.createTextNode(J.substr(P))),x};
tm_=function(J,c,m){var b,x,P,p,t,I,a,k,H;return _.N(function(T){if(T.nextAddress==1){if(!c.emojiId||!J.emojiMap[c.emojiId])return T.return();b=Object.assign({},J.emojiMap[c.emojiId],{stickyPrefId:m});J.emojiMap[c.emojiId]=b;c.index&&((x=J.emojis[c.index])==null?void 0:x.emojiId)===c.emojiId&&(J.emojis[c.index]=b);if((P=c.shortcuts)==null?0:P.length)for(J.hasInitializedShortcutCharMap=!1,p=_.M(c.shortcuts),t=p.next();!t.done;t=p.next())I=t.value,J.emojiShortcutMap[I.toLocaleLowerCase()]=b;return _.K(T,
_.H$.getInstance(),2)}if(T.nextAddress!=4)return(a=T.yieldResult)?_.K(T,a.get("ytlc-emoji-pref"),4):T.jumpTo(0);H=(k=T.yieldResult)!=null?k:{};H[c.emojiId]=m;return _.K(T,a.set("ytlc-emoji-pref",H,mFL),0)})};
_.Xh=new _.uH;var Cw6;_.Zo={};
Cw6={properties:{id:{type:String,computed:"identity(data.id)",reflectToAttribute:!0},wholeMessageClickable:{type:Boolean,computed:"computeWholeMessageClickable(data.contextMenuEndpoint)",reflectToAttribute:!0},useOpacityForContextMenuVisibility:{type:Boolean,value:_.w("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:_.w("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 G2(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 J=_.Bj(this.hostElement||this).querySelector("#inline-action-button-container");J&&J.setAttribute("aria-hidden","true");this.menuButton=_.Bj(this.hostElement).querySelector("#menu-button")},
attached:function(){var J=this.menuButton;J&&(J.addEventListener("focusin",_.ME(this,this.onMenuButtonFocus_)),J.addEventListener("focusout",_.ME(this,this.onMenuButtonBlur_)))},
detached:function(){var J=this.menuButton;J&&(J.removeEventListener("focusin",_.ME(this,this.onMenuButtonFocus_)),J.removeEventListener("focusout",_.ME(this,this.onMenuButtonBlur_)))},
identity:_.GD,truthy:function(J){return!!J},
computeTimestampString:function(J){return J?J.timestampText?this.getSimpleString(J.timestampText):this.TIME_FORMATTER.format(new Date(J.timestampUsec/1E3)):""},
computeWholeMessageClickable:function(J){return _.w("live_chat_whole_message_clickable")&&J},
computeMenuVisible_:function(J,c){return J||c},
computeHasInlineActionButtons:function(J){if(!J)return!1;var c,m;return!((c=J.inlineActionButtons)==null||!c.length)||!((m=J.additionalInlineActionButtons)==null||!m.length)},
createDocumentFragmentFromString:function(J){var c=_.Xh.createDocumentFragment.bind(_.Xh),m;if((m=this.participantsManager)==null||!m.viewerRegex)return c(J);m=document.createDocumentFragment();for(var b=0,x;(x=this.participantsManager.viewerRegex.exec(J))!=null;){if(x.index>0){var P=":"+x[0]+":";if((_.fo(_.Xh,P)||_.Cy(_.Xh,P))&&J.indexOf(P)===x.index-1)continue}m.appendChild(c(J.substring(b,x.index)));b=document.createElement("span");b.appendChild(c(x[0]));b.classList.add("mention");m.appendChild(b);
b=x.index+x[0].length}m.appendChild(c(J.substring(b)));return m},
createDocumentFragment:function(J){var c=document.createDocumentFragment();if(J.simpleText)return c.appendChild(this.createDocumentFragmentFromString(J.simpleText)),c;if(!J.runs)return c;for(var m=0;m<J.runs.length;m++){var b=J.runs[m];if(b.emoji)c.appendChild(_.Xh.createEmoji(b.emoji));else if(b.text)if(b.navigationEndpoint){var x=document.createElement("a");x.classList.add("yt-simple-endpoint");QA2(x,b.navigationEndpoint);_.Bj(x).appendChild(this.createDocumentFragmentFromString(b.text));c.appendChild(x)}else c.appendChild(this.createDocumentFragmentFromString(b.text))}return c},
hasModerationOverlayVisible:function(){var J;return((J=document.querySelector("yt-live-chat-item-list-renderer"))==null?void 0:J.getAttribute("moderation-mode-enabled"))===""},
onItemTap:function(J){J.composedPath().some(function(c){return(c=c instanceof Element?c:null)?c.tagName&&(c.tagName.toLowerCase()==="yt-live-chat-creator-heart-view-model"||c.tagName.toLowerCase()==="yt-button-view-model"):!1})||this.data.contextMenuEndpoint&&this.wholeMessageClickable&&this.shouldSupportWholeItemClick()&&!this.hasModerationOverlayVisible()&&!_.w("enable_live_chat_web_context_menu_resolver")&&this.showContextMenu(J)},
colorFromDecimal:function(J){return AXQ(J)},
markAsDeleted:function(J,c){this.set("data.deletedStateMessage",J);this.set("data.showOriginalContentMessage",c)},
onMenuButtonFocus_:function(){this.menuFocused=!0},
onMenuButtonBlur_:function(){this.menuFocused=!1},
showContextMenu:function(J){if(this.data.contextMenuEndpoint){var c=_.BG().resolve(_.Wj),m=this.data.contextMenuEndpoint,b;(b=_.Sp.instance)&&_.hP(b,m)?(c=IaZ(c,m),b=_.W$(b,{},c)):b=_.K8a(c,m);b.then(this.handleGetContextMenuResponse_,this.handleGetContextMenuError,this);J&&J.stopPropagation()}},
handleGetContextMenuResponse_:function(J){var c=_.Sp.instance;c&&_.hP(c,{liveChatEndpoint:{}})||(J=J.response);J.liveChatItemContextMenuSupportedRenderers&&J.liveChatItemContextMenuSupportedRenderers.menuRenderer&&this.showContextMenu_(J.liveChatItemContextMenuSupportedRenderers.menuRenderer);J.actions&&_.m9(this.hostElement,"yt-live-chat-actions",[J.actions])},
handleGetContextMenuError:function(J){if(J instanceof Error||J instanceof Object||J instanceof String)var c=J;_.Xc(new _.w3("Error encountered calling GetLiveChatItemContextMenu",c))},
showContextMenu_:function(J){this.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:J}}})},
onYtPopupOpened_:function(){this.menuOpen=!0;_.cA(this.hostElement,"yt-live-chat-context-menu-opened")},
onYtPopupClosedOrCanceled_:function(){this.menuOpen=!1;_.cA(this.hostElement,"yt-live-chat-context-menu-closed")}};
_.Zo.YtLiveChatItemBehavior=[Cw6,_.qH.YtComponentBehavior,_.M7.YtOpenPopupBehavior];_.q7=function(){};var aaC;var kTz;var HxL;var ixL;var U0=function(){var J=_.h.apply(this,arguments)||this;J.active=!1;J.identity=_.GD;return J};
_.D(U0,_.h);U0.prototype.dataChanged=function(){this.active=!1};
U0.prototype.onClick=function(){_.cA(this.hostElement,"yt-live-chat-select-suggestion",this.data)};
U0.prototype.dataChanged=U0.prototype.dataChanged;_.O([_.U(),_.R("design:type",Object)],U0.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],U0.prototype,"active",void 0);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],U0.prototype,"dataChanged",null);U0=_.O([_.uM({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-suggestion",noInjection:!0})],U0);
_.v(U0,"yt-live-chat-text-input-field-suggestion",function(){if(ixL===void 0){var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);var c=J.content,m=c.insertBefore;HxL===void 0&&(HxL=document.createElement("template"));var b=HxL;m.call(c,b.content.cloneNode(!0),J.content.firstChild);ixL=J}J=ixL;return J},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});_.SJ=function(J,c,m){return CustomEvent.call(this,J,{detail:{value:c,path:m}})||this};
_.D(_.SJ,CustomEvent);_.hs=function(){var J=_.h.apply(this,arguments)||this;J.viewerName=null;J.actionMap={"yt-live-chat-actions":"onChatMessage_"};J.SUPPORTED_ITEM_TYPES_=["liveChatTextMessageRenderer","liveChatLegacyPaidMessageRenderer","liveChatPaidMessageRenderer"];J.PARTICIPANT_TIME_USEC_=3E8;return J};
_.D(_.hs,_.h);_.V=_.hs.prototype;_.V.created=function(){this.allParticipantsCharMap_={};this.asyncHandle_=null};
_.V.addParticipant=function(J){var c=_.rqr(this.participants,J,function(b,x){b=b[Object.keys(b)[0]];x=x[Object.keys(x)[0]];b=String(_.OG(b.authorName)).toLowerCase();x=String(_.OG(x.authorName)).toLowerCase();return b<x?-1:b==x?0:1}.bind(this));
if(c>=0){var m=this.participants[c];m[Object.keys(m)[0]].timestampUsec&&this.splice("participants",c,1,J)}else this.splice("participants",-c-1,0,J);J=J[Object.keys(J)[0]];c=_.OG(J.authorName).toLocaleLowerCase();m=c.substr(0,2);this.allParticipantsCharMap_.hasOwnProperty(m)||(this.allParticipantsCharMap_[m]={});this.allParticipantsCharMap_[m][c]=J};
_.V.getAuthorsFromPrefix=function(J){return this.allParticipantsCharMap_.hasOwnProperty(J)?this.allParticipantsCharMap_[J]:null};
_.V.computeViewerRegex_=function(J){if(!J)return null;J=J.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");var c=J.indexOf("@")===0&&_.w("live_chat_enable_handles_web_text_input_update")?"([#]":"([@#]";return new RegExp(c+J.replace(/ /g,"\\s*")+"|^"+J.replace(/ /g,"\\s*")+"$|^"+J.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+J.replace(/ /g,"\\s*")+"$|(?<=\\s)"+J.replace(/ /g,"\\s*")+"(?=\\s))","ig")};
_.V.checkForStaleParticipants_=function(){var J=this;this.trimOldParticipants_();this.asyncHandle_&&nP2(this.asyncHandle_);this.participants.length>0&&(this.asyncHandle_=_.S5(function(){J.checkForStaleParticipants_()},3E4))};
_.V.onChatMessage_=function(J){var c=this,m=Date.now()*1E3;J.forEach(function(b){if(b=_.L(b,XQC)){b=b.item;var x=Object.keys(b)[0];c.SUPPORTED_ITEM_TYPES_.indexOf(x)!=-1&&b[x].timestampUsec>=m-c.PARTICIPANT_TIME_USEC_&&c.addParticipant(b)}},this);
this.checkForStaleParticipants_()};
_.V.trimOldParticipants_=function(){for(var J=Date.now()*1E3,c=this.participants.length-1;c>=0;c--){var m=this.participants[c];m=m[Object.keys(m)[0]];m.timestampUsec&&m.timestampUsec<J-this.PARTICIPANT_TIME_USEC_&&this.splice("participants",c,1)}};
_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],_.hs.prototype,"ytActionHandlerBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],_.hs.prototype,"viewerName",void 0);_.O([_.U({computed:"computeViewerRegex_(viewerName)"}),_.R("design:type",Object)],_.hs.prototype,"viewerRegex",void 0);_.O([_.U({value:function(){return[]},
notify:!0}),_.R("design:type",Array)],_.hs.prototype,"participants",void 0);_.hs=_.O([_.uM({is:"yt-live-chat-participants-manager",noInjection:!0})],_.hs);var niQ=/.*([:@#].*?)$/,dd=/\u00a0/g,TY8=String.fromCharCode(160),wbj={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"},$q=function(){var J=_.h.apply(this,arguments)||this;J.disabled=!1;J.liveChatRichMessageInput=null;J.messageInput=null;J.isValidWithNoInputText=!1;J.suggestions=[];J.emojiManager=_.Xh;J.inputMethodEditorActive=
!1;J.suggestionIndex=-1;J.JSC$11995_lastSuggestionRange=null;return J};
_.D($q,_.h);_.V=$q.prototype;_.V.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"yt-live-chat-text-input-field-suggestion"},reuseComponents:!0}}};
_.V.attached=function(){_.ce&&(document.execCommand("enableObjectResizing",!1,"false"),document.execCommand("enableInlineTableEditing",!1,"false"));this.hostElement.addEventListener("compositionstart",this.onCompositionStart);this.hostElement.addEventListener("compositionend",this.onCompositionEnd)};
_.V.detached=function(){this.setLiveChatRichMessageInput(null);this.hostElement.removeEventListener("compositionstart",this.onCompositionStart);this.hostElement.removeEventListener("compositionend",this.onCompositionEnd)};
_.V.dataChanged=function(){if(!this.ignoreColorMapping){var J=!1,c={},m;for(m in wbj)this.data&&this.data.hasOwnProperty(m)&&(c[wbj[m]]=this.colorFromDecimal(this.data[m]),J=!0);J&&_.V1(this.hostElement,c)}this.messageInput&&this.setLiveChatRichMessageInput(this.messageInput)};
_.V.onMessageSet=function(){this.setLiveChatRichMessageInput(this.messageInput||{})};
_.V.colorFromDecimal=function(J){J=Math.floor(Number(J));return"rgba("+[J>>16&255,J>>8&255,J&255,(J>>24&255)/255].join()+")"};
_.V.preventDrag=function(J){J.dataTransfer&&(J.dataTransfer.dropEffect="none");J.preventDefault()};
_.V.preventResize=function(J){J.returnValue=!1};
_.V.onInputChange=function(){var J=this.characterCount,c=document.querySelector("#overflow-text");this.characterCount<=this.maxCharacterLimit&&c&&c.remove();if(!c&&this.characterCount>this.maxCharacterLimit){var m=window.getSelection();if(m){var b=m.getRangeAt(0);m.removeAllRanges();m.addRange(b)}}if(m=this.getCurrentRange())b=this.calculateTextBeforeRange(m),this.completeEmojisInRange(m,b,!0)||this.updateSuggestions(m,b);b=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(b);
_.cA(this.hostElement,"yt-live-chat-message-input-change",b);c&&this.characterCount===0&&c.remove();m&&m.commonAncestorContainer.parentElement.id==="input"&&m.commonAncestorContainer.nodeName!=="SPAN"?this.handleOverflowText(this.characterCount>J):m&&!m.collapsed&&m.commonAncestorContainer===this.input&&this.checkForDuplicateSpans();if(this.characterCount===0)for(J=this.input.childNodes.length-1;J>=0;J--)this.input.childNodes[J].nodeName==="BR"&&this.input.childNodes[J].remove()};
_.V.onCompositionStart=function(){this.inputMethodEditorActive=!0};
_.V.onCompositionEnd=function(){this.inputMethodEditorActive=!1;var J=this.getCurrentRange();J&&J.commonAncestorContainer.parentElement.id==="input"&&J.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.V.mergeOverflowText=function(J){if(J){var c=document.createRange();c.selectNodeContents(J);c=c.extractContents();this.input.insertBefore(c,J)}};
_.V.checkRangeAtEndOfInput=function(){var J=this.getCurrentRange();if(J){var c=_.Bj(this.hostElement).querySelector("#overflow-text"),m=document.createRange();c&&c.previousSibling?c.previousSibling instanceof HTMLImageElement?m.selectNode(c.previousSibling):m.selectNodeContents(c.previousSibling):this.input&&this.input.lastChild&&(this.input.lastChild instanceof HTMLImageElement?m.selectNode(this.input.lastChild):m.selectNodeContents(this.input.lastChild));m.collapse(!1);return m.isPointInRange(J.startContainer,
J.startOffset)}return!1};
_.V.handleOverflowText=function(J){if(!this.dropdown.opened&&!this.inputMethodEditorActive&&this.isChatMessageInput){var c=_.Bj(this.hostElement).querySelector("#overflow-text"),m=this.getCurrentRange();this.input.normalize();J=this.checkRangeAtEndOfInput()&&J;this.mergeOverflowText(c);for(var b,x=0,P=0,p,t=this.input.childNodes,I=0;I<t.length;I++){var a=t[I];a instanceof Text?(P+=a.textContent.length,P>this.maxCharacterLimit&&(b=a,x=this.maxCharacterLimit+a.textContent.length-P)):a instanceof HTMLImageElement&&
(b=void 0,P=a.dataset.emojiId&&((b=this.data)==null?0:b.emojiCharacterCount)?P+this.data.emojiCharacterCount:P+a.alt.length,b=this.input,x=I);if(P>this.maxCharacterLimit&&b){p=document.createRange();p.collapse(!1);c?(P=this.input.lastChild.previousSibling,P instanceof Text?p.setEnd(this.input.lastChild.previousSibling,P.textContent.length):P instanceof HTMLImageElement&&p.setEnd(this.input,this.input.childNodes.length-1)):p.selectNodeContents(this.input);p.setStart(b,x);break}}p&&(b=!1,m&&(J=p.isPointInRange(m.startContainer,
m.startOffset-1)),c||(c=document.createElement("span"),c.id="overflow-text",c.textContent="",c.setAttribute("contenteditable","true"),_.Bj(_.Bj(this.hostElement).querySelector("#input")).appendChild(c),b=!0),c&&(m=p.extractContents(),c.insertBefore(m,c.firstChild),J&&c.firstChild&&(m=document.createRange(),b?m.setStartAfter(c.lastChild):m.setStartAfter(c.firstChild),m.collapse(!0),c=window.getSelection(),c.removeAllRanges(),c.addRange(m))))}};
_.V.checkForDuplicateSpans=function(){for(var J=0;J<this.input.childNodes.length;J++){var c=this.input.childNodes[J];if(c.nodeName==="SPAN"){var m=document.createRange();m.selectNodeContents(c);m=m.extractContents();this.input.insertBefore(m,c);c.remove()}}this.handleOverflowText(!0)};
_.V.getCurrentRange=function(){var J=window.getSelection();return J&&J.rangeCount?J.getRangeAt(0).cloneRange():null};
_.V.getInputRange=function(){var J=this.getCurrentRange();if(J){for(var c=J.commonAncestorContainer,m=!1,b=_.Bj(this.hostElement).querySelector("#input");c;){if(c===b){m=!0;break}c=c.parentNode}m||(J=null)}J||(J=this.getRangeAtEnd());return J};
_.V.getRangeAtEnd=function(){var J=document.createRange(),c=_.Bj(this.hostElement).querySelector("#input").lastChild;!c||c.nodeName!=="#text"&&c.nodeName!=="SPAN"?(J.selectNodeContents(_.Bj(this.hostElement).querySelector("#input")),J.collapse(!1)):c.nodeName==="#text"?J.setStart(c,c.textContent.length):J.setStart(c,c.childNodes.length);return J};
_.V.getChatParticipantSuggestions=function(J,c,m,b){var x=_.w("live_chat_enable_handles_web_text_input_update");if(c)for(var P in c)if(P.indexOf(J)===0||x&&P.indexOf(m+J)===0){var p=c[P],t=_.OG(p.authorName);b.push({suggestion:{author:!0,authorType:m,image:p.authorPhoto,alt:t,text:t}});if(b.length>=64)break}};
_.V.getSuggestions=function(J){var c=[],m=J.substring(0,3),b=NYZ(_.Xh,m,!0);if(b)for(var x in b)if(x.toLocaleLowerCase().indexOf(J)===0){var P=b[x];if(P&&P.emojiId){if(P=pb_(_.Xh,P.emojiId)){var p=void 0,t=void 0,I=void 0,a=void 0,k=((p=P.image)==null?0:(t=p.accessibility)==null?0:(I=t.accessibilityData)==null?0:I.label)||P.isCustomEmoji?(a=P.shortcuts)==null?void 0:a[0]:P.emojiId;c.push({suggestion:{emoji:!0,image:P.image,alt:k,text:x,textToInsertWhenSelected:P.isCustomEmoji?x:k}})}if(c.length>=
64)break}}if(!this.participantsManager)return null;if(m.indexOf("@")===0||m.indexOf("#")===0)b=m.charAt(0),J=J.substring(1),x=_.w("live_chat_enable_handles_web_text_input_update"),m.indexOf("@")===0&&x&&(x=this.participantsManager.getAuthorsFromPrefix(m.substring(0,2)),this.getChatParticipantSuggestions(J,x,b,c)),m=m.substring(1),m=this.participantsManager.getAuthorsFromPrefix(m),this.getChatParticipantSuggestions(J,m,b,c);return c?c.sort(function(H,T){return T.suggestion.text<H.suggestion.text?-1:
T.suggestion.text===H.suggestion.text?0:1}):null};
_.V.insertSuggestion=function(J){var c=_.w("live_chat_enable_handles_web_text_input_update"),m=J.authorType;c=J.text.indexOf(m)===0&&c?J.text+TY8:m+J.text+TY8;J.emoji?this.insertTextAtRange(this.JSC$11995_lastSuggestionRange,J.textToInsertWhenSelected||""):J.author&&this.insertTextAtRange(this.JSC$11995_lastSuggestionRange,c)};
_.V.updateSuggestionsAtCaret=function(){var J=this.getCurrentRange();J&&this.updateSuggestions(J,this.calculateTextBeforeRange(J))};
_.V.offsetStartOfRangeBy=function(J,c){for(;c>0;)if(J.startOffset-c>=0){J.setStart(J.startContainer,J.startOffset-c);break}else{c=J.startContainer instanceof HTMLImageElement?c-J.startContainer.alt.length:c-J.startOffset;var m=J.startContainer.previousSibling;if(!m){J.setStart(J.startContainer,0);break}if(_.w("live_chat_require_space_for_autocomplete_emoji")){var b=void 0,x=void 0;J.setStart(m,((b=m)==null?void 0:(x=b.textContent)==null?void 0:x.length)||0)}else J.setStart(m,m.childNodes.length||
0)}};
_.V.updateSuggestions=function(J,c){var m=this;this.JSC$11995_lastSuggestionRange&&(this.JSC$11995_lastSuggestionRange.detach(),this.JSC$11995_lastSuggestionRange=null);if((c=niQ.exec(c))&&c.length&&(c=c[c.length-1].toLocaleLowerCase(),c.length>2&&(this.offsetStartOfRangeBy(J,c.length),this.JSC$11995_lastSuggestionRange=J,(J=this.getSuggestions(c))&&J.length))){this.suggestions=J;_.o3(this,function(){_.Bj(m.hostElement).querySelector("#dropdown-content").scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(J.length-1);return}this.dropdown.opened=!1};
_.V.completeEmojisInRange=function(J,c,m){var b=c.replace(/[\s\xa0]+$/,"");c=c.length-b.length;b=b.split(" ");b=b[b.length-1].trim().toLocaleLowerCase();var x=b.lastIndexOf(":");if(m&&!c&&x!==b.length-1)return!1;x!==-1&&(m=b.lastIndexOf(":",x-1),m!==-1&&(b=b.substring(m)));if((m=_.Cy(_.Xh,b))&&m.emojiId){m=pb_(_.Xh,m.emojiId)||null;this.offsetStartOfRangeBy(J,b.length+c);var P,p,t,I;b=(((P=m)==null?0:P.isCustomEmoji)?(p=m)==null?void 0:(t=p.shortcuts)==null?void 0:t[0]:(I=m)==null?void 0:I.emojiId)||
"";c&&(b+=TY8);this.insertTextAtRange(J,b);this.dropdown.opened=!1;return!0}return!1};
_.V.onSuggestion=function(J){this.insertSuggestion(J.detail);this.dropdown.opened=!1};
_.V.onKeyPress=function(J){J.keyCode===13&&(J.preventDefault(),this.dropdown.opened?(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),this.dropdown.opened=!1):_.cA(this.hostElement,"yt-live-chat-send-message"))};
_.V.completeEmojis=function(){var J=document.createRange(),c=_.Bj(this.hostElement).querySelector("#input").lastChild;c?J.setStart(c,c.childNodes.length):(J.selectNodeContents(_.Bj(this.hostElement).querySelector("#input")),J.collapse(!1));this.completeEmojisInRange(J,this.calculateTextBeforeRange(J),_.w("live_chat_require_space_for_autocomplete_emoji"))};
_.V.maybePreventTextFormatting=function(J){!_.Va||!J.ctrlKey&&!J.metaKey||J.keyCode!==66&&J.keyCode!==73||(J.stopImmediatePropagation(),J.preventDefault())};
_.V.onKeyDown=function(J){this.maybePreventTextFormatting(J);if(this.dropdown.opened)switch(J.keyCode){case 27:this.dropdown.opened=!1;J.stopPropagation();break;case 9:this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);this.dropdown.opened=!1;J.preventDefault();break;case 38:this.changeSuggestionIndex(this.suggestionIndex-1);J.preventDefault();break;case 40:this.changeSuggestionIndex(this.suggestionIndex+1),J.preventDefault()}};
_.V.onKeyUp=function(J){switch(J.keyCode){case 37:case 39:this.updateSuggestionsAtCaret();break;case 38:case 40:this.dropdown.opened||this.updateSuggestionsAtCaret()}if(_.JK)this.onInputChange()};
_.V.changeSuggestionIndex=function(J){if(this.dropdown.opened){var c=_.Bj(this.hostElement).querySelector("#dropdown-content");this.suggestionIndex>=0&&this.suggestionIndex<c.children.length&&(c.children[this.suggestionIndex].active=!1);var m=this.suggestions.length;this.suggestionIndex=(J+m)%m;J=c.children[this.suggestionIndex];J.active=!0;c.scrollTop=J.offsetTop}};
_.V.onInputPaste=function(J){J.preventDefault();(J=J.clipboardData)&&J.types&&(J=J.getData("text/plain")||"",J=J.replace(/\n/g,""),this.insertText(J));(J=this.getCurrentRange())&&J.commonAncestorContainer.parentElement.id==="input"&&J.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.V.onFocus=function(){this._setFocused(!0)};
_.V.onBlur=function(){this._setFocused(!1)};
_.V.insertText=function(J){this.insertTextAtRange(this.getInputRange(),J)};
_.V.insertTextAtRange=function(J,c){if(J&&(J.collapsed||J.deleteContents(),c=_.Xh.createDocumentFragment(c,!0,!1))){for(var m=_.M((c==null?void 0:c.childNodes)||[]),b=m.next();!b.done;b=m.next()){b=b.value;var x=void 0,P=void 0,p=void 0,t=void 0,I=void 0;(p=(x=window)==null?void 0:(P=x.ShadyCSS)==null?void 0:P.ScopingShim)==null||(I=(t=p).scopeNode)==null||I.call(t,b,this.hostElement.localName)}m=c.lastChild;J.insertNode(c);this.focused||this.input.focus();if(this.focused){J=J.cloneRange();J.selectNodeContents(m);
J.collapse(!1);if(c=window.getSelection())c.removeAllRanges(),c.addRange(J);J.commonAncestorContainer.parentElement.id==="input"&&J.commonAncestorContainer.nodeName!=="SPAN"&&(this.dropdown.opened&&(this.dropdown.opened=!1),this.handleOverflowText(!0))}J=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(J);_.cA(this.hostElement,"yt-live-chat-message-input-change",J)}};
_.V.setLiveChatRichMessageInput=function(J){_.Bj(_.Bj(this.hostElement).querySelector("#input")).textContent="";if(J&&J.textSegments){for(var c=0;c<J.textSegments.length;c++){var m=J.textSegments[c];m.text?_.Bj(_.Bj(this.hostElement).querySelector("#input")).appendChild(_.Xh.createDocumentFragment(m.text,!0,!1)):m.emojiId&&(m=_.fo(_.Xh,m.emojiId))&&_.Bj(_.Bj(this.hostElement).querySelector("#input")).appendChild(_.Xh.createEmoji(m,!1))}this._setLiveChatRichMessageInput(this.calculateLiveChatRichMessageInput())}else this._setLiveChatRichMessageInput(null)};
_.V.setText=function(J){this.setLiveChatRichMessageInput(J?{textSegments:[{text:J}]}:null)};
_.V.calculateTextBeforeRange=function(J){var c="",m=J.startContainer;if(m&&m instanceof Text){var b;c=((b=m.textContent)==null?void 0:b.substring(0,J.startOffset))||"";m=m.previousSibling}for(;m&&m instanceof Text;)c=m.textContent+c,m=m.previousSibling;return c.replace(dd," ")};
_.V.calculateLiveChatRichMessageInput=function(){for(var J=[],c="",m=_.Bj(_.Bj(this.hostElement).querySelector("#input")).childNodes,b=0;b<m.length;b++){var x=m[b];x instanceof Text?c+=x.textContent:x instanceof HTMLImageElement&&(x.dataset.emojiId?(c&&(J.push({text:c.replace(dd," ")}),c=""),J.push({emojiId:x.dataset.emojiId})):c+=x.alt)}c&&J.push({text:c.replace(dd," ")});if(m=_.Bj(this.hostElement).querySelector("#overflow-text")){c="";m=m.childNodes;for(b=0;b<m.length;b++)x=m[b],x instanceof Text?
c+=x.textContent:x instanceof HTMLImageElement&&(x.dataset.emojiId?(c&&(J.push({text:c.replace(dd," ")}),c=""),J.push({emojiId:x.dataset.emojiId})):c+=x.alt);c&&J.push({text:c.replace(dd," ")})}return{textSegments:J}};
_.V.computeCharacterCount=function(J){if(!J||!J.textSegments)return 0;for(var c=0,m=0;m<J.textSegments.length;m++){var b=J.textSegments[m];if(b.text)c+=b.text.length;else if(b.emojiId){var x=void 0;if((x=this.data)==null?0:x.emojiCharacterCount)c+=this.data.emojiCharacterCount;else{var P=x=void 0,p=void 0;c+=((P=_.fo(_.Xh,(x=b)==null?void 0:x.emojiId))==null?void 0:(p=P.shortcuts)==null?void 0:p[0].length)||0}}}return c};
_.V.characterCountChanged=function(){_.cA(this.hostElement,"yt-live-chat-text-input-field-renderer-character-count-changed",{characterCount:this.characterCount});this.checkScrollAlignment()};
_.V.focusedChanged=function(){this.hostElement.dispatchEvent(new _.SJ("focused-changed",this.focused))};
_.V.focus=function(){this.setFocus(!1)};
_.V.focusAtEnd=function(){this.setFocus(!0)};
_.V.setFocus=function(J){J=J?this.getRangeAtEnd():this.getInputRange();_.Bj(this.hostElement).querySelector("#input").focus();var c=window.getSelection();c&&(c.removeAllRanges(),c.addRange(J))};
_.V.insertEmoji=function(J){var c,m=((J==null?0:J.isCustomEmoji)?(c=J.shortcuts)==null?void 0:c[0]:J==null?void 0:J.emojiId)||"";this.insertText(m)};
_.V.computeText=function(J){if(!J||!J.textSegments)return"";for(var c="",m=0;m<J.textSegments.length;m++){var b=J.textSegments[m];if(b.text)c+=b.text;else if(b.emojiId){var x=void 0,P=void 0,p=void 0;c+=((P=_.fo(_.Xh,(x=b)==null?void 0:x.emojiId))==null?void 0:(p=P.shortcuts)==null?void 0:p[0])||""}}return c};
_.V.checkScrollAlignment=function(){this.input.scrollHeight>48&&this.input.scrollTop!==this.input.scrollHeight&&(this.input.scrollTop=this.input.scrollHeight)};
_.eE.Object.defineProperties($q.prototype,{inputTabIndex:{configurable:!0,enumerable:!0,get:function(){return this.disabled?-1:0}},
maxCharacterLimit:{configurable:!0,enumerable:!0,get:function(){var J;return((J=this.data)==null?void 0:J.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}}});
$q.prototype.focusedChanged=$q.prototype.focusedChanged;$q.prototype.characterCountChanged=$q.prototype.characterCountChanged;$q.prototype.onSuggestion=$q.prototype.onSuggestion;$q.prototype.onMessageSet=$q.prototype.onMessageSet;$q.prototype.dataChanged=$q.prototype.dataChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],$q.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],$q.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.U(),_.R("design:type",Object)],$q.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],$q.prototype,"disabled",void 0);_.O([_.q("disabled"),_.R("design:type",Number),_.R("design:paramtypes",[])],$q.prototype,"inputTabIndex",null);_.O([_.q("data.maxCharacterLimit"),_.U({readOnly:!0,notify:!0}),_.R("design:type",Number),_.R("design:paramtypes",[])],$q.prototype,"maxCharacterLimit",null);
_.O([_.q("liveChatRichMessageInput"),_.U({readOnly:!0,notify:!0}),_.R("design:type",Number),_.R("design:paramtypes",[])],$q.prototype,"characterCount",null);_.O([_.q("maxCharacterLimit, characterCount"),_.U({readOnly:!0,notify:!0}),_.R("design:type",Number),_.R("design:paramtypes",[])],$q.prototype,"remainingCharacterCount",null);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],$q.prototype,"isChatMessageInput",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],$q.prototype,"inputExpanded",void 0);_.O([_.U({readOnly:!0,notify:!0}),_.R("design:type",Object)],$q.prototype,"liveChatRichMessageInput",void 0);_.O([_.U(),_.R("design:type",Object)],$q.prototype,"messageInput",void 0);_.O([_.U(),_.R("design:type",Boolean)],$q.prototype,"ignoreColorMapping",void 0);_.O([_.q("characterCount"),_.U({reflectToAttribute:!0}),_.R("design:type",Boolean),_.R("design:paramtypes",[])],$q.prototype,"hasText",null);
_.O([_.U(),_.R("design:type",Object)],$q.prototype,"isValidWithNoInputText",void 0);_.O([_.q("characterCount","maxCharacterLimit","isValidWithNoInputText"),_.U(),_.R("design:type",Boolean),_.R("design:paramtypes",[])],$q.prototype,"isInputValid",null);_.O([_.U({readOnly:!0,value:!1,reflectToAttribute:!0}),_.R("design:type",Boolean)],$q.prototype,"focused",void 0);_.O([_.U(),_.R("design:type",Array)],$q.prototype,"suggestions",void 0);
_.O([_.U(),_.R("design:type",_.uH)],$q.prototype,"emojiManager",void 0);_.O([_.U(),_.R("design:type",_.hs)],$q.prototype,"participantsManager",void 0);_.O([_.U(),_.R("design:type",Boolean)],$q.prototype,"noUnderline",void 0);_.O([_.U(),_.R("design:type",Object)],$q.prototype,"inputMethodEditorActive",void 0);_.O([_.Iu("#dropdown"),_.R("design:type",Object)],$q.prototype,"dropdown",void 0);_.O([_.Iu("#input"),_.R("design:type",HTMLElement)],$q.prototype,"input",void 0);
_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],$q.prototype,"dataChanged",null);_.O([_.NE("messageInput"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],$q.prototype,"onMessageSet",null);_.O([_.ps("yt-live-chat-select-suggestion"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],$q.prototype,"onSuggestion",null);
_.O([_.NE("characterCount"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],$q.prototype,"characterCountChanged",null);_.O([_.NE("focused"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],$q.prototype,"focusedChanged",null);$q=_.O([_.uM({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-renderer",noInjection:!0})],$q);
_.rCj=_.v($q,"yt-live-chat-text-input-field-renderer",function(){if(kTz===void 0){var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);var c=J.content,m=c.insertBefore;aaC===void 0&&(aaC=document.createElement("template"));var b=aaC;m.call(c,b.content.cloneNode(!0),J.content.firstChild);kTz=J}J=kTz;return J},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var Gi=function(){var J=_.h.apply(this,arguments)||this;J.buttonOverrides={style:"overlay",type:"filled"};J.allowAnimations=!1;J.modern=_.w("web_button_rework_with_live");J.noPadding=!1;return J};
_.D(Gi,_.h);_.V=Gi.prototype;_.V.shouldSupportInlineActionButtons=function(){return!0};
_.V.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"}}}}};
_.V.ready=function(){var J=document.querySelector("yt-live-chat-app");J&&J.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.V.attached=function(){this.allowAnimations=!1};
_.V.dataChanged=function(){if(this.data){var J={"--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)};_.V1(this.hostElement,J);this.allowAnimations=!0}};
_.V.messageChanged=function(){var J,c=(J=this.data)==null?void 0:J.message;J=_.Bj(_.Bj(this.hostElement).querySelector("#message"));J.textContent="";c&&J.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(c))};
_.V.computeShowOnlyHeader=function(J,c){return!J||J.pdgLikeButton||J.replyButton||J.buyFlowButton?!1:this.isEmpty(J,c)&&!J.footer};
_.V.computeShowFooterDivider=function(J,c,m){return J?!!J.footer&&!this.isEmpty(J,c)&&!m:!1};
_.V.computeIsUserEditable=function(J){return!!J.inputField};
_.V.computeHasHeartButton=function(J){return(J==null?void 0:J.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||(J==null?void 0:J.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||(J==null?void 0:J.heartState)==="TOOLBAR_HEART_STATE_HEARTED"};
_.V.computeNoveltyImage=function(J){if(J.headerOverlayImage&&J.headerOverlayImage.thumbnails.length){var c=J.headerOverlayImage.thumbnails[0],m,b;if((m=J.pdgPurchasedNoveltyLoggingDirectives)==null?0:(b=m.loggingDirectives)==null?0:b.trackingParams){var x,P;DgR((x=J.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(P=x.loggingDirectives)==null?void 0:P.trackingParams)}return c.width||0}return 0};
_.V.computeAuthorPhotoSize=function(J){return(J==null?0:J.isV2Style)&&!this.dashboardMoneyFeed?32:40};
_.V.inputFocus=function(){var J=_.Bj(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");J&&J.focus()};
_.V.inputInsertEmoji=function(J){var c=_.Bj(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");c&&c.insertEmoji(J)};
_.V.inputMessage=function(){var J=_.Bj(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer"),c;return J&&((c=this.data)==null?0:c.inputField)?(J.completeEmojis(),_.ZL(J.liveChatRichMessageInput)):null};
_.V.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&this.set("data.message",null)};
_.V.isEmpty=function(J,c){return J?J.empty||!(J.message||J.inputField||c):!0};
_.V.onLowerBuyButtonClick=function(){var J,c=_.L((J=this.data)==null?void 0:J.buyButton,_.ur);c&&c.trackingParams&&!oOQ(c.command)&&(J=_.n7(c.trackingParams))&&(c=_.Y3())&&_.AS(c,J)};
_.V.shouldSupportWholeItemClick=function(){return!0};
_.eE.Object.defineProperties(Gi.prototype,{hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var J;return((J=this.data)==null?0:J.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
Gi.prototype.isDeletedChanged=Gi.prototype.isDeletedChanged;Gi.prototype.messageChanged=Gi.prototype.messageChanged;Gi.prototype.dataChanged=Gi.prototype.dataChanged;_.O([_.f(cJB.YtPdgLiveChatItemBehavior),_.R("design:type",Object)],Gi.prototype,"ytPdgLiveChatItemBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Gi.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.XL),_.R("design:type",Object)],Gi.prototype,"ytLiveChatReduxBehavior",void 0);
_.O([_.f(_.Zo.YtLiveChatItemBehavior),_.R("design:type",_.q7)],Gi.prototype,"ytLiveChatItemBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],Gi.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Gi.prototype,"data",void 0);_.O([_.U({selectorArgs:["data.creatorHeartButton.creatorHeartViewModel.engagementStateKey"],selector:sLD}),_.R("design:type",Object)],Gi.prototype,"engagementState",void 0);
_.O([_.U({reflectToAttribute:!0,computed:"computeIsUserEditable(data)"}),_.R("design:type",Boolean)],Gi.prototype,"isUserEditable",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeHasHeartButton(engagementState)"}),_.R("design:type",Boolean)],Gi.prototype,"hasHeartButton",void 0);_.O([_.U({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.R("design:type",Boolean)],Gi.prototype,"showOnlyHeader",void 0);
_.O([_.U({computed:"computeShowFooterDivider(data, isDeleted, isUserEditable)",reflectToAttribute:!0}),_.R("design:type",Boolean)],Gi.prototype,"showFooterDivider",void 0);_.O([_.U({reflectToAttribute:!0,value:!1}),_.R("design:type",Object)],Gi.prototype,"allowAnimations",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],Gi.prototype,"dashboardMoneyFeed",void 0);_.O([_.U({computed:"computeNoveltyImage(data)"}),_.R("design:type",Number)],Gi.prototype,"noveltyWidth",void 0);
_.O([_.U({computed:"computeAuthorPhotoSize(data)"}),_.R("design:type",Number)],Gi.prototype,"authorPhotoSize",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Gi.prototype,"modern",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Gi.prototype,"noPadding",void 0);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Gi.prototype,"dataChanged",null);
_.O([_.NE("data.message"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Gi.prototype,"messageChanged",null);_.O([_.q("data","dashboardMoneyFeed"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Gi.prototype,"hideLowerBumper",null);_.O([_.NE("isDeleted"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Gi.prototype,"isDeletedChanged",null);
Gi=_.O([_.E({disableElementRegistration:!0,is:"yt-live-chat-paid-message-renderer"})],Gi);
_.v(Gi,"yt-live-chat-paid-message-renderer",function(){if(ZFQ===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;Xp$===void 0&&(Xp$=document.createElement("template"));var b=Xp$;m.call(c,b.content.cloneNode(!0),J.content.firstChild);ZFQ=J}J=ZFQ;return J},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var sUj;var L8Z;var E0=function(){var J=_.Cs.apply(this,arguments)||this;J._noAccessors=!0;return J};
_.D(E0,_.Cs);E0.prototype.created=function(){this.ytOpenPopupBehavior.openPopupConfig=_.Ub("openPopupConfig")};
_.O([_.f(_.M7.YtOpenPopupBehavior),_.R("design:type",Object)],E0.prototype,"ytOpenPopupBehavior",void 0);E0=_.O([_.au()],E0);_.vL=[_.M7.YtOpenPopupBehavior,E0.prototype];var DFC;var GH=[_.I1,TxQ,_.DA,_.Kv,_.Rz,_.XeQ,_.kb,_.$wQ,_.uc,Tnf];_.w("web_watch_get_updated_metadata_response_processing")&&GH.push(_.Po$);_.w("web_continuation_response_processing")&&GH.push(_.XG);var Fuu=new _.oE("RESPONSE_RECEIVED_COMMANDS"),kd2=new _.oE("RESPONSE_RECEIVED_COMMANDS");var pJD="accountDisconnectionEndpoint accountIntegrationEndpoint accountLinkCommand accountUnlinkCommand addToRemoteQueueEndpoint clearRemoteQueueEndpoint insertInRemoteQueueEndpoint offlineVideoEndpoint openPopupAction pingingEndpoint removeFromRemoteQueueEndpoint".split(" "),MRG=["updatedMetadataEndpoint","getBroadcastStatusEndpoint","getLiveAnalyticsEndpoint","getSearchInVideoCommand","ypcLogWalletAnalyticDataEndpoint"],PXm=["GET_UNSEEN_NOTIFICATION_COUNT"];var O0=function(){var J=_.Cs.apply(this,arguments)||this;J._noAccessors=!0;J.serviceEndpointHandlers=[];return J};
_.D(O0,_.Cs);O0.prototype.created=function(){var J=this;this.endpointHandlerActionMap={"yt-service-request":function(c,m,b,x){var P;return VRJ(J.hostElement,c,m,b,x,J.serviceEndpointHandlers,(P=J.onEntitiesUpdated)==null?void 0:P.bind(J))}}};
O0.prototype.attached=function(){_.Oe(_.vO.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
O0.prototype.detached=function(){_.AI(_.vO.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
O0=_.O([_.au()],O0);_.W8L=[O0.prototype];var zOa,uT8=function(){return zOa!==void 0?zOa:zOa=document.createElement("template")};
document.head.appendChild(uT8().content);var fa8;var YX_=document.head,Xb$=YX_.appendChild,ZxQ;if(fa8===void 0){var qXj=document.createElement("template");_.z(qXj,"\x3c!--css-build:shady--\x3e");qXj.content.insertBefore(uT8().content.cloneNode(!0),qXj.content.firstChild);fa8=qXj}ZxQ=fa8;Xb$.call(YX_,ZxQ.content);var UF$,SXa=function(){return UF$!==void 0?UF$:UF$=document.createElement("template")};
document.head.appendChild(SXa().content);var hOQ;var dFQ=document.head,$FZ=dFQ.appendChild,GTj;if(hOQ===void 0){var EiB=document.createElement("template");_.z(EiB,"\x3c!--css-build:shady--\x3e");EiB.content.insertBefore(SXa().content.cloneNode(!0),EiB.content.firstChild);hOQ=EiB}GTj=hOQ;$FZ.call(dFQ,GTj.content);var viL;_.zH("itemSectionRenderer","buttonRenderer","ytd-button-renderer");_.zH("sharingRendererButtons","buttonRenderer","ytd-button-renderer");viL=_.w("web_button_rework")&&_.Ss("BUTTON_REWORK")||_.w("web_button_rework_with_live");_.As=function(){var J=_.h.apply(this,arguments)||this;J.isPressed=!1;J.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};return J};
_.D(_.As,_.h);_.V=_.As.prototype;_.V.created=function(){this.showTooltips=!0};
_.V.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.V.onHintIdChanged=function(){var J=this,c,m,b=(c=this.ytButtonBehavior.data)==null?void 0:(m=c.hint)==null?void 0:m.hintRenderer;if(b&&b.hintId){c=_.bJ(this.hostElement,"yt-get-opened-popups-action");c=(c&&c.length===1?c[0]:[]).length>0;var x=null;b.hintId!=="sponsor-pre-purchase"||c?b.hintId.startsWith("sponsor-post-purchase")&&!c?x=Huz("membership-manage"):b.hintId.startsWith("sponsorships-premium-freebie-pre-purchase")&&!c&&(x=Huz("membership-freebie-join")):x=Huz("membership-join");x&&_.ft.addLowPriorityJob(function(){for(var P=
_.M(x),p=P.next();!p.done;p=P.next())J.ytComponentBehavior.resolveCommand(p.value)})}};
_.V.onPressedStateChanged=function(){this.ytButtonBehavior.setPressedState(this.isPressed)};
_.V.onYtNavigate=function(J){var c=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(J.detail.endpoint);c&&(J.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(c))};
_.V.onYtServiceRequestSent=function(J,c){this.handleServiceRequestActions(c);_.cA(this.hostElement,"yt-service-request-sent-button-renderer")};
_.V.onServiceRequestCompleted=function(J,c){this.handleServiceRequestActions(c);_.cA(this.hostElement,"yt-service-request-completed-button-renderer")};
_.V.updateButton=function(J){var c;if(J=(c=_.L(J,cK_))==null?void 0:c.updatedButton)this.ytButtonBehavior.data=_.L(J,_.ur)};
_.V.handleUpdateButtonAction=function(J){var c=this.ytButtonBehavior.data;c.targetId&&J.updateButtonAction.targetId&&c.targetId===J.updateButtonAction.targetId&&this.updateButton(J)};
_.V.handleServiceRequestActions=function(J){if(J=J.actions)for(var c=0;c<J.length;c++)this.updateButton(J[c])};
_.eE.Object.defineProperties(_.As,{template:{configurable:!0,enumerable:!0,get:function(){if(DFC===void 0){var J=document.createElement("template");_.z(J,"\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");J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);DFC=J}J=DFC;return J}}});
_.As.prototype.onServiceRequestCompleted=_.As.prototype.onServiceRequestCompleted;_.As.prototype.onYtServiceRequestSent=_.As.prototype.onYtServiceRequestSent;_.As.prototype.onYtNavigate=_.As.prototype.onYtNavigate;_.As.prototype.onPressedStateChanged=_.As.prototype.onPressedStateChanged;_.As.prototype.onHintIdChanged=_.As.prototype.onHintIdChanged;_.O([_.U(),_.R("design:type",Object)],_.As.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],_.As.prototype,"isPressed",void 0);
_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],_.As.prototype,"ytActionHandlerBehavior",void 0);_.O([_.f(_.Br$.YtButtonBehavior),_.R("design:type",Object)],_.As.prototype,"ytButtonBehavior",void 0);_.O([_.f(_.vL),_.R("design:type",Object)],_.As.prototype,"ytdOpenPopupBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],_.As.prototype,"ytComponentBehavior",void 0);
_.O([_.f(av.YtRenderButtonBehavior),_.R("design:type",Object)],_.As.prototype,"ytRenderButtonBehavior",void 0);_.O([_.NE("data.hint.hintRenderer"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],_.As.prototype,"onHintIdChanged",null);_.O([_.NE("isPressed"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],_.As.prototype,"onPressedStateChanged",null);
_.O([_.ps("yt-navigate"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],_.As.prototype,"onYtNavigate",null);_.O([_.ps("yt-service-request-sent"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,_.qd]),_.R("design:returntype")],_.As.prototype,"onYtServiceRequestSent",null);
_.O([_.ps("yt-service-request-completed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,_.Oi]),_.R("design:returntype")],_.As.prototype,"onServiceRequestCompleted",null);_.As=_.O([_.E({is:"ytd-button-renderer",disableElementRegistration:viL})],_.As);var Rv=function(){var J=_.h.apply(this,arguments)||this;J.modern=_.w("web_button_rework_with_live");J.buttonOverrides={style:"overlay",type:"filled"};return J};
_.D(Rv,_.h);_.V=Rv.prototype;_.V.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"}}}}};
_.V.ready=function(){var J=document.querySelector("yt-live-chat-app");J&&J.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.V.dataChanged=function(){if(this.data&&this.data.sticker){var J=_.yn(this.data.sticker.thumbnails,this.stickerWidth);J||_.smQ(J).thenCatch(function(){_.qz(new _.w3("Failed to load Super Sticker with url",J))})}};
_.V.computeAuthorPhotoSize=function(J){return(J==null?0:J.isV2Style)?32:40};
_.V.computeIsV2Style=function(J){return(J==null?0:J.isV2Style)?!0:!1};
_.V.onStickerLoaded=function(J){var c,m,b;(c=_.Ac(J))==null||(m=c.parentNode)==null||(b=m.classList)==null||b.add("sticker-loaded")};
_.V.computeNoveltyImageWidth=function(J){var c,m;if(J==null?0:(c=J.headerOverlayImage)==null?0:(m=c.thumbnails)==null?0:m.length){c=J.headerOverlayImage.thumbnails[0];var b,x;if((b=J.pdgPurchasedNoveltyLoggingDirectives)==null?0:(x=b.loggingDirectives)==null?0:x.trackingParams){var P,p;DgR((P=J.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(p=P.loggingDirectives)==null?void 0:p.trackingParams)}return c.width||0}return 0};
_.V.isDeletedChanged=function(){this.isDeleted&&(this.set("data.detailText",null),this.set("data.superStickerIcon",null),this.set("data.sticker",null))};
_.V.updateStickerStyles=function(){var J=this.data;J&&(J={"--yt-live-chat-paid-sticker-chip-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(J.moneyChipBackgroundColor),"--yt-live-chat-paid-sticker-chip-text-color":this.ytLiveChatItemBehavior.colorFromDecimal(J.moneyChipTextColor),"--yt-live-chat-paid-sticker-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(J.backgroundColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(J.authorNameTextColor)},
_.V1(this.hostElement,J))};
_.V.onBuyButtonClick=function(){var J,c=_.L((J=this.data)==null?void 0:J.buyButton,_.ur);c&&!oOQ(c.command)&&this.ytRendererBehavior.logExplicitClick(c)};
_.V.shouldSupportWholeItemClick=function(){return!0};
_.eE.Object.defineProperties(Rv.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 J;return((J=this.data)==null?0:J.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
Rv.prototype.updateStickerStyles=Rv.prototype.updateStickerStyles;Rv.prototype.isDeletedChanged=Rv.prototype.isDeletedChanged;Rv.prototype.onStickerLoaded=Rv.prototype.onStickerLoaded;Rv.prototype.dataChanged=Rv.prototype.dataChanged;_.O([_.f(cJB.YtPdgLiveChatItemBehavior),_.R("design:type",Object)],Rv.prototype,"ytPdgLiveChatItemBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Rv.prototype,"ytRendererBehavior",void 0);
_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],Rv.prototype,"ytComponentBehavior",void 0);_.O([_.f(_.Zo.YtLiveChatItemBehavior),_.R("design:type",_.q7)],Rv.prototype,"ytLiveChatItemBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],Rv.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Rv.prototype,"data",void 0);
_.O([_.U({computed:"computeAuthorPhotoSize(data)"}),_.R("design:type",Number)],Rv.prototype,"authorPhotoSize",void 0);_.O([_.U(),_.R("design:type",Boolean)],Rv.prototype,"isDeleted",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],Rv.prototype,"dashboardMoneyFeed",void 0);_.O([_.U({computed:"computeNoveltyImageWidth(data)"}),_.R("design:type",Number)],Rv.prototype,"noveltyWidth",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Rv.prototype,"modern",void 0);
_.O([_.U({reflectToAttribute:!0,computed:"computeIsV2Style(data)"}),_.R("design:type",Boolean)],Rv.prototype,"isV2Style",void 0);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Rv.prototype,"dataChanged",null);_.O([_.ps("yt-img-shadow-loaded"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],Rv.prototype,"onStickerLoaded",null);
_.O([_.q("data"),_.R("design:type",Number),_.R("design:paramtypes",[])],Rv.prototype,"stickerWidth",null);_.O([_.q("data"),_.R("design:type",Number),_.R("design:paramtypes",[])],Rv.prototype,"stickerHeight",null);_.O([_.U({reflectToAttribute:!0}),_.q("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Rv.prototype,"hasHeartButton",null);_.O([_.q("data","dashboardMoneyFeed"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Rv.prototype,"hideLowerBumper",null);
_.O([_.NE("isDeleted"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Rv.prototype,"isDeletedChanged",null);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Rv.prototype,"updateStickerStyles",null);Rv=_.O([_.uM({disableElementRegistration:!0,is:"yt-live-chat-paid-sticker-renderer",noInjection:!0})],Rv);
_.v(Rv,"yt-live-chat-paid-sticker-renderer",function(){if(L8Z===void 0){var J=document.createElement("template");_.z(J,'\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>');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);var c=J.content,m=c.insertBefore;sUj===void 0&&(sUj=document.createElement("template"));var b=sUj;m.call(c,b.content.cloneNode(!0),J.content.firstChild);L8Z=J}J=L8Z;return J},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var Oxz;var AC6;var RO_,oiC=function(){return RO_!==void 0?RO_:RO_=document.createElement("template")};
document.head.appendChild(oiC().content);var QUB,eOL=function(){return QUB!==void 0?QUB:QUB=document.createElement("template")};
document.head.appendChild(eOL().content);var jU6;var F86,laj=function(){return F86!==void 0?F86:F86=document.createElement("template")};
document.head.appendChild(laj().content);var yC$;var BYu=document.head,giQ=BYu.appendChild,J4L;if(yC$===void 0){var c46=document.createElement("template");_.z(c46,"\x3c!--css-build:shady--\x3e");c46.content.insertBefore(laj().content.cloneNode(!0),c46.content.firstChild);yC$=c46}J4L=yC$;giQ.call(BYu,J4L.content);var m4B=document.head,bML=m4B.appendChild,x4Q;if(jU6===void 0){var ov=document.createElement("template");_.z(ov,"\x3c!--css-build:shady--\x3e");ov.content.insertBefore(eOL().content.cloneNode(!0),ov.content.firstChild);ov.content.insertBefore(oiC().content.cloneNode(!0),ov.content.firstChild);jU6=ov}x4Q=jU6;bML.call(m4B,x4Q.content);var Q7=function(){var J=_.Cs.apply(this,arguments)||this;J.focusedIndex=0;J.verticalOffset=0;J.verticalAlign="top";J.dynamicAlign=!0;return J};
_.D(Q7,_.Cs);Q7.prototype.emojiUrl=function(J){J=_.fo(this.emojiManager,J);if(!J)return"";var c;J=(c=J.image)==null?void 0:c.thumbnails;return _.yn(J,24)||""};
var VaC=function(J){var c;J.emojiVariants&&(c=J.data)!=null&&c.target&&_.o3(J,function(){J.set("verticalOffset",-1*J.hostElement.clientHeight);var m=_.Bj(J.hostElement).querySelector("img");m&&m.focus()})};
_.V=Q7.prototype;_.V.onKeyboardEnter=function(){};
_.V.onVerticalOffsetOrPositionTargetChanged=function(){this.ironOverlayBehavior.position()};
_.V.onEmojiVariantsChanged=function(){this.emojiVariants&&(this.ironOverlayBehavior.noCancelOnOutsideClick=!0,this.ironOverlayBehavior.open())};
_.V.onKeyDown=function(J){switch(J.keyCode){case 13:this.onKeyboardEnter();J.preventDefault();break;case 40:this.changeFocus(1);J.preventDefault();break;case 38:this.changeFocus(-1);J.preventDefault();break;case 27:this.ironOverlayBehavior.restoreFocusOnClose=!0,this.ironOverlayBehavior.close()}};
_.V.onYtEmojiSelect=function(J){var c=this,m,b,x,P,p,t,I,a;return _.N(function(k){if(k.nextAddress==1)return b=(m=c.data)==null?void 0:m.emoji,p=((x=b)==null?void 0:x.stickyPrefId)||((P=b)==null?void 0:P.emojiId),I=(t=J.detail)==null?void 0:t.emojiId,p&&I&&p!==I?_.K(k,(a=c.emojiManager)==null?void 0:tm_(a,b,I),2):k.return();_.m9(c.hostElement,"yt-live-chat-emoji-sticky-preference-changed",[b,I]);_.tD(k)})};
_.V.changeFocus=function(J){this.emojiVariants&&this.emojiVariants.length&&(this.focusedIndex=(this.focusedIndex+J+this.emojiVariants.length)%this.emojiVariants.length,this.focusedIndex<this.emojiVariants.length&&(J=_.Bj(this.hostElement).querySelector("#variants"))&&J.children[this.focusedIndex].focus())};
_.eE.Object.defineProperties(Q7.prototype,{positionTarget:{configurable:!0,enumerable:!0,get:function(){var J;return((J=this.data)==null?void 0:J.target)||this.hostElement.parentElement}},
isPositioned:{configurable:!0,enumerable:!0,get:function(){return this.data&&!this.data.target||!!this.verticalOffset}}});
Q7.prototype.onYtEmojiSelect=Q7.prototype.onYtEmojiSelect;Q7.prototype.onKeyDown=Q7.prototype.onKeyDown;Q7.prototype.onEmojiVariantsChanged=Q7.prototype.onEmojiVariantsChanged;Q7.prototype.onVerticalOffsetOrPositionTargetChanged=Q7.prototype.onVerticalOffsetOrPositionTargetChanged;_.O([_.f(_.dI),_.R("design:type",Object)],Q7.prototype,"ironOverlayBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Q7.prototype,"data",void 0);_.O([_.U(),_.R("design:type",_.uH)],Q7.prototype,"emojiManager",void 0);
_.O([_.U(),_.R("design:type",Object)],Q7.prototype,"emojiVariants",void 0);_.O([_.U(),_.R("design:type",Object)],Q7.prototype,"focusedIndex",void 0);_.O([_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],Q7.prototype,"positionTarget",null);_.O([_.U({reflectToAttribute:!0}),_.q("verticalOffset","data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Q7.prototype,"isPositioned",null);_.O([_.U(),_.R("design:type",Object)],Q7.prototype,"verticalOffset",void 0);
_.O([_.U(),_.R("design:type",Object)],Q7.prototype,"verticalAlign",void 0);_.O([_.U(),_.R("design:type",Object)],Q7.prototype,"dynamicAlign",void 0);_.O([_.NE("verticalOffset","positionTarget"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Q7.prototype,"onVerticalOffsetOrPositionTargetChanged",null);_.O([_.NE("emojiVariants"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Q7.prototype,"onEmojiVariantsChanged",null);
_.O([_.ps("keydown"),_.R("design:type",Function),_.R("design:paramtypes",[KeyboardEvent]),_.R("design:returntype")],Q7.prototype,"onKeyDown",null);_.O([_.ps("yt-emoji-select"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype",Promise)],Q7.prototype,"onYtEmojiSelect",null);Q7=_.O([_.au()],Q7);var PTC=[Q7.prototype];var Maa;var pNQ;var Nl$=/medium-light|medium-dark|light|medium|dark/,ta2=/[\w-]*?(?=\/\w+\/\w+\.(?:svg|png)$)/,IR_=new Map([["dark","\ud83c\udfff"],["medium-dark","\ud83c\udffe"],["medium","\ud83c\udffd"],["medium-light","\ud83c\udffc"],["light","\ud83c\udffb"]]),eJ=function(){var J=_.h.apply(this,arguments)||this;J.userSelection={left:null,right:null};J.scrollAction="lock";J.isEmojiDraftInProgress=!1;return J};
_.D(eJ,_.h);_.V=eJ.prototype;_.V.onClick=function(J){J=_.Ac(J);J instanceof HTMLImageElement&&this.selectOrUpdateEmoji(J)};
_.V.selectOrUpdateEmoji=function(J){var c=J.getAttribute("selection");c&&(c==="default"?_.cA(this.hostElement,"yt-emoji-select",_.fo(this.emojiManager,J.id)):c==="left"?this.userSelection=Object.assign({},this.userSelection,{left:J.src}):c==="right"?this.userSelection=Object.assign({},this.userSelection,{right:J.src}):c==="user"&&this.userSelection.left&&this.userSelection.right&&_.cA(this.hostElement,"yt-emoji-select",_.fo(this.emojiManager,J.id)))};
_.V.openSelector=function(){this.ironOverlayBehavior.restoreFocusOnClose=!0;this.ironOverlayBehavior.open()};
_.V.onMultiSelectorThumbnailRowChanged=function(){var J,c,m;((J=this.data)==null?0:(c=J.emoji)==null?0:(m=c.multiSelectorThumbnailRow)==null?0:m.length)&&this.openSelector()};
_.V.getThumbnailFromEmojiRow=function(J){var c,m;return(J==null?void 0:(c=J.thumbnails)==null?void 0:(m=c[0])==null?void 0:m.url)||""};
_.V.getEmojiAltTextForPartialSelector=function(J){var c;return((c=this.getThumbnailFromEmojiRow(J).match(ta2))==null?void 0:c[0])||""};
_.V.getEmojiAltTextForDraftEmoji=function(){return this.composedEmojiSelection?this.composedEmojiSelection.emojiId||"":""};
_.V.getDraftEmojiAriaRole=function(){return this.composedEmojiSelection?"option":""};
_.V.getRowSelection=function(J){return["left","right"][J]};
_.V.getIdFromComposedEmoji=function(J){return(J==null?void 0:J.emojiId)||""};
_.V.getEmojiFromPartialSelections=function(J,c){if(!J&&!c)return null;var m,b,x=(m=this.data)==null?void 0:(b=m.emoji)==null?void 0:b.variantIds;if(!x||!x.length)return null;var P;J=(P=J.match(Nl$))==null?void 0:P[0];var p;c=(p=c.match(Nl$))==null?void 0:p[0];if(!J||!c)return null;var t=IR_.get(J);p=IR_.get(c);if(t===p){p=Array.from(IR_.values()).filter(function(a){return a!==t}).join("|");
var I=new RegExp("^((?!("+p+")).)*"+t+"$")}else I=new RegExp(t+".*"+p);return(x=x.find(function(a){return I.test(a)}))&&_.fo(this.emojiManager,x)||null};
_.V.onUserSelectionSrcLoad=function(){if(!this.isEmojiDraftInProgress&&this.data){var J,c=this.ytEmojiSelectorBehavior.emojiUrl(((J=this.data.emoji)==null?void 0:J.emojiId)||"");_.Bj(this.hostElement).querySelector('[selection="user"]').src.includes(c)||(this.isEmojiDraftInProgress=!0)}};
_.V.onDomChange=function(){VaC(this.ytEmojiSelectorBehavior)};
_.V.getFocusableElements=function(){return _.Bj(this.hostElement).querySelectorAll("img").filter(function(J){return J.getAttribute("role")==="option"})};
_.V.changeFocus=function(J){var c=this.getFocusableElements();c!=null&&c.length&&(this.ytEmojiSelectorBehavior.focusedIndex=(this.ytEmojiSelectorBehavior.focusedIndex+J+c.length)%c.length,this.ytEmojiSelectorBehavior.focusedIndex<c.length&&(J=c[this.ytEmojiSelectorBehavior.focusedIndex])&&J.focus())};
_.V.onKeyboardEnter=function(){var J=this.getFocusableElements();J!=null&&J.length&&(J=J[this.ytEmojiSelectorBehavior.focusedIndex])&&J instanceof HTMLImageElement&&(this.selectOrUpdateEmoji(J),this.ytEmojiSelectorBehavior.changeFocus(0))};
_.eE.Object.defineProperties(eJ.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var J=this,c,m,b;return this.emojiManager&&((c=this.data)==null?0:(m=c.emoji)==null?0:(b=m.variantIds)==null?0:b.length)?this.data.emoji.variantIds.map(function(x){return!!x&&_.fo(J.emojiManager,x)}).filter(function(x){return!!x}):[]}},
composedEmojiSelection:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var J,c=(J=this.userSelection)==null?void 0:J.left,m;J=(m=this.userSelection)==null?void 0:m.right;return c&&J?this.getEmojiFromPartialSelections(c,J):null}},
draftEmojiUrl:{configurable:!0,enumerable:!0,get:function(){var J;if((J=this.composedEmojiSelection)==null?0:J.emojiId)return this.ytEmojiSelectorBehavior.emojiUrl(this.composedEmojiSelection.emojiId)||"";if(!this.data)return"";var c;J=(c=this.userSelection)==null?void 0:c.left;var m;c=(m=this.userSelection)==null?void 0:m.right;if(!J&&!c){var b;return this.ytEmojiSelectorBehavior.emojiUrl(((b=this.data.emoji)==null?void 0:b.emojiId)||"")}return J&&!c?J:!J&&c?c:""}}});
eJ.prototype.onMultiSelectorThumbnailRowChanged=eJ.prototype.onMultiSelectorThumbnailRowChanged;eJ.prototype.onClick=eJ.prototype.onClick;_.O([_.f(_.dI),_.R("design:type",Object)],eJ.prototype,"ironOverlayBehavior",void 0);_.O([_.f(PTC),_.R("design:type",Object)],eJ.prototype,"ytEmojiSelectorBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],eJ.prototype,"data",void 0);_.O([_.U(),_.R("design:type",_.uH)],eJ.prototype,"emojiManager",void 0);
_.O([_.U(),_.R("design:type",Object)],eJ.prototype,"userSelection",void 0);_.O([_.U(),_.R("design:type",Object)],eJ.prototype,"scrollAction",void 0);_.O([_.U(),_.R("design:type",Object)],eJ.prototype,"isEmojiDraftInProgress",void 0);_.O([_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],eJ.prototype,"emojiVariants",null);_.O([_.q("data","userSelection"),_.R("design:type",Object),_.R("design:paramtypes",[])],eJ.prototype,"composedEmojiSelection",null);
_.O([_.ps("click"),_.R("design:type",Function),_.R("design:paramtypes",[MouseEvent]),_.R("design:returntype")],eJ.prototype,"onClick",null);_.O([_.NE("data.emoji.multiSelectorThumbnailRow"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],eJ.prototype,"onMultiSelectorThumbnailRowChanged",null);_.O([_.q("data","userSelection","composedEmojiSelection"),_.R("design:type",String),_.R("design:paramtypes",[])],eJ.prototype,"draftEmojiUrl",null);
eJ=_.O([_.uM({is:"yt-emoji-multi-person-selector",disableElementRegistration:!0})],eJ);
_.v(eJ,"yt-emoji-multi-person-selector",function(){if(pNQ===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;Maa===void 0&&(Maa=document.createElement("template"));var b=Maa;m.call(c,b.content.cloneNode(!0),J.content.firstChild);pNQ=J}J=pNQ;return J},{mode:2});var K6$;var CTa;var jJ=function(){var J=_.h.apply(this,arguments)||this;J.tooltip_=null;return J};
_.D(jJ,_.h);_.V=jJ.prototype;_.V.dataChanged_=function(){var J;if((J=this.data)==null?0:J.tooltip)this.tooltip_||(this.tooltip_=document.createElement("tp-yt-paper-tooltip"),_.Bj(this.hostElement).querySelector("#button").appendChild(this.tooltip_)),(0,_.xr)(this.tooltip_).textContent=this.data.tooltip};
_.V.computeTargetId=function(){var J;return((J=this.data)==null?void 0:J.targetId)||""};
_.V.computeId_=function(J){return J};
_.V.computeIcon_=function(J){return _.Pd(J)};
_.V.onTap_=function(){this.active=!this.active;_.cA(this.hostElement,"yt-emoji-picker-select-category",{categoryId:this.hostElement.id})};
_.V.activeChangedForBinding=function(){this.hostElement.dispatchEvent(new _.SJ("active-changed",this.active))};
_.eE.Object.defineProperties(jJ.prototype,{iconFilled:{configurable:!0,enumerable:!0,get:function(){var J,c;if((J=this.data)==null?0:(c=J.icon)==null?0:c.iconType)return this.data.icon.iconType==="SUPER_STICKER";var m,b;return((m=this.data)==null?void 0:(b=m.icon)==null?void 0:b.iconType)==="VIDEO_YOUTUBE"?!0:!1}}});
jJ.prototype.activeChangedForBinding=jJ.prototype.activeChangedForBinding;jJ.prototype.dataChanged_=jJ.prototype.dataChanged_;_.O([_.f(_.ZO.YtLiveChatTooltipTargetingBehavior),_.R("design:type",Object)],jJ.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],jJ.prototype,"data",void 0);_.O([_.U({computed:"computeId_(data.categoryId)",reflectToAttribute:!0}),_.R("design:type",String)],jJ.prototype,"id",void 0);
_.O([_.U({computed:"computeTargetId(data.targetId)"}),_.R("design:type",String)],jJ.prototype,"targetId",void 0);_.O([_.U({value:!1,reflectToAttribute:!0}),_.R("design:type",Boolean)],jJ.prototype,"active",void 0);_.O([_.U({readOnly:!0,computed:"computeIcon_(data.icon.iconType)"}),_.R("design:type",String)],jJ.prototype,"icon",void 0);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],jJ.prototype,"dataChanged_",null);
_.O([_.q("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],jJ.prototype,"iconFilled",null);_.O([_.NE("active"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],jJ.prototype,"activeChangedForBinding",null);jJ=_.O([_.uM({is:"yt-emoji-picker-category-button-renderer",disableElementRegistration:!0})],jJ);
_.v(jJ,"yt-emoji-picker-category-button-renderer",function(){if(CTa===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;K6$===void 0&&(K6$=document.createElement("template"));var b=K6$;m.call(c,b.content.cloneNode(!0),J.content.firstChild);CTa=J}J=CTa;return J},{mode:2});var aRj;var kbQ;var Fh=function(){var J=_.h.apply(this,arguments)||this;J.ariaLabel=null;J.ariaActivedescendant=null;J.actionMap={"yt-live-chat-emoji-skin-tone-changed":"emojiSkinToneChanged_","yt-close-emoji-variant-selector":"onCloseEmojiVariantSelector","yt-live-chat-emoji-sticky-preference-changed":"onEmojiStickyPreferenceChanged"};J.JSC$12060_ignoreNextFocus_=!1;J.longPressTimeoutId=-1;return J};
_.D(Fh,_.h);_.V=Fh.prototype;_.V.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.V.detached=function(){clearTimeout(this.longPressTimeoutId)};
_.V.emojiChanged_=function(){this.changeFocus_(0,!1);for(var J=_.C7(),c=0;c<this.emoji.length;c++){var m={veType:88013,elementIndex:c},b=this.emoji[c];b.isCustomEmoji&&(b=document.querySelector(("#"+b.emojiId).replace("/","\\/")))&&(m=_.K7(J,m))&&(b.visualElement=m)}};
_.V.emojiManagerChanged_=function(){this.skinTone=this.emojiManager.skinTone};
_.V.disableIncrementalLoadingChanged_=function(){this.disableIncrementalLoading&&(this.domRepeatTargetFramerate=this.domRepeatInitialCount=0)};
_.V.emojiSkinToneChanged_=function(J){this.skinTone=J};
_.V.dataChanged=function(){this.data&&this.data.emojiData&&PwC(this.emojiManager,this.data.emojiData)};
_.V.emojiUrl=function(J){J=this.getEmoji(J);if(!J)return"";var c;J=(c=J.image)==null?void 0:c.thumbnails;return _.yn(J,24)||""};
_.V.emojiAlt=function(J){var c=this.get("image.accessibility.accessibilityData.label",J);return c?c:J.isCustomEmoji?J.shortcuts[0]:J.emojiId};
_.V.emojiAriaLabel=function(J){return J.shortcuts?J.shortcuts[0]:""};
_.V.emojiAriaSelected=function(J,c,m){return J&&m==c?"true":"false"};
_.V.getEmoji=function(J){if(this.emojiManager)return this.shouldUseStickyPreferences?pb_(this.emojiManager,J):Yq(this.emojiManager,J)};
_.V.computeId_=function(J){return J.categoryId||""};
_.V.computeEmoji=function(J){var c=this;return this.emojiManager?J.emojiIds?J.emojiIds.map(function(m){return m?_.fo(c.emojiManager,m):null}).filter(L0q):J.emojiData?J.emojiData.map(function(m){var b=!!m.emojiId&&_.fo(c.emojiManager,m.emojiId);
return b?Object.assign({},b,m):null}).filter(L0q):[]:[]};
_.V.emojiLoading=function(){return this.data&&this.data.imageLoadingLazy?"lazy":"eager"};
_.V.computeAriaLabel_=function(J){return _.OG(J)};
_.V.computeAriaActivedescendant_=function(J,c){return J&&J[c]?J[c].emojiId||"":""};
_.V.handleLongPressEmojiWithVariants=function(J,c){this.changeFocusToEmoji(J.emojiId,!1);this.openVariantSelector(J,c)};
_.V.onMouseDown=function(J){var c=this;this.hostElement!==document.activeElement&&(this.JSC$12060_ignoreNextFocus_=!0);if(J.button===0){var m=_.Ac(J);if(m instanceof HTMLImageElement){var b=_.Bj(this.hostElement).querySelector("#repeat").itemForElement(m);this.emojiContainsVariants(b)&&(this.longPressTimeoutId=setTimeout(function(){c.handleLongPressEmojiWithVariants(b,m)},500))}}};
_.V.onMouseUp=function(){clearTimeout(this.longPressTimeoutId)};
_.V.onFocus=function(){this.JSC$12060_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$12060_ignoreNextFocus_=!1};
_.V.onBlur_=function(){this.showFocus=!1};
_.V.emojiContainsVariants=function(J){return!!(J&&J.variantIds&&J.variantIds.length)};
_.V.onClick=function(J){clearTimeout(this.longPressTimeoutId);J=_.Ac(J);if(J instanceof HTMLImageElement){var c=J.id;this.changeFocusToEmoji(c,!1);var m=this.getEmoji(c),b;if(b=this.shouldUseStickyPreferences&&this.emojiContainsVariants(m)){var x;b=!((x=this.emojiManager.emojiMap[c])!=null&&x.stickyPrefId)}b?(x=_.Bj(this.hostElement).querySelector("#repeat").itemForElement(J),this.openVariantSelector(x,J)):_.cA(this.hostElement,"yt-emoji-select",m)}};
_.V.isActiveEmojiWithVariants=function(J,c){return J&&c?c.stickyPrefId?J===c.stickyPrefId:J===c.emojiId:!1};
_.V.onCloseEmojiVariantSelector=function(J){this.activeEmojiWithVariantsId===J&&(this.activeEmojiWithVariantsId="")};
_.V.onMouseOver_=function(J){J=_.Ac(J);J instanceof HTMLImageElement&&_.cA(this.hostElement,"yt-emoji-hover",_.fo(this.emojiManager,J.id))};
_.V.changeFocus_=function(J,c){this.focusedIndex=(this.focusedIndex+J+this.emoji.length)%this.emoji.length;this.focusedIndex<this.emoji.length&&(J=this.emoji[this.focusedIndex],c&&(this.showFocus=!0,_.Bj(this.hostElement).querySelector("#emoji").children[this.focusedIndex].scrollIntoView(!1),_.cA(this.hostElement,"yt-emoji-hover",J)))};
_.V.changeFocusToEmoji=function(J,c){if(J){var m=this.emoji.findIndex(function(b){return b.emojiId===J});
m!==-1&&this.changeFocus_(m-this.focusedIndex,c)}};
_.V.onKeyDown_=function(J){switch(J.keyCode){case 13:if(this.focusedIndex<this.emoji.length){var c=this.emoji[this.focusedIndex];if(c&&c.emojiId){if(this.emojiContainsVariants(c)){var m=_.Bj(this.hostElement).querySelectorAll("img")[this.focusedIndex];this.openVariantSelector(c,m)}else _.cA(this.hostElement,"yt-emoji-select",Yq(this.emojiManager,c.emojiId)),this.hostElement.focus();J.preventDefault()}}break;case 40:this.changeFocus_(1,!0);J.preventDefault();break;case 38:this.changeFocus_(-1,!0),
J.preventDefault()}};
_.V.onEmojiStickyPreferenceChanged=function(J,c){this.shouldUseStickyPreferences&&this.activeEmojiWithVariantsId&&J.emojiId&&J.variantIds&&J.variantIds.includes(c)&&this.activeEmojiWithVariantsId!==c&&this.setStickyEmojiPreference(J.emojiId,c)};
_.V.openVariantSelector=function(J,c){this.activeEmojiWithVariantsId=J.stickyPrefId||J.emojiId||"";_.cA(this.hostElement,"yt-show-emoji-variant-selector",{emojiData:J,target:c})};
_.V.setStickyEmojiPreference=function(J,c){if(this.data){var m=this.emoji.findIndex(function(x){return x.emojiId===J});
if(m!==-1){var b=this.emoji[m];b.stickyPrefId=c;this.set("emoji."+m,Object.assign({},b));this.activeEmojiWithVariantsId=c}}};
Fh.prototype.onKeyDown_=Fh.prototype.onKeyDown_;Fh.prototype.onMouseOver_=Fh.prototype.onMouseOver_;Fh.prototype.onClick=Fh.prototype.onClick;Fh.prototype.onBlur_=Fh.prototype.onBlur_;Fh.prototype.onFocus=Fh.prototype.onFocus;Fh.prototype.onMouseUp=Fh.prototype.onMouseUp;Fh.prototype.onMouseDown=Fh.prototype.onMouseDown;Fh.prototype.dataChanged=Fh.prototype.dataChanged;Fh.prototype.disableIncrementalLoadingChanged_=Fh.prototype.disableIncrementalLoadingChanged_;Fh.prototype.emojiManagerChanged_=Fh.prototype.emojiManagerChanged_;
Fh.prototype.emojiChanged_=Fh.prototype.emojiChanged_;_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],Fh.prototype,"ytActionHandlerBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Fh.prototype,"data",void 0);_.O([_.U({computed:"computeId_(data)"}),_.R("design:type",String)],Fh.prototype,"id",void 0);_.O([_.U({computed:"computeEmoji(data)"}),_.R("design:type",Array)],Fh.prototype,"emoji",void 0);_.O([_.U(),_.R("design:type",Number)],Fh.prototype,"skinTone",void 0);
_.O([_.U(),_.R("design:type",_.uH)],Fh.prototype,"emojiManager",void 0);_.O([_.U(),_.R("design:type",Boolean)],Fh.prototype,"disableIncrementalLoading",void 0);_.O([_.U({value:0}),_.R("design:type",Number)],Fh.prototype,"focusedIndex",void 0);_.O([_.U({value:!1}),_.R("design:type",Boolean)],Fh.prototype,"showFocus",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeAriaLabel_(data.title)"}),_.R("design:type",Object)],Fh.prototype,"ariaLabel",void 0);
_.O([_.U({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(emoji, focusedIndex)"}),_.R("design:type",Object)],Fh.prototype,"ariaActivedescendant",void 0);_.O([_.U({value:60}),_.R("design:type",Number)],Fh.prototype,"domRepeatTargetFramerate",void 0);_.O([_.U({value:1}),_.R("design:type",Number)],Fh.prototype,"domRepeatInitialCount",void 0);_.O([_.U({value:""}),_.R("design:type",String)],Fh.prototype,"activeEmojiWithVariantsId",void 0);
_.O([_.U({value:!1}),_.R("design:type",Boolean)],Fh.prototype,"shouldUseStickyPreferences",void 0);_.O([_.NE("emoji"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Fh.prototype,"emojiChanged_",null);_.O([_.NE("emojiManager"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Fh.prototype,"emojiManagerChanged_",null);
_.O([_.NE("disableIncrementalLoading"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Fh.prototype,"disableIncrementalLoadingChanged_",null);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Fh.prototype,"dataChanged",null);_.O([_.ps("mousedown"),_.R("design:type",Function),_.R("design:paramtypes",[Object]),_.R("design:returntype")],Fh.prototype,"onMouseDown",null);
_.O([_.ps("mouseup"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Fh.prototype,"onMouseUp",null);_.O([_.ps("focus"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Fh.prototype,"onFocus",null);_.O([_.ps("blur"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Fh.prototype,"onBlur_",null);
_.O([_.ps("click"),_.R("design:type",Function),_.R("design:paramtypes",[Event]),_.R("design:returntype")],Fh.prototype,"onClick",null);_.O([_.ps("mouseover"),_.R("design:type",Function),_.R("design:paramtypes",[Event]),_.R("design:returntype")],Fh.prototype,"onMouseOver_",null);_.O([_.ps("keydown"),_.R("design:type",Function),_.R("design:paramtypes",[Event]),_.R("design:returntype")],Fh.prototype,"onKeyDown_",null);
Fh=_.O([_.uM({is:"yt-emoji-picker-category-renderer",disableElementRegistration:!0})],Fh);
_.v(Fh,"yt-emoji-picker-category-renderer",function(){if(kbQ===void 0){var J=document.createElement("template");_.z(J,'\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>');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;aRj===void 0&&(aRj=document.createElement("template"));var b=aRj;m.call(c,b.content.cloneNode(!0),J.content.firstChild);kbQ=J}J=kbQ;return J},{mode:2});var HMQ;var iMC;var nu_;var Tl8;var lH=function(){var J=_.h.apply(this,arguments)||this;J.ariaLabel=null;J.ariaActivedescendant=null;J.getFormattedStringRawText=_.OG;J.JSC$12066_ignoreNextFocus_=!1;return J};
_.D(lH,_.h);_.V=lH.prototype;_.V.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")};
_.V.emojiUrl=function(J){var c,m;J=(c=Yq(this.emojiManager,J,!0))==null?void 0:(m=c.image)==null?void 0:m.thumbnails;return _.yn(J,24)||""};
_.V.emojiAlt=function(J){var c=this.get("image.accessibility.accessibilityData.label",J);return c?c:J.isCustomEmoji?J.shortcuts[0]:J.emojiId};
_.V.emojiId=function(J){return"emoji"+J};
_.V.computeId_=function(J){return J.categoryId||""};
_.V.computeAriaActivedescendant_=function(J){return this.emoji&&J<this.emoji.length?this.emojiId(J):""};
_.V.emojiChanged_=function(){this.changeFocus_(0,!1);for(var J=_.C7(),c=0;c<this.emoji.length;c++){var m={veType:88013,elementIndex:c},b=this.emoji[c];b.isCustomEmoji&&(b=document.querySelector(("#"+b.emojiId).replace("/","\\/")))&&(m=_.K7(J,m))&&(b.visualElement=m)}};
_.V.computeEmoji_=function(J){var c=this;return this.emojiManager?J.emojiIds.map(function(m){return _.fo(c.emojiManager,m,!0)}).filter(Dvq):[]};
_.V.titleOffsetChanged_=function(){var J=this.hostElement.getBoundingClientRect(),c=_.Bj(this.hostElement).querySelector("#title").getBoundingClientRect();J=Math.max(0,Math.min(this.titleOffset,J.height-c.height));_.Bj(this.hostElement).querySelector("#title").style.top=J+"px"};
_.V.onEmojiMouseOver_=function(J){_.cA(this.hostElement,"yt-emoji-hover",J.model.item)};
_.V.onEmojiTap_=function(J){this.data.command&&(J=qRT(_.BG().resolve(_.y6(GB)),this.data.command,J),_.cA(this.hostElement,"yt-navigate",J))};
_.V.emojiAriaLabel=function(J){return J.shortcuts[0]};
_.V.emojiAriaSelected=function(J,c,m){return J&&m==c?"true":"false"};
_.V.changeFocus_=function(J,c){var m=this.emoji.length;this.focusedIndex=(this.focusedIndex+J+m)%m;J=this.emoji[this.focusedIndex];if(c){var b;(b=_.Bj(this.hostElement).querySelector("#"+this.emojiId(this.focusedIndex)))==null||b.scrollIntoView(!1);_.cA(this.hostElement,"yt-emoji-hover",J)}};
_.V.onMouseDown_=function(){this.JSC$12066_ignoreNextFocus_=!0};
_.V.onFocus_=function(){this.JSC$12066_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$12066_ignoreNextFocus_=!1};
_.V.onBlur_=function(){this.showFocus=!1};
_.V.onKeyDown_=function(J){switch(J.keyCode){case 13:this.onEmojiTap_(J);this.hostElement.focus();break;case 40:this.changeFocus_(1,!0);J.preventDefault();break;case 38:this.changeFocus_(-1,!0),J.preventDefault()}};
lH.prototype.onKeyDown_=lH.prototype.onKeyDown_;lH.prototype.onBlur_=lH.prototype.onBlur_;lH.prototype.onFocus_=lH.prototype.onFocus_;lH.prototype.onMouseDown_=lH.prototype.onMouseDown_;lH.prototype.onEmojiTap_=lH.prototype.onEmojiTap_;lH.prototype.titleOffsetChanged_=lH.prototype.titleOffsetChanged_;lH.prototype.emojiChanged_=lH.prototype.emojiChanged_;_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],lH.prototype,"ytComponentBehavior",void 0);
_.O([_.U(),_.R("design:type",Object)],lH.prototype,"data",void 0);_.O([_.U({computed:"computeId_(data)"}),_.R("design:type",String)],lH.prototype,"id",void 0);_.O([_.U({computed:"computeEmoji_(data)"}),_.R("design:type",Array)],lH.prototype,"emoji",void 0);_.O([_.U({value:0}),_.R("design:type",Number)],lH.prototype,"titleOffset",void 0);_.O([_.U({reflectToAttribute:!0,computed:"getFormattedStringRawText(data.upsell)"}),_.R("design:type",Object)],lH.prototype,"ariaLabel",void 0);
_.O([_.U({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(focusedIndex)"}),_.R("design:type",Object)],lH.prototype,"ariaActivedescendant",void 0);_.O([_.U({value:!1}),_.R("design:type",Boolean)],lH.prototype,"showFocus",void 0);_.O([_.U({value:0}),_.R("design:type",Number)],lH.prototype,"focusedIndex",void 0);_.O([_.U(),_.R("design:type",_.uH)],lH.prototype,"emojiManager",void 0);
_.O([_.NE("emoji"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],lH.prototype,"emojiChanged_",null);_.O([_.NE("titleOffset"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],lH.prototype,"titleOffsetChanged_",null);_.O([_.ps("click"),_.R("design:type",Function),_.R("design:paramtypes",[Event]),_.R("design:returntype")],lH.prototype,"onEmojiTap_",null);
_.O([_.ps("mousedown"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],lH.prototype,"onMouseDown_",null);_.O([_.ps("focus"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],lH.prototype,"onFocus_",null);_.O([_.ps("blur"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],lH.prototype,"onBlur_",null);
_.O([_.ps("keydown"),_.R("design:type",Function),_.R("design:paramtypes",[Event]),_.R("design:returntype")],lH.prototype,"onKeyDown_",null);lH=_.O([_.uM({is:"yt-emoji-picker-upsell-category-renderer",disableElementRegistration:!0})],lH);
_.v(lH,"yt-emoji-picker-upsell-category-renderer",function(){if(Tl8===void 0){var J=document.createElement("template");_.z(J,'\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>');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;nu_===void 0&&(nu_=document.createElement("template"));var b=nu_;m.call(c,b.content.cloneNode(!0),J.content.firstChild);Tl8=J}J=Tl8;return J},{mode:2});var wNZ;var r4Z;var y7=function(){var J=_.h.apply(this,arguments)||this;J.scrollAction="lock";J.verticalAlign="top";return J};
_.D(y7,_.h);_.V=y7.prototype;_.V.onClick=function(J){J=_.Ac(J);J instanceof HTMLImageElement&&_.cA(this.hostElement,"yt-emoji-select",_.fo(this.emojiManager,J.id))};
_.V.openSelector=function(){this.ironOverlayBehavior.open()};
_.V.onDomChange=function(){VaC(this.ytEmojiSelectorBehavior)};
_.V.computeIsFamilySelector=function(J){var c;return(J==null?void 0:(c=J.emoji)==null?void 0:c.emojiId)==="\ud83d\udc6a"};
_.V.onKeyboardEnter=function(){if(this.emojiVariants&&this.ytEmojiSelectorBehavior.focusedIndex<this.emojiVariants.length){var J=this.emojiVariants[this.ytEmojiSelectorBehavior.focusedIndex];J&&J.emojiId&&(_.cA(this.hostElement,"yt-emoji-select",_.fo(this.emojiManager,J.emojiId)),this.ytEmojiSelectorBehavior.changeFocus(0))}};
_.eE.Object.defineProperties(y7.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var J=this,c,m,b;return this.emojiManager&&((c=this.data)==null?0:(m=c.emoji)==null?0:(b=m.variantIds)==null?0:b.length)?this.data.emoji.variantIds.map(function(x){return!!x&&_.fo(J.emojiManager,x)}).filter(function(x){return!!x}):[]}}});
y7.prototype.onClick=y7.prototype.onClick;_.O([_.f(_.dI),_.R("design:type",Object)],y7.prototype,"ironOverlayBehavior",void 0);_.O([_.f(PTC),_.R("design:type",Object)],y7.prototype,"ytEmojiSelectorBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],y7.prototype,"data",void 0);_.O([_.U(),_.R("design:type",_.uH)],y7.prototype,"emojiManager",void 0);_.O([_.U(),_.R("design:type",Object)],y7.prototype,"scrollAction",void 0);_.O([_.U(),_.R("design:type",Object)],y7.prototype,"verticalAlign",void 0);
_.O([_.U({reflectToAttribute:!0,computed:"computeIsFamilySelector(data)"}),_.R("design:type",Boolean)],y7.prototype,"isFamilySelector",void 0);_.O([_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],y7.prototype,"emojiVariants",null);_.O([_.ps("click"),_.R("design:type",Function),_.R("design:paramtypes",[MouseEvent]),_.R("design:returntype")],y7.prototype,"onClick",null);y7=_.O([_.uM({is:"yt-emoji-variant-selector",disableElementRegistration:!0})],y7);
_.v(y7,"yt-emoji-variant-selector",function(){if(r4Z===void 0){var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);var c=J.content,m=c.insertBefore;wNZ===void 0&&(wNZ=document.createElement("template"));var b=wNZ;m.call(c,b.content.cloneNode(!0),J.content.firstChild);r4Z=J}J=r4Z;return J},{mode:2});var sG8=/:/g,L6_=["UCkszU2WH9gy1mb0dV-11UJg","UC4R8DWoMoI7CAwX8_LjQHig"],BL=function(){var J=_.h.apply(this,arguments)||this;J.emojiVariantSelector=null;J.emojiMultiPersonSelector=null;J.identity=_.GD;J.lastAnimationTime_=0;J.animationStart_=null;J.animationEnd_=null;return J};
_.D(BL,_.h);_.V=BL.prototype;
_.V.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}}};
_.V.created=function(){this.boundOnIronOverlayClosed=this.onIronOverlayClosed.bind(this);this.emojiManager||(this.emojiManager=_.Xh)};
_.V.attached=function(){_.JK&&(this.hostElement.style.height=this.hostElement.clientHeight+150+"px");this.shouldUseStickyPreferences&&Mm2(this.emojiManager)};
_.V.dataChanged=function(){var J;if((J=this.data)==null?0:J.categories){J=this.emojiManager;var c=this.getCustomEmojiIds();J.pickerCustomEmojiIds=[].concat(_.L6(cCj),_.L6(c))}};
_.V.getCustomEmojiIds=function(){var J,c=(J=this.data.categories)==null?void 0:J.find(function(P){var p;return((p=P.emojiPickerCategoryRenderer)==null?void 0:p.categoryId)&&L6_.includes(P.emojiPickerCategoryRenderer.categoryId)}),m;
J=(m=this.data.categories)==null?void 0:m.find(function(P){return P.emojiPickerUpsellCategoryRenderer});
var b,x;return[c==null?void 0:(b=c.emojiPickerCategoryRenderer)==null?void 0:b.emojiIds,J==null?void 0:(x=J.emojiPickerUpsellCategoryRenderer)==null?void 0:x.emojiIds].flat().filter(function(P){return!!P})};
_.V.updateEmojiCategories=function(){this.updateCategoriesAndPlaceholderInternal(this.data,!0)};
_.V.updateCategoriesAndPlaceholder_=function(){this.updateCategoriesAndPlaceholderInternal(this.data,this.selected)};
_.V.updateCategoriesAndPlaceholderInternal=function(J,c){var m=this;J&&c&&(this.categories=J.categories||[],this.categoryButtons=J.categoryButtons||[],this.resetPlaceholder(),this.search="",_.S5(function(){m.updateButtons_()}))};
_.V.computeId_=function(J){return J.id||""};
_.V.computeShouldUseStickyPreferences=function(){return this.data&&this.data.categories?this.data.categories.some(function(J){return J.emojiPickerCategoryRenderer&&J.emojiPickerCategoryRenderer.emojiData}):!1};
_.V.onScroll_=function(){this.animationEnd_==null&&window.requestAnimationFrame(this.updateButtons_.bind(this))};
_.V.onShowEmojiVariantSelector=function(J){var c=J.detail.emojiData;c.variantIds&&c.variantIds.length&&(c.multiSelectorThumbnailRow&&c.multiSelectorThumbnailRow.length?this.set("emojiMultiPersonSelector",{ytEmojiMultiPersonSelector:{emoji:c,target:J.detail.target}}):this.set("emojiVariantSelector",{ytEmojiVariantSelector:{emoji:c,target:J.detail.target}}),this.variantSelectorOpened=!0,this.hostElement.addEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.V.onIronOverlayClosed=function(J){var c=pb_(this.emojiManager,this.get((this.emojiVariantSelector?"emojiVariantSelector.ytEmojiVariantSelector.emoji":"emojiMultiPersonSelector.ytEmojiMultiPersonSelector.emoji")+".emojiId")||"");c&&J.composedPath&&(J.composedPath().includes(_.Bj(this.hostElement).querySelector("#emoji-variant-selector"))||J.composedPath().includes(_.Bj(this.hostElement).querySelector("#emoji-multi-person-selector")))&&(_.m9(this.hostElement,"yt-close-emoji-variant-selector",[c.emojiId]),
this.emojiMultiPersonSelector=this.emojiVariantSelector=null,this.variantSelectorOpened=!1,this.hostElement.removeEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.V.onEmojiVariantSelectorMouseup=function(J){var c=J.target.firstChild;this.variantSelectorOpened&&c&&_.S5(function(){c.noCancelOnOutsideClick=!1},100)};
_.V.onEmojiVariantSelectorMousedown=function(J){J=J.target.firstChild;this.variantSelectorOpened&&J&&(J.noCancelOnOutsideClick=!1)};
_.V.onSelectCategory_=function(J){var c=this.search!="";this.search="";for(var m=_.Bj(this.hostElement).querySelector("#categories").children,b=0;b<m.length;b++){var x=m[b];if(x.id==J.detail.categoryId){c?(_.Bj(this.hostElement).querySelector("#categories").scrollTop=x.offsetTop,this.updateButtons_()):(this.animationStart_=_.Bj(this.hostElement).querySelector("#categories").scrollTop,this.animationEnd_=x.offsetTop,this.lastAnimationTime_=0,this.animateScroll_(this.lastAnimationTime_));break}}};
_.V.onEmojiHover_=function(J){this.placeholder=J.detail.shortcuts?J.detail.shortcuts[0]:""};
_.V.onSearchBoxFocused_=function(){this.resetPlaceholder()};
_.V.onSearchBoxBlur_=function(){this.resetPlaceholder()};
_.V.onMouseoutCategories=function(){this.variantSelectorOpened||this.resetPlaceholder()};
_.V.resetPlaceholder=function(){this.skinToneOpened||(this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.searchPlaceholderText))};
_.V.computeSearchCategory_=function(J){J=J.replace(sG8,"").toLowerCase().trim();if(!this.searching)return this.searchCategory;this.updateButtons_();J=J.split(" ");for(var c=[],m=this.emojiManager.emojis,b=0;b<m.length;b++){var x=m[b];if(x.searchTerms)for(var P=0;P<x.searchTerms.length;P++){for(var p=x.searchTerms[P].toLocaleLowerCase(),t=!1,I=0;I<J.length;I++)if(p.indexOf(J[I])!=-1){t=!0;break}if(t&&(!x.isCustomEmoji||!x.emojiId||this.emojiManager.pickerCustomEmojiIds.includes(x.emojiId))){c.push(x.emojiId);
break}}}return{categoryId:-1,emojiIds:c}};
_.V.computeSearchEmptyMessage_=function(J,c){return J&&c&&c.emojiIds&&c.emojiIds.length==0?this.data.searchNoResultsText||null:null};
_.V.computeSearching_=function(J){return this.emojiManager&&J.replace(sG8,"").length>1};
_.V.computeSkinToneHidden=function(){var J;return this.shouldUseStickyPreferences||this.skinToneOpened||this.categories.length===1||!((J=this.data)==null||!J.hideSkinTonePicker)};
_.V.computeDisableScroll=function(){return!!this.emojiVariantSelector};
_.V.openSkinToneSelector=function(){this.skinToneOpened=!0};
_.V.showSkinTonePlaceholder=function(){this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.pickSkinToneText)};
_.V.clearSearch=function(){this.resetPlaceholder();this.search=""};
_.V.selectSkinTone_=function(J){J=Number(J.target.getAttribute("tone"));this.set("emojiManager.skinTone",J);_.m9(this.hostElement,"yt-live-chat-emoji-skin-tone-changed",[J]);this.skinToneOpened=!1;this.resetPlaceholder()};
_.V.skinToneChanged_=function(){_.Bj(this.hostElement).querySelector("#skin-tone").setAttribute("tone",String(this.skinTone));for(var J=_.Bj(this.hostElement).querySelector("#dropdown-content").children,c=0;c<J.length;c++)c===this.skinTone?J[c].setAttribute("selected",""):J[c].removeAttribute("selected")};
_.V.animateScroll_=function(J){this.lastAnimationTime_||(this.lastAnimationTime_=J);J-=this.lastAnimationTime_;J<200?(_.Bj(this.hostElement).querySelector("#categories").scrollTop=this.animationStart_+(this.animationEnd_-this.animationStart_)*J/200,window.requestAnimationFrame(this.animateScroll_.bind(this))):(this.animationEnd_!=null&&(_.Bj(this.hostElement).querySelector("#categories").scrollTop=this.animationEnd_),this.animationEnd_=this.animationStart_=null,this.lastAnimationTime_=0);this.updateButtons_()};
_.V.searchChanged_=function(){this.updateButtons_()};
_.V.updateButtons_=function(){var J=null;if(!this.search)for(var c=_.Bj(this.hostElement).querySelector("#categories").scrollTop,m=_.Bj(this.hostElement).querySelector("#categories").children,b=0;b<m.length;b++){var x=m[b];x.offsetTop<=c&&(J=x.id)}c=_.Bj(this.hostElement).querySelector("#category-buttons").children;for(m=0;m<c.length;m++)b=c[m],b.active=b.id===J};
BL.prototype.searchChanged_=BL.prototype.searchChanged_;BL.prototype.skinToneChanged_=BL.prototype.skinToneChanged_;BL.prototype.onEmojiHover_=BL.prototype.onEmojiHover_;BL.prototype.onSelectCategory_=BL.prototype.onSelectCategory_;BL.prototype.onShowEmojiVariantSelector=BL.prototype.onShowEmojiVariantSelector;BL.prototype.updateCategoriesAndPlaceholder_=BL.prototype.updateCategoriesAndPlaceholder_;BL.prototype.dataChanged=BL.prototype.dataChanged;
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],BL.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],BL.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],BL.prototype,"data",void 0);_.O([_.U({value:function(){return[]}}),
_.R("design:type",Array)],BL.prototype,"categories",void 0);_.O([_.U({value:function(){return[]}}),
_.R("design:type",Array)],BL.prototype,"categoryButtons",void 0);_.O([_.U({computed:"computeDisableScroll(emojiVariantSelector)",reflectToAttribute:!0}),_.R("design:type",Boolean)],BL.prototype,"disableScroll",void 0);_.O([_.U({computed:"computeId_(data)",reflectToAttribute:!0}),_.R("design:type",String)],BL.prototype,"id",void 0);_.O([_.U({value:!1}),_.R("design:type",Boolean)],BL.prototype,"selected",void 0);
_.O([_.U({value:!1}),_.R("design:type",Boolean)],BL.prototype,"disableIncrementalLoading",void 0);_.O([_.U(),_.R("design:type",String)],BL.prototype,"placeholder",void 0);_.O([_.U({value:""}),_.R("design:type",String)],BL.prototype,"search",void 0);_.O([_.U({computed:"computeSearching_(search)",reflectToAttribute:!0}),_.R("design:type",Boolean)],BL.prototype,"searching",void 0);_.O([_.U({computed:"computeSearchCategory_(search)"}),_.R("design:type",Object)],BL.prototype,"searchCategory",void 0);
_.O([_.U({computed:"computeSearchEmptyMessage_(searching, searchCategory)"}),_.R("design:type",Object)],BL.prototype,"searchEmptyMessage",void 0);_.O([_.U({computed:"identity(emojiManager.skinTone)"}),_.R("design:type",Number)],BL.prototype,"skinTone",void 0);_.O([_.U({value:!1}),_.R("design:type",Boolean)],BL.prototype,"skinToneOpened",void 0);_.O([_.U({value:!1,reflectToAttribute:!0}),_.R("design:type",Boolean)],BL.prototype,"variantSelectorOpened",void 0);
_.O([_.U({computed:"computeSkinToneHidden(skinToneOpened, categories, shouldUseStickyPreferences, data.hideSkinTonePicker)"}),_.R("design:type",Boolean)],BL.prototype,"skinToneHidden",void 0);_.O([_.U(),_.R("design:type",_.uH)],BL.prototype,"emojiManager",void 0);_.O([_.U(),_.R("design:type",Object)],BL.prototype,"emojiVariantSelector",void 0);_.O([_.U(),_.R("design:type",Object)],BL.prototype,"emojiMultiPersonSelector",void 0);
_.O([_.U({value:!1,computed:"computeShouldUseStickyPreferences(data)"}),_.R("design:type",Boolean)],BL.prototype,"shouldUseStickyPreferences",void 0);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],BL.prototype,"dataChanged",null);_.O([_.NE("data","selected"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],BL.prototype,"updateCategoriesAndPlaceholder_",null);
_.O([_.ps("yt-show-emoji-variant-selector"),_.R("design:type",Function),_.R("design:paramtypes",[Event]),_.R("design:returntype")],BL.prototype,"onShowEmojiVariantSelector",null);_.O([_.ps("yt-emoji-picker-select-category"),_.R("design:type",Function),_.R("design:paramtypes",[Event]),_.R("design:returntype")],BL.prototype,"onSelectCategory_",null);_.O([_.ps("yt-emoji-hover"),_.R("design:type",Function),_.R("design:paramtypes",[Event]),_.R("design:returntype")],BL.prototype,"onEmojiHover_",null);
_.O([_.NE("skinTone"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],BL.prototype,"skinToneChanged_",null);_.O([_.NE("search"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],BL.prototype,"searchChanged_",null);BL=_.O([_.uM({is:"yt-emoji-picker-renderer",disableElementRegistration:!0})],BL);
_.v(BL,"yt-emoji-picker-renderer",function(){if(iMC===void 0){var J=document.createElement("template");_.z(J,'\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>');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;HMQ===void 0&&(HMQ=document.createElement("template"));var b=HMQ;m.call(c,b.content.cloneNode(!0),J.content.firstChild);iMC=J}J=iMC;return J},{mode:2});var gd=function(){var J=_.h.apply(this,arguments)||this;J.emojiManager=_.Xh;J.isDarkTheme=document.documentElement.hasAttribute("dark");J.selectedIndex=1;J.actionMap={"yt-lwe-emoji-customization-visible":"handleEmojiCustomizationVisible"};return J};
_.D(gd,_.h);_.V=gd.prototype;_.V.handleEmojiCustomizationVisible=function(J){this.emojiPickerRenderer.selected=J;this.selectedIndex=1;J?(this.originalEmojiSet=this.emojiCustomizationSet,this.updateSaveButtonState(!1)):this.originalEmojiSet=void 0};
_.V.emojiCustomizationSetChanged=function(){var J;(J=this.data)!=null&&J.saveButtonEntityKey&&(this.originalEmojiSet||(this.originalEmojiSet=this.emojiCustomizationSet),this.originalEmojiSet&&this.emojiCustomizationSet&&!_.Mu(this.originalEmojiSet.emojiId,this.emojiCustomizationSet.emojiId)?this.updateSaveButtonState(!0):this.updateSaveButtonState(!1))};
_.V.updateSaveButtonState=function(J){var c;(c=this.data)!=null&&c.saveButtonEntityKey&&this.ytLiveChatReduxBehavior.dispatch(_.It("booleanEntity",this.data.saveButtonEntityKey,{key:this.data.saveButtonEntityKey,value:J}))};
_.V.emojiUrl=function(J){J=_.fo(this.emojiManager,J);if(!J)return"";var c;J=(c=J.image)==null?void 0:c.thumbnails;return _.yn(J,24)||""};
_.V.emojiAlt=function(J){var c=_.fo(this.emojiManager,J);if(!c)return J;var m,b,x,P=(c==null?void 0:(m=c.image)==null?void 0:(b=m.accessibility)==null?void 0:(x=b.accessibilityData)==null?void 0:x.label)||"";return P?P:c.isCustomEmoji?c.shortcuts[0]:c.emojiId||J};
_.V.emojiAriaLabel=function(J){var c,m;return((c=_.fo(this.emojiManager,J))==null?void 0:(m=c.shortcuts)==null?void 0:m[0])||J};
_.V.onEmojiClick=function(J){J.model.index!==0&&(this.selectedIndex=J.model.index)};
_.V.onEmojiSelect=function(J){J=J.detail;var c,m;((c=this.data)==null?0:c.emojiCustomizationSetEntityKey)&&((m=this.emojiCustomizationSet)==null?0:m.emojiId)&&J.emojiId&&this.canEditEmoji(this.emojiCustomizationSet.emojiId,J.emojiId,this.selectedIndex)&&this.ytLiveChatReduxBehavior.dispatch(_.It("emojiCustomizationSetEntity",this.data.emojiCustomizationSetEntityKey,{key:this.data.emojiCustomizationSetEntityKey,emojiId:this.getUpdatedEmojiIdList(this.emojiCustomizationSet.emojiId,J.emojiId,this.selectedIndex)}))};
_.V.canEditEmoji=function(J,c,m){J=J.indexOf(c);return J===m||J===0||m===0?!1:!0};
_.V.getUpdatedEmojiIdList=function(J,c,m){var b=J.indexOf(c);J=[].concat(_.L6(J));b>=0&&(J[b]=J[m]);J[m]=c;return J};
_.eE.Object.defineProperties(gd,{template:{configurable:!0,enumerable:!0,get:function(){if(AC6===void 0){var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);var c=J.content,m=c.insertBefore;Oxz===void 0&&(Oxz=document.createElement("template"));var b=Oxz;m.call(c,b.content.cloneNode(!0),J.content.firstChild);AC6=J}J=AC6;return J}}});
gd.prototype.onEmojiSelect=gd.prototype.onEmojiSelect;_.O([_.f(_.XL),_.R("design:type",Object)],gd.prototype,"ytLiveChatReduxBehavior",void 0);_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],gd.prototype,"ytActionHandlerBehavior",void 0);_.O([_.Iu("yt-emoji-picker-renderer"),_.R("design:type",Object)],gd.prototype,"emojiPickerRenderer",void 0);
_.O([_.U({selectorArgs:["data.emojiCustomizationSetEntityKey"],selector:function(J,c){return _.P2(J.entities,"emojiCustomizationSetEntity",c)},
observer:"emojiCustomizationSetChanged"}),_.R("design:type",Object)],gd.prototype,"emojiCustomizationSet",void 0);_.O([_.U(),_.R("design:type",Object)],gd.prototype,"originalEmojiSet",void 0);_.O([_.U(),_.R("design:type",_.uH)],gd.prototype,"emojiManager",void 0);_.O([_.U(),_.R("design:type",Object)],gd.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],gd.prototype,"isDarkTheme",void 0);_.O([_.U(),_.R("design:type",Object)],gd.prototype,"selectedIndex",void 0);
_.O([_.ps("yt-emoji-select"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],gd.prototype,"onEmojiSelect",null);gd=_.O([_.uM({is:"yt-emoji-customization-panel-view-model",noInjection:!0})],gd);var D48;var W6Q;var zDB;var u0Q;var JH=function(){var J=_.h.apply(this,arguments)||this;J.authorBadges=[];return J};
_.D(JH,_.h);_.V=JH.prototype;_.V.created=function(){this.ytLiveChatItemBehavior.supportsInlineActionButtons=!0};
_.V.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]]"}}}}}};
_.V.dataChanged=function(){var J=Pp3(this.data.authorBadges||[]);this.hostElement.setAttribute("author-type",J)};
_.V.updateMessage=function(){var J=this.data.message,c=_.Bj(_.Bj(this.hostElement).querySelector("#message"));c.textContent="";J&&c.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(J))};
_.V.shouldSupportWholeItemClick=function(){return!0};
_.V.onShowOriginalClick=function(J){J.preventDefault();this.showOriginal=!0};
_.V.computeShowBar=function(J,c,m){return J&&c||m};
_.V.computeAuthorBadges=function(J){return J.authorBadges||[]};
_.V.computeAuthorIsOwner=function(J){return!!MZ3(J.authorBadges,"owner")};
_.V.computeAuthorNameColor=function(J){var c;if(_.w("live_chat_author_name_color_usernames")&&(J==null?0:(c=J.authorName)==null?0:c.simpleText))return _.Cpu(_.ayr(J.authorName.simpleText));if(_.w("live_chat_seed_color_usernames")&&(J==null?0:J.authorSeedColorArgb))return _.Cpu(_.xV(J.authorSeedColorArgb));if(_.w("live_chat_colored_usernames"))return"#cc0000";var m;return _.w("live_chat_simple_color_usernames")&&(J==null?0:(m=J.authorName)==null?0:m.simpleText)&&(J==null?0:J.authorUsernameColorLight)&&
(J==null?0:J.authorUsernameColorDark)&&!this.inBanner?document.documentElement.hasAttribute("dark")?_.xV(J.authorUsernameColorDark):_.xV(J.authorUsernameColorLight):""};
JH.prototype.updateMessage=JH.prototype.updateMessage;JH.prototype.dataChanged=JH.prototype.dataChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],JH.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.Zo.YtLiveChatItemBehavior),_.R("design:type",_.q7)],JH.prototype,"ytLiveChatItemBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],JH.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],JH.prototype,"data",void 0);
_.O([_.U({value:!1,reflectToAttribute:!0}),_.R("design:type",Boolean)],JH.prototype,"showOriginal",void 0);_.O([_.U({value:!1,computed:"truthy(data.isDimmed)",reflectToAttribute:!0}),_.R("design:type",Boolean)],JH.prototype,"isDimmed",void 0);_.O([_.U({computed:"computeShowBar(isDeleted, hasOriginalContent, isDimmed)",reflectToAttribute:!0}),_.R("design:type",Boolean)],JH.prototype,"showBar",void 0);
_.O([_.U({computed:"computeAuthorBadges(data)"}),_.R("design:type",Array)],JH.prototype,"authorBadges",void 0);_.O([_.U({computed:"computeAuthorIsOwner(data)",reflectToAttribute:!0}),_.R("design:type",Boolean)],JH.prototype,"authorIsOwner",void 0);_.O([_.U({value:!1,reflectToAttribute:!0}),_.R("design:type",Boolean)],JH.prototype,"inCollapsedBanner",void 0);_.O([_.U({value:!1,reflectToAttribute:!0}),_.R("design:type",Boolean)],JH.prototype,"inBanner",void 0);
_.O([_.U({value:_.w("live_chat_hide_avatars"),reflectToAttribute:!0}),_.R("design:type",Boolean)],JH.prototype,"avatarHidden",void 0);_.O([_.U({computed:"computeAuthorNameColor(data)"}),_.R("design:type",String)],JH.prototype,"authorNameColor",void 0);_.O([_.U(),_.R("design:type",_.hs)],JH.prototype,"participantsManager",void 0);_.O([_.U({value:{size:"XS",type:"filled",style:"overlay",iconPosition:"icon-only"}}),_.R("design:type",Object)],JH.prototype,"filledButtonOverrides",void 0);
_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],JH.prototype,"dataChanged",null);_.O([_.NE("data.message"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],JH.prototype,"updateMessage",null);JH=_.O([_.uM({disableElementRegistration:!0,is:"yt-live-chat-text-message-renderer",noInjection:!0})],JH);
_.v(JH,"yt-live-chat-text-message-renderer",function(){if(u0Q===void 0){var J=document.createElement("template");_.z(J,'\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>');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);var c=J.content,m=c.insertBefore;zDB===void 0&&(zDB=document.createElement("template"));var b=zDB;m.call(c,b.content.cloneNode(!0),J.content.firstChild);u0Q=J}J=u0Q;return J},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var cX=function(){var J=_.h.apply(this,arguments)||this;J.tonalButtonOverrides={type:"tonal",style:"overlay"};return J};
_.D(cX,_.h);
cX.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]]"}}}}}};
cX.prototype.shouldSupportInlineActionButtons=function(){return!0};
cX.prototype.shouldSupportWholeItemClick=function(){return!0};
_.eE.Object.defineProperties(cX.prototype,{hasInfoDialogButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.infoDialogButton}}});
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],cX.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.Zo.YtLiveChatItemBehavior),_.R("design:type",_.q7)],cX.prototype,"ytLiveChatItemBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],cX.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],cX.prototype,"data",void 0);_.O([_.U(),_.R("design:type",_.hs)],cX.prototype,"participantsManager",void 0);
_.O([_.U(),_.R("design:type",Object)],cX.prototype,"tonalButtonOverrides",void 0);_.O([_.U({reflectToAttribute:!0}),_.q("data.infoDialogButton"),_.R("design:type",Object),_.R("design:paramtypes",[])],cX.prototype,"hasInfoDialogButton",null);cX=_.O([_.uM({disableElementRegistration:!0,is:"yt-live-chat-auto-mod-message-renderer",noInjection:!0})],cX);
_.v(cX,"yt-live-chat-auto-mod-message-renderer",function(){if(W6Q===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;D48===void 0&&(D48=document.createElement("template"));var b=D48;m.call(c,b.content.cloneNode(!0),J.content.firstChild);W6Q=J}J=W6Q;return J},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var fRZ;var Yhu;var XN8;var mK=function(){return _.h.apply(this,arguments)||this};
_.D(mK,_.h);_.O([_.U(),_.R("design:type",Object)],mK.prototype,"data",void 0);mK=_.O([_.E({is:"ytd-factoid-renderer",disableElementRegistration:!0})],mK);
_.v(mK,"ytd-factoid-renderer",function(){if(XN8!==void 0)return XN8;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return XN8=J},{mode:1});var bu=function(){return _.h.apply(this,arguments)||this};
_.D(bu,_.h);bu.prototype.configureRendererStamper=function(){return{"data.factoids":{id:"factoids",mapping:{factoidRenderer:"ytd-factoid-renderer"}}}};
_.O([_.U(),_.R("design:type",Object)],bu.prototype,"data",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],bu.prototype,"ytRendererstamperBehavior",void 0);bu=_.O([_.uM({disableElementRegistration:!0,is:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0})],bu);
_.v(bu,"yt-live-chat-channel-activity-reputation-renderer",function(){if(Yhu===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;fRZ===void 0&&(fRZ=document.createElement("template"));var b=fRZ;m.call(c,b.content.cloneNode(!0),J.content.firstChild);Yhu=J}J=Yhu;return J},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var ZMQ;var qhj;var xN=function(){return _.h.apply(this,arguments)||this};
_.D(xN,_.h);xN.prototype.ready=function(){var J=document.querySelector("yt-live-chat-app");J&&J.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],xN.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Boolean)],xN.prototype,"menuFocused",void 0);_.O([_.U(),_.R("design:type",Object)],xN.prototype,"data",void 0);_.O([_.f(_.Zo.YtLiveChatItemBehavior),_.R("design:type",_.q7)],xN.prototype,"ytLiveChatItemBehavior",void 0);xN=_.O([_.uM({disableElementRegistration:!0,is:"yt-live-chat-donation-announcement-renderer",noInjection:!0})],xN);
_.v(xN,"yt-live-chat-donation-announcement-renderer",function(){if(qhj===void 0){var J=document.createElement("template");_.z(J,'\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>');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);var c=J.content,m=c.insertBefore;ZMQ===void 0&&(ZMQ=document.createElement("template"));var b=ZMQ;m.call(c,b.content.cloneNode(!0),J.content.firstChild);qhj=J}J=qhj;return J},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var U4C;var Sh6,hD_=function(){if(Sh6!==void 0)return Sh6;var J=document.createElement("template");_.z(J,'\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>');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);var c=J.content,m=c.insertBefore;U4C===void 0&&(U4C=document.createElement("template"));var b=U4C;m.call(c,b.content.cloneNode(!0),J.content.firstChild);return Sh6=J};var VI=function(){return _.h.apply(this,arguments)||this};
_.D(VI,_.h);_.eE.Object.defineProperties(VI,{template:{configurable:!0,enumerable:!0,get:function(){return hD_()}}});
_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],VI.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],VI.prototype,"data",void 0);VI=_.O([_.uM({is:"yt-live-chat-empty-feed-view-model",disableElementRegistration:!0,noInjection:!0})],VI);_.v(VI,"yt-live-chat-empty-feed-view-model",function(){return hD_()},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var d4$;var $4u;var PX=function(){return _.h.apply(this,arguments)||this};
_.D(PX,_.h);PX.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"}}}}}};
_.eE.Object.defineProperties(PX.prototype,{channelName:{configurable:!0,enumerable:!0,get:function(){var J,c;return{runs:[{text:(J=this.data)==null?void 0:(c=J.channelName)==null?void 0:c.content}]}}},
channelBadges:{configurable:!0,enumerable:!0,get:function(){var J=[],c;if((c=this.data)==null||!c.channelBadges)return J;var m;c=_.M((m=this.data)==null?void 0:m.channelBadges);for(m=c.next();!m.done;m=c.next()){m=_.L(m.value,Od_);var b=void 0,x=void 0;if((b=m)==null?0:(x=b.badgeImage)==null?0:x.sources)b=void 0,x={liveChatAuthorBadgeRenderer:{tooltip:m.tooltip,accessibility:{accessibilityData:{label:(b=_.L(m.rendererContext,_.KO))==null?void 0:b.label}}}},m.badgeImage.sources[0].clientResource?x.liveChatAuthorBadgeRenderer.icon=
{iconType:m.badgeImage.sources[0].clientResource.imageName}:x.liveChatAuthorBadgeRenderer.customThumbnail={thumbnails:m.badgeImage.sources},J.push(x)}return J}}});
_.O([_.U(),_.R("design:type",Object)],PX.prototype,"data",void 0);_.O([_.q("data.channelName"),_.R("design:type",Object),_.R("design:paramtypes",[])],PX.prototype,"channelName",null);_.O([_.q("data.channelBadges"),_.R("design:type",Array),_.R("design:paramtypes",[])],PX.prototype,"channelBadges",null);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],PX.prototype,"ytRendererstamperBehavior",void 0);
PX=_.O([_.uM({disableElementRegistration:!0,is:"yt-live-chat-identity-view-model",noInjection:!0})],PX);
_.v(PX,"yt-live-chat-identity-view-model",function(){if($4u===void 0){var J=document.createElement("template");_.z(J,'\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>');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;d4$===void 0&&(d4$=document.createElement("template"));var b=d4$;m.call(c,b.content.cloneNode(!0),J.content.firstChild);$4u=J}J=$4u;return J},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var Gb8;var EuQ;var vu_;var OMQ;var MG=function(){var J=_.h.apply(this,arguments)||this;J.hidden=!1;J.supportsInlineActionButtons=!0;return J};
_.D(MG,_.h);MG.prototype.ready=function(){var J;((J=document.querySelector("yt-live-chat-app"))==null?0:J.hasAttribute("dashboard-money-feed"))&&this.hostElement.setAttribute("dashboard-money-feed","")};
MG.prototype.dataChanged=function(J){var c=(0,_.xr)(_.Bj(this.hostElement).querySelector("#detail-text"));c.textContent="";(J==null?0:J.detailText)&&c.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(J.detailText))};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],MG.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.Zo.YtLiveChatItemBehavior),_.R("design:type",_.q7)],MG.prototype,"ytLiveChatItemBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],MG.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U({observer:"dataChanged"}),_.R("design:type",Object)],MG.prototype,"data",void 0);
_.O([_.U({computed:"truthy(isDeleted)",reflectToAttribute:!0}),_.R("design:type",Object)],MG.prototype,"hidden",void 0);MG=_.O([_.E({disableElementRegistration:!0,is:"yt-live-chat-legacy-paid-message-renderer"})],MG);
_.v(MG,"yt-live-chat-legacy-paid-message-renderer",function(){if(OMQ===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;vu_===void 0&&(vu_=document.createElement("template"));var b=vu_;m.call(c,b.content.cloneNode(!0),J.content.firstChild);OMQ=J}J=OMQ;return J},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var A4C;var RDQ;var ouZ={},pY=function(){return _.Cs.apply(this,arguments)||this};
_.D(pY,_.Cs);pY.prototype.onLiveChatMembershipItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
pY.prototype.onLiveChatMembershipItemBehaviorClick=pY.prototype.onLiveChatMembershipItemBehaviorClick;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],pY.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],pY.prototype,"data",void 0);_.O([_.ps("click"),_.R("design:type",Function),_.R("design:paramtypes",[Event]),_.R("design:returntype")],pY.prototype,"onLiveChatMembershipItemBehaviorClick",null);pY=_.O([_.au()],pY);
ouZ.YtLiveChatMembershipItemBehavior=[pY.prototype,_.g.YtRendererBehavior];var NG=function(){var J=_.h.apply(this,arguments)||this;J.supportsInlineActionButtons=!0;J.hasPrimaryHeaderText=!1;J.showOnlyHeader=!1;J.authorBadges=[];J.modern=_.w("web_button_rework_with_live");J.buttonOverrides={style:"overlay",type:"filled"};return J};
_.D(NG,_.h);_.V=NG.prototype;_.V.shouldSupportInlineActionButtons=function(){return!0};
_.V.configureRendererStamper=function(){return{"data.footerButton":{id:"footer-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.V.ready=function(){var J=document.querySelector("yt-live-chat-app");J&&J.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.V.messageChanged=function(){var J=this.data.message,c=(0,_.xr)(_.Bj(this.hostElement).querySelector("#message"));c.textContent="";J&&c.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(J))};
_.V.computeHasPrimaryHeaderText=function(J){return!(!J||!J.headerPrimaryText)};
_.V.computeShowOnlyHeader=function(J,c){return this.isMessageEmpty(J,c)};
_.V.computeAuthorBadges=function(J){return J.authorBadges||[]};
_.V.isMessageEmpty=function(J,c){return!J||J.empty?!0:!J.message&&!J.inputField&&!c};
_.V.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&(this.set("data.authorName",null),this.set("data.authorPhoto",null),this.set("data.message",null))};
_.V.getInputElement=function(){return _.Bj(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer")};
_.V.inputFocus=function(){var J=this.getInputElement();J&&J.focus()};
_.V.inputInsertEmoji=function(J){var c=this.getInputElement();c&&c.insertEmoji(J)};
_.V.inputMessage=function(){var J=this.getInputElement();return J&&this.data.inputField?(J.completeEmojis(),_.ZL(J.liveChatRichMessageInput)):null};
_.V.onFooterButtonClick=function(){this.data.footerButton&&_.cA(this.hostElement,"yt-live-chat-clear-pinned-message")};
_.V.shouldSupportWholeItemClick=function(){return!0};
NG.prototype.isDeletedChanged=NG.prototype.isDeletedChanged;NG.prototype.messageChanged=NG.prototype.messageChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],NG.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.Zo.YtLiveChatItemBehavior),_.R("design:type",_.q7)],NG.prototype,"ytLiveChatItemBehavior",void 0);_.O([_.f(ouZ.YtLiveChatMembershipItemBehavior),_.R("design:type",Object)],NG.prototype,"ytLiveChatMembershipItemBehavior",void 0);
_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],NG.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],NG.prototype,"data",void 0);_.O([_.U({computed:"computeHasPrimaryHeaderText(data)",reflectToAttribute:!0}),_.R("design:type",Object)],NG.prototype,"hasPrimaryHeaderText",void 0);_.O([_.U({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.R("design:type",Object)],NG.prototype,"showOnlyHeader",void 0);
_.O([_.U({computed:"computeAuthorBadges(data)"}),_.R("design:type",Array)],NG.prototype,"authorBadges",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],NG.prototype,"modern",void 0);_.O([_.NE("data.message"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],NG.prototype,"messageChanged",null);_.O([_.NE("isDeleted"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],NG.prototype,"isDeletedChanged",null);
NG=_.O([_.uM({disableElementRegistration:!0,is:"yt-live-chat-membership-item-renderer",noInjection:!0})],NG);
_.v(NG,"yt-live-chat-membership-item-renderer",function(){if(RDQ===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;A4C===void 0&&(A4C=document.createElement("template"));var b=A4C;m.call(c,b.content.cloneNode(!0),J.content.firstChild);RDQ=J}J=RDQ;return J},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var QGB;var eDz;var tH=function(){return _.h.apply(this,arguments)||this};
_.D(tH,_.h);tH.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],tH.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],tH.prototype,"data",void 0);tH=_.O([_.uM({disableElementRegistration:!0,is:"yt-live-chat-mode-change-message-renderer",noInjection:!0})],tH);
_.v(tH,"yt-live-chat-mode-change-message-renderer",function(){if(eDz===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;QGB===void 0&&(QGB=document.createElement("template"));var b=QGB;m.call(c,b.content.cloneNode(!0),J.content.firstChild);eDz=J}J=eDz;return J},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var jGB;var F6$;var IM=function(){return _.h.apply(this,arguments)||this};
_.D(IM,_.h);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],IM.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.Zo.YtLiveChatItemBehavior),_.R("design:type",_.q7)],IM.prototype,"ytLiveChatItemBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],IM.prototype,"data",void 0);IM=_.O([_.uM({disableElementRegistration:!0,is:"yt-live-chat-moderation-message-renderer"})],IM);
_.v(IM,"yt-live-chat-moderation-message-renderer",function(){if(F6$===void 0){var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);var c=J.content,m=c.insertBefore;jGB===void 0&&(jGB=document.createElement("template"));var b=jGB;m.call(c,b.content.cloneNode(!0),J.content.firstChild);F6$=J}J=F6$;return J},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var lR2;var y4Z;var KY=function(){var J=_.h.apply(this,arguments)||this;J.modern=_.w("web_button_rework");return J};
_.D(KY,_.h);KY.prototype.onClick=function(){var J;if((J=this.data)!=null&&J.onClickCommand){var c;_.p7.instance.resolveCommand((c=this.data)==null?void 0:c.onClickCommand)}};
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],KY.prototype,"modern",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],KY.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.XL),_.R("design:type",Object)],KY.prototype,"ytLiveChatReduxBehavior",void 0);_.O([_.f(_.Zo.YtLiveChatItemBehavior),_.R("design:type",_.q7)],KY.prototype,"ytLiveChatItemBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],KY.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.U(),_.R("design:type",Object)],KY.prototype,"data",void 0);KY=_.O([_.uM({disableElementRegistration:!0,is:"yt-live-chat-offer-click-count-message-renderer",noInjection:!0})],KY);
_.v(KY,"yt-live-chat-offer-click-count-message-renderer",function(){if(y4Z===void 0){var J=document.createElement("template");_.z(J,'\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>');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;lR2===void 0&&(lR2=document.createElement("template"));var b=lR2;m.call(c,b.content.cloneNode(!0),J.content.firstChild);y4Z=J}J=y4Z;return J},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var Bl_;var CY=function(){return _.h.apply(this,arguments)||this};
_.D(CY,_.h);_.O([_.U(),_.R("design:type",Object)],CY.prototype,"data",void 0);CY=_.O([_.uM({disableElementRegistration:!0,is:"yt-live-chat-placeholder-item-renderer",noInjection:!0})],CY);
_.v(CY,"yt-live-chat-placeholder-item-renderer",function(){if(Bl_===void 0){var J=document.createElement("template");_.z(J,"\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");J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);Bl_=J}J=Bl_;return J},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var gu2;var JYz;var cYu=new G2(7),aM=function(){var J=_.h.apply(this,arguments)||this;J.data={};return J};
_.D(aM,_.h);aM.prototype.dataChanged=function(){var J;((J=this.data)==null?0:J.class)&&_.mq(this.hostElement,this.data.class,!0);var c;((c=this.oldData)==null?0:c.class)&&_.mq(this.hostElement,this.oldData.class,!1);this.oldData=this.data};
aM.prototype.computeTimestampString=function(J){return cYu.format(new Date(J/1E3))};
aM.prototype.dataChanged=aM.prototype.dataChanged;_.O([_.U(),_.R("design:type",Object)],aM.prototype,"data",void 0);_.O([_.U({computed:"computeTimestampString(data.timestampUsec)"}),_.R("design:type",String)],aM.prototype,"timestampString",void 0);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],aM.prototype,"dataChanged",null);aM=_.O([_.uM({disableElementRegistration:!0,is:"yt-live-chat-server-error-message",noInjection:!0})],aM);
_.v(aM,"yt-live-chat-server-error-message",function(){if(JYz===void 0){var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);var c=J.content,m=c.insertBefore;gu2===void 0&&(gu2=document.createElement("template"));var b=gu2;m.call(c,b.content.cloneNode(!0),J.content.firstChild);JYz=J}J=JYz;return J},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var mg$;var bA2;var kN=function(){var J=_.h.apply(this,arguments)||this;J.defaultToFilledIcon=!1;return J};
_.D(kN,_.h);kN.prototype.computeHasPrimaryColorIcon=function(J){return J==="SPARK"||J==="SPONSORSHIP_STAR"};
kN.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{style:"max-width: 100%"}}}}}};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],kN.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.Zo.YtLiveChatItemBehavior),_.R("design:type",_.q7)],kN.prototype,"ytLiveChatItemBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],kN.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],kN.prototype,"defaultToFilledIcon",void 0);_.O([_.U(),_.R("design:type",Object)],kN.prototype,"data",void 0);
_.O([_.U({value:!1,computed:"computeHasPrimaryColorIcon(data.icon.iconType)",reflectToAttribute:!0}),_.R("design:type",Boolean)],kN.prototype,"hasPrimaryColorIcon",void 0);kN=_.O([_.uM({disableElementRegistration:!0,is:"yt-live-chat-viewer-engagement-message-renderer",noInjection:!0})],kN);
_.v(kN,"yt-live-chat-viewer-engagement-message-renderer",function(){if(bA2===void 0){var J=document.createElement("template");_.z(J,'\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>');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;mg$===void 0&&(mg$=document.createElement("template"));var b=mg$;m.call(c,b.content.cloneNode(!0),J.content.firstChild);bA2=J}J=bA2;return J},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var xgB;var HX=function(){var J=_.h.apply(this,arguments)||this;J.modernUpdate=!1;J.buttonStyle="overlay";J.buttonType="filled";return J};
_.D(HX,_.h);HX.prototype.computeTooltipPosition=function(){return this.modernUpdate?"left":"bottom"};
HX.prototype.computeButtonOverride=function(){if(this.modernUpdate)return{iconPosition:"icon-only",style:this.buttonStyle,type:this.buttonType,size:"M"}};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],HX.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],HX.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],HX.prototype,"modernUpdate",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",String)],HX.prototype,"buttonStyle",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",String)],HX.prototype,"buttonType",void 0);
HX=_.O([_.E({is:"ytd-ad-hover-text-button-renderer",disableElementRegistration:!0})],HX);
_.v(HX,"ytd-ad-hover-text-button-renderer",function(){if(xgB!==void 0)return xgB;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return xgB=J},{mode:1});var Vea;var iu=function(){var J=_.h.apply(this,arguments)||this;J.buttonOverrides={size:"XS"};J.modern=_.w("web_button_rework");return J};
_.D(iu,_.h);iu.prototype.onHelpTap=function(J){this.data&&this.data.informationDialog&&(_.cA(this.hostElement,"yt-navigate",{endpoint:{liveChatDialogEndpoint:{content:this.data.informationDialog}}}),J.preventDefault(),J.stopPropagation())};
_.O([_.U(),_.R("design:type",Object)],iu.prototype,"buttonOverrides",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],iu.prototype,"modern",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],iu.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],iu.prototype,"data",void 0);iu=_.O([_.E({disableElementRegistration:!0,is:"ytd-live-chat-purchased-product-message-renderer"})],iu);
_.v(iu,"ytd-live-chat-purchased-product-message-renderer",function(){if(Vea!==void 0)return Vea;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return Vea=J},{mode:1});var Pxj;var Me6;var nY=function(){var J=_.h.apply(this,arguments)||this;J.isContainerDeleted=!1;return J};
_.D(nY,_.h);nY.prototype.onContextMenuClick=function(J){this.ytLiveChatItemBehavior.showContextMenu(J)};
nY.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))};
nY.prototype.isContainerDeletedChanged=nY.prototype.isContainerDeletedChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],nY.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.Zo.YtLiveChatItemBehavior),_.R("design:type",_.q7)],nY.prototype,"ytLiveChatItemBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],nY.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],nY.prototype,"isContainerDeleted",void 0);
_.O([_.U(),_.R("design:type",String)],nY.prototype,"deletedStateMessage",void 0);_.O([_.NE("isContainerDeleted"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],nY.prototype,"isContainerDeletedChanged",null);nY=_.O([_.E({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-header-renderer"})],nY);
_.v(nY,"ytd-sponsorships-live-chat-header-renderer",function(){if(Me6!==void 0)return Me6;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return Me6=J},{mode:1});var TX=function(){var J=_.h.apply(this,arguments)||this;J.modern=_.w("web_button_rework_with_live");J.buttonOverrides={style:"overlay",type:"filled"};return J};
_.D(TX,_.h);TX.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]]"}}}}}};
TX.prototype.onCtaButtonClick=function(){var J,c=_.L((J=this.data)==null?void 0:J.optInPrompt,_.ur);if(J=this.maybeGetButtonCommand(c)){var m;(m=_.C7())==null||m.clickCommand(J)}};
TX.prototype.maybeGetButtonCommand=function(J){return!J||!J.command||_.L(J.command,iVZ)===void 0&&_.L(J.command,HVC)===void 0?null:J.command};
TX.prototype.shouldHideOptinPrompt=function(J,c){return!J||c};
_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],TX.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.Zo.YtLiveChatItemBehavior),_.R("design:type",_.q7)],TX.prototype,"ytLiveChatItemBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],TX.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],TX.prototype,"modern",void 0);TX=_.O([_.E({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"})],TX);
_.v(TX,"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",function(){if(Pxj!==void 0)return Pxj;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return Pxj=J},{mode:1});var pcL;var wO=function(){return _.h.apply(this,arguments)||this};
_.D(wO,_.h);wO.prototype.onContextMenuClick=function(J){this.ytLiveChatItemBehavior.showContextMenu(J)};
wO.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))};
wO.prototype.isDeletedChanged=wO.prototype.isDeletedChanged;_.O([_.f(_.Zo.YtLiveChatItemBehavior),_.R("design:type",_.q7)],wO.prototype,"ytLiveChatItemBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],wO.prototype,"data",void 0);_.O([_.NE("isDeleted"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],wO.prototype,"isDeletedChanged",null);wO=_.O([_.E({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"})],wO);
_.v(wO,"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",function(){if(pcL!==void 0)return pcL;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return pcL=J},{mode:1});var rO=function(){var J=_.h.apply(this,arguments)||this;J.actionMap={"yt-mark-chat-item-as-deleted-action":"handleLiveChatAction","yt-live-chat-actions":"handleLiveChatActions","yt-remove-chat-item-action":"handleLiveChatAction"};return J};
_.D(rO,_.h);_.V=rO.prototype;
_.V.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"}}}};
_.V.handleLiveChatAction=function(J){_.L(J,qKa)?this.handleMarkChatItemAsDeletedAction(_.L(J,qKa)):_.L(J,ZdL)&&this.handleRemoveChatItemAction(_.L(J,ZdL))};
_.V.handleLiveChatActions=function(J){J.forEach(this.handleLiveChatAction,this)};
_.V.handleMarkChatItemAsDeletedAction=function(J){var c=this,m;((m=this.data)==null?0:m.items)&&this.data.items.forEach(function(b,x){var P=Object.keys(b)[0];Object.values(b)[0].id===J.targetItemId&&c.markAsDeleted("data.items",x,P,J.deletedStateMessage,J.showOriginalContentMessage)})};
_.V.handleRemoveChatItemAction=function(J){var c=this,m;((m=this.data)==null?0:m.items)&&this.data.items.forEach(function(b,x){Object.values(b)[0].id===J.targetItemId&&c.splice("data.items",x,1)})};
_.V.markAsDeleted=function(J,c,m,b,x){J=[J,c,m].join(".");this.set(J+".deletedStateMessage",b);this.set(J+".showOriginalContentMessage",x)};
_.O([_.U(),_.R("design:type",Object)],rO.prototype,"data",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],rO.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],rO.prototype,"ytActionHandlerBehavior",void 0);rO=_.O([_.uM({disableElementRegistration:!0,is:"yt-live-chat-item-display-list-renderer",noInjection:!0})],rO);
_.v(rO,"yt-live-chat-item-display-list-renderer",function(){if(EuQ===void 0){var J=document.createElement("template");_.z(J,'\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>');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);var c=J.content,m=c.insertBefore;Gb8===void 0&&(Gb8=document.createElement("template"));var b=Gb8;m.call(c,b.content.cloneNode(!0),J.content.firstChild);EuQ=J}J=EuQ;return J},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var NAZ;var teB,IJ6=function(){if(teB!==void 0)return teB;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);var c=J.content,m=c.insertBefore;NAZ===void 0&&(NAZ=document.createElement("template"));var b=NAZ;m.call(c,b.content.cloneNode(!0),J.content.firstChild);return teB=J};var sx=function(){var J=_.h.apply(this,arguments)||this;J.isHeader=!1;return J};
_.D(sx,_.h);sx.prototype.configureRendererStamper=function(){return{"data.item":{id:"content",mapping:{liveChatPaidMessageRenderer:{component:"yt-live-chat-paid-message-renderer",params:{noPadding:"[[isHeader]]"}}}}}};
_.eE.Object.defineProperties(sx,{template:{configurable:!0,enumerable:!0,get:function(){return IJ6()}}});
_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],sx.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],sx.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],sx.prototype,"isHeader",void 0);sx=_.O([_.uM({is:"yt-live-chat-item-display-renderer",disableElementRegistration:!0,noInjection:!0})],sx);_.v(sx,"yt-live-chat-item-display-renderer",function(){return IJ6()},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var K26,Cx_,nQa,iAa;
K26={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}};Cx_={home:"eohps",search:"eosps",watch:"eowps"};_.aJa=["watch","search","home"];
_.LY=function(){this.JSC$12177_isInitialized_=!1;this.isInitialPass_=!0;this.isSeenDuringInitialPass_={};this.JSC$12177_queue_=[];this.pendingPages_=[];this.pagePreparerJobId_=this.fragmentJobId_=0;this.DEFAULT_DELAY_=_.Ub("PRECONSTRUCTION_DELAY",0);this.signals_=_.f$();this.targetPage_=""};
_.LY.prototype.init=function(J,c){J=J===void 0?"":J;c=c===void 0?null:c;if(this.JSC$12177_isInitialized_)this.abort();else if(this.JSC$12177_isInitialized_=!0,J&&_.kSQ(this,J),c){var m=_.Y7(this.signals_,"pcl")?0:10,b=function(){for(var x=0,P;P=_.aJa[x++];)P!=J&&P!=c&&this.pendingPages_.push(P);_.HAQ(this)}.bind(this);
this.signals_.parkOrScheduleJob(b,m,"pcl")}};
_.LY.prototype.abort=function(){this.fragmentJobId_&&(_.ft.cancelJob(this.fragmentJobId_),this.fragmentJobId_=0);iAa(this)};
_.kSQ=function(J,c){J.JSC$12177_isInitialized_&&!J.targetPage_&&(J.targetPage_=c,nQa(J,c),J.isInitialPass_=!1,nQa(J,c),J.signals_.processSignal(Cx_[J.targetPage_]),iAa(J),_.HAQ(J))};
_.HAQ=function(J){J.pendingPages_.length&&!J.pagePreparerJobId_&&(J.pagePreparerJobId_=_.rv(_.ft,function(){this.pagePreparerJobId_=0;this.pendingPages_.length&&!this.targetPage_&&_.kSQ(this,this.pendingPages_.shift())}.bind(J),J.DEFAULT_DELAY_))};
nQa=function(J,c){if(c=K26[c])for(var m in c){var b=!1,x=m;m.charAt(0)=="~"&&(b=!0,x=m.substring(1));var P=c[m];P=typeof P=="object"?P:{count:P};c[m]=P;P.componentName=x;P.count>0&&(J.isInitialPass_?b||J.isSeenDuringInitialPass_[x]||(J.JSC$12177_queue_.push({componentName:x,count:1,signals:P.signals}),J.isSeenDuringInitialPass_[x]=!0,P.count--):J.JSC$12177_queue_.push(P))}};
iAa=function(J){J.JSC$12177_queue_.length=0;J.targetPage_="";J.isInitialPass_=!0;J.signals_.processSignal("eop")};
_.LY.getInstance=function(){return _.mm(_.LY)};var TA_=function(){this.signals=_.f$();this.init()};
TA_.prototype.startPreconstruction=function(){_.LY.getInstance().init(_.Ss("IS_HOMEPAGE_COLD")?"home":null,"n/a")};
TA_.prototype.init=function(){wc2(this);window.Polymer&&BuQ&&gso();this.signals.parkOrScheduleJob(this.startPreconstruction,10,"eor");a:{var J=_.mo.ytcsi;if(J&&J.gt&&(J=J.gt())&&J.tick&&(J.tick.aft>0||J.tick.pbs>0)&&(_.Ss("IS_HOMEPAGE_COLD")||_.Ss("IS_RESULTS_PAGE_COLD")||_.Ss("IS_WATCH_PAGE_COLD"))){rYL(this);break a}nYR(cWJ,this.onNotifications,this)}};
var wc2=function(J){var c=function(){J.signals.processSignal("dl")};
document.readyState==="complete"?(_.Ge(Error("qh"),"WARNING"),c()):_.j1q(window,"load",c)};
TA_.prototype.onNotifications=function(J){J.timer||(_.Ss("IS_HOMEPAGE_COLD")||_.Ss("IS_RESULTS_PAGE_COLD")||_.Ss("IS_WATCH_PAGE_COLD"))&&rYL(this)};
var rYL=function(J){J.signals.parkOrScheduleJob(function(){J.signals.processSignal("eocs")},10,"eor")};
new TA_;var D5,WX=function(){return _.Cs.apply(this,arguments)||this};
_.D(WX,_.Cs);_.V=WX.prototype;_.V.enableActiveViewMeasurement=function(J){if(this.isActiveViewEnabled(J)){var c=this.getUrlPrefixesFromCommand(J.viewableCommands);J=this.getUrlPrefixesFromCommand(J.endOfSessionCommands);if(!D5){var m=_.c7("custom_active_view_tos_timeout_ms");D5=m>0&&m!==36E5?new klD(this.getVersion(),m):new klD(this.getVersion())}ief(D5,this.hostElement);neo(D5,this.hostElement,c,J)}};
_.V.stopActiveViewMeasurement=function(){D5&&ief(D5,this.hostElement)};
_.V.isActiveViewEnabled=function(J){return!!J&&(this.hasAtLeastOneUrl(J.viewableCommands)||this.hasAtLeastOneUrl(J.endOfSessionCommands))};
_.V.hasAtLeastOneUrl=function(J){return!!J&&J.length>0&&J[0].loggingUrls!=null&&J[0].loggingUrls.length>0};
_.V.getVersion=function(){var J=_.Ub("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(J==null?void 0:J.length)===2?J[1]:null};
_.V.getUrlPrefixesFromCommand=function(J){if(!J)return[];var c=[];J=_.M(J);for(var m=J.next();!m.done;m=J.next())if(m=m.value,m.loggingUrls){m=_.M(m.loggingUrls);for(var b=m.next();!b.done;b=m.next())b=b.value,b.baseUrl&&c.push(b.baseUrl)}return c};
WX=_.O([_.au()],WX);var zX=[WX.prototype];var uu=function(){return _.Cs.apply(this,arguments)||this};
_.D(uu,_.Cs);_.eE.Object.defineProperties(uu.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return _.w("enable_entity_store_from_dependency_injection")?_.v9():_.Rc()}}});
uu=_.O([_.au()],uu);_.fY=[rF.prototype,uu.prototype];var sLz=["ytd-rich-shelf-renderer"],YN=function(){var J=_.Cs.apply(this,arguments)||this;J._noAccessors=!0;J.DISMISSED_CONTENT_KEYSPACE="DISMISSED_CONTENT_KEYSPACE:";J.followUpDialogPromise=null;J.followUpDialogPromiseResolve=null;J.followUpDialogPromiseReject=null;return J};
_.D(YN,_.Cs);_.V=YN.prototype;_.V.dismissibleItemIsDismissedChanged_=function(J){_.w("kevlar_fluid_dismiss")&&(J?_.cA(this.hostElement,"yt-dismissible-item-dismissed"):_.cA(this.hostElement,"yt-dismissible-item-undismissed"))};
_.V.dismissibleItemDataChanged_=function(){this.dismissedContentId=void 0;this.dismissibleItemReset_()};
_.V.dismissibleItemReset_=function(){var J=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 _.IN(function(c,m){J.followUpDialogPromiseResolve=c;J.followUpDialogPromiseReject=m});
_.cA(this.hostElement,"yt-enable-lockup-interaction")};
_.V.dismissibleItemOnYtServiceRequestSent_=function(J,c){c.actions&&this.dismissibleItemProcessActions(c.actions,J)};
_.V.dismissibleItemOnRequestSent=function(J){if(_.w("web_button_rework"))for(var c=_.M(J.detail),m=c.next();!m.done;m=c.next()){var b=void 0;(m=(b=_.L(m.value,_.In))==null?void 0:b.actions)&&this.dismissibleItemProcessActions(m,J)}};
_.V.dismissibleItemOnCommandSent=function(J,c){c&&this.dismissibleItemProcessActions(c,J)};
_.V.setAndGetDismissedContentId=function(J){return this.dismissedContentId=this.DISMISSED_CONTENT_KEYSPACE+J};
_.V.replayDismissAction=function(J){this.dismissibleItemProcessActions([J])};
_.V.dismissibleItemProcessActions=function(J,c){for(var m=0;m<J.length;m++){var b=J[m],x=void 0;((x=_.L(b,_.pX))==null?0:x.commands)&&this.dismissibleItemProcessActions(_.L(b,_.pX).commands,c);if(_.L(b,_.ay)){if(x=_.L(b,_.ay),!x.replaceParentSection||sLz.includes(this.hostElement.nodeName.toLowerCase()))_.w("web_see_fewer_shorts_reactive_dismissal")&&x.groupDismissal&&W03(this,x.groupDismissal,!0),this.dismissibleItemHandleReplaceEnclosingAction_(x),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.It("commandEntity",
this.dismissedContentId,{key:this.dismissedContentId,command:b})),b=void 0,(b=c)==null||b.stopPropagation()}else if(_.L(b,OyB))this.dismissibleItemHandleHideEnclosingAction_(),b=void 0,(b=c)==null||b.stopPropagation();else if(_.L(b,JKQ))_.w("web_see_fewer_shorts_reactive_dismissal")&&(b=_.L(b,JKQ),x=void 0,((x=b)==null?0:x.targetGroupId)&&W03(this,{targetGroupId:b.targetGroupId},!1)),this.dismissibleItemHandleUndoFeedbackAction_(),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.It("commandEntity",
this.dismissedContentId,{key:this.dismissedContentId,command:void 0})),b=void 0,(b=c)==null||b.stopPropagation();else if(_.L(b,_.In))(b=_.L(b,_.In).actions)&&_.PA(this.hostElement,b,this.hostElement),b=void 0,(b=c)==null||b.stopPropagation();else{var P=x=void 0;((x=_.L(b,_.$H))==null?void 0:x.signal)!=="TELL_US_WHY"||((P=_.L(b,_.$H))==null?0:P.targetId)&&_.w("web_enable_feedback_endpoint_resolver_batch_2")||(this.dismissibleItemHandleTellUsWhySignalAction_(),b=void 0,(b=c)==null||b.stopPropagation())}}};
_.V.dismissibleItemOnYtServiceRequestCompleted_=function(J,c){var m=this.get("feedbackResponses.0.followUpDialog",c.data);m?this.followUpDialogPromiseResolve(m):c.actions&&!this.dismissedRenderer&&this.dismissibleItemProcessActions(c.actions,J)};
_.V.dismissibleItemHandleReplaceEnclosingAction_=function(J){this.dismissedRenderer=J.item;this.isDismissed=!0;var c=null;(c=_.Bj(this.hostElement).querySelector("#dismissed"))&&_.o3(this,function(){_.jf(c)});
_.cA(this.hostElement,"yt-disable-lockup-interaction",this.dismissedRenderer)};
_.V.dismissibleItemHandleHideEnclosingAction_=function(){this.isHideEnclosingAction=this.isDismissed=!0};
_.V.dismissibleItemHandleUndoFeedbackAction_=function(){_.cA(this.hostElement,"yt-dismissible-item-undo-feedback");this.dismissibleItemReset_()};
_.V.dismissibleItemHandleTellUsWhySignalAction_=function(){var J=this;this.followUpDialogPromise.then(function(c){J.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:c}})})};
YN.prototype.dismissibleItemOnYtServiceRequestCompleted_=YN.prototype.dismissibleItemOnYtServiceRequestCompleted_;YN.prototype.dismissibleItemOnCommandSent=YN.prototype.dismissibleItemOnCommandSent;YN.prototype.dismissibleItemOnRequestSent=YN.prototype.dismissibleItemOnRequestSent;YN.prototype.dismissibleItemOnYtServiceRequestSent_=YN.prototype.dismissibleItemOnYtServiceRequestSent_;YN.prototype.dismissibleItemDataChanged_=YN.prototype.dismissibleItemDataChanged_;
YN.prototype.dismissibleItemIsDismissedChanged_=YN.prototype.dismissibleItemIsDismissedChanged_;_.O([_.f(_.vL),_.R("design:type",Object)],YN.prototype,"ytdOpenPopupBehavior",void 0);_.O([_.f(_.fY),_.R("design:type",Object)],YN.prototype,"ytdReduxBehavior",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],YN.prototype,"isDismissed",void 0);_.O([_.U(),_.R("design:type",Object)],YN.prototype,"dismissedRenderer",void 0);
_.O([_.NE("isDismissed"),_.R("design:type",Function),_.R("design:paramtypes",[Boolean]),_.R("design:returntype")],YN.prototype,"dismissibleItemIsDismissedChanged_",null);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],YN.prototype,"dismissibleItemDataChanged_",null);
_.O([_.ps("yt-service-request-sent"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,_.qd]),_.R("design:returntype")],YN.prototype,"dismissibleItemOnYtServiceRequestSent_",null);_.O([_.ps("yt-service-request-sent-button-renderer"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],YN.prototype,"dismissibleItemOnRequestSent",null);
_.O([_.ps("yt-dismissible-item-action"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,Array]),_.R("design:returntype")],YN.prototype,"dismissibleItemOnCommandSent",null);_.O([_.ps("yt-service-request-completed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,_.Oi]),_.R("design:returntype")],YN.prototype,"dismissibleItemOnYtServiceRequestCompleted_",null);YN=_.O([_.au()],YN);_.XP=[_.vL,_.fY,YN.prototype];var Z5=function(){var J=_.Cs.apply(this,arguments)||this;J.disableGridStateAware=!1;J.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};J.currentGridClass="";return J};
_.D(Z5,_.Cs);Z5.prototype.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap);_.o3(this,this.handleUpdateGridStateAction);if(!this.disableGridStateAware){var J=this.gridStateAwareGetElement();_.mq(J,"grid",!0)}};
Z5.prototype.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.gridStateActionMap)};
Z5.prototype.gridStateAwareGetElement=function(){return this.gridStateAwareSizingElementSelector?_.Bj(this.hostElement).querySelector(this.gridStateAwareSizingElementSelector):this.hostElement};
Z5.prototype.handleUpdateGridStateAction=function(){if(this.disableGridStateAware)var J="grid-disabled";else{J=_.wTC.getInstance();var c=this.get("pageSubtype");J=c&&iuz.includes(c)?"grid-disabled":J.currentSnapState_?J.currentSnapState_.className:null}(c=this.gridStateAwareGetElement())&&J!==this.currentGridClass&&(J&&_.mq(c,J,!0),this.currentGridClass&&_.mq(c,this.currentGridClass,!1),this.currentGridClass=J)};
_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],Z5.prototype,"ytActionHandlerBehavior",void 0);_.O([_.U(),_.R("design:type",String)],Z5.prototype,"gridStateAwareSizingElementSelector",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Z5.prototype,"disableGridStateAware",void 0);Z5=_.O([_.au()],Z5);_.qG=[Z5.prototype,_.yw.YtActionHandlerBehavior];_.Ux=new _.oE("GUIDE_TOKEN");var hH;_.SO={};hH=function(){var J=_.Cs.apply(this,arguments)||this;J.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 J};
_.D(hH,_.Cs);_.V=hH.prototype;_.V.onActiveEndpointChange=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.V.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.guideStateActionMap);var J=_.BG().resolve(_.y6(_.Ux));J&&(this.guidePersistentAndVisible=J.getGuidePersistentAndVisible(),this.activeEndpoint=J.getActiveEndpoint(),this.guideOpened=J.getGuideOpened(),this.miniGuideVisible=J.getMiniGuideVisible())};
_.V.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.guideStateActionMap)};
_.V.handleGuideStateAction=function(J){this.guidePersistentAndVisible=J};
_.V.handleMiniGuideStateAction=function(J){this.miniGuideVisible=J};
_.V.handleGuideOpenedAction=function(J){this.guideOpened=J};
_.V.handleActiveEndpointAction=function(J){this.activeEndpoint=J};
hH.prototype.onActiveEndpointChange=hH.prototype.onActiveEndpointChange;_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],hH.prototype,"ytActionHandlerBehavior",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],hH.prototype,"guidePersistentAndVisible",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],hH.prototype,"miniGuideVisible",void 0);_.O([_.U(),_.R("design:type",Object)],hH.prototype,"activeEndpoint",void 0);
_.O([_.NE("activeEndpoint"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],hH.prototype,"onActiveEndpointChange",null);_.O([_.U(),_.R("design:type",Boolean)],hH.prototype,"guideOpened",void 0);hH=_.O([_.au()],hH);_.SO.YtdGuideStateAwareBehavior=[];_.SO.YtdGuideStateAwareBehavior.push(hH.prototype,_.yw.YtActionHandlerBehavior);var L2_=["ytd-compact-video-renderer","ytd-playlist-video-renderer","ytd-compact-movie-renderer","ytd-playlist-panel-video-renderer"],dO=function(){var J=_.Cs.apply(this,arguments)||this;J.hoverJobId=0;J.JSC$12208_touched=!1;return J};
_.D(dO,_.Cs);_.V=dO.prototype;_.V.created=function(){this.useExpandableTooltip=!L2_.includes(this.is)};
_.V.attached=function(){this.hostElement.hasAttribute("lockup")||this.hostElement.setAttribute("lockup","true")};
_.V.detached=function(){this.useExpandableTooltip=!1};
_.V.lockupOnDown=function(J){this.interactionElement&&!_.AP(_.OT(J),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerDown()};
_.V.lockupOnUp=function(J){this.interactionElement&&!_.AP(_.OT(J),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerUp()};
_.V.onTouchStart=function(){this.JSC$12208_touched=!0};
_.V.lockupOnMouseEnter=function(){var J=this,c=_.c7("kevlar_lockup_hover_delay",-1);this.JSC$12208_touched&&c>=0?(_.ft.cancelJob(this.hoverJobId),this.hoverJobId=_.ft.addJob(function(){J.lockupIsHovered=!0},8,c),this.JSC$12208_touched=!1):this.lockupIsHovered=!0};
_.V.lockupOnMouseLeave=function(){this.hoverJobId&&(_.ft.cancelJob(this.hoverJobId),this.hoverJobId=0);this.lockupIsHovered=!1};
_.V.lockupOnPopupClosed=function(J,c){var m;((m=c.popupRenderer)==null?void 0:m.is)==="ytd-menu-popup-renderer"&&(J=c.popupRenderer.veData,c=_.Y3(),J&&c&&_.O2(c,[J]))};
_.V.lockupOnLockupRequested=function(J){var c=J.detail.videoIds[0],m;J.detail&&c===((m=this.data)==null?void 0:m.videoId)&&(J.detail.returnValue=[this.data])};
_.V.lockupOnYtServiceRequestSent=function(J,c){if(J=c.actions)for(var m=0;m<J.length;m++){var b=J[m];if(b.action==="ACTION_REMOVE_VIDEO_BY_VIDEO_ID"&&c.ajaxPromise){var x=void 0,P=(x=_.L(c.endpoint,_.DA))==null?void 0:x.playlistId;x=void 0;b=(x=b.removedVideoId)!=null?x:"";AHj(_.Zl(),b,P)}else b.action==="ACTION_REMOVE_VIDEO"&&c.ajaxPromise&&(P=void 0,b=(P=b.setVideoId)!=null?P:"",_.Rc8(_.Zl(),b))}};
_.V.lockupOnLockupDisabled=function(){this.interactionElement&&(this.interactionElement.disabled=!0)};
_.V.lockupOnLockupEnabled=function(){if(!this.$){var J=_.BG().resolve(_.oO).getCurrentPage(),c=this.getParentRenderer?this.getParentRenderer():void 0;_.qz(new _.w3("component not ready",this.is,this.isAttached,J==null?void 0:J.is,c==null?void 0:c.is))}this.interactionElement&&(this.interactionElement.disabled=!1)};
dO.prototype.lockupOnLockupEnabled=dO.prototype.lockupOnLockupEnabled;dO.prototype.lockupOnLockupDisabled=dO.prototype.lockupOnLockupDisabled;dO.prototype.lockupOnYtServiceRequestSent=dO.prototype.lockupOnYtServiceRequestSent;dO.prototype.lockupOnLockupRequested=dO.prototype.lockupOnLockupRequested;dO.prototype.lockupOnPopupClosed=dO.prototype.lockupOnPopupClosed;dO.prototype.lockupOnMouseLeave=dO.prototype.lockupOnMouseLeave;dO.prototype.lockupOnMouseEnter=dO.prototype.lockupOnMouseEnter;
dO.prototype.onTouchStart=dO.prototype.onTouchStart;dO.prototype.lockupOnUp=dO.prototype.lockupOnUp;dO.prototype.lockupOnDown=dO.prototype.lockupOnDown;_.O([_.U(),_.R("design:type",Object)],dO.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Boolean)],dO.prototype,"lockupIsHovered",void 0);_.O([_.U(),_.R("design:type",Boolean)],dO.prototype,"lockupTouchTriggered",void 0);_.O([_.U(),_.R("design:type",Boolean)],dO.prototype,"useExpandableTooltip",void 0);
_.O([_.Iu("#interaction"),_.R("design:type",Object)],dO.prototype,"interactionElement",void 0);_.O([_.ps("down"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],dO.prototype,"lockupOnDown",null);_.O([_.ps("up"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],dO.prototype,"lockupOnUp",null);
_.O([_.ps("touchstart"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],dO.prototype,"onTouchStart",null);_.O([_.ps("mouseenter"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],dO.prototype,"lockupOnMouseEnter",null);_.O([_.ps("mouseleave"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],dO.prototype,"lockupOnMouseLeave",null);
_.O([_.ps("yt-popup-closed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,Object]),_.R("design:returntype")],dO.prototype,"lockupOnPopupClosed",null);_.O([_.ps("yt-lockup-requested"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],dO.prototype,"lockupOnLockupRequested",null);
_.O([_.ps("yt-service-request-sent"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,_.qd]),_.R("design:returntype")],dO.prototype,"lockupOnYtServiceRequestSent",null);_.O([_.ps("yt-disable-lockup-interaction"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],dO.prototype,"lockupOnLockupDisabled",null);
_.O([_.ps("yt-enable-lockup-interaction"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],dO.prototype,"lockupOnLockupEnabled",null);dO=_.O([_.au()],dO);_.$N=[dO.prototype];_.Dg2={YtdReduxBehavior:[]};_.Dg2.YtdReduxBehavior.push.apply(_.Dg2.YtdReduxBehavior,_.fY);var GX=function(){var J=_.Cs.apply(this,arguments)||this;J._noAccessors=!0;J.disableNowPlaying=!1;J.disableTooltips=!1;J.useHoveredProperty=!1;J.hovered=!1;J.isThumbnailHovered_=!1;J.addBackground=_.w("kevlar_thumbnail_bg");J.nowPlaying=!1;J.disableRounding=!1;J.size="small";return J};
_.D(GX,_.Cs);_.V=GX.prototype;_.V.computeThumbnailOverlaySidePanelWidth_=function(J,c){return J-c};
_.V.computeSize=function(J,c){if(!this.disableRounding){if(!J&&!c)return"small";J=Math.max(J||0,c||0);return J>=256?"large":J>=96?"medium":"small"}};
_.V.computeFinalHoveredState_=function(J,c,m){return this.nowPlaying?!1:_.w("kevlar_thumbnail_fluid")&&J?c:m};
_.V.computeHoverOverlays_=function(J,c){return J&&c?c:void 0};
_.V.onMouseEnter_=function(){this.isThumbnailHovered_=!0};
_.V.onMouseLeave_=function(){this.isThumbnailHovered_=!1};
_.V.checkMiniplayer_=function(){var J;if(((J=this.data)==null?0:J.playlistSetVideoId)&&_.w("web_enable_playlist_video_lockup_equalizer"))this.nowPlaying=!!this.data.selected;else{J=_.Mh();var c=J.currentEndpoint;!this.disableNowPlaying&&c&&_.L(c,_.Rz)&&this.data?(c=_.L(c,_.Rz),this.nowPlaying=this.data.playlistId?c.playlistId===this.data.playlistId:c.videoId===this.data.videoId,this.isVideoPlaying=J==null?void 0:J.isVideoPlaying):this.nowPlaying=!1}};
GX.prototype.checkMiniplayer_=GX.prototype.checkMiniplayer_;GX.prototype.onMouseLeave_=GX.prototype.onMouseLeave_;GX.prototype.onMouseEnter_=GX.prototype.onMouseEnter_;GX.prototype.computeHoverOverlays_=GX.prototype.computeHoverOverlays_;GX.prototype.computeFinalHoveredState_=GX.prototype.computeFinalHoveredState_;GX.prototype.computeSize=GX.prototype.computeSize;GX.prototype.computeThumbnailOverlaySidePanelWidth_=GX.prototype.computeThumbnailOverlaySidePanelWidth_;
_.O([_.f(_.fY),_.R("design:type",Object)],GX.prototype,"ytdReduxBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],GX.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Number)],GX.prototype,"height",void 0);_.O([_.U(),_.R("design:type",Boolean)],GX.prototype,"bottomSidePanel",void 0);_.O([_.U(),_.R("design:type",Number)],GX.prototype,"width",void 0);_.O([_.U(),_.R("design:type",Object)],GX.prototype,"disableNowPlaying",void 0);
_.O([_.U({selector:_.z2}),_.R("design:type",Boolean)],GX.prototype,"miniplayerIsActive",void 0);_.O([_.U(),_.R("design:type",Object)],GX.prototype,"disableTooltips",void 0);_.O([_.U(),_.R("design:type",Object)],GX.prototype,"useHoveredProperty",void 0);_.O([_.U(),_.R("design:type",Object)],GX.prototype,"hovered",void 0);_.O([_.U(),_.R("design:type",Object)],GX.prototype,"isThumbnailHovered_",void 0);
_.O([_.U({computed:"computeFinalHoveredState_(useHoveredProperty, hovered, isThumbnailHovered_)"}),_.R("design:type",Boolean)],GX.prototype,"finalHoveredState_",void 0);_.O([_.U({computed:"computeThumbnailOverlaySidePanelWidth_(width, height)"}),_.R("design:type",Number)],GX.prototype,"thumbnailOverlaySidePanelWidth_",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],GX.prototype,"addBackground",void 0);
_.O([_.U({computed:"computeHoverOverlays_(finalHoveredState_, data.thumbnailOverlays)"}),_.R("design:type",Object)],GX.prototype,"hoverOverlays_",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],GX.prototype,"nowPlaying",void 0);_.O([_.U(),_.R("design:type",Boolean)],GX.prototype,"isVideoPlaying",void 0);_.O([_.U(),_.R("design:type",Object)],GX.prototype,"disableRounding",void 0);
_.O([_.U({reflectToAttribute:!0,computed:"computeSize(width, height, disableRounding)"}),_.R("design:type",Object)],GX.prototype,"size",void 0);_.O([_.ps("mouseenter"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],GX.prototype,"onMouseEnter_",null);_.O([_.ps("mouseleave"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],GX.prototype,"onMouseLeave_",null);
_.O([_.NE("data","disableNowPlaying","miniplayerIsActive"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],GX.prototype,"checkMiniplayer_",null);GX=_.O([_.au()],GX);var W2a=[GX.prototype];_.Ex={YtPlayerListenerBehavior:{created:function(){this.playerListeners_=new Map},
getPlayerListenerKey_:function(J,c){return J+":"+_.mj(c)},
getPlayerListener_:function(J,c,m){J=this.getPlayerListenerKey_(J,c);c=this.playerListeners_.get(J);m&&this.playerListeners_.delete(J);return c},
savePlayerListener_:function(J,c){var m=c.bind(this);this.playerListeners_.set(this.getPlayerListenerKey_(J,c),m);return m},
listenToPlayerEvent:function(J,c,m){m=this.savePlayerListener_(c,m);J.addEventListener(c,m)},
listenToPlayerEvents:function(J,c){c.forEach(function(m,b){this.listenToPlayerEvent(J,b,m)}.bind(this))},
unlistenFromPlayerEvent:function(J,c,m){m=this.getPlayerListener_(c,m,!0);J.removeEventListener(c,m)},
unlistenFromPlayerEvents:function(J,c){c.forEach(function(m,b){this.unlistenFromPlayerEvent(J,b,m)}.bind(this))}}};
_.vX=function(){};_.zSZ=new _.oE("PLAYER_API_TOKEN");var ZaT=!1,hd3,Uvt=!1,$v3;var lB=function(J,c,m,b,x){_.DS.call(this);var P=this;this.playerId=c;this.webPlayerContextConfig=b;this.mnC=x;this.qvW=!1;this.api={};this.tIu=this.dpF=null;this.g2F=new _.Kg;this.pY={};this.p2F=this.mWF=this.elementId=this.mBx=this.config=null;this.awn=!1;this.hm=this.uau=null;this.rdQ={};this.vYV=["onReady"];this.lastError=null;this.y7V=NaN;this.bVp={};this.dej=0;this.lH=this.targetElement=J;_.Kc(this,this.g2F);uVL(this);m?this.dej=setTimeout(function(){P.loadNewVideoConfig(m)},0):b&&(fJ6(this),
YRa(this))};
_.D(lB,_.DS);lB.prototype.getId=function(){return this.playerId};
lB.prototype.loadNewVideoConfig=function(J){if(!this.isDisposed()){this.dej&&(clearTimeout(this.dej),this.dej=0);var c=J||{};c instanceof Bej||(c=new Bej(c));this.config=c;this.setConfig(J);YRa(this);this.isReady()&&Xc_(this)}};
var fJ6=function(J){var c;J.webPlayerContextConfig?c=J.webPlayerContextConfig.rootElementId:c=J.config.attrs.id;J.elementId=c||J.elementId;J.elementId==="video-player"&&(J.elementId=J.playerId,J.webPlayerContextConfig?J.webPlayerContextConfig.rootElementId=J.playerId:J.config.attrs.id=J.playerId);var m;((m=J.lH)==null?void 0:m.id)===J.elementId&&(J.elementId+="-player",J.webPlayerContextConfig?J.webPlayerContextConfig.rootElementId=J.elementId:J.config.attrs.id=J.elementId)};
lB.prototype.setConfig=function(J){this.mBx=J;this.config=ZA$(J);fJ6(this);if(!this.mWF){var c;this.mWF=qRL(this,((c=this.config.args)==null?void 0:c.jsapicallback)||"onYouTubePlayerReady")}this.config.args?this.config.args.jsapicallback=null:this.config.args={jsapicallback:null};var m;if((m=this.config)==null?0:m.attrs)J=this.config.attrs,(c=J.width)&&this.lH&&(this.lH.style.width=fd(Number(c)||c,!0)),(J=J.height)&&this.lH&&(this.lH.style.height=fd(Number(J)||J,!0))};
var Xc_=function(J){if(J.config&&J.config.loaded!==!0)if(J.config.loaded=!0,!J.config.args||J.config.args.autoplay!=="0"&&J.config.args.autoplay!==0&&J.config.args.autoplay!==!1){var c;J.api.loadVideoByPlayerVars((c=J.config.args)!=null?c:null)}else J.api.cueVideoByPlayerVars(J.config.args)},SRQ=function(J){var c=!0,m=J.getPlayerElement();
m&&J.config&&(c=m.dataset.version===UgZ(J));return c&&!!_.$y("yt.player.Application.create")},YRa=function(J){if(!J.isDisposed()&&!J.awn){var c=SRQ(J);
if(c&&(J.getPlayerElement()?"html5":null)==="html5")J.p2F="html5",J.isReady()||hS_(J);else if(dga(J),J.p2F="html5",c&&J.hm&&J.targetElement)J.targetElement.appendChild(J.hm),hS_(J);else{J.config&&(J.config.loaded=!0);var m=!1;J.uau=function(){m=!0;var b=$g2(J,"player_bootstrap_method")?_.$y("yt.player.Application.createAlternate")||_.$y("yt.player.Application.create"):_.$y("yt.player.Application.create");var x=J.config?ZA$(J.config):void 0;b&&b(J.targetElement,x,J.webPlayerContextConfig,J.mnC);hS_(J)};
J.awn=!0;c?J.uau():(_.dK(UgZ(J),J.uau),(c=GSa(J))&&rEo(c||""),EQ_(J)&&!m&&_.jD("yt.player.Application.create",null))}}};
lB.prototype.getPlayerElement=function(){var J=_.FG(document,this.elementId);!J&&this.lH&&this.lH.querySelector&&(J=this.lH.querySelector("#"+this.elementId));return J};
var hS_=function(J){if(!J.isDisposed()){var c=J.getPlayerElement(),m=!1;c&&c.getApiInterface&&c.getApiInterface()&&(m=!0);if(m){J.awn=!1;if(!$g2(J,"html5_remove_not_servable_check_killswitch")){var b;if((c==null?0:c.isNotServable)&&J.config&&(c==null?0:c.isNotServable((b=J.config.args)==null?void 0:b.video_id)))return}vQ2(J)}else J.y7V=setTimeout(function(){hS_(J)},50)}},vQ2=function(J){uVL(J);
J.qvW=!0;var c=J.getPlayerElement();if(c){J.dpF=OAQ(J,c,"addEventListener");J.tIu=OAQ(J,c,"removeEventListener");var m=c.getApiInterface();m=m.concat(c.getInternalApiInterface());for(var b=J.api,x=0;x<m.length;x++){var P=m[x];b[P]||(b[P]=OAQ(J,c,P))}}for(var p in J.pY)J.pY.hasOwnProperty(p)&&J.dpF&&J.dpF(p,J.pY[p]);Xc_(J);J.mWF&&J.mWF(J.api);J.g2F.publish("onReady",J.api)},OAQ=function(J,c,m){var b=c[m];
return function(){var x=_.s$.apply(0,arguments);try{return J.lastError=null,b.apply(c,x)}catch(P){if(m!=="sendAbandonmentPing")throw P.params=m,J.lastError=P,x=new _.w3("PlayerProxy error in method call",{error:P,method:m,playerId:J.playerId}),x.level="WARNING",x;}}},uVL=function(J){J.qvW=!1;
if(J.tIu)for(var c in J.pY)J.pY.hasOwnProperty(c)&&J.tIu(c,J.pY[c]);for(var m in J.bVp)J.bVp.hasOwnProperty(m)&&clearTimeout(Number(m));J.bVp={};J.dpF=null;J.tIu=null;c=J.api;for(var b in c)c.hasOwnProperty(b)&&(c[b]=null);c.addEventListener=function(x,P){J.addEventListener(x,P)};
c.removeEventListener=function(x,P){J.removeEventListener(x,P)};
c.destroy=function(){J.dispose()};
c.getLastError=function(){return J.getLastError()};
c.getPlayerType=function(){return J.getPlayerType()};
c.getCurrentVideoConfig=function(){return J.mBx};
c.loadNewVideoConfig=function(x){J.loadNewVideoConfig(x)};
c.isReady=function(){return J.isReady()}};
lB.prototype.isReady=function(){return this.qvW};
lB.prototype.addEventListener=function(J,c){var m=this;this.isDisposed();var b=qRL(this,c);b&&(_.Aq(this.vYV,J)||this.pY[J]||(c=AYC(this,J),this.dpF&&this.dpF(J,c)),this.g2F.subscribe(J,b),J==="onReady"&&this.isReady()&&setTimeout(function(){b(m.api)},0))};
lB.prototype.removeEventListener=function(J,c){this.isDisposed()||(c=qRL(this,c))&&this.g2F.unsubscribe(J,c)};
var qRL=function(J,c){var m=c;if(typeof c==="string"){if(J.rdQ[c])return J.rdQ[c];m=function(){var b=_.s$.apply(0,arguments),x=_.$y(c);if(x)try{x.apply(_.mo,b)}catch(P){throw b=new _.w3("PlayerProxy error when executing callback",{error:P}),b.level="ERROR",b;}};
J.rdQ[c]=m}return m?m:null},AYC=function(J,c){var m=function(b){var x=function(){J.isDisposed();
if(!J.isDisposed())try{J.g2F.publish(c,b!=null?b:void 0)}catch(t){var p=new _.w3("PlayerProxy error when creating global callback",{error:t.message,event:c,playerId:J.playerId,data:b,originalStack:t.stack,componentStack:t.componentStack});p.level="WARNING";throw p;}};
if($g2(J,"web_player_publish_events_immediately"))x();else{var P=setTimeout(function(){x();_.Lw.remove(J.bVp,String(P))},0);
_.Lw.add(J.bVp,String(P),!0)}};
return J.pY[c]=m};
lB.prototype.getPlayerType=function(){return this.p2F||(this.getPlayerElement()?"html5":null)};
lB.prototype.getLastError=function(){return this.lastError};
var dga=function(J){J.cancel();uVL(J);J.p2F=null;J.config&&(J.config.loaded=!1);var c=J.getPlayerElement();c&&(SRQ(J)||!EQ_(J)?J.hm=c:(c&&c.destroy&&c.destroy(),J.hm=null));J.targetElement&&_.rC(J.targetElement)};
lB.prototype.cancel=function(){this.uau&&_.lYe(UgZ(this),this.uau);clearTimeout(this.y7V);this.awn=!1};
lB.prototype.disposeInternal=function(){dga(this);if(this.hm&&this.config&&this.hm.destroy)try{this.hm.destroy()}catch(c){var J=new _.w3("PlayerProxy error during disposal",{error:c});J.level="ERROR";throw J;}this.rdQ=null;for(J in this.pY)this.pY.hasOwnProperty(J)&&delete this.pY[J];this.mBx=this.config=this.api=null;delete this.targetElement;delete this.lH;_.DS.prototype.disposeInternal.call(this)};
var EQ_=function(J){var c,m;J=(c=J.config)==null?void 0:(m=c.args)==null?void 0:m.fflags;return!!J&&J.indexOf("player_destroy_old_version=true")!==-1},UgZ=function(J){return J.webPlayerContextConfig?J.webPlayerContextConfig.jsUrl:(J=J.config.assets)?J.js:""},GSa=function(J){return J.webPlayerContextConfig?J.webPlayerContextConfig.cssUrl:(J=J.config.assets)?J.css:""},$g2=function(J,c){if(J.webPlayerContextConfig)var m=J.webPlayerContextConfig.serializedExperimentFlags;
else{var b;if((b=J.config)==null?0:b.args)m=J.config.args.fflags}return(m||"").split("&").includes(c+"=true")},ZA$=function(J){for(var c={},m=_.M(Object.keys(J)),b=m.next();!b.done;b=m.next()){b=b.value;
var x=J[b];c[b]=typeof x==="object"?_.Lw.clone(x):x}return c};var ARu={},OaG="player_uid_"+(Math.random()*1E9>>>0);var Ox=function(J,c,m,b,x,P){c=c===void 0?document.createElement("div"):c;this.webPlayerContextConfig=J;this.container=c;this.commandResolver=m;this.apiResolver=Qmu();this.pageReadyOrDataAvailable=!1;this.pageReadyOrDataAvailableResolver=new _.xb;b||P?RS2(this):oQZ(this);this.pendingPlayerResponse=b;this.pendingWatchNextResponse=x;this.pendingPlayerVars=P;QL8(this)};
Ox.prototype.loadVideoWithPlayerResponse=function(J,c,m){this.loadVideo(J,c,m)};
Ox.prototype.loadVideoWithPlayerVars=function(J){return this.loadVideo(void 0,void 0,J)};
Ox.prototype.destroy=function(J){if(J=_.FG(document,J))J=OaG+"_"+_.mj(J),(J=ARu[J])&&J.dispose()};
var jLQ=function(J,c){var m;_.N(function(b){if(b.nextAddress==1)return J.pendingWatchNextResponse=c,J.synchronousApi?(m=J.synchronousApi,b.jumpTo(2)):_.K(b,J.api,3);b.nextAddress!=2&&(m=b.yieldResult);eSQ(J,m);J.pendingWatchNextResponse&&(m.updateVideoData({raw_watch_next_response:J.pendingWatchNextResponse}),J.pendingWatchNextResponse=void 0);_.tD(b)})},eSQ=function(J,c){var m;
if(!(c==null?0:(m=c.isReady)==null?0:m.call(c))){var b;J=new _.w3("playerApi is falsey",{synchronousApi:J.synchronousApi,apiResolved:J.apiResolver.resolved,playerApiUndefined:c===void 0,playerApiNull:c===null,playerApiReady:(c==null?void 0:(b=c.isReady)==null?void 0:b.call(c))===!0,playerApiMethods:c?Object.keys(c):[]});_.Xc(J)}},F2B=function(J,c){if(typeof J[c]==="function")return J[c]()},lJZ=function(J){var c=window,m,b=(m=c.ytplayer)==null?void 0:m.bootstrapPlayerContainer;
if((m=b==null?void 0:b.firstElementChild)&&_.qb(m,"html5-video-player")){var x,P,p=(x=c.ytplayer)==null?void 0:(P=x.bootstrapWebPlayerContextConfig)==null?void 0:P.contextId;x=J.webPlayerContextConfig.contextId;if(p&&p===x){b!==J.container&&(b=!1,F2B(m,"getPlayerState")===2&&(b=!0),J.container.appendChild(m),b||F2B(m,"playVideo"));var t;if((t=c.ytplayer)==null?0:t.bootstrapPlayerResponse)J.bootstrapPlayerResponse=c.ytplayer.bootstrapPlayerResponse}}},QL8=function(J){var c,m,b,x,P;
_.N(function(p){if(p.nextAddress==1)return J.pageReadyOrDataAvailable?p.jumpTo(2):_.K(p,J.pageReadyOrDataAvailableResolver.promise,2);if(p.nextAddress!=4)return!_.w("kevlar_player_unified_player_loading")||qYo()&&SYm()?p.jumpTo(4):_.K(p,EIm(),4);lJZ(J);if(J.pendingPlayerResponse||J.pendingPlayerVars)c=vID(J.pendingPlayerResponse,J.pendingWatchNextResponse,J.pendingPlayerVars),J.pendingPlayerResponse&&J.pendingPlayerResponse===J.bootstrapPlayerResponse&&(c.loaded=!0),J.bootstrapPlayerResponse=void 0;
m=oIQ(J.container,c,J.webPlayerContextConfig);((b=c)==null?0:b.loaded)&&J.pendingWatchNextResponse?(jLQ(J,J.pendingWatchNextResponse),J.pendingPlayerResponse=void 0,J.pendingPlayerVars=void 0):yY_(J);x=function(t){m.removeEventListener("onReady",x);J.synchronousApi=t;J.apiResolver.resolve(t)};
m.addEventListener("onReady",x);J.commandResolver!==void 0&&(P=J.commandResolver,m.addEventListener("innertubeCommand",function(t){P(t)}));
_.tD(p)})};
Ox.prototype.loadVideo=function(J,c,m){var b=this,x,P,p,t,I,a,k,H,T;return _.N(function(r){if(r.nextAddress==1)return b.pendingPlayerResponse=J,b.pendingWatchNextResponse=c,b.pendingPlayerVars=m,RS2(b),b.synchronousApi?(x=b.synchronousApi,r.jumpTo(2)):_.K(r,b.api,3);r.nextAddress!=2&&(x=r.yieldResult);eSQ(b,x);p=new Promise(function(W){P=W});
t=function(){var W=x.getPlayerResponse();W&&(x.removeEventListener("onVideoDataChange",t),P(W))};
x.addEventListener("onVideoDataChange",t);if(b.pendingPlayerResponse||b.pendingPlayerVars)b.pendingPlayerResponse&&b.pendingPlayerResponse===b.bootstrapPlayerResponse?(P(b.pendingPlayerResponse),b.pendingWatchNextResponse&&jLQ(b,b.pendingWatchNextResponse)):(I=vID(b.pendingPlayerResponse,b.pendingWatchNextResponse,b.pendingPlayerVars),(T=(a=b.pendingPlayerResponse)==null?void 0:(k=a.playerConfig)==null?void 0:(H=k.playbackStartConfig)==null?void 0:H.startPaused)?x.cueVideoByPlayerVars(I.args):x.loadVideoByPlayerVars(I.args)),
yY_(b),b.bootstrapPlayerResponse=void 0;return r.return(p)})};
var oQZ=function(J){if(document.readyState==="complete"||document.readyState==="interactive")RS2(J);else{var c=function(){document.removeEventListener("DOMContentLoaded",c);RS2(J)};
document.addEventListener("DOMContentLoaded",c)}},RS2=function(J){J.pageReadyOrDataAvailable=!0;
J.pageReadyOrDataAvailableResolver.resolve()},yY_=function(J){J.pendingPlayerResponse=void 0;
J.pendingWatchNextResponse=void 0;J.pendingPlayerVars=void 0};
_.eE.Object.defineProperties(Ox.prototype,{api:{configurable:!0,enumerable:!0,get:function(){return this.apiResolver.promise}}});var AH=function(J){L_.call(this,J===void 0?"document_active":J);var c=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(m){c.transition("document_disposed",{event:m})});
window.addEventListener("beforeunload",function(m){c.transition("document_disposed_preventable",{event:m})});
window.addEventListener("unload",function(m){c.transition("document_disposed",{event:m});c.hasRun=new Map})};
_.D(AH,L_);
AH.prototype.runPreventableDispose=function(J,c){if(!this.hasRun.get("document_disposed_preventable")){J(c==null?void 0:c.event);var m,b;if((c==null?0:(m=c.event)==null?0:m.defaultPrevented)||(c==null?0:(b=c.event)==null?0:b.returnValue)){c.event.returnValue||(c.event.returnValue=!0);c.event.defaultPrevented||c.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")};
AH.prototype.runDispose=function(J,c){this.hasRun.get("document_disposed")?this.transition("document_active"):(J(c==null?void 0:c.event),this.hasRun.set("document_disposed",!0),this.transition("flush_logs"))};
AH.prototype.runFlush=function(J,c){J(c==null?void 0:c.event);this.transition("document_active")};
AH.prototype.runActive=function(){};var RM=function(J){L_.call(this,J===void 0?"document_visibility_unknown":J);var c=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(m){document.visibilityState==="visible"?c.transition("document_visible",{event:m}):c.transition("document_hidden",
{event:m})});
_.w("visibility_lifecycles_dynamic_backgrounding")&&(window.addEventListener("blur",function(m){c.transition("document_backgrounded",{event:m})}),window.addEventListener("focus",function(m){c.transition("document_foregrounded",{event:m})}))};
_.D(RM,L_);RM.prototype.runVisible=function(J,c){J(c==null?void 0:c.event);_.w("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_foregrounded")};
RM.prototype.runHidden=function(J,c){J(c==null?void 0:c.event);_.w("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_backgrounded")};
RM.prototype.runBackgrounded=function(J,c){J(c==null?void 0:c.event)};
RM.prototype.runForegrounded=function(J,c){J(c==null?void 0:c.event)};var oM=function(){this.teardownLifecycle=new AH;this.visibilityLifecycle=new RM};
oM.prototype.install=function(){var J=_.s$.apply(0,arguments),c=this;J.forEach(function(m){c.teardownLifecycle.install(m)});
J.forEach(function(m){c.visibilityLifecycle.install(m)})};var QI=function(){oM.call(this);var J={};this.install((J.document_disposed={callback:this.abortSlisAndFlush},J));_.w("combine_ve_grafts")&&(J={},this.install((J.document_disposed={callback:this.flushInteractionLoggingAttachVes},J)));J={};this.install((J.flush_logs={callback:this.logFinalPayload},J));_.w("web_log_cfg_cee_ks")||_.rv(_.ft,BA6)};
_.D(QI,oM);var edo=function(){QI.loggingInstance||(QI.loggingInstance=new QI);return QI.loggingInstance};
QI.prototype.logFinalPayload=function(){if(_.w("web_fp_via_jspb")){var J=new z2_,c=_.Y3();c&&_.aw(J,1,c);c=_.w("jspb_sparse_encoded_pivot")?new wv([{}]):new wv;_.bs(c,380,u_Q,J);OCu("finalPayload",c);_.w("web_fp_via_jspb_and_json")&&_.zB("finalPayload",{csn:_.Y3()})}else _.zB("finalPayload",{csn:_.Y3()})};
QI.prototype.abortSlisAndFlush=function(){h5Q(UP);SG!=null&&SG.flush()};
QI.prototype.flushInteractionLoggingAttachVes=function(){m72(_.C7())};
var BA6=function(){var J=_.Ub("CLIENT_EXPERIMENT_EVENTS");if(J){var c=GDD();J=_.M(J);for(var m=J.next();!m.done;m=J.next())m=m.value,c(m)&&_.zB("genericClientExperimentEvent",{eventType:m});delete _.Zc.CLIENT_EXPERIMENT_EVENTS}};var gQa={};
gQa.YtPlayerBehavior=[_.Ex.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 J=this;this.player_=null;this.useUnifiedPlayer_()&&(this.mainAppPlayer_=void 0);this.playerResolver_=new _.xb;this.playerContainer_=this.initPlayerPromise_=null;this.preparePlayerJobId_=0;
this.isResetForNewPlayback_=!0;this.bootstrapPlayerResponse_=void 0;jme(function(){J.maybeSendAbandonmentPing_()})},
attached:function(){this.disableTouchGestures||(_.YA(this,"pan-down"),_.w("kevlar_pinch_fullscreen")&&_.ks().registerTouchEvents(this,void 0,void 0,"pinchout","pinchin"))},
detached:function(){!this.disableTouchGestures&&_.w("kevlar_pinch_fullscreen")&&_.ks().unregisterTouchEvents(this,"pinchout","pinchin")},
createMainAppPlayer_:function(J,c,m){var b=this;yd(this.useUnifiedPlayer_());if(this.mainAppPlayer_)yd(!1,"MainAppPlayer already created.");else{var x=_.w("kevlar_player_container_query_killswitch")?this.$.container:_.Bj(this.hostElement).querySelector("#container");this.mainAppPlayer_=new Ox(this.getWebPlayerContextConfig_(),x,function(P){return _.Nl(P,b.hostElement)},J,c,m);
this.mainAppPlayer_.api.then(function(P){b.player_=P;b.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&cHQ.resolve(P)})}},
loadVideoWithPlayerResponse:function(J,c){var m=this;if(this.useUnifiedPlayer_()){var b=this.watchNextData,x,P=(x=J.videoDetails)==null?void 0:x.videoId,p,t,I;(x=(p=this.watchNextData)==null?void 0:(t=p.currentVideoEndpoint)==null?void 0:(I=t.watchEndpoint)==null?void 0:I.videoId)&&P!=x&&(b=void 0,_.w("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0));this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerResponse(J,b,c):this.createMainAppPlayer_(J,b,c);this.mainAppPlayer_.api.then(function(){_.cA(m.hostElement,
"yt-player-updated")})}else this.update(fsm(J,c))},
loadVideoWithPlayerVars:function(J){var c=this;this.useUnifiedPlayer_()?(_.w("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0),this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerVars(J):this.createMainAppPlayer_(void 0,void 0,J),this.mainAppPlayer_.api.then(function(){_.cA(c.hostElement,"yt-player-updated")})):this.update({args:J})},
update:function(J){var c=this;if(this.useUnifiedPlayer_())yd(!1,"Invalid method call in kevlar_unified_player.");else{if(this.hasWebPlayerContextConfig_()){this.updateSwfConfig_(J);var m=V_t(J.args);m&&this.get("currentVideoEndpoint.watchEndpoint.videoId",this.watchNextData)==m&&Object.assign(J.args,this.computeWatchNextPlayerVars_(this.watchNextData));this.isResetForNewPlayback_=!1;return this.acquireApi_(J).then(function(b){_.cA(c.hostElement,"yt-player-updated",_.w("kevlar_player_updated_obsolete_player_killswitch")?
b:void 0)})}_.Zt(new _.w3("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))}},
updatePlayerComponents:function(J){var c=this,m;return _.N(function(b){if(b.nextAddress==1)return _.K(b,c.getPlayerPromise(),2);m=b.yieldResult;if(!m)throw Error("sh");J&&c.updatePlayerPlaylist_(J);_.tD(b)})},
acquireApi_:function(J){var c=this;if(this.useUnifiedPlayer_())yd(!1,"Invalid method call in kevlar_unified_player.");else return _.ft.cancelJob(this.preparePlayerJobId_),this.playerContainer_?(yd(this.initPlayerPromise_,"Missing initPlayerPromise_."),this.getPlayerPromise().then(function(m){c.shouldAutoplay_(J)?m.loadVideoByPlayerVars(J.args):m.cueVideoByPlayerVars(J.args)})):this.initPlayerPromise_=this.initPlayerContainer_(J),this.initPlayerPromise_},
initPlayerContainer_:function(J){var c=this;if(this.useUnifiedPlayer_())yd(!1,"Invalid method call in kevlar_unified_player.");else return yd(!this.initPlayerPromise_,"Player is already initialized."),this.initPlayerPromise_&&_.qz(Error("th")),yd(!this.playerContainer_,"ytd-player should only be initialized once."),this.playerContainer_=_.w("kevlar_player_container_query_killswitch")?this.$.container:_.Bj(this.hostElement).querySelector("#container"),EIm().then(function(){var m=c.initPlayer_(J);c.playerResolver_.resolve(m);
return m})},
onPlayerReady_:function(J,c){this.useUnifiedPlayer_()?yd(!1,"Invalid method call in kevlar_unified_player."):(J.removeEventListener("onReady",this.onPlayerReadyEvent_),this.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&cHQ.resolve(J),c(J))},
maybeCallApiMethodOnElement_:function(J,c){if(typeof J[c]==="function")return J[c]()},
maybeAdoptBootstrapPlayer_:function(){var J=window,c,m=(c=J.ytplayer)==null?void 0:c.bootstrapPlayerContainer;if((c=m==null?void 0:m.firstElementChild)&&c.classList.contains("html5-video-player")){var b,x,P=(b=J.ytplayer)==null?void 0:(x=b.bootstrapWebPlayerContextConfig)==null?void 0:x.contextId;b=this.getWebPlayerContextConfig_().contextId;if(P&&P===b){m!==this.playerContainer_&&(m=!1,this.maybeCallApiMethodOnElement_(c,"getPlayerState")===2&&(m=!0),this.playerContainer_.appendChild(c),m||this.maybeCallApiMethodOnElement_(c,
"playVideo"));var p;if((p=J.ytplayer)==null?0:p.bootstrapPlayerResponse)this.bootstrapPlayerResponse_=J.ytplayer.bootstrapPlayerResponse}}},
initPlayer_:function(J){var c=this;if(this.useUnifiedPlayer_())yd(!1,"Invalid method call in kevlar_unified_player.");else return new Promise(function(m){c.maybeAdoptBootstrapPlayer_();var b=J?YYT(J):void 0;b&&b==c.bootstrapPlayerResponse_&&(J.loaded=!0);b=c.playerContainer_;var x=c.getWebPlayerContextConfig_();b=oIQ(b,J,x);c.player_=b;c.onPlayerReadyEvent_=c.onPlayerReady_.bind(c,c.player_,m);c.player_.addEventListener("onReady",c.onPlayerReadyEvent_);c.player_.addEventListener("innertubeCommand",
c.onPlayerInnerTubeCommand_.bind(c))})},
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(J){J.pauseVideo()})},
play:function(){this.getPlayerPromise().then(function(J){J.playVideo()})},
onTouchStart_:function(){if(!this.disableTouchGestures){var J=_.BG().resolve(_.oO).getCurrentPage();J&&J.getScrollTop()<=0?_.YA(this,"pan-down"):_.YA(this,"manipulation")}},
onPinchOut_:function(){this.getPlayerPromise().then(function(J){J.isFullscreen()||J.toggleFullscreen()})},
onPinchIn_:function(){this.getPlayerPromise().then(function(J){J.isFullscreen()&&J.toggleFullscreen()})},
updatePlayerPlaylist_:function(J){var c=this,m,b,x;return _.N(function(P){if(P.nextAddress==1)return m=_.BG().resolve(_.y6(_.zn)),b=!!(m&&m.playlistComponent&&m.playlistComponent.loopOn),_.K(P,c.getPlayerPromise(),2);var p=x=P.yieldResult,t=p.updatePlaylist,I=[];if(_.w("kevlar_player_playlist_use_local_index")){var a,k;var H=(k=(a=J.localCurrentIndex)!=null?a:J.currentIndex)!=null?k:0}else{var T;H=(T=J.currentIndex)!=null?T:0}if(J.contents)for(a=0;a<J.contents.length;a++)if((k=J.contents[a])&&k.playlistPanelVideoRenderer)if(RfR(k)){k=
k.playlistPanelVideoRenderer;T="";k.shortBylineText&&(T=_.OG(k.shortBylineText));var r="";k.title?r=_.OG(k.title):k.unplayableText&&(r=_.OG(k.unplayableText));I.push({author:T,title:r,encrypted_id:k.videoId})}else a<H&&--H;t.call(p,{index:H,list:J.playlistId?J.playlistId:"",loop:b,playlist_title:J.title,playlist_length:I.length,video:I,fetch:0,external_list:"1",title:J.title?J.title:"",playlist_author:J.ownerName?_.OG(J.ownerName):void 0});_.tD(P)})},
focusOnPlayer:function(){_.o3(this,function(){if(this.playerContainer_&&this.playerContainer_.firstElementChild){var J=this.playerContainer_.querySelector(".html5-video-player");J&&(_.eO(_.BG().resolve(_.Lq)),J.focus())}})},
preparePlayer:function(){var J=this;this.useUnifiedPlayer_()?this.mainAppPlayer_||this.createMainAppPlayer_():this.hasWebPlayerContextConfig_()?this.initPlayerPromise_||(new Promise(function(c){if(document.readyState=="complete"||document.readyState=="ready"||document.readyState=="interactive")c();else{var m=function(){document.removeEventListener("DOMContentLoaded",m);c()};
document.addEventListener("DOMContentLoaded",m)}})).then(function(){return EIm()}).then(function(){J.initPlayerPromise_||J.preparePlayerJobId_||(J.preparePlayerJobId_=_.rv(_.ft,function(){J.initPlayerPromise_||(J.initPlayerPromise_=J.initPlayerContainer_())}))}):_.Zt(new _.w3("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))},
updateSwfConfig_:function(J){this.useUnifiedPlayer_()?yd(!1,"Invalid method callin kevlar_unified_player."):this.shouldAutoplay_(J)||(J.args.autoplay="0")},
shouldAutoplay_:function(J){if(this.useUnifiedPlayer_())yd(!1,"Invalid method call in kevlar_unified_player.");else{var c=this.get("args.el",J);return c&&c!="detailpage"&&this.isMiniplayerActive_()||c&&(c=="sponsorshipsoffer"||c=="handlesclaiming")&&this.get("args.autoplay",J)=="0"?!1:(J=YYT(J))&&this.get("playerConfig.playbackStartConfig.startPaused",J)?!1:!0}},
isMiniplayerActive_:function(){return _.BG().resolve(_.Uo).isMiniplayerActive()},
stop:function(){this.maybeSendAbandonmentPing_();var J=this.getPlayer();if(J){var c=J.getPlayerState();_.w("kevlar_player_check_ad_state_on_stop")&&(c=J.getPlayerState(J.getPresentingPlayerType()));c!=5&&J.stopVideo()}},
resetForNewPlayback:function(){this.isResetForNewPlayback_||(this.stop(),this.isResetForNewPlayback_=!0)},
appendTo:function(J,c,m){m=m===void 0?!1:m;var b=this,x,P,p,t;return _.N(function(I){if(I.nextAddress==1)return c||(c=b.hostElement),x=b.useUnifiedPlayer_()?!!b.mainAppPlayer_:!!b.initPlayerPromise_,x?_.K(I,b.getPlayerPromise(),2):(m?J.insertBefore(c,J.firstChild):J.appendChild(c),I.return());P=I.yieldResult;p=P.getPlayerState(P.getPresentingPlayerType());t=!1;if(p==-1||p==1||p==3)t=!0;m?J.insertBefore(c,J.firstChild):J.appendChild(c);t&&P.playVideo();P.setSize(NaN,NaN);_.tD(I)})},
watchNextDataChanged_:function(J){var c=this;J&&(this.useUnifiedPlayer_()&&_.w("kevlar_unified_player_update_watch_next_killswitch")?this.mainAppPlayer_&&jLQ(this.mainAppPlayer_,J):this.getPlayerPromise().then(function(m){m.updateVideoData(c.computeWatchNextPlayerVars_(J))}))},
computeWatchNextPlayerVars_:function(J){if(this.useUnifiedPlayer_()&&_.w("kevlar_unified_player_update_watch_next_killswitch"))yd(!1,"Invalid method call in kevlar_unified_player.");else return{raw_watch_next_response:J}},
maybeSendAbandonmentPing_:function(){var J=this.getPlayer();J&&J.getPlayerState()!=5&&J.getPlayerState()!=0&&J.sendAbandonmentPing()},
getWebPlayerContextConfig_:function(){var J=_.Ub("WEB_PLAYER_CONTEXT_CONFIGS")[this.context];this.playerId&&(J=Object.assign({},J),J.rootElementId=this.playerId);J.serializedExperimentIds&&J.serializedExperimentFlags||_.qz(Error("uh"));return J},
hasWebPlayerContextConfig_:function(){return!!_.Ub("WEB_PLAYER_CONTEXT_CONFIGS")&&!!this.getWebPlayerContextConfig_()},
onPlayerInnerTubeCommand_:function(J){this.useUnifiedPlayer_()?yd(!1,"Invalid method call in kevlar_unified_player."):_.Nl(J,this.hostElement)},
useUnifiedPlayer_:function(){var J=_.w("kevlar_non_watch_unified_player")&&this.context!=="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH";return _.w("kevlar_unified_player")||J}}];var JR_={};JR_.YtPlaylistPanelBehavior=[_.g.YtRendererBehavior,{_noAccessors:!0,properties:{loopOn:Boolean,shuffleOn:Boolean},listeners:{"yt-toggle-button":"onYtToggleButton_"},onYtToggleButton_:function(J){J=J.detail;if(J.actions.loop!=void 0||J.actions["yt-icons:loop"]!=void 0)this.loopOn=J.actions.loop||J.actions["yt-icons:loop"];if(J.actions.shuffle!=void 0||J.actions["yt-icons:shuffle"]!=void 0)this.shuffleOn=J.actions.shuffle||J.actions["yt-icons:shuffle"]},
setMenuData_:function(J){if(!J||!J.playlistButtons||J.isInfinite)return null;for(var c=J.playlistButtons.menuRenderer.topLevelButtons,m=c.length,b=0;b<m;b++)if(c[b].toggleButtonRenderer){var x=c[b].toggleButtonRenderer;x.defaultIcon.iconType=="LOOP"&&this.loopOn?x.isToggled=this.loopOn:x.defaultIcon.iconType=="SHUFFLE"&&this.shuffleOn&&(x.isToggled=this.shuffleOn)}return J.playlistButtons}}];var cRz=function(J){cS.call(this,J,132);this.isDocument=J===document.documentElement};
_.D(cRz,cS);cRz.prototype.calculateScrollDelta=function(J,c,m){var b=0;J<c?b=J<c-100?-48:-8:J>c+m&&(b=J>c+m+100?48:8);return b};
cRz.prototype.JSC$9302_onMouseMove=function(J){this.isDocument||(J.clientX=J.event_.pageX,J.clientY=J.event_.pageY);cS.prototype.JSC$9302_onMouseMove.call(this,J)};var jO=function(){var J=_.Cs.apply(this,arguments)||this;J._noAccessors=!0;J.scrollElement=document.documentElement;J.JSC$12267_dragListGroup=null;J.dragScrollSupport=null;J.onDraggerCreated=function(c){var m=c.JSC$9298_dragger;m.scrollTarget_=J.scrollElement;c=c.draggerEl;m&&c.menuOpened&&m.setEnabled(!1)};
J.onDragStart=function(c){var m=c.draggerEl;c=c.currDragItem;var b=Object.assign({},c==null?void 0:c.data);b.trackingParams=void 0;m.data=b;m.style.position="absolute";m.style.width=(c==null?void 0:c.clientWidth)+"px";m.style.zIndex="2030";m.onDrag&&m.onDrag();_.w("web_owner_document_fallback_killswitch")?(c=document.querySelector("ytd-app"))&&_.Bj(c).appendChild(m):(c=_.fw(m),(b=c.querySelector("ytd-app"))?_.Bj(b).appendChild(m):c.body.appendChild(m));J.dragScrollSupport=new cRz(J.scrollElement);
J.dragScrollSupport.horizontalScrolling_=!1;m=J.dragScrollSupport;m.constrainScroll_=!!m.margin_&&!1};
J.onDrop=function(c){J.handleDrop(c);J.dragScrollSupport&&(_.yr(J.dragScrollSupport),J.dragScrollSupport=null)};
J.onReorderableScroll=function(){if(J.JSC$12267_dragListGroup){var c=J.JSC$12267_dragListGroup;wAu(c,c.currDragItem_)}};
return J};
_.D(jO,_.Cs);jO.prototype.detached=function(){_.mvQ(this)};
_.mvQ=function(J){J.JSC$12267_dragListGroup&&(_.Is(J.JSC$12267_dragListGroup,Iu2,J.onDragStart),_.Is(J.JSC$12267_dragListGroup,kmQ,J.onDragStart),J.JSC$12267_dragListGroup.dispose(),J.JSC$12267_dragListGroup=null);J.dragScrollSupport&&(_.yr(J.dragScrollSupport),J.dragScrollSupport=null);J.scrollElement.removeEventListener("scroll",J.onReorderableScroll)};
_.baj=function(J,c,m,b){b=b===void 0?"":b;_.mvQ(J);m&&(J.scrollElement=m);J.JSC$12267_dragListGroup=new Y6;J.JSC$12267_dragListGroup.hysteresisDistance_=2;iXj(J.JSC$12267_dragListGroup,c);J.JSC$12267_dragListGroup.draggerElClasses_=CG("dragging").split(" ");b&&n2a(J.JSC$12267_dragListGroup,function(x){var P=x||document,p=null;P.getElementsByClassName?p=P.getElementsByClassName(b)[0]:p=t2$("*",b,x);return p||x});
_.wp(J.JSC$12267_dragListGroup,NM6,J.onDraggerCreated);_.wp(J.JSC$12267_dragListGroup,Iu2,J.onDragStart);_.wp(J.JSC$12267_dragListGroup,kmQ,J.onDrop);J.JSC$12267_dragListGroup.init();J.scrollElement.addEventListener("scroll",J.onReorderableScroll,{passive:!0})};
jO.prototype.handleDrop=function(){};
_.eE.Object.defineProperties(jO.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
_.O([_.U({value:100}),_.R("design:type",Number)],jO.prototype,"scrollMargin",void 0);jO=_.O([_.au()],jO);_.xv6=[jO.prototype];_.FP={YtSparklesClickLocationBehavior:{clickTargetMap:null,containerId:null,handleClick:function(J,c,m){var b=this.getClickTarget_(c);if(b&&this.isClickAllowed_(b)){c.preventDefault();J=(0,_.Lw.unsafeClone)(J);var x=this.getContainerBoundingRect();c=this.getRelativeClickXy_(c,x);this.expandEndpointUrlMacros_(J,{NX:c[0],NY:c[1],NB:b.code});m&&this.truncateWebCommendMetadataUrl_(J);_.cA(this.hostElement,"yt-navigate",{endpoint:J})}},
getClickTarget_:function(J){if(!this.clickTargetMap)return null;J=_.OT(J)||[];J=_.M(J);for(var c=J.next();!c.done;c=J.next()){c=c.value;if(c===_.Bj(this.hostElement).querySelector("#menu"))break;if(c=this.clickTargetMap.get(c.id))return c}return null},
getRelativeClickXy_:function(J,c){var m=J.detail.x,b=J.detail.y;_.w("use_on_click_for_desktop_display_ad")&&J.clientX!=null&&J.clientY!=null&&(m=J.clientX,b=J.clientY);J=Math.round(m-c.left);c=Math.round(b-c.top);return J<0||c<0?[null,null]:[J,c]},
getContainerBoundingRect:function(){return _.Bj(this.hostElement).querySelector("#"+this.containerId).getBoundingClientRect()},
expandEndpointUrlMacros_:function(J,c){for(var m=_.M(J.loggingUrls||[]),b=m.next();!b.done;b=m.next())b=b.value,b.baseUrl&&(b.baseUrl=Dd(b.baseUrl,c));J.urlEndpoint&&J.urlEndpoint.url&&(J.urlEndpoint.url=Dd(J.urlEndpoint.url,c));J.commandMetadata&&J.commandMetadata.webCommandMetadata&&J.commandMetadata.webCommandMetadata.url&&(J.commandMetadata.webCommandMetadata.url=Dd(J.commandMetadata.webCommandMetadata.url,c))},
truncateWebCommendMetadataUrl_:function(J){if(J.commandMetadata&&J.commandMetadata.webCommandMetadata&&J.commandMetadata.webCommandMetadata.url){var c=J.commandMetadata.webCommandMetadata.url,m=c.indexOf("&pp=");if(m>0){var b=c.indexOf("&",m+1);J.commandMetadata.webCommandMetadata.url=b>m&&b<c.length?c.slice(0,m)+c.slice(b):c.slice(0,m)}}},
configureClickTargets:function(J,c,m){this.containerId=J;this.clickTargetMap=new Map;J=_.M(c);for(c=J.next();!c.done;c=J.next())if(c=c.value,c.location){var b=m.get(c.location);b&&(_.mq(_.Bj(this.hostElement).querySelector("#"+b),"yt-simple-endpoint",this.isClickAllowed_(c)),this.clickTargetMap.set(b,c))}},
isClickAllowed_:function(J){return J.behaviorType==="PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"||J.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"||J.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"||J.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"}}};_.lu={};
_.lu.YtLazyListBehavior=[_.Qw.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 J=(this.constructor.generatedFrom||this).observers;J||(J=[]);J.push("deepLazyListObserver_("+this.itemsPath+".*)");this.constructor.generatedFrom.observers=
J}},
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 J=this.renderElementsOutsideVisibleArea_;J&&(Iya(J,4),J.processSignal())},
deepLazyListObserver_:function(J){var c=this;if(J){var m=J.value||[];if(this.itemsPath==J.path){var b=this.nonDeferredItemCount;J=0;b>-1&&m.length>b&&(J=_.Ub("REMAINING_DOVA_DEFERRED_CHUNKS",-1));J>0?(b>0&&(b=m.slice(0,b),this.setInitialItemsOnDataChanged(b)),(b=this.renderElementsOutsideVisibleArea_)?b.cancel():(b=this.renderElementsOutsideVisibleArea_=new _.jF(2,"eocs"),_.j1q(window,"scroll",function(){return c.renderDeferredElements()})),_.FL(b,function(){c.setInitialItemsOnDataChanged(m)}),_.q3("REMAINING_DOVA_DEFERRED_CHUNKS",
J-1)):this.setInitialItemsOnDataChanged(m)}else if(this.itemsPath+".splices"==J.path)this.onItemsUpdated_(m);
else b="shownItems"+J.path.substr(this.itemsPath.length),this.useSignals&&b==="shownItems.length"||this.notifyPath(b,J.value)}else this.cancelPendingTasks_()},
onItemsUpdated_:function(J){J&&(this.items_=this.get(this.itemsPath))&&(this.updateChangeRecord_(J),this.length_=this.items_.length,this.canShowMore=this.shownCount<this.length_,this.autoFill?(this.lastChunkTime_=Date.now(),this.tryRenderChunk_()):this.fillRemainingListItems())},
updateChangeRecord_:function(J){J=J.indexSplices;for(var c=0,m=J.length;c<m;c++){var b=J[c];if(b.index<this.shownCount&&(b.removed&&this.splice("shownItems",b.index,b.removed.length),b.addedCount)){var x=b.object.slice(b.index,b.index+b.addedCount);b=["shownItems",b.index,0];b.push.apply(b,x);this.splice.apply(this,b)}}this.shownCount=this.shownItems?this.shownItems.length:0},
setInitialItemsOnDataChanged:function(J){this.cancelPendingTasks_();J||(J=[]);this.items_=J;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&&(_.Ss("DISABLE_AUTOFILL")||this.disableAutoFill?this.fillRemainingListItems():(this.chunkCount_=this.initialCount,this.lastChunkTime_=Date.now(),this.canShowMore&&_.o3(this,this.tryRenderChunk_)))},
fillRange_:function(J,c){this.canShowMore&&this.items_&&(J=this.items_.slice(J,c),J.unshift("shownItems"),this.push.apply(this,J),this.shownCount=c,this.canShowMore=this.shownCount<this.length_)},
tryRenderChunk_:function(){var J=this;this.canShowMore&&_.hO(this,"renderChunk",function(){J.requestRenderChunk_()})},
requestRenderChunk_:function(){if(_.Ss("SCHEDULED_LAZY_LIST")||this.renderDelay)return this.shouldUseTaskManager()||this.canScheduleJobs?(this.cancelPendingTasks_(),this.lazyListRenderJobId_=_.at(this.getTaskManager(),this.boundRenderChunk_,this.renderDelay),!0):!1;requestAnimationFrame(this.boundRenderChunk_);return!0},
cancelPendingTasks_:function(){this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_);var J=this.renderElementsOutsideVisibleArea_;J&&(J.cancel(),this.renderElementsOutsideVisibleArea_=null)},
renderChunk_:function(){var J=Date.now();this.chunkCount_=Math.round(this.targetFrameTime_/(J-this.lastChunkTime_)*this.chunkCount_)||this.minChunkSize;this.lastChunkTime_=J;this.fillRange_(this.shownCount,Math.min(this.shownCount+this.chunkCount_,this.length_));this.lazyListRenderJobId_=0;this.tryRenderChunk_()},
computeFrameTime_:function(J){return Math.ceil(1E3/J)},
onCanShowMoreUpdated_:function(J){this.data&&this.items_!==null&&(J?this.partiallyRenderedItems_.add(this.items_):this.partiallyRenderedItems_.delete(this.items_))},
canScheduleJobsChanged_:function(J){!this.shouldUseTaskManager()&&this.data&&(!J&&this.canShowMore?(_.sVr(this,"renderChunk"),this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_)):J&&this.partiallyRenderedItems_.has(this.items_)&&(_.w("kevlar_lazy_list_resume_for_autofill")?this.autoFill&&this.tryRenderChunk_():this.tryRenderChunk_()))}}];var gO;_.yI={};
gO=function(){var J=_.Cs.apply(this,arguments)||this;J.atStart=!0;J.atEnd=!0;J.startIndex=0;J.endIndex=0;J.scrollCount=0;J.initialStartIndex=0;J.disableScrollEventListener=!1;J.useFloorScrolling=!1;J.isSearch=!1;J.dragging=!1;J.dragMouseStart=0;J.dragOffsetStart=0;J.disableWheelScroll=!1;J.centerListItems=!1;J.offset=0;J.minComponentWidth=0;J.marginWidthRight=0;J.marginWidthLeft=0;J.setButtonsStateRequested=!1;J.itemsVisibilityObserver=null;J.fullyVisibleItemsIndices=[];J.JSC$12278_onWheelScroll=function(c){if(J.isSearch&&
!J.disableWheelScroll&&_.w("desktop_enable_dmpanel_wheel_scroll")){var m=c.shiftKey?Math.abs(c.deltaY)>Math.abs(c.deltaX)?c.deltaY:c.deltaX:c.deltaX;m!==0&&(c.preventDefault(),J.ytLazyListBehavior.fillRemainingListItems(),J.offset+=m,BX(J),J.reposition_())}};
J.onPointerDown=function(c){VRQ(J)&&(J.dragMouseStart=c.clientX,J.dragOffsetStart=J.offset,J.dragging=!0)};
J.onPointerMove=function(c){VRQ(J)&&J.dragging&&(J.ytLazyListBehavior.fillRemainingListItems(),J.offset=J.dragOffsetStart-(c.clientX-J.dragMouseStart),BX(J),J.reposition_())};
J.onPointerUp=function(){VRQ(J)&&(J.dragging=!1)};
return J};
_.D(gO,_.Cs);var PXa=function(J){var c=_.Bj(J.hostElement).querySelector("#items").children;if(!c)return 0;var m=0;J=_.M(J.fullyVisibleItemsIndices);for(var b=J.next();!b.done;b=J.next())m+=c[b.value].clientWidth;return m},VRQ=function(J){return J.isSearch&&_.w("desktop_enable_dmpanel_click_drag_scroll")};
gO.prototype.created=function(){this.cachedViewportWidth=_.Ub("initialInnerWidth")||window.innerWidth;this.JSC$12278_cachedViewportHeight=_.Ub("initialInnerHeight")||window.innerHeight;_.Ub("REMAINING_DOVA_DEFERRED_CHUNKS",-1)==-1&&_.q3("REMAINING_DOVA_DEFERRED_CHUNKS",6)};
gO.prototype.attached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.addEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.w("desktop_enable_dmpanel_scroll")&&this.addScrollEventListeners();MRQ(this)};
gO.prototype.detached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.removeEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.w("desktop_enable_dmpanel_scroll")&&this.removeScrollEventListeners();var J;(J=this.itemsVisibilityObserver)==null||J.disconnect();this.itemsVisibilityObserver=null;var c;(c=this.itemsObserver)==null||c.disconnect()};
var MRQ=function(J){var c=_.Bj(J.hostElement).querySelector("#scroll-container");if(c){if(!J.itemsVisibilityObserver){var m=window.getComputedStyle(c).marginRight;J.itemsVisibilityObserver=new IntersectionObserver(function(b){pJz(J,b)},{root:c,
rootMargin:m,threshold:.98})}if(c=_.Bj(J.hostElement).querySelector("#items"))J.itemsObserver=new BPj(c,function(b){Nn8(J,b)})}},Nn8=function(J,c){tRz(J)&&(Array.from(c.addedNodes).filter(function(m){return m.nodeType===Node.ELEMENT_NODE}).forEach(function(m){J.itemsVisibilityObserver&&J.itemsVisibilityObserver.observe(m)}),Array.from(c.removedNodes).filter(function(m){return m.nodeType===Node.ELEMENT_NODE}).forEach(function(m){J.itemsVisibilityObserver&&J.itemsVisibilityObserver.unobserve(m)}))},
pJz=function(J,c){var m=new Set(J.fullyVisibleItemsIndices);
c=_.M(c);for(var b=c.next();!b.done;b=c.next()){b=b.value;var x=b.target.parentElement;x?(x=Array.from(x.children).indexOf(b.target),b.isIntersecting?m.add(x):m.has(x)&&m.delete(x)):_.qz(new _.w3("Parent element not found",b.target.nodeName))}J.fullyVisibleItemsIndices=Array.from(m).sort(function(P,p){return P-p});
m.size===0?_.qz(new _.w3("No visible entries in horizontal list")):(J.startIndex=J.fullyVisibleItemsIndices[0],J.endIndex=J.fullyVisibleItemsIndices[J.fullyVisibleItemsIndices.length-1])},tRz=function(J){J.data?J=(J=J.data)&&J.itemSizeConstraint?"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===J.itemSizeConstraint:!1:J=!1;
return J};
_.V=gO.prototype;_.V.addScrollEventListeners=function(){var J=_.Bj(this.hostElement).querySelector("#scroll-container");J.style.touchAction="pan-y";J.addEventListener("wheel",this.JSC$12278_onWheelScroll);J.addEventListener("pointerdown",this.onPointerDown);J.addEventListener("pointermove",this.onPointerMove);window.addEventListener("pointerup",this.onPointerUp)};
_.V.removeScrollEventListeners=function(){var J=_.Bj(this.hostElement).querySelector("#scroll-container");J.removeEventListener("wheel",this.JSC$12278_onWheelScroll);J.removeEventListener("pointerdown",this.onPointerDown);J.removeEventListener("pointermove",this.onPointerMove);window.removeEventListener("pointerup",this.onPointerUp)};
_.V.reset=function(){this.scrollCount=this.offset=0;this.reposition_();this.marginWidthLeft=this.marginWidthRight=this.minComponentWidth=0;this.initialStartIndex>0&&_.o3(this,this.setStartIndex,[this.initialStartIndex])};
_.V.reposition_=function(){var J=_.Ub("HTML_DIR")=="rtl"?"":"-",c=_.Bj(this.hostElement).querySelector("#items");c&&(c.style.transform="translateX("+J+this.offset+"px)");this.requestButtonsStateUpdate_()};
_.V.requestButtonsStateUpdate_=function(){this.setButtonsStateRequested||(this.setButtonsStateRequested=!0,_.o3(this,this.setButtonsState_))};
_.V.setButtonsState_=function(){this.setButtonsStateRequested=!1;var J=_.Bj(this.hostElement).querySelector("#items").firstElementChild;if(J){this.minComponentWidth||(this.minComponentWidth=IsL(this,J));J=_.Bj(this.hostElement).querySelector("#scroll-container").clientWidth;var c=_.Bj(this.hostElement).querySelector("#items").clientWidth,m=this.get(this.ytLazyListBehavior.itemsPath,this);if(m){var b=Math.round(J/this.minComponentWidth)||1;this.fullyVisibleItemsIndices.length===0&&(this.startIndex=
Math.round(this.offset/this.minComponentWidth),this.endIndex=Math.min(this.startIndex+b,m.length)-1)}this.ytLazyListBehavior.canShowMore?c+this.minComponentWidth>=this.offset+J&&(this.atEnd=!1):this.atEnd=this.offset+J>=c-20?!0:!1;this.atStart=this.offset<=20}};
_.V.setStartIndex=function(J){if(!this.minComponentWidth){var c=_.Bj(this.hostElement).querySelector("#items").firstElementChild;if(!c)return;this.minComponentWidth=IsL(this,c)}this.ytLazyListBehavior.fillRemainingListItems();this.offset=this.minComponentWidth*J;BX(this);this.reposition_()};
_.V.nextClick_=function(){this.ytLazyListBehavior.fillRemainingListItems();_.be();var J=_.Bj(this.hostElement).querySelector("#scroll-container").clientWidth;_.w("web_min_component_width_killswitch")||this.minComponentWidth||(this.minComponentWidth=IsL(this,_.Bj(this.hostElement).querySelector("#items").firstElementChild));J=this.useFloorScrolling?Math.floor(J/this.minComponentWidth)||1:Math.round(J/this.minComponentWidth)||1;this.centerListItems&&this.scrollCount===0&&K0L(this);this.offset+=tRz(this)?
PXa(this):J*this.minComponentWidth;BX(this);this.reposition_();this.scrollCount++};
_.V.prevClick_=function(){var J=_.Bj(this.hostElement).querySelector("#scroll-container").clientWidth;J=this.useFloorScrolling?Math.floor(J/this.minComponentWidth)||1:Math.round(J/this.minComponentWidth)||1;this.resizeSupportEnabled?(this.scrollCount--,this.offset=tRz(this)?PXa(this):this.minComponentWidth*this.scrollCount-1):this.offset-=tRz(this)?PXa(this):J*this.minComponentWidth;this.centerListItems&&K0L(this);BX(this);this.reposition_()};
_.V.onIronResize_=function(){this.resizeSupportEnabled&&_.o3(this,this.checkComponentWidthResize);this.requestButtonsStateUpdate_()};
_.V.onItemsTransitionEnd_=function(J){_.Ac(J)===_.Bj(this.hostElement).querySelector("#items")&&this.ytRendererBehavior.markDirty()};
_.V.onChildElementFocus_=function(J){J=J.target.closest("#items > *");var c=_.Bj(this.hostElement).querySelector("#scroll-container");if(c.contains(J)){if(_.w("web_horizontal_list_behavior_focus_killswitch"))if(J.offsetLeft<this.offset)this.offset=Math.abs(J.offsetLeft)<J.clientWidth?0:J.offsetLeft;else if(J.offsetLeft+J.clientWidth>this.offset+c.clientWidth)this.ytLazyListBehavior.fillRemainingListItems(),_.be(),this.offset=J.offsetLeft+J.clientWidth-c.clientWidth;else return;else{var m=_.Bj(this.hostElement).querySelector("#items"),
b=_.Ub("HTML_DIR")==="rtl",x=b?m.clientWidth-J.offsetLeft:J.offsetLeft;m=b?m.clientWidth-(J.offsetLeft+J.clientWidth):J.offsetLeft+J.clientWidth;var P=b?x>this.offset+c.clientWidth:x<this.offset,p=b?m<this.offset:m>this.offset+c.clientWidth,t=b?P:p;if(b?p:P)c=b?m:x,this.offset=Math.abs(c)<J.clientWidth?0:c;else if(t)this.ytLazyListBehavior.fillRemainingListItems(),_.be(),this.offset=(b?x:m)-c.clientWidth;else return}BX(this);this.reposition_()}};
_.V.observeShownItems_=function(){this.reset()};
_.V.checkComponentWidthResize=function(){var J=_.Bj(this.hostElement).querySelector("#items").firstElementChild;J&&(J=IsL(this,J),this.centerListItems||J!==this.minComponentWidth)&&(this.minComponentWidth=J,this.offset=J*this.scrollCount,this.centerListItems&&K0L(this),BX(this),this.reposition_())};
var IsL=function(J,c){var m=window.getComputedStyle(c).marginRight;m=Math.floor(Number(m.replace("px","")));var b=window.getComputedStyle(c).marginLeft;b=Math.floor(Number(b.replace("px","")));J.centerListItems&&!J.marginWidthRight&&(J.marginWidthRight=m,J.marginWidthLeft=b);return J.resizeSupportEnabled?c.getBoundingClientRect().width+m:c.offsetWidth+m},BX=function(J){var c=_.Bj(J.hostElement).querySelector("#scroll-container").clientWidth,m=_.Bj(J.hostElement).querySelector("#items").clientWidth;
J.offset<0?J.offset=0:J.offset+c>=m&&(J.offset=m-c)},K0L=function(J){J.offset-=(_.Bj(J.hostElement).querySelector("#scroll-container").clientWidth+J.marginWidthRight-J.minComponentWidth)/2-J.marginWidthLeft};
_.eE.Object.defineProperties(gO.prototype,{nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){var J=_.Ub("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",-1);if(J==-1)J=this.JSC$12278_cachedViewportHeight,J=J>1320?5:J>1020?4:J>730?3:J>430?2:1;else if(J==0)return 0;_.q3("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",J-1);J=_.Ub("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",-1);if(J>-1)return J;J=this.cachedViewportWidth;J=J>1600?6:J>1400?5:J>1300?4:J>1090?5:J>870?4:J>660?3:2;_.q3("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",
J);return J},
set:function(){}},
resizeSupportEnabled:{configurable:!0,enumerable:!0,get:function(){return!_.w("kevlar_disable_component_resizing_support")&&!!this.supportComponentResize}}});
gO.prototype.observeShownItems_=gO.prototype.observeShownItems_;gO.prototype.onChildElementFocus_=gO.prototype.onChildElementFocus_;gO.prototype.onItemsTransitionEnd_=gO.prototype.onItemsTransitionEnd_;gO.prototype.onIronResize_=gO.prototype.onIronResize_;gO.prototype.prevClick_=gO.prototype.prevClick_;gO.prototype.nextClick_=gO.prototype.nextClick_;gO.prototype.setButtonsState_=gO.prototype.setButtonsState_;gO.prototype.requestButtonsStateUpdate_=gO.prototype.requestButtonsStateUpdate_;
gO.prototype.reposition_=gO.prototype.reposition_;gO.prototype.reset=gO.prototype.reset;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],gO.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lu.YtLazyListBehavior),_.R("design:type",Object)],gO.prototype,"ytLazyListBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],gO.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],gO.prototype,"atStart",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],gO.prototype,"atEnd",void 0);_.O([_.U(),_.R("design:type",Object)],gO.prototype,"startIndex",void 0);_.O([_.U(),_.R("design:type",Object)],gO.prototype,"endIndex",void 0);_.O([_.U({value:6}),_.R("design:type",Number)],gO.prototype,"initialCount",void 0);_.O([_.U(),_.R("design:type",Object)],gO.prototype,"scrollCount",void 0);_.O([_.U(),_.R("design:type",Object)],gO.prototype,"initialStartIndex",void 0);
_.O([_.U(),_.R("design:type",Object)],gO.prototype,"disableScrollEventListener",void 0);_.O([_.U(),_.R("design:type",Object)],gO.prototype,"supportComponentResize",void 0);_.O([_.U({value:function(){var J=this;return function(){return J.prevClick_()}}}),
_.R("design:type",Function)],gO.prototype,"boundPrevClick",void 0);_.O([_.U({value:function(){var J=this;return function(){return J.nextClick_()}}}),
_.R("design:type",Function)],gO.prototype,"boundNextClick",void 0);_.O([_.U(),_.R("design:type",Object)],gO.prototype,"useFloorScrolling",void 0);_.O([_.U(),_.R("design:type",Object)],gO.prototype,"isSearch",void 0);_.O([_.U(),_.R("design:type",Object)],gO.prototype,"dragging",void 0);_.O([_.U(),_.R("design:type",Object)],gO.prototype,"dragMouseStart",void 0);_.O([_.U(),_.R("design:type",Object)],gO.prototype,"dragOffsetStart",void 0);
_.O([_.U(),_.R("design:type",Object)],gO.prototype,"disableWheelScroll",void 0);_.O([_.U(),_.R("design:type",Object)],gO.prototype,"centerListItems",void 0);_.O([_.ps("iron-resize"),_.NE("guideOpened"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],gO.prototype,"onIronResize_",null);_.O([_.ps("transitionend"),_.R("design:type",Function),_.R("design:paramtypes",[Event]),_.R("design:returntype")],gO.prototype,"onItemsTransitionEnd_",null);
_.O([_.ps("focusin"),_.R("design:type",Function),_.R("design:paramtypes",[Event]),_.R("design:returntype")],gO.prototype,"onChildElementFocus_",null);_.O([_.NE("shownItems"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],gO.prototype,"observeShownItems_",null);gO=_.O([_.au()],gO);_.yI.YtdHorizontalListBehavior=[];_.yI.YtdHorizontalListBehavior.push(_.rI,_.g.YtRendererBehavior,_.lu.YtLazyListBehavior,_.SO.YtdGuideStateAwareBehavior,gO.prototype);var lsG=["APP_STATE","PI"];var CX$=_.Oo(["about:blank"]),asB={pushState:window.history.pushState,replaceState:window.history.replaceState};var Jt=function(J){this.initialized=!1;this.internalReplaceState=this.internalPushState=null;this.history=J;this.internalPushState=J.pushState.bind(J);this.internalReplaceState=J.replaceState.bind(J)};
Jt.prototype.init=function(){this.initialized=!0};
Jt.prototype.pushState=function(J,c){this.initialized||this.init();this.internalPushState&&this.internalPushState(J,"",c)};
Jt.prototype.replaceState=function(J,c){this.initialized||this.init();this.internalReplaceState&&this.internalReplaceState(J,"",c)};
Jt.prototype.getState=function(){return this.history&&this.history.state};var kd6=function(J){var c=function(){var m=J.apply(this,arguments)||this;m.boundHistoryPushState=!1;m.boundHistoryReplaceState=!1;m.debugInfo={};return m};
_.D(c,J);c.prototype.init=function(){var m=_.id("IFRAME");_.Yh(m,_.cm(CX$));m.sandbox="allow-same-origin";m.style.display="none";this.iframe=m;document.body.appendChild(m);this.bindHistoryStateFunctions();J.prototype.init.call(this)};
c.prototype.bindHistoryStateFunctions=function(){var m=this,b=[],x;this.iframe&&((x=this.iframe.contentWindow)==null?0:x.history)&&(x=this.iframe.contentWindow.history)&&(b.push(x),Object.getPrototypeOf(x)&&b.push(Object.getPrototypeOf(x)));window.history&&b.push(window.history);x=window.history;Object.getPrototypeOf(x)&&b.push(Object.getPrototypeOf(x));b.push(asB);x=function(p){for(var t=null,I=0;I<b.length;I++){var a=b[I][p];if(typeof a==="function"){t=a.bind(window.history);m.debugInfo[p]=I;break}}return t};
if(!this.boundHistoryReplaceState){var P=x("replaceState");P&&(this.internalReplaceState=P,this.boundHistoryReplaceState=!0)}!this.boundHistoryPushState&&(x=x("pushState"))&&(this.internalPushState=x,this.boundHistoryPushState=!0)};
return c}(Jt),HaC=function(){return kd6.call(this,window.history)||this};
_.D(HaC,kd6);HaC.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.boundHistoryPushState!==this.boundHistoryReplaceState};var cT=function(J){this.browserHistory=J;this.initialized=!1};
cT.prototype.init=function(){this.initialized||(this.browserHistory.init(),this.initialized=!0,window.addEventListener("popstate",this.handlePopstate.bind(this)))};
cT.prototype.pushState=function(J,c){this.initialized||this.init();this.browserHistory.pushState(J,c)};
cT.prototype.replaceState=function(J,c){this.initialized||this.init();this.browserHistory.replaceState(J,c)};
cT.prototype.handlePopstate=function(J){return J.state};_.iaL=function(J,c,m,b,x){this.endpoint=J;this.forward=c;this.historyEntry=m;this.JSC$26575_savedComponentState=b;this.legacyBorder=x===void 0?!1:x};var nI6=function(J,c){this.rootData=J;this.scrollTop=c};var wx=new _.oE("PAGE_REQUEST_TOKEN"),OuL=new _.oE("FETCH_PBJ_TOKEN");_.mB=new _.oE("EPHEMERAL_STORE_TOKEN");_.bG=function(J){this.data=Object.assign({},J);var c;(c=this.data.innertubeResponse)==null||delete c.frameworkUpdates};
_.bG.prototype.isExpired=function(){return Number(this.data.expireTimestampMs||0)<(0,_.y4)()};
_.xg=function(J){return Object.assign({},J.data.innertubeResponse,{cacheMetadata:{isCacheHit:!0}})};var Tnu=function(){this.maxSize=100;this.timeToDataCache=new Map};
Tnu.prototype.get=function(J){var c=this.timeToDataCache.get(J);c&&(this.timeToDataCache.delete(J),this.timeToDataCache.set(J,c));if(c&&c.rootData&&(_.w("web_use_response_store_for_history_cache")||_.w("mweb_use_new_history_manager"))){var m=_.BG().resolve(_.mB),b=wJC(c),x=!!b;if(b){if(b.content){var P=xT(m,b.content);x&&P?c.rootData.response=_.xg(P):x=!1}b.player&&(P=xT(m,b.player),x&&P?c.rootData.playerResponse=_.xg(P):x=!1);b.reelSequence&&(m=xT(m,b.reelSequence),x&&m?c.rootData.reelWatchSequenceResponse=
_.xg(m):x=!1)}x||(this.timeToDataCache.delete(J),c=void 0)}return c};
Tnu.prototype.set=function(J,c){if(c.rootData&&(_.w("web_use_response_store_for_history_cache")||_.w("mweb_use_new_history_manager"))){var m=wJC(c),b=Object.assign({},c.rootData);m&&(m.content&&c.rootData.response&&(rR8(this,m.content,c.rootData.response),b.response=null),m.player&&c.rootData.playerResponse&&(rR8(this,m.player,c.rootData.playerResponse),b.playerResponse=null),m.reelSequence&&c.rootData.reelWatchSequenceResponse&&(rR8(this,m.reelSequence,c.rootData.reelWatchSequenceResponse),b.reelWatchSequenceResponse=
null));c=new nI6(b,c.scrollTop)}this.timeToDataCache.has(J)?this.timeToDataCache.delete(J):this.timeToDataCache.size>=this.maxSize&&(m=this.timeToDataCache.keys().next(),this.timeToDataCache.delete(m.value));this.maxSize!==0&&this.timeToDataCache.set(J,c)};
Tnu.prototype.clear=function(){this.timeToDataCache.clear()};
var wJC=function(J){var c=_.BG().resolve(_.y6(wx)),m;if((m=J.rootData)==null?0:m.endpoint)return c==null?void 0:Aju(c,J.rootData.endpoint);var b;_.qz(new _.w3("History snapshot response data does not contain endpoint",(b=J.rootData)==null?void 0:b.url));return null},rR8=function(J,c,m){if(J.maxSize>0){var b;
(J=(b=m.responseContext)==null?void 0:b.maxAgeSeconds)&&Number(J)>0&&(b=_.BG().resolve(_.mB),m=JT(m,J),b.put(c,new _.bG(m)))}};var smC=function(J,c,m){this.endpoint=c;this.JSC$26580_savedComponentState=m===void 0?null:m;this.entryTime=J};var mcT=1;var VH=function(J){var c=function(){var m=J.apply(this,[].concat(_.L6(_.s$.apply(0,arguments))))||this;m.historyEntryTime=0;m.historySnapshotCache=m.createHistoryCache();return m};
_.D(c,J);c.prototype.createHistoryCache=function(){return new Tnu};
c.prototype.saveAndReplace=function(m,b,x){var P=window.location.href;var p=p===void 0?{}:p;var t=(t=this.browserHistory.getState())&&t.entryTime?t.entryTime:bJJ();m=this.createNewHistoryEntry(m,p,t);this.saveSnapshot(t,b,x);this.replaceState(m,P||window.location.href)};
c.prototype.saveAndPush=function(m,b,x,P,p){p=p===void 0?{}:p;this.saveSnapshot(this.historyEntryTime,x,P);x=this.historySnapshotCache;P=this.historyEntryTime;var t=x.timeToDataCache.keys();t=_.M(t);for(var I=t.next();!I.done;I=t.next())I=I.value,I>P&&x.timeToDataCache.delete(I);b=this.createNewHistoryEntry(b,p);this.pushState(b,m)};
c.prototype.saveSnapshot=function(m,b,x){this.historySnapshotCache.set(m,new nI6(b,x))};
c.prototype.createNewHistoryEntry=function(m,b,x){x=x===void 0?bJJ():x;return new smC(x,m,b)};
c.prototype.handlePopstate=function(m){var b=J.prototype.handlePopstate.call(this,m),x=null,P=null,p=!1,t=null;b&&b.entryTime&&(t=this.historySnapshotCache.get(b.entryTime)||null,p=b.entryTime>this.historyEntryTime,this.historyEntryTime=b.entryTime,x=b.endpoint,P=b.JSC$26580_savedComponentState);this.handleHistoryCacheLoad(new _.iaL(x,p,t,P),m);return b};
c.prototype.pushState=function(m,b){Number(m==null?void 0:m.entryTime)>=0&&(this.historyEntryTime=m.entryTime);J.prototype.pushState.call(this,m,b)};
c.prototype.replaceState=function(m,b){Number(m==null?void 0:m.entryTime)>=0&&(this.historyEntryTime=m.entryTime);J.prototype.replaceState.call(this,m,b)};
c.prototype.handleHistoryCacheLoad=function(){};
return c}(cT),L08=function(){var J=VH.call(this,new HaC)||this;
J.dispatchElement=null;J.entryIndex=0;return J};
_.D(L08,VH);_.V=L08.prototype;_.V.init=function(J){J=J===void 0?!0:J;VH.prototype.init.call(this);this.initialized||(J||this.saveAndReplace(null,null,0),"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"))};
_.V.handlePopstate=function(J){var c=null;J.state||(c="History popstate has no state - "+this.getDebugString());if(!this.dispatchElement)return VH.prototype.handlePopstate.call(this,J);var m=new CustomEvent("yt-history-pop",{cancelable:!0});_.m9(this.dispatchElement,"yt-history-pop",[m,{errorMsg:c}]);_.bJ(this.dispatchElement,"yt-close-all-popups-action");if(!m.defaultPrevented){m=_.BG().resolve(_.oO);c=m.getCurrentData();var b=m.getCurrentPage();m=0;b?(b=_.m9(this.dispatchElement,"yt-get-page-offset",
[b]),b.length>0&&(m=b[0])):_.qz(new _.w3("getCurrentPage returned undefined",{debugString:this.getDebugString(),page:c?c.page:"undefined"}));c&&(c.csn=_.Y3());this.saveSnapshot(this.historyEntryTime,c,m)}return VH.prototype.handlePopstate.call(this,J)};
_.V.handleHistoryCacheLoad=function(J,c){J.forward?this.entryIndex++:this.entryIndex--;this.dispatchElement&&(_.M(_.bJ(this.dispatchElement,"yt-history-will-navigate",[c])).next().value||_.m9(this.dispatchElement,"yt-history-load",[c,J]))};
_.V.pushState=function(J,c){this.entryIndex++;if(!this.browserHistory.boundHistoryPushState){var m=new _.w3("history.pushState is not a function",this.getDebugString());_.Xc(m)}VH.prototype.pushState.call(this,J,c)};
_.V.replaceState=function(J,c){if(!this.browserHistory.boundHistoryReplaceState){var m=new _.w3("history.replaceState is not a function",this.getDebugString());_.Xc(m)}VH.prototype.replaceState.call(this,J,c)};
_.V.saveAndPush=function(J,c,m,b,x){x=x===void 0?{}:x;m&&(m.csn=_.Y3());VH.prototype.saveAndPush.call(this,J,c,m,b,x)};
_.V.getDebugString=function(){var J=[];this.initialized&&J.push("i");this.browserHistory.boundHistoryReplaceState&&J.push("bhr");this.browserHistory.boundHistoryPushState&&J.push("bhs");"replaceState"in this.browserHistory.debugInfo&&J.push("brs:"+String(this.browserHistory.debugInfo.replaceState));"pushState"in this.browserHistory.debugInfo&&J.push("bps:"+String(this.browserHistory.debugInfo.pushState));this.entryIndex>0&&J.push("ei:"+String(this.entryIndex));return J.join(",")};
_.PT=function(J,c){J.init(!0);var m=J.browserHistory.getState();J.replaceState(m,gs(c))};
L08.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.browserHistory.getThirdPartyManipulationSuspected()};_.M6=new _.oE("DESKTOP_HISTORY_MANAGER_TOKEN");var Dv8=[10,20,30,40,50,60],pu=function(){this.currentPartitionIndex=0},W0_=function(J){oWZ({mainAppWeb:_.$b(),
survivalSli:{partitionMinute:J,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_START"}})},zd6=function(J){oWZ({mainAppWeb:_.$b(),
survivalSli:{partitionMinute:J,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_END"}})},uSQ=function(J){return J.currentPartitionIndex>=0&&J.currentPartitionIndex<Dv8.length?Dv8[J.currentPartitionIndex]:-1},fsa=function(J){return J.currentPartitionIndex>0&&J.currentPartitionIndex-1<Dv8.length?Dv8[J.currentPartitionIndex-1]:-1};
pu.prototype.start=function(){if(this.intervalId===void 0){this.currentPartitionIndex=0;var J=fsa(this);J>0&&zd6(J);J=uSQ(this);J>0&&W0_(J);YYL(this)}};
var YYL=function(J){var c=uSQ(J);if(c>0){var m=fsa(J);m<0&&(m=0);J.intervalId=_.ft.addJob(function(){var b=fsa(J);b>0&&zd6(b);b=uSQ(J);b>0&&W0_(b);YYL(J)},3,(c-m)*6E4);
J.currentPartitionIndex+=1}else J.currentPartitionIndex=-1};var XJ8=function(){this.skipNextNavigation=!1},ZaL=function(J,c,m){if(!c)return!1;
if(J.skipNextNavigation)return J.skipNextNavigation=!1;if(_.L(m,_.Ee))return!1;var b,x,P;if((b=_.L(m,_.I1))==null?0:(x=b.browseEndpointContextSupportedConfigs)==null?0:(P=x.browseEndpointContextMainConfig)==null?0:P.skipConfirmation)return!1;var p;return((p=_.L(c.commandMetadata,_.lk))==null?void 0:p.webPageType)==="WEB_PAGE_TYPE_MINI_APP"};
XJ8.prototype.showConfirmationDialog=function(J,c){this.navigateParams=c;this.customConfirmationCommand?_.BG().resolve(_.gu).resolveCommand(this.customConfirmationCommand):(c={openPopupAction:{popup:{confirmDialogRenderer:{title:_.v2(_.CX("NAVIGATION_CONFIRMATION_TITLE")),dialogMessages:[_.v2(_.CX("NAVIGATION_CONFIRMATION_DESCRIPTION"))],cancelButton:{buttonRenderer:{text:_.v2(_.CX("CANCEL")),command:{signalAction:{signal:"CANCEL_NAVIGATION"}}}},confirmButton:{buttonRenderer:{text:_.v2(_.CX("EXIT")),
command:{signalAction:{signal:"RESUME_NAVIGATION"}}}}}},popupType:"DIALOG"}},_.vO.getInstance().triggerAction("yt-open-popup-action",c,J))};
XJ8.prototype.cancelPendingNavigation=function(){var J;((J=this.navigateParams)==null?void 0:J.navigationType)===2&&(this.skipNextNavigation=!0,this.navigateParams.isForwardHistoryNavigation?window.history.back():window.history.forward())};var qYj=function(){},SYa=function(J,c,m,b,x,P,p){m=m===void 0?{}:m;
p=p===void 0?{}:p;var t=_.IT.instance,I,a=(I=_.L(c,_.Ee))==null?void 0:I.url;return a?sXm(t,a,m,window.location.href,function(k,H){UvZ(J,k,H,!1,!0,m,P,b)},function(){return!1}):dx(t,c,m,window.location.href,Cv(c),function(k,H){UvZ(J,k,H,!1,!0,m,P,b)},x,p)},UvZ=function(J,c,m,b,x,P,p,t){if(!J.JSC$12336_chunkHandler)if(m.page==="watch"||m.page==="learning_journey_watch")if(x||b){if(_.w("kevlar_continue_playback_without_player_response")){var I;
var a=(I=_.L(t,_.Rz))==null?void 0:I.videoId}J.JSC$12336_chunkHandler=new CGz(_.ep,{clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:b,previousVideoId:a},tempData:P},p)}else J.JSC$12336_chunkHandler=new pT$(_.ep);else m.page==="shorts"&&x&&!b?J.JSC$12336_chunkHandler=new KB_(_.ep,{clientParams:{miniplayer:!1,autoSaveToQueue:!1,fromHistory:!1},tempData:P},p):J.JSC$12336_chunkHandler=new NW$(p);J.JSC$12336_chunkHandler.processChunk({endpoint:c,data:m});return J.JSC$12336_chunkHandler.dE.promise},
hd_=function(J,c,m,b,x){(m=_.m9C(m))&&UvZ(J,c,m,!1,!0,b,void 0,x)};var dvu=function(){this.pendingNavigationPromise=null};
_.V=dvu.prototype;_.V.hasPendingNavigation=function(){return!!this.pendingNavigationPromise};
_.V.cancelPendingNavigation=function(){this.pendingNavigationPromise&&(this.pendingNavigationPromise=null)};
_.V.addEventListener=function(){throw Error("vh");};
_.V.dispatchEvent=function(){throw Error("vh");};
_.V.removeEventListener=function(){throw Error("vh");};var $v_=["__Secure-1PAPISID","SAPISID","__Secure-3PAPISID"],N6=function(){_.KI.call(this);this.pollingInterval=3E3;this.sessionCookies=[null,null,null];GdB(this)};
_.D(N6,_.KI);N6.prototype.verifyUser=function(){var J=GdB(this),c=J.logout;if(!J.sessionChange)return!0;this.dispatchEvent("ytsessionchange");c&&this.dispatchEvent("ytuserinvalid");return!1};
var GdB=function(J){var c=$v_.map(function(x){var P;return(P=_.ar.get(x))!=null?P:""}),m=c.some(function(x,P){return J.sessionCookies&&J.sessionCookies[P]!==""&&x===""}),b=c.some(function(x,P){return J.sessionCookies&&J.sessionCookies[P]!==x});
J.sessionCookies=c;return{logout:m,sessionChange:b}};
N6.prototype.clearTimeout=function(){this.scheduledJobId&&(_.ft.cancelJob(this.scheduledJobId),this.scheduledJobId=void 0)};var pKT=new _.oE("POSTMESSAGE_TUNNEL_TOKEN");var VYQ=["/parent_tools","/file_download","/artist_roster"],IwQ=[RLG,ovG,Q$t,j$Q,eLe,Ax2,FFf,lHe];var EIa=new _.oE("APP_ROOT");var tt=new _.oE("NAVIGATION_CONFIRMATION_SERVICE");var vIz="/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(" "),OaQ=[{url:"/podcasts",expFlag:"enable_polymer_navigation_for_podcasts_destination_page"}],
I7=function(J,c){this.pendingNavigationPromise=null;this.JSC$12354_clientRoot=J;this.historyManager=c;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 qYj;this.debugString=J.is;J={"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};_.Oe(_.vO.getInstance(),J,this.JSC$12354_clientRoot)},edj,jm$,F0_,lsQ,Qm_;
_.D(I7,dvu);I7.prototype.reload=function(){_.dB(window.location.href)};
var V7j=function(J){J.currentEndpoint&&_.L(J.currentEndpoint,_.kb)?J.reload():J.currentEndpoint&&J.navigate(J.currentEndpoint,!0,void 0,{disableCache:!0})};
I7.prototype.navigate=function(J,c,m,b,x,P,p,t){c=c===void 0?!1:c;m=m===void 0?{}:m;b=b===void 0?{}:b;var I=_.BG().resolve(tt),a;if(!p&&ZaL(I,(a=this.currentEndpoint)!=null?a:void 0,J))return I.showConfirmationDialog(this.JSC$12354_clientRoot.parentElement,{endpoint:J,reload:c,params:m,tempData:b,requestType:x,createScreenConfig:P}),!1;var k=_.f$();_.Y7(k,"eocs")||k.parkOrScheduleJob(function(){k.processSignal("eocs")},10,"eor");
p=Cv(J);I=b.autonav==="1";a=_.Y3();N6.instance||(N6.instance=new N6);var H=N6.instance.verifyUser(),T;if(_.w("enable_dark_theme_only_on_shorts")){var r=document.documentElement.hasAttribute("dark"),W=_.wB(!0)==="USER_INTERFACE_THEME_DARK";if(p==="shorts"){if(!r)if(_.w("enable_dark_theme_only_on_shorts_control")){if(!window.location.href.includes("/shorts/")){var Y;_.dB((Y=_.L(J==null?void 0:J.commandMetadata,_.lk))==null?void 0:Y.url,void 0,void 0,window.top)}}else{var Z;_.dB(_.RP((Z=_.L(J==null?
void 0:J.commandMetadata,_.lk))==null?void 0:Z.url,{theme:"dark"}),void 0,void 0,window.top)}}else if(_.w("enable_dark_theme_only_on_shorts_control")){if(window.location.href.includes("/shorts/")&&!r){var d;_.dB(_.RP((d=_.L(J==null?void 0:J.commandMetadata,_.lk))==null?void 0:d.url,{themeRefresh:1}),void 0,void 0,window.top)}}else if(W!==r){var G;_.dB(_.RP((G=_.L(J==null?void 0:J.commandMetadata,_.lk))==null?void 0:G.url,{themeRefresh:1}),void 0,void 0,window.top)}}if(p==="watch"){if(AR_(_.BG().resolve(_.Uo),
J)&&(H||_.w("fix_miniplayer_navigation_killswitch")))return!1;_.w("block_all_player_prefetch_requests")||(T=bi6(_.mm(_.K9),J,I))}else{var e,A=(e=_.L(this.currentEndpoint,_.Rz))==null?void 0:e.videoId;A&&_.H$.getInstance().then(function(Yt){Yt&&Yt.set("yt-miniplayer-shown-video-id",A)})}T&&(m.frags=T.missingFragments_.join(","));
Y=null;var l;Z=(l=_.L(J==null?void 0:J.commandMetadata,_.lk))==null?void 0:l.ignoreNavigation;if(!Z)if(_.w("kevlar_command_url")){var y;Y=(y=_.L(J==null?void 0:J.commandMetadata,_.lk))==null?void 0:y.url}else Y=_.Svr(J,m);if(Y&&this.pendingNavigationPromise){if(this.lastNavigationUrl&&Y==this.lastNavigationUrl)return _.uJ({navigationRequestedSameUrl:!0}),!1;this.pendingNavigationPromise.cancel("canceled pendingNavigationPromise");_.tm(h0(),"CANCELLED")}Y&&(this.lastNavigationUrl=Y);lOu();_.q3("IS_HOMEPAGE_COLD",
!1);_.q3("IS_RESULTS_PAGE_COLD",!1);_.q3("IS_WATCH_PAGE_COLD",!1);J.loggingUrls&&J.loggingUrls.forEach(function(Yt){Yt.baseUrl&&_.En(Yt.baseUrl)});
_.kPT(J,P?P.layer:0)&&_.w("kevlar_flush_logs_on_away_navigation")&&_.YH();if(KI3(J))return!1;d9Q(p,x);if(!Y)return Z||_.qz(new _.w3("Can't construct url for endpoint",J)),_.tm(h0(),"FAILURE"),!1;_.xcD();l=J&&_.L(J,_.I1)&&_.L(J,_.I1).browseId.startsWith("UC");m=(y=_.w("enable_dark_theme_only_on_shorts")&&p==="shorts"?!1:_.rB()&&document.documentElement.hasAttribute("dark")!==_.Th())?{themeRefresh:1}:{};y&&!_.H7()&&_.wB()==="USER_INTERFACE_THEME_DARK"&&(m.theme="dark");l=y||Rdz(Y)&&!l&&!_.w("kevlar_disable_url_allowlist");
H||(l=!0);if(l||_.Ub("DISABLE_WARM_LOADS")||this.resetWarmLoads){if(window.self!==window.top){try{var pG;var kt=(pG=window.top)==null?void 0:pG.location.href}catch(Yt){var nG;kt=(nG=Yt)==null?void 0:nG.message}_.qz(new _.w3("Attempting to redirect in iframe",{selfUrl:window.self.location.href,topUrl:kt}))}J=_.w("kevlar_redirect_on_window_killswitch")?window.top:window;hc(Y);_.dB(_.RP(Y,m),void 0,void 0,J);_.tm(h0(),"ABORTED");return!1}_.w("kevlar_early_popup_close")&&_.m9(this.JSC$12354_clientRoot,
"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);this.pageFetcher.JSC$12336_chunkHandler=void 0;var fG;kt=Cv((fG=this.currentEndpoint)!=null?fG:void 0);(fG=p==="shorts"&&kt==="shorts")||_.Vzo();_.du(eC2)("nr",void 0);I&&_.uJ({webInfo:{navigationReason:"an"}});J.clickTrackingParams&&(b.itct=J.clickTrackingParams,b.csn=a);MOf(b);b.endpoint=JSON.stringify(J);_.w("enable_unknown_lact_fix_on_html5")&&(_.BG().resolve(_.Lq),b.lact=_.cO());_.Lw.isEmpty(b)||_.jK(Y,b);!_.w("disable_miniplayer_expansion_log")&&
this.isMiniplayerExpansion&&(P=Object.assign({},{layer:0},P,{parentLayer:3}));this.pendingNavigationPromise=P=SYa(this.pageFetcher,J,b,this.currentEndpoint,this.JSC$12354_isNetworkPromiseStale.bind(this),P,t);P=P.then(this.handleNavigateSuccess.bind(this,P,J,T,b),this.handleNavigateFail.bind(this,P,J));_.Mh().navigationFinishPromise=P;c={endpoint:J,pageType:p,url:gs(Y),reload:!!c,noProgressBar:fG};x&&(c.type=x);this.fireEvent("yt-navigate-start",c);T&&hd_(this.pageFetcher,J,T,b,this.currentEndpoint);
return!0};
I7.prototype.JSC$12354_isNetworkPromiseStale=function(J){return J!=this.pendingNavigationPromise};
var oIC=function(J,c,m,b,x){var P=Cv(c);c={endpoint:c,pageType:P};x&&(c.errorMessage=x);_.qz(m);c.navigationDoneMs=_.Y2("nd");c.navigationErrorReason=b;J.fireEvent("yt-navigate-error",c)};
I7.prototype.handleNavigateFail=function(J,c,m){var b=void 0;m instanceof _.OQ&&(b=m,qvR(m));if(this.JSC$12354_isNetworkPromiseStale(J))return _.sv(b);_.tm(h0(),"FAILURE");oIC(this,c,m,"101");return _.sv(m)};
I7.prototype.handleNavigateSuccess=function(J,c,m,b,x){if(this.JSC$12354_isNetworkPromiseStale(J))return _.ML();this.pendingNavigationPromise=null;if(!x)return c=new _.w3("Missing data in response for navigation endpoint",c),_.sv(c);if(x.reload)return window.location.reload(!0),_.ML();m&&(J={},_.Lw.extend(J,_.m9C(m),x),x=J);var P,p;m=(P=x)==null?void 0:(p=P.timing)==null?void 0:p.responseStart;m!=null&&_.Y2("srt",m);_.Y2("pdc");var t,I;P=(t=x)==null?void 0:(I=t.timing)==null?void 0:I.info;P!=null&&
(t=_.du(_.yEt)(P),_.uJ(t));_.tm(h0(),"SUCCESS");Qm_(this,c,x,1,b);return _.ML()};
var Rdz=function(J){var c=J;_.w("kevlar_no_redirect_to_classic_2_ks")||(c=(new _.oz(J)).getPath());if(c==="/"||c==="/red")return!1;var m=!0;vIz.forEach(function(b){J.indexOf(b)===0&&(m=!1)});
OaQ.forEach(function(b){var x=b.url;_.w(b.expFlag)&&J.indexOf(x)===0&&(m=!1)});
return m};
I7.prototype.publishPageData=function(J){this.fireEvent("yt-page-data-fetched",{pageData:J})};
edj=function(J,c,m,b,x,P){var p=null;c.page!=="watch"&&c.page!=="learning_journey_watch"||b?c.filler||_.m9(J.JSC$12354_clientRoot,"yt-stop-old-player",[c]):p=UvZ(J.pageFetcher,x,c,m,!1,P,void 0,J.currentEndpoint);if(p)return p.then(J.publishPageData.bind(J,c));J.publishPageData(c);return _.ML()};
jm$=function(J,c,m){var b=null;if(!m)return b=new _.w3("Empty data",J.debugString,c);var x=m.response;if(!x)return b;var P={endpointType:Cv(c)||"unknown"};x.responseContext?(x=x.responseContext.errors)&&(b=new _.w3("Errors in response context",J.debugString,c,x,P)):b=x.error||x.errorMetadata?new _.w3("Errors in response",J.debugString,c,x.error,x.errorMetadata,P):new _.w3("responseContext missing",J.debugString,c,Object.keys(x).sort().join(","),P);var p,t,I,a;if(J=m==null?void 0:(p=m.response)==null?
void 0:(t=p.responseContext)==null?void 0:(I=t.webResponseContextExtensionData)==null?void 0:(a=I.webResponseContextDebugData)==null?void 0:a.debugErrorMessages)for(p=0;p<J.length;p++);return b};
F0_=function(J){var c,m,b,x;return J==null?void 0:(c=J.response)==null?void 0:(m=c.responseContext)==null?void 0:(b=m.errors)==null?void 0:(x=b.error)==null?void 0:x["0"]};
lsQ=function(J,c){var m;if(m=c.url&&!c.url.startsWith("/clip"))m=c.url,m=!_.w("webfe_parse_debug_param_in_resolveurl_service")&&J.searchDebugUrlMatcher.test(m)||EAR(m)?!0:!1;if(m)EAR(c.url)&&_.Aa(window.location.href).themeRefresh?(c=_.FR(c.url,"themeRefresh"),_.PT(J.historyManager,c)):c.url&&!J6T(c.url)&&_.PT(J.historyManager,c.url);else if(c.endpoint){var b,x,P;(m=(b=c.endpoint)==null?void 0:(x=b.commandMetadata)==null?void 0:(P=x.webCommandMetadata)==null?void 0:P.url)&&!J6T(m)&&_.PT(J.historyManager,
m);m&&c.url&&m!=c.url&&!c.url.match("playnext=1")&&new _.w3("Response url mismatch in response data",J.debugString,m,c.url)}};
_.yR_=function(J,c,m,b,x,P,p,t){P=P===void 0?!1:P;var I=_.BG().resolve(tt),a;if(!t&&ZaL(I,(a=J.currentEndpoint)!=null?a:void 0,c))return I.showConfirmationDialog(J.JSC$12354_clientRoot.parentElement,{endpoint:c,data:m,navigationType:b,tempData:x,isMiniplayer:P,isForwardHistoryNavigation:p==null?void 0:p.forward}),_.ML();J.pageFetcher.JSC$12336_chunkHandler=void 0;return Qm_(J,c,m,b,x,P)};
Qm_=function(J,c,m,b,x,P){P=P===void 0?!1:P;J.isMiniplayerExpansion=P;var p=b===2;J.currentEndpoint=c;J.numNavigations++;J.numNavigations&&(jvu.navigationCount=J.numNavigations);_.q3("NUM_NAV",J.numNavigations);var t=jm$(J,c,m);if(t)return oIC(J,c,t,"102",F0_(m)),_.sv(t);var I,a,k,H;t=m.rootVe||(m==null?void 0:(I=m.response)==null?void 0:(a=I.responseContext)==null?void 0:(k=a.webResponseContextExtensionData)==null?void 0:(H=k.ytConfigData)==null?void 0:H.rootVisualElementType);!p&&m&&lsQ(J,m);var T,
r;I=m==null?void 0:(T=m.response)==null?void 0:(r=T.responseContext)==null?void 0:r.maxAgeSeconds;if(!p&&!isNaN(I)){var W;_.w("kevlar_use_response_ttl_to_invalidate_cache")?W=(0,_.y4)()+1E3*I:_.w("kevlar_always_invalidate_cache")&&(W=0);isNaN(W)||(m.expirationTime=W)}_.w("html5_enable_ssap_entity_id")&&p&&m.playerResponse&&(m.playerResponse.cacheMetadata={isCacheHit:!0});_.mm(_.K9).prefetchCache_.clear();p||m.page!=="watch"||m.type!=="reduced"&&b!==1?b=edj(J,m,p,!!P,c,x):(J.publishPageData(m),b=_.ML());
x=b.then(function(){var Y=Cv(c);Y={endpoint:c,pageType:Y,fromHistory:p,response:m};Y.navigationDoneMs=_.Y2("nd");J.fireEvent("yt-navigate-finish",Y)});
m.csn&&t&&m.clientSideGrafts&&b.then(J.attachClientSideGrafts.bind(J,m,_.fl()));return x};
_.V=I7.prototype;_.V.attachClientSideGrafts=function(J,c){J.clientSideGrafts&&c&&J.clientSideGrafts.forEach(function(m){if(c&&m){var b=_.n7(m);_.w("combine_ve_grafts")?_.C7().graftServerVe(m,c):_.$2(J.csn,c,b)}})};
_.V.handleSignalActionHistoryBack=function(){window.history.back()};
_.V.handleSignalActionCloseWindow=function(){window.close()};
_.V.handleSignalActionReloadPage=function(){this.reload()};
_.V.handleSignalActionSoftReloadPage=function(){V7j(this)};
_.V.handleSignalActionResetWarmLoads=function(){this.resetWarmLoads=!0};
_.V.fireEvent=function(J,c){J=new CustomEvent(J,{bubbles:!0,cancelable:!1,composed:!0,detail:c});this.dispatchEvent(J)};
_.V.addEventListener=function(J,c){this.JSC$12354_clientRoot.addEventListener(J,c)};
_.V.dispatchEvent=function(J){return this.JSC$12354_clientRoot.dispatchEvent(J)};
_.V.removeEventListener=function(J,c){this.JSC$12354_clientRoot.removeEventListener(J,c)};
I7[RE]=[EIa,_.M6];_.Y6t=new jB("browse","h8y2qb");_.XMq=new jB("search","JzFVk");_.Znf=new jB("shorts","xwEKAe");_.q6Q=new jB("watchFixie","nmfa2d");_.UmQ=new jB("watchFlexy","CF909");_.S62=new jB("watchGrid","Tm0L3c");_.h3J=new jB("watchLearningJourney","L3n37");var BnZ;var Ku=function(){return _.h.apply(this,arguments)||this};
_.D(Ku,_.h);_.eE.Object.defineProperties(Ku,{template:{configurable:!0,enumerable:!0,get:function(){if(BnZ===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);BnZ=J}J=BnZ;return J}}});
_.O([_.f(gQa.YtPlayerBehavior),_.R("design:type",Object)],Ku.prototype,"ytPlayerBehavior",void 0);Ku=_.O([_.E({is:"ytd-player"})],Ku);var gIZ;var J6L;var c6B;var Cu=function(){var J=_.h.apply(this,arguments)||this;J.forceModernIconButton=!1;J.actionMap={"yt-account-linking-state-changed-command":"handleAccountLinkingStateChangedCommand","yt-signal-action-show-account-link-dialog":"handleShowAccountLinkDialog"};return J};
_.D(Cu,_.h);Cu.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]]"}}}}}};
Cu.prototype.handleAccountLinkingStateChangedCommand=function(J){if(J=_.L(J,MdQ)){var c,m=(c=this.data)==null?void 0:c.providerKey;c=J.providerKey;m&&c&&m.id===c.id&&m.subject===c.subject&&(J=J.linked,J!==void 0&&(this.set("data.linked",J),this.notifyPath("data.linked"),_.w("enable_account_linking_warning_account_link_button")&&(this.set("data.is_warning",!1),this.notifyPath("data.is_warning")),this.setPlayerAccountLinkState(J)))}};
Cu.prototype.setPlayerAccountLinkState=function(J){var c=new Yyf;fmQ(c,XnR(new ZDu,J));var m=_.ep();m&&m.getPlayerPromise().then(function(b){b.setAccountLinkState(_.yR(c.JSC$10075_serializeBinary(),4));b.updateAccountLinkingConfig(J)})};
Cu.prototype.handleShowAccountLinkDialog=function(){var J=this.get("button.buttonRenderer.command");J&&_.tS([J],this.hostElement)};
_.eE.Object.defineProperties(Cu.prototype,{button:{configurable:!0,enumerable:!0,get:function(){if(this.data){if(this.data.linked&&this.data.warningButton&&this.data.isWarning)return this.data.warningButton;if(this.data.linked&&this.data.linkedButton)return this.data.linkedButton;if(!this.data.linked&&this.data.unlinkedButton)return this.data.unlinkedButton}}}});
_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],Cu.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Cu.prototype,"ytRendererBehavior",void 0);_.O([_.f([_.yw.YtActionHandlerBehavior]),_.R("design:type",Object)],Cu.prototype,"actionHandlerBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Cu.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],Cu.prototype,"overrides",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Cu.prototype,"forceModernIconButton",void 0);_.O([_.U({value:"bottom"}),_.R("design:type",String)],Cu.prototype,"buttonTooltipPosition",void 0);_.O([_.U({value:!1}),_.R("design:type",Boolean)],Cu.prototype,"forceIconButton",void 0);_.O([_.U(),_.R("design:type",Boolean)],Cu.prototype,"disableTextTransform",void 0);
_.O([_.q("data","data.linked","data.isWarning"),_.R("design:type",Object),_.R("design:paramtypes",[])],Cu.prototype,"button",null);Cu=_.O([_.E({is:"ytd-account-link-button-renderer",disableElementRegistration:!0})],Cu);
_.v(Cu,"ytd-account-link-button-renderer",function(){if(c6B!==void 0)return c6B;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return c6B=J},{mode:1});var mcL;var bJQ=["PLAYLIST_LOOP_STATE_ONE","PLAYLIST_LOOP_STATE_ALL"],a7=function(){return _.h.apply(this,arguments)||this};
_.D(a7,_.h);a7.prototype.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"bottom"},properties:{forceIconOnly:"[[forceIconOnly]]"}}}}}};
a7.prototype.updateButtonActiveState=function(){var J=this,c=!!bJQ.find(function(m){return J.currentState===m});
this.button&&(this.button.isPressed=c)};
_.eE.Object.defineProperties(a7.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){var J,c;return((J=this.playlistLoopStateEntity)==null?void 0:J.state)||((c=this.data)==null?void 0:c.currentState)}},
currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var J=void 0,c;if(this.currentState&&((c=this.data)==null?0:c.states)){c=_.M(this.data.states);for(var m=c.next();!m.done;m=c.next()){m=_.L(m.value,_.zvZ);var b=void 0;if(((b=m)==null?void 0:b.state)===this.currentState){J=m;break}}}return J}}});
a7.prototype.updateButtonActiveState=a7.prototype.updateButtonActiveState;_.O([_.f(_.fY),_.R("design:type",Object)],a7.prototype,"ytdReduxBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],a7.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],a7.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.U({selectorArgs:["data.playlistLoopStateEntityKey"],selector:_.sHe}),_.R("design:type",Object)],a7.prototype,"playlistLoopStateEntity",void 0);_.O([_.U(),_.R("design:type",Object)],a7.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Boolean)],a7.prototype,"forceIconOnly",void 0);_.O([_.Iu("ytd-button-renderer"),_.R("design:type",_.As)],a7.prototype,"button",void 0);
_.O([_.q("data","playlistLoopStateEntity"),_.R("design:type",Object),_.R("design:paramtypes",[])],a7.prototype,"currentState",null);_.O([_.NE("currentButtonStateRenderer"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],a7.prototype,"updateButtonActiveState",null);_.O([_.q("currentState"),_.R("design:type",Object),_.R("design:paramtypes",[])],a7.prototype,"currentButtonStateRenderer",null);
a7=_.O([_.E({is:"ytd-playlist-loop-button-renderer",disableElementRegistration:!0})],a7);
_.v(a7,"ytd-playlist-loop-button-renderer",function(){if(mcL!==void 0)return mcL;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return mcL=J},
{mode:1});var xcz;var VYC=_.CX("DOWNLOAD",{},"Download"),PhQ=_.CX("DOWNLOADING",{},"Downloading"),MY_=_.CX("DOWNLOADED",{},"Downloaded"),pKL=_.CX("RETRY",{},"Retry"),kT=function(){var J=_.h.apply(this,arguments)||this;J.forceIconButton=!1;J.forceIconOnly=!1;J.overrides=!1;J.buttonTooltipPosition=!1;J.styleActionButton=!1;J.disableTextTransform=!1;J.downloadProgress=0;J.isDownloadComplete=!1;J.isHidden=!0;J.transferState="TRANSFER_STATE_UNKNOWN";J.isVideoDeletedByUser=!1;J.offlineabilityState="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";
return J};
_.D(kT,_.h);_.V=kT.prototype;_.V.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.V.dataChanged=function(){var J;(J=this.data)!=null&&J.text||(J=_.YY(_.Rc().getState(),this.videoId),this.updateButtonState(J))};
_.V.computeVideoId=function(J){return J};
_.V.showHideButton=function(){this.updateButtonVisibility()};
_.V.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};
_.V.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.V.updateButtonState=function(J){if(this.data&&(this.ytRendererBehavior.getSimpleString(this.data.text)!==PhQ||!_.kY(J))){this.updateButtonVisibility();this.isDownloadComplete=!1;switch(J){case "TRANSFER_STATE_UNKNOWN":J=VYC;var c="OFFLINE_DOWNLOAD";var m="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":J=pKL;c="OFFLINE_DOWNLOAD";m="ACTION_RETRY";break;case "TRANSFER_STATE_COMPLETE":J=MY_;c="OFFLINE_PIN";m="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_TRANSFERRING":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":J=
PhQ;c="OFFLINE_DOWNLOADING_ZERO";m="ACTION_REMOVE_WITH_PROMPT";break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":J=pKL;c="OFFLINE_DOWNLOAD";m="ACTION_RETRY";break;default:J=VYC,c="OFFLINE_DOWNLOAD",m="ACTION_ADD"}this.isVideoDeletedByUser&&(J=VYC,c="OFFLINE_DOWNLOAD",m="ACTION_ADD");var b=Object.assign({},this.data);b.text=_.v2(J);b.tooltip=J;b.icon={iconType:c};b.size="SIZE_DEFAULT";b.style="STYLE_DEFAULT";_.L(b.command,_.Mx)&&(_.L(b.command,_.Mx).action=m);this.set("data",b)}};
_.V.updateProgress=function(){if(this.data){this.isDownloadComplete=!1;var J="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?J="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?J="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?J="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?J="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<1?J="OFFLINE_DOWNLOADING_EIGHTY":
this.downloadProgress===1&&(J="OFFLINE_PIN",this.isDownloadComplete=!0);var c;J!==((c=this.data.icon)==null?void 0:c.iconType)&&(c=Object.assign({},this.data),c.text=_.v2(PhQ),c.tooltip=PhQ,c.icon={iconType:J},_.L(c.command,_.Mx)&&(_.L(c.command,_.Mx).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",c))}};
kT.prototype.updateProgress=kT.prototype.updateProgress;kT.prototype.onTransferStateChanged=kT.prototype.onTransferStateChanged;kT.prototype.showHideButton=kT.prototype.showHideButton;kT.prototype.dataChanged=kT.prototype.dataChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],kT.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.fY),_.R("design:type",Object)],kT.prototype,"ytdReduxBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],kT.prototype,"forceIconButton",void 0);
_.O([_.U(),_.R("design:type",Object)],kT.prototype,"forceIconOnly",void 0);_.O([_.U(),_.R("design:type",Object)],kT.prototype,"overrides",void 0);_.O([_.U(),_.R("design:type",Object)],kT.prototype,"buttonTooltipPosition",void 0);_.O([_.U(),_.R("design:type",Object)],kT.prototype,"styleActionButton",void 0);_.O([_.U(),_.R("design:type",Object)],kT.prototype,"disableTextTransform",void 0);
_.O([_.U({computed:"computeVideoId(data.command.offlineVideoEndpoint.videoId)"}),_.R("design:type",String)],kT.prototype,"videoId",void 0);_.O([_.U(),_.R("design:type",Object)],kT.prototype,"data",void 0);_.O([_.U({selector:ZZ,selectorArgs:["videoId"]}),_.R("design:type",Object)],kT.prototype,"downloadProgress",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],kT.prototype,"isDownloadComplete",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],kT.prototype,"isHidden",void 0);_.O([_.U({selector:_.YY,selectorArgs:["videoId"]}),_.R("design:type",String)],kT.prototype,"transferState",void 0);_.O([_.U({selector:_.ZO3,selectorArgs:["videoId"]}),_.R("design:type",Object)],kT.prototype,"isVideoDeletedByUser",void 0);_.O([_.U({selector:z5t,selectorArgs:["videoId"]}),_.R("design:type",Object)],kT.prototype,"offlineabilityState",void 0);
_.O([_.U({value:!0}),_.R("design:type",Boolean)],kT.prototype,"showTooltips",void 0);_.O([_.U({value:!0}),_.R("design:type",Boolean)],kT.prototype,"sendCommandWhenDisabled",void 0);_.O([_.U({value:!1}),_.R("design:type",Boolean)],kT.prototype,"disabled",void 0);_.O([_.kr("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],kT.prototype,"dataChanged",null);
_.O([_.kr("offlineabilityState"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],kT.prototype,"showHideButton",null);_.O([_.kr("transferState","isVideoDeletedByUser"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],kT.prototype,"onTransferStateChanged",null);_.O([_.kr("downloadProgress"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],kT.prototype,"updateProgress",null);
kT=_.O([_.E({disableElementRegistration:!0,is:"ytd-download-button-renderer"})],kT);
_.v(kT,"ytd-download-button-renderer",function(){if(xcz!==void 0)return xcz;var J=document.createElement("template");_.z(J,'\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>');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return xcz=J},{mode:2});var NzL;var tY8,IwC=function(){if(tY8!==void 0)return tY8;var J=document.createElement("template");_.z(J,'\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 tY8=J};var KI_=_.w("web_button_rework")&&_.Ss("BUTTON_REWORK")||_.w("web_button_rework_with_live"),Ch_=_.c7("dynamic_metadata_update_interaction_delay_period_sec",5)*1E3,HT=function(){var J=_.h.apply(this,arguments)||this;J.isPressed=!1;J.forceIconButton=!1;J.forceIconOnly=!1;J.forceModernIconButton=!1;J.alignByText=!1;J.isShorts=!1;J.animatedText=!1;J.shouldAnimate=!1;J.JSC$12392_browserSupportsAnimation=_.w("web_supports_animations_api");J.actionMap={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction",
"yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand"};J.onTap=function(){var c;if((c=J.data)==null||!c.defaultNavigationEndpoint){var m;c=!((m=J.data)==null?0:m.isToggled);var b;if((b=J.data)==null||!b.preventAutoToggle){J.shouldAnimate=!1;J.disableTextUpdateJobId&&_.ft.cancelJob(J.disableTextUpdateJobId);J.disableTextUpdateJobId=_.ft.addLowPriorityJob(function(){J.disableTextUpdateJobId=void 0},Ch_);
var x;J.set("data.isToggled",!((x=J.data)==null?0:x.isToggled));m=J.getInnertubeIcon();b={toggled:c,actions:{}};m&&(b.actions[m.toLowerCase()]=c);_.cA(J.hostElement,"yt-toggle-button",b)}}};
return J};
_.D(HT,_.h);_.V=HT.prototype;_.V.resetAnimation=function(){this.shouldAnimate=!1;this.disableTextUpdateJobId&&(_.ft.cancelJob(this.disableTextUpdateJobId),this.disableTextUpdateJobId=void 0)};
_.V.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.V.toggle=function(J){var c;this.set("data.isToggled",J!==void 0?J:!((c=this.data)==null?0:c.isToggled))};
_.V.handleUpdateToggleButtonStateCommand=function(J){if(this.data){J=_.L(J,i0z);var c,m,b,x=(c=this.data)==null?void 0:(m=c.toggleButtonSupportedData)==null?void 0:(b=m.toggleButtonIdData)==null?void 0:b.id;x&&J&&x===(J==null?void 0:J.buttonId)&&this.set("data.isToggled",J.toggled)}};
_.V.handleUpdateToggleButtonTextAction=function(J){if(this.data){J=_.L(J,BIQ);var c,m,b,x=(c=this.data)==null?void 0:(m=c.toggleButtonSupportedData)==null?void 0:(b=m.toggleButtonIdData)==null?void 0:b.id;x&&J&&x===(J==null?void 0:J.buttonId)&&!this.disableTextUpdateJobId&&(this.shouldAnimate=!0,this.textNumberValue=J.defaultNumericalValue,this.set("data.defaultText",J.defaultText),this.set("data.toggledText",J.toggledText),this.shouldAnimate=!1)}};
_.V.getInnertubeIcon=function(){var J=this.data;if(J){var c,m,b=((c=J.defaultIcon)==null?0:c.iconType)?(m=J.defaultIcon)==null?void 0:m.iconType:null,x,P;c=((x=J.toggledIcon)==null?0:x.iconType)?(P=J.toggledIcon)==null?void 0:P.iconType:b;return J.isToggled?c:b}};
_.V.computeTooltip=function(){return this.data?this.data.isToggled&&this.data.toggledTooltip||this.data.defaultTooltip||null:null};
_.eE.Object.defineProperties(HT.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var J={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$12392_browserSupportsAnimation,animatedTextProps:{numberText:"",
numberValue:Number(this.textNumberValue),heightPx:36,shouldAnimate:this.shouldAnimate}};var c=J.renderer;var m=J.element;var b=J.toggled;var x=J.onTapCallback;var P=J.commandClientArgs;var p=J.overrides;var t=J.forceIcon;var I=J.forceModernIconButton;var a=J.forceDisabled;var k=J.useAnimatedText;var H=J.animatedTextProps;J=zre(c,b);t=!c.defaultIcon||!t&&c.defaultText?c.defaultIcon?"leading":void 0:I?"icon-only":"icon-only-40";t==="icon-only-40"&&(J.type="text");var T;I=Object;var r=I.assign,W;a:switch((W=
c.style)==null?void 0:W.styleType){case "STYLE_COMPACT_GRAY":W={size:"S"};break a;default:W={size:"M"}}var Y=!!b;var Z=(Z=b&&c.toggledText||c.defaultText)?_.uv(Z):void 0;k?(k=_.OG(b&&c.toggledText||c.defaultText))&&H&&!isNaN(Number(H.numberValue))?(H.numberText=k,b&&(H.numberValue+=1),k=H):k=void 0:k=void 0;var d,G,e,A;var l=(H=((G=b?c.toggledAccessibilityData||((l=c.toggledText)==null?void 0:l.accessibility):c.accessibilityData||((d=c.defaultText)==null?void 0:d.accessibility))==null?void 0:(e=G.accessibilityData)==
null?void 0:e.label)||((A=c.accessibility)==null?void 0:A.label))?H:_.OG(b&&c.toggledText||c.defaultText);a=a===void 0?c.isDisabled:a;m=WIu(c,b,x,m,P);b=Dc3(c,b);b!=null&&b.length?(b=_.Uv({innertubeCommand:nCm(b),forceNewState:!0}),b=SM(b)?b:void 0):b=void 0;c=r.call(I,{},J,W,{iconPosition:t},p,{focused:!1,toggled:Y,toggleable:!0,formattedButtonText:Z,animatedTextProps:k,accessibilityLabel:l,disabled:a,onTap:m,aTagConfig:b},OAJ((T=c.colorData)==null?void 0:T.basicColorPaletteData));c.alignByText=
this.alignByText;this.isShorts&&this.data.isToggled&&(c.type="filled");return c}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var J=this.getInnertubeIcon();if(J)return _.Pd(J)}}});
HT.prototype.resetAnimation=HT.prototype.resetAnimation;_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],HT.prototype,"ytComponentBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],HT.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],HT.prototype,"ytActionHandlerBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],HT.prototype,"data",void 0);
_.O([_.U(),_.R("design:type",Object)],HT.prototype,"isPressed",void 0);_.O([_.U(),_.R("design:type",Object)],HT.prototype,"forceIconButton",void 0);_.O([_.U(),_.R("design:type",Object)],HT.prototype,"forceIconOnly",void 0);_.O([_.U(),_.R("design:type",Object)],HT.prototype,"forceModernIconButton",void 0);_.O([_.U(),_.R("design:type",Object)],HT.prototype,"alignByText",void 0);_.O([_.U(),_.R("design:type",Object)],HT.prototype,"overrides",void 0);
_.O([_.U(),_.R("design:type",Boolean)],HT.prototype,"disabled",void 0);_.O([_.U(),_.R("design:type",Object)],HT.prototype,"isShorts",void 0);_.O([_.U(),_.R("design:type",Object)],HT.prototype,"buttonTooltipPosition",void 0);_.O([_.U(),_.R("design:type",Object)],HT.prototype,"animatedText",void 0);_.O([_.U(),_.R("design:type",String)],HT.prototype,"textNumberValue",void 0);_.O([_.U({computed:"computeTooltip(data, data.isToggled)"}),_.R("design:type",Object)],HT.prototype,"tooltip",void 0);
_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],HT.prototype,"resetAnimation",null);_.O([_.q("data.*","forceIconButton","forceIconOnly","forceModernIconButton","alignByText","overrides","disabled","isShorts"),_.R("design:type",Object),_.R("design:paramtypes",[])],HT.prototype,"computedButtonShape",null);_.O([_.q("data.*"),_.R("design:type",Object),_.R("design:paramtypes",[])],HT.prototype,"computedIcon",null);
HT=_.O([_.E({is:"ytd-toggle-button-renderer",disableElementRegistration:!0,cssBuildOptOut:!0})],HT);KI_&&_.v(HT,"ytd-toggle-button-renderer",IwC,{mode:_.mP("kevlar_poly_si_batch_j081")?1:2});var u$=_.Q1(function(J){function c(a){var k;return _.N(function(H){if(H.nextAddress==1)return(k=!fwJ(a,t())||!t().enabled)?H.jumpTo(2):_.K(H,Ucq(),3);H.nextAddress!=2&&(k=H.yieldResult);if(k)return H.return();m();setTimeout(function(){p(!1)},1500);
_.tD(H)})}
function m(){setTimeout(function(){p(!0);var a;(a=b.lottieEl)==null||a.goToAndPlay(0)},150)}
var b=_.xM(),x=_.M(_.K2(!1,void 0,"JJXzp")),P=x.next().value,p=x.next().value,t=_.Ru(J.settings,{uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]});_.uN(function(){var a,k;((a=J.settings)==null?void 0:(k=a.call(J))==null?void 0:k.uniqueId)==="this is not intended behavior"&&_.qz(new _.w3("Smartimation Settings is undefined"))});
_.ui(function(){t().experimentEnabled&&(t().enabled?YLJ(c):(p(!1),XKt(c)),_.f2(function(){XKt(c)}))},"FRiAUe");
_.ui(function(){t().timings.join("");t().experimentEnabled&&(ZJf(t()),_.f2(function(){qLm(t())}))},"VKiJOe");
var I=_.n2(function(){var a=b,k=t().uniqueId+"-border",H,T;var r="https://www.gstatic.com/youtube/img/lottie/smartimations/smartimation_border_"+((T=(H=_.BG().resolve(_.y6(_.Ev)))==null?void 0:H())!=null&&T?"dark":"light")+"_v2.json";return{animationRef:a,animationConfig:{name:k,autoplay:!1,loop:!1,path:r}}},void 0,"tgykab");
x={};return _.C("yt-smartimation",{class:_.pq(J.className,"smartimation",(x["smartimation--experiment-enabled"]=function(){return t().experimentEnabled},x["smartimation--active-border"]=P,x["smartimation--enable-masking"]=SLJ(),x))},_.C(_.n,{cond:function(){return t().experimentEnabled},
then:function(){return _.C("div",{class:"smartimation__border"},_.C(_.Nd,{className:"smartimation__border-gradient",data:I,animationName:function(){return I().animationConfig.name}}))}}),_.C("div",{class:"smartimation__content"},J.children))},"B");
u$.idomCompat=!0;_.lv(u$,"yt-smartimation",{props:{className:_.vt,settings:_.vt}});var iG=function(){var J=_.h.apply(this,arguments)||this;J.likeButtonOverride={segmentedPosition:"start",style:"mono",type:"tonal"};J.dislikeButtonOverride={iconPosition:"icon-only",segmentedPosition:"end",style:"mono",type:"tonal"};J.shouldEnableSmartimation=!1;return J};
_.D(iG,_.h);iG.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
iG.prototype.onDataChanged=function(){var J,c;this.shouldEnableSmartimation=(((J=this.data)==null?void 0:(c=J.timedAnimationData)==null?void 0:c.animationTiming)||[]).length>0&&!this.isLikeOrDisliked()};
iG.prototype.isLikeOrDisliked=function(){if(!this.data)return!1;var J=_.L(this.data.likeButton,_.fO),c=_.L(this.data.dislikeButton,_.fO);return!!((J==null?0:J.isToggled)||(c==null?0:c.isToggled))};
iG.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]]"}}}}}};
_.eE.Object.defineProperties(iG.prototype,{smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var J,c,m=((J=this.data)==null?void 0:(c=J.timedAnimationData)==null?void 0:c.animationTiming)||[];return{uniqueId:"like-dislike",timings:m,enabled:this.shouldEnableSmartimation,experimentEnabled:m.length>0}}}});
iG.prototype.onDataChanged=iG.prototype.onDataChanged;_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],iG.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],iG.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],iG.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],iG.prototype,"likeButtonOverride",void 0);_.O([_.U(),_.R("design:type",Object)],iG.prototype,"dislikeButtonOverride",void 0);
_.O([_.q("shouldEnableSmartimation"),_.R("design:type",Object),_.R("design:paramtypes",[])],iG.prototype,"smartimationSettings",null);_.O([_.NE("data"),_.ps("yt-toggle-button"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],iG.prototype,"onDataChanged",null);iG=_.O([_.E({disableElementRegistration:!0,is:"ytd-segmented-like-dislike-button-renderer"})],iG);
_.v(iG,"ytd-segmented-like-dislike-button-renderer",function(){if(NzL!==void 0)return NzL;var J=document.createElement("template");_.z(J,'\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>');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return NzL=J},{mode:1});var awj;var kPL;(kPL=document.body)==null||kPL.setAttribute("rounded-container","");var HJB={};HJB.YtToggleButtonBehavior=[_.yw.YtActionHandlerBehavior,av.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 J=this.data.isToggled;if(!this.isModal_(J)){if(!this.data.preventAutoToggle){this.toggle();var c={toggled:this.data.isToggled,actions:{}};c.actions[this.buttonIcon]=this.data.isToggled;_.cA(this.hostElement,"yt-toggle-button",c)}c=this.data.defaultServiceEndpoint||null;var m=this.data.toggledServiceEndpoint||null;if(c&&m||c&&this.data.preventAutoToggle)J=J?m:c,c=this.disableCommandHandlerOverride,_.w("killswitch_toggle_button_behavior_resolve_command")||c?_.Vq(this.hostElement,
[J]):_.Nl(J,this.hostElement),_.cA(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:J})}},
stateChanged_:function(){var J=this.data;if(J){var c=J.isToggled;this._setEndpoint(this.computeEndpoint_(J));this._setServiceEndpoint(this.computeServiceEndpoint_(J));this._setButtonIcon(this.computeButtonIcon_(J,c));this._setButtonText(this.computeButtonText_(J,c));this._setButtonAccessibility(this.computeAccessibility_(J,c));this._setButtonTooltip(this.computeTooltip_(J,c));this._setButtonClass(this.computeButtonClass_(J,c));this._setIconPositionType(this.computeIconPositionType_(J));this.updateRenderedElements();
this.elements_.button&&(this.elements_.button.is==="yt-icon-button"?(this.elements_.button.toggleable=!0,this.elements_.button.pressed=c):this.elements_.button.setAttribute("aria-pressed",c));this.elements_.icon&&this.shouldSetIconActiveState_()&&(this.elements_.icon.active=c)}},
shouldSetIconActiveState_:function(){return _.w("kevlar_system_icons")},
toggle:function(J){this.set("data.isToggled",J!==void 0?J:!this.data.isToggled);_.w("web_toggle_button_force_update_killswitch")||this.notifyPath("data.isToggled")},
isModal_:function(J){if(J){var c,m;return!!((c=this.data)==null?0:(m=c.toggledServiceEndpoint)==null?0:m.confirmDialogEndpoint)}return!!this.endpoint&&(!!this.endpoint.modalEndpoint||!!this.endpoint.shareEndpoint||!!this.endpoint.shareEntityEndpoint)},
computeEndpoint_:function(J){return J&&J.defaultNavigationEndpoint||null},
computeButtonIcon_:function(J,c){var m=J&&J.defaultIcon?_.Pd(J.defaultIcon.iconType):null;J=J&&J.toggledIcon?_.Pd(J.toggledIcon.iconType):m;return c?J:m},
handleUpdateToggleButtonStateCommand_:function(J){J=J.updateToggleButtonStateCommand;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==J.buttonId&&this.toggle(J.toggled)},
computeButtonText_:function(J,c){return J?c&&J.toggledText||J.defaultText||null:null},
computeAccessibility_:function(J,c){return J?(c?this.get("toggledAccessibilityData.accessibilityData",J):this.get("accessibilityData.accessibilityData",J))||J.accessibility||null:null},
computeTooltip_:function(J,c){return J?c&&J.toggledTooltip||J.defaultTooltip||null:null},
computeButtonClass_:function(J,c){if(!J)return"";var m="",b=J.toggledStyle||J.style;if(c=c?b:J.style){c.styleType&&(c=c.styleType);try{m+=c.toLowerCase().replace(/_/g,"-")+" "}catch(x){_.Ue(x,c,typeof c),_.qz(x)}}if(J=J.size){J.sizeType&&(J=J.sizeType);try{m+=J.toLowerCase().replace(/_/g,"-")+" "}catch(x){_.Ue(x,J,typeof J),_.qz(x)}}return m.trim()},
computeIconPositionType_:function(J){return J&&J.iconPosition||null},
computeServiceEndpoint_:function(J){var c=J&&J.serviceEndpoint,m=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return c?c:m&&J.command?J.command:null},
handleUpdateToggleButtonTextAction_:function(J){J=J.updateToggleButtonTextAction;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==J.buttonId&&(this.set("data.defaultText",J.defaultText),this.notifyPath("data.defaultText"),this.set("data.toggledText",J.toggledText),this.notifyPath("data.toggledText"))}}];_.zH("sharingToggleButtonAndDefaultButton","toggleButtonRenderer",{component:"ytd-toggle-button-renderer",params:{noink:!0}});var iJ2=_.w("web_button_rework")&&_.Ss("BUTTON_REWORK")||_.w("web_button_rework_with_live"),nu=function(){var J=_.h.apply(this,arguments)||this;J.systemIcons=_.w("kevlar_system_icons");J.roundedContainer=!0;return J};
_.D(nu,_.h);nu.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
nu.prototype.onYtButtonTapHandler=function(){if(!this.ytToggleButtonBehavior.isModal_()){var J=this.data.isToggled;if(!this.data.preventAutoToggle){this.ytToggleButtonBehavior.toggle();var c={toggled:!!this.data.isToggled,actions:{}};c.actions[this.ytToggleButtonBehavior.buttonIcon]=this.data.isToggled;var m,b;c.actions.playlistId=(m=this.data.defaultServiceEndpoint)==null?void 0:(b=m.playlistEditEndpoint)==null?void 0:b.playlistId;_.cA(this.hostElement,"yt-toggle-button",c)}(J=J?this.data.toggledServiceEndpoint:
this.data.defaultServiceEndpoint)&&this.ytComponentBehavior.resolveCommand(J)}};
nu.prototype.onYtNavigate=function(J){var c=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(J.detail.endpoint);c&&(J.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(c))};
_.eE.Object.defineProperties(nu,{template:{configurable:!0,enumerable:!0,get:function(){if(awj===void 0){var J=document.createElement("template");_.z(J,"\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");J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);awj=J}J=awj;return J}}});
nu.prototype.onYtNavigate=nu.prototype.onYtNavigate;_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],nu.prototype,"ytComponentBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],nu.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.vL),_.R("design:type",Object)],nu.prototype,"ytdOpenPopupBehavior",void 0);_.O([_.f(HJB.YtToggleButtonBehavior),_.R("design:type",Object)],nu.prototype,"ytToggleButtonBehavior",void 0);
_.O([_.U(),_.R("design:type",Object)],nu.prototype,"data",void 0);_.O([_.U({value:!0}),_.R("design:type",Boolean)],nu.prototype,"showTooltips",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],nu.prototype,"systemIcons",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],nu.prototype,"roundedContainer",void 0);_.O([_.ps("yt-navigate"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],nu.prototype,"onYtNavigate",null);
nu=_.O([_.E({is:"ytd-toggle-button-renderer",disableElementRegistration:iJ2})],nu);var nSL;_.Tr=new _.oE("PANEL_CONTROLLER_TOKEN");_.wW=new _.oE("SHEET_CONTROLLER_TOKEN");_.rW=new _.oE("DIALOG_CONTROLLER_TOKEN");nSL=new _.oE("DIALOG_CONTAINER_TOKEN");var Rrq=_.CX("DOWNLOAD",{},"Download"),oSe=_.CX("DOWNLOADING",{},"Downloading"),QHe=_.CX("DOWNLOADED",{},"Downloaded"),er3=_.CX("RETRY",{},"Retry");var FI3=[],lwr=!1;var TzL=_.Q1(function(J){var c=Vc3,m=function(){return""},b=chq(J.data),x=m$o(J.data),P=bzG(J.data),p=x$r(J.data);
c=function(){var t=J.data(),I=OJt(t,b(),x(),P(),p()),a=!!t.videoId,k=I.text;return{title:a?k:void 0,tooltip:a?void 0:k,accessibilityText:k,onTap:I.onTap,iconName:I.iconType,style:t.butonStyle,type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:I.disabled?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:t.buttonSize}};
m={};m=_.pq("ytDownloadButtonViewModelHost",(m.ytDownloadButtonViewModelIsHidden=function(){var t=J.data(),I=p();return t.playlistId||I()==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||I()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0},m));
return _.C("download-button-view-model",{class:m},_.C(_.XU,{data:c}))},"C");
TzL.idomCompat=!0;var r6a=_.Q1(function(J){var c=J.backgroundLottieRef;var m=J.foregroundLottieRef;var b=J.children;var x=J.wrapperClass;var P=J.disableAnimation;J=function(){return(_.w("web_animated_actions")||_.w("web_animated_actions_v2"))&&!(P==null?0:P())};
return _.C("yt-animated-action",{class:_.pq("animated-action__container",x)},_.C("div",{class:"animated-action__content-with-background"},_.C(_.n,{cond:J,then:function(){return _.C(wKQ,{wrapperClass:"animated-action__background-container",lottieClass:"animated-action__background",lottiePlayerProps:function(){return{animationRef:c==null?void 0:c(),animationConfig:{name:"animated-actions-background",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+
(P92()?"dark":"light")+"_v5.json"}}}})}}),b),_.C(_.n,{cond:J,
then:function(){return _.C(wKQ,{lottiePlayerProps:function(){return{animationRef:m==null?void 0:m(),animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(P92()?"dark":"light")+"_v4.json"}}}})}}))},"D");
r6a.idomCompat=!0;var wKQ=_.Q1(function(J){var c=J.wrapperClass;var m=J.lottieClass;var b=J.lottiePlayerProps;return _.C("div",{class:_.pq("animated-action__lottie",c),"aria-hidden":"true"},_.C(_.Nd,{className:m,data:b,animationName:function(){return b().animationConfig.name}}))},"E");var McR={isOpen:!1};var NHR={isAllowed:!1};var IVm={errorMessage:"",title:"",privacy:"",isDisabled:!0};var C9Q={isOpen:!1};var kQm={isFullscreen:!1,topPanelId:void 0,navigationButtons:{},secondaryHeader:{}};var sH$={response:void 0};var izo=function(J,c){J=J===void 0?sH$:J;switch(c.type){case "LOCATION_COLLECTION_RESPONSE_CHANGE":return Object.assign({},J,{response:c.payload});default:return J}};var LI2={nextCommand:void 0,nextDisabled:!1,footerSubmissionData:void 0,isImpersonationValid:!1};var n4G=function(J,c){J=J===void 0?LI2:J;switch(c.type){case "REPORT_CHANNEL_NEXT_DISABLED_CHANGE":return Object.assign({},J,{nextDisabled:c.payload});case "REPORT_CHANNEL_NEXT_COMMAND_CHANGE":return Object.assign({},J,{nextCommand:c.payload});case "REPORT_CHANNEL_MODAL_FOOTER_RENDERER_SUBMISSION_DATA_CHANGE":return Object.assign({},J,{footerSubmissionData:c.payload});case "REPORT_CHANNEL_NEXT_IMPERSONATION_VALIDITY_CHANGE":return Object.assign({},J,{isImpersonationValid:c.payload});default:return J}};var Dc_={reportFormData:void 0,reportDetailsFormData:void 0};var TH3=function(J,c){J=J===void 0?Dc_:J;switch(c.type){case "REPORT_FORM_MODAL_RENDERER_DATA_CHANGE":return Object.assign({},J,{reportFormData:c.payload});case "REPORT_DETAILS_FORM_RENDERER_DATA_CHANGE":return Object.assign({},J,{reportDetailsFormData:c.payload});default:return J}};var WI_=void 0;_.w("mweb_enable_redux_store_on_demand")||(WI_=new A7(wxr()));var zr$=_.Q1(function(J){J=_.ou(J,{themeOverride:void 0,animationRef:{}});var c=J.animatedIconType,m=J.active,b=J.themeOverride,x=J.animationRef;J=J.staticIconFn;var P=_.M(_.K2(void 0,void 0,"P5a72b")),p=P.next().value,t=P.next().value,I=function(){a:{var Z=c();var d=b==null?void 0:b();var G;d=(d==null?void 0:d.useDarkTheme)||((G=_.BG().resolve(_.y6(_.Ev)))==null?void 0:G());switch(Z){case "LIKE":WI_||(WI_=new A7(wxr()));Z=(Z=zDr(WI_.getState()))&&Z.animationLightUrl&&Z.animationDarkUrl?{lottiePlayerProps:{animationConfig:{name:d?
"custom_animated_like_icon_dark":"custom_animated_like_icon",path:d?Z.animationDarkUrl:Z.animationLightUrl,loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"}}},totalFrames:60,lazyLoad:!0}:void 0;if(Z){d=Z;break a}d="animated_like_icon_"+(d?"dark_v4":"light_v4");d={lottiePlayerProps:{animationConfig:{name:d,path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/"+d+".json",loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"}}},
totalFrames:60,lazyLoad:!0};break a;case "NOTIFICATION_BELL":d={lottiePlayerProps:{animationConfig:{name:d?"notification_bell_dark":"notification_bell_light",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_"+(d?"dark":"light")+".json",loop:!1,autoplay:!1,rendererSettings:{className:"animated-subscribe-icon"}}},totalFrames:79,lazyLoad:!1};break a}d=void 0}return d},a=function(){var Z,d;
return(d=(Z=I())==null?void 0:Z.lottiePlayerProps.animationConfig.name)!=null?d:""},k=function(){if(I()){var Z=I().lottiePlayerProps.animationConfig.path;
return Md.get(Z)||p()}};
P=_.M(_.K2(!1,void 0,"h6xR3c"));var H=P.next().value;P=P.next().value;var T=sdq(P),r=function(){var Z=I(),d,G,e;return(e=Z==null?void 0:(d=Z.lottiePlayerProps.animationConfig)==null?void 0:(G=d.rendererSettings)==null?void 0:G.className)!=null?e:""},W=void 0,Y=void 0;
_.ui(function(){var Z=I(),d=a(),G=k(),e=H(),A=m();if(Z&&(Y!==d&&(Y=d,W=A,d=x(),T.animationConfig=Z.lottiePlayerProps.animationConfig,T.animationRef=d,G&&(T.animationConfig.animationData=G,T.animationConfig.path=void 0),d=Z.lottiePlayerProps.animationConfig.path,!Md.get(d)&&Z.lazyLoad&&d&&rhu(d,t)),!(e||Z.lazyLoad&&!G))){if(G=!x().lottieEl)A?(e=Z.totalFrames,T.animationConfig.initialSegment=[e-1,e]):T.animationConfig.initialSegment=void 0;if(W!==A&&!G)if(G=x(),A){var l;(l=G.lottieEl)==null||l.playSegments([0,
Z.totalFrames],!0)}else{var y;(y=G.lottieEl)==null||y.playSegments([0,1],!0)}W=A}},"YCYOCe");
return _.C("animated-icon",{class:"ytAnimatedIconHost"},_.C(_.n,{cond:function(){var Z,d;return!((Z=I())==null||!Z.lottiePlayerProps.animationConfig.path||((d=I())==null?0:d.lazyLoad)&&!k()||H())},
then:function(){return _.C(_.Nd,{data:T,animationName:a,className:r,animationRef:x})},
else:J}))},"F");_.sF=_.Q1(function(J){var c=_.oN("yt-subscribe-button-view-model"),m=_.oN("div"),b=_.oN("div"),x=_.xM(),P=_.xM(),p=_.xM(),t=_.tT(HJr,function(){return J.data().stateEntityStoreKey}),I=_.tT(iJR,function(){var a2,Nu;
return(Nu=(a2=J.data().notificationStateEntityStoreKeys)==null?void 0:a2.subsNotificationStateKey)!=null?Nu:""}),a=function(){return!J.data().enableSubscribeButtonPostClickAnimation},k=_.M(_.K2(0,void 0,"eTsWvc")),H=k.next().value,T=k.next().value;
k=_.M(_.K2(0,void 0,"dniDQ"));var r=k.next().value,W=k.next().value;k=_.M(_.K2(!1,void 0,"EluPic"));var Y=k.next().value,Z=k.next().value;k=_.M(_.K2(!1,void 0,"r0jnre"));var d=k.next().value,G=k.next().value;k=_.M(_.K2(!1,void 0,"KMvoQe"));var e=k.next().value,A=k.next().value,l;k=_.M(_.K2(!1,void 0,"aSENce"));var y=k.next().value,pG=k.next().value,kt=function(){G(!0);_.at(_.ft,function(){G(!1)},1500)};
_.ui(function(){var a2=d();ID(function(){a2&&!a()&&t()&&qEQ(x,P,p)})},"LgmX6c");
_.ui(function(){var a2=t();ID(function(){if(!a()&&a2){var Nu;((Nu=J.animateWidth)==null?0:Nu.call(J))&&Zzf(c.value,!!a2.subscribed,H(),r());var cu,t8;((cu=l)==null?0:cu.subscribed)||!a2.subscribed||a2.key!==((t8=l)==null?void 0:t8.key)||kt();l=a2}})},"iZzoUb");
k=_.n2(function(){var a2,Nu,cu,t8=J.data(),I_=!((a2=t())==null||!a2.subscribed);a2=!((Nu=J.isOverlay)==null||!Nu.call(J));Nu=Y()?c:void 0;var fU=(cu=I())==null?void 0:cu.state;cu=y();XxG(t8,fU);return WHo({model:t8,subscribed:I_,isOverlay:a2,element:Nu,notificationState:fU,disableTextEllipsis:!0,focused:cu})},void 0,"yGQGue");
var nG=function(){var a2;if(!a()&&((a2=J.animateWidth)==null?0:a2.call(J))&&(m==null?0:m.value)&&(b==null?0:b.value)&&!e()){a2=t();var Nu=_.M((a2==null?0:a2.subscribed)?[m,b]:[b,m]),cu=Nu.next().value;Nu=Nu.next().value;cu=Math.ceil(cu.value.getBoundingClientRect().width);Nu=Math.ceil(Nu.value.getBoundingClientRect().width);T(cu);W(Nu);Zzf(c.value,!(a2==null||!a2.subscribed),cu,Nu);A(!0)}},fG=_.Kq(function(a2){nG();
var Nu=t();Nu&&(a2.detail.endpoint.subscribeEndpoint||a2.detail.endpoint.unsubscribeEndpoint)&&upt(c.value,!Nu.subscribed,Nu)}),Yt=function(){var a2=_.BG().resolve(_.y6(_.Js));
a2&&pG(a2.isKeyBoardInUse())},Z3=function(){pG(!1)};
_.RN("yt-player-subscribe",function(a2){var Nu=t();Nu&&a2===J.data().channelId&&upt(c.value,!0,Nu)});
_.RN("yt-player-unsubscribe",function(a2){var Nu=t();Nu&&a2===J.data().channelId&&upt(c.value,!1,Nu)});
_.RN("yt-update-subscribe-button-action",function(a2){a2=_.L(a2,mCu);var Nu=t();Nu&&a2&&a2.channelId===J.data().channelId&&upt(c.value,!!a2.subscribed,Nu)});
_.uN(function(){c.value&&(c.value.addEventListener("focusin",Yt),c.value.addEventListener("focusout",Z3));var a2=_.rv(_.ft,function(){nG()});
Z(!0);_.f2(function(){_.ft.cancelJob(a2);c.value&&(c.value.removeEventListener("focusin",Yt),c.value.removeEventListener("focusout",Z3))})});
var oR=function(){var a2,Nu,cu;if(cu=!((a2=t())==null||!a2.subscribed))a2=!!J.data().disableNotificationBell,cu=(Nu=I())==null?void 0:Nu.state,cu=!a2&&!!cu;return cu},Em=function(){var a2;
return!((a2=t())==null?0:a2.subscribed)},X$=function(){var a2,Nu;
if(Nu=Em()){Nu=!!J.data().disableNotificationBell;var cu=(a2=I())==null?void 0:a2.state;Nu=!Nu&&!!cu}return Nu},Hu={},S6={};
return _.C("yt-subscribe-button-view-model",{class:_.pq(J.className,"yt-subscribe-button-view-model-wiz",(Hu["yt-subscribe-button-view-model-wiz__can-animate-width"]=function(){var a2,Nu;return!((a2=t())==null||!a2.subscribed)&&((Nu=J.animateWidth)==null?void 0:Nu.call(J))&&d()},Hu["yt-subscribe-button-view-model-wiz--hidden"]=function(){var a2;
return!((a2=t())==null?0:a2.subscribed)&&J.data().hideWhenUnsubscribed},Hu)),
el:c,"on:yt-service-request-sent":fG},_.C(r6a,{backgroundLottieRef:x,foregroundLottieRef:P,wrapperClass:_.pq("yt-subscribe-button-view-model-wiz__animated-action-wrapper",(S6["yt-subscribe-button-view-model-wiz__animated-action-wrapper--is-animating"]=function(){var a2;return((a2=J.animateWidth)==null?void 0:a2.call(J))&&d()},S6["yt-subscribe-button-view-model-wiz__static-width"]=function(){var a2;
return!((a2=J.animateWidth)==null?0:a2.call(J))},S6)),
disableAnimation:a},_.C("div",{el:m,class:"yt-subscribe-button-view-model-wiz__container"},_.C(l$,{data:k,icon:function(){return _.C(_.n,{cond:oR,then:function(){var a2=function(){var Nu;return zy3((Nu=I())==null?void 0:Nu.state)};
return _.C(_.n,{cond:function(){return a()||a2()!=="NOTIFICATIONS_NONE"},
then:function(){return _.C(_.HP,{icon:a2})},
else:function(){return _.C(zr$,{animatedIconType:"NOTIFICATION_BELL",active:!1,animationRef:p})}})}})},
secondaryIconName:function(){return oR()?"EXPAND":void 0}}))),_.C("div",{el:b,
class:"yt-subscribe-button-view-model-wiz__invisible"},_.C(_.n,{cond:function(){var a2;return((a2=J.animateWidth)==null?void 0:a2.call(J))&&!a()&&!e()},
then:function(){return _.C(l$,{data:_.n2(function(){var a2;return WHo({model:J.data(),subscribed:Em(),isOverlay:!((a2=J.isOverlay)==null||!a2.call(J)),element:c,disableTextEllipsis:!0})},void 0,"lwPlub"),
iconName:function(){var a2;return X$()?zy3((a2=I())==null?void 0:a2.state):void 0},
secondaryIconName:function(){return X$()?"EXPAND":void 0}})}})))},"G");
_.sF.idomCompat=!0;var U$2=new _.oE("RENDERER_STAMPER_OPTIONS_TOKEN");var nK;_.i$=new y78;nK=new Map;var lVm="compactRadioRenderer compactPlaylistRenderer playlistVideoRenderer compactVideoRenderer feedNudgeRenderer gridVideoRenderer primetimePromoRenderer radioRenderer primetimePromoRenderer reelItemRenderer reelShelfRenderer richShelfRenderer searchHistoryQueryRenderer shelfRenderer videoWithContextRenderer videoCardRenderer statementBannerRenderer miniGameCardViewModel shortsLockupViewModel lockupViewModel".split(" "),BHe=["notificationTextRenderer","notificationMultiActionRenderer"],yhq="primetimePromoRenderer statementBannerRenderer brandVideoShelfRenderer brandVideoSingletonRenderer feedNudgeRenderer playlistVideoRenderer".split(" "),
FHm=Ozq(function(J){return _.XD(J==null?void 0:J.targetId)}).useUpdatableData;var jdQ=0;_.wi.debugName="EjJbCe";var uEa=_.Q1(function(J){var c=J.data;var m=_.tT(HJr,function(){return c().subscriptionStateEntityKey});
return _.C(_.n,{cond:function(){var b=c(),x=m();return!b.hideWhenUnsubscribed||(x==null?0:x.subscribed)?_.L(c().button,_.ri):void 0},
then:function(b){return _.C("yt-subscribe-plus-button-view-model",{class:"ytSubscribePlusButtonViewModelHost"},_.C(_.XU,{data:b,buttonOverrides:function(){return{toggled:!0}}}))}})},"H");
uEa.idomCompat=!0;var c_r=_.Hg({buttonViewModel:_.XU,subscribeButtonViewModel:_.sF,downloadButtonViewModel:TzL,toggleButtonViewModel:_.LK,subscribePlusButtonViewModel:uEa});_.J5(bDR);var fwQ=_.Q1(function(J){return _.C(_.wi,{data:function(){return J.actionRow().actions}},{buttonViewModel:function(c){var m=c.data;
return _.C(Lu,{isRow:J.isRow,isIconOnlyButton:function(){return xWf(m())},
useIntrinsicWidth:J.useIntrinsicWidth},_.C(_.XU,{data:m}))},
subscribeButtonViewModel:function(c){return _.C(Lu,{isRow:J.isRow},_.C(_.sF,{data:c.data,isOverlay:!1,animateWidth:function(){return!J.isRow()}}))},
downloadButtonViewModel:function(c){var m=c.data;return _.C(Lu,{isRow:J.isRow,isIconOnlyButton:function(){return!!m().playlistId}},_.C(TzL,{data:m}))},
toggleButtonViewModel:function(c){var m=c.data;return _.C(Lu,{isRow:J.isRow,isIconOnlyButton:function(){var b=m();return xWf(_.L(b.isToggled?b.toggledButtonViewModel:b.defaultButtonViewModel,_.ri))}},_.C(_.LK,{data:m}))},
subscribePlusButtonViewModel:function(c){return _.C(Lu,{isRow:J.isRow},_.C(uEa,{data:c.data}))}})},"I"),Lu=_.Q1(function(J){var c={};
return _.C("div",{class:_.pq("yt-flexible-actions-view-model-wiz__action",(c["yt-flexible-actions-view-model-wiz__action--row-action"]=J.isRow,c["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=J.useIntrinsicWidth,c["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1,c["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=J.isIconOnlyButton,c))},J.children)},"J"),YLQ=_.Q1(function(J){var c=function(){var b;
return((b=J.layout)==null?void 0:b.call(J))===1},m={};
return _.C("yt-flexible-actions-view-model",{class:_.pq("yt-flexible-actions-view-model-wiz",J.className,(m["yt-flexible-actions-view-model-wiz--inline"]=function(){return!c()},m["yt-flexible-actions-view-model-wiz--scrollable"]=function(){return J.data().style==="FLEXIBLE_ACTIONS_STYLE_SCROLLING"},m))},_.C(_.Te,{each:function(){return J.data().actionsRows||[]}},function(b){return _.C(_.n,{cond:c,
then:function(){return _.C("div",{class:"yt-flexible-actions-view-model-wiz__action-row"},_.C(fwQ,{actionRow:b,isRow:c,useIntrinsicWidth:function(){return!!J.data().respectActionIntrinsicWidth}}))},
else:function(){return _.C(fwQ,{actionRow:b,isRow:c})}})}))},"K"),DX=_.w("web_enable_sink_yt_flexible_actions_view_model")?YLQ:_.IO(bDR);
YLQ.idomCompat=!0;_.lv(DX,"yt-flexible-actions-view-model",{props:{data:_.vt,layout:_.vt,justifyContentOverride:_.vt,className:_.vt}});_.J5(VXt);var XKZ,tX2;XKZ=_.Q1(function(J){var c=_.tT(Yx,function(){var x;return(x=J.data().dislikeEntityKey)!=null?x:""}),m=_.n2(function(){var x=c();
return x?x.likeStatus==="DISLIKE":_.L(J.data().toggleButtonViewModel,_.sc).isToggled},void 0,"D8oIFb"),b=_.n2(function(){return Object.assign({},_.L(J.data().toggleButtonViewModel,_.sc),{isToggled:m()})},void 0,"shaCXe");
return _.C("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.C(_.LK,{data:b,buttonShapeOverrides:J.buttonShapeOverrideables,onToggle:function(x){var P=c();P&&x!==(P.likeStatus==="DISLIKE")&&P.key&&_.AO(_.DI("likeStatusEntity",P.key,{likeStatus:x?"DISLIKE":"INDIFFERENT",hadUserInteraction:x}))}}))},"L");
tX2=_.w("web_enable_sink_dislike_button_view_model")?XKZ:VXt;_.WT=_.w("web_enable_sink_dislike_button_view_model")?XKZ:_.IO(VXt);XKZ.idomCompat=!0;_.J5(MXo);var ZJu,Nko;ZJu=_.Q1(function(J){var c=_.w("web_supports_animations_api"),m=eM(function(T){var r=a(),W,Y=(r==null?void 0:(W=r.likeCountIfIndifferent)==null?void 0:W.content)!==T.numberText;if(t()||!Y)return T;var Z,d;return{numberText:(r==null?void 0:(Z=r.likeCountIfIndifferent)==null?void 0:Z.content)||"",numberValue:Number((d=r==null?void 0:r.likeCountIfIndifferentNumber)!=null?d:0),heightPx:36,shouldAnimate:!!r}},{initial:{numberText:"",
numberValue:0,heightPx:36,shouldAnimate:!1}}),b=eM(function(T){var r=a(),W,Y=(r==null?void 0:(W=r.likeCountIfIndifferent)==null?void 0:W.content)!==T.numberText;if(t()||!Y)return T;var Z,d;return{numberText:(r==null?void 0:(Z=r.likeCountIfLiked)==null?void 0:Z.content)||"",numberValue:Number((d=r==null?void 0:r.likeCountIfLikedNumber)!=null?d:0),heightPx:36,shouldAnimate:!!r}},{initial:{numberText:"",
numberValue:0,heightPx:36,shouldAnimate:!1}}),x=_.M(_.K2(void 0,void 0,"T6jMHc")),P=x.next().value,p=x.next().value,t=P,I=_.tT(Yx,function(){var T,r;return(r=(T=J.data())==null?void 0:T.likeStatusEntityKey)!=null?r:""}),a=_.tT(jLJ,function(){var T,r;
return((T=J.likeCountEntity)==null?void 0:(r=T.call(J))==null?void 0:r.key)||""}),k=_.n2(function(){var T;
return((T=I())==null?void 0:T.likeStatus)==="LIKE"},void 0,"WxQBcd"),H=function(){var T;
return c&&!((T=J.likeCountEntity)==null||!T.call(J))};
return _.C("like-button-view-model",{class:"ytLikeButtonViewModelHost"},_.C(_.LK,{data:function(){var T=Object,r=T.assign,W;var Y=_.L((W=J.data())==null?void 0:W.toggleButtonViewModel,_.sc);return r.call(T,{},Y||{},{isToggled:k()})},
buttonShapeOverrides:J.buttonShapeOverrideables,animatedTextPropsDefault:function(){return H()?m():void 0},
animatedTextPropsToggled:function(){return H()?b():void 0},
onToggle:function(T){pnQ(T,I(),t(),p)},
style:function(){var T;return((T=J.disableIconAnimation)==null?0:T.call(J))?void 0:{animateIcon:"true"}}}))},"M");
Nko=_.w("web_enable_sink_like_button_view_model")?ZJu:MXo;_.zr=_.w("web_enable_sink_like_button_view_model")?ZJu:_.IO(MXo);_.J5(Imf);var qLa=_.Q1(function(J){var c=function(){return _.L(J.data().likeButtonViewModel,_.Wg)},m=function(){var x;
return((x=c())==null?void 0:x.likeStatusEntityKey)||""},b=_.n2(function(){var x,P;
var p=(P=_.tT(Yx,m)())!=null?P:(x=c())==null?void 0:x.likeStatusEntity;x=J.data();var t;x=(x==null?void 0:(t=x.timedAnimationData)==null?void 0:t.animationTiming)||[];return{uniqueId:"like-dislike",timings:x,enabled:(p==null?void 0:p.likeStatus)==="INDIFFERENT"&&x.length>0,experimentEnabled:x.length>0}},void 0,"e1fsz");
return _.C("segmented-like-dislike-button-view-model",{class:_.pq("ytSegmentedLikeDislikeButtonViewModelHost",J.className),"button-renderer":!0},_.C(u$,{settings:b},_.C("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},_.C(_.n,{cond:c,then:function(x){return _.C(_.zr,{data:x,likeCountEntity:function(){return J.data().likeCountEntity},
buttonShapeOverrideables:{segmentedPosition:"start"}})}}),_.C(_.n,{cond:function(){return _.L(J.data().dislikeButtonViewModel,_.z9)},
then:function(x){return _.C(_.WT,{data:x,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}})}}))))},"N"),Uc8=_.w("web_enable_sink_segmented_like_dislike_button_view_model")?qLa:Imf;
qLa.idomCompat=!0;_.w("web_enable_sink_segmented_like_dislike_button_view_model")?_.lv(Uc8,"segmented-like-dislike-button-view-model",{props:{data:_.vt,className:_.vt}}):_.xx(Uc8,"segmented-like-dislike-button-view-model",{propNames:["data"]});var iDo=0;_.lv(qyJ,"account-link-button-view-model",{props:{data:_.vt,className:_.Fz,setMinWidth:_.Fz,forceIconOnly:_.Fz}});_.zH("menuRenderer","menuRenderer","ytd-menu-renderer");
var SLQ={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"}},
hrZ=_.w("web_fix_missing_action_buttons")?100:200,uG=function(){var J=_.h.apply(this,arguments)||this;J.safeArea=!_.w("kevlar_flex_menu_safe_area_killswitch");J.tonalOverride=!1;J.threeDotSize="M";J.isOverlay=!1;J.useOverlayDark=!1;J.topLevelIconsOnly=!1;J.JSC$12536_lastWidth=0;J.maybeUpdateFlexibleMenu=function(){_.w("web_fix_missing_action_buttons")?requestAnimationFrame(J.maybeUpdateFlexibleMenuImpl):J.maybeUpdateFlexibleMenuImpl()};
J.maybeUpdateFlexibleMenuImpl=function(){var c;if((c=J.data)!=null&&c.flexibleItems){J.maybeFlushDebouncer();c=J.hostElement.clientWidth;var m=c>J.JSC$12536_lastWidth,b,x=((b=J.topLevelButtonsContainer)==null?void 0:b.scrollHeight)||0,P;b=((P=J.flexibleItemButtonsContainer)==null?void 0:P.scrollHeight)||0;P=J.hostElement.scrollHeight>Math.max(x,b)+8;m?(J.resetFlexibleItems(),J.JSC$12536_lastWidth=J.hostElement.clientWidth,J.maybeUpdateFlexibleMenu()):P&&(J.shrinkFlexibleMenu(),J.JSC$12536_lastWidth=
c)}};
J.computeThreeDotButtonShape=function(){return Object.assign({},{onTap:function(){J.onOverflowTap()},
iconPosition:"icon-only",style:J.isOverlay?J.useOverlayDark?"overlay-dark":"overlay":"mono",type:"tonal",size:J.threeDotSize,state:"active",accessibilityLabel:J.computeAccessibilityLabel(J.data)},J.threeDotButtonOverride)};
J.onOverflowTap=function(){if(J.data.fetchMenuCommand)_.BG().resolve(_.gu).resolveCommand(J.data.fetchMenuCommand,{form:{element:J.hostElement}});else if(J.data.isDisabled&&J.data.disabledCommand)_.Nl(J.data.disabledCommand,J.hostElement);else{var c=J.createMenuRendererVe(),m={items:J.items};J.data.menuPopupAccessibility&&(m.menuPopupAccessibility=J.data.menuPopupAccessibility);J.data.footer&&(m.footer=J.data.footer);c={openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:m},veData:c}};
_.BG().resolve(_.wW).openSheet({openPopupActionCommand:c},J.hostElement)}};
return J};
_.D(uG,_.h);_.V=uG.prototype;_.V.updateButtonOverrides=function(){if(!_.w("menu_renderer_label_update_upkillswitch")){var J=_.Bj(this.hostElement).querySelector("yt-button-view-model");J&&(J.buttonOverrides=this.buttonOverrides)}};
_.V.computeHasItems=function(){var J;return((J=this.topLevelButtonData)==null?void 0:J.length)||this.hasFlexibleItems};
_.V.created=function(){this.boundOnStamperFinished=this.onStamperFinished.bind(this)};
_.V.iconButtonColorChanged=function(){this.data&&this.data.iconColor&&(this.hasCustomIconColor=!0,_.V1(this.hostElement,{"--ytd-menu-renderer-button-color":_.XB(this.data.iconColor)}))};
_.V.onStamperFinished=function(){this.JSC$12536_lastWidth=this.hostElement.clientWidth;this.maybeUpdateFlexibleMenu()};
_.V.setupFlexibleMenu=function(){var J=this,c;(c=this.data)!=null&&c.flexibleItems?window.ResizeObserver&&(this.hostElement.addEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.addEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeThrottle||(this.resizeThrottle=new _.FU(this.maybeUpdateFlexibleMenu,hrZ,this)),this.resizeObserver||(this.resizeObserver=new ResizeObserver(function(){J.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))};
_.V.maybeFlushDebouncer=function(){if(_.w("web_replace_formatted_with_attributed_string")){var J;(J=this.topLevelButtons)==null||J.forEach(function(m){var b;(m=(b=m.getElementsByTagName("yt-attributed-string"))==null?void 0:b[0])&&LaQ(m)});
var c;(c=this.flexibleItemButtons)==null||c.forEach(function(m){var b;(m=(b=m.getElementsByTagName("yt-attributed-string"))==null?void 0:b[0])&&LaQ(m)})}};
_.V.resetFlexibleItems=function(){var J;if((J=this.data)!=null&&J.flexibleItems){_.w("web_fix_missing_action_buttons")||this.hostElement.removeEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu);var c;this.flexAsTopLevelButtons=(c=this.data.flexibleItems)==null?void 0:c.map(function(m){return _.L(m,_.WcL).topLevelButton});
_.w("web_fix_missing_action_buttons")||this.hostElement.addEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu)}};
_.V.computeButtonOverride=function(){if(this.tonalOverride)return{style:"mono",type:"tonal"}};
_.V.shrinkFlexibleMenu=function(){var J;(J=this.flexAsTopLevelButtons)!=null&&J.length&&(this.flexAsTopLevelButtons=[].concat(_.L6(this.flexAsTopLevelButtons.slice(0,-1))))};
_.V.configureRendererStamper=function(){return{topLevelButtonData:{id:"top-level-buttons-computed",mapping:SLQ,events:!0},flexAsTopLevelButtons:{id:"flexible-item-buttons",mapping:SLQ,events:!0}}};
_.V.tonalOverrideChanged=function(){this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.V.ready=function(){this.menuFocused=!0;this.overlayOpen=!1;this.ytdOpenPopupBehavior.popupPositionTarget=this.button;this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.V.detached=function(){this.icon="MORE_VERT"};
_.V.computeTopLevelButtonData=function(J){if(!J)return[];var c;J=(c=J==null?void 0:J.topLevelButtons)!=null?c:[];return _.Lw.unsafeClone([].concat(_.L6(J)))};
_.V.computeItems=function(J,c){if(!J)return[];var m=[];if(c){var b=(J.flexibleItems||[]).map(function(p){return _.L(p,_.WcL)});
b=_.M(b);for(var x=b.next();!x.done;x=b.next())x=x.value,c.includes(x.topLevelButton)||(x=x.menuItem)&&m.push(x)}var P;J=(P=J==null?void 0:J.items)!=null?P:[];return[].concat(_.L6(m),_.L6(J))};
_.V.computeMenuActive=function(J,c){return J||c};
_.V.onPopupOpened=function(){this.overlayOpen=!0;_.cA(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen);this.menuFocused==null&&(this.menuFocused=!1)};
_.V.onPopupClosed=function(){this.overlayOpen=!1;_.cA(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.V.onPopupCanceled=function(){this.overlayOpen=!1;_.cA(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.V.computeAccessibilityLabel=function(J){return this.get("accessibility.accessibilityData.label",J)};
_.V.isHidden=function(J,c){return this.tonalOverride||!J?!0:J.fetchMenuCommand||J.isDisabled&&J.disabledCommand?!1:!(c==null?0:c.length)};
_.V.isModernOverflowHidden=function(J,c){return this.tonalOverride&&J?J.fetchMenuCommand?!1:!(c==null?0:c.length):!0};
_.V.createMenuRendererVe=function(){var J=this.data.trackingParams,c=_.Y3(),m=_.fl();return J&&c&&m?(J=_.n7(J),m=_.rs(7591),_.w("combine_ve_grafts")?_.JM(_.C7(),m,J):_.$2(c,J,m),m):null};
_.eE.Object.defineProperties(uG.prototype,{hasFlexibleItems:{configurable:!0,enumerable:!0,get:function(){var J;return!((J=this.flexAsTopLevelButtons)==null||!J.length)}},
buttonOverrides:{configurable:!0,enumerable:!0,get:function(){if(this.topLevelIconsOnly)return{iconPosition:"icon-only"}}}});
uG.prototype.onPopupCanceled=uG.prototype.onPopupCanceled;uG.prototype.onPopupClosed=uG.prototype.onPopupClosed;uG.prototype.onPopupOpened=uG.prototype.onPopupOpened;uG.prototype.tonalOverrideChanged=uG.prototype.tonalOverrideChanged;uG.prototype.resetFlexibleItems=uG.prototype.resetFlexibleItems;uG.prototype.setupFlexibleMenu=uG.prototype.setupFlexibleMenu;uG.prototype.iconButtonColorChanged=uG.prototype.iconButtonColorChanged;uG.prototype.updateButtonOverrides=uG.prototype.updateButtonOverrides;
_.O([_.f(_.vL),_.R("design:type",Object)],uG.prototype,"ytdOpenPopupBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],uG.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],uG.prototype,"ytRendererstamperBehavior",void 0);_.O([_.Iu("#button-shape"),_.R("design:type",xq)],uG.prototype,"buttonShape",void 0);_.O([_.Iu("#button"),_.R("design:type",Object)],uG.prototype,"button",void 0);
_.O([_.U(),_.R("design:type",Object)],uG.prototype,"data",void 0);_.O([_.U({computed:"computeTopLevelButtonData(data)"}),_.R("design:type",Array)],uG.prototype,"topLevelButtonData",void 0);_.O([_.U(),_.R("design:type",Array)],uG.prototype,"flexAsTopLevelButtons",void 0);_.O([_.U({computed:"computeItems(data, flexAsTopLevelButtons)"}),_.R("design:type",Array)],uG.prototype,"items",void 0);_.O([_.U({value:"MORE_VERT"}),_.R("design:type",String)],uG.prototype,"icon",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],uG.prototype,"safeArea",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeMenuActive(menuFocused, overlayOpen)"}),_.R("design:type",Boolean)],uG.prototype,"menuActive",void 0);_.O([_.U(),_.R("design:type",Boolean)],uG.prototype,"menuFocused",void 0);_.O([_.U({value:"bottom"}),_.R("design:type",String)],uG.prototype,"buttonTooltipPosition",void 0);_.O([_.U(),_.R("design:type",Boolean)],uG.prototype,"overlayOpen",void 0);
_.O([_.U({value:!0}),_.R("design:type",Boolean)],uG.prototype,"forceIconButton",void 0);_.O([_.U(),_.R("design:type",Boolean)],uG.prototype,"styleActionButton",void 0);_.O([_.U(),_.R("design:type",Boolean)],uG.prototype,"disableTextTransformOnButtons",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],uG.prototype,"tonalOverride",void 0);_.O([_.U(),_.R("design:type",Object)],uG.prototype,"threeDotSize",void 0);
_.O([_.U(),_.R("design:type",Object)],uG.prototype,"threeDotButtonOverride",void 0);_.O([_.U(),_.R("design:type",Object)],uG.prototype,"isOverlay",void 0);_.O([_.U(),_.R("design:type",Object)],uG.prototype,"useOverlayDark",void 0);_.O([_.U({computed:"computeButtonOverride(tonalOverride)"}),_.R("design:type",Object)],uG.prototype,"buttonOverride",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],uG.prototype,"hasCustomIconColor",void 0);
_.O([_.U({reflectToAttribute:!0}),_.q("flexAsTopLevelButtons"),_.R("design:type",Object),_.R("design:paramtypes",[])],uG.prototype,"hasFlexibleItems",null);_.O([_.U({reflectToAttribute:!0,computed:"computeHasItems(topLevelButtonData, flexAsTopLevelButtons)"}),_.R("design:type",Boolean)],uG.prototype,"hasItems",void 0);_.O([_.U(),_.R("design:type",Object)],uG.prototype,"topLevelIconsOnly",void 0);
_.O([_.NE("topLevelIconsOnly"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],uG.prototype,"updateButtonOverrides",null);_.O([_.q("topLevelIconsOnly"),_.R("design:type",Object),_.R("design:paramtypes",[])],uG.prototype,"buttonOverrides",null);_.O([_.Iu("#top-level-buttons-computed"),_.R("design:type",HTMLElement)],uG.prototype,"topLevelButtonsContainer",void 0);_.O([_.Ks(".top-level-buttons > *"),_.R("design:type",Array)],uG.prototype,"topLevelButtons",void 0);
_.O([_.Iu("#flexible-item-buttons"),_.R("design:type",HTMLElement)],uG.prototype,"flexibleItemButtonsContainer",void 0);_.O([_.Ks("#flexible-item-buttons > *"),_.R("design:type",Array)],uG.prototype,"flexibleItemButtons",void 0);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],uG.prototype,"iconButtonColorChanged",null);
_.O([_.kr("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],uG.prototype,"setupFlexibleMenu",null);_.O([_.kr("topLevelIconsOnly"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],uG.prototype,"resetFlexibleItems",null);_.O([_.NE("tonalOverride"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],uG.prototype,"tonalOverrideChanged",null);
_.O([_.ps("yt-popup-opened"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],uG.prototype,"onPopupOpened",null);_.O([_.ps("yt-popup-closed"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],uG.prototype,"onPopupClosed",null);_.O([_.ps("yt-popup-canceled"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],uG.prototype,"onPopupCanceled",null);
_.v(uG,"ytd-menu-renderer",function(){if(J6L===void 0){var J=document.createElement("template");_.z(J,'\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>');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);J6L=J}J=J6L;return J},{mode:_.mP("kevlar_poly_si_batch_j030")?1:2});var dcQ;var $cC;_.QG=_.Q1(function(J){var c=J.data;var m=function(){if(c().icon)a:{var b={iconName:c().icon};for(var x=_.BG().resolve(_.Ml),P=_.M([12,24]),p=P.next();!p.done;p=P.next()){var t=p.value;p=Object.assign({},b,{iconStyle:"youtube_fill",iconSize:t});t=Object.assign({},b,{iconStyle:"youtube_outline",iconSize:t});if(x.resolveIcon(p)){b=p;break a}if(x.resolveIcon(t)){b=t;break a}}b=void 0}else b=void 0;return b};
J={};return _.C("badge-shape",{class:_.pq("badge-shape-wiz",function(){return ham(c().type)},(J["badge-shape-wiz--overlay"]=function(){return c().isOverlay},J["badge-shape-wiz--ads-include-dot"]=function(){return c().adsIncludeDot},J["badge-shape-wiz--thumbnail-badge"]=function(){a:switch(c().type){case 16:case 17:case 18:var b=!0;
break a;default:b=!1}return b},J["badge-shape-wiz--status-badge"]=function(){a:switch(c().type){case 11:case 12:case 13:case 14:case 15:var b=!0;
break a;default:b=!1}return b},J["badge-shape-wiz--no-text"]=function(){return!c().text},J["badge-shape-wiz--modern"]=function(){return c().modern||_.w("web_modern_badge_shape")},J)),
style:_.kx({"background-color":function(){var b;return(b=c().customColors)==null?void 0:b.backgroundColor}}),
role:function(){return c().accessibilityText?"img":void 0},
"aria-label":function(){return c().accessibilityText}},_.C(_.n,{cond:function(){return c().animation},
then:function(b){return _.C(_.Nd,{className:"badge-shape-wiz__icon",data:b,animationName:function(){return b().animationConfig.name||""}})}}),_.C(_.n,{cond:function(){var b;
return m()&&!((b=c())==null?0:b.animation)},
then:function(){return _.C("div",{class:"badge-shape-wiz__icon"},_.C(Gbq,{data:function(){return m()}}))}}),_.C("div",{class:"badge-shape-wiz__text"},function(){var b;
return(b=c())==null?void 0:b.text}))},"O");
_.QG.idomCompat=!0;_.lv(_.QG,"badge-shape",{props:{data:_.vt}});var fu=function(){var J=_.h.apply(this,arguments)||this;J.systemIcons=_.w("kevlar_system_icons");J.animated=_.w("animated_live_badge_icon");J.useBadgeShape=_.w("web_badge_shape_defrag");return J};
_.D(fu,_.h);_.V=fu.prototype;_.V.addTooltips=function(){for(var J=_.Bj(this.hostElement).querySelectorAll(".badge"),c=0,m;m=J[c++];){var b=this.repeatElement.itemForElement(m);m=_.Bj(m);m.lastChild&&m.lastChild.is==="tp-yt-paper-tooltip"&&m.removeChild(m.lastChild);if(b=b.metadataBadgeRenderer&&b.metadataBadgeRenderer.tooltip){var x=_.eF("tp-yt-paper-tooltip");(0,_.xr)(x).textContent=b;x.setAttribute("position","top");x.setAttribute("aria-hidden","true");m.appendChild(x)}}};
_.V.badgesChanged=function(){var J=this;_.f$().parkOrScheduleJob(function(){J.addTooltips()},0,"eocs",16);
this.updateComputedBadges(this.badges,this.topStandaloneBadge)};
_.V.standaloneRoundedBadgeChanged=function(){var J=this.useRoundedBadge?this.useRoundedBadge:void 0;J&&(this.useRoundedBadge=J)};
_.V.standaloneBadgeChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.V.hiddenBadgeGroupsChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.V.computeStyle=function(J){_.w("enable_html5_teal_ad_badge")&&J==="BADGE_STYLE_TYPE_AD"&&(J="badge-style-type-ad-alternate");_.w("kevlar_ytb_live_badges")&&J==="BADGE_STYLE_TYPE_LIVE_NOW"&&(J="badge-style-type-live-now-alternate");return J?J.toLowerCase().replace(/_/g,"-"):""};
_.V.computeRole=function(J){return this.computeAriaLabel(J)?"img":"status"};
_.V.computeAriaLabel=function(J){var c;return(J==null?void 0:(c=J.accessibilityData)==null?void 0:c.label)||(J==null?void 0:J.label)};
_.V.computeBadgeShape=function(J){var c;if(J){var m,b=UWe(J.style),x=SyT(J.style),P=J.label,p=((m=J.accessibilityData)==null?void 0:m.label)||J.label;J=(c=J.icon)==null?void 0:c.iconType;c={type:b,brNzRatingBadgeType:x,text:P,accessibilityText:p,icon:J!=="PREMIUM"?J:void 0}}else c={};return c};
_.V.updateComputedBadges=function(J,c,m){var b=this;(c=c?[c]:m?[m]:void 0)?this.computedBadges=c:this.computedBadges=J==null?void 0:J.filter(function(x){var P;if((P=x.metadataBadgeRenderer)==null?0:P.groups){P=!1;x=_.M(x.metadataBadgeRenderer.groups);for(var p=x.next();!p.done;p=x.next()){p=p.value;var t=void 0;P=P||((t=b.hiddenBadgeGroups)==null?void 0:t.includes(p))}return!P}return!0})};
_.V.useFilledIcons=function(J){return _.w("kevlar_system_icons")&&(J==="AUDIO_BADGE"||J==="CHECK_CIRCLE_THICK"||J==="OFFICIAL_ARTIST_BADGE"||J==="SPONSORSHIP_STAR"||J==="PERSON_RADAR_FILLED"||J==="PERSON_RADAR")};
_.V.computeIcon=function(J){var c,m;J=J==null?void 0:(c=J.metadataBadgeRenderer)==null?void 0:(m=c.icon)==null?void 0:m.iconType;if(J!=="PREMIUM"&&J)return _.Pd(J)};
_.V.computeStandaloneBadge=function(J){var c;J=J==null?void 0:(c=J.icon)==null?void 0:c.iconType;return J==="PREMIUM_STANDALONE"||J==="PREMIUM_STANDALONE_CAIRO"?"standalone-badge":""};
fu.prototype.hiddenBadgeGroupsChanged=fu.prototype.hiddenBadgeGroupsChanged;fu.prototype.standaloneBadgeChanged=fu.prototype.standaloneBadgeChanged;fu.prototype.standaloneRoundedBadgeChanged=fu.prototype.standaloneRoundedBadgeChanged;fu.prototype.badgesChanged=fu.prototype.badgesChanged;_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],fu.prototype,"hidden",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],fu.prototype,"componentBehavior",void 0);
_.O([_.U(),_.R("design:type",Array)],fu.prototype,"badges",void 0);_.O([_.U(),_.R("design:type",Object)],fu.prototype,"topStandaloneBadge",void 0);_.O([_.U(),_.R("design:type",Object)],fu.prototype,"bottomStandaloneBadge",void 0);_.O([_.U(),_.R("design:type",Object)],fu.prototype,"computedBadges",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],fu.prototype,"mediumFontAdBadge",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],fu.prototype,"useRoundedBadge",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],fu.prototype,"largeFontAdBadge",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],fu.prototype,"overlayAd",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],fu.prototype,"overlayPremium",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],fu.prototype,"noDotAdBadge",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],fu.prototype,"collectionTruncate",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],fu.prototype,"isThumbnailBadge",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],fu.prototype,"wrapBadges",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],fu.prototype,"systemIcons",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],fu.prototype,"animated",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],fu.prototype,"useBadgeShape",void 0);_.O([_.U({value:[]}),_.R("design:type",Array)],fu.prototype,"hiddenBadgeGroups",void 0);_.O([_.Iu("#repeat"),_.R("design:type",Ls)],fu.prototype,"repeatElement",void 0);_.O([_.kr("badges"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],fu.prototype,"badgesChanged",null);
_.O([_.kr("useRoundedBadge"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],fu.prototype,"standaloneRoundedBadgeChanged",null);_.O([_.kr("topStandaloneBadge","bottomStandaloneBadge"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],fu.prototype,"standaloneBadgeChanged",null);_.O([_.kr("hiddenBadgeGroups"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],fu.prototype,"hiddenBadgeGroupsChanged",null);
fu=_.O([_.E({is:"ytd-badge-supported-renderer",disableElementRegistration:!0})],fu);
var GP_=_.cd()(fu,"ytd-badge-supported-renderer",function(){if($cC===void 0){var J=document.createElement("template");_.z(J,'\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>');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);$cC=J}J=$cC;return J},{allowedProps:"badges bottomStandaloneBadge collectionTruncate hidden hiddenBadgeGroups isThumbnailBadge largeFontAdBadge noDotAdBadge overlayAd overlayPremium topStandaloneBadge useRoundedBadge wrapBadges".split(" "),
mode:_.mP("kevlar_poly_si_batch_j053")?1:2});var Xx=function(){var J=_.h.apply(this,arguments)||this;J.iconType="STAR";J.standardizeIconSize=_.w("kevlar_system_icons");J.mediaHoverOverlayInitialVisibility=_.w("enable_top_landscape_image_button_command_web");J.noBottomMargin=!1;J.thumbnailObjectFit="CONTAIN";J.thumbnailFitHeight=!0;J.actionMap={"yt-mute-ad-action":"handleMuteAd"};return J};
_.D(Xx,_.h);_.V=Xx.prototype;
_.V.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"}}}};
_.V.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",Xx.JSC$12548_DEFAULT_CLICK_LOCATION_BEHAVIOR,Xx.JSC$12548_CLICK_LOCATION_ID_MAP))};
_.V.onTap=function(J){if(!_.w("use_on_click_for_desktop_display_ad"))this.onTapOrClick(J)};
_.V.onClick=function(J){if(_.w("use_on_click_for_desktop_display_ad"))this.onTapOrClick(J)};
_.V.onTapOrClick=function(J){this.clickCommand&&this.ytSparklesClickLocationBehavior.handleClick(this.clickCommand,J,!1)};
_.V.updateMediaBackgroundImage=function(){var J=this.get("data.image.thumbnail.thumbnails");J&&(J=_.yn(J,0))&&_.V1(this.hostElement,{"--ytd-display-ad-media-background-image":"url("+J+")"})};
_.V.impressionLog=function(){if(!this.data||!this.data.impressionsFired){if(this.data&&this.data.impressionEndpoints){for(var J=0;J<this.data.impressionEndpoints.length;J++){var c=this.data.impressionEndpoints[J];c.clickTrackingParams&&delete c.clickTrackingParams;_.BG().resolve(_.gu).resolveCommand(c,{form:{element:this.hostElement}})}this.data.impressionsFired=!0}var m;((m=this.data)==null?0:m.activeView)&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17)}};
_.V.handleMuteAd=function(){};
_.V.attached=function(){var J=this;_.w("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&J.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.V.detached=function(){_.w("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.eE.Object.defineProperties(Xx.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var J;if((J=this.data)==null||!J.titleText)return"";var c;return _.CX("AD_TITLE",{title:this.ytRendererBehavior.getSimpleString((c=this.data)==null?void 0:c.titleText)})}},
getRating:{configurable:!0,enumerable:!0,get:function(){var J;return((J=this.data)==null?0:J.rating)?Number(this.data.rating).toPrecision(2):null}},
getPrice:{configurable:!0,enumerable:!0,get:function(){var J;return((J=this.data)==null?0:J.price)?this.data.price:null}},
getThirdLine:{configurable:!0,enumerable:!0,get:function(){var J;return((J=this.data)==null?0:J.thirdLine)?this.data.thirdLine:null}},
getFourthLine:{configurable:!0,enumerable:!0,get:function(){var J;return((J=this.data)==null?0:J.fourthLine)?this.data.fourthLine:null}},
getFifthLine:{configurable:!0,enumerable:!0,get:function(){var J;return((J=this.data)==null?0:J.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 J;return!((J=this.data)==null||!J.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"}}});
Xx.prototype.onClick=Xx.prototype.onClick;Xx.prototype.onTap=Xx.prototype.onTap;Xx.prototype.dataChanged=Xx.prototype.dataChanged;
Xx.JSC$12548_CLICK_LOCATION_ID_MAP=_.w("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"]]);
Xx.JSC$12548_DEFAULT_CLICK_LOCATION_BEHAVIOR=_.w("enable_web_home_top_landscape_image_layout_click_location")?[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND",code:2,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_DESCRIPTION",code:7,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_AD_BADGE",code:31,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_TEXT_PRODUCT_ADVERTISER",
code:1,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:9,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_ACTION_LABEL",code:8,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_INNER_BACKGROUND",code:41,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BORDER",
code:39,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"}]:[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND",code:2,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"}];_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Xx.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],Xx.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.f(_.XP),_.R("design:type",Object)],Xx.prototype,"ytdDismissibleItemBehavior",void 0);_.O([_.f(_.fY),_.R("design:type",Object)],Xx.prototype,"ytdReduxBehavior",void 0);_.O([_.f(_.FP.YtSparklesClickLocationBehavior),_.R("design:type",Object)],Xx.prototype,"ytSparklesClickLocationBehavior",void 0);_.O([_.f(zX),_.R("design:type",Object)],Xx.prototype,"ytdActiveViewBehavior",void 0);_.O([_.f([_.yw.YtActionHandlerBehavior]),_.R("design:type",Object)],Xx.prototype,"actionHandlerBehavior",void 0);
_.O([_.U(),_.R("design:type",Object)],Xx.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],Xx.prototype,"clickCommand",void 0);_.O([_.U({reflectToAttribute:!0,selector:_.DZ}),_.R("design:type",Boolean)],Xx.prototype,"miniMode",void 0);_.O([_.U(),_.R("design:type",String)],Xx.prototype,"iconType",void 0);_.O([_.q("data.titleText"),_.R("design:type",String),_.R("design:paramtypes",[])],Xx.prototype,"titleAriaLabel",null);
_.O([_.q("data.rating"),_.R("design:type",Object),_.R("design:paramtypes",[])],Xx.prototype,"getRating",null);_.O([_.q("data.price"),_.R("design:type",Object),_.R("design:paramtypes",[])],Xx.prototype,"getPrice",null);_.O([_.q("data.thirdLine"),_.R("design:type",Object),_.R("design:paramtypes",[])],Xx.prototype,"getThirdLine",null);_.O([_.q("data.fourthLine"),_.R("design:type",Object),_.R("design:paramtypes",[])],Xx.prototype,"getFourthLine",null);
_.O([_.q("data.fifthLine"),_.R("design:type",Object),_.R("design:paramtypes",[])],Xx.prototype,"getFifthLine",null);_.O([_.q("getRating"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Xx.prototype,"computeRatingHidden",null);_.O([_.q("getPrice"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Xx.prototype,"computePriceHidden",null);_.O([_.q("getThirdLine"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Xx.prototype,"computeThirdLineHidden",null);
_.O([_.q("getFourthLine"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Xx.prototype,"computeFourthLineHidden",null);_.O([_.q("getFifthLine"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Xx.prototype,"computeFifthLineHidden",null);_.O([_.U({reflectToAttribute:!0}),_.q("data.energyIcon"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Xx.prototype,"hasEnergyIcon",null);
_.O([_.q("computePriceHidden","computeRatingHidden"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Xx.prototype,"computeSecondaryTextHidden",null);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Xx.prototype,"standardizeIconSize",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Xx.prototype,"mediaHoverOverlayInitialVisibility",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Xx.prototype,"noBottomMargin",void 0);
_.O([_.U({reflectToAttribute:!0}),_.q("data.layout"),_.R("design:type",String),_.R("design:paramtypes",[])],Xx.prototype,"layout",null);_.O([_.q("data.layout"),_.R("design:type",Object),_.R("design:paramtypes",[])],Xx.prototype,"mediaThumbnailWidth",null);_.O([_.q("layout"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Xx.prototype,"useRoundedBadge",null);_.O([_.U(),_.R("design:type",String)],Xx.prototype,"thumbnailObjectFit",void 0);
_.O([_.U(),_.R("design:type",Object)],Xx.prototype,"thumbnailFitHeight",void 0);_.O([_.kr("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Xx.prototype,"dataChanged",null);_.O([_.ps("tap"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],Xx.prototype,"onTap",null);_.O([_.ps("click"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],Xx.prototype,"onClick",null);
Xx=_.O([_.E({is:"ytd-display-ad-renderer",disableElementRegistration:!0})],Xx);
_.v(Xx,"ytd-display-ad-renderer",function(){if(dcQ!==void 0)return dcQ;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return dcQ=J},{mode:1});var ESQ;var vSQ;var OJZ;var dWu=new Map;var A6Q=!1;var ZX=function(){var J=_.h.apply(this,arguments)||this;J.DEFAULT_TOOLTIP_OFFSET="10";J.TOOLTIP_OFFSET_NO_BANNER="-8";J.badges=null;J.noEndpoints=!1;J.wrapText=!1;J.forceVerified=!1;J.tooltipPosition="top";J.compactStyle=!1;J.height=0;J.lineHeight=0;return J};
_.D(ZX,_.h);_.V=ZX.prototype;_.V.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-window-resized":"handleWindowResized"}};
_.V.attached=function(){var J=this;this.observer=new MutationObserver(function(c,m){J.handleResized();m.disconnect()});
this.observer.observe(this.textEl,{childList:!0})};
_.V.detached=function(){this.observer&&this.observer.disconnect()};
_.V.logTooltipEvent=function(){_.w("kevlar_wiz_tooltip_event_killswitch")||A6Q||(_.$W3("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP"),A6Q=!0)};
_.V.handleWindowResized=function(){this.handleResized()};
_.V.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")))};
_.V.onHeightChanged=function(){if(this.verified){var J=Math.ceil(this.height*Math.tan(30*Math.PI/180))+"px";_.Ub("HTML_DIR")==="rtl"?this.textContainerEl.style.marginLeft=J:this.textContainerEl.style.marginRight=J}};
_.V.onLineHeightChanged=function(){this.verified&&(this.lineHeight>=24||this.lineHeight===0&&this.height>=24)&&(this.textContainerEl.style.padding=_.Ub("HTML_DIR")==="rtl"?"0 6px 0 2px":"0 2px 0 6px")};
_.V.handleResized=function(){var J=this;this.verified&&_.ft.addLowPriorityJob(function(){J.fitBackgroundToText();var c=getComputedStyle(J.hostElement).lineHeight;c&&(c=c.match(/\d+/))&&c.length&&(J.lineHeight=Number(c[0]));J.height=J.lineHeight&&!J.wrapText?J.lineHeight:J.textEl.offsetHeight})};
_.V.fitBackgroundToText=function(){if(this.verified&&this.wrapText){this.textEl.style.width="unset";var J=document.createRange(),c=_.Bj(this.textEl).children;c.length>0?J.selectNodeContents(c[0]):J.selectNodeContents(this.textEl);this.textEl.style.width=Math.ceil(J.getBoundingClientRect().width)+"px"}};
_.V.computeChannelBadgeStyle=function(J){var c;if((J==null?0:(c=J.runs)==null?0:c.length)&&J.runs[0].textColor)return"--ytd-badge-icon-color:"+_.XB(J.runs[0].textColor)+";"};
_.eE.Object.defineProperties(ZX.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"?_.v2(this.channelName):this.channelName}},
tooltipText:{configurable:!0,enumerable:!0,get:function(){if(this.verified){if(this.tooltip)return this.tooltip;var J=this.get("badges.0.metadataBadgeRenderer.tooltip");if(J)return J}return _.OG(this.formattedName)}},
tooltipOffset:{configurable:!0,enumerable:!0,get:function(){return this.hasChannelArt?this.DEFAULT_TOOLTIP_OFFSET:this.TOOLTIP_OFFSET_NO_BANNER}}});
ZX.prototype.onLineHeightChanged=ZX.prototype.onLineHeightChanged;ZX.prototype.onHeightChanged=ZX.prototype.onHeightChanged;ZX.prototype.onChannelNameChanged=ZX.prototype.onChannelNameChanged;_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],ZX.prototype,"ytActionHandlerBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],ZX.prototype,"badges",void 0);_.O([_.U(),_.R("design:type",Object)],ZX.prototype,"channelName",void 0);
_.O([_.U(),_.R("design:type",Object)],ZX.prototype,"noEndpoints",void 0);_.O([_.U(),_.R("design:type",Object)],ZX.prototype,"wrapText",void 0);_.O([_.U(),_.R("design:type",Object)],ZX.prototype,"forceVerified",void 0);_.O([_.U(),_.R("design:type",Object)],ZX.prototype,"tooltipPosition",void 0);_.O([_.U(),_.R("design:type",String)],ZX.prototype,"tooltip",void 0);_.O([_.U(),_.R("design:type",Boolean)],ZX.prototype,"hasChannelArt",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],ZX.prototype,"compactStyle",void 0);_.O([_.Iu("#text-container"),_.R("design:type",HTMLElement)],ZX.prototype,"textContainerEl",void 0);_.O([_.Iu("#text"),_.R("design:type",Object)],ZX.prototype,"textEl",void 0);_.O([_.Iu("#verified-tooltip"),_.R("design:type",HTMLElement)],ZX.prototype,"verifiedTooltip",void 0);_.O([_.U(),_.R("design:type",Object)],ZX.prototype,"height",void 0);
_.O([_.U(),_.R("design:type",Object)],ZX.prototype,"lineHeight",void 0);_.O([_.U({reflectToAttribute:!0}),_.q("badges","forceVerified"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],ZX.prototype,"verified",null);_.O([_.q("badges","verified"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],ZX.prototype,"hideBadges",null);_.O([_.q("channelName"),_.R("design:type",Object),_.R("design:paramtypes",[])],ZX.prototype,"formattedName",null);
_.O([_.q("badges","verified","formattedName"),_.R("design:type",String),_.R("design:paramtypes",[])],ZX.prototype,"tooltipText",null);_.O([_.q("hasChannelArt"),_.R("design:type",String),_.R("design:paramtypes",[])],ZX.prototype,"tooltipOffset",null);_.O([_.NE("channelName"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],ZX.prototype,"onChannelNameChanged",null);
_.O([_.NE("height"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],ZX.prototype,"onHeightChanged",null);_.O([_.NE("lineHeight","height"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],ZX.prototype,"onLineHeightChanged",null);ZX=_.O([_.E({is:"ytd-channel-name",disableElementRegistration:!0})],ZX);
_.v(ZX,"ytd-channel-name",function(){if(OJZ!==void 0)return OJZ;var J=document.createElement("template");_.z(J,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-name--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" on-mouseover="logTooltipEvent" class="style-scope ytd-channel-name">\n  <div id="text-container" class="style-scope ytd-channel-name">\n    <yt-formatted-string id="text" ellipsis-truncate="[[!wrapText]]" link-inherit-color="" no-endpoints="[[noEndpoints]]" respect-lang-dir="" text="[[formattedName]]" title="" class="style-scope ytd-channel-name">\n    </yt-formatted-string>\n  </div>\n  <tp-yt-paper-tooltip aria-hidden="true" fit-to-visible-bounds="" offset="[[tooltipOffset]]" position="[[tooltipPosition]]" class="style-scope ytd-channel-name">\n    [[tooltipText]]\n  </tp-yt-paper-tooltip>\n</div>\n<ytd-badge-supported-renderer badges="[[badges]]" hidden="[[hideBadges]]" style$="[[computeChannelBadgeStyle(formattedName)]]" class="style-scope ytd-channel-name">\n</ytd-badge-supported-renderer>\n');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return OJZ=J},{mode:_.mP("kevlar_poly_si_batch_j036")?1:2});var q6=function(){var J=_.h.apply(this,arguments)||this;J.standardizeIconSize=_.w("kevlar_system_icons");J.enableModernCommentBadges=_.w("enable_modern_comment_badges");return J};
_.D(q6,_.h);q6.prototype.basicPaletteChanged=function(){var J;(J=this.data.color)!=null&&J.basicColorPaletteData&&_.DL(this.hostElement,this.data.color.basicColorPaletteData)};
q6.prototype.colorChanged=function(){if(!this.enableModernCommentBadges){var J,c=this.get("basicColorPaletteData.backgroundColor",(J=this.data)==null?void 0:J.color),m;J=this.get("basicColorPaletteData.foregroundTitleColor",(m=this.data)==null?void 0:m.color);m={};c?(c=_.XB(c),m["--ytd-author-comment-badge-background-color"]=c):(m["--ytd-author-comment-badge-icon-background-color"]="transparent",m["--ytd-author-comment-badge-background-color"]="transparent");J?(c=_.XB(J),m["--ytd-author-comment-badge-name-color"]=
c,m["--ytd-author-comment-badge-icon-color"]=c):m["--ytd-author-comment-badge-name-color"]="var(--yt-spec-text-primary)";Object.keys(m).length>0&&_.V1(this.hostElement,m)}};
q6.prototype.useFilledIcons=function(J){return _.w("kevlar_system_icons")&&(J==="CHECK_CIRCLE_THICK"||J==="OFFICIAL_ARTIST_BADGE")};
_.eE.Object.defineProperties(q6.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")}}});
q6.prototype.colorChanged=q6.prototype.colorChanged;q6.prototype.basicPaletteChanged=q6.prototype.basicPaletteChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],q6.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],q6.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],q6.prototype,"standardizeIconSize",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],q6.prototype,"enableModernCommentBadges",void 0);
_.O([_.U({reflectToAttribute:!0}),_.q("data.authorUnifiedVerified"),_.R("design:type",Object),_.R("design:paramtypes",[])],q6.prototype,"verified",null);_.O([_.U({reflectToAttribute:!0}),_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],q6.prototype,"creator",null);_.O([_.NE("data.color.basicColorPaletteData"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],q6.prototype,"basicPaletteChanged",null);
_.O([_.NE("data.color"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],q6.prototype,"colorChanged",null);q6=_.O([_.E({is:"ytd-author-comment-badge-renderer",disableElementRegistration:!0})],q6);
_.v(q6,"ytd-author-comment-badge-renderer",function(){if(vSQ!==void 0)return vSQ;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return vSQ=J},{mode:1});var Rr8;var UF=function(){return _.h.apply(this,arguments)||this};
_.D(UF,_.h);UF.prototype.computeThumbnailWidth=function(J){if(J==="BACKSTAGE_SURFACE_TYPE_STREAM")return 638};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],UF.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],UF.prototype,"data",void 0);_.O([_.U({computed:"computeIcon_(data.icon)"}),_.R("design:type",String)],UF.prototype,"icon",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",String)],UF.prototype,"surface",void 0);
_.O([_.U({reflectToAttribute:!0,value:_.w("enable_shrink_image_size_on_web_posts_singleton")}),_.R("design:type",Boolean)],UF.prototype,"searchSxsUx",void 0);UF=_.O([_.E({is:"ytd-backstage-image-renderer",disableElementRegistration:!0})],UF);
_.v(UF,"ytd-backstage-image-renderer",function(){if(Rr8!==void 0)return Rr8;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return Rr8=J},{mode:1});var oS$;var S$=function(){var J=_.h.apply(this,arguments)||this;J.isLoading=!1;J.selectedItemIndex=-1;return J};
_.D(S$,_.h);_.V=S$.prototype;_.V.computeIsChannelOwner=function(J){if(!J)return!0;J=J[0];return!(J&&(J.signinEndpoint||J.selectServiceEndpoint))};
_.V.computeIsImagePoll=function(J){return(J==null?void 0:J.type)==="POLL_TYPE_IMAGE"};
_.V.computeIsTotalVotesDisabled=function(J){return!(J==null?0:J.totalVotes)};
_.V.thumbnailSrc=function(J){var c,m,b,x;return(J==null?0:(c=J.thumbnails)==null?0:(m=c[0])==null?0:m.url)?_.n1((b=J.thumbnails)==null?void 0:(x=b[0])==null?void 0:x.url):void 0};
_.V.progressWidth=function(J){return"width:"+(J?J*100:0)+"%;"};
_.V.textAreaWidth=function(J){return this.isImagePoll?null:"width:"+(J?J*100:0)+"%;"};
_.V.hasEndpointStyle=function(){return this.isChannelOwner?"":"yt-simple-endpoint"};
_.V.dataChanged=function(){if(this.data&&(this.isLoading=!1,this.previousPollInfo=null,this.data.choices))for(var J=this.data.choices,c=0;c<J.length;c++)if(J[c].selected){this.selectedItemIndex=c;break}};
_.V.onPopupClosed=function(J,c){J=Number(this.pollVotes.selected);c.confirmed&&(this.selectChoice(J,!1),_.m9(this.hostElement,"yt-remove-comment-action",[{removeCommentAction:{commentId:this.data.votedCommentId}}]));this.pollVotes.selected=-1};
_.V.onPollChoiceSelected=function(){this.isLoading||this.isChannelOwner||this.selectChoice(Number(this.pollVotes.selected),!1);this.pollVotes.selected=-1};
_.V.onYtCommentPollRevert=function(J,c){c&&(this.selectChoice(c.selectedChoiceIndex,!0),this.set("data.totalVotes",c.totalVotes))};
_.V.onYtServiceRequestSent=function(J,c){if(c.actions)for(J=0;J<c.actions.length;J++){var m=c.actions[J];_.L(m,nO)&&this.set("data.totalVotes",_.L(m,nO).totalVotes)}};
_.V.onYtServiceRequestCompleted=function(J){var c=this.get("detail.data.actionResults.0.feedback",J);J=this.get("detail.data.actionResults.0.status",J);if(c==="FEEDBACK_DESELECT"||c==="FEEDBACK_SELECT")this.isLoading=!1,J==="STATUS_FAILED"?_.cA(this.hostElement,"yt-comment-poll-revert",this.previousPollInfo):this.previousPollInfo=null};
_.V.getEndpoint=function(J,c){return c===J?this.data.choices[c].deselectServiceEndpoint||null:this.data.choices[J].selectServiceEndpoint||null};
_.V.selectChoice=function(J,c){this.previousPollInfo||(this.previousPollInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var m=0;m<this.data.choices.length;m++){var b;if(J===this.selectedItemIndex){var x=!1;var P=b=null}else b=(x=m===J)?this.data.choices[m].voteRatioIfSelected:this.data.choices[m].voteRatioIfNotSelected,P=x?this.data.choices[m].votePercentageIfSelected:this.data.choices[m].votePercentageIfNotSelected;this.set("data.choices."+m+".voteRatio",b);
this.set("data.choices."+m+".votePercentage",P);this.set("data.choices."+m+".selected",x)}c||(this.isLoading=!0,(c=this.getEndpoint(J,this.selectedItemIndex))&&_.BG().resolve(_.gu).resolveCommand(c,{form:{element:this.hostElement}}));this.selectedItemIndex=this.selectedItemIndex===J?-1:J};
_.eE.Object.defineProperties(S$.prototype,{endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}}});
S$.prototype.onYtServiceRequestCompleted=S$.prototype.onYtServiceRequestCompleted;S$.prototype.onYtServiceRequestSent=S$.prototype.onYtServiceRequestSent;S$.prototype.onYtCommentPollRevert=S$.prototype.onYtCommentPollRevert;S$.prototype.onPopupClosed=S$.prototype.onPopupClosed;S$.prototype.dataChanged=S$.prototype.dataChanged;_.O([_.f(_.Eq),_.R("design:type",Object)],S$.prototype,"paperItemBehavior",void 0);
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],S$.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.vL),_.R("design:type",Object)],S$.prototype,"ytdOpenPopupBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],S$.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],S$.prototype,"isLoading",void 0);_.O([_.U({computed:"computeIsChannelOwner(data.choices)"}),_.R("design:type",Boolean)],S$.prototype,"isChannelOwner",void 0);
_.O([_.U({reflectToAttribute:!0,computed:"computeIsImagePoll(data)"}),_.R("design:type",Boolean)],S$.prototype,"isImagePoll",void 0);_.O([_.U({computed:"computeIsTotalVotesDisabled(data)"}),_.R("design:type",Boolean)],S$.prototype,"isTotalVotesDisabled",void 0);_.O([_.U(),_.R("design:type",Object)],S$.prototype,"previousPollInfo",void 0);_.O([_.U(),_.R("design:type",Object)],S$.prototype,"selectedItemIndex",void 0);_.O([_.Iu("#poll-votes"),_.R("design:type",Object)],S$.prototype,"pollVotes",void 0);
_.O([_.q("isChannelOwner"),_.R("design:type",Object),_.R("design:paramtypes",[])],S$.prototype,"endpointStyle",null);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],S$.prototype,"dataChanged",null);_.O([_.ps("yt-popup-closed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,Object]),_.R("design:returntype")],S$.prototype,"onPopupClosed",null);
_.O([_.ps("yt-comment-poll-revert"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,Object]),_.R("design:returntype")],S$.prototype,"onYtCommentPollRevert",null);_.O([_.ps("yt-service-request-sent"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,_.qd]),_.R("design:returntype")],S$.prototype,"onYtServiceRequestSent",null);
_.O([_.ps("yt-service-request-completed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],S$.prototype,"onYtServiceRequestCompleted",null);S$=_.O([_.E({is:"ytd-backstage-poll-renderer",disableElementRegistration:!0})],S$);
_.v(S$,"ytd-backstage-poll-renderer",function(){if(oS$!==void 0)return oS$;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return oS$=J},{mode:2});var QH$;var er_={autoplay:!1,loop:!1},jH8={simpleText:""},ht=function(){var J=_.h.apply(this,arguments)||this;J.isLoading=!1;J.usesPanelLockup=!1;J.selectedItemIndex=-1;J.baseCorrectLottiePlayerAnimationConfig=Object.assign({},{name:"CORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_LightTheme_01a.json",renderer:"svg"},er_,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"12 20 80 80"}});J.baseIncorrectLottiePlayerAnimationConfig=Object.assign({},{name:"INCORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_LightTheme_01a.json",
renderer:"svg"},er_,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"26 26 80 80"}});J.correctnessAnimationProps=[];J.correctnessAnimationRefs=[];return J};
_.D(ht,_.h);_.V=ht.prototype;_.V.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.ytRendererBehavior.markDirty()};
_.V.computeIsChannelOwner=function(J){if(!J)return!0;J=J[0];return!(J&&(J.signinEndpoint||J.selectServiceEndpoint))};
_.V.computeIsTotalVotesDisabled=function(J){return!(J==null?0:J.totalVotes)};
_.V.computeIsImageQuiz=function(J){return(J==null?void 0:J.type)==="POLL_TYPE_IMAGE"};
_.V.onExplanationChanged=function(){this.expander.reset()};
_.V.dataChanged=function(){if(this.data){this.isLoading=!1;this.previousQuizInfo=null;var J=this.data.choices;if(J){this.maybeInitializeQuizLotties(J);for(var c=0;c<J.length;c++)if(J[c].isSelected||this.isChannelOwner&&J[c].isCorrect){this.selectedItemIndex=c;return}this.selectedItemIndex=-1}}};
_.V.onQuizChoiceSelected=function(){if(this.isLoading||this.isChannelOwner||this.isQuizAnsweringDisabled)this.quizVotes.selected=-1;else{var J=this.selectedItemIndex,c=Number(this.quizVotes.selected);this.selectChoice(c);this.sendVoteAction(c,J);this.quizVotes.selected=-1;var m;J=!((m=this.data)==null?0:m.enableAnimation);this.maybePlayAnswerAnimations(J)}};
_.V.onYtCommentPollRevert=function(J,c){c&&(this.selectChoice(c.selectedChoiceIndex),this.set("data.totalVotes",c.totalVotes))};
_.V.onYtServiceRequestSent=function(J,c){if(c.actions)for(J=_.M(c.actions),c=J.next();!c.done;c=J.next())(c=_.L(c.value,nO))&&this.set("data.totalVotes",c.totalVotes)};
_.V.onYtServiceRequestCompleted=function(J){var c=this.get("detail.data.actionResults.0.feedback",J);J=this.get("detail.data.actionResults.0.status",J);if(c==="FEEDBACK_DESELECT"||c==="FEEDBACK_SELECT")this.isLoading=!1,J==="STATUS_FAILED"?_.cA(this.hostElement,"yt-comment-quiz-revert",this.previousQuizInfo):this.previousQuizInfo=null};
_.V.getAnimationPropsForChoiceIndex=function(J,c){return c[J]};
_.V.maybePlayAnswerAnimations=function(J){J=J===void 0?!1:J;var c;if((c=this.data)!=null&&c.choices&&!(this.correctnessAnimationRefs.length<this.data.choices.length)){c=_.M(this.correctnessAnimationRefs);for(var m=c.next();!m.done;m=c.next()){var b=void 0,x=void 0;(b=m.value)==null||(x=b.lottieEl)==null||x.stop()}if(!(this.selectedItemIndex<0)){c=0;J&&(c=this.isCorrect?37:25);var P,p;(P=this.correctnessAnimationRefs[this.selectedItemIndex])==null||(p=P.lottieEl)==null||p.goToAndPlay(J?c:0,!0);if(!(this.isCorrect||
(P=this.data.choices.findIndex(function(k){return k.isCorrect}),P<0))){var t,I;
(I=(t=this.correctnessAnimationRefs[P])==null?void 0:t.lottieEl)==null||I.goToAndPlay(37,!0);var a;t=(a=this.fadeContainers)==null?void 0:a.item(P);!J&&t&&this.fadeIn(t)}}}};
_.V.thumbnailSrc=function(J){var c,m,b,x;return(J==null?0:(c=J.thumbnails)==null?0:(m=c[0])==null?0:m.url)?_.n1((b=J.thumbnails)==null?void 0:(x=b[0])==null?void 0:x.url):void 0};
_.V.a11yVotedText=function(J,c){var m,b,x=((m=this.data)==null?void 0:(b=m.correctVotedText)==null?void 0:b.simpleText)||"",P,p;m=((P=this.data)==null?void 0:(p=P.votedText)==null?void 0:p.simpleText)||"";if(!c)return"";var t,I;if((t=this.data)==null?0:(I=t.choices)==null?0:I[J].isCorrect)return x;var a,k;return((a=this.data)==null?0:(k=a.choices)==null?0:k[J].isSelected)?m:""};
_.V.getEndpoint=function(J,c){return c===J?this.data.choices[J].deselectServiceEndpoint||null:this.data.choices[J].selectServiceEndpoint||null};
_.V.sendVoteAction=function(J,c){if(J=this.getEndpoint(J,c))this.isLoading=!0,this.ytComponentBehavior.resolveCommand(J)};
_.V.selectChoice=function(J){this.previousQuizInfo||(this.previousQuizInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var c=0;c<this.data.choices.length;c++)this.set("data.choices."+c+".isSelected",J===this.selectedItemIndex?!1:c===J);this.selectedItemIndex=this.selectedItemIndex===J?-1:J};
_.V.maybeInitializeQuizLotties=function(J){var c=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=J.map(function(m){return{animationConfig:m.isCorrect?c.baseCorrectLottiePlayerAnimationConfig:c.baseIncorrectLottiePlayerAnimationConfig,
animationRef:{},listeners:{DOMLoaded:function(){c.maybePlayAnswerAnimations(!0)}}}});
this.correctnessAnimationRefs=this.correctnessAnimationProps.map(function(m){return m.animationRef||{}})};
_.V.fadeIn=function(J){J.classList.add("fade-in");_.cP(_.ft,function(){J.classList.remove("fade-in")},900)};
_.eE.Object.defineProperties(ht.prototype,{shouldUseModernUi:{configurable:!0,enumerable:!0,get:function(){return _.w("enable_modern_quiz_consumption_ui")||this.usesPanelLockup}},
showExplanation:{configurable:!0,enumerable:!0,get:function(){return _.OG(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 J,c;return((J=this.data)==null?void 0:(c=J.choices)==null?void 0:c.some(function(m){return m.isSelected}))||!1}},
explanation:{configurable:!0,enumerable:!0,get:function(){var J;return(J=this.data)==null||!J.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?jH8:this.data.choices[this.selectedItemIndex].explanation||jH8}},
isCorrect:{configurable:!0,enumerable:!0,get:function(){var J;return(J=this.data)==null||!J.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?!1:this.data.choices[this.selectedItemIndex].isCorrect||!1}}});
ht.prototype.onYtServiceRequestCompleted=ht.prototype.onYtServiceRequestCompleted;ht.prototype.onYtServiceRequestSent=ht.prototype.onYtServiceRequestSent;ht.prototype.onYtCommentPollRevert=ht.prototype.onYtCommentPollRevert;ht.prototype.dataChanged=ht.prototype.dataChanged;ht.prototype.onExplanationChanged=ht.prototype.onExplanationChanged;_.O([_.f(_.Eq),_.R("design:type",Object)],ht.prototype,"paperItemBehavior",void 0);
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],ht.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],ht.prototype,"ytComponentBehavior",void 0);_.O([_.f(_.Qw.YtTaskEmitterBehavior),_.R("design:type",Object)],ht.prototype,"ytTaskEmitterBehavior",void 0);_.O([_.f(_.vL),_.R("design:type",Object)],ht.prototype,"ytdOpenPopupBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],ht.prototype,"data",void 0);
_.O([_.U(),_.R("design:type",Object)],ht.prototype,"isLoading",void 0);_.O([_.U(),_.R("design:type",Object)],ht.prototype,"usesPanelLockup",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeIsChannelOwner(data.choices)"}),_.R("design:type",Boolean)],ht.prototype,"isChannelOwner",void 0);_.O([_.U({computed:"computeIsTotalVotesDisabled(data)"}),_.R("design:type",Boolean)],ht.prototype,"isTotalVotesDisabled",void 0);
_.O([_.U({reflectToAttribute:!0,computed:"computeIsImageQuiz(data)"}),_.R("design:type",Boolean)],ht.prototype,"isImageQuiz",void 0);_.O([_.U(),_.R("design:type",Object)],ht.prototype,"previousQuizInfo",void 0);_.O([_.U(),_.R("design:type",Object)],ht.prototype,"selectedItemIndex",void 0);_.O([_.U({reflectToAttribute:!0}),_.q("data","usesPanelLockup"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],ht.prototype,"shouldUseModernUi",null);
_.O([_.Ks(".fade-container"),_.R("design:type",Object)],ht.prototype,"fadeContainers",void 0);_.O([_.U(),_.R("design:type",Array)],ht.prototype,"correctnessAnimationProps",void 0);_.O([_.q("explanation","showCorrectAnswer"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],ht.prototype,"showExplanation",null);_.O([_.q("isChannelOwner","isAttempted"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],ht.prototype,"showCorrectAnswer",null);
_.O([_.q("isChannelOwner","isAttempted","data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],ht.prototype,"isQuizAnsweringDisabled",null);_.O([_.q("isQuizAnsweringDisabled"),_.R("design:type",Object),_.R("design:paramtypes",[])],ht.prototype,"endpointStyle",null);_.O([_.q("data","selectedItemIndex"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],ht.prototype,"isAttempted",null);
_.O([_.q("data","selectedItemIndex"),_.R("design:type",Object),_.R("design:paramtypes",[])],ht.prototype,"explanation",null);_.O([_.q("data","selectedItemIndex"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],ht.prototype,"isCorrect",null);_.O([_.Iu("ytd-expander"),_.R("design:type",Object)],ht.prototype,"expander",void 0);_.O([_.Iu("#quiz-votes"),_.R("design:type",Object)],ht.prototype,"quizVotes",void 0);
_.O([_.NE("explanation"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],ht.prototype,"onExplanationChanged",null);_.O([_.NE("data","isChannelOwner"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],ht.prototype,"dataChanged",null);_.O([_.ps("yt-comment-quiz-revert"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,Object]),_.R("design:returntype")],ht.prototype,"onYtCommentPollRevert",null);
_.O([_.ps("yt-service-request-sent"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,_.qd]),_.R("design:returntype")],ht.prototype,"onYtServiceRequestSent",null);_.O([_.ps("yt-service-request-completed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],ht.prototype,"onYtServiceRequestCompleted",null);ht=_.O([_.E({is:"ytd-backstage-quiz-renderer",disableElementRegistration:!0})],ht);
_.v(ht,"ytd-backstage-quiz-renderer",function(){if(QH$!==void 0)return QH$;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return QH$=J},{mode:1});var FI_;var dW=function(){return _.h.apply(this,arguments)||this};
_.D(dW,_.h);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],dW.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],dW.prototype,"data",void 0);dW=_.O([_.E({is:"ytd-post-uploaded-video-renderer",disableElementRegistration:!0})],dW);
_.v(dW,"ytd-post-uploaded-video-renderer",function(){if(FI_!==void 0)return FI_;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return FI_=J},{mode:1});var lwB;var $T=function(){return _.h.apply(this,arguments)||this};
_.D($T,_.h);$T.prototype.useFilledIcons=function(J){return J==="SPONSORSHIP_STAR"};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],$T.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],$T.prototype,"data",void 0);$T=_.O([_.E({is:"ytd-sponsors-only-badge-renderer",disableElementRegistration:!0})],$T);
_.v($T,"ytd-sponsors-only-badge-renderer",function(){if(lwB!==void 0)return lwB;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return lwB=J},{mode:1});var y6B;var Gr=function(){return _.h.apply(this,arguments)||this};
_.D(Gr,_.h);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],Gr.prototype,"componentBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Gr.prototype,"data",void 0);Gr=_.O([_.E({is:"ytd-child-video-renderer",disableElementRegistration:!0})],Gr);
_.v(Gr,"ytd-child-video-renderer",function(){if(y6B!==void 0)return y6B;var J=document.createElement("template");_.z(J,'\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>');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return y6B=J},{mode:1});var Bz8;var gSa;var EF=function(){var J=_.h.apply(this,arguments)||this;J.size=0;J.enableWebModernCollectionsV2=_.w("web_modern_collections_v2");J.fallbackImageSize={height:void 0,width:9999};J.webModernCollections=!1;return J};
_.D(EF,_.h);_.V=EF.prototype;_.V.computeBlurredImageSize=function(J){return J?{height:J*2,width:J*2}:this.fallbackImageSize};
_.V.computeImageSize=function(J){return J?{height:J,width:J}:this.fallbackImageSize};
_.V.computeObjectFit=function(J){return J?"FILL":"CONTAIN"};
_.V.computePreserve=function(J){return J?!0:!1};
_.V.setBackground=function(){var J,c;_.w("web_modern_collections_v2")&&((J=this.data)==null?0:(c=J.thumbnail)==null?0:c.sampledThumbnailColor)&&(J=this.data.thumbnail.sampledThumbnailColor,this.hostElement.style.background="rgba("+J.red+","+J.green+","+J.blue+",1)")};
EF.prototype.setBackground=EF.prototype.setBackground;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],EF.prototype,"ytRendererBehavior",void 0);_.O([_.U({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],EF.prototype,"watchFeedThumbnail",void 0);_.O([_.U(),_.R("design:type",Object)],EF.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],EF.prototype,"size",void 0);
_.O([_.U({computed:"computeBlurredImageSize(size)"}),_.R("design:type",Object)],EF.prototype,"blurredImageSize",void 0);_.O([_.U({computed:"computeImageSize(size)"}),_.R("design:type",Object)],EF.prototype,"imageSize",void 0);_.O([_.U({computed:"computePreserve(size)"}),_.R("design:type",String)],EF.prototype,"preserve",void 0);_.O([_.U({computed:"computeObjectFit(size)"}),_.R("design:type",String)],EF.prototype,"objectFit",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],EF.prototype,"enableWebModernCollectionsV2",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],EF.prototype,"webModernCollections",void 0);_.O([_.NE("data.thumbnail.sampledThumbnailColor"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],EF.prototype,"setBackground",null);EF=_.O([_.E({is:"ytd-playlist-custom-thumbnail-renderer",disableElementRegistration:!0})],EF);
_.v(EF,"ytd-playlist-custom-thumbnail-renderer",function(){if(gSa!==void 0)return gSa;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return gSa=J},{mode:1});var JhL;var vT=function(){return _.h.apply(this,arguments)||this};
_.D(vT,_.h);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],vT.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],vT.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Number)],vT.prototype,"width",void 0);vT=_.O([_.E({is:"ytd-playlist-video-thumbnail-renderer",disableElementRegistration:!0})],vT);
_.v(vT,"ytd-playlist-video-thumbnail-renderer",function(){if(JhL!==void 0)return JhL;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return JhL=J},{mode:1});var ch8;var OF=function(){return _.h.apply(this,arguments)||this};
_.D(OF,_.h);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],OF.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],OF.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Number)],OF.prototype,"width",void 0);OF=_.O([_.E({is:"ytd-show-custom-thumbnail-renderer",disableElementRegistration:!0})],OF);
_.v(OF,"ytd-show-custom-thumbnail-renderer",function(){if(ch8!==void 0)return ch8;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return ch8=J},{mode:1});var m$j;var At=function(){return _.h.apply(this,arguments)||this};
_.D(At,_.h);At.prototype.useFilledIcons=function(J){return J==="MUSIC"||J==="COURSE"};
At.prototype.overlayColorChanged=function(){if(typeof this.overlayColor==="number")this.hostElement.style.backgroundColor=UT(this.overlayColor,"0.8");else if(this.overlayColor){var J=this.overlayColor;this.hostElement.style.backgroundColor="rgba("+J.red+","+J.green+","+J.blue+",0.8)"}};
_.eE.Object.defineProperties(At.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)}}});
At.prototype.overlayColorChanged=At.prototype.overlayColorChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],At.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],At.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],At.prototype,"overlayColor",void 0);_.O([_.U({reflectToAttribute:!0}),_.q("data.icon","data.text"),_.R("design:type",Object),_.R("design:paramtypes",[])],At.prototype,"overlayStyle",null);
_.O([_.U({reflectToAttribute:!0}),_.q("data.icon","data.text"),_.R("design:type",Object),_.R("design:paramtypes",[])],At.prototype,"overlayTextStyle",null);_.O([_.NE("overlayColor"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],At.prototype,"overlayColorChanged",null);At=_.O([_.E({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-bottom-panel-renderer"})],At);
_.v(At,"ytd-thumbnail-overlay-bottom-panel-renderer",function(){if(m$j!==void 0)return m$j;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return m$j=J},{mode:1});var bzQ;var R7=function(){var J=_.h.apply(this,arguments)||this;J.active=!1;return J};
_.D(R7,_.h);R7.prototype.computeIsSpinnerHidden=function(J){return(J==null?void 0:J.state)!=="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING"};
R7.prototype.computeOverlayIcon=function(J){return(J==null?void 0:J.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED"?"ERROR_OUTLINE":(J==null?void 0:J.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER"?"OFFLINE_PAUSE":"OFFLINE_DOWNLOADING_SPINNER"};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],R7.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],R7.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],R7.prototype,"active",void 0);R7=_.O([_.E({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-downloading-renderer"})],R7);
_.v(R7,"ytd-thumbnail-overlay-downloading-renderer",function(){if(bzQ!==void 0)return bzQ;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return bzQ=J},{mode:1});var x$B;var o7=function(){return _.h.apply(this,arguments)||this};
_.D(o7,_.h);_.eE.Object.defineProperties(o7.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.text)}}});
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],o7.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],o7.prototype,"data",void 0);_.O([_.q("data.text"),_.R("design:type",Object),_.R("design:paramtypes",[])],o7.prototype,"text",null);o7=_.O([_.E({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-hover-text-renderer"})],o7);
_.v(o7,"ytd-thumbnail-overlay-hover-text-renderer",function(){if(x$B!==void 0)return x$B;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return x$B=J},{mode:1});var Vc_,P96=function(){if(Vc_!==void 0)return Vc_;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return Vc_=J};var QH=function(){return _.h.apply(this,arguments)||this};
_.D(QH,_.h);_.eE.Object.defineProperties(QH,{template:{configurable:!0,enumerable:!0,get:function(){return P96()}}});
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],QH.prototype,"animateEqualizer",void 0);QH=_.O([_.E({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-equalizer"})],QH);_.cd()(QH,"ytd-thumbnail-overlay-equalizer",function(){return P96()},{allowedProps:["animateEqualizer"],
mode:1});var Mc2;var e$=function(){var J=_.h.apply(this,arguments)||this;J.nowPlayingBadge=_.w("web_now_playing_badge");J.actionMap={"yt-miniplayer-play-state-changed":"onMiniplayerPlayStateChanged"};return J};
_.D(e$,_.h);e$.prototype.activeChanged=function(){var J=this;_.w("web_enable_playlist_video_lockup_equalizer")&&this.isActive&&_.o3(this,function(){_.cA(J.hostElement,"yt-playlist-lockup-now-playing-active",J)})};
e$.prototype.onMiniplayerPlayStateChanged=function(J){var c,m=(c=_.L(_.Mh().currentEndpoint,_.Rz))==null?void 0:c.videoId;this.isVideoPlaying=J&&(_.w("web_limit_now_playing_animation_killswitch")||this.videoId===m)};
e$.prototype.activeChanged=e$.prototype.activeChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],e$.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],e$.prototype,"ytActionHandlerBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],e$.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Boolean)],e$.prototype,"isVideoPlaying",void 0);_.O([_.U(),_.R("design:type",String)],e$.prototype,"videoId",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],e$.prototype,"equalizerOnly",void 0);_.O([_.U(),_.R("design:type",Boolean)],e$.prototype,"isActive",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],e$.prototype,"nowPlayingBadge",void 0);_.O([_.NE("isActive"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],e$.prototype,"activeChanged",null);
e$=_.O([_.E({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-now-playing-renderer"})],e$);
_.v(e$,"ytd-thumbnail-overlay-now-playing-renderer",function(){if(Mc2!==void 0)return Mc2;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return Mc2=J},{mode:1});var pxu;var j$=function(){return _.h.apply(this,arguments)||this};
_.D(j$,_.h);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],j$.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],j$.prototype,"data",void 0);j$=_.O([_.E({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-playback-status-renderer"})],j$);
_.v(j$,"ytd-thumbnail-overlay-playback-status-renderer",function(){if(pxu!==void 0)return pxu;var J=document.createElement("template");_.z(J,'\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>');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return pxu=J},{mode:_.mP("kevlar_poly_si_batch_j025")?1:2});var NH2;var Fx=function(){return _.h.apply(this,arguments)||this};
_.D(Fx,_.h);Fx.prototype.onDurationChanged=function(){var J,c;_.Bj(this.hostElement).querySelector("#progress").style.width=((c=(J=this.data)==null?void 0:J.percentDurationWatched)!=null?c:0)+"%"};
Fx.prototype.onDurationChanged=Fx.prototype.onDurationChanged;_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],Fx.prototype,"componentBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Fx.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],Fx.prototype,"isLive",void 0);_.O([_.NE("data.percentDurationWatched"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Fx.prototype,"onDurationChanged",null);
Fx=_.O([_.E({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-resume-playback-renderer"})],Fx);
_.v(Fx,"ytd-thumbnail-overlay-resume-playback-renderer",function(){if(NH2!==void 0)return NH2;var J=document.createElement("template");_.z(J,'\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>');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return NH2=J},{mode:1});var tc8;var lG=function(){var J=_.h.apply(this,arguments)||this;J.bottomPanel=!1;J.richGridOverlay=!1;J.watchFeedOverlay=!1;J.isCompact=!1;return J};
_.D(lG,_.h);lG.prototype.widthChanged=function(){this.watchFeedOverlay?this.hostElement.style.width="":this.richGridOverlay||(this.hostElement.style.width=this.width+"px")};
_.eE.Object.defineProperties(lG.prototype,{isIconFilled:{configurable:!0,enumerable:!0,get:function(){var J,c;return((J=this.data)==null?void 0:(c=J.icon)==null?void 0:c.iconType)==="PLAY_ALL"&&_.w("kevlar_system_icons")}}});
lG.prototype.widthChanged=lG.prototype.widthChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],lG.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],lG.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Number)],lG.prototype,"width",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],lG.prototype,"bottomPanel",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],lG.prototype,"richGridOverlay",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],lG.prototype,"watchFeedOverlay",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],lG.prototype,"isCompact",void 0);_.O([_.q("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],lG.prototype,"isIconFilled",null);_.O([_.NE("width","watchFeedOverlay"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],lG.prototype,"widthChanged",null);
lG=_.O([_.E({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-side-panel-renderer"})],lG);
_.v(lG,"ytd-thumbnail-overlay-side-panel-renderer",function(){if(tc8!==void 0)return tc8;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return tc8=J},{mode:1});var IVa;var KHj=["CLIP","SHORTS"],yH=function(){var J=_.h.apply(this,arguments)||this;J.animated=_.w("animated_live_badge_icon");J.hasIcon=!1;J.updateTimerIntervalId=0;J.timeSinceLive=0;return J};
_.D(yH,_.h);_.V=yH.prototype;_.V.detached=function(){clearInterval(this.updateTimerIntervalId)};
_.V.dataChanged=function(){this.data&&(this.hasIcon=!!this.data.icon)};
_.V.computeHideTimeStatus=function(){return this.hideBadgeShape?!this.hasIconOrText():!0};
_.V.hasIconOrText=function(){var J,c;return!!(((J=this.data)==null?0:J.icon)||((c=this.data)==null?0:c.text))};
_.V.initializeLiveBadgeTimer=function(){var J=this,c,m=(c=this.liveBadgeData)==null?void 0:c.startTimestampSec;if(m&&this.canShowLiveBadgeTimer()){var b;c=Number((b=this.liveBadgeData)==null?void 0:b.tickIntervalUsec)/1E3||1E3;this.timeSinceLive=Date.now()/1E3-Number(m);this.updateTimerIntervalId=_.MU(function(){J.canShowLiveBadgeTimer()?J.timeSinceLive++:(J.timeSinceLive=0,window.clearInterval(J.updateTimerIntervalId))},c)}else this.timeSinceLive=0};
_.V.canShowLiveBadgeTimer=function(){var J=Date.now(),c,m;return J<(Number((c=this.liveBadgeData)==null?void 0:c.endTimestampSec)-1)*1E3&&J>Number((m=this.liveBadgeData)==null?void 0:m.startTimestampSec)*1E3};
_.eE.Object.defineProperties(yH.prototype,{badgeShapeData:{configurable:!0,enumerable:!0,get:function(){if(this.data){var J=this.data;var c=this.timeSinceLive;var m,b,x,P;a:{var p=J.style;if(p===void 0)p=16;else switch(p){case "LIVE":p=17;break a;default:p=16}}c={type:p,text:c?dZ3({seconds:c}):_.OG(J.text),accessibilityText:(m=J.text)==null?void 0:(b=m.accessibility)==null?void 0:(x=b.accessibilityData)==null?void 0:x.label,icon:(P=J.icon)==null?void 0:P.iconType}}else c={};return c}},
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 J;return(J=this.data)==null?void 0:J.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 KHj.indexOf(this.overlayType||this.overlayStyle||"")!==-1}}});
yH.prototype.initializeLiveBadgeTimer=yH.prototype.initializeLiveBadgeTimer;yH.prototype.dataChanged=yH.prototype.dataChanged;_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],yH.prototype,"componentBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],yH.prototype,"data",void 0);_.O([_.U({computed:"computeIcon_(data.icon)"}),_.R("design:type",String)],yH.prototype,"icon",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],yH.prototype,"animated",void 0);
_.O([_.U({reflectToAttribute:!0,computed:"computeHideTimeStatus(data,hideBadgeShape)"}),_.R("design:type",Boolean)],yH.prototype,"hideTimeStatus",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],yH.prototype,"hasIcon",void 0);_.O([_.U(),_.R("design:type",Object)],yH.prototype,"timeSinceLive",void 0);_.O([_.q("data","timeSinceLive"),_.R("design:type",Object),_.R("design:paramtypes",[])],yH.prototype,"badgeShapeData",null);
_.O([_.q("data","overlayType"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],yH.prototype,"hideBadgeShape",null);_.O([_.kr("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],yH.prototype,"dataChanged",null);_.O([_.U({reflectToAttribute:!0}),_.q("data.style"),_.R("design:type",Object),_.R("design:paramtypes",[])],yH.prototype,"overlayStyle",null);
_.O([_.q("data.liveBadgeData"),_.R("design:type",Object),_.R("design:paramtypes",[])],yH.prototype,"liveBadgeData",null);_.O([_.U({reflectToAttribute:!0}),_.q("data.type"),_.R("design:type",Object),_.R("design:paramtypes",[])],yH.prototype,"overlayType",null);_.O([_.q("overlayType","overlayStyle"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],yH.prototype,"useFilledIcon",null);
_.O([_.kr("liveBadgeData"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],yH.prototype,"initializeLiveBadgeTimer",null);yH=_.O([_.E({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-time-status-renderer"})],yH);
_.v(yH,"ytd-thumbnail-overlay-time-status-renderer",function(){if(IVa!==void 0)return IVa;var J=document.createElement("template");_.z(J,'\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>');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return IVa=J},{mode:_.mP("kevlar_poly_si_batch_j035")?1:2});var C9C;var BT=function(){return _.h.apply(this,arguments)||this};
_.D(BT,_.h);BT.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"}}}}};
BT.prototype.computeThumbnailOverlayResumePlaybackRenderer=function(J){if(this.hasPlaybackProgressBar)return{percentDurationWatched:J.percentDurationWatched}};
BT.prototype.computeHasPlaybackProgressBar=function(J){return!!J.percentDurationWatched&&J.percentDurationWatched>0};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],BT.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],BT.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],BT.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeHasPlaybackProgressBar(data)"}),_.R("design:type",Boolean)],BT.prototype,"hasPlaybackProgressBar",void 0);
BT=_.O([_.E({disableElementRegistration:!0,is:"ytd-tvfilm-show-watch-forward-overlay-renderer"})],BT);
_.v(BT,"ytd-tvfilm-show-watch-forward-overlay-renderer",function(){if(C9C!==void 0)return C9C;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return C9C=J},{mode:1});var aV_;var kQa=_.Q1(function(J){var c=J.data;var m=J.children;var b=function(){return!!c().doubleStack};
return _.C("yt-collections-stack",{class:"collections-stack-wiz",hidden:function(){return!c().experimentEnabled}},_.C(_.n,{cond:c,
then:function(){return _.C("div",null,_.C(_.n,{cond:b,then:function(){var x={};return _.C("div",{class:_.pq("collections-stack-wiz__collection-stack2",function(){return c().customClassName2ndStack},(x["collections-stack-wiz__collection-stack2--responsive-mode"]=function(){return c().enableResponsiveMode},x)),
style:_.kx({"background-color":function(){return EXe(c())}})})}}),_.C("div",{class:_.pq("collections-stack-wiz__collection-stack1",function(){return c().customClassName1stStack},function(){return Gur(c().thumbnailSize?c().thumbnailSize:"medium")}),
style:_.kx({"background-color":function(){return EXe(c())}})}),m)}}))},"P");_.lv(kQa,"yt-collections-stack",{props:{data:_.vt}});var gW=function(){var J=_.h.apply(this,arguments)||this;J.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};J.webModernCollections=!1;J.isSearch=!1;J.isDoubleStack=!1;J.thumbnailSize="medium";J.enableWebModernCollectionsV2=_.w("web_modern_collections_v2");return J};
_.D(gW,_.h);_.V=gW.prototype;
_.V.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]]"}}}}}};
_.V.getThumbnailDetails=function(J){if(J!=null&&J.thumbnailRenderer){var c=J.thumbnailRenderer,m;if((m=c.playlistVideoThumbnailRenderer)==null?0:m.thumbnail)return c.playlistVideoThumbnailRenderer.thumbnail;var b;if((b=c.playlistCustomThumbnailRenderer)==null?0:b.thumbnail)return c.playlistCustomThumbnailRenderer.thumbnail;J=J.thumbnailRenderer;var x;if((x=J.showCustomThumbnailRenderer)==null?0:x.thumbnail)return J.showCustomThumbnailRenderer.thumbnail}};
_.V.computeOverlayColor=function(J){var c,m;if((c=this.getThumbnailDetails(J))==null?0:(m=c.darkColorPalette)==null?0:m.section2Color)return this.getThumbnailDetails(J).darkColorPalette.section2Color;var b;return(b=this.getThumbnailDetails(J))==null?void 0:b.sampledThumbnailColor};
_.V.computeWebModernCollections=function(J){if(J==null||!J.thumbnailOverlays)return!1;J=_.M(J.thumbnailOverlays);for(var c=J.next();!c.done;c=J.next()){var m=void 0;if((m=c.value)==null?0:m.thumbnailOverlayBottomPanelRenderer)return!0}return!1};
_.V.computeNavigationEndpoint=function(J){return v_3(J==null?void 0:J.navigationEndpoint)};
_.eE.Object.defineProperties(gW.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var J=this.getThumbnailDetails(this.data);return{thumbnailSize:this.thumbnailSize,doubleStack:this.isDoubleStack,sampledThumbnailColor:J==null?void 0:J.sampledThumbnailColor,vibrantColorPalette:J==null?void 0:J.vibrantColorPalette,darkColorPalette:J==null?void 0:J.darkColorPalette,experimentEnabled:this.enableWebModernCollectionsV2}}}});
_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],gW.prototype,"ytActionHandlerBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],gW.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(W2a),_.R("design:type",Object)],gW.prototype,"ytdThumbnailBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],gW.prototype,"componentBehavior",void 0);
_.O([_.U({value:!1}),_.R("design:type",Boolean)],gW.prototype,"watchFeedThumbnail",void 0);_.O([_.U(),_.R("design:type",Number)],gW.prototype,"customThumbnailSize",void 0);_.O([_.U({value:!0}),_.R("design:type",Boolean)],gW.prototype,"hideAria",void 0);_.O([_.U(),_.R("design:type",Object)],gW.prototype,"data",void 0);_.O([_.U({computed:"computeOverlayColor(data)"}),_.R("design:type",Object)],gW.prototype,"overlayColor",void 0);
_.O([_.U({computed:"computeWebModernCollections(data)"}),_.R("design:type",Object)],gW.prototype,"webModernCollections",void 0);_.O([_.U({computed:"computeNavigationEndpoint(data)"}),_.R("design:type",Object)],gW.prototype,"computedNavigationEndpoint",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],gW.prototype,"isSearch",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],gW.prototype,"isDoubleStack",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",String)],gW.prototype,"thumbnailSize",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],gW.prototype,"enableWebModernCollectionsV2",void 0);_.O([_.q("data","enableWebModernCollectionsV2","isDoubleStack","thumbnailSize"),_.R("design:type",Object),_.R("design:paramtypes",[])],gW.prototype,"collectionStack",null);gW=_.O([_.E({disableElementRegistration:!0,is:"ytd-playlist-thumbnail"})],gW);
_.v(gW,"ytd-playlist-thumbnail",function(){if(aV_!==void 0)return aV_;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return aV_=J},{mode:_.mP("kevlar_poly_si_batch_j025")?1:2});var Hz8;var J2=function(){var J=_.h.apply(this,arguments)||this;J.noEndpoints=!1;J.amsterdamPostMvp=_.w("web_amsterdam_post_mvp_playlists");J.badges=[];J.transferState="TRANSFER_STATE_UNKNOWN";return J};
_.D(J2,_.h);_.V=J2.prototype;_.V.getMetadata=function(J){if(!J)return[];var c=[],m=J.shortViewCountText||J.viewCountText;m&&c.push(_.OG(m));J.publishedTimeText&&c.push(_.OG(J.publishedTimeText));J.upcomingEventData&&J.upcomingEventData.upcomingEventText&&c.push(_.ZI(_.OG(J.upcomingEventData.upcomingEventText),Number(J.upcomingEventData.startTime)));return c};
_.V.observeDataForBylineSeparator=function(){this.data&&_.mq(this.hostElement,"byline-separated",this.getMetadata(this.data).length>0&&!this.data.ownerBadges||this.shouldShowVideoInfo)};
_.V.metadataColorChanged=function(){this.metadataColor||(this.metadataLine.style.color="");this.metadataLine.style.color=_.XB(this.metadataColor)};
_.V.getSimpleString=function(J){return _.OG(J)};
_.V.isBylineHidden=function(J){return this.noByline||!((J==null?0:J.longBylineText)||(J==null?0:J.shortBylineText))};
_.V.isMetadataHidden=function(J){var c;return((c=this.getMetadata(J))==null?void 0:c.length)===0};
_.V.isBylineMetadataSeparatorHidden=function(J){return this.isMetadataHidden(J)||!this.shouldShowVideoInfo};
_.V.isLongByline=function(J,c){return c&&!(J==null||!J.longBylineText)};
_.eE.Object.defineProperties(J2.prototype,{shouldShowVideoInfo:{configurable:!0,enumerable:!0,get:function(){var J;return this.amsterdamPostMvp&&!((J=this.data)==null||!J.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 _.w("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}}});
J2.prototype.metadataColorChanged=J2.prototype.metadataColorChanged;J2.prototype.observeDataForBylineSeparator=J2.prototype.observeDataForBylineSeparator;_.O([_.f(_.fY),_.R("design:type",Object)],J2.prototype,"ytdReduxBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],J2.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],J2.prototype,"noEndpoints",void 0);_.O([_.U({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],J2.prototype,"isSlimShort",void 0);
_.O([_.U({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],J2.prototype,"radioMeta",void 0);_.O([_.U({selector:_.S8}),_.R("design:type",Object)],J2.prototype,"isGridViewEnabled",void 0);_.O([_.U({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],J2.prototype,"richMeta",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],J2.prototype,"amsterdamPostMvp",void 0);_.O([_.U(),_.R("design:type",Boolean)],J2.prototype,"noByline",void 0);
_.O([_.U({computed:"isLongByline(data, radioMeta)"}),_.R("design:type",Boolean)],J2.prototype,"longByline",void 0);_.O([_.U({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],J2.prototype,"truncateMetadataLine",void 0);_.O([_.U({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],J2.prototype,"miniMode",void 0);_.O([_.U(),_.R("design:type",Number)],J2.prototype,"metadataColor",void 0);_.O([_.U(),_.R("design:type",Array)],J2.prototype,"badges",void 0);
_.O([_.U({selector:_.YY,selectorArgs:["data.videoId"]}),_.R("design:type",String)],J2.prototype,"transferState",void 0);_.O([_.U({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],J2.prototype,"isDownloading",void 0);_.O([_.U({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],J2.prototype,"typographyBump",void 0);_.O([_.Iu("#metadata-line"),_.R("design:type",HTMLElement)],J2.prototype,"metadataLine",void 0);
_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],J2.prototype,"observeDataForBylineSeparator",null);_.O([_.NE("metadataColor"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],J2.prototype,"metadataColorChanged",null);_.O([_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],J2.prototype,"shouldShowVideoInfo",null);
_.O([_.q("badges"),_.R("design:type",String),_.R("design:paramtypes",[])],J2.prototype,"inlineBadgeClass",null);_.O([_.q("longByline"),_.R("design:type",String),_.R("design:paramtypes",[])],J2.prototype,"longBylineClass",null);_.O([_.q("data","longByline"),_.R("design:type",Object),_.R("design:paramtypes",[])],J2.prototype,"bylineText",null);_.O([_.q("isGridViewEnabled","data"),_.U({reflectToAttribute:!0}),_.R("design:type",Boolean),_.R("design:paramtypes",[])],J2.prototype,"watchFeedBigThumbs",null);
J2=_.O([_.E({is:"ytd-video-meta-block",disableElementRegistration:!0})],J2);
_.v(J2,"ytd-video-meta-block",function(){if(Hz8!==void 0)return Hz8;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return Hz8=J},{mode:_.mP("kevlar_poly_si_batch_j080")?1:2});_.zH("itemSectionRenderer","playlistRenderer","ytd-playlist-renderer");var cW=function(){var J=_.h.apply(this,arguments)||this;J.displayItemCount=2;J.isBackstagePlaylist=!1;J.isPostCompactPlaylist=!1;J.shouldShowChannelThumbnail=!1;J.useModernCollectionsV2=_.w("web_modern_collections_v2");return J};
_.D(cW,_.h);_.V=cW.prototype;_.V.computeFirstVideos=function(J,c){return J===void 0||c===void 0?[]:J.slice(0,c)};
_.V.dataChanged=function(){if(this.data&&this.data.thumbnailRenderer){var J=this.data.thumbnailRenderer;J.playlistVideoThumbnailRenderer&&this.set("data.thumbnail",J.playlistVideoThumbnailRenderer.thumbnail);J.playlistCustomThumbnailRenderer&&this.set("data.thumbnail",J.playlistCustomThumbnailRenderer.thumbnail)}};
_.V.computeThumbnailHeight=function(J,c,m,b,x){return b?x==="BIG"?280:x==="MASSIVE"?337:234:m?240:c?72:J?118:138};
_.V.computeThumbnailWidth=function(J,c,m,b,x){return b?x==="MEDIUM"?450:x==="BIG"?500:x==="MASSIVE"?600:420:m?360:c?128:J?210:246};
_.V.computeUseBiggerThumbs=function(J){return J&&_.w("enable_desktop_search_bigger_thumbs")};
_.V.computeShouldShowChannelThumbnail=function(J,c){return J&&!(c==null||!c.channelThumbnail)};
_.eE.Object.defineProperties(cW.prototype,{stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"large":"medium"}}});
cW.prototype.dataChanged=cW.prototype.dataChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],cW.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.$N),_.R("design:type",Object)],cW.prototype,"ytdLockupBehavior",void 0);_.O([_.f(_.fY),_.R("design:type",Object)],cW.prototype,"ytdReduxBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],cW.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],cW.prototype,"displayItemCount",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],cW.prototype,"isBackstagePlaylist",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],cW.prototype,"isPostCompactPlaylist",void 0);_.O([_.U({value:!1,reflectToAttribute:!0}),_.R("design:type",Boolean)],cW.prototype,"isSearch",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(isSearch)"}),_.R("design:type",Boolean)],cW.prototype,"useBiggerThumbs",void 0);_.O([_.U({reflectToAttribute:!0,value:function(){return _.mG("desktop_search_bigger_thumbs_style")}}),
_.R("design:type",String)],cW.prototype,"biggerThumbsStyle",void 0);_.O([_.U({value:!1,reflectToAttribute:!0}),_.R("design:type",Boolean)],cW.prototype,"isDownloads",void 0);_.O([_.U({computed:"computeShouldShowChannelThumbnail(isSearch, data)"}),_.R("design:type",Object)],cW.prototype,"shouldShowChannelThumbnail",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],cW.prototype,"useModernCollectionsV2",void 0);
_.O([_.kr("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],cW.prototype,"dataChanged",null);_.O([_.q("isSearch"),_.R("design:type",String),_.R("design:paramtypes",[])],cW.prototype,"stackThumbnailSize",null);cW=_.O([_.E({is:"ytd-playlist-renderer",disableElementRegistration:!0})],cW);
_.v(cW,"ytd-playlist-renderer",function(){if(Bz8===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);Bz8=J}J=Bz8;return J},{mode:1});var izj;var n4Q;var mt=function(){var J=_.h.apply(this,arguments)||this;J.collections=!!_.w("web_modern_collections_v2");J.startX=0;return J};
_.D(mt,_.h);mt.prototype.onEndpointMouseDown=function(J){this.startX=J.clientX};
mt.prototype.onEndpointClick=function(J){this.startX!==J.clientX&&(J.preventDefault(),J.stopPropagation())};
mt.prototype.computeObjectFit=function(J){return J==="CARD_RENDERER_STYLE_TYPE_UNIVERSAL_WATCH_CARD_MOVIE_POSTER"||J==="CARD_RENDERER_STYLE_TYPE_MOVIE_POSTER"||J==="CARD_RENDERER_STYLE_TYPE_CENTERED"?"COVER":"FILL"};
mt.prototype.computeCardStyle=function(J){return J?J.replace("CARD_RENDERER_STYLE_TYPE_","").toLowerCase():""};
_.eE.Object.defineProperties(mt.prototype,{isAlbumCard:{configurable:!0,enumerable:!0,get:function(){var J,c;return this.collections&&((J=this.data)==null?void 0:(c=J.searchRefinementCardRendererStyle)==null?void 0:c.value)==="CARD_RENDERER_STYLE_TYPE_ALBUM_CARD"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){return this.isAlbumCard?{thumbnailSize:"small",doubleStack:!1,experimentEnabled:this.collections,customClassName1stStack:"collection-stack-1 style-scope "+this.is}:{experimentEnabled:!1}}}});
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],mt.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],mt.prototype,"data",void 0);_.O([_.U({computed:"computeObjectFit(data.searchRefinementCardRendererStyle.value)"}),_.R("design:type",Number)],mt.prototype,"objectFit",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeCardStyle(data.searchRefinementCardRendererStyle.value)"}),_.R("design:type",String)],mt.prototype,"cardStyle",void 0);
_.O([_.U({reflectToAttribute:!0,value:!0}),_.R("design:type",Boolean)],mt.prototype,"roundContainer",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],mt.prototype,"collections",void 0);_.O([_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],mt.prototype,"isAlbumCard",null);_.O([_.q("data","collections","isAlbumCard"),_.R("design:type",Object),_.R("design:paramtypes",[])],mt.prototype,"collectionStack",null);
mt=_.O([_.E({is:"ytd-search-refinement-card-renderer",disableElementRegistration:!0})],mt);
_.v(mt,"ytd-search-refinement-card-renderer",function(){if(n4Q!==void 0)return n4Q;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return n4Q=J},{mode:1});var TH_;var bF=function(){var J=_.h.apply(this,arguments)||this;J.isRichGrid=!1;return J};
_.D(bF,_.h);_.O([_.U(),_.R("design:type",Object)],bF.prototype,"data",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],bF.prototype,"componentBehavior",void 0);_.O([_.f(_.fY),_.R("design:type",Object)],bF.prototype,"ytdReduxBehavior",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],bF.prototype,"isRichGrid",void 0);_.O([_.U({reflectToAttribute:!0,selector:_.DZ}),_.R("design:type",Boolean)],bF.prototype,"miniMode",void 0);
bF=_.O([_.E({is:"ytd-game-details-renderer",disableElementRegistration:!0})],bF);
_.v(bF,"ytd-game-details-renderer",function(){if(TH_!==void 0)return TH_;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return TH_=J},{mode:1});var wxB;var rh_;var xJ=function(){var J=_.h.apply(this,arguments)||this;J.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};return J};
_.D(xJ,_.h);_.V=xJ.prototype;_.V.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.V.currentStateData=function(J){var c=J||this.data;return c&&c.states&&c.currentStateId!=null?c.states.find(function(m){return m.stateId===c.currentStateId})||null:null};
_.V.currentStateRendererData=function(J){return(J=this.currentStateData(J))&&J.state&&J.state.buttonRenderer?J.state.buttonRenderer:null};
_.V.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())};
_.V.computeButtonIcon=function(J){J=this.currentStateRendererData(J);var c;return(J==null?0:(c=J.icon)==null?0:c.iconType)?J.icon.iconType.toLowerCase():null};
_.V.computeAccessibility=function(J){return(J=this.currentStateRendererData(J))&&J.accessibilityData?J.accessibilityData.accessibilityData||null:null};
_.V.computeButtonClass=function(J){var c=this.currentStateRendererData(J);if(!c)return"";J="";var m=c.style;m&&(J+=m.toLowerCase().replace(/_/g,"-")+" ");(c=c.size)&&(J+=c.toLowerCase().replace(/_/g,"-")+" ");return J.trim()};
_.V.computeServiceEndpoint=function(J){if(!J)return null;var c=J&&J.serviceEndpoint,m=this.get("command.commandMetadata.webCommandMetadata.sendPost",J);return c?c:m&&J.command?J.command:null};
_.V.computeBellMenuItemParams=function(J){var c;J=(c=_.L(J==null?void 0:J.command,_.pX))==null?void 0:c.commands;if(!J||J.length===0)return null;c=_.L(J[0],_.T3);var m,b;return(c==null?0:(m=c.popup)==null?0:(b=m.menuPopupRenderer)==null?0:b.items)?c.popup.menuPopupRenderer.items.map(function(x){return x.menuServiceItemRenderer.trackingParams}):null};
_.V.handleBellMenuOpenSelectedAction=function(J){var c=J.trackingParams,m=this.computeBellMenuItemParams(this.data);this.data&&c&&m&&m.includes(c)&&this.ytRenderButtonBehavior._setButtonIcon(J.icon.iconType.toLowerCase())};
_.V.onYtServiceRequestCompleted=function(J,c){(J=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",c))&&this.set("data",J)};
_.V.onYtServiceRequestError=function(){this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data))};
_.V.resetState=function(){this.set("data.currentStateId",3)};
_.V.onYtButtonTapHandler=function(){if(this.data){var J=this.currentStateRendererData(this.data);J&&this.ytRendererBehavior.logExplicitClick(J)}};
xJ.prototype.onYtServiceRequestError=xJ.prototype.onYtServiceRequestError;xJ.prototype.onYtServiceRequestCompleted=xJ.prototype.onYtServiceRequestCompleted;xJ.prototype.stateChanged=xJ.prototype.stateChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],xJ.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],xJ.prototype,"ytActionHandlerBehavior",void 0);
_.O([_.f(av.YtRenderButtonBehavior),_.R("design:type",Object)],xJ.prototype,"ytRenderButtonBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],xJ.prototype,"data",void 0);_.O([_.kr("data","data.currentStateId"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],xJ.prototype,"stateChanged",null);
_.O([_.ps("yt-service-request-completed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,_.Oi]),_.R("design:returntype")],xJ.prototype,"onYtServiceRequestCompleted",null);_.O([_.ps("yt-service-request-error"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],xJ.prototype,"onYtServiceRequestError",null);xJ=_.O([_.E({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer"})],xJ);
_.v(xJ,"ytd-subscription-notification-toggle-button-renderer",function(){if(rh_!==void 0)return rh_;var J=document.createElement("template");_.z(J,"\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");J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return rh_=J},{mode:1});var sd8;var VC=function(){var J=_.h.apply(this,arguments)||this;J.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};J.tapHandler=function(){if(J.data){var c=J.currentStateRendererData();c&&J.ytRendererBehavior.logExplicitClick(c)}};
return J};
_.D(VC,_.h);_.V=VC.prototype;_.V.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.V.currentStateData=function(){var J=this;return this.data&&this.data.states&&this.data.currentStateId!=null?this.data.states.find(function(c){return c.stateId===J.data.currentStateId})||null:null};
_.V.currentStateRendererData=function(){var J=this.currentStateData();return J&&J.state&&J.state.buttonRenderer?J.state.buttonRenderer:null};
_.V.computeAccessibilityLabel=function(){var J,c,m;return(J=this.currentStateRendererData())==null?void 0:(c=J.accessibilityData)==null?void 0:(m=c.accessibilityData)==null?void 0:m.label};
_.V.computeBellMenuItemParams=function(){var J,c,m=(c=_.L((J=this.data)==null?void 0:J.command,_.pX))==null?void 0:c.commands;if(!m||m.length===0)return null;J=_.L(m[0],_.T3);var b,x;return(J==null?0:(b=J.popup)==null?0:(x=b.menuPopupRenderer)==null?0:x.items)?J.popup.menuPopupRenderer.items.map(function(P){return P.menuServiceItemRenderer.trackingParams}):null};
_.V.handleBellMenuOpenSelectedAction=function(J){var c=J.trackingParams,m=this.computeBellMenuItemParams();if(this.data&&c&&m&&m.includes(c)&&(J==null||!J.isDisabled)){var b;((b=_.L(J.serviceEndpoint,_.In))==null?void 0:b.signal)!=="CLIENT_SIGNAL"&&(this.icon=J.icon.iconType)}};
_.V.resetState=function(){this.icon=void 0;this.set("data.currentStateId",3)};
_.V.onYtServiceRequestCompleted=function(J,c){if(J=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",c))this.icon=void 0,this.set("data",J)};
_.V.onYtServiceRequestError=function(){this.icon=void 0};
_.eE.Object.defineProperties(VC.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var J=this.data,c=this.textLabel,m=this.hostElement,b=this.computeAccessibilityLabel(),x=this.tapHandler,P=this.isOverlay?"overlay":"mono",p=(J==null?0:J.disableButton)?"disabled":"active";c=c?_.uv(c):void 0;return{style:P,type:"tonal",state:p,size:"M",focused:!1,formattedButtonText:c,iconPosition:"leading-trailing",onTap:A_T(J,x,m),accessibilityLabel:b}}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var J=this.currentStateRendererData(),c,m,b=(m=this.icon)!=null?m:J==null?void 0:(c=J.icon)==null?void 0:c.iconType;if(b)return _.Pd(b)}},
computedSecondaryIcon:{configurable:!0,enumerable:!0,get:function(){var J,c,m=(J=this.data)==null?void 0:(c=J.secondaryIcon)==null?void 0:c.iconType;if(m)return _.Pd(m)}}});
VC.prototype.onYtServiceRequestError=VC.prototype.onYtServiceRequestError;VC.prototype.onYtServiceRequestCompleted=VC.prototype.onYtServiceRequestCompleted;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],VC.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],VC.prototype,"ytActionHandlerBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],VC.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],VC.prototype,"textLabel",void 0);
_.O([_.U(),_.R("design:type",String)],VC.prototype,"icon",void 0);_.O([_.U(),_.R("design:type",Boolean)],VC.prototype,"isOverlay",void 0);_.O([_.q("data.*","textLabel"),_.R("design:type",Object),_.R("design:paramtypes",[])],VC.prototype,"computedButtonShape",null);_.O([_.q("data.*","icon"),_.R("design:type",Object),_.R("design:paramtypes",[])],VC.prototype,"computedIcon",null);_.O([_.q("data.*"),_.R("design:type",Object),_.R("design:paramtypes",[])],VC.prototype,"computedSecondaryIcon",null);
_.O([_.ps("yt-service-request-completed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,_.Oi]),_.R("design:returntype")],VC.prototype,"onYtServiceRequestCompleted",null);_.O([_.ps("yt-service-request-error"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],VC.prototype,"onYtServiceRequestError",null);VC=_.O([_.E({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer-next"})],VC);
_.v(VC,"ytd-subscription-notification-toggle-button-renderer-next",function(){if(sd8!==void 0)return sd8;var J=document.createElement("template");_.z(J,'\x3c!--css-build:shady--\x3e<yt-button-shape data="[[computedButtonShape]]" icon-name="[[computedIcon]]" secondary-icon-name="[[computedSecondaryIcon]]">\n</yt-button-shape>\n');return sd8=J},{mode:_.mP("kevlar_poly_si_batch_j081")?1:2});var LHL;_.lv(r6a,"yt-animated-action",{props:{backgroundLottieRef:_.vt,foregroundLottieRef:_.vt,wrapperClass:_.vt,disableAnimation:_.vt},unsafeExternallySettableAttributes:new Set(["key"])});var PW=function(){var J=_.h.apply(this,arguments)||this;J.animatedActionEnabled=_.w("web_animated_actions");J.foregroundLottieRef={};J.backgroundLottieRef={};J.forceIconOnly=!1;J.showTextWhileAnimating=!1;J.keyboardFocused=!1;J.isAnimating=!1;J.actionMap={"yt-player-subscribe":"onPlayerSubscribe","yt-player-unsubscribe":"onPlayerUnsubscribe","yt-update-subscribe-button-action":"handleUpdateSubscribeButtonAction"};return J};
_.D(PW,_.h);_.V=PW.prototype;_.V.maybeUpdateBellButtonText=function(){this.showTextWhileAnimating&&this.bellButton&&(this.bellButton.textLabel=this.subscribedButtonText)};
_.V.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]]"}}}}}};
_.V.attached=function(){this.keyboardFocused=!1};
_.V.onYtServiceRequestSent=function(J,c){(this.get("endpoint.subscribeEndpoint",c)||this.get("endpoint.unsubscribeEndpoint",c))&&this.updateSubscriptionState(!this.subscribed)};
_.V.onYtServiceRequestCompleted=function(J,c){(J=this.get("newNotificationButton.subscriptionNotificationToggleButtonRenderer",c.data))&&this.bellButton&&(this.bellButton.data=J)};
_.V.observedSubscribed=function(){this.isAnimating||this.clearContainerSize();_.V1(this.hostElement)};
_.V.onPlayerSubscribe=function(J){this.isCompactRed()||J!==this.data.channelId||(this.tryToSaveButtonWidths(),this.updateContainerToFitContent(!!this.subscribed),this.updateSubscriptionState(!0))};
_.V.onPlayerUnsubscribe=function(J){this.isCompactRed()||J!==this.data.channelId||this.updateSubscriptionState(!1)};
_.V.handleUpdateSubscribeButtonAction=function(J){J=_.L(J,mCu);var c;J&&J.channelId===((c=this.data)==null?void 0:c.channelId)&&this.updateSubscriptionState(!!J.subscribed)};
_.V.computeButtonStyle=function(J){return this.get("style.styleType",J)||null};
_.V.isCompactRed=function(){return this.computeButtonStyle(this.data)==="COMPACT_RED"};
_.V.computeSubscribed=function(){return this.subscriptionStateEntity?!!this.subscriptionStateEntity.subscribed:!(!this.data||!this.data.subscribed)};
_.V.updateSubscriptionState=function(J){if(J!==this.subscribed){this.set("data.subscribed",J);var c,m=(c=this.data)==null?void 0:c.subscribedEntityKey;m&&this.ytdReduxBehavior.dispatch(_.It("subscriptionStateEntity",m,{key:m,subscribed:J}));this.isCompactRed()||_.cA(this.hostElement,"yt-subscription-changed",J);J||(_.m9(this.hostElement,"yt-unsubscribe-action"),this.resetNotificationBellState());this.animatedActionEnabled&&(this.updateContainerToFitContent(!!J),J&&this.hasBellButton&&this.startAnimation())}};
_.V.startAnimation=function(){var J=this;if(!this.isAnimating){var c=this.forceIconOnly&&this.showTextWhileAnimating?2E3:1500;this.isAnimating=!0;var m;(m=this.backgroundLottieRef.lottieEl)==null||m.goToAndPlay(0);var b;(b=this.foregroundLottieRef.lottieEl)==null||b.goToAndPlay(0);_.ft.addJob(function(){J.maybeAnimateBellIcon()},2,300);
this.forceIconOnly&&this.showTextWhileAnimating&&_.ft.addJob(function(){J.updateContainerToFitContent(!!J.subscribed,!0)},2,1500);
_.ft.addJob(function(){J.isAnimating=!1},2,c)}};
_.V.maybeAnimateBellIcon=function(){var J=_.gB(this.hostElement).querySelector("yt-animated-icon");if(J){var c;(c=J.animationRef.lottieEl)==null||c.goToAndPlay(0)}};
_.V.onDataChanged=function(){this.animatedActionEnabled&&(this.hostElement.style.width="")};
_.V.onMouseDown=function(){this.tryToSaveButtonWidths();this.updateContainerToFitContent(!!this.subscribed)};
_.V.tryToSaveButtonWidths=function(){if(this.animatedActionEnabled&&!this.unsubscribedWidth){if(!this.subscribed){var J;this.unsubscribedWidth=(J=this.subscribeButtonShape)==null?void 0:J.getBoundingClientRect().width}var c;this.subscribedWidth=(c=this.bellButton)==null?void 0:c.getBoundingClientRect().width;this.maybeSetSubscribedButtonIconOnlyWidth()}};
_.V.updateContainerToFitContent=function(J,c){this.animatedActionEnabled&&this.subscribedWidth&&this.unsubscribedWidth&&(J?(J=this.subscribedWidth,c=this.isAnimating&&!c,this.subscribedIconOnlyWidth===void 0||c||(J=this.subscribedIconOnlyWidth),this.hostElement.style.width=J+"px"):this.hostElement.style.width=this.unsubscribedWidth+"px")};
_.V.clearContainerSize=function(){this.hostElement.style.width=""};
_.V.resetNotificationBellState=function(){this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)&&this.bellButton&&this.bellButton.resetState()};
_.V.maybeSetSubscribedButtonIconOnlyWidth=function(){var J=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 c;J.subscribedIconOnlyWidth=(c=J.bellButton)==null?void 0:c.getBoundingClientRect().width;requestAnimationFrame(function(){if(J.bellButton){var m;J.bellButton.textLabel=
(m=J.data)==null?void 0:m.subscribedButtonText}})})))};
_.eE.Object.defineProperties(PW.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 J;return(J=this.data)==null?void 0:J.subscribedButtonText}var c;return this.forceIconOnly?void 0:(c=this.data)==null?void 0:c.subscribedButtonText}},
smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var J,c,m=((J=this.data)==null?void 0:(c=J.timedAnimationData)==null?void 0:c.animationTiming)||[];return{uniqueId:"subscribe",timings:m,enabled:m.length>0&&!this.subscribed,experimentEnabled:m.length>0}}},
subscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){var J;return!this.subscribed&&((J=this.data)==null?void 0:J.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 J={renderer:this.data,element:this.hostElement,subscribed:!!this.subscribed,isOverlay:!!this.overlayButton};var c=J.renderer;var m=J.element;var b=J.subscribed;var x=J.commandController;var P=J.isOverlay;J=J.config;var p=ea2(c,b);P&&(p.style="overlay");P=Object;var t=P.assign,I;a:switch((I=c.style)==null?void 0:I.styleType){case "COMPACT_GRAY":case "COMPACT_RED":I={size:"S"};break a;default:I={size:"M"}}var a=Q0o(c,b);var k=
(k=b?c.subscribedButtonText:c.unsubscribedButtonText)?_.uv(k):void 0;return t.call(P,{},p,I,{focused:!1,toggled:b,accessibilityLabel:a,formattedButtonText:k,onTap:oXe(c,J,b,m,x)})}}}});
PW.prototype.onMouseDown=PW.prototype.onMouseDown;PW.prototype.onDataChanged=PW.prototype.onDataChanged;PW.prototype.observedSubscribed=PW.prototype.observedSubscribed;PW.prototype.onYtServiceRequestCompleted=PW.prototype.onYtServiceRequestCompleted;PW.prototype.onYtServiceRequestSent=PW.prototype.onYtServiceRequestSent;PW.prototype.maybeUpdateBellButtonText=PW.prototype.maybeUpdateBellButtonText;_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],PW.prototype,"ytComponentBehavior",void 0);
_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],PW.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],PW.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],PW.prototype,"ytActionHandlerBehavior",void 0);_.O([_.f(_.fY),_.R("design:type",Object)],PW.prototype,"ytdReduxBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],PW.prototype,"data",void 0);
_.O([_.U({selectorArgs:["data.subscribedEntityKey"],selector:HJr}),_.R("design:type",Object)],PW.prototype,"subscriptionStateEntity",void 0);_.O([_.U({computed:"computeSubscribed(data.subscribed, subscriptionStateEntity)",reflectToAttribute:!0}),_.R("design:type",Boolean)],PW.prototype,"subscribed",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],PW.prototype,"branded",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],PW.prototype,"animatedActionEnabled",void 0);
_.O([_.U(),_.R("design:type",Object)],PW.prototype,"foregroundLottieRef",void 0);_.O([_.U(),_.R("design:type",Object)],PW.prototype,"backgroundLottieRef",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],PW.prototype,"overlayButton",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeButtonStyle(data)"}),_.R("design:type",Object)],PW.prototype,"buttonStyle",void 0);_.O([_.U(),_.R("design:type",Object)],PW.prototype,"forceIconOnly",void 0);
_.O([_.U(),_.R("design:type",Object)],PW.prototype,"showTextWhileAnimating",void 0);_.O([_.U({value:function(){return!!_.BG().resolve(_.y6(_.Js))&&_.w("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.R("design:type",Boolean)],PW.prototype,"useKeyboardFocused",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],PW.prototype,"keyboardFocused",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],PW.prototype,"isAnimating",void 0);_.O([_.q("data.notificationPreferenceButton.*"),_.R("design:type",Object),_.R("design:paramtypes",[])],PW.prototype,"hasBellButton",null);
_.O([_.NE("subscribedButtonText"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],PW.prototype,"maybeUpdateBellButtonText",null);_.O([_.q("data.subscribedButtonText","forceIconOnly","isAnimating","subscribed"),_.R("design:type",Object),_.R("design:paramtypes",[])],PW.prototype,"subscribedButtonText",null);_.O([_.q("data.timedAnimationData.animationTiming","subscribed"),_.R("design:type",Object),_.R("design:paramtypes",[])],PW.prototype,"smartimationSettings",null);
_.O([_.U({reflectToAttribute:!0}),_.q("subscribed","hasBellButton","data.hideWhenUnsubscribed"),_.R("design:type",Object),_.R("design:paramtypes",[])],PW.prototype,"subscribeButtonHidden",null);_.O([_.U({reflectToAttribute:!0}),_.q("subscribed","hasBellButton"),_.R("design:type",Object),_.R("design:paramtypes",[])],PW.prototype,"subscribeButtonInvisible",null);
_.O([_.U({reflectToAttribute:!0}),_.q("subscribed"),_.R("design:type",Object),_.R("design:paramtypes",[])],PW.prototype,"unsubscribeButtonHidden",null);_.O([_.Iu("ytd-subscription-notification-toggle-button-renderer-next"),_.R("design:type",Object)],PW.prototype,"bellButton",void 0);_.O([_.Iu("#subscribe-button-shape"),_.R("design:type",HTMLElement)],PW.prototype,"subscribeButtonShape",void 0);
_.O([_.q("overlayButton","subscribed","data"),_.R("design:type",Object),_.R("design:paramtypes",[])],PW.prototype,"buttonShape",null);_.O([_.ps("yt-service-request-sent"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,_.qd]),_.R("design:returntype")],PW.prototype,"onYtServiceRequestSent",null);_.O([_.ps("yt-service-request-completed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,_.Oi]),_.R("design:returntype")],PW.prototype,"onYtServiceRequestCompleted",null);
_.O([_.NE("subscribed"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],PW.prototype,"observedSubscribed",null);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],PW.prototype,"onDataChanged",null);_.O([_.ps("mousedown"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],PW.prototype,"onMouseDown",null);
PW=_.O([_.E({disableElementRegistration:!0,is:"ytd-subscribe-button-renderer"})],PW);
_.v(PW,"ytd-subscribe-button-renderer",function(){if(LHL!==void 0)return LHL;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return LHL=J},{mode:1});var M9=function(){var J=_.h.apply(this,arguments)||this;J.isRichGrid=!1;return J};
_.D(M9,_.h);M9.prototype.configureRendererStamper=function(){return{"data.game":{id:"game",mapping:{gameDetailsRenderer:{component:"ytd-game-details-renderer",properties:{isRichGrid:"[[isRichGrid]]"}}}},"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],M9.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],M9.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],M9.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],M9.prototype,"isRichGrid",void 0);M9=_.O([_.E({is:"ytd-game-card-renderer",disableElementRegistration:!0})],M9);
_.v(M9,"ytd-game-card-renderer",function(){if(wxB!==void 0)return wxB;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return wxB=J},{mode:1});var pi={id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}},initialRenderPriority:_.w("defer_menus")&&!wWQ?0:void 0,waitForSignal:"eocs"};var D$L;var WHj;var N9=function(){var J=_.h.apply(this,arguments)||this;J.actionMap={"yt-update-upcoming-event-reminder-button-state-command":"handleUpdateUpcomingEventReminderButtonStateCommand"};return J};
_.D(N9,_.h);_.V=N9.prototype;_.V.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"top"}}}}}};
_.V.onSeriesReminderStateEntityChange=function(){var J,c,m;((J=this.eventReminderStateEntity)==null?0:J.key)&&((c=this.seriesReminderStateEntity)==null?void 0:c.state)==="SPORTS_SERIES_REMINDER_STATE_ALL"&&((m=this.eventReminderStateEntity)==null?void 0:m.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE"&&this.ytdReduxBehavior.dispatch(_.It("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:"UPCOMING_EVENT_REMINDER_STATE_NONE"})))};
_.V.onYtServiceRequestCompleted=function(){this.set("data.currentState",this.getButtonStateFromReminderState())};
_.V.onYtServiceRequestError=function(){var J;this.updateReminderStateEntitiesFromButtonState((J=this.data)==null?void 0:J.currentState)};
_.V.handleUpdateUpcomingEventReminderButtonStateCommand=function(J){if(J=_.L(J,TI$)){var c,m=(c=this.data)==null?void 0:c.targetId;m&&J.targetId===m&&_.S5(this.updateReminderStateEntitiesFromButtonState.bind(this,J.state))}};
_.V.getButtonStateFromReminderState=function(){var J;if(((J=this.seriesReminderStateEntity)==null?void 0:J.state)==="SPORTS_SERIES_REMINDER_STATE_ALL")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES";var c;if(((c=this.eventReminderStateEntity)==null?void 0:c.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE";var m,b;if(((m=this.seriesReminderStateEntity)==null?void 0:m.state)==="SPORTS_SERIES_REMINDER_STATE_NONE"&&((b=this.eventReminderStateEntity)==
null?void 0:b.state)==="UPCOMING_EVENT_REMINDER_STATE_NONE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE";var x;return(x=this.data)==null?void 0:x.currentState};
_.V.updateReminderStateEntitiesFromButtonState=function(J){if(J){switch(J){case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES":J="UPCOMING_EVENT_REMINDER_STATE_NONE";var c="SPORTS_SERIES_REMINDER_STATE_ALL";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE":J="UPCOMING_EVENT_REMINDER_STATE_SINGLE";c="SPORTS_SERIES_REMINDER_STATE_NONE";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE":J="UPCOMING_EVENT_REMINDER_STATE_NONE";c="SPORTS_SERIES_REMINDER_STATE_NONE";break;default:return}var m;
((m=this.eventReminderStateEntity)==null?0:m.key)&&this.ytdReduxBehavior.dispatch(_.It("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:J})));var b;((b=this.seriesReminderStateEntity)==null?0:b.key)&&this.ytdReduxBehavior.dispatch(_.It("sportsSeriesReminderStateEntity",this.seriesReminderStateEntity.key,Object.assign({},this.seriesReminderStateEntity,{state:c})))}};
_.eE.Object.defineProperties(N9.prototype,{currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var J=this.getButtonStateFromReminderState(),c,m;if(J&&((c=this.data)==null?0:(m=c.states)==null?0:m.length))for(c=_.M(this.data.states),m=c.next();!m.done;m=c.next()){m=m.value;var b=void 0;if(((b=_.L(m,wYB))==null?void 0:b.state)===J)return _.L(m,wYB)}}}});
N9.prototype.onYtServiceRequestError=N9.prototype.onYtServiceRequestError;N9.prototype.onYtServiceRequestCompleted=N9.prototype.onYtServiceRequestCompleted;N9.prototype.onSeriesReminderStateEntityChange=N9.prototype.onSeriesReminderStateEntityChange;_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],N9.prototype,"ytActionHandlerBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],N9.prototype,"ytRendererBehavior",void 0);
_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],N9.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.fY),_.R("design:type",Object)],N9.prototype,"ytdReduxBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],N9.prototype,"data",void 0);_.O([_.U({selectorArgs:["data.upcomingEventData.reminderStateEntityKey"],selector:nST}),_.R("design:type",Object)],N9.prototype,"eventReminderStateEntity",void 0);
_.O([_.U({selectorArgs:["eventReminderStateEntity.seriesReminderState"],selector:function(J,c){return _.P2(J.entities,"sportsSeriesReminderStateEntity",c)}}),
_.R("design:type",Object)],N9.prototype,"seriesReminderStateEntity",void 0);_.O([_.q("data.currentState","eventReminderStateEntity","seriesReminderStateEntity"),_.R("design:type",Object),_.R("design:paramtypes",[])],N9.prototype,"currentButtonStateRenderer",null);_.O([_.NE("seriesReminderStateEntity"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],N9.prototype,"onSeriesReminderStateEntityChange",null);
_.O([_.ps("yt-service-request-completed"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],N9.prototype,"onYtServiceRequestCompleted",null);_.O([_.ps("yt-service-request-error"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],N9.prototype,"onYtServiceRequestError",null);N9=_.O([_.E({disableElementRegistration:!0,is:"ytd-upcoming-event-reminder-button-renderer"})],N9);
_.v(N9,"ytd-upcoming-event-reminder-button-renderer",function(){if(WHj!==void 0)return WHj;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);
return WHj=J},{mode:1});var zy_;var t2=function(){return _.h.apply(this,arguments)||this};
_.D(t2,_.h);t2.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{ellipsisTruncate:!0}}}}}};
_.eE.Object.defineProperties(t2.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(_.w("web_announce_stop_seeing_this_ad_text_a11y_bugfix")&&this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}}});
_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],t2.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],t2.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],t2.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],t2.prototype,"shelfDismissal",void 0);_.O([_.q("data.responseText"),_.R("design:type",Object),_.R("design:paramtypes",[])],t2.prototype,"text",null);
_.O([_.q("data.responseText"),_.R("design:type",Object),_.R("design:paramtypes",[])],t2.prototype,"textAriaLabel",null);t2=_.O([_.E({disableElementRegistration:!0,is:"ytd-notification-multi-action-renderer"})],t2);
_.v(t2,"ytd-notification-multi-action-renderer",function(){if(zy_!==void 0)return zy_;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return zy_=J},{mode:1});var upZ;var IC=function(){return _.h.apply(this,arguments)||this};
_.D(IC,_.h);IC.prototype.ready=function(){var J=this;_.Bj(this.hostElement).querySelector("#undo").addEventListener("tap",function(){J.onUndoTap()})};
IC.prototype.onUndoTap=function(){this.data.undoEndpoint&&_.BG().resolve(_.gu).resolveCommand(this.data.undoEndpoint,{form:{element:this.hostElement}})};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],IC.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],IC.prototype,"data",void 0);IC=_.O([_.E({disableElementRegistration:!0,is:"ytd-notification-text-renderer"})],IC);
_.v(IC,"ytd-notification-text-renderer",function(){if(upZ!==void 0)return upZ;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return upZ=J},{mode:1});var fV_;var Ki=function(){var J=_.h.apply(this,arguments)||this;J.mouseOverDelayJobId=0;J.fadeInImageDelayJobId=0;J.startTimeMs=-1;J.loadingStartTimeMs=-1;J.loadingEndTimeMs=-1;J.hasVideoPreview=!1;return J};
_.D(Ki,_.h);_.V=Ki.prototype;_.V.attached=function(){this.data&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.V.detached=function(){this.isAttachedAndDataSet=!1;this.hideThumbnail();this.data=void 0;this.csn=null};
_.V.dataChanged=function(){this.data&&this.isAttached&&!this.isAttachedAndDataSet&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.V.showThumbnail=function(){var J=this;this.csn=_.Y3();_.Xv("fmth");_.ft.cancelJob(this.mouseOverDelayJobId);this.data&&this.data.movingThumbnailDetails&&this.data.movingThumbnailDetails.thumbnails?this.mouseOverDelayJobId=_.cP(_.ft,function(){J.loadingStartTimeMs=(0,_.y4)();var c=_.Bj(J.hostElement).querySelector("#thumbnail");c.complete?J.displayMouseOverImage():c.addEventListener("load",_.ME(J,J.displayMouseOverImage))},150):_.mq(_.Bj(this.hostElement).querySelector("#play"),"show",!0)};
_.V.hideThumbnail=function(){this.data&&this.data.enableHoveredLogging&&this.logHoverEvent();this.removeVideoPreview()};
_.V.onTap=function(){this.removeVideoPreview()};
_.V.logHoverEvent=function(){if(this.csn&&this.trackingParams&&!(this.loadingStartTimeMs<=0)){var J=this.videoId,c=this.csn,m=this.loadingEndTimeMs>0?this.loadingEndTimeMs-this.loadingStartTimeMs:0,b=this.startTimeMs,x=this.hasVideoPreview,P=_.n7(this.trackingParams),p={isMovingThumbnail:x};x&&b>0&&(m>0&&(p.movingThumbnailLoadingDurationMs=Math.round(m)),p.durationHoveredMs=Math.round((0,_.y4)()-b));J&&(p.videoId=J);_.Rn(c,P,"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{thumbnailHoveredData:p});this.startTimeMs=
this.loadingEndTimeMs=this.loadingStartTimeMs=-1;this.hasVideoPreview=!1}};
_.V.removeVideoPreview=function(){_.ft.cancelJob(this.mouseOverDelayJobId);_.ft.cancelJob(this.fadeInImageDelayJobId);var J=_.Bj(this.hostElement).querySelector("#thumbnail");_.mq(J,"fade-in",!1);J.removeEventListener("load",_.ME(this,this.displayMouseOverImage));J=_.Bj(this.hostElement).querySelector("#play");_.mq(J,"fade-in",!1);_.mq(J,"show",!1)};
_.V.displayMouseOverImage=function(){var J=_.Bj(this.hostElement).querySelector("#thumbnail"),c=_.Bj(this.hostElement).querySelector("#play");this.isImageAvailable(J)?(this.hasVideoPreview=!0,this.loadingEndTimeMs=(0,_.y4)(),this.startTimeMs=(0,_.y4)(),this.fadeInImageDelayJobId=_.cP(_.ft,function(){_.mq(J,"fade-in",!0)},50)):_.mq(c,"fade-in",!0)};
_.V.computeThumbnail=function(J,c){var m;J&&J.movingThumbnailDetails&&J.movingThumbnailDetails.thumbnails&&c?m=_.yn(J.movingThumbnailDetails.thumbnails,this.hostElement.clientWidth):m=c?"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7":"";if(m)return _.n1(m)};
_.V.isImageAvailable=function(J){return!(!J.src||J.src==="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"||J.naturalWidth===120)};
Ki.prototype.onTap=Ki.prototype.onTap;Ki.prototype.dataChanged=Ki.prototype.dataChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Ki.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],Ki.prototype,"ytComponentBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Ki.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],Ki.prototype,"csn",void 0);_.O([_.U(),_.R("design:type",Object)],Ki.prototype,"trackingParams",void 0);
_.O([_.U(),_.R("design:type",String)],Ki.prototype,"videoId",void 0);_.O([_.U(),_.R("design:type",Boolean)],Ki.prototype,"isAttachedAndDataSet",void 0);_.O([_.kr("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Ki.prototype,"dataChanged",null);_.O([_.ps("click"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Ki.prototype,"onTap",null);Ki=_.O([_.E({disableElementRegistration:!0,is:"ytd-moving-thumbnail-renderer"})],Ki);
_.v(Ki,"ytd-moving-thumbnail-renderer",function(){if(fV_!==void 0)return fV_;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return fV_=J},{mode:1});var YEQ;_.pZ=function(J){this.hostElement=J;this.eventSink=null;this.eventList=[]};
_.pZ.prototype.shouldForward=function(){var J,c;return(c=(J=this.eventSink)==null?void 0:J.isConnected)!=null?c:document.body.contains(this.eventSink)};
_.pZ.prototype.start=function(J,c){this.eventSink&&this.stop();for(var m=0;m<J.length;m++)this.hostElement.addEventListener(J[m],_.ME(this,this.forwardEvent));var b;this.eventSink=(b=c.hostElement)!=null?b:c;this.eventList=J};
_.pZ.prototype.stop=function(){for(var J=0;J<this.eventList.length;J++)this.hostElement.removeEventListener(this.eventList[J],_.ME(this,this.forwardEvent));this.eventSink=null;this.eventList=[]};
_.pZ.prototype.forwardEvent=function(J,c){this.shouldForward()&&(J.stopPropagation(),this.eventSink instanceof Element?_.cA(this.eventSink,J.type,c):_.qz(new _.w3("eventSink is not an element")))};_.Ci={YtEventForwardingBehavior:{created:function(){this.forwarder_=new _.pZ(this.hostElement)},
shouldForward:function(){return this.forwarder_.shouldForward()},
startForwardingEvents:function(J,c){this.forwarder_.start(J,c)},
stopForwardingEvents:function(){this.forwarder_.stop()}}};var aC=function(){return _.h.apply(this,arguments)||this};
_.D(aC,_.h);_.V=aC.prototype;_.V.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=_.Ub("HTML_DIR")==="rtl"?"right":"left"};
_.V.dataChanged=function(){this.popupOpen=!1};
_.V.computeAriaLabel=function(J){return _.L(J,SQ_).label};
_.V.onTap=function(J){J.stopPropagation();J.preventDefault();this.data.command&&_.BG().resolve(_.gu).resolveCommand(this.data.command,{form:{element:this.hostElement}})};
_.V.onPopupOpened=function(){this.popupOpen=!0;this.eventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.V.onPopupClosed=function(){this.popupOpen=!1;this.eventForwardingBehavior.stopForwardingEvents()};
aC.prototype.onPopupClosed=aC.prototype.onPopupClosed;aC.prototype.onPopupOpened=aC.prototype.onPopupOpened;aC.prototype.onTap=aC.prototype.onTap;aC.prototype.dataChanged=aC.prototype.dataChanged;_.O([_.f(_.Ci.YtEventForwardingBehavior),_.R("design:type",Object)],aC.prototype,"eventForwardingBehavior",void 0);_.O([_.f(_.Dj),_.R("design:type",Object)],aC.prototype,"ironButtonState",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],aC.prototype,"componentBehavior",void 0);
_.O([_.U(),_.R("design:type",Object)],aC.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0,value:-1}),_.R("design:type",Number)],aC.prototype,"tabindex",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeAriaLabel(data.accessibility)"}),_.R("design:type",Object)],aC.prototype,"ariaLabel",void 0);_.O([_.U({value:!1}),_.R("design:type",Boolean)],aC.prototype,"disableTooltips",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],aC.prototype,"popupOpen",void 0);
_.O([_.U(),_.R("design:type",Element)],aC.prototype,"eventSink",void 0);_.O([_.Iu("#tooltip"),_.R("design:type",Object)],aC.prototype,"tooltip",void 0);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],aC.prototype,"dataChanged",null);_.O([_.ps("tap"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],aC.prototype,"onTap",null);
_.O([_.ps("yt-popup-opened"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],aC.prototype,"onPopupOpened",null);_.O([_.ps("yt-popup-closed"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],aC.prototype,"onPopupClosed",null);aC=_.O([_.E({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-button-renderer"})],aC);
_.v(aC,"ytd-thumbnail-overlay-button-renderer",function(){if(YEQ!==void 0)return YEQ;var J=document.createElement("template");_.z(J,'\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>');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return YEQ=J},{mode:1});var XxQ;var kJ=function(){return _.h.apply(this,arguments)||this};
_.D(kJ,_.h);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],kJ.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],kJ.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],kJ.prototype,"disableAnimation",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],kJ.prototype,"rounded",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],kJ.prototype,"transparentBackground",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],kJ.prototype,"noPadding",void 0);kJ=_.O([_.E({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-endorsement-renderer"})],kJ);
_.v(kJ,"ytd-thumbnail-overlay-endorsement-renderer",function(){if(XxQ!==void 0)return XxQ;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return XxQ=J},{mode:1});var Zzu;var HW=function(){return _.h.apply(this,arguments)||this};
_.D(HW,_.h);HW.prototype.computeIconPosition=function(J){return this.get("iconPosition",J)||null};
HW.prototype.computeIconStyle=function(J){return this.get("iconStyle",J)||null};
HW.prototype.computeIsIconStyleFilled=function(J){if(!J)return!1;var c;return J.iconStyle==="THUMBNAIL_OVERLAY_ICON_RENDERER_ICON_STYLE_FILLED"||((c=J.icon)==null?void 0:c.iconType)==="ERROR_BLACK"};
_.O([_.U(),_.R("design:type",Object)],HW.prototype,"data",void 0);_.O([_.U({computed:"computeIconPosition(data)",reflectToAttribute:!0}),_.R("design:type",Object)],HW.prototype,"iconPosition",void 0);_.O([_.U({computed:"computeIconStyle(data)",reflectToAttribute:!0}),_.R("design:type",Object)],HW.prototype,"iconStyle",void 0);_.O([_.U({computed:"computeIsIconStyleFilled(data)",reflectToAttribute:!0}),_.R("design:type",Boolean)],HW.prototype,"iconStyleFilled",void 0);
HW=_.O([_.E({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-icon-renderer"})],HW);
_.v(HW,"ytd-thumbnail-overlay-icon-renderer",function(){if(Zzu!==void 0)return Zzu;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return Zzu=J},{mode:1});var qEC;var iF=function(){return _.h.apply(this,arguments)||this};
_.D(iF,_.h);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],iF.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],iF.prototype,"data",void 0);iF=_.O([_.E({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-inline-unplayable-renderer"})],iF);
_.v(iF,"ytd-thumbnail-overlay-inline-unplayable-renderer",function(){if(qEC!==void 0)return qEC;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return qEC=J},{mode:1});var U$6;var ni=function(){var J=_.h.apply(this,arguments)||this;J.isPreviewLoading=!1;return J};
_.D(ni,_.h);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],ni.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],ni.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],ni.prototype,"isPreviewLoading",void 0);ni=_.O([_.E({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-loading-preview-renderer"})],ni);
_.v(ni,"ytd-thumbnail-overlay-loading-preview-renderer",function(){if(U$6!==void 0)return U$6;var J=document.createElement("template");_.z(J,'\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>');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return U$6=J},{mode:1});var SEa;var TM=function(){return _.h.apply(this,arguments)||this};
_.D(TM,_.h);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],TM.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],TM.prototype,"data",void 0);TM=_.O([_.E({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-pinking-renderer"})],TM);
_.v(TM,"ytd-thumbnail-overlay-pinking-renderer",function(){if(SEa!==void 0)return SEa;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return SEa=J},{mode:1});var hy8;var w1=function(){var J=_.h.apply(this,arguments)||this;J.disableTooltips=!1;J.isLoading=!1;J.useExpandableTooltip=!1;J.toggled=!1;J.hovered=!1;J.mouseoverDelayJobId=0;J.toggleDelayJobId=0;J.expandAnimationDelayJobId=0;return J};
_.D(w1,_.h);_.V=w1.prototype;_.V.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");_.Bj(this.hostElement).querySelector("#tooltip").position=_.Ub("HTML_DIR")==="rtl"?"right":"left"};
_.V.detached=function(){this.useExpandableTooltip&&(this.isLoading=this.hovered=!1,this.data&&!this.data.toggledServiceEndpoint&&this.set("data.isToggled",!1),this.mouseoverDelayJobId&&_.ft.cancelJob(this.mouseoverDelayJobId),this.toggleDelayJobId&&_.ft.cancelJob(this.toggleDelayJobId),this.expandAnimationDelayJobId&&_.ft.cancelJob(this.expandAnimationDelayJobId),this.useExpandableTooltip=!1)};
_.V.dataChanged=function(){this.popupOpen=this.isLoading=!1;this.mouseoverDelayJobId&&_.ft.cancelJob(this.mouseoverDelayJobId);this.toggleDelayJobId&&_.ft.cancelJob(this.toggleDelayJobId);this.expandAnimationDelayJobId&&_.ft.cancelJob(this.expandAnimationDelayJobId)};
_.V.computeIcon=function(J,c,m){return(J=m?c:J)&&J.iconType?_.Pd(J.iconType):void 0};
_.V.computeAriaLabel=function(J,c,m){return _.L(m?c:J,SQ_).label};
_.V.computeTooltip=function(J,c,m){return m?c:J};
_.V.computeToggled=function(){return!(!this.data||!this.data.isToggled)};
_.V.computeIconOnHover=function(J,c){if((J==null?0:J.iconType)&&!c)return _.Pd(J.iconType)};
_.V.onTap=function(J){var c=this;J.stopPropagation();J.preventDefault();if(!this.isLoading||this.useExpandableTooltip)if(J=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint)this.isLoading=!0,this.set("data.isToggled",!this.data.isToggled),this.ytComponentBehavior.resolveCommand(J),this.useExpandableTooltip&&(this.toggleDelayJobId=_.cP(_.ft,function(){c.hovered=!1;c.data&&!c.data.toggledServiceEndpoint&&(c.expandAnimationDelayJobId=_.cP(_.ft,function(){c.set("data.isToggled",
!1)},200))},2E3))};
_.V.onMouseenter=function(){var J=this;this.mouseoverDelayJobId=_.cP(_.ft,function(){J.hovered=!0},300)};
_.V.onMouseleave=function(){_.ft.cancelJob(this.mouseoverDelayJobId);this.toggled||(this.hovered=!1)};
_.V.onPopupOpened=function(){this.popupOpen=!0;this.ytEventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.V.onPopupClosed=function(){this.popupOpen=!1;this.ytEventForwardingBehavior.stopForwardingEvents()};
_.V.onServiceRequestCompleted=function(J,c){this.isLoading=!1;if(!this.useExpandableTooltip||this.data.toggledServiceEndpoint&&this.data.untoggledServiceEndpoint)this.serviceRequestWasSuccessful(c)||this.set("data.isToggled",!this.data.isToggled)};
_.V.serviceRequestWasSuccessful=function(J){return _.L(this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint,_.DA)?J.data.status==="STATUS_SUCCEEDED":!0};
w1.prototype.onServiceRequestCompleted=w1.prototype.onServiceRequestCompleted;w1.prototype.onPopupClosed=w1.prototype.onPopupClosed;w1.prototype.onPopupOpened=w1.prototype.onPopupOpened;w1.prototype.onMouseleave=w1.prototype.onMouseleave;w1.prototype.dataChanged=w1.prototype.dataChanged;_.O([_.f(_.Dj),_.R("design:type",Object)],w1.prototype,"ironButtonState",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],w1.prototype,"ytComponentBehavior",void 0);
_.O([_.f(_.Ci.YtEventForwardingBehavior),_.R("design:type",Object)],w1.prototype,"ytEventForwardingBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],w1.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeAriaLabel(data.untoggledAccessibility, data.toggledAccessibility, data.isToggled)"}),_.R("design:type",Object)],w1.prototype,"ariaLabel",void 0);_.O([_.U(),_.R("design:type",Object)],w1.prototype,"disableTooltips",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],w1.prototype,"popupOpen",void 0);_.O([_.U(),_.R("design:type",Object)],w1.prototype,"isLoading",void 0);_.O([_.U(),_.R("design:type",Element)],w1.prototype,"eventSink",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],w1.prototype,"useExpandableTooltip",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeToggled(data.isToggled)"}),_.R("design:type",Object)],w1.prototype,"toggled",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],w1.prototype,"hovered",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeIconOnHover(data.untoggledIconOnHover, isToggled)"}),_.R("design:type",Object)],w1.prototype,"iconOnHover",void 0);_.O([_.kr("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],w1.prototype,"dataChanged",null);
_.O([_.ps("mouseleave"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],w1.prototype,"onMouseleave",null);_.O([_.ps("yt-popup-opened"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],w1.prototype,"onPopupOpened",null);_.O([_.ps("yt-popup-closed"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],w1.prototype,"onPopupClosed",null);
_.O([_.ps("yt-service-request-completed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,_.Oi]),_.R("design:returntype")],w1.prototype,"onServiceRequestCompleted",null);w1=_.O([_.E({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-toggle-button-renderer"})],w1);
_.v(w1,"ytd-thumbnail-overlay-toggle-button-renderer",function(){if(hy8!==void 0)return hy8;var J=document.createElement("template");_.z(J,'\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>');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return hy8=J},{mode:_.mP("kevlar_poly_si_batch_j053")?1:2});var d$j;var $$Z=_.Q1(function(J){var c=J.data;var m=function(){return c().enableSegmentView};
return _.C("yt-thumbnail-overlay-progress-bar-view-model",{class:"ytThumbnailOverlayProgressBarHost"},_.C(_.n,{cond:m,then:function(){return _.C("div",{class:"ytThumbnailOverlayProgressBarHostProgressBar"},_.C("div",{class:_.tP("ytThumbnailOverlayProgressBarHostProgressBarLeftSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment","ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment"),style:function(){return"width:"+c().startPercent+"%"}}),_.C("div",{class:_.tP("ytThumbnailOverlayProgressBarHostProgressBarContainer"),
style:function(){return"width:"+c().segmentDurationPercent+"%"}},_.C("div",{class:_.tP("ytThumbnailOverlayProgressBarHostProgressBarActiveSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment")}),_.C("div",{class:"ytThumbnailOverlayProgressBarHostLabel"},_.C("div",null," ",function(){return c().segmentLabel})),_.C("div",{class:"ytThumbnailOverlayProgressBarHostLabelTriangle"})),_.C("div",{class:_.tP("ytThumbnailOverlayProgressBarHostProgressBarRightSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment",
"ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment")}))}}),_.C(_.n,{cond:function(){return!m()&&c().startPercent},
then:function(){var b={};return _.C("div",{class:_.tP("ytThumbnailOverlayProgressBarHostWatchedProgressBar",(b.ytThumbnailOverlayProgressBarHostUseLegacyBar=!_.w("web_enable_modern_progress_bar_overlay"),b))},_.C("div",{class:"ytThumbnailOverlayProgressBarHostWatchedProgressBarSegment",style:function(){return"width:"+c().startPercent+"%"}}))}}))},"Q");
$$Z.idomCompat=!0;var GQz=_.Q1(function(J){var c=_.xM(),m=_.fq(function(x){var P,p,t;a:{var I=(P=J.data())==null?void 0:P.animationActivationTargetId;P=((p=J.data())==null?void 0:p.animationActivationEntityKey)||"";p=(t=J.data())==null?void 0:t.animationActivationEntitySelectorType;if(P&&I)switch(p){case "THUMBNAIL_BADGE_ANIMATION_ENTITY_SELECTOR_TYPE_PLAYER_STATE":x=_.P2(x.entities,"playerStateEntity",P);t=_.BG().resolve(_.y6(_.Uo));I=!!(x&&x.videoId===I&&(t==null?0:t.isMiniplayerActive()));I={activated:I,playAnimation:I&&
x.playerState==="PLAYER_STATE_PLAYING"};break a}I=void 0}return I});
_.ui(function(){var x;if((x=m())==null?0:x.activated){var P;if((P=m())==null?0:P.playAnimation){var p;(p=c.lottieEl)==null||p.goToAndPlay(0)}else{var t;(t=c.lottieEl)==null||t.goToAndStop(0)}}},"MDTl2e");
var b=function(){var x,P=!((x=m())==null||!x.activated);if(J.data()){x=J.data();var p=void 0;x.icon&&(p=_.pbu(x.icon),p=kTD(p));var t=void 0,I;if((I=x.backgroundColor)==null?0:I.lightTheme){var a;t={backgroundColor:UT((a=x.backgroundColor)==null?void 0:a.lightTheme,"0.8")}}if(x.text||p||P){if(P&&x.lottieData&&c){a=x.lottieData;var k,H,T;I={animationConfig:{name:a.url,path:a.url,autoplay:(k=a.settings)==null?void 0:k.autoplay,loop:(T=(H=a.settings)==null?void 0:H.loop)!=null?T:!0},animationRef:c}}else I=
void 0;if(P)k=16;else b:switch(x.badgeStyle){case "THUMBNAIL_OVERLAY_BADGE_STYLE_LIVE":k=17;break b;case "THUMBNAIL_OVERLAY_BADGE_STYLE_SPECIAL":k=18;break b;default:k=16}P={type:k,text:P&&x.animatedText?x.animatedText:x.text,icon:p,customColors:t,animation:I}}else P=void 0}else P=void 0;return P};
return _.C("yt-thumbnail-badge-view-model",{class:_.pq("yt-thumbnail-badge-view-model-wiz",J.class)},_.C(_.n,{cond:b,then:function(){return _.C(_.QG,{data:function(){return b()}})}}))},"R");var E4z=_.Q1(function(J){var c={};return _.C("yt-thumbnail-bottom-overlay-view-model",{class:_.pq("ytThumbnailBottomOverlayViewModelHost",(c.ytThumbnailBottomOverlayViewModelHostBackground=function(){return J.data().enableGradientBackground},c))},_.C("div",{class:"ytThumbnailBottomOverlayViewModelHostContainer"},_.C(_.wi,{data:function(){return J.data().progressBar}},{thumbnailOverlayProgressBarViewModel:$$Z}),_.C(_.wi,{data:function(){return J.data().badge}},{thumbnailBadgeViewModel:function(m){return _.C(GQz,
{data:m.data,
class:"ytThumbnailBottomOverlayViewModelHostBadge"})}}),_.C(_.wi,{data:function(){return J.data().badges}},{thumbnailBadgeViewModel:function(m){return _.C(GQz,{data:m.data,
class:"ytThumbnailBottomOverlayViewModelHostBadge"})}})))},"S");
E4z.idomCompat=!0;_.lv(E4z,"yt-thumbnail-bottom-overlay-view-model",{props:{data:_.Fz}});var xnJ={calledOnce:!1,state:"visible"},ViD={calledOnce:!1,state:"hidden"};var r1=_.Q1(function(J){var c=J.data;var m=J.className;J=J.alwaysShow;var b=_.oN("thumbnail-hover-overlay-view-model");_.vg(b,function(){return c().rendererContext});
var x=_.lm2(),P={};return _.C("thumbnail-hover-overlay-view-model",{el:b,class:_.pq("ytThumbnailHoverOverlayViewModelHost",m,(P.ytThumbnailHoverOverlayViewModelHostForceHover=J,P)),"aria-label":function(){var p;return(p=_.L(c().rendererContext,_.KO))==null?void 0:p.label},
role:function(){return _.G9(c().rendererContext)!==void 0?"button":void 0},
tabindex:function(){return _.G9(c().rendererContext)!==void 0?0:void 0},
"on:keypress":x},_.C("div",{class:_.pq("ytThumbnailHoverOverlayViewModelScrim",function(){a:switch(c().style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var p="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:p="ytThumbnailHoverOverlayViewModelStyleCover"}return p})},_.C(_.n,{cond:function(){return c().icon},
then:function(p){return _.C(_.RA,{data:p,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"})}}),_.C(_.n,{cond:function(){return c().text},
then:function(p){return _.C(_.j8,{text:p,className:"ytThumbnailHoverOverlayViewModelText"})}})))},"T");
r1.idomCompat=!0;var v4C=_.Q1(function(J){var c=J.data;return _.C(_.wi,{data:function(){return c==null?void 0:c().overlays}},{thumbnailHoverOverlayViewModel:r1})},"U");
v4C.idomCompat=!0;var Oz8={};var AhQ=_.Q1(function(J){var c=J.data;var m=J.image;var b=J.state;var x=J.iconType;var P=J.overlays;var p=J.isOverlay;var t=_.Q5("div");J=_.M(_.K2(!0,void 0,"sUzEZ"));var I=J.next().value,a=J.next().value,k=function(){return!!c().onTap},H=_.Ru(x,"LIVE");
_.ui(function(){var r=c();requestAnimationFrame(function(){if(t.value===null)var W=!0;else{var Y=t.value;W=r.badgeText;var Z=pCD(r.size);W in Oz8?Y=Oz8[W]:(Y=Y.clientWidth,Oz8[W]=Y);(W=Y>Z)?t.value.style.display="none":t.value.style.visibility="visible"}a(W)})},"SpVcNb");
var T=function(){var r={};return r["yt-spec-avatar-shape__image"]=!0,r["yt-spec-avatar-shape__image--ads-app"]=c().type===1,r};
return _.C("yt-avatar-shape",null,_.C("div",{el:_.Qn(tio(k,{keydown:function(r){if(r.key==="Enter"){var W;(W=r.currentTarget)==null||W.click()}},
click:function(r){var W,Y;return void((Y=(W=c()).onTap)==null?void 0:Y.call(W,r))}})),
class:function(){var r={"yt-spec-avatar-shape":!0,"yt-spec-avatar-shape__button":!0},W=c();r=(r[W.clusterLayoutConfig?Cf3(W.clusterLayoutConfig):agt(W.size)]=!0,r["yt-spec-avatar-shape__button--tappable"]=k(),r);(W=c().avatarButtonCustomClassName)&&(r[W]=!0);return _.tP(r)},
"aria-label":function(){return k()?c().accessibilityText:""},
role:function(){return k()?"button":void 0},
tabindex:function(){return k()?0:void 0}},_.C("div",{class:function(){var r,W=c(),Y=b==null?void 0:b(),Z=p==null?void 0:p(),d=!((r=W.decorations)==null||!r.includes(2)||W.size!=="medium"&&W.size!=="large"),G=W.size==="tiny"||W.size==="extra-small",e,A,l,y,pG={};
r=(pG["yt-spec-avatar-shape--live-ring"]=!!(((e=W.decorations)==null?0:e.includes(0))&&HWG(W.size)),pG["yt-spec-avatar-shape--stories-watched"]=d&&!(Y==null||!Y.storiesWatched),pG["yt-spec-avatar-shape--stories-unwatched"]=d&&!(Y==null?0:Y.storiesWatched),pG["yt-spec-avatar-shape--background-border"]=iWo(W.decorations)&&!G,pG["yt-spec-avatar-shape--background-border-thin"]=iWo(W.decorations)&&G,pG["yt-spec-avatar-shape__on-select-border"]=!((A=W.decorations)==null||!A.includes(4)),pG["yt-spec-avatar-shape__white-border"]=
!((l=W.decorations)==null||!l.includes(5)),pG["yt-spec-avatar-shape__white-border--white-border-thin"]=!!(((y=W.decorations)==null?0:y.includes(5))&&G),pG["yt-spec-avatar-shape--is-overlay"]=!!Z,pG);return _.tP(r)},
style:function(){a:{var r=c().clusterLayoutConfig;if(r){b:{var W=r.numAvatarsInCluster;var Y=r.avatarIndex;if(Y!==W-1){switch(r.clusterSize){case "small":r="32";break;case "medium":r="36";break;case "40":r="40";break;default:W=void 0;break b}W="https://www.gstatic.com/youtube/img/creator/video_collaborations/cluster_size_"+r+"x"+r+"_avatars_"+W+"_index_"+Y+".svg"}else W=void 0}if(W){W=_.kx({"-webkit-mask-image":"url("+W+")","mask-image":"url("+W+")","--webkit-mask-size":"100%","--mask-size":"100%",
"-webkit-mask-repeat":"no-repeat","mask-repeat":"no-repeat"})();break a}}W=void 0}return W}},_.C("div",{class:function(){var r={};
var W=c();r=(r[W.clusterLayoutConfig?Ig3(W.clusterLayoutConfig):Kkq(W.size)]=!0,r["yt-spec-avatar-shape--no-margin"]=iWo(c().decorations),r);return _.tP(r)}},_.C(_.RA,{data:m,
alt:function(){return!k()&&c().accessibilityText?c().accessibilityText:""},
targetWidth:function(){return kpf(c().size)},
targetHeight:function(){return kpf(c().size)},
className:function(){return _.tP(T())}}),_.C(_.n,{cond:function(){var r;
return((r=c().decorations)==null?void 0:r.includes(0))&&HWG(c().size)},
then:function(){return _.C("div",{class:function(){var r={};r=(r["yt-spec-avatar-shape__live-badge"]=!0,r["yt-spec-avatar-shape__live-badge--badge-small"]=c().size==="small",r["yt-spec-avatar-shape__live-badge--badge-medium"]=c().size==="medium"||c().size==="48",r["yt-spec-avatar-shape__live-badge--badge-large"]=c().size==="large",r["yt-spec-avatar-shape__live-badge--badge-extra-large"]=c().size==="extra-large"||c().size==="extra-extra-large"||c().size==="giant",r);return _.tP(r)}},_.C(_.n,{cond:function(){return c().badgeText},
then:function(r){return _.C("div",{class:"yt-spec-avatar-shape__badge-text",el:t},r)}}),_.C(_.n,{cond:I,
then:function(){return _.C("div",{class:"yt-spec-avatar-shape__badge-icon"},_.C(_.HP,{icon:H,size:function(){a:switch(c().size){case "extra-large":var r=16;break a;default:r=13}return r}}))}}))}}),_.C(_.n,{cond:function(){var r,W;
return((r=c().decorations)==null?void 0:r.includes(1))||((W=c().decorations)==null?void 0:W.includes(0))&&!HWG(c().size)},
then:function(){return _.C("div",{class:function(){var r=c(),W,Y,Z={};var d=(Z["yt-spec-avatar-shape__live-dot"]=!((W=r.decorations)==null||!W.includes(0)||HWG(r.size)),Z["yt-spec-avatar-shape__new-content"]=!((Y=r.decorations)==null||!Y.includes(1)),Z);return _.tP(d)}})}}),_.C(_.n,{cond:function(){return!!P},
then:function(){return _.C("div",{class:function(){var r={};r=Object.assign((r["yt-spec-avatar-shape__image-overlays"]=!0,r),T());return _.tP(r)}},P==null?void 0:P())}})))))},"V");
AhQ.idomCompat={callbacks:{overlays:!0}};_.s8=_.Q1(function(J){function c(){m().endpoint&&_.hd(m().endpoint)}
var m=J.data;var b=J.decorations;var x=J.avatarButtonCustomClassName;var P=J.isOverlay;var p=J.clusterLayoutConfig;return _.C("avatar-view-model",null,_.C(_.n,{cond:function(){return m().image},
then:function(t){return _.C(AhQ,{data:function(){return Tgq({data:m(),onTap:m().endpoint?c:void 0,decorations:b==null?void 0:b(),badgeText:void 0,accessibilityText:m().accessibilityText,avatarButtonCustomClassName:x==null?void 0:x(),clusterLayoutConfig:p==null?void 0:p()})},
image:t,iconType:"RADAR_LIVE",overlays:function(){return _.C(v4C,{data:m})},
isOverlay:P})}}))},"W");
_.s8.idomCompat=!0;_.Li=_.Q1(function(J){var c=J.data;J=J.className;var m=_.Q5("yt-decorated-avatar-view-model"),b=function(){return _.L(c().avatar,_.Oc)},x=_.n2(function(){var P,p=c(),t=b(),I=_.G9(c().rendererContext),a=(P=m.value)!=null?P:void 0,k;
if(t){a={data:p,avatar:t,onTap:I,element:a};P=a.data;p=a.avatar;t=a.onTap;I=a.element;a=a.commandController;t=t?LkR(t,I,a):void 0;I=[];P.liveData&&I.push(0);var H;a=(H=P.liveData)==null?void 0:H.liveBadgeText;H=(k=_.L(P.rendererContext,_.KO))==null?void 0:k.label;k=Tgq({data:p,onTap:t,decorations:I,badgeText:a,accessibilityText:H?H:P.a11yLabel})}else k={size:"medium"};return k},void 0,"H8tk9d");
return _.C("yt-decorated-avatar-view-model",{class:_.pq("yt-decorated-avatar-view-model-wiz",J),el:m},_.C(_.n,{cond:function(){var P;return(P=b())==null?void 0:P.image},
then:function(P){return _.C(AhQ,{data:x,image:P,iconType:"RADAR_LIVE",overlays:function(){return _.C(v4C,{data:b})}})}}))},"X");
_.Li.idomCompat=!0;_.DN=_.Q1(function(J){var c=function(){var I;return Object.assign({},J.data(),(I=J.overrides)==null?void 0:I.call(J))},m=_.oN("yt-avatar-stack-view-model"),b=function(){return m&&_.Ec(c().rendererContext)};
_.vg(m,function(){return c().rendererContext});
var x=function(){var I=c().avatars,a,k;return(k=(a=(I==null?0:I[0])?_.L(I[0],_.Oc):void 0)==null?void 0:a.avatarImageSize)!=null?k:"AVATAR_SIZE_UNKNOWN"},P=function(){return siT(c())},p=function(){if(c().layoutType==="AVATAR_STACK_LAYOUT_CLUSTER")var I=void 0;
else if((I=J.decorations)==null?0:I.call(J))I=J.decorations();else{I=c();var a=0;I.avatars&&(a+=I.avatars.length);I.decoratedText&&(a+=1);I=a>1?[3]:[]}return I},t={};
return _.C("yt-avatar-stack-view-model",{el:m,class:_.pq("yt-avatar-stack-view-model-wiz",J.className,(t["yt-avatar-stack-view-model-wiz--tappable"]=b,t["yt-avatar-stack-view-model-wiz--is-overlay"]=J.isOverlay,t["yt-avatar-stack-view-model-wiz--medium-text"]=J.useMediumText,t)),tabindex:function(){return b()?0:void 0},
role:function(){return b()?"link":void 0},
"aria-label":function(){var I,a;return(a=(I=_.L(c().rendererContext,_.KO))==null?void 0:I.label)!=null?a:""}},_.C(_.n,{cond:function(){var I;
return c().avatars&&!((I=J.hideAvatar)==null?0:I.call(J))},
then:function(){return _.C("div",{class:"yt-avatar-stack-view-model-wiz__avatars"},_.C(_.n,{cond:function(){return c().decoratedText},
then:function(I){var a={};return _.C("div",{class:_.pq("yt-avatar-stack-view-model-wiz__text-container",(a["yt-avatar-stack-view-model-wiz__text-container--thin-border"]=function(){return x()==="AVATAR_SIZE_XXS"||x()==="AVATAR_SIZE_XS"},a["yt-avatar-stack-view-model-wiz__text-container--thin-border-overlay"]=function(){var k;
return((k=J.isOverlay)==null?void 0:k.call(J))&&(x()==="AVATAR_SIZE_XXS"||x()==="AVATAR_SIZE_XS")},a)),
style:_.kx({width:function(){return P().avatarSizeInPx+"px"},
height:function(){return P().avatarSizeInPx+"px"}})},_.C(_.j8,{text:I,
className:"yt-avatar-stack-view-model-wiz__avatar-decorated-text"}))}}),_.C("div",{style:function(){return _.kx(P().avatarStackStyle)()},
class:function(){return P().avatarStackClass}},_.C(_.wi,{data:function(){return P().avatars.reverse()}},{avatarViewModel:function(I,a){return _.C("div",{style:function(){var k,H;
return _.kx((H=(k=P()).avatarStyle)==null?void 0:H.call(k,a()))()},
class:function(){return P().avatarClass}},_.C(_.s8,{data:I.data,
decorations:p,avatarButtonCustomClassName:function(){return P().avatarButtonCustomClassName},
isOverlay:J.isOverlay,clusterLayoutConfig:function(){var k,H;return(H=(k=P()).clusterLayoutConfig)==null?void 0:H.call(k,a())}}))},
decoratedAvatarViewModel:function(I,a){return _.C("div",{style:function(){var k,H;return _.kx((H=(k=P()).avatarStyle)==null?void 0:H.call(k,a()))()},
class:function(){return P().avatarClass}},_.C(_.Li,{data:I.data}))}})))}}),_.C(_.n,{cond:function(){return c().text},
then:function(I){return _.C(_.j8,{text:I,className:"yt-avatar-stack-view-model-wiz__avatar-stack-text",linkInheritColor:!0})}}))},"Y");
_.DN.idomCompat=!0;_.lv(_.Q1(function(J){var c=J.data;var m=J.thumbnailSize;return _.C("thumbnail-overlay-avatar-stack-view-model",{class:"ytThumbnailOverlayAvatarStackViewModelHost"},_.C("div",{class:_.pq("ytThumbnailOverlayAvatarStackViewModelavatarStack",function(){return Dnu(m==null?void 0:m())})},_.C(_.wi,{data:function(){return c().avatarStack}},{avatarStackViewModel:function(b){return _.C(_.DN,{data:b.data,
decorations:[5]})}})))},"Z"),"thumbnail-overlay-avatar-stack-view-model",{props:{data:_.vt,
thumbnailSize:_.vt}});var Ry8=_.Q1(function(J){J=_.ou(J,{hidden:!1});var c=J.data;return _.C("yt-thumbnail-overlay-title-view-model",{class:"yt-thumbnail-overlay-title-view-model",hidden:J.hidden},_.C(_.j8,{text:function(){return c().title},
className:"yt-thumbnail-overlay-title-view-model__title"}),_.C(_.n,{cond:function(){return c().subtitle},
then:function(){return _.C(_.j8,{text:function(){return c().subtitle},
className:"yt-thumbnail-overlay-title-view-model__subtitle"})}}))},"$");
Ry8.idomCompat=!0;_.lv(Ry8,"yt-thumbnail-overlay-title-view-model",{props:{data:_.vt,hidden:_.vt}});var o4j=_.Q1(function(J){J=_.ou(J,{isClip:!1});var c=J.data,m=J.thumbnailSize,b={};return _.C("yt-thumbnail-overlay-badge-view-model",{class:_.pq("yt-thumbnail-overlay-badge-view-model-wiz",function(){a:switch(c().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 WkG(m==null?void 0:m())},(b["yt-thumbnail-overlay-badge-view-model-wiz--clip"]=
J.isClip,b))},_.C(_.wi,{data:function(){return c().thumbnailBadges}},{thumbnailBadgeViewModel:function(x){return _.C(GQz,{data:x.data,
class:"yt-thumbnail-overlay-badge-view-model-wiz__badge"})}}))},"aa");
o4j.idomCompat=!0;_.lv(o4j,"yt-thumbnail-overlay-badge-view-model",{props:{data:_.vt,thumbnailSize:_.vt,isClip:_.vt}});_.J5(z72);_.xx(z72,"yt-page-indicator-view-model",{propNames:["data"]});var WW=function(){var J=_.h.apply(this,arguments)||this;J.eventSink=function(){return J};
J.disableInteraction=!1;J.noRoundedCorners=!1;J.isPreviewLoading=!1;J.isOriginalAspectRatio=!1;J.computedObjectFit=!1;J.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};return J};
_.D(WW,_.h);_.V=WW.prototype;
_.V.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:_.w("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"}}};
_.V.onImageLoaded=function(){this.loaded=!0};
_.V.onImageUnloaded=function(){this.loaded=!1};
_.V.computeRichThumbnail=function(J,c,m,b){if(J&&c&&!b&&!_.w("disable_moving_thumbs_handling")&&!m)return c};
_.V.computeImageWidth=function(J,c){return c||9999};
_.V.computeIsOriginalAspectRatio=function(J){return J};
_.V.computeIsLive=function(J){if(J==null?0:J.badges)for(var c=0;c<J.badges.length;c++){var m=J.badges[c];if(m.metadataBadgeRenderer&&m.metadataBadgeRenderer.style==="BADGE_STYLE_TYPE_LIVE_NOW")return!0}else if(J==null?0:J.thumbnailOverlays)for(c=0;c<J.thumbnailOverlays.length;c++)if(m=J.thumbnailOverlays[c],m.thumbnailOverlayTimeStatusRenderer&&m.thumbnailOverlayTimeStatusRenderer.style==="LIVE")return!0;return!1};
_.V.computeObjectFit=function(J,c){return c||(J?"CONTAIN":"")};
_.V.computeNavigationEndpoint=function(J,c,m){return J?c:m};
_.V.computeHasClip=function(J){J=_.M(J||[]);for(var c=J.next();!c.done;c=J.next())if(c.value.thumbnailOverlayPinkingRenderer)return!0;return!1};
_.V.computeOverlayColor=function(J){var c;return(J==null?0:(c=J.darkColorPalette)==null?0:c.section2Color)?J.darkColorPalette.section2Color:J==null?void 0:J.sampledThumbnailColor};
_.eE.Object.defineProperties(WW.prototype,{isPreviewDisabled:{configurable:!0,enumerable:!0,get:function(){return!this.inlinePreviewIsEnabled}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){return zd2(this.width)}}});
WW.prototype.onImageUnloaded=WW.prototype.onImageUnloaded;WW.prototype.onImageLoaded=WW.prototype.onImageLoaded;_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],WW.prototype,"ytActionHandlerBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],WW.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(W2a),_.R("design:type",Object)],WW.prototype,"ytdThumbnailBehavior",void 0);
_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],WW.prototype,"componentBehavior",void 0);_.O([_.f(_.fY),_.R("design:type",Object)],WW.prototype,"ytdReduxBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],WW.prototype,"data",void 0);_.O([_.U({value:!1}),_.R("design:type",Boolean)],WW.prototype,"circular",void 0);
_.O([_.U({computed:"computeRichThumbnail(finalHoveredState_, data.richThumbnail, isPreviewLoading, isPreviewDisabled)"}),_.R("design:type",Object)],WW.prototype,"richThumbnail",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeHasClip(data.thumbnailOverlays)"}),_.R("design:type",Boolean)],WW.prototype,"hasClip",void 0);_.O([_.U(),_.R("design:type",Object)],WW.prototype,"eventSink",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],WW.prototype,"queued",void 0);
_.O([_.U({value:!1}),_.R("design:type",Boolean)],WW.prototype,"richGridThumbnail",void 0);_.O([_.U({value:!1}),_.R("design:type",Boolean)],WW.prototype,"useExpandableTooltip",void 0);_.O([_.U({value:!1}),_.R("design:type",Boolean)],WW.prototype,"useUntranslatedNavigationEndpoint",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],WW.prototype,"disableInteraction",void 0);
_.O([_.U({computed:"computeNavigationEndpoint(useUntranslatedNavigationEndpoint, data.untranslatedNavigationEndpoint, data.navigationEndpoint)"}),_.R("design:type",Object)],WW.prototype,"computedNavigationEndpoint",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],WW.prototype,"nowPlayingEqualizerOnly",void 0);_.O([_.U({value:!1,reflectToAttribute:!0}),_.R("design:type",Boolean)],WW.prototype,"hidePlaybackStatus",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",String)],WW.prototype,"objectFit",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],WW.prototype,"noRoundedCorners",void 0);_.O([_.U({value:!1}),_.R("design:type",Boolean)],WW.prototype,"watchFeedThumbnail",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],WW.prototype,"isPreviewLoading",void 0);
_.O([_.U({reflectToAttribute:!0,computed:"computeIsOriginalAspectRatio(data.thumbnail.isOriginalAspectRatio)"}),_.R("design:type",Object)],WW.prototype,"isOriginalAspectRatio",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeObjectFit(isOriginalAspectRatio, objectFit)"}),_.R("design:type",Object)],WW.prototype,"computedObjectFit",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeIsLive(data)"}),_.R("design:type",Boolean)],WW.prototype,"isLiveVideo",void 0);
_.O([_.U({value:!1,reflectToAttribute:!0}),_.R("design:type",Boolean)],WW.prototype,"loaded",void 0);_.O([_.U({computed:"computeOverlayColor(data.thumbnail)"}),_.R("design:type",Object)],WW.prototype,"overlayColor",void 0);_.O([_.U({selector:_.aAm}),_.R("design:type",Boolean)],WW.prototype,"inlinePreviewIsEnabled",void 0);_.O([_.U(),_.R("design:type",Number)],WW.prototype,"width",void 0);
_.O([_.q("inlinePreviewIsEnabled"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],WW.prototype,"isPreviewDisabled",null);_.O([_.q("width"),_.R("design:type",String),_.R("design:paramtypes",[])],WW.prototype,"thumbnailSize",null);_.O([_.ps("image-loaded"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],WW.prototype,"onImageLoaded",null);
_.O([_.ps("image-unloaded"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],WW.prototype,"onImageUnloaded",null);WW=_.O([_.E({disableElementRegistration:!0,is:"ytd-thumbnail"})],WW);
var Qdj=_.cd()(WW,"ytd-thumbnail",function(){if(d$j===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);d$j=J}J=d$j;return J},{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 XCo=function(J){var c=this;this.inlinePreviewIsActive=this.inlinePreviewIsEnabledForUser=!1;this.unsubscribeFromInlinePreviewIsEnabled=function(){};
this.JSC$12812_unsubscribeFromInlinePreviewIsActive=function(){};
this.videoPreviewJobId=0;this.JSC$12812_touched=this.previewTriggered=!1;this.onMouseMoveFn=function(m){eyQ(c,m)};
this.onLockupMouseLeaveFn=function(m){m=m.relatedTarget;var b,x;((b=document.getElementsByTagName("ytd-video-preview"))==null?0:(x=b.item(0))==null?0:x.contains(m))||(c.terminateVideoPreview(),zM(c))};
this.onThumbnailMouseDownFn=function(){c.terminateVideoPreview();zM(c)};
this.onTouchStart=function(){c.JSC$12812_touched=!0};
this.mediaRenderer=J.mediaRenderer;this.thumbnailElement=J.thumbnailElement;this.lockupElement=J.lockupElement;this.videoPreviewOptsInput=J.videoPreviewOpts;jdC(this);uF(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)):
_.qz(Error("zh")):_.qz(Error("Ah")):FHa(this)},Jm=function(J){FHa(J);
var c;(c=J.lockupElement)==null||c.removeEventListener("mouseenter",J.onMouseMoveFn);var m;(m=J.lockupElement)==null||m.removeEventListener("mouseleave",J.onLockupMouseLeaveFn);var b;(b=J.lockupElement)==null||b.removeEventListener("touchstart",J.onTouchStart);var x;(x=J.thumbnailElement)==null||x.removeEventListener("mousedown",J.onThumbnailMouseDownFn);zM(J)},jdC=function(J){J.inlinePreviewIsEnabledForUser=_.Rc().getState().ui.inlinePreviewIsEnabled;
J.unsubscribeFromInlinePreviewIsEnabled=_.Nh(_.Rc(),_.aAm,function(c){(J.inlinePreviewIsEnabledForUser=c)||zM(J)});
J.JSC$12812_unsubscribeFromInlinePreviewIsActive=_.Nh(_.Rc(),_.CrD,function(c){(J.inlinePreviewIsActive=c)||zM(J)})},FHa=function(J){J.unsubscribeFromInlinePreviewIsEnabled();
J.unsubscribeFromInlinePreviewIsEnabled=function(){};
J.JSC$12812_unsubscribeFromInlinePreviewIsActive();J.JSC$12812_unsubscribeFromInlinePreviewIsActive=function(){}},eyQ=function(J,c){c.buttons>0||(c=_.c7("kevlar_lockup_hover_delay",-1),J.JSC$12812_touched&&c>=0?(_.ft.cancelJob(J.videoPreviewJobId),J.videoPreviewJobId=_.cP(_.ft,function(){lVa(J)},c),J.JSC$12812_touched=!1):lVa(J))},yh8=function(J){J.videoPreviewJobId=_.cP(_.ft,function(){var c,m,b,x;
return _.N(function(P){if(P.nextAddress==1){if(!uF(J))return P.return();c=J.getVideoPreviewOpts();if(!c)return P.return();c.isAutoplay=!0;return(b=(m=_.bJ(J.mediaRenderer.hostElement,"yt-open-video-preview-action",[c]))&&m[0])?_.K(P,m[0],3):P.jumpTo(2)}P.nextAddress!=2&&(b=P.yieldResult===1);b&&fgr((x=J.mediaRenderer)==null?void 0:x.data);_.tD(P)})})},lVa=function(J){!J.previewTriggered&&uF(J)&&(J.inlinePreviewIsActive&&J.terminateVideoPreview(),J.previewTriggered=!0,J.mediaRenderer.isInlinePreviewTriggered=
!0,_.ft.cancelJob(J.videoPreviewJobId),J.videoPreviewJobId=_.cP(_.ft,function(){var c,m,b,x;
return _.N(function(P){if(P.nextAddress==1){if(!uF(J))return P.return();c=J.getVideoPreviewOpts();return c?(b=(m=_.bJ(J.mediaRenderer.hostElement,"yt-open-video-preview-action",[c]))&&m[0])?_.K(P,m[0],3):P.jumpTo(2):P.return()}P.nextAddress!=2&&(b=P.yieldResult===1);b&&fgr((x=J.mediaRenderer)==null?void 0:x.data);_.tD(P)})}))};
XCo.prototype.getVideoPreviewOpts=function(){if(this.mediaRenderer.data){var J,c;if((c=(J=this.videoPreviewOptsInput)==null?void 0:J.videoPreviewData)!=null)J=c;else if(J=this.mediaRenderer.data)if(ufu(J))J={inlinePlaybackEndpoint:_.ZG(J.inlinePlayerData.onVisible),navigationEndpoint:_.ZG(J.onTap),thumbnail:"image"in J?J.image:J.thumbnail,thumbnailOverlays:void 0,accessibilityText:Yue(J)};else if("multipleInlinePlaybackEndpoint"in J){var m=_.L(_.L(J.multipleInlinePlaybackEndpoint,hvL),dC2);if(m!=
null&&m.playerDescriptors){c=[];m=_.M(m.playerDescriptors);for(var b=m.next();!b.done;b=m.next())b=b.value,c.push({inlinePlaybackEndpoint:b.inlinePlaybackEndpoint,navigationEndpoint:b.navigationEndpoint,thumbnail:b.thumbnail,thumbnailOverlays:b.thumbnailOverlays,accessibilityText:Yue(J)});J=c}else J=void 0}else J={inlinePlaybackEndpoint:J.inlinePlaybackEndpoint,navigationEndpoint:J.navigationEndpoint,thumbnail:J.thumbnail,thumbnailOverlays:J.thumbnailOverlays,accessibilityText:Yue(J)};else J=void 0;
return Object.assign({},{mediaRenderer:this.mediaRenderer.hostElement,thumbnail:this.thumbnailElement,videoPreviewData:J,showPlayerControls:!0},this.videoPreviewOptsInput)}};
var uF=function(J){var c;if(c=J.inlinePreviewIsEnabledForUser)c=(J=J.mediaRenderer.data)?"inlinePlaybackEndpoint"in J&&J.inlinePlaybackEndpoint||ufu(J)&&J.inlinePlayerData||"multipleInlinePlaybackEndpoint"in J&&J.multipleInlinePlaybackEndpoint?!0:!1:!1;return c};
XCo.prototype.terminateVideoPreview=function(){_.m9(this.mediaRenderer.hostElement,"yt-terminate-video-preview-action")};
var zM=function(J){_.ft.cancelJob(J.videoPreviewJobId);J.inlinePreviewIsActive=!1;J.previewTriggered=!1;J.mediaRenderer.isInlinePreviewTriggered=!1};var BH$=_.Oo(["#"]),fi=function(){var J=_.h.apply(this,arguments)||this;J.isDisabled=!1;return J};
_.D(fi,_.h);_.V=fi.prototype;_.V.configureRendererStamper=function(){return{"data.menu":pi,"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"}}}};
_.V.attached=function(){this.updateInlinePreviewHoverListeners()};
_.V.detached=function(){this.clearInlinePreviewHoverListeners()};
_.V.getMetadata=function(J){var c=[];if(J.metadataText&&Object.keys(J.metadataText).length>0){var m=this.ytRendererBehavior.getSimpleString(J.metadataText);J.upcomingEventData&&J.upcomingEventData.upcomingEventText&&(m=_.ZI(m,Number(J.upcomingEventData.startTime)));c.push(m)}else J.shortViewCountText&&c.push(this.ytRendererBehavior.getSimpleString(J.shortViewCountText)),J.publishedTimeText&&c.push(this.ytRendererBehavior.getSimpleString(J.publishedTimeText)),J.upcomingEventData&&J.upcomingEventData.upcomingEventText&&
(m=this.ytRendererBehavior.getSimpleString(J.upcomingEventData.upcomingEventText),c.push(_.ZI(m,Number(J.upcomingEventData.startTime))));return c};
_.V.calculateBylineText=function(J){return J.shortBylineText?J.shortBylineText:J.bylineText?J.bylineText:null};
_.V.calculateIsDisabled=function(J){return!!J.isDisabled};
_.V.computeHrefWithDefault=function(J){return this.ytComponentBehavior.computeHref_(J)||_.L1(BH$)};
_.V.onDetailsTap=function(J){var c=this.data&&this.data.navigationEndpoint;c&&!_.AP(_.OT(J)||[],this.hostElement,["A".toString(),"BUTTON".toString()])&&(_.w("kevlar_grid_video_renderer_killswitch")?_.cA(this.hostElement,"yt-navigate",{endpoint:c}):this.ytComponentBehavior.resolveCommand(c))};
_.V.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.V.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$12817_inlinePreviewHoverListener=AT({mediaRenderer:this,lockupElement:_.Bj(this.hostElement).querySelector("#dismissible"),thumbnailElement:_.Bj(this.hostElement).querySelector("ytd-thumbnail")})};
_.V.clearInlinePreviewHoverListeners=function(){var J;(J=this.JSC$12817_inlinePreviewHoverListener)==null||Jm(J)};
_.V.computeThumbnailWidth=function(J,c){return c&&c>0?c:J?360:210};
_.V.computeShowChannelThumbnail=function(J,c){var m;return c&&!!(J==null?0:(m=J.channelThumbnailSupportedRenderers)==null?0:m.channelThumbnailWithLinkRenderer)};
_.eE.Object.defineProperties(fi.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var J;return!((J=this.JSC$12817_inlinePreviewHoverListener)==null?0:uF(J))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
fi.prototype.dataChanged=fi.prototype.dataChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],fi.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],fi.prototype,"ytComponentBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],fi.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.XP),_.R("design:type",Object)],fi.prototype,"ytdDismissibleItemBehavior",void 0);
_.O([_.f(_.$N),_.R("design:type",Object)],fi.prototype,"ytdLockupBehavior",void 0);_.O([_.f(_.fY),_.R("design:type",Object)],fi.prototype,"ytdReduxBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],fi.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Boolean)],fi.prototype,"noEndpoints",void 0);_.O([_.U({computed:"calculateBylineText(data)"}),_.R("design:type",Object)],fi.prototype,"bylineText",void 0);
_.O([_.U({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],fi.prototype,"isSearch",void 0);_.O([_.U({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],fi.prototype,"isDownloading",void 0);_.O([_.U({reflectToAttribute:!0,value:0}),_.R("design:type",Number)],fi.prototype,"width",void 0);_.O([_.U({reflectToAttribute:!0,computed:"calculateIsDisabled(data)"}),_.R("design:type",Object)],fi.prototype,"isDisabled",void 0);
_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],fi.prototype,"dataChanged",null);_.O([_.q("lockupIsHovered"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],fi.prototype,"isHovered",null);fi=_.O([_.E({is:"ytd-grid-video-renderer",disableElementRegistration:!0})],fi);
_.v(fi,"ytd-grid-video-renderer",function(){if(D$L!==void 0)return D$L;var J=document.createElement("template");_.z(J,'\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>');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return D$L=J},{mode:_.mP("kevlar_poly_si_batch_j047")?1:2});var g4Q;var YJ=function(){var J=_.h.apply(this,arguments)||this;J.roundedContainer=!0;J.skipRoundingTop=!1;J.disableTopPadding=!1;J.amsterdamEnabled=_.w("enable_desktop_amsterdam_info_panels");return J};
_.D(YJ,_.h);YJ.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
YJ.prototype.onClick=function(J){var c,m=(c=this.data)==null?void 0:c.sourceEndpoint;!_.AP(_.OT(J),this.hostElement,["A".toString()])&&m&&_.cA(this.hostElement,"yt-navigate",{endpoint:m})};
_.eE.Object.defineProperties(YJ.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 J;return!((J=this.data)==null||!J.menu)}},
truncateParagraphs:{configurable:!0,enumerable:!0,get:function(){var J;return!((J=this.data)==null||!J.truncateParagraphs)}},
paragraphMaxLines:{configurable:!0,enumerable:!0,get:function(){var J,c;return(c=(J=this.data)==null?void 0:J.paragraphMaxLines)!=null?c:3}},
background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTENT_BACKGROUND_",""):""}}});
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],YJ.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],YJ.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],YJ.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],YJ.prototype,"showVerticalDividers",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],YJ.prototype,"roundedContainer",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],YJ.prototype,"skipRoundingTop",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],YJ.prototype,"disableTopPadding",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],YJ.prototype,"amsterdamEnabled",void 0);_.O([_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],YJ.prototype,"showMetadataAtTop",null);
_.O([_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],YJ.prototype,"showMetadataBelowTitle",null);_.O([_.U({reflectToAttribute:!0}),_.q("data.menu"),_.R("design:type",Object),_.R("design:paramtypes",[])],YJ.prototype,"hasMenu",null);_.O([_.U({reflectToAttribute:!0}),_.q("data.truncateParagraphs"),_.R("design:type",Object),_.R("design:paramtypes",[])],YJ.prototype,"truncateParagraphs",null);
_.O([_.U({reflectToAttribute:!0}),_.q("data.paragraphMaxLines"),_.R("design:type",Number),_.R("design:paramtypes",[])],YJ.prototype,"paragraphMaxLines",null);_.O([_.U({type:_.w("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.q("data.background"),_.R("design:type",Object),_.R("design:paramtypes",[])],YJ.prototype,"background",null);YJ=_.O([_.E({is:"ytd-info-panel-content-renderer",disableElementRegistration:!0})],YJ);
_.v(YJ,"ytd-info-panel-content-renderer",function(){if(g4Q!==void 0)return g4Q;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return g4Q=J},{mode:_.mP("kevlar_poly_si_batch_j076")?1:2});var J_Z;var c_B;var mWQ;var bD2;var Xo=function(){return _.h.apply(this,arguments)||this};
_.D(Xo,_.h);Xo.prototype.computeStyle=function(J){return J};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Xo.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Xo.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.R("design:type",String)],Xo.prototype,"style_",void 0);Xo=_.O([_.uM({is:"yt-channel-thumbnail-with-link-renderer",disableElementRegistration:!0})],Xo);
_.v(Xo,"yt-channel-thumbnail-with-link-renderer",function(){if(bD2===void 0){var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);var c=J.content,m=c.insertBefore;mWQ===void 0&&(mWQ=document.createElement("template"));var b=mWQ;m.call(c,b.content.cloneNode(!0),J.content.firstChild);bD2=J}J=bD2;return J},{mode:2});var ZN=function(){var J=_.h.apply(this,arguments)||this;J.modernTypography=_.w("web_modern_typography");return J};
_.D(ZN,_.h);ZN.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"}}}};
ZN.prototype.computeTitleStyle=function(J){return J||null};
ZN.prototype.computeAvatarStyle=function(J){return J||null};
ZN.prototype.computeShowNavigationButton=function(J,c){return!(J==null||!J.navigationButton||c)};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],ZN.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],ZN.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],ZN.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeTitleStyle(data.titleStyle.style)"}),_.R("design:type",String)],ZN.prototype,"titleStyle",void 0);
_.O([_.U({reflectToAttribute:!0,computed:"computeAvatarStyle(data.channelThumbnail.channelThumbnailWithLinkRenderer.style)"}),_.R("design:type",String)],ZN.prototype,"avatarStyle",void 0);_.O([_.U(),_.R("design:type",Boolean)],ZN.prototype,"hideNavigationButton",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],ZN.prototype,"isModernSd",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],ZN.prototype,"modernTypography",void 0);
ZN=_.O([_.E({is:"ytd-rich-list-header-renderer",disableElementRegistration:!0})],ZN);
_.v(ZN,"ytd-rich-list-header-renderer",function(){if(c_B!==void 0)return c_B;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return c_B=J},{mode:_.mP("kevlar_poly_si_batch_j058")?1:2});var q9=function(){return _.h.apply(this,arguments)||this};
_.D(q9,_.h);q9.prototype.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{richListHeaderRenderer:"ytd-rich-list-header-renderer"}},"data.contents":{id:"contents",mapping:{gridVideoRenderer:{component:"ytd-grid-video-renderer",properties:{isSearch:"[[isSearch]]"}}}}}};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],q9.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],q9.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],q9.prototype,"data",void 0);_.O([_.U({value:!1}),_.R("design:type",Boolean)],q9.prototype,"isSearch",void 0);q9=_.O([_.E({is:"ytd-preview-card-renderer",disableElementRegistration:!0})],q9);
_.v(q9,"ytd-preview-card-renderer",function(){if(J_Z!==void 0)return J_Z;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return J_Z=J},{mode:1});var xWu;var U8=function(){return _.h.apply(this,arguments)||this};
_.D(U8,_.h);U8.prototype.configureRendererStamper=function(){return{"data.menu":pi}};
U8.prototype.dataChanged=function(){var J=this.get("colorExtractionPalette.section1Color",this.data);J=_.XB(J);_.V1(this.hostElement,{"--ytd-channel-recommendation-card-avatar-overlay-color":J})};
U8.prototype.computeCardStyle=function(J){return this.get("style.value",J)||null};
U8.prototype.dataChanged=U8.prototype.dataChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],U8.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],U8.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.XP),_.R("design:type",Object)],U8.prototype,"ytdDismissibleItemBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],U8.prototype,"data",void 0);
_.O([_.U({reflectToAttribute:!0,computed:"computeCardStyle(data)"}),_.R("design:type",String)],U8.prototype,"cardStyle",void 0);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],U8.prototype,"dataChanged",null);U8=_.O([_.E({disableElementRegistration:!0,is:"ytd-compact-channel-recommendation-card-renderer"})],U8);
_.v(U8,"ytd-compact-channel-recommendation-card-renderer",function(){if(xWu!==void 0)return xWu;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return xWu=J},{mode:1});var VXZ;var PZ$;var S7=function(){var J=_.h.apply(this,arguments)||this;J.alignAuto=!1;J.collapsed=!0;J.isToggled=!1;J.alwaysCollapsed=!1;J.canToggle=!0;J.collapsedHeight=80;J.disableToggle=!1;J.alwaysToggleable=!1;J.reversed=!1;J.shouldUseNumberOfLines=!1;J.recomputeOnResize=!1;J.canToggleJobId=0;J.lastReversed=!1;return J};
_.D(S7,_.h);_.V=S7.prototype;_.V.alwaysToggleableChanged=function(){this.alwaysToggleable&&(this.canToggle=!0)};
_.V.toggledChanged=function(){this.collapsed=this.alwaysCollapsed||!this.isToggled};
_.V.reversedChanged=function(){if(this.reversed&&!this.lastReversed||this.lastReversed&&!this.reversed){for(var J=_.Bj(this.hostElement),c=J.childNodes,m=document.createDocumentFragment(),b=J.childNodes.length-1;b>=0;b--)_.Bj(m).appendChild(c[b]);_.w("enable_shadydom_free_scoped_node_methods")?_.gB(this.hostElement).appendChild(m):J.appendChild(m)}};
_.V.ready=function(){var J=this;_.S5(function(){J.initChildrenObserver()},1)};
_.V.detached=function(){this.detachObserver()};
_.V.toggle=function(J,c){this.canToggle&&(this.isToggled=c,_.cA(this.hostElement,"yt-refit"),J&&J.stopPropagation())};
_.V.reset=function(){this.childrenChanged()};
_.V.onIronResize=function(){this.recomputeOnResize&&this.childrenChanged()};
_.V.computeIsMoreVisible=function(J,c){return J&&!c};
_.V.computeShouldUseNumberOfLines=function(J){try{return!!J&&window.CSS.supports("-webkit-line-clamp","1")}catch(c){}return!1};
_.V.computeIsLessVisible=function(J,c){return J&&c};
_.V.observeCollapsedHeightAndMaxLines=function(){var J=this.collapsedHeight,c=this.maxNumberOfLines;this.shouldUseNumberOfLines?_.V1(this.hostElement,{"--ytd-expander-max-lines":""+c,"--ytd-expander-collapsed-height":""}):_.V1(this.hostElement,{"--ytd-expander-collapsed-height":J+"px","--ytd-expander-max-lines":""})};
_.V.handleMoreTap=function(J){this.disableToggle||(_.cA(this.hostElement,"yt-expander-more-tapped"),this.toggle(J,!0))};
_.V.handleLessTap=function(J){_.cA(this.hostElement,"yt-expander-less-tapped");this.toggle(J,!1)};
_.V.initChildrenObserver=function(){var J=this;this.observer=new MutationObserver(function(){J.childrenChanged()});
this.observer.observe(this.content,{subtree:!0,childList:!0,attributes:!0,characterData:!0});this.childrenChanged()};
_.V.childrenChanged=function(){var J=this;this.alwaysToggleable?this.canToggle=this.alwaysToggleable:this.canToggleJobId||(this.canToggleJobId=window.requestAnimationFrame(function(){JP(function(){J.canToggleJobId=0;J.calculateCanCollapse()})}))};
_.V.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};
_.V.detachObserver=function(){this.observer&&this.observer.disconnect()};
_.V.collapsedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.SJ("collapsed-changed",this.collapsed))};
_.V.isToggledChangedForBinding=function(){this.hostElement.dispatchEvent(new _.SJ("is-toggled-changed",this.isToggled))};
_.V.canToggleChangedForBinding=function(){this.hostElement.dispatchEvent(new _.SJ("can-toggle-changed",this.canToggle))};
_.eE.Object.defineProperties(S7.prototype,{isResetting:{configurable:!0,enumerable:!0,get:function(){return this.canToggleJobId!==0}}});
S7.prototype.canToggleChangedForBinding=S7.prototype.canToggleChangedForBinding;S7.prototype.isToggledChangedForBinding=S7.prototype.isToggledChangedForBinding;S7.prototype.collapsedChangedForBinding=S7.prototype.collapsedChangedForBinding;S7.prototype.observeCollapsedHeightAndMaxLines=S7.prototype.observeCollapsedHeightAndMaxLines;S7.prototype.onIronResize=S7.prototype.onIronResize;S7.prototype.reversedChanged=S7.prototype.reversedChanged;S7.prototype.toggledChanged=S7.prototype.toggledChanged;
S7.prototype.alwaysToggleableChanged=S7.prototype.alwaysToggleableChanged;_.O([_.f(_.rI),_.R("design:type",Object)],S7.prototype,"ironResizableBehavior",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],S7.prototype,"alignAuto",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],S7.prototype,"collapsed",void 0);_.O([_.U(),_.R("design:type",Object)],S7.prototype,"isToggled",void 0);_.O([_.U(),_.R("design:type",Object)],S7.prototype,"alwaysCollapsed",void 0);
_.O([_.U(),_.R("design:type",Object)],S7.prototype,"canToggle",void 0);_.O([_.U(),_.R("design:type",Object)],S7.prototype,"collapsedHeight",void 0);_.O([_.U(),_.R("design:type",Object)],S7.prototype,"disableToggle",void 0);_.O([_.U(),_.R("design:type",Object)],S7.prototype,"alwaysToggleable",void 0);_.O([_.U(),_.R("design:type",Object)],S7.prototype,"reversed",void 0);_.O([_.U(),_.R("design:type",Number)],S7.prototype,"maxNumberOfLines",void 0);
_.O([_.U({reflectToAttribute:!0,computed:"computeShouldUseNumberOfLines(maxNumberOfLines)"}),_.R("design:type",Object)],S7.prototype,"shouldUseNumberOfLines",void 0);_.O([_.U(),_.R("design:type",Object)],S7.prototype,"recomputeOnResize",void 0);_.O([_.Iu("#content"),_.R("design:type",HTMLDivElement)],S7.prototype,"content",void 0);_.O([_.kr("alwaysToggleable"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],S7.prototype,"alwaysToggleableChanged",null);
_.O([_.kr("isToggled"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],S7.prototype,"toggledChanged",null);_.O([_.q("canToggleJobId"),_.R("design:type",Object),_.R("design:paramtypes",[])],S7.prototype,"isResetting",null);_.O([_.NE("reversed"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],S7.prototype,"reversedChanged",null);
_.O([_.ps("iron-resize"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],S7.prototype,"onIronResize",null);_.O([_.NE("maxNumberOfLines","collapsedHeight"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],S7.prototype,"observeCollapsedHeightAndMaxLines",null);_.O([_.NE("collapsed"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],S7.prototype,"collapsedChangedForBinding",null);
_.O([_.NE("isToggled"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],S7.prototype,"isToggledChangedForBinding",null);_.O([_.NE("canToggle"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],S7.prototype,"canToggleChangedForBinding",null);S7=_.O([_.E({disableElementRegistration:!0,is:"ytd-expander"})],S7);
_.v(S7,"ytd-expander",function(){if(PZ$!==void 0)return PZ$;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return PZ$=J},{mode:1});var h2=function(){return _.h.apply(this,arguments)||this};
_.D(h2,_.h);h2.prototype.computeIsCarousel=function(J){return!!J.isCarousel};
h2.prototype.observeLightsourcePalette=function(){var J,c=(J=this.data)==null?void 0:J.vibrantsourceColorPaletteData;c&&_.DL(this.hostElement,c)};
h2.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
h2.prototype.observeLightsourcePalette=h2.prototype.observeLightsourcePalette;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],h2.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],h2.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],h2.prototype,"data",void 0);_.O([_.U({computed:"computeIsCarousel(data)",reflectToAttribute:!0}),_.R("design:type",Boolean)],h2.prototype,"isCarousel",void 0);
_.O([_.NE("data.vibrantsourceColorPaletteData"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],h2.prototype,"observeLightsourcePalette",null);h2=_.O([_.E({disableElementRegistration:!0,is:"ytd-media-upsell-renderer"})],h2);
_.v(h2,"ytd-media-upsell-renderer",function(){if(VXZ!==void 0)return VXZ;var J=document.createElement("template");_.z(J,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-upsell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="details-wrapper style-scope ytd-media-upsell-renderer">\n  <div class="image-wrapper style-scope ytd-media-upsell-renderer">\n    <yt-img-shadow class="media-thumbnail style-scope ytd-media-upsell-renderer" thumbnail="[[data.thumbnail]]">\n    </yt-img-shadow>\n    <div class="tv-show-season-wrapper style-scope ytd-media-upsell-renderer" hidden="[[!data.tvShowSeasons]]">\n      <yt-icon id="tv-show-icon" icon="tv" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n      <p id="tv-show-season" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.tvShowSeasons)]]\n      </p>\n    </div>\n  </div>\n  <div class="details style-scope ytd-media-upsell-renderer">\n    <div class="metadata-wrapper style-scope ytd-media-upsell-renderer">\n      <span id="media-title" hidden="[[!data.mediaTitle]]" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.mediaTitle)]]\n      </span>\n      <span id="metadata" hidden="[[!data.metadata]]" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.metadata)]]\n      </span>\n    </div>\n    <div id="action-button" class="style-scope ytd-media-upsell-renderer"></div>\n  </div>\n</div>\n<ytd-expander id="expander" hidden="[[data.isCarousel]]" max-number-of-lines="4" class="style-scope ytd-media-upsell-renderer">\n  <yt-formatted-string id="synopsis" slot="content" disable-upgrade$="[[!data.synopsis]]" hidden="[[data.isCarousel]]" text="[[data.synopsis]]" class="style-scope ytd-media-upsell-renderer">\n  </yt-formatted-string>\n  <div class="more-button style-scope ytd-media-upsell-renderer" slot="more-button">\n    <span class="expander-text style-scope ytd-media-upsell-renderer">[[getSimpleString(data.moreButtonText)]]</span>\n    <yt-icon id="drop-down-icon" icon="EXPAND" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n  </div>\n  <div class="less-button style-scope ytd-media-upsell-renderer" slot="less-button">\n    <span class="expander-text style-scope ytd-media-upsell-renderer">[[getSimpleString(data.lessButtonText)]]</span>\n    <yt-icon id="drop-up-icon" icon="COLLAPSE" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n  </div>\n</ytd-expander>\n');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return VXZ=J},{mode:2});var MXj;var d1=function(){var J=_.h.apply(this,arguments)||this;J.JSC$12845_playerEvents=new Map;J.listeningToPlayer=!1;J.startX=0;J.active=!1;J.shouldShowButtons=_.w("web_buttons_hidden_killswitch");J.isHighlighted=!1;J.useHighlightStyling=_.w("web_enable_deeper_metadata_highlight_styling");J.modern=_.w("kevlar_modern_sd");J.enableProblemWalkthrough=_.w("problem_walkthrough_sd");return J};
_.D(d1,_.h);_.V=d1.prototype;
_.V.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}}}}}};
_.V.created=function(){this.JSC$12845_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.V.attached=function(){this.repeatButton.addEventListener("yt-toggle-button",_.ME(this,this.onRepeatButtonToggle));_.w("synced_panel_scrolling_controller")&&this.hostElement.addEventListener("yt-synced-panel-active-item-update",_.ME(this,this.onActiveUpdate))};
_.V.detached=function(){this.removePlayerListeners();this.repeatButton.removeEventListener("yt-toggle-button",_.ME(this,this.onRepeatButtonToggle));_.w("synced_panel_scrolling_controller")&&this.hostElement.removeEventListener("yt-synced-panel-active-item-update",_.ME(this,this.onActiveUpdate))};
_.V.onDataChanged=function(){this.removePlayerListeners()};
_.V.onColorPaletteChange=function(){var J={},c;if(_.wB()==="USER_INTERFACE_THEME_DARK"&&((c=this.data)==null?0:c.darkColorPalette)){var m=this.data.darkColorPalette;J["--ytd-macro-markers-list-item-background-color"]=_.Zn(this.get("section2Color",m))}else{var b;_.wB()==="USER_INTERFACE_THEME_LIGHT"&&((b=this.data)==null?0:b.lightColorPalette)&&(m=this.data.lightColorPalette,J["--ytd-macro-markers-list-item-background-color"]=_.Zn(this.get("section3Color",m)))}m?(J["--ytd-macro-markers-list-item-title-color"]=
_.Zn(this.get("primaryTitleColor",m)),J["--ytd-macro-markers-list-item-secondary-color"]=_.Zn(this.get("secondaryTitleColor",m)),J["--ytd-macro-markers-list-item-timestamp-background-color"]=_.Zn(this.get("section1Color",m)),this.customButtonProperties={customColors:{color:_.Zn(this.get("primaryTitleColor",m))}},this.useColorSampling=!0):(J["--ytd-macro-markers-list-item-background-color"]="initial",J["--ytd-macro-markers-list-item-title-color"]="initial",J["--ytd-macro-markers-list-item-secondary-color"]=
"initial",J["--ytd-macro-markers-list-item-timestamp-background-color"]="initial",this.customButtonProperties=void 0,this.useColorSampling=!1);_.V1(this.hostElement,J)};
_.V.onEndpointMouseDown=function(J){this.startX=J.clientX};
_.V.onEndpointClick=function(J){var c=this,m,b,x;return _.N(function(P){if(P.nextAddress==1){if(c.startX!==J.clientX)return J.preventDefault(),P.return();c.data&&c.ytRendererBehavior.logExplicitClick(c.data);if(!c.seekWithAnimationOnClick)return P.jumpTo(0);if(J.button!==0||J.shiftKey||J.altKey||J.metaKey||J.ctrlKey||_.AP(_.OT(J),c.hostElement,["BUTTON".toString()]))return P.return();J.stopPropagation();J.preventDefault();return c.data?_.K(P,_.jp().getPlayerPromise(),3):P.return()}m=P.yieldResult;
x=(b=_.L(c.data.onTap,_.Rz))==null?void 0:b.startTimeSeconds;x!==void 0&&m.seekToTimeWithAnimation(x*1E3,_.OG(c.data.title));_.tD(P)})};
_.V.computeLayout=function(J){return J};
_.V.computeIsHighlighted=function(J){return!!J};
_.V.computeCarouselType=function(J){return J};
_.V.hideModernCarousel=function(J){return this.modern&&this.hideThumbnail(J)};
_.V.hideThumbnail=function(J){return this.enableProblemWalkthrough&&J!==null&&J==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"};
_.V.onRepeatButtonToggle=function(J){var c=this;J.detail.toggled&&_.jp().getPlayerPromise().then(function(m){c.ytPlayerListenerBehavior.listenToPlayerEvents(m,c.JSC$12845_playerEvents);c.listeningToPlayer=!0})};
_.V.onLoopRangeChange=function(J){var c=_.Bj(this.hostElement).querySelector("#repeat-button").querySelector("ytd-toggle-button-renderer");if(c){var m=c.polymerController.get("defaultServiceEndpoint.repeatChapterCommand",c.polymerController.data);if(m){var b=Number(m.endTimeMs);if(Number(m.startTimeMs)!==(J==null?void 0:J.startTimeMs)||b!==(J==null?void 0:J.endTimeMs))c.polymerController.toggle(!1),this.removePlayerListeners()}}};
_.V.removePlayerListeners=function(){var J=this;this.listeningToPlayer&&_.jp().getPlayerPromise().then(function(c){J.ytPlayerListenerBehavior.unlistenFromPlayerEvents(c,J.JSC$12845_playerEvents);J.listeningToPlayer=!1})};
_.V.onActiveUpdate=function(J){this.active=J.detail.active};
d1.prototype.onColorPaletteChange=d1.prototype.onColorPaletteChange;d1.prototype.onDataChanged=d1.prototype.onDataChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],d1.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],d1.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.Ex.YtPlayerListenerBehavior),_.R("design:type",_.vX)],d1.prototype,"ytPlayerListenerBehavior",void 0);
_.O([_.U(),_.R("design:type",Object)],d1.prototype,"data",void 0);_.O([_.U({value:!1,reflectToAttribute:!0}),_.R("design:type",Boolean)],d1.prototype,"useCustomColors",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],d1.prototype,"active",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],d1.prototype,"shouldShowButtons",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeLayout(data.layout)"}),_.R("design:type",String)],d1.prototype,"layout",void 0);
_.O([_.U({reflectToAttribute:!0,computed:"computeIsHighlighted(data.isHighlighted)"}),_.R("design:type",Object)],d1.prototype,"isHighlighted",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],d1.prototype,"useHighlightStyling",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],d1.prototype,"modern",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],d1.prototype,"enableProblemWalkthrough",void 0);
_.O([_.U({reflectToAttribute:!0,computed:"computeCarouselType(data.carouselType)"}),_.R("design:type",String)],d1.prototype,"carouselType",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],d1.prototype,"useColorSampling",void 0);_.O([_.U(),_.R("design:type",Boolean)],d1.prototype,"seekWithAnimationOnClick",void 0);_.O([_.U(),_.R("design:type",Object)],d1.prototype,"customButtonProperties",void 0);
_.O([_.Iu("#repeat-button"),_.R("design:type",HTMLElement)],d1.prototype,"repeatButton",void 0);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],d1.prototype,"onDataChanged",null);_.O([_.NE("data.lightColorPalette","data.darkColorPalette"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],d1.prototype,"onColorPaletteChange",null);
d1=_.O([_.E({is:"ytd-macro-markers-list-item-renderer",disableElementRegistration:!0})],d1);
_.v(d1,"ytd-macro-markers-list-item-renderer",function(){if(MXj!==void 0)return MXj;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return MXj=J},{mode:1});var pnC;var Nkj;var $J=function(){var J=_.h.apply(this,arguments)||this;J.modernTypography=_.w("web_modern_typography");return J};
_.D($J,_.h);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],$J.prototype,"ytRendererBehavior",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],$J.prototype,"modernTypography",void 0);_.O([_.U(),_.R("design:type",Object)],$J.prototype,"data",void 0);$J=_.O([_.E({disableElementRegistration:!0,is:"ytd-title-and-button-list-header-renderer"})],$J);
_.v($J,"ytd-title-and-button-list-header-renderer",function(){if(Nkj!==void 0)return Nkj;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return Nkj=J},{mode:1});var tX6;var Imu=new _.oE("BUTTON_RENDERER_WIZ_TOKEN"),Krz=new _.oE("BUTTON_RENDERER_TOKEN");_.GM=_.Q1(function(J){var c=_.BG().resolve(_.y6(Imu));if(c)return _.C(c,Object.assign({},J));var m=_.BG().resolve(Krz);return m?_.C(wP3,null,function(){return _.C(jg,null,function(){var b,x,P,p,t,I,a,k,H,T,r,W;return void m(J.data(),{onButtonClickCallback:J.onButtonClickCallback,shouldShowIcons:(b=J.shouldShowIcons)==null?void 0:b.call(J),icon:(x=J.icon)==null?void 0:x.call(J),processAllEndpoints:(P=J.processAllEndpoints)==null?void 0:P.call(J),preventDefault:(p=J.preventDefault)==null?void 0:p.call(J),
stopPropagation:(t=J.stopPropagation)==null?void 0:t.call(J),disableButtonRendererClickHandling:(I=J.disableButtonRendererClickHandling)==null?void 0:I.call(J),className:(a=J.className)==null?void 0:a.call(J),buttonOverrides:(k=J.buttonOverrides)==null?void 0:k.call(J),forceModernIconButton:(H=J.forceModernIconButton)==null?void 0:H.call(J),isSubscribe:(T=J.isSubscribe)==null?void 0:T.call(J),alignByText:(r=J.alignByText)==null?void 0:r.call(J),forceDisabled:(W=J.forceDisabled)==null?void 0:W.call(J)})})}):
_.C(_.cG,null)},"ba");
_.GM.idomCompat=!0;var CZ$=_.Q1(function(J){var c=J.data,m=_.Ru(J.useSquareAspectRatio,!1);return _.C("dismissed-mini-game-card-view-model",null,_.C(_.n,{cond:function(){var b,x;return(b=c().responseText)==null?void 0:(x=b.runs)==null?void 0:x.length},
then:function(){var b={};return _.C("div",{class:_.pq("yt-mini-game-card-view-model__dismissed-card",(b["yt-mini-game-card-view-model__dismissed-portrait-card"]=function(){return!m()},b["yt-mini-game-card-view-model--dismissed-square-card"]=m,b))},_.C("div",{class:"yt-mini-game-card-view-model__dismissed-mini-app-content"},_.C(_.n,{cond:function(){return c().responseText.runs[0].text},
then:function(x){return _.C("span",{class:"yt-mini-game-card-view-model__dismissed-text",title:x},x)}}),_.C(_.wi,{data:function(){return c().buttons}},{buttonRenderer:_.GM,
buttonViewModel:_.XU})))}}))},"ca");var Tka=_.Q1(function(J){J=_.ou(J,{data:{},className:void 0,useFullWidth:!1,isDesktopWeb:!1,addSearchResultTopMargin:!1});var c=J.data,m=J.useFullWidth,b=J.isDesktopWeb,x=J.addSearchResultTopMargin,P=function(){return c().layout},p=function(){return c().title},t=function(){return c().metadataText?c().metadataText:c().genre},I=function(){return c().channelName},a=function(){return c().image},k=function(){return c().colorPalette},H=function(){return c().actionButton},T=function(){return c().overflowButton},
r=function(){return c().avatar},W=function(){var G={};
G=_.pq("yt-mini-game-card-view-model","yt-mini-game-card-view-model--singleton-card",(G["yt-mini-game-card-view-model--singleton-card-desktop"]=function(){return b()},G));
return _.C("div",{class:G},_.C(amL,{imageData:a,colorPalette:k}),_.C(kuC,{onTap:function(){return c().onTap},
imageData:a,accessibilityText:function(){return c().accessibilityText},
overlayBadgeText:function(){return c().overlayBadgeText},
iconName:function(){return c().iconName},
unplayableInlinePlaybackIconName:function(){return c().unplayableInlinePlaybackIconName},
isDesktopWeb:b}),_.C(_.n,{cond:function(){return!b()},
then:function(){return _.C(_.cG,null,_.C(HD$,{layout:P,colorPalette:k,isDesktopWeb:b,overflowButton:T,avatar:r,onTap:function(){return c().onTap},
genre:t,title:p,channelName:I,entityRedesignExperiments:function(){return c().entityRedesignExperiments}}),_.C(E8,{actionButton:H}))}}))},Y=function(){var G={};
G=_.pq((G["yt-mini-game-card-view-model--search-result-desktop"]=function(){return b()},G["yt-mini-game-card-view-model--search-result-mweb"]=function(){return!b()},G["yt-mini-game-card-view-model--search-result-top-margin"]=function(){return x()},G));
return _.C("div",{class:G},W(),_.C(iDj,{description:function(){return c().description},
isDesktopWeb:b,title:p,genre:t,onTap:function(){return c().onTap},
actionButton:H,overflowButton:T,avatar:r,channelName:I}))},Z=function(){var G=function(){var A;
return(A=c().entityRedesignExperiments)==null?void 0:A.changePlayablesLayoutWithCta},e={};
e=_.pq("yt-mini-game-card-view-model","yt-mini-game-card-view-model--portrait-card",(e["yt-mini-game-card-view-model--change-layout-with-cta"]=function(){return G()},e["yt-mini-game-card-view-model--portrait-card-desktop"]=function(){return b()},e["yt-mini-game-card-view-model--portrait-card-desktop-skinny-width"]=function(){return b()&&c().width===135},e["yt-mini-game-card-view-model--show-unplayable-on-hover"]=function(){return b()},e["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=
function(){return!G()&&b()&&c().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},e["yt-mini-game-card-view-model--big-metadata-font"]=function(){return c().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},e["yt-mini-game-card-view-model--use-full-width"]=function(){return m()},e["yt-mini-game-card-view-model--extra-bottom-padding"]=function(){return!H()},e));
return _.C("div",{class:e},_.C(_.n,{cond:function(){return G()},
then:function(){return _.C(_.cG,null,_.C(nX2,{entityRedesignExperiments:function(){return c().entityRedesignExperiments},
colorPalette:k,isDesktopWeb:b,onTap:function(){return c().onTap},
accessibilityText:function(){return c().accessibilityText},
overlayBadgeText:function(){return c().overlayBadgeText},
iconName:function(){return c().iconName},
unplayableInlinePlaybackIconName:function(){return c().unplayableInlinePlaybackIconName},
actionButton:H,imageData:a}),_.C(HD$,{layout:P,colorPalette:k,isDesktopWeb:b,overflowButton:T,avatar:r,onTap:function(){return c().onTap},
genre:t,title:p,channelName:I,entityRedesignExperiments:function(){return c().entityRedesignExperiments}}),_.C(_.n,{cond:function(){return!!G()===!1&&H()},
then:function(){return _.C(E8,{actionButton:H})}}))},
else:function(){return _.C(_.cG,null,_.C(amL,{imageData:a,colorPalette:k}),_.C(kuC,{onTap:function(){return c().onTap},
imageData:a,accessibilityText:function(){return c().accessibilityText},
overlayBadgeText:function(){return c().overlayBadgeText},
iconName:function(){return c().iconName},
unplayableInlinePlaybackIconName:function(){return c().unplayableInlinePlaybackIconName},
isDesktopWeb:b}),_.C(HD$,{layout:P,colorPalette:k,isDesktopWeb:b,overflowButton:T,avatar:r,onTap:function(){return c().onTap},
genre:t,title:p,channelName:I,entityRedesignExperiments:function(){return c().entityRedesignExperiments}}),_.C(E8,{actionButton:H}))}}))},d=function(){var G={};
G=_.pq("yt-mini-game-card-view-model","yt-mini-game-card-view-model--square-card",(G["yt-mini-game-card-view-model--square-card-desktop"]=function(){return b()},G["yt-mini-game-card-view-model--use-full-width"]=function(){return m()},G));
return _.C("div",{class:G},_.C(kuC,{onTap:function(){return c().onTap},
imageData:a,accessibilityText:function(){return c().accessibilityText},
overlayBadgeText:function(){return c().overlayBadgeText},
iconName:function(){return c().iconName},
unplayableInlinePlaybackIconName:function(){return c().unplayableInlinePlaybackIconName},
isDesktopWeb:b}),_.C(HD$,{layout:P,colorPalette:k,isDesktopWeb:b,overflowButton:T,avatar:r,onTap:function(){return c().onTap},
genre:t,title:p,channelName:I,entityRedesignExperiments:function(){return c().entityRedesignExperiments}}))};
return _.C("mini-game-card-view-model",{class:J.className},_.C(_.sb,null,_.C(_.wu,{when:function(){return P()==="MINI_APP_LAYOUT_PORTRAIT"}},function(){return Z()}),_.C(_.wu,{when:function(){return P()==="MINI_APP_LAYOUT_SQUARE"}},function(){return d()}),_.C(_.wu,{when:function(){return P()==="MINI_APP_LAYOUT_SINGLETON"}},function(){return Y()})))},"da");
Tka.idomCompat=!0;var E8=_.Q1(function(J){var c=_.Ru(J.wrapperClass,"yt-mini-game-card-view-model__card-action-button");return _.C(_.wi,{data:J.actionButton},{buttonViewModel:function(m){return _.C("div",{class:c},_.C(_.XU,{data:m.data}))}})},"ea"),kuC=_.Q1(function(J){var c=J.onTap;
var m=J.imageData;var b=J.accessibilityText;var x=J.overlayBadgeText;var P=J.iconName;var p=J.unplayableInlinePlaybackIconName;J=J.isDesktopWeb;return _.C(_.cL,{className:"yt-mini-game-card-view-model__thumbnail-wrapper",command:c},_.C(_.RA,{data:m,className:"yt-mini-game-card-view-model__thumbnail-image",alt:function(){return(b==null?void 0:b())||""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),_.C(wnZ,{overlayBadgeText:x,iconName:P,unplayableInlinePlaybackIconName:p,isDesktopWeb:J}))},"fa"),wnZ=_.Q1(function(J){var c=J.overlayBadgeText;
var m=J.iconName;var b=J.unplayableInlinePlaybackIconName;var x=J.isDesktopWeb;return _.C("div",{class:"yt-mini-game-card-view-model__badge-container"},_.C(_.n,{cond:m,then:function(P){return _.C("div",{class:"yt-mini-game-card-view-model__badge"},_.C("div",{class:"yt-mini-game-card-view-model__badge-high-score"},_.C(_.HP,{icon:P,className:"yt-mini-game-card-view-model__icon"}),_.C("span",{class:"yt-mini-game-card-view-model__badge-text","aria-hidden":!0},c)))}}),_.C(_.n,{cond:function(){return!m()&&
c()},
then:function(){return _.C("span",{class:"yt-mini-game-card-view-model__badge","aria-hidden":!0},c)}}),_.C(_.n,{cond:function(){return b()&&x()},
then:function(){return _.C("div",{class:"yt-mini-game-card-view-model__unplayable-badge"},_.C(_.HP,{icon:b,className:"yt-mini-game-card-view-model__unplayable-icon"}))}}))},"ga"),amL=_.Q1(function(J){var c=J.colorPalette;
var m=J.imageData;var b=function(){return c().vibrantColorPalette?c().vibrantColorPalette.section2Color:c().sectionTwoColor};
return _.C(_.cG,null,_.C("div",{class:"yt-mini-game-card-view-model__background-base",style:_.kx({"background-color":function(){return UT(b(),"1")}})}),_.C("div",{class:"yt-mini-game-card-view-model__background-blur",
style:_.kx({"background-image":function(){return"url("+m().sources[0].url+")"}})}),_.C("div",{class:"yt-mini-game-card-view-model__gradient-scrim",
style:_.kx({background:function(){return"linear-gradient(180deg,\n    "+UT(b(),".8")+" 0%,\n    "+UT(b(),".4")+" 25%,\n    "+UT(c().vibrantColorPalette?c().vibrantColorPalette.section4Color:c().sectionFourColor,".8")+" 100%)"}})}))},"ha"),HD$=_.Q1(function(J){var c=J.layout;
var m=J.colorPalette;var b=J.overflowButton;var x=J.avatar;var P=J.onTap;var p=J.title;var t=J.channelName;var I=J.entityRedesignExperiments;var a=J.genre;var k=function(){var T;return c()!=="MINI_APP_LAYOUT_SQUARE"&&((T=m())==null?0:T.textPrimaryColor)?"color: "+UT(m().textPrimaryColor,".7"):""},H=function(){var T;
return I==null?void 0:(T=I())==null?void 0:T.changePlayablesLayoutWithCta};
return _.C("div",{class:"yt-mini-game-card-view-model__card-metadata-wrapper"},_.C(_.n,{cond:x,then:function(){return _.C("div",{class:"yt-mini-game-card-view-model__avatar"},_.C(_.wi,{data:x},{avatarViewModel:_.s8}))}}),_.C(_.cL,{command:P,
className:"yt-mini-game-card-view-model__metadata-details"},_.C("h3",{class:"yt-mini-game-card-view-model__title",title:p},p),_.C(_.n,{cond:x,then:function(){return _.C("div",{class:"yt-mini-game-card-view-model__channel-metadata-line"},_.C("span",{class:"yt-mini-game-card-view-model__genre",title:t,style:k},t),_.C("span",{class:"yt-mini-game-card-view-model__genre-with-separator",style:k},a))},
else:function(){return _.C(_.n,{cond:H,then:function(){return _.C("span",{class:"yt-mini-game-card-view-model__genre",title:a},a)},
else:function(){return _.C("span",{class:"yt-mini-game-card-view-model__genre",title:a,style:k},a)}})}})),_.C("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.C(_.wi,{data:b},{buttonViewModel:function(T){var r=T.data;
return _.C(_.XU,{data:function(){return Object.assign({},r(),{customFontColor:H()?void 0:r().customFontColor})}})}})))},"ia"),nX2=_.Q1(function(J){var c=J.entityRedesignExperiments;
var m=J.colorPalette;var b=J.isDesktopWeb;var x=J.onTap;var P=J.accessibilityText;var p=J.overlayBadgeText;var t=J.iconName;var I=J.unplayableInlinePlaybackIconName;var a=J.actionButton;J=J.imageData;var k=function(){var H;return c==null?void 0:(H=c())==null?void 0:H.changePlayablesLayoutWithCta};
return _.C("div",{class:"yt-mini-game-card-view-model__cinematic-background-wrapper"},_.C(amL,{imageData:J,colorPalette:m}),_.C(kuC,{onTap:x,imageData:J,accessibilityText:P,overlayBadgeText:p,iconName:t,unplayableInlinePlaybackIconName:I,isDesktopWeb:b}),_.C(_.n,{cond:function(){return(k==null?void 0:k())&&(a==null?void 0:a())},
then:function(){return _.C(E8,{actionButton:a})}}))},"ja"),iDj=_.Q1(function(J){var c=J.description;
var m=J.isDesktopWeb;var b=J.title;var x=J.genre;var P=J.onTap;var p=J.actionButton;var t=J.overflowButton;var I=J.avatar;J=J.channelName;var a={};a=_.pq("yt-mini-game-card-view-model--search-result-metadata-wrapper",(a["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=m,a["yt-mini-game-card-view-model--show-unplayable-on-hover"]=m,a["yt-mini-game-card-view-model--search-result-metadata-wrapper-mweb"]=function(){return!m()},a));
var k={};k=_.pq("yt-mini-game-card-view-model__search-result-info-row",(k["yt-mini-game-card-view-model__search-result-info-row-mweb"]=function(){return!m()},k));
return _.C("div",{class:a},_.C("div",{class:k},_.C(_.cL,{command:P,className:"yt-mini-game-card-view-model__metadata-details"},_.C("h3",{class:"yt-mini-game-card-view-model__title",title:b},b),_.C("span",{class:"yt-mini-game-card-view-model__genre",title:x},x)),_.C(E8,{actionButton:p,wrapperClass:"yt-mini-game-card-view-model__search-result-action-button"}),_.C("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.C(_.wi,{data:t},{buttonViewModel:_.XU}))),_.C("div",{class:"yt-mini-game-card-view-model__search-result-channel-row"},
_.C("div",{class:"yt-mini-game-card-view-model--search-result-channel-name"},_.C("div",{class:"yt-mini-game-card-view-model__avatar"},_.C(_.wi,{data:I},{avatarViewModel:function(H){var T=H.data;return _.C(_.s8,{data:function(){return Object.assign({},T(),{avatarImageSize:m()?"AVATAR_SIZE_XS":"AVATAR_SIZE_M"})}})}})),_.C(_.cL,{command:P,
className:"yt-mini-game-card-view-model__description"},_.C("p",{class:"yt-mini-game-card-view-model__search-result-channel-text"},J)),_.C(_.cL,{command:P,className:"yt-mini-game-card-view-model__metadata-row-extra-endpoint",tabIndex:-1},_.C("div",null)))),_.C(_.n,{cond:m,then:function(){return _.C(_.cL,{command:P,className:"yt-mini-game-card-view-model__description"},c)}}))},"ka");_.lv(Tka,"mini-game-card-view-model",{props:{data:_.vt,className:_.vt,useFullWidth:_.vt,isDesktopWeb:_.vt,addSearchResultTopMargin:_.vt}});_.lv(CZ$,"dismissed-mini-game-card-view-model",{props:{data:_.vt,useSquareAspectRatio:_.vt}});var vW=function(){var J=_.h.apply(this,arguments)||this;J.isSearch=!1;J.isRichGrid=!1;return J};
_.D(vW,_.h);_.V=vW.prototype;_.V.dismissibleItemReset=function(){this.isDismissed&&(this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0)};
_.V.dismissibleItemOnYtServiceRequestSent=function(J,c){c.actions&&this.dismissibleItemProcessActions(J,c.actions)};
_.V.dismissibleItemOnRequestSent=function(){this.dismissibleItemReset()};
_.V.dataChanged=function(){this.dismissibleItemReset()};
_.V.dismissibleItemProcessActions=function(J,c){for(var m=0;m<c.length;m++){var b=c[m];_.L(b,_.ay)&&(this.dismissibleItemHandleReplaceEnclosingAction(_.L(b,_.ay)),J.stopPropagation())}};
_.V.dismissibleItemHandleReplaceEnclosingAction=function(J){this.dismissedRenderer=J.item;this.isDismissed=!0};
_.eE.Object.defineProperties(vW.prototype,{useSquareAspectRatio:{configurable:!0,enumerable:!0,get:function(){var J;return((J=this.data)==null?void 0:J.layout)==="MINI_APP_LAYOUT_SQUARE"}},
showCard:{configurable:!0,enumerable:!0,get:function(){var J;return!!this.data&&!((J=this.dismissedRenderer)==null?0:J.notificationMultiActionRenderer)}},
showDismissed:{configurable:!0,enumerable:!0,get:function(){var J;return!((J=this.dismissedRenderer)==null||!J.notificationMultiActionRenderer)}}});
vW.prototype.dataChanged=vW.prototype.dataChanged;vW.prototype.dismissibleItemOnRequestSent=vW.prototype.dismissibleItemOnRequestSent;vW.prototype.dismissibleItemOnYtServiceRequestSent=vW.prototype.dismissibleItemOnYtServiceRequestSent;_.O([_.U(),_.R("design:type",Object)],vW.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],vW.prototype,"isSearch",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],vW.prototype,"isDismissed",void 0);
_.O([_.U(),_.R("design:type",Object)],vW.prototype,"dismissedRenderer",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],vW.prototype,"isRichGrid",void 0);_.O([_.q("data.layout"),_.R("design:type",Object),_.R("design:paramtypes",[])],vW.prototype,"useSquareAspectRatio",null);_.O([_.q("data","dismissedRenderer"),_.R("design:type",Object),_.R("design:paramtypes",[])],vW.prototype,"showCard",null);
_.O([_.q("data","dismissedRenderer"),_.R("design:type",Object),_.R("design:paramtypes",[])],vW.prototype,"showDismissed",null);_.O([_.ps("yt-service-request-sent"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,_.qd]),_.R("design:returntype")],vW.prototype,"dismissibleItemOnYtServiceRequestSent",null);
_.O([_.ps("yt-service-request-sent-button-renderer"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],vW.prototype,"dismissibleItemOnRequestSent",null);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],vW.prototype,"dataChanged",null);vW=_.O([_.uM({disableElementRegistration:!0,is:"ytd-mini-game-card-view-model",isInjectionRoot:!0})],vW);
_.v(vW,"ytd-mini-game-card-view-model",function(){if(tX6!==void 0)return tX6;var J=document.createElement("template");_.z(J,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-mini-game-card-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" restamp="" if="[[showCard]]" class="style-scope ytd-mini-game-card-view-model"><mini-game-card-view-model add-search-result-top-margin="[[isSearch]]" data="[[data]]" is-desktop-web="" use-full-width="[[isRichGrid]]" class="style-scope ytd-mini-game-card-view-model"></mini-game-card-view-model></template><template is="dom-if" restamp="" if="[[showDismissed]]" class="style-scope ytd-mini-game-card-view-model"><dismissed-mini-game-card-view-model data="[[dismissedRenderer.notificationMultiActionRenderer]]" use-square-aspect-ratio="[[useSquareAspectRatio]]" class="style-scope ytd-mini-game-card-view-model"></dismissed-mini-game-card-view-model></template>');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return tX6=J},{mode:_.mP("kevlar_poly_si_batch_j081")?1:2});var r_Q;var s0L;var O8=function(){return _.jE.apply(this,arguments)||this};
_.D(O8,_.jE);O8.prototype.trigger=function(){this.fire("yt-load-reload-continuation",this.getContinuationUrl.bind(this))};
O8.prototype.getContinuationUrl=function(J){var c={ctoken:this.data.continuation,continuation:this.data.continuation};this.data.clickTrackingParams&&(c.itct=this.data.clickTrackingParams);return _.oP(J,c)};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],O8.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],O8.prototype,"data",void 0);O8=_.O([_.uM({is:"yt-reload-continuation",noInjection:!0})],O8);var Lr_;var DWz;var A2=function(){var J=_.h.apply(this,arguments)||this;J.notificationData={};return J};
_.D(A2,_.h);_.V=A2.prototype;_.V.isMenuExpanded=function(J){return J&&J.length<=1?"undefined":"false"};
_.V.dataChanged_=function(){this.selected=void 0;var J=this.computeSelectedIndex_(this.data);J>=0&&(this.selected=J);J=this.data&&this.data.length>1;_.mq(this.hostElement,"has-items",J);_.Bj(this.hostElement).querySelector("#label").tabIndex=J?0:-1};
_.V.onDropdownOpen=function(){var J=_.Y3();if(this.parentTrackingParams&&this.data){var c=_.n7(this.parentTrackingParams);this.data.forEach(function(m){J&&c&&m.trackingParams&&(m=_.n7(m.trackingParams),_.$2(J,c,m),_.vA(J,[m]))})}else this.parentTrackingParams||_.qz(new _.w3("No parent tracking params passed in for yt-dropdown-menu."))};
_.V.hasNotification=function(J){var c;if(J.targetId&&((c=this.notificationData)==null?0:c.targetId)){var m;return J.targetId===((m=this.notificationData)==null?void 0:m.targetId)}};
_.V.computeSelectedIndex_=function(J){if(J)for(var c=0,m=J.length;c<m;c++)if(J[c].selected)return c;return-1};
_.V.computeLabel_=function(J){return this.data&&J!=void 0?this.data[J].title:""};
_.V.computeShowIcon_=function(J,c){return!c&&!!J};
_.V.computeVerticalOffset_=function(J){return J?36:0};
_.V.computeEndpoint_=function(J){return J.endpoint||J.navigationEndpoint};
_.V.onLabelClick_=function(J){this.data&&this.data.length<=1?J.stopPropagation():this.menuExpanded="true"};
_.V.onIronActivate_=function(J){J=J.detail.item;var c=_.Bj(this.hostElement).querySelector("#repeat").itemForElement(J);if(c&&c.trackingParams){var m=_.Y3(),b=_.n7(c.trackingParams);m&&_.AS(m,b)}if(c&&c.serviceEndpoint)_.w("web_use_resolve_command_for_service_endpoint_in_dropdown_killswitch")?this.ytComponentBehavior.resolveCommand(c.serviceEndpoint):_.Vq(this.hostElement,[c.serviceEndpoint]),_.cA(this.hostElement,"yt-playlist-reloading");else a:{if((c=J.querySelector("yt-supported-renderers"))&&
(c=c.rendererElement)&&c.is=="yt-reload-continuation"){c.trigger();break a}(J=J.querySelector("yt-reload-continuation"))&&J.trigger()}};
_.V.onTap_=function(J){J.preventDefault()};
_.V.onItemTap_=function(J){this.ytEndpointBehavior.onEndpointTap_(J)};
_.V.onLinkFocus_=function(J){try{var c=J.target}catch(b){}if(c){var m=c.querySelector("tp-yt-paper-item");m&&_.hO(this,"focus",function(){m.focus()})}};
_.V.onMenuClose_=function(){this.menuExpanded="false"};
_.V.isLabelIconActive_=function(J){return J==="true"};
_.V.computeHasSubtitle_=function(J){return!!J};
_.V.computeHrefForItem_=function(J){return this.ytComponentBehavior.computeHref_(this.computeEndpoint_(J))};
_.V.updateSelectedFromBinding=function(J){this.selected=J.detail.value};
_.eE.Object.defineProperties(A2.prototype,{computedAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.useComputedAriaLabel&&this.selected!==void 0?this.ariaLabel+": "+this.data[this.selected].title:this.ariaLabel}}});
A2.prototype.onMenuClose_=A2.prototype.onMenuClose_;A2.prototype.onTap_=A2.prototype.onTap_;A2.prototype.onIronActivate_=A2.prototype.onIronActivate_;A2.prototype.onDropdownOpen=A2.prototype.onDropdownOpen;A2.prototype.dataChanged_=A2.prototype.dataChanged_;_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],A2.prototype,"ytComponentBehavior",void 0);_.O([_.f(_.ts.YtEndpointBehavior),_.R("design:type",Object)],A2.prototype,"ytEndpointBehavior",void 0);
_.O([_.U(),_.R("design:type",Array)],A2.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],A2.prototype,"parentTrackingParams",void 0);_.O([_.U(),_.R("design:type",Object)],A2.prototype,"selected",void 0);_.O([_.U({value:!1}),_.R("design:type",Boolean)],A2.prototype,"useLabel",void 0);_.O([_.U({value:!1}),_.R("design:type",Boolean)],A2.prototype,"useComputedAriaLabel",void 0);_.O([_.U(),_.R("design:type",String)],A2.prototype,"icon",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",String)],A2.prototype,"iconLabel",void 0);_.O([_.U(),_.R("design:type",String)],A2.prototype,"ariaLabel",void 0);_.O([_.U({value:!1,reflectToAttribute:!0}),_.R("design:type",Boolean)],A2.prototype,"disabled",void 0);_.O([_.U({computed:"isMenuExpanded(data)"}),_.R("design:type",String)],A2.prototype,"menuExpanded",void 0);_.O([_.U({value:!1}),_.R("design:type",Boolean)],A2.prototype,"closeOnActivate",void 0);
_.O([_.U({reflectToAttribute:!0,value:_.w("web_modern_buttons")}),_.R("design:type",Boolean)],A2.prototype,"modernButtons",void 0);_.O([_.U(),_.R("design:type",Object)],A2.prototype,"notificationData",void 0);_.O([_.q("ariaLabel, selected"),_.U(),_.R("design:type",String),_.R("design:paramtypes",[])],A2.prototype,"computedAriaLabel",null);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],A2.prototype,"dataChanged_",null);
_.O([_.ps("paper-dropdown-open"),_.R("design:type",Function),_.R("design:paramtypes",[Event]),_.R("design:returntype")],A2.prototype,"onDropdownOpen",null);_.O([_.ps("iron-activate"),_.R("design:type",Function),_.R("design:paramtypes",[Event]),_.R("design:returntype")],A2.prototype,"onIronActivate_",null);_.O([_.ps("tap"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],A2.prototype,"onTap_",null);
_.O([_.ps("iron-overlay-closed"),_.R("design:type",Function),_.R("design:paramtypes",[Event]),_.R("design:returntype")],A2.prototype,"onMenuClose_",null);A2=_.O([_.uM({is:"yt-dropdown-menu",disableElementRegistration:!0})],A2);
_.v(A2,"yt-dropdown-menu",function(){if(DWz===void 0){var J=document.createElement("template");_.z(J,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-dropdown-menu--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_dropdown_menu.yt.dropdown.menu.css.js--\x3e<tp-yt-paper-menu-button close-on-activate="[[closeOnActivate]]" disabled="[[disabled]]" dynamic-align="" expand-sizing-target-for-scrollbars="" horizontal-align="[[horizontalAlign]]" vertical-offset="[[computeVerticalOffset_(icon)]]" class="style-scope yt-dropdown-menu">\n  <tp-yt-paper-button id="label" class="dropdown-trigger style-scope yt-dropdown-menu" slot="dropdown-trigger" aria-expanded$="[[menuExpanded]]" aria-label$="[[computedAriaLabel]]" on-tap="onLabelClick_">\n    <template is="dom-if" if="[[computeShowIcon_(icon, useLabel)]]" class="style-scope yt-dropdown-menu">\n      <yt-icon id="label-icon" active="[[isLabelIconActive_(menuExpanded)]]" icon="[[icon]]" class="style-scope yt-dropdown-menu">\n      </yt-icon>\n      <div id="icon-label" class="style-scope yt-dropdown-menu">[[iconLabel]]</div>\n    </template>\n    <template is="dom-if" if="[[useLabel]]" class="style-scope yt-dropdown-menu">\n      <div id="label-text" style-target="label-text" class="style-scope yt-dropdown-menu">[[computeLabel_(selected)]]</div>\n      <yt-icon id="label-icon" icon="expand" class="style-scope yt-dropdown-menu">\n      </yt-icon>\n    </template>\n  </tp-yt-paper-button>\n  <tp-yt-paper-listbox id="menu" class="dropdown-content style-scope yt-dropdown-menu" slot="dropdown-content" selected="[[selected]]" on-selected-changed="updateSelectedFromBinding">\n    <template id="repeat" is="dom-repeat" items="[[data]]" class="style-scope yt-dropdown-menu">\n      <a class="yt-simple-endpoint style-scope yt-dropdown-menu" href$="[[computeHrefForItem_(item)]]" data="[[computeEndpoint_(item)]]" on-focus="onLinkFocus_" on-tap="onItemTap_">\n        <tp-yt-paper-item class="style-scope yt-dropdown-menu">\n          <tp-yt-paper-item-body two-line$="[[computeHasSubtitle_(item.subtitle)]]" class="style-scope yt-dropdown-menu">\n            <div id="item-with-badge" class="style-scope yt-dropdown-menu">\n              <div class="item style-scope yt-dropdown-menu">[[item.title]]\n                <span class="notification style-scope yt-dropdown-menu" hidden$="[[!hasNotification(item,notificationData)]]"></span>\n              </div>\n              <ytd-badge-supported-renderer hidden="[[!item.badge]]" top-standalone-badge="[[item.badge]]" class="style-scope yt-dropdown-menu">\n              </ytd-badge-supported-renderer>\n            </div>\n            <div secondary="" id="subtitle" hidden="[[!computeHasSubtitle_(item.subtitle)]]" class="style-scope yt-dropdown-menu">\n              [[item.subtitle]]\n            </div>\n          </tp-yt-paper-item-body>\n          <yt-reload-continuation data="[[item.continuation.reloadContinuationData]]" class="style-scope yt-dropdown-menu">\n          </yt-reload-continuation>\n        </tp-yt-paper-item>\n      </a>\n    </template>\n  </tp-yt-paper-listbox>\n</tp-yt-paper-menu-button>\n');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;Lr_===void 0&&(Lr_=document.createElement("template"));var b=Lr_;m.call(c,b.content.cloneNode(!0),J.content.firstChild);DWz=J}J=DWz;return J},{mode:2});var RC=function(){var J=_.h.apply(this,arguments)||this;J.hasNotification=!1;return J};
_.D(RC,_.h);RC.prototype.computeId=function(J){return J};
RC.prototype.computeHorizontalAlign=function(J){return J?"right":"left"};
RC.prototype.computeAccessibilityLabel=function(J){var c,m;return((c=J.accessibility)==null?void 0:(m=c.accessibilityData)==null?void 0:m.label)||null};
RC.prototype.notificationDataChanged=function(){var J;this.hasNotification=!!this.notificationData&&!((J=this.data)==null?0:J.icon)};
RC.prototype.notificationDataChanged=RC.prototype.notificationDataChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],RC.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.ZO.YtLiveChatTooltipTargetingBehavior),_.R("design:type",Object)],RC.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],RC.prototype,"data",void 0);_.O([_.U({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.R("design:type",String)],RC.prototype,"id",void 0);
_.O([_.U({value:!1}),_.R("design:type",Boolean)],RC.prototype,"isRightAligned",void 0);_.O([_.U({value:!1,reflectToAttribute:!0}),_.R("design:type",Boolean)],RC.prototype,"disabled",void 0);_.O([_.U({value:!1}),_.R("design:type",Boolean)],RC.prototype,"closeOnActivate",void 0);_.O([_.U(),_.R("design:type",Object)],RC.prototype,"notificationData",void 0);_.O([_.U(),_.R("design:type",Object)],RC.prototype,"hasNotification",void 0);
_.O([_.U({value:!1}),_.R("design:type",Boolean)],RC.prototype,"useComputedAriaLabel",void 0);_.O([_.NE("notificationData"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],RC.prototype,"notificationDataChanged",null);RC=_.O([_.uM({is:"yt-sort-filter-sub-menu-renderer",disableElementRegistration:!0})],RC);
_.v(RC,"yt-sort-filter-sub-menu-renderer",function(){if(s0L===void 0){var J=document.createElement("template");_.z(J,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-sort-filter-sub-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_sort_filter_sub_menu_renderer.yt.sort.filter.sub.menu.renderer.css.js--\x3e<tp-yt-paper-tooltip class="style-scope yt-sort-filter-sub-menu-renderer">[[data.tooltip]]</tp-yt-paper-tooltip>\n<yt-dropdown-menu aria-label="[[computeAccessibilityLabel(data)]]" close-on-activate="[[closeOnActivate]]" data="[[data.subMenuItems]]" disabled="[[disabled]]" horizontal-align="[[computeHorizontalAlign(isRightAligned)]]" icon="[[data.icon.iconType]]" icon-label="[[data.title]]" notification-data="[[notificationData]]" parent-tracking-params="[[data.trackingParams]]" use-computed-aria-label="[[useComputedAriaLabel]]" use-label="[[!data.icon.iconType]]" class="style-scope yt-sort-filter-sub-menu-renderer">\n</yt-dropdown-menu>\n<div id="notification" hidden$="[[!hasNotification]]" class="style-scope yt-sort-filter-sub-menu-renderer"></div>');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;r_Q===void 0&&(r_Q=document.createElement("template"));var b=r_Q;m.call(c,b.content.cloneNode(!0),J.content.firstChild);s0L=J}J=s0L;return J},{mode:2});_.J5(quJ);
var Wr$=_.Q1(function(J){var c=J.children;var m=J.className;var b=J.style;var x=J.role;var P=J.ariaSelected;var p=J.ariaLabel;var t=J.ariaHidden;var I=J.ariaLabelledby;var a=J.ariaDescribedby;var k=J.command;var H=J.elementsCommand;var T=J.forceNewState;var r=J.tabIdentifier;var W=J.target;var Y=J.tabIndex;var Z=J.stopPropagation;J=_.n2(function(){var d=_.Uv({innertubeCommand:k==null?void 0:k(),elementsCommand:H==null?void 0:H(),forceNewState:T==null?void 0:T(),stopPropagation:(Z==null?void 0:Z())!==
!1});d||(d={});d["aria-hidden$"]=t==null?void 0:t();var G;d.tabindex$=(G=Y==null?void 0:Y())!=null?G:d.tabindex$;var e;d["force-new-state$"]=(e=T==null?void 0:T())!=null?e:d["force-new-state$"];var A;d.role$=(A=x==null?void 0:x())!=null?A:d.role$;var l;d["aria-hidden$"]=(l=t==null?void 0:t())!=null?l:d["aria-hidden$"];var y;d.target$=(y=W==null?void 0:W())!=null?y:d.target$;return d},void 0,"SU0Mnc");
return _.C(_.cL,{aTagConfig:J,className:m,style:b,ariaLabel:p,ariaLabelledby:I,ariaDescribedby:a,ariaSelected:P,tabIdentifier:r},c)},"la");var za8=_.IO(Une);_.J5(Une);_.lv(za8,"place-data-view-model",{props:{data:_.vt}});var udB=new _.oE("INLINE_PLAYBACK_HOOK_TOKEN");var fmC=function(J){this.setActiveSlideIndex=J;this.jobIds=[];this.isSlideshowPlaying=!1},ZD_=function(J,c){J.isSlideshowPlaying||(J.isSlideshowPlaying=!0,Yyu(J),Xn2(J,c,0))},Yyu=function(J){_.cP(_.ft,function(){J.setActiveSlideIndex(0)},1)},Xn2=function(J,c,m){J.jobIds.push(_.cP(_.ft,function(){var b=m<c-1?m+1:0;
J.setActiveSlideIndex(b);Xn2(J,c,b)},1800))};var qyQ=new _.oE("IMAGE_ON_LOAD_HANDLER_TOKEN");var UW$=_.Q1(function(J){return _.C("animated-thumbnail-overlay-view-model",{class:"ytAnimatedThumbnailOverlayViewModelHost"},_.C(_.n,{cond:function(){var c;return(c=J.data())==null?void 0:c.thumbnail},
then:function(c){return _.C(_.RA,{data:c,alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",hideOn404:!0})}}))},"ma");_.SyL=_.Q1(function(J){var c=J.data;var m=J.lockupExperiments;J={};return _.C("thumbnail-overlay-button-view-model",{class:"ytThumbnailOverlayButtonViewModelHost"},_.C("div",{class:_.pq("ytThumbnailOverlayButtonViewModelButton",(J.ytThumbnailOverlayButtonViewModelButtonLegacyIcon=function(){var b;return m&&((b=m())==null?void 0:b.useLegacySizedIconButton)},J))},_.C(_.wi,{data:function(){return c().overlayButton}},{buttonViewModel:function(b){return _.C(_.XU,{data:b.data,
buttonOverrides:function(){var x;return m&&((x=m())==null?0:x.useLegacySizedIconButton)?{iconPosition:"icon-only-40",customColors:{backgroundColor:"rgba(0,0,0,0.6)"}}:void 0}})}})))},"na");
_.SyL.idomCompat=!0;var haa=_.Q1(function(J){return _.C("yt-thumbnail-hover-overlay-toggle-actions-view-model",{class:"ytThumbnailHoverOverlayToggleActionsViewModelHost","on:click":_.Kq(function(c){c.preventDefault();return!1})},_.C(_.wi,{data:function(){return J.data().buttons}},{toggleButtonViewModel:function(c){return _.C("div",{class:"ytThumbnailHoverOverlayToggleActionsViewModelButton"},_.C(_.LK,{data:c.data}))}}))},"oa");
haa.idomCompat=!0;var dW_=_.Q1(function(J){var c=function(){var m;return((m=_.L(J.data().rendererContext,_.KO))==null?void 0:m.label)||""};
return _.C("yt-thumbnail-overlay-full-view-model",{class:"ytThumbnailOverlayFullViewModelHost"},_.C(_.n,{cond:function(){return J.data().image},
then:function(){return _.C("div",{class:"ytThumbnailOverlayFullViewModelIcon"},_.C(_.RA,{data:function(){return J.data().image},
alt:c}))}}),_.C(_.n,{cond:function(){return J.data().text},
then:function(){return _.C("div",{class:"ytThumbnailOverlayFullViewModelText"},function(){return J.data().text})}}))},"pa");_.oC=_.Q1(function(J){var c=[],m=function(){var T,r;return zd2((T=J.width)==null?void 0:T.call(J),(r=J.height)==null?void 0:r.call(J))},b=_.BG().resolve(_.y6(qyQ)),x=_.oN("yt-thumbnail-view-model",function(){c.push("elRef.value set");
var T;(T=J.playbackRef)==null||T.call(J,{thumbnailElRef:x,thumbnail:J.data().image,thumbnailOverlays:J.data().overlays,thumbnailSize:m()})});
_.uN(function(){c.push("onInit");_.f2(function(){c.push("onCleanup")})});
var P=_.fq(h7t),p=function(){var T,r;return(r=(T=J.aspectRatio)==null?void 0:T.call(J))!=null?r:0},t=function(){return(J.data().image?_.MmR(J.data().image):p())<=1&&p()===0},I=function(){return t()?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL"},a=function(){x.value||_.qz(new _.w3("Thumbnail elRef.value is null",c.join("\n")));
b&&x.value&&b(x.value)},k=function(){var T,r;
return((T=J.hovered)==null?void 0:T.call(J))&&m()!=="large"&&((r=J.data().overlays)==null?void 0:r.some(function(W){return _.L(W,$D_)}))},H={};
return _.C("yt-thumbnail-view-model",{class:_.pq("yt-thumbnail-view-model",J.className,function(){return GpD(p())},function(){var T,r;
a:{var W=m(),Y=(T=J.disableRounding)==null?void 0:T.call(J);T=(r=J.isClip)==null?void 0:r.call(J);if(!Y&&!T)switch(W){case "large":r="yt-thumbnail-view-model--large";break a;case "small":r="yt-thumbnail-view-model--small";break a;default:r="yt-thumbnail-view-model--medium";break a}r=void 0}return r},(H["yt-thumbnail-view-model--cinematic"]=t,H)),
style:_.kx({"background-color":function(){var T,r=t()?(T=J.data().backgroundColor)==null?void 0:T.lightTheme:void 0;return r?UT(r,"1"):void 0}}),
el:x},_.C(_.n,{cond:t,then:function(){return _.C("div",{class:"yt-thumbnail-view-model__blurred-image"},_.C(_.RA,{data:function(){return J.data().image},
alt:"",contentMode:I,targetWidth:J.width,onload:a}))}}),_.C("div",{class:"yt-thumbnail-view-model__image"},_.C(_.RA,{data:function(){return J.data().image},
alt:"",contentMode:I,targetWidth:J.width,onload:a}),null),_.C(_.wi,{data:function(){return k()?void 0:J.data().overlays},
allowIncompleteMapping:!0},{thumbnailOverlayTitleViewModel:Ry8,thumbnailOverlayBadgeViewModel:function(T){return _.C(o4j,{data:T.data,thumbnailSize:m,isClip:J.isClip})},
thumbnailBottomOverlayViewModel:E4z,thumbnailOverlayFullViewModel:dW_,thumbnailOverlayButtonViewModel:function(T){return _.C(_.SyL,{data:T.data,lockupExperiments:J.lockupExperiments})}}),_.C(_.wi,{data:function(){var T;
return((T=J.hovered)==null?0:T.call(J))?J.data().overlays:void 0},
allowIncompleteMapping:!0},{thumbnailHoverOverlayViewModel:function(T){return _.C(r1,{data:T.data,alwaysShow:!0})},
thumbnailHoverOverlayToggleActionsViewModel:haa}),_.C(_.wi,{data:function(){var T;return((T=J.hovered)==null?0:T.call(J))&&P()?J.data().overlays:void 0},
allowIncompleteMapping:!0},{animatedThumbnailOverlayViewModel:UW$}),_.C(_.n,{cond:J.isClip,then:function(){return _.C("div",{class:"yt-pinking"},_.C("svg",{class:"yt-pinking__pinking-left"},_.C("defs",null,_.C("pattern",{id:"left-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.C("polygon",{class:"yt-pinking__pinking",points:"0,0 4,4 0,8"}))),_.C("rect",{fill:"url(#left-pattern)",width:"4",height:"100%"})),_.C("svg",{class:"yt-pinking__pinking-right"},_.C("defs",null,_.C("pattern",{id:"right-pattern",
width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.C("polygon",{class:"yt-pinking__pinking",points:"4,0 0,4 4,8"}))),_.C("rect",{fill:"url(#right-pattern)",width:"4",height:"100%"})))}}))},"qa");
_.oC.idomCompat={callbacks:{playbackRef:!0}};var $W_=_.Q1(function(J){var c=_.M(_.K2(-1,void 0,"IOLZ0b")),m=c.next().value,b=c.next().value;_.uN(function(){var x=new fmC(b);ZD_(x,J.data().thumbnails.length);_.f2(function(){if(x.isSlideshowPlaying){x.isSlideshowPlaying=!1;for(var P=x.jobIds,p=0,t=P.length;p<t;p++)_.ft.cancelJob(P[p]);x.jobIds.length=0}})});
return _.C("yt-collection-thumbnail-slideshow",{class:"yt-collection-thumbnail-slideshow"},_.C(_.wi,{data:function(){return J.data().thumbnails}},{thumbnailViewModel:function(x,P){return _.C("div",{class:function(){var p=!J.data().primaryThumbnail,t=P(),I=m(),a=["yt-collection-thumbnail-slideshow__slideshow-thumbnail"];
p&&t===0&&a.push("yt-collection-thumbnail-slideshow--first-slide");t<=I&&a.push("yt-collection-thumbnail-slideshow--show-slide");return a.join(" ")}},_.C(_.oC,{data:x.data,
disableRounding:J.disableRounding}))}}))},"ra");
$W_.idomCompat=!0;var Eof=new _.oE("DWELL_DETECTOR_REGISTRY_TOKEN");var EX$=_.Q1(function(J){var c=voJ(J.triggeringElement),m=function(){return!!J.data().primaryThumbnail};
return _.C("yt-collection-thumbnail-view-model",{class:"yt-collection-thumbnail-view-model","aria-hidden":"true"},_.C(GuB,{stackEnabled:m,thumbnailSize:function(){var b,x;return zd2((b=J.width)==null?void 0:b.call(J),(x=J.height)==null?void 0:x.call(J))},
doubleStack:J.doubleStack,stackColor:function(){return J.data().stackColor}},_.C("div",null,_.C(_.wi,{data:function(){return J.data().primaryThumbnail}},{thumbnailViewModel:function(b){var x={};
return _.C(_.oC,{data:b.data,width:J.width,height:J.height,aspectRatio:J.aspectRatio,disableRounding:J.disableRounding,className:_.pq((x["yt-collection-thumbnail-view-model--has-stacks"]=m,x)),hovered:J.hovered,playbackRef:J.playbackRef})}}),_.C(_.n,{cond:function(){var b;
return c()&&((b=J.data().thumbnails)==null?void 0:b.length)},
then:function(){return _.C("div",{class:"yt-collection-thumbnail-view-model__slideshow"},_.C($W_,{data:J.data,disableRounding:function(){return!m()}}))}}))))},"sa");
EX$.idomCompat={callbacks:{playbackRef:!0}};
var GuB=_.Q1(function(J){var c=J.children;var m=J.stackEnabled;var b=J.thumbnailSize;var x=J.doubleStack;var P=J.stackColor;var p,t=(p=_.BG().resolve(_.y6(_.Ev)))==null?void 0:p();return _.C(_.n,{cond:m,then:function(){return _.C(kQa,{data:function(){var I,a;return{experimentEnabled:!0,thumbnailSize:b(),doubleStack:x==null?void 0:x(),color:t?P==null?void 0:(I=P())==null?void 0:I.darkTheme:P==null?void 0:(a=P())==null?void 0:a.lightTheme,enableResponsiveMode:!1}}},c)},
else:function(){return c}})},"ta");var vXQ=new _.oE("EXPANDABLE_METADATA_VIEW_MODEL_TOKEN");var e7;_.QC={calledOnce:!0,state:"visible"};e7={calledOnce:!0,state:"hidden"};_.j7=_.Q1(function(J){var c=J.data;var m=J.customCommandResolver;var b=J.className;var x=J.delayedClassName;J=J.animationEntityKey;var P=_.oN("ad-button-view-model"),p=_.Ru(J,""),t=_.tT(D4q,p),I=function(){var y,pG;return(pG=(y=t())==null?void 0:y.value)!=null?pG:!1},a=function(){_.AO(_.It("booleanEntity",p(),{key:p(),
value:!0}));d=void 0};
J=_.M(_.aO(I));var k=J.next().value,H=J.next().value;J=_.M(_.aO(I));var T=J.next().value,r=J.next().value;J=_.M(_.aO(function(){var y;return I()?(y=c().styleTransitionConfig)==null?void 0:y.destinationStyle:void 0}));
var W=J.next().value,Y=J.next().value,Z=function(){var y=Object.assign({},c(),W()&&{style:W()}),pG,kt,nG=y.label,fG=(pG=y.interaction)==null?void 0:(kt=pG.accessibility)==null?void 0:kt.label;pG=y.iconImage?y.label&&y.label.content?y.iconLeading?"leading":"trailing":"icon-only":void 0;return{formattedButtonText:nG,accessibilityLabel:fG,style:ooQ(y.style),type:Qit(y.style),state:"active",size:R72(y.size),iconPosition:pG,disabled:!1,aTagConfig:Azo(y,m)}},d;
_.gv(P,{visibilityCallback:function(y){var pG,kt=(pG=c().interaction)==null?void 0:pG.onFirstVisible;y&&kt&&_.hd(kt)},
showOption:_.QC});var G=function(){return iB(Z(),!!c().iconImage)};
b=_.pq(function(){return"ytwAdButtonViewModelHost"},function(){return c().delayedAppearanceConfig?"ytwAdButtonViewModelHostHasAnimation":""},function(){var y=!!c().delayedAppearanceConfig,pG=k();
return y?pG?"ytwAdButtonViewModelFullHeight":"ytwAdButtonViewModelNoHeight":""},function(){var y=!!c().delayedAppearanceConfig,pG=T();
return y?pG?"ytwAdButtonViewModelShow":"ytwAdButtonViewModelHide":""},function(){return!c().delayedAppearanceConfig||k()?x==null?void 0:x():""},b!=null?b:"");
var e=function(){var y,pG=(y=c().delayedAppearanceConfig)==null?void 0:y.delayedInvisibleSeconds;pG&&(d=_.at(_.ft,function(){H(!0);A()},pG*1E3))},A=function(){var y,pG=(y=c().delayedAppearanceConfig)==null?void 0:y.delayedVisibleSeconds;
pG&&(d=_.at(_.ft,function(){r(!0);l()},pG*1E3))},l=function(){var y,pG=(y=c().styleTransitionConfig)==null?void 0:y.styleTransitionSeconds,kt,nG=(kt=c().styleTransitionConfig)==null?void 0:kt.destinationStyle;
pG&&nG?d=_.at(_.ft,function(){Y(nG);a()},pG*1E3):a()};
_.uN(function(){var y;((y=c().delayedAppearanceConfig)==null?0:y.transitionDurationSeconds)&&P.value.style.setProperty("transition-duration",c().delayedAppearanceConfig.transitionDurationSeconds+"s");e()});
_.f2(function(){d&&_.ft.cancelJob(d)});
return _.C("ad-button-view-model",{class:b,el:P},_.C(_.n,{cond:Z,then:function(){return _.C(l$,{data:Z,icon:function(){return _.C(_.n,{cond:function(){return c().iconImage},
then:function(y){return _.C(_.RA,{data:y,alt:"",targetWidth:G,targetHeight:G,preserveWidth:!0,preserveHeight:!0})}})}})}}))},"ua");var ODC=_.Q1(function(J){var c=J.data;J=_.oN("ad-button-group-view-model");_.gv(J,{visibilityCallback:function(b){var x,P=(x=c().interaction)==null?void 0:x.onFirstVisible;b&&P&&_.hd(P)},
showOption:_.QC});var m={};return _.C("ad-button-group-view-model",{class:_.pq("ytwAdButtonGroupViewModelHost",(m.ytwAdButtonGroupViewModelHostCompactWidth=function(){return c().style==="AD_BUTTON_GROUP_STYLE_COMPACT_WIDTH"},m)),
el:J},_.C("div",{class:"ytwAdButtonGroupViewModelHostSecondaryButton"},_.C(_.wi,{data:function(){return c().secondaryAdButton}},{adButtonViewModel:function(b){return _.C(_.j7,{data:b.data})}})),_.C("div",{class:"ytwAdButtonGroupViewModelHostPrimaryButton"},_.C(_.wi,{data:function(){return c().primaryAdButton}},{adButtonViewModel:function(b){return _.C(_.j7,{data:b.data})}})))},"va");var A_L=_.Q1(function(J){var c=function(){var m;return((m=J.data())==null?void 0:m.answers)||[]};
return _.C("yt-survey-icons",{class:"ytSurveyIconsHost"},_.C("div",{class:"ytSurveyIconsHeader"},_.C("div",{class:"ytSurveyIconsTitle"},function(){var m;return(m=J.data())==null?void 0:m.text}),_.C("div",null,_.C(l$,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){var m;(m=J.onDismiss)==null||m.call(J)}}},
iconName:"DISMISSAL"}))),_.C("div",null,_.C("div",{class:"ytSurveyIconsAnswers"},_.C(_.Te,{each:function(){return c()},
keyBy:"INDEX"},function(m,b){return _.C("div",null,_.C(l$,{data:function(){return{style:"mono",type:"text",state:"active",size:"XL",iconPosition:"icon-only",onTap:function(){var x;(x=J.onSelect)==null||x.call(J,m(),b)}}},
icon:function(){return _.C(_.HP,{icon:function(){var x,P;return(x=m())==null?void 0:(P=x.icon)==null?void 0:P.iconType},
className:"ytSurveyIconsIcon"})}}))})),_.C("div",{class:"ytSurveyIconsAnswersText"},_.C("div",null,function(){return c().length?c()[0].text:""}),_.C("div",null,function(){return c().length?c()[c().length-1].text:""}))))},"wa");var Raj=_.Q1(function(J){var c=_.M(_.K2(!1,void 0,"s8HkOb")),m=c.next().value,b=c.next().value,x=_.tT(Wre,function(){var t;return(t=J.data().keys)==null?void 0:t.surveyEntityKey}),P=_.tT(zaq,function(){var t;
return(t=J.data().keys)==null?void 0:t.surveyStateEntityKey});
_.RN("ytd-slimline-survey-show-action",function(){b(!1)});
var p=function(){var t,I;var a=(t=P())==null?void 0:(I=t.questionStack)==null?void 0:I[0];if(a!==void 0){var k,H;return(k=x())==null?void 0:(H=k.questions)==null?void 0:H[a]}};
c={};return _.C("yt-slimline-survey-view-model",{class:_.pq("ytSlimlineSurveyViewModelHost",(c.ytSlimlineSurveyViewModelCollapsed=function(){return m()},c))},_.C("div",{class:"ytSlimlineSurveyViewModelContainer"},_.C(_.n,{cond:function(){var t;
return((t=p())==null?void 0:t.layout)==="SURVEY_LAYOUT_TYPE_ICONS"},
then:function(){return _.C(A_L,{data:function(){return p()},
onSelect:function(t,I){var a,k;return _.N(function(H){b(!0);if(k=(a=J.data())==null?void 0:a.onSelectRating)_.hd(k),_.AO(MOu(I));_.tD(H)})},
onDismiss:function(){b(!0)}})}})))},"xa");var oX$=_.Q1(function(J){return _.C("lockup-attachments-view-model",{class:"ytLockupAttachmentsViewModelHost"},_.C(_.wi,{data:function(){var c;return(c=J.data())==null?void 0:c.attachments}},{flexibleActionsViewModel:function(c){return _.C("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.C(YLQ,{data:c.data,
layout:function(){var m;return((m=J.lockupStyle())==null?void 0:m.arrangement)===1?0:1},
justifyContentOverride:function(){var m;return((m=J.lockupStyle())==null?void 0:m.arrangement)===1?"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_START":"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_EVENLY"}}))},
slimlineSurveyViewModel:function(c){return _.C("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.C(Raj,{data:c.data}))},
expandableMetadataViewModel:function(c){c=c.data;var m;return _.C("div",{class:"ytLockupAttachmentsViewModelAttachment"},(m=_.BG().resolve(_.y6(vXQ)))==null?void 0:m({data:c}))},
adButtonGroupViewModel:function(c){return _.C("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.C(ODC,{data:c.data}))}}))},"ya");var BgT=_.c7("rich_grid_min_item_width",310),lgD=_.c7("rich_grid_max_item_width",500);var tWm=_.Q1(function(J){var c=J.data;return _.C("br-nz-badge-shape",{class:_.pq(function(){return Pb2(c().brNzRatingBadgeType)}),
role:function(){return c().accessibilityText?"img":void 0},
"aria-label":function(){return c().accessibilityText}},function(){var m;
return(m=c())==null?void 0:m.text})},"za");_.J5(IMt);var Q0j,ea6;Q0j=_.Q1(function(J){var c=function(){var m=J.data(),b,x;return m?N$m(m,!((b=J.workaroundShortsIsThumbnailBadge)==null||!b.call(J)),(x=J.modern)==null?void 0:x.call(J)):void 0};
return _.C("yt-badge-view-model",{class:_.pq("yt-badge-view-model-wiz",J.class)},_.C(_.sb,null,_.C(_.wu,{when:function(){var m;return!((m=c())==null||!m.brNzRatingBadgeType)}},function(){return _.C(tWm,{data:function(){return c()}})}),_.C(_.wu,{when:function(){return!!c()&&!c().brNzRatingBadgeType}},function(){return _.C(_.QG,{data:function(){return c()}})})))},"Aa");
ea6=_.w("web_enable_sink_yt_badge_view_model")?Q0j:IMt;_.Fo=_.w("web_enable_sink_yt_badge_view_model")?Q0j:_.IO(IMt);Q0j.idomCompat=!0;var CbG,KZm;CbG=16/9;KZm=2/3;_.lF=_.Q1(function(J){var c=J.data;var m=J.className;var b=J.imageSizeConfig;var x=J.notifyOnLoaded;J=_.oN("yt-content-preview-image-view-model");var P=function(){return c().style||"CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},p=function(){var r;
return _.Ec((r=c())==null?void 0:r.rendererContext)},t={};
t=(t["yt-content-preview-image-view-model-wiz"]=!0,t["yt-content-preview-image-view-model-wiz--circle-image"]=function(){return P()==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},t["yt-content-preview-image-view-model-wiz--tappable"]=function(){return p()},t);
var I=function(){var r,W;return(W=(r=_.L(c().rendererContext,_.KO))==null?void 0:r.label)!=null?W:""},a=function(){return kqu(c())},k=function(){var r=aM2(P(),c().layoutMode||"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_UNKNOWN",b==null?void 0:b(),HLm(a()),c().layoutWidth,c().layoutHeight),W=Object.assign({},r);
r.width&&(W.width=Math.round(r.width));r.height&&(W.height=Math.round(r.height));r.maxWidth&&(W.maxWidth=Math.round(r.maxWidth));r.maxHeight&&(W.maxHeight=Math.round(r.maxHeight));return W},H=_.n2(function(){return k().height},void 0,"QOtei"),T=_.n2(function(){return k().width},void 0,"rKpuNc");
_.vg(J,function(){var r;return(r=c())==null?void 0:r.rendererContext});
return _.C("yt-content-preview-image-view-model",{el:J,role:function(){return p()?"link":void 0},
tabindex:function(){return p()?0:void 0},
class:_.pq(m,t,function(){var r=P();var W=b==null?void 0:b();r=r==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||r==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||r==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||r==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"?(W==null?void 0:W.size)!=null&&W.size<=16?"yt-content-preview-image-view-model-wiz--extra-small-rounded-image":(W==null?void 0:W.size)!=null&&W.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 r}),
style:function(){var r=k(),W=[];r.width&&W.push("width: "+r.width+"px");r.height&&W.push("height: "+r.height+"px");r.maxWidth&&W.push("max-width: "+r.maxWidth+"px");r.maxHeight&&W.push("max-height: "+r.maxHeight+"px");r.fullWidth&&W.push("width: 100%");return W.join(";")}},_.C(_.n,{cond:a,
then:function(r){return _.C(_.RA,{data:r,alt:I,"data-disabled$":function(){return!I()},
notifyOnLoaded:x,targetWidth:T,targetHeight:H,preserveWidth:function(){return!!T()},
preserveHeight:function(){return!!H()}})}}),_.C(_.wi,{data:function(){var r;
return(r=c())==null?void 0:r.overlays}},{thumbnailHoverOverlayViewModel:r1,
thumbnailOverlayButtonViewModel:_.SyL}))},"Ba");
_.lF.idomCompat=!0;var Fr_=_.Q1(function(J){var c=J.data;var m=J.className;var b=J.useSmallLayout;var x=J.useMediumText;J=_.oN("yt-attribution-view-model");var P={};x=(P["yt-attribution-view-model-wiz"]=!0,P["yt-attribution-view-model-wiz--medium-text"]=x,P);_.vg(J,function(){var p;return(p=c())==null?void 0:p.rendererContext});
return _.C("yt-attribution-view-model",{el:J,class:_.pq(m,x)},_.C(_.n,{cond:function(){return _.Ec(c().rendererContext)},
then:function(){return _.C("button",{class:"yt-attribution-view-model-wiz--tappable"},_.C(j0C,{data:c,useSmallLayout:b}))},
else:function(){return _.C(j0C,{data:c,useSmallLayout:b})}}))},"Ca"),j0C=_.Q1(function(J){var c=J.data;
var m=J.useSmallLayout;var b=function(){return{size:(m==null?0:m())?16:24}};
return _.C(_.cG,null,_.C(_.wi,{data:function(){return c().contentPreviewImage}},{contentPreviewImageViewModel:function(x){return _.C(_.lF,{data:x.data,
className:"yt-attribution-view-model-wiz__attribution-image",imageSizeConfig:b})}}),_.C(_.wi,{data:function(){return c().badge}},{badgeViewModel:function(x){return _.C(_.Fo,{data:x.data,
class:"yt-attribution-view-model-wiz__badge",modern:!0})}}),_.C(_.n,{cond:function(){return c().text},
then:function(){return _.C(_.j8,{text:function(){return c().text},
noWrap:!0,linkInheritColor:!0,className:"yt-attribution-view-model-wiz__attribution-text"})}}),_.C(_.n,{cond:function(){return c().suffix},
then:function(){return _.C(_.j8,{text:function(){return c().suffix},
linkInheritColor:!0,className:"yt-attribution-view-model-wiz__suffix"})}}))},"Da");
Fr_.idomCompat=!0;var LZD=_.Hg({avatarStackViewModel:_.DN,badgeViewModel:ea6});_.J5(zTJ);var lm6,y_L,Bka,gX6,Jz2,czC;lm6=_.Q1(function(J){var c=J.delimiter;var m=J.max;var b=J.index;var x=J.isStandalone;return _.C(_.n,{cond:function(){return m()-1>b()},
then:function(){var P={};return _.C("span",{class:_.pq("yt-content-metadata-view-model-wiz__delimiter",(P["yt-content-metadata-view-model-wiz__delimiter--standalone"]=x,P)),"aria-hidden":!0},c)}})},"Ea");
y_L=_.Q1(function(J){var c=J.metadataPart;var m=J.maxLines;return _.C(_.j8,{text:function(){return c().text},
linkInheritColor:!0,className:function(){return uJT(m())},
userInput:!0})},"Fa");
Bka=_.Q1(function(J){var c=J.metadataPart;var m=J.maxLines;return _.C(_.n,{cond:function(){return c().tooltip},
then:function(b){return _.C("span",{title:b,role:"tooltip"},_.C(y_L,{metadataPart:c,maxLines:m}))},
else:function(){return _.C(y_L,{metadataPart:c,maxLines:m})}})},"Ga");
gX6=_.Q1(function(J){var c=J.metadataPart;var m=J.isOverlay;var b=J.useMediumText;var x=J.hideAvatar;var P=function(){return c().maxLines!==void 0?c().maxLines:1};
return _.C(_.cG,null,_.C(_.wi,{data:function(){return c().avatarStack}},{avatarStackViewModel:function(p){return _.C(_.DN,{data:p.data,
isOverlay:m,useMediumText:b,hideAvatar:x})},
badgeViewModel:_.Fo}),_.C(_.n,{cond:function(){return c().text},
then:function(){return _.C(Bka,{metadataPart:c,maxLines:P})}}))},"Ha");
Jz2=_.Q1(function(J){var c=J.metadataRow;var m=J.isInline;var b=J.delimiter;var x=J.isOverlay;var P=J.useMediumText;var p=J.extensions;var t=function(){var a;return nDJ(p==null?void 0:(a=p())==null?void 0:a.lockupMetadata,c())},I=function(){return c().metadataParts||[]};
J={};return _.C("div",{class:_.pq("yt-content-metadata-view-model-wiz__metadata-row",(J["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-inline"]=m,J["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-padding"]=function(){var a;return T$D(p==null?void 0:(a=p())==null?void 0:a.lockupMetadata,c())},J["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-wrap"]=function(){var a;
return!!(p==null?0:(a=p())==null?0:a.lockupMetadata)&&c().badges&&!c().metadataParts},J))},_.C(_.wi,{data:function(){return c().badges}},{badgeViewModel:function(a){return _.C("div",{class:"yt-content-metadata-view-model-wiz__badge"},_.C(_.Fo,{data:a.data}))}}),_.C(_.Te,{each:I},function(a,k){return _.C(_.cG,null,_.C(gX6,{metadataPart:a,
isOverlay:x,useMediumText:P,hideAvatar:t}),_.C(lm6,{delimiter:b,max:function(){return I().length},
index:k,isStandalone:!1}))}),_.C(_.n,{cond:function(){return c().isSpacerRow&&!m()},
then:function(){return _.C("div",{class:"yt-content-metadata-view-model-wiz__spacer"})}}))},"Ia");
czC=_.Q1(function(J){var c=_.ou(J,{layout:0,isOverlay:!1});J=c.className;var m=c.data,b=c.layout,x=c.isOverlay,P=c.useMediumText,p=c.extensions;c=_.oN("yt-content-metadata-view-model");var t=function(){return b()===0};
_.vg(c,function(){return m().rendererContext});
var I=function(){return m().metadataRows||[]},a={};
return _.C("yt-content-metadata-view-model",{class:_.pq(J,"yt-content-metadata-view-model-wiz",(a["yt-content-metadata-view-model-wiz--inline"]=t,a["yt-content-metadata-view-model-wiz--tappable"]=function(){return _.Ec(m().rendererContext)},a["yt-content-metadata-view-model-wiz--medium-text"]=P,a)),
el:c},_.C(_.Te,{each:I},function(k,H){return _.C(_.cG,null,_.C(Jz2,{metadataRow:k,isInline:t,delimiter:function(){return m().delimiter},
isOverlay:x,useMediumText:P,extensions:p}),_.C(_.n,{cond:function(){return t()&&!k.isSpacerRow},
then:function(){return _.C(lm6,{delimiter:function(){return m().delimiter},
max:function(){return I().length},
index:H,isStandalone:!0})}}))}))},"Ja");
_.mn$=_.w("web_enable_sink_yt_content_metadata_view_model")?czC:_.IO(zTJ);czC.idomCompat=!0;var bWB=_.Q1(function(J){var c={};return _.C("yt-lockup-metadata-view-model",{class:_.pq("yt-lockup-metadata-view-model-wiz",function(){a:{var m=J.lockupStyle();if(m==null?0:m.isOverlay)m="yt-lockup-metadata-view-model-wiz--overlay";else switch(m==null?void 0:m.arrangement){case 1:m="yt-lockup-metadata-view-model-wiz--horizontal";break a;default:m="yt-lockup-metadata-view-model-wiz--vertical"}}return m},function(){a:{var m=J.lockupStyle();
if(m==null?0:m.isTiny)m="yt-lockup-metadata-view-model-wiz--tiny";else switch(m==null?void 0:m.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":m="yt-lockup-metadata-view-model-wiz--compact";break a;default:m="yt-lockup-metadata-view-model-wiz--standard"}}return m},(c["yt-lockup-metadata-view-model-wiz--overlay"]=function(){var m;
return(m=J.lockupStyle())==null?void 0:m.isOverlay},c["yt-lockup-metadata-view-model-wiz--card"]=function(){var m;
return(m=J.lockupStyle())==null?void 0:m.isCard},c["yt-lockup-metadata-view-model-wiz--centered"]=function(){var m;
return(m=J.lockupStyle())==null?void 0:m.isCentered},c["yt-lockup-metadata-view-model-wiz--typography-bump"]=function(){var m;
return(m=J.lockupStyle())==null?void 0:m.typographyBump},c["yt-lockup-metadata-view-model-wiz--legacy-typography"]=function(){var m;
return(m=J.lockupStyle())==null?void 0:m.useLegacyTypography},c["yt-lockup-metadata-view-model-wiz--rich-grid-legacy-typography"]=function(){var m;
return(m=J.lockupStyle())==null?void 0:m.useRichGridLegacyTypography},c))},_.C(_.wi,{data:function(){return J.data().image}},{avatarStackViewModel:function(m){return _.C("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.C(_.DN,{data:m.data,
overrides:{layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"}}))},
avatarViewModel:function(m){return _.C("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.C(_.s8,{data:m.data}))},
decoratedAvatarViewModel:function(m){return _.C("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.C(_.Li,{data:m.data}))}}),_.C("div",{class:"yt-lockup-metadata-view-model-wiz__text-container"},_.C("h3",{class:"yt-lockup-metadata-view-model-wiz__heading-reset",
title:function(){var m;return(m=J.data().title)==null?void 0:m.content}},_.C(_.n,{cond:function(){return J.data().title},
then:function(m){return _.C(_.cL,{command:J.lockupCommand,className:"yt-lockup-metadata-view-model-wiz__title",ariaLabel:J.lockupAccessibilityLabel},_.C(_.j8,{text:m}))}})),_.C("div",{class:"yt-lockup-metadata-view-model-wiz__metadata"},_.C(_.wi,{data:function(){return J.data().metadata}},{contentMetadataViewModel:function(m){return _.C(_.mn$,{data:m.data,
layout:1,useMediumText:function(){var b,x;return((b=J.lockupStyle())==null?void 0:b.typographyBump)||((x=J.lockupStyle())==null?void 0:x.useRichGridLegacyTypography)},
extensions:function(){var b,x;return{lockupMetadata:{byline:{hideAvatar:((b=J.lockupStyle())==null?void 0:b.arrangement)===0,addPadding:((x=J.lockupStyle())==null?void 0:x.arrangement)===1}}}}})}})),_.C(_.wi,{data:function(){return J.data().attribution}},{attributionViewModel:function(m){return _.C("div",{class:"yt-lockup-metadata-view-model-wiz__attribution"},_.C(Fr_,{data:m.data,
useSmallLayout:!0}))}})),_.C("div",{class:"yt-lockup-metadata-view-model-wiz__menu-button"},_.C(_.wi,{data:function(){return J.data().menuButton}},{buttonViewModel:function(m){return _.C(_.XU,{data:m.data,
buttonOverrides:function(){var b;return((b=J.lockupStyle())==null?0:b.isOverlay)?{style:"overlay"}:void 0}})}})))},"Ka");
bWB.idomCompat=!0;var xnQ=_.Q1(function(J){var c=_.oN("notification-multi-action-renderer");_.WG(function(){requestAnimationFrame(function(){_.jf(c.value)})});
var m={},b={},x={};return _.C("notification-multi-action-renderer",{class:_.pq("ytNotificationMultiActionRendererHost",(m.ytNotificationMultiActionRendererHostLegacyShelfStyle=function(){var P;return(P=J.useLegacyShelfStyle)==null?void 0:P.call(J)},m)),
el:c},_.C("span",{"aria-live":"polite",class:_.pq("ytNotificationMultiActionRendererTextContainer",(b.ytNotificationMultiActionRendererTextContainerLegacyShelfStyle=function(){var P;return(P=J.useLegacyShelfStyle)==null?void 0:P.call(J)},b))},_.C(_.j8,{text:function(){return J.data().responseText}})),_.C("div",{class:_.pq("ytNotificationMultiActionRendererButtonContainer",(x.ytNotificationMultiActionRendererButtonContainerLegacyShelfStyle=function(){var P;
return(P=J.useLegacyShelfStyle)==null?void 0:P.call(J)},x))},_.C(_.wi,{data:function(){var P;
return(P=J.data().buttons)==null?void 0:P.map(function(p){if(p=p.buttonRenderer){var t,I=Object,a=I.assign,k=(t=p.icon)==null?void 0:t.iconType;t=(t=p.command||p.serviceEndpoint||p.navigationEndpoint)?{innertubeCommand:t}:void 0;p={buttonViewModel:a.call(I,{},{iconName:k,onTap:t,trackingParams:p.trackingParams,titleFormatted:p.text?_.uv(p.text):void 0},fM3(p))}}else p=void 0;return p}).filter(function(p){return!!p})}},{buttonViewModel:function(P,p){return _.C("div",null,_.C(_.XU,{data:P.data,
className:"ytNotificationMultiActionRendererButton",buttonOverrides:function(){var t;return((t=J.useModernStyles)==null?0:t.call(J))?{type:p()?"filled":"tonal",style:"mono"}:void 0}}))}})))},"La");var Viz=_.Q1(function(J){var c=_.oN("notification-text-renderer");_.WG(function(){requestAnimationFrame(function(){_.jf(c.value)})});
return _.C("notification-text-renderer",{el:c,class:"ytNotificationTextRendererHost","aria-live":"polite"},_.C(_.j8,{text:function(){return J.data().successResponseText}}))},"Ma");_.PfZ=_.Q1(function(J){var c=_.tT(LIR,function(){var b;return Y3R((b=J.contentId)==null?void 0:b.call(J))}),m=function(){var b;
return _.L((b=c())==null?void 0:b.command,_.ay)};
return _.C(_.n,{cond:function(){var b;if(!(b=m())){var x;b=_.L((x=c())==null?void 0:x.command,OyB)}return b},
then:function(){return _.C(_.n,{cond:m,then:function(){var b={};return _.C("div",{class:_.pq("ytDismissibleItemReplacedContent",function(){var x;return X6u((x=J.aspectRatio)==null?void 0:x.call(J))})},_.C("div",{class:_.pq((b.ytDismissibleItemAspectRatioContainer=function(){var x;
return((x=J.aspectRatio)==null?void 0:x.call(J))!==void 0},b))},_.C(_.wi,{data:function(){var x;
return(x=m())==null?void 0:x.item}},{notificationMultiActionRenderer:function(x){return _.C(xnQ,{data:x.data,
useModernStyles:J.useModernStyle,useLegacyShelfStyle:J.useLegacyShelfStyle})},
notificationTextRenderer:Viz})))}})},
else:J.children})},"Na");_.Miu=_.Q1(function(J){var c=J.data;var m=J.customCommandResolver;J=_.Q5("ad-avatar-view-model");var b=function(){var P;return((P=c().interaction)==null?0:P.onTap)?function(p){var t;OWG(p,(t=c().interaction)==null?void 0:t.onTap,m)}:void 0},x=function(){var P,p=c(),t=b(),I=(P=_.L(c().rendererContext,_.KO))==null?void 0:P.label;
a:switch(p.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":P=1;break a;default:P=0}return{size:Uqq(p.size),type:P,onTap:t,accessibilityText:I}};
_.gv(J,{visibilityCallback:function(P){var p,t=(p=c().interaction)==null?void 0:p.onFirstVisible;P&&t&&_.hd(t)},
showOption:_.QC});return _.C("ad-avatar-view-model",{class:function(){var P;return((P=c().interaction)==null?0:P.onTap)?"ytwAdAvatarViewModelHostIsClickableAdComponent":"ytwAdAvatarViewModelHost"},
el:J},_.C(_.n,{cond:function(){return c().image},
then:function(P){return _.C(AhQ,{data:x,image:P})}}))},"Oa");_.yC=_.Q1(function(J){J=_.ou(J,{hasDot:!1});var c=Object.assign({},J),m=J.data,b=J.hasDot;J=J.customCommandResolver;var x=(delete c.data,delete c.hasDot,delete c.customCommandResolver,c);c=function(){return m().style};
c!==void 0&&c!==null||_.Ge(Error("Bh"));c=_.oN("ad-badge-view-model");_.Rt(c,function(){return m().interaction},J);
return _.C("ad-badge-view-model",{class:_.pq(function(){var P;return((P=m().interaction)==null?0:P.onTap)?"ytwAdBadgeViewModelHostIsClickableAdComponent":"ytwAdBadgeViewModelHost"},function(){var P=x.adRenderingContextType();
m();return P==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdBadgeViewModelHostStyleStandardBrowse":"ytwAdBadgeViewModelHostStyleStandard"}),
el:c},_.C(_.QG,{data:function(){var P;m();return{type:2,text:(P=m().label)==null?void 0:P.content,adsIncludeDot:b(),isOverlay:m().style==="AD_BADGE_STYLE_STARK_OVERLAY"}}}))},"Pa");var pCz;_.BW=_.Q1(function(J){var c=J.data;var m=J.customCommandResolver;var b=J.adRenderingContextType;J=_.oN("ad-details-line-view-model");_.Rt(J,function(){return c().interaction},m);
_.gv(J,{visibilityCallback:function(x){var P,p=(P=c().interaction)==null?void 0:P.onFirstVisible;x&&p&&_.hd(p)},
showOption:_.QC});return _.C("ad-details-line-view-model",{class:function(){var x;return((x=c().interaction)==null?0:x.onTap)?"ytwAdDetailsLineViewModelHostIsClickableAdComponent":"ytwAdDetailsLineViewModelHost"},
el:J},_.C(_.n,{cond:function(){return c().style},
then:function(x){return _.C(_.Te,{each:function(){var P;return((P=c())==null?void 0:P.attributes)||[]},
keyBy:"INDEX"},function(P){return _.C(pCz,{attribute:P,style:x,adRenderingContextType:function(){return b()}})})}}))},"Qa");
pCz=_.Q1(function(J){var c=J.attribute;var m=J.style;var b=J.adRenderingContextType;return _.C(_.n,{cond:function(){return c().text},
then:function(x){return _.C(_.j8,{text:x,className:function(){var P=b();m();return P==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdDetailsLineViewModelHostTextStyleStandardBrowse":"ytwAdDetailsLineViewModelHostTextStyleStandard"}})}})},"Ra");var Nga=_.Q1(function(J){var c=J.data;var m=J.typographyBump;var b=function(){return c().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_SEARCH"};
J={};return _.C(_.cG,null,_.C("div",{class:"ytwFeedAdMetadataViewModelHostMetadata"},_.C(_.j8,{text:function(){return c().headline},
className:_.pq("ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadline",(J.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineSearch=function(){return b==null?void 0:b()},J.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineTypographyBump=function(){return(m==null?void 0:m())&&!(b==null?0:b())},J)),
linkInheritColor:!0}),_.C(_.n,{cond:function(){return c().description},
then:function(x){var P={};return _.C(_.j8,{text:x,className:_.pq("ytwFeedAdMetadataViewModelHostTextsStyleCompactDescription",(P.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionSearch=function(){return b==null?void 0:b()},P.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionTypographyBump=function(){return(m==null?void 0:m())&&!(b==null?0:b())},P)),
linkInheritColor:!0})}}),_.C(_.n,{cond:function(){return c().secondaryDescription},
then:function(x){var P={};return _.C(_.j8,{text:x,className:_.pq("ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescription",(P.ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescriptionTypographyBump=function(){return m==null?void 0:m()},P)),
linkInheritColor:!0})}}),_.C("div",{class:function(){return b()?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleCompactSearch":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainer"}},_.C(_.n,{cond:function(){return c().adAvatar},
then:function(){return _.C("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleCompact"},_.C(_.wi,{data:function(){return c().adAvatar}},{adAvatarViewModel:_.Miu}))}}),_.C(_.wi,{data:function(){return c().adBadge}},{adBadgeViewModel:function(x){return _.C(_.yC,{data:x.data,
hasDot:function(){return!!c().adDetailsLine},
adRenderingContextType:function(){return c().adRenderingContextType}})}}),_.C(_.wi,{data:function(){return c().adDetailsLine}},{adDetailsLineViewModel:function(x){return _.C(_.BW,{data:x.data,
adRenderingContextType:function(){return c().adRenderingContextType}})}}))),_.C("div",{class:function(){return b()?"ytwFeedAdMetadataViewModelHostMenuSearch":"ytwFeedAdMetadataViewModelHostMenu"}},_.C(_.wi,{data:function(){return c().menu}},{buttonViewModel:function(x){return _.C(_.XU,{data:x.data,
buttonOverrides:function(){a:switch(c().adRenderingContextType){case "AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT":var P="S";break a;default:P="M"}return{size:P}}})}})))},"Sa"),tij=_.Q1(function(J){var c=J.data;
var m=J.noBottomMargin;var b=J.useVideoLockupTopPadding;var x=J.typographyBump;J={};J=_.pq("ytwFeedAdMetadataViewModelHostMetadata",(J.ytwFeedAdMetadataViewModelHostMetadataNoBottomMargin=function(){return m==null?void 0:m()},J.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return b==null?void 0:b()},J));
var P=function(){return c().adBadge};
P!==void 0&&P!==null||_.Ge(Error("Ch"));P={};var p={};return _.C(_.cG,null,_.C(_.n,{cond:function(){return c().adAvatar},
then:function(){return _.C("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleStandard"},_.C(_.wi,{data:function(){return c().adAvatar}},{adAvatarViewModel:function(t){return _.C(_.Miu,{data:t.data})}}))}}),_.C("div",{class:J},_.C("div",{class:_.pq("ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadline",(P.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBump=function(){return x==null?void 0:x()},P.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBumpV2=function(){return(x==
null?void 0:x())&&_.w("web_enable_typography_bump_v2")},P))},_.C(_.j8,{text:function(){return c().headline},
linkInheritColor:!0})),_.C(_.n,{cond:function(){return c().description},
then:function(t){return _.C(_.j8,{text:t,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardDescription",linkInheritColor:!0})}}),_.C("div",{class:function(){return c().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_BROWSE"&&_.w("enable_top_landscape_image_components_legacy_ui_web")?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandardLegacy":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandard"}},_.C(_.wi,{data:function(){return c().adBadge}},
{adBadgeViewModel:function(t){return _.C(_.yC,{data:t.data,
hasDot:function(){return!!c().adDetailsLine},
adRenderingContextType:function(){return c().adRenderingContextType}})}}),_.C(_.wi,{data:function(){return c().adDetailsLine}},{adDetailsLineViewModel:function(t){return _.C(_.BW,{data:t.data,
adRenderingContextType:function(){return c().adRenderingContextType}})}})),_.C(_.n,{cond:function(){return c().secondaryDescription},
then:function(t){return _.C(_.j8,{text:t,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardSecondaryDescription",linkInheritColor:!0})}})),_.C("div",{class:_.pq("ytwFeedAdMetadataViewModelHostMenuStyleStandard",(p.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return b==null?void 0:b()},p))},_.C(_.wi,{data:function(){return c().menu}},{buttonViewModel:_.XU})))},"Ta"),Ig_=_.Q1(function(J){var c=J.data;
var m=J.noBottomMargin;var b=J.listenToTapEvent;var x=J.setTouchEndHandler;var P=J.useVideoLockupTopPadding;var p=J.typographyBump;var t=_.oN("feed-ad-metadata-view-model");_.Rt(t,function(){return c().interaction},void 0,function(){return b==null?void 0:b()});
J=_.M(_.K2(!1,void 0,"qjt0Xc"));var I=J.next().value,a=J.next().value;J=_.Kq(function(){(x==null?0:x())&&!I()&&(t.value.click(),a(!0),setTimeout(function(){a(!1)},100));
return!1});
_.gv(t,{visibilityCallback:function(k){var H,T=(H=c().interaction)==null?void 0:H.onFirstVisible;k&&T&&_.hd(T)},
showOption:_.QC});return _.C("feed-ad-metadata-view-model",{class:function(){var k;return((k=c().interaction)==null?0:k.onTap)?"ytwFeedAdMetadataViewModelHostIsClickableAdComponent":"ytwFeedAdMetadataViewModelHost"},
el:t,"on:touchend":J},_.C(_.sb,null,_.C(_.wu,{when:function(){return c().style==="FEED_AD_METADATA_STYLE_COMPACT"}},function(){return _.C(Nga,{data:c,
typographyBump:p})}),_.C(_.wu,{when:function(){return c().style==="FEED_AD_METADATA_STYLE_STANDARD"}},function(){return _.C(tij,{data:c,
noBottomMargin:m,useVideoLockupTopPadding:P,typographyBump:p})})))},"Ua");var Kk8;_.g1=_.Q1(function(J){return _.C("yt-lockup-view-model",{class:_.pq(J.className)},_.C(_.PfZ,{contentId:function(){return J.data().contentId},
useModernStyle:!0,aspectRatio:function(){var c,m;return((c=J.containerType)==null?void 0:c.call(J))!==3?xqq(J.data().contentType,(m=J.force16By9ThumbnailAspectRatio)==null?void 0:m.call(J)):void 0}},function(){return _.C(Kk8,Object.assign({},J))}))},"Va");
Kk8=_.Q1(function(J){J=_.ou(J,{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 c=J.data,m=J.containerLayoutConfig,b=J.containerType,x=J.sizing,P=J.protectBackground,p=J.typographyBump,t=J.force16By9ThumbnailAspectRatio,I=J.thumbnailFixedWidth,a=J.thumbnailTargetWidth,k=J.lockupExperiments,H=J.elementsPerRow;
J=_.oN("div");_.vg(J,function(){var Z3;return(Z3=c())==null?void 0:Z3.rendererContext},void 0,void 0,["A".toString(),
"BUTTON".toString(),"YT-AVATAR-STACK-VIEW-MODEL","YT-EXPANDABLE-METADATA-VIEW-MODEL","FEED-AD-METADATA-VIEW-MODEL","AD-BADGE-VIEW-MODEL","AD-DETAILS-LINE-VIEW-MODEL"],!0);var T=_.fq(dno),r=_.BG().resolve(_.y6(udB)),W=r?{}:void 0,Y=function(){var Z3,oR,Em;return(Em=(oR=_.L((Z3=c())==null?void 0:Z3.rendererContext,_.KO))==null?void 0:oR.label)!=null?Em:void 0},Z=function(){var Z3=m==null?void 0:m(),oR;
if(Z3==null?0:Z3.containerType){var Em=(oR=c())==null?void 0:oR.contentType;oR=k();var X$=p(),Hu=a(),S6=P();Z3=Object.assign({},VWQ(cbr(Z3),goe(Z3.responsiveSize),X$,Em,Z3.force16By9ThumbnailAspectRatio,Hu,S6,oR),{thumbnailFixedWidth:Z3.contentPreviewWidth})}else Z3=VWQ(b(),x(),p(),(Em=c())==null?void 0:Em.contentType,t(),a(),P(),k());return Z3};
r&&W&&r({enabled:function(){return T()},
itemPlaybackModel:function(){return c().itemPlayback},
thumbnailElRef:function(){return W.thumbnailElRef},
containerElRef:J,options:function(){var Z3,oR=(Z3=_.L(c().metadata,ZV8))==null?void 0:Z3.endorsement;Z3=W.thumbnailOverlays||[];oR&&Z3.push(oR);var Em,X$;return{thumbnail:W.thumbnail,thumbnailOverlays:Z3,accessibilityText:Y(),thumbnailSize:W.thumbnailSize,enableRounding:Z().isCollection,containPlayerWithinThumbnail:Z().isCollection,trackingParams:(Em=_.L(c().rendererContext,_.aA))==null?void 0:(X$=Em.loggingDirectives)==null?void 0:X$.trackingParams}}});
var d=0;r=_.M(_.K2(!1,void 0,"BKBkhb"));var G=r.next().value,e=r.next().value;r=_.M(_.K2(!1,void 0,"GK0mq"));var A=r.next().value,l=r.next().value;r=_.Kq(function(){var Z3=T()&&c().itemPlayback;A()?(_.ft.cancelJob(d),d=_.ft.addJob(function(){e(!Z3)},8,32)):e(!Z3);
return!0});
var y=_.Kq(function(){d&&(_.ft.cancelJob(d),d=0);e(!1)});
_.f2(function(){d&&(_.ft.cancelJob(d),d=0)});
var pG=q3r(function(){l(!0)}),kt=pG.touchFeedbackEvents,nG=pG.touchFeedbackOnPointerUp,fG=pG.touchFeedbackOnPointerDown;
pG=pG.touchFeedbackOnPointerLeave;var Yt={};return _.C("div",{el:J,class:_.pq("yt-lockup-view-model-wiz",function(){a:{var Z3=Z();if(Z3.isOverlay)Z3="yt-lockup-view-model-wiz--overlay";else switch(Z3.arrangement){case 1:Z3="yt-lockup-view-model-wiz--horizontal";break a;default:Z3="yt-lockup-view-model-wiz--vertical"}}return Z3},function(){a:{var Z3=Z();
if(Z3.isOverlay)Z3="yt-lockup-view-model-wiz--overlay";else{switch(Z3.collectionStackNumber){case 1:Z3="yt-lockup-view-model-wiz--collection-stack-1";break a;case 2:Z3="yt-lockup-view-model-wiz--collection-stack-2";break a}Z3=void 0}}return Z3},(Yt["yt-lockup-view-model-wiz--card"]=function(){return Z().isCard},Yt["yt-lockup-view-model-wiz--compact"]=function(){return Z().isTiny||Z().sizing!=="STANDARD"},Yt["yt-lockup-view-model-wiz--protect-background"]=P,Yt["yt-lockup-view-model-wiz--add-margins"]=
function(){return Z().addMarginForFullbleed},Yt["yt-lockup-view-model-wiz--centered"]=function(){return Z().isCentered},Yt["yt-lockup-view-model-wiz--fullbleed"]=function(){return Z().fullbleed},Yt["yt-lockup-view-model-wiz--single-column-grid"]=function(){return H()===1&&b()===2},Yt["yt-lockup-view-model-wiz--rich-grid-legacy-margin"]=function(){var Z3;
return(Z3=k())==null?void 0:Z3.useRichGridLegacyMargin},Yt)),
"on:mousedown":fG,"on:mouseleave":y,"on:mouseup":nG,"on:mouseover":r,"on:touchstart":fG,"on:touchend":nG,"on:pointerleave":pG},_.C(_.cL,{command:function(){var Z3;return _.G9((Z3=c())==null?void 0:Z3.rendererContext)},
ariaHidden:!0,tabIndex:-1,className:"yt-lockup-view-model-wiz__content-image",style:function(){return I()&&Z().arrangement===1?"width: "+I():""}},_.C(_.wi,{data:function(){var Z3;
return(Z3=c())==null?void 0:Z3.contentImage}},{thumbnailViewModel:function(Z3){return _.C(_.oC,{data:Z3.data,
aspectRatio:function(){return Z().aspectRatio},
disableRounding:function(){return Z().disableRounding},
width:a,hovered:G,isClip:function(){var oR;return((oR=c())==null?void 0:oR.contentType)==="LOCKUP_CONTENT_TYPE_CLIP"},
playbackRef:SuQ(W),lockupExperiments:function(){return k()}})},
collectionThumbnailViewModel:function(Z3){return _.C(EX$,{data:Z3.data,aspectRatio:function(){return Z().aspectRatio},
disableRounding:function(){return Z().disableRounding},
width:a,doubleStack:function(){return Z().collectionStackNumber===2},
hovered:G,playbackRef:SuQ(W)})},
decoratedAvatarViewModel:_.Li})),_.C("div",{class:"yt-lockup-view-model-wiz__metadata"},_.C(_.wi,{data:function(){var Z3;return(Z3=c())==null?void 0:Z3.metadata}},{lockupMetadataViewModel:function(Z3){return _.C(bWB,{data:Z3.data,
lockupStyle:Z,lockupCommand:function(){var oR;return _.G9((oR=c())==null?void 0:oR.rendererContext)},
lockupAccessibilityLabel:function(){return Y()}})},
feedAdMetadataViewModel:function(Z3){return _.C(Ig_,{data:Z3.data,noBottomMargin:function(){return!0},
useVideoLockupTopPadding:function(){return!0},
typographyBump:p})}}),_.C(_.wi,{data:function(){var Z3;
return(Z3=c())==null?void 0:Z3.attachmentSlot}},{lockupAttachmentsViewModel:function(Z3){return _.C(oX$,{data:Z3.data,
lockupStyle:Z})}})),_.C(_.TH,{model:function(){a:{switch(Z().collectionStackNumber){case 1:var Z3=8;
break a;case 2:Z3=12;break a}Z3=void 0}return{isExtended:!0,triggerEvents:!0,customTopExtend:Z3}},
pointerDownEvent:kt.pointerDownEvent,pointerUpEvent:kt.pointerUpEvent,pointerLeaveEvent:kt.pointerLeaveEvent}))},"Wa");
_.g1.idomCompat=!0;_.lv(_.g1,"yt-lockup-view-model",{props:{data:_.vt,containerLayoutConfig:_.vt,containerType:_.vt,sizing:_.vt,protectBackground:_.vt,typographyBump:_.vt,thumbnailFixedWidth:_.vt,thumbnailTargetWidth:_.vt,force16By9ThumbnailAspectRatio:_.vt,className:_.vt,lockupExperiments:_.vt,elementsPerRow:_.vt}});_.J5(EDJ);var Cf_=_.IO(EDJ,{callbacks:{onExpandClick:!0}});var Qou=_.Hg({buttonViewModel:_.XU}),agZ=_.IO(RTe);_.J5(RTe);_.J5(OLG);_.J5(Abo);_.lv(agZ,"yt-video-attribute-view-model",{props:{data:_.vt,className:_.vt}});var JA=function(){var J=_.h.apply(this,arguments)||this;J.useHighlightStyling=_.w("web_enable_deeper_metadata_highlight_styling");J.isSearch=!1;J.JSC$13047_lastScrollContainerWidth=NaN;J.pageLoadingFromNavigation=!1;J.currentIndex=0;J.supportComponentResize=!1;return J};
_.D(JA,_.h);_.V=JA.prototype;
_.V.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}}}}}};
_.V.attached=function(){document.addEventListener("yt-page-type-changed",_.ME(this,this.onPageChange))};
_.V.detached=function(){document.removeEventListener("yt-page-type-changed",_.ME(this,this.onPageChange))};
_.V.getItemsPath=function(){return"data.cards"};
_.V.onIronResize=function(){this.updateListStyles()};
_.V.dataChanged=function(){this.updateListStyles();this.supportComponentResize=!!this.centerItems;var J;this.ytdHorizontalListBehavior.initialStartIndex=(this==null?void 0:(J=this.data)==null?void 0:J.scrollToIndex)||0;this.ytdHorizontalListBehavior.reset();this.ytdHorizontalListBehavior.centerListItems=_.w("problem_walkthrough_sd")&&!!this.centerItems};
_.V.computeCardListStyle=function(J){return J||null};
_.V.computeEmpty=function(J){return!this.get("cards.length",J)};
_.V.computeThumbnailStyle=function(J){return this.get("header.richListHeaderRenderer.channelThumbnail.channelThumbnailWithLinkRenderer.style",J)||null};
_.V.computeHasSubtitle=function(J){return!!this.get("header.richListHeaderRenderer.subtitle",J)};
_.V.computeInitialCountNumber=function(J){return this.hasSquareMiniApp&&J==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?12:this.hasSkinnyWidthPortraitMiniApp&&J==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?7:J==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?6:J==="HORIZONTAL_CARD_LIST_STYLE_TYPE_INLINE_RECOMMENDATIONS"?8:J==="HORIZONTAL_CARD_LIST_STYLE_TYPE_NARROW_SHELF"?10:this.isSearch&&J==="HORIZONTAL_CARD_LIST_STYLE_TYPE_ENGAGEMENT_PANEL_SECTION"?7:this.inlineStructuredDescription?
8:4};
_.V.computeUseFloorScrolling=function(J){return J==="HORIZONTAL_CARD_LIST_STYLE_TYPE_RELATED_CHANNELS"||this.hasSquareMiniApp};
_.V.computeHasGameCard=function(J){return(J=this.get("cards",J))?J.some(function(c){return c.gameCardRenderer}):!1};
_.V.computeCenterHeaderTitle=function(J){return!(J==null||!J.centerHeaderTitle)};
_.V.computeHasPortraitMiniApp=function(J){return(J=J==null?void 0:J.cards)?J.some(function(c){return c.miniGameCardViewModel&&c.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_PORTRAIT"}):!1};
_.V.computeHasSquareMiniApp=function(J){return(J=J==null?void 0:J.cards)?J.some(function(c){return c.miniGameCardViewModel&&c.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_SQUARE"}):!1};
_.V.computeHasSkinnyWidthPortraitMiniApp=function(J){return(J=J==null?void 0:J.cards)?J.some(function(c){return c.miniGameCardViewModel&&c.miniGameCardViewModel.width===135}):!1};
_.V.computeCenterItems=function(J){return!!J};
_.V.computeHasInfoPanel=function(J){var c;return J==null?void 0:(c=J.cards)==null?void 0:c.some(function(m){return m.infoPanelContentRenderer})};
_.V.handleKeyDown=function(){this.ytdHorizontalListBehavior.fillRemainingListItems();this.ytRendererBehavior.markDirty()};
_.V.getItemByIndex=function(J){var c=this.items.children;return c&&c.length>J?c[J]:void 0};
_.V.onPageChange=function(){var J=this;this.pageLoadingFromNavigation=!0;_.ft.addJob(function(){J.pageLoadingFromNavigation=!1;_.bJ(J.hostElement,"yt-terminate-video-preview-action")},8)};
_.V.updateListStyles=function(){if(_.w("problem_walkthrough_sd")&&this.JSC$13047_scrollContainer!==void 0){var J=this.JSC$13047_scrollContainer.clientWidth;J!==this.JSC$13047_lastScrollContainerWidth&&(this.JSC$13047_lastScrollContainerWidth=J,_.V1(this.hostElement,{"--ytd-horizontal-card-list-item-width":Math.min(J*.8,415)+"px"}),_.cA(this.hostElement,"iron-resize"))}};
_.eE.Object.defineProperties(JA.prototype,{hideNavigationButton:{configurable:!0,enumerable:!0,get:function(){return!(!this.inlineStructuredDescription||!_.w("sd_horizontal_list_show_nav_killswitch"))}},
modernChapters:{configurable:!0,enumerable:!0,get:function(){var J,c,m;return!!((J=this.data)==null?0:(c=J.cards)==null?0:(m=c[0])==null?0:m.macroMarkersListItemRenderer)}},
hasVideoAttributeViewModels:{configurable:!0,enumerable:!0,get:function(){var J,c,m;return!!((J=this.data)==null?0:(c=J.cards)==null?0:(m=c[0])==null?0:m.videoAttributeViewModel)}},
modernInfoPanels:{configurable:!0,enumerable:!0,get:function(){var J,c,m;return _.w("enable_desktop_amsterdam_info_panels")&&!!((J=this.data)==null?0:(c=J.cards)==null?0:(m=c[0])==null?0:m.infoPanelContentRenderer)}}});
JA.prototype.dataChanged=JA.prototype.dataChanged;JA.prototype.onIronResize=JA.prototype.onIronResize;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],JA.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],JA.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.yI.YtdHorizontalListBehavior),_.R("design:type",Object)],JA.prototype,"ytdHorizontalListBehavior",void 0);
_.O([_.f(_.XP),_.R("design:type",Object)],JA.prototype,"ytdDismissibleItemBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],JA.prototype,"data",void 0);_.O([_.U({value:!1,reflectToAttribute:!0}),_.R("design:type",Boolean)],JA.prototype,"useCustomColors",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],JA.prototype,"useHighlightStyling",void 0);
_.O([_.U({reflectToAttribute:!0,computed:"computeCardListStyle(data.style.type)"}),_.R("design:type",Object)],JA.prototype,"cardListStyle",void 0);_.O([_.U({value:!0,reflectToAttribute:!0,computed:"computeEmpty(data)"}),_.R("design:type",Boolean)],JA.prototype,"empty",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeHasSubtitle(data)"}),_.R("design:type",Boolean)],JA.prototype,"hasSubtitle",void 0);
_.O([_.U({reflectToAttribute:!0,computed:"computeThumbnailStyle(data)"}),_.R("design:type",Boolean)],JA.prototype,"thumbnailStyle",void 0);_.O([_.U({readOnly:!0,reflectToAttribute:!0,computed:"computeHasGameCard(data)"}),_.R("design:type",Boolean)],JA.prototype,"hasGameCard",void 0);_.O([_.U({readOnly:!0,reflectToAttribute:!0,computed:"computeCenterHeaderTitle(data)"}),_.R("design:type",Boolean)],JA.prototype,"centerHeaderTitle",void 0);
_.O([_.U({readOnly:!0,reflectToAttribute:!0,computed:"computeHasPortraitMiniApp(data)"}),_.R("design:type",Boolean)],JA.prototype,"hasPortraitMiniApp",void 0);_.O([_.U({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSquareMiniApp(data)"}),_.R("design:type",Boolean)],JA.prototype,"hasSquareMiniApp",void 0);_.O([_.U({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSkinnyWidthPortraitMiniApp(data)"}),_.R("design:type",Boolean)],JA.prototype,"hasSkinnyWidthPortraitMiniApp",void 0);
_.O([_.U({readOnly:!0,reflectToAttribute:!0,computed:"computeHasInfoPanel(data)"}),_.R("design:type",Boolean)],JA.prototype,"hasInfoPanel",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],JA.prototype,"isSearch",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],JA.prototype,"inlineStructuredDescription",void 0);_.O([_.Iu("#scroll-container"),_.R("design:type",HTMLDivElement)],JA.prototype,"JSC$13047_scrollContainer",void 0);
_.O([_.U({computed:"computeInitialCountNumber(data.style.type)"}),_.R("design:type",Number)],JA.prototype,"initialCount",void 0);_.O([_.U({computed:"computeUseFloorScrolling(data.style.type)"}),_.R("design:type",Boolean)],JA.prototype,"useFloorScrolling",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeCenterItems(data.centerItems)"}),_.R("design:type",Boolean)],JA.prototype,"centerItems",void 0);_.O([_.U(),_.R("design:type",Object)],JA.prototype,"pageLoadingFromNavigation",void 0);
_.O([_.U(),_.R("design:type",Object)],JA.prototype,"currentIndex",void 0);_.O([_.U(),_.R("design:type",Number)],JA.prototype,"scrollCount",void 0);_.O([_.U(),_.R("design:type",Object)],JA.prototype,"supportComponentResize",void 0);_.O([_.Iu("#items"),_.R("design:type",HTMLDivElement)],JA.prototype,"items",void 0);_.O([_.ps("iron-resize"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],JA.prototype,"onIronResize",null);
_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],JA.prototype,"dataChanged",null);_.O([_.U({reflectToAttribute:!0}),_.q("inlineStructuredDescription"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],JA.prototype,"hideNavigationButton",null);_.O([_.U({reflectToAttribute:!0}),_.q("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],JA.prototype,"modernChapters",null);
_.O([_.U({reflectToAttribute:!0}),_.q("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],JA.prototype,"hasVideoAttributeViewModels",null);_.O([_.U({reflectToAttribute:!0}),_.q("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],JA.prototype,"modernInfoPanels",null);JA=_.O([_.E({disableElementRegistration:!0,is:"ytd-horizontal-card-list-renderer"})],JA);
_.v(JA,"ytd-horizontal-card-list-renderer",function(){if(pnC!==void 0)return pnC;var J=document.createElement("template");_.z(J,'\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>');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return pnC=J},{mode:_.mP("kevlar_poly_si_batch_j072")?1:2});var kpu=_.Q1(function(J){var c=J.data;var m={};return _.C("video-summary-content-view-model",{class:_.pq("video-summary-content-view-model-wiz",J.className,(m["video-summary-content-view-model-wiz--is-search"]=J.isSearch,m))},_.C(_.Te,{each:function(){var b=[],x=c().paragraphs;if(x==null||!x.length)return[];for(var P=0;P<x.length;P++){var p=_.L(x[P],$bB),t=void 0;P>0&&(t=_.L(x[P-1],$bB));t&&!!t.marker===!!p.marker?b[b.length-1].paragraphs.push(p):b.push({isList:!!p.marker,paragraphs:[p]})}return b},
keyBy:"INDEX"},function(b){return _.C(_.n,{cond:function(){return b().isList},
then:function(){return _.C("ul",{class:"video-summary-content-view-model-wiz__list"},_.C(_.Te,{each:function(){return b().paragraphs},
keyBy:"INDEX"},function(x){return _.C("li",{class:"video-summary-content-view-model-wiz__list-item"},_.C(_.j8,{text:function(){return x().text}}))}))},
else:function(){return _.C(_.Te,{each:function(){return b().paragraphs},
keyBy:"INDEX"},function(x){return _.C("p",{class:"video-summary-content-view-model-wiz__paragraph"},_.C(_.j8,{text:function(){return x().text}}))})}})}),_.C(_.n,{cond:function(){return!!_.L(c().likeButtonViewModel,_.Wg)&&!!_.L(c().dislikeButtonViewModel,_.z9)},
then:function(){return _.C("div",{class:"video-summary-content-view-model-wiz__bottomButtonsContainer"},_.C("div",{class:"video-summary-content-view-model-wiz__likeButton"},_.C(_.zr,{data:function(){return _.L(c().likeButtonViewModel,_.Wg)},
disableIconAnimation:!0})),_.C(_.WT,{data:function(){return _.L(c().dislikeButtonViewModel,_.z9)}}))}}))},"Xa");
kpu.idomCompat=!0;_.lv(kpu,"video-summary-content-view-model",{props:{data:_.vt,isSearch:_.vt,className:_.vt}});var cI=function(){var J=_.h.apply(this,arguments)||this;var c,m;J.isExpanded=(m=(c=J.data)==null?void 0:c.isExpanded)!=null?m:!1;J.disableExpand=!1;J.showProminentLabel=!1;J.showRightSideLabel=!0;J.toggleExpandableContent=function(b){J.disableExpand||(b.stopPropagation(),_.RO(_.OT(b),J.hostElement,["info","expanded-subtitle"])||(J.isExpanded=!J.isExpanded,J.ytRendererBehavior.logExplicitClick(J.data),J.JSC$13058_cardList&&!_.w("expandable_metadata_a11y_fix_ks")&&_.o3(J,function(){_.ef(J.hostElement)})))};
J.useSquareThumbnail=!1;J.startX=0;return J};
_.D(cI,_.h);_.V=cI.prototype;_.V.computeUseSquareThumbnail=function(){var J;return(J=this.data)==null?void 0:J.useSquareThumbnail};
_.V.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"}}}}};
_.V.dataChanged=function(){if(this.data){var J,c;this.isExpanded=(c=(J=this.data)==null?void 0:J.isExpanded)!=null?c:!1;var m,b,x,P;if(J=this.isDarkTheme()?(m=this.data)==null?void 0:(b=m.colorData)==null?void 0:b.darkColorPalette:(x=this.data)==null?void 0:(P=x.colorData)==null?void 0:P.lightColorPalette){var p,t;if((p=this.data)==null?0:(t=p.colorData)==null?0:t.vibrantColorPalette)J.section1Color=this.data.colorData.vibrantColorPalette.section1Color,_.DL(this.hostElement,J)}}};
_.V.isExpandedChanged=function(){this.isExpanded&&this.JSC$13058_cardList&&_.cA(this.JSC$13058_cardList,"iron-resize")};
_.V.computeIsExpanded=function(J){return!!J.isExpanded};
_.V.computeShowProminentLabel=function(J,c){var m;return!!(J==null?0:(m=J.header)==null?0:m.showLeadingCollapsedLabel)&&!c};
_.V.computeShowRightSideLabel=function(J,c){var m;return!(J==null?0:(m=J.header)==null?0:m.showLeadingCollapsedLabel)&&!c};
_.V.captureContentClick=function(J){if(!this.disableExpand)if(_.w("expandable_metadata_fix_killswitch")){var c=J.target;_.Sm_(c,"ytd-macro-markers-list-item-renderer")||J.stopPropagation();(c==null?void 0:c.id)==="scroll-container"&&(this.isExpanded=!this.isExpanded)}else _.RO(_.OT(J),this.hostElement,["items"])||_.AP(_.OT(J),this.hostElement,["BUTTON"])||(this.isExpanded=!this.isExpanded)};
_.V.timestampClick=function(J){J.stopPropagation();var c,m;(J=(c=this.data)==null?void 0:(m=c.header)==null?void 0:m.jumpToTimestampEndpoint)&&this.ytComponentBehavior.resolveCommand(J)};
_.V.onDown=function(J){J.stopPropagation();this.startX=J.detail?J.detail.x:0};
_.V.onUp=function(J){this.skipKeyInteraction(J)&&J.stopPropagation()};
_.V.skipKeyInteraction=function(J){var c=J.target;if((c==null?void 0:c.id)==="scroll-container"||(c==null?void 0:c.id)==="items"||J.detail&&J.detail.x!==this.startX)return!0;J=_.OT(J);J=_.M(J);for(c=J.next();!c.done;c=J.next()){c=c.value;if(c===this.hostElement)break;if(c.hasAttribute&&c.hasAttribute("skip-key-interaction"))return!0}return!1};
_.V.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.eE.Object.defineProperties(cI.prototype,{hasVideoSummary:{configurable:!0,enumerable:!0,get:function(){var J;return!!_.L((J=this.data)==null?void 0:J.expandedContent,dbj)}},
hasLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var J;return!!_.L((J=this.data)==null?void 0:J.expandedContent,_.qqB)}},
useCustomColors:{configurable:!0,enumerable:!0,get:function(){var J,c;return!((J=this.data)==null||!J.useCustomColors)&&!((c=this.data)==null||!c.colorData)&&!this.isWatch}},
showInfoButton:{configurable:!0,enumerable:!0,get:function(){var J;return!((J=this.data)==null||!J.infoButton)&&!!this.isExpanded}},
showTimestamp:{configurable:!0,enumerable:!0,get:function(){var J,c;return!!((J=this.data)==null?0:(c=J.header)==null?0:c.collapsedJumpToTimestamp)&&!this.isExpanded}},
showExpandedSubtitle:{configurable:!0,enumerable:!0,get:function(){var J,c;return!!((J=this.data)==null?0:(c=J.header)==null?0:c.expandedSubtitle)&&this.isExpanded}},
showThumbnail:{configurable:!0,enumerable:!0,get:function(){var J,c;return!!((J=this.data)==null?0:(c=J.header)==null?0:c.collapsedThumbnail)&&!this.isExpanded}},
useVppShoppingDestinationStyle:{configurable:!0,enumerable:!0,get:function(){var J;return((J=this.data)==null?void 0:J.style)==="EXPANDABLE_METADATA_STYLE_VPP_SHOPPING_DESTINATION"}}});
cI.prototype.onUp=cI.prototype.onUp;cI.prototype.onDown=cI.prototype.onDown;cI.prototype.isExpandedChanged=cI.prototype.isExpandedChanged;cI.prototype.dataChanged=cI.prototype.dataChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],cI.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],cI.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],cI.prototype,"ytComponentBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],cI.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],cI.prototype,"isExpanded",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],cI.prototype,"disableExpand",void 0);_.O([_.U({value:!1}),_.R("design:type",Boolean)],cI.prototype,"isSearch",void 0);
_.O([_.U({value:!1,reflectToAttribute:!0}),_.R("design:type",Boolean)],cI.prototype,"isWatch",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeShowProminentLabel(data, isExpanded)"}),_.R("design:type",Object)],cI.prototype,"showProminentLabel",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeShowRightSideLabel(data, isExpanded)"}),_.R("design:type",Object)],cI.prototype,"showRightSideLabel",void 0);
_.O([_.U({value:!1,reflectToAttribute:!0}),_.q("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],cI.prototype,"hasVideoSummary",null);_.O([_.U({value:!1,reflectToAttribute:!0}),_.q("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],cI.prototype,"hasLockupViewModel",null);_.O([_.U({reflectToAttribute:!0}),_.q("data","isWatch"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],cI.prototype,"useCustomColors",null);
_.O([_.U({reflectToAttribute:!0}),_.q("data","isExpanded"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],cI.prototype,"showInfoButton",null);_.O([_.q("data","isExpanded"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],cI.prototype,"showTimestamp",null);_.O([_.q("data","isExpanded"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],cI.prototype,"showExpandedSubtitle",null);
_.O([_.q("data","isExpanded"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],cI.prototype,"showThumbnail",null);_.O([_.U({reflectToAttribute:!0}),_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],cI.prototype,"useVppShoppingDestinationStyle",null);_.O([_.U(),_.R("design:type",Object)],cI.prototype,"toggleExpandableContent",void 0);_.O([_.Iu("ytd-horizontal-card-list-renderer"),_.R("design:type",Object)],cI.prototype,"JSC$13058_cardList",void 0);
_.O([_.U({reflectToAttribute:!0,computed:"computeUseSquareThumbnail(data.useSquareThumbnail)"}),_.R("design:type",Object)],cI.prototype,"useSquareThumbnail",void 0);_.O([_.kr("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],cI.prototype,"dataChanged",null);_.O([_.NE("isExpanded"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],cI.prototype,"isExpandedChanged",null);
_.O([_.ps("down"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],cI.prototype,"onDown",null);_.O([_.ps("up"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],cI.prototype,"onUp",null);cI=_.O([_.E({is:"ytd-expandable-metadata-renderer",disableElementRegistration:!0})],cI);
_.v(cI,"ytd-expandable-metadata-renderer",function(){if(izj!==void 0)return izj;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return izj=J},{mode:1});var HWQ,iWj=function(){if(HWQ!==void 0)return HWQ;var J=document.createElement("template");_.z(J,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-video-renderer">\n  <ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" use-untranslated-navigation-endpoint="[[hideTranslation]]" width="[[computeThumbnailWidth(isBackstageVideo, isPostCompactVideo, useSearchUi, useBiggerThumbs, biggerThumbsStyle, videoStyle)]]" class="style-scope ytd-video-renderer">\n  </ytd-thumbnail>\n  <div class="text-wrapper style-scope ytd-video-renderer" on-click="onTextWrapperClick">\n    <div id="meta" class="style-scope ytd-video-renderer">\n      <div id="title-wrapper" class="style-scope ytd-video-renderer">\n        <h3 class="title-and-badge style-scope ytd-video-renderer">\n          <ytd-badge-supported-renderer collection-truncate="" hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-video-renderer">\n          </ytd-badge-supported-renderer>\n          <a id="video-title" class="yt-simple-endpoint style-scope ytd-video-renderer" aria-label$="[[data.title.accessibility.accessibilityData.label]]" href$="[[computeHref_(computedNavigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" data="[[computedNavigationEndpoint]]">\n            <yt-icon id="inline-title-icon" hidden="[[hideInlineTitleIcon(hideTranslation, inlineTitleIcon)]]" icon="[[inlineTitleIcon]]" class="style-scope ytd-video-renderer">\n            </yt-icon>\n            <yt-formatted-string text="[[computeTitleText(hideTranslation, data.title, data.untranslatedTitle)]]" class="style-scope ytd-video-renderer">\n            </yt-formatted-string>\n          </a>\n        </h3>\n        <div id="menu" class="style-scope ytd-video-renderer"></div>\n      </div>\n      <ytd-video-meta-block data="[[data]]" no-byline="[[shouldShowChannelInfo]]" truncate-metadata-line="[[isRichGridVideoPost]]" class="style-scope ytd-video-renderer">\n      </ytd-video-meta-block>\n    </div>\n    <div id="channel-info" hidden="[[!shouldShowChannelInfo]]" class="style-scope ytd-video-renderer">\n      <a id="channel-thumbnail" hidden="[[!shouldShowChannelThumbnail]]" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-video-renderer">\n        <yt-img-shadow thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="24" class="style-scope ytd-video-renderer">\n        </yt-img-shadow>\n      </a>\n      <div id="avatar" hidden="[[!useAvatar]]" class="style-scope ytd-video-renderer"></div>\n      <ytd-channel-name id="channel-name" class="long-byline style-scope ytd-video-renderer" badges="[[data.ownerBadges]]" channel-name="[[data.longBylineText]]" wrap-text="true">\n      </ytd-channel-name>\n    </div>\n    <yt-formatted-string id="description-text" hidden="[[!data.descriptionSnippet]]" text="[[computeDescriptionSnippet(hideTranslation, data.descriptionSnippet, data.untranslatedDescriptionSnippet)]]" class="style-scope ytd-video-renderer">\n    </yt-formatted-string>\n    <template is="dom-repeat" items="[[data.detailedMetadataSnippets]]" hidden="[[!data.detailedMetadataSnippets]]" class="style-scope ytd-video-renderer">\n      <div class$="[[getMetadataSnippetContainerClass(item.maxOneLine)]] style-scope ytd-video-renderer">\n        <a class="yt-simple-endpoint metadata-snippet-timestamp style-scope ytd-video-renderer" aria-label$="[[item.snippetTimestamp.accessibility.accessibilityData.label]]" hidden="[[!item.snippetTimestamp]]" href$="[[computeHref_(item.timestampEndpoint)]]" data="[[item.timestampEndpoint]]">\n          <span id="time" class="style-scope ytd-video-renderer">[[getSimpleString(item.snippetTimestamp)]]</span>\n          <yt-formatted-string class="metadata-snippet-text-navigation style-scope ytd-video-renderer" text="[[item.snippetText]]">\n          </yt-formatted-string>\n        </a>\n        <yt-formatted-string class="metadata-snippet-text style-scope ytd-video-renderer" hidden="[[item.snippetTimestamp]]" text="[[computeSnippetText(hideTranslation, item.snippetText, item.untranslatedSnippetText)]]">\n        </yt-formatted-string>\n        <tp-yt-paper-tooltip class="style-scope ytd-video-renderer">[[getSimpleString(item.snippetHoverText)]]</tp-yt-paper-tooltip>\n      </div>\n    </template>\n    <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" hidden-badge-groups="[[hiddenBadgeGroups]]" class="style-scope ytd-video-renderer">\n    </ytd-badge-supported-renderer>\n    <div id="expandable-metadata" class="style-scope ytd-video-renderer"></div>\n    <div id="buttons" class="style-scope ytd-video-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-video-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-video-renderer"></yt-interaction>\n');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return HWQ=J};_.lv(_.DN,"yt-avatar-stack-view-model",{props:{className:_.vt,data:_.vt,overrides:_.vt,isOverlay:_.vt,useMediumText:_.vt,decorations:_.vt,hideAvatar:_.vt}});_.zH("itemSectionRenderer","videoRenderer","ytd-video-renderer");var ma=function(){var J=_.h.apply(this,arguments)||this;J.disableExpand=!1;J.shouldShowChannelInfo=!1;J.actionMap={"yt-hide-item-section-videos-by-id-command":"handleHideItemSectionVideosByIdCommand"};return J};
_.D(ma,_.h);_.V=ma.prototype;_.V.computeUseSearchUi=function(){var J,c;return this.isSearch||((J=this.data)==null?void 0:(c=J.style)==null?void 0:c.value)==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.V.computeUseThreeLineTitle=function(){var J;return((J=this.data)==null?void 0:J.maxTitleLines)===3};
_.V.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"},initialRenderPriority:_.w("polymer_video_renderer_defer_menu")&&!wWQ?0:void 0},"data.buttons":{id:"buttons",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer",upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer",buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",
notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},"data.expandableMetadata":{id:"expandable-metadata",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",properties:{isSearch:"[[useSearchUi]]",disableExpand:"[[disableExpand]]"}}}},"data.avatar":{id:"avatar",mapping:{avatarStackViewModel:"yt-avatar-stack-view-model"}}}};
_.V.attached=function(){_.mq(this.hostElement,"blue-links",_.w("kevlar_video_blue_links"));this.updateInlinePreviewHoverListeners()};
_.V.detached=function(){this.clearInlinePreviewHoverListeners()};
_.V.dataChanged=function(){this.isHistory=window.location.pathname.indexOf("/feed/history")!==-1;_.bM(_.Bj(this.hostElement).querySelector("#description-text"),"ellipsis-truncate",!!this.data.topStandaloneBadge);var J=this.get("data.buttons.buttonRenderer.serviceEndpoint"),c;J&&((c=_.L(J.commandMetadata,_.we))==null?0:c.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(J);this.updateInlinePreviewHoverListeners()};
_.V.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13063_inlinePreviewHoverListener=AT({mediaRenderer:this,lockupElement:this.JSC$13063_dismissibleMedia,thumbnailElement:this.thumbnail})};
_.V.clearInlinePreviewHoverListeners=function(){var J;(J=this.JSC$13063_inlinePreviewHoverListener)==null||Jm(J)};
_.V.onTextWrapperClick=function(J){var c,m,b=this.hideTranslation?(c=this.data)==null?void 0:c.untranslatedNavigationEndpoint:(m=this.data)==null?void 0:m.navigationEndpoint;c=_.RO(_.OT(J),this.hostElement,["expandable-metadata"]);!b||c&&!_.w("expandable_metadata_fix_killswitch")||_.AP(_.OT(J),this.hostElement,["A".toString(),"BUTTON".toString(),"YT-AVATAR-STACK-VIEW-MODEL"])||_.cA(this.hostElement,"yt-navigate",{endpoint:b})};
_.V.computeThumbnailWidth=function(J,c,m,b,x){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"?500:b?x==="MASSIVE"?600:x==="BIG"?500:x==="MEDIUM"?450:420:m?360:c?128:J?210:246};
_.V.computeUseBiggerThumbs=function(J){return J&&_.w("enable_desktop_search_bigger_thumbs")};
_.V.computeShouldShowChannelInfo=function(){return this.useSearchUi};
_.V.computeVideoStyle=function(){if(_.w("enable_video_style")){var J,c;return(J=this.data)==null?void 0:(c=J.style)==null?void 0:c.value}};
_.V.computeDisableExpand=function(){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.V.handleHideItemSectionVideosByIdCommand=function(J){var c;J=(c=_.L(J,Voj))==null?void 0:c.videoId;this.data&&this.data.videoId===J&&(this.isHidden=!0)};
_.V.getMetadataSnippetContainerClass=function(J){return J?"metadata-snippet-container-one-line":"metadata-snippet-container"};
_.V.computeTitleText=function(J,c,m){return J?m:c};
_.V.computeDescriptionSnippet=function(J,c,m){return J?m:c};
_.V.computeSnippetText=function(J,c,m){return J?m:c};
_.V.computeNavigationEndpoint=function(J,c){return J?c==null?void 0:c.untranslatedNavigationEndpoint:c==null?void 0:c.navigationEndpoint};
_.V.hideInlineTitleIcon=function(J,c){return J||!c};
_.eE.Object.defineProperties(ma.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 J;return(J=this.searchVideoResultEntity.hiddenBadgeGroups)!=null?J:[]}return[]}},
shouldShowChannelThumbnail:{configurable:!0,enumerable:!0,get:function(){var J,c,m;return!!(this==null?0:(J=this.data)==null?0:(c=J.channelThumbnailSupportedRenderers)==null?0:(m=c.channelThumbnailWithLinkRenderer)==null?0:m.thumbnail)&&!this.useAvatar}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var J;return!!_.L((J=this.data)==null?void 0:J.avatar,UDZ)}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var J;return!((J=this.JSC$13063_inlinePreviewHoverListener)==null?0:uF(J))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
_.eE.Object.defineProperties(ma,{template:{configurable:!0,enumerable:!0,get:function(){return iWj()}}});
ma.prototype.dataChanged=ma.prototype.dataChanged;_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],ma.prototype,"ytComponentBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],ma.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],ma.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.XP),_.R("design:type",Object)],ma.prototype,"ytdDismissibleItemBehavior",void 0);
_.O([_.f(_.$N),_.R("design:type",Object)],ma.prototype,"ytdLockupBehavior",void 0);_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],ma.prototype,"ytActionHandlerBehavior",void 0);_.O([_.f(_.fY),_.R("design:type",Object)],ma.prototype,"ytdReduxBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],ma.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],ma.prototype,"isBackstageVideo",void 0);
_.O([_.U({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],ma.prototype,"isPostCompactVideo",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],ma.prototype,"isHistory",void 0);_.O([_.U({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],ma.prototype,"isRichGridVideoPost",void 0);_.O([_.U({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],ma.prototype,"isHidden",void 0);
_.O([_.U({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],ma.prototype,"isSearch",void 0);_.O([_.U({reflectToAttribute:!0,value:!1,computed:"computeUseSearchUi(isSearch, data)"}),_.R("design:type",Boolean)],ma.prototype,"useSearchUi",void 0);_.O([_.U({reflectToAttribute:!0,value:!1,computed:"computeUseThreeLineTitle(data)"}),_.R("design:type",Boolean)],ma.prototype,"useThreeLineTitle",void 0);
_.O([_.U({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(useSearchUi)"}),_.R("design:type",Boolean)],ma.prototype,"useBiggerThumbs",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeVideoStyle(data.style.value)"}),_.R("design:type",Object)],ma.prototype,"videoStyle",void 0);_.O([_.U({computed:"computeDisableExpand(videoStyle)"}),_.R("design:type",Object)],ma.prototype,"disableExpand",void 0);
_.O([_.U({computed:"computeShouldShowChannelInfo(useSearchUi)"}),_.R("design:type",Object)],ma.prototype,"shouldShowChannelInfo",void 0);_.O([_.U({reflectToAttribute:!0,value:function(){return _.mG("desktop_search_bigger_thumbs_style")}}),
_.R("design:type",String)],ma.prototype,"biggerThumbsStyle",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeIcon_(data.inlineTitleIcon)"}),_.R("design:type",String)],ma.prototype,"inlineTitleIcon",void 0);_.O([_.U({computed:"computeNavigationEndpoint(hideTranslation, data)"}),_.R("design:type",Object)],ma.prototype,"computedNavigationEndpoint",void 0);_.O([_.U({selectorArgs:["data.searchVideoResultEntityKey"],selector:function(J,c){return _.P2(J.entities,"searchVideoResultEntity",c)}}),
_.R("design:type",Object)],ma.prototype,"searchVideoResultEntity",void 0);_.O([_.Iu("ytd-thumbnail"),_.R("design:type",HTMLElement)],ma.prototype,"thumbnail",void 0);_.O([_.Iu("#dismissible"),_.R("design:type",HTMLElement)],ma.prototype,"JSC$13063_dismissibleMedia",void 0);_.O([_.kr("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],ma.prototype,"dataChanged",null);
_.O([_.q("searchVideoResultEntity"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],ma.prototype,"hideTranslation",null);_.O([_.q("searchVideoResultEntity"),_.R("design:type",Array),_.R("design:paramtypes",[])],ma.prototype,"hiddenBadgeGroups",null);_.O([_.q("data","useAvatar"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],ma.prototype,"shouldShowChannelThumbnail",null);_.O([_.q("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],ma.prototype,"useAvatar",null);
_.O([_.q("lockupIsHovered"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],ma.prototype,"isHovered",null);ma=_.O([_.E({is:"ytd-video-renderer",disableElementRegistration:!0})],ma);_.v(ma,"ytd-video-renderer",function(){return iWj()},{mode:_.mP("kevlar_poly_si_batch_j047")?1:2});var bE=function(){var J=_.h.apply(this,arguments)||this;J.editDialog=null;J.roundedContainer=!0;J.isLoading=!1;J.isRichGrid=!1;J.isRichGridRepost=!1;J.reduceSidePaddings=_.w("reduce_side_paddings_in_shelf");J.JSC$13070_spinnerEl=null;return J};
_.D(bE,_.h);_.V=bE.prototype;
_.V.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"}}}};
_.V.contentTextChanged=function(){this.expander.reset()};
_.V.dataChanged=function(){var J=this;if(this.data){this.isLoading=!1;this.editDialog=null;for(var c=0,m=this.data.actions&&this.data.actions.length;c<m;c++)this.openEditDialog(_.L(this.data.actions[c],fv8));if((c=this.get("actionButtons.commentActionButtonsRenderer.shareButton",this.data))&&(c=this.get("buttonRenderer.hint.hintRenderer.hintId",c))&&c.startsWith("share-post-hint")){var b=this.get("children.dismissible.children.toolbar.children.action-buttons.children.toolbar.children.share-button",
this);if(b){_.oQ.getInstance();var x=Qt(_.v2(_.CX("SHARE_POST_EDU_TEXT")),"share-post-edu-displayed","OPEN_POPUP_POSITION_TOPRIGHT");_.ft.addLowPriorityJob(function(){_.PA(J.hostElement,x,b)})}}}};
_.V.updatePoll=function(J){J>=0?this.actionButtons.reply():this.actionButtons.hideReplyDialog()};
_.V.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$13070_spinnerEl||(this.JSC$13070_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.Bj(this.hostElement).appendChild(this.JSC$13070_spinnerEl));this.JSC$13070_spinnerEl&&(this.JSC$13070_spinnerEl.active=this.isLoading)};
_.V.onYtNavigate=function(J){var c=this.get("updateCommentDialogEndpoint",J.detail.endpoint);c&&(this.openEditDialog(c),J.stopPropagation())};
_.V.onYtCommentboxDismiss=function(){this.editDialog=null};
_.V.onYtCommentPollRevert=function(J,c){c&&this.updatePoll(c.selectedChoiceIndex)};
_.V.onYtServiceRequestSent=function(J,c){var m;c.endpoint&&(_.L(c.endpoint,eXB)||_.L(c.endpoint,Qba)&&((m=_.L(c.endpoint,Qba))==null||!m.clientActions))&&(this.isLoading=!0);if(c.actions)for(J=0;J<c.actions.length;J++)m=c.actions[J],_.L(m,nO)&&(m=this.get("updateBackstagePollAction.selectedChoiceIndex",m),m==void 0&&(m=-1),this.updatePoll(m))};
_.V.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.V.openEditDialog=function(J){J&&J.dialog&&(this.editDialog=J.dialog,J=this.editDialogEl.firstElementChild)&&(J.focus(),J.openDialog&&J.openDialog())};
_.V.computeIsPostHidden=function(J,c){return!!J||c};
_.V.computeSurfaceType=function(J){return J?J.toLowerCase().replace(/_/g,"-"):""};
_.V.computeUsesCompactLockup=function(J){return J==="BACKSTAGE_SURFACE_TYPE_HOME"||J==="BACKSTAGE_SURFACE_TYPE_SEARCH"||J==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||J==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||J==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||J==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.V.computeShowWithoutToolbar=function(J){return!J.actionButtons&&!J.actionMenu};
_.V.computePostAttachment=function(J){if(J.backstageAttachment){if(_.L(J.backstageAttachment,zX$))return"poll";if(_.L(J.backstageAttachment,tzQ))return"quiz";if(_.L(J.backstageAttachment,_.YW))return"video";if(_.L(J.backstageAttachment,Irz))return"uploaded-videos";if(_.L(J.backstageAttachment,bZa))return J.contentText?"image":"image-only";if(_.L(J.backstageAttachment,P4_))return"playlist"}return"none"};
_.V.computePostTabIndex=function(J){return J?0:-1};
_.V.computeButtonTooltipPosition=function(J){return this.computeUsesCompactLockup(J)?"top":"bottom"};
_.V.computeHasText=function(J){return!(J==null||!J.contentText)};
_.V.onTap=function(J){var c,m;if(((c=this.data)==null?0:c.navigationEndpoint)&&((m=this.data)==null?void 0:m.surface)==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION")this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);else{var b;((b=this.data)==null?0:b.navigationEndpoint)&&!_.AP(_.OT(J)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"YTD-VIDEO-RENDERER","YTD-PLAYLIST-RENDERER"])&&_.cA(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.eE.Object.defineProperties(bE.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var J;return((J=this.data)==null?void 0:J.voteCount)||_.v2("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var J;return(J=this.data)==null?void 0:J.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.L(this.data.backstageAttachment,zX$))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.L(this.data.backstageAttachment,Irz))}}});
bE.prototype.onYtServiceRequestCompleted=bE.prototype.onYtServiceRequestCompleted;bE.prototype.onYtServiceRequestSent=bE.prototype.onYtServiceRequestSent;bE.prototype.onYtCommentPollRevert=bE.prototype.onYtCommentPollRevert;bE.prototype.onYtCommentboxDismiss=bE.prototype.onYtCommentboxDismiss;bE.prototype.onYtNavigate=bE.prototype.onYtNavigate;bE.prototype.isLoadingChanged=bE.prototype.isLoadingChanged;bE.prototype.dataChanged=bE.prototype.dataChanged;bE.prototype.contentTextChanged=bE.prototype.contentTextChanged;
_.O([_.f(_.XP),_.R("design:type",Object)],bE.prototype,"ytdDismissibleItemBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],bE.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],bE.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],bE.prototype,"ytComponentBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],bE.prototype,"data",void 0);
_.O([_.U(),_.R("design:type",Object)],bE.prototype,"editDialog",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],bE.prototype,"roundedContainer",void 0);_.O([_.U(),_.R("design:type",Object)],bE.prototype,"isLoading",void 0);_.O([_.U({computed:"computeSurfaceType(data.surface)",reflectToAttribute:!0}),_.R("design:type",String)],bE.prototype,"surface",void 0);
_.O([_.U({computed:"computeUsesCompactLockup(data.surface)",reflectToAttribute:!0}),_.R("design:type",Boolean)],bE.prototype,"usesCompactLockup",void 0);_.O([_.U({computed:"computeShowWithoutToolbar(data)",reflectToAttribute:!0}),_.R("design:type",Boolean)],bE.prototype,"showWithoutToolbar",void 0);_.O([_.U({computed:"computePostAttachment(data)",reflectToAttribute:!0}),_.R("design:type",String)],bE.prototype,"attachment",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],bE.prototype,"isRichGrid",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],bE.prototype,"isRichGridRepost",void 0);_.O([_.U({reflectToAttribute:!0,value:_.w("use_better_post_dismissals")}),_.R("design:type",Boolean)],bE.prototype,"useBetterPostDismissals",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],bE.prototype,"reduceSidePaddings",void 0);
_.O([_.U({computed:"computeHasText(data)",reflectToAttribute:!0}),_.R("design:type",Boolean)],bE.prototype,"hasText",void 0);_.O([_.Iu("#expander"),_.R("design:type",Object)],bE.prototype,"expander",void 0);_.O([_.Iu("#action-buttons"),_.R("design:type",Object)],bE.prototype,"actionButtons",void 0);_.O([_.Iu("#edit-dialog"),_.R("design:type",HTMLElement)],bE.prototype,"editDialogEl",void 0);
_.O([_.NE("data.contentText"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],bE.prototype,"contentTextChanged",null);_.O([_.kr("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],bE.prototype,"dataChanged",null);_.O([_.NE("isLoading"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],bE.prototype,"isLoadingChanged",null);
_.O([_.ps("yt-navigate"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],bE.prototype,"onYtNavigate",null);_.O([_.ps("yt-commentbox-dismiss"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],bE.prototype,"onYtCommentboxDismiss",null);_.O([_.ps("yt-comment-poll-revert"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,Object]),_.R("design:returntype")],bE.prototype,"onYtCommentPollRevert",null);
_.O([_.ps("yt-service-request-sent"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,_.qd]),_.R("design:returntype")],bE.prototype,"onYtServiceRequestSent",null);_.O([_.ps("yt-service-request-completed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,_.Oi]),_.R("design:returntype")],bE.prototype,"onYtServiceRequestCompleted",null);_.O([_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],bE.prototype,"voteCount",null);
_.O([_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],bE.prototype,"commentCount",null);_.O([_.q("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],bE.prototype,"hasPoll",null);_.O([_.q("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],bE.prototype,"hasUploadedVideo",null);bE=_.O([_.E({is:"ytd-post-renderer",disableElementRegistration:!0})],bE);
_.v(bE,"ytd-post-renderer",function(){if(ESQ!==void 0)return ESQ;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return ESQ=J},{mode:1});var noL;var Tg8;var xP=function(){return _.h.apply(this,arguments)||this};
_.D(xP,_.h);xP.prototype.configureRendererStamper=function(){return{"data.images":{id:"items",mapping:{backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[surface]]"}}}}}};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],xP.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],xP.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.yI.YtdHorizontalListBehavior),_.R("design:type",Object)],xP.prototype,"ytdHorizontalListBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],xP.prototype,"componentBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],xP.prototype,"data",void 0);
_.O([_.U({value:"$.items.children"}),_.R("design:type",String)],xP.prototype,"itemsPath",void 0);_.O([_.U({value:1}),_.R("design:type",Number)],xP.prototype,"initialCount",void 0);_.O([_.U(),_.R("design:type",String)],xP.prototype,"surface",void 0);xP=_.O([_.E({is:"ytd-post-multi-image-renderer",disableElementRegistration:!0})],xP);
_.v(xP,"ytd-post-multi-image-renderer",function(){if(Tg8!==void 0)return Tg8;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return Tg8=J},{mode:_.mP("kevlar_poly_si_batch_j079")?1:2});var wC8={"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"}}},Vp=function(){var J=_.h.apply(this,arguments)||this;J.hasInlineCommentSection=!1;J.editDialog=null;J.isLoading=!1;J.shouldHideAuthor=!1;J.shouldShowVideoTime=!1;
J.isInEngagementPanel=!1;J.hideBorder=!1;J.usesFullLockup=!1;J.shouldShowMenuInCompactView=!1;J.JSC$13086_spinnerEl=null;J.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return J};
_.D(Vp,_.h);_.V=Vp.prototype;_.V.configureRendererStamper=function(){return wC8};
_.V.computeIsPollHeaderEnabled=function(J){return(J==null?void 0:J.pollMetadataIcon)!=null};
_.V.getPublishTimeStampString=function(J,c){c=new Date((Number(c)-60*((new Date).getTimezoneOffset()-(new Date(Number(c)*1E3)).getTimezoneOffset()))*1E3);c=(new G2(10)).format(c);if(J&&J.runs&&J.runs.length)for(var m=0;m<J.runs.length;m++)J.runs[m].text&&(J.runs[m].text=J.runs[m].text.replace("POST_SCHEDULED_TIMESTAMP_PLACEHOLDER",c));return J};
_.V.created=function(){this.JSC$13086_spinnerEl=null};
_.V.contentTextChanged=function(){this.expander.reset()};
_.V.dataChanged=function(){this.isLoading=!1;this.editDialog=null;var J;if((J=this.data)==null?0:J.actions){J=_.M(this.data.actions);for(var c=J.next();!c.done;c=J.next())this.openEditDialog(_.L(c.value,fv8))}};
_.V.handleSignalActionOpenPostCommentDialogAction=function(){_.Bj(this.hostElement).querySelector("#action-buttons").reply()};
_.V.updatePoll=function(J,c){c&&this.set("data.pollMetadataVoteCountText",c);this.hasInlineCommentSection&&(J=J>=0,c=_.Bj(this.hostElement).querySelector("#action-buttons"),J?c.reply():c.hideReplyDialog())};
_.V.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$13086_spinnerEl||(this.JSC$13086_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.Bj(this.hostElement).appendChild(this.JSC$13086_spinnerEl));this.JSC$13086_spinnerEl&&(this.JSC$13086_spinnerEl.active=this.isLoading)};
_.V.onYtNavigate=function(J){var c=this.get("updateCommentDialogEndpoint",J.detail.endpoint);c&&(this.openEditDialog(c),J.stopPropagation())};
_.V.onYtCommentboxDismiss=function(){this.editDialog=null};
_.V.onYtCommentPollRevert=function(J,c){c&&this.updatePoll(c.selectedChoiceIndex,c.totalVotes)};
_.V.onYtServiceRequestSent=function(J,c){J.stopPropagation();J=_.L(c.endpoint,Qba);if(_.L(c.endpoint,eXB)||J&&!J.clientActions)this.isLoading=!0;if(c.actions)for(J=0;J<c.actions.length;J++){var m=c.actions[J],b=_.L(m,nO);b&&(m=this.get("updateBackstagePollAction.selectedChoiceIndex",m),m===void 0&&(m=-1),this.updatePoll(m,b.totalVotes))}};
_.V.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.V.openEditDialog=function(J){J&&J.dialog&&(this.editDialog=J.dialog,J=this.editDialogElement.firstElementChild)&&(J.focus(),J.openDialog&&J.openDialog())};
_.V.computeIsBodyHidden=function(J,c){return!!J||c};
_.eE.Object.defineProperties(Vp.prototype,{postTextMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.isInEngagementPanel?10:4}},
pollIcon:{configurable:!0,enumerable:!0,get:function(){var J,c;if((J=this.data)==null?0:(c=J.pollMetadataIcon)==null?0:c.iconType)return _.Pd(this.data.pollMetadataIcon.iconType)}},
voteCount:{configurable:!0,enumerable:!0,get:function(){var J;return((J=this.data)==null?void 0:J.voteCount)||_.v2("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var J;return(J=this.data)==null?void 0:J.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.L(this.data.backstageAttachment,zX$))}},
hasQuiz:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.L(this.data.backstageAttachment,tzQ))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.L(this.data.backstageAttachment,Irz))}}});
Vp.prototype.onYtServiceRequestCompleted=Vp.prototype.onYtServiceRequestCompleted;Vp.prototype.onYtServiceRequestSent=Vp.prototype.onYtServiceRequestSent;Vp.prototype.onYtCommentPollRevert=Vp.prototype.onYtCommentPollRevert;Vp.prototype.onYtCommentboxDismiss=Vp.prototype.onYtCommentboxDismiss;Vp.prototype.onYtNavigate=Vp.prototype.onYtNavigate;Vp.prototype.isLoadingChanged=Vp.prototype.isLoadingChanged;Vp.prototype.dataChanged=Vp.prototype.dataChanged;Vp.prototype.contentTextChanged=Vp.prototype.contentTextChanged;
_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],Vp.prototype,"actionHandlerBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Vp.prototype,"rendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],Vp.prototype,"rendererstamperBehavior",void 0);_.O([_.Iu("#contentTextExpander"),_.R("design:type",Object)],Vp.prototype,"expander",void 0);
_.O([_.Iu("#edit-dialog"),_.R("design:type",Element)],Vp.prototype,"editDialogElement",void 0);_.O([_.U(),_.R("design:type",Object)],Vp.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],Vp.prototype,"hasInlineCommentSection",void 0);_.O([_.U(),_.R("design:type",Object)],Vp.prototype,"editDialog",void 0);_.O([_.U(),_.R("design:type",Object)],Vp.prototype,"isLoading",void 0);
_.O([_.U({computed:"computeIsPollHeaderEnabled(data)"}),_.R("design:type",Boolean)],Vp.prototype,"isPollHeaderEnabled",void 0);_.O([_.U(),_.R("design:type",Object)],Vp.prototype,"shouldHideAuthor",void 0);_.O([_.U(),_.R("design:type",Object)],Vp.prototype,"shouldShowVideoTime",void 0);_.O([_.U(),_.R("design:type",Object)],Vp.prototype,"isInEngagementPanel",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Vp.prototype,"hideBorder",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Vp.prototype,"usesFullLockup",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Vp.prototype,"shouldShowMenuInCompactView",void 0);_.O([_.q("isInEngagementPanel"),_.R("design:type",Number),_.R("design:paramtypes",[])],Vp.prototype,"postTextMaxLines",null);_.O([_.q("data.icon.iconType"),_.R("design:type",Object),_.R("design:paramtypes",[])],Vp.prototype,"pollIcon",null);
_.O([_.NE("data.contentText"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Vp.prototype,"contentTextChanged",null);_.O([_.kr("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Vp.prototype,"dataChanged",null);_.O([_.NE("isLoading"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Vp.prototype,"isLoadingChanged",null);
_.O([_.ps("yt-navigate"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],Vp.prototype,"onYtNavigate",null);_.O([_.ps("yt-commentbox-dismiss"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Vp.prototype,"onYtCommentboxDismiss",null);_.O([_.ps("yt-comment-poll-revert"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,Object]),_.R("design:returntype")],Vp.prototype,"onYtCommentPollRevert",null);
_.O([_.ps("yt-service-request-sent"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,_.qd]),_.R("design:returntype")],Vp.prototype,"onYtServiceRequestSent",null);_.O([_.ps("yt-service-request-completed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],Vp.prototype,"onYtServiceRequestCompleted",null);_.O([_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],Vp.prototype,"voteCount",null);
_.O([_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],Vp.prototype,"commentCount",null);_.O([_.q("data.backstageAttachment"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Vp.prototype,"hasPoll",null);_.O([_.q("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Vp.prototype,"hasQuiz",null);_.O([_.q("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Vp.prototype,"hasUploadedVideo",null);
Vp=_.O([_.E({is:"ytd-backstage-post-renderer",disableElementRegistration:!0})],Vp);
_.v(Vp,"ytd-backstage-post-renderer",function(){if(noL!==void 0)return noL;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return noL=J},{mode:1});var rza;var PI=function(){var J=_.h.apply(this,arguments)||this;J.editDialog=null;J.showExpandButton=!1;J.isRichGrid=!1;J.usesFullLockup=!1;return J};
_.D(PI,_.h);_.V=PI.prototype;_.V.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"}}}};
_.V.dataChanged=function(){this.editDialog=null;this.showExpandButton=this.computeShowExpandButton(this.data)};
_.V.computeShowExpandButton=function(J){return this.usesCompactLockup||J&&J.showFullContentText?!1:this.repostContentTextEl.scrollHeight>this.repostContentTextEl.clientHeight};
_.V.computeUsesCompactLockup=function(J){return!!J.condensedContent};
_.V.computeShowFullContentText=function(J){return!J};
_.V.onYtNavigate=function(J){J=this.get("updateCommentDialogEndpoint",J.detail.endpoint);this.openEditDialog(J)};
_.V.onYtCommentboxDismiss=function(){this.editDialog=null};
_.V.openEditDialog=function(J){J&&J.dialog&&(this.editDialog=J.dialog,J=this.repostEditDialogEl.firstElementChild)&&(J.focus(),J.openDialog&&J.openDialog())};
_.V.onTap=function(J){if(this.data){var c=null;this.usesCompactLockup&&!_.AP(_.OT(J)||[],this.hostElement,["YT-IMG-SHADOW"])?c=this.get("navigationEndpoint",this.data):J.target===this.moreButtonEl&&(c=this.get("navigationEndpoint",J.target.data));c&&_.cA(this.hostElement,"yt-navigate",{endpoint:c})}};
PI.prototype.onYtCommentboxDismiss=PI.prototype.onYtCommentboxDismiss;PI.prototype.onYtNavigate=PI.prototype.onYtNavigate;PI.prototype.dataChanged=PI.prototype.dataChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],PI.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],PI.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],PI.prototype,"data",void 0);
_.O([_.U(),_.R("design:type",Object)],PI.prototype,"editDialog",void 0);_.O([_.U({computed:"computeUsesCompactLockup(data)",reflectToAttribute:!0}),_.R("design:type",Boolean)],PI.prototype,"usesCompactLockup",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],PI.prototype,"showExpandButton",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],PI.prototype,"isRichGrid",void 0);
_.O([_.U({computed:"computeShowFullContentText(data.showFullContentText)",reflectToAttribute:!0}),_.R("design:type",Boolean)],PI.prototype,"showFullContentText",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],PI.prototype,"usesFullLockup",void 0);_.O([_.Iu("#more"),_.R("design:type",Object)],PI.prototype,"moreButtonEl",void 0);_.O([_.Iu("#repost-content-text"),_.R("design:type",HTMLElement)],PI.prototype,"repostContentTextEl",void 0);
_.O([_.Iu("#repost-edit-dialog"),_.R("design:type",HTMLElement)],PI.prototype,"repostEditDialogEl",void 0);_.O([_.kr("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],PI.prototype,"dataChanged",null);_.O([_.ps("yt-navigate"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],PI.prototype,"onYtNavigate",null);
_.O([_.ps("yt-commentbox-dismiss"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],PI.prototype,"onYtCommentboxDismiss",null);PI=_.O([_.E({is:"ytd-shared-post-renderer",disableElementRegistration:!0})],PI);
_.v(PI,"ytd-shared-post-renderer",function(){if(rza!==void 0)return rza;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return rza=J},{mode:1});var siL;var Lk2;var MI=function(){return _.h.apply(this,arguments)||this};
_.D(MI,_.h);MI.prototype.attached=function(){var J=this;this.networkStatusManager||(this.networkStatusManager=new _.On,this.networkStatusManager.listen("publicytnetworkstatus-online",function(){J.onlineHandler()}))};
MI.prototype.detached=function(){var J=this;this.networkStatusManager&&(this.networkStatusManager.unlisten("publicytnetworkstatus-online",function(){J.onlineHandler()}),delete this.networkStatusManager)};
MI.prototype.onlineHandler=function(){this.data.serviceEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint)};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],MI.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],MI.prototype,"ytComponentBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],MI.prototype,"data",void 0);MI=_.O([_.E({disableElementRegistration:!0,is:"ytd-reload-page-button-renderer"})],MI);
_.v(MI,"ytd-reload-page-button-renderer",function(){if(Lk2!==void 0)return Lk2;var J=document.createElement("template");_.z(J,'\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>');J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);
return Lk2=J},{mode:1});var Dn_={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"},pS=function(){var J=_.h.apply(this,arguments)||this;J.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return J};
_.D(pS,_.h);_.V=pS.prototype;_.V.attached=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.V.configureRendererStamper=function(){return{buttons:{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer",reloadPageButtonRenderer:"ytd-reload-page-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.V.computeHasBodyText=function(J){return!!J.bodyText};
_.V.computeButtons=function(J){var c=[];J.ctaButton&&c.push(J.ctaButton);J.secondaryButton&&c.push(J.secondaryButton);return c};
_.V.computeRendererStyle=function(J){return J.style?J.style.value.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():J.icon?"":"no-icon"};
_.V.getIconName=function(J,c){c=c===void 0?!1:c;if(J===void 0)return"";J=this.get("icon.iconType",J);var m;_.w("enable_hlp_client_icon_pick")?m=this.getThemedIcon(J,c):m=J;(c=Dn_[m])||(c="yt-icons");return[c,m].join(":")};
_.V.getThemedIcon=function(J,c){return["HASHTAG_LANDING_PAGE_EMPTY","HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE"].includes(J)?c?"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE":"HASHTAG_LANDING_PAGE_EMPTY":["HASHTAG_LANDING_PAGE_ERROR","HASHTAG_LANDING_PAGE_ERROR_DARK_MODE"].includes(J)?c?"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE":"HASHTAG_LANDING_PAGE_ERROR":J};
_.V.isThumbnail=function(J){return!!J.thumbnail};
_.V.onDarkModeToggledAction=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.V.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],pS.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],pS.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],pS.prototype,"ytActionHandlerBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],pS.prototype,"data",void 0);
_.O([_.U({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.R("design:type",String)],pS.prototype,"rendererStyle",void 0);_.O([_.U({computed:"getIconName(data, isDarkTheme)",reflectToAttribute:!0}),_.R("design:type",String)],pS.prototype,"iconName",void 0);_.O([_.U({computed:"isThumbnail(data)",reflectToAttribute:!0}),_.R("design:type",Boolean)],pS.prototype,"thumbnail",void 0);_.O([_.U({computed:"computeButtons(data)"}),_.R("design:type",Array)],pS.prototype,"buttons",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],pS.prototype,"isDarkTheme",void 0);_.O([_.U({computed:"computeHasBodyText(data)",reflectToAttribute:!0}),_.R("design:type",Boolean)],pS.prototype,"hasBodyText",void 0);pS=_.O([_.E({is:"ytd-background-promo-renderer",disableElementRegistration:!0})],pS);
_.v(pS,"ytd-background-promo-renderer",function(){if(siL!==void 0)return siL;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return siL=J},{mode:1});var WkQ;var NI=function(){var J=_.h.apply(this,arguments)||this;J.collections=_.w("web_modern_collections_v2");return J};
_.D(NI,_.h);_.eE.Object.defineProperties(NI.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var J,c,m,b,x,P;return{thumbnailSize:"small",doubleStack:!1,sampledThumbnailColor:(J=this.data)==null?void 0:(c=J.thumbnail)==null?void 0:c.sampledThumbnailColor,vibrantColorPalette:(m=this.data)==null?void 0:(b=m.thumbnail)==null?void 0:b.vibrantColorPalette,darkColorPalette:(x=this.data)==null?void 0:(P=x.thumbnail)==null?void 0:P.darkColorPalette,experimentEnabled:this.collections}}}});
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],NI.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],NI.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],NI.prototype,"collections",void 0);_.O([_.q("data","collections"),_.R("design:type",Object),_.R("design:paramtypes",[])],NI.prototype,"collectionStack",null);NI=_.O([_.E({is:"ytd-compact-station-renderer",disableElementRegistration:!0})],NI);
_.v(NI,"ytd-compact-station-renderer",function(){if(WkQ!==void 0)return WkQ;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return WkQ=J},{mode:1});var z76;var tA=function(){var J=_.h.apply(this,arguments)||this;J.isRichGrid=!1;return J};
_.D(tA,_.h);tA.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer",subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}}}};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],tA.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],tA.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],tA.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],tA.prototype,"isRichGrid",void 0);tA=_.O([_.E({is:"ytd-grid-channel-renderer",disableElementRegistration:!0})],tA);
_.v(tA,"ytd-grid-channel-renderer",function(){if(z76!==void 0)return z76;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return z76=J},{mode:1});var uf_;var IV=function(){return _.h.apply(this,arguments)||this};
_.D(IV,_.h);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],IV.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],IV.prototype,"data",void 0);IV=_.O([_.E({is:"ytd-grid-movie-playlist-renderer",disableElementRegistration:!0})],IV);
_.v(IV,"ytd-grid-movie-playlist-renderer",function(){if(uf_!==void 0)return uf_;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return uf_=J},{mode:1});var fgB;var KS=function(){var J=_.h.apply(this,arguments)||this;J.downloadProgress=0;J.transferState="TRANSFER_STATE_UNKNOWN";J.modernButtons=_.w("web_modern_buttons");J.useModernCollectionsV2=_.w("web_modern_collections_v2");return J};
_.D(KS,_.h);KS.prototype.detached=function(){this.ytdLockupBehavior.lockupIsHovered=!1};
KS.prototype.configureRendererStamper=function(){return{"data.menu":pi}};
KS.prototype.dataChanged=function(){this.data&&this.transferStateChanged()};
KS.prototype.transferStateChanged=function(){this.isDownloads=!1;if(this.transferState!=="TRANSFER_STATE_UNKNOWN"&&this.entityInfo&&!_.w("woffle_playlist_renderer_killswitch")){var J,c=p$2(this.entityInfo,this.transferState,this.downloadProgress,(J=this.data)==null?void 0:J.playlistId,this.isOnline);J=c.viewPlaylistText;var m=c.badges;c=c.thumbnailOverlays;this.isDownloads=!!J||!!m;this.set("data.viewPlaylistText",J);m&&m.length>0&&this.set("data.badges",m);c&&c.length>0&&this.set("data.thumbnailOverlays",
c)}};
_.eE.Object.defineProperties(KS.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 J;return!((J=this.data)==null?0:J.menu)}}});
KS.prototype.transferStateChanged=KS.prototype.transferStateChanged;KS.prototype.dataChanged=KS.prototype.dataChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],KS.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.$N),_.R("design:type",Object)],KS.prototype,"ytdLockupBehavior",void 0);_.O([_.f(_.fY),_.R("design:type",Object)],KS.prototype,"ytdReduxBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],KS.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.U({selector:_.LMm,selectorArgs:["data.playlistId"]}),_.R("design:type",Object)],KS.prototype,"downloadProgress",void 0);_.O([_.U({selector:_.XM,selectorArgs:["data.playlistId"]}),_.R("design:type",Object)],KS.prototype,"transferState",void 0);_.O([_.U({selector:syT,selectorArgs:["data.playlistId"]}),_.R("design:type",Object)],KS.prototype,"entityInfo",void 0);_.O([_.U({selector:HOT}),_.R("design:type",Boolean)],KS.prototype,"isOnline",void 0);
_.O([_.U(),_.R("design:type",Object)],KS.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],KS.prototype,"downloadRenderData",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],KS.prototype,"modernButtons",void 0);_.O([_.U({value:!1,reflectToAttribute:!0}),_.R("design:type",Boolean)],KS.prototype,"isDownloads",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],KS.prototype,"useModernCollectionsV2",void 0);
_.O([_.q("transferState"),_.U({reflectToAttribute:!0}),_.R("design:type",String),_.R("design:paramtypes",[])],KS.prototype,"downloadState",null);_.O([_.q("data"),_.U({reflectToAttribute:!0}),_.R("design:type",Boolean),_.R("design:paramtypes",[])],KS.prototype,"menuHidden",null);_.O([_.kr("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],KS.prototype,"dataChanged",null);
_.O([_.kr("transferState","downloadProgress","isOnline"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],KS.prototype,"transferStateChanged",null);KS=_.O([_.E({is:"ytd-grid-playlist-renderer",disableElementRegistration:!0})],KS);
_.v(KS,"ytd-grid-playlist-renderer",function(){if(fgB!==void 0)return fgB;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return fgB=J},{mode:1});var Yu$;var CS=function(){var J=_.h.apply(this,arguments)||this;J.collections=_.w("web_modern_collections_v2");return J};
_.D(CS,_.h);CS.prototype.configureRendererStamper=function(){return{"data.menu":pi,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.eE.Object.defineProperties(CS.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var J,c,m,b,x,P;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(J=this.data)==null?void 0:(c=J.thumbnail)==null?void 0:c.sampledThumbnailColor,vibrantColorPalette:(m=this.data)==null?void 0:(b=m.thumbnail)==null?void 0:b.vibrantColorPalette,darkColorPalette:(x=this.data)==null?void 0:(P=x.thumbnail)==null?void 0:P.darkColorPalette,experimentEnabled:this.collections}}}});
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],CS.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.XP),_.R("design:type",Object)],CS.prototype,"ytdDismissibleItemBehavior",void 0);_.O([_.f(_.$N),_.R("design:type",Object)],CS.prototype,"ytdLockupBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],CS.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],CS.prototype,"data",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],CS.prototype,"collections",void 0);_.O([_.q("data","collections"),_.R("design:type",Object),_.R("design:paramtypes",[])],CS.prototype,"collectionStack",null);CS=_.O([_.E({is:"ytd-grid-radio-renderer",disableElementRegistration:!0})],CS);
_.v(CS,"ytd-grid-radio-renderer",function(){if(Yu$!==void 0)return Yu$;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return Yu$=J},{mode:1});var XCj;var aV=function(){var J=_.h.apply(this,arguments)||this;J.useModernCollectionsV2=_.w("web_modern_collections_v2");return J};
_.D(aV,_.h);aV.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
aV.prototype.computeNavigationEndpoint=function(J){return v_3(J==null?void 0:J.navigationEndpoint)};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],aV.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],aV.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.$N),_.R("design:type",Object)],aV.prototype,"ytdLockupBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],aV.prototype,"data",void 0);_.O([_.U({computed:"computeNavigationEndpoint(data)"}),_.R("design:type",Object)],aV.prototype,"computedNavigationEndpoint",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],aV.prototype,"useModernCollectionsV2",void 0);aV=_.O([_.E({is:"ytd-grid-show-renderer",disableElementRegistration:!0})],aV);
_.v(aV,"ytd-grid-show-renderer",function(){if(XCj!==void 0)return XCj;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return XCj=J},{mode:1});var ZWj;_.kP=function(J){this.playerClient=J};
_.quQ=function(J,c,m){m=m===void 0?{}:m;return J.playerClient.setOption("ad",c,m)};
_.kP.prototype.getOptions=function(){return this.playerClient.getOptions("ad")||[]};
_.kP.prototype.executeCommand=function(J,c){this.getOptions().includes("executeCommand")?_.quQ(this,"executeCommand",{command:J,layoutId:c}):_.yG("Calling executeCommand when adModule is not loaded")};var nS=function(){return _.h.apply(this,arguments)||this};
_.D(nS,_.h);nS.prototype.getLayoutId=function(){var J=_.$y("yt.www.ads.eventcache.getLastCompanionData");return J?(J=J())&&J.layoutId:null};
nS.prototype.onTap=function(){if(this.data&&this.data.clickthroughEndpoint){var J=_.ep(),c=this.getLayoutId(),m=this.data.clickthroughEndpoint;J&&c&&_.w("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?J.getPlayerPromise().then(function(b){(new _.kP(b)).executeCommand(m,c)}):_.cA(this.hostElement,"yt-navigate",{endpoint:m})}};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],nS.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],nS.prototype,"data",void 0);nS=_.O([_.E({is:"ytd-shopping-companion-item-renderer",disableElementRegistration:!0})],nS);
_.v(nS,"ytd-shopping-companion-item-renderer",function(){if(ZWj!==void 0)return ZWj;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return ZWj=J},{mode:1});var Un$;var T5=function(){var J=_.h.apply(this,arguments)||this;J.isExpandableContent=!1;return J};
_.D(T5,_.h);_.eE.Object.defineProperties(T5.prototype,{showCta:{configurable:!0,enumerable:!0,get:function(){var J;return!((J=this.data)==null||!J.ctaText)}},
ctaText:{configurable:!0,enumerable:!0,get:function(){var J;return(J=this.data)==null?void 0:J.ctaText}},
hasPriceTopPosition:{configurable:!0,enumerable:!0,get:function(){var J;return((J=this.data)==null?void 0:J.layoutStyle)!=="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
hasPriceBottomPosition:{configurable:!0,enumerable:!0,get:function(){var J;return((J=this.data)==null?void 0:J.layoutStyle)==="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
useNewStyle:{configurable:!0,enumerable:!0,get:function(){var J;return(J=this.data)==null?void 0:J.useNewStyle}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var J;return!((J=this.data)==null||!J.priceReplacementText)}},
priceValue:{configurable:!0,enumerable:!0,get:function(){var J,c,m;return((J=this.data)==null?void 0:J.price)||((c=this.data)==null?void 0:(m=c.dealsData)==null?void 0:m.currentPrice)}},
showDeal:{configurable:!0,enumerable:!0,get:function(){var J,c;if((J=this.data)!=null&&J.dealsData&&((c=this.data)==null||!c.priceReplacementText)){J=this.data.dealsData;var m,b,x;return((m=J.salesData)==null?void 0:m.originalPrice)||((b=J.priceDropData)==null?void 0:b.referencePrice)||((x=J.promotionData)==null?void 0:x.promotionLabel)}}},
showAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var J;return!((J=this.data)==null||!J.affiliateDisclaimer)}},
useSaleStyle:{configurable:!0,enumerable:!0,get:function(){var J,c;return(J=this.data)==null?void 0:(c=J.dealsData)==null?void 0:c.salesData}},
useFromBrandCtaStyle:{configurable:!0,enumerable:!0,get:function(){var J;return((J=this.data)==null?void 0:J.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_BRAND"}},
useFromVendorCtaStyle:{configurable:!0,enumerable:!0,get:function(){var J;return((J=this.data)==null?void 0:J.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_VENDOR"}},
useShoppingCollectionCtaStyle:{configurable:!0,enumerable:!0,get:function(){var J;return((J=this.data)==null?void 0:J.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_SHOPPING_COLLECTION"}}});
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],T5.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],T5.prototype,"componentBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],T5.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],T5.prototype,"isExpandableContent",void 0);_.O([_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],T5.prototype,"showCta",null);
_.O([_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],T5.prototype,"ctaText",null);_.O([_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],T5.prototype,"hasPriceTopPosition",null);_.O([_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],T5.prototype,"hasPriceBottomPosition",null);_.O([_.U({reflectToAttribute:!0}),_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],T5.prototype,"useNewStyle",null);
_.O([_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],T5.prototype,"showPriceReplacementText",null);_.O([_.U({reflectToAttribute:!0}),_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],T5.prototype,"priceValue",null);_.O([_.U({reflectToAttribute:!0}),_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],T5.prototype,"showDeal",null);_.O([_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],T5.prototype,"showAffiliateDisclaimer",null);
_.O([_.U({reflectToAttribute:!0}),_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],T5.prototype,"useSaleStyle",null);_.O([_.U({reflectToAttribute:!0}),_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],T5.prototype,"useFromBrandCtaStyle",null);_.O([_.U({reflectToAttribute:!0}),_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],T5.prototype,"useFromVendorCtaStyle",null);
_.O([_.U({reflectToAttribute:!0}),_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],T5.prototype,"useShoppingCollectionCtaStyle",null);T5=_.O([_.E({disableElementRegistration:!0,is:"ytd-vertical-product-card-renderer"})],T5);
_.v(T5,"ytd-vertical-product-card-renderer",function(){if(Un$!==void 0)return Un$;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return Un$=J},{mode:1});var SuC;var w0=function(){return _.h.apply(this,arguments)||this};
_.D(w0,_.h);w0.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],w0.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],w0.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.$N),_.R("design:type",Object)],w0.prototype,"ytdLockupBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],w0.prototype,"data",void 0);w0=_.O([_.E({disableElementRegistration:!0,is:"ytd-grid-movie-renderer"})],w0);
_.v(w0,"ytd-grid-movie-renderer",function(){if(SuC!==void 0)return SuC;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return SuC=J},{mode:1});var h7Z;var r0=function(){var J=_.h.apply(this,arguments)||this;J.rounded=!0;J.itemStyle="small-item";return J};
_.D(r0,_.h);r0.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var J,c,m,b,x=(c=_.L((J=this.data)==null?void 0:J.buttonCommand,_.CO))==null?void 0:(m=c.item)==null?void 0:(b=m.notificationTextRenderer)==null?void 0:b.successResponseText;x&&_.eTe(this.hostElement,x)}};
_.eE.Object.defineProperties(r0.prototype,{hasPrice:{configurable:!0,enumerable:!0,get:function(){var J;return((J=this.data)==null?void 0:J.price)!==void 0}},
hasPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var J;return!((J=this.data)==null||!J.priceReplacementText)}},
hasAdditionalFeesText:{configurable:!0,enumerable:!0,get:function(){var J;return((J=this.data)==null?void 0:J.additionalFeesText)!==void 0}},
hasAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var J;return((J=this.data)==null?void 0:J.affiliateDisclaimer)!==void 0}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var J,c;return((J=this.data)==null?void 0:J.isProductPlaceholder)!==void 0&&((c=this.data)==null?void 0:c.isProductPlaceholder)}},
hideOpenInNewIcon:{configurable:!0,enumerable:!0,get:function(){var J;return((J=this.data)==null?void 0:J.showOpenInNewIcon)===!1}},
ariaLabel:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.accessibilityTitle?this.data.accessibilityTitle:this.data.title+", "+this.data.price+", "+this.data.additionalFeesText+", "+this.data.vendorName}}});
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],r0.prototype,"ytRendererBehavior",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],r0.prototype,"rounded",void 0);_.O([_.U(),_.R("design:type",Object)],r0.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",String)],r0.prototype,"itemStyle",void 0);_.O([_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],r0.prototype,"hasPrice",null);
_.O([_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],r0.prototype,"hasPriceReplacementText",null);_.O([_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],r0.prototype,"hasAdditionalFeesText",null);_.O([_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],r0.prototype,"hasAffiliateDisclaimer",null);_.O([_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],r0.prototype,"isProductPlaceholder",null);
_.O([_.U(),_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],r0.prototype,"hideOpenInNewIcon",null);_.O([_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],r0.prototype,"ariaLabel",null);r0=_.O([_.E({disableElementRegistration:!0,is:"ytd-merch-shelf-item-renderer"})],r0);
_.v(r0,"ytd-merch-shelf-item-renderer",function(){if(h7Z!==void 0)return h7Z;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return h7Z=J},{mode:1});var dnj=_.Q1(function(J){var c=_.oN("button-card-view-model");_.vg(c,function(){return J.data().rendererContext});
return _.C("button-card-view-model",{el:c,class:"ytwButtonCardViewModelHost",tabindex:0,"aria-label":function(){return J.data().title},
role:"button"},_.C(_.TH,{model:{}}),_.C("div",{class:"ytwButtonCardViewModelHostContentContainer"},_.C("div",{class:"ytwButtonCardViewModelHostContentContainerIconContainer"},_.C(_.n,{cond:function(){return J.data().image},
then:function(m){return _.C(_.RA,{data:m,alt:function(){var b;return(b=J.data().title)!=null?b:""},
className:"ytwButtonCardViewModelHostImage"})}})),_.C("div",{class:"ytwButtonCardViewModelHostContentContainerTitleContainer"},function(){return J.data().title})))},"Ya");_.w("web_button_view_model_wcw_registration_killswitch")||_.lv(dnj,"button-card-view-model",{props:{data:_.vt}});_.lv(_.Q1(function(J){J=_.ou(J,{className:void 0});var c=J.data;J=J.className;var m=_.n2(function(){return c().onTapCommand},void 0,"NprDr");
return _.C("ytd-shopping-item-card",{class:_.pq("ytdShoppingItemCardHost",J)},_.C(_.cL,{command:m,className:"ytdShoppingItemCardHostLink"},_.C("div",{class:"ytdShoppingItemCardHostThumbnailViewModel"},_.C(_.wi,{data:function(){return c().thumbnailViewModel}},{thumbnailViewModel:function(b){return _.C(_.oC,{data:b.data,
aspectRatio:3})}})),_.C("div",null,_.C("p",{class:"ytdShoppingItemCardHostItemTitle"},_.C(_.j8,{text:function(){return c().itemTitle}})),_.C("p",{class:"ytdShoppingItemCardHostPrice"},_.C(_.j8,{text:function(){return c().priceOrStatus}})))))},"Za"),"ytd-shopping-item-card",{props:{data:_.vt,
className:_.vt}});var $nz={isAdsVideo:!0},Gpz={showPlayerControls:!1,forceMutedVolume:!0,roundedCornersSize:3},Eou={showPlayerControls:!1,videoPreviewDurationMs:15E3},voQ={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!_.w("web_shorts_imp_fullwidth_killswitch")};var gi=null,joq={};var ybm="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(" "),sf={},B$Q=(sf.FEwhat_to_watch="home",sf.FEhashtag="hashtag",sf.FEtrending="trending",sf.FEhistory="history",sf.SPunlimited="premium",sf.FEmemberships_and_purchases="paid_memberships",sf.SPredeem_code="redeem",sf.SPverify_location="locate",sf.SPminor_moment="minor_moment",
sf.FEmini_app_container="mini_app",sf.FEnews_destination="news",sf.SPopen_in_app="open_in_app",sf.FEexplore="explore",sf.FEsubscriptions="subscriptions",sf.FEsfv_audio_pivot="sfv_audio_pivot",sf.FEplaylist_aggregation="playlist_aggregation",sf);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");_.ML("init");var OWQ=function(){},QiZ=_.Q1(function(J){var c=J.data;
var m=J.inlineMetadata;var b=J.aspectRatio;var x=J.scrimStyle;var P=J.className;var p=J.useDefaultStyle;var t=new OWQ,I=_.w("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",a=_.n2(function(){return(p==null?0:p())?I==="SHORTS_LOCKUP_STYLE_SLIM":c().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"iLX4Re"),k=_.n2(function(){return _.XD(m)||a()||!1},void 0,"GaU7Ef"),H=function(){return(x==null?void 0:x())!==void 0?x==null?void 0:x():1},T=_.n2(function(){return c().belowThumbnailMetadata||
!k()},void 0,"vsyhaf");
J=_.oN("ytm-shorts-lockup-view-model",function(l){t&&(t.hostElement=l,Z())});
_.gv(J,{visibilityCallback:function(l){var y=c().onFirstVisible;l&&y&&_.hd(y)},
showOption:{calledOnce:!0,state:"visible"}});P=_.pq("shortsLockupViewModelHost",P);var r=_.oN("div"),W={};W=_.pq(function(){return a(),"shortsLockupViewModelHostThumbnailContainer"},(W.shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree=function(){return _.XD(b)===1},W.shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour=function(){return _.XD(b)===2},W.shortsLockupViewModelHostThumbnailContainerRounded=function(){return!a()},W.shortsLockupViewModelHostThumbnailContainerCustomDimensions=
function(){return!_.w("web_shorts_2_by_3_lockups_study")&&!_.w("desktop_search_enable_two_by_three_shorts_aspect_ratio")},W));
var Y,Z=function(){if(t){var l;(l=Y)==null||Jm(l);var y;t.hostElement&&((y=t.data)==null?0:y.inlinePlayerData)&&(Y=AT({mediaRenderer:t,lockupElement:t.hostElement,thumbnailElement:r.value,videoPreviewOpts:voQ}))}};
_.ui(function(){t&&(t.data=c(),Z())},"zGfw4b");
var d=_.n2(function(){return c().thumbnail},void 0,"H4vZOb"),G=_.n2(function(){return c().badge},void 0,"I1QWQc"),e=_.n2(function(){return c().onTap},void 0,"eB6nuc"),A={};
return _.C("ytm-shorts-lockup-view-model",{el:J,class:P},_.C(_.cG,null,_.C(_.cL,{command:e,className:_.pq("shortsLockupViewModelHostEndpoint",(A.shortsLockupViewModelHostEndpointNoOutsideMetadata=function(){return!T()},A),"reel-item-endpoint",""),
ariaHidden:function(){return!k()},
tabIndex:function(){return k()?0:-1}},_.C("div",{el:r,
class:W},_.C(_.n,{cond:d,then:function(){return _.C(_.RA,{data:function(){var l;return(l=d==null?void 0:d())!=null?l:{}},
alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),null),_.C(_.n,{cond:k,
then:function(){return _.C(Azj,{data:c,scrimStyle:H,useDefaultStyle:p})}}),_.C(_.wi,{data:G},{badgeViewModel:function(l){return _.C(_.Fo,{data:l.data,
class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0})}})),_.C(_.n,{cond:function(){return k()&&c().menuOnTap},
then:function(){return _.C(R76,{data:c,inlineMetadata:!0})}}),_.C(_.n,{cond:T,
then:function(){return _.C(ooC,{data:c,useDefaultStyle:p})}})))},"$a"),Azj=_.Q1(function(J){var c=J.data;
var m=J.scrimStyle;var b=J.useDefaultStyle;var x=_.w("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",P=b&&_.w("web_hide_primary_text_for_pivot_panel"),p=_.n2(function(){return(b==null?0:b())?x==="SHORTS_LOCKUP_STYLE_SLIM":c().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"N1Ofye");
J={};J=_.pq("shortsLockupViewModelHostInlineMetadata",(J.shortsLockupViewModelHostMetadataRounded=function(){return!p()},J.shortsLockupViewModelHostInlineMetadataShortScrim=function(){return(m==null?void 0:m())===3&&!_.w("enable_shorts_lockup_new_scrim")},J.shortsLockupViewModelHostInlineMetadataShortScrimNew=function(){return(m==null?void 0:m())===3&&_.w("enable_shorts_lockup_new_scrim")},J.shortsLockupViewModelHostInlineMetadataMediumScrim=function(){return(m==null?void 0:m())===2||(m==null?void 0:
m())===4},J.shortsLockupViewModelHostShowOverPlayer=function(){return!0},J),"image-overlay-text");
var t={};return _.C("div",{class:J},_.C("h3",{class:_.pq("shortsLockupViewModelHostMetadataTitle",(t.shortsLockupViewModelHostMetadataTitleTextShadow=function(){return(m==null?void 0:m())===4},t)),
"aria-label":function(){return c().accessibilityText}},_.C(_.n,{cond:function(){var I;
return!((I=c().overlayMetadata)==null||!I.primaryText)&&!P},
then:function(){return _.C(_.j8,{text:function(){var I;return(I=c().overlayMetadata)==null?void 0:I.primaryText},
noEndpoints:!0,noStyleRuns:!0})}})),_.C(_.n,{cond:function(){var I;
return(I=c().overlayMetadata)==null?void 0:I.secondaryText},
then:function(){return _.C(e7z,{data:c,scrimStyle:m,className:void 0})}}))},"ab"),ooC=_.Q1(function(J){var c=J.data;
var m=J.useDefaultStyle;var b=_.w("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",x=_.n2(function(){return(m==null?0:m())?b==="SHORTS_LOCKUP_STYLE_SLIM":c().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"ElFnSc");
J=_.pq(function(){return x()?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded"},"image-overlay-text");
var P,p=_.Kq(function(){var H;(H=P)==null||H.click();return!1}),t=_.n2(function(){return c().belowThumbnailMetadata||c().overlayMetadata},void 0,"leqnzc"),I=function(){var H;
return(H=t())==null?void 0:H.avatar},a={},k={};
return _.C("div",{class:_.pq(J,(a.shortsLockupViewModelHostOutsideMetadataHasAvatar=function(){return!!I()},a)),
"on:click":p},_.C(_.wi,{data:I},{avatarViewModel:function(H){return _.C("div",{class:"shortsLockupViewModelHostOutsideMetadataAvatar"},_.C(_.s8,{data:H.data}))}}),_.C("div",null,_.C("h3",{class:_.pq("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(k.shortsLockupViewModelHostOutsideMetadataMissingTitle=function(){var H,T;
return!((H=t())==null?0:(T=H.primaryText)==null?0:T.content)},k)),
"aria-label":function(){return c().accessibilityText}},_.C(_.cL,{ref:function(H){return void(P=H)},
command:function(){return c().onTap},
className:_.pq("shortsLockupViewModelHostEndpoint","shortsLockupViewModelHostOutsideMetadataEndpoint"),title:function(){var H,T;return(H=t())==null?void 0:(T=H.primaryText)==null?void 0:T.content}},_.C(_.n,{cond:function(){var H;
return(H=t())==null?void 0:H.primaryText},
then:function(H){return _.C(_.j8,{text:H,noEndpoints:!0,noStyleRuns:!0})}}))),_.C(_.n,{cond:function(){var H;
return(H=t())==null?void 0:H.secondaryText},
then:function(H){return _.C("div",{class:_.pq("shortsLockupViewModelHostOutsideMetadataSubhead","shortsLockupViewModelHostMetadataSubhead"),"aria-hidden":"true"},_.C(_.j8,{text:H,noStyleRuns:!0}))}})),_.C(_.n,{cond:function(){return c().menuOnTap},
then:function(){return _.C(R76,{data:c,inlineMetadata:!1})}}))},"bb"),e7z=_.Q1(function(J){var c=J.data;
var m=J.scrimStyle;J=J.className;var b={};return _.C("div",{class:_.pq((b.shortsLockupViewModelHostMetadataSubhead=function(){return(m==null?void 0:m())!==4},b.shortsLockupViewModelHostMetadataSubheadNew=_.w("enable_shorts_lockup_new_scrim"),b.shortsLockupViewModelHostMetadataSubheadTextShadow=function(){return(m==null?void 0:m())===4},b),J),
"aria-hidden":"true"},_.C(_.j8,{text:function(){var x;return(x=c().overlayMetadata)==null?void 0:x.secondaryText},
noStyleRuns:!0}))},"cb"),R76=_.Q1(function(J){var c=J.data;
var m=J.inlineMetadata;J={};J=_.pq((J.shortsLockupViewModelHostInlineMetadataMenu=function(){return m()},J.shortsLockupViewModelHostOutsideMetadataMenu=function(){return!m()},J.shortsLockupViewModelHostShowOverPlayer=function(){return!0},J),"image-overlay-text");
return _.C("div",{class:J},_.C(l$,{data:function(){return{style:m()?"overlay":"mono",accessibilityLabel:c().menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(b){b.preventDefault();b.stopPropagation();var x=_.Uv({elementsCommand:c().menuOnTap,forceNewState:!0});if(x==null?0:x.onclick)x.onclick(b)}}},
iconName:"MORE_VERT"}))},"db");var ji6=_.Q1(function(J){var c=J.data;var m=J.inlineMetadata;var b=J.aspectRatio;var x=J.scrimStyle;var P=J.className;var p=J.useDefaultStyle;J=_.n2(function(){var t=c().entityId;return t?t.replace("shorts-shelf-item-","").replace("subscriptions-",""):""},void 0,"W3Tlke");
return _.C("ytm-shorts-lockup-view-model-v2",{class:_.pq("shortsLockupViewModelHost",P)},_.C(_.PfZ,{contentId:J,aspectRatio:function(){return(b==null?void 0:b())===1?1:(b==null?void 0:b())===2?2:4}},function(){return _.C(QiZ,{data:c,
inlineMetadata:m,aspectRatio:b,scrimStyle:x,className:P,useDefaultStyle:p})}))},"eb");_.lv(ji6,"ytm-shorts-lockup-view-model-v2",{props:{data:_.Fz,inlineMetadata:_.Fz,aspectRatio:_.Fz,scrimStyle:_.Fz,className:_.Fz,useDefaultStyle:_.Fz}});var FkQ=16/9*210,LS=function(){var J=_.h.apply(this,arguments)||this;J.isExpandableContent=!1;J.hideShelfHeader=!1;J.engagementPanel=!1;J.buttonClasses=["arrow"];J.isSearch=!1;J.disableScrollEventListener=!1;J.containsLockup=!1;J.overrideArrowPositionForProductCard=!1;J.overrideArrowPositionForShoppingItemCard=!1;J.overrideArrowPositionForReelItems=!1;J.overrideArrowPositionForGridMovie=!1;J.overrideArrowPositionToCenter=!1;J.isSearchPostShelf=!1;J.overrideArrowPositionForMixedShelf=!1;J.overrideArrowPositionForMixedShelfShortsOnly=
!1;J.hasBigThumbsReelItems=!1;J.shouldUseMixedListHeight=!1;J.shouldUseShortsListHeight=!1;J.gridVideoWidth=0;J.isSearchVodShelf=!1;J.disableWheelScroll=!1;J.sizing="COMPACT";J.shortsLockupAspectRatio=0;return J};
_.D(LS,_.h);_.V=LS.prototype;
_.V.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]]"}}}}};
_.V.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.data&&this.data.items&&(this.ytdHorizontalListBehavior.useFloorScrolling=this.computeContainsPost(this.data),this.maybeUpdateSearchReelItemDimensions(),_.w("web_horizontal_list_lockup_arrow_killswitch")||this.maybeUpdateLockupAspectRatio())};
_.V.computeInitialCountNumber=function(J){if(!J)return 6;var c=J.items.some(function(P){return!!P.topicRecommendationsChipRenderer}),m=J.items.some(function(P){return!!P.displayAdRenderer}),b=this.computeShouldListItemsHaveEqualHeight(J),x=J.items.some(function(P){return!!P.gridPlaylistRenderer});
J=J.items.some(function(P){return!!P.shoppingItemCardViewModel});
return c?9:m?8:x||b?10:J?7:6};
_.V.computeContainsPost=function(J){return!!J&&!!J.items&&J.items.some(function(c){return!!c.postRenderer})};
_.V.computeContainsLockup=function(){if(_.w("web_horizontal_list_lockup_arrow_killswitch"))return!1;var J,c;return(J=this.data)==null?void 0:(c=J.items)==null?void 0:c.some(function(m){return!!m.lockupViewModel})};
_.V.maybeUpdateLockupAspectRatio=function(){var J,c;if(this.computeContainsLockup()&&((J=this.data)==null?0:(c=J.items)==null?0:c.length)){var m;J=xqq((m=this.data.items[0].lockupViewModel)==null?void 0:m.contentType,this.data.force16By9ThumbnailAspectRatio);m=uSG(J);m=this.computeLockupWidth()/m;_.V1(this.hostElement,{"--yt-horizontal-list-content-height":m+"px"})}};
_.V.computeOverrideArrowPositionForProductCard=function(J){if(this.isExpandableContent)return!1;var c;return!!(J==null?0:(c=J.items)==null?0:c.some(function(m){return!!m.verticalProductCardRenderer}))};
_.V.computeOverrideArrowPositionForShoppingItemCard=function(J){var c;return!!(J==null?0:(c=J.items)==null?0:c.some(function(m){return!!m.shoppingItemCardViewModel}))};
_.V.computeOverrideArrowPositionForReelItemRenderer=function(J){return this.containsReelItemRenderer(J)};
_.V.computeHasBigThumbsReelItems=function(J,c){return J&&this.containsReelItemRenderer(c)};
_.V.computeShouldListItemsHaveEqualHeight=function(J){return"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===(J==null?void 0:J.itemSizeConstraint)};
_.V.computeShouldListItemsHaveShortsHeight=function(J){return this.computeShouldListItemsHaveEqualHeight(J)&&!this.containsGridVideoRenderer(J)};
_.V.computeLockupWidth=function(){return this.isSearchVodShelf?360:210};
_.V.computeGridVideoWidth=function(){return this.shouldUseMixedListHeight?354:0};
_.V.containsReelItemRenderer=function(J){var c;return!!(J==null?0:(c=J.items)==null?0:c.some(function(m){return!(!m.reelItemRenderer&&!m.shortsLockupViewModel)}))};
_.V.containsGridVideoRenderer=function(J){var c;return!!(J==null?0:(c=J.items)==null?0:c.some(function(m){return!!m.gridVideoRenderer||!!m.lockupViewModel}))};
_.V.computeContainsGridMovieRenderer=function(J){var c;return!!(J==null?0:(c=J.items)==null?0:c.some(function(m){return!!m.gridMovieRenderer}))};
_.V.computeOverrideArrowPositionToCenter=function(J){return this.computeIsSearchPostShelf(J)};
_.V.computeIsSearchPostShelf=function(J){var c;return!!(J==null?0:(c=J.items)==null?0:c.some(function(m){var b,x;return((x=(b=m.postRenderer)==null?void 0:b.surface)!=null?x:"BACKSTAGE_SURFACE_TYPE_UNKNOWN")==="BACKSTAGE_SURFACE_TYPE_SEARCH"}))};
_.V.computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle=function(J){var c;return!!(J==null?0:(c=J.items)==null?0:c.some(function(m){var b,x,P;return((P=(b=m.backgroundPromoRenderer)==null?void 0:(x=b.style)==null?void 0:x.value)!=null?P:"BACKGROUND_PROMO_STYLE_TYPE_UNKNOWN")==="BACKGROUND_PROMO_STYLE_TYPE_EMBEDDED_CONTAINER"}))};
_.V.computeIsSearchVodShelf=function(J,c){return J&&this.containsGridVideoRenderer(c)};
_.V.computeDisableWheelScroll=function(J,c){return this.computeIsSearchVodShelf(J,c)};
_.V.computeSizing=function(){return this.isSearch?"STANDARD":"COMPACT"};
_.V.computeShortsLockupAspectRatio=function(J){return J&&_.w("web_shorts_2_by_3_lockups_no_search")&&!_.w("desktop_search_enable_two_by_three_shorts_aspect_ratio")?0:1};
_.V.maybeUpdateSearchReelItemDimensions=function(){this.isSearch&&this.hasBigThumbsReelItems&&_.V1(this.hostElement,{"--ytd-reel-item-thumbnail-height":FkQ+"px"})};
LS.prototype.dataChanged=LS.prototype.dataChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],LS.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],LS.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.yI.YtdHorizontalListBehavior),_.R("design:type",Object)],LS.prototype,"ytdHorizontalListBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],LS.prototype,"data",void 0);
_.O([_.U(),_.R("design:type",Object)],LS.prototype,"isExpandableContent",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],LS.prototype,"hideShelfHeader",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],LS.prototype,"engagementPanel",void 0);_.O([_.U(),_.R("design:type",Array)],LS.prototype,"buttonClasses",void 0);_.O([_.U(),_.R("design:type",Object)],LS.prototype,"isSearch",void 0);
_.O([_.U(),_.R("design:type",Object)],LS.prototype,"disableScrollEventListener",void 0);_.O([_.U({computed:"computeInitialCountNumber(data)"}),_.R("design:type",Number)],LS.prototype,"initialCount",void 0);_.O([_.U({computed:"computeContainsPost(data)"}),_.R("design:type",Boolean)],LS.prototype,"supportComponentResize",void 0);_.O([_.U({computed:"computeContainsPost(data)"}),_.R("design:type",Boolean)],LS.prototype,"containsPost",void 0);
_.O([_.U({computed:"computeContainsLockup(data)",reflectToAttribute:!0}),_.R("design:type",Object)],LS.prototype,"containsLockup",void 0);_.O([_.U({computed:"computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle(data)",reflectToAttribute:!0}),_.R("design:type",Boolean)],LS.prototype,"containsBackgroundPromoRendererWithEmbeddedContainerStyle",void 0);
_.O([_.U({computed:"computeOverrideArrowPositionForProductCard(data)",reflectToAttribute:!0}),_.R("design:type",Object)],LS.prototype,"overrideArrowPositionForProductCard",void 0);_.O([_.U({computed:"computeOverrideArrowPositionForShoppingItemCard(data)",reflectToAttribute:!0}),_.R("design:type",Object)],LS.prototype,"overrideArrowPositionForShoppingItemCard",void 0);
_.O([_.U({computed:"computeOverrideArrowPositionForReelItemRenderer(data)",reflectToAttribute:!0}),_.R("design:type",Object)],LS.prototype,"overrideArrowPositionForReelItems",void 0);_.O([_.U({computed:"computeContainsGridMovieRenderer(data)",reflectToAttribute:!0}),_.R("design:type",Object)],LS.prototype,"overrideArrowPositionForGridMovie",void 0);
_.O([_.U({computed:"computeOverrideArrowPositionToCenter(data)",reflectToAttribute:!0}),_.R("design:type",Object)],LS.prototype,"overrideArrowPositionToCenter",void 0);_.O([_.U({computed:"computeIsSearchPostShelf(data)",reflectToAttribute:!0}),_.R("design:type",Object)],LS.prototype,"isSearchPostShelf",void 0);_.O([_.U({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.R("design:type",Object)],LS.prototype,"overrideArrowPositionForMixedShelf",void 0);
_.O([_.U({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.R("design:type",Object)],LS.prototype,"overrideArrowPositionForMixedShelfShortsOnly",void 0);_.O([_.U({computed:"computeHasBigThumbsReelItems(isSearch, data)",reflectToAttribute:!0}),_.R("design:type",Object)],LS.prototype,"hasBigThumbsReelItems",void 0);
_.O([_.U({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.R("design:type",Object)],LS.prototype,"shouldUseMixedListHeight",void 0);_.O([_.U({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.R("design:type",Object)],LS.prototype,"shouldUseShortsListHeight",void 0);_.O([_.U({computed:"computeGridVideoWidth(data)",reflectToAttribute:!0}),_.R("design:type",Object)],LS.prototype,"gridVideoWidth",void 0);
_.O([_.U({computed:"computeIsSearchVodShelf(isSearch, data)",reflectToAttribute:!0}),_.R("design:type",Object)],LS.prototype,"isSearchVodShelf",void 0);_.O([_.U({computed:"computeDisableWheelScroll(isSearch, data)",reflectToAttribute:!0}),_.R("design:type",Object)],LS.prototype,"disableWheelScroll",void 0);_.O([_.U({computed:"computeSizing(isSearch)"}),_.R("design:type",Object)],LS.prototype,"sizing",void 0);
_.O([_.U({computed:"computeShortsLockupAspectRatio(isSearch)"}),_.R("design:type",Object)],LS.prototype,"shortsLockupAspectRatio",void 0);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],LS.prototype,"dataChanged",null);
_.v(LS,"yt-horizontal-list-renderer",function(){if(gIZ===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);gIZ=J}J=gIZ;return J},{mode:1});var lgz;var yzz=[10,12,14,16,18,20,24,28,32,36],BgL=[20,22,24,26,28,32,36,40,48,56,64,72,84,96,120],Dq=function(){var J=_.h.apply(this,arguments)||this;J.fontFamily="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD";J.hideOverflow=!1;J.useRoboto=!1;J.fontClass="";J.overflown=!1;J.actionMap={"yt-window-resized":"resize"};return J};
_.D(Dq,_.h);_.V=Dq.prototype;
_.V.attached=function(){var J=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();_.o3(this,function(){J.resize()});
if(!_.JK){var c,m,b;(c=document)==null||(m=c.fonts)==null||(b=m.ready)==null||b.then(function(){J.resize()})}};
_.V.dataChanged=function(){this.resize()};
_.V.guideIsExpandedChanged=function(){this.resize()};
_.V.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 J=this.getMaxNumLines(),c=this.getMinFont(),m=this.getMaxFont(),b=this.useRoboto?yzz:BgL;for(b=b.filter(function(P){return P<=m&&P>=c});b.length>1;){var x=Math.floor(b.length/2);
this.updateFontSize(b[x]);if(this.textNode.offsetWidth<=this.getMaxWidth()&&this.textNode.offsetHeight<=this.getMaxHeight()&&this.textNode.getClientRects().length<=J)b=b.slice(x,b.length);else if(this.textNode.offsetWidth>this.getMaxWidth()||this.textNode.offsetHeight>this.getMaxHeight()||this.textNode.getClientRects().length>J)b=b.slice(0,x);else break}this.updateFontSize(b[b.length-1]);this.textNode.style.visibility="inherit";this.handleOverflow(J)}};
_.V.handleOverflow=function(J){this.hideOverflow&&this.maxLines&&this.textNode.getClientRects().length>J&&(this.overflown=!0,this.textNode.classList.add("overflown"),this.textNode.style.setProperty("-webkit-line-clamp",J.toString()))};
_.V.updateFontSize=function(J){this.fontClass&&this.textNode.classList.remove(this.fontClass);this.fontClass=(this.useRoboto?"roboto-":"yt-sans-")+J;this.textNode.classList.add(this.fontClass)};
_.V.getMaxFont=function(){var J=this.useRoboto?yzz:BgL;J=J[J.length-1];return this.maxFontSize&&this.maxFontSize<=J?this.maxFontSize:J};
_.V.getMinFont=function(){var J=(this.useRoboto?yzz:BgL)[0];return this.minFontSize&&this.minFontSize>=J?this.minFontSize:J};
_.V.getMaxWidth=function(){return this.maxWidth?this.maxWidth:this.containerNode.offsetWidth};
_.V.getMaxHeight=function(){return this.maxHeight?this.maxHeight:this.containerNode.offsetHeight};
_.V.getMaxNumLines=function(){return this.maxLines&&this.text?this.maxLines+_.OG(this.text).split("\n").length-1:Infinity};
_.V.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("Dh`"+this.fontWeight);this.textNode.style.fontWeight=this.fontWeight.toString()}};
Dq.prototype.guideIsExpandedChanged=Dq.prototype.guideIsExpandedChanged;Dq.prototype.dataChanged=Dq.prototype.dataChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Dq.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.fY),_.R("design:type",Object)],Dq.prototype,"ytdReduxBehavior",void 0);_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],Dq.prototype,"actionHandlerBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Dq.prototype,"text",void 0);
_.O([_.U(),_.R("design:type",String)],Dq.prototype,"fontFamily",void 0);_.O([_.U(),_.R("design:type",Number)],Dq.prototype,"maxWidth",void 0);_.O([_.U(),_.R("design:type",Number)],Dq.prototype,"maxHeight",void 0);_.O([_.U(),_.R("design:type",Number)],Dq.prototype,"maxFontSize",void 0);_.O([_.U(),_.R("design:type",Number)],Dq.prototype,"minFontSize",void 0);_.O([_.U(),_.R("design:type",Number)],Dq.prototype,"maxLines",void 0);_.O([_.U(),_.R("design:type",Object)],Dq.prototype,"hideOverflow",void 0);
_.O([_.U({selector:_.tGG}),_.R("design:type",Boolean)],Dq.prototype,"guideIsExpanded",void 0);_.O([_.Iu("#container"),_.R("design:type",HTMLElement)],Dq.prototype,"containerNode",void 0);_.O([_.Iu("#text"),_.R("design:type",HTMLElement)],Dq.prototype,"textNode",void 0);_.O([_.kr("text"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Dq.prototype,"dataChanged",null);
_.O([_.kr("guideIsExpanded"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Dq.prototype,"guideIsExpandedChanged",null);Dq=_.O([_.E({disableElementRegistration:!0,is:"yt-dynamic-sizing-formatted-string"})],Dq);
_.v(Dq,"yt-dynamic-sizing-formatted-string",function(){if(lgz!==void 0)return lgz;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return lgz=J},{mode:1});var go$;_.JbC=function(J){_.Jq.call(this,J)};
_.D(_.JbC,_.Jq);var cbB=function(J){_.Jq.call(this,J)};
_.D(cbB,_.JbC);var WI=function(){return _.h.apply(this,arguments)||this};
_.D(WI,_.h);WI.prototype.onTapSuspendedChannel=function(){var J;if((J=this.data)!=null&&J.serviceEndpoint){var c,m;(J=(m=_.L((c=this.data)==null?void 0:c.serviceEndpoint,_.Ee))==null?void 0:m.url)?_.dB(J,void 0,void 0,window.top):(c=new cbB("Did not handle suspended account tap. No appealUrl."),_.Xc(c))}else c=new cbB("Did not handle suspended account tap. No serviceEndpoint."),_.Xc(c)};
WI.prototype.onTap=function(){var J=this,c=_.C7(),m,b=(m=_.K7(c,{veType:7116}))!=null?m:void 0;_.Ui(c,{visualElement:b});_.Sr();this.saveRoleText();var x;if((x=this.data)==null?0:x.youtubeSuspended)this.onTapSuspendedChannel();else{var P=!1,p,t;(c=(t=_.L((p=this.data)==null?void 0:p.serviceEndpoint,_.bVu))==null?void 0:t.supportedTokens)&&c.forEach(function(I){if(I.accountSigninToken)if(P=!0,J.onAccountItemTap)J.onAccountItemTap(I.accountSigninToken.signinUrl);else _.dB(I.accountSigninToken.signinUrl,
void 0,void 0,window.top)});
if(!P){if(p=this.get("serviceEndpoint",this.data))P=!0,this.ytComponentBehavior.resolveCommand(p);P||_.Zt(new cbB("Did not handle account switch tap. No token."))}}};
WI.prototype.saveRoleText=function(){if(this.data){var J=this.data,c=J.channelDelegationRole;if(c){var m,b=(m=_.L(J==null?void 0:J.serviceEndpoint,_.bVu))==null?void 0:m.supportedTokens;if(!b){var x,P,p,t;b=(x=_.L(J==null?void 0:J.serviceEndpoint,_.T3))==null?void 0:(P=x.popup)==null?void 0:(p=P.confirmDialogRenderer)==null?void 0:(t=p.confirmButton)==null?void 0:t.buttonRenderer;var I;b=(I=_.L(b==null?void 0:b.command,_.pX))==null?void 0:I.commands;if(!b)return;var a;b=(a=_.L(b[1],_.bVu))==null?
void 0:a.supportedTokens}if(b){I=void 0;a=_.M(b);for(b=a.next();!b.done;b=a.next())if(b=b.value,b.datasyncIdToken){I=b.datasyncIdToken.datasyncIdToken;break}if(I){var k;a:{if(_.JHT()&&(a=_.wS2(I+"::pom"))){a=new Ht(a);break a}a=void 0}(k=a)==null||k.set("role_text",c);if((Cum?Cum:window.location).href.indexOf("studio")!==-1&&(k=cHJ())){a=k.src?(new URL(k.src)).origin:"*";var H;(H=k.contentWindow)==null||H.postMessage({action:"save_pom_role",datasyncId:I,roleText:c},a)}}}}}};
_.eE.Object.defineProperties(WI.prototype,{enableRingForActiveAccount:{configurable:!0,enumerable:!0,get:function(){var J;return!((J=this.data)==null||!J.isSelected)}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){var J,c,m=(J=this.data)==null?void 0:(c=J.accountPhoto)==null?void 0:c.thumbnails;return m&&m.length>0&&(m[0].height===36||m[0].height===48)?m[0].height:40}}});
WI.prototype.onTap=WI.prototype.onTap;_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],WI.prototype,"ytComponentBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],WI.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],WI.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!1}),_.R("design:type",Function)],WI.prototype,"onAccountItemTap",void 0);
_.O([_.U({reflectToAttribute:!0}),_.q("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],WI.prototype,"enableRingForActiveAccount",null);_.O([_.U({reflectToAttribute:!0}),_.q("data"),_.R("design:type",Number),_.R("design:paramtypes",[])],WI.prototype,"thumbnailSize",null);_.O([_.ps("tap"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],WI.prototype,"onTap",null);WI=_.O([_.E({is:"ytd-account-item-renderer",disableElementRegistration:!0})],WI);
_.v(WI,"ytd-account-item-renderer",function(){if(go$!==void 0)return go$;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return go$=J},{mode:1});var mqZ;var z5=function(){return _.h.apply(this,arguments)||this};
_.D(z5,_.h);z5.prototype.onClickEditIcon=function(){this.data&&this.data.onTapCommand&&_.BG().resolve(_.gu).resolveCommand(this.data.onTapCommand,{form:{element:this.hostElement}})};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],z5.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],z5.prototype,"data",void 0);z5=_.O([_.E({is:"ytd-identity-chip-renderer",disableElementRegistration:!0})],z5);
_.v(z5,"ytd-identity-chip-renderer",function(){if(mqZ!==void 0)return mqZ;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return mqZ=J},{mode:1});var bLj;var xq8;var VWC;var Pb6;var uE=function(){var J=_.h.apply(this,arguments)||this;J.richItemMinWidth=_.c7("wn_grid_min_item_width",310);J.isShorts=!1;J.isWatchNext=!1;J.isExploreHub=!1;return J};
_.D(uE,_.h);_.eE.Object.defineProperties(uE.prototype,{cardItems:{configurable:!0,enumerable:!0,get:function(){var J=[],c=this.isShorts?this.slimItemsPerRow:this.itemsPerRow;this.isWatchNext&&_.V1(this.hostElement,{"--ytd-ghost-grid-items-per-row":""+this.itemsPerRow,"--ytd-ghost-grid-min-width":this.richItemMinWidth+"px"});var m;if(((m=this.data)==null?0:m.rows)&&c)for(c*=this.data.rows,m=0;m<c;m++)J.push({});return J}}});
_.O([_.f(_.fY),_.R("design:type",Object)],uE.prototype,"ytdReduxBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],uE.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],uE.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0,selector:_.W2,value:3}),_.R("design:type",Number)],uE.prototype,"itemsPerRow",void 0);_.O([_.U({selector:_.Net,value:6}),_.R("design:type",Number)],uE.prototype,"slimItemsPerRow",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Number)],uE.prototype,"richItemMinWidth",void 0);_.O([_.U({reflectToAttribute:!0,selector:_.DZ}),_.R("design:type",Boolean)],uE.prototype,"miniMode",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],uE.prototype,"isShorts",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],uE.prototype,"isWatchNext",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],uE.prototype,"isExploreHub",void 0);
_.O([_.q("data.rows","isShorts","slimItemsPerRow","itemsPerRow"),_.R("design:type",Array),_.R("design:paramtypes",[])],uE.prototype,"cardItems",null);uE=_.O([_.E({is:"ytd-ghost-grid-renderer",disableElementRegistration:!0})],uE);
_.MWa=_.cd()(uE,"ytd-ghost-grid-renderer",function(){if(Pb6===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);Pb6=J}J=Pb6;return J},{allowedProps:["data",
"isShorts","isWatchNext","isExploreHub","richItemMinWidth"],mode:1});_.lv(_.Q1(function(J){var c=_.ou(J,{numberOfComments:3}).numberOfComments,m=_.ou(J,{isInitialLoad:!1}).isInitialLoad,b=_.ou(J,{engagementPanel:!1}).engagementPanel,x=function(){return Math.min(Number(c==null?void 0:c())||20,20)};
return _.C("yt-ghost-comments",{class:"ytGhostCommentsHost"},_.C(_.n,{cond:function(){return!(b==null?0:b())&&(m==null?void 0:m())},
then:function(){return _.C("div",{class:"ytGhostCommentsComments"},_.C("div",{class:"ytGhostCommentsGhostCommentsHeader"},_.C("div",{class:_.pq("ytGhostCommentsGhostCommentCount","ytGhostCommentsGhostFill")}),_.C("div",{class:_.pq("ytGhostCommentsGhostSort","ytGhostCommentsGhostFill")})),_.C("div",{class:"ytGhostCommentsGhostCard"},_.C("div",{class:"ytGhostCommentsAvatar"},_.C("div",{class:"ytGhostCommentsCircle"})),_.C("div",{class:"ytGhostCommentsComments"},_.C("div",{class:"ytGhostCommentsMeta"},
_.C("div",{class:_.pq("ytGhostCommentsGhostInputPlaceholder","ytGhostCommentsGhostFill")})),_.C("div",{class:_.pq("ytGhostCommentsGhostInputUnderline","ytGhostCommentsGhostFill")}))))}}),_.C("div",{class:"ytGhostCommentsComments"},_.C(_.Te,{each:function(){return Array((x==null?void 0:x())||3)}},function(){return _.C("div",{class:"ytGhostCommentsGhostCard"},_.C("div",{class:"ytGhostCommentsAvatar"},_.C("div",{class:"ytGhostCommentsCircle"})),_.C("div",{class:"ytGhostCommentsHost"},_.C("div",{class:"ytGhostCommentsMeta"},
_.C("div",{class:_.pq("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")})),_.C("div",{class:_.pq("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.C("div",{class:_.pq("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.C("div",{class:"ytGhostCommentsGhostLikeDislike"},_.C("div",{class:_.pq("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.C("div",{class:_.pq("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}))))})))},"fb"),"yt-ghost-comments",{props:{numberOfComments:_.vt,
isInitialLoad:_.vt,engagementPanel:_.vt}});_.zH("multiPageMenuSectionItems","continuationItemRenderer","ytd-continuation-item-renderer");var fS=function(){var J=_.h.apply(this,arguments)||this;J.isOverridable=!1;J.spinnerActive=!1;J.showButton=!1;J.isCommentsSection=!1;J.engagementPanel=!0;J.isShortsGrid=!1;J.isShortsPage=!1;J.isWatchPage=!1;J.ghostCardExperimentEnabled=_.w("show_ghost_comments_shorts_watch")||_.w("show_ghost_comments_desktop_watch");J.originalShowButton=!1;J.endOfList=!1;return J};
_.D(fS,_.h);_.V=fS.prototype;_.V.resetIntersectionObserver=function(){var J;(J=this.observer)==null||J.disconnect();this.observer=void 0};
_.V.triggerContinuation=function(){if(!this.showButton&&!this.endOfList){this.spinnerActive=!0;var J,c;((J=this.data)==null?void 0:J.trigger)==="CONTINUATION_TRIGGER_ON_ITEM_SHOWN"&&((c=this.data)==null?0:c.continuationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.continuationEndpoint)}};
_.V.initializeIntersectionObserver=function(){var J=this;this.resetIntersectionObserver();this.continuationTriggerOffset&&(this.observer=new IntersectionObserver(function(c){c=_.M(c);for(var m=c.next();!m.done;m=c.next())m.value.isIntersecting&&(J.triggerContinuation(),J.resetIntersectionObserver())},{rootMargin:"0px 0px "+this.continuationTriggerOffset+"px",
threshold:0}),this.observer.observe(this.hostElement))};
_.V.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},isShortsCommentsSection:{id:"ghost-comment-section",mapping:{ghostCommentsSectionRenderer:{component:"yt-ghost-comments"}}},"data.ghostCards":{id:"ghost-cards",mapping:{ghostGridRenderer:{component:"ytd-ghost-grid-renderer",properties:{isShorts:"[[isShortsGrid]]"}}}}}};
_.V.observeData=function(){this.endOfList=this.spinnerActive=!1;this.ytRendererBehavior.invalidate(!1);var J;((J=this.data)==null?0:J.continuationEndpoint)&&(J=_.L(this.data.continuationEndpoint,_.XG))&&this.ytdReduxBehavior.dispatch(_.J7({type:"SET_CONTINUATION_COMMAND",payload:{continuationCommand:J}}))};
_.V.onShow=function(){this.numberOfGhostCommentsChanged();this.continuationTriggerOffset||this.triggerContinuation()};
_.V.onYtServiceRequestSentForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!0,this.originalShowButton=this.showButton,this.showButton=!1)};
_.V.onServiceRequestCompleted=function(J,c){if(!_.w("kevlar_hide_spinner_on_empty_continuation_killswitch")){var m;(m=c.actions)!=null&&m.length||(this.spinnerActive=!1,this.endOfList=!0)}};
_.V.onYtServiceRequestCompletedForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!1,this.showButton=this.originalShowButton)};
_.V.showButtonChanged=function(){this.showButton&&(this.spinnerActive=!1);this.ytRendererBehavior.invalidate(!1)};
_.V.continuationTriggerOffsetChanged=function(){this.initializeIntersectionObserver()};
_.V.numberOfGhostCommentsChanged=function(){if(this.ghostCardExperimentEnabled){var J=3;if(this.engagementPanel){var c,m,b;J=Math.floor(((((c=this.hostElement)==null?void 0:(m=c.parentElement)==null?void 0:(b=m.parentElement)==null?void 0:b.scrollHeight)||108)-108)/108);J=this.isInitialLoad?Math.max(J,3):3}c=[].concat(_.L6(this.hostElement.querySelectorAll("yt-ghost-comments")));c=_.M(c);for(m=c.next();!m.done;m=c.next())m=m.value,m.numberOfComments=J,m.isInitialLoad=this.isInitialLoad,m.engagementPanel=
this.engagementPanel}};
_.V.detached=function(){this.resetIntersectionObserver()};
_.eE.Object.defineProperties(fS.prototype,{isShortsCommentsSection:{configurable:!0,enumerable:!0,get:function(){return this.isCommentsSection&&!this.showButton&&(_.w("show_ghost_comments_shorts_watch")&&this.engagementPanel||_.w("show_ghost_comments_desktop_watch"))?{ghostCommentsSectionRenderer:!0}:!1}}});
fS.prototype.numberOfGhostCommentsChanged=fS.prototype.numberOfGhostCommentsChanged;fS.prototype.continuationTriggerOffsetChanged=fS.prototype.continuationTriggerOffsetChanged;fS.prototype.showButtonChanged=fS.prototype.showButtonChanged;fS.prototype.onYtServiceRequestCompletedForButtonRenderer=fS.prototype.onYtServiceRequestCompletedForButtonRenderer;fS.prototype.onServiceRequestCompleted=fS.prototype.onServiceRequestCompleted;fS.prototype.onYtServiceRequestSentForButtonRenderer=fS.prototype.onYtServiceRequestSentForButtonRenderer;
fS.prototype.observeData=fS.prototype.observeData;_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],fS.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],fS.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.hg.YtVisibilityBehavior),_.R("design:type",Object)],fS.prototype,"ytVisibilityBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],fS.prototype,"ytComponentBehavior",void 0);
_.O([_.f(_.fY),_.R("design:type",Object)],fS.prototype,"ytdReduxBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],fS.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],fS.prototype,"isOverridable",void 0);_.O([_.U(),_.R("design:type",Object)],fS.prototype,"spinnerActive",void 0);_.O([_.U(),_.R("design:type",Object)],fS.prototype,"showButton",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],fS.prototype,"isCommentsSection",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],fS.prototype,"engagementPanel",void 0);_.O([_.U(),_.R("design:type",Object)],fS.prototype,"isShortsGrid",void 0);_.O([_.U({reflectToAttribute:!0,selector:_.KMm}),_.R("design:type",Object)],fS.prototype,"isShortsPage",void 0);_.O([_.U({reflectToAttribute:!0,selector:_.uW}),_.R("design:type",Object)],fS.prototype,"isWatchPage",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],fS.prototype,"ghostCardExperimentEnabled",void 0);
_.O([_.U(),_.R("design:type",Number)],fS.prototype,"continuationTriggerOffset",void 0);_.O([_.U(),_.R("design:type",Object)],fS.prototype,"endOfList",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],fS.prototype,"isInitialLoad",void 0);_.O([_.Iu("ytd-button-renderer"),_.R("design:type",_.As)],fS.prototype,"buttonRenderer",void 0);_.O([_.U(),_.R("design:type",Object)],fS.prototype,"buttonOverrides",void 0);
_.O([_.U(),_.q("engagementPanel","isCommentsSection","showButton","isShortsPage","isWatchPage"),_.R("design:type",Object),_.R("design:paramtypes",[])],fS.prototype,"isShortsCommentsSection",null);_.O([_.kr("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],fS.prototype,"observeData",null);
_.O([_.ps("yt-service-request-sent-button-renderer"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],fS.prototype,"onYtServiceRequestSentForButtonRenderer",null);_.O([_.ps("yt-service-request-completed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,_.Oi]),_.R("design:returntype")],fS.prototype,"onServiceRequestCompleted",null);
_.O([_.ps("yt-service-request-completed-button-renderer"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],fS.prototype,"onYtServiceRequestCompletedForButtonRenderer",null);_.O([_.kr("showButton"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],fS.prototype,"showButtonChanged",null);
_.O([_.kr("continuationTriggerOffset"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],fS.prototype,"continuationTriggerOffsetChanged",null);_.O([_.NE("isInitialLoad","engagementPanel"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],fS.prototype,"numberOfGhostCommentsChanged",null);fS=_.O([_.E({is:"ytd-continuation-item-renderer",disableElementRegistration:!0})],fS);
_.v(fS,"ytd-continuation-item-renderer",function(){if(VWC!==void 0)return VWC;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return VWC=J},{mode:1});var p6_;var YP=function(){var J=_.h.apply(this,arguments)||this;J.downloadProgress=0;J.transferState="TRANSFER_STATE_UNKNOWN";J.downloadState="DOWNLOAD_STATE_UNKNOWN";J.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";J.offlineVideoPolicyExpirationTimestamp=0;J.downloadedVideoPlaybackPosition=0;return J};
_.D(YP,_.h);YP.prototype.dataChanged=function(){var J;this.videoData=_.L((J=this.data)==null?void 0:J.renderer,Z_2);this.transferStateChanged()};
YP.prototype.downloadProgressChanged=function(){if(this.entityInfo){var J=Object.assign({},this.videoData),c=NV3(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),m=c.publishedTimeText,b=c.badges;J.shortViewCountText=c.shortViewCountText;J.publishedTimeText=m;J.badges=b;this.set("videoData",J)}};
YP.prototype.transferStateChanged=function(){if(this.entityInfo){var J=this.transferState==="TRANSFER_STATE_PAUSED_BY_USER",c=_.kY(this.transferState)||this.transferState==="TRANSFER_STATE_FAILED"||this.transferState==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!ac(this.entityInfo.policyEntity),m=Object.assign({},this.videoData),b=NV3(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),x=b.publishedTimeText,P=b.badges;m.shortViewCountText=
b.shortViewCountText;m.publishedTimeText=x;m.badges=P;m.isDisabled=c;m.isWatched=this.downloadedVideoPlaybackPosition>0;m.navigationEndpoint=c?void 0:GcR(this.videoData.videoId,this.downloadedVideoPlaybackPosition,this.entityInfo.videoEntity.lengthSeconds);var p;J&&((p=this.videoData)==null?0:p.videoId)&&!_.w("dl_resume_click_killswitch")&&(m.isDisabled=!1,m.navigationEndpoint={offlineVideoEndpoint:{videoId:this.videoData.videoId,action:"ACTION_RESUME"}});m.thumbnailOverlays=MBm(this.entityInfo,this.transferState,
this.downloadState,this.downloadedVideoPlaybackPosition);this.set("videoData",m)}};
YP.prototype.transferStateChanged=YP.prototype.transferStateChanged;YP.prototype.downloadProgressChanged=YP.prototype.downloadProgressChanged;YP.prototype.dataChanged=YP.prototype.dataChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],YP.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.fY),_.R("design:type",Object)],YP.prototype,"ytdReduxBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],YP.prototype,"data",void 0);
_.O([_.U(),_.R("design:type",Object)],YP.prototype,"videoData",void 0);_.O([_.U({selector:ZZ,selectorArgs:["videoData.videoId"]}),_.R("design:type",Object)],YP.prototype,"downloadProgress",void 0);_.O([_.U(),_.R("design:type",Number)],YP.prototype,"relativeDateReference",void 0);_.O([_.U({selector:_.YY,selectorArgs:["videoData.videoId"]}),_.R("design:type",Object)],YP.prototype,"transferState",void 0);
_.O([_.U({selector:qPf,selectorArgs:["videoData.videoId"]}),_.R("design:type",Object)],YP.prototype,"downloadState",void 0);_.O([_.U({selector:nWt,selectorArgs:["videoData.videoId"]}),_.R("design:type",Object)],YP.prototype,"offlinePolicyAction",void 0);_.O([_.U({selector:TeD,selectorArgs:["videoData.videoId"]}),_.R("design:type",Object)],YP.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.O([_.U({selector:qy,selectorArgs:["videoData.videoId"]}),_.R("design:type",Object)],YP.prototype,"downloadedVideoPlaybackPosition",void 0);_.O([_.U({selector:rZe,selectorArgs:["videoData.videoId"]}),_.R("design:type",Object)],YP.prototype,"entityInfo",void 0);_.O([_.U({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],YP.prototype,"isDownloading",void 0);_.O([_.kr("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],YP.prototype,"dataChanged",null);
_.O([_.kr("downloadProgress"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],YP.prototype,"downloadProgressChanged",null);_.O([_.kr("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadState","downloadedVideoPlaybackPosition"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],YP.prototype,"transferStateChanged",null);
YP=_.O([_.E({is:"ytd-downloaded-video-grid-video-renderer",disableElementRegistration:!0})],YP);
_.v(YP,"ytd-downloaded-video-grid-video-renderer",function(){if(p6_!==void 0)return p6_;var J=document.createElement("template");_.z(J,'\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>');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return p6_=J},{mode:_.mP("kevlar_poly_si_batch_j025")?1:2});var N$a;var X9=function(){};
X9.prototype.resolve=function(J,c){var m=this;return _.N(function(b){return _.K(b,m.resolveCommand(J,c),0)})};var tWa,Zq;tWa=Ozq(function(J){return J.targetId},{shouldPersist:!1});
Zq=tWa.updateData;_.IMZ=tWa.useUpdatableData;var KZa,CbQ;KZa=Ozq(function(J){return J.targetId});
CbQ=KZa.updateData;_.aM6=KZa.useUpdatableData;var kq_=cnt.bind(null,Zq),HLa=cnt.bind(null,CbQ);(function(J,c,m){var b=_.L(m==null?void 0:m.updatedRenderer,_.Mz8);return b?J({targetId:c},function(){return b}):!1}).bind(null,Zq);var qI=function(){};
_.D(qI,X9);qI.prototype.resolveCommand=function(J){var c;return _.N(function(m){c=_.L(J,_.iaT);if(!c)return m.return();kq_(c.targetId,c);_.tD(m)})};var Uf=function(){var J=_.Cs.apply(this,arguments)||this;J.continuationActionMap={"yt-append-continuation-items-action":"handleAppendContinuationItemsAction","yt-reload-continuation-items-command":"handleReloadContinuationItemsCommand","yt-show-reload-ui-command":"handleShowReloadUiCommand"};return J};
_.D(Uf,_.Cs);_.V=Uf.prototype;_.V.configureContinuationPathMap=function(){return{}};
_.V.beforeRegister=function(){this.continuationPathMap=this.configureContinuationPathMap()};
_.V.attached=function(){this.actionHandlerBehavior.registerActionMap(this.continuationActionMap)};
_.V.detached=function(){this.actionHandlerBehavior.unregisterActionMap(this.continuationActionMap)};
_.V.observeData=function(){this.data&&(this.continuationIsReloading=!1)};
_.V.handleAppendContinuationItemsAction=function(J){var c=_.L(J,_.Gtu);if(this.data&&this.data.targetId&&c&&this.continuationPathMap&&c.targetId===this.data.targetId){var m=Ggu(J);if((J=m&&this.continuationPathMap[m])&&m){m=this.get(J,this.data);var b;a:{for(b=0;b<m.length;b++){var x=m[b],P=void 0,p=!!_.L((P=_.L(x,s56))==null?void 0:P.content,_.ul2);if(_.L(x,_.cH)||p)break a}b=m.length}J="data."+J;c.continuationItems?b===m.length-1?(this.pop(J),this.push.apply(this,[J].concat(_.L6(c.continuationItems)))):
b===m.length?this.push.apply(this,[J].concat(_.L6(c.continuationItems))):this.splice.apply(this,[J,b,1].concat(_.L6(c.continuationItems))):this.splice(J,b,1);(_.w("web_enable_voting_animation")||_.w("enable_music_web_cairo_voting_animation"))&&_.cA(this.hostElement,"yt-append-continuation-items-action-finished");_.cA(this.hostElement,"yt-next-continuation-data-updated",null,{bubbles:!1})}else _.qz(new _.w3("append continuation path does not exist",m))}};
_.V.handleReloadContinuationItemsCommand=function(J){var c=_.L(J,_.iaT);if(this.data&&c){if(_.w("web_explore_hub")||_.w("web_client_explore_hub")||_.w("web_explore_hub_on_hover")||_.w("web_client_explore_hub_on_hover"))try{_.BG().resolve(qI).resolveCommand(J)}catch(P){}if(this.data.targetId&&this.continuationPathMap&&c.targetId===this.data.targetId&&(!_.w("web_enable_channel_pivot_panel")||this.data.targetId!=="browse-feedFEsfv_channel_pivot"||c.slot!=="RELOAD_CONTINUATION_SLOT_HEADER")){var m,b=
(m=c.slot)==null?void 0:m.replace("RELOAD_CONTINUATION_SLOT_","");m=(J=Ggu(J)+"-"+(b==null?void 0:b.toLowerCase()))&&this.continuationPathMap[J];if(!m||!J||!b)_.qz(new _.w3("reload continuation path does not exist",J));else if(!this.reloadContinuationItemsCommandMatcher||this.reloadContinuationItemsCommandMatcher(c)){if(c.replaceWithFirstItem){var x;this.set("data."+m,((x=c.continuationItems)==null?0:x.length)?c.continuationItems[0]:{})}else this.set("data."+m,c.continuationItems?c.continuationItems:
[]);this.continuationIsReloading=!1;_.cA(this.hostElement,"yt-reload-continuation-finish",null,{bubbles:!1})}}}};
_.V.handleShowReloadUiCommand=function(J){J=_.L(J,gg_);var c;((c=this.data)==null?0:c.targetId)&&(J==null?0:J.targetId)&&J.targetId===this.data.targetId&&(this.continuationIsReloading=!0)};
Uf.prototype.observeData=Uf.prototype.observeData;_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],Uf.prototype,"actionHandlerBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],Uf.prototype,"componentBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Uf.prototype,"data",void 0);_.O([_.U({value:!1,reflectToAttribute:!0}),_.R("design:type",Boolean)],Uf.prototype,"continuationIsReloading",void 0);
_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Uf.prototype,"observeData",null);Uf=_.O([_.au()],Uf);_.Sy=[_.qH.YtComponentBehavior,_.yw.YtActionHandlerBehavior,Uf.prototype];_.hA={};_.hA.YtNextContinuationBehavior=[_.Qw.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",_.ME(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!0)},
stopListeningForNavigate_:function(){this.canUseContextualNetworkManager_()||(document.removeEventListener("yt-navigate-start",_.ME(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!1)},
onLoadNextContinuation_:function(J,c){J.stopPropagation();this.nextContinuation.requestPath?this.makeNextContinuationRequest_(this.nextContinuation.requestPath,c,{}):(J={locationRetrieved:function(m){this.makeNextContinuationRequest_(m,c,{})}.bind(this)},_.cA(this.hostElement,"yt-retrieve-location",J))},
makeNextContinuationRequest_:function(J,c,m){_.Xv("nct");this.pendingContinuationRequest_&&this.pendingContinuationRequest_.cancel();J=c(J);var b;this.canUseContextualNetworkManager_()&&(b=this.getNetworkManager());b||(b=_.BG().resolve(_.Wj));c=_.Sp.instance;if(_.Ub("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"&&c){b=_.oc([J.startsWith("/")?J.substr(1):J]);var x,P;m=_.W$(c,{},b,m==null?void 0:(x=m.context)==null?void 0:(P=x.clickTracking)==null?void 0:P.clickTrackingParams).then(function(p){return{response:p}})}else m=
this.nextContinuation.usePost?b.postData(J,m):b.fetchData(J);
m.then(this.updateNextContinuationData_.bind(this,J));this.pendingContinuationRequest_=m;this.startListeningForNavigate_()},
updateNextContinuationData_:function(J,c){var m=this;_.Xv("ncl");this.pendingContinuationRequest_=void 0;if(c){var b={};this.nextContinuation&&(b=this.nextContinuation);if(c.response&&c.response.continuationContents&&c.response.continuationContents[b.continuationType]){J=c.response.continuationContents[b.continuationType];var x=b.header||"data.header",P=J[b.responseHeaderKey||"header"];P&&this.set(x,P);x=b.contentsArray||"data.contents";P=this.getContents_(J,b.responseContentsKey||"contents")||[];
this.pathExists_(x)?(P.unshift(x),this.push.apply(this,P)):this.set(x,P);P&&(m5J(_.C7(),c.response,this.hostElement,function(p){_.m9(m.hostElement,"yt-store-grafted-ve-action",[p])}),_.cA(this.hostElement,"yt-next-continuation-data-updated",{continuationData:c,
page:this,contentsArray:x}));this.set(b.continuationsArray||"data.continuations",J[b.responseContinuationsKey||"continuations"]||[])}else c.reload?_.qz(new _.w3("Reloading from continuation is unsupported")):c.responseContext&&c.responseContext.errors||(delete c.xsrf_token,delete c.timing,delete c.endpoint,delete c.csn,c.responseContext&&delete c.responseContext.serviceTrackingParams,x={request:_.RP(J,{ctoken:"x",continuation:"x",itct:"x"}),responseKeys:Object.keys(c).sort()},c.response&&(x.responseContentKeys=
Object.keys(c.response).sort()),this.nextContinuation&&this.nextContinuation.continuationType&&(x.continuationType=this.nextContinuation.continuationType.substr(0,256)),c=new _.w3("Malformed continuation",x),J.indexOf("/comment_service_ajax")==0?_.qz(c):_.Xc(c)),this.set(b.continuationsArray||"data.continuations",[])}else _.Zt(new _.w3("Missing continuation response",J))},
getContents_:function(J,c){c=c.split(".");return _.Lw.getValueByKeys(J,c)},
pathExists_:function(J){var c=this;J=J.toString().split(".");for(var m=0;m<J.length;m++)if(c=c[J[m]],c===void 0)return!1;return!0},
onYtNavigateStart_:function(){this.pendingContinuationRequest_&&(this.pendingContinuationRequest_.cancel(),this.pendingContinuationRequest_=void 0);this.stopListeningForNavigate_()}}];var iLC;var nDQ;var d0=function(){var J=_.h.apply(this,arguments)||this;J.triggered_=!1;return J};
_.D(d0,_.h);_.V=d0.prototype;_.V.attached=function(){this.maybeTriggerAutoload()};
_.V.detached=function(){this.hasBeenTriggered_=!1};
_.V.onPrescanVisible=function(){this.onShow()};
_.V.onShow=function(){this.showButton||this.trigger()};
_.V.trigger=function(){this.data&&this.data.continuation&&(this.spinnerActive_=!0,this.showButton=!1,this.triggered_||(_.cA(this.hostElement,"yt-load-next-continuation",this.getContinuationUrl.bind(this)),this.hasBeenTriggered_=this.triggered_=!0))};
_.V.triggerIfNotPreviouslyTriggered=function(){this.hasBeenTriggered_||this.trigger()};
_.V.maybeTriggerAutoload=function(){this.data&&this.isAttached&&this.data.autoloadEnabled&&this.data.autoloadImmediately&&this.trigger()};
_.V.computeLabel_=function(J,c){return J===void 0?null:J.label||!c?J.label:this.showMoreText_};
_.V.observeData_=function(){this.spinnerActive_=this.triggered_=!1;this.ytRendererBehavior.invalidate(!1);this.maybeTriggerAutoload()};
_.V.getContinuationUrl=function(J){var c={ctoken:this.data.continuation,continuation:this.data.continuation,type:"next"};this.data.clickTrackingParams&&(c.itct=this.data.clickTrackingParams);return _.oP(J,c)};
_.V.showButtonChanged_=function(){this.ytRendererBehavior.invalidate(!1)};
d0.prototype.showButtonChanged_=d0.prototype.showButtonChanged_;d0.prototype.observeData_=d0.prototype.observeData_;_.O([_.f(_.hg.YtVisibilityBehavior),_.R("design:type",Object)],d0.prototype,"ytVisibilityBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],d0.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],d0.prototype,"data",void 0);_.O([_.U({value:!1}),_.R("design:type",Boolean)],d0.prototype,"showButton",void 0);
_.O([_.U({value:!1}),_.R("design:type",Boolean)],d0.prototype,"showIcon",void 0);_.O([_.U({computed:"computeLabel_(data, showButton)"}),_.R("design:type",Object)],d0.prototype,"label",void 0);_.O([_.U({value:_.v2(_.CX("SHOW_MORE",void 0,"Show More"))}),_.R("design:type",Object)],d0.prototype,"showMoreText_",void 0);_.O([_.U({value:!1}),_.R("design:type",Boolean)],d0.prototype,"spinnerActive_",void 0);_.O([_.U({value:!1}),_.R("design:type",Boolean)],d0.prototype,"hasBeenTriggered_",void 0);
_.O([_.U({value:void 0}),_.R("design:type",String)],d0.prototype,"observeVisibleOption",void 0);_.O([_.U({value:void 0}),_.R("design:type",String)],d0.prototype,"observeHiddenOption",void 0);_.O([_.U({value:"observe_once"}),_.R("design:type",Object)],d0.prototype,"observePrescanOption",void 0);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],d0.prototype,"observeData_",null);
_.O([_.NE("showButton"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],d0.prototype,"showButtonChanged_",null);d0=_.O([_.uM({is:"yt-next-continuation",disableElementRegistration:!0})],d0);
_.v(d0,"yt-next-continuation",function(){if(nDQ===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;iLC===void 0&&(iLC=document.createElement("template"));var b=iLC;m.call(c,b.content.cloneNode(!0),J.content.firstChild);nDQ=J}J=nDQ;return J},{mode:2});var T$z;var w6Q;var $P=function(){return _.h.apply(this,arguments)||this};
_.D($P,_.h);$P.prototype.attached=function(){this.hostElement.parentNode.style.justifyContent="center"};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],$P.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],$P.prototype,"data",void 0);$P=_.O([_.uM({is:"yt-music-pass-small-feature-info-renderer",disableElementRegistration:!0})],$P);
_.v($P,"yt-music-pass-small-feature-info-renderer",function(){if(w6Q===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;T$z===void 0&&(T$z=document.createElement("template"));var b=T$z;m.call(c,b.content.cloneNode(!0),J.content.firstChild);w6Q=J}J=w6Q;return J},{mode:2});_.zH("itemSectionRenderer","gridRenderer","ytd-grid-renderer");var G5=function(){var J=_.h.apply(this,arguments)||this;J.isCollapsible=!1;J.nextContinuation={continuationType:"gridContinuation",contentsArray:"data.items",responseContentsKey:"items"};return J};
_.D(G5,_.h);_.V=G5.prototype;_.V.computeIsCollapsible=function(J){return!!(((J==null?0:J.showMoreText)||(J==null?0:J.visibleRowCount))&&(J==null?0:J.isCollapsible))};
_.V.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"}}}};
_.V.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"items"}};
_.V.persistentGuideChanged=function(){this.maybeUpdateInitialItemsDisplayed()};
_.V.onIronResize=function(){var J=this;_.hO(this,"updateGridInitItems",function(){J.maybeUpdateInitialItemsDisplayed()})};
_.V.maybeUpdateInitialItemsDisplayed=function(){if(this.collapsed){var J=this.getVisibleWidth();J!==0&&(J=Math.floor(J/214)*(this.data.visibleRowCount||2),J!==this.initialCount&&(this.initialCount=J,this.data&&this.data.items&&this.ytLazyListBehavior.setInitialItemsOnDataChanged(this.data.items)))}};
_.V.getVisibleWidth=function(){return this.hostElement.offsetWidth};
_.V.computeExpandVisible=function(J,c,m,b){return J&&c&&m&&!!b&&!!b.showMoreText};
_.V.computeShowMoreButton=function(J){return{text:J,style:"STYLE_TEXT",size:"SIZE_DEFAULT"}};
_.V.onExpandTap=function(){this.collapsed=!1;this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
_.V.initCollapsed=function(){var J=this;this.ytLazyListBehavior.canShowMore=!1;var c;(this.collapsed=!((c=this.data)==null||!c.isCollapsible))&&this.maybeUpdateInitialItemsDisplayed();_.o3(this,function(){_.bJ(J.hostElement,"yt-refit-popups-action")})};
_.V.fillRestIfNotCollapsible=function(){var J=this.ytLazyListBehavior.canShowMore;this.data&&this.isCollapsible||!J||this.ytLazyListBehavior.fillRemainingListItems()};
_.V.computeViewAllHidden=function(J,c){return J||!c.viewAllEndpoint};
G5.prototype.fillRestIfNotCollapsible=G5.prototype.fillRestIfNotCollapsible;G5.prototype.initCollapsed=G5.prototype.initCollapsed;G5.prototype.onIronResize=G5.prototype.onIronResize;G5.prototype.persistentGuideChanged=G5.prototype.persistentGuideChanged;_.O([_.f(_.rI),_.R("design:type",Object)],G5.prototype,"ironResizableBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],G5.prototype,"ytRendererBehavior",void 0);
_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],G5.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.lu.YtLazyListBehavior),_.R("design:type",Object)],G5.prototype,"ytLazyListBehavior",void 0);_.O([_.f(_.hA.YtNextContinuationBehavior),_.R("design:type",Object)],G5.prototype,"ytNextContinuationBehavior",void 0);_.O([_.f(_.SO.YtdGuideStateAwareBehavior),_.R("design:type",Object)],G5.prototype,"ytdGuideStateAwareBehavior",void 0);
_.O([_.f(_.Sy),_.R("design:type",Object)],G5.prototype,"ytContinuationHandlerBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],G5.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Boolean)],G5.prototype,"collapsed",void 0);_.O([_.U(),_.R("design:type",Number)],G5.prototype,"initialCount",void 0);_.O([_.U({computed:"computeShowMoreButton(data.showMoreText)"}),_.R("design:type",Object)],G5.prototype,"showMoreButton",void 0);
_.O([_.U({computed:"computeIsCollapsible(data)"}),_.R("design:type",Object)],G5.prototype,"isCollapsible",void 0);_.O([_.Iu("#items"),_.R("design:type",HTMLElement)],G5.prototype,"items",void 0);_.O([_.kr("guidePersistentAndVisible"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],G5.prototype,"persistentGuideChanged",null);_.O([_.ps("iron-resize"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],G5.prototype,"onIronResize",null);
_.O([_.kr("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],G5.prototype,"initCollapsed",null);_.O([_.kr("canShowMore"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],G5.prototype,"fillRestIfNotCollapsible",null);G5=_.O([_.E({is:"ytd-grid-renderer",disableElementRegistration:!0})],G5);
_.v(G5,"ytd-grid-renderer",function(){if(N$a!==void 0)return N$a;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return N$a=J},{mode:_.mP("kevlar_poly_si_batch_j025")?1:2});var Ef=function(){return _.h.apply(this,arguments)||this};
_.D(Ef,_.h);
Ef.prototype.configureRendererStamper=function(){return{"data.adMetadata.displayAdRenderer":{id:"badge",mapping:{badge:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.adMetadata.displayAdRenderer.badge]]"},params:{largeFontAdBadge:!0}}}},"data.adMetadata.displayAdRenderer.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.content":{id:"content",mapping:{horizontalListRenderer:{component:"yt-horizontal-list-renderer",params:{useFloorScrolling:!0}},gridRenderer:"ytd-grid-renderer"}}}};
_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],Ef.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Ef.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Ef.prototype,"data",void 0);Ef=_.O([_.E({is:"ytd-carousel-ad-renderer",disableElementRegistration:!0})],Ef);
_.v(Ef,"ytd-carousel-ad-renderer",function(){if(xq8!==void 0)return xq8;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return xq8=J},{mode:1});var rbu;var vI=function(){return _.h.apply(this,arguments)||this};
_.D(vI,_.h);_.V=vI.prototype;_.V.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"}}}};
_.V.dataChanged=function(){this.data&&this.data.content&&this.data.clickLocationTargets&&this.data.content.navigationEndpoint&&(this.sendImpression(),this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,vI.JSC$13260_CLICK_LOCATION_ID_MAP))};
_.V.onSitelinkTap=function(J){J.stopPropagation();var c,m,b=J==null?void 0:(c=J.model)==null?void 0:(m=c.item)==null?void 0:m.onTap;b&&this.ytSparklesClickLocationBehavior.handleClick(b,J,!1)};
_.V.onTap=function(J){var c=this.data&&this.data.content&&this.data.content.navigationEndpoint;c&&this.ytSparklesClickLocationBehavior.handleClick(c,J,!1)};
_.V.sendImpression=function(){if(this.data&&this.data.content)for(var J=_.M(this.data.content.impressionEndpoints||[]),c=J.next();!c.done;c=J.next()){c=_.M(c.value.loggingUrls||[]);for(var m=c.next();!m.done;m=c.next())m=m.value,m.baseUrl&&v4(m.baseUrl,m.attributionSrcMode)}};
vI.prototype.onTap=vI.prototype.onTap;vI.prototype.dataChanged=vI.prototype.dataChanged;vI.JSC$13260_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_TITLE","title"],["PROMOTED_SPARKLES_CLICK_LOCATION_DESCRIPTION","description"],["PROMOTED_SPARKLES_CLICK_LOCATION_AD_BADGE","ad-badge"],["PROMOTED_SPARKLES_CLICK_LOCATION_TEXT_AD_WEBSITE","display-url"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","root-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK","sitelinks-table"]]);
_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],vI.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],vI.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.FP.YtSparklesClickLocationBehavior),_.R("design:type",Object)],vI.prototype,"ytSparklesClickLocationBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],vI.prototype,"data",void 0);
_.O([_.kr("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],vI.prototype,"dataChanged",null);_.O([_.ps("tap"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],vI.prototype,"onTap",null);vI=_.O([_.E({is:"ytd-promoted-sparkles-text-search-renderer",disableElementRegistration:!0})],vI);
_.v(vI,"ytd-promoted-sparkles-text-search-renderer",function(){if(rbu!==void 0)return rbu;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return rbu=J},{mode:1});var soz;var Of=function(){var J=_.h.apply(this,arguments)||this;J.actionMap={"yt-mute-ad-action":"handleMuteAd"};return J};
_.D(Of,_.h);_.V=Of.prototype;
_.V.configureRendererStamper=function(){return{"data.menu":{id:_.w("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]]"}}}}}};
_.V.computeButtonOverride=function(){return{style:"call-to-action",type:"tonal"}};
_.V.computeHasAdBadge=function(J){return!(J==null||!J.adBadge)};
_.V.dataChanged=function(){this.data&&this.data.impressionCommands&&this.data.clickLocationTargets&&(this.data.adBadge||this.set("data.adBadge",Of.JSC$13269_DEFAULT_AD_BADGE_RENDERER),_.mq(this.hostElement,"sparkles-light-cta",!0),this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17),this.ytSparklesClickLocationBehavior.configureClickTargets("sparkles-container",this.data.clickLocationTargets,Of.JSC$13269_CLICK_LOCATION_ID_MAP))};
_.V.impressionLog=function(){if(!this.data||!this.data.impressionsFired){var J;(((J=this.data)==null?void 0:J.impressionCommands)||[]).forEach(function(c){c=_.M(c.loggingUrls||[]);for(var m=c.next();!m.done;m=c.next())m=m.value,m.baseUrl&&v4(m.baseUrl,m.attributionSrcMode)});
this.data.impressionsFired=!0}};
_.V.onTap=function(J){var c,m=(c=this.data)==null?void 0:c.navigationEndpoint,b;(c=(b=this.data)==null?void 0:b.thumbnailNavigationEndpoint)&&_.RO(_.OT(J),this.hostElement,["thumbnail-container"])?this.ytSparklesClickLocationBehavior.handleClick(c,J,!1):m&&this.ytSparklesClickLocationBehavior.handleClick(m,J,!1)};
_.V.handleMuteAd=function(){this.collapsed=!0};
_.V.attached=function(){var J=this;_.w("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&J.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.V.detached=function(){_.w("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.eE.Object.defineProperties(Of.prototype,{hideHoverOverlay:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.mediaHoverOverlay}},
webSearchLayout:{configurable:!0,enumerable:!0,get:function(){var J;return((J=this.data)==null?void 0:J.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
webSearchLayoutLandscape:{configurable:!0,enumerable:!0,get:function(){var J;return!(((J=this.data)==null?void 0:J.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||this.data.isSquareThumbnail)}},
webSearchLayoutSquare:{configurable:!0,enumerable:!0,get:function(){var J;return!(((J=this.data)==null?void 0:J.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||!this.data.isSquareThumbnail)}},
sparklesCtaNoBackground:{configurable:!0,enumerable:!0,get:function(){var J;return((J=this.data)==null?void 0:J.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}}});
Of.prototype.dataChanged=Of.prototype.dataChanged;
Of.JSC$13269_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_TITLE","title"],["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_DESCRIPTION","description"],["PROMOTED_SPARKLES_CLICK_LOCATION_ACTION_LABEL","action-button"],["PROMOTED_SPARKLES_CLICK_LOCATION_AD_BADGE","ad-badge-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_TEXT_AD_WEBSITE","website-text"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","sparkles-container"]]);
Of.JSC$13269_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.CX("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],Of.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Of.prototype,"ytRendererBehavior",void 0);_.O([_.f(zX),_.R("design:type",Object)],Of.prototype,"ytdActiveViewBehavior",void 0);
_.O([_.f([_.yw.YtActionHandlerBehavior]),_.R("design:type",Object)],Of.prototype,"actionHandlerBehavior",void 0);_.O([_.f(_.FP.YtSparklesClickLocationBehavior),_.R("design:type",Object)],Of.prototype,"ytSparklesClickLocationBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Of.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],Of.prototype,"collapsed",void 0);_.O([_.U({reflectToAttribute:!0,value:function(){return _.w("enable_desktop_search_bigger_thumbs")}}),
_.R("design:type",Boolean)],Of.prototype,"useBiggerThumbs",void 0);_.O([_.U({reflectToAttribute:!0,value:function(){return _.mG("desktop_search_bigger_thumbs_style")}}),
_.R("design:type",String)],Of.prototype,"biggerThumbsStyle",void 0);_.O([_.U({reflectToAttribute:!0,value:function(){return _.w("fix_alignment_search_desktop_text_image_ads_small_screens")}}),
_.R("design:type",Boolean)],Of.prototype,"fixAlignmentSmallScreens",void 0);_.O([_.U({reflectToAttribute:!0,value:function(){return _.w("enable_desktop_search_bigger_thumbs_square")}}),
_.R("design:type",Boolean)],Of.prototype,"useBiggerThumbsSquare",void 0);_.O([_.U({reflectToAttribute:!0}),_.q("data.mediaHoverOverlay"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Of.prototype,"hideHoverOverlay",null);_.O([_.U({reflectToAttribute:!0}),_.q("data.promotedSparklesWebStyle"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Of.prototype,"webSearchLayout",null);
_.O([_.U({reflectToAttribute:!0}),_.q("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Of.prototype,"webSearchLayoutLandscape",null);_.O([_.U({reflectToAttribute:!0}),_.q("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Of.prototype,"webSearchLayoutSquare",null);
_.O([_.U({reflectToAttribute:!0}),_.q("data.promotedSparklesWebStyle"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Of.prototype,"sparklesCtaNoBackground",null);_.O([_.U({reflectToAttribute:!0}),_.q("data.actionButton"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Of.prototype,"hideActionButton",null);_.O([_.U({computed:"computeButtonOverride(uiUpdate)"}),_.R("design:type",Object)],Of.prototype,"buttonOverride",void 0);
_.O([_.U({reflectToAttribute:!0,computed:"computeHasAdBadge(data)"}),_.R("design:type",Boolean)],Of.prototype,"hasNewAdBadge",void 0);_.O([_.q("data.promotedSparklesWebStyle"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Of.prototype,"useRoundedBadge",null);_.O([_.kr("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Of.prototype,"dataChanged",null);Of=_.O([_.E({is:"ytd-promoted-sparkles-web-renderer",disableElementRegistration:!0})],Of);
_.v(Of,"ytd-promoted-sparkles-web-renderer",function(){if(soz!==void 0)return soz;var J=document.createElement("template");_.z(J,'\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>');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return soz=J},{mode:1});var LZz;var AA=function(){return _.h.apply(this,arguments)||this};
_.D(AA,_.h);_.V=AA.prototype;_.V.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]]"}}}}}};
_.V.computeShowCta=function(J){return!(J==null||!J.ctaRenderer)};
_.V.onCtaClick=function(){var J,c,m,b=(J=this.data)==null?void 0:(c=J.ctaRenderer)==null?void 0:(m=c.buttonRenderer)==null?void 0:m.command;b&&this.ytComponentBehavior.resolveCommand(b)};
_.V.onWatchButtonClick=function(){var J,c,m,b=(J=this.data)==null?void 0:(c=J.watchButtonRenderer)==null?void 0:(m=c.buttonRenderer)==null?void 0:m.command;b&&this.ytComponentBehavior.resolveCommand(b)};
_.V.onTap=function(){};
_.V.dataChanged=function(){if(this.data&&(this.data.adBadge||this.set("data.adBadge",AA.JSC$13272_DEFAULT_AD_BADGE_RENDERER),this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17),this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",AA.JSC$13272_DEFAULT_CLICK_LOCATION_BEHAVIOR,AA.JSC$13272_CLICK_LOCATION_ID_MAP),this.thumbnail)){var J=this.thumbnail.getElementsByTagName("a");J.length>0&&(J=J.namedItem("thumbnail"))&&J.removeAttribute("href")}};
_.V.impressionLog=function(){if(this.data&&this.data.impressionUrls&&!this.data.impressionsFired){for(var J=_.M(this.data.impressionUrls),c=J.next();!c.done;c=J.next())c=c.value,s1T(c,Drr(c));this.data.impressionsFired=!0}};
_.V.maybeComputeHref=function(){return null};
_.V.computeIsShortDR=function(J){return!(J==null||!J.watchButtonRenderer)&&!(J==null||!J.ctaRenderer)&&!!this.enableShortDR};
_.V.computeIsNewUiOrShortDr=function(J){return!!this.enableUiUpdate||this.computeIsShortDR(J)};
_.V.computeIsNewUiAndNotShortDr=function(J){return!!this.enableUiUpdate&&!this.computeIsShortDR(J)};
_.V.computeHideAvatar=function(J){return!((J==null?0:J.channelThumbnail)&&this.computeIsNewUiOrShortDr(J))};
_.V.onClick=function(J){var c,m=(c=this.data)==null?void 0:c.navigationEndpoint;if(this.enableShortDR&&m&&(_.L(m,_.Rz)||this.computeIsShortDR(this.data)))this.ytSparklesClickLocationBehavior.handleClick(m,J,!!_.L(m,_.Rz)),J.stopPropagation();else if(m&&_.L(m,_.Rz))this.ytSparklesClickLocationBehavior.handleClick(m,J,!0),J.stopPropagation();else if(m){var b,x;((b=this.data)==null?0:b.navigationEndpoint)&&((x=this.data)==null?0:x.adPlaybackContextParams)&&If2(this.data.navigationEndpoint,this.data.adPlaybackContextParams);
this.ytComponentBehavior.resolveCommand(m)}};
_.V.computeButtonOverride=function(J){if(this.computeIsNewUiOrShortDr(J))return{style:"call-to-action",type:"tonal",iconPosition:"none"}};
_.V.computeSecondaryButtonOverride=function(){return{style:"call-to-action",type:"outline",iconPosition:"none"}};
_.V.onThumbnailContainerClick=function(J){this.onClick(J)};
_.V.computeThumbnailWidth=function(J,c){return J?c==="MASSIVE"?600:c==="BIG"?500:c==="MEDIUM"?450:420:360};
_.V.attached=function(){var J=this;_.w("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&J.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.V.detached=function(){_.w("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
AA.prototype.dataChanged=AA.prototype.dataChanged;AA.prototype.onTap=AA.prototype.onTap;AA.JSC$13272_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.CX("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};AA.JSC$13272_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
AA.JSC$13272_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:21,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND",code:2,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}];_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],AA.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],AA.prototype,"ytRendererBehavior",void 0);_.O([_.f(zX),_.R("design:type",Object)],AA.prototype,"ytdActiveViewBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],AA.prototype,"ytComponentBehavior",void 0);_.O([_.f(_.FP.YtSparklesClickLocationBehavior),_.R("design:type",Object)],AA.prototype,"ytSparklesClickLocationBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],AA.prototype,"data",void 0);
_.O([_.U({reflectToAttribute:!0,value:function(){return _.w("enable_desktop_search_bigger_thumbs")}}),
_.R("design:type",Boolean)],AA.prototype,"useBiggerThumbs",void 0);_.O([_.U({reflectToAttribute:!0,value:function(){return _.w("enable_video_display_compact_button_group_for_desktop_search")}}),
_.R("design:type",Boolean)],AA.prototype,"enableShortDR",void 0);_.O([_.U({reflectToAttribute:!0,value:function(){return _.w("enable_vac_ui_update_for_desktop_search")}}),
_.R("design:type",Boolean)],AA.prototype,"enableUiUpdate",void 0);_.O([_.U({reflectToAttribute:!0,value:function(){return _.mG("desktop_search_bigger_thumbs_style")}}),
_.R("design:type",String)],AA.prototype,"biggerThumbsStyle",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeShowCta(data)"}),_.R("design:type",Boolean)],AA.prototype,"showCta",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeIsShortDR(data)"}),_.R("design:type",Boolean)],AA.prototype,"isShortDr",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeIsNewUiOrShortDr(data)"}),_.R("design:type",Boolean)],AA.prototype,"isShortDrOrNewUi",void 0);
_.O([_.U({reflectToAttribute:!0,computed:"computeIsNewUiAndNotShortDr(data)"}),_.R("design:type",Boolean)],AA.prototype,"isNewUiAndNotShortDr",void 0);_.O([_.U({computed:"computeButtonOverride(data)"}),_.R("design:type",Object)],AA.prototype,"buttonOverride",void 0);_.O([_.U({computed:"computeSecondaryButtonOverride(data)"}),_.R("design:type",Object)],AA.prototype,"secondaryButtonOverride",void 0);_.O([_.Iu("ytd-thumbnail"),_.R("design:type",HTMLElement)],AA.prototype,"thumbnail",void 0);
_.O([_.ps("tap"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],AA.prototype,"onTap",null);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],AA.prototype,"dataChanged",null);AA=_.O([_.E({is:"ytd-promoted-video-renderer",disableElementRegistration:!0})],AA);
_.v(AA,"ytd-promoted-video-renderer",function(){if(LZz!==void 0)return LZz;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return LZz=J},{mode:1});var Dq2;var RV=function(){var J=_.h.apply(this,arguments)||this;J.useRoundedBadge=!0;J.sitelinkIds=[];return J};
_.D(RV,_.h);_.V=RV.prototype;
_.V.configureRendererStamper=function(){return{"data.menu":{id:_.w("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]]"}}}}}};
_.V.dataChanged=function(){var J;(J=this.data)!=null&&J.clickLocationTargets&&this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,RV.JSC$13279_CLICK_LOCATION_ID_MAP)};
_.V.onTap=function(J){var c,m=(c=this.data)==null?void 0:c.navigationCommand;m&&!_.RO(_.OT(J),this.hostElement,this.sitelinkIds)&&this.ytSparklesClickLocationBehavior.handleClick(m,J,!1)};
_.V.onSitelinkTap=function(J){var c,m,b=J==null?void 0:(c=J.model)==null?void 0:(m=c.item)==null?void 0:m.onTap;b&&this.ytSparklesClickLocationBehavior.handleClick(b,J,!1)};
_.V.configureSitelinkClickTargets=function(){var J=this,c,m,b=(c=this.data)==null?void 0:(m=c.clickLocationTargets)==null?void 0:m.find(function(x){return x.location==="PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK"});
b&&_.Bj(this.hostElement).querySelectorAll(".sitelink").forEach(function(x){_.mq(x,"yt-simple-endpoint",!0);J.sitelinkIds.push(x.id);var P,p;(P=J.ytSparklesClickLocationBehavior)==null||(p=P.clickTargetMap)==null||p.set(x.id,b)})};
_.V.sendImpression=function(){var J,c,m=((J=this.data)==null?void 0:(c=J.impressionCommand)==null?void 0:c.loggingUrls)||[];J=_.M(m);for(c=J.next();!c.done;c=J.next())c=c.value,c.baseUrl&&v4(c.baseUrl,c.attributionSrcMode)};
_.V.impressionLog=function(){this.data&&this.data.impressionsFired||(this.sendImpression(),this.data.impressionsFired=!0)};
_.eE.Object.defineProperties(RV.prototype,{showFavicon:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.favicon}}});
RV.prototype.onTap=RV.prototype.onTap;RV.prototype.dataChanged=RV.prototype.dataChanged;RV.JSC$13279_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_INNER_BACKGROUND","text-image-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_TITLE","headline"],["PROMOTED_SPARKLES_CLICK_LOCATION_DESCRIPTION","description"],["PROMOTED_SPARKLES_CLICK_LOCATION_AD_BADGE","ad-badge"],["PROMOTED_SPARKLES_CLICK_LOCATION_TEXT_AD_WEBSITE","website-text"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","root-container"]]);
_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],RV.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],RV.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.FP.YtSparklesClickLocationBehavior),_.R("design:type",Object)],RV.prototype,"ytSparklesClickLocationBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],RV.prototype,"data",void 0);
_.O([_.U({reflectToAttribute:!0}),_.q("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],RV.prototype,"showFavicon",null);_.O([_.U({reflectToAttribute:!0,value:function(){return _.w("enable_desktop_search_bigger_thumbs")}}),
_.R("design:type",Boolean)],RV.prototype,"useBiggerThumbs",void 0);_.O([_.U({reflectToAttribute:!0,value:function(){return _.mG("desktop_search_bigger_thumbs_style")}}),
_.R("design:type",String)],RV.prototype,"biggerThumbsStyle",void 0);_.O([_.U({reflectToAttribute:!0,value:function(){return _.w("enable_text_ad_web_thumbnail_scaling_fix")}}),
_.R("design:type",Boolean)],RV.prototype,"enableThumbnailScalingFix",void 0);_.O([_.kr("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],RV.prototype,"dataChanged",null);_.O([_.ps("tap"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],RV.prototype,"onTap",null);RV=_.O([_.E({is:"ytd-text-image-no-button-layout-renderer",disableElementRegistration:!0})],RV);
_.v(RV,"ytd-text-image-no-button-layout-renderer",function(){if(Dq2!==void 0)return Dq2;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return Dq2=J},{mode:_.mP("kevlar_poly_si_batch_j028")?1:2});var WZ_;var oV=function(){var J=_.h.apply(this,arguments)||this;J.isInlinePlaybackState=!1;J.uiUpdate=_.w("web_modern_buttons");J.hideCta=_.w("hide_cta_for_home_web_video_ads");J.noBottomMargin=!1;J.animateInTimeStamp=_.c7("hide_cta_for_home_web_video_ads_animate_in_time");J.animateInCta=!1;J.isHovered=!1;J.player=null;J.JSC$13286_playerEvents=new Map;J.JSC$13286_preventProgressSaveTimer=null;J.delayedCtaJobId=null;return J};
_.D(oV,_.h);_.V=oV.prototype;_.V.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]]"}}}}}};
_.V.attached=function(){this.JSC$13286_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$13286_playerEvents.set("onVideoProgress",this.onVideoProgress);this.hideCta&&this.setPlayer();_.w("enable_delayed_cta_on_web")&&this.buttonContainer.classList.add("hide-delayed-buttons")};
_.V.detached=function(){this.resetPreventProgressSaveTimer();this.hideCta&&this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$13286_playerEvents)};
_.V.dataChanged=function(){this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint&&(this.animateInCta=!1,this.ytSparklesClickLocationBehavior.configureClickTargets("ad-inline-playback-metadata",oV.JSC$13285_DEFAULT_CLICK_LOCATION_BEHAVIOR,oV.JSC$13285_CLICK_LOCATION_ID_MAP),this.isInlinePlaybackState&&!this.hideCta&&this.setPlayer())};
_.V.hoverChanged=function(){var J=this;this.delayedCtaJobId&&(_.ft.cancelJob(this.delayedCtaJobId),this.delayedCtaJobId=null);this.isHovered&&!this.buttonContainer.classList.contains("show-delayed-buttons")&&_.w("enable_delayed_cta_on_web")&&(this.delayedCtaJobId=_.at(_.ft,function(){J.buttonContainer.classList.add("show-delayed-buttons")},_.c7("delayed_cta_on_web_delay_milliseconds")))};
_.V.setPlayer=function(){var J=this,c;return _.N(function(m){if(m.nextAddress==1)return(c=_.bJ(J.hostElement,"yt-get-inline-preview-player-action"))&&c[0]?_.K(m,c[0].getPlayerPromise(),3):m.jumpTo(0);J.player=m.yieldResult;J.ytPlayerListenerBehavior.listenToPlayerEvents(J.player,J.JSC$13286_playerEvents);_.tD(m)})};
_.V.onPlaybackStart=function(){var J=this;this.player&&(this.resetPreventProgressSaveTimer(),this.JSC$13286_preventProgressSaveTimer=_.cP(_.ft,function(){J.JSC$13286_preventProgressSaveTimer=null},1E4))};
_.V.onVideoProgress=function(J){this.hideCta&&this.isHovered&&!(this.animateInTimeStamp<0)&&J>=this.animateInTimeStamp&&!this.animateInCta&&(this.animateInCta=!0)};
_.V.resetPreventProgressSaveTimer=function(){_.ft.cancelJob(this.JSC$13286_preventProgressSaveTimer);this.JSC$13286_preventProgressSaveTimer=null};
_.V.getSimpleString=function(J){return _.OG(J)};
_.V.onClick=function(J){if(this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint){var c,m=(c=this.data)==null?void 0:c.navigationEndpoint,b;c=(b=this.data)==null?void 0:b.channelEndpoint;var x,P;(b=(P=_.L((x=this.data)==null?void 0:x.adCtaButton,_.ur))==null?void 0:P.command)&&_.RO(_.OT(J),this.hostElement,["call-to-action"])?_.w("enable_fix_two_tab_short_dr")||this.ytSparklesClickLocationBehavior.handleClick(b,J,!1):c&&_.RO(_.OT(J),this.hostElement,["channel-thumbnail-container","short-byline-text"])?
this.ytSparklesClickLocationBehavior.handleClick(c,J,!1):!_.RO(_.OT(J),this.hostElement,["secondary-button"])&&m&&(_.w("enable_short_dr_for_desktop_launchable")?(x=!!_.L(m,_.Rz),this.isInlinePlaybackState&&x&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(m,J,x)):(this.isInlinePlaybackState&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(m,J,!0)))}};
_.V.updateWatchEndpointStartTime=function(){var J,c;this.player&&((J=this.data)==null?0:J.inlinePlaybackEndpoint)&&((c=this.data)==null?0:c.navigationEndpoint)&&!this.JSC$13286_preventProgressSaveTimer&&(J=Math.floor(this.player.getCurrentTime()),_.L(this.data.navigationEndpoint,_.Rz).startTimeSeconds=J,_.L(this.data.inlinePlaybackEndpoint,_.Rz).startTimeSeconds=J)};
_.V.computeButtonOverride=function(){if(this.uiUpdate)return{style:"call-to-action",type:"tonal"}};
_.V.computeSecondaryButtonOverride=function(){return{style:"call-to-action",type:"outline",iconPosition:"none"}};
_.eE.Object.defineProperties(oV.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.w("web_enable_typography_bump_v2")}},
isButtonGroup:{configurable:!0,enumerable:!0,get:function(){var J,c;return!((J=this.data)==null||!J.watchButton)&&!((c=this.data)==null||!c.adCtaButton)}}});
oV.prototype.hoverChanged=oV.prototype.hoverChanged;oV.prototype.dataChanged=oV.prototype.dataChanged;
oV.JSC$13285_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_TITLE","title-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","channel-thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_TEXT_PRODUCT_ADVERTISER","short-byline-text"],["PROMOTED_SPARKLES_CLICK_LOCATION_AD_BADGE","badge"],["PROMOTED_SPARKLES_CLICK_LOCATION_ACTION_LABEL","call-to-action"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","ad-inline-playback-metadata"]]);
oV.JSC$13285_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_TITLE",code:0,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:19,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_TEXT_PRODUCT_ADVERTISER",code:20,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_AD_BADGE",
code:31,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_ACTION_LABEL",code:8,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND",code:2,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}];
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],oV.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],oV.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.fY),_.R("design:type",Object)],oV.prototype,"ytdReduxBehavior",void 0);_.O([_.f(_.FP.YtSparklesClickLocationBehavior),_.R("design:type",Object)],oV.prototype,"ytSparklesClickLocationBehavior",void 0);
_.O([_.f(_.Ex.YtPlayerListenerBehavior),_.R("design:type",_.vX)],oV.prototype,"ytPlayerListenerBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],oV.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],oV.prototype,"isInlinePlaybackState",void 0);_.O([_.U({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],oV.prototype,"miniMode",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],oV.prototype,"uiUpdate",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],oV.prototype,"hideCta",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],oV.prototype,"noBottomMargin",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],oV.prototype,"animateInCta",void 0);_.O([_.U({computed:"computeButtonOverride(uiUpdate)"}),_.R("design:type",Object)],oV.prototype,"buttonOverride",void 0);
_.O([_.U({computed:"computeSecondaryButtonOverride(uiUpdate)"}),_.R("design:type",Object)],oV.prototype,"secondaryButtonOverride",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],oV.prototype,"isHovered",void 0);_.O([_.Iu("#button-container"),_.R("design:type",HTMLElement)],oV.prototype,"buttonContainer",void 0);_.O([_.U({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],oV.prototype,"typographyBump",void 0);
_.O([_.U({reflectToAttribute:!0}),_.q("typographyBump"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],oV.prototype,"typographyBumpV2",null);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],oV.prototype,"dataChanged",null);_.O([_.NE("isHovered"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],oV.prototype,"hoverChanged",null);
_.O([_.q("data"),_.U({reflectToAttribute:!0}),_.R("design:type",Boolean),_.R("design:paramtypes",[])],oV.prototype,"isButtonGroup",null);oV=_.O([_.E({is:"ytd-ad-inline-playback-meta-block",disableElementRegistration:!0})],oV);
_.v(oV,"ytd-ad-inline-playback-meta-block",function(){if(WZ_!==void 0)return WZ_;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return WZ_=J},{mode:_.mP("kevlar_poly_si_batch_j065")?1:2});var zTQ;var Qp=function(){var J=_.h.apply(this,arguments)||this;J.noBottomMargin=!1;J.isInlinePreviewTriggered=!1;J.JSC$13291_activeViewMeasurementDataResolver=_.$x();return J};
_.D(Qp,_.h);_.V=Qp.prototype;_.V.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.V.attached=function(){var J=this;this.updateInlinePreviewHoverListeners();this.JSC$13291_activeViewMeasurementDataResolver.promise.then(function(c){J.ytdActiveViewBehavior.enableActiveViewMeasurement(c,15)});
_.w("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&J.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.V.detached=function(){this.clearInlinePreviewHoverListeners();_.w("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.V.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13291_inlinePreviewHoverListener=AT({mediaRenderer:this,lockupElement:this.JSC$13291_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:$nz})};
_.V.clearInlinePreviewHoverListeners=function(){var J;(J=this.JSC$13291_inlinePreviewHoverListener)==null||Jm(J)};
_.V.onDataChanged=function(){var J;((J=this.data)==null?0:J.activeView)&&this.JSC$13291_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",Qp.JSC$13290_DEFAULT_CLICK_LOCATION_BEHAVIOR,Qp.JSC$13290_CLICK_LOCATION_ID_MAP);this.thumbnail&&(J=this.thumbnail.getElementsByTagName("a"),J.length>0&&(J=J.namedItem("thumbnail"))&&J.removeAttribute("href"));var c,m;if(((c=this.data)==
null?0:c.hasAutoplay)||((m=this.data)==null?0:m.forceImpAutoplay)){var b;(b=this.JSC$13291_inlinePreviewHoverListener)==null||yh8(b)}};
_.V.onTypographyBumpChanged=function(){this.adInlinePlaybackMetaBlock&&(this.adInlinePlaybackMetaBlock.typographyBump=this.typographyBump)};
_.V.onThumbnailContainerClick=function(J){if(this.data&&this.data.navigationEndpoint){var c,m=(c=this.data)==null?void 0:c.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(m,J,!!_.L(m,_.Rz));J.stopPropagation()}};
_.V.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.V.impressionLog=function(){var J=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var c,m,b=(m=_.L((c=this.data)==null?void 0:c.onImpression,_.pX))==null?void 0:m.commands;b&&(b.forEach(function(x){x.clickTrackingParams&&delete x.clickTrackingParams;J.ytComponentBehavior.resolveCommand(x)}),this.data.impressionsFired=!0)}};
_.eE.Object.defineProperties(Qp.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var J;return!((J=this.JSC$13291_inlinePreviewHoverListener)==null?0:uF(J))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
Qp.prototype.onTypographyBumpChanged=Qp.prototype.onTypographyBumpChanged;Qp.prototype.onDataChanged=Qp.prototype.onDataChanged;Qp.JSC$13290_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);Qp.JSC$13290_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:21,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}];
_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],Qp.prototype,"ytComponentBehavior",void 0);_.O([_.f(zX),_.R("design:type",Object)],Qp.prototype,"ytdActiveViewBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Qp.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],Qp.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.XP),_.R("design:type",Object)],Qp.prototype,"ytdDismissibleItemBehavior",void 0);
_.O([_.f(_.$N),_.R("design:type",Object)],Qp.prototype,"ytdLockupBehavior",void 0);_.O([_.f(_.fY),_.R("design:type",Object)],Qp.prototype,"ytdReduxBehavior",void 0);_.O([_.f(_.FP.YtSparklesClickLocationBehavior),_.R("design:type",Object)],Qp.prototype,"ytSparklesClickLocationBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Qp.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],Qp.prototype,"noBottomMargin",void 0);
_.O([_.U(),_.R("design:type",Object)],Qp.prototype,"isInlinePreviewTriggered",void 0);_.O([_.U({reflectToAttribute:!0,selector:_.DZ}),_.R("design:type",Boolean)],Qp.prototype,"miniMode",void 0);_.O([_.U({value:!1}),_.R("design:type",Boolean)],Qp.prototype,"typographyBump",void 0);_.O([_.Iu("ytd-thumbnail"),_.R("design:type",HTMLElement)],Qp.prototype,"thumbnail",void 0);_.O([_.Iu("#dismissible"),_.R("design:type",HTMLElement)],Qp.prototype,"JSC$13291_dismissibleMedia",void 0);
_.O([_.Iu("ytd-ad-inline-playback-meta-block"),_.R("design:type",HTMLElement)],Qp.prototype,"adInlinePlaybackMetaBlock",void 0);_.O([_.kr("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Qp.prototype,"onDataChanged",null);_.O([_.kr("typographyBump"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Qp.prototype,"onTypographyBumpChanged",null);
_.O([_.q("lockupIsHovered"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Qp.prototype,"isHovered",null);Qp=_.O([_.E({is:"ytd-video-display-full-buttoned-and-button-group-renderer",disableElementRegistration:!0})],Qp);
_.v(Qp,"ytd-video-display-full-buttoned-and-button-group-renderer",function(){if(zTQ!==void 0)return zTQ;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return zTQ=J},{mode:1});var uJL;var ey=function(){var J=_.h.apply(this,arguments)||this;J.isInlinePreviewTriggered=!1;J.JSC$13294_activeViewMeasurementDataResolver=_.$x();return J};
_.D(ey,_.h);_.V=ey.prototype;_.V.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.V.attached=function(){var J=this;this.updateInlinePreviewHoverListeners();this.JSC$13294_activeViewMeasurementDataResolver.promise.then(function(c){J.ytdActiveViewBehavior.enableActiveViewMeasurement(c,15)})};
_.V.detached=function(){this.clearInlinePreviewHoverListeners()};
_.V.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13294_inlinePreviewHoverListener=AT({mediaRenderer:this,lockupElement:this.JSC$13294_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:$nz})};
_.V.clearInlinePreviewHoverListeners=function(){var J;(J=this.JSC$13294_inlinePreviewHoverListener)==null||Jm(J)};
_.V.onDataChanged=function(){var J;((J=this.data)==null?0:J.activeView)&&this.JSC$13294_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",ey.JSC$13293_DEFAULT_CLICK_LOCATION_BEHAVIOR,ey.JSC$13293_CLICK_LOCATION_ID_MAP);this.thumbnail&&(J=this.thumbnail.getElementsByTagName("a"),J.length>0&&(J=J.namedItem("thumbnail"))&&J.removeAttribute("href"))};
_.V.onThumbnailContainerClick=function(J){if(this.data&&this.data.navigationEndpoint){var c,m=(c=this.data)==null?void 0:c.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(m,J,!0);J.stopPropagation()}};
_.V.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.V.impressionLog=function(){var J=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var c,m,b=(m=_.L((c=this.data)==null?void 0:c.onImpression,_.pX))==null?void 0:m.commands;b&&(b.forEach(function(x){x.clickTrackingParams&&delete x.clickTrackingParams;_.BG().resolve(_.gu).resolveCommand(x,{form:{element:J.hostElement}})}),this.data.impressionsFired=!0)}};
_.eE.Object.defineProperties(ey.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var J;return!((J=this.JSC$13294_inlinePreviewHoverListener)==null?0:uF(J))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
ey.prototype.onDataChanged=ey.prototype.onDataChanged;ey.JSC$13293_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);ey.JSC$13293_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:21,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}];_.O([_.f(zX),_.R("design:type",Object)],ey.prototype,"ytdActiveViewBehavior",void 0);
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],ey.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],ey.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.XP),_.R("design:type",Object)],ey.prototype,"ytdDismissibleItemBehavior",void 0);_.O([_.f(_.$N),_.R("design:type",Object)],ey.prototype,"ytdLockupBehavior",void 0);_.O([_.f(_.fY),_.R("design:type",Object)],ey.prototype,"ytdReduxBehavior",void 0);
_.O([_.f(_.FP.YtSparklesClickLocationBehavior),_.R("design:type",Object)],ey.prototype,"ytSparklesClickLocationBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],ey.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],ey.prototype,"isInlinePreviewTriggered",void 0);_.O([_.U({reflectToAttribute:!0,selector:_.DZ}),_.R("design:type",Boolean)],ey.prototype,"miniMode",void 0);_.O([_.Iu("ytd-thumbnail"),_.R("design:type",HTMLElement)],ey.prototype,"thumbnail",void 0);
_.O([_.Iu("#dismissible"),_.R("design:type",HTMLElement)],ey.prototype,"JSC$13294_dismissibleMedia",void 0);_.O([_.kr("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],ey.prototype,"onDataChanged",null);_.O([_.q("lockupIsHovered"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],ey.prototype,"isHovered",null);ey=_.O([_.E({is:"ytd-video-display-full-buttoned-renderer",disableElementRegistration:!0})],ey);
_.v(ey,"ytd-video-display-full-buttoned-renderer",function(){if(uJL!==void 0)return uJL;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return uJL=J},{mode:1});var P8=function(J,c,m,b){b=b===void 0?!1:b;_.Jq.call(this,J);this.adsClientErrorMessage=m;this.aggressivelySample=b;this.args=[];c&&this.args.push(c)};
_.D(P8,_.Jq);var xR=function(J,c,m,b){b=b===void 0?!1:b;_.Jq.call(this,J);this.adsClientErrorMessage=m;this.aggressivelySample=b;this.args=[];c&&this.args.push(c)};
_.D(xR,_.Jq);var fM_=function(J){_.DS.call(this);var c=this;this.initializationFunction=J;this.instance=null;this.addOnDisposeCallback(function(){_.yr(c.instance);c.instance=null})};
_.D(fM_,_.DS);fM_.prototype.get=function(){Math.random()<.001&&this.isDisposed()&&_.yG("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.initializationFunction());return this.instance};var tl3=function(){var J=new Map;[].forEach(function(c){J.set(c.JSC$26895_getType(),c)})};new Promise(function(){});var Vl2=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"]]),beT=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"}]]),Y32=function(J){this.experimentApiProvider=J;J=Math.random();this.experimentApiProvider.get();this.alwaysIncludeDebugData=J<.1};var jy=function(J,c,m,b){_.DS.call(this);this.adsControlFlowEventListeners=c;this.adEventLogger=m;this.experimentApiProvider=b;this.adsControlFlowManagerHelper=J(this,this,this,this,this);_.Kc(this,this.adsControlFlowManagerHelper);J=_.M(c);for(c=J.next();!c.done;c=J.next())_.Kc(this,c.value)};
_.D(jy,_.DS);var X6_=function(J,c,m,b){F9(J.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",c,m,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,b);J=_.M(J.adsControlFlowEventListeners);for(b=J.next();!b.done;b=J.next())X6_(b.value,c,m)};
_.V=jy.prototype;_.V.onOpportunityProcessedExternallyManaged=function(J,c,m,b){F9(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",J,m,c,void 0,void 0,void 0,void 0,void 0,void 0,void 0,b)};
_.V.onSlotReceivedExternallyManaged=function(J,c){lE(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",J,c)};
_.V.onSlotEntered=function(J){if(yp(this.adsControlFlowManagerHelper,J)!=null){lE(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",J);this.adsControlFlowManagerHelper.onSlotEntered(J);for(var c=_.M(this.adsControlFlowEventListeners),m=c.next();!m.done;m=c.next())m.value.onSlotEntered(J);if(yp(this.adsControlFlowManagerHelper,J)!=null&&yp(this.adsControlFlowManagerHelper,J).isOccupyingSlotType()&&BI(this.adsControlFlowManagerHelper,J)&&!ZLL(this.adsControlFlowManagerHelper,J)){var b;g0(this.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",J,(b=BI(this.adsControlFlowManagerHelper,J))!=null?b:void 0);J=yp(this.adsControlFlowManagerHelper,J);J.slotLifecycleStage!=="entered"&&JJ(J.slot,J.slotLifecycleStage,"enterLayoutForSlot");J.slotLifecycleStage="rendering";J.registeredLayoutRenderingAdapter.startRendering(J.layout)}}};
_.V.onSlotExited=function(J){if(yp(this.adsControlFlowManagerHelper,J)!=null){lE(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",J);this.adsControlFlowManagerHelper.onSlotExited(J);for(var c=_.M(this.adsControlFlowEventListeners),m=c.next();!m.done;m=c.next())m.value.onSlotExited(J);yp(this.adsControlFlowManagerHelper,J)!=null&&yp(this.adsControlFlowManagerHelper,J).markedForUnscheduleAfterOutboundAdapterRequests&&q3B(this,J)}};
_.V.onLayoutReceivedExternallyManaged=function(J,c,m){J.managerLayer!=="core"&&g0(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",J,c,m)};
var Uq8=function(J,c,m){if(yp(J.adsControlFlowManagerHelper,c)!=null){g0(J.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",c,m);J=_.M(J.adsControlFlowEventListeners);for(var b=J.next();!b.done;b=J.next())Uq8(b.value,c,m)}};
jy.prototype.onLayoutExited=function(J,c,m){if(yp(this.adsControlFlowManagerHelper,J)!=null){g0(this.adEventLogger,x5T(m),J,c);this.adsControlFlowManagerHelper.onLayoutExited(J,c);for(var b=_.M(this.adsControlFlowEventListeners),x=b.next();!x.done;x=b.next())x.value.onLayoutExited(J,c,m);(m=BI(this.adsControlFlowManagerHelper,J))&&c.layoutId===m.layoutId&&S3_(this,J)}};
jy.prototype.disposeInternal=function(){var J=hTj(this.adsControlFlowManagerHelper);J=_.M(J);for(var c=J.next();!c.done;c=J.next())q3B(this,c.value);_.DS.prototype.disposeInternal.call(this)};
var q3B=function(J,c){if(yp(J.adsControlFlowManagerHelper,c)!=null)if(yp(J.adsControlFlowManagerHelper,c).JSC$26926_isSlotExitRequested()||yp(J.adsControlFlowManagerHelper,c).JSC$26926_isLayoutExitRequested())yp(J.adsControlFlowManagerHelper,c).markedForUnscheduleAfterOutboundAdapterRequests=!0;else if(yp(J.adsControlFlowManagerHelper,c).isOccupyingSlotType())yp(J.adsControlFlowManagerHelper,c).markedForUnscheduleAfterOutboundAdapterRequests=!0,S3_(J,c);else if(yp(J.adsControlFlowManagerHelper,c).JSC$26926_isSlotFillRequested())yp(J.adsControlFlowManagerHelper,
c).markedForUnscheduleAfterOutboundAdapterRequests=!0,yp(J.adsControlFlowManagerHelper,c)!=null&&(lE(J.adEventLogger,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",c),c=yp(J.adsControlFlowManagerHelper,c),c.fulfillmentLifecycleStage="fill_cancel_requested",c.registeredFulfillmentAdapter.cancelSlotFilling());else{var m=BI(J.adsControlFlowManagerHelper,c),b;J.experimentApiProvider.get();(b=_.w("h5_enable_layout_unscheduling_events"))&&(m?dqQ(J,c,m):_.yG(Error("Fh"),c,m,void 0,!1));lE(J.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",c);var x=yp(J.adsControlFlowManagerHelper,c),P=c.slotEntryTrigger,p=x.registeredSlotEntryTriggerAdapters.get(P.triggerId);p&&(p.unregisterTrigger(P),x.registeredSlotEntryTriggerAdapters.delete(P.triggerId));P=_.M(c.slotFulfillmentTriggers);for(p=P.next();!p.done;p=P.next()){p=p.value;var t=x.registeredFulfillmentTriggerAdapters.get(p.triggerId);t&&(t.unregisterTrigger(p),x.registeredFulfillmentTriggerAdapters.delete(p.triggerId))}P=_.M(c.slotExpirationTriggers);
for(p=P.next();!p.done;p=P.next())if(p=p.value,t=x.registeredExpirationTriggerAdapters.get(p.triggerId))t.unregisterTrigger(p),x.registeredExpirationTriggerAdapters.delete(p.triggerId);x.hasLayout()&&(P=x.layout,cU(x,P.layoutExitNormalTriggers),cU(x,P.layoutExitSkipTriggers),cU(x,P.layoutExitMuteTriggers),cU(x,P.layoutExitUserInputSubmittedTriggers),cU(x,P.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=J.adsControlFlowManagerHelper;yp(x,c)&&(x=$q6(x,c.slotType+"_"+c.slotPhysicalPosition))&&x.delete(c.slotId);lE(J.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",c);J=_.M(J.adsControlFlowEventListeners);for(x=J.next();!x.done;x=J.next())x=x.value,x.onSlotUnscheduled(c),m&&!b&&dqQ(x,c,m)}},dqQ=function(J,c,m){g0(J.adEventLogger,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",
c,m);
g0(J.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",c,m);J=_.M(J.adsControlFlowEventListeners);for(var b=J.next();!b.done;b=J.next())b=b.value,m&&dqQ(b,c,m)},S3_=function(J,c){if(yp(J.adsControlFlowManagerHelper,c)!=null&&yp(J.adsControlFlowManagerHelper,c).isOccupyingSlotType()){var m=BI(J.adsControlFlowManagerHelper,c);
if(m&&ZLL(J.adsControlFlowManagerHelper,c)){if(yp(J.adsControlFlowManagerHelper,c)!=null){var b=J.adEventLogger,x;var P=((x=beT.get("abandoned"))==null?void 0:x.requestEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";g0(b,P,c,m);J=yp(J.adsControlFlowManagerHelper,c);J.slotLifecycleStage!=="rendering"&&JJ(J.slot,J.slotLifecycleStage,"exitLayout");J.slotLifecycleStage="rendering_stop_requested";J.registeredLayoutRenderingAdapter.stopRendering(m,"abandoned")}}else{lE(J.adEventLogger,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",
c);try{b=yp(J.adsControlFlowManagerHelper,c);if(!b)throw new xR("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");b.slotLifecycleStage!=="enter_requested"&&b.slotLifecycleStage!=="entered"&&b.slotLifecycleStage!=="rendering"&&JJ(b.slot,b.slotLifecycleStage,"exitSlot");b.slotLifecycleStage="exit_requested";if(b.registeredSlotAdapter===void 0)throw b.slotLifecycleStage="scheduled",new xR("Cannot exit slot because adapter is not defined",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");
b.registeredSlotAdapter.exit()}catch(p){p instanceof xR&&p.adsClientErrorMessage?(Gq_(J.adEventLogger,p.adsClientErrorMessage,c),_.yG(p,c,void 0,void 0,p.aggressivelySample)):(Gq_(J.adEventLogger,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",c),_.yG(p,c))}}}};var mw=function(J,c,m,b,x,P){_.DS.call(this);this.registry=J;this.experimentApiProvider=P;this.slotMap=new Map};
_.D(mw,_.DS);var $q6=function(J,c){return(J=J.slotMap.get(c))?J:new Map},yp=function(J,c){return $q6(J,c.slotType+"_"+c.slotPhysicalPosition).get(c.slotId)},hTj=function(J){var c=[];
J.slotMap.forEach(function(m){m=_.M(m.values());for(var b=m.next();!b.done;b=m.next())c.push(b.value.slot)});
return c};
mw.prototype.onSlotEntered=function(J){J=yp(this,J);J.slotLifecycleStage!=="enter_requested"&&JJ(J.slot,J.slotLifecycleStage,"onSlotEntered");J.slotLifecycleStage="entered"};
var ZLL=function(J,c){J=yp(J,c);return J.hasLayout()&&J.isRendering()},BI=function(J,c){(J=yp(J,c))?J.hasLayout()&&!J.layout&&_.yG("Unexpected empty layout",c):_.yG("Unexpected undefined slotState",c);
return(J==null?void 0:J.layout)||null};
mw.prototype.onSlotExited=function(J){J=yp(this,J);J.slotLifecycleStage!=="exit_requested"&&JJ(J.slot,J.slotLifecycleStage,"onSlotExited");J.slotLifecycleStage="scheduled"};
mw.prototype.onLayoutExited=function(J,c){J=yp(this,J);J.isPrimaryLayout(c)&&(J.slotLifecycleStage!=="rendering_stop_requested"&&JJ(J.slot,J.slotLifecycleStage,"onLayoutExited"),J.slotLifecycleStage="entered")};
var cU=function(J,c){c=_.M(c);for(var m=c.next();!m.done;m=c.next()){m=m.value;var b=J.registeredLayoutExitTriggerAdapters.get(m.triggerId);b&&(b.unregisterTrigger(m),J.registeredLayoutExitTriggerAdapters.delete(m.triggerId))}},JJ=function(J,c,m){_.yG("Slot stage was "+c+" when calling method "+m,J)};var vD_=function(J){_.DS.call(this);this.deps=J;this.JSC$13343_adsControlFlowManager=EDQ(this)};
_.D(vD_,_.DS);var EDQ=function(J){var c=new jy(function(m,b,x,P){return new mw(J.deps.registry,m,b,x,P,J.deps.experimentApiProvider)},new Set(NjG(J.deps.registry).concat(J.deps.listeners)),J.deps.adEventLogger,J.deps.experimentApiProvider);
_.Kc(J,c);return c};var OLQ=function(J,c){_.DS.call(this);this.experimentApiProvider=J;this.eventLoggingSettingsProvider=c;this.eventCount=0};
_.D(OLQ,_.DS);OLQ.prototype.logEvent=function(J){F9(this,J)};
var lE=function(J,c,m,b){F9(J,c,void 0,void 0,void 0,m,void 0,void 0,void 0,m.adSlotLoggingData,void 0,void 0,b)},g0=function(J,c,m,b,x){F9(J,c,void 0,void 0,void 0,m,b?b:void 0,void 0,void 0,m.adSlotLoggingData,b?b.adLayoutLoggingData:void 0,void 0,x)},Gq_=function(J,c,m){F9(J,"ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,m,void 0,void 0,void 0,m.adSlotLoggingData,void 0,{errorType:"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",
errorMessage:c})},F9=function(J,c,m,b,x,P,p,t,I,a,k,H,T){T=T===void 0?0:T;
Abj(J.experimentApiProvider.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+c,"slot:",P,"layout:",p,"ping:",t,"Opportunity:",{opportunityType:m,associatedSlotId:b,slotsFromOpportunity:x,triggerBundle:I,adSlotLoggingData:a,adLayoutLoggingData:k});try{var r=function(){J.experimentApiProvider.get();if(c!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){c||_.yG("Empty PACF event type",P,p);var W=J.eventLoggingSettingsProvider.get();var Y;(Y=W.alwaysIncludeDebugData)||(W.experimentApiProvider.get(),Y=
!1);W=Y;Y={eventType:c,eventOrder:++J.eventCount};var Z={};P&&(Z.slotData=Mle(W,P));if(p){var d={type:p.layoutType,controlFlowManagerLayer:Vl2.get(p.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};W&&(d.debugData={layoutId:p.layoutId});Z.layoutData=d}t&&(Z.pingData={pingDispatchStatus:t.dispatchStatus,serializedAdPingMetadata:t.ping.serializedAdPingMetadata,pingIndex:t.index});I&&(Z.triggerData=P2G(I.trigger,I.category));m&&(Z.opportunityData=pof(W,m,b,x));Y.adClientData=Z;a&&(Y.serializedSlotAdServingData=
a.serializedSlotAdServingDataEntry);k&&(Y.serializedAdServingData=k.serializedAdServingDataEntry);H&&(Y.errorInfo=H);_.zB("adsClientStateChange",{adsClientEvent:Y})}};
T&&T>0?_.rv(_.LZ(),function(){return r()},T):r()}catch(W){Abj(J.experimentApiProvider.get(),"html5_log_pacf_logging_errors")&&_.rv(_.LZ(),function(){_.yG(W instanceof Error?W:String(W),P,p,{pacf_message:"exception during pacf logging"})})}};var RT$=function(J,c){OLQ.call(this,J,c)};
_.D(RT$,OLQ);var oDz=function(){},Abj=function(J,c){return _.w(c)};var eT$=function(){var J=new Qo_;this.JSC$13362_adsControlFlowManager=(new vD_(J)).JSC$13343_adsControlFlowManager},Qo_=function(){_.DS.call(this);
var J=this;this.experimentApiProvider=new fM_(function(){return new oDz});
var c=new fM_(function(){return new Y32(J.experimentApiProvider)});
this.adEventLogger=new RT$(this.experimentApiProvider,c);this.registry={opportunityAdapterMap:new Map,fulfillmentAdapterFactoryMap:new Map,triggerAdapterMap:new Map,slotAdapterFactoryMap:new Map,layoutRenderingAdapterFactoryMap:new Map};this.listeners=[]};
_.D(Qo_,_.DS);var jo8=function(){},FZ_,by=function(){FZ_||(FZ_=new jo8);
return FZ_},xG=function(J){if(!J.JSC$13373_externallyManagedSlotAdapterCallback){var c=(new eT$).JSC$13362_adsControlFlowManager;
J.JSC$13373_externallyManagedSlotAdapterCallback=c}return J.JSC$13373_externallyManagedSlotAdapterCallback},lM6=function(J,c,m){var b=c.opportunityType,x=Error("Gh");
if(b!==void 0){var P=xG(J);X6_(P,b,void 0,m)}else _.yG(x,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});P=[];if(c.adSlotAndLayoutMetadata!==void 0){c=_.M(c.adSlotAndLayoutMetadata);for(var p=c.next();!p.done;p=c.next()){var t=p.value;if(p=t.adSlotMetadata)if(P.push(p),J.onSlotReceivedExternallyManaged(p,m),t.adLayoutMetadata){t=_.M(t.adLayoutMetadata);for(var I=t.next();!I.done;I=t.next())J.onLayoutReceivedExternallyManaged(p,I.value,m)}else m>0&&_.yG("AdLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+
b,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});else m>0&&_.yG("AdSlotMetadata is not filled for PACFied response on TV for opportunity type: "+b,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"})}}else m>0&&_.yG("AdSlotAndLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+b,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});if(b!==void 0)J.onOpportunityProcessedExternallyManaged(b,P,void 0,m);else _.yG(x,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"})};
jo8.prototype.onSlotReceivedExternallyManaged=function(J,c){J=Vg(J);if(J instanceof xR)_.yG(J,void 0,void 0,{event:"onSlotReceivedExternallyManaged"});else xG(this).onSlotReceivedExternallyManaged(J,c)};
jo8.prototype.onLayoutReceivedExternallyManaged=function(J,c,m){J=Vg(J);c=I8J(c);if(J instanceof xR)_.yG(J,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else if(c instanceof P8)_.yG(c,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else xG(this).onLayoutReceivedExternallyManaged(J,c,m)};
jo8.prototype.onOpportunityProcessedExternallyManaged=function(J,c,m,b){var x=[];c=_.M(c);for(var P=c.next();!P.done;P=c.next())P=Vg(P.value),P instanceof xR?_.yG(P,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"}):x.push(P);xG(this).onOpportunityProcessedExternallyManaged(J,x,m,b)};
var yba=function(J,c){c=Vg(c);if(c instanceof xR)_.yG(c,void 0,void 0,{event:"onSlotScheduledAndEnteredExternallyManaged"});else{var m=xG(J);lE(m.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",c);m=_.M(m.adsControlFlowEventListeners);for(var b=m.next();!b.done;b=m.next())b=yp(b.value,c),b.slotLifecycleStage!=="not_scheduled"&&JJ(b.slot,b.slotLifecycleStage,"onSlotScheduled"),b.slotLifecycleStage="scheduled";J=xG(J);lE(J.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",c);J=_.M(J.adsControlFlowEventListeners);
for(m=J.next();!m.done;m=J.next())m.value.onSlotEntered(c)}},B$C=function(J,c){c=Vg(c);
if(c instanceof xR)_.yG(c,void 0,void 0,{event:"onSlotExitedAndUnscheduledExternallyManaged"});else{var m=xG(J);lE(m.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",c);m=_.M(m.adsControlFlowEventListeners);for(var b=m.next();!b.done;b=m.next())b.value.onSlotExited(c);J=xG(J);lE(J.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",c);J=_.M(J.adsControlFlowEventListeners);for(m=J.next();!m.done;m=J.next())m.value.onSlotUnscheduled(c)}},gDC=function(J,c,m){c=Vg(c);
m=I8J(m);if(c instanceof xR)_.yG(c,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else if(m instanceof P8)_.yG(m,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else{var b=xG(J);g0(b.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",c,m);b=_.M(b.adsControlFlowEventListeners);for(var x=b.next();!x.done;x=b.next())x.value.onLayoutScheduled(c,m);J=xG(J);g0(J.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",c,m);J=_.M(J.adsControlFlowEventListeners);
for(b=J.next();!b.done;b=J.next())Uq8(b.value,c,m)}},V0=function(J,c,m){c=Vg(c);
m=I8J(m);if(c instanceof xR)_.yG(c,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else if(m instanceof P8)_.yG(m,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else{var b=xG(J);g0(b.adEventLogger,x5T("normal"),c,m);b=_.M(b.adsControlFlowEventListeners);for(var x=b.next();!x.done;x=b.next())x.value.onLayoutExited(c,m,"normal");J=xG(J);J=_.M(J.adsControlFlowEventListeners);for(b=J.next();!b.done;b=J.next())dqQ(b.value,c,m)}};_.PU=_.Q1(function(J){var c=_.ou(J,{targetHeight:void 0,targetWidth:void 0,preserveHeight:!1,preserveWidth:!1,useWidth:!1,setOnErrorHandler:!1,setProgressiveImageLoading:!1,listenToTapEvent:!1,isGridViewEnabled:!1});J=Object.assign({},c);var m=c.data;c=c.customCommandResolver;var b=(delete J.data,delete J.customCommandResolver,J),x=_.oN("ad-image-view-model");_.Rt(x,function(){return m().interaction},c,function(){var t;
return(t=b.listenToTapEvent)==null?void 0:t.call(b)});
_.gv(x,{visibilityCallback:function(t){var I,a=(I=m().interaction)==null?void 0:I.onFirstVisible;t&&(a&&_.hd(a),b.setOnErrorHandler()&&K12(x))},
showOption:_.QC});J=_.M(_.K2(!1,void 0,"eiYvIe"));var P=J.next().value,p=J.next().value;return _.C("ad-image-view-model",{class:function(){var t,I=[((t=m().interaction)==null?0:t.onTap)?"ytwAdImageViewModelHostIsClickableAdComponent":"ytwAdImageViewModelHost"],a;((a=b.isGridViewEnabled)==null?0:a.call(b))&&I.push("ytwAdImageViewModelHostInGridView");return I.join(" ")},
el:x,"on:touchend":_.Kq(function(){var t;((t=b.setTouchEndHandler)==null?0:t.call(b))&&!P()&&(x.value.click(),p(!0),setTimeout(function(){p(!1)},100));
return!1})},_.C("div",{class:"ytwAdImageViewModelHostImageContainer"},_.C(_.RA,{data:function(){var t;
return{sources:m().imageSources,contentMode:(t=m().imageProperties)==null?void 0:t.contentMode}},
alt:function(){var t,I;return((t=m().interaction)==null?void 0:(I=t.accessibility)==null?void 0:I.label)||""},
targetHeight:b.targetHeight,targetWidth:b.targetWidth,preserveHeight:b.preserveHeight,preserveWidth:b.preserveWidth,useWidth:b.useWidth,style:function(){var t,I;return"vertical-align: bottom;"+(((t=m().background)==null?0:t.color)?"background-color:"+_.XB((I=m().background)==null?void 0:I.color)+";":"")},
className:function(){return b.setProgressiveImageLoading()?"ytwAdImageViewModelHostImage":void 0},
draggable:function(){var t,I;return(I=(t=b.setDraggable)==null?void 0:t.call(b))!=null?I:void 0}})))},"gb");var Jnj=_.Q1(function(J){var c=J.data,m=J.listenToTapEvent,b=_.oN("ad-button-hover-overlay-view-model");_.w("enable_web_home_top_landscape_image_layout_legacy_click_command")||_.Rt(b,function(){return c().interaction},void 0,function(){return m==null?void 0:m()});
_.gv(b,{visibilityCallback:function(P){var p,t=(p=c().interaction)==null?void 0:p.onFirstVisible;P&&t&&_.hd(t)},
showOption:_.QC});var x=function(){};
return _.C("ad-button-hover-overlay-view-model",{"on:click":_.Kq(function(){if(_.w("enable_web_home_top_landscape_image_layout_legacy_click_command")){var P,p=(P=c().interaction)==null?void 0:P.onTap;p&&_.cA(b.value,"yt-navigate",{endpoint:_.ZG(p)})}}),
class:function(){var P;return((P=c().interaction)==null?0:P.onTap)?"ytwAdButtonHoverOverlayViewModelHostIsClickableAdComponent":"ytwAdButtonHoverOverlayViewModelHost"},
el:b},function(){return _.w("enable_web_home_top_landscape_image_layout_legacy_click_command")?_.C(_.wi,{data:function(){return c().button}},{adButtonViewModel:function(P){return _.C(_.j7,{data:P.data,
customCommandResolver:x})}}):_.C(_.wi,{data:function(){return c().button}},{adButtonViewModel:_.j7})}())},"hb");var MJ;_.lv(_.Q1(function(J){var c=J.data;var m=_.oN("compact-landscape-no-button-layout-view-model");_.w("stop_av_measurement_on_detach")&&_.f2(function(){NJ(m)});
_.Rt(m,function(){return c().interaction},void 0,function(){return!0});
_.gv(m,{visibilityCallback:function(P){if(P){var p;(P=(p=c().interaction)==null?void 0:p.onFirstVisible)&&_.hd(P);var t;if(p=(t=c().adLayoutData)==null?void 0:t.activeViewData)py(m,p),_.w("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&NJ(m)})}else _.w("stop_av_measurement_on_detach")&&NJ(m)},
showOption:_.QC,hideOption:e7});J=_.M(_.K2(!1,void 0,"yzu6qe"));var b=J.next().value,x=J.next().value;return _.C("compact-landscape-no-button-layout-view-model",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHost",el:m,"on:mouseenter":_.Kq(function(){x(!0)}),
"on:mouseleave":_.Kq(function(){x(!1)})},_.C("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainer",
style:_.kx({"max-width":function(){return _.w("enable_desktop_search_bigger_thumbs")?"500px":"360px"}})},_.C("div",{class:function(){var P;
a:{var p;switch((P=_.L(c().thumbnailImage,kW))==null?void 0:(p=P.imageProperties)==null?void 0:p.renderingAspect){case "RENDERING_ASPECT_SQUARE":P="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerSquareImageContainer";break a;case "RENDERING_ASPECT_LANDSCAPE":P="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerLandscapeImageContainer";break a}P=void 0}return P}},_.C(_.wi,{data:function(){return c().thumbnailImage}},{adImageViewModel:function(P){return _.C(_.PU,
{data:P.data,
listenToTapEvent:!0,setTouchEndHandler:_.w("enable_top_landscape_image_experiment_dom_id_web")})}})),_.C("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.C(_.n,{cond:function(){var P,p,t;
return(P=_.L(c().thumbnailImage,kW))==null?void 0:(p=P.imageProperties)==null?void 0:(t=p.overlayIcon)==null?void 0:t.iconImage},
then:function(P){return _.C(_.RA,{data:P,alt:"",className:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"})}})),_.C("div",{class:function(){return b()?"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.C(_.wi,{data:function(){return c().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(P){return _.C(Jnj,
{data:P.data,
listenToTapEvent:!0})}}))),_.C("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostMetadata"},_.C(_.wi,{data:function(){return c().feedAdMetadata}},{feedAdMetadataViewModel:function(P){return _.C(Ig_,{data:P.data,
listenToTapEvent:!0,setTouchEndHandler:_.w("enable_top_landscape_image_experiment_dom_id_web")})}})))},"ib"),"compact-landscape-no-button-layout-view-model",{props:{data:_.vt}});_.lv(_.Q1(function(J){var c=J.data;var m=_.oN("square-image-layout-view-model");_.w("stop_av_measurement_on_detach")&&_.f2(function(){NJ(m)});
var b=_.fq(_.S8);_.Rt(m,function(){return c().interaction});
_.gv(m,{visibilityCallback:function(a){if(a){var k;(a=(k=c().interaction)==null?void 0:k.onFirstVisible)&&_.hd(a);var H;if(k=(H=c().adLayoutData)==null?void 0:H.activeViewData)py(m,k),_.w("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&NJ(m)})}else _.w("stop_av_measurement_on_detach")&&NJ(m)},
showOption:_.QC,hideOption:e7});var x=_.Kq(function(a){var k,H,T=(k=_.L(c().adImage,kW))==null?void 0:(H=k.interaction)==null?void 0:H.onTap;T&&(_.w("enable_square_image_components_ui_web_with_custom_event")?_.cA(m.value,"yt-navigate",{endpoint:_.ZG(T)}):OWG(a,T))}),P=_.Kq(function(){var a,k,H=(a=_.L(c().adButton,gRz))==null?void 0:(k=a.interaction)==null?void 0:k.onTap;
H&&_.cA(m.value,"yt-navigate",{endpoint:_.ZG(H)})}),p=function(){};
J={};var t={},I={};return _.C("square-image-layout-view-model",{class:_.pq("ytwSquareImageLayoutViewModelHost",(J.ytwSquareImageLayoutViewModelHostColumn=b,J)),el:m},_.C("div",{class:_.pq("ytwSquareImageLayoutViewModelHostImage",(t.ytwSquareImageLayoutViewModelHostColumnImage=b,t))},function(){return _.w("enable_square_image_components_ui_web_with_native_img")?_.C("img",{class:"ytwSquareImageLayoutViewModelHostImageExp",src:function(){var a,k,H;return((a=_.L(c().adImage,kW))==null?void 0:(k=a.imageSources)==
null?void 0:(H=k[0])==null?void 0:H.url)||"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="},
draggable:"false","on:click":x}):_.C(_.wi,{data:function(){return c().adImage}},{adImageViewModel:function(a){return _.C(_.PU,{data:a.data,
isGridViewEnabled:b,targetHeight:168,setOnErrorHandler:!0,setDraggable:!1,setProgressiveImageLoading:!0})}})}()),_.C("div",{class:_.pq("ytwSquareImageLayoutViewModelHostMetadataButtonContainer",(I.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainer=b,I))},_.C(_.wi,{data:function(){return c().feedAdMetadata}},{feedAdMetadataViewModel:Ig_}),function(){return _.w("enable_square_image_components_ui_web_with_float_button")?_.C("div",{"on:click":P},_.C(_.wi,{data:function(){return c().adButton}},
{adButtonViewModel:function(a){var k={};
return _.C(_.j7,{data:a.data,customCommandResolver:p,className:_.pq((k.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,k.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=b,k))})}})):_.C(_.wi,{data:function(){return c().adButton}},{adButtonViewModel:function(a){var k={};
return _.C(_.j7,{data:a.data,className:_.pq((k.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,k.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=b,k))})}})}()))},"jb"),"square-image-layout-view-model",{props:{data:_.vt}});_.lv(_.Q1(function(J){var c=J.data;var m=J.noBottomMargin;var b=J.typographyBump;var x=_.oN("top-landscape-image-layout-view-model");_.w("stop_av_measurement_on_detach")&&_.f2(function(){NJ(x)});
_.w("enable_web_home_top_landscape_image_layout_level_click")&&_.Rt(x,function(){return c().interaction},void 0,function(){return!0});
J=function(){return c().interaction};
J!==void 0&&J!==null||_.Ge(Error("Hh"));_.gv(x,{visibilityCallback:function(a){if(a){var k;(a=(k=c().interaction)==null?void 0:k.onFirstVisible)&&_.hd(a);var H;if(k=(H=c().adLayoutData)==null?void 0:H.activeViewData)py(x,k),_.w("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&NJ(x)})}else _.w("stop_av_measurement_on_detach")&&NJ(x)},
showOption:_.QC,hideOption:e7});var P=function(){var a,k,H;return(a=_.L(c().thumbnailImage,kW))==null?void 0:(k=a.background)==null?void 0:(H=k.backgroundImageSource)==null?void 0:H.imageSources};
J=_.M(_.K2(!1,void 0,"GIwTMc"));var p=J.next().value,t=J.next().value,I=function(){return p()?"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"};
return _.C("top-landscape-image-layout-view-model",{class:function(){var a;return((a=c().interaction)==null?0:a.onTap)&&_.w("enable_web_home_top_landscape_image_layout_level_click")?"ytwTopLandscapeImageLayoutViewModelHostIsClickableAdComponent":"ytwTopLandscapeImageLayoutViewModelHost"},
el:x,"on:mouseenter":_.Kq(function(){t(!0)}),
"on:mouseleave":_.Kq(function(){t(!1)})},_.C("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainer"},_.C(_.n,{cond:function(){return P()&&P().length>0},
then:function(){return _.C("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerBackgroundImage",style:_.kx({top:"0","background-image":function(){return"url("+String(P()[0].url)+")"},
"background-position":"center","background-repeat":"no-repeat","background-size":"100% 100%"})})}}),_.C(_.n,{cond:function(){return!!c().adButtonHoverOverlay},
then:function(){return _.C("div",{class:I},_.C(_.wi,{data:function(){return c().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:Jnj}))}}),_.C("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerImage"},_.C(_.wi,{data:function(){return c().thumbnailImage}},{adImageViewModel:function(a){return _.C(_.PU,{data:a.data,
targetWidth:1152,useWidth:!0,setTouchEndHandler:!1,listenToTapEvent:_.w("enable_web_home_top_landscape_image_layout_level_click")})}})),_.C("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.C(_.RA,{data:{sources:[{clientResource:{imageName:_.w("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"EXTERNAL_LINK"}}]},
alt:"",className:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"}))),_.C("div",{class:"ytwTopLandscapeImageLayoutViewModelHostMetadata"},_.C(_.wi,{data:function(){return c().feedAdMetadata}},{feedAdMetadataViewModel:function(a){return _.C(Ig_,{data:a.data,
noBottomMargin:function(){return m==null?void 0:m()},
listenToTapEvent:function(){return _.w("enable_web_home_top_landscape_image_layout_level_click")},
typographyBump:function(){return b==null?void 0:b()}})}})))},"kb"),"top-landscape-image-layout-view-model",{props:{data:_.vt,
noBottomMargin:_.vt,typographyBump:_.vt}});_.lv(_.Q1(function(J){var c=J.data;var m=J.typographyBump;var b=_.oN("video-display-button-group-layout-view-model");_.gv(b,{visibilityCallback:function(x){if(x){var P;(x=(P=c().interaction)==null?void 0:P.onFirstVisible)&&_.hd(x);var p;P=(p=c().adLayoutData)==null?void 0:p.activeViewData;!_.w("ablate_desktop_short_dr_video_ads_components_ui_active_view")&&P&&py(b,P)}},
showOption:_.QC,hideOption:e7});return _.C("video-display-button-group-layout-view-model",{class:"ytwVideoDisplayButtonGroupLayoutViewModelHost",el:b},_.C("div",null,_.C(_.wi,{data:function(){return c().videoLockup}},{lockupViewModel:function(x){return _.C(_.g1,{data:x.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailTargetWidth:9999,typographyBump:m})}})))},"lb"),"video-display-button-group-layout-view-model",{props:{data:_.vt,
noBottomMargin:_.vt,typographyBump:_.vt}});_.lv(_.Q1(function(J){var c=J.data;var m=J.className;var b=J.typographyBump;var x=_.oN("video-display-compact-button-group-layout-view-model");_.gv(x,{visibilityCallback:function(P){if(P){var p;(P=(p=c().interaction)==null?void 0:p.onFirstVisible)&&_.hd(P);var t;(p=(t=c().adLayoutData)==null?void 0:t.activeViewData)&&py(x,p)}},
showOption:_.QC});return _.C("video-display-compact-button-group-layout-view-model",{el:x,class:_.pq("videoDisplayCompactButtonGroupLayoutViewModelHost",m)},_.C(_.wi,{data:function(){return c().videoLockup}},{lockupViewModel:function(P){return _.C(_.g1,{data:P.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:b})}}))},"mb"),"video-display-compact-button-group-layout-view-model",{props:{data:_.vt,
className:_.vt,typographyBump:_.vt}});_.lv(_.Q1(function(J){var c=J.data;var m=J.typographyBump;var b=_.oN("video-display-full-layout-view-model");_.gv(b,{visibilityCallback:function(x){if(x){var P;(x=(P=c().interaction)==null?void 0:P.onFirstVisible)&&_.hd(x);var p;P=(p=c().adLayoutData)==null?void 0:p.activeViewData;!_.w("ablate_desktop_short_dr_video_ads_components_ui_active_view")&&P&&py(b,P)}},
showOption:_.QC,hideOption:e7});return _.C("video-display-full-layout-view-model",{class:"ytwVideoDisplayFullLayoutViewModelHost",el:b},_.C("div",null,_.C(_.wi,{data:function(){return c().videoLockup}},{lockupViewModel:function(x){return _.C(_.g1,{data:x.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0},thumbnailTargetWidth:9999,typographyBump:m})}})))},"nb"),"video-display-full-layout-view-model",{props:{data:_.vt,
noBottomMargin:_.vt,typographyBump:_.vt}});_.cnZ=_.Q1(function(J){var c=J.data;J=_.oN("ad-card-badge-view-model");return _.C("ad-card-badge-view-model",{class:function(){return"ytwAdCardBadgeViewModelHost"},
el:J},_.C(_.n,{cond:function(){return c().imageBadge},
then:function(m){return _.C(_.RA,{data:m,alt:""})}}))},"ob");var m5Q=_.Q1(function(J){var c=J.data;var m=J.customCommandResolver;J=_.oN("carousel-ad-card-image-view-model");_.Rt(J,function(){return c().interaction},m);
_.gv(J,{visibilityCallback:function(b){var x,P=(x=c().interaction)==null?void 0:x.onFirstVisible;b&&P&&_.hd(P)},
showOption:_.QC});return _.C("carousel-ad-card-image-view-model",{class:function(){var b;return((b=c().interaction)==null?0:b.onTap)?"ytwCarouselAdCardImageViewModelHostIsClickableAdComponent":"ytwCarouselAdCardImageViewModelHost"},
el:J,"aria-label":function(){var b,x;return(b=c().interaction)==null?void 0:(x=b.accessibility)==null?void 0:x.label}},_.C(_.wi,{data:function(){return c().adImage}},{adImageViewModel:function(b){return _.C(_.PU,{data:b.data,
customCommandResolver:m})}}),_.C("div",{class:"ytwCarouselAdCardImageViewModelHostCardBadge"},_.C(_.wi,{data:function(){return c().badge}},{adCardBadgeViewModel:_.cnZ})),_.C(_.TH,{model:{color:4}}))},"pb");var beL=_.Q1(function(J){var c=_.M(_.K2(0,void 0,"o9Bzd")),m=c.next().value;c.next();var b=c.next().value,x=_.M(_.K2(!1,void 0,"KLdzYe"));c=x.next().value;var P=x.next().value,p;_.f2(function(){clearTimeout(p)});
x=_.Kq(function(){var a;((a=J.animate)==null?0:a.call(J))?(P(!0),p=setTimeout(function(){P(!1);t()},200)):t();
return!1});
var t=function(){b(function(a){return(a+J.numShownItems())%J.data().length})},I={};
return _.C("horizontal-carousel",{class:"ytwHorizontalCarouselHost"},_.C("div",{class:_.pq("ytwHorizontalCarouselCarouselWrapper")},_.C("div",{class:_.pq("ytwHorizontalCarouselCarouselInnerWrapper",(I.ytwHorizontalCarouselAnimating=c,I))},_.C(_.Te,{each:J.data,keyBy:"INDEX"},function(a,k){return _.C("div",{class:"ytwHorizontalCarouselCarouselItem",style:_.kx({"flex-basis":function(){return"calc((100% - (8px * "+(J.numShownItems()-1)+")) / "+J.numShownItems()+")"},
order:function(){var H=k-m();H<0&&(H+=J.data().length);return H}})},J.children(a,k))}))),_.C("div",{class:"ytwHorizontalCarouselNextButton",
"on:click":x},J.nextButton()))},"qb");var x5L=_.Q1(function(J){var c=J.data;var m=J.customCommandResolver;var b=J.expansive;J=_.oN("carousel-ad-card-collection-view-model");_.gv(J,{visibilityCallback:function(x){var P,p=(P=c().interaction)==null?void 0:P.onFirstVisible;x&&p&&_.hd(p)},
showOption:_.QC});return _.C("carousel-ad-card-collection-view-model",{class:"ytwCarouselAdCardCollectionViewModelHost",el:J},_.C(beL,{data:function(){var x;return((x=c())==null?void 0:x.carouselAdCards)||[]},
nextButton:function(){return _.C(_.wi,{data:function(){return c().nextButton}},{buttonViewModel:function(x){var P=x.data;
return _.C(_.XU,{data:function(){return(b==null?0:b())?Object.assign({},P(),{style:"mono"}):P()},
className:_.w("web_enable_full_height_carousel_next_button")?"ytwCarouselAdCardCollectionViewModelFullHeightButton":""})}})},
numShownItems:3,animate:!0},function(x){return _.C(_.wi,{data:x},{carouselAdCardImageViewModel:function(P){return _.C(m5Q,{data:P.data,customCommandResolver:m})}})}))},"rb");var Vl6=_.Q1(function(J){var c=J.data;var m=J.customCommandResolver;var b=J.className;var x=J.buttonClassName;var P=J.animationEntityKey;var p=J.expansive;return _.C("carousel-button-view-model",{class:_.pq("ytwCarouselButtonViewModelHost",b)},_.C(_.wi,{data:function(){return c().carousel}},{carouselAdCardCollectionViewModel:function(t){return _.C(x5L,{data:t.data,
customCommandResolver:m,expansive:p})}}),_.C(_.wi,{data:function(){return c().button}},{adButtonViewModel:function(t){var I=t.data;
return _.C(_.j7,{data:function(){return(p==null?0:p())?Object.assign({},I(),{style:"AD_BUTTON_STYLE_TONAL"}):I()},
className:x,customCommandResolver:m,animationEntityKey:P})}}))},"sb");_.P2Q=_.Q1(function(J){var c=J.data;J=J.className;var m=_.oN("pivot-button-view-model");_.uN(function(){var b;((b=c())==null?0:b.backgroundColor)&&m.value.setAttribute("data-background-color",String(c().backgroundColor))});
return _.C("pivot-button-view-model",{el:m,class:_.pq("ytwPivotButtonViewModelHost",J)},_.C(_.cL,{command:function(){var b=c();b=b.onClickCommand?_.ZG(b.onClickCommand):b.contentDescription?_.ek(b.contentDescription):void 0;return b},
ariaLabel:function(){return c().contentDescription}},_.C(_.n,{cond:function(){return c().thumbnail},
then:function(b){return _.C(_.RA,{data:b,alt:"",className:"ytwPivotButtonViewModelHostImage"})},
else:function(){return _.C(_.n,{cond:function(){return c().icon},
then:function(b){return _.C(_.HP,{icon:function(){return b().iconType},
className:"ytwPivotButtonViewModelHostIcon"})}})}})))},"tb");_.Ml$=_.Q1(function(J){var c=J.data;var m=J.buttonShapeOverrideables;return _.C("reel-action-bar-view-model",{class:"ytwReelActionBarViewModelHost"},_.C(_.wi,{data:function(){return c().buttonViewModels}},{buttonViewModel:function(b){return _.C(_.XU,{data:b.data,
buttonOverrides:m})},
likeButtonViewModel:function(b){return _.C(_.zr,{data:b.data,buttonShapeOverrideables:m})},
dislikeButtonViewModel:function(b){return _.C(_.WT,{data:b.data,buttonShapeOverrideables:m})}}))},"ub");var pou=_.Q1(function(J){var c=J.avatar;var m=J.headline;var b=J.badge;var x=J.description;var P=J.expansive;J={};return _.C("yt-ad-metadata-shape",{class:_.pq("ytAdMetadataShapeHost",(J.ytAdMetadataShapeHostLarge=P,J))},_.C("div",{class:"ytAdMetadataShapeHostAvatarLockup"},_.C(_.n,{cond:c,then:function(p){return _.C(_.Miu,{data:function(){return(P==null?0:P())?Object.assign({},p(),{size:"AD_AVATAR_SIZE_MPLUS"}):p()}})}}),_.C("div",{class:"ytAdMetadataShapeHostHeadlineContainer"},_.C(_.j8,{text:m,
className:"ytAdMetadataShapeHostHeadline",linkInheritColor:!0}),_.C(_.n,{cond:b,then:function(p){return _.C(_.yC,{data:function(){return(P==null?0:P())?Object.assign({},p(),{style:"AD_BADGE_STYLE_STARK"}):p()},
adRenderingContextType:"AD_RENDERING_CONTEXT_TYPE_REELS"})}}))),_.C("h2",{class:"ytAdMetadataShapeHostDescription"},_.C(_.j8,{text:x,
linkInheritColor:!0})))},"vb");var NjQ=_.Q1(function(J){var c=J.data;var m=J.onShow;var b=J.expansive;J=_.oN("reels-ad-card-buttoned-view-model");_.Rt(J,function(){return c().interaction});
_.uN(function(){var P,p=(P=c().animatedRenderingConfig)==null?void 0:P.delayedSecondsToVisible;if(p){var t=setTimeout(m,p*1E3);_.f2(function(){clearTimeout(t)})}});
var x={};return _.C("reels-ad-card-buttoned-view-model",{class:_.pq(function(){var P;return((P=c().interaction)==null?0:P.onTap)?"ytwReelsAdCardButtonedViewModelHostIsClickableAdComponent":"ytwReelsAdCardButtonedViewModelHost"},(x.ytwReelsAdCardButtonedViewModelHostExpansive=b,x)),
el:J},_.C(pou,{avatar:function(){return _.L(c().avatar,y3L)},
headline:function(){return c().headline},
badge:function(){return _.L(c().adBadge,BJQ)},
description:function(){return c().description},
expansive:b}),_.C(_.wi,{data:function(){return c().ctaButton}},{adButtonViewModel:function(P){var p=P.data;
return _.C(_.j7,{data:function(){return(b==null?0:b())?Object.assign({},p(),{style:"AD_BUTTON_STYLE_FILLED"}):p()}})}}))},"wb");var tl_=_.Q1(function(J){var c=J.data;J=J.expansive;var m=_.oN("reels-ad-metadata-view-model");_.w("web_ad_metadata_clickable")&&_.Rt(m,function(){return c().interaction});
var b={};b=_.tP("ytwReelsAdMetadataViewModelHost",(b.ytwReelsAdMetadataViewModelHostIsClickableAdComponent=_.w("web_ad_metadata_clickable"),b));return _.C("reels-ad-metadata-view-model",{class:b,el:m},_.C(pou,{avatar:function(){return _.L(c().avatar,y3L)},
headline:function(){return c().headline},
badge:function(){return _.L(c().adBadge,BJQ)},
description:function(){return c().description},
expansive:J}))},"xb");var I8Q={iconPosition:"icon-with-label",size:"L"},K16=_.Q1(function(J){var c=J.data;var m=J.overlayDensity;J=_.oN("reels-player-overlay-layout-view-model");var b=_.Ru(m,0),x=function(){var H;return(H=c().reelsAdCardButtonedEntityKey)!=null?H:""},P=function(){return x()+"/ad_button"},p=_.tT(D4q,x),t=function(){var H,T;
return(T=(H=p())==null?void 0:H.value)!=null?T:!1},I=_.fq(TjR),a=function(){return Object.assign({},I8Q,(I()||b()===2)&&{style:"overlay-dark"})};
m={};var k={};return _.C("reels-player-overlay-layout-view-model",{class:_.pq("ytwReelsPlayerOverlayLayoutViewModelHost",(m.ytwReelsPlayerOverlayLayoutViewModelHostHasExtension=function(){return!!c().extension},m.ytwReelsPlayerOverlayLayoutViewModelHostDesktop=function(){return!0},m)),
"overlay-density":function(){return String(b())},
el:J},_.C("div",{class:_.pq("ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainer",(k.ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainerEnableBorderRadius=function(){return!0},k))},_.C("div",{"aria-hidden":function(){return t()},
class:_.pq("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return t()?"ytwReelsPlayerOverlayLayoutViewModelHide":"ytwReelsPlayerOverlayLayoutViewModelShow"}),
style:_.kx({"transition-duration":function(){return sZQ(c())}})},_.C(_.wi,{data:function(){return c().adMetadata}},{reelsAdMetadataViewModel:function(H){return _.C(tl_,{data:H.data,
expansive:function(){return b()===1}})}}),_.C(_.n,{cond:function(){return c().extension},
then:function(H){return _.C("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostExtension"},_.C(_.wi,{data:H},{adButtonViewModel:function(T){return _.C(_.j7,{data:T.data,animationEntityKey:P,delayedClassName:"ytwReelsPlayerOverlayLayoutViewModelTopMargin"})},
carouselButtonViewModel:function(T){return _.C(Vl6,{data:T.data,animationEntityKey:P,className:"ytwReelsPlayerOverlayLayoutViewModelTopMargin",expansive:function(){return b()===1}})}}))}})),_.C("div",{"aria-hidden":function(){return!t()},
class:_.pq("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return t()?"ytwReelsPlayerOverlayLayoutViewModelShow":"ytwReelsPlayerOverlayLayoutViewModelHide"}),
style:_.kx({"transition-duration":function(){return sZQ(c())}})},_.C(_.wi,{data:function(){return c().reelsAdCardButtoned}},{reelsAdCardButtonedViewModel:function(H){return _.C(NjQ,{data:H.data,
onShow:function(){_.AO(_.It("booleanEntity",x(),{key:x(),value:!0}))},
expansive:function(){return b()===1}})}}))),_.C("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostActionBar"},_.C(_.wi,{data:function(){return c().actions}},{reelActionBarViewModel:function(H){return _.C(_.Ml$,{data:H.data,
buttonShapeOverrideables:a})}}),_.C(_.wi,{data:function(){return c().menu}},{buttonViewModel:function(H){return _.C(_.XU,{data:H.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostMenuButton",buttonOverrides:function(){return Object.assign({},a(),{type:"tonal"})}})}}),_.C(_.wi,{data:function(){return c().pivotButton}},{pivotButtonViewModel:function(H){return _.C(_.P2Q,{data:H.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostPivotButton"})}})))},"yb");_.lv(K16,"reels-player-overlay-layout-view-model",{props:{data:_.vt,overlayDensity:_.vt}});var Mo=function(){var J=_.h.apply(this,arguments)||this;J.noBottomMargin=!1;J.overlayDensity=0;return J};
_.D(Mo,_.h);_.V=Mo.prototype;
_.V.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{carouselAdRenderer:"ytd-carousel-ad-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",displayAdRenderer:{component:"ytd-display-ad-renderer",properties:{noBottomMargin:"[[noBottomMargin]]"}},promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",squareImageLayoutViewModel:"square-image-layout-view-model",topLandscapeImageLayoutViewModel:{component:"top-landscape-image-layout-view-model",
properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayButtonGroupLayoutViewModel:{component:"video-display-button-group-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayFullLayoutViewModel:{component:"video-display-full-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayCompactButtonGroupLayoutViewModel:{component:"video-display-compact-button-group-layout-view-model",
properties:{typographyBump:"[[typographyBump]]"}},compactLandscapeNoButtonLayoutViewModel:"compact-landscape-no-button-layout-view-model",promotedVideoRenderer:"ytd-promoted-video-renderer",videoDisplayFullButtonedRenderer:_.w("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]]"}}}}}};
_.V.ready=function(){var J=this;jme(function(){J.isAttached&&mx(J.JSC$13419_storedAdSlotMetadata,J.JSC$13419_storedAdLayoutMetadata,J.adSlotMetadata,J.adLayoutMetadata)&&V0(by(),J.JSC$13419_storedAdSlotMetadata,J.JSC$13419_storedAdLayoutMetadata)})};
_.V.attached=function(){mx(this.JSC$13419_storedAdSlotMetadata,this.JSC$13419_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&gDC(by(),this.JSC$13419_storedAdSlotMetadata,this.JSC$13419_storedAdLayoutMetadata)};
_.V.detached=function(){mx(this.JSC$13419_storedAdSlotMetadata,this.JSC$13419_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&V0(by(),this.JSC$13419_storedAdSlotMetadata,this.JSC$13419_storedAdLayoutMetadata)};
_.V.onTypographyBumpChanged=function(){this.videoDisplayFullButtonedGroupRenderer&&(this.videoDisplayFullButtonedGroupRenderer.typographyBump=this.typographyBump)};
_.V.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$13419_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$13419_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$13419_storedAdLayoutMetadata!==void 0&&this.JSC$13419_storedAdSlotMetadata!==void 0&&V0(by(),this.JSC$13419_storedAdSlotMetadata,this.JSC$13419_storedAdLayoutMetadata),gDC(by(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$13419_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$13419_storedAdSlotMetadata=this.adSlotMetadata)};
_.eE.Object.defineProperties(Mo.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var J;return(J=this.data)==null?void 0:J.adLayoutMetadata}}});
Mo.prototype.onAdMetadataChanged=Mo.prototype.onAdMetadataChanged;Mo.prototype.onTypographyBumpChanged=Mo.prototype.onTypographyBumpChanged;_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],Mo.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Mo.prototype,"rendererBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],Mo.prototype,"ytComponentBehavior",void 0);
_.O([_.U(),_.R("design:type",Object)],Mo.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],Mo.prototype,"noBottomMargin",void 0);_.O([_.U(),_.R("design:type",Object)],Mo.prototype,"overlayDensity",void 0);_.O([_.U({value:!1}),_.R("design:type",Boolean)],Mo.prototype,"typographyBump",void 0);_.O([_.q("data.adLayoutMetadata"),_.R("design:type",Object),_.R("design:paramtypes",[])],Mo.prototype,"adLayoutMetadata",null);_.O([_.U(),_.R("design:type",Object)],Mo.prototype,"adSlotMetadata",void 0);
_.O([_.Iu("ytd-video-display-full-buttoned-and-button-group-renderer"),_.R("design:type",HTMLElement)],Mo.prototype,"videoDisplayFullButtonedGroupRenderer",void 0);_.O([_.NE("typographyBump"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Mo.prototype,"onTypographyBumpChanged",null);_.O([_.NE("adLayoutMetadata","adSlotMetadata"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Mo.prototype,"onAdMetadataChanged",null);
Mo=_.O([_.E({is:"ytd-in-feed-ad-layout-renderer",disableElementRegistration:!0})],Mo);
_.v(Mo,"ytd-in-feed-ad-layout-renderer",function(){if(bLj!==void 0)return bLj;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return bLj=J},
{mode:_.mP("kevlar_poly_si_batch_j028")?1:2});var C2_;var a8Z;var pE=function(){var J=_.h.apply(this,arguments)||this;J.actionMap={"ytd-video-masthead-ad-primary-video-renderer-playing":"onPlayerReady"};return J};
_.D(pE,_.h);_.V=pE.prototype;_.V.computeHasLiveDescription=function(J){return!(J==null||!J.liveDescription)};
_.V.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more_vert"}}}}}};
_.V.onYtToggleButton=function(J){var c,m=(c=this.data)==null?void 0:c.videoReminderEntityKey;m&&this.ytdReduxBehavior.dispatch(_.It("upcomingEventReminderStateEntity",m,{key:m,state:J.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
_.V.attached=function(){this.updateChannelBanner()};
_.V.dataChanged=function(){this.updateChannelBanner()};
_.V.videoReminderStateChanged=function(){var J;this.videoReminderState&&_.L((J=this.data)==null?void 0:J.cta,_.fO)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
_.V.updateChannelBanner=function(){if(this.data&&this.data.channelBanner){var J=_.yn(this.data.channelBanner.thumbnails,this.hostElement.clientWidth);J&&(J.startsWith("//")&&(J="https:"+J),this.hostElement.classList.add("channel-banner"),_.V1(this.hostElement,{"--ytvmh-channel-banner":"url("+J+")"}))}else _.w("remove_masthead_channel_banner_on_refresh")&&this.hostElement.classList.remove("channel-banner")};
_.V.onPlayerReady=function(){this.onIronResize()};
_.V.maybeFlushDebouncer=function(){_.w("web_replace_formatted_with_attributed_string")&&this.formattedStrings.forEach(function(J){var c;J=(c=J.getElementsByTagName("yt-attributed-string"))==null?void 0:c[0];LaQ(J==null?void 0:J.polymerController)})};
_.V.onIronResize=function(){this.maybeFlushDebouncer();this.hostElement.clientWidth<370?this.hostElement.classList.add("no-thumbnail"):this.hostElement.classList.remove("no-thumbnail");var J=_.Bj(this.hostElement).querySelector("#live-description"),c;J&&((c=this.data)==null?0:c.shortLiveDescription)&&J.clientWidth<J.scrollWidth?this.hostElement.classList.add("short-live-description"):this.hostElement.classList.remove("short-live-description")};
pE.prototype.onIronResize=pE.prototype.onIronResize;pE.prototype.videoReminderStateChanged=pE.prototype.videoReminderStateChanged;pE.prototype.dataChanged=pE.prototype.dataChanged;pE.prototype.onYtToggleButton=pE.prototype.onYtToggleButton;_.O([_.f(_.rI),_.R("design:type",Object)],pE.prototype,"ironResizableBehavior",void 0);_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],pE.prototype,"ytActionHandlerBehavior",void 0);
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],pE.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],pE.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.fY),_.R("design:type",Object)],pE.prototype,"ytdReduxBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],pE.prototype,"data",void 0);_.O([_.U({selectorArgs:["data.videoReminderEntityKey"],selector:nST}),_.R("design:type",Object)],pE.prototype,"videoReminderState",void 0);
_.O([_.U({reflectToAttribute:!0,value:_.w("web_modern_buttons")}),_.R("design:type",Boolean)],pE.prototype,"rounded",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeHasLiveDescription(data)"}),_.R("design:type",Boolean)],pE.prototype,"hasLiveDescription",void 0);_.O([_.U({reflectToAttribute:!0,value:_.w("web_resizable_advertiser_banner_on_masthead_safari_fix")}),_.R("design:type",Boolean)],pE.prototype,"resizableAdBannerSafariFix",void 0);
_.O([_.U({reflectToAttribute:!0,value:_.w("align_three_dot_menu_with_title_description")}),_.R("design:type",Boolean)],pE.prototype,"menuFix",void 0);_.O([_.Ks("yt-formatted-string"),_.R("design:type",Array)],pE.prototype,"formattedStrings",void 0);_.O([_.Iu("#cta-button"),_.R("design:type",HTMLElement)],pE.prototype,"ctaButton",void 0);_.O([_.ps("yt-toggle-button"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],pE.prototype,"onYtToggleButton",null);
_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],pE.prototype,"dataChanged",null);_.O([_.NE("videoReminderState"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],pE.prototype,"videoReminderStateChanged",null);_.O([_.ps("iron-resize"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],pE.prototype,"onIronResize",null);
pE=_.O([_.E({is:"ytd-video-masthead-ad-advertiser-info-renderer",disableElementRegistration:!0})],pE);
_.v(pE,"ytd-video-masthead-ad-advertiser-info-renderer",function(){if(a8Z!==void 0)return a8Z;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return a8Z=J},{mode:1});var klz;var No=function(){var J=_.h.apply(this,arguments)||this;J.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};J.isLocked=!1;return J};
_.D(No,_.h);_.V=No.prototype;_.V.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.V.onExpandedChanged=function(){this.expanded&&_.bJ(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this])};
_.V.onMouseOver=function(){this.maybeExpand()};
_.V.onTap=function(){this.maybeExpand()};
_.V.onExpandableTileExpanding=function(J){J!==this&&(this.expanded=!1)};
_.V.onExpandableTileLockAndCollapse=function(J){this.isLocked=!0;J!==this&&(this.expanded=!1)};
_.V.onExpandableTileUnlock=function(){this.isLocked=!1};
No.prototype.onTap=No.prototype.onTap;No.prototype.onMouseOver=No.prototype.onMouseOver;No.prototype.onExpandedChanged=No.prototype.onExpandedChanged;_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],No.prototype,"ytActionHandlerBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],No.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],No.prototype,"data",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],No.prototype,"expanded",void 0);_.O([_.kr("expanded"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],No.prototype,"onExpandedChanged",null);_.O([_.ps("mouseover"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],No.prototype,"onMouseOver",null);_.O([_.ps("tap"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],No.prototype,"onTap",null);
No=_.O([_.E({is:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",disableElementRegistration:!0})],No);
_.v(No,"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",function(){if(klz!==void 0)return klz;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return klz=J},{mode:1});var He6;var tJ=function(){var J=_.h.apply(this,arguments)||this;J.buttonOverrides={style:"overlay"};J.useYtdPlayer=_.w("use_ytd_player_for_desktop_masthead");J.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};J.playbackFinished=!1;J.JSC$13431_playerManager=null;J.JSC$13431_mastheadCounter=new cDa;return J};
_.D(tJ,_.h);_.V=tJ.prototype;_.V.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"}}}};
_.V.created=function(){this.JSC$13431_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!0);this.useYtdPlayer||(this.JSC$13431_playerManager=new iU)};
_.V.ready=function(){var J=this;this.JSC$13431_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!0);var c=_.Bj(this.hostElement).querySelector("#player");this.useYtdPlayer?c.style.display="none":(this.ytdPlayer.style.display="none",U9j(this.JSC$13431_playerManager,c,function(){J.onPlaybackEnded()}),_.Bj(this.hostElement).querySelector("#replay-button").addEventListener("click",function(){var m;
((m=J.data)==null?0:m.navigationEndpoint)&&_.cA(J.hostElement,"yt-navigate",{endpoint:J.data.navigationEndpoint})}))};
_.V.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.unlockExpandableTiles();this.playbackFinished=!0;this.JSC$13431_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!0)};
_.V.attached=function(){var J=this;_.S5(function(){J.maybePlayVideo()})};
_.V.maybePlayVideo=function(){var J=this;!(this.expanded&&this.isAttached&&this.data&&this.data.videoId)||this.playbackFinished||this.useYtdPlayer&&this.data.disableAutoPlayback||(this.hostElement.classList.add("video-playing"),this.lockAndCollapseExpandableTiles(),this.useYtdPlayer?this.ytdPlayer.play():(this.JSC$13431_playerManager.playVideo(),this.getPlayerPromise().then(function(){J.JSC$13431_mastheadCounter.increment("VIDEO_START",!1,!0)})))};
_.V.stopVideo=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$13431_playerManager.stopVideo()};
_.V.dataChanged=function(){if(this.data)if(this.useYtdPlayer){var J,c={autoplay:0,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((J=this.data.playbackStartMs)!=null?J:0)/1E3,player_params:this.data.playerParams};this.ytdPlayer.loadVideoWithPlayerVars(c);this.setupYtdPlayer()}else hWz(this.JSC$13431_playerManager,this.data.videoId,this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams),this.data.disableAutoPlayback&&(S8u(this.JSC$13431_playerManager),
this.hostElement.classList.add("video-ended"),this.playbackFinished=!0),this.maybePlayVideo()};
_.V.getPlayerPromise=function(){return this.JSC$13431_playerManager.getPlayerPromise()};
_.V.onYtToggleButton=function(J){this.useYtdPlayer?this.toggleMute(J.detail.toggled):J.detail.toggled?this.JSC$13431_playerManager.mute():this.JSC$13431_playerManager.unMute()};
_.V.onYtNavigate=function(J){var c=HYQ(J.detail.endpoint),m=iYr(this.data.clickthroughReportingData);c&&m&&(J.detail.endpoint.watchEndpoint?J.detail.tempData=m:_.jK(c,m,30))};
_.V.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.V.onExpandedChanged=function(){this.expanded?(_.bJ(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this]),this.maybePlayVideo()):this.stopVideo()};
_.V.onMouseOver=function(){this.maybeExpand()};
_.V.onTap=function(){this.maybeExpand()};
_.V.onExpandableTileExpanding=function(J){J!==this&&(this.stopVideo(),this.expanded=!1)};
_.V.onExpandableTileLockAndCollapse=function(J){J!==this&&(this.isLocked=!0,this.expanded=!1)};
_.V.onExpandableTileUnlock=function(){this.isLocked=!1};
_.V.lockAndCollapseExpandableTiles=function(){_.m9(this.hostElement,"ytd-video-masthead-expandable-tile-lock-and-collapse",[this])};
_.V.unlockExpandableTiles=function(){_.m9(this.hostElement,"ytd-video-masthead-expandable-tile-unlock")};
_.V.setupYtdPlayer=function(){var J=this,c;return _.N(function(m){if(m.nextAddress==1)return _.K(m,J.ytdPlayer.getPlayerPromise(),2);c=m.yieldResult;c.addEventListener("onStateChange",function(b){J.onPlayerStateChange(b)});
c.addEventListener("onCueRangeExit",function(b){J.onCueRangeExit(b)});
_.tD(m)})};
_.V.onPlayerStateChange=function(J){if(J===1&&(J=this.ytdPlayer.getPlayer())){var c=J.getCurrentTime(),m,b,x=c+((b=(m=this.data)==null?void 0:m.playbackDurationMs)!=null?b:0)/1E3;J.addCueRange("playback",c,x);this.JSC$13431_mastheadCounter.increment("VIDEO_START",!0,!0)}};
_.V.onCueRangeExit=function(J){J==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.V.toggleMute=function(J){var c=this,m;return _.N(function(b){if(b.nextAddress==1)return _.K(b,c.ytdPlayer.getPlayerPromise(),2);m=b.yieldResult;J?m.mute():m.unMute();_.tD(b)})};
tJ.prototype.onTap=tJ.prototype.onTap;tJ.prototype.onMouseOver=tJ.prototype.onMouseOver;tJ.prototype.onExpandedChanged=tJ.prototype.onExpandedChanged;tJ.prototype.onYtNavigate=tJ.prototype.onYtNavigate;tJ.prototype.onYtToggleButton=tJ.prototype.onYtToggleButton;tJ.prototype.dataChanged=tJ.prototype.dataChanged;_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],tJ.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],tJ.prototype,"ytActionHandlerBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],tJ.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],tJ.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],tJ.prototype,"expanded",void 0);_.O([_.U(),_.R("design:type",Object)],tJ.prototype,"buttonOverrides",void 0);
_.O([_.U(),_.R("design:type",Object)],tJ.prototype,"useYtdPlayer",void 0);_.O([_.Iu("#ytd-player"),_.R("design:type",Object)],tJ.prototype,"ytdPlayer",void 0);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],tJ.prototype,"dataChanged",null);_.O([_.ps("yt-toggle-button"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],tJ.prototype,"onYtToggleButton",null);
_.O([_.ps("yt-navigate"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],tJ.prototype,"onYtNavigate",null);_.O([_.kr("expanded"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],tJ.prototype,"onExpandedChanged",null);_.O([_.ps("mouseover"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],tJ.prototype,"onMouseOver",null);
_.O([_.ps("tap"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],tJ.prototype,"onTap",null);tJ=_.O([_.E({is:"ytd-video-masthead-ad-expandable-video-tile-renderer",disableElementRegistration:!0})],tJ);
_.v(tJ,"ytd-video-masthead-ad-expandable-video-tile-renderer",function(){if(He6!==void 0)return He6;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return He6=J},{mode:1});var ieu;var IW=function(){return _.h.apply(this,arguments)||this};
_.D(IW,_.h);IW.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
IW.prototype.onShow=function(){var J=_.Bj(this.hostElement).querySelector("#live-description"),c;J&&((c=this.data)==null?0:c.shortLiveDescription)&&J.clientWidth<J.scrollWidth&&this.hostElement.classList.add("short-live-description")};
IW.prototype.onYtToggleButton=function(J){var c,m=(c=this.data)==null?void 0:c.videoReminderEntityKey;m&&this.ytdReduxBehavior.dispatch(_.It("upcomingEventReminderStateEntity",m,{key:m,state:J.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
IW.prototype.videoReminderStateChanged=function(){var J;this.videoReminderState&&_.L((J=this.data)==null?void 0:J.cta,_.fO)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
IW.prototype.videoReminderStateChanged=IW.prototype.videoReminderStateChanged;IW.prototype.onYtToggleButton=IW.prototype.onYtToggleButton;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],IW.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],IW.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.fY),_.R("design:type",Object)],IW.prototype,"ytdReduxBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],IW.prototype,"data",void 0);
_.O([_.U({selectorArgs:["data.videoReminderEntityKey"],selector:nST}),_.R("design:type",Object)],IW.prototype,"videoReminderState",void 0);_.O([_.ps("yt-toggle-button"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],IW.prototype,"onYtToggleButton",null);_.O([_.NE("videoReminderState"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],IW.prototype,"videoReminderStateChanged",null);
IW=_.O([_.E({is:"ytd-video-masthead-ad-primary-video-overlay-renderer",disableElementRegistration:!0})],IW);
_.v(IW,"ytd-video-masthead-ad-primary-video-overlay-renderer",function(){if(ieu!==void 0)return ieu;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return ieu=J},{mode:_.mP("kevlar_poly_si_batch_j065")?1:2});var nej;var KE=function(){var J=_.h.apply(this,arguments)||this;J.useYtdPlayer=_.w("use_ytd_player_for_desktop_masthead");J.buttonOverrides={style:"overlay"};J.JSC$13439_playerManager=null;J.JSC$13439_mastheadCounter=new cDa;J.actionMap={"yt-masthead-hidden":"onYtMastheadHidden"};return J};
_.D(KE,_.h);_.V=KE.prototype;_.V.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"}}}};
_.V.created=function(){this.JSC$13439_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!1);this.useYtdPlayer||(this.JSC$13439_playerManager=new iU)};
_.V.ready=function(){var J=this;this.JSC$13439_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!1);if(this.useYtdPlayer){var c;(c=this.embeddedPlayer)==null||c.remove()}else{var m;(m=this.ytdPlayer)==null||m.remove();U9j(this.JSC$13439_playerManager,this.embeddedPlayer,function(){J.onPlaybackEnded()});
this.replayButton.addEventListener("click",function(){J.data&&J.data.navigationEndpoint&&_.cA(J.hostElement,"yt-navigate",{endpoint:J.data.navigationEndpoint})})}};
_.V.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.JSC$13439_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!1)};
_.V.dataChanged=function(){var J=this;if(this.data){if(typeof this.data.videoId==="string")if(this.useYtdPlayer){var c=!this.data.disableAutoPlayback,m,b={autoplay:c,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.hostElement.classList.add(c?"video-playing":"video-ended");this.ytdPlayer.loadVideoWithPlayerVars(b);this.setupYtdPlayer()}else hWz(this.JSC$13439_playerManager,this.data.videoId,
this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams||void 0),this.data.disableAutoPlayback?(S8u(this.JSC$13439_playerManager),this.hostElement.classList.add("video-ended")):(this.JSC$13439_playerManager.playVideo(),this.hostElement.classList.add("video-playing"),this.getPlayerPromise().then(function(){_.m9(J.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");J.JSC$13439_mastheadCounter.increment("VIDEO_START",!1,!1)}));
this.data.isWidescreen&&this.playerContainer.classList.add("widescreen")}};
_.V.getPlayerPromise=function(){return this.JSC$13439_playerManager.getPlayerPromise()};
_.V.onYtToggleButton=function(J){this.useYtdPlayer?this.toggleMute(J.detail.toggled):J.detail.toggled?this.JSC$13439_playerManager.mute():this.JSC$13439_playerManager.unMute()};
_.V.onYtNavigate=function(J){var c=HYQ(J.detail.endpoint),m=iYr(this.data.clickthroughReportingData);c&&m&&(J.detail.endpoint.watchEndpoint?J.detail.tempData=m:_.jK(c,m,30))};
_.V.onYtMastheadHidden=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$13439_playerManager.stopVideo()};
_.V.setupYtdPlayer=function(){var J=this,c;return _.N(function(m){if(m.nextAddress==1)return _.K(m,J.ytdPlayer.getPlayerPromise(),2);c=m.yieldResult;c.addEventListener("onStateChange",function(b){J.onPlayerStateChange(b)});
c.addEventListener("onCueRangeExit",function(b){J.onCueRangeExit(b)});
_.tD(m)})};
_.V.onPlayerStateChange=function(J){if(J===1&&(J=this.ytdPlayer.getPlayer())){var c=J.getCurrentTime(),m,b,x=c+((b=(m=this.data)==null?void 0:m.playbackDurationMs)!=null?b:0)/1E3;J.addCueRange("playback",c,x);_.m9(this.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");this.JSC$13439_mastheadCounter.increment("VIDEO_START",!0,!1)}};
_.V.onCueRangeExit=function(J){J==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.V.toggleMute=function(J){var c=this,m;return _.N(function(b){if(b.nextAddress==1)return _.K(b,c.ytdPlayer.getPlayerPromise(),2);m=b.yieldResult;J?m.mute():m.unMute();_.tD(b)})};
_.eE.Object.defineProperties(KE.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var J,c;if(!((J=this.data)==null?0:(c=J.accessibilityData)==null?0:c.label))return"Ad primary link";var m,b;return _.CX("AD_TITLE",{title:(m=this.data)==null?void 0:(b=m.accessibilityData)==null?void 0:b.label})}}});
KE.prototype.onYtMastheadHidden=KE.prototype.onYtMastheadHidden;KE.prototype.onYtNavigate=KE.prototype.onYtNavigate;KE.prototype.onYtToggleButton=KE.prototype.onYtToggleButton;KE.prototype.dataChanged=KE.prototype.dataChanged;_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],KE.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],KE.prototype,"ytRendererBehavior",void 0);
_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],KE.prototype,"ytActionHandlerBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],KE.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],KE.prototype,"useYtdPlayer",void 0);_.O([_.Iu("ytd-toggle-button-renderer"),_.R("design:type",Object)],KE.prototype,"muteButton",void 0);_.O([_.U(),_.R("design:type",Object)],KE.prototype,"buttonOverrides",void 0);
_.O([_.q("data.accessibilityData.label"),_.R("design:type",String),_.R("design:paramtypes",[])],KE.prototype,"titleAriaLabel",null);_.O([_.Iu("#replay-button"),_.R("design:type",Object)],KE.prototype,"replayButton",void 0);_.O([_.Iu("#player-container"),_.R("design:type",Object)],KE.prototype,"playerContainer",void 0);_.O([_.Iu("#player"),_.R("design:type",Object)],KE.prototype,"embeddedPlayer",void 0);_.O([_.Iu("#ytd-player"),_.R("design:type",Object)],KE.prototype,"ytdPlayer",void 0);
_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],KE.prototype,"dataChanged",null);_.O([_.ps("yt-toggle-button"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],KE.prototype,"onYtToggleButton",null);_.O([_.ps("yt-navigate"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],KE.prototype,"onYtNavigate",null);
_.O([_.ps("yt-masthead-hidden"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],KE.prototype,"onYtMastheadHidden",null);KE=_.O([_.E({is:"ytd-video-masthead-ad-primary-video-renderer",disableElementRegistration:!0})],KE);
_.v(KE,"ytd-video-masthead-ad-primary-video-renderer",function(){if(nej!==void 0)return nej;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return nej=J},{mode:2});var Tj2;var CE=function(){var J=_.h.apply(this,arguments)||this;J.collapsed=!1;J.impressionResolver=_.$x();J.JSC$13443_activeViewMeasurementDataResolver=_.$x();J.actionMap={"yt-mute-ad-action":"handleMuteAd"};return J};
_.D(CE,_.h);_.V=CE.prototype;_.V.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"}}}};
_.V.ready=function(){var J=this;_.Bj(this.hostElement).querySelector("#show-ad").addEventListener("click",function(){J.expandAd()});
this.hostElement.addEventListener("yt-action",function(c){if(c.detail.actionName==="yt-service-request"){var m=c.detail.args[1];m.videoMastheadAdMuteCommand&&(J.collapseAd(m.videoMastheadAdMuteCommand.encryptedMastheadId),c.stopPropagation())}})};
_.V.attached=function(){var J=this;_.S5(function(){J.ironResizableBehavior.notifyResize()});
this.impressionResolver.promise.then(function(c){if(!J.collapsed){c=_.M(c);for(var m=c.next();!m.done;m=c.next())m=m.value,v4(m.baseUrl,m.attributionSrcMode);J.data.impressionCommand=void 0}});
this.JSC$13443_activeViewMeasurementDataResolver.promise.then(function(c){J.ytdActiveViewBehavior.enableActiveViewMeasurement(c,15)});
_.w("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&J.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.V.dataChanged=function(){var J;((J=this.data.impressionCommand)==null?0:J.loggingUrls)&&this.impressionResolver.resolve(this.data.impressionCommand.loggingUrls);var c;((c=this.data)==null?0:c.activeView)&&this.JSC$13443_activeViewMeasurementDataResolver.resolve(this.data.activeView);(J=this.get("data.showAdRenderer.buttonRenderer.command.videoMastheadAdMuteCommand"))&&this.restoreCollapsedState(J.encryptedMastheadId);this.collapsed&&(this.data.primaryVideo&&(this.data.primaryVideo=void 0),this.data.expandableTiles&&
(this.data.expandableTiles=void 0))};
_.V.computeWidescreen=function(J){var c;return!!(J&&((c=_.L(J,Qgu))==null?0:c.isWidescreen))};
_.V.computeExpandable=function(J){return!!(J&&J.length>0)};
_.V.onIronResize=function(){if(this.expandable){var J=_.Bj(this.hostElement).querySelector("#expandable-tile-container :first-child");J&&!J.expanded&&(J.expanded=!0)}};
_.V.handleMuteAd=function(){this.collapseAd(null)};
_.V.restoreCollapsedState=function(J){this.collapsed=_.HA().get("HIDDEN_MASTHEAD_ID")===J};
_.V.collapseAd=function(J){if(J){var c=_.HA();c.set("HIDDEN_MASTHEAD_ID",J);c.save()}(J=_.Bj(this.hostElement).querySelector("#video"))&&_.cA(J,"yt-masthead-hidden");this.collapsed=!0};
_.V.expandAd=function(){var J=_.HA();J.set("HIDDEN_MASTHEAD_ID",!1);J.save();location.reload()};
_.V.detached=function(){_.w("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
CE.prototype.onIronResize=CE.prototype.onIronResize;CE.prototype.dataChanged=CE.prototype.dataChanged;_.O([_.f(_.rI),_.R("design:type",Object)],CE.prototype,"ironResizableBehavior",void 0);_.O([_.f(zX),_.R("design:type",Object)],CE.prototype,"ytdActiveViewBehavior",void 0);_.O([_.f(_.qG),_.R("design:type",Object)],CE.prototype,"ytdGridStateAwareBehavior",void 0);_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],CE.prototype,"ytActionHandlerBehavior",void 0);
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],CE.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],CE.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],CE.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeWidescreen(data.primaryVideo)"}),_.R("design:type",Boolean)],CE.prototype,"widescreen",void 0);
_.O([_.U({reflectToAttribute:!0,computed:"computeExpandable(data.expandableTiles)"}),_.R("design:type",Boolean)],CE.prototype,"expandable",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],CE.prototype,"collapsed",void 0);_.O([_.kr("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],CE.prototype,"dataChanged",null);
_.O([_.ps("iron-resize"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],CE.prototype,"onIronResize",null);CE=_.O([_.E({is:"ytd-video-masthead-ad-v3-renderer",disableElementRegistration:!0})],CE);
_.v(CE,"ytd-video-masthead-ad-v3-renderer",function(){if(Tj2!==void 0)return Tj2;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return Tj2=J},{mode:2});var aW=function(){return _.h.apply(this,arguments)||this};
_.D(aW,_.h);_.V=aW.prototype;_.V.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{videoMastheadAdV3Renderer:"ytd-video-masthead-ad-v3-renderer"}}}};
_.V.ready=function(){var J=this;jme(function(){J.isAttached&&mx(J.JSC$13448_storedAdSlotMetadata,J.JSC$13448_storedAdLayoutMetadata,J.adSlotMetadata,J.adLayoutMetadata)&&V0(by(),J.JSC$13448_storedAdSlotMetadata,J.JSC$13448_storedAdLayoutMetadata)})};
_.V.attached=function(){mx(this.JSC$13448_storedAdSlotMetadata,this.JSC$13448_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&gDC(by(),this.JSC$13448_storedAdSlotMetadata,this.JSC$13448_storedAdLayoutMetadata)};
_.V.detached=function(){mx(this.JSC$13448_storedAdSlotMetadata,this.JSC$13448_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&V0(by(),this.JSC$13448_storedAdSlotMetadata,this.JSC$13448_storedAdLayoutMetadata)};
_.V.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$13448_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$13448_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$13448_storedAdLayoutMetadata!==void 0&&this.JSC$13448_storedAdSlotMetadata!==void 0&&V0(by(),this.JSC$13448_storedAdSlotMetadata,this.JSC$13448_storedAdLayoutMetadata),gDC(by(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$13448_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$13448_storedAdSlotMetadata=this.adSlotMetadata)};
_.eE.Object.defineProperties(aW.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var J;return(J=this.data)==null?void 0:J.adLayoutMetadata}}});
aW.prototype.onAdMetadataChanged=aW.prototype.onAdMetadataChanged;_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],aW.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],aW.prototype,"ytComponentBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],aW.prototype,"data",void 0);_.O([_.q("data.adLayoutMetadata"),_.R("design:type",Object),_.R("design:paramtypes",[])],aW.prototype,"adLayoutMetadata",null);
_.O([_.U(),_.R("design:type",Object)],aW.prototype,"adSlotMetadata",void 0);_.O([_.NE("adLayoutMetadata","adSlotMetadata"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],aW.prototype,"onAdMetadataChanged",null);aW=_.O([_.E({is:"ytd-page-top-ad-layout-renderer",disableElementRegistration:!0})],aW);
_.v(aW,"ytd-page-top-ad-layout-renderer",function(){if(C2_!==void 0)return C2_;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return C2_=
J},{mode:_.mP("kevlar_poly_si_batch_j070")?1:2});var woL;var kG=function(){var J=_.h.apply(this,arguments)||this;J.noBottomMargin=!1;J.overlayDensity=0;J.typographyBump=!1;return J};
_.D(kG,_.h);_.V=kG.prototype;
_.V.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]]"}}}}}};
_.V.ready=function(){var J=this;jme(function(){J.isAttached&&J.adSlotMetadata&&B$C(by(),J.adSlotMetadata)})};
_.V.attached=function(){if(this.adSlotMetadata){var J;if(this.adSlotMetadata===((J=this.data)==null?void 0:J.adSlotMetadata))yba(by(),this.adSlotMetadata);else{var c;_.qz(Error("Ih`"+this.adSlotMetadata+"`"+((c=this.data)==null?void 0:c.adSlotMetadata)))}}};
_.V.detached=function(){this.adSlotMetadata&&B$C(by(),this.adSlotMetadata)};
_.V.onTypographyBumpChanged=function(){this.inFeedAdLayoutRenderer&&(this.inFeedAdLayoutRenderer.typographyBump=this.typographyBump)};
_.V.onAdSlotMetadataChanged=function(){this.data&&this.data.adSlotMetadata&&(this.isAttached&&this.adSlotMetadata!==this.data.adSlotMetadata&&(this.adSlotMetadata!==void 0&&B$C(by(),this.adSlotMetadata),yba(by(),this.data.adSlotMetadata)),this.adSlotMetadata=this.data.adSlotMetadata)};
_.eE.Object.defineProperties(kG.prototype,{layout:{configurable:!0,enumerable:!0,get:function(){var J,c,m=_.L((J=this.data)==null?void 0:(c=J.fulfillmentContent)==null?void 0:c.fulfilledLayout,_.jg$),b;return(J=(b=_.L(m==null?void 0:m.renderingContent,ehu))==null?void 0:b.layout)?J.toLowerCase().replace(/_/g,"-"):""}}});
kG.prototype.onAdSlotMetadataChanged=kG.prototype.onAdSlotMetadataChanged;kG.prototype.onTypographyBumpChanged=kG.prototype.onTypographyBumpChanged;_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],kG.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],kG.prototype,"ytComponentBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],kG.prototype,"rendererBehavior",void 0);
_.O([_.U(),_.R("design:type",Object)],kG.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],kG.prototype,"noBottomMargin",void 0);_.O([_.U(),_.R("design:type",Object)],kG.prototype,"overlayDensity",void 0);_.O([_.U(),_.R("design:type",Object)],kG.prototype,"typographyBump",void 0);_.O([_.Iu("ytd-in-feed-ad-layout-renderer"),_.R("design:type",HTMLElement)],kG.prototype,"inFeedAdLayoutRenderer",void 0);
_.O([_.U({reflectToAttribute:!0}),_.q("data"),_.R("design:type",String),_.R("design:paramtypes",[])],kG.prototype,"layout",null);_.O([_.NE("typographyBump"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],kG.prototype,"onTypographyBumpChanged",null);_.O([_.NE("data.adSlotMetadata"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],kG.prototype,"onAdSlotMetadataChanged",null);
kG=_.O([_.E({is:"ytd-ad-slot-renderer",disableElementRegistration:!0})],kG);
_.v(kG,"ytd-ad-slot-renderer",function(){if(woL!==void 0)return woL;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return woL=J},{mode:_.mP("kevlar_poly_si_batch_j077")?
1:2});var rna;var HU=function(){return _.h.apply(this,arguments)||this};
_.D(HU,_.h);_.V=HU.prototype;_.V.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"}}}};
_.V.onTap=function(){_.w("enable_handle_watch_endpoint_click_for_vdc")||this.data&&this.data.navigationEndpoint&&this.data.adPlaybackContextParams&&If2(this.data.navigationEndpoint,this.data.adPlaybackContextParams)};
_.V.onThumbnailContainerClick=function(J){this.onClick(J)};
_.V.onClick=function(J){if(_.w("enable_handle_watch_endpoint_click_for_vdc")){var c,m=(c=this.data)==null?void 0:c.navigationEndpoint;m&&_.L(m,_.Rz)&&(this.ytSparklesClickLocationBehavior.handleClick(m,J,!0),J.stopPropagation())}};
_.V.dataChanged=function(){if(this.data&&this.data.impressionUrls)for(var J=_.M(this.data.impressionUrls),c=J.next();!c.done;c=J.next())c=c.value,s1T(c,Drr(c));this.data&&this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17)};
_.V.attached=function(){var J=this;_.w("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&J.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.V.detached=function(){_.w("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.eE.Object.defineProperties(HU.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.w("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.w("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
HU.prototype.dataChanged=HU.prototype.dataChanged;HU.prototype.onTap=HU.prototype.onTap;_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],HU.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],HU.prototype,"ytRendererBehavior",void 0);_.O([_.f(zX),_.R("design:type",Object)],HU.prototype,"ytdActiveViewBehavior",void 0);_.O([_.f(_.fY),_.R("design:type",Object)],HU.prototype,"ytdReduxBehavior",void 0);
_.O([_.f(_.FP.YtSparklesClickLocationBehavior),_.R("design:type",Object)],HU.prototype,"ytSparklesClickLocationBehavior",void 0);_.O([_.U({selector:_.S8}),_.R("design:type",Object)],HU.prototype,"isGridViewEnabled",void 0);_.O([_.q("isGridViewEnabled"),_.U({reflectToAttribute:!0}),_.R("design:type",Boolean),_.R("design:paramtypes",[])],HU.prototype,"watchFeedBigThumbs",null);
_.O([_.q("isGridViewEnabled"),_.U({reflectToAttribute:!0}),_.R("design:type",String),_.R("design:paramtypes",[])],HU.prototype,"thumbnailWidth",null);_.O([_.U(),_.R("design:type",Object)],HU.prototype,"data",void 0);_.O([_.ps("tap"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],HU.prototype,"onTap",null);_.O([_.kr("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],HU.prototype,"dataChanged",null);
HU=_.O([_.E({is:"ytd-compact-promoted-video-renderer",disableElementRegistration:!0})],HU);
_.v(HU,"ytd-compact-promoted-video-renderer",function(){if(rna!==void 0)return rna;var J=document.createElement("template");_.z(J,'\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]]" on-click="onThumbnailContainerClick" class="style-scope ytd-compact-promoted-video-renderer">\n</ytd-thumbnail>\n<div class="details style-scope ytd-compact-promoted-video-renderer">\n  <a id="endpoint-link" class="yt-simple-endpoint style-scope ytd-compact-promoted-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" on-click="onClick" data="[[data.navigationEndpoint]]">\n    <h3 class="style-scope ytd-compact-promoted-video-renderer">\n      <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-compact-promoted-video-renderer">\n      </ytd-badge-supported-renderer>\n      <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-compact-promoted-video-renderer">\n        [[getSimpleString(data.title)]]\n      </span>\n    </h3>\n    <div class="secondary-metadata style-scope ytd-compact-promoted-video-renderer">\n      <ytd-video-meta-block class="compact style-scope ytd-compact-promoted-video-renderer" data="[[data]]" watch-feed-big-thumbs="[[watchFeedBigThumbs]]">\n      </ytd-video-meta-block>\n      <div id="ad-badge-container" class="style-scope ytd-compact-promoted-video-renderer">\n        <div id="ad-badge" class="style-scope ytd-compact-promoted-video-renderer"></div>\n      </div>\n    </div>\n  </a>\n  <div id="menu" class="style-scope ytd-compact-promoted-video-renderer"></div>\n</div>\n');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return rna=J},{mode:1});var sZC;_.zH("itemSectionRenderer","searchPyvRenderer","ytd-search-pyv-renderer");var iy=function(){return _.h.apply(this,arguments)||this};
_.D(iy,_.h);iy.prototype.configureRendererStamper=function(){return{"data.ads":{id:"contents",mapping:{adSlotRenderer:"ytd-ad-slot-renderer",promotedVideoRenderer:"ytd-promoted-video-renderer"}}}};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],iy.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],iy.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],iy.prototype,"data",void 0);iy=_.O([_.E({is:"ytd-search-pyv-renderer",disableElementRegistration:!0})],iy);
_.v(iy,"ytd-search-pyv-renderer",function(){if(sZC!==void 0)return sZC;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return sZC=J},{mode:1});var L1z;_.zH("itemSectionRenderer","backstagePostThreadRenderer","ytd-backstage-post-thread-renderer");var nE=function(){var J=_.h.apply(this,arguments)||this;J.roundedContainer=!0;J.JSC$13464_handleOpenPostCommentDialogActionAfterStamp=!1;J.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return J};
_.D(nE,_.h);_.V=nE.prototype;
_.V.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}}};
_.V.onStampFinished=function(){this.JSC$13464_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.V.handleSignalActionOpenPostCommentDialogAction=function(){var J=_.Bj(this.hostElement).querySelector("ytd-comment-reply-dialog-renderer");J?J.openDialog():this.JSC$13464_handleOpenPostCommentDialogActionAfterStamp=!0};
_.V.onYtCommentModerationPanelEmpty=function(){this.set("data.moderationPanel",{})};
_.V.computeHideBorder=function(){return this.isInEngagementPanel};
_.V.computeIsCompact=function(){return this.isInEngagementPanel};
_.V.computeUsesCompactLockup=function(J){return J==="BACKSTAGE_SURFACE_TYPE_HOME"||J==="BACKSTAGE_SURFACE_TYPE_SEARCH"||J==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||J==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||J==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||J==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.V.computeUsesFullLockup=function(){var J,c=(J=this.data)==null?void 0:J.post,m;J=(m=_.L(c,x_2))==null?void 0:m.surface;var b;m=(b=_.L(c,PcL))==null?void 0:b.originalPost;var x;if(b=J||((x=_.L(m,x_2))==null?void 0:x.surface))return!this.computeUsesCompactLockup(b)&&this.useUpdatedRepostUi;var P;return((P=_.L(c,PcL))==null?void 0:P.originalPostDeletedMessage)!==void 0&&this.useUpdatedRepostUi};
_.eE.Object.defineProperties(nE.prototype,{isInEngagementPanel:{configurable:!0,enumerable:!0,get:function(){var J,c;return((c=_.L((J=this.data)==null?void 0:J.post,x_2))==null?void 0:c.surface)==="BACKSTAGE_SURFACE_TYPE_ENGAGEMENT_PANEL"}},
useUpdatedRepostUi:{configurable:!0,enumerable:!0,get:function(){var J;return(J=this.data)==null?void 0:J.useUpdatedRepostUi}}});
nE.prototype.onYtCommentModerationPanelEmpty=nE.prototype.onYtCommentModerationPanelEmpty;nE.prototype.onStampFinished=nE.prototype.onStampFinished;_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],nE.prototype,"ytActionHandlerBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],nE.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],nE.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.U(),_.R("design:type",Object)],nE.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],nE.prototype,"roundedContainer",void 0);_.O([_.U({computed:"computeHideBorder(data, isInEngagementPanel)",reflectToAttribute:!0}),_.R("design:type",Boolean)],nE.prototype,"hideBorder",void 0);_.O([_.U({computed:"computeIsCompact(data, isInEngagementPanel)",reflectToAttribute:!0}),_.R("design:type",Boolean)],nE.prototype,"isCompact",void 0);
_.O([_.U({computed:"computeUsesFullLockup(data, useUpdatedRepostUi)",reflectToAttribute:!0}),_.R("design:type",Boolean)],nE.prototype,"usesFullLockup",void 0);_.O([_.ps("yt-rendererstamper-finished"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],nE.prototype,"onStampFinished",null);
_.O([_.ps("ytd-comment-moderation-panel-empty"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],nE.prototype,"onYtCommentModerationPanelEmpty",null);_.O([_.q("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],nE.prototype,"isInEngagementPanel",null);_.O([_.q("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],nE.prototype,"useUpdatedRepostUi",null);
nE=_.O([_.E({is:"ytd-backstage-post-thread-renderer",disableElementRegistration:!0})],nE);
_.v(nE,"ytd-backstage-post-thread-renderer",function(){if(L1z!==void 0)return L1z;var J=document.createElement("template");_.z(J,'\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>');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return L1z=J},{mode:1});var D56;var TZ=function(){var J=_.h.apply(this,arguments)||this;J.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return J};
_.D(TZ,_.h);TZ.prototype.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
TZ.prototype.computeBannerImageUrl=function(){if(this.data!==void 0){var J=this.data.thumbnail.thumbnails;this.isDarkTheme&&(J=this.data.thumbnailDark.thumbnails);this.bannerImageUrl=(J=_.yn(J,24,void 0,"height"))?J:void 0}};
TZ.prototype.onDarkModeToggledAction=function(J){this.isDarkTheme=J};
TZ.prototype.computeHasText=function(){var J;return!((J=this.data)==null||!J.text)};
_.eE.Object.defineProperties(TZ.prototype,{bannerStyle:{configurable:!0,enumerable:!0,get:function(){if(this.bannerImageUrl)return'background-image:url("'+String(_.n1(this.bannerImageUrl))+'");'}}});
TZ.prototype.computeHasText=TZ.prototype.computeHasText;TZ.prototype.computeBannerImageUrl=TZ.prototype.computeBannerImageUrl;_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],TZ.prototype,"ytActionHandlerBehavior",void 0);_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],TZ.prototype,"actionHandlerBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],TZ.prototype,"ytRendererBehavior",void 0);
_.O([_.U(),_.R("design:type",Object)],TZ.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Boolean)],TZ.prototype,"isDarkTheme",void 0);_.O([_.U(),_.R("design:type",String)],TZ.prototype,"bannerImageUrl",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeHasText(data.text)"}),_.R("design:type",Boolean)],TZ.prototype,"hasText",void 0);_.O([_.NE("data","isDarkTheme"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],TZ.prototype,"computeBannerImageUrl",null);
_.O([_.NE("data.text"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],TZ.prototype,"computeHasText",null);_.O([_.q("bannerImageUrl"),_.R("design:type",Object),_.R("design:paramtypes",[])],TZ.prototype,"bannerStyle",null);TZ=_.O([_.E({is:"ytd-backstage-prefilled-post-dialog-header-renderer",disableElementRegistration:!0})],TZ);
_.v(TZ,"ytd-backstage-prefilled-post-dialog-header-renderer",function(){if(D56!==void 0)return D56;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return D56=J},{mode:1});var W18;var wS=function(){return _.h.apply(this,arguments)||this};
_.D(wS,_.h);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],wS.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],wS.prototype,"data",void 0);wS=_.O([_.E({is:"ytd-backstage-zero-state-renderer",disableElementRegistration:!0})],wS);
_.v(wS,"ytd-backstage-zero-state-renderer",function(){if(W18!==void 0)return W18;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return W18=J},{mode:1});var zP6;var rS=function(){return _.h.apply(this,arguments)||this};
_.D(rS,_.h);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],rS.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],rS.prototype,"data",void 0);_.O([_.U({computed:"computeIcon_(data.icon)"}),_.R("design:type",String)],rS.prototype,"icon",void 0);rS=_.O([_.E({is:"ytd-post-filter-zero-state-renderer",disableElementRegistration:!0})],rS);
_.v(rS,"ytd-post-filter-zero-state-renderer",function(){if(zP6!==void 0)return zP6;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return zP6=J},{mode:1});var u5Q;var f82={"data.actionButton":{id:"schedule-button",mapping:{buttonRenderer:"ytd-button-renderer"}}},sM=function(){return _.h.apply(this,arguments)||this};
_.D(sM,_.h);sM.prototype.configureRendererStamper=function(){return f82};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],sM.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],sM.prototype,"rendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],sM.prototype,"data",void 0);_.O([_.U({computed:"computeIcon_(data.icon)"}),_.R("design:type",String)],sM.prototype,"icon",void 0);sM=_.O([_.E({is:"ytd-post-scheduling-zero-state-renderer",disableElementRegistration:!0})],sM);
_.v(sM,"ytd-post-scheduling-zero-state-renderer",function(){if(u5Q!==void 0)return u5Q;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return u5Q=J},{mode:1});var YjB;var LE=function(){var J=_.h.apply(this,arguments)||this;J.actionMap={"yt-update-posts-total-count-action":"handleUpdatePostsTotalCountAction"};return J};
_.D(LE,_.h);LE.prototype.onTabsActivate=function(J){this.data&&this.data.tabs&&_.cA(this.hostElement,"yt-navigate",{endpoint:this.data.tabs[J.detail.selected].navigationEndpoint})};
LE.prototype.shouldShowTotalCount=function(J){return J&&J.totalCount!==void 0};
LE.prototype.handleUpdatePostsTotalCountAction=function(J){var c=this.get(["data.tabs",1,"totalCount"]),m=this.get("updatePostsTotalCountAction.updateType",J);J=this.get("updatePostsTotalCountAction.number",J);c!==void 0&&m!=="UPDATE_POSTS_TOTAL_COUNT_TYPE_UNKNOWN"&&J&&(m==="UPDATE_POSTS_TOTAL_COUNT_TYPE_ADD"?this.set(["data.tabs",1,"totalCount"],Number(c)+J):m==="UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE"&&this.set(["data.tabs",1,"totalCount"],Number(c)-J))};
_.eE.Object.defineProperties(LE.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.tabs)for(var J=0,c=this.data.tabs.length;J<c;J++)if(this.data.tabs[J].selected)return J;return 0}}});
_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],LE.prototype,"actionHandlerBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],LE.prototype,"rendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],LE.prototype,"data",void 0);_.O([_.q("data.tabs"),_.R("design:type",Number),_.R("design:paramtypes",[])],LE.prototype,"selected",null);LE=_.O([_.E({is:"ytd-post-stream-filter-renderer",disableElementRegistration:!0})],LE);
_.v(LE,"ytd-post-stream-filter-renderer",function(){if(YjB!==void 0)return YjB;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return YjB=J},{mode:1});var Xoz;var D0=function(){return _.h.apply(this,arguments)||this};
_.D(D0,_.h);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],D0.prototype,"kevlarBehaviors",void 0);_.O([_.U(),_.R("design:type",Object)],D0.prototype,"data",void 0);D0=_.O([_.E({is:"ytd-channel-age-gate-renderer",disableElementRegistration:!0})],D0);
_.v(D0,"ytd-channel-age-gate-renderer",function(){if(Xoz!==void 0)return Xoz;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return Xoz=J},{mode:1});var Zea;_.zH("sharingItemSection","channelOwnerEmptyStateRenderer","ytd-channel-owner-empty-state-renderer");var WU=function(){var J=_.h.apply(this,arguments)||this;J.data=null;return J};
_.D(WU,_.h);WU.prototype.configureRendererStamper=function(){return{"data.uploadVideoButton":{id:"upload-video-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.eE.Object.defineProperties(WU.prototype,{imageSizePx:{configurable:!0,enumerable:!0,get:function(){var J,c,m;return((J=this.data)==null?0:(c=J.title)==null?0:(m=c.runs)==null?0:m.length)?147:160}}});
_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],WU.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],WU.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.q("data"),_.R("design:type",Number),_.R("design:paramtypes",[])],WU.prototype,"imageSizePx",null);WU=_.O([_.E({is:"ytd-channel-owner-empty-state-renderer",disableElementRegistration:!0})],WU);
_.v(WU,"ytd-channel-owner-empty-state-renderer",function(){if(Zea!==void 0)return Zea;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return Zea=J},{mode:1});var qj$;var U5B;var zZ=function(){var J=_.h.apply(this,arguments)||this;J.boundSubmitSearch=function(){J.submitSearch()};
J.boundClearSearch=function(){J.clearSearch()};
return J};
_.D(zZ,_.h);_.V=zZ.prototype;_.V.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]]"}}}}}};
_.V.toggleClearButton=function(){this.hideClearButton=y1e||!this.input.value};
_.V.submitOnEnterKeyUp=function(J){J.keyCode!==13||this.input.invalid||this.submit(this.input.value)};
_.V.clearSearch=function(){this.input.value="";this.submit(this.input.value)};
_.V.submitSearch=function(){this.input.invalid||this.submit(this.input.value)};
_.V.submit=function(){_.cA(this.hostElement,"search-query-changed",this.input.value)};
zZ.prototype.toggleClearButton=zZ.prototype.toggleClearButton;_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],zZ.prototype,"ytComponentBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],zZ.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],zZ.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],zZ.prototype,"data",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],zZ.prototype,"hideClearButton",void 0);_.O([_.U(),_.R("design:type",Object)],zZ.prototype,"boundSubmitSearch",void 0);_.O([_.U(),_.R("design:type",Object)],zZ.prototype,"boundClearSearch",void 0);_.O([_.Iu("#input"),_.R("design:type",Object)],zZ.prototype,"input",void 0);_.O([_.kr("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],zZ.prototype,"toggleClearButton",null);
zZ=_.O([_.E({is:"ytd-channel-switcher-search-box-renderer",disableElementRegistration:!0})],zZ);
_.v(zZ,"ytd-channel-switcher-search-box-renderer",function(){if(U5B!==void 0)return U5B;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return U5B=J},{mode:1});var Sj6;var uy=function(){var J=_.h.apply(this,arguments)||this;J.boundSubmit=function(){J.submit()};
return J};
_.D(uy,_.h);_.V=uy.prototype;_.V.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"}}}}};
_.V.ready=function(){var J=this;this.form.addEventListener("submit",function(c){return J.onSubmit(c)})};
_.V.onSubmit=function(J){J.preventDefault();return!1};
_.V.toggleClearButton=function(){this.hideClearButton=y1e||!this.input.value};
_.V.submitOnEnterKeyUp=function(J){J.keyCode===13&&this.submit()};
_.V.submit=function(){var J=this.data.endpoint,c=(0,_.Lw.unsafeClone)(J);_.L(c,_.I1)?_.L(c,_.I1).query=this.input.value:_.L(c,_.Kv)&&(_.L(c,_.Kv).query=this.input.value);var m=_.L(c.commandMetadata,_.lk);(m==null?0:m.url)?(m.url=_.hI(m.url,"query",this.input.value),_.cA(this.hostElement,"yt-navigate",{endpoint:c})):_.L(c,vRa)?(_.L(c,vRa).channelSwitcherQuery=this.input.value,_.BG().resolve(_.gu).resolveCommand(c,{form:{element:this.hostElement}})):(J=Error("Jh`"+JSON.stringify(J)),_.Xc(J))};
_.V.getUrl=function(J){return this.get("commandMetadata.webCommandMetadata.url",J)};
uy.prototype.toggleClearButton=uy.prototype.toggleClearButton;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],uy.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],uy.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],uy.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],uy.prototype,"hideClearButton",void 0);
_.O([_.U(),_.R("design:type",Object)],uy.prototype,"boundSubmit",void 0);_.O([_.Iu("#form"),_.R("design:type",HTMLFormElement)],uy.prototype,"form",void 0);_.O([_.Iu("#input"),_.R("design:type",Object)],uy.prototype,"input",void 0);_.O([_.kr("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],uy.prototype,"toggleClearButton",null);uy=_.O([_.E({disableElementRegistration:!0,is:"ytd-search-box-renderer"})],uy);
_.v(uy,"ytd-search-box-renderer",function(){if(Sj6!==void 0)return Sj6;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return Sj6=J},{mode:2});var fE=function(){var J=_.h.apply(this,arguments)||this;J.showSearchBox=!0;return J};
_.D(fE,_.h);fE.prototype.configureRendererStamper=function(){return{"data.searchBox":{id:"search-box",mapping:{searchBoxRenderer:"ytd-search-box-renderer",channelSwitcherSearchBoxRenderer:"ytd-channel-switcher-search-box-renderer"}}}};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],fE.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],fE.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],fE.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],fE.prototype,"showSearchBox",void 0);fE=_.O([_.E({is:"ytd-channel-switcher-header-renderer",disableElementRegistration:!0})],fE);
_.v(fE,"ytd-channel-switcher-header-renderer",function(){if(qj$!==void 0)return qj$;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return qj$=J},{mode:1});var hPQ;var d5a;var YG=function(){var J=_.h.apply(this,arguments)||this;J.isDisplayed=!0;return J};
_.D(YG,_.h);_.V=YG.prototype;_.V.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.V.dataChanged=function(){this.isDisplayed=!0};
_.V.computeType=function(J){return J||"UNKNOWN"};
_.V.onYtServiceRequestCompleted=function(J){J.stopPropagation();this.isDisplayed=!1};
_.V.onClose=function(){this.isDisplayed=!1};
YG.prototype.onYtServiceRequestCompleted=YG.prototype.onYtServiceRequestCompleted;YG.prototype.dataChanged=YG.prototype.dataChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],YG.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],YG.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],YG.prototype,"data",void 0);
_.O([_.U({computed:"computeType(data.type)",reflectToAttribute:!0}),_.R("design:type",String)],YG.prototype,"type",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],YG.prototype,"isDisplayed",void 0);_.O([_.kr("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],YG.prototype,"dataChanged",null);
_.O([_.ps("yt-service-request-completed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],YG.prototype,"onYtServiceRequestCompleted",null);YG=_.O([_.E({disableElementRegistration:!0,is:"ytd-alert-with-button-renderer"})],YG);
_.v(YG,"ytd-alert-with-button-renderer",function(){if(d5a!==void 0)return d5a;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return d5a=J},{mode:1});var Xm=function(){var J=_.h.apply(this,arguments)||this;J.noResult=!1;J.enableAlertBanner=!1;J.dismissedAlertBanner=!1;J.hideCreateChannelButton=!1;J.boundDismissAlertBanner=function(){J.dismissAlertBanner()};
J.actionMap={"yt-update-channel-switcher-page-action":"updateChannelSwitcherAction"};return J};
_.D(Xm,_.h);_.V=Xm.prototype;_.V.computeButtonOverride=function(){return{style:"mono",type:"tonal"}};
_.V.onDataChanged=function(){this.setShowSearchBox(this.data)};
_.V.updateChannelSwitcherAction=function(J){var c;J=(c=_.L(J,rKL))==null?void 0:c.page;_.L(J,we6)!==void 0&&(this.data=_.L(J,we6))};
_.V.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]]"}}}}}};
_.V.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.V.searchQueryChanged=function(J,c){if(this.data&&this.data.contents&&this.data.contents.length){J=[];var m=[];this.hideCreateChannelButton=this.noResult=!1;for(var b=document.querySelectorAll("ytd-account-item-renderer"),x=_.M(b),P=x.next();!P.done;P=x.next())P=P.value,m.push(P),P.style.display="block";this.resetRightBorder(m);if(c){this.hideCreateChannelButton=!0;for(m=1;m<this.data.contents.length;m++)if(P=this.data.contents[m],_.L(P,$J8)){var p=void 0,t=void 0;x=(p=_.L(P,$J8))==null?void 0:(t=
p.accountName)==null?void 0:t.simpleText;t=p=void 0;P=(p=_.L(P,$J8))==null?void 0:(t=p.channelHandle)==null?void 0:t.simpleText;(p=b[m-1])&&x&&_.IR(x,c)?J.push(p):_.w("enable_handle_search_on_channel_switcher")&&p&&P&&_.IR(P.toString(),c.toString())?J.push(p):p.style.display="none"}J.length===0&&(this.noResult=!0);this.resetRightBorder(J)}}};
_.V.resetRightBorder=function(J){for(var c=0;c<J.length;c++)J[c].style.borderRight=!this.hideCreateChannelButton&&(c+2)%3===0||this.hideCreateChannelButton&&(c+1)%3===0?"none":"1px solid var(--yt-spec-10-percent-layer)"};
_.V.onContinuationItemsUpdated=function(){this.setShowSearchBox(this.data)};
_.V.setShowSearchBox=function(J){if(J&&J.contents&&this.channelSwitcherHeaderRenderer){this.enableAlertBanner=!1;this.channelSwitcherHeaderRenderer.showSearchBox=!0;for(var c=0;c<J.contents.length;c++)_.L(J.contents[c],_.cH)&&(this.enableAlertBanner=!0,this.channelSwitcherHeaderRenderer.showSearchBox=!1);this.dismissedAlertBanner&&(this.enableAlertBanner=!1)}};
_.V.dismissAlertBanner=function(){this.dismissedAlertBanner=!0;this.enableAlertBanner=!1};
_.eE.Object.defineProperties(Xm.prototype,{isLoading:{configurable:!0,enumerable:!0,get:function(){var J;return!((J=this.data)==null?0:J.contents)}}});
Xm.prototype.onContinuationItemsUpdated=Xm.prototype.onContinuationItemsUpdated;Xm.prototype.searchQueryChanged=Xm.prototype.searchQueryChanged;Xm.prototype.onDataChanged=Xm.prototype.onDataChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Xm.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],Xm.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],Xm.prototype,"actionHandlerBehavior",void 0);_.O([_.f(_.Sy),_.R("design:type",Object)],Xm.prototype,"ytContinuationHandlerBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Xm.prototype,"data",void 0);_.O([_.Iu("ytd-channel-switcher-header-renderer"),_.R("design:type",Object)],Xm.prototype,"channelSwitcherHeaderRenderer",void 0);_.O([_.U(),_.R("design:type",Object)],Xm.prototype,"noResult",void 0);
_.O([_.U(),_.R("design:type",Object)],Xm.prototype,"enableAlertBanner",void 0);_.O([_.U(),_.R("design:type",Object)],Xm.prototype,"dismissedAlertBanner",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Xm.prototype,"hideCreateChannelButton",void 0);_.O([_.q("data.contents"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Xm.prototype,"isLoading",null);_.O([_.U(),_.R("design:type",Object)],Xm.prototype,"boundDismissAlertBanner",void 0);
_.O([_.U({computed:"computeButtonOverride()"}),_.R("design:type",Object)],Xm.prototype,"buttonOverride",void 0);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Xm.prototype,"onDataChanged",null);_.O([_.ps("search-query-changed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,String]),_.R("design:returntype")],Xm.prototype,"searchQueryChanged",null);
_.O([_.ps("yt-next-continuation-data-updated"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],Xm.prototype,"onContinuationItemsUpdated",null);Xm=_.O([_.E({is:"ytd-channel-switcher-page-renderer",disableElementRegistration:!0})],Xm);
_.v(Xm,"ytd-channel-switcher-page-renderer",function(){if(hPQ!==void 0)return hPQ;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return hPQ=J},{mode:1});var $5L;var GlQ;var Z0=function(){var J=_.h.apply(this,arguments)||this;J.images=[];J.selectedImageIndex=0;return J};
_.D(Z0,_.h);_.V=Z0.prototype;
_.V.ready=function(){_.wp(this.thumbnailImagesContainer,"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this);_.wp(this.JSC$13509_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-update",this.updateImageThumbnails,!1,this);_.wp(this.JSC$13509_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.saveImageRepositions,!1,this);_.wp(this.JSC$13509_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-cancel",this.cancelImageRepositions,
!1,this)};
_.V.onThumbnailClick=function(J){if(J=J.event_.detail)this.selectedImageIndex=this.images.indexOf(J)};
_.V.updateImageThumbnails=function(J){J=Object.assign({},this.images[this.selectedImageIndex],{previewCoordinates:J.event_.detail});this.images.splice(this.selectedImageIndex,1,J);this.images=[].concat(_.L6(this.images))};
_.V.cancelImageRepositions=function(){this.selectedImageIndex=0;_.cA(this.hostElement,"ytd-backstage-image-reposition-cancel")};
_.V.saveImageRepositions=function(){this.selectedImageIndex=0;_.cA(this.hostElement,"ytd-backstage-image-reposition-save",this.images)};
_.eE.Object.defineProperties(Z0.prototype,{thumbnailRendererDatas:{configurable:!0,enumerable:!0,get:function(){var J=this;return(this.images||[]).map(function(c,m){return{image:c,selected:m===J.selectedImageIndex}})}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]}}});
_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],Z0.prototype,"ytRendererstamperBehavior",void 0);_.O([_.Iu("ytd-backstage-image-preview-renderer"),_.R("design:type",Object)],Z0.prototype,"JSC$13509_imagePreviewContainer",void 0);_.O([_.Iu(".thumbnail-images-container"),_.R("design:type",HTMLElement)],Z0.prototype,"thumbnailImagesContainer",void 0);_.O([_.U(),_.R("design:type",Array)],Z0.prototype,"images",void 0);
_.O([_.U(),_.R("design:type",Object)],Z0.prototype,"repositionInstructions",void 0);_.O([_.U(),_.R("design:type",Object)],Z0.prototype,"selectedImageIndex",void 0);_.O([_.q("images","selectedImageIndex"),_.R("design:type",Array),_.R("design:paramtypes",[])],Z0.prototype,"thumbnailRendererDatas",null);_.O([_.q("images","selectedImageIndex"),_.R("design:type",Object),_.R("design:paramtypes",[])],Z0.prototype,"selectedImageData",null);
Z0=_.O([_.E({is:"ytd-backstage-multi-image-reposition-renderer",disableElementRegistration:!0})],Z0);
_.v(Z0,"ytd-backstage-multi-image-reposition-renderer",function(){if(GlQ!==void 0)return GlQ;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return GlQ=J},{mode:1});var qo=function(J,c){_.KI.call(this);this.uploadUrl=J;this.channelId=c;this.imagesUploadData=[]};
_.D(qo,_.KI);qo.prototype.getAllUploadStatuses=function(){var J=this,c,m,b;return _.N(function(x){if(x.nextAddress==1)return _.K(x,Ee8(J),2);c=x.yieldResult;m=c.get("succeed");b=c.get("failed");return x.return(m.concat(b))})};
var Oeu=function(J){var c,m;return _.N(function(b){if(b.nextAddress==1)return _.K(b,Ee8(J),2);c=b.yieldResult;m=c.get("failed");m.length>0&&veu(J,m);return b.return(J.getAllUploadStatuses())})},Ee8=function(J){var c,m,b,x,P,p,t;
return _.N(function(I){if(I.nextAddress==1)return c=new Map,_.K(I,Promise.allSettled(J.imagesUploadData.map(function(a){return a.uploadPromise})),2);
m=I.yieldResult;b=[];x=_.M(m);for(P=x.next();!P.done;P=x.next())p=P.value,p.status==="fulfilled"&&b.push(p.value);t=J.imagesUploadData.map(function(a){return a.image}).filter(function(a){return b.every(function(k){return k.id!==a.id})});
c.set("succeed",b);c.set("failed",t);return I.return(c)})},veu=function(J,c){c=_.M(c);
for(var m=c.next();!m.done;m=c.next()){var b=J;m=m.value;AnQ(b,m.id)>=0&&b.cancel(m.id);var x=new RP8(m),P=_.Wx$(b.uploadUrl,{"X-YouTube-ChannelId":b.channelId},m.imageBlob);x.transfer=P;x.uploadPromise=oeQ(P,m);b.imagesUploadData.push(x);P.run()}};
qo.prototype.cancel=function(J){var c=AnQ(this,J);c!==-1&&((c=this.imagesUploadData[c].transfer)&&c.cancel(),this.imagesUploadData=this.imagesUploadData.filter(function(m){return m.image.id!==J}))};
var AnQ=function(J,c){return J.imagesUploadData.findIndex(function(m){return m.image.id===c})},oeQ=function(J,c){return new Promise(function(m,b){J.listen("l",function(){var x=J.getResponseText();
x?(x=JSON.parse(x).encryptedBlobId,c.encryptedBlobId=x,m(c)):b("upload failed")});
J.listen("n",function(){b("upload failed")})})},RP8=function(J){this.image=J};var L1D=function(J,c,m,b,x){this.id=J;this.imageBlob=c;this.localImageSrc=m;this.naturalWidth=b;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 QZ$=[".jpeg",".jpg",".png"],UM=function(){var J=_.h.apply(this,arguments)||this;J.showImagesPreview=!1;J.pollOptions=[];J.errorMessage="";J.optionPlaceholderText="";J.optionDefaultText="";J.JSC$13520_imageId=0;J.maxFileSizeMb=0;J.maxAspectRatio=0;J.invalidFileSizeError="";J.invalidAspectRatioError="";J.invalidFileTypeError="";J.imageSelector=new xW(null,"single_file",QZ$);return J};
_.D(UM,_.h);_.V=UM.prototype;_.V.ready=function(){_.wp(this.imageSelector,"j",this.onImageSelect,!1,this);_.wp(this.imageRepositionContainer,"ytd-backstage-image-reposition-save",this.saveImageRepositions,!1,this);_.wp(this.imageRepositionContainer,"ytd-backstage-image-reposition-cancel",this.cancelImageRepositions,!1,this)};
_.V.dataChanged=function(){var J,c,m=_.L((J=this.data)==null?void 0:(c=J.cellTemplate)==null?void 0:c.onEmptyCellTap,ws8);if(m&&m.uploadUrl&&m.channelId){var b;this.maxFileSizeMb=((b=m.imageValidationInfo)==null?void 0:b.maxFileSizeMb)||0;var x;this.maxAspectRatio=((x=m.imageValidationInfo)==null?void 0:x.allowedMaxAspectRatio)||0;var P;this.invalidFileSizeError=this.getSimpleString((P=this.data)==null?void 0:P.invalidFileSizeError);var p;this.invalidAspectRatioError=this.getSimpleString((p=this.data)==
null?void 0:p.invalidAspectRatioError);var t;this.invalidFileTypeError=this.getSimpleString((t=this.data)==null?void 0:t.invalidFileTypeError);this.uploadManager=new qo(m.uploadUrl,m.channelId)}};
_.V.onEditorInfoChange=function(){this.optionPlaceholderText=_.OG(this.editorInfo.optionPlaceholderText);this.optionDefaultText=_.OG(this.editorInfo.optionDefaultText);this.pollOptions=this.createPollOptions(this.editorInfo)};
_.V.observeAddImageError=function(){this.errorMessage!==""&&_.cA(this.hostElement,"yt-backstage-add-image-error",this.errorMessage)};
_.V.onPollOptionsChange=function(){for(var J=!1,c=[],m=0;m<this.pollOptions.length;m++){var b=this.hasCustomOptionText?this.optionPlaceholderText:this.optionDefaultText+" "+(m+1);this.pollOptions[m].placeholderText!==b?(J=!0,c.push(Object.assign({},this.pollOptions[m],{placeholderText:b}))):c.push(this.pollOptions[m])}J&&(this.pollOptions=c);this.isValid()?_.cA(this.hostElement,"yt-commentbox-post-enable"):_.cA(this.hostElement,"yt-commentbox-post-disable")};
_.V.createPollOptions=function(J){var c=[],m;J=(m=J==null?void 0:J.minPollOptions)!=null?m:0;for(m=0;m<J;m++)c.push(this.createPollOption());return c};
_.V.onImageSelect=function(J){var c=this,m,b,x,P,p,t;return _.N(function(I){if(I.nextAddress==1){if(c.selectedImageIndex===void 0)return I.jumpTo(0);m=J.files[0];c.errorMessage="";b=c.validateImage(m);if(b!=="")return c.errorMessage=b,I.return();x=new $W(c.maxAspectRatio,!1,!0);return _.K(I,x.transform(m),3)}if(I.nextAddress!=4)return P=I.yieldResult,P.transformedData?P.invalidAspectRatio?(c.errorMessage=c.invalidAspectRatioError,I.return()):_.K(I,D52(c.JSC$13520_imageId,J.files[0],P.transformedData),
4):(c.errorMessage=c.invalidFileTypeError,I.return());p=I.yieldResult;c.JSC$13520_imageId++;veu(c.uploadManager,[p]);t=Object.assign({},c.pollOptions[c.selectedImageIndex],{image:p});c.pollOptions.splice(c.selectedImageIndex,1,t);c.refreshPollOptions();_.cA(c.hostElement,"yt-backstage-poll-image-select");_.tD(I)})};
_.V.validateImage=function(J){return J.size>1048576*this.maxFileSizeMb?this.invalidFileSizeError:""};
_.V.refreshPollOptions=function(){this.pollOptions=[].concat(_.L6(this.pollOptions))};
_.V.onAddPollOption=function(){this.isAllowedToAddOption&&(this.pollOptions=[].concat(_.L6(this.pollOptions),[this.createPollOption()]))};
_.V.onRemovePollOption=function(J){var c=this.pollOptions[J.model.index];c&&c.image&&this.uploadManager.cancel(c.image.id);this.pollOptions.splice(J.model.index,1);this.refreshPollOptions();this.pollOptions.length===0&&_.cA(this.hostElement,"yt-image-poll-attachment-dismiss")};
_.V.onTextInput=function(){this.refreshPollOptions()};
_.V.onImageButtonClick=function(J){this.selectedImageIndex=J.model.index;this.imageSelector.click()};
_.V.onRepositionImages=function(){this.hasImages&&(this.showImagesPreview=!0,this.refreshPollOptions())};
_.V.cancelImageRepositions=function(){this.showImagesPreview=!1;this.refreshPollOptions()};
_.V.saveImageRepositions=function(J){J=J.event_.detail;for(var c=0,m=[],b=_.M(this.pollOptions),x=b.next();!x.done;x=b.next())x=x.value,x.image!==void 0?(x=Object.assign({},x,{image:J[c]}),m.push(x),c++):m.push(x);this.showImagesPreview=!1;this.pollOptions=[].concat(_.L6(m))};
_.V.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 J=0,c=_.M(this.pollOptions),m=c.next();!m.done;m=c.next())if(m=m.value,m.optionText.trim()!==""||m.image!==void 0){if(!m.image||this.hasCustomOptionText&&m.optionText.trim().length<Number(this.editorInfo.minPollOptionChars))return!1;J++}return J>=Number(this.editorInfo.minPollOptions)};
_.V.getAllUploadStatuses=function(){var J=this,c,m,b,x;return _.N(function(P){if(P.nextAddress==1)return _.K(P,J.uploadManager.getAllUploadStatuses(),2);c=P.yieldResult;m=_.M(c);for(b=m.next();!b.done;b=m.next())if(x=b.value,x.encryptedBlobId===void 0)return P.return(Oeu(J.uploadManager));return P.return(c)})};
_.V.getPostCreateOptions=function(){for(var J=[],c=_.M(this.pollOptions),m=c.next();!m.done;m=c.next())m=m.value,m.image!==void 0&&J.push({text:this.hasCustomOptionText?m.optionText:m.placeholderText,image:m.image});return J};
_.V.resetPollOptions=function(){this.pollOptions=this.createPollOptions(this.editorInfo);this.showImagesPreview=!1};
_.V.createButtonRenderer=function(J,c){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:J,accessibilityData:{accessibilityData:{label:this.getSimpleString(J)}},isDisabled:c}};
_.V.createPollOption=function(){return{optionText:"",placeholderText:""}};
_.V.computeThumbnailRendererData=function(J){return J?{image:J,selected:!1}:void 0};
_.V.getSimpleString=function(J){return _.OG(J)};
_.V.updateOptionTextFromBinding=function(J){if(J.target){var c=Array.from(_.Bj(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.poll-option-input-text")).indexOf(J.target);if(c>=0){var m;this.pollOptions[c].optionText=(m=J.detail.value)!=null?m:""}}};
_.eE.Object.defineProperties(UM.prototype,{isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var J,c;return this.pollOptions.length<((c=(J=this.editorInfo)==null?void 0:J.maxPollOptions)!=null?c:0)}},
hasImages:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(J){return J.image})}},
imagesToReposition:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.filter(function(J){return J.image}).map(function(J){return J.image})}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(J){return J.optionText.trim()})}},
addOptionButton:{configurable:!0,enumerable:!0,get:function(){var J,c=(J=this.data)==null?void 0:J.addOptionButtonText;return c?this.createButtonRenderer(c,!this.isAllowedToAddOption):void 0}},
repositionImagesButton:{configurable:!0,enumerable:!0,get:function(){var J,c=(J=this.data)==null?void 0:J.repositionImagesButtonLabel;return c?this.createButtonRenderer(c,!this.hasImages):void 0}}});
UM.prototype.onPollOptionsChange=UM.prototype.onPollOptionsChange;UM.prototype.observeAddImageError=UM.prototype.observeAddImageError;UM.prototype.onEditorInfoChange=UM.prototype.onEditorInfoChange;UM.prototype.dataChanged=UM.prototype.dataChanged;_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],UM.prototype,"ytRendererstamperBehavior",void 0);_.O([_.Iu("ytd-backstage-multi-image-reposition-renderer"),_.R("design:type",Object)],UM.prototype,"imageRepositionContainer",void 0);
_.O([_.U(),_.R("design:type",Object)],UM.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],UM.prototype,"editorInfo",void 0);_.O([_.U(),_.R("design:type",qo)],UM.prototype,"uploadManager",void 0);_.O([_.U(),_.R("design:type",Object)],UM.prototype,"showImagesPreview",void 0);_.O([_.U(),_.R("design:type",Array)],UM.prototype,"pollOptions",void 0);_.O([_.U(),_.R("design:type",Object)],UM.prototype,"errorMessage",void 0);
_.O([_.kr("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],UM.prototype,"dataChanged",null);_.O([_.kr("editorInfo"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],UM.prototype,"onEditorInfoChange",null);_.O([_.NE("errorMessage"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],UM.prototype,"observeAddImageError",null);
_.O([_.kr("pollOptions"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],UM.prototype,"onPollOptionsChange",null);_.O([_.q("pollOptions","editorInfo"),_.R("design:type",Object),_.R("design:paramtypes",[])],UM.prototype,"isAllowedToAddOption",null);_.O([_.q("pollOptions"),_.R("design:type",Object),_.R("design:paramtypes",[])],UM.prototype,"hasImages",null);
_.O([_.q("pollOptions"),_.R("design:type",Object),_.R("design:paramtypes",[])],UM.prototype,"imagesToReposition",null);_.O([_.q("pollOptions"),_.R("design:type",Object),_.R("design:paramtypes",[])],UM.prototype,"hasCustomOptionText",null);_.O([_.q("data","isAllowedToAddOption"),_.R("design:type",Object),_.R("design:paramtypes",[])],UM.prototype,"addOptionButton",null);_.O([_.q("data","hasImages"),_.R("design:type",Object),_.R("design:paramtypes",[])],UM.prototype,"repositionImagesButton",null);
UM=_.O([_.E({is:"ytd-backstage-image-poll-editor-renderer",disableElementRegistration:!0})],UM);
_.v(UM,"ytd-backstage-image-poll-editor-renderer",function(){if($5L!==void 0)return $5L;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return $5L=J},{mode:2});var ePu={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 jZQ;var Su=function(){var J=_.h.apply(this,arguments)||this;J.a11yConfig=ePu;J.imageDisplayOffsetTop=0;J.imageDisplayOffsetLeft=0;J.pickerDisplayOffsetTop=0;J.pickerDisplayOffsetLeft=0;J.showPreviewContainer=!0;J.startPicker=!1;J.repositionOptional=!1;J.editOnlyMode=!1;J.savedImageDisplayOffsetTop=0;J.savedImageDisplayOffsetLeft=0;return J};
_.D(Su,_.h);_.V=Su.prototype;_.V.created=function(){_.Zj.requestAvailability()};
_.V.ready=function(){};
_.V.onArrowKeysDown=function(J){if(!this.showPreviewContainer&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){J.detail.keyboardEvent.preventDefault();var c=0,m=0,b="";switch(J.detail.keyboardEvent.key){case "ArrowUp":W1q(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?b=this.a11yConfig.reachBottomOfImage:c=this.imageHeight*.05*-1;break;case "ArrowDown":W1q(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?b=this.a11yConfig.reachTopOfImage:
c=this.imageHeight*.05;break;case "ArrowLeft":W1q(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?b=this.a11yConfig.reachRightOfImage:m=this.imageWidth*.05*-1;break;case "ArrowRight":W1q(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?b=this.a11yConfig.reachLeftOfImage:m=this.imageWidth*.05}b&&_.CX(b)&&_.cA(this.hostElement,"iron-announce",{text:_.CX(b)});if(m||c)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+c)),J=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),J=_.CX(this.a11yConfig.imageVerticalPosition,{x_percent:""+J,y_percent:""+(100-J)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+m)),J=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),J=_.CX(this.a11yConfig.imageHorizontalPosition,{x_percent:""+J,y_percent:""+(100-J)})),J&&_.cA(this.hostElement,"iron-announce",{text:J})}};
_.V.getPreviewPosition=function(J,c,m,b){return Math.round(100*(J+c*.5-m)/b)};
_.V.calculateDisplayPosition=function(){var J=this.imageData.naturalWidth,c=this.imageData.naturalHeight;this.displayScale=Math.max(200/J,200/c);this.pickerDisplayOffsetTop=this.pickerDisplayOffsetLeft=50;var m=J*this.displayScale*this.imageData.previewCoordinates.left,b=c*this.displayScale*this.imageData.previewCoordinates.top;this.imageDisplayOffsetLeft=c>J?this.pickerDisplayOffsetLeft:this.pickerDisplayOffsetLeft-m;this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop=J>c?this.pickerDisplayOffsetTop:
this.pickerDisplayOffsetTop-b;this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft;this.imageWidth=J*this.displayScale;this.imageHeight=c*this.displayScale};
_.V.onImageChange=function(){this.imageData&&(this.editOnlyMode||(this.showPreviewContainer=!0),this.calculateDisplayPosition())};
_.V.onEditOnlyModeUpdate=function(){this.showPreviewContainer=!this.editOnlyMode};
_.V.getSignedPosition=function(J,c,m){return c==="X"&&_.Ub("HTML_DIR")==="rtl"?m==="-"?J+"px":J*-1+"px":m==="-"?J*-1+"px":J+"px"};
_.V.pickerMove=function(J){if(this.startPicker&&!this.showPreviewContainer&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var c=this.pickerOffsetX-J.clientX,m=this.pickerOffsetY-J.clientY;this.pickerOffsetX=J.clientX;this.pickerOffsetY=J.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
m)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-c))}};
_.V.pickerMoveStart=function(J){this.startPicker=!0;this.pickerOffsetX=J.clientX;this.pickerOffsetY=J.clientY};
_.V.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0;var J=this.generateCropPreview();J&&_.cA(this.hostElement,"ytd-backstage-image-preview-coordinates-update",J)};
_.V.cancelReposition=function(){this.editOnlyMode||(this.imageDisplayOffsetTop=this.savedImageDisplayOffsetTop,this.imageDisplayOffsetLeft=this.savedImageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);_.cA(this.hostElement,"ytd-backstage-image-preview-coordinates-cancel")};
_.V.deleteImage=function(){_.cA(this.hostElement,"ytd-backstage-image-preview-delete")};
_.V.editCropCoordinates=function(){this.showPreviewContainer=!1};
_.V.saveCropCoordinates=function(){this.editOnlyMode||(this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop,this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);var J=this.generateCropPreview();J&&_.cA(this.hostElement,"ytd-backstage-image-preview-coordinates-save",J)};
_.V.getPreviewOffset=function(J,c,m){return c&&J?(m==="X"&&_.Ub("HTML_DIR")==="rtl"?300/c*J:300/c*J*-1)+"px":"0px"};
_.V.getSimpleText=function(J){return J?_.OG(J):""};
_.V.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}};
_.eE.Object.defineProperties(Su.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var J=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.CX(this.a11yConfig.imageVerticalPosition,{x_percent:""+J,y_percent:""+(100-J)})+"\n"+_.CX(this.a11yConfig.verticalRepositionInstruction)}J=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.CX(this.a11yConfig.imageHorizontalPosition,{x_percent:""+J,y_percent:""+(100-J)})+"\n"+_.CX(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 J,c,m=(J=this.instruction)==null?void 0:(c=J.previewInstruction)==null?void 0:c.editButtonLabel;return m?{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:m,accessibilityData:{accessibilityData:{label:this.getSimpleText(m)}}}:void 0}},
saveButton:{configurable:!0,enumerable:!0,get:function(){var J,c,m,b,x=this.editOnlyMode?(J=this.instruction)==null?void 0:(c=J.editInstruction)==null?void 0:c.saveImagesButtonLabel:(m=this.instruction)==null?void 0:(b=m.editInstruction)==null?void 0:b.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 J,c,m=(J=this.instruction)==null?void 0:(c=J.previewInstruction)==null?void 0:c.deleteButtonLabel;return m?{size:"SIZE_SMALL",text:m,accessibilityData:{accessibilityData:{label:this.getSimpleText(m)}}}:void 0}},
cancelButton:{configurable:!0,enumerable:!0,get:function(){var J,c,m=(J=this.instruction)==null?void 0:(c=J.editInstruction)==null?void 0:c.cancelButtonLabel;J=this.editOnlyMode?"STYLE_BLUE_TEXT":"STYLE_TEXT";return m?{style:J,size:"SIZE_SMALL",text:m,accessibilityData:{accessibilityData:{label:this.getSimpleText(m)}}}: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"}}});
Su.prototype.onEditOnlyModeUpdate=Su.prototype.onEditOnlyModeUpdate;Su.prototype.onImageChange=Su.prototype.onImageChange;_.O([_.U(),_.R("design:type",L1D)],Su.prototype,"imageData",void 0);_.O([_.U(),_.R("design:type",Object)],Su.prototype,"instruction",void 0);_.O([_.U(),_.R("design:type",Object)],Su.prototype,"a11yConfig",void 0);_.O([_.U(),_.R("design:type",Number)],Su.prototype,"imageWidth",void 0);_.O([_.U(),_.R("design:type",Number)],Su.prototype,"imageHeight",void 0);
_.O([_.U(),_.R("design:type",Number)],Su.prototype,"displayScale",void 0);_.O([_.U(),_.R("design:type",Object)],Su.prototype,"imageDisplayOffsetTop",void 0);_.O([_.U(),_.R("design:type",Object)],Su.prototype,"imageDisplayOffsetLeft",void 0);_.O([_.U(),_.R("design:type",Object)],Su.prototype,"pickerDisplayOffsetTop",void 0);_.O([_.U(),_.R("design:type",Object)],Su.prototype,"pickerDisplayOffsetLeft",void 0);_.O([_.U(),_.R("design:type",Object)],Su.prototype,"showPreviewContainer",void 0);
_.O([_.U(),_.R("design:type",Object)],Su.prototype,"startPicker",void 0);_.O([_.U(),_.R("design:type",Number)],Su.prototype,"pickerOffsetX",void 0);_.O([_.U(),_.R("design:type",Number)],Su.prototype,"pickerOffsetY",void 0);_.O([_.U(),_.R("design:type",Object)],Su.prototype,"repositionOptional",void 0);_.O([_.U(),_.R("design:type",Object)],Su.prototype,"editOnlyMode",void 0);_.O([_.Iu("#picker-container"),_.R("design:type",HTMLElement)],Su.prototype,"JSC$13533_pickerContainer",void 0);
_.O([_.Iu("#picker"),_.R("design:type",HTMLElement)],Su.prototype,"picker",void 0);_.O([_.Iu("#preview-clipper"),_.R("design:type",HTMLElement)],Su.prototype,"previewClipper",void 0);_.O([_.Iu("#image-in-picker-background"),_.R("design:type",HTMLImageElement)],Su.prototype,"JSC$13533_imageInBackground",void 0);_.O([_.Iu("#image-in-picker"),_.R("design:type",HTMLImageElement)],Su.prototype,"JSC$13533_imageInPicker",void 0);
_.O([_.Iu("#image-in-preview-clipper"),_.R("design:type",HTMLImageElement)],Su.prototype,"JSC$13533_imageInPreviewClipper",void 0);_.O([_.q("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.R("design:type",String),_.R("design:paramtypes",[])],Su.prototype,"altLabelForImage",null);_.O([_.q("imageHeight","imageWidth"),_.R("design:type",Number),_.R("design:paramtypes",[])],Su.prototype,"pickerSize",null);
_.O([_.q("imageHeight","imageWidth"),_.R("design:type",Object),_.R("design:paramtypes",[])],Su.prototype,"imageOrientationStyle",null);_.O([_.q("instruction"),_.R("design:type",Object),_.R("design:paramtypes",[])],Su.prototype,"editButton",null);_.O([_.q("instruction","editOnlyMode"),_.R("design:type",Object),_.R("design:paramtypes",[])],Su.prototype,"saveButton",null);_.O([_.q("instruction"),_.R("design:type",Object),_.R("design:paramtypes",[])],Su.prototype,"deleteButton",null);
_.O([_.q("instruction","editOnlyMode"),_.R("design:type",Object),_.R("design:paramtypes",[])],Su.prototype,"cancelButton",null);_.O([_.q("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.R("design:type",Number),_.R("design:paramtypes",[])],Su.prototype,"cropOffsetTop",null);_.O([_.q("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.R("design:type",Number),_.R("design:paramtypes",[])],Su.prototype,"cropOffsetLeft",null);
_.O([_.q("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.R("design:type",String),_.R("design:paramtypes",[])],Su.prototype,"pickerBackgroundStyle",null);_.O([_.q("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.R("design:type",String),_.R("design:paramtypes",[])],Su.prototype,"pickerDisplayStyle",null);_.O([_.q("cropOffsetLeft","cropOffsetTop"),_.R("design:type",String),_.R("design:paramtypes",[])],Su.prototype,"imageInPickerStyle",null);
_.O([_.q("cropOffsetLeft","cropOffsetTop","pickerSize"),_.R("design:type",String),_.R("design:paramtypes",[])],Su.prototype,"previewClipperStyle",null);_.O([_.kr("imageData"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Su.prototype,"onImageChange",null);_.O([_.kr("editOnlyMode"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Su.prototype,"onEditOnlyModeUpdate",null);
_.O([_.q("showPreviewContainer"),_.R("design:type",String),_.R("design:paramtypes",[])],Su.prototype,"pickerModeStyle",null);Su=_.O([_.E({is:"ytd-backstage-image-preview-renderer",disableElementRegistration:!0})],Su);
_.v(Su,"ytd-backstage-image-preview-renderer",function(){if(jZQ!==void 0)return jZQ;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return jZQ=J},{mode:1});var F1a;var l8Q={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 ynL;var Bj6;var hJ=function(){var J=_.h.apply(this,arguments)||this;J.a11yConfig=l8Q;J.imageDisplayOffsetTop=0;J.imageDisplayOffsetLeft=0;J.pickerDisplayOffsetTop=0;J.pickerDisplayOffsetLeft=0;J.cropCoordinatesSaved=!1;J.previewSize=0;J.startPicker=!1;J.repositionOptional=!1;return J};
_.D(hJ,_.h);_.V=hJ.prototype;_.V.created=function(){_.Zj.requestAvailability()};
_.V.ready=function(){};
_.V.onArrowKeysDown=function(J){if(!this.cropCoordinatesSaved&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){J.detail.keyboardEvent.preventDefault();var c=0,m=0,b="";switch(J.detail.keyboardEvent.key){case "ArrowUp":zP2(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?b=this.a11yConfig.reachBottomOfImage:c=this.imageHeight*.05*-1;break;case "ArrowDown":zP2(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?b=this.a11yConfig.reachTopOfImage:
c=this.imageHeight*.05;break;case "ArrowLeft":zP2(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?b=this.a11yConfig.reachRightOfImage:m=this.imageWidth*.05*-1;break;case "ArrowRight":zP2(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?b=this.a11yConfig.reachLeftOfImage:m=this.imageWidth*.05}b&&_.CX(b)&&_.cA(this.hostElement,"iron-announce",{text:_.CX(b)});if(m||c)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+c)),J=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),J=_.CX(this.a11yConfig.imageVerticalPosition,{x_percent:""+J,y_percent:""+(100-J)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+m)),J=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),J=_.CX(this.a11yConfig.imageHorizontalPosition,{x_percent:""+J,y_percent:""+(100-J)})),J&&_.cA(this.hostElement,"iron-announce",{text:J})}};
_.V.getPreviewPosition=function(J,c,m,b){return Math.round(100*(J+c*.5-m)/b)};
_.V.displayImage=function(){var J=this.JSC$13544_pickerContainer.getBoundingClientRect().width,c=this.JSC$13544_pickerContainer.getBoundingClientRect().height,m=Math.min(this.picker.getBoundingClientRect().height,this.picker.getBoundingClientRect().width),b=this.JSC$13544_imageInBackground.naturalWidth,x=this.JSC$13544_imageInBackground.naturalHeight;this.displayScale=Math.max(m/b,m/x);this.imageWidth=b*this.displayScale;this.imageHeight=x*this.displayScale;this.pickerDisplayOffsetLeft=(J-m)/2;this.pickerDisplayOffsetTop=
(c-m)/2;this.imageDisplayOffsetLeft=x>b?this.pickerDisplayOffsetLeft:(J-this.imageWidth)/2;this.imageDisplayOffsetTop=b>x?this.pickerDisplayOffsetTop:(c-this.imageHeight)/2;this.repositionOptional&&this.saveCropCoordinates()};
_.V.onImageDataChange=function(){this.imageData&&(this.pickerDisplayOffsetLeft=this.pickerDisplayOffsetTop=0,this.cropCoordinatesSaved=!1,this.JSC$13544_imageInBackground.src=this.imageData.toString(),this.JSC$13544_imageInPicker.src=this.imageData.toString(),this.JSC$13544_imageInPreviewClipper.src=this.imageData.toString(),this.imageAsPreview.src=this.imageData.toString())};
_.V.getSignedPosition=function(J,c,m){return c==="X"&&_.Ub("HTML_DIR")==="rtl"?m==="-"?J+"px":J*-1+"px":m==="-"?J*-1+"px":J+"px"};
_.V.pickerMove=function(J){if(this.startPicker&&!this.cropCoordinatesSaved&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var c=this.pickerOffsetX-J.clientX,m=this.pickerOffsetY-J.clientY;this.pickerOffsetX=J.clientX;this.pickerOffsetY=J.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
m)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-c))}};
_.V.pickerMoveStart=function(J){this.startPicker=!0;this.pickerOffsetX=J.clientX;this.pickerOffsetY=J.clientY};
_.V.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0};
_.V.saveCropCoordinates=function(){this.cropCoordinatesSaved?(this.cropCoordinatesSaved=!1,this.previewSize=0,_.cA(this.hostElement,"yt-img-crop-reposition")):(this.startPicker=!1,this.generateCropPreview())};
_.V.getPreviewOffset=function(J,c,m,b){return c&&J&&m?(b==="X"&&_.Ub("HTML_DIR")==="rtl"?m/c*J:m/c*J*-1)+"px":"0px"};
_.V.getSimpleText=function(J){return J?_.OG(J):""};
_.V.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize){this.cropCoordinatesSaved=!0;var J=this.cropOffsetTop/this.imageHeight,c=(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,m=(this.cropOffsetTop+this.pickerSize)/this.imageHeight,b=this.cropOffsetLeft/this.imageWidth;this.previewSize=_.Bj(this.hostElement).querySelector("#preview-clipper").getBoundingClientRect().width;_.cA(this.hostElement,"yt-img-crop-coordinates-update",{top:J,right:c,bottom:m,left:b})}};
_.eE.Object.defineProperties(hJ.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var J=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.CX(this.a11yConfig.imageVerticalPosition,{x_percent:""+J,y_percent:""+(100-J)})+"\n"+_.CX(this.a11yConfig.verticalRepositionInstruction)}J=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.CX(this.a11yConfig.imageHorizontalPosition,{x_percent:""+J,y_percent:""+(100-J)})+"\n"+_.CX(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 J,c=(J=this.learnMore.runs[0])==null?void 0:J.navigationEndpoint,m;return((m=_.L(c,_.Ee))==null?void 0:m.url)||void 0}}}});
hJ.prototype.onImageDataChange=hJ.prototype.onImageDataChange;_.O([_.U(),_.R("design:type",Object)],hJ.prototype,"imageData",void 0);_.O([_.U(),_.R("design:type",Object)],hJ.prototype,"instruction",void 0);_.O([_.U(),_.R("design:type",Object)],hJ.prototype,"a11yConfig",void 0);_.O([_.U(),_.R("design:type",Number)],hJ.prototype,"imageWidth",void 0);_.O([_.U(),_.R("design:type",Number)],hJ.prototype,"imageHeight",void 0);_.O([_.U(),_.R("design:type",Number)],hJ.prototype,"displayScale",void 0);
_.O([_.U(),_.R("design:type",Object)],hJ.prototype,"imageDisplayOffsetTop",void 0);_.O([_.U(),_.R("design:type",Object)],hJ.prototype,"imageDisplayOffsetLeft",void 0);_.O([_.U(),_.R("design:type",Object)],hJ.prototype,"pickerDisplayOffsetTop",void 0);_.O([_.U(),_.R("design:type",Object)],hJ.prototype,"pickerDisplayOffsetLeft",void 0);_.O([_.U(),_.R("design:type",Object)],hJ.prototype,"cropCoordinatesSaved",void 0);_.O([_.U(),_.R("design:type",Object)],hJ.prototype,"previewSize",void 0);
_.O([_.U(),_.R("design:type",Object)],hJ.prototype,"startPicker",void 0);_.O([_.U(),_.R("design:type",Number)],hJ.prototype,"pickerOffsetX",void 0);_.O([_.U(),_.R("design:type",Number)],hJ.prototype,"pickerOffsetY",void 0);_.O([_.U(),_.R("design:type",Object)],hJ.prototype,"repositionOptional",void 0);_.O([_.Iu("#picker-container"),_.R("design:type",HTMLElement)],hJ.prototype,"JSC$13544_pickerContainer",void 0);_.O([_.Iu("#picker"),_.R("design:type",HTMLElement)],hJ.prototype,"picker",void 0);
_.O([_.Iu("#image-in-picker-background"),_.R("design:type",HTMLImageElement)],hJ.prototype,"JSC$13544_imageInBackground",void 0);_.O([_.Iu("#image-in-picker"),_.R("design:type",HTMLImageElement)],hJ.prototype,"JSC$13544_imageInPicker",void 0);_.O([_.Iu("#image-in-preview-clipper"),_.R("design:type",HTMLImageElement)],hJ.prototype,"JSC$13544_imageInPreviewClipper",void 0);_.O([_.Iu("#full-image-as-preview"),_.R("design:type",HTMLImageElement)],hJ.prototype,"imageAsPreview",void 0);
_.O([_.q("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.R("design:type",String),_.R("design:paramtypes",[])],hJ.prototype,"altLabelForImage",null);_.O([_.q("imageHeight","imageWidth"),_.R("design:type",Number),_.R("design:paramtypes",[])],hJ.prototype,"pickerSize",null);_.O([_.q("imageHeight","imageWidth"),_.R("design:type",Object),_.R("design:paramtypes",[])],hJ.prototype,"imageOrientationStyle",null);
_.O([_.q("instruction.previewInstruction.editButtonLabel"),_.R("design:type",Object),_.R("design:paramtypes",[])],hJ.prototype,"editButton",null);_.O([_.q("instruction.editInstruction.saveButtonLabel"),_.R("design:type",Object),_.R("design:paramtypes",[])],hJ.prototype,"saveButton",null);_.O([_.q("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.R("design:type",Number),_.R("design:paramtypes",[])],hJ.prototype,"cropOffsetTop",null);
_.O([_.q("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.R("design:type",Number),_.R("design:paramtypes",[])],hJ.prototype,"cropOffsetLeft",null);_.O([_.q("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.R("design:type",String),_.R("design:paramtypes",[])],hJ.prototype,"pickerBackgroundStyle",null);_.O([_.q("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.R("design:type",String),_.R("design:paramtypes",[])],hJ.prototype,"pickerDisplayStyle",null);
_.O([_.q("cropOffsetLeft","cropOffsetTop"),_.R("design:type",String),_.R("design:paramtypes",[])],hJ.prototype,"imageInPickerStyle",null);_.O([_.q("cropOffsetLeft","cropOffsetTop","pickerSize","previewSize"),_.R("design:type",String),_.R("design:paramtypes",[])],hJ.prototype,"previewClipperStyle",null);_.O([_.NE("imageData"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],hJ.prototype,"onImageDataChange",null);
_.O([_.q("cropCoordinatesSaved"),_.R("design:type",String),_.R("design:paramtypes",[])],hJ.prototype,"pickerModeStyle",null);_.O([_.q("instruction.editInstruction.learnMore"),_.R("design:type",Object),_.R("design:paramtypes",[])],hJ.prototype,"learnMore",null);_.O([_.q("learnMore"),_.R("design:type",Object),_.R("design:paramtypes",[])],hJ.prototype,"learnMoreUrl",null);hJ=_.O([_.uM({is:"yt-img-crop-picker",disableElementRegistration:!0})],hJ);
_.v(hJ,"yt-img-crop-picker",function(){if(Bj6===void 0){var J=document.createElement("template");_.z(J,'\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>');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);var c=J.content,m=c.insertBefore;ynL===void 0&&(ynL=document.createElement("template"));var b=ynL;m.call(c,b.content.cloneNode(!0),J.content.firstChild);Bj6=J}J=Bj6;return J},{mode:2});var OM=function(){var J=_.h.apply(this,arguments)||this;J.errorMessage="";J.hasPreview=!1;J.isBackstagePost=!1;J.dismissButtonOverrides={size:"XS"};return J};
_.D(OM,_.h);_.V=OM.prototype;_.V.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"}}}};
_.V.detached=function(){this.removeOverlay()};
_.V.setPreview=function(J){_.Bj(this.hostElement).querySelector("#preview-picker").imageData=J;this.hasPreview=!0;_.cA(this.hostElement,"yt-backstage-image-select-preview")};
_.V.cancel=function(){this.errorMessage="";this.overlay&&this.overlay.cancel();this.hasPreview=!1;var J=_.Bj(this.hostElement).querySelector("#dropzone");J.classList.remove("dragover");J.classList.remove("error");_.cA(this.hostElement,"yt-backstage-image-select-cancel")};
_.V.setupOverlay=function(){var J=this.imageUploadEndpoint;this.removeOverlay();if(J&&J.imageValidationInfo){var c=_.Bj(this.hostElement).querySelector("#dropzone"),m=_.Bj(this.hostElement).querySelector("#select");this.overlay=new EP(J.uploadUrl,J.channelId,J.imageValidationInfo.maxFileSizeMb,J.imageValidationInfo.allowedMaxAspectRatio,c,m,!0);_.wp(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,!1,this);_.wp(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",
this.onImageError,!1,this);_.wp(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this);_.wp(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this);_.wp(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this)}};
_.V.removeOverlay=function(){this.overlay&&(_.Is(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this),_.Is(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this),_.Is(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",this.onImageError,!1,this),_.Is(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this),_.Is(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,
!1,this),this.overlay.dispose(),this.overlay=void 0)};
_.V.onDragOver=function(J){var c=_.Bj(this.hostElement).querySelector("#dropzone");_.mq(c,"dragover",J.value)};
_.V.onPreview=function(J){this.setPreview(J.value)};
_.V.onImageError=function(J){if(J.type==="yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"){var c;J=(c=this.data)==null?void 0:c.fileSizeError}else if(J.type==="yt.comments.ImageUploadOverlay.INVALID_EVENT"){var m;J=(m=this.data)==null?void 0:m.invalidError}else if(J.type==="yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT"){var b;J=(b=this.data)==null?void 0:b.invalidAspectRatioError}else return;this.errorMessage=_.OG(J);_.Bj(this.hostElement).querySelector("#dropzone").classList.add("error")};
_.V.onImageAlert=function(J){this.onImageError(J)};
_.V.uploadPromise=function(){var J=this,c=this.overlay&&this.overlay.uploadPromise();if(c)return c.catch(function(){throw Error(J.data?_.OG(J.data.uploadFailureError):"");})};
_.eE.Object.defineProperties(OM.prototype,{selectionCancel:{configurable:!0,enumerable:!0,get:function(){var J;return(J=this.data)==null?void 0:J.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var J;return(J=this.data)==null?void 0:J.cancelButton}},
icon:{configurable:!0,enumerable:!0,get:function(){var J,c;if((J=this.data)==null?0:(c=J.icon)==null?0:c.iconType)return _.Pd(this.data.icon.iconType)}}});
OM.prototype.setupOverlay=OM.prototype.setupOverlay;_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],OM.prototype,"rendererStamperBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],OM.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],OM.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],OM.prototype,"imageUploadEndpoint",void 0);_.O([_.U(),_.R("design:type",Object)],OM.prototype,"errorMessage",void 0);
_.O([_.U(),_.R("design:type",EP)],OM.prototype,"overlay",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],OM.prototype,"hasPreview",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],OM.prototype,"isBackstagePost",void 0);_.O([_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],OM.prototype,"selectionCancel",null);_.O([_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],OM.prototype,"previewCancel",null);
_.O([_.q("data.icon.iconType"),_.R("design:type",Object),_.R("design:paramtypes",[])],OM.prototype,"icon",null);_.O([_.U(),_.R("design:type",Object)],OM.prototype,"dismissButtonOverrides",void 0);_.O([_.NE("imageUploadEndpoint"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],OM.prototype,"setupOverlay",null);OM=_.O([_.E({is:"ytd-backstage-image-select-renderer",disableElementRegistration:!0})],OM);
_.v(OM,"ytd-backstage-image-select-renderer",function(){if(F1a!==void 0)return F1a;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return F1a=J},{mode:1});var ge$;var Jra;var AJ=function(){var J=_.h.apply(this,arguments)||this;J.selected=!1;return J};
_.D(AJ,_.h);_.V=AJ.prototype;_.V.computeSelected=function(J){return J==null?void 0:J.selected};
_.V.computeTransform=function(J,c,m){var b,x,P=(x=(b=this.imageContainer)==null?void 0:b.getBoundingClientRect())!=null?x:{width:0,height:0};b=Math.max(P.width/c,P.height/m);m=m*b*J.top;return"translateX("+this.getSignedPosition(c*b*J.left,"X","-")+") translateY("+this.getSignedPosition(m,"Y","-")+")"};
_.V.getSignedPosition=function(J,c,m){return c==="X"&&_.Ub("HTML_DIR")==="rtl"?m==="-"?J+"px":J*-1+"px":m==="-"?J*-1+"px":J+"px"};
_.V.onClick=function(){var J;_.cA(this.hostElement,"ytb-backstage-multi-image-thumbnail-render-click",(J=this.data)==null?void 0:J.image)};
_.V.onKeyPress=function(J){if(J.keyCode===13)this.onClick()};
_.eE.Object.defineProperties(AJ.prototype,{thumbnailUrl:{configurable:!0,enumerable:!0,get:function(){var J,c;return((J=this.data)==null?void 0:(c=J.image)==null?void 0:c.localImageSrc)||void 0}},
thumbnailStyle:{configurable:!0,enumerable:!0,get:function(){var J;if((J=this.data)!=null&&J.image){var c;J=(c=this.data)==null?void 0:c.image;return J.previewCoordinates.top!==0||J.previewCoordinates.left!==0?(c=this.computeTransform(J.previewCoordinates,J.naturalWidth,J.naturalHeight),J.naturalHeight>=J.naturalWidth?"width:inherit;transform:"+c+";":"height:inherit;transform:"+c+";"):J.naturalHeight>=J.naturalWidth?"width:inherit;":"height:inherit;"}}}});
AJ.prototype.onKeyPress=AJ.prototype.onKeyPress;_.O([_.Iu(".image-container"),_.R("design:type",HTMLElement)],AJ.prototype,"imageContainer",void 0);_.O([_.U(),_.R("design:type",Object)],AJ.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeSelected(data)"}),_.R("design:type",Object)],AJ.prototype,"selected",void 0);_.O([_.q("data.image"),_.R("design:type",Object),_.R("design:paramtypes",[])],AJ.prototype,"thumbnailUrl",null);
_.O([_.q("data.image","data.image.previewCoordinates"),_.R("design:type",Object),_.R("design:paramtypes",[])],AJ.prototype,"thumbnailStyle",null);_.O([_.ps("keypress"),_.R("design:type",Function),_.R("design:paramtypes",[Event]),_.R("design:returntype")],AJ.prototype,"onKeyPress",null);AJ=_.O([_.E({is:"ytd-backstage-multi-image-thumbnail-renderer",disableElementRegistration:!0})],AJ);
_.v(AJ,"ytd-backstage-multi-image-thumbnail-renderer",function(){if(Jra!==void 0)return Jra;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return Jra=J},{mode:2});var RW=function(J,c,m){m=m===void 0?!1:m;_.KI.call(this);var b=this;this.dropZoneOverlay=new br(J);this.selectOverlay=m?new xW(c,"multiple_file",["image/*"]):new xW(c,"single_file",["image/*"]);this.handler=new _.J0(this);_.Kc(this,this.handler);this.handler.listen(this.dropZoneOverlay,"f",this.onChange).listen(c,"click",function(){b.selectOverlay.click()}).listen(this.selectOverlay,"j",this.onChange)};
_.D(RW,_.KI);RW.prototype.onChange=function(J){var c;(c=J.files)!=null&&c.length&&this.dispatchEvent(new CustomEvent("yt.comments.ImagePicker.select",{detail:J.files}))};var oW=function(){var J=_.h.apply(this,arguments)||this;J.addImageErrorMessage="";J.errorMessage="";J.images=[];J.selectedImageIndex=0;J.modern=_.w("web_modern_buttons");J.maxNumImagesPerPost=_.c7("max_num_images_per_post_web_ui");J.JSC$13559_imageId=0;return J};
_.D(oW,_.h);_.V=oW.prototype;_.V.observeAddImageError=function(){this.addImageErrorMessage!==""&&_.cA(this.hostElement,"yt-backstage-add-image-error",this.addImageErrorMessage)};
_.V.observeDragToReorder=function(){var J=this;if(this.showImagesPreview){var c,m=LB6(_.oQ.getInstance(),(c=this.data)==null?void 0:c.dragToReorderTooltip);_.ft.addLowPriorityJob(function(){_.PA(J.hostElement,m,J.thumbnailDragDropArea)})}};
_.V.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}}};
_.V.computeThumbnail=function(J){return(J==null?void 0:J.localImageSrc)||void 0};
_.V.onRendererstamperFinished=function(){_.baj(this.ytReorderableBehavior,_.Bj(this.hostElement).querySelector("#thumbnail-drag-drop-area"),_.Bj(this.hostElement).querySelector("#thumbnail-drag-drop-area"))};
_.V.handleDrop=function(J){var c=J.currDragItem;if(c!=null&&c.data){J=this.images[this.selectedImageIndex];var m=c.data.image,b=this.images.indexOf(m)||0;c=_.vr(c.parentNode.children,c);this.images.splice(b,1);this.images.splice(c,0,m);this.images=[].concat(_.L6(this.images));this.selectedImageIndex=this.images.indexOf(J)}};
_.V.setUpImagePicker=function(){var J=this.imageUploadEndpoint;J&&J.imageValidationInfo&&(this.uploadManager=new qo(J.uploadUrl,J.channelId),this.initialPicker||(this.initialPicker=new RW(this.dropzone,this.selectLink,!0),_.wp(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this)),this.addImagePicker||(this.addImagePicker=new RW(this.addImageButtonContainer,this.addImageSelectButton),_.wp(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this)),
_.wp(this.JSC$13559_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.repositionImage,!1,this),_.wp(this.JSC$13559_imagePreviewContainer,"ytd-backstage-image-preview-delete",this.deleteImage,!1,this),_.wp(_.Bj(this.hostElement).querySelector("#thumbnail-drag-drop-area"),"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this))};
_.V.detached=function(){this.initialPicker&&(_.Is(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this),this.initialPicker.dispose(),this.initialPicker=void 0);this.addImagePicker&&(_.Is(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this),this.addImagePicker.dispose(),this.addImagePicker=void 0)};
_.V.onInitialSelectImages=function(J){var c=this;return _.N(function(m){return _.K(m,c.onSelectImages(J,!1),0)})};
_.V.onAddImage=function(J){var c=this;return _.N(function(m){return _.K(m,c.onSelectImages(J,!0),0)})};
_.V.onSelectImages=function(J,c){var m=this,b,x,P,p,t,I,a,k,H,T,r,W,Y,Z,d,G,e,A,l,y;return _.N(function(pG){switch(pG.nextAddress){case 1:c?m.addImageErrorMessage="":(m.images=[],m.errorMessage="");b=J.detail;x=m.validateImages([].concat(_.L6(b)));if(x!=="")return c?m.addImageErrorMessage=x:m.errorMessage=x,pG.return();P=[].concat(_.L6(b)).map(function(kt){return(new $W(m.maxAspectRatio,!1,!0)).transform(kt)});
return _.K(pG,Promise.allSettled(P),2);case 2:p=pG.yieldResult,t=_.M(p.entries()),I=t.next();case 3:if(I.done){pG.jumpTo(5);break}a=I.value;k=_.M(a);H=k.next().value;T=k.next().value;r=H;W=T;if(W.status!=="fulfilled"){d=Z=Y=void 0;c?m.addImageErrorMessage=_.OG((Y=m.data)==null?void 0:Y.invalidError):m.errorMessage=m.errorMessage===""?_.OG((Z=m.data)==null?void 0:Z.invalidError):_.OG((d=m.data)==null?void 0:d.multiFileError);pG.jumpTo(4);break}G=W.value;G.cropped&&_.cA(m.hostElement,"yt-backstage-multi-image-cropped");
if(G.invalidAspectRatio){l=A=e=void 0;c?m.addImageErrorMessage=_.OG((e=m.data)==null?void 0:e.invalidAspectRatioError):m.errorMessage=m.errorMessage===""?_.OG((A=m.data)==null?void 0:A.invalidAspectRatioError):_.OG((l=m.data)==null?void 0:l.multiFileError);pG.jumpTo(4);break}return _.K(pG,D52(m.JSC$13559_imageId,J.detail[r],G.transformedData),8);case 8:y=pG.yieldResult,m.images.push(y),m.JSC$13559_imageId++;case 4:I=t.next();pG.jumpTo(3);break;case 5:if(m.errorMessage!==""||m.addImageErrorMessage!==
"")return pG.return();c?veu(m.uploadManager,[m.images[m.images.length-1]]):veu(m.uploadManager,m.images);m.images=[].concat(_.L6(m.images));m.selectedImageIndex=c?Math.max(m.images.length-1,0):0;_.cA(m.hostElement,"yt-backstage-multi-image-select");_.tD(pG)}})};
_.V.onThumbnailClick=function(J){if(J=J.event_.detail)this.selectedImageIndex=this.images.indexOf(J)};
_.V.validateImages=function(J){if(J.length>this.maxNumImagesPerPost){var c;return _.OG((c=this.data)==null?void 0:c.multiImageExceedMaxImageCountError)}var m=1048576*this.maxFileSizeMb;J=J.filter(function(P){return P.size>m}).length;
if(J===0)return"";var b,x;J=J>1?(b=this.data)==null?void 0:b.multiFileError:(x=this.data)==null?void 0:x.fileSizeError;return _.OG(J)};
_.V.deleteImage=function(){this.uploadManager.cancel(this.images[this.selectedImageIndex].id);this.images.splice(this.selectedImageIndex,1);this.images=[].concat(_.L6(this.images));this.selectedImageIndex=0};
_.V.repositionImage=function(J){this.images[this.selectedImageIndex].previewCoordinates=J.event_.detail;this.images=[].concat(_.L6(this.images))};
_.V.getAllUploadStatuses=function(){var J=this,c,m,b,x;return _.N(function(P){if(P.nextAddress==1)return _.K(P,J.uploadManager.getAllUploadStatuses(),2);c=P.yieldResult;m=_.M(c);for(b=m.next();!b.done;b=m.next())if(x=b.value,x.encryptedBlobId===void 0)return P.return(Oeu(J.uploadManager));return P.return(c)})};
_.V.hasImages=function(){return this.images.length>0};
_.V.cancel=function(){for(var J=this.uploadManager,c=_.M(J.imagesUploadData),m=c.next();!m.done;m=c.next())J.cancel(m.value.image.id);this.addImageErrorMessage=this.errorMessage="";this.images=[];_.cA(this.hostElement,"yt-backstage-multi-image-cancel")};
_.eE.Object.defineProperties(oW.prototype,{maxAspectRatio:{configurable:!0,enumerable:!0,get:function(){var J,c;return((J=this.imageUploadEndpoint)==null?void 0:(c=J.imageValidationInfo)==null?void 0:c.allowedMaxAspectRatio)||0}},
maxFileSizeMb:{configurable:!0,enumerable:!0,get:function(){var J,c;return((J=this.imageUploadEndpoint)==null?void 0:(c=J.imageValidationInfo)==null?void 0:c.maxFileSizeMb)||0}},
dropIcon:{configurable:!0,enumerable:!0,get:function(){var J,c;if((J=this.data)==null?0:(c=J.icon)==null?0:c.iconType)return _.Pd(this.data.icon.iconType)}},
selectionCancel:{configurable:!0,enumerable:!0,get:function(){var J;return(J=this.data)==null?void 0:J.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var J;return(J=this.data)==null?void 0:J.cancelButton}},
dataForAddImageButton:{configurable:!0,enumerable:!0,get:function(){var J;return(J=this.data)==null?void 0:J.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 J=this;return(this.images||[]).map(function(c,m){return{renderer:{image:c,selected:m===J.selectedImageIndex}}})}}});
oW.prototype.setUpImagePicker=oW.prototype.setUpImagePicker;oW.prototype.onRendererstamperFinished=oW.prototype.onRendererstamperFinished;oW.prototype.observeDragToReorder=oW.prototype.observeDragToReorder;oW.prototype.observeAddImageError=oW.prototype.observeAddImageError;_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],oW.prototype,"rendererStamperBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],oW.prototype,"ytRendererBehavior",void 0);
_.O([_.f(_.xv6),_.R("design:type",Object)],oW.prototype,"ytReorderableBehavior",void 0);_.O([_.Iu("#dropzone"),_.R("design:type",HTMLElement)],oW.prototype,"dropzone",void 0);_.O([_.Iu("#select-link"),_.R("design:type",HTMLElement)],oW.prototype,"selectLink",void 0);_.O([_.Iu("#thumbnail-drag-drop-area"),_.R("design:type",HTMLElement)],oW.prototype,"thumbnailDragDropArea",void 0);_.O([_.Iu("#add-image-button-container"),_.R("design:type",HTMLElement)],oW.prototype,"addImageButtonContainer",void 0);
_.O([_.Iu("#add-image-button"),_.R("design:type",HTMLElement)],oW.prototype,"addImageSelectButton",void 0);_.O([_.Iu("#image-preview-container"),_.R("design:type",Object)],oW.prototype,"JSC$13559_imagePreviewContainer",void 0);_.O([_.U(),_.R("design:type",Object)],oW.prototype,"addImageErrorMessage",void 0);_.O([_.U(),_.R("design:type",Object)],oW.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],oW.prototype,"errorMessage",void 0);
_.O([_.U(),_.R("design:type",Object)],oW.prototype,"imageUploadEndpoint",void 0);_.O([_.U(),_.R("design:type",Array)],oW.prototype,"images",void 0);_.O([_.U(),_.R("design:type",RW)],oW.prototype,"initialPicker",void 0);_.O([_.U(),_.R("design:type",RW)],oW.prototype,"addImagePicker",void 0);_.O([_.U(),_.R("design:type",qo)],oW.prototype,"uploadManager",void 0);_.O([_.U(),_.R("design:type",Object)],oW.prototype,"selectedImageIndex",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],oW.prototype,"modern",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],oW.prototype,"maxNumImagesPerPost",void 0);_.O([_.q("imageUploadEndpoint"),_.R("design:type",Number),_.R("design:paramtypes",[])],oW.prototype,"maxAspectRatio",null);_.O([_.q("imageUploadEndpoint"),_.R("design:type",Number),_.R("design:paramtypes",[])],oW.prototype,"maxFileSizeMb",null);
_.O([_.q("data.icon.iconType"),_.R("design:type",Object),_.R("design:paramtypes",[])],oW.prototype,"dropIcon",null);_.O([_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],oW.prototype,"selectionCancel",null);_.O([_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],oW.prototype,"previewCancel",null);_.O([_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],oW.prototype,"dataForAddImageButton",null);
_.O([_.q("errorMessage"),_.R("design:type",String),_.R("design:paramtypes",[])],oW.prototype,"dropzoneClass",null);_.O([_.q("images"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],oW.prototype,"showImagesPreview",null);_.O([_.q("images"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],oW.prototype,"containMaxImages",null);_.O([_.NE("addImageErrorMessage"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],oW.prototype,"observeAddImageError",null);
_.O([_.NE("showImagesPreview"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],oW.prototype,"observeDragToReorder",null);_.O([_.q("images","selectedImageIndex"),_.R("design:type",Object),_.R("design:paramtypes",[])],oW.prototype,"selectedImageData",null);_.O([_.q("images","selectedImageIndex"),_.R("design:type",Array),_.R("design:paramtypes",[])],oW.prototype,"thumbnailRenderers",null);
_.O([_.ps("yt-rendererstamper-finished"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],oW.prototype,"onRendererstamperFinished",null);_.O([_.NE("imageUploadEndpoint"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],oW.prototype,"setUpImagePicker",null);oW=_.O([_.E({is:"ytd-backstage-multi-image-select-renderer",disableElementRegistration:!0})],oW);
_.v(oW,"ytd-backstage-multi-image-select-renderer",function(){if(ge$!==void 0)return ge$;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return ge$=J},{mode:1});var cr$;var mVj;var bp_;var Q0=function(){var J=_.h.apply(this,arguments)||this;J.boundCaptureFocus=function(c){J.onCaptureFocus(c)};
return J};
_.D(Q0,_.h);_.V=Q0.prototype;_.V.attached=function(){document.addEventListener("focus",this.boundCaptureFocus,!0)};
_.V.detached=function(){document.removeEventListener("focus",this.boundCaptureFocus)};
_.V.onCaptureFocus=function(J){_.OT(J).indexOf(this.hostElement)!==-1&&this.item.focus()};
_.V.getIconType=function(J){return J?"yt-icons:"+J.toLowerCase():null};
_.V.onSelect=function(){var J;if((J=this.data)==null?0:J.onSelectCommand)if(_.w("refresh_upon_dismiss_channel_creation_from_playlists"))this.ytComponentBehavior.resolveCommand(this.data.onSelectCommand);else{var c;((c=_.L(this.data.onSelectCommand.commandMetadata,_.lk))==null?0:c.url)?_.cA(this.hostElement,"yt-navigate",{endpoint:this.data.onSelectCommand}):_.BG().resolve(_.gu).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})}};
_.eE.Object.defineProperties(Q0.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data?_.OG(this.data.label):""}},
value:{configurable:!0,enumerable:!0,get:function(){return this.data?typeof this.data.stringValue==="string"?this.data.stringValue:typeof this.data.int32Value==="number"?this.data.int32Value:null:null}}});
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Q0.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],Q0.prototype,"ytComponentBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Q0.prototype,"data",void 0);_.O([_.Iu("#item"),_.R("design:type",HTMLElement)],Q0.prototype,"item",void 0);_.O([_.q("data.label"),_.R("design:type",String),_.R("design:paramtypes",[])],Q0.prototype,"label",null);
_.O([_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],Q0.prototype,"value",null);Q0=_.O([_.E({is:"ytd-privacy-dropdown-item-renderer",disableElementRegistration:!0})],Q0);
_.v(Q0,"ytd-privacy-dropdown-item-renderer",function(){if(bp_!==void 0)return bp_;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return bp_=J},{mode:1});var eu=function(){var J=_.h.apply(this,arguments)||this;J.value="";J.label="";J.disabled=!1;return J};
_.D(eu,_.h);_.V=eu.prototype;_.V.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"}}}};
_.V.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getInitiallySelectedItem());this.setInitialLabel()};
_.V.dataChanged=function(){this.reset()};
_.V.valueChanged=function(){var J;if(this.value&&(J=this.data)!=null&&J.entries){J=_.M(this.data.entries);for(var c=J.next();!c.done;c=J.next())if((c=this.getRendererForEntry(c.value))&&this.getItemRendererValue(c)===this.value){this.label=this.ytComponentBehavior.getSimpleString(c.label);break}}};
_.V.setInitialLabel=function(){if(this.data&&this.data.entries)for(var J=_.M(this.data.entries),c=J.next();!c.done;c=J.next())if(c=this.getRendererForEntry(c.value)){if(c.isSelected){this.label=this.ytComponentBehavior.getSimpleString(c.label);break}this.data.label&&(this.label=this.data.label)}};
_.V.getInitiallySelectedItem=function(){if(!this.data||!this.data.entries)return-1;for(var J=_.M(this.data.entries),c=J.next();!c.done;c=J.next()){c=this.getRendererForEntry(c.value);var m=void 0;if((m=c)==null?0:m.isSelected)return this.getItemRendererValue(c)||-1}return-1};
_.V.getItemRendererValue=function(J){return"stringValue"in J||"int32Value"in J?J.stringValue||J.int32Value||null:null};
_.V.getRendererForEntry=function(J){return J.dropdownItemRenderer||J.privacyDropdownItemRenderer||J.navigationDropdownItemRenderer||null};
_.V.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.SJ("value-changed",this.value))};
_.V.updateValueFromBinding=function(J){this.value=J.detail.value};
eu.prototype.valueChangedForBinding=eu.prototype.valueChangedForBinding;eu.prototype.valueChanged=eu.prototype.valueChanged;eu.prototype.dataChanged=eu.prototype.dataChanged;_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],eu.prototype,"ytComponentBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],eu.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],eu.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.U(),_.R("design:type",Object)],eu.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],eu.prototype,"value",void 0);_.O([_.U(),_.R("design:type",Object)],eu.prototype,"label",void 0);_.O([_.Iu("#entries"),_.R("design:type",Object)],eu.prototype,"entries",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],eu.prototype,"disabled",void 0);_.O([_.kr("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],eu.prototype,"dataChanged",null);
_.O([_.kr("value"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],eu.prototype,"valueChanged",null);_.O([_.NE("value"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],eu.prototype,"valueChangedForBinding",null);eu=_.O([_.E({disableElementRegistration:!0,is:"ytd-flat-dropdown-renderer"})],eu);
_.v(eu,"ytd-flat-dropdown-renderer",function(){if(mVj!==void 0)return mVj;var J=document.createElement("template");_.z(J,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flat-dropdown-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-menu-button disabled="[[disabled]]" dynamic-align="" horizontal-align="left" class="style-scope ytd-flat-dropdown-renderer">\n  <tp-yt-paper-button id="label" class="dropdown-trigger style-scope ytd-flat-dropdown-renderer" slot="dropdown-trigger" aria-label$="[[label]]">\n    <div id="label-text" class="style-scope ytd-flat-dropdown-renderer">[[label]]</div>\n    <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-flat-dropdown-renderer">\n    </yt-icon>\n  </tp-yt-paper-button>\n  <tp-yt-paper-listbox id="entries" class="dropdown-content style-scope ytd-flat-dropdown-renderer" slot="dropdown-content" attr-for-selected="value" selected="[[value]]" on-selected-changed="updateValueFromBinding">\n  </tp-yt-paper-listbox>\n</tp-yt-paper-menu-button>\n');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return mVj=J},{mode:1});var xV8;var ju=function(){var J=_.h.apply(this,arguments)||this;J.quizOptions=[];J.explanationPlaceholderText="";J.optionPlaceholderText="";J.correctAnswerIndex=-1;J.isMarkAnswerTooltipShown=!1;J.timer=0;return J};
_.D(ju,_.h);_.V=ju.prototype;_.V.dataChanged=function(){this.optionPlaceholderText=_.OG(this.editorInfo.optionPlaceholderText);this.explanationPlaceholderText=_.OG(this.editorInfo.explanationPlaceholderText);this.quizOptions.length===0&&(this.quizOptions=this.createQuizOptions(this.editorInfo))};
_.V.onMarkCorrectAnswer=function(J){var c,m=((c=this.quizOptions[this.correctAnswerIndex])==null?void 0:c.explanationText)||"";this.correctAnswerIndex>=0&&(this.quizOptions[this.correctAnswerIndex]=Object.assign({},this.quizOptions[this.correctAnswerIndex],{isCorrect:!1,explanationText:""}));this.quizOptions[J.model.index]=Object.assign({},this.quizOptions[J.model.index],{explanationText:m,isCorrect:!0});this.correctAnswerIndex=J.model.index;this.quizOptions=[].concat(_.L6(this.quizOptions))};
_.V.updatePlaceholderTexts=function(){for(var J=!1,c=[],m=0;m<this.quizOptions.length;m++){var b=this.optionPlaceholderText+" "+(m+1),x=void 0;((x=this.quizOptions[m])==null?void 0:x.placeholderText)!==b?(J=!0,c.push(Object.assign({},this.quizOptions[m],{placeholderText:b}))):c.push(this.quizOptions[m])}J&&(this.quizOptions=c);this.isValid()?_.cA(this.hostElement,"yt-commentbox-post-enable"):_.cA(this.hostElement,"yt-commentbox-post-disable")};
_.V.getSimpleString=function(J){return _.OG(J)};
_.V.createQuizOptions=function(J){var c=[],m;J=(m=J==null?void 0:J.minQuizOptions)!=null?m:0;for(m=0;m<J;m++)c.push(this.createQuizOption());return c};
_.V.onAddQuizOption=function(){this.isAllowedToAddOption&&(this.quizOptions=[].concat(_.L6(this.quizOptions),[this.createQuizOption()]))};
_.V.onInput=function(){this.quizOptions=[].concat(_.L6(this.quizOptions))};
_.V.onExplanationInput=function(){_.cA(this.hostElement,"yt-quiz-attachment-explanation-update")};
_.V.onRemoveQuizOption=function(J){this.quizOptions.splice(J.model.index,1);J.model.index<this.correctAnswerIndex?--this.correctAnswerIndex:J.model.index===this.correctAnswerIndex&&(this.correctAnswerIndex=-1);this.quizOptions=[].concat(_.L6(this.quizOptions));this.quizOptions.length===0&&_.cA(this.hostElement,"yt-quiz-attachment-dismiss")};
_.V.updateHintRenderer=function(){var J=this;clearTimeout(this.timer);this.timer=setTimeout(function(){J.maybeDisplayMarkAnswerEduToolTip()},4E3)};
_.V.isValid=function(){if(!this.editorInfo||this.quizOptions.length<Number(this.editorInfo.minQuizOptions)||this.quizOptions.length>Number(this.editorInfo.maxQuizOptions))return!1;for(var J=0,c=0,m=_.M(this.quizOptions),b=m.next();!b.done;b=m.next()){b=b.value;var x=void 0;if(((x=b.optionText)==null?void 0:x.trim())!==""||b.isCorrect){b.isCorrect&&c++;x=void 0;if(this.hasCustomOptionText&&((x=b.optionText)==null?void 0:x.trim().length)<Number(this.editorInfo.minQuizOptionChars))return!1;J++}}return J>=
Number(this.editorInfo.minQuizOptions)&&c===1};
_.V.getPostCreateOptions=function(){for(var J=[],c=_.M(this.quizOptions),m=c.next();!m.done;m=c.next()){m=m.value;var b=void 0;((b=m.optionText)==null?void 0:b.trim())!==""&&J.push({pollOption:{text:m.optionText,explanation:m.explanationText},isCorrect:m.isCorrect})}return J};
_.V.getExplanationText=function(){var J;return((J=this.quizOptions[this.correctAnswerIndex])==null?void 0:J.explanationText)||""};
_.V.maybeDisplayMarkAnswerEduToolTip=function(){var J,c,m,b,x,P,p;this.shouldShowMarkAnswerTooltip()&&((J=this.editorInfo)==null?0:(c=J.markAnswerButton)==null?0:(m=c.buttonRenderer)==null?0:(b=m.hint)==null?0:(x=b.hintRenderer)==null?0:(P=x.content)==null?0:(p=P.bubbleHintRenderer)==null?0:p.text)&&(_.oQ.getInstance(),J=Qt(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,(J==null?void 0:J.length)>0&&this.optionSelectors&&_.Nl(J[0],this.optionSelectors[0]))};
_.V.shouldShowMarkAnswerTooltip=function(){if(this.isMarkAnswerTooltipShown||this.quizOptions.length<=1)return!1;for(var J=0,c=_.M(this.quizOptions),m=c.next();!m.done;m=c.next()){m=m.value;var b=void 0;((b=m.optionText)==null?void 0:b.trim())!==""&&J++;if(m.isCorrect)return!1}return J<2?!1:!0};
_.V.resetQuizOptions=function(){this.quizOptions=this.createQuizOptions(this.editorInfo);this.isMarkAnswerTooltipShown=!1};
_.V.createQuizOption=function(){return{optionText:"",placeholderText:"",explanationText:"",isCorrect:!1}};
_.V.updateOptionTextFromBinding=function(J){if(J.target){var c=Array.from(_.Bj(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.quiz-option-input-input")).indexOf(J.target);if(c>=0){var m;this.quizOptions[c].optionText=(m=J.detail.value)!=null?m:""}}};
_.eE.Object.defineProperties(ju.prototype,{addAnswerButton:{configurable:!0,enumerable:!0,get:function(){var J,c,m=(J=this.editorInfo)==null?void 0:(c=J.addOptionButton)==null?void 0:c.buttonRenderer;m&&(m.style="STYLE_SUGGESTIVE",m.size="SIZE_SMALL",m.isDisabled=!this.isAllowedToAddOption);return(m==null?0:m.text)?m:void 0}},
isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var J,c;return this.quizOptions.length<((c=(J=this.editorInfo)==null?void 0:J.maxQuizOptions)!=null?c:0)}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.quizOptions.some(function(J){var c;return(c=J.optionText)==null?void 0:c.trim()})}}});
ju.prototype.updatePlaceholderTexts=ju.prototype.updatePlaceholderTexts;ju.prototype.dataChanged=ju.prototype.dataChanged;_.O([_.U(),_.R("design:type",Object)],ju.prototype,"editorInfo",void 0);_.O([_.U(),_.R("design:type",Array)],ju.prototype,"quizOptions",void 0);_.O([_.U(),_.R("design:type",Object)],ju.prototype,"explanationPlaceholderText",void 0);_.O([_.Ks(".option-selector-button"),_.R("design:type",Array)],ju.prototype,"optionSelectors",void 0);
_.O([_.kr("editorInfo"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],ju.prototype,"dataChanged",null);_.O([_.q("editorInfo","isAllowedToAddOption","quizOptions"),_.R("design:type",Object),_.R("design:paramtypes",[])],ju.prototype,"addAnswerButton",null);_.O([_.q("editorInfo","quizOptions"),_.R("design:type",Object),_.R("design:paramtypes",[])],ju.prototype,"isAllowedToAddOption",null);
_.O([_.kr("quizOptions"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],ju.prototype,"updatePlaceholderTexts",null);_.O([_.q("quizOptions"),_.R("design:type",Object),_.R("design:paramtypes",[])],ju.prototype,"hasCustomOptionText",null);ju=_.O([_.E({is:"ytd-backstage-quiz-editor-renderer",disableElementRegistration:!0})],ju);
_.v(ju,"ytd-backstage-quiz-editor-renderer",function(){if(xV8!==void 0)return xV8;var J=document.createElement("template");_.z(J,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-quiz-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-backstage-quiz-editor-renderer">\n  <template is="dom-repeat" items="[[quizOptions]]" index="quizAnswerIndex" class="style-scope ytd-backstage-quiz-editor-renderer">\n    <div class="quiz-option style-scope ytd-backstage-quiz-editor-renderer">\n      <div class="quiz-option-container style-scope ytd-backstage-quiz-editor-renderer">\n        <div class="quiz-thumbnail-container style-scope ytd-backstage-quiz-editor-renderer">\n          <div class="quiz-select-container style-scope ytd-backstage-quiz-editor-renderer">\n            <yt-icon-button class="option-selector-button style-scope ytd-backstage-quiz-editor-renderer" aria-checked="[[item.isCorrect]]" aria-label="[[editorInfo.markAnswerButton.buttonRenderer.accessibilityData.accessibilityData.label]]" role="radio" on-click="onMarkCorrectAnswer">\n              <yt-icon class="option-selector style-scope ytd-backstage-quiz-editor-renderer" hidden="[[item.isCorrect]]" icon="yt-icons:radio-button-unchecked">\n              </yt-icon>\n              <yt-icon class="option-selector-correct style-scope ytd-backstage-quiz-editor-renderer" hidden="[[!item.isCorrect]]" default-to-filled="true" icon="yt-icons:check-circle">\n              </yt-icon>\n            </yt-icon-button>\n          </div>\n        </div>\n        <tp-yt-paper-input-container class="quiz-option-input style-scope ytd-backstage-quiz-editor-renderer" no-label-float="">\n          <tp-yt-iron-autogrow-textarea class="quiz-option-input-input paper-input-input style-scope ytd-backstage-quiz-editor-renderer" slot="input" maxlength$="[[editorInfo.maxQuizOptionChars]]" no-label-float="" placeholder$="[[item.placeholderText]]" value="[[item.optionText]]" on-input="onInput" on-keyup="updateHintRenderer" on-value-changed="updateOptionTextFromBinding">\n          </tp-yt-iron-autogrow-textarea>\n          <tp-yt-paper-input-char-counter class="option-counter style-scope ytd-backstage-quiz-editor-renderer" slot="add-on">\n          </tp-yt-paper-input-char-counter>\n        </tp-yt-paper-input-container>\n        <yt-icon-button class="remove-button style-scope ytd-backstage-quiz-editor-renderer" aria-label="[[editorInfo.removeOptionButtonA11yText.accessibilityData.label]]" on-click="onRemoveQuizOption">\n          <yt-icon class="remove-option style-scope ytd-backstage-quiz-editor-renderer" icon="yt-icons:delete"></yt-icon>\n        </yt-icon-button>\n      </div>\n      <div class="quiz-explanation style-scope ytd-backstage-quiz-editor-renderer">\n        <tp-yt-paper-input-container class="quiz-explanation-input style-scope ytd-backstage-quiz-editor-renderer" hidden="[[!item.isCorrect]]" no-label-float="">\n          <tp-yt-iron-autogrow-textarea class="quiz-explanation-input-input paper-input-input style-scope ytd-backstage-quiz-editor-renderer" slot="input" maxlength$="[[editorInfo.maxQuizExplanationChars]]" no-label-float="" placeholder$="[[explanationPlaceholderText]]" value="{{item.explanationText}}" on-input="onExplanationInput">\n          </tp-yt-iron-autogrow-textarea>\n          <tp-yt-paper-input-char-counter class="explanation-counter style-scope ytd-backstage-quiz-editor-renderer" slot="add-on">\n          </tp-yt-paper-input-char-counter>\n        </tp-yt-paper-input-container>\n      </div>\n    </div>\n  </template>\n</div>\n<div class="button-container style-scope ytd-backstage-quiz-editor-renderer">\n  <yt-button-renderer class="add-answer style-scope ytd-backstage-quiz-editor-renderer" data="[[addAnswerButton]]" hidden="[[!isAllowedToAddOption]]" on-click="onAddQuizOption">\n  </yt-button-renderer>\n</div>\n');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return xV8=J},{mode:2});var Vw_;var PP_=(wJ.FIRSTDAYOFWEEK+1)%7;var Mw$;var pV_=[],NEL=0,tw_=0;NEL=0;tw_=24;if(.25*(tw_-NEL)<0)Mw$=[];else{for(var IUa=NEL;IUa<tw_;IUa+=.25)pV_.push(IUa);Mw$=pV_}var KD_=Mw$.map(function(J){J=J*60*60;return{secondsSinceMidnight:J,text:(new G2(7)).format(new Date(0,0,0,0,0,J))}});var CPa;var Fm=function(){var J=_.h.apply(this,arguments)||this;J.skipNextOpenDialog=!1;J.errorMessage="";return J};
_.D(Fm,_.h);_.V=Fm.prototype;_.V.attached=function(){var J=this,c=new MutationObserver(function(){J.JSC$13602_calendarMain.scrollHeight>0&&(c.disconnect(),J.calendarConfig&&J.calendarConfig.selectedDate&&J.scrollToDate())});
c.observe(this.JSC$13602_calendarMain,{childList:!0,subtree:!0});window.setTimeout(function(){c.disconnect()},1E3)};
_.V.openPicker=function(){this.skipNextOpenDialog?this.skipNextOpenDialog=!1:(this.dialog.positionTarget=this.dropdownButton,this.dialog.open())};
_.V.onDateTextChange=function(){if(this.calendarConfig){var J=this.validateDateText();J.isValid?(this.textbox.removeAttribute("invalid"),this.commitDate(J.details)):this.textbox.setAttribute("invalid","")}};
_.V.handleDayClick=function(J){J.model.day.date&&(this.commitDate(J.model.day.date),this.dialog.close())};
_.V.scrollToDate=function(){if(this.calendarConfig&&this.calendarConfig.selectedDate&&this.renderData){var J=hPJ(this.calendarConfig.selectedDate,this.renderData);J!==void 0&&this.JSC$13602_calendarMain.scrollToIndex(J)}};
_.V.scrollToNextMonth=function(){this.JSC$13602_calendarMain.scrollToIndex(this.JSC$13602_calendarMain.firstVisibleIndex+1)};
_.V.scrollToPrevMonth=function(){this.JSC$13602_calendarMain.firstVisibleIndex===0&&this.JSC$13602_calendarMain.scrollTo(0,0);this.JSC$13602_calendarMain.scrollToIndex(this.JSC$13602_calendarMain.firstVisibleIndex-1)};
_.V.onFormSubmit=function(J){J.preventDefault();this.calendarConfig&&(J=this.validateDateText(),J.isValid&&(this.commitDate(J.details),this.dialog.close()))};
_.V.onEscOrClickingOutside=function(J){J=J.detail.path&&!!J.detail.path.length&&J.detail.path[0];if(J.classList.contains("ytd-calendar-date-picker")){J===this.dropdownButton&&(this.skipNextOpenDialog=!0);for(var c=0;c<this.dropdownButton.children.length;c++)this.dropdownButton.children[c]===J&&(this.skipNextOpenDialog=!0);if(!this.skipNextOpenDialog)return}J=this.textbox.value!==this.dateText;c=this.validateDateText();J&&c.isValid&&this.commitDate(c.details);this.dialog.close();this.textbox.value=
this.dateText};
_.V.commitDate=function(J){this.calendarConfig&&(this.set("calendarConfig.selectedDate",J),_.cA(this.hostElement,"ytd-calendar-date-selected",J))};
_.V.validateDateText=function(){if(!this.calendarConfig||!this.textbox)return{isValid:!1,details:void 0};var J=this.textbox.value;var c=new Date;J=(new cre(2)).parse(J,c,{validate:!0})===J.length?U5r(c):void 0;if(!J)return this.errorMessage=_.CX("INVALID_DATE_ERROR"),{isValid:!1,details:void 0};c=this.calendarConfig.start;var m=this.calendarConfig.end;if(f8R(J,c))return this.errorMessage=_.CX("ENTER_DATE_OR_LATER",{allowed_date:qje(c)}),{isValid:!1,details:void 0};if(f8R(m,J))return this.errorMessage=
_.CX("ENTER_DATE_OR_EARLIER",{allowed_date:qje(m)}),{isValid:!1,details:void 0};this.errorMessage="";return{isValid:!0,details:J}};
_.eE.Object.defineProperties(Fm.prototype,{dateText:{configurable:!0,enumerable:!0,get:function(){return this.calendarConfig&&this.calendarConfig.selectedDate?qje(this.calendarConfig.selectedDate):""}},
renderData:{configurable:!0,enumerable:!0,get:function(){if(this.calendarConfig){for(var J=this.calendarConfig,c=[],m=0;m<7;m++)c.push(wJ.NARROWWEEKDAYS[(m+PP_)%7]);m=[];for(var b=new Date(J.start.year,J.start.month);b.getFullYear()<J.end.year||b.getFullYear()===J.end.year&&b.getMonth()<=J.end.month;){var x=m,P=x.push,p=b.getFullYear(),t=b.getMonth(),I=J,a=void 0,k=[],H=Object.freeze({extraCssClass:"invisible",debugClass:""}),T=new Date(p,t),r=U5r(T);T=T.getDay();for(var W=U5r(new Date);r.month===
t;){T!==PP_&&a||(a=Array.from({length:7}).fill(H),k.push(a));var Y={date:{year:p,month:t,day:r.day},extraCssClass:"",debugClass:""};I.selectedDate&&Y.date&&u5G(Y.date,I.selectedDate)&&(Y.extraCssClass+=" selected");if(f8R(r,I.start)||f8R(I.end,r))Y.extraCssClass+=" disabled";u5G(r,W)&&(Y.extraCssClass+=" today");Y.extraCssClass=Y.extraCssClass.trim();a[(T-PP_+7)%7]=Y;r=XoD(r);T=(T+1)%7}P.call(x,{weeks:k,monthLabel:wJ.SHORTMONTHS[t]+" "+p,year:p,month:t,monthLabelExtraCssClass:k[0][2]===H?"shift-down-label":
""});b.setMonth(b.getMonth()+1)}return{months:m,daysOfWeekLabel:c}}}}});
Fm.prototype.onEscOrClickingOutside=Fm.prototype.onEscOrClickingOutside;Fm.prototype.scrollToDate=Fm.prototype.scrollToDate;_.O([_.U(),_.R("design:type",Object)],Fm.prototype,"calendarConfig",void 0);_.O([_.U(),_.R("design:type",Object)],Fm.prototype,"skipNextOpenDialog",void 0);_.O([_.U(),_.R("design:type",Object)],Fm.prototype,"errorMessage",void 0);_.O([_.Iu("#textbox"),_.R("design:type",HTMLInputElement)],Fm.prototype,"textbox",void 0);
_.O([_.Iu("#calendar-dialog"),_.R("design:type",Object)],Fm.prototype,"dialog",void 0);_.O([_.Iu("#calendar-main"),_.R("design:type",Object)],Fm.prototype,"JSC$13602_calendarMain",void 0);_.O([_.Iu("#date-picker"),_.R("design:type",HTMLElement)],Fm.prototype,"dropdownButton",void 0);_.O([_.q("calendarConfig.selectedDate"),_.R("design:type",String),_.R("design:paramtypes",[])],Fm.prototype,"dateText",null);
_.O([_.q("calendarConfig","calendarConfig.selectedDate"),_.R("design:type",Object),_.R("design:paramtypes",[])],Fm.prototype,"renderData",null);_.O([_.NE("renderData","calendarConfig.selectedDate"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Fm.prototype,"scrollToDate",null);_.O([_.ps("iron-overlay-canceled"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],Fm.prototype,"onEscOrClickingOutside",null);
Fm=_.O([_.uM({disableElementRegistration:!0,is:"ytd-calendar-date-picker",noInjection:!0})],Fm);
_.v(Fm,"ytd-calendar-date-picker",function(){if(CPa!==void 0)return CPa;var J=document.createElement("template");_.z(J,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-calendar-date-picker--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-menu-button class="style-scope ytd-calendar-date-picker">\n  <tp-yt-paper-button id="date-picker" class="dropdown-trigger style-scope ytd-calendar-date-picker" slot="dropdown-trigger" aria-labelledby="date-label-text" on-tap="openPicker">\n    <div id="date-label-text" class="style-scope ytd-calendar-date-picker">[[dateText]]</div>\n    <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-calendar-date-picker">\n    </yt-icon>\n  </tp-yt-paper-button>\n</tp-yt-paper-menu-button>\n\n<tp-yt-paper-dialog id="calendar-dialog" dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-calendar-date-picker">\n  <div id="control-area" class="style-scope ytd-calendar-date-picker">\n    <form id="date-input" on-submit="onFormSubmit" autocomplete="off" class="style-scope ytd-calendar-date-picker">\n      <tp-yt-paper-input-container aria-label="Enter date" invalid="[[errorMessage]]" no-label-float="" use-v2-underline="" on-input="onDateTextChange" class="style-scope ytd-calendar-date-picker">\n        <tp-yt-iron-input slot="input" bind-value="[[dateText]]" class="style-scope ytd-calendar-date-picker">\n          <input id="textbox" autofocus="" class="style-scope ytd-calendar-date-picker"></tp-yt-iron-input>\n        <tp-yt-paper-input-error slot="add-on" class="style-scope ytd-calendar-date-picker">[[errorMessage]]</tp-yt-paper-input-error>\n      </tp-yt-paper-input-container>\n    </form>\n    <div id="month-controller" class="style-scope ytd-calendar-date-picker">\n      <yt-icon-button id="prev-month" on-tap="scrollToPrevMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n      <yt-icon-button id="next-month" on-tap="scrollToNextMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </div>\n  <div class="calendar-container style-scope ytd-calendar-date-picker">\n    <div class="calendar-header style-scope ytd-calendar-date-picker">\n      <template is="dom-repeat" items="[[renderData.daysOfWeekLabel]]" as="dayLabel" class="style-scope ytd-calendar-date-picker">\n        <span class="calendar-header-day style-scope ytd-calendar-date-picker">[[dayLabel]]</span>\n      </template>\n    </div>\n    <tp-yt-iron-list id="calendar-main" as="month" items="[[renderData.months]]" tabindex="-1" class="style-scope ytd-calendar-date-picker">\n      <template class="style-scope ytd-calendar-date-picker">\n        <div class="calendar-month style-scope ytd-calendar-date-picker">\n          <div class$="calendar-month-label [[month.monthLabelExtraCssClass]] style-scope ytd-calendar-date-picker">\n            [[month.monthLabel]]\n          </div>\n          <template is="dom-repeat" items="[[month.weeks]]" as="week" class="style-scope ytd-calendar-date-picker">\n            <div class="calendar-week style-scope ytd-calendar-date-picker">\n              <template is="dom-repeat" items="[[week]]" as="day" class="style-scope ytd-calendar-date-picker">\n                <span class$="calendar-day [[day.extraCssClass]] [[day.debugClass]] style-scope ytd-calendar-date-picker" on-tap="handleDayClick">\n                  [[day.date.day]]\n                </span>\n              </template> \n            </div>\n          </template> \n        </div>\n      </template>\n    </tp-yt-iron-list> \n  </div>\n</tp-yt-paper-dialog>\n');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return CPa=J},{mode:2});var aU_=_.CX("UTC_OFFSET_FORMAT",{utc_offset:(new G2("Z")).format(new Date)}),ksu=(new Date).getTimezoneOffset()*-60,Hp8=new Date,ipL,nFj=$Y(Hp8.getTimezoneOffset());ipL=ZX$(ULZ(nFj,Hp8));var TEZ=_.CX("LOCAL_TIME_GMT_LABEL",{gmt_text:ipL.replace("+0","+").replace("-0","-").replace(":00","")}),ly=function(){var J=_.h.apply(this,arguments)||this;J.selectedTimeIndex=0;J.selectedTimezoneIndex=0;J.timeOfDayOptions=KD_;return J};
_.D(ly,_.h);_.V=ly.prototype;_.V.configureRendererStamper=function(){return{"data.dismissButton":{id:"cancel-button-wrapper",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.V.updateDefaultSelectedValue=function(){if(this.timeZones&&this.timeZones.length&&this.data){var J=Zem();if(this.data.defaultTimeSec===void 0||isNaN(Number(this.data.defaultTimeSec)))this.calendarConfig=J,this.selectedTimeIndex=0;else{var c=Sj2(Number(this.data.defaultTimeSec),this.timeZones[0]);this.calendarConfig=Object.assign({},J,{selectedDate:c.date});this.selectedTimeIndex=this.timeOfDayOptions.findIndex(function(m){return m.secondsSinceMidnight===c.secondsSinceMidnight})}this.selectedTimezoneIndex=
0;
this.selectedDate=this.calendarConfig.selectedDate}};
_.V.onDatePicked=function(J){this.selectedDate=J.detail};
_.V.onCancelButtonTap=function(){this.data&&this.data.dismissButton&&_.cA(this.hostElement,"ytd-date-time-selection-cancelled")};
_.V.onDateTimeTimezoneChange=function(){if(this.selectedTimezone&&this.selectedTime&&this.selectedDate){var J=this.selectedDate;J=new Date(J.year,J.month,J.day);_.cA(this.hostElement,"ytd-date-time-selection-update",Math.floor(J.getTime()/1E3)+this.selectedTime.secondsSinceMidnight-(Number(this.selectedTimezone.utcOffsetSec)+J.getTimezoneOffset()*60))}};
_.V.getTimezoneFormat=function(J){return J.localizedDisplayText?J.localizedDisplayText:_.CX("TIMEZONE_FORMAT",{utc_offset_text:""+J.localizedUtcOffset,city_name:""+J.localizedName})};
_.V.updateSelectedTimeIndexFromBinding=function(J){this.selectedTimeIndex=J.detail.value};
_.V.updateSelectedTimezoneIndexFromBinding=function(J){this.selectedTimezoneIndex=J.detail.value};
_.eE.Object.defineProperties(ly.prototype,{timeZones:{configurable:!0,enumerable:!0,get:function(){if(this.data){var J=this.data.timezoneOptions;var c={name:"Etc/Unknown",localizedName:_.CX("LOCAL_TIME_LABEL"),localizedUtcOffset:aU_,utcOffsetSec:""+ksu,localizedDisplayText:TEZ};J?J.length&&J[0].name!==c.name&&(J[0].localizedDisplayText||(c.localizedDisplayText=""),J.unshift(c)):J=[c];return J}}},
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]}}});
ly.prototype.onDateTimeTimezoneChange=ly.prototype.onDateTimeTimezoneChange;ly.prototype.onDatePicked=ly.prototype.onDatePicked;ly.prototype.updateDefaultSelectedValue=ly.prototype.updateDefaultSelectedValue;_.O([_.U(),_.R("design:type",Object)],ly.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],ly.prototype,"calendarConfig",void 0);_.O([_.U(),_.R("design:type",Object)],ly.prototype,"selectedDate",void 0);_.O([_.U(),_.R("design:type",Object)],ly.prototype,"selectedTimeIndex",void 0);
_.O([_.U(),_.R("design:type",Object)],ly.prototype,"selectedTimezoneIndex",void 0);_.O([_.Iu("#time-listbox"),_.R("design:type",Object)],ly.prototype,"timeListBox",void 0);_.O([_.Iu("#timezone-listbox"),_.R("design:type",Object)],ly.prototype,"timezoneListBox",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],ly.prototype,"rendererStamperBehavior",void 0);_.O([_.q("data.timezoneOptions"),_.R("design:type",Object),_.R("design:paramtypes",[])],ly.prototype,"timeZones",null);
_.O([_.kr("data","timeZones"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],ly.prototype,"updateDefaultSelectedValue",null);_.O([_.q("selectedTimezoneIndex","timeZones"),_.R("design:type",Object),_.R("design:paramtypes",[])],ly.prototype,"selectedTimezone",null);_.O([_.q("selectedTimeIndex"),_.R("design:type",Object),_.R("design:paramtypes",[])],ly.prototype,"selectedTime",null);
_.O([_.ps("ytd-calendar-date-selected"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],ly.prototype,"onDatePicked",null);_.O([_.NE("selectedTimezone","selectedTime","selectedDate"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],ly.prototype,"onDateTimeTimezoneChange",null);ly=_.O([_.E({disableElementRegistration:!0,is:"ytd-date-time-picker-renderer"})],ly);
_.v(ly,"ytd-date-time-picker-renderer",function(){if(Vw_!==void 0)return Vw_;var J=document.createElement("template");_.z(J,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-date-time-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="cancel-button-wrapper" hidden="[[!data.dismissButton]]" on-tap="onCancelButtonTap" class="style-scope ytd-date-time-picker-renderer">\n</div>\n<div id="hint" hidden="[[!data.header]]" class="style-scope ytd-date-time-picker-renderer">\n  <yt-formatted-string text="[[data.header]]" class="style-scope ytd-date-time-picker-renderer"></yt-formatted-string>\n</div>\n<div id="picker-component" class="style-scope ytd-date-time-picker-renderer">\n  <ytd-calendar-date-picker calendar-config="[[calendarConfig]]" class="style-scope ytd-date-time-picker-renderer"></ytd-calendar-date-picker>\n  <tp-yt-paper-menu-button dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-date-time-picker-renderer">\n    <tp-yt-paper-button id="time-picker" class="dropdown-trigger style-scope ytd-date-time-picker-renderer" slot="dropdown-trigger" aria-labelledby="time-label-text">\n      <div id="time-label-text" class="style-scope ytd-date-time-picker-renderer">[[selectedTime.text]]</div>\n      <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-date-time-picker-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="time-listbox" class="dropdown-content style-scope ytd-date-time-picker-renderer" slot="dropdown-content" selected="[[selectedTimeIndex]]" on-selected-changed="updateSelectedTimeIndexFromBinding">\n      <template is="dom-repeat" items="[[timeOfDayOptions]]" class="style-scope ytd-date-time-picker-renderer">\n        <tp-yt-paper-item class="style-scope ytd-date-time-picker-renderer">\n          [[item.text]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n  <tp-yt-paper-menu-button dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-date-time-picker-renderer">\n    <tp-yt-paper-button id="timezone-picker" class="dropdown-trigger style-scope ytd-date-time-picker-renderer" slot="dropdown-trigger" aria-labelledby="timezone-label-text">\n      <div id="timezone-label-text" class="style-scope ytd-date-time-picker-renderer">[[getTimezoneFormat(selectedTimezone)]]</div>\n      <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-date-time-picker-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="timezone-listbox" class="dropdown-content style-scope ytd-date-time-picker-renderer" slot="dropdown-content" selected="[[selectedTimezoneIndex]]" on-selected-changed="updateSelectedTimezoneIndexFromBinding">\n      <template is="dom-repeat" items="[[timeZones]]" class="style-scope ytd-date-time-picker-renderer">\n        <tp-yt-paper-item class="style-scope ytd-date-time-picker-renderer">\n          [[getTimezoneFormat(item)]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n</div>\n');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return Vw_=J},{mode:1});var wVB;var y0=function(){var J=_.h.apply(this,arguments)||this;J.boundOnTapDismissButton=function(){J.dismissTapHandler()};
J.dismissButtonOverrides={size:"XS"};return J};
_.D(y0,_.h);y0.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}}}}}};
y0.prototype.dismissTapHandler=function(){_.cA(this.hostElement,"yt-backstage-attachment-dismissed")};
y0.prototype.computeAttachmentType=function(J){return J?J.backstageImageRenderer?"image":J.videoRenderer?"video":"none":"none"};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],y0.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],y0.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],y0.prototype,"attachmentPreview",void 0);_.O([_.U(),_.R("design:type",Object)],y0.prototype,"dismissButton",void 0);_.O([_.U(),_.R("design:type",Object)],y0.prototype,"boundOnTapDismissButton",void 0);
_.O([_.U(),_.R("design:type",Object)],y0.prototype,"dismissButtonOverrides",void 0);_.O([_.U({reflectToAttribute:!0,readOnly:!0,computed:"computeAttachmentType(attachmentPreview)"}),_.R("design:type",String)],y0.prototype,"attachmentType",void 0);y0=_.O([_.E({disableElementRegistration:!0,is:"ytd-backstage-dismissable-attachment"})],y0);
_.v(y0,"ytd-backstage-dismissable-attachment",function(){if(wVB!==void 0)return wVB;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return wVB=J},{mode:1});var rrB;var BU=function(){var J=_.h.apply(this,arguments)||this;J.selectedVideoId=void 0;J.picker=void 0;J.dismissButtonOverrides={size:"XS"};J.actionMap={"yt-add-video-preview-action":"handleAddVideoPreviewAction"};return J};
_.D(BU,_.h);_.V=BU.prototype;_.V.onServiceRequestCompleted=function(J){J.stopPropagation()};
_.V.handleAddVideoPreviewAction=function(J){J=this.get("addVideoPreviewAction",J);this.onGetVideoPreviewSuccess(J)};
_.V.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}}}}}};
_.V.onLaunchVideoPicker=function(J){var c=this,m=_.OG(this.get("addVideoLinkAction.title",J)),b=this.get("addVideoLinkAction.onePickHostId",J);this.getVideoPreviewCommand=this.get("addVideoLinkAction.onVideoSelectCommand",J);b&&(this.picker||(m=_.Xaj(_.TdJ(b).setTitle(m).addView(zeC()).addView(W5_()),function(x){c.onPickVideo(x)}),this.get("addVideoLinkAction.hideYourYoutubeVideos",J)||m.addView("youtube"),this.picker=m.build()),this.picker.setVisible(!0))};
_.V.onPickVideo=function(J){if(J)if(J.action==="cancel")_.cA(this.hostElement,"yt-video-link-button-cancel");else if(J.action==="picked"){J=J.docs;if(!J||J.length===0)this.onGetVideoPreviewError("No valid docs in response");this.selectedVideoId=(J=(J==null?0:J.length)?J[0]:void 0)?J.id:void 0;this.setVideoPreview()}};
_.V.setVideoPreview=function(){var J=this;if(this.getVideoPreviewCommand)this.ytComponentBehavior.resolveCommand(this.getVideoPreviewCommand,{form:{video_id:this.selectedVideoId},onError:function(){J.onGetVideoPreviewError("Error executing command")}});
else this.onGetVideoPreviewError("Video preview command not set.")};
_.V.onGetVideoPreviewSuccess=function(J){if(J&&J.videoPreview&&J.cancelButton)this.videoPreview=J.videoPreview,this.cancelButton=J.cancelButton,_.cA(this.hostElement,"yt-video-link-selected",{videoId:this.selectedVideoId});else this.onGetVideoPreviewError("Empty data from ajax")};
_.V.onGetVideoPreviewError=function(){this.cancel()};
_.V.cancel=function(){this.videoPreview=this.cancelButton=this.selectedVideoId=void 0;_.cA(this.hostElement,"yt-video-link-cancel")};
_.V.isValid=function(){return!(!this.videoPreview||!this.selectedVideoId)};
BU.prototype.onServiceRequestCompleted=BU.prototype.onServiceRequestCompleted;_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],BU.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],BU.prototype,"ytActionHandlerBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],BU.prototype,"ytRendererBehavior",void 0);
_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],BU.prototype,"ytComponentBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],BU.prototype,"videoPreview",void 0);_.O([_.U(),_.R("design:type",Object)],BU.prototype,"cancelButton",void 0);_.O([_.U(),_.R("design:type",Object)],BU.prototype,"getVideoPreviewCommand",void 0);_.O([_.U(),_.R("design:type",Object)],BU.prototype,"dismissButtonOverrides",void 0);
_.O([_.ps("yt-service-request-completed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],BU.prototype,"onServiceRequestCompleted",null);BU=_.O([_.E({disableElementRegistration:!0,is:"ytd-backstage-video-link-attachment"})],BU);
_.v(BU,"ytd-backstage-video-link-attachment",function(){if(rrB!==void 0)return rrB;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return rrB=J},{mode:1});var sK8;var LDB;var DVu;var gS=function(){return _.h.apply(this,arguments)||this};
_.D(gS,_.h);gS.prototype.dataChanged=function(){this.active=!1};
gS.prototype.onTap=function(){_.cA(this.hostElement,"yt-select-emoji-suggestion",this.data)};
gS.prototype.identity=function(J){return J};
_.eE.Object.defineProperties(gS.prototype,{imageSrc:{configurable:!0,enumerable:!0,get:function(){var J,c,m,b;if((J=this.data)==null?0:(c=J.image)==null?0:(m=c.thumbnails)==null?0:(b=m[0])==null?0:b.url)return J=this.data.image.thumbnails[0].url,J.startsWith("data:image/svg+xml")?K1(J):_.n1(J)}}});
gS.prototype.dataChanged=gS.prototype.dataChanged;_.O([_.U(),_.R("design:type",Object)],gS.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],gS.prototype,"active",void 0);_.O([_.kr("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],gS.prototype,"dataChanged",null);_.O([_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],gS.prototype,"imageSrc",null);
gS=_.O([_.E({disableElementRegistration:!0,is:"ytd-emoji-suggestion"})],gS);
_.v(gS,"ytd-emoji-suggestion",function(){if(DVu!==void 0)return DVu;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return DVu=J},{mode:1});var WD2=/.*([:@#].*?)$/,JX=function(){var J=_.h.apply(this,arguments)||this;J.suggestions=[];J.suggestionIndex=-1;J.JSC$13630_lastSuggestionRange=null;return J};
_.D(JX,_.h);_.V=JX.prototype;_.V.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"ytd-emoji-suggestion"},reuseComponents:!0}}};
_.V.getSuggestions=function(J){var c=[],m=NYZ(this.emojiManager,J.substr(0,3));if(m)for(var b in m)if(b.toLocaleLowerCase().indexOf(J)===0){var x=m[b];if(x&&x.emojiId){x=Yq(this.emojiManager,x.emojiId);var P=void 0,p=void 0,t=void 0,I=void 0,a=((P=x)==null?0:P.isCustomEmoji)?(p=x)==null?void 0:(t=p.shortcuts)==null?void 0:t[0]:(I=x)==null?void 0:I.emojiId;P=void 0;c.push({suggestion:{image:(P=x)==null?void 0:P.image,alt:a,text:b}});if(c.length>=64)break}}return c?c.sort(function(k,H){return H.suggestion.text<
k.suggestion.text?-1:H.suggestion.text===k.suggestion.text?0:1}):null};
_.V.insertSuggestion=function(J){_.cA(this.hostElement,"yt-insert-suggestion",{range:this.JSC$13630_lastSuggestionRange,text:J.alt});this.dropdown.opened=!1};
_.V.updateSuggestionsAtCaret=function(J){this.updateSuggestions(J,this.retrieveTextBeforeRange(J))};
_.V.offsetStartOfRangeBy=function(J,c){J.startOffset>=c&&J.setStart(J.startContainer,J.startOffset-c)};
_.V.updateSuggestions=function(J,c){var m=this;this.JSC$13630_lastSuggestionRange&&(this.JSC$13630_lastSuggestionRange.detach(),this.JSC$13630_lastSuggestionRange=null);if((c=WD2.exec(c))&&c.length&&(c=c[c.length-1].toLocaleLowerCase(),c.length>2||c===":_")&&(this.offsetStartOfRangeBy(J,c.length),this.JSC$13630_lastSuggestionRange=J,(J=this.getSuggestions(c))&&J.length)){this.suggestions=J;_.o3(this,function(){m.dropdownContent.scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(J.length-1);return}this.dropdown.opened=!1};
_.V.onKeyDown=function(J){if(this.dropdown.opened)switch(J.key){case "Escape":this.dropdown.opened=!1;J.stopPropagation();break;case "Tab":this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);J.preventDefault();break;case "ArrowUp":this.changeSuggestionIndex(this.suggestionIndex-1);J.preventDefault();break;case "ArrowDown":this.changeSuggestionIndex(this.suggestionIndex+1),J.preventDefault()}};
_.V.onKeyUp=function(J,c){switch(J.key){case "ArrowLeft":case "ArrowRight":this.updateSuggestionsAtCaret(c);break;case "ArrowUp":case "ArrowDown":this.dropdown.opened||this.updateSuggestionsAtCaret(c)}};
_.V.onKeyPress=function(J){J.key==="Enter"&&this.dropdown.opened&&(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),J.preventDefault())};
_.V.changeSuggestionIndex=function(J){this.dropdown.opened&&(this.suggestionIndex>=0&&this.suggestionIndex<this.dropdownContent.children.length&&(this.dropdownContent.children[this.suggestionIndex].active=!1),this.suggestionIndex=(J+this.suggestions.length)%this.suggestions.length,J=this.dropdownContent.children[this.suggestionIndex],J.active=!0,this.dropdownContent.scrollTop=J.offsetTop)};
_.V.retrieveTextBeforeRange=function(J){var c=J.startContainer;return c&&c.nodeType===Node.TEXT_NODE?c.textContent.substr(0,J.startOffset):""};
JX.prototype.onKeyPress=JX.prototype.onKeyPress;JX.prototype.onKeyUp=JX.prototype.onKeyUp;JX.prototype.onKeyDown=JX.prototype.onKeyDown;_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],JX.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Array)],JX.prototype,"suggestions",void 0);_.O([_.U(),_.R("design:type",_.uH)],JX.prototype,"emojiManager",void 0);_.O([_.U(),_.R("design:type",Number)],JX.prototype,"verticalSuggestionsOffset",void 0);
_.O([_.Iu("#dropdown"),_.R("design:type",Object)],JX.prototype,"dropdown",void 0);_.O([_.Iu("#dropdown-content"),_.R("design:type",HTMLDivElement)],JX.prototype,"dropdownContent",void 0);_.O([_.ps("keydown"),_.R("design:type",Function),_.R("design:paramtypes",[KeyboardEvent]),_.R("design:returntype")],JX.prototype,"onKeyDown",null);_.O([_.ps("keyup"),_.R("design:type",Function),_.R("design:paramtypes",[KeyboardEvent,Range]),_.R("design:returntype")],JX.prototype,"onKeyUp",null);
_.O([_.ps("keypress"),_.R("design:type",Function),_.R("design:paramtypes",[KeyboardEvent]),_.R("design:returntype")],JX.prototype,"onKeyPress",null);JX=_.O([_.E({disableElementRegistration:!0,is:"ytd-emoji-input"})],JX);
_.v(JX,"ytd-emoji-input",function(){if(LDB!==void 0)return LDB;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return LDB=J},{mode:2});var zRZ;var ck=function(){var J=_.h.apply(this,arguments)||this;J.hasMaxOptions=!1;return J};
_.D(ck,_.h);_.V=ck.prototype;_.V.configureRendererStamper=function(){return{"data.addOptionButton":{id:"add-option",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.V.dataChanged=function(){this.pollOptions=this.setPollOptions(this.data)};
_.V.setPrefilledChoices=function(J){var c=this;this.set("pollOptions",[]);var m;for(m=0;m<Math.min(J.length,this.data.maxPollOptions);m++)this.push("pollOptions",J[m].substring(0,this.data.maxPollOptionChars));for(;m<this.data.minPollOptions;m++)this.push("pollOptions","");this.hasMaxOptions=m>=this.data.maxPollOptions;_.o3(this,function(){for(var b=c.pollOptions,x=_.Bj(c.hostElement).querySelectorAll(".poll-option-input"),P=0;P<x.length;P++)x[P].value=b[P]})};
_.V.focusChanged=function(){_.V1(this.hostElement)};
_.V.onInput=function(){var J=this;_.hO(this,"onInput",function(){J.isValid()?_.cA(J.hostElement,"yt-commentbox-post-enable"):_.cA(J.hostElement,"yt-commentbox-post-disable")},300)};
_.V.setPollOptions=function(){var J=[],c,m=((c=this.data)==null?0:c.minPollOptions)?this.data.minPollOptions:0;for(c=0;c<m;c++)J.push("");return J};
_.V.addPollOption=function(){var J=this;_.cA(this.hostElement,"yt-commentbox-post-disable");this.push("pollOptions","");this.data.maxPollOptions&&this.pollOptions.length===this.data.maxPollOptions&&(this.hasMaxOptions=!0);_.ft.addLowPriorityJob(function(){var c;(c=_.Bj(J.hostElement).querySelector(".poll-option:last-of-type > .poll-option-input"))==null||c.focus()})};
_.V.onRemovePollOption=function(J){this.setPollOptionsFromInputs();this.data.minPollOptions&&this.pollOptions.length===this.data.minPollOptions?(this.clearPollOptions(),_.cA(this.hostElement,"yt-poll-attachment-dismiss")):(J=this.repeat.indexForElement(J.target.parentNode),J!==null&&(this.splice("pollOptions",J,1),this.hasMaxOptions=!1,this.areAllOptionsValid()&&(this.repeat.render(),_.cA(this.hostElement,"yt-commentbox-post-enable"))))};
_.V.isValid=function(){this.setPollOptionsFromInputs();return this.areAllOptionsValid()};
_.V.areAllOptionsValid=function(){if(this.data.minPollOptionChars)for(var J=0,c=this.pollOptions.length;J<c;J++)if(this.pollOptions[J].length<Number(this.data.minPollOptionChars))return!1;return!0};
_.V.getPollOptions=function(){return this.pollOptions};
_.V.setPollOptionsFromInputs=function(){for(var J=_.Bj(this.hostElement).querySelectorAll(".poll-option-input"),c=0;c<J.length;c++)this.pollOptions[c]=J[c].value.trim()};
_.V.clearPollOptions=function(){var J=_.Bj(this.hostElement).querySelectorAll(".poll-option-input");J=_.M(J);for(var c=J.next();!c.done;c=J.next())c.value.value="";this.pollOptions=this.setPollOptions(this.data);this.hasMaxOptions=!1};
_.V.getSimpleString=function(J){return _.OG(J)};
_.V.updateValueFromBinding=function(J){if(J.target&&this.pollOptions){var c=Array.from(_.Bj(this.hostElement).querySelectorAll("tp-yt-paper-input.poll-option-input")).indexOf(J.target);if(c>=0){var m;this.pollOptions[c]=(m=J.detail.value)!=null?m:"";this.notifyPath("pollOptions."+c)}}};
ck.prototype.dataChanged=ck.prototype.dataChanged;_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],ck.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],ck.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Array)],ck.prototype,"pollOptions",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],ck.prototype,"hasMaxOptions",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],ck.prototype,"enableCreationBox",void 0);
_.O([_.Iu("#repeat"),_.R("design:type",Ls)],ck.prototype,"repeat",void 0);_.O([_.kr("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],ck.prototype,"dataChanged",null);ck=_.O([_.E({disableElementRegistration:!0,is:"ytd-poll-attachment"})],ck);
_.v(ck,"ytd-poll-attachment",function(){if(zRZ!==void 0)return zRZ;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return zRZ=J},{mode:2});var uqQ;var fUz;var Ypa;var XV_;var ml=function(){return _.h.apply(this,arguments)||this};
_.D(ml,_.h);_.eE.Object.defineProperties(ml.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){return this.focused?"true":null}}});
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],ml.prototype,"rendererBehaviors",void 0);_.O([_.U(),_.R("design:type",Object)],ml.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],ml.prototype,"focused",void 0);_.O([_.U({reflectToAttribute:!0}),_.q("focused"),_.R("design:type",Object),_.R("design:paramtypes",[])],ml.prototype,"ariaSelected",null);ml=_.O([_.uM({is:"yt-user-mention-suggestion-renderer",disableElementRegistration:!0})],ml);
_.v(ml,"yt-user-mention-suggestion-renderer",function(){if(XV_===void 0){var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);var c=J.content,m=c.insertBefore;Ypa===void 0&&(Ypa=document.createElement("template"));var b=Ypa;m.call(c,b.content.cloneNode(!0),J.content.firstChild);XV_=J}J=XV_;return J},{mode:2});var ZpQ;var qp2;var bp=function(){var J=_.h.apply(this,arguments)||this;J.focusedSuggestionIndex=-1;return J};
_.D(bp,_.h);_.V=bp.prototype;_.V.created=function(){this.ytRendererBehavior.monitorScroll=!0};
_.V.clearFocusedSuggestion=function(){this.focusedSuggestionIndex=-1;this._setFocusedSuggestionId(void 0)};
_.V.setFocusedSuggestionIndex=function(J){!this.data||!this.data.suggestions||J<0||J>=this.data.suggestions.length||(this.focusedSuggestionIndex=J,J=this.getSuggestionId(J),this._setFocusedSuggestionId(J))};
_.V.advanceSuggestion=function(J){this.focusedSuggestionIndex===-1||J!==-1&&J!==1||(this.setFocusedSuggestionIndex(this.focusedSuggestionIndex+J),this.ensureSuggestionVisible(this.focusedSuggestionIndex))};
_.V.ensureSuggestionVisible=function(J){J=this.getSuggestionId(J);J=_.Bj(this.hostElement).querySelector("[id="+J+"]");J!=null&&(J.offsetTop<this.hostElement.scrollTop?J.scrollIntoView(!0):J.offsetTop+J.clientHeight>this.hostElement.scrollTop+this.hostElement.clientHeight&&J.scrollIntoView(!1))};
_.V.getSuggestionId=function(J){return"user-mention-suggestion-"+J};
_.V.onSuggestionTap=function(J){var c=_.L(J.model.item,kYQ);this.ytRendererBehavior.logExplicitClick(c);_.cA(this.hostElement,"yt-user-mention-suggestion-selected",{data:c,index:J.model.index})};
_.V.onSuggestionMouseMove=function(J){J.model.index!==this.focusedSuggestionIndex&&this.setFocusedSuggestionIndex(J.model.index)};
_.V.isSuggestionFocused=function(J,c){return J===c};
_.V.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.V.focusedSuggestionIdChangedForBinding=function(){this.hostElement.dispatchEvent(new _.SJ("focused-suggestion-id-changed",this.focusedSuggestionId))};
bp.prototype.focusedSuggestionIdChangedForBinding=bp.prototype.focusedSuggestionIdChangedForBinding;bp.prototype.onDomChange=bp.prototype.onDomChange;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],bp.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],bp.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],bp.prototype,"focusedSuggestionIndex",void 0);_.O([_.U({readOnly:!0}),_.R("design:type",String)],bp.prototype,"focusedSuggestionId",void 0);
_.O([_.ps("dom-change"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],bp.prototype,"onDomChange",null);_.O([_.NE("focusedSuggestionId"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],bp.prototype,"focusedSuggestionIdChangedForBinding",null);bp=_.O([_.uM({is:"yt-user-mention-suggestions-dropdown",disableElementRegistration:!0})],bp);
_.v(bp,"yt-user-mention-suggestions-dropdown",function(){if(qp2===void 0){var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);var c=J.content,m=c.insertBefore;ZpQ===void 0&&(ZpQ=document.createElement("template"));var b=ZpQ;m.call(c,b.content.cloneNode(!0),J.content.firstChild);qp2=J}J=qp2;return J},{mode:2});var xO=function(){var J=_.h.apply(this,arguments)||this;J.suggestionsResponse=null;J.activeMention=null;J.selectionChangeListener=J.onSelectionChange.bind(J);J.handlesEnabled=_.w("enable_handles_in_mention_suggest_posts");J.handlesInMentionSuggestionsEnabled=_.w("handles_in_mention_suggest_posts");J.zeroPrefixMentionSuggestionEnabled=_.w("enable_zero_prefix_mention_suggestion_web");J.pendingQuery=null;J.flowNonce=null;return J};
_.D(xO,_.h);_.V=xO.prototype;_.V.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={up:"focusPreviousSuggestion",down:"focusNextSuggestion","tab enter":"selectFocusedSuggestion",esc:"cancelActiveMention"}};
_.V.attached=function(){document.addEventListener("selectionchange",this.selectionChangeListener)};
_.V.detached=function(){document.removeEventListener("selectionchange",this.selectionChangeListener)};
_.V.hasSuggestions=function(J){return!!(J&&J.suggestions&&J.suggestions.length>0)};
_.V.onInput=function(){var J=this;if(this.suggestionsEndpoint){if(!this.activeMention&&(this.maybeStartSuggest(),!this.zeroPrefixMentionSuggestionEnabled))return;if(this.activeMention){this.updateActiveMention();var c=this.suggestionsResponse!=null&&!this.hasSuggestions(this.suggestionsResponse),m=this.activeMention.JSC$9254_getText().slice(-1)===" ",b=this.activeMention.JSC$9254_getText().slice(-2,-1)===" ",x="@\ufe6b\uff20+\ufe62\uff0b".indexOf(this.activeMention.JSC$9254_getText().slice(-2,-1))>=
0;x=this.zeroPrefixMentionSuggestionEnabled&&x;if(this.activeMention.isCollapsed()||(c||b||x)&&m)this.cancelActiveMention();else{var P=this.activeMention.JSC$9254_getText().substring(1).trim();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_INPUT_TEXT_UPDATED");_.hO(this,"requestSuggestions",function(){J.requestSuggestions(P)},100)}}}};
_.V.onServiceRequestSent=function(J){J.stopPropagation()};
_.V.onServiceRequestCompleted=function(J){J.stopPropagation();J=J.detail.data;J.query&&(!this.pendingQuery||this.pendingQuery!==J.query)||!this.zeroPrefixMentionSuggestionEnabled&&J.query===""||this.zeroPrefixMentionSuggestionEnabled&&this.activeMention==null||(this.pendingQuery=null,this.suggestionsResponse=J,this.hasSuggestions(J)&&this.dropdown.setFocusedSuggestionIndex(0))};
_.V.onServiceRequestError=function(J){J.stopPropagation()};
_.V.onUserMentionSuggestionSelected=function(J){this.selectSuggestion(J.detail.data,J.detail.index)};
_.V.onSelectionChange=function(){if(this.activeMention){var J=_.kR(),c=this.activeMention.JSC$9254_containsRange(J);J=J&&this.containsHelper(this.dropdown,J.getContainer());c||J||this.cancelActiveMention()}};
_.V.containsHelper=function(J,c){var m;if(((m=window.ShadyDOM)==null?void 0:m.noPatch)===!0)return J.contains(c);for(;c;){if(c===J)return!0;c=c instanceof ShadowRoot?c.host:c.parentNode}return!1};
_.V.maybeStartSuggest=function(){var J=_.kR();if(J&&J.isCollapsed()){var c=J.JSC$9254_getStartNode(),m=J.JSC$9254_getStartOffset();if(c instanceof Text&&!(m<1)){var b=c.textContent;!(b=b&&b.charAt(m-1))||"@\ufe6b\uff20+\ufe62\uff0b".indexOf(b)<0||(this.activeMention=_.ue(c,m-1,J.JSC$9254_getEndNode(),J.JSC$9254_getEndOffset()),this.flowNonce=zv(16),this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STARTED"))}}};
_.V.updateActiveMention=function(){if(this.activeMention){var J=_.kR();J&&J.isCollapsed()&&(this.activeMention=_.ue(this.activeMention.JSC$9254_getStartNode(),this.activeMention.JSC$9254_getStartOffset(),J.JSC$9254_getEndNode(),J.JSC$9254_getEndOffset()))}};
_.V.requestSuggestions=function(J){if(this.activeMention){var c={suggestions_query:J};this.pendingQuery=J;_.Vq(this.hostElement,[this.suggestionsEndpoint,c])}};
_.V.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()};
_.V.focusPreviousSuggestion=function(J){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(-1),J.preventDefault())};
_.V.focusNextSuggestion=function(J){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(1),J.preventDefault())};
_.V.selectFocusedSuggestion=function(J){if(this.hasSuggestions(this.suggestionsResponse)){var c=this.suggestionsResponse.suggestions[this.dropdown.focusedSuggestionIndex];_.L(c,kYQ)&&(this.selectSuggestion(_.L(c,kYQ),this.dropdown.focusedSuggestionIndex),J.preventDefault())}};
_.V.selectSuggestion=function(J,c){if(J){var m=this.activeMention;if(m){var b=document.createElement("a");this.handlesInMentionSuggestionsEnabled&&J.handle?_.WQ(b,"\u00a0\u2068@"+J.handle+"\u2069\u00a0"):this.handlesEnabled?_.WQ(b,"\u00a0"+J.displayName+"\u00a0"):_.WQ(b,"\u00a0@"+J.displayName+"\u00a0");W0(b,"/channel/"+J.channelId);b.classList.add("yt-formatted-string","yt-simple-endpoint");b.setAttribute("spellcheck","false");m.isCollapsed()||m.JSC$9254_removeContents();m.insertNode(b,!0);J=document.createTextNode(" ");
b.parentNode.insertBefore(J,b.nextSibling);window.getSelection().collapse(J,1);c={suggestionSelected:{suggestionIndex:c}};if(this.zeroPrefixMentionSuggestionEnabled){var x;c.suggestionSelected.isZeroPrefix=((x=this.suggestionsResponse)==null?void 0:x.query)===""}this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_SUGGESTION_SELECTED",c);this.cancelActiveMention();_.cA(this.hostElement,"yt-mention-inserted")}}};
_.V.getPositionTarget=function(J){return J&&J.getBrowserRangeObject()};
_.V.onDomChange=function(){this.ironDropdown.refit();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_CONTENT_UPDATED")};
_.V.onFocusedSuggestionIdChanged=function(J){var c=_.LB2(this.hostElement)[0];c&&(J.detail.value?c.setAttribute("aria-activedescendant",J.detail.value):c.removeAttribute("aria-activedescendant"))};
_.V.onDropdownOpened=function(){this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_BOX_OPENED")};
_.V.logGELEvent=function(J,c){J={eventType:J,flowNonce:this.flowNonce,source:"USER_MENTION_AUTO_COMPLETE_SOURCE_BACKSTAGE_POST"};c&&(J=Object.assign(J,c));_.zB("userMentionAutoCompleteBoxEvent",J)};
xO.prototype.onDomChange=xO.prototype.onDomChange;xO.prototype.onUserMentionSuggestionSelected=xO.prototype.onUserMentionSuggestionSelected;xO.prototype.onServiceRequestError=xO.prototype.onServiceRequestError;xO.prototype.onServiceRequestCompleted=xO.prototype.onServiceRequestCompleted;xO.prototype.onServiceRequestSent=xO.prototype.onServiceRequestSent;xO.prototype.onInput=xO.prototype.onInput;_.O([_.f(_.KV),_.R("design:type",Object)],xO.prototype,"ironA11yKeysBehavior",void 0);
_.O([_.U(),_.R("design:type",Object)],xO.prototype,"suggestionsEndpoint",void 0);_.O([_.U(),_.R("design:type",Object)],xO.prototype,"suggestionsResponse",void 0);_.O([_.U(),_.R("design:type",Object)],xO.prototype,"activeMention",void 0);_.O([_.Iu("#dropdown"),_.R("design:type",Object)],xO.prototype,"dropdown",void 0);_.O([_.Iu("#iron-dropdown"),_.R("design:type",Object)],xO.prototype,"ironDropdown",void 0);
_.O([_.ps("input"),_.R("design:type",Function),_.R("design:paramtypes",[Event]),_.R("design:returntype")],xO.prototype,"onInput",null);_.O([_.ps("yt-service-request-sent"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],xO.prototype,"onServiceRequestSent",null);_.O([_.ps("yt-service-request-completed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],xO.prototype,"onServiceRequestCompleted",null);
_.O([_.ps("yt-service-request-error"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],xO.prototype,"onServiceRequestError",null);_.O([_.ps("yt-user-mention-suggestion-selected"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],xO.prototype,"onUserMentionSuggestionSelected",null);
_.O([_.ps("dom-change"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],xO.prototype,"onDomChange",null);xO=_.O([_.uM({is:"yt-user-mention-autosuggest-input",disableElementRegistration:!0})],xO);
_.v(xO,"yt-user-mention-autosuggest-input",function(){if(fUz===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;uqQ===void 0&&(uqQ=document.createElement("template"));var b=uqQ;m.call(c,b.content.cloneNode(!0),J.content.firstChild);fUz=J}J=fUz;return J},{mode:2});var V3=null;
_.sB({is:"ytd-commentbox",_template:function(){if(sK8!==void 0)return sK8;var J=document.createElement("template");_.z(J,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commentbox--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="identity-chip" hidden="[[computeHideIdentityChipRenderer_(isLoading, zeroStepChannelCreationRenderer)]]" class="style-scope ytd-commentbox"></div>\n<div id="thumbnail-input-row" class="style-scope ytd-commentbox">\n  <yt-img-shadow id="author-thumbnail" height="[[computeAuthorThumbnailDimension_(isReply, isBackstageComment)]]" hidden="[[computeHideAuthorThumbnail_(isLoading, zeroStepChannelCreationRenderer)]]" thumbnail="[[data.authorThumbnail]]" width="[[computeAuthorThumbnailDimension_(isReply, isBackstageComment)]]" class="style-scope ytd-commentbox">\n  </yt-img-shadow>\n  <div id="main" hidden="[[isLoading]]" class="style-scope ytd-commentbox">\n    <div id="divider-line" class="style-scope ytd-commentbox"></div>\n    \n    <div id="creation-box" class$="[[computeCreationBoxClass_(isInputFocus_)]] style-scope ytd-commentbox" hidden="[[hasPollOrQuizRendererInEditDialog_]]">\n      <tp-yt-paper-input-container id="input-container" focused="{{isInputFocus_}}" no-label-float="" use-v2-underline="" class="style-scope ytd-commentbox">\n        <div slot="after-input" class="paper-input-input style-scope ytd-commentbox">\n          <ytd-emoji-input id="emoji" emoji-manager="[[emojiManager]]" vertical-suggestions-offset="[[verticalSuggestionsOffset]]" class="style-scope ytd-commentbox">\n            <yt-user-mention-autosuggest-input slot="input" suggestions-endpoint="[[data.userMentionSuggestionsEndpoint]]" class="style-scope ytd-commentbox">\n              <yt-formatted-string id="contenteditable-textarea" slot="input" enable-content-editable="true" maxlength="10000" override-aria-label="[[getSimpleString(placeholderFormattedText_)]]" plaintext-only="true" required="true" split-lines="1" text="[[data.editableText]]" on-dragenter="preventDefault_" on-dragleave="preventDefault_" on-dragover="preventDefault_" on-drop="plaintextDrop_" on-focus="focus" on-input="onInput_" on-keyup="onKeyUp_" on-paste="onPaste_" class="style-scope ytd-commentbox"></yt-formatted-string>\n            </yt-user-mention-autosuggest-input>\n          </ytd-emoji-input>\n          <div id="external-links-banner" hidden="[[!isExternalLinksBannerDisplayed]]" class="style-scope ytd-commentbox">\n            <yt-formatted-string text="[[data.advancedTierFeatures.externalLinks.verificationBannerMessage]]" class="style-scope ytd-commentbox">\n            </yt-formatted-string>\n            <ytd-button-renderer id="verification-button" data="[[data.advancedTierFeatures.externalLinks.verificationButton.buttonRenderer]]" class="style-scope ytd-commentbox">\n            </ytd-button-renderer>\n          </div>\n        </div>\n        <ytd-backstage-dismissable-attachment id="dismissable-attachment" slot="after-input" attachment-preview="[[prefilledContent_]]" dismiss-button="[[data.attachmentDismissButton]]" hidden="[[computeHideDismissableAttachment_(prefilledAttachment_)]]" class="style-scope ytd-commentbox">\n        </ytd-backstage-dismissable-attachment>\n        <div id="attachment-preview" slot="after-input" class="style-scope ytd-commentbox"></div>\n        <div id="image-select" class="paper-input-input style-scope ytd-commentbox" hidden="[[!hasImage_]]" slot="after-input"></div>\n        <ytd-backstage-video-link-attachment id="video-link-attachment" slot="after-input" hidden="[[!hasVideo_]]" class="style-scope ytd-commentbox">\n        </ytd-backstage-video-link-attachment>\n      </tp-yt-paper-input-container>\n    </div>\n    <ytd-poll-attachment id="poll-attachment" data="[[data.pollEditorInfo]]" hidden="[[!hasPoll_]]" class="style-scope ytd-commentbox">\n    </ytd-poll-attachment>\n    <ytd-backstage-image-poll-editor-renderer id="image-poll-attachment" data="[[data.imagePollEditorRenderer.imagePollEditorRenderer]]" editor-info="[[data.imagePollEditorInfo]]" hidden="[[!hasImagePoll_]]" class="style-scope ytd-commentbox">\n    </ytd-backstage-image-poll-editor-renderer>\n    <ytd-backstage-quiz-editor-renderer id="quiz-attachment" editor-info="[[data.quizEditorInfo]]" hidden="[[!hasQuiz_]]" class="style-scope ytd-commentbox">\n  </ytd-backstage-quiz-editor-renderer>\n    <slot name="repost-preview" class="style-scope ytd-commentbox"></slot>\n    <div id="poll-preview-edit-dialog" hidden="[[!hasPollOrQuizRendererInEditDialog_]]" class="style-scope ytd-commentbox">\n      <yt-formatted-string text="[[data.editableText]]" class="style-scope ytd-commentbox"></yt-formatted-string>\n      <div id="poll-preview" class="style-scope ytd-commentbox"></div>\n    </div>\n    <div id="footer" class="style-scope ytd-commentbox">\n      <span id="emoji-button" on-tap="onEmojiButtonTap_" hidden="[[!isEmojiButtonDisplayed]]" class="style-scope ytd-commentbox"></span>\n      <div id="attachments" hidden="[[computeHideAttachmentButtons_(data, addedAttachment, prefilledAttachment_, errorMessage_)]]" class="style-scope ytd-commentbox">\n        <template is="dom-repeat" items="[[attachmentButtonIds]]" as="buttonId" class="style-scope ytd-commentbox">\n          <ytd-button-renderer id="[[buttonId]]" data="[[getButtonRenderer(data, buttonId)]]" class="style-scope ytd-commentbox">\n          </ytd-button-renderer>\n        </template>\n      </div>\n      <div id="inline-scheduling-panel" hidden="[[!inlineSchedulePanel_]]" class="style-scope ytd-commentbox"></div>\n      <div id="footer-text" class="style-scope ytd-commentbox">\n        <yt-formatted-string id="footer-message" class$="[[computeFooterMessageClass_(alertMessage_, errorMessage_)]] style-scope ytd-commentbox" hidden="[[computeFooterMessageHidden_(alertMessage_, errorMessage_)]]" text="[[computeFooterMessage_(alertMessage_, errorMessage_)]]">\n        </yt-formatted-string>\n        <yt-formatted-string id="zero-step-footer-text" hidden="[[!zeroStepChannelCreationRenderer.footerText]]" text="[[zeroStepChannelCreationRenderer.footerText]]" class="style-scope ytd-commentbox">\n        </yt-formatted-string>\n      </div>\n      <div id="access-restrictions-selector" class="style-scope ytd-commentbox"></div>\n      <span id="char-count" hidden="[[!charLimit_]]" class="style-scope ytd-commentbox">[[charCount_]]/[[charLimit_]]</span>\n      <div id="buttons" class$="[[computeSubmitButtonClass_(dropdownSchedulePanel_, data.postOptionsMenu)]] style-scope ytd-commentbox">\n        <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-tap="onCancel_" class="style-scope ytd-commentbox">\n        </ytd-button-renderer>\n        <ytd-button-renderer id="submit-button" data="[[computeSubmitButton_(data, scheduleButton_)]]" disabled="[[submitButtonDisabled]]" overrides="[[computeSubmitButtonOverride(data, submitButtonDisabled, dropdownSchedulePanel_)]]" on-tap="onSubmit_" class="style-scope ytd-commentbox">\n        </ytd-button-renderer>\n        <div id="option-menu" hidden="[[dropdownSchedulePanel_]]" class="style-scope ytd-commentbox">\n          <ytd-menu-renderer data="[[data.postOptionsMenu.menuRenderer]]" disable-upgrade="[[!data.postOptionsMenu.menuRenderer]]" hidden="[[!data.postOptionsMenu.menuRenderer]]" icon="EXPAND" no-ink-on-dropdown-button="" three-dot-button-override="[[computeThreeDotButtonOverride(submitButtonDisabled)]]" tonal-override="[[modern]]" class="style-scope ytd-commentbox">\n          </ytd-menu-renderer>\n        </div>\n      </div>\n    </div>\n    <div id="scheduling-panel" hidden="[[!dropdownSchedulePanel_]]" class="style-scope ytd-commentbox"></div>\n    <div id="emojis" hidden="[[!isEmojiPickerDisplayed]]" class="style-scope ytd-commentbox">\n      <span id="emoji-picker" class="style-scope ytd-commentbox"></span>\n    </div>\n  </div>\n  <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-commentbox"></tp-yt-paper-spinner-lite>\n</div>\n');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return sK8=J},
behaviors:[_.c22.YtHostElementBehavior,_.KV,_.yw.YtActionHandlerBehavior,_.qH.YtComponentBehavior,_.lU.YtRendererstamperBehavior,_.Dg2.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(J,c){return _.P2(J.entities,"aadcGuidelinesStateEntityPayload",c)}},
dismissData_:{type:Object,value:null},commentboxStateKey_:{type:String,value:void 0},commentboxState_:{type:Object,selectorArgs:["commentboxStateKey_"],selector:function(J,c){return _.P2(J.entities,"commentboxStateEntity",c)},
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 _.Xh}},
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:_.w("web_modern_buttons")},swatcheroo:{type:Boolean,reflectToAttribute:!0,value:_.w("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",_.ME(this,this.onTap_));this.emojiInput=this.$.emoji},
isLoadingChanged_:function(J){this.fire(J?"yt-commentbox-loading-start":"yt-commentbox-loading-end")},
dataChanged_:function(J){this.set("submitButtonDisabled",void 0);this.clear();J&&this.computeIsEmojiButtonDisplayed_(J)&&(J=this.$$("#emoji-picker > yt-emoji-picker-renderer"))&&J.updateEmojiCategories()},
observePrefilledImage_:function(J,c,m){this.isValidPrefilledImage_(J,c,m)&&(this.prefilledAttachment_="image",this.prefilledImageData_=c,this.submitButtonDisabled=!1)},
observePrefilledVideo_:function(J,c){this.isValidPrefilledVideo_(J,c)&&(this.prefilledAttachment_="video")},
observePrefilledPoll_:function(J){J&&J.pollData&&J.pollData.choices&&(this.addedAttachment="poll",this.$["poll-attachment"].setPrefilledChoices(J.pollData.choices))},
attached:function(){this.$["input-container"].getElementsByClassName("underline")[0].style.height=0;_.be();this.focus()},
detached:function(){document.removeEventListener("tap",_.ME(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(J){J=J.detail;J=J.isCustomEmoji?J.shortcuts[0]:J.emojiId;var c=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(c,J);this.maybeUpdateTextDirection_()},
getInputRange_:function(){var J=_.kR();if(J){J=J.getBrowserRangeObject();for(var c=J.commonAncestorContainer;c;){if(c===this.getEditableTextArea_())return J;c=c.parentNode}}J=this.getEditableTextArea_();J=_.zW(J,J.childNodes.length);J.select();return J.getBrowserRangeObject()},
insertTextWithEmojis_:function(J,c,m){(c=this.emojiManager.createDocumentFragment(c,!0,!1,m===void 0?!0:m))&&c.childNodes.length!==0&&(J.collapsed||J.deleteContents(),m=c.lastChild,J.insertNode(c),_.g36(m).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize(),this.submitButtonDisabled=!1)},
onSelectionChange_:function(){var J=_.kR();if(J){var c=J.JSC$9254_getStartNode(),m=J.JSC$9254_getEndNode();if(d5m(c)&&d5m(m)){var b=J.JSC$9254_getStartOffset(),x;if(_.xd&&c.nodeType===Node.ELEMENT_NODE&&(x=_.I3L(c)))_.zW(x,0).select();else{x=Ky(c)?c:_.qA(c,Ky);var P=Ky(m)?m:_.qA(m,Ky);if(x||P)if(J.isCollapsed()){if(c.nodeType===Node.TEXT_NODE){J=!0;b===c.length&&(J=!1);if(V3==="end"||V3==="right")J=!1;c=c.parentNode;J=[].concat(_.L6(c.parentNode.childNodes)).indexOf(c)+(J?0:1);_.zW(c.parentNode,J).select()}}else x?
x.previousSibling&&x.previousSibling.length>0?_.ue(m,J.JSC$9254_getEndOffset(),x.previousSibling,x.previousSibling.length-1).select():(c=document.createTextNode("\u200b"),x.parentNode.insertBefore(c,x),_.ue(m,J.JSC$9254_getEndOffset(),c,0).select()):P&&(P.nextSibling&&P.nextSibling.length>0?_.ue(c,J.JSC$9254_getStartOffset(),P.nextSibling,1).select():(m=document.createTextNode("\u200b"),P.parentNode.insertBefore(m,P.nextSibling),_.ue(c,J.JSC$9254_getStartOffset(),m,m.length).select()));V3=null}}else V3=
null}else V3=null},
leftKeyPressed_:function(){V3="left"},
rightKeyPressed_:function(){V3="right"},
endKeyPressed_:function(){V3="end"},
maybeDeleteChip_:function(){var J=AnJ(!0);if(J){var c=_.kR(),m=c.JSC$9254_getStartNode();c=c.JSC$9254_getStartOffset();_.ry(m,c,J,J.childNodes.length).select()}},
maybeBackspaceChip_:function(){var J=AnJ(!1);if(J){var c=_.kR(),m=c.JSC$9254_getStartNode();c=c.JSC$9254_getStartOffset();_.ry(m,c,J,0).select()}},
maybeBackspaceChipWordMode_:function(J){var c=_.kR();if(c.isCollapsed()){var m=c.JSC$9254_getStartNode();c=c.JSC$9254_getStartOffset();var b=RPq(m,c,!0);b&&(_.ry(m,c,b,0).select(),document.execCommand("delete"),J.preventDefault(),J.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(J){var c=_.kR();if(c.isCollapsed()){var m=c.JSC$9254_getStartNode();c=c.JSC$9254_getStartOffset();var b=RPq(m,c,!1);b&&(_.ry(m,c,b,b.childNodes.length).select(),document.execCommand("delete"),J.preventDefault(),J.stopImmediatePropagation())}},
onTap_:function(J){if(!J.defaultPrevented&&(J.currentTarget.tagName==="YTD-COMMENTBOX"&&Ky(J.target)&&J.preventDefault(),this.isEmojiPickerDisplayed)){var c=this.$$("#emojis"),m=this.$$("#emoji-button"),b=this.getEditableTextArea_();if((J=J.path?J.path:J.composedPath&&J.composedPath())&&!J.includes(c)&&!J.includes(b)&&!J.includes(m))this.onEmojiButtonTap_()}},
isValidPrefilledImage_:function(J,c,m){return J==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&c!==void 0&&c.encryptedBlobId!==null&&c.sourceExternalVideoId!==null&&m!==void 0&&m.backstageImageRenderer!==null},
isValidPrefilledVideo_:function(J,c){return J==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&!!c&&!!c.videoRenderer&&!!c.videoRenderer.videoId},
isValidPrefilledAttachment_:function(J,c,m){return this.isValidPrefilledImage_(J,c,m)||this.isValidPrefilledVideo_(J,m)},
dismissPrefilledContent_:function(){this.prefilledImageData_=void 0;this.prefilledAttachment_="none"},
clear:function(){this.errorMessage_=this.alertMessage_=null;this.taggedVideoId_=void 0;if(_.w("enable_multi_image_post_creation")){var J=this.$$("ytd-backstage-multi-image-select-renderer");J&&J.hasImages()&&J.cancel()}else(J=this.$$("ytd-backstage-image-select-renderer"))&&this.hasImage_&&J.cancel();(J=this.$["poll-attachment"])&&this.hasPoll_&&J.clearPollOptions();(J=this.$["image-poll-attachment"])&&this.hasImagePoll_&&J.resetPollOptions();(J=this.$["quiz-attachment"])&&this.hasQuiz_&&J.resetQuizOptions();
(J=this.$["video-link-attachment"])&&this.hasVideo_&&J.cancel();(J=this.$["access-restrictions-selector"].firstElementChild)&&J.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 _.Bj(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.Bj(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(J,c){J=GlG(J,this.emojiManager,c).cloneNode(!0);for(c=J.firstChild;c;)if(c.nodeType!==1)c=c.nextSibling;else switch(c.tagName){case "BR":var m=_.Ty();_.TTL(m,c);c=m.nextSibling;break;case "DIV":(m=c.lastChild)&&c.nextSibling&&_.Ld(_.Ty(),m);c.previousSibling&&(c.previousSibling.nodeType===1||c.previousSibling.nodeType===3&&!c.previousSibling.textContent.endsWith("\n"))&&_.sK(_.Ty(),c);m&&m.nodeName==="BR"&&_.nc(m);m=c;c.hasChildNodes()?(c=c.firstChild,
_.wrj(m)):(c=c.nextSibling,_.nc(m));break;default:c=c.nextSibling}return oeG(J)},
onAddImageError_:function(J){J.stopPropagation();this.errorMessage_=_.v2(J.detail)},
setTextAreaValue_:function(J){J||(J="");var c=this.getEditableFormattedString_();c.text="";this.getEditableTextArea_().innerText="";typeof J==="string"&&(J={runs:[{text:J}]});c.text=J},
focus:function(){this.$["author-thumbnail"].markDirty();this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();V3=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var J=this.getEditableTextArea_();J&&(_.zW(J,J.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.Ub("HTML_DIR")==="rtl"){var J=this.getEditableTextArea_(),c=this.getTextAreaValue()!==""?"auto":"rtl";J.setAttribute("dir",c)}},
maybeUpdateExternalLinksBanner_:function(){!this.hasExternalLinksAccess_&&this.computePostHasExternaLink_()?this.isExternalLinksBannerDisplayed=!0:this.isExternalLinksBannerDisplayed=!1},
computePostHasExternaLink_:function(){var J;return CAD((J=this.$["quiz-attachment"])==null?void 0:J.getExplanationText())||CAD(this.getTextAreaValue().trim())},
handleInputEvent_:function(){var J=null;if(this.isEmojiButtonDisplayed){var c=this.getInputRange_();c&&(J=this.emojiInput.retrieveTextBeforeRange(c))}this.insertText_(J,!0);this.updateCharCount_();this.setSubmitButton_();J=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=J.scrollHeight>J.clientHeight,this.maybeUpdateExternalLinksBanner_());this.maybeHeightChanged()},
maybeHeightChanged:function(){var J=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:J})},
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(J){if(this.isEmojiButtonDisplayed)this.onPasteEmoji_(J)},
onPasteEmoji_:function(J){J.preventDefault();J.stopImmediatePropagation();J=J.clipboardData.getData("text/plain");this.insertText_(J,!1,!1)},
insertText_:function(J,c,m){c=c===void 0?!1:c;m=m===void 0?!0:m;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&J){var b=this.getInputRange_().cloneRange();this.emojiManager&&b&&(c&&this.emojiInput.offsetStartOfRangeBy(b,J.length),this.insertTextWithEmojis_(b,J,m),$5T(this.getEditableTextArea_().lastChild)||(b=this.getInputRange_().cloneRange()),b&&(this.emojiInput.updateSuggestions(b,J),this.updateSuggestionOffset_(b)))}},
setSubmitButton_:function(){if(this.data){var J=this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT",c=this.data&&this.data.editableText&&this.data.purpose!=="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE";if(J||c){var m=this.getTextAreaValue().trim();c=m===this.previousText_;m=!m||this.aboveCharLimit_;J&&this.data&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(m=this.aboveCharLimit_);this.submitButtonDisabled=
c||m||!this.getTextLength();J&&_.w("enable_post_scheduling")&&(this.submitButtonDisabled=c&&!this.scheduledPublishTimeSec_||m)}else this.submitButtonDisabled=!this.isValidInput_()}},
onSubmitButtonEnable_:function(){this.setSubmitButton_()},
onSubmitButtonDisable_:function(){this.submitButtonDisabled=!0},
getSimpleString:_.OG,computeCreationBoxClass_:function(J){return J?"focused":"not-focused"},
computeFooterMessageClass_:function(J,c){return c?"footer-error-message":"footer-alert-message"},
computeFooterMessage_:function(J,c){return c?c:J},
computeFooterMessageHidden_:function(J,c){return!c&&!J},
computePlaceholderText_:function(J,c,m){return(m==="video"||m==="image")&&(J==null?0:J.prefilledPlaceholderText)?J==null?void 0:J.prefilledPlaceholderText:c==="poll"||c==="image-poll"?J==null?void 0:J.pollPostPlaceholderText:c==="quiz"?J==null?void 0:J.quizPostPlaceholderText:c==="image"?J==null?void 0:J.imagePostPlaceholderText:J==null?void 0:J.placeholderText},
computeHideAttachmentButtons_:function(J,c,m,b){return J===void 0?!1:b&&this.getSimpleString(b)===this.getSimpleString(J.rateLimitErrorMessage)?!0:c!=="none"||m!=="none"||!J.videoLinkButton&&!J.pollButton&&!J.imagePollButton&&!J.quizButton&&!J.imageButton},
computeHideDismissableAttachment_:function(J){return J!=="image"&&J!=="video"},
computeHasVideo_:function(J){return J==="video"},
computeHasImage_:function(J){return J==="image"},
computeHasPoll_:function(J){return J==="poll"},
computeHasImagePoll_:function(J){return J==="image-poll"},
computeHasQuiz_:function(J){return J==="quiz"},
computeHasPollOrQuizRendererInEditDialog_:function(J){return J&&J.backstageAttachment?J.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&!(!J.backstageAttachment.quizRenderer&&!J.backstageAttachment.pollRenderer):!1},
computePrefilledContent_:function(J){if(this.isValidPrefilledAttachment_(J.purpose,J.prefilledImageData,J.backstageAttachment))return J.backstageAttachment},
computeEditAttachment_:function(J){if(this.computePrefilledContent_(J)===void 0)return J.backstageAttachment},
computeAuthorThumbnailDimension_:function(J,c){return J&&!c?24:40},
computeImageUploadEndpoint_:function(J){return this.get("imageButton.buttonRenderer.navigationEndpoint.backstageImageUploadEndpoint",J)},
computeRateLimitErrorCommands_:function(J){var c,m;return J==null?void 0:(c=J.advancedTierFeatures)==null?void 0:(m=c.rateLimit)==null?void 0:m.rateLimitCommands},
computeIsBackstageComment_:function(J){return!(!J||J!=="COMMENT_DIALOG_AVATAR_SIZE_TYPE_BACKSTAGE_COMMENT")},
computeServiceEndpoint_:function(J){return this.get("submitButton.buttonRenderer.serviceEndpoint",J)||this.get("replyButton.buttonRenderer.serviceEndpoint",J)||this.get("postButton.buttonRenderer.serviceEndpoint",J)},
computeSubmitButtonOverride:function(){if(_.w("web_modern_buttons")){var J,c;return{segmentedPosition:this.dropdownSchedulePanel_||!((J=this.data)==null?0:(c=J.postOptionsMenu)==null?0:c.menuRenderer)?void 0:"start",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}}},
computeThreeDotButtonOverride:function(){if(_.w("web_modern_buttons"))return{segmentedPosition:"end",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}},
computeSubmitButton_:function(J,c){J=this.get("submitButton.buttonRenderer",J)||this.get("replyButton.buttonRenderer",J)||this.get("postButton.buttonRenderer",J);c&&(J=c);J&&(J=Object.assign({},J),J.serviceEndpoint=void 0,J.isDisabled=this.submitButtonDisabled);return J},
computeHasExternalLinksAccess_:function(J){if(_.w("enable_rfa_external_links")){var c,m,b;return(b=J==null?void 0:(c=J.advancedTierFeatures)==null?void 0:(m=c.externalLinks)==null?void 0:m.allowExternalLinks)!=null?b:!0}return!0},
computeIsEmojiButtonDisplayed_:function(J){return J.emojiButton&&J.emojiPicker&&J.emojiPicker.emojiPickerRenderer&&J.emojiPicker.emojiPickerRenderer.categories?J.emojiPicker.emojiPickerRenderer.categories.find(function(c){return c.emojiPickerCategoryRenderer?c.emojiPickerCategoryRenderer.emojiIds&&c.emojiPickerCategoryRenderer.emojiIds.length>0:c.emojiPickerUpsellCategoryRenderer?c.emojiPickerUpsellCategoryRenderer.emojis&&c.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1}):!1},
computeCharLimit_:function(J){return J.charLimit?J.charLimit:null},
computeDropdownSchedulingPanel_:function(J,c){if(J==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&c)return c},
computeInlineSchedulingPanel_:function(J,c){if(J==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&c)return c},
computeHideAuthorThumbnail_:function(J,c){return J||this.computeUseIdentityChip_(c)},
computeHideIdentityChipRenderer_:function(J,c){return J||!this.computeUseIdentityChip_(c)},
computeUseIdentityChip_:function(J){return!!J&&!!J.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(J){var c,m,b,x;(J==null?0:(c=J.detail)==null?0:(m=c.endpoint)==null?0:m.ypcGetOffersEndpoint)||(J==null?0:(b=J.detail)==null?0:(x=b.endpoint)==null?0:x.ypcOffersEndpoint)?(J.stopPropagation(),_.Vq(this,[J.detail.endpoint])):this.get("detail.endpoint.backstageImageUploadEndpoint",J)&&(J.stopPropagation(),this.addedAttachment="image",this.submitButtonDisabled=!0)},
onVideoLinkSelected_:function(J){this.addedAttachment="video";this.selectedVideoId_=J.detail.videoId},
commentboxStateEntityChanged_:function(J){var c=this;(J==null?void 0:J.state)=="COMMENTBOX_STATE_INITIAL"?(this.clear(),this.fire("yt-commentbox-dismiss",this.dismissData_),this.dismissData_=null):(J==null?void 0:J.state)=="COMMENTBOX_STATE_WRITING"&&Promise.resolve().then(function(){c.focus()})},
onYtServiceRequestSent_:function(J,c){if(c.actions)for(J=_.M(c.actions),c=J.next();!c.done;c=J.next())c.value.createPollAction&&(this.submitButtonDisabled=!0)},
onYtServiceRequestCompleted_:function(J){this.isLoading=!1;var c=this.get("detail.actions.0.showErrorAction.errorMessage.messageRenderer.text",J),m,b,x,P=J==null?void 0:(m=J.detail)==null?void 0:(b=m.data)==null?void 0:(x=b.actionResult)==null?void 0:x.commentboxStateEntityKey;if(c)this.errorMessage_=c;else if(P){var p;this.dismissData_=J==null?void 0:(p=J.detail)==null?void 0:p.data;this.commentboxStateKey_=P}else{this.clear();var t;this.fire("yt-commentbox-dismiss",J==null?void 0:(t=J.detail)==
null?void 0:t.data)}},
onYtServiceRequestError_:function(J){J.stopPropagation();this.isLoading=!1;var c,m;if(((c=this.data)==null?void 0:c.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"||((m=this.data)==null?void 0:m.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")if(c=this.get("detail.error.args",J)||[],c.length>1&&c[1].message){this.handlePostsServiceRequestError_(c[1].message);return}(J=this.get("detail.error.message",J))?this.errorMessage_=this.data.errorMessage||_.v2(J):(this.clear(),this.fire("yt-commentbox-dismiss"))},
handlePostsServiceRequestError_:function(J){if(_.w("enable_rfa_rate_limits")&&this.rateLimitErrorCommands)for(var c=_.M(this.rateLimitErrorCommands),m=c.next();!m.done;m=c.next())if(m=m.value,m.errorLabel===J){_.Nl(m.command,this.hostElement);return}this.errorMessage_=_.v2(J)},
submitIfNotBackstagePost_:function(J){if(!this.isBackstagePost)this.onSubmit_(J)},
onSubmit_:function(J){var c=this,m,b,x,P,p,t,I,a,k,H,T,r,W,Y,Z;return _.N(function(d){switch(d.nextAddress){case 1:J.stopPropagation();if(!c.serviceEndpoint||!c.isValidInput_())return d.return();if(c.shouldShowPostAadcNotice_())return c.showPostAadcNotice_(),d.return();if(c.shouldShowCommentAadcNotice_())return c.showCommentAadcNotice_(),d.return();if(!(c.$$("ytd-backstage-multi-image-select-renderer")&&c.hasImage_&&_.w("enable_multi_image_post_creation"))){d.jumpTo(2);break}m=c.$$("ytd-backstage-multi-image-select-renderer");
return _.K(d,m.getAllUploadStatuses(),3);case 3:b=d.yieldResult;if(!b)return d.return();x=_.M(b);for(P=x.next();!P.done;P=x.next())if(p=P.value,p.encryptedBlobId===void 0)return c.isLoading=!1,I=t=void 0,c.errorMessage_=(I=(t=c.imageUploadEndpoint_)==null?void 0:t.imageEditor.backstageMultiImageSelectRenderer.uploadFailureError)!=null?I:null,d.return();return d.return(c.submitForm_(void 0,void 0,void 0,void 0,m.images,c.taggedVideoId_));case 2:if(!c.hasImagePoll_||!c.$["image-poll-attachment"]){d.jumpTo(4);
break}return _.K(d,c.$["image-poll-attachment"].getAllUploadStatuses(),5);case 5:a=d.yieldResult;if(!a)return d.return();k=_.M(a);for(H=k.next();!H.done;H=k.next())if(T=H.value,!T.encryptedBlobId)return c.isLoading=!1,r=void 0,c.errorMessage_=(r=c.data.errorMessage)!=null?r:null,d.return();case 4:Y=(W=c.$$("ytd-backstage-image-select-renderer"))&&W.uploadPromise(),Z=c.getSharedPostId_(),Y?Y.then(function(){c.submitForm_.apply(c,_.L6(_.s$.apply(0,arguments)))}).catch(function(G){c.isLoading=!1;
c.errorMessage_=_.v2(G.message)}):c.selectedVideoId_?c.submitForm_(void 0,c.selectedVideoId_):c.prefilledAttachment_==="image"?c.submitForm_(c.prefilledImageData_.encryptedBlobId,void 0,void 0,c.prefilledImageData_.sourceExternalVideoId,void 0,c.taggedVideoId_):c.prefilledAttachment_==="video"?c.submitForm_(void 0,c.data.backstageAttachment.videoRenderer.videoId):Z?c.submitForm_(void 0,void 0,Z):c.taggedVideoId_!==void 0?c.submitForm_(void 0,void 0,void 0,void 0,void 0,c.taggedVideoId_):c.submitForm_(),
_.tD(d)}})},
openSchedulingPanel:function(J){J&&J.scheduleButton&&J.scheduleButton.buttonRenderer&&(this.scheduleButton_=J.scheduleButton.buttonRenderer);J&&J.dateTimePicker&&this.set("data.schedulingDateTimePicker",J.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(J){J.stopPropagation();this.clear();this.fire("yt-commentbox-dismiss")},
onPrefilledContentDismissed_:function(J){J.stopPropagation();this.dismissPrefilledContent_();this.setSubmitButton_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
onQuizExplanationUpdated_:function(){this.maybeUpdateExternalLinksBanner_()},
onImageAlert_:function(J){J.stopPropagation();J.detail.alertMessage&&(this.alertMessage_=J.detail.alertMessage)},
onImageSelected_:function(J){J.stopPropagation();this.setSubmitButton_()},
onImagesSelected_:function(J){J.stopPropagation();this.errorMessage_=null;this.setSubmitButton_()},
onImagePreviewCoordinatesUpdated_:function(J){J.stopPropagation();this.imagePreviewCoordinates_=JSON.stringify(J.detail);this.setSubmitButton_()},
onImagePreviewReposition_:function(J){J.stopPropagation();this.imagePreviewCoordinates_=void 0;this.submitButtonDisabled=!0},
onVideoLinkButtonCancel_:function(){this.getEditableTextArea_().focus()},
onAddVideoLink:function(J){var c=this.$["video-link-attachment"];c&&c.onLaunchVideoPicker(J)},
onAttachmentDismiss_:function(J){J.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"&&_.w("enable_multi_image_post_creation")&&(!this.$$("ytd-backstage-multi-image-select-renderer")||!this.$$("ytd-backstage-multi-image-select-renderer").hasImages())||!(this.addedAttachment!=="image"||_.w("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 J;if(this.addedAttachment==="image-poll"&&((J=this.$["image-poll-attachment"])==null||!J.isValid()))return!1;var c;if(this.addedAttachment==="quiz"&&((c=this.$["quiz-attachment"])==null||!c.isValid())||this.addedAttachment==="video"&&this.$["video-link-attachment"]&&!this.$["video-link-attachment"].isValid()||
this.aboveCharLimit_||this.dropdownSchedulePanel_&&!this.scheduledPublishTimeSec_)return!1;J=!1;this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(J=!0);if(this.addedAttachment==="image"||this.prefilledAttachment_==="image")J=!0;return J||!!this.getTextAreaValue().trim()},
submitForm_:function(J,c,m,b,x,P){var p=this.getTextAreaValue().trim(),t={};this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&p===this.previousText_&&(p=void 0);p!==void 0&&(t.comment_text=p);this.isLoading=!0;P!=void 0&&(t.tagged_video_id=P);J?(t.image_blob_id=J,this.imagePreviewCoordinates_&&(t.image_preview_coordinates=this.imagePreviewCoordinates_)):c?t.attached_video_id=c:m?t.shared_post_id=m:x&&x.length>0&&(t.images_data=x.map(function(I){return{encryptedBlobId:I.encryptedBlobId,
previewCoordinates:I.previewCoordinates}}));
b&&(t.source_video_id=b);this.data.accessRestrictionsSelector&&this.data.accessRestrictionsSelector.dropdownRenderer&&(t.access_restrictions=this.accessRestriction?this.accessRestriction:this.$["access-restrictions-selector"].firstElementChild.value);this.addedAttachment==="poll"&&(t.poll_options=this.$["poll-attachment"].getPollOptions());this.addedAttachment==="image-poll"&&(t.image_poll_options=this.$["image-poll-attachment"].getPostCreateOptions());_.w("enable_quiz_creation")&&this.addedAttachment===
"quiz"&&(t.quiz_options=this.$["quiz-attachment"].getPostCreateOptions());_.w("enable_post_scheduling")&&this.scheduledPublishTimeSec_&&(t.scheduled_publish_time_sec=this.scheduledPublishTimeSec_);_.Vq(this,[this.serviceEndpoint,t])},
onIsInputFocusChanged_:function(J,c){J?this.fire("yt-autonav-pause-focus"):c!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(J){var c=this.getEditableTextArea_();[].concat(_.L6(J.dataTransfer.items)).forEach(function(m){m.kind==="string"&&m.type.match("^text/plain")&&m.getAsString(function(b){c.appendChild(document.createTextNode(b))})});
J.preventDefault()},
preventDefault_:function(J){J.preventDefault()},
onSuggestionInsert_:function(J){this.insertTextWithEmojis_(J.detail.range,J.detail.text)},
onEmojiSuggestionClick_:function(J){this.emojiInput.insertSuggestion(J.detail)},
computeSubmitButtonClass_:function(J,c){return!c||J?"":"with-options"},
updateSuggestionOffset_:function(J){if(this.emojiInput&&_.Bj(this.emojiInput).querySelector("#dropdown")){var c=this.getEditableTextArea_().getBoundingClientRect().bottom,m=J.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(c-m)+5;c=this.getEditableTextArea_().getBoundingClientRect().left;J=J.getBoundingClientRect().left-c;_.Bj(this.emojiInput).querySelector("#dropdown").style.marginLeft=J+"px"}},
onDateTimeSelectionCancelled_:function(){this.scheduleButton_=void 0;this.set("data.schedulingDateTimePicker",null);this.scheduledPublishTimeSec_=void 0;this.setSubmitButton_()},
onDateTimeSelectionUpdate_:function(J){if(_.w("enable_post_scheduling")&&this.data&&this.data.purpose){J=J.detail;if(Math.floor(Date.now()/1E3)>=J)this.scheduledPublishTimeSec_=void 0;else if(this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"){var c=parseInt(this.get("schedulingDateTimePicker.dateTimePickerRenderer.defaultTimeSec",this.data),10);isNaN(c)||c!==J?this.scheduledPublishTimeSec_=J:this.scheduledPublishTimeSec_=void 0}else this.scheduledPublishTimeSec_=J;this.setSubmitButton_()}},
computeAttachmentButtonIds_:function(){var J=["image-button","image-poll-button","poll-button"];_.w("enable_quiz_creation")&&J.push("quiz-button");_.w("auto_convert_posts_video_tag")||J.push("video-link-button");return J},
getButtonRenderer:function(J,c){if(J)switch(c){case "video-link-button":var m;return((m=J.videoLinkButton)==null?void 0:m.buttonRenderer)||void 0;case "image-button":var b;return((b=J.imageButton)==null?void 0:b.buttonRenderer)||void 0;case "poll-button":var x;return((x=J.pollButton)==null?void 0:x.buttonRenderer)||void 0;case "image-poll-button":var P;return((P=J.imagePollButton)==null?void 0:P.buttonRenderer)||void 0;case "quiz-button":var p;return((p=J.quizButton)==null?void 0:p.buttonRenderer)||
void 0}},
shouldShowPostAadcNotice_:function(){var J;return(J=this.data)==null||!J.showAadcNoticeCommand||this.getLocalStorage_().get(this.getAadcNoticeShownKey_())?!1:!0},
shouldShowCommentAadcNotice_:function(){var J,c;return!((J=this.data)==null||!J.openAadcDialog)&&!((c=this.aadcGuidelinesState_)==null||!c.shouldRequireViewerAck)},
getAadcNoticeShownKey_:function(){return"post-aadc-notice-shown-"+_.Ub("DATASYNC_ID","unknown")},
showPostAadcNotice_:function(){var J;((J=this.data)==null?0:J.showAadcNoticeCommand)&&this.resolveCommand(this.data.showAadcNoticeCommand)},
showCommentAadcNotice_:function(){this.resolveCommand(this.data.openAadcDialog)},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.Un("yt-post"));return this.localStorage},
onAadcNoticeConfirm_:function(J){J.clickTrackingParams&&_.C7().clickCommand(J);this.getLocalStorage_().set(this.getAadcNoticeShownKey_(),!0);_.m9(this,"yt-close-popup-action")},
onHideIdentityChip:function(J){var c;this.set("data.placeholderText",(c=J.hideIdentityChipAction)==null?void 0:c.placeholderText);this.set("zeroStepChannelCreationRenderer",{})}});var Pk=function(){var J=_.h.apply(this,arguments)||this;J.isOpen=!1;J.modern=_.w("web_modern_buttons");J.roundedContainer=!0;J.dropdownButtonOverride=_.w("web_modern_buttons")?{segmentedPosition:"end",state:"disabled",type:"filled"}:void 0;J.inPopupContainer=!1;J.isCommentboxLoading=!1;var c=["image-button","image-poll-button","poll-button"];_.w("enable_quiz_creation")&&c.push("quiz-button");_.w("auto_convert_posts_video_tag")||c.push("video-link-button");J.attachmentButtonIds=c;J.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 J};
_.D(Pk,_.h);_.V=Pk.prototype;_.V.computeButtonOverride=function(){var J;return((J=this.data)==null?0:J.postOptionsMenu)&&_.w("web_modern_buttons")?{segmentedPosition:"start"}:void 0};
_.V.configureRendererStamper=function(){var J={"data.accessRestrictionsSelector":{id:"access-restrictions-selector",mapping:{dropdownRenderer:{component:"ytd-flat-dropdown-renderer",classListBinding:"[[dropdownRendererClasses]]"}}},"data.pollButton":{id:"poll-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.imagePollButton":{id:"image-poll-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.imageButton":{id:"image-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.quizButton":{id:"quiz-button",
mapping:{buttonRenderer:"ytd-button-renderer"}},"data.postOptionsMenu":{id:"option-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"EXPAND"},properties:{tonalOverride:"[[modern]]",threeDotButtonOverride:"[[dropdownButtonOverride]]"}}}}};_.w("auto_convert_posts_video_tag")||(J["data.videoLinkButton"]={id:"video-link-button",mapping:{buttonRenderer:"ytd-button-renderer"}});return J};
_.V.ready=function(){var J=this,c=_.Bj(this.hostElement).querySelector("#placeholder-area"),m=function(b){J.onOpen(b)};
c.addEventListener("tap",m);c.addEventListener("keypress",m)};
_.V.showButtonEduTooltip=function(){var J,c,m,b,x,P,p;if(_.w("enable_quiz_creation")&&((J=this.data)==null?0:(c=J.quizButton)==null?0:(m=c.buttonRenderer)==null?0:(b=m.hint)==null?0:(x=b.hintRenderer)==null?0:(P=x.content)==null?0:(p=P.bubbleHintRenderer)==null?0:p.text)&&(_.oQ.getInstance(),J=Qt(this.data.quizButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,"quiz-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"quiz-button-edu-displayed-impression",3),(J==null?void 0:
J.length)>0)){this.ytComponentBehavior.resolveCommand(J[0],{form:{element:this.quizButton}});return}var t;if((t=this.data)==null?0:t.imagePollButtonTooltip)if(_.oQ.getInstance(),t=Qt(this.data.imagePollButtonTooltip,"image-poll-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"image-poll-button-edu-displayed-impression",3),(t==null?void 0:t.length)>0){this.ytComponentBehavior.resolveCommand(t[0],{form:{element:this.imagePollButton}});return}var I;_.w("enable_multi_image_post_creation")&&
((I=this.data)==null?0:I.multiImageButtonTooltip)&&(_.oQ.getInstance(),I=Qt(this.data.multiImageButtonTooltip,"multi-image-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"multi-image-button-edu-displayed-impression",3),(I==null?void 0:I.length)>0&&this.ytComponentBehavior.resolveCommand(I[0],{form:{element:this.imageButton}}))};
_.V.onCreatePollAction=function(J){_.L(J,zbL)&&(this.JSC$13685_commentbox.addedAttachment="poll",this.openDialog())};
_.V.onAddVideoLinkAction=function(J){if(_.L(J,Wmj))this.JSC$13685_commentbox.onAddVideoLink(J)};
_.V.onShowSchedulingPanelCommand=function(J){(J=_.L(J,cmz))&&this.openSchedulingPanel(J)};
_.V.onCreateImagePollCommand=function(J){_.L(J,pE2)&&(this.JSC$13685_commentbox.openImagePollComponent(),this.openDialog())};
_.V.onCreateQuizCommand=function(J){_.L(J,NDj)&&(this.JSC$13685_commentbox.openQuizComponent(),this.openDialog())};
_.V.openSchedulingPanel=function(J){_.w("enable_post_scheduling")&&(this.openDialog(),this.JSC$13685_commentbox.openSchedulingPanel(J))};
_.V.onCreateCommentAction=function(J){this.get("createCommentAction.contents",J)&&(this.JSC$13685_commentbox.clear(),this.closeDialog())};
_.V.onOpen=function(J){J instanceof KeyboardEvent&&J.type==="keypress"&&J.keyCode!==13&&J.keyCode!==32||(this.data.prepareAccountEndpoint?_.cA(this.hostElement,"yt-navigate",{endpoint:this.data.prepareAccountEndpoint}):this.openDialog())};
_.V.onYtCommentboxDismiss=function(){this.closeDialog()};
_.V.onYtCommentboxLoadingStart=function(J){J.stopPropagation();this.isCommentboxLoading=!0};
_.V.onYtCommentboxLoadingEnd=function(J){J.stopPropagation();this.isCommentboxLoading=!1};
_.V.onYtVideoLinkButtonCancel=function(J){J.stopPropagation();this.onOpen(J)};
_.V.onYtVideoLinkSelected=function(J){J.stopPropagation();this.onOpen(J)};
_.V.onIronSelect=function(J){J.stopPropagation();J.detail.item.tagName==="YTD-PRIVACY-DROPDOWN-ITEM-RENDERER"&&this.accessRestriction!=J.detail.item.value&&(this.accessRestriction?(this.accessRestriction=J.detail.item.value,this.onOpen(J)):this.accessRestriction=J.detail.item.value)};
_.V.onYtNavigate=function(J){this.get("detail.endpoint.backstageImageUploadEndpoint",J)&&(this.JSC$13685_commentbox.addedAttachment="image",this.JSC$13685_commentbox.submitButtonDisabled=!0,this.onOpen(J))};
_.V.onRequestSent=function(J){if(_.w("web_button_rework"))for(var c=_.M(J.detail),m=c.next();!m.done;m=c.next())_.L(m.value,ws8)&&(this.JSC$13685_commentbox.addedAttachment="image",this.JSC$13685_commentbox.submitButtonDisabled=!0,this.onOpen(J))};
_.V.openDialog=function(){this.JSC$13685_commentbox.accessRestriction=this.accessRestriction;this.isOpen=!0;this.JSC$13685_commentbox.focus()};
_.V.onPopupClosed=function(){_.oQ.getInstance()};
_.V.computeCreationDisabled=function(J){return!!J};
_.V.computeIsCreationDialog=function(J){return!!J&&J==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"};
_.V.computeDisabledPostButton=function(J){if(!J)return null;J.isDisabled=!0;return J};
_.V.computeIsCreationDialogWithHeader=function(J){return!this.inPopupContainer&&!!J&&!!J.authorText&&J.purpose!="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"};
_.V.computeIsHeaderHidden=function(J,c){return!J||c};
_.V.computeDropdownRendererClasses=function(J){return J?["text-secondary-style"]:[]};
_.V.closeDialog=function(){this.isCommentboxLoading=this.isOpen=!1;var J=_.Bj(this.hostElement).querySelector("#access-restrictions-selector").firstElementChild;J&&J.reset()};
Pk.prototype.onPopupClosed=Pk.prototype.onPopupClosed;Pk.prototype.onRequestSent=Pk.prototype.onRequestSent;Pk.prototype.onYtNavigate=Pk.prototype.onYtNavigate;Pk.prototype.onIronSelect=Pk.prototype.onIronSelect;Pk.prototype.onYtVideoLinkSelected=Pk.prototype.onYtVideoLinkSelected;Pk.prototype.onYtVideoLinkButtonCancel=Pk.prototype.onYtVideoLinkButtonCancel;Pk.prototype.onYtCommentboxLoadingEnd=Pk.prototype.onYtCommentboxLoadingEnd;Pk.prototype.onYtCommentboxLoadingStart=Pk.prototype.onYtCommentboxLoadingStart;
Pk.prototype.onYtCommentboxDismiss=Pk.prototype.onYtCommentboxDismiss;Pk.prototype.showButtonEduTooltip=Pk.prototype.showButtonEduTooltip;_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],Pk.prototype,"ytComponentBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],Pk.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Pk.prototype,"ytRendererBehavior",void 0);
_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],Pk.prototype,"ytActionHandlerBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Pk.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Pk.prototype,"isOpen",void 0);_.O([_.U({computed:"computeButtonOverride(data)"}),_.R("design:type",Object)],Pk.prototype,"buttonOverride",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Pk.prototype,"modern",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Pk.prototype,"roundedContainer",void 0);_.O([_.U(),_.R("design:type",Object)],Pk.prototype,"dropdownButtonOverride",void 0);_.O([_.U({computed:"computeCreationDisabled(data.postCreationDisabledText)"}),_.R("design:type",Boolean)],Pk.prototype,"creationDisabled",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],Pk.prototype,"enableCreationBox",void 0);
_.O([_.U({reflectToAttribute:!0,computed:"computeIsCreationDialog(data.purpose)"}),_.R("design:type",Boolean)],Pk.prototype,"isCreationDialog",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Pk.prototype,"inPopupContainer",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeIsCreationDialogWithHeader(data)"}),_.R("design:type",Boolean)],Pk.prototype,"isCreationDialogWithHeader",void 0);_.O([_.U(),_.R("design:type",Object)],Pk.prototype,"accessRestriction",void 0);
_.O([_.U({computed:"computeDropdownRendererClasses(isCreationDialogWithHeader)"}),_.R("design:type",Array)],Pk.prototype,"dropdownRendererClasses",void 0);_.O([_.U(),_.R("design:type",Object)],Pk.prototype,"isCommentboxLoading",void 0);_.O([_.U(),_.R("design:type",Array)],Pk.prototype,"attachmentButtonIds",void 0);_.O([_.Iu("#image-button"),_.R("design:type",HTMLElement)],Pk.prototype,"imageButton",void 0);
_.O([_.Iu("#image-poll-button"),_.R("design:type",HTMLElement)],Pk.prototype,"imagePollButton",void 0);_.O([_.Iu("#quiz-button"),_.R("design:type",HTMLElement)],Pk.prototype,"quizButton",void 0);_.O([_.Iu("#commentbox"),_.R("design:type",Object)],Pk.prototype,"JSC$13685_commentbox",void 0);_.O([_.NE("data.multiImageButtonTooltip","data.imagePollButtonTooltip","data.quizButton"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Pk.prototype,"showButtonEduTooltip",null);
_.O([_.ps("yt-commentbox-dismiss"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],Pk.prototype,"onYtCommentboxDismiss",null);_.O([_.ps("yt-commentbox-loading-start"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],Pk.prototype,"onYtCommentboxLoadingStart",null);
_.O([_.ps("yt-commentbox-loading-end"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],Pk.prototype,"onYtCommentboxLoadingEnd",null);_.O([_.ps("yt-video-link-button-cancel"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],Pk.prototype,"onYtVideoLinkButtonCancel",null);
_.O([_.ps("yt-video-link-selected"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],Pk.prototype,"onYtVideoLinkSelected",null);_.O([_.ps("iron-select"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],Pk.prototype,"onIronSelect",null);_.O([_.ps("yt-navigate"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],Pk.prototype,"onYtNavigate",null);
_.O([_.ps("yt-service-request-sent-button-renderer"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],Pk.prototype,"onRequestSent",null);_.O([_.ps("yt-popup-closed"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Pk.prototype,"onPopupClosed",null);Pk=_.O([_.E({is:"ytd-backstage-post-dialog-renderer",disableElementRegistration:!0})],Pk);
_.v(Pk,"ytd-backstage-post-dialog-renderer",function(){if(cr$!==void 0)return cr$;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return cr$=J},{mode:1});var UV2;var SpQ;var Mp=function(){return _.h.apply(this,arguments)||this};
_.D(Mp,_.h);_.V=Mp.prototype;_.V.computeHeartButtonStyle=function(J){return(J==null?0:J.styleType)?J.styleType.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.V.onYtButtonTap=function(){if(this.data.isEnabled){var J=this.data.isHearted;this.toggle();this.ytRendererBehavior.markDirty();(J=this.getEndpoint(J))&&_.BG().resolve(_.gu).resolveCommand(J,{form:{element:this.hostElement}})}else(J=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.disabledEndpoint))&&this.ytdOpenPopupBehavior.openPopup(J)};
_.V.toggle=function(J){this.set("data.isHearted",J!==void 0?J:!this.data.isHearted)};
_.V.getEndpoint=function(J){var c,m=(c=this.data)==null?void 0:c.heartEndpoint,b;c=(b=this.data)==null?void 0:b.unheartEndpoint;if(m&&c)return J?c:m};
_.V.computeButtonAccessibility=function(J,c){var m,b,x=J==null?void 0:(m=J.heartedAccessibility)==null?void 0:(b=m.accessibilityData)==null?void 0:b.label,P,p;J=J==null?void 0:(P=J.unheartedAccessibility)==null?void 0:(p=P.accessibilityData)==null?void 0:p.label;return c?x:J};
_.eE.Object.defineProperties(Mp.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 J;return _.w("kevlar_system_icons")&&!((J=this.data)==null||!J.isHearted)}}});
Mp.prototype.onYtButtonTap=Mp.prototype.onYtButtonTap;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Mp.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.vL),_.R("design:type",Object)],Mp.prototype,"ytdOpenPopupBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Mp.prototype,"data",void 0);_.O([_.q("data.isHearted"),_.R("design:type",Object),_.R("design:paramtypes",[])],Mp.prototype,"heartTooltip",null);
_.O([_.q("data.isHearted"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Mp.prototype,"iconFilled",null);_.O([_.U({computed:"computeButtonAccessibility(data,data.isHearted)"}),_.R("design:type",String)],Mp.prototype,"buttonAccessibility",void 0);_.O([_.U({computed:"computeHeartButtonStyle(data)",reflectToAttribute:!0}),_.R("design:type",String)],Mp.prototype,"heartButtonStyle",void 0);
_.O([_.ps("tap"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Mp.prototype,"onYtButtonTap",null);Mp=_.O([_.E({is:"ytd-creator-heart-renderer",disableElementRegistration:!0})],Mp);
_.v(Mp,"ytd-creator-heart-renderer",function(){if(SpQ!==void 0)return SpQ;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return SpQ=J},{mode:1});var p5=function(){var J=_.h.apply(this,arguments)||this;J.hasCreatorReply=!1;J.buttonOverrides={size:"S",iconPosition:"icon-only"};J.replyButtonOverrides={size:"S",type:"text"};J.forceIconButton=!_.w("web_modern_buttons");J.modern=_.w("web_modern_buttons");J.buttonTooltipPosition="bottom";J.systemIcons=_.w("kevlar_system_icons");J.replyDialog=null;return J};
_.D(p5,_.h);_.V=p5.prototype;
_.V.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]]"}}}}}};
_.V.detached=function(){this.replyDialog&&this.replyDialog.remove();this.replyDialog=null};
_.V.dataChange=function(){this.replyDialog&&_.Bj(this.replyDialogElement).removeChild(this.replyDialog);this.replyDialog=null;var J,c,m;this.isLiked=this.systemIcons&&!!((J=this.data)==null?0:(c=J.likeButton)==null?0:(m=c.toggleButtonRenderer)==null?0:m.isToggled)};
_.V.computeShowVoteCountBeginning=function(J,c){return J===void 0||c===void 0?!0:J.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!c&&this.ytRendererBehavior.getSimpleString(c)!=="0"};
_.V.computeShowVoteCountEnd=function(J,c){return J===void 0||c===void 0?!0:J.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!c&&this.ytRendererBehavior.getSimpleString(c)!=="0"};
_.V.computeShowCommentCount=function(J,c){return J===void 0||c===void 0?!0:J.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!c&&this.ytRendererBehavior.getSimpleString(c)!=="0"};
_.V.hideReplyDialog=function(){this.replyDialogElement.hidden=!0};
_.V.reply=function(){this.replyButtonElement.firstElementChild?this.replyButtonElement.firstElementChild.firstElementChild.click():this.replyButtonEndElement.firstElementChild&&this.replyButtonEndElement.firstElementChild.firstElementChild.click()};
_.V.showReplyDialog=function(J){J&&(this.replyDialog||(this.replyDialog=document.createElement("ytd-comment-reply-dialog-renderer"),this.replyDialog.id="replybox"),this.replyDialog.isAttached||_.Bj(this.replyDialogElement).appendChild(this.replyDialog),this.replyDialog.data=J,this.replyDialogElement.hidden=!1,this.replyDialog.openDialog())};
_.V.onYtCommentboxDismiss=function(){this.hideReplyDialog()};
_.V.onRequestSent=function(J){if(_.w("web_button_rework")){J=_.M(J.detail);for(var c=J.next();!c.done;c=J.next())(c=this.get("createCommentReplyDialogEndpoint.dialog.commentReplyDialogRenderer",c.value))&&this.showReplyDialog(c)}};
_.V.onYtNavigate=function(J){var c,m;(J=(c=_.L(J.detail.endpoint,_.sEB))==null?void 0:(m=c.dialog)==null?void 0:m.commentReplyDialogRenderer)&&this.showReplyDialog(J)};
_.V.onYtServiceRequestSent=function(J,c){J.stopPropagation();if(c.actions)for(J=0;J<c.actions.length;J++){var m=_.L(c.actions[J],Yo2);m&&this.handleUpdateCommentVoteAction(m)}};
_.V.handleUpdateCommentVoteAction=function(J){this.voteCount=J.voteCount||_.v2("0");J.voteStatus==="LIKE"?this.JSC$13696_ytdDislikeToggleButtonRenderer.toggle(!1):J.voteStatus==="DISLIKE"?this.JSC$13696_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$13696_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$13696_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.V.computeReplyButtonHidden=function(J){return J};
_.V.computeReplyButtonBeginning=function(J){return(J==null?0:J.replyButton)&&J.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?J.replyButton:void 0};
_.V.computeReplyButtonEnd=function(J){return(J==null?0:J.replyButton)&&J.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?J.replyButton:void 0};
_.V.computeActionButtonStyle=function(J){return(J==null?0:J.style)?J.style.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.V.onButtonTooltipPositionChanged=function(){this.ytdReplyButtonRenderer&&(this.ytdReplyButtonRenderer.buttonTooltipPosition=this.buttonTooltipPosition)};
_.V.onYtToggleButton=function(J){var c,m;this.isLiked=this.systemIcons&&!!((c=J.detail)==null?0:(m=c.actions)==null?0:m.like)};
p5.prototype.onYtToggleButton=p5.prototype.onYtToggleButton;p5.prototype.onButtonTooltipPositionChanged=p5.prototype.onButtonTooltipPositionChanged;p5.prototype.onYtServiceRequestSent=p5.prototype.onYtServiceRequestSent;p5.prototype.onYtNavigate=p5.prototype.onYtNavigate;p5.prototype.onRequestSent=p5.prototype.onRequestSent;p5.prototype.onYtCommentboxDismiss=p5.prototype.onYtCommentboxDismiss;p5.prototype.dataChange=p5.prototype.dataChange;
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],p5.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],p5.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],p5.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],p5.prototype,"voteCount",void 0);_.O([_.U(),_.R("design:type",Object)],p5.prototype,"commentCount",void 0);_.O([_.U(),_.R("design:type",Object)],p5.prototype,"replyThumbnail",void 0);
_.O([_.U(),_.R("design:type",Object)],p5.prototype,"hasCreatorReply",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],p5.prototype,"enableCreationBox",void 0);_.O([_.U({computed:"computeActionButtonStyle(data)",reflectToAttribute:!0}),_.R("design:type",String)],p5.prototype,"actionButtonsStyle",void 0);_.O([_.U({computed:"computeReplyButtonBeginning(data)"}),_.R("design:type",Object)],p5.prototype,"replyButtonBeginning",void 0);
_.O([_.U({computed:"computeReplyButtonEnd(data)"}),_.R("design:type",Object)],p5.prototype,"replyButtonEnd",void 0);_.O([_.U(),_.R("design:type",Object)],p5.prototype,"buttonOverrides",void 0);_.O([_.U(),_.R("design:type",Object)],p5.prototype,"replyButtonOverrides",void 0);_.O([_.U(),_.R("design:type",Object)],p5.prototype,"forceIconButton",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],p5.prototype,"useCommentIcon",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],p5.prototype,"modern",void 0);_.O([_.U(),_.R("design:type",Object)],p5.prototype,"buttonTooltipPosition",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],p5.prototype,"systemIcons",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],p5.prototype,"isLiked",void 0);_.O([_.Iu("ytd-button-renderer"),_.R("design:type",Object)],p5.prototype,"ytdReplyButtonRenderer",void 0);
_.O([_.Iu("#like-button"),_.R("design:type",Object)],p5.prototype,"JSC$13696_ytdLikeToggleButtonRenderer",void 0);_.O([_.Iu("#dislike-button"),_.R("design:type",Object)],p5.prototype,"JSC$13696_ytdDislikeToggleButtonRenderer",void 0);_.O([_.Iu("#reply-dialog"),_.R("design:type",HTMLElement)],p5.prototype,"replyDialogElement",void 0);_.O([_.Iu("#reply-button"),_.R("design:type",HTMLElement)],p5.prototype,"replyButtonElement",void 0);
_.O([_.Iu("#reply-button-end"),_.R("design:type",HTMLElement)],p5.prototype,"replyButtonEndElement",void 0);_.O([_.kr("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],p5.prototype,"dataChange",null);_.O([_.ps("yt-commentbox-dismiss"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],p5.prototype,"onYtCommentboxDismiss",null);
_.O([_.ps("yt-service-request-sent-button-renderer"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],p5.prototype,"onRequestSent",null);_.O([_.ps("yt-navigate"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],p5.prototype,"onYtNavigate",null);
_.O([_.ps("yt-service-request-sent"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,_.qd]),_.R("design:returntype")],p5.prototype,"onYtServiceRequestSent",null);_.O([_.NE("buttonTooltipPosition"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],p5.prototype,"onButtonTooltipPositionChanged",null);
_.O([_.ps("yt-toggle-button"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],p5.prototype,"onYtToggleButton",null);p5=_.O([_.E({is:"ytd-comment-action-buttons-renderer",disableElementRegistration:!0})],p5);
_.v(p5,"ytd-comment-action-buttons-renderer",function(){if(UV2!==void 0)return UV2;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return UV2=J},{mode:1});var hRQ;var Np=function(){return _.h.apply(this,arguments)||this};
_.D(Np,_.h);Np.prototype.focus=function(){_.Bj(this.hostElement).querySelector("#commentbox").focus()};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Np.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Np.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],Np.prototype,"zeroStepChannelCreationRenderer",void 0);Np=_.O([_.E({is:"ytd-comment-dialog-renderer",disableElementRegistration:!0})],Np);
_.v(Np,"ytd-comment-dialog-renderer",function(){if(hRQ!==void 0)return hRQ;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return hRQ=J},{mode:1});var dVj;var tX=function(){var J=_.h.apply(this,arguments)||this;J.buttonOverrides={size:"S",iconPosition:"icon-only"};J.replyButtonOverrides={size:"S",type:"text"};return J};
_.D(tX,_.h);_.V=tX.prototype;_.V.configureRendererStamper=function(){return{creatorHeartSupportedRenderer:{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}}}};
_.V.detached=function(){this.replyBox&&this.replyBox.remove()};
_.V.showReplyDialog=function(J){if(J){var c=this.replyBox;c||(c=document.createElement("ytd-comment-reply-dialog-renderer"),c.id="replybox",_.Bj(this.replyDialogDiv).appendChild(c));c.data=J;this.replyDialogDiv.hidden=!1;c.openDialog()}};
_.V.hideReplyDialogDiv=function(){this.replyDialogDiv.hidden=!0};
_.V.onYtServiceRequestSent=function(J,c){J.stopPropagation();if(c.actions)for(var m=0;m<c.actions.length;m++){var b=_.L(c.actions[m],Yo2);b?this.handleUpdateCommentVoteAction(b):J.target===this.heartButton&&this.toggleHeartState()}};
_.V.handleUpdateCommentVoteAction=function(J){var c;(c=this.toolbarState)!=null&&c.key&&this.ytdReduxBehavior.dispatch(_.DI("engagementToolbarStateEntityPayload",this.toolbarState.key,{likeState:J.voteStatus==="LIKE"?"TOOLBAR_LIKE_STATE_LIKED":J.voteStatus==="DISLIKE"?"TOOLBAR_LIKE_STATE_DISLIKED":"TOOLBAR_LIKE_STATE_INDIFFERENT"}))};
_.V.toggleHeartState=function(){var J;(J=this.toolbarState)!=null&&J.key&&this.ytdReduxBehavior.dispatch(_.DI("engagementToolbarStateEntityPayload",this.toolbarState.key,{heartState:this.toolbarState.heartState==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}))};
_.eE.Object.defineProperties(tX.prototype,{likeCount:{configurable:!0,enumerable:!0,get:function(){var J,c,m;return(((J=this.toolbarState)==null?void 0:J.likeState)==="TOOLBAR_LIKE_STATE_LIKED"?(c=this.toolbarData)==null?void 0:c.likeCountLiked:(m=this.toolbarData)==null?void 0:m.likeCountNotliked)||""}},
showLikeCount:{configurable:!0,enumerable:!0,get:function(){return this.likeCount.trim().length>0}},
isVisiblyDisabled:{configurable:!0,enumerable:!0,get:function(){var J;return((J=this.toolbarSurface)==null?void 0:J.commentDisabledActionCommand)!==void 0}},
isSubscribersOnlyComments:{configurable:!0,enumerable:!0,get:function(){var J;return((J=this.toolbarSurface)==null?void 0:J.subscribersOnlySnackbarCommand)!==void 0}},
hasPrepareAccountCommand:{configurable:!0,enumerable:!0,get:function(){var J;return((J=this.toolbarSurface)==null?void 0:J.prepareAccountCommand)!==void 0&&!_.w("comment_prepare_account_command_killswitch")}},
likeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var J,c=_.L((J=this.toolbarSurface)==null?void 0:J.prepareAccountCommand,_.Xz),m,b,x,P,p,t,I,a,k;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((m=this.toolbarSharedData)==null||!m.disabledLikeCommand),isToggled:!this.isVisiblyDisabled&&((b=this.toolbarState)==null?void 0:b.likeState)==="TOOLBAR_LIKE_STATE_LIKED",defaultIcon:{iconType:"LIKE"},defaultServiceEndpoint:this.isVisiblyDisabled?
void 0:c!=null?c:_.L((x=this.toolbarSurface)==null?void 0:x.likeCommand,_.Xz),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:c!=null?c:_.L((P=this.toolbarSurface)==null?void 0:P.unlikeCommand,_.Xz),defaultCommand:this.isVisiblyDisabled?_.L((p=this.toolbarSurface)==null?void 0:p.commentDisabledActionCommand,_.Xz):void 0,defaultTooltip:(t=this.toolbarData)==null?void 0:t.likeInactiveTooltip,toggledTooltip:(I=this.toolbarData)==null?void 0:I.likeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?
"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:(a=this.toolbarData)==null?void 0:a.likeButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(k=this.toolbarSharedData)==null?void 0:k.unlikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
dislikeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var J,c=_.L((J=this.toolbarSurface)==null?void 0:J.prepareAccountCommand,_.Xz),m,b,x,P,p,t,I,a,k,H;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((m=this.toolbarSharedData)==null||!m.disabledDislikeCommand),isToggled:!this.isVisiblyDisabled&&((b=this.toolbarState)==null?void 0:b.likeState)==="TOOLBAR_LIKE_STATE_DISLIKED",defaultIcon:{iconType:"DISLIKE"},
defaultServiceEndpoint:this.isVisiblyDisabled?void 0:c!=null?c:_.L((x=this.toolbarSurface)==null?void 0:x.dislikeCommand,_.Xz),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:c!=null?c:_.L((P=this.toolbarSurface)==null?void 0:P.undislikeCommand,_.Xz),defaultCommand:this.isVisiblyDisabled?_.L((p=this.toolbarSurface)==null?void 0:p.commentDisabledActionCommand,_.Xz):void 0,defaultTooltip:(t=this.toolbarData)==null?void 0:t.dislikeInactiveTooltip,toggledTooltip:(I=this.toolbarData)==null?void 0:
I.dislikeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:this.isReply?(a=this.toolbarSharedData)==null?void 0:a.dislikeReplyButtonA11y:(k=this.toolbarSharedData)==null?void 0:k.dislikeCommentButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(H=this.toolbarSharedData)==null?void 0:H.undislikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
creatorHeartSupportedRenderer:{configurable:!0,enumerable:!0,get:function(){var J,c,m;if(((J=this.toolbarState)==null?void 0:J.heartState)!==void 0&&((c=this.toolbarState)==null?void 0:c.heartState)!=="TOOLBAR_HEART_STATE_UNKNOWN"&&((m=this.toolbarState)==null?void 0:m.heartState)!=="TOOLBAR_HEART_STATE_UNHEARTED"){var b,x,P,p,t,I,a,k,H,T,r,W,Y,Z;return{creatorHeartRenderer:{creatorThumbnail:{thumbnails:[{url:(b=this.toolbarData)==null?void 0:b.creatorThumbnailUrl,width:32,height:32}]},heartIcon:{iconType:"FULL_HEART"},
isHearted:((x=this.toolbarState)==null?void 0:x.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((P=this.toolbarState)==null?void 0:P.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE",isEnabled:!this.isVisiblyDisabled&&(((p=this.toolbarState)==null?void 0:p.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((t=this.toolbarState)==null?void 0:t.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"),heartEndpoint:this.isVisiblyDisabled?void 0:_.L((I=this.toolbarSurface)==null?void 0:I.heartCommand,
_.Xz),unheartEndpoint:this.isVisiblyDisabled?void 0:_.L((a=this.toolbarSurface)==null?void 0:a.unheartCommand,_.Xz),disabledEndpoint:this.isVisiblyDisabled?_.L((k=this.toolbarSurface)==null?void 0:k.commentDisabledActionCommand,_.Xz):void 0,styleType:this.isVisiblyDisabled?"CREATOR_HEART_STYLE_TYPE_VISIBLY_DISABLED":void 0,heartedTooltip:(H=this.toolbarData)==null?void 0:H.heartActiveTooltip,unheartedTooltip:(T=this.toolbarData)==null?void 0:T.heartInactiveTooltip,heartedAccessibility:{accessibilityData:{label:((r=
this.toolbarState)==null?void 0:r.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?(W=this.toolbarSharedData)==null?void 0:W.unheartButtonA11y:(Y=this.toolbarSharedData)==null?void 0:Y.heartButtonA11y}},unheartedAccessibility:{accessibilityData:{label:(Z=this.toolbarSharedData)==null?void 0:Z.heartButtonA11y}}}}}}},
hasReplyCommand:{configurable:!0,enumerable:!0,get:function(){var J;return!((J=this.toolbarSurface)==null||!J.replyCommand)}},
replyButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var J,c,m,b;return{size:"SIZE_DEFAULT",style:this.isVisiblyDisabled||this.isSubscribersOnlyComments?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT",text:{runs:[{text:(J=this.commentStrings)==null?void 0:J.replyButtonText}]},navigationEndpoint:this.isVisiblyDisabled||this.isSubscribersOnlyComments?void 0:_.L((c=this.toolbarSurface)==null?void 0:c.replyCommand,_.Xz),command:this.isVisiblyDisabled?_.L((m=this.toolbarSurface)==null?void 0:m.commentDisabledActionCommand,
_.Xz):this.isSubscribersOnlyComments?_.L((b=this.toolbarSurface)==null?void 0:b.subscribersOnlySnackbarCommand,_.Xz):void 0}}}});
tX.prototype.onYtServiceRequestSent=tX.prototype.onYtServiceRequestSent;tX.prototype.hideReplyDialogDiv=tX.prototype.hideReplyDialogDiv;_.O([_.U(),_.R("design:type",Object)],tX.prototype,"commentStrings",void 0);_.O([_.U(),_.R("design:type",Boolean)],tX.prototype,"isReply",void 0);_.O([_.U(),_.R("design:type",Object)],tX.prototype,"toolbarData",void 0);_.O([_.U(),_.R("design:type",Object)],tX.prototype,"toolbarSharedData",void 0);
_.O([_.U(),_.R("design:type",String)],tX.prototype,"toolbarStateKey",void 0);_.O([_.U(),_.R("design:type",String)],tX.prototype,"toolbarSurfaceKey",void 0);_.O([_.f(_.fY),_.R("design:type",Object)],tX.prototype,"ytdReduxBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],tX.prototype,"ytComponentBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],tX.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.Iu("#reply-dialog"),_.R("design:type",HTMLElement)],tX.prototype,"replyDialogDiv",void 0);_.O([_.Iu("#replybox"),_.R("design:type",Object)],tX.prototype,"replyBox",void 0);_.O([_.Iu("ytd-creator-heart-renderer"),_.R("design:type",Object)],tX.prototype,"heartButton",void 0);_.O([_.U({selector:function(J,c){return _.P2(J.entities,"engagementToolbarStateEntityPayload",c)},
selectorArgs:["toolbarStateKey"]}),_.R("design:type",Object)],tX.prototype,"toolbarState",void 0);_.O([_.U({selector:TzT,selectorArgs:["toolbarSurfaceKey"]}),_.R("design:type",Object)],tX.prototype,"toolbarSurface",void 0);_.O([_.U(),_.R("design:type",Object)],tX.prototype,"buttonOverrides",void 0);_.O([_.ps("yt-commentbox-dismiss"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],tX.prototype,"hideReplyDialogDiv",null);
_.O([_.q("toolbarData","toolbarState"),_.R("design:type",String),_.R("design:paramtypes",[])],tX.prototype,"likeCount",null);_.O([_.q("likeCount"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],tX.prototype,"showLikeCount",null);_.O([_.q("toolbarSurface"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],tX.prototype,"isVisiblyDisabled",null);_.O([_.q("toolbarSurface"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],tX.prototype,"isSubscribersOnlyComments",null);
_.O([_.q("toolbarSurface"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],tX.prototype,"hasPrepareAccountCommand",null);_.O([_.q("toolbarData","toolbarState","toolbarSurface"),_.R("design:type",Object),_.R("design:paramtypes",[])],tX.prototype,"likeToggleButtonRenderer",null);_.O([_.q("isReply","toolbarData","toolbarState","toolbarSurface"),_.R("design:type",Object),_.R("design:paramtypes",[])],tX.prototype,"dislikeToggleButtonRenderer",null);
_.O([_.q("toolbarData","toolbarState","toolbarSurface"),_.R("design:type",Object),_.R("design:paramtypes",[])],tX.prototype,"creatorHeartSupportedRenderer",null);_.O([_.q("toolbarSurface"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],tX.prototype,"hasReplyCommand",null);_.O([_.q("toolbarSurface","commentStrings","isVisiblyDisabled"),_.R("design:type",Object),_.R("design:paramtypes",[])],tX.prototype,"replyButtonRenderer",null);
_.O([_.U(),_.R("design:type",Object)],tX.prototype,"replyButtonOverrides",void 0);_.O([_.ps("yt-service-request-sent"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,_.qd]),_.R("design:returntype")],tX.prototype,"onYtServiceRequestSent",null);tX=_.O([_.E({is:"ytd-comment-engagement-bar",disableElementRegistration:!0})],tX);
_.v(tX,"ytd-comment-engagement-bar",function(){if(dVj!==void 0)return dVj;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return dVj=J},{mode:1});var $V_;var IJ=function(){return _.h.apply(this,arguments)||this};
_.D(IJ,_.h);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],IJ.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],IJ.prototype,"data",void 0);IJ=_.O([_.E({is:"ytd-comment-inline-thumbnail-renderer",disableElementRegistration:!0})],IJ);
_.v(IJ,"ytd-comment-inline-thumbnail-renderer",function(){if($V_!==void 0)return $V_;var J=document.createElement("template");_.z(J,'\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>');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return $V_=J},{mode:1});var Gs6;var K5=function(){return _.h.apply(this,arguments)||this};
_.D(K5,_.h);_.O([_.U(),_.R("design:type",Object)],K5.prototype,"data",void 0);K5=_.O([_.E({is:"ytd-comment-pause-composer-renderer",disableElementRegistration:!0})],K5);
_.v(K5,"ytd-comment-pause-composer-renderer",function(){if(Gs6!==void 0)return Gs6;var J=document.createElement("template");_.z(J,'\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>');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return Gs6=J},{mode:1});var EFz;var vF_;var C5=function(){var J=_.h.apply(this,arguments)||this;J.isOpen=!1;return J};
_.D(C5,_.h);_.V=C5.prototype;_.V.dataChanged=function(){this.isOpen=!1};
_.V.onTap=function(){this.data&&(this.data.navigationEndpoint?_.cA(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):this.openDialog())};
_.V.focus=function(){this.JSC$13722_commentbox.focus()};
_.V.onYtCommentboxDismiss=function(){this.isOpen=!1};
_.V.openDialog=function(){this.isOpen=!0;this.JSC$13722_commentbox.focus();this.JSC$13722_commentbox.maybeHeightChanged()};
C5.prototype.onYtCommentboxDismiss=C5.prototype.onYtCommentboxDismiss;C5.prototype.dataChanged=C5.prototype.dataChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],C5.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],C5.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],C5.prototype,"isOpen",void 0);_.O([_.Iu("#commentbox"),_.R("design:type",Object)],C5.prototype,"JSC$13722_commentbox",void 0);
_.O([_.kr("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],C5.prototype,"dataChanged",null);_.O([_.ps("yt-commentbox-dismiss"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],C5.prototype,"onYtCommentboxDismiss",null);C5=_.O([_.E({is:"ytd-comment-reply-dialog-renderer",disableElementRegistration:!0})],C5);
_.v(C5,"ytd-comment-reply-dialog-renderer",function(){if(vF_!==void 0)return vF_;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return vF_=J},{mode:1});var Opu;var aJ=function(){return _.h.apply(this,arguments)||this};
_.D(aJ,_.h);_.eE.Object.defineProperties(aJ.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var J,c,m=(J=this.data)==null?void 0:(c=J.icon)==null?void 0:c.iconType;return m?"yt-icons:"+m.toLowerCase():null}}});
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],aJ.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],aJ.prototype,"data",void 0);_.O([_.U(),_.q("data.icon"),_.R("design:type",Object),_.R("design:paramtypes",[])],aJ.prototype,"icon",null);aJ=_.O([_.E({is:"ytd-pinned-comment-badge-renderer",disableElementRegistration:!0})],aJ);
_.v(aJ,"ytd-pinned-comment-badge-renderer",function(){if(Opu!==void 0)return Opu;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return Opu=J},{mode:1});var Arz;var RRL={},oFB={input:!0,meta:!0,br:!0,link:!0,img:!0},kO=null;RRL.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(){kO==null&&(kO=document.createElement("tp-yt-paper-tooltip"),kO.offset=8,kO.fitToVisibleBounds=!0)},
onMouseOver_:function(J){if(J=_.qA(J.target,function(x){return x==this||x.getAttribute&&x.getAttribute("shared-tooltip-text")}.bind(this),!0)){var c=J.getAttribute("shared-tooltip-text");
if(c){var m=this,b=null;J!=this&&(J.tagName.toLowerCase()in oFB?m=J.parentElement:m=J,J.id&&(b=J.id));this.polymerController.createTooltipIfRequired_();if(kO.parentElement!=m||kO.for!=b)(0,_.xr)(kO).textContent=c,_.Bj(m).appendChild(kO),kO.for=b,kO.animationDelay=this.polymerController.sharedTooltipAnimationDelay,kO.position=this.polymerController.sharedTooltipPosition}}}};var Hk=function(){return _.h.apply(this,arguments)||this};
_.D(Hk,_.h);Hk.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]]"}}}}}};
Hk.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","img")};
Hk.prototype.colorChanged=function(){var J,c,m,b=(J=this.data)==null?void 0:(c=J.color)==null?void 0:(m=c.basicColorPaletteData)==null?void 0:m.foregroundBodyColor;b&&(this.rgbBadgeColor=_.XB(b));_.Bj(this.hostElement).querySelector("#icon").style.color=this.rgbBadgeColor};
Hk.prototype.tooltipChanged=function(){var J;((J=this.data)==null?0:J.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
Hk.prototype.tooltipChanged=Hk.prototype.tooltipChanged;Hk.prototype.colorChanged=Hk.prototype.colorChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Hk.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],Hk.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(RRL.YtSharedTooltipBehavior),_.R("design:type",Object)],Hk.prototype,"ytSharedTooltipBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Hk.prototype,"data",void 0);
_.O([_.U({value:"#4285F4"}),_.R("design:type",String)],Hk.prototype,"rgbBadgeColor",void 0);_.O([_.NE("data.color"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Hk.prototype,"colorChanged",null);_.O([_.NE("data.tooltip"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Hk.prototype,"tooltipChanged",null);Hk=_.O([_.E({is:"ytd-sponsor-comment-badge-renderer",disableElementRegistration:!0})],Hk);
_.v(Hk,"ytd-sponsor-comment-badge-renderer",function(){if(Arz!==void 0)return Arz;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return Arz=J},{mode:1});var QKC;var eRB;var ip=function(){return _.h.apply(this,arguments)||this};
_.D(ip,_.h);ip.prototype.computeState=function(J){switch(J==null?void 0:J.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"}};
ip.prototype.updateStateIdentifier=function(J){if(this.viewModel.triStateKey){var c=this.viewModel.triStateKey;this.ytdReduxBehavior.dispatch(_.DI("triStateButtonStateEntityPayload",c,{key:c,stateIdentifier:J}))}};
ip.prototype.onClick=function(){var J=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(){J.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")},
onServerError:function(){J.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE")}}})):this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")}};
_.eE.Object.defineProperties(ip.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 J;return((J=this.data)==null?void 0:J.buttonText)||""}}});
_.O([_.U(),_.R("design:type",Object)],ip.prototype,"viewModel",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],ip.prototype,"ytComponentBehavior",void 0);_.O([_.f(_.fY),_.R("design:type",Object)],ip.prototype,"ytdReduxBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],ip.prototype,"ytRendererBehavior",void 0);_.O([_.U({selector:wKJ,selectorArgs:["viewModel.triStateKey"]}),_.R("design:type",Object)],ip.prototype,"triStateButtonStateEntity",void 0);
_.O([_.U({computed:"computeState(triStateButtonStateEntity)",reflectToAttribute:!0}),_.R("design:type",String)],ip.prototype,"state",void 0);_.O([_.q("viewModel","state"),_.R("design:type",Object),_.R("design:paramtypes",[])],ip.prototype,"data",null);_.O([_.q("data"),_.R("design:type",String),_.R("design:paramtypes",[])],ip.prototype,"buttonText",null);ip=_.O([_.E({disableElementRegistration:!0,is:"ytd-tri-state-button-view-model"})],ip);
_.v(ip,"ytd-tri-state-button-view-model",function(){if(eRB!==void 0)return eRB;var J=document.createElement("template");_.z(J,'\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>');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return eRB=J},{mode:1});var jK_;var FDz;var n5=function(){var J=_.h.apply(this,arguments)||this;J.defaultIconToFilled=!_.w("kevlar_fill_comment_chip_icon_killswitch");return J};
_.D(n5,_.h);n5.prototype.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"}};
n5.prototype.dataChanged=function(){if(this.data){var J,c;((J=this.data.chipColorPalette)==null?0:J.backgroundColor)&&((c=this.data.chipColorPalette)==null?0:c.foregroundTitleColor)&&_.V1(this.hostElement,{"--yt-pdg-comment-chip-background-color":_.Zn(this.data.chipColorPalette.backgroundColor),"--yt-pdg-comment-chip-font-color":_.Zn(this.data.chipColorPalette.foregroundTitleColor)});var m;((m=this.data)==null?0:m.command)?(_.V1(this.hostElement,{"--yt-pdg-comment-chip-cursor":"pointer"}),this.hostElement.setAttribute("role",
"button"),this.hostElement.setAttribute("tabindex","0")):(_.V1(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}};
n5.prototype.onTap=function(){var J;if(this.data&&(J=this.data)!=null&&J.command){var c;this.ytComponentBehavior.resolveCommand((c=this.data)==null?void 0:c.command)}};
n5.prototype.getIconSize=function(){return _.w("kevlar_fill_comment_chip_icon_killswitch")?24:12};
n5.prototype.onTap=n5.prototype.onTap;n5.prototype.dataChanged=n5.prototype.dataChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],n5.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],n5.prototype,"ytComponentBehavior",void 0);_.O([_.f(_.KV),_.R("design:type",Object)],n5.prototype,"ironA11yKeysBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],n5.prototype,"data",void 0);
_.O([_.U(),_.R("design:type",Object)],n5.prototype,"basePriceText",void 0);_.O([_.U(),_.R("design:type",Object)],n5.prototype,"chipIcon",void 0);_.O([_.U(),_.R("design:type",Object)],n5.prototype,"defaultIconToFilled",void 0);_.O([_.kr("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],n5.prototype,"dataChanged",null);_.O([_.ps("tap"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],n5.prototype,"onTap",null);
n5=_.O([_.uM({is:"yt-pdg-comment-chip-renderer",disableElementRegistration:!0})],n5);
_.v(n5,"yt-pdg-comment-chip-renderer",function(){if(FDz===void 0){var J=document.createElement("template");_.z(J,'\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>');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;jK_===void 0&&(jK_=document.createElement("template"));var b=jK_;m.call(c,b.content.cloneNode(!0),J.content.firstChild);FDz=J}J=FDz;return J},{mode:2});var Ta=function(){var J=_.h.apply(this,arguments)||this;J.useSmallAvatars=_.w("small_avatars_for_comments");J.webWatchCompactComments=_.w("web_watch_compact_comments");J.editDialog=null;return J};
_.D(Ta,_.h);_.V=Ta.prototype;_.V.onShow=function(){_.Xv("cmv",void 0,"wn_comments")};
_.V.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"}}}};
_.V.detached=function(){this.editDialog=null;this.expander.reset()};
_.V.updateBackgroundColor=function(){if(this.backgroundColor){var J={"--ytd-comment-paid-background-color":_.Zn(this.backgroundColor),"--ytd-decorated-comment-background-offset-left":"8px","--ytd-decorated-comment-background-offset-top":"8px"};_.V1(this.hostElement,J)}else _.V1(this.hostElement,{"--ytd-comment-paid-background-color":"initial"})};
_.V.resetExpander=function(){var J;(J=this.expander)==null||J.reset()};
_.V.openEditDialog=function(J){J.dialog&&(this.editDialog=J.dialog,this.editReplyDialogContainer?this.editReplyDialogContainer.openDialog():this.editCommentDialogContainer&&this.editCommentDialogContainer.focus())};
_.V.onYtNavigate=function(J){var c=J.detail.endpoint;if(c=_.L(c,_.LRZ)||_.L(c,_.DBu))J.stopPropagation(),this.openEditDialog(c)};
_.V.onYtCommentboxDismiss=function(){this.editDialog=null;_.V1(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":"0px"})};
_.V.onAuthorThumbnailClicked=function(){var J=this;_.w("enable_profile_cards_on_comments")&&this!=null&&this.authorThumbnailEndpoint&&this.ytComponentBehavior.resolveCommand(this.authorThumbnailEndpoint,{commandController:{onSuccess:function(c,m){J.onAuthorThumbnailEndpointSuccess(m)},
onServerError:function(c,m){_.qz(new _.w3("Failed to resolve the command",m))}}})};
_.V.onAuthorThumbnailEndpointSuccess=function(J){if((J=J==null?void 0:J.popupCommand)&&this.authorThumbnailAnchor){this.ytComponentBehavior.resolveCommand(J,{form:{element:this.authorThumbnailAnchor}});this.logScreenVe();J=J==null?void 0:J.clickTrackingParams;var c=_.fl();J&&c&&_.C7().graftServerVe(J,c)}};
_.V.logScreenVe=function(){_.ge(_.C7(),66557)};
_.V.onYtCommentboxResize=function(J){var c;(J==null?0:(c=J.detail)==null?0:c.height)&&_.V1(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":J.detail.height+"px"})};
_.eE.Object.defineProperties(Ta.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 J,c=(J=this.commentEntity)==null?void 0:J.author;return c&&(c.isCreator||c.isVerified||c.isArtist)?{renderer:{authorEndpoint:c.channelPageEndpoint?_.L(c.channelPageEndpoint,_.Xz):_.L(c.channelCommand,_.Xz),authorText:{runs:[{text:c.displayName}]},color:c.isCreator?{basicColorPaletteData:{backgroundColor:Number.parseInt("ff888888",16),foregroundTitleColor:Number.parseInt("ffffffff",16)}}:void 0,icon:c.isArtist?{iconType:"AUDIO_BADGE"}:
c.isVerified?{iconType:c.isCreator?"CHECK_CIRCLE_THICK":"CHECK"}:void 0,iconTooltip:c.isArtist||c.isVerified?c.innerBadgeA11y:void 0}}:null}},
hasAuthorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.authorCommentBadge}},
sponsorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var J,c=(J=this.commentEntity)==null?void 0:J.author;return c!=null&&c.sponsorBadgeUrl?{renderer:{customBadge:{thumbnails:[{url:c.sponsorBadgeUrl}]},tooltip:c.sponsorBadgeA11y}}:null}},
hasSponsorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.sponsorCommentBadge}},
pdgCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var J;return _.L((J=this.commentSurfaceEntity)==null?void 0:J.pdgCommentChip,_.gcQ)||null}},
hasVoiceReply:{configurable:!0,enumerable:!0,get:function(){var J;return this.voiceReplyContainerViewModel&&((J=this.voiceReplyContainerViewModel)==null?void 0:J.transcriptText)}},
voiceReplyContainerViewModel:{configurable:!0,enumerable:!0,get:function(){var J;return _.L((J=this.commentSurfaceEntity)==null?void 0:J.voiceReplyContainerViewModel,d__)||null}},
voiceReplyUnavailableText:{configurable:!0,enumerable:!0,get:function(){var J;return this.voiceReplyContainerViewModel&&(J=this.voiceReplyContainerViewModel)!=null&&J.voiceReplyUnavailableText?this.voiceReplyContainerViewModel.voiceReplyUnavailableText:null}},
viewModel:{configurable:!0,enumerable:!0,get:function(){return this.data||{}}},
backgroundColor:{configurable:!0,enumerable:!0,get:function(){var J,c;return(c=(J=this.commentSurfaceEntity)==null?void 0:J.commentBackgroundColor)!=null?c:null}},
optimalReadingWidthComments:{configurable:!0,enumerable:!0,get:function(){return _.w("web_watch_compact_comments")}},
isReply:{configurable:!0,enumerable:!0,get:function(){var J,c;return(((J=this.commentEntity)==null?void 0:(c=J.properties)==null?void 0:c.replyLevel)||0)>0}},
authorThumbnailEndpoint:{configurable:!0,enumerable:!0,get:function(){var J,c;if(_.w("enable_profile_cards_on_comments")&&((J=this.commentEntity)==null?0:(c=J.author)==null?0:c.profileCardEndpoint)&&this.viewModel.allowProfileCard){var m,b;return _.L((m=this.commentEntity)==null?void 0:(b=m.author)==null?void 0:b.profileCardEndpoint,_.Xz)}var x,P;return _.L((x=this.commentEntity)==null?void 0:(P=x.avatar)==null?void 0:P.endpoint,_.Xz)}},
authorNameEndpoint:{configurable:!0,enumerable:!0,get:function(){var J,c;if(_.w("enable_profile_cards_on_comments")&&((J=this.commentEntity)==null?0:(c=J.author)==null?0:c.channelPageEndpoint)){var m,b;return _.L((m=this.commentEntity)==null?void 0:(b=m.author)==null?void 0:b.channelPageEndpoint,_.Xz)}var x,P;return _.L((x=this.commentEntity)==null?void 0:(P=x.avatar)==null?void 0:P.endpoint,_.Xz)}},
authorThumbnail:{configurable:!0,enumerable:!0,get:function(){var J,c,m,b,x=(J=this.commentEntity)==null?void 0:(c=J.avatar)==null?void 0:(m=c.image)==null?void 0:(b=m.sources)==null?void 0:b[0];return x?{thumbnails:[{url:x.url,width:x.width,height:x.height}]}:null}},
authorTextClass:{configurable:!0,enumerable:!0,get:function(){var J,c;return((J=this.commentEntity)==null?0:(c=J.author)==null?0:c.isCreator)?"channel-owner":""}},
authorChannelName:{configurable:!0,enumerable:!0,get:function(){var J,c;return((J=this.commentEntity)==null?void 0:(c=J.author)==null?void 0:c.displayName)||""}},
publishedTime:{configurable:!0,enumerable:!0,get:function(){var J,c;return((J=this.commentEntity)==null?void 0:(c=J.properties)==null?void 0:c.publishedTime)||null}},
publishedTimeCommand:{configurable:!0,enumerable:!0,get:function(){var J;return _.L((J=this.commentSurfaceEntity)==null?void 0:J.publishedTimeCommand,_.Xz)||null}},
contentText:{configurable:!0,enumerable:!0,get:function(){var J,c;if(((J=this.commentEntity)==null?0:J.translatedContent)&&((c=this.translateButtonState)==null?void 0:c.stateIdentifier)==="TRI_STATE_IDENTIFIER_TOGGLED_STATE")return this.commentEntity.translatedContent;var m;if((m=this.voiceReplyContainerViewModel)==null?0:m.transcriptText)return this.voiceReplyContainerViewModel.transcriptText;var b,x;return((b=this.commentEntity)==null?void 0:(x=b.properties)==null?void 0:x.content)||null}},
shouldShowReadMoreInitially:{configurable:!0,enumerable:!0,get:function(){return!1}},
expandText:{configurable:!0,enumerable:!0,get:function(){var J,c;return((J=this.commentSharedEntity)==null?void 0:(c=J.strings)==null?void 0:c.expandText)||""}},
collapseText:{configurable:!0,enumerable:!0,get:function(){var J,c;return((J=this.commentSharedEntity)==null?void 0:(c=J.strings)==null?void 0:c.collapseText)||""}},
shouldShowTranslateButton:{configurable:!0,enumerable:!0,get:function(){var J;return!((J=this.commentEntity)==null||!J.isTranslationAvailable)}},
translateButton:{configurable:!0,enumerable:!0,get:function(){if(!this.commentEntity||!this.commentSharedEntity)return{};var J,c,m=(c=_.L((J=this.viewModel)==null?void 0:J.translateButton,hbQ))!=null?c:{},b,x,P,p,t,I,a,k,H,T,r;return Object.assign({},m,{untoggledStateData:Object.assign({},m.untoggledStateData,{buttonText:(b=this.commentEntity)==null?void 0:(x=b.translateData)==null?void 0:x.text}),togglingStateData:Object.assign({},m.togglingStateData,{buttonText:(P=this.commentSharedEntity)==null?
void 0:(p=P.strings)==null?void 0:p.translatingText}),toggledStateData:Object.assign({},m.toggledStateData,{buttonText:(t=this.commentSharedEntity)==null?void 0:(I=t.strings)==null?void 0:I.seeOriginalText}),transitionCommand:((a=this.commentEntity)==null?0:a.translatedContent)?void 0:_.L((k=this.commentEntity)==null?void 0:(H=k.translateData)==null?void 0:H.translateComment,_.Xz),triStateKey:(T=this.commentEntity)==null?void 0:(r=T.properties)==null?void 0:r.translateButtonEntityKey})}},
overflowMenuRenderer:{configurable:!0,enumerable:!0,get:function(){var J,c,m;return((c=_.L(_.L((J=this.toolbarSurface)==null?void 0:J.menuCommand,_.Xz),WRC))==null?void 0:(m=c.menu)==null?void 0:m.menuRenderer)||null}}});
Ta.prototype.onYtCommentboxResize=Ta.prototype.onYtCommentboxResize;Ta.prototype.onYtCommentboxDismiss=Ta.prototype.onYtCommentboxDismiss;Ta.prototype.onYtNavigate=Ta.prototype.onYtNavigate;Ta.prototype.resetExpander=Ta.prototype.resetExpander;Ta.prototype.updateBackgroundColor=Ta.prototype.updateBackgroundColor;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Ta.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.fY),_.R("design:type",Object)],Ta.prototype,"ytdReduxBehavior",void 0);
_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],Ta.prototype,"ytComponentBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],Ta.prototype,"ytRendererstamperBehavior",void 0);_.O([_.Iu("#author-thumbnail > button"),_.R("design:type",HTMLElement)],Ta.prototype,"authorThumbnailAnchor",void 0);_.O([_.U({reflectToAttribute:!0}),_.q("viewModel"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Ta.prototype,"linked",null);
_.O([_.q("viewModel","linked"),_.R("design:type",Object),_.R("design:paramtypes",[])],Ta.prototype,"linkedCommentBadge",null);_.O([_.U({reflectToAttribute:!0}),_.q("viewModel"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Ta.prototype,"pinned",null);_.O([_.q("viewModel","pinned"),_.R("design:type",Object),_.R("design:paramtypes",[])],Ta.prototype,"pinnedCommentBadge",null);
_.O([_.q("commentEntity","commentSharedEntity"),_.R("design:type",Object),_.R("design:paramtypes",[])],Ta.prototype,"authorCommentBadge",null);_.O([_.U({reflectToAttribute:!0}),_.q("authorCommentBadge"),_.R("design:type",Object),_.R("design:paramtypes",[])],Ta.prototype,"hasAuthorBadge",null);_.O([_.q("commentEntity"),_.R("design:type",Object),_.R("design:paramtypes",[])],Ta.prototype,"sponsorCommentBadge",null);
_.O([_.U({reflectToAttribute:!0}),_.q("sponsorCommentBadge"),_.R("design:type",Object),_.R("design:paramtypes",[])],Ta.prototype,"hasSponsorBadge",null);_.O([_.q("commentSurfaceEntity"),_.R("design:type",Object),_.R("design:paramtypes",[])],Ta.prototype,"pdgCommentChipRenderer",null);_.O([_.U({reflectToAttribute:!0}),_.q("voiceReplyContainerViewModel"),_.R("design:type",Object),_.R("design:paramtypes",[])],Ta.prototype,"hasVoiceReply",null);
_.O([_.q("commentSurfaceEntity"),_.R("design:type",Object),_.R("design:paramtypes",[])],Ta.prototype,"voiceReplyContainerViewModel",null);_.O([_.q("voiceReplyContainerViewModel"),_.R("design:type",Object),_.R("design:paramtypes",[])],Ta.prototype,"voiceReplyUnavailableText",null);_.O([_.U(),_.R("design:type",Object)],Ta.prototype,"data",void 0);_.O([_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],Ta.prototype,"viewModel",null);
_.O([_.U({selector:function(J,c){return _.P2(J.entities,"commentSharedEntityPayload",c)},
selectorArgs:["viewModel.sharedKey"]}),_.R("design:type",Object)],Ta.prototype,"commentSharedEntity",void 0);_.O([_.U({selector:function(J,c){return _.P2(J.entities,"commentEntityPayload",c)},
selectorArgs:["viewModel.commentKey"]}),_.R("design:type",Object)],Ta.prototype,"commentEntity",void 0);_.O([_.U({selector:function(J,c){return _.P2(J.entities,"commentSurfaceEntityPayload",c)},
selectorArgs:["viewModel.commentSurfaceKey"]}),_.R("design:type",Object)],Ta.prototype,"commentSurfaceEntity",void 0);_.O([_.U({selector:TzT,selectorArgs:["viewModel.toolbarSurfaceKey"]}),_.R("design:type",Object)],Ta.prototype,"toolbarSurface",void 0);_.O([_.U({selector:wKJ,selectorArgs:["commentEntity.properties.translateButtonEntityKey"]}),_.R("design:type",Object)],Ta.prototype,"translateButtonState",void 0);
_.O([_.q("commentSurfaceEntity"),_.R("design:type",Object),_.R("design:paramtypes",[])],Ta.prototype,"backgroundColor",null);_.O([_.U({reflectToAttribute:!0}),_.q("viewModel"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Ta.prototype,"optimalReadingWidthComments",null);_.O([_.Iu("ytd-expander"),_.R("design:type",Object)],Ta.prototype,"expander",void 0);
_.O([_.NE("backgroundColor"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Ta.prototype,"updateBackgroundColor",null);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Ta.prototype,"useSmallAvatars",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Ta.prototype,"webWatchCompactComments",void 0);_.O([_.U({reflectToAttribute:!0}),_.q("commentEntity"),_.R("design:type",Object),_.R("design:paramtypes",[])],Ta.prototype,"isReply",null);
_.O([_.q("commentEntity"),_.R("design:type",Object),_.R("design:paramtypes",[])],Ta.prototype,"authorThumbnailEndpoint",null);_.O([_.q("commentEntity"),_.R("design:type",Object),_.R("design:paramtypes",[])],Ta.prototype,"authorNameEndpoint",null);_.O([_.q("commentEntity"),_.R("design:type",Object),_.R("design:paramtypes",[])],Ta.prototype,"authorThumbnail",null);_.O([_.q("commentEntity"),_.R("design:type",String),_.R("design:paramtypes",[])],Ta.prototype,"authorTextClass",null);
_.O([_.q("commentEntity"),_.R("design:type",String),_.R("design:paramtypes",[])],Ta.prototype,"authorChannelName",null);_.O([_.q("commentEntity"),_.R("design:type",Object),_.R("design:paramtypes",[])],Ta.prototype,"publishedTime",null);_.O([_.q("commentSurfaceEntity"),_.R("design:type",Object),_.R("design:paramtypes",[])],Ta.prototype,"publishedTimeCommand",null);
_.O([_.q("commentEntity","translateButtonState","voiceReplyContainerViewModel"),_.R("design:type",Object),_.R("design:paramtypes",[])],Ta.prototype,"contentText",null);_.O([_.NE("contentText"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Ta.prototype,"resetExpander",null);_.O([_.q("commentEntity"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Ta.prototype,"shouldShowReadMoreInitially",null);
_.O([_.q("commentSharedEntity"),_.R("design:type",String),_.R("design:paramtypes",[])],Ta.prototype,"expandText",null);_.O([_.q("commentSharedEntity"),_.R("design:type",String),_.R("design:paramtypes",[])],Ta.prototype,"collapseText",null);_.O([_.q("commentEntity"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Ta.prototype,"shouldShowTranslateButton",null);
_.O([_.q("commentEntity","commentSharedEntity"),_.R("design:type",Object),_.R("design:paramtypes",[])],Ta.prototype,"translateButton",null);_.O([_.q("toolbarSurface"),_.R("design:type",Object),_.R("design:paramtypes",[])],Ta.prototype,"overflowMenuRenderer",null);_.O([_.U(),_.R("design:type",Object)],Ta.prototype,"editDialog",void 0);_.O([_.Iu("ytd-comment-dialog-renderer"),_.R("design:type",Object)],Ta.prototype,"editCommentDialogContainer",void 0);
_.O([_.Iu("ytd-comment-reply-dialog-renderer"),_.R("design:type",Object)],Ta.prototype,"editReplyDialogContainer",void 0);_.O([_.ps("yt-navigate"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],Ta.prototype,"onYtNavigate",null);_.O([_.ps("yt-commentbox-dismiss"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],Ta.prototype,"onYtCommentboxDismiss",null);
_.O([_.ps("yt-commentbox-resize"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],Ta.prototype,"onYtCommentboxResize",null);Ta=_.O([_.E({disableElementRegistration:!0,is:"ytd-comment-view-model"})],Ta);
_.v(Ta,"ytd-comment-view-model",function(){if(QKC!==void 0)return QKC;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return QKC=J},{mode:_.mP("kevlar_poly_si_batch_j025")?1:2});var wr=function(){var J=_.h.apply(this,arguments)||this;J.modern=_.w("web_modern_buttons");J.isWatchGrid=_.w("kevlar_watch_grid");J.buttonOverrides={style:"call-to-action"};J.JSC$13768_spinnerEl=null;return J};
_.D(wr,_.h);_.V=wr.prototype;_.V.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.V.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]]"}}}}}};
_.V.attached=function(){this.isShowRepliesVisible=!0};
_.V.dataChanged=function(){var J=this.expanderContents;J&&(J.hidden=!0);this.isLoading=!1};
_.V.triggerFirstContinuation=function(){this.continuationItemRenderer&&!this.continuationItemRenderer.buttonRenderer&&(this.continuationItemRenderer.showButton=!1)};
_.V.isLoadingChanged=function(){this.isLoading&&!this.JSC$13768_spinnerEl&&(this.JSC$13768_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.Bj(this.expanderContents).appendChild(this.JSC$13768_spinnerEl));this.JSC$13768_spinnerEl&&(this.JSC$13768_spinnerEl.active=this.isLoading);if(this.isLoading)this.contents.classList.add("reloading");else{var J;(J=this.contents)==null||J.classList.remove("reloading")}};
_.V.handleIsShowMoreTap=function(){this.isShowRepliesVisible=!1;this.triggerFirstContinuation();var J=_.L(this.data.viewReplies,_.ur);J&&this.ytRendererBehavior.logExplicitClick(J)};
_.V.handleIsShowLessTap=function(){this.isShowRepliesVisible=!0;var J=_.L(this.data.hideReplies,_.ur);J&&this.ytRendererBehavior.logExplicitClick(J)};
_.V.isShowMoreChanged=function(){var J=_.Bj(this.hostElement).querySelector("#expander-contents");J&&(J.hidden=this.isShowRepliesVisible)};
_.V.computeAlign=function(){if(this.modern){var J;return!((J=this.data)==null?0:J.viewRepliesCreatorThumbnail)}};
_.eE.Object.defineProperties(wr.prototype,{hasContinuation:{configurable:!0,enumerable:!0,get:function(){var J,c=(J=this.data)==null?void 0:J.contents;return!!c&&c.length>0&&!!c[c.length-1].continuationItemRenderer}}});
wr.prototype.isShowMoreChanged=wr.prototype.isShowMoreChanged;wr.prototype.isLoadingChanged=wr.prototype.isLoadingChanged;wr.prototype.triggerFirstContinuation=wr.prototype.triggerFirstContinuation;wr.prototype.dataChanged=wr.prototype.dataChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],wr.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],wr.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.f(_.Sy),_.R("design:type",Object)],wr.prototype,"ytContinuationHandlerBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],wr.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],wr.prototype,"modern",void 0);_.O([_.U(),_.R("design:type",Boolean)],wr.prototype,"isLoading",void 0);_.O([_.U({value:!0}),_.R("design:type",Boolean)],wr.prototype,"isShowRepliesVisible",void 0);_.O([_.U({value:!1}),_.R("design:type",Boolean)],wr.prototype,"useNewFormatting",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],wr.prototype,"isWatchGrid",void 0);_.O([_.U(),_.R("design:type",Object)],wr.prototype,"buttonOverrides",void 0);_.O([_.Iu("#expander-contents"),_.R("design:type",HTMLElement)],wr.prototype,"expanderContents",void 0);_.O([_.Iu("ytd-continuation-item-renderer"),_.R("design:type",Object)],wr.prototype,"continuationItemRenderer",void 0);_.O([_.Iu("#contents"),_.R("design:type",HTMLElement)],wr.prototype,"contents",void 0);
_.O([_.kr("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],wr.prototype,"dataChanged",null);_.O([_.q("data.contents"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],wr.prototype,"hasContinuation",null);_.O([_.ps("yt-expander-more-tapped"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],wr.prototype,"triggerFirstContinuation",null);
_.O([_.NE("isLoading"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],wr.prototype,"isLoadingChanged",null);_.O([_.NE("isShowRepliesVisible"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],wr.prototype,"isShowMoreChanged",null);wr=_.O([_.E({is:"ytd-comment-replies-renderer",disableElementRegistration:!0})],wr);
_.v(wr,"ytd-comment-replies-renderer",function(){if(EFz!==void 0)return EFz;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return EFz=J},{mode:1});var lUL;var rr=function(){var J=_.h.apply(this,arguments)||this;J.isOpen=!1;J.commentDialog=null;J.useSmallAvatars=_.w("small_avatars_for_comments");J.useSmallAvatarsEngagementPanelOnly=_.w("small_avatars_for_comments_ep");J.placeholderFocusListener=null;J.actionMap={"yt-create-comment-action":"onCreateCommentAction","yt-hide-identity-chip-action":"onHideIdentityChip"};return J};
_.D(rr,_.h);_.V=rr.prototype;_.V.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]]"}}}}}};
_.V.ready=function(){var J=this,c=_.Bj(this.hostElement).querySelector("#placeholder-area"),m=_.Bj(this.hostElement).querySelector("#simplebox-placeholder"),b=function(x){x.stopPropagation();x instanceof KeyboardEvent&&x.type==="keypress"&&x.keyCode!==13&&x.keyCode!==32||J.openDialog()};
this.placeholderFocusListener=b;m.addEventListener("focus",this.placeholderFocusListener);c.addEventListener("tap",b);c.addEventListener("keypress",b)};
_.V.maybeRemoveFocusEventListener=function(){var J;(J=this.data)!=null&&J.prepareAccountEndpoint&&!_.w("web_comments_simplebox_modal_focus_on_tap_ks")&&(J=_.Bj(this.hostElement).querySelector("#simplebox-placeholder"),this.placeholderFocusListener&&(J.removeEventListener("focus",this.placeholderFocusListener),this.placeholderFocusListener=null))};
_.V.dataChanged=function(){this.maybeRemoveFocusEventListener();this.commentDialog=null;this.isOpen=!1;this.showCreateDialog&&this.openDialog()};
_.V.openDialog=function(){this.data&&(this.data.prepareAccountEndpoint?_.w("web_comment_simplebox_resolve_polymer_command_ks")?_.p7.instance.resolveCommand(this.data.prepareAccountEndpoint):_.Nl(this.data.prepareAccountEndpoint,this.hostElement):(this.commentDialog||(this.commentDialog={commentDialogRenderer:this.computeCommentDialog(this.data)}),this.isOpen=!0,_.Bj(this.hostElement).querySelector("#comment-dialog").firstElementChild.focus()))};
_.V.onYtCommentboxDismiss=function(J){J.stopPropagation();this.isOpen=!1};
_.V.onCreateCommentAction=function(J){this.get("createCommentAction.contents",J)&&(this.isOpen=!1)};
_.V.computeCommentDialog=function(J){return{placeholderText:J.placeholderText,authorThumbnail:J.authorThumbnail,submitButton:J.submitButton,imageButton:J.imageButton,cancelButton:J.cancelButton,emojiButton:J.emojiButton,emojis:J.emojis,emojiPicker:J.emojiPicker,aadcGuidelinesStateEntityKey:J.aadcGuidelinesStateEntityKey,openAadcDialog:J.openAadcDialog,unicodeEmojisUrl:J.unicodeEmojisUrl}};
_.V.onHideIdentityChip=function(J){_.L(J,u1L)&&this.set("data.placeholderText",_.L(J,u1L).placeholderText)};
rr.prototype.onYtCommentboxDismiss=rr.prototype.onYtCommentboxDismiss;rr.prototype.dataChanged=rr.prototype.dataChanged;_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],rr.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],rr.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],rr.prototype,"ytActionHandlerBehavior",void 0);
_.O([_.U(),_.R("design:type",Object)],rr.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],rr.prototype,"isOpen",void 0);_.O([_.U(),_.R("design:type",Object)],rr.prototype,"commentDialog",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],rr.prototype,"engagementPanel",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],rr.prototype,"useSmallAvatars",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],rr.prototype,"useSmallAvatarsEngagementPanelOnly",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],rr.prototype,"enableCreationBox",void 0);_.O([_.U(),_.R("design:type",Boolean)],rr.prototype,"showCreateDialog",void 0);_.O([_.kr("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],rr.prototype,"dataChanged",null);
_.O([_.ps("yt-commentbox-dismiss"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],rr.prototype,"onYtCommentboxDismiss",null);rr=_.O([_.E({is:"ytd-comment-simplebox-renderer",disableElementRegistration:!0})],rr);
_.v(rr,"ytd-comment-simplebox-renderer",function(){if(lUL!==void 0)return lUL;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return lUL=J},{mode:1});var yr$;_.zH("itemSectionRenderer","commentThreadRenderer","ytd-comment-thread-renderer");var sk=function(){var J=_.h.apply(this,arguments)||this;J.addHoverEffect=_.w("swatcheroo_comments_hover_effect");return J};
_.D(sk,_.h);sk.prototype.onTap=function(J){if(this.addHoverEffect&&!this.engagementPanel&&!_.AP(_.OT(J)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var c;((c=window.getSelection())==null?0:c.toString().length)||_.Nl({changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},this.hostElement)}};
sk.prototype.configureRendererStamper=function(){return{"data.replies":{id:"replies",mapping:{commentRepliesRenderer:{component:"ytd-comment-replies-renderer",noInjection:!0}}}}};
_.eE.Object.defineProperties(sk.prototype,{commentViewModel:{configurable:!0,enumerable:!0,get:function(){var J;if((J=this.data)!=null&&J.commentViewModel)return _.L(this.data.commentViewModel,Soj)}}});
sk.prototype.onTap=sk.prototype.onTap;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],sk.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],sk.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],sk.prototype,"addHoverEffect",void 0);_.O([_.U(),_.R("design:type",Object)],sk.prototype,"data",void 0);
_.O([_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],sk.prototype,"commentViewModel",null);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],sk.prototype,"engagementPanel",void 0);_.O([_.ps("tap"),_.ps("click"),_.R("design:type",Function),_.R("design:paramtypes",[Event]),_.R("design:returntype")],sk.prototype,"onTap",null);sk=_.O([_.E({is:"ytd-comment-thread-renderer",disableElementRegistration:!0})],sk);
_.v(sk,"ytd-comment-thread-renderer",function(){if(yr$!==void 0)return yr$;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return yr$=J},{mode:_.mP("kevlar_poly_si_batch_j025")?1:2});var BEz;var L5=function(){var J=_.h.apply(this,arguments)||this;J.modernTypography=_.w("web_modern_typography");J.compactHeader=_.w("web_watch_compact_comments_header");J.hidePanelButton=!1;J.isPostSchedulingEnabled=_.w("enable_post_scheduling");J.hasFinishedStamping=!1;J.JSC$13786_handleOpenPostCommentDialogActionAfterStamp=!1;J.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return J};
_.D(L5,_.h);_.V=L5.prototype;
_.V.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"}}}};
_.V.attached=function(){this.hasActionsChange&&this.observePrefilledBackstagePostDialog()};
_.V.onStampFinished=function(){this.hasFinishedStamping=!0;this.hasActionsChange&&this.observePrefilledBackstagePostDialog();this.JSC$13786_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.V.onYtServiceRequestSent=function(J,c){if(!_.w("kevlar_command_handler")&&c.actions)for(J=0;J<c.actions.length;J++){var m=c.actions[J];_.L(m,cmz)&&_.Bj(this.hostElement).querySelector("#backstage-post-dialog > ytd-backstage-post-dialog-renderer").openSchedulingPanel(_.L(m,cmz))}};
_.V.observePrefilledBackstagePostDialog=function(){if(this.hasFinishedStamping){this.hasActionsChange=!1;var J;if(this.getPrefilledBackstagePostDialog((J=this.data)==null?void 0:J.actions)){_.Bj(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!1;var c=_.Bj(this.hostElement).querySelector("#backstage-post-dialog").firstElementChild;c&&_.o3(this,function(){c.focus();c.openDialog&&c.openDialog()})}}else this.hasActionsChange=!0};
_.V.computeIsBackstage=function(J){return J};
_.V.onYtCommentboxDismiss=function(){_.Bj(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!0;this.removePrefilledDialog(this.data)};
_.V.removePrefilledDialog=function(J){if(J==null?0:J.actions){for(var c=J.actions.length-1;c>=0;c--){var m=void 0;((m=_.L(J.actions[c],rEj))==null?0:m.dialog)&&delete J.actions[c]}this.set("data",void 0);this.set("data",J)}};
_.V.getPrefilledBackstagePostDialog=function(J){if(J)for(var c=0;c<J.length;c++){var m=J[c],b=void 0;if((b=_.L(m,rEj))==null?0:b.dialog)return _.L(m,rEj).dialog}return null};
_.V.computeBackstagePostDialog=function(J){return J&&(this.getPrefilledBackstagePostDialog(J.actions)||J.createRenderer)};
_.V.dataChanged=function(){if(this.data){var J=this.data.customEmojis,c=this.data.unicodeEmojisUrl;_.Xh.clear();c&&_.xFC(_.Xh,c);J&&_.Xh.load(J)}};
_.V.handleSignalActionOpenPostCommentDialogAction=function(){var J=_.Bj(this.hostElement).querySelector("ytd-comment-simplebox-renderer");J?J.openDialog():this.JSC$13786_handleOpenPostCommentDialogActionAfterStamp=!0};
_.eE.Object.defineProperties(L5.prototype,{useSpaceBetween:{configurable:!0,enumerable:!0,get:function(){return this.showCommentsPanelButton||_.w("kevlar_watch_grid")}},
showCommentsPanelButton:{configurable:!0,enumerable:!0,get:function(){var J,c,m,b,x,P,p;return!this.hidePanelButton&&_.w("kevlar_watch_comments_panel_button")&&((p=_.L((J=this.data)==null?void 0:(c=J.sortMenu)==null?void 0:(m=c.sortFilterSubMenuRenderer)==null?void 0:(b=m.subMenuItems)==null?void 0:(x=b[0])==null?void 0:(P=x.serviceEndpoint)==null?void 0:P.commandMetadata,_.lk))==null?void 0:p.apiUrl)==="/youtubei/v1/next"}},
commentsPanelButtonData:{configurable:!0,enumerable:!0,get:function(){if(this.showCommentsPanelButton)return{icon:{iconType:"EXPAND_ALL"},tooltip:_.CX("MINIPLAYER_EXPAND_LABEL"),text:_.v2(_.CX("MINIPLAYER_EXPAND_LABEL")),command:{commandExecutorCommand:{commands:[{changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},{scrollToEngagementPanelCommand:{targetId:"engagement-panel-comments-section"}}]}}}}}});
L5.prototype.dataChanged=L5.prototype.dataChanged;L5.prototype.onYtCommentboxDismiss=L5.prototype.onYtCommentboxDismiss;L5.prototype.observePrefilledBackstagePostDialog=L5.prototype.observePrefilledBackstagePostDialog;L5.prototype.onYtServiceRequestSent=L5.prototype.onYtServiceRequestSent;L5.prototype.onStampFinished=L5.prototype.onStampFinished;_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],L5.prototype,"ytActionHandlerBehavior",void 0);
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],L5.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],L5.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],L5.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],L5.prototype,"modernTypography",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],L5.prototype,"compactHeader",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],L5.prototype,"engagementPanel",void 0);_.O([_.U(),_.R("design:type",Object)],L5.prototype,"hidePanelButton",void 0);_.O([_.U({computed:"computeIsBackstage(data.isBackstageContent)",reflectToAttribute:!0}),_.R("design:type",Boolean)],L5.prototype,"isBackstage",void 0);_.O([_.U({readOnly:!0,computed:"computeBackstagePostDialog(data)"}),_.R("design:type",Object)],L5.prototype,"backstagePostDialog",void 0);
_.O([_.U(),_.R("design:type",Object)],L5.prototype,"isPostSchedulingEnabled",void 0);_.O([_.U({reflectToAttribute:!0}),_.q("data","showCommentsPanelButton"),_.R("design:type",Object),_.R("design:paramtypes",[])],L5.prototype,"useSpaceBetween",null);_.O([_.U({reflectToAttribute:!0}),_.q("data","hidePanelButton"),_.R("design:type",Object),_.R("design:paramtypes",[])],L5.prototype,"showCommentsPanelButton",null);
_.O([_.q("data","showCommentsPanelButton"),_.R("design:type",Object),_.R("design:paramtypes",[])],L5.prototype,"commentsPanelButtonData",null);_.O([_.ps("yt-rendererstamper-finished"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],L5.prototype,"onStampFinished",null);_.O([_.ps("yt-service-request-sent"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,_.qd]),_.R("design:returntype")],L5.prototype,"onYtServiceRequestSent",null);
_.O([_.NE("data.actions"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],L5.prototype,"observePrefilledBackstagePostDialog",null);_.O([_.ps("yt-commentbox-dismiss"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],L5.prototype,"onYtCommentboxDismiss",null);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],L5.prototype,"dataChanged",null);
L5=_.O([_.E({is:"ytd-comments-header-renderer",disableElementRegistration:!0})],L5);
_.v(L5,"ytd-comments-header-renderer",function(){if(BEz!==void 0)return BEz;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return BEz=J},{mode:1});var gF_;var Dy=function(){return _.h.apply(this,arguments)||this};
_.D(Dy,_.h);_.O([_.U(),_.R("design:type",Object)],Dy.prototype,"data",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Dy.prototype,"ytRendererBehavior",void 0);Dy=_.O([_.E({is:"ytd-destination-button-renderer",disableElementRegistration:!0})],Dy);
_.v(Dy,"ytd-destination-button-renderer",function(){if(gF_!==void 0)return gF_;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return gF_=J},{mode:1});var Jl2;var Wk=function(){var J=_.h.apply(this,arguments)||this;J.isRichGrid=!1;J.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};J.modernTypography=_.w("web_modern_typography");return J};
_.D(Wk,_.h);_.V=Wk.prototype;_.V.configureRendererStamper=function(){return{"data.destinationButtons":{id:"destination-buttons",mapping:{destinationButtonRenderer:{component:"ytd-destination-button-renderer"}}}}};
_.V.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap)};
_.V.handleUpdateGridStateAction=function(){this.updateDestinationButtonsVisibility()};
_.V.updateDestinationButtonsVisibility=function(){if(!this.isRichGrid){var J;if((J=this.data)==null||!J.isExpanded){J=this.hostElement.clientWidth;var c;if(J&&(c=this.data)!=null&&c.destinationButtons){c=Math.floor((J+4)/214);J=this.data.destinationButtons.length;var m=Math.ceil(J/c);this.fullyVisibleRows=J%c===1&&m===2?1:Math.min(m,2);this.isShowMoreVisible=this.fullyVisibleRows<m}}}};
_.V.updateRichGridDestinationButtonsVisibility=function(){var J,c;if(this.isRichGrid&&((J=this.data)==null||!J.isExpanded)&&(c=this.data)!=null&&c.destinationButtons){J=this.richGridItemsPerRow+1;c=this.data.destinationButtons.length;var m=Math.ceil(c/J);this.fullyVisibleRows=c%J===1&&m===2?1:Math.min(m,2);this.isShowMoreVisible=this.fullyVisibleRows<m}};
_.V.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
Wk.prototype.updateRichGridDestinationButtonsVisibility=Wk.prototype.updateRichGridDestinationButtonsVisibility;_.O([_.U(),_.R("design:type",Object)],Wk.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Number)],Wk.prototype,"fullyVisibleRows",void 0);_.O([_.U({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],Wk.prototype,"isShowMoreVisible",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Wk.prototype,"isRichGrid",void 0);
_.O([_.U({selector:_.W2,value:0}),_.R("design:type",Number)],Wk.prototype,"richGridItemsPerRow",void 0);_.O([_.U(),_.R("design:type",Object)],Wk.prototype,"gridStateActionMap",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Wk.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],Wk.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],Wk.prototype,"ytActionHandlerBehavior",void 0);_.O([_.f(_.fY),_.R("design:type",Object)],Wk.prototype,"ytdReduxBehavior",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Wk.prototype,"modernTypography",void 0);_.O([_.NE("data","richGridItemsPerRow"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Wk.prototype,"updateRichGridDestinationButtonsVisibility",null);
Wk=_.O([_.E({is:"ytd-destination-shelf-renderer",disableElementRegistration:!0})],Wk);
_.v(Wk,"ytd-destination-shelf-renderer",function(){if(Jl2!==void 0)return Jl2;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return Jl2=J},{mode:1});var clQ;var za=function(){return _.h.apply(this,arguments)||this};
_.D(za,_.h);za.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}},"data.informationButton":{id:"information-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],za.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],za.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],za.prototype,"data",void 0);za=_.O([_.E({is:"ytd-brandconnect-cta-shelf-card-renderer",disableElementRegistration:!0})],za);
_.v(za,"ytd-brandconnect-cta-shelf-card-renderer",function(){if(clQ!==void 0)return clQ;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return clQ=J},{mode:1});var mNL;var up=function(){var J=_.h.apply(this,arguments)||this;J.disableAnimation=!1;J.isSlimlineSurvey=!1;J.isSlimlineSurveyFollowUp=!1;J.isShortsStyle=!1;return J};
_.D(up,_.h);up.prototype.onTap=function(J){J.preventDefault();this.data&&_.cA(this.hostElement,"ytd-rating-survey-option-changed",this.data)};
_.eE.Object.defineProperties(up.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 J,c,m,b,x;return((J=this.data)==null?0:J.checked)?(c=this.data)==null?void 0:(m=c.onStateIcon)==null?void 0:m.iconType:(b=this.data)==null?void 0:(x=b.defaultStateIcon)==null?void 0:x.iconType}}});
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],up.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],up.prototype,"ytComponentBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],up.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],up.prototype,"disableAnimation",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],up.prototype,"isSlimlineSurvey",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],up.prototype,"isSlimlineSurveyFollowUp",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],up.prototype,"isShortsStyle",void 0);_.O([_.q("disableAnimation","isSlimlineSurveyFollowUp","isShortsStyle"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],up.prototype,"isAnimatedIcon",null);
_.O([_.q("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.R("design:type",Number),_.R("design:paramtypes",[])],up.prototype,"iconSize",null);_.O([_.q("isShortsStyle"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],up.prototype,"isDarkTheme",null);_.O([_.q("data.checked"),_.R("design:type",Object),_.R("design:paramtypes",[])],up.prototype,"icon",null);up=_.O([_.E({is:"ytd-rating-survey-option-renderer",disableElementRegistration:!0})],up);
_.v(up,"ytd-rating-survey-option-renderer",function(){if(mNL!==void 0)return mNL;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return mNL=J},{mode:2});var bjL;var f5=function(){var J=_.h.apply(this,arguments)||this;J.firstResponseText=null;J.lastResponseText=null;J.selectedNonStarOption=null;J.hideOptions=!1;J.hideUndoButton=!0;J.disableAnimation=!1;J.showResponseRangeText=!1;J.selectedRatingIndex=-1;J.isSlimlineSurvey=!1;J.isSlimlineSurveyFollowUp=!1;J.isShortsStyle=!1;J.slimlineSurveyRatingSelectedIndex=-1;return J};
_.D(f5,_.h);_.V=f5.prototype;_.V.configureRendererStamper=function(){return{"data.ratings":{id:"ratings",mapping:{ratingSurveyOptionRenderer:{component:"ytd-rating-survey-option-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurvey:"[[isSlimlineSurvey]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]"}}}}}};
_.V.dataChanged=function(){this.resetComponent();this.isSlimlineSurveyFollowUp&&this.slimlineSurveyRatingSelectedIndex>-1&&this.showSelectedOption()};
_.V.onOptionChange=function(J,c){var m=this;J=c.onStateIcon&&c.defaultStateIcon&&c.onStateIcon.iconType===c.defaultStateIcon.iconType;this.hideUndoButton=this.isSlimlineSurvey;if(this.isSingleSelect)this.getOptionRenderers().forEach(function(p,t){p.responseText===c.responseText?m.isSlimlineSurvey?(m.selectedRatingIndex=t,m.ytdReduxBehavior.dispatch(MOu(t))):(m.setSurveyOptionValue(t,!0,"checked"),m.setSurveyOptionValue(t,!0,"selected")):(m.setSurveyOptionValue(t,!1,"checked"),m.setSurveyOptionValue(t,
!1,"selected"))});
else if(J)this.selectedNonStarOption=c,this.hideOptions=!0;else{var b=this.ytRendererBehavior.getSimpleString(c.responseText),x=!0;this.getOptionRenderers().forEach(function(p,t){m.setSurveyOptionValue(t,x,"checked");m.setSurveyOptionValue(t,!1,"selected");m.ytRendererBehavior.getSimpleString(p.responseText)===b&&(x=!1,m.setSurveyOptionValue(t,!0,"selected"))})}J=c.responseEndpoint;
var P;c.followUpCommand&&(P=_.L(c.followUpCommand,Fs$));this.isSlimlineSurvey?(this.resetComponent(),_.m9(this.hostElement,"ytd-slimline-survey-rating-select-action")):_.m9(this.hostElement,"ytd-inline-survey-rating-select-action",[J,P])};
_.V.showSelectedOption=function(){var J=this;_.ft.addJob(function(){var c=J.getOptionRenderers()[J.slimlineSurveyRatingSelectedIndex];J.onOptionChange(new CustomEvent("ytd-rating-survey-option-changed"),c)},8,100)};
_.V.getOptionRenderers=function(){return this.data&&this.data.ratings?this.data.ratings.map(function(J){var c;return(c=_.L(J,yK2))!=null?c:{}}):[]};
_.V.onUndoClick=function(){this.resetComponent();_.m9(this.hostElement,"ytd-inline-survey-rating-select-action",[null,null])};
_.V.setSurveyOptionValue=function(J,c,m){this.notifyPath("data.ratings."+J+".ratingSurveyOptionRenderer."+m);this.set("data.ratings."+J+".ratingSurveyOptionRenderer."+m,c)};
_.V.resetComponent=function(){var J=this;this.selectedNonStarOption=null;this.hideOptions=!1;this.hideUndoButton=!0;var c=this.getOptionRenderers(),m,b;this.firstResponseText=(b=(m=c[0])==null?void 0:m.responseText)!=null?b:null;var x,P;this.lastResponseText=(P=(x=c[c.length-1])==null?void 0:x.responseText)!=null?P:null;c.forEach(function(p,t){J.setSurveyOptionValue(t,!1,"checked");J.setSurveyOptionValue(t,!1,"selected")})};
_.eE.Object.defineProperties(f5.prototype,{isSingleSelect:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle}}});
f5.prototype.onOptionChange=f5.prototype.onOptionChange;f5.prototype.dataChanged=f5.prototype.dataChanged;_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],f5.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],f5.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.fY),_.R("design:type",Object)],f5.prototype,"ytdReduxBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],f5.prototype,"data",void 0);
_.O([_.U(),_.R("design:type",Object)],f5.prototype,"firstResponseText",void 0);_.O([_.U(),_.R("design:type",Object)],f5.prototype,"lastResponseText",void 0);_.O([_.U(),_.R("design:type",Object)],f5.prototype,"selectedNonStarOption",void 0);_.O([_.U(),_.R("design:type",Object)],f5.prototype,"hideOptions",void 0);_.O([_.U(),_.R("design:type",Object)],f5.prototype,"hideUndoButton",void 0);_.O([_.U(),_.R("design:type",Object)],f5.prototype,"disableAnimation",void 0);
_.O([_.U(),_.R("design:type",Object)],f5.prototype,"showResponseRangeText",void 0);_.O([_.U(),_.R("design:type",Object)],f5.prototype,"selectedRatingIndex",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],f5.prototype,"isSlimlineSurvey",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],f5.prototype,"isSlimlineSurveyFollowUp",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],f5.prototype,"isShortsStyle",void 0);_.O([_.U({selector:function(J){return J.ui.slimlineSurveyRatingSelectedIndex}}),
_.R("design:type",Object)],f5.prototype,"slimlineSurveyRatingSelectedIndex",void 0);_.O([_.q("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],f5.prototype,"isSingleSelect",null);_.O([_.kr("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],f5.prototype,"dataChanged",null);
_.O([_.ps("ytd-rating-survey-option-changed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,Object]),_.R("design:returntype")],f5.prototype,"onOptionChange",null);f5=_.O([_.E({is:"ytd-rating-survey-renderer",disableElementRegistration:!0})],f5);
_.v(f5,"ytd-rating-survey-renderer",function(){if(bjL!==void 0)return bjL;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return bjL=J},{mode:1});var xNQ;var VV$;var Ptj;var Bj2=(wJ.FIRSTDAYOFWEEK+1)%7,MV$=function(J,c,m,b){var x="";if(b.selection&&jZJ(b.selection))iD(J,b.selection)&&(x+=" selected");else if(b.selection&&F1m(b.selection)){var P=b.selection.selectionState||"START_DATE";iD(J,b.selection.start)&&(x+=" period-start ",P==="START_DATE"&&(x+="selected"));iD(J,b.selection.end)&&(x+=" period-end ",P==="END_DATE"&&(x+="selected"));ny(J,b.selection.start)||ny(b.selection.end,J)||(x+=" highlighted")}if(ny(c,b.start)||ny(b.end,c))x+=" disabled";b.circleToday&&
iD(c,m)&&(x+=" today");return x};var YO=function(){return _.h.apply(this,arguments)||this};
_.D(YO,_.h);_.V=YO.prototype;_.V.attached=function(){var J=this;_.o3(this,function(){J.JSC$13820_calendarMain.scrollHeight>0&&(J.calendarConfig.selection?J.scrollToDate(l8G(J.calendarConfig.selection)):J.scrollToDate(J.calendarConfig.end))})};
_.V.updateSelection=function(J){J=gee(Object.assign({},this.calendarConfig,{selection:J}),MV$);this.splice.apply(this,["renderData.months",0,J.length].concat(_.L6(J)))};
_.V.scrollToDate=function(J){this.renderData&&(J=Jrm(J,this.renderData),J!==void 0&&this.JSC$13820_calendarMain.scrollToIndex(J))};
_.V.scrollToNextMonth=function(){this.JSC$13820_calendarMain.scrollToIndex(this.JSC$13820_calendarMain.firstVisibleIndex+1)};
_.V.scrollToPrevMonth=function(){this.JSC$13820_calendarMain.firstVisibleIndex===0&&this.JSC$13820_calendarMain.scrollTo(0,0);this.JSC$13820_calendarMain.scrollToIndex(this.JSC$13820_calendarMain.firstVisibleIndex-1)};
_.V.handleDayClick=function(J){_.m9(this.hostElement,"ytd-calendar-date-clicked",[J.model.day.date])};
_.V.handleDayMouseDown=function(J){J.preventDefault();_.m9(this.hostElement,"ytd-calendar-date-mousedown",[J.model.day.date])};
_.V.handleDayMouseUp=function(J){_.m9(this.hostElement,"ytd-calendar-date-mouseup",[J.model.day.date])};
_.V.handleDayMouseEnter=function(J){J.preventDefault();_.m9(this.hostElement,"ytd-calendar-date-mouseenter",[J.model.day.date])};
_.V.handleDayMouseLeave=function(J){_.m9(this.hostElement,"ytd-calendar-date-mouseleave",[J.model.day.date])};
_.eE.Object.defineProperties(YO.prototype,{renderData:{configurable:!0,enumerable:!0,get:function(){var J=this.calendarConfig,c=MV$;c=c===void 0?MV$:c;for(var m=[],b=0;b<7;b++)m.push(wJ.NARROWWEEKDAYS[(b+Bj2)%7]);return{months:gee(J,c),daysOfWeekLabel:m}}}});
_.O([_.U(),_.R("design:type",Object)],YO.prototype,"calendarConfig",void 0);_.O([_.Iu("#calendar-main"),_.R("design:type",Object)],YO.prototype,"JSC$13820_calendarMain",void 0);_.O([_.q("calendarConfig"),_.R("design:type",Object),_.R("design:paramtypes",[])],YO.prototype,"renderData",null);YO=_.O([_.E({disableElementRegistration:!0,is:"ytd-scrollable-calendar"})],YO);
_.v(YO,"ytd-scrollable-calendar",function(){if(Ptj!==void 0)return Ptj;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return Ptj=J},{mode:2});var pqQ;var Nt_;var Xn=function(){var J=_.h.apply(this,arguments)||this;J.hideCharCounter=!1;J.hideLabel=!1;J.noLabelFloat=!1;J.autoValidate=!0;J.invalid=!1;J.disabled=!1;J.actionMap={"yt-update-text-input-form-field-renderer-command":"handleUpdateTextInputFormFieldRendererCommand"};return J};
_.D(Xn,_.h);_.V=Xn.prototype;_.V.reset=function(J){this.value=J&&this.data?this.data.value=J:"";this.input.invalid=!1;this.input.autoValidate=!1};
_.V.save=function(){this.data&&this.data.onChange&&this.ytComponentBehavior.resolveCommand(this.data.onChange)};
_.V.focusTextInput=function(){this.input.focus()};
_.V.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()};
_.V.valueChanged=function(){var J,c;if(((J=this.data)==null?0:J.value)||((c=this.data)==null?void 0:c.value)==="")this.value=this.data.value;else{var m;((m=this.data)==null?void 0:m.value)!==void 0||this.value||(this.value="")}};
_.V.computeLabel=function(J,c){return c?"":_.OG(J)};
_.V.computeAriaLabel=function(J,c){return c?_.OG(J):""};
_.V.computeErrorMessage=function(J,c,m,b){!J&&c?J=m||this.strings.REQUIRED_LABEL:(J=_.OG(b),J=_.tq(J,"&")?"document"in _.mo?bh3(J):xOq(J):J);return J};
_.V.computeType=function(J){return J==="TEXT_INPUT_FORM_FIELD_TYPE_PASSWORD"?"password":null};
_.V.onTextValueChanged=function(J){this.value=J.detail.value;var c;(c=this.onValueChanged)==null||c.call(this);this.validate()&&this.data&&this.data.key&&this.data.onChange&&this.set(this.data.key,this.input.value,this.data.onChange)};
_.V.handleUpdateTextInputFormFieldRendererCommand=function(J){(J=_.L(J,H08))&&this.data&&this.data.id===J.id&&(J.invalid!==void 0&&(this.invalid=J.invalid),J.invalidValueErrorMessage!==void 0&&this.set("data.invalidValueErrorMessage",J.invalidValueErrorMessage))};
_.V.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.SJ("value-changed",this.value))};
_.V.updateInvalidFromBinding=function(J){this.invalid=J.detail.value};
_.eE.Object.defineProperties(Xn.prototype,{isMultiline:{configurable:!0,enumerable:!0,get:function(){if(this.isMultilineOverride!==void 0)return this.isMultilineOverride;var J;return!((J=this.data)==null||!J.isMultiline)}}});
Xn.prototype.valueChangedForBinding=Xn.prototype.valueChangedForBinding;Xn.prototype.valueChanged=Xn.prototype.valueChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Xn.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],Xn.prototype,"ytComponentBehavior",void 0);_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],Xn.prototype,"ytActionHandlerBehavior",void 0);
_.O([_.U(),_.R("design:type",Object)],Xn.prototype,"data",void 0);_.O([_.U(),_.R("design:type",String)],Xn.prototype,"value",void 0);_.O([_.U(),_.R("design:type",String)],Xn.prototype,"pattern",void 0);_.O([_.U(),_.R("design:type",String)],Xn.prototype,"errorMessage",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",String)],Xn.prototype,"componentStyle",void 0);_.O([_.U(),_.R("design:type",Object)],Xn.prototype,"hideCharCounter",void 0);
_.O([_.U(),_.R("design:type",Object)],Xn.prototype,"hideLabel",void 0);_.O([_.U(),_.R("design:type",Object)],Xn.prototype,"noLabelFloat",void 0);_.O([_.U(),_.R("design:type",Function)],Xn.prototype,"onValueChanged",void 0);_.O([_.U(),_.R("design:type",Boolean)],Xn.prototype,"isMultilineOverride",void 0);_.O([_.U(),_.R("design:type",Object)],Xn.prototype,"autoValidate",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Xn.prototype,"invalid",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Xn.prototype,"disabled",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],Xn.prototype,"enableOverlayTheme",void 0);_.O([_.U({value:{REQUIRED_LABEL:_.CX("REQUIRED_LABEL",void 0,"Required")}}),_.R("design:type",Object)],Xn.prototype,"strings",void 0);_.O([_.Iu("#input"),_.R("design:type",Object)],Xn.prototype,"input",void 0);
_.O([_.q("data","isMultilineOverride"),_.R("design:type",Object),_.R("design:paramtypes",[])],Xn.prototype,"isMultiline",null);_.O([_.kr("data.value"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Xn.prototype,"valueChanged",null);_.O([_.NE("value"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Xn.prototype,"valueChangedForBinding",null);Xn=_.O([_.uM({is:"yt-text-input-form-field-renderer",disableElementRegistration:!0})],Xn);
_.v(Xn,"yt-text-input-form-field-renderer",function(){if(Nt_===void 0){var J=document.createElement("template");_.z(J,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-text-input-form-field-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.playlist.yt_text_input_form_field_renderer.yt.text.input.form.field.renderer.css.js--\x3e<template is="dom-if" if="[[isMultiline]]" class="style-scope yt-text-input-form-field-renderer">\n  <tp-yt-paper-textarea id="input" always-float-label="" aria-label$="[[computeAriaLabel(data.label, hideLabel)]]" char-counter="" disabled="[[disabled]]" error-message="[[computeErrorMessage(value, data.required, requiredErrorMessage, data.invalidValueErrorMessage)]]" invalid="[[invalid]]" label="[[computeLabel(data.label, hideLabel)]]" max-rows="5" maxlength="[[data.maxCharacterLimit]]" no-label-float="[[noLabelFloat]]" pattern="[[data.validValueRegexp]]" placeholder="[[data.placeholderText]]" required="[[data.required]]" rows="[[data.rows]]" use-v2-underline="" value="[[value]]" on-invalid-changed="updateInvalidFromBinding" on-value-changed="onTextValueChanged" class="style-scope yt-text-input-form-field-renderer">\n  </tp-yt-paper-textarea>\n</template>\n<template is="dom-if" if="[[!isMultiline]]" class="style-scope yt-text-input-form-field-renderer">\n  <tp-yt-paper-input id="input" always-float-label="" aria-label$="[[computeAriaLabel(data.label, hideLabel)]]" char-counter="[[!data.hideCharCounter]]" disabled="[[disabled]]" error-message="[[computeErrorMessage(value, data.required, requiredErrorMessage, data.invalidValueErrorMessage)]]" invalid="[[invalid]]" label="[[computeLabel(data.label, hideLabel)]]" maxlength="[[data.maxCharacterLimit]]" no-label-float="[[noLabelFloat]]" pattern="[[data.validValueRegexp]]" placeholder="[[data.placeholderText]]" required="[[data.required]]" type="[[computeType(data.type)]]" use-v2-underline="" value="[[value]]" on-invalid-changed="updateInvalidFromBinding" on-value-changed="onTextValueChanged" class="style-scope yt-text-input-form-field-renderer">\n  </tp-yt-paper-input>\n</template>\n');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);var c=J.content,m=c.insertBefore;pqQ===void 0&&(pqQ=document.createElement("template"));var b=pqQ;m.call(c,b.content.cloneNode(!0),J.content.firstChild);Nt_=J}J=Nt_;return J},{mode:2});var Zy=function(){var J=_.h.apply(this,arguments)||this;J.data=void 0;J.selectionState="START_DATE";J.isStartDateInvalid=!1;J.isEndDateInvalid=!1;J.autoapply=!1;J.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 J};
_.D(Zy,_.h);_.V=Zy.prototype;_.V.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"}}}}};
_.V.focus=function(){this.startDateInput.focus()};
_.V.dataChanged=function(){this.data&&this.data.selection&&(this.selection={start:TU(this.data.selection.start),end:TU(this.data.selection.end)})};
_.V.observeSelection=function(){this.selection&&this.updateCalendarSelection(this.selection);this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.V.resetTextboxes=function(){switch(this.selectionState){case "START_DATE":this.isStartDateInvalid=!1;break;case "END_DATE":this.isEndDateInvalid=!1;break;default:_.Pu(this.selectionState)}};
_.V.onDateInputBlur=function(){this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.V.onStartDateTapOrFocus=function(){this.startDate&&this.calendar.scrollToDate(this.startDate);this.selectionState="START_DATE"};
_.V.onEndDateTapOrFocus=function(){this.endDate&&this.calendar.scrollToDate(this.endDate);this.selectionState="END_DATE"};
_.V.onStartDateTextChange=function(){if(this.calendar.calendarConfig){var J=this.calendar.calendarConfig,c=J.end;J=mVo({start:J.start,end:this.endDate||c},this.startDateInput.value||"");this.isStartDateInvalid=!J.isValid;J.isValid&&(J=J.value,this.selection=this.endDate?{start:J,end:this.endDate}:J,this.calendar.scrollToDate(J));this.updateInvalidState()}};
_.V.onEndDateTextChange=function(){if(this.calendar.calendarConfig){var J=this.calendar.calendarConfig,c=J.start;J=mVo({start:this.startDate||c,end:J.end},this.endDateInput.value||"");this.isEndDateInvalid=!J.isValid;J.isValid&&(J=J.value,this.selection={start:this.startDate,end:J},this.calendar.scrollToDate(J));this.updateInvalidState()}};
_.V.handleCalendarDateClicked=function(J){var c=this.selection&&l8G(this.selection),m=this.selection&&ynT(this.selection);c&&!ny(J,c)&&this.selectionState==="END_DATE"?(this.selection={start:c,end:J},this.selectionState="START_DATE"):(m&&!ny(m,J)?this.selection={start:J,end:m}:this.selection=J,this.selectionState="END_DATE")};
_.V.handleCalendarDateMouseDown=function(J){this.selection&&!jZJ(this.selection)&&(this.dragPivot=iD(J,this.selection.start)?this.selection.end:iD(J,this.selection.end)?this.selection.start:J)};
_.V.handleCalendarDateMouseUp=function(){this.dragPivot=void 0};
_.V.handleCalendarDateMouseEnter=function(J){this.dragPivot&&(this.selection={start:function(c,m){return ny(c,m)?c:m}(this.dragPivot,J),
end:function(c,m){return ny(c,m)?m:c}(this.dragPivot,J)},this.dragPivot||(this.selectionState="START_DATE"))};
_.V.handleCalendarDateMouseLeave=function(){};
_.V.handleCalendarSubmitDateRange=function(){this.selection&&!jZJ(this.selection)&&_.m9(this.hostElement,"ytd-date-period-picker-apply",[this.selection])};
_.V.updateInvalidState=function(){var J=function(c,m){m?c.setAttribute("invalid",""):c.removeAttribute("invalid")};
J(this.startDateInput,this.isStartDateInvalid);J(this.endDateInput,this.isEndDateInvalid)};
_.V.updateDateStrings=function(){this.selection&&(jZJ(this.selection)?ePf(this.selection):(ePf(this.selection.start),ePf(this.selection.end)))};
_.V.updateCalendarSelection=function(J){this.calendar.updateSelection(Object.assign({},J,{selectionState:this.selectionState}))};
_.V.updateIsStartDateInvalidFromBinding=function(J){this.isStartDateInvalid=J.detail.value};
_.V.updateIsEndDateInvalidFromBinding=function(J){this.isEndDateInvalid=J.detail.value};
_.V.updateStartDateStringFromBinding=function(){};
_.V.updateEndDateStringFromBinding=function(){};
_.eE.Object.defineProperties(Zy.prototype,{calendarConfig:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.selection?{start:TU(this.data.dateRangeStart),end:TU(this.data.dateRangeEnd),selection:{start:TU(this.data.selection.start),end:TU(this.data.selection.end)},circleToday:!0}:{}}},
errorMessage:{configurable:!0,enumerable:!0,get:function(){var J;return(J=this.data)==null?void 0:J.errorMessage}},
startDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&l8G(this.selection)}},
endDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&ynT(this.selection)}}});
Zy.prototype.resetTextboxes=Zy.prototype.resetTextboxes;Zy.prototype.observeSelection=Zy.prototype.observeSelection;Zy.prototype.dataChanged=Zy.prototype.dataChanged;_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],Zy.prototype,"ytActionHandlerBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],Zy.prototype,"ytRendererstamperBehavior",void 0);_.O([_.Iu("#calendar"),_.R("design:type",Object)],Zy.prototype,"calendar",void 0);
_.O([_.Iu("#start-date"),_.R("design:type",Object)],Zy.prototype,"startDateInput",void 0);_.O([_.Iu("#end-date"),_.R("design:type",Object)],Zy.prototype,"endDateInput",void 0);_.O([_.U(),_.R("design:type",Object)],Zy.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],Zy.prototype,"selection",void 0);_.O([_.U(),_.R("design:type",String)],Zy.prototype,"selectionState",void 0);_.O([_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],Zy.prototype,"calendarConfig",null);
_.O([_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],Zy.prototype,"errorMessage",null);_.O([_.q("selection"),_.R("design:type",Object),_.R("design:paramtypes",[])],Zy.prototype,"startDate",null);_.O([_.q("selection"),_.R("design:type",Object),_.R("design:paramtypes",[])],Zy.prototype,"endDate",null);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Zy.prototype,"dataChanged",null);
_.O([_.NE("selection","selectionState"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Zy.prototype,"observeSelection",null);_.O([_.NE("selectionState"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Zy.prototype,"resetTextboxes",null);Zy=_.O([_.E({disableElementRegistration:!0,is:"ytd-date-period-picker-renderer"})],Zy);
_.v(Zy,"ytd-date-period-picker-renderer",function(){if(VV$!==void 0)return VV$;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return VV$=J},{mode:1});var qp=function(){var J=_.h.apply(this,arguments)||this;var c={};J.actionMap=(c["ytd-date-period-picker-apply"]="handleDateRangeUpdated",c);return J};
_.D(qp,_.h);qp.prototype.configureRendererStamper=function(){return{"data.timeRangeDropdown":{id:"time-range-dropdown",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
qp.prototype.handleDateRangeUpdated=function(){};
_.O([_.U(),_.R("design:type",Object)],qp.prototype,"data",void 0);_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],qp.prototype,"actionHandlerBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],qp.prototype,"rendererstamperBehavior",void 0);qp=_.O([_.E({is:"ytd-report-history-section-header-renderer",disableElementRegistration:!0})],qp);
_.v(qp,"ytd-report-history-section-header-renderer",function(){if(xNQ!==void 0)return xNQ;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return xNQ=J},{mode:1});var tV_;var I9Z;var KdZ;var Uk=function(){return _.h.apply(this,arguments)||this};
_.D(Uk,_.h);_.eE.Object.defineProperties(Uk.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var J,c;return((J=this.data)==null?0:(c=J.icon)==null?0:c.iconType)?_.Pd(this.data.icon.iconType):""}}});
_.O([_.U(),_.R("design:type",Object)],Uk.prototype,"data",void 0);_.O([_.q("data"),_.R("design:type",String),_.R("design:paramtypes",[])],Uk.prototype,"icon",null);Uk=_.O([_.E({is:"ytd-report-history-table-text-cell-renderer",disableElementRegistration:!0})],Uk);
_.v(Uk,"ytd-report-history-table-text-cell-renderer",function(){if(KdZ!==void 0)return KdZ;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return KdZ=J},{mode:1});var SZ=function(){return _.h.apply(this,arguments)||this};
_.D(SZ,_.h);SZ.prototype.configureRendererStamper=function(){return{"data.latestReason":{id:"latest-reason",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}}}};
_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],SZ.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],SZ.prototype,"data",void 0);SZ=_.O([_.E({is:"ytd-report-history-table-reason-cell-renderer",disableElementRegistration:!0})],SZ);
_.v(SZ,"ytd-report-history-table-reason-cell-renderer",function(){if(I9Z!==void 0)return I9Z;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return I9Z=J},{mode:1});var hX=function(){return _.h.apply(this,arguments)||this};
_.D(hX,_.h);hX.prototype.configureRendererStamper=function(){return{"data.cell":{id:"cell-container",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer",reportHistoryTableReasonCellRenderer:"ytd-report-history-table-reason-cell-renderer"}}}};
_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],hX.prototype,"rendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],hX.prototype,"data",void 0);hX=_.O([_.E({is:"ytd-report-history-table-cell-renderer",disableElementRegistration:!0})],hX);
_.v(hX,"ytd-report-history-table-cell-renderer",function(){if(tV_!==void 0)return tV_;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);
return tV_=J},{mode:1});var CtQ;var dr=function(){var J=_.h.apply(this,arguments)||this;J.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 J};
_.D(dr,_.h);dr.prototype.onDataChanged=function(){var J;if((J=this.data)==null?0:J.style)this.componentStyle=this.getStyleName(this.data.style)};
dr.prototype.getCellForColumn=function(J){return this.cells.find(function(c){var m;return((m=_.L(c==null?void 0:c.cell,JFB)||_.L(c==null?void 0:c.cell,gdQ))==null?void 0:m.columnId)===J.type})};
dr.prototype.getClassForColumn=function(J){switch(J){case "REPORT_HISTORY_COLUMN_DATE":return"date";default:return""}};
dr.prototype.getStyleName=function(J){switch(J){case "REPORT_HISTORY_ROW_STYLE_COMPACT":return"COMPACT_ROW";default:return""}};
_.eE.Object.defineProperties(dr.prototype,{cells:{configurable:!0,enumerable:!0,get:function(){var J;return(((J=this.data)==null?void 0:J.cells)||[]).map(function(c){return _.L(c,B9z)})}}});
dr.prototype.onDataChanged=dr.prototype.onDataChanged;_.O([_.U(),_.R("design:type",Object)],dr.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Array)],dr.prototype,"columnRenderData",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",String)],dr.prototype,"componentStyle",void 0);_.O([_.q("data"),_.R("design:type",Array),_.R("design:paramtypes",[])],dr.prototype,"cells",null);
_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],dr.prototype,"onDataChanged",null);dr=_.O([_.E({is:"ytd-report-history-table-row-renderer",disableElementRegistration:!0})],dr);
_.v(dr,"ytd-report-history-table-row-renderer",function(){if(CtQ!==void 0)return CtQ;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return CtQ=J},{mode:1});var a9L;var kV$;var bpu={padding:12,paddingLeftFirstColumn:0,paddingRightLastColumn:0,minWidth:50,maxWidth:Infinity,flexGrow:1},xVq={padding:12,paddingLeftFirstColumn:24,paddingRightLastColumn:24,minWidth:50,maxWidth:Infinity,flexGrow:0};var $O=function(){return _.h.apply(this,arguments)||this};
_.D($O,_.h);$O.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"}}}}}};
$O.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"rows","yt-reload-continuation-items-command-body":"rows"}};
_.eE.Object.defineProperties($O.prototype,{tableSpec:{configurable:!0,enumerable:!0,get:function(){var J;return((J=this.data)==null?0:J.columns)?NET(this.data.columns):{columns:{},columnsToShow:[]}}},
columnRenderData:{configurable:!0,enumerable:!0,get:function(){return Mwe(this.tableSpec)}},
totalMinWidth:{configurable:!0,enumerable:!0,get:function(){var J=this.tableSpec,c=bpu;c=c===void 0?xVq:c;c=pVu(J.columnDimensions,J.columnsToShow||[],c);J=0;c=_.M(c);for(var m=c.next();!m.done;m=c.next())m=m.value,J+=m.minWidth+m.paddingLeft+m.paddingRight;return J}},
tableWidthStyle:{configurable:!0,enumerable:!0,get:function(){return"min-width:"+this.totalMinWidth+"px;"}}});
_.O([_.f(_.Sy),_.R("design:type",Object)],$O.prototype,"ytContinuationHandlerBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],$O.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],$O.prototype,"data",void 0);_.O([_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],$O.prototype,"tableSpec",null);_.O([_.q("tableSpec"),_.R("design:type",Array),_.R("design:paramtypes",[])],$O.prototype,"columnRenderData",null);
_.O([_.q("tableSpec"),_.R("design:type",Number),_.R("design:paramtypes",[])],$O.prototype,"totalMinWidth",null);_.O([_.q("totalMinWidth"),_.R("design:type",String),_.R("design:paramtypes",[])],$O.prototype,"tableWidthStyle",null);$O=_.O([_.E({is:"ytd-table-renderer",disableElementRegistration:!0})],$O);
_.v($O,"ytd-table-renderer",function(){if(kV$!==void 0)return kV$;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return kV$=J},{mode:1});var Ga=function(){return _.h.apply(this,arguments)||this};
_.D(Ga,_.h);Ga.prototype.configureRendererStamper=function(){return{"data.reportedContent":{id:"content-info",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}},"data.reasonsTable":{id:"reasons-table",mapping:{tableRenderer:"ytd-table-renderer"}},"data.doneButton":{id:"done-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],Ga.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Ga.prototype,"data",void 0);Ga=_.O([_.E({is:"ytd-report-reason-history-modal-renderer",disableElementRegistration:!0})],Ga);
_.v(Ga,"ytd-report-reason-history-modal-renderer",function(){if(a9L!==void 0)return a9L;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return a9L=J},{mode:1});var Hj8;var ij2;var nEa;var Ek=function(){return _.h.apply(this,arguments)||this};
_.D(Ek,_.h);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Ek.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Ek.prototype,"data",void 0);Ek=_.O([_.E({is:"ytd-profile-column-stats-entry-renderer",disableElementRegistration:!0})],Ek);
_.v(Ek,"ytd-profile-column-stats-entry-renderer",function(){if(nEa!==void 0)return nEa;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return nEa=J},{mode:1});var Tt8;var vk=function(){return _.h.apply(this,arguments)||this};
_.D(vk,_.h);vk.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsEntryRenderer:{component:"ytd-profile-column-stats-entry-renderer",noInjection:!0}}}}};
_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],vk.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],vk.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],vk.prototype,"data",void 0);vk=_.O([_.E({is:"ytd-profile-column-stats-renderer",disableElementRegistration:!0})],vk);
_.v(vk,"ytd-profile-column-stats-renderer",function(){if(Tt8!==void 0)return Tt8;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return Tt8=J},{mode:1});var wqC;var Ok=function(){return _.h.apply(this,arguments)||this};
_.D(Ok,_.h);_.eE.Object.defineProperties(Ok.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){var J;if((J=this.data)==null||!J.useThumbnailSize)return 80;var c,m;J=(c=this.data)==null?void 0:(m=c.thumbnail)==null?void 0:m.thumbnails;var b;return J&&((b=J[0])==null?void 0:b.width)||80}},
thumbnailHeight:{configurable:!0,enumerable:!0,get:function(){var J;if((J=this.data)==null||!J.useThumbnailSize)return 80;var c,m;J=(c=this.data)==null?void 0:(m=c.thumbnail)==null?void 0:m.thumbnails;var b;return J&&((b=J[0])==null?void 0:b.height)||80}}});
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Ok.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Ok.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",String)],Ok.prototype,"componentStyle",void 0);_.O([_.q("data.useThumbnailSize"),_.R("design:type",Object),_.R("design:paramtypes",[])],Ok.prototype,"thumbnailWidth",null);
_.O([_.q("data.useThumbnailSize"),_.R("design:type",Object),_.R("design:paramtypes",[])],Ok.prototype,"thumbnailHeight",null);Ok=_.O([_.E({is:"ytd-profile-column-user-info-renderer",disableElementRegistration:!0})],Ok);
_.v(Ok,"ytd-profile-column-user-info-renderer",function(){if(wqC!==void 0)return wqC;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return wqC=J},{mode:1});var AX=function(){return _.h.apply(this,arguments)||this};
_.D(AX,_.h);AX.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsRenderer:{component:"ytd-profile-column-stats-renderer",noInjection:!0},profileColumnUserInfoRenderer:{component:"ytd-profile-column-user-info-renderer",noInjection:!0,properties:{componentStyle:"[[componentStyle]]"}}}}}};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],AX.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],AX.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],AX.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",String)],AX.prototype,"componentStyle",void 0);AX=_.O([_.E({is:"ytd-profile-column-renderer",disableElementRegistration:!0})],AX);
_.v(AX,"ytd-profile-column-renderer",function(){if(ij2!==void 0)return ij2;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return ij2=J},{mode:1});var RJ=function(){var J=_.h.apply(this,arguments)||this;J.componentStyle="NON_CENTERED_PROFILE";return J};
_.D(RJ,_.h);RJ.prototype.configureRendererStamper=function(){return{"data.reportStats":{id:"report-stats",mapping:{profileColumnRenderer:{component:"ytd-profile-column-renderer",properties:{componentStyle:"[[componentStyle]]"}}}}}};
RJ.prototype.getIcon=function(J){return J?"settings:"+J.toLowerCase():null};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],RJ.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],RJ.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],RJ.prototype,"data",void 0);RJ=_.O([_.E({is:"ytd-page-introduction-renderer",disableElementRegistration:!0})],RJ);
_.v(RJ,"ytd-page-introduction-renderer",function(){if(Hj8!==void 0)return Hj8;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return Hj8=J},{mode:1});var rlZ;var oJ=function(){return _.h.apply(this,arguments)||this};
_.D(oJ,_.h);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],oJ.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],oJ.prototype,"data",void 0);oJ=_.O([_.E({is:"ytd-report-description-renderer",disableElementRegistration:!0})],oJ);
_.v(oJ,"ytd-report-description-renderer",function(){if(rlZ!==void 0)return rlZ;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return rlZ=J},{mode:1});var sBC;var LdC;var Q3=function(){return _.h.apply(this,arguments)||this};
_.D(Q3,_.h);Q3.prototype.configureRendererStamper=function(){return{"data.description":{id:"description",mapping:{reportDescriptionRenderer:"ytd-report-description-renderer"}}}};
_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],Q3.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Q3.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Q3.prototype,"data",void 0);Q3=_.O([_.E({is:"ytd-video-report-renderer",disableElementRegistration:!0})],Q3);
_.v(Q3,"ytd-video-report-renderer",function(){if(LdC!==void 0)return LdC;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return LdC=J},{mode:1});var DN_;_.zH("itemSectionRenderer","messageRenderer","ytd-message-renderer");_.zH("multiPageMenuSectionItems","messageRenderer","ytd-message-renderer");var eZ=function(){return _.h.apply(this,arguments)||this};
_.D(eZ,_.h);eZ.prototype.configureRendererStamper=function(){return{"data.button":{id:"message-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]"}}}},"data.icon":{id:"icon",mapping:{iconType:{component:"yt-icon",properties:{icon:"[[data.icon.iconType]]"}}}},"data.thumbnail":{id:"thumbnail",mapping:{messageThumbnailRenderer:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail.messageThumbnailRenderer.thumbnailDetails]]"}}}}}};
eZ.prototype.computeMessageStyle=function(J){return J};
eZ.prototype.computeButtonOverride=function(J){var c;if((J==null?0:(c=J.style)==null?0:c.value)&&J.style.value==="RENDER_STYLE_BANNER_PANEL")return{size:"S"}};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],eZ.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],eZ.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],eZ.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],eZ.prototype,"shelf",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],eZ.prototype,"panel",void 0);
_.O([_.U({reflectToAttribute:!0,computed:"computeMessageStyle(data.style.value)"}),_.R("design:type",Boolean)],eZ.prototype,"componentStyle",void 0);_.O([_.U({computed:"computeButtonOverride(data)"}),_.R("design:type",Object)],eZ.prototype,"buttonOverride",void 0);eZ=_.O([_.E({is:"ytd-message-renderer",disableElementRegistration:!0})],eZ);
_.v(eZ,"ytd-message-renderer",function(){if(DN_!==void 0)return DN_;var J=document.createElement("template");_.z(J,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="icon" class="style-scope ytd-message-renderer"></div>\n<div id="thumbnail" class="style-scope ytd-message-renderer"></div>\n<yt-formatted-string id="message" hidden$="[[!data.text]]" split-lines="" text="[[data.text]]" class="style-scope ytd-message-renderer"></yt-formatted-string>\n<yt-formatted-string id="submessage" hidden$="[[!data.subtext]]" split-lines="" text="[[data.subtext.messageSubtextRenderer.text]]" class="style-scope ytd-message-renderer"></yt-formatted-string>\n<div id="message-button" class="style-scope ytd-message-renderer"></div>\n');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return DN_=J},{mode:1});var jZ=function(){return _.h.apply(this,arguments)||this};
_.D(jZ,_.h);jZ.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"}}}};
jZ.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"table"}};
jZ.prototype.onRequestError=function(){this.ytContinuationHandlerBehavior.continuationIsReloading=!1};
_.eE.Object.defineProperties(jZ.prototype,{isUnifiedReportHistory:{configurable:!0,enumerable:!0,get:function(){var J,c;return!!(((J=this.data)==null?0:J.header)&&((c=this.data)==null?0:c.table))}}});
jZ.prototype.onRequestError=jZ.prototype.onRequestError;_.O([_.f(_.Sy),_.R("design:type",Object)],jZ.prototype,"ytContinuationHandlerBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],jZ.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],jZ.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],jZ.prototype,"data",void 0);
_.O([_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],jZ.prototype,"isUnifiedReportHistory",null);_.O([_.ps("yt-service-request-error"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],jZ.prototype,"onRequestError",null);jZ=_.O([_.E({is:"ytd-report-history-section-renderer",disableElementRegistration:!0})],jZ);
_.v(jZ,"ytd-report-history-section-renderer",function(){if(sBC!==void 0)return sBC;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return sBC=J},{mode:1});var Wd8;var Fn=function(){var J=_.h.apply(this,arguments)||this;J.answerExpanded=!1;return J};
_.D(Fn,_.h);Fn.prototype.toggleAnswer=function(){this.answerExpanded=!this.answerExpanded};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Fn.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],Fn.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Fn.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Fn.prototype,"answerExpanded",void 0);Fn=_.O([_.E({is:"ytd-handles-claiming-faq-renderer",disableElementRegistration:!0})],Fn);
_.v(Fn,"ytd-handles-claiming-faq-renderer",function(){if(Wd8!==void 0)return Wd8;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return Wd8=J},{mode:1});var zH8;var lp=function(){return _.h.apply(this,arguments)||this};
_.D(lp,_.h);_.O([_.U(),_.R("design:type",Object)],lp.prototype,"data",void 0);lp=_.O([_.E({is:"ytd-handles-claiming-faq-section-renderer",disableElementRegistration:!0})],lp);
_.v(lp,"ytd-handles-claiming-faq-section-renderer",function(){if(zH8!==void 0)return zH8;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return zH8=J},{mode:1});var uOZ;var y3=function(){var J=_.h.apply(this,arguments)||this;J.rightSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_dark_v1.svg";J.rightSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_light_v1.svg";J.leftSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_dark_v1.svg";J.leftSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_light_v1.svg";J.leftSquiggly=J.leftSquigglyLight;J.rightSquiggly=J.rightSquigglyLight;
J.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};J.actionButtonOverride={style:"mono",type:"filled",size:"XL"};return J};
_.D(y3,_.h);_.V=y3.prototype;_.V.updateLeftSquigglyStyle=function(){_.V1(this.hostElement,{"--yt-left-squiggly-background":"url("+this.leftSquiggly+")"})};
_.V.updateRightSquigglyStyle=function(){_.V1(this.hostElement,{"--yt-right-squiggly-background":"url("+this.rightSquiggly+")"})};
_.V.ready=function(){var J=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(J)};
_.V.onDarkModeToggledAction=function(J){J!==this.isDarkTheme&&(this.set("isDarkTheme",J),J?(this.leftSquiggly=this.leftSquigglyDark,this.rightSquiggly=this.rightSquigglyDark):(this.leftSquiggly=this.leftSquigglyLight,this.rightSquiggly=this.rightSquigglyLight))};
_.V.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[actionButtonOverride]]"}}}}}};
y3.prototype.updateRightSquigglyStyle=y3.prototype.updateRightSquigglyStyle;y3.prototype.updateLeftSquigglyStyle=y3.prototype.updateLeftSquigglyStyle;_.O([_.U(),_.R("design:type",Object)],y3.prototype,"data",void 0);_.O([_.U({value:!1}),_.R("design:type",Boolean)],y3.prototype,"isDarkTheme",void 0);_.O([_.U(),_.R("design:type",String)],y3.prototype,"leftSquiggly",void 0);_.O([_.U(),_.R("design:type",String)],y3.prototype,"rightSquiggly",void 0);
_.O([_.NE("leftSquiggly"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],y3.prototype,"updateLeftSquigglyStyle",null);_.O([_.NE("rightSquiggly"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],y3.prototype,"updateRightSquigglyStyle",null);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],y3.prototype,"ytRendererBehavior",void 0);
_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],y3.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],y3.prototype,"ytActionHandlerBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],y3.prototype,"actionButtonOverride",void 0);y3=_.O([_.E({is:"ytd-handles-claiming-header-renderer",disableElementRegistration:!0})],y3);
_.v(y3,"ytd-handles-claiming-header-renderer",function(){if(uOZ!==void 0)return uOZ;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return uOZ=J},{mode:1});var f98;var Bk=function(){var J=_.h.apply(this,arguments)||this;J.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};J.image0DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_dark.svg";J.image0LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_light.svg";J.image1DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_dark.svg";J.image1LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_light.svg";
J.image3DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_dark.svg";J.image3LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_light_v2.svg";J.image0SquigglyBackground=J.image0LightSquigglyBackground;J.image1SquigglyBackground=J.image1LightSquigglyBackground;J.image3SquigglyBackground=J.image3LightSquigglyBackground;return J};
_.D(Bk,_.h);_.V=Bk.prototype;_.V.ready=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.updateTitleAndImages()};
_.V.onDataChanged=function(){this.updateTitleAndImages()};
_.V.onThemeChanged=function(){this.updateTitleAndImages()};
_.V.onDarkModeToggledAction=function(J){J!==this.isDarkTheme&&(this.isDarkTheme=J)};
_.V.updateImage0SquigglyBackground=function(){_.V1(this.hostElement,{"--yt-image0-squiggly-background":"url("+this.image0SquigglyBackground+")"})};
_.V.updateImage1SquigglyBackground=function(){_.V1(this.hostElement,{"--yt-image1-squiggly-background":"url("+this.image1SquigglyBackground+")"})};
_.V.updateImage3SquigglyBackground=function(){_.V1(this.hostElement,{"--yt-image3-squiggly-background":"url("+this.image3SquigglyBackground+")"})};
_.V.updateTitleAndImages=function(){var J,c;((J=this.data)==null?void 0:(c=J.titleImages)==null?void 0:c.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))};
Bk.prototype.updateImage3SquigglyBackground=Bk.prototype.updateImage3SquigglyBackground;Bk.prototype.updateImage1SquigglyBackground=Bk.prototype.updateImage1SquigglyBackground;Bk.prototype.updateImage0SquigglyBackground=Bk.prototype.updateImage0SquigglyBackground;Bk.prototype.onThemeChanged=Bk.prototype.onThemeChanged;Bk.prototype.onDataChanged=Bk.prototype.onDataChanged;_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],Bk.prototype,"ytActionHandlerBehavior",void 0);
_.O([_.U({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],Bk.prototype,"isDarkTheme",void 0);_.O([_.U(),_.R("design:type",Object)],Bk.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],Bk.prototype,"title0",void 0);_.O([_.U(),_.R("design:type",Object)],Bk.prototype,"title1",void 0);_.O([_.U(),_.R("design:type",Object)],Bk.prototype,"title2",void 0);_.O([_.U(),_.R("design:type",Object)],Bk.prototype,"title3",void 0);
_.O([_.U(),_.R("design:type",Object)],Bk.prototype,"title4",void 0);_.O([_.U(),_.R("design:type",Object)],Bk.prototype,"image0",void 0);_.O([_.U(),_.R("design:type",Object)],Bk.prototype,"image1",void 0);_.O([_.U(),_.R("design:type",Object)],Bk.prototype,"image2",void 0);_.O([_.U(),_.R("design:type",Object)],Bk.prototype,"image3",void 0);_.O([_.U(),_.R("design:type",Object)],Bk.prototype,"image4",void 0);_.O([_.U(),_.R("design:type",String)],Bk.prototype,"image0SquigglyBackground",void 0);
_.O([_.U(),_.R("design:type",String)],Bk.prototype,"image1SquigglyBackground",void 0);_.O([_.U(),_.R("design:type",String)],Bk.prototype,"image3SquigglyBackground",void 0);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Bk.prototype,"onDataChanged",null);_.O([_.NE("isDarkTheme"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Bk.prototype,"onThemeChanged",null);
_.O([_.NE("image0SquigglyBackground"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Bk.prototype,"updateImage0SquigglyBackground",null);_.O([_.NE("image1SquigglyBackground"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Bk.prototype,"updateImage1SquigglyBackground",null);
_.O([_.NE("image3SquigglyBackground"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Bk.prototype,"updateImage3SquigglyBackground",null);Bk=_.O([_.E({is:"ytd-handles-claiming-title-images-section-renderer",disableElementRegistration:!0})],Bk);
_.v(Bk,"ytd-handles-claiming-title-images-section-renderer",function(){if(f98!==void 0)return f98;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return f98=J},{mode:1});var YrL;var gr=function(){var J=_.h.apply(this,arguments)||this;J.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return J};
_.D(gr,_.h);gr.prototype.ready=function(){var J=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(J)};
gr.prototype.onDarkModeToggledAction=function(J){J!==this.isDarkTheme&&this.set("isDarkTheme",J)};
gr.prototype.onCopyButtonClick=function(){var J=this,c,m,b;return _.N(function(x){return(c=J.data)!=null&&c.primaryChannelUrl?_.K(x,navigator.clipboard.writeText(((m=J.data)==null?0:m.encodedChannelUrl)?J.data.encodedChannelUrl:"https://"+_.OG((b=J.data)==null?void 0:b.primaryChannelUrl)),0):x.jumpTo(0)})};
_.O([_.U(),_.R("design:type",Object)],gr.prototype,"data",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],gr.prototype,"ytComponentBehavior",void 0);_.O([_.U({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],gr.prototype,"isDarkTheme",void 0);_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],gr.prototype,"ytActionHandlerBehavior",void 0);gr=_.O([_.E({is:"ytd-handles-claiming-update-social-renderer",disableElementRegistration:!0})],gr);
_.v(gr,"ytd-handles-claiming-update-social-renderer",function(){if(YrL!==void 0)return YrL;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return YrL=J},{mode:1});var XqZ;var Jv=function(){var J=_.h.apply(this,arguments)||this;J.JSC$13915_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_dark_v1.svg";J.JSC$13915_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_light_v1.svg";J.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};J.squigglyBackground=J.JSC$13915_squigglyBackgroundLight;return J};
_.D(Jv,_.h);Jv.prototype.updateSquigglyBackgroundStyle=function(){_.V1(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
Jv.prototype.ready=function(){var J=document.documentElement.hasAttribute("dark");this.set("isDarkTheme",J);this.squigglyBackground=J?this.JSC$13915_squigglyBackgroundDark:this.JSC$13915_squigglyBackgroundLight};
Jv.prototype.onDarkModeToggledAction=function(J){J!==this.isDarkTheme&&(this.set("isDarkTheme",J),this.squigglyBackground=J?this.JSC$13915_squigglyBackgroundDark:this.JSC$13915_squigglyBackgroundLight)};
Jv.prototype.updateSquigglyBackgroundStyle=Jv.prototype.updateSquigglyBackgroundStyle;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Jv.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],Jv.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],Jv.prototype,"ytActionHandlerBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Jv.prototype,"data",void 0);
_.O([_.U({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],Jv.prototype,"isDarkTheme",void 0);_.O([_.U(),_.R("design:type",String)],Jv.prototype,"squigglyBackground",void 0);_.O([_.NE("squigglyBackground"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Jv.prototype,"updateSquigglyBackgroundStyle",null);Jv=_.O([_.E({is:"ytd-handles-claiming-vanity-info-renderer",disableElementRegistration:!0})],Jv);
_.v(Jv,"ytd-handles-claiming-vanity-info-renderer",function(){if(XqZ!==void 0)return XqZ;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return XqZ=J},{mode:1});var Zj$;var cp=function(){var J=_.h.apply(this,arguments)||this;J.JSC$13918_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_dark.svg";J.JSC$13918_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_light.svg";J.squigglyBackground=J.JSC$13918_squigglyBackgroundLight;J.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return J};
_.D(cp,_.h);_.V=cp.prototype;_.V.ready=function(){var J=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(J)};
_.V.onDarkModeToggledAction=function(J){J!==this.isDarkTheme&&(this.set("isDarkTheme",J),this.squigglyBackground=J?this.JSC$13918_squigglyBackgroundDark:this.JSC$13918_squigglyBackgroundLight)};
_.V.updateSquigglyBackgroundStyle=function(){_.V1(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
_.V.onDataChanged=function(){this.data&&this.setupVideoPlayer()};
_.V.detached=function(){this.stop()};
_.V.stop=function(){this.playerElement.stop()};
_.V.setupVideoPlayer=function(){var J=this,c,m;return _.N(function(b){c=J.data.videoId;m="http://i1.ytimg.com/vi/"+c+"/maxresdefault.jpg";J.playerElement.loadVideoWithPlayerVars({video_id:c,iurlhq:m});_.tD(b)})};
cp.prototype.onDataChanged=cp.prototype.onDataChanged;cp.prototype.updateSquigglyBackgroundStyle=cp.prototype.updateSquigglyBackgroundStyle;_.O([_.U({value:!1}),_.R("design:type",Boolean)],cp.prototype,"isDarkTheme",void 0);_.O([_.U(),_.R("design:type",String)],cp.prototype,"squigglyBackground",void 0);_.O([_.Iu("#player"),_.R("design:type",Object)],cp.prototype,"playerElement",void 0);_.O([_.U(),_.R("design:type",Object)],cp.prototype,"data",void 0);
_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],cp.prototype,"ytActionHandlerBehavior",void 0);_.O([_.NE("squigglyBackground"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],cp.prototype,"updateSquigglyBackgroundStyle",null);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],cp.prototype,"onDataChanged",null);
cp=_.O([_.E({is:"ytd-handles-claiming-video-item-renderer",disableElementRegistration:!0})],cp);
_.v(cp,"ytd-handles-claiming-video-item-renderer",function(){if(Zj$!==void 0)return Zj$;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return Zj$=J},{mode:1});var qra;var bI=function(){var J=_.Cs.apply(this,arguments)||this;J.dragging=!1;J.dragMouseStart=0;J.dragOffsetStart=0;J.containerWidthDiff=0;J.boundPrevClick=function(){J.set("offset",mz(J,J.offset-(J.scrollDistance||320)))};
J.boundNextClick=function(){J.set("offset",mz(J,J.offset+(J.scrollDistance||320)))};
J.boundScrollContainerMouseDown=function(c){J.dragMouseStart=c.clientX;J.dragOffsetStart=J.offset;J.dragging=!0};
J.boundScrollContainerDrag=function(c){J.dragging&&J.set("offset",mz(J,J.dragOffsetStart-(c.clientX-J.dragMouseStart)))};
J.boundMouseUp=function(){J.onMouseUp()};
J.boundWheelScroll=function(c){var m=0;Math.abs(c.deltaX)>=Math.abs(c.deltaY)?m=c.deltaX:c.shiftKey&&(m=c.deltaY);m!==0&&(J.offset+=m,c.stopPropagation(),c.preventDefault())};
J.boundChipCloudChipScrollIntoView=function(c){(c=c.detail)&&J.scrollChipIntoView(c)};
return J};
_.D(bI,_.Cs);bI.prototype.attached=function(){var J=_.Bj(this.hostElement).querySelector("#scroll-container");J.addEventListener("wheel",this.boundWheelScroll);J.addEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);J.style.touchAction="pan-y";J.addEventListener("pointerdown",this.boundScrollContainerMouseDown);J.addEventListener("pointermove",this.boundScrollContainerDrag);window.addEventListener("pointerup",this.boundMouseUp)};
bI.prototype.detached=function(){var J=_.Bj(this.hostElement).querySelector("#scroll-container");J.removeEventListener("wheel",this.boundWheelScroll);J.removeEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);J.removeEventListener("pointerdown",this.boundScrollContainerMouseDown);J.removeEventListener("pointermove",this.boundScrollContainerDrag);window.removeEventListener("pointerup",this.boundMouseUp)};
bI.prototype.reset=function(){this.set("offset",0);_.o3(this,this.setContainerWidthDiff);xC(this)};
var mz=function(J,c){return Math.min(Math.max(c,0),J.containerWidthDiff)};
bI.prototype.onMouseUp=function(){this.dragging=!1};
bI.prototype.transformContainer=function(){this.offset=mz(this,this.offset);var J=_.Ub("HTML_DIR")==="rtl"?"":"-";_.Bj(this.hostElement).querySelector("#chips").style.transform="translateX("+J+this.offset+"px)";xC(this)};
var xC=function(J){_.o3(J,J.setButtonsState)};
bI.prototype.setButtonsState=function(){(this.atEnd=this.offset>=this.containerWidthDiff)&&!this.atStart&&(this.offset=mz(this,this.offset));this.atStart=this.offset<=0};
bI.prototype.setContainerWidthDiff=function(){var J=_.Bj(this.hostElement).querySelector("#scroll-container"),c=_.Bj(this.hostElement).querySelector("#chips");J&&c&&(this.containerWidthDiff=c.clientWidth-J.clientWidth)};
bI.prototype.scrollChipIntoView=function(J){var c=_.Bj(this.hostElement).querySelector("#scroll-container");if(c){var m=this.atStart?0:106,b=this.atEnd?0:106;J.offsetLeft<this.offset+m?this.offset=mz(this,J.offsetLeft-m):J.offsetLeft+J.clientWidth>this.offset+c.clientWidth-b&&(this.offset=mz(this,J.offsetLeft+J.clientWidth+b-c.clientWidth))}};
bI.prototype.transformContainer=bI.prototype.transformContainer;_.O([_.U({value:0}),_.R("design:type",Number)],bI.prototype,"offset",void 0);_.O([_.U({value:!0,reflectToAttribute:!0}),_.R("design:type",Boolean)],bI.prototype,"atStart",void 0);_.O([_.U({value:!1,reflectToAttribute:!0}),_.R("design:type",Boolean)],bI.prototype,"atEnd",void 0);_.O([_.U(),_.R("design:type",Number)],bI.prototype,"scrollDistance",void 0);
_.O([_.NE("offset"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],bI.prototype,"transformContainer",null);bI=_.O([_.au()],bI);var UN$;var Srj;var $NQ=_.Q1(function(J){var c=J.data;J=_.M(_.K2(!1,void 0,"icHmSe"));var m=J.next().value,b=J.next().value;J={};J=_.pq("ytChipShapeChip",function(){a:switch(c==null?void 0:c().state){case 0:var P="ytChipShapeActive";break a;case 1:P="ytChipShapeDisabled";break a;default:P="ytChipShapeInactive"}return P},function(){var P=c().type===1||c().type===2,p=c();
return P||p!=null&&p.startIcon?p==null||!p.startIcon||p!=null&&p.text?P?"ytChipShapeEndIconPadding":(p==null?0:p.startIcon)?"ytChipShapeStartIconPadding":"":"ytChipShapeOnlyIconPadding":"ytChipShapeOnlyTextPadding"},(J.ytChipShapeFocused=function(){var P;
return m()&&((P=c())==null?void 0:P.state)!==1},J));
var x=function(P){if((c==null?void 0:c().state)!==1){var p,t;(t=(p=c()).onTap)==null||t.call(p,P)}};
return _.C("chip-shape",{class:"ytChipShapeHost","on:focusin":_.Kq(function(){var P=_.BG().resolve(_.y6(_.Js));if(P){b(P.isKeyBoardInUse());var p,t;(t=(p=c()).onFocusIn)==null||t.call(p)}return!1}),
"on:focusout":_.Kq(function(){b(!1);return!1})},_.C(hHj,{shouldWrapInButton:function(){return c().type!==2},
selected:function(){return c().state===0},
onClick:x,isDropdown:function(){return c().type===1},
accessibilityLabel:function(){return c().accessibilityLabel}},_.C("div",{class:J},_.C(_.n,{cond:function(){return c().startIcon},
then:function(){return _.C(_.HP,{icon:function(){var P;return(P=c())==null?void 0:P.startIcon},
className:function(){return c().text?"ytChipShapeIconStart":"ytChipShapeIconOnly"}})}}),function(){return c().text},_.C(dN$,{shape:c,
onClick:x}))))},"zb");
$NQ.idomCompat=!0;var hHj=_.Q1(function(J){var c=_.Kq(function(m){J.onClick(m);return!1});
return _.C(_.n,{cond:J.shouldWrapInButton,then:function(){return _.C("button",{class:"ytChipShapeButtonReset","on:click":c,role:function(){return J.isDropdown()?"combobox":"tab"},
"aria-label":J.accessibilityLabel,"aria-selected":J.selected},J.children)},
else:function(){return J.children}})},"Ab"),dN$=_.Q1(function(J){var c=J.shape;
var m=J.onClick;var b=_.Kq(function(x){m(x);return!1});
return _.C(_.sb,null,_.C(_.wu,{when:function(){return c().type===1}},function(){return _.C(_.HP,{icon:"EXPAND",
className:"ytChipShapeIconEnd"})}),_.C(_.wu,{when:function(){return c().type===2}},function(){return _.C("button",{class:"ytChipShapeButtonReset",
"on:click":b},_.C(_.HP,{icon:"CLOSE",className:"ytChipShapeIconEnd"}))}),_.C(_.wu,{when:function(){return c().type===0}},function(){return _.C(_.cG,null)}))},"Bb");_.lv($NQ,"chip-shape",{props:{data:_.vt}});var VT=function(){var J=_.h.apply(this,arguments)||this;J.disableDeselectEvent=!1;J.modern=_.w("web_modern_typography");J.useChipShape=_.w("web_chip_shape_defrag");J.actionMap={"yt-select-chip-command":"onSelectChipCommand","yt-filter-chip-transform-command":"onFilterChipTransformCommand"};return J};
_.D(VT,_.h);_.V=VT.prototype;_.V.beforeRegister=function(){_.w("web_chip_shape_defrag")||(this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"})};
_.V.attached=function(){this.useChipShape||(this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","tab"),this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0"))};
_.V.onSelectChipCommand=function(J){if(!this.selected&&this.data&&(J=_.L(J,Mn$),J.targetId&&J.targetId===this.data.targetId))this.onTap()};
_.V.onFilterChipTransformCommand=function(J){if(!this.selected&&this.data){var c;(J=(c=_.L(J,tLC))==null?void 0:c.chipUniqueId)&&J===this.data.uniqueId&&(this.scrollChipIntoView(),this.onTap())}};
_.V.dataChanged=function(){var J=this;_.o3(this,function(){J.data&&J.data.isSelected&&!J.selected&&(J.scrollChipIntoView(),J.onTap())})};
_.V.selectionChanged=function(){this.useChipShape||this.hostElement.setAttribute("aria-selected",""+this.selected)};
_.V.computeChipStyle=function(J){return J!=null?J:"STYLE_DEFAULT"};
_.V.onTap=function(){!this.data||this.selected&&this.disableDeselectEvent||(this.ytRendererBehavior.logExplicitClick(this.data),this.selected||!this.data.navigationEndpoint&&!this.isGnomeChip?_.m9(this.hostElement,"yt-chip-cloud-chip-deselect-action"):(_.m9(this.hostElement,"yt-chip-cloud-chip-select-action",[this.hostElement,this.isGnomeChip]),this.data&&this.data.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)))};
_.V.onFocus=function(){var J=_.BG().resolve(_.y6(_.Js));J&&J.isKeyBoardInUse()&&this.scrollChipIntoView()};
_.V.scrollChipIntoView=function(){_.cA(this.hostElement,"yt-chip-cloud-chip-scroll-into-view",this.hostElement)};
_.eE.Object.defineProperties(VT.prototype,{hasIcon:{configurable:!0,enumerable:!0,get:function(){var J;return!((J=this.data)==null||!J.icon)}},
isGnomeChip:{configurable:!0,enumerable:!0,get:function(){var J;return((J=this.data)==null?void 0:J.uniqueId)==="gnome_chip"}},
chipShapeData:{configurable:!0,enumerable:!0,get:function(){return ksf({data:this.data,onTap:this.onTap.bind(this),isSelected:this.selected,onFocusIn:this.onFocus.bind(this)})}}});
VT.prototype.onFocus=VT.prototype.onFocus;VT.prototype.onTap=VT.prototype.onTap;VT.prototype.selectionChanged=VT.prototype.selectionChanged;VT.prototype.dataChanged=VT.prototype.dataChanged;_.O([_.f(_.kU),_.R("design:type",Object)],VT.prototype,"ironButtonState",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],VT.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],VT.prototype,"ytActionHandlerBehavior",void 0);
_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],VT.prototype,"ytComponentBehavior",void 0);_.O([_.f(_.KV),_.R("design:type",Object)],VT.prototype,"ironA11yKeysBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],VT.prototype,"disableDeselectEvent",void 0);_.O([_.U(),_.R("design:type",Object)],VT.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.q("data.icon"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],VT.prototype,"hasIcon",null);
_.O([_.U({reflectToAttribute:!0}),_.q("data.uniqueId"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],VT.prototype,"isGnomeChip",null);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],VT.prototype,"modern",void 0);_.O([_.U({computed:"computeChipStyle(data.style.styleType)",reflectToAttribute:!0}),_.R("design:type",String)],VT.prototype,"chipStyle",void 0);_.O([_.U({value:!1,reflectToAttribute:!0}),_.R("design:type",Boolean)],VT.prototype,"selected",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],VT.prototype,"useChipShape",void 0);_.O([_.q("data","selected"),_.R("design:type",Object),_.R("design:paramtypes",[])],VT.prototype,"chipShapeData",null);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],VT.prototype,"dataChanged",null);_.O([_.NE("selected"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],VT.prototype,"selectionChanged",null);
_.O([_.ps("tap"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],VT.prototype,"onTap",null);_.O([_.ps("focus"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],VT.prototype,"onFocus",null);VT=_.O([_.uM({is:"yt-chip-cloud-chip-renderer",disableElementRegistration:!0})],VT);
_.v(VT,"yt-chip-cloud-chip-renderer",function(){if(Srj===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;UN$===void 0&&(UN$=document.createElement("template"));var b=UN$;m.call(c,b.content.cloneNode(!0),J.content.firstChild);Srj=J}J=Srj;return J},{mode:2});var Pp=function(){var J=_.h.apply(this,arguments)||this;J.isDarkTheme=!1;J.notSticky=!1;J.transparentBackground=!1;J.shouldHide=!1;J.disableSticky=!1;J.fluidWidth=!1;J.isClipList=!1;J.defaultChipIndex=0;J.isPlaylist=!1;J.playlistVotingAnimationEnabled=_.w("web_enable_voting_animation");J.toolbarHeight=0;J.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};
return J};
_.D(Pp,_.h);_.V=Pp.prototype;
_.V.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}}}}}};
_.V.attached=function(){var J=this;document.addEventListener("scroll",_.ME(this,this.updateChipBarWidthAndTop));this.isDarkTheme=document.documentElement.hasAttribute("dark");var c;this.toolbarHeight=((c=document.querySelector("ytd-masthead"))==null?void 0:c.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(m){J.handleIntersect(m)},{rootMargin:"-"+(this.toolbarHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){J.updateChipBarWidthAndTop()}),this.resizeObserver.observe(this.hostElement))};
_.V.detached=function(){var J;(J=this.intersectionObserver)==null||J.disconnect();var c;(c=this.resizeObserver)==null||c.disconnect();document.removeEventListener("scroll",_.ME(this,this.updateChipBarWidthAndTop))};
_.V.dataChanged=function(){var J=this,c,m,b;((b=_.L((c=this.data)==null?void 0:(m=c.contents)==null?void 0:m[0],Y_L))==null?void 0:b.uniqueId)==="gnome_chip"&&(this.defaultChipIndex=1);this.updating=!0;var x=this.findSelectedChipIndex();this.selectedIndex!==x&&(this.selectedIndex=-1);_.o3(this,function(){J.selectedIndex=x;J.updating=!1;J.ytScrollableChipCloudBehavior.reset()})};
_.V.findSelectedChipIndex=function(){var J;if((J=this.data)==null||!J.contents)return 0;J=this.data.contents;for(var c=0;c<J.length;c++){var m=void 0;if((m=_.L(J[c],Y_L))==null?0:m.isSelected)return c}return 0};
_.V.computeStyle=function(J){return J};
_.V.handleChipCloudChipSelectAction=function(J){J=this.JSC$13937_chipsSelector.indexOf(J);J>-1&&this.JSC$13937_chipsSelector.selectIndex(J)};
_.V.handleChipCloudChipDeselectAction=function(){if(_.w("kevlar_chips_check_index_zero_killswitch")||![this.defaultChipIndex,-1].includes(this.selectedIndex)){var J,c,m,b=(m=_.L((J=this.data)==null?void 0:(c=J.contents)==null?void 0:c[0],Y_L))==null?void 0:m.navigationEndpoint;b&&_.m9(this.hostElement,"yt-browse-section-list-reload-endpoint",[b]);this.JSC$13937_chipsSelector.selectIndex(this.defaultChipIndex);this.ytScrollableChipCloudBehavior.reset()}};
_.V.onGuideIsExpandedChanged=function(){var J=this.ytScrollableChipCloudBehavior;_.o3(J,J.setContainerWidthDiff);xC(this.ytScrollableChipCloudBehavior)};
_.V.onResize=function(){var J=this.ytScrollableChipCloudBehavior;_.o3(J,J.setContainerWidthDiff);xC(this.ytScrollableChipCloudBehavior)};
_.V.onDarkModeToggledAction=function(J){this.isDarkTheme=J};
_.V.updateChipBarWidthAndTop=function(){this.updateDimensions();this.notSticky=this.isChannelPageGrid||this.disableSticky||this.hostElement.getBoundingClientRect().y>this.toolbarHeight};
_.V.handleIntersect=function(J){this.notSticky=this.isChannelPageGrid||this.disableSticky||J[0].intersectionRatio===1};
_.V.updateDimensions=function(){var J=this.ytRendererBehavior.parentComponent;if(J){var c,m=(c=J.headerElement)!=null?c:J;_.V1(this.hostElement,{"--ytd-rich-grid-chips-bar-width":m.clientWidth+"px","--ytd-rich-grid-chips-bar-top":this.toolbarHeight+"px"})}};
_.V.updateSelectedIndexFromBinding=function(J){this.selectedIndex=J.detail.value};
_.V.isPlaylistPageChanged=function(){if(this.isPlaylistPage){var J;(J=this.sortFilterHeaderRendererElement)==null||J.setAttribute("is-playlist-page-with-filters","")}};
_.V.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(tOB(!this.notSticky))};
_.eE.Object.defineProperties(Pp.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 J,c,m=(J=this.data)==null?void 0:(c=J.contents)==null?void 0:c.find(function(b){return _.L(b,S_B)});
return{sortFilterHeaderRenderer:_.L(m,S_B)}}}});
Pp.prototype.dispatchChipBarIsSticky=Pp.prototype.dispatchChipBarIsSticky;Pp.prototype.isPlaylistPageChanged=Pp.prototype.isPlaylistPageChanged;Pp.prototype.updateChipBarWidthAndTop=Pp.prototype.updateChipBarWidthAndTop;Pp.prototype.onResize=Pp.prototype.onResize;Pp.prototype.onGuideIsExpandedChanged=Pp.prototype.onGuideIsExpandedChanged;Pp.prototype.dataChanged=Pp.prototype.dataChanged;_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],Pp.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Pp.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],Pp.prototype,"actionHandlerBehavior",void 0);_.O([_.f(_.rI),_.R("design:type",Object)],Pp.prototype,"ironResizableBehavior",void 0);_.O([_.f(),_.R("design:type",bI)],Pp.prototype,"ytScrollableChipCloudBehavior",void 0);_.O([_.f(_.fY),_.R("design:type",Object)],Pp.prototype,"ytdReduxBehavior",void 0);
_.O([_.U(),_.R("design:type",Object)],Pp.prototype,"data",void 0);_.O([_.U({value:0}),_.R("design:type",Number)],Pp.prototype,"selectedIndex",void 0);_.O([_.U({value:320}),_.R("design:type",Number)],Pp.prototype,"scrollDistance",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Pp.prototype,"isDarkTheme",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Pp.prototype,"notSticky",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Pp.prototype,"transparentBackground",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeStyle(data.styleType)"}),_.R("design:type",String)],Pp.prototype,"componentStyle",void 0);_.O([_.U({selector:_.tGG}),_.R("design:type",Boolean)],Pp.prototype,"guideIsExpanded",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Pp.prototype,"shouldHide",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Pp.prototype,"disableSticky",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Pp.prototype,"fluidWidth",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Pp.prototype,"isClipList",void 0);_.O([_.U(),_.R("design:type",Object)],Pp.prototype,"defaultChipIndex",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Pp.prototype,"isPlaylist",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],Pp.prototype,"playlistVotingAnimationEnabled",void 0);_.O([_.Iu("#chips"),_.R("design:type",Object)],Pp.prototype,"JSC$13937_chipsSelector",void 0);_.O([_.Iu("ytd-sort-filter-header-renderer"),_.R("design:type",HTMLElement)],Pp.prototype,"sortFilterHeaderRendererElement",void 0);_.O([_.U({value:!1,reflectToAttribute:!0}),_.R("design:type",Boolean)],Pp.prototype,"updating",void 0);
_.O([_.kr("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Pp.prototype,"dataChanged",null);_.O([_.NE("guideIsExpanded"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Pp.prototype,"onGuideIsExpandedChanged",null);_.O([_.ps("iron-resize"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Pp.prototype,"onResize",null);
_.O([_.kr("isChannelPageGrid","disableSticky","data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Pp.prototype,"updateChipBarWidthAndTop",null);_.O([_.q("componentStyle"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Pp.prototype,"isChannelPageGrid",null);_.O([_.q("componentStyle"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Pp.prototype,"isHashtagLandingPage",null);
_.O([_.NE("isPlaylistPage"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Pp.prototype,"isPlaylistPageChanged",null);_.O([_.q("componentStyle"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Pp.prototype,"isPlaylistPage",null);_.O([_.q("componentStyle"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Pp.prototype,"isDisableDeselectEvent",null);
_.O([_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],Pp.prototype,"sortFilterHeaderRendererData",null);_.O([_.U({reflectToAttribute:!0,selector:_.iO3}),_.R("design:type",String)],Pp.prototype,"frostedGlassMode",void 0);_.O([_.NE("notSticky"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Pp.prototype,"dispatchChipBarIsSticky",null);Pp=_.O([_.E({is:"ytd-feed-filter-chip-bar-renderer",disableElementRegistration:!0})],Pp);
_.v(Pp,"ytd-feed-filter-chip-bar-renderer",function(){if(qra!==void 0)return qra;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return qra=J},{mode:1});var GVu;var EEB=_.Q1(function(J){var c=J.data;var m=J.buttonIndex;var b=J.selectedIndex;var x=J.onSelect;var P=function(){return m()===b()},p=function(){var t,I;
return(I=(t=c().text)==null?void 0:t.content)!=null?I:""};
J=_.Fru();return _.C("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"]=b()!==-1&&!P(),t);return _.tP(t)},
tabindex:0,"aria-label":p,"aria-pressed":P,role:"button","on:keydown":J,"on:click":_.Kq(function(){x(c().onSubmitCommand);return!1})},_.C(_.n,{cond:function(){return c().logo},
then:function(t){return _.C(_.RA,{data:t,className:function(){var I={};I=(I["toggleable-image-button-view-model-wiz__image"]=!0,I["toggleable-image-button-view-model-wiz__circular-radius"]=!(!c().backgroundColor||!c().backgroundColorDarkMode),I["toggleable-image-button-view-model-wiz__gradient-ring"]=!!(P()&&c().backgroundColor&&c().backgroundColorDarkMode),I);return _.tP(I)},
alt:p,useWidth:!1,style:function(){if(P()&&c().backgroundColor&&c().backgroundColorDarkMode){var I=UT(Number(c().backgroundColorDarkMode),"1");var a=UT(Number(c().backgroundColor),"1");I="background: linear-gradient(180deg,"+I+","+a+") border-box;"}else I="";return I}})}}),_.C(_.TH,{model:{borderRadius:"16px"}}),_.C("p",{class:function(){var t={};
t=(t["toggleable-image-button-view-model-wiz__label"]=!0,t["toggleable-image-button-view-model-wiz__bold-text"]=P(),t);return _.tP(t)}},_.C(_.j8,{text:function(){return c().text}})))},"Cb");
EEB.idomCompat=!0;var Oj8=_.Q1(function(J){var c=J.data;J=_.M(_.K2({index:-1,command:{}},void 0,"Zcqtsb"));var m=J.next().value,b=J.next().value;return _.C("yt-nudge-form-view-model",{class:"nudge-form-view-model-wiz"},_.C("div",{class:"nudge-form-view-model-wiz__form-options"},_.C(_.wi,{data:function(){return c().inputFields},
allowIncompleteMapping:!0},{toggleableImageButtonViewModel:function(x,P){return _.C(EEB,{data:x.data,buttonIndex:P,selectedIndex:function(){return m().index},
onSelect:function(p){b({index:P(),command:p})}})}})),_.C(_.j8,{text:function(){return c().subtitle},
className:"nudge-form-view-model-wiz__subtitle"}),_.C("div",{class:"nudge-form-view-model-wiz__submit"},_.C(_.wi,{data:function(){return c().submitButton}},{buttonViewModel:function(x){return _.C(vE$,{data:x.data,
isDisabled:function(){return m().index===-1},
onClick:function(){_.hd(m().command)}})}})))},"Db");
Oj8.idomCompat=!0;var vE$=_.Q1(function(J){var c=_.n2(function(){return Object.assign({},J.data(),{state:J.isDisabled()?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE"})},void 0,"rgD0re");
return _.C(_.XU,{data:c,onClick:J.onClick})},"Eb");_.lv(Oj8,"yt-nudge-form-view-model",{props:{data:_.vt}});var Me=function(){var J=_.h.apply(this,arguments)||this;J.roundedContainer=!0;J.buttonUpdate=_.w("web_modern_buttons");J.isDarkMode=!1;J.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return J};
_.D(Me,_.h);_.V=Me.prototype;_.V.computeNudgeStyle=function(J){return J?"modernized-nudge":""};
_.V.handleDarkModeToggledAction=function(J){this.isDarkMode=J};
_.V.attached=function(){this.handleDarkModeToggledAction(document.documentElement.hasAttribute("dark"))};
_.V.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"}}}};
_.V.computeIsHorizontalButtons=function(J){return J?!!J.applyModernizedStyle&&!!J.enableHorizontalButtons&&!!J.secondaryButton:!1};
_.eE.Object.defineProperties(Me.prototype,{isHidden:{configurable:!0,enumerable:!0,get:function(){return!!this.ytdDismissibleItemBehavior.isHideEnclosingAction}},
trimStyle:{configurable:!0,enumerable:!0,get:function(){var J;return((J=this.data)==null?void 0:J.trimStyle)==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?"no-trim":"gradient-trim-1"}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var J,c;return(c=(J=this.data)==null?void 0:J.backgroundStyle)!=null?c:"FEED_NUDGE_BACKGROUND_STYLE_UNKNOWN"}},
contentsLocation:{configurable:!0,enumerable:!0,get:function(){var J,c;return(c=(J=this.data)==null?void 0:J.contentsLocation)!=null?c:"FEED_NUDGE_CONTENTS_LOCATION_UNKNOWN"}},
noShadow:{configurable:!0,enumerable:!0,get:function(){var J;return!((J=this.data)==null||!J.disableDropShadow)}},
noIcon:{configurable:!0,enumerable:!0,get:function(){var J;return!((J=this.data)==null?0:J.lightIconImage)}}});
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Me.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],Me.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.XP),_.R("design:type",Object)],Me.prototype,"ytdDismissibleItemBehavior",void 0);_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],Me.prototype,"actionHandlerBehavior",void 0);
_.O([_.U({reflectToAttribute:!0}),_.q("isHideEnclosingAction"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Me.prototype,"isHidden",null);_.O([_.U(),_.R("design:type",Object)],Me.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Me.prototype,"roundedContainer",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Me.prototype,"buttonUpdate",void 0);
_.O([_.U({reflectToAttribute:!0,computed:"computeNudgeStyle(data.applyModernizedStyle)"}),_.R("design:type",String)],Me.prototype,"nudgeStyle",void 0);_.O([_.U({reflectToAttribute:!0}),_.q("data.trimStyle"),_.R("design:type",String),_.R("design:paramtypes",[])],Me.prototype,"trimStyle",null);_.O([_.U({reflectToAttribute:!0}),_.q("data.backgroundStyle"),_.R("design:type",String),_.R("design:paramtypes",[])],Me.prototype,"backgroundStyle",null);
_.O([_.U({reflectToAttribute:!0}),_.q("data.contentsLocation"),_.R("design:type",String),_.R("design:paramtypes",[])],Me.prototype,"contentsLocation",null);_.O([_.U({reflectToAttribute:!0}),_.q("data.disableDropShadow"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Me.prototype,"noShadow",null);_.O([_.U({reflectToAttribute:!0}),_.q("data.lightIconImage"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Me.prototype,"noIcon",null);
_.O([_.U({reflectToAttribute:!0,computed:"computeIsHorizontalButtons(data)"}),_.R("design:type",Boolean)],Me.prototype,"isHorizontalButtons",void 0);_.O([_.U({reflectToAttribute:!0,value:!1}),_.R("design:type",Object)],Me.prototype,"isDarkMode",void 0);Me=_.O([_.E({is:"ytd-feed-nudge-renderer",disableElementRegistration:!0})],Me);
_.v(Me,"ytd-feed-nudge-renderer",function(){if(GVu!==void 0)return GVu;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return GVu=J},{mode:_.mP("kevlar_poly_si_batch_j028")?1:2});var AlB;var RH8;var pF=function(){var J=_.h.apply(this,arguments)||this;J.collapsed=!1;J.actionMap={"ytd-slimline-survey-rating-select-action":"handleRatingSelect","ytd-slimline-survey-show-action":"handleShowSurvey"};return J};
_.D(pF,_.h);pF.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"}}}};
pF.prototype.handleRatingSelect=function(){var J;((J=this.data)==null?0:J.onSelectRating)&&this.ytComponentBehavior.resolveCommand(this.data.onSelectRating);this.collapsed=!0};
pF.prototype.handleShowSurvey=function(){this.collapsed=!1};
_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],pF.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],pF.prototype,"actionHandlerBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],pF.prototype,"ytComponentBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],pF.prototype,"ytRendererBehavior",void 0);
_.O([_.f(_.XP),_.R("design:type",Object)],pF.prototype,"ytdDismissibleItemBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],pF.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],pF.prototype,"collapsed",void 0);pF=_.O([_.E({is:"ytd-slimline-survey-renderer",disableElementRegistration:!0})],pF);
_.v(pF,"ytd-slimline-survey-renderer",function(){if(RH8!==void 0)return RH8;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return RH8=J},{mode:1});var oE8;var Ne=function(){return _.h.apply(this,arguments)||this};
_.D(Ne,_.h);Ne.prototype.maybeGetBackgroundColor=function(J){return this.isDarkMode?J.section2Color:J.section3Color};
Ne.prototype.colorPaletteChanged=function(){var J=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;J&&(J==null?0:J.secondaryTitleColor)&&this.maybeGetBackgroundColor(J)?(this.hostElement.style.backgroundColor=_.XB(this.maybeGetBackgroundColor(J)),this.hostElement.style.color=_.XB(J.secondaryTitleColor)):(this.hostElement.style.backgroundColor="",this.hostElement.style.color="")};
Ne.prototype.colorPaletteChanged=Ne.prototype.colorPaletteChanged;_.O([_.f(_.fY),_.R("design:type",Object)],Ne.prototype,"ytdReduxBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Ne.prototype,"data",void 0);_.O([_.U({selector:function(J){return J.ui.darkModeIsEnabled}}),
_.R("design:type",Boolean)],Ne.prototype,"isDarkMode",void 0);_.O([_.U(),_.R("design:type",Object)],Ne.prototype,"lightColorPalette",void 0);_.O([_.U(),_.R("design:type",Object)],Ne.prototype,"darkColorPalette",void 0);_.O([_.NE("darkColorPalette","lightColorPalette","data","isDarkMode"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Ne.prototype,"colorPaletteChanged",null);Ne=_.O([_.E({disableElementRegistration:!0,is:"ytd-endorsement-header-renderer"})],Ne);
_.v(Ne,"ytd-endorsement-header-renderer",function(){if(oE8!==void 0)return oE8;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return oE8=J},{mode:1});_.lv(_.Li,"yt-decorated-avatar-view-model",{props:{data:_.vt,className:_.vt}});var tv=function(){var J=_.h.apply(this,arguments)||this;J.fullHeight=_.w("web_rich_grid_media_full_height");J.showChannelAvatar=!0;J.hasPlaylistThumbnail=!1;J.avatarStackViewModelOverrides={layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"};J.prepareThumbnailForPageTransition=function(){_.w("web_thumbnail_to_watch_transition")&&(J.thumbnail.style.viewTransitionName="thumbnail-to-watch",J.cleanupThumbnailAfterPageTransition(J.thumbnail))};
return J};
_.D(tv,_.h);_.V=tv.prototype;
_.V.configureRendererStamper=function(){return{lazyLoadMenu:pi,immediateLoadMenu:{id:"immediate-load-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},"data.thumbnailUnderlay":{id:"thumbnail-underlay",mapping:{endorsementHeaderRenderer:{component:"ytd-endorsement-header-renderer",properties:{lightColorPalette:"[[data.thumbnail.lightColorPalette]]",darkColorPalette:"[[data.thumbnail.darkColorPalette]]"}}}},"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyRenderer:"ytd-slimline-survey-renderer"}},"data.buttons":{id:"buttons",
mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",params:{buttonTooltipPosition:"top"}},upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer"}},dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}},"data.avatar":{id:"avatar",mapping:{avatarStackViewModel:{component:"yt-avatar-stack-view-model",properties:{overrides:"[[avatarStackViewModelOverrides]]"}},
decoratedAvatarViewModel:"yt-decorated-avatar-view-model"}}}};
_.V.attached=function(){this.updateInlinePreviewHoverListeners()};
_.V.detached=function(){this.clearInlinePreviewHoverListeners()};
_.V.shouldLazyLoadMenu=function(){var J=this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"||this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST";return!_.w("kevlar_modern_downloads_page")||!J};
_.V.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13963_inlinePreviewHoverListener=AT({mediaRenderer:this,lockupElement:this.JSC$13963_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:this.getVideoPreviewOpts()})};
_.V.getVideoPreviewOpts=function(){var J={},c;if((c=this.data)==null?0:c.multipleInlinePlaybackEndpoint)J=Eou;this.isRadio&&(J=Gpz);return _.w("web_thumbnail_to_watch_transition")?Object.assign({},J,{onNavigateToWatchCallback:this.prepareThumbnailForPageTransition}):J};
_.V.clearInlinePreviewHoverListeners=function(){var J;(J=this.JSC$13963_inlinePreviewHoverListener)==null||Jm(J)};
_.V.getOwner=function(){var J,c,m;return((J=this.data)==null?void 0:(c=J.channelThumbnailSupportedRenderers)==null?void 0:c.channelThumbnailWithLinkRenderer)||_.L((m=this.data)==null?void 0:m.showProviderChannelThumbnail,rm_)};
_.V.updateLockupSize=function(){var J;((J=this.getOwner())==null?0:J.thumbnail)?this.showChannelAvatar=!0:this.showChannelAvatar=!1};
_.V.getFeedbackEndpoint=function(J){if(_.L(J,_.uc))return J;var c,m;J=(m=(c=_.L(J,_.pX))==null?void 0:c.commands)!=null?m:[];c=_.M(J);for(m=c.next();!m.done;m=c.next())if(m=this.getFeedbackEndpoint(m.value))return m;return null};
_.V.computeNavigationEndpoint=function(J){return v_3(J==null?void 0:J.navigationEndpoint)};
_.V.handleReloadDownloadsInfo=function(){if(this.entityDrivenState){var J=Object.assign({},this.data,this.entityDrivenState);JSON.stringify(J)!==JSON.stringify(this.data)&&this.set("data",J)}};
_.V.onDataChanged=function(){var J=this,c=this.getOwner();if(c){this.set("data.owner",c);var m,b,x,P,p,t=((m=this.data)==null?void 0:(b=m.shortBylineText)==null?void 0:(x=b.runs)==null?void 0:(P=x[0])==null?void 0:P.text)||((p=c.name)==null?void 0:p.simpleText);this.set("data.owner.title",t)}var I,a,k,H,T,r;c=((I=this.data)==null?void 0:(a=I.thumbnailRenderer)==null?void 0:a.playlistVideoThumbnailRenderer)||((k=this.data)==null?void 0:(H=k.thumbnailRenderer)==null?void 0:H.playlistCustomThumbnailRenderer)||
((T=this.data)==null?void 0:(r=T.thumbnailRenderer)==null?void 0:r.showCustomThumbnailRenderer);var W;((W=this.data)==null?0:W.thumbnail)||!c||this.set("data.thumbnail",c.thumbnail);this.updateInlinePreviewHoverListeners();requestAnimationFrame(function(){J.updateLockupSize()});
var Y;if(I=((Y=this.data)==null?void 0:Y.trackingParams)||"")this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(I);var Z;((Z=this.dismissActionToReplayEntity)==null?0:Z.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command)};
_.V.onHiddenChanged=function(){this.updateLockupSize()};
_.V.onIsDismissedChanged=function(){if(this.ytdDismissibleItemBehavior.isDismissed)_.m9(this.hostElement,"yt-terminate-video-preview-action");else{var J;(J=this.videoTitleLink)==null||J.focus()}};
_.V.metadataColorChanged=function(){var J;if(this.metadataColor&&((J=this.videoTitle)==null?0:J.style))this.videoTitle.style.color=_.XB(this.metadataColor);else{var c,m;!this.metadataColor&&((c=this.videoTitle)==null?0:(m=c.style)==null?0:m.color)&&(this.videoTitle.style.color="")}};
_.V.onDetailsClick=function(J){var c=this.computedNavigationEndpoint;c&&(_.AP(_.OT(J),this.hostElement,["A","BUTTON","YT-AVATAR-STACK-VIEW-MODEL"])||_.cA(this.hostElement,"yt-navigate",{endpoint:c}))};
_.V.cleanupThumbnailAfterPageTransition=function(J){_.j1q(document,"yt-page-type-changed",function(){J.style.viewTransitionName=""})};
_.V.onRendererTap=function(){this.prepareThumbnailForPageTransition();var J,c,m=((J=this.data)==null?void 0:J.serviceEndpoint)||this.getFeedbackEndpoint((c=this.data)==null?void 0:c.navigationEndpoint);m&&_.L(m,_.uc)&&this.ytComponentBehavior.resolveCommand(m)};
_.V.onMouseDown=function(J){var c=J.target,m=this.computedNavigationEndpoint,b;J=c.href||((b=_.L(m==null?void 0:m.commandMetadata,_.lk))==null?void 0:b.url);b=c.data||m;J&&b&&dgm(J,b)};
_.V.computeVideoTitleText=function(){var J;if((J=this.data)==null?0:J.title)return Object.assign({},this.data.title,{accessibility:void 0})};
_.V.computeHasPlaylistThumbnail=function(J){var c,m,b,x,P;if((((c=J.thumbnailRenderer)==null?0:c.playlistVideoThumbnailRenderer)||((m=J.thumbnailRenderer)==null?0:m.playlistCustomThumbnailRenderer)||((b=J.thumbnailRenderer)==null?0:b.showCustomThumbnailRenderer)||((x=J.thumbnailRenderer)==null?0:x.playlistVideoThumbnailRenderer)||((P=J.thumbnailRenderer)==null?0:P.playlistCustomThumbnailRenderer))&&J.thumbnailOverlays)for(c=0;c<J.thumbnailOverlays.length;c++)if(m=void 0,(m=J.thumbnailOverlays[c])==
null?0:m.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.eE.Object.defineProperties(tv.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.w("web_enable_typography_bump_v2")}},
lazyLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(this.shouldLazyLoadMenu()){var J;return(J=this.data)==null?void 0:J.menu}}},
immediateLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(!this.shouldLazyLoadMenu()){var J;return(J=this.data)==null?void 0:J.menu}}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var J;return!((J=this.JSC$13963_inlinePreviewHoverListener)==null?0:uF(J))&&!!this.ytdLockupBehavior.lockupIsHovered}},
stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.Nr(location.pathname)==="home"?"large":"medium"}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var J;return!((J=this.data)==null||!J.avatar)}},
mediaId:{configurable:!0,enumerable:!0,get:function(){var J,c;return((J=this.data)==null?void 0:J.videoId)||((c=this.data)==null?void 0:c.playlistId)||""}}});
tv.prototype.onMouseDown=tv.prototype.onMouseDown;tv.prototype.metadataColorChanged=tv.prototype.metadataColorChanged;tv.prototype.onIsDismissedChanged=tv.prototype.onIsDismissedChanged;tv.prototype.onHiddenChanged=tv.prototype.onHiddenChanged;tv.prototype.onDataChanged=tv.prototype.onDataChanged;tv.prototype.handleReloadDownloadsInfo=tv.prototype.handleReloadDownloadsInfo;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],tv.prototype,"ytRendererBehavior",void 0);
_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],tv.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],tv.prototype,"ytComponentBehavior",void 0);_.O([_.f(_.XP),_.R("design:type",Object)],tv.prototype,"ytdDismissibleItemBehavior",void 0);_.O([_.f(_.$N),_.R("design:type",Object)],tv.prototype,"ytdLockupBehavior",void 0);_.O([_.f(_.fY),_.R("design:type",Object)],tv.prototype,"ytdReduxBehavior",void 0);
_.O([_.U(),_.R("design:type",Object)],tv.prototype,"data",void 0);_.O([_.U(),_.R("design:type",String)],tv.prototype,"entitySelectorType",void 0);_.O([_.U(),_.R("design:type",Boolean)],tv.prototype,"noEndpoints",void 0);_.O([_.U({value:!1}),_.R("design:type",Boolean)],tv.prototype,"isRadio",void 0);_.O([_.U({reflectToAttribute:!0,selector:_.DZ}),_.R("design:type",Boolean)],tv.prototype,"miniMode",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],tv.prototype,"fullHeight",void 0);
_.O([_.U(),_.R("design:type",Boolean)],tv.prototype,"showDarkVideoMetadata",void 0);_.O([_.U(),_.R("design:type",Boolean)],tv.prototype,"showLightVideoMetadata",void 0);_.O([_.U(),_.R("design:type",Number)],tv.prototype,"metadataColor",void 0);_.O([_.U(),_.R("design:type",Object)],tv.prototype,"showChannelAvatar",void 0);_.O([_.U(),_.R("design:type",Boolean)],tv.prototype,"hidden",void 0);_.O([_.U({value:!0}),_.R("design:type",Boolean)],tv.prototype,"showYtInteraction",void 0);
_.O([_.U(),_.R("design:type",String)],tv.prototype,"dismissedContentId",void 0);_.O([_.U({selectorArgs:["dismissedContentId"],selector:LIR}),_.R("design:type",Object)],tv.prototype,"dismissActionToReplayEntity",void 0);
_.O([_.U({selectorArgs:["entitySelectorType","mediaId"],selector:function(J,c,m){if(_.w("kevlar_modern_downloads_page")&&m&&c&&c!=="RICH_ITEM_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(c){case "RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO":var b=rZe(J,m);if(b){c=_.YY(J,m);var x=ZZ(J,m),P=qPf(J,m);J=qy(J,m);var p=NV3(b,c,x,P);x=p.shortViewCountText;var t=p.publishedTimeText;p=p.badges;var I=J>0;P=MBm(b,c,P,J);b=_.kY(c)||c==="TRANSFER_STATE_FAILED"||c==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!ac(b.policyEntity)?
void 0:GcR(m,J,b.videoEntity.lengthSeconds);c==="TRANSFER_STATE_PAUSED_BY_USER"&&m&&!_.w("dl_resume_click_killswitch")&&(b={offlineVideoEndpoint:{videoId:m,action:"ACTION_RESUME"}});m={shortViewCountText:x,publishedTimeText:t,badges:p,isWatched:I,navigationEndpoint:b,thumbnailOverlays:P}}else m=void 0;return m;case "RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST":a:{if(c=syT(J,m))if(b=_.XM(J,m),P=_.LMm(J,m),b!=="TRANSFER_STATE_UNKNOWN"){m=p$2(c,b,P,m,HOT(J));break a}m=void 0}return m;default:_.qz(new _.w3("Error: entitySelectorType defined but not matched in selector.",
J,c))}}}),
_.R("design:type",Object)],tv.prototype,"entityDrivenState",void 0);_.O([_.U({computed:"computeVideoTitleText(data)"}),_.R("design:type",Object)],tv.prototype,"videoTitleText",void 0);_.O([_.U({computed:"computeHasPlaylistThumbnail(data)"}),_.R("design:type",Object)],tv.prototype,"hasPlaylistThumbnail",void 0);_.O([_.U({computed:"computeNavigationEndpoint(data)"}),_.R("design:type",Object)],tv.prototype,"computedNavigationEndpoint",void 0);
_.O([_.U({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],tv.prototype,"typographyBump",void 0);_.O([_.U({reflectToAttribute:!0}),_.q("typographyBump"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],tv.prototype,"typographyBumpV2",null);_.O([_.Iu("#video-title"),_.R("design:type",HTMLElement)],tv.prototype,"videoTitle",void 0);_.O([_.Iu("#video-title-link"),_.R("design:type",HTMLElement)],tv.prototype,"videoTitleLink",void 0);
_.O([_.Iu("#thumbnail"),_.R("design:type",HTMLElement)],tv.prototype,"thumbnail",void 0);_.O([_.Iu("#dismissible"),_.R("design:type",HTMLElement)],tv.prototype,"JSC$13963_dismissibleMedia",void 0);_.O([_.q("data.menu"),_.R("design:type",Object),_.R("design:paramtypes",[])],tv.prototype,"lazyLoadMenu",null);_.O([_.q("data.menu"),_.R("design:type",Object),_.R("design:paramtypes",[])],tv.prototype,"immediateLoadMenu",null);
_.O([_.kr("entityDrivenState"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],tv.prototype,"handleReloadDownloadsInfo",null);_.O([_.kr("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],tv.prototype,"onDataChanged",null);_.O([_.kr("hidden"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],tv.prototype,"onHiddenChanged",null);
_.O([_.NE("isDismissed"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],tv.prototype,"onIsDismissedChanged",null);_.O([_.NE("metadataColor"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],tv.prototype,"metadataColorChanged",null);_.O([_.ps("mousedown"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],tv.prototype,"onMouseDown",null);
_.O([_.q("lockupIsHovered"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],tv.prototype,"isHovered",null);_.O([_.q("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],tv.prototype,"useAvatar",null);_.O([_.q("data","entitySelectorType"),_.R("design:type",String),_.R("design:paramtypes",[])],tv.prototype,"mediaId",null);tv=_.O([_.E({is:"ytd-rich-grid-media",disableElementRegistration:!0})],tv);
var QBL=_.cd()(tv,"ytd-rich-grid-media",function(){if(AlB!==void 0)return AlB;var J=document.createElement("template");_.z(J,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-grid-media--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" dark$="[[showDarkVideoMetadata]]" hidden="[[hidden]]" light$="[[showLightVideoMetadata]]" on-click="onRendererTap" class="style-scope ytd-rich-grid-media"><div id="thumbnail" class="style-scope ytd-rich-grid-media"><ytd-thumbnail data="[[data]]" hidden$="[[hasPlaylistThumbnail]]" hovered="[[isHovered]]" rich-grid-thumbnail="" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-rich-grid-media"></ytd-thumbnail><ytd-playlist-thumbnail data="[[data]]" hidden="[[!hasPlaylistThumbnail]]" hovered="[[isHovered]]" is-double-stack="" thumbnail-size="[[stackThumbnailSize]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-rich-grid-media"></ytd-playlist-thumbnail></div><div id="thumbnail-underlay" on-click="onDetailsClick" hidden="[[!data.thumbnailUnderlay]]" class="style-scope ytd-rich-grid-media"></div><div id="details" on-click="onDetailsClick" class="style-scope ytd-rich-grid-media"><div id="avatar-container" class="yt-simple-endpoint style-scope ytd-rich-grid-media" hidden="[[!showChannelAvatar]]"><a id="avatar-link" class="yt-simple-endpoint style-scope ytd-rich-grid-media" href$="[[computeHref_(data.owner.navigationEndpoint)]]" data="[[data.owner.navigationEndpoint]]" title="[[data.owner.title]]" tabindex="-1" hidden="[[useAvatar]]"><yt-img-shadow id="avatar-image" thumbnail="[[data.owner.thumbnail]]" width="48" class="style-scope ytd-rich-grid-media"></yt-img-shadow></a><div id="avatar" hidden="[[!useAvatar]]" class="style-scope ytd-rich-grid-media"></div></div><div id="meta" class="style-scope ytd-rich-grid-media"><h3 class="style-scope ytd-rich-grid-media"><ytd-badge-supported-renderer class="top-badge style-scope ytd-rich-grid-media" collection-truncate="" hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]"></ytd-badge-supported-renderer><a id="video-title-link" class="yt-simple-endpoint focus-on-expand style-scope ytd-rich-grid-media" href$="[[computeHref_(computedNavigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[computedNavigationEndpoint]]"><yt-formatted-string id="video-title" text="[[videoTitleText]]" class="style-scope ytd-rich-grid-media"></yt-formatted-string></a></h3><ytd-video-meta-block class="grid style-scope ytd-rich-grid-media" data="[[data]]" metadata-color="[[metadataColor]]" mini-mode="[[miniMode]]" radio-meta="[[isRadio]]" rich-meta="" typography-bump="[[typographyBump]]"></ytd-video-meta-block><ytd-badge-supported-renderer class="video-badge style-scope ytd-rich-grid-media" badges="[[data.badges]]" hidden="[[!data.badges]]"></ytd-badge-supported-renderer><ytd-badge-supported-renderer class="title-badge style-scope ytd-rich-grid-media" hidden="[[!data.bottomStandaloneBadge]]" top-standalone-badge="[[data.bottomStandaloneBadge]]"></ytd-badge-supported-renderer><yt-formatted-string id="view-more" hidden="[[!data.viewPlaylistText]]" link-inherit-color="" text="[[data.viewPlaylistText]]" class="style-scope ytd-rich-grid-media"></yt-formatted-string><div id="buttons" class="style-scope ytd-rich-grid-media"></div></div><div id="menu" class="style-scope ytd-rich-grid-media"></div><div id="immediate-load-menu" class="style-scope ytd-rich-grid-media"></div></div><div id="attached-survey" class="style-scope ytd-rich-grid-media"></div></div><div id="dismissed" light$="[[showLightVideoMetadata]]" dark$="[[showDarkVideoMetadata]]" class="style-scope ytd-rich-grid-media"><div id="dismissed-content" class="style-scope ytd-rich-grid-media"></div></div><yt-interaction id="interaction" class="extended style-scope ytd-rich-grid-media" hidden="[[!showYtInteraction]]"></yt-interaction>');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return AlB=J},{mode:_.mP("kevlar_poly_si_batch_j072")?1:2});var eH$;var Ip=function(){var J=_.h.apply(this,arguments)||this;J.removeMaxWidth=!0;J.insetMetadata=!1;return J};
_.D(Ip,_.h);_.V=Ip.prototype;_.V.configureRendererStamper=function(){return{innerMenu:pi,outerMenu:Object.assign({},pi,{id:"menu-outer"}),dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.V.onDataChanged=function(){var J,c=((J=this.data)==null?void 0:J.trackingParams)||"";c&&(this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(c));var m;((m=this.dismissActionToReplayEntity)==null?0:m.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command);this.updateInlinePreviewHoverListeners()};
_.V.attached=function(){this.updateInlinePreviewHoverListeners()};
_.V.detached=function(){this.clearInlinePreviewHoverListeners()};
_.V.updateInlinePreviewHoverListeners=function(){if(this.isShort||this.isSlimShort)this.clearInlinePreviewHoverListeners(),this.JSC$13968_inlinePreviewHoverListener=AT({mediaRenderer:this,lockupElement:this.JSC$13968_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:voQ})};
_.V.clearInlinePreviewHoverListeners=function(){var J;(J=this.JSC$13968_inlinePreviewHoverListener)==null||Jm(J)};
_.V.onRendererTap=function(){var J,c,m=(J=this.data)==null?void 0:(c=J.serviceEndpoints)==null?void 0:c[0];_.L(m,_.uc)&&this.componentBehavior.resolveCommand(m)};
_.V.onDetailsClick=function(J){var c,m=(c=this.data)==null?void 0:c.navigationEndpoint;m&&(_.AP(_.OT(J),this.hostElement,["A","BUTTON"])||this.componentBehavior.resolveCommand(m))};
_.V.onShow=function(){var J=this.data;J.onFirstVisibleCommand&&(this.componentBehavior.resolveCommand(J.onFirstVisibleCommand),delete J.onFirstVisibleCommand)};
_.eE.Object.defineProperties(Ip.prototype,{thumbnailObjectFit:{configurable:!0,enumerable:!0,get:function(){return this.insetMetadata?"COVER":void 0}},
innerMenu:{configurable:!0,enumerable:!0,get:function(){var J;return this.insetMetadata?void 0:(J=this.data)==null?void 0:J.menu}},
outerMenu:{configurable:!0,enumerable:!0,get:function(){var J;return this.insetMetadata?(J=this.data)==null?void 0:J.menu:void 0}},
shortsBadges:{configurable:!0,enumerable:!0,get:function(){var J=this.data;if(J!=null&&J.badge&&(J=_.L(J.badge,sbL))){var c,m,b;return[{metadataBadgeRenderer:{label:((c=J.label)==null?void 0:(m=c.runs)==null?void 0:m[0].text)||((b=J.label)==null?void 0:b.simpleText),style:"BADGE_STYLE_TYPE_SHORTS_PLAYER"}}]}}},
isShort:{configurable:!0,enumerable:!0,get:function(){var J;return((J=this.data)==null?void 0:J.videoType)==="REEL_VIDEO_TYPE_VIDEO"}},
isSlimShort:{configurable:!0,enumerable:!0,get:function(){var J;return((J=this.data)==null?void 0:J.style)==="REEL_ITEM_STYLE_SHORTS_SLIM"}},
computedTitle:{configurable:!0,enumerable:!0,get:function(){if(this.isShort){var J=this.data;return Object.assign({},J.headline,{accessibility:J.accessibility})}return this.data.title}},
computedAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var J,c,m;return this.isSlimShort?(J=this.computedTitle)==null?void 0:(c=J.accessibility)==null?void 0:(m=c.accessibilityData)==null?void 0:m.label:void 0}},
shouldForce2By3:{configurable:!0,enumerable:!0,get:function(){return _.w("web_slim_media_force_2_by_3")}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var J;return!((J=this.JSC$13968_inlinePreviewHoverListener)==null?0:uF(J))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
Ip.prototype.onDataChanged=Ip.prototype.onDataChanged;_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],Ip.prototype,"componentBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Ip.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.$N),_.R("design:type",Object)],Ip.prototype,"ytdLockupBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],Ip.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.f(_.XP),_.R("design:type",Object)],Ip.prototype,"ytdDismissibleItemBehavior",void 0);_.O([_.f(_.fY),_.R("design:type",Object)],Ip.prototype,"ytdReduxBehavior",void 0);_.O([_.Iu("ytd-thumbnail"),_.R("design:type",HTMLElement)],Ip.prototype,"thumbnail",void 0);_.O([_.Iu("#dismissible"),_.R("design:type",HTMLElement)],Ip.prototype,"JSC$13968_dismissibleMedia",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Ip.prototype,"removeMaxWidth",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Ip.prototype,"insetMetadata",void 0);_.O([_.U(),_.R("design:type",String)],Ip.prototype,"dismissedContentId",void 0);_.O([_.U({selectorArgs:["dismissedContentId"],selector:LIR}),_.R("design:type",Object)],Ip.prototype,"dismissActionToReplayEntity",void 0);_.O([_.q("insetMetadata"),_.R("design:type",Object),_.R("design:paramtypes",[])],Ip.prototype,"thumbnailObjectFit",null);
_.O([_.q("data","insetMetadata"),_.R("design:type",Object),_.R("design:paramtypes",[])],Ip.prototype,"innerMenu",null);_.O([_.q("data","insetMetadata"),_.R("design:type",Object),_.R("design:paramtypes",[])],Ip.prototype,"outerMenu",null);_.O([_.U(),_.R("design:type",Object)],Ip.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0,selector:_.DZ}),_.R("design:type",Boolean)],Ip.prototype,"miniMode",void 0);
_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Ip.prototype,"onDataChanged",null);_.O([_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],Ip.prototype,"shortsBadges",null);_.O([_.q("data"),_.U({reflectToAttribute:!0}),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Ip.prototype,"isShort",null);
_.O([_.q("data"),_.U({reflectToAttribute:!0}),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Ip.prototype,"isSlimShort",null);_.O([_.q("data","isShort"),_.R("design:type",Object),_.R("design:paramtypes",[])],Ip.prototype,"computedTitle",null);_.O([_.q("isSlimShort","computedTitle"),_.R("design:type",Object),_.R("design:paramtypes",[])],Ip.prototype,"computedAccessibilityLabel",null);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Ip.prototype,"shouldForce2By3",null);_.O([_.q("lockupIsHovered"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Ip.prototype,"isHovered",null);Ip=_.O([_.E({is:"ytd-rich-grid-slim-media",disableElementRegistration:!0})],Ip);
_.v(Ip,"ytd-rich-grid-slim-media",function(){if(eH$!==void 0)return eH$;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return eH$=J},{mode:_.mP("kevlar_poly_si_batch_j063")?1:2});var jB8;var FdB;var KF=function(){var J=_.h.apply(this,arguments)||this;J.darkerDarkTheme=_.w("web_darker_dark_theme");return J};
_.D(KF,_.h);KF.prototype.computeIcon=function(J){return J&&J.iconType?"yt-sys-icons:"+J.iconType.toLowerCase():""};
KF.prototype.onMouseEnter=function(){this.isHovered=!0};
KF.prototype.onMouseLeave=function(){this.isHovered=!1};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],KF.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],KF.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],KF.prototype,"ytComponentBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],KF.prototype,"data",void 0);_.O([_.U({value:!1}),_.R("design:type",Boolean)],KF.prototype,"isHovered",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],KF.prototype,"darkerDarkTheme",void 0);KF=_.O([_.E({is:"ytd-expand-on-hover-card-renderer",disableElementRegistration:!0})],KF);
_.v(KF,"ytd-expand-on-hover-card-renderer",function(){if(FdB!==void 0)return FdB;var J=document.createElement("template");_.z(J,'\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>');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return FdB=J},{mode:1});var l9u,yl8=function(){if(l9u!==void 0)return l9u;var J=document.createElement("template");_.z(J,'\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>');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return l9u=J};_.zH("itemSectionRenderer","channelRenderer","ytd-channel-renderer");var CF=function(){var J=_.h.apply(this,arguments)||this;J.compactStyle=!1;J.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return J};
_.D(CF,_.h);_.V=CF.prototype;_.V.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.V.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"}}}};
_.V.computeHideDot=function(J){return!(J&&J.subscriberCountText&&J.videoCountText)||this.compactStyle};
_.V.hasDualButtons=function(J){return J&&J.purchaseButton&&J.subscribeButton};
_.V.backgroundColorChanged=function(){if(this.data!==void 0){var J=this.data.backgroundColor;this.isDarkTheme&&(J=this.data.backgroundColorDarkTheme);this.hostElement.style.backgroundColor=J!=null?_.XB(J):"transparent"}};
_.V.onDarkModeToggledAction=function(J){this.isDarkTheme=J};
_.V.onTap=function(J){var c,m,b=((c=this.data)==null?void 0:c.navigationEndpoint)||((m=this.data)==null?void 0:m.serviceEndpoint);_.L(b,_.c8)&&(b&&_.BG().resolve(_.gu).resolveCommand(b,{form:{element:this.hostElement}}),J.preventDefault())};
_.V.computeChannelEndpoint=function(J){return _.L(J,_.c8)?null:J};
_.V.computeHrefEndpoint=function(J){return _.L(J,_.c8)?null:this.componentBehavior.computeHref_(J)};
_.V.computeChannelRendererStyle=function(J){return J};
_.V.computeIconSize=function(J){return J?108:136};
_.eE.Object.defineProperties(CF,{template:{configurable:!0,enumerable:!0,get:function(){return yl8()}}});
CF.prototype.backgroundColorChanged=CF.prototype.backgroundColorChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],CF.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],CF.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.vL),_.R("design:type",Object)],CF.prototype,"ytdOpenPopupBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],CF.prototype,"componentBehavior",void 0);
_.O([_.U(),_.R("design:type",Object)],CF.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Boolean)],CF.prototype,"isDarkTheme",void 0);_.O([_.U({computed:"computeChannelRendererStyle(data.channelRendererStyle)",reflectToAttribute:!0}),_.R("design:type",String)],CF.prototype,"channelRendererStyle",void 0);_.O([_.U({computed:"hasDualButtons(data)",reflectToAttribute:!0}),_.R("design:type",Boolean)],CF.prototype,"dualButtons",void 0);_.O([_.U({reflectToAttribute:!0,value:function(){return _.w("enable_desktop_search_bigger_thumbs")}}),
_.R("design:type",Boolean)],CF.prototype,"useBiggerThumbs",void 0);_.O([_.U({reflectToAttribute:!0,value:function(){return _.mG("desktop_search_bigger_thumbs_style")}}),
_.R("design:type",String)],CF.prototype,"biggerThumbStyle",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],CF.prototype,"compactStyle",void 0);_.O([_.NE("data","isDarkTheme"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],CF.prototype,"backgroundColorChanged",null);CF=_.O([_.E({is:"ytd-channel-renderer",disableElementRegistration:!0})],CF);_.v(CF,"ytd-channel-renderer",function(){return yl8()},{mode:1});var Btu;var gEa;_.zH("itemSectionRenderer","radioRenderer","ytd-radio-renderer");var ap=function(){var J=_.h.apply(this,arguments)||this;J.displayItemCount=2;J.collections=_.w("web_modern_collections_v2");J.hasPlaylistThumbnail=!1;J.stackThumbnailSize="large";return J};
_.D(ap,_.h);_.V=ap.prototype;_.V.attached=function(){this.updateInlinePreviewHoverListeners()};
_.V.detached=function(){this.clearInlinePreviewHoverListeners()};
_.V.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.V.computeFirstVideos=function(J,c){return J&&c?J.slice(0,c):[]};
_.V.computeThumbnailWidth=function(J,c){return J?c==="BIG"?500:c==="MASSIVE"?600:c==="MEDIUM"?450:420:360};
_.V.computeThumbnailHeight=function(J,c){return J?c==="BIG"?280:c==="MASSIVE"?337:234:202};
_.V.clearInlinePreviewHoverListeners=function(){var J;(J=this.JSC$13981_inlinePreviewHoverListener)==null||Jm(J)};
_.V.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13981_inlinePreviewHoverListener=AT({mediaRenderer:this,lockupElement:this.hostElement,videoPreviewOpts:Eou,thumbnailElement:this.thumbnail})};
_.V.computeHasPlaylistThumbnail=function(J){var c,m;if((((c=J.thumbnailRenderer)==null?0:c.playlistVideoThumbnailRenderer)||((m=J.thumbnailRenderer)==null?0:m.playlistCustomThumbnailRenderer))&&J.thumbnailOverlays)for(c=0;c<J.thumbnailOverlays.length;c++)if(m=void 0,(m=J.thumbnailOverlays[c])==null?0:m.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.eE.Object.defineProperties(ap.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var J;return!((J=this.JSC$13981_inlinePreviewHoverListener)==null?0:uF(J))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
ap.prototype.dataChanged=ap.prototype.dataChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],ap.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.$N),_.R("design:type",Object)],ap.prototype,"ytdLockupBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],ap.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],ap.prototype,"displayItemCount",void 0);_.O([_.U({reflectToAttribute:!0,value:function(){return _.w("enable_desktop_search_bigger_thumbs")}}),
_.R("design:type",Boolean)],ap.prototype,"useBiggerThumbs",void 0);_.O([_.U({reflectToAttribute:!0,value:function(){return _.mG("desktop_search_bigger_thumbs_style")}}),
_.R("design:type",String)],ap.prototype,"biggerThumbsStyle",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],ap.prototype,"collections",void 0);_.O([_.U({computed:"computeHasPlaylistThumbnail(data)"}),_.R("design:type",Object)],ap.prototype,"hasPlaylistThumbnail",void 0);_.O([_.U(),_.R("design:type",String)],ap.prototype,"stackThumbnailSize",void 0);_.O([_.Iu("ytd-thumbnail"),_.R("design:type",HTMLElement)],ap.prototype,"thumbnail",void 0);
_.O([_.kr("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],ap.prototype,"dataChanged",null);_.O([_.q("lockupIsHovered"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],ap.prototype,"isHovered",null);ap=_.O([_.E({is:"ytd-radio-renderer",disableElementRegistration:!0})],ap);
_.v(ap,"ytd-radio-renderer",function(){if(gEa!==void 0)return gEa;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return gEa=J},{mode:_.mP("kevlar_poly_si_batch_j058")?1:2});var Jwu;_.zH("itemSectionRenderer","showRenderer","ytd-show-renderer");var kC=function(){return _.h.apply(this,arguments)||this};
_.D(kC,_.h);kC.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
kC.prototype.computeThumbnailWidth=function(J){return J?360:246};
kC.prototype.computeUseProminentThumbs=function(J){return J};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],kC.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],kC.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],kC.prototype,"data",void 0);_.O([_.U({value:!1}),_.R("design:type",Boolean)],kC.prototype,"isSearch",void 0);
_.O([_.U({reflectToAttribute:!0,computed:"computeUseProminentThumbs(isSearch)"}),_.R("design:type",Boolean)],kC.prototype,"useProminentThumbs",void 0);kC=_.O([_.E({is:"ytd-show-renderer",disableElementRegistration:!0})],kC);
_.v(kC,"ytd-show-renderer",function(){if(Jwu!==void 0)return Jwu;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return Jwu=J},{mode:1});_.zH("itemSectionRenderer","feedEntryRenderer","ytd-feed-entry-renderer");var Hp=function(){var J=_.h.apply(this,arguments)||this;J.isRichGrid=!1;return J};
_.D(Hp,_.h);Hp.prototype.configureRendererStamper=function(){return{"data.item":{id:"contents",mapping:{channelRenderer:"ytd-channel-renderer",playlistRenderer:"ytd-playlist-renderer",radioRenderer:"ytd-radio-renderer",showRenderer:"ytd-show-renderer",videoRenderer:{matcher:function(){return this.isRichGrid?"ytd-rich-grid-media":"ytd-video-renderer"}}}}}};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Hp.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],Hp.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Hp.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Hp.prototype,"isRichGrid",void 0);Hp=_.O([_.E({is:"ytd-feed-entry-renderer",disableElementRegistration:!0})],Hp);
_.v(Hp,"ytd-feed-entry-renderer",function(){if(Btu!==void 0)return Btu;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return Btu=J},{mode:1});var cwB;var iI=function(){return _.h.apply(this,arguments)||this};
_.D(iI,_.h);iI.prototype.showChevronIcon=function(){return this.itemsPerRow>1};
_.O([_.f(_.fY),_.R("design:type",Object)],iI.prototype,"ytdReduxBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],iI.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],iI.prototype,"ytComponentBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],iI.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0,selector:_.W2,value:3}),_.R("design:type",Number)],iI.prototype,"itemsPerRow",void 0);
iI=_.O([_.E({is:"ytd-link-card-renderer",disableElementRegistration:!0})],iI);
_.v(iI,"ytd-link-card-renderer",function(){if(cwB!==void 0)return cwB;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return cwB=J},{mode:1});var m16;var nF=function(){return _.h.apply(this,arguments)||this};
_.D(nF,_.h);_.V=nF.prototype;_.V.configureRendererStamper=function(){return{"data.menu":pi,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.V.onRendererTap=function(J){if(!this.ytdDismissibleItemBehavior.isDismissed){var c,m=(c=this.data)==null?void 0:c.navigationEndpoint;m&&!_.AP(_.OT(J),this.hostElement,["BUTTON"])&&(this.isNavigationCommand(m)?_.AP(_.OT(J),this.hostElement,["A"])||_.cA(this.hostElement,"yt-navigate",{endpoint:m}):this.ytComponentBehavior.resolveCommand(m,{}))}};
_.V.maybeComputeHref=function(J){return this.ytComponentBehavior.computeHref_(J,!0)};
_.V.getNavigationCommand=function(J){return this.isNavigationCommand(J)?J:null};
_.V.isNavigationCommand=function(J){return J?_.L(J,_.I1)||_.L(J,_.Rz)||_.L(J,_.Ee)?!0:!1:!1};
nF.prototype.onRendererTap=nF.prototype.onRendererTap;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],nF.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],nF.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.XP),_.R("design:type",Object)],nF.prototype,"ytdDismissibleItemBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],nF.prototype,"ytComponentBehavior",void 0);
_.O([_.U(),_.R("design:type",Object)],nF.prototype,"data",void 0);_.O([_.ps("tap"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],nF.prototype,"onRendererTap",null);nF=_.O([_.E({is:"ytd-lumiere-promo-item-image-renderer",disableElementRegistration:!0})],nF);
_.v(nF,"ytd-lumiere-promo-item-image-renderer",function(){if(m16!==void 0)return m16;var J=document.createElement("template");_.z(J,'\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>');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return m16=J},{mode:1});var bfC;var Tf=function(){return _.h.apply(this,arguments)||this};
_.D(Tf,_.h);Tf.prototype.computeLandscapeThumbnail=function(){var J;return((J=this.data)==null?void 0:J.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_16_9"};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Tf.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.fY),_.R("design:type",Object)],Tf.prototype,"ytdReduxBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Tf.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0,selector:_.DZ}),_.R("design:type",Boolean)],Tf.prototype,"miniMode",void 0);_.O([_.U({reflectToAttribute:!0,selector:_.W2}),_.R("design:type",Number)],Tf.prototype,"itemsPerRow",void 0);
_.O([_.U({reflectToAttribute:!0,computed:"computeLandscapeThumbnail(data)"}),_.R("design:type",Boolean)],Tf.prototype,"landscapeThumbnail",void 0);Tf=_.O([_.E({is:"ytd-lumiere-shelf-details-renderer",disableElementRegistration:!0})],Tf);
_.v(Tf,"ytd-lumiere-shelf-details-renderer",function(){if(bfC!==void 0)return bfC;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return bfC=J},{mode:_.mP("kevlar_poly_si_batch_j076")?1:2});var x16;var w4=function(){return _.h.apply(this,arguments)||this};
_.D(w4,_.h);w4.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],w4.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],w4.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],w4.prototype,"data",void 0);w4=_.O([_.E({is:"ytd-primetime-promo-details-renderer",disableElementRegistration:!0})],w4);
_.v(w4,"ytd-primetime-promo-details-renderer",function(){if(x16!==void 0)return x16;var J=document.createElement("template");_.z(J,'\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>');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return x16=J},{mode:1});var VIQ;var r4=function(){return _.h.apply(this,arguments)||this};
_.D(r4,_.h);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],r4.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],r4.prototype,"data",void 0);r4=_.O([_.E({is:"ytd-panel-show-style-metadata-renderer",disableElementRegistration:!0})],r4);
_.v(r4,"ytd-panel-show-style-metadata-renderer",function(){if(VIQ!==void 0)return VIQ;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return VIQ=J},{mode:1});var PSZ;var sD=function(){return _.h.apply(this,arguments)||this};
_.D(sD,_.h);_.V=sD.prototype;_.V.onPanelTap=function(){if(this.data&&this.data.command&&!this.isNavigationCommand(this.data.command))return this.ytComponentBehavior.resolveCommand(this.data.command,{})};
_.V.configureRendererStamper=function(){return{"data.metadata":{id:"panel-metadata",mapping:{panelShowStyleMetadataRenderer:{component:"ytd-panel-show-style-metadata-renderer"}}}}};
_.V.computeThumbnail=function(J){if(J)return J.smallFormFactorBackgroundThumbnail||J.largeFormFactorBackgroundThumbnail};
_.V.maybeComputeHref=function(J){return this.ytComponentBehavior.computeHref_(J,!0)};
_.V.isNavigationCommand=function(J){return J?_.L(J,_.I1)||_.L(J,_.Rz)||_.L(J,_.Ee)?!0:!1:!1};
_.V.getNavigationCommand=function(J){return this.isNavigationCommand(J)?J:null};
sD.prototype.onPanelTap=sD.prototype.onPanelTap;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],sD.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],sD.prototype,"ytComponentBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],sD.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],sD.prototype,"data",void 0);
_.O([_.U({reflectToAttribute:!0,value:!0}),_.R("design:type",Boolean)],sD.prototype,"roundedContainer",void 0);_.O([_.U({reflectToAttribute:!0,value:_.w("web_modern_buttons")}),_.R("design:type",Boolean)],sD.prototype,"modernButtons",void 0);_.O([_.ps("tap"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],sD.prototype,"onPanelTap",null);sD=_.O([_.E({is:"ytd-primetime-promo-panel-renderer",disableElementRegistration:!0})],sD);
_.v(sD,"ytd-primetime-promo-panel-renderer",function(){if(PSZ!==void 0)return PSZ;var J=document.createElement("template");_.z(J,'\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>');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return PSZ=J},{mode:1});_.lv(_.Q1(function(J){J=_.ou(J,{data:{},useFullWidth:!1});var c=J.data,m=J.useFullWidth,b=function(){return c().caption},x=function(){return c().image},P=function(){return _.ZG(c().onTap)};
J={};J=_.pq("ytTeaserCardViewModelHost",(J.ytTeaserCardViewModelUseFullWidth=function(){return m()},J));
return _.C("teaser-card-view-model",{class:J},_.C(_.n,{cond:function(){return P()},
then:function(){return _.C(Wr$,{className:"ytTeaserCardViewModelLink",command:P,forceNewState:!0,useATagConfig:!0},_.C("div",{class:"ytTeaserCardViewModelImageContainer"},_.C(_.n,{cond:x,then:function(p){return _.C(_.RA,{data:p,className:"ytTeaserCardViewModelImage",alt:""})}})),_.C("p",{class:"ytTeaserCardViewModelCaption"},b))}}))},"Fb"),"teaser-card-view-model",{props:{data:_.vt,
useFullWidth:_.vt}});var MIC=new _.oE("RICH_GRID_VIDEO_RENDERER_TOKEN");_.lv(_.Q1(function(J){var c=J.data;var m=J.showYtInteractionInContent;var b=function(){return!!c().selectableFeedback};
J=_.M(_.K2(!1,void 0,"nblDw"));var x=J.next().value,P=J.next().value;_.uN(function(){var T=_.L(c().primaryButton,_.sc);(T==null?0:T.isToggled)&&P(T.isToggled)});
J=_.Kq(function(T){if(!b())return!1;if(x()){var r;var W=(r=c().selectableFeedback)==null?void 0:r.onDeselect}else{var Y;W=(Y=c().selectableFeedback)==null?void 0:Y.onSelect}W&&_.hd(W,{form:{element:T.target}});P(!x());if(T=_.L(c().primaryButton,_.sc))T.isToggled=x();return!1});
var p=function(){if(!b()){var T,r=(T=c().loggingDirectives)==null?void 0:T.trackingParams;r&&_.b6(_.BG().resolve(_.no),r)}},t=_.lm2(),I=function(){var T;
return b()?(T=c().selectableFeedback)==null?void 0:T.a11yLabel:void 0},a=function(){return b()?{toggled:x()}:{}},k=_.BG().resolve(_.y6(MIC)),H={};
return _.C("yt-feedback-item-renderer",{class:_.pq("ytFeedbackItemRendererHost",(H.ytFeedbackItemRendererSelectableFeedback=b,H)),"on:click":J,"on:keydown":t,title:I,"aria-label":I,"aria-pressed":function(){return b()?x():void 0},
tabindex:function(){return b()?0:void 0},
role:function(){return b()?"button":void 0}},_.C("div",{class:"ytFeedbackItemRendererContentContainer"},_.C(_.wi,{data:function(){return c().content}},{videoRenderer:function(T){return _.C(k,{data:T.data,
showYtInteraction:m})},
lockupViewModel:function(T){return _.C(_.g1,{data:T.data,containerType:2})}})),_.C("div",{class:"ytFeedbackItemRendererButtonsContainer"},_.C(_.wi,{data:function(){return c().primaryButton}},{toggleButtonViewModel:function(T){return _.C(_.LK,{data:T.data,
buttonShapeOverrides:a,disableExplicitClickLogging:!0,onToggle:p})}})))},"Gb"),"yt-feedback-item-renderer",{props:{data:_.vt,
showYtInteractionInContent:_.vt}});var LF=function(){var J=_.h.apply(this,arguments)||this;J.isShortsGrid=!1;J.isCompactGrid=!1;J.isShortsPanelGrid=!1;J.renderedFromRichGrid=!1;J.isInFirstColumn=!1;J.noGutterMargins=!1;J.isInlineGroupItem=!1;J.insetMetadata=!1;J.noBottomMarginInAds=_.w("web_no_bottom_margin_for_home_ad_buttons");J.force16By9ThumbnailAspectRatio=!1;J.useCompactList=!1;J.containerType=2;J.thumbnailTargetWidth=9999;J.isResponsiveGrid=!1;J.lockupExperiments={useRichGridLegacyTypography:!0,useRichGridLegacyMargin:!0};J.actionMap=
{"ytd-rich-item-index-update-action":"onIndexUpdateAction"};J.hoverListener=J.hover.bind(J);J.leaveListener=J.leave.bind(J);J.highlighted=!1;J.JSC$14016_unsubscribeFromInlinePreviewIsActive=function(){};
return J};
_.D(LF,_.h);_.V=LF.prototype;_.V.computeContainerType=function(){return this.useCompactList?3:2};
_.V.computeThumbnailTargetWidth=function(){var J;return(J=this.itemWidth)!=null?J:9999};
_.V.updateIsInFirstColumn=function(){var J;this.isInFirstColumn=((J=this.data)==null?void 0:J.colIndex)===0};
_.V.observerContainerType=function(){if(this.lockup){var J=this.lockup;J.containerType=this.containerType;J.sizing=this.sizing;J.typographyBump=this.typographyBump;J.itemWidth=this.itemWidth}this.richGridMedia&&_.w("rich_grid_enable_dynamic_offset")&&(this.richGridMedia.typographyBump=this.richTypographyBump);this.adSlotRenderer&&_.w("rich_grid_enable_dynamic_offset")&&(this.adSlotRenderer.typographyBump=this.richTypographyBump)};
_.V.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]]"}}}}}};
_.V.leave=function(J){J=J.relatedTarget;var c=document.querySelector("ytd-video-preview");J&&c&&_.gB(c).contains(J)||this.removeAndCleanupHighlight()};
_.V.hover=function(){var J;if(!this.highlighted&&(!_.w("web_enable_rich_item_on_focus_effect")||(J=this.data)!=null&&J.onFocusEffect)){var c,m;((c=this.data)==null?void 0:(m=c.onFocusEffect)==null?void 0:m.onFocusStyle)==="ON_FOCUS_STYLE_BACKGROUND"&&(this.hostElement.classList.add("ytd-rich-item-renderer-highlight"),(J=this.getBackgroundColor())&&Object.assign(this.hostElement.style,{backgroundColor:J,boxShadow:"0 0 0 10px "+J}));var b,x;((b=this.data)==null?void 0:(x=b.onFocusEffect)==null?void 0:
x.onFocusStyle)==="ON_FOCUS_STYLE_BORDER"&&this.hostElement.classList.add("ytd-rich-item-renderer-highlight-border");this.highlighted=!0}};
_.V.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};
_.V.registerHoverHighlightListeners=function(){var J=this;this.hostElement.addEventListener("mouseover",this.hoverListener);this.hostElement.addEventListener("mouseleave",this.leaveListener);this.JSC$14016_unsubscribeFromInlinePreviewIsActive=_.Nh(_.Rc(),_.CrD,function(c){J.highlighted&&!c&&J.removeAndCleanupHighlight()})};
_.V.removeHoverHighlightListeners=function(){this.hostElement.removeEventListener("mouseover",this.hoverListener);this.hostElement.removeEventListener("mouseleave",this.leaveListener);this.JSC$14016_unsubscribeFromInlinePreviewIsActive()};
_.V.richGridHoverHighlightChanged=function(){this.richGridHoverHighlight?this.registerHoverHighlightListeners():this.removeHoverHighlightListeners()};
_.V.detached=function(){this.richGridHoverHighlight&&this.removeHoverHighlightListeners()};
_.V.getBackgroundColor=function(){var J,c,m=(J=this.data)==null?void 0:(c=J.onFocusEffect)==null?void 0:c.onFocusColor;if(m){if(document.documentElement.hasAttribute("dark")&&(m==null?0:m.darkTheme))return _.XB(m==null?void 0:m.darkTheme);if(m==null?0:m.lightTheme)return _.XB(m==null?void 0:m.lightTheme)}};
_.V.onIndexUpdateAction=function(){this.updateIsInFirstColumn();if(this.hostElement.offsetParent!==null){var J=_.Y3(),c,m,b;J&&((c=this.data)==null?0:c.trackingParams)&&((m=this.data)==null?void 0:m.colIndex)!=null&&((b=this.data)==null?void 0:b.rowIndex)!=null&&_.on(J,_.n7(this.data.trackingParams),{gridData:{veColumnCoordinate:this.data.colIndex,veRowCoordinate:this.data.rowIndex}})}};
_.V.isSlimMediaRenderer=function(J){return!!_.L(J==null?void 0:J.content,_.g1_)||!!_.L(J==null?void 0:J.content,Bb$)||!!_.L(J==null?void 0:J.content,_.z3)||!!_.L(J==null?void 0:J.content,TD_)};
_.V.isPostRenderer=function(){var J,c;return!!_.L((J=this.data)==null?void 0:J.content,VL_)||!!_.L((c=this.data)==null?void 0:c.content,PcL)};
_.V.computeIsGameCardShelf=function(){var J;return!!_.L((J=this.data)==null?void 0:J.content,P_8)};
_.V.computeIsMiniGameCardShelf=function(){var J,c;return!!_.L((J=this.data)==null?void 0:J.content,sSa)||!!_.L((c=this.data)==null?void 0:c.content,LEL)};
_.V.computeIsTeaserCard=function(){var J;return!!_.L((J=this.data)==null?void 0:J.content,LEL)};
_.V.computeIsSelectableFeedbackItem=function(){var J,c;return!((c=_.L((J=this.data)==null?void 0:J.content,_.WEu))==null||!c.selectableFeedback)};
_.V.computeContainsLumierePosters=function(){var J,c;return((c=_.L((J=this.data)==null?void 0:J.content,HZ$))==null?void 0:c.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.V.computeIsExpandOnHoverCardShelf=function(){var J;return!!_.L((J=this.data)==null?void 0:J.content,kt6)};
_.V.computeIsLinkCardShelf=function(){var J;return!!_.L((J=this.data)==null?void 0:J.content,WMB)};
_.V.computeIsReelItemStyleAvatarCircle=function(J){var c;return((c=_.L(J==null?void 0:J.content,_.z3))==null?void 0:c.style)==="REEL_ITEM_STYLE_AVATAR_CIRCLE"};
_.V.computeIsLinkCardFullWidth=function(J,c){var m;return((m=_.L(J==null?void 0:J.content,WMB))==null?void 0:m.useFullWidth)||c<=2};
_.eE.Object.defineProperties(LF.prototype,{showYtInteractionOnRichGridMedia:{configurable:!0,enumerable:!0,get:function(){return!this.showYtInteractionOnRichItem}},
showYtInteractionOnRichItem:{configurable:!0,enumerable:!0,get:function(){return this.richGridHoverHighlight||this.isSelectableFeedbackItem}},
richTypographyBump:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&!!this.isHomeGrid&&_.w("web_enable_typography_bump")}},
richGridHoverHighlight:{configurable:!0,enumerable:!0,get:function(){return _.w("web_enable_rich_item_on_focus_effect")||_.w("rich_grid_hover_highlight")&&!this.isShortsGrid&&!this.isCompactGrid}},
shortsLockupViewModelAspectRatio:{configurable:!0,enumerable:!0,get:function(){return _.w("web_shorts_2_by_3_lockups_no_home")&&this.isHomeShelf?0:this.isInlineGroupItem?2:this.isShortsPanelGrid||_.w("web_shorts_2_by_3_lockups_study")||_.w("web_shorts_2_by_3_lockups_home")&&this.isHomeShelf?1:0}},
shortsLockupViewModelScrimStyle:{configurable:!0,enumerable:!0,get:function(){return this.isInlineGroupItem?4:3}}});
LF.prototype.richGridHoverHighlightChanged=LF.prototype.richGridHoverHighlightChanged;LF.prototype.observerContainerType=LF.prototype.observerContainerType;LF.prototype.updateIsInFirstColumn=LF.prototype.updateIsInFirstColumn;_.O([_.f(_.fY),_.R("design:type",Object)],LF.prototype,"ytdReduxBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],LF.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],LF.prototype,"ytActionHandlerBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],LF.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.$N),_.R("design:type",Object)],LF.prototype,"ytdLockupBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],LF.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0,computed:"isPostRenderer(data)"}),_.R("design:type",Boolean)],LF.prototype,"isPost",void 0);
_.O([_.U({reflectToAttribute:!0,computed:"computeContainsLumierePosters(data)"}),_.R("design:type",Boolean)],LF.prototype,"containsLumierePosters",void 0);_.O([_.U({reflectToAttribute:!0,computed:"isSlimMediaRenderer(data)"}),_.R("design:type",Boolean)],LF.prototype,"isSlimMedia",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeIsGameCardShelf(data)"}),_.R("design:type",Boolean)],LF.prototype,"isGameCardShelf",void 0);
_.O([_.U({reflectToAttribute:!0,computed:"computeIsMiniGameCardShelf(data)"}),_.R("design:type",Boolean)],LF.prototype,"isMiniGameCardShelf",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeIsTeaserCard(data)"}),_.R("design:type",Boolean)],LF.prototype,"isTeaserCard",void 0);_.O([_.U({computed:"computeIsSelectableFeedbackItem(data)"}),_.R("design:type",Boolean)],LF.prototype,"isSelectableFeedbackItem",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],LF.prototype,"isShortsGrid",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],LF.prototype,"isSlimGrid",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],LF.prototype,"isCompactGrid",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],LF.prototype,"isShortsPanelGrid",void 0);
_.O([_.U({reflectToAttribute:!0,computed:"computeIsExpandOnHoverCardShelf(data)"}),_.R("design:type",Boolean)],LF.prototype,"isExpandOnHoverCardShelf",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeIsLinkCardShelf(data)"}),_.R("design:type",Boolean)],LF.prototype,"isLinkCardShelf",void 0);_.O([_.U({reflectToAttribute:!0,selector:_.W2,value:3}),_.R("design:type",Number)],LF.prototype,"itemsPerRow",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],LF.prototype,"renderedFromRichGrid",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],LF.prototype,"isInFirstColumn",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],LF.prototype,"noGutterMargins",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],LF.prototype,"isInlineGroupItem",void 0);_.O([_.U(),_.R("design:type",Object)],LF.prototype,"insetMetadata",void 0);
_.O([_.U(),_.R("design:type",Object)],LF.prototype,"noBottomMarginInAds",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],LF.prototype,"isShelfItem",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeIsReelItemStyleAvatarCircle(data)"}),_.R("design:type",Boolean)],LF.prototype,"isReelItemStyleAvatarCircle",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeIsLinkCardFullWidth(data, itemsPerRow)"}),_.R("design:type",Boolean)],LF.prototype,"isLinkCardFullWidth",void 0);
_.O([_.U(),_.R("design:type",Object)],LF.prototype,"force16By9ThumbnailAspectRatio",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],LF.prototype,"useCompactList",void 0);_.O([_.U(),_.R("design:type",String)],LF.prototype,"sizing",void 0);_.O([_.U({value:!1}),_.R("design:type",Boolean)],LF.prototype,"typographyBump",void 0);_.O([_.U(),_.R("design:type",Number)],LF.prototype,"itemWidth",void 0);_.O([_.U(),_.R("design:type",Boolean)],LF.prototype,"isHomeShelf",void 0);
_.O([_.U(),_.R("design:type",Boolean)],LF.prototype,"isHomeGrid",void 0);_.O([_.Iu("yt-lockup-view-model"),_.R("design:type",HTMLElement)],LF.prototype,"lockup",void 0);_.O([_.Iu("ytd-rich-grid-media"),_.R("design:type",HTMLElement)],LF.prototype,"richGridMedia",void 0);_.O([_.Iu("ytd-ad-slot-renderer"),_.R("design:type",HTMLElement)],LF.prototype,"adSlotRenderer",void 0);_.O([_.U({computed:"computeContainerType(useCompactList)"}),_.R("design:type",Object)],LF.prototype,"containerType",void 0);
_.O([_.U({computed:"computeThumbnailTargetWidth(itemWidth)"}),_.R("design:type",Object)],LF.prototype,"thumbnailTargetWidth",void 0);_.O([_.q("showYtInteractionOnRichItem"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],LF.prototype,"showYtInteractionOnRichGridMedia",null);_.O([_.q("isSelectableFeedbackItem","richGridHoverHighlight"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],LF.prototype,"showYtInteractionOnRichItem",null);
_.O([_.q("typographyBump","isHomeGrid"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],LF.prototype,"richTypographyBump",null);_.O([_.U({reflectToAttribute:!0}),_.q("isShortsGrid","isCompactGrid"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],LF.prototype,"richGridHoverHighlight",null);_.O([_.q("isShortsPanelGrid","isHomeShelf","isInlineGroupItem"),_.R("design:type",Number),_.R("design:paramtypes",[])],LF.prototype,"shortsLockupViewModelAspectRatio",null);
_.O([_.q("isInlineGroupItem"),_.R("design:type",Number),_.R("design:paramtypes",[])],LF.prototype,"shortsLockupViewModelScrimStyle",null);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],LF.prototype,"updateIsInFirstColumn",null);_.O([_.NE("containerType","sizing","typographyBump"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],LF.prototype,"observerContainerType",null);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],LF.prototype,"isResponsiveGrid",void 0);_.O([_.U(),_.R("design:type",Object)],LF.prototype,"lockupExperiments",void 0);_.O([_.NE("richGridHoverHighlight"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],LF.prototype,"richGridHoverHighlightChanged",null);LF=_.O([_.E({is:"ytd-rich-item-renderer",disableElementRegistration:!0})],LF);
_.pvu=_.cd()(LF,"ytd-rich-item-renderer",function(){if(jB8===void 0){var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);jB8=J}J=jB8;return J},{mode:_.mP("kevlar_poly_si_batch_j028")?1:2});var DVf={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.gif"};var qpR=_.v2(_.CX("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var NZ8;var Dp=function(){var J=_.h.apply(this,arguments)||this;J.useResponsiveGrid=!1;J.hidden=!1;J.standardShelfMargins=_.w("web_rich_grid_standard_shelf_margins");J.isShowMoreHidden=!1;J.isExpanded=!1;J.isInnerShelf=!1;J.allVideosCount=0;J.allPlaylistCount=0;J.haveSmartDownloadsCompleted=!1;J.isShowLessHidden=!0;J.restrictContentsOverflow=!1;J.firstShownIndex=0;J.horizontalOffset=0;J.atEnd=!0;J.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-rich-grid-resize-observed":"resizeObserved",
"yt-section-reactive-dismissal":"onSectionReactiveDismissal"};J.nextClick=function(){var c;(c=J.data)!=null&&c.contents&&(J.firstShownIndex+=J.currentElementsPerRow,J.updateHorizontalOffset(),J.updateHorizontalItemVisibility())};
J.previousClick=function(){var c;(c=J.data)!=null&&c.contents&&(J.firstShownIndex-=J.currentElementsPerRow,J.updateHorizontalOffset(),J.updateHorizontalItemVisibility())};
return J};
_.D(Dp,_.h);_.V=Dp.prototype;
_.V.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:_.Ub("HTML_DIR")===
"rtl"?"right":"left"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.V.attached=function(){this.requestElementsPerRow()};
_.V.refreshGridLayoutNew=function(){var J;if((J=this.data)!=null&&J.contents&&this.containerWidth){var c;((c=this.data.responsiveContainerConfiguration)==null?0:c.responsiveSize)?(J=_.hRJ(this.data.responsiveContainerConfiguration,this.containerWidth),J=_.ot(Object.assign({},J,{standardUnitMinWidth:this.standardUnitMinWidth}))):J=_.ot({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,standardUnitMinWidth:this.standardUnitMinWidth});this.typographyBump=J.typographyBump;if(this.elementsPerRow!==
J.numItems||this.gutter!==J.gutter)this.elementsPerRow=J.numItems,this.gutter=J.gutter,this.itemWidth=J.itemWidth,_.V1(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":J.gutter+"px"})}};
_.V.computeSizing=function(){if(!this.isLumiere){var J=_.JbQ(this.data);if(J)return J;if(_.w("web_use_layout_library_for_rich_grid"))return this.isGameCardShelf()||this.isMiniGameCardShelf()||this.isSlimMediaShelfRenderer()||this.isLumiereShelfWithPosters()||this.isShortsShelf()?"EXTRA_COMPACT":"STANDARD"}};
_.V.computeUseResponsiveGrid=function(){return!this.isLumiere&&this.sizing};
_.V.computeButton=function(J){var c=_.L(J,_.ur);J=Object.assign({},_.L(J,_.ur));return c?(J.text||(J.text={simpleText:J.tooltip}),J.style="STYLE_MONO_OUTLINE",J.iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT",J):c};
_.V.onRowIndexChange=function(){var J=_.Y3(),c,m;((c=this.data)==null?0:c.trackingParams)&&((m=this.data)==null?void 0:m.rowIndex)!=null&&J&&_.on(J,_.n7(this.data.trackingParams),{gridData:{veRowCoordinate:this.data.rowIndex}})};
_.V.resizeObserved=function(){if(this.hasChevronButtons&&this.horizontalOffset!==0){var J,c=((J=this.getRichItemRenderers()[0])==null?void 0:J.clientWidth)+this.gutter;this.horizontalOffset=this.firstShownIndex*c;this.updateHorizontalItemVisibility()}else this.contents.style.transform="translateX(0px)"};
_.V.requestElementsPerRow=function(){_.cA(this.hostElement,"yt-request-elements-per-row")};
_.V.onUpdateElementsPerRowAction=function(J,c,m,b,x,P){if(this.containerWidth!==P&&(this.containerWidth=P,this.useResponsiveGrid)){this.refreshGridLayoutNew();this.updateItemVisibility();return}!this.useResponsiveGrid&&J&&c&&m&&b&&x&&(this.elementsPerRow!==J||this.postsPerRow!==c||this.slimItemsPerRow!==m||this.gameCardsPerRow!==b||this.miniGameCardsPerRow!==x)&&(this.elementsPerRow=J,this.postsPerRow=c,this.slimItemsPerRow=m,this.gameCardsPerRow=b,this.miniGameCardsPerRow=x,this.updateItemVisibility())};
_.V.getRichItemRenderers=function(){return _.Bj(this.hostElement).querySelectorAll("ytd-rich-item-renderer")};
_.V.updateItemVisibility=function(){var J=this;if(this.data&&this.data.contents){var c=this.data.contents.length;if(this.hasChevronButtons)this.updateArrowButtonStatus();else{this.getRichItemRenderers().forEach(function(b,x){var P;((P=J.data)==null?0:P.isExpanded)?(b.hidden=x>c-1,b.ytRendererBehavior.markDirty()):b.hidden=x>J.currentElementsPerRow-1||x>c-1});
var m=this.data.contents.length<=this.currentElementsPerRow;this.isExpanded=!!this.data.isExpanded;this.isShowMoreHidden=!this.data.showMoreButton||m||!!this.data.isExpanded||this.isTruncated;this.isShowLessHidden=!this.data.showLessButton||m||!this.data.isExpanded||this.isTruncated}this.contents.style.visibility="visible"}};
_.V.setHeightToSingleRow=function(){var J=this.getRichItemRenderers(),c=Number.parseInt(getComputedStyle(J[0]).marginBottom,10)||0;J=J.slice(0,this.currentElementsPerRow).reduce(function(m,b){return Math.max(m,b.getBoundingClientRect().height+c)},0);
this.contents.style.height=J+"px"};
_.V.focusNextExpandedItem=function(){var J;((J=this.data)==null?0:J.isExpanded)&&this.focusItem(this.currentElementsPerRow,!0)};
_.V.focusItem=function(J,c){var m=this.getRichItemRenderers();if(m[J]&&(J=m[J].querySelector(".focus-on-expand"))){if(c){var b;(b=m[this.currentElementsPerRow])==null||b.scrollIntoView({behavior:"smooth",block:"center"})}J.focus({preventScroll:!0})}};
_.V.onDataChange=function(){var J=this;this.useResponsiveGrid&&this.containerWidth&&this.refreshGridLayoutNew();var c;if((c=this.data)==null?0:c.isExpanded)this.firstShownIndex=0,this.updateHorizontalOffset(),this.updateHorizontalItemVisibility();_.o3(this,function(){J.updateItemVisibility()});
var m;if((m=this.data)==null?0:m.contents)for(this.restrictContentsOverflow=!this.isExpandOnHoverCardShelf(),_.V1(this.hostElement,{"--ytd-rich-shelf-items-count":""+this.data.contents.length}),c=0;c<this.data.contents.length;c++)m=_.L(this.data.contents[c],_.re)||{},m.colIndex=c,m.rowIndex=this.data.rowIndex};
_.V.handleRerenderDownloadsData=function(){_.w("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())};
_.V.blockInlinePreview=function(J){var c=this,m;return _.N(function(b){(m=c.inlinePreviewIsEnabled)&&c.ytdReduxBehavior.dispatch(_.NOZ(!1));return b.return(new Promise(function(x){J(function(){m&&c.ytdReduxBehavior.dispatch(_.NOZ(!0));x()})}))})};
_.V.expandShelf=function(){var J=this;if(this.data){var c,m=(c=_.L(this.data.showMoreButton,_.ur))==null?void 0:c.trackingParams;m&&_.b6(_.C7(),m);this.data.isExpanded=!0;this.blockInlinePreview(function(b){J.setHeightToSingleRow();J.updateItemVisibility();J.contents.style.height=J.contents.scrollHeight+"px";_.ft.addJob(function(){J.contents.style.height="auto";J.focusNextExpandedItem();b()},2,200)})}};
_.V.collapseShelf=function(){var J=this;return _.N(function(c){if(c.nextAddress==1){if(!J.data)return c.return();J.data.isExpanded=!1;return _.K(c,J.blockInlinePreview(function(m){J.contents.style.height=J.contents.scrollHeight+"px";J.setHeightToSingleRow();_.ft.addJob(function(){J.updateItemVisibility();J.contents.style.height="auto";m()},2,200)}),2)}_.cA(J.hostElement,"yt-rich-shelf-renderer-collapse",J.data.trackingParams);
J.focusItem(0,!1);_.tD(c)})};
_.V.updateArrowButtonStatus=function(){var J=this.getRichItemRenderers().length;if(!_.w("web_rich_shelf_renderer_use_data_contents_killswitch")){var c,m;J=((c=this.data)==null?void 0:(m=c.contents)==null?void 0:m.length)||0}this.atEnd=this.firstShownIndex+this.currentElementsPerRow>=J};
_.V.onChildElementFocus=function(J){this.hasChevronButtons&&(J=J.target.closest("#contents > *"),this.contents.contains(J)&&(J.offsetLeft<this.horizontalOffset?this.previousClick():J.offsetLeft+J.clientWidth>this.horizontalOffset+this.contents.clientWidth&&(this.contents.parentElement&&(this.contents.parentElement.scrollLeft=0),this.nextClick())))};
_.V.updateHorizontalItemVisibility=function(){this.updateArrowButtonStatus();this.contents.style.transform="translateX("+(_.Ub("HTML_DIR")==="rtl"?"":"-")+this.horizontalOffset+"px)"};
_.V.updateHorizontalOffset=function(){var J=this.getRichItemRenderers(),c=J.length;if(!_.w("web_rich_shelf_renderer_use_data_contents_killswitch")){var m,b;c=((m=this.data)==null?void 0:(b=m.contents)==null?void 0:b.length)||0}var x;J=((x=J[0])==null?void 0:x.clientWidth)+this.gutter;this.firstShownIndex+this.currentElementsPerRow>c?this.firstShownIndex=c-this.currentElementsPerRow:this.firstShownIndex<0&&(this.firstShownIndex=0);this.horizontalOffset=this.firstShownIndex*J};
_.V.isSlimMediaShelfRenderer=function(){var J,c,m,b=(m=_.L((J=this.data)==null?void 0:(c=J.contents)==null?void 0:c[0],_.re))==null?void 0:m.content;return!!(_.L(b,_.g1_)||_.L(b,Bb$)||_.L(b,_.z3)||_.L(b,TD_))};
_.V.isGameCardShelf=function(){var J,c,m,b=(m=_.L((J=this.data)==null?void 0:(c=J.contents)==null?void 0:c[0],_.re))==null?void 0:m.content;return!!_.L(b,P_8)};
_.V.isGnomeShelf=function(){var J,c,m,b=(m=_.L((J=this.data)==null?void 0:(c=J.contents)==null?void 0:c[0],_.re))==null?void 0:m.content;return!!_.L(b,_.WEu)};
_.V.isMiniGameCardShelf=function(){var J,c,m,b=(m=_.L((J=this.data)==null?void 0:(c=J.contents)==null?void 0:c[0],_.re))==null?void 0:m.content;return!!_.L(b,sSa)||!!_.L(b,LEL)};
_.V.hasGameBoxArtAvatarStyle=function(){var J;return((J=this.data)==null?void 0:J.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART"};
_.V.hasRoundedGameBoxArtAvatarStyle=function(){var J;return((J=this.data)==null?void 0:J.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"};
_.V.isShortsShelf=function(){var J,c,m,b=(m=_.L((J=this.data)==null?void 0:(c=J.contents)==null?void 0:c[0],_.re))==null?void 0:m.content;return!!_.L(b,_.z3)||!!_.L(b,TD_)};
_.V.isPostShelfRenderer=function(){var J,c,m,b=(m=_.L((J=this.data)==null?void 0:(c=J.contents)==null?void 0:c[0],_.re))==null?void 0:m.content;return!(!_.L(b,VL_)&&!_.L(b,PcL))};
_.V.isLumiereShelf=function(){var J,c,m=_.L((J=this.data)==null?void 0:(c=J.contents)==null?void 0:c[0],_.re);return!!_.L(m==null?void 0:m.content,HZ$)};
_.V.isLumiereShelfWithPosters=function(){var J,c,m=_.L((J=this.data)==null?void 0:(c=J.contents)==null?void 0:c[0],_.re),b;return((b=_.L(m==null?void 0:m.content,HZ$))==null?void 0:b.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.V.isExpandOnHoverCardShelf=function(){var J,c,m,b=(m=_.L((J=this.data)==null?void 0:(c=J.contents)==null?void 0:c[0],_.re))==null?void 0:m.content;return!!_.L(b,kt6)};
_.V.computeHasFeaturedBadge=function(){var J,c,m=_.L((J=this.data)==null?void 0:(c=J.badges)==null?void 0:c[0],_.DC$);return m?m.style!=="BADGE_STYLE_TYPE_SIMPLE":!1};
_.V.computeHasPaygatedFeaturedBadge=function(){var J,c,m=_.L((J=this.data)==null?void 0:(c=J.badges)==null?void 0:c[0],_.DC$);return m?(m==null?void 0:m.style)==="BADGE_STYLE_TYPE_SIMPLE":!1};
_.V.computeHeaderHidden=function(){var J,c,m,b,x,P;return!((J=this.data)==null?0:J.icon)&&!((c=this.data)==null?0:c.title)&&!((m=this.data)==null?0:m.subtitle)&&!((b=this.data)==null?0:b.thumbnail)&&!((x=this.data)==null?0:x.badges)&&!((P=this.data)==null?0:P.menu)};
_.V.showCtaButton=function(){var J;return!((J=this.data)==null||!J.ctaButton)&&!this.isPostShelfRenderer()&&!this.isGameCardShelf()&&!this.isMiniGameCardShelf()};
_.V.showTopCtaButton=function(){return this.showCtaButton()?this.isSlimMediaShelfRenderer()?this.slimItemsPerRow>=4:this.elementsPerRow>=3:!1};
_.V.showBottomCtaButton=function(){return this.showCtaButton()?!this.showTopCtaButton():!1};
_.V.computeForce16By9ThumbnailAspectRatio=function(){var J,c;return((J=this.data)==null?void 0:(c=J.responsiveContainerConfiguration)==null?void 0:c.enableContentSpecificAspectRatio)!==void 0?!this.data.responsiveContainerConfiguration.enableContentSpecificAspectRatio:!1};
_.V.onSectionReactiveDismissal=function(J,c,m){var b,x;var P=(b=this.data)==null?void 0:(x=b.targetingContext)==null?void 0:x.targetGroupId;this&&P&&c.targetGroupId&&P.includes(c.targetGroupId)?(b=this.rowIndex,J=b===void 0?!1:!(c.behavior==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&b<=J)):J=!1;J&&(this.hidden=m)};
_.eE.Object.defineProperties(Dp.prototype,{currentElementsPerRow:{configurable:!0,enumerable:!0,get:function(){if(this.useResponsiveGrid)return this.elementsPerRow;var J=this.elementsPerRow;this.isPostShelfRenderer()?J=this.postsPerRow:this.isSlimMediaShelfRenderer()?J=this.slimItemsPerRow:this.isLumiereShelfWithPosters()?J=this.slimItemsPerRow-1:this.isGameCardShelf()?J=this.gameCardsPerRow:this.isMiniGameCardShelf()&&(J=this.miniGameCardsPerRow);return J}},
isTruncated:{configurable:!0,enumerable:!0,get:function(){return this.isShortsShelf()&&_.w("kevlar_clean_feeds_show_more")&&this.isHomePage}},
hideBottomDivider:{configurable:!0,enumerable:!0,get:function(){var J;return!((J=this.data)==null||!J.isBottomDividerHidden)}},
hasChevronButtons:{configurable:!0,enumerable:!0,get:function(){var J,c;return!((J=this.data)==null||!J.previousButton)&&!((c=this.data)==null||!c.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 J;return((J=_.BG().resolve(_.oO).getCurrentPage())==null?void 0:J.pageSubtype)==="home"}},
thumbnailAriaHidden:{configurable:!0,enumerable:!0,get:function(){var J,c,m,b;return!((J=this.data)==null?0:(c=J.thumbnail)==null?0:(m=c.accessibility)==null?0:(b=m.accessibilityData)==null?0:b.label)}},
initiallyIsExpanded:{configurable:!0,enumerable:!0,get:function(){var J;return!((J=this.data)==null||!J.isExpanded)}},
entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var J;return((J=this.data)==null?void 0:J.entitySelectorType)||"RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
rowIndex:{configurable:!0,enumerable:!0,get:function(){return this.data.rowIndex}}});
Dp.prototype.onChildElementFocus=Dp.prototype.onChildElementFocus;Dp.prototype.handleRerenderDownloadsData=Dp.prototype.handleRerenderDownloadsData;Dp.prototype.onDataChange=Dp.prototype.onDataChange;Dp.prototype.onRowIndexChange=Dp.prototype.onRowIndexChange;_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],Dp.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Dp.prototype,"ytRendererBehavior",void 0);
_.O([_.f(_.XP),_.R("design:type",Object)],Dp.prototype,"ytdDismissibleItemBehavior",void 0);_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],Dp.prototype,"actionHandlerBehavior",void 0);_.O([_.f(_.fY),_.R("design:type",Object)],Dp.prototype,"ytdReduxBehavior",void 0);_.O([_.U({computed:"computeUseResponsiveGrid(isLumiere, sizing)"}),_.R("design:type",Object)],Dp.prototype,"useResponsiveGrid",void 0);_.O([_.U(),_.R("design:type",Object)],Dp.prototype,"data",void 0);
_.O([_.U(),_.R("design:type",Number)],Dp.prototype,"standardUnitMinWidth",void 0);_.O([_.U({reflectToAttribute:!0,value:3}),_.R("design:type",Number)],Dp.prototype,"elementsPerRow",void 0);_.O([_.U({value:3}),_.R("design:type",Number)],Dp.prototype,"postsPerRow",void 0);_.O([_.U({value:6}),_.R("design:type",Number)],Dp.prototype,"slimItemsPerRow",void 0);_.O([_.U({value:6}),_.R("design:type",Number)],Dp.prototype,"gameCardsPerRow",void 0);
_.O([_.U({value:6}),_.R("design:type",Number)],Dp.prototype,"miniGameCardsPerRow",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Dp.prototype,"hidden",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Dp.prototype,"standardShelfMargins",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Dp.prototype,"isShowMoreHidden",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Dp.prototype,"isExpanded",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Dp.prototype,"isInnerShelf",void 0);_.O([_.U({reflectToAttribute:!0,computed:"isShortsShelf(data)"}),_.R("design:type",Boolean)],Dp.prototype,"isShorts",void 0);_.O([_.U({reflectToAttribute:!0,computed:"isLumiereShelf(data)"}),_.R("design:type",Boolean)],Dp.prototype,"isLumiere",void 0);_.O([_.U({reflectToAttribute:!0,computed:"hasGameBoxArtAvatarStyle(data)"}),_.R("design:type",Boolean)],Dp.prototype,"hasBoxArtThumbnailStyle",void 0);
_.O([_.U({reflectToAttribute:!0,computed:"hasRoundedGameBoxArtAvatarStyle(data)"}),_.R("design:type",Boolean)],Dp.prototype,"hasRoundedBoxArtThumbnailStyle",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeHasFeaturedBadge(data)"}),_.R("design:type",Boolean)],Dp.prototype,"hasFeaturedBadge",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeHasPaygatedFeaturedBadge(data)"}),_.R("design:type",Boolean)],Dp.prototype,"hasPaygatedFeaturedBadge",void 0);
_.O([_.U({reflectToAttribute:!0,computed:"computeHeaderHidden(data)"}),_.R("design:type",Boolean)],Dp.prototype,"isHeaderHidden",void 0);_.O([_.U({selector:_.w3f}),_.R("design:type",Object)],Dp.prototype,"allVideosCount",void 0);_.O([_.U({selector:SpJ}),_.R("design:type",Object)],Dp.prototype,"allPlaylistCount",void 0);_.O([_.U({selector:X3o}),_.R("design:type",Object)],Dp.prototype,"haveSmartDownloadsCompleted",void 0);
_.O([_.U({selectorArgs:["entitySelectorType"],selector:function(J,c){if(_.w("kevlar_modern_downloads_page")&&c&&c!=="RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"){var m=J.entities;switch(c){case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS":c=_.rf(m);J=sQ(c);var b=_.H2(c);m=_.Lk(m);m=_.yq(zRt(b,m,c.length));return{contents:J,subtitle:m};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE":return m=_.rf(m),{contents:sQ(m)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS":return m=
_.sG(m),{contents:sQ(m)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE":return m=_.BIJ(m),{contents:sQ(m)};default:_.qz(new _.w3("Error: entitySelectorType defined but not matched in selector.",J,c))}}}}),
_.R("design:type",Object)],Dp.prototype,"entityDrivenRichShelfData",void 0);_.O([_.U({reflectToAttribute:!0,computed:"showTopCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.R("design:type",Boolean)],Dp.prototype,"hasTopCtaButton",void 0);_.O([_.U({reflectToAttribute:!0,computed:"showBottomCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.R("design:type",Boolean)],Dp.prototype,"hasBottomCtaButton",void 0);
_.O([_.U({reflectToAttribute:!0,computed:"computeForce16By9ThumbnailAspectRatio(data)"}),_.R("design:type",Boolean)],Dp.prototype,"force16By9ThumbnailAspectRatio",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Dp.prototype,"isShowLessHidden",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Dp.prototype,"restrictContentsOverflow",void 0);_.O([_.U({selector:_.aAm}),_.R("design:type",Boolean)],Dp.prototype,"inlinePreviewIsEnabled",void 0);
_.O([_.U({computed:"computeSizing(data)"}),_.R("design:type",String)],Dp.prototype,"sizing",void 0);_.O([_.U(),_.R("design:type",Boolean)],Dp.prototype,"typographyBump",void 0);_.O([_.U(),_.R("design:type",Number)],Dp.prototype,"itemWidth",void 0);_.O([_.U(),_.R("design:type",Object)],Dp.prototype,"firstShownIndex",void 0);_.O([_.U(),_.R("design:type",Object)],Dp.prototype,"horizontalOffset",void 0);_.O([_.U(),_.R("design:type",Object)],Dp.prototype,"atEnd",void 0);
_.O([_.Iu("#contents"),_.R("design:type",HTMLElement)],Dp.prototype,"contents",void 0);_.O([_.NE("data.rowIndex"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Dp.prototype,"onRowIndexChange",null);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Dp.prototype,"onDataChange",null);
_.O([_.NE("allVideosCount","allPlaylistsCount","haveSmartDownloadsCompleted"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Dp.prototype,"handleRerenderDownloadsData",null);_.O([_.ps("focusin"),_.R("design:type",Function),_.R("design:paramtypes",[Event]),_.R("design:returntype")],Dp.prototype,"onChildElementFocus",null);_.O([_.U({reflectToAttribute:!0}),_.q("data","isHomePage"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Dp.prototype,"isTruncated",null);
_.O([_.U({reflectToAttribute:!0}),_.q("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Dp.prototype,"hideBottomDivider",null);_.O([_.U({reflectToAttribute:!0}),_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],Dp.prototype,"hasChevronButtons",null);_.O([_.q("firstShownIndex"),_.R("design:type",Object),_.R("design:paramtypes",[])],Dp.prototype,"previousButtonOverride",null);
_.O([_.q("atEnd"),_.R("design:type",Object),_.R("design:paramtypes",[])],Dp.prototype,"nextButtonOverride",null);_.O([_.q("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Dp.prototype,"isHomePage",null);_.O([_.q("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Dp.prototype,"thumbnailAriaHidden",null);_.O([_.U({reflectToAttribute:!0}),_.q("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Dp.prototype,"initiallyIsExpanded",null);
_.O([_.q("data"),_.R("design:type",String),_.R("design:paramtypes",[])],Dp.prototype,"entitySelectorType",null);Dp=_.O([_.E({is:"ytd-rich-shelf-renderer",disableElementRegistration:!0})],Dp);
_.tIQ=_.cd()(Dp,"ytd-rich-shelf-renderer",function(){if(NZ8===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);NZ8=J}J=NZ8;return J},{allowedProps:["data",
"isInnerShelf","standardUnitMinWidth"],mode:_.mP("kevlar_poly_si_batch_j028")?1:2});var Izz;_.lv(Raj,"yt-slimline-survey-view-model",{props:{data:_.vt}});var Wp=function(){var J=_.h.apply(this,arguments)||this;J.tileLottieAnimationRef={};J.backgroundLottieAnimationRef={};J.isOnHoverBehaviorForLottieEnabled=!0;J.useBiggerShowcaseImage=_.w("enable_desktop_search_bigger_thumbs");J.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-open-video-preview-action":"pauseLottie"};return J};
_.D(Wp,_.h);_.V=Wp.prototype;_.V.attached=function(){this.requestElementsPerRow();this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.data&&(this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData)};
_.V.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"}}}};
_.V.dataChanged=function(){if(this.data){this.requestElementsPerRow();this.updateButtonPalette();var J=this.hasStaticTile(this.data)||this.hasTileLottie(this.data);J!==this.hasTile&&this.set("hasTile",J);J=this.hasLogo(this.data)||!!this.data.badgeText;J!==this.hasMetadata&&this.set("hasMetadata",J);J=this.data.overflowButton?!1:J;J!==this.showLogoImage&&this.set("showLogoImage",J);this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData;this.maybeInitializeTileLottie();
this.maybeInitializeBackgroundLottie()}};
_.V.themeChanged=function(){this.data&&(this.set("currentColorData",this.isDarkTheme?this.data.darkColorData:this.data.lightColorData),this.maybeInitializeTileLottie(),this.maybeInitializeBackgroundLottie())};
_.V.currentColorChanged=function(){this.updateButtonPalette()};
_.V.computeBackgroundStyle=function(J){if(J&&this.data){var c=[];if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var m=_.Bd((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);m&&c.push('background-image: url("'+m+'");')}var b;((b=J.basicColorData)==null?void 0:b.backgroundColor)!==void 0&&c.push("background-color: "+_.Zn(J.basicColorData.backgroundColor)+";");return c.join("")}};
_.V.onDarkModeToggledAction=function(J){J!==this.isDarkTheme&&this.set("isDarkTheme",J)};
_.V.getCurrentLogo=function(J,c){if(J)return c?J.darkLogoImage:J.lightLogoImage};
_.V.getCurrentStaticTileImage=function(J,c){if(this.hasStaticTile(J))return J.darkTileImage?c?J.darkTileImage:J.tileImage:J.tileImage};
_.V.computeTitleStyle=function(J){if(this.data&&this.data.title&&J&&J.basicColorData&&J.basicColorData.foregroundTitleColor!==void 0)return"color:"+_.XB(J.basicColorData.foregroundTitleColor)+";"};
_.V.computeSubtitleStyle=function(J){if(this.data&&this.data.subtitle&&J&&J.basicColorData&&J.basicColorData.foregroundBodyColor!==void 0)return"color:"+_.XB(J.basicColorData.foregroundBodyColor)+";"};
_.V.computeSupplementalStyle=function(J){if(this.data&&this.data.supplementalText&&J&&J.supplementalTextColor!==void 0)return J=_.XB(J.supplementalTextColor),"color:"+J+";--yt-endpoint-color:"+J+";--yt-endpoint-hover-color:"+J+";--yt-endpoint-visited-color:"+J+";--yt-formatted-string-bold-font-weight:700;"};
_.V.computeBadgeStyle=function(J){if(this.data&&this.data.badgeText&&J&&J.basicColorData&&J.basicColorData.foregroundActivatedColor!==void 0)return"color:"+_.XB(J.basicColorData.foregroundActivatedColor)+";"};
_.V.computeDismissIconStyle=function(J){var c,m;if((J==null?0:(c=J.dismissButtonColorData)==null?0:c.foregroundTitleColor)&&(J==null?0:(m=J.dismissButtonColorData)==null?0:m.backgroundColor))return"--yt-button-color:"+_.Zn(J.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.Zn(J.dismissButtonColorData.backgroundColor)+";"};
_.V.computeOverflowIconStyle=function(J){var c,m;if((J==null?0:(c=J.dismissButtonColorData)==null?0:c.foregroundTitleColor)&&(J==null?0:(m=J.dismissButtonColorData)==null?0:m.backgroundColor))return"--ytd-menu-renderer-button-color:"+_.Zn(J.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.Zn(J.dismissButtonColorData.backgroundColor)+";--yt-spec-icon-active-other:"+_.Zn(J.dismissButtonColorData.foregroundTitleColor)+";"};
_.V.computeBannerStyle=function(J){return J?J.toLowerCase().replace(/_/g,"-"):""};
_.V.computeLocation=function(J){switch(J==null?void 0:J.location){case "LOCATION_CONTEXT_SEARCH_PAGE":return"search";case "LOCATION_CONTEXT_SLOT_ZERO_HOME":return"slot-zero-home"}};
_.V.shouldShowTileSection=function(J,c,m){return!this.shouldExpandLogo(J,c,m)&&c};
_.V.shouldShowExpandedLogoSection=function(J,c,m){return this.shouldExpandLogo(J,c,m)&&J!==void 0&&this.hasLogo(J)};
_.V.shouldExpandLogo=function(J,c,m){return J&&c?!1:m>=2};
_.V.hasStaticTile=function(J){return!(J==null||!J.tileImage)};
_.V.hasTileLottie=function(J){var c;return!!(J==null?0:(c=J.tileLottie)==null?0:c.url)};
_.V.hasLogo=function(J){return this.getCurrentLogo(J,this.isDarkTheme)!==void 0};
_.V.getLogoHeight=function(J){return this.logoWithPadding(J)?"26":"20"};
_.V.getExpandedLogoHeight=function(J){return this.logoWithPadding(J)?"31":"24"};
_.V.getLogoImageId=function(J){return this.logoWithPadding(J)?"logo-image-with-padding":"logo-image"};
_.V.hasBackgroundLottie=function(J){var c;return!!(J==null?0:(c=J.backgroundLottie)==null?0:c.url)};
_.V.maybePlayLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var J,c;(J=this.tileLottieAnimationRef)==null||(c=J.lottieEl)==null||c.play();var m,b;(m=this.backgroundLottieAnimationRef)==null||(b=m.lottieEl)==null||b.play()}};
_.V.maybePauseLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var J,c;(J=this.tileLottieAnimationRef)==null||(c=J.lottieEl)==null||c.pause();var m,b;(m=this.backgroundLottieAnimationRef)==null||(b=m.lottieEl)==null||b.pause()}};
_.V.pauseLottie=function(){var J,c;(J=this.tileLottieAnimationRef)==null||(c=J.lottieEl)==null||c.pause();var m,b;(m=this.backgroundLottieAnimationRef)==null||(b=m.lottieEl)==null||b.pause();this.isOnHoverBehaviorForLottieEnabled||(this.isOnHoverBehaviorForLottieEnabled=!0)};
_.V.performPrimaryButtonAction=function(){var J,c,m;((J=this.data)==null?0:(c=J.primaryButton)==null?0:(m=c.buttonRenderer)==null?0:m.command)&&this.ytComponentBehavior.resolveCommand(this.data.primaryButton.buttonRenderer.command)};
_.V.requestElementsPerRow=function(){_.cA(this.hostElement,"yt-request-elements-per-row")};
_.V.updateButtonPalette=function(){if(this.data&&this.currentColorData){var J;((J=this.data.dismissButton)==null?0:J.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 c;if((c=this.data.primaryButton)==null?0:c.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 m;if((m=this.data.secondaryButton)==
null?0:m.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 b;((b=this.data.primaryButton)==null?0:b.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)})}};
_.V.maybeInitializeTileLottie=function(){if(this.hasTileLottie(this.data)){var J=this.getTileLottieDataBasedOnTheme(),c,m;if(J.url!==((c=this.tileLottiePlayerProps)==null?void 0:(m=c.animationConfig)==null?void 0:m.path)){var b,x;(b=this.tileLottieAnimationRef)==null||(x=b.lottieEl)==null||x.destroy();var P;this.isOnHoverBehaviorForLottieEnabled=!((P=J.settings)==null?0:P.autoplay);var p,t;this.tileLottiePlayerProps={animationRef:this.tileLottieAnimationRef,animationConfig:{name:this.isDarkTheme?
"STATEMENT_BANNER_TILE_LOTTIE_DARK":"STATEMENT_BANNER_TILE_LOTTIE_LIGHT",autoplay:(t=(p=J.settings)==null?void 0:p.autoplay)!=null?t:!1,loop:this.getLottieLoopValue(J.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof J.url==="string"?this.tileLottiePlayerProps.animationConfig.path=J.url:this.tileLottiePlayerProps.animationConfig.animationData=J.url}}};
_.V.getOverflowButton=function(J){return _.L(J.overflowButton,Dw6)};
_.V.maybeInitializeBackgroundLottie=function(){if(this.hasBackgroundLottie(this.data)){var J=this.getBackgroundLottieDataBasedOnTheme(),c,m;if(J.url!==((c=this.backgroundLottiePlayerProps)==null?void 0:(m=c.animationConfig)==null?void 0:m.path)){var b,x;(b=this.backgroundLottieAnimationRef)==null||(x=b.lottieEl)==null||x.destroy();var P;this.isOnHoverBehaviorForLottieEnabled=!((P=J.settings)==null?0:P.autoplay);var p,t;this.backgroundLottiePlayerProps={animationRef:this.backgroundLottieAnimationRef,
animationConfig:{name:this.isDarkTheme?"STATEMENT_BANNER_BACKGROUND_LOTTIE_DARK":"STATEMENT_BANNER_BACKGROUND_LOTTIE_LIGHT",autoplay:(t=(p=J.settings)==null?void 0:p.autoplay)!=null?t:!1,loop:this.getLottieLoopValue(J.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof J.url==="string"?this.backgroundLottiePlayerProps.animationConfig.path=J.url:this.backgroundLottiePlayerProps.animationConfig.animationData=
J.url}}};
_.V.onLottieComplete=function(){if(!this.isOnHoverBehaviorForLottieEnabled){var J;((J=this.tileLottieAnimationRef)==null?void 0:J.lottieEl)!==void 0&&(this.tileLottieAnimationRef.lottieEl.loop=!0);var c;((c=this.backgroundLottieAnimationRef)==null?void 0:c.lottieEl)!==void 0&&(this.backgroundLottieAnimationRef.lottieEl.loop=!0);this.isOnHoverBehaviorForLottieEnabled=!0}};
_.V.getTileLottieDataBasedOnTheme=function(){var J;if(this.isDarkTheme&&((J=this.data)==null?0:J.darkThemeTileLottie))return this.data.darkThemeTileLottie;var c;return((c=this.data)==null?0:c.tileLottie)?this.data.tileLottie:{}};
_.V.getBackgroundLottieDataBasedOnTheme=function(){var J;if(this.isDarkTheme&&((J=this.data)==null?0:J.darkThemeBackgroundLottie))return this.data.darkThemeBackgroundLottie;var c;return((c=this.data)==null?0:c.backgroundLottie)?this.data.backgroundLottie:{}};
_.V.onUpdateElementsPerRowAction=function(J){J&&this.elementsPerRow!==J&&(this.elementsPerRow=J)};
_.V.getLottieLoopValue=function(J){return J?J.loop!==void 0?J.loop:J.loopCount?J.loopCount-1:!0:!0};
_.V.logoWithPadding=function(J){var c,m,b;return(J=(c=this.getCurrentLogo(J,this.isDarkTheme))==null?void 0:(m=c.thumbnails)==null?void 0:(b=m[0])==null?void 0:b.height)&&J%31===0?!0:!1};
Wp.prototype.currentColorChanged=Wp.prototype.currentColorChanged;Wp.prototype.themeChanged=Wp.prototype.themeChanged;Wp.prototype.dataChanged=Wp.prototype.dataChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Wp.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],Wp.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.XP),_.R("design:type",Object)],Wp.prototype,"ytdDismissibleItemBehavior",void 0);
_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],Wp.prototype,"actionHandlerBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],Wp.prototype,"ytComponentBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Wp.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],Wp.prototype,"primaryButton",void 0);_.O([_.U(),_.R("design:type",Object)],Wp.prototype,"secondaryButton",void 0);
_.O([_.U({reflectToAttribute:!0,value:3}),_.R("design:type",Number)],Wp.prototype,"elementsPerRow",void 0);_.O([_.U({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],Wp.prototype,"isDarkTheme",void 0);_.O([_.U({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],Wp.prototype,"hasTile",void 0);_.O([_.U({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],Wp.prototype,"hasMetadata",void 0);
_.O([_.U({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],Wp.prototype,"showLogoImage",void 0);_.O([_.U(),_.R("design:type",Object)],Wp.prototype,"currentColorData",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeBannerStyle(data.style)"}),_.R("design:type",String)],Wp.prototype,"bannerStyle",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeLocation(data.shelfContext)"}),_.R("design:type",String)],Wp.prototype,"location",void 0);
_.O([_.U(),_.R("design:type",Object)],Wp.prototype,"tileLottiePlayerProps",void 0);_.O([_.U(),_.R("design:type",Object)],Wp.prototype,"tileLottieAnimationRef",void 0);_.O([_.U(),_.R("design:type",Object)],Wp.prototype,"backgroundLottiePlayerProps",void 0);_.O([_.U(),_.R("design:type",Object)],Wp.prototype,"backgroundLottieAnimationRef",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Wp.prototype,"useBiggerShowcaseImage",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],Wp.prototype,"isHideEnclosingAction",void 0);_.O([_.kr("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Wp.prototype,"dataChanged",null);_.O([_.kr("isDarkTheme"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Wp.prototype,"themeChanged",null);
_.O([_.kr("currentColorData"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Wp.prototype,"currentColorChanged",null);Wp=_.O([_.E({is:"ytd-statement-banner-renderer",disableElementRegistration:!0})],Wp);
_.v(Wp,"ytd-statement-banner-renderer",function(){if(Izz!==void 0)return Izz;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return Izz=J},{mode:1});var KhZ;var zf=function(){var J=_.h.apply(this,arguments)||this;J.isSearch=!1;J.hideShelfHeader=!1;J.engagementPanel=!1;J.disableMouseScroll=!0;J.useFloorScrolling=!0;J.modernTypography=_.w("web_modern_typography");return J};
_.D(zf,_.h);zf.prototype.onDataChanged=function(){this.set("data.nextButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_RIGHT"},accessibility:{label:_.CX("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next")}}});this.set("data.previousButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_LEFT"},accessibility:{label:_.CX("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous")}}})};
zf.prototype.configureRendererStamper=function(){return{"data.button":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
zf.prototype.onDataChanged=zf.prototype.onDataChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],zf.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],zf.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],zf.prototype,"isSearch",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],zf.prototype,"hideShelfHeader",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],zf.prototype,"engagementPanel",void 0);_.O([_.U(),_.R("design:type",Object)],zf.prototype,"disableMouseScroll",void 0);_.O([_.U(),_.R("design:type",Object)],zf.prototype,"useFloorScrolling",void 0);_.O([_.U(),_.R("design:type",Object)],zf.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],zf.prototype,"modernTypography",void 0);
_.O([_.kr("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],zf.prototype,"onDataChanged",null);zf=_.O([_.E({is:"ytd-reel-shelf-renderer",disableElementRegistration:!0})],zf);
_.v(zf,"ytd-reel-shelf-renderer",function(){if(KhZ!==void 0)return KhZ;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return KhZ=J},{mode:_.mP("kevlar_poly_si_batch_j028")?1:2});var CSQ;var az2=_.Q1(function(J){var c=J.data;J=J.useSmallFont;var m={},b={};return _.C("yt-channel-external-link-view-model",{class:"yt-channel-external-link-view-model-wiz"},_.C(_.n,{cond:function(){return c().favicon},
then:function(x){return _.C(_.RA,{data:x,className:"yt-channel-external-link-view-model-wiz__favicon",alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:24,targetHeight:24})}}),_.C("div",{class:"yt-channel-external-link-view-model-wiz__container"},_.C(_.j8,{text:function(){return c().title},
className:_.pq("yt-channel-external-link-view-model-wiz__title",(m["yt-channel-external-link-view-model-wiz__title--title-small-font"]=J,m)),ellipsisTruncate:!0,userInput:!0}),_.C(_.j8,{text:function(){return c().link},
className:_.pq("yt-channel-external-link-view-model-wiz__link",(b["yt-channel-external-link-view-model-wiz__link--link-small-font"]=J,b)),ellipsisTruncate:!0,linkInheritColor:!0,userInput:!0})))},"Hb");
az2.idomCompat=!0;_.lv(az2,"yt-channel-external-link-view-model",{props:{data:_.vt,useSmallFont:_.vt}});_.zH("itemSectionRenderer","aboutChannelRenderer","ytd-about-channel-renderer");var uI=function(){var J=_.h.apply(this,arguments)||this;J.revealButtonClass="button";J.businessEmailDisplayState="HIDE_SECTION";return J};
_.D(uI,_.h);_.V=uI.prototype;_.V.refit=function(){var J=this;_.S5(function(){_.bJ(J.hostElement,"yt-refit-popups-action")});
_.o3(this,function(){_.bJ(J.hostElement,"yt-refit-popups-action")})};
_.V.onBusinessEmailClick=function(){this.metadata.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.dK("https://www.google.com/recaptcha/api.js?trustedtypes=true"),this.businessEmailDisplayState="CAPTCHA")};
_.V.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"};
_.V.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.V.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"}}}};
_.V.computeEmailHref=function(J){return"mailto:"+J};
_.V.computeSafeUrl=function(J){if(J)return _.n1(J)};
_.V.linkEndpoint=function(J){return _.L(J.onTap,_.Xz)};
_.V.linkEndpointToHref=function(J){return this.ytComponentBehavior.computeHref_(this.linkEndpoint(J))};
_.V.onYtServiceRequestCompleted=function(J){var c;if((c=J.detail.data)==null?0:c.businessEmail)this.businessEmail=J.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var m;if((m=J.detail.data)==null?0:m.errorMessage)this.businessEmailErrorMessage=J.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.V.onBusinessEmailCaptchaSubmit=function(){if(this.metadata.channelId&&this.metadata.onBusinessEmailRevealClickCommand){var J=this.JSC$14120_captchaTextarea.value;if(J){J={recaptcha_response_token:J,channel_id:this.metadata.channelId};var c=_.L(this.metadata.onBusinessEmailRevealClickCommand,_.Xz);c&&this.ytComponentBehavior.resolveCommand(c,{form:J})}}};
_.V.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.eE.Object.defineProperties(uI.prototype,{metadata:{configurable:!0,enumerable:!0,get:function(){var J;return _.L((J=this.data)==null?void 0:J.metadata,wH2)}},
revealButton:{configurable:!0,enumerable:!0,get:function(){return _.L(this.metadata.businessEmailRevealButton,_.ri)}},
channelDisplayUrl:{configurable:!0,enumerable:!0,get:function(){if(this.metadata.displayCanonicalChannelUrl)return this.metadata.displayCanonicalChannelUrl;if(this.metadata.canonicalChannelUrl){var J=new URL(this.metadata.canonicalChannelUrl);return J.host+J.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 _.L(this.metadata.learnMoreOnTap,_.Xz)}}});
uI.prototype.onYtServiceRequestCompleted=uI.prototype.onYtServiceRequestCompleted;uI.prototype.businessEmailMetadataChanged=uI.prototype.businessEmailMetadataChanged;uI.prototype.refit=uI.prototype.refit;_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],uI.prototype,"ytComponentBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],uI.prototype,"ytRendererBehavior",void 0);
_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],uI.prototype,"ytRendererstamperBehavior",void 0);_.O([_.Iu("#g-recaptcha-response"),_.R("design:type",HTMLTextAreaElement)],uI.prototype,"JSC$14120_captchaTextarea",void 0);_.O([_.U(),_.R("design:type",Object)],uI.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],uI.prototype,"revealButtonClass",void 0);_.O([_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],uI.prototype,"metadata",null);
_.O([_.q("metadata"),_.R("design:type",Object),_.R("design:paramtypes",[])],uI.prototype,"revealButton",null);_.O([_.q("metadata"),_.R("design:type",Object),_.R("design:paramtypes",[])],uI.prototype,"channelDisplayUrl",null);_.O([_.kr("metadata"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],uI.prototype,"refit",null);_.O([_.q("metadata"),_.R("design:type",Object),_.R("design:paramtypes",[])],uI.prototype,"formattedDescription",null);
_.O([_.q("metadata","learnMoreCommand"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],uI.prototype,"shouldRendereVerifiedPhoneStatus",null);_.O([_.q("metadata"),_.R("design:type",Object),_.R("design:paramtypes",[])],uI.prototype,"learnMoreCommand",null);_.O([_.U(),_.R("design:type",String)],uI.prototype,"businessEmailDisplayState",void 0);_.O([_.U(),_.R("design:type",String)],uI.prototype,"businessEmail",void 0);
_.O([_.U(),_.R("design:type",String)],uI.prototype,"businessEmailErrorMessage",void 0);_.O([_.kr("metadata"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],uI.prototype,"businessEmailMetadataChanged",null);_.O([_.ps("yt-service-request-completed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],uI.prototype,"onYtServiceRequestCompleted",null);
uI=_.O([_.E({is:"ytd-about-channel-renderer",disableElementRegistration:!0})],uI);
_.v(uI,"ytd-about-channel-renderer",function(){if(CSQ!==void 0)return CSQ;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return CSQ=J},{mode:1});var kx$;var fF=function(){return _.h.apply(this,arguments)||this};
_.D(fF,_.h);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],fF.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],fF.prototype,"data",void 0);fF=_.O([_.E({is:"ytd-channel-list-sub-menu-avatar-renderer",disableElementRegistration:!0})],fF);
_.v(fF,"ytd-channel-list-sub-menu-avatar-renderer",function(){if(kx$!==void 0)return kx$;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return kx$=J},{mode:1});var HfC;var YC=function(){return _.h.apply(this,arguments)||this};
_.D(YC,_.h);YC.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelListSubMenuAvatarRenderer:"ytd-channel-list-sub-menu-avatar-renderer"}}}};
_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],YC.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],YC.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",String)],YC.prototype,"aligment",void 0);YC=_.O([_.E({is:"ytd-channel-list-sub-menu-renderer",disableElementRegistration:!0})],YC);
_.v(YC,"ytd-channel-list-sub-menu-renderer",function(){if(HfC!==void 0)return HfC;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return HfC=
J},{mode:1});var if2;var Xw=function(){return _.h.apply(this,arguments)||this};
_.D(Xw,_.h);Xw.prototype.configureRendererStamper=function(){return{"data.playAllButton":{id:"play-all",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.rightButtons":{id:"right-buttons",mapping:{buttonRenderer:"ytd-button-renderer",menuRenderer:"ytd-menu-renderer"}},"data.sortSetting":{id:"sort-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",params:{isRightAligned:!0}}}}}};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Xw.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],Xw.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Xw.prototype,"data",void 0);Xw=_.O([_.E({is:"ytd-channel-sub-menu-renderer",disableElementRegistration:!0})],Xw);
_.v(Xw,"ytd-channel-sub-menu-renderer",function(){if(if2!==void 0)return if2;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return if2=J},{mode:1});var nwL;var TZQ;var Zp=function(){var J=_.h.apply(this,arguments)||this;J.isCompact=!1;return J};
_.D(Zp,_.h);_.eE.Object.defineProperties(Zp.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isCompact?112:80}},
openNewWindow:{configurable:!0,enumerable:!0,get:function(){var J,c;return((c=_.L((J=this.data)==null?void 0:J.endpoint,_.Ee))==null?void 0:c.target)==="TARGET_NEW_WINDOW"}}});
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Zp.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],Zp.prototype,"componentBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Zp.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Zp.prototype,"isCompact",void 0);_.O([_.q("isCompact"),_.R("design:type",Number),_.R("design:paramtypes",[])],Zp.prototype,"thumbnailWidth",null);
_.O([_.q("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Zp.prototype,"openNewWindow",null);Zp=_.O([_.E({is:"ytd-media-lockup-renderer",disableElementRegistration:!0})],Zp);
_.v(Zp,"ytd-media-lockup-renderer",function(){if(TZQ!==void 0)return TZQ;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return TZQ=J},{mode:1});var wv$;var qe=function(){return _.h.apply(this,arguments)||this};
_.D(qe,_.h);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],qe.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],qe.prototype,"componentBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],qe.prototype,"data",void 0);qe=_.O([_.E({is:"ytd-structured-description-channel-lockup-renderer",disableElementRegistration:!0})],qe);
_.v(qe,"ytd-structured-description-channel-lockup-renderer",function(){if(wv$!==void 0)return wv$;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return wv$=J},{mode:1});var rw2;var UD=function(){var J=_.h.apply(this,arguments)||this;J.isCompact=!1;J.collections=_.w("web_modern_collections_v2");J.collectionsStackColor=_.w("modernize_structured_description_playlist_lockups_v2");return J};
_.D(UD,_.h);UD.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:_.w("defer_overlays")?1:void 0,waitForSignal:"eocs"}}};
_.eE.Object.defineProperties(UD.prototype,{twoLineTitle:{configurable:!0,enumerable:!0,get:function(){var J;return((J=this.data)==null?void 0:J.maxLinesTitle)===2}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var J,c,m,b,x,P;return{thumbnailSize:"small",doubleStack:!1,experimentEnabled:this.collections,sampledThumbnailColor:this.collectionsStackColor?(J=this.data)==null?void 0:(c=J.thumbnail)==null?void 0:c.sampledThumbnailColor:void 0,darkColorPalette:this.collectionsStackColor?(m=this.data)==null?void 0:(b=m.thumbnail)==null?void 0:b.darkColorPalette:void 0,vibrantColorPalette:this.collectionsStackColor?(x=this.data)==null?void 0:(P=x.thumbnail)==
null?void 0:P.vibrantColorPalette:void 0}}}});
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],UD.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],UD.prototype,"componentBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],UD.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],UD.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],UD.prototype,"showSidePanelThumbnailOverlay",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],UD.prototype,"isCompact",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],UD.prototype,"collections",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],UD.prototype,"collectionsStackColor",void 0);_.O([_.q("data"),_.U({reflectToAttribute:!0}),_.R("design:type",Boolean),_.R("design:paramtypes",[])],UD.prototype,"twoLineTitle",null);
_.O([_.q("data","collections","collectionsStackColor"),_.R("design:type",Object),_.R("design:paramtypes",[])],UD.prototype,"collectionStack",null);UD=_.O([_.E({is:"ytd-structured-description-playlist-lockup-renderer",disableElementRegistration:!0})],UD);
_.v(UD,"ytd-structured-description-playlist-lockup-renderer",function(){if(rw2!==void 0)return rw2;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return rw2=J},{mode:1});var s8L;var S4=function(){return _.h.apply(this,arguments)||this};
_.D(S4,_.h);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],S4.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],S4.prototype,"componentBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],S4.prototype,"data",void 0);S4=_.O([_.E({is:"ytd-structured-description-video-lockup-renderer",disableElementRegistration:!0})],S4);
_.v(S4,"ytd-structured-description-video-lockup-renderer",function(){if(s8L!==void 0)return s8L;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return s8L=J},{mode:2});var hv=function(){return _.h.apply(this,arguments)||this};
_.D(hv,_.h);
hv.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{structuredDescriptionPlaylistLockupRenderer:{component:"ytd-structured-description-playlist-lockup-renderer",params:{showSidePanelThumbnailOverlay:!0,isCompact:!0}},structuredDescriptionVideoLockupRenderer:"ytd-structured-description-video-lockup-renderer",structuredDescriptionChannelLockupRenderer:"ytd-structured-description-channel-lockup-renderer",mediaLockupRenderer:{component:"ytd-media-lockup-renderer",params:{isCompact:!0}}}}}};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],hv.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],hv.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],hv.prototype,"data",void 0);hv=_.O([_.E({is:"ytd-compact-infocard-renderer",disableElementRegistration:!0})],hv);
_.v(hv,"ytd-compact-infocard-renderer",function(){if(nwL!==void 0)return nwL;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return nwL=J},{mode:1});var LhQ;var d4=function(){var J=_.h.apply(this,arguments)||this;J.useModernCollectionsV2=_.w("web_modern_collections_v2");return J};
_.D(d4,_.h);d4.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.eE.Object.defineProperties(d4.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.w("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.w("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
customThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.w("kevlar_watch_feed_big_thumbs")?"":"94"}}});
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],d4.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],d4.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.XP),_.R("design:type",Object)],d4.prototype,"ytdDismissibleItemBehavior",void 0);_.O([_.f(_.fY),_.R("design:type",Object)],d4.prototype,"ytdReduxBehavior",void 0);_.O([_.U({selector:_.S8}),_.R("design:type",Object)],d4.prototype,"isGridViewEnabled",void 0);
_.O([_.q("isGridViewEnabled"),_.U({reflectToAttribute:!0}),_.R("design:type",Boolean),_.R("design:paramtypes",[])],d4.prototype,"watchFeedBigThumbs",null);_.O([_.q("isGridViewEnabled","data"),_.U({reflectToAttribute:!0,value:"168"}),_.R("design:type",String),_.R("design:paramtypes",[])],d4.prototype,"thumbnailWidth",null);_.O([_.q("isGridViewEnabled","data"),_.U({reflectToAttribute:!0,value:"94"}),_.R("design:type",String),_.R("design:paramtypes",[])],d4.prototype,"customThumbnailSize",null);
_.O([_.U(),_.R("design:type",Object)],d4.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],d4.prototype,"useModernCollectionsV2",void 0);d4=_.O([_.E({is:"ytd-compact-playlist-renderer",disableElementRegistration:!0})],d4);
_.v(d4,"ytd-compact-playlist-renderer",function(){if(LhQ!==void 0)return LhQ;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return LhQ=J},{mode:1});var D1Q;var $C=function(){var J=_.h.apply(this,arguments)||this;J.darkerDarkTheme=_.w("web_darker_dark_theme");J.roundedContainer=!0;J.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return J};
_.D($C,_.h);_.V=$C.prototype;_.V.attached=function(){this.requestElementsPerRow()};
_.V.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"}}}};
_.V.dataChanged=function(){this.hideThumbnail=!1;this.requestElementsPerRow()};
_.V.computeViewStyle=function(J){return J.style?J.style:"COMPACT_PROMOTED_ITEM_STYLE_UNSPECIFIED"};
_.V.onUpdateElementsPerRowAction=function(J){this.hideThumbnail=this.viewStyle==="COMPACT_PROMOTED_ITEM_STYLE_RICH_GRID"&&J===1};
_.V.requestElementsPerRow=function(){_.cA(this.hostElement,"yt-request-elements-per-row")};
$C.prototype.dataChanged=$C.prototype.dataChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],$C.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],$C.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.XP),_.R("design:type",Object)],$C.prototype,"ytdDismissibleItemBehavior",void 0);_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],$C.prototype,"actionHandlerBehavior",void 0);
_.O([_.U(),_.R("design:type",Object)],$C.prototype,"data",void 0);_.O([_.U({value:!1}),_.R("design:type",Boolean)],$C.prototype,"hideThumbnail",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeViewStyle(data)"}),_.R("design:type",String)],$C.prototype,"viewStyle",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],$C.prototype,"darkerDarkTheme",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],$C.prototype,"roundedContainer",void 0);
_.O([_.kr("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],$C.prototype,"dataChanged",null);$C=_.O([_.E({is:"ytd-compact-promoted-item-renderer",disableElementRegistration:!0})],$C);
_.v($C,"ytd-compact-promoted-item-renderer",function(){if(D1Q!==void 0)return D1Q;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return D1Q=J},{mode:1});var WhB;var Gf=function(){var J=_.h.apply(this,arguments)||this;J.collections=_.w("web_modern_collections_v2");return J};
_.D(Gf,_.h);Gf.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
Gf.prototype.attached=function(){this.hostElement.classList.add("use-ellipsis")};
Gf.prototype.onYtNavigate=function(J,c){var m=this;if(c.endpoint===this.data.navigationEndpoint&&this.get("endpoint.watchEndpoint.continuePlayback",c)){var b=this.get("watchEndpoint.videoId",c.endpoint),x=_.bJ(this.hostElement,"yt-get-current-video-id-action")[0];_.w("kevlar_mix_handle_first_endpoint_different")&&b&&x&&b!==x||(J.stopPropagation(),_.jp().getPlayerPromise().then(function(P){if(P.getPlayerState()===0&&m.data.secondaryNavigationEndpoint)var p=m.data.secondaryNavigationEndpoint;else{p=
Object.assign({},c.endpoint);var t=_.L(p.commandMetadata,_.lk);t&&(P=Math.floor(P.getCurrentTime()),t.url=_.oP(t.url,{t:P}),!_.w("kevlar_add_start_time_to_mix_endpoint_killswitch")&&(t=_.L(p,_.Rz)))&&(t.startTimeSeconds=P)}_.cA(m.hostElement,"yt-navigate",{endpoint:p})}))}};
_.eE.Object.defineProperties(Gf.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.w("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.w("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var J,c,m,b,x,P;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(J=this.data)==null?void 0:(c=J.thumbnail)==null?void 0:c.sampledThumbnailColor,vibrantColorPalette:(m=this.data)==null?void 0:(b=m.thumbnail)==null?void 0:b.vibrantColorPalette,darkColorPalette:(x=this.data)==null?void 0:(P=x.thumbnail)==null?void 0:P.darkColorPalette,experimentEnabled:this.collections}}}});
Gf.prototype.onYtNavigate=Gf.prototype.onYtNavigate;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Gf.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.ts.YtEndpointBehavior),_.R("design:type",Object)],Gf.prototype,"ytEndpointBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],Gf.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.XP),_.R("design:type",Object)],Gf.prototype,"ytdDismissibleItemBehavior",void 0);
_.O([_.f(_.$N),_.R("design:type",Object)],Gf.prototype,"ytdLockupBehavior",void 0);_.O([_.f(_.fY),_.R("design:type",Object)],Gf.prototype,"ytdReduxBehavior",void 0);_.O([_.U({selector:_.S8}),_.R("design:type",Object)],Gf.prototype,"isGridViewEnabled",void 0);_.O([_.q("isGridViewEnabled"),_.U({reflectToAttribute:!0}),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Gf.prototype,"watchFeedBigThumbs",null);
_.O([_.q("isGridViewEnabled"),_.U({reflectToAttribute:!0}),_.R("design:type",String),_.R("design:paramtypes",[])],Gf.prototype,"thumbnailWidth",null);_.O([_.U(),_.R("design:type",Object)],Gf.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],Gf.prototype,"collections",void 0);_.O([_.q("data","collections"),_.R("design:type",Object),_.R("design:paramtypes",[])],Gf.prototype,"collectionStack",null);
_.O([_.ps("yt-navigate"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,Object]),_.R("design:returntype")],Gf.prototype,"onYtNavigate",null);Gf=_.O([_.E({is:"ytd-compact-radio-renderer",disableElementRegistration:!0})],Gf);
_.v(Gf,"ytd-compact-radio-renderer",function(){if(WhB!==void 0)return WhB;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return WhB=J},{mode:1});var zz8;var ED=function(){return _.h.apply(this,arguments)||this};
_.D(ED,_.h);ED.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
ED.prototype.computeRendererStyle=function(J){return J.style?J.style.split("STYLE_")[1].replace(/_/g,"-").toLowerCase():""};
_.O([_.U(),_.R("design:type",Object)],ED.prototype,"data",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],ED.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],ED.prototype,"rendererBehavior",void 0);_.O([_.U({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.R("design:type",String)],ED.prototype,"rendererStyle",void 0);
ED=_.O([_.E({is:"ytd-compact-text-promo-renderer",disableElementRegistration:!0})],ED);
_.v(ED,"ytd-compact-text-promo-renderer",function(){if(zz8!==void 0)return zz8;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return zz8=J},{mode:1});var ujC;var vp=function(){var J=_.h.apply(this,arguments)||this;J.isShortsStyle=!1;return J};
_.D(vp,_.h);_.V=vp.prototype;_.V.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"}}}};
_.V.disableInteractionChanged=function(){this.isShortsStyle||(this.disableInteraction?_.cA(this.hostElement,"yt-disable-lockup-interaction"):_.cA(this.hostElement,"yt-enable-lockup-interaction"))};
_.V.isMetaBlockEmpty=function(J){return!J||!J.longBylineText&&!J.shortBylineText&&!J.shortViewCountText&&!J.viewCountText};
_.V.computeHasOneLineTitle=function(J){return this.forceOneLineTitle||!(J==null||!J.buttons)};
_.V.computeDisableInteraction=function(){var J;return!((J=this.data)==null?0:J.navigationEndpoint)};
_.V.hasSingularTopStandaloneBadge=function(){var J;return!((J=this.data)==null||!J.topStandaloneBadge)};
_.eE.Object.defineProperties(vp.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.w("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.w("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 J;return this.hasSingularTopStandaloneBadge()?[(J=this.data)==null?void 0:J.topStandaloneBadge]:[]}},
inlineMetadataBadges:{configurable:!0,enumerable:!0,get:function(){var J;return this.shouldShowTopBadges?((J=this.data)==null?void 0:J.badges)||[]:[]}},
shouldShowBadgesBelowMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.shouldShowTopBadges}},
compactTitleClass:{configurable:!0,enumerable:!0,get:function(){return this.shouldShowTopBadges?"compact-title":""}}});
vp.prototype.disableInteractionChanged=vp.prototype.disableInteractionChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],vp.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],vp.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.XP),_.R("design:type",Object)],vp.prototype,"ytdDismissibleItemBehavior",void 0);_.O([_.f(_.$N),_.R("design:type",Object)],vp.prototype,"ytdLockupBehavior",void 0);
_.O([_.f(_.fY),_.R("design:type",Object)],vp.prototype,"ytdReduxBehavior",void 0);_.O([_.U({reflectToAttribute:!0,computed:"isMetaBlockEmpty(data)"}),_.R("design:type",Boolean)],vp.prototype,"metaBlockEmpty",void 0);_.O([_.U({selector:_.S8}),_.R("design:type",Object)],vp.prototype,"isGridViewEnabled",void 0);_.O([_.q("isGridViewEnabled"),_.U({reflectToAttribute:!0}),_.R("design:type",Boolean),_.R("design:paramtypes",[])],vp.prototype,"watchFeedBigThumbs",null);
_.O([_.q("isGridViewEnabled"),_.U({reflectToAttribute:!0}),_.R("design:type",String),_.R("design:paramtypes",[])],vp.prototype,"thumbnailWidth",null);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],vp.prototype,"isShortsStyle",void 0);_.O([_.U(),_.R("design:type",Object)],vp.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeHasOneLineTitle(data)"}),_.R("design:type",Boolean)],vp.prototype,"hasOneLineTitle",void 0);
_.O([_.U(),_.R("design:type",Boolean)],vp.prototype,"hideThumbnail",void 0);_.O([_.U(),_.R("design:type",Boolean)],vp.prototype,"forceOneLineTitle",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeDisableInteraction(data)"}),_.R("design:type",Boolean)],vp.prototype,"disableInteraction",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],vp.prototype,"musicMetadataVideoLockup",void 0);
_.O([_.NE("disableInteraction"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],vp.prototype,"disableInteractionChanged",null);_.O([_.q("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],vp.prototype,"shouldShowTopBadges",null);_.O([_.q("data"),_.R("design:type",Array),_.R("design:paramtypes",[])],vp.prototype,"topBadges",null);
_.O([_.q("shouldShowTopBadges","data"),_.R("design:type",Array),_.R("design:paramtypes",[])],vp.prototype,"inlineMetadataBadges",null);_.O([_.q("shouldShowTopBadges"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],vp.prototype,"shouldShowBadgesBelowMetadata",null);_.O([_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],vp.prototype,"compactTitleClass",null);vp=_.O([_.E({is:"ytd-compact-video-renderer",disableElementRegistration:!0})],vp);
_.v(vp,"ytd-compact-video-renderer",function(){if(ujC!==void 0)return ujC;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return ujC=J},{mode:_.mP("kevlar_poly_si_batch_j067")?1:2});var fz2;_.zH("itemSectionRenderer","counterfactualRenderer","ytd-counterfactual-renderer");var OD=function(){return _.h.apply(this,arguments)||this};
_.D(OD,_.h);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],OD.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],OD.prototype,"data",void 0);OD=_.O([_.E({is:"ytd-counterfactual-renderer",disableElementRegistration:!0})],OD);
_.v(OD,"ytd-counterfactual-renderer",function(){if(fz2!==void 0)return fz2;var J=document.createElement("template");_.z(J,"\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");J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return fz2=J},{mode:1});var YA_;var Av=function(){var J=_.h.apply(this,arguments)||this;J.hidden=!1;return J};
_.D(Av,_.h);Av.prototype.onSelect=function(){this.data&&this.data.onSelectCommand&&_.BG().resolve(_.gu).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})};
Av.prototype.computeHidden=function(J){return!!J};
_.eE.Object.defineProperties(Av.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.ytRendererBehavior.getSimpleString(this.data.label)}},
value:{configurable:!0,enumerable:!0,get:function(){if(this.data&&(typeof this.data.stringValue==="string"||typeof this.data.int32Value==="number"))return this.data.stringValue?this.data.stringValue:this.data.int32Value}}});
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Av.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Av.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeHidden(data.isHidden)"}),_.R("design:type",Object)],Av.prototype,"hidden",void 0);_.O([_.q("data.label"),_.R("design:type",String),_.R("design:paramtypes",[])],Av.prototype,"label",null);_.O([_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],Av.prototype,"value",null);
Av=_.O([_.E({is:"ytd-dropdown-item-renderer",disableElementRegistration:!0})],Av);
_.v(Av,"ytd-dropdown-item-renderer",function(){if(YA_!==void 0)return YA_;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return YA_=J},{mode:1});var Xv_;var Zfa;var Rp=function(){return _.h.apply(this,arguments)||this};
_.D(Rp,_.h);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Rp.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Rp.prototype,"data",void 0);_.O([_.U({computed:"getSimpleString(data.label)"}),_.R("design:type",String)],Rp.prototype,"label",void 0);Rp=_.O([_.E({is:"ytd-navigation-dropdown-item-renderer",disableElementRegistration:!0})],Rp);
_.v(Rp,"ytd-navigation-dropdown-item-renderer",function(){if(Zfa!==void 0)return Zfa;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return Zfa=J},{mode:1});var op=function(){var J=_.h.apply(this,arguments)||this;J.disabled=!1;J.value="";J.noLabelFloat=!1;J.noUnderline=!1;J.usePrimaryColor=!1;J.hasBackground=!1;J.verticalAlign="top";J.autosize=!1;J.minAutosizeWidth=100;J.autosizeFont="14px Roboto";return J};
_.D(op,_.h);_.V=op.prototype;_.V.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"}}}};
_.V.open=function(){this.inputEl.open()};
_.V.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getSelectedItem())};
_.V.dataChanged=function(){this.reset()};
_.V.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.SJ("value-changed",this.value))};
_.V.stopPropagation=function(J){J.stopPropagation()};
_.V.autoSizeLabel=function(){if(this.autosizeFont&&this.autosize){this.canvas||(this.canvas=document.createElement("canvas"));var J=this.canvas.getContext("2d");J&&(J.font=this.autosizeFont,this.inputEl.style.width=Math.max(this.minAutosizeWidth,Number(J.measureText(this.inputEl.value).width)+24)+"px")}};
_.V.getSelectedItem=function(){if(!this.data||!this.data.entries)return null;for(var J=0,c=this.data.entries.length;J<c;J++){var m=this.data.entries[J],b;for(b in m)if(m.hasOwnProperty(b)){var x=m[b];if("isSelected"in x&&x.isSelected)return"stringValue"in x?x.stringValue||"":"int32Value"in x?x.int32Value||0:0}}return null};
_.V.updateValueFromBinding=function(J){this.value=J.detail.value};
_.eE.Object.defineProperties(op.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 J=0,c=this.data.entries.length;J<c;J++){var m=this.data.entries[J],b;for(b in m)if(m.hasOwnProperty(b)){var x=m[b];if("isSelected"in x&&x.isSelected&&"label"in x)return this.ytRendererBehavior.getSimpleString(x.label)}}return null}}});
op.prototype.autoSizeLabel=op.prototype.autoSizeLabel;op.prototype.stopPropagation=op.prototype.stopPropagation;op.prototype.valueChangedForBinding=op.prototype.valueChangedForBinding;op.prototype.dataChanged=op.prototype.dataChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],op.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],op.prototype,"ytRendererStamperBehavior",void 0);
_.O([_.U(),_.R("design:type",Object)],op.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],op.prototype,"disabled",void 0);_.O([_.U(),_.R("design:type",Object)],op.prototype,"value",void 0);_.O([_.U(),_.R("design:type",Object)],op.prototype,"noLabelFloat",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],op.prototype,"noUnderline",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",String)],op.prototype,"theme",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],op.prototype,"usePrimaryColor",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],op.prototype,"hasBackground",void 0);_.O([_.U(),_.R("design:type",Object)],op.prototype,"verticalAlign",void 0);_.O([_.U(),_.R("design:type",Object)],op.prototype,"autosize",void 0);_.O([_.U(),_.R("design:type",Object)],op.prototype,"minAutosizeWidth",void 0);_.O([_.U(),_.R("design:type",Object)],op.prototype,"autosizeFont",void 0);
_.O([_.Iu("#entries"),_.R("design:type",Object)],op.prototype,"entries",void 0);_.O([_.Iu("#input"),_.R("design:type",Object)],op.prototype,"inputEl",void 0);_.O([_.kr("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],op.prototype,"dataChanged",null);_.O([_.kr("value"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],op.prototype,"valueChangedForBinding",null);
_.O([_.ps("iron-overlay-opened"),_.ps("iron-overlay-closed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],op.prototype,"stopPropagation",null);_.O([_.ps("iron-select"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],op.prototype,"autoSizeLabel",null);_.O([_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],op.prototype,"label",null);
op=_.O([_.E({disableElementRegistration:!0,is:"ytd-dropdown-renderer"})],op);
_.v(op,"ytd-dropdown-renderer",function(){if(Xv_!==void 0)return Xv_;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return Xv_=J},{mode:1});var qAQ;var QT=function(){var J=_.h.apply(this,arguments)||this;J.isConstrainedList=!1;return J};
_.D(QT,_.h);QT.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"}}}};
QT.prototype.fillRestIfNoShowMore=function(){this.data&&!this.data.showMoreText&&this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
QT.prototype.onShowMoreClick=function(){this.ytLazyListBehavior.fillRemainingListItems()};
QT.prototype.computeViewAllHidden=function(J,c){return J||!c.viewAllEndpoint};
QT.prototype.fillRestIfNoShowMore=QT.prototype.fillRestIfNoShowMore;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],QT.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],QT.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.lu.YtLazyListBehavior),_.R("design:type",Object)],QT.prototype,"ytLazyListBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],QT.prototype,"data",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],QT.prototype,"isConstrainedList",void 0);_.O([_.kr("data","canShowMore"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],QT.prototype,"fillRestIfNoShowMore",null);QT=_.O([_.E({is:"ytd-expanded-shelf-contents-renderer",disableElementRegistration:!0})],QT);
_.v(QT,"ytd-expanded-shelf-contents-renderer",function(){if(qAQ!==void 0)return qAQ;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return qAQ=J},{mode:_.mP("kevlar_poly_si_batch_j025")?1:2});var U1u;var e4=function(){return _.h.apply(this,arguments)||this};
_.D(e4,_.h);e4.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.viewChannelButton":{id:"view-channel-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],e4.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],e4.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],e4.prototype,"data",void 0);e4=_.O([_.E({is:"ytd-feed-channel-filter-header-renderer",disableElementRegistration:!0})],e4);
_.v(e4,"ytd-feed-channel-filter-header-renderer",function(){if(U1u!==void 0)return U1u;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return U1u=J},{mode:1});var SA_;var hzQ;var d1Z;var j4=function(){return _.h.apply(this,arguments)||this};
_.D(j4,_.h);_.V=j4.prototype;_.V.onClick=function(J){var c,m=(c=this.data)==null?void 0:c.sectionEndpoint;!_.AP(_.OT(J),this.hostElement,["A".toString()])&&m&&_.cA(this.hostElement,"yt-navigate",{endpoint:m})};
_.V.computeHasSectionEndpoint=function(J){return(J==null?void 0:J.sectionEndpoint)!==void 0};
_.V.computeShowHeaderAsLink=function(J){return(J==null?void 0:J.header)!==void 0&&(J==null?void 0:J.sectionEndpoint)!==void 0};
_.V.computeShowSubheaderAsLink=function(J){return(J==null?void 0:J.subheader)!==void 0&&(J==null?void 0:J.sectionEndpoint)!==void 0&&(J==null?void 0:J.header)===void 0};
_.V.getHeaderAsLinkClass=function(J){var c=[],m;(J==null?0:(m=J.headerIcon)==null?0:m.iconType)&&c.push("header-link-active");return c.join(" ")};
_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],j4.prototype,"ytComponentBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],j4.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],j4.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],j4.prototype,"data",void 0);
_.O([_.U({computed:"computeHasSectionEndpoint(data)",reflectToAttribute:!0}),_.R("design:type",Boolean)],j4.prototype,"hasSectionEndpoint",void 0);_.O([_.U({computed:"computeShowHeaderAsLink(data)"}),_.R("design:type",Boolean)],j4.prototype,"showHeaderAsLink",void 0);_.O([_.U({computed:"computeShowSubheaderAsLink(data)"}),_.R("design:type",Boolean)],j4.prototype,"showSubheaderAsLink",void 0);j4=_.O([_.E({is:"ytd-medical-panel-section-renderer",disableElementRegistration:!0})],j4);
_.v(j4,"ytd-medical-panel-section-renderer",function(){if(d1Z!==void 0)return d1Z;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return d1Z=J},{mode:1});var Fw=function(){var J=_.h.apply(this,arguments)||this;J.isExpanded=!1;J.roundedContainer=!0;J.skipRoundingTop=!1;J.toggleExpandableSection=function(){J.isExpanded=!J.isExpanded};
return J};
_.D(Fw,_.h);
Fw.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]]"}}}}}};
Fw.prototype.dataChanged=function(){this.data&&(this.isExpanded=!1)};
Fw.prototype.dataChanged=Fw.prototype.dataChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Fw.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],Fw.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Fw.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],Fw.prototype,"isExpanded",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Fw.prototype,"roundedContainer",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Fw.prototype,"skipRoundingTop",void 0);_.O([_.U(),_.R("design:type",Object)],Fw.prototype,"toggleExpandableSection",void 0);_.O([_.kr("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Fw.prototype,"dataChanged",null);Fw=_.O([_.E({is:"ytd-medical-panel-content-renderer",disableElementRegistration:!0})],Fw);
_.v(Fw,"ytd-medical-panel-content-renderer",function(){if(hzQ!==void 0)return hzQ;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return hzQ=J},{mode:1});_.zH("itemSectionRenderer","infoPanelContainerRenderer","ytd-info-panel-container-renderer");var lI=function(){var J=_.h.apply(this,arguments)||this;J.roundedContainer=!0;J.amsterdamEnabled=_.w("enable_desktop_amsterdam_info_panels");J.hasTitle=!1;J.linkIcon="OPEN_IN_NEW";J.isDismissed=!1;return J};
_.D(lI,_.h);
lI.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"}}}};
lI.prototype.computeHasTitle=function(J){return!(J==null||!J.title)};
lI.prototype.onClick=function(J){var c,m=(c=this.data)==null?void 0:c.headerEndpoint;!_.AP(_.OT(J),this.hostElement,["BUTTON".toString()])&&m&&this.ytComponentBehavior.resolveCommand(m)};
_.eE.Object.defineProperties(lI.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 J;return((J=this.data)==null?void 0:J.titleStyle)==="INFO_PANEL_CONTAINER_TITLE_STYLE_LINK"}},
hideDivider:{configurable:!0,enumerable:!0,get:function(){var J,c;return((J=this.data)==null?void 0:J.disableBottomDivider)||!((c=this.data)==null?0:c.title)}}});
_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],lI.prototype,"ytComponentBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],lI.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],lI.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.fY),_.R("design:type",Object)],lI.prototype,"ytdReduxBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],lI.prototype,"data",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],lI.prototype,"roundedContainer",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],lI.prototype,"amsterdamEnabled",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.R("design:type",Object)],lI.prototype,"hasTitle",void 0);
_.O([_.U({type:_.w("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.q("data.background"),_.R("design:type",Object),_.R("design:paramtypes",[])],lI.prototype,"background",null);_.O([_.U({type:_.w("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.q("data.titleStyle"),_.R("design:type",Object),_.R("design:paramtypes",[])],lI.prototype,"titleStyle",null);
_.O([_.U({type:_.w("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.q("data.titleStyle"),_.R("design:type",Object),_.R("design:paramtypes",[])],lI.prototype,"showLinkIcon",null);_.O([_.U(),_.R("design:type",String)],lI.prototype,"linkIcon",void 0);_.O([_.U({type:_.w("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],lI.prototype,"hideDivider",null);
_.O([_.U({selectorArgs:["data.dismissStateEntityKey"],selector:function(J,c){J=_.P2(J.entities,"dismissState",c);return(J==null?void 0:J.isDismissed)||(J==null?void 0:J.vwcDismissState)==="VWC_DISMISS_STATE_NOT_INTERESTED"||(J==null?void 0:J.vwcDismissState)==="VWC_DISMISS_STATE_BLOCK_CHANNEL"}}),
_.R("design:type",Object)],lI.prototype,"isDismissed",void 0);lI=_.O([_.E({is:"ytd-info-panel-container-renderer",disableElementRegistration:!0})],lI);
_.v(lI,"ytd-info-panel-container-renderer",function(){if(SA_!==void 0)return SA_;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return SA_=J},{mode:1});var $12;_.zH("sharingItemSection","itemSectionHeaderRenderer","ytd-item-section-header-renderer");var yT=function(){var J=_.h.apply(this,arguments)||this;J.modernTypography=_.w("web_modern_typography");return J};
_.D(yT,_.h);yT.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
yT.prototype.computeStyle=function(J){return J?J:""};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],yT.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],yT.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],yT.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeStyle(data.titleStyle)"}),_.R("design:type",String)],yT.prototype,"titleStyle",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],yT.prototype,"modernTypography",void 0);yT=_.O([_.E({is:"ytd-item-section-header-renderer",disableElementRegistration:!0})],yT);
_.v(yT,"ytd-item-section-header-renderer",function(){if($12!==void 0)return $12;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return $12=J},{mode:1});var GxQ;var Ewz,vw_=function(){return Ewz!==void 0?Ewz:Ewz=document.createElement("template")};
document.head.appendChild(vw_().content);var OfQ;_.Bp=new _.oE("VOTING_ANIMATION_CONTROLLER_TOKEN");var Rza=_.Q1(function(J){var c=J.data;var m=_.oN("div"),b=_.oN("div");J=_.M(_.K2("VOTE_STATUS_NONE",void 0,"FVF7mc"));var x=J.next().value,P=J.next().value,p=_.tT(dVo,function(){var T;return(T=c())==null?void 0:T.entityKey}),t=_.w("web_enable_voting_animation")||_.w("enable_music_web_cairo_voting_animation");
_.uN(function(){var T;((T=c().initialState)==null?0:T.status)&&P(c().initialState.status)});
var I=function(){var T,r,W=(r=(T=c().initialState)==null?void 0:T.votes)!=null?r:0,Y;T=(Y=c().initialState)==null?void 0:Y.status;return T==="VOTE_STATUS_UPVOTED"?W-1:T==="VOTE_STATUS_DOWNVOTED"?W+1:W},a=function(){return x()==="VOTE_STATUS_UPVOTED"?I()+1:x()==="VOTE_STATUS_DOWNVOTED"?I()-1:I()},k=function(T){var r=T?"VOTE_STATUS_UPVOTED":"VOTE_STATUS_NONE";
P(r);var W=a(),Y=_.BG().resolve(_.y6(_.Bp)),Z=p();Z&&(T&&(Z==null?0:Z.upvoteDefaultButtonOnTap)?_.hd(Z.upvoteDefaultButtonOnTap,{form:{element:m.value},disableClickTracking:!0}):(Z==null?0:Z.upvoteToggledButtonOnTap)&&_.hd(Z.upvoteToggledButtonOnTap,{form:{element:m.value},disableClickTracking:!0}));var d;T=(d=Z==null?void 0:Z.enableOptimisticReordering)!=null?d:c().enableOptimisticReordering;t&&Y&&c().itemId&&T&&Aw6(Y,c().itemId,W,r)},H=function(T){var r=T?"VOTE_STATUS_DOWNVOTED":"VOTE_STATUS_NONE";
P(r);var W=a(),Y=_.BG().resolve(_.y6(_.Bp)),Z=p();Z&&(T&&(Z==null?0:Z.downvoteDefaultButtonOnTap)?_.hd(Z.downvoteDefaultButtonOnTap,{form:{element:b.value},disableClickTracking:!0}):(Z==null?0:Z.downvoteToggledButtonOnTap)&&_.hd(Z.downvoteToggledButtonOnTap,{form:{element:b.value},disableClickTracking:!0}));var d;T=(d=Z==null?void 0:Z.enableOptimisticReordering)!=null?d:c().enableOptimisticReordering;t&&Y&&c().itemId&&T&&Aw6(Y,c().itemId,W,r)};
J={};J=_.pq("ytVotingViewModelVoteCount",(J.ytVotingViewModelVoteCountDisabled=function(){return c().isDisabled},J));
return _.C("voting-view-model",{class:"ytVotingViewModelHost"},_.C("div",{el:m},_.C(_.wi,{data:function(){var T=_.L(c().upvoteButton,_.sc);return{toggleButtonViewModel:Object.assign({},T,{isToggled:x()==="VOTE_STATUS_UPVOTED"})}}},{toggleButtonViewModel:function(T){return _.C(_.LK,{data:T.data,
onToggle:k})}})),_.C("div",{class:J},function(){var T,r,W;
return x()==="VOTE_STATUS_UPVOTED"?(T=c().initialState)==null?void 0:T.compactVotesUpvoted:x()==="VOTE_STATUS_DOWNVOTED"?(r=c().initialState)==null?void 0:r.compactVotesDownvoted:(W=c().initialState)==null?void 0:W.compactVotes}),_.C("div",{el:b},_.C(_.wi,{data:function(){var T=_.L(c().downvoteButton,_.sc);
return{toggleButtonViewModel:Object.assign({},T,{isToggled:x()==="VOTE_STATUS_DOWNVOTED"})}}},{toggleButtonViewModel:function(T){return _.C(_.LK,{data:T.data,
onToggle:H})}})))},"Ib");_.lv(_.Q1(function(J){var c=J.data;return _.C("engagement-bar-view-model",{class:"ytEngagementBarViewModelHost"},_.C("div",{class:_.pq("ytEngagementBarViewModelEngagementBarWrapper",J.className)},_.C(_.wi,{data:function(){return c().actions}},{votingViewModel:Rza})))},"Jb"),"engagement-bar-view-model",{props:{data:_.vt,
className:_.vt}});var g4=function(){var J=_.h.apply(this,arguments)||this;J.amsterdamPostMvp=_.w("web_amsterdam_post_mvp_playlists");J.cairoCollabPlaylistPostMvp=_.w("web_collab_playlist_thumbnail_size");J.playlistVotingAnimationEnabled=_.w("web_enable_voting_animation");J.downloadProgress=0;J.transferState="TRANSFER_STATE_UNKNOWN";J.downloadState="DOWNLOAD_STATE_UNKNOWN";J.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";J.offlineVideoPolicyExpirationTimestamp=0;return J};
_.D(g4,_.h);_.V=g4.prototype;_.V.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"}}}};
_.V.canReorderChanged=function(){this.persistentDragHandle=_.w("kevlar_playlist_drag_handles")&&this.canReorder};
_.V.onDrag=function(){if(this.thumbnail){var J=_.Bj(this.thumbnail).querySelector("yt-image");J&&(J.shouldRenderLazy=!1)}};
_.V.onMenuOverlayChanged=function(J,c){this.menuOpened=c};
_.V.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.V.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.V.onContentsTap=function(J){var c,m=(c=this.data)==null?void 0:c.serviceEndpoints;if(m&&m.length===1&&_.L(m[0],gDQ)&&!_.AP(_.OT(J),this.hostElement,["TP-YT-PAPER-BUTTON"]))this.ytComponentBehavior.resolveCommand(m[0]);else{var b;(c=(b=this.data)==null?void 0:b.navigationEndpoint)&&_.w("music_on_main_open_playlist_recommended_videos_in_miniplayer")&&this.styleType==="playlist-video-renderer-style-recommended-video"?this.miniplayerIsActive?owQ(_.BG().resolve(_.Uo),c):(_.Mh().playlistSuggestionsShelfActivation=
!0,_.Q8C(_.BG().resolve(_.Uo),c)):c&&!_.AP(_.OT(J),this.hostElement,["A".toString(),"BUTTON".toString(),"ENGAGEMENT-BAR-VIEW-MODEL"])&&(_.w("kevlar_playlist_video_resolve_nav_endpoint_killswitch")?_.cA(this.hostElement,"yt-navigate",{endpoint:c}):this.ytComponentBehavior.resolveCommand(c))}};
_.V.computeStyle=function(J){return J?J.toLowerCase().replace(/_/g,"-"):""};
_.V.computeThumbnailWidth=function(J){return J==="PLAYLIST_VIDEO_RENDERER_STYLE_EPISODE"?170:this.amsterdamPostMvp?160:this.cairoCollabPlaylistPostMvp?200:120};
_.V.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=NV3(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))}};
_.V.created=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.V.detached=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.V.dataChanged=function(){if(this.data){var J,c,m,b=((J=this.downloadRenderData)==null?void 0:J.badges)&&((c=this.downloadRenderData)==null?void 0:c.badges)!==((m=this.data)==null?void 0:m.badges),x,P,p;J=((x=this.downloadRenderData)==null?void 0:x.thumbnailOverlays)&&((P=this.downloadRenderData)==null?void 0:P.thumbnailOverlays)!==((p=this.data)==null?void 0:p.thumbnailOverlays);(!this.downloadRenderData||b||J)&&this.downloadStateChanged()}};
_.V.setVideoIdChanged=function(){if(this.data&&this.data.setVideoId){var J,c,m=(J=this.data.menu)==null?void 0:(c=J.menuRenderer)==null?void 0:c.items;if(m)for(J=_.M(m),c=J.next();!c.done;c=J.next())if(c=c.value,m=void 0,_.L((m=c.menuServiceItemRenderer)==null?void 0:m.serviceEndpoint,_.DA)){var b=m=void 0,x=void 0;c=(m=c)==null?void 0:(b=m.menuServiceItemRenderer)==null?void 0:(x=b.serviceEndpoint)==null?void 0:x.playlistEditEndpoint;x=b=void 0;if(m=(b=c)==null?void 0:(x=b.actions)==null?void 0:
x[0])b=void 0,m.setVideoId=(b=this.data)==null?void 0:b.setVideoId;x=b=m=void 0;if(c=(m=c)==null?void 0:(b=m.clientActions)==null?void 0:(x=b[0])==null?void 0:x.playlistRemoveVideosAction)m=void 0,c.setVideoIds=[(m=this.data)==null?void 0:m.setVideoId]}}};
_.eE.Object.defineProperties(g4.prototype,{playlistVideoId:{configurable:!0,enumerable:!0,get:function(){return this.data.videoId}}});
g4.prototype.setVideoIdChanged=g4.prototype.setVideoIdChanged;g4.prototype.dataChanged=g4.prototype.dataChanged;g4.prototype.downloadStateChanged=g4.prototype.downloadStateChanged;g4.prototype.onMenuOverlayChanged=g4.prototype.onMenuOverlayChanged;g4.prototype.canReorderChanged=g4.prototype.canReorderChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],g4.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.fY),_.R("design:type",Object)],g4.prototype,"ytdReduxBehavior",void 0);
_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],g4.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.$N),_.R("design:type",Object)],g4.prototype,"ytdLockupBehavior",void 0);_.O([_.f(_.XP),_.R("design:type",Object)],g4.prototype,"ytdDismissibleItemBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],g4.prototype,"ytComponentBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],g4.prototype,"data",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],g4.prototype,"amsterdamPostMvp",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],g4.prototype,"canReorder",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],g4.prototype,"menuOpened",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],g4.prototype,"handleIsHovered",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],g4.prototype,"persistentDragHandle",void 0);
_.O([_.U(),_.R("design:type",Object)],g4.prototype,"downloadRenderData",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.R("design:type",String)],g4.prototype,"styleType",void 0);_.O([_.U({computed:"computeThumbnailWidth(data.style)"}),_.R("design:type",Number)],g4.prototype,"thumbnailWidth",void 0);_.O([_.U({value:!1,reflectToAttribute:!0}),_.R("design:type",Boolean)],g4.prototype,"isDownloads",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],g4.prototype,"cairoCollabPlaylistPostMvp",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],g4.prototype,"playlistVotingAnimationEnabled",void 0);_.O([_.U({selector:ZZ,selectorArgs:["data.videoId"]}),_.R("design:type",Object)],g4.prototype,"downloadProgress",void 0);_.O([_.U(),_.R("design:type",Number)],g4.prototype,"relativeDateReference",void 0);
_.O([_.U({selector:_.YY,selectorArgs:["data.videoId"]}),_.R("design:type",Object)],g4.prototype,"transferState",void 0);_.O([_.U({selector:qPf,selectorArgs:["data.videoId"]}),_.R("design:type",Object)],g4.prototype,"downloadState",void 0);_.O([_.U({selector:nWt,selectorArgs:["data.videoId"]}),_.R("design:type",Object)],g4.prototype,"offlinePolicyAction",void 0);_.O([_.U({selector:TeD,selectorArgs:["data.videoId"]}),_.R("design:type",Object)],g4.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.O([_.U({selector:rZe,selectorArgs:["data.videoId"]}),_.R("design:type",Object)],g4.prototype,"entityInfo",void 0);_.O([_.U({selector:_.z2}),_.R("design:type",Boolean)],g4.prototype,"miniplayerIsActive",void 0);_.O([_.q("data"),_.R("design:type",String),_.R("design:paramtypes",[])],g4.prototype,"playlistVideoId",null);_.O([_.Iu("#thumbnail"),_.R("design:type",Object)],g4.prototype,"thumbnail",void 0);
_.O([_.kr("canReorder"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],g4.prototype,"canReorderChanged",null);_.O([_.ps("yt-menu-overlay-changed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,Boolean]),_.R("design:returntype")],g4.prototype,"onMenuOverlayChanged",null);
_.O([_.kr("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadProgress","downloadState"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],g4.prototype,"downloadStateChanged",null);_.O([_.kr("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],g4.prototype,"dataChanged",null);
_.O([_.kr("data.setVideoId"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],g4.prototype,"setVideoIdChanged",null);g4=_.O([_.E({is:"ytd-playlist-video-renderer",disableElementRegistration:!0})],g4);
_.v(g4,"ytd-playlist-video-renderer",function(){if(OfQ!==void 0)return OfQ;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);J.content.insertBefore(vw_().content.cloneNode(!0),J.content.firstChild);return OfQ=J},{mode:1});var eza;var JC=function(){return _.h.apply(this,arguments)||this};
_.D(JC,_.h);_.O([_.U(),_.R("design:type",Object)],JC.prototype,"data",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],JC.prototype,"rendererBehavior",void 0);JC=_.O([_.E({is:"ytd-premium-browse-footer-renderer",disableElementRegistration:!0})],JC);
_.v(JC,"ytd-premium-browse-footer-renderer",function(){if(eza!==void 0)return eza;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return eza=J},{mode:1});var j8Z;var cb=function(){var J=_.h.apply(this,arguments)||this;J.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return J};
_.D(cb,_.h);_.V=cb.prototype;_.V.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.V.handleDarkModeToggledAction=function(J){this.isDarkTheme=J};
_.V.computeHeaderLogoThumbnail=function(J,c){if(J)return c?J.darkLogo:J.lightLogo};
_.V.computeHeaderLogoHeight=function(J,c){var m,b,x;return(J=(m=this.computeHeaderLogoThumbnail(J,c))==null?void 0:(b=m.thumbnails)==null?void 0:(x=b[0])==null?void 0:x.height)&&J%31===0?"31":"24"};
_.V.computeHeaderLogoMarginBottom=function(J,c){return this.computeHeaderLogoHeight(J,c)==="24"?"0":"-7"};
_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],cb.prototype,"actionHandlerBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],cb.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],cb.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Boolean)],cb.prototype,"isDarkTheme",void 0);_.O([_.U({computed:"computeHeaderLogoThumbnail(data,isDarkTheme)"}),_.R("design:type",Object)],cb.prototype,"themeLogo",void 0);
_.O([_.U({computed:"computeHeaderLogoHeight(data,isDarkTheme)"}),_.R("design:type",String)],cb.prototype,"logoHeight",void 0);_.O([_.U({computed:"computeHeaderLogoMarginBottom(data,isDarkTheme)"}),_.R("design:type",String)],cb.prototype,"logoMarginBottom",void 0);cb=_.O([_.E({is:"ytd-primetime-promo-header-renderer",disableElementRegistration:!0})],cb);
_.v(cb,"ytd-primetime-promo-header-renderer",function(){if(j8Z!==void 0)return j8Z;var J=document.createElement("template");_.z(J,'\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>');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return j8Z=J},{mode:1});var Fhu;var ywj=_.Q1(function(J){var c=_.Kq(function(x){var P;(P=J.onClick)==null||P.call(J,x)}),m={},b={};
return _.C("yt-shelf-header-layout",{class:_.pq("shelf-header-layout-wiz",(m["shelf-header-layout-wiz--disable-horizontal-padding"]=J.disableHorizontalPadding,m["shelf-header-layout-wiz--disable-vertical-padding"]=J.disableVerticalPadding,m["shelf-header-layout-wiz--responsive"]=J.useResponsiveLayout,m["shelf-header-layout-wiz--narrow"]=function(){var x,P;return((x=J.useResponsiveLayout)==null?void 0:x.call(J))&&((P=J.forceSmallLayout)==null?void 0:P.call(J))},m["shelf-header-layout-wiz--is-overlay"]=
J.isOverlay,m["shelf-header-layout-wiz--tappable"]=!!J.onClick,m)),
"on:click":c,tabindex:J.onClick?0:void 0},_.C(_.n,{cond:J.leadingIcon,then:function(x){return _.C("div",{class:"shelf-header-layout-wiz__leading-icon"},_.C(_.HP,{icon:x}))},
else:function(){return _.C(_.n,{cond:J.hasLeadingImage,then:function(){var x,P={};return _.C("div",{class:_.pq("shelf-header-layout-wiz__leading-image",(P["shelf-header-layout-wiz__leading-image--circular-image"]=J.circularImage,P))},(x=J.leadingImage)==null?void 0:x.call(J))}})}}),_.C("div",{class:"shelf-header-layout-wiz__label-container"},_.C(_.n,{cond:J.hasSuperlabel,
then:function(){var x;return _.C("div",{class:"shelf-header-layout-wiz__superlabel"},(x=J.superlabel)==null?void 0:x.call(J))}}),_.C("div",{class:"shelf-header-layout-wiz__title-row"},_.C(lzz,{text:J.title,
className:_.pq("shelf-header-layout-wiz__title",(b["shelf-header-layout-wiz__title--small-title"]=J.forceSmallLayout,b)),tagLevel:J.tagLevel}),_.C(_.n,{cond:J.hasDetail,then:function(){var x;return _.C("div",{class:"shelf-header-layout-wiz__detail"},(x=J.detail)==null?void 0:x.call(J))}})),_.C(_.n,{cond:J.hasSublabel,
then:function(){var x;return _.C("div",{class:"shelf-header-layout-wiz__sublabel"},(x=J.sublabel)==null?void 0:x.call(J))}})),_.C(_.n,{cond:J.hasTrailingActions,
then:function(){var x;return _.C("div",{class:"shelf-header-layout-wiz__trailing-actions"},(x=J.trailingActions)==null?void 0:x.call(J))}}))},"Kb");
ywj.idomCompat={callbacks:{title:!0,detail:!0,sublabel:!0,superlabel:!0,leadingImage:!0,trailingActions:!0,onClick:!0}};
var lzz=_.Q1(function(J){var c=J.text;var m=J.className;var b=J.tagLevel;return _.C(_.sb,null,_.C(_.wu,{when:function(){return(b==null?void 0:b())===0}},function(){return _.C("h2",{class:m},c())}),_.C(_.wu,{when:function(){return(b==null?void 0:b())===1}},function(){return _.C("h3",{class:m},c())}),_.C(_.wu,{when:function(){return(b==null?void 0:b())===2}},function(){return _.C("h4",{class:m},c())}),_.C(_.ru,null,function(){return _.C("h2",{class:m},c())}))},"Lb");var Jp6,BZ$,gw6;_.m8=_.Q1(function(J){var c=J.data;return _.C("yt-section-header-view-model",{class:"ytSectionHeaderViewModelHost",style:_.kx({"background-color":function(){return $Vu(c().backgroundColor)?_.Zn($Vu(c().backgroundColor)):void 0}})},_.C(ywj,{hasDetail:!1,
title:function(){return _.C(_.j8,{text:function(){return c().headline}})},
hasTitle:!0,sublabel:function(){return _.C(BZ$,{data:c})},
hasSublabel:function(){return!!c().sublabel||!!c().bottomBadge},
superlabel:function(){return _.C(gw6,{data:c})},
hasSuperlabel:function(){return!!c().superlabel||!!c().topBadge},
leadingImage:function(){return _.C(Jp6,{leadingAccessory:function(){return c().leadingAccessory}})},
hasLeadingImage:function(){return!!c().leadingAccessory},
trailingActions:function(){return _.C(_.wi,{data:function(){return c().trailingActions}},{flexibleActionsViewModel:DX})},
hasTrailingActions:function(){return!!c().trailingActions},
disableHorizontalPadding:J.disableHorizontalPadding,disableVerticalPadding:J.disableVerticalPadding,forceSmallLayout:J.forceSmallLayout,useResponsiveLayout:J.useResponsiveLayout,isOverlay:J.isOverlay,onClick:function(m){if(_.Ec(c().rendererContext)){var b=_.G9(c().rendererContext);b&&_.ql(b,{form:{element:m.target,event:m}})}}}))},"Mb");
Jp6=_.Q1(function(J){var c=J.leadingAccessory;return _.C(_.cG,null,_.C(_.n,{cond:function(){var m;return(m=c().image)!=null?m:_.e8(c().themedImage)},
then:function(m){return _.C(_.RA,{data:m,alt:"",preserveWidth:!0,preserveHeight:!0})}}),_.C(_.n,{cond:function(){return _.L(c().avatar,_.Oc)},
then:function(m){return _.C(_.s8,{data:m})}}))},"Nb");
BZ$=_.Q1(function(J){var c=J.data;return _.C(_.cG,null,_.C(_.n,{cond:function(){return _.L(c().bottomBadge,ug_)},
then:function(m){var b={};return _.C(_.Fo,{data:m,class:_.pq((b.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!m()&&!!c().sublabel},b))})}}),_.C(_.n,{cond:function(){return c().sublabel},
then:function(m){return _.C(_.j8,{text:m})}}))},"Ob");
gw6=_.Q1(function(J){var c=J.data;return _.C(_.cG,null,_.C(_.n,{cond:function(){return _.L(c().topBadge,ug_)},
then:function(m){var b={};return _.C(_.Fo,{data:m,class:_.pq((b.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!m()&&!!c().superlabel},b))})}}),_.C(_.n,{cond:function(){return c().superlabel},
then:function(m){return _.C(_.j8,{text:m})}}))},"Pb");_.lv(_.m8,"yt-section-header-view-model",{props:{data:_.vt,className:_.vt,disableHorizontalPadding:_.vt,disableVerticalPadding:_.vt,forceSmallLayout:_.vt,useResponsiveLayout:_.vt,isOverlay:_.vt}});_.zH("itemSectionRenderer","primetimePromoRenderer","ytd-primetime-promo-renderer");var bw=function(){var J=_.h.apply(this,arguments)||this;J.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return J};
_.D(bw,_.h);_.V=bw.prototype;_.V.attached=function(){this.requestElementsPerRow()};
_.V.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"}}}};
_.V.onDataChange=function(){var J=this;_.o3(this,function(){J.updateItemVisibility()})};
_.V.onUpdateElementsPerRowAction=function(J){J&&this.elementsPerRow!==J&&(this.elementsPerRow=J,this.updateItemVisibility())};
_.V.updateItemVisibility=function(){var J=this;this.data&&this.data.panels&&_.Bj(this.hostElement).querySelectorAll("ytd-rich-item-renderer").forEach(function(c,m){c.hidden=m>J.elementsPerRow-1})};
_.V.requestElementsPerRow=function(){_.cA(this.hostElement,"yt-request-elements-per-row")};
bw.prototype.onDataChange=bw.prototype.onDataChange;_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],bw.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.XP),_.R("design:type",Object)],bw.prototype,"ytdDismissibleItemBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],bw.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],bw.prototype,"actionHandlerBehavior",void 0);
_.O([_.U(),_.R("design:type",Object)],bw.prototype,"data",void 0);_.O([_.U({value:3}),_.R("design:type",Number)],bw.prototype,"elementsPerRow",void 0);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],bw.prototype,"onDataChange",null);bw=_.O([_.E({is:"ytd-primetime-promo-renderer",disableElementRegistration:!0})],bw);
_.v(bw,"ytd-primetime-promo-renderer",function(){if(Fhu!==void 0)return Fhu;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return Fhu=J},{mode:1});var cpQ;var xi=function(){var J=_.h.apply(this,arguments)||this;J.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction"};return J};
_.D(xi,_.h);xi.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
xi.prototype.handleButtonRefreshAction=function(J){if(J=_.L(J,A3Q))this.set("data.button",J.membershipButton),this.notifyPath("data.button")};
_.eE.Object.defineProperties(xi.prototype,{avatars:{configurable:!0,enumerable:!0,get:function(){var J,c;return((J=this.data)==null?void 0:(c=J.avatars)==null?void 0:c.slice(0,8))||[]}}});
_.O([_.U(),_.R("design:type",Object)],xi.prototype,"data",void 0);_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],xi.prototype,"ytActionHandlerBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],xi.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],xi.prototype,"rendererBehavior",void 0);_.O([_.q("data"),_.R("design:type",Array),_.R("design:paramtypes",[])],xi.prototype,"avatars",null);
xi=_.O([_.E({is:"ytd-recognition-shelf-renderer",disableElementRegistration:!0})],xi);
_.v(xi,"ytd-recognition-shelf-renderer",function(){if(cpQ!==void 0)return cpQ;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return cpQ=J},{mode:1});var mjQ;var bbB;var VW=function(){var J=_.h.apply(this,arguments)||this;J.modernButtons=_.w("web_modern_buttons");return J};
_.D(VW,_.h);_.V=VW.prototype;
_.V.configureRendererStamper=function(){return{visibleItems:{id:"items",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-vertical-list-renderer lockup",containerType:3,force16By9ThumbnailAspectRatio:!0},properties:{thumbnailFixedWidth:"[[thumbnailWidth]]",typographyBump:"[[typographyBump]]",lockupExperiments:"[[lockupExperiments]]"}},channelRenderer:"ytd-channel-renderer",playlistRenderer:{component:"ytd-playlist-renderer",properties:{isSearch:"[[isSearch]]"}},radioRenderer:"ytd-radio-renderer",
showRenderer:"ytd-show-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}}}}}};
_.V.dataChanged=function(){this.collapsed=!0};
_.V.computeVisibleItems=function(J,c){return J!==void 0&&J.items?c?J.items.slice(0,this.data.collapsedItemCount):J.items:[]};
_.V.computeHideShowMore=function(J,c,m){return J>=c||!m};
_.V.computeHideShowAll=function(J,c,m){return!(J&&c)||m};
_.V.onMoreClick=function(){this.collapsed=!1};
_.eE.Object.defineProperties(VW.prototype,{typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.w("use_modern_typography_on_search")}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.mG("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.w("use_modern_typography_on_search")}}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":"246px"}}});
VW.prototype.dataChanged=VW.prototype.dataChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],VW.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],VW.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],VW.prototype,"data",void 0);_.O([_.U({value:!1}),_.R("design:type",Boolean)],VW.prototype,"isSearch",void 0);
_.O([_.U({computed:"computeVisibleItems(data,collapsed)"}),_.R("design:type",Array)],VW.prototype,"visibleItems",void 0);_.O([_.U({value:!0}),_.R("design:type",Boolean)],VW.prototype,"collapsed",void 0);_.O([_.U({computed:"computeHideShowMore(data.collapsedItemCount,data.items.length,collapsed)"}),_.R("design:type",Boolean)],VW.prototype,"hideShowMore",void 0);
_.O([_.U({computed:"computeHideShowAll(data.expandedStateButtonEndpoint,\n        data.expandedStateButtonText,collapsed)",value:!0}),_.R("design:type",Boolean)],VW.prototype,"hideShowAll",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],VW.prototype,"modernButtons",void 0);_.O([_.q("isSearch"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],VW.prototype,"typographyBump",null);
_.O([_.q("isSearch"),_.R("design:type",Object),_.R("design:paramtypes",[])],VW.prototype,"lockupExperiments",null);_.O([_.q("isSearch"),_.R("design:type",String),_.R("design:paramtypes",[])],VW.prototype,"thumbnailWidth",null);_.O([_.kr("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],VW.prototype,"dataChanged",null);VW=_.O([_.E({disableElementRegistration:!0,is:"ytd-vertical-list-renderer"})],VW);
_.v(VW,"ytd-vertical-list-renderer",function(){if(bbB!==void 0)return bbB;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return bbB=J},{mode:1});var xjQ=_.Oo(["#"]);_.zH("itemSectionRenderer","shelfRenderer","ytd-shelf-renderer");var Pb=function(){var J=_.h.apply(this,arguments)||this;J.isConstrainedList=!1;J.modernTypography=_.w("web_modern_typography");return J};
_.D(Pb,_.h);_.V=Pb.prototype;
_.V.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"}}}};
_.V.computeThumbnailStyle=function(J){return J||""};
_.V.computePlaceAnnotationUnderTitle=function(){var J;return["CHANNEL_THUMBNAIL_STYLE_BOXART","CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"].includes(((J=this.data)==null?void 0:J.thumbnailStyle)||"")};
_.V.computeHrefWithDefault=function(J){return this.ytComponentBehavior.computeHref_(J)||_.L1(xjQ)};
_.V.computeIsPromoShelf=function(J){var c;return(J=J==null?void 0:(c=J[0])==null?void 0:c.metadataBadgeRenderer)?J.style==="BADGE_STYLE_TYPE_YPC_TRANSPARENT":!1};
_.V.computePlaceBadgeBesideTitle=function(J){var c;return(J==null?0:(c=J[0])==null?0:c.metadataBadgeRenderer)?!this.computeIsPromoShelf(J):!1};
_.V.computeMenuIcon=function(J){return this.computeIsPromoShelf(J)?"yt-icons:more_vert":"yt-icons:more"};
_.V.onDataChange=function(){var J,c;((J=this.data)==null?0:(c=J.content)==null?0:c.horizontalListRenderer)&&!this.data.content.horizontalListRenderer.items&&(this.data.content.horizontalListRenderer=void 0)};
_.V.onLockupRequested=function(J){if(this.data&&this.data.content&&this.data.content.gridRenderer&&this.data.content.gridRenderer.items&&J.detail&&J.detail.videoIds){for(var c=this.data.content.gridRenderer.items,m=new Set,b=_.M(J.detail.videoIds),x=b.next();!x.done;x=b.next())m.add(x.value);J.detail.returnValue=c.filter(function(P){return P.gridVideoRenderer&&P.gridVideoRenderer.videoId&&m.has(P.gridVideoRenderer.videoId)}).map(function(P){return P.gridVideoRenderer})}};
_.V.onParentResize=function(){this.ironResizableBehavior.notifyResize()};
Pb.prototype.onLockupRequested=Pb.prototype.onLockupRequested;Pb.prototype.onDataChange=Pb.prototype.onDataChange;_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],Pb.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.XP),_.R("design:type",Object)],Pb.prototype,"ytdDismissibleItemBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Pb.prototype,"ytRendererBehavior",void 0);
_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],Pb.prototype,"ytComponentBehavior",void 0);_.O([_.f(_.rI),_.R("design:type",Object)],Pb.prototype,"ironResizableBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Pb.prototype,"data",void 0);_.O([_.U({value:!1}),_.R("design:type",Boolean)],Pb.prototype,"isSearch",void 0);_.O([_.U(),_.R("design:type",Object)],Pb.prototype,"isConstrainedList",void 0);_.O([_.U({reflectToAttribute:!0,value:function(){return _.w("kevlar_fluid_dismiss")}}),
_.R("design:type",Boolean)],Pb.prototype,"enableFluidDismiss",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeThumbnailStyle(data.thumbnailStyle)"}),_.R("design:type",String)],Pb.prototype,"thumbnailStyle",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Pb.prototype,"modernTypography",void 0);_.O([_.U({computed:"computeMenuIcon(data.badges)"}),_.R("design:type",String)],Pb.prototype,"menuIcon",void 0);
_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Pb.prototype,"onDataChange",null);_.O([_.ps("yt-lockup-requested"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],Pb.prototype,"onLockupRequested",null);Pb=_.O([_.E({is:"ytd-shelf-renderer",disableElementRegistration:!0})],Pb);
_.v(Pb,"ytd-shelf-renderer",function(){if(mjQ!==void 0)return mjQ;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return mjQ=J},{mode:1});var Vb$;var MF=function(){return _.h.apply(this,arguments)||this};
_.D(MF,_.h);MF.prototype.configureRendererStamper=function(){return{"data.filterMenu":{id:"filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",properties:{isRightAligned:"[[isRightAligned]]"}}}}}};
_.eE.Object.defineProperties(MF.prototype,{hasTitle:{configurable:!0,enumerable:!0,get:function(){var J;return!((J=this.data)==null||!J.title)}},
isRightAligned:{configurable:!0,enumerable:!0,get:function(){return!this.isPlaylist&&!this.isClipList&&!this.isPlaylistPageWithFilters}}});
_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],MF.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],MF.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],MF.prototype,"data",void 0);_.O([_.U({value:!1,reflectToAttribute:!0}),_.R("design:type",Boolean)],MF.prototype,"isPlaylist",void 0);_.O([_.U({value:!1,reflectToAttribute:!0}),_.R("design:type",Boolean)],MF.prototype,"isClipList",void 0);
_.O([_.U({value:!1,reflectToAttribute:!0}),_.R("design:type",Boolean)],MF.prototype,"isPlaylistPageWithFilters",void 0);_.O([_.U({value:!1,reflectToAttribute:!0}),_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],MF.prototype,"hasTitle",null);_.O([_.U(),_.q("isPlaylist","isClipList","isPlaylistPageWithFilters"),_.R("design:type",Object),_.R("design:paramtypes",[])],MF.prototype,"isRightAligned",null);
MF=_.O([_.E({is:"ytd-sort-filter-header-renderer",disableElementRegistration:!0})],MF);
_.v(MF,"ytd-sort-filter-header-renderer",function(){if(Vb$!==void 0)return Vb$;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return Vb$=J},{mode:1});var PY6;var px=function(){var J=_.h.apply(this,arguments)||this;J.enableRightArrowHidden=_.w("channel_details_shelf_resize_observer");return J};
_.D(px,_.h);px.prototype.attached=function(){var J=this;this.enableRightArrowHidden&&(this.JSC$14251_throttledOnResize=new _.FU(function(){J.ytdHorizontalListBehavior.reset()},200,this),this.resizeObserver=new ResizeObserver(function(){var c;
(c=J.JSC$14251_throttledOnResize)==null||c.fire()}),this.resizeObserver.observe(this.hostElement))};
px.prototype.detached=function(){if(this.enableRightArrowHidden){var J;(J=this.resizeObserver)==null||J.disconnect();var c;(c=this.JSC$14251_throttledOnResize)==null||c.dispose()}};
px.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]]"}}}}}};
px.prototype.getItemsPath=function(){return"data.creatorCustomUrlButtons"};
_.eE.Object.defineProperties(px.prototype,{hideRightArrow:{configurable:!0,enumerable:!0,get:function(){return this.enableRightArrowHidden&&this.ytdHorizontalListBehavior.atEnd}},
creatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){if(this.data&&_.w("enable_creator_details_shelf_m2")){var J=[],c;((c=this.data)==null?0:c.creatorVideosButton)&&J.push(this.data.creatorVideosButton);var m;((m=this.data)==null?0:m.creatorAboutButton)&&J.push(this.data.creatorAboutButton);c=_.M(this.data.creatorCustomUrlButtons||[]);for(m=c.next();!m.done;m=c.next())J.push(m.value);return J}}},
showCreatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){return!!_.w("enable_creator_details_shelf_m2")}},
channelAvatarSize:{configurable:!0,enumerable:!0,get:function(){return this.showCreatorCustomUrlButtons?36:72}}});
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],px.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],px.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.yI.YtdHorizontalListBehavior),_.R("design:type",Object)],px.prototype,"ytdHorizontalListBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],px.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],px.prototype,"engagementPanel",void 0);
_.O([_.U(),_.R("design:type",Object)],px.prototype,"enableRightArrowHidden",void 0);_.O([_.q("enableRightArrowHidden","atEnd"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],px.prototype,"hideRightArrow",null);_.O([_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],px.prototype,"creatorCustomUrlButtons",null);
_.O([_.U({reflectToAttribute:!0}),_.q("data","creatorCustomUrlButtons"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],px.prototype,"showCreatorCustomUrlButtons",null);_.O([_.q("showCreatorCustomUrlButtons"),_.R("design:type",Number),_.R("design:paramtypes",[])],px.prototype,"channelAvatarSize",null);px=_.O([_.E({is:"ytd-video-description-infocards-section-renderer",disableElementRegistration:!0})],px);
_.v(px,"ytd-video-description-infocards-section-renderer",function(){if(PY6!==void 0)return PY6;var J=document.createElement("template");_.z(J,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-infocards-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="header" class="yt-simple-endpoint style-scope ytd-video-description-infocards-section-renderer" data="[[data.channelEndpoint]]" href$="[[computeOptionalHref_(data.channelEndpoint)]]">\n  <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.sectionTitle)]]" hidden="[[!data.channelAvatar]]" thumbnail="[[data.channelAvatar]]" width="[[channelAvatarSize]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  </yt-img-shadow>\n  <div id="header-text" class="style-scope ytd-video-description-infocards-section-renderer">\n    <h3 id="title" class="style-scope ytd-video-description-infocards-section-renderer">[[getSimpleString(data.sectionTitle)]]</h3>\n    <div id="subtitle" hidden="[[!data.sectionSubtitle]]" class="style-scope ytd-video-description-infocards-section-renderer">\n      [[getSimpleString(data.sectionSubtitle)]]\n    </div>\n  </div>\n</a>\n<div id="action-buttons" hidden="[[showCreatorCustomUrlButtons]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  <div id="infocard-videos-button" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n  <div id="infocard-channel-button" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n</div>\n<div id="social-links" hidden="[[!showCreatorCustomUrlButtons]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  <div id="left-arrow-container" class="arrow-container style-scope ytd-video-description-infocards-section-renderer">\n    <div id="left-arrow" class="arrow center-aligned style-scope ytd-video-description-infocards-section-renderer" on-click="prevClick_" hidden="[[atStart]]">\n       <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-video-description-infocards-section-renderer"></yt-icon>\n    </div>\n  </div>\n  <div id="scroll-container" class="style-scope ytd-video-description-infocards-section-renderer">\n    <div id="items" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n  </div>\n  <div id="right-arrow-container" class="arrow-container style-scope ytd-video-description-infocards-section-renderer">\n    <div id="right-arrow" class="arrow center-aligned style-scope ytd-video-description-infocards-section-renderer" on-click="nextClick_" hidden="[[hideRightArrow]]">\n       <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-video-description-infocards-section-renderer"></yt-icon>\n    </div>\n  </div>\n</div>\n<div id="infocards-section" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return PY6=J},{mode:_.mP("kevlar_poly_si_batch_j067")?1:2});var Mb6;var NF=function(){return _.h.apply(this,arguments)||this};
_.D(NF,_.h);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],NF.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],NF.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],NF.prototype,"data",void 0);_.O([_.U({computed:"computeIcon_(data.infoIcon)"}),_.R("design:type",Object)],NF.prototype,"infoIcon",void 0);NF=_.O([_.E({is:"ytd-eom-settings-disclaimer-renderer",disableElementRegistration:!0})],NF);
_.v(NF,"ytd-eom-settings-disclaimer-renderer",function(){if(Mb6!==void 0)return Mb6;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return Mb6=J},{mode:1});var p_L;var tC=function(){return _.h.apply(this,arguments)||this};
_.D(tC,_.h);_.eE.Object.defineProperties(tC.prototype,{suppressPaddingDisclaimer:{configurable:!0,enumerable:!0,get:function(){var J;return!((J=this.data)==null||!J.suppressPaddingDisclaimer)}}});
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],tC.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],tC.prototype,"componentBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],tC.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],tC.prototype,"data",void 0);
_.O([_.U({reflectToAttribute:!0}),_.q("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],tC.prototype,"suppressPaddingDisclaimer",null);tC=_.O([_.E({disableElementRegistration:!0,is:"ytd-product-list-header-renderer"})],tC);
_.v(tC,"ytd-product-list-header-renderer",function(){if(p_L!==void 0)return p_L;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return p_L=J},{mode:1});var N52;var IU=function(){return _.h.apply(this,arguments)||this};
_.D(IU,_.h);IU.prototype.computeThumbnailStyle=function(J){if(J&&(J=_.XB(J)))return"background-color:"+J+";"};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],IU.prototype,"rendererBehaviors",void 0);_.O([_.U(),_.R("design:type",Object)],IU.prototype,"data",void 0);IU=_.O([_.E({disableElementRegistration:!0,is:"ytd-hashtag-tile-renderer"})],IU);
_.v(IU,"ytd-hashtag-tile-renderer",function(){if(N52!==void 0)return N52;var J=document.createElement("template");_.z(J,'\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>');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return N52=J},{mode:1});var tbB;var Kx=function(){return _.h.apply(this,arguments)||this};
_.D(Kx,_.h);Kx.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.secondaryActionButton":{id:"secondary-action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Kx.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],Kx.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Kx.prototype,"data",void 0);Kx=_.O([_.E({disableElementRegistration:!0,is:"ytd-sponsorships-alert-renderer"})],Kx);
_.v(Kx,"ytd-sponsorships-alert-renderer",function(){if(tbB!==void 0)return tbB;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return tbB=J},{mode:1});var ID$;var Cx=function(){return _.h.apply(this,arguments)||this};
_.D(Cx,_.h);Cx.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.eE.Object.defineProperties(Cx.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.w("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.w("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
_.O([_.f(_.XP),_.R("design:type",Object)],Cx.prototype,"ytdDismissibleItemBehavior",void 0);_.O([_.f(_.$N),_.R("design:type",Object)],Cx.prototype,"ytdLockupBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],Cx.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Cx.prototype,"ytRendererBehavior",void 0);_.O([_.U({selector:_.S8}),_.R("design:type",Object)],Cx.prototype,"isGridViewEnabled",void 0);
_.O([_.q("isGridViewEnabled"),_.U({reflectToAttribute:!0}),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Cx.prototype,"watchFeedBigThumbs",null);_.O([_.q("isGridViewEnabled"),_.U({reflectToAttribute:!0}),_.R("design:type",String),_.R("design:paramtypes",[])],Cx.prototype,"thumbnailWidth",null);_.O([_.U(),_.R("design:type",Object)],Cx.prototype,"data",void 0);Cx=_.O([_.E({disableElementRegistration:!0,is:"ytd-compact-movie-renderer"})],Cx);
_.v(Cx,"ytd-compact-movie-renderer",function(){if(ID$!==void 0)return ID$;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return ID$=J},{mode:1});var KgC;var CY8;var aD6=_.Ub("HTML_DIR")==="rtl",aU=function(){var J=_.h.apply(this,arguments)||this;J.engagementPanel=!1;J.maxLines=2;J.expandButtonOffset=0;J.showExpandButton=!1;J.isTruncated=!1;J.isExpanded=!1;J.currentSnippetType=2;J.alwaysShowExpandButton=!1;J.JSC$14268_lastWidth=NaN;J.observer=null;J.left=0;J.right=0;J.mid=0;J.longestSnippetLength=0;J.isFinalSnippet=!1;J.isFirstMutation=!1;J.isResetMutation=!1;J.OVERFLOW_THRESHOLD=5;return J};
_.D(aU,_.h);_.V=aU.prototype;_.V.onClick=function(J){if(this.engagementPanel&&(this.showExpandButton||this.isExpanded)&&!_.AP(_.OT(J)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var c;if((c=window.getSelection())==null||!c.toString().length)if(this.isExpanded)this.onCollapseClick();else this.onExpandClick()}};
_.V.updateIsAttributedExpanded=function(){this.isAttributedExpanded=this.isExpanded&&this.hasAttributedStringText};
_.V.updateIsFormattedExpanded=function(){this.isFormattedExpanded=this.isExpanded&&!this.hasAttributedStringText};
_.V.updateTextOnSnippetTypeChange=function(){_.w("update_text_inline_expander_on_snippet_type_change_killswitch")||this.isResetMutation&&this.mutationCallback()};
_.V.setUpBinarySearch=function(J){J=J*this.maxLines/8;this.left=0;var c,m;this.right=Math.min(J*2,(m=(c=this.simpleText)==null?void 0:c.length)!=null?m:0)-1;this.mid=Math.floor(this.left+(this.right-this.left)/2);this.longestSnippetLength=0};
_.V.isEmptyStringBestCandidate=function(){return!this.isResetMutation&&!this.isFirstMutation&&this.longestSnippetLength===0&&this.mid===0};
_.V.maybeLogWarningForEmptyAttributedSnippet=function(){this.attributedSnippetIsEmpty()&&!this.attributedTextIsEmpty()&&_.qz(new _.w3("AttributedSnippet is empty when the description is not empty",this.text))};
_.V.mutationCallback=function(){if(this.observer!=null){var J=this.hostElement.offsetWidth;if(this.attributedSnippetIsEmpty()){if(this.isEmptyStringBestCandidate()){var c=Math.floor(J*this.maxLines/8);this.setSnippetText(this.text,c);c!==0||this.attributedTextIsEmpty()||_.qz(new _.w3("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;J=J*this.maxLines/8;this.left=0;var m;this.right=Math.min(J*2,(m=(c=this.simpleText)==null?void 0:c.length)!=null?m: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)}}};
_.V.mutationObserve=function(J){var c=this;this.observer||(this.observer=new MutationObserver(function(){c.mutationCallback()}));
this.observer.observe(J,{childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0})};
_.V.attached=function(){var J=this;_.o3(this,function(){J.resize()})};
_.V.isExpandedChanged=function(){_.cA(this.hostElement,"yt-text-inline-expander-expanded-changed")};
_.V.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)};
_.V.updateMaskAndExpandButtonOffset=function(){if(this.isTruncated){var J="linear-gradient(\n        to top,\n        transparent 0%,\n        transparent 2rem,\n        #000 2rem,\n        #000 100%), linear-gradient(\n        to "+((aD6?"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",J);this.snippetContainer.style.setProperty("mask-image",
J)}else this.snippetContainer.style.setProperty("-webkit-mask-image",""),this.snippetContainer.style.setProperty("mask-image","");this.showExpandButton&&this.expandButton.style.setProperty(aD6?"right":"left",this.expandButtonOffset+"px")};
_.V.onTextChanged=function(){this.isAttached&&this.resize(!0)};
_.V.setSnippetText=function(J,c){J||(J={});if(_.vd(J)){var m=$e2(J,c);m.attachmentRuns||m.commandRuns||m.decorationRuns||m.styleRuns||m.alignment||m.lineBreakMode?this.attributedSnippetTextEl?(_.w("kevlar_expander_as_setter_killswitch")?(this.attributedSnippetTextEl.data=$e2(J,c),this.attributedSnippetTextEl.headerRuns=deQ(c,this.headerRuns)):this.attributedSnippetText={data:$e2(J,c),headerRuns:deQ(c,this.headerRuns)},this.currentSnippetType=0):_.qz(new _.w3("Tried to set snippet text when HTML element was null",
J)):(this.plainSnippetText.textContent=$V(J.content||"",c),this.currentSnippetType=2)}else{a:{m=Gs2(J,c);if(m.runs){m=_.M(m.runs);for(var b=m.next();!b.done;b=m.next())if(b=b.value,b.bold||b.deemphasize||b.italics||b.strikethrough||b.textColor||b.navigationEndpoint||_.L(b,f7)){m=!0;break a}}m=!1}m?this.formattedSnippetText?(this.formattedSnippetText.text=Gs2(J,c),this.currentSnippetType=1):_.qz(new _.w3("Tried to set snippet text when HTML element was null",J)):(this.plainSnippetText.textContent=
$V(_.OG(J),c),this.currentSnippetType=2)}};
_.V.attributedSnippetIsEmpty=function(){return this.useAttributedSnippet&&this.attributedSnippetTextEl?this.attributedSnippetTextEl.childNodes.length===0:this.plainSnippetText.childNodes.length===0};
_.V.attributedTextIsEmpty=function(){var J=this.text;if(!_.vd(J))return!0;var c;return((c=J.content)==null?void 0:c.length)===0?!0:!1};
_.V.resize=function(J){if(this.snippetText){if(J===void 0?0:J)this.JSC$14268_lastWidth=NaN;var c=this.hostElement.offsetWidth;if(c!==this.JSC$14268_lastWidth&&!this.isExpanded)if(this.JSC$14268_lastWidth=c,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;J=0;var m,b;c=Math.min(c*this.maxLines/8*2,(b=(m=this.simpleText)==null?void 0:m.length)!=null?b:0)-1;for(m=0;J<=c;)b=Math.floor(J+(c-J)/2),this.setSnippetText(this.text,b),this.isOverflowing()?c=b-1:(J=b+1,m=b);this.setSnippetText(this.text,m);this.expandButtonOffset=this.computeExpandButtonOffset()}else this.isTruncated=
!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset())}};
_.V.collapse=function(){this.isExpanded=!1;this.resize(!0)};
_.V.onExpandClick=function(){var J=this;this.expandCommand?this.componentBehavior.resolveCommand(this.expandCommand):(this.isExpanded=!0,this.showExpandButton=this.isTruncated=!1);_.w("inline_expander_reset_focus_killswitch")||_.o3(this,function(){var c;((c=_.BG().resolve(_.y6(_.Js)))==null?0:c.isKeyBoardInUse())&&_.ef(J.hostElement)});
_.cA(this.hostElement,"yt-text-inline-expander-expand-clicked")};
_.V.onCollapseClick=function(){this.collapse();_.cA(this.hostElement,"yt-text-inline-expander-collapse-clicked")};
_.V.isOverflowing=function(){return this.snippetContainer.scrollHeight-this.snippetContainer.offsetHeight>this.OVERFLOW_THRESHOLD};
_.V.computeExpandButtonOffset=function(){var J=this.expandSizer;return J?aD6?J.offsetParent?J.offsetParent.offsetWidth-J.offsetWidth-J.offsetLeft:0:J.offsetLeft:0};
_.eE.Object.defineProperties(aU.prototype,{simpleText:{configurable:!0,enumerable:!0,get:function(){return this.text?_.vd(this.text)?this.text.content||"":_.OG(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 _.vd(this.text)?!0:this.text&&_.w("web_replace_formatted_with_attributed_string")&&V4f(this.text)?(this.text=_.uv(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}}});
aU.prototype.onTextChanged=aU.prototype.onTextChanged;aU.prototype.updateMaskAndExpandButtonOffset=aU.prototype.updateMaskAndExpandButtonOffset;aU.prototype.updateSnippetContainerMaxHeight=aU.prototype.updateSnippetContainerMaxHeight;aU.prototype.isExpandedChanged=aU.prototype.isExpandedChanged;aU.prototype.updateTextOnSnippetTypeChange=aU.prototype.updateTextOnSnippetTypeChange;aU.prototype.updateIsFormattedExpanded=aU.prototype.updateIsFormattedExpanded;aU.prototype.updateIsAttributedExpanded=aU.prototype.updateIsAttributedExpanded;
aU.prototype.onClick=aU.prototype.onClick;_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],aU.prototype,"componentBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],aU.prototype,"text",void 0);_.O([_.U(),_.R("design:type",Array)],aU.prototype,"headerRuns",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],aU.prototype,"engagementPanel",void 0);_.O([_.U(),_.R("design:type",Object)],aU.prototype,"maxLines",void 0);
_.O([_.U(),_.R("design:type",String)],aU.prototype,"expandLabel",void 0);_.O([_.U(),_.R("design:type",String)],aU.prototype,"collapseLabel",void 0);_.O([_.U(),_.R("design:type",Object)],aU.prototype,"expandCommand",void 0);_.O([_.U(),_.R("design:type",Object)],aU.prototype,"expandButtonOffset",void 0);_.O([_.q("text"),_.R("design:type",String),_.R("design:paramtypes",[])],aU.prototype,"simpleText",null);
_.O([_.ps("click"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],aU.prototype,"onClick",null);_.O([_.q("text","isExpanded"),_.R("design:type",Object),_.R("design:paramtypes",[])],aU.prototype,"expandedText",null);_.O([_.q("headerRuns","isExpanded"),_.R("design:type",Object),_.R("design:paramtypes",[])],aU.prototype,"expandedHeaderRuns",null);
_.O([_.q("text"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],aU.prototype,"hasAttributedStringText",null);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],aU.prototype,"showExpandButton",void 0);_.O([_.q("collapseLabel","isExpanded"),_.R("design:type",Object),_.R("design:paramtypes",[])],aU.prototype,"showCollapseButton",null);_.O([_.U(),_.R("design:type",Object)],aU.prototype,"isTruncated",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],aU.prototype,"isExpanded",void 0);_.O([_.U(),_.R("design:type",Boolean)],aU.prototype,"isAttributedExpanded",void 0);_.O([_.NE("isExpanded","hasAttributedStringText"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],aU.prototype,"updateIsAttributedExpanded",null);_.O([_.U(),_.R("design:type",Boolean)],aU.prototype,"isFormattedExpanded",void 0);
_.O([_.NE("isExpanded","hasAttributedStringText"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],aU.prototype,"updateIsFormattedExpanded",null);_.O([_.U(),_.R("design:type",Number)],aU.prototype,"currentSnippetType",void 0);_.O([_.q("currentSnippetType"),_.R("design:type",Object),_.R("design:paramtypes",[])],aU.prototype,"useAttributedSnippet",null);
_.O([_.q("currentSnippetType"),_.R("design:type",Object),_.R("design:paramtypes",[])],aU.prototype,"useFormattedSnippet",null);_.O([_.q("currentSnippetType"),_.R("design:type",Object),_.R("design:paramtypes",[])],aU.prototype,"usePlainSnippet",null);_.O([_.U(),_.R("design:type",Object)],aU.prototype,"alwaysShowExpandButton",void 0);_.O([_.NE("currentSnippetType"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],aU.prototype,"updateTextOnSnippetTypeChange",null);
_.O([_.U(),_.R("design:type",Object)],aU.prototype,"attributedSnippetText",void 0);_.O([_.Iu("#snippet"),_.R("design:type",HTMLElement)],aU.prototype,"snippetContainer",void 0);_.O([_.Iu("#snippet-text"),_.R("design:type",HTMLElement)],aU.prototype,"snippetText",void 0);_.O([_.Iu("#plain-snippet-text"),_.R("design:type",HTMLElement)],aU.prototype,"plainSnippetText",void 0);_.O([_.Iu("#formatted-snippet-text"),_.R("design:type",Object)],aU.prototype,"formattedSnippetText",void 0);
_.O([_.Iu("#attributed-snippet-text"),_.R("design:type",Object)],aU.prototype,"attributedSnippetTextEl",void 0);_.O([_.Iu("#expand"),_.R("design:type",HTMLElement)],aU.prototype,"expandButton",void 0);_.O([_.Iu("#expand-sizer"),_.R("design:type",HTMLElement)],aU.prototype,"expandSizer",void 0);_.O([_.kr("isExpanded"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],aU.prototype,"isExpandedChanged",null);
_.O([_.NE("isExpanded","maxLines"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],aU.prototype,"updateSnippetContainerMaxHeight",null);_.O([_.NE("isTruncated","showExpandButton","expandButtonOffset"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],aU.prototype,"updateMaskAndExpandButtonOffset",null);
_.O([_.kr("text","simpleText","expandLabel","maxLines","alwaysShowExpandButton"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],aU.prototype,"onTextChanged",null);aU=_.O([_.E({is:"ytd-text-inline-expander",disableElementRegistration:!0})],aU);
_.v(aU,"ytd-text-inline-expander",function(){if(CY8===void 0){var J=document.createElement("template");_.z(J,'\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>');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);CY8=J}J=CY8;return J},{mode:2});var ki=function(){var J=_.h.apply(this,arguments)||this;J.actionMap={"yt-update-description-action":"handleUpdateDescriptionAction"};return J};
_.D(ki,_.h);ki.prototype.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inlineExpander&&(this.inlineExpander.isExpanded=!1,this.inlineExpander.resize())};
ki.prototype.handleUpdateDescriptionAction=function(J){if(J=_.L(J,_.yVQ))if(J.attributedDescription)this.set("data.attributedDescriptionBodyText",J.attributedDescription);else if(J.description){var c;((c=this.data)==null?0:c.attributedDescriptionBodyText)?this.set("data.attributedDescriptionBodyText",_.uv(J.description)):this.set("data.descriptionBodyText",J.description)}};
_.eE.Object.defineProperties(ki.prototype,{hasDescriptionText:{configurable:!0,enumerable:!0,get:function(){var J,c;return!((J=this.data)==null||!J.attributedDescriptionBodyText)||!((c=this.data)==null||!c.descriptionBodyText)}},
collapsedLines:{configurable:!0,enumerable:!0,get:function(){var J;if((J=this.data)==null?0:J.collapsedLineCount){var c;return(c=this.data)==null?void 0:c.collapsedLineCount}J=_.c7("web_watch_description_collapsed_default_lines",12);if(_.w("ww_desc_line_page_size_ks"))return J;c=Math.round(_.a1().height*_.c7("web_watch_description_screen_height_percentage",.5)/20);return Math.max(c,J)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){var J,c,m;return(m=(J=this.data)==null?void 0:J.descriptionBodyText)!=null?m:(c=this.data)==null?void 0:c.attributedDescriptionBodyText}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var J;return(J=this.data)==null?void 0:J.headerRuns}},
sourceAttributions:{configurable:!0,enumerable:!0,get:function(){var J;return(J=this.data)==null?void 0:J.sourceAttributions}}});
ki.prototype.panelContentVisibleChanged=ki.prototype.panelContentVisibleChanged;_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],ki.prototype,"ytActionHandlerBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],ki.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],ki.prototype,"componentBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],ki.prototype,"data",void 0);
_.O([_.U(),_.R("design:type",Boolean)],ki.prototype,"panelContentVisible",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],ki.prototype,"engagementPanel",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],ki.prototype,"shortsPanel",void 0);_.O([_.Iu("#inline-expander"),_.R("design:type",Object)],ki.prototype,"inlineExpander",void 0);
_.O([_.NE("panelContentVisible"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],ki.prototype,"panelContentVisibleChanged",null);_.O([_.q("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],ki.prototype,"hasDescriptionText",null);_.O([_.q("data"),_.R("design:type",Number),_.R("design:paramtypes",[])],ki.prototype,"collapsedLines",null);
_.O([_.q("data","data.descriptionBodyText","data.attributedDescriptionBodyText"),_.R("design:type",Object),_.R("design:paramtypes",[])],ki.prototype,"descriptionText",null);_.O([_.q("data","data.headerRuns"),_.R("design:type",Object),_.R("design:paramtypes",[])],ki.prototype,"headerRuns",null);_.O([_.q("data","data.sourceAttributions"),_.R("design:type",Object),_.R("design:paramtypes",[])],ki.prototype,"sourceAttributions",null);
ki=_.O([_.E({is:"ytd-expandable-video-description-body-renderer",disableElementRegistration:!0})],ki);
_.v(ki,"ytd-expandable-video-description-body-renderer",function(){if(KgC!==void 0)return KgC;var J=document.createElement("template");_.z(J,'\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>');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return KgC=J},{mode:_.mP("kevlar_poly_si_batch_j028")?1:2});var kCC;var Hbj=_.Q1(function(J){var c=J.data;return _.C("factoid-renderer",{class:"ytwFactoidRendererHost"},_.C("div",{class:"ytwFactoidRendererFactoid",role:"text","aria-label":function(){return c().accessibilityText}},_.C("span",{class:"ytwFactoidRendererValue"},_.C(_.j8,{text:function(){return c().value}})),_.C("span",{class:"ytwFactoidRendererLabel"},_.C(_.j8,{text:function(){return c().label}}))))},"Qb");_.lv(Hbj,"factoid-renderer",{props:{data:_.vt}});_.lv(_.Q1(function(J){var c=J.data;return _.C("upload-time-factoid-renderer",null,_.C(_.wi,{data:function(){return c().factoid}},{factoidRenderer:Hbj}))},"Rb"),"upload-time-factoid-renderer",{props:{data:_.Fz}});_.lv(_.Q1(function(J){var c=J.data;return _.C("view-count-factoid-renderer",null,_.C(_.wi,{data:function(){return c().factoid}},{factoidRenderer:Hbj}))},"Sb"),"view-count-factoid-renderer",{props:{data:_.Fz}});var Hb=function(){var J=_.h.apply(this,arguments)||this;J.shortsPanel=!1;J.engagementPanel=!1;J.watchWhileSdp=_.w("shorts_desktop_watch_while_sdp");return J};
_.D(Hb,_.h);Hb.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"}}}}};
_.eE.Object.defineProperties(Hb.prototype,{showChannelInfo:{configurable:!0,enumerable:!0,get:function(){if(this.shortsPanel||this.engagementPanel)return!1;var J;return(J=this.data)==null?void 0:J.channel}}});
_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],Hb.prototype,"componentBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],Hb.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Hb.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Hb.prototype,"shortsPanel",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Hb.prototype,"engagementPanel",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Hb.prototype,"watchWhileSdp",void 0);_.O([_.q("shortsPanel","engagementPanel","data.channel"),_.R("design:type",Object),_.R("design:paramtypes",[])],Hb.prototype,"showChannelInfo",null);Hb=_.O([_.E({is:"ytd-video-description-header-renderer",disableElementRegistration:!0})],Hb);
_.v(Hb,"ytd-video-description-header-renderer",function(){if(kCC!==void 0)return kCC;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return kCC=J},{mode:1});var ib6;var iw=function(){return _.h.apply(this,arguments)||this};
_.D(iw,_.h);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],iw.prototype,"ytComponentBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],iw.prototype,"ytRendererBehavior",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],iw.prototype,"noPadding",void 0);_.O([_.U(),_.R("design:type",Object)],iw.prototype,"data",void 0);iw=_.O([_.E({disableElementRegistration:!0,is:"ytd-list-item-view-model"})],iw);
_.v(iw,"ytd-list-item-view-model",function(){if(ib6!==void 0)return ib6;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return ib6=J},{mode:1});var naQ;var T5Q;var w__;var rpQ;var nx=function(){var J=_.h.apply(this,arguments)||this;J.adaptiveFullWidth=!1;J.modernButtons=_.w("web_modern_buttons");J.buttonOverrides={style:"call-to-action",type:"filled"};J.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp_","yt-signal-action-copy-share-url":"handleSignalActionCopyShareUrl_"};return J};
_.D(nx,_.h);nx.prototype.handleSetTimestamp_=function(J){this.data&&this.data.shortUrl&&(_.Bj(this.hostElement).querySelector("#share-url").value=J.isSet?_.UK(this.data.shortUrl,"t",J.timestamp):this.data.shortUrl)};
nx.prototype.handleSignalActionCopyShareUrl_=function(J,c){(_.w("killswitch_copy_link_target_check")||_.Bj(this.hostElement).querySelector("#copy-button")===c)&&this.copyUrlToClipboard()};
nx.prototype.copyUrlToClipboard=function(){window.getSelection().removeAllRanges();_.Bj(this.hostElement).querySelector("#share-url").select();document.execCommand("copy")};
nx.prototype.computeStyle_=function(J){return J?J.toLowerCase().replace(/_/g,"-"):""};
_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],nx.prototype,"ytActionHandlerBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],nx.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],nx.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeStyle_(data.style)"}),_.R("design:type",String)],nx.prototype,"rendererStyle",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],nx.prototype,"adaptiveFullWidth",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],nx.prototype,"modernButtons",void 0);_.O([_.U(),_.R("design:type",Object)],nx.prototype,"buttonOverrides",void 0);nx=_.O([_.uM({is:"yt-copy-link-renderer",disableElementRegistration:!0})],nx);
_.v(nx,"yt-copy-link-renderer",function(){if(rpQ===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;w__===void 0&&(w__=document.createElement("template"));var b=w__;m.call(c,b.content.cloneNode(!0),J.content.firstChild);rpQ=J}J=rpQ;return J},{mode:2});_.zH("itemSectionRenderer","toggleFormFieldRenderer","yt-toggle-form-field-renderer");var TT=function(){var J=_.h.apply(this,arguments)||this;J.actionMap={"yt-update-toggle-action":"handleUpdateToggleAction_"};return J};
_.D(TT,_.h);_.V=TT.prototype;_.V.configureRendererStamper=function(){return{"data.footer":{id:"footer-container",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}}}};
_.V.attached=function(){this.keyboardFocused=!1};
_.V.onToggleButtonFocusin_=function(){if(this.useKeyboardFocused){var J=_.BG().resolve(_.y6(_.Js));J&&(this.keyboardFocused=J.isKeyBoardInUse())}};
_.V.onToggleButtonFocusout_=function(){this.keyboardFocused=!1};
_.V.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}};
_.V.onChange_=function(){if(this.data){var J=this.data.toggled?this.data.toggleOnAction:this.data.toggleOffAction;J&&this.ytComponentBehavior.resolveCommand(J);this.data.requireChangeConfirmation&&this.set("data.toggled",!this.data.toggled)}};
_.V.handleUpdateToggleAction_=function(J){(J=_.L(J,b0C))&&this.data&&J.targetId==this.data.targetId&&this.set("data.toggled",J.toggled)};
_.V.toBoolean_=function(J){return!!J};
_.V.reset=function(){};
_.V.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.SJ("data-changed",this.data))};
_.V.updateDataToggledFromBinding=function(J){this.set("data.toggled",J.detail.value)};
TT.prototype.dataChangedForBinding=TT.prototype.dataChangedForBinding;_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],TT.prototype,"ytActionHandlerBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],TT.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],TT.prototype,"ytComponentBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],TT.prototype,"ytRendererBehavior",void 0);
_.O([_.U(),_.R("design:type",Object)],TT.prototype,"data",void 0);_.O([_.U({computed:"computeDescription_(data.*)"}),_.R("design:type",Object)],TT.prototype,"description_",void 0);_.O([_.U({value:function(){return!!_.BG().resolve(_.y6(_.Js))&&_.w("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.R("design:type",Boolean)],TT.prototype,"useKeyboardFocused",void 0);_.O([_.U({value:!1,reflectToAttribute:!0}),_.R("design:type",Boolean)],TT.prototype,"keyboardFocused",void 0);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],TT.prototype,"dataChangedForBinding",null);TT=_.O([_.uM({is:"yt-toggle-form-field-renderer",disableElementRegistration:!0})],TT);
_.v(TT,"yt-toggle-form-field-renderer",function(){if(T5Q===void 0){var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);var c=J.content,m=c.insertBefore;naQ===void 0&&(naQ=document.createElement("template"));var b=naQ;m.call(c,b.content.cloneNode(!0),J.content.firstChild);T5Q=J}J=T5Q;return J},{mode:2});var ska;var Lga;var wY=function(){var J=_.h.apply(this,arguments)||this;J.isDarkTheme=!1;J.isSearch=!1;J.darkerDarkTheme=_.w("web_darker_dark_theme");J.noTopMargin=_.w("kevlar_watch_no_top_margin");J.maskFade=_.w("web_watch_chips_mask_fade");J.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 J};
_.D(wY,_.h);_.V=wY.prototype;_.V.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}}}}}};
_.V.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.V.isSearchChanged=function(){this.hostElement.setAttribute("id",this.isSearch?"search-chip-bar":"")};
_.V.dataChanged=function(){var J=this.getSelectedIndex();if(J>0)this.selected=J;else{this.selected=0;var c,m;(c=this.ytScrollableChipCloudBehavior)==null||(m=c.reset)==null||m.call(c)}};
_.V.getSelectedIndex=function(){var J;if((J=this.data)==null||!J.chips)return-1;J=-1;for(var c,m=0;m<((c=this.data)==null?void 0:c.chips.length);m++){var b=void 0,x=void 0;if((b=this.data)==null?0:(x=b.chips[m].chipCloudChipRenderer)==null?0:x.isSelected){J=m;break}}return J};
_.V.onResize=function(){var J=this.ytScrollableChipCloudBehavior;_.o3(J,J.setContainerWidthDiff);xC(this.ytScrollableChipCloudBehavior)};
_.V.onDarkModeToggledAction=function(J){this.isDarkTheme=J};
_.V.handleRelatedChipCommand=function(J,c){J=this.JSC$14295_chipsSelector.indexOf(c);J!==-1&&this.JSC$14295_chipsSelector.selectIndex(J)};
_.V.handleChipCloudChipSelectAction=function(J){J=this.JSC$14295_chipsSelector.indexOf(J);J>-1&&this.JSC$14295_chipsSelector.selectIndex(J)};
_.V.handleChipCloudChipDeselectAction=function(){var J=this.get("chips.0.chipCloudChipRenderer.navigationEndpoint",this.data);this.JSC$14295_chipsSelector&&((J==null?0:J.continuationCommand)?_.Vq(this.hostElement,[J]):(J==null?0:J.searchEndpoint)?this.ytComponentBehavior.resolveCommand(J):J&&_.PA(this.hostElement,[J],this.hostElement),this.JSC$14295_chipsSelector.selectIndex(0),this.ytScrollableChipCloudBehavior.reset())};
_.V.updateSelectedFromBinding=function(J){this.selected=J.detail.value};
wY.prototype.onResize=wY.prototype.onResize;wY.prototype.dataChanged=wY.prototype.dataChanged;wY.prototype.isSearchChanged=wY.prototype.isSearchChanged;_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],wY.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],wY.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],wY.prototype,"actionHandlerBehavior",void 0);
_.O([_.f(_.rI),_.R("design:type",Object)],wY.prototype,"ironResizableBehavior",void 0);_.O([_.f(),_.R("design:type",bI)],wY.prototype,"ytScrollableChipCloudBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],wY.prototype,"ytComponentBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],wY.prototype,"data",void 0);_.O([_.U({value:0}),_.R("design:type",Number)],wY.prototype,"selected",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],wY.prototype,"isDarkTheme",void 0);_.O([_.U({value:160}),_.R("design:type",Number)],wY.prototype,"scrollDistance",void 0);_.O([_.U(),_.R("design:type",Object)],wY.prototype,"isSearch",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],wY.prototype,"darkerDarkTheme",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],wY.prototype,"noTopMargin",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],wY.prototype,"maskFade",void 0);_.O([_.Iu("#chips"),_.R("design:type",Object)],wY.prototype,"JSC$14295_chipsSelector",void 0);_.O([_.NE("isSearch"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],wY.prototype,"isSearchChanged",null);_.O([_.kr("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],wY.prototype,"dataChanged",null);
_.O([_.ps("iron-resize"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],wY.prototype,"onResize",null);wY=_.O([_.uM({is:"yt-chip-cloud-renderer",disableElementRegistration:!0})],wY);
_.v(wY,"yt-chip-cloud-renderer",function(){if(Lga===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;ska===void 0&&(ska=document.createElement("template"));var b=ska;m.call(c,b.content.cloneNode(!0),J.content.firstChild);Lga=J}J=Lga;return J},{mode:2});var DjZ,WgZ=function(){return DjZ!==void 0?DjZ:DjZ=document.createElement("template")};
document.head.appendChild(WgZ().content);var zxj;var u3C=document.head,fDa=u3C.appendChild,Yda;if(zxj===void 0){var X_j=document.createElement("template");_.z(X_j,"");X_j.content.insertBefore(WgZ().content.cloneNode(!0),X_j.content.firstChild);zxj=X_j}Yda=zxj;fDa.call(u3C,Yda.content);var Zb$=_.Q1(function(J){var c=J.data;return _.C("offer-plan-details-item-view-model",{class:"ytOfferPlanDetailsItemViewModelHost"},_.C("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContainer"},_.C("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContent"},_.C(_.n,{cond:function(){return _.e8(c().image)},
then:function(m){return _.C("div",{class:"ytOfferPlanDetailsItemViewModelLogo"},_.C(_.RA,{data:m,alt:"",className:"ytOfferPlanDetailsItemViewModelLogoImage"}))}}),_.C("div",{class:"ytOfferPlanDetailsItemViewModelTitleText"},_.C(_.j8,{text:function(){return c().title}})),_.C("div",{class:"ytOfferPlanDetailsItemViewModelSubtitleText"},_.C(_.j8,{text:function(){return c().subtitle}})))),_.C(_.n,{cond:function(){var m;
return(m=c())==null?void 0:m.hasBottomDivider},
then:function(){return _.C("div",{class:"ytOfferPlanDetailsItemViewModelDivider"})}}))},"Tb");var qd2=_.Q1(function(J){var c=J.data;return _.C("offer-plan-details-container-view-model",{class:"ytOfferPlanDetailsContainerViewModelHost"},_.C("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanContainer"},_.C(_.wi,{data:function(){var m;return(m=c().offerPlanDetailsItem)!=null?m:[]}},{offerPlanDetailsItemViewModel:function(m){return _.C("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanDetailsItemContainer"},_.C(Zb$,{data:m.data}))}})),_.C("div",null,_.C(_.n,{cond:function(){return c().hasBottomDivider},
then:function(){return _.C("div",{class:"ytOfferPlanDetailsContainerViewModelDividerContainer"},_.C("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}),_.C("div",{class:"ytOfferPlanDetailsContainerViewModelAddIconContainer"},_.C("div",{class:"ytOfferPlanDetailsContainerViewModelAddIcon"},"+")),_.C("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}))}})))},"Ub");var Uja=_.Q1(function(J){var c=J.data;J=_.M(_.K2(!1,void 0,"SpEGQd"));var m=J.next().value,b=J.next().value,x=_.Kq(function(){b(!m());return!1}),P=function(){var p;
return(p=c().offerPlanDetailsContainer)!=null?p:[]};
return _.C("lp-complex-offer-card-details-view-model",null,_.C("div",null,_.C(_.n,{cond:function(){return m()},
then:function(){return _.C("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandedDetails"},_.C("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelExpandedTitle","on:click":x,"aria-expanded":m},_.C(_.j8,{text:function(){return c().expandedTitle}})),_.C("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainers"},_.C(_.wi,{data:P},{offerPlanDetailsContainerViewModel:function(p){return _.C("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainer"},
_.C(qd2,{data:p.data}))}})),_.C("div",{class:"ytLpComplexOfferCardDetailsViewModelLegalText"},_.C(_.j8,{text:function(){return c().legalText}})))},
else:function(){return _.C("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelCollapsedDetails","on:click":x,"aria-expanded":m},_.C(_.j8,{text:function(){return c().collapsedTitle}}),_.C("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandIconContainer"},_.C(_.HP,{icon:"EXPAND_MORE".toString(),
ariaHidden:!0})))}})))},"Vb");var SdL=_.Q1(function(J){var c=J.data;return _.C("lp-complex-offer-card-option-view-model",null,_.C("div",{class:"ytLpComplexOfferCardOptionViewModelCardContainer"},_.C(_.n,{cond:function(){return c().topDividerText},
then:function(){return _.C("div",{class:"ytLpComplexOfferCardOptionViewModelDividerContainer"},_.C("div",{class:"ytLpComplexOfferCardOptionViewModelDivider"}),_.C("div",{class:"ytLpComplexOfferCardOptionViewModelDividerTextContainer"},_.C("div",{class:"ytLpComplexOfferCardOptionViewModelDividerText"},_.C(_.j8,{text:function(){return c().topDividerText}}))))}}),_.C(_.n,{cond:function(){return c().planPricingPrimary},
then:function(){return _.C("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingPrimary"},_.C(_.j8,{text:function(){return c().planPricingPrimary}}))}}),_.C(_.n,{cond:function(){return c().planPricingSecondary},
then:function(){return _.C("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingSecondary"},_.C(_.j8,{text:function(){return c().planPricingSecondary}}))}}),_.C(_.n,{cond:function(){return c().primaryButton},
then:function(){return _.C("div",{class:"ytLpComplexOfferCardOptionViewModelPrimaryButtonContainer"},_.C(_.wi,{data:function(){return c().primaryButton}},{buttonViewModel:function(m){return _.C(_.XU,{data:m.data,
className:"ytLpComplexOfferCardOptionViewModelPrimaryButton"})}}))}})))},"Wb");var hxa=_.Q1(function(J){var c=J.data;var m=function(){var P;return((P=c())==null?void 0:P.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
J={};var b={},x={};return _.C("ytm-lp-complex-offer-card-view-model",null,_.C("div",{class:"ytmLpComplexOfferCardViewModelHost"},_.C("div",{class:_.pq((J.ytmLpComplexOfferCardViewModelCardContainerAlignLeft=m,J),"ytmLpComplexOfferCardViewModelCardContainer")},_.C(_.n,{cond:function(){var P;return(P=c())==null?void 0:P.bannerText},
then:function(){return _.C("div",{class:"ytmLpComplexOfferCardViewModelBannerTextContainer"},_.C("div",{class:"ytmLpComplexOfferCardViewModelBannerText"},_.C(_.j8,{text:function(){return c().bannerText}})))}}),_.C(_.n,{cond:function(){return _.e8(c().logo)},
then:function(P){var p={};return _.C("div",{class:_.pq((p.ytmLpComplexOfferCardViewModelLogoAlignLeft=m,p),"ytmLpComplexOfferCardViewModelLogo")},_.C(_.RA,{data:P,alt:"",className:"ytmLpComplexOfferCardViewModelLogoImage"}))}}),_.C("div",{class:_.pq((b.ytmLpComplexOfferCardViewModelTitleAlignLeft=m,b),"ytmLpComplexOfferCardViewModelTitle")},_.C(_.j8,{text:function(){return c().title}})),_.C(_.n,{cond:function(){var P;
return(P=c())==null?void 0:P.subtitle},
then:function(){var P={};return _.C("div",{class:_.pq((P.ytmLpComplexOfferCardViewModelSubtitleAlignLeft=m,P),"ytmLpComplexOfferCardViewModelSubtitle")},_.C(_.j8,{text:function(){return c().subtitle}}))}}),_.C(_.n,{cond:function(){return c().planPricingPrimary},
then:function(){return _.C("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingPrimary"},_.C(_.j8,{text:function(){return c().planPricingPrimary}}))}}),_.C(_.n,{cond:function(){return c().planPricingSecondary},
then:function(){return _.C("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingSecondary"},_.C(_.j8,{text:function(){return c().planPricingSecondary}}))}}),_.C(_.n,{cond:function(){return c().purchaseButton},
then:function(){return _.C("div",{class:"ytmLpComplexOfferCardViewModelPurchaseButtonContainer"},_.C(_.wi,{data:function(){return c().purchaseButton}},{buttonViewModel:function(P){return _.C(_.XU,{data:P.data,
className:"ytmLpComplexOfferCardViewModelPurchaseButton"})}}))}}),_.C(_.n,{cond:function(){var P;
return(P=c())==null?void 0:P.offerOptions},
then:function(){return _.C("div",{class:"ytmLpComplexOfferCardViewModelOfferOptions"},_.C(_.wi,{data:function(){return c().offerOptions}},{lpComplexOfferCardOptionViewModel:SdL}))}}),_.C("div",{class:_.pq((x.ytmLpComplexOfferCardViewModelLegalTextAlignLeft=m,x),"ytmLpComplexOfferCardViewModelLegalText")},_.C(_.j8,{text:function(){return c().legalText}})),_.C(_.n,{cond:function(){var P;
return(P=c())==null?void 0:P.offerCardDetails},
then:function(){return _.C("div",{class:"ytmLpComplexOfferCardViewModelOfferCardDetails"},_.C(_.wi,{data:function(){return c().offerCardDetails}},{lpComplexOfferCardDetailsViewModel:Uja}))}}))))},"Xb");var djL=_.Q1(function(J){var c=J.data;var m=function(){var p;return((p=c())==null?void 0:p.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
J={};var b={},x={},P={};return _.C("ytm-lp-complex-offer-card-section-view-model",null,_.C("div",{class:_.pq("ytmLpComplexOfferCardSectionViewModelHost")},_.C("div",{class:_.pq((J.ytmLpComplexOfferCardSectionViewModelSectionContainerAlignLeft=m,J),"ytmLpComplexOfferCardSectionViewModelSectionContainer")},_.C("div",{class:_.pq((b.ytmLpComplexOfferCardSectionViewModelTitleContainerAlignLeft=m,b),"ytmLpComplexOfferCardSectionViewModelTitleContainer")},_.C("h2",{class:_.pq((x.ytmLpComplexOfferCardSectionViewModelTitleTextAlignLeft=
m,x),"ytmLpComplexOfferCardSectionViewModelTitleText")},_.C(_.j8,{text:function(){return c().title}}))),_.C(_.n,{cond:function(){var p;
return(p=c())==null?void 0:p.subtitle},
then:function(){var p={},t={};return _.C("div",{class:_.pq((p.ytmLpComplexOfferCardSectionViewModelSubtitleContainerAlignLeft=m,p),"ytmLpComplexOfferCardSectionViewModelSubtitleContainer")},_.C("div",{class:_.pq((t.ytmLpComplexOfferCardSectionViewModelSubtitleTextAlignLeft=m,t),"ytmLpComplexOfferCardSectionViewModelSubtitleText")},_.C(_.j8,{text:function(){return c().subtitle}})))}}),_.C("div",{class:_.pq((P.ytmLpComplexOfferCardSectionViewModelOfferCardsContainerAlignLeft=m,P),"ytmLpComplexOfferCardSectionViewModelOfferCardsContainer")},
_.C(_.wi,{data:function(){var p;
return(p=c().offerPlans)!=null?p:[]}},{lpComplexOfferCardViewModel:function(p){return _.C("div",{class:"ytmLpComplexOfferCardSectionViewModelOfferCardContainer"},_.C(hxa,{data:p.data}))}})))))},"Yb");var $jB=_.Q1(function(J){return _.C("lp-coupon-banner-view-model",{class:"ytLpCouponBannerViewModelHost"},_.C("div",{class:"ytLpCouponBannerViewModelIcon"},_.C(_.HP,{icon:function(){return"price_tag"}})),_.C("div",{class:"ytLpCouponBannerViewModelOuterContainer"},_.C("div",{class:"ytLpCouponBannerViewModelContent"},_.C("div",{class:"ytLpCouponBannerViewModelHeading"},_.C(_.j8,{text:function(){var c;
return(c=J.data())==null?void 0:c.title}})),_.C("div",{class:"ytLpCouponBannerViewModelBody"},_.C(_.j8,{text:function(){var c;
return(c=J.data())==null?void 0:c.subtitle}})))))},"Zb");
$jB.idomCompat=!0;_.rY=nB2.getInstance();var GCZ=_.Q1(function(J){return _.C("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-question","aria-hidden":J.shouldAriaHideContent},_.C("h2",{class:"yt-lp-faq-entry-view-model__lp-faq-question",id:J.questionId},_.C(_.j8,{text:J.question})))},"$b"),EaQ=_.Q1(function(J){var c=J.data;
var m=J.themeOverride;J=_.M(_.K2(!1,void 0,"ljTVPd"));var b=J.next().value,x=J.next().value;J=_.Kq(function(){x(!b());return!1});
var P=function(){return b()?"EXPAND_LESS":"EXPAND_MORE"},p=("faq-container"+_.Df(_.rY)).toString(),t="faq-question-and-answers-section-question"+_.Df(_.rY),I={},a={};
return _.C("faq-entry-view-model-c3",null,_.C("div",{class:_.pq("yt-lp-faq-entry-view-model",(I["yt-lp-faq-entry-view-model--premium-force-dark-mode"]=function(){return m==null?void 0:m().useDarkTheme},I))},_.C("div",{class:"yt-lp-faq-entry-view-model__faq-question-and-answers-section",
"on:click":J,role:"button","aria-expanded":b,"aria-labelledby":t.toString(),"tab-index":"0"},_.C(GCZ,{question:function(){return c().question},
questionId:t,shouldAriaHideContent:!0}),_.C(_.n,{cond:function(){return b()!==void 0},
then:function(){return _.C("div",{class:"yt-lp-faq-entry-view-model__icon-container"},_.C(_.HP,{icon:P,ariaHidden:!0}),_.C("div",{class:"yt-lp-faq-entry-view-model__icon-hover-highlighting"}))}})),_.C("div",{class:_.pq("yt-lp-faq-entry-view-model__lp-faq-section-faqs-outer-answer",(a["yt-lp-faq-entry-view-model__lp-faq-section-faqs-outer-answer--collapsed"]=function(){return!b()},a))},_.C("div",{id:p},_.C(_.Te,{each:function(){return c().answers||[]}},function(k){return _.C("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-answer"},
_.C(_.j8,{text:k}))})))))},"ac");
EaQ.idomCompat=!0;var vaZ=_.Q1(function(J){var c=J.data;var m=J.themeOverride;J={};return _.C("lp-faq-section-view-model-c3",null,_.C("div",{class:_.pq("yt-lp-faq-section-view-model",(J["yt-lp-faq-section-view-model--ptc-layout-type"]=function(){return c().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},J["yt-lp-faq-section-view-model--premium-force-dark-mode"]=function(){return!(m==null||!m().useDarkTheme)},J))},_.C("div",{class:"yt-lp-faq-section-view-model__faq-container"},_.C(_.n,{cond:function(){return c().header},
then:function(b){return _.C("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-header"},_.C(_.j8,{text:b}))}}),_.C("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-faqs"},_.C(_.wi,{data:function(){return c().faqs}},{faqEntryViewModel:function(b){return _.C(EaQ,{data:b.data,
themeOverride:m})}})),_.C("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-footers"},_.C(_.Te,{each:function(){return c().footers||[]}},function(b){return _.C(_.j8,{text:b})})),_.C(_.n,{cond:function(){return c().legal},
then:function(b){return _.C("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-legal"},_.C(_.j8,{text:b}))}}))))},"bc");
vaZ.idomCompat=!0;var Ob_=_.Q1(function(J){var c=J.data;var m=J.themeOverride;_.uN(function(){var p=c().gtmId;p&&_.n9(p,_.Ub("GL",""))});
var b={contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var p,t,I;return(I=(p=c().logo)==null?void 0:(t=p.accessibilityData)==null?void 0:t.label)!=null?I:""},
targetWidth:140,targetHeight:40,height:40,className:"lp-header-section-view-model__lp-header-logo",useWidth:!1},x=_.BG().resolve(_.y6(_.Ev)),P=function(){return x&&x()||(m==null?void 0:m().useDarkTheme)};
return _.C("lp-header-section-view-model",null,_.C("div",{class:function(){var p=c().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC",t=c().marginType==="LP_SECTION_MARGIN_TYPE_TOP",I=m==null?void 0:m().useDarkTheme,a=["lp-header-section-view-model"];p&&a.push("lp-header-section-view-model--ptc-layout-type");t&&a.push("lp-header-section-view-model__lp-header-section-margin");I&&a.push("lp-header-section-view-model--premium-force-dark-mode");return a.join(" ")}},_.C(_.n,{cond:function(){return c().logo},
then:function(){return _.C("div",null,_.C(_.n,{cond:P,then:function(){return _.C(_.n,{cond:function(){var p;return(p=c().logo)==null?void 0:p.imageDark},
then:function(p){return _.C(_.RA,Object.assign({},{data:p},b))}})},
else:function(){return _.C(_.n,{cond:function(){var p;return(p=c().logo)==null?void 0:p.imageLight},
then:function(p){return _.C(_.RA,Object.assign({},{data:p},b))}})}}))}}),_.C(_.n,{cond:function(){return c().title},
then:function(p){return _.C("div",{class:"lp-header-section-view-model__lp-header-title"},_.C(_.j8,{text:p}))}}),_.C("div",{class:"lp-header-section-view-model__lp-header-subtitle-section"},_.C(_.n,{cond:function(){return c().subtitles},
then:function(p){return _.C(_.Te,{each:p},function(t){return _.C("div",{class:"lp-header-section-view-model__lp-header-subtitle-line"},_.C(_.j8,{text:t}))})}})),_.C(_.n,{cond:function(){return c().additionalInfo},
then:function(p){return _.C("div",{class:"lp-header-section-view-model__lp-header-additional-info"},_.C(_.j8,{text:p}))}}),_.C("div",{class:"lp-header-section-view-model__lp-header-button-section"},_.C(_.n,{cond:function(){return c().primaryButton},
then:function(p){return _.C("div",{class:"lp-header-section-view-model__lp-header-primary-button"},_.C(_.wi,{data:p},{buttonViewModel:_.XU}))}}),_.C(_.n,{cond:function(){return c().secondaryButton},
then:function(p){return _.C("div",{class:"lp-header-section-view-model__lp-header-secondary-button"},_.C(_.wi,{data:p},{buttonViewModel:_.XU}))}})),_.C(_.n,{cond:function(){return c().otherOffersInfo},
then:function(p){return _.C("div",{class:"lp-header-section-view-model__lp-header-other-offers-info"},_.C(_.j8,{text:p}))}}),_.C("div",{class:"lp-header-section-view-model__lp-header-billing-info"},_.C(_.n,{cond:function(){return c().billingInfo},
then:function(p){return _.C(_.Te,{each:p},function(t){return _.C("div",null,_.C(_.j8,{text:t}))})}}))))},"cc");
Ob_.idomCompat=!0;var ApQ=_.Q1(function(J){var c=J.data;var m=_.Ru(J.themeOverride,{useDarkTheme:!1});J={};J=_.pq("ytm-lp-headline-section-view-model",(J["ytm-lp-headline-section-view-model--premium-force-dark-mode"]=function(){return m().useDarkTheme},J));
return _.C("lp-headline-section-view-model",null,_.C("div",{class:J},_.C("div",{class:"ytm-lp-headline-section-view-model__title-text"},_.C(_.j8,{text:function(){return c().title}})),_.C(_.n,{cond:function(){return c().subtitle},
then:function(b){return _.C("div",{class:"ytm-lp-headline-section-view-model__subtitle-text"},_.C(_.j8,{text:b}))}})))},"dc");var RxQ=_.Q1(function(J){var c=J.data;var m=J.themeOverride;var b=_.BG().resolve(_.y6(_.Ev)),x=function(){return b&&b()||(m==null?void 0:m().useDarkTheme)},P=function(){var a,k;
var H=x()?(a=c().textBackgroundImage)==null?void 0:a.imageDark:(k=c().textBackgroundImage)==null?void 0:k.imageLight;return PwQ((H==null?void 0:H.sources)||[])},p=function(){var a,k;
return x()?(a=c().featureImage)==null?void 0:a.imageDark:(k=c().featureImage)==null?void 0:k.imageLight},t=function(){return c().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC"?"CONTENT_MODE_SCALE_ASPECT_FILL":"CONTENT_MODE_SCALE_ASPECT_FIT"},I=function(){var a,k;
return x()?(a=c().logo)==null?void 0:a.imageDark:(k=c().logo)==null?void 0:k.imageLight};
return _.C("ytm-lp-large-feature-section-view-model",null,_.C("div",{class:function(){var a=c().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC",k=c().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_PTC",H=(c().index||0)%2===1,T=m==null?void 0:m().useDarkTheme,r=["yt-lp-large-feature-section-view-model"];a?r.push("yt-lp-large-feature-section-view-model--music-feature-type"):k?r.push("yt-lp-large-feature-section-view-model--ptc-feature-type"):H||r.push("yt-lp-large-feature-section-view-model--block-feature-type-2");
T&&r.push("yt-lp-large-feature-section-view-model--premium-force-dark-mode");return r.join(" ")}},_.C("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container"},_.C(_.n,{cond:p,
then:function(){return _.C(_.RA,{data:function(){return p()},
alt:function(){var a,k,H;return(H=(a=c().featureImage)==null?void 0:(k=a.accessibilityData)==null?void 0:k.label)!=null?H:""},
contentMode:t})}})),_.C("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container",
style:function(){var a;return((a=P())==null?0:a.url)?"background-image: url("+_.n1(P().url)+");":""}},_.C("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-text-container"},_.C(_.n,{cond:I,
then:function(){return _.C(_.RA,{data:function(){return I()},
alt:function(){var a,k,H;return(H=(a=c().logo)==null?void 0:(k=a.accessibilityData)==null?void 0:k.label)!=null?H:""},
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"})}}),_.C(_.n,{cond:function(){return c().eyebrowText},
then:function(){return _.C("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-eyebrow-text"},_.C(_.j8,{text:function(){return c().eyebrowText}}))}}),_.C(_.n,{cond:function(){return c().title},
then:function(){return _.C("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-title"},_.C(_.j8,{text:function(){return c().title}}))}}),_.C(_.n,{cond:function(){return c().subtitles},
then:function(){return _.C("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-subtitles"},_.C(_.Te,{each:function(){return c().subtitles||[]}},function(a){return _.C(_.j8,{text:a})}))}})))))},"ec");
RxQ.idomCompat=!0;var oaQ=_.Q1(function(J){return _.C("yt-lp-feature-list-item-view-model",{class:"ytLpFeatureListItemViewModelHost"},_.C("div",{class:"ytLpFeatureListItemViewModelFeatureList"},_.C(_.HP,{icon:function(){var c;return(c=J.data())==null?void 0:c.iconType},
className:function(){var c;return((c=J.data())==null?void 0:c.style)==="LP_FEATURE_LIST_ITEM_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT"?"ytLpFeatureListItemViewModelFeatureListIconGreen":"ytLpFeatureListItemViewModelFeatureListIconDefault"}}),_.C("div",{class:"ytLpFeatureListItemViewModelFeatureListText"},_.C(_.j8,{text:function(){var c;
return(c=J.data())==null?void 0:c.text}}))))},"fc");var Qkz=_.Q1(function(J){J=_.ou(J,{config:void 0,themeOverride:void 0});var c=J.data,m=J.config,b=J.themeOverride;J={};J=_.pq("ytm-lp-offer-card-option-view-model",(J["ytm-lp-offer-card-option-view-model--premium-force-dark-mode"]=function(){var t;return(t=b())==null?void 0:t.useDarkTheme},J));
var x=_.Kq(function(){var t,I;(t=m())==null||(I=t.handleRadioButtonClick)==null||I.call(t,c());return!1}),P=function(){var t;
return(t=m())==null?void 0:t.shouldDisplayRadioButton},p=function(){var t;
return(t=c().featureListItems)!=null?t:[]};
return _.C("ytm-lp-offer-card-option-view-model",null,_.C("div",{class:J,"on:click":_.Kq(function(){if(P()){var t,I;(t=m())==null||(I=t.handleRadioButtonClick)==null||I.call(t,c())}return!1})},_.C(_.n,{cond:P,
then:function(){return _.C("div",null,_.C("input",{type:"radio","on:click":x,class:"ytm-lp-offer-card-option-view-model__input-el","prop:checked":function(){var t;return!((t=m())==null||!t.isOptionSelected)}}))}}),_.C("div",null,_.C("div",{class:"ytm-lp-offer-card-option-view-model__eyebrow-text"},_.C(_.j8,{text:function(){return c().eyebrowText}})),_.C("div",{class:"ytm-lp-offer-card-option-view-model__title"},_.C(_.j8,{text:function(){return c().title}})),_.C("div",{class:"ytm-lp-offer-card-option-view-model__subtitle"},
_.C(_.j8,{text:function(){return c().subtitle}})),_.C(_.n,{cond:function(){return p().length>0},
then:function(){return _.C("div",{class:"ytm-lp-offer-card-option-view-model__feature-list-items"},_.C(_.wi,{data:p},{lpFeatureListItemViewModel:oaQ}))}}),_.C("div",{class:"ytm-lp-offer-card-option-view-model__description"},_.C(_.j8,{text:function(){return c().description}})))))},"gc");
Qkz.idomCompat=!0;var exC=_.Q1(function(J){var c=J.data;var m=J.themeOverride;J=_.M(_.aO(function(){var P,p=(P=c().offerOptions)==null?void 0:P[0];return _.L(p,C4a)||{}}));
var b=J.next().value,x=J.next().value;J={};return _.C("ytm-lp-offer-card-view-model",null,_.C("div",{class:_.pq("ytm-lp-offer-card-view-model",(J["ytm-lp-offer-card-view-model--premium-force-dark-mode"]=function(){return!(m==null||!m().useDarkTheme)},J))},_.C("div",{class:"ytm-lp-offer-card-view-model__title-container"},_.C(_.n,{cond:function(){return c().titleIconType},
then:function(){return _.C("div",{class:"ytm-lp-offer-card-view-model__icon-container"},_.C(_.HP,{icon:function(){var P;return((P=c().titleIconType)==null?void 0:P.toString())||""}}))}}),_.C("div",{class:"ytm-lp-offer-card-view-model__title-text"},_.C(_.j8,{text:function(){return c().title}})),_.C(_.wi,{data:function(){return c().titleBadge}},{badgeViewModel:function(P){return _.C("div",{class:"ytm-lp-offer-card-view-model__title-badge"},_.C(_.Fo,{data:P.data}))}})),_.C("div",{class:"ytm-lp-offer-card-view-model__offer-options-container"},
_.C(_.wi,{data:function(){return c().offerOptions}},{lpOfferCardOptionViewModel:function(P){var p=P.data;
return _.C(_.cG,null,_.C("div",{class:"ytm-lp-offer-card-view-model__divider"}),_.C(Qkz,{data:p,config:function(){var t;return{shouldDisplayRadioButton:(c().offerOptions||[]).length>1,isOptionSelected:p().id===((t=b())==null?void 0:t.id),handleRadioButtonClick:function(I){return void x(I)}}},
themeOverride:m}))}})),_.C("div",{class:"ytm-lp-offer-card-view-model__purchase-button-container"},_.C(_.wi,{data:function(){var P;
return(P=b())==null?void 0:P.purchaseButtonOverride}},{buttonViewModel:_.XU}))))},"hc");
exC.idomCompat=!0;var jk$=_.Q1(function(J){var c=J.data;var m=J.themeOverride;J={};J=_.pq("ytm-lp-offer-card-section-view-model",(J["ytm-lp-offer-card-section-view-model--premium-force-dark-mode"]=function(){var b;return m==null?void 0:(b=m())==null?void 0:b.useDarkTheme},J));
return _.C("ytm-lp-offer-card-section-view-model",null,_.C("div",{class:J},_.C(_.n,{cond:function(){return c().title!==void 0},
then:function(){return _.C("div",{class:"ytm-lp-offer-card-section-view-model__title-container"},_.C("div",{class:"ytm-lp-offer-card-section-view-model__title-text"},_.C(_.j8,{text:function(){return c().title}})),_.C(_.n,{cond:function(){return c().subtitle},
then:function(){return _.C("div",{class:"ytm-lp-offer-card-section-view-model__subtitle-text"},_.C(_.j8,{text:function(){return c().subtitle}}))}}))}}),_.C("div",{class:"ytm-lp-offer-card-section-view-model__offer-cards-container"},_.C(_.wi,{data:function(){return c().offerCards}},{lpOfferCardViewModel:function(b){return _.C("div",{class:"ytm-lp-offer-card-section-view-model__offer-card-container"},_.C(exC,{data:b.data,
themeOverride:m}))}})),_.C(_.n,{cond:function(){return c().footer},
then:function(){return _.C("div",{class:"ytm-lp-offer-card-section-view-model__footer-text"},_.C(_.j8,{text:function(){return c().footer}}))}})))},"ic");var Fgz=_.Q1(function(J){var c=J.data;return _.C("lp-offer-table-cell-content-view-model",null,_.C("div",{class:"yt-lp-offer-table-cell-content-view-model"},_.C(_.sb,null,_.C(_.wu,{when:function(){return c().title}},function(){return _.C(_.j8,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-title",
text:function(){return c().title}})}),_.C(_.wu,{when:function(){return c().subTitle}},function(){return _.C(_.j8,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-subtitle",
text:function(){return c().subTitle}})}),_.C(_.wu,{when:function(){return c().featureDescription}},function(){return _.C(_.j8,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-feature-description",
text:function(){return c().featureDescription}})}),_.C(_.wu,{when:function(){return c().description}},function(){return _.C(_.j8,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-description",
text:function(){return c().description}})}),_.C(_.wu,{when:function(){return c().iconType}},function(){return _.C("div",{class:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-icon"},_.C(_.HP,{icon:function(){return c().iconType.toString()}}))}),_.C(_.wu,{when:function(){return c().purchaseButton}},function(){return _.C(_.wi,{data:function(){return c().purchaseButton}},{buttonViewModel:function(m){return _.C("div",{class:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-purchase-button"},
_.C(_.XU,{data:m.data}))}})}),_.C(_.wu,{when:function(){return c().note}},function(){return _.C(_.j8,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-note",
text:function(){return c().note}})}),_.C(_.wu,{when:function(){return c().featureDetail}},function(){return _.C(_.j8,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-feature-detail",
text:function(){return c().featureDetail}})}),_.C(_.wu,{when:function(){return c().badge}},function(){return _.C(_.wi,{data:function(){return c().badge}},{badgeViewModel:_.Fo})}))))},"jc");
Fgz.idomCompat=!0;var lDC=_.Q1(function(J){var c=J.data;return _.C("lp-offer-table-cell-view-model",null,_.C("div",{class:"ytLpOfferTableCellViewModelCellWrapper",style:function(){switch(c().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;"}}},_.C(_.wi,{data:function(){return c().contents}},{lpOfferTableCellContentViewModel:Fgz})))},
"kc");
lDC.idomCompat=!0;var ypz=_.Q1(function(J){var c=J.data;var m=J.lpTableIsFirstRow;var b=J.lpTableIsLastRow;var x=function(){return(m==null?0:m())?"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"},P=function(){return(m==null?0:m())?"yt-lp-offer-table-row-view-model__lp-offer-table-first-row-content-cell":(b==null?0:b())?"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 _.C("ytm-lp-offer-table-row-view-model",null,_.C("div",{class:"yt-lp-offer-table-row-view-model"},_.C(_.wi,{data:function(){return c().rowHeaderCell}},{lpOfferTableCellViewModel:function(p){return _.C("div",{class:x},_.C(lDC,{data:p.data}))}}),_.C(_.wi,{data:function(){return c().contentCells}},{lpOfferTableCellViewModel:function(p){return _.C("div",{class:P},_.C(lDC,{data:p.data}))}})))},"lc");
ypz.idomCompat=!0;var B5j=_.Q1(function(J){var c=J.data;var m=J.themeOverride;var b=_.BG().resolve(_.y6(_.Ev)),x=function(){return _.L(c().logo,uI$)||{}};
J={};return _.C("ytm-lp-offer-table-section-view-model",null,_.C("div",{class:"yt-lp-offer-table-view-model"},_.C(_.n,{cond:function(){var P,p;return b&&b()||(m==null?0:m().useDarkTheme)?(P=x())==null?void 0:P.imageDark:(p=x())==null?void 0:p.imageLight},
then:function(P){return _.C(_.RA,{data:P,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var p,t,I;return(I=(p=x())==null?void 0:(t=p.accessibilityData)==null?void 0:t.label)!=null?I:""},
targetWidth:140,targetHeight:40,height:40,className:"yt-lp-offer-table-view-model__lp-offer-table-section-logo",useWidth:!1})}}),_.C("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-title"},_.C(_.j8,{text:function(){return c().title}})),_.C("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-subtitle"},_.C(_.j8,{text:function(){return c().subtitle}})),_.C(_.n,{cond:function(){return c().disclaimers},
then:function(P){return _.C("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-disclaimers"},_.C(_.Te,{each:P},function(p){return _.C("div",null,_.C(_.j8,{text:p}))}))}}),_.C("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-rows"},_.C(_.wi,{data:function(){return c().rows}},{lpOfferTableRowViewModel:function(P,p){return _.C(ypz,{data:P.data,
lpTableIsFirstRow:function(){return p()===0},
lpTableIsLastRow:function(){return p()===c().rows.length-1}})}})),_.C("div",{class:_.pq((J["yt-lp-offer-table-view-model__lp-offer-table-section-footer-wrapper"]=function(){return c().hasFooterBackground},J))},_.C(_.n,{cond:function(){return c().footer},
then:function(){return _.C("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer"},_.C(_.j8,{text:function(){return c().footer}}))}}),_.C(_.n,{cond:function(){return c().footerTitle},
then:function(){return _.C("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer-title"},_.C(_.j8,{text:function(){return c().footerTitle}}))}}),_.C(_.n,{cond:function(){return c().footerDescription},
then:function(){return _.C("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer-description"},_.C(_.j8,{text:function(){return c().footerDescription}}))}}))))},"mc");
B5j.idomCompat=!0;var gaZ=_.Q1(function(J){var c=J.data;var m=J.themeOverride;var b=_.BG().resolve(_.y6(_.Ev)),x=function(){var t;return m==null?void 0:(t=m())==null?void 0:t.useDarkTheme},P=function(){var t,I;
return b&&b()||x()?(t=c().image)==null?void 0:t.imageDark:(I=c().image)==null?void 0:I.imageLight};
J={};J=_.pq("ytm-lp-small-feature-section-view-model",(J["ytm-lp-small-feature-section-view-model--premium-force-dark-mode"]=x,J));var p=function(){var t,I,a;return(a=(t=c().image)==null?void 0:(I=t.accessibilityData)==null?void 0:I.label)!=null?a:""};
return _.C("ytm-lp-small-feature-section-view-model",{class:J},_.C(_.n,{cond:function(){return P()&&!Hpq},
then:function(){return _.C("div",{class:"ytm-lp-small-feature-section-view-model__feature-image-container"},_.C(_.RA,{data:function(){return P()},
alt:p,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",renderLazy:!1}))}}),_.C("div",{class:"ytm-lp-small-feature-section-view-model__content-section"},_.C("div",{class:"ytm-lp-small-feature-section-view-model__title-text"},_.C(_.n,{cond:function(){return c().title},
then:function(t){return _.C(_.j8,{text:t})}})),_.C("div",{class:"ytm-lp-small-feature-section-view-model__description-text"},_.C(_.j8,{text:function(){return c().description}}))))},"nc");
gaZ.idomCompat=!0;var Jo_=_.Q1(function(J){var c=J.data;var m=J.themeOverride;J={};return _.C("ytm-lp-small-feature-section-group-view-model",null,_.C("div",{class:_.pq("ytm-lp-small-feature-section-group-view-model",(J["ytm-lp-small-feature-section-group-view-model--premium-force-dark-mode"]=function(){return!(m==null||!m().useDarkTheme)},J))},_.C("div",{class:"ytm-lp-small-feature-section-group-view-model__small-features-container"},_.C(_.wi,{data:function(){return c().smallFeatures}},{lpSmallFeatureSectionViewModel:function(b){return _.C("div",
{class:"ytm-lp-small-feature-section-group-view-model__small-feature-container"},_.C(gaZ,{data:b.data,
themeOverride:m}))}}))))},"oc");
Jo_.idomCompat=!0;_.lv(_.Q1(function(J){var c=J.data;var m=function(){return c().forcedTheme==="USER_INTERFACE_THEME_DARK"},b=function(){return c().backgroundImageType==="LP_SECTION_BACKGROUND_TYPE_PHOTO"},x=function(){var p="",t,I;
var a=_.BG().resolve(_.y6(_.Ev));a=m()||(a==null?0:a())?(t=c().themedImageViewModel)==null?void 0:t.imageDark:(I=c().themedImageViewModel)==null?void 0:I.imageLight;(t=PwQ((a==null?void 0:a.sources)||[]))&&t.url&&(p=b()?"background-image: linear-gradient(to bottom, transparent, "+(c().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"?"40%":"70%")+", var(--premium-yt-spec-base-background)), url("+_.n1(t.url)+");":"background-image: url("+_.n1(t.url)+");");return p},P=function(){return{useDarkTheme:m()}};
J={};return _.C("yt-section-group-view-model",null,_.C("div",{class:_.pq("yt-lp-section-group-view-model",(J["yt-lp-section-group-view-model--premium-force-dark-mode"]=m,J["yt-lp-section-group-view-model--ptc-layout-type"]=function(){return c().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},J))},_.C(_.n,{cond:function(){return x().length},
then:function(){var p={};return _.C("div",{class:_.pq("yt-lp-section-group-view-model__bg-image",(p["yt-lp-section-group-view-model__bg-image--bg-image-photo"]=b,p)),style:x})}}),_.C("div",{class:"yt-lp-section-group-view-model__lp-section-group"},_.C(_.wi,{data:function(){return c().sections}},{lpFaqSectionViewModel:function(p){return _.C(vaZ,{data:p.data,
themeOverride:P})},
lpHeaderSectionViewModel:function(p){return _.C(Ob_,{data:p.data,themeOverride:P})},
lpHeadlineSectionViewModel:function(p){return _.C(ApQ,{data:p.data,themeOverride:P})},
lpLargeFeatureSectionViewModel:function(p){return _.C(RxQ,{data:p.data,themeOverride:P})},
lpOfferCardSectionViewModel:function(p){return _.C(jk$,{data:p.data,themeOverride:P})},
lpComplexOfferCardSectionViewModel:function(p){return _.C(djL,{data:p.data})},
lpOfferTableSectionViewModel:function(p){return _.C(B5j,{data:p.data,themeOverride:P})},
lpSmallFeatureSectionGroupViewModel:function(p){return _.C(Jo_,{data:p.data,themeOverride:P})},
lpCouponBannerViewModel:function(p){return _.C($jB,{data:p.data})}}))))},"pc"),"yt-section-group-view-model",{props:{data:_.vt}});var Opf=new Set([void 0,"CHIP_VIEW_MODEL_DISPLAY_TYPE_UNSPECIFIED","CHIP_VIEW_MODEL_DISPLAY_TYPE_NO_ICON"]);_.coB=_.Q1(function(J){function c(){if(Opf.has(J.data().displayType)){var a=!b(),k;if((k=J.disableDeselection)==null||!k.call(J)||a){J.data().selected=a;k=Object.assign({},p(),{selected:a});t(k);var H;(H=J.callback)==null||H.call(J,k,a)}}}
var m=_.oN("chip-view-model"),b=function(){var a,k;return!!(((a=J.selected)==null?void 0:a.call(J))!==void 0?(k=J.selected)==null?0:k.call(J):p().selected)},x=_.M(_.aO(J.data)),P=x.next().value;
x=x.next().value;var p=P,t=x,I=_.tT(vFu,function(){return J.data().chipEntityKey||""});
return _.C("chip-view-model",{class:"ytChipViewModelHost",el:m},_.C($NQ,{data:function(){var a,k=Object.assign({},p(),{selected:b()}),H=I(),T=(a=J.disableDeselection)==null?void 0:a.call(J);a:switch(k.displayType){case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN":case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN_WITH_CLEAR":a=1;break a;default:a=0}return{text:(H==null?void 0:H.text)||k.text,state:k.disabled?1:k.selected?0:2,type:a,onTap:ArD(k,m,c,T),accessibilityLabel:k.accessibilityLabel||k.text}}}))},"qc");
_.coB.idomCompat={callbacks:{callback:!0}};_.mQj=_.Q1(function(J){var c=_.tT(EFD,function(){var p;return(p=J.data())==null?void 0:p.chipBarStateEntityKey}),m=function(){return J.data().disableDeselection},b=_.M(_.aO(function(){var p;
if(((p=c())==null?void 0:p.selectedIndex)!=void 0)return c().selectedIndex;var t,I;p=_.M(((t=J.data())==null?void 0:(I=t.chips)==null?void 0:I.entries())||[]);for(t=p.next();!t.done;t=p.next()){t=_.M(t.value);I=t.next().value;t=t.next().value;var a=void 0;if((a=_.L(t,_.ZA))==null?0:a.selected)return I}return-1})),x=b.next().value,P=b.next().value;
return _.C("chip-bar-view-model",{class:_.pq("ytChipBarViewModelHost",J.className),role:"tablist"},_.C(_.wi,{data:function(){return J.data().chips}},{chipViewModel:function(p,t){return _.C("div",{class:"ytChipBarViewModelChipWrapper"},_.C(_.coB,{data:p.data,
selected:function(){return t()===x()},
callback:function(I,a){I=!!a;a=t();P(I?a:-1);var k,H=(k=J.data())==null?void 0:k.chipBarStateEntityKey;H&&I&&_.AO(_.It("chipBarStateEntity",H,{key:H,selectedIndex:a}))},
disableDeselection:J.disableDeselection||m}))}}))},"rc");_.lv(_.mQj,"chip-bar-view-model",{props:{data:_.Fz,className:_.Fz,disableDeselection:_.Fz}});_.b8z=_.Q1(function(J){var c=J.data;J={};return _.C("divider-view-model",{class:_.pq("divider-view-model-wiz",(J["divider-view-model-wiz__inset-thin-padding"]=function(){return c().dividerStyle==="DIVIDER_STYLE_INSET_THIN"},J))},_.C("div",{class:_.pq("divider-view-model-wiz__base-divider",function(){return RRT(c().dividerStyle)}),
style:_.kx({"background-color":function(){return c().backgroundColor?_.XB(c().backgroundColor):void 0}})}))},"sc");
_.b8z.idomCompat=!0;_.lv(_.b8z,"divider-view-model",{props:{data:_.vt}});var Di=new Map,Ly=new Map,eRr=0,W8;var JlR=[{calledOnce:!1,state:"visible"},{calledOnce:!1,state:"hidden"}],bjT={throttleMs:0,canHaveZeroSize:!0,useVisibilityObserver:!1};var xQa,Vq_;xQa=function(J){return function(c){return function(){return String(c())+J}}};
_.sX=xQa("px");Vq_=xQa("s");var Mq_=_.Q1(function(J){function c(l){return function(){var y=r().numItemsPerGridRow,pG=l()*y;y=pG+y;var kt,nG;return(nG=(kt=b().contents)==null?void 0:kt.slice(pG,y))!=null?nG:[]}}
var m=_.ou(J,{layoutContainerWidth:0,shouldUseOwnContainerSize:!1,marginSettings:1}),b=m.data,x=m.layoutContainerWidth,P=m.shouldUseOwnContainerSize,p=m.marginSettings;m=_.M(_.K2(!0,void 0,"qgr2Je"));var t=m.next().value,I=m.next().value,a=function(){var l,y=(l=_.L(b().showMoreButton,_.ri))==null?void 0:l.trackingParams;y&&_.b6(_.C7(),y);I(!1)},k=function(){var l,y=(l=_.L(b().showLessButton,_.ri))==null?void 0:l.trackingParams;
y&&_.b6(_.C7(),y);I(!0)};
m=_.oN("grid-shelf-view-model");var H=_.VVe(m,{canHaveZeroSize:!1}),T=function(){var l;return(l=b().contentAspectRatio)!=null?l:"GRID_SHELF_CONTENT_ASPECT_RATIO_UNKNOWN"},r=_.n2(function(){var l=_.ot({containerWidth:P()&&H.width()>0?H.width()||x():x(),
sizing:"EXTRA_COMPACT",marginSettings:p(),enableFullBleedForSingleCol:!1});return{maxContainerWidth:l.maxContainerWidth,numItemsPerGridRow:l.numItems,contentPadding:P()?l.margin:l.contentMargin,itemWidth:l.itemWidth,itemMargin:l.gutter/2}},void 0,"pqVdjc"),W=function(){if(b().enableVerticalExpansion){if(t())return Y();
var l,y,pG=(y=(l=b().contents)==null?void 0:l.length)!=null?y:0;return Math.ceil(pG/r().numItemsPerGridRow)}return r().numItemsPerGridRow<=2?2:1},Y=function(){var l;
return Math.ceil(((l=b().minCollapsedItemCount)!=null?l:1)/r().numItemsPerGridRow)},Z=function(){return b().enableVerticalExpansion&&b().showLessButton&&!t()&&W()>Y()},d=function(){var l,y;
return b().enableVerticalExpansion&&b().showMoreButton&&t()&&((y=(l=b().contents)==null?void 0:l.length)!=null?y:0)>r().numItemsPerGridRow*Y()},G=function(){return!Z()},e=function(){return!d()},A={};
return _.C("grid-shelf-view-model",{class:_.pq("ytGridShelfViewModelHost",J.className,(A.ytGridShelfViewModelHostHasBottomButton=function(){return Z()||d()},A)),
el:m,style:_.kx({"margin-left":(0,_.sX)(function(){return r().contentPadding}),
"margin-right":(0,_.sX)(function(){return r().contentPadding})})},_.C(_.n,{cond:function(){return _.L(b().header,EUj)},
then:function(l){return _.C(_.m8,{data:l,disableHorizontalPadding:!0})}}),_.C("div",null,_.C(_.Te,{each:function(){return Array(W())}},function(l,y){return _.C(Pzj,{className:J.className,
items:c(y),responsiveGridShelfLayout:r,contentAspectRatio:T})})),_.C("div",{class:"ytGridShelfViewModelGridShelfBottomButtonContainer"},_.C(_.wi,{data:function(){return b().showMoreButton}},{buttonViewModel:function(l){return _.C("div",{hidden:e},_.C(_.XU,{data:l.data,
onClick:a}))}}),_.C(_.wi,{data:function(){return b().showLessButton}},{buttonViewModel:function(l){return _.C("div",{hidden:G},_.C(_.XU,{data:l.data,
onClick:k}))}})))},"tc");
Mq_.idomCompat=!0;var Pzj=_.Q1(function(J){var c=J.items;var m=J.responsiveGridShelfLayout;var b=J.contentAspectRatio;J=J.className;var x=_.oN("div");QKQ(x,function(){a:{var p=x.value;for(var t=c(),I=[],a=0;a<t.length;a++){var k=_.L(t[a],TD_);if(!k||k==null||!k.inlinePlayerData){p=null;break a}var H=p.children.item(a);if(!H){p=null;break a}I.push({thumbnailElement:H,videoData:k})}p={gridVideoPreviewData:{gridItems:I}}}return p});
var P=(0,_.sX)(function(){return-m().itemMargin});
return _.C("div",{el:x,class:_.pq("ytGridShelfViewModelGridShelfRow",J),style:_.kx({"margin-left":P,"margin-right":P})},_.C(_.wi,{data:c,replacementWrapper:function(p){return _.C(pf2,{responsiveGridShelfLayout:m},p)}},{shortsLockupViewModel:function(p){return _.C(pf2,{responsiveGridShelfLayout:m},_.C(ji6,{data:p.data,
aspectRatio:function(){return b()==="GRID_SHELF_CONTENT_ASPECT_RATIO_TWO_BY_THREE"?1:0},
scrimStyle:2,inlineMetadata:!1,className:void 0}))}}))},"uc"),pf2=_.Q1(function(J){return _.C("div",{style:_.kx({width:(0,_.sX)(function(){return J.responsiveGridShelfLayout().itemWidth}),
margin:function(){return"0 "+J.responsiveGridShelfLayout().itemMargin+"px"}}),
class:"ytGridShelfViewModelGridShelfItem"},J.children)},"vc");
Mq_.idomCompat=!0;_.lv(Mq_,"grid-shelf-view-model",{props:{data:_.vt,layoutContainerWidth:_.vt,shouldUseOwnContainerSize:_.vt,marginSettings:_.vt,className:_.vt}});_.NX$=_.Q1(function(J){var c=_.M(_.K2(!1,void 0,"YYtxR")),m=c.next().value,b=c.next().value;c={};return _.C("yt-alert-banner-view-model",{class:_.pq("ytAlertBannerViewModelHost",J.className,function(){var x;a:switch((x=J.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},(c.ytAlertBannerViewModelDismissed=
m,c.ytAlertBannerViewModelFullbleed=J.fullbleed,c.ytAlertBannerViewModelNarrow=J.narrow,c.ytAlertBannerViewModelIsInRichGrid=J.isInRichGrid,c))},_.C(_.n,{cond:function(){var x;
return!((x=J.data())==null?0:x.hideIcon)},
then:function(){return _.C("div",{class:"ytAlertBannerViewModelIcon"},_.C(_.HP,{icon:function(){return"info_circle"}}))}}),_.C("div",{class:"ytAlertBannerViewModelOuterContainer"},_.C("div",{class:"ytAlertBannerViewModelContainer"},_.C("div",{class:"ytAlertBannerViewModelContent"},_.C("div",{class:"ytAlertBannerViewModelHeading"},_.C(_.j8,{text:function(){var x;
return(x=J.data())==null?void 0:x.heading}})),_.C("div",{class:"ytAlertBannerViewModelBody"},_.C(_.j8,{text:function(){var x;
return(x=J.data())==null?void 0:x.body}})))),_.C(_.wi,{data:function(){var x;
return(x=J.data())==null?void 0:x.actionButton}},{buttonViewModel:function(x){return _.C(_.XU,{data:x.data,
className:"ytAlertBannerViewModelActionButton"})}})),_.C(_.wi,{data:function(){var x;
return(x=J.data())==null?void 0:x.dismissButton}},{buttonViewModel:function(x){return _.C(_.XU,{data:x.data,
className:"ytAlertBannerViewModelDismissButton",onClick:function(){var P;((P=J.data())==null?0:P.disableLocalDismissBehavior)||b(!0)}})}}))},"wc");_.lv(_.NX$,"yt-alert-banner-view-model",{props:{data:_.vt,fullbleed:_.vt,narrow:_.vt,isInRichGrid:_.vt,className:_.vt}});var Pto;Pto=_.Hg({chipViewModel:_.coB,buttonViewModel:_.XU});_.tqQ=_.IO(MVe,{callbacks:{callback:!0}});_.J5(MVe);_.lv(_.tqQ,"chips-shelf-view-model",{props:{data:_.vt,callback:_.Fz,enableSingleChipSelection:_.vt,disableChipsScrollAnimation:_.vt}});var IW_=_.Q1(function(J){J=_.ou(J,{disabled:!1});var c=J.active,m=J.disabled;J={};J=_.pq("ytSwitchShapeTrack",(J.ytSwitchShapeTrackActive=function(){return c()},J.ytSwitchShapeTrackDisabled=function(){return m()},J));
var b={};b=_.pq("ytSwitchShapeKnob",(b.ytSwitchShapeKnobActive=function(){return c()},b));
return _.C("switch-shape",{class:"ytSwitchShapeHost"},_.C("div",{class:J}),_.C("div",{class:b}))},"xc");var K48=_.Q1(function(J){var c=_.ou(J,{className:void 0,parentActive:void 0,handleOnTapEventInParent:!1}),m=c.data;J=c.className;var b=c.handleOnTapEventInParent,x=c.parentActive;c=_.M(_.aO(function(){var H;return(H=x())!=null?H:m().switchedOnByDefault||!1}));
var P=c.next().value,p=c.next().value,t=function(){return m().isDisabled},I=_.oN("button");
c=_.Kq(function(H){return H.key==="Enter"?(H.preventDefault(),I.value.click(),!1):!0});
var a=_.Kq(function(H){if(m().handleOnTapEventInParent||b())return!0;if(t())return!1;Ntu(m(),P(),H);p(!P());return!1}),k={};
k=_.pq("ytSwitchButtonViewModelButton",(k.ytSwitchButtonViewModelTappable=function(){return!t()},k));
return _.C("switch-button-view-model",{class:_.pq("ytSwitchButtonViewModelHost",J)},_.C("button",{el:I,class:k,"on:click":a,"on:keydown":c,"aria-label":function(){return P()?m().a11yLabelSwitchedOn:m().a11yLabelSwitchedOff},
"aria-checked":P,"aria-disabled":t,role:"switch"},_.C(IW_,{active:P,disabled:t})))},"yc");var aWL=_.Q1(function(J){var c=_.ou(J,{checked:!1});J=c.name;var m=c.onChange,b=c.onClick,x=c.checked,P=c.labelRenderable,p=c.hasLeadingLabel,t=c.labelClass,I=c.isCompact,a=c.selectElementClass;c=c.disableHorizontalPadding;var k="checkbox"+_.Df(_.rY),H=_.Kq(function(W){b==null||b(W);return!1}),T=_.Kq(function(W){m==null||m(W);
return!1}),r={};
return _.C("checkbox-shape",null,_.C("label",{class:_.pq("checkbox-shape-wiz",t,(r["checkbox-shape-wiz--compact"]=I,r["checkbox-shape-wiz--disable-horizontal-padding"]=c,r))},_.C("input",{class:"checkbox-shape-wiz__input",id:k,checked:x,name:J,type:"checkbox","prop:checked":x,"on:change":T,"on:click":H}),_.C(_.n,{cond:function(){return!(p==null?0:p())},
then:function(){return _.C(CzB,{isLeading:!0,selectElementClass:a})}}),_.C(_.n,{cond:function(){return!!P},
then:function(){return _.C("div",{class:"checkbox-shape-wiz__label"},P==null?void 0:P())}}),_.C(_.n,{cond:p,
then:function(){return _.C(CzB,{isLeading:!1,selectElementClass:a})}})))},"zc");
aWL.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var CzB=_.Q1(function(J){var c=J.selectElementClass;J={};return _.C("div",{class:_.pq("checkbox-shape-wiz__checkbox",c,(J["checkbox-shape-wiz__checkbox--checkbox-default-style"]=function(){return!(c==null?0:c())},J)),
"aria-hidden":"true"},_.C(_.HP,{icon:_.w("enable_web_delhi_icons")?"square":"BOX_EMPTY"}),_.C(_.HP,{icon:_.w("enable_web_delhi_icons")?"check_square":"BOX_CHECK",active:!0}))},"Ac");_.Lx=_.Q1(function(J){var c=J.name;var m=J.onChange;var b=J.onClick;var x=J.checked;var P=J.labelRenderable;var p=J.useCheckIcon;var t=J.hasLeadingLabel;var I=J.labelClass;var a=J.isCompact;var k=J.selectElementClass;var H=J.ariaLabel;J=J.className;var T="radio"+_.Df(_.rY),r=_.oN("input"),W=_.Kq(function(e){r.value.checked=!(x==null||!x());m==null||m(e);return!1}),Y=_.Kq(function(e){b==null||b(e);
return!1}),Z=_.M(_.K2(!1,void 0,"v5AMrb")),d=Z.next().value,G=Z.next().value;
Z={};return _.C("radio-shape",{class:_.pq("radio-shape-wiz",J)},_.C("input",{el:r,class:"radio-shape-wiz__input",id:T,"prop:checked":x,name:c,type:"radio","on:change":W,"on:click":Y,"aria-label":H,"on:focusin":_.Kq(function(){var e;((e=_.BG().resolve(_.y6(_.Js)))==null?0:e.isKeyBoardInUse())&&G(!0)}),
"on:focusout":_.Kq(function(){G(!1)})}),_.C("label",{class:_.pq("radio-shape-wiz__label-container",I,(Z["radio-shape-wiz--compact"]=a,Z["radio-shape-wiz__label-container--keyboard-focused"]=d,Z)),
for:T},_.C(_.n,{cond:function(){return!(t==null?0:t())},
then:function(){return _.C(kwa,{checked:x,useCheckIcon:p,isLeading:!0,selectElementClass:k})}}),_.C(_.n,{cond:function(){return!!P},
then:function(){return _.C("div",{class:"radio-shape-wiz__label","aria-hidden":function(){return(H==null?0:H())?"true":"false"}},P==null?void 0:P())}}),_.C(_.n,{cond:t,
then:function(){return _.C(kwa,{checked:x,useCheckIcon:p,isLeading:!1,selectElementClass:k})}})))},"Bc");
_.Lx.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var kwa=_.Q1(function(J){var c=J.useCheckIcon;var m=J.selectElementClass;J=function(){return(c==null?0:c())?"CHECK":_.w("radio_shape_filled_icon_manual_setting_killswitch")?"CIRCLE_FILLED":"CIRCLE"};
var b={};return _.C("div",{class:_.pq("radio-shape-wiz__radio",m,(b["radio-shape-wiz__radio--check-icon"]=c,b["radio-shape-wiz__radio--radio-default-style"]=function(){return!(m==null?0:m())},b)),
"aria-hidden":"true"},_.C(_.HP,{icon:J}),_.C(_.HP,{icon:J,active:function(){return!(c==null?0:c())}}))},"Cc");_.Da=_.Q1(function(J){function c(){var X$;((X$=_.BG().resolve(_.y6(_.Js)))==null?0:X$.isKeyBoardInUse())&&Em(!0)}
function m(){Em(!1)}
var b=J.data;var x=J.isMenuItem;var P=J.isCompact;var p=J.onTap;var t=J.trailingAccessory;var I=J.hideSelectionTextChevron;var a=J.disabled;var k=J.inPopup;var H=J.disableHorizontalPadding;J=J.isOverlay;var T=_.w("apply_button_role_to_list_item"),r=_.fq(function(X$){a:{var Hu=b();if((Hu==null?0:Hu.entitySelectorType)&&(Hu==null?0:Hu.entityKey))switch(Hu.entitySelectorType){case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_CAPTION_LANGUAGE_SELECTION_TEXT":X$=_.F2r(X$,Hu.entityKey);X$=X$==null?void 0:
X$.value;Hu=!1;X$==="CAPTIONS_UNAVAILABLE"&&(Hu=!0,X$="");X$=Object.assign({},!!X$&&{selectionText:{content:X$}},{isSelected:!!X$},!!X$&&{leadingImage:{sources:[{clientResource:{imageName:"CLOSED_CAPTION_SELECTED"}}]}},{isDisabled:Hu});break a;default:X$={}}else X$={}}return X$}),W=function(){return _.w("enable_web_shorts_captions_language_command")?Object.assign({},b(),r()):b()},Y=function(){return!(W().isSelected===void 0||!W().selectionStyle||W().selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED")},
Z=function(){return(_.Ec(W().rendererContext)||p)&&!Y()},d=function(){return _.Ec(W().rendererContext)||Y()},G={};
J=_.pq("yt-list-item-view-model-wiz",(G["yt-list-item-view-model-wiz--is-overlay"]=J,G["yt-list-item-view-model-wiz--keyboard-focused"]=function(){return!T&&oR()},G));
G={};var e=_.pq("yt-list-item-view-model-wiz__label",(G["yt-list-item-view-model-wiz__container"]=function(){return!Y()},G["yt-list-item-view-model-wiz__container--disabled"]=function(){return!!W().isDisabled||!(a==null||!a())},G["yt-list-item-view-model-wiz__container--has-subtitle"]=function(){return!!W().subtitle},G["yt-list-item-view-model-wiz__container--compact"]=P,G["yt-list-item-view-model-wiz__container--tappable"]=Z,G["yt-list-item-view-model-wiz__container--in-popup"]=k,G["yt-list-item-view-model-wiz--keyboard-focused"]=
function(){return T&&oR()},G["yt-list-item-view-model-wiz__container--disable-horizontal-padding"]=function(){return(H==null?void 0:H())&&!Y()},G));
G={};var A=_.pq("yt-list-item-view-model-wiz__container",(G["yt-list-item-view-model-wiz__container--tappable"]=d,G["yt-list-item-view-model-wiz__container--compact"]=P,G["yt-list-item-view-model-wiz__container--in-popup"]=k,G["yt-list-item-view-model-wiz__container--disable-horizontal-padding"]=function(){return(H==null?void 0:H())&&Y()},G)),l=function(){return W().leadingImage||W().leadingAccessory},y=_.pq("yt-list-item-view-model-wiz__image-container",function(){return l()?"yt-list-item-view-model-wiz__trailing":
"yt-list-item-view-model-wiz__leading"});
k=_.oN("yt-list-item-view-model");var pG=_.oN("div"),kt=T?pG:k,nG=_.Q1(function(){return _.C(_.n,{cond:function(){return T},
then:function(){return _.C("div",{class:e,el:pG,role:function(){return d()||Z()?"button":void 0},
tabindex:function(){return p||Z()?0:void 0},
"on:keydown":Yt,"on:click":fG},_.C(H8L,{data:W,hideSelectionTextChevron:I,trailingAccessory:t}))},
else:function(){return _.C("div",{class:e,el:pG},_.C(H8L,{data:W,hideSelectionTextChevron:I,trailingAccessory:t}))}})},"Dc");
nG.idomCompat=!0;_.vg(k,function(){return W().rendererContext});
var fG=_.Kq(function(X$){return void(p==null?void 0:p(X$))}),Yt=_.Fru(),Z3=_.M(_.K2(!1,void 0,"inP9Dc"));
G=Z3.next().value;Z3=Z3.next().value;var oR=G,Em=Z3;_.uN(function(){Z()&&(kt.value.addEventListener("focusin",c),kt.value.addEventListener("focusout",m));_.f2(function(){kt.value&&Z()&&(kt.value.removeEventListener("focusin",c),kt.value.removeEventListener("focusout",m))})});
G=_.Kq(function(){return!0});
return _.C("yt-list-item-view-model",{el:k,class:J,role:function(){return(x==null?0:x())?"menuitem":"listitem"},
tabindex:function(){var X$=Z();X$=T?void 0:p||X$?0:void 0;return X$},
"on:keydown":T?G:Yt,"on:click":T?G:fG},_.C(_.n,{cond:Y,then:function(){return _.C(_.sb,null,_.C(_.wu,{when:function(){return W().selectionStyle==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},function(){return _.C(aWL,{labelRenderable:function(){return _.C(nG,null)},
isCompact:P,checked:function(){return W().isSelected},
hasLeadingLabel:function(){return!!l()},
labelClass:A,selectElementClass:y,disableHorizontalPadding:H})}),_.C(_.wu,{when:function(){return W().selectionStyle==="LIST_ITEM_SELECTION_STYLE_RADIO"}},function(){return _.C(_.Lx,{labelRenderable:function(){return _.C(nG,null)},
isCompact:P,checked:function(){return W().isSelected},
hasLeadingLabel:function(){return!!l()},
labelClass:A,selectElementClass:y})}),_.C(_.wu,{when:function(){return W().selectionStyle==="LIST_ITEM_SELECTION_STYLE_DEFAULT"}},function(){return _.C(_.Lx,{labelRenderable:function(){return _.C(nG,null)},
isCompact:P,checked:function(){return W().isSelected},
hasLeadingLabel:function(){return!!l()},
labelClass:A,selectElementClass:y,useCheckIcon:!0})}),_.C(_.ru,null,function(){return _.C(nG,null)}))},
else:function(){return _.C(nG,null)}}))},"Ec");
_.Da.idomCompat={callbacks:{onTap:!0,trailingAccessory:!0}};var H8L=_.Q1(function(J){var c=J.data;var m=J.hideSelectionTextChevron;var b=J.trailingAccessory;return _.C(_.cG,null,_.C(i86,{data:c,isLeading:!0,hideSelectionTextChevron:function(){return!(m==null||!m())}}),_.C(n5Q,{data:c}),_.C(_.n,{cond:function(){return!!b},
then:function(){return _.C("div",{class:"yt-list-item-view-model-wiz__trailing"},b==null?void 0:b())},
else:function(){return _.C(i86,{data:c,isLeading:!1,hideSelectionTextChevron:function(){return!(m==null||!m())}})}}))},"Fc"),i86=_.Q1(function(J){var c=J.data;
var m=J.isLeading;var b=J.hideSelectionTextChevron;var x=_.pq("yt-list-item-view-model-wiz__button-container");J={};var P=_.pq("yt-list-item-view-model-wiz__image-container",(J["yt-list-item-view-model-wiz__leading"]=m,J["yt-list-item-view-model-wiz__trailing"]=function(){return!m()},J)),p=function(){return m()?c().leadingImage:c().trailingImage},t=_.pq("yt-list-item-view-model-wiz__accessory","yt-list-item-view-model-wiz__image");
J={};var I=_.pq("yt-list-item-view-model-wiz__accessory",(J["yt-list-item-view-model-wiz__leading"]=m,J["yt-list-item-view-model-wiz__trailing"]=function(){return!m()},J)),a=function(){a:switch(c().listItemIconAfterSelectionText){case "LIST_ITEM_ICON_AFTER_SELECTION_TEXT_EXPAND_MORE":var k="expand_more";
break a;default:k="chevron_right"}return k};
return _.C(_.n,{cond:function(){var k=c(),H=m();return!!(H&&(k.leadingImage||k.leadingAccessory)||!H&&(k.trailingImage||k.trailingButton||k.trailingButtons||k.selectionText))},
then:function(){return _.C(_.cG,null,_.C(_.n,{cond:p,then:function(k){return _.C("div",{class:P,"aria-hidden":"true"},_.C(_.RA,{data:k,alt:"",preserveWidth:!0,preserveHeight:!0,className:t}))}}),_.C(_.n,{cond:function(){return m()&&c().leadingAccessory},
then:function(){return _.C("div",{class:P},_.C(_.wi,{data:function(){return c().leadingAccessory}},{avatarViewModel:function(k){return _.C(_.s8,{data:k.data,
avatarButtonCustomClassName:t})},
collectionThumbnailViewModel:EX$}))}}),_.C(_.n,{cond:function(){return!m()&&c().trailingButton},
then:function(){return _.C("div",{class:x},_.C(_.wi,{data:function(){return c().trailingButton}},{buttonViewModel:function(k){return _.C(_.XU,{data:k.data,
className:I})}}))}}),_.C(_.n,{cond:function(){var k;
return!m()&&((k=c().trailingButtons)==null?void 0:k.buttons)},
then:function(){return _.C("div",{class:x},_.C(_.wi,{data:function(){var k;return(k=c().trailingButtons)==null?void 0:k.buttons}},{buttonViewModel:function(k){return _.C(_.XU,{data:k.data,
className:I})},
accountLinkButtonViewModel:function(k){return _.C(qyJ,{data:k.data,className:function(){return I()||""}})},
switchButtonViewModel:function(k){return _.C(K48,{data:k.data,className:I})},
subscribeButtonViewModel:function(k){return _.C(_.sF,{data:k.data,isOverlay:!1,animateWidth:!1,className:I})},
toggleButtonViewModel:function(k){return _.C(_.LK,{data:k.data,className:I})}}))}}),_.C(_.n,{cond:function(){return!m()&&!!c().selectionText},
then:function(){return _.C(_.cG,null,_.C(_.j8,{text:function(){return c().selectionText},
className:_.pq("yt-list-item-view-model-wiz__selection-text","yt-list-item-view-model-wiz__selection-text--trailing-selection-text")}),_.C(_.n,{cond:function(){return!b()},
then:function(){return _.C(_.HP,{icon:a,className:"yt-list-item-view-model-wiz__chevron-icon"})}}))}}))}})},"Gc"),n5Q=_.Q1(function(J){var c=J.data;
return _.C(_.n,{cond:function(){return c().title||c().subtitle},
then:function(){return _.C("div",{class:"yt-list-item-view-model-wiz__text-wrapper"},_.C("div",{class:"yt-list-item-view-model-wiz__title-wrapper"},_.C(_.n,{cond:function(){return c().title},
then:function(m){return _.C(_.j8,{text:m,className:"yt-list-item-view-model-wiz__title"})}})),_.C(_.n,{cond:function(){return c().subtitle},
then:function(m){return _.C(_.j8,{text:m,className:"yt-list-item-view-model-wiz__subtitle"})}}))}})},"Hc");_.TX_=_.Q1(function(J){var c=J.data;var m=J.onTap;var b=J.onSwitch;var x=J.overrideDisabled;J=J.disableHorizontalPadding;var P=_.M(_.aO(function(){var H;return((H=I9t(k()))==null?void 0:H.switchedOnByDefault)||!1})),p=P.next().value,t=P.next().value;
P=_.M(_.K2(!1,void 0,"ZHBkbb"));var I=P.next().value,a=P.next().value,k=function(){var H;if(!(H=c().switchButton)){var T=c();H=x==null?void 0:x();T={switchOnCommand:T.switchOnCommand,switchOffCommand:T.switchOffCommand,switchedOnByDefault:T.switchedOnByDefault,isDisabled:T.isDisabled,handleOnTapEventInParent:!0,a11yLabelSwitchedOn:T.a11yLabelSwitchedOn,a11yLabelSwitchedOff:T.a11yLabelSwitchedOff};H!==void 0&&(T.isDisabled=H);H={switchButtonViewModel:T}}return H};
return _.C("switch-list-item-view-model",{class:"ytSwitchListItemViewModelHost"},_.C(_.Da,{data:function(){return{title:c().title,subtitle:c().attributedSubtitle,leadingImage:c().leadingImage,leadingAccessory:c().leadingAccessory,isDisabled:c().isDisabled}},
onTap:function(H){var T=I9t(k());!T||T.isDisabled||c().ignoreTapUntilCommandCompletes&&I()||(m==null||m(H),Ntu(T,p(),H,c().ignoreTapUntilCommandCompletes,a),t(!p()),b==null||b(p()))},
trailingAccessory:function(){return _.C(_.wi,{data:k},{switchButtonViewModel:function(H){return _.C(K48,{data:H.data,parentActive:p,handleOnTapEventInParent:!!m})}})},
disableHorizontalPadding:J}))},"Ic");var wfZ=_.Q1(function(J){var c=_.oN("toggleable-list-item-view-model"),m=_.M(_.aO(function(){var P,p;return!!((P=J.data())==null?0:(p=P.initialState)==null?0:p.isToggled)})),b=m.next().value,x=m.next().value;
_.vg(c,function(){return J.data().rendererContext});
return _.C("toggleable-list-item-view-model",{el:c,class:_.pq("toggleableListItemViewModelHost",J.className),"on:click":_.Kq(function(){x(!b())})},_.C(_.n,{cond:b,
then:function(){return _.C(_.wi,{data:function(){return J.data().toggledListItem}},{listItemViewModel:_.Da})},
else:function(){return _.C(_.wi,{data:function(){return J.data().defaultListItem}},{listItemViewModel:_.Da})}}))},"Jc");var roL=_.CX("DOWNLOAD",{},"Download"),s4Q=_.CX("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"),L4B=_.CX("RETRY",{},"Retry"),DQ_=_.CX("PAUSE_DOWNLOADING",{},"Pause downloading"),W46=_.CX("RESUME_DOWNLOAD",{},"Resume download"),Kdt={text:roL,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_ADD",playlistAction:"ACTION_ADD"},zU={text:s4Q,iconType:"DELETE",videoAction:"ACTION_REMOVE",playlistAction:"ACTION_REMOVE"},kVe={text:L4B,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RETRY",playlistAction:"ACTION_REMOVE"},
CtJ={text:DQ_,iconType:"OFFLINE_PAUSE",videoAction:"ACTION_PAUSE",playlistAction:"ACTION_PAUSE"},a9T={text:W46,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RESUME",playlistAction:"ACTION_RESUME"};var z9$=_.Q1(function(J){var c=function(){var t=J.data();t=_.G9(t.rendererContext);var I;return(I=_.L(t,_.Mx))==null?void 0:I.videoId},m=_.fq(function(t){var I=c(),a=nEm(J.data());
return I?_.YY(t,I):a?_.XM(t,a):"TRANSFER_STATE_UNKNOWN"}),b=_.tT(_.ZO3,c),x=_.fq(function(t){return _.WMr(t,c(),nEm(J.data()))}),P=function(){return ijR(m(),b(),_.G9(J.data().rendererContext),!!nEm(J.data()))},p=function(){return x()!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
return _.C("yt-download-list-item-view-model",{class:"ytDownloadListItemViewModelHost",hidden:p},_.C(_.n,{cond:function(){return!p()},
then:function(){return _.C(_.n,{cond:P,then:function(t){return _.C(_.Te,{each:t},function(I){return _.C(_.Da,{data:I,isCompact:J.isCompact,isMenuItem:J.isMenuItem,inPopup:J.inPopup,disableHorizontalPadding:J.disableHorizontalPadding})})}})}}))},"Kc");
z9$.idomCompat=!0;_.uNz=_.Q1(function(J){var c=J.data;var m=J.isCompact;var b=J.hideSelectionTextChevron;var x=J.inPopup;var P=J.isOverlay;var p=J.disableHorizontalPadding;var t=function(){return Ttq(c())&&(x==null?void 0:x())};
J={};return _.C("yt-list-view-model",{class:_.pq("yt-list-view-model-wiz",(J["yt-list-view-model-wiz--kaios-spat-nav"]=Hpq&&document.body.hasAttribute("spatial-navigation-enabled")&&document.body.getAttribute("spatial-navigation-enabled")==="true",J)),role:function(){return t()?"menu":"list"},
style:_.kx({"max-height":function(){var I,a=(I=c())==null?void 0:I.visibleElementCount;if(a)return rlt(c())?(a+.5)*48+"px":(a+.5)*40+"px"}})},_.C(_.wi,{data:function(){return c().listItems}},{listItemViewModel:function(I){return _.C(_.Da,{data:I.data,
isMenuItem:t,isCompact:m,hideSelectionTextChevron:b,inPopup:x,isOverlay:P,disableHorizontalPadding:p})},
toggleableListItemViewModel:function(I){return _.C(wfZ,{data:I.data})},
downloadListItemViewModel:function(I){return _.C(z9$,{data:I.data,isMenuItem:t,isCompact:m,inPopup:x,disableHorizontalPadding:p})},
switchListItemViewModel:function(I){return _.C(_.TX_,{data:I.data,disableHorizontalPadding:p})}}))},"Lc");
_.uNz.idomCompat=!0;var fW_=_.Q1(function(J){var c=J.data;var m=J.isOverlay;J={};return _.C("yt-course-perks-view-model",{class:_.pq("ytwCoursePerksViewModelHost",(J.ytwCoursePerksViewModelHostOverlay=m,J))},_.C("h3",{class:"ytwCoursePerksViewModelHostPerksTitle"},_.C(_.j8,{text:function(){return c().title}})),_.C("div",null,_.C(_.n,{cond:function(){return c().perks},
then:function(b){return _.C(_.uNz,{data:function(){return{listItems:b()}},
isCompact:!0,isOverlay:m})}})))},"Mc");_.lv(fW_,"yt-course-perks-view-model",{props:{data:_.Fz,isOverlay:_.Fz}});_.lv(_.Q1(function(J){var c=J.data;return _.C("yt-course-progress-view-model",{class:"ytwCourseProgressViewModelHost"},_.C("h3",{class:"ytwCourseProgressViewModelHostProgressTitle"},_.C(_.j8,{text:function(){return c().title}})),_.C("p",{class:"ytwCourseProgressViewModelHostProgressSubtitle"},_.C(_.j8,{text:function(){return c().progressSummary}})),_.C("div",{class:"ytwCourseProgressViewModelHostProgressBar"},_.C("div",{class:"ytwCourseProgressViewModelHostProgressBarFill",
style:_.kx({width:function(){return c().progressPercentage*100+"%"}})})))},"Nc"),"yt-course-progress-view-model",{props:{data:_.vt}});var YgQ=_.Q1(function(J){var c={};return _.C("yt-progress-view-model",{class:_.pq("ytwProgressViewModelHost",(c.ytwProgressViewModelHostOverlay=_.Ru(J.isOverlay,!1),c))},_.C(_.n,{cond:function(){return J.data().progressSummary},
then:function(m){return _.C("p",{class:"ytwProgressViewModelHostProgressSubtitle"},_.C(_.j8,{text:m}))}}),_.C("div",{class:"ytwProgressViewModelHostProgressContainer"},_.C(_.n,{cond:function(){return J.data().leadingLabel},
then:function(m){return _.C("p",{class:"ytwProgressViewModelHostProgressLeadingLabel"},_.C(_.j8,{text:m}))}}),_.C("div",{class:"ytwProgressViewModelHostProgressBar"},_.C("div",{class:"ytwProgressViewModelHostProgressBarFill",
style:function(){return"width: "+(J.data().progressPercentage||0)*100+"%"}}))))},"Oc");var Wb=_.Q1(function(J){var c=J.starNumber;var m=J.data;var b=function(){var x;return((x=m())==null?void 0:x.rating)||0};
return _.C(_.n,{cond:function(){return c()},
then:function(x){return _.C(_.sb,null,_.C(_.wu,{when:function(){return b()>=x()-.25}},function(){return _.C("div",{class:"ytStarRatingViewModelHostStar"},_.C(_.HP,{icon:"STAR_FILLED"}))}),_.C(_.wu,{when:function(){return b()>=x()-.75}},function(){return _.C("div",{class:"ytStarRatingViewModelHostStar"},_.C(_.HP,{icon:"STAR_HALF"}))}),_.C(_.ru,null,function(){return _.C("div",{class:"ytStarRatingViewModelHostStar"},_.C(_.HP,{icon:"STAR_BORDER"}))}))}})},"Pc"),Xfj=_.Q1(function(J){J=J.data;
return _.C("yt-star-rating-view-model",{class:"ytStarRatingViewModelHost"},_.C(Wb,{starNumber:1,data:J}),_.C(Wb,{starNumber:2,data:J}),_.C(Wb,{starNumber:3,data:J}),_.C(Wb,{starNumber:4,data:J}),_.C(Wb,{starNumber:5,data:J}))},"Qc");_.lv(_.Q1(function(J){var c=_.ou(J,{}).data;return _.C("yt-course-ratings-view-model",{class:"ytCourseRatingsViewModelHost"},_.C("h3",{class:"ytCourseRatingsViewModelHostRatingTitle"},_.C(_.j8,{text:function(){var m;return(m=c())==null?void 0:m.title}})),_.C("div",{class:"ytCourseRatingsViewModelHostRatingContainer"},_.C(_.n,{cond:function(){return c().starProgressViewModels},
then:function(m){return _.C("div",{class:"ytCourseRatingsViewModelHostProgressBarContainer"},_.C(_.wi,{data:m},{progressViewModel:YgQ}))}}),_.C("div",{class:"ytCourseRatingsViewModelHostStarRatingAndRatingDataContainer"},_.C("p",{class:"ytCourseRatingsViewModelHostAverageRatingLabel"},_.C(_.j8,{text:function(){var m;
return(m=c())==null?void 0:m.averageRatingLabel}})),_.C(_.n,{cond:function(){return c().zeroStateText},
then:function(m){return _.C("div",{class:"ytCourseRatingsViewModelHostZeroStateText"},_.C(_.j8,{text:m}))}}),_.C(_.n,{cond:function(){return c().starRatingViewModel},
then:function(m){return _.C("div",{class:"ytCourseRatingsViewModelHostStarRatingContainer"},_.C(_.wi,{data:m},{starRatingViewModel:Xfj}))}}),_.C("p",{class:"ytCourseRatingsViewModelHostTotalRatingsCountLabel"},_.C(_.j8,{text:function(){var m;
return(m=c())==null?void 0:m.totalRatingsCountLabel}})))))},"Rc"),"yt-course-ratings-view-model",{props:{data:_.Fz}});var Z8_;Z8_={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"}};_.qga=_.Q1(function(J){var c=_.oN("yt-learning-journey-loader-view-model"),m=_.xM();_.WG(function(){requestAnimationFrame(function(){var x;(x=m.lottieEl)==null||x.addEventListener("DOMLoaded",function(){var P;(P=J.onLottieLoaded)==null||P.call(J)})});
var b=J.data().browseEndpoint;b&&_.hd(b)});
return _.C("yt-learning-journey-loader-view-model",{class:_.pq("learningJourneyLoaderViewModelHost",J.className),"data-target-id":function(){var b;return((b=J.data)==null?void 0:b.call(J).targetId)||""},
el:c},_.C(_.Nd,{className:_.pq("learningJourneyLoaderViewModelLoader",J.className),animationName:function(){return Z8_.animationConfig.name},
data:Z8_,animationRef:m}))},"Sc");_.lv(_.qga,"yt-learning-journey-loader-view-model",{props:{data:_.vt,className:_.Fz,onLottieLoaded:_.Fz}});_.UQu=_.Q1(function(J){var c=function(){return J.data()},m=_.M(_.K2(-1,void 0,"vug48")),b=m.next().value,x=m.next().value,P=function(k){return b()===k},p=function(k){return c().correctAnswerIndex===k},t=function(){return b()!==-1},I=function(){return b()===c().correctAnswerIndex},a=_.Kq(function(){x(-1);
return!1});
return _.C("learning-journey-quiz-view-model",{class:_.pq("learningJourneyQuizViewModelHost",J.className),style:_.kx({background:function(){return YR(uD(c())).backgroundColor}})},_.C(_.n,{cond:function(){return!!c().video},
then:function(){return _.C("div",{class:"learningJourneyQuizViewModelHostVideoContainer",style:_.kx({background:function(){return YR(uD(c())).videoBackgroundColor}})},_.C(_.wi,{data:function(){return c().video}},{lockupViewModel:function(k){return _.C(_.g1,{data:k.data,
containerType:1,className:"learningJourneyQuizViewModelHostVideoLockup"})}}))}}),_.C("div",{class:"learningJourneyQuizViewModelHostQuizContainer"},_.C("div",{class:"learningJourneyQuizViewModelHostQuiz"},_.C("div",{class:"learningJourneyQuizViewModelHostQuizContent"},_.C("div",{class:"learningJourneyQuizViewModelHostQuizHeader",
style:_.kx({"align-items":function(){return c().overflowMenu?"start":"center"}})},_.C("div",{class:"learningJourneyQuizViewModelHostQuizHeaderTextContainer",
style:_.kx({"min-height":function(){return c().overflowMenu?"48px":"26px"}})},_.C("div",{class:"learningJourneyQuizViewModelHostQuizHeaderText",
style:_.kx({color:function(){return YR(uD(c())).primaryTextColor}}),
"client-ve-type":function(){var k=t(),H=I();return k?H?264685:264684:264683}},_.C(_.j8,{text:function(){var k=c(),H=t(),T=I();
return H?T?k.successTitle:k.failureTitle:k.questionHeaderText}}))),_.C("div",{class:"learningJourneyQuizViewModelHostQuizHeaderButtons"},_.C(_.n,{cond:t,
then:function(){return _.C("div",{id:"resetButton",class:"learningJourneyQuizViewModelHostQuizHover","on:click":a,role:"button","aria-label":"Reset","tab-index":"0","client-ve-type":264687},_.C("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24",viewBox:"0 -960 960 960",style:_.kx({fill:function(){return YR(uD(c())).primaryTextColor}})},_.C("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"})))}}),
_.C(_.wi,{data:function(){return c().overflowMenu}},{buttonViewModel:function(k){return _.C(_.XU,{data:k.data})}}))),_.C("div",{class:"learningJourneyQuizViewModelHostQuizSubheader",
style:_.kx({color:function(){return YR(uD(c())).secondaryTextColor}}),
"client-ve-type":264688},_.C(_.j8,{text:function(){var k=c();return t()?k.explanationText:k.questionSubheaderText}}))),_.C("div",{class:"learningJourneyQuizViewModelHostQuizOptionsList"},_.C(_.Te,{each:function(){return c().optionsData||[]}},function(k,H){var T={};
return _.C("div",{class:_.pq("learningJourneyQuizViewModelHostQuizOptions",(T.learningJourneyQuizViewModelHostQuizHover=function(){return!t()},T.learningJourneyQuizViewModelHostQuizOptionSelectedCorrect=function(){return I()&&P(H())},T.learningJourneyQuizViewModelHostQuizOptionSelectedIncorrect=function(){return!I()&&P(H())},T.learningJourneyQuizViewModelHostQuizOptionNotSelected=function(){return t()&&!P(H())},T)),
"on:click":_.Kq(function(){if(t())return!1;x(H());return!1}),
style:_.kx({background:function(){return t()&&P(H())?"":YR(uD(c())).optionColor}}),
role:"button","aria-disabled":t,"tab-index":"0","client-ve-type":264686},_.C(_.n,{cond:t,then:function(){return _.C("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"16",viewBox:function(){var r=H();return p(r)?"0 0 24 24":"0 -960 960 960"},
class:"learningJourneyQuizViewModelHostQuizOptionIcon",style:_.kx({fill:function(){return YR(uD(c())).primaryTextColor}})},_.C("path",{d:function(){var r=H();
return p(r)?"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"}}))}}),_.C(_.j8,{text:k.optionText}))})))))},"Tc");
_.UQu.idomCompat=!0;_.lv(_.UQu,"learning-journey-quiz-view-model",{props:{data:_.vt,className:_.vt}});var SgZ=_.Q1(function(J){var c=_.oN("yt-macro-marker-list-item-view-model");_.vg(c,function(){return J.data().rendererContext});
var m=_.ou(J,{palette:void 0,isLastItem:!1}),b=m.palette,x=m.isLastItem,P=function(){return J.data().isHighlighted},p=function(){var a;
return sBQ((a=b())==null?void 0:a.iconDisabledColor)},t=function(){var a;
return sBQ((a=b())==null?void 0:a.primaryTitleColor)},I=function(){var a;
return sBQ((a=b())==null?void 0:a.secondaryTitleColor)};
m={};return _.C("yt-macro-marker-list-item-view-model",{class:"ytMacroMarkerListItemViewModelHost",el:c},_.C(_.wi,{data:function(){return J.data().thumbnail}},{thumbnailViewModel:_.oC}),_.C("div",{class:"ytMacroMarkerListItemViewModelMetadataContainer"},_.C("div",{class:_.pq("ytMacroMarkerListItemViewModelTimeDescription",(m.ytMacroMarkerListItemViewModelHighlighted=P,m)),
style:_.kx({"background-color":function(){return P()?t():p()},
color:function(){return P()?"":I()}})},_.C(_.j8,{text:function(){return J.data().timestamp}})),_.C("div",{class:"ytMacroMarkerListItemViewModelTimeLine",
style:_.kx({"background-color":function(){return x()?"transparent":p()}})}),_.C("h4",{class:"ytMacroMarkerListItemViewModelTitle",
style:function(){return"color:"+(P()?t():I())}},_.C(_.j8,{text:function(){return J.data().title}}))))},"Uc");_.zT=_.Q1(function(J){function c(Nu){d("transform:translateX("+(_.Ub("HTML_DIR")==="rtl"?"":"-")+Nu+"px)")}
function m(Nu){return Math.min(Math.max(Nu,0),Z()-y())}
function b(){var Nu=A()+fG();return x()?(Math.round(y()/Nu)||1)*Nu:0}
var x=function(){return J.data().items||[]},P=function(){return J.data().previousButton},p=function(){return J.data().nextButton},t=function(){var Nu,cu;
return(cu=(Nu=J.disableArrows)==null?void 0:Nu.call(J))!=null?cu:!1},I=function(){var Nu;
return!((Nu=J.forceNarrowLayout)==null||!Nu.call(J))},a=_.oN("horizontal-shelf-view-model"),k=_.oN("div"),H=_.M(_.K2(0,void 0,"D4aXB")),T=H.next().value,r=H.next().value;
H=_.M(_.K2(0,void 0,"GQlHRc"));var W=H.next().value,Y=H.next().value,Z=W;W=_.M(_.K2("",void 0,"Bw1Yz"));H=W.next().value;var d=W.next().value;W=_.M(_.K2(0,void 0,"buTjVb"));var G=W.next().value,e=W.next().value,A=G;W=_.M(_.K2(0,void 0,"GIAWN"));G=W.next().value;var l=W.next().value,y=G;W=_.M(_.K2(!1,void 0,"cenvwc"));var pG=W.next().value,kt=W.next().value;W=_.M(_.K2(0,void 0,"LSY2Ub"));G=W.next().value;var nG=W.next().value,fG=G;W=_.M(_.K2(0,void 0,"oS46jc"));var Yt=W.next().value,Z3=W.next().value,
oR=function(){var Nu,cu=(Nu=J.data())==null?void 0:Nu.responsiveContainerConfiguration,t8,I_;return cu?goe(cu==null?void 0:cu.responsiveSize):(I_=(t8=J.sizing)==null?void 0:t8.call(J))!=null?I_:"STANDARD"};
W=_.n2(function(){return!t()&&T()>0},void 0,"KINjJe");
G=_.n2(function(){return!t()&&T()<Z()-y()},void 0,"Ea00Ib");
var Em=function(){r(m(T()-b()));c(T())},X$=function(){r(m(T()+b()));
c(T())},Hu=function(){a.value!==null&&a2()},S6;
_.uN(function(){a2();window.ResizeObserver?(S6=new ResizeObserver(_.Kd(Hu,0)),S6.observe(a.value)):window.addEventListener("resize",Hu)});
_.f2(function(){if(window.ResizeObserver){var Nu;(Nu=S6)==null||Nu.disconnect()}else window.removeEventListener("resize",Hu)});
var a2=function(){var Nu=a.value.clientWidth,cu=J.includeMargin!==void 0?J.includeMargin():!1,t8;var I_=J.hasPeek!==void 0?J.hasPeek():!((t8=J.data())==null||!t8.hasPeek);Nu=_.ot({containerWidth:Nu,hasPeek:I_,sizing:oR(),marginSettings:cu?I()?4:1:0});nG(Nu.gutter);Z3(Nu.margin);e(Nu.itemWidth);kt(Nu.maxContainerWidth<528||I());l(Nu.maxContainerWidth);x()&&Y((Nu.itemWidth+Nu.gutter)*x().length-Nu.gutter)};
return _.C("horizontal-shelf-view-model",{class:_.pq("ytwHorizontalShelfViewModelHost",J.className),el:a},_.C(_.n,{cond:function(){var Nu;return J.data().header&&!((Nu=J.horizontalShelfExperiments)==null?0:Nu.call(J).hideHeader)},
then:function(){return _.C("div",{class:"ytwHorizontalShelfViewModelHeader",style:_.kx({width:function(){return y()+"px"},
padding:function(){return"0 "+Yt()+"px"}})},_.C(_.wi,{data:function(){return J.data().header}},{sectionHeaderViewModel:function(Nu){return _.C(_.m8,{data:Nu.data,
disableHorizontalPadding:!0,forceSmallLayout:pG,useResponsiveLayout:!0})}}))}}),_.C("div",{class:"ytwHorizontalShelfViewModelOuterContainer",
style:_.kx({"margin-top":function(){var Nu,cu=J.data().header&&!((Nu=J.horizontalShelfExperiments)==null?0:Nu.call(J).hideHeader),t8;return(((t8=J.ensureMarginTop)==null?0:t8.call(J))&&!cu?12:0)+"px"}})},_.C("div",{class:"ytwHorizontalShelfViewModelHorizontalContainer",
style:_.kx({width:function(){return y()+"px"},
padding:function(){return"0 "+Yt()+"px"},
overflow:function(){return t()?"auto":"hidden"}})},_.C("div",{class:"ytwHorizontalShelfViewModelItems",
el:k,style:H},_.C(_.wi,{data:x},{macroMarkerListItemViewModel:function(Nu,cu){return _.C("div",{style:_.kx({width:function(){return A()+"px"},
"margin-right":function(){return(cu()===x().length-1?0:fG())+"px"}})},_.C(SgZ,{data:Nu.data,
palette:_.Ru(J.palette),isLastItem:function(){return cu()===x().length-1}}))},
lockupViewModel:function(Nu,cu){var t8=Nu.data;return _.C("div",{style:_.kx({width:function(){return A()+"px"},
"margin-right":function(){return(cu()===x().length-1?0:fG())+"px"}})},_.C(_.g1,{data:t8,
containerType:4,sizing:oR,protectBackground:J.protectBackground,thumbnailFixedWidth:function(){return LdQ(t8())+"px"},
thumbnailTargetWidth:function(){return LdQ(t8())}}))}}))),_.C(_.n,{cond:W,
then:function(){return _.C("div",{class:"ytwHorizontalShelfViewModelLeftArrow"},_.C(_.wi,{data:P},{buttonViewModel:function(Nu){return _.C(_.XU,{data:Nu.data,onClick:Em})}}))}}),_.C(_.n,{cond:G,
then:function(){return _.C("div",{class:"ytwHorizontalShelfViewModelRightArrow"},_.C(_.wi,{data:p},{buttonViewModel:function(Nu){return _.C(_.XU,{data:Nu.data,onClick:X$})}}))}})))},"Vc");
_.zT.idomCompat=!0;var h9Z=_.Q1(function(J){var c=function(){return J.data().targetId||""},m=function(){var W;
return((W=J.data())==null?void 0:W.expansionEntityKey)||""},b=_.tT(_.F2r,m),x=!0,P=function(){var W;
return((W=b())==null?void 0:W.value)===c()},p=function(W){_.AO(_.It("stringEntity",m(),{key:m(),
value:W?c():""}))};
_.WG(function(){x=!1;J.data().isExpanded&&p(!0)});
var t=function(){if(P()){var W=!0;J.onCollapse!==void 0&&(W=J.onCollapse());W&&p(!1)}else p(!0)},I=_.Kq(t),a=function(){var W;
return(((W=J.accordionStyle)==null?void 0:W.call(J))||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED")==="ACCORDION_VIEW_MODEL_STYLE_MINI"},k=_.oN("div"),H=function(){var W,Y;
return(Y=(W=_.L(J.data().rendererContext,_.KO))==null?void 0:W.label)!=null?Y:""},T={},r={};
return _.C("yt-accordion-item-view-model",{class:_.pq("ytAccordionItemViewModelHost",J.className,(T.ytAccordionItemViewModelExpanded=function(){return P()},T.ytAccordionItemViewModelHidden=function(){var W;
return(W=J.hideIfNotExpanded)==null?void 0:W.call(J)},T.ytAccordionItemViewModelMini=a,T)),
"data-target-id":c},_.C("div",{class:"ytAccordionItemViewModelContainer"},_.C("div",{class:"ytAccordionItemViewModelLeftSection","on:click":I,title:H},_.C(_.j8,{text:function(){return J.data().title},
className:"ytAccordionItemViewModelLabel",ariaLabel:H})),_.C("div",{class:"ytAccordionItemViewModelRightSection"},_.C(_.wi,{data:function(){return P()?J.data().expandButton:J.data().collapseButton}},{buttonViewModel:function(W){return _.C(_.XU,{data:W.data,
className:"ytAccordionItemViewModelToggleButton",onClick:t})}}))),_.C("div",{class:"ytAccordionItemViewModelContainer"},_.C("div",{class:_.pq("ytAccordionItemViewModelContent",(r.ytAccordionItemViewModelExpandedSubtitle=function(){return P()},r)),
el:k,style:_.kx({"max-height":function(){return x?"auto":P()?k.value.scrollHeight+"px":"0"}}),
"aria-hidden":function(){return!P()}},_.C(_.n,{cond:function(){return!a()},
then:function(){return _.C(_.j8,{text:function(){return J.data().description},
className:"ytAccordionItemViewModelSubtitle"})}}),_.C(_.wi,{data:function(){return J.data().content}},{horizontalShelfViewModel:function(W){return _.C(_.zT,{data:W.data,
className:"ytAccordionItemViewModelLockupShelf",hasPeek:!0})}}))))},"Wc");_.dQB=_.Q1(function(J){var c=_.M((0,_.IMZ)(J.data)).next().value,m=function(){return J.data().style||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED"},b=function(){return m()==="ACCORDION_VIEW_MODEL_STYLE_MINI"},x=_.M(_.K2(!0,void 0,"FVec2e")),P=x.next().value,p=x.next().value,t=function(){return b()&&P()},I=function(){return{type:"tonal",
style:"mono",state:"active",size:"XS",iconPosition:"icon-only",onTap:function(){p(!P())}}},a=_.Kq(function(){c().onTitleTap&&_.hd(c().onTitleTap||{})});
x={};return _.C("yt-accordion-view-model",{class:_.pq("ytAccordionViewModelHost",(x.ytAccordionViewModelMinimized=function(){return t()},x)),
"data-target-id":function(){return J.data().targetId||""}},_.C(_.n,{cond:function(){return b()||!!c().title},
then:function(){return _.C("div",{class:"ytAccordionViewModelHeader"},_.C("div",{class:"ytAccordionViewModelTitleSection"},_.C("div",{class:"ytAccordionViewModelTitleWrapper"},_.C(_.n,{cond:function(){return!!J.data().headerIcon},
then:function(){return _.C(_.HP,{className:"ytAccordionViewModelHeaderIcon",icon:function(){var k;return(k=J.data().headerIcon)==null?void 0:k.iconType}})}}),_.C("div",{class:"ytAccordionViewModelTitle",
"on:click":a},_.C(_.j8,{className:"ytAccordionViewModelTitleText",text:function(){return c().title}})))),_.C("div",{class:"ytAccordionViewModelButtonSection"},_.C(_.n,{cond:b,
then:function(){return _.C(l$,{data:I,iconName:function(){return t()?"chevron_down":"chevron_collapse"}})}})))}}),_.C("div",{class:"ytAccordionViewModelContent"},_.C(_.wi,{data:function(){return c().contents}},{accordionItemViewModel:function(k){return _.C(h9Z,{data:k.data,
className:"ytAccordionViewModelRow",accordionStyle:m,hideIfNotExpanded:t,onCollapse:function(){return b()?(p(!0),!1):!0}})}})),_.C("div",null,_.C(_.n,{cond:function(){return!b()&&(!!c().disclaimerFooter||!!c().footer)},
then:function(){return _.C("div",{class:"ytAccordionViewModelFooter"},_.C(_.j8,{text:function(){return c().disclaimerFooter},
className:"ytAccordionViewModelDisclaimer"}),_.C(_.wi,{data:function(){return J.data().footer}},{flexibleActionsViewModel:function(k){return _.C(DX,{data:k.data,
layout:0})}}))}})))},"Xc");_.lv(_.dQB,"yt-accordion-view-model",{props:{data:_.vt}});_.lv(_.Q1(function(J){var c,m=(c=_.BG().resolve(_.y6(_.Ev)))==null?void 0:c(),b=_.M(_.K2(!1,void 0,"BxguL"));c=b.next().value;var x=b.next().value;b=_.M(_.K2(!0,void 0,"WTCeFf"));var P=b.next().value,p=b.next().value,t=_.oN("textarea"),I=function(W){x(!0);W={learningJourneyFormData:{query:W}};_.hd(J.data().searchEndpoint||{},{form:{formData:W}});return!1},a=_.Kq(function(W){W.target.closest("button-view-model")&&x(!0)});
b=_.Kq(function(){p(t.value.value.length===0)});
var k=_.Kq(function(W){if(W.key==="Enter"&&!W.shiftKey&&!P()){var Y=W.target;W.preventDefault();I(Y.value)}}),H={},T={},r={};
return _.C("yt-learning-journey-zero-state",{class:"ytLearningJourneyZeroStateHost"},_.C("div",{class:"ytLearningJourneyZeroStateLearningIconContainer"},_.C(_.RA,{data:function(){return J.data().learningIcon},
className:"ytLearningJourneyZeroStateLearningIcon",alt:"Learning icon",contentMode:"CONTENT_MODE_CENTER"})),_.C("div",{class:"ytLearningJourneyZeroStateSearchContainer"},_.C("div",{class:"ytLearningJourneyZeroStateSearchBarContainer"},_.C("div",{class:_.pq("ytLearningJourneyZeroStateSearchBar",(H.ytLearningJourneyZeroStateSearchBarDark=m,H))},_.C("textarea",{class:_.pq("ytLearningJourneyZeroStateTextInput",(T.ytLearningJourneyZeroStateTextInputDark=m,T)),el:t,"on:keyup":b,"on:keydown":k,placeholder:"What do you want to learn?",
rows:1,"client-ve-type":264503})),_.C("div",{class:_.pq("ytLearningJourneyZeroStateSearchButtonContainer",(r.ytLearningJourneyZeroStateSearchButtonContainerDark=m,r))},_.C(_.XU,{data:function(){return _.L(J.data().searchButton,_.ri)},
className:"search-button",onClick:function(){return I(t.value.value)},
buttonOverrides:function(){return{disabled:P(),style:m?"mono-inverse":"mono",size:"XL"}}}))),_.C(_.n,{cond:function(){return!!J.data().errorBanner},
then:function(){return _.C("div",{class:"ytLearningJourneyZeroStateErrorBannerContainer"},_.C(_.wi,{data:function(){return J.data().errorBanner}},{alertBannerViewModel:function(W){return _.C(_.NX$,{data:W.data,
"client-ve-type":264617})}}))}})),_.C(_.n,{cond:c,
then:function(){return _.C("div",{class:"ytLearningJourneyZeroStateLoaderContainer"},_.C(_.wi,{data:function(){return J.data().loader}},{learningJourneyLoaderViewModel:function(W){return _.C(_.qga,{data:W.data})}}))},
else:function(){return _.C("div",null,_.C(_.n,{cond:function(){return!!J.data().learningJourneyShelf},
then:function(){return _.C("div",{class:"ytLearningJourneyZeroStatePlaylistShelfContainer"},_.C("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return J.data().learningJourneySectionTitle}),_.C(_.wi,{data:function(){return J.data().learningJourneyShelf}},{horizontalShelfViewModel:_.zT}))}}),_.C("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySection"},_.C("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return J.data().suggestedJourneySectionTitle}),
_.C("div",{"on:click":a},_.C(_.wi,{data:function(){return J.data().suggestedJourneyActions}},{flexibleActionsViewModel:function(W){return _.C(DX,{data:W.data,
layout:1})}}))))}}))},"Yc"),"yt-learning-journey-zero-state",{props:{data:_.vt}});var $QC=_.Q1(function(J){var c=J.data;return _.C("ytvl-live-leaderboard-item-action-content-view-model",{class:_.pq("ytvlLiveLeaderboardItemActionContentViewModelHost")},_.C(_.j8,{text:function(){var m;return(m=c())==null?void 0:m.actionDescription},
className:"ytvlLiveLeaderboardItemActionContentViewModelActionDescription"}),_.C(_.wi,{data:function(){return c().actionButton}},{buttonViewModel:function(m){return _.C(_.XU,{className:"ytvlLiveLeaderboardItemActionContentViewModelActionButton",
data:m.data})}}))},"Zc");var Gw6=_.Q1(function(J){var c=J.data;return _.C("ytvl-live-leaderboard-item-channel-content-view-model",{class:_.pq("ytvlLiveLeaderboardItemChannelContentViewModelHost")},_.C(_.j8,{className:"ytvlLiveLeaderboardItemChannelContentViewModelChannelName",text:function(){var m;return(m=c())==null?void 0:m.displayName},
ellipsisTruncate:!0}),_.C(_.wi,{data:function(){return c().badge}},{buttonViewModel:function(m){return _.C(_.XU,{className:"ytvlLiveLeaderboardItemChannelContentViewModelBadge",
data:m.data})}}))},"$c");_.lv(_.Q1(function(J){var c=J.data;return _.C("ytvl-live-leaderboard-item-view-model",{class:"ytvlLiveLeaderboardItemViewModelHost"},_.C("div",{class:"ytvlLiveLeaderboardItemViewModelRankNumberContainer"},_.C(_.j8,{className:"ytvlLiveLeaderboardItemViewModelRankNumber",text:function(){var m;return(m=c())==null?void 0:m.rank}})),_.C("div",{class:"ytvlLiveLeaderboardItemViewModelAvatar"},_.C(_.wi,{data:function(){return c().avatar}},{avatarViewModel:_.s8})),_.C("div",{class:"ytvlLiveLeaderboardItemViewModelContent"},
_.C(_.wi,{data:function(){return c().content}},{liveLeaderboardItemChannelContentViewModel:Gw6,
liveLeaderboardItemActionContentViewModel:$QC})),_.C(_.j8,{className:"ytvlLiveLeaderboardItemViewModelPoints",text:function(){var m;return(m=c())==null?void 0:m.points}}))},"ad"),"ytvl-live-leaderboard-item-view-model",{props:{data:_.vt}});_.lv(_.Q1(function(J){var c=J.data;return _.C("ytvl-live-viewer-leaderboard-item-view-model",{class:"ytvlLiveViewerLeaderboardItemViewModelHost"},_.C(_.j8,{className:"ytvlLiveViewerLeaderboardItemViewModelRankNumber",text:function(){var m,b;return(m=c())==null?void 0:(b=m.ranking)==null?void 0:b.rank}}),_.C("div",{class:"ytvlLiveViewerLeaderboardItemViewModelAvatar"},_.C(_.wi,{data:function(){return c().avatar}},{avatarViewModel:_.s8})),_.C(_.j8,{className:"ytvlLiveViewerLeaderboardItemViewModelChannelContent",
text:function(){var m,b;return(m=c())==null?void 0:(b=m.channelContent)==null?void 0:b.channelName}}),_.C(_.j8,{className:"ytvlLiveViewerLeaderboardItemViewModelPoints",
text:function(){var m;return(m=c())==null?void 0:m.points}}))},"bd"),"ytvl-live-viewer-leaderboard-item-view-model",{props:{data:_.vt}});var E56=_.Q1(function(J){J=_.ou(J,{wrapper:!1}).wrapper;return _.C(_.n,{cond:J,then:function(){return _.C("ytw-spinner",{class:"ytWebSpinnerWrapper"},_.C("div",{class:"ytWebSpinnerSpinner"}))},
else:function(){return _.C("ytw-spinner",{class:"ytWebSpinnerSpinner"})}})},"cd");
E56.idomCompat=!0;var v5u=["QR_CODE_RENDERER_STYLE_WEB_SHORTS_ENGAGEMENT_PANEL"],O8_=_.Q1(function(J){var c=J.data;var m=_.oN("div"),b=_.n2(function(){return c().command},void 0,"tJY20c");
_.ui(function(){b()&&_.ql(b(),{form:{element:m.value}})},"qs6Sof");
return _.C("div",{el:m,class:"YtQrCodeRendererHostContainer"},_.C(_.n,{cond:function(){return c().qrCodeImage},
then:function(x){return _.C(_.RA,{data:x,alt:"",className:"YtQrCodeRendererHostQrImage",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})},
else:function(){return _.C(_.n,{cond:function(){return c().spinner},
then:function(){return _.C(E56,null)}})}}),_.C(_.n,{cond:function(){return c().label},
then:function(x){return _.C(_.j8,{text:x,className:"YtQrCodeRendererHostLabel"})}}),_.C(_.n,{cond:function(){return c().labels},
then:function(x){return _.C("div",{class:"YtQrCodeRendererHostLabels"},_.C(_.Te,{each:x},function(P){return _.C(_.j8,{text:P})}))}}))},"ed");_.lv(_.Q1(function(J){var c=J.data;var m=_.n2(function(){return c().qrEntityKey},void 0,"joYCxd"),b=_.n2(function(){return c().deleteEntityOnDismiss},void 0,"x3yAde"),x=_.n2(function(){return c().command},void 0,"dJe1Re"),P=_.tT(W6G,m);
J=_.n2(function(){return c().qrCodeImage},void 0,"qM5dZe");
var p=_.n2(function(){return c().style&&v5u.includes(c().style)},void 0,"CaNEkf"),t=_.oN("yt-qr-code-renderer");
_.gv(t,{visibilityCallback:function(I){I&&x()&&_.ql(x())},
showOption:{calledOnce:!0,state:"visible"}});_.uN(function(){_.f2(function(){b()&&m()&&_.v9().dispatch(_.It("qrCodeEntity",m()))})});
return _.C("yt-qr-code-renderer",{class:"YtQrCodeRendererHost",el:t},_.C(_.n,{cond:p,then:function(){return _.C(_.n,{cond:P,then:function(I){return _.C(O8_,{data:I})}})}}),_.C(_.n,{cond:J,
then:function(I){return _.C(_.RA,{data:I,alt:""})}}))},"dd"),"yt-qr-code-renderer",{props:{data:_.vt}});_.AoQ=_.Q1(function(J){var c=J.data;var m=J.topbarOffset;var b,x=((b=_.BG().resolve(_.y6(_.Ev)))==null?void 0:b())||!1;return _.C("cinematic-container-view-model",{class:"ytCinematicContainerViewModelHost",style:function(){var P=c();var p,t,I=x?(p=P.config)==null?void 0:p.darkThemeBackgroundColor:(t=P.config)==null?void 0:t.lightThemeBackgroundColor;P=I?_.XB(I):void 0;P="background-color: "+P+";";m!==void 0&&(P+="top: -"+m()+"px;");return P},
"aria-hidden":!0},_.C(_.n,{cond:function(){var P,p,t;return!!((P=c().backgroundImageConfig)==null?0:(p=P.image)==null?0:(t=p.sources)==null?0:t.length)},
then:function(){return _.C(_.RA,{data:function(){var P;return(P=c().backgroundImageConfig)==null?void 0:P.image},
className:"ytCinematicContainerViewModelBackgroundImage",alt:""})}}),_.C("div",{class:"ytCinematicContainerViewModelBackgroundGradient",
style:function(){return"background: "+DN3(x,c().gradientColorConfig)+";"}}))},"fd");
_.AoQ.idomCompat=!0;var uw=_.Q1(function(J){var c=J.className;var m=J.data;var b=J.isOverlay;var x=J.maxLinesOverride;var P=J.useMediumText;J=_.oN("yt-description-preview-view-model");var p=function(){return m().alwaysShowTruncationText},t=function(){return m().truncationText},I=function(){return P!==void 0&&P()?"medium":"small"},a=function(){return b!==void 0&&b()?"overlay":"default"},k=function(){var Y,Z;
return(Z=(Y=_.L(m().rendererContext,_.KO))==null?void 0:Y.label)!=null?Z:""},H=_.M(_.K2(!1,void 0,"mkuWzb")),T=H.next().value,r=H.next().value;
_.vg(J,function(){return m().rendererContext});
H=_.Kq(function(){m().expandOnTap&&r(!T());return!1});
var W={};return _.C("yt-description-preview-view-model",{el:J,class:_.pq("yt-description-preview-view-model-wiz",c,(W["yt-description-preview-view-model-wiz--clickable"]=function(){var Y;return!((Y=_.L(m().rendererContext,Mif))==null||!Y.onTap)},W["yt-description-preview-view-model-wiz--is-overlay"]=b,W)),
"on:click":H},_.C(_.n,{cond:function(){return m().description},
then:function(Y){return _.C(_.n,{cond:T,then:function(){var Z={};return _.C("div",{class:_.pq("yt-description-preview-view-model-wiz__description",(Z["yt-description-preview-view-model-wiz__description--medium-text"]=P,Z))},_.C(_.j8,{text:Y}))},
else:function(){return _.C(Cf_,{text:Y,alwaysShowTruncationText:p,truncationText:t,maxLines:function(){var Z;return(Z=x==null?void 0:x())!=null?Z:m().maxLines},
textStyle:a,accessibilityLabel:k,textSize:I})}})}}))},"gd");
uw.idomCompat=!0;var R9Q=_.Q1(function(J){var c=J.data;var m=J.isOverlay;return _.C("channel-info-view-model",{class:"ytwChannelInfoViewModelHost"},_.C("div",{class:"ytwChannelInfoViewModelHostChannelHeader"},_.C(_.wi,{data:function(){return c().header}},{sectionHeaderViewModel:function(b){return _.C(_.m8,{data:b.data,
isOverlay:m})}})),_.C("div",{class:"ytwChannelInfoViewModelHostChannelButtons"},_.C(_.wi,{data:function(){return c().channelInfoButtons}},{flexibleActionsViewModel:DX})),_.C("div",{class:"ytwChannelInfoViewModelHostChannelDescription"},_.C(_.wi,{data:function(){return c().description}},{descriptionPreviewViewModel:function(b){return _.C(uw,{data:b.data,
isOverlay:m})}})))},"hd");
R9Q.idomCompat=!0;var o5a=_.Q1(function(J){var c=J.data;var m={};return _.C("factoid-view-model",{class:_.pq("ytwFactoidViewModelHost",(m.ytwFactoidViewModelHostOverlay=J.isOverlay,m))},_.C(_.j8,{text:function(){return c().value},
className:"ytwFactoidViewModelHostFactoidValue"}),_.C(_.j8,{text:function(){return c().label},
className:"ytwFactoidViewModelHostFactoidLabel"}))},"id");
o5a.idomCompat=!0;var Q4L=_.Q1(function(J){var c=J.data;var m=J.isOverlay;return _.C("factoids-row-view-model",{class:"ytwFactoidsRowViewModelHost"},_.C(_.wi,{data:function(){return c().factoids}},{factoidViewModel:function(b){return _.C(o5a,{data:b.data,
isOverlay:m})}}))},"jd");
Q4L.idomCompat=!0;_.e9Q=_.Q1(function(J){var c=J.data;var m=J.isOverlay;return _.C("course-metadata-view-model",{class:"ytwCourseMetadataViewModelHost"},_.C(_.wi,{data:function(){return c().items}},{channelInfoViewModel:function(b){return _.C("div",{class:"ytwCourseMetadataViewModelHostItem"},_.C(R9Q,{data:b.data,
isOverlay:m}))},
coursePerksViewModel:function(b){return _.C("div",{class:"ytwCourseMetadataViewModelHostItem"},_.C(fW_,{data:b.data,isOverlay:m}))},
descriptionPreviewViewModel:function(b){return _.C("div",{class:"ytwCourseMetadataViewModelHostItem"},_.C(uw,{data:b.data,isOverlay:m}))},
factoidsRowViewModel:function(b){return _.C("div",{class:"ytwCourseMetadataViewModelHostItem"},_.C(Q4L,{data:b.data,isOverlay:m}))},
progressViewModel:function(b){return _.C("div",{class:"ytwCourseMetadataViewModelHostItem"},_.C(YgQ,{data:b.data,isOverlay:m}))}}))},"kd");var j4B=_.Q1(function(J){return _.C("yt-flexible-container",{class:"ytFlexibleContainerHost"},_.C(_.wi,{data:function(){return J.data().content}},{courseMetadataViewModel:function(c){return _.C(_.e9Q,{data:c.data,
isOverlay:J.isOverlay})},
progressViewModel:function(c){return _.C(YgQ,{data:c.data})}}))},"ld");var F4z=_.Q1(function(J){var c=J.data;J=J.className;var m=_.oN("yt-dynamic-text-view-model"),b=function(){var P;return _.Ec((P=c())==null?void 0:P.rendererContext)},x={};
x=(x["dynamic-text-view-model-wiz"]=!0,x["dynamic-text-view-model-wiz--tappable"]=function(){return b()},x);
_.vg(m,function(){var P;return(P=c())==null?void 0:P.rendererContext});
return _.C("yt-dynamic-text-view-model",{el:m,role:function(){return b()?"link":void 0},
tabindex:function(){return b()?0:void 0},
class:_.pq(J,x)},_.C("h1",{class:"dynamic-text-view-model-wiz__h1","aria-label":function(){var P,p,t;return(t=(p=_.L((P=c())==null?void 0:P.rendererContext,_.KO))==null?void 0:p.label)!=null?t:""}},_.C(_.j8,{text:function(){return c().text},
userInput:!0})))},"md");
F4z.idomCompat=!0;_.lWQ=_.Q1(function(J){var c=J.data;var m=J.isPositionRelative;var b=_.Q5("yt-image-banner-view-model"),x=_.zHq("(max-width: 527.9px)"),P=function(){var p,t;return(t=(p=c())==null?void 0:p.style)!=null?t:"IMAGE_BANNER_STYLE_FULL_BLEED"};
J={};J=(J["yt-image-banner-view-model-wiz"]=!0,J["yt-image-banner-view-model-wiz--inset"]=function(){return uOt(P())},J["yt-image-banner-view-model-wiz--position-absolute"]=function(){return _.XD(!0)&&!(m==null?0:m())},J["yt-image-banner-view-model-wiz--small-inset"]=function(){return uOt(P())&&x()},J["yt-image-banner-view-model-wiz--tappable"]=function(){var p;
return _.XD(b.value)&&_.Ec((p=c())==null?void 0:p.rendererContext)},J);
_.vg(b,function(){var p;return(p=c())==null?void 0:p.rendererContext});
return _.C("yt-image-banner-view-model",{el:b,class:_.pq(J)},_.C(_.n,{cond:function(){var p;return(p=c())==null?void 0:p.image},
then:function(){return _.C(_.RA,{data:function(){return c().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),_.C(_.wi,{data:function(){var p;
return(p=c())==null?void 0:p.overlays}},{thumbnailHoverOverlayViewModel:r1}))},"nd");
_.lWQ.idomCompat=!0;var yoQ;yoQ=_.Q1(function(J){var c=J.condition;var m=J.content;return _.C(_.n,{cond:c,then:function(){return _.C("div",{class:"page-header-view-model-wiz__scroll-container"},m())},
else:function(){return m()}})},"od");
_.BXQ=_.Q1(function(J){var c=J.data;var m=J.noPadding;var b=J.enableBanner;var x=J.cinematicContainerTopbarOffset;var P=J.allowCinematicContainerOverflow;var p=J.displayAsSidebar;var t=J.displayAsPanel;var I=f9q(),a=function(){return!!c().image||!!c().animatedImage},k=function(){return!!c().background},H=function(){return(p==null?0:p())||(t==null?0:t())?1:I()},T=function(){return H()===1},r=function(){return T()||H()===2},W=function(){return H()===4},Y=function(){var Yt=c();
var Z3=!!c().heroImage;var oR=H(),Em=YrT(c()),X$=p==null?void 0:p(),Hu=!Yt.metadata,S6;if(S6=Z3?_.L(Yt.heroImage,fj$):_.L(Yt.animatedImage||Yt.image,fj$)){Yt=S6.style;var a2=S6.layoutMode;if(a2!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")if(S6=HLm(kqu(S6)),Z3)Z3=Wdq(oR,Yt,a2,S6,X$);else b:if(Hu)Z3=oR===1?{size:48}:{size:72};else switch(oR){case 1:Z3={size:72};break b;case 2:Z3={size:120};break b;default:Z3=Em<4?{size:120}:{size:160}}else Z3=void 0}else Z3={size:0};return Z3};
J={};J=_.pq((J["page-header-view-model-wiz"]=!0,J["page-header-view-model-wiz--no-padding"]=function(){return!(m==null||!m())},J["page-header-view-model-wiz--small-top-padding"]=function(){return T()&&!c().actions&&!(t==null?0:t())||H()===2&&!(a()||c().heroImage)},J["page-header-view-model-wiz--small-bottom-padding"]=function(){return r()&&!c().actions&&!(t==null?0:t())},J["page-header-view-model-wiz--cinematic-container-overflow-boundary"]=function(){return!(P==null?0:P())},J["page-header-view-model-wiz--display-as-sidebar"]=
p,J));
var Z={},d=_.pq((Z["page-header-view-model-wiz__page-header-headline"]=!0,Z["page-header-view-model-wiz__page-header-headline--page-header-headline-full-width-hero"]=function(){var Yt;return(Yt=Y())==null?void 0:Yt.allowFullWidth},Z)),G=function(){var Yt;
return r()&&!((Yt=Y())==null?0:Yt.allowFullWidth)},e=function(){return T()&&(!!c().heroImage||a())&&YrT(c())>0},A=function(){return e()&&(t==null?void 0:t())};
Z={};var l=_.pq((Z["page-header-view-model-wiz__page-header-title"]=!0,Z["page-header-view-model-wiz__page-header-title--page-header-title-large"]=function(){return!e()},Z["page-header-view-model-wiz__page-header-title--page-header-title-medium"]=function(){return e()&&!A()},Z["page-header-view-model-wiz__page-header-title--page-header-title-medium-force-small-layout"]=A,Z["page-header-view-model-wiz__page-header-title--page-header-title-overlay"]=k,Z));
Z={};var y=_.pq((Z["page-header-view-model-wiz__page-header-headline-image"]=!0,Z["page-header-view-model-wiz__page-header-headline-image--page-header-headline-image-hero"]=function(){return!!c().heroImage&&r()},Z));
Z={};var pG=_.pq((Z["page-header-view-model-wiz__page-header-banner-container"]=b,Z["page-header-view-model-wiz__page-header-banner-container--full-bleed"]=function(){var Yt;return(b==null?void 0:b())&&((Yt=_.L(c().banner,_.XY$))==null?void 0:Yt.style)==="IMAGE_BANNER_STYLE_FULL_BLEED"},Z));
Z={};var kt=_.pq((Z["page-header-view-model-wiz__page-header-content-metadata"]=!0,Z["page-header-view-model-wiz__page-header-content-metadata--page-header-content-metadata-overlay"]=k,Z));Z={};var nG=_.pq((Z["page-header-view-model-wiz__page-header-flexible-actions"]=!0,Z["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-top"]=function(){return!!c().metadata||r()},Z["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-bottom"]=
function(){return!r()},Z));
Z={};var fG=_.pq((Z["page-header-view-model-wiz__page-header-attribution"]=!0,Z["page-header-view-model-wiz__page-header-attribution--page-header-attribution-overlay"]=k,Z));return _.C("yt-page-header-view-model",{class:J},_.C(_.n,{cond:k,then:function(){return _.C("div",{class:"page-header-view-model-wiz__page-header-background"},_.C(_.wi,{data:function(){return c().background}},{cinematicContainerViewModel:function(Yt){return _.C(_.AoQ,{data:Yt.data,
topbarOffset:x})}}))}}),_.C(yoQ,{condition:function(){return!(p==null||!p())},
content:function(){return _.C("div",{class:"page-header-view-model-wiz__page-header-content"},_.C(_.n,{cond:function(){return(b==null?void 0:b())&&c().banner},
then:function(){return _.C("div",{class:pG},_.C(_.wi,{data:function(){return c().banner}},{imageBannerViewModel:_.lWQ}))}}),_.C("div",{class:d},_.C(_.n,{cond:a,
then:function(){return _.C(_.wi,{data:function(){var Yt;if(!(Yt=c().animatedImage)){Yt=c();if(a()){var Z3=Yt=Object.assign({},Yt),oR=H(),Em=YrT(c()),X$=Z3.image,Hu=_.L(X$,YqQ),S6=Hu==null?void 0:Hu.avatar,a2=_.L(S6,_.Oc);if(X$&&S6&&a2){switch(oR){case 1:a2.avatarImageSize="AVATAR_SIZE_XL";break;case 2:a2.avatarImageSize="AVATAR_SIZE_XXL";break;default:Em<4?a2.avatarImageSize="AVATAR_SIZE_XXL":a2.avatarImageSize="AVATAR_SIZE_XXXL"}_.w("web_enable_sink_page_header_view_model")&&(_.zg(S6,_.Oc,Object.assign({},
a2)),Hu.avatar=Object.assign({},S6),_.zg(X$,YqQ,Object.assign({},Hu)),Z3.image=Object.assign({},X$))}}Yt=Yt.image}return Yt}},{contentPreviewImageViewModel:function(Yt){return _.C(_.lF,{data:Yt.data,
className:y,imageSizeConfig:Y})},
decoratedAvatarViewModel:function(Yt){return _.C(_.Li,{data:Yt.data,className:y})}})}}),_.C(_.n,{cond:function(){return!!c().heroImage&&!G()},
then:function(){return _.C(_.wi,{data:function(){return c().heroImage}},{contentPreviewImageViewModel:function(Yt){return _.C(_.lF,{data:Yt.data,
className:y,imageSizeConfig:Y})}})}}),_.C("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.C(_.n,{cond:function(){return!!c().heroImage&&G()},
then:function(){return _.C("div",{class:"page-header-view-model-wiz__page-header-headline-image-hero-container"},_.C(_.wi,{data:function(){return c().heroImage}},{contentPreviewImageViewModel:function(Yt){return _.C(_.lF,{data:Yt.data,
className:y,imageSizeConfig:Y})}}))}}),_.C(_.wi,{data:function(){return c().title}},{dynamicTextViewModel:function(Yt){return _.C(F4z,{data:Yt.data,
className:l})}}),_.C(_.wi,{data:function(){return c().metadata}},{contentMetadataViewModel:function(Yt){return _.C(_.mn$,{data:Yt.data,
layout:function(){return T()?1:0},
className:kt,isOverlay:k,useMediumText:W})}}),_.C(_.n,{cond:function(){return c().description&&!T()},
then:function(){return _.C(_.wi,{data:function(){return c().description}},{descriptionPreviewViewModel:function(Yt){return _.C(uw,{data:Yt.data,
className:"page-header-view-model-wiz__page-header-description",isOverlay:k,maxLinesOverride:function(){return T()?void 0:1},
useMediumText:W})}})}}),_.C(_.n,{cond:function(){return c().attribution&&!r()},
then:function(){return _.C(_.wi,{data:function(){return c().attribution}},{attributionViewModel:function(Yt){return _.C(Fr_,{data:Yt.data,
className:fG,useMediumText:W})}})}}),_.C(_.n,{cond:function(){return c().actions&&!r()},
then:function(){return _.C(_.wi,{data:function(){return c().actions}},{flexibleActionsViewModel:function(Yt){return _.C(DX,{data:Yt.data,
layout:function(){return Xqt(H())},
className:nG})}})}}))),_.C("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.C(_.n,{cond:function(){return c().description&&T()},
then:function(){return _.C(_.wi,{data:function(){return c().description}},{descriptionPreviewViewModel:function(Yt){return _.C(uw,{data:Yt.data,
className:"page-header-view-model-wiz__page-header-description",isOverlay:k,maxLinesOverride:function(){return T()?void 0:1},
useMediumText:W})}})}}),_.C(_.n,{cond:function(){return c().attribution&&r()},
then:function(){return _.C(_.wi,{data:function(){return c().attribution}},{attributionViewModel:function(Yt){return _.C(Fr_,{data:Yt.data,
className:fG,useMediumText:W})}})}}),_.C(_.n,{cond:function(){return c().actions&&r()},
then:function(){return _.C(_.wi,{data:function(){return c().actions}},{flexibleActionsViewModel:function(Yt){return _.C(DX,{data:Yt.data,
layout:function(){return Xqt(H())},
className:nG})}})}})),_.C("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.C(_.wi,{data:function(){return c().bottomMetadataFlexibleContainer}},{flexibleContainer:function(Yt){return _.C(j4B,{data:Yt.data,
isOverlay:k})}})))}}))},"pd");
_.BXQ.idomCompat=!0;_.lv(_.Q1(function(J){var c=_.M(_.K2(!1,void 0,"vVRl3b")),m=c.next().value,b=c.next().value;return _.C("yt-official-card-view-model",{class:_.pq("ytOfficialCardViewModelHost",J.className),style:_.kx({"background-color":function(){var x,P=$Vu((x=J.data())==null?void 0:x.backgroundColor);return P?_.Zn(P):void 0}})},_.C(_.wi,{data:function(){return J.data().header}},{pageHeaderViewModel:function(x){return _.C(_.BXQ,{data:x.data,
noPadding:!0})}}),_.C(_.wi,{data:function(){return J.data().contents}},{horizontalShelfViewModel:function(x){return _.C(_.zT,{data:x.data,
ensureMarginTop:!0,horizontalShelfExperiments:{hideHeader:!0}})}}),_.C(_.n,{cond:m,
then:function(){return _.C("div",{class:"ytOfficialCardViewModelExpandedContent"},_.C(_.wi,{data:function(){return J.data().expandedContents}},{horizontalShelfViewModel:function(x){return _.C(_.zT,{data:x.data,
sizing:"MINI"})}}),_.C("div",{class:"ytOfficialCardViewModelCollapseButton"},_.C(_.wi,{data:function(){return J.data().collapseButton}},{buttonViewModel:function(x){return _.C(_.XU,{data:x.data,
onClick:function(){b(!m())}})}})))},
else:function(){return _.C("div",{class:"ytOfficialCardViewModelExpandButton"},_.C(_.wi,{data:function(){return J.data().expandButton}},{buttonViewModel:function(x){return _.C(_.XU,{data:x.data,
onClick:function(){b(!m())}})}}))}}))},"qd"),"yt-official-card-view-model",{props:{data:_.vt,
className:_.vt}});var Zje=_.Hg({buttonViewModel:_.XU});_.J5(qrm);_.xx(qrm,"ytw-search-friction-view-model",{propNames:["data"]});_.fx=_.Q1(function(J){var c=_.oN("markdown-div"),m,b=(m=_.BG().resolve(_.y6(_.Ev)))==null?void 0:m();_.ui(function(){var x=c.value;var P=new JqB,p=new Map(P.JSC$7312_sanitizerTable.globalAttributePolicies);p.set("style",{policyAction:4});P.JSC$7312_sanitizerTable=new Cd(P.JSC$7312_sanitizerTable.allowedElements,P.JSC$7312_sanitizerTable.elementPolicies,P.JSC$7312_sanitizerTable.allowedGlobalAttributes,p,P.JSC$7312_sanitizerTable.globallyAllowedAttributePrefixes);var t=["data-time"];if(t===void 0)p=
new Set(P.JSC$7312_sanitizerTable.globallyAllowedAttributePrefixes),p.add("data-"),P.JSC$7312_sanitizerTable=new Cd(P.JSC$7312_sanitizerTable.allowedElements,P.JSC$7312_sanitizerTable.elementPolicies,P.JSC$7312_sanitizerTable.allowedGlobalAttributes,P.JSC$7312_sanitizerTable.globalAttributePolicies,p);else{p=new Set(P.JSC$7312_sanitizerTable.allowedGlobalAttributes);t=_.M(t);for(var I=t.next();!I.done;I=t.next()){I=I.value;if(I.indexOf("data-")!==0)throw Error("qa`"+I);p.add(I)}P.JSC$7312_sanitizerTable=
new Cd(P.JSC$7312_sanitizerTable.allowedElements,P.JSC$7312_sanitizerTable.elementPolicies,p,P.JSC$7312_sanitizerTable.globalAttributePolicies,P.JSC$7312_sanitizerTable.globallyAllowedAttributePrefixes)}p=new Set(P.JSC$7312_sanitizerTable.allowedGlobalAttributes);p.add("class");P.JSC$7312_sanitizerTable=new Cd(P.JSC$7312_sanitizerTable.allowedElements,P.JSC$7312_sanitizerTable.elementPolicies,p,P.JSC$7312_sanitizerTable.globalAttributePolicies,P.JSC$7312_sanitizerTable.globallyAllowedAttributePrefixes);
_.G$(x,_.FiJ(P.build(),Sro(J.text())));hHo(c.value)},"FI2gYe");
m={};return _.C("div",null,_.C("markdown-div",{class:_.pq("ytwMarkdownDivHost",(m.ytwMarkdownDivDark=b,m.ytwMarkdownDivHostSmall=function(){var x;return((x=J.isSmallText)==null?void 0:x.call(J))||!1},m)),
el:c}))},"rd");
_.fx.idomCompat=!0;var g5$=_.Q1(function(J){var c=J.imageData;var m=_.Ru(J.isInList,!1),b=function(){return m()?{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 _.C("div",{class:"ytwGenAiRichTextViewModelImageContent"},_.C(_.n,{cond:function(){return c().image},
then:function(x){return _.C(_.RA,{data:x,alt:function(){return b().alt},
contentMode:function(){return b().contentMode},
targetWidth:function(){return b().targetWidth},
targetHeight:function(){return b().targetHeight},
className:function(){return b().className}})}}),_.C("div",{class:"ytwGenAiRichTextViewModelImageMetadata"},_.C("div",{class:_.pq("ytwGenAiRichTextViewModelImageTitle","ytwGenAiRichTextViewModelText")},_.C(_.j8,{text:function(){return c().title}})),_.C(_.Te,{each:function(){var x;
return(x=c().description)!=null?x:[]}},function(x){return _.C("div",{class:"ytwGenAiRichTextViewModelImageDescription"},_.C(Yi,{content:x}))})))},"sd"),JuC=_.Q1(function(J){var c=J.list;
var m=function(){var b;return(b=c().items)!=null?b:[]};
return _.C("div",{class:"ytwGenAiRichTextViewModelListContent"},_.C(_.n,{cond:function(){return c().title},
then:function(b){return _.C("div",{class:_.pq("ytwGenAiRichTextViewModelListTitle","ytwGenAiRichTextViewModelText")},_.C(_.j8,{text:b}))}}),_.C(_.n,{cond:function(){return c().style==="GEN_AI_RICH_TEXT_LIST_STYLE_BULLET"},
then:function(){return _.C("ul",{class:"ytwGenAiRichTextViewModelBulletedList"},_.C(_.Te,{each:m},function(b){return _.C("li",{class:"ytwGenAiRichTextViewModelBulletedListItem"},_.C(Yi,{content:b,isInList:!0}))}))}}),_.C(_.n,{cond:function(){return c().style==="GEN_AI_RICH_TEXT_LIST_STYLE_NUMBERED"},
then:function(){return _.C("ol",{class:"ytwGenAiRichTextViewModelNumberedList"},_.C(_.Te,{each:m},function(b){return _.C("li",{class:"ytwGenAiRichTextViewModelNumberedListItem"},_.C(Yi,{content:b,isInList:!0}))}))}}),_.C(_.n,{cond:function(){return c().style==="GEN_AI_RICH_TEXT_LIST_STYLE_IMAGE"},
then:function(){return _.C("div",{class:"ytwGenAiRichTextViewModelImageList"},_.C(_.Te,{each:m},function(b){return _.C("div",{class:"ytwGenAiRichTextViewModelListItem"},_.C(Yi,{content:b,isInList:!0}))}))}}))},"td"),cuC=_.Q1(function(J){var c=J.table;
return _.C("table",{class:"ytwGenAiRichTextViewModelTableContent"},_.C("thead",null,_.C("tr",null,_.C(_.Te,{each:function(){var m,b;return(b=(m=c().header)==null?void 0:m.cells)!=null?b:[]}},function(m){return _.C("th",{class:"ytwGenAiRichTextViewModelTableHeaderCell"},_.C(_.Te,{each:function(){return m.contents}},function(b){return _.C(Yi,{content:b})}))}))),_.C("tbody",null,_.C(_.Te,{each:function(){var m;
return(m=c().rows)!=null?m:[]}},function(m){return _.C("tr",null,_.C(_.Te,{each:function(){return m.cells}},function(b){return _.C("th",{class:"ytwGenAiRichTextViewModelTableCell"},_.C(_.Te,{each:function(){return b.contents}},function(x){return _.C(Yi,{content:x})}))}))})))},"ud"),Yi=_.Q1(function(J){var c=J.content;
var m=_.Ru(J.isInList,!1),b=function(){var x,P;return(P=(x=c().contentBlock)==null?void 0:x.contents)!=null?P:[]};
return _.C("div",{class:"ytwGenAiRichTextViewModelRichContent"},_.C(_.n,{cond:function(){return c().text},
then:function(x){return _.C(_.j8,{className:"ytwGenAiRichTextViewModelText",text:x})}}),_.C(_.n,{cond:function(){return c().image},
then:function(x){return _.C(g5$,{imageData:x,isInList:m})}}),_.C(_.n,{cond:function(){return c().list},
then:function(x){return _.C(JuC,{list:x})}}),_.C(_.n,{cond:function(){return c().contentBlock},
then:function(){return _.C("div",{class:"ytwGenAiRichTextViewModelContentBlock"},_.C(_.Te,{each:b},function(x){return _.C(Yi,{content:x,isInList:!1})}))}}),_.C(_.n,{cond:function(){return c().table},
then:function(x){return _.C(cuC,{table:x})}}))},"vd"),mYa=_.Q1(function(J){var c={};
c=_.tP("ytwGenAiRichTextViewModelHost",(c.ytwGenAiRichTextViewModelGreenLinks=["green_track","underline"].includes(_.mG("search_overview_link_style")),c));return _.C("gen-ai-rich-text-view-model",{class:c},_.C(Yi,{content:function(){return J.data().content}}))},"wd");_.J5(dNe);_.J5(XW);_.bBC=_.Q1(function(J){var c=J.data;var m=function(){var Y;return((Y=c().loadingUi)!=null?Y:"OVERVIEW_ANSWER_LOADING_UI_DEFAULT").replace("OVERVIEW_ANSWER_LOADING_UI_","")},b=function(){return c().isLoading&&(m()==="UNSPECIFIED"||m()==="GHOST_CARD")},x=function(){return!c().isLoading},P=function(){return!!c().content&&!c().contents},p=function(){return!!c().contents},t=function(){return!!c().nextQueryButtons},I=function(){return c().isLoading&&m()==="INVISIBLE"},a=function(){var Y,Z;
return(Z=(Y=c().headerIcon)==null?void 0:Y.iconType)!=null?Z:""},k=function(){var Y;
return(Y=c().content)!=null?Y:""},H=function(){return!!c().sourcesSection},T,r=!((T=_.BG().resolve(_.y6(_.Ev)))==null||!T()),W=_.n2(function(){var Y=[],Z=c().contents;
if(Z)for(var d=0;d<Z.length;d++){var G=_.L(Z&&Z[d],Gc2);G&&Y.push(G)}return Y},void 0,"ycU97e");
_.uN(function(){c().isLoading||_.Y2("so_re",void 0,"search_overview_answer")});
return _.C("ytd-overview-answer-view-model",{class:function(){var Y={};Y=(Y.ytdOverviewAnswerViewModelHost=!0,Y.ytdOverviewAnswerViewModelDarkBackground=r&&!I(),Y.ytdOverviewAnswerViewModelLightBackground=!r&&!I(),Y);return _.tP(Y)}},_.C(_.n,{cond:function(){return!I()},
then:function(){return _.C(_.cG,null,_.C("h2",null,_.C("div",{class:"ytdOverviewAnswerViewModelHeader"},_.C(_.n,{cond:a,then:function(Y){return _.C("div",{class:"ytdOverviewAnswerViewModelHeaderIcon"},_.C(_.HP,{icon:Y}))}}),_.C("div",{class:"ytdOverviewAnswerViewModelHeaderText"},_.C("div",{class:"ytdOverviewAnswerViewModelHeaderTitle"},function(){return c().headerText}),_.C("div",{class:"ytdOverviewAnswerViewModelHeaderSubtext"},_.C(_.j8,{text:function(){return c().headerSubtext}}))))),_.C(_.n,{cond:b,
then:function(){return dNe()}}),_.C(_.n,{cond:x,
then:function(){return _.C(_.cG,null,_.C(_.n,{cond:P,then:function(){return _.C("div",{class:"ytdOverviewAnswerViewModelText"},_.C(_.fx,{text:k,isSmallText:!0}))}}),_.C(_.n,{cond:p,
then:function(){return _.C("div",{class:"ytdOverviewAnswerViewModelRichText"},_.C(_.Te,{each:W},function(Y){return _.C(mYa,{data:Y})}))}}),_.C(_.n,{cond:t,
then:function(){return _.C("div",{class:"ytdOverviewAnswerViewModelNextQueryButtons"},_.C(_.wi,{data:function(){return c().nextQueryButtons}},{buttonViewModel:function(Y){return _.C(_.XU,{data:Y.data,
className:"ytdOverviewAnswerViewModelNextQueryButton"})},
horizontalShelfViewModel:_.zT}))}}),_.C("div",{class:"ytdOverviewAnswerViewModelSecondaryHeader"},_.C("div",{class:"ytdOverviewAnswerViewModelFeedbackButtons"},_.C(_.n,{cond:function(){return!!_.L(c().likeButtonViewModel,_.Wg)&&!!_.L(c().dislikeButtonViewModel,_.z9)},
then:function(){return _.C("div",{class:"ytdOverviewAnswerViewModelBottomButtonsContainer"},_.C(_.zr,{data:function(){return _.L(c().likeButtonViewModel,_.Wg)},
disableIconAnimation:!0}),_.C(_.WT,{data:function(){return _.L(c().dislikeButtonViewModel,_.z9)}}))}})),_.C(_.n,{cond:function(){var Y;
return(Y=c().sourcesSection)==null?void 0:Y.headerText},
then:function(Y){return _.C("div",{class:"ytdOverviewAnswerViewModelSourcesHeaderText"},_.C(_.j8,{text:Y}))}})),_.C(_.n,{cond:H,
then:function(){return _.C("div",{class:"ytdOverviewAnswerViewModelSources"},_.C(_.wi,{data:function(){var Y;return(Y=c().sourcesSection)==null?void 0:Y.sourcesShelf}},{buttonViewModel:_.XU,
horizontalShelfViewModel:function(Y){return _.C(_.zT,{data:Y.data,includeMargin:!0,hasPeek:!0})}}))}}),_.C(_.n,{cond:function(){return c().disclaimerText},
then:function(){return _.C("div",{class:"ytdOverviewAnswerViewModelDisclaimer"},_.C(_.j8,{text:function(){return c().disclaimerText},
linkInheritColor:!0}))}}))}}))}}))},"xd");var xYz=_.Q1(function(J){var c=J.data;var m=J.active;var b=_.oN("transcript-segment-view-model");_.ui(function(){var x,P,p,t=((x=_.BG().resolve(_.y6(_.Ev)))==null?0:x())?(P=c())==null?void 0:P.darkThemeColorPalette:(p=c())==null?void 0:p.lightThemeColorPalette;t&&(t.additiveBackground&&b.value.style.setProperty("--timestamp-active-background-color",_.Zn(t.additiveBackground)),t.textSecondary&&b.value.style.setProperty("--timestamp-active-color",_.XB(t.textSecondary)))},"KHcbwb");
J={};return _.C("transcript-segment-view-model",{class:_.pq("ytwTranscriptSegmentViewModelHost",(J.ytwTranscriptSegmentViewModelHostActive=m,J.ytwTranscriptSegmentViewModelHostModern=_.w("enable_timeline_view_modern_transcript")||_.w("enable_timeline_view_modern_transcript_fe"),J)),el:b},_.C(_.n,{cond:function(){var x;return(x=c())==null?void 0:x.timestamp},
then:function(x){var P={};return _.C("div",{class:_.pq("ytwTranscriptSegmentViewModelTimestamp",(P.ytwTranscriptSegmentViewModelTimestampActive=m,P))},x)}}),_.C(_.j8,{text:function(){var x,P,p;
return(p=(x=c())==null?void 0:x.attributedText)!=null?p:{content:(P=c())==null?void 0:P.simpleText}},
linkInheritColor:!0}))},"yd");var VCZ=_.Q1(function(J){var c=J.data;return _.C("div",{class:"yt-video-attributes-section-view-model__header"},_.C("h3",{class:"yt-video-attributes-section-view-model__title"},function(){return c().headerTitle}),_.C(_.n,{cond:function(){return c().headerSubtitle},
then:function(){return _.C("span",{class:"yt-video-attributes-section-view-model__subtitle"},function(){return c().headerSubtitle})}}))},"zd"),P8a=_.Q1(function(J){function c(Y){return Math.max(Math.min(Y,0),a()-t())}
var m=J.data;var b,x=_.oN("div",function(Y){if(_.w("web_metadata_carousel_elref_bugfix")){var Z=function(){k(Y.clientWidth)};
Z();window.ResizeObserver&&(b=new ResizeObserver(Z),b.observe(Y))}}),P=_.oN("div",function(Y){I(Y.scrollWidth)}),p=_.M(_.K2(0,void 0,"I9GbH"));
J=p.next().value;p=p.next().value;var t=J,I=p;p=_.M(_.K2(0,void 0,"eQAn5b"));J=p.next().value;p=p.next().value;var a=J,k=p;J=_.M(_.K2(0,void 0,"VU3lg"));var H=J.next().value,T=J.next().value;_.uN(function(){if(!_.w("web_metadata_carousel_elref_bugfix")){var Y=function(){I(P.value.scrollWidth);k(x.value.clientWidth)};
Y();if(window.ResizeObserver){var Z=new ResizeObserver(Y);Z.observe(x.value);_.f2(function(){Z.disconnect()})}}});
_.f2(function(){if(_.w("web_metadata_carousel_elref_bugfix")){var Y;(Y=b)==null||Y.disconnect()}});
var r=function(){T(c(H()+a()))},W=function(){T(c(H()-a()))};
return _.C("yt-video-attributes-section-view-model",null,_.C("div",{class:"yt-video-attributes-section-view-model"},_.C(_.n,{cond:function(){return m().headerTitle},
then:function(){return _.C(VCZ,{data:m})}}),_.C("div",{class:_.pq("yt-video-attributes-section-view-model__video-attributes","yt-video-attributes-section-view-model__scroll-container"),
el:x},_.C("div",{class:"yt-video-attributes-section-view-model__video-attributes-container",style:_.kx({transform:function(){var Y=H();_.Ub("HTML_DIR")==="rtl"&&(Y*=-1);return"translateX("+Y+"px)"}}),
el:P},_.C(_.wi,{data:function(){return m().videoAttributeViewModels}},{videoAttributeViewModel:agZ}))),_.C(_.wi,{data:function(){return m().footerButton}},{buttonViewModel:function(Y){return _.C(_.XU,{data:Y.data,
className:"yt-video-attributes-section-view-model__footer-button"})}}),_.C(_.n,{cond:function(){return H()<0&&m().previousButton},
then:function(){return _.C("div",{class:"yt-video-attributes-section-view-model__left-arrow"},_.C(_.wi,{data:function(){return m().previousButton}},{buttonViewModel:function(Y){return _.C(_.XU,{data:Y.data,
onClick:r})}}))}}),_.C(_.n,{cond:function(){return H()>a()-t()&&m().nextButton},
then:function(){return _.C("div",{class:"yt-video-attributes-section-view-model__right-arrow"},_.C(_.wi,{data:function(){return m().nextButton}},{buttonViewModel:function(Y){return _.C(_.XU,{data:Y.data,
onClick:W})}}))}})))},"Ad");
P8a.idomCompat=!0;var MCz=_.Q1(function(J){var c=J.data;var m=J.active;var b={},x={};return _.C("timeline-item-view-model",{class:_.pq("ytwTimelineItemViewModelHost",(b.ytwTimelineItemViewModelHostChapterChild=J.chapterChild,b.ytwTimelineItemViewModelModern=_.w("enable_timeline_view_modern_transcript")||_.w("enable_timeline_view_modern_transcript_fe"),b))},_.C("div",{class:"ytwTimelineItemViewModelTimestampSection"},_.C("div",{class:_.pq("ytwTimelineItemViewModelTimestamp",(x.ytwTimelineItemViewModelTimestampActive=
m,x))},function(){return c().timestamp})),_.C("div",{class:"ytwTimelineItemViewModelContentItems"},_.C(_.wi,{data:function(){return c().contentItems}},{transcriptSegmentViewModel:function(P){return _.C(xYz,{data:P.data,
active:m})},
videoAttributesSectionViewModel:P8a})))},"Bd");var phQ=_.Q1(function(J){var c=J.data;J={};return _.C("timeline-chapter-view-model",{class:_.pq("ytwTimelineChapterViewModelHost")},_.C("div",{class:_.pq("ytwTimelineChapterViewModelTitle",(J.ytwTimelineChapterViewModelModern=_.w("enable_timeline_view_modern_transcript")||_.w("enable_timeline_view_modern_transcript_fe"),J))},function(){return c().title}),_.C(_.wi,{data:function(){return c().contents}},{timelineItemViewModel:function(m){return _.C(MCz,{data:m.data,
chapterChild:!0})},
videoAttributesSectionViewModel:function(m){return _.C(P8a,{data:m.data})}}))},"Cd");var Nq2=_.Q1(function(J){var c=J.data;var m=_.oN("macro-markers-panel-item-view-model"),b=_.tT(_.wNt,function(){var P;return(P=c().markersEngagementPanelSyncEntityKey)!=null?P:""}),x=function(){var P;
return((P=b())==null?void 0:P.activeItemIndex)===c().index};
return _.C("macro-markers-panel-item-view-model",{class:_.pq("ytwMacroMarkersPanelItemViewModelHost",{"is-active":x}),el:m,"on:click":_.Kq(function(P){var p,t,I,a,k;return _.N(function(H){if(H.nextAddress==1)return P.stopPropagation(),_.$M(_.di(P),m.value,["A".toString(),"BUTTON".toString()])?H.return():(p=_.ZG(c().onTap))?_.K(H,_.mf(),2):H.return();t=H.yieldResult;a=(I=_.L(p,_.Rz))==null?void 0:I.startTimeSeconds;a===void 0||(k=t)!=null&&k.seekTo(a,!0);_.tD(H)})}),
tabindex:0},_.C(_.wi,{data:function(){var P;return(P=c())==null?void 0:P.item}},{timelineChapterViewModel:function(P){return _.C(phQ,{data:P.data,
active:x})},
timelineItemViewModel:function(P){return _.C(MCz,{data:P.data,active:x})},
videoAttributeViewModel:agZ}))},"Dd");
Nq2.idomCompat=!0;_.lv(Nq2,"macro-markers-panel-item-view-model",{props:{data:_.vt}});_.lv(P8a,"yt-video-attributes-section-view-model",{props:{data:_.vt}});var tC$=_.Q1(function(J){var c=function(){var m,b,x;return(x=(m=J.data().leadingLogoAccessibility)==null?void 0:(b=m.accessibilityData)==null?void 0:b.label)!=null?x:""};
return _.C("ytw-fantasy-section-header-view-model",{class:"ytwFantasySectionHeaderViewModelHost"},_.C(_.n,{cond:function(){return J.data().leadingLogo},
then:function(m){return _.C(_.RA,{className:"ytwFantasySectionHeaderViewModelLogo",data:m,alt:c})}}),_.C("div",{class:"ytwFantasySectionHeaderViewModelMetadata"},_.C(_.j8,{className:"ytwFantasySectionHeaderViewModelTitle",
text:function(){return J.data().title}}),_.C(_.j8,{className:"ytwFantasySectionHeaderViewModelSubtitle",
text:function(){return J.data().subtitle}})),_.C(_.wi,{data:function(){return J.data().trailingButton}},{buttonViewModel:function(m){return _.C(_.XU,{data:m.data,
className:"ytwFantasySectionHeaderViewModelTrailingButton"})}}))},"Ed");var IE_=_.Q1(function(J){var c={};c=_.pq("ytwFantasyTeamViewModelHost",(c.ytwFantasyTeamViewModelCompact=function(){var x;return!((x=J.compact)==null||!x.call(J))},c.ytwFantasyTeamViewModelUser=function(){return J.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_USER_TEAM"},c.ytwFantasyTeamViewModelOpponent=function(){return J.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_OPPONENT_USER_TEAM"},c));
var m=function(){var x,P,p;return(p=(x=J.data().teamLogoAccessibility)==null?void 0:(P=x.accessibilityData)==null?void 0:P.label)!=null?p:""},b=_.tT(sGq,function(){return J.data().teamEntityKey});
return _.C("ytw-fantasy-team-view-model",{class:c},_.C(_.n,{cond:function(){return J.data().teamLogo},
then:function(x){return _.C(_.RA,{className:"ytwFantasyTeamViewModelLogo",data:x,alt:m})}}),_.C("div",{class:"ytwFantasyTeamViewModelMetadata"},_.C("div",{class:"ytwFantasyTeamViewModelHeader"},_.C(_.j8,{className:"ytwFantasyTeamViewModelScore",
text:function(){var x;return(x=b())==null?void 0:x.score}}),_.C(_.HP,{icon:function(){var x;
return(x=b())==null?void 0:x.projectedScoreTrendingIcon},
className:"ytwFantasyTeamViewModelProjectedScoreIcon",size:12,active:!0}),_.C(_.j8,{className:"ytwFantasyTeamViewModelProjectedScore",text:function(){var x;return(x=b())==null?void 0:x.projectedScore}})),_.C(_.j8,{className:"ytwFantasyTeamViewModelPrimaryText",
text:function(){return J.data().primaryText}}),_.C(_.j8,{className:"ytwFantasyTeamViewModelSecondaryText",
text:function(){return J.data().secondaryText}}),_.C(_.j8,{className:"ytwFantasyTeamViewModelTertiaryText",
text:function(){return J.data().tertiaryText}})),_.C(_.j8,{className:"ytwFantasyTeamViewModelCompactScore",
text:function(){var x;return(x=b())==null?void 0:x.score}}))},"Fd");_.lv(_.Q1(function(J){return _.C("fantasy-league-summary-view-model",{class:"ytwFantasyLeagueSummaryViewModelHost"},_.C("div",{class:"ytwFantasyLeagueSummaryViewModelHeader"},_.C(_.wi,{data:function(){return J.data().summaryHeader}},{fantasySectionHeaderViewModel:tC$})),_.C(_.wi,{data:function(){return J.data().userTeam}},{fantasyTeamViewModel:IE_}),_.C(_.wi,{data:function(){return J.data().opponentTeam}},{fantasyTeamViewModel:IE_}))},"Gd"),"fantasy-league-summary-view-model",{props:{data:_.vt}});var KW6=_.Q1(function(J){var c=_.ou(J,{shape:{},useCustomTabRenderable:!1}),m=c.shape;c=c.useCustomTabRenderable;var b=J.customTabRenderable,x=function(){return m().disabled},P=function(){return m().selected},p=function(){return m().title},t=function(){return m().icon},I=_.oN("yt-tab-shape");
J=_.Kq(function(H){var T;if(!x()&&((T=m().aTagConfig)==null?0:T.onclick))m().aTagConfig.onclick(H);return!1});
var a=_.Kq(function(H){if(H.key==="Enter"||H.key==="ArrowUp"||H.key==="ArrowDown")H.preventDefault(),I.value.click();return!1}),k={};
return _.C("yt-tab-shape",{class:_.pq("yt-tab-shape-wiz",function(){return m().className},(k["yt-tab-shape-wiz__tab--last-tab"]=function(){return m().isLastTab},k["yt-tab-shape-wiz--host-disabled"]=x,k["yt-tab-shape-wiz--host-clickable"]=!b,k)),
role:b?void 0:"tab","aria-selected":P!=null?P:!1,"aria-disabled":x,tabindex:b?void 0:0,"on:click":J,"on:keydown":a,el:I,"tab-identifier":function(){return m().identifier},
"tab-title":p},_.C(_.n,{cond:c,then:function(){return b()},
else:function(){var H={},T={};return _.C(_.cG,null,_.C("div",{class:_.pq("yt-tab-shape-wiz__tab",(H["yt-tab-shape-wiz__tab--tab-selected"]=P,H))},_.C(_.n,{cond:t,then:function(r){return _.C(_.HP,{className:"yt-tab-shape-wiz__tab-icon",icon:function(){return r().iconType}})}}),p),_.C("div",{class:_.pq("yt-tab-shape-wiz__tab-bar",(T["yt-tab-shape-wiz__tab-bar--tab-bar-selected"]=P,T))}))}}))},"Hd");
KW6.idomCompat={callbacks:{customTabRenderable:!0}};_.aEa=_.Q1(function(J){var c=J.shape;J=_.M(_.K2(48,void 0,"r9IBlb"));var m=J.next().value,b=J.next().value;J=_.M(_.K2(0,void 0,"Bd7rmd"));var x=J.next().value,P=J.next().value,p=function(){return c().tabs},t=_.oN("yt-tab-group-shape"),I=function(){var a,k;
return(k=(a=p())==null?void 0:a.findIndex(function(H){return H.selected}))!=null?k:-1};
_.uN(function(){var a=t.value.querySelectorAll("yt-tab-shape"),k=I()>-1?a[I()]:void 0;_.ft.addJob(function(){b((k==null?void 0:k.getBoundingClientRect().width)||0)},8,0)});
_.ui(function(){var a=I(),k=_.ft.addJob(function(){var H,T=((H=t.value)==null?void 0:H.querySelectorAll("yt-tab-shape"))||[],r;b(((r=a>-1?T[a]:void 0)==null?void 0:r.getBoundingClientRect().width)||0);for(r=H=0;r<a;r++)H+=T[r].offsetWidth+24;_.Ub("HTML_DIR")==="rtl"&&(H=-H);P(H)},8,0);
_.f2(function(){_.ft.cancelJob(k)})},"EHixkc");
J={};return _.C("yt-tab-group-shape",{class:_.pq("yt-tab-group-shape-wiz",(J["yt-tab-group-shape-wiz--overflow-hidden"]=function(){return c().isOverflowHidden},J)),
el:t},_.C(_.n,{cond:p,then:function(a){return _.C(_.cG,null,_.C("div",{class:"yt-tab-group-shape-wiz__tabs",role:"tablist"},_.C(_.Te,{each:a},function(k,H){return _.C(KW6,{shape:function(){return Object.assign({},k,{isLastTab:H()===a().length-1})},
customTabRenderable:k.customTabRenderable,useCustomTabRenderable:!!k.customTabRenderable})})),_.C(C8z,{width:m,
sliderOffset:x}))}}))},"Id");
_.aEa.idomCompat=!0;var C8z=_.Q1(function(J){var c=_.Ru(J.sliderOffset,0),m=J.width;return _.C("div",{class:"yt-tab-group-shape-wiz__slider",style:_.kx({width:function(){return m()+"px"},
transform:function(){return"translateX("+c()+"px)"}})})},"Jd");var kNQ=_.Q1(function(J){var c=function(){var P,p,t;return(t=(P=J.data().playerLogoAccessibility)==null?void 0:(p=P.accessibilityData)==null?void 0:p.label)!=null?t:""},m=_.tT(L6u,function(){return J.data().playerEntityKey}),b={};
b=_.pq("ytwFantasyPlayerViewModelHost",(b.ytwFantasyPlayerViewModelPlaying=function(){var P;return!((P=m())==null||!P.isPlayerPlaying)},b.ytwFantasyPlayerViewModelOnField=function(){var P;
return((P=m())==null?void 0:P.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_ON_FIELD"},b.ytwFantasyPlayerViewModelRedZone=function(){var P;
return((P=m())==null?void 0:P.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_RED_ZONE"},b));
var x=function(){var P,p,t,I=((P=_.BG().resolve(_.y6(_.Ev)))==null?0:P())?(p=J.data().playerLogoBackgroundColor)==null?void 0:p.darkTheme:(t=J.data().playerLogoBackgroundColor)==null?void 0:t.lightTheme;return I===void 0?"":_.Zn(I)};
return _.C("ytw-fantasy-player-view-model",{class:b},_.C(_.n,{cond:function(){return J.data().playerLogo},
then:function(P){return _.C("div",{class:"ytwFantasyPlayerViewModelLogo"},_.C("div",{class:"ytwFantasyPlayerViewModelLogoRing"},_.C(_.RA,{className:"ytwFantasyPlayerViewModelLogoImage",style$:_.kx({"background-color":x}),data:P,alt:c})),_.C("div",{class:"ytwFantasyPlayerViewModelInGameStatus"},_.C(_.HP,{icon:"FOOTBALL_FILLED",className:"ytwFantasyPlayerViewModelInGameStatusIcon"})))}}),_.C("div",{class:"ytwFantasyPlayerViewModelMetadata"},_.C("div",{class:"ytwFantasyPlayerViewModelHeader"},_.C(_.j8,
{className:"ytwFantasyPlayerViewModelName",
text:function(){var P;return(P=J.data())==null?void 0:P.playerNameText}}),_.C(_.j8,{className:"ytwFantasyPlayerViewModelDescription",
text:function(){var P;return(P=J.data())==null?void 0:P.playerDescriptionText}})),_.C("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.C(_.j8,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var P;return(P=m())==null?void 0:P.gamePeriodText}}),_.C(_.j8,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var P;return(P=J.data())==null?void 0:P.opponentTeamText}}),_.C(_.j8,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var P;return(P=m())==null?void 0:P.gameStatusText}}),_.C(_.j8,{className:_.pq("ytwFantasyPlayerViewModelSecondaryItem","ytwFantasyPlayerViewModelStatus"),
text:function(){var P;return(P=m())==null?void 0:P.playerStatusText}})),_.C("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.C(_.j8,{text:function(){var P;
return(P=m())==null?void 0:P.playerStatsText}}))),_.C(_.j8,{className:"ytwFantasyPlayerViewModelScore",
text:function(){var P;return(P=m())==null?void 0:P.fantasyScore}}))},"Kd");var HBa=_.Q1(function(J){return _.C("ytw-fantasy-roster-view-model",{class:"ytwFantasyRosterViewModelHost"},_.C(_.n,{cond:function(){return J.data().players},
then:function(c){return _.C(_.wi,{data:c},{fantasyPlayerViewModel:kNQ})}}))},"Ld");var iBj=_.Q1(function(J){var c=_.M(_.aO(function(){var x;return(x=J.data().selectedTabIdentifierKey)!=null?x:""})),m=c.next().value,b=c.next().value;
_.WG(function(){var x;(x=J.setSelectedTabSignal)==null||x.call(J,m)});
return _.C("yt-tabbed-view-model",{class:"ytTabbedViewModelHost"},_.C("div",{class:"ytTabbedViewModelTabGroup"},_.C(_.aEa,{shape:function(){var x=J.data(),P=[],p={tabs:P};if(!x.tabs)return p;x=_.M(x.tabs);for(var t=x.next(),I={};!t.done;I={tabViewModel:void 0},t=x.next())if(I.tabViewModel=_.L(t.value,jeC),I.tabViewModel){var a=t=void 0;P.push({aTagConfig:{onclick:function(k){return function(){var H;b((H=k.tabViewModel.tabIdentifier)!=null?H:"")}}(I)},
identifier:I.tabViewModel.tabIdentifier,selected:m()===I.tabViewModel.tabIdentifier,title:(a=(t=I.tabViewModel.title)==null?void 0:t.content)!=null?a:""})}return p}})),_.C(_.wi,{data:function(){var x,P=_.M((x=J.data().tabs)!=null?x:[]);
for(x=P.next();!x.done;x=P.next())if((x=_.L(x.value,jeC))&&x.tabIdentifier===m())return x.content}},{fantasyRosterViewModel:HBa}))},"Md");_.lv(_.Q1(function(J){var c=_.M($NJ()),m=c.next().value,b=c.next().value;return _.C("ytw-fantasy-matchup-view-model",{class:"ytwFantasyMatchupViewModelHost"},_.C(_.j8,{className:"ytwFantasyMatchupViewModelTitle",text:function(){return J.data().title}}),_.C(_.n,{cond:function(){return J.data().tabbedViewModel},
then:function(x){return _.C(_.wi,{data:x},{tabbedViewModel:function(P){return _.C(iBj,{data:P.data,setSelectedTabSignal:b})}})}}),_.C(_.n,{cond:function(){var x,P=(x=_.L(J.data().tabbedViewModel,FOQ))==null?void 0:x.tabs;
x=_.L(P==null?void 0:P[0],jeC);P=_.L(P==null?void 0:P[1],jeC);var p=x==null?void 0:x.tabIdentifier;if(m()===p){var t,I;if(!((t=_.L(x==null?void 0:x.content,j5u))==null?0:(I=t.players)==null?0:I.length))return J.data().noUserTeamPlayersText}else{var a,k;if(!((a=_.L(P==null?void 0:P.content,j5u))==null?0:(k=a.players)==null?0:k.length))return J.data().noOpponentTeamPlayersText}},
then:function(x){return _.C(_.j8,{className:"ytwFantasyMatchupViewModelNoPlayersMessage",text:x})}}))},"Nd"),"ytw-fantasy-matchup-view-model",{props:{data:_.vt}});_.lv(_.Q1(function(J){return _.C("ytw-fantasy-weekly-matchup-summary-view-model",{class:"ytwFantasyWeeklyMatchupSummaryViewModelHost"},_.C(_.j8,{className:"ytwFantasyWeeklyMatchupSummaryViewModelTitle",text:function(){return J.data().title}}),_.C(_.n,{cond:function(){return J.data().matchupTeamPairs},
then:function(c){return _.C(_.Te,{each:c,keyBy:"INDEX"},function(m){return _.C("div",{class:"ytwFantasyWeeklyMatchupSummaryViewModelPair"},_.C(_.wi,{data:function(){return[m().firstTeam,m().secondTeam]}},{fantasyTeamViewModel:function(b){return _.C(IE_,{data:b.data,
compact:!0})}}))})}}))},"Od"),"ytw-fantasy-weekly-matchup-summary-view-model",{props:{data:_.vt}});_.lv(_.Q1(function(J){var c=function(){var x,P,p;return(p=(x=J.data().userLogoAccessibility)==null?void 0:(P=x.accessibilityData)==null?void 0:P.label)!=null?p:""},m=function(){var x,P,p;
return(p=(x=J.data().opponentLogoAccessibility)==null?void 0:(P=x.accessibilityData)==null?void 0:P.label)!=null?p:""},b=_.tT(r4t,function(){return J.data().entityKey});
return _.C("fantasy-win-probability-view-model",{class:"ytwFantasyWinProbabilityViewModelHost"},_.C("div",{class:"ytwFantasyWinProbabilityViewModelTop"},_.C(_.n,{cond:function(){return J.data().userLogo},
then:function(x){return _.C(_.RA,{className:"ytwFantasyWinProbabilityViewModelLogo",data:x,alt:c})}}),_.C("h3",{class:"ytwFantasyWinProbabilityViewModelTitle"},_.C(_.j8,{text:function(){return J.data().title}})),_.C(_.n,{cond:function(){return J.data().opponentLogo},
then:function(x){return _.C(_.RA,{className:"ytwFantasyWinProbabilityViewModelLogo",data:x,alt:m})}})),_.C("div",{class:"ytwFantasyWinProbabilityViewModelBottom"},_.C("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.C(_.j8,{text:function(){var x;
return(x=b())==null?void 0:x.userWinNumberLabel}})),_.C("div",{class:"ytwFantasyWinProbabilityViewModelProbabilityBars"},_.C("div",{class:_.pq("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityUserBar"),
style:_.kx({flex:function(){var x,P;return(P=(x=b())==null?void 0:x.userWinNumber)!=null?P:50}})}),_.C("div",{class:_.pq("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityOpponentBar"),
style:_.kx({flex:function(){var x,P;return(P=(x=b())==null?void 0:x.opponentWinNumber)!=null?P:50}})})),_.C("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.C(_.j8,{text:function(){var x;
return(x=b())==null?void 0:x.opponentWinNumberLabel}}))))},"Pd"),"fantasy-win-probability-view-model",{props:{data:_.vt}});_.zH("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");
var XT=function(){var J=_.h.apply(this,arguments)||this;J.darkerPanels=_.w("web_watch_darker_panels");J.commentsHidePanelButton=!1;J.isWatchGrid=!1;J.continuationShowButton=!1;J.isSearch=!1;J.isConstrainedList=!1;J.isWatch=!1;J.eligibleToSwitchToGrid=!1;J.notSticky=!1;J.epRestyle=!1;J.isCarouselInFeed=!0;J.topSpacingZero=!1;J.continuationIsInitialLoad=!0;J.enableSqueezebackPanels=_.w("web_shorts_enable_squeezeback_panels");J.enableAnchoredPanel=_.w("desktop_shorts_v2_anchored_panel");J.mastheadHeight=
0;J.actionMap={"yt-item-section-continuation-action":"handleYtItemSectionContinuation","yt-item-section-replace-action":"handleYtItemSectionReplace"};J.nextContinuation={continuationType:"itemSectionContinuation",usePost:!0};return J};
_.D(XT,_.h);_.V=XT.prototype;_.V.updateLockupContainerTypes=function(J){if(this.eligibleToSwitchToGrid){var c;(c=Array.from(this.hostElement.querySelectorAll("#contents yt-lockup-view-model")))==null||c.forEach(function(m){m.containerType=J})}};
_.V.getItemsPath=function(){return"data.contents"};
_.V.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.V.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{commentsHeaderRenderer:{component:"ytd-comments-header-renderer",properties:{engagementPanel:"[[engagementPanel]]",hidePanelButton:"[[commentsHidePanelButton]]"}},sortFilterHeaderRenderer:{component:"ytd-sort-filter-header-renderer",properties:{isPlaylist:"[[isPlaylist]]",isClipList:"[[isClipList]]"}},itemSectionHeaderRenderer:"ytd-item-section-header-renderer",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",
chipCloudRenderer:"yt-chip-cloud-renderer",feedFilterChipBarRenderer:"ytd-feed-filter-chip-bar-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",chipBarViewModel:{component:"chip-bar-view-model",noInjection:!0}}},shownItems:{id:"contents",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-item-section-renderer lockup",force16By9ThumbnailAspectRatio:!0},properties:{sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailFixedWidth:"[[thumbnailWidth]]",
lockupExperiments:"[[lockupExperiments]]",containerType:"[[lockupContainerType]]"}},alertBannerViewModel:{component:"yt-alert-banner-view-model"},aboutChannelRenderer:"ytd-about-channel-renderer",activityItemRenderer:"yt-activity-item-renderer",adSlotRenderer:"ytd-ad-slot-renderer",backgroundPromoRenderer:"ytd-background-promo-renderer",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",buttonRenderer:"ytd-button-renderer",carouselAdRenderer:"ytd-carousel-ad-renderer",cardItemContainerRenderer:{component:"yt-card-item-container-renderer",
properties:{compact:"[[engagementPanel]]"}},cardItemRenderer:"yt-card-item-renderer",carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0}},channelAboutFullMetadataRenderer:"ytd-channel-about-metadata-renderer",channelFeaturedContentRenderer:"ytd-channel-featured-content-renderer",channelRenderer:{component:"ytd-channel-renderer",properties:{compactStyle:"[[engagementPanel]]"}},channelSwitcherPageRenderer:"ytd-channel-switcher-page-renderer",channelVideoPlayerRenderer:"ytd-channel-video-player-renderer",
chipCloudRenderer:{component:"yt-chip-cloud-renderer",properties:{isSearch:"[[isSearch]]"}},chipsShelfViewModel:"chips-shelf-view-model",clarificationRenderer:"ytd-clarification-renderer",commentHistoryEntryRenderer:"ytd-comment-history-entry-renderer",commentThreadRenderer:{component:"ytd-comment-thread-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},compactMovieRenderer:"ytd-compact-movie-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",
compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactTextPromoRenderer:"ytd-compact-text-promo-renderer",compactVideoRenderer:"ytd-compact-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",connectedAppRenderer:"ytd-connected-app-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:"ytd-destination-shelf-renderer",didYouMeanRenderer:"yt-did-you-mean-renderer",displayAdRenderer:"ytd-display-ad-renderer",
emergencyOneboxRenderer:"ytd-emergency-onebox-renderer",eomSettingsDisclaimerRenderer:"ytd-eom-settings-disclaimer-renderer",exploratoryResultsRenderer:"ytd-exploratory-results-renderer",faqSectionRenderer:"yt-faq-section-renderer",fantasyLeagueSummaryViewModel:"fantasy-league-summary-view-model",fantasyMatchupViewModel:"ytw-fantasy-matchup-view-model",fantasyWeeklyMatchupSummaryViewModel:"ytw-fantasy-weekly-matchup-summary-view-model",fantasyWinProbabilityViewModel:"fantasy-win-probability-view-model",
feedbackElicitationSingleQuestionRenderer:"ytd-feedback-elicitation-single-question-renderer",feedEntryRenderer:"ytd-feed-entry-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",gridRenderer:"ytd-grid-renderer",richGridRenderer:"ytd-rich-grid-renderer",handlesClaimingHeaderRenderer:"ytd-handles-claiming-header-renderer",handlesClaimingUpdateSocialRenderer:"ytd-handles-claiming-update-social-renderer",handlesClaimingVanityInfoRenderer:"ytd-handles-claiming-vanity-info-renderer",handlesClaimingVideoItemRenderer:"ytd-handles-claiming-video-item-renderer",
handlesClaimingTitleImagesSectionRenderer:"ytd-handles-claiming-title-images-section-renderer",handlesClaimingFaqSectionRenderer:"ytd-handles-claiming-faq-section-renderer",hashtagTileRenderer:"ytd-hashtag-tile-renderer",horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{isSearch:"[[isSearch]]"}},includingResultsForRenderer:"yt-including-results-for-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",
labsEditRenderer:"ytd-labs-edit-renderer",labsHeaderRenderer:"ytd-labs-header-renderer",labsItemRenderer:"ytd-labs-item-renderer",liveChatHistoryEntryRenderer:"ytd-live-chat-history-entry-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",messageRenderer:{component:"ytd-message-renderer",properties:{panel:"[[engagementPanel]]"}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",properties:{isSearch:"[[isSearch]]"}},movieRenderer:"ytd-movie-renderer",musicPassFeatureInfoRenderer:"yt-music-pass-feature-info-renderer",
newspaperRenderer:"ytd-newspaper-renderer",noResultsFoundShowingResultsForRenderer:"yt-no-results-found-showing-results-for-renderer",notificationRenderer:"ytd-notification-renderer",offerItemExpandedRenderer:"yt-offer-item-expanded-renderer",offerItemRenderer:"yt-offer-item-renderer",offerItemUpsellRenderer:"yt-offer-item-upsell-renderer",officialCardViewModel:{component:"yt-official-card-view-model",properties:{className:"[[is]]"}},playlistRenderer:{component:"ytd-playlist-renderer",properties:{isSearch:"[[isSearch]]"}},
pageIntroductionRenderer:"ytd-page-introduction-renderer",playlistShowMetadataRenderer:"ytd-playlist-show-metadata-renderer",playlistVideoListRenderer:"ytd-playlist-video-list-renderer",playlistVideoRenderer:"ytd-playlist-video-renderer",premiumBrowseFooterRenderer:"ytd-premium-browse-footer-renderer",productDetailsRenderer:"ytd-product-details-renderer",productListHeaderRenderer:"ytd-product-list-header-renderer",promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",
purchaseItemRenderer:"ytd-purchase-item-renderer",qrCodeRenderer:"yt-qr-code-renderer",radioRenderer:"ytd-radio-renderer",recognitionShelfRenderer:"ytd-recognition-shelf-renderer",redCancelSurveyRenderer:"ytd-red-cancel-survey-renderer",reelShelfRenderer:{component:"ytd-reel-shelf-renderer",properties:{isSearch:"[[isSearch]]",hideShelfHeader:"[[hideShortsShelfHeader]]"}},gridShelfViewModel:{component:"grid-shelf-view-model",properties:{shouldUseOwnContainerSize:"[[isSearch]]",layoutContainerWidth:"[[containerWidth]]",
className:"[[is]]"},params:{marginSettings:0}},richShelfRenderer:"ytd-rich-shelf-renderer",resultsWithoutQuotesRenderer:"yt-results-without-quotes-renderer",searchFrictionViewModel:"ytw-search-friction-view-model",searchNoResultsRenderer:"yt-search-no-results-renderer",searchPyvRenderer:"ytd-search-pyv-renderer",sectionGroupViewModel:"yt-section-group-view-model",sectionHeaderViewModel:"yt-section-header-view-model",settingsOptionsRenderer:"ytd-settings-options-renderer",shelfRenderer:{component:"ytd-shelf-renderer",
properties:{isSearch:"[[isSearch]]",isConstrainedList:"[[isConstrainedList]]"}},showingResultsForRenderer:"yt-showing-results-for-renderer",showRenderer:{component:"ytd-show-renderer",properties:{isSearch:"[[isSearch]]"}},simpleTextSectionRenderer:"ytd-simple-text-section-renderer",sponsorshipsAlertRenderer:"ytd-sponsorships-alert-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",subscriptionProductHeaderRenderer:"yt-subscription-product-header-renderer",subscriptionProductRenderer:"yt-subscription-product-renderer",
subscriptionProductUpsellOfferRenderer:"yt-subscription-product-upsell-offer-renderer",toggleFormFieldRenderer:"yt-toggle-form-field-renderer",unlimitedManageSubscriptionPageRenderer:"yt-unlimited-manage-subscription-page-renderer",unlimitedPageFeatureInfoRenderer:"ytd-unlimited-page-feature-info-renderer",unlimitedPageHeaderRenderer:"yt-unlimited-page-header-renderer",unlimitedUserNotificationRenderer:"yt-unlimited-user-notification-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}},
webAnswerRenderer:"ytd-web-answer-renderer",ypcOffersListRenderer:"yt-ypc-offers-list-renderer",redeemCodeRenderer:"ytd-redeem-code-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",continuationItemRenderer:{component:"ytd-continuation-item-renderer",properties:{showButton:"[[continuationShowButton]]",isCommentsSection:"[[continuationIsCommentsSection]]",isInitialLoad:"[[continuationIsInitialLoad]]",engagementPanel:"[[engagementPanel]]"}},infoPanelContentRenderer:"ytd-info-panel-content-renderer",
errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer",ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer",listItemViewModel:"ytd-list-item-view-model",overviewAnswerViewModel:"ytd-overview-answer-view-model",coursePerksViewModel:"yt-course-perks-view-model",courseProgressViewModel:"yt-course-progress-view-model",courseRatingsViewModel:"yt-course-ratings-view-model",videoDescriptionHeaderRenderer:"ytd-video-description-header-renderer",videoDescriptionInfocardsSectionRenderer:"ytd-video-description-infocards-section-renderer",
expandableVideoDescriptionBodyRenderer:{component:"ytd-expandable-video-description-body-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},videoAttributesSectionViewModel:"yt-video-attributes-section-view-model",videoAttributeViewModel:"yt-video-attribute-view-model",liveViewerLeaderboardItemViewModel:{component:"ytvl-live-viewer-leaderboard-item-view-model"},liveLeaderboardItemViewModel:{component:"ytvl-live-leaderboard-item-view-model"},accordionViewModel:{component:"yt-accordion-view-model"},
learningJourneyLoaderViewModel:{component:"yt-learning-journey-loader-view-model"},learningJourneyZeroStateViewModel:{component:"yt-learning-journey-zero-state"},learningJourneyQuizViewModel:{component:"learning-journey-quiz-view-model"},dividerViewModel:{component:"divider-view-model"}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",properties:{showButton:"[[showButton]]",disablePrescanVisibility:"[[continuationDisablePrescanVisibility]]"}},
reloadContinuationData:{component:"yt-reload-continuation"}},renderPriority:_.w("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.w("kevlar_low_priority_continuation")}}};
_.V.created=function(){this.JSC$14501_cachedViewportHeight=_.Ub("initialInnerHeight")||window.innerHeight};
_.V.updateHeaderState=function(){this.notSticky=this.hostElement.getBoundingClientRect().y>this.mastheadHeight};
_.V.handleIntersect=function(J){this.notSticky=J[0].intersectionRatio===1};
_.V.attached=function(){var J=this;document.addEventListener("scroll",_.ME(this,this.updateHeaderState));var c;this.mastheadHeight=((c=document.querySelector("ytd-masthead"))==null?void 0:c.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(m){J.handleIntersect(m)},{rootMargin:"-"+(this.mastheadHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){J.updateHeaderState()}),this.resizeObserver.observe(this.hostElement))};
_.V.detached=function(){document.removeEventListener("scroll",_.ME(this,this.updateHeaderState));var J;(J=this.intersectionObserver)==null||J.disconnect();var c;(c=this.resizeObserver)==null||c.disconnect()};
_.V.updated=function(J){J.has("data")&&this.updateHeaderState()};
_.V.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(tOB(!this.notSticky))};
_.V.commentsHidePanelButtonChanged=function(){if(this.isWatchGrid){var J=_.Bj(this.hostElement).querySelector("ytd-comments-header-renderer");J&&(J.hidePanelButton=this.commentsHidePanelButton)}};
_.V.onRetrieveLocation=function(J,c){this.containsComments()&&(this.firstCommentsLoaded=c.hasComments=!0)};
_.V.containsComments=function(){return this.get("data.sectionIdentifier")==="comment-item-section"};
_.V.onLoadReloadContinuation=function(J,c){var m=this;J.stopPropagation();this.isReloading=!0;_.cA(this.hostElement,"yt-retrieve-location",{locationRetrieved:function(b){var x=_.BG().resolve(_.Wj);b=c(b);x.postData(b).then(function(P){m.onReloadContinuationData(P)})}})};
_.V.onReloadContinuationData=function(J){if(J=this.get("response.continuationContents.itemSectionContinuation",J)||this.get("response.contents.itemSectionRenderer",J)||this.get("response.continuationContents.sectionListContinuation.contents.0.itemSectionRenderer",J)||this.get("response.continuationContents.relatedChipsContinuation.continuation.watchNextSecondaryResultsRenderer",J))this.set("data.contents",J.contents||J.results),J.header&&this.set("data.header",J.header),this.set("data.continuations",
J.continuations||[]);this.isReloading=!1};
_.V.computeContentsClass=function(J){return J?"reloading":""};
_.V.computeContainerWidth=function(){return this.hostElement.clientWidth};
_.V.computeSectionIdentifier=function(J){return J==null?void 0:J.sectionIdentifier};
_.V.computeFitContainer=function(J){return(J==null?void 0:J.sectionIdentifier)==="youchat-item-section"};
_.V.computeShowButton=function(){return!!this.firstCommentsLoaded&&this.containsComments()&&_.w("kevlar_disable_comments_auto_load")};
_.V.onServiceRequestCompleted=function(){this.continuationIsInitialLoad=!1};
_.V.computeIsReloading=function(){return this.isReloading||this.ytContinuationHandlerBehavior.continuationIsReloading};
_.V.computeHasDestinationShelfRenderer=function(J){var c,m;return!!(J==null?0:(c=J.contents)==null?0:(m=c[0])==null?0:m.destinationShelfRenderer)};
_.V.computeHasSectionGroupViewModel=function(J){var c,m;return!!(J==null?0:(c=J.contents)==null?0:(m=c[0])==null?0:m.sectionGroupViewModel)};
_.V.computeHasQrCodeRenderer=function(J){var c,m;return!!(J==null?0:(c=J.contents)==null?0:(m=c[0])==null?0:m.qrCodeRenderer)};
_.V.computeStaticCommentsHeader=function(J){return J&&this.containsComments()};
_.V.computeEpRestyle=function(J){return _.w("web_ep_restyling")&&J&&this.containsComments()};
_.V.computeIsContinuationCommentSection=function(J){return(J==null?void 0:J.targetId)==="shorts-engagement-panel-comments-section"||(J==null?void 0:J.targetId)==="comments-section"||(J==null?void 0:J.targetId)==="engagement-panel-comments-section"};
_.V.computeSuppressPaddingDisclaimer=function(){var J,c,m,b;return!!((J=this.data)==null?0:(c=J.contents)==null?0:(m=c[0])==null?0:(b=m.productListHeaderRenderer)==null?0:b.suppressPaddingDisclaimer)};
_.V.computeHeaderStyle=function(J){switch(J==null?void 0:J.headerStyle){case "ITEM_SECTION_HEADER_STYLE_STICKY":return"sticky-header";default:return""}};
_.V.dataChanged=function(){this.firstCommentsLoaded=!1};
_.V.observeDataContentsLength=function(){var J,c;((J=this.data)==null?0:(c=J.contents)==null?0:c.length)&&this.data.contents.length>1?this.continuationIsInitialLoad=!1:this.continuationIsInitialLoad=!0};
_.V.onYtDismissibleItemDismissedChange=function(J){this._setItemDismissed(J.type==="yt-dismissible-item-dismissed")};
_.V.triggerContinuations=function(){for(var J=_.Bj(this.hostElement).querySelector("#continuations").children,c=0;c<J.length;c++)J[c].trigger()};
_.V.triggerInitialContinuations=function(){for(var J=_.Bj(this.hostElement).querySelector("#continuations").children,c=0;c<J.length;c++)J[c].triggerIfNotPreviouslyTriggered()};
_.V.handleYtItemSectionContinuation=function(J,c){var m;c&&((m=this.data)==null?void 0:m.sectionIdentifier)!==c||(this.set("data.continuations",[J]),this.triggerContinuations())};
_.V.handleYtItemSectionReplace=function(J,c){var m;c&&((m=this.data)==null?void 0:m.sectionIdentifier)!==c||(this.set("data.contents",J),this.set("data.continuations",[]))};
_.V.computeUseHeightHack=function(J){return J&&!_.w("kevlar_disable_height_hack")};
_.V.computeTopSpacingZero=function(J){return J};
_.V.continuationShowButtonChanged=function(){var J=_.Bj(this.hostElement).querySelector("ytd-continuation-item-renderer");J&&(J.showButton=this.continuationShowButton)};
_.V.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.SJ("data-changed",this.data))};
_.eE.Object.defineProperties(XT.prototype,{hideShortsShelfHeader:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.w("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 J,c,m;return!!((J=this.data)==null?0:(c=J.contents)==null?0:(m=c[0])==null?0:m.playlistVideoListRenderer)}},
isClipList:{configurable:!0,enumerable:!0,get:function(){var J,c,m,b,x,P,p;return!!((J=this.data)==null?0:(c=J.contents)==null?0:(m=c[0])==null?0:(b=m.shelfRenderer)==null?0:(x=b.content)==null?0:(P=x.gridRenderer)==null?0:(p=P.targetId)==null?0:p.includes("browse-feedFEclips"))}},
isPlaylistVideoContainer:{configurable:!0,enumerable:!0,get:function(){var J,c,m;return!!((J=this.data)==null?0:(c=J.contents)==null?0:(m=c[0])==null?0:m.playlistVideoRenderer)}},
isSearchFrictionPage:{configurable:!0,enumerable:!0,get:function(){var J,c,m;return!!((J=this.data)==null?0:(c=J.contents)==null?0:(m=c[0])==null?0:m.searchFrictionViewModel)}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.mG("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.w("use_modern_typography_on_search")}}},
typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.w("use_modern_typography_on_search")}},
nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){if(this.isSearchDova)return Math.ceil((this.JSC$14501_cachedViewportHeight-130)/150)},
set:function(){}}});
XT.prototype.dataChangedForBinding=XT.prototype.dataChangedForBinding;XT.prototype.continuationShowButtonChanged=XT.prototype.continuationShowButtonChanged;XT.prototype.onYtDismissibleItemDismissedChange=XT.prototype.onYtDismissibleItemDismissedChange;XT.prototype.observeDataContentsLength=XT.prototype.observeDataContentsLength;XT.prototype.dataChanged=XT.prototype.dataChanged;XT.prototype.onServiceRequestCompleted=XT.prototype.onServiceRequestCompleted;XT.prototype.onLoadReloadContinuation=XT.prototype.onLoadReloadContinuation;
XT.prototype.onRetrieveLocation=XT.prototype.onRetrieveLocation;XT.prototype.commentsHidePanelButtonChanged=XT.prototype.commentsHidePanelButtonChanged;XT.prototype.dispatchChipBarIsSticky=XT.prototype.dispatchChipBarIsSticky;XT.prototype.updateLockupContainerTypes=XT.prototype.updateLockupContainerTypes;_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],XT.prototype,"ytActionHandlerBehavior",void 0);
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],XT.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],XT.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.lu.YtLazyListBehavior),_.R("design:type",Object)],XT.prototype,"ytLazyListBehavior",void 0);_.O([_.f(_.hA.YtNextContinuationBehavior),_.R("design:type",Object)],XT.prototype,"ytNextContinuationBehavior",void 0);
_.O([_.f(_.Sy),_.R("design:type",Object)],XT.prototype,"ytContinuationHandlerBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],XT.prototype,"ytComponentBehavior",void 0);_.O([_.f(_.fY),_.R("design:type",Object)],XT.prototype,"ytdReduxBehavior",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],XT.prototype,"darkerPanels",void 0);_.O([_.U(),_.R("design:type",Object)],XT.prototype,"data",void 0);
_.O([_.U(),_.R("design:type",Boolean)],XT.prototype,"engagementPanel",void 0);_.O([_.U(),_.R("design:type",Object)],XT.prototype,"commentsHidePanelButton",void 0);_.O([_.U(),_.R("design:type",Object)],XT.prototype,"isWatchGrid",void 0);_.O([_.U(),_.R("design:type",Object)],XT.prototype,"continuationShowButton",void 0);_.O([_.U({computed:"computeIsContinuationCommentSection(data)"}),_.R("design:type",Boolean)],XT.prototype,"continuationIsCommentsSection",void 0);
_.O([_.U({value:!0}),_.R("design:type",Boolean)],XT.prototype,"autoFill",void 0);_.O([_.U(),_.R("design:type",Boolean)],XT.prototype,"continuationDisablePrescanVisibility",void 0);_.O([_.U(),_.R("design:type",Boolean)],XT.prototype,"isReloading",void 0);_.O([_.U(),_.R("design:type",Object)],XT.prototype,"isSearch",void 0);_.O([_.U(),_.R("design:type",Object)],XT.prototype,"isConstrainedList",void 0);_.O([_.U(),_.R("design:type",Object)],XT.prototype,"isWatch",void 0);
_.O([_.U(),_.R("design:type",Object)],XT.prototype,"eligibleToSwitchToGrid",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],XT.prototype,"notSticky",void 0);_.O([_.U({selector:_.S8}),_.R("design:type",Object)],XT.prototype,"isGridViewEnabled",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeEpRestyle(engagementPanel, data.sectionIdentifier)"}),_.R("design:type",Object)],XT.prototype,"epRestyle",void 0);
_.O([_.q("isWatch"),_.U({reflectToAttribute:!0}),_.R("design:type",Boolean),_.R("design:paramtypes",[])],XT.prototype,"hideShortsShelfHeader",null);_.O([_.q("isSearch","isWatch"),_.R("design:type",String),_.R("design:paramtypes",[])],XT.prototype,"thumbnailWidth",null);_.O([_.q("isSearch","isWatch"),_.R("design:type",String),_.R("design:paramtypes",[])],XT.prototype,"sizing",null);
_.O([_.q("isWatch","isGridViewEnabled","data"),_.U({reflectToAttribute:!0}),_.R("design:type",Number),_.R("design:paramtypes",[])],XT.prototype,"lockupContainerType",null);_.O([_.NE("lockupContainerType","data"),_.R("design:type",Function),_.R("design:paramtypes",[Number]),_.R("design:returntype")],XT.prototype,"updateLockupContainerTypes",null);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",String)],XT.prototype,"pageSubtype",void 0);
_.O([_.U({computed:"computeContainerWidth()"}),_.R("design:type",Number)],XT.prototype,"containerWidth",void 0);_.O([_.U(),_.q("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],XT.prototype,"isPlaylist",null);_.O([_.U(),_.q("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],XT.prototype,"isClipList",null);_.O([_.U(),_.R("design:type",Object)],XT.prototype,"isCarouselInFeed",void 0);
_.O([_.U({reflectToAttribute:!0}),_.q("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],XT.prototype,"isPlaylistVideoContainer",null);_.O([_.U({reflectToAttribute:!0}),_.q("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],XT.prototype,"isSearchFrictionPage",null);_.O([_.U({reflectToAttribute:!0,computed:"computeUseHeightHack(isSearch)"}),_.R("design:type",Boolean)],XT.prototype,"useHeightHack",void 0);
_.O([_.U({reflectToAttribute:!0,computed:"computeTopSpacingZero(isSearch)"}),_.R("design:type",Object)],XT.prototype,"topSpacingZero",void 0);_.O([_.U({computed:"computeShowButton(data.sectionIdentifier, firstCommentsLoaded)"}),_.R("design:type",Boolean)],XT.prototype,"showButton",void 0);_.O([_.U(),_.R("design:type",Boolean)],XT.prototype,"firstCommentsLoaded",void 0);_.O([_.U(),_.R("design:type",Object)],XT.prototype,"continuationIsInitialLoad",void 0);
_.O([_.U(),_.R("design:type",Boolean)],XT.prototype,"isSearchDova",void 0);_.O([_.U({reflectToAttribute:!0,readOnly:!0}),_.R("design:type",Boolean)],XT.prototype,"itemDismissed",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeSectionIdentifier(data)"}),_.R("design:type",String)],XT.prototype,"sectionIdentifier",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeFitContainer(data)"}),_.R("design:type",String)],XT.prototype,"fitContainer",void 0);
_.O([_.U({reflectToAttribute:!0,computed:"computeHasDestinationShelfRenderer(data)"}),_.R("design:type",Boolean)],XT.prototype,"hasDestinationShelfRenderer",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeStaticCommentsHeader(engagementPanel, data.sectionIdentifier)"}),_.R("design:type",Boolean)],XT.prototype,"staticCommentsHeader",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],XT.prototype,"enableSqueezebackPanels",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],XT.prototype,"enableAnchoredPanel",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeHasSectionGroupViewModel(data)"}),_.R("design:type",Boolean)],XT.prototype,"hasSectionGroupViewModel",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeHasQrCodeRenderer(data)"}),_.R("design:type",Boolean)],XT.prototype,"hasQrCodeRenderer",void 0);
_.O([_.U({reflectToAttribute:!0,computed:"computeSuppressPaddingDisclaimer(data)"}),_.R("design:type",Boolean)],XT.prototype,"suppressDisclaimerSeparator",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeHeaderStyle(data)"}),_.R("design:type",String)],XT.prototype,"headerStyle",void 0);_.O([_.q("isSearch"),_.R("design:type",Object),_.R("design:paramtypes",[])],XT.prototype,"lockupExperiments",null);
_.O([_.q("isSearch"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],XT.prototype,"typographyBump",null);_.O([_.Iu("#header"),_.R("design:type",HTMLElement)],XT.prototype,"header",void 0);_.O([_.NE("notSticky"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],XT.prototype,"dispatchChipBarIsSticky",null);
_.O([_.NE("commentsHidePanelButton"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],XT.prototype,"commentsHidePanelButtonChanged",null);_.O([_.ps("yt-retrieve-location"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,Object]),_.R("design:returntype")],XT.prototype,"onRetrieveLocation",null);
_.O([_.ps("yt-load-reload-continuation"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,Function]),_.R("design:returntype")],XT.prototype,"onLoadReloadContinuation",null);_.O([_.ps("yt-service-request-completed"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],XT.prototype,"onServiceRequestCompleted",null);_.O([_.kr("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],XT.prototype,"dataChanged",null);
_.O([_.kr("data.contents.length"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],XT.prototype,"observeDataContentsLength",null);_.O([_.ps("yt-dismissible-item-dismissed"),_.ps("yt-dismissible-item-undismissed"),_.R("design:type",Function),_.R("design:paramtypes",[Event]),_.R("design:returntype")],XT.prototype,"onYtDismissibleItemDismissedChange",null);
_.O([_.NE("continuationShowButton"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],XT.prototype,"continuationShowButtonChanged",null);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],XT.prototype,"dataChangedForBinding",null);XT=_.O([_.E({is:"ytd-item-section-renderer",disableElementRegistration:!0})],XT);
_.v(XT,"ytd-item-section-renderer",function(){if(GxQ!==void 0)return GxQ;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return GxQ=J},{mode:1});var nfC;var Alr=_.v2(_.CX("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var GVf={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.svg"};var TqB={},Ojq=(TqB[0]={title:_.yq(_.CX("DOWNLOADS",void 0,"Downloads")),iconType:"OFFLINE_DOWNLOAD",topButtonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.yq(_.CX("DOWNLOADS_SETTINGS",void 0,"Downloads Settings")),loggingDirectives:{clientVeSpec:{uiType:21412}},navigationEndpoint:Fv("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:51721,videoClientVE:42356},TqB[1]={title:_.yq(_.CX("SMART_DOWNLOADS",void 0,"Smart downloads")),topButtonRenderer:{icon:{iconType:"SETTINGS"},
loggingDirectives:{clientVeSpec:{uiType:129732}},navigationEndpoint:Fv("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:139572,videoClientVE:129218},TqB);_.zH("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");var Za=function(){var J=_.h.apply(this,arguments)||this;J.allVideosCount=0;J.allPlaylistCount=0;J.shouldRenderDownloadsBanner=!1;J.hasOptedIntoSmartDownloads=!1;J.areAllSmartDownloadsDeleted=!1;J.smartDownloadsCompleted=!1;return J};
_.D(Za,_.h);Za.prototype.configureRendererStamper=function(){return{renderableData:{id:"contents",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}}};
Za.prototype.attached=function(){this.downloadsToRenderChanged()};
Za.prototype.detached=function(){this.set("renderableData",{})};
Za.prototype.downloadsToRenderChanged=function(){var J=_.Rc().getState().entities,c=_.rf(J),m=_.w("kevlar_playlist_dl_page_killswitch")?MGo(J):_.sG(J),b=_.mZD(J),x=_.H2(c);J=_.Lk(J);this.set("renderableData",oEq(m,c,b,this.hasOptedIntoSmartDownloads,this.shouldRenderDownloadsBanner,this.areAllSmartDownloadsDeleted,x,J))};
Za.prototype.downloadsToRenderChanged=Za.prototype.downloadsToRenderChanged;_.O([_.f(_.fY),_.R("design:type",Object)],Za.prototype,"ytdReduxBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Za.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],Za.prototype,"ytComponentBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],Za.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.U(),_.R("design:type",Object)],Za.prototype,"renderableData",void 0);_.O([_.U({selector:_.w3f}),_.R("design:type",Object)],Za.prototype,"allVideosCount",void 0);_.O([_.U({selector:SpJ}),_.R("design:type",Object)],Za.prototype,"allPlaylistCount",void 0);_.O([_.U({selector:_.uIe}),_.R("design:type",Object)],Za.prototype,"shouldRenderDownloadsBanner",void 0);_.O([_.U({selector:_.fAG}),_.R("design:type",Object)],Za.prototype,"hasOptedIntoSmartDownloads",void 0);
_.O([_.U({selector:_.YPu}),_.R("design:type",Object)],Za.prototype,"areAllSmartDownloadsDeleted",void 0);_.O([_.U({selector:X3o}),_.R("design:type",Object)],Za.prototype,"smartDownloadsCompleted",void 0);_.O([_.kr("allVideosCount","shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","areAllSmartDownloadsDeleted","smartDownloadsCompleted","allPlaylistCount"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Za.prototype,"downloadsToRenderChanged",null);
Za=_.O([_.E({is:"ytd-offline-item-section-renderer",disableElementRegistration:!0})],Za);
_.v(Za,"ytd-offline-item-section-renderer",function(){if(nfC!==void 0)return nfC;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return nfC=J},
{mode:1});var wh6;var ruu;var qF=function(){return _.h.apply(this,arguments)||this};
_.D(qF,_.h);
qF.prototype.onDataChanged=function(){if(this.JSC$14527_lastData){var J=this.getFilterClass(this.JSC$14527_lastData.status);J&&this.hostElement.classList.remove(J)}var c;(J=this.getFilterClass((c=this.data)==null?void 0:c.status))&&this.hostElement.classList.add(J);J==="selected"?_.Bj(this.hostElement).querySelector("#endpoint").setAttribute("aria-selected","true"):_.Bj(this.hostElement).querySelector("#endpoint").removeAttribute("aria-selected");J==="disabled"?_.Bj(this.hostElement).querySelector("#endpoint").setAttribute("aria-disabled","true"):
_.Bj(this.hostElement).querySelector("#endpoint").removeAttribute("aria-disabled");this.JSC$14527_lastData=this.data};
qF.prototype.getFilterClass=function(J){switch(J){case "FILTER_STATUS_SELECTED":return"selected";case "FILTER_STATUS_DISABLED":return"disabled"}};
qF.prototype.onDataChanged=qF.prototype.onDataChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],qF.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],qF.prototype,"data",void 0);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],qF.prototype,"onDataChanged",null);qF=_.O([_.E({is:"ytd-search-filter-renderer",disableElementRegistration:!0})],qF);
_.v(qF,"ytd-search-filter-renderer",function(){if(ruu!==void 0)return ruu;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return ruu=J},{mode:_.mP("kevlar_poly_si_batch_j075")?1:2});var UX=function(){return _.h.apply(this,arguments)||this};
_.D(UX,_.h);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],UX.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],UX.prototype,"data",void 0);UX=_.O([_.E({is:"ytd-search-filter-group-renderer",disableElementRegistration:!0})],UX);
_.v(UX,"ytd-search-filter-group-renderer",function(){if(wh6!==void 0)return wh6;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return wh6=J},{mode:_.mP("kevlar_poly_si_batch_j075")?1:2});var sXa;var Sm=function(){return _.h.apply(this,arguments)||this};
_.D(Sm,_.h);Sm.prototype.toggleFilters=function(){this.renderCollapsibleMenu||(this.renderCollapsibleMenu=!0,_.be());this.isCollapsed=!this.isCollapsed};
Sm.prototype.navigateToAboutTheseResultsPage=function(){var J=H0("https://www.youtube.com/howyoutubeworks/product-features/search/");J?_.Zx(window,J,"_blank"):_.ha(Error("Oh"))};
Sm.prototype.dataChanged=function(){this.isCollapsed=!0};
Sm.prototype.computeShowBottomBorder=function(){var J,c,m;return!!((J=this.data)==null?0:(c=J.button)==null?0:c.toggleButtonRenderer)||!((m=this.data)==null||!m.aboutTheseResultsButton)};
Sm.prototype.dataChanged=Sm.prototype.dataChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Sm.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Sm.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeShowBottomBorder(data)"}),_.R("design:type",Boolean)],Sm.prototype,"showBottomBorder",void 0);_.O([_.U(),_.R("design:type",Boolean)],Sm.prototype,"renderCollapsibleMenu",void 0);
_.O([_.U(),_.R("design:type",Boolean)],Sm.prototype,"isCollapsed",void 0);_.O([_.kr("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Sm.prototype,"dataChanged",null);Sm=_.O([_.E({is:"ytd-search-sub-menu-renderer",disableElementRegistration:!0})],Sm);
_.v(Sm,"ytd-search-sub-menu-renderer",function(){if(sXa!==void 0)return sXa;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return sXa=J},{mode:1});var LWZ;var DYL=new _.oE("SECTION_LIST_RENDERER_TOKEN");var WWL;var hC=function(){return _.h.apply(this,arguments)||this};
_.D(hC,_.h);hC.prototype.computeStyle=function(J){return J?J.toLowerCase().replace(/_/g,"-"):""};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],hC.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],hC.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.R("design:type",String)],hC.prototype,"headerStyle",void 0);hC=_.O([_.E({is:"ytd-text-header-renderer",disableElementRegistration:!0})],hC);
_.v(hC,"ytd-text-header-renderer",function(){if(WWL!==void 0)return WWL;var J=document.createElement("template");_.z(J,"\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");J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return WWL=J},{mode:1});var zqa;var dY=function(){return _.h.apply(this,arguments)||this};
_.D(dY,_.h);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],dY.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],dY.prototype,"data",void 0);dY=_.O([_.E({is:"ytd-minor-moment-header-renderer",disableElementRegistration:!0})],dY);
_.v(dY,"ytd-minor-moment-header-renderer",function(){if(zqa!==void 0)return zqa;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return zqa=J},{mode:1});var uiQ;var $i=function(){return _.h.apply(this,arguments)||this};
_.D($i,_.h);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],$i.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],$i.prototype,"data",void 0);$i=_.O([_.E({is:"ytd-minor-moment-setting-alert-renderer",disableElementRegistration:!0})],$i);
_.v($i,"ytd-minor-moment-setting-alert-renderer",function(){if(uiQ!==void 0)return uiQ;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return uiQ=J},{mode:1});var fEj;var YVj;var GT=function(){var J=_.h.apply(this,arguments)||this;J.booleanSettingById=!1;J.smartDownloadsEnabledVE=_.rs(128287);J.smartDownloadsDisabledVE=_.rs(128286);J.actionMap={"yt-settings-update-switch-command":"handleUpdateSettingsSwitch","yt-toggle-settings-switch":"onToggleSettingsSwitch"};return J};
_.D(GT,_.h);_.V=GT.prototype;_.V.attachSmartDownloadsSettingVes=function(){var J;this.activeVeForLogging||((J=this.data)==null?void 0:J.id)!=="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"||(_.JM(_.C7(),this.smartDownloadsEnabledVE),_.JM(_.C7(),this.smartDownloadsDisabledVE))};
_.V.dataChanged=function(){this.attachSmartDownloadsSettingVes();this.maybeLogSmartDownloadsSettingVisibility();this.initializeIsEnabled();_.cA(this.hostElement,"yt-settings-switch-ready")};
_.V.initializeIsEnabled=function(){this.data&&this.data.id&&this.data.enabled===void 0&&this.set("data.enabled",this.getUserPreference())};
_.V.onSwitchChange=function(J){this.data&&(this.maybeLogSmartDownloadsSettingClick(),(J=_.Ac(J).checked?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&(_.w("kevlar_settings_switch_resolve_command_killswitch")?_.BG().resolve(_.gu).resolveCommand(J,{form:{element:this.hostElement}}):this.ytComponentBehavior.resolveCommand(J)),this.data.requiresConfirmation&&this.set("data.enabled",!this.data.enabled))};
_.V.handleUpdateSettingsSwitch=function(J){(J=_.L(J,abj))&&this.data&&this.data.id===J.id&&this.set("data.enabled",!!J.enabled)};
_.V.onToggleSettingsSwitch=function(J,c){this.data&&this.data.id===J&&this.set("data.enabled",c!=null?c:!this.data.enabled)};
_.V.getUserPreference=function(){switch(this.data.id){case "SETTINGS_OPTIONS_ID_TYPE_AUTONAV":return 1!==_.AZ.getInstance().getState();case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return this.booleanSettingById;default:return!1}};
_.V.maybeLogSmartDownloadsSettingVisibility=function(){var J=_.Y3(),c;J&&((c=this.data)==null?void 0:c.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&(this.booleanSettingById?(this.activeVeForLogging=this.smartDownloadsEnabledVE,_.vA(J,[this.smartDownloadsEnabledVE]),_.O2(J,[this.smartDownloadsDisabledVE])):(this.activeVeForLogging=this.smartDownloadsDisabledVE,_.vA(J,[this.smartDownloadsDisabledVE]),_.O2(J,[this.smartDownloadsEnabledVE])))};
_.V.maybeLogSmartDownloadsSettingClick=function(){var J;((J=this.data)==null?void 0:J.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&this.activeVeForLogging&&_.mn(_.C7(),this.activeVeForLogging)};
_.V.updateDataEnabledFromBinding=function(J){this.set("data.enabled",J.detail.value)};
_.eE.Object.defineProperties(GT.prototype,{toggleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var J=this.get("toggleAccessibility.accessibilityData.label",this.data);this.data&&this.data.title&&!J&&(J=this.ytRendererBehavior.getSimpleString(this.data.title));return J}}});
GT.prototype.dataChanged=GT.prototype.dataChanged;_.O([_.f(_.fY),_.R("design:type",Object)],GT.prototype,"ytdReduxBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],GT.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],GT.prototype,"ytActionHandlerBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],GT.prototype,"ytComponentBehavior",void 0);
_.O([_.U(),_.R("design:type",Object)],GT.prototype,"data",void 0);_.O([_.U({selector:function(J,c){if(Object.keys(J==null?void 0:J.entities).length)switch(c){case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return p3u(J.entities,"SMART_DOWNLOADS_ENABLED");default:return!1}},
selectorArgs:["data.id"]}),_.R("design:type",Object)],GT.prototype,"booleanSettingById",void 0);_.O([_.U(),_.R("design:type",_.uk)],GT.prototype,"activeVeForLogging",void 0);_.O([_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],GT.prototype,"toggleAriaLabel",null);_.O([_.kr("data"),_.kr("booleanSettingById"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],GT.prototype,"dataChanged",null);
GT=_.O([_.E({is:"ytd-settings-switch-renderer",disableElementRegistration:!0})],GT);
_.v(GT,"ytd-settings-switch-renderer",function(){if(YVj!==void 0)return YVj;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return YVj=J},{mode:1});var EX=function(){return _.h.apply(this,arguments)||this};
_.D(EX,_.h);EX.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}}}}};
_.eE.Object.defineProperties(EX.prototype,{contentsClassName:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return"";var J=this.data.hideBottomSeparator?"":"with-bottom-separator";this.data.removeLeftMargin&&(J+=" remove-left-margin");this.data.extraBottomSpace&&(J+=" extra-bottom-space");return J}}});
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],EX.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],EX.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],EX.prototype,"data",void 0);_.O([_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],EX.prototype,"contentsClassName",null);EX=_.O([_.E({is:"ytd-minor-moment-setting-section-renderer",disableElementRegistration:!0})],EX);
_.v(EX,"ytd-minor-moment-setting-section-renderer",function(){if(fEj!==void 0)return fEj;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return fEj=J},{mode:1});var Xhj;var vb=function(){return _.h.apply(this,arguments)||this};
_.D(vb,_.h);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],vb.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],vb.prototype,"componentBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],vb.prototype,"data",void 0);vb=_.O([_.E({disableElementRegistration:!0,is:"ytd-empty-product-details-renderer"})],vb);
_.v(vb,"ytd-empty-product-details-renderer",function(){if(Xhj!==void 0)return Xhj;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return Xhj=J},{mode:1});var ZBQ;var qVB;var OX=function(){var J=_.h.apply(this,arguments)||this;J.expanded=!0;return J};
_.D(OX,_.h);OX.prototype.getBadgeRowClass=function(J,c,m){for(var b=_.M(this.hostElement.querySelectorAll("yt-img-shadow")),x=b.next();!x.done;x=b.next())x.value.onShow();J=J.selected;return m?J!==-1?J===c?"badge-line badge-selected":"badge-line badge-not-selected":"badge-line":(J!==void 0?J:0)===c?"badge-line":"badge-hidden"};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],OX.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],OX.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],OX.prototype,"expanded",void 0);OX=_.O([_.E({disableElementRegistration:!0,is:"ytd-sponsorships-loyalty-badges-renderer"})],OX);
_.v(OX,"ytd-sponsorships-loyalty-badges-renderer",function(){if(qVB!==void 0)return qVB;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return qVB=J},{mode:1});var UY$;var AC=function(){var J=_.h.apply(this,arguments)||this;J.expanded=!0;return J};
_.D(AC,_.h);AC.prototype.getContainerClasses=function(J,c){J=J?"expanded":"collapsed";c&&(J+=" item");return J};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],AC.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],AC.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],AC.prototype,"expanded",void 0);AC=_.O([_.E({disableElementRegistration:!0,is:"ytd-sponsorships-perk-renderer"})],AC);
_.v(AC,"ytd-sponsorships-perk-renderer",function(){if(UY$!==void 0)return UY$;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return UY$=J},{mode:1});var SV_;var RU=function(){var J=_.h.apply(this,arguments)||this;J.expanded=!0;return J};
_.D(RU,_.h);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],RU.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],RU.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],RU.prototype,"expanded",void 0);RU=_.O([_.E({disableElementRegistration:!0,is:"ytd-sponsorships-perks-renderer"})],RU);
_.v(RU,"ytd-sponsorships-perks-renderer",function(){if(SV_!==void 0)return SV_;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return SV_=J},{mode:1});var oU=function(){var J=_.h.apply(this,arguments)||this;J.isCollapsed=!1;return J};
_.D(oU,_.h);oU.prototype.onDataChanged=function(){this.data&&(this.isCollapsed=!this.data.startExpanded)};
oU.prototype.onExpandCollapse=function(){this.isCollapsed=!this.isCollapsed};
oU.prototype.updateExpandCollapseButton=function(){if(this.isCollapsed){var J;this.expandCollapseButton=_.L((J=this.data)==null?void 0:J.expandButton,_.ur)}else{var c;this.expandCollapseButton=_.L((c=this.data)==null?void 0:c.collapseButton,_.ur)}};
oU.prototype.updateExpandCollapseButton=oU.prototype.updateExpandCollapseButton;oU.prototype.onDataChanged=oU.prototype.onDataChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],oU.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],oU.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],oU.prototype,"isCollapsed",void 0);_.O([_.U(),_.R("design:type",Object)],oU.prototype,"expandCollapseButton",void 0);
_.O([_.kr("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],oU.prototype,"onDataChanged",null);_.O([_.kr("data","isCollapsed"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],oU.prototype,"updateExpandCollapseButton",null);oU=_.O([_.E({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-perks-renderer"})],oU);
_.v(oU,"ytd-sponsorships-expandable-perks-renderer",function(){if(ZBQ!==void 0)return ZBQ;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return ZBQ=J},{mode:1});var hq$;var QW=function(){return _.h.apply(this,arguments)||this};
_.D(QW,_.h);QW.prototype.handleAction=function(){this.data&&this.data.command&&this.ytComponentBehavior.resolveCommand(this.data.command)};
_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],QW.prototype,"ytComponentBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],QW.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],QW.prototype,"data",void 0);QW=_.O([_.E({disableElementRegistration:!0,is:"ytd-sponsorships-actionable-message-renderer"})],QW);
_.v(QW,"ytd-sponsorships-actionable-message-renderer",function(){if(hq$!==void 0)return hq$;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return hq$=J},{mode:1});var dY_;var em=function(){return _.h.apply(this,arguments)||this};
_.D(em,_.h);_.V=em.prototype;_.V.configureRendererStamper=function(){return{"data.expandableItems":{id:"content-container",mapping:{sponsorshipsPerksRenderer:{component:"ytd-sponsorships-perks-renderer"},sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"}}}}};
_.V.getExpansionIcon=function(J){return J?"COLLAPSE":"EXPAND"};
_.V.onToggleExpand=function(){this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.V.computeMessageContainerStyle=function(J){var c=J.expandableItems?" style-clickable":"";return J.messageContainerStyle?J.messageContainerStyle.split("MESSAGE_CONTAINER_")[1].replace(/_/g,"-").toLowerCase()+c:"style-unspecified"+c};
_.V.isSinglePerk=function(J){return!!J.messageContainerStyle&&(J.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK"||J.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK_FIRST")};
_.V.onExpandedChanged=function(){var J=this;if(this.expanded)for(var c=_.M(this.hostElement.querySelectorAll("yt-img-shadow")),m=c.next();!m.done;m=c.next())m.value.onShow();_.o3(this,function(){_.cA(J.hostElement,"yt-refit")})};
_.V.onDataChanged=function(){this.get("data.startExpanded")&&(this.expanded=!0)};
em.prototype.onDataChanged=em.prototype.onDataChanged;em.prototype.onExpandedChanged=em.prototype.onExpandedChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],em.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],em.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],em.prototype,"data",void 0);_.O([_.U({value:!1}),_.R("design:type",Boolean)],em.prototype,"expanded",void 0);
_.O([_.NE("expanded"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],em.prototype,"onExpandedChanged",null);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],em.prototype,"onDataChanged",null);em=_.O([_.E({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-message-renderer"})],em);
_.v(em,"ytd-sponsorships-expandable-message-renderer",function(){if(dY_!==void 0)return dY_;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return dY_=J},{mode:_.mP("kevlar_poly_si_batch_j028")?1:2});var $YQ;var jm=function(){return _.h.apply(this,arguments)||this};
_.D(jm,_.h);jm.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"}}}}};
jm.prototype.onDataChanged=function(){this.get("data.endButton.buttonRenderer.text")&&this.get("data.endButton.buttonRenderer.icon")&&(_.L(this.data.endButton,_.ur).iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT")};
jm.prototype.onDataChanged=jm.prototype.onDataChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],jm.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],jm.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],jm.prototype,"data",void 0);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],jm.prototype,"onDataChanged",null);
jm=_.O([_.E({disableElementRegistration:!0,is:"ytd-sponsorships-heading-renderer"})],jm);
_.v(jm,"ytd-sponsorships-heading-renderer",function(){if($YQ!==void 0)return $YQ;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return $YQ=J},{mode:1});var GN$;var FT=function(){return _.h.apply(this,arguments)||this};
_.D(FT,_.h);_.O([_.U(),_.R("design:type",Object)],FT.prototype,"data",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],FT.prototype,"ytRendererBehavior",void 0);FT=_.O([_.E({disableElementRegistration:!0,is:"ytd-sponsorships-links-renderer"})],FT);
_.v(FT,"ytd-sponsorships-links-renderer",function(){if(GN$!==void 0)return GN$;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return GN$=J},{mode:1});var Efa;var lw=function(){return _.h.apply(this,arguments)||this};
_.D(lw,_.h);_.V=lw.prototype;_.V.onDataChanged=function(){if(this.data&&this.data.expandableItems){var J;(J=_.Bj(this.hostElement).querySelector("tp-yt-paper-button"))==null||J.setAttribute("role","button")}else{var c;(c=_.Bj(this.hostElement).querySelector("tp-yt-paper-button"))==null||c.removeAttribute("role")}};
_.V.onToggleExpand=function(){this.data&&this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.V.getExpansionIcon=function(J){return J?"COLLAPSE":"EXPAND"};
_.V.getTileClasses=function(J){return J?"tile expandable-tile":"tile"};
_.V.getButtonDisabled=function(J){return J?void 0:""};
lw.prototype.onDataChanged=lw.prototype.onDataChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],lw.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],lw.prototype,"data",void 0);_.O([_.U({value:!1}),_.R("design:type",Boolean)],lw.prototype,"expanded",void 0);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],lw.prototype,"onDataChanged",null);
lw=_.O([_.E({disableElementRegistration:!0,is:"ytd-sponsorships-list-tile-renderer"})],lw);
_.v(lw,"ytd-sponsorships-list-tile-renderer",function(){if(Efa!==void 0)return Efa;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return Efa=J},{mode:1});var vfQ;var OB_;var yW=function(){return _.h.apply(this,arguments)||this};
_.D(yW,_.h);yW.prototype.configureRendererStamper=function(){return{"data.redeemButton":{id:"redeem-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],yW.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],yW.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],yW.prototype,"data",void 0);yW=_.O([_.E({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-renderer"})],yW);
_.v(yW,"ytd-sponsorships-promotion-renderer",function(){if(OB_!==void 0)return OB_;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return OB_=J},{mode:1});var Auj;var Bb=function(){return _.h.apply(this,arguments)||this};
_.D(Bb,_.h);Bb.prototype.configureRendererStamper=function(){return{"data.button":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Bb.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],Bb.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Bb.prototype,"data",void 0);Bb=_.O([_.E({disableElementRegistration:!0,is:"ytd-sponsorships-purchase-option-renderer"})],Bb);
_.v(Bb,"ytd-sponsorships-purchase-option-renderer",function(){if(Auj!==void 0)return Auj;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return Auj=J},{mode:1});var RqZ;var ofj;var gY=function(){return _.h.apply(this,arguments)||this};
_.D(gY,_.h);_.O([_.U(),_.R("design:type",Object)],gY.prototype,"data",void 0);gY=_.O([_.E({disableElementRegistration:!0,is:"ytd-ypc-offer-promo-renderer"})],gY);
_.v(gY,"ytd-ypc-offer-promo-renderer",function(){if(ofj!==void 0)return ofj;var J=document.createElement("template");_.z(J,'\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>');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return ofj=J},{mode:1});var J4=function(){return _.h.apply(this,arguments)||this};
_.D(J4,_.h);_.V=J4.prototype;
_.V.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"}}}}};
_.V.expansionCTA=function(J,c){return J&&(c?J.collapseCallToAction:J.expansionCallToAction)};
_.V.getExpansionIcon=function(J){return J?"COLLAPSE":"EXPAND"};
_.V.expansionCallToActionTap=function(){var J=this;this.expanded=!this.expanded;_.o3(this,function(){_.cA(J.hostElement,"yt-refit")})};
_.V.onDataChanged=function(){this.expanded=!this.get("data.expansionCallToAction");this.purchaseButtonClicked=!1;var J,c=(J=this.data)==null?void 0:J.onVisible;c&&this.ytComponentBehavior.resolveCommand(c)};
_.V.computeDisplayTitle=function(J){return!(!J||this.titledisplaystatus!=="show")};
_.V.computeDisplaySeparator=function(){return!1};
_.V.onPurchaseButtonTap=function(){this.purchaseButtonClicked=!0};
J4.prototype.onDataChanged=J4.prototype.onDataChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],J4.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],J4.prototype,"ytComponentBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],J4.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],J4.prototype,"data",void 0);
_.O([_.U({value:!1}),_.R("design:type",Boolean)],J4.prototype,"expanded",void 0);_.O([_.U({value:!1}),_.R("design:type",Boolean)],J4.prototype,"purchaseButtonClicked",void 0);_.O([_.U({reflectToAttribute:!0,value:"show"}),_.R("design:type",String)],J4.prototype,"titledisplaystatus",void 0);_.O([_.U({computed:"computeDisplayTitle(data.title)"}),_.R("design:type",Boolean)],J4.prototype,"displayTitle",void 0);
_.O([_.U({computed:"computeDisplaySeparator(data)"}),_.R("design:type",Boolean)],J4.prototype,"displaySeparator",void 0);_.O([_.kr("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],J4.prototype,"onDataChanged",null);J4=_.O([_.E({disableElementRegistration:!0,is:"ytd-sponsorships-tier-renderer"})],J4);
_.v(J4,"ytd-sponsorships-tier-renderer",function(){if(RqZ!==void 0)return RqZ;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return RqZ=J},{mode:2});var cN=function(){return _.h.apply(this,arguments)||this};
_.D(cN,_.h);
cN.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"},sponsorshipsHeadingRenderer:{component:"ytd-sponsorships-heading-renderer"},sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"},sponsorshipsExpandableMessageRenderer:{component:"ytd-sponsorships-expandable-message-renderer"}}},"data.sidebar":{id:"sidebar",mapping:{sponsorshipsHeadingRenderer:{component:"ytd-sponsorships-heading-renderer"},sponsorshipsActionableMessageRenderer:{component:"ytd-sponsorships-actionable-message-renderer"},
sponsorshipsLinksRenderer:{component:"ytd-sponsorships-links-renderer"},sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}},"data.alert":{id:"alert-renderer",mapping:{sponsorshipsAlertRenderer:{component:"ytd-sponsorships-alert-renderer"}}}}};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],cN.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],cN.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],cN.prototype,"data",void 0);cN=_.O([_.E({disableElementRegistration:!0,is:"ytd-sponsorships-management-renderer"})],cN);
_.v(cN,"ytd-sponsorships-management-renderer",function(){if(vfQ!==void 0)return vfQ;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return vfQ=J},{mode:1});var QXj;var m6=function(){return _.h.apply(this,arguments)||this};
_.D(m6,_.h);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],m6.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],m6.prototype,"data",void 0);m6=_.O([_.E({disableElementRegistration:!0,is:"ytd-open-in-native-app-view-model"})],m6);
_.v(m6,"ytd-open-in-native-app-view-model",function(){if(QXj!==void 0)return QXj;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return QXj=J},{mode:_.mP("kevlar_poly_si_batch_j028")?1:2});var eq_;var jX2;var FWB=_.Oo(["top-"]),lEz=_.Oo(["bottom-"]),yu8=_.Oo(["left-"]),BqL=_.Oo(["right-"]),gfB={},JjZ=function(J,c,m){J.removeAttribute("top-"+m);J.removeAttribute("bottom-"+m);J.removeAttribute("left-"+m);J.removeAttribute("right-"+m);c&&(c.top&&_.E$([_.g8(FWB)],J,"top-"+m,c.top),c.bottom&&_.E$([_.g8(lEz)],J,"bottom-"+m,c.bottom),c.left&&_.E$([_.g8(yu8)],J,"left-"+m,c.left),c.right&&_.E$([_.g8(BqL)],J,"right-"+m,c.right))};
gfB.YtCardItemBoxBehavior=[{observers:["cardItemContainerMarginChanged_(data.containerMargin)","cardItemContainerPaddingChanged_(data.containerPadding)"],created:function(){this.cardItemBoxBehaviorPaddingTargetId=""},
cardItemContainerMarginChanged_:function(J){var c,m=_.Bj((c=this.hostElement)!=null?c:this),b;c=this.cardItemBoxBehaviorMarginTargetId&&m?m.querySelector("#"+this.cardItemBoxBehaviorMarginTargetId):(b=this.hostElement)!=null?b:this;JjZ(c,J,"margin")},
cardItemContainerPaddingChanged_:function(J){var c,m=_.Bj((c=this.hostElement)!=null?c:this),b;c=this.cardItemBoxBehaviorPaddingTargetId&&m?m.querySelector("#"+this.cardItemBoxBehaviorPaddingTargetId):(b=this.hostElement)!=null?b:this;JjZ(c,J,"padding")}}];var bT={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 cjC;var mm6;var xu=function(){return _.h.apply(this,arguments)||this};
_.D(xu,_.h);xu.prototype.textColorChanged_=function(){this.hostElement.style.color=bT[this.data.textColor||"CARD_ITEM_COLOR_TEXT_PRIMARY"]};
xu.prototype.textColorChanged_=xu.prototype.textColorChanged_;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],xu.prototype,"ytRendererBehavior",void 0);_.O([_.f(gfB.YtCardItemBoxBehavior),_.R("design:type",Object)],xu.prototype,"ytCardItemBoxBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],xu.prototype,"data",void 0);_.O([_.NE("data.textColor"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],xu.prototype,"textColorChanged_",null);
xu=_.O([_.uM({is:"yt-card-item-text-renderer",disableElementRegistration:!0})],xu);
_.v(xu,"yt-card-item-text-renderer",function(){if(mm6===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;cjC===void 0&&(cjC=document.createElement("template"));var b=cjC;m.call(c,b.content.cloneNode(!0),J.content.firstChild);mm6=J}J=mm6;return J},{mode:2});var bnZ;var xmZ;var VB=function(){return _.h.apply(this,arguments)||this};
_.D(VB,_.h);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],VB.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],VB.prototype,"data",void 0);VB=_.O([_.uM({is:"yt-card-item-badge-renderer",disableElementRegistration:!0})],VB);
_.v(VB,"yt-card-item-badge-renderer",function(){if(xmZ===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;bnZ===void 0&&(bnZ=document.createElement("template"));var b=bnZ;m.call(c,b.content.cloneNode(!0),J.content.firstChild);xmZ=J}J=xmZ;return J},{mode:2});var V16;var Pn_;var PN=function(){return _.h.apply(this,arguments)||this};
_.D(PN,_.h);PN.prototype.configureRendererStamper=function(){return{"data.textRenderers":{id:"text-renderers",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}}}};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],PN.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],PN.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],PN.prototype,"data",void 0);PN=_.O([_.uM({is:"yt-card-item-text-collection-renderer",disableElementRegistration:!0})],PN);
_.v(PN,"yt-card-item-text-collection-renderer",function(){if(Pn_===void 0){var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);var c=J.content,m=c.insertBefore;V16===void 0&&(V16=document.createElement("template"));var b=V16;m.call(c,b.content.cloneNode(!0),J.content.firstChild);Pn_=J}J=Pn_;return J},{mode:2});var M1z;var pMC;var M4=function(){return _.h.apply(this,arguments)||this};
_.D(M4,_.h);M4.prototype.configureRendererStamper=function(){return{"data.textCollectionRenderer":{id:"card-item-text-collection-renderer",mapping:{cardItemTextCollectionRenderer:"yt-card-item-text-collection-renderer"}},"data.buttonRenderer":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{iconSize:"[[iconSize]]"}}}}}};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],M4.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],M4.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],M4.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Number)],M4.prototype,"iconSize",void 0);M4=_.O([_.uM({is:"yt-card-item-text-with-button-renderer",disableElementRegistration:!0})],M4);
_.v(M4,"yt-card-item-text-with-button-renderer",function(){if(pMC===void 0){var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);var c=J.content,m=c.insertBefore;M1z===void 0&&(M1z=document.createElement("template"));var b=M1z;m.call(c,b.content.cloneNode(!0),J.content.firstChild);pMC=J}J=pMC;return J},{mode:2});var pM=function(){return _.h.apply(this,arguments)||this};
_.D(pM,_.h);pM.prototype.configureRendererStamper=function(){return{"data.summaryText":{id:"summary-text",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer",cardItemTextWithButtonRenderer:{component:"yt-card-item-text-with-button-renderer",params:{iconSize:18}}}},"data.additionalMetadataText":{id:"additional-metadata-text",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer"}},"data.price":{id:"price",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer"}}}};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],pM.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],pM.prototype,"ytComponentBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],pM.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],pM.prototype,"data",void 0);pM=_.O([_.E({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-line-item-renderer"})],pM);
_.v(pM,"ytd-commerce-cart-summary-line-item-renderer",function(){if(jX2!==void 0)return jX2;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return jX2=J},{mode:1});_.zH("cardItemSection","commerceCartCheckoutButtonRenderer",{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var N4=function(){var J=_.h.apply(this,arguments)||this;J.hidden=!1;return J};
_.D(N4,_.h);_.V=N4.prototype;_.V.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"}}}}};
_.V.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutButton(),this.updateIsHidden(),this.updateSummary())};
_.V.updateSummary=function(){var J=this.commerceCartCheckoutButtonEntity,c;if(((c=this.data)==null?0:c.cartButton)&&J.checkoutSummaryText){var m,b=Zi((m=this.data)==null?void 0:m.estimatedTotalLineItem,"summaryText");this.set("data.estimatedTotalLineItem."+b+".cardItemTextRenderer.text",qJ(J.checkoutSummaryText));if(J.checkoutDetailText){var x;m=Zi((x=this.data)==null?void 0:x.estimatedTotalLineItem,"price");this.set("data.estimatedTotalLineItem."+m+".cardItemTextRenderer.text",qJ(J.checkoutDetailText))}if(J.checkoutAdditionalMetadataText){var P;
x=Zi((P=this.data)==null?void 0:P.estimatedTotalLineItem,"additionalMetadataText");this.set("data.estimatedTotalLineItem."+x+".cardItemTextRenderer.text",qJ(J.checkoutAdditionalMetadataText))}}else J.estimatedTotalPrice&&(P=Zi((b=this.data)==null?void 0:b.estimatedTotalLineItem,"price"),this.set("data.estimatedTotalLineItem."+P+".cardItemTextRenderer.text",qJ(J.estimatedTotalPrice)))};
_.V.updateIsHidden=function(){var J,c=(J=this.commerceCartCheckoutButtonEntity)==null?void 0:J.isHidden;c!==void 0&&(this.hidden=c)};
_.V.updateCheckoutButton=function(){var J,c=(J=this.commerceCartCheckoutButtonEntity)==null?void 0:J.isDisabled;c!==void 0&&this.set("data.checkoutButton.buttonRenderer.isDisabled",c);var m;J=(m=this.commerceCartCheckoutButtonEntity.checkoutButtonCommand)==null?void 0:m.innertubeCommand;J!==void 0&&this.set("data.checkoutButton.buttonRenderer.command",J);var b;m=(b=this.commerceCartCheckoutButtonEntity)==null?void 0:b.checkoutButtonText;m!==void 0&&this.set("data.checkoutButton.buttonRenderer.text",
{simpleText:m})};
N4.prototype.entityChanged=N4.prototype.entityChanged;_.O([_.f(_.fY),_.R("design:type",Object)],N4.prototype,"ytdReduxBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],N4.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],N4.prototype,"ytComponentBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],N4.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],N4.prototype,"fullWidth",void 0);_.O([_.U(),_.R("design:type",Object)],N4.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],N4.prototype,"compact",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],N4.prototype,"hidden",void 0);
_.O([_.U({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:r6m}),_.R("design:type",Object)],N4.prototype,"commerceCartCheckoutButtonEntity",void 0);_.O([_.NE("commerceCartCheckoutButtonEntity","data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],N4.prototype,"entityChanged",null);N4=_.O([_.E({disableElementRegistration:!0,is:"ytd-commerce-cart-checkout-button-renderer"})],N4);
_.v(N4,"ytd-commerce-cart-checkout-button-renderer",function(){if(eq_!==void 0)return eq_;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return eq_=J},{mode:2});var NQ8;_.t16={};
_.t16.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",_.ME(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
detached:function(){this.tappableItemBehaviorGetTappableTarget_().removeEventListener("keydown",this.tappableItemBehaviorBoundOnTappableItemKeyDown_,!0);this.tappableItemBehaviorGetTappableTarget_().removeEventListener("click",_.ME(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
tappableItemBehaviorOnTappableItemKeyDown_:function(J){!this.tappableItemBehaviorTapEnabled||J.keyCode!==13&&J.keyCode!==32||J.target!=this.tappableItemBehaviorGetTappableTarget_()||this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorOnTappableItemTap_:function(){this.tappableItemBehaviorTapEnabled&&this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorHandleTappableItemTap_:function(){var J=this.data.onTap;J.ypcGetCartEndpoint?(_.Vq(this.hostElement,[J]),this.tappableItemBehaviorTapEnabled=!1):J.ypcOffersEndpoint?_.Vq(this.hostElement,[J]):_.PA(this.hostElement,[J],this.hostElement)},
tappableItemBehaviorOnTapChanged_:function(J){this.tappableItemBehaviorTapEnabled=!!J},
tappableItemBehaviorOnTapEnabledChanged_:function(){var J=this.tappableItemBehaviorGetTappableTarget_();this.tappableItemBehaviorTapEnabled?(J.setAttribute("tabIndex",0),J.setAttribute("role","button")):(J.removeAttribute("tabIndex"),J.removeAttribute("role"))},
tappableItemBehaviorOnServiceRequestFinished_:function(J){J.target==this&&(this.tappableItemBehaviorTapEnabled=!!this.data.onTap)},
tappableItemBehaviorGetTappableTarget_:function(){return this.tappableItemBehaviorTargetId?this.$[this.tappableItemBehaviorTargetId]:this.hostElement}}];var ITQ;var KuQ;var t4=function(){return _.h.apply(this,arguments)||this};
_.D(t4,_.h);t4.prototype.configureRendererStamper=function(){return{"data.primaryButtonRenderer":{id:"primary-button-renderer",mapping:_.uB("sharingToggleButtonAndDefaultButton")},"data.secondaryButtonRenderer":{id:"secondary-button-renderer",mapping:_.uB("sharingToggleButtonAndDefaultButton")}}};
_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],t4.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],t4.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],t4.prototype,"data",void 0);t4=_.O([_.uM({is:"yt-card-item-actions-renderer",disableElementRegistration:!0})],t4);
_.v(t4,"yt-card-item-actions-renderer",function(){if(KuQ===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;ITQ===void 0&&(ITQ=document.createElement("template"));var b=ITQ;m.call(c,b.content.cloneNode(!0),J.content.firstChild);KuQ=J}J=KuQ;return J},{mode:2});var Cnu;var aTZ;var kIQ;var HnL;var ina;var nm$;var IG=function(){var J=_.h.apply(this,arguments)||this;J.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction_"};return J};
_.D(IG,_.h);IG.prototype.attached=function(){this.isDarkTheme_=document.documentElement.hasAttribute("dark")};
IG.prototype.handleDarkModeToggledAction_=function(J){this.isDarkTheme_=J};
IG.prototype.computeThemeImage_=function(J,c){if(!J||!J.imageLight)return!1;this.isCircular_=J.isCircular;J.imageWidth&&(this.hostElement.style.width=J.imageWidth+"px");J.imageHeight&&(this.hostElement.style.height=J.imageHeight+"px");J.borderWidth&&(this.image.style.borderWidth=J.borderWidth+"px",this.image.style.borderStyle="solid");J.borderColor&&(this.image.style.borderColor=_.Zn(J.borderColor));return c&&J.imageDark?J.imageDark:J.imageLight};
IG.prototype.computeThemeIcon_=function(J){var c,m;if(!(J==null?0:(c=J.themedIcon)==null?0:(m=c.icon)==null?0:m.iconType))return!1;this.icon.style.color=bT[J.themedIcon.iconColor||"CARD_ITEM_COLOR_GENERAL_BACKGROUND_A"];this.icon.style.width=(J.imageWidth||18)+"px";this.icon.style.height=(J.imageHeight||18)+"px";return _.Pd(J.themedIcon.icon.iconType)};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],IG.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],IG.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(gfB.YtCardItemBoxBehavior),_.R("design:type",Object)],IG.prototype,"ytCardItemBoxBehavior",void 0);_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],IG.prototype,"ytActionHandlerBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],IG.prototype,"data",void 0);
_.O([_.U({value:!1}),_.R("design:type",Boolean)],IG.prototype,"fit",void 0);_.O([_.U(),_.R("design:type",Boolean)],IG.prototype,"isDarkTheme_",void 0);_.O([_.U({computed:"computeThemeImage_(data, isDarkTheme_)"}),_.R("design:type",Object)],IG.prototype,"themeImage_",void 0);_.O([_.U({computed:"computeThemeIcon_(data)"}),_.R("design:type",Object)],IG.prototype,"themeIcon_",void 0);_.O([_.U({reflectToAttribute:!0,value:!1}),_.R("design:type",Object)],IG.prototype,"isCircular_",void 0);
_.O([_.Iu("#image"),_.R("design:type",Object)],IG.prototype,"image",void 0);_.O([_.Iu("#icon"),_.R("design:type",Object)],IG.prototype,"icon",void 0);IG=_.O([_.uM({is:"yt-themed-image-renderer",disableElementRegistration:!0})],IG);
_.v(IG,"yt-themed-image-renderer",function(){if(nm$===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;ina===void 0&&(ina=document.createElement("template"));var b=ina;m.call(c,b.content.cloneNode(!0),J.content.firstChild);nm$=J}J=nm$;return J},{mode:2});var KM=function(){return _.h.apply(this,arguments)||this};
_.D(KM,_.h);KM.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"}}}}};
KM.prototype.computeImagePlacement_=function(J){return J||"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN"};
_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],KM.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],KM.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],KM.prototype,"data",void 0);_.O([_.U({value:"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN",computed:"computeImagePlacement_(data.imagePlacement)",reflectToAttribute:!0}),_.R("design:type",String)],KM.prototype,"imagePlacement",void 0);
KM=_.O([_.uM({is:"yt-card-item-text-with-image-renderer",disableElementRegistration:!0})],KM);
_.v(KM,"yt-card-item-text-with-image-renderer",function(){if(HnL===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;kIQ===void 0&&(kIQ=document.createElement("template"));var b=kIQ;m.call(c,b.content.cloneNode(!0),J.content.firstChild);HnL=J}J=HnL;return J},{mode:2});var CM=function(){return _.h.apply(this,arguments)||this};
_.D(CM,_.h);CM.prototype.configureRendererStamper=function(){return{"data.errorTextRenderer":{id:"error-text-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"},cardItemTextWithImageRenderer:{component:"yt-card-item-text-with-image-renderer"}}}}};
_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],CM.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],CM.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],CM.prototype,"data",void 0);CM=_.O([_.uM({is:"yt-card-item-error-renderer",disableElementRegistration:!0})],CM);
_.v(CM,"yt-card-item-error-renderer",function(){if(aTZ===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;Cnu===void 0&&(Cnu=document.createElement("template"));var b=Cnu;m.call(c,b.content.cloneNode(!0),J.content.firstChild);aTZ=J}J=aTZ;return J},{mode:2});var TQ_;var wMj;_.zH("itemSectionRenderer","CardItemRenderer","yt-card-item-renderer");var aG=function(){return _.h.apply(this,arguments)||this};
_.D(aG,_.h);_.V=aG.prototype;
_.V.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"}}}}};
_.V.created=function(){this.tappableItemBehaviorTargetId=this.cardItemBoxBehaviorPaddingTargetId="main-content"};
_.V.backgroundColorChanged_=function(){var J,c=(J=this.data)==null?void 0:J.backgroundColor;J=bT[c||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.Bj(this.hostElement).querySelector("#main-content").style.backgroundColor=J};
_.V.headerPromoBackgroundColorChanged_=function(){var J,c=(J=this.data)==null?void 0:J.headerPromoBackgroundColor;J=bT[c||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.Bj(this.hostElement).querySelector("#header-promo-renderer").style.backgroundColor=J};
_.V.errorRendererVisibilityChanged_=function(){var J=this.isExpanded_,c;this.isErrorRendererVisible_=!((c=this.data)==null||!c.errorRenderer)&&!J};
_.V.onYtToggleButton_=function(J,c){this.isExpanded_=c.toggled};
aG.prototype.onYtToggleButton_=aG.prototype.onYtToggleButton_;aG.prototype.errorRendererVisibilityChanged_=aG.prototype.errorRendererVisibilityChanged_;aG.prototype.headerPromoBackgroundColorChanged_=aG.prototype.headerPromoBackgroundColorChanged_;aG.prototype.backgroundColorChanged_=aG.prototype.backgroundColorChanged_;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],aG.prototype,"ytRendererBehavior",void 0);
_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],aG.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(gfB.YtCardItemBoxBehavior),_.R("design:type",Object)],aG.prototype,"ytCardItemBoxBehavior",void 0);_.O([_.f(_.t16.YtTappableItemBehavior),_.R("design:type",Object)],aG.prototype,"ytTappableItemBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],aG.prototype,"data",void 0);_.O([_.U({value:!1}),_.R("design:type",Boolean)],aG.prototype,"isExpanded_",void 0);
_.O([_.U({value:!1}),_.R("design:type",Boolean)],aG.prototype,"isErrorRendererVisible_",void 0);_.O([_.NE("data.backgroundColor"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],aG.prototype,"backgroundColorChanged_",null);_.O([_.NE("data.headerPromoBackgroundColor"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],aG.prototype,"headerPromoBackgroundColorChanged_",null);
_.O([_.NE("data.errorRenderer","isExpanded_"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],aG.prototype,"errorRendererVisibilityChanged_",null);_.O([_.ps("yt-toggle-button"),_.R("design:type",Function),_.R("design:paramtypes",[Event,Object]),_.R("design:returntype")],aG.prototype,"onYtToggleButton_",null);aG=_.O([_.uM({is:"yt-card-item-renderer",disableElementRegistration:!0})],aG);
_.v(aG,"yt-card-item-renderer",function(){if(wMj===void 0){var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);var c=J.content,m=c.insertBefore;TQ_===void 0&&(TQ_=document.createElement("template"));var b=TQ_;m.call(c,b.content.cloneNode(!0),J.content.firstChild);wMj=J}J=wMj;return J},{mode:2});_.zH("cardItemSection","commerceCartHeaderRenderer",{component:"ytd-commerce-cart-header-renderer",noInjection:!0});var ku=function(){var J=_.h.apply(this,arguments)||this;J.hidden=!1;return J};
_.D(ku,_.h);_.V=ku.prototype;_.V.configureRendererStamper=function(){return{"data.item":{id:"item",mapping:{cardItemRenderer:"yt-card-item-renderer"}}}};
_.V.entityChanged=function(){this.commerceCartHeaderEntity&&(this.updateIsHidden(),this.updateSummaryText(),this.updateCheckoutButton(),this.updateTitle())};
_.V.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var J,c=(J=this.commerceCartHeaderEntity)==null?void 0:J.isHidden;c!==void 0&&(this.hidden=c)}};
_.V.updateTitle=function(){var J=this.commerceCartHeaderEntity.isDisabled,c,m,b=(m=_.L((c=this.data)==null?void 0:c.item,syL))==null?void 0:m.headingRenderer;b&&(c=Zi(b,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+c+".0.cardItemTextRenderer.textColor",J?"CARD_ITEM_COLOR_TEXT_DISABLED":"CARD_ITEM_COLOR_TEXT_PRIMARY"))};
_.V.updateSummaryText=function(){var J=this.commerceCartHeaderEntity;if(this.compact){var c,m,b=(m=_.L((c=this.data)==null?void 0:c.item,syL))==null?void 0:m.headingRenderer;b&&(c=Zi(b,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+c+".1.cardItemTextRenderer.text",J.shortHeaderSummaryText?qJ(J.shortHeaderSummaryText):J.headerSummaryText?qJ(J.headerSummaryText):""))}else{var x;if(c=(x=_.L((b=this.data)==null?void 0:b.item,syL))==null?void 0:x.additionalInfoRenderer)c=Zi(c,
"cardItemTextRenderer"),this.set("data.item.cardItemRenderer.additionalInfoRenderer."+c+".text",J.headerSummaryText?qJ(J.headerSummaryText):"")}};
_.V.updateCheckoutButton=function(){var J=this.commerceCartHeaderEntity,c,m,b=(m=_.L((c=this.data)==null?void 0:c.item,syL))==null?void 0:m.additionalInfoRenderer;c=Zi(b,"buttonRenderer");var x;m=(x=this.commerceCartHeaderEntity)==null?void 0:x.isButtonDisabled;var P;x=(P=this.commerceCartHeaderEntity)==null?void 0:P.isButtonHidden;m!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+c+".buttonRenderer.isDisabled",m);x!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer.isHidden",
x);var p;J=(p=J.checkoutButtonCommand)==null?void 0:p.innertubeCommand;J!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+c+".buttonRenderer.command",J)};
ku.prototype.entityChanged=ku.prototype.entityChanged;_.O([_.f(_.fY),_.R("design:type",Object)],ku.prototype,"ytdReduxBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],ku.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],ku.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],ku.prototype,"data",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],ku.prototype,"compact",void 0);_.O([_.U({selectorArgs:["data.commerceCartHeaderEntityKey"],selector:function(J,c){return _.P2(J.entities,"commerceCartHeaderEntity",c)}}),
_.R("design:type",Object)],ku.prototype,"commerceCartHeaderEntity",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],ku.prototype,"hidden",void 0);_.O([_.NE("commerceCartHeaderEntity","data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],ku.prototype,"entityChanged",null);ku=_.O([_.E({disableElementRegistration:!0,is:"ytd-commerce-cart-header-renderer"})],ku);
_.v(ku,"ytd-commerce-cart-header-renderer",function(){if(NQ8!==void 0)return NQ8;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return NQ8=J},{mode:1});var rjQ;var sY6=_.Kd(function(J,c){var m;return(m=J.onChangeCallback)==null?void 0:m.call(J,c)},1E3),Lu_=_.Q1(function(J){var c=J.data;
var m=J.iconMinus;J=J.iconPlus;var b=function(){return!!c().disabled},x=_.M(_.K2(0,void 0,"r56zNb")),P=x.next().value,p=x.next().value;
x={};x=_.pq("yt-spec-quantity-incrementer-shape__icon",(x["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return b()||P()===(c().onRemoveCommand?0:1)},x));
var t={};t=_.pq("yt-spec-quantity-incrementer-shape__icon",(t["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return P()>=c().maxValue||b()},t));
var I={};I=_.pq("yt-spec-quantity-incrementer-shape__text",(I["yt-spec-quantity-incrementer-shape__text--invalid"]=function(){return P()>c().maxValue},I["yt-spec-quantity-incrementer-shape__text--text-disabled"]=b,I));
var a=_.Kq(function(){if(P()===1){var H,T;(T=(H=c()).onRemoveCommand)==null||T.call(H)}H=P()>c().maxValue?c().maxValue:P()-1;p(H);sY6(c(),H);return!1}),k=_.Kq(function(){if(P()===c().maxValue)return!1;
var H=P()+1;p(H);sY6(c(),H);return!1});
_.WG(function(){p(c().value)});
return _.C("quantity-incrementer-shape",null,_.C("div",{class:"yt-spec-quantity-incrementer-shape"},_.C("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return P()===(c().onRemoveCommand?0:1)||b()},
"aria-label":function(){return P()!==1?c().minusLabel:c().minimumReachedLabel},
"on:click":a},_.C(_.TH,{model:{circular:!0}}),_.C("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.C("div",{class:x},m()))),_.C("div",{class:I},P),_.C("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return P()>=c().maxValue||b()},
"aria-label":function(){return P()!==c().maxValue?c().plusLabel:c().maximumReachedLabel},
"on:click":k},_.C(_.TH,{model:{circular:!0}}),_.C("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.C("div",{class:t},J())))))},"Qd");_.lv(_.Q1(function(J){function c(){m().onRemoveCommand&&_.hd(m().onRemoveCommand)}
var m=J.data;var b=_.tT(udr,function(){return m().quantityIncrementerEntityKey});
return _.C("yt-quantity-incrementer-view-model",null,_.C(Lu_,{data:function(){var x=m(),P;var p=b()?!((P=b())==null||!P.disabled):!1;var t;P=b()?(t=b())==null?void 0:t.quantity:m().quantity;return jBq(x,p,c,P)},
iconMinus:function(){return _.C(_.HP,{icon:"BAR_HORIZONTAL",className:_.tP("yt-spec-quantity-incrementer-view-model","yt-spec-quantity-incrementer-view-model__quantity-incrementer-minus-icon")})},
iconPlus:function(){return _.C(_.HP,{icon:"ADD",className:_.tP("yt-spec-quantity-incrementer-view-model","yt-spec-quantity-incrementer-view-model__quantity-incrementer-plus-icon")})}}))},"Rd"),"yt-quantity-incrementer-view-model",{props:{data:_.vt}});var HN=function(){var J=_.h.apply(this,arguments)||this;J.compact=!1;J.hasQuantityIncrementer=!1;return J};
_.D(HN,_.h);HN.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"}}}};
HN.prototype.computeHasQuantityIncrementer=function(){var J;return!!_.L((J=this.data)==null?void 0:J.picker,z5Z)};
HN.prototype.onLabelClick=function(){var J;(J=this.dropdownEl)==null||J.open()};
_.O([_.Iu("ytd-dropdown-renderer"),_.R("design:type",Object)],HN.prototype,"dropdownEl",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],HN.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],HN.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],HN.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",String)],HN.prototype,"quantityColor",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],HN.prototype,"compact",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeHasQuantityIncrementer(data)"}),_.R("design:type",Object)],HN.prototype,"hasQuantityIncrementer",void 0);HN=_.O([_.E({disableElementRegistration:!0,is:"ytd-commerce-cart-item-quantity-picker-renderer"})],HN);
_.v(HN,"ytd-commerce-cart-item-quantity-picker-renderer",function(){if(rjQ!==void 0)return rjQ;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return rjQ=J},{mode:1});var Dm2;var WuB;var iT=function(){return _.h.apply(this,arguments)||this};
_.D(iT,_.h);iT.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
iT.prototype.entityChanged=function(){this.disabledCartItemEntity&&(this.updateTitle(),this.updateButton())};
iT.prototype.updateTitle=function(){var J=this.disabledCartItemEntity;J.disableActionName&&this.set("data.title",qJ(J.disableActionName))};
iT.prototype.updateButton=function(){var J,c=(J=this.disabledCartItemEntity.undoCommand)==null?void 0:J.innertubeCommand;c!==void 0&&(this.set("data.actionButton.buttonRenderer.command",c),this.set("data.actionButton.buttonRenderer.isDisabled",!1))};
iT.prototype.entityChanged=iT.prototype.entityChanged;_.O([_.f(_.fY),_.R("design:type",Object)],iT.prototype,"ytdReduxBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],iT.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],iT.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U({selectorArgs:["data.disabledCartItemEntityKey"],selector:function(J,c){return _.P2(J.entities,"disabledCartItemEntity",c)}}),
_.R("design:type",Object)],iT.prototype,"disabledCartItemEntity",void 0);_.O([_.U(),_.R("design:type",Object)],iT.prototype,"data",void 0);_.O([_.NE("disabledCartItemEntity","data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],iT.prototype,"entityChanged",null);iT=_.O([_.E({disableElementRegistration:!0,is:"ytd-disabled-cart-item-renderer"})],iT);
_.v(iT,"ytd-disabled-cart-item-renderer",function(){if(WuB!==void 0)return WuB;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return WuB=J},{mode:1});_.zH("cardItemSection","commerceCartItemRenderer",{component:"ytd-commerce-cart-item-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var nM=function(){var J=_.h.apply(this,arguments)||this;J.compact=!1;J.hidden=!1;J.errorHidden=!1;J.noOnTap=!1;return J};
_.D(nM,_.h);_.V=nM.prototype;
_.V.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"}}}};
_.V.entityChanged=function(){this.commerceCartItemEntity&&(this.updateQuantity(),this.updateIsHidden(),this.updateHideErrorMessage())};
_.V.onYtRendererstamperFinished=function(){if(this.firstButtonElement){var J=this.firstButtonElement;J.alignByText=!0;J.iconAlignByText=!0}};
_.V.computeNoOnTap=function(J){return!J};
_.V.updateQuantityColor=function(){if(this.pickerElement){var J,c=(J=this.commerceCartItemEntity)==null?void 0:J.quantityColor;this.pickerElement.quantityColor=c}};
_.V.updateTotalPriceColor=function(){var J,c=(J=this.commerceCartItemEntity)==null?void 0:J.totalPriceColor;if(c){var m;J=_.L((m=this.data)==null?void 0:m.quantityPicker,DZ2);if(m=_.L(J==null?void 0:J.price,LMa))m.textColor=c}};
_.V.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var J,c=(J=this.commerceCartItemEntity)==null?void 0:J.isHidden;c!==void 0&&(this.hidden=c)}};
_.V.updateHideErrorMessage=function(){var J,c=(J=this.commerceCartItemEntity)==null?void 0:J.hideErrorMessage;c!==void 0&&(this.errorHidden=c)};
_.V.updateQuantity=function(){var J=this,c,m=(c=this.commerceCartItemEntity)==null?void 0:c.quantity,b;c=(b=this.commerceCartItemEntity)==null?void 0:b.totalPrice;if(m){this.updateTotalPriceColor();this.updateQuantityColor();var x;b=_.L((x=this.data)==null?void 0:x.quantityPicker,DZ2);if(x=_.L(b==null?void 0:b.price,LMa))x.text=c?{simpleText:c.content}:void 0;if(c=_.L(b==null?void 0:b.picker,z5Z))c.quantity=m;var P;if(x=(P=_.L(b==null?void 0:b.picker,XEz))==null?void 0:P.entries){P=!1;c=void 0;x=
_.M(x);for(b=x.next();!b.done;b=x.next())b=b.value,b.dropdownItemRenderer&&(c||(c=b.dropdownItemRenderer),b.dropdownItemRenderer.isSelected=!1,m===b.dropdownItemRenderer.int32Value&&(P=!0,b.dropdownItemRenderer.isSelected=!0));!P&&c&&(c.isSelected=!0)}_.o3(this,function(){var p;J.set("data.quantityPicker",_.Lw.unsafeClone((p=J.data)==null?void 0:p.quantityPicker))})}};
nM.prototype.onYtRendererstamperFinished=nM.prototype.onYtRendererstamperFinished;nM.prototype.entityChanged=nM.prototype.entityChanged;_.O([_.U(),_.R("design:type",Object)],nM.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],nM.prototype,"compact",void 0);_.O([_.f(_.fY),_.R("design:type",Object)],nM.prototype,"ytdReduxBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],nM.prototype,"ytRendererBehavior",void 0);
_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],nM.prototype,"ytComponentBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],nM.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U({selectorArgs:["data.commerceCartItemEntityKey"],selector:function(J,c){return _.P2(J.entities,"commerceCartItemEntity",c)}}),
_.R("design:type",Object)],nM.prototype,"commerceCartItemEntity",void 0);_.O([_.U(),_.R("design:type",Object)],nM.prototype,"quantityPicker",void 0);_.O([_.U(),_.R("design:type",Object)],nM.prototype,"compactQuantityPicker",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],nM.prototype,"hidden",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],nM.prototype,"errorHidden",void 0);
_.O([_.U({reflectToAttribute:!0,computed:"computeNoOnTap(data.onTap)"}),_.R("design:type",Object)],nM.prototype,"noOnTap",void 0);_.O([_.Iu("ytd-commerce-cart-item-quantity-picker-renderer"),_.R("design:type",Object)],nM.prototype,"pickerElement",void 0);_.O([_.Iu("yt-button-renderer"),_.R("design:type",Element)],nM.prototype,"firstButtonElement",void 0);
_.O([_.NE("commerceCartItemEntity","data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],nM.prototype,"entityChanged",null);_.O([_.ps("yt-rendererstamper-finished"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],nM.prototype,"onYtRendererstamperFinished",null);nM=_.O([_.E({disableElementRegistration:!0,is:"ytd-commerce-cart-item-renderer"})],nM);
_.v(nM,"ytd-commerce-cart-item-renderer",function(){if(Dm2!==void 0)return Dm2;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return Dm2=J},{mode:_.mP("kevlar_poly_si_batch_j028")?1:2});var z3Q;var ua6;var Tb=function(){return _.h.apply(this,arguments)||this};
_.D(Tb,_.h);Tb.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}}}}}};
Tb.prototype.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutLineItems(),this.updateIsHidden())};
Tb.prototype.updateCheckoutLineItems=function(){var J,c=(J=this.commerceCartCheckoutButtonEntity)==null?void 0:J.checkoutLineItems;c&&(J=c.map(function(m){a:{var b=m.price,x=m.description;switch(m.style){case "COMMERCE_CHECKOUT_LINE_ITEM_STYLE_MERCHANT":m={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:qJ(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:qJ(b),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:m={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:qJ(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:qJ(b),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 m}),this.set("data.summaryLineItems",J))};
Tb.prototype.updateIsHidden=function(){var J,c=(J=this.commerceCartCheckoutButtonEntity)==null?void 0:J.isHidden;c!==void 0&&(this.hostElement.hidden=c)};
Tb.prototype.entityChanged=Tb.prototype.entityChanged;_.O([_.f(_.fY),_.R("design:type",Object)],Tb.prototype,"ytdReduxBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Tb.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],Tb.prototype,"ytComponentBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],Tb.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.U(),_.R("design:type",Object)],Tb.prototype,"data",void 0);_.O([_.U({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:r6m}),_.R("design:type",Object)],Tb.prototype,"commerceCartCheckoutButtonEntity",void 0);_.O([_.NE("commerceCartCheckoutButtonEntity","data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Tb.prototype,"entityChanged",null);Tb=_.O([_.E({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-renderer"})],Tb);
_.v(Tb,"ytd-commerce-cart-summary-renderer",function(){if(ua6!==void 0)return ua6;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return ua6=J},{mode:1});var fTQ={};fTQ.InjectBehavior=[BWJ.InjectBehavior];var Y6Z;var XM8;var wl=function(){return _.h.apply(this,arguments)||this};
_.D(wl,_.h);
wl.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:_.uB("menuRenderer")}}};
wl.prototype.onMenuTap=function(J){J.stopPropagation()};
_.eE.Object.defineProperties(wl.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 J,c;return!(((J=this.data)==null||!J.sectionHeading)&&((c=this.data)==null?void 0:c.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
imageVisible:{configurable:!0,enumerable:!0,get:function(){var J,c;return!(((J=this.data)==null||!J.image)&&((c=this.data)==null?void 0:c.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
menuVisible:{configurable:!0,enumerable:!0,get:function(){var J,c;return!(((J=this.data)==null||!J.menu)&&((c=this.data)==null?void 0:c.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}}});
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],wl.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],wl.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.t16.YtTappableItemBehavior),_.R("design:type",Object)],wl.prototype,"ytTappableItemBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],wl.prototype,"data",void 0);
_.O([_.U({reflectToAttribute:!0}),_.q("data.accessibilityData"),_.R("design:type",String),_.R("design:paramtypes",[])],wl.prototype,"ariaLabel",null);_.O([_.q("data.sectionHeading","data.layout"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],wl.prototype,"sectionHeadingVisible",null);_.O([_.q("data.image","data.layout"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],wl.prototype,"imageVisible",null);
_.O([_.q("data.menu","data.layout"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],wl.prototype,"menuVisible",null);wl=_.O([_.uM({is:"yt-activity-item-renderer",disableElementRegistration:!0})],wl);
_.v(wl,"yt-activity-item-renderer",function(){if(XM8===void 0){var J=document.createElement("template");_.z(J,'\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>');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;Y6Z===void 0&&(Y6Z=document.createElement("template"));var b=Y6Z;m.call(c,b.content.cloneNode(!0),J.content.firstChild);XM8=J}J=XM8;return J},{mode:2});var Znu;var q6C;var UmC;var S66;var rl=function(){return _.h.apply(this,arguments)||this};
_.D(rl,_.h);
rl.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"}}}}};
rl.prototype.backgroundColorChanged_=function(){var J,c=(J=this.data)==null?void 0:J.backgroundColor;this.hostElement.style.backgroundColor=bT[c||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
rl.prototype.backgroundColorChanged_=rl.prototype.backgroundColorChanged_;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],rl.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],rl.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],rl.prototype,"data",void 0);
_.O([_.NE("data.backgroundColor"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],rl.prototype,"backgroundColorChanged_",null);rl=_.O([_.uM({is:"yt-offer-item-upsell-renderer",disableElementRegistration:!0})],rl);
_.v(rl,"yt-offer-item-upsell-renderer",function(){if(S66===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;UmC===void 0&&(UmC=document.createElement("template"));var b=UmC;m.call(c,b.content.cloneNode(!0),J.content.firstChild);S66=J}J=S66;return J},{mode:2});_.zH("itemSectionRenderer","CardItemContainerRenderer","yt-card-item-container-renderer");var sh=function(){var J=_.h.apply(this,arguments)||this;J.actionMap={"yt-update-card-item-on-click-command":"updateCardOnClickCommand_"};J.nextContinuation={continuationType:"sectionListContinuation",contentsArray:"data.continuationSection"};return J};
_.D(sh,_.h);_.V=sh.prototype;
_.V.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:_.uB("sharingItemSection")},"data.moreContentsButtonRenderer":{id:"more-contents-button",mapping:{buttonRenderer:{component:"yt-button-renderer",noInjection:!0}}}}};
_.V.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"continuationSection"}};
_.V.computeContainerStyle_=function(J){return J};
_.V.computeContainerIsHidden_=function(J){return J&&!!J.isHidden};
_.V.computeShowSpinner_=function(J,c){return J&&c==="in-progress"};
_.V.computeShowMoreContentsButton_=function(J,c,m,b,x){return!(!(b&&b.length||x&&x.length&&m)||!J||c)};
_.V.onToggleButton_=function(J){var c=this;J.stopPropagation();this.isExpanded_=J.detail&&J.detail.toggled;var m,b;this.isExpanded_&&!this.data.continuationSection.length&&((m=this.data)==null?0:(b=m.continuation)==null?0:b.onClickContinuationData)&&this.continuationStatus_!=="in-progress"?(_.cA(this.hostElement,"yt-load-next-continuation",function(x){return c.getContinuationUrl_(c.data.continuation.onClickContinuationData,x)}),this.continuationStatus_="in-progress"):this.isExpanded_&&!this.data.continuationSection.length&&
this.data.onClickCommand&&this.continuationStatus_!=="in-progress"&&(_.Vq(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress")};
_.V.onShowMoreContentsButtonClicked_=function(J){var c=this;J.stopPropagation();this.data.continuations&&this.data.continuations[0].nextContinuationData?(_.cA(this.hostElement,"yt-load-next-continuation",function(m){return c.getContinuationUrl_(c.data.continuations[0].nextContinuationData,m)}),this.continuationStatus_="in-progress"):this.data.onClickCommand&&(_.Vq(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress",this.data.onClickCommand=void 0,this.isOnClickCommand_=
!1)};
_.V.getContinuationUrl_=function(J,c){var m=J.continuation;J=J.clickTrackingParams;var b=_.Y3();J&&b&&_.AS(b,_.n7(J));return _.oP(c,{continuation:m})};
_.V.nextContinuationDataUpdated_=function(){this.continuationStatus_="complete";var J=_.Bj(this.hostElement).querySelector("#continuation-section");J&&(J=J.querySelectorAll("ytmusic-item-section-renderer"))&&J.forEach(function(c){return c.classList.add("memberships-and-purchases")})};
_.V.dataChanged_=function(){var J;this.isExpanded_=!((J=this.data)==null||!J.contents);this.data.continuationSection||(this.data.continuationSection=[]);this.data.onClickCommand&&(this.isOnClickCommand_=!0)};
_.V.updateCardOnClickCommand_=function(J){J=_.L(J,aAa);var c,m;this.data&&((c=this.data)==null?0:c.targetId)&&J&&J.targetId===((m=this.data)==null?void 0:m.targetId)&&J.onClickCommand&&(this.data.onClickCommand=J.onClickCommand,this.isOnClickCommand_=!0)};
_.V.backgroundColorChanged_=function(){var J,c=(J=this.data)==null?void 0:J.backgroundColor;this.hostElement.style.backgroundColor=bT[c||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
sh.prototype.backgroundColorChanged_=sh.prototype.backgroundColorChanged_;sh.prototype.dataChanged_=sh.prototype.dataChanged_;sh.prototype.nextContinuationDataUpdated_=sh.prototype.nextContinuationDataUpdated_;sh.prototype.onToggleButton_=sh.prototype.onToggleButton_;_.O([_.f(_.Sy),_.R("design:type",Object)],sh.prototype,"ytContinuationHandlerBehavior",void 0);_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],sh.prototype,"ytActionHandlerBehavior",void 0);
_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],sh.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.hA.YtNextContinuationBehavior),_.R("design:type",Object)],sh.prototype,"ytNextContinuationBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],sh.prototype,"ytRendererBehavior",void 0);_.O([_.f(fTQ.InjectBehavior),_.R("design:type",Object)],sh.prototype,"injectBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],sh.prototype,"data",void 0);
_.O([_.U({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],sh.prototype,"compact",void 0);_.O([_.U({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],sh.prototype,"isExpanded_",void 0);_.O([_.U({computed:"computeContainerStyle_(data.containerStyle)",reflectToAttribute:!0,value:"CARD_ITEM_CONTAINER_STYLE_DEFAULT"}),_.R("design:type",String)],sh.prototype,"containerStyle_",void 0);_.O([_.U({value:"not-started"}),_.R("design:type",String)],sh.prototype,"continuationStatus_",void 0);
_.O([_.U({reflectToAttribute:!0,computed:"computeShowSpinner_(isExpanded_, continuationStatus_)",value:!1}),_.R("design:type",Boolean)],sh.prototype,"showSpinner_",void 0);_.O([_.U({value:!1}),_.R("design:type",Boolean)],sh.prototype,"isOnClickCommand_",void 0);_.O([_.U({computed:"computeShowMoreContentsButton_(isExpanded_, showSpinner_, isOnClickCommand_, data.continuations, data.contents)",value:!1}),_.R("design:type",Boolean)],sh.prototype,"showMoreContentsButton_",void 0);
_.O([_.U({selectorArgs:["data.cardItemContainerEntityKey"],selector:function(J,c){return!c||J.entities?null:_.P2(J.entities,"cardItemContainerEntity",c)}}),
_.R("design:type",Object)],sh.prototype,"cardItemContainerEntity_",void 0);_.O([_.ps("yt-toggle-button"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],sh.prototype,"onToggleButton_",null);_.O([_.ps("yt-next-continuation-data-updated"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],sh.prototype,"nextContinuationDataUpdated_",null);
_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],sh.prototype,"dataChanged_",null);_.O([_.NE("data.backgroundColor"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],sh.prototype,"backgroundColorChanged_",null);sh=_.O([_.uM({is:"yt-card-item-container-renderer",disableElementRegistration:!0})],sh);
_.v(sh,"yt-card-item-container-renderer",function(){if(q6C===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;Znu===void 0&&(Znu=document.createElement("template"));var b=Znu;m.call(c,b.content.cloneNode(!0),J.content.firstChild);q6C=J}J=q6C;return J},{mode:2});var LM=function(){return _.h.apply(this,arguments)||this};
_.D(LM,_.h);LM.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"}}}};
LM.prototype.notificationEntityChanged=function(){this.commerceCartExpandableNotificationEntity&&this.updateNotification()};
LM.prototype.computeLoadingHidden=function(){var J;return!((J=this.commerceCartPageStateEntity)==null?0:J.cartActionInProgress)};
LM.prototype.updateNotification=function(){var J,c=(J=this.get("commerceCartExpandableNotificationEntity"))==null?void 0:J.summaryText;c&&this.set("data.cartNotification",qJ(c))};
LM.prototype.notificationEntityChanged=LM.prototype.notificationEntityChanged;_.O([_.f(_.fY),_.R("design:type",Object)],LM.prototype,"ytdReduxBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],LM.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],LM.prototype,"ytComponentBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],LM.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.U(),_.R("design:type",Object)],LM.prototype,"data",void 0);_.O([_.U({selectorArgs:["data.commerceCartExpandableNotificationEntityKey"],selector:function(J,c){return _.P2(J.entities,"commerceCartExpandableNotificationEntity",c)}}),
_.R("design:type",Object)],LM.prototype,"commerceCartExpandableNotificationEntity",void 0);_.O([_.U({selectorArgs:["data.commerceCartPageStateEntityKey"],selector:function(J,c){return _.P2(J.entities,"commerceCartPageStateEntity",c)}}),
_.R("design:type",Object)],LM.prototype,"commerceCartPageStateEntity",void 0);_.O([_.Iu("#spinner"),_.R("design:type",HTMLElement)],LM.prototype,"spinner",void 0);_.O([_.NE("commerceCartExpandableNotificationEntity","data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],LM.prototype,"notificationEntityChanged",null);LM=_.O([_.E({disableElementRegistration:!0,is:"ytd-commerce-cart-renderer"})],LM);
_.v(LM,"ytd-commerce-cart-renderer",function(){if(z3Q!==void 0)return z3Q;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return z3Q=J},{mode:1});var h3Q;var DR=function(){var J=_.h.apply(this,arguments)||this;J.bigImage=!1;return J};
_.D(DR,_.h);_.eE.Object.defineProperties(DR.prototype,{placeholderImageUrl:{configurable:!0,enumerable:!0,get:function(){var J;return(J=this.data)==null?void 0:J.placeholderImageUrl}}});
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],DR.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],DR.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],DR.prototype,"bigImage",void 0);_.O([_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],DR.prototype,"placeholderImageUrl",null);DR=_.O([_.E({disableElementRegistration:!0,is:"ytd-empty-product-shelf-renderer"})],DR);
_.v(DR,"ytd-empty-product-shelf-renderer",function(){if(h3Q!==void 0)return h3Q;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return h3Q=J},{mode:1});var dm$;var WN=function(){var J=_.h.apply(this,arguments)||this;J.itemStyle="link-item";J.watchMetadataRefresh=!1;J.skinnyMode=!1;J.metaPanel=!1;J.inStructuredDescription=!1;J.actionMap={"yt-update-merchandise-shelf-action":"handleUpdateMerchShelfAction"};J.updateOnResizeDebouncer=null;return J};
_.D(WN,_.h);_.V=WN.prototype;_.V.ready=function(){this.updateOnResize=this.updateOnResize.bind(this);this.updateOnResize()};
_.V.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"}}}}};
_.V.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.updateOnResize()};
_.V.attachVEs=function(J){J.trackingParams&&_.C7().graftServerVe(J.trackingParams)};
_.V.handleUpdateMerchShelfAction=function(J){var c=this,m=_.L(J.updateMerchandiseShelfAction.merchandiseShelf,_.yiQ);m&&(m.renderDelayMs?(clearTimeout(this.dataSetTimeoutId),this.dataSetTimeoutId=setTimeout(function(){c.attachVEs(m);c.data=m},Number(m.renderDelayMs))):(this.attachVEs(m),this.data=m))};
_.V.updateOnResize=function(){if(this.JSC$14695_scrollContainer!==void 0&&this.JSC$14695_scrollContainer.clientWidth!==0&&this.items!==void 0){var J=this.JSC$14695_scrollContainer.clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-J));this.ytdHorizontalListBehavior.reposition_();var c;switch((c=this.data)==null?void 0:c.shelfType){case "MERCHANDISE_SHELF_TYPE_PRODUCT_LINK":this.itemStyle="link-item";break;default:var m,
b;((m=this.data)==null?void 0:(b=m.items)==null?void 0:b.length)===1?this.itemStyle="cta-item":this.itemStyle=J>=740?"large-item":"small-item"}}};
_.V.debouncedUpdateOnResize=function(){this.updateOnResizeDebouncer=_.BE(this.updateOnResizeDebouncer,_.E_.after(100),this.updateOnResize)};
WN.prototype.debouncedUpdateOnResize=WN.prototype.debouncedUpdateOnResize;WN.prototype.dataChanged=WN.prototype.dataChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],WN.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],WN.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.yI.YtdHorizontalListBehavior),_.R("design:type",Object)],WN.prototype,"ytdHorizontalListBehavior",void 0);
_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],WN.prototype,"ytComponentBehavior",void 0);_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],WN.prototype,"ytActionHandlerBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],WN.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],WN.prototype,"itemStyle",void 0);_.O([_.U({value:6}),_.R("design:type",Number)],WN.prototype,"initialCount",void 0);
_.O([_.U({value:"data.items"}),_.R("design:type",String)],WN.prototype,"itemsPath",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],WN.prototype,"watchMetadataRefresh",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],WN.prototype,"skinnyMode",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],WN.prototype,"metaPanel",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],WN.prototype,"inStructuredDescription",void 0);
_.O([_.Iu("#items"),_.R("design:type",HTMLDivElement)],WN.prototype,"items",void 0);_.O([_.Iu("#scroll-container"),_.R("design:type",HTMLDivElement)],WN.prototype,"JSC$14695_scrollContainer",void 0);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],WN.prototype,"dataChanged",null);_.O([_.ps("iron-resize"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],WN.prototype,"debouncedUpdateOnResize",null);
WN=_.O([_.E({disableElementRegistration:!0,is:"ytd-merch-shelf-renderer"})],WN);
_.v(WN,"ytd-merch-shelf-renderer",function(){if(dm$!==void 0)return dm$;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return dm$=J},{mode:2});var $m_;var zb=function(){var J=_.h.apply(this,arguments)||this;J.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 J};
_.D(zb,_.h);_.V=zb.prototype;
_.V.addBackstagePostAction=function(J){this.get("header.commentsHeaderRenderer.shouldShowBackstagePostOptimistically",this.data)&&(J=this.get("addBackstagePostAction.renderer.backstagePostThreadRenderer",J))&&(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:J}):this.set("data.contents",[{backstagePostThreadRenderer:J}]))};
_.V.addBackstageCommentAction=function(J){var c=this.get("addBackstageCommentAction.parentId",J);J=this.get("addBackstageCommentAction.renderer.commentThreadRenderer",J);if(c&&J){c=this.postIdToIndices(c);for(var m=0;m<c.length;m++){var b=c[m];if(b<0)break;b="data.contents."+b+".backstagePostThreadRenderer.comments";this.get(b)&&(this.get(b+".backstageCommentsRenderer.contents")&&this.push(b+".backstageCommentsRenderer.contents",{commentThreadRenderer:J}),this.get(b+".backstageCommentsRenderer.teaserContents")?
this.push(b+".backstageCommentsRenderer.teaserContents",{commentThreadRenderer:J}):this.set(b+".backstageCommentsRenderer.teaserContents",[{commentThreadRenderer:J}]))}}};
_.V.addBackstageReplyAction=function(J){var c=this.get("addBackstageReplyAction.parentId",J);J=this.get("addBackstageReplyAction.renderer.commentRenderer",J);c&&J&&this.setCreatorReply(c,J)};
_.V.banAuthorAction=function(J){var c=this.get("banAuthorAction.commentId",J);c&&(J=this.get("banAuthorAction.parentCommentId",J)||this.getParentPostId(c),this.removeFromStream(c,J))};
_.V.hideReportedCommentAction=function(J){var c=this.get("hideReportedCommentAction.commentId",J);c&&((J=this.get("hideReportedCommentAction.parentCommentId",J))||(J=this.getParentPostId(c)),this.removeFromStream(c,J))};
_.V.replaceBackstageCommentAction=function(J){var c=this.get("replaceBackstageCommentAction.commentId",J),m=this.get("replaceBackstageCommentAction.parentId",J);J=this.get("replaceBackstageCommentAction.renderer.commentThreadRenderer",J);if(c&&m&&J){m=this.postIdToIndices(m);for(var b=0;b<m.length;b++){var x=m[b];if(x<0)break;var P=this.commentIdToIndex(c,x,!1);if(P>=0){var p=this.get("data.contents."+x+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+P+".commentThreadRenderer.replies.commentRepliesRenderer");
p&&(J.replies={commentRepliesRenderer:p});this.splice("data.contents."+x+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",P,1,{commentThreadRenderer:J})}P=this.commentIdToIndex(c,x,!0);if(P>=0){if(p=this.get("data.contents."+x+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+(P+".commentThreadRenderer.replies.commentRepliesRenderer")))J.replies={commentRepliesRenderer:p};this.splice("data.contents."+x+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",
P,1,{commentThreadRenderer:J})}}}};
_.V.replaceBackstagePostAction=function(J){var c=this.get("replaceBackstagePostAction.itemId",J);if(c){c=this.postIdToIndices(c);for(var m=0;m<c.length;m++){var b=c[m];if(b<0)break;var x=this.getPostRendererType(b),P=this.get("replaceBackstagePostAction.renderer."+x,J);if(!P&&x!=="sharedPostRenderer")break;var p=!1;P||(p=!0,P=this.get("replaceBackstagePostAction.renderer.backstagePostRenderer",J));if(!P)break;var t={};p?(_.zg(t,x_2,P),this.set("data.contents."+b+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
t)):(_.zg(t,new _.Q(x),P),this.set("data.contents."+b+".backstagePostThreadRenderer.post",t))}}};
_.V.replaceBackstageReplyAction=function(J){var c=this.get("replaceBackstageReplyAction.replyId",J),m=this.get("replaceBackstageReplyAction.parentId",J);J=this.get("replaceBackstageReplyAction.renderer.commentRenderer",J);c&&J&&m&&this.setCreatorReply(m,J)};
_.V.removeCommentAction=function(J){var c=this.get("removeCommentAction.commentId",J);if(c){var m=this.get("removeCommentAction.parentCommentId",J);m&&this.get("removeCommentAction.isCreatorReply",J)?this.setCreatorReply(m,void 0):(m||(m=this.getParentPostId(c)),this.removeFromStream(c,m))}};
_.V.setCreatorReply=function(J,c){var m=this.getParentPostId(J);if(m){m=this.postIdToIndices(m);for(var b=0;b<m.length;b++){var x=m[b];if(x<0)break;var P=this.commentIdToIndex(J,x,!1);if(P>=0){var p="data.contents."+x+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+P;P=p+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply";p+=".commentThreadRenderer.replies";c==void 0?(this.set(p,{}),this.set(P,!1)):(this.set(p,{commentRepliesRenderer:{teaserContents:[{commentRenderer:c}]}}),
this.set(p+".commentRepliesRenderer.teaserContents.0.commentRenderer.isCreatorReply",!0),this.set(P,!0))}P=this.commentIdToIndex(J,x,!0);P>=0&&(P="data.contents."+x+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+P,x=P+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply",P+=".commentThreadRenderer.replies",c==void 0?(this.set(P,{}),this.set(x,!1)):(this.set(P,{commentRepliesRenderer:{teaserContents:[{commentRenderer:c}]}}),this.set(x,!0)))}}};
_.V.removeFromStream=function(J,c){if(c){c=this.postIdToIndices(c);for(var m=0;m<c.length;m++){var b=c[m];if(b<0)break;var x=this.commentIdToIndex(J,b,!1);x>=0&&this.splice("data.contents."+b+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",x,1);x=this.commentIdToIndex(J,b,!0);x>=0&&this.splice("data.contents."+b+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",x,1);b="data.contents."+b+".backstagePostThreadRenderer.post.backstagePostRenderer";
x=b+".backstageAttachment.pollRenderer.votedCommentId";this.get(x)===J&&(this.set(x,null),this.set(b+".backstageAttachment.pollRenderer.commentDelete",null))}}else for(c=this.postIdToIndices(J).reverse(),m=0;m<c.length;m++){b=c[m];if(b<0)break;x=this.getPostRendererType(b);var P=this.get("backstagePostThreadRenderer.post."+x,this.data.contents[b]);P.postId===J?this.splice("data.contents",b,1):x==="sharedPostRenderer"&&this.set("data.contents."+b+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
null);P.scheduledPublishTimeSec&&_.m9(this.hostElement,"yt-update-posts-total-count-action",[{updatePostsTotalCountAction:{updateType:"UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE",number:1}}])}};
_.V.postIdToIndices=function(J){for(var c=[],m=0;m<this.data.contents.length;m++){var b=this.getPostRendererType(m);this.get("backstagePostThreadRenderer.post."+b+".postId",this.data.contents[m])===J&&c.push(m);if(b==="sharedPostRenderer"){var x=this.get("backstagePostThreadRenderer.post."+b+".originalPost.backstagePostRenderer.postId",this.data.contents[m]);b=this.get("backstagePostThreadRenderer.post."+b+".originalPost.postRenderer.postId",this.data.contents[m]);x!==J&&b!==J||c.push(m)}}return c};
_.V.commentIdToIndex=function(J,c,m){if(c<0)return-1;var b,x,P,p,t=_.L((b=this.data)==null?void 0:(x=b.contents)==null?void 0:(P=x[c])==null?void 0:(p=P.backstagePostThreadRenderer)==null?void 0:p.comments,m_8);return(c=m?t==null?void 0:t.teaserContents:t==null?void 0:t.contents)&&c.length?c.findIndex(function(I){return _.L(I,XHa).comment.commentRenderer.commentId===J}):-1};
_.V.getParentPostId=function(J){J=J.split(".");if(J[1])return J[0]};
_.V.getPostRendererType=function(J){return this.get("backstagePostThreadRenderer.post.sharedPostRenderer",this.data.contents[J])?"sharedPostRenderer":"backstagePostRenderer"};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],zb.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],zb.prototype,"ytActionHandlerBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],zb.prototype,"data",void 0);zb=_.O([_.E({disableElementRegistration:!0,is:"ytd-backstage-items"})],zb);
_.v(zb,"ytd-backstage-items",function(){if($m_!==void 0)return $m_;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return $m_=
J},{mode:1});var GI2;_.sB({is:"ytd-comments",_template:function(){if(GI2!==void 0)return GI2;var J=document.createElement("template");_.z(J,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-item-section-renderer id="sections" can-schedule-jobs="[[canScheduleJobs]]" comments-hide-panel-button="[[hidePanelButton]]" continuation-disable-prescan-visibility="[[disablePrescanVisibility]]" data="{{data}}" engagement-panel="[[engagementPanel]]" initial-count="2" is-watch-grid="[[isWatchGrid]]" class="style-scope ytd-comments">\n</ytd-item-section-renderer>\n');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return GI2=J},
behaviors:[_.c22.YtHostElementBehavior,_.Ex.YtPlayerListenerBehavior,_.g.YtRendererBehavior,_.yw.YtActionHandlerBehavior],properties:{data:{type:Object,observer:"dataChanged_"},isBackstage:{type:Boolean,computed:"computeIsBackstage_(data.header.commentsHeaderRenderer.isBackstageContent)",reflectToAttribute:!0},disablePrescanVisibility:{type:Boolean,value:!0},canScheduleJobs:{type:Boolean,value:!0},engagementPanel:{type:Boolean,reflectToAttribute:!0},hidePanelButton:{type:Boolean,value:!1},isWatchGrid:{type:Boolean,
value:!1}},actionMap:{"yt-ban-author-action":"banAuthorAction_","yt-create-comment-action":"createCommentAction_","yt-create-comment-reply-action":"createCommentReplyAction_","yt-hide-reported-comment-action":"hideReportedCommentAction_","yt-pin-comment-action":"pinCommentAction_","yt-reload-comments-command":"reloadComments_","yt-remove-comment-action":"removeCommentAction_","yt-unpin-comment-action":"unpinCommentAction_"},listeners:{"yt-retrieve-location":"onRetrieveLocation_"},observers:["contentsChanged_(data.contents.*)",
"headerChanged_(data.header)"],created:function(){this.RenderingPriority={RENDERING_PRIORITY_UNKNOWN:0,RENDERING_PRIORITY_PINNED_COMMENT:10,RENDERING_PRIORITY_LINKED_COMMENT:20,RENDERING_PRIORITY_REALTIME_COMMENT:30,RENDERING_PRIORITY_COMMUNITY_GUIDELINES_BELOW_HEADER:80,RENDERING_PRIORITY_FAN_COMMUNITY_SETUP_CARD:90,RENDERING_PRIORITY_COMMENT_HEADER:100};this.initCommentsCsi_()},
contentsChanged_:function(J){J&&J.value&&J.path==="data.contents"&&this.tickForCommentsTimer_("cml")},
headerChanged_:function(J){J&&this.tickForCommentsTimer_("cmhl")},
initCommentsCsi_:function(){_.fX("wn_comments");var J=_.Y3();J&&_.uJ({clientScreenNonce:J},"wn_comments");this.tickForCommentsTimer_("cmi")},
createCommentAction_:function(J){J=Fdr(J);var c,m,b;if(J=(c=J)==null?void 0:(m=c.createCommentAction)==null?void 0:(b=m.contents)==null?void 0:b.commentThreadRenderer){var x,P,p,t,I,a;!this.isBackstage&&((x=this.data)==null?0:(P=x.header)==null?0:(p=P.commentsHeaderRenderer)==null?0:(t=p.createRenderer)==null?0:(I=t.commentSimpleboxRenderer)==null?0:(a=I.zeroStep)==null?0:a.zeroStepChannelCreationRenderer)&&this.set("data.header.commentsHeaderRenderer.createRenderer.commentSimpleboxRenderer.zeroStep",
{});var k,H,T,r;this.isBackstage&&((k=this.data)==null?0:(H=k.header)==null?0:(T=H.commentsHeaderRenderer)==null?0:(r=T.zeroStateMessage)==null?0:r.backstageZeroStateRenderer)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{});this.insert_(J)}},
doReplyInsert_:function(J,c,m,b){b?this.splice(J,b,0,c):this.push(J,c)},
getRepliesPath_:function(J){return"data.contents."+J+".commentThreadRenderer.replies"},
getRepliesContentsPath_:function(J,c){J=this.getRepliesPath_(J);return c?J+".commentRepliesRenderer.teaserContents":J+".commentRepliesRenderer.contents"},
createCommentReplyAction_:function(J){J=Fdr(J);var c,m,b=(c=J)==null?void 0:(m=c.createCommentReplyAction)==null?void 0:m.parentCommentId,x,P;if(c=(x=J)==null?void 0:(P=x.createCommentReplyAction)==null?void 0:P.contents)if(b=this.commentIdToIndex_(b),!(b<0))if(x=this.getRepliesPath_(b),this.get(x)){var p,t;J=(p=J)==null?void 0:(t=p.createCommentReplyAction)==null?void 0:t.replyToCommentId;p=this.getRepliesContentsPath_(b,!1);this.get(p)&&(t=this.get(p).length,x=p+"."+(t-1)+".continuationItemRenderer",
this.get(x+".button")?(x=this.replyIdToIndex_(J,b,!1),this.doReplyInsert_(p,c,x,t-1)):this.get(x)||(t=this.replyIdToIndex_(J,b,!1),this.doReplyInsert_(p,c,t,null)));p=this.getRepliesContentsPath_(b,!0);this.get(p)?(b=this.replyIdToIndex_(J,b,!0),(!J||b>=0)&&this.doReplyInsert_(p,c,b,null)):this.set(p,[c])}else this.set(x,{commentRepliesRenderer:{teaserContents:[c]}})},
hideReportedCommentAction_:function(J){var c,m=J==null?void 0:(c=J.hideReportedCommentAction)==null?void 0:c.commentId;if(m){var b;J=J==null?void 0:(b=J.hideReportedCommentAction)==null?void 0:b.parentCommentId;m=m.replace("#",".");J||(J=this.getParentCommentId_(m));this.remove_(m,J)}},
getParentCommentId_:function(J){J=J.split(".");if(J[1])return J[0]},
removeCommentAction_:function(J){var c,m=J==null?void 0:(c=J.removeCommentAction)==null?void 0:c.commentId;if(m){var b;J=J==null?void 0:(b=J.removeCommentAction)==null?void 0:b.parentCommentId;m=m.replace("#",".");J||(J=this.getParentCommentId_(m));this.remove_(m,J)}},
pinCommentAction_:function(J){J=Fdr(J);var c,m,b=(c=J)==null?void 0:(m=c.pinCommentAction)==null?void 0:m.commentId;b&&(J=this.get("pinCommentAction.actionResult.update.commentThreadRenderer",J))&&(this.remove_(b),this.insert_(J,!0))},
unpinCommentAction_:function(J){J=Fdr(J);var c,m,b=(c=J)==null?void 0:(m=c.unpinCommentAction)==null?void 0:m.commentId;if(b){var x,P,p;if(J=(x=J.unpinCommentAction)==null?void 0:(P=x.actionResult)==null?void 0:(p=P.update)==null?void 0:p.commentThreadRenderer)this.remove_(b),this.insert_(J)}},
banAuthorAction_:function(J){var c,m=J==null?void 0:(c=J.banAuthorAction)==null?void 0:c.commentId;if(m){var b;J=J==null?void 0:(b=J.banAuthorAction)==null?void 0:b.parentCommentId;m=m.replace("#",".");J||(J=this.getParentCommentId_(m));this.remove_(m,J)}},
commentIdToIndex_:function(J){var c;return J&&(c=this.data)!=null&&c.contents?this.data.contents.findIndex(function(m){var b,x;return J===((m==null?void 0:(b=m.commentThreadRenderer)==null?void 0:b.commentViewModel)&&((x=_.L(m.commentThreadRenderer.commentViewModel,Soj))==null?void 0:x.commentId))}):-1},
insert_:function(J,c){var m,b;if((m=this.data)==null?0:(b=m.contents)==null?0:b.some(function(P){return!(P==null||!P.commentThreadRenderer)}))for(m=0,b=this.data.contents.length;m<b;m++){var x=this.data.contents[m].commentThreadRenderer;
if(this.RenderingPriority[J.renderingPriority]>=this.RenderingPriority[x.renderingPriority]){c&&this.RenderingPriority[J.renderingPriority]==this.RenderingPriority[x.renderingPriority]?this.splice("data.contents",m,1,{commentThreadRenderer:J}):this.splice("data.contents",m,0,{commentThreadRenderer:J});break}}else this.set("data.contents",[{commentThreadRenderer:J}])},
doReplyRemove_:function(J,c,m){J=this.replyIdToIndex_(J,c,m);J<0||(c=this.getRepliesContentsPath_(c,m),this.splice(c,J,1))},
remove_:function(J,c){c=this.commentIdToIndex_(c);c<0?(c=this.commentIdToIndex_(J),c<0||this.splice("data.contents",c,1)):(this.doReplyRemove_(J,c,!1),this.doReplyRemove_(J,c,!0))},
replyIdToIndex_:function(J,c,m){if(c<0)return-1;c=this.getRepliesContentsPath_(c,m);c=this.get(c);if(!c||!c.length)return-1;m=0;for(var b=c.length;m<b;m++){var x=void 0,P=void 0;if(((x=c[m])==null?void 0:(P=x.commentViewModel)==null?void 0:P.commentId)===J)return m}return-1},
computeIsBackstage_:function(J){return!!J},
tickForCommentsTimer_:function(J){_.Xv(J,void 0,"wn_comments")},
reloadComments_:function(J){J&&J.reloadCommentsCommand&&J.reloadCommentsCommand.command&&J.reloadCommentsCommand.command.continuationCommand&&_.Vq(this,[J.reloadCommentsCommand.command])}});var uT=function(){return _.Cs.apply(this,arguments)||this};
_.D(uT,_.Cs);_.V=uT.prototype;_.V.bindIf=function(J,c,m){return J?c:m};
_.V.bindIfDefined=function(J,c){return J!==void 0?J:c};
_.V.booleanString=function(J){return(!!J).toString()};
_.V.equals=function(){for(var J=_.s$.apply(0,arguments),c=J[0],m=1;m<J.length;m++)if(c!=J[m])return!1;return!0};
_.V.isGreaterThan=function(J,c){return J>c};
_.V.isLessThan=function(J,c){return J<c};
_.V.logicalAND=function(){for(var J=_.s$.apply(0,arguments),c=!!J[0],m=1;m<J.length;m++)c=c&&!!J[m];return c};
_.V.logicalOR=function(){for(var J=_.s$.apply(0,arguments),c=!!J[0],m=1;m<J.length;m++)c=c||!!J[m];return c};
_.V.toBool=function(J){return!!J};
uT.prototype.toBool=uT.prototype.toBool;uT.prototype.logicalOR=uT.prototype.logicalOR;uT.prototype.logicalAND=uT.prototype.logicalAND;uT.prototype.isLessThan=uT.prototype.isLessThan;uT.prototype.isGreaterThan=uT.prototype.isGreaterThan;uT.prototype.equals=uT.prototype.equals;uT.prototype.booleanString=uT.prototype.booleanString;uT.prototype.bindIfDefined=uT.prototype.bindIfDefined;uT.prototype.bindIf=uT.prototype.bindIf;uT=_.O([_.au()],uT);_.EmC=[uT.prototype];var vm8;var OnQ;var fM=function(){return _.h.apply(this,arguments)||this};
_.D(fM,_.h);fM.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}}}};
fM.prototype.onBackIconTap_=function(){window.history.back()};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],fM.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],fM.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],fM.prototype,"data",void 0);fM=_.O([_.uM({is:"yt-header-with-back-renderer",disableElementRegistration:!0})],fM);
_.v(fM,"yt-header-with-back-renderer",function(){if(OnQ===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;vm8===void 0&&(vm8=document.createElement("template"));var b=vm8;m.call(c,b.content.cloneNode(!0),J.content.firstChild);OnQ=J}J=OnQ;return J},{mode:2});var Aj_;var R3z;var Yu=function(){var J=_.h.apply(this,arguments)||this;J.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return J};
_.D(Yu,_.h);_.V=Yu.prototype;_.V.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.V.onDarkModeToggledAction=function(J){J!==this.isDarkTheme&&(this.isDarkTheme=J,this.setUrl())};
_.V.dataChanged=function(){var J=this;if(this.data){var c=this.setUrl();c&&_.Qa({destination:window,iframe:this.iframe,origin:_.V6L(c.toString()),channelName:"yt-iframe",onMessage:function(m){(m=J.getCommunicationCommand(m.data))&&J.ytComponentBehavior.resolveCommand(m)},
onEstablished:function(){}})}};
_.V.setUrl=function(){if(this.data&&this.data.iframeUrl){var J=_.Y$(this.isDarkTheme&&this.data.darkThemeIframeUrl?this.data.darkThemeIframeUrl:this.data.iframeUrl);if(J)return _.Yh(this.iframe,J),J}};
_.V.getCommunicationCommand=function(J){var c;if((c=this.data)!=null&&c.onCommunicationCommandsMap){c=this.data.onCommunicationCommandsMap.find(function(x){return x.key===J});
if(c==null?0:c.value)return c==null?void 0:c.value;try{var m=VG$(_.I2(J)),b=this.data.onCommunicationCommandsMap.find(function(x){return x.key===(m==null?void 0:_.L0(m,1))});
if(b==null?0:b.value)return b==null?void 0:b.value}catch(x){}}};
Yu.prototype.dataChanged=Yu.prototype.dataChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Yu.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],Yu.prototype,"ytComponentBehavior",void 0);_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],Yu.prototype,"actionHandlerBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Yu.prototype,"data",void 0);
_.O([_.U({value:!1}),_.R("design:type",Boolean)],Yu.prototype,"isDarkTheme",void 0);_.O([_.Iu("#iframe"),_.R("design:type",HTMLIFrameElement)],Yu.prototype,"iframe",void 0);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Yu.prototype,"dataChanged",null);Yu=_.O([_.uM({is:"yt-iframe-renderer",disableElementRegistration:!0})],Yu);
_.v(Yu,"yt-iframe-renderer",function(){if(R3z===void 0){var J=document.createElement("template");_.z(J,'\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>');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;Aj_===void 0&&(Aj_=document.createElement("template"));var b=Aj_;m.call(c,b.content.cloneNode(!0),J.content.firstChild);R3z=J}J=R3z;return J},{mode:2});_.X0=function(J){_.DS.call(this);this.callback=J;this.bezier=new $yj(0,0,.4,0,.2,1,1,1);this.delay=new _.la(this.next,window,this);this.JSC$14726_animating=!1;_.Kc(this,this.delay)};
_.D(_.X0,_.DS);_.X0.prototype.isAnimating=function(){return this.JSC$14726_animating};
_.X0.prototype.start=function(J,c,m){this.config={from:J,to:c,duration:m,startTime:(0,_.y4)()};this.JSC$14726_animating=!0;this.next()};
_.X0.prototype.stop=function(){this.delay.stop();this.JSC$14726_animating=!1;this.config=void 0};
_.X0.prototype.next=function(){if(this.config){var J=this.config,c=J.from,m=J.to,b=J.duration;J=J.startTime;var x=(0,_.y4)()-J;J=this.bezier;b=EY_(J,x/b);if(b==0)J=J.y0;else if(b==1)J=J.y3;else{x=aS(J.y0,J.y1,b);var P=aS(J.y1,J.y2,b);J=aS(J.y2,J.y3,b);x=aS(x,P,b);P=aS(P,J,b);J=aS(x,P,b)}J=_.fZ(J,0,1);this.callback(c+(m-c)*J);J<1?this.delay.start():this.JSC$14726_animating=!1}};_.ZR=new _.oE("MINI_APP_CLIENT_DATA_PROVIDER_TOKEN");new CustomEvent("iframeLoadedForTesting");var om_={INIT:0,START:1,READY:2,END:3,0:"INIT",1:"START",2:"READY",3:"END"},e3L=function(J,c,m,b){_.DS.call(this);this.JSC$14734_miniAppId=J;this.localReleaseId=c;this.derivedDeviceInterface=m;this.isForeground=b;this.JSC$14734_playNonceResolver=new _.xb;this.playPingTimerId=NaN;this.playPingIntervalMs=_.c7("play_ping_interval_ms",3E4);this.playClickIntervalMs=_.c7("play_click_interval_ms",3E4);this.enableDisplayingPpn=_.w("enable_displaying_ppn");this.JSC$14734_miniAppClientDataProvider=_.BG().resolve(_.ZR);
this.state=0;this.firstClickRecorded=!1;this.clickRecordedMs=0;this.beforeReady=!0;this.gameReady=!1;QY_(this);var x=setTimeout(function(){_.qz(new _.w3("Timed out after 30000ms while waiting for play nonce"))},3E4);
this.JSC$14734_playNonceResolver.promise.then(function(){clearTimeout(x)})};
_.D(e3L,_.DS);var Fu_=function(J,c){J.JSC$14734_playNonceResolver.resolve(c!=null?c:zv(8));J.enableDisplayingPpn&&jY_(J).then(function(m){J.JSC$14734_miniAppClientDataProvider.clientData.set("post_play_nonce",m)})},jY_=function(J){return _.N(function(c){return c.nextAddress==1?_.K(c,J.JSC$14734_playNonceResolver.promise,2):c.return(c.yieldResult)})},QY_=function(J){var c,m;
_.N(function(b){if(b.nextAddress==1)return _.K(b,J.JSC$14734_playNonceResolver.promise,2);c=b.yieldResult;m={miniAppInfo:{externalPostId:J.JSC$14734_miniAppId,localReleaseId:J.localReleaseId,postPlayNonce:c,derivedDeviceInterface:J.derivedDeviceInterface}};_.uJ(m);_.tD(b)})},yjQ=function(J){J.state!==0?_.qz(new _.w3("[MiniAppPlayLogger] recordPlayStart failed with state "+om_[J.state])):(J.state=1,q4(J,"ma_cl"),Uh(J,"PLAY_EVENT_TYPE_PLAY_START"),lTQ(J))},BQa=function(J){J.isForeground=!1;
Uh(J,"PLAY_EVENT_TYPE_PLAY_PAUSE")},gmZ=function(J){J.state!==1&&J.state!==2?_.qz(new _.w3("[MiniAppPlayLogger] recordPlayEnd failed with state "+om_[J.state])):(J.state=3,window.clearInterval(J.playPingTimerId),J.playPingTimerId=NaN,Mzq(),Uh(J,"PLAY_EVENT_TYPE_PLAY_END",{},!0))},J1B=function(J,c){J.state===2&&J.gameReady&&(J.firstClickRecorded?Date.now()-J.clickRecordedMs<J.playClickIntervalMs||(J.clickRecordedMs=Date.now(),Uh(J,"PLAY_EVENT_TYPE_PLAY_CLICK")):c&&(q4(J,"ma_fua"),Uh(J,"PLAY_EVENT_TYPE_PLAY_FIRST_USER_ACTION",
{sendIsolatedPayload:!0}),J.firstClickRecorded=!0,J.clickRecordedMs=Date.now()))};
e3L.prototype.logError=function(J){var c=this,m;_.N(function(b){if(b.nextAddress==1)return J.metadata.externalPostId=c.JSC$14734_miniAppId,m=J.metadata,_.K(b,Promise.race([c.JSC$14734_playNonceResolver.promise,new Promise(function(x){setTimeout(function(){x("")},3E4)})]),2);
m.postPlayNonce=b.yieldResult;J.metadata.localReleaseId=c.localReleaseId;J.loggingError.level="WARNING";_.Xc(J.loggingError,J.loggingError.level,void 0,void 0,void 0,void 0,void 0,{miniAppMetadata:J.metadata});_.tD(b)})};
var c12=function(J,c,m,b){var x,P,p,t,I,a;_.N(function(k){if(k.nextAddress==1)return _.K(k,J.JSC$14734_playNonceResolver.promise,2);x=k.yieldResult;P={externalPostId:J.JSC$14734_miniAppId,localReleaseId:J.localReleaseId,postPlayNonce:x,sdkVersion:m,api:c};b!==void 0&&(P.networkRequestsMeasurement={networkRequests:_.m5(b,1),cachedRequests:_.m5(b,2),transferredBytes:_.m5(b,3)},(p=b)==null?0:_.tK(p,AV,6))&&(P.networkRequestsMeasurement.serviceWorkerRequestsMeasurement={interceptedRequests:((t=_.JU(b,
AV,6))==null?void 0:We(t,1))||"0",cacheHits:((I=_.JU(b,AV,6))==null?void 0:We(I,2))||"0",cachedBytes:((a=_.JU(b,AV,6))==null?void 0:We(a,3))||"0"});_.zB("miniAppSdkUsage",P);_.tD(k)})},bTa=function(J,c,m){var b,x,P,p,t,I,a,k,H,T,r,W,Y,Z,d,G;
_.N(function(e){if(e.nextAddress==1)return _.K(e,J.JSC$14734_playNonceResolver.promise,2);b=e.yieldResult;x={externalPostId:J.JSC$14734_miniAppId,localReleaseId:J.localReleaseId,postPlayNonce:b,sdkVersion:m,measurementWindow:{startTimestampMs:String(r9(c,1)),endTimestampMs:String(r9(c,2))},frameRate:{averageFrameTimeDeltaMs:sS(c,3),averageFrameIdleTimeMs:sS(c,4)}};_.tK(c,Re,5)&&(x.networkRequests={networkRequests:(P=y2(c))==null?void 0:_.m5(P,1),cachedRequests:(p=y2(c))==null?void 0:_.m5(p,2),transferredBytes:(t=
y2(c))==null?void 0:_.m5(t,3),sameOriginStatusCodeToCounts:mtC((I=y2(c))==null?void 0:cfR(I,4)),crossOriginStatusCodeToCounts:mtC((a=y2(c))==null?void 0:cfR(a,5))},(k=y2(c))==null?0:_.tK(k,AV,6))&&(x.networkRequests.serviceWorkerRequestsMeasurement={interceptedRequests:((H=y2(c))==null?void 0:(T=_.JU(H,AV,6))==null?void 0:We(T,1))||"0",cacheHits:((r=y2(c))==null?void 0:(W=_.JU(r,AV,6))==null?void 0:We(W,2))||"0",cachedBytes:((Y=y2(c))==null?void 0:(Z=_.JU(Y,AV,6))==null?void 0:We(Z,3))||"0"});_.tK(c,
gMC,7)&&(x.gameCapture={averageFrameTimeDeltaMs:(d=_.JU(c,gMC,7))==null?void 0:sS(d,1),averageFrameIdleTimeMs:(G=_.JU(c,gMC,7))==null?void 0:sS(G,2)});_.zB("miniAppPerformanceMetrics",x);_.tD(e)})},xt_=function(J,c,m){var b,x;
return _.N(function(P){if(P.nextAddress==1)return _.K(P,J.JSC$14734_playNonceResolver.promise,2);b=P.yieldResult;x={adResult:"MINI_APP_AD_RESULT_REJECTED",miniAppContext:{externalPostId:J.JSC$14734_miniAppId,postPlayNonce:b,miniAppReleaseId:J.localReleaseId},derivedDeviceInterface:J.derivedDeviceInterface,adTriggerType:c};x.rejectedReason=m||"MINI_APP_AD_REJECTED_REASON_UNSPECIFIED";_.zB("miniAppAdEvent",x);_.tD(P)})};
e3L.prototype.disposeInternal=function(){_.DS.prototype.disposeInternal.call(this);window.clearInterval(this.playPingTimerId);this.playPingTimerId=NaN};
var Uh=function(J,c,m,b){m=m===void 0?{}:m;b=b===void 0?!1:b;var x,P,p,t;_.N(function(I){if(I.nextAddress==1)return x=J.isForeground,P=J.beforeReady,_.K(I,J.JSC$14734_playNonceResolver.promise,2);p=I.yieldResult;t={externalPostId:J.JSC$14734_miniAppId,localReleaseId:J.localReleaseId,derivedDeviceInterface:J.derivedDeviceInterface,postPlayNonce:p,type:c};m.sequenceGroup=p;t.playState=P?"PLAY_STATE_NOT_READY":x?"PLAY_STATE_READY_FOREGROUND":"PLAY_STATE_READY_BACKGROUND";_.zB("miniAppPlayEvent",t,m);
b&&_.YH();_.tD(I)})},q4=function(J,c){var m;
_.N(function(b){if(b.nextAddress==1)return m=(0,_.y4)(),_.K(b,J.JSC$14734_playNonceResolver.promise,2);_.Y2(c,m);_.tD(b)})},lTQ=function(J){isNaN(J.playPingTimerId)&&(J.playPingTimerId=_.MU(function(){J.state!==1&&J.state!==2?_.qz(new _.w3("[MiniAppPlayLogger] reportPlayPing failed with state "+om_[J.state])):Uh(J,"PLAY_EVENT_TYPE_PLAY_PING")},J.playPingIntervalMs))},mtC=function(J){return Array.from(J.entries()).map(function(c){var m=_.M(c);
c=m.next().value;m=m.next().value;return{key:c,value:m}})};var VP6=_.c7("show_mini_app_ad_frequency_cap_ms",0),PVa=function(){this.showAdIntervalMs=VP6;this.isRateLimited=!0},MPa=function(J,c){setTimeout(function(){return J.isRateLimited=!1},J.showAdIntervalMs);
J.showMiniAppAdCommand=c.showMiniAppAdCommand;J.isEmbeddedInWebview=c.isEmbeddedInWebview;J.playLogger=c.playLogger},NGa=function(J,c){var m;
return _.N(function(b){if(b.nextAddress==1){if(!J.showMiniAppAdCommand||!J.isEmbeddedInWebview)return b.return(plu(J,c,"MINI_APP_AD_REJECTED_REASON_CLIENT_UNSUPPORTED"));if(J.isRateLimited)return b.return(plu(J,c,"MINI_APP_AD_REJECTED_REASON_RATE_LIMITED"));J.adResolver=new _.xb;m=TCL(new n8Z,c);SQ(J.showMiniAppAdCommand,wQL(m));J.isRateLimited=!0;setTimeout(function(){return J.isRateLimited=!1},J.showAdIntervalMs);
return _.K(b,J.adResolver.promise,2)}return b.return(b.yieldResult)})};
PVa.prototype.onAdFinished=function(J){J=Xg$(J);var c;(c=this.adResolver)==null||c.resolve(J)};
var plu=function(J,c,m){var b;return _.N(function(x){if(x.nextAddress==1)x=_.K(x,(b=J.playLogger)==null?void 0:xt_(b,cwr(c),m),2);else{var P=x.return;var p=new Yc_;p=_.c4(p,1,2);x=P.call(x,p)}return x})};var tP6=new _.oE("INNERTUBE_MANAGER_TOKEN");var I$a=function(){this.callbacks={}};
I$a.prototype.initialize=function(J){var c=this;this.callbacks=J;window.youtubewebview?window.youtubewebview.onmessage=function(m){Kba(c,m)}:(window.nativeMessageListener={},window.nativeMessageListener.onmessage=function(m){Kba(c,m)})};
var Kba=function(J,c){if(c.data)try{var m=VG$(c.data);if(_.E5(_.NC(m,1))!=null){var b=KE$(_.L0(m,2));switch(_.L0(m,1)){case "yt-mini-app-load-audio-state":var x,P;(P=(x=J.callbacks).onAudioStateLoaded)==null||P.call(x,_.w9(b,i3(b,sP,1)));break;case "yt-mute-mini-app":var p,t;(t=(p=J.callbacks).onMuteMiniApp)==null||t.call(p);break;case "yt-unmute-mini-app":var I,a;(a=(I=J.callbacks).onUnmuteMiniApp)==null||a.call(I);break;case "yt-playable-exit":var k,H;(H=(k=J.callbacks).onExit)==null||H.call(k);
break;case "yt-post-play-nonce":var T,r;(r=(T=J.callbacks).onPostPlayNonceReceived)==null||r.call(T,z8(b,2,sP));break;case "yt-confirm-exit-mini-app":var W,Y;(Y=(W=J.callbacks).confirmExitMiniApp)==null||Y.call(W);break;case "yt-confirm-exit-mini-app-edu":var Z,d;(d=(Z=J.callbacks).confirmExitMiniAppEdu)==null||d.call(Z);break;case "yt-benchmarking-response":var G,e;(e=(G=J.callbacks).onNativeBenchmarkingMessageReceived)==null||e.call(G,z8(b,2,sP));break;case "yt-mini-app-load-3p-consent-state":var A,
l;(l=(A=J.callbacks).multiplayer3pAckStateLoaded)==null||l.call(A,_.w9(b,i3(b,sP,1)));break;case "yt-mini-app-get-exit-mini-app-seen-state":var y,pG;(pG=(y=J.callbacks).exitMiniAppSeenStateLoaded)==null||pG.call(y,_.w9(b,i3(b,sP,1)));break;case "yt-mini-app-on-navigate-to-new-mini-app":var kt,nG;(nG=(kt=J.callbacks).onNavigateToNewMiniApp)==null||nG.call(kt);break;case "yt-game-data-available":var fG,Yt;(Yt=(fG=J.callbacks).onGameDataAvailable)==null||Yt.call(fG,z8(b,2,sP));break;case "yt-pause-mini-app":var Z3,
oR;(oR=(Z3=J.callbacks).onPauseMiniApp)==null||oR.call(Z3);break;case "yt-resume-mini-app":var Em,X$;(X$=(Em=J.callbacks).onResumeMiniApp)==null||X$.call(Em);break;case "yt-playable-ad-finished":var Hu,S6;(S6=(Hu=J.callbacks).onAdFinished)==null||S6.call(Hu,z8(b,2,sP))}}else _.qz(Error("Ph"))}catch(a2){_.Xc(Error("Qh"))}else _.qz(Error("Rh"))};var bfQ=function(J){this.rpcErrorCode=J};var Sa=function(J,c,m){this.intervalMs=J;this.apiFunc=c;this.type=m;this.schedulerReady=!0};
Sa.prototype.call=function(J){var c=this,m;return _.N(function(b){if(b.nextAddress==1){if(c.type!==1&&J===c.cachedValue)return b.return();c.pendingApiRequestResolver||(c.pendingApiRequestResolver=new _.xb);m=c.pendingApiRequestResolver.promise;c.cachedValue=J;return _.K(b,CVB(c),2)}return b.return(m)})};
Sa.prototype.flush=function(J){J=J===void 0?!1:J;var c=this;return _.N(function(m){return c.cachedValue===void 0?m.return():_.K(m,c.apiFunc(c.cachedValue,J),0)})};
var CVB=function(J){var c,m,b;return _.N(function(x){switch(x.nextAddress){case 1:if(!J.schedulerReady||!J.pendingApiRequestResolver)return x.return();J.schedulerReady=!1;c=J.pendingApiRequestResolver;J.pendingApiRequestResolver=void 0;_.xL(x,2);if(J.cachedValue===void 0){x.jumpTo(4);break}return _.K(x,J.apiFunc(J.cachedValue),5);case 5:m=x.yieldResult,c.resolve(m);case 4:_.EO(x,3);break;case 2:b=_.NM(x),c.reject(b);case 3:setTimeout(function(){return _.N(function(P){J.schedulerReady=!0;return _.K(P,
CVB(J),0)})},J.intervalMs),_.tD(x)}})};var PSt=window.location.origin+"/miniapp_cloudsaves",x12=[400,401],a$u=_.c7("cloud_save_game_data_rate_limit_ms",3E3),iTC=function(J){var c=this;this.JSC$14778_miniAppId=J;this.loadAttempts=0;this.cloudSaveIntervalMs=a$u;this.initialDownloadDataSucceeded=!1;this.JSC$14778_playNonceResolver=new _.xb;this.scottyUploadRateLimiter=new Sa(this.cloudSaveIntervalMs,function(m,b){return kJu(c,m,b)},2);
this.downloadDataPromise=HTB(this);this.downloadDataPromise.then(function(){c.initialDownloadDataSucceeded=!0}).catch(function(){})},nkL=function(J,c){c.then(function(m){return J.JSC$14778_playNonceResolver.resolve(m)})},TG$=function(J){return _.N(function(c){return J.cachedData===void 0?c.return(J.downloadDataPromise):c.return(J.cachedData)})},wl_=function(J,c){return _.N(function(m){J.cachedData=c;
if(!J.initialDownloadDataSucceeded)throw Error("Sh");return _.K(m,J.scottyUploadRateLimiter.call(c),0)})},r1L=function(){return new Promise(function(J){setTimeout(J,1E3,"")})},sq6=function(J,c){var m,b;
return _.N(function(x){if(x.nextAddress==1)return m=J.JSC$14778_miniAppId,_.K(x,Promise.race([J.JSC$14778_playNonceResolver.promise,r1L()]),2);b={"X-YouTube-MiniAppId":m,"X-YouTube-PostPlayNonce":x.yieldResult};"DELEGATED_SESSION_ID"in _.Zc&&ON2(c,b);return x.return(b)})},kJu=function(J,c,m){m=m===void 0?!1:m;
return _.N(function(b){return m12()?_.w("enable_cloud_save_error_popup_after_retry")?b.return(new Promise(function(x,P){var p,t,I,a,k;return _.N(function(H){switch(H.nextAddress){case 1:p=0,t=!0,a=I=null;case 2:if(!(t&&p++<2)){H.jumpTo(4);break}_.xL(H,5);return _.K(H,Lba(J,c,m),7);case 7:I=H.yieldResult;t=I.ok?!1:!x12.includes(I.status);_.EO(H,2);break;case 5:a=k=_.NM(H);t=VIJ(a);H.jumpTo(2);break;case 4:I?I.ok?(h4(J,a$u),x()):(h4(J,J.cloudSaveIntervalMs*2),P(Error("Th`"+String(I.status),{cause:{rpcErrorCode:I.status}}))):
(h4(J,J.cloudSaveIntervalMs*2),P(a||Error("Uh"))),_.tD(H)}})})):b.return(new Promise(function(x,P){var p,t;
return _.N(function(I){if(I.nextAddress==1){if(J.JSC$14778_miniAppId==="")return P(Error("Vh")),I.return();_.xL(I,2);return _.K(I,Lba(J,c,m),4)}if(I.nextAddress!=2)return p=I.yieldResult,p.ok?(h4(J,a$u),x()):(h4(J,J.cloudSaveIntervalMs*2),P(Error("Th`"+String(p.status),{cause:{rpcErrorCode:p.status}}))),_.EO(I,0);t=_.NM(I);h4(J,J.cloudSaveIntervalMs*2);P(t);_.tD(I)})})):b.return()})},Lba=function(J,c,m){m=m===void 0?!1:m;
var b,x,P;return _.N(function(p){if(p.nextAddress==1)return b=_.yR((new TextEncoder).encode(c)),x=MIQ(),_.K(p,sq6(J,x),2);P=p.yieldResult;return p.return(fetch(x,{method:"POST",body:new Blob([b]),headers:P,keepalive:m}))})},HTB=function(J){var c,m;
return _.N(function(b){if(b.nextAddress==1){if(!m12())return b.return("");if(J.JSC$14778_miniAppId==="")throw Error("Vh");if(J.loadAttempts>2)return b.return(J.downloadDataPromise);_.xL(b,2);return _.K(b,Dt2(J),4)}if(b.nextAddress!=2)return c=b.yieldResult,b.return(c);m=_.NM(b);if(VIJ(m)&&++J.loadAttempts<2)return b.return(HTB(J));throw m;})},Dt2=function(J){var c,m,b,x,P;
return _.N(function(p){switch(p.nextAddress){case 1:return _.xL(p,2),c=MIQ(),_.K(p,sq6(J,c),4);case 4:return m=p.yieldResult,_.K(p,fetch(c,{method:"GET",headers:m}),5);case 5:return b=p.yieldResult,b.ok?_.K(p,b.text(),6):p.return(Promise.reject(Error("Wh`"+String(b.status),{cause:new bfQ(b.status)})));case 6:return x=p.yieldResult,p.return((new TextDecoder).decode(_.I2(x)));case 2:return P=_.NM(p),p.return(Promise.reject(P))}})},h4=function(J,c){J.cloudSaveIntervalMs=c;
J.scottyUploadRateLimiter.intervalMs=J.cloudSaveIntervalMs};
iTC.prototype.flush=function(){var J=this;return _.N(function(c){return J.initialDownloadDataSucceeded?_.K(c,J.scottyUploadRateLimiter.flush(!0),0):c.return()})};var Wb_=Fg(jT(1),Q2(1)),zU$=Fg(jT(1),Q2(3)),dl=function(J){this.callbacks=J};
_.V=dl.prototype;_.V.onAudioToggled=function(J,c){(c===void 0||c)&&_.ct("yt-mini-app-is-audio-enabled",J,2592E3)};
_.V.onPause=function(){this.onAudioToggled(!1,!1)};
_.V.onResume=function(){this.onAudioToggled(this.callbacks.isAudioEnabled(),!1)};
_.V.returnNativeBenchmarkingMessage=function(){};
_.V.sendGameData=function(){};
_.V.sendStartGameFrameCapture=function(){};
var pvf=function(J,c,m){this.callbacks=J;var b=this;this.sdkVersion=new _.xb;this.channel=new k6m(_.Qa({destination:window,iframe:c,origin:(new URL(m.toString())).origin,channelName:"playableIframe",onMessage:this.onMessage(),onEstablished:function(){var x=$u;var P=jT(5);var p=new EM_;p=_.f0(p,1,1E4);P=_.bs(P,4,jtu,p);x(b,P);b.onAudioToggled(b.callbacks.isAudioEnabled())}}));
this.sdkVersionTimeoutId=setTimeout(function(){b.sdkVersion.resolve("")},1E4)};
_.D(pvf,dl);_.V=pvf.prototype;_.V.onAudioToggled=function(J,c){dl.prototype.onAudioToggled.call(this,J,c===void 0?!0:c);c=$u;var m=jT(2),b=new $x$;J=_.Pa(b,1,J);J=_.bs(m,3,jtu,J);c(this,J)};
_.V.onPause=function(){dl.prototype.onPause.call(this);$u(this,jT(3))};
_.V.onResume=function(){dl.prototype.onResume.call(this);$u(this,jT(4))};
_.V.returnNativeBenchmarkingMessage=function(J){var c=$u,m=jT(6);var b=Q2(_.tK(J,Gy,1)?1:2);J=_.tK(J,Gy,1)?J:null;b=_.bs(b,5,eT,J);c(this,Fg(m,b))};
_.V.sendGameData=function(J){var c=$u,m=jT(7);J=_.bs(m,5,jtu,J);c(this,J)};
_.V.sendStartGameFrameCapture=function(){$u(this,jT(9))};
var Gb=function(J,c,m){var b,x,P;return _.N(function(p){if(p.nextAddress==1)return b=J.callbacks,x=b.onSdkCalled,P=c,_.K(p,J.sdkVersion.promise,2);x.call(b,P,p.yieldResult,m);_.tD(p)})};
pvf.prototype.onMessage=function(){var J=this;return nvt(BY,function(c){var m,b,x,P,p,t,I,a,k,H,T,r,W,Y,Z,d,G,e,A,l,y,pG,kt,nG,fG,Yt,Z3,oR,Em,X$,Hu,S6,a2,Nu,cu,t8,I_,fU,Nf,wL,qu,O5,LQ,j6,Ow,QQ;return _.N(function(VQ){switch(VQ.nextAddress){case 1:if(!byB(c.data))return _.qz(Error("Xh")),VQ.return();m=_.Db(c.data,1);_.w("enable_iframe_message_get_type_via_fields")&&(b=c.data,m=x=_.Db(b,1));switch(m){case 8:if(c.data.hasMetadata()){var vB=J.sdkVersion,T4=vB.resolve;var Tz=c.data.getMetadata();Tz=_.L0(Tz,
1);T4.call(vB,Tz);clearTimeout(J.sdkVersionTimeoutId)}break;case 6:return VQ.jumpTo(2);case 16:if(!_.I5(c.data,yTZ,14,gI))return VQ.return();P=_.u0(c.data,yTZ,14,gI);(t=(p=J.callbacks).onGameFrameReceived)==null||t.call(p,P);return VQ.return();case 17:if(!_.I5(c.data,lIz,15,gI))return VQ.return();(a=(I=J.callbacks).onGameAudioReceived)==null||a.call(I,_.u0(c.data,lIz,15,gI));return VQ.return();case 1:if(vB=_.u0(c.data,ATB,2,gI))switch(_.Db(vB,1)){case 1:J.callbacks.onFirstFrameReady();if(_.w("enable_network_request_logging_on_game_events")&&
_.tK(vB,Re,4)){Gb(J,"MINI_APP_SDK_API_FIRST_FRAME_READY",_.JU(vB,Re,4));break}Gb(J,"MINI_APP_SDK_API_FIRST_FRAME_READY");break;case 2:(Tz=(T4=J.callbacks).onGameReady)==null||Tz.call(T4);if(_.w("enable_network_request_logging_on_game_events")&&_.tK(vB,Re,4)){Gb(J,"MINI_APP_SDK_API_GAME_READY",_.JU(vB,Re,4));break}Gb(J,"MINI_APP_SDK_API_GAME_READY");break;case 3:if(_.I5(vB,oe,3,R1B))J.callbacks.onResourceLoaded(_.u0(vB,oe,3,R1B))}return VQ.return();case 3:return VQ.jumpTo(3);case 4:return VQ.jumpTo(4);
case 2:return VQ.jumpTo(5);case 9:return VQ.jumpTo(6);case 10:return J.callbacks.onClick(),VQ.return();case 5:return VQ.jumpTo(7);case 11:if(!_.I5(c.data,vY,9,gI))return VQ.return();k=_.u0(c.data,vY,9,gI);(T=(H=J.callbacks).onBenchmarkingMessageReceived)==null||T.call(H,k);vB=c.reply;T4=jT(1);Tz=Q2(1);var uC=new vY;var Kr=new Uint8Array(GAo(k,i3(k,qc6,6))|0);uC=K4(uC,5,qc6,_.$Z(Kr,!1));Tz=_.bs(Tz,5,eT,uC);vB.call(c,Fg(T4,Tz));return VQ.return();case 12:return VQ.jumpTo(8);case 13:return VQ.jumpTo(9);
case 15:if(!_.w("enable_open_yt_content"))return c.reply(zU$),VQ.return();if(!_.I5(c.data,Ff2,12,gI))return c.reply(Fg(jT(1),Q2(2))),VQ.return();vB=_.u0(c.data,Ff2,12,gI);r=_.L0(vB,1);J.callbacks.onOpenYTContent(r);c.reply(Wb_);return VQ.return();case 14:return VQ.jumpTo(10);default:return VQ.return()}VQ.jumpTo(0);break;case 2:if(!_.I5(c.data,lo,5,gI))return VQ.return();T4=c.data;vB=i3(T4,gI,5);T4=T4.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;(vB=zR(T4,T4[_.sa]|0,lo,vB))||(vB=lo[RF])||
(vB=new lo,zz(vB.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows),vB=lo[RF]=vB);W=vB;vB=_.Jy(W,Oq,1,_.ca());Y=_.M(vB);Z=Y.next();case 12:if(Z.done){VQ.jumpTo(14);break}d=Z.value;G=new _.w3;G.level=_.Db(d,2)===1?"WARNING":"ERROR";e=tIG(d.getSource());return _.K(VQ,J.sdkVersion.promise,15);case 15:A={source:e,sdkVersion:VQ.yieldResult};_.Lr(_.NC(d,6))!=null?(G.message=d.getMessage(),G.stack=_.L0(d,5),A.sdkErrorType=IzD(_.Db(d,6)),_.Lr(_.NC(d,7))!=null&&(A.sdkApi=Kht(_.Db(d,7)))):G.stack=void 0;
y=l=void 0;(y=(l=J.callbacks).onError)==null||y.call(l,{loggingError:G,metadata:A});Z=Y.next();VQ.jumpTo(12);break;case 14:return VQ.return();case 3:return _.xL(VQ,16),vB=J.callbacks,T4=vB.onSave,Tz=_.u0(c.data,G9a,4,gI),Tz=_.L0(Tz,1),_.K(VQ,T4.call(vB,Tz),18);case 18:c.reply(Wb_);_.EO(VQ,17);break;case 16:return pG=_.NM(VQ),kt=h3,nG=pG,fG=J.callbacks,Yt="MINI_APP_SDK_API_SAVE_DATA",_.K(VQ,J.sdkVersion.promise,19);case 19:kt(nG,fG,Yt,VQ.yieldResult),c.reply(zU$);case 17:return _.K(VQ,Gb(J,"MINI_APP_SDK_API_SAVE_DATA"),
20);case 20:return VQ.return();case 4:return _.xL(VQ,21),_.K(VQ,J.callbacks.onLoad(),23);case 23:Z3=VQ.yieldResult;vB=c.reply;T4=jT(1);Tz=Q2(1);uC=new G9a;uC=_.aw(uC,1,Z3);Tz=_.bs(Tz,3,eT,uC);vB.call(c,Fg(T4,Tz));_.EO(VQ,22);break;case 21:return oR=_.NM(VQ),Em=h3,X$=oR,Hu=J.callbacks,S6="MINI_APP_SDK_API_LOAD_DATA",_.K(VQ,J.sdkVersion.promise,24);case 24:Em(X$,Hu,S6,VQ.yieldResult),c.reply(zU$);case 22:return _.K(VQ,Gb(J,"MINI_APP_SDK_API_LOAD_DATA"),25);case 25:return VQ.return();case 5:_.xL(VQ,
26);J.callbacks.onSendHighScore(U7(_.u0(c.data,c3$,3,gI).getValue()));c.reply(Fg(jT(1),Q2(1)));_.EO(VQ,27);break;case 26:return a2=_.NM(VQ),Nu=h3,cu=a2,t8=J.callbacks,I_="MINI_APP_SDK_API_SEND_SCORE",_.K(VQ,J.sdkVersion.promise,28);case 28:Nu(cu,t8,I_,VQ.yieldResult),c.reply(zU$);case 27:return _.K(VQ,Gb(J,"MINI_APP_SDK_API_SEND_SCORE"),29);case 29:return VQ.return();case 6:if(!_.I5(c.data,mJz,8,gI)){VQ.jumpTo(30);break}vB=_.u0(c.data,mJz,8,gI);vB=_.Db(vB,1);return _.K(VQ,Gb(J,Kht(vB)),30);case 30:return VQ.return();
case 7:return vB=c.reply,T4=jT(1),Tz=Q2(1),uC=J.callbacks.getLanguage(),Tz=K4(Tz,4,eT,$p(uC)),vB.call(c,Fg(T4,Tz)),_.K(VQ,Gb(J,"MINI_APP_SDK_API_GET_LANGUAGE"),32);case 32:return VQ.return();case 8:if(!_.I5(c.data,J38,10,gI))return VQ.return();fU=_.u0(c.data,J38,10,gI);Nf=J.callbacks;wL=Nf.onSdkPerformanceUpdate;return _.K(VQ,J.sdkVersion.promise,33);case 33:return wL.call(Nf,fU,VQ.yieldResult),VQ.return();case 9:vB=c.data;T4=i3(vB,gI,11);if(_.E5(_.NC(vB,T4))==null)return c.reply(Fg(jT(1),Q2(2))),
VQ.return();qu=z8(c.data,11,gI);J.callbacks.onShareInviteCode(qu);c.reply(Wb_);return _.K(VQ,Gb(J,"MINI_APP_SDK_API_SHARE_INVITE_CODE"),34);case 34:return VQ.return();case 10:if(_.I5(c.data,dxu,13,gI)){VQ.jumpTo(35);break}return _.K(VQ,J.callbacks.onShowMiniAppAd(2),36);case 36:return O5=VQ.yieldResult,c.reply(Fg(jT(1),Qtz(O5))),_.K(VQ,Gb(J,"MINI_APP_SDK_API_REQUEST_AD"),37);case 37:return VQ.return();case 35:vB=_.u0(c.data,dxu,13,gI);a:switch(_.Db(vB,1)){case 1:vB={adType:2,sdkApi:"MINI_APP_SDK_API_REQUEST_INTERSTITIAL_AD"};
break a;case 2:vB={adType:3,sdkApi:"MINI_APP_SDK_API_REQUEST_REWARDED_AD"};break a;default:vB={adType:0,sdkApi:"MINI_APP_SDK_API_REQUEST_AD"}}LQ=vB;j6=LQ.adType;Ow=LQ.sdkApi;vB=J.callbacks;T4=vB.onShowMiniAppAd;Tz=_.u0(c.data,dxu,13,gI);Tz=_.L0(Tz,2);return _.K(VQ,T4.call(vB,j6,Tz||void 0),38);case 38:return QQ=VQ.yieldResult,c.reply(Fg(jT(1),Qtz(QQ))),_.K(VQ,Gb(J,Ow),39);case 39:return VQ.return()}})})};
var $u=function(J,c){_.N(function(m){J.channel.send(c);_.tD(m)})},dJ=function(J,c,m){this.callbacks=J;
var b=this;this.encoder=new TextEncoder;this.decoder=new TextDecoder;J=PRD(c,(new URL(m.toString())).origin);this.gameSnacks=new ZPJ(J);this.gameSnacks.page.onReady(function(){b.callbacks.onFirstFrameReady()});
this.gameSnacks.userActivity.onUserActivity(function(){b.callbacks.onClick()},1E4);
this.gameSnacks.game.onReady(function(){var x,P;(P=(x=b.callbacks).onGameReady)==null||P.call(x)});
this.gameSnacks.audio.update(this.callbacks.isAudioEnabled());this.gameSnacks.score.onChange(function(x,P){try{b.callbacks.onSendHighScore(P)}catch(p){h3(p,b.callbacks,"MINI_APP_SDK_API_SEND_SCORE","GS")}});
this.gameSnacks.storage.onSave(function(x,P){var p;return _.N(function(t){if(t.nextAddress==1)return _.xL(t,2),_.K(t,b.callbacks.onSave(b.decoder.decode(P)),4);if(t.nextAddress!=2)return _.EO(t,0);p=_.NM(t);h3(p,b.callbacks,"MINI_APP_SDK_API_SAVE_DATA","GS");return t.return()})});
this.gameSnacks.storage.onLoad(function(){var x,P;return _.N(function(p){if(p.nextAddress==1)return _.xL(p,2),_.K(p,b.callbacks.onLoad(),4);if(p.nextAddress!=2)return x=p.yieldResult,p.return(b.encoder.encode(x));P=_.NM(p);h3(P,b.callbacks,"MINI_APP_SDK_API_LOAD_DATA","GS");return p.return(b.encoder.encode(""))})});
this.gameSnacks.init()};
_.D(dJ,dl);dJ.prototype.onAudioToggled=function(J,c){dl.prototype.onAudioToggled.call(this,J,c===void 0?!0:c);var m;(m=this.gameSnacks)==null||m.audio.update(J)};
dJ.prototype.onPause=function(){dl.prototype.onPause.call(this);var J;(J=this.gameSnacks)==null||J.game.pause()};
dJ.prototype.onResume=function(){dl.prototype.onResume.call(this);var J;(J=this.gameSnacks)==null||J.game.resume()};var uK8=CSJ,f$L=_.Q1(function(J){var c=J.data;var m=J.loadingProgress;J=_.M(_.K2("",void 0,"LYYTdd"));var b=J.next().value,x=J.next().value;J=_.M(_.K2(!1,void 0,"K0waae"));var P=J.next().value,p=J.next().value,t=[],I=function(){return"transform: scaleX("+(_.XD(m)||0)+")"},a=null,k=function(){var W;
return(W=c()&&a)!=null?W:a=c().showAnniversaryAnimation?6:uK8()};
_.ui(function(){var W;if(c().timeOutMessages&&((W=c().timeOutMessages)==null?0:W.length)){a=null;W=_.M(t);for(var Y=W.next();!Y.done;Y=W.next())clearTimeout(Y.value);t.length=0;azR(c().timeOutMessages,t,x,p)}},"hrKvCe");
var H=function(){return!!c().persistentErrorMessageTitle},T=function(){return m!==void 0},r=function(){return c().title};
return _.C("yt-mini-splash-screen-view-model",{class:"mini-app-splash-screen-view-model-wiz"},_.C("div",{class:"mini-app-splash-screen-view-model-wiz__loading-screen",role:"region",tabindex:0},_.C("div",{class:"mini-app-splash-screen-view-model-wiz__background-base"}),_.C("div",{class:"mini-app-splash-screen-view-model-wiz__background-blur",style:function(){var W,Y=(W=c().backgroundImage)==null?void 0:W.sources,Z;return(Y==null?0:Y.length)?"background-image: url("+((Z=Y[0])==null?void 0:Z.url)+")":
""}}),_.C("div",{class:"mini-app-splash-screen-view-model-wiz__background-scrim"}),_.C(_.n,{cond:function(){return!H()},
then:function(){var W={};return _.C("div",{class:"mini-app-splash-screen-view-model-wiz__loading-screen-content"},_.C("div",{class:"mini-app-splash-screen-view-model-wiz__loading-icon"},_.C(_.Nd,{className:"mini-app-splash-screen-view-model-wiz__loading-icon-animation",animationName:function(){return"loading_animation_"+k()},
data:function(){var Y="loading_animation_"+k();return{animationConfig:{name:Y,path:"https://www.gstatic.com/youtube/img/lottie/playables_loading_animation/"+Y+".json",loop:!0,autoplay:!0}}}})),_.C("div",{class:"mini-app-splash-screen-view-model-wiz__timeout-message-container"},_.C(_.n,{cond:r,
then:function(){return _.C("h3",{class:"mini-app-splash-screen-view-model-wiz__timeout-heading"},r)}}),_.C("p",{class:_.pq("mini-app-splash-screen-view-model-wiz__timeout-message",(W["mini-app-splash-screen-view-model-wiz__timeout-message-fade-out"]=function(){return P()},W)),
"aria-live":"polite"},b),_.C(_.n,{cond:T,then:function(){return _.C("div",{class:"mini-app-splash-screen-view-model-wiz__loading-bar-track"},_.C("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:I}))}})))}}),_.C(_.n,{cond:H,
then:function(){return _.C("div",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-content"},_.C("h3",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-message-title"},function(){return c().persistentErrorMessageTitle}),_.C(_.n,{cond:function(){return!!c().persistentErrorMessageDescription},
then:function(){return _.C("p",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-message-description"},function(){return c().persistentErrorMessageDescription})}}))}})))},"Sd");var YNB=new _.oE("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");var Xla=FD;FD=function(J){function c(m){if(m){var b,x;(b=m.__spec)==null||(x=b.didUnmount)==null||x.call(b);for(b=0;b<m.childNodes.length;b++)c(m.childNodes[b])}}
Xla==null||Xla(J);L7(function(){for(var m=0;m<J.length;m++)c(J[m])})};var ZT6=_.Q1(function(J){var c=J.data;var m=J.score;var b=J.formattedScore;var x=J.onScoreChanged;var P=J.isEmbeddedInWebview;var p=_.Q5("yt-mini-app-score-button-view-model"),t=function(){var r;return _.L(c==null?void 0:(r=c())==null?void 0:r.buttonViewModel,_.ri)},I=function(){var r;
return(m==null?void 0:m())||Number(c==null?void 0:(r=c())==null?void 0:r.lastScore)||0},a=function(){var r;
return(b==null?void 0:b())||((r=t())==null?void 0:r.title)||""},k,H=1;
if(J=(new URLSearchParams(window.location.search)).get("deviceTextZoomSetting"))J=Number(J),H=isNaN(J)?1:J/100;_.ui(function(){x==null||x(I());var r;var W=_.ZG((r=t())==null?void 0:r.onTap);if(W){r=_.L(W,LO6);var Y,Z,d;r=_.L(r==null?void 0:(Y=r.panelLoadingStrategy)==null?void 0:(Z=Y.inlineContent)==null?void 0:(d=Z.dialogViewModel)==null?void 0:d.customContent,rFQ)}else r=void 0;if(Y=r)Y.score=a()},"KZFi5e");
J=_.Kq(function(){var r,W,Y=c==null?void 0:(r=c())==null?void 0:(W=r.loggingDirectives)==null?void 0:W.trackingParams;Y&&_.b6(_.BG().resolve(_.no),Y);return!1});
_.uN(function(){if(p.value){var r=p.value.querySelector("button"),W=t();r&&W&&kxe(r,W);y5("yt-share-playable-with-high-score",function(){var Y=I().toString(),Z=c==null?void 0:c().onShareHighScoreCommand,d=c==null?void 0:c().highScoreShareClientParamIdentifier,G=P==null?void 0:P();Z&&(G?(d=new KOB,Y=_.aw(d,2,Y),SQ(Z,Y.JSC$10276_serializeBinary())):d&&(_.BG().resolve(YNB).clientParams.set(d,{miniAppClientParams:{highScore:Y}}),Btf(Z,!1)))})}});
var T=function(){var r=t();r&&(m==null?0:m())&&r.accessibilityText&&(r.accessibilityText=r.accessibilityText.replace(k,a()));k=a();return{numberValue:I(),numberText:a(),heightPx:36,fontSizeMultiplier:H,shouldAnimate:!(m==null||!m())&&!0}};
return _.C("yt-mini-app-score-button-view-model",{class:function(){var r={};return _.tP("mini-app-score-button-view-model-wiz",(r["mini-app-score-button-view-model-wiz--is-visible"]=I()!==0,r))},
el:p,"on:click":J},ld(!1,function(){return _.C("span",{style:"display:none;"},I)}),_.C(_.wi,{data:function(){var r;
return c==null?void 0:(r=c())==null?void 0:r.buttonViewModel}},{buttonViewModel:function(r){return _.C(_.XU,{data:r.data,
animatedTextProps:T})}}))},"Td");var dt_=_.Q1(function(J){var c,m=(c=_.m7("yt-mini-app-is-theater-mode-enabled"))!=null?c:!1,b=_.w("enable_playable_container_save_button"),x=_.w("enable_play_next_destination_page_in_toolbar");c={};return _.C("ytm-mini-app-top-bar-view-model",null,_.C("div",{class:_.pq("yt-mini-app-top-bar-view-model",(c["yt-mini-app-top-bar-view-model--mobile"]=!1,c["yt-mini-app-top-bar-view-model--desktop"]=!0,c))},_.C("div",{class:"yt-mini-app-top-bar-view-model__start-buttons"},_.C(_.n,{cond:function(){var P;
return!!J.data().backButtonEdu&&!((P=J.isExitMiniAppSeen)==null?0:P.call(J))},
then:function(){return _.C(_.wi,{data:function(){return J.data().backButtonEdu}},{buttonViewModel:_.XU})},
else:function(){return _.C(_.wi,{data:function(){return J.data().backButton}},{buttonViewModel:_.XU})}}),_.C(_.n,{cond:function(){return J.data().viewAllButton&&!0},
then:function(){return _.C(_.wi,{data:function(){return J.data().viewAllButton}},{buttonViewModel:_.XU})}}),_.C(_.n,{cond:function(){return J.data().title&&!0},
then:function(){return _.C("div",{class:"yt-mini-app-top-bar-view-model__title"},function(){return J.data().title})}})),_.C("div",{class:"yt-mini-app-top-bar-view-model__center-buttons"},_.C(_.n,{cond:function(){var P;
return(P=J.isDesktopPlayPage)==null?void 0:P.call(J)},
then:function(){return _.C(_.cG,null,_.C(qNB,{highScoreButton:function(){return J.data().highScoreButton},
score:J.score,formattedScore:J.formattedScore,onScoreChanged:J.onScoreChanged,isEmbeddedInWebview:J.isEmbeddedInWebview}),_.C(Ut_,{enableSaveButton:function(){return _.XD(b)},
saveButton:function(){return J.data().saveButton},
isSaved:J.isSaved,onSaveToggled:function(){return J.onSaveToggled}}),_.C(SNC,{menuButton:function(){return J.data().menuButton}}))},
else:function(){return _.C(_.n,{cond:function(){return!1},
then:function(){return _.C(_.wi,{data:function(){return J.data().playPageButton}},{buttonViewModel:function(P){return _.C(_.XU,{data:P.data,
className:"yt-mini-app-top-bar-view-model__play-page-button-view-model"})}})},
else:function(){return _.C(qNB,{highScoreButton:function(){return J.data().highScoreButton},
score:J.score,formattedScore:J.formattedScore,onScoreChanged:J.onScoreChanged,isEmbeddedInWebview:J.isEmbeddedInWebview})}})}})),_.C("div",{class:"yt-mini-app-top-bar-view-model__end-buttons"},_.C(_.wi,{data:function(){return J.data().muteButton}},{toggleButtonViewModel:function(P){var p=P.data;
return _.C(_.LK,{data:function(){var t,I;return Object.assign({},p(),{isToggled:(I=(t=J.isAudioEnabled)==null?void 0:t.call(J))!=null?I:!0})},
onToggle:J.onAudioToggled,useOutlinedIcon:!0})}}),_.C(_.wi,{data:function(){return J.data().theatreModeButton}},{toggleButtonViewModel:function(P){var p=P.data;
return _.C("div",{class:"yt-mini-app-top-bar-view-model__theatre-mode-button"},_.C(_.LK,{data:function(){return Object.assign({},p(),{isToggled:m})},
useOutlinedIcon:!0}))}}),_.C(hUu,{fullscreenButton:function(){return J.data().fullscreenButton}}),_.C(_.n,{cond:function(){return _.XD(x)&&J.data().viewAllButton&&!1},
then:function(){return _.C(_.wi,{data:function(){return J.data().viewAllButton}},{buttonViewModel:_.XU})}}),_.C(_.n,{cond:function(){var P;
return!((P=J.isDesktopPlayPage)==null?0:P.call(J))},
then:function(){return _.C(_.cG,null,_.C(Ut_,{enableSaveButton:function(){return _.XD(b)},
saveButton:function(){return J.data().saveButton},
isSaved:J.isSaved,onSaveToggled:function(){return J.onSaveToggled}}),_.C(SNC,{menuButton:function(){return J.data().menuButton}}))}}))))},"Ud");
dt_.idomCompat={callbacks:{onAudioToggled:!0,onSaveToggled:!0,onScoreChanged:!0}};var SNC=_.Q1(function(J){return _.C(_.wi,{data:J.menuButton},{buttonViewModel:_.XU})},"Vd"),Ut_=_.Q1(function(J){var c=J.enableSaveButton;
var m=J.saveButton;var b=J.isSaved;var x=J.onSaveToggled;return _.C(_.n,{cond:function(){return c()&&!(m==null||!m())},
then:function(){return _.C(_.wi,{data:function(){var P=_.L(m==null?void 0:m(),_.sc),p;return{toggleButtonViewModel:Object.assign({},P,{isToggled:(p=b==null?void 0:b())!=null?p:!(P==null||!P.isToggled)})}}},{toggleButtonViewModel:function(P){return _.C(_.LK,{data:P.data,
onToggle:x})}})}})},"Wd"),qNB=_.Q1(function(J){var c=J.highScoreButton;
var m=J.score;var b=J.formattedScore;var x=J.onScoreChanged;var P=J.isEmbeddedInWebview;return _.C(_.wi,{data:c},{miniAppScoreButtonViewModel:function(p){return _.C(ZT6,{data:p.data,score:m,formattedScore:b,onScoreChanged:x,isEmbeddedInWebview:P})}})},"Xd"),hUu=_.Q1(function(J){J=J.fullscreenButton;
return navigator.userAgent.includes("CriOS")?_.C(_.cG,null):_.C(_.wi,{data:J},{buttonViewModel:_.XU})},"Yd");_.$t_=new _.oE("DESKTOP_CURRENT_PAGE");var RU8=_.Q1(function(J){var c=J.data;var m=_.w("force_active_time_logging_webview"),b=!1,x=new I$a,P=void 0,p=void 0,t=_.BG().resolve(tP6),I=new PVa,a=void 0,k=void 0,H=[],T=void 0,r=void 0,W=!1,Y=!1,Z=!1,d=!1,G=new _.xb,e=_.BG().resolve(YNB),A=_.BG().resolve(_.ZR),l=_.BG().resolve(_.y6(tt)),y,pG=(y=_.BG().resolve(_.y6(_.$t_)))==null?void 0:y.getCurrentPage(),kt=!1,nG=0,fG=function(RR){RR.preventDefault();return RR.returnValue=""},Yt;
J=_.M(_.K2(!((Yt=_.m7("yt-mini-app-is-audio-enabled"))!=null&&!Yt),void 0,"HKETIe"));var Z3=J.next().value,oR=J.next().value,Em;Yt=_.M(_.K2(!((Em=_.m7("exit-mini-app-seen-state"))==null||!Em),void 0,"YikM9"));var X$=Yt.next().value,Hu=Yt.next().value;Em=_.M(_.K2(!1,void 0,"iTNqCb"));var S6=Em.next().value,a2=Em.next().value;Em=_.M(_.K2(void 0,void 0,"bU3Vbf"));var Nu=Em.next().value,cu=Em.next().value;Em=_.M(_.K2(void 0,void 0,"qd4Zt"));var t8=Em.next().value,I_=Em.next().value;Em=_.M(_.K2(!0,void 0,
"Cqc83e"));var fU=Em.next().value,Nf=Em.next().value;Em=_.M(_.K2(!1,void 0,"oHovIe"));var wL=Em.next().value,qu=Em.next().value;Em=_.M(_.K2(void 0,void 0,"aeN11"));var O5=Em.next().value,LQ=Em.next().value;Em=_.M(_.K2(0,void 0,"AEGRyb"));var j6=Em.next().value,Ow=Em.next().value,QQ=_.oN("mini-app-container-view-model"),VQ=function(){return c().isEmbeddedInWebview},vB=function(){return c().hasPlayNextShelf};
y5("yt-page-type-changed",function(RR){if(_.w("enable_is_mini_app_page_active_bugfix"))RR.detail.newPageSubtype==="mini_app"&&RR.detail.newPageType==="ytd-browse"||!fU()||uC();else if(RR=_.Jno()==="mini_app",RR!==fU())if(Nf(RR),RR){var pr;RR=(pr=c().playableId)==null?void 0:pr.toString();RR!==void 0&&window.location.href.includes(RR)&&!Y&&(d=!0,T4(),KU(HB.value))}else RR||uC()});
y5("yt-action",function(RR){RR.detail.actionName==="yt-engagement-panel-visible-changed"&&RR.detail.args[1]==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&RR.detail.args[2]==="PAmini_app_panel"&&uC();_.w("enable_is_mini_app_page_active_bugfix")?RR.detail.actionName==="yt-history-load"&&!fU()&&(pG==null?0:pG.active)?(Nf(!0),T4(),KU(HB.value)):RR.detail.actionName==="yt-history-load"&&fU()&&!c().isEmbeddedInWebview&&w8():fU()&&RR.detail.actionName==="yt-history-load"&&(d?d=!1:c().isEmbeddedInWebview||w8())});
_.f2(function(){Tz()});
_.ui(function(){T4()},"C24xad");
var T4=function(){var RR=c().playableId,pr=c().localReleaseId,pU=c().derivedDeviceInterface;if(Y)_.qz(new _.w3("[MiniAppContainerViewModel] onEnter was called more than once"));else{Y=!0;P=new e3L(RR,pr,pU,document.visibilityState==="visible");yjQ(P);p=new iTC(RR);GJu(t,RR);MPa(I,{showMiniAppAdCommand:c().showMiniAppAdCommand,isEmbeddedInWebview:c().isEmbeddedInWebview,playLogger:P});uRT()&&(r=document.body.style.backgroundColor,_.u_(document.body,"background-color","black"));jj();iC();G=new _.xb;
if(c().isEmbeddedInWebview){if(RR=(new URLSearchParams(window.location.search)).get("postPlayNonce"))Fu_(P,RR),kt=!0;x.initialize({onAudioStateLoaded:function(G4){MR(G4)},
onMuteMiniApp:function(){MR(!1)},
onUnmuteMiniApp:function(){MR(!0)},
onExit:function(){},
onPostPlayNonceReceived:function(G4){kt||(Fu_(P,G4),kt=!0)},
confirmExitMiniApp:function(){var G4,uL,al;return _.N(function(X7){if(X7.nextAddress==1)return c().confirmExitMiniAppCommand?_.K(X7,Promise.race([G.promise,Promise.resolve(!1)]),2):X7.return();(G4=X7.yieldResult)?!c().confirmExitMiniAppCommandEdu||(al=(uL=X$)==null?void 0:uL())!=null&&al?r8(c().confirmExitMiniAppCommand):(r8(c().confirmExitMiniAppCommandEdu),_.ct("exit-mini-app-seen-state","true",2592E6)):r8(c().closeMiniAppCommand);_.tD(X7)})},
onNativeBenchmarkingMessageReceived:function(G4){G4=ScQ(_.lzD(G4));if(_.I5(G4,_.UQ,3,ZKB)){var uL=_.u0(G4,_.UQ,3,ZKB),al=gEm();var X7=U7(al.getSeconds())-U7(uL.getSeconds());uL=_.m5(al,2)-_.m5(uL,2);X7<0&&uL>0?(X7+=1,uL-=1E9):X7>0&&uL<0&&(--X7,uL+=1E9);X7=(new Gy).setSeconds(X7);X7=_.LU(X7,2,_.De(uL),0);_.m_(G4,1,X7)}var kd;(kd=k)==null||kd.returnNativeBenchmarkingMessage(G4)},
multiplayer3pAckStateLoaded:function(G4){w8(G4)},
exitMiniAppSeenStateLoaded:function(G4){c().confirmExitMiniAppCommandEdu&&Hu(G4)},
onNavigateToNewMiniApp:function(){r8(c().onNavigateToNewMiniAppCommand)},
onGameDataAvailable:function(G4){G4=new URLSearchParams(G4);var uL=void 0;G4.has("invite_code")&&(uL=new OKQ,G4=G4.get("invite_code"),uL=_.aw(uL,1,G4));if(G4=uL){var al;(al=k)==null||al.sendGameData(G4)}},
onPauseMiniApp:function(){b=!0;Kr()},
onResumeMiniApp:function(){b=!0;M2()},
onAdFinished:function(G4){I.onAdFinished(G4)}});
c().showMultiplayer3pConsentDialogCommand||G.resolve(!0);r8(c().onContainerReadyCommand)}else Fu_(P),G.resolve(!0);nkL(p,jY_(P));jY_(P).then(function(G4){G4={miniAppPlayData:{postPlayNonce:G4}};var uL,al=(uL=c().loggingDirectives)==null?void 0:uL.trackingParams;al&&_.C7().stateChanged(al,G4)});
RR=c().showSignInDialogCommand;!m12()&&RR&&(_.ct("yt-mini-app-has-shown-sign-in-dialog",!0,2592E3),r8(RR));c().confirmExitMiniAppCommand&&l&&(RR=l9f(c().confirmExitMiniAppCommand))&&(l.customConfirmationCommand=RR)}},Tz=function(){r&&_.u_(document.body,"background-color",r);
W=!1;T&&T.release();p.flush().catch(function(RR){_.qz(RR)});
t.flush().catch(function(RR){_.qz(RR)});
gmZ(P);S9();k=void 0;EkQ(e)},uC=function(){Nf(!1);
Tz();a2(!1);LQ(void 0);cu(void 0);I_(void 0);nG=0;Ow(0);Y=!1},Kr=function(){var RR;
(RR=k)==null||RR.onPause();T&&T.release();p.flush().catch(function(pr){_.qz(pr)});
t.flush().catch(function(pr){_.qz(pr)});
BQa(P)},M2=function(){var RR;
(RR=k)==null||RR.onResume();iC();RR=P;RR.isForeground=!0;Uh(RR,"PLAY_EVENT_TYPE_PLAY_RESUME")},MR=function(RR){var pr;
(pr=k)==null||pr.onAudioToggled(RR);oR(RR)},w8=function(RR){c().showMultiplayer3pConsentDialogCommand&&(c().isEmbeddedInWebview&&RR!==void 0&&G.resolve(RR),!RR&&_.Jno()==="mini_app"&&r8(c().showMultiplayer3pConsentDialogCommand))},NL=function(){var RR,pr,pU,G4;
return _.N(function(uL){if(uL.nextAddress==1){!c().isLivestream||c().disableVideoCapture||(RR=k)!=null&&RR.sendStartGameFrameCapture();pr=(new URL(window.location.href)).searchParams;if(pr.has("invite_code")){var al=new OKQ,X7=pr.get("invite_code");pU=_.aw(al,1,X7);(G4=k)==null||G4.sendGameData(pU)}S6()||(a2(!0),al=P,al.state!==1?_.qz(new _.w3("[MiniAppPlayLogger] recordFirstFrameReady failed with state "+om_[al.state])):(_.bj("mini_app_ids_without_game_ready").includes(al.JSC$14734_miniAppId)&&(al.gameReady=
!0),al.state=2,al.beforeReady=!1,q4(al,"ma_ffr"),Uh(al,"PLAY_EVENT_TYPE_PLAY_READY")));return _.K(uL,G.promise,2)}r8(c().onMiniAppReadyCommand);document.activeElement instanceof HTMLIFrameElement&&document.activeElement.blur();c().isEmbeddedInWebview||w8();_.tD(uL)})},A8=function(){var RR=P;
RR.gameReady=!0;q4(RR,"ma_gr")},wR=function(RR){var pr;
return _.N(function(pU){if(pU.nextAddress==1)return _.xL(pU,2),_.K(pU,wl_(p,RR),4);if(pU.nextAddress!=2)return _.EO(pU,0);pr=_.NM(pU);r8(c().showSavingErrorPopupCommand);throw pr;})},Bu=function(){var RR,pr;
return _.N(function(pU){if(pU.nextAddress==1)return _.xL(pU,2),_.K(pU,TG$(p),4);if(pU.nextAddress!=2)return RR=pU.yieldResult,pU.return(RR);pr=_.NM(pU);r8(c().showLoadingErrorDialogCommand);throw pr;})},M0=function(RR){P.logError(RR)},ii=function(RR,pr,pU){c12(P,RR,pr,pU)},GO=function(RR,pr){bTa(P,RR,pr)},IP=function(){!m&&c().isEmbeddedInWebview||_.JI();
J1B(P,!0);W||(window.addEventListener("beforeunload",fG,{capture:!0}),W=!0)},V4=function(RR){var pr,pU,G4,uL,al,X7,kd;
return _.N(function(He){if(He.nextAddress==1)return t&&(!a||a<RR)&&RR>0?_.K(He,vka(t,RR),3):He.jumpTo(0);pr=He.yieldResult;pU=_.M(pr);G4=pU.next().value;uL=pU.next().value;al=G4;X7=uL;((kd=al)==null?0:kd.displayString)&&X7&&(cu(X7),I_(al.displayString));_.tD(He)})},C6=function(RR){var pr=c().onBenchmarkingMessageReceivedCommand;
if(pr){var pU=gEm();_.bs(RR,3,ZKB,pU);SQ(pr,h1C(RR))}},qr=function(RR){var pr=c().onGameFrameReceivedCommand;
if(pr){var pU=new n8Z;var G4=new aK6;var uL=r9(RR,1);G4=_.TB(G4,1,uL);RR=_.L0(RR,2);RR=_.aw(G4,2,RR);pU=_.m_(pU,2,RR);SQ(pr,wQL(pU))}},sm=function(RR){var pr=c().onGameAudioDataReceivedCommand;
if(pr){var pU=new n8Z;var G4=new HdC;RR=_.L0(RR,1);G4=_.aw(G4,1,RR);pU=_.m_(pU,4,G4);SQ(pr,wQL(pU))}},hq=function(){var RR=new URLSearchParams(window.location.search);
if(c().isEmbeddedInWebview&&RR&&RR.get("override_hl")==="true"&&RR.get("hl"))return RR.get("hl");RR=document.documentElement.lang;return RR!==""?RR:_.UG},Om=function(RR){var pr=c().onShareInviteCodeCommand;
if(pr)if(c().isEmbeddedInWebview){var pU=new KOB;RR=_.aw(pU,1,RR);SQ(pr,aj_(RR))}else pU=c().inviteCodeShareClientParamIdentifier,e.clientParams.set(pU,{miniAppClientParams:{inviteCode:RR}}),r8(pr)},KQ=function(RR){var pr,pU,G4;
return _.N(function(uL){if(uL.nextAddress==1)return pr=c().onMiniAppOpenYtContentRequested,t&&_.w("enable_open_yt_content")&&pr?_.K(uL,OTz(t,RR),3):uL.jumpTo(0);pU=uL.yieldResult;if(pU==="OK")if(c().isEmbeddedInWebview){var al=new tdQ;G4=K4(al,2,sP,$p(RR));SQ(pr,C__(G4))}else A.clientData.set("video_id",RR),r8(pr);_.tD(uL)})},VR=function(RR){nG+=_.m5(RR,3);
RR=Math.min(Math.log(1+nG/15E6*9)/Math.log(10),.99);Ow(RR);Yl(RR)},Yl=_.Kd(function(RR){var pr=c().updateLoadingProgressCommand;
if(pr){var pU=new tdQ;RR=K4(pU,3,sP,_.NR(RR));SQ(pr,C__(RR))}},100),Cr=function(RR){return NGa(I,RR)},iC=function(){var RR,pr;
((RR=_.DQu())==null?void 0:(pr=RR.wakeLock)==null?void 0:pr.request)!=null&&_.DQu().wakeLock.request("screen").then(function(pU){T=pU}).catch(function(){})},HB=_.oN("iframe");
_.ui(function(){c().isSupportedCountry&&(m12()||_.w("enable_sign_in_promo")||!c().showSignInDialogCommand?KU(HB.value):r8(c().onMiniAppReadyCommand))},"anRCse");
var rR=function(){return _.C("iframe",{class:"yt-mini-app-container-view-model__iframe",sandbox:"allow-scripts allow-same-origin allow-pointer-lock",allow:"autoplay",tabindex:function(){return S6()?0:-1},
el:HB})},KU=function(RR,pr){pr=pr===void 0?!1:pr;
var pU=PB();pU&&(pr||pU.toString()!==RR.getAttribute("src"))&&(k=NZq(c().source,{isAudioEnabled:Z3,onFirstFrameReady:NL,onGameReady:A8,onSave:wR,onLoad:Bu,onError:M0,onSdkCalled:ii,onSdkPerformanceUpdate:GO,onClick:IP,onSendHighScore:V4,onBenchmarkingMessageReceived:C6,getLanguage:hq,onShareInviteCode:Om,onResourceLoaded:VR,onOpenYTContent:KQ,onShowMiniAppAd:Cr,onGameFrameReceived:qr,onGameAudioReceived:sm},RR,pU),Hd(RR,"load",function(){q4(P,"ma_il");Hd(RR,"load",function(){KU(RR,!0)})}),_.Yh(RR,
pU))},PB=function(){var RR=c().url;
if(RR&&(RR=_.Y$(RR),RR!==null)){if(c().source&&c().source==="MINI_APP_SOURCE_GAMESNACKS")RR=_.mp(RR,new Map([["origin",window.location.origin],["cloudSave","true"]]));else if(_.w("enable_origin_query_parameter_bugfix")){var pr=_.so(_.c6r(RR.toString()));pr=new URLSearchParams(pr||"");pr.set("origin",window.location.origin);pr=pr.toString();RR=_.N2(RR).toString();RR=_.p1(cqC.exec(RR)[0]+(pr.trim()?"#"+pr:""))}return RR}},T$=function(){var RR={};
RR=_.pq("yt-mini-app-container-view-model__loading-screen",(RR["yt-mini-app-container-view-model__loading-screen--fade-out"]=S6,RR));var pr=function(){return S6()?1:j6()};
return _.C("div",{class:RR},_.C(_.wi,{data:function(){return c().splashScreen}},{miniAppSplashScreenViewModel:function(pU){return _.C(f$L,{data:pU.data,
loadingProgress:pr})}}))},jj=function(){H=[];
H.push(_.wp(window,"visibilitychange",function(){Z||b&&VQ()||(document.visibilityState==="visible"?M2():Kr())}));
H.push(_.wp(window,"pagehide",function(){Tz()}));
H.push(_.wp(window,"blur",function(){setTimeout(function(){document.activeElement instanceof HTMLIFrameElement&&QQ.value.dispatchEvent(new Event("tap"))},0)}));
H.push(_.wp(QQ.value,"pointerdown",function(){J1B(P,!1)},!0));
H.push(_.wp(QQ.value,"pause",function(){Z=!0;Kr()}));
H.push(_.wp(QQ.value,"play",function(){Z=!1;M2()}));
H.push(_.wp(QQ.value,"exit",function(){Tz()}));
var RR=navigator.keyboard,pr=RR&&RR.lock;H.push(_.wp(window,mLZ,function(){qu(xLQ());xLQ()?(c().hasPlayNextShelf&&Ei("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),tU("yt-mini-app-container-view-model__content","yt-mini-app-container-view-model__content--fullscreen"),pr&&RR.lock(["Escape"])):(c().hasPlayNextShelf&&tU("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),Ei("yt-mini-app-container-view-model__content",
"yt-mini-app-container-view-model__content--fullscreen"),pr&&RR.unlock())}));
c().showMultiplayer3pConsentDialogCommand&&H.push(_.wp(window,"yt-playables-ack-3p-data-usage",function(){A1_(t)}));
c().confirmExitMiniAppCommandEdu&&H.push(_.wp(window,"yt-playables-exit-mini-app-dialog-seen",function(){_.ct("exit-mini-app-seen-state","true",2592E6)}))},S9=function(){H.forEach(function(RR){iv(RR)});
window.removeEventListener("beforeunload",fG,{capture:!0})},r8=function(RR){RR&&Btf(RR,c().isEmbeddedInWebview||!1)},tU=function(RR,pr){RR=_.M(QQ.value.getElementsByClassName(RR));
for(var pU=RR.next();!pU.done;pU=RR.next())pU.value.classList.add(pr)},Ei=function(RR,pr){RR=_.M(QQ.value.getElementsByClassName(RR));
for(var pU=RR.next();!pU.done;pU=RR.next())pU.value.classList.remove(pr)};
return function(){var RR={};RR=_.pq("yt-mini-app-container-view-model",(RR["yt-mini-app-container-view-model--desktop"]=!0,RR["yt-mini-app-container-view-model--desktop-in-panel"]=function(){return c().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},RR["yt-mini-app-container-view-model--ios-web-view"]=uRT(),RR["yt-mini-app-container-view-model--no-top-bar"]=function(){return!c().topBar},RR["yt-mini-app-container-view-model--position-relative-to-top"]=function(){return c().hasPlayNextShelf},RR["yt-mini-app-container-view-model--desktop-play-page"]=
function(){return c().hasPlayNextShelf},RR["yt-mini-app-container-view-model--show-peek-below"]=function(){return!wL()&&c().hasPlayNextShelf},RR));
var pr={};pr=_.pq("yt-mini-app-container-view-model__content",(pr["yt-mini-app-container-view-model__content--desktop-content"]=!0,pr["yt-mini-app-container-view-model__content--desktop-content-in-panel"]=function(){return c().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},pr["yt-mini-app-container-view-model--desktop-play-page"]=function(){return c().hasPlayNextShelf},pr));
return _.C("mini-app-container-view-model",{el:QQ},_.C("div",{class:RR},_.C(_.n,{cond:function(){return c().topBar&&!wL()},
then:function(){return _.C(_.wi,{data:function(){return c().topBar}},{miniAppTopBarViewModel:function(pU){return _.C(dt_,{data:pU.data,
isAudioEnabled:Z3,onAudioToggled:function(G4){MR(G4)},
score:Nu,formattedScore:t8,onScoreChanged:function(G4){a=G4},
isEmbeddedInWebview:VQ,isSaved:O5,onSaveToggled:function(G4){LQ(G4)},
isExitMiniAppSeen:X$,isDesktopPlayPage:vB})}})}}),_.C("div",{class:pr},_.C(_.n,{cond:fU,
then:function(){return rR()}}),_.C(_.n,{cond:function(){return!c().isEmbeddedInWebview},
then:function(){return T$()}}))))}()},"Zd");
RU8.idomCompat=!0;_.lv(RU8,"mini-app-container-view-model",{props:{data:_.vt}});var okZ=_.Q1(function(J){var c=J.data;return _.C("yt-sponsorships-hub-perk-card",{class:"ytSponsorshipsHubPerkCardHost"},_.C("button",{class:"ytSponsorshipsHubPerkCardPerkCard","on:click":_.Kq(function(){var m=c().onTap;m&&_.hd(m)})},_.C(_.n,{cond:function(){return c().icon},
then:function(m){return _.C(_.HP,{icon:function(){return m().iconType},
className:"ytSponsorshipsHubPerkCardPerkIcon"})}}),_.C("div",{class:"ytSponsorshipsHubPerkCardPerkTitle"},function(){return c().title})))},"$d");
okZ.idomCompat=!0;var Qq_=_.Q1(function(J){var c=_.oN("div"),m=_.M(_.K2(void 0,void 0,"kFCJ0c")),b=m.next().value,x=m.next().value;m=_.M(_.K2(void 0,void 0,"PIPgWd"));var P=m.next().value,p=m.next().value;m=_.M(_.K2(void 0,void 0,"rV66ob"));var t=m.next().value,I=m.next().value,a=function(){var d=b();return d!==void 0?Math.abs(d):void 0},k=function(){var d=a();
return d===void 0||d<=3},H=function(){var d=a();
var G=P(),e=t();d=d!==void 0&&G!==void 0&&e!==void 0?G-e-d:void 0;return d===void 0||d<=3},T=function(d){c.value&&c.value.scrollBy({top:0,
left:(_.Ub("HTML_DIR")==="rtl"?-1:1)*d*c.value.clientWidth,behavior:"smooth"})},r=function(){var d;
x((d=c.value)==null?void 0:d.scrollLeft);var G;p((G=c.value)==null?void 0:G.scrollWidth);var e;I((e=c.value)==null?void 0:e.clientWidth)},W=function(){T(-.5)},Y=function(){T(.5)};
m=_.Kq(function(){r()});
_.WG(function(){r();if(c.value){var d=new ResizeObserver(r);d.observe(c.value);_.f2(function(){d.disconnect()})}});
var Z={};return _.C("yt-sponsorships-scrollable-shelf",{class:_.pq("ytdSponsorshipsScrollableShelfHost",J.className)},_.C("div",{class:_.pq("ytdSponsorshipsScrollableShelfContent",(Z.ytdSponsorshipsScrollableShelfFadingEffectBothSides=function(){return J.data().previousButton&&J.data().nextButton&&!k()&&!H()},Z.ytdSponsorshipsScrollableShelfFadingEffectStart=function(){return J.data().previousButton&&!k()&&H()},Z.ytdSponsorshipsScrollableShelfFadingEffectEnd=function(){return J.data().nextButton&&
k()&&!H()},Z)),
el:c,"on:scroll":m},J.children),_.C(_.n,{cond:function(){return!k()},
then:function(){return _.C(_.wi,{data:function(){return J.data().previousButton}},{buttonViewModel:function(d){return _.C(_.XU,{data:d.data,
className:"ytdSponsorshipsScrollableShelfPreviousButton",onClick:W})}})}}),_.C(_.n,{cond:function(){return!H()},
then:function(){return _.C(_.wi,{data:function(){return J.data().nextButton}},{buttonViewModel:function(d){return _.C(_.XU,{data:d.data,
className:"ytdSponsorshipsScrollableShelfNextButton",onClick:Y})}})}}))},"ae");
Qq_.idomCompat=!0;var jqB=_.Q1(function(J){var c=J.data;J={};return _.C("yt-sponsorships-hub",{class:_.pq("ytdSponsorshipsHubHost",(J.ytdSponsorshipsHubHostIndented=function(){return c().indented},J))},_.C("div",{class:"ytdSponsorshipsHubHeader"},_.C("div",{class:"ytdSponsorshipsHubAvatarContainer"},_.C("div",{class:"ytdSponsorshipsHubAvatar"},_.C(_.wi,{data:function(){return c().avatar}},{avatarViewModel:_.s8})),_.C(_.n,{cond:function(){return c().badgeImage},
then:function(m){return _.C("div",{class:"ytdSponsorshipsHubBadgeContainer"},_.C("div",{class:"ytdSponsorshipsHubBadgeInnerContainer"},_.C("div",{class:"ytdSponsorshipsHubBadge"},_.C(_.RA,{data:m,targetWidth:24,targetHeight:24,alt:""}))))}})),_.C("div",{class:"ytdSponsorshipsHubDetails"},_.C("div",{class:"ytdSponsorshipsHubTierName"},function(){return c().tierName}),_.C("div",{class:"ytdSponsorshipsHubMembershipType"},function(){return c().membershipType}),_.C("div",{class:"ytdSponsorshipsHubMembershipDurationOrExpiry"},
function(){return c().membershipDurationOrExpiry})),_.C("div",{class:"ytdSponsorshipsHubActionButtonsContainer"},_.C(_.wi,{data:function(){return c().manageButton}},{buttonViewModel:function(m){return _.C(_.XU,{data:m.data,
className:"ytdSponsorshipsHubManageButton"})}}),_.C(_.wi,{data:function(){return c().actionMenuButton}},{buttonViewModel:function(m){return _.C(_.XU,{data:m.data,
className:"ytdSponsorshipsHubActionMenuButton"})}}))),_.C("div",{class:"ytdSponsorshipsHubPerksTitle"},function(){return c().perksTitle}),_.C(Qq_,{data:function(){return{previousButton:c().previousPerkButton,
nextButton:c().nextPerkButton}},
className:"ytdSponsorshipsHubPerksShelf"},_.C("div",{class:"ytdSponsorshipsHubPerkCards"},_.C(_.wi,{data:function(){return c().perkCards}},{sponsorshipsHubPerkCardViewModel:okZ}),_.C(_.n,{cond:function(){return c().viewAllPerksButton},
then:function(m){return _.C(eU6,{data:m})}}))))},"be");
jqB.idomCompat=!0;var eU6=_.Q1(function(J){var c=J.data;return _.C("div",{class:"ytdSponsorshipsHubViewAllPerksContainer"},_.C(_.wi,{data:function(){return c().button}},{buttonViewModel:_.XU}),_.C("div",{class:"ytdSponsorshipsHubViewAllPerksInfo"},_.C("div",{class:"ytdSponsorshipsHubViewAllPerksTitle"},function(){return c().title}),_.C("div",{class:"ytdSponsorshipsHubViewAllPerksSubtitle"},function(){return c().subtitle})))},"ce");
eU6.idomCompat=!0;_.lv(jqB,"yt-sponsorships-hub",{props:{data:_.vt}});_.Fbz=_.Q1(function(J){var c=J.data;return _.C("yt-dual-avatar-view-model",{class:"ytDualAvatarViewModelHost",style:_.kx({"--yt-dual-avatar-view-model-badge-cutout-radius":function(){var m;return((m=c().badgeCutoutRadius)!=null?m:14)+"px"}})},_.C("div",{class:"ytDualAvatarViewModelAvatarsContainer"},_.C(_.wi,{data:function(){return c().startAvatar}},{avatarViewModel:_.s8}),_.C(_.wi,{data:function(){return c().endAvatar}},{avatarViewModel:_.s8})),_.C(_.wi,{data:function(){return c().badge}},{contentPreviewImageViewModel:function(m){return _.C("div",
{class:"ytDualAvatarViewModelBadge"},_.C(_.lF,{data:m.data}))}}))},"de");
_.Fbz.idomCompat=!0;var y1$=_.Q1(function(J){var c=J.data;var m,b=!((m=_.BG().resolve(_.y6(_.Ev)))==null||!m());J=_.n2(function(){var k,H,T=b?(k=c().header)==null?void 0:k.backgroundColorDarkMode:(H=c().header)==null?void 0:H.backgroundColorLightMode;if(T!==void 0)return _.Zn(T)},void 0,"UX2G6c");
m=_.n2(function(){var k,H;return b?(k=c().header)==null?void 0:k.backgroundImagePart1Dark:(H=c().header)==null?void 0:H.backgroundImagePart1Light},void 0,"GPAi1d");
var x=_.n2(function(){var k,H;return b?(k=c().header)==null?void 0:k.backgroundImagePart2Dark:(H=c().header)==null?void 0:H.backgroundImagePart2Light},void 0,"nboJld"),P=_.n2(function(){return _.Ub("HTML_DIR")==="rtl"},void 0,"LGJceb"),p=_.oN("yt-sponsorships-perks-list"),t=!1,I=function(){var k=p.value;
if(k&&!t){var H,T=(H=k.parentElement)==null?void 0:H.parentElement;if(T)for(k=k.getElementsByClassName("ytdSponsorshipsPerksListSelectedPerk"),H=0;H<k.length;++H){var r=k[H];if(r instanceof HTMLElement){T.scrollTo({top:r.offsetTop+r.clientHeight/2-T.clientHeight/2,behavior:"smooth"});t=!0;break}}}};
_.uN(function(){var k=p.value;if(k){var H=new ResizeObserver(I);H.observe(k);_.f2(function(){H.disconnect()})}});
var a={};return _.C("yt-sponsorships-perks-list",{el:p,class:_.pq("ytdSponsorshipsPerksListHost",(a.ytdSponsorshipsPerksListHorizontalPadding=function(){return c().horizontalPaddingEnabled},a))},_.C("div",{class:"ytdSponsorshipsPerksListHeaderContainer"},_.C("div",{class:"ytdSponsorshipsPerksListHeader",
style:_.kx({"background-color":J})},_.C("div",{class:"ytdSponsorshipsPerksListHeaderImagePart1Container"},_.C(_.n,{cond:m,then:function(k){var H={};return _.C("div",{class:_.pq((H.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=b,H.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!b,H.ytdSponsorshipsPerksListFlipped=P,H))},_.C(_.RA,{data:k,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart1"}))}})),_.C("div",{class:"ytdSponsorshipsPerksListHeaderImagePart2Container"},_.C(_.n,{cond:x,
then:function(k){var H={};return _.C("div",{class:_.pq((H.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=b,H.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!b,H.ytdSponsorshipsPerksListFlipped=P,H))},_.C(_.RA,{data:k,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart2"}))}})),_.C("div",{class:"ytdSponsorshipsPerksListAvatarsContainer"},_.C(_.wi,{data:function(){var k;
return(k=c().header)==null?void 0:k.dualAvatar}},{dualAvatarViewModel:_.Fbz})))),_.C("div",{class:"ytdSponsorshipsPerksListBody"},_.C("div",{class:"ytdSponsorshipsPerksListTitle"},function(){return c().title}),_.C(_.n,{cond:function(){return c().perks},
then:function(k){return _.C(_.Te,{each:k},function(H,T){var r={};return _.C("div",{class:_.pq("ytdSponsorshipsPerksListPerkContainer",(r.ytdSponsorshipsPerksListSelectedPerk=function(){var W=T(),Y=c().selectedPerkIndex;return W===Y},r))},_.C(_.n,{cond:function(){return T()>0},
then:function(){return _.C("div",{class:"ytdSponsorshipsPerksListPerkSeparator"})}}),_.C("div",{class:"ytdSponsorshipsPerksListPerkCard"},_.C(_.n,{cond:function(){return H.icon},
then:function(W){return _.C(_.HP,{icon:function(){return W().iconType},
className:"ytdSponsorshipsPerksListPerkIcon"})}}),_.C("div",{class:"ytdSponsorshipsPerksListPerkInfo"},_.C("div",{class:"ytdSponsorshipsPerksListPerkTitle"},H.title),_.C("div",{class:"ytdSponsorshipsPerksListPerkDescription"},_.C(_.j8,{text:H.description})),_.C(_.n,{cond:function(){return H.instructions},
then:function(){var W,Y;return _.C("div",{class:"ytdSponsorshipsPerksListPerkInstructions"},_.C("div",{class:"ytdSponsorshipsPerksListPerkInstructionsTitle"},(W=H.instructions)==null?void 0:W.title),_.C("div",{class:"ytdSponsorshipsPerksListPerkInstructionsText"},_.C(_.j8,{text:(Y=H.instructions)==null?void 0:Y.text})))}}))),_.C(_.n,{cond:function(){return H.emoji},
then:function(W){return _.C("div",{class:"ytdSponsorshipsPerksListEmojiContainer"},_.C(_.Te,{each:function(){return W()}},function(Y){return _.C(_.RA,{data:Y,
alt:"",className:"ytdSponsorshipsPerksListEmoji"})}))}}),_.C(l$6,{data:H}))})}})))},"ee");
y1$.idomCompat=!0;var l$6=_.Q1(function(J){var c=J.data;var m=function(p,t){return p===t},b=function(){var p=c();
p=_.L(p==null?void 0:p.badgesShelf,nUa);return p!==void 0&&p!==null?p:{previousButton:{},nextButton:{}}},x=_.Q5("div"),P=function(){var p=x.value;
if(p){var t=p.parentElement;if(t){p=p.getElementsByClassName("ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer");for(var I=0;I<p.length;++I){var a=p[I];if(a instanceof HTMLElement){t.scrollTo({left:a.offsetLeft+a.clientWidth/2-t.clientWidth/2,behavior:"instant"});break}}}}};
_.uN(function(){var p=x.value;if(p){var t=new ResizeObserver(P);t.observe(p);_.f2(function(){t.disconnect()})}});
return _.C("div",null,_.C(_.n,{cond:function(){return c().badges},
then:function(p){return _.C(Qq_,{data:b},_.C("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgesContainer",el:x},_.C(_.Te,{each:function(){return p()}},function(t,I){var a={},k={},H={};
return _.C("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeItem"},_.C(_.n,{cond:function(){return I()>0},
then:function(){return _.C("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeSeparator"})}}),_.C("div",{class:_.pq("ytdSponsorshipsPerksListLoyaltyBadgeContainer",(a.ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer=function(){return m(I(),c().currentBadgeIndex)},a.ytdSponsorshipsPerksListInactiveLoyaltyBadgeContainer=function(){return!m(I(),c().currentBadgeIndex)},a))},_.C("div",{class:_.pq("ytdSponsorshipsPerksListLoyaltyBadge",(k.ytdSponsorshipsPerksListActiveLoyaltyBadge=function(){return m(I(),
c().currentBadgeIndex)},k.ytdSponsorshipsPerksListInactiveLoyaltyBadge=function(){return!m(I(),c().currentBadgeIndex)},k))},_.C(_.n,{cond:function(){return t.image},
then:function(T){var r={};return _.C("div",{class:_.pq((r.ytdSponsorshipsPerksListActiveLoyaltyBadgeImage=function(){return m(I(),c().currentBadgeIndex)},r.ytdSponsorshipsPerksListInactiveLoyaltyBadgeImage=function(){return!m(I(),c().currentBadgeIndex)},r))},_.C(_.RA,{data:T,
alt:""}))}})),_.C("div",{class:_.pq("ytdSponsorshipsPerksListLoyaltyBadgeTitle",(H.ytdSponsorshipsPerksListActiveLoyaltyBadgeTitle=function(){return m(I(),c().currentBadgeIndex)},H))},t.title)))})))}}))},"fe");
l$6.idomCompat=!0;_.lv(y1$,"yt-sponsorships-perks-list",{props:{data:_.vt}});_.lv(_.Q1(function(J){return _.C("ytw-fantasy-empty-state-view-model",{class:"ytwFantasyEmptyStateViewModelHost"},_.C(_.n,{cond:function(){return J.data().image},
then:function(c){return _.C(_.RA,{className:"ytwFantasyEmptyStateViewModelImage",data:c,ariaHidden:!0,alt:""})}}),_.C(_.j8,{className:"ytwFantasyEmptyStateViewModelTitle",
text:function(){return J.data().title}}),_.C(_.j8,{className:"ytwFantasyEmptyStateViewModelSubtitle",
text:function(){return J.data().subtitle}}),_.C(_.wi,{data:function(){return J.data().primaryButton}},{buttonViewModel:function(c){return _.C(_.XU,{data:c.data,
className:"ytwFantasyEmptyStateViewModelPrimaryButton"})}}))},"ge"),"ytw-fantasy-empty-state-view-model",{props:{data:_.vt}});var BG_;var HfQ=_.Hg({buttonRenderer:_.GM});_.J5(ifR);_.xx(ifR,"timed-animation-button-renderer",{propNames:["data","uniqueId","overrides"]});var Eh=function(){var J=_.h.apply(this,arguments)||this;J.hideJoinButtonBeforeSubscribed=_.w("hide_join_button_before_subscribed");J.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-unsubscribe-action":"handleUnsubscribeAction"};return J};
_.D(Eh,_.h);_.V=Eh.prototype;
_.V.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"}}}};
_.V.updateJoinButtonOverrides=function(){var J,c;(J=_.Bj(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||(c=J.polymerController)==null||c.set("overrides",this.joinButtonOverrides);if(J=_.Bj(this.hostElement).querySelector("#sponsor-button timed-animation-button-renderer"))J.overrides=this.joinButtonOverrides};
_.V.handleButtonRefreshAction=function(J){if(J=_.L(J,A3Q))this.set("data.membershipButton",J.membershipButton),this.notifyPath("data.membershipButton")};
_.V.onYtServiceRequestError=function(J){_.Bg(this.hostElement,J.detail.error.message)};
_.V.handleUnsubscribeAction=function(){var J,c,m;((J=this.data)==null?void 0:(c=J.membershipButton)==null?void 0:(m=c.buttonRenderer)==null?void 0:m.style)==="STYLE_PRIMARY"&&_.Bj(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").polymerController.set("data.style","STYLE_SUGGESTIVE")};
_.eE.Object.defineProperties(Eh.prototype,{hideJoin:{configurable:!0,enumerable:!0,get:function(){var J;return((J=this.data)==null?void 0:J.hideMembershipButtonIfUnsubscribed)&&!this.subscribed}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var J;return!((J=this.subscriptionStateEntity)==null||!J.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){var J,c=(J=this.data)==null?void 0:J.membershipButton,m;J=(c==null?void 0:c.buttonRenderer)||_.L(c==null?void 0:(m=c.timedAnimationButtonRenderer)==null?void 0:m.buttonRenderer,_.ur);return(J==null?void 0:J.style)==="STYLE_BRAND_GRADIENT"?{style:"brand-gradient",type:"filled"}:(J==null?void 0:J.style)==="STYLE_MONO_OUTLINE"?{style:"mono",type:"outline"}:(J==null?void 0:J.style)==="STYLE_MONO_TONAL"?{style:"mono",type:"tonal"}:{style:"mono",
type:this.subscribed?"filled":"tonal"}}}});
Eh.prototype.onYtServiceRequestError=Eh.prototype.onYtServiceRequestError;Eh.prototype.updateJoinButtonOverrides=Eh.prototype.updateJoinButtonOverrides;_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],Eh.prototype,"actionHandlerBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Eh.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],Eh.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.f(_.fY),_.R("design:type",Object)],Eh.prototype,"ytdReduxBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Eh.prototype,"data",void 0);_.O([_.q("data.hideMembershipButtonIfUnsubscribed","subscribed"),_.R("design:type",Object),_.R("design:paramtypes",[])],Eh.prototype,"hideJoin",null);_.O([_.U(),_.R("design:type",String)],Eh.prototype,"subscribeKey",void 0);_.O([_.U({selectorArgs:["subscribeKey"],selector:HJr}),_.R("design:type",Object)],Eh.prototype,"subscriptionStateEntity",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Eh.prototype,"hideJoinButtonBeforeSubscribed",void 0);_.O([_.q("subscriptionStateEntity"),_.U({reflectToAttribute:!0}),_.R("design:type",Object),_.R("design:paramtypes",[])],Eh.prototype,"subscribed",null);_.O([_.q("subscribed","data.membershipButton"),_.R("design:type",Object),_.R("design:paramtypes",[])],Eh.prototype,"joinButtonOverrides",null);
_.O([_.NE("joinButtonOverrides"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Eh.prototype,"updateJoinButtonOverrides",null);_.O([_.ps("yt-service-request-error"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],Eh.prototype,"onYtServiceRequestError",null);Eh=_.O([_.E({is:"ytd-video-owner-renderer",disableElementRegistration:!0})],Eh);
var gk_=_.cd()(Eh,"ytd-video-owner-renderer",function(){if(BG_===void 0){var J=document.createElement("template");_.z(J,'\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>');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);BG_=J}J=BG_;return J},{slotProps:["date"],
allowedProps:["data","subscribeKey"],mode:1});_.lv(_.Q1(function(J){var c=J.data;var m;J=_.M(_.K2(!((m=_.m7("yt-mini-app-is-theater-mode-enabled"))==null||!m),void 0,"LUeOgf"));var b=J.next().value,x=J.next().value,P;m=(P=_.BG().resolve(_.y6(DYL)))!=null?P:function(){return _.C("div",null)};
_.RN("yt-signal-action-mini-app-toggle-theatre-mode-on",function(){x(!0);_.ct("yt-mini-app-is-theater-mode-enabled",!0,2592E3)});
_.RN("yt-signal-action-mini-app-toggle-theatre-mode-off",function(){x(!1);_.ct("yt-mini-app-is-theater-mode-enabled",!1,2592E3)});
P={};J={};var p={};return _.C("mini-app-play-page-renderer",{class:_.pq("miniAppPlayPageRendererHost",(P.miniAppPlayPageRendererHostDetailsView=function(){return!b()},P))},_.C("div",{class:_.pq("miniAppPlayPageRendererGameContainer",(J.miniAppPlayPageRendererGameContainerDetailsView=function(){return!b()},J))},_.C(_.wi,{data:function(){return c().containerViewModel}},{miniAppContainerViewModel:RU8}),_.C(_.n,{cond:function(){return c().channel&&c().subscribeButton},
then:function(){return _.C("div",{class:"miniAppPlayPageRendererChannelContainer"},_.C(_.wi,{data:function(){return c().channel}},{videoOwnerRenderer:function(t){return _.C(gk_,{data:t.data})}}),_.C(_.wi,{data:function(){return c().subscribeButton}},{subscribeButtonViewModel:function(t){return _.C(_.sF,{data:t.data,
isOverlay:!1,animateWidth:!0})}}))}}),_.C(_.n,{cond:function(){return!b()&&c().description},
then:function(){return _.C("div",{class:"miniAppPlayPageRendererMiniAppDescriptionWrapper"},_.C("span",{class:"miniAppPlayPageRendererMiniAppDescription"},function(){return c().description}))}})),_.C("div",{class:_.pq("miniAppPlayPageRendererPlayNextContainer",(p.miniAppPlayPageRendererPlayNextContainerDetailsView=function(){return!b()},p))},_.C(_.wi,{data:function(){return c().sectionList}},{sectionListRenderer:m})))},"he"),"mini-app-play-page-renderer",{props:{data:_.vt}});var vN=function(){var J=_.h.apply(this,arguments)||this;J.isSearch=!1;J.isConstrainedList=!1;J.hasChipsBar=!1;J.inReplyPanel=!1;J.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"}};J.monitorScroll=!0;J.SCROLL_ANIMATION_DURATION_MS=300;J.nextContinuation={continuationType:"sectionListContinuation"};return J};
_.D(vN,_.h);_.V=vN.prototype;
_.V.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(J){switch(J.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:_.w("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.w("kevlar_low_priority_continuation")},scrollUpButtonData:{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"},noInjection:!0}}}}};
_.V.created=function(){var J=this;this.JSC$14872_scrollAnimation=new _.X0(function(c){J.hostElement.scrollTop=c})};
_.V.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.V.getItemsPath=function(){return"data.contents"};
_.V.replacePrimaryContent=function(J){this.set("data.contents",J)};
_.V.computeHasSortFilter=function(J){return!!J&&!!J.sortFilterSubMenuRenderer};
_.V.computeShouldScrollInPanel=function(J){var c;return!!(J==null?0:(c=J.scrollPaneStyle)==null?0:c.scrollable)};
_.V.onScroll=function(){this.liveChatEngagementPanel&&!this.inReplyPanel&&_.mq(this.actionButton,"show-scroll-button",this.hostElement.scrollTop!==0)};
_.V.scrollToTop=function(){this.hostElement.scrollTop=0};
_.V.scrollToItemSection=function(J){if(J=this.getItemByIdentifier(J))J=this.getScrollPositionForItem(J),this.hostElement.scrollTop!==J&&this.JSC$14872_scrollAnimation.start(this.hostElement.scrollTop,J,this.SCROLL_ANIMATION_DURATION_MS)};
_.V.getItemByIdentifier=function(J){var c=this.contents.querySelectorAll("ytd-item-section-renderer");if(c&&c.length!==0){var m=Array.from(c).findIndex(function(b){return b.sectionIdentifier===J});
return c[m===-1?0:m]}};
_.V.getScrollPositionForItem=function(J){if(this.contents.querySelectorAll("ytd-item-section-renderer")[0]===J)return 0;J=_.Xt(J).y+this.hostElement.scrollTop-_.Xt(this.hostElement).y;return Math.min(J,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.eE.Object.defineProperties(vN.prototype,{isClipList:{configurable:!0,enumerable:!0,get:function(){var J;return((J=this.data)==null?void 0:J.targetId)==="browse-feedFEclips"}}});
vN.prototype.onScroll=vN.prototype.onScroll;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],vN.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],vN.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.lu.YtLazyListBehavior),_.R("design:type",Object)],vN.prototype,"ytLazyListBehavior",void 0);_.O([_.f(_.hA.YtNextContinuationBehavior),_.R("design:type",Object)],vN.prototype,"ytNextContinuationBehavior",void 0);
_.O([_.f(_.EmC),_.R("design:type",Object)],vN.prototype,"ytBooleanLogicBehavior",void 0);_.O([_.f(_.Sy),_.R("design:type",Object)],vN.prototype,"ytContinuationHandlerBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],vN.prototype,"data",void 0);_.O([_.U({value:2}),_.R("design:type",Number)],vN.prototype,"initialCount",void 0);_.O([_.U({value:!0}),_.R("design:type",Boolean)],vN.prototype,"autoFill",void 0);
_.O([_.U({reflectToAttribute:!0,computed:"computeHasSortFilter(data.subMenu)"}),_.R("design:type",Boolean)],vN.prototype,"hasSortFilter",void 0);_.O([_.U({reflectToAttribute:!0,computed:"toBool(data.hideBottomSeparator)"}),_.R("design:type",Boolean)],vN.prototype,"hideBottomSeparator",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeShouldScrollInPanel(data)"}),_.R("design:type",Boolean)],vN.prototype,"shouldScrollInPanel",void 0);
_.O([_.U(),_.R("design:type",Object)],vN.prototype,"isSearch",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],vN.prototype,"isConstrainedList",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",String)],vN.prototype,"responsiveSizing",void 0);_.O([_.U(),_.R("design:type",Object)],vN.prototype,"hasChipsBar",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",String)],vN.prototype,"pageSubtype",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],vN.prototype,"engagementPanel",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],vN.prototype,"liveChatEngagementPanel",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],vN.prototype,"inReplyPanel",void 0);_.O([_.Iu("#action-button"),_.R("design:type",HTMLElement)],vN.prototype,"actionButton",void 0);_.O([_.U(),_.R("design:type",Object)],vN.prototype,"scrollUpButtonData",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],vN.prototype,"engagementPanelDropdown",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],vN.prototype,"engagementPanelDialog",void 0);_.O([_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],vN.prototype,"isClipList",null);_.O([_.Iu("#contents"),_.R("design:type",HTMLElement)],vN.prototype,"monitorScrollElement",void 0);_.O([_.Iu("#contents"),_.R("design:type",HTMLElement)],vN.prototype,"contents",void 0);
_.O([_.ps("scroll"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],vN.prototype,"onScroll",null);vN=_.O([_.E({is:"ytd-section-list-renderer",disableElementRegistration:!0})],vN);
var JQ_=_.cd()(vN,"ytd-section-list-renderer",function(){if(LWZ===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);LWZ=J}J=LWZ;return J},{mode:1});var cQ$;var mSu;var bRa;var xS6;var Oh=function(){return _.h.apply(this,arguments)||this};
_.D(Oh,_.h);Oh.prototype.configureRendererStamper=function(){return{likeButtonRenderer:{id:"button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{"on-tap":"[[onLikeButtonClick]]"}}}}}};
Oh.prototype.onLikeButtonClick=function(J){J.stopPropagation();J.preventDefault()};
_.eE.Object.defineProperties(Oh.prototype,{likeButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var J;if((J=this.data)!=null&&J.button){if(!this.likeStatusEntity)return this.data.button;this.set("data.button.toggleButtonRenderer.isToggled",!(!this.data.isLike||this.likeStatusEntity.likeStatus!=="LIKE")||!(!this.data.isDislike||this.likeStatusEntity.likeStatus!=="DISLIKE"));this.set("data.likeStatus",this.likeStatusEntity.likeStatus);return Object.assign({},this.data.button,{toggleButtonRenderer:Object.assign({},
this.data.button.toggleButtonRenderer)})}}}});
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Oh.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],Oh.prototype,"ytComponentBehavior",void 0);_.O([_.f(_.fY),_.R("design:type",Object)],Oh.prototype,"ytdReduxBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],Oh.prototype,"ytRendererStamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Oh.prototype,"data",void 0);
_.O([_.U({selectorArgs:["data.likeStatusEntityKey"],selector:Yx}),_.R("design:type",Object)],Oh.prototype,"likeStatusEntity",void 0);_.O([_.q("data","likeStatusEntity"),_.R("design:type",Object),_.R("design:paramtypes",[])],Oh.prototype,"likeButtonRenderer",null);Oh=_.O([_.E({is:"ytd-slim-metadata-toggle-button-renderer",disableElementRegistration:!0})],Oh);
_.v(Oh,"ytd-slim-metadata-toggle-button-renderer",function(){if(xS6!==void 0)return xS6;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);
return xS6=J},{mode:1});var A4=function(){var J=_.h.apply(this,arguments)||this;J.minimizePipBreakages=_.w("web_pip_minimize_breakages");J.showEqualizer=_.w("web_enable_playlist_video_lockup_equalizer");J.watchColorUpdate=_.w("kevlar_watch_color_update");J.actionMap={};return J};
_.D(A4,_.h);_.V=A4.prototype;_.V.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"}}}};
_.V.computeEditableClass=function(J){return J&&J.menu?"editable":""};
_.V.computeSelected=function(J){return!(J==null||!J.selected)};
_.V.computeUseColorPalette=function(J){return!!((J==null?0:J.lightColorPalette)&&(J==null?0:J.darkColorPalette))};
_.V.computeLargerPlaylistThumbs=function(J,c){return _.w("web_enable_playlist_bigger_thumbnails")&&!c};
_.V.canReorderChanged=function(){this.touchPersistentDragHandle=this.canReorder};
_.V.onYtServiceRequestSent=function(J,c){c.endpoint&&this.isHideEnclosingAction(c.endpoint)&&!this.selected&&AHj(_.Zl(),this.data.videoId)};
_.V.isHideEnclosingAction=function(J){var c=!!this.get("feedbackEndpoint.uiActions.hideEnclosingContainer",J);J=this.get("likeEndpoint.status",J)==="INDIFFERENT";return c||J};
_.V.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.V.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.eE.Object.defineProperties(A4.prototype,{reorderIcon:{configurable:!0,enumerable:!0,get:function(){return _.w("enable_web_delhi_icons")?"equal":"yt-icons:drag_handle"}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return(this==null?0:this.largerPlaylistThumbs)?151:100}},
showActionButtons:{configurable:!0,enumerable:!0,get:function(){var J;return!!(this.withinMiniplayer&&((J=this.data)==null?0:J.actionButtons))}}});
A4.prototype.onYtServiceRequestSent=A4.prototype.onYtServiceRequestSent;A4.prototype.canReorderChanged=A4.prototype.canReorderChanged;_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],A4.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],A4.prototype,"ytActionHandlerBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],A4.prototype,"ytRendererBehavior",void 0);
_.O([_.f(_.$N),_.R("design:type",Object)],A4.prototype,"ytdLockupBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],A4.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],A4.prototype,"withinMiniplayer",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],A4.prototype,"minimizePipBreakages",void 0);_.O([_.U({computed:"computeSelected(data)",reflectToAttribute:!0}),_.R("design:type",Boolean)],A4.prototype,"selected",void 0);
_.O([_.U({computed:"computeUseColorPalette(data)",reflectToAttribute:!0}),_.R("design:type",Boolean)],A4.prototype,"useColorPalette",void 0);_.O([_.U({computed:"computeLargerPlaylistThumbs(data, withinMiniplayer)",reflectToAttribute:!0}),_.R("design:type",Boolean)],A4.prototype,"largerPlaylistThumbs",void 0);_.O([_.U(),_.R("design:type",Object)],A4.prototype,"showEqualizer",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],A4.prototype,"canReorder",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],A4.prototype,"touchPersistentDragHandle",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],A4.prototype,"handleIsHovered",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],A4.prototype,"watchColorUpdate",void 0);_.O([_.U(),_.R("design:type",String),_.R("design:paramtypes",[])],A4.prototype,"reorderIcon",null);
_.O([_.q("largerPlaylistThumbs"),_.R("design:type",Number),_.R("design:paramtypes",[])],A4.prototype,"thumbnailWidth",null);_.O([_.U({reflectToAttribute:!0}),_.q("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],A4.prototype,"showActionButtons",null);_.O([_.kr("canReorder"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],A4.prototype,"canReorderChanged",null);
_.O([_.ps("yt-service-request-sent"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,_.qd]),_.R("design:returntype")],A4.prototype,"onYtServiceRequestSent",null);A4=_.O([_.E({is:"ytd-playlist-panel-video-renderer",disableElementRegistration:!0})],A4);
_.v(A4,"ytd-playlist-panel-video-renderer",function(){if(bRa!==void 0)return bRa;var J=document.createElement("template");_.z(J,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-panel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="wc-endpoint" class="yt-simple-endpoint style-scope ytd-playlist-panel-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <div id="container" class="style-scope ytd-playlist-panel-video-renderer">\n    <div id="index-container" class="playlist-drag-handle style-scope ytd-playlist-panel-video-renderer" on-mouseenter="onHandleMouseenter" on-mouseleave="onHandleMouseleave">\n      <span id="reorder" class="style-scope ytd-playlist-panel-video-renderer">\n        <yt-icon icon="[[reorderIcon]]" class="style-scope ytd-playlist-panel-video-renderer"></yt-icon>\n      </span>\n      <span id="index" class="style-scope ytd-playlist-panel-video-renderer">[[getSimpleString(data.indexText)]]</span>\n    </div>\n    <div id="thumbnail-container" class="style-scope ytd-playlist-panel-video-renderer">\n      <ytd-thumbnail data="[[data]]" disable-now-playing="[[!showEqualizer]]" disable-tooltips="" now-playing-equalizer-only="" use-expandable-tooltip="[[useExpandableTooltip_]]" width="[[thumbnailWidth]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </ytd-thumbnail>\n    </div>\n    <div id="meta" class$="[[computeEditableClass(data)]] style-scope ytd-playlist-panel-video-renderer">\n      <yt-formatted-string id="unplayableText" disable-upgrade$="[[!data.unplayableText]]" hidden="[[!data.unplayableText]]" no-endpoints="" text="[[data.unplayableText]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </yt-formatted-string>\n      <h4 class="style-scope ytd-playlist-panel-video-renderer">\n        <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-playlist-panel-video-renderer">\n          [[getSimpleString(data.title)]]\n        </span>\n      </h4>\n      <div id="byline-container" class="style-scope ytd-playlist-panel-video-renderer">\n        <span id="byline" hidden="[[!data.shortBylineText]]" class="style-scope ytd-playlist-panel-video-renderer">\n          [[getSimpleString(data.shortBylineText)]]\n        </span>\n        <ytd-badge-supported-renderer badges="[[data.ownerBadges]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n        <ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n      </div>\n      <yt-formatted-string id="video-info" disable-upgrade$="[[!data.videoInfo]]" hidden="[[!data.videoInfo]]" no-endpoints="" text="[[data.videoInfo]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </yt-formatted-string>\n      <div id="action-buttons" hidden="[[!showActionButtons]]" class="style-scope ytd-playlist-panel-video-renderer"></div>\n    </div>\n  </div>\n</a>\n<div id="menu" class="style-scope ytd-playlist-panel-video-renderer"></div>\n');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return bRa=J},{mode:2});var RG=function(){return _.h.apply(this,arguments)||this};
_.D(RG,_.h);RG.prototype.configureRendererStamper=function(){return{data:{id:"content",mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",noInjection:!0},messageRenderer:{component:"ytd-message-renderer",noInjection:!0}}}}};
_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],RG.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],RG.prototype,"data",void 0);RG=_.O([_.E({is:"ytd-playlist-panel-supported-items",disableElementRegistration:!0})],RG);
_.v(RG,"ytd-playlist-panel-supported-items",function(){if(mSu!==void 0)return mSu;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return mSu=
J},{mode:1});bk8=!0;Tpz("\\P{N}");var nwT;var VNB=_.CX("END_OF_PLAYLIST",void 0,"End of playlist"),P5C=_.CX("PLAYLIST_MIX_DETAILED_LONG_BYLINE",void 0,"Mixes are playlists YouTube makes for you"),oG=function(){var J=_.h.apply(this,arguments)||this;J.minimizePipBreakages=_.w("web_pip_minimize_breakages");J.updatedCoursePanel=_.w("move_three_dot_menu_to_playlist_panel_header_for_courses");J.hideHeaderText=!1;J.useColorPalette=!1;J.collapsed=!1;J.collapsedPreServerOverride="not_tracked";J.isHovered=!1;J.modernPanels=_.w("kevlar_watch_modern_panels");
J.expandLabel=_.CX("MINIPLAYER_EXPAND_LABEL");J.collapseLabel=_.CX("MINIPLAYER_COLLAPSE_LABEL");J.isFloating=!1;J.metaPanel=!1;J.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeChange"};J.currentIndex=void 0;return J};
_.D(oG,_.h);_.V=oG.prototype;
_.V.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"}}}};
_.V.created=function(){this.scrollThrottle=new _.FU(this.onThrottledScroll,1E3,this)};
_.V.onMouseEnter=function(){this.isHovered=!0};
_.V.onMouseLeave=function(){this.isHovered=!1};
_.V.computeOverflowMenuData=function(J){return J&&J.menu?J.menu:null};
_.V.computeCollapsible=function(J){return!J};
_.V.computeHasPlaylistButtons=function(J){return!(!J||!J.playlistButtons)};
_.V.computeHasSeparateSaveButton=function(J){return!(!J||!J.saveButton)};
_.V.computeHasToolbarButton=function(J,c){return!(!J||!(c||J.saveButton||J.menu))};
_.V.computePlaylistType=function(J){if(J&&J.playlistId)return J.playlistId.substring(0,4)};
_.V.computeCanReorder=function(J){return J?J.playlistId&&J.playlistId.startsWith("TLPQ")?!0:!!J.isEditable&&!J.isInfinite:!1};
_.V.attached=function(){var J=this;try{_.BG().resolve(_.zn).setPlaylistComponent(this.hostElement)}catch(c){if(_.w("kevlar_park_on_playlist_token_killswitch"))throw c;_.f$().parkOrScheduleJob(function(){_.BG().resolve(_.zn).setPlaylistComponent(J.hostElement)},2,"ci")}_.gK(this.hostElement);
this.handleDarkModeChange(document.documentElement.hasAttribute("dark"))};
_.V.detached=function(){_.JS(this.hostElement)};
_.V.computeTrailingIcon=function(J,c,m){return m?c?"yt-icons:collapse":"yt-icons:close":c?"yt-icons:expand":_.w("kevlar_playlist_use_x_close_button")?"yt-icons:close":"yt-icons:collapse"};
_.V.computeIndexMessage=function(J,c){return rwR(J+1)+" / "+rwR(c)};
_.V.onRenderStamperFinished=function(){if(this.scrollForStampDom){var J=!0;this.isHovered&&(J=!1);if(this.collapsed||this.hidden)J=!1;J&&this.scrollToCurrentVideo();this.scrollForStampDom=!1;this.data&&(this.currentIndex=this.data.currentIndex)}this.canReorder&&this.setupReordering()};
_.V.collapseChanged=function(){var J=this;this.collapsed||(_.T9(this.ytTaskEmitterBehavior.getTaskManager(),function(){J.scrollToCurrentVideo()}),this.ytRendererBehavior.markDirty())};
_.V.hiddenChanged=function(){var J=this;this.hidden||_.T9(this.ytTaskEmitterBehavior.getTaskManager(),function(){J.scrollToCurrentVideo()})};
_.V.setupReordering=function(){var J=_.Bj(this.hostElement).querySelector("#items");wWQ?_.baj(this.ytReorderableBehavior,J,J,"playlist-drag-handle"):_.baj(this.ytReorderableBehavior,J,J)};
_.V.scrollToCurrentVideo=function(){var J=this;_.ft.addJob(function(){var c=_.Bj(J.hostElement).querySelector("#items");if(c){c.style.setProperty("padding-bottom","");var m=_.Bj(J.hostElement).querySelector("#items").querySelector("ytd-playlist-panel-video-renderer[selected]");if(m){c=m.parentElement||_.i_(document);var b=c||_.i_(document);var x=_.Xt(m),P=_.Xt(b),p=_.QR_(b);if(b==_.i_(document)){var t=x.x-b.scrollLeft;x=x.y-b.scrollTop}else t=x.x-P.x-p.left,x=x.y-P.y-p.top;m=OGC(m);P=b.clientHeight-
m.height;p=b.scrollLeft;var I=b.scrollTop;p+=t-(b.clientWidth-m.width)/2;b=new _.zO(p,I+(x-P/2));c.scrollLeft=b.x;c.scrollTop=b.y}}},8)};
_.V.dataChanged=function(){var J=this;_.mvQ(this.ytReorderableBehavior);this.scrollForStampDom=this.currentIndex!==this.data.currentIndex;this.hidden||_.o3(this,function(){_.rv(J.ytTaskEmitterBehavior.getTaskManager(),function(){J.ytRendererBehavior.markDirty();J.updateNowPlayingOverlay()})});
this.handleCollapsedFromData(this.data)};
_.V.onTheaterModeChanged=function(){_.w("web_watch_imax_theater_mode")&&(this.isTheaterMode?this.setCollapsed(!0):this.setCollapsed(!1))};
_.V.onFullscreenChanged=function(){_.w("web_watch_close_eps_on_fullscreen")&&(this.isFullscreen?this.setCollapsed(!0):this.setCollapsed(!1))};
_.V.updateNowPlayingOverlay=function(){_.w("web_enable_playlist_video_lockup_equalizer")&&this.activeNowPlayingRenderer&&(this.activeNowPlayingRenderer.isVideoPlaying=this.playerState===1)};
_.V.onPlaylistLockupNowPlaying=function(J,c){c&&(this.activeNowPlayingRenderer=c);this.updateNowPlayingOverlay()};
_.V.onScroll=function(){this.scrollThrottle.fire()};
_.V.onThrottledScroll=function(){var J=this;_.rv(this.ytTaskEmitterBehavior.getTaskManager(),function(){J.ytRendererBehavior.markDirty()})};
_.V.onToggleExpanded=function(J){!this.collapsible||J&&(_.Ac(J).tagName==="A"||_.AP(_.OT(J),this.hostElement,["YTD-MENU-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"]))||(this.setCollapsed(!this.collapsed),this.collapsedPreServerOverride="not_tracked")};
_.V.setCollapsed=function(J){this.collapsible&&(this.collapsed=J,_.bJ(this.hostElement,"yt-set-playlist-collapsed",[this.collapsed]))};
_.V.handleCollapsedFromData=function(J){if(J){var c=J.playlistPanelCollapseState;c==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED"||c==="PLAYLIST_PANEL_COLLAPSE_STATE_EXPANDED"?(this.collapsedPreServerOverride==="not_tracked"&&(this.collapsedPreServerOverride=this.collapsed?"collapsed":"expanded"),c=c==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED",this.collapsed!==c&&this.setCollapsed(c)):this.currentPlaylistId!==J.playlistId&&this.collapsedPreServerOverride!=="not_tracked"&&(c=this.collapsedPreServerOverride===
"collapsed",this.collapsed!==c&&this.setCollapsed(c),this.collapsedPreServerOverride="not_tracked");this.currentPlaylistId=J.playlistId}};
_.V.handleDrop=function(J){var c=J.currDragItem;J=c.data.playlistSetVideoId;var m=_.vr(c.parentNode.childNodes,c),b=void 0;m>0&&(b=c.parentNode.childNodes[m-1].data.playlistSetVideoId);c=_.Zl();if(c.responsePlaylistData&&c.responsePlaylistData.contents){var x=Fnr(J,c.responsePlaylistData);c.responsePlaylistData=(0,_.Lw.unsafeClone)(c.responsePlaylistData);Loo(c.responsePlaylistData.contents,x,m);c.queueProxy?nNZ(c.queueProxy,x,m,J,b):c.playlistProxy&&nNZ(c.playlistProxy,x,m,J,b);_.qh(c,_.Ul(c,c.response?
c.response.autoplayRenderer:void 0))}};
_.V.handleDarkModeChange=function(J){J!==this.isDarkTheme&&(this.isDarkTheme=J)};
_.V.colorPaletteChanged=function(){var J,c=((J=this.data)==null?void 0:J.contents)||[],m;J=_.M(c);for(c=J.next();!c.done;c=J.next()){c=c.value;var b=void 0;if((b=c.playlistPanelVideoRenderer)==null?0:b.selected){J=c.playlistPanelVideoRenderer;b=c=void 0;(m=this.isDarkTheme?(c=J)==null?void 0:c.darkColorPalette:(b=J)==null?void 0:b.lightColorPalette)&&_.DL(this.hostElement,m);break}}this.useColorPalette=!!m};
_.eE.Object.defineProperties(oG.prototype,{moveThreeDotMenuToTopRow:{configurable:!0,enumerable:!0,get:function(){var J,c;return!((J=this.data)==null||!J.playlistId)&&!((c=this.data)==null||!c.isCourse)&&this.updatedCoursePanel}},
nextVideoTitle:{configurable:!0,enumerable:!0,get:function(){var J=_.BG().resolve(_.y6(_.zn)),c;if(((c=this.data)==null?0:c.contents)&&(J==null?0:J.hasAutoplayData())){var m;if(((m=this.playlistLoopStateEntity)==null?void 0:m.state)==="PLAYLIST_LOOP_STATE_ONE"){if(J=this.data.currentIndex,J!==void 0){var b,x;var P=(b=this.data.contents[J])==null?void 0:(x=b.playlistPanelVideoRenderer)==null?void 0:x.title}}else{var p,t=(p=_.L(J.getAutoplayEndpoint(),_.Rz))==null?void 0:p.videoId,I,a;P=(I=this.data.contents.find(function(k){var H;
return((H=k.playlistPanelVideoRenderer)==null?void 0:H.videoId)===t}))==null?void 0:(a=I.playlistPanelVideoRenderer)==null?void 0:a.title}return P}}},
nextVideoLabel:{configurable:!0,enumerable:!0,get:function(){var J;return(J=this.data)!=null&&J.nextVideoLabel?this.nextVideoTitle?_.OG(this.data.nextVideoLabel)+":":VNB:""}},
buttonAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.collapsed?this.expandLabel:this.collapseLabel}},
mixLongByLine:{configurable:!0,enumerable:!0,get:function(){var J;if(((J=this.data)==null?0:J.playlistId)&&this.data.playlistId.startsWith("RD")&&this.data.playlistId!=="RDPN")return _.v2(P5C);var c;return(c=this.data)==null?void 0:c.longBylineText}},
playlistLoopStateEntityKey:{configurable:!0,enumerable:!0,get:function(){var J,c,m,b=(J=this.data)==null?void 0:(c=J.playlistButtons)==null?void 0:(m=c.menuRenderer)==null?void 0:m.topLevelButtons;if(b)for(J=_.M(b),c=J.next();!c.done;c=J.next())if(c=c.value,c.playlistLoopButtonRenderer)return c.playlistLoopButtonRenderer.playlistLoopStateEntityKey}},
showNextVideoHeader:{configurable:!0,enumerable:!0,get:function(){var J;return!!(this.collapsed&&((J=this.data)==null?0:J.nextVideoLabel))}}});
oG.prototype.colorPaletteChanged=oG.prototype.colorPaletteChanged;oG.prototype.onPlaylistLockupNowPlaying=oG.prototype.onPlaylistLockupNowPlaying;oG.prototype.updateNowPlayingOverlay=oG.prototype.updateNowPlayingOverlay;oG.prototype.onFullscreenChanged=oG.prototype.onFullscreenChanged;oG.prototype.onTheaterModeChanged=oG.prototype.onTheaterModeChanged;oG.prototype.dataChanged=oG.prototype.dataChanged;oG.prototype.hiddenChanged=oG.prototype.hiddenChanged;oG.prototype.collapseChanged=oG.prototype.collapseChanged;
oG.prototype.onRenderStamperFinished=oG.prototype.onRenderStamperFinished;oG.prototype.onMouseLeave=oG.prototype.onMouseLeave;oG.prototype.onMouseEnter=oG.prototype.onMouseEnter;_.O([_.f(_.rI),_.R("design:type",Object)],oG.prototype,"ironResizableBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],oG.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],oG.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.f(JR_.YtPlaylistPanelBehavior),_.R("design:type",Object)],oG.prototype,"ytPlaylistPanelBehavior",void 0);_.O([_.f(_.Qw.YtTaskEmitterBehavior),_.R("design:type",Object)],oG.prototype,"ytTaskEmitterBehavior",void 0);_.O([_.f(_.xv6),_.R("design:type",Object)],oG.prototype,"ytReorderableBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],oG.prototype,"ytComponentBehavior",void 0);_.O([_.f(_.fY),_.R("design:type",Object)],oG.prototype,"ytdReduxBehavior",void 0);
_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],oG.prototype,"actionHandlerBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],oG.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],oG.prototype,"autoplayData",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],oG.prototype,"withinMiniplayer",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],oG.prototype,"minimizePipBreakages",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],oG.prototype,"updatedCoursePanel",void 0);_.O([_.U({computed:"setMenuData_(data)"}),_.R("design:type",Object)],oG.prototype,"menuRendererData",void 0);_.O([_.U({computed:"computeOverflowMenuData(data)"}),_.R("design:type",Object)],oG.prototype,"overflowMenuDataTopRow",void 0);_.O([_.U({computed:"computeOverflowMenuData(data)"}),_.R("design:type",Object)],oG.prototype,"overflowMenuData",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],oG.prototype,"hideHeaderText",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],oG.prototype,"useColorPalette",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeCollapsible(hideHeaderText)"}),_.R("design:type",Boolean)],oG.prototype,"collapsible",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],oG.prototype,"collapsed",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],oG.prototype,"hidden",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeHasPlaylistButtons(data)"}),_.R("design:type",Boolean)],oG.prototype,"hasPlaylistButtons",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeHasSeparateSaveButton(data)"}),_.R("design:type",Boolean)],oG.prototype,"hasSeparateSaveButton",void 0);
_.O([_.U({reflectToAttribute:!0,computed:"computeHasToolbarButton(data, menuRendererData)"}),_.R("design:type",Boolean)],oG.prototype,"hasToolbar",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computePlaylistType(data)"}),_.R("design:type",String)],oG.prototype,"playlistType",void 0);_.O([_.U(),_.R("design:type",Object)],oG.prototype,"isHovered",void 0);_.O([_.U({selectorArgs:["playlistLoopStateEntityKey"],selector:_.sHe}),_.R("design:type",Object)],oG.prototype,"playlistLoopStateEntity",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],oG.prototype,"modernPanels",void 0);_.O([_.U({value:56}),_.R("design:type",Number)],oG.prototype,"scrollMargin",void 0);_.O([_.U({computed:"computeCanReorder(data)"}),_.R("design:type",Boolean)],oG.prototype,"canReorder",void 0);_.O([_.U(),_.R("design:type",Object)],oG.prototype,"expandLabel",void 0);_.O([_.U(),_.R("design:type",Object)],oG.prototype,"collapseLabel",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],oG.prototype,"isFloating",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],oG.prototype,"metaPanel",void 0);_.O([_.U({computed:"computeTrailingIcon(data, collapsed, isFloating)"}),_.R("design:type",String)],oG.prototype,"trailingIcon",void 0);_.O([_.U({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],oG.prototype,"isDarkTheme",void 0);
_.O([_.U({selector:_.z2}),_.R("design:type",Boolean)],oG.prototype,"miniplayerIsActive",void 0);_.O([_.U({selector:function(J){return J.watch.playerState}}),
_.R("design:type",Number)],oG.prototype,"playerState",void 0);_.O([_.U({selector:_.Uc}),_.R("design:type",Boolean)],oG.prototype,"isFullscreen",void 0);_.O([_.U({selector:_.qx}),_.R("design:type",Boolean)],oG.prototype,"isTheaterMode",void 0);_.O([_.U(),_.R("design:type",Object)],oG.prototype,"activeNowPlayingRenderer",void 0);_.O([_.U({reflectToAttribute:!0}),_.q("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],oG.prototype,"moveThreeDotMenuToTopRow",null);
_.O([_.q("data","autoplayData","playlistLoopStateEntity"),_.R("design:type",Object),_.R("design:paramtypes",[])],oG.prototype,"nextVideoTitle",null);_.O([_.q("data","nextVideoTitle"),_.R("design:type",String),_.R("design:paramtypes",[])],oG.prototype,"nextVideoLabel",null);_.O([_.q("collapsed"),_.R("design:type",String),_.R("design:paramtypes",[])],oG.prototype,"buttonAriaLabel",null);
_.O([_.q("data","playlistId","longBylineText"),_.R("design:type",Object),_.R("design:paramtypes",[])],oG.prototype,"mixLongByLine",null);_.O([_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],oG.prototype,"playlistLoopStateEntityKey",null);_.O([_.ps("mouseenter"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],oG.prototype,"onMouseEnter",null);
_.O([_.ps("mouseleave"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],oG.prototype,"onMouseLeave",null);_.O([_.U({reflectToAttribute:!0}),_.q("data","collapsed"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],oG.prototype,"showNextVideoHeader",null);_.O([_.ps("yt-rendererstamper-finished"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],oG.prototype,"onRenderStamperFinished",null);
_.O([_.NE("collapsed"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],oG.prototype,"collapseChanged",null);_.O([_.NE("hidden"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],oG.prototype,"hiddenChanged",null);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],oG.prototype,"dataChanged",null);
_.O([_.NE("isTheaterMode"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],oG.prototype,"onTheaterModeChanged",null);_.O([_.NE("isFullscreen"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],oG.prototype,"onFullscreenChanged",null);_.O([_.NE("playerState","miniplayerIsActive"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],oG.prototype,"updateNowPlayingOverlay",null);
_.O([_.ps("yt-playlist-lockup-now-playing-active"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,Object]),_.R("design:returntype")],oG.prototype,"onPlaylistLockupNowPlaying",null);_.O([_.NE("data","isDarkTheme"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],oG.prototype,"colorPaletteChanged",null);oG=_.O([_.E({is:"ytd-playlist-panel-renderer",disableElementRegistration:!0})],oG);
_.MNu=_.cd()(oG,"ytd-playlist-panel-renderer",function(){if(cQ$===void 0){var J=document.createElement("template");_.z(J,'\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>');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);cQ$=J}J=cQ$;return J},{mode:2,
allowedProps:"autoplayData collapsed data hidden useColorPalette hideHeaderText withinMiniplayer metaPanel".split(" ")});var p1u;var QB=function(){var J=_.h.apply(this,arguments)||this;J.modern=_.w("web_button_rework");return J};
_.D(QB,_.h);QB.prototype.computeShouldButtonBeVertical=function(J,c){return J||c};
QB.prototype.onYtServiceRequestSent=function(J,c){(J=_.L(c.endpoint,_.$R))&&(this.likeStatusEntityKey?this.ytdReduxBehavior.dispatch(_.It("likeStatusEntity",this.likeStatusEntityKey,{key:this.likeStatusEntityKey,likeStatus:J.status})):this.handleLikeEndpoint(J))};
QB.prototype.computelikeStatusEntityKey=function(J){return J==null?void 0:J.likeStatusEntityKey};
QB.prototype.handleLikeEndpoint=function(J){J.status==="LIKE"?this.JSC$14897_ytdDislikeToggleButtonRenderer.toggle(!1):J.status==="DISLIKE"?this.JSC$14897_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$14897_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$14897_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.eE.Object.defineProperties(QB.prototype,{likeButton:{configurable:!0,enumerable:!0,get:function(){var J;return Whr(this.data,!0,this.useShortsIcon?"SHORTS_LIKE":"LIKE",(J=this.likeStatusEntity)==null?void 0:J.likeStatus)}},
dislikeButton:{configurable:!0,enumerable:!0,get:function(){var J;if(this.data&&((J=this.data)==null||!J.hideDislikeButton)){var c;return Whr(this.data,!1,this.useShortsIcon?"SHORTS_DISLIKE":"DISLIKE",(c=this.likeStatusEntity)==null?void 0:c.likeStatus)}}}});
QB.prototype.onYtServiceRequestSent=QB.prototype.onYtServiceRequestSent;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],QB.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.fY),_.R("design:type",Object)],QB.prototype,"ytdReduxBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],QB.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],QB.prototype,"vertical",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",String)],QB.prototype,"textTransform",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],QB.prototype,"useShortsIcon",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],QB.prototype,"underIconLabel",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],QB.prototype,"modern",void 0);_.O([_.U({value:"left"}),_.R("design:type",String)],QB.prototype,"buttonTooltipPosition",void 0);
_.O([_.U(),_.R("design:type",Object)],QB.prototype,"overrides",void 0);_.O([_.Iu("#like-button"),_.R("design:type",Object)],QB.prototype,"JSC$14897_ytdLikeToggleButtonRenderer",void 0);_.O([_.Iu("#dislike-button"),_.R("design:type",Object)],QB.prototype,"JSC$14897_ytdDislikeToggleButtonRenderer",void 0);_.O([_.q("data","likeStatusEntity.likeStatus"),_.R("design:type",Object),_.R("design:paramtypes",[])],QB.prototype,"likeButton",null);
_.O([_.q("data","likeStatusEntity.likeStatus"),_.R("design:type",Object),_.R("design:paramtypes",[])],QB.prototype,"dislikeButton",null);_.O([_.U({computed:"computelikeStatusEntityKey(data)"}),_.R("design:type",String)],QB.prototype,"likeStatusEntityKey",void 0);_.O([_.U({selectorArgs:["likeStatusEntityKey"],selector:Yx}),_.R("design:type",Object)],QB.prototype,"likeStatusEntity",void 0);
_.O([_.ps("yt-service-request-sent"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,_.qd]),_.R("design:returntype")],QB.prototype,"onYtServiceRequestSent",null);QB=_.O([_.E({disableElementRegistration:!0,is:"ytd-like-button-renderer"})],QB);
var Nc_=_.cd()(QB,"ytd-like-button-renderer",function(){if(p1u===void 0){var J=document.createElement("template");_.z(J,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-like-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-toggle-button-renderer id="like-button" button-tooltip-position="[[buttonTooltipPosition]]" data="[[likeButton]]" is-shorts="" overrides="[[overrides]]" vertically-aligned$="[[computeShouldButtonBeVertical(vertical, underIconLabel)]]" class="style-scope ytd-like-button-renderer">\n</ytd-toggle-button-renderer>\n<template is="dom-if" if="[[dislikeButton]]" class="style-scope ytd-like-button-renderer">\n    <ytd-toggle-button-renderer id="dislike-button" button-tooltip-position="[[buttonTooltipPosition]]" data="[[dislikeButton]]" is-shorts="" overrides="[[overrides]]" vertically-aligned$="[[computeShouldButtonBeVertical(vertical, underIconLabel)]]" class="style-scope ytd-like-button-renderer">\n    </ytd-toggle-button-renderer>\n</template>\n');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);p1u=J}J=p1u;return J},{mode:1});_.tNQ={};
_.tNQ.YtConditionalRendererBehavior=[_.g.YtRendererBehavior,{_noAccessors:!0,properties:{hidden:{type:Boolean,reflectToAttribute:!0},showSpinner:{type:Boolean,reflectToAttribute:!0}},observers:["updateProperties_(data, isAttached)"],updateProperties_:function(J,c){var m=this,b,x;return _.N(function(P){switch(P.nextAddress){case 1:if(!c)return m.hidden=!0,m.showSpinner=!1,P.return();if((b=J)==null?0:(x=b.visibilityCondition)==null?0:x.mode)switch(J.visibilityCondition.mode){case "VISIBILITY_CONDITION_MODE_DISPLAY_SPINNER":return P.jumpTo(5);default:return P.jumpTo(6)}m.showSpinner=
!1;m.hidden=!0;return _.K(P,m.shouldShow_(J),4);case 4:m.hidden=!P.yieldResult;P.jumpTo(0);break;case 5:return _.K(P,m.shouldShow_(J),8);case 8:m.showSpinner=P.yieldResult;m.hidden=!1;P.jumpTo(0);break;case 6:return m.showSpinner=!1,_.K(P,m.shouldShow_(J),9);case 9:m.hidden=!P.yieldResult,_.tD(P)}})},
shouldShow_:function(J){return J&&J.supportedDatas&&J.supportedDatas.rendererVisibilityConditionData&&J.supportedDatas.rendererVisibilityConditionData.showIf?this.isVisibilityConditionSatisfied_(J.supportedDatas.rendererVisibilityConditionData.showIf):J&&J.visibilityCondition&&J.visibilityCondition.showIf?this.isVisibilityConditionSatisfied_(J.visibilityCondition.showIf):J&&J.visibilityConditionType?this.isLegacyVisibilityConditionSatisfied_(J.visibilityConditionType):Promise.resolve(!0)},
isVisibilityConditionSatisfied_:function(J){switch(J){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(J){switch(J){case "MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());default:return Promise.resolve(!1)}},
isMdxConnected_:function(){var J=_.m9(this.hostElement,"yt-get-mdx-status");return J.length==1&&J[0].connected},
isLocationPermissionGranted_:function(){var J;return _.N(function(c){return c.nextAddress==1?navigator.permissions?_.K(c,navigator.permissions.query({name:"geolocation"}),3):c.jumpTo(2):c.nextAddress!=2?(J=c.yieldResult,c.return(Promise.resolve(J.state==="granted"))):c.return(Promise.resolve(!1))})}}];var IBu=function(J,c){c=c===void 0?{}:c;return function(m){var b=document.createElement(J),x;var P=(x=b.polymerController)!=null?x:b;EGR(b,P,m,c);return b}}("yt-icon"),KJC=_.w("web_bypass_polymer_yt_icon")&&_.w("kevlar_use_wil_icons")?_.Q1(function(J){var c=J.icon;
var m=J.active;var b=J.className;var x=J.style;var P=J.dataSelected;var p=J.dataDisabled;var t=J.role;var I=J.themeOverride;var a=J.animateIcon;var k=J.ariaHidden;var H=J.ariaExpanded;var T=J.ariaLabel;var r=J.id;var W=J.iconFilter;var Y=function(){var G=c==null?void 0:c(),e=null,A=void 0;G&&(G=gF.computeIcon(G),G=kaq(G),G.length&&(e=G[1],A=G[0]));return{iconName:e,iconSetName:A}},Z=function(){return gF.getIconShapeData(Y().iconName,m==null?void 0:m(),void 0,void 0,Y().iconSetName,_.BG().resolve(_.Ml))},
d=function(){return{iconWidth:"100%",
iconHeight:"100%",iconFilter:W==null?void 0:W()}};
return _.C(_.n,{cond:a,then:function(){return _.C(IBu,{icon:c,active:m,className:b,style:x,dataSelected:P,dataDisabled:p,role:t,themeOverride:I,ariaHidden:k,ariaExpanded:H,ariaLabel:T,id:r,iconFilter:W})},
else:function(){return _.C(_.n,{cond:Z,then:function(G){return _.C(Gbq,{data:G,options:d})}})}})},"ie"):IBu;var C5L=function(J){var c=this;this.eventJobIds={};this.scrollEventsToIgnore=0;this.stopIgnoringScrollTimeoutIds=[];lnG();_.jD("ytglobal.ytUtilActivityCallback_",function(){_.bJ(J,"yt-user-activity")});
new go(function(){return c.JSC$14911_onMouseMove});
document.addEventListener("scroll",function(){return c.onScroll});
window.addEventListener("resize",function(){return c.onResize})},aBj=function(J,c,m){c in J.eventJobIds||(m=_.LZ().addLowPriorityJob(function(){_.JI();
delete J.eventJobIds[c]},m),J.eventJobIds[c]=m)};
C5L.prototype.onScroll=function(J){this.scrollEventsToIgnore>0?(this.scrollEventsToIgnore--,clearTimeout(this.stopIgnoringScrollTimeoutIds.pop())):J.target===document&&aBj(this,"scroll",200)};
C5L.prototype.onResize=function(){aBj(this,"resize",200)};
C5L.prototype.JSC$14911_onMouseMove=function(){aBj(this,"mousemove",100)};
_.eO=function(J){J.scrollEventsToIgnore+=1;J.stopIgnoringScrollTimeoutIds.push(setTimeout(function(){J.scrollEventsToIgnore--},500))};var kAL=function(J){this.element=J;this.productData={};this.chatSupportLoaded=!1;document.body.addEventListener("yt-page-data-updated",this.resetProductData)};
kAL.prototype.showFeedbackDialog=function(J,c,m,b){var x=HRL();if(!x)return!1;var P=d1t();P.productId=x;c&&(P.flow="submit",P.report={description:c});m&&(HRL()==="59"?P.callback=_.du(function(){_.zB("userFeedbackEvent",{});m()}):P.callback=_.du(m));
P.bucket=b||_.Ub("GOOGLE_FEEDBACK_BUCKET","Other");iRB(P);J=nzz(this,"GFEEDBACK",J);try{_.Zyj(P,J)}catch(p){return _.ha(p),!1}return!0};
kAL.prototype.showHelpDialog=function(J,c,m){var b=this,x=HRL();if(!x)return!1;var P={helpCenterPath:"/youtube",productData:nzz(this,"GUIDED_HELP",m)};iRB(P);var p=d1t();p.context=J||P.productData.context||"default";p.defaultHelpArticleId=c;p.enableSendFeedback=!0;(_.$y("gapi.load")||function(t,I){return I()})("client",function(){try{var t=i6$(x,P);
if(_.w("web_always_load_chat_support")&&!b.chatSupportLoaded)try{t.JSC$7986_loadChatSupport(p),b.chatSupportLoaded=!0}catch(I){}t.startHelp(p)}catch(I){_.ha(I)}})};
var HRL=function(){var J=_.Ub("GOOGLE_FEEDBACK_PRODUCT_ID");J||_.ha(Error("ai"));return J},iRB=function(J){J&&(J.locale=_.w("kevlar_help_use_locale")?_.Ub("INNERTUBE_CONTEXT_HL","en"):_.Ub("HTML_LANG","en"))},nzz=function(J,c,m){var b=J.productData;
delete b.origin;b.device=_.Hr();var x;a:{if(x=document.createElement("canvas")){var P=x.getContext("experimental-webgl",{stencil:!0});if(P){var p=P.getExtension("WEBGL_debug_renderer_info");if(p){x=P.getParameter(p.UNMASKED_RENDERER_WEBGL);break a}}if(P=x.getContext("webgl")){x=P.getParameter(P.RENDERER);break a}}x=null}b.gpu=x;b.isSDC=!!_.Ub("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT");(x=_.Ub("GOOGLE_FEEDBACK_PRODUCT_DATA"))&&_.Lw.extend(b,x);_.SA3(c,b);_.hzJ(b);(J=_.bJ(J.element,"yt-get-autonav-pause-debug-state"))&&
J.length&&(b.autonav_pause_state=J[0]);J=_.Iw();b.browser_resolution=J.width+"\u00d7"+J.height+"@"+(window.devicePixelRatio||1)+"x";m&&_.Lw.extend(b,m);return b};
kAL.prototype.resetProductData=function(){this.productData={}};var Tc8=function(J){this.feedbackManager=new kAL(J)};
Tc8.prototype.showFeedbackDialog=function(J,c,m,b){return this.feedbackManager.showFeedbackDialog(J,c,m,b)};
Tc8.prototype.showHelpDialog=function(J,c,m){return this.feedbackManager.showHelpDialog(J,c,m)};var w1j=function(){this.baseUrl="";this.aTag=document.createElement("a")},IaZ=function(J,c,m){m=m===void 0?{}:m;
m.pbj||(m.pbj=1);m=_.Svr(c,m);J.baseUrl&&m&&!_.Q6(m)[1]&&!_.es(m)&&(c=J.baseUrl,Pr(c,"/")&&(c=c.slice(0,-1)),_.xt(m,"/")&&(m=m.slice(1)),m=c+"/"+m);W0(J.aTag,H0(m||""));return J.aTag.href};
w1j.prototype.fetchData=function(J){return _.fzR(J)};
w1j.prototype.postData=function(J,c){var m={method:"POST"};if(c){for(var b=_.M(Object.keys(c)),x=b.next();!x.done;x=b.next()){x=x.value;var P=c[x];_.cB(P)&&(c[x]=JSON.stringify(P))}m.postParams=c}return _.fzR(J,m)};
_.K8a=function(J,c,m,b,x){J=IaZ(J,c,m);if(!J)throw b=Error("bi"),Object.assign(b,{params:c}),b;return _.fzR(J,x,b)};
w1j.prototype.requestDataForServiceEndpoint=function(J,c){if(_.L(J,_.IsT))return this.fetchData("/getAccountSwitcherEndpoint");c=c||{};var m=_.L(J,AW$);m?c.se=m.base64EncodedServiceEndpoint:c.sej=JSON.stringify(J);(m=_.Y3())&&_.w("enable_service_ajax_csn")&&(c.csn=m);c.theme=_.wB();_.L(J,Nnq)&&_.Ub("DELEGATION_CONTEXT")&&(c.delegation_context=JSON.stringify(_.Ub("DELEGATION_CONTEXT")));m=null;for(var b in J)if(Pr(b,"Endpoint")||Pr(b,"Command")){m=b;break}if(!m){var x=Error("ci");Object.assign(x,{params:J});
_.Z72(x,"WARNING");return new _.IN(function(p,t){t(x)})}b={name:m};
var P;(m=(P=_.L(J,_.In))==null?void 0:P.signal)&&(b.signal=m);(P=_.Aa(window.location.href))&&P.internalcountrycode&&(b.internalcountrycode=P.internalcountrycode);P="/service_ajax";_.w("debug_forward_web_query_parameters")&&(P=_.Q33(P,window.location.search));P=_.oP(P,b);J.clickTrackingParams&&_.jK(P,{itct:J.clickTrackingParams});return this.postData(P,c)};_.rQ6=new _.oE("GFEEDBACK_TOKEN");var sfZ;var LJ_;var DSu;var WJj;var ea=function(){var J=_.h.apply(this,arguments)||this;J.compact=!1;return J};
_.D(ea,_.h);ea.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
ea.prototype.computeHasIcon_=function(J){return!!J};
ea.prototype.isSignInIcon_=function(J){return J=="yt-icons:prompted_sign_in"};
_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],ea.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],ea.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.tNQ.YtConditionalRendererBehavior),_.R("design:type",Object)],ea.prototype,"ytConditionalRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],ea.prototype,"data",void 0);
_.O([_.U({computed:"computeIcon_(data.icon)"}),_.R("design:type",Object)],ea.prototype,"icon_",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeHasIcon_(icon_)"}),_.R("design:type",Boolean)],ea.prototype,"hasIcon_",void 0);_.O([_.U({reflectToAttribute:!0,computed:"isSignInIcon_(icon_)"}),_.R("design:type",Boolean)],ea.prototype,"signInIcon_",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],ea.prototype,"compact",void 0);
ea=_.O([_.uM({is:"yt-player-error-message-renderer",disableElementRegistration:!0})],ea);
_.v(ea,"yt-player-error-message-renderer",function(){if(WJj===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;DSu===void 0&&(DSu=document.createElement("template"));var b=DSu;m.call(c,b.content.cloneNode(!0),J.content.firstChild);WJj=J}J=WJj;return J},{mode:2});var ztC;var uQ$;var ja=function(){return _.h.apply(this,arguments)||this};
_.D(ja,_.h);ja.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
ja.prototype.computeIcon_=function(J){return J?"yt-icons:"+J.iconType.toLowerCase():"error_outline"};
_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],ja.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],ja.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],ja.prototype,"data",void 0);_.O([_.U({computed:"computeIcon_(data.icon)"}),_.R("design:type",Object)],ja.prototype,"icon_",void 0);ja=_.O([_.uM({is:"yt-player-kav-renderer",disableElementRegistration:!0})],ja);
_.v(ja,"yt-player-kav-renderer",function(){if(uQ$===void 0){var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);var c=J.content,m=c.insertBefore;ztC===void 0&&(ztC=document.createElement("template"));var b=ztC;m.call(c,b.content.cloneNode(!0),J.content.firstChild);uQ$=J}J=uQ$;return J},{mode:2});_.lv(_.Q1(function(J){var c=_.oN("div"),m=_.M(_.K2(0,void 0,"gCmSbf")),b=m.next().value,x=m.next().value;m=_.M(_.K2(null,void 0,"Rj9zMe"));var P=m.next().value,p=m.next().value;_.uN(function(){EwD(c.value,x,p);c.value.scrollIntoView()});
m=vwu.bind(null,J.data,b);y5("resize",function(){var t=P();if(b()===1&&t!==null){var I;(I=window.grecaptcha)==null||I.reset(t)}});
return _.C("yt-player-captcha-view-model",{class:"ytwPlayerCaptchaViewModelHost"},_.C("div",{class:"ytwPlayerCaptchaViewModelGridContainer"},_.C("span",{class:"ytwPlayerCaptchaViewModelScreenReaderOnly"},function(){var t,I;return(t=J.data().accessibility)==null?void 0:(I=t.accessibilityData)==null?void 0:I.label}),_.C(_.j8,{text:m,
className:_.pq("ytwPlayerCaptchaViewModelUserMessage","ytwPlayerCaptchaViewModelGridItem"),isOverlay:!0}),_.C("div",{el:c,class:"ytwPlayerCaptchaViewModelGridItem"})))},"je"),"yt-player-captcha-view-model",{props:{data:_.Fz}});var OfG=!1;_.fB6=_.Q1(function(J){var c=J.data;return _.C("yt-interstitial-view-model",{class:"interstitial-view-model-wiz"},_.C(_.n,{cond:function(){return c().icon},
then:function(m){return _.C("div",{class:"interstitial-view-model-wiz__interstitial-icon interstitial-view-model-wiz__flex-item"},_.C(_.RA,{data:m,alt:"",className:"interstitial-view-model-wiz__icon-image",preserveWidth:!0}))}}),_.C(_.n,{cond:function(){return c().title},
then:function(m){return _.C("div",{class:"interstitial-view-model-wiz__interstitial-title interstitial-view-model-wiz__flex-item"},_.C(_.j8,{text:m}))}}),_.C(_.n,{cond:function(){return c().description},
then:function(m){return _.C("div",{class:"interstitial-view-model-wiz__interstitial-description interstitial-view-model-wiz__flex-item"},_.C(_.j8,{text:m}))}}),_.C(_.wi,{data:function(){return c().primaryButton}},{buttonViewModel:function(m){return _.C(_.XU,{data:m.data,
className:"interstitial-view-model-wiz__flex-item"})}}),_.C(_.wi,{data:function(){return c().secondaryButton}},{buttonViewModel:function(m){return _.C(_.XU,{data:m.data,
className:"interstitial-view-model-wiz__flex-item"})}}))},"ke");
_.fB6.idomCompat=!0;var YCa=_.Q1(function(J){var c=J.data;_.og();return _.C("yt-player-interstitial-renderer",{class:"player-interstitial-renderer-wiz"},_.C("div",{class:"player-interstitial-renderer-wiz__scrim"},_.C(_.wi,{data:function(){return c().content}},{interstitialViewModel:_.fB6})))},"le");
YCa.idomCompat=!0;_.lv(YCa,"yt-player-interstitial-renderer",{props:{data:_.vt}});var F0=function(){var J=_.h.apply(this,arguments)||this;J.noBackground=!1;J.compact=!1;J.actionMap={"yt-update-player-error-message-command":"onUpdatePlayerErrorMessageCommand_"};return J};
_.D(F0,_.h);F0.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"}}}};
F0.prototype.onUpdatePlayerErrorMessageCommand_=function(J){if(_.L(J,b_2)){var c;if(J=(c=_.L(J,b_2))==null?void 0:c.newPlayerErrorMessageRenderer)this.data=J}};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],F0.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],F0.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],F0.prototype,"ytActionHandlerBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],F0.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],F0.prototype,"status",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],F0.prototype,"noBackground",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],F0.prototype,"compact",void 0);F0=_.O([_.uM({is:"yt-playability-error-supported-renderers",disableElementRegistration:!0})],F0);
var X1u=_.cd()(F0,"yt-playability-error-supported-renderers",function(){if(LJ_===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;sfZ===void 0&&(sfZ=document.createElement("template"));var b=sfZ;m.call(c,b.content.cloneNode(!0),J.content.firstChild);LJ_=J}J=LJ_;return J},{allowedProps:["compact",
"data","noBackground","status"],mode:2});var Aw2=void 0,owJ=void 0;var j8t=new mM8;var ZRC=function(J){this.store=J;this.jL8=new _.Vtu},e3T=function(J,c,m){var b,x;
if(!(x=((b=c.playabilityStatus)==null?void 0:b.status)!=="OK")){J=J.store;var P;x=c.offlineState&&((P=c.videoDetails)==null?0:P.videoId)?_.w("enable_pl_r_c_cd")?WOu(J.getState().entities,c.videoDetails.videoId):!!gUT(J.getState().entities,c.videoDetails.videoId):!1}if(x)return!0;x=gw2(c);if(x===1){if(_.w("ab_v_vid_sig")){var p,t=(p=c.videoDetails)==null?void 0:p.videoId;if(!t||!m||t!==m){var I;c=new _.w3("282054944_vid",{ehf:m,yKp:(I=c.videoDetails)==null?void 0:I.videoId});_.Xc(c)}}return!0}Xt2=
0;var a,k;I=(t=c.auxiliaryUi)==null?void 0:(a=t.messageRenderers)==null?void 0:(k=a.bkaEnforcementMessageViewModel)==null?void 0:k.displayType;if(x!==3&&(I==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"||I==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_POPUP"))return!0;I={reason:_.yq(_.CX("TRY_AGAIN_LATER",void 0,"Something went wrong. Please try again later.")),proceedButton:{buttonRenderer:_.w("ks_something_wrong_learn_more")?wVr("RELOAD_PAGE",153785):{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",
text:_.yq(_.CX("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:_.yq("282054944")};qCL(c,{playerErrorMessageRenderer:I});return!1},jY3=function(J,c){if(jTo(c)){_.pv(1,!0);
var m=(m=jTo(c))&&_.Rzm()?m:void 0;m?(qCL(c,{enforcementMessageViewModel:m}),J.jL8.increment("IN_PLAYER"),_.pv(5)):(J.jL8.increment("SKIP_DISPLAY"),_.pv(2))}},qCL=function(J,c){J.playabilityStatus=Object.assign({},J.playabilityStatus,{status:"ERROR",
errorScreen:c});J.videoDetails=void 0};
ZRC.prototype.handleResponse=function(J,c){if(J.playabilityStatus){var m,b,x,P=(c==null?void 0:(m=c.innerTubeRequest)==null?void 0:m.videoId)||(c==null?void 0:(b=c.innerTubeRequest)==null?void 0:(x=b.playerRequest)==null?void 0:x.videoId);e3T(this,J,P)&&jY3(this,J)}};
ZRC[RE]=[PH];var omu=new _.oE("ADBLOCK_DETECTION_SERVICE_TOKEN");var FW=function(J){this.khn=J};
FW.prototype.bindInnertubeChallengeFetcher=function(J){this.khn.bicf(J)};
FW.prototype.registerChallengeFetchedCallback=function(J){this.khn.bcr(J)};
FW.prototype.getLatestChallengeResponse=function(){return this.khn.blc()};var dSQ;_.lT=function(J,c,m){var b=this;this.network=J;this.options=c;this.networkStatusManager=m;this.ak=null;if(c.useBotguardEverywhere){var x=new _.xb;this.ak=x.promise;_.mo.ytAtRC&&_.at(_.ft,function(){var P,p;return _.N(function(t){if(t.nextAddress==1){if(!_.mo.ytAtRC)return t.return();P=US$(null);return _.K(t,b.wW(P),2)}p=t.yieldResult;_.mo.ytAtRC&&_.mo.ytAtRC(JSON.stringify(p));_.tD(t)})});
xjJ().then(function(P){var p,t,I,a;return _.N(function(k){if(k.nextAddress==1)return P.bindInnertubeChallengeFetcher(function(H){return b.wW(US$(H))}),_.K(k,fS3(),2);
p=k.yieldResult;t=P.getLatestChallengeResponse();I=t.challenge;if(!I)throw Error("di");a={challenge:I,om:jQ(I),vA:p,bgChallenge:new Qg};x.resolve(a);P.registerChallengeFetchedCallback(function(H){H=H.challenge;if(!H)throw Error("ei");H={challenge:H,om:jQ(H),vA:p,bgChallenge:new Qg};b.ak=Promise.resolve(H)});
_.tD(k)})})}else c.preload&&SC6(this,new Promise(function(P){_.rv(_.ft,function(){P(ht8(b))},0)}))};
dSQ=function(J){var c={preload:!0,useBotguardEverywhere:!0},m=!1;if(typeof c==="boolean")var b={preload:c};else typeof c==="undefined"?b={preload:!0}:(b=c,m=!!c.mxl);c=m?void 0:new _.On;_.lT.instance=new _.lT(J,b,c);return _.lT.instance};
_.lT.prototype.izD=function(){var J=this;return _.N(function(c){return c.nextAddress==1?_.K(c,Promise.race([J.ak,null]),2):c.return(!!c.yieldResult)})};
_.lT.prototype.zYv=function(J,c,m){var b=this,x,P,p;return _.N(function(t){b.ak===null&&SC6(b,ht8(b));x=!1;P={};p=function(){var I,a,k;return _.N(function(H){switch(H.nextAddress){case 1:return _.K(H,b.ak,2);case 2:I=H.yieldResult;P.challenge=I.challenge;if(!I.vA){"c1a"in I.om&&(P.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");H.jumpTo(3);break}a=Object.assign({},{c:I.challenge,e:J},c);_.xL(H,4);x=!0;if(_.w("attbs")&&!b.options.useBotguardEverywhere){k=_.m2u(I.vA,{qb:a});H.jumpTo(6);break}return _.K(H,
I.vA.snapshot({qb:a}),7);case 7:k=H.yieldResult;case 6:k?P.webResponse=k:P.error="ATTESTATION_ERROR_VM_NO_RESPONSE";_.EO(H,3);break;case 4:_.NM(H),P.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 3:if(J==="ENGAGEMENT_TYPE_PLAYBACK"){var T=I.om,r={};if(T.c6a){var W=Number(_.Ub("DCLKSTAT",0));r.reportingStatus=String(Number(T.c)^(isNaN(W)?0:W))}T.c6b&&(r.broadSpectrumDetectionResult=String(Number(T.c)^Number(_.Ub("CATSTAT",0))));P.adblockReporting=r}return H.return(P)}})};
return t.return(Promise.race([p(),$S2(m,function(){var I=Object.assign({},P);x&&(I.error="ATTESTATION_ERROR_VM_TIMEOUT");return I})]))})};
var US$=function(J){var c={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};J&&(c.interpreterHash=J);return c},ht8=function(J,c){c=c===void 0?0:c;
var m,b,x,P,p,t,I,a,k,H,T,r;return _.N(function(W){switch(W.nextAddress){case 1:m=US$(V3Q().jXW);if(_.w("att_fet_ks"))return _.xL(W,7),_.K(W,J.wW(m),9);_.xL(W,4);return _.K(W,GAj(J,m),6);case 6:p=W.yieldResult;x=p.uZf;P=p.fCB;b=p;_.EO(W,3);break;case 4:return _.NM(W),_.qz(Error("fi`"+c)),Ez8(J,864E5),W.return({challenge:"",om:{},vA:void 0,bgChallenge:void 0});case 9:b=W.yieldResult;if(!b)throw Error("gi");if(!b.challenge)throw Error("hi");x=b.challenge;P=jQ(x);if("c1a"in P&&(!b.bgChallenge||!b.bgChallenge.program))throw Error("ii");
_.EO(W,3);break;case 7:t=_.NM(W);_.qz(t);c++;if(c>=5)return _.qz(Error("fi`"+c)),Ez8(J,864E5),W.return({challenge:"",om:{},vA:void 0,bgChallenge:void 0});I=1E3*Math.pow(2,c-1)+Math.random()*1E3;return W.return(new Promise(function(Y){_.rv(_.ft,function(){Y(ht8(J,c))},I)}));
case 3:a=bbr(P);Ez8(J,a*1E3);k=void 0;if(!("c1a"in P&&b.bgChallenge)){W.jumpTo(10);break}H=mjG(b.bgChallenge);_.xL(W,11);return _.K(W,M3C(V3Q(),H),13);case 13:_.EO(W,12);break;case 11:return T=_.NM(W),_.qz(T),W.return({challenge:x,om:P,vA:k,bgChallenge:H});case 12:return _.xL(W,14),k=new _.DY({challenge:H,pP:{gw:"aGIf"}}),_.K(W,k.kf2,16);case 16:_.EO(W,10);break;case 14:r=_.NM(W),_.qz(r),k=void 0;case 10:return W.return({challenge:x,om:P,vA:k,bgChallenge:H})}})};
_.lT.prototype.wW=function(J){var c=this,m;return _.N(function(b){m=c.networkStatusManager;if(!m||m.isNetworkAvailable())return b.return(c.network.wW(J));_.Zu("att_pna",void 0,"attestation_challenge_fetch");return b.return(new Promise(function(x){m.listenOnce("publicytnetworkstatus-online",function(){c.network.wW(J).then(x)})}))})};
var vzC=function(J){if(!J)throw Error("gi");if(!J.challenge)throw Error("hi");var c=J.challenge,m=jQ(c);if("c1a"in m&&(!J.bgChallenge||!J.bgChallenge.program))throw Error("ii");return Object.assign({},J,{uZf:c,fCB:m})},GAj=function(J,c){var m,b,x,P,p;
return _.N(function(t){switch(t.nextAddress){case 1:m=void 0,b=0,x={};case 2:if(!(b<5)){t.jumpTo(4);break}if(!(b>0)){t.jumpTo(5);break}x.z4Y=1E3*Math.pow(2,b-1)+Math.random()*1E3;return _.K(t,new Promise(function(I){return function(a){_.rv(_.ft,function(){a(void 0)},I.z4Y)}}(x)),5);
case 5:return _.xL(t,7),_.K(t,J.wW(c),9);case 9:return P=t.yieldResult,t.return(vzC(P));case 7:m=p=_.NM(t),p instanceof Error&&_.qz(p);case 8:b++;x={z4Y:void 0};t.jumpTo(2);break;case 4:throw m;}})},SC6=function(J,c){J.ak=c},OR6=function(J){var c,m,b;
return _.N(function(x){if(x.nextAddress==1)return _.K(x,Promise.race([J.ak,null]),2);c=x.yieldResult;var P=ht8(J);J.ak=P;(m=c)==null||(b=m.vA)==null||b.dispose();_.tD(x)})},Ez8=function(J,c){var m=Date.now()+c,b=function(){var x;
return _.N(function(P){x=m-Date.now();return x<1E3?_.K(P,OR6(J),0):(_.rv(_.ft,b,Math.min(x,6E4)),P.jumpTo(0))})};
b()},$S2=function(J,c){return new Promise(function(m){_.rv(_.ft,function(){m(c())},J)})};var AQ8=function(){};
AQ8.prototype.processContext=function(J){var c=_.lT.instance;if(!c)return _.de();var m=N5R(J);return m?new hZ(c.zYv(m,Mb2(J),500).then(function(b){var x;(J==null?0:(x=J.innerTubeRequest)==null?0:x.context)||(J.innerTubeRequest.context={});x=J.innerTubeRequest.context;x.request||(x.request={});x.request.attestationResponseData=b})):_.de()};var Rt$=function(J){this.innertubeTransportService=J};
Rt$.prototype.wW=function(J){_.Zu("att_fsr",void 0,"attestation_challenge_fetch");return _.W$(this.innertubeTransportService,J,_.oc(_.mha)).then(function(c){_.Zu("att_frr",void 0,"attestation_challenge_fetch");return c})};_.oz_=function(J){this.innertubeTransportService=J};var Qf_=new _.oE("ATTESTATION_ASYNC_CONTEXT_PROCESSOR");var etZ=function(){},FJa=function(J,c,m,b,x){var P=_.Ub("YPC_MB_URL");
_.RxJ(P).then(function(){jfa(P,J,c,m,b,x)})},jfa=function(J,c,m,b,x,P){try{var p=payments.business.integration,t=payments.business.integration.Style.create().withMaterialDesignStyle(),I=p.mashupMode.popup("purchaseManagerDivId").usingDraggableDialog().usingPreferredWidth(600);
_.w("enable_window_constrained_buy_flow_dialog")&&(I=I.usingPopupStyle("windowConstrained"));P&&(I=I.usingCloseCallback(P));var a=m?m:_.Ub("YPC_GB_LANGUAGE"),k=_.Ub("SESSION_INDEX");p.bootstrap.fromPaymentsUrl(J);p.bootstrap.asMashupMode(I).usingGaiaIndex(k).usingLocale(a).usingStyle(t).usingDefaultActivityStatusChangeHandler().inStandaloneContext(p.standaloneContextAuthId.forGaia()).purchaseManager(c,function(H){b&&b(H)}).load(void 0,x)}catch(H){throw x&&x(H),_.Xc(H),H;
}};var lBL=new _.oE("PURCHASE_MANAGER_TOKEN");var yQ_=function(){var J=this;this.videos=[];this.recommendedVideos=[];this.showRefreshPill=this.continuationsPresent=!1;this.clientHeight=window.innerHeight;this.TEST_ONLY={getVideos:function(){return J.videos},
getContinuationsPresent:function(){return J.continuationsPresent},
setVideos:function(c){J.videos=c},
getRecommendedVideos:function(){return J.recommendedVideos},
setRecommendedVideos:function(c){J.recommendedVideos=c}}};
yQ_.prototype.addVideos=function(J){J&&(this.videos=J.filter(function(c){return!!_.IDe(c)}).map(function(c){var m=_.IDe(c);
a:{var b;if(c.playlistVideoRenderer&&((b=c.playlistVideoRenderer)==null?0:b.voteSortTiebreaker))var x=c.playlistVideoRenderer.voteSortTiebreaker;else{if(_.L(c,yg)){var P;if(b=(x=_.L(c,yg))==null?void 0:(P=x.playlistItemData)==null?void 0:P.voteSortTiebreaker){x=b;break a}}x=""}}return{itemId:m,videoId:_.aD2(c),voteCount:_.kCQ(c),voteSortTiebreaker:x}}),this.continuationsPresent=!!_.L(J[J.length-1],_.cH))};
var Bc_=function(J,c){return J.videos.findIndex(function(m){return m.itemId===c})},gz_=function(J,c){return J.recommendedVideos.findIndex(function(m){return m.itemId===c})},JBQ=function(J){J={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:{simpleText:J}}}}};_.BG().resolve(_.gu).resolveCommand(J)};var cBu=function(){yQ_.apply(this,arguments)};
_.D(cBu,yQ_);
var Aw6=function(J,c,m,b){if(!J.parentElem)throw Error("ni");var x=Bc_(J,c);x===-1&&(x=gz_(J,c),x=x!==-1?x+J.videos.length:-1);if(x===-1)throw Error("oi");var P=x>=J.videos.length?J.recommendedVideos[x-J.videos.length]:J.videos[x];P.voteCount=m;P.voteSortTiebreaker=Date.now().toString();x>=J.videos.length?J.recommendedVideos.splice(x-J.videos.length,1):J.videos.splice(x,1);var p=J.videos;for(var t=0,I=p.length-1;t<=I;){var a=Math.floor((t+I)/2);if(p[a].voteCount<P.voteCount)I=a-1;else if(p[a].voteCount>P.voteCount)t=
a+1;else{a:{var k=P.voteSortTiebreaker;var H=p[a].voteSortTiebreaker;if(k.length!==H.length)k=k.length>H.length;else{for(var T=0;T<k.length;T++){var r=k.charCodeAt(T),W=H.charCodeAt(T);if(r>W){k=!0;break a}if(r<W)break}k=!1}}k?I=a-1:t=a+1}}p=t;if(p===-1)throw Error("pi");J.videos.splice(p,0,P);x!==p&&mT2(J,x,p,c,m,b)},mT2=function(J,c,m,b,x,P){var p,t=(p=J.parentElem)==null?void 0:p.children,I=Math.min(c,m),a=Math.max(c,m);
if(t)for(p=I;p<=a;p++)t[p].style.viewTransitionName="item-"+String(p);document.startViewTransition(function(){if(J.parentElem){var k=J.parentElem.children;if(!(!k||c<0||c>=k.length||m<0||m>=k.length)){var H=k[c];if(H){H.remove();J.showRefreshPill=m>=J.videos.length-1&&J.continuationsPresent;if(!J.showRefreshPill){k=k[m]||null;var T;(T=J.parentElem)==null||T.insertBefore(H,k)}_.cA(J.parentElem,"yt-update-video-data-voting-animation",{toIdx:m,itemId:b,newVoteCount:x,voteStatus:P,hideItem:J.showRefreshPill})}}}}).finished.then(function(){if(t)for(var k=
I;k<=a;k++)t[k].style.viewTransitionName="";
if(J.showRefreshPill)JBQ(_.CX("VOTING_ANIMATION_CONTINUATION_TOAST_MESSAGE"));else{var H;if(H=k=(H=J.parentElem)==null?void 0:H.children[m])H=k.getBoundingClientRect(),k=H.bottom,H=!(H.top>=0&&k<=J.clientHeight);H&&(H=_.an(c>m?"VOTING_ANIMATION_UP_TOAST_MESSAGE":"VOTING_ANIMATION_DOWN_TOAST_MESSAGE",Math.abs(c-m)),JBQ(H))}})};var V06=function(J,c){var m=this;J?this.innertubeTransportServicePromise=Promise.resolve(J):c&&(this.innertubeTransportServicePromise=c(),this.innertubeTransportServicePromise.catch(function(){}));
this.reportMiniAppValueRateLimiter=new Sa(3E3,function(b){return bm$(m,b)},0);
this.validateMiniAppVideoIdRateLimiter=new Sa(3E3,function(b){return xTL(m,b)},1)},GJu=function(J,c){J.JSC$15023_miniAppId=c;
J.reportMiniAppValueRateLimiter=new Sa(3E3,function(m){return bm$(J,m)},0);
J.validateMiniAppVideoIdRateLimiter=new Sa(3E3,function(m){return xTL(J,m)},1)},vka=function(J,c){var m;
return _.N(function(b){if(b.nextAddress==1)return _.K(b,J.reportMiniAppValueRateLimiter.call(c),2);m=b.yieldResult;return b.return([m,c])})},bm$=function(J,c){var m,b,x,P,p,t,I;
return _.N(function(a){switch(a.nextAddress){case 1:return _.K(a,J.innertubeTransportServicePromise,2);case 2:return m=a.yieldResult,b=_.oc(NF6),x=Date.now(),P={externalPostId:J.JSC$15023_miniAppId,userStatValue:{statKey:"high_score",timestamp:{seconds:""+Math.floor(x/1E3),nanos:Math.round(x%1E3*1E6)},intValue:""+c}},_.xL(a,3),_.K(a,_.W$(m,P,b),5);case 5:p=a.yieldResult;_.EO(a,4);break;case 3:throw t=_.NM(a),t;case 4:if(p){if("error"in p&&p.error)throw p.error;if(p.errorMetadata)throw Error("qi`"+
p.errorMetadata.status);if(I=p.userStatResult)return a.return(I);throw Error("ri");}throw Error("si");}})},A1_=function(J){var c,m,b,x,P;
_.N(function(p){switch(p.nextAddress){case 1:return _.K(p,J.innertubeTransportServicePromise,2);case 2:return c=p.yieldResult,m=_.oc(NF6),b={externalPostId:J.JSC$15023_miniAppId,userSettingsUpdate:{isAllowNetworkAcked:!0}},_.xL(p,3),_.K(p,_.W$(c,b,m),5);case 5:x=p.yieldResult;_.EO(p,4);break;case 3:throw P=_.NM(p),P;case 4:if(x==null)throw Error("si");if("error"in x&&x.error)throw x.error;if(x.errorMetadata)throw Error("qi`"+x.errorMetadata.status);_.tD(p)}})};
V06.prototype.flush=function(){var J=this;return _.N(function(c){return c.nextAddress==1?_.K(c,J.reportMiniAppValueRateLimiter.flush(),2):_.K(c,J.validateMiniAppVideoIdRateLimiter.flush(),0)})};
var OTz=function(J,c){return _.N(function(m){return m.nextAddress==1?_.K(m,J.validateMiniAppVideoIdRateLimiter.call(c),2):m.return(m.yieldResult)})},xTL=function(J,c){var m,b,x,P,p,t;
return _.N(function(I){switch(I.nextAddress){case 1:return _.K(I,J.innertubeTransportServicePromise,2);case 2:return m=I.yieldResult,b=_.oc(cg$),x={videoId:c},_.xL(I,3),_.K(I,_.W$(m,x,b),5);case 5:P=I.yieldResult;_.EO(I,4);break;case 3:throw p=_.NM(I),p;case 4:if(P){if("error"in P&&P.error)throw P.error;if(P.errorMetadata)throw Error("qi`"+P.errorMetadata.status);if(t=P.playabilityStatus)return I.return(t.status);throw Error("ti");}throw Error("si");}})};
V06[RE]=[_.y6(_.zh),_.y6(UG2)];var Pm6=function(){this.clientData=new Map};
Pm6.prototype.getData=function(J){return this.clientData.get(J)};var M0_=function(J){this.store=J};
M0_.prototype.handleResponse=function(J){(J=_.L(J.frameworkUpdates,vP))&&_.Ic(J,this.store)};
M0_[RE]=[_.f9];var p5a=new _.oE("ENTITIES_RESPONSE_PROCESSOR_TOKEN");var Nh_={account_advanced:[[0,1,155]],account_box:[[0,1,24],[1,1,24]],account_notifications:[[0,1,155]],account_playback:[[0,1,155]],account_privacy:[[0,1,155]],account_settings:[[0,1,155]],account_sharing:[[0,1,155]],admin_panel_settings:[[1,1,24]],ameba:[[0,1,60]],"arrow-back":[[1,1,24,!0]],"arrow-forward":[[1,1,24,!0]],arrow_drop_down:[[1,1,24]],arrow_drop_up:[[1,1,24]],artwork:[[0,1,140]],bebo:[[0,1,60]],blogger:[[0,1,60]],chrome_icon:[[0,1,192]],collections:[[0,1,24]],countdown_to_close:[[0,
1,100]],countdown_to_close_digit:[[0,1,100]],creation_post:[[0,1,24],[1,1,24]],creator_studio_red_logo:[[0,2,24]],cyworld:[[0,1,60]],dark_theme:[[0,1,24],[1,1,24]],digg:[[0,1,60]],email:[[0,1,60]],embed:[[0,1,60]],emoji_activities:[[0,1,24]],emoji_food:[[0,1,24]],emoji_nature:[[0,1,24]],emoji_symbols:[[0,1,24]],emoji_travel:[[0,1,24]],empty_search:[[0,1,230]],equalizer:[[0,1,24]],face_filled_happy:[[0,1,36]],face_filled_meh:[[0,1,36]],face_filled_sad:[[0,1,36]],face_filled_unhappy:[[0,1,36]],face_filled_very_happy:[[0,
1,36]],face_outlined_happy:[[1,1,36]],face_outlined_meh:[[1,1,36]],face_outlined_sad:[[1,1,36]],face_outlined_unhappy:[[1,1,36]],face_outlined_very_happy:[[1,1,36]],facebook:[[0,1,60]],fotka:[[0,1,60]],g_translate:[[1,1,24]],game_console_dpad:[[0,1,24]],game_console_face_buttons:[[0,1,24]],goo:[[0,1,60]],google:[[0,1,24]],hashtag_landing_page_empty:[[0,1,200]],hashtag_landing_page_empty_dark_mode:[[0,1,200]],hashtag_landing_page_error:[[0,1,300]],hashtag_landing_page_error_dark_mode:[[0,1,300]],hi5:[[0,
1,60]],kakao:[[0,1,60]],"keyboard-arrow-down":[[1,1,24]],"keyboard-arrow-up":[[1,1,24]],language:[[0,1,24],[1,1,24]],library_remove:[[1,1,24]],linkedin:[[0,1,60]],livejournal:[[0,1,60]],member:[[1,2,16]],meneame:[[0,1,60]],mixi:[[0,1,60]],moderator:[[1,1,16]],money_fill:[[0,3,24]],music:[[1,1,24]],myspace:[[0,1,60]],naver:[[0,1,60]],odnoklassniki:[[0,1,60]],offline_download:[[0,1,24]],offline_downloading_eighty:[[0,1,24]],offline_downloading_forty:[[0,1,24]],offline_downloading_sixty:[[0,1,24]],offline_downloading_spinner:[[0,
1,24]],offline_downloading_twenty:[[0,1,24]],offline_downloading_zero:[[0,1,24]],offline_no_content:[[0,1,192]],offline_pause:[[1,1,24]],offline_pin:[[0,1,24]],open_in_panel:[[0,1,24]],owner:[[1,1,16]],pinterest:[[0,1,60]],"play-arrow":[[0,1,24]],play_disabled:[[0,1,24]],premium:[[0,1,14]],premium_standalone:[[0,2,24]],premium_standalone_cairo:[[0,1,24]],"radio-button-unchecked":[[1,1,24]],rakuten:[[0,1,60]],reddit:[[0,2,192]],refresh:[[1,1,24]],schedule_fanzone:[[0,1,100]],screen_light:[[1,1,24]],
search_prominent:[[1,1,24]],"shorts-comment":[[0,2,32]],"shorts-dislike":[[0,2,32]],"shorts-like":[[0,2,32]],"shorts-pause":[[0,1,24]],"shorts-share":[[0,2,32]],skyblog:[[0,1,60]],skype:[[0,1,60]],sms:[[0,1,24]],sort:[[0,1,24]],spark:[[0,1,24],[1,1,24]],spark_search:[[0,1,24]],stumbleupon:[[0,1,60]],subdirectory_arrow_right:[[1,1,24]],tuenti:[[0,1,60]],tumblr:[[0,1,60]],twitter:[[0,3,192]],unplugged_logo:[[0,2,24]],verified:[[1,2,16]],vertical_align_top:[[1,1,24]],video_call:[[0,1,24]],view_module:[[0,
1,24],[1,1,24]],vkontakte:[[0,1,60]],"volume-off":[[0,1,24]],"volume-up":[[0,1,24]],watermark:[[0,1,110]],waveform:[[1,1,24]],web_system_activity_dialog:[[0,1,60]],weibo:[[0,1,60]],whatsapp:[[0,1,60]],wykop:[[0,1,60]],yahoo:[[0,1,60]],yahoo_japan:[[0,1,192]],youtube_community_post:[[0,1,60]],youtube_community_repost:[[0,1,60]],youtube_kids_round:[[0,2,24]],youtube_logo:[[0,1,24]],youtube_music:[[0,2,24]],youtube_round:[[0,2,24]],youtube_shorts_brand_24:[[0,2,24]],youtube_shorts_fill_no_triangle_red_16:[[0,
1,16]],"yt-logo-red-updated":[[0,3,24]],"yt-logo-updated":[[0,3,24]]};var t0j=new _.oE("ICON_SET_TOKEN"),I6B=new _.oE("ICON_URL_PROVIDER_TOKEN"),K36=new _.oE("PREFETCH_ICONS_TOKEN"),Cmu=new _.oE("ICON_MAP_FN_TOKEN");var yB={},a6a=(yB.ACCESS_TIME="clock",yB.ACCOUNT_BOX="person_account",yB.ACCOUNT_BOX_CAIRO="person_account_cairo",yB.ACCOUNT_CIRCLE="person_circle",yB.ACCOUNT_CIRCLE_CAIRO="person_circle_cairo",yB.ACCOUNT_LINKED="account_link_success",yB.ACCOUNT_UNLINKED="account_link",yB.ADD_FRIEND="people",yB.ADD_MODERATOR="shield_add",yB.ADD_TO_LIBRARY=gJ("add"),yB.ADD_TO_PLAYLIST="add",yB.ADD_TO_QUEUE_TAIL="list_queue",yB.ADD_TO_REMOTE_QUEUE="list_music",yB.ADD_TO_WATCH_LATER="clock",yB.ADD_VIDEO_LINK="film_strip_add",
yB.ALERT_WARN_RED="alert_triangle",yB.ARROW_BACK="arrow_left",yB.ARROW_DIAGONAL_UP_RIGHT_FILLED="arrow_diagonal_up_right",yB.ARROW_DROP_DOWN="chevron_down",yB.ARROW_DROP_UP="chevron_up",yB.ARROW_FORWARD="arrow_right",yB.AUDIOTRACK="audio",yB.AUTO_AWESOME="sparkle",yB.AVATAR_ANONYMOUS="person_circle",yB.AVATAR_LOGGED_OUT="person_circle",yB.BACK="arrow_left",yB.BAR_CHART="bar_graph",yB.BLOCK="slash_circle_left",yB.BLOCK_USER="slash_circle_left",yB.BOOKMARK_BORDER="bookmark",yB.BREAKING_NEWS_ALT_1="article_alert",
yB.BROADCAST_CAIRO="podcast_cairo",yB.BUG_REPORT="bug",yB.CAMERA_ALT="camera",yB.CAMPAIGN="megaphone",yB.CANCEL="x_circle",yB.CAPTIONS="closed_caption",yB.CAST_OUTLINE="chromecast",yB.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",yB.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_on",yB.CHAT="message_bubble_left",yB.CHAT_BUBBLE="message_bubble_empty",yB.CHAT_SPARK="spark_message_bubble_left",yB.CHECK_BOX_OUTLINE_BLANK="box_empty",yB.CHECK_CIRCLE_OUTLINE="check_circle",yB.CHECK_CIRCLE_THICK="check_circle",yB.CLARIFY=
"article_clarify",yB.CLOSED_CAPTION_SELECTED="closed_caption",yB.CLOSE="x_mark",yB.CLOUD_UPLOAD="cloud_arrow_up",yB.COLLAPSE="chevron_up",yB.COLLAPSE_CAIRO="chevron_up_cairo",yB.COLLECTION="layers",yB.COLOR_LENS="palette",yB.COMMENT="message_bubble_right",yB.CONSENT_SHIELD="person_shield",yB.CONTENT_CUT="scissors",yB.CONTENT_CUT_CAIRO="scissors_cairo",yB.COURSE=_.w("web_enable_course_icon_update")?"creator_academy":"lightbulb",yB.COURSE_CAIRO=_.w("web_enable_course_icon_update")?"creator_academy_cairo":
"lightbulb_cairo",yB.CREATION_LIVE="radar_live",yB.CREATION_POST="box_pencil",yB.CREATION_UPLOAD="my_videos",yB.CREATION_UPLOAD_RED="upload",yB.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_off",yB.CREATOR_STUDIO="youtube_studio",yB.DASHBOARD="grid_asymmetrical",yB.DELETE="trash_can",yB.DELETE_SWEEP="trash_can",yB.DESKTOP="laptop",yB.DISLIKE="thumb_down",yB.DISLIKE_SELECTED="thumb_down",yB.DISMISSAL="x_mark",yB.DISMISS_QUEUE="list_remove",yB.DONE_ALL="check_double",yB.DOWN_ARROW="arrow_down",yB.DO_NOT_DISTURB=
"slash_circle_left",yB.DRAFT="paper_corner_folded",yB.DRAG_HANDLE="bars_2",yB.EDIT="pencil",yB.EMOJI="face_very_happy",yB.EMOJI_FLAGS="flag",yB.EMOJI_OBJECTS="lightbulb",yB.EMOJI_PEOPLE="face_very_happy",yB.EMOJI_RECENT="clock",yB.EMPTY_HEART="heart",yB.EMPTY_LIKE="thumb_up",yB.ERROR_BLACK="alert_circle",yB.ERROR_OUTLINE="alert_circle",yB.EXIT_APP="arrow_in",yB.EXIT_TO_APP="arrow_in",yB.EXPAND="chevron_down",yB.EXPAND_ALL="chevron_expand",yB.EXPAND_CAIRO="chevron_down_cairo",yB.EXPAND_LESS="chevron_up",
yB.EXPAND_MORE="chevron_down",yB.EXPLORE="compass",yB.EXPLORE_DESTINATION="compass",yB.EXTERNAL_LINK="open_new",yB.FAB_UPLOAD="upload",yB.FACE_HAPPY_OUTLINE="face_happy",yB.FACT_CHECK="article_check",yB.FASHION_LOGO="fashion",yB.FASHION_LOGO_CAIRO="fashion_cairo",yB.FAVORITE="heart",yB.FEEDBACK="message_bubble_alert",yB.FEEDBACK_CAIRO="message_bubble_alert_cairo",yB.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",yB.FILL_ARROW_SOLID_UP_16="arrow_solid_up",yB.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",
yB.FILTER="menu_filter",yB.FIRST_PAGE="chevron_first",yB.FLAG="flag",yB.FULL_HEART="heart",yB.GAME_CONSOLE_DPAD="game_console_dpad",yB.GAME_CONSOLE_FACE_BUTTONS="game_console_face_buttons",yB.GAMING_LOGO="gaming",yB.GAMING_LOGO_CAIRO="gaming_cairo",yB.GO_TO_PAGE="arrow_right",yB.GROUPS="people_group",yB.HAPPY="face_happy",yB.HEALTH_AND_SAFETY="shield_plus",yB.HELP="question_circle",yB.HELP_CAIRO="question_circle_cairo",yB.HELP_OUTLINE="question_circle",yB.HIDE="slash_circle_left",yB.IMAGE="image",
yB.INFINITY_ICON="infinity",yB.INFO="info_circle",yB.INFO_OUTLINE="info_circle",yB.INSERT_CHART_OUTLINED="bar_graph_box_vertical",yB.INSERT_PHOTO="image",yB.KEEP="pin",yB.KEEP_OFF="pin_off",yB.KEYBOARD="keyboard",yB.KEYBOARD_ARROW_DOWN="chevron_down",yB.KEYBOARD_ARROW_UP="chevron_up",yB.KIDS_BLOCK="slash_circle_left",yB.LANGUAGE="globe",yB.LAST_PAGE="chevron_last",yB.LAUNCH="open_new",yB.LEARNING="lightbulb",yB.LEARNING_CAIRO="lightbulb_cairo",yB.LIBRARY_ADD=gJ("library_add"),yB.LIBRARY_OUTLINE="library",
yB.LIBRARY_REMOVE=gJ(),yB.LIGHTBULB_SPARK_OUTLINE="lightbulb_spark",yB.LIKES_PLAYLIST="thumb_up",yB.LIKES_PLAYLIST_CAIRO="thumb_up_cairo",yB.LIKE="thumb_up",yB.LIKE_SELECTED="thumb_up",yB.LIVE="radar_live",yB.LIVE_CAIRO="radar_live_cairo",yB.LIVE_UNLISTED="link",yB.LOCATION_ON="location_point",yB.LOCATION_PIN="location_point",yB.LOOP="arrow_repeat",yB.LOOP_ACTIVE="arrow_repeat",yB.LOOP_ONE="arrow_repeat_1",yB.LOOP_ONE_ACTIVE="arrow_repeat_1",yB.MEH="face_meh",yB.MEMBERS_ONLY_MODE_OFF="message_bubble_left",
yB.MESSAGE="message_bubble_left",yB.MICROPHONE_ON="mic",yB.MIX="youtube_mix",yB.MONETIZATION_ON="dollar_sign_circle",yB.MONEY_FILL="dollar_sign_container",yB.MONEY_FILL_JPY="yen_sign_container",yB.MONEY_HEART="dollar_sign_heart",yB.MORE_HORIZ="overflow_horizontal",yB.MORE_VERT="overflow_vertical",yB.MUSIC="audio",yB.MUSIC_CAIRO="audio_cairo",yB.MUSIC_NOTE_SYMBOL="music",yB.MUSIC_SHUFFLE="arrow_shuffle",yB.MY_CHANNEL="person_circle",yB.MY_LOCATION="location_point",yB.NEWS_STORY="news",yB.NEXT="chevron_right",
yB.NOTIFICATIONS="bell",yB.NOTIFICATIONS_ACTIVE="bell_on",yB.NOTIFICATIONS_CAIRO="bell_cairo",yB.NOTIFICATIONS_DONE_CHECKMARK="check",yB.NOTIFICATIONS_INBOX="bell",yB.NOTIFICATIONS_NONE="bell",yB.NOTIFICATIONS_OFF="bell_off",yB.NOT_INTERESTED="slash_circle_left",yB.OFFICIAL_ARTIST_BADGE="audio",yB.OFFLINE_CLOUD="cloud_off",yB.OFFLINE_DOWNLOAD="download",yB.OFFLINE_DOWNLOAD_CAIRO="download_cairo",yB.OFFLINE_PAUSE="pause",yB.OPEN_IN_NEW="open_new",yB.OUTLINE_ADJUST="adjust",yB.OUTLINE_ARROW_SOLID_DOWN_16=
"arrow_solid_down",yB.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",yB.OUTLINE_BAG="bag",yB.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_circle",yB.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",yB.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",yB.OUTLINE_YOUTUBE_IMPROVE_TV="youtube_improve_tv",yB.PAID="dollar_sign",yB.PAUSE_OUTLINED="pause",yB.PAYMENT="credit_card",yB.PERSON_RADAR_FILLED="person_radar",yB.PHONE_DOWNLOAD="mobile_download",yB.PLAYABLES_LOGO="tic_tac_toe",yB.PLAYABLES_LOGO_CAIRO="tic_tac_toe_cairo",
yB.PLAYLISTS="list_play_arrow",yB.PLAYLISTS_CAIRO="list_play_arrow_cairo",yB.PLAYLIST_ADD=gJ("list_add"),yB.PLAYLIST_ADD_CHECK=gJ("list_check"),yB.PLAYLIST_PLAY="list_play_arrow",yB.PLAY_ALL="play_arrow",yB.PLAY_CIRCLE="play_arrow_circle",yB.PLAY_OUTLINED="play_arrow_circle",yB.PRIVACY_INFO="shield",yB.PRIVACY_PRIVATE="lock",yB.PRIVACY_PUBLIC="earth",yB.PRIVACY_UNLISTED="link",yB.PROMOTE="megaphone",yB.PURCHASES="price_tag",yB.PURCHASE_SUPER_CHAT="super_chat",yB.PURCHASE_SUPER_STICKER="super_sticker",
yB.QUESTION_ANSWER="message_bubble_question",yB.QUEUE_PLAY_LAST="list_queue_last",yB.QUEUE_PLAY_NEXT="list_play_arrow",yB.REMIX_FILLED="youtube_shorts_remix",yB.REMOVE="bar_circle",yB.REMOVE_CIRCLE="bar_circle",yB.REMOVE_CIRCLE_OUTLINE="bar_circle",yB.REMOVE_DONE="check_double_off",yB.REMOVE_FROM_HISTORY="bar_circle",yB.REMOVE_FROM_PLAYLIST="bar_circle",yB.REMOVE_MODERATOR="shield_off",yB.REPLAY="arrow_circle",yB.REPLAY_10="skip_back_10",yB.REPORT_PROBLEM="alert_triangle",yB.SAD="face_sad",yB.SAVE_PLAYLIST=
gJ("library_add"),yB.SCHEDULE="clock",yB.SCHOOL="creator_academy",yB.SCREEN_FULLSCREEN="screen_full",yB.SEARCH_HISTORY="arrow_time",yB.SELL="price_tag",yB.SETTINGS="gear",yB.SETTINGS_CAIRO="gear_cairo",yB.SETTINGS_LIGHT="gear",yB.SETTINGS_MATERIAL="gear",yB.SHARE_ARROW="share",yB.SHIELD_WITH_AVATAR="person_shield",yB.SHOPPING_BAG="bag",yB.SHOPPING_BAG_CAIRO="bag_cairo",yB.SHOPPING_CART="cart",yB.SHORTS_COMMENT="youtube_shorts_message_bubble_right",yB.SHORTS_DISLIKE="youtube_shorts_thumb_down",yB.SHORTS_LIKE=
"youtube_shorts_thumb_up",yB.SHORTS_SHARE="youtube_shorts_share",yB.SHUFFLE="arrow_shuffle",yB.SLOW_MODE_OFF="message_bubble_left",yB.SOCIAL="people",yB.SORT="menu_sort",yB.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",yB.SPEED_1X="1x",yB.SPEED_1_POINT_2X="1_point_2x",yB.SPEED_1_POINT_5X="1_point_5x",yB.SPEED_1_POINT_8X="1_point_8x",yB.SPEED_2X="2x",yB.SPEED_POINT_2X="point_2x",yB.SPEED_POINT_8X="point_8x",yB.SPONSORSHIP_STAR=_.w("web_sponsorship_star_icon_killswitch")?"memberships":"star_circle",yB.STAFF_PICK=
"spotlight",yB.START_DVR="add",yB.STAR_BORDER="star",yB.STAR_CIRCLE_RIBBON_OUTLINE="star_circle_ribbon",yB.STICKER_EMOTICON="face_happy",yB.STOP_DVR="stop",yB.SUBSCRIBE="youtube_logo_icon",yB.SUBSCRIBE_PLUS="add_cairo",yB.SUBSCRIPTION_MANAGER="gear",yB.SUPERVISOR_ACCOUNT="people",yB.SUPER_CHAT_FOR_GOOD="hands_heart",yB.SWAP_HORIZ="arrow_swap_horizontal",yB.SWITCH_ACCOUNTS="person_account",yB.TAB_ACCOUNT="person",yB.TAB_ACTIVITY="bell",yB.TAB_BOOKMARK="bookmark",yB.TAB_EXPLORE="compass",yB.TAB_HOME=
"home",yB.TAB_HOME_CAIRO="home_cairo",yB.TAB_INBOX="mail",yB.TAB_LIKED="thumb_up",yB.TAB_MUSIC_PREMIUM="youtube_music",yB.TAB_SHORTS="youtube_shorts",yB.TAB_SHORTS_CAIRO="youtube_shorts_cairo",yB.TAB_SUBSCRIPTIONS="subscriptions",yB.TAB_SUBSCRIPTIONS_CAIRO="subscriptions_cairo",yB.TAB_TRENDING="fire",yB.TIMER="stopwatch",yB.TRAILER="youtube_originals",yB.TRENDING="fire",yB.TRENDING_CAIRO="fire_cairo",yB.TRENDING_UP="rating_up",yB.TROPHY="trophy",yB.TROPHY_CELEBRATIONS="fireworks",yB.TUNE="adjust",
yB.UNBLOCK_USER="bar_circle",yB.UNLIMITED="youtube_logo_icon",yB.UNPLUGGED_LIVE_GUIDE="radar_live",yB.UNPLUGGED_SPORTS="eye_off",yB.UPLOADS="library",yB.UP_ARROW="arrow_up",yB.VERTICAL_ALIGN_BOTTOM="download",yB.VERY_HAPPY="face_very_happy",yB.VERY_SAD="face_very_sad",yB.VIDEOGAME_ASSET="gaming",yB.VIDEOS="play_arrow_circle",yB.VIDEO_CALL="video_camera_add",yB.VIDEO_LIBRARY_WHITE="library",yB.VIDEO_YOUTUBE="youtube_logo_icon",yB.VIEW_LIST="list_view",yB.VIEW_LIST_CAIRO="list_view_cairo",yB.VISIBILITY=
"eye",yB.VISIBILITY_OFF="eye_off",yB.VOLUME_MUTE="volume_off",yB.VOLUME_UP="volume_on",yB.WALLPAPER="image",yB.WARNING="alert_triangle",yB.WATCH_HISTORY="arrow_time",yB.WATCH_HISTORY_CAIRO="arrow_time_cairo",yB.WATCH_LATER="clock",yB.WATCH_LATER_CAIRO="clock_cairo",yB.WATCH_RELATED_MIX="youtube_mix",yB.WHAT_TO_WATCH="home",yB.YOUTUBE_MUSIC_MONOCHROME="youtube_music",yB.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music_cairo",yB.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="youtube_shorts_no_triangle",yB.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16=
"youtube_shorts_no_triangle",yB.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",yB.YT_OUTLINE_MUSIC_24="music",yB);var BN={},kFa=(BN.ACCESS_TIME="clock",BN.ACCOUNT_BOX="person_square",BN.ACCOUNT_BOX_CAIRO="person_square",BN.ACCOUNT_CIRCLE="person_circle",BN.ACCOUNT_CIRCLE_CAIRO="person_circle",BN.ACCOUNT_LINKED="account_link",BN.ACCOUNT_UNLINKED="account_link",BN.ADD_CIRCLE="add_circle",BN.ADD_FRIEND="person_child",BN.ADD_TO_LIBRARY="bookmark",BN.ADD_TO_PLAYLIST="add",BN.ADD_TO_QUEUE_TAIL="queue",BN.ADD_TO_REMOTE_QUEUE="playlist_audio",BN.ADD_TO_WATCH_LATER="clock",BN.ADD_VIDEO_LINK="film_strip_add",BN.ADMIN_PANEL_SETTINGS=
"gear",BN.ALERT_WARN_RED="alert_triangle",BN.ALIGN_LEFT="text_align_left",BN.ARROWS_ALERT="arrow_split_alert",BN.ARROW_BACK="arrow_left",BN.ARROW_CIRCLE="arrow_counterclockwise",BN.ARROW_CIRCLE_PLAY="replay",BN.ARROW_CIRCLE_RIGHT="arrow_clockwise",BN.ARROW_DIAGONAL="arrow_up_left",BN.ARROW_DIAGONAL_UP_RIGHT="arrow_up_right",BN.ARROW_DROP_DOWN="triangle_down",BN.ARROW_DROP_UP="triangle_up",BN.ARROW_FORWARD="arrow_right",BN.ARROW_PAUSE="pause_history",BN.ARROW_UNDO="undo",BN.ARTICLE="text_page",BN.ARTICLE_ALERT=
"text_page_alert",BN.ARTICLE_CHECK="text_page_check",BN.ARTICLE_CLARIFY="text_page_info",BN.AUDIOTRACK="audio",BN.AUDIO_BADGE="audio_badge",BN.AUDIO_SURROUND="surround_sound",BN.AVATAR_ANONYMOUS="person_circle",BN.AVATAR_LOGGED_OUT="person_circle",BN.BACK="arrow_left",BN.BAR_CHART="chart_bar",BN.BAR_CIRCLE="minus_circle",BN.BAR_HORIZONTAL="minus",BN.BLOCK="circle_slash",BN.BLOCK_USER="circle_slash",BN.BOOKMARK_BORDER="bookmark",BN.BOX_OPEN_CHECK="quiz",BN.BOX_PENCIL="square_pencil",BN.BREAKING_NEWS_ALT_1=
"text_page_alert",BN.BROADCAST="podcast",BN.BROADCAST_CAIRO="podcast",BN.BUG_REPORT="bug",BN.CAMERA_ALT="camera",BN.CAMPAIGN="megaphone",BN.CANCEL="x_circle",BN.CAPTIONS="closed_captions",BN.CAST_ICON="chromecast",BN.CAST_OUTLINE="chromecast",BN.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",BN.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_waves",BN.CHAT="text_bubble",BN.CHAT_BUBBLE="bubble",BN.CHECK_BOX="check_square",BN.CHECK_BOX_OUTLINE_BLANK="square",BN.CHECK_CIRCLE_FILLED="check_circle",BN.CHECK_CIRCLE_OUTLINE=
"check_circle",BN.CHECK_CIRCLE_THICK="check_circle",BN.CHECK_DOUBLE="check_done",BN.CHECK_DOUBLE_OFF="check_done_slash",BN.CHEVRON_LEFT="chevron_left",BN.CHEVRON_RIGHT="chevron_right",BN.CHEVRON_RIGHT_CAIRO="chevron_right",BN.CIRCLES_OVERLAP="account_link",BN.CLAPPERBOARD_CAIRO="clapperboard",BN.CLARIFY="text_page_info",BN.CLOCK_ARROWS="clock_split",BN.CLOCK_ARROWS_ALERT="clock_split_alert",BN.CLOSED_CAPTION="closed_captions",BN.CLOSED_CAPTION_SELECTED="closed_captions",BN.CLOSE="x",BN.CLOUD_UPLOAD=
"cloud_arrow_up",BN.COLLAPSE="chevron_up",BN.COLLAPSE_CAIRO="chevron_up",BN.COLLECTION="square3d_stack",BN.COLOR_LENS="paint_palette",BN.COMMENT="text_bubble",BN.CONSENT_SHIELD="person_shield",BN.CONTENT_CUT="scissors",BN.CONTENT_CUT_CAIRO="scissors",BN.COURSE="graduation_cap",BN.COURSE_CAIRO="graduation_cap",BN.CREATION_LIVE="live",BN.CREATION_POST="square_pencil",BN.CREATION_UPLOAD="video",BN.CREATION_UPLOAD_RED="upload",BN.CREATOR_ACADEMY="graduation_cap",BN.CREATOR_STUDIO="youtube_studio",BN.DARK_THEME=
"theme",BN.DELETE="trash_can",BN.DELETE_SWEEP="trash_can",BN.DESKTOP="laptop",BN.DISLIKE="thumb_down",BN.DISLIKE_SELECTED="thumb_down",BN.DISMISSAL="x",BN.DISMISS_QUEUE="playlist_x",BN.DOGFOOD="pawprint",BN.DOLLAR_SIGN="dollar_sign_circle",BN.DOLLAR_SIGN_CIRCLE="dollar_sign_circle",BN.DOLLAR_SIGN_CONTAINER="dollar_sign_rectangle",BN.DOWN_ARROW="arrow_down",BN.DO_NOT_DISTURB="circle_slash",BN.DRAFT="document",BN.EARTH="globe",BN.EDIT="pencil",BN.EMOJI="face_very_happy",BN.EMOJI_FLAGS="flag",BN.EMOJI_OBJECTS=
"lightbulb",BN.EMOJI_PEOPLE="face_very_happy",BN.EMOJI_RECENT="clock",BN.EMPTY_HEART="heart",BN.EMPTY_LIKE="thumb_up",BN.ERROR_BLACK="alert_circle",BN.ERROR_OUTLINE="alert_circle",BN.ERROR_WHITE="alert_circle",BN.EXIT_APP="arrow_in",BN.EXIT_TO_APP="arrow_in",BN.EXPAND="chevron_down",BN.EXPAND_ALL="chevron_expand",BN.EXPAND_CAIRO="chevron_down",BN.EXPAND_LESS="chevron_up",BN.EXPAND_MORE="chevron_down",BN.EXPLORE="compass",BN.EXPLORE_DESTINATION="compass",BN.EXTERNAL_LINK="arrow_up_right",BN.EYE_OFF=
"eye_slash",BN.FAB_UPLOAD="upload",BN.FACE_HAPPY_OUTLINE="face_happy",BN.FACE_MEH="face_neutral",BN.FACT_CHECK="text_page_check",BN.FASHION_LOGO="fashion",BN.FASHION_LOGO_CAIRO="fashion",BN.FAVORITE="thumb_up",BN.FEEDBACK="alert_bubble",BN.FEEDBACK_CAIRO="alert_bubble",BN.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",BN.FILL_ARROW_SOLID_UP_16="arrow_solid_up",BN.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",BN.FLAG_CAIRO="flag",BN.FLASH_OFF="flash_slash",BN.FLASH_ON="flash",BN.FULL_HEART="heart",BN.GAMING_LOGO=
"gaming",BN.GAMING_LOGO_CAIRO="gaming",BN.GO_TO_PAGE="arrow_right",BN.GROUPS="person3",BN.HAND_SWIPE_LEFT="gesture_swipe_left",BN.HAND_SWIPE_RIGHT="gesture_swipe_right",BN.HAPPY="face_happy",BN.HEALTH_AND_SAFETY="shield_health",BN.HEART_BOX="heart_cube",BN.HELP="help_circle",BN.HELP_CAIRO="help_circle",BN.HELP_OUTLINE="help_circle",BN.HIDE="circle_slash",BN.INCOGNITO_CAIRO="incognito",BN.INFINITY_ICON="infinity",BN.INFO="info_circle",BN.INFO_OUTLINE="info_circle",BN.INSERT_CHART_OUTLINED="chart_bar_square",
BN.INSERT_PHOTO="image",BN.KEEP="pin",BN.KEEP_OFF="pin_slash",BN.KEYBOARD="keyboard",BN.KEYBOARD_ARROW_DOWN="chevron_down",BN.KEYBOARD_ARROW_UP="chevron_up",BN.KIDS_BLOCK="circle_slash",BN.LANGUAGE="globe",BN.LAUNCH="arrow_up_right",BN.LEARNING="lightbulb",BN.LEARNING_CAIRO="lightbulb",BN.LIBRARY_ADD="bookmark",BN.LIBRARY_IMAGE="image_stack",BN.LIBRARY_MUSIC="audio_square_stack",BN.LIBRARY_OUTLINE="play_square_stack",BN.LIBRARY_REMOVE="bookmark",BN.LIBRARY_SAVED="check_square_stack",BN.LIKES_PLAYLIST=
"thumb_up",BN.LIKES_PLAYLIST_CAIRO="thumb_up",BN.LIKE="thumb_up",BN.LIKE_SELECTED="thumb_up",BN.LIST_QUEUE="queue",BN.LIVE_CAIRO="live",BN.LIVE_UNLISTED="link",BN.LOCATION_ON="location_pin",BN.LOCATION_PIN="location_pin",BN.LOCATION_POINT="location_pin",BN.LOOP="repeat",BN.LOOP_ACTIVE="repeat",BN.LOOP_ONE="repeat1",BN.LOOP_ONE_ACTIVE="repeat1",BN.MEET="google_meet",BN.MEH="face_neutral",BN.MEMBERSHIPS="memberships",BN.MEMBERS_ONLY_MODE_OFF="text_bubble",BN.MENU_FILTER="filter",BN.MESSAGE="text_bubble",
BN.MESSAGE_BUBBLE_GEAR="bubble_gear",BN.MESSAGE_BUBBLE_LEFT="text_bubble",BN.MESSAGE_BUBBLE_LEFT_BOOST="bubble_sparkles",BN.MESSAGE_BUBBLE_OVERLAP="bubble_stack",BN.MESSAGE_BUBBLE_QUESTION="help_bubble",BN.MICROPHONE_ON="mic",BN.MONETIZATION_ON="dollar_sign_circle",BN.MONEY_FILL="dollar_sign_rectangle",BN.MONEY_FILL_JPY="yen_sign_rectangle",BN.MONEY_HAND="dollar_sign_circle_hand",BN.MONEY_HEART="dollar_sign_heart",BN.MOON_Z="sleep_timer",BN.MORE_HORIZ="overflow_horizontal",BN.MORE_VERT="overflow_vertical",
BN.MUSIC="audio",BN.MUSIC_CAIRO="audio",BN.MUSIC_EXPLICIT_BADGE="explicit",BN.MUSIC_NEW_RELEASE="audio_badge",BN.MUSIC_NOTE_SYMBOL="audio",BN.MUSIC_SCISSORS="audio_scissors",BN.MUSIC_SHUFFLE="shuffle",BN.MY_CHANNEL="person_circle",BN.MY_LOCATION="location_pin",BN.MY_VIDEOS="video",BN.MY_VIDEOS_CAIRO="video",BN.NEWS_CAIRO="news",BN.NEWS_STORY="news",BN.NEXT="chevron_right",BN.NOTE_ADD="bubble_pencil",BN.NOTIFICATIONS="bell",BN.NOTIFICATIONS_ACTIVE="bell_waves",BN.NOTIFICATIONS_CAIRO="bell",BN.NOTIFICATIONS_DONE_CHECKMARK=
"check",BN.NOTIFICATIONS_INBOX="bell",BN.NOTIFICATIONS_NONE="bell",BN.NOTIFICATIONS_OFF="bell_slash",BN.NOT_INTERESTED="circle_slash",BN.OFFICIAL_ARTIST_BADGE="audio",BN.OFFLINE_CLOUD="cloud_slash",BN.OFFLINE_DOWNLOAD="download",BN.OFFLINE_DOWNLOAD_CAIRO="download",BN.OFFLINE_PAUSE="pause",BN.OPEN_IN_NEW="arrow_up_right",BN.OUTLINE_ADJUST="adjust",BN.OUTLINE_ARROW_SOLID_DOWN="arrow_solid_down",BN.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",BN.OUTLINE_ARROW_SOLID_UP="arrow_solid_up",BN.OUTLINE_ARROW_SOLID_UP_16=
"arrow_solid_up",BN.OUTLINE_BAG="bag",BN.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_dashed",BN.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",BN.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",BN.OUTLINE_YOUTUBE_IMPROVE_TV="star_tv",BN.PAID="dollar_sign_circle",BN.PAUSE_OUTLINED="pause",BN.PAYMENT="credit_card",BN.PEOPLE="person_child",BN.PEOPLE_2="person2_rectangle",BN.PEOPLE_GROUP="person3",BN.PEOPLE_NOTE="bubble_asterisk",BN.PERSON_2="person2",BN.PERSON_ACCOUNT="person_square_stack",BN.PERSON_MINUS=
"person_x",BN.PERSON_MUSIC="person_audio",BN.PERSON_RADAR="person_waves",BN.PERSON_RADAR_FILLED="person_waves",BN.PERSON_SETTING="person_gear",BN.PHONE="phone",BN.PHONE_DOWNLOAD="mobile_arrow_down",BN.PICTURE_IN_PICTURE="picture_in_picture",BN.PLAYABLES_LOGO="playables",BN.PLAYABLES_LOGO_CAIRO="playables",BN.PLAYLISTS="playlist",BN.PLAYLISTS_CAIRO="playlist",BN.PLAYLIST_ADD_CHECK="bookmark",BN.PLAY_ALL="play",BN.PLAY_ARROW="play",BN.PLAY_ARROW_CIRCLE="play_circle",BN.PLAY_ARROW_HALF_CIRCLE="play_circle_half_dashed",
BN.PLAY_CIRCLE="play_circle",BN.PLAY_OUTLINED="play_circle",BN.PODCAST_ADD="podcast_add",BN.PODCAST_CHECK="podcast_check",BN.PRIVACY_INFO="shield_x",BN.PRIVACY_PRIVATE="lock",BN.PRIVACY_PUBLIC="globe",BN.PRIVACY_UNLISTED="link",BN.PROMOTE="megaphone",BN.PURCHASES="price_tag",BN.PURCHASE_SUPER_CHAT="super_chat",BN.PURCHASE_SUPER_STICKER="super_sticker",BN.QUESTION_ANSWER="help_bubble",BN.QUESTION_CIRCLE="help_circle",BN.QUEUE_PLAY_LAST="queue_last",BN.QUEUE_PLAY_NEXT="playlist",BN.QUOTATION_MARK="quote",
BN.RADAR_LIVE="live",BN.REMOVE="minus_circle",BN.REMOVE_CIRCLE="minus_circle",BN.REMOVE_CIRCLE_OUTLINE="minus_circle",BN.REMOVE_FROM_HISTORY="minus_circle",BN.REMOVE_FROM_PLAYLIST="minus_circle",BN.REPLAY="arrow_counterclockwise",BN.REPLAY_10="skip10_back",BN.REPLAY_ARROW="replay",BN.REPORT_PROBLEM="alert_triangle",BN.RSS_OFF="rss_slash",BN.SAD="face_sad",BN.SAVE_PLAYLIST="bookmark",BN.SCHEDULE="clock",BN.SCHOOL="graduation_cap",BN.SCREEN_DEFAULT="player_default",BN.SCREEN_FULLSCREEN="player_full_enter",
BN.SCREEN_LIGHT="ambient_mode",BN.SCREEN_ROTATION="rotate_portrait",BN.SCREEN_SWITCH="player_switch",BN.SEARCH_CAIRO="search",BN.SEARCH_HISTORY="history",BN.SELL="price_tag",BN.SETTINGS="gear",BN.SETTINGS_CAIRO="gear",BN.SETTINGS_LIGHT="gear",BN.SETTINGS_MATERIAL="gear",BN.SETTINGS_REMOTE="remote_waves",BN.SHARE="share",BN.SHARE_ARROW="share",BN.SHARE_CAIRO="share",BN.SHIELD="shield_x",BN.SHIELD_OFF="shield_slash",BN.SHIELD_WITH_AVATAR="person_shield",BN.SHOPPING_BAG="bag",BN.SHOPPING_BAG_CAIRO="bag",
BN.SHOPPING_CART="cart",BN.SHORTS_COMMENT="text_bubble",BN.SHORTS_DISLIKE="thumb_down",BN.SHORTS_LIKE="thumb_up",BN.SHORTS_SHARE="share",BN.SKIP_FORWARD_30="skip30_forward",BN.SLASH_CIRCLE_RIGHT="circle_slash",BN.SLOW_MODE_OFF="text_bubble",BN.SOCIAL="person_child",BN.SPARKLE="sparkles",BN.SPARK_IMAGE="image_spark",BN.SPARK_RADAR="spark_waves",BN.SPARK_VIDEO="video_spark",BN.SPEAKER_GROUP="speaker_stack",BN.SPEAKER_OFF="speaker_slash",BN.SPEED_1X="n1x",BN.SPEED_1_POINT_2X="n1point2x",BN.SPEED_1_POINT_5X=
"n1point5x",BN.SPEED_1_POINT_8X="n1point8x",BN.SPEED_2X="n2x",BN.SPONSORSHIP_STAR="memberships",BN.SPORTS="basketball",BN.SPOTLIGHT="spotlight",BN.STAFF_PICK="spotlight",BN.START_DVR="add",BN.STAR_BORDER="star",BN.STAR_HALF="star_half_filled",BN.STAR_SHOOTING="hype",BN.STICKER="sticker",BN.STICKER_EMOTICON="face_happy",BN.STOP_DVR="stop",BN.SUBSCRIBE="youtube",BN.SUBSCRIBE_PLUS="add",BN.SUBSCRIPTION_MANAGER="gear",BN.SUPERSTAR="super_star",BN.SUPERVISOR_ACCOUNT="person_child",BN.SWAP_HORIZ="arrow_swap_horizontal",
BN.SWITCH_ACCOUNTS="person_square_stack",BN.TAB_ACCOUNT="person",BN.TAB_ACTIVITY="bell",BN.TAB_BOOKMARK="bookmark",BN.TAB_EXPLORE="compass",BN.TAB_HOME="home",BN.TAB_HOME_CAIRO="home",BN.TAB_INBOX="mail",BN.TAB_LIKED="thumb_up",BN.TAB_MUSIC_PREMIUM="youtube_music",BN.TAB_SHORTS="shorts",BN.TAB_SHORTS_CAIRO="shorts",BN.TAB_SUBSCRIPTIONS="subscriptions",BN.TAB_SUBSCRIPTIONS_CAIRO="subscriptions",BN.TAB_TRENDING="trending",BN.TARGET="target",BN.TARGET_ADD="target_add",BN.TEMPLATE_ADD="template_add",
BN.TEXT="font",BN.TIMER="stopwatch",BN.TRENDING_CAIRO="trending",BN.TRENDING_UP="arrow_trend_up",BN.TROPHY_CAIRO="trophy",BN.TROPHY_CELEBRATIONS="fireworks",BN.TROPHY_STAR="star_trophy",BN.TUNE="adjust",BN.UNBLOCK_USER="minus_circle",BN.UNFAVORITE="thumb_down",BN.UNLIMITED="youtube",BN.UNPLUGGED_LIVE_GUIDE="live",BN.UNPLUGGED_SPORTS="eye_slash",BN.UPLOADS="play_square_stack",BN.UP_ARROW="arrow_up",BN.VERTICAL_ALIGN_BOTTOM="chevron_down_end",BN.VERTICAL_ALIGN_TOP="chevron_up_end",BN.VERY_HAPPY="face_very_happy",
BN.VERY_SAD="face_very_sad",BN.VIDEOS="play_circle",BN.VIDEO_CALL="video_camera_add",BN.VIDEO_LIBRARY_WHITE="play_square_stack",BN.VIDEO_QUALITY_4K="n4k",BN.VIDEO_QUALITY_8K="n8k",BN.VIDEO_YOUTUBE="youtube",BN.VIEW_LIST_CAIRO="view_list",BN.VIEW_MODULE="view_column3_row2",BN.VISIBILITY="eye",BN.VISIBILITY_OFF="eye_slash",BN.VOLUME_DOWN="volume_min",BN.VOLUME_MUTE="volume_mute",BN.VOLUME_OFF="volume_mute",BN.VOLUME_STABLE="stable_volume",BN.VOLUME_UP="volume_max",BN.WALLPAPER="image",BN.WARNING="alert_triangle",
BN.WATCH_HISTORY="history",BN.WATCH_HISTORY_CAIRO="history",BN.WATCH_LATER="clock",BN.WATCH_LATER_CAIRO="clock",BN.WATCH_RELATED_MIX="mix",BN.WHAT_TO_WATCH="home",BN.YOUTUBE_LINKED_TV="tv_mobile",BN.YOUTUBE_MUSIC_MONOCHROME="youtube_music",BN.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music",BN.YOUTUBE_SHORTS_ARROW_DOWN="arrow_down",BN.YOUTUBE_SHORTS_ARROW_UP="arrow_up",BN.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="shorts_empty",BN.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="shorts_empty",BN.YOUTUBE_SHORTS_OUTLINE_24=
"shorts",BN);var Hmj={15:[[1,3,24]],"1_point_2x":[[1,1,24]],"1_point_5x":[[1,1,24]],"1_point_8x":[[1,1,24]],"1x":[[1,1,24]],"2_point_5x":[[1,1,24]],"2d":[[1,1,24]],"2x":[[1,3,24]],"3d":[[1,1,24]],"3x":[[1,3,24]],"4d":[[1,1,24]],"4k":[[0,2,24],[1,2,24]],60:[[1,3,24]],"8k":[[0,2,24],[1,2,24]],accessibility:[[1,4,24]],account_link:[[1,8,24]],account_link_error:[[1,6,24]],account_link_some:[[0,5,24]],account_link_success:[[0,5,24]],add:[[1,8,16],[1,8,24]],add_cairo:[[0,4,16],[0,4,24],[1,4,24]],add_circle:[[1,5,24],
[1,5,36]],add_half_circle:[[1,2,24]],adjust:[[0,9,24],[1,9,18],[1,9,24]],airplane:[[0,4,24],[1,4,20],[1,4,24]],airplay:[[1,6,16],[1,6,24]],airplay_off:[[1,1,24]],album:[[0,6,24],[1,6,24]],alert_circle:[[0,9,24],[1,9,16],[1,9,24]],alert_triangle:[[0,8,12],[0,8,24],[1,8,24]],align_center:[[0,6,24],[1,6,24]],align_left:[[0,6,24],[1,6,24]],align_right:[[0,6,24],[1,6,24]],arrow_caps:[[0,2,24],[1,2,24]],arrow_circle:[[1,6,24],[1,6,48]],arrow_circle_dash:[[1,1,24]],arrow_circle_play:[[1,1,24],[1,1,36],[1,
1,48]],arrow_circle_right:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24]],arrow_diagonal:[[1,5,24]],arrow_diagonal_down_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_diagonal_up_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_down:[[0,3,24],[1,3,24]],arrow_down_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrow_flip:[[1,10,16],[1,10,18],[1,10,24]],arrow_flip_dollar_sign:[[1,2,24]],arrow_in:[[0,7,24],[1,7,24]],arrow_left:[[1,
7,24,!0]],arrow_left_cairo:[[1,2,24,!0]],arrow_merge:[[1,2,24]],arrow_out:[[0,2,24]],arrow_pause:[[1,1,24]],arrow_redo:[[1,1,24]],arrow_remix:[[1,1,24]],arrow_repeat:[[0,5,24],[1,5,24]],arrow_repeat_1:[[0,3,24],[1,3,24]],arrow_right:[[1,3,24,!0]],arrow_shuffle:[[0,5,24],[1,5,24]],arrow_skip_forward:[[0,1,24],[1,1,24]],arrow_solid_down:[[0,3,16],[0,3,24],[1,3,16],[1,3,24]],arrow_solid_up:[[0,3,16],[0,3,24],[1,3,16],[1,3,24]],arrow_split:[[0,3,24],[1,3,24]],arrow_swap_horizontal:[[0,5,24],[1,5,18],
[1,5,24]],arrow_time:[[0,8,24],[1,8,24]],arrow_time_cairo:[[0,2,24],[1,2,24]],arrow_time_forward:[[1,1,24]],arrow_undo:[[1,1,24]],arrow_up:[[0,3,24],[1,3,24]],arrow_up_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrows_alert:[[1,1,24]],article:[[1,2,24]],article_alert:[[1,2,24]],article_check:[[1,2,24]],article_clarify:[[1,2,24]],audio:[[0,9,12],[0,9,16],[0,9,24],[1,9,24]],audio_badge:[[0,3,12],[0,3,16],[0,3,24]],audio_cairo:[[0,2,24],[1,2,24]],audio_off:[[1,2,24]],audio_surround:[[0,1,24],[1,1,
24]],background:[[1,1,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,12],[0,7,18],[0,7,24],[1,7,18],[1,7,24]],bag_bookmark:[[1,2,24]],bag_cairo:[[0,2,24],[1,2,24]],bar_circle:[[1,4,24]],bar_graph:[[0,2,24],[1,2,24]],bar_graph_box_vertical:[[0,6,24],[1,6,24]],bar_horizontal:[[1,2,16],[1,2,24]],bars_2:[[1,9,16],[1,9,24]],bars_3:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bell:[[0,10,24],[1,10,24]],bell_cairo:[[0,3,24],[1,3,24]],bell_off:[[1,5,24]],bell_off_cairo:[[1,2,24]],bell_on:[[0,6,24]],bell_on_cairo:[[0,
2,24]],blur:[[1,2,24]],book:[[1,3,24]],bookmark:[[0,8,24],[1,8,24]],bookmark_cairo:[[0,2,24],[1,2,24]],box_3d:[[0,1,24],[1,1,24]],box_bar:[[0,3,24]],box_check:[[0,6,18],[0,6,24],[0,6,36],[1,6,24]],box_chevron_right:[[1,3,24]],box_dashed_triangle:[[1,3,24]],box_empty:[[1,5,24]],box_open_check:[[0,4,24],[1,4,16],[1,4,24]],box_pencil:[[1,3,16],[1,3,24]],box_placeholder_left:[[1,1,24]],box_search:[[1,1,24]],box_stack_3:[[0,1,24],[1,1,24]],boxes_2:[[1,3,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,
24]],brightness:[[0,3,24],[1,3,24]],broadcast:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24],[1,3,48]],bug:[[0,3,24],[1,3,24]],business:[[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],camera:[[0,9,24],[1,9,24]],camera_audio:[[1,5,24]],camera_effects:[[1,4,24]],camera_flip:[[1,4,24]],camera_hashtag:[[1,5,24]],camera_switch:[[0,3,24],[1,3,24]],card:[[0,3,12],[0,3,16],[0,3,24]],cart:[[0,4,24],[1,4,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],check:[[0,10,
12],[0,10,16],[0,10,24],[1,10,16],[1,10,24]],check_circle:[[0,10,18],[0,10,24],[1,10,24]],check_double:[[1,1,24]],check_double_off:[[1,1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,8,18],[1,8,24]],chevron_down_cairo:[[1,2,24]],chevron_down_circle:[[0,3,24]],chevron_expand:[[1,5,24]],chevron_first:[[1,1,24]],chevron_last:[[1,1,24]],chevron_left:[[1,9,16,!0],[1,9,18,!0],[1,9,24,!0]],chevron_left_circle:[[0,3,24]],chevron_left_ios:[[1,1,24]],chevron_left_ios_cairo:[[1,2,24]],chevron_right:[[0,
6,16,!0],[0,6,18,!0],[0,6,24,!0],[1,6,16,!0],[1,6,18,!0],[1,6,24,!0]],chevron_right_cairo:[[1,2,24]],chevron_right_circle:[[0,3,24]],chevron_right_ios:[[1,1,24]],chevron_up:[[1,8,16],[1,8,18],[1,8,24]],chevron_up_cairo:[[1,2,24]],chevron_up_circle:[[0,3,24]],chromecast:[[0,8,24],[1,8,24]],chromecast_animate_frame_1:[[1,5,24]],chromecast_animate_frame_2:[[1,5,24]],chromecast_animate_frame_3:[[1,5,24]],chromecast_cairo:[[0,2,24],[1,2,24]],chromecast_mobile:[[1,3,24],[1,3,36]],chromecast_waveform:[[1,
2,24]],circle:[[0,7,24],[1,7,24]],circle_full:[[0,2,24]],circle_half_full:[[1,1,24]],circles_6:[[0,1,24]],circles_overlap:[[0,1,24],[1,1,24]],circles_overlap_check:[[0,1,16],[0,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_cairo:[[0,2,24],[1,2,24]],clock:[[0,9,24],[1,9,16],[1,9,24]],clock_arrows:[[1,1,24]],clock_arrows_alert:[[1,1,24]],clock_cairo:[[0,2,24],[1,2,24]],clock_half_circle:[[0,1,24],[1,1,24]],closed_caption:[[0,10,24],[1,10,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,3,24]],cloud_arrow_up:[[0,
5,24],[1,5,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_off:[[1,2,24]],code:[[1,2,24]],compass:[[0,8,24],[1,8,24]],compass_cairo:[[0,1,24],[1,1,24]],controller:[[0,2,24],[1,2,24]],copy:[[1,3,24]],copyright:[[0,4,24],[1,4,24]],creator_academy:[[0,3,12],[0,3,16],[0,3,24],[1,3,24]],creator_academy_cairo:[[0,2,24],[1,2,24]],credit_card:[[1,4,24]],crop:[[1,3,16],[1,3,24]],crop_rotate:[[1,2,24]],crown:[[0,4,16],[0,4,24],[1,4,12],[1,4,16],[1,4,24]],curve_s:[[0,1,24]],dashboard_plus:[[1,
1,16],[1,1,18],[1,1,20],[1,1,24]],die_3:[[0,5,24],[1,5,24]],directions:[[1,3,24]],dogfood:[[1,1,24]],dollar_sign:[[0,7,24],[1,7,24]],dollar_sign_circle:[[0,10,16],[0,10,24],[1,10,16],[1,10,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_plus:[[1,1,24]],dollar_sign_container:[[1,7,24]],dollar_sign_heart:[[0,21,12],[0,21,24],[1,21,16],[1,21,24]],dollar_sign_off:[[1,3,24]],download:[[0,10,24],[1,10,16],[1,10,24]],download_cairo:[[0,2,24],[1,2,24]],downloaded:[[0,7,24]],downloading:[[1,5,
24]],downloading_0:[[1,5,24]],downloading_1:[[1,6,24]],downloading_2:[[1,6,24]],downloading_3:[[1,6,24]],downloading_4:[[1,6,24]],downloading_5:[[1,7,24]],downloading_6:[[1,6,24]],drive_add:[[1,2,24]],earth:[[0,12,24],[1,12,16],[1,12,18],[1,12,24]],explicit:[[0,7,18],[0,7,24],[1,7,24]],eye:[[0,5,24],[1,5,24]],eye_off:[[1,4,24]],eyedropper:[[1,2,24]],face_arrows_diagonal:[[1,1,24]],face_happy:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_image:[[1,2,24]],face_meh:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],
face_meh_2:[[0,6,24],[0,6,36],[1,6,24],[1,6,36]],face_paintbrush:[[1,2,24]],face_sad:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_unhappy:[[0,8,24],[0,8,36],[1,8,24],[1,8,36]],face_upset:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_very_happy:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_very_sad:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],fashion:[[0,4,24],[1,4,24]],fashion_cairo:[[0,2,24],[1,2,24]],fast_back:[[0,3,24],[1,3,24]],fast_forward:[[0,5,24]],film_strip:[[0,6,24],[1,6,24]],film_strip_add:[[1,2,24]],
filter_face:[[0,5,24],[1,5,24]],filter_photo:[[0,8,24],[1,8,24]],fire:[[0,9,12],[0,9,24],[1,9,16],[1,9,24]],fire_cairo:[[0,2,24],[1,2,24]],fireworks:[[1,3,24]],flag:[[0,8,24],[1,8,24]],flag_cairo:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,18],[0,5,24],[1,5,24]],flash_off:[[0,5,24],[1,5,24]],flash_on:[[0,5,24],[1,5,24]],flip_horizontal:[[1,4,24]],flip_horizontal_dash:[[1,1,24]],flip_vertical_dash:[[1,1,24]],folder:[[0,4,16],[0,4,24],[1,4,24]],football:[[0,3,24],[1,3,24]],
gaming:[[0,3,24],[1,3,24]],gaming_cairo:[[0,2,24],[1,2,24]],gear:[[0,8,24],[1,8,24]],gear_cairo:[[0,3,24],[1,3,24]],ghost:[[1,4,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[1,3,24]],glow:[[1,2,24]],google_lens:[[1,4,24]],greater_than_20:[[1,2,24]],grid_2x2:[[1,1,24]],grid_3_by_3:[[0,1,24],[1,1,24]],grid_asymmetrical:[[0,1,24],[1,1,24]],hand:[[1,2,24]],hand_long_press:[[0,3,24],[1,3,24]],hand_pinch_in:[[1,2,24]],hand_swipe_left:[[1,1,24]],hand_swipe_right:[[1,2,24]],hand_tap:[[0,2,24],[1,2,
24]],hand_wave:[[1,2,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],heart:[[0,17,13],[0,17,24],[1,17,16],[1,17,24]],heart_box:[[1,1,24]],heart_circle:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],heart_off:[[1,2,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,2,24]],home:[[0,9,24],[1,9,24]],home_cairo:[[0,2,24],[1,2,24]],hourglass:[[1,2,16],[1,2,24]],image:[[0,8,24],[1,8,24]],image_add:[[1,4,24]],image_wallpaper:[[1,
1,24]],incognito:[[0,9,24],[1,9,24]],incognito_cairo:[[0,2,24],[1,2,24]],infinite:[[0,2,24]],infinity:[[1,2,24]],info_circle:[[1,9,16],[1,9,18],[1,9,20],[1,9,24]],journey:[[1,1,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layers:[[0,1,24],[1,1,24]],leaf:[[1,2,24]],lens:[[1,1,24]],less_than_4:[[1,2,24]],library:[[0,6,24],[1,6,24]],library_add:[[1,7,16],[1,7,24]],library_image:[[1,1,24]],library_music:[[0,3,24],[1,3,24]],
library_saved:[[0,6,24]],lightbulb:[[0,4,12],[0,4,24],[1,4,24]],lightbulb_cairo:[[0,2,24],[1,2,24]],lightbulb_spark:[[1,2,24]],link:[[1,7,18],[1,7,24]],link_off:[[1,1,24]],list_add:[[1,5,24]],list_check:[[0,2,24]],list_music:[[1,3,24]],list_pencil:[[1,5,24]],list_play_arrow:[[0,8,24],[1,8,12],[1,8,24]],list_play_arrow_cairo:[[0,2,24],[1,2,24]],list_queue:[[1,1,24]],list_queue_last:[[0,3,24],[1,3,24]],list_queue_next:[[1,1,24]],list_remove:[[1,1,24]],list_view:[[1,2,24]],list_view_cairo:[[1,2,24]],
live_mobile_landscape_orientation:[[1,1,24]],live_photo:[[1,2,24]],location_point:[[0,6,12],[0,6,24],[1,6,24]],location_point_off:[[1,1,24]],lock:[[0,11,12],[0,11,24],[1,11,12],[1,11,16],[1,11,18],[1,11,24]],lock_open:[[1,4,24]],magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],math_add:[[0,3,24]],math_and:[[0,3,24]],math_divide:[[0,3,24]],math_equals:[[0,3,24]],math_equals_slash:[[1,3,24]],math_greater_than:[[0,3,24]],math_greater_than_or_equal:[[1,1,24]],math_less_than:[[0,
3,24]],math_less_than_or_equal:[[1,4,24]],math_multiply:[[0,3,24]],math_or:[[0,3,24]],math_percent:[[0,3,24]],math_subtract:[[0,3,24]],maximize_cairo:[[1,1,24]],medal:[[1,2,24]],medal_star:[[1,2,24]],meet:[[1,1,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,8,12],[0,8,16],[0,8,18],[0,8,24],[1,8,24]],mention:[[1,4,16],[1,4,24]],menu_filter:[[0,1,24],[1,1,24]],menu_sort:[[1,4,24]],message_bubble_alert:[[0,6,24],[1,6,24]],message_bubble_alert_cairo:[[1,2,24]],message_bubble_empty:[[1,1,24]],message_bubble_gear:[[1,
1,24]],message_bubble_left:[[0,1,24],[1,1,24]],message_bubble_left_boost:[[1,1,24]],message_bubble_left_off:[[1,1,16],[1,1,24]],message_bubble_overlap:[[0,7,24],[1,7,24]],message_bubble_question:[[0,2,16],[0,2,24],[1,2,16],[1,2,24]],message_bubble_right:[[0,14,24],[0,14,32],[1,14,16],[1,14,24]],message_bubble_right_caption:[[1,1,24]],mic:[[0,10,24],[1,10,24]],mic_off:[[1,2,24]],miniplayer_exit:[[1,1,24]],mobile:[[0,4,24],[1,4,24]],mobile_check:[[1,2,24]],mobile_download:[[1,3,24]],mobile_landscape:[[1,
3,24]],mobile_screen_horizontal:[[1,1,24]],mobile_screen_vertical:[[1,1,24]],money_hand:[[1,2,24]],monitor_display:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],monitor_display_off:[[1,1,24]],moon_z:[[0,1,24],[1,1,24]],motion:[[1,2,24]],move:[[1,2,24]],music:[[0,6,24],[1,6,16],[1,6,18],[1,6,24]],music_off:[[1,3,24]],music_scissors:[[1,3,24]],music_shape:[[1,3,24]],music_video:[[1,4,24]],music_video_off:[[1,1,24]],my_videos:[[1,6,24]],my_videos_cairo:[[1,2,24]],news:[[0,3,24],[1,3,12],[1,3,24]],news_cairo:[[0,
2,24],[1,2,24]],node_left:[[1,2,24]],node_right:[[1,2,24]],note_add:[[1,1,16],[1,1,24]],odometer:[[0,4,24],[1,4,24]],open_new:[[0,7,24],[1,7,12],[1,7,24]],overflow_horizontal:[[1,5,24],[1,5,32]],overflow_vertical:[[1,11,24]],overflow_vertical_cairo:[[1,1,24]],paint_bucket:[[1,3,24]],palette:[[1,1,24]],panels:[[0,2,24],[1,2,24]],paper_corner_folded:[[0,2,24],[1,2,24]],paper_open_in_new:[[0,1,24],[1,1,24]],pause:[[0,7,24]],pause_circle:[[0,2,12],[0,2,16],[0,2,24]],pdf:[[1,2,24]],pencil:[[1,8,16],[1,
8,18],[1,8,24]],people:[[0,6,12],[0,6,24],[1,6,24]],people_2:[[0,1,24],[1,1,24]],people_group:[[0,4,24],[1,4,16],[1,4,24]],people_note:[[0,1,18],[0,1,24],[1,1,24]],person:[[0,6,12],[0,6,13],[0,6,16],[0,6,24],[0,6,48],[1,6,13],[1,6,16],[1,6,24]],person_2:[[1,1,24]],person_account:[[1,6,24]],person_account_cairo:[[1,1,24]],person_add:[[1,6,24]],person_box:[[1,5,24]],person_circle:[[0,9,24],[1,9,24]],person_circle_cairo:[[0,2,24],[1,2,24]],person_circle_slash:[[1,2,24]],person_minus:[[0,1,24],[1,1,24]],
person_music:[[0,4,24],[1,4,24]],person_radar:[[0,7,12],[0,7,24],[1,7,16],[1,7,18],[1,7,24]],person_setting:[[1,6,24]],person_shield:[[1,7,24]],person_waveform:[[1,2,24]],phone:[[0,2,24],[1,2,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_combine:[[1,1,24]],pin:[[0,6,12],[0,6,24],[1,6,16],[1,6,24]],pin_off:[[1,1,24]],play_arrow:[[0,7,24],[1,7,24]],play_arrow_circle:[[0,2,24],[1,2,24]],play_arrow_disabled:[[0,1,12],[0,1,24]],play_arrow_half_circle:[[0,5,24],[1,5,24]],podcast:[[0,3,
24],[1,3,12],[1,3,16],[1,3,18],[1,3,24]],podcast_add:[[0,2,24],[1,2,24]],podcast_cairo:[[0,2,24],[1,2,24]],podcast_check:[[0,2,24]],point_2x:[[1,1,24]],point_3x:[[1,3,24]],point_5x:[[1,3,24]],point_8x:[[1,1,24]],poll:[[1,8,16],[1,8,24],[1,8,40]],pound:[[1,3,24]],presentation:[[1,2,24]],presentation_remove:[[1,1,24]],price_tag:[[0,7,12],[0,7,24],[1,7,24]],price_tag_heart:[[1,2,24]],qr_code:[[1,3,24]],question_circle:[[1,5,24]],question_circle_cairo:[[1,2,24]],question_head:[[1,1,24]],quotation_mark:[[0,
1,24],[1,1,24]],quotation_mark_off:[[1,1,24]],radar_live:[[0,7,24],[1,7,12],[1,7,16],[1,7,24]],radar_live_cairo:[[0,2,24],[1,2,24]],rating_down:[[1,1,24]],rating_up:[[1,7,12],[1,7,16],[1,7,24]],record:[[0,2,24]],remix:[[1,2,16],[1,2,24]],replay_arrow:[[1,1,24]],rotate_90:[[1,1,24]],rotate_90_clockwise:[[1,2,24]],rss:[[1,2,16],[1,2,24]],rss_off:[[1,1,16],[1,1,24]],ruby:[[1,2,12],[1,2,16],[1,2,18],[1,2,24]],samples:[[0,2,24],[1,2,24]],saturation:[[1,2,24]],scale:[[1,4,24]],scissors:[[0,7,12],[0,7,24],
[1,7,24]],scissors_cairo:[[0,2,24],[1,2,24]],scissors_cut:[[1,4,16],[1,4,18],[1,4,24]],screen_default:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_full:[[1,7,24]],screen_full_cairo:[[1,1,24]],screen_full_exit:[[1,6,24]],screen_full_exit_cairo:[[1,1,24]],screen_fullscreen:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_light:[[1,1,24]],screen_mini_player:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_multi_view:[[0,3,24],[1,3,24]],screen_rotation:[[1,2,18],[1,2,24]],screen_switch:[[0,1,24],[1,1,24]],screen_theatre:[[0,
1,24],[0,1,48],[1,1,24],[1,1,48]],screen_vertical:[[1,1,24]],screen_x:[[1,2,24]],sd:[[0,3,24],[1,3,24]],search:[[0,11,24],[1,11,24]],search_cairo:[[1,2,24]],search_superscript:[[1,1,24]],send:[[0,4,24,!0],[1,4,24,!0]],settings_remote:[[1,1,24]],shadow_hard:[[0,2,24]],shadow_soft:[[0,2,24]],shapes:[[0,3,24],[1,3,24]],share:[[0,10,24,!0],[0,10,32,!0],[1,10,16,!0],[1,10,24,!0]],share_cairo:[[1,2,24]],share_ios:[[1,2,24]],share_link:[[0,1,24],[1,1,24]],shield:[[1,6,24]],shield_add:[[1,2,24]],shield_check:[[1,
1,24]],shield_empty:[[0,1,16],[0,1,18],[0,1,24],[1,1,16],[1,1,18],[1,1,24]],shield_off:[[1,1,24]],shield_overflow:[[1,2,24]],shield_plus:[[1,1,24]],shield_search:[[1,2,24]],shorts_layout_bottom:[[1,1,24]],shorts_layout_centered_square:[[1,1,24]],shorts_layout_foreground:[[1,1,24]],shorts_layout_landscape_bottom:[[1,1,24]],shorts_layout_landscape_top:[[1,1,24]],shorts_layout_left:[[1,1,24]],shorts_layout_pip:[[1,1,24]],shorts_layout_right:[[1,1,24]],shorts_layout_single:[[1,1,24]],shorts_layout_top:[[1,
1,24]],skip_back_10:[[0,1,24]],skip_back_15:[[0,1,24]],skip_back_20:[[0,1,24]],skip_back_30:[[0,1,24]],skip_back_5:[[0,1,24]],skip_back_60:[[0,1,24]],skip_down:[[0,5,24]],skip_forward_10:[[0,1,24]],skip_forward_15:[[0,1,24]],skip_forward_20:[[0,1,24]],skip_forward_30:[[0,1,24]],skip_forward_5:[[0,1,24]],skip_forward_60:[[0,1,24]],skip_next:[[0,5,24]],skip_previous:[[0,5,24]],skip_up:[[0,5,24]],slash_circle_left:[[1,7,24]],slash_circle_right:[[1,2,24]],soccer_ball:[[1,3,24]],soccer_card:[[0,2,12],
[0,2,16],[0,2,24]],spacebar:[[1,2,24]],spark:[[0,8,12],[0,8,16],[0,8,24]],spark_chat:[[1,1,16],[1,1,24]],spark_image:[[1,2,24]],spark_lightbulb:[[0,2,24],[1,2,24]],spark_message_bubble:[[1,4,16],[1,4,24]],spark_message_bubble_left:[[1,1,24]],spark_music:[[1,2,24]],spark_pencil:[[1,2,24]],spark_radar:[[0,1,12],[0,1,16],[0,1,24],[1,1,12],[1,1,16],[1,1,24]],spark_text:[[1,1,24]],spark_video:[[1,2,24]],sparkle:[[0,4,24],[1,4,24]],speaker:[[1,2,24]],speaker_group:[[1,1,24]],speaker_group_off:[[1,1,24]],
speaker_headset:[[1,2,24]],speaker_off:[[1,1,24]],split:[[1,4,24]],sports:[[0,1,24]],spotlight:[[0,3,24],[1,3,24]],star:[[0,5,16],[0,5,24],[1,5,16],[1,5,24]],star_circle:[[0,3,12],[0,3,16],[0,3,18],[0,3,24]],star_circle_ribbon:[[0,1,16],[0,1,20],[0,1,24],[0,1,36],[1,1,16],[1,1,20],[1,1,24],[1,1,36]],star_half:[[0,2,16],[0,2,24]],star_shooting:[[0,3,24],[1,3,24]],statistics_graph:[[1,2,24]],sticker:[[1,2,24]],stop:[[0,3,24]],stopwatch:[[0,5,16],[0,5,24],[1,5,16],[1,5,24]],stopwatch_10:[[0,1,24]],stopwatch_3:[[0,
1,24]],subscriptions:[[0,10,24],[1,10,18],[1,10,24]],subscriptions_cairo:[[0,2,24],[1,2,24]],subtitles:[[0,4,12],[0,4,24],[1,4,24]],super_chat:[[1,8,18],[1,8,24]],super_sticker:[[0,8,16],[0,8,24],[1,8,16],[1,8,24]],super_store:[[1,3,24]],superstar:[[1,1,24]],tablet:[[1,1,24]],target:[[0,2,24],[1,2,16],[1,2,24]],target_add:[[0,2,24],[1,2,16],[1,2,24]],template_add:[[1,3,16],[1,3,24]],template_play:[[0,3,24],[1,3,24]],text:[[0,9,24],[1,9,16],[1,9,18],[1,9,24]],text_bell_cairo:[[1,1,12],[1,1,16],[1,
1,18],[1,1,24]],text_bold:[[1,1,24]],text_box:[[1,5,24]],text_italic:[[1,1,24]],text_outline:[[1,2,24]],text_preset:[[1,1,24]],text_serif:[[1,1,24]],text_shadow:[[1,2,24]],text_strikethrough:[[1,1,24]],text_underline:[[1,1,24]],theme_switch:[[0,1,24],[1,1,24]],thermometer:[[1,2,24]],thumb_down:[[0,21,16],[0,21,24],[0,21,36],[1,21,16],[1,21,24],[1,21,36]],thumb_up:[[0,19,16],[0,19,24],[0,19,36],[1,19,16],[1,19,24],[1,19,36]],thumb_up_cairo:[[0,2,24],[1,2,24]],thumb_up_down:[[0,2,24],[1,2,24]],tic_tac_toe:[[0,
4,12],[0,4,24],[1,4,16],[1,4,24]],tic_tac_toe_cairo:[[0,2,24],[1,2,24]],ticket_star:[[1,1,24]],tilt:[[1,4,24]],time_stamp_plus:[[1,1,24]],timeline:[[1,3,24]],toolbox:[[1,4,24]],transcript:[[1,2,16],[1,2,24]],transcript_search:[[1,1,16],[1,1,24]],transition:[[0,5,24],[1,5,24]],translate:[[1,2,24]],trash_can:[[1,9,16],[1,9,18],[1,9,24]],triangle_down:[[1,7,24]],triangle_three_left:[[0,1,24]],triangle_three_right:[[0,1,24]],trophy:[[0,3,24],[1,3,24]],trophy_cairo:[[0,2,24],[1,2,24]],trophy_star:[[1,
1,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,7,12],[0,7,16],[0,7,24],[1,7,16],[1,7,24]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_dollar_sign:[[0,1,24],[1,1,24]],tv_off:[[1,2,24]],tv_queue:[[1,4,24]],tv_queue_chevron:[[1,2,24]],upload:[[1,5,24]],uploading:[[1,1,24]],variable:[[1,4,24]],verified_circle:[[1,4,24]],video_camera:[[0,8,24],[1,8,24]],video_camera_add:[[1,2,24]],video_camera_off:[[1,1,24]],video_link:[[1,4,16],[1,4,24]],video_stitch:[[1,2,24]],volume_down:[[0,2,24],[1,2,24]],
volume_fade:[[1,2,24]],volume_off:[[0,4,24],[1,4,24]],volume_on:[[0,3,24],[1,3,24]],volume_stable:[[0,1,24],[1,1,24]],vr:[[0,7,24],[1,7,24]],waveform:[[1,2,24]],waveform_music:[[0,2,18],[0,2,24],[0,2,48]],waveform_spark:[[1,2,24]],wrench:[[0,2,24],[1,2,24]],x:[[1,9,18],[1,9,24]],x_cairo:[[1,1,24]],x_circle:[[1,7,24]],x_mark:[[1,4,20],[1,4,24]],x_octagon:[[1,2,24]],yen_sign_container:[[0,2,24],[1,2,24]],youtube_improve_tv:[[1,1,24]],youtube_kids:[[0,5,24],[1,5,24]],youtube_linked_tv:[[1,4,24]],youtube_logo_icon:[[0,
6,24],[1,6,24]],youtube_mix:[[1,5,12],[1,5,16],[1,5,24]],youtube_music:[[0,7,24],[1,7,24]],youtube_music_cairo:[[1,2,24]],youtube_originals:[[0,6,24],[1,6,24]],youtube_shorts:[[0,10,12],[0,10,20],[0,10,24],[1,10,20],[1,10,24]],youtube_shorts_arrow_down:[[1,1,24]],youtube_shorts_arrow_left:[[1,2,24]],youtube_shorts_arrow_up:[[1,1,24]],youtube_shorts_cairo:[[0,2,24],[1,2,24]],youtube_shorts_camera:[[1,3,24]],youtube_shorts_chevron_left_ios:[[1,2,24]],youtube_shorts_green_screen:[[0,1,24],[1,1,24]],
youtube_shorts_heart:[[0,2,24],[0,2,32]],youtube_shorts_message_bubble_right:[[0,2,24],[0,2,32]],youtube_shorts_no_triangle:[[0,4,16],[0,4,24],[0,4,32],[1,4,16],[1,4,24],[1,4,32]],youtube_shorts_overflow_vertical:[[1,2,24]],youtube_shorts_plus:[[1,5,16],[1,5,24]],youtube_shorts_remix:[[0,2,24],[0,2,32]],youtube_shorts_search:[[1,3,24]],youtube_shorts_share:[[0,2,24],[0,2,32]],youtube_shorts_sticker:[[1,1,18],[1,1,24]],youtube_shorts_thumb_down:[[0,2,24],[0,2,32]],youtube_shorts_thumb_up:[[0,2,24],
[0,2,32]],youtube_shorts_waveform:[[1,2,18],[1,2,24]],youtube_studio:[[0,8,24],[1,8,24]],youtube_tv:[[0,8,24],[1,8,24]],zoom_auto:[[0,1,24],[1,1,24]]};var imL={accessibility:[[0,4,24],[1,4,24]],account_link:[[0,8,24],[1,8,24]],account_link_error:[[1,6,24]],add:[[1,8,24]],add_circle:[[0,5,24],[1,5,24]],add_square_stack:[[1,1,24]],add_tv:[[1,1,24]],add_tv_chevron_right:[[1,1,24]],adjust:[[0,9,24],[1,9,24]],airplane:[[0,4,24],[1,4,24]],airplay:[[1,6,24]],airplay_slash:[[1,1,24]],album:[[0,6,24],[1,6,24]],alert_bubble:[[1,1,24]],alert_circle:[[0,9,24],[1,9,24]],alert_octagon:[[0,2,24],[1,2,24]],alert_triangle:[[0,8,24],[1,8,24]],ambient_mode:[[1,1,
24]],ampersand:[[1,1,24]],api:[[0,2,24],[1,2,24]],archive:[[1,1,24]],arrow_arc_forward:[[1,1,24]],arrow_clockwise:[[1,1,24]],arrow_counterclockwise:[[1,1,24]],arrow_counterclockwise_dashed:[[1,1,24]],arrow_down:[[1,3,24]],arrow_down_circle:[[0,4,24],[1,4,24]],arrow_down_right:[[1,1,24]],arrow_flip:[[1,10,24]],arrow_in:[[1,7,24]],arrow_left:[[1,7,24,!0]],arrow_merge:[[1,2,24]],arrow_out:[[1,2,24]],arrow_right:[[1,3,24,!0]],arrow_right_rectangle:[[0,2,24],[1,2,24]],arrow_solid_down:[[0,3,24],[1,3,24]],
arrow_solid_up:[[0,3,24],[1,3,24]],arrow_split:[[1,3,24]],arrow_split_alert:[[1,1,24]],arrow_swap_horizontal:[[1,5,24]],arrow_trend_down:[[1,1,24]],arrow_trend_up:[[1,1,24]],arrow_turn_down_right:[[1,1,24]],arrow_up:[[1,3,24]],arrow_up_circle:[[0,4,24],[1,4,24]],arrow_up_left:[[1,1,24]],arrow_up_rectangle_portrait:[[1,1,24]],arrow_up_right:[[1,1,24]],audio:[[0,9,24],[1,9,24]],audio_arrow_flip:[[0,2,24],[1,2,24]],audio_badge:[[0,3,24],[1,3,24]],audio_scissors:[[1,1,24]],audio_slash:[[0,2,24],[1,2,
24]],audio_spark:[[1,1,24]],audio_square_stack:[[0,2,24],[1,2,24]],audio_staff:[[0,2,24],[1,2,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,24],[1,7,24]],bag_bookmark:[[1,2,24]],basketball:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bell:[[0,10,24],[1,10,24]],bell_slash:[[1,1,24]],bell_waves:[[0,2,24],[1,2,24]],blur:[[1,2,24]],book:[[0,3,24],[1,3,24]],book_audio:[[1,1,24]],bookmark:[[0,8,24],[1,8,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,24],[1,3,24]],brightness:[[0,3,24],[1,3,24]],browser:[[0,2,24],
[1,2,24]],browser_slash:[[1,1,24]],bubble:[[1,1,24]],bubble_asterisk:[[0,2,24],[1,2,24]],bubble_gear:[[1,1,24]],bubble_pencil:[[1,1,24]],bubble_slash:[[0,2,24],[1,2,24]],bubble_spark:[[1,1,24]],bubble_sparkles:[[1,1,24]],bubble_stack:[[0,2,24],[1,2,24]],bug:[[0,3,24],[1,3,24]],business:[[0,4,24],[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],calendar_event:[[0,2,24],[1,2,24]],calendar_today:[[1,1,24]],camera:[[0,9,24],[1,9,24]],camera_audio:[[1,5,24]],camera_flip:[[1,
4,24]],camera_hashtag:[[1,5,24]],camera_sparkles:[[1,1,24]],camera_switch:[[0,3,24],[1,3,24]],card:[[0,3,24]],cart:[[0,4,24],[1,4,24]],cart_add:[[1,1,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],chart_bar:[[1,1,24]],chart_bar_search:[[0,2,24],[1,2,24]],chart_bar_square:[[0,2,24],[1,2,24]],chart_line:[[1,1,24]],chart_pie:[[0,2,24],[1,2,24]],chart_scatter_plot:[[1,1,24]],check:[[1,10,24]],check_circle:[[0,10,24],[1,10,24]],check_done:[[1,1,24]],check_done_slash:[[1,1,24]],check_shield:[[1,1,
24]],check_square:[[0,2,24],[1,2,24]],check_square_stack:[[0,1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,8,24]],chevron_down_circle:[[0,3,24],[1,3,24]],chevron_down_end:[[1,1,24]],chevron_expand:[[1,5,24]],chevron_left:[[1,9,24,!0]],chevron_left_circle:[[0,3,24],[1,3,24]],chevron_left_end:[[1,1,24]],chevron_right:[[1,6,24,!0]],chevron_right_circle:[[0,3,24],[1,3,24]],chevron_right_end:[[1,1,24]],chevron_right_square:[[1,1,24]],chevron_up:[[1,8,24]],chevron_up_circle:[[0,3,24],[1,3,24]],chevron_up_end:[[1,
1,24]],chromecast:[[0,8,24],[1,8,24]],chromecast_mobile:[[1,3,24]],chromecast_waveform:[[1,2,24]],circle:[[0,7,24],[1,7,24]],circle_half_filled:[[1,1,24]],circle_slash:[[0,2,24],[1,2,24]],circles6:[[1,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_sparkles:[[0,1,24]],clock:[[0,9,24],[1,9,24]],clock_arrow_clockwise:[[1,1,24]],clock_half_dashed:[[1,1,24]],clock_split:[[0,2,24],[1,2,24]],clock_split_alert:[[0,2,24],[1,2,24]],closed_captions:[[0,2,24],[1,2,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,
3,24]],cloud_arrow_up:[[0,5,24],[1,5,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_slash:[[1,1,24]],cms_allowlist:[[0,2,24],[1,2,24]],code:[[1,2,24]],compare:[[1,1,24]],compass:[[0,8,24],[1,8,24]],copy:[[1,3,24]],copy_to_all:[[1,1,24]],copyright:[[0,4,24],[1,4,24]],copyright_search:[[0,2,24],[1,2,24]],cover_claim:[[1,1,24]],creative_commons:[[0,2,24],[1,2,24]],credit_card:[[0,4,24],[1,4,24]],crop:[[1,3,24]],crop_rotate:[[1,2,24]],crown:[[0,4,24],[1,4,24]],csv:[[0,2,
24],[1,2,24]],cube:[[0,2,24],[1,2,24]],cursor_click:[[0,2,24],[1,2,24]],curve:[[1,1,24]],cvp:[[0,2,24],[1,2,24]],dashboard:[[0,2,24],[1,2,24]],dashboard_add:[[1,1,24]],die_face3:[[0,2,24],[1,2,24]],directions:[[1,3,24]],display:[[0,2,24],[1,2,24]],display_slash:[[1,1,24]],divide:[[1,1,24]],document:[[0,2,24],[1,2,24]],document_arrow_up_right:[[0,2,24],[1,2,24]],dollar_sign_arrow_flip:[[1,1,24]],dollar_sign_circle:[[0,10,24],[1,10,24]],dollar_sign_circle_add:[[1,1,24]],dollar_sign_circle_hand:[[1,
1,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_slash:[[1,1,24]],dollar_sign_heart:[[1,21,24]],dollar_sign_rectangle:[[1,1,24]],dollar_sign_tv:[[0,2,24],[1,2,24]],download:[[1,10,24]],dpad:[[0,2,24],[1,2,24]],embed:[[0,2,24],[1,2,24]],equal:[[1,1,24]],equal_slash:[[1,1,24]],explicit:[[0,7,24],[1,7,24]],eye:[[0,5,24],[1,5,24]],eye_slash:[[1,1,24]],eyedropper:[[1,2,24]],face_happy:[[0,9,24],[1,9,24]],face_image:[[1,2,24]],face_meh:[[0,9,24],[1,9,24]],face_neutral:[[0,2,24],[1,2,24]],face_paintbrush:[[1,
2,24]],face_sad:[[0,9,24],[1,9,24]],face_scale:[[1,1,24]],face_sparkles:[[0,2,24],[1,2,24]],face_unhappy:[[0,8,24],[1,8,24]],face_upset:[[0,9,24],[1,9,24]],face_very_happy:[[0,9,24],[1,9,24]],face_very_sad:[[0,9,24],[1,9,24]],fashion:[[0,4,24],[1,4,24]],fast_forward:[[0,5,24],[1,5,24]],fast_rewind:[[0,2,24],[1,2,24]],film_strip:[[0,6,24],[1,6,24]],film_strip_add:[[1,2,24]],film_strip_audio:[[1,1,24]],filter:[[1,1,24]],filter_audio:[[1,1,24]],filter_photo:[[0,8,24],[1,8,24]],fireworks:[[1,3,24]],flag:[[0,
8,24],[1,8,24]],flash:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,24],[1,5,24]],flash_slash:[[0,2,24],[1,2,24]],flip_horizontal:[[1,4,24]],flip_horizontal_half_dashed:[[1,1,24]],flip_vertical_half_dashed:[[1,1,24]],folder:[[0,4,24],[1,4,24]],font:[[1,1,24]],font_bold:[[1,1,24]],font_italic:[[1,1,24]],font_outline:[[1,1,24]],font_present:[[1,1,24]],font_serif:[[1,1,24]],font_shadow:[[1,1,24]],font_square:[[0,2,24],[1,2,24]],font_strikethrough:[[1,1,24]],font_underline:[[1,
1,24]],football:[[0,3,24],[1,3,24]],game_controller:[[1,1,24]],gaming:[[0,3,24],[1,3,24]],gear:[[0,8,24],[1,8,24]],gesture_long_press:[[0,2,24],[1,2,24]],gesture_pinch_in:[[1,1,24]],gesture_swipe_left:[[1,1,24]],gesture_swipe_right:[[1,1,24]],gesture_swipe_up:[[1,1,24]],gesture_tap:[[0,2,24],[1,2,24]],ghost:[[1,4,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[1,3,24]],glow:[[1,2,24]],google:[[0,1,24]],google_blogger:[[0,1,24]],google_drive_add:[[1,1,24]],google_lens:[[1,4,24]],google_meet:[[0,
2,24],[1,2,24]],google_quick_share:[[1,1,24]],graduation_cap:[[0,2,24],[1,2,24]],greater_than:[[1,1,24]],greater_than_n20:[[1,1,24]],greater_than_or_equal_to:[[1,1,24]],hand:[[1,2,24]],hand_wave:[[1,2,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],heart:[[0,17,24],[1,17,24]],heart_circle:[[1,2,24]],heart_cube:[[1,1,24]],heart_slash:[[1,1,24]],help_bubble:[[0,2,24],[1,2,24]],help_circle:[[1,1,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,
2,24]],history:[[1,1,24]],home:[[0,9,24],[1,9,24]],hourglass:[[1,2,24]],hype:[[0,2,24],[1,2,24]],image:[[0,8,24],[1,8,24]],image_add:[[0,4,24],[1,4,24]],image_frame:[[1,1,24]],image_list:[[0,2,24],[1,2,24]],image_list_slash:[[1,1,24]],image_spark:[[1,1,24]],image_stack:[[0,2,24],[1,2,24]],image_viewfinder:[[1,1,24]],incognito:[[0,9,24],[1,9,24]],infinity:[[1,2,24]],info_circle:[[1,9,24]],info_circle_spark:[[1,1,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],label_slash:[[0,
2,24],[1,2,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layout_bottom:[[1,1,24]],layout_foreground:[[1,1,24]],layout_full:[[1,1,24]],layout_left:[[1,1,24]],layout_middle:[[1,1,24]],layout_picture_in_picture:[[1,1,24]],layout_right:[[1,1,24]],layout_top:[[1,1,24]],leaf:[[1,2,24]],less_than:[[1,1,24]],less_than_n4:[[1,1,24]],less_than_or_equal_to:[[1,1,24]],license:[[0,2,24],[1,2,24]],license_alert:[[1,1,24]],license_search:[[1,1,24]],license_slash:[[1,1,24]],lightbulb:[[0,4,24],[1,4,24]],
link:[[1,7,24]],link_slash:[[1,1,24]],live:[[1,1,24]],live_photo:[[1,2,24]],location_pin:[[0,2,24],[1,2,24]],location_pin_slash:[[1,1,24]],lock:[[0,11,24],[1,11,24]],lock_clock:[[1,1,24]],lock_n2:[[1,1,24]],lock_open:[[0,4,24],[1,4,24]],magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],medal:[[1,2,24]],medal_star:[[1,2,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,8,24],[1,8,24]],memberships_gift:[[1,1,24]],mention:[[1,4,24]],menu:[[1,1,24]],mic:[[0,10,24],[1,10,24]],mic_slash:[[1,
1,24]],minus:[[1,1,24]],minus_circle:[[0,2,24],[1,2,24]],minus_square:[[0,2,24],[1,2,24]],mix:[[0,2,24],[1,2,24]],mobile:[[0,4,24],[1,4,24]],mobile_arrow_down:[[1,1,24]],mobile_check:[[1,2,24]],mobile_landscape:[[0,3,24],[1,3,24]],motion:[[1,2,24]],move:[[1,2,24]],music_video:[[0,4,24],[1,4,24]],music_video_slash:[[1,1,24]],n15:[[1,1,24]],n1point2x:[[1,1,24]],n1point5x:[[1,1,24]],n1point8x:[[1,1,24]],n1x:[[1,1,24]],n2d:[[1,1,24]],n2point5x:[[1,1,24]],n2x:[[1,1,24]],n3d:[[1,1,24]],n3x:[[1,1,24]],n4d:[[1,
1,24]],n4k:[[0,1,24],[1,1,24]],n60:[[1,1,24]],n8k:[[0,1,24],[1,1,24]],new_release:[[1,1,24]],news:[[0,3,24],[1,3,24]],node_left:[[1,2,24]],node_right:[[1,2,24]],open_in_panel:[[1,1,24]],originals:[[0,1,24],[1,1,24]],overflow_horizontal:[[1,5,24]],overflow_vertical:[[1,11,24]],page_search:[[1,1,24]],paint_bucket:[[1,3,24]],paint_palette:[[1,1,24]],panels:[[0,2,24],[1,2,24]],pause:[[0,7,24],[1,7,24]],pause_circle:[[0,2,24],[1,2,24]],pause_history:[[1,1,24]],pawprint:[[1,1,24]],pdf:[[1,2,24]],pencil:[[1,
8,24]],pencil_spark:[[1,1,24]],percent:[[1,1,24]],person:[[0,6,24],[1,6,24]],person2:[[1,1,24]],person2_rectangle:[[0,1,24],[1,1,24]],person3:[[0,1,24],[1,1,24]],person_add:[[0,6,24],[1,6,24]],person_audio:[[0,1,24],[1,1,24]],person_check:[[1,1,24]],person_child:[[0,1,24],[1,1,24]],person_circle:[[1,9,24]],person_circle_slash:[[1,2,24]],person_gear:[[1,1,24]],person_shield:[[1,7,24]],person_square:[[0,1,24],[1,1,24]],person_square_stack:[[0,1,24],[1,1,24]],person_viewfinder:[[0,1,24],[1,1,24]],person_waveform:[[1,
1,24]],person_waves:[[0,1,24],[1,1,24]],person_x:[[1,1,24]],phone:[[0,2,24],[1,2,24]],piano:[[1,1,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_stack:[[1,1,24]],pin:[[0,6,24],[1,6,24]],pin_slash:[[0,1,24],[1,1,24]],play:[[0,1,24],[1,1,24]],play_circle:[[0,1,24],[1,1,24]],play_circle_half_dashed:[[1,1,24]],play_slash:[[0,1,24],[1,1,24]],play_square_half_dashed:[[1,1,24]],play_square_stack:[[0,1,24],[1,1,24]],playables:[[0,1,24],[1,1,24]],player_default:[[0,1,24],[1,1,24]],player_full_enter:[[1,
1,24]],player_full_enter_portrait:[[1,1,24]],player_full_exit:[[1,1,24]],player_mini_enter:[[0,1,24],[1,1,24]],player_mini_exit:[[1,1,24]],player_multiview:[[0,1,24],[1,1,24]],player_switch:[[0,1,24],[1,1,24]],player_theater:[[0,1,24],[1,1,24]],playlist:[[1,1,24]],playlist_add:[[1,1,24]],playlist_audio:[[0,1,24],[1,1,24]],playlist_audio_slash:[[1,1,24]],playlist_check:[[1,1,24]],playlist_pencil:[[1,1,24]],playlist_x:[[1,1,24]],podcast:[[0,3,24],[1,3,24]],podcast_add:[[0,2,24],[1,2,24]],podcast_check:[[0,
2,24]],point2x:[[1,1,24]],point3x:[[1,1,24]],point5x:[[1,1,24]],point8x:[[1,1,24]],poll:[[1,8,24]],premium:[[0,1,24],[1,1,24]],presentation:[[1,2,24]],price_tag:[[0,7,24],[1,7,24]],price_tag_heart:[[1,2,24]],price_tag_rectangle:[[1,1,24]],qr_code:[[1,3,24]],qr_code_viewfinder:[[1,1,24]],queue:[[1,1,24]],queue_last:[[1,1,24]],queue_next:[[1,1,24]],quiz:[[0,1,24],[1,1,24]],quote:[[0,1,24],[1,1,24]],quote_slash:[[0,1,24],[1,1,24]],record:[[0,2,24]],redo:[[1,1,24]],remix:[[1,2,24]],remote_waves:[[1,1,
24]],repeat:[[0,1,24],[1,1,24]],repeat1:[[0,1,24],[1,1,24]],replay:[[1,1,24]],rotate_clockwise:[[1,1,24]],rotate_counterclockwise:[[1,1,24]],rotate_landscape:[[1,1,24]],rotate_portrait:[[1,1,24]],rss:[[1,2,24]],rss_slash:[[1,1,24]],ruby:[[1,2,24]],samples:[[0,2,24],[1,2,24]],saturation:[[1,2,24]],scale:[[1,4,24]],scissors:[[0,7,24],[1,7,24]],scissors_cut:[[1,4,24]],scribble:[[1,1,24]],sd:[[0,3,24],[1,3,24]],search:[[0,10,24],[1,10,24]],search_shield:[[0,1,24],[1,1,24]],search_spark:[[1,1,24]],seek_forward:[[0,
1,24]],seek_rewind:[[0,1,24]],send:[[0,4,24,!0],[1,4,24,!0]],shadow:[[1,1,24]],shadow_hard:[[1,2,24]],shadow_soft:[[1,2,24]],shapes:[[0,3,24],[1,3,24]],share:[[1,10,24,!0]],share_android:[[0,2,24],[1,2,24]],share_ios:[[1,2,24]],shield:[[0,6,24],[1,6,24]],shield_add:[[1,2,24]],shield_health:[[1,1,24]],shield_overflow:[[1,2,24]],shield_slash:[[1,1,24]],shield_x:[[0,2,24],[1,2,24]],shorts:[[0,2,24],[1,2,24]],shorts_empty:[[0,2,24],[1,2,24]],shuffle:[[0,2,24],[1,2,24]],skip10_back:[[1,1,24]],skip10_forward:[[1,
1,24]],skip15_back:[[1,1,24]],skip15_forward:[[1,1,24]],skip20_back:[[1,1,24]],skip20_forward:[[1,1,24]],skip30_back:[[1,1,24]],skip30_forward:[[1,1,24]],skip5_back:[[1,1,24]],skip5_forward:[[1,1,24]],skip60_back:[[1,1,24]],skip60_forward:[[1,1,24]],skip_down:[[0,5,24],[1,5,24]],skip_next:[[0,5,24],[1,5,24]],skip_previous:[[0,5,24],[1,5,24]],skip_up:[[0,5,24],[1,5,24]],slash_forward:[[1,1,24]],sleep_timer:[[0,2,24],[1,2,24]],snowflake:[[1,1,24]],soccer_ball:[[1,3,24]],sonar:[[1,1,24]],sort:[[1,1,
24]],spacebar:[[1,2,24]],spark:[[0,8,24],[1,8,24]],spark_bubble_chat:[[1,1,24]],spark_waves:[[0,2,24],[1,2,24]],sparkles:[[0,2,24],[1,2,24]],speaker:[[1,2,24]],speaker_headset:[[1,2,24]],speaker_slash:[[1,1,24]],speaker_stack:[[1,1,24]],speaker_stack_slash:[[1,1,24]],speedometer:[[0,2,24],[1,2,24]],splice:[[1,1,24]],split:[[1,4,24]],spotlight:[[0,3,24],[1,3,24]],spreadsheet:[[1,1,24]],square:[[1,1,24]],square3_stack:[[0,2,24],[1,2,24]],square3d_stack:[[0,2,24],[1,2,24]],square_grid2x2:[[1,1,24]],
square_grid3x3:[[0,2,24],[1,2,24]],square_pencil:[[0,2,24],[1,2,24]],stable_volume:[[0,2,24],[1,2,24]],star:[[0,5,24],[1,5,24]],star_circle:[[0,3,24],[1,3,24]],star_half_filled:[[1,1,24]],star_ticket:[[0,2,24],[1,2,24]],star_trophy:[[1,1,24]],star_tv:[[1,1,24]],sticker:[[1,2,24]],stop:[[0,3,24],[1,3,24]],stop_circle:[[0,2,24],[1,2,24]],stopwatch:[[0,5,24],[1,5,24]],storage:[[0,2,24],[1,2,24]],subscriptions:[[0,10,24],[1,10,24]],subtitles:[[0,4,24],[1,4,24]],subtitles_bubble:[[1,1,24]],sum:[[1,1,24]],
super_chat:[[0,8,24],[1,8,24]],super_star:[[1,1,24]],super_sticker:[[0,8,24],[1,8,24]],super_store:[[0,3,24],[1,3,24]],surround_sound:[[0,2,24],[1,2,24]],tablet_landscape:[[1,1,24]],target:[[1,2,24]],target_add:[[1,2,24]],template_add:[[1,3,24]],template_play:[[0,3,24],[1,3,24]],text_align_center:[[0,2,24],[1,2,24]],text_align_left:[[0,2,24],[1,2,24]],text_align_right:[[0,2,24],[1,2,24]],text_bubble:[[0,2,24],[1,2,24]],text_page:[[0,2,24],[1,2,24]],text_page_alert:[[1,1,24]],text_page_check:[[1,1,
24]],text_page_info:[[1,1,24]],texture:[[1,1,24]],theater:[[1,1,24]],theme:[[0,2,24],[1,2,24]],thermometer:[[1,2,24]],thumb_down:[[0,21,24],[1,21,24]],thumb_up:[[0,19,24],[1,19,24]],thumb_up_down:[[0,2,24]],tilt:[[1,4,24]],timeline:[[1,3,24]],timeline_spark:[[1,1,24]],toolbox:[[0,4,24],[1,4,24]],transcript:[[1,2,24]],transition:[[0,5,24],[1,5,24]],translate:[[1,2,24]],trash_can:[[0,9,24],[1,9,24]],trending:[[0,2,24],[1,2,24]],triangle_down:[[0,7,24],[1,7,24]],triangle_up:[[0,2,24],[1,2,24]],trophy:[[0,
3,24],[1,3,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,7,24],[1,7,24]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_mobile:[[1,1,24]],unarchive:[[1,1,24]],undo:[[1,1,24]],upload:[[1,5,24]],variable:[[1,4,24]],video:[[0,2,24],[1,2,24]],video_camera:[[1,8,24]],video_camera_add:[[1,2,24]],video_link:[[1,4,24]],video_spark:[[1,1,24]],video_stitch:[[1,2,24]],view_column3:[[0,2,24],[1,2,24]],view_column3_row2:[[0,2,24],[1,2,24]],view_compact:[[0,2,24],[1,2,24]],view_feed:[[0,2,24],[1,2,24]],view_list:[[1,
1,24]],view_row2:[[0,2,24],[1,2,24]],view_timeline:[[1,1,24]],volume_fade:[[1,2,24]],volume_max:[[0,2,24],[1,2,24]],volume_min:[[0,2,24],[1,2,24]],volume_mute:[[0,2,24],[1,2,24]],vr:[[0,7,24],[1,7,24]],watch:[[1,1,24]],water:[[1,1,24]],waveform:[[1,2,24]],waveform_spark:[[1,1,24]],wrench:[[1,2,24]],x:[[1,9,24]],x_circle:[[0,7,24],[1,7,24]],x_octagon:[[1,2,24]],x_rectangle:[[1,1,24]],yen_sign_rectangle:[[0,2,24],[1,2,24]],youtube:[[0,2,24],[1,2,24]],youtube_kids:[[0,5,24],[1,5,24]],youtube_music:[[0,
7,24],[1,7,24]],youtube_shorts:[[0,10,24],[1,10,24]],youtube_studio:[[0,8,24],[1,8,24]],youtube_tv:[[0,8,24],[1,8,24]],zoom_in:[[0,2,24],[1,2,24]],zoom_out:[[0,2,24],[1,2,24]]};var nj_={LIKE_DELHI_PLAYER:"LIKE",DISLIKE_DELHI_PLAYER:"DISLIKE",SHARE_DELHI_PLAYER:"SHARE",COMMENT_DELHI_PLAYER:"COMMENT",VOLUME_UP_DELHI_PLAYER_FILLED:"VOLUME_MAX",VOLUME_OFF_DELHI_PLAYER:"VOLUME_MUTE",VOLUME_DOWN_DELHI_PLAYER_FILLED:"VOLUME_MIN",CLOSED_CAPTION_DELHI_PLAYER:"CAPTIONS",CLOSED_CAPTION_DELHI_PLAYER_FILLED:"CAPTIONS",PLAYER_FULL_ENTER_DELHI_PLAYER:"PLAYER_FULL_ENTER",PLAYER_FULL_EXIT_DELHI_PLAYER:"PLAYER_FULL_EXIT",PAUSE_DELHI_PLAYER_FILLED:"PAUSE",PLAY_ARROW_DELHI_PLAYER_FILLED:"PLAY_ARROW"},
gl=function(J){this.iconUrlProvider=J};
gl.prototype.resolveIcon=function(J,c){var m=nj_[J.iconName.toUpperCase()];m&&(J.iconName=m);var b=J.iconName;b=b.replace(/-/g,"_");J=Object.assign({},J,{iconName:this.mapIconTypeToStandardName(b,!!m)||b.toLowerCase()});if(_.w("enable_web_delhi_icons")||m){var x;return ib2(imL,J,((x=this.iconUrlProvider)==null?void 0:x.getYtStandardUrl)||w_u,c)}var P;return ib2(Hmj,J,((P=this.iconUrlProvider)==null?void 0:P.getYtStandardUrl)||T5J,c)};
gl.prototype.mapIconTypeToStandardName=function(J,c){return _.w("enable_web_delhi_icons")||c?kFa[J.toUpperCase()]:a6a[J.toUpperCase()]};
gl[RE]=[_.y6(I6B)];var Th8=new Set("audio_badge offline_pause pause play_all play_arrow youtube_music".split(" ")),w5j=function(J){this.urlProvider=this.iconUrlProvider=J};
_.D(w5j,gl);
w5j.prototype.resolveIcon=function(J,c){J.iconName==="youtube_logo"&&(J.iconName="yt-logo-updated");if(J.iconName==="youtube_premium_logo"||J.iconName==="youtube_red_logo")J.iconName="yt-logo-red-updated";var m=Object.assign({},J);J.iconName==="menu"&&(_.w("enable_web_delhi_icons")||(m.iconName="bars_3"),m.iconStyle="youtube_outline");J.iconSetName==="socialNetworksRound"&&(J.iconName==="mail"&&(m.iconName="email"),J.iconName==="embed"&&(m.iconSize=60));J.iconName==="more"&&(m.iconName="overflow_horizontal");
J.iconName==="fullscreen"&&(m.iconName="screen_full");J.iconName==="premium_standalone"&&(m.iconName="premium_standalone_cairo");_.w("enable_connect_icon_update_web")&&J.iconName==="account_linked"&&(m.iconName="circles_overlap_check",m.iconStyle="youtube_fill");_.w("enable_connect_icon_update_web")&&J.iconName==="account_unlinked"&&(m.iconName="circles_overlap",m.iconStyle="youtube_outline");Th8.has(J.iconName)&&(m.iconStyle="youtube_fill");_.w("enable_web_delhi_icons")&&J.iconName==="playlist_add"&&
(m.iconName="bookmark");J=Object.assign({},m,{iconName:(gl.prototype.mapIconTypeToStandardName.call(this,m.iconName)||m.iconName).toLowerCase()});var b;return(J=ib2(Nh_,J,((b=this.urlProvider)==null?void 0:b.getUrl)||rpG,c))?J:gl.prototype.resolveIcon.call(this,m,c)};
w5j[RE]=[_.y6(I6B)];_.rBL=1;var JY=function(){};
_.D(JY,X9);JY.prototype.resolveCommand=function(J){var c,m;return _.N(function(b){c=_.L(J,Rh_);if(!c)return b.return();m=Number(c.enableDelayedPacfLoggingTvMs);if(isNaN(m)){var x=by();lM6(x,c,0)}else lM6(by(),c,m);_.tD(b)})};_.cc=function(){};
_.D(_.cc,X9);
_.cc.prototype.resolveCommand=function(J,c){var m=this,b,x,P,p,t,I,a;return _.N(function(k){b=_.L(J,oRQ);P=(x=c.form)==null?void 0:x.element;t=(p=P)==null?void 0:p.closest("ytd-enforcement-message-view-model");if(!b||!t)return k.return();m.allowAdsAction||(I=b.fundingChoiceInstructionPageUrl,m.allowAdsAction=new T7z(window,_.Y$(I)));var H=m.allowAdsAction;H.wallElement=t;H.allowAdsPopup.style.setProperty("display","flex","important");var T=H.scrollManager;T.originalBodyOverflow=T.JSC$8010_domHelper.JSC$7337_document_.body.style.overflow;T.JSC$8010_domHelper.JSC$7337_document_.body.style.overflow=
"hidden";H.wallElement.style.setProperty("display","none","important");Z6Q(H.accessibilityManager,H.allowAdsPopup.querySelector(".fc-whitelist-dialog"));if((a=m.allowAdsAction.allowAdsPopup)&&a instanceof HTMLElement)for(H=_.M(Object.entries({position:"absolute","z-index":"10000",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),T=H.next();!T.done;T=H.next()){var r=_.M(T.value);T=r.next().value;r=r.next().value;a.style.setProperty(T,r)}_.tD(k)})};
_.cc.prototype.dispose=function(){this.allowAdsAction&&(this.allowAdsAction.tearDown(),this.allowAdsAction=void 0)};var m2=function(){};
_.D(m2,X9);m2.prototype.resolveCommand=function(J){var c;return _.N(function(m){c=_.L(J,mD$);if(!c)return m.return();sp2(J);_.tD(m)})};var bx=function(J){this.JSC$15063_commandHandler=J};
_.D(bx,X9);
bx.prototype.resolveCommand=function(J){var c=this,m,b,x,P,p,t,I,a;return _.N(function(k){if(k.nextAddress==1){m=_.L(J,u8z);if((b=m)==null||!b.text||!navigator.clipboard)return k.return();_.xL(k,2);return _.K(k,navigator.clipboard.writeText(m.text),4)}if(k.nextAddress!=2){if(!m.successActions||m.successActions.length===0)return k.return();x=_.M(m.successActions);for(P=x.next();!P.done;P=x.next())p=P.value,c.JSC$15063_commandHandler.resolveCommand(p);return _.EO(k,0)}_.NM(k);if(!m.failureActions||m.failureActions.length===
0)return k.return();t=_.M(m.failureActions);for(I=t.next();!I.done;I=t.next())a=I.value,c.JSC$15063_commandHandler.resolveCommand(a);_.tD(k)})};
bx[RE]=[_.gu];var xQ=function(J){this.JSC$15067_commandHandler=J};
_.D(xQ,X9);
xQ.prototype.resolveCommand=function(J,c){var m=this,b,x,P,p,t,I,a,k,H,T;return _.N(function(r){switch(r.nextAddress){case 1:b=_.L(J,NIQ);if(!b)return r.return();_.xL(r,2);if(!b.imageBytes&&!b.imageUrl)throw Error("ui");if(!b.imageUrl){if(b.imageBytes){P=b.imageBytes;p=P.replace(/-/g,"+").replace(/_/g,"/");var W=Lgm(p);x=_.wa(W)}r.jumpTo(4);break}return _.K(r,fetch(b.imageUrl),5);case 5:return t=r.yieldResult,_.K(r,t.blob(),6);case 6:I=r.yieldResult,x=_.wa(I);case 4:H=(a=c)==null?void 0:(k=a.form)==
null?void 0:k.element;T=document.createElement("a");W0(T,x);H.appendChild(T);T.download="";T.click();H.removeChild(T);URL.revokeObjectURL(_.ah(x));b.successCommand&&m.JSC$15067_commandHandler.resolveCommand(b.successCommand);_.EO(r,0);break;case 2:_.NM(r),b.errorCommand&&m.JSC$15067_commandHandler.resolveCommand(b.errorCommand),_.tD(r)}})};
xQ[RE]=[_.gu];var Vj=function(J){this.store=J};
_.D(Vj,X9);Vj.prototype.resolveCommand=function(J){var c=this,m,b,x;return _.N(function(P){b=(m=_.L(J,_.vdz))==null?void 0:m.entityBatchUpdate;if(!b)return P.jumpTo(0);x=Object.assign({},b,{mutations:[].concat(_.L6(b.mutations||[]))});return _.K(P,_.Ic(x,c.store),0)})};var sI_=function(J){this.JSC$15074_commandHandler=J;this.feedbackDialogMap=new Map};
sI_.prototype.openDialog=function(J,c){(J=this.feedbackDialogMap.get(J))&&this.JSC$15074_commandHandler.resolveCommand({openPopupAction:{popupType:"DIALOG",popup:J}},c)};
sI_[RE]=[_.gu];var Pc=new _.oE("FEEDBACK_CONTROLLER_TOKEN");var Mg=new _.oE("APP_STORE_TOKEN");var pA=function(J,c){this.store=J;this.controller=c};
_.D(pA,X9);pA.prototype.resolveCommand=function(J,c){var m=this,b,x,P,p,t,I,a,k,H,T,r,W,Y,Z,d,G,e;return _.N(function(A){if(A.nextAddress==1){b=_.L(J,_.uc);if(P=(x=b)==null?void 0:x.contentId)for(t=_.M(((p=b)==null?void 0:p.actions)||[]),I=t.next();!I.done;I=t.next())a=I.value,L3C(m,a,P);T=(k=c)==null?void 0:(H=k.form)==null?void 0:H.element;return _.K(A,_.Vq(T,[J]).catch(function(){}),2)}r=A.yieldResult;
((W=r)==null?0:(Y=W.data)==null?0:(Z=Y.feedbackResponses)==null?0:Z.length)&&(G=(d=r.data.feedbackResponses[0])==null?void 0:d.followUpDialog)&&P&&(e=m.controller)!=null&&e.feedbackDialogMap.set(P,G);_.tD(A)})};
var L3C=function(J,c,m){var b=_.L(c,_.pX);if(b){b=_.M(b.commands||[]);for(var x=b.next();!x.done;x=b.next())L3C(J,x.value,m)}_.L(c,_.ay)&&J.store.dispatch(_.It("commandEntity",Y3R(m),{key:m,command:c}));_.L(c,OyB)&&J.store.dispatch(_.It("commandEntity",Y3R(m),{key:m,command:c}))};
pA[RE]=[Mg,Pc];var Ng=function(J){this.controller=J};
_.D(Ng,X9);Ng.prototype.resolveCommand=function(J,c){var m=this,b,x,P,p;return _.N(function(t){b=_.L(J,_.$H);P=(x=b)==null?void 0:x.targetId;if(((p=b)==null?void 0:p.signal)!=="TELL_US_WHY"||!P)return t.return();m.controller.openDialog(P,c);_.tD(t)})};
Ng[RE]=[Pc];var tY=function(J){this.store=J};
_.D(tY,X9);tY.prototype.resolveCommand=function(J,c){var m=this,b,x,P,p,t,I,a;return _.N(function(k){b=_.L(J,ZBJ);P=(x=b)==null?void 0:x.contentId;I=(p=c)==null?void 0:(t=p.form)==null?void 0:t.element;a=_.Vq(I,[J]);P&&m.undo(P);return _.K(k,a,0)})};
tY.prototype.undo=function(J){this.store.dispatch(_.It("commandEntity",Y3R(J),{key:J,command:void 0}))};
tY[RE]=[Mg];var IL=function(J){this.JSC$15089_commandHandler=J};
_.D(IL,X9);IL.prototype.resolveCommand=function(J){var c=this,m,b,x,P,p,t,I,a;return _.N(function(k){m=_.L(J,bdQ);b=m.flowStateKey;x=m.validationFailureCommand;P=m.submitValidFormCommand;p=OB(_.B8,[b||""]);t=_.L(p,VdQ);((I=t)==null?0:I.isValid)&&P&&c.JSC$15089_commandHandler.resolveCommand(P);((a=t)==null?0:a.isValid)||!x||c.JSC$15089_commandHandler.resolveCommand(x);_.tD(k)})};
IL[RE]=[_.gu];var KA=function(J){this.innertubeTransportService=J};
_.D(KA,X9);KA.prototype.resolveCommand=function(J,c){var m=this,b;return _.N(function(x){return _.K(x,_.ds(m.innertubeTransportService,J,(b=c)==null?void 0:b.form).then(function(P){var p,t;c==null||(p=c.commandController)==null||(t=p.onSuccess)==null||t.call(p,J,P)},function(P){var p,t;
c==null||(p=c.commandController)==null||(t=p.onServerError)==null||t.call(p,J,P)}),0)})};
KA[RE]=[_.zh];var CA=function(){};
_.D(CA,X9);CA.prototype.resolveCommand=function(J){var c,m,b,x;return _.N(function(P){if(c=_.L(J,_.Crz)){if(m=c.gtmId)b=_.Ub("GL",""),_.n9(m,b);(x=c.gtmData)&&_.TK(x)}_.tD(P)})};var aL=function(J,c){this.innertubeTransportService=J;this.JSC$15100_actionRouter=c};
_.D(aL,X9);aL.prototype.resolveCommand=function(J){var c=this,m,b;return _.N(function(x){m=_.L(J,Iv$);if(!m)return x.return();b=m.command;if(!b)return x.return();c.JSC$15100_actionRouter.triggerAction("yt-insert-rich-section-action",m);return _.K(x,_.ds(c.innertubeTransportService,b,{disableCache:!0}),0)})};
aL[RE]=[_.zh,OP];Wgt.bind(null,Zq);var DTZ=Wgt.bind(null,CbQ);u3Q.bind(null,Zq);var W3B=u3Q.bind(null,CbQ);Ydm.bind(null,Zq);var zKz=Ydm.bind(null,CbQ);var kQ=function(){};
_.D(kQ,X9);
kQ.prototype.resolveCommand=function(J){var c,m,b,x,P,p,t,I,a,k;return _.N(function(H){c=_.L(J,vga);if(!c)return H.return();b=((m=c.operations)==null?void 0:m.operations)||[];x=_.M(b);for(P=x.next();!P.done;P=x.next())if(p=P.value,p.insertItemSectionContent){var T=p.insertItemSectionContent,r=T.contents||[];T.insertByPositionInSection?DTZ(T.insertByPositionInSection.sectionTargetId,r,T.insertByPositionInSection.position):T.insertByRelativePositionInSection&&T.insertByRelativePositionInSection.sectionTargetId&&T.insertByRelativePositionInSection.itemTargetId&&
W3B(T.insertByRelativePositionInSection.sectionTargetId,T.insertByRelativePositionInSection.itemTargetId,r,T.insertByRelativePositionInSection.relativePosition)}else p.replaceSection?(T=p.replaceSection,r={},T.replaceByTargetId?r=T.replaceByTargetId:T.replaceByGroupId&&(r={targetId:T.replaceByGroupId.groupId,newContent:T.replaceByGroupId.newContent,undoKey:""}),r.newContent&&HLa(r.targetId,{continuationItems:[r.newContent]})):p.removeItem?(T=p.removeItem,T.removeByTargetId&&T.sectionTargetId&&zKz(T.sectionTargetId,
T.removeByTargetId.targetIds||[])):p.removeSection&&(p.removeSection.removeByTargetId?(t=void 0,uCj(((t=p.removeSection)==null?void 0:t.removeByTargetId.targetIds)||[])):p.removeSection.removeByGroupId&&(I=void 0,uCj(((I=p.removeSection)==null?void 0:I.removeByGroupId.groupIds)||[])));k=((a=c.operations)==null?void 0:a.scrollConfig)||{};f6$(k);_.tD(H)})};
var uCj=function(J){J=_.M(J);for(var c=J.next();!c.done;c=J.next())HLa(c.value,{continuationItems:[]})},f6$=function(J){if(J.scrollToItem){var c=J.scrollToItem.item||{},m=c.itemTargetId;
c=c.sectionTargetId;if(m&&c){var b=document.querySelector("[data-target-id="+c+"]"),x=b==null?void 0:b.querySelector("[data-target-id="+m+"]");b&&x&&setTimeout(function(){var P=x.offsetTop-b.offsetTop,p;if(((p=J.scrollToItem)==null?void 0:p.scrollPosition)==="SCROLL_POSITION_CENTER")P-=b.offsetHeight/2,P+=x.offsetHeight/2;else{var t;((t=J.scrollToItem)==null?void 0:t.scrollPosition)==="SCROLL_POSITION_END"&&(P-=b.offsetHeight,P+=x.offsetHeight)}b.scroll({top:P,behavior:"smooth"})},100)}}};var Hc=new _.oE("CLIENT_NAME_TOKEN");var YJz=new _.oE("DEFAULT_STORE_EXPIRATION_TOKEN");var QYu=new _.oE("CLIENT_LOCATION_SERVICE_TOKEN");var ix=function(J,c,m){this.clientName=J||_.Ub("INNERTUBE_CLIENT_NAME","WEB");this.clientLocationService=c||_.Lv.getInstance();this.JSC$15128_commandHandler=m||_.p7.instance};
_.D(ix,X9);ix.prototype.resolveCommand=function(J){var c=this,m,b;return _.N(function(x){b=(m=_.L(J,lKL))==null?void 0:m.onComplete;c.clientLocationService.clearLocationPlayabilityToken(c.clientName);b&&c.JSC$15128_commandHandler.resolveCommand(b);_.tD(x)})};
ix[RE]=[Hc,QYu,_.gu];var nA=function(J){this.innertubeTransportService=J};
_.D(nA,X9);nA.prototype.resolveCommand=function(J,c){var m=this,b,x,P,p;return _.N(function(t){P=(b=c)==null?void 0:(x=b.form)==null?void 0:x.element;return _.K(t,_.ds(m.innertubeTransportService,J,(p=c)==null?void 0:p.form).then(function(I){uVT(P,new CustomEvent("yt-service-request-completed"),{data:I},_.Ub("openPopupConfig"))}),0)})};
nA[RE]=[_.zh];var TS=function(){};
_.D(TS,X9);TS.prototype.resolveCommand=function(J){var c,m;return _.N(function(b){c=_.L(J,NCQ);m=document.querySelector("mini-app-container-view-model");if(!c||!m)return b.return();c.isPlaying?m.dispatchEvent(new Event("play")):m.dispatchEvent(new Event("pause"));_.tD(b)})};var wA=function(){};
_.D(wA,X9);wA.prototype.resolveCommand=function(J){var c,m,b,x,P,p,t;return _.N(function(I){c=_.L(J,MGj);if((m=c)==null||!m.paramKeys)return I.return();b=c.paramKeys;x=_.O7(window.location.href);P=_.M(b);for(p=P.next();!p.done;p=P.next())t=p.value,x.JSC$8042_queryData_.remove(t);window.history.replaceState(window.history.state,document.title,x.toString());_.tD(I)})};var X5$=function(){this.dropdownMap=new Map};_.Zm$=new _.oE("DROPDOWN_CONTROLLER_TOKEN");var rA=function(J){this.controller=J};
_.D(rA,X9);rA.prototype.resolveCommand=function(J){var c=this,m,b,x,P;return _.N(function(p){m=_.L(J,vU_);if(!m)return p.return();b=m;x=b.dropdownId;P=b.selectedOptionIndex;if(x===void 0||P===void 0)return p.return();var t=c.controller.dropdownMap.get(x);t&&t(P);_.tD(p)})};
rA[RE]=[_.Zm$];var sR=function(J){this.controller=J};
_.D(sR,X9);sR.prototype.resolveCommand=function(J){var c=this,m;return _.N(function(b){return(m=_.L(J,xbQ))?_.K(b,c.controller.closeDialog(),0):b.return()})};
sR[RE]=[_.rW];var LA=function(J){this.controller=J};
_.D(LA,X9);LA.prototype.resolveCommand=function(J){var c=this,m,b;return _.N(function(x){m=_.L(J,E1Q);if(!m)return x.return();var P,p=m.panelIdentifier||((P=m.identifier)==null?void 0:P.tag);if(!p)throw Error("vi");return(b=p)?_.K(x,c.controller.hidePanel(b),0):x.jumpTo(0)})};
LA[RE]=[_.Tr];var DJ=function(J,c){this.innertubeTransportService=J;this.controller=c};
_.D(DJ,X9);DJ.prototype.resolveCommand=function(J){var c=this,m,b,x,P;return _.N(function(p){if(p.nextAddress==1)return m=_.L(J,v1j),(b=m)!=null&&b.panelId?_.K(p,c.controller.getReloadContinuation(m.panelId),2):p.return();if(p.nextAddress!=3)return(x=p.yieldResult)?_.K(p,_.ds(c.innertubeTransportService,J,{continuation:x}),3):p.return();P=p.yieldResult;return _.K(p,c.controller.updatePanel(m.panelId,P.content,!1),0)})};
DJ[RE]=[_.zh,_.Tr];var Wc=function(J,c,m){this.innertubeTransportService=J;this.JSC$15164_screenManager=c;this.JSC$15164_commandHandler=m};
_.D(Wc,X9);
Wc.prototype.resolveCommand=function(J){var c=this,m,b,x,P,p,t;return _.N(function(I){if(I.nextAddress==1){m=_.L(J,_.Xsu);if(!m)return I.return();if(m.commands)for(b=_.M(m.commands),x=b.next();!x.done;x=b.next())P=x.value,c.JSC$15164_commandHandler.resolveCommand(P,{disableClickTracking:!0});p=_.n7(J.clickTrackingParams);_.ge(c.JSC$15164_screenManager,21760,p,{layer:7,parentLayer:0});return _.K(I,_.ds(c.innertubeTransportService,J),2)}t=I.yieldResult;if(!t)return I.return();c.JSC$15164_screenManager.graftServerVe(t.trackingParams,p,
7);_.tD(I)})};
Wc[RE]=[_.zh,_.no,_.gu];var zS=new _.oE("PANEL_LOADING_STRATEGY_TOKEN");var ux=function(J,c){this.controller=J;this.panelLoadingStrategy=c};
_.D(ux,X9);
ux.prototype.resolveCommand=function(J,c){var m=this,b,x,P;return _.N(function(p){b=_.L(J,LO6);if((x=b)==null||!x.panelLoadingStrategy)return p.return();P=function(t){var I,a,k,H,T,r,W,Y,Z;return _.N(function(d){a=_.L((I=t.dialogViewModel)==null?void 0:I.header,OVC);k={viewModel:t.dialogViewModel};H={};if(W=_.w("web_enable_dialog_header_label")?(T=a)==null?void 0:(r=T.headline)==null?void 0:r.content:void 0)H.ariaLabel=W;b.dismissOnBackgroundTap===!1&&(H.isModal=!0);return t.dialogViewModel?_.K(d,
m.controller.openDialog(k,(Y=c)==null?void 0:(Z=Y.form)==null?void 0:Z.element,H),0):d.return()})};
return _.K(p,m.panelLoadingStrategy.execute({command:J,data:b.panelLoadingStrategy,renderFn:P,createScreenConfig:{layer:4}}),0)})};
ux[RE]=[_.rW,zS];var fA=function(J,c,m){this.innertubeTransportService=J;this.controller=c;this.JSC$15184_screenManager=m};
_.D(fA,X9);
fA.prototype.resolveCommand=function(J,c){var m=this,b,x,P,p,t,I,a,k,H,T,r,W;return _.N(function(Y){switch(Y.nextAddress){case 1:b=_.L(J,_.zt);if(!b)return Y.return();var Z,d=b.panelIdentifier||((Z=b.identifier)==null?void 0:Z.tag);if(!d)throw Error("vi");x=d;return _.K(Y,m.controller.isVisible(x,!0),2);case 2:if((P=Y.yieldResult)&&b.blockIfPanelOpen)return Y.return();I=(t=(p=m.controller).getPanelContent)==null?void 0:t.call(p,x);if(!(Z=I))if(b){var G;Z=((G=b.globalConfiguration)==null?void 0:G.initialState)||
b.engagementPanel;if(G=!Z)G=!!(b==null?0:(d=b.engagementPanelPresentationConfigs)==null?0:d.engagementPanelPopupPresentationConfig);G&&(Z=_.X_o(b.panelIdentifier,b.identifier))}else Z=void 0;a=Z;k=b.engagementPanelPresentationConfigs;H=b.engagementPanelExtras;return _.K(Y,m.controller.showPanel(x,a,k,H,(T=c)==null?void 0:(r=T.form)==null?void 0:r.element),3);case 3:if(!b.globalConfiguration){Y.jumpTo(0);break}_.ge(m.JSC$15184_screenManager,32633);return _.K(Y,_.ds(m.innertubeTransportService,J),5);
case 5:return W=Y.yieldResult,m.JSC$15184_screenManager.graftServerVe(W.trackingParams),_.K(Y,m.controller.updatePanel(x,W.content,!0,H,void 0,W.updatePanelContinuationData),0)}})};
fA[RE]=[_.zh,_.Tr,_.no];var YQ=function(J,c){this.controller=J;this.panelLoadingStrategy=c};
_.D(YQ,X9);YQ.prototype.resolveCommand=function(J,c){var m=this,b,x,P,p,t,I;return _.N(function(a){b=_.L(J,_.KK);if((x=b)==null||!x.panelLoadingStrategy)return a.return();t=qJZ(m.controller,(P=c)==null?void 0:(p=P.form)==null?void 0:p.element);I=function(k){return _.N(function(H){return k.sheetViewModel?_.K(H,m.controller.openSheet({viewModel:k.sheetViewModel},t),0):H.return()})};
return _.K(a,m.panelLoadingStrategy.execute({command:J,data:b.panelLoadingStrategy,renderFn:I,createScreenConfig:{layer:0}}),0)})};
YQ[RE]=[_.wW,zS];var XV=function(J,c){this.controller=J;this.JSC$15192_commandHandler=c};
_.D(XV,X9);XV.prototype.resolveCommand=function(J,c){var m=this,b,x,P;return _.N(function(p){if(p.nextAddress==1){b=_.L(J,o1Q);var t=_.L(b.showCommand,_.zt),I,a,k=(a=t==null?void 0:t.panelIdentifier)!=null?a:t==null?void 0:(I=t.identifier)==null?void 0:I.tag;if(!k)throw Error("wi");x=k;return _.K(p,m.controller.isVisible(x),2)}return(P=p.yieldResult)?_.K(p,m.controller.hidePanel(x),0):_.K(p,m.JSC$15192_commandHandler.resolveCommand(b.showCommand,c),0)})};
XV[RE]=[_.Tr,_.gu];var ZJ=function(J,c,m){this.innertubeTransportService=J;this.controller=c;this.JSC$15195_screenManager=m};
_.D(ZJ,X9);
ZJ.prototype.resolveCommand=function(J){var c=this,m,b,x,P,p,t,I,a,k,H,T,r,W,Y,Z,d,G,e,A,l,y,pG;return _.N(function(kt){switch(kt.nextAddress){case 1:return b=m=_.L(J,QEa),x=b.targetPanelIdentifier,P=b.contentSourcePanelIdentifier,p=b.globalConfiguration,((t=x)==null?0:t.tag)&&((I=P)==null?0:I.tag)?p?_.K(kt,c.controller.showPanel(x.tag,_.X_o(x.tag,x),void 0,void 0,void 0),5):_.K(kt,(T=(H=c.controller).getPanel)==null?void 0:T.call(H,P.tag),4):kt.return();case 4:r=kt.yieldResult;a=(W=r)==null?void 0:
(Z=(Y=W).getPanelContent)==null?void 0:Z.call(Y);kt.jumpTo(3);break;case 5:return _.K(kt,_.ds(c.innertubeTransportService,J),6);case 6:d=kt.yieldResult,((G=d)==null?0:G.trackingParams)&&c.JSC$15195_screenManager.graftServerVe(d.trackingParams),a=(e=d)==null?void 0:e.content,k=(A=d)==null?void 0:A.updatePanelContinuationData;case 3:if(y=(l=a)==null?void 0:l.engagementPanelSectionListRenderer)return _.K(kt,c.controller.showPanel(x.tag,void 0,void 0,void 0,void 0,{content:y.content,secondaryHeaderContent:(pG=
y.header)!=null?pG:{},targetId:y.targetId},k),0);kt.jumpTo(0)}})};
ZJ[RE]=[_.zh,_.Tr,_.no];var qg=function(J,c){this.JSC$15204_commandHandler=J;this.store=c};
_.D(qg,X9);
qg.prototype.resolveCommand=function(J){var c=this,m,b,x,P,p,t;return _.N(function(I){if(I.nextAddress==1)return(m=_.L(J,mb_))?_.K(I,_.mf(),2):I.return();b=I.yieldResult;if(!b)return I.return();var a=b,k=c.store,H=(x=m)==null?void 0:x.languageCode,T=(P=m)==null?void 0:P.isAutoTranslated;if(a.getVideoData&&_.qdR(a).length){H=SdT(a,H,T);var r=_.V_("/youtube/app/player_caption_language_entity_key","stringEntity",2),W;k.dispatch(_.It("stringEntity",r,{key:r,value:T?(H==null?void 0:(W=H.translationLanguage)==null?
void 0:W.languageName)||"":(H==null?void 0:H.displayName)||(H==null?void 0:H.languageName)||""}));H?a.setOption("captions","track",H):(a.setOption("captions","stickyLoading",{}),a.setOption("captions","track",{}))}p=b.isSubtitlesOn()?_.CX("CAPTION_ON_TOAST",void 0,"Subtitles/CC turned on"):_.CX("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");t=_.ek(p);c.JSC$15204_commandHandler.resolveCommand(t);_.tD(I)})};
qg[RE]=[_.gu,PH];var UR=function(J,c){this.shortsPlayerPromise=J;this.JSC$15208_commandHandler=c};
_.D(UR,X9);
UR.prototype.resolveCommand=function(J){var c=this,m,b,x,P,p,t,I,a;return _.N(function(k){if(k.nextAddress==1)return(m=_.L(J,ncQ))?_.K(k,c.shortsPlayerPromise,2):k.return();b=k.yieldResult;var H=hxm(b);H!=null&&H.length||(b.loadModule("captions"),H=hxm(b));x=H;if((P=x)==null||!P.length)return p=_.CX("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),t=_.ek(p),c.JSC$15208_commandHandler.resolveCommand(t),k.return();b.toggleSubtitles();I=b.isSubtitlesOn()?_.CX("CAPTION_ON_TOAST",void 0,
"Subtitles/CC turned on"):_.CX("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");a=_.ek(I);c.JSC$15208_commandHandler.resolveCommand(a);_.tD(k)})};
UR[RE]=[_.bYL,_.gu];var Se=function(J){this.JSC$15211_playerPromise=J};
_.D(Se,X9);Se.prototype.resolveCommand=function(J){var c=this,m,b,x,P;return _.N(function(p){if(p.nextAddress==1)return(m=_.L(J,AiL))?_.K(p,c.JSC$15211_playerPromise,2):p.return();b=p.yieldResult;x=b.getVideoData().video_id;m.videoId===x&&(P=Number(m.offsetFromVideoStartMilliseconds),P>=0&&b.seekTo(P/1E3));_.tD(p)})};
Se[RE]=[_.BP];var UTa=_.V_("sfv_currently_playing_audio_item_key","sfvAudioItemCurrentlyPlayingEntity"),hY=function(J){this.store=J};
_.D(hY,X9);
var SJB=function(J){var c,m,b,x;return _.N(function(P){if(P.nextAddress==1)return c=_.Ub("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SFV_AUDIO_ITEM,m=_.Ub("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_MWEB_SFV_AUDIO_ITEM,b=c||m,J.mainAppPlayer=new Ox(b),_.K(P,J.mainAppPlayer.api,2);x=P.yieldResult;x.addEventListener("onStateChange",J.JSC$15215_playerStateChangeListener.bind(J));document.addEventListener("yt-page-data-updated",J.pauseOnNavigation.bind(J));window.addEventListener("state-navigatestart",
J.pauseOnNavigation.bind(J));_.tD(P)})};
hY.prototype.JSC$15215_playerStateChangeListener=function(J){switch(J){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"}hKL(this)};
var hKL=function(J){J.store.dispatch(_.It("sfvAudioItemCurrentlyPlayingEntity",UTa,{key:UTa,externalVideoId:J.externalVideoId,sfvAudioItemPlaybackState:J.playbackState,nowPlayingEntityValue:J.nowPlayingEntityValue}))};
hY.prototype.pauseOnNavigation=function(){var J=this,c,m,b,x;return _.N(function(P){if(P.nextAddress==1){if(!J.mainAppPlayer){var p=new _.w3("Error: mainAppPlayer is unavailable",J.mainAppPlayer);_.Xc(p);return P.return()}return _.K(P,J.mainAppPlayer.api,2)}c=P.yieldResult;b=(m=c)==null?void 0:m.getPlayerState();b!==1||(x=c)!=null&&x.pauseVideo();_.tD(P)})};
hY.prototype.playVideo=function(J,c,m){var b=this,x,P;return _.N(function(p){if(p.nextAddress==1)return _.K(p,(x=b.mainAppPlayer)==null?void 0:x.api,2);P=p.yieldResult;if(!b.mainAppPlayer||!P){var t=new _.w3("Error: mainAppPlayer is unavailable",b.mainAppPlayer);_.Xc(t);return p.return()}return _.K(p,b.mainAppPlayer.loadVideoWithPlayerVars({videoId:b.externalVideoId,audio_only:"1",start:J/1E3,end:J/1E3+c,player_params:m}),0)})};
hY.prototype.pauseVideo=function(){var J=this,c,m;return _.N(function(b){if(b.nextAddress==1){if(!J.mainAppPlayer){var x=new _.w3("Error: mainAppPlayer is unavailable",J.mainAppPlayer);_.Xc(x);return b.return()}return _.K(b,J.mainAppPlayer.api,2)}c=b.yieldResult;(m=c)==null||m.pauseVideo();_.tD(b)})};
hY.prototype.resolveCommand=function(J){var c=this,m,b,x,P,p,t,I,a,k,H,T,r,W,Y,Z,d,G,e,A;return _.N(function(l){if(l.nextAddress==1)return m=_.L(J,arC),x=(b=m)==null?void 0:b.nowPlayingEntityValue,p=(P=m)==null?void 0:P.externalVideoId,H=Number((k=(t=m)==null?void 0:(I=t.defaultStartPoints)==null?void 0:(a=I[0])==null?void 0:a.offsetMs)!=null?k:"0"),d=Number((Z=(T=m)==null?void 0:(r=T.defaultStartPoints)==null?void 0:(W=r[0])==null?void 0:(Y=W.duration)==null?void 0:Y.seconds)!=null?Z:"15"),A=(e=
(G=m)==null?void 0:G.playerParams)!=null?e:"",x&&p?c.mainAppPlayer?l.jumpTo(2):_.K(l,SJB(c),2):l.return();if(l.nextAddress!=6){if(c.nowPlayingEntityValue&&x===c.nowPlayingEntityValue)return c.playbackState==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"?_.K(l,c.pauseVideo(),0):_.K(l,c.playVideo(H,d,A),0);c.externalVideoId=p;c.nowPlayingEntityValue=x;c.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";return _.K(l,c.playVideo(H,d,A),6)}hKL(c);return l.jumpTo(0)})};
hY[RE]=[PH];var dA=function(J){this.JSC$15234_commandHandler=J};
_.D(dA,X9);dA.prototype.resolveCommand=function(J,c){var m=this,b,x,P,p,t;return _.N(function(I){if(I.nextAddress==1)return(b=_.L(J,bI6))?_.K(I,_.mf(),2):I.return();x=I.yieldResult;if(!x)return I.return();(P=vat(x))?m.JSC$15234_commandHandler.resolveCommand(P,c):(p=_.CX("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),t=_.ek(p),m.JSC$15234_commandHandler.resolveCommand(t));_.tD(I)})};
dA[RE]=[_.gu];var $Q=function(J){this.JSC$15237_playerPromise=J};
_.D($Q,X9);$Q.prototype.resolveCommand=function(J){var c=this,m,b,x,P,p;return _.N(function(t){if(t.nextAddress==1){m=_.L(J,R6C);if(!m)return t.return();b=m.overlayRenderer;return b?(x=_.L(b,mZz))?_.K(t,c.JSC$15237_playerPromise,3):t.jumpTo(0):t.return()}P=t.yieldResult;P.renderChapterSeekingAnimation(1,_.OG(x.text),(p=x.icon)==null?void 0:p.iconType);_.tD(t)})};
$Q[RE]=[_.BP];var GS=function(J){this.store=J};
_.D(GS,X9);
GS.prototype.resolveCommand=function(J){var c=this,m,b,x;return _.N(function(P){if(P.nextAddress==1){m=_.L(J,Vnu);if(!m)return P.return();b="";(x=c.store.getState().collabInviteLink)&&m.id===x.playlistId?b=x.inviteLinkURL:m.shortUrl&&(b=m.shortUrl);return b?_.K(P,navigator.clipboard.writeText(b),3):P.jumpTo(0)}var p={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.CX("COPY_LINK_SUCCESS_TOAST")}}}}};_.BG().resolve(_.gu).resolveCommand(p);_.tD(P)})};
GS[RE]=[Mg];var ER=function(J,c){this.innertubeTransportService=J;this.JSC$15247_commandHandler=c};
_.D(ER,X9);ER.prototype.resolveCommand=function(J,c){var m=this,b,x,P,p,t,I,a,k,H,T;return _.N(function(r){if(r.nextAddress==1)return(b=_.L(J,_.XI))?_.K(r,_.ds(m.innertubeTransportService,J,(x=c)==null?void 0:x.form),2):r.return();(P=r.yieldResult)&&P.errorMetadata&&(p=P,t=_.ek(p.error.message),m.JSC$15247_commandHandler.resolveCommand(t));I=P;if((a=I)==null?0:a.actions)for(k=_.M(I.actions),H=k.next();!H.done;H=k.next())T=H.value,m.JSC$15247_commandHandler.resolveCommand(T);_.tD(r)})};
ER[RE]=[_.zh,_.gu];var vc=function(){};
_.D(vc,X9);vc.prototype.resolveCommand=function(J){var c;return _.N(function(m){c=_.L(J,lva);if(!c)return m.return();(new x9Q(c)).show();_.tD(m)})};_.OR=new _.oE("PLAYLIST_EDIT_CONTROLLER_TOKEN");var AY=function(J,c,m,b){this.store=J;this.innertubeTransportService=c;this.controller=m;this.JSC$15255_commandHandler=b};
_.D(AY,X9);
AY.prototype.resolveCommand=function(J,c){var m=this,b,x,P,p,t,I,a,k,H,T,r,W,Y,Z,d,G,e,A,l,y,pG,kt,nG,fG,Yt,Z3;return _.N(function(oR){if(oR.nextAddress==1){b=_.L(J,_.DA);if(!b)return oR.return();if(b.clientActions){x=_.M(b.clientActions);for(P=x.next();!P.done;P=x.next())p=P.value,m.JSC$15255_commandHandler.resolveCommand(p);var Em,X$=c==null?void 0:(Em=c.form)==null?void 0:Em.element;X$&&_.cA(X$,"yt-dismissible-item-action",b.clientActions)}return _.K(oR,_.ds(m.innertubeTransportService,J,(t=c)==
null?void 0:t.form),2)}if(I=oR.yieldResult)I.errorMetadata?(a=I,k=_.ek(a.error.message),m.JSC$15255_commandHandler.resolveCommand(k),"error"in I&&((H=c)==null?0:(T=H.commandController)==null?0:T.onServerError)&&((r=c)==null||(W=r.commandController)==null||W.onServerError(J,I))):(Y=c)==null||(Z=Y.commandController)==null||(G=(d=Z).onSuccess)==null||G.call(d,J,I);e=I;((A=e)==null?0:A.collaborationInviteLink)&&b.playlistId&&(_.w("web_enable_invite_collaborators_link")||_.w("enable_music_web_cairo_new_collaborators_list_and_actions"))&&
m.store.dispatch(_.J7({type:"SET_COLLAB_INVITE_LINK",payload:{playlistId:b.playlistId,inviteLinkUrl:e.collaborationInviteLink}}));((l=e)==null?0:l.redirectEndpoint)&&m.JSC$15255_commandHandler.resolveCommand(e.redirectEndpoint);((y=e)==null?0:(pG=y.newHeader)==null?0:pG.playlistHeaderRenderer)?dTC(m.controller,e.newHeader.playlistHeaderRenderer):((kt=e)==null?0:(nG=kt.newHeader)==null?0:nG.musicEditablePlaylistDetailHeaderRenderer)&&dTC(m.controller,e.newHeader.musicEditablePlaylistDetailHeaderRenderer);
m.controller.playlistVideoListElement&&((fG=e)==null?0:(Yt=fG.playlistEditResults)==null?0:(Z3=Yt[0])==null?0:Z3.playlistEditVideoAddedResultData)&&((X$=m.controller.playlistVideoListElement)==null||X$.dispatchEvent(new CustomEvent("yt-update-set-video-id",{detail:e.playlistEditResults[0].playlistEditVideoAddedResultData})));_.tD(oR)})};
AY[RE]=[Mg,_.zh,_.OR,_.gu];var RL=function(J,c){this.controller=J;this.JSC$15265_commandHandler=c};
_.D(RL,X9);RL.prototype.resolveCommand=function(J,c){var m=this,b,x,P;return _.N(function(p){b=_.L(J,P0Q);m.controller.showRefreshPill&&((x=b)==null?0:x.command)&&(m.JSC$15265_commandHandler.resolveCommand((P=b)==null?void 0:P.command,c),m.controller.showRefreshPill=!1);_.tD(p)})};
RL[RE]=[_.Bp,_.gu];var oL=function(J,c){this.store=J;this.JSC$15269_commandHandler=c||_.p7.instance};
_.D(oL,X9);oL.prototype.resolveCommand=function(J,c){var m=this,b,x,P,p,t,I,a,k,H,T;return _.N(function(r){b=_.L(J,T9a);x=m.store.getState().radioButtonGroup;if((P=b)==null?0:P.command)m.JSC$15269_commandHandler.resolveCommand((p=b)==null?void 0:p.command,c);else if(((t=b)==null?void 0:t.formId)===x.currentFormId)for(I=Object.values(x.commandsMap),a=_.M(I),k=a.next();!k.done;k=a.next()){H=k.value;T=_.ZG(H);if(!T)return r.return();m.JSC$15269_commandHandler.resolveCommand(T,c)}_.tD(r)})};
oL[RE]=[Mg];var Qj=new _.oE("USER_PREFS");var ee=function(J){this.JSC$15273_prefCookie=J};
_.D(ee,X9);ee.prototype.resolveCommand=function(J){var c=this,m;return _.N(function(b){(m=_.L(J,OZQ))&&typeof m.useListView==="boolean"&&(_.iJ(0,155,m.useListView),c.JSC$15273_prefCookie.save());_.tD(b)})};
ee[RE]=[Qj];var je=function(J){this.JSC$15277_prefCookie=J};
_.D(je,X9);je.prototype.resolveCommand=function(J){var c=this,m,b,x,P,p;return _.N(function(t){m=_.L(J,Bx6);if((b=m)==null||!b.gl)return t.return();x=m.gl;P={persist_gl:"1",gl:x};c.JSC$15277_prefCookie.set("gl",x);c.JSC$15277_prefCookie.save();p=Kju(P);_.dB(p);_.tD(t)})};
je[RE]=[Qj];var FV=function(J){this.JSC$15281_prefCookie=J};
_.D(FV,X9);FV.prototype.resolveCommand=function(J){var c=this,m,b;return _.N(function(x){m=_.L(J,pe6);if(!m)return x.return();b=!1;m.flagNum&&typeof m.value==="boolean"?(_.iJ(0,m.flagNum,m.value),b=!0):m.key&&typeof m.stringValue==="string"&&(c.JSC$15281_prefCookie.set(m.key,m.stringValue),b=!0);b&&c.JSC$15281_prefCookie.save();_.tD(x)})};
FV[RE]=[Qj];var lx=new _.oE("PREF_STORAGE_PROMISE_TOKEN");var yj=function(J){this.JSC$15285_prefStoragePromise=J};
_.D(yj,X9);yj.prototype.resolveCommand=function(J){var c=this,m,b;return _.N(function(x){if(x.nextAddress==1)return(m=_.L(J,tnL))?_.K(x,c.JSC$15285_prefStoragePromise,2):x.return();b=x.yieldResult;return b===void 0||m.key===void 0||m.value===void 0?x.return():_.K(x,b.set(m.key,m.value),0)})};
yj[RE]=[lx];var $Tz=function(J){this.innertubeTransportService=J};
_.D($Tz,X9);$Tz.prototype.resolveCommand=function(J,c){var m=this,b,x;return _.N(function(P){(b=_.L(J,_.$wQ))&&b&&b.isFirstRequest&&(_.fX("search_overview_answer"),_.Y2("so_rq",void 0,"search_overview_answer"));return _.K(P,_.ds(m.innertubeTransportService,J,(x=c)==null?void 0:x.form),0)})};
$Tz[RE]=[_.zh];var GF2=function(){};
_.D(GF2,X9);
GF2.prototype.resolveCommand=function(J){var c,m,b,x,P,p,t,I,a;return _.N(function(k){c=_.L(J,OIQ);if((m=c)==null?0:m.sectionIdentifier){if(c.scrollBehaviorType==="SCROLL_BEHAVIOR_TYPE_SCROLL_INTO_VIEW"){if(x=(b=document.getElementsByTagName(c.sectionIdentifier))==null?void 0:b.item(0))x.scrollIntoView({behavior:"smooth"}),(P=OvJ(x))&&P.focus({preventScroll:!0});return k.return()}p=document.querySelector("[section-identifier="+c.sectionIdentifier+"]");t=document.querySelector("[section-identifier="+c.referenceSectionIdentifier+
"]");if(!p)return k.return();I=c.verticalScrollOffsetDp?c.verticalScrollOffsetDp:0;t&&(I-=t.offsetTop);window.scrollTo({top:p.offsetTop+I,behavior:"smooth"});(a=OvJ(p))&&a.focus({preventScroll:!0})}_.tD(k)})};var Bc=function(){};
_.D(Bc,X9);
Bc.prototype.resolveCommand=function(J){var c,m,b,x,P,p,t;return _.N(function(I){if(I.nextAddress==1){c=_.L(J,tTa);if(!c||!c.imageBytes||!navigator.clipboard)return I.return();if(c.clientShareDestination==="CLIENT_SHARE_DESTINATION_SYSTEM_SHARE_PANEL")return _.Xc(Error("yi")),I.return();_.xL(I,2);b=(m=c)==null?void 0:m.imageBytes;x=b.replace(/-/g,"+").replace(/_/g,"/");P=Lgm(x);p={};t=[new ClipboardItem((p[P.type]=P,p))];return _.K(I,navigator.clipboard.write(t),4)}if(I.nextAddress!=2)return _.EO(I,0);
_.NM(I);_.tD(I)})};var gA=function(J,c){this.innertubeTransportService=J;this.JSC$15300_commandHandler=c};
_.D(gA,X9);gA.prototype.resolveCommand=function(J,c){var m=this,b,x,P,p,t;return _.N(function(I){if(I.nextAddress==1)return(b=_.L(J,Ij8))?_.K(I,_.ds(m.innertubeTransportService,J,(x=c)==null?void 0:x.form),2):I.return();(P=I.yieldResult)&&P.errorMetadata&&b.onFailureCommand&&m.JSC$15300_commandHandler.resolveCommand(b.onFailureCommand);p=P;((t=p)==null?0:t.shareCommand)&&m.JSC$15300_commandHandler.resolveCommand(p.shareCommand,c);_.tD(I)})};
gA[RE]=[_.zh,_.gu];var JR=function(){};
_.D(JR,X9);JR.prototype.resolveCommand=function(J){var c,m;return _.N(function(b){c=_.L(J,xCC);if(!c||!navigator.share)return b.return();m={url:c.url};try{return b.return(navigator.share(m))}catch(x){}_.tD(b)})};var cJ=function(){};
_.D(cJ,X9);cJ.prototype.resolveCommand=function(){return _.N(function(J){window.dispatchEvent(new Event("yt-playables-ack-3p-data-usage"));_.tD(J)})};var m0=function(J){this.JSC$15310_navigationConfirmationService=J};
_.D(m0,X9);m0.prototype.resolveCommand=function(){var J=this;return _.N(function(c){J.JSC$15310_navigationConfirmationService.cancelPendingNavigation();_.tD(c)})};
m0[RE]=[tt];var bX=function(J){this.JSC$15313_screenManager=J};
_.D(bX,X9);bX.prototype.resolveCommand=function(J,c){var m=this,b,x,P,p,t,I,a;return _.N(function(k){x=(b=c.form)==null?void 0:b.event;p=(P=c.form)==null?void 0:P.element;if(!x)throw new _.w3("Event not passed in when resolving command");t=_.M(x.composedPath());for(I=t.next();!I.done;I=t.next())if(a=I.value,a.tagName==="YT-COPY-LINK-RENDERER")return a.copyUrlToClipboard(),p&&_.Ui(m.JSC$15313_screenManager,p),k.return();_.tD(k)})};
bX[RE]=[_.no];var xI=function(){this.JSC$15317_miniAppClientDataProvider=_.BG().resolve(_.ZR)};
_.D(xI,X9);xI.prototype.resolveCommand=function(){var J=this,c,m;return _.N(function(b){if(J.JSC$15317_miniAppClientDataProvider.clientData.has("video_id")){var x=J.JSC$15317_miniAppClientDataProvider,P=x.clientData.get("video_id");P&&x.clientData.delete("video_id");c="https://youtube.com/watch?v="+P;m=H0(c);if(m===void 0)throw Error("zi`"+c);_.Zx(window,m)}_.tD(b)})};var VO=function(){};
_.D(VO,X9);VO.prototype.resolveCommand=function(){return _.N(function(J){window.dispatchEvent(new Event("yt-playables-exit-mini-app-dialog-seen"));_.tD(J)})};var PJ=function(){};
_.D(PJ,X9);PJ.prototype.resolveCommand=function(){var J;return _.N(function(c){if(c.nextAddress==1)return _.K(c,_.KRR(window.document.documentElement),2);(J=document.querySelector("mini-app-container-view-model iframe"))&&J.focus();_.tD(c)})};var Mv=function(J){this.JSC$15324_navigationConfirmationService=J};
_.D(Mv,X9);
Mv.prototype.resolveCommand=function(){var J=this;return _.N(function(c){var m=J.JSC$15324_navigationConfirmationService,b=_.BG().resolve(_.C9),x;if(((x=m.navigateParams)==null?void 0:x.data)!==void 0){var P;_.yR_(b,m.navigateParams.endpoint,m.navigateParams.data,(P=m.navigateParams.navigationType)!=null?P:1,m.navigateParams.tempData,m.navigateParams.isMiniplayer,void 0,!0);m.navigateParams=void 0;m.customConfirmationCommand=void 0}else m.navigateParams&&(b.navigate(m.navigateParams.endpoint,m.navigateParams.reload,
m.navigateParams.params,m.navigateParams.tempData,m.navigateParams.requestType,m.navigateParams.createScreenConfig,!0),m.navigateParams=void 0,m.customConfirmationCommand=void 0);_.tD(c)})};
Mv[RE]=[tt];var pa=function(){};
_.D(pa,X9);pa.prototype.resolveCommand=function(){return _.N(function(J){window.dispatchEvent(new Event("yt-share-playable-with-high-score"));_.tD(J)})};var Nv=function(J){this.JSC$15329_prefStorage=J};
_.D(Nv,X9);Nv.prototype.resolveCommand=function(){var J=this,c,m;return _.N(function(b){switch(b.nextAddress){case 1:return _.K(b,J.JSC$15329_prefStorage,2);case 2:return(c=b.yieldResult)?_.K(b,c.set("sfvle",!1),3):b.return();case 3:return _.K(b,c.set("sfvles",!0),4);case 4:m=_.HA(),_.iJ(0,203,!1),_.iJ(0,204,!0),m.save(),_.tD(b)}})};
Nv[RE]=[lx];var tR=function(J){this.JSC$15332_prefStorage=J};
_.D(tR,X9);tR.prototype.resolveCommand=function(){var J=this,c,m;return _.N(function(b){switch(b.nextAddress){case 1:return _.K(b,J.JSC$15332_prefStorage,2);case 2:return(c=b.yieldResult)?_.K(b,c.set("sfvle",!0),3):b.return();case 3:return _.K(b,c.set("sfvles",!0),4);case 4:m=_.HA(),_.iJ(0,203,!0),_.iJ(0,204,!0),m.save(),_.tD(b)}})};
tR[RE]=[lx];var EjB=new _.oE("SNACKBAR_CONTROLLER_TOKEN");var Im=function(J){this.controller=J};
_.D(Im,X9);Im.prototype.resolveCommand=function(J){var c=this,m,b,x;return _.N(function(P){m=_.L(J,DDB);if(!m)return P.return();b=_.L(m.content,dDz);if(!b)return P.return();var p=c.controller,t=b,I=(x=m.animationStyle)!=null?x:"SNACKBAR_ANIMATION_STYLE_DEFAULT";if(p.showSnackbarFn)p.showSnackbarFn({snackbarViewModel:t,animationStyle:I,durationMs:m.durationSeconds*1E3});else throw Error("hj");_.tD(P)})};
Im[RE]=[EjB];var Ka=function(){};
_.D(Ka,X9);Ka.prototype.resolveCommand=function(J){var c;return _.N(function(m){c=_.L(J,N92);if(!c||typeof c.key!=="string"||typeof c.value!=="string")return m.return();window.localStorage.setItem(c.key,c.value);_.tD(m)})};var Ca=function(J){this.store=J};
_.D(Ca,X9);Ca.prototype.resolveCommand=function(J){var c=this,m;return _.N(function(b){m=_.L(J,Xho);if(!m||!m.stepId||!m.token)return b.return();c.store.dispatch(VOL({stepId:m.stepId,token:m.token,isSelected:!1}));_.tD(b)})};
Ca[RE]=[Mg];var am=function(J,c,m){this.innertubeTransportService=J;this.store=c;this.JSC$15348_screenManager=m};
_.D(am,X9);
am.prototype.resolveCommand=function(J){var c=this,m,b,x,P,p,t,I,a,k,H,T,r,W,Y,Z,d,G,e,A,l,y,pG,kt;return _.N(function(nG){m=_.L(J,Km_);if(!m||(b=m.stepIds)==null||!b.length)return nG.return();x=c.store.getState().talkToRecs;P=[];p=[];t=_.M(m.stepIds);for(I=t.next();!I.done;I=t.next())for(a=I.value,k=void 0,(H=(k=x.stepStates[a])==null?void 0:k.userQuery)&&p.push({userQuery:H.userQuery,userQueryToken:H.token}),T=void 0,r=(T=x.stepStates[a])==null?void 0:T.selectionStates,W=_.M(Object.entries(r)),Y=
W.next();!Y.done;Y=W.next())Z=Y.value,d=_.M(Z),G=d.next().value,e=d.next().value,A=G,l=e,l.isSelected&&P.push(A);y={selectedChipTokens:P,userQueries:p,submittedStepIds:m.stepIds};pG={browseTalk2recsFormData:y};m.browseEndpoint?(kt=J,_.zg(kt,_.I1,m.browseEndpoint)):m.command&&(kt=m.command);return kt?_.K(nG,_.ds(c.innertubeTransportService,kt,{formData:pG,disableCache:!0}).then(function(fG){(fG==null?0:fG.trackingParams)&&c.JSC$15348_screenManager.graftServerVe(fG==null?void 0:fG.trackingParams)}),
0):nG.return()})};
am[RE]=[_.zh,Mg,_.no];var kI=function(J){this.store=J};
_.D(kI,X9);kI.prototype.resolveCommand=function(J){var c=this,m;return _.N(function(b){m=_.L(J,YVo);if(!m||!m.stepId||!m.token)return b.return();c.store.dispatch(VOL({stepId:m.stepId,token:m.token,isSelected:!0}));_.tD(b)})};
kI[RE]=[Mg];var HJ=function(J){this.store=J};
_.D(HJ,X9);HJ.prototype.resolveCommand=function(J,c){var m=this,b,x,P,p,t;return _.N(function(I){b=_.L(J,Cc$);if(!b||!b.stepId||!b.userQueryToken)return I.return();t=(p=(x=c)==null?void 0:(P=x.form)==null?void 0:P.userQuery)!=null?p:"";m.store.dispatch(_.J7({type:"TALK_TO_RECS_UPDATE_USER_QUERY",payload:{stepId:b.stepId,userQueryToken:b.userQueryToken,userQuery:t}}));_.tD(I)})};
HJ[RE]=[Mg];_.vja=new _.oE("TIMELY_ACTIONS_CONTROLLER_TOKEN");var iX=function(J){this.controller=J};
_.D(iX,X9);iX.prototype.resolveCommand=function(J){var c=this,m,b,x,P;return _.N(function(p){m=_.L(J,GEZ);if(!m)return p.return();b=m;x=b.id;P=b.isVisible;if(x===void 0||P===void 0)return p.return();var t;(t=c.controller.timelyActionsMap.get(x))==null||t(x,P);_.tD(p)})};
iX[RE]=[_.vja];var OmZ=function(){this.timelyActionsMap=new Map};var na=function(J){this.JSC$15375_commandHandler=J};
_.D(na,X9);na.prototype.resolveCommand=function(J){var c=this,m,b,x,P,p;return _.N(function(t){m=_.L(J,_.CO);if(!m)return t.return();P=(b=m.item)==null?void 0:(x=b.notificationTextRenderer)==null?void 0:x.successResponseText;if(!P)return t.return();p=_.Q_(P);c.JSC$15375_commandHandler.resolveCommand(p);_.tD(t)})};
na[RE]=[_.gu];var Td=function(J,c){this.innertubeTransportService=J;this.JSC$15380_playerApiPromise=c};
_.D(Td,X9);
Td.prototype.resolveCommand=function(J){var c=this,m,b,x,P,p,t,I,a,k;return _.N(function(H){if(H.nextAddress==1)return _.K(H,c.JSC$15380_playerApiPromise,2);m=H.yieldResult;b=m.getOption("captions","track");x=Object.assign({},_.L(J,_.XeQ));(p=(P=m.getVideoData())==null?void 0:P.video_id)?x.externalVideoId=p:_.Ge(Error("Ai"));if((t=b)==null?0:t.languageCode)x.languageCode=b.languageCode;if((I=b)==null?0:I.kind)x.kind=b.kind;if((a=b)==null?0:a.name)x.name=b.name;k=Object.assign({},J,{getTranscriptEndpoint:x});return _.K(H,
_.ds(c.innertubeTransportService,k),0)})};
Td[RE]=[_.zh,_.BP];var wn=function(){};
_.D(wn,X9);wn.prototype.resolveCommand=function(J){var c,m,b,x,P,p,t,I;return _.N(function(a){c=_.L(J,nd_);if((m=c)==null||!m.paramKeyValuePairs)return a.return();b=window.location.href;x=_.M(c.paramKeyValuePairs);for(P=x.next();!P.done;P=x.next())p=P.value,p.key&&p.value&&(t={},b=_.RP(b,(t[p.key]=p.value,t)));I=_.BG().resolve(_.M6);_.PT(I,b);_.tD(a)})};var rn=function(J,c){this.JSC$15387_commandHandler=J;this.innertubeTransportService=c};
_.D(rn,X9);
rn.prototype.resolveCommand=function(J,c){var m=this,b,x,P,p,t,I,a,k,H,T,r,W,Y,Z,d,G,e;return _.N(function(A){switch(A.nextAddress){case 1:return(P=(b=c)==null?void 0:(x=b.form)==null?void 0:x.element)&&_.A3(P),p=_.HA().get("hl"),t="",_.xL(A,2),_.K(A,oaG(p),4);case 4:t=A.yieldResult;_.EO(A,3);break;case 2:return _.NM(A),P&&_.Rg(P),_.Xc(Error("Ci"),"ERROR"),A.return();case 3:I=_.L(J,tGQ);if(!I)return P&&_.Rg(P),A.return();(H=(a=I.commerceActionConfig)==null?void 0:(k=a.commandLifeCycleConfig)==null?
void 0:k.onStartCommand)&&m.JSC$15387_commandHandler.resolveCommand(H);return _.K(A,_.ds(m.innertubeTransportService,J,{client_data:{paymentsClientToken:{token:t}}}),5);case 5:(T=A.yieldResult)?(P&&_.Rg(P),((Z=T)==null?0:Z.command)&&m.JSC$15387_commandHandler.resolveCommand(T.command),(e=(d=I.commerceActionConfig)==null?void 0:(G=d.commandLifeCycleConfig)==null?void 0:G.onSuccessCommand)&&m.JSC$15387_commandHandler.resolveCommand(e)):(P&&_.Rg(P),_.Xc(Error("Di")),(Y=(r=I.commerceActionConfig)==null?
void 0:(W=r.commandLifeCycleConfig)==null?void 0:W.onFailureCommand)&&m.JSC$15387_commandHandler.resolveCommand(Y)),_.tD(A)}})};
rn[RE]=[_.gu,_.zh];var sY=function(J,c,m){this.store=J;this.JSC$15403_commandHandler=c;this.innertubeTransportService=m};
_.D(sY,X9);
sY.prototype.resolveCommand=function(J,c){var m=this,b,x,P,p,t,I,a,k,H;return _.N(function(T){b=_.L(J,IA$);x=b.googlePaymentPayload;b.onStartCommand&&m.JSC$15403_commandHandler.resolveCommand(b.onStartCommand);P=x.encryptedPurchaseParams;p=x.ypcLogWalletAnalyticDataEndpoint;t=b.serializedTransactionFlowLoggingParams;I=x.serializedPaymentsClientParams;a=b.ypcCujContext;H=jke(m.innertubeTransportService,(k=c)==null?void 0:k.form,P,p,t,I,a);return T.return(H.then(function(r){QkD(c==null?void 0:c.form,
!1);var W=m.store,Y=m.JSC$15403_commandHandler,Z=r.integratorData;Z==null||Z===""||r.error!=null?(String(r.error)==="-1"&&b.onDismissCommand?Y.resolveCommand(b.onDismissCommand):String(r.error)!=="-1"&&b.onFailureCommand&&Y.resolveCommand(b.onFailureCommand),String(r.error)!=="-1"&&String(r.error)!=="132"&&_.Xc(Error("Ei"),"ERROR")):(b.googlePaymentEntityKey&&W.dispatch(_.It("commerceAcquisitionClientPayloadEntity",b.googlePaymentEntityKey,{key:b.googlePaymentEntityKey,commerceAcquisitionClientPayload:{googlePaymentClientPayload:{paymentsPayload:Z,
fundsGuaranteeCallbackClientData:r.integratorClientCallbackData}}})),b.onSuccessCommand&&Y.resolveCommand(b.onSuccessCommand));_.ML()},function(r){QkD(c==null?void 0:c.form,!1);
_.Xc(r,"ERROR");b.onFailureCommand&&m.JSC$15403_commandHandler.resolveCommand(b.onFailureCommand)}))})};
sY[RE]=[PH,_.gu,_.zh];var La=function(J,c){this.JSC$15407_commandHandler=J;this.purchaseManager=c};
_.D(La,X9);
La.prototype.resolveCommand=function(J){var c=this,m,b,x,P,p,t,I,a,k;return _.N(function(H){m=_.L(J,KMa);((b=m)==null?0:(x=b.commandLifeCycleConfig)==null?0:x.onStartCommand)&&c.JSC$15407_commandHandler.resolveCommand(m.commandLifeCycleConfig.onStartCommand);if(!((P=m)==null?0:(p=P.googlePaymentPurchaseManagerPayload)==null?0:p.securePayloadBytes))return _.Xc(Error("Fi"),"ERROR"),H.return();t=XS$(_.I2(m.googlePaymentPurchaseManagerPayload.securePayloadBytes));I=_.HA().get("hl");a=_.$x();FJa(t.serialize(),
I,function(T){a.resolve(T)},function(T){a.reject(T)},a.resolve);
k=a.promise;return H.return(k.then(function(T){if(T)if(T==null?0:T.errorCode){_.Xc(Error("Gi`"+T.errorCode),"ERROR");var r,W;((r=m)==null?0:(W=r.commandLifeCycleConfig)==null?0:W.onFailureCommand)&&c.JSC$15407_commandHandler.resolveCommand(m.commandLifeCycleConfig.onFailureCommand)}else if(T==null?0:T.isCancelled){var Y,Z;((Y=m)==null?0:(Z=Y.commandLifeCycleConfig)==null?0:Z.onCancelCommand)&&c.JSC$15407_commandHandler.resolveCommand(m.commandLifeCycleConfig.onCancelCommand)}else{var d,G;((d=m)==
null?0:(G=d.commandLifeCycleConfig)==null?0:G.onSuccessCommand)&&c.JSC$15407_commandHandler.resolveCommand(m.commandLifeCycleConfig.onSuccessCommand)}},function(T){_.Xc(T,"ERROR");
var r,W;((r=m)==null?0:(W=r.commandLifeCycleConfig)==null?0:W.onFailureCommand)&&c.JSC$15407_commandHandler.resolveCommand(m.commandLifeCycleConfig.onFailureCommand)}))})};
La[RE]=[_.gu,lBL];var ABz=function(J,c){this.JSC$15415_commandHandler=J;this.commandAllowlistOverride=c;var m;this.commandAllowlist=(m=this.commandAllowlistOverride)!=null?m:GH};
ABz.prototype.handleResponse=function(J,c,m){var b,x=c==null?void 0:(b=c.config)==null?void 0:b.command;if(!x||this.commandAllowlist.some(function(P){return!!_.L(x,P)})){c=void 0;
m!==void 0&&(c={form:{element:m}});J.onResponseReceivedCommand&&this.JSC$15415_commandHandler.resolveCommand(J.onResponseReceivedCommand,c);J.onResponseReceivedAction&&this.JSC$15415_commandHandler.resolveCommand(J.onResponseReceivedAction,c);J.onResponseReceivedEndpoint&&this.JSC$15415_commandHandler.resolveCommand(J.onResponseReceivedEndpoint,c);J.command&&this.JSC$15415_commandHandler.resolveCommand(J.command,c);if(J.onResponseReceivedCommands)for(m=_.M(J.onResponseReceivedCommands),b=m.next();!b.done;b=
m.next())this.JSC$15415_commandHandler.resolveCommand(b.value,c);if(J.onResponseReceivedActions)for(m=_.M(J.onResponseReceivedActions),b=m.next();!b.done;b=m.next())this.JSC$15415_commandHandler.resolveCommand(b.value,c);if(J.onResponseReceivedEndpoints)for(m=_.M(J.onResponseReceivedEndpoints),b=m.next();!b.done;b=m.next())this.JSC$15415_commandHandler.resolveCommand(b.value,c);if(J.actions)for(J=_.M(J.actions),m=J.next();!m.done;m=J.next())this.JSC$15415_commandHandler.resolveCommand(m.value,c)}};
ABz[RE]=[_.gu,_.y6(kd2)];var RKa=new _.oE("INNERTUBE_TOKEN_SERVICE");var oja=new _.oE("SCHEDULER_TOKEN");var QIj=function(J){this.scheduler=J;J={};this.tokenMap=(J.app={},J.user={},J)};
QIj.prototype.handleResponse=function(J,c){if(!c)throw Error("Hi");var m;if(J=(m=J.responseContext)==null?void 0:m.innertubeTokenJar){if(J.appTokens){var b,x,P;m=(b=c.innerTubeRequest.context)==null?void 0:(x=b.request)==null?void 0:(P=x.innertubeTokenJar)==null?void 0:P.appTokens;eK_(this,J.appTokens,this.tokenMap.app,m)}if(J.userTokens){var p,t,I;c=(p=c.innerTubeRequest.context)==null?void 0:(t=p.request)==null?void 0:(I=t.innertubeTokenJar)==null?void 0:I.userTokens;eK_(this,J.userTokens,this.tokenMap.user,
c)}}};
QIj.prototype.processContext=function(J){J.request||(J.request={});var c=Object.keys(this.tokenMap.app).length,m=Object.keys(this.tokenMap.user).length;if(c||m)J.request.innertubeTokenJar={},c&&(J.request.innertubeTokenJar.appTokens=[].concat(_.L6(Object.values(this.tokenMap.app).flat()))),m&&(J.request.innertubeTokenJar.userTokens=[].concat(_.L6(Object.values(this.tokenMap.user).flat())))};
var eK_=function(J,c,m,b){c=_.M(c);for(var x=c.next(),P={};!x.done;P={token$jscomp$137:void 0},x=c.next()){P.token$jscomp$137=x.value;if(P.token$jscomp$137.type===void 0)throw new _.w3("InnerTube token has no type",P.token$jscomp$137);if(P.token$jscomp$137.clearTokens)m[P.token$jscomp$137.type]=[];else if(P.token$jscomp$137.value!==void 0){m[P.token$jscomp$137.type]||(m[P.token$jscomp$137.type]=[]);if(b!==void 0&&b.length){x=_.M(b);for(var p=x.next(),t={};!p.done;t={requestToken:void 0},p=x.next())t.requestToken=
p.value,p=m[P.token$jscomp$137.type].findIndex(function(I){return function(a){return a===I.requestToken||(0,_.Lw.equals)(a,I.requestToken)}}(t)),p>-1&&m[P.token$jscomp$137.type].splice(p,1)}m[P.token$jscomp$137.type].push(P.token$jscomp$137);
P.token$jscomp$137.maxAgeSeconds&&Number(P.token$jscomp$137.maxAgeSeconds)>0&&J.scheduler.addLowPriorityJob(function(I){return function(){var a=m[I.token$jscomp$137.type].indexOf(I.token$jscomp$137);a>-1&&m[I.token$jscomp$137.type].splice(a,1)}}(P),Number(P.token$jscomp$137.maxAgeSeconds)*1E3)}else throw new _.w3("InnerTube token has no value",P.token$jscomp$137);
}};
QIj[RE]=[oja];var jIQ=new _.oE("LOCAL_INNERTUBE_ROUTER_TOKEN"),F3z=new _.oE("LOCAL_INNERTUBE_SERVICE_MAP_TOKEN");var Ds=function(J){this.serviceMap=J};
Ds.prototype.shouldPreferLocalResponse=function(J,c){return(J=l62(this,J))?J.shouldPreferLocalResponse(c):!1};
Ds.prototype.localInnertubeResponse=function(J,c){var m=this,b;return _.N(function(x){return(b=l62(m,J))?x.return(b.localInnertubeResponse(c)):x.return(Promise.reject(Error("Ii")))})};
Ds.prototype.canProvideFallbackResponse=function(J,c){return(J=l62(this,J))?J.canProvideFallbackResponse(c):!1};
Ds.prototype.localFallbackInnertubeResponse=function(J,c){var m=this,b;return _.N(function(x){return(b=l62(m,J))?x.return(b.localFallbackInnertubeResponse(c)):x.return(Promise.reject(Error("Ii")))})};
var l62=function(J,c){c=_.NU(c);return c?(J=J.serviceMap[c])?J:null:null};
Ds[RE]=[F3z];var nZ=function(){};
nZ.prototype.shouldPreferLocalResponse=function(){return!1};
nZ.prototype.localInnertubeResponse=function(){return _.N(function(J){return J.return(Promise.reject(Error("Ji")))})};
nZ.prototype.canProvideFallbackResponse=function(){return!0};
nZ.prototype.localFallbackInnertubeResponse=function(){var J,c,m;return _.N(function(b){J=rJ("CLOSE_POPUP");c={openPopupAction:lDQ()};m={actions:[J,c]};return b.return(m)})};var wh2=function(J,c){this.JSC$15465_upliftPromise=J;this.store=c};
_.V=wh2.prototype;_.V.shouldPreferLocalResponse=function(J){var c=J.videoId,m;if(m=c)m=WOu(this.store.getState().entities,J.videoId);return m&&zs3(this.store.getState().entities,c)?B5o(this.store.getState().entities,J.playlistId):!1};
_.V.localInnertubeResponse=function(J){var c=this,m;return _.N(function(b){return(m=c.getPlayerResponse(J))?b.return(Promise.resolve(m)):b.return(Promise.reject(Error("Ki")))})};
_.V.canProvideFallbackResponse=function(J){return!!J.videoId};
_.V.localFallbackInnertubeResponse=function(J){var c=this,m;return _.N(function(b){if(b.nextAddress==1)return _.K(b,c.JSC$15465_upliftPromise,2);m=c.getPlayerResponse(J);var x;m?x=b.return(Promise.resolve(m)):x=nk(c.store.getState().entities,J.videoId)?b.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.yq(_.CX("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),proceedButton:{buttonRenderer:rrr()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}}):
b.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.yq(_.CX("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),proceedButton:{buttonRenderer:wVr()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}});return x})};
_.V.getPlayerResponse=function(J){return gUT(this.store.getState().entities,J.videoId)};var ic=function(J,c){this.localPlayerService=J;this.localWatchNextService=c};
ic.prototype.shouldPreferLocalResponse=function(J){var c=J.playerRequest;J=J.watchNextRequest;return!!(c&&this.localPlayerService.shouldPreferLocalResponse(c)&&J&&this.localWatchNextService.shouldPreferLocalResponse(J))};
ic.prototype.localInnertubeResponse=function(J){var c=this,m,b,x,P;return _.N(function(p){if(p.nextAddress==1){m=J.playerRequest;b=J.watchNextRequest;if(!m||!b)throw new _.w3("Missing streaming request",J);return _.K(p,c.localPlayerService.localInnertubeResponse(m),2)}if(p.nextAddress!=3)return x=p.yieldResult,_.K(p,c.localWatchNextService.localInnertubeResponse(b),3);P=p.yieldResult;return p.return({playerResponse:x,watchNextResponse:P})})};
ic.prototype.canProvideFallbackResponse=function(J){var c=J.playerRequest;J=J.watchNextRequest;return!!(c&&this.localPlayerService.canProvideFallbackResponse(c)&&J&&this.localWatchNextService.canProvideFallbackResponse(J))};
ic.prototype.localFallbackInnertubeResponse=function(J){var c=this,m,b,x,P;return _.N(function(p){if(p.nextAddress==1)return m=J.playerRequest,b=J.watchNextRequest,m&&b?_.K(p,c.localPlayerService.localFallbackInnertubeResponse(m),2):p.return(Promise.reject(new _.w3("Missing streaming request",J)));if(p.nextAddress!=3)return x=p.yieldResult,_.K(p,c.localWatchNextService.localFallbackInnertubeResponse(b),3);P=p.yieldResult;return p.return({playerResponse:x,watchNextResponse:P})})};var ax=function(J){this.JSC$15475_persistentStorePromiseAccessor=J};
ax.prototype.shouldPreferLocalResponse=function(){return!1};
ax.prototype.localInnertubeResponse=function(){return _.N(function(J){return J.return(Promise.reject(Error("Li")))})};
ax.prototype.canProvideFallbackResponse=function(){return!0};
ax.prototype.localFallbackInnertubeResponse=function(){var J=this,c,m;return _.N(function(b){return b.nextAddress==1?_.K(b,J.JSC$15475_persistentStorePromiseAccessor(),2):b.nextAddress!=3?(c=b.yieldResult)?_.K(b,c.get("service:guide:fallback"),3):b.return(Promise.reject(Error("Mi"))):(m=b.yieldResult)&&_.xg(m)?b.return(gat(_.xg(m))):b.return(Promise.reject(Error("Ni")))})};var Tt=function(){};
Tt.prototype.shouldPreferLocalResponse=function(){return!1};
Tt.prototype.localInnertubeResponse=function(){return _.N(function(J){return J.return(Promise.reject(Error("Oi")))})};
Tt.prototype.canProvideFallbackResponse=function(){return!0};
Tt.prototype.localFallbackInnertubeResponse=function(){var J,c,m;return _.N(function(b){J=rJ("CLOSE_POPUP");c={openPopupAction:lDQ()};m={actions:[J,c]};return b.return(m)})};var CZ=function(){this.urlMap=yBQ;this.fallbackCommand=_.p$};
CZ.prototype.shouldPreferLocalResponse=function(J){return(J=J.url)?!!Bh$(this,J):!1};
CZ.prototype.localInnertubeResponse=function(J){var c=this,m;return _.N(function(b){return(m=J.url)?b.return(gj_(J,Bh$(c,m))):b.return(Promise.reject(Error("Pi")))})};
CZ.prototype.canProvideFallbackResponse=function(){return!0};
CZ.prototype.localFallbackInnertubeResponse=function(J){var c=this,m,b,x,P,p,t,I;return _.N(function(a){m=J.url;if(!m)return a.return(gj_(J,c.fallbackCommand));if(b=Bh$(c,m))return a.return(gj_(J,b));x=void 0;P=_.NU(m);P==="/watch"&&(p=_.E7(m,"v"))&&(I=(t=_.E7(m,"list"))!=null?t:void 0,x=_.lJ(p,I));x||(x=c.fallbackCommand);return a.return(gj_(J,x))})};
var Bh$=function(J,c){if(c)return J.urlMap[_.Gv(c)]},gj_=function(J,c){c&&J.parentTrackingParams&&(c.commandMetadata=Object.assign({},{resolveUrlCommandMetadata:{parentTrackingParams:J.parentTrackingParams}},c.commandMetadata));
return Promise.resolve({responseContext:{},endpoint:c})};var kg=function(J,c,m){this.JSC$15485_upliftPromise=J;this.store=c;this.JSC$15485_persistentStorePromiseAccessor=m};
kg.prototype.shouldPreferLocalResponse=function(){return!1};
kg.prototype.localInnertubeResponse=function(){return _.N(function(J){return J.return(Promise.reject(Error("Qi")))})};
kg.prototype.canProvideFallbackResponse=function(){return!0};
kg.prototype.localFallbackInnertubeResponse=function(){var J=this;return _.N(function(c){return c.return(Jxz(J))})};
var Jxz=function(J){var c,m;return _.N(function(b){if(b.nextAddress==1)return _.K(b,bc(J.JSC$15485_upliftPromise,J.store),2);c=b.yieldResult;m={twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[ypD(c)]}}}};return b.return(cx_(J,m))})},cx_=function(J,c){var m,b;
return _.N(function(x){if(x.nextAddress==1)return _.K(x,J.JSC$15485_persistentStorePromiseAccessor(),2);if(x.nextAddress!=3)return m=x.yieldResult,_.K(x,Vv(m),3);b=x.yieldResult;return x.return({responseContext:{},contents:c,topbar:b})})};var Ix=function(J,c,m){this.JSC$15492_upliftPromise=J;this.store=c;this.JSC$15492_persistentStorePromiseAccessor=m};
Ix.prototype.shouldPreferLocalResponse=function(J){var c=J.videoId;return c&&WOu(this.store.getState().entities,c)&&zs3(this.store.getState().entities,c)?B5o(this.store.getState().entities,J.playlistId):!1};
Ix.prototype.localInnertubeResponse=function(J){var c=this,m,b;return _.N(function(x){if(x.nextAddress==1)return(m=J.videoId)?_.K(x,c.JSC$15492_upliftPromise,2):x.return(Promise.reject(Error("Ri")));if(x.nextAddress!=3)return _.K(x,mK_(c,J,m),3);b=x.yieldResult;return x.return(bPj(c,b,m))})};
Ix.prototype.canProvideFallbackResponse=function(J){return J.videoId?!0:!1};
Ix.prototype.localFallbackInnertubeResponse=function(J){var c=this,m,b,x,P;return _.N(function(p){switch(p.nextAddress){case 1:return(m=J.videoId)?_.K(p,c.JSC$15492_upliftPromise,2):p.return(Promise.reject(Error("Ri")));case 2:return _.K(p,mK_(c,J,m),3);case 3:b=p.yieldResult;if(nk(c.store.getState().entities,m)){p.jumpTo(4);break}return _.K(p,bc(c.JSC$15492_upliftPromise,c.store),5);case 5:return x=p.yieldResult,p.return(xK_(b,x));case 4:return WOu(c.store.getState().entities,m)&&zs3(c.store.getState().entities,
m)?p.return(bPj(c,b,m)):(P={title:_.yq(_.CX("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:rrr()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:236655}}},p.return(xK_(b,P)))}})};
var mK_=function(J,c,m){var b,x,P,p,t;return _.N(function(I){if(I.nextAddress==1)return b=c.playlistId,x=_.lJ(m,b),_.K(I,J.JSC$15492_persistentStorePromiseAccessor(),2);if(I.nextAddress!=3)return P=I.yieldResult,_.K(I,Vv(P),3);p=I.yieldResult;t={responseContext:{},currentVideoEndpoint:x,topbar:p};return I.return(t)})},bPj=function(J,c,m){if(J=nk(J.store.getState().entities,m)){var b;
m=J.videoEntity;var x,P={title:BA(m.title),viewCount:{videoViewCountRenderer:{shortViewCount:_.gM((b=m.localizedStrings)==null?void 0:b.viewCount),viewCount:_.gM((x=m.localizedStrings)==null?void 0:x.viewCount)}}};m.publishedTimestampMillis&&(P.dateText=_.gM(vW3(new Date(Number(m.publishedTimestampMillis)))));b={videoPrimaryInfoRenderer:P};x=J.videoEntity;J=J.channelEntity;J={videoSecondaryInfoRenderer:{defaultExpanded:!1,descriptionCollapsedLines:3,showMoreText:BA(_.CX("SHOW_MORE",void 0,"Show more")),
showLessText:BA(_.CX("SHOW_LESS",void 0,"Show less")),description:x.formattedDescription,owner:{videoOwnerRenderer:{title:BA(J.title),thumbnail:J.avatar}}}};c.contents={twoColumnWatchNextResults:{results:{results:{contents:[b,J]}}}}}return c},xK_=function(J,c){J.contents={singleColumnWatchNextResults:{results:{results:{contents:[ypD(c)]}}}};
return J};var HH=function(J,c,m){this.JSC$15497_upliftPromise=J;this.store=c;this.JSC$15497_persistentStorePromiseAccessor=m};
HH.prototype.shouldPreferLocalResponse=function(){return!1};
HH.prototype.localInnertubeResponse=function(){return _.N(function(J){return J.return(Promise.reject(Error("Si")))})};
HH.prototype.canProvideFallbackResponse=function(){return!0};
HH.prototype.localFallbackInnertubeResponse=function(){var J=this,c,m,b,x;return _.N(function(P){switch(P.nextAddress){case 1:return _.K(P,J.JSC$15497_persistentStorePromiseAccessor(),2);case 2:return c=P.yieldResult,_.K(P,Vv(c),3);case 3:return m=P.yieldResult,b={responseContext:{},topbar:m},_.K(P,J.JSC$15497_upliftPromise,4);case 4:return _.K(P,bc(J.JSC$15497_upliftPromise,J.store),5);case 5:return x=P.yieldResult,b.watchStatus={backgroundPromoRenderer:x},P.return(b)}})};var Vxz=new _.oE("ENDPOINT_MAP");var Plz=function(){var J=this;this.sequenceMap=new Map;this.TEST_ONLY={getSequenceMap:function(){return J.sequenceMap}}},yvj=function(J,c,m){var b,x=(b=c.config)==null?void 0:b.sequenceStrategy;
if(!x)return m();J.sequenceMap.has(x.sequenceKey)||J.sequenceMap.set(x.sequenceKey,[]);J=J.sequenceMap.get(x.sequenceKey);switch(x.sequenceType){case "REQUEST_SEQUENCE_TYPE_APPEND":return Mxj(J,c,m);case "REQUEST_SEQUENCE_TYPE_REPLACE":return pZa(J,c,m);default:throw new _.w3("Request could not be sequenced",c);}},Mxj=function(J,c,m){var b,x,P;
return _.N(function(p){J.length>0?(x=J[J.length-1],b=x.responsePromise.then(function(){return m()})):b=m();
P={request:c,responsePromise:b};J.push(P);NwQ(J,P);return p.return(P.responsePromise)})},pZa=function(J,c,m){m=m();
if(J.length>0)for(var b=_.M(J),x=b.next();!x.done;x=b.next())x.value.responsePromise=m;var P={request:c,responsePromise:m};J.push(P);NwQ(J,P);return Promise.resolve().then(function(){return J.indexOf(P)>0?P.responsePromise.then(function(p){return Object.assign({},p,{sequenceMetaData:{skipProcessing:!0}})}):P.responsePromise})},NwQ=function(J,c){c.responsePromise.then(function(){var m=J.indexOf(c);
m>-1&&J.splice(m,1)})};var txQ=new _.oE("REQUEST_SEQUENCING");var WJ=function(){};
_.D(WJ,Jg);WJ.prototype.getApiPaths=function(){return[]};
WJ.prototype.getExtension=function(J){return _.L(J,UJu)};
WJ.prototype.JSC$10999_buildRequest=function(J,c){J.recaptchaToken=c.recaptchaToken};
WJ.prototype.getApiUrl=function(){return"/das_captcha"};var zd=function(){};
_.D(zd,Jg);zd.prototype.getApiPaths=function(){return NV_};
zd.prototype.getExtension=function(J){return _.L(J,MLz)};
zd.prototype.JSC$10999_buildRequest=function(J,c,m){m=m===void 0?{}:m;c.createBackstagePostParams&&(J.createBackstagePostParams=c.createBackstagePostParams);m.comment_text&&(J.commentText=m.comment_text);if(m.attached_video_id)J.videoAttachment={videoId:m.attached_video_id};else if(m.image_poll_options)J.pollAttachmentData={options:m.image_poll_options};else if(m.poll_options)J.pollAttachment={choices:m.poll_options};else if(m.quiz_options)J.quizAttachmentData={options:m.quiz_options};else if(m.image_blob_id)J.imageAttachment=
{encryptedBlobId:m.image_blob_id},m.source_video_id&&(J.imageAttachment.sourceExternalVideoId=m.source_video_id),m.image_preview_coordinates&&(J.imageAttachment.previewCoordinates=JSON.parse(m.image_preview_coordinates));else if(m.images_data)J.imagesAttachment={imagesData:m.images_data};else if(m.clip_external_video_id!==void 0||m.clip_offset_ms!==void 0||m.clip_duration_ms!==void 0){var b,x,P,p,t;J.clipAttachment={externalVideoId:(P=m.clip_external_video_id)!=null?P:"",offsetMs:(p=(b=m.clip_offset_ms)==
null?void 0:b.toString())!=null?p:"",durationMs:(t=(x=m.clip_duration_ms)==null?void 0:x.toString())!=null?t:""}}else m.shared_post_id&&(J.sharedPostAttachment={postId:m.shared_post_id});m.tagged_video_id&&(J.postCreationData={taggedVideoId:m.tagged_video_id});m.access_restrictions&&(typeof m.access_restrictions==="number"&&(c=m.access_restrictions,J.accessRestrictions={restriction:c!==1&&c===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"}),typeof m.access_restrictions==="string"&&
(J.accessRestrictionsParams=m.access_restrictions));m.scheduled_publish_time_sec&&(J.scheduledPublishTimeSec=m.scheduled_publish_time_sec.toString())};var uX=function(){};
_.D(uX,Jg);uX.prototype.getApiPaths=function(){return H$$};
uX.prototype.getExtension=function(J){return _.L(J,Kc$)};
uX.prototype.JSC$10999_buildRequest=function(J,c,m){m=m===void 0?{}:m;c.decorateMessageParams&&(J.params=c.decorateMessageParams);m.text&&(J.text=m.text)};var fa=function(){};
_.D(fa,Jg);fa.prototype.getApiPaths=function(){return dhB};
fa.prototype.getExtension=function(J){return _.L(J,pHL)};
fa.prototype.JSC$10999_buildRequest=function(J,c,m){m=m===void 0?{}:m;m.video_id&&(J.videoId=m.video_id)};var YI=function(){};
_.D(YI,Jg);YI.prototype.getApiPaths=function(){return AMC};
YI.prototype.getExtension=function(J){return _.L(J,_.In)};
YI.prototype.JSC$10999_buildRequest=function(J,c,m){m.suggestions_query&&(J.input=m.suggestions_query)};var XS=function(){};
_.D(XS,Jg);XS.prototype.getApiPaths=function(){return rg6};
XS.prototype.getExtension=function(J){return _.L(J,NxC)};
XS.prototype.JSC$10999_buildRequest=function(J,c,m){m.comment_text!==void 0&&(J.commentText=m.comment_text);m.scheduled_publish_time_sec&&(J.scheduledPublishTimeSec=m.scheduled_publish_time_sec.toString());J.updateBackstagePostParams=c.updateBackstagePostParams};var Zs=function(){};
_.D(Zs,Jg);Zs.prototype.getApiPaths=function(){return lD};
Zs.prototype.getExtension=function(J){return _.L(J,_.XG)};
Zs.prototype.JSC$10999_buildRequest=function(J,c,m){m.formData&&(J.formData=m.formData);c.token?J.continuation=c.token:c.continuationTokenKey&&(m=_.Rc().getState(),c=_.P2(m.entities,"continuationTokenEntity",c.continuationTokenKey))&&(J.continuation=String(c.continuationToken))};
var IH8=function(){};
_.D(IH8,Jg);_.V=IH8.prototype;_.V.getApiPaths=function(){return lD};
_.V.getExtension=function(J){return _.L(J,_.I1)};
_.V.isNavigationCommand=function(){return!0};
_.V.JSC$11006_getStoreKey=function(J){if((J=this.getExtension(J))&&J.browseId){var c={browseId:J.browseId};J.browseEndpointContextSupportedConfigs&&(c.browseEndpointContextSupportedConfigs=JSON.stringify(J.browseEndpointContextSupportedConfigs));J.params&&(c.params=J.params);J.query&&(c.query=J.query);return _.A0("browse",c)}};
_.V.JSC$10999_buildRequest=function(J,c,m){c.browseId&&(J.browseId=c.browseId);c.params&&(J.params=c.params);c.query&&(J.query=c.query);m.formData?J.formData=m.formData:c.formData&&(J.formData=c.formData);c.browseId==="FEsubscriptions"&&_.HA().getFlag(155)&&(J.subscriptionSettingsState="MY_SUBS_SETTINGS_STATE_LAYOUT_FORMAT_LIST");c.browseId==="SPaccount_playback"&&(m=_.HA(),J.formData||(J.formData={}),J.formData.accountSettingsFormData={flagCaptionsDefaultOff:m.getFlag(65),flagAutoCaptionsDefaultOn:m.getFlag(66),
flagDisableInlinePreview:m.getFlag(186),flagAudioDescriptionDefaultOn:m.getFlag(198)});if(c.browseId==="FEwhat_to_watch"){m=_.HA();var b=m.getFlag(196);m.getFlag(197)&&(J.browseRequestSupportedMetadata={downloadsBrowseParams:{offlineFeatureSettingState:{isSdEnabled:b}}})}c.browseId==="FEwhat_to_watch"&&(c=_.HA().getFlag(186),J.inlineSettingStatus=c?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.V.getRequestConfig=function(J,c){c=c===void 0?{}:c;var m={};if(J=this.JSC$11006_getStoreKey(J,c))m.storeStrategy={storeKey:J,disableCache:c.disableCache};_.w("web_log_browse_ticks_ks")||(m.requestTick="br_s",m.responseTick="br_r");return m};var qv=function(){};
_.D(qv,Jg);qv.prototype.getApiPaths=function(){return b$2};
qv.prototype.getExtension=function(J){return _.L(J,uyu)};
qv.prototype.JSC$10999_buildRequest=function(J,c,m){J.legacyYoutubeChannelUsername=m.legacyYouTubeChannelUsername||"";J.legacyYoutubeChannelPassword=m.legacyYouTubeChannelPassword||""};var UY=function(){};
_.D(UY,Jg);UY.prototype.getApiPaths=function(){return IOa};
UY.prototype.getExtension=function(J){return _.L(J,iZC)};
UY.prototype.JSC$10999_buildRequest=function(J,c,m){m.recaptcha_response_token&&(J.recaptchaResponseToken=m.recaptcha_response_token);m.channel_id&&(J.channelId=m.channel_id)};var SR=function(){};
_.D(SR,Jg);SR.prototype.getApiPaths=function(){return sTz};
SR.prototype.getExtension=function(J){return _.L(J,Lm_)};
SR.prototype.JSC$10999_buildRequest=function(J,c,m){c.externalChannelId&&(J.externalChannelId=c.externalChannelId);m.handle&&(J.handleUpdate={handle:m.handle},c.handleEditSource&&(J.handleUpdate.handleEditSource=c.handleEditSource))};var hR=function(){};
_.D(hR,Jg);hR.prototype.getApiPaths=function(){return zlL};
hR.prototype.getExtension=function(J){return _.L(J,$__)};
hR.prototype.JSC$10999_buildRequest=function(J,c,m){c.request&&(J.channelId=c.request.channelId);var b;if(m==null?0:(b=m.uploadDefaults)==null?0:b.emojiReactionSet)J.uploadDefaultsRequest||(J.uploadDefaultsRequest={}),J.uploadDefaultsRequest.emojiReactionSet=m.uploadDefaults.emojiReactionSet};var dn=function(){};
_.D(dn,Jg);dn.prototype.getApiPaths=function(){return YW2};
dn.prototype.getExtension=function(J){return _.L(J,ng$)};
dn.prototype.JSC$10999_buildRequest=function(J,c,m){c.externalChannelId&&(J.externalChannelId=c.externalChannelId);c.channelHandleEntityKey&&(J.channelHandleEntityKey=c.channelHandleEntityKey);c.handleEditSource&&(J.handleEditSource=c.handleEditSource);m.handle?J.handle=m.handle:m.name&&(J.name=m.name)};var $I=function(){};
_.D($I,Jg);$I.prototype.getApiPaths=function(){return P6j};
$I.prototype.getExtension=function(J){return _.L(J,Qba)};
$I.prototype.JSC$10999_buildRequest=function(J,c){c.actions?J.actions=c.actions:c.action&&(J.actions=[c.action])};var Gd=function(){};
_.D(Gd,Jg);Gd.prototype.getApiPaths=function(){return MBa};
Gd.prototype.getExtension=function(J){return _.L(J,_.XG)};
Gd.prototype.JSC$10999_buildRequest=function(J,c){c.token&&(J.continuation=c.token)};var EY=function(){};
_.D(EY,Jg);EY.prototype.getApiPaths=function(){return Sl_};
EY.prototype.getExtension=function(J){return _.L(J,_.XG)};
EY.prototype.JSC$10999_buildRequest=function(J,c){J.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";c.token&&(J.fetchCommentsParams={continuation:c.token})};var vJ=function(){};
_.D(vJ,Jg);vJ.prototype.getApiPaths=function(){return KnQ};
vJ.prototype.getExtension=function(J){return _.L(J,o_$)};
vJ.prototype.JSC$10999_buildRequest=function(J,c,m){m=m===void 0?{}:m;c.createReplyParams&&(J.createReplyParams=c.createReplyParams);c.commentText&&(J.commentText=_.OG(c.commentText));m.comment_text&&(J.commentText=m.comment_text);m.image_blob_id&&(J.imageAttachment={encryptedBlobId:m.image_blob_id});m.botguard_response&&(J.botguardResponse=m.botguard_response)};
_.eE.Object.defineProperties(vJ.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var OY=function(){};
_.D(OY,Jg);OY.prototype.getApiPaths=function(){return C66};
OY.prototype.getExtension=function(J){return _.L(J,_.RXL)};
OY.prototype.JSC$10999_buildRequest=function(J,c,m){m=m===void 0?{}:m;c.createCommentParams&&(J.createCommentParams=c.createCommentParams);c.commentText&&(J.commentText=_.OG(c.commentText));c.videoPositionMention&&(J.videoPositionMention=c.videoPositionMention);c.sources&&(J.sources=c.sources);m.comment_text&&(J.commentText=m.comment_text);m.attached_video_id?J.videoAttachment={videoId:m.attached_video_id}:m.poll_options?J.pollAttachment={choices:m.poll_options}:m.image_blob_id?J.imageAttachment=
{encryptedBlobId:m.image_blob_id}:m.shared_post_id&&(J.sharedPostAttachment={postId:m.shared_post_id});m.access_restrictions&&typeof m.access_restrictions==="number"&&(c=m.access_restrictions,J.accessRestrictions={restriction:c!==1&&c===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"});m.botguard_response&&(J.botguardResponse=m.botguard_response)};
_.eE.Object.defineProperties(OY.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var AR=function(){};
_.D(AR,Jg);AR.prototype.getApiPaths=function(){return L78};
AR.prototype.getExtension=function(J){return _.L(J,jbZ)};
AR.prototype.JSC$10999_buildRequest=function(J,c,m){c.commentText&&(J.replyText=_.OG(c.commentText));m.comment_text&&(J.replyText=m.comment_text);J.updateReplyParams=c.updateReplyParams};
_.eE.Object.defineProperties(AR.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Rm=function(){};
_.D(Rm,Jg);Rm.prototype.getApiPaths=function(){return DHQ};
Rm.prototype.getExtension=function(J){return _.L(J,eXB)};
Rm.prototype.JSC$10999_buildRequest=function(J,c,m){c.commentText&&(J.commentText=_.OG(c.commentText));m.comment_text&&(J.commentText=m.comment_text);J.updateCommentParams=c.updateCommentParams};
_.eE.Object.defineProperties(Rm.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var om=function(){};
_.D(om,Jg);om.prototype.getApiPaths=function(){return W76};
om.prototype.getExtension=function(J){return _.L(J,U_C)};
om.prototype.JSC$10999_buildRequest=function(J,c){c.settings&&(J.settings=c.settings)};var QO=function(){};
_.D(QO,Jg);QO.prototype.getApiPaths=function(){return uAQ};
QO.prototype.getExtension=function(J){return _.L(J,TxQ)};
QO.prototype.JSC$10999_buildRequest=function(J,c){c.channelCreationToken&&(J.channelCreationToken=c.channelCreationToken);c.source&&(J.source=c.source)};var eR=function(){};
_.D(eR,Jg);eR.prototype.getApiPaths=function(){return IlQ};
eR.prototype.getExtension=function(J){return _.L(J,sxL)};
eR.prototype.JSC$10999_buildRequest=function(J,c,m){m=m===void 0?{}:m;if(m.name&&(m.given_name||m.family_name))J=new _.w3("channel creation cannot set both GAIA and YouTube names",c),_.Xc(J);else{if(c.zeroStepChannelCreationParams){if(!m.comment_text){J=new _.w3("zero_step_create_comment_params but no zero_step_texts",c);_.Xc(J);return}J.zeroStepChannelCreationParams=c.zeroStepChannelCreationParams;J.zeroStepChannelCreationParams.zeroStepCreateCommentParams&&(J.zeroStepChannelCreationParams.zeroStepCreateCommentParams.input=
m.comment_text,m.botguard_response&&(J.zeroStepChannelCreationParams.zeroStepCreateCommentParams.botguardResponse=m.botguard_response))}J.channelCreationToken=c.channelCreationToken;m.given_name&&(J.givenName=m.given_name);m.family_name&&(J.familyName=m.family_name);c.source==="CHANNEL_SWITCHER_CHANNEL_CREATION_SOURCE"&&(J.channelCreationType="CHANNEL_CREATION_TYPE_SECONDARY");if(m.name||m.handle||m.avatar_url||m.encryptedBlobId||m.isNameChanged!==void 0||m.isHandleChanged!==void 0||m.isDefaultProfilePhoto!==
void 0||m.obakeImageSource)J.overrideChannelCreationParams={},m.name&&(J.overrideChannelCreationParams.name=m.name),m.handle&&(J.overrideChannelCreationParams.handle=m.handle),m.avatar_url&&(J.overrideChannelCreationParams.avatarUrl=m.avatar_url),m.encryptedBlobId&&(J.overrideChannelCreationParams.blobEncryptionId=m.encryptedBlobId),m.enableIdentityForAllChannelCreationDialog&&(m.encryptedBlobId?J.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag="IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_CUSTOM":
m.isDefaultProfilePhoto!==void 0&&(J.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag=m.isDefaultProfilePhoto?"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_MONOGRAM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_OTHER"),m.isNameChanged!==void 0&&(J.overrideChannelCreationParams.identityForAllChannelCreationNameTag=m.isNameChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_GOOGLE_DEFAULT"),m.isHandleChanged!==
void 0&&(J.overrideChannelCreationParams.identityForAllChannelCreationHandleTag=m.isHandleChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_DEFAULT_AUTOGEN"),m.obakeImageSource&&(J.overrideChannelCreationParams.obakeImageSourceType=m.obakeImageSource))}};var jR=function(){};
_.D(jR,Jg);jR.prototype.getApiPaths=function(J){return(J=this.getExtension(J))&&J.status==="DISLIKE"?w$z:J&&J.status==="INDIFFERENT"?PU8:jQz};
jR.prototype.getExtension=function(J){return _.L(J,_.$R)};
jR.prototype.JSC$10999_buildRequest=function(J,c){c.target&&(J.target=c.target);if(c=this.getParams(c))J.params=c};
jR.prototype.getParams=function(J){switch(J==null?void 0:J.status){case "DISLIKE":return J.dislikeParams;case "INDIFFERENT":return J.removeLikeParams;default:return J==null?void 0:J.likeParams}};var FS=function(){};
_.D(FS,Jg);FS.prototype.getApiPaths=function(){return H92};
FS.prototype.getExtension=function(J){return _.L(J,xDB)};
FS.prototype.JSC$10999_buildRequest=function(J,c){c.settingItemId&&(J.settingItemId=c.settingItemId);c.stringValue!=null&&c.stringValue!==void 0?J.newValue={stringValue:c.stringValue}:c.intValue?J.newValue={intValue:c.intValue}:c.boolValue!==null&&c.boolValue!==void 0?J.newValue={boolValue:c.boolValue}:(J=new _.w3("Unknown value type for SetSettingEndpoint.",c),_.Xc(J))};var lX=function(){};
_.D(lX,Jg);lX.prototype.getApiPaths=function(){return nsz};
lX.prototype.getExtension=function(J){return _.L(J,rVa)||void 0};
lX.prototype.JSC$10999_buildRequest=function(J,c,m){m=m===void 0?{}:m;c.channelIds&&(J.channelIds=c.channelIds);c.siloName&&(J.siloName=c.siloName);c.params&&(J.params=c.params);m.botguardResponse&&(J.botguardResponse=m.botguardResponse);m.feature&&(J.clientFeature=m.feature)};
_.eE.Object.defineProperties(lX.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var yO=function(){};
_.D(yO,Jg);yO.prototype.getApiPaths=function(){return wtz};
yO.prototype.getExtension=function(J){return _.L(J,VT2)||void 0};
yO.prototype.JSC$10999_buildRequest=function(J,c){c.channelIds&&(J.channelIds=c.channelIds);c.siloName&&(J.siloName=c.siloName);c.params&&(J.params=c.params)};
_.eE.Object.defineProperties(yO.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var BJ=function(J){this.shareClientParamsProvider=J};
_.D(BJ,Jg);BJ.prototype.getApiPaths=function(){return Gna};
BJ.prototype.getExtension=function(J){return _.L(J,YZ_)||_.L(J,_.Xsu)||_.L(J,ff6)};
BJ.prototype.JSC$10999_buildRequest=function(J,c){c.serializedShareEntity&&(J.serializedSharedEntity=c.serializedShareEntity);if(c.clientParamIdentifier){var m;if((m=this.shareClientParamsProvider)==null?0:m.clientParams.has(c.clientParamIdentifier)){m=this.shareClientParamsProvider;c=c.clientParamIdentifier;var b=m.clientParams.get(c);b&&m.clientParams.delete(c);J.clientParams=b}}};
BJ[RE]=[YNB];var gn=function(){};
_.D(gn,Jg);gn.prototype.getApiPaths=function(){return JMZ};
gn.prototype.getExtension=function(J){return _.L(J,$C8)};
gn.prototype.JSC$10999_buildRequest=function(J,c){c.params&&(J.params=c.params)};var J6=function(){};
_.D(J6,Jg);J6.prototype.getApiPaths=function(){return rM_};
J6.prototype.getExtension=function(J){return _.L(J,SS$)};
J6.prototype.JSC$10999_buildRequest=function(J,c){c.dismissal&&(J.items=[c.dismissal])};
_.eE.Object.defineProperties(J6.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var cK=function(){};
_.D(cK,Jg);cK.prototype.getApiPaths=function(){return QQ8};
cK.prototype.getExtension=function(J){return _.L(J,_.uc)||void 0};
cK.prototype.JSC$10999_buildRequest=function(J,c,m){J.feedbackTokens=[];c.feedbackToken&&J.feedbackTokens.push(c.feedbackToken);if(c=c.cpn||m.cpn)J.feedbackContext={cpn:c};J.isFeedbackTokenUnencrypted=!!m.is_feedback_token_unencrypted;J.shouldMerge=!1;m.extra_feedback_tokens&&(J.shouldMerge=!0,J.feedbackTokens=J.feedbackTokens.concat(m.extra_feedback_tokens))};
_.eE.Object.defineProperties(cK.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var mI=function(){};
_.D(mI,Jg);mI.prototype.getApiPaths=function(){return QQ8};
mI.prototype.getExtension=function(J){return _.L(J,_.In)};
mI.prototype.JSC$10999_buildRequest=function(J,c,m){m.feedback_tokens&&(J.feedbackTokens=m.feedback_tokens,J.shouldMerge=!0)};
_.eE.Object.defineProperties(mI.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var bh=function(){};
_.D(bh,Jg);bh.prototype.getApiPaths=function(){return QQ8};
bh.prototype.getExtension=function(J){return _.L(J,ZBJ)};
bh.prototype.JSC$10999_buildRequest=function(J,c){c.undoToken&&(J.feedbackTokens=[c.undoToken]);c.isUndoTokenUnencrypted&&(J.isFeedbackTokenUnencrypted=c.isUndoTokenUnencrypted)};
_.eE.Object.defineProperties(bh.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var IH=function(){};
_.D(IH,Jg);IH.prototype.getApiPaths=function(){return Xt6};
IH.prototype.getExtension=function(J){return _.L(J,Z0a)};
IH.prototype.JSC$10999_buildRequest=function(J,c){c.nextEndpoint&&_.L(c.nextEndpoint,_.Ee)?J.nextEndpoint={urlEndpoint:_.L(c.nextEndpoint,_.Ee)}:c.nextEndpoint&&_.L(c.nextEndpoint,_.Rz)&&(J.nextEndpoint={watchEndpoint:_.L(c.nextEndpoint,_.Rz)});c.setRacy&&(J.setRacy=c.setRacy);c.setControvercy&&(J.setControvercy=c.setControvercy)};var KJ=function(J){this.JSC$15678_storeWithEntities=J};
_.D(KJ,Jg);KJ.prototype.getApiPaths=function(){return Lnu};
KJ.prototype.getExtension=function(J){return _.L(J,mk$)};
KJ.prototype.JSC$10999_buildRequest=function(J,c){c.flowId&&(J.flowId=c.flowId);c.targetId&&(J.targetId=c.targetId);c.continuation&&(J.continuation=c.continuation);var m=c.flowStateEntityKey;if(c.flowStatePassingSpec==="FLOW_STATE_PASSING_SPEC_FULL_STATE"&&m&&this.JSC$15678_storeWithEntities){var b;if(c=(b=this.JSC$15678_storeWithEntities.getState())==null?void 0:b.entities)if(b=_.mA(m).entityType,b=_.P2(c,b,m))J.flowState=b,J.flowStateEntityKey=m}};
_.eE.Object.defineProperties(KJ.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});
KJ[RE]=[PH];var KFL=function(){};
_.D(KFL,Jg);_.V=KFL.prototype;_.V.getApiPaths=function(){return o7$};
_.V.JSC$11006_getStoreKey=function(){return _.A0("guide")};
_.V.getRequestConfig=function(){var J=this.JSC$11006_getStoreKey(),c;J&&(c={storeStrategy:{storeKey:J}});return c};
_.V.isNavigationCommand=function(){return!0};
_.V.getExtension=function(J){return _.L(J,_.In)};
_.V.JSC$10999_buildRequest=function(J){J.fetchLiveState=!0};var CJ=function(){};
_.D(CJ,Jg);CJ.prototype.getApiPaths=function(){return xhz};
CJ.prototype.getExtension=function(J){return _.L(J,v__)};
CJ.prototype.JSC$10999_buildRequest=function(){};var aH=function(){};
_.D(aH,Jg);aH.prototype.getApiPaths=function(){return VBQ};
aH.prototype.getExtension=function(J){return _.L(J,O_L)};
aH.prototype.JSC$10999_buildRequest=function(){};var kS=function(){};
_.D(kS,Jg);kS.prototype.getApiPaths=function(){return gWQ};
kS.prototype.getExtension=function(J){return _.L(J,_.XG)};
kS.prototype.JSC$10999_buildRequest=function(J,c){c.token&&(J.continuation=c.token);var m,b;J==null||(m=J.context)==null||(b=m.user)==null||delete b.onBehalfOfUser};
kS.prototype.getRequestConfig=function(J){var c={},m;if(((m=this.getExtension(J))==null?void 0:m.sessionIndex)!==void 0){var b;c={authStrategy:{sessionIndex:(b=this.getExtension(J))==null?void 0:b.sessionIndex}}}return c};var HK=function(){};
_.D(HK,Jg);HK.prototype.JSC$10999_getRequest=function(J){var c=this.getExtension(J),m=J="";if(c==null?0:c.popup)J="true";if(c==null?0:c.disableSignout)m="true";c={};return{input:"/getAccountSwitcherEndpoint",requestShell:OH("/getAccountSwitcherEndpoint","GET",(c["X-YouTube-Delegation-Context"]=_.Ub("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"),c["X-YouTube-Account-Switcher-Popup"]=J,c["X-YouTube-Account-Switcher-Disable-Signout"]=m,c)),innerTubeRequest:{}}};
HK.prototype.getApiPaths=function(){return[]};
HK.prototype.getExtension=function(J){return _.L(J,_.IsT)};
HK.prototype.JSC$10999_buildRequest=function(){};var ih=function(){};
_.D(ih,Jg);ih.prototype.JSC$10999_getRequest=function(J){var c="/cross_account_channel_transfer";(J=this.getExtension(J))&&(c=Le2(c,{target_session:J.targetSessionIndex,source_rapt:J.sourceRapt,rapt:J.targetRapt}));return{input:c,requestShell:OH(c,"GET"),innerTubeRequest:{}}};
ih.prototype.getApiPaths=function(){return[]};
ih.prototype.getExtension=function(J){return _.L(J,ERj)};
ih.prototype.JSC$10999_buildRequest=function(){};var nJ=function(){};
_.D(nJ,Jg);nJ.prototype.getApiPaths=function(){return DhC};
nJ.prototype.isNavigationCommand=function(){return!0};
nJ.prototype.getExtension=function(J){return _.L(J,_.In)};
nJ.prototype.JSC$10999_buildRequest=function(J){var c=_.HA().get("gsml","");c&&(J.safetyModeLockerObfuscatedGaiaId=c);J.userInterfaceTheme=_.wB(!0);_.rB()?J.deviceTheme="DEVICE_THEME_SELECTED":_.CHe()?J.deviceTheme="DEVICE_THEME_SUPPORTED":J.deviceTheme="DEVICE_THEME_UNSUPPORTED"};var TP=function(){};
_.D(TP,Jg);TP.prototype.getApiPaths=function(){return gWQ};
TP.prototype.getExtension=function(J){return _.L(J,vRa)};
TP.prototype.JSC$10999_buildRequest=function(J,c){if(c&&c.requestType&&(J.requestType=c.requestType,c.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_CHANNEL_SWITCHER"||c.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT")){var m=c.nextUrl;m&&(_.We3(m)||Fk(m))&&(J.nextNavendpoint={urlEndpoint:{url:m}})}c&&c.channelSwitcherQuery&&(J.channelSwitcherQuery=c.channelSwitcherQuery);c&&c.triggerChannelCreation&&(J.triggerChannelCreation=c.triggerChannelCreation);var b;if(c==null?0:(b=c.contentOwnerConfig)==
null?0:b.externalContentOwnerId)J.contentOwnerConfig=c.contentOwnerConfig;J.callCircumstance=c&&c.requestType&&c.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT"?"SUPPLEMENTAL_USER":"SWITCHING_USERS_FULL";var x,P;c=J==null?void 0:(x=J.context)==null?void 0:(P=x.user)==null?void 0:P.onBehalfOfUser;if(c!==void 0){J.obfuscatedSelectedGaiaId=c;var p,t;J==null||(p=J.context)==null||(t=p.user)==null||delete t.onBehalfOfUser}var I,a;if(x=J==null?void 0:(I=J.context)==null?void 0:(a=I.user)==null?
void 0:a.serializedDelegationContext)J.selectedSerializedDelegationContext=x};var wz=function(){};
_.D(wz,Jg);wz.prototype.getApiPaths=function(){return $h$};
wz.prototype.getExtension=function(J){return _.L(J,hhz)};
wz.prototype.JSC$10999_buildRequest=function(J,c){c.profileOwnerExternalChannelId&&(J.profileOwnerExternalChannelId=c.profileOwnerExternalChannelId);c.profileCardContext&&(J.profileCardContext=c.profileCardContext)};var rz=function(){};
_.D(rz,Jg);rz.prototype.getApiPaths=function(){return cM_};
rz.prototype.getExtension=function(J){return _.L(J,ZCa)};
rz.prototype.JSC$10999_buildRequest=function(J,c){c.params&&(J.params=c.params)};var sL=function(){};
_.D(sL,Jg);sL.prototype.getApiPaths=function(){return tBL};
sL.prototype.getExtension=function(J){return _.L(J,_.Qsj)};
sL.prototype.JSC$10999_buildRequest=function(J,c){if(c=c.createBroadcastRequest)J.useMasks=c.useMasks,J.broadcastType=c.broadcastType,J.broadcastSource=c.broadcastSource,J.broadcastMetadata=c.broadcastMetadata,J.broadcastMetadataMask=c.broadcastMetadataMask,J.videoMetadata=c.videoMetadata,J.videoMetadataMask=c.videoMetadataMask,J.liveChatSettingsUpdate=c.liveChatSettingsUpdate,J.liveChatSettingsUpdateMask=c.liveChatSettingsUpdateMask,J.cloneVideoId=c.cloneVideoId,J.cloneWithOverrides=c.cloneWithOverrides,
J.targetEntity=c.targetEntity,J.scheduledRedirectMetadata=c.scheduledRedirectMetadata};var LJ=function(){};
_.D(LJ,Jg);LJ.prototype.getApiPaths=function(){return alC};
LJ.prototype.getExtension=function(J){return _.L(J,o8C)};
LJ.prototype.JSC$10999_buildRequest=function(J,c,m){m=m===void 0?{}:m;c.params&&(J.params=c.params);m.questionText&&(J.questionText=m.questionText);m.optionText&&m.optionText.length>0&&(J.optionText=m.optionText)};var Dw=function(){};
_.D(Dw,Jg);Dw.prototype.getApiPaths=function(){return i$j};
Dw.prototype.getExtension=function(J){return _.L(J,AFB)};
Dw.prototype.JSC$10999_buildRequest=function(J,c){c.params&&(J.params=c.params)};var WK=function(){};
_.D(WK,Jg);WK.prototype.getApiPaths=function(){return Yla};
WK.prototype.getExtension=function(J){return _.L(J,GyQ)};
WK.prototype.JSC$10999_buildRequest=function(J,c){c.params&&(J.params=c.params)};var zP=function(){};
_.D(zP,Jg);zP.prototype.getApiPaths=function(){return Z$8};
zP.prototype.getExtension=function(J){return _.L(J,E8z)};
zP.prototype.JSC$10999_buildRequest=function(J,c,m){c.params&&(J.params=c.params);c.continuation&&(J.continuation=c.continuation);m.currentPlayerState&&m.currentPlayerState.playerOffsetMs&&(J.currentPlayerState={playerOffsetMs:m.currentPlayerState.playerOffsetMs.toString()})};var uh=function(){};
_.D(uh,Jg);uh.prototype.getApiPaths=function(){return ql$};
uh.prototype.getExtension=function(J){return _.L(J,$kz)};
uh.prototype.JSC$10999_buildRequest=function(J,c,m){c.params&&(J.params=c.params);m.continuation&&(J.continuation=m.continuation);"hidden"in m&&(J.webClientInfo={isDocumentHidden:m.hidden});m.isInvalidationTimeoutRequest&&(J.isInvalidationTimeoutRequest=m.isInvalidationTimeoutRequest);m.invalidationPayload&&(c=dkQ(_.I2(lN(m.invalidationPayload))),J.invalidationPayloadLastPublishAtUsec=We(c,2));m.reloadActionPanel&&(J.reloadActionPanel=m.reloadActionPanel);m.fullReload&&(J.fullReload=m.fullReload);
m.currentPlayerState&&(J.currentPlayerState=m.currentPlayerState)};var fJ=function(){};
_.D(fJ,Jg);fJ.prototype.getApiPaths=function(){return FnB};
fJ.prototype.getExtension=function(J){return _.L(J,R4u)};
fJ.prototype.JSC$10999_buildRequest=function(J,c){J.params=c.params};var YS=function(){};
_.D(YS,Jg);YS.prototype.getApiPaths=function(){return X$Z};
YS.prototype.getExtension=function(J){return _.L(J,jEQ)};
YS.prototype.JSC$10999_buildRequest=function(J,c){c.params&&(J.params=c.params)};var XE=function(){};
_.D(XE,Jg);XE.prototype.getApiPaths=function(){return UhQ};
XE.prototype.getExtension=function(J){return _.L(J,FRu)};
XE.prototype.JSC$10999_buildRequest=function(J,c){c.params&&(J.params=c.params)};var Zw=function(){};
_.D(Zw,Jg);Zw.prototype.getApiPaths=function(){return llL};
Zw.prototype.getExtension=function(J){return _.L(J,QSC)};
Zw.prototype.JSC$10999_buildRequest=function(J,c){c.params&&(J.params=c.params)};var qc=function(){};
_.D(qc,Jg);qc.prototype.getApiPaths=function(){return BV6};
qc.prototype.getExtension=function(J){return _.L(J,e4a)};
qc.prototype.JSC$10999_buildRequest=function(J,c){c.params&&(J.params=c.params)};var UL=function(){};
_.D(UL,Jg);UL.prototype.getApiPaths=function(){return MFC};
UL.prototype.getExtension=function(J){return _.L(J,SZa)};
UL.prototype.JSC$10999_buildRequest=function(J,c){c.params&&(J.params=c.params)};var SY=function(){};
_.D(SY,Jg);SY.prototype.getApiPaths=function(){return aO_};
SY.prototype.getExtension=function(J){return _.L(J,_.jSB)};
SY.prototype.JSC$10999_buildRequest=function(J,c,m){m=m===void 0?{}:m;c.params&&(J.params=c.params);m.client_message_id&&(J.clientMessageId=m.client_message_id);m.recaptcha_token&&(J.recaptchaToken=m.recaptcha_token);m.rich_message&&m.rich_message.text_segments?(c=m.rich_message.text_segments.map(function(b){var x={};b.text&&(x.text=b.text);b.emoji_id&&(x.emojiId=b.emoji_id);return x}),J.richMessage={textSegments:c}):m.message&&(J.message=m.message);
m.currentPlayerState&&(J.currentPlayerState=m.currentPlayerState)};var h6=function(){};
_.D(h6,Jg);h6.prototype.getApiPaths=function(){return kKC};
h6.prototype.getExtension=function(J){return _.L(J,FEB)};
h6.prototype.JSC$10999_buildRequest=function(J,c){c.params&&(J.params=c.params)};var dz=function(){};
_.D(dz,Jg);dz.prototype.getApiPaths=function(){return TFL};
dz.prototype.getExtension=function(J){return _.L(J,yFB)};
dz.prototype.JSC$10999_buildRequest=function(J,c,m){c.isUserInitiated&&(J.isUserInitiated=c.isUserInitiated);c.initiationSource&&(J.initiationSource=c.initiationSource);m.locationInfo&&(J.context.client.locationInfo=m.locationInfo)};var $S=function(){};
_.D($S,Jg);$S.prototype.getApiPaths=function(){return yMj};
$S.prototype.getExtension=function(J){return _.L(J,e6u)};
$S.prototype.JSC$10999_buildRequest=function(J,c,m){c.metadataUpdateRequest&&(c=c.metadataUpdateRequest,J.encryptedVideoId=c.encryptedVideoId,c.liveChat&&(c=c.liveChat,J.liveChat||(J.liveChat={}),c.performAsExternalChannelId&&(J.liveChat.performAsExternalChannelId=c.performAsExternalChannelId),c.source&&(J.liveChat.source=c.source)));var b;if(m==null?0:(b=m.liveChat)==null?0:b.liveChatSettings)J.liveChat||(J.liveChat={}),m=m.liveChat.liveChatSettings,J.liveChat.newLiveChatSettings=m,J.liveChat.newLiveChatSettingsMask||
(J.liveChat.newLiveChatSettingsMask={}),m.emojiReactionSet&&(J.liveChat.newLiveChatSettingsMask.emojiReactionSet=!0)};var GP=function(){};
_.D(GP,Jg);GP.prototype.getApiPaths=function(){return fOZ};
GP.prototype.getExtension=function(J){return _.L(J,_.Po$)};
GP.prototype.JSC$10999_buildRequest=function(J,c,m){m.continuation?J.continuation=m.continuation:c.videoId&&(J.videoId=c.videoId);m.clientParams&&(J.clientParams=m.clientParams)};var EL=function(){};
_.D(EL,Jg);EL.prototype.getApiPaths=function(){return Sl_};
EL.prototype.getExtension=function(J){return _.L(J,_.LO)};
EL.prototype.JSC$10999_buildRequest=function(J,c){J.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";J.fetchCommentsParams={};c.videoId&&(J.fetchCommentsParams.encryptedVideoId=c.videoId);c.postId&&(J.fetchCommentsParams.postId=c.postId);c.externalChannelId&&(J.fetchCommentsParams.externalChannelId=c.externalChannelId);c.linkedCommentId&&(J.fetchCommentsParams.linkedCommentId=c.linkedCommentId);(0,_.Lw.isEmpty)(J.fetchCommentsParams)&&delete J.fetchCommentsParams};var vK=function(){};
_.D(vK,Jg);vK.prototype.getApiPaths=function(){return lD};
vK.prototype.JSC$10999_buildRequest=function(J){J.browseId="FEnotifications_inbox"};
vK.prototype.getExtension=function(J){return _.L(J,_.In)};var OL=function(){};
_.D(OL,Jg);OL.prototype.getApiPaths=function(){return Sl_};
OL.prototype.JSC$10999_buildRequest=function(J,c){c.signal==="GET_NOTIFICATIONS_MENU"&&(J.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_INBOX");c.ctoken&&(J.ctoken=c.ctoken)};
var Cl_=function(){};
_.D(Cl_,OL);Cl_.prototype.getExtension=function(J){return _.L(J,_.In)};
var aH6=function(){};
_.D(aH6,OL);aH6.prototype.getExtension=function(J){return _.L(J,fba)};var A6=function(){};
_.D(A6,Jg);A6.prototype.getApiPaths=function(){return O$u};
A6.prototype.getExtension=function(J){return _.L(J,_.In)};
A6.prototype.JSC$10999_buildRequest=function(){};var RH=function(){};
_.D(RH,Jg);RH.prototype.getApiPaths=function(){return g7C};
RH.prototype.getExtension=function(J){return _.L(J,cVL)||void 0};
RH.prototype.JSC$10999_buildRequest=function(J,c){c.params&&(J.params=c.params);c.secondaryParams&&(J.secondaryParams=c.secondaryParams)};var oH=function(){};
_.D(oH,Jg);oH.prototype.getApiPaths=function(){return Jga};
oH.prototype.getExtension=function(J){return _.L(J,qZQ)};
oH.prototype.JSC$10999_buildRequest=function(J,c){c.undo&&(J.undo=c.undo);c.serializedOptOut&&(J.serializedOptOut=c.serializedOptOut);c.serializedRecordInteractionsRequest&&(J.serializedRecordInteractionsRequest=c.serializedRecordInteractionsRequest)};var QX=function(){};
_.D(QX,Jg);QX.prototype.getApiPaths=function(){return b9Z};
QX.prototype.getExtension=function(J){return _.L(J,UBz)};
QX.prototype.JSC$10999_buildRequest=function(J,c){c.serializedInteractionsRequest&&(J.serializedRecordNotificationInteractionsRequest=c.serializedInteractionsRequest)};var eY=function(){};
_.D(eY,Jg);eY.prototype.getApiPaths=function(){return p_T};
eY.prototype.getExtension=function(J){return _.L(J,Tnf)};
eY.prototype.JSC$10999_buildRequest=function(J,c,m){c=c===void 0?{}:c;m=m===void 0?{}:m;c.videoId?J.videoId=c.videoId:c.playlistId&&(J.playlistId=c.playlistId);var b,x=(b=c.offlineWebClientEligibility)!=null?b:m.offlineWebClientEligibility;x&&(J.offlineWebClientEligibility=x);var P;if(b=(P=c.preferredFormatType)!=null?P:m.preferredFormatType)J.preferredFormatType=b;var p;if(P=(p=c.lastOfflineQualitySettingsSavedMs)!=null?p:m.lastOfflineQualitySettingsSavedMs)J.lastOfflineQualitySettingsSavedMs=P;
c.params&&(J.params=c.params)};var jY=function(){};
_.D(jY,Jg);jY.prototype.getApiPaths=function(){return v3};
jY.prototype.getExtension=function(J){return _.L(J,_.XG)};
jY.prototype.JSC$10999_buildRequest=function(J,c,m){m=m===void 0?{}:m;c.token&&(J.continuation=c.token);m.formData&&(J.formData=m.formData)};var FE=function(){};
_.D(FE,Jg);FE.prototype.getApiPaths=function(){return v3};
FE.prototype.getExtension=function(J){return _.L(J,v1j)};
FE.prototype.JSC$10999_buildRequest=function(J,c,m){m=m===void 0?{}:m;J.continuation=m.continuation};var lh=function(){};
_.D(lh,Jg);lh.prototype.getApiPaths=function(){return v3};
lh.prototype.getExtension=function(J){return _.L(J,_.zt)};
lh.prototype.JSC$10999_buildRequest=function(J,c){var m,b=c.panelIdentifier||((m=c.identifier)==null?void 0:m.tag);b&&(J.panelId=b);var x;if((x=c.globalConfiguration)==null?0:x.params){var P;J.params=(P=c.globalConfiguration)==null?void 0:P.params}};
_.eE.Object.defineProperties(lh.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var yX=function(){};
_.D(yX,Jg);yX.prototype.getApiPaths=function(){return v3};
yX.prototype.getExtension=function(J){return _.L(J,LO6)};
yX.prototype.JSC$10999_buildRequest=function(J,c){c.panelLoadingStrategy&&b8D(J,c.panelLoadingStrategy)};var BK=function(){};
_.D(BK,Jg);BK.prototype.getApiPaths=function(){return v3};
BK.prototype.getExtension=function(J){return _.L(J,oc6)};
BK.prototype.JSC$10999_buildRequest=function(J,c){c.loadingStrategy&&b8D(J,c.loadingStrategy)};var gz=function(){};
_.D(gz,Jg);gz.prototype.getApiPaths=function(){return v3};
gz.prototype.getExtension=function(J){return _.L(J,_.KK)};
gz.prototype.JSC$10999_buildRequest=function(J,c){c.panelLoadingStrategy&&b8D(J,c.panelLoadingStrategy)};var Jh=function(){};
_.D(Jh,Jg);Jh.prototype.getApiPaths=function(){return v3};
Jh.prototype.getExtension=function(J){return _.L(J,QEa)};
Jh.prototype.JSC$10999_buildRequest=function(J,c){var m,b=(m=c.contentSourcePanelIdentifier)==null?void 0:m.tag;b&&(J.panelId=b);var x;if((x=c.globalConfiguration)==null?0:x.params){var P;J.params=(P=c.globalConfiguration)==null?void 0:P.params}};var cx=function(){};
_.D(cx,Jg);cx.prototype.getApiPaths=function(){return["pdg/get_pdg_buy_flow"]};
cx.prototype.getExtension=function(J){return _.L(J,eC6)};
cx.prototype.JSC$10999_buildRequest=function(J,c){c.params&&(J.params=c.params)};var mH=function(){};
_.D(mH,Jg);mH.prototype.getApiPaths=function(){return uLZ};
mH.prototype.getExtension=function(J){return _.L(J,lfZ)};
mH.prototype.JSC$10999_buildRequest=function(J,c){c.externalChannelId&&(J.externalChannelId=c.externalChannelId);c.superChatAction&&(J.superChatAction=c.superChatAction);c.superStickersAction&&(J.superStickersAction=c.superStickersAction)};var b9=function(){};
_.D(b9,Jg);b9.prototype.getApiPaths=function(){return Wna};
b9.prototype.getExtension=function(J){return _.L(J,E_6)||_.L(J,rRq)};
b9.prototype.JSC$10999_buildRequest=function(J,c){c.videoIds?J.videoIds=c.videoIds:c.videoId&&(J.videoIds=[c.videoId]);c.playlistId&&(J.playlistId=c.playlistId);c.params&&(J.params=c.params);J.excludeWatchLater=!1};var x4=function(){};
_.D(x4,Jg);x4.prototype.getApiPaths=function(){return knL};
x4.prototype.getExtension=function(J){return _.L(J,_.XI)};
x4.prototype.JSC$10999_buildRequest=function(J,c,m){m.create_playlist_title?J.title=m.create_playlist_title:c.title&&(J.title=c.title);if(m.create_playlist_privacy_status&&typeof m.create_playlist_privacy_status==="number"){a:{var b=m.create_playlist_privacy_status;if(b!==0){if(b===1){b="PUBLIC";break a}if(b===2){b="UNLISTED";break a}}b="PRIVATE"}J.privacyStatus=b}else c.privacyStatus&&(J.privacyStatus=c.privacyStatus);m.create_playlist_description&&(J.description=m.create_playlist_description);c.videoIds&&
(J.videoIds=c.videoIds);c.params&&(J.params=c.params);c.sourcePlaylistId&&(J.sourcePlaylistId=c.sourcePlaylistId)};var VY=function(){};
_.D(VY,Jg);VY.prototype.getApiPaths=function(){return n7j};
VY.prototype.getExtension=function(J){return _.L(J,Fcz)};
VY.prototype.JSC$10999_buildRequest=function(J,c){J.playlistId=c.playlistId};var Px=function(){};
_.D(Px,Jg);Px.prototype.getApiPaths=function(){return hf2};
Px.prototype.getExtension=function(J){return _.L(J,zCa)};
Px.prototype.JSC$10999_buildRequest=function(J,c){c.playlistId&&(J.playlistId=c.playlistId);c.params&&(J.params=c.params)};var M$=function(){};
_.D(M$,Jg);M$.prototype.getApiPaths=function(){return mH_};
M$.prototype.getExtension=function(J){return _.L(J,_.DA)||void 0};
M$.prototype.JSC$10999_buildRequest=function(J,c){c.actions&&(J.actions=c.actions);c.params&&(J.params=c.params);c.playlistId&&(J.playlistId=c.playlistId)};var pz=function(){};
_.D(pz,Jg);_.V=pz.prototype;_.V.getApiPaths=function(){return xH_};
_.V.getExtension=function(J){return _.L(J,_.kb)};
_.V.JSC$10999_buildRequest=function(J,c){c.videoId&&(J.playerRequest={videoId:c.videoId},c.playerParams&&(J.playerRequest.params=c.playerParams),c.racyCheckOk&&(J.playerRequest.racyCheckOk=!!c.racyCheckOk),c.contentCheckOk&&(J.playerRequest.contentCheckOk=!!c.contentCheckOk));c.params&&(J.params=c.params);c.inputType&&(J.inputType=c.inputType);J.disablePlayerResponse=!0};
_.V.getRequestConfig=function(J){var c;(J=this.JSC$11006_getStoreKey(J))&&(c={storeStrategy:{storeKey:J}});_.w("web_log_reels_ticks")&&(c=c||{},c.requestTick="r_wrs",c.responseTick="r_wrr");return c};
_.V.JSC$11006_getStoreKey=function(J){J=this.getExtension(J);if(_.w("shorts_controller_retrieve_seedless_sequence_v2")){if((J==null?void 0:J.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS")return _.A0("reel_item_watch",{inputType:"REEL_WATCH_INPUT_TYPE_SEEDLESS"})}else if((_.w("web_prefetch_riw_for_next_video")||_.w("web_shorts_prefetch_service_enabled"))&&J!=null&&J.videoId){var c={videoId:J.videoId};J.params&&(c.params=J.params);return _.A0("reel_item_watch",c)}};var N$=function(){};
_.D(N$,Jg);_.V=N$.prototype;_.V.getApiPaths=function(){return VFj};
_.V.getExtension=function(J){return _.L(J,_.kb)};
_.V.JSC$10999_buildRequest=function(J,c,m){m=m===void 0?{}:m;J.sequenceParams=c.sequenceParams;var b;((b=m)==null?0:b.contentPlaybackContext)&&_.w("web_shorts_prefetch_service_enabled")&&(J.playbackContext={contentPlaybackContext:m.contentPlaybackContext})};
_.V.JSC$11006_getStoreKey=function(J){if(_.w("shorts_controller_retrieve_seedless_sequence_v2")&&(J=this.getExtension(J),J==null?0:J.sequenceParams))return _.A0("reel_watch_sequence",{sequenceParams:J.sequenceParams})};
_.V.getRequestConfig=function(J){J=this.JSC$11006_getStoreKey(J);var c;J&&(c={storeStrategy:{storeKey:J}});_.w("reel_watch_sequence_request_log_ticks")&&(c=c||{},c.requestTick="r_wsrs",c.responseTick="r_wsrr",c.processorTick="r_wsrp");return c};
var th=function(){};
_.D(th,Jg);th.prototype.getApiPaths=function(){return VFj};
th.prototype.getExtension=function(J){return _.L(J,_.XG)};
th.prototype.JSC$10999_buildRequest=function(J,c,m){m=m===void 0?{}:m;c.token&&(J.continuation=c.token);var b;((b=m)==null?0:b.contentPlaybackContext)&&_.w("web_shorts_prefetch_service_enabled")&&(J.playbackContext={contentPlaybackContext:m.contentPlaybackContext})};
th.prototype.getRequestConfig=function(J){J=this.JSC$11006_getStoreKey(J);var c;J&&(c={storeStrategy:{storeKey:J}});_.w("reel_watch_sequence_request_log_ticks")&&(c=c||{},c.requestTick="r_wsrs",c.responseTick="r_wsrr",c.processorTick="r_wsrp");return c};var Id=function(){};
_.D(Id,Jg);Id.prototype.getApiPaths=function(){return sQ_};
Id.prototype.getExtension=function(J){return _.L(J,_.cFB)};
Id.prototype.JSC$10999_buildRequest=function(J,c,m){m=m===void 0?{}:m;c.flagAction&&(J.action=c.flagAction);c.flagRequestType&&(J.flagRequestType=c.flagRequestType);c.additionalDetailCheckboxChecked&&(J.additionalDetailCheckboxChecked=c.additionalDetailCheckboxChecked);c.legalCheckboxChecked&&(J.legalCheckboxChecked=c.legalCheckboxChecked);c={};m.flag_issue_type!==void 0&&(c.issue=m.flag_issue_type);m.flag_affiliation!==void 0&&(c.affiliation=m.flag_affiliation);m.flag_full_name&&(c.fullName=m.flag_full_name);
Object.keys(c).length&&(J.legalReportDetails=c);if(m.flag_description||m.text)J.userComments=m.flag_description||m.text;c={};m.minutes!==void 0&&m.seconds!==void 0&&(c.minutes=m.minutes,c.seconds=m.seconds);m.vss_id&&(c.vssId=m.vss_id);Object.keys(c).length&&(J.videoReportDetails=c);c={};m.video_ids&&(c.videoIds=m.video_ids);m.impersonated_channel_url&&(c.impersonatedChannelUrl=m.impersonated_channel_url);Object.keys(c).length&&(J.channelAbuseReportDetails=c)};
_.eE.Object.defineProperties(Id.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Kz=function(){};
_.D(Kz,Jg);Kz.prototype.getApiPaths=function(){return flQ};
Kz.prototype.getExtension=function(J){return _.L(J,fKu)};
Kz.prototype.JSC$10999_buildRequest=function(J,c){c.blockedForKidsContent&&(J.blockedForKidsContent=c.blockedForKidsContent)};var Cz=function(){};
_.D(Cz,Jg);Cz.prototype.getApiPaths=function(){return ptZ};
Cz.prototype.getExtension=function(J){return _.L(J,wJQ)};
Cz.prototype.JSC$10999_buildRequest=function(J,c,m){J.params=c.params;m.impersonated_channel_url&&(J.impersonatedChannelUrl=m.impersonated_channel_url)};var ad=function(){};
_.D(ad,Jg);ad.prototype.getApiPaths=function(){return ef8};
ad.prototype.getExtension=function(J){return _.L(J,_.YKQ)};
ad.prototype.JSC$10999_buildRequest=function(J,c){c.items&&(J.items=c.items);c.kidGaiaId&&(J.kidGaiaId=c.kidGaiaId)};var k4=function(){};
_.D(k4,Jg);k4.prototype.getApiPaths=function(){return zf8};
k4.prototype.getExtension=function(J){return _.L(J,_.$wQ)};
k4.prototype.JSC$10999_buildRequest=function(J,c){c.params&&(J.params=c.params);c.targetId&&(J.targetId=c.targetId)};var Hx=function(){};
_.D(Hx,Jg);Hx.prototype.getApiPaths=function(){return K7u};
Hx.prototype.getExtension=function(J){return _.L(J,YSz)};
Hx.prototype.JSC$10999_buildRequest=function(J,c){c.externalVideoId&&(J.externalVideoId=c.externalVideoId);c.query&&(J.query=c.query);c.sourceTimelines&&(J.sourceTimelines=c.sourceTimelines)};var i9=function(){};
_.D(i9,Jg);i9.prototype.getApiPaths=function(){return CUZ};
i9.prototype.getExtension=function(J){return _.L(J,_.XG)||void 0};
i9.prototype.JSC$10999_buildRequest=function(J,c){c.token&&(J.continuation=c.token)};
_.k6a=function(){};
_.D(_.k6a,Jg);_.V=_.k6a.prototype;_.V.getApiPaths=function(){return CUZ};
_.V.getExtension=function(J){return _.L(J,_.Kv)||void 0};
_.V.isNavigationCommand=function(){return!0};
_.V.JSC$11006_getStoreKey=function(J,c){c=c===void 0?{}:c;if(!c.disableCache&&(J=this.getExtension(J))&&J.query)return c={query:J.query},J.params&&(c.params=J.params),_.A0("search",c)};
_.V.JSC$10999_buildRequest=function(J,c,m){c.query&&(J.query=c.query);c.params&&(J.params=c.params);if(!_.w("web_forward_suggest_stats_killswitch")){var b=_.L(c,T2L);b&&(J.suggestStats=b)}var x;!_.w("kevlar_searchbox_stats_killswitch")&&((x=m.tempData)==null?0:x.gs_l)&&!_.L(c,T2L)&&(J.webSearchboxStatsUrl="/search?oq="+(m.tempData.oq||"")+"&gs_l="+m.tempData.gs_l);var P;if((P=m.tempData)==null?0:P.entityMid)c=J.suggestionSearchParams||{},c.entityMid=m.tempData.entityMid,J.suggestionSearchParams=c};
_.V.getRequestConfig=function(J,c){c=c===void 0?{}:c;J=this.JSC$11006_getStoreKey(J,c);var m;J&&(m={storeStrategy:{storeKey:J}});_.w("web_log_search_ticks_ks")||(m=m||{},m.requestTick="sr_s",m.responseTick="sr_r");return m};var nz=function(){};
_.D(nz,Jg);nz.prototype.getApiPaths=function(){return E72};
nz.prototype.getExtension=function(J){return _.L(J,Ij8)};
nz.prototype.JSC$10999_buildRequest=function(J,c){c.serializedGetSharingProviderDataParams&&(J.serializedGetSharingProviderDataParams=c.serializedGetSharingProviderDataParams)};var TQ=function(){};
_.D(TQ,Jg);TQ.prototype.getApiPaths=function(){return v76};
TQ.prototype.getExtension=function(J){return _.L(J,lbj)};
TQ.prototype.JSC$10999_buildRequest=function(J,c){c.endpoint&&(J.endpoint=c.endpoint);c.action&&(J.action=c.action)};var wH=function(){};
_.D(wH,Jg);wH.prototype.getApiPaths=function(){return TV$};
wH.prototype.getExtension=function(J){return _.L(J,lrZ)};
wH.prototype.JSC$10999_buildRequest=function(J,c){J.videoId=c.videoId;c.scheduledRedirectMetadataSourceVideoId&&(J.scheduledRedirectMetadata={sourceVideoId:c.scheduledRedirectMetadataSourceVideoId})};var rH=function(){};
_.D(rH,Jg);rH.prototype.getApiPaths=function(){return i9C};
rH.prototype.getExtension=function(J){return _.L(J,_.Qeu)};
rH.prototype.JSC$10999_buildRequest=function(J,c){J.params=c.params;J.correctionText=c.correctionText};var sE=function(){};
_.D(sE,Jg);sE.prototype.getApiPaths=function(){return PY2};
sE.prototype.getExtension=function(J){return _.L(J,_.XeQ)};
sE.prototype.JSC$10999_buildRequest=function(J,c){c.params&&(J.params=c.params);J.searchQuery=c.searchQuery;J.languageCode=c.languageCode;J.kind=c.kind;J.name=c.name;J.externalVideoId=c.externalVideoId};var Lz=function(){};
_.D(Lz,Jg);Lz.prototype.getApiPaths=function(){return qW6};
Lz.prototype.getExtension=function(J){return _.L(J,Pr8)};
Lz.prototype.JSC$10999_buildRequest=function(J,c){c.params&&(J.params=c.params)};var DV=function(J){this.JSC$15953_storeWithEntities=J};
_.D(DV,Jg);DV.prototype.getApiPaths=function(){return p$6};
DV.prototype.getExtension=function(J){return _.L(J,p3_)||_.L(J,tGQ)};
DV.prototype.JSC$10999_buildRequest=function(J,c,m){m.client_data&&(J.clientData=m.client_data);if(c.commerceActionConfig){var b=c.commerceActionConfig;c=b.actionId;b=b.commerceActionParams;c&&(J.actionId=c);b&&(J.commerceActionParams=b)}else{var x=c.actionId,P=c.commerceActionParams;m=c.entityKeys;x&&(J.actionId=x);P&&(J.commerceActionParams=P);var p;c=(b=this.JSC$15953_storeWithEntities)==null?void 0:(p=b.getState())==null?void 0:p.entities;if(m&&c){b=[];p=_.M(m);for(m=p.next();!m.done;m=p.next())if(x=
m.value,m=_.mA(x).entityType,x=_.P2(c,m,x))P={},b.push((P[m]=x,P));J.entityMutationPayloads=b}}};
DV.prototype.getRequestConfig=function(J){var c,m=(c=_.L(J,p3_))==null?void 0:c.requestSequenceType;if(m&&J.clickTrackingParams&&m!=="REQUEST_SEQUENCE_TYPE_UNKNOWN")return{sequenceStrategy:{sequenceKey:J.clickTrackingParams,sequenceType:m}}};
DV[RE]=[PH];var Wx=function(){};
_.D(Wx,Jg);Wx.prototype.getApiPaths=function(){return UH_};
Wx.prototype.getExtension=function(J){return _.L(J,_.fAQ)};
Wx.prototype.JSC$10999_buildRequest=function(J,c){c.feedbackData&&(J.feedbackData=c.feedbackData);c.params&&(J.itemParams=c.params)};
_.eE.Object.defineProperties(Wx.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var zQ=function(){};
_.D(zQ,Jg);zQ.prototype.getApiPaths=function(){return SW$};
zQ.prototype.getExtension=function(J){return _.L(J,YP_)};
zQ.prototype.JSC$10999_buildRequest=function(J,c,m){m.payments_payload&&(J.paymentsPayload=m.payments_payload);m.offer_params&&(J.offerParams=m.offer_params);c.transactionParams&&(J.transactionParams=c.transactionParams)};var u9=function(){};
_.D(u9,Jg);u9.prototype.getApiPaths=function(){return hl8};
u9.prototype.getExtension=function(J){return _.L(J,_.X3j)};
u9.prototype.JSC$10999_buildRequest=function(J,c,m){m=m===void 0?{}:m;c.buybucketParams&&(J.buybucketData={params:c.buybucketParams},c.stickerParams?J.buybucketData.stickerParams=c.stickerParams:(m.rich_chat_message?J.buybucketData.richChatMessage=m.rich_chat_message:m.chat_message_text&&(J.buybucketData.chatMessageText=m.chat_message_text),m.purchase_price_micros&&(J.buybucketData.purchasePriceMicros=m.purchase_price_micros.toString())));c.donationAmountMicros&&(J.tipAmountMicros=c.donationAmountMicros,
c.tipParams&&(J.tipParams=c.tipParams));c.offerParams&&(J.offerParams=c.offerParams);c.productData&&(J.productData=c.productData);c.transactionParams&&(J.transactionParams=c.transactionParams)};var fz=function(){};
_.D(fz,Jg);fz.prototype.getApiPaths=function(){return dHQ};
fz.prototype.getExtension=function(J){return _.L(J,UZ2)};
fz.prototype.JSC$10999_buildRequest=function(J,c){c.updateFopParams&&(J.updateFopParams=c.updateFopParams)};var Y4=function(){};
_.D(Y4,Jg);Y4.prototype.getApiPaths=function(){return $HQ};
Y4.prototype.getExtension=function(J){return _.L(J,_.c8)};
Y4.prototype.JSC$10999_buildRequest=function(J,c){c.couponCode&&(J.couponCode=c.couponCode);c.params&&(J.itemParams=c.params)};var Xp=function(){};
_.D(Xp,Jg);Xp.prototype.getApiPaths=function(){return GKQ};
Xp.prototype.getExtension=function(J){return _.L(J,_.NeZ)};
Xp.prototype.JSC$10999_buildRequest=function(J,c,m){m=m===void 0?{}:m;c.params&&(J.params=c.params);m.ctk&&(J.clientToken=m.ctk)};var ZV=function(J){this.JSC$15988_storeWithEntities=J};
_.D(ZV,Jg);ZV.prototype.getApiPaths=function(){return EsB};
ZV.prototype.getExtension=function(J){return _.L(J,_.qZ)};
ZV.prototype.JSC$10999_buildRequest=function(J,c,m){m.purchase_price_micros&&(J.productData={pdgData:{purchasePriceMicros:m.purchase_price_micros.toString()}},m.rich_chat_message&&(J.productData.pdgData.richChatMessage=m.rich_chat_message),m.currency_code&&(J.productData.pdgData.currencyCode=m.currency_code));c.transactionParams&&(J.transactionParams=c.transactionParams);c.clientLocationContext&&(J.clientLocationContext=c.clientLocationContext);m.payments_payload&&(J.paymentsPayload=m.payments_payload);
m.funds_guarantee_callback_client_data&&(J.fundsGuaranteeCallbackClientData=m.funds_guarantee_callback_client_data);var b,x;m=(b=this.JSC$15988_storeWithEntities)==null?void 0:(x=b.getState())==null?void 0:x.entities;if(c.entityKeys&&m){b=[];c=_.M(c.entityKeys);for(x=c.next();!x.done;x=c.next()){var P=x.value;x=_.mA(P).entityType;if(P=_.P2(m,x,P)){var p={};b.push((p[x]=P,p))}}J.entityMutationPayloads=b}};
ZV[RE]=[PH];var q$=function(){};
_.D(q$,Jg);q$.prototype.getApiPaths=function(){return vsQ};
q$.prototype.getExtension=function(J){return _.L(J,ZO_)};
q$.prototype.JSC$10999_buildRequest=function(J,c,m){m=m===void 0?{}:m;m.backend_analytics&&(J.serializedBackendAnalyticsEvent=m.backend_analytics);c.offerParams&&(J.offerParams=c.offerParams)};var UE=function(){};
_.D(UE,Jg);UE.prototype.getApiPaths=function(){return $HQ};
UE.prototype.getExtension=function(J){return _.L(J,gDQ)};
UE.prototype.JSC$10999_buildRequest=function(J,c){c.params&&(J.itemParams=c.params)};var Sc=function(){};
_.D(Sc,Jg);Sc.prototype.getApiPaths=function(){return O9Q};
Sc.prototype.getExtension=function(J){return _.L(J,_.k3L)};
Sc.prototype.JSC$10999_buildRequest=function(J,c,m){m.resume_time_ms&&(J.resumeTimeMs=m.resume_time_ms);c.pauseParams&&(J.pauseParams=c.pauseParams)};var hh=function(){};
_.D(hh,Jg);hh.prototype.getApiPaths=function(){return Ag2};
hh.prototype.getExtension=function(J){return _.L(J,_.qPu)};
hh.prototype.JSC$10999_buildRequest=function(J,c,m){m=m===void 0?{}:m;m.c&&(J.redeemCode=m.c);m.rd&&(J.riskData=m.rd);m.ctk&&(J.clientToken=m.ctk)};var dH=function(){};
_.D(dH,Jg);dH.prototype.getApiPaths=function(){return Rl8};
dH.prototype.getExtension=function(J){return _.L(J,_.HOL)};
dH.prototype.JSC$10999_buildRequest=function(J,c){c.resumeParams&&(J.resumeParams=c.resumeParams)};var $4=function(J,c){this.clientName=J;this.defaultExpirationDelayMs=c};
$4.prototype.put=function(J,c){var m=this,b;return _.N(function(x){b=Object.assign({},c.data);b.key=J;b.clientName=m.clientName;b.expireTimestampMs===void 0&&(b.expireTimestampMs=(Math.round((0,_.y4)())+m.defaultExpirationDelayMs).toString());return x.return(m.putInternal(J,b))})};
$4[RE]=[Hc,YJz];var HPz=function(){$4.apply(this,arguments);this.JSC$16018_responseStore=new Map};
_.D(HPz,$4);_.V=HPz.prototype;_.V.get=function(J){var c=this;return _.N(function(m){return m.return(xT(c,J))})};
_.V.putInternal=function(J,c){var m=this,b,x,P;return _.N(function(p){b=m.defaultExpirationDelayMs;c.expireTimestampMs&&(b=Number(c.expireTimestampMs)-Math.round((0,_.y4)()),x=_.c7("mweb_override_response_store_expiration_ms"),x>0&&x<b&&(b=x));P=setTimeout(function(){m.remove(J)},b);
m.JSC$16018_responseStore.set(J,{entryData:c,timer:P});_.tD(p)})};
_.V.remove=function(J){var c=this;return _.N(function(m){iPj(c,J);_.tD(m)})};
_.V.removeAll=function(){var J=this;return _.N(function(c){J.JSC$16018_responseStore.forEach(function(m){clearTimeout(m.timer)});
J.JSC$16018_responseStore.clear();_.tD(c)})};
_.V.has=function(J){return!!this.JSC$16018_responseStore.get(J)};
_.V.getKeys=function(){return this.JSC$16018_responseStore.keys()};
var xT=function(J,c){if(J=J.JSC$16018_responseStore.get(c))return new _.bG(J.entryData)},iPj=function(J,c){var m=J.JSC$16018_responseStore.get(c);
m&&(clearTimeout(m.timer),J.JSC$16018_responseStore.delete(c))};var xQm;var Mqu=function(J,c,m){$4.call(this,J,c);this.token=m};
_.D(Mqu,$4);_.V=Mqu.prototype;_.V.get=function(J){var c=this,m,b;return _.N(function(x){return x.nextAddress==1?_.K(x,Pzo(c.token),2):x.nextAddress!=3?(m=x.yieldResult,_.K(x,m.get("ResponseStore",[J,c.clientName]),3)):(b=x.yieldResult)?x.return(new _.bG(b)):x.return(void 0)})};
_.V.putInternal=function(J,c){var m=this,b;return _.N(function(x){if(x.nextAddress==1)return _.K(x,Pzo(m.token),2);b=x.yieldResult;return _.K(x,b.put("ResponseStore",c),0)})};
_.V.remove=function(J){var c=this,m;return _.N(function(b){if(b.nextAddress==1)return _.K(b,Pzo(c.token),2);m=b.yieldResult;return b.return(m.delete("ResponseStore",[J,c.clientName]))})};
_.V.removeAll=function(){var J=this,c;return _.N(function(m){if(m.nextAddress==1)return _.K(m,Pzo(J.token),2);c=m.yieldResult;return _.K(m,Zg_(c,IDBKeyRange.only(J.clientName)),0)})};
_.V.has=function(){throw Error("Ti");};_.GQ=new _.oE("PERSISTENT_STORE_PROMISE_ACCESSOR_TOKEN");var nvZ=function(J){var c;this.stateTagsData=(c=J.responseContext)==null?void 0:c.stateTags},Twu=function(J){var c;
return((c=J.stateTagsData)==null?void 0:c.stateTagsModified)||[]};var wZ2;wZ2=function(J){this.JSC$16031_responseStore=J};
_.$g=function(J,c,m){if(!_.w("state_tags_killswitch")){var b=new nvZ(c);if(Twu(b).length>0){var x=J.JSC$16031_responseStore.getKeys();x=_.M(x);for(var P=x.next();!P.done;P=x.next()){P=P.value;var p=xT(J.JSC$16031_responseStore,P);if(p){var t=_.xg(p);a:{var I=void 0;p=Twu(b);t=((I=(new nvZ(t)).stateTagsData)==null?void 0:I.relevantStateTags)||[];I=_.M(t);for(t=I.next();!t.done;t=I.next())if(t=t.value,t.stateTag!=null&&p.includes(t.stateTag)&&t.onStateTagModified==="STATE_TAG_CACHE_INSTRUCTION_EVICT_RESPONSE"){p=
!0;break a}p=!1}p&&iPj(J.JSC$16031_responseStore,P)}}}}var a;b=(a=c.responseContext)==null?void 0:a.maxAgeSeconds;_.w("web_prefetch_riw_for_next_video")&&!b&&c.status==="REEL_ITEM_WATCH_STATUS_SUCCEEDED"&&(b=3600);m&&b&&Number(b)>0&&(c=JT(c,b),J.JSC$16031_responseStore.put(m,new _.bG(c)))};
wZ2.prototype.handleResponse=function(J,c){if(!c)throw Error("Ui");var m,b;c=(m=c.config)==null?void 0:(b=m.storeStrategy)==null?void 0:b.storeKey;_.$g(this,J,c)};
wZ2[RE]=[_.mB];_.OnG=new _.oE("STORE_RESPONSE_PROCESSOR_TOKEN");var rxZ=function(J){this.JSC$16034_responseStore=J};
rxZ.prototype.handleResponse=function(J,c){if(c.input.match(_.oc(VFj))){var m;if(J==null?0:(m=J.entries)==null?0:m.length)for(J=_.M(J.entries),c=J.next();!c.done;c=J.next()){m=c.value.command;var b=void 0;c=(b=_.L(m,_.kb))==null?void 0:b.unserializedPrefetchData;if(!m||!c)break;b=(new pz).JSC$11006_getStoreKey(m);var x=_.L(c,rWj),P=void 0,p=void 0,t=void 0,I=_.c7("web_shorts_prefetch_service_ttl_seconds")>0?_.c7("web_shorts_prefetch_service_ttl_seconds"):Number((t=(P=x)==null?void 0:(p=P.responseContext)==
null?void 0:p.maxAgeSeconds)!=null?t:3600);b&&I>0&&(x=JT(x,I),this.JSC$16034_responseStore.put(b,new _.bG(x)));m=(new Vw).JSC$11006_getStoreKey(m);c=_.L(c,Vzj);P=x=b=void 0;p=_.c7("web_shorts_prefetch_service_ttl_seconds")>0?_.c7("web_shorts_prefetch_service_ttl_seconds"):Number((P=(b=c)==null?void 0:(x=b.responseContext)==null?void 0:x.maxAgeSeconds)!=null?P:3600);m&&p>0&&(c=JT(c,p),this.JSC$16034_responseStore.put(m,new _.bG(c)))}}};
rxZ[RE]=[_.mB];var s$Z=function(J){this.innertubeTransportService=J};
s$Z[RE]=[_.zh];var LFu=new _.oE("SUBMIT_API_SERVICE_TOKEN");var EE=function(){this.scheduler=_.LZ()},DKQ;
EE.prototype.pause=function(){throw Error("Vi");};
EE.prototype.resume=function(){throw Error("Vi");};
EE.prototype.queue=function(J){var c=this,m=_.$x(),b=_.rv(this.scheduler,function(){try{var x;if(_.p7.instance)var P=_.p7.instance;else{var p=new _.w3("Error: Unexpected uninitialized CommandHandler.");_.Xc(p);P=void 0}(x=P)==null||x.resolveCommand(J.command);m.resolve()}catch(t){m.reject(t)}});
m.promise.thenCatch(function(x){x instanceof _.OQ&&c.scheduler.cancelJob(b)});
return m.promise};
EE.prototype.queueAll=function(J){var c=new Map;J=_.M(J);for(var m=J.next();!m.done;m=J.next())m=m.value,c.set(m.id,this.queue(m));return c};var zLB=function(J,c){var m=this;this.taskModel=J;this.onTaskCancelledCallback=c;this.resolver=_.$x();J=J.proto.prefetchConfig;if(!J)throw Error("Wi");if(!J.prefetchAction)throw Error("Xi");this.prefetchConfig=this.taskModel.proto.prefetchConfig;this.cancellablePromise=this.resolver.promise.thenCatch(function(b){b instanceof _.OQ&&(WFj(m,m.taskModel.cancelOn.screenExit?"CANCELLATION_REASON_PAGE_NAVIGATION":"CANCELLATION_REASON_UNKNOWN"),m.onTaskCancelledCallback(m.taskModel.id,m.jobId),m.tick("pcc"));
throw b;});
this.timerName=this.taskModel.id;_.fX(this.prefetchConfig.prefetchAction,void 0,this.timerName,this.prefetchConfig.prefetchAction)},urQ=function(J){switch(J.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":return 3;
case "PREFETCH_PRIORITY_MEDIUM":return 2;case "PREFETCH_PRIORITY_LOW":return 1;default:return 0}},WFj=function(J,c){_.uJ({prefetchInfo:{cancellationReason:c}},J.timerName)};
zLB.prototype.tick=function(J){_.Y2(J,void 0,this.timerName)};var OE=function(){var J=this;this.scheduler=_.LZ();this.maxInflightTasks=_.c7("prefetch_coordinator_max_inflight_requests");this.coordinatorTimeoutMs=_.c7("prefetch_coordinator_command_timeout_ms");this.prefetchCoordinatorState=0;this.allPrefetchTasks=new Map;this.inflightPrefetchTasks=new Map;this.drainingHeap=new Jcz;this.onTaskCancelled=function(c,m){m&&J.scheduler.cancelJob(m);fHz(J,c);vx(J,3)}},YUQ=function(){OE.instance||(OE.instance=new OE);
return OE.instance};
OE.prototype.pause=function(){this.prefetchCoordinatorState=0};
OE.prototype.resume=function(){vx(this,0)};
OE.prototype.queue=function(J){J=XZC(this,J);vx(this,1);return J};
OE.prototype.queueAll=function(J){var c=new Map;J=_.M(J);for(var m=J.next();!m.done;m=J.next())m=m.value,c.set(m.id,XZC(this,m));vx(this,1);return c};
var XZC=function(J,c){var m=J.allPrefetchTasks.get(c.id);if(m)return m.cancellablePromise;try{var b=new zLB(c,J.onTaskCancelled)}catch(P){return _.sv(P)}m=b;m.tick("pcq");var x={prefetchInfo:{taskId:m.taskModel.id,isPrefetch:!0,fetchAction:m.prefetchConfig.fetchAction},actionVisualElement:{trackingParams:m.taskModel.command.clickTrackingParams}};m.taskModel.csn&&(x.clientScreenNonce=m.taskModel.csn);_.uJ(x,m.timerName);J.allPrefetchTasks.set(c.id,b);J.drainingHeap.insert(-urQ(b),b);return b.cancellablePromise},
vx=function(J,c){J.prefetchCoordinatorState===c&&(J.prefetchCoordinatorState=2,ZPQ(J))},ZPQ=function(J){for(var c={};J.prefetchCoordinatorState!==0;c={taskId$jscomp$3:void 0,
prefetchTask$jscomp$1:void 0}){if(J.inflightPrefetchTasks.size>=J.maxInflightTasks){J.prefetchCoordinatorState=3;break}c.prefetchTask$jscomp$1=J.drainingHeap.remove();if(!c.prefetchTask$jscomp$1){J.prefetchCoordinatorState=1;break}c.taskId$jscomp$3=c.prefetchTask$jscomp$1.taskModel.id;if(J.allPrefetchTasks.has(c.taskId$jscomp$3)){var m=-1;J.coordinatorTimeoutMs>0&&(m=_.rv(J.scheduler,function(b){return function(){Ah(J,b.taskId$jscomp$3,Error("Yi"))}}(c),J.coordinatorTimeoutMs));
J.inflightPrefetchTasks.set(c.taskId$jscomp$3,m);if(!J.JSC$16052_commandHandler){if(!_.p7.instance){Ah(J,c.taskId$jscomp$3,Error("Zi"));continue}J.JSC$16052_commandHandler=_.p7.instance}a:switch(c.prefetchTask$jscomp$1.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":case "PREFETCH_PRIORITY_MEDIUM":m=1;break a;default:m=0}c.prefetchTask$jscomp$1.jobId=J.scheduler.addJob(function(b){return function(){b.prefetchTask$jscomp$1.tick("pcr");try{J.JSC$16052_commandHandler.resolveCommand(b.prefetchTask$jscomp$1.taskModel.command)||
Ah(J,b.taskId$jscomp$3,Error("$i"))}catch(x){Ah(J,b.taskId$jscomp$3,x)}}}(c),m,0)}}},qUC=function(J,c){(c=fHz(J,c))!=null&&(c.resolver.resolve(),c.tick("pce"));
vx(J,3)},Ah=function(J,c,m){(c=fHz(J,c,m))!=null&&(c.resolver.reject(m),c.tick("pcc"),WFj(c,"CANCELLATION_REASON_ERROR"),Math.random()<=_.c7("prefetch_coordinator_error_logging_sampling_rate")&&(m=new _.w3("Prefetch Command failed.",c.taskModel.id,m.message),_.Xc(m)));
vx(J,3)},fHz=function(J,c,m){var b=J.allPrefetchTasks.get(c);
b?((m=J.inflightPrefetchTasks.get(c))&&m!==-1&&J.scheduler.cancelJob(m),J.inflightPrefetchTasks.delete(c),J.allPrefetchTasks.delete(c)):_.qz(new _.w3("Unexpected missing prefetch task when deleting task.",c,m==null?void 0:m.message));return b};var UKC=function(J,c,m,b,x){this.id=J;this.triggerOn=c;this.cancelOn=m;this.command=b;this.proto=x};
_.eE.Object.defineProperties(UKC.prototype,{taskType:{configurable:!0,enumerable:!0,get:function(){return this.proto.prefetchConfig?0:1}}});var SU2=function(){this.JSC$16057_prefetchCoordinator=YUQ();DKQ||(DKQ=new EE);this.defaultCoordinator=DKQ},hLB;
SU2.getInstance=function(){hLB||(hLB=new SU2);return hLB};
SU2.prototype.get=function(J){switch(J){case 0:return this.JSC$16057_prefetchCoordinator;default:return this.defaultCoordinator}};var Rd=function(){this.coordinatorSupplier=SU2.getInstance();this.tasks=new Map;this.taskIdByTriggerId=new Map;this.taskIdByCancelId=new Map;this.queuedPromisesByTask=new Map},G6Z=function(J){var c=_.Y3()||void 0,m=Object.keys(dKz)[0];
if(m){var b=J.taskIdByTriggerId.get(m);if(b!=null){J.taskIdByTriggerId.delete(m);m=[];b=_.M(b);for(var x=b.next();!x.done;x=b.next())if(x=J.tasks.get(x.value))c!=="UNDEFINED_CSN"&&(x.csn=c),m.push(x);m=tqG(m);c=[];m=_.M(m);for(b=m.next();!b.done;b=m.next()){x=_.M(b.value);b=x.next().value;x=x.next().value;b=J.coordinatorSupplier.get(b).queueAll(x);b=_.M(b);var P=b.next();for(x={};!P.done;x={taskId$jscomp$9:void 0},P=b.next()){var p=_.M(P.value);P=p.next().value;p=p.next().value;x.taskId$jscomp$9=
P;P=p;c.push(x.taskId$jscomp$9);J.queuedPromisesByTask.set(x.taskId$jscomp$9,_.Hz(P,function(t){return function(){$KZ(J,t.taskId$jscomp$9)}}(x)))}}}}else _.qz(new _.w3("Unexpected malformed TriggerEvent."))};
Rd.prototype.trigger=function(J,c){var m=this,b=this.tasks.get(J);if(!b||this.queuedPromisesByTask.has(J))return!1;Ev2(this,J,b.triggerOn);c!=="UNDEFINED_CSN"&&(b.csn=c);c=this.coordinatorSupplier.get(b.taskType).queue(b);this.queuedPromisesByTask.set(J,_.Hz(c,function(){$KZ(m,J)}));
return!0};
Rd.prototype.cancel=function(J){var c=this.queuedPromisesByTask.get(J);if(c)c.cancel();else return $KZ(this,J)};
var $KZ=function(J,c){J.queuedPromisesByTask.delete(c);var m=J.tasks.get(c);if(!m)return!1;J.tasks.delete(c);Ev2(J,c,m.triggerOn);(m=NXe(m.cancelOn))&&(J=J.taskIdByCancelId.get(m))&&J.delete(c);return!0},Ev2=function(J,c,m){(m=Object.keys(m)[0])&&(J=J.taskIdByTriggerId.get(m))&&J.delete(c)};var dKz={taskRegistered:{}},od=function(){Rd.instance||(Rd.instance=new Rd);this.JSC$16066_taskManager=Rd.instance};
_.D(od,X9);
od.prototype.resolveCommand=function(J){var c=this,m,b;return _.N(function(x){m=_.L(J,se_);if((b=m)==null||!b.tasks){var P=new _.w3("RegisterTasksCommand is missing tasks.");_.Xc(P);return x.return()}P=c.JSC$16066_taskManager;for(var p=_.M(m.tasks),t=p.next();!t.done;t=p.next())if(t=t.value,t=t.id&&t.triggerOn&&t.cancelOn&&t.command?new UKC(t.id,t.triggerOn,t.cancelOn,t.command,t):void 0,t){var I=Object.keys(t.triggerOn)[0];if(I){var a=NXe(t.cancelOn);a?(P.tasks.set(t.id,t),P.taskIdByTriggerId.has(I)||P.taskIdByTriggerId.set(I,
new Set),P.taskIdByTriggerId.get(I).add(t.id),P.taskIdByCancelId.has(a)||P.taskIdByCancelId.set(a,new Set),P.taskIdByCancelId.get(a).add(t.id)):_.qz(new _.w3("Unexpected malformed cancelOn field."))}else _.qz(new _.w3("Unexpected malformed triggerOn field."))}else _.qz(new _.w3("Unexpected malformed Task proto."));G6Z(c.JSC$16066_taskManager);_.tD(x)})};var vv8={},OPZ=(vv8.rendered={priority:0,callback:function(){var J={};J.numCpu=navigator.hardwareConcurrency;var c={};c.ramGb=_.mo.navigator.deviceMemory;var m={staticContext:{}};c.ramGb&&IW3(c.ramGb)&&(m.staticContext.memoryTotalKbytes=(c.ramGb*1048576).toString());J.numCpu&&IW3(J.numCpu)&&(m.staticContext.cpuCores=J.numCpu);if(_.w("web_enable_adaptive_appl_signal")){J={};c=_.qL("rses_dpj");var b=_.qL("rsef_dpj");c&&c>0&&b&&b>0&&(c=Math.ceil(b-c),c>0&&(J.loadLatency=c));J.loadLatency&&IW3(J.loadLatency)&&
(m.appL=J.loadLatency.toString())}_.zB("applicationStarted",m)}},vv8);var Ax6=new _.oE("WINDOW_ON_ERROR"),RLQ=new _.oE("ERROR_WEIGHT_MAPS"),ovQ=new _.oE("INIT_ERROR");var Q$Z={},eL$=(Q$Z.initialized={priority:10,callback:function(J){J.injector.resolve(ovQ)()}},Q$Z);var j$C=function(){},FFu=function(){var J=_.$y("meta_logger_impl");
J||(J=new j$C,_.jD("meta_logger_impl",J));return J},lH$=function(){FFu().csiSubscriptionKey=nYR("meta_logging_csi_event",function(J){var c=J.timerName;
if(J=J.timelineData){_.fX(c,{startTime:J.startTime},c);J.infos&&_.uJ(J.infos,c);for(var m=_.M(Object.keys(J.ticks)),b=m.next();!b.done;b=m.next())b=b.value,_.Y2(b,J.ticks[b],c)}})};
j$C.prototype.unlisten=function(){this.csiSubscriptionKey!==void 0&&r7e(this.csiSubscriptionKey)};var yx$={},Bw2=(yx$.initialized={priority:10,callback:function(){lH$()}},yx$);var gva=function(J,c){this.innertubeClientName=J;this.JSC$16082_prefCookie=c};
gva.prototype.record=function(){if(_.w("web_li_record_binary_eval_tick")){var J=_.qL("rsef_dpj");var c=_.qL("rses_dpj");J=J!==void 0&&c!==void 0?Math.round(J-c):void 0;if(J!==void 0&&J>0){c=_.m7(this.storagePrefix+"-"+this.innertubeClientName)||{valuesSample:[],valuesSeen:0};var m=this.poolSize;if(!(c.valuesSeen>=1E9)){if(c.valuesSample.length<m)c.valuesSample.push(J);else{var b=Math.floor(Math.random()*(c.valuesSeen+1));b<m&&(c.valuesSample[b]=J)}c.valuesSeen+=1}_.ct(this.storagePrefix+"-"+this.innertubeClientName,
c,2592E3);J=c.valuesSample;c=K4q(J);J=J.length<5?void 0:c<400?1:c<1700?2:3;J!==void 0&&(this.JSC$16082_prefCookie.set(this.cookiePrefix+this.innertubeClientName,J),this.JSC$16082_prefCookie.save())}}else _.bU(this.storagePrefix+"-"+this.innertubeClientName),this.JSC$16082_prefCookie.remove(this.cookiePrefix+this.innertubeClientName),this.JSC$16082_prefCookie.save()};
gva[RE]=[Hc,Qj];var J9z=function(){gva.apply(this,arguments);this.storagePrefix="yt-signal-be";this.cookiePrefix="lsbe";this.poolSize=5};
_.D(J9z,gva);var c9_=new _.oE("PAGE_LOAD_TIME_TOKEN");var mOQ=new _.oE("DOWNLOAD_ELIGIBILITY_PROMISE_TOKEN");var QY=function(J,c){this.JSC$16103_storeWithEntities=J;this.JSC$16103_commandHandler=c;this.downloadingToastInitialized=!1;this.downloadingEntities=[]};
QY.prototype.start=function(){this.JSC$16103_storeWithEntities.subscribe(this.observeDownloadingEntities.bind(this))};
QY.prototype.observeDownloadingEntities=function(){var J=_.wYr(this.JSC$16103_storeWithEntities.getState().entities).map(function(b){return rVm(b)});
if(J.length>0){if(!this.downloadingToastInitialized){this.downloadingToastInitialized=!0;var c={openPopupAction:{popup:{videoDownloadToastRenderer:{actionButton:{buttonRenderer:sKq()},loggingDirectives:{clientVeSpec:{uiType:98969}},responseText:_.yq(_.CX("DOWNLOADING",void 0,"Downloading"))}},popupType:"TOAST",durationHintMs:0}};this.JSC$16103_commandHandler.resolveCommand(c)}this.downloadingEntities=J}else if(this.downloadingEntities.length){var m=TIe(this.JSC$16103_storeWithEntities.getState().entities).map(function(b){return rVm(b)});
this.downloadingEntities.filter(function(b){return m.includes(b)}).length&&(J={openPopupAction:FgD()},this.JSC$16103_commandHandler.resolveCommand(J));
this.downloadingEntities=[]}};
QY[RE]=[PH,_.gu];var bh_;_.ec=function(J,c,m,b,x,P,p,t){this.JSC$16106_playerApiPromise=J;this.JSC$16106_commandHandler=c;this.JSC$16106_screenManager=m;this.offlineWebClientEligibility=b;this.JSC$16106_prefStorage=x;this.JSC$16106_actionRouter=P;this.entityTypeMap=p;this.JSC$16106_persistentStorePromiseAccessor=t;this.downloadFailureListenerBound=!1;this.previousDownloadStateForVideo={}};
bh_=function(){var J=_.BG().resolve(_.ec),c;_.N(function(m){if(m.nextAddress==1)return J.downloadFailureListenerBound?m.return():_.K(m,J.JSC$16106_playerApiPromise,2);c=m.yieldResult;c.addEventListener("onOfflineOperationFailure",function(b){if(b.failureReason&&b.entityKey&&b.failureReason!=="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN")if(b.failureReason==="OFFLINE_OPERATION_FAILURE_REASON_VIDEO_DELETED"){var x=_.mA(b.entityKey).entityId;x&&J.JSC$16106_actionRouter.triggerOptionalAction("yt-downloaded-video-deleted",
x)}else if(_.w("kevlar_woffle")){x=J.JSC$16106_commandHandler;var P=x.resolveCommand;b=b.failureReason;var p=_.CX("TRANSFER_FAILED",void 0,"Download failed");b==="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"&&(p=_.CX("STORAGE_FULL",void 0,"Storage full"));P.call(x,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.yq(p),loggingDirectives:{clientVeSpec:{uiType:134511}}}},popupType:"TOAST"}})}});
J.downloadFailureListenerBound=!0;_.tD(m)})};
_.ec.prototype.deleteVideo=function(J,c){var m=this,b,x,P;return _.N(function(p){if(p.nextAddress==1)return _.K(p,m.JSC$16106_playerApiPromise,2);b=p.yieldResult;P={offlineLoggingData:{offlineDeleteReason:(x=c)!=null?x:"OFFLINE_DELETE_REASON_USER_INITIATED"}};return _.K(p,b.queueOfflineAction(J,m.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",P),0)})};
_.ec.prototype.pauseVideoDownload=function(J){var c=this,m;return _.N(function(b){if(b.nextAddress==1)return _.K(b,c.JSC$16106_playerApiPromise,2);m=b.yieldResult;m.pauseVideoDownload(J);_.tD(b)})};
_.ec.prototype.resumeVideoDownload=function(J){var c=this,m;return _.N(function(b){if(b.nextAddress==1)return _.K(b,c.JSC$16106_playerApiPromise,2);m=b.yieldResult;return _.K(b,m.resumeVideoDownload(J),0)})};
_.ec[RE]=[_.BP,_.gu,_.no,mOQ,lx,OP,jv_,xs];var xO8=new _.oE("DOWNLOAD_STATE_STORE_TOKEN");var VS$=function(J,c){this.JSC$16125_persistentStorePromiseAccessor=J;this.store=c;this.upliftCompletionResolver=new _.xb},pDQ=function(){var J=_.BG().resolve(P7a),c;
_.N(function(m){switch(m.nextAddress){case 1:if(J.upliftImplPromise)return m.return(J.upliftImplPromise);_.xL(m,2);J.upliftImplPromise=MS_(J);return _.K(m,J.upliftImplPromise,4);case 4:J.upliftCompletionResolver.resolve();_.EO(m,3);break;case 2:throw c=_.NM(m),J.upliftCompletionResolver.reject(c),c;case 3:return m.return(J.upliftImplPromise)}})},MS_=function(J){var c,m,b;
return _.N(function(x){switch(x.nextAddress){case 1:return _.Ss("LOGGED_IN")?_.K(x,J.JSC$16125_persistentStorePromiseAccessor(),2):x.return();case 2:c=x.yieldResult;if(!c)return _.Y2("vdeur"),x.return();_.Y2("vdeus");_.xL(x,3);return _.K(x,NNa(c),5);case 5:m=x.yieldResult;J.store.dispatch(VTR(m));c.observe(function(P){Poe(J.store,P)});
_.EO(x,4);break;case 3:throw b=_.NM(x),_.Y2("vdeur"),b;case 4:_.Y2("vdeuc"),_.tD(x)}})},NNa=function(J){var c;
return _.N(function(m){if(m.nextAddress==1)return _.K(m,TXu(J),2);c=m.yieldResult;return m.return(c.reduce(function(b,x){if(!x.data||!x.key||!x.entityType)return b;b[x.entityType]||(b[x.entityType]={});b[x.entityType][x.key]=x.data;return b},{}))})};
VS$[RE]=[xs,_.f9];var P7a;P7a=new _.oE("DOWNLOAD_UPLIFT_SERVICE_TOKEN");_.jc=new _.oE("DOWNLOAD_UPLIFT_COMPLETION_PROMISE_TOKEN");var Fp=function(J,c){this.JSC$16128_persistentStorePromiseAccessor=J;this.transportService=c};
Fp.prototype.refresh=function(){var J=this,c,m,b,x;return _.N(function(P){if(P.nextAddress==1)return _.Ss("LOGGED_IN")?_.K(P,J.JSC$16128_persistentStorePromiseAccessor(),2):P.return();if(P.nextAddress!=3)return(c=P.yieldResult)?_.K(P,cor(c),3):P.return();if((m=P.yieldResult)&&!(Number(m.data.refreshTimestampMs||0)<(0,_.y4)()))return P.return();b={browseId:"SPaccount_downloads"};x=_.oc(lD);_.W$(J.transportService,b,x).then(function(p){var t;if(c&&(p==null?void 0:(t=p.responseContext)==null?void 0:
t.maxAgeSeconds)!==0){var I;t=(p==null?void 0:(I=p.responseContext)==null?void 0:I.maxAgeSeconds)||604800;I=String(Math.floor((0,_.y4)())+t*1E3);c.put("service:downloads_settings:fallback",new _.bG({innertubeResponse:p,refreshTimestampMs:I}))}});
_.tD(P)})};
Fp[RE]=[_.GQ,_.zh];var l9=function(J,c){this.JSC$16132_playerPromise=J;this.store=c;this.started=!1};
l9.prototype.start=function(){var J=this,c;return _.N(function(m){if(m.nextAddress==1)return J.started?m.return():_.K(m,J.JSC$16132_playerPromise,2);c=m.yieldResult;c.addEventListener("onOrchestrationBecameLeader",J.updateIsLeader.bind(J,!0));c.addEventListener("onOrchestrationLostLeader",J.updateIsLeader.bind(J,!1));if(c.isOrchestrationLeader)J.updateIsLeader(c.isOrchestrationLeader());else{var b=new _.w3("Function isOrchestrationLeader is undefined",{"player.isReady":c.isReady(),"player.playVideo":c.playVideo?
"defined":"undefined"});_.Xc(b);J.updateIsLeader(!1)}J.started=!0;_.tD(m)})};
l9.prototype.updateIsLeader=function(J){this.store.dispatch(_.J7({type:"SET_IS_LEADER_TAB",payload:{isLeaderTab:J}}))};
l9[RE]=[_.BP,_.f9];var tSZ=function(J,c){this.networkStatusManager=J;this.JSC$16135_prefStoragePromise=c;this.redirectsToPreload=["https://youtube.com"]},IkZ=function(){var J=_.BG().resolve(tSZ),c,m,b,x,P,p;
_.N(function(t){switch(t.nextAddress){case 1:return _.K(t,J.JSC$16135_prefStoragePromise,2);case 2:c=t.yieldResult;if(!(m=c)){t.jumpTo(3);break}return _.K(t,c.get("yt-redirect-prefetch-id"),4);case 4:m=t.yieldResult;case 3:if(m||!J.networkStatusManager.isNetworkAvailable())return t.return();b={cache:"reload",redirect:"manual"};x=_.M(J.redirectsToPreload);P=x.next();case 5:if(P.done){if(!c){t.jumpTo(0);break}return _.K(t,c.set("yt-redirect-prefetch-id",!0,86400),0)}p=P.value;_.xL(t,8);return _.K(t,
_.mo.fetch(p,b),10);case 10:_.EO(t,6);break;case 8:_.NM(t);case 6:P=x.next(),t.jumpTo(5)}})};var yY=function(J){J?(this.container=J,this.containerWasInjected=!0):this.containerWasInjected=!1};
yY.prototype.openDialog=function(J,c,m){var b=this,x;return _.N(function(P){(x=b.container)==null||x.openDialog(J,c,m);_.tD(P)})};
yY.prototype.closeDialog=function(){var J=this,c;return _.N(function(m){(c=J.container)==null||c.closeDialog();_.tD(m)})};
yY.prototype.isDialogOpen=function(){var J=this,c,m;return _.N(function(b){return b.return((m=(c=J.container)==null?void 0:c.isDialogOpen())!=null?m:!1)})};
yY[RE]=[_.y6(nSL)];_.KiQ=new _.oE("POPUP_CONTROLLER_TOKEN");var C7_=function(){this.panelMap=new Map;this.pendingPanelResolvers=new Map};
C7_.prototype.registerPanel=function(J,c){if(J){this.panelMap.set(J,c);var m=this.pendingPanelResolvers.get(J);m&&(m.resolve(c),this.pendingPanelResolvers.delete(J))}};
C7_.prototype.getPanel=function(J){var c=this,m;return _.N(function(b){return(m=c.panelMap.get(J))?b.return(m):b.return(akL(c,J))})};
var akL=function(J,c){var m,b;return _.N(function(x){if(m=J.pendingPanelResolvers.get(c))return x.return(m.promise);b=new _.xb;J.pendingPanelResolvers.set(c,b);return x.return(b.promise)})},k0Q=function(J){C7_.call(this);
var c=this;this.popupController=J;this.panelContentMap=new Map;this.updatePanelContinuationDatas=new Map;this.TEST_ONLY={getPanelMapSize:function(){return c.panelMap.size}}};
_.D(k0Q,C7_);_.V=k0Q.prototype;_.V.getReloadContinuation=function(J){var c=this,m;return _.N(function(b){if(b.nextAddress==1)return _.K(b,c.getPanel(J),2);m=b.yieldResult;return b.return(m.getReloadContinuation())})};
_.V.showPanel=function(J,c,m,b,x,P,p){var t=this,I,a,k,H;return _.N(function(T){if(T.nextAddress==1){p&&t.updatePanelContinuationDatas.set(J,p);if((I=m)==null?0:(a=I.engagementPanelPopupPresentationConfig)==null?0:a.popupType){k=m.engagementPanelPopupPresentationConfig.popupType;x===void 0&&(x=document.body);var r=T.return,W=t.popupController,Y=W.openPopup;a:switch(k){case "PANEL_POPUP_TYPE_DIALOG":var Z="DIALOG";break a;case "PANEL_POPUP_TYPE_DROPDOWN":Z="DROPDOWN";break a;default:throw Error("bj`"+
k);}return r.call(T,Y.call(W,J,c,Z,x))}return _.K(T,t.getPanel(J),2)}H=T.yieldResult;(c||P)&&H.updatePanel(c,!1,b,P);H.showPanel(b);_.tD(T)})};
_.V.hidePanel=function(J){var c=this,m;return _.N(function(b){if(b.nextAddress==1)return _.K(b,c.getPanel(J),2);m=b.yieldResult;m.hidePanel();c.popupController.closePopup(J);_.tD(b)})};
_.V.isVisible=function(J,c){var m=this,b;return _.N(function(x){if(x.nextAddress==1)return c&&!m.panelMap.has(J)?x.return(!1):_.K(x,m.getPanel(J),2);b=x.yieldResult;return x.return(b.isVisible())})};
_.V.updatePanel=function(J,c,m,b,x,P){m=m===void 0?!1:m;var p=this,t;return _.N(function(I){if(I.nextAddress==1){if(!c&&!x)return I.return();P&&p.updatePanelContinuationDatas.set(J,P);return _.K(I,p.getPanel(J),2)}t=I.yieldResult;t.updatePanel(c,m,b,x);_.tD(I)})};
_.V.registerPanelContent=function(J,c){J&&this.panelContentMap.set(J,c)};
_.V.getPanelContent=function(J){return this.panelContentMap.get(J)};
_.V.getUpdatePanelContinuationData=function(J){return this.updatePanelContinuationDatas.get(J)};
k0Q[RE]=[_.KiQ];var Bx=function(J,c){this.innertubeTransportService=J;this.JSC$16151_screenManager=c},Hha=function(J){var c;
return!((c=J.panelLoadingStrategy)==null||!c.requestTemplate)};
Bx.prototype.makeRequest=function(J){var c=this,m,b;return _.N(function(x){switch(x.nextAddress){case 1:if(!Hha(c)){x.jumpTo(2);break}_.xL(x,3);return _.K(x,_.ds(c.innertubeTransportService,J),5);case 5:return m=x.yieldResult,m?x.return(m.content):(_.Xc(Error("cj")),x.return(void 0));case 3:b=_.NM(x),_.Xc(b);case 2:return x.return(void 0)}})};
Bx.prototype.getContent=function(){if(this.panelLoadingStrategy&&this.panelLoadingStrategy.inlineContent)return this.panelLoadingStrategy.inlineContent};
Bx.prototype.execute=function(J){var c=this,m,b,x,P,p,t,I,a,k,H;return _.N(function(T){if(T.nextAddress==1){m=J;b=m.data;x=m.fallbackVe;P=m.parentVe;p=m.createScreenConfig;t=m.renderFn;I=m.command;c.panelLoadingStrategy=b;var r,W,Y=((r=c.panelLoadingStrategy)==null?0:r.screenVe)?(W=c.panelLoadingStrategy)==null?void 0:W.screenVe:x;Y&&_.ge(c.JSC$16151_screenManager,Y,P,p);return(a=c.getContent())?_.K(T,t(a),2):T.jumpTo(2)}return T.nextAddress!=4?Hha(c)?_.K(T,c.makeRequest(I),4):T.return():(H=k=T.yieldResult)?
_.K(T,t(H),0):T.return()})};
Bx[RE]=[_.zh,_.no];var gH=function(){};
gH.prototype.getContainer=function(){return _.yM()&&this.fullScreenContainer?this.fullScreenContainer:this.container};
gH.prototype.openSheet=function(J,c){var m=this,b,x,P,p,t,I;return _.N(function(a){switch(a.nextAddress){case 1:return b={stack:[],error:void 0,hasError:!1},_.xL(a,2,3),x=yx,_.K(a,m.isSheetOpen(),5);case 5:P=a.yieldResult;uKq(b,fcG(x));if(P){if(c&&m.currentTarget===c)return(p=m.getContainer())==null||p.closeSheet(),a.return();m.pendingData={data:J,target:qJZ(m,c)};return a.return()}J.viewModel&&(J={viewModel:J.viewModel});(t=m.getContainer())==null||t.openSheet(J,c);m.currentTarget=c;case 3:_.PR(a);
f$T(b);_.p6(a,0);break;case 2:I=_.NM(a),b.error=I,b.hasError=!0,a.jumpTo(3)}})};
gH.prototype.closeSheet=function(){var J=this,c;return _.N(function(m){if(m.nextAddress==1)return _.K(m,(c=J.getContainer())==null?void 0:c.closeSheet(),2);if(m.nextAddress!=4)return J.currentTarget=void 0,J.pendingData?_.K(m,J.openSheet(J.pendingData.data,J.pendingData.target),4):m.jumpTo(0);J.pendingData=void 0;_.tD(m)})};
gH.prototype.isSheetOpen=function(){var J=this,c,m;return _.N(function(b){return b.return((m=(c=J.getContainer())==null?void 0:c.isSheetOpen())!=null?m:!1)})};
var qJZ=function(J,c){if(!_.w("web_parent_target_for_sheets"))return c;var m,b;return(b=(m=J.getContainer())==null?void 0:m.getParentTarget(c))!=null?b:c};var M_=window.documentPictureInPicture;var Z83=_.Oo(["dark"]),qgm=_.Oo(["system-icons"]),UQf=_.Oo(["typography"]),Sgt=_.Oo(["lang"]),h9t=_.Oo(["style"]),uND=_.Oo(["dir"]),fWu=_.Oo(["rounded-container"]),YgJ=_.Oo(["style"]),$QQ=["yt-navigate-cache","yt-navigate","yt-action","yt-toggle-button"],J_=function(J){this.JSC$16163_clientRoot=J;this.currentPipWindow=null;this.onCloseCallbacks=[];this.handlePipWindowResize=this.handlePipWindowResize.bind(this)};
J_.prototype.openWindow=function(J){var c=this,m,b;return _.N(function(x){if(x.nextAddress==1)return window.documentPictureInPicture&&_.Xe()&&!c.currentPipWindow?_.K(x,(m=M_?M_:null)==null?void 0:m.requestWindow(J),2):x.return(!1);if(x.nextAddress!=3){b=x.yieldResult;if(!b)return x.return(!1);b.addEventListener("pagehide",function(){ih2(c)});
b.addEventListener("resize",c.handlePipWindowResize);c.pipWindowResizeDelay=new _.la(function(){c.currentPipWindow&&_.m9(c.currentPipWindow.document.documentElement,"yt-pip-window-resized",[new _.tk(c.currentPipWindow.innerWidth,c.currentPipWindow.innerHeight)])},b);
dQr(b);E52(b);return _.K(x,z9e(b),3)}if(!L4r())return x.return(!1);c.currentPipWindow=b;c.JSC$16163_eventForwarder=Gw2(b,c.JSC$16163_clientRoot);c.pipWindowResizeDelay.start();return x.return(!0)})};
J_.prototype.handlePipWindowResize=function(){this.pipWindowResizeDelay&&this.pipWindowResizeDelay.start()};
var ih2=function(J){if(J.currentPipWindow){var c,m;(c=M_?M_:null)==null||(m=c.window)==null||m.close();J.currentPipWindow.removeEventListener("resize",J.handlePipWindowResize);var b;(b=J.pipWindowResizeDelay)==null||b.dispose();J.pipWindowResizeDelay=void 0;var x;(x=J.JSC$16163_eventForwarder)==null||x.stop();J.JSC$16163_eventForwarder=void 0;c=_.M(J.onCloseCallbacks);for(m=c.next();!m.done;m=c.next())m=m.value,m();J.onCloseCallbacks=[];J.currentPipWindow=null}};
J_.prototype.getWindow=function(){return this.currentPipWindow};
var nn_=function(J,c){var m;(m=J.onCloseCallbacks)==null||m.push(c)};
J_.prototype.pictureInPictureSupported=function(){return!!window.documentPictureInPicture&&_.Xe()};
_.eE.Object.defineProperties(J_.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
J_[RE]=[EIa];var TN2=new _.oE("PICTURE_IN_PICTURE_CONTROLLER");var v5f=function(J,c){this.lengthY=this.lengthX=0;this.lengthX=c.x-J.x;this.lengthY=c.y-J.y};var wDu=function(){},dTC=function(J,c){var m;
(m=J.headerElement)==null||m.dispatchEvent(new CustomEvent("yt-new-playlist-header",{detail:c}))};var r9j=function(){};
r9j.prototype.openPopup=function(J,c,m,b){var x=this,P;return _.N(function(p){if(!x.container)return p.return();P={openPopupAction:{popup:c,popupType:m,uniqueId:J}};return p.return(x.container.handleOpenPopupAction(P,b))})};
r9j.prototype.closePopup=function(J){this.container&&this.container.closePopup(J)};var sjj=function(){this.openTunnels=new Map},MYu=function(J,c,m){if(e9G(m)){var b=_.E7(m,"gclid");
m={handleEvent:function(t){c&&!c.closed&&typeof c.postMessage==="function"&&t&&t.origin&&t.source===c&&t.data&&t.data.action==="gcl_setup"&&c.postMessage(Object.assign({},{action:"gcl_transfer"},b&&{gclid:b},{gadSource:2}),t.origin)}};
for(var x=_.M(J.openTunnels),P=x.next();!P.done;P=x.next()){var p=_.M(P.value);P=p.next().value;p=p.next().value;if(P.closed)try{window.removeEventListener("message",p),J.openTunnels.delete(P)}catch(t){_.Xc(t)}}c&&J.openTunnels.size<15&&(J.openTunnels.set(c,m),window.addEventListener("message",m))}};var Li6=function(){this.clientParams=new Map},EkQ=function(J){for(var c=_.M(J.clientParams.keys()),m=c.next();!m.done;m=c.next())m=m.value,m.startsWith("yt-mini-app-share")&&J.clientParams.delete(m)};var DOu=function(J,c){_.DS.call(this);var m=this;this.shortsController=J;this.storeWithShorts=c;J=_.Nh(this.storeWithShorts,_.woT,function(b){if(b){var x,P=(x=m.shortsController.getRoot())==null?void 0:x.getPlayer(),p;(x=(p=m.shortsController.alternativePlayerContainerElement)==null?void 0:p.getPlayerContainer())&&(P==null||P.appendTo(x))}else{var t;p=(t=m.shortsController.alternativePlayerContainerElement)==null?void 0:t.getPlayerContainer().querySelector("#player");x=m.shortsController.activeIndex;
(t=(P=m.shortsController.getRoot())==null?void 0:P.querySelector('ytd-reel-video-renderer[id="'+x+'"] #player-container'))&&(p==null||p.appendTo(t,void 0,!0))}});
this.addOnDisposeCallback(J)};
_.D(DOu,_.DS);var cn=function(J,c,m,b,x){var P=this;this.storeWithShorts=J;this.ephemeralResponseStore=c;this.store=m;this.innertubeTransportService=b;this.innertubeTransportLoader=x;this.activeModules=[];this.activeIndex=0;this.dismissedIndices=[];this.watchWhileIndices=new Set;this.isFullscreenEnabled=_.fq(_.t3);this.isShortsPipActive=_.fq(_.Ig);this.nextReelVe=_.rs(56921);this.prevReelVe=_.rs(56922);this.backButtonVe=_.rs(22156);this.TEST_ONLY={getActiveModules:function(){return P.activeModules}}},J2a,c26,WiB;
cn.prototype.initOrDisposeActiveModules=function(J){J?this.activeModules.push(new DOu(this,this.storeWithShorts)):(_.Bm(this.activeModules),this.activeModules.length=0)};
cn.prototype.getRoot=function(){return this.rootElement};
cn.prototype.setActiveIndex=function(J){this.activeIndex=J};
_.j7Q=function(J,c){var m,b,x,P,p,t,I;return _.N(function(a){switch(a.nextAddress){case 1:return m=new pz,(b=m.JSC$11006_getStoreKey(c))&&J.ephemeralResponseStore.has(b)?_.K(a,J.ephemeralResponseStore.get(b),7):_.K(a,WiB(J,c),4);case 4:x=a.yieldResult;if(!b){a.jumpTo(3);break}P=JT(x,3600);return _.K(a,J.ephemeralResponseStore.put(b,new _.bG(P)),3);case 7:x=(p=a.yieldResult)==null?void 0:_.xg(p);case 3:return((t=x)==null?0:t.replacementEndpoint)&&(I=_.L(x.replacementEndpoint,_.kb))&&x.sequenceContinuation&&
(I.sequenceParams=x.sequenceContinuation),a.return(x)}})};
J2a=function(J,c){c=(new N$).JSC$11006_getStoreKey(c);return!!c&&J.ephemeralResponseStore.has(c)};
c26=function(J,c,m){var b,x,P,p,t;_.N(function(I){if(I.nextAddress==1){b=new N$;x=b.JSC$11006_getStoreKey(c);if(!x)return I.return();if(m.reelWatchSequenceResponse)return P=JT(m.reelWatchSequenceResponse,3600),J.ephemeralResponseStore.put(x,new _.bG(P)),I.jumpTo(0);if(!J.ephemeralResponseStore.has(x))return I.jumpTo(0);t=m;return _.K(I,J.ephemeralResponseStore.get(x),4)}t.reelWatchSequenceResponse=(p=I.yieldResult)==null?void 0:_.xg(p);_.tD(I)})};
WiB=function(J,c){var m=m===void 0?{}:m;var b,x,P;return _.N(function(p){switch(p.nextAddress){case 1:if(J.innertubeTransportService){b=J.innertubeTransportService;p.jumpTo(2);break}if(!J.innertubeTransportLoader){_.ha(Error("ej"));p.jumpTo(2);break}return _.K(p,J.innertubeTransportLoader(),4);case 4:b=p.yieldResult;case 2:return _.K(p,(x=b)==null?void 0:_.ds(x,c,m),5);case 5:return P=p.yieldResult,p.return(P)}})};
_.eE.Object.defineProperties(cn.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.rootElement?this.rootElement.getPlayer().getPlayerPromise():Promise.resolve(void 0)}}});
cn[RE]=[Gr_,_.mB,PH,_.y6(_.zh),_.y6(UG2)];_.zj_=new _.oE("STORAGE_MANAGER_TOKEN");var uuz=function(){this.queue=[];this.currentPersistentToast=this.currentToast=void 0},fka;
uuz.prototype.enqueue=function(J,c){c===1?this.currentPersistentToast=J:this.queue.push(J);this.openToast()};
uuz.prototype.openToast=function(){var J;(J=this.currentToast)!=null&&J.isOpened()||(this.queue.length?(this.currentToast=this.queue.shift(),this.currentToast.open()):this.currentPersistentToast&&this.currentPersistentToast.open())};_.YtL=new _.oE("TOAST_MANAGER_TOKEN");var XDu;_.ZhQ=_.Q1(function(J){return _.C("basic-content-view-model",{class:_.pq("ytBasicContentViewModelHost",_.Ru(J.className))},_.C(_.n,{cond:function(){return J.data().headline},
then:function(c){return _.C("div",{class:"ytBasicContentViewModelHeadline"},_.C(_.j8,{text:c}))}}),_.C(_.Te,{each:function(){return J.data().paragraphs||[]},
keyBy:"INDEX"},function(c){return _.C("div",{class:"ytBasicContentViewModelParagraph"},_.C(_.n,{cond:function(){var m=c();return!!(m.header||m.customHeader||m.headline)},
then:function(){return _.C(XDu,{paragraph:c})}}),_.C(_.n,{cond:function(){return c().asset||c().text},
then:function(){return _.C("div",{class:"ytBasicContentViewModelParagraphContent"},_.C(_.n,{cond:function(){return c().asset},
then:function(m){return _.C("div",{class:"ytBasicContentViewModelParagraphAsset"},_.C(_.wi,{data:m},{contentPreviewImageViewModel:_.lF}))}}),_.C(_.n,{cond:function(){return c().text},
then:function(m){return _.C("div",{class:"ytBasicContentViewModelParagraphText"},_.C(_.j8,{text:m}))}}))}}))}))},"me");
XDu=_.Q1(function(J){var c=J.paragraph;return _.C(_.cG,null,_.C(_.n,{cond:function(){return c().headline},
then:function(m){return _.C(_.j8,{text:m,className:"ytBasicContentViewModelParagraphHeadline"})}}),_.C(_.wi,{data:function(){return c().header||c().customHeader}},{sectionHeaderViewModel:function(m){return _.C(_.m8,{data:m.data,
disableHorizontalPadding:!0,forceSmallLayout:!0})}}))},"ne");var UO8=_.Q1(function(J){var c=_.oN("yt-expandable-metadata-header-view-model"),m=_.Kq(function(b){if(!_.$M(_.di(b),c.value,["A".toString(),"BUTTON".toString()])){var x;(x=J.expandedCallback)==null||x.call(J,!1)}});
return _.C("yt-expandable-metadata-header-view-model",{el:c,class:"ytExpandableMetadataHeaderViewModelHost"},_.C(_.n,{cond:function(){return J.expanded()},
then:function(){return _.C("div",{class:"ytExpandableMetadataHeaderViewModelExpandedHeader","on:click":m},_.C("div",{class:"ytExpandableMetadataHeaderViewModelLeftSectionExpanded"},_.C(_.n,{cond:function(){return J.data().expandedTitleImage},
then:function(b){return _.C("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTitleImage"},_.C(_.RA,{alt:"",width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:b}))}}),_.C("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextContainer"},_.C("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextFirstRowContainer"},_.C(_.j8,{text:function(){return J.data().expandedLabel},
className:"ytExpandableMetadataHeaderViewModelExpandedLabel"}),_.C(_.j8,{text:function(){return J.data().expandedTitle},
className:"ytExpandableMetadataHeaderViewModelExpandedTitle"})),_.C(_.j8,{text:function(){return J.data().expandedSubtitle},
className:"ytExpandableMetadataHeaderViewModelExpandedSubtitle",linkInheritColor:!0}))),_.C("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.C(_.wi,{data:function(){return J.data().infoButton}},{buttonViewModel:_.XU}),_.C(_.wi,{data:function(){return J.data().collapseButton}},{buttonViewModel:function(b){return _.C(_.XU,{data:b.data,
onClick:function(){var x;(x=J.expandedCallback)==null||x.call(J,!1)}})}})))},
else:function(){return _.C(qtz,Object.assign({},J))}}))},"oe"),St_=_.Q1(function(J){return _.C("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelContainer"},_.C(_.n,{cond:function(){return J.data().collapsedLabelImage},
then:function(c){return _.C("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelImage"},_.C(_.RA,{width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:c,alt:""}))}}),_.C(_.j8,{text:function(){return J.data().collapsedLabel},
className:"ytExpandableMetadataHeaderViewModelCollapsedLabel"}))},"pe"),qtz=_.Q1(function(J){return _.C("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedHeader",
"on:click":_.Kq(function(){var c;return void((c=J.expandedCallback)==null?void 0:c.call(J,!0))})},_.C("div",{class:"ytExpandableMetadataHeaderViewModelLeftSection"},_.C(_.n,{cond:function(){return J.data().collapsedImage},
then:function(c){return _.C("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedImage"},_.C(_.RA,{width:16,height:16,data:c,alt:""}))}}),_.C(_.n,{cond:function(){return J.data().showLeadingCollapsedLabel},
then:function(){return _.C(St_,Object.assign({},J))}}),_.C("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedTitle"},_.C(_.j8,{text:function(){return J.data().collapsedTitle}}))),_.C("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.C(_.n,{cond:function(){return!J.data().showLeadingCollapsedLabel},
then:function(){return _.C(St_,Object.assign({},J))}}),_.C(_.wi,{data:function(){return J.data().infoButton}},{buttonViewModel:_.XU}),_.C(_.wi,{data:function(){return J.data().expandButton}},{buttonViewModel:function(c){return _.C(_.XU,{data:c.data,
onClick:function(){var m;(m=J.expandedCallback)==null||m.call(J,!0)}})}})))},"qe");_.hjQ=_.Q1(function(J){var c=_.M(_.aO(function(){return J.data().initiallyExpanded})),m=c.next().value,b=c.next().value,x,P=(x=_.BG().resolve(_.y6(_.Ev)))==null?void 0:x(),p=function(){var t=J.data().colorData;
if(t)return P?t==null?void 0:t.darkColorPalette:t==null?void 0:t.lightColorPalette};
return _.C("yt-expandable-metadata-view-model",{class:"ytExpandableMetadataViewModelHost",style:_.kx({"background-color":function(){var t=p();return(t==null?0:t.section2Color)?_.Zn(t.section2Color):""}})},_.C(_.wi,{data:function(){return J.data().header}},{expandableMetadataHeaderViewModel:function(t){return _.C(UO8,{data:t.data,
expanded:function(){return!!m()},
expandedCallback:function(I){b(I)}})}}),_.C(_.n,{cond:function(){return m()},
then:function(){return _.C("div",{class:"ytExpandableMetadataViewModelExpandedContent"},_.C(_.wi,{data:function(){return J.data().expandedContent}},{horizontalShelfViewModel:function(t){return _.C(_.zT,{data:t.data,
includeMargin:!0,forceNarrowLayout:!0,palette:p})},
videoSummaryContentViewModel:function(t){return _.C(kpu,{data:t.data,className:"ytExpandableMetadataViewModelVideoSummaryContent"})},
lockupViewModel:function(t){return _.C(_.g1,{data:t.data,className:"ytExpandableMetadataViewModelLockup",thumbnailFixedWidth:function(){return"168px"},
containerType:3,sizing:"COMPACT"})},
basicContentViewModel:function(t){return _.C(_.ZhQ,{data:t.data,className:"ytExpandableMetadataViewModelBasicContent"})}}),_.C(_.wi,{data:function(){return J.data().expandedBottomButtons}},{buttonViewModel:function(t){return _.C("div",{class:"ytExpandableMetadataViewModelExpandedBottomButtons"},_.C(_.XU,{data:t.data}))}}))}}))},"re");var dOQ=_.Q1(function(J){var c=J.text;var m=J.marqueeSpacing;var b=J.scrollDelay;var x=J.scrollDuration;var P=J.enableMarqueeScroll;J=J.large;var p=_.M(_.K2(!1,void 0,"kfNqfd")),t=p.next().value,I=p.next().value,a=_.M(_.K2(0,void 0,"bYgZbf"));p=a.next().value;var k=a.next().value,H=_.oN("marquee-scroll");a=_.oN("div");var T=_.oN("span"),r=_.BG().resolve(_.Ov);_.ui(function(){if(P()){var Z=T.value.getBoundingClientRect().width,d=H.value.getBoundingClientRect().width;if(Z>d){var G=(r==="ltr"?-1:1)*
(Z+(m?m():16));Promise.resolve().then(function(){I(!0);k(G)})}}},"giRlme");
var W={},Y={};return _.C("marquee-scroll",{class:_.pq("ytMarqueeScrollHost",(W.ytMarqueeScrollHostLarge=J,W)),el:H},_.C("div",{id:"marquee-scroll-inner-container",class:_.pq("ytMarqueeScrollInnerContainer",(Y.ytMarqueeScrollAnimationEnabled=function(){return t()},Y)),
el:a,style:_.kx({gap:m?(0,_.sX)(m):"16px","animation-duration":x?Vq_(x):"16s","animation-delay":b?Vq_(b):"3s","--marquee-translate":(0,_.sX)(p)})},_.C("span",{el:T,dir:"auto"},_.C(_.j8,{text:c,noWrap:!0,className:"ytMarqueeScrollPrimaryString"})),_.C(_.n,{cond:t,then:function(){return _.C("span",{"aria-hidden":"true",dir:"auto"},_.C(_.j8,{text:c,noWrap:!0,className:"ytMarqueeScrollDuplicateString"}))}})))},"se");_.$OB=_.Q1(function(J){var c=J.data;var m=J.overlayDensity;J=_.Kq(function(){c().onTapCommand&&_.hd(c().onTapCommand);return!1});
var b=_.Fru(),x={};return _.C("reel-sound-metadata-view-model",{class:_.pq("ytReelSoundMetadataViewModelHost",(x.ytReelSoundMetadataViewModelHostLarge=function(){return(m==null?void 0:m())===1},x)),
"on:click":J,tabindex:0,role:"button","on:keydown":b},_.C("div",{class:"ytReelSoundMetadataViewModelMetadataContainer"},_.C(_.n,{cond:function(){return c().musicIcon},
then:function(P){return _.C(_.RA,{data:P,alt:"music icon",className:"ytReelSoundMetadataViewModelIcon"})}}),_.C("div",{class:"ytReelSoundMetadataViewModelMarqueeContainer"},_.C(dOQ,{text:function(){return c().soundMetadata},
enableMarqueeScroll:function(){return!!c().enableMarqueeScroll},
large:function(){return(m==null?void 0:m())===1}}))))},"te");var G0Q,EnZ,mr,Rj6,QjB,A9j,FiQ,jjC;G0Q=["https://fonts.gstatic.com","https://tv.youtube.com","https://www.gstatic.com","https://www.youtube.com"];EnZ=_.c7("wil_icon_max_concurrent_fetches",Infinity);
mr=function(J,c,m){var b=this;this.iconSet=J;this.appDirection=c;this.responsePromises={};this.iconCache={};this.queuedResponseResolvers={};this.numFetches=this.counter=0;this.cacheStorageAvailable=!!_.mo.caches;this.cacheStorageAsync=Promise.resolve(void 0);this.cacheStorageSync=void 0;this.requestAninmationFrameResolver=null;this.renderingMode=_.w("wil_icon_use_mask_rendering")?1:0;this.isNetworkFirstStrategy=_.w("wil_icon_network_first");this.renderWhenIdle=_.w("wil_icon_render_when_idle");this.waitForAnimationFrame=
!_.w("wil_icon_load_immediately");this.isPurging=!1;J=function(){b.cacheStorageAvailable&&(b.cacheStorageAsync=_.mo.caches.open("yt-icons").then(function(P){return b.cacheStorageSync=P}).catch(function(){b.cacheStorageAvailable=!1}))};
m=(m==null?void 0:m())||{};m=_.M(Object.entries(m));for(c=m.next();!c.done;c=m.next()){var x=_.M(c.value);c=x.next().value;x=x.next().value;x=K3(x);vn_(x);this.iconCache[c]=x.cloneNode(!0)}this.isPurging=OhL(this);this.isPurging instanceof Promise?this.isPurging.then(J):J()};
_.d4e=function(J,c){var m=J.resolveIcon(c);return m?J.renderingMode===1?A9j(J,m,J.renderingMode):(c=J.iconCache[m.url])?(c=c.cloneNode(!0),Rj6(J,c),A9j(J,m,J.renderingMode,c)):_.onL(J,m).then(function(b){var x=b?0:1;Rj6(J,b);return A9j(J,m,x,b)}):(_.Zt(new _.w3("Icon not found",{iconShape:c})),function(){})};
Rj6=function(J,c){if(c){J.counter+=1;J="_yt"+J.counter;c=[c].concat(_.L6(c.getElementsByTagName("*")));c=_.M(c);for(var m=c.next();!m.done;m=c.next())if(m=m.value,m.tagName==="style"&&m.textContent)m.textContent=QjB(m.textContent,J,!0);else for(var b=_.M(m.attributes),x=b.next();!x.done;x=b.next()){x=x.value;x.name==="id"&&(x.value+=J);["mask","fill","clip-path"].includes(x.name)&&(x.value=QjB(x.value,J));if(x.name==="style"){var P=m.style;try{P.cssText=QjB(P.cssText,J,!0)}catch(k){var p=void 0,t=
void 0,I=void 0,a=void 0;bZ({error:((p=k)==null?void 0:(I=(t=p).toString)==null?void 0:I.call(t))||"",el:m.outerHTML,style:!!P,cssText:(a=P)==null?void 0:a.cssText})}}x.name==="xlink:href"&&(x.value=x.value.replace(/#(.*)/,"#$1"+J))}}};
QjB=function(J,c,m){var b=/url\(["']?#(.*?)["']?\)/;(m===void 0?0:m)&&(b=/url\(["']?#(.*?)["']?\)/g);return J.replace(b,"url(#$1"+c+")")};
A9j=function(J,c,m,b){return function(x,P){var p=Object.assign({},{iconColor:"currentcolor",iconWidth:c.size+"px",iconHeight:c.size+"px",iconDisplay:"block"},P);P=_.id("DIV");var t=p.iconColor,I=p.iconFilter;p="width: "+p.iconWidth+"; height: "+p.iconHeight+"; display: "+p.iconDisplay+";";I&&(p+=" filter: "+I+";");m===0&&(p+=" fill: "+t+";");m===1&&(I=c.url,p+=" -webkit-mask: url("+I+") no-repeat center / cover; mask: url("+(I+") no-repeat center / cover; background-color: ")+t);c.allowMirroring&&
J.appDirection==="rtl"&&(p+=" transform: scale(-1, 1); transform-origin: center center;");P.setAttribute("style",p);m===0&&b&&P.appendChild(b);x.appendChild(P)}};
_.onL=function(J,c){var m,b,x;return _.N(function(P){m=function(p){return us(p)};
b=c.url;if(!eja(b))throw Error("fj");x=jjC(J,b);return P.return(x.then(function(p){return p.clone().text()}).then(function(p){var t=m(p);
p=c.size;var I=_.id("DIV");_.G$(I,t);t=_.nc(I.firstElementChild!==void 0?I.firstElementChild:_.rqB(I.firstChild,!0));p=vn_(t,p);J.iconCache[b]=p.cloneNode(!0);delete J.responsePromises[b];return p}).catch(function(){}))})};
FiQ=function(J){var c,m=(c=J.requestAninmationFrameResolver)==null?void 0:c.promise;m||(J.requestAninmationFrameResolver=new _.xb,m=J.requestAninmationFrameResolver.promise,_.mo.requestAnimationFrame(function(){var b;(b=J.requestAninmationFrameResolver)==null||b.resolve();J.requestAninmationFrameResolver=null}));
return m};
jjC=function(J,c){var m,b;return _.N(function(x){if(x.nextAddress==1)return J.waitForAnimationFrame?_.K(x,FiQ(J),2):x.jumpTo(2);m=J.responsePromises[c];m||(b=function(){var P,p,t;return _.N(function(I){switch(I.nextAddress){case 1:if(!J.cacheStorageAvailable){P=void 0;I.jumpTo(2);break}if(p=J.cacheStorageSync){I.jumpTo(3);break}return _.K(I,J.cacheStorageAsync,4);case 4:p=I.yieldResult;case 3:P=p;case 2:return t=P,J.isNetworkFirstStrategy?I.return(J.fetchAndUpdateCache(c,t).catch(J.getCacheStorageResponse.bind(J,
c,t))):I.return(J.getCacheStorageResponse(c,t).catch(J.fetchAndUpdateCache.bind(J,c,t)))}})},m=J.renderWhenIdle?new Promise(function(P,p){_.rv(_.ft,function(){b().then(P).catch(p)},10)}):b(),J.responsePromises[c]=m);
return x.return(m.catch(function(P){delete J.responsePromises[c];bZ({error:(P==null?0:P.toString)?P.toString():"",url:c});throw P;}))})};
mr.prototype.fetchAndUpdateCache=function(J,c){var m=this;return _.N(function(b){return b.return(lkZ(m,J).then(function(x){y9Q(m,J,x,c);return x}))})};
var lkZ=function(J,c){var m;return _.N(function(b){if(J.numFetches<EnZ)return J.numFetches+=1,b.return(BNz(J,c).finally(function(){--J.numFetches;if(Object.keys(J.queuedResponseResolvers).length){var x=Object.keys(J.queuedResponseResolvers)[0],P=J.queuedResponseResolvers[x];delete J.queuedResponseResolvers[x];P.resolve(lkZ(J,x))}}));
m=new _.xb;J.queuedResponseResolvers[c]=m;return b.return(m.promise)})},BNz=function(J,c,m){m=m===void 0?2:m;
var b;return _.N(function(x){b={credentials:"same-origin",priority:"low"};return x.return(_.mo.fetch(c,b).then(function(P){return P.ok?P:Promise.reject(Error("gj`"+P.status+"`"+P.statusText))}).catch(function(P){if(m>0)return BNz(J,c,m-1);
throw P;}))})},y9Q=function(J,c,m,b){_.N(function(x){return b?x.return(new Promise(function(P){_.rv(_.ft,function(){var p,t;
return _.N(function(I){switch(I.nextAddress){case 1:if(!J.isNetworkFirstStrategy){p=void 0;I.jumpTo(2);break}return _.K(I,b.match(c).catch(function(){}),3);
case 3:p=I.yieldResult;case 2:if(t=p){I.jumpTo(4);break}return _.K(I,b.put(c,m.clone()).catch(function(a){bZ({error:(a==null?0:a.toString)?a.toString():"",url:c})}),4);
case 4:P(),_.tD(I)}})},50)})):x.return()})};
mr.prototype.getCacheStorageResponse=function(J,c){return _.N(function(m){return c?m.return(c.match(J).then(function(b){return b&&b.ok?b:Promise.reject()})):m.return(Promise.reject())})};
var vn_=function(J,c){c===void 0||J.getAttribute("viewBox")||J.setAttribute("viewBox","0 0 "+c+" "+c);J.setAttribute("focusable","false");J.setAttribute("aria-hidden","true");try{J.style.pointerEvents="none",J.style.display="inherit",J.style.width="100%",J.style.height="100%"}catch(x){var m;bZ({error:((m=x)==null?0:m.toString)?x.toString():""});try{J.style.cssText="pointer-events: none; display: inherit; width: 100%; height: 100%;"}catch(P){var b;bZ({error:((b=P)==null?0:b.toString)?P.toString():
""})}}return J},eja=function(J){for(var c=_.M(G0Q),m=c.next();!m.done;m=c.next())if(J.startsWith(m.value)&&J.endsWith(".svg"))return!0;
return!1};
mr.prototype.resolveIcon=function(J){return this.iconSet.resolveIcon(J)};
var bZ=function(J){_.qz(new _.w3("Error in IconManager",J))},OhL=function(J){if(_.w("wil_icons_cache_purge_killswitch"))return!1;
try{var c=_.mo.localStorage}catch(P){return!1}if(!c||!J.cacheStorageAvailable)return!1;var m=function(P){try{var p;(p=c)==null||p.setItem("yt-icons-last-purged",P.toString())}catch(I){var t;bZ({error:((t=I)==null?0:t.toString)?I.toString():""})}},b=Number(c.getItem("yt-icons-last-purged"));
if(!b)return b=new Date,b=b.setDate(b.getDate()-Math.floor(Math.random()*90+1)),m(b),!1;if(function(P,p){P=new Date(P);p=new Date(p);return p.getMonth()-P.getMonth()+12*(p.getFullYear()-P.getFullYear())}(b,Date.now())<3)return!1;
try{return _.mo.caches.delete("yt-icons").then(function(P){P&&m(Date.now());return P}).catch(function(){return!1}).finally(function(){J.isPurging=!1})}catch(P){var x;
bZ({error:((x=P)==null?0:x.toString)?P.toString():""});return!1}};
mr[RE]=[t0j,_.Ov,_.y6(Cmu)];_.xX=function(J,c){this.iconManager=J;this.iconsToFetch=c};
_.xX[RE]=[_.Ml,_.y6(K36)];var gnB=function(){};var Jqu=function(J,c,m){this.requestKey=J;this.ebg=c;this.w7e=m;this.iVk=function(){return new XMLHttpRequest};
this.hHJ=void 0;this.cGW=[]};
Jqu.prototype.getLatestChallengeResponse=function(){return this.w7e};
var w0z=function(J,c,m){var b,x,P,p;return _.N(function(t){if(t.nextAddress==1){_.fX("attestation_challenge_fetch");_.Y2("att_fs",void 0,"attestation_challenge_fetch");if(!J.hHJ)throw new _.nI(9,"Missing fetcher");return _.K(t,J.hHJ(c,m),2)}b=t.yieldResult;P=(x=b)==null?void 0:x.bgChallenge;if(!P)throw new _.nI(15,"Missing field");J.w7e=b;J.cGW.forEach(function(I){I(b)});
p=mjG(P);_.Y2("att_fc",void 0,"attestation_challenge_fetch");P4u("attestation_challenge_fetch");return t.return(p)})},R$2=function(J,c){var m,b,x,P,p;
return _.N(function(t){switch(t.nextAddress){case 1:m=new pc(100,3E5,.25,2),b=void 0;case 2:if(!(m.currBackoffCount_<10)){t.jumpTo(4);break}_.xL(t,5);if(!(m.currBackoffCount_>0)){t.jumpTo(7);break}return _.K(t,j4r(m.getValue()),7);case 7:return _.K(t,cq1(J,c),9);case 9:return x=t.yieldResult,t.return(x);case 5:P=_.NM(t);P instanceof _.nI?b=P:(p=P instanceof Error?P.message:"Unknown",b=new _.nI(9,p));Y5B(m);t.jumpTo(2);break;case 4:if(b)throw b;throw new _.nI(9,"Unknown error");}})},cq1=function(J,
c){c=Naz(t32(new p0z,c),J.requestKey);
var m=new _.xb,b=J.iVk();b.open("POST",J.ebg);b.setRequestHeader("X-Goog-Api-Key","AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw");b.setRequestHeader("Content-Type","application/json+protobuf");b.onload=function(){if(_.$8Q(b)){var x=T8$(b.responseText);m.resolve(x)}else m.reject(new _.nI(_.ty(_.xK(b)),b.statusText))};
b.onerror=function(){m.reject(new _.nI(_.ty(_.xK(b)),b.statusText))};
b.send(c.serialize());return m.promise};var bGF=function(J){this.networkStatusManager=J;this.isDownloaded=mQo===void 0?function(){return!1}:mQo;
this.isReady=!1;this.tsH=mfS(this)},mfS=function(J){var c;
return _.N(function(m){if(m.nextAddress==1)return _.K(m,fS3(),2);if(m.nextAddress!=3)return c=m.yieldResult,_.K(m,Gz$(c),3);J.uv=m.yieldResult;lWG(J.uv).then(function(){J.isReady=!0});
return m.return(J.uv)})},xfS=function(J,c,m){J.uv?(J=J.uv.yO({qb:m,
qKY:!0,cOY:!0}),c.serviceIntegrityDimensions={poToken:J}):_.Xc(Error("ij"))};
bGF.prototype.processContext=function(J){var c=this;if(!J.input.match(_.oc(cg$)))return _.de();var m=J.innerTubeRequest,b=m.videoId;return!b||this.isDownloaded(m)||this.networkStatusManager&&!this.uv&&!this.networkStatusManager.isNetworkAvailable()?_.de():this.uv?this.isReady?(xfS(this,m,b),_.de()):new hZ(lWG(this.uv).then(function(){xfS(c,m,b)})):new hZ(this.tsH.then(function(x){return _.N(function(P){if(P.nextAddress==1)return _.K(P,lWG(x),2);
xfS(c,m,b);_.tD(P)})}))};var V21=new _.oE("WEB_PO_CONTEXT_PROCESSOR");var PQR=function(J,c){var m=this;this.oew=0;var b;this.gje=(b=c==null?void 0:c.gje)!=null?b:window;this.networkStatusManagerPromise=c==null?void 0:c.networkStatusManagerPromise;var x;this.requestKey=(x=c==null?void 0:c.requestKey)!=null?x:_.mG("par_bir_key")||"O43z0dpjhgX20SCx4KAo";var P;this.g9o=(P=c==null?void 0:c.g9o)!=null?P:function(I){return new Wz(I)};
var p;b=(p=c==null?void 0:c.z4v)!=null?p:function(I,a,k){return new Jqu(I,a,k)};
this.bgChallenge=mjG(J.bgChallenge);this.ttlSeconds=bbr(jQ(J.challenge||""));this.jc=b(this.requestKey,_.w("par_at_ep")?["www.youtube.com","m.youtube.com"].includes(_.mo.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",J);F4D(this.jc);var t;this.ue5=(t=c==null?void 0:c.ue5)!=null?t:function(I){_.wp(m.gje.document,"visibilitychange",function(){m.gje.document.visibilityState===
"visible"&&I()})}},prh=function(J){if(!J.vA){var c={maxAttempts:5,
qHT:J.ttlSeconds*1E3};yoG(J.gje);J.vA=J.g9o({jc:J.jc,pP:{disable:_.w("html5_web_po_disable_remote_logging"),gw:"aGIf",kHg:q4T("html5_web_po_experiment_ids"),yQE:_.w("wpo_dis_lfdms")?0:1E3,d8:_.w("wpo_gel_strz")?function(b){var x=JtQ.get(b);x||(x=new gNL(b),x=new Cc(x),JtQ.set(b,x));return x}:void 0},
mBE:c,mLU:J.bgChallenge,vwT:BXG});J.oew=Date.now();k$z(J.vA,function(){J.oew=Date.now()});
q7D(J.vA,function(){return _.N(function(b){return b.return(M2S(J))})});
var m=J.qIB.bind(J);J.networkStatusManagerPromise&&J.ttlSeconds>0&&J.networkStatusManagerPromise.then(function(b){b.listen("publicytnetworkstatus-online",m)});
J.ue5(m)}};
PQR.prototype.qIB=function(){if(Date.now()>this.oew+this.ttlSeconds*1E3){var J;(J=this.vA)==null||axQ(J)}};
var M2S=function(J){if(J.klx)return J.klx;if(!J.vA)throw Error("jj");J.klx=new Y1({vA:J.vA,jc:J.jc,wze:!0,onError:BXG});return J.klx},JuQ=function(J,c){J=new PQR(J,c);
prh(J);M2S(J)};var Ve=function(J,c){this.store=J;this.queue=[];this.supportsFocus=_.w("web_ephemeral_actions_focus");c==null||c.addEventListener("yt-navigate-start",this.reset.bind(this))};
Ve.prototype.enqueue=function(J){var c=J.command,m=J.durationMs,b=J.elementToFocus;var x=J.label;var P=J.elementToFocus;J.command?x=_.CX("EPHEMERAL_ACTION_ANNOUNCEMENT",{label:x,shortcut:_.CX("SHIFT_PLUS_ENTER")}):P&&this.supportsFocus&&(J=x+". "+_.CX("SHIFT_PLUS_ENTER")+" for more information.",x=_.CX("EPHEMERAL_ACTION_FOCUS_ANNOUNCEMENT",{label:x,shortcut:_.CX("SHIFT_PLUS_ENTER")},J));m={announcement:x,durationMs:m!=null?m:this.supportsFocus?8E3:void 0};c?m.command=c:b&&this.supportsFocus&&(b.classList.add("ephemeral-action-focusable-element"),
m.selector=b.tagName+".ephemeral-action-focusable-element");this.queue.push(m);NTr(this)};
Ve.prototype.activate=function(J){var c=_.H8T(this.store.getState());if(c){if(c==null?0:c.command)_.ql(c.command),this.store.dispatch(loQ(null));(c==null?0:c.selector)&&this.supportsFocus&&(c=document.querySelector(c.selector),_.gBT(c));J.preventDefault()}};
var NTr=function(J){if(!_.H8T(J.store.getState())&&J.queue.length){var c=J.queue.shift();c&&(J.previousAnnouncement===c.announcement&&(c.announcement+="\u00a0"),J.store.dispatch(loQ(c)),J.previousAnnouncement=c.announcement,J.timeoutId=setTimeout(function(){if(c.selector&&J.supportsFocus){var m;(m=document.querySelector(c.selector))==null||m.classList.remove("ephemeral-action-focusable-element")}J.store.dispatch(loQ(null));NTr(J)},c.durationMs))}};
Ve.prototype.reset=function(){this.timeoutId&&clearTimeout(this.timeoutId);this.store.dispatch(loQ(null));this.queue.length=0;this.timeoutId=void 0};
Ve[RE]=[_.f9,_.C9];_.Pn=new _.oE("EPHEMERAL_ACTIONS_MANAGER_TOKEN");var t2s=new _.oE("AUTH_SERVICE_TOKEN");var bBQ=_.Oo(["about:blank"]),mYm;var I3R=new _.oE("API_IFRAME_TOKEN"),Koh=new _.oE("FETCH_FN_TOKEN"),CQF=new _.oE("PARSE_FN_TOKEN"),a35=new _.oE("WINDOW_REQUEST_TOKEN");var rDB;rDB=new _.oE("YT_CONFIG_FLAG_RETRIEVER_TOKEN");_.kDR=new _.oE("MISC_UI_SHARED_FLAGS_TOKEN");var HGr=function(){};
HGr.prototype.getFlag=function(J){if(J.configType!==2)throw Error("kj");return iGR(J)};
var iGR=function(J){switch(J.flagType){case "bool":return _.w(J.flagName);case "int":return _.F$(_.c7(J.flagName));case "double":return _.c7(J.flagName);case "string":return _.mG(J.flagName);case "int32_list":return q4T(J.flagName);case "int64_list":return q4T(J.flagName).map(function(c){return _.F$(c)});
case "string_list":return _.bj(J.flagName);default:throw Error("lj");}};var MW=function(J,c,m){c=c===void 0?{}:c;L_.call(this,m===void 0?"uninitialized":m);this.env=J;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}];c.shouldWaitOnAsyncImmediate!==void 0&&(this.processPluginOptions.shouldWaitOnAsyncImmediate=c.shouldWaitOnAsyncImmediate)};
_.D(MW,L_);MW.prototype.init=function(J){var c=this,m;return _.N(function(b){if(b.nextAddress==1)return c.processPluginOptions.shouldWaitOnAsyncImmediate?_.K(b,J(c.env),2):(J(c.env),b.jumpTo(2));if(b.nextAddress!=4)return c.jobSet?_.K(b,c.jobSet.completedResolver.promise,4):b.jumpTo(4);m=_.f$();m.parkOrScheduleJob(function(){c.transition("rendering")},10,"ci");
_.tD(b)})};
MW.prototype.initialRender=function(J){var c=this,m;return _.N(function(b){if(b.nextAddress==1)return c.processPluginOptions.shouldWaitOnAsyncImmediate?_.K(b,J(c.env),2):(J(c.env),b.jumpTo(2));if(b.nextAddress!=4)return c.jobSet?_.K(b,c.jobSet.completedResolver.promise,4):b.jumpTo(4);m=_.f$();m.parkOrScheduleJob(function(){c.transition("rendered")},10,"cr");
_.tD(b)})};
MW.prototype.afterRenderImmediate=function(J){var c=this,m;return _.N(function(b){if(b.nextAddress==1)return c.processPluginOptions.shouldWaitOnAsyncImmediate?_.K(b,J(c.env),2):(J(c.env),b.jumpTo(2));if(b.nextAddress!=4)return c.jobSet?_.K(b,c.jobSet.completedResolver.promise,4):b.jumpTo(4);m=_.f$();m.parkOrScheduleJob(function(){c.transition("after-render-deferred")},10,"carml");
_.tD(b)})};
MW.prototype.afterRenderDeferred=function(J){var c=this;return _.N(function(m){J(c.env);_.tD(m)})};var ntp={},TTR=(ntp.rendered={priority:0,callback:function(J){B3C(J.injector.resolve(se))}},ntp);var wrS=!1,KW2=0,phG=null,IEu=null;var rqu=new _.oE("NETWORK_SLI_TOKEN");var sRh=function(J,c,m,b){this.networkSli=J;this.fetchFn=c;this.parseFn=m;this.requestFn=b};
sRh.prototype.fetch=function(J,c,m){var b=this,x,P,p;return _.N(function(t){x=LoS(b,J,c);p=(P=b.fetchFn)!=null?P:fetch;return t.return(p(x).then(function(I){return b.handleResponse(I,m)}).catch(function(I){_.qz(I);
if((m==null?0:m.expectJsonStrict)&&I instanceof tg&&I.errorType===1)return Promise.reject(I)}))})};
var lpZ=function(J,c,m,b){var x,P,p,t,I,a;return _.N(function(k){switch(k.nextAddress){case 1:return x=LoS(J,c,m),_.xL(k,2),_.K(k,fetch(x),4);case 4:P=k.yieldResult;_.EO(k,3);break;case 2:throw _.NM(k),new tg(2,"Failed to parse streaming response",x.url);case 3:if(!P.redirected&&!P.ok)throw(p=J.networkSli)==null||p.failure(),new _.w3("Streaming fetch request not ok",x.url);if(!P.body)throw new _.w3("No response body in streaming response",x.url);t=P.body.pipeThrough(new TextDecoderStream).getReader();
I=new _.le;a={};return k.return(DfS(J,t,I,JR3,a,b))}})},LoS=function(J,c,m){if(J.networkSli){var b=_.NU(_.FR(c,"key"))||"/UNKNOWN_PATH";
J.networkSli.start(b)}b=m;_.w("wug_networking_gzip_request")&&(b=QcD(m));var x;return new ((x=J.requestFn)!=null?x:window.Request)(c,b)},DfS=function(J,c,m,b,x,P){var p,t,I,a,k,H,T,r,W;
return _.N(function(Y){if(Y.nextAddress==1)return _.K(Y,c.read(),2);p=Y.yieldResult;t=p.value;if(I=p.done)return(a=J.networkSli)==null||a.success(),Y.return(x);try{k=m.parse(t)}catch(Z){throw new tg(1,"Failed to parse streaming response",t);}if(k!=null)for(H=_.M(k),T=H.next();!T.done;T=H.next())r=T.value,b(x,r),W=void 0,(W=P)==null||W(x,r);return Y.return(DfS(J,c,m,b,x,P))})};
sRh.prototype.handleResponse=function(J,c){var m,b=(m=this.parseFn)!=null?m:JSON.parse;m=J.text().then(function(x){if((c==null?0:c.jspbResponseCtor)&&J.ok)return m0u(c.jspbResponseCtor,x);x=x.replace(")]}'","");if((c==null?0:c.expectJsonStrict)&&x)try{var P=b(x)}catch(t){throw new tg(1,"JSON parsing failed after fetch");}var p;return(p=P)!=null?p:b(x)});
J.redirected||J.ok?this.networkSli&&this.networkSli.success():(this.networkSli&&this.networkSli.failure(),m=m.then(function(x){_.qz(new _.w3("Error: API fetch failed",J.status,J.url,x));return Object.assign({},x,{errorMetadata:{status:J.status}})}));
return m};
sRh[RE]=[_.y6(rqu),_.y6(Koh),_.y6(CQF),_.y6(a35)];var Wos=new _.oE("NETWORK_MANAGER_TOKEN");var zu1=[1,2,4,8,16,30],f35=function(J){this.frameCountInternal=0;this.brokenFrameSummarizers=[];this.maxTimeMs=J.maxTimeMs;this.maxFrameCount=J.maxFrameCount===void 0?Math.ceil(60*J.maxTimeMs/1E3):J.maxFrameCount;J=_.M(zu1);for(var c=J.next();!c.done;c=J.next())this.brokenFrameSummarizers.push(new ueF(c.value/60*1E3))},YmF=function(J){var c=J.frameCountInternal>=J.maxFrameCount;
return J.elapsedTimeMs>=J.maxTimeMs||c},XrF=function(J){for(var c=[],m=_.M(J.brokenFrameSummarizers),b=m.next();!b.done;b=m.next())b=b.value,b=b.brokenFrameCount!==0?{severityMs:Math.round(b.targetFrameTimeMs),
eventCount:b.brokenFrameCount,averageDurationBetweenEventsMs:Math.round(b.averageDurationBetweenEventsMs)}:void 0,b&&c.push(b);return{summaries:c,monitoringDurationMs:Math.round(J.elapsedTimeMs)}};
_.eE.Object.defineProperties(f35.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 ueF=function(J){this.targetFrameTimeMs=J;this.currTimeMs=this.brokenFrameCount=0;this.timeOfLastBrokenFrameMs=this.timeOfFirstBrokenFrameMs=void 0};
_.eE.Object.defineProperties(ueF.prototype,{averageDurationBetweenEventsMs:{configurable:!0,enumerable:!0,get:function(){return this.brokenFrameCount<=1?0:(this.timeOfLastBrokenFrameMs-this.timeOfFirstBrokenFrameMs)/(this.brokenFrameCount-1)}}});var ZGu=function(){};
ZGu.prototype.start=function(J,c){var m=this;if(!window.requestAnimationFrame)return Promise.resolve(void 0);this.monitor&&this.stop();var b=new f35({maxTimeMs:J});this.monitor=b;this.lastSummaryInternal=void 0;this.metadataToLog=c;return new Promise(function(x){var P=function(p){if(p===void 0)m.stop(),x(void 0);else if(m.monitor!==b)p=Object.assign({},XrF(b),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"}),x(p);else{var t=m.monitor;if(!YmF(t)){t.frameCountInternal++;if(t.prevTime===void 0)t.startTime=
p;else for(var I=p-t.prevTime,a=_.M(t.brokenFrameSummarizers),k=a.next();!k.done;k=a.next()){k=k.value;var H=k.currTimeMs;k.currTimeMs+=I;I>k.targetFrameTimeMs+2&&(k.brokenFrameCount++,k.timeOfFirstBrokenFrameMs===void 0&&(k.timeOfFirstBrokenFrameMs=H),k.timeOfLastBrokenFrameMs=H)}t.prevTime=p}YmF(m.monitor)?x(m.stop()):_.ft.addJob(P,5,0)}};
_.ft.addJob(P,5,0)})};
ZGu.prototype.stop=function(J){if(!this.monitor)return this.lastSummaryInternal;var c=Object.assign({},XrF(this.monitor),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"});if(c.monitoringDurationMs){J=J!=null?J:this.metadataToLog;var m={droppedFramesSummary:c,name:"MANUAL_MEASUREMENT_NAME_AMBIENT_MODE_IDLE"};J&&(m[J.type]=J.data);_.zB("manualSmoothnessMeasurement",m)}this.monitor=void 0;this.lastSummaryInternal=c;this.metadataToLog=void 0;return c};_.qmR=new _.oE("MAIN_THREAD_DFE_CAPTURER_AMBIENT_MODE_IDLE_TOKEN");var Ufu;Ufu=function(J){this.JSC$16283_expiringStorage=new sO(J)};
_.Smo=function(J){if(_.C8D()&&(J=_.r0t(_.ij()+"::"+J)))return new Ufu(J)};
Ufu.prototype.set=function(J,c,m){m=m!==void 0?Date.now()+m:void 0;this.JSC$16283_expiringStorage.set(J,c,m)};
Ufu.prototype.get=function(J){return this.JSC$16283_expiringStorage.get(J)};
Ufu.prototype.remove=function(J){this.JSC$16283_expiringStorage.remove(J)};var hu5=new _.oE("SESSION_STORAGE");_.pD=function(){};
_.pD.getInstance=function(){var J=_.$y("ytglobal.storage_");J||(J=new _.pD,_.jD("ytglobal.storage_",J));return J};
_.pD.prototype.estimate=function(){var J,c,m;return _.N(function(b){J=navigator;return((c=J.storage)==null?0:c.estimate)?b.return(J.storage.estimate()):((m=J.webkitTemporaryStorage)==null?0:m.queryUsageAndQuota)?b.return(aEm()):b.return()})};
_.jD("ytglobal.storageClass_",_.pD);var dfp=!1;var $ff=_.Oo(["https://fonts.googleapis.com/css?family=Roboto:300italic,400italic,500italic,700italic"]),GD4=_.Oo(["https://fonts.googleapis.com/css?family=Roboto+Mono:400"]);var yBQ={"/":_.p$,"/?feature=ytca":_.p$,"/feed/downloads":_.nFo};var KZ=function(J,c,m){this.JSC$16296_upliftPromise=J;this.store=c;this.JSC$16296_persistentStorePromiseAccessor=m};
KZ.prototype.shouldPreferLocalResponse=function(J){return J.browseId==="FEdownloads"||J.browseId==="FEsmart_downloads"&&_.w("kevlar_modern_downloads_page")?!0:!1};
KZ.prototype.localInnertubeResponse=function(J){var c=this;return _.N(function(m){return J.browseId==="FEdownloads"?_.w("kevlar_modern_downloads_page")?m.return(EtR(c)):m.return(vtF(c)):J.browseId==="FEsmart_downloads"&&_.w("kevlar_modern_downloads_page")?m.return(OG1(c)):m.return(Promise.reject(Error("nj")))})};
KZ.prototype.canProvideFallbackResponse=function(){return!0};
KZ.prototype.localFallbackInnertubeResponse=function(J){var c=this,m,b,x;return _.N(function(P){switch(P.nextAddress){case 1:return _.K(P,c.JSC$16296_persistentStorePromiseAccessor(),2);case 2:m=P.yieldResult;if(J.browseId!=="SPaccount_downloads"||!m){P.jumpTo(3);break}return _.K(P,cor(m),4);case 4:if(b=P.yieldResult)return P.return(_.xg(b));case 3:return J.browseId==="FEwhat_to_watch"?P.return(Aqe(c)):(x=_.w("web_offline_continuation_automatic_retry")||_.w("web_offline_continuation_retry_button"))&&
J.continuation?P.return(Rur(c)):P.return(otr(c))}})};
var Aqe=function(J){var c;return _.N(function(m){if(m.nextAddress==1)return _.K(m,J.JSC$16296_upliftPromise,2);c=_.BIJ(J.store.getState().entities);return c.length?m.return(QRo(J,c)):m.return(otr(J))})},vtF=function(J){var c,m;
return _.N(function(b){if(b.nextAddress==1)return _.K(b,J.JSC$16296_upliftPromise,2);if(b.nextAddress!=3)return c=eup([{offlineItemSectionRenderer:{}}]),_.K(b,jRu(J,c),3);m=b.yieldResult;m.onResponseReceivedActions=[rJ("REFRESH_DOWNLOADS")];return b.return(m)})},EtR=function(J){var c,m,b,x,P,p,t,I,a,k,H,T,r;
return _.N(function(W){if(W.nextAddress==1)return _.K(W,J.JSC$16296_upliftPromise,2);if(W.nextAddress!=3)return c=J.store.getState(),m=c.entities,b=_.rf(m),x=_.sG(m),P=_.fAG(c),p=_.uIe(c),t=_.YPu(c),I=_.mZD(m),a=_.H2(b),k=_.Lk(m),H={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.fUD(b,x,I,P,p,a,k,t),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS"})}}}]}},T=_.CX("DOWNLOADS",void 0,"Downloads"),_.K(W,Fo1(J,H,T),3);r=W.yieldResult;
r.onResponseReceivedActions=[rJ("REFRESH_DOWNLOADS")];return W.return(r)})},OG1=function(J){var c,m,b,x,P,p,t,I,a;
return _.N(function(k){if(k.nextAddress==1)return _.K(k,J.JSC$16296_upliftPromise,2);if(k.nextAddress!=3)return c=J.store.getState(),m=c.entities,b=_.rf(m),x=_.H2(b),P=_.Lk(m),p={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.XV3(b),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS"})}}}]}},t=_.CX("SMART_DOWNLOADS",void 0,"Smart downloads"),I=zRt(x,P),_.K(k,Fo1(J,p,t,I),3);a=k.yieldResult;a.onResponseReceivedActions=[rJ("REFRESH_DOWNLOADS")];
return k.return(a)})},otr=function(J){var c,m;
return _.N(function(b){if(b.nextAddress==1)return _.K(b,bc(J.JSC$16296_upliftPromise,J.store),2);c=b.yieldResult;m=eup([ypD(c)]);return b.return(jRu(J,m))})},Rur=function(J){var c,m,b,x;
return _.N(function(P){if(P.nextAddress==1)return c={},m=J.store.getState().continuation.continuationCommand,_.zg(c,_.XG,m),_.K(P,bc(J.JSC$16296_upliftPromise,J.store,c,"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"),2);b=P.yieldResult;x={};_.zg(x,_.Gtu,{continuationItems:[{richSectionRenderer:{content:{backgroundPromoRenderer:b}}}],targetId:"browse-feedFEwhat_to_watch"});return P.return({responseContext:{},onResponseReceivedActions:[x]})})},eup=function(J){return{twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,
content:{sectionListRenderer:{contents:J}}}}]}}},QRo=function(J,c){var m,b;
return _.N(function(x){var P={contents:sQ(c)};m=P&&P.contents?P:{};_.w("kevlar_modern_downloads_page")&&(m=Object.assign({},_.ZpG(c),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS"}));b={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:m}}}]}};return x.return(jRu(J,b))})},jRu=function(J,c){var m,b;
return _.N(function(x){if(x.nextAddress==1)return _.K(x,J.JSC$16296_persistentStorePromiseAccessor(),2);if(x.nextAddress!=3)return m=x.yieldResult,_.K(x,Vv(m),3);b=x.yieldResult;return x.return({responseContext:{},contents:c,topbar:b})})},Fo1=function(J,c,m,b){var x,P;
return _.N(function(p){if(p.nextAddress==1)return _.K(p,J.JSC$16296_persistentStorePromiseAccessor(),2);if(p.nextAddress!=3)return x=p.yieldResult,_.K(p,Vv(x),3);P=p.yieldResult;var t=p.return;var I=b;I=I===void 0?"":I;I={content:{pageHeaderViewModel:{title:{dynamicTextViewModel:{text:{content:m}}},actions:{flexibleActionsViewModel:{actionsRows:[{actions:[{buttonViewModel:{title:_.CX("SETTINGS",void 0,"Settings"),accessibilityText:_.CX("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:Fv("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},loggingDirectives:{clientVeSpec:{uiType:21412}}}}]}]}},metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:{content:I}}]}]}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:176034}}}}}},pageTitle:m};
return t.call(p,{responseContext:{},contents:c,topbar:P,header:{pageHeaderRenderer:I}})})};var l3p=function(){this.moduleRegistry={};this.fetchCount=0};
l3p.prototype.isFetching=function(){return this.fetchCount>0};
var SL=function(J,c){J.moduleRegistry[c.toString()]={asyncId:c,isFetching:!1};return J};
l3p.prototype.JSC$16307_loadModules=function(){for(var J=this,c=new Map,m=[],b=_.M(_.s$.apply(0,arguments)),x=b.next();!x.done;x=b.next()){x=x.value;var P=this.moduleRegistry[x];P?P.resolver?c.set(x,P.resolver):(P.resolver=new _.xb,c.set(x,P.resolver),m.push(P.asyncId),P.isFetching=!0):(P=new _.xb,c.set(x,P),P.resolve(void 0))}m.length&&(this.fetchCount+=1,_.Hz(_.l6.getMultipleAsync.apply(_.l6,_.L6(m)).then(function(p){for(var t=0;t<m.length;t++){var I=p[t],a=J.moduleRegistry[m[t].toString()];a.isFetching=
!1;a.resolver.resolve(I)}}).catch(function(p){for(var t=_.M(m),I=t.next();!I.done;I=t.next()){I=I.value;
var a=J.moduleRegistry[I.toString()];a.resolver=void 0;a.isFetching=!1;c.get(I.toString()).reject(p)}}),function(){--J.fetchCount}));
return Promise.all([].concat(_.L6(c.values())).map(function(p){return p.promise}))};_.hm=new _.oE("MODULE_REGISTRY_TOKEN");var yqe={},BTr=(yqe.rendered={priority:0,callback:function(J){a:{var c=void 0;try{var m;b:{if(_.JHT()){var b=_.wS2(_.ij()+"::pom");if(b){var x=new Ht(b);break b}}x=void 0}var P=(m=x)==null?void 0:m.get("role_text");if(!P)break a;c={updatePermissionRoleCommand:{renderer:{permissionRoleBottomBarRenderer:{status:{runs:[{text:P}]}}}}}}catch(I){}c&&J.injector.resolve(_.gu).resolveCommand(c)}try{var p=window.sessionStorage.getItem("POM_ACK_FEEDBACK_ENDPOINT");if(p){var t=JSON.parse(p);window.sessionStorage.removeItem("POM_ACK_FEEDBACK_ENDPOINT");
t&&J.injector.resolve(_.gu).resolveCommand(t)}}catch(I){}}},yqe);var gtR,J8R={},c8S=(J8R.initialized={priority:10,callback:function(){gtR=rx()}},J8R.rendering={callback:function(J){var c;
return _.N(function(m){if(m.nextAddress==1)return _.K(m,gtR,2);c=m.yieldResult;if(!c.endpoint)throw Error("pj`"+_.mo.location.href);WH(J,c);_.tD(m)})}},J8R);var muF={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(_.L6(_.w("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(J){var c=J.stack;if(c.includes("chrome://")||c.includes("chrome-extension://")||J.message.includes("chrome-extension://")||c.includes("moz-extension://")||c.includes("local.adguard.org")||c.includes("auctioneer3.50million.club")||c.includes("youtubedownloader")||c.includes("youtube_home_page")||c.includes("is_youtube_video_no_longer_available")||
c.includes("switchScreenSizeHack")||c.includes("yt_main_big_banner.js")||c.includes("YouTubeCenter.js")||c.includes("/mytube.js")||c.includes("JSON.parseWrapper")||c.includes("/inj_js/common.js")||c.includes("firebug-lite")||c.includes(".repl.co/")||c.includes("linkfix")||c.includes("playAfterAd")||J.message.includes("Access is denied for this document")&&c.includes("<anonymous>")||J.fileName==="user-script"||J.message.includes("cannot be created in a document with origin 'https://www.youtube.com' and URL 'about:blank'")&&
c.includes("<anonymous>"))return!0;if(c.includes("https://www.youtube.com"))return!1;J=c.split("\n");if(!J.length)return!1;if(J.length<=3&&c.includes("s.onloadeddata"))return!0;c=0;for(var m=_.M(J),b=m.next();!b.done;b=m.next())b=b.value,(b.includes("https://")||b.includes("http://"))&&c++;return c/J.length>.95},
weight:0},{callback:function(J){return J.message==="Unknown Error"&&J.name.indexOf("NS_")===0},
weight:100},{callback:function(J){if(!_.JK)return!1;var c=J.message.indexOf("\uba54\ubaa8\ub9ac \ub9ac\uc18c\uc2a4\uac00 \ubd80\uc871\ud558\uae30 \ub54c\ubb38\uc5d0 \uc774 \uc791\uc5c5\uc744 \uc644\ub8cc\ud560")===0||J.message.includes("available to complete this operation"),m=J.stack.includes("webcomponents")&&J.message==="Object doesn't support this action";J=J.message.includes("object that does not implement interface Element");return c||m||J},
weight:0},{callback:function(J){return J.message==="Illegal invocation"&&navigator.userAgent.includes("Trident")&&navigator.vendor==="Google Inc."},
weight:0},{callback:function(J){return J.message==="Operation is not supported"&&(J.stack.match(/textinputassistant/g)||[]).length>=5},
weight:500},{callback:function(J){return J.stack.includes("eval code (eval (code:1:1)")||J.stack.includes("Object.my_load [as load] ")},
weight:0},{callback:function(J){return J.message.includes("Permission denied")&&J.stack.includes("this.domHandler")?!0:J.name.includes("TypeError")&&J.stack.includes("/www-searchbox")&&navigator.userAgent.includes("Trident")},
weight:500},{callback:function(J){if(!J.stack)return!1;var c=J.stack.trim().split("\n");c.length&&c[0].endsWith("Error: "+J.message)&&c.shift();c.length&&c[c.length-1].includes("at window.onerror (")&&c.pop();if(!c.length)return!0;if(J.message==="Script error.")return c[0].includes("www.youtube.com")||c.length>=2&&c[0].startsWith("at new")&&c[1].startsWith("at window.onerror");if(J.message==="Unexpected token")return!0;J=_.M(c);for(c=J.next();!c.done;c=J.next())if(c=c.value,!(c.includes("<anonymous>")||
c.startsWith("load@")||c.startsWith("global code@")||c.startsWith("@https://")))return!1;return!0},
weight:500},{callback:function(J){return J.message==="Cannot read property 'experiments'"&&J.stack.includes("/s/player/")},
weight:500},{callback:function(J){return J.message.includes("must not have attributes")&&navigator.userAgent.includes("Vivaldi")},
weight:500},{callback:function(J){return J.stack.includes("/embed.js")?(J.params&&J.params&&(J.params.name="56"),!0):!1},
weight:1},{callback:function(){if(_.w("use_error_suppression"))var J=_.Ub("SUPPRESS_CLIENT_ERRORS",!1);else{if(J=_.Va)J=/Chrome\/(\d+)/.exec(_.Hr()),J=(J?parseFloat(J[1]):NaN)>=66;J=!(J||_.xd&&_.b0(65)||_.UO&&_.b0(12.1)||Q4&&_.b0(79))}return J},
weight:500}]};var bQR={},xuR=(bQR.initialized={priority:10,callback:function(J){J.injector.addProvider({provide:EIa,useValue:J.root});J.injector.addProvider({provide:Ax6,useValue:i7R});J.injector.addProvider({provide:RLQ,useValue:muF});var c={};J.injector.addProvider((c.provide=ovQ,c.useFactory=function(m,b){return function(){kwm(m,b)}},c[RE]=[Ax6,
RLQ],c));J.injector.addProvider({provide:pu,useClass:pu})}},bQR);var V6R={},PCp=(V6R.initialized={priority:3,callback:function(){var J;if(J=CkQ()){J=J.replace("/",".");var c=_.HA();c.set("tz",J);c.save();J=!0}else J=!1;J||(J=_.HA(),J.set("utco",-Math.floor((new Date).getTimezoneOffset())),J.save())}},V6R);var M6h={},pB1=(M6h.initialized={priority:10,callback:function(J){J.injector.resolve(pu).start();J=_.$b();var c=_.Ss("IS_HOMEPAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_BROWSE"||_.Ss("IS_WATCH_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_WATCH"||_.Ss("IS_RESULTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SEARCH"||_.Ss("IS_SHORTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SHORTS"||"MAIN_APP_WEB_PAGE_TYPE_UNKNOWN";_.N_(_.$br(),{mainAppWeb:Object.assign({},J,{pageType:c})});_.N_(E1J(),{mainAppWeb:Object.assign({},J,{pageType:c})});
_.N_(v1o(),{mainAppWeb:J});_.N_(OIJ(),{mainAppWeb:J});tD_(function(){_.tm(v1o(),"FAILURE");_.tm(OIJ(),"FAILURE")});
uiJ();fEo();R0f()}},M6h);var NLr={},t6F=(NLr.initialized={priority:10,callback:function(){if(document.readyState==="complete")_.Y2("dl"),_.f$().processSignal("pcl");else{var J=function(){_.Y2("dl");_.f$().processSignal("pcl");window.removeEventListener("load",J)};
window.addEventListener("load",J)}}},NLr);var I_5={},KjR=(I_5.rendering={priority:0,callback:function(){var J=_.f$();J.parkOrScheduleJob(function(){J.processSignal("eocs")},10,"eor",5E3)}},I_5);var CCo=function(){};
_.D(CCo,X9);
CCo.prototype.resolveCommand=function(J,c){var m,b,x,P,p,t,I,a;return _.N(function(k){x=(m=_.L(J,_.sEB))==null?void 0:(b=m.dialog)==null?void 0:b.commentReplyDialogRenderer;if(!x)throw new _.w3("No dialog in createCommentReplyDialogEndpoint");p=(P=c.form)==null?void 0:P.event;if(!p)throw new _.w3("Event not passed in when resolving command");t=_.M(p.composedPath());for(I=t.next();!I.done;I=t.next())if(a=I.value,a.tagName==="YTD-COMMENT-ACTION-BUTTONS-RENDERER"||a.tagName==="YTD-COMMENT-ENGAGEMENT-BAR")return a.showReplyDialog(x),k.return();
_.tD(k)})};var NW=function(J){this.pageRequestService=J;this.JSC$16322_prefetchCoordinator=YUQ()};
_.D(NW,X9);NW.prototype.resolveCommand=function(J){var c=this,m,b,x,P;return _.N(function(p){if(p.nextAddress==1){m=_.L(J,mwL);if((b=m)==null||!b.taskId)throw Error("qj");x=m.taskId;_.xL(p,2);return _.K(p,_.BWQ(c.pageRequestService,J,{},"").then(function(t){if(!t)throw Error("rj");},function(t){throw Error("sj`"+t);
}),4)}if(p.nextAddress!=2)return qUC(c.JSC$16322_prefetchCoordinator,x),_.EO(p,0);
P=_.NM(p);Ah(c.JSC$16322_prefetchCoordinator,x,P);_.tD(p)})};
NW[RE]=[wx];var t_=function(J){this.innertubeTransportService=J};
_.D(t_,X9);t_.prototype.resolveCommand=function(J){var c=this,m,b;return _.N(function(x){m=_.L(J,xDB);if(m.settingItemIdForClient==="AUTONAV_FOR_SIGN_OUT"||m.settingItemIdForClient==="AUTONAV_FOR_DESKTOP")b=m.boolValue?2:1,_.AZ.getInstance().setState(b,!0,!0);return _.K(x,_.ds(c.innertubeTransportService,J),0)})};
t_[RE]=[_.zh];var I0={},a_R=(I0.addToPlaylistEndpoint=jH(nA),I0.addToToastAction=jH(na),I0.adsControlFlowOpportunityReceivedCommand=jH(JY),I0.captionLanguageSelectActionCommand=jH(qg),I0.captionPickerEndpoint=jH(UR),I0.changeMiniAppPlayStateCommand=jH(TS),I0.changeTimelyActionVisibilityCommand=jH(iX),I0.channelCreationFormEndpoint=jH(KA),I0.clearLocationCommand=jH(ix),I0.clearUrlParamCommand=jH(wA),I0.copyLinkCommand=jH(GS),I0.copyTextEndpoint=jH(bx),I0.createCommentReplyDialogEndpoint=dwG(CCo),I0.createPlaylistServiceEndpoint=
jH(ER),I0.dismissDialogEndpoint=jH(sR),I0.entityUpdateCommand=jH(Vj),I0.feedbackEndpoint=jH(pA),I0.getAnswerCommand=jH($Tz),I0.getPaymentsClientTokenCommand=jH(rn),I0.getTranscriptEndpoint=jH(Td),I0.googlePaymentBillingCommand=jH(sY),I0.googlePaymentPurchaseManagerCommand=jH(La),I0.hideEngagementPanelEndpoint=jH(LA),I0.insertRichSectionCommand=jH(aL),I0.listMutationCommand=jH(kQ),I0.logGtmCommand=jH(CA),I0.notifyDropdownOptionSelectedCommand=jH(rA),I0.openAdAllowlistInstructionCommand=jH(_.cc),I0.openOnePickAddVideoModalCommand=
jH(vc),I0.persistSubscriptionsDisplayPreferencesCommand=jH(ee),I0.pingingEndpoint=jH(m2),I0.playlistEditEndpoint=jH(AY),I0.playlistVotingRefreshPopupCommand=jH(RL),I0.refreshPanelEndpoint=jH(DJ),I0.saveImageToDeviceEndpoint=jH(xQ),I0.scrollToSectionEndpoint=dwG(GF2),I0.seekToVideoTimestampCommand=jH(Se),I0.selectCountryCommand=jH(je),I0.setCookieCommand=jH(FV),I0.setLocalStorageCommand=jH(Ka),I0.setPrefStorageEntryCommand=jH(yj),I0.setSettingEndpoint=jH(t_),I0.sfvAudioItemPlaybackCommand=jH(hY),I0.shareImageCommand=
jH(Bc),I0.sharingProviderDataCommand=jH(gA),I0.showCaptionLanguageSelectActionCommand=jH(dA),I0.showDialogCommand=jH(ux),I0.showEngagementPanelEndpoint=jH(fA),I0.showSheetCommand=jH(YQ),I0.showSnackbarCommand=jH(Im),I0.showTransientPlayerScrimOverlayCommand=jH($Q),I0.submitFormWithValidationFlowCommand=jH(IL),I0.talkToRecsDeselectCommand=jH(Ca),I0.talkToRecsNextCommand=jH(am),I0.talkToRecsSelectCommand=jH(kI),I0.talkToRecsUpdateTextCommand=jH(HJ),I0.toggleEngagementPanelCommand=jH(XV),I0.undoFeedbackEndpoint=
jH(tY),I0.updateEngagementPanelContentCommand=jH(ZJ),I0.updateUrlParamCommand=jH(wn),I0.verifyCommand=jH(KA),I0.webNativeShareCommand=jH(JR),I0.webSubmitFormCommand=jH(oL),I0.ACK_PLAYABLES_3P_DATA_CONSENT=jH(cJ),I0.CANCEL_NAVIGATION=jH(m0),I0.COPY_SHARE_URL=jH(bX),I0.MINI_APP_EXIT_DIALOG_SEEN=jH(VO),I0.MINI_APP_OPEN_URL=jH(xI),I0.REQUEST_MINI_APP_FULLSCREEN=jH(PJ),I0.RESUME_NAVIGATION=jH(Mv),I0.SHARE_PLAYABLE_WITH_HIGH_SCORE=jH(pa),I0.TELL_US_WHY=jH(Ng),I0);
_.w("web_enable_prefetching_videos_on_home")&&(a_R.prefetchWatchCommand=jH(NW),a_R.registerTasksCommand=jH(od));_.w("enable_share_panel_navigation_logging_fix_on_web")&&(a_R.shareEntityServiceEndpoint=jH(Wc));var x7Q=Object.assign({},a_R);var kzf={},HQ5=(kzf.initialized={priority:10,callback:UYe},kzf);var iQp={},nZs=(iQp.initialized={callback:function(J){var c={},m={};edo().install((c.document_disposed={callback:function(){_.w("finalize_all_timelines")?Mzq():zm();NqR("FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND");_.xcD();var b=J.injector.resolve(pu);b.intervalId!==void 0&&(b.intervalId&&_.ft.cancelJob(b.intervalId),b.intervalId=void 0,--b.currentPartitionIndex,b=uSQ(b),b>0&&oWZ({mainAppWeb:_.$b(),survivalSli:{partitionMinute:b,survivalStatus:"SURVIVAL_STATUS_TYPE_CENSORED"}}));h5Q(UP);SG!=null&&
SG.flush();gf&&gf.snapshotAndFlush();b=_.M(JtQ.values());for(var x=b.next();!x.done;x=b.next())x.value.snapshotAndFlush()}},c),(m.flush_logs={callback:function(){_.YH()}},m))}},iQp);var TL5={},wB1=(TL5.rendered={priority:0,callback:function(){var J=new JD6;J.increment("STARTED");if(_.Ub("LOGGED_IN")&&_.Ub("SERVER_VERSION")!=="test"&&_.Ub("SERVER_VERSION")!=="dev"&&!$Or()&&!dOJ()){J.increment("EXECUTING");var c=document.createElement("iframe");c.style.display="none";_.nl3(c,2,_.n1("https://accounts.youtube.com/RotateCookiesPage?origin=https://www.youtube.com&yt_pid="+_.Ub("INNERTUBE_CONTEXT_CLIENT_NAME")));document.body&&document.body.appendChild(c);J.increment("DONE")}}},TL5);var r8r={},s25=(r8r.rendered={callback:function(){YUQ().resume()}},r8r);var Ljh={acknowledgeChannelTouStrikeCommand:Hj(gn),addToPlaylistServiceEndpoint:Hj(b9),addToPlaylistEndpoint:Hj(b9),addUpcomingEventReminderEndpoint:Hj(rz),browseEndpoint:Hj(IH8),channelCreationFormEndpoint:Hj(QO),channelCreationServiceEndpoint:Hj(eR),claimLegacyYoutubeChannelEndpoint:Hj(qv),clearSearchHistoryEndpoint:Hj(CJ),clearWatchHistoryEndpoint:Hj(aH),commerceActionCommand:iq(DV),createBackstagePostEndpoint:Hj(zd),createBroadcastCommand:Hj(sL),createCommentEndpoint:Hj(OY),createCommentReplyEndpoint:Hj(vJ),
createLiveChatPollEndpoint:Hj(LJ),createPlaylistServiceEndpoint:Hj(x4),crossAccountChannelTransferEndpoint:Hj(ih),deleteLiveChatMessageCommand:Hj(Dw),deletePlaylistEndpoint:Hj(VY),deleteVideoEndpoint:Hj(wH),dismissalEndpoint:Hj(J6),feedbackEndpoint:Hj(cK),flagEndpoint:Hj(Id),getAccountSwitcherEndpoint:Hj(HK),verifyCommand:Hj(WJ),getAccountsListInnertubeEndpoint:Hj(TP),getCommentsFromInboxCommand:Hj(EL),getDownloadActionCommand:Hj(eY),getFlowCommand:iq(KJ),getKidsBlocklistPickerCommand:Hj(Kz),getNotificationMenuEndpoint:Hj(aH6),
getPaymentInstrumentsParamsCommand:Hj(Xp),getPaymentsClientTokenCommand:iq(DV),getPdgBuyFlowCommand:Hj(cx),getReportFormEndpoint:Hj(Cz),getSearchInVideoCommand:Hj(Hx),getAnswerCommand:Hj(k4),getSurveyCommand:Hj(TQ),getTranscriptEndpoint:Hj(sE),getPostVideoPreviewEndpoint:Hj(fa),decorateMessageEndpoint:Hj(uX),likeEndpoint:Hj(jR),liveChatActionEndpoint:Hj(fJ),liveChatEndpoint:Hj(uh),liveChatItemContextMenuEndpoint:Hj(WK),liveChatPurchaseMessageEndpoint:Hj(YS),liveChatReplayEndpoint:Hj(zP),manageLiveChatUserEndpoint:Hj(Zw),
metadataUpdateCommand:Hj($S),moderateLiveChatEndpoint:Hj(qc),modifyChannelNotificationPreferenceEndpoint:Hj(RH),notificationOptOutEndpoint:Hj(oH),openSuperStickerBuyFlowCommand:Hj(XE),performCommentActionEndpoint:Hj($I),playlistEditEndpoint:Hj(M$),playlistEditorEndpoint:Hj(Px),profileCardCommand:Hj(wz),recordNotificationInteractionsEndpoint:Hj(QX),reelWatchEndpoint:Hj(pz),refreshPanelEndpoint:Hj(FE),removeUpcomingEventReminderEndpoint:Hj(UL),resolveLocationCommand:Hj(dz),revealBusinessEmailCommand:Hj(UY),
searchEndpoint:Hj(_.k6a),sendLiveChatMessageEndpoint:Hj(SY),sendLiveChatVoteEndpoint:Hj(h6),setSettingEndpoint:Hj(FS),shareEntityServiceEndpoint:iq(BJ),sharingProviderDataCommand:Hj(nz),showEngagementPanelEndpoint:Hj(lh),showMoreDrawerCommand:Hj(BK),showSheetCommand:Hj(gz),showDialogCommand:Hj(yX),subscribeEndpoint:Hj(lX),transcriptSubmitCaptionCorrectionCommand:Hj(rH),undoFeedbackEndpoint:Hj(bh),unsubscribeEndpoint:Hj(yO),updateBackstagePostEndpoint:Hj(XS),updateCommentEndpoint:Hj(Rm),updateCommentReplyEndpoint:Hj(AR),
updateCommentsSettingsEndpoint:Hj(om),updateCreatorChannelInnertubeCommand:Hj(hR),updateKidsBlacklistEndpoint:Hj(ad),updateEngagementPanelContentCommand:Hj(Jh),updatePdgFeatureEnablementCommand:Hj(mH),updatedMetadataEndpoint:Hj(GP),validateChannelHandleCommand:Hj(dn),updateChannelPageSettingsEndpoint:Hj(SR),verifyAgeEndpoint:Hj(IH),watchEndpoint:iq(Vw),whitelistEditEndpoint:Hj(Lz),ypcCancelRecurrenceEndpoint:Hj(Wx),ypcCompleteTransactionEndpoint:Hj(zQ),ypcFixInstrumentEndpoint:Hj(fz),ypcGetCartEndpoint:Hj(u9),
ypcGetOffersEndpoint:Hj(Y4),ypcHandleTransactionEndpoint:iq(ZV),ypcLogWalletAnalyticDataEndpoint:Hj(q$),ypcOffersEndpoint:Hj(UE),ypcPauseSubscriptionCommand:Hj(Sc),ypcRedeemCodeEndpoint:Hj(hh),ypcResumeSubscriptionCommand:Hj(dH),ypcUpdateFopEndpoint:Hj(fz)},KD={},Dus=(KD.GET_ACCOUNT_MENU=Hj(nJ),KD.GET_NOTIFICATIONS_MENU=Hj(Cl_),KD.GET_NOTIFICATIONS_INBOX=Hj(vK),KD.GET_UNSEEN_NOTIFICATION_COUNT=Hj(A6),KD.GET_USER_MENTION_SUGGESTIONS=Hj(YI),KD.LOAD_GUIDE=Hj(KFL),KD.SUBMIT_FEEDBACK=Hj(mI),KD),CD={},
Wju=(CD.CONTINUATION_REQUEST_TYPE_BROWSE=Hj(Zs),CD.CONTINUATION_REQUEST_TYPE_SEARCH=Hj(i9),CD.CONTINUATION_REQUEST_TYPE_WATCH_NEXT=Hj(MH),CD.CONTINUATION_REQUEST_TYPE_ACCOUNTS_LIST=Hj(kS),CD.CONTINUATION_REQUEST_TYPE_COMMENTS_NOTIFICATION_MENU=Hj(EY),CD.CONTINUATION_REQUEST_TYPE_COMMENT_REPLIES=Hj(Gd),CD.CONTINUATION_REQUEST_TYPE_REEL_WATCH_SEQUENCE=Hj(th),CD.CONTINUATION_REQUEST_TYPE_GET_PANEL=Hj(jY),CD),z_r={player:iq(Vw),watchNext:Hj(Pt)},u$R={player:iq(Vw),reelItemWatch:Hj(pz),reelWatchSequence:Hj(N$)},
f_1={watchEndpoint:iq(p9)},Yah={commandEndpointMap:Ljh,signalEndpointMap:Dus,continuationEndpointMap:Wju,watchEndpointMap:z_r,reelWatchEndpointMap:u$R,streamingEndpointMap:f_1};var XB5,ZQr,qah,Uus={disableAllTransitions:(ZQr=(XB5=window).matchMedia)==null?void 0:(qah=ZQr.call(XB5,"(prefers-reduced-motion: reduce)"))==null?void 0:qah.matches,transitionConfigs:new Map([["slide",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}],["zoom",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}]])};var Sao=new _.oE("VIEW_TRANSITION_MANAGER_CONFIG_TOKEN");_.a0=new _.oE("VIEW_TRANSITION_MANAGER_TOKEN");var h_1=function(J){this.config=J;this.transitionTasksMap=new Map;J=_.M(J.transitionConfigs);for(var c=J.next();!c.done;c=J.next())c=_.M(c.value).next().value,this.transitionTasksMap.set(c,[])};
h_1[RE]=[Sao];var SV3={data:void 0,previousButtonDisabled:!1,nextButtonDisabled:!1,shortsPreviewThumbnail:void 0,shortsData:void 0,externalPlaylistData:void 0,toastData:void 0,playabilityStatus:void 0,isDisabled:!1,isReadyToResume:!1,watchWhile:!1,playerVe:void 0,expandVe:void 0,closeVe:void 0,readyToResumeVe:void 0,readyToResumeCloseVe:void 0,repositionVe:void 0,resizeVe:void 0};var dYu=["videoPrimaryInfoRenderer","title"],$YJ=["videoSecondaryInfoRenderer","owner","videoOwnerRenderer","title"];var du1;du1=[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}];_.$us=_.Q1(function(J){J=_.ou(J,{data:void 0,playlistData:void 0,expanded:!1,onExpandClick:void 0,isReadyToResume:!1});var c=J.data,m=J.playlistData,b=J.expanded,x=J.onExpandClick,P=J.isReadyToResume,p=function(){var k;return!((k=m())==null||!k.contents)},t=function(){var k=m();
return k&&k.totalVideos&&k.currentIndex!==void 0?k.currentIndex+1+" / "+k.totalVideos:""};
J=_.Kq(function(){_.kX(_.BG().resolve(_.Uo));return!1});
var I=_.Kq(function(){p()&&x&&x()}),a={};
return _.C("ytd-miniplayer-info-bar",{class:_.pq("ytdMiniplayerInfoBarHost",(a.ytdMiniplayerInfoBarHasPlaylistData=p,a)),"on:click":I},_.C("div",{class:"ytdMiniplayerInfoBarContent"},_.C("h1",{class:"ytdMiniplayerInfoBarTitle","on:click":J},_.C(_.j8,{text:function(){var k=c();var H=m();if(H==null?0:H.contents){var T;k=(T=_.BV2(H))==null?void 0:T.title}else k=k==null?void 0:k.miniplayerTitle;return Efm(k)},
noEndpoints:!0,ellipsisTruncate:!0})),_.C("div",{class:"ytdMiniplayerInfoBarSubtitle"},_.C(_.n,{cond:P,then:function(){return _.C(GP_,{className:"ytdMiniplayerInfoBarPremiumBadge",badges:du1})}}),_.C("h1",null,_.C(_.j8,{className:"ytdMiniplayerInfoBarSubtitleText",
text:function(){var k=c();var H=m();k=P()?{simpleText:_.CX("CONTINUE_WATCHING",void 0,"Continue watching")}:(H==null?0:H.contents)?H.titleText:k==null?void 0:k.miniplayerSubtitle;return Efm(k)},
noEndpoints:!0,ellipsisTruncate:!0})),_.C(_.n,{cond:function(){return!!t()&&!P()},
then:function(){return _.C("div",{class:"ytdMiniplayerInfoBarPlaylistIndex"},_.C("span",{class:"ytdMiniplayerInfoBarPlaylistIndexTextDivider"},"\u2022"),_.C("span",null,t))}}))),_.C(_.n,{cond:p,
then:function(){return _.C("div",{class:"ytdMiniplayerInfoBarExpand"},_.C(l$,{data:function(){return{style:"mono",type:"text",state:"active",iconPosition:"icon-only",size:"M",onTap:function(k){x&&(x(),k.stopPropagation())}}},
iconName:function(){return b()?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"}}))}}))},"ue");var Gzs;Gzs=_.Q1(function(J){return _.C("div",{class:"ytdMiniplayerPlayerContainerDisabledClose"},_.C(l$,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:"S",onTap:J.onTap}},
iconName:"yt-icons:close"}))},"ve");
_.EZR=_.Q1(function(J){J=_.ou(J,{playabilityStatus:void 0,isDisabled:!1});var c=J.size,m=J.playabilityStatus,b=J.isDisabled,x=_.oN("div");J=_.M(_.K2(void 0,void 0,"bJr0Se"));var P=J.next().value,p=J.next().value;J=_.fq(_.Ig);var t=!1,I=function(){return c().height<=0};
_.ui(function(){var T=c(),r=I(),W=P();W&&!r&&W.setInternalSize(T.width,T.height)},"OUOyKb");
_.WG(function(){var T,r,W;return _.N(function(Y){if(Y.nextAddress==1){T=_.BG().resolve(_.Uo);r=T.getPlayerElement();if(!T.isMiniplayerActive()||!r||!x.value)return Y.return();r.appendTo(x.value);return _.K(Y,r.getPlayerPromise(),2)}W=Y.yieldResult;W.setSizeStyle(!1,!0);p(W);_.tD(Y)})});
_.f2(function(){a()});
_.ui(function(){var T=P();if(T)if(b()){var r=T.getPlayerState();(t=r===-1||r===1||r===3)&&T.pauseVideo()}else a()},"KKHe5");
var a=function(){if(t){t=!1;var T;(T=P())==null||T.playVideo()}},k=_.Kq(function(){_.kX(_.BG().resolve(_.Uo))}),H={};
return _.C("ytd-miniplayer-player-container",{class:_.pq("ytdMiniplayerPlayerContainerHost",(H.ytdMiniplayerPlayerContainerHidden=I,H.ytdMiniplayerPlayerContainerHostShortsPip=J,H)),style:_.kx({width:function(){return c().width+"px"},
height:function(){return c().height+"px"}})},_.C("div",{id:"player-container",
class:"ytdMiniplayerPlayerContainerPlayerContainer",el:x}),_.C(_.n,{cond:function(){return!!m()&&!_.R9G(m())},
then:function(){return _.C(X1u,{className:"ytdMiniplayerPlayerContainerPlayabilityError",compact:!0,data:function(){var T;return((T=m())==null?void 0:T.errorScreen)||null},
status:function(){var T;return((T=m())==null?void 0:T.status)||null}})}}),_.C(_.n,{cond:b,
then:function(){return _.C("div",{class:"ytdMiniplayerPlayerContainerDisabled","on:click":k},_.C(Gzs,{onTap:function(){_.BG().resolve(_.Uo).close()}}))}}))},"we");_.vZo=_.Q1(function(J){var c=J.toastData;var m=_.oN("ytd-miniplayer-toast");J=_.M(_.aO(function(){return!!c()}));
var b=J.next().value,x=J.next().value;J=_.M(_.K2(!1,void 0,"xkrBze"));var P=J.next().value,p=J.next().value,t=function(){var k;return _.OG((k=c())==null?void 0:k.data.title)};
_.uN(function(){_.Zj.requestAvailability();c()&&x(!1)});
var I,a;_.ui(function(){b()&&(_.cA(m.value,"iron-announce",{text:c().label+" "+t()}),I&&_.ft.cancelJob(I),I=_.ft.addLowPriorityJob(function(){p(!0)},2500))},"OTdL1e");
_.ui(function(){P()&&(a&&_.ft.cancelJob(a),a=_.ft.addLowPriorityJob(function(){x(!1);p(!1)},300))},"yybqib");
J={};return _.C("ytd-miniplayer-toast",{el:m,class:_.pq("ytdMiniplayerToastHost",(J.ytdMiniplayerToastOpening=function(){return b()},J.ytdMiniplayerToastClosing=function(){return P()},J))},_.C(_.n,{cond:function(){var k;
return(k=c())==null?void 0:k.data},
then:function(k){return _.C(Qdj,{className:"ytdMiniplayerToastThumbnail",data:k,width:78})}}),_.C("div",{class:"ytdMiniplayerToastInfo"},_.C("div",{class:"ytdMiniplayerToastLabel"},function(){var k;
return(k=c())==null?void 0:k.label}),_.C("div",{class:"ytdMiniplayerToastTitle"},t)))},"xe");var lED;var Jjt=new Set,gfr=null;var mm2=null;var A8h=_.Q1(function(J){var c=J.progressState;var m=J.multiMarkersPlayerBarRenderer;var b=J.progressBarWidth;var x=function(){return Pn3(m())},P=function(){return NQq(c())},p=function(){return b()*(c().playedTime/c().videoDuration)};
return _.C("yt-chaptered-progress-bar-line",{class:"ytChapteredProgressBarHost"},_.C(_.Te,{each:x},function(t,I){return _.C(OQF,{modifiedProps:P,chapters:x,index:I,playedProgressWidth:p,backgroundGradientPosition:function(){var a=P(),k=x(),H=I(),T=p();return(a.playedTime-Zv(_.L(k[H],X1)))/a.playedTime*T}})}))},"ye"),OQF=_.Q1(function(J){var c=J.modifiedProps;
var m=J.chapters;var b=J.index;var x=J.playedProgressWidth;var P=J.backgroundGradientPosition;J={};J=_.pq("ytChapteredProgressBarChapteredPlayerBarChapter",(J.ytChapteredProgressBarChapteredPlayerBarChapterIsScrubbing=function(){return p().isScrubbing},J.ytChapteredProgressBarHoveredMacroMarker=function(){return p().scrubberHovering},J.ytChapteredProgressBarChapteredPlayerBarChapterSeen=function(){return p().videoPosition==="seen"},J));
var p=function(){return t12(c(),m(),b())},t=function(){var I=c();
var a=m(),k=b();if(t12(I,a,k).videoPosition!=="active")I=0;else{var H=Zv(_.L(a[k],X1));I=(I.playedTime-H)/((Zv(_.L(a[k+1],X1))||I.videoDuration)-H)}return I};
return _.C("div",{class:J,style:_.kx({width:function(){var I=c(),a=m(),k=b(),H=_.L(a[k],X1);a=_.L(a[k+1],X1);return(a?Zv(a)-Zv(H):I.videoDuration-Zv(H))/I.videoDuration*100+"%"},
"background-color":function(){a:{var I=p();switch(I.videoPosition){case "pending":I=I.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;case "active":I=I.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;default:I=""}}return I},
"background-size":function(){return(ITG(p())?x():"")+"px"},
"background-position-x":function(){return(ITG(p())?P():"")+"px"}})},_.C("div",{class:"ytChapteredProgressBarChapteredPlayerBarLoaded",
style:function(){var I=c(),a=m(),k=b();if(t12(I,a,k).videoPosition==="seen")var H=0;else H=Zv(_.L(a[k],X1)),a=Zv(_.L(a[k+1],X1))||I.videoDuration,I=I.videoDuration*I.percentLoaded,H=a<=I?1:H>=I?0:(I-H)/(a-H);return"width: "+H*100+"%"}}),_.C("div",{class:"ytChapteredProgressBarChapteredPlayerBarFill",
style:_.kx({width:function(){return t()*100+"%"},
"background-size":function(){return(ITG(p(),t())?x():"")+"px"},
"background-position-x":function(){return(ITG(p(),t())?P():"")+"px"}})}))},"ze");var R_o=function(J,c){c=c===void 0?nr2:c;var m,b=[],x,P=!1;return function(){var p=_.s$.apply(0,arguments);if(P&&m===this&&c(p,b))return x;x=J.apply(this,p);P=!0;m=this;b=p;return x}}(function(J){var c=J.heatMarkers,m=J.minHeightDp===void 0?0:J.minHeightDp,b=J.maxHeightDp===void 0?60:J.maxHeightDp;
var x=x===void 0?!1:x;var P=1E3/c.length;J=[];J.push({x:0,y:100});for(var p=0;p<c.length;p++){var t=void 0,I=((t=_.L(c[p],cZj))==null?void 0:t.heatMarkerIntensityScoreNormalized)||0;t=(p+.5)*P;I=100-_.fZ(I*100,m/321*100,b/321*100);p!==0||x||J.push({x:0,y:I});J.push({x:t,y:I});p===c.length-1&&J.push({x:1E3,y:I})}J.push({x:1E3,y:100});c="";for(m=0;m<J.length;m++)x=J[m],m===0?x="M "+x.x.toFixed(1)+","+x.y.toFixed(1):(b=O8u(J[m-1],J[m-2],x),P=O8u(x,J[m-1],J[m+1],!0),x=" C "+(b.x.toFixed(1)+","+b.y.toFixed(1)+
" "+P.x.toFixed(1)+","+P.y.toFixed(1)+" "+x.x.toFixed(1)+","+x.y.toFixed(1))),c+=x;return c});var oZs=_.Q1(function(J){var c=J.progressBarProps;var m=J.config;var b={};J=_.pq("ytHeatSeekerHost",(b.ytHeatSeekerHighContrast=J.highContrast,b));var x=function(){return ofo(m().chapterData)};
return _.C("yt-progress-bar-heatseeker",{class:J,style:function(){var P;return"height: 320px; display: "+(c().isDragging&&((P=x())==null?0:P.heatMarkers)?"block":"none")}},_.C(_.n,{cond:x,
then:function(P){return _.C(_.n,{cond:function(){return P().heatMarkers},
then:function(){return _.C("svg",{width:"100%",height:"320px",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},_.C("path",{d:function(){return R_o(P())}}))},
debugInstance:"Gji0Se"})},
debugInstance:"iVTXwf"}))},"Ae");var Q2f=_.Q1(function(J){var c=J.progressBarProps;var m=J.config;J={};J=_.pq("ytProgressBarLineProgressBarLine",(J.ytProgressBarLineProgressBarLineRounded=function(){return m().rounded},J.ytProgressBarLineProgressBarLineBottomInset=function(){return m().position===2},J));
return _.C("yt-progress-bar-line",{class:"ytProgressBarLineHost"},_.C("div",{class:J},_.C("div",{class:"ytProgressBarLineProgressBarBackground"}),_.C("div",{class:"ytProgressBarLineProgressBarLoaded",style:function(){return"width: "+c().percentLoaded*100+"%"}}),_.C("div",{class:"ytProgressBarLineProgressBarHovered",
style:function(){var b=c();return"width: "+(b.videoDuration?_.fZ(b.hoveredTime/b.videoDuration,0,1):0)*100+"%"}}),_.C("div",{class:"ytProgressBarLineProgressBarPlayed",
style:function(){return"width: "+OBu(c())*100+"%"}})))},"Be");
Q2f.idomCompat=!0;var e_5=_.Q1(function(J){var c=J.progressBarProps;var m=J.playheadData;var b=J.interpolateDotPosition;var x=J.hidePlayhead;J={};var P=_.pq("ytProgressBarPlayheadProgressBarPlayheadDot",(J.ytProgressBarPlayheadProgressBarPlayheadDotLarge=function(){return c().isDragging},J.ytProgressBarPlayheadProgressBarPlayheadDotHide=function(){return!c().isDragging&&x()},J));
return _.C("yt-progress-bar-playhead",{class:"ytProgressBarPlayheadHost",style:_.kx({"margin-left":function(){return Auo(c())*100+"%"},
transform:function(){return"translateX(-"+(b()?Auo(c())*12:6)+"px)"}})},_.C(_.n,{cond:function(){var p;
return(p=_.Ru(m)())==null?void 0:p.playheadImage},
then:function(p){var t={};return _.C("div",{class:_.pq("ytProgressBarPlayheadProgressBarPlayheadCustom",(t.ytProgressBarPlayheadProgressBarPlayheadCustomLarge=function(){return c().isDragging},t.ytProgressBarPlayheadProgressBarPlayheadCustomHide=function(){return!c().isDragging&&x()},t)),
style:_.kx({"transform-origin":function(){return(b()?Auo(c())*20:10)+"px center"}})},_.C(_.RA,{data:p,
alt:"","aria-hidden":"true"}))},
else:function(){return _.C("div",{class:P,style:_.kx({"transform-origin":function(){return(b()?Auo(c())*12:6)+"px center"}})})}}))},"Ce");
e_5.idomCompat=!0;var Hn=function(J,c,m,b,x,P){this.getProgressBarRect=J;this.updateProgressBarRect=c;this.getFilmstripYPosition=m;this.setFineScrubbingDraggedTime=b;this.updateFilmStripDraggedYDistance=x;this.resetFilmStripYOffset=P;this.startPosition=null;this.controlsWereVisibleBeforeDragging=this.isDraggedForFineScrubbing=this.hasDraggedTheMinimumDistance=!1;this.seekThrottle=new _.FU(this.onThrottledSeek,100,this)},j2u=function(J,c,m){return function(b){J.handleClick(b,c(),m())}},y85=function(J,c){return function(m){FjR(J,
m,l_u(m),c())}},BLu=function(J,c){return function(m){FjR(J,m,{x:m.clientX,
y:m.clientY},c())}},Jf4=function(J,c,m){return function(b){var x=c(),P=m();
gZR(J,b,l_u(b),x,P,!0);if(P.onTouchMove)P.onTouchMove(x)}},mRR=function(J,c,m){return function(b){cfF(J,b,c(),m())}},bro=function(J,c){return function(){J.handleMouseLeave(c())}},xRS=function(J,c,m){return function(){var b=c(),x=m();
iZ(J,b,x);if(x.onTouchEnd)x.onTouchEnd(b)}},Vhh=function(J,c,m){return function(){var b=c(),x=m();
iZ(J,b,x);if(x.onTouchEnd)x.onTouchEnd(b)}},P11=function(J,c,m){return function(){iZ(J,c(),m())}},MhF=function(J){return function(c){if(c.keyCode===39||c.keyCode===38){var m,b;
(m=J())==null||(b=m.playerApi)==null||b.seekBy(5,void 0,void 0,72)}else if(c.keyCode===37||c.keyCode===40){var x,P;(x=J())==null||(P=x.playerApi)==null||P.seekBy(-5,void 0,void 0,71)}}},puR=function(J,c,m){return function(b){!m().disableScrubbing&&J.startPosition&&cfF(J,b,c(),m())}},NRe=function(J,c,m){return function(){if(!m().disableScrubbing)if(J.startPosition){var b=c(),x=m();
iZ(J,c(),m());if(x.onTouchEnd)x.onTouchEnd(b)}else c().setState({isDragging:!1})}},l_u=function(J){J=J.touches[0];
return{x:J.clientX,y:J.clientY}},cfF=function(J,c,m,b){if(c.buttons!==1){if(c.movementX||c.movementY)c.preventDefault(),c.stopPropagation(),J=tho(J,m,c.clientX),m.setState({isHovering:!0,
hoveredTime:J*m.videoDuration})}else Ie5(m),gZR(J,c,{x:c.clientX,y:c.clientY},m,b,!1)};
Hn.prototype.handleMouseLeave=function(J){Ie5(J)};
var Ie5=function(J){J.isHovering&&J.setState({isHovering:!1,hoveredTime:0})},FjR=function(J,c,m,b){J.startPosition||(J.startPosition=m,J.updateProgressBarRect(),J.controlsWereVisibleBeforeDragging=b.controlsVisible,c.stopPropagation(),_.w("medium_progress_bar_modification")||c.preventDefault())},gZR=function(J,c,m,b,x,P){if(J.startPosition)if(P&&x.isInlinePlayback&&J.startPosition&&!J.hasDraggedTheMinimumDistance&&Math.abs(m.y-J.startPosition.y)>Math.abs(m.x-J.startPosition.x))iZ(J,b,x);
else if(c.preventDefault(),c.stopPropagation(),b.videoDuration&&(J.startPosition&&!J.hasDraggedTheMinimumDistance&&(J.hasDraggedTheMinimumDistance=Math.abs(m.x-J.startPosition.x)>=1),x.enableFineScrubbing&&(J.startPosition&&(J.isDraggedForFineScrubbing=-(m.y-J.startPosition.y)>=60),!J.startPosition||m.y>=J.startPosition.y||(b.setState({fineScrubbingActiveState:"dragging",filmStripXDistance:KuJ(b.draggedTime,b,x.chapterData)}),J.setFineScrubbingDraggedTime(b.draggedTime),J.updateFilmStripDraggedYDistance(J.startPosition.y,
m.y,b))),J.hasDraggedTheMinimumDistance)){c=tho(J,b,m.x);if(J.isDraggedForFineScrubbing){var p;(p=b.playerApi)==null||p.pauseVideo();b.setState({fineScrubbingActiveState:"on",fineScrubbingEnteredTime:b.draggedTime,filmStripXDistance:KuJ(c*b.videoDuration,b,x.chapterData)})}x.enableFineScrubbing&&(!x.enableFineScrubbing||J.getFilmstripYPosition(b)<68)||b.setState({draggedTime:c*b.videoDuration,controlsVisible:!0,isDragging:!0,shouldWaitToHideControls:J.controlsWereVisibleBeforeDragging});var t;(t=
x.cancelAutohideControlsFn)==null||t.call(x)}},iZ=function(J,c,m){var b=m.enableFineScrubbing&&c.fineScrubbingActiveState!=="off";
if(c.isDragging||b){b={isDragging:!1,playedTime:c.draggedTime,controlsVisible:J.controlsWereVisibleBeforeDragging};m.enableFineScrubbing&&c.fineScrubbingActiveState!=="on"&&(J.resetFilmStripYOffset(),b.fineScrubbingActiveState="off");var x=x===void 0?mm2:x;var P=_.Y3(0);P&&x&&_.Rn(P,x,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK",{seekData:{startMediaTimeMs:Math.round(c.playedTime*1E3),endMediaTimeMs:Math.round(c.draggedTime*1E3),seekSource:"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR"}});c.setState(b);
J.seekThrottle.fire(c.draggedTime,c,7);_.w("mweb_new_progress_bar_play_on_seek")&&J.resumeVideo(c);m.unmuteOnSeek&&(m=c.playerApi,c.volumeMuted&&(m==null||m.unMute()))}else c.setState({controlsVisible:!c.controlsVisible}),(P=m.triggerAutohideControlsAfterDelayFn)==null||P.call(m);J.startPosition=null;J.hasDraggedTheMinimumDistance=!1;J.isDraggedForFineScrubbing=!1;J.controlsWereVisibleBeforeDragging=!1};
Hn.prototype.handleClick=function(J,c,m){this.updateProgressBarRect();J.stopPropagation();J=tho(this,c,J.clientX)*c.videoDuration;c.setState({playedTime:J});if(c.playerState!==2){var b;(b=m.triggerAutohideControlsAfterDelayFn)==null||b.call(m)}this.seekThrottle.fire(J,c,7)};
var tho=function(J,c,m){J=J.getProgressBarRect(c);return _.fZ(0,(m-J.left)/J.width,1)};
Hn.prototype.resumeVideo=function(J){if(J.draggedTime<J.videoDuration){var c;(c=J.playerApi)==null||c.playVideo()}};
Hn.prototype.onThrottledSeek=function(J,c,m){if(c=c.playerApi){var b;if((b=c.getVideoData())==null?0:b.isLive)b=this.getProgressState(c),J+=(b==null?void 0:b.seekableStart)||0;c.seekTo(J,void 0,void 0,void 0,m)}};
Hn.prototype.getProgressState=function(J){var c=J==null?void 0:J.getPresentingPlayerType();return J==null?void 0:J.getProgressState(c)};var aes,C1u,k4p,irh,KSe,npp,TRr,wu1,rf1;aes=_.Q1(function(J){var c=J.progressBarProps;var m=J.config;var b=J.progressBarWidthPx;var x=J.chapterData;var P=inm(c,function(){return m().isShortsPage}),p=function(){return!c().isHovering&&!m().isShortsPage};
J={};var t=_.pq("ytPlayerStoryboardHost","ytPlayerStoryboardHostBigboard",(J.ytPlayerStoryboardHostMwebShorts=function(){return m().isShortsPage&&!1},J));
return _.C("yt-player-storyboard",null,_.C(_.n,{cond:function(){return c().isDragging||c().isHovering},
then:function(){return _.C(_.n,{cond:P,then:function(I){return _.C(_.n,{cond:p,then:function(){return _.C("div",{class:t,"aria-hidden":"true"},_.C(KSe,{props:c,config:m,isBigboard:!0,chapterData:x}))},
else:function(){return _.C(C1u,{props:c,frame:I,config:m,progressBarWidthPx:b,chapterData:x})}})}})}}))},"De");
_.HrR=_.Q1(function(J){var c=J.progressBarProps;var m=inm(c,J.isShortsPage);return _.C("yt-player-big-storyboard",{class:"ytPlayerStoryboardBigboardWrapper"},_.C(_.n,{cond:function(){return c().isDragging||c().isHovering},
then:function(){return _.C(_.n,{cond:m,then:function(b){return _.C(k4p,{frame:b,props:c,isBigboard:!0})}})}}))},"Ee");
C1u=_.Q1(function(J){var c=J.props;var m=J.frame;var b=J.config;var x=J.progressBarWidthPx;J=J.chapterData;var P={};P=_.pq("ytPlayerStoryboardHost",(P.ytPlayerStoryboardHostMwebShorts=function(){return b().isShortsPage&&!1},P.ytPlayerStoryboardHostInlinePlayer=function(){return b().isInlinePlayer},P.ytPlayerStoryboardHostFadeIn=function(){return b().useFadeInAnimation},P));
return _.C("div",{class:P,"aria-hidden":"true",style:function(){var p=c(),t=Cnf(m()),I=x();p=aTt(p)/p.videoDuration;var a=I*p,k=t/2+6;t=I-(t/2+6);return"left: "+(a<=k?k/I*100:a>=t?t/I*100:p*100)+"%"}},_.C(_.n,{cond:function(){var p=c();
return!(b().isShortsPage&&p.videoDuration<15)},
then:function(){return _.C(k4p,{frame:m,props:c,isBigboard:!1})}}),_.C(KSe,{props:c,
config:b,isBigboard:!1,chapterData:J}))},"Fe");
k4p=_.Q1(function(J){var c=J.frame;var m=J.props;var b=J.isBigboard;var x=function(){var t,I;return(I=(t=m().playerApi)==null?void 0:t.getVideoContentRect())!=null?I:{width:0,height:0}},P=function(){return Cnf(c())},p=function(){var t=c();
return t?t.height/t.rows:0};
J={};J=_.pq((J.ytPlayerStoryboardBigboardImageWrapper=b,J.ytPlayerStoryboardStoryboardImageWrapper=function(){return!b()},J));
return _.C("div",{class:J,style:function(){return"width: "+(b()?x().width:P())+"px; height: "+(b()?x().height:p())+"px;"}},_.C(irh,{frame:c,
storyboardWidth:P,storyboardHeight:p,storyboardScale:function(){return(b()?x().width:P())/P()}}))},"Ge");
irh=_.Q1(function(J){var c=J.frame;var m=J.storyboardWidth;var b=J.storyboardHeight;var x=J.storyboardScale;var P=function(){var p=c().row,t=c().column,I=m(),a=b(),k=x();return{left:-t*I*k,top:-p*a*k}};
return _.C("img",{src:function(){return c().url},
class:"ytPlayerStoryboardStoryboardImage",alt:"preview-image",style:function(){return"left: "+P().left+"px; top: "+P().top+"px; width: "+c().width*x()+"px; height: "+c().height*x()+"px;"}})},"He");
KSe=_.Q1(function(J){var c=J.props;var m=J.config;var b=J.isBigboard;var x=J.chapterData;J={};J=_.pq("ytPlayerStoryboardMetadata",(J.ytPlayerStoryboardMetadataBigboard=b,J));return _.C("div",{class:J},_.C(_.n,{cond:b,then:function(){return _.C(_.cG,null,_.C(npp,{props:c,config:m}),_.C(_.n,{cond:function(){a:{var P=c();var p=m(),t=x(),I;if((p==null?0:p.activeChapter)&&((I=_.L(p==null?void 0:p.activeChapter,X1))==null?0:I.title))P=!0;else{p=_.M(QXo(t));for(p=p.next();!p.done;p=p.next()){P=(p=_.L(p.value,
bO2))&&kIG(P,p);break a}P=!1}}return P},
then:function(){return _.C(TRr,{props:c,config:m,isBigboard:!0,chapterData:x})}}))},
else:function(){return _.C(_.cG,null,_.C(TRr,{props:c,config:m,isBigboard:!0,chapterData:x}),_.C(npp,{props:c,config:m}))}}))},"Ie");
npp=_.Q1(function(J){var c=J.props;var m=J.config;J={};J=_.pq("ytPlayerStoryboardTimestamp",(J.ytPlayerStoryboardTimestampShorts=function(){return m().isShortsPage},J.ytPlayerStoryboardTimestampIsHovering=function(){return c().isHovering||m().isShortsPage&&!0},J));
return _.C("div",{class:J},_.C(_.cG,null,function(){return _.HnT(aTt(c()))}))},"Je");
TRr=_.Q1(function(J){var c=J.props;var m=J.config;var b=J.isBigboard;var x=J.chapterData;J={};b=_.pq("ytPlayerStoryboardTitle",(J.ytPlayerStoryboardTitleBigboard=b,J));return _.C("div",{class:b},_.C(_.n,{cond:function(){return!m().isShortsPage},
then:function(){return _.C(wu1,{props:c,activeChapter:function(){return m().activeChapter},
chapterData:x})}}))},"Ke");
wu1=_.Q1(function(J){var c=J.props;var m=J.activeChapter;var b=J.chapterData;return _.C(_.cG,null,_.C(_.Te,{each:function(){return QXo(b())},
keyBy:"INDEX"},function(x){return _.C(_.cG,null,_.C(_.n,{cond:function(){return _.L(x(),bO2)&&kIG(c(),_.L(x(),bO2))},
then:function(){return _.C(rf1,{timedMarker:function(){return _.L(x(),bO2)}})}}))}),_.C(_.n,{cond:function(){var x;
return m()&&((x=_.L(m(),X1))==null?void 0:x.title)},
then:function(x){return _.C(_.j8,{text:x,noPreWrap:!0})}}))},"Le");
rf1=_.Q1(function(J){var c=J.timedMarker;return _.C(_.cG,null,_.C("div",{class:"ytPlayerStoryboardTimedMarkerIconWrapper"},_.C(_.HP,{icon:function(){return c().icon},
className:"ytPlayerStoryboardTimedMarkerIcon"})),_.C(_.j8,{text:function(){return c().label},
noPreWrap:!0}))},"Me");_.sFo=_.Q1(function(J){var c=J.progressBarProps;var m=J.playheadData;var b=J.config;J=_.oN("yt-progress-bar");var x=_.oN("div"),P=_.oN("div"),p=_.M(_.K2({width:0,left:0},void 0,"NcXsUb")),t=p.next().value,I=p.next().value,a=function(){P.value&&I(P.value.getBoundingClientRect())},k=function(){t().width<=0&&a();
return t()};
y5("resize",a);var H=new Hn(k,function(){},function(){return 0},function(){},function(){},function(){}),T=function(){return c()};
p=_.M(_.K2(!1,void 0,"ZsF6Xc"));var r=p.next().value,W=p.next().value;p=_.Kq(function(){W(!0);b().position===2?setTimeout(function(){a()},100):a()});
var Y=_.Kq(function(){W(!1);bro(H,T)()}),Z=_.Kq(function(Em){b().doSeekOnClick&&j2u(H,T,b)(Em);
return!1}),d=_.Kq(function(Em){y85(H,T)(Em);
return!1}),G=_.Kq(function(Em){BLu(H,T)(Em);
return!1}),e=_.Kq(function(Em){Jf4(H,T,b)(Em);
return!1}),A=_.Kq(function(Em){mRR(H,T,b)(Em);
return!1}),l=_.Kq(function(){xRS(H,T,b)();
return!1}),y=_.Kq(function(){Vhh(H,T,b)();
return!1}),pG=_.Kq(function(){P11(H,T,b)();
return!1}),kt=_.Kq(function(Em){MhF(T)(Em);
return!1});
y5("mousemove",puR(H,T,b));y5("mouseup",NRe(H,T,b));_.uN(function(){bnt(x.value);W(!1);a();NRe(H,T,b)()});
var nG={};nG=_.pq("ytPlayerProgressBarHost",function(){return b().className},(nG.ytPlayerProgressBarHostReadOnly=function(){return b().disableScrubbing},nG.ytPlayerProgressBarHostHidden=function(){return b().hideProgressBar&&!r()},nG.ytPlayerProgressBarHostLowerPlayer=function(){return b().position===0},nG.ytPlayerProgressBarHostBottomEdge=function(){return b().position===1},nG.ytPlayerProgressBarHostBottomInset=function(){return b().position===2},nG.ytPlayerProgressBarHostCustom=function(){return b().position===
3},nG));
var fG={},Yt=_.pq("ytPlayerProgressBarBackground",(fG.ytPlayerProgressBarBackgroundHide=function(){return b().position===2&&!r()&&!c().isDragging},fG));
fG={};fG=_.pq("ytPlayerProgressBarDragContainer",(fG.ytPlayerProgressBarDragContainerBottomEdge=function(){return b().position===1},fG));
var Z3={};Z3=_.pq("ytPlayerProgressBarProgressBar",(Z3.ytPlayerProgressBarProgressBarInset=function(){return b().position===2},Z3.ytPlayerProgressBarProgressBarInsetMinimized=function(){return b().position===2&&!r()&&!c().isDragging},Z3));
var oR=function(){return Math.floor(OBu(c())*100)};
return _.C("yt-progress-bar",{el:J,class:nG},_.C(_.n,{cond:function(){return b().position===2},
then:function(){return _.C("div",{class:Yt})}}),_.C("div",{el:x,
"on:click":Z,"on:touchstart":d,"on:touchmove":e,"on:mouseenter":p,"on:mousedown":G,"on:mouseleave":Y,"on:mousemove":A,"on:mouseup":y,"on:touchend":l,"on:touchcancel":pG,"on:keydown":kt,class:fG,role:"slider","aria-valuenow":oR,"aria-valuetext":function(){return oR()+"%"},
"aria-valuemin":function(){return 0},
"aria-valuemax":function(){return c().videoDuration},
draggable:"true",tabindex:0,"aria-label":_.CX("SEEK_SLIDER")},_.C("div",{el:P,class:Z3},_.C(oZs,{progressBarProps:c,config:b,highContrast:function(){return!!b().isInlinePlayback}}),_.C(_.n,{cond:function(){return b().chapterData&&eq3(b().chapterData)},
then:function(){return _.C(A8h,{progressState:c,multiMarkersPlayerBarRenderer:function(){return b().chapterData},
progressBarWidth:function(){return t().width}})},
else:function(){return _.C(Q2f,{progressBarProps:c,config:b})}}),_.C(e_5,{progressBarProps:c,
playheadData:m,interpolateDotPosition:function(){return b().position!==2},
hidePlayhead:function(){return b().playheadDotBehavior===1&&!r()}}))),_.C(aes,{progressBarProps:c,
config:function(){return{activeChapter:pMQ(c(),b().chapterData),getProgressBarWidthPx:function(){return k().width},
isShortsPage:!!b().isShortsPage,isInlinePlayer:!!b().isInlinePlayback,useFadeInAnimation:!!b().isInlinePlayback}},
progressBarWidthPx:function(){return t().width},
chapterData:function(){return b().chapterData}}))},"Ne");
_.sFo.idomCompat=!0;Object.assign({},_.jXR(),{setState:function(){},
domMeasurements:{},appApi:_.vfG(),playerApi:void 0,playerContainer:void 0,playerControlContainer:void 0,uxConfig:{}});var LSe;
_.DRu=_.Q1(function(){var J,c=(J=_.q_(nme().playerApi))!=null?J:void 0;J=_.M(_.K2(!1,void 0,"HLFBmb"));var m=J.next().value,b=J.next().value;J=_.M(_.K2(!1,void 0,"lHH9bc"));var x=J.next().value,P=J.next().value;J=_.M(_.K2(!1,void 0,"zsY7yd"));var p=J.next().value,t=J.next().value;J=_.M(_.K2(!1,void 0,"KeHQgc"));var I=J.next().value,a=J.next().value;J=_.M(_.K2(0,void 0,"gLLCj"));var k=J.next().value,H=J.next().value;J=_.M(_.K2(0,void 0,"s3RYkf"));var T=J.next().value,r=J.next().value;J=_.M(_.K2(!1,void 0,
"Dn608e"));var W=J.next().value,Y=J.next().value;J=_.M(_.K2(0,void 0,"AnkH1b"));var Z=J.next().value,d=J.next().value;J=_.M(_.K2(0,void 0,"QYNL0b"));var G=J.next().value,e=J.next().value;J=_.M(_.K2("",void 0,"Yzw45d"));var A=J.next().value,l=J.next().value;J=_.M(_.K2(-1,void 0,"iiVI0c"));var y=J.next().value,pG=J.next().value,kt=_.n2(function(){var nG={controlsVisible:m(),isOverlayHidden:x(),shouldWaitToHideControls:p(),isDragging:I(),isHovering:W(),videoDuration:Z(),playedTime:G(),videoId:A(),draggedTime:T(),
hoveredTime:k(),playerState:y()};return Object.assign({},_.jXR(),nG,{domMeasurements:{},setState:function(fG){fG.controlsVisible!==void 0&&b(fG.controlsVisible);fG.isOverlayHidden!==void 0&&P(fG.isOverlayHidden);fG.shouldWaitToHideControls!==void 0&&t(fG.shouldWaitToHideControls);fG.isDragging!==void 0&&a(fG.isDragging);fG.isHovering!==void 0&&Y(fG.isHovering);fG.draggedTime!==void 0&&r(fG.draggedTime);fG.hoveredTime!==void 0&&H(fG.hoveredTime);fG.videoDuration!==void 0&&d(fG.videoDuration);fG.playedTime!==
void 0&&e(fG.playedTime);fG.videoId!==void 0&&l(fG.videoId);fG.playerState!==void 0&&pG(fG.playerState)},
appApi:_.vfG(),playerApi:c})},void 0,"ZW7y9");
_.WG(function(){c==null||c.addEventListener("onVideoProgress",BqT(kt));c==null||c.addEventListener("onVideoDataChange",yuq(kt));c==null||c.addEventListener("onStateChange",FWr(kt))});
_.f2(function(){if(c==null?0:c.isReady())c==null||c.removeEventListener("onVideoProgress",BqT(kt)),c==null||c.removeEventListener("onVideoDataChange",yuq(kt)),c==null||c.removeEventListener("onStateChange",FWr(kt))});
return _.C("desktop-shorts-player-controls",null,_.C(LSe,{playerControlsProps:kt}))},"Oe");
LSe=_.Q1(function(J){var c=J.playerControlsProps;return _.C("div",{class:"desktopShortsPlayerControlsWizHost"},_.C(_.sFo,{progressBarProps:c,config:function(){return{isShortsPage:!0,hideProgressBar:c().videoDuration<30&&c().playerState!==2&&!c().isDragging,rounded:!0,position:3,unmuteOnSeek:!1,playheadDotBehavior:1,doSeekOnClick:!0}}}))},"Pe");_.WSF=_.Q1(function(J){function c(nG){nG!==0||H()?nG>50&&(H()||!r())?(T(!1),W(!0)):nG<=50&&(H()||r())&&(T(!1),W(!1)):T(!0)}
function m(nG,fG){var Yt;return _.N(function(Z3){if(Z3.nextAddress==1)return _.K(Z3,_.mf(),2);Yt=Z3.yieldResult;fG&&Yt?(Yt.unMute(!0),nG&&(wMo(nG,Yt.getVolume()),Z(Yt.getVolume()))):Yt&&(Yt.mute(!0),nG&&wMo(nG,0));_.tD(Z3)})}
function b(nG){var fG,Yt;return _.N(function(Z3){if(Z3.nextAddress==1)return _.K(Z3,_.mf(),2);fG=Z3.yieldResult;Yt=50;fG&&(Yt=fG.getVolume(),fG.isMuted()?wMo(nG,0):wMo(nG,Yt));Z(Yt);_.tD(Z3)})}
var x=J.orientation;J=_.oN("desktop-shorts-volume-controls");var P=_.oN("button"),p=_.Q5("input"),t=_.M(_.K2(!1,void 0,"F6vt0d")),I=t.next().value,a=t.next().value,k=_.M(_.K2(!1,void 0,"S5PCqb"));t=k.next().value;k=k.next().value;var H=t,T=k;k=_.M(_.K2(!0,void 0,"Tgy4e"));t=k.next().value;k=k.next().value;var r=t,W=k;t=_.M(_.K2(50,void 0,"Dq3efd"));var Y=t.next().value,Z=t.next().value;t=_.n2(function(){var nG=H();return _.w("web_shorts_keyboard_enable_mute_shortcut")?nG?_.CX("PLAYER_LABEL_UNMUTE",
void 0,"Unmute (m)"):_.CX("PLAYER_LABEL_MUTE",void 0,"Mute (m)"):nG?_.CX("UNMUTE_VOLUME",void 0,"Unmute"):_.CX("MUTE_VOLUME",void 0,"Mute")},void 0,"zjOD8c");
k=_.n2(function(){var nG=H(),fG=r();return{sources:[{clientResource:{imageName:nG?_.w("web_shorts_modern_controls")?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED":fG?_.w("web_shorts_modern_controls")?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED":_.w("web_shorts_modern_controls")?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED"}}]}},void 0,"bIZ5A");
var d=_.n2(function(){var nG=Y();return H()?nG+"% volume muted":nG+"% volume"},void 0,"kvkmyc"),G=_.n2(function(){return x()==="vertical_down"},void 0,"zaNsZ");
_.uN(function(){function nG(){a(!0)}
function fG(){a(!1)}
p&&p.value&&(p.value.addEventListener("focus",nG),p.value.addEventListener("focusout",fG),b(p.value).then(function(){c(Number(rjJ(p.value)))}));
P&&P.value&&(P.value.addEventListener("focus",nG),P.value.addEventListener("focusout",fG));_.f2(function(){var Yt;p==null||(Yt=p.value)==null||Yt.removeEventListener("focus",nG);var Z3;p==null||(Z3=p.value)==null||Z3.removeEventListener("focusout",fG);var oR;P==null||(oR=P.value)==null||oR.removeEventListener("focus",nG);var Em;P==null||(Em=P.value)==null||Em.removeEventListener("focusout",fG)})});
var e=_.Kq(function(){if(p&&p.value){var nG=Number(rjJ(p.value));TQu(nG);Z(nG);p.value.style.setProperty("--gradient-percent",nG+"%");c(nG)}return!1}),A=_.Kq(function(){a(!0)}),l=_.Kq(function(){p&&p.value&&(m(p.value,H()),T(!H()));
return!1}),y={},pG={},kt={};
return _.C("desktop-shorts-volume-controls",{"on:pointerleave":_.Kq(function(){a(!1)}),
class:_.pq("ytdDesktopShortsVolumeControlsHost",(y.ytdDesktopShortsVolumeControlsHostVertical=G,y.ytdDesktopShortsVolumeControlsHostExpanded=I,y)),el:J},_.C(_.n,{cond:function(){return!G()},
then:function(){var nG={};return _.C("div",{class:_.pq("ytdDesktopShortsVolumeControlsBackgroundScrim",(nG.ytdDesktopShortsVolumeControlsBackgroundScrimExpanded=I,nG))})}}),_.C("div",{class:_.pq((pG.ytdDesktopShortsVolumeControlsMuteIconButtonContainer=G,pG))},_.C("button",{"aria-label":t,
title:t,el:P,"on:click":l,"on:pointerenter":A,class:"ytdDesktopShortsVolumeControlsMuteIconButton"},k?_.C(_.RA,{data:k,alt:t,className:"ytdDesktopShortsVolumeControlsMuteIcon"}):null)),_.C("div",{class:_.pq("ytdDesktopShortsVolumeControlsSliderContainer",(kt.ytdDesktopShortsVolumeControlsSliderContainerExpanded=I,kt.ytdDesktopShortsVolumeControlsSliderContainerVertical=G,kt.ytdDesktopShortsVolumeControlsSliderContainerVerticalDown=G,kt.ytdDesktopShortsVolumeControlsSliderContainerVerticalExpanded=
function(){return I()&&G()},kt))},_.C("input",{"aria-label":_.CX("VOLUME"),
title:_.CX("VOLUME"),el:p,"on:input":e,type:"range",class:"ytdDesktopShortsVolumeControlsNativeSlider",id:"volume-input",role:"slider","aria-valuenow":Y,"aria-valuetext":d,"aria-valuemin":0,"aria-valuemax":100})))},"Qe");_.zoh=_.Q1(function(J){var c=J.data;return _.C("player-disclosure-view-model",{class:"ytwPlayerDisclosureViewModelHost"},_.C(_.cL,{command:function(){return c().navigationEndpoint},
className:"ytwPlayerDisclosureViewModelEndpoint"},_.C(_.n,{cond:function(){return c().iconName},
then:function(m){return _.C(_.HP,{icon:m})}}),_.C("span",{class:"ytwPlayerDisclosureViewModelText"},function(){return c().text}),_.C(_.n,{cond:function(){return c().showEndChevron},
then:function(){return _.C(_.HP,{icon:"CHEVRON_RIGHT"})}})))},"Re");var usS=_.Q1(function(J){var c=J.data;var m=J.overlayDensity;J={};return _.C("yt-reel-channel-bar-view-model",{class:"ytReelChannelBarViewModelHost"},_.C(_.wi,{data:function(){return c().decoratedAvatarViewModel}},{decoratedAvatarViewModel:function(b){var x=b.data;
return _.C(_.Li,{data:function(){return(m==null?void 0:m())===1?Object.assign({},x(),{avatar:{avatarViewModel:Object.assign({},_.L(x().avatar,_.Oc),{avatarImageSize:"AVATAR_SIZE_48"})}}):x()}})}}),_.C(_.wi,{data:function(){return c().avatarStackViewModel}},{avatarStackViewModel:function(b){return _.C(_.DN,{data:b.data})}}),_.C(_.j8,{className:_.pq("ytReelChannelBarViewModelChannelName",(J.ytReelChannelBarViewModelChannelNameLarge=function(){return(m==null?void 0:m())===1},J)),
text:function(){return c().channelName},
linkInheritColor:!0,userInput:!0}),_.C("div",{class:"ytReelChannelBarViewModelReelSubscribeButton"},_.C(_.wi,{data:function(){return c().subscribeButtonViewModel}},{subscribeButtonViewModel:function(b){var x=b.data;
return _.C(_.sF,{data:function(){return(m==null?void 0:m())===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:_.XU})),_.C("div",{class:"ytReelChannelBarViewModelReelSponsorButton"},_.C(_.wi,{data:function(){var b,x;return(x=_.L((b=c())==null?void 0:b.sponsorButtonViewModel,wE_))==null?void 0:x.sponsorButton}},{buttonViewModel:function(b){return _.C(_.XU,{data:b.data,
buttonOverrides:function(){return{toggled:!0}}})}})))},"Se");var fe4=_.Q1(function(J){var c={};return _.C("yt-reel-multi-format-link-view-model",{class:_.pq("ytReelMultiFormatLinkViewModelHost",(c.ytReelMultiFormatLinkViewModelHostTall=!0,c.ytReelMultiFormatLinkViewModelHostLarge=function(){var m;return((m=J.overlayDensity)==null?void 0:m.call(J))===1},c))},_.C(_.cL,{ariaLabel:function(){return J.data().a11yLabel},
className:"ytReelMultiFormatLinkViewModelEndpoint",command:function(){return _.ZG(J.data().command)},
dangerousStopPropagation:!1},_.C("h3",{class:"ytReelMultiFormatLinkViewModelLink"},_.C(_.n,{cond:function(){return J.data().icon},
then:function(m){return _.C(_.RA,{data:m,className:"ytReelMultiFormatLinkViewModelIcon",alt:""})}}),_.C(_.j8,{text:function(){return J.data().title},
className:"ytReelMultiFormatLinkViewModelTitle"}))))},"Te");
fe4.idomCompat=!0;var Y5u=_.Q1(function(J){var c=J.data;var m=J.overlayDensity;var b=_.oN("yt-shorts-suggested-action-view-model");J=_.M(_.K2(!1,void 0,"xDqzhe"));var x=J.next().value,P=J.next().value;J=_.M(_.K2(!1,void 0,"LI9CFd"));var p=J.next().value,t=J.next().value,I=function(){return c().isMultiLineSa},a=_.tT(D4q,function(){var e,A;
return(A=(e=c().toggleableContent)==null?void 0:e.entityKey)!=null?A:""}),k=function(){var e,A,l;
return(l=c().toggleableContent)!=null&&l.entityKey?(A=(e=a())==null?void 0:e.value)!=null?A:!1:!1},H=function(){var e,A,l,y,pG,kt,nG,fG,Yt,Z3,oR;
return c().toggleableContent?k()?(e=c().toggleableContent)==null?void 0:e.toggledData:(A=c().toggleableContent)==null?void 0:A.untoggledData:{primaryText:(fG=(l=c().defaultContent)==null?void 0:l.primaryText)!=null?fG:c().text,secondaryText:(y=c().defaultContent)==null?void 0:y.secondaryText,onTapCommand:(Yt=(pG=c().defaultContent)==null?void 0:pG.onTapCommand)!=null?Yt:c().onTapCommand,icon:(Z3=(kt=c().defaultContent)==null?void 0:kt.icon)!=null?Z3:c().icon,image:(oR=(nG=c().defaultContent)==null?
void 0:nG.image)!=null?oR:c().image}},T=function(){return I()?c().trailingTapTarget:void 0};
J=function(e,A){return function(){return x()?A:e}};
var r={leadingSection:J("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingSection"),secondaryText:J("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelDynamicHostExpandedSecondary"),trailingSection:J("ytShortsSuggestedActionViewModelDynamicHostCollapsedTrailingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedTrailingSection"),leadingIcon:J("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon",
"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon")};J={};J=_.pq((J.ytShortsSuggestedActionViewModelStaticHost=function(){return!I()},J.ytShortsSuggestedActionViewModelDynamicHost=I,J.ytShortsSuggestedActionViewModelDynamicHostShown=function(){return I()&&p()},J.ytShortsSuggestedActionViewModelDynamicHostHidden=function(){return I()&&!p()},J));
_.uN(function(){if(I()){var e=0,A;if((A=c().animationParams)==null?0:A.shouldExpand){var l,y;e=((y=(l=c().animationParams)==null?void 0:l.expansionDelaySecs)!=null?y:0)*1E3}var pG,kt=((pG=c().animationParams)==null?0:pG.shouldExpand)?setTimeout(function(){P(!0)},e):void 0,nG,fG;
e=((nG=c().animationParams)==null?0:nG.visibilityDelaySecs)?((fG=c().animationParams)==null?NaN:fG.visibilityDelaySecs)*1E3:0;var Yt=setTimeout(function(){t(!0)},e);
_.f2(function(){kt&&clearTimeout(kt);clearTimeout(Yt)})}});
var W=function(e){_.hd(e,Object.assign({},{form:{element:b.value}}))},Y=_.Kq(function(){var e,A=(e=H())==null?void 0:e.onTapCommand;
A&&W(A)}),Z=_.Kq(function(){var e,A;
if(e=(A=T())==null?void 0:A.onTapCommand)return W(e),!1}),d=_.kx({"vertical-align":"bottom",
"border-radius":function(){var e;return I()?((e=c().defaultContent)==null?0:e.isCircleImage)?"50%":"4px":"0px"},
width:function(){var e,A,l;return I()&&((e=c().defaultContent)==null?0:e.imageSize)?((l=(A=c().defaultContent)==null?void 0:A.imageSize)!=null?l:24)+"px":null},
height:function(){var e,A,l;return I()&&((e=c().defaultContent)==null?0:e.imageSize)?((l=(A=c().defaultContent)==null?void 0:A.imageSize)!=null?l:24)+"px":null}}),G={};
return _.C("yt-shorts-suggested-action-view-model",{class:J,el:b},_.C("div",{style:"display: flex; flex-direction: row; align-items: center;"},_.C("button",{class:_.pq(function(){return I()?"ytShortsSuggestedActionViewModelDynamicHostContainer":"ytShortsSuggestedActionViewModelStaticHostContainer"},function(){var e;
return(e=c().useFullRoundedBorder)!=null&&e?"ytShortsSuggestedActionViewModelDynamicHostUseRoundBorder":!T()&&I()?"ytShortsSuggestedActionViewModelDynamicHostRoundAllCorners":I()?"ytShortsSuggestedActionViewModelDynamicHostOnlyRoundLeadingCorners":""},function(){var e;
return(e=c().disableFixedHeight)!=null&&e?"ytShortsSuggestedActionViewModelDynamicHostFixedHeightAuto":""},(G.ytShortsSuggestedActionViewModelExpansiveContainer=function(){return(m==null?void 0:m())===1},G)),
"on:click":Y},_.C(_.TH,{model:{color:4}}),_.C("div",{class:_.pq(function(){return I()?r.leadingSection():"ytShortsSuggestedActionViewModelStaticHostLeadingSection"})},_.C(_.n,{cond:function(){var e;
return(e=H())==null?void 0:e.image},
then:function(e){return _.C(_.RA,{data:e,alt:"",className:function(){return I()?"ytShortsSuggestedActionViewModelDynamicHostLeadingImage":"ytShortsSuggestedActionViewModelStaticHostLeadingImage"},
contentMode:"CONTENT_MODE_SCALE_TO_FILL",preserveHeight:!0,preserveWidth:!0,useWidth:!0,style:d})}}),_.C(_.n,{cond:function(){var e,A;
return(e=H())==null?void 0:(A=e.icon)==null?void 0:A.iconType},
then:function(e){return _.C(_.HP,{icon:e,active:k,className:function(){return I()?x()?"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon":"ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon":"ytShortsSuggestedActionViewModelStaticHostLeadingIcon"}})}})),_.C("div",{class:"ytShortsSuggestedActionViewModelStaticHostTextSection"},_.C(_.n,{cond:function(){var e;
return(e=H())==null?void 0:e.primaryText},
then:function(e){return _.C("div",{class:"ytShortsSuggestedActionViewModelStaticHostPrimaryText"},_.C(_.j8,{text:e}))}}),_.C(_.n,{cond:function(){var e;
return(e=H())==null?void 0:e.secondaryText},
then:function(e){return _.C("div",{class:r.secondaryText},_.C(_.j8,{text:e}))}}))),_.C(_.n,{cond:T,
then:function(e){return _.C("div",{class:r.trailingSection,"aria-label":function(){var A;return(A=e().a11yLabel)!=null?A:""},
"on:click":Z,role:"button",tabindex:0},_.C(_.TH,{model:{color:4}}),_.C(_.HP,{icon:"CHEVRON_DOWN",className:"ytShortsSuggestedActionViewModelDynamicHostTrailingIcon"}))}})))},"Ue");var XuR=_.Q1(function(J){var c=J.data;var m=J.overlayDensity;var b=_.oN("yt-shorts-video-title-view-model");J=_.Kq(function(p){if(_.$M(_.di(p),b.value,["A".toString()]))return!1;(p=c().truncatedTextOnTapCommand)&&_.hd(p);return!1});
var x={},P={};return _.C("yt-shorts-video-title-view-model",{el:b,class:_.pq("ytShortsVideoTitleViewModelHost",(x.ytShortsVideoTitleViewModelHostClickable=function(){return!!c().truncatedTextOnTapCommand},x)),
"on:click":J},_.C("h2",{class:_.pq("ytShortsVideoTitleViewModelShortsVideoTitle",(P.ytShortsVideoTitleViewModelShortsVideoTitleLarge=function(){return(m==null?void 0:m())===1},P))},_.C(_.j8,{text:function(){return c().text},
linkInheritColor:!0,noEndpoints:!1,stopPropagation:!0,userInput:!0})))},"Ve");_.ZrS=_.Q1(function(J){var c=J.data;var m=J.overlayDensity;return _.C("yt-reel-metapanel-view-model",{class:"ytReelMetapanelViewModelHost"},_.C(_.wi,{data:function(){return c().metadataItems}},{badgeViewModel:function(b){return _.C("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.C(_.Fo,{data:b.data}))},
playerDisclosureViewModel:function(b){return _.C("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.C(_.zoh,{data:b.data}))},
shortsSuggestedActionViewModel:function(b){return _.C("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.C(Y5u,{data:b.data,overlayDensity:m}))},
reelChannelBarViewModel:function(b){return _.C("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.C(usS,{data:b.data,overlayDensity:m}))},
reelMultiFormatLinkViewModel:function(b){return _.C("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.C(fe4,{data:b.data,overlayDensity:m}))},
shortsVideoTitleViewModel:function(b){return _.C("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.C(XuR,{data:b.data,overlayDensity:m}))},
reelSoundMetadataViewModel:function(b){return _.C("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.C(_.$OB,{data:b.data,overlayDensity:m}))},
toggleButtonViewModel:function(b){return _.C("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.C(_.LK,{data:b.data}))}}))},"We");var q5e=_.Q1(function(J){var c=_.ou(J,{size:"M",disabled:!1,tooltipText:"",onTap:void 0}),m=c.size,b=c.onTap,x=c.disabled,P=c.tooltipText;return _.C("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.C(l$,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:m(),disabled:x(),tooltipText:P(),onTap:b}},
iconName:J.iconType}))},"Xe"),URu=_.Q1(function(J){function c(k){k.stopPropagation();
k.code==="ArrowUp"?(k.preventDefault(),DmR(t.value)):k.code==="ArrowDown"?(k.preventDefault(),Wur(t.value)):k.code==="KeyM"?sY2():(k.code==="KeyK"||k.code==="Space")&&Lu3(I())}
var m=_.ou(J,{previousButtonDisabled:!1,nextButtonDisabled:!1,data:void 0,playabilityStatus:void 0,previewThumbnail:void 0});J=m.previousButtonDisabled;var b=m.nextButtonDisabled,x=m.data,P=m.playabilityStatus,p=m.previewThumbnail,t=_.oN("ytd-shorts-miniplayer-overlay"),I=_.fq(_.k3T),a;_.WG(function(){(a=_.fw(t.value))&&a.addEventListener("keydown",c)});
_.f2(function(){var k;(k=a)==null||k.removeEventListener("keydown",c)});
m=function(){var k,H,T;return(k=x())==null?void 0:(H=k.reelPlayerOverlayRenderer)==null?void 0:(T=H.likeButton)==null?void 0:T.likeButtonRenderer};
return _.C("ytd-shorts-miniplayer-overlay",{el:t,class:"ytdShortsMiniplayerOverlayHost"},_.C("div",{class:"ytdShortsMiniplayerOverlayThumbnailBackground",style:_.kx({"background-image":function(){var k=p();return k?'url("'+_.Bd(k.thumbnails)+'")':""}})}),_.C("div",{class:"ytdShortsMiniplayerOverlayOverlay"},_.C("div",{class:"ytdShortsMiniplayerOverlayTopButtons"},_.C(q5e,{iconType:function(){var k=I();
return k===2||k===-1||k===5?"PLAY_ARROW":"PAUSE_FILLED"},
size:"L",onTap:function(){Lu3(I())},
tooltipText:function(){var k=I();return k===1||k===3?_.CX("PLAYER_LABEL_PAUSE"):_.CX("PLAYER_LABEL_PLAY")}}),_.C(_.WSF,{orientation:"horizontal_right"})),_.C("div",{class:"ytdShortsMiniplayerOverlayActionButtons"},_.C(q5e,{iconType:"YOUTUBE_SHORTS_ARROW_UP",
disabled:J,onTap:function(){DmR(t.value)},
tooltipText:_.CX("PREVIOUS_VIDEO_LABEL")}),_.C(q5e,{iconType:"YOUTUBE_SHORTS_ARROW_DOWN",disabled:b,onTap:function(){Wur(t.value)},
tooltipText:_.CX("NEXT_VIDEO_LABEL")}),_.w("web_shorts_pip_like_button")?_.C("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.C(Nc_,{buttonTooltipPosition:"left",data:m,overrides:{iconPosition:"icon-with-label",size:"M",style:"overlay-dark",type:"tonal"},textTransform:"none",useShortsIcon:!0,vertical:!0})):null),_.C("div",{class:"ytdShortsMiniplayerOverlayVideoMetaData"},_.C(_.n,{cond:function(){var k,H;return _.L((k=x())==null?void 0:(H=k.reelPlayerOverlayRenderer)==null?void 0:H.metapanel,
_.H_6)},
then:function(k){return _.C("div",{class:_.pq("ytdShortsMiniplayerOverlayInteractive")},_.C(_.ZrS,{data:k}))}})),_.C("div",{class:_.pq("ytdShortsMiniplayerOverlayPlayerControls","ytdShortsMiniplayerOverlayInteractive"),
hidden:function(){var k;return!((k=x())==null||!k.adsOverlay)||P()&&!AoG(P())}},_.C("div",{class:"ytdShortsMiniplayerOverlayPlayerControlsInner"},_.C(_.DRu,null)))),_.C(_.n,{cond:function(){var k=x(),H,T;
k=_.L(k==null?void 0:(H=k.adsOverlay)==null?void 0:(T=H.fulfillmentContent)==null?void 0:T.fulfilledLayout,Fx_);return _.L(k==null?void 0:k.renderingContent,JmC)},
then:function(k){return _.C("div",{class:"ytdShortsMiniplayerOverlayAdsOverlay"},_.C(K16,{data:k}))}}))},"Ye");var z3G=_.Q1(function(){var J=_.M(_.K2(new _.tk(NaN,NaN),void 0,"HSMFk")),c=J.next().value,m=J.next().value;J=_.M(_.K2(!1,void 0,"uaAxwf"));var b=J.next().value,x=J.next().value,P=_.M(_.K2(!1,void 0,"nVSwef"));J=P.next().value;var p=P.next().value,t=_.BG().resolve(_.Uo).miniplayerPropSignalMap[0],I=t.data,a=t.shortsData,k=t.nextButtonDisabled,H=t.shortsPreviewThumbnail,T=t.previousButtonDisabled,r=t.externalPlaylistData;P=t.toastData;var W=t.playabilityStatus,Y=t.isDisabled,Z=t.playerVe,d=t.closeVe;
t=_.fq(_.Ig);_.RN("yt-pip-window-resized",function(l){m(l)});
_.RN("yt-activate-pip-miniplayer",function(){return _.N(function(l){p(!0);_.tD(l)})});
var G=function(){var l;return!((l=r())==null||!l.contents)&&b()},e=function(){var l=c(),y=!!I(),pG=G();
l=l.clone();y&&(l.height-=76);pG&&(l.height-=285);return l},A=function(){x(!b())};
_.ui(function(){var l=Z(),y=_.Y3(11),pG=_.fl(11);y&&pG&&l&&(_.$2(y,pG,l),pG=d())&&(_.Gm(y,l,[pG]),_.vA(y,[pG]))},"HPkp0c");
return _.C("ytd-pip-container",{class:"ytdPipContainerHost"},_.C(_.n,{cond:J,then:function(){return _.C(_.EZR,{isDisabled:Y,playabilityStatus:W,size:e})}}),_.C(_.n,{cond:I,
then:function(){return _.C(_.$us,{data:I,expanded:b,onExpandClick:A,playlistData:r})}}),_.C(_.n,{cond:G,
then:function(){return _.C("div",{class:"ytdPipContainerPlaylistPanel"},_.C(_.MNu,{data:r,hideHeaderText:!0,withinMiniplayer:!0}))}}),_.C(_.n,{cond:t,
then:function(){return _.C(URu,{data:a,nextButtonDisabled:k,previousButtonDisabled:T,playabilityStatus:W,previewThumbnail:H})}}),_.C("div",{class:"ytdPipContainerToast"},_.C(_.vZo,{toastData:P})))},"Ze");var nD=function(J,c){var m=this;this.pipController=J;this.JSC$16466_clientRoot=c;this.active=!1;this.player=this.playerElement=this.miniplayerFetchRequest=null;this.miniplayerPropSignalMap=hqe();this.watchPipEnabled=_.w("web_watch_pip");this.shortsPipEnabled=_.w("web_shorts_pip");this.JSC$16466_watchWhileEnabled=_.w("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;_.Nh(_.Rc(),_.IAe,function(b){m.isSingleOptionSurveyActive=b});
this.JSC$16466_onPlayerPlayVideo=this.JSC$16466_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);_.Oe(_.vO.getInstance(),this.miniplayerServiceActionMap,this.JSC$16466_clientRoot);J.pictureInPictureSupported()&&_.zB("genericClientExperimentEvent",
{eventType:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED"})},AR_,RoS,Epo,oph,QF5,owQ;
nD.prototype.handleMediaSessionPipActivation=function(){var J=this,c;return _.N(function(m){_.Mh().mediaSessionPipActivation=!0;c=_.BG().resolve(_.oO);return c.isOnWatch()&&J.watchPipEnabled?(_.Mh().watchPipActivation=!0,_.S5p(J,c.data),m.jumpTo(0)):c.isOnShorts()&&J.shortsPipEnabled?(_.Mh().shortsPipActivation=!0,_.ho4(J),m.jumpTo(0)):J.isMiniplayerActive()&&J.watchPipEnabled&&!J.watchWhileMode?_.K(m,dRR(J),0):m.jumpTo(0)})};
var dRR=function(J){var c,m,b,x;return _.N(function(P){if(P.nextAddress==1)return c=!J.miniplayerToPipMode,m=J.playerElement,b=J.miniplayerData,x=J.watchResponse,_.K(P,J.deactivate(),2);if(P.nextAddress!=3)return c?(_.Mh().mediaSessionPipActivation=!0,_.Mh().watchPipActivation=!0):_.Mh().miniplayerButtonActivation=!0,_.K(P,J.activate(m,b,x),3);J.miniplayerToPipMode=c;_.tD(P)})};
nD.prototype.onDownloadedVideoDeleted=function(J){var c,m=_.L((c=this.miniplayerData)==null?void 0:c.watchEndpoint,_.Rz),b,x;m&&((b=this.watchResponse)==null?void 0:(x=b.playerResponse)==null?void 0:x.offlineState)!==void 0&&(c=m.videoId)&&J&&c===J&&this.close()};
nD.prototype.onShowMiniplayerCommand=function(J){var c=this,m,b,x,P,p,t,I,a,k,H,T,r,W;return _.N(function(Y){switch(Y.nextAddress){case 1:return m=_.L(J,PA_),x=(b=m)==null?void 0:b.miniplayerCommand,P=_.L(x,_.Rz),x&&P&&!c.active?_.K(Y,_.H$.getInstance(),2):Y.return();case 2:return p=Y.yieldResult,_.K(Y,(t=p)==null?void 0:t.get("yt-miniplayer-shown-video-id"),3);case 3:I=Y.yieldResult;a=P.videoId;if(!a||I===a)return Y.return();k=_.BG().resolve(_.oO);if(k.isOnWatch())return _.qz(Error("Bj")),Y.return();
H={channelItem:{externalId:btoa(a)}};c.readyToResumeVe=_.rs(121253,void 0,void 0,H);_.Mh().showMiniplayerCommandActivation=!0;return _.K(Y,_.Q8C(c,x,!0),4);case 4:return c.active?(_.Tu(c,{readyToResumeVe:c.readyToResumeVe,continueWatching:!0,premiumBranding:!((T=m)==null||!T.showPremiumBranding)}),_.w("ytd_miniplayer_to_wiz")&&_.Tu(c,{isReadyToResume:!0}),c.isReadyToResume=!0):_.Tu(c,{continueWatching:!0,premiumBranding:!((r=m)==null||!r.showPremiumBranding)}),_.K(Y,(W=p)==null?void 0:W.set("yt-miniplayer-shown-video-id",
P.videoId),5);case 5:c.readyToResumeVe=void 0,_.tD(Y)}})};
nD.prototype.init=function(J){this.miniplayerEl?_.qz(new _.w3("MiniplayerService already initialized.")):this.miniplayerEl=J};
nD.prototype.isInitialized=function(){var J=!!this.miniplayerEl;J||_.qz(new _.w3("MiniplayerService used before initialized."));return J};
_.S5p=function(J,c){if(J.isInitialized()){var m=_.GNe(c.response,c.playerResponse),b=_.BG().resolve(_.oO).getPlayerFromWatch();_.Mh().currentEndpoint=m.watchEndpoint||null;J.activate(b,m,c)}};
_.ho4=function(J){if(J.isInitialized()){var c=_.BG().resolve(_.oO).getPlayerFromShorts();J.activate(c)}};
AR_=function(J,c){var m;(m=!J.isInitialized())||(m=_.BG().resolve(_.oO).isOnWatch()&&J.watchPipMode,m=!(J.isMiniplayerActive()&&(_.Mh().userActivation||_.Mh().lockupActivation||m)));if(m)return!1;$Rf(J,c)?_.kX(J):owQ(J,c);return J.watchPipMode?!_.BG().resolve(_.oO).isOnWatch():!0};
nD.prototype.isMiniplayerActive=function(){return this.active};
var $Rf=function(J,c){var m;c=(m=_.L(c,_.Rz))==null?void 0:m.videoId;var b,x;J=(x=_.L((b=J.miniplayerData)==null?void 0:b.watchEndpoint,_.Rz))==null?void 0:x.videoId;return c!=null&&c===J};
nD.prototype.collapse=function(){this.isInitialized()&&(this.backgroundPageData?_.cA(this.miniplayerEl,"yt-navigate-cache",{url:this.backgroundPageData.url,endpoint:this.backgroundPageData.endpoint,data:this.backgroundPageData}):_.m9(this.miniplayerEl,"yt-navigate-home-action"))};
_.Q8C=function(J,c,m,b){m=m===void 0?!1:m;var x,P,p;return _.N(function(t){switch(t.nextAddress){case 1:if(J.active){t.jumpTo(2);break}x=_.BG().resolve(_.oO);if(p=(P=J.playerElement)!=null?P:x.getPlayerFromWatch()){t.jumpTo(3);break}return _.K(t,_.BG().resolve(_.BP),4);case 4:p=x.getPlayerFromWatch();case 3:if(!p){_.qz(Error("Dj"));t.jumpTo(2);break}return _.K(t,J.activate(p,b),2);case 2:return J.active?_.K(t,owQ(J,c,m),0):t.return()}})};
nD.prototype.activate=function(J,c,m){var b=this,x,P,p,t,I,a,k,H,T;return _.N(function(r){switch(r.nextAddress){case 1:if(!b.isInitialized())return r.return();if(!J)return _.qz(Error("Dj")),r.return();if(_.CH$()||b.isMiniplayerActive())var W=!0;else W=_.Mh().watchPipActivation||_.Mh().watchWhileActivation,_.BG().resolve(_.oO).isOnWatch()&&!W?(_.qz(new _.w3("miniplayer activated on watch page")),W=!0):W=_.Mh().watchWhileActivation?b.userDeactivatedWatchWhile||!!document.pictureInPictureElement||L4r():
!1;if(W)return KXB(),r.return();x=_.Mh().mediaSessionPipActivation;P=_.Mh().shortsPipActivation;p=_.Mh().watchPipActivation;I=(t=_.Mh().watchWhileActivation)||p;a=p||P;if(!b.pictureInPictureEnabled()||!a){r.jumpTo(2);break}return _.K(r,G4S(b,x),3);case 3:if(!r.yieldResult)return _.qz(Error("Cj")),KXB(),r.return();case 2:return b.setActive(!0),b.watchResponse=m,b.playerElement=J,b.updateMiniplayerData(c),_.K(r,Epo(b,J),4);case 4:if(!b.active)return _.qz(new _.w3("miniplayer deactivated during activation")),
b.removePlayerListeners(),r.return();W=_.BG().resolve(_.zn);W.addEventListener("yt-navigate",_.ME(b,b.onPlaylistNavigate));W.addEventListener("yt-playlist-data-updated",_.ME(b,b.JSC$16466_onPlaylistDataUpdated));b.JSC$16466_onPlaylistDataUpdated();KXB();b.JSC$16466_watchWhileEnabled&&_.vpR(b,t);b.pictureInPictureEnabled()&&b.shortsPipEnabled&&(b.shortsPipMode=P,_.Rc().dispatch(gqB(b.shortsPipMode)));b.pictureInPictureEnabled()&&b.watchPipEnabled&&(b.watchPipMode=p,_.W42(b.handleMediaSessionPipActivation));
b.player&&(k=b.player.getPlayerState(),H=k===1,_.Rc().dispatch(pXL(k)),_.bJ(b.miniplayerEl,"yt-miniplayer-play-state-changed",[H]),_.Mh().isVideoPlaying=H);_.bJ(b.miniplayerEl,"yt-miniplayer-endpoint-changed");Or1(b);_.AfS(b);return b.shortsPipMode||b.watchPipMode?_.K(r,_.x2(b.miniplayerEl,"yt-activate-pip-miniplayer"),6):_.w("ytd_miniplayer_to_wiz")?_.K(r,_.x2(b.miniplayerEl,"yt-activate-miniplayer",[I]),6):_.K(r,_.x2(b.miniplayerEl,"yt-activate-miniplayer-action",[J,I]),6);case 6:if(b.watchResponse&&
!_.w("miniplayer_copy_screen_on_activation_killswitch")){W=b.getScreenLayer();var Y=_.Y3(0),Z=ssR(0);Y&&Z&&(_.qa(Y,Z,W),W===0&&wzT(void 0,0))}RoS(b);oph(b,!0);(T=b.getPlayerElement())==null||T.focusOnPlayer();_.tD(r)}})};
nD.prototype.updateMiniplayerData=function(J){this.miniplayerData=J;_.Tu(this,{data:J})};
_.AfS=function(J){var c,m,b=((c=J.miniplayerData)==null?void 0:(m=c.miniplayerRenderer)==null?void 0:m.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY";c=J.watchWhileMode||J.watchPipMode?b&&!_.BG().resolve(_.oO).isOnWatch():b;_.Tu(J,{isDisabled:c});var x,P;m=_.L((x=J.miniplayerData)==null?void 0:(P=x.miniplayerRenderer)==null?void 0:P.minimizedEndpoint,_.T3);c&&m&&_.BG().resolve(_.wW).openSheet({openPopupActionCommand:{openPopupAction:m}},J.miniplayerEl)};
RoS=function(J){if(J.watchResponse&&!QF5(J)){var c,m=(c=J.watchResponse.playerResponse)==null?void 0:c.trackingParams;m&&(_.Tu(J,{expandVe:_.rs(35989),closeVe:_.rs(34699),readyToResumeCloseVe:_.rs(131070),repositionVe:_.rs(226204),resizeVe:_.rs(226205)}),_.Tu(J,{playerVe:_.n7(m)}))}};
Epo=function(J,c){return _.N(function(m){if(m.nextAddress==1)return c.preparePlayer(),_.K(m,c.getPlayerPromise(),2);J.player=m.yieldResult;J.player&&(J.player.addEventListener("onPlayVideo",J.JSC$16466_onPlayerPlayVideo),J.player.addEventListener("onCloseMiniplayer",J.onPlayerCloseMiniplayer),J.player.addEventListener("onExpandMiniplayer",J.onPlayerExpandMiniplayer),J.player.addEventListener("onStateChange",J.onPlayerStateChange));_.tD(m)})};
_.V=nD.prototype;_.V.JSC$16466_onPlayerPlayVideo=function(J){var c=J.sessionData&&"autonav"in J.sessionData,m;J.sessionData&&J.sessionData.itct&&(m=J.sessionData.itct);var b=J.watchEndpoint;c=b&&c?_.XJq(b,m):_.lJ(J.videoId,J.listId||void 0,m);J.sessionData&&_.jK(_.L(c.commandMetadata,_.lk).url,J.sessionData);owQ(this,c)};
_.V.onPlayerExpandMiniplayer=function(){_.kX(this)};
_.V.onPlayerCloseMiniplayer=function(){this.watchWhileMode&&(this.userDeactivatedWatchWhile=!0);this.close(this.watchWhileMode)};
_.V.onPlayerStateChange=function(){if(this.player){var J=this.player.getPlayerState(),c=J===1;_.Rc().dispatch(pXL(J));_.Rc().dispatch(_.I5Z(J));_.bJ(this.miniplayerEl,"yt-miniplayer-play-state-changed",[c]);_.Mh().isVideoPlaying=c;if(J===0){c=!_.AZ.getInstance().isAutoplaySetExplicitly();var m,b,x,P,p,t,I=(m=this.watchResponse.response)==null?void 0:(b=m.contents)==null?void 0:(x=b.twoColumnWatchNextResults)==null?void 0:(P=x.autoplay)==null?void 0:(p=P.autoplay)==null?void 0:(t=p.autoplayExplicitChoiceDialogRenderer)==
null?void 0:t.confirmDialogRenderer;c&&I&&this.player.setAutonavState(1)}J===0&&this.watchWhileMode&&this.deactivate()}};
_.V.onPlaylistNavigate=function(J,c){var m=this,b,x,P,p,t,I,a;return _.N(function(k){if(k.nextAddress==1){if(!_.L(c.endpoint,_.Rz))return k.return();_.Mh().currentEndpoint=c.endpoint;_.bJ(m.miniplayerEl,"yt-miniplayer-endpoint-changed");if(_.BG().resolve(_.oO).isOnWatch()&&(m.watchWhileMode||m.watchPipMode))return k.return();J.stopPropagation();(P=(x=_.L((b=c.endpoint)==null?void 0:b.commandMetadata,_.lk))==null?void 0:x.url)&&c.tempData&&!_.Lw.isEmpty(c.tempData)&&_.jK(P,c.tempData);p={clientParams:{miniplayer:!0,
autoSaveToQueue:!1}};t=new CGz(function(){return m.getPlayerElement()},p,{layer:m.getScreenLayer()});
I=function(H){t.processChunk({endpoint:c.endpoint,data:H})};
eoe(m);m.miniplayerFetchRequest=jFo(m,c.endpoint,I);_.xL(k,2);return _.K(k,m.miniplayerFetchRequest,4)}if(k.nextAddress!=2)return a=k.yieldResult,FSp(m,a),_.EO(k,0);_.NM(k);_.tD(k)})};
_.V.JSC$16466_onPlaylistDataUpdated=function(){var J=_.BG().resolve(_.zn).getPlaylistData();this.hasPlaylistData=!!J;_.Tu(this,{externalPlaylistData:J||{}})};
_.V.close=function(J){if(this.isInitialized())if(J){if(!((this.watchWhileMode||this.watchPipMode)&&_.BG().resolve(_.oO).isOnWatch()||this.shortsPipMode)){var c;(c=this.getPlayerElement())==null||c.stop()}this.deactivate()}else _.Zl().closeMiniplayer(this.miniplayerEl)};
_.V.deactivate=function(J){var c=this,m,b,x,P;return _.N(function(p){if(p.nextAddress==1){if(!c.isInitialized()||!c.active)return p.return();c.setActive(!1);eoe(c);(m=!!J&&$Rf(c,J))&&c.isSingleOptionSurveyActive&&_.m9(c.miniplayerEl,"yt-show-watch-page-survey",[c.isSingleOptionSurveyActive]);return _.K(p,leS(c),2)}if(p.nextAddress!=3){oph(c,!1);c.isReadyToResume=!1;c.watchResponse=void 0;c.updateMiniplayerData(void 0);c.shortsPipMode&&(c.shortsPipMode=!1,_.Rc().dispatch(gqB(c.shortsPipMode)),ih2(c.pipController),
(b=c.player)==null||b.setInternalSize(NaN,NaN));c.watchPipMode&&(c.watchPipMode=!1,ih2(c.pipController));(x=c.watchWhileMode)&&_.vpR(c,!1);c.removePlayerListeners();var t=_.BG().resolve(_.zn);t.removeEventListener("yt-navigate",_.ME(c,c.onPlaylistNavigate));t.removeEventListener("yt-playlist-data-updated",_.ME(c,c.JSC$16466_onPlaylistDataUpdated));_.Mh().currentEndpoint=null;_.bJ(c.miniplayerEl,"yt-miniplayer-endpoint-changed");c.playerElement=null;KXB();return c.shortsPipMode||c.watchPipMode?p.jumpTo(3):
_.K(p,_.x2(c.miniplayerEl,_.w("ytd_miniplayer_to_wiz")?"yt-deactivate-miniplayer":"yt-deactivate-miniplayer-action",[m,x]),3)}(P=c.player)==null||P.setInternalSize(NaN,NaN);c.player=null;_.tD(p)})};
var leS=function(J){var c;return _.N(function(m){c=_.BG().resolve(_.oO);return J.shortsPipMode?_.K(m,c.movePlayerToShorts(J.playerElement),0):_.K(m,c.movePlayerToWatch(J.playerElement),0)})};
nD.prototype.removePlayerListeners=function(){this.player&&(this.player.removeEventListener("onPlayVideo",this.JSC$16466_onPlayerPlayVideo),this.player.removeEventListener("onCloseMiniplayer",this.onPlayerCloseMiniplayer),this.player.removeEventListener("onExpandMiniplayer",this.onPlayerExpandMiniplayer),this.player.removeEventListener("onStateChange",this.onPlayerStateChange))};
nD.prototype.setActive=function(J){this.active=J;this.isSingleOptionSurveyActive?_.m9(this.miniplayerEl,"yt-close-popup-action",["ytd-single-option-survey-renderer"]):_.m9(this.miniplayerEl,"yt-close-popup-action",["ytd-survey-follow-up-renderer"]);_.Rc().dispatch(_.J7({type:"SET_MINIPLAYER_IS_ACTIVE",payload:this.active}))};
_.vpR=function(J,c){J.watchWhileMode=c;_.Tu(J,{watchWhile:c})};
oph=function(J,c){if(!QF5(J))if(J.shortsPipMode||J.watchPipMode){var m;(m=J.player)==null||m.setDocumentPictureInPicture(c)}else{var b;(b=J.player)==null||b.setMinimized(c)}};
QF5=function(J){return J.watchWhileMode&&_.w("kevlar_watch_while_counterfactual")};
_.kX=function(J){var c;return _.N(function(m){switch(m.nextAddress){case 1:if(!J.isInitialized())return m.return();_.xL(m,2);return _.K(m,J.miniplayerFetchRequest,4);case 4:_.EO(m,3);break;case 2:_.NM(m);case 3:J.watchResponse&&J.miniplayerData&&J.miniplayerData.watchEndpoint?(c={url:J.watchResponse.url,endpoint:J.miniplayerData.watchEndpoint,data:J.watchResponse,miniplayer:!0},_.cA(J.miniplayerEl,"yt-navigate-cache",c)):J.miniplayerData&&J.miniplayerData.watchEndpoint&&_.cA(J.miniplayerEl,"yt-navigate",
{endpoint:J.miniplayerData.watchEndpoint}),_.tD(m)}})};
owQ=function(J,c,m){var b,x,P,p;return _.N(function(t){if(t.nextAddress==1){if($Rf(J,c))return t.return();_.Mh().currentEndpoint=c;_.bJ(J.miniplayerEl,"yt-miniplayer-endpoint-changed");_.bJ(J.miniplayerEl,"yt-miniplayer-play-state-changed",[!1]);_.Mh().isVideoPlaying=!1;b={clientParams:{miniplayer:!0,autoSaveToQueue:!m}};x=new CGz(function(){return J.getPlayerElement()},b,{layer:J.getScreenLayer(),
parentLayer:0},void 0,J.readyToResumeVe);P=function(I){var a,k,H=Object.assign({},(a=I.playerResponse)==null?void 0:(k=a.playerConfig)==null?void 0:k.playbackStartConfig,{startPaused:!0}),T;m&&((T=I.playerResponse)==null?0:T.playerConfig)&&(I.playerResponse.playerConfig.playbackStartConfig=H);x.processChunk({endpoint:c,data:I})};
eoe(J);J.miniplayerFetchRequest=jFo(J,c,P);_.xL(t,2);return _.K(t,J.miniplayerFetchRequest,4)}if(t.nextAddress!=2)return p=t.yieldResult,FSp(J,p),_.EO(t,0);_.NM(t);_.tD(t)})};
nD.prototype.getScreenLayer=function(){return this.shortsPipMode||this.watchPipMode?11:3};
var eoe=function(J){J.miniplayerFetchRequest&&(J.miniplayerFetchRequest.cancel&&J.miniplayerFetchRequest.cancel("Active request obsolete"),J.miniplayerFetchRequest=null)},jFo=function(J,c,m){var b=_.IT.instance,x,P=(x=_.L(c.commandMetadata,_.lk))==null?void 0:x.url,p;
x=!P||_.w("disable_miniplayer_tempdata")?{}:(p=N2o(P))!=null?p:{};return dx(b,c,x,window.location.href,"watch",function(t,I){m(I)},function(t){return t!==J.miniplayerFetchRequest})},FSp=function(J,c){var m;
_.N(function(b){if(!c)return b.return();J.watchResponse=c;RoS(J);Or1(J);m=_.GNe(c.response,c.playerResponse);if(J.isMiniplayerActive()){c.response&&(J.playerElement.watchNextData=c.response);var x=_.Lw.getValueByKeys.apply(_.Lw,[c].concat(_.L6(LK6)));_.Lw.getValueByKeys.apply(_.Lw,[c].concat(_.L6(f5C)))&&x&&_.BG().resolve(_.zn).setAutoplayRenderer(x);if(x)if(_.w("kevlar_is_pupi_enabled")){var P,p,t,I,a,k=((P=c.response)==null?0:(p=P.playerOverlays)==null?0:(t=p.playerOverlayRenderer)==null?0:(I=t.autonavToggle)==
null?0:(a=I.autoplaySwitchButtonRenderer)==null?0:a.enabled)?2:1;_.AZ.getInstance().setState(k,!1,!1)}else P=sEr()?2:1,(k=J.player)==null||k.setAutonavState(P);J.updateMiniplayerData(m);_.AfS(J)}_.tD(b)})},Or1=function(J){var c,m,b=(c=J.watchResponse)==null?void 0:(m=c.playerResponse)==null?void 0:m.playabilityStatus,x;
c=b==null?void 0:(x=b.miniplayer)==null?void 0:x.miniplayerRenderer;(c==null?void 0:c.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"&&c.minimizedEndpoint&&_.Vq(J.miniplayerEl,[c.minimizedEndpoint]);_.Tu(J,{miniplayerRenderer:c,playabilityStatus:b})};
nD.prototype.openToast=function(J,c){_.Tu(this,{toastData:{data:J,label:c}})};
_.Tu=function(J,c){var m=J.miniplayerEl,b;for(b in c)m[b]=c[b];(0,J.miniplayerPropSignalMap[1])(c)};
nD.prototype.getPlayerElement=function(){if(!this.isInitialized())return null;var J;return this.playerElement?this.playerElement:(J=_.Bj(this.miniplayerEl).querySelector("#player-container"))==null?void 0:J.firstElementChild};
nD.prototype.pictureInPictureSupported=function(){return this.pipController.pictureInPictureSupported()};
var G4S=function(J,c){c=c===void 0?!1:c;var m,b,x,P,p,t,I;return _.N(function(a){if(a.nextAddress==1){m=navigator.userActivation.isActive||c;if(!m||!J.pictureInPictureSupported())return a.return(!1);b=yfr(J);x=b.width;P=b.height;return _.K(a,J.pipController.openWindow({width:x,height:P}),2)}p=a.yieldResult;t=J.pipController.getWindow();if(!t||!p)return a.return(!1);t.document.body.style.overflow="hidden";I=ua2(t);nn_(J.pipController,function(){BRR(J);I()});
return a.return(!0)})},yfr=function(J){var c=_.Mh().shortsPipActivation,m,b;
J=c?.5625:(b=(m=J.player)==null?void 0:m.getVideoAspectRatio())!=null?b:16/9;m=Math.min(window.innerWidth,window.innerHeight)/2;c=c?0:76;return J>1?new _.tk(m,c+m/J):new _.tk(m*J,c+m)},BRR=function(J){var c;
_.N(function(m){c=_.BG().resolve(_.oO);return c.isOnWatch()&&J.watchPipMode||c.isOnShorts()&&J.shortsPipMode?_.K(m,J.deactivate(),0):J.miniplayerToPipMode?_.K(m,dRR(J),0):J.watchPipMode?_.K(m,_.kX(J),0):m.jumpTo(0)})};
nD.prototype.pictureInPictureEnabled=function(){return this.pictureInPictureSupported()&&(this.watchPipEnabled||this.shortsPipEnabled)};
_.eE.Object.defineProperties(nD.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
nD[RE]=[TN2,EIa];var gp5="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(" "),
Jee="add_circle alert_bubble audio bag bell clapperboard clock copy creator_studio_red_logo download download fashion flag gaming gear help_circle history home lightbulb live menu mic news offline_no_content overflow_horizontal overflow_vertical play_square_stack playlist podcast search subscriptions thumb_up trash_can trending trophy unplugged_logo video video_camera_add x youtube_kids_round youtube_music youtube_round youtube_shorts yt-logo-updated".split(" "),ce4="arrow_down arrow_up overflow_horizontal pause play-arrow shorts-comment shorts-dislike shorts-like shorts-share volume-off volume-up waveform".split(" "),
m0o="arrow_down arrow_up overflow_horizontal pause play share text_bubble thumb_down thumb_up volume_max volume_mute waveform".split(" ");var bUh=null;var x0F={},V9f=(x0F.initialized={priority:10,callback:function(J){var c=_.BG();c.addProvider({provide:rDB,useClass:HGr});c.addProvider({provide:_.kDR,useFactory:function(){return new slZ}});
c.addProvider({provide:Hc,useValue:_.Ub("INNERTUBE_CONTEXT_CLIENT_NAME","WEB")});c.addProvider({provide:YJz,useValue:5184E6});c.addProvider({provide:oja,useValue:_.LZ()});c.addProvider({provide:c9_,useClass:l0$});c.addProvider({provide:qI,useClass:qI});c.addProvider({provide:_.BP,useFactory:function(){return cHQ.promise}});
c.addProvider({provide:_.bYL,useFactory:function(){return _.mGB.promise}});
c.addProvider({provide:uEm,useValue:function(){var t;return((t=_.ep())==null?void 0:t.getPlayer())||null}});
var m={};c.addProvider((m.provide=_.GQ,m.useFactory=function(t,I){return function(){return pfR(t,I)}},m[RE]=[Hc,
YJz],m));m={};c.addProvider((m.provide=_.mB,m.useClass=HPz,m[RE]=[Hc,YJz],m));m={};c.addProvider((m.provide=_.OnG,m.useClass=wZ2,m[RE]=[_.mB],m));c.addProvider({provide:Mg,useFactory:_.Rc});c.addProvider({provide:PH,useFactory:_.Rc});c.addProvider({provide:xO8,useFactory:_.Rc});c.addProvider({provide:Gr_,useFactory:_.Rc});c.addProvider({provide:_.f9,useFactory:_.Rc});c.addProvider({provide:xs,useValue:_.Ny});c.addProvider({provide:t2s,useClass:W9r});c.addProvider({provide:p5a,useClass:M0_});c.addProvider({provide:DV,
useClass:DV});c.addProvider({provide:Vw,useClass:Vw});c.addProvider({provide:Pt,useClass:Pt});c.addProvider({provide:p9,useClass:p9});c.addProvider({provide:ZV,useClass:ZV});c.addProvider({provide:KJ,useClass:KJ});c.addProvider({provide:BJ,useClass:BJ});c.addProvider({provide:Vxz,useValue:Yah});c.addProvider({provide:_.no,useFactory:_.C7});c.addProvider({provide:Qj,useFactory:_.HA});m={};c.addProvider((m.provide=DYT,m.useFactory=function(t){return function(I){var a=a===void 0?{}:a;var k,H,T=(H=_.L((k=
I.endpoint)==null?void 0:k.commandMetadata,_.lk))==null?void 0:H.rootVe;if(T){var r,W;if(k=I.previousCsn||((W=_.L((r=I.endpoint)==null?void 0:r.commandMetadata,hXa))==null?void 0:W.parentCsn)){var Y=Y===void 0?{}:Y;if(k!==_.Y3(Y.layer)||T!==ssR(Y.layer))u4D(k,Y.cttAuthInfo,Y.layer||0),wzT(k,Y.layer||0),r=Y.layer||0,_.q3(riD(r===void 0?0:r),T);a.parentCsn=k}I.endpoint&&k?BFQ(t,I.endpoint,a):_.ge(t,T,void 0,a);var Z;((Z=I.response)==null?0:Z.trackingParams)&&t.graftServerVe(I.response.trackingParams);
var d;((d=I.playerResponse)==null?0:d.trackingParams)&&t.graftServerVe(I.playerResponse.trackingParams);var G;((G=I.reelWatchSequenceResponse)==null?0:G.trackingParams)&&t.graftServerVe(I.reelWatchSequenceResponse.trackingParams)}}},m[RE]=[_.no],m));
m={};c.addProvider((m.provide=P7a,m.useClass=VS$,m[RE]=[xs,_.f9],m));m={};c.addProvider((m.provide=l9,m.useClass=l9,m[RE]=[_.BP,_.f9],m));m={};c.addProvider((m.provide=QY,m.useClass=QY,m[RE]=[PH,_.gu],m));c.addProvider({provide:_.KiQ,useClass:r9j});m={};c.addProvider((m.provide=_.Tr,m.useClass=k0Q,m[RE]=[_.KiQ],m));c.addProvider({provide:_.wW,useClass:gH});c.addProvider({provide:EjB,useClass:gnB});c.addProvider({provide:_.rW,useClass:yY});m={};c.addProvider((m.provide=_.OR,m.useClass=wDu,m[RE]=[_.OR],
m));c.addProvider({provide:_.Bp,useClass:cBu});c.addProvider({provide:KA,useClass:KA});c.addProvider({provide:nA,useClass:nA});c.addProvider({provide:zS,useClass:Bx});m={};c.addProvider((m.provide=YQ,m.useClass=YQ,m[RE]=[_.wW,zS],m));_.w("web_enable_feedback_endpoint_resolver")&&(m={},c.addProvider((m.provide=pA,m.useClass=pA,m[RE]=[Mg,Pc],m)),c.addProvider({provide:Pc,useClass:sI_}));_.w("web_enable_feedback_endpoint_resolver_batch_2")&&(m={},c.addProvider((m.provide=tY,m.useClass=tY,m[RE]=[Mg],
m)),m={},c.addProvider((m.provide=Ng,m.useClass=Ng,m[RE]=[Pc],m)));m={};c.addProvider((m.provide=ux,m.useClass=ux,m[RE]=[_.rW,zS],m));m={};c.addProvider((m.provide=sR,m.useClass=sR,m[RE]=[_.rW],m));m={};c.addProvider((m.provide=fA,m.useClass=fA,m[RE]=[_.zh,_.Tr],m));m={};c.addProvider((m.provide=Wc,m.useClass=Wc,m[RE]=[_.zh,_.no],m));c.addProvider({provide:Bc,useClass:Bc});m={};c.addProvider((m.provide=oL,m.useClass=oL,m[RE]=[Mg],m));c.addProvider({provide:Im,useClass:Im});m={};c.addProvider((m.provide=
Ca,m.useClass=Ca,m[RE]=[Mg],m));m={};c.addProvider((m.provide=am,m.useClass=am,m[RE]=[_.zh,Mg],m));m={};c.addProvider((m.provide=kI,m.useClass=kI,m[RE]=[Mg],m));m={};c.addProvider((m.provide=HJ,m.useClass=HJ,m[RE]=[Mg],m));m={};c.addProvider((m.provide=LA,m.useClass=LA,m[RE]=[_.Tr],m));m={};c.addProvider((m.provide=bX,m.useClass=bX,m[RE]=[_.no],m));m={};c.addProvider((m.provide=Nv,m.useClass=Nv,m[RE]=[lx],m));m={};c.addProvider((m.provide=tR,m.useClass=tR,m[RE]=[lx],m));c.addProvider({provide:PJ,
useClass:PJ});c.addProvider({provide:Mv,useClass:Mv});c.addProvider({provide:m0,useClass:m0});m={};c.addProvider((m.provide=XV,m.useClass=XV,m[RE]=[_.Tr,_.gu],m));c.addProvider({provide:kQ,useClass:kQ});m={};c.addProvider((m.provide=DJ,m.useClass=DJ,m[RE]=[_.zh,_.Tr],m));c.addProvider({provide:TS,useClass:TS});m={};c.addProvider((m.provide=AY,m.useClass=AY,m[RE]=[Mg,_.zh,_.OR],m));m={};c.addProvider((m.provide=ER,m.useClass=ER,m[RE]=[_.zh,_.gu],m));c.addProvider({provide:udB,useValue:skm});c.addProvider({provide:qyQ,
useValue:J4T});c.addProvider({provide:vc,useClass:vc});m={};c.addProvider((m.provide=GS,m.useClass=GS,m[RE]=[Mg],m));m={};c.addProvider((m.provide=RL,m.useClass=RL,m[RE]=[_.Bp,_.gu],m));m={};c.addProvider((m.provide=IL,m.useClass=IL,m[RE]=[_.gu],m));c.addProvider({provide:Vj,useFactory:function(){return new Vj(_.Rc())}});
c.addProvider({provide:QYu,useFactory:_.Lv.getInstance});m={};c.addProvider((m.provide=ix,m.useClass=ix,m[RE]=[Hc,QYu,_.gu],m));c.addProvider({provide:CA,useClass:CA});c.addProvider({provide:JY,useClass:JY});c.addProvider({provide:m2,useClass:m2});c.addProvider({provide:_.cc,useClass:_.cc});c.addProvider({provide:Td,useClass:Td});m={};c.addProvider((m.provide=hY,m.useClass=hY,m[RE]=[PH],m));m={};c.addProvider((m.provide=dA,m.useClass=dA,m[RE]=[_.gu],m));_.w("web_enable_prefetching_videos_on_home")&&
(c.addProvider({provide:od,useClass:od}),c.addProvider({provide:NW,useClass:NW}));m={};c.addProvider((m.provide=na,m.useClass=na,m[RE]=[_.gu],m));c.addProvider({provide:bx,useClass:bx});m={};c.addProvider((m.provide=gA,m.useClass=gA,m[RE]=[_.zh,_.gu],m));m={};c.addProvider((m.provide=xQ,m.useClass=xQ,m[RE]=[_.gu],m));c.addProvider({provide:t_,useClass:t_});c.addProvider({provide:UR,useClass:UR});m={};c.addProvider((m.provide=qg,m.useClass=qg,m[RE]=[PH,_.gu],m));m={};c.addProvider((m.provide=sY,m.useClass=
sY,m[RE]=[PH,_.gu,_.zh],m));m={};c.addProvider((m.provide=La,m.useClass=La,m[RE]=[_.gu],m));m={};c.addProvider((m.provide=rn,m.useClass=rn,m[RE]=[_.gu,_.zh],m));m={};c.addProvider((m.provide=$Q,m.useClass=$Q,m[RE]=[_.BP],m));m={};c.addProvider((m.provide=Se,m.useClass=Se,m[RE]=[_.BP],m));c.addProvider({provide:FV,useClass:FV});c.addProvider({provide:yj,useClass:yj});c.addProvider({provide:Ka,useClass:Ka});c.addProvider({provide:JR,useClass:JR});c.addProvider({provide:je,useClass:je});c.addProvider({provide:wA,
useClass:wA});c.addProvider({provide:ee,useClass:ee});_.w("kevlar_enable_mss_lazy_load")&&c.addProvider({provide:_.hm,useClass:l3p});c.addProvider({provide:_.NH,useClass:cn});c.addProvider({provide:OP,useFactory:function(){return _.vO.getInstance()}});
c.addProvider({provide:mOQ,useFactory:s4G});c.addProvider({provide:lx,useFactory:function(){return _.H$.getInstance()}});
c.addProvider({provide:jv_,useValue:{singleEntityType:"mainVideoEntity",listEntityType:"mainPlaylistEntity"}});m={};c.addProvider((m.provide=_.ec,m.useClass=_.ec,m[RE]=[_.BP,_.gu,_.no,mOQ,lx,OP,jv_,xs],m));c.addProvider({provide:_.M6,useClass:L08});c.addProvider({provide:_.Zm$,useClass:X5$});m={};c.addProvider((m.provide=rA,m.useClass=rA,m[RE]=[_.Zm$],m));m={};c.addProvider((m.provide=_.jc,m.useFactory=function(t){return t.upliftCompletionResolver.promise},m[RE]=[P7a],m));
m=_.Ss("IS_SHELL_LOAD")?"aa":"eocs";var b=_.Ss("IS_SHELL_LOAD")?3:2;_.f$().parkOrScheduleJob(function(){pDQ()},b,m);
_.f$().parkOrScheduleJob(function(){_.BG().resolve(l9).start()},2,"eocs");
_.f$().parkOrScheduleJob(function(){bh_()},2,"eocs");
_.f$().parkOrScheduleJob(function(){_.BG().resolve(QY).start()},2,"eocs");
_.w("kevlar_debug_data_app_registration_ks")||gIt();c.addProvider({provide:_.Lq,useValue:new C5L(J.root)});c.addProvider({provide:GB,useValue:new RZe});c.addProvider({provide:_.rQ6,useValue:new Tc8(J.root)});c.addProvider({provide:_.Wj,useValue:new w1j});c.addProvider({provide:_.C9,useClass:I7});c.addProvider({provide:TN2,useClass:J_});_.w("kevlar_network_sli_killswitch")||c.addProvider({provide:rqu,useValue:$9Q});c.addProvider({provide:I3R,useFactory:xYD});_.w("web_bind_fetch")&&(m={},c.addProvider((m.provide=
Koh,m.useFactory=VCt,m[RE]=[_.y6(I3R)],m)));_.w("web_bind_parse")&&(m={},c.addProvider((m.provide=CQF,m.useFactory=P8m,m[RE]=[_.y6(I3R)],m)));_.w("web_bind_window_request")&&(m={},c.addProvider((m.provide=a35,m.useFactory=MCD,m[RE]=[_.y6(I3R)],m)));m={};c.addProvider((m.provide=F3z,m.useFactory=ruf,m[RE]=[_.jc,Mg,_.GQ],m));m={};c.addProvider((m.provide=jIQ,m.useClass=Ds,m[RE]=[F3z],m));c.addProvider({provide:txQ,useClass:Plz});c.addProvider({provide:RKa,useClass:QIj});m=[].concat(_.L6(GH));_.w("web_continuation_response_processing")&&
m.push(_.XG);m.push(p3_);_.w("enable_share_panel_navigation_logging_fix_on_web")&&m.push(_.Xsu);c.addProvider({provide:kd2,useValue:m});c.addProvider({provide:Fuu,useClass:ABz});c.addProvider({provide:Wos,useClass:sRh});m={};c.addProvider((m.provide=omu,m.useClass=ZRC,m[RE]=[PH],m));_.ft.addLowPriorityJob(function(){ezm()});
m={};c.addProvider((m.provide=OuL,m.useFactory=function(t){return function(I){var a,k=(a=_.L(I.commandMetadata,_.lk))==null?void 0:a.url;if(!k)throw new _.w3("No URL for PBJ Command",I);k=Le2(k,{pbj:"1"});a=ON2(k,{})||{};a=Object.assign({},a,{"Content-Type":"application/x-www-form-urlencoded","x-youtube-csoc":"1","X-YouTube-STS":_.Ub("STS").toString()});I=_.Ir({command:JSON.stringify(I),session_token:_.Ub("XSRF_TOKEN")});return t.fetch(k,{method:"POST",headers:a,body:I})}},m[RE]=[Wos],m));
m=[];m.push(c.resolve(RKa));b={};b=(b.client_location=_.Lv.getInstance(),b.consistency=_.iou(),b.entities=c.resolve(p5a),b.response_received_commands=c.resolve(Fuu),b.store=c.resolve(_.OnG),b.tokens=c.resolve(RKa),b);if(_.w("web_shorts_prefetch_service_enabled")){var x=new rxZ(c.resolve(_.mB));b.shorts_prefetch=x}b.adblock_detection=c.resolve(omu);c.addProvider({provide:_.On,useClass:_.On});x=c.resolve(Vxz);var P=[];_.w("PremiumClientSharedConfig__enable_att_context_processor")&&(c.addProvider({provide:Qf_,
useClass:AQ8}),P.push(c.resolve(Qf_)));if(_.w("owl_pl_await")){var p={};c.addProvider((p.provide=V21,p.useFactory=function(t){return new bGF(t)},p[RE]=[_.On],p));
P.push(c.resolve(V21))}Qp6(x,c.resolve(Wos),c.resolve(t2s),b,c.resolve(_.mB),m,P,c.resolve(jIQ),c.resolve(txQ));c.addProvider({provide:_.zh,useValue:_.Sp.instance});_.w("start_client_gcf")&&c.addProvider({provide:se,useValue:FGC()});c.addProvider({provide:tSZ,useFactory:function(){return new tSZ(_.BG().resolve(_.On),_.H$.getInstance())}});
_.f$().parkOrScheduleJob(function(){IkZ()},1,"eocs");
m={};c.addProvider((m.provide=Fp,m.useClass=Fp,m[RE]=[_.GQ,_.zh],m));c.addProvider({provide:_.zj_,useFactory:_.pD.getInstance});_.f$().parkOrScheduleJob(function(){_.BG().resolve(Fp).refresh()},0,"eocs");
At_(Yah.watchEndpointMap||{},x.reelWatchEndpointMap||{},J.injector.resolve(_.zh));c.addProvider({provide:wx,useValue:_.IT.instance});_.w("kevlar_signal_collection_killswitch")||(m={},c.addProvider((m.provide=J9z,m.useClass=J9z,m[RE]=[Hc,Qj],m)),_.f$().parkOrScheduleJob(function(){_.BG().resolve(J9z).record()},1,"eocs"));
_.w("web_debug_handler_registration_killswitch")||_.f$().parkOrScheduleJob(function(){yR3("DOWNLOAD_PES",roT);_.w("offline_client_state_export_ks")||yR3("OFFLINE_CLIENT_STATE",n5J)},0,"eocs");
_.w("kevlar_prevent_polymer_dynamic_font_load")&&_.f$().parkOrScheduleJob(function(){var t=[_.cm($ff),_.cm(GD4)];t=_.M(t);for(var I=t.next();!I.done;I=t.next()){I=I.value;var a=document.createElement("link");_.O$(a,I,"stylesheet");document.head.appendChild(a)}},1,"eocs");
m=J.injector.resolve(_.zh);_.oz_.instance=new _.oz_(m);Vbe(dSQ(new Rt$(m)));m={};J.injector.addProvider((m.provide=BO,m.useFactory=function(t){(t=t==null?void 0:t.getCurrentPage())?t=t.visibilityObserver:(bUh||(bUh=LXT()),t=bUh);return t},m[RE]=[_.y6(_.oO)],m.skipCache=!0,m));
c.addProvider({provide:_.Uo,useClass:nD});c.addProvider({provide:tt,useClass:XJ8});J.injector.addProvider({provide:hIC,useValue:KJC});c.addProvider({provide:Krz,useValue:s8T});c.addProvider({provide:_.Ev,useValue:U1f});J=c.addProvider;fka||(fka=new uuz);J.call(c,{provide:_.YtL,useValue:fka});c.addProvider({provide:_.Ov,useValue:_.Ub("HTML_DIR")==="rtl"?"rtl":"ltr"});c.addProvider({provide:t0j,useClass:w5j});c.addProvider({provide:_.Ml,useClass:mr});_.BG().addProvider({provide:K36,useValue:_.w("enable_web_delhi_icons")?
Jee.concat(m0o):gp5.concat(ce4)});c.addProvider({provide:_.xX,useClass:_.xX});c.addProvider({provide:_.qmR,useValue:new ZGu});c.addProvider({provide:tP6,useClass:V06});c.addProvider({provide:cJ,useClass:cJ});c.addProvider({provide:xI,useClass:xI});J={};c.addProvider((J.provide=ZJ,J.useClass=ZJ,J[RE]=[_.zh,_.Tr],J));c.addProvider({provide:wn,useClass:wn});c.addProvider({provide:YNB,useClass:Li6});c.addProvider({provide:pa,useClass:pa});c.addProvider({provide:MIC,useValue:QBL});c.addProvider({provide:_.ZR,
useClass:Pm6});_.w("enable_payments_purchase_manager")&&c.addProvider({provide:lBL,useClass:etZ});c.addProvider({provide:hu5,useFactory:function(){return function(t){return _.Smo(t)}}});
c.addProvider({provide:_.vja,useClass:OmZ});J={};c.addProvider((J.provide=iX,J.useClass=iX,J[RE]=[_.vja],J));c.addProvider({provide:VO,useClass:VO});c.addProvider({provide:DYL,useValue:JQ_});c.addProvider({provide:vXQ,useValue:_.hjQ});c.addProvider({provide:pKT,useClass:sjj});c.addProvider({provide:Sao,useValue:Uus});J={};c.addProvider((J.provide=_.a0,J.useClass=h_1,J[RE]=[Sao],J));_.w("web_ephemeral_actions")&&(J={},c.addProvider((J.provide=_.Pn,J.useClass=Ve,J[RE]=[_.f9,_.C9],J)));if(_.w("web_explore_hub_on_hover")||
_.w("web_client_explore_hub_on_hover"))J={},c.addProvider((J.provide=aL,J.useClass=aL,J[RE]=[_.zh,OP],J));c.addProvider({provide:hD3,useValue:fRt});J={};c.addProvider((J.provide=LFu,J.useClass=s$Z,J[RE]=[_.zh],J))}},x0F);var PR4={},M94=(PR4.initialized={priority:10,callback:function(){if(!wrS){lnG();NqR("FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND");_.MU(_.k2(NqR,"FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"),3E4);if(_.w("log_heartbeat_with_lifecycles")){var J={};oM.instance||(oM.instance=new oM);oM.instance.install((J.document_visible={callback:tCe,priority:10},J.document_hidden={callback:tCe,priority:10},J))}else _.B4(document,"visibilitychange",tCe);wrS=!0}(J=_.Y3())&&J!=="UNDEFINED_CSN"&&n1r(J)}},PR4);var pwF={},N65=(pwF.initialized={callback:function(J){var c=_.rs(232091),m=J.injector.resolve(_.no);_.JM(m,c);window.performance&&window.performance.getEntriesByType&&typeof window.performance.getEntriesByType==="function"?fTG()&&_.mn(m,c):(J=J.injector.resolve(hu5)("refresh_detector"))&&(J.get("first_tab_load")?_.mn(m,c):J.set("first_tab_load","1"))}},pwF);var t9s={},I2u=(t9s.initialized={priority:10,callback:dme},t9s);var KTR={},CRf=(KTR.initialized={priority:0,callback:function(){var J=new ghB,c="other";_.Va?c="chrome":_.xd?c="firefox":_.UO?c="safari":Q4&&(c="edge");document.hasStorageAccess?document.hasStorageAccess().then(function(m){J.increment(_.H7(),m,c)}).catch(function(){J.increment(_.H7(),!1,c)}):J.increment(_.H7(),!1,c)}},KTR);var a2p={},kRS=(a2p.rendering={priority:8,callback:$m3},a2p);var HUf={},iUr=(HUf.rendering={priority:10,callback:yjJ},HUf.rendered={callback:lTJ},HUf),nle={},T6e=(nle.rendering={callback:yjJ},nle.rendered={callback:lTJ},nle);var wwS=!1,reS={},s_p=(reS.initialized={priority:10,callback:function(){wwS||(zwu({didPatch:function(J){J.el&&HDe(J.el,J.props)},
didUnmount:function(J){amT(J.el)}}),wwS=!0)}},reS);var LT4=/^\/shorts\/?$/;_.q3("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(_.w("kevlar_enable_mss")){_.m3m(new UzC);var D0R=!0,WTs,wk;D0R=D0R===void 0?!1:D0R;WTs=WTs===void 0?!1:WTs;wk=wk===void 0?{}:wk;var zAp=wk.cssRowKey||"",u7r=wk.combinedSignature||"";!zAp&&window&&window._F_cssRowKey&&(zAp=window._F_cssRowKey,!u7r&&window._F_combinedSignature&&(u7r=window._F_combinedSignature));if(zAp&&typeof window._F_installCss!=="function")throw Error("ud");var f2R=wk.loaderClass||_.Xl,rk=Aat("base-js"),Y1h,Xwh=oye("",rk);Y1h=_.p1(Xwh);var sy=new f2R(Y1h,zAp,u7r,D0R,WTs),ZUR=
wk.useCors||rk&&rk.hasAttribute("crossorigin"),q1h=wk.corsMode||rk&&rk.getAttribute("crossorigin");ZUR&&(sy.useCors_=ZUR);q1h&&(sy.corsMode_=q1h);wk.urlMaxLength&&(sy.urlMaxLength=wk.urlMaxLength);wk.fetchPriority&&(sy.fetchPriority=wk.fetchPriority);var U0u=XZ();U0u.JSC$8064_loader_=sy;U0u.setBatchModeEnabled(!0)}
(function(){var J=document.querySelector("ytd-app");if(!J)throw Error("Ej");J=new MW({root:J,injector:_.BG()});J.install(M94);var c={};J.install((c.initialized={priority:10,callback:a5T},c));_.w("wp_lat_b")&&(c={},J.install((c.initialized={priority:10,callback:function(){cuQ()}},c)));
c={};J.install((c.rendered={priority:0,callback:I5t},c));c={};J.install((c.rendered={priority:0,callback:function(){_.ft.addLowPriorityJob(function(){_.rBL>1&&(xGJ(),NOt())},4E4)}},c));
J.install(t6F);J.install(N65);J.install(s_p);dfp||(dfp=!0,Object.assign(_.bi,{handleError:kNJ,enableComponentStacksInErrorMessages:!1,enableLazyTsx:_.w("mweb_enable_wiz_lazy_tsx")||_.w("kevlar_enable_wiz_lazy_tsx")}),hwm=e2C,Dz3=HBm,vHD=l0e,$zt=yJo,_.w("ytwiz_enable_debug_component_props")&&ewG());J.install(nZs);J.install(xuR);J.install(pB1);J.install(eL$);J.install(Bw2);J.install(HQ5);J.install(V9f);_.w("kevlar_enable_mss_lazy_load")&&J.install(I2u);J.install(PCp);J.install(CRf);if(!_.Ss("IS_SHELL_LOAD")||
_.w("kevlar_fetch_initial_data_promise_client")||_.w("sw_nav_preload_pbj")){var m=_.NU(window.location.href);c=m&&m==="/watch";m=m&&m.match(LT4);c?J.install(T6e):m?J.install(kRS):J.install(iUr)}else J.install(c8S);J.install(KjR);_.w("web_enable_prefetching_videos_on_home")&&J.install(s25);_.w("start_client_gcf")&&J.install(TTR);J.install(OPZ);(new JD6).increment("INSTALLED");J.install(wB1);J.install(BTr);J.transition("initialized")})();
_.bq=[[["MXloaXdsa2luZCNyN256eGw=","NHJkbHp4dmFsdWUjYXRyaWFy"],"c3Q5dTV6QURfUExBQ0VNRU5UX0tJTkRfTUlMTElTRUNPTkRTI3QzZHd1Ng=="]];_.mU=["cmQzMGd0Z2xvYmFsQ2FsbGJhY2tzI3M4bGh5cw==","d2lyOTM5b25BYm5vcm1hbGl0eURldGVjdGVkIzJ5aGxvYw==","dGo3aDFvb25BZFNraXAjczd2dzBq","ZGthbG93cmF3X3BsYXllcl9yZXNwb25zZSNrZTEzMA==","NHMyMmM3cGxheWVyQWRzI25ib3N4Zw=="];_.SB="cmQzMGd0Z2xvYmFsQ2FsbGJhY2tzI3M4bGh5cw== d2lyOTM5b25BYm5vcm1hbGl0eURldGVjdGVkIzJ5aGxvYw== dGo3aDFvb25BZFNraXAjczd2dzBq ZGthbG93cmF3X3BsYXllcl9yZXNwb25zZSNrZTEzMA== NnR4b3Bwd2ViX3BsYXlsaXN0X3F1ZXVlX211bHRpcGxlX3NraXBzX2tzI3hsZ3gybw== ZGxuMHVqYWJfc2FfZWYjbjk4ZzNu NHMyMmM3cGxheWVyQWRzI25ib3N4Zw==".split(" ");
_._ModuleManager_initialize=function(J,c){if(!_.fc){if(!_.Y9)return;_.m3m(_.Y9())}_.fc.setAllModuleInfoString(J,c)};
_._ModuleManager_initialize('kevlar_base_module/sy1/sy2/sy3/sy4:2,3/sy5/sy6:2,3/sy7/sy8/sy9/sya/syb/kevlar_main_module:1,4,5,6,7,8,9/syc:2/syd:6,a,d/sye/syf:5/syg/h8y2qb:4,e,f,g,h/syh/JzFVk:d,g,h,j/syi:8/xwEKAe:3,9,f,h,l/syj:e/syk:1,b,e,f,j,l/syl:o/nmfa2d:h,n,p/sym:7,o/syn:g,h,p,r/CF909:n,s/Tm0L3c:s/L3n37:g,h,n,r/iuT5Oc',['sy2','sy3','sy8','syc','sya','sy6','syi','syh','sye','syd','syb','sy1','syk','sy7','sy5','sym','syl','syg','syf','syj','syn','sy9','sy4','iuT5Oc','L3n37','Tm0L3c','CF909','nmfa2d','xwEKAe','JzFVk','h8y2qb','kevlar_main_module']);
}catch(e){_._DumpException(e)}
try{
_.zu=function(J,c,m,b,x){var P={};c&&(P[c]=m);b?P.errorType=b:x&&(P.errorReason=x);_.zB(J,P);_.YH()};
_.uZ=function(J){var c=_.f$();return _.hcz(c,J,1)};
_.sB({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 J=this.query;J&&(this.full||J[0]==="("||(J="("+J+")"),this._mq=window.matchMedia(J),this._add(),this.queryHandler(this._mq))},
queryHandler:function(J){this._setQueryMatches(J.matches)}});var RAS;var ol5;var Q_e=function(){};
_.V=Q_e.prototype;_.V.addOwnKeyBinding=function(){};
_.V.removeOwnKeyBindings=function(){};
_.V.keyboardEventMatchesKeys=function(){};
_.V._collectKeyBindings=function(){};
_.V._prepKeyBindings=function(){};
_.V._addKeyBinding=function(){};
_.V._resetKeyEventListeners=function(){};
_.V._listenKeyEventListeners=function(){};
_.V._unlistenKeyEventListeners=function(){};
_.V._onKeyBindingEvent=function(){};
_.V._triggerKeyHandler=function(){};
_.V._tapHandler=function(){};
_.V._focusChanged=function(){};
_.V._detectKeyboardFocus=function(){};
_.V._userActivate=function(){};
_.V._upHandler=function(){};
_.V._spaceKeyDownHandler=function(){};
_.V._spaceKeyUpHandler=function(){};
_.V._asyncClick=function(){};
_.V._pressedChanged=function(){};
_.V._ariaActiveAttributeChanged=function(){};
_.V._activeChanged=function(){};
_.V._controlStateChanged=function(){};
_.V._changedButtonState=function(){};
_.V._focusBlurHandler=function(){};
_.V._disabledChanged=function(){};
_.V._changedControlState=function(){};
_.V._downHandler=function(){};
_.V.ensureRipple=function(){};
_.V.getRipple=function(){};
_.V.hasRipple=function(){};
_.V._noinkChanged=function(){};
_.V._focusedChanged=function(){};
_.V._createRipple=function(){};
_.V.registered=function(){};
_.V._invalidChanged=function(){};
_.V.hasValidator=function(){};
_.V.validate=function(){};
_.V._getValidity=function(){};
_.V._requiredChanged=function(){};
_.V._valueChanged=function(){};
_.V._checkedChanged=function(){};
_.V._buttonStateChanged=function(){};
_.V._setPressed=function(){};
_.V._setPointerDown=function(){};
_.V._setReceivedFocusFromKeyboard=function(){};
_.V._setFocused=function(){};
Q_e=_.sB({is:"tp-yt-paper-radio-button",_template:function(){if(ol5!==void 0)return ol5;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);var c=J.content,m=c.insertBefore;RAS===void 0&&(RAS=document.createElement("template"));var b=RAS;m.call(c,b.content.cloneNode(!0),J.content.firstChild);return ol5=J},
behaviors:[_.TsQ],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(){_.o3(this,function(){if(this.getComputedStyleValue("--calculated-paper-radio-button-ink-size").trim()==="-1px"){var J=parseFloat(this.getComputedStyleValue("--calculated-paper-radio-button-size").trim()),c=Math.floor(3*J);c%2!==J%2&&c++;this.updateStyles({"--paper-radio-button-ink-size":c+"px"})}})}});var eAu;var j_h;_.sB({_template:function(){if(j_h!==void 0)return j_h;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;eAu===void 0&&(eAu=document.createElement("template"));var b=eAu;m.call(c,b.content.cloneNode(!0),J.content.firstChild);return j_h=J},
is:"tp-yt-paper-radio-group",behaviors:[_.qB8],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(J){var c=this._valueToItem(J);if(!c||!c.hasAttribute("disabled")){if(this.selected){c=this._valueToItem(this.selected);if(this.selected==J)if(this.allowEmptySelection)J="";else{c&&(c.checked=!0);return}c&&
(c.checked=!1)}_.$r.select.apply(this,[J]);this.fire("paper-radio-group-changed")}},
_activateFocusedItem:function(){this._itemActivate(this._valueForItem(this.focusedItem),this.focusedItem)},
_onUpKey:function(J){this._focusPrevious();J.preventDefault();this._activateFocusedItem()},
_onDownKey:function(J){this._focusNext();J.preventDefault();this._activateFocusedItem()},
_onLeftKey:function(J){_.ZsL._onLeftKey.apply(this,arguments);this._activateFocusedItem()},
_onRightKey:function(J){_.ZsL._onRightKey.apply(this,arguments);this._activateFocusedItem()},
_applySelection:function(){_.$r._applySelection.apply(this,arguments)},
_resetTabindices:function(){_.wI._resetTabindices.apply(this,arguments);this.items.forEach(function(J){J.removeAttribute("aria-selected")},this)}});var FTr;_.zH("multiPageMenuSectionItems","compactLinkRenderer","ytd-compact-link-renderer");var fD=function(){return _.h.apply(this,arguments)||this};
_.D(fD,_.h);_.V=fD.prototype;_.V.computeHasPrimaryIcon=function(J){return!(!J.icon&&!J.thumbnail)};
_.V.computeHasSecondary=function(J){return!(!J.secondaryIcon&&!J.secondaryNotificationText)};
_.V.computeHideSecondaryString=function(J){return!_.w("disable_hide_empty_secondary_string")&&!J.secondaryNotificationText};
_.V.computeCompactLinkStyle=function(J){return J?J.toLowerCase().replace(/_/g,"-"):""};
_.V.computeHasFitHeight=function(J){return J==="COMPACT_LINK_STYLE_TYPE_TVFILM_ENTITY_PROVIDER_ATTRIBUTION"};
_.V.isActiveEndpoint=function(J){return(J=this.get("commandMetadata.webCommandMetadata.url",J))?_.NU(window.location.href)!=="/account_transfer_channel"&&_.NU(window.location.href)!=="/gaia_link"&&_.NU(window.location.href)!=="/channel_switcher"||J!=="/account"?_.NU(window.location.href)===J:!0:!1};
_.V.onTap=function(){var J;((J=this.data)==null?0:J.serviceEndpoint)&&_.Vq(this.hostElement,[this.data.serviceEndpoint])};
fD.prototype.onTap=fD.prototype.onTap;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],fD.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],fD.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0,computed:"isActiveEndpoint(data.navigationEndpoint)"}),_.R("design:type",Boolean)],fD.prototype,"active",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeCompactLinkStyle(data.style)"}),_.R("design:type",String)],fD.prototype,"compactLinkStyle",void 0);
_.O([_.U({computed:"computeIcon_(data.icon)"}),_.R("design:type",Object)],fD.prototype,"icon",void 0);_.O([_.U({computed:"computeIcon_(data.secondaryIcon)"}),_.R("design:type",Object)],fD.prototype,"secondaryIcon",void 0);_.O([_.U({computed:"computeHasSecondary(data)",reflectToAttribute:!0}),_.R("design:type",Boolean)],fD.prototype,"hasSecondary",void 0);_.O([_.U({computed:"computeHideSecondaryString(data)",reflectToAttribute:!0}),_.R("design:type",Boolean)],fD.prototype,"hideSecondaryString",void 0);
_.O([_.ps("tap"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],fD.prototype,"onTap",null);fD=_.O([_.E({is:"ytd-compact-link-renderer",disableElementRegistration:!0})],fD);
_.v(fD,"ytd-compact-link-renderer",function(){if(FTr!==void 0)return FTr;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return FTr=J},{mode:1});var l2R;_.zH("multiPageMenuSectionItems","toggleThemeCompactLinkRenderer","ytd-toggle-theme-compact-link-renderer");
var YX=function(){var J=_.h.apply(this,arguments)||this;J.role="link";J.tabindex="0";J.actionMap=_.w("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 J};
_.D(YX,_.h);_.V=YX.prototype;_.V.dataChanged=function(){this.data&&(this.data.label?this.label=this.data.label:this.label=_.wB()==="USER_INTERFACE_THEME_DARK"?this.data.toggledOnTitle:this.data.toggledOffTitle)};
_.V.getCurrentTheme=function(){return _.rB()?document.documentElement.hasAttribute("dark")?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.wB()};
_.V.onThemeSelected=function(J,c){var m=J||c?J:_.Th(),b=(m&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!m&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.ao2(_.NU(window.location.href));_.iJ(0,165,J);_.iJ(0,174,c);this.prefs.save();b&&_.m9(this.hostElement,"yt-dark-mode-toggled-action",[m]);_.m9(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.V.onTap=function(){this.data.serviceEndpoint&&_.Vq(this.hostElement,[this.data.serviceEndpoint])};
_.V.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.V.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.V.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
YX.prototype.onTap=YX.prototype.onTap;YX.prototype.dataChanged=YX.prototype.dataChanged;_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],YX.prototype,"actionHandlerBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],YX.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.Eq),_.R("design:type",Object)],YX.prototype,"paperItemBehaviors",void 0);_.O([_.U(),_.R("design:type",Object)],YX.prototype,"data",void 0);_.O([_.U({value:function(){return _.HA()}}),
_.R("design:type",_.e_)],YX.prototype,"prefs",void 0);_.O([_.U(),_.R("design:type",Object)],YX.prototype,"label",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],YX.prototype,"role",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],YX.prototype,"tabindex",void 0);_.O([_.kr("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],YX.prototype,"dataChanged",null);
_.O([_.ps("tap"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],YX.prototype,"onTap",null);YX=_.O([_.E({is:"ytd-toggle-theme-compact-link-renderer",disableElementRegistration:!0})],YX);
_.v(YX,"ytd-toggle-theme-compact-link-renderer",function(){if(l2R!==void 0)return l2R;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return l2R=J},{mode:1});
}catch(e){_._DumpException(e)}
try{
var B6s,gls;_.Xd=function(J){return!!J.getOptions("captions")};
_.yef=function(J){return(J=J.getOption("captions","track"))?!!J.displayName:!1};
_.Zm=function(J,c){_.Yg(c,J,function(){return B6s[c]},function(m){B6s[c]=m;
if(!_.w("mweb_player_ve_show_ks")){var b=_.Y3(0);b&&m&&_.E2(b,m)}})};
_.qW=function(J){(J=B6s[J])&&_.mn(_.C7(),J)};
B6s={};var JG1;/*

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
*/
_.sB({_template:function(){if(JG1!==void 0)return JG1;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);var c=J.content,m=c.insertBefore;gls===void 0&&(gls=document.createElement("template"));var b=gls;m.call(c,b.content.cloneNode(!0),J.content.firstChild);return JG1=J},
is:"tp-yt-paper-checkbox",behaviors:[_.TsQ],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){_.o3(this,function(){if(this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()==="-1px"){var J=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),c="px",m=J.match(/[A-Za-z]+$/);m!==null&&(c=m[0]);J=parseFloat(J);m=8/3*J;c==="px"&&(m=Math.floor(m),m%2!==J%2&&m++);this.updateStyles({"--paper-checkbox-ink-size":m+
c})}})},
_computeCheckboxClass:function(J,c){var m="";J&&(m+="checked ");c&&(m+="invalid");return m},
_computeCheckmarkClass:function(J){return J?"":"hidden"},
_createRipple:function(){this._rippleContainer=this.$.checkboxContainer;return _.iqQ._createRipple.call(this)}});var cGo=new _.Q("radioButtonSurveyOptionRenderer"),m2R=new _.Q("checkboxSurveyOptionRenderer");var b14;var x25;var V3R=0,Uy=function(){var J=_.h.call(this)||this;J.selected=!1;J.isOverlay=!1;J.inputId="toggle-option-"+V3R;V3R++;return J};
_.D(Uy,_.h);Uy.prototype.onTap=function(){_.cA(this.hostElement,"ytd-toggle-option-clicked")};
_.O([_.U(),_.R("design:type",String)],Uy.prototype,"label",void 0);_.O([_.U(),_.R("design:type",String)],Uy.prototype,"inputId",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Uy.prototype,"selected",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Uy.prototype,"isOverlay",void 0);Uy=_.O([_.E({is:"ytd-toggle-option-renderer",disableElementRegistration:!0}),_.R("design:paramtypes",[])],Uy);
_.v(Uy,"ytd-toggle-option-renderer",function(){if(x25!==void 0)return x25;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return x25=J},{mode:1});var SX=function(){var J=_.h.apply(this,arguments)||this;J.isToggleOption=!1;J.isOverlay=!1;return J};
_.D(SX,_.h);SX.prototype.onTap=function(J){J.preventDefault();this.data&&(J=!this.data.checked,this.set("data.checked",J),_.cA(this.hostElement,"ytd-checkbox-survey-option-changed",{checked:J,value:this.data.value}))};
_.eE.Object.defineProperties(SX.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.responseText?this.ytRendererBehavior.getSimpleString(this.data.responseText):""}}});
SX.prototype.onTap=SX.prototype.onTap;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],SX.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],SX.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],SX.prototype,"isToggleOption",void 0);_.O([_.U(),_.R("design:type",Object)],SX.prototype,"isOverlay",void 0);_.O([_.q("data.responseText"),_.R("design:type",String),_.R("design:paramtypes",[])],SX.prototype,"label",null);
_.O([_.ps("ytd-toggle-option-clicked"),_.R("design:type",Function),_.R("design:paramtypes",[Event]),_.R("design:returntype")],SX.prototype,"onTap",null);SX=_.O([_.E({is:"ytd-checkbox-survey-option-renderer",disableElementRegistration:!0})],SX);
_.v(SX,"ytd-checkbox-survey-option-renderer",function(){if(b14!==void 0)return b14;var J=document.createElement("template");_.z(J,'\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>');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return b14=J},{mode:1});var Pso;var M31;var h_=function(){var J=_.h.apply(this,arguments)||this;J.checked=!1;J.isToggleOption=!1;return J};
_.D(h_,_.h);h_.prototype.onTap=function(){this.data&&(this.checked?_.m9(this.hostElement,"ytd-inline-survey-option-deselect-action"):_.m9(this.hostElement,"ytd-inline-survey-option-select-action",[this.hostElement]))};
h_.prototype.onTap=h_.prototype.onTap;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],h_.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],h_.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],h_.prototype,"checked",void 0);_.O([_.U(),_.R("design:type",Object)],h_.prototype,"isToggleOption",void 0);_.O([_.ps("ytd-toggle-option-clicked"),_.R("design:type",Function),_.R("design:paramtypes",[Event]),_.R("design:returntype")],h_.prototype,"onTap",null);
h_=_.O([_.E({is:"ytd-radio-button-survey-option-renderer",disableElementRegistration:!0})],h_);
_.v(h_,"ytd-radio-button-survey-option-renderer",function(){if(M31!==void 0)return M31;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return M31=J},{mode:1});var dk=function(){var J=_.h.apply(this,arguments)||this;J.disableAnimation=!1;J.isToggleOption=!0;J.followUpSurveyCommand=null;J.selectedRatingEndpoint=null;J.isSlimlineSurveyFollowUp=!1;J.isShortsStyle=!1;J.styleOverrideAttribute=!0;J.isDarkMode=!1;J.isSubmitted=!1;J.roundedContainer=!0;J.improveShortsResponseRate=_.w("web_improve_shorts_response_rate");J.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 J};
_.D(dk,_.h);_.V=dk.prototype;
_.V.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"}}}}};
_.V.attached=function(){var J=this;this.isDarkMode=document.documentElement.hasAttribute("dark");this.intersectionObserver=new IntersectionObserver(function(m){var b;if((b=m[0])!=null&&b.isIntersecting){_.IA().reportShown(J.hostElement);var x;(x=J.intersectionObserver)==null||x.unobserve(J.hostElement)}},{rootMargin:"0px",
threshold:.6});var c;(c=this.intersectionObserver)==null||c.observe(this.hostElement)};
_.V.onDarkModeToggledAction=function(J){this.isDarkMode=J};
_.V.dataChanged=function(){var J;if(((J=this.data)==null?void 0:J.style)==="INLINE_SURVEY_RENDERER_STYLE_SLIMLINE_FOLLOW_UP")this.isSlimlineSurveyFollowUp=!0;else{var c;((c=this.data)==null?void 0:c.style)==="INLINE_SURVEY_RENDERER_STYLE_SHORTS"?this.isShortsStyle=!0:this.expanded=!1}this.selectedRatingEndpoint=this.followUpSurveyCommand=null;var m,b,x,P;this.darkColorPalette=(m=this.data)==null?void 0:(b=m.inlineContent)==null?void 0:(x=b.compactVideoRenderer)==null?void 0:(P=x.thumbnail)==null?
void 0:P.darkColorPalette;var p,t,I,a;this.lightColorPalette=(p=this.data)==null?void 0:(t=p.inlineContent)==null?void 0:(I=t.compactVideoRenderer)==null?void 0:(a=I.thumbnail)==null?void 0:a.lightColorPalette;var k,H;if(((k=this.data)==null?0:(H=k.inlineContent)==null?0:H.compactVideoRenderer)&&this.isShortsStyle){var T,r,W,Y;J=_.Bd((T=this.data)==null?void 0:(r=T.inlineContent)==null?void 0:(W=r.compactVideoRenderer)==null?void 0:(Y=W.thumbnail)==null?void 0:Y.thumbnails);_.V1(this.hostElement,
{"--yt-background-url":"url("+J+")"})}};
_.V.handleRequestCompletion=function(){this.hostElement.hidden&&_.cA(this.hostElement,"yt-dismissible-item-dismissed")};
_.V.onPopupClosed=function(J){var c;((c=J.detail)==null?void 0:c.popupRenderer)===this.hostElement&&(this.isSlimlineSurveyFollowUp&&!this.isSubmitted?_.m9(this.hostElement,"ytd-slimline-survey-show-action"):this.isSlimlineSurveyFollowUp&&this.isSubmitted&&(this.isSubmitted=!1))};
_.V.handleInlineSurveyRatingSelect=function(J,c){var m=this;this.selectedRatingEndpoint=J;this.followUpSurveyCommand=c;this.expanded=!!J;this.getOptionRenderers().forEach(function(b,x){m.notifyPath("followUpSurveyCommand.followUpOptions."+x+".checkboxSurveyOptionRenderer.checked");m.set("followUpSurveyCommand.followUpOptions."+x+".checkboxSurveyOptionRenderer.checked",!1)});
this.optionSelector.selectIndex(-1);this.improveShortsResponseRate&&(this.onSubmitTap(),J=this.get("data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer.command"),_.m9(this.hostElement,"yt-reel-non-video-content-dismissal-command",[J]))};
_.V.onDismissTap=function(){if(this.isSlimlineSurveyFollowUp)_.m9(this.hostElement,"yt-close-popup-action");else{this.hostElement.hidden=!0;var J,c=(J=this.data)==null?void 0:J.dismissalEndpoint;c&&this.ytComponentBehavior.resolveCommand(c)}};
_.V.onSubmitTap=function(){this.selectedRatingEndpoint&&(this.ytComponentBehavior.resolveCommand(this.selectedRatingEndpoint),this.followUpSurveyCommand&&this.submitFollowUpResponses());this.isSlimlineSurveyFollowUp&&(this.isSubmitted=!0,_.m9(this.hostElement,"yt-close-popup-action"))};
_.V.submitFollowUpResponses=function(){if(this.getOptionRenderers().length!==0){if(this.isSingleSelect){if(!this.optionSelector.selectedItem)return;var J=[this.optionSelector.selectedItem.data.submissionEndpoint]}else{J=this.getOptionRenderers().filter(function(b){return b.checked});
if(J.length===0)return;J=J.map(function(b){return b.responseEndpoint})}var c=[];
J.forEach(function(b,x){x!==0&&(b=_.L(b,_.uc))&&b.feedbackToken&&c.push(b.feedbackToken)});
if(J=J[0]){var m={};c.length>0&&(m.extra_feedback_tokens=c);this.ytComponentBehavior.resolveCommand(J,{form:m})}}};
_.V.getOptionRenderers=function(){var J=this;return this.followUpSurveyCommand&&this.followUpSurveyCommand.followUpOptions?this.get("followUpSurveyCommand.followUpOptions").map(function(c){J.isSingleSelect=!!_.L(c,cGo);return J.isSingleSelect?_.L(c,cGo):_.L(c,m2R)}):[]};
_.V.handleInlineSurveyOptionSelect=function(J){J=this.optionSelector.indexOf(J);J!==-1&&this.optionSelector.selectIndex(J)};
_.V.handleInlineSurveyOptionDeselect=function(){this.optionSelector.selectIndex(-1)};
_.V.maybeGetBackgroundColor=function(J){return this.isDarkMode?J.section2Color:J.section3Color};
_.V.colorPaletteChanged=function(){var J=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;J=J&&this.maybeGetBackgroundColor(J);this.dismissibleEl.style.backgroundColor=!J||this.isShortsStyle||this.isSlimlineSurveyFollowUp?"":_.XB(J)};
_.eE.Object.defineProperties(dk.prototype,{isOptionSelected:{configurable:!0,enumerable:!0,get:function(){return!!this.selectedRatingEndpoint}}});
dk.prototype.colorPaletteChanged=dk.prototype.colorPaletteChanged;dk.prototype.onPopupClosed=dk.prototype.onPopupClosed;dk.prototype.handleRequestCompletion=dk.prototype.handleRequestCompletion;dk.prototype.dataChanged=dk.prototype.dataChanged;_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],dk.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],dk.prototype,"actionHandlerBehavior",void 0);
_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],dk.prototype,"ytComponentBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],dk.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.XP),_.R("design:type",Object)],dk.prototype,"ytdDismissibleItemBehavior",void 0);_.O([_.Iu("#follow-up-survey-options"),_.R("design:type",Object)],dk.prototype,"optionSelector",void 0);_.O([_.U(),_.R("design:type",Object)],dk.prototype,"data",void 0);
_.O([_.U(),_.R("design:type",Object)],dk.prototype,"disableAnimation",void 0);_.O([_.U(),_.R("design:type",Object)],dk.prototype,"isToggleOption",void 0);_.O([_.U(),_.R("design:type",Object)],dk.prototype,"followUpSurveyCommand",void 0);_.O([_.U(),_.R("design:type",Object)],dk.prototype,"selectedRatingEndpoint",void 0);_.O([_.U({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],dk.prototype,"expanded",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],dk.prototype,"isSlimlineSurveyFollowUp",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],dk.prototype,"isShortsStyle",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],dk.prototype,"styleOverrideAttribute",void 0);_.O([_.U(),_.R("design:type",Boolean)],dk.prototype,"isSingleSelect",void 0);_.O([_.U(),_.R("design:type",Object)],dk.prototype,"isDarkMode",void 0);
_.O([_.U(),_.R("design:type",Object)],dk.prototype,"lightColorPalette",void 0);_.O([_.U(),_.R("design:type",Object)],dk.prototype,"darkColorPalette",void 0);_.O([_.q("selectedRatingEndpoint","isShortsStyle"),_.U({reflectToAttribute:!0}),_.R("design:type",Boolean),_.R("design:paramtypes",[])],dk.prototype,"isOptionSelected",null);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],dk.prototype,"roundedContainer",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],dk.prototype,"improveShortsResponseRate",void 0);_.O([_.Iu("#dismissible"),_.R("design:type",HTMLElement)],dk.prototype,"dismissibleEl",void 0);_.O([_.Iu("#dismiss-button yt-icon-button"),_.R("design:type",HTMLElement)],dk.prototype,"dismissButtonEl",void 0);_.O([_.Iu("#inline-survey-header yt-icon-button"),_.R("design:type",HTMLElement)],dk.prototype,"inlineHeaderDismissButtonEl",void 0);
_.O([_.kr("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],dk.prototype,"dataChanged",null);_.O([_.ps("yt-service-request-completed"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],dk.prototype,"handleRequestCompletion",null);_.O([_.ps("yt-popup-closed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],dk.prototype,"onPopupClosed",null);
_.O([_.NE("darkColorPalette","lightColorPalette","isDarkMode"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],dk.prototype,"colorPaletteChanged",null);dk=_.O([_.E({is:"ytd-inline-survey-renderer",disableElementRegistration:!0})],dk);
_.v(dk,"ytd-inline-survey-renderer",function(){if(Pso!==void 0)return Pso;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return Pso=J},{mode:1});var p04=["en-CA","en","es-MX","fr-CA"];_.Na4=_.Q1(function(J){var c=_.ou(J,{isOverlay:!1,isModern:!1}),m=c.captionIconType,b=c.onClick;J=c.ariaLabel;var x=c.ariaPressed,P=c.isOverlay,p=c.isModern;c=_.oN("button",function(a){_.Zm(a,127299)});
var t=_.Kq(function(a){_.qW(127299);b==null||b(a);return!1}),I={};
return _.C("ytm-closed-captioning-button",{class:_.pq("ytmClosedCaptioningButtonHost",(I.ytmClosedCaptioningButtonIconDisabledOverlay=function(){return m()===-1&&P()},I.ytmClosedCaptioningButtonIconDisabled=function(){return m()===-1&&!P()},I))},_.C("button",{el:c,
class:"ytmClosedCaptioningButtonButton",title:J,"aria-label":J,"aria-pressed":x,"on:click":t},_.C(_.HP,{icon:function(){var a="";var k=p()?"CLOSED_CAPTION_DELHI_PLAYER":"CLOSED_CAPTION";var H=_.HA().get("hl");k=!H||p04.includes(H)?k:"SUBTITLES";H=m();switch(H){case -1:case 0:a=k;break;case 1:a=k+"_FILLED";break;default:_.Pu(H)}return a}})))},"$e");
_.Na4.idomCompat={callbacks:{onClick:!0}};
}catch(e){_._DumpException(e)}
try{
_.Qc=function(J){return function(c,m){var b=J||m.replace(/([A-Z])/g,"-$1").toLowerCase();Object.defineProperty(c,m,{get:function(){var x;return this.$?this.$[b]:(x=_.tO(this))==null?void 0:x.querySelector("#"+b)},
enumerable:!0,configurable:!0})}};_.ei=function(J){J=J===void 0?!1:J;_.DS.call(this);this.pubSub_=new _.Kg(J);_.Kc(this,this.pubSub_)};
_.yv(_.ei,_.DS);_.ei.prototype.subscribe=function(J,c,m){return this.isDisposed()?0:this.pubSub_.subscribe(J,c,m)};
_.ei.prototype.unsubscribe=function(J,c,m){return this.isDisposed()?!1:this.pubSub_.unsubscribe(J,c,m)};
_.ei.prototype.unsubscribeByKey=function(J){return this.isDisposed()?!1:this.pubSub_.unsubscribeByKey(J)};
_.ei.prototype.publish=function(J,c){return this.isDisposed()?!1:this.pubSub_.publish.apply(this.pubSub_,arguments)};
}catch(e){_._DumpException(e)}
try{
var hde=function(){_.zu("ypcRedeemFlowStarted")},Nm=function(J){_.zu("ypcRedeemFlowFailed",void 0,void 0,void 0,J)},dvR=function(J,c,m){c&&m&&(J.videos.forEach(function(b){b.videoId===c&&(b.itemId=m)}),J.recommendedVideos.forEach(function(b){b.videoId===c&&(b.itemId=m)}))};var $ve;var Gdu;/*

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
*/
_.sB({_template:function(){if(Gdu!==void 0)return Gdu;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);var c=J.content,m=c.insertBefore;$ve===void 0&&($ve=document.createElement("template"));var b=$ve;m.call(c,b.content.cloneNode(!0),J.content.firstChild);return Gdu=J},
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(J,c){var m=this._resolveSrc(J);m!==this._resolvedSrc&&(this._resolvedSrc="",this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",J===""||c?this._setLoading(!1):(this._resolvedSrc=m,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 J=this.$.sizedImgDiv.style,c=this.$.placeholder.style;J.backgroundSize=c.backgroundSize=this.sizing;J.backgroundPosition=c.backgroundPosition=this.sizing?this.position:"";J.backgroundRepeat=c.backgroundRepeat=this.sizing?"no-repeat":""},
_resolveSrc:function(J){J=_.ba(J,this.$.baseURIAnchor.href);J.length>=2&&J[0]==="/"&&J[1]!=="/"&&(J=(location.origin||location.protocol+"//"+location.host)+J);return J}});var EI5;var vI4;_.sB({_template:function(){if(vI4!==void 0)return vI4;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);var c=J.content,m=c.insertBefore;EI5===void 0&&(EI5=document.createElement("template"));var b=EI5;m.call(c,b.content.cloneNode(!0),J.content.firstChild);return vI4=J},
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(J){return J?"false":"true"},
_headingChanged:function(J){var c=this.getAttribute("heading"),m=this.getAttribute("aria-label");typeof m==="string"&&m!==c||this.setAttribute("aria-label",J)},
_computeHeadingClass:function(J){return J?" over-image":""},
_computeAnimated:function(J){return J}});var Oar=new _.Q("addRendererToItemSectionAction");var ARo;var tj=function(){return _.h.apply(this,arguments)||this};
_.D(tj,_.h);tj.prototype.configureRendererStamper=function(){return{"data.actionMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],tj.prototype,"rendererBehavior",void 0);_.O([_.f(_.XP),_.R("design:type",Object)],tj.prototype,"dismissibleItemBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],tj.prototype,"rendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],tj.prototype,"data",void 0);tj=_.O([_.E({is:"ytd-comment-history-entry-renderer",disableElementRegistration:!0})],tj);
_.v(tj,"ytd-comment-history-entry-renderer",function(){if(ARo!==void 0)return ARo;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return ARo=J},{mode:1});var Rd4;_.zH("itemSectionRenderer","notificationRenderer","ytd-notification-renderer");_.zH("multiPageMenuSectionItems","notificationRenderer","ytd-notification-renderer");var IY=function(){return _.h.apply(this,arguments)||this};
_.D(IY,_.h);_.V=IY.prototype;_.V.configureRendererStamper=function(){return{"data.contextualMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.highPriorityNotificationActionButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.V.onKeyUp=function(J){if(J.keyCode===13)this.onTap()};
_.V.onTap=function(){this.data.recordClickEndpoint&&_.BG().resolve(_.gu).resolveCommand(this.data.recordClickEndpoint,{form:{element:this.hostElement}});var J=this.data.navigationEndpoint;J&&_.L(J,_.LO)&&_.BG().resolve(_.gu).resolveCommand(J,{form:{element:this.hostElement}})};
_.V.readChanged=function(){var J;_.mq(this.hostElement,"unread",!((J=this.data)==null?0:J.read))};
_.V.dataChanged=function(){this.data&&_.mq(this.hostElement,"high-priority-notification",!!this.data.highPriorityNotification)};
_.V.computeThumbnailSize=function(){var J;return((J=this.data)==null?0:J.highPriorityNotification)?32:48};
_.V.getEndpointURL=function(J){return J&&!_.L(J,_.LO)?this.componentBehavior.computeHref_(J):null};
_.V.getEndpointData=function(J){return J&&!_.L(J,_.LO)?J:null};
IY.prototype.computeThumbnailSize=IY.prototype.computeThumbnailSize;IY.prototype.dataChanged=IY.prototype.dataChanged;IY.prototype.readChanged=IY.prototype.readChanged;IY.prototype.onKeyUp=IY.prototype.onKeyUp;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],IY.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],IY.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],IY.prototype,"componentBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],IY.prototype,"data",void 0);_.O([_.U({computed:"computeThumbnailSize(data.highPriorityNotification)"}),_.R("design:type",Number)],IY.prototype,"thumbnailSize",void 0);_.O([_.ps("keyup"),_.R("design:type",Function),_.R("design:paramtypes",[KeyboardEvent]),_.R("design:returntype")],IY.prototype,"onKeyUp",null);
_.O([_.NE("data.read"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],IY.prototype,"readChanged",null);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],IY.prototype,"dataChanged",null);_.O([_.NE("data.highPriorityNotification"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],IY.prototype,"computeThumbnailSize",null);
IY=_.O([_.E({is:"ytd-notification-renderer",disableElementRegistration:!0})],IY);
_.v(IY,"ytd-notification-renderer",function(){if(Rd4!==void 0)return Rd4;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return Rd4=J},{mode:1});var oI1;var Kn=function(){return _.h.apply(this,arguments)||this};
_.D(Kn,_.h);Kn.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"}}}};
Kn.prototype.computeActionButtonClass=function(J){return!J.actionButtons||J.actionButtons.length<=1?"single-button":J.description?"vertical-buttons":"horizontal-buttons"};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Kn.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],Kn.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Kn.prototype,"data",void 0);Kn=_.O([_.E({is:"ytd-playlist-show-metadata-renderer",disableElementRegistration:!0})],Kn);
_.v(Kn,"ytd-playlist-show-metadata-renderer",function(){if(oI1!==void 0)return oI1;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return oI1=J},{mode:1});var Qmo;_.zH("itemSectionRenderer","purchaseItemRenderer","ytd-purchase-item-renderer");var Cn=function(){return _.h.apply(this,arguments)||this};
_.D(Cn,_.h);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Cn.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],Cn.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Cn.prototype,"data",void 0);Cn=_.O([_.E({is:"ytd-purchase-item-renderer",disableElementRegistration:!0})],Cn);
_.v(Cn,"ytd-purchase-item-renderer",function(){if(Qmo!==void 0)return Qmo;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return Qmo=J},{mode:1});var edS;var jms={};jms.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(J){if(J)return J.replace(this.LAYOUT_STYLE_PREFIX_,"").replace(/_/g,"-").toLowerCase()},
computeRole_:function(J){if(J==="SIMPLE_TEXT_LAYOUT_STYLE_PAID_SUBSCRIPTION_TITLE")return"heading"}};_.zH("itemSectionRenderer","simpleTextSectionRenderer","ytd-simple-text-section-renderer");var aY=function(){return _.h.apply(this,arguments)||this};
_.D(aY,_.h);aY.prototype.onYtNavigate=function(J){var c=this.openPopupBehavior.getNavigationEndpointPopupAction(J.detail.endpoint);c&&(J.stopPropagation(),this.openPopupBehavior.openPopup(c))};
aY.prototype.onYtNavigate=aY.prototype.onYtNavigate;_.O([_.f(jms.YtSimpleTextSectionBehavior),_.R("design:type",Object)],aY.prototype,"ytSimpleTextSectionBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],aY.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.vL),_.R("design:type",Object)],aY.prototype,"openPopupBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],aY.prototype,"data",void 0);
_.O([_.ps("yt-navigate"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],aY.prototype,"onYtNavigate",null);aY=_.O([_.E({is:"ytd-simple-text-section-renderer",disableElementRegistration:!0})],aY);
_.v(aY,"ytd-simple-text-section-renderer",function(){if(edS!==void 0)return edS;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return edS=J},{mode:1});var F0o;_.zH("itemSectionRenderer","unlimitedPageFeatureInfoRenderer","ytd-unlimited-page-feature-info-renderer");var km=function(){return _.h.apply(this,arguments)||this};
_.D(km,_.h);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],km.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],km.prototype,"data",void 0);km=_.O([_.E({is:"ytd-unlimited-page-feature-info-renderer",disableElementRegistration:!0})],km);
_.v(km,"ytd-unlimited-page-feature-info-renderer",function(){if(F0o!==void 0)return F0o;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return F0o=J},{mode:1});var lsr;var yRe;var HM=function(){return _.h.apply(this,arguments)||this};
_.D(HM,_.h);HM.prototype.dataChanged=function(){if(this.data){var J=this.get("background.thumbnailLandscapePortraitRenderer.portrait.thumbnails",this.data);J&&(J=_.yn(J,screen.width),this.hostElement.style.backgroundImage="url("+J+")")}};
HM.prototype.dataChanged=HM.prototype.dataChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],HM.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],HM.prototype,"data",void 0);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],HM.prototype,"dataChanged",null);HM=_.O([_.E({is:"ytd-post-redemption-section-renderer",disableElementRegistration:!0})],HM);
_.v(HM,"ytd-post-redemption-section-renderer",function(){if(yRe!==void 0)return yRe;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return yRe=J},{mode:1});var Bnp;var nn=function(){return _.h.apply(this,arguments)||this};
_.D(nn,_.h);nn.prototype.configureRendererStamper=function(){return{"data.sections":{id:"contents",mapping:{postRedemptionSectionRenderer:{component:"ytd-post-redemption-section-renderer",noInjection:!0}}}}};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],nn.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],nn.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],nn.prototype,"data",void 0);nn=_.O([_.E({is:"ytd-ypc-post-redemption-renderer",disableElementRegistration:!0})],nn);
_.v(nn,"ytd-ypc-post-redemption-renderer",function(){if(Bnp!==void 0)return Bnp;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return Bnp=J},{mode:1});_.zH("itemSectionRenderer","redeemCodeRenderer","ytd-redeem-code-renderer");var TI=function(){var J=_.h.apply(this,arguments)||this;J.MIN_CODE_LENGTH=12;J.MAX_CODE_LENGTH=24;return J};
_.D(TI,_.h);_.V=TI.prototype;_.V.configureRendererStamper=function(){return{postRedemptionRenderer:{id:"success-page",mapping:{ypcPostRedemptionRenderer:"ytd-ypc-post-redemption-renderer"}}}};
_.V.created=function(){this.riskService=new _.Ob3;this.loadPaymentThenable=_.RxJ(_.Ub("YPC_MB_URL"))};
_.V.ready=function(){var J=this;this.code.addEventListener("keypress",function(c){J.onCodeInputKeypress(c)})};
_.V.dataChanged=function(){var J=this;this.redeemButtonDisabled=!0;this.observer=new MutationObserver(function(c){c=_.M(c);for(var m=c.next();!m.done;m=c.next())m=m.value,m.type==="attributes"&&m.attributeName==="dark"&&J.updateBackground()});
this.observer.observe(document.documentElement,{attributes:!0});this.updateBackground()};
_.V.updateBackground=function(){if(document.documentElement.hasAttribute("dark"))this.hostElement.style.setProperty("background-image","none");else{var J=this.computeImageUrl(this.data.thumbnail);this.hostElement.style.setProperty("background-image","url("+J+")")}};
_.V.computeRedeemButton=function(J){(J=this.get("redeemButton.buttonRenderer",J))&&(J=Object.assign({},J,{serviceEndpoint:void 0}));return J};
_.V.onRedeemButtonTap=function(J){J.stopPropagation();hde();this.redeemCode()};
_.V.redeemCode=function(){var J=this;this.isLoading=!0;var c=this.riskService.init();_.k1([c,this.loadPaymentThenable]).then(function(){var m=J.data.redeemButton.buttonRenderer.serviceEndpoint,b=_.ApJ(),x=payments.business.integration.ClientTokenFactory.createClientToken(_.L(m,_.qPu).countryCode,b);b={c:J.code.value.trim(),rd:window.btoa(b),ctk:x};m&&_.BG().resolve(_.gu).resolveCommand(m,{form:Object.assign({},b,{element:J.hostElement})})},function(){J.showGenericError();
Nm("YPC_ERROR_REASON_RISK_LIB_LOAD_FAILURE")}).thenCatch(function(){_.ha(Error("Sl"))})};
_.V.onYtServiceRequestCompleted=function(J){J.stopPropagation();this.isLoading=!1;var c,m;this.errorMessage=(c=J.detail)==null?void 0:(m=c.data)==null?void 0:m.errorMessage;var b,x;this.postRedemptionRenderer=(b=J.detail)==null?void 0:(x=b.data)==null?void 0:x.renderer;var P,p;if(J=(P=J.detail)==null?void 0:(p=P.data)==null?void 0:p.redirectEndpoint)this.isLoading=!0,_.cA(this.hostElement,"yt-navigate",{endpoint:J});this.errorMessage?Nm("YPC_ERROR_REASON_REDEEM_INNERTUBE_FAILURE"):(this.postRedemptionRenderer||
J)&&_.zu("ypcRedeemFlowSucceeded")};
_.V.onYtServiceRequestError=function(J){J.stopPropagation();this.isLoading=!1;if(J=this.get("detail.error.message",J))this.errorMessage=_.v2(J);Nm("YPC_ERROR_REASON_YPC_REDEEM_CODE_RPC_FAILURE")};
_.V.onInvokeInstrumentManagerActionCompleted=function(J){J.stopPropagation();this.redeemCode()};
_.V.onInvokeInstrumentManagerActionError=function(J){J.stopPropagation();this.isLoading=!1;switch(this.get("detail.error.errorCode",J)){case "instrumentManagerLoadError":this.showGenericError();Nm("YPC_ERROR_REASON_INST_MANAGER_LOAD_FAILURE");break;case "instrumentManagerCallbackError":this.showGenericError();Nm("YPC_ERROR_REASON_INST_MANAGER_CALLBACK_FAILURE");break;case "instrumentManagerCancelled":_.zu("ypcRedeemFlowCancelled")}};
_.V.onInput=function(){var J=this;_.hO(this,"onInput",function(){var c=J.code.value.trim();J.redeemButtonDisabled=c.length<J.MIN_CODE_LENGTH||c.length>J.MAX_CODE_LENGTH},200)};
_.V.onCodeInputKeypress=function(J){J.keyCode!==13||this.redeemButtonDisabled||this.isLoading||(hde(),this.redeemCode())};
_.V.computeImageUrl=function(J){return J?_.yn(J.thumbnails,600):null};
_.V.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;
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],TI.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],TI.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],TI.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],TI.prototype,"isLoading",void 0);_.O([_.U(),_.R("design:type",Boolean)],TI.prototype,"redeemButtonDisabled",void 0);
_.O([_.U(),_.R("design:type",Object)],TI.prototype,"errorMessage",void 0);_.O([_.U(),_.R("design:type",Object)],TI.prototype,"postRedemptionRenderer",void 0);_.O([_.U(),_.R("design:type",Object)],TI.prototype,"observer",void 0);_.O([_.Iu("#code"),_.R("design:type",HTMLInputElement)],TI.prototype,"code",void 0);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],TI.prototype,"dataChanged",null);
_.O([_.ps("yt-service-request-completed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],TI.prototype,"onYtServiceRequestCompleted",null);_.O([_.ps("yt-service-request-error"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],TI.prototype,"onYtServiceRequestError",null);
_.O([_.ps("yt-invoke-instrument-manager-action-completed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],TI.prototype,"onInvokeInstrumentManagerActionCompleted",null);_.O([_.ps("yt-invoke-instrument-manager-action-error"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],TI.prototype,"onInvokeInstrumentManagerActionError",null);TI=_.O([_.E({is:"ytd-redeem-code-renderer",disableElementRegistration:!0})],TI);
_.v(TI,"ytd-redeem-code-renderer",function(){if(lsr!==void 0)return lsr;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return lsr=J},{mode:1});var gIp;_.zH("itemSectionRenderer","channelAboutFullMetadataRenderer","ytd-channel-about-metadata-renderer");var wQ=function(){var J=_.h.apply(this,arguments)||this;J.businessEmailDisplayState="HIDE_SECTION";return J};
_.D(wQ,_.h);_.V=wQ.prototype;_.V.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}}}}}};
_.V.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"};
_.V.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.V.onBusinessEmailClick=function(){this.data&&(this.data.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.dK("https://www.google.com/recaptcha/api.js?trustedtypes=true"),this.businessEmailDisplayState="CAPTCHA"))};
_.V.onYtServiceRequestCompleted=function(J){var c;if((c=J.detail.data)==null?0:c.businessEmail)this.businessEmail=J.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var m;if((m=J.detail.data)==null?0:m.errorMessage)this.businessEmailErrorMessage=J.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.V.computeEmailHref=function(J){return"mailto:"+J};
_.V.computeSafeUrl=function(J){if(J)return _.n1(J)};
_.V.onBusinessEmailCaptchaSubmit=function(){var J;(J=this.data)!=null&&J.onBusinessEmailRevealClickCommand&&(J=this.JSC$19080_captchaTextarea.value)&&(J={recaptcha_response_token:J,channel_id:this.data.channelId},_.BG().resolve(_.gu).resolveCommand(this.data.onBusinessEmailRevealClickCommand,{form:Object.assign({},J,{element:this.hostElement})}))};
_.V.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.eE.Object.defineProperties(wQ.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 J,c;return!((J=this.data)==null||!J.primaryLinks)&&!((c=this.data)==null?0:c.links)&&this.data.primaryLinks.every(function(m){return m.displayUrl})}},
shouldShowLegacyLinks:{configurable:!0,enumerable:!0,get:function(){var J,c;return!((J=this.data)==null||!J.primaryLinks)&&!((c=this.data)==null?0:c.links)&&!this.shouldShowNewLinks}}});
wQ.prototype.onYtServiceRequestCompleted=wQ.prototype.onYtServiceRequestCompleted;wQ.prototype.dataChanged=wQ.prototype.dataChanged;_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],wQ.prototype,"ytComponentBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],wQ.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],wQ.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.Iu("#g-recaptcha-response"),_.R("design:type",HTMLTextAreaElement)],wQ.prototype,"JSC$19080_captchaTextarea",void 0);_.O([_.U(),_.R("design:type",Object)],wQ.prototype,"data",void 0);_.O([_.U(),_.R("design:type",String)],wQ.prototype,"businessEmailDisplayState",void 0);_.O([_.U(),_.R("design:type",String)],wQ.prototype,"businessEmail",void 0);_.O([_.U(),_.R("design:type",String)],wQ.prototype,"businessEmailErrorMessage",void 0);
_.O([_.q("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],wQ.prototype,"hideDetailsSection",null);_.O([_.kr("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],wQ.prototype,"dataChanged",null);_.O([_.q("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],wQ.prototype,"shouldShowNewLinks",null);_.O([_.q("data","shouldShowLinks"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],wQ.prototype,"shouldShowLegacyLinks",null);
_.O([_.ps("yt-service-request-completed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],wQ.prototype,"onYtServiceRequestCompleted",null);wQ=_.O([_.E({is:"ytd-channel-about-metadata-renderer",disableElementRegistration:!0})],wQ);
_.v(wQ,"ytd-channel-about-metadata-renderer",function(){if(gIp!==void 0)return gIp;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return gIp=J},{mode:1});var J6R;_.zH("itemSectionRenderer","channelFeaturedContentRenderer","ytd-channel-featured-content-renderer");var rQ=function(){return _.h.apply(this,arguments)||this};
_.D(rQ,_.h);rQ.prototype.configureRendererStamper=function(){return{"data.items":{id:"contents",mapping:{channelRenderer:"ytd-channel-renderer",playlistRenderer:"ytd-playlist-renderer",radioRenderer:"ytd-radio-renderer",showRenderer:"ytd-show-renderer",videoRenderer:"ytd-video-renderer"}}}};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],rQ.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],rQ.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],rQ.prototype,"data",void 0);rQ=_.O([_.E({is:"ytd-channel-featured-content-renderer",disableElementRegistration:!0})],rQ);
_.v(rQ,"ytd-channel-featured-content-renderer",function(){if(J6R!==void 0)return J6R;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return J6R=J},{mode:1});var c6u;_.zH("itemSectionRenderer","clarificationRenderer","ytd-clarification-renderer");var s6=function(){var J=_.h.apply(this,arguments)||this;J.roundContainer=!0;J.amsterdamEnabled=_.w("enable_desktop_amsterdam_info_panels");return J};
_.D(s6,_.h);_.V=s6.prototype;_.V.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.V.dataChanged=function(){this.imageWidth=this.imageHeight=24;var J=this.data;J.style==="CLARIFICATION_RENDERER_STYLE_MEDIUM"?this.imageWidth=this.imageHeight=80:!J.style&&J.image&&J.image.thumbnails.length&&(J=J.image.thumbnails[0],this.imageWidth=J.width||0,this.imageHeight=J.height||0)};
_.V.computeSource=function(J){return J.secondarySource?_.OG(J.secondarySource):_.OG(J.source)};
_.V.computeClarifyStyle=function(J){return J?J.replace("CLARIFICATION_RENDERER_STYLE_","").toLowerCase():""};
_.V.isLargeStyle=function(J){return J==="CLARIFICATION_RENDERER_STYLE_LARGE"};
_.V.computeBackgroundStyle=function(J){return J?J.replace("CLARIFICATION_RENDERER_BACKGROUND_","").toLowerCase():""};
_.V.computeHasActionButton=function(J){return!!J.actionButton};
_.V.computeHasBottomSection=function(J){return!!J.ctaHasBottomSection};
_.V.computeIsSourceMissing=function(J){return J.ctaHasBottomSection===!1?!0:J&&this.computeSource(J)?!1:!0};
_.V.computeSecondaryEndpoint=function(J){return J.secondaryEndpoint||J.endpoint};
s6.prototype.dataChanged=s6.prototype.dataChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],s6.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],s6.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],s6.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Number)],s6.prototype,"imageWidth",void 0);_.O([_.U(),_.R("design:type",Number)],s6.prototype,"imageHeight",void 0);
_.O([_.U({computed:"computeSecondaryEndpoint(data)"}),_.R("design:type",Object)],s6.prototype,"secondaryEndpoint",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeHasActionButton(data)"}),_.R("design:type",Boolean)],s6.prototype,"hasActionButton",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeHasBottomSection(data)"}),_.R("design:type",Boolean)],s6.prototype,"hasBottomSection",void 0);
_.O([_.U({reflectToAttribute:!0,computed:"computeIsSourceMissing(data)"}),_.R("design:type",Boolean)],s6.prototype,"missingSource",void 0);_.O([_.U({computed:"computeIcon_(data.icon)"}),_.R("design:type",String)],s6.prototype,"icon",void 0);_.O([_.U({computed:"computeIcon_(data.secondaryIcon)"}),_.R("design:type",String)],s6.prototype,"secondaryIcon",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeClarifyStyle(data.style)"}),_.R("design:type",String)],s6.prototype,"clarifyStyle",void 0);
_.O([_.U({reflectToAttribute:!0,computed:"computeBackgroundStyle(data.background)"}),_.R("design:type",String)],s6.prototype,"backgroundStyle",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],s6.prototype,"roundContainer",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],s6.prototype,"amsterdamEnabled",void 0);_.O([_.kr("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],s6.prototype,"dataChanged",null);
s6=_.O([_.E({is:"ytd-clarification-renderer",disableElementRegistration:!0})],s6);
_.v(s6,"ytd-clarification-renderer",function(){if(c6u!==void 0)return c6u;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return c6u=J},{mode:1});var mcR;var bJR;var Ln=function(){var J=_.h.apply(this,arguments)||this;J.amsterdamEnabled=_.w("enable_desktop_amsterdam_info_panels");return J};
_.D(Ln,_.h);_.V=Ln.prototype;_.V.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.V.computeIcon=function(J){return J?"yt-icons:"+J.toLowerCase():null};
_.V.computeUseContacts=function(J){return!!J.contacts&&J.contacts.length>0};
_.V.computePhoneContact=function(J){var c,m;return(c=J.contacts)==null?void 0:(m=c.find(function(b){var x;return(b==null?void 0:(x=b.icon)==null?void 0:x.iconType)==="PHONE"}))==null?void 0:m.actionText};
_.V.computeSmsContact=function(J){var c,m;return(c=J.contacts)==null?void 0:(m=c.find(function(b){var x;return(b==null?void 0:(x=b.icon)==null?void 0:x.iconType)==="SMS"}))==null?void 0:m.actionText};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Ln.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],Ln.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Ln.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],Ln.prototype,"amsterdamEnabled",void 0);
_.O([_.U({reflectToAttribute:!0,computed:"computeUseContacts(data)"}),_.R("design:type",Boolean)],Ln.prototype,"useContacts",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computePhoneContact(data)"}),_.R("design:type",String)],Ln.prototype,"phoneContact",void 0);Ln=_.O([_.E({is:"ytd-single-action-emergency-support-renderer",disableElementRegistration:!0})],Ln);
_.v(Ln,"ytd-single-action-emergency-support-renderer",function(){if(bJR!==void 0)return bJR;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return bJR=J},{mode:1});_.zH("itemSectionRenderer","emergencyOneboxRenderer","ytd-emergency-onebox-renderer");var DT=function(){var J=_.h.apply(this,arguments)||this;J.roundedContainer=!0;J.amsterdamEnabled=_.w("enable_desktop_amsterdam_info_panels");return J};
_.D(DT,_.h);DT.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.firstOption":{id:"first-option",mapping:{singleActionEmergencySupportRenderer:{component:"ytd-single-action-emergency-support-renderer"}}},"data.secondOption":{id:"second-option",mapping:{singleActionEmergencySupportRenderer:{component:"ytd-single-action-emergency-support-renderer"}}}}};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],DT.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],DT.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],DT.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],DT.prototype,"roundedContainer",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],DT.prototype,"amsterdamEnabled",void 0);
DT=_.O([_.E({is:"ytd-emergency-onebox-renderer",disableElementRegistration:!0})],DT);
_.v(DT,"ytd-emergency-onebox-renderer",function(){if(mcR!==void 0)return mcR;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return mcR=J},{mode:1});var xc4;_.zH("itemSectionRenderer","exploratoryResultsRenderer","ytd-exploratory-results-renderer");var WM=function(){return _.h.apply(this,arguments)||this};
_.D(WM,_.h);WM.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelRenderer:"ytd-channel-renderer",playlistRenderer:"ytd-playlist-renderer",showRenderer:"ytd-show-renderer",videoRenderer:"ytd-video-renderer"}}}};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],WM.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],WM.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],WM.prototype,"data",void 0);WM=_.O([_.E({is:"ytd-exploratory-results-renderer",disableElementRegistration:!0})],WM);
_.v(WM,"ytd-exploratory-results-renderer",function(){if(xc4!==void 0)return xc4;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return xc4=J},{mode:1});var VY1;_.zH("itemSectionRenderer","feedbackElicitationSingleQuestionRenderer","ytd-feedback-elicitation-single-question-renderer");var zI=function(){var J=_.h.apply(this,arguments)||this;J.messageData=null;return J};
_.D(zI,_.h);_.V=zI.prototype;_.V.onServiceRequestCompleted=function(J,c){J=c.actions||[];c=0;for(var m=J.length;c<m;c++){var b=J[c],x=void 0,P=void 0;if((x=_.L(b,_.ay))==null?0:(P=x.item)==null?0:P.messageRenderer)this.messageData=_.L(b,_.ay).item.messageRenderer}};
_.V.dataChanged=function(){var J=this.data;this.hostElement.hidden=!1;_.mq(this.hostElement,"is-channel",J&&!J.avatarIs169);this.submitButton.disabled=!0;this.selectedResponseIndex=void 0};
_.V.computeThumbnailWidth=function(J){return J?126:56};
_.V.onSelectedResponseIndexChange=function(){this.selectedResponseIndex!==void 0&&(this.submitButton.disabled=!1)};
_.V.onSubmitTap=function(){var J=this.data,c=this.selectedResponseIndex;J!==void 0&&c!==void 0&&(J=J.responses[c],J.responseData&&_.BG().resolve(_.gu).resolveCommand(J.responseData,{form:{element:this.hostElement}}))};
_.V.onDismissTap=function(){this.hostElement.hidden=!0;var J=this.data;J!==void 0&&J.dismissalEndpoint&&_.BG().resolve(_.gu).resolveCommand(J.dismissalEndpoint,{form:{element:this.hostElement}})};
_.V.updateSelectedResponseIndexFromBinding=function(J){this.selectedResponseIndex=J.detail.value};
zI.prototype.onSelectedResponseIndexChange=zI.prototype.onSelectedResponseIndexChange;zI.prototype.dataChanged=zI.prototype.dataChanged;zI.prototype.onServiceRequestCompleted=zI.prototype.onServiceRequestCompleted;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],zI.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],zI.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],zI.prototype,"messageData",void 0);
_.O([_.U(),_.R("design:type",Number)],zI.prototype,"selectedResponseIndex",void 0);_.O([_.Iu("#submit-button"),_.R("design:type",HTMLButtonElement)],zI.prototype,"submitButton",void 0);_.O([_.ps("yt-service-request-completed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,_.Oi]),_.R("design:returntype")],zI.prototype,"onServiceRequestCompleted",null);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],zI.prototype,"dataChanged",null);
_.O([_.NE("selectedResponseIndex"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],zI.prototype,"onSelectedResponseIndexChange",null);zI=_.O([_.E({is:"ytd-feedback-elicitation-single-question-renderer",disableElementRegistration:!0})],zI);
_.v(zI,"ytd-feedback-elicitation-single-question-renderer",function(){if(VY1!==void 0)return VY1;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return VY1=J},{mode:1});var PhR;var un=function(){return _.h.apply(this,arguments)||this};
_.D(un,_.h);un.prototype.computeThumbnailWidth=function(J){return J?602:428};
un.prototype.updateWideFromBinding=function(J){this.wide=J.detail.value};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],un.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],un.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Boolean)],un.prototype,"wide",void 0);un=_.O([_.E({is:"ytd-newspaper-hero-video-renderer",disableElementRegistration:!0})],un);
_.v(un,"ytd-newspaper-hero-video-renderer",function(){if(PhR!==void 0)return PhR;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return PhR=J},{mode:1});var MYo;var fn=function(){return _.h.apply(this,arguments)||this};
_.D(fn,_.h);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],fn.prototype,"rendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],fn.prototype,"data",void 0);fn=_.O([_.E({is:"ytd-newspaper-mini-video-renderer",disableElementRegistration:!0})],fn);
_.v(fn,"ytd-newspaper-mini-video-renderer",function(){if(MYo!==void 0)return MYo;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return MYo=J},{mode:1});var pKR;_.zH("itemSectionRenderer","newspaperRenderer","ytd-newspaper-renderer");var Ym=function(){return _.h.apply(this,arguments)||this};
_.D(Ym,_.h);Ym.prototype.configureRendererStamper=function(){return{"data.primaryContents":{id:"primary-contents",mapping:{newspaperHeroVideoRenderer:"ytd-newspaper-hero-video-renderer"}},"data.secondaryContents":{id:"secondary-contents",mapping:{newspaperMiniVideoRenderer:"ytd-newspaper-mini-video-renderer"}}}};
_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],Ym.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Ym.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Ym.prototype,"data",void 0);Ym=_.O([_.E({is:"ytd-newspaper-renderer",disableElementRegistration:!0})],Ym);
_.v(Ym,"ytd-newspaper-renderer",function(){if(pKR!==void 0)return pKR;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return pKR=J},{mode:1});var NzR;_.zH("itemSectionRenderer","playlistVideoListRenderer","ytd-playlist-video-list-renderer");var Xa=function(){var J=_.h.apply(this,arguments)||this;J.isSegment=!1;J.actionMap={"yt-add-renderer-to-item-section-action":"handleAddRendererToItemSectionAction","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-update-playlist-action":"handleUpdatePlaylistAction"};J.nextContinuation={continuationType:"playlistVideoListContinuation"};return J};
_.D(Xa,_.h);_.V=Xa.prototype;_.V.attached=function(){_.BG();var J;(J=_.BG().resolve(_.y6(_.OR)))!=null&&(J.playlistVideoListElement=this.hostElement)};
_.V.detached=function(){var J;(J=_.BG().resolve(_.y6(_.OR)))!=null&&(J.playlistVideoListElement=void 0);J=_.BG().resolve(_.y6(_.Bp));_.w("web_enable_voting_animation")&&J&&(J.parentElem=void 0,J.videos=[],J.continuationsPresent=!1,J.showRefreshPill=!1)};
_.V.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"}}}}}};
_.V.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.V.dataChanged=function(){var J=_.BG().resolve(_.y6(_.Bp));if(_.w("web_enable_voting_animation")&&this.data&&J){var c=_.Bj(this.hostElement).querySelector("#contents");c&&(J.parentElem=c);J.addVideos(this.data.contents)}_.mvQ(this.ytReorderableBehavior)};
_.V.onRendererstamperFinished=function(){this.canReorder&&_.baj(this.ytReorderableBehavior,_.Bj(this.hostElement).querySelector("#contents"),document.documentElement,"playlist-drag-handle")};
_.V.onPlaylistReloading=function(){this.isReloading=!0};
_.V.onUpdateSetVideoId=function(J){if(J.detail&&this.data&&this.data.contents){var c=J.detail;J=this.data.contents.findIndex(function(x){var P;return((P=x.playlistVideoRenderer)==null?void 0:P.videoId)===c.videoId});
if(!(J<0)&&c.setVideoId&&(this.set("data.contents."+J+".playlistVideoRenderer.setVideoId",c.setVideoId),_.w("web_enable_voting_animation"))){var m;if(J=_.L((m=this.data.contents[J].playlistVideoRenderer)==null?void 0:m.engagementBar,_.KgQ)){var b;(b=J.actions)==null||b.forEach(function(x){if(x=_.L(x,_.CYq))x.itemId=c.setVideoId})}(m=_.BG().resolve(_.y6(_.Bp)))&&dvR(m,c.videoId,c.setVideoId)}}};
_.V.computeContentsClass=function(J){return J?"reloading":""};
_.V.computeIsSortable=function(J,c){return J&&c>0&&!this.isSegment&&!_.w("shorts_in_playlists_web")};
_.V.computeIsEditable=function(J){return J};
_.V.computeCanReorder=function(J){return J};
_.V.handlePlaylistRemoveVideosAction=function(J){if(this.get("playlistRemoveVideosAction.setVideoIds",J)&&this.data&&this.data.contents){J=_.L(J,_.AmQ).setVideoIds;for(var c=this.data.contents.length-1;c>=0;){var m=this.data.contents[c].playlistVideoRenderer;m&&m.setVideoId&&J.includes(m.setVideoId)&&this.splice("data.contents",c,1);c--}_.m9(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.updateIndices()}};
_.V.updateIndices=function(){if(this.data&&this.data.contents)for(var J=0;J<this.data.contents.length;J++)this.set("data.contents."+J+".playlistVideoRenderer.index",_.v2(String(J+1)))};
_.V.handleDrop=function(J){J=J.currDragItem;var c=_.vr(J.parentNode.childNodes,J),m=this.data.contents.splice(Number(_.OG(J.data.index))-1,1)[0];this.data.contents.splice(c,0,m);c=c?this.get("contents."+(c-1)+".playlistVideoRenderer.setVideoId",this.data):void 0;this.updateIndices();J=this.buildReorderServiceEndpoint(J.data.setVideoId,c);this.ytComponentBehavior.resolveCommand(J)};
_.V.buildReorderServiceEndpoint=function(J,c){return this.data&&this.data.onReorderEndpoint?(this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.setVideoId",J),this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.movedSetVideoIdPredecessor",c),this.data.onReorderEndpoint):null};
_.V.handleUpdatePlaylistAction=function(J){var c;(J=_.L((c=_.L(J,_.RbC))==null?void 0:c.updatedRenderer,_.Mz8))&&this.canReorder!==J.canReorder&&this.set("data.canReorder",J.canReorder);J&&J.contents&&(this.set("data.contents",J.contents),this.isReloading=!1);J&&J.continuations&&this.set("data.continuations",J.continuations)};
_.V.handleAddRendererToItemSectionAction=function(J){var c,m=(c=_.L(J,Oar))==null?void 0:c.renderer,b;m&&((b=_.L(J,Oar))==null?void 0:b.targetItemSection)===this.data.targetId&&(this.data.contents=this.data.contents||[],this.splice("data.contents",this.data.contents.length,0,m),J=_.BG().resolve(_.y6(_.Bp)),_.w("web_enable_voting_animation")&&J&&(m&&(c=_.IDe(m))&&J.recommendedVideos.push({itemId:c,videoId:_.aD2(m),voteCount:_.kCQ(m),voteSortTiebreaker:Date.now().toString()}),this.updateIndices()))};
_.V.isVotingEnabledOnPlaylist=function(J){if(!J)return!1;J=_.M(J);for(J=J.next();!J.done;J=J.next()){var c=void 0;return!!_.L((c=J.value.playlistVideoRenderer)==null?void 0:c.engagementBar,_.KgQ)}return!1};
_.V.onAppendContinuationItemsActionFinished=function(){var J;this.isVotingEnabledOnPlaylist((J=this.data)==null?void 0:J.contents)&&(this.updateIndices(),J=_.BG().resolve(_.y6(_.Bp)),_.w("web_enable_voting_animation")&&J&&this.data&&J.addVideos(this.data.contents))};
_.V.updateVideoData=function(J){if(J.detail&&this.data&&this.data.contents){var c=J.detail;J=c.toIdx;var m=c.itemId,b=c.newVoteCount,x=c.voteStatus;c=c.hideItem;var P,p,t=(P=this.data)==null?void 0:(p=P.contents)==null?void 0:p.findIndex(function(H){return _.IDe(H)===m});
if(!(t<0)){P=this.data.contents[t];var I;if((I=P.playlistVideoRenderer)==null?0:I.voteCount)P.playlistVideoRenderer.voteCount=b;var a;if(I=_.L((a=P.playlistVideoRenderer)==null?void 0:a.engagementBar,_.KgQ)){var k;(k=I.actions)==null||k.forEach(function(H){(H=_.L(H,_.CYq))&&H.initialState&&(H.initialState.votes=b,H.initialState.status=x)})}this.data.contents.splice(t,1);
c||this.data.contents.splice(J,0,P);this.updateIndices()}}};
Xa.prototype.updateVideoData=Xa.prototype.updateVideoData;Xa.prototype.onAppendContinuationItemsActionFinished=Xa.prototype.onAppendContinuationItemsActionFinished;Xa.prototype.onUpdateSetVideoId=Xa.prototype.onUpdateSetVideoId;Xa.prototype.onPlaylistReloading=Xa.prototype.onPlaylistReloading;Xa.prototype.onRendererstamperFinished=Xa.prototype.onRendererstamperFinished;Xa.prototype.dataChanged=Xa.prototype.dataChanged;
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Xa.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],Xa.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],Xa.prototype,"ytActionHandlerBehavior",void 0);_.O([_.f(_.hA.YtNextContinuationBehavior),_.R("design:type",Object)],Xa.prototype,"ytNextContinuationBehavior",void 0);
_.O([_.f(_.xv6),_.R("design:type",Object)],Xa.prototype,"ytReorderableBehavior",void 0);_.O([_.f(_.Sy),_.R("design:type",Object)],Xa.prototype,"ytContinuationHandlerBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],Xa.prototype,"ytComponentBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Xa.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Boolean)],Xa.prototype,"isReloading",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Xa.prototype,"isSegment",void 0);_.O([_.U({computed:"computeIsSortable(data.canReorder, data.contents.length)"}),_.R("design:type",Boolean)],Xa.prototype,"isSortable",void 0);_.O([_.U({computed:"computeIsEditable(data.isEditable)"}),_.R("design:type",Boolean)],Xa.prototype,"isEditable",void 0);_.O([_.U({computed:"computeCanReorder(data.canReorder)"}),_.R("design:type",Boolean)],Xa.prototype,"canReorder",void 0);
_.O([_.U({value:101}),_.R("design:type",Number)],Xa.prototype,"scrollMargin",void 0);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Xa.prototype,"dataChanged",null);_.O([_.ps("yt-rendererstamper-finished"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Xa.prototype,"onRendererstamperFinished",null);
_.O([_.ps("yt-playlist-reloading"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Xa.prototype,"onPlaylistReloading",null);_.O([_.ps("yt-update-set-video-id"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],Xa.prototype,"onUpdateSetVideoId",null);
_.O([_.ps("yt-append-continuation-items-action-finished"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Xa.prototype,"onAppendContinuationItemsActionFinished",null);_.O([_.ps("yt-update-video-data-voting-animation"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],Xa.prototype,"updateVideoData",null);Xa=_.O([_.E({is:"ytd-playlist-video-list-renderer",disableElementRegistration:!0})],Xa);
_.v(Xa,"ytd-playlist-video-list-renderer",function(){if(NzR!==void 0)return NzR;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return NzR=J},{mode:_.mP("kevlar_poly_si_batch_j047")?1:2});var tYf;var ZT=function(){return _.h.apply(this,arguments)||this};
_.D(ZT,_.h);ZT.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"}}}}};
ZT.prototype.onTextWrapperTap=function(J){var c=this.data&&this.data.navigationEndpoint;c&&!_.AP(_.OT(J),this.hostElement,["A".toString(),"BUTTON".toString()])&&_.cA(this.hostElement,"yt-navigate",{endpoint:c})};
ZT.prototype.dataChanged=function(){var J=this.get("data.offerButton.buttonRenderer.serviceEndpoint");J&&J.commandMetadata&&_.L(J.commandMetadata,_.we)&&_.L(J.commandMetadata,_.we).fireAutomatically&&_.BG().resolve(_.gu).resolveCommand(J,{form:{element:this.hostElement}})};
ZT.prototype.dataChanged=ZT.prototype.dataChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],ZT.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],ZT.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.$N),_.R("design:type",Object)],ZT.prototype,"ytdLockupBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],ZT.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0,value:function(){return _.w("enable_desktop_search_bigger_thumbs")}}),
_.R("design:type",Boolean)],ZT.prototype,"useBiggerThumbs",void 0);_.O([_.U({reflectToAttribute:!0,value:function(){return _.mG("desktop_search_bigger_thumbs_style")}}),
_.R("design:type",String)],ZT.prototype,"biggerThumbsStyle",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],ZT.prototype,"leftAligned",void 0);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],ZT.prototype,"dataChanged",null);ZT=_.O([_.E({disableElementRegistration:!0,is:"ytd-movie-renderer"})],ZT);
_.v(ZT,"ytd-movie-renderer",function(){if(tYf!==void 0)return tYf;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return tYf=J},{mode:1});var Iw1;var qm=function(){var J=_.h.apply(this,arguments)||this;J.rounded=!0;J.pageAttachedTo=void 0;J.actionMap={"yt-signal-action-pause-player":"handleSignalActionPausePlayer"};return J};
_.D(qm,_.h);qm.prototype.attached=function(){this.pageAttachedTo=_.BG().resolve(_.oO).getCurrentPage();_.cA(this.hostElement,"yt-player-attached",this.player)};
qm.prototype.detached=function(){var J;if((J=this.pageAttachedTo)==null?0:J.hostElement)_.cA(this.pageAttachedTo.hostElement,"yt-player-detached",this.player),this.pageAttachedTo=void 0};
qm.prototype.dataChanged=function(){var J;if((J=this.data)==null?0:J.videoId)J={video_id:this.data.videoId,autoplay:!0},!_.w("miniplayer_stop_channel_video_autoplay_killswitch")&&_.BG().resolve(_.Uo).isMiniplayerActive()&&(J.pause_at_start=!0,J.autoplay=!1),this.player.loadVideoWithPlayerVars(J)};
qm.prototype.handleSignalActionPausePlayer=function(){_.jp().pause()};
qm.prototype.dataChanged=qm.prototype.dataChanged;_.O([_.U(),_.R("design:type",Object)],qm.prototype,"data",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],qm.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],qm.prototype,"ytActionHandlerBehavior",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],qm.prototype,"rounded",void 0);_.O([_.Iu("#player"),_.R("design:type",Object)],qm.prototype,"player",void 0);
_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],qm.prototype,"dataChanged",null);qm=_.O([_.E({disableElementRegistration:!0,is:"ytd-channel-video-player-renderer"})],qm);
_.v(qm,"ytd-channel-video-player-renderer",function(){if(Iw1!==void 0)return Iw1;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return Iw1=J},{mode:1});var KIe;var Che;var awS;var U6=function(){var J=_.h.apply(this,arguments)||this;J.playing=!1;J.playerId="ytd-default-promo-panel-renderer-inline-playback-renderer-"+_.mj(J);J.active=!1;return J};
_.D(U6,_.h);_.V=U6.prototype;_.V.detached=function(){this.stop()};
_.V.play=function(){var J=this,c,m,b,x,P;return _.N(function(p){if(p.nextAddress==1)return J.active=!0,c=J.get("data.inlinePlaybackEndpoint.watchEndpoint"),m=c.videoId||J.data.videoId,b=c.startTimeSeconds||0,x=c.playerParams||null,_.w("kevlar_player_update_killswitch")?_.K(p,J.playerEl.update({args:{video_id:m,startSeconds:b,player_params:x}}),2):(J.playerEl.loadVideoWithPlayerVars({video_id:m,startSeconds:b,player_params:x,autoplay:!0}),p.jumpTo(2));if(p.nextAddress!=4)return _.K(p,J.playerEl.getPlayerPromise(),
4);P=p.yieldResult;P.unloadModule("annotations_module");P.addEventListener("onStateChange",function(t){J.onPlayerStateChange(t)});
_.tD(p)})};
_.V.onPlayerStateChange=function(J){if(this.active)switch(this.playing=J===1,J){case 1:_.cA(this.hostElement,"yt-default-promo-panel-renderer-playing");break;case 0:_.cA(this.hostElement,"yt-default-promo-panel-renderer-ended")}};
_.V.stop=function(){this.playerEl.stop();this.playing=this.active=!1};
_.V.resize=function(){var J=this,c;return _.N(function(m){if(m.nextAddress==1)return _.K(m,J.playerEl.getPlayerPromise(),2);c=m.yieldResult;c.setSize(NaN,NaN);_.tD(m)})};
_.O([_.U(),_.R("design:type",Object)],U6.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],U6.prototype,"playing",void 0);_.O([_.U(),_.R("design:type",Object)],U6.prototype,"playerId",void 0);_.O([_.Iu("#player"),_.R("design:type",Object)],U6.prototype,"playerEl",void 0);U6=_.O([_.E({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer-inline-playback-renderer"})],U6);
_.v(U6,"ytd-default-promo-panel-renderer-inline-playback-renderer",function(){if(awS!==void 0)return awS;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return awS=J},{mode:1});var kPR;var HJu;var S1=function(){var J=_.h.apply(this,arguments)||this;J.width=0;return J};
_.D(S1,_.h);_.V=S1.prototype;_.V.attached=function(){this.isVideoPlaying=!1;this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit");this.videoEl.addEventListener("ended",_.ME(this,this.onEnded));this.mp4El.addEventListener("error",_.ME(this,this.onError))};
_.V.detached=function(){this.videoEl.removeEventListener("ended",_.ME(this,this.onEnded));this.mp4El.removeEventListener("error",_.ME(this,this.onError))};
_.V.play=function(){var J=this;if(this.mp4El.getAttribute("src")&&this.isMp4Supported()){this.videoEl.currentTime=0;this.videoEl.load();var c=this.videoEl.play();c?c.then(function(){J.handleVideoStartPlaying()}).catch(function(){_.cA(J.hostElement,"yt-video-thumbnail-not-playing")}):this.handleVideoStartPlaying()}else _.cA(this.hostElement,"yt-video-thumbnail-not-playing")};
_.V.handleVideoStartPlaying=function(){this.videoEl.classList.remove("hideit");this.placeholderEl.classList.add("hideit");this.isVideoPlaying=!0};
_.V.stop=function(){this.isVideoPlaying&&(this.showPlaceholder(),this.isVideoPlaying=!1,this.videoEl.pause(),this.videoEl.currentTime=0)};
_.V.dataChanged=function(){var J;if((J=this.data)==null?0:J.thumbnailPlaceholder)J=_.yn(this.data.thumbnailPlaceholder.thumbnails,this.width),this.placeholderEl.style.backgroundImage="url("+J+")";this.stop();this.autoplay&&this.play()};
_.V.showPlaceholder=function(){this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit")};
_.V.onEnded=function(){this.stop();_.cA(this.hostElement,"yt-video-thumbnail-ended");this.loop&&this.play()};
_.V.onError=function(){_.cA(this.hostElement,"yt-video-thumbnail-error")};
_.V.isMp4Supported=function(){return!(!this.videoEl.canPlayType||!this.videoEl.canPlayType("video/mp4").replace(/no/,""))};
_.V.getVideoThumbnail=function(J){if(J&&J.length)return J[0]};
S1.prototype.dataChanged=S1.prototype.dataChanged;_.O([_.U(),_.R("design:type",Object)],S1.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],S1.prototype,"animatePlaceholderOnEntrance",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],S1.prototype,"autoplay",void 0);_.O([_.U({computed:"getVideoThumbnail(data.videoThumbnails)"}),_.R("design:type",Object)],S1.prototype,"videoThumbnail",void 0);
_.O([_.U(),_.R("design:type",Boolean)],S1.prototype,"loop",void 0);_.O([_.U(),_.R("design:type",Boolean)],S1.prototype,"isVideoPlaying",void 0);_.O([_.U(),_.R("design:type",Object)],S1.prototype,"width",void 0);_.O([_.Iu("#mp4"),_.R("design:type",HTMLElement)],S1.prototype,"mp4El",void 0);_.O([_.Iu("#placeholder"),_.R("design:type",HTMLElement)],S1.prototype,"placeholderEl",void 0);_.O([_.Iu("#video"),_.R("design:type",HTMLVideoElement)],S1.prototype,"videoEl",void 0);
_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],S1.prototype,"dataChanged",null);S1=_.O([_.uM({is:"yt-video-as-thumbnail-details",disableElementRegistration:!0})],S1);
_.v(S1,"yt-video-as-thumbnail-details",function(){if(HJu===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;kPR===void 0&&(kPR=document.createElement("template"));var b=kPR;m.call(c,b.content.cloneNode(!0),J.content.firstChild);HJu=J}J=HJu;return J},{mode:2});var hj=function(){var J=_.h.apply(this,arguments)||this;J.disableGridStateAware=!1;J.animationEnabled=_.w("enable_web_ketchup_hero_animation");J.transitioningOut=!1;J.narrow=!1;J.narrower=!1;J.isCarouselInFeed=!1;J.videoTimeoutJobId=0;J.panelTimeoutJobId=0;J.panelTimeoutJobStartMs=0;J.actionMap={"yt-window-resized":"onWindowResized"};return J};
_.D(hj,_.h);_.V=hj.prototype;_.V.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.V.created=function(){this.ytdGridStateAwareBehavior.gridStateAwareSizingElementSelector="#content"};
_.V.updateSize=function(){this.narrow=this.hostElement.clientHeight*16/9>this.hostElement.clientWidth;var J;this.player&&((J=this.data)==null?0:J.inlinePlaybackRenderer)&&this.player.resize();this.narrower=this.isNarrower();this.setScrimLayer(this.data)};
_.V.attached=function(){this.onWindowResized()};
_.V.detached=function(){this.clearTimeouts()};
_.V.onWindowResized=function(){this.updateSize()};
_.V.computePanelLayout=function(J){return J&&J.panelLayout||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.V.playVideo=function(){var J;this.video&&((J=this.data)==null?0:J.videoThumbnail)&&this.video.play();var c;this.player&&((c=this.data)==null?0:c.inlinePlaybackRenderer)&&this.player.play()};
_.V.stopVideo=function(){var J;this.video&&((J=this.data)==null?0:J.videoThumbnail)&&this.video.stop();var c;this.player&&((c=this.data)==null?0:c.inlinePlaybackRenderer)&&this.player.stop()};
_.V.transitionOut=function(){var J=this;this.transitioningOut=!0;return new Promise(function(c){var m=function(){_.Bj(J.hostElement).querySelector("#action-button").removeEventListener("animationend",m);_.ft.cancelJob(b);c();J.transitioningOut=!1};
var b=_.rv(_.ft,m,1E3);_.Bj(J.hostElement).querySelector("#action-button").addEventListener("animationend",m);J.player&&(J.player.playing=!1)})};
_.V.computeMetadataOrder=function(J){return J&&J.metadataOrder&&J.metadataOrder!=="DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_UNSPECIFIED"?J.metadataOrder:"DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION"};
_.V.computeByline=function(){return this.get("data.byline.defaultPromoPanelBylineRenderer")};
_.V.computeAvatarSize=function(J){return J&&J.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"?24:36};
_.V.onContentClick=function(J){if(!_.AP(_.OT(J),this.hostElement,["A".toString(),"BUTTON".toString()])){var c;if((c=this.data)==null?0:c.navigationEndpoint){var m;this.componentBehavior.resolveCommand((m=this.data)==null?void 0:m.navigationEndpoint)}}};
_.V.dataChanged=function(){this.clearTimeouts();this.setBackgroundImage(this.data);this.startPanelTimeout();this.updateSize()};
_.V.setBackgroundImage=function(J){if(J=this.getBackgroundImageUrl(J))_.Bj(this.hostElement).querySelector("#hero").style.backgroundImage="url("+J+")"};
_.V.setScrimLayer=function(J){var c=this.getScrimLayerColorStops(J);J=((J==null?void 0:J.scrimRotation)||0)+180;this.isNarrower()&&this.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"&&(J=180);_.Ub("HTML_DIR")==="rtl"&&(J=-J);c&&(_.Bj(this.hostElement).querySelector("#scrim").style.backgroundImage="linear-gradient("+J+"deg, "+c+")")};
_.V.isNarrower=function(){return this.hostElement.clientWidth<hj.NARROW_VERSION_SIZE};
_.V.getScrimLayerColorStops=function(){var J,c=(J=this.data)==null?void 0:J.scrimColorValues;if(!c)return null;if(c.length===1)return J=_.Zn(c[0]),J+" 0%, "+J+" 100%";if(c.length===3){var m=[0,72,98];return c.map(function(b,x){return _.Zn(b)+" "+m[x]+"%"}).join(",")}return null};
_.V.getBackgroundImageUrl=function(J){return J&&J.largeFormFactorBackgroundThumbnail?_.yn((J.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.landscape||J.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.portrait).thumbnails,screen.width):null};
_.V.onPlaying=function(){this.startVideoTimeout()};
_.V.onEnded=function(){this.rotate()};
_.V.startPanelTimeout=function(){var J=this;if(!this.panelTimeoutJobId){var c=this.get("data.minPanelDisplayDurationMs");c&&(this.panelTimeoutJobStartMs=Date.now(),this.panelTimeoutJobId=_.rv(_.ft,function(){J.rotate()},c))}};
_.V.startVideoTimeout=function(){var J=this;if(!this.videoTimeoutJobId){_.ft.cancelJob(this.panelTimeoutJobId);var c=Date.now()-this.panelTimeoutJobStartMs;c=Math.max(0,this.get("data.minPanelDisplayDurationMs")-c);c=Math.max(this.get("data.minVideoPlayDurationMs")||0,c);this.videoTimeoutJobId=_.rv(_.ft,function(){J.rotate()},c)}};
_.V.clearTimeouts=function(){this.panelTimeoutJobId!==0&&_.ft.cancelJob(this.panelTimeoutJobId);this.videoTimeoutJobId!==0&&_.ft.cancelJob(this.videoTimeoutJobId);this.videoTimeoutJobId=this.panelTimeoutJobId=0};
_.V.rotate=function(){this.clearTimeouts();_.cA(this.hostElement,"yt-default-promo-panel-renderer-rotate")};
_.eE.Object.defineProperties(hj.prototype,{player:{configurable:!0,enumerable:!0,get:function(){return _.Bj(this.hostElement).querySelector("#player")}},
video:{configurable:!0,enumerable:!0,get:function(){return _.Bj(this.hostElement).querySelector("#video")}}});
_.eE.Object.defineProperties(hj,{NARROW_VERSION_SIZE:{configurable:!0,enumerable:!0,get:function(){return 650}}});
hj.prototype.onEnded=hj.prototype.onEnded;hj.prototype.onPlaying=hj.prototype.onPlaying;hj.prototype.dataChanged=hj.prototype.dataChanged;_.O([_.f(_.qG),_.R("design:type",Object)],hj.prototype,"ytdGridStateAwareBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],hj.prototype,"componentBehavior",void 0);_.O([_.f(_.SO.YtdGuideStateAwareBehavior),_.R("design:type",Object)],hj.prototype,"ytdGuideStateAwareBehavior",void 0);
_.O([_.f(_.EmC),_.R("design:type",Object)],hj.prototype,"ytBooleanLogicBehavior",void 0);_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],hj.prototype,"ytActionHandlerBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],hj.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],hj.prototype,"ytRendererBehavior",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],hj.prototype,"disableGridStateAware",void 0);_.O([_.U(),_.R("design:type",Object)],hj.prototype,"data",void 0);_.O([_.U({computed:"computePanelLayout(data)",reflectToAttribute:!0}),_.R("design:type",String)],hj.prototype,"panelLayout",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],hj.prototype,"animationEnabled",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],hj.prototype,"transitioningOut",void 0);
_.O([_.U({computed:"computeMetadataOrder(data)"}),_.R("design:type",Boolean)],hj.prototype,"metadataOrder",void 0);_.O([_.U({computed:"computeByline(data)"}),_.R("design:type",Object)],hj.prototype,"byline",void 0);_.O([_.U({computed:"computeAvatarSize(data)"}),_.R("design:type",Number)],hj.prototype,"avatarSize",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],hj.prototype,"narrow",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],hj.prototype,"narrower",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],hj.prototype,"layoutStyle",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],hj.prototype,"isCarouselInFeed",void 0);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],hj.prototype,"dataChanged",null);_.O([_.ps("yt-default-promo-panel-renderer-playing"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],hj.prototype,"onPlaying",null);
_.O([_.ps("yt-default-promo-panel-renderer-ended"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],hj.prototype,"onEnded",null);hj=_.O([_.E({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer"})],hj);
_.v(hj,"ytd-default-promo-panel-renderer",function(){if(Che!==void 0)return Che;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return Che=J},{mode:1});_.zH("itemSectionRenderer","carouselItemRenderer","ytd-carousel-item-renderer");var dQ=function(){var J=_.h.apply(this,arguments)||this;J.narrower=!1;J.dotMenuVisible=!1;J.paginationThumbnailsVisible=!1;J.active=!0;J.disableGridStateAware=!1;J.actionMap={"yt-window-resized":"onWindowResized"};return J};
_.D(dQ,_.h);_.V=dQ.prototype;_.V.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]]"}}}}}};
_.V.attached=function(){document.addEventListener("yt-page-type-changed",_.ME(this,this.onPageTypeChange));this.currentPageSubtype=_.Nr(location.pathname);this.onWindowResized()};
_.V.detached=function(){this.jobId&&_.ft.cancelJob(this.jobId);this.updateSizeJobId&&_.ft.cancelJob(this.updateSizeJobId);document.removeEventListener("yt-page-type-changed",_.ME(this,this.onPageTypeChange))};
_.V.onPageTypeChange=function(J){this.active=J.detail.newPageSubtype===this.currentPageSubtype};
_.V.onWindowResized=function(){this.updateSize()};
_.V.updateSize=function(){this.narrower=this.isNarrower(this.hostElement.clientWidth);this.scrollThumbnails(this.currentItemIndex)};
_.V.setNextCarouselItem=function(){this.shouldRotate()&&this.setCarouselItem(this.currentItemIndex+1)};
_.V.setCarouselItem=function(J){J>=this.data.carouselItems.length&&this.loopCount++;this.jobId&&_.ft.cancelJob(this.jobId);var c=this.getCurrentPanelElement();c&&c.stopVideo();this.currentItemIndex=J%this.data.carouselItems.length;this.currentItem=this.data.carouselItems[this.currentItemIndex];this.scrollThumbnails(this.currentItemIndex);this.currentItemHasVideo()?(c||(c=this.getCurrentPanelElement()),c.playVideo()):this.startRotationJob()};
_.V.scrollThumbnails=function(J){if(this.computeLayoutType(this.data)==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"){var c=this.getCurrentPaginationElement();if(c){var m=_.Bj(this.hostElement).querySelector("#pagination-thumbnails");this.currentItemIndex<2?m.style.transform="translateX(0)":(c=c.offsetWidth+8,m.style.transform="translateX(-"+c*(J-Math.ceil(Math.floor(this.overlay.offsetWidth/c)/2)+1)+"px)")}}};
_.V.onDataChanged=function(){var J=this;this.data&&(this.loopCount=0,this.autorotateActive=!0,this.data.autoRotateDurationMs!==void 0&&(this.rotationTimeout=this.data.autoRotateDurationMs),this.setCarouselItem(0),this.updateSizeJobId=_.T9(_.ft,function(){J.getCurrentPanelElement().updateSize();J.updateSize()}))};
_.V.getCurrentPanelElement=function(){return _.Bj(_.Bj(this.hostElement).querySelector("#carousel-item")).querySelector("ytd-default-promo-panel-renderer")};
_.V.getCurrentPaginationElement=function(){return _.Bj(_.Bj(this.hostElement).querySelector("#pagination-thumbnails")).querySelector(".ytd-carousel-item-renderer.selected")};
_.V.getNavigationClass=function(J,c){return J===c?"selected":""};
_.V.getNavigationDurationStyle=function(J){return"animation-duration:"+(this.get("data.carouselItems."+J+".defaultPromoPanelRenderer.minPanelDisplayDurationMs")||0)+"ms;"};
_.V.onNavigationTap=function(J){var c=this,m=J.model.index;m!==this.currentItemIndex&&(this.getCurrentPanelElement().transitionOut().then(function(){c.setCarouselItem(m)}),this.autorotateActive=!1)};
_.V.onVideoThumbnailEnded=function(){var J=this;if(this.shouldRotate()){var c=this.getCurrentPaginationElement();c&&(c.classList.add("finished"),this.getCurrentPanelElement().transitionOut().then(function(){c.classList.remove("finished");J.setNextCarouselItem()}))}};
_.V.onVideoThumbnailError=function(){this.startRotationJob()};
_.V.onVideoNotPlaying=function(){this.startRotationJob()};
_.V.currentItemHasVideo=function(){return!!this.get("defaultPromoPanelRenderer.videoThumbnail",this.currentItem)||!!this.get("defaultPromoPanelRenderer.inlinePlaybackRenderer",this.currentItem)};
_.V.startRotationJob=function(){var J=this;_.ft.cancelJob(this.jobId);this.shouldRotate()&&this.rotationTimeout&&(this.jobId=_.ft.addLowPriorityJob(function(){J.getCurrentPanelElement().transitionOut().then(function(){J.setNextCarouselItem()})},this.rotationTimeout))};
_.V.computeDotMenuVisible=function(J,c){return!!J&&!!J.carouselItems&&J.carouselItems.length>1&&!J.paginationThumbnails||!!c};
_.V.computePaginationThumbnailsVisible=function(J,c){var m,b;return((b=J==null?void 0:(m=J.paginationThumbnails)==null?void 0:m.length)!=null?b:0)>1&&!c};
_.V.computeLayoutType=function(){return this.get("data.carouselItems.0.defaultPromoPanelRenderer.panelLayout")||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.V.computePaginatorAlignment=function(J){return(J==null?void 0:J.paginatorAlignment)||"CAROUSEL_ITEM_RENDERER_PAGINATOR_ALIGNMENT_END"};
_.V.shouldRotate=function(){return this.data.carouselItems.length>1&&this.active&&this.loopCount<3&&this.autorotateActive};
_.V.activeChanged=function(){this.data&&(this.active?this.setCarouselItem(this.currentItemIndex):this.currentItem=void 0)};
_.V.isNarrower=function(J){return(J!=null?J:0)<hj.NARROW_VERSION_SIZE};
dQ.prototype.activeChanged=dQ.prototype.activeChanged;dQ.prototype.onVideoNotPlaying=dQ.prototype.onVideoNotPlaying;dQ.prototype.onVideoThumbnailError=dQ.prototype.onVideoThumbnailError;dQ.prototype.onVideoThumbnailEnded=dQ.prototype.onVideoThumbnailEnded;dQ.prototype.onDataChanged=dQ.prototype.onDataChanged;_.O([_.f(_.qG),_.R("design:type",Object)],dQ.prototype,"ytdGridStateAwareBehavior",void 0);
_.O([_.f(_.SO.YtdGuideStateAwareBehavior),_.R("design:type",Object)],dQ.prototype,"ytdGuideStateAwareBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],dQ.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],dQ.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],dQ.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],dQ.prototype,"currentItem",void 0);
_.O([_.U(),_.R("design:type",Number)],dQ.prototype,"currentItemIndex",void 0);_.O([_.U(),_.R("design:type",Number)],dQ.prototype,"rotationTimeout",void 0);_.O([_.U(),_.R("design:type",Number)],dQ.prototype,"loopCount",void 0);_.O([_.U({computed:"computePaginatorAlignment(data)",reflectToAttribute:!0}),_.R("design:type",String)],dQ.prototype,"paginatorAlignment",void 0);_.O([_.U(),_.R("design:type",Number)],dQ.prototype,"jobId",void 0);
_.O([_.U(),_.R("design:type",Number)],dQ.prototype,"updateSizeJobId",void 0);_.O([_.U({value:!1,reflectToAttribute:!0}),_.R("design:type",Boolean)],dQ.prototype,"isCarouselInFeed",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],dQ.prototype,"narrower",void 0);_.O([_.U({computed:"computeDotMenuVisible(data, narrower)"}),_.R("design:type",Object)],dQ.prototype,"dotMenuVisible",void 0);
_.O([_.U({computed:"computePaginationThumbnailsVisible(data, narrower)"}),_.R("design:type",Object)],dQ.prototype,"paginationThumbnailsVisible",void 0);_.O([_.U({computed:"computeLayoutType(data)",reflectToAttribute:!0}),_.R("design:type",String)],dQ.prototype,"layoutType",void 0);_.O([_.U({value:!0,reflectToAttribute:!0}),_.R("design:type",Boolean)],dQ.prototype,"autorotateActive",void 0);_.O([_.U(),_.R("design:type",Object)],dQ.prototype,"active",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],dQ.prototype,"disableGridStateAware",void 0);_.O([_.Iu("#overlay"),_.R("design:type",HTMLElement)],dQ.prototype,"overlay",void 0);_.O([_.kr("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],dQ.prototype,"onDataChanged",null);
_.O([_.ps("yt-video-thumbnail-ended"),_.ps("yt-default-promo-panel-renderer-rotate"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],dQ.prototype,"onVideoThumbnailEnded",null);_.O([_.ps("yt-video-thumbnail-error"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],dQ.prototype,"onVideoThumbnailError",null);
_.O([_.ps("yt-video-thumbnail-not-playing"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],dQ.prototype,"onVideoNotPlaying",null);_.O([_.kr("active"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],dQ.prototype,"activeChanged",null);dQ=_.O([_.E({disableElementRegistration:!0,is:"ytd-carousel-item-renderer"})],dQ);
_.v(dQ,"ytd-carousel-item-renderer",function(){if(KIe!==void 0)return KIe;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return KIe=J},{mode:2});var iJF;var nSR;var TzR;var wKR;var $m=function(){var J=_.h.apply(this,arguments)||this;J.originalQuery=null;J.originalEndpoint=null;return J};
_.D($m,_.h);$m.prototype.computeShowOriginalQueryWithoutEndpoint_=function(J,c){return!(!J||c)};
_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],$m.prototype,"ytComponentBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],$m.prototype,"correctedText",void 0);_.O([_.U(),_.R("design:type",Object)],$m.prototype,"correctedQuery",void 0);_.O([_.U(),_.R("design:type",Object)],$m.prototype,"correctedEndpoint",void 0);_.O([_.U(),_.R("design:type",Object)],$m.prototype,"originalText",void 0);_.O([_.U(),_.R("design:type",Object)],$m.prototype,"originalQuery",void 0);
_.O([_.U(),_.R("design:type",Object)],$m.prototype,"originalEndpoint",void 0);_.O([_.U({value:!1,computed:"computeShowOriginalQueryWithoutEndpoint_(originalQuery, originalEndpoint)"}),_.R("design:type",Boolean)],$m.prototype,"showOriginalQueryWithoutEndpoint",void 0);$m=_.O([_.uM({is:"yt-search-query-correction",disableElementRegistration:!0})],$m);
_.v($m,"yt-search-query-correction",function(){if(wKR===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;TzR===void 0&&(TzR=document.createElement("template"));var b=TzR;m.call(c,b.content.cloneNode(!0),J.content.firstChild);wKR=J}J=wKR;return J},{mode:2});_.zH("itemSectionRenderer","didYouMeanRenderer","yt-did-you-mean-renderer");var GI=function(){return _.h.apply(this,arguments)||this};
_.D(GI,_.h);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],GI.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],GI.prototype,"data",void 0);GI=_.O([_.uM({is:"yt-did-you-mean-renderer",disableElementRegistration:!0})],GI);
_.v(GI,"yt-did-you-mean-renderer",function(){if(nSR===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;iJF===void 0&&(iJF=document.createElement("template"));var b=iJF;m.call(c,b.content.cloneNode(!0),J.content.firstChild);nSR=J}J=nSR;return J},{mode:2});var r65;var sHs;_.zH("itemSectionRenderer","includingResultsForRenderer","yt-including-results-for-renderer");var E6=function(){return _.h.apply(this,arguments)||this};
_.D(E6,_.h);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],E6.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],E6.prototype,"data",void 0);E6=_.O([_.uM({is:"yt-including-results-for-renderer",disableElementRegistration:!0})],E6);
_.v(E6,"yt-including-results-for-renderer",function(){if(sHs===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;r65===void 0&&(r65=document.createElement("template"));var b=r65;m.call(c,b.content.cloneNode(!0),J.content.firstChild);sHs=J}J=sHs;return J},{mode:2});var LIF;var Dce;_.zH("itemSectionRenderer","musicPassFeatureInfoRenderer","yt-music-pass-feature-info-renderer");var vM=function(){return _.h.apply(this,arguments)||this};
_.D(vM,_.h);vM.prototype.computeExtraClasses_=function(J,c){var m="";J&&(m+=" "+J.toLowerCase().replace(/_/g,"-"));c&&(m+=" "+c.toLowerCase().replace(/_/g,"-"));return m};
vM.prototype.computeUrlImg_=function(){var J=this.data;J.image&&(_.Bj(this.hostElement).querySelector("#container").style.backgroundImage="url("+_.yn(J.image.thumbnails,Number.MAX_VALUE)+")")};
vM.prototype.computeUrlImg_=vM.prototype.computeUrlImg_;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],vM.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],vM.prototype,"data",void 0);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],vM.prototype,"computeUrlImg_",null);vM=_.O([_.uM({is:"yt-music-pass-feature-info-renderer",disableElementRegistration:!0})],vM);
_.v(vM,"yt-music-pass-feature-info-renderer",function(){if(Dce===void 0){var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);var c=J.content,m=c.insertBefore;LIF===void 0&&(LIF=document.createElement("template"));var b=LIF;m.call(c,b.content.cloneNode(!0),J.content.firstChild);Dce=J}J=Dce;return J},{mode:2});var WIo;var zrs;_.zH("itemSectionRenderer","noResultsFoundShowingResultsForRenderer","yt-no-results-found-showing-results-for-renderer");var O6=function(){return _.h.apply(this,arguments)||this};
_.D(O6,_.h);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],O6.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],O6.prototype,"data",void 0);O6=_.O([_.uM({is:"yt-no-results-found-showing-results-for-renderer",disableElementRegistration:!0})],O6);
_.v(O6,"yt-no-results-found-showing-results-for-renderer",function(){if(zrs===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;WIo===void 0&&(WIo=document.createElement("template"));var b=WIo;m.call(c,b.content.cloneNode(!0),J.content.firstChild);zrs=J}J=zrs;return J},{mode:2});var uE5;var fwR;_.zH("itemSectionRenderer","resultsWithoutQuotesRenderer","yt-results-without-quotes-renderer");var Aj=function(){return _.h.apply(this,arguments)||this};
_.D(Aj,_.h);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Aj.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Aj.prototype,"data",void 0);Aj=_.O([_.uM({is:"yt-results-without-quotes-renderer",disableElementRegistration:!0})],Aj);
_.v(Aj,"yt-results-without-quotes-renderer",function(){if(fwR===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;uE5===void 0&&(uE5=document.createElement("template"));var b=uE5;m.call(c,b.content.cloneNode(!0),J.content.firstChild);fwR=J}J=fwR;return J},{mode:2});var YLR;var XKp;_.zH("itemSectionRenderer","searchNoResultsRenderer","yt-search-no-results-renderer");var RY=function(){return _.h.apply(this,arguments)||this};
_.D(RY,_.h);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],RY.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],RY.prototype,"data",void 0);RY=_.O([_.uM({is:"yt-search-no-results-renderer",disableElementRegistration:!0})],RY);
_.v(RY,"yt-search-no-results-renderer",function(){if(XKp===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;YLR===void 0&&(YLR=document.createElement("template"));var b=YLR;m.call(c,b.content.cloneNode(!0),J.content.firstChild);XKp=J}J=XKp;return J},{mode:2});var ZJR;var qL5;_.zH("itemSectionRenderer","showingResultsForRenderer","yt-showing-results-for-renderer");var oY=function(){return _.h.apply(this,arguments)||this};
_.D(oY,_.h);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],oY.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],oY.prototype,"data",void 0);oY=_.O([_.uM({is:"yt-showing-results-for-renderer",disableElementRegistration:!0})],oY);
_.v(oY,"yt-showing-results-for-renderer",function(){if(qL5===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;ZJR===void 0&&(ZJR=document.createElement("template"));var b=ZJR;m.call(c,b.content.cloneNode(!0),J.content.firstChild);qL5=J}J=qL5;return J},{mode:2});var Ucf;var SLR;var hrp;var dcr;var QK=function(){var J=_.h.apply(this,arguments)||this;J.answerExpanded=!1;return J};
_.D(QK,_.h);QK.prototype.toggleAnswer_=function(J){var c=_.Ac(J);c&&c.classList.contains("yt-simple-endpoint")||(J.preventDefault(),J.stopPropagation(),this.answerExpanded=!this.answerExpanded)};
QK.prototype.toggleAnswer_=QK.prototype.toggleAnswer_;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],QK.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],QK.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],QK.prototype,"answerExpanded",void 0);_.O([_.ps("tap"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],QK.prototype,"toggleAnswer_",null);
QK=_.O([_.uM({is:"yt-generic-faq-question-renderer",disableElementRegistration:!0})],QK);
_.v(QK,"yt-generic-faq-question-renderer",function(){if(dcr===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;hrp===void 0&&(hrp=document.createElement("template"));var b=hrp;m.call(c,b.content.cloneNode(!0),J.content.firstChild);dcr=J}J=dcr;return J},{mode:2});_.zH("itemSectionRenderer","faqSectionRenderer","yt-faq-section-renderer");var e1=function(){return _.h.apply(this,arguments)||this};
_.D(e1,_.h);e1.prototype.configureRendererStamper=function(){return{"data.questions":{id:"contents",mapping:{genericFaqQuestionRenderer:"yt-generic-faq-question-renderer"}}}};
_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],e1.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],e1.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],e1.prototype,"data",void 0);e1=_.O([_.uM({is:"yt-faq-section-renderer",disableElementRegistration:!0})],e1);
_.v(e1,"yt-faq-section-renderer",function(){if(SLR===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;Ucf===void 0&&(Ucf=document.createElement("template"));var b=Ucf;m.call(c,b.content.cloneNode(!0),J.content.firstChild);SLR=J}J=SLR;return J},{mode:2});var $c1;var GPo;_.zH("itemSectionRenderer","OfferItemExpandedRenderer","yt-offer-item-expanded-renderer");var j1=function(){return _.h.apply(this,arguments)||this};
_.D(j1,_.h);
j1.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}},"data.headingRenderer":{id:"heading-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},"data.descriptionRenderer":{id:"description-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},"data.additionalInfoRenderer":{id:"additional-info-renderer",mapping:{cardItemActionsRenderer:{component:"yt-card-item-actions-renderer"}}}}};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],j1.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],j1.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],j1.prototype,"data",void 0);j1=_.O([_.uM({is:"yt-offer-item-expanded-renderer",disableElementRegistration:!0})],j1);
_.v(j1,"yt-offer-item-expanded-renderer",function(){if(GPo===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;$c1===void 0&&($c1=document.createElement("template"));var b=$c1;m.call(c,b.content.cloneNode(!0),J.content.firstChild);GPo=J}J=GPo;return J},{mode:2});var ESR;var vSr;_.zH("itemSectionRenderer","OfferItemRenderer","yt-offer-item-renderer");var Fa=function(){return _.h.apply(this,arguments)||this};
_.D(Fa,_.h);
Fa.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"}}}}};
Fa.prototype.computeFullWidthMode=function(J){return!(!J||!J.fullWidthMode)};
Fa.prototype.computeBorderlessMode=function(J){return!(!J||!J.borderlessMode)};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Fa.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],Fa.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Fa.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeFullWidthMode(data)"}),_.R("design:type",Boolean)],Fa.prototype,"fullWidthMode",void 0);
_.O([_.U({reflectToAttribute:!0,computed:"computeBorderlessMode(data)"}),_.R("design:type",Boolean)],Fa.prototype,"borderlessMode",void 0);Fa=_.O([_.uM({is:"yt-offer-item-renderer",disableElementRegistration:!0})],Fa);
_.v(Fa,"yt-offer-item-renderer",function(){if(vSr===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;ESR===void 0&&(ESR=document.createElement("template"));var b=ESR;m.call(c,b.content.cloneNode(!0),J.content.firstChild);vSr=J}J=vSr;return J},{mode:2});var OJp;var A6R;_.zH("itemSectionRenderer","subscriptionProductHeaderRenderer","yt-subscription-product-header-renderer");var ln=function(){return _.h.apply(this,arguments)||this};
_.D(ln,_.h);ln.prototype.computeAriaLevel_=function(J){return this.getLevelID_(J)};
ln.prototype.getLevelID_=function(J){return(J=J.match(/[0-9]+$/))&&J.length==1?J[0]:"1"};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],ln.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],ln.prototype,"data",void 0);_.O([_.U({computed:"computeAriaLevel_(data.level)",reflectToAttribute:!0}),_.R("design:type",String)],ln.prototype,"ariaLevel",void 0);_.O([_.U({value:"heading",reflectToAttribute:!0}),_.R("design:type",String)],ln.prototype,"role",void 0);
_.O([_.U({value:-1,reflectToAttribute:!0}),_.R("design:type",Number)],ln.prototype,"tabindex",void 0);ln=_.O([_.uM({is:"yt-subscription-product-header-renderer",disableElementRegistration:!0})],ln);
_.v(ln,"yt-subscription-product-header-renderer",function(){if(A6R===void 0){var J=document.createElement("template");_.z(J,"\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");J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;OJp===void 0&&(OJp=document.createElement("template"));var b=OJp;m.call(c,b.content.cloneNode(!0),J.content.firstChild);A6R=J}J=A6R;return J},{mode:2});var Rrf;var oSs;_.zH("itemSectionRenderer","subscriptionProductRenderer","yt-subscription-product-renderer");var yK=function(){return _.h.apply(this,arguments)||this};
_.D(yK,_.h);yK.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:_.uB("menuRenderer"),events:!0}}};
yK.prototype.onStampFinished_=function(){_.Bj(this.hostElement).querySelector("#menu").children[0].icon="yt-icons:more_vert"};
yK.prototype.onStampFinished_=yK.prototype.onStampFinished_;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],yK.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],yK.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],yK.prototype,"data",void 0);_.O([_.ps("yt-rendererstamper-finished"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],yK.prototype,"onStampFinished_",null);
yK=_.O([_.uM({is:"yt-subscription-product-renderer",disableElementRegistration:!0})],yK);
_.v(yK,"yt-subscription-product-renderer",function(){if(oSs===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;Rrf===void 0&&(Rrf=document.createElement("template"));var b=Rrf;m.call(c,b.content.cloneNode(!0),J.content.firstChild);oSs=J}J=oSs;return J},{mode:2});var QHs;var ere;_.zH("itemSectionRenderer","subscriptionProductUpsellOfferRenderer","yt-subscription-product-upsell-offer-renderer");var BM=function(){return _.h.apply(this,arguments)||this};
_.D(BM,_.h);BM.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
BM.prototype.imageScrimColorValuesChanged_=function(){var J,c=(J=this.data)==null?void 0:J.imageScrimColorValues;_.Bj(this.hostElement).querySelector("#scrim").style.backgroundColor=c?_.Zn(c[0]):"transparent"};
BM.prototype.imageScrimColorValuesChanged_=BM.prototype.imageScrimColorValuesChanged_;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],BM.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],BM.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],BM.prototype,"data",void 0);
_.O([_.NE("data.imageScrimColorValues"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],BM.prototype,"imageScrimColorValuesChanged_",null);BM=_.O([_.uM({is:"yt-subscription-product-upsell-offer-renderer",disableElementRegistration:!0})],BM);
_.v(BM,"yt-subscription-product-upsell-offer-renderer",function(){if(ere===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;QHs===void 0&&(QHs=document.createElement("template"));var b=QHs;m.call(c,b.content.cloneNode(!0),J.content.firstChild);ere=J}J=ere;return J},{mode:2});var jHf;var FIe;var lwu;var y6u;var Bzf;var gS5;var gQ=function(){return _.h.apply(this,arguments)||this};
_.D(gQ,_.h);gQ.prototype.onYtServiceRequestError_=function(J){_.Bg(this.hostElement,J.detail.error.message)};
gQ.prototype.onYtServiceRequestError_=gQ.prototype.onYtServiceRequestError_;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],gQ.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],gQ.prototype,"data",void 0);_.O([_.U({value:!1,reflectToAttribute:!0}),_.R("design:type",Boolean)],gQ.prototype,"collapsible",void 0);_.O([_.U({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],gQ.prototype,"isManageRed",void 0);
_.O([_.ps("yt-service-request-error"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],gQ.prototype,"onYtServiceRequestError_",null);gQ=_.O([_.uM({is:"yt-single-ypc-offer-renderer",disableElementRegistration:!0})],gQ);
_.v(gQ,"yt-single-ypc-offer-renderer",function(){if(gS5===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;Bzf===void 0&&(Bzf=document.createElement("template"));var b=Bzf;m.call(c,b.content.cloneNode(!0),J.content.firstChild);gS5=J}J=gS5;return J},{mode:2});var J1=function(){return _.h.apply(this,arguments)||this};
_.D(J1,_.h);J1.prototype.configureRendererStamper=function(){return{"data.singleYpcOfferSupportedRenderers":{id:"contents",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],J1.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],J1.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],J1.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],J1.prototype,"isManageRed",void 0);J1=_.O([_.uM({is:"yt-single-ypc-offer-list-renderer",disableElementRegistration:!0})],J1);
_.v(J1,"yt-single-ypc-offer-list-renderer",function(){if(y6u===void 0){var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);var c=J.content,m=c.insertBefore;lwu===void 0&&(lwu=document.createElement("template"));var b=lwu;m.call(c,b.content.cloneNode(!0),J.content.firstChild);y6u=J}J=y6u;return J},{mode:2});var JhR;var chf;_.zH("itemSectionRenderer","ypcOffersListRenderer","yt-ypc-offers-list-renderer");var cl=function(){return _.h.apply(this,arguments)||this};
_.D(cl,_.h);cl.prototype.configureRendererStamper=function(){return{"data.offersList":{id:"contents",mapping:{singleYpcOfferListRenderer:{component:"yt-single-ypc-offer-list-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],cl.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],cl.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],cl.prototype,"data",void 0);_.O([_.U({value:!1}),_.R("design:type",Boolean)],cl.prototype,"isManageRed",void 0);cl=_.O([_.uM({is:"yt-ypc-offers-list-renderer",disableElementRegistration:!0})],cl);
_.v(cl,"yt-ypc-offers-list-renderer",function(){if(chf===void 0){var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);var c=J.content,m=c.insertBefore;JhR===void 0&&(JhR=document.createElement("template"));var b=JhR;m.call(c,b.content.cloneNode(!0),J.content.firstChild);chf=J}J=chf;return J},{mode:2});_.zH("itemSectionRenderer","unlimitedManageSubscriptionPageRenderer","yt-unlimited-manage-subscription-page-renderer");var mb=function(){return _.h.apply(this,arguments)||this};
_.D(mb,_.h);
mb.prototype.configureRendererStamper=function(){return{"data.manageFixFopButton":{id:"manage-fix-fop-button",mapping:{buttonRenderer:{component:"yt-button-renderer",params:{alignByText:!0}}}},"data.helpButton":{id:"help-button",mapping:{buttonRenderer:{component:"yt-button-renderer",params:{alignByText:!0}}}},"data.manageFamilyButton":{id:"manage-family-button",mapping:{buttonRenderer:{component:"yt-button-renderer",params:{alignByText:!0}}}},"data.manageSubscriptionButton":{id:"manage-subscription-button",mapping:{buttonRenderer:{component:"yt-button-renderer",
params:{alignByText:!0}}}},"data.offers":{id:"offers",mapping:{ypcOffersListRenderer:{component:"yt-ypc-offers-list-renderer",params:{isManageRed:!0}}}}}};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],mb.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],mb.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],mb.prototype,"data",void 0);mb=_.O([_.uM({is:"yt-unlimited-manage-subscription-page-renderer",disableElementRegistration:!0})],mb);
_.v(mb,"yt-unlimited-manage-subscription-page-renderer",function(){if(FIe===void 0){var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);var c=J.content,m=c.insertBefore;jHf===void 0&&(jHf=document.createElement("template"));var b=jHf;m.call(c,b.content.cloneNode(!0),J.content.firstChild);FIe=J}J=FIe;return J},{mode:2});var m$S;var bzr;var bV=function(){return _.h.apply(this,arguments)||this};
_.D(bV,_.h);_.V=bV.prototype;_.V.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keypress":"onKeypress_"}};
_.V.configureRendererStamper=function(){return{"data.singleYpcOfferListSupportedRenderers":{id:"offers",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",params:{collapsible:!0}}}}}};
_.V.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.V.onKeypress_=function(J){J.detail.keyboardEvent.target==this&&this.expandOffers_()};
_.V.handleHeaderTap_=function(J){J.preventDefault();J.stopPropagation();this.expandOffers_()};
_.V.expandOffers_=function(){this.offersVisible_=!0;this.hostElement.setAttribute("tabindex","-1")};
_.V.dataChanged_=function(){this.data&&(this.offersVisible_=!this.data.isCollapsed)};
bV.prototype.dataChanged_=bV.prototype.dataChanged_;_.O([_.f(_.KV),_.R("design:type",Object)],bV.prototype,"ironA11yKeysBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],bV.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],bV.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],bV.prototype,"data",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],bV.prototype,"offersVisible_",void 0);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],bV.prototype,"dataChanged_",null);bV=_.O([_.uM({is:"yt-collapsible-ypc-offer-renderer",disableElementRegistration:!0})],bV);
_.v(bV,"yt-collapsible-ypc-offer-renderer",function(){if(bzr===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;m$S===void 0&&(m$S=document.createElement("template"));var b=m$S;m.call(c,b.content.cloneNode(!0),J.content.firstChild);bzr=J}J=bzr;return J},{mode:2});var x$u;var Vce;_.zH("itemSectionRenderer","unlimitedPageHeaderRenderer","yt-unlimited-page-header-renderer");var xk=function(){return _.h.apply(this,arguments)||this};
_.D(xk,_.h);_.V=xk.prototype;_.V.configureRendererStamper=function(){return{"data.moreOffersRenderers":{id:"more-offers",mapping:{collapsibleYpcOfferRenderer:{component:"yt-collapsible-ypc-offer-renderer"}}}}};
_.V.dataChanged_=function(){if(this.data.backgroundImage){var J=_.yn(this.data.backgroundImage.thumbnails,screen.width),c=this.getScrimLayerColorStops_();this.hostElement.style.backgroundImage=c?"linear-gradient(180deg, "+c+"), url("+J+")":"url("+J+")";this.data.gtmId&&_.n9(this.data.gtmId,_.Ub("GL",""))}};
_.V.onYtServiceRequestError_=function(J){_.Bg(this.hostElement,J.detail.error.message)};
_.V.getScrimLayerColorStops_=function(){var J,c,m=(J=this.data.unlimitedHeaderV2Data)==null?void 0:(c=J.unlimitedHeaderV2Data)==null?void 0:c.scrimLayerColors;if(!m)return null;var b=100/m.length;return m.map(function(x,P){P*=b;return _.Zn(x)+" "+P+"%"}).join(",")};
_.V.computeLogoWithPadding=function(J){var c,m,b;return(J=(c=J.unlimitedLogoImage)==null?void 0:(m=c.thumbnails)==null?void 0:(b=m[0])==null?void 0:b.height)&&J%31===0?!0:!1};
xk.prototype.onYtServiceRequestError_=xk.prototype.onYtServiceRequestError_;xk.prototype.dataChanged_=xk.prototype.dataChanged_;_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],xk.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],xk.prototype,"ytRendererBehavior",void 0);_.O([_.U({computed:"computeLogoWithPadding(data)"}),_.R("design:type",Boolean)],xk.prototype,"logoWithPadding",void 0);
_.O([_.U(),_.R("design:type",Object)],xk.prototype,"data",void 0);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],xk.prototype,"dataChanged_",null);_.O([_.ps("yt-service-request-error"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],xk.prototype,"onYtServiceRequestError_",null);xk=_.O([_.uM({is:"yt-unlimited-page-header-renderer",disableElementRegistration:!0})],xk);
_.v(xk,"yt-unlimited-page-header-renderer",function(){if(Vce===void 0){var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);var c=J.content,m=c.insertBefore;x$u===void 0&&(x$u=document.createElement("template"));var b=x$u;m.call(c,b.content.cloneNode(!0),J.content.firstChild);Vce=J}J=Vce;return J},{mode:2});var P9h;var McF;_.zH("itemSectionRenderer","UnlimitedUserNotificationRenderer","yt-unlimited-user-notification-renderer");var Vy=function(){return _.h.apply(this,arguments)||this};
_.D(Vy,_.h);Vy.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-confirm":!0}}}}}};
_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],Vy.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Vy.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Vy.prototype,"data",void 0);Vy=_.O([_.uM({is:"yt-unlimited-user-notification-renderer",disableElementRegistration:!0})],Vy);
_.v(Vy,"yt-unlimited-user-notification-renderer",function(){if(McF===void 0){var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);var c=J.content,m=c.insertBefore;P9h===void 0&&(P9h=document.createElement("template"));var b=P9h;m.call(c,b.content.cloneNode(!0),J.content.firstChild);McF=J}J=McF;return J},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.H3F=_.Q1(function(J){var c=_.ou(J,{numberOfChips:5}).numberOfChips;return _.C("yt-ghost-chip-shelf",{class:"ytGhostChipShelfHost"},_.C(_.Te,{each:function(){return Array(c==null?void 0:c())}},function(){return _.C("div",{class:"ytGhostChipShelfChip"})}))},"lg");_.i3u=_.Q1(function(J){var c=_.xM(),m=_.BG().resolve(_.Ov);_.WG(function(){requestAnimationFrame(function(){var x;(x=c.lottieEl)==null||x.addEventListener("DOMLoaded",function(){var P;(P=J.onLottieLoaded)==null||P.call(J)})})});
var b={};return _.C("yt-chat-loading-view-model",{class:"ytChatLoadingViewModelHost","data-target-id":function(){var x;return((x=J.data)==null?void 0:x.call(J).targetId)||""}},_.C(_.Nd,{className:_.pq((b.ytChatLoadingViewModelRtl=m==="rtl",b)),
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=J.data)==null?void 0:x.call(J).animationUrl)||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_comp_v1.json"}}},
animationRef:c}))},"mg");
}catch(e){_._DumpException(e)}
try{
var vh4,O1f,AGs,R$F,oh4,Qh5,e$1,F_h,b6u,lZ,mMf,BaR,cD5,JDh,ghu,yGF,xMh,VtR,PLR,Mte,ye,pRr,N8u,tt5,kGs,aF4,CLR,IF5,KNr,nLf,T8s,wRo,rDu,LNF,uX4,XRS,Z6R,qwr,Sws,dMr,GG1,ELs,vLS,O61,RN4,oLF,Ql5,eNr,jlr,FN1,lFR,B8R,mAS,ckR,gLu,bwF,JkF,xAf,pms,MUR,VUS,PKp,gk,N7S,tUs,Kpf,kOR,rkR,swR,LpR,DAe,Wp1,zVR,utp,fd4,YzR,Xmr,qzs,UAs,Szo,H6r,i6s,n01;
_.jX=function(J){var c=new _.w3("Error accessing DB");return _.foq().then(function(m){return new Promise(function(b,x){try{var P=m.transaction("swpushnotificationsstore").objectStore("swpushnotificationsstore").get(J);P.onsuccess=function(){var p=P.result;b(p?p.value:null)};
P.onerror=function(){c.params={key:J,source:"onerror"};x(c)}}catch(p){c.params={key:J,
thrownError:String(p)},x(c)}})},function(){return null})};
_.Eho=function(J,c){var m=_.kRo(c);m!=="javascript:"&&m!=="data:"&&J.setAttribute("href",c)};
vh4=function(J,c){return _.P2(J.entities,"flowStateEntity",c)};
O1f=function(J){return _.$t(J,function(c){return c.languageCode==="en"})};
AGs=function(J){var c=Fd;if(_.yef(J))J.setOption("captions","stickyLoading",{}),J.setOption("captions","track",{});else{var m=_.$t(_.qdR(J),function(b){return b.displayName===c});
J.setOption("captions","track",m)}};
R$F=function(J){if(!J)return 0;var c=J.getPresentingPlayerType(),m=J.getVideoData();return m&&m.isLive?(J=J.getProgressState(c),J.seekableEnd-J.seekableStart):J.getDuration(c)};
oh4=function(J,c){for(var m=_.M(Object.keys(J)),b=m.next();!b.done;b=m.next())if(b=b.value,J[b]!==c[b])return!1;return!0};
Qh5=function(){return document.getElementById("player-control-overlay")};
e$1=function(J){J!==-1&&!_.w("player_controls_log_creation_killswitch")&&Qh5()&&(_.Y2("pcu_cs",J),_.Y2("pcu_ce"))};
F_h=function(J){return _.C("div",{class:"yt-profile-identity-info-view-model-wiz__buttons"},(J.subscribeButton?[J.subscribeButton,J.channelAccess]:[J.channelAccess]).map(function(c){return _.C("div",{class:"yt-profile-identity-info-view-model-wiz__wrap-button"},_.C("div",{class:"yt-profile-identity-info-view-model-wiz--button"},jho(c)))}))};
_.lxR=function(J){var c=J.data;J=J.hideDivider;var m={};m=(m["yt-profile-identity-info-view-model-wiz__frame"]=!0,m["yt-profile-identity-info-view-model-wiz--frame-with-no-channel-banner"]=!c.channelBanner,m);m={class:_.tP(m)};var b,x={imageBannerViewModel:{image:(b=c.channelBanner)==null?void 0:b.image,style:"IMAGE_BANNER_STYLE_INSET"}};b=_.C("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner-container"},c.channelBanner?_.C("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner"},
jho(x,{imageBannerViewModel:{isPositionRelative:!0}})):null);x=_.C("div",{class:"yt-profile-identity-info-view-model-wiz__avatar"},jho(c.avatar));var P;var p=_.C("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-header"},_.C("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name"},c.channelDisplayName),c.verifiedOrOacBadge?_.C("div",{class:"yt-profile-identity-info-view-model-wiz__badge"},_.C(_.RA,{data:{thumbnails:[{url:(P=c.verifiedOrOacBadge)==null?void 0:P.badgeUrl}]},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})):null);P=_.C("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-frame"},p,jho(c.threeDotMenu));p=_.C("div",{class:"yt-profile-identity-info-view-model-wiz__metadata"},_.C("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.C("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-handle-with-bold-font"},c.channelHandle),c.channelPronouns&&c.channelHandle?_.C("span",
{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022"):null,_.C("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-pronouns"},c.channelPronouns)),_.C("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.C("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},c.leftOfBulletInfo),c.leftOfBulletInfo&&c.rightOfBulletInfo?_.C("span",{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022"):
null,_.C("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},c.rightOfBulletInfo)));P=_.C("div",{class:"yt-profile-identity-info-view-model-wiz__trio"},P,p);return _.C("yt-profile-identity-info-view-model",{class:"yt-profile-identity-info-view-model-wiz"},_.C("div",m,b,_.C("div",{class:"yt-profile-identity-info-view-model-wiz__channel-info-section"},x,P),c.channelDescription?_.C("div",{class:"yt-profile-identity-info-view-model-wiz__channel-description"},c.channelDescription):
null,F_h(c),J?null:_.C("div",{class:"yt-profile-identity-info-view-model-wiz__divider"}," ")))};
b6u=function(J,c){var m=_.Ru(J,{}),b=yGF("top",c),x=yGF("bottom",c),P=yGF("left",c),p=yGF("right",c);return _.kx({top:function(){return lZ(m().position,b)},
bottom:function(){return lZ(m().position,x)},
left:function(){return lZ(m().position,P)},
right:function(){return lZ(m().position,p)},
position:function(){return lZ(m().positionType,BaR)},
height:function(){return lZ(m().height,ye)},
width:function(){return lZ(m().width,ye)},
"min-width":function(){return lZ(m().minWidth,ye)},
"min-height":function(){return lZ(m().minHeight,ye)},
"max-width":function(){return lZ(m().maxWidth,ye)},
"max-height":function(){return lZ(m().maxHeight,ye)},
"aspect-ratio":function(){return lZ(m().aspectRatio,String)},
"margin-top":function(){return lZ(m().margin,b)},
"margin-bottom":function(){return lZ(m().margin,x)},
"margin-left":function(){return lZ(m().margin,P)},
"margin-right":function(){return lZ(m().margin,p)},
"padding-top":function(){return lZ(m().padding,b)},
"padding-bottom":function(){return lZ(m().padding,x)},
"padding-left":function(){return lZ(m().padding,P)},
"padding-right":function(){return lZ(m().padding,p)},
"flex-direction":function(){return lZ(m().flexDirection,ghu)},
"justify-content":function(){return lZ(m().justifyContent,JDh)},
"align-items":function(){return lZ(m().alignItems,cD5)},
"flex-grow":function(){return lZ(m().flexGrow,String)},
"flex-shrink":function(){return lZ(m().flexShrink,String)},
"flex-basis":function(){return lZ(m().flexBasis,ye)},
"align-self":function(){return lZ(m().alignSelf,cD5)},
"flex-wrap":function(){return lZ(m().flexWrap,mMf)},
"align-content":function(){return lZ(m().alignContent,cD5)}})};
lZ=function(J,c){return J!==void 0?c(J):void 0};
mMf=function(J){switch(J){case "YPC_FLEX_WRAP_NO_WRAP":return"nowrap";case "YPC_FLEX_WRAP_WRAP":return"wrap";case "YPC_FLEX_WRAP_WRAP_REVERSE":return"wrap-reverse"}};
BaR=function(J){switch(J){case "YPC_POSITION_ABSOLUTE":return"absolute";case "YPC_POSITION_RELATIVE":return"relative"}};
cD5=function(J){switch(J){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"}};
JDh=function(J){switch(J){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"}};
ghu=function(J){switch(J){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"}};
yGF=function(J,c){var m=c==="rtl";switch(J){case "top":var b=xMh;break;case "bottom":b=VtR;break;case "left":b=PLR;break;default:b=Mte}return function(x){return lZ(b(x,m),ye)}};
xMh=function(J){var c=J.top;var m=J.vertical;J=J.all;var b;return(b=c!=null?c:m)!=null?b:J};
VtR=function(J){var c=J.bottom;var m=J.vertical;J=J.all;var b;return(b=c!=null?c:m)!=null?b:J};
PLR=function(J,c){var m=J.left;var b=J.end;var x=J.start;var P=J.horizontal;J=J.all;var p,t;return(t=(p=m!=null?m:c?b:x)!=null?p:P)!=null?t:J};
Mte=function(J,c){var m=J.right;var b=J.end;var x=J.start;var P=J.horizontal;J=J.all;var p,t;return(t=(p=m!=null?m:c?x:b)!=null?p:P)!=null?t:J};
ye=function(J){var c=J.value;switch(J.unit){case "YPC_DIMENSION_UNIT_POINT":return c+"px";case "YPC_DIMENSION_UNIT_FRACTION":return c+"%";default:return""+c}};
pRr=function(J){switch(J){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"}};
N8u=function(J){var c=J!=null?J:{};J=c.fontRole;var m=c.fontSize;c=c.fontWeight;if(J!==null&&m!==null)switch(J){case "YPC_FONT_ROLE_DISPLAY":switch(m){case "YPC_FONT_SIZE_L":return c==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayLHeavy":"ytStyledTextViewModelYtDisplayL";case "YPC_FONT_SIZE_M":return c==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayMHeavy":"ytStyledTextViewModelYtDisplayM";case "YPC_FONT_SIZE_S":return c==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplaySHeavy":
"ytStyledTextViewModelYtDisplayS";case "YPC_FONT_SIZE_XS":return c==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayXSHeavy":"ytStyledTextViewModelYtDisplayXS";default:return}case "YPC_FONT_ROLE_HEADLINE":switch(m){case "YPC_FONT_SIZE_L":return c==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineLHeavy":"ytStyledTextViewModelYtHeadlineL";case "YPC_FONT_SIZE_M":return c==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineMHeavy":"ytStyledTextViewModelYtHeadlineM";case "YPC_FONT_SIZE_S":return c===
"YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineSHeavy":"ytStyledTextViewModelYtHeadlineS";case "YPC_FONT_SIZE_XS":return c==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineXSHeavy":"ytStyledTextViewModelYtHeadlineXS";default:return}case "YPC_FONT_ROLE_BODY":switch(m){case "YPC_FONT_SIZE_XL":return c==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXLHeavy":"ytStyledTextViewModelYtBodyXL";case "YPC_FONT_SIZE_L":return c==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyLHeavy":
"ytStyledTextViewModelYtBodyL";case "YPC_FONT_SIZE_M":return c==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyMHeavy":"ytStyledTextViewModelYtBodyM";case "YPC_FONT_SIZE_S":return c==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodySHeavy":"ytStyledTextViewModelYtBodyS";case "YPC_FONT_SIZE_XS":return c==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXSHeavy":"ytStyledTextViewModelYtBodyXS"}}};
tt5=function(J,c){return _.P2(J.entities,"pdpStateEntity",c)};
kGs=function(J,c,m){function b(a){return Object.values(a).map(function(k){var H=k.productId;k=k.pricingOptionIndex;return IF5(x(H).pricingOptions,k).pricingOptionId})}
function x(a){return t().get(a)}
function P(a){a=b(a);m(a)}
var p=KNr([J,c],function(a,k){var H=a==null?void 0:a.selectedPricingOptions;a={};var T=!0;if(H&&k.length)for(var r=_.M(k),W=r.next();!W.done;W=r.next()){W=W.value;var Y=CLR(W.pricingOptions,function(Z){a:{Z=Z.pricingOptionId;for(var d=_.M(H),G=d.next();!G.done;G=d.next())if(G.value===Z){Z=!0;break a}Z=!1}return Z});
Y>=0&&(T=!1,a[W.groupId]={productId:W.productId,pricingOptionIndex:Y})}T&&k.length&&(a[k[0].groupId]={productId:k[0].productId,pricingOptionIndex:0});return a}),t=KNr([c],function(a){return new Map(a.map(function(k){return[k.productId,
k]}))}),I=KNr([c],function(a){var k=new Map;
a=_.M(a);for(var H=a.next();!H.done;H=a.next()){var T=H.value;H=T.groupId;var r=T.productId;T=_.M(aF4(T.pricingOptions));for(var W=T.next();!W.done;W=T.next()){var Y=_.M(W.value);W=Y.next().value;Y=Y.next().value;k.set(Y.pricingOptionId,{groupId:H,productId:r,index:W,pricingOption:Y})}}return k});
return{getProductById:x,isProductSelected:function(a){var k=x(a);if(!k)return!1;var H;return((H=p()[k.groupId])==null?void 0:H.productId)===a},
getSelectedPricingOptions:function(){return Object.values(p()).map(function(a){var k=a.productId;a=a.pricingOptionIndex;return IF5(x(k).pricingOptions,a)})},
getSelectedProductByGroupId:function(a){var k;return(a=(k=p()[a])==null?void 0:k.productId)?x(a):void 0},
onProductSelected:function(a){var k=x(a);if(k){var H=p(),T;if(((T=H[k.groupId])==null?void 0:T.productId)!==a){var r,W;T=(W=(r=H[k.groupId])==null?void 0:r.pricingOptionIndex)!=null?W:0;r=0;for(W=k.pricingOptions[Symbol.iterator]();!W.next().done;)++r;r<=T&&(T=0);r={};P(Object.assign({},H,(r[k.groupId]={productId:a,pricingOptionIndex:T},r)))}}},
onPricingOptionSelected:function(a){var k=I().get(a);if(k){a=k.groupId;var H=k.productId;k=k.index;var T=p(),r,W;if(((r=T[a])==null?void 0:r.productId)!==H||((W=T[a])==null?void 0:W.pricingOptionIndex)!==k){var Y,Z;r=(Z=(Y=T[a])==null?void 0:Y.pricingGroupAttributes)!=null?Z:[];Y={};P(Object.assign({},T,(Y[a]={productId:H,pricingOptionIndex:k,pricingGroupAttributes:r},Y)))}}},
onClearGroupSelected:function(a){var k=p();k[a]&&(k=Object.fromEntries(Object.entries(k).filter(function(H){return _.M(H).next().value!==a})),P(k))}}};
aF4=function(J){return function m(){var b,x,P,p,t;return H6r(m,function(I){switch(I.nextAddress){case 1:_.MM(I,2),b=0,x=_.M(J),P=x.next();case 4:if(P.done){I.jumpTo(2);break}p=P.value;t=i6s;return _.K(I,[b++,p],7);case 7:t(I.yieldResult);P=x.next();I.jumpTo(4);break;case 2:_.PR(I),_.p6(I,0)}})}()};
CLR=function(J,c){J=_.M(aF4(J));for(var m=J.next();!m.done;m=J.next()){var b=_.M(m.value);m=b.next().value;b=b.next().value;if(c(b))return m}return-1};
IF5=function(J,c){J=_.M(aF4(J));for(var m=J.next();!m.done;m=J.next()){var b=_.M(m.value);m=b.next().value;b=b.next().value;if(m===c)return b}};
KNr=function(J,c){var m,b;return function(){for(var x=J.map(function(p){return p()}),P=0;P<x.length;P++)if(!m||x[P]!==m[P]){m=x;
b=c.apply(null,_.L6(x));break}return b}};
nLf=function(J){var c;return!!(J.productId&&J.groupId&&((c=J.pricingOptions)==null?0:c.length)&&J.pricingOptions.every(function(m){return m.pricingOptionId}))};
T8s=function(J,c,m){return kGs(J,KNr([c],function(b){return b.filter(nLf)}),m)};
wRo=function(J,c){return c.length===0?[J]:[J.slice(0,c[0]),J.slice(c[0])].filter(function(m){return m.length>0})};
rDu=function(J){switch(J){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""}};
LNF=function(J,c,m,b){b=Object.assign({},b);_.zg(b,slp,{selectedOptionId:J,primaryButtonOverride:m});_.v9().dispatch(_.It("flowStateEntity",c,b))};
_.zN4=function(){if(!DMR){var J=_.M(_.K2(new Map,void 0,"UJImUe"));DMR=J.next().value;WNh=J.next().value}return DMR};
uX4=function(J){if(J)return _.zN4()().get(J)};
_.fFR=function(J,c){if(J&&c){var m=_.zN4();m().set(J,c);J=m();WNh(new Map(J))}};
_.YwR=function(J){return{onSubmit:function(){var c;(c=uX4(J()))==null||c.onSubmit()},
isValid:function(){var c=uX4(J());return c?c.isValid():!0},
isSubmitting:function(){var c,m;return!!((c=uX4(J()))==null?0:(m=c.isSubmitting)==null?0:m.call(c))}}};
XRS=function(J,c){return _.P2(J.entities,"contextNoteFeedEntityPayload",c)};
Z6R=function(J){J.style.height="auto";J.style.height=J.scrollHeight+"px"};
qwr=function(J){return[J.syncStep,J.asyncStep].filter(function(c){return c!==void 0})};
Sws=function(J){var c,m,b;if(J=(c=J.structuredContextNoteFormSchema)==null?void 0:(m=c.fieldSchemas)==null?void 0:(b=m.noteBody)==null?void 0:b.validationSchema)for(c=_.M(qwr(J)),m=c.next();!m.done;m=c.next()){m=m.value.rules;if(!m)break;m=_.M(m);for(m=m.next();!m.done;m=m.next())return _.L(m.value,_.UM5)}};
dMr=function(J){if(J){J=_.M(qwr(J));for(var c=J.next();!c.done;c=J.next()){c=c.value.rules;if(!c)break;c=_.M(c);for(c=c.next();!c.done;c=c.next())return _.L(c.value,hNr)}}};
GG1=function(J){if(J){J=_.M(qwr(J));for(var c=J.next();!c.done;c=J.next()){c=c.value.rules;if(!c)break;c=_.M(c);for(c=c.next();!c.done;c=c.next())return _.L(c.value,$M4)}}};
ELs=function(J){J=/^https?:\/\//.test(J)?J:"http://"+J;try{var c=_.O7(J)}catch(m){return!1}if(c.toString()!==J)return!1;J=c.JSC$8042_domain_.split(".");return J.length>1&&J.every(function(m){return!!m})};
vLS=function(J,c,m,b){var x;b=(x=b.structuredContextNoteData)==null?void 0:x.createCommentEndpoint;if(x=_.L(b,_.RXL))return x.commentText=_.v2(J),x.videoPositionMention=c,x.sources=m,b};
O61=function(J){return J==null?void 0:J.stringValue};
RN4=function(J,c,m){J=J.map(function(b,x){return{listItemViewModel:{title:b.title,subtitle:b.subtitle,leadingImage:b.leadingImage,trailingImage:x===c?ADF:void 0,rendererContext:{commandContext:{onTap:b.onTap}}}}});
return Object.assign({},m&&{header:{panelHeaderViewModel:{title:m}}},{content:{listViewModel:{listItems:J}}})};
oLF=function(J,c){if(J&&c)switch(c){case "SELECTION_TYPE_BOOL":return J.boolValue;case "SELECTION_TYPE_INT":return J.intValue;case "SELECTION_TYPE_STRING":return J.stringValue;case "SELECTION_TYPE_PRIVACY_STATUS":return J.privacyStatusValue}};
Ql5=function(J){var c;J=(c=J.options)==null?void 0:c.findIndex(function(m){return m.isSelected});
return J===void 0?-1:J};
eNr=function(J,c,m){var b=function(){return J().label},x={},P=_.pq("ytDropdownViewModelLabel",(x.ytDropdownViewModelLabelError=c,x));
return _.C(_.n,{cond:function(){return J().label&&!(m()===-1&&J().label&&!J().placeholderText)},
then:function(){return _.C("div",{class:P},_.C(_.j8,{text:b}))}})};
jlr=function(J,c){var m={};m=_.pq("ytDropdownViewModelTitle",(m.ytDropdownViewModelTitlePlaceholder=function(){return c()===-1},m));
return _.C("div",{class:m},_.C(_.j8,{text:function(){var b=J();var x=c();if(x===-1)b=b.placeholderText?b.placeholderText:b.label;else{var P,p;b=(P=b.options)==null?void 0:(p=P[x])==null?void 0:p.title}return b}}))};
FN1=function(J,c){var m=function(){return J().hint};
return _.C(_.cG,null,_.C(_.n,{cond:function(){return m()&&!c()},
then:function(){return _.C("div",{class:_.pq("ytDropdownViewModelSupport","ytDropdownViewModelSupportHint")},_.C(_.j8,{text:m,className:"ytDropdownViewModelSupportText"}))}}),_.C(_.n,{cond:c,
then:function(){return _.C("div",{id:"dropdown-view-model-error",role:"alert",class:_.pq("ytDropdownViewModelSupport","ytDropdownViewModelSupportError")},_.C(_.HP,{icon:"INFO",className:"ytDropdownViewModelSupportIcon"}),_.C(_.j8,{text:c,className:"ytDropdownViewModelSupportText"}))}}))};
lFR=function(J,c){var m=_.BG().resolve(_.Zm$);_.uN(function(){var b=J().id;b&&m!=null&&m.dropdownMap.set(b,c)})};
B8R=function(J){J=_.L(J.scheduleButton,yDr);J=_.L(J==null?void 0:J.primaryButton,_.ri);J=_.L(J==null?void 0:J.onTap,_.Xz);var c,m,b=((m=_.L(J,_.pX))==null?void 0:m.commands)||[J];m=_.M(b);for(J=m.next();!J.done&&!(c=_.L(J.value,_.Qsj));J=m.next());var x;c=(x=c)==null?void 0:x.createBroadcastRequest;if(!c)throw Error("Gj");return c};
mAS=function(J,c,m){m=m===void 0?{}:m;var b,x;return _.N(function(P){if(b=gLu(c))return P.return(b);(x=JkF(J,c,m))&&ckR(c,x);return P.return(x)})};
ckR=function(J,c){var m=bwF(J);m&&c.then(function(b){_.BG().resolve(_.mB).put(m,new _.bG({innertubeResponse:b}))})};
gLu=function(J){if(J=bwF(J)){var c=_.BG().resolve(_.mB);if(c.has(J))return c.get(J).then(function(m){return m==null?void 0:_.xg(m)})}return null};
bwF=function(J){var c=_.L(J.endpoint,_.Rz);if(c!=null&&c.videoId)return c={videoId:c.videoId},_.w("web_imp_player_mute_params")&&(c.mutedAtStart=J.startPlaybackInMutedState),_.A0("inline_playback",c)};
JkF=function(J,c,m){J=_.ds(J,c.endpoint,xAf(c,m)).then(function(b){return b});
return Promise.resolve(J)};
xAf=function(J,c){c=_.w("web_imp_player_mute_params")?Object.assign({},{vis:5,inlinePlayback:!0,inlineUnmuted:!J.startPlaybackInMutedState},c):Object.assign({},{vis:5,autonav:"1"},c);var m;c={contentPlaybackContext:_.nv(c,(m=_.L(J.endpoint.commandMetadata,_.lk))==null?void 0:m.url,window.location.href)};_.w("web_imp_player_mute_params")&&(c.overrideMutedAtStart=!J.startPlaybackInMutedState);return c};
pms=function(J,c){var m=window.MutationObserver;m&&(Bn=new m(function(b,x){b=_.M(b);for(var P=b.next();!P.done;P=b.next()){P=P.value;var p;if(p=P.type==="childList"&&P.target)a:{p=J;P=VUS(P.target);p=VUS(p);for(var t=null,I=0;I<P.length;I++)if(p.includes(P[I])){if(I===0){p=!1;break a}t=P[I];break}t?(P=PKp(P,t),p=PKp(p,t),p=P<p):p=!1}if(p){c();x.disconnect();break}}}),(m=MUR())&&Bn.observe(m,{childList:!0,
subtree:!0}))};
MUR=function(){var J=document.getElementsByTagName("ytd-rich-grid-renderer");if(J.length>0)return J[0];J=document.getElementsByTagName("ytd-section-list-renderer");return J.length>0?J[0]:null};
VUS=function(J){for(var c=[];J;)c.push(J),J=J.parentElement;return c};
PKp=function(J,c){var m=Array.from(c.children);c=J.indexOf(c);return c>0?m.indexOf(J[c-1]):-1};
gk=function(J,c,m){m=m===void 0?{}:m;return _.CX(J,m,c)};
N7S=function(J){switch(J){case "MUSIC":return!0;default:return!1}};
tUs=function(J){return J==null?void 0:J.filter(function(c){return c.premiereTrailerBadgeRenderer})};
Kpf=function(J){var c,m=J==null?void 0:(c=J.find(function(H){return H.thumbnailOverlayTimeStatusRenderer}))==null?void 0:c.thumbnailOverlayTimeStatusRenderer,b,x;
if((m==null?0:(b=m.icon)==null?0:b.iconType)&&N7S(m==null?void 0:(x=m.icon)==null?void 0:x.iconType)){var P;return{icon:m==null?void 0:(P=m.icon)==null?void 0:P.iconType}}var p,t;var I=(J=(p=J==null?void 0:(I=J.find(function(H){return H.thumbnailBottomOverlayViewModel}))==null?void 0:I.thumbnailBottomOverlayViewModel)==null?void 0:(t=p.badges)==null?void 0:t.find(function(H){var T,r;
return((T=_.L(H,Idp))==null?void 0:(r=T.inlinePlaybackBadgeData)==null?void 0:r.replicateAsTimestamp)===!0}))?_.L(J,Idp):void 0;
if(I==null?0:I.icon){var a,k;if((I=(a=_.pbu(I==null?void 0:I.icon))==null?void 0:(k=a.clientResource)==null?void 0:k.imageName)&&N7S(I))return{icon:I}}return{}};
kOR=function(J,c){var m="",b="";switch(J){case -1:case 0:m=c?"VOLUME_OFF":"VOLUME_OFF_FILLED";b=CKh;break;case 1:m=c?"VOLUME_UP_OUTLINE":"VOLUME_UP";b=ade;break;default:_.Pu(J)}return{iconName:m,ariaLabel:b}};
rkR=function(J,c){var m=Hw4,b=_.M(_.K2(iwS(new n01(function(){},m,c)),void 0,"PAnyd")),x=b.next().value,P=b.next().value,p=new n01(function(t){P(t)},m,c);
_.ui(function(){Promise.resolve().then(function(){var t,I=(t=J())!=null?t:{};p.playerControlsData=I;_.w("player_controls_skip_double_signal_old")&&(p.lastSeenPlayerApi=_.q_(I.playerApi));_.w("player_controls_skip_double_signal_old")||(p.lastSeenPlayerApi=_.q_(I.playerApi));T74(p)});
_.f2(function(){wmR(p)})},"HikUP");
_.f2(function(){wmR(p)});
return function(){return x()}};
swR=function(J){return function(c){var m=J(),b={playerState:c};if(c===1){var x;(x=m.playerApi)==null||x.loadModule("captions")}if(c===0){var P;(P=m.playerApi)==null||P.unloadModule("captions")}(c!==-1||_.w("web_imp_controls_set_player_state_killswitch"))&&m.setState(b)}};
LpR=function(J){return function(c){J().setState({playbackRate:c})}};
DAe=function(J){return function(c){var m=J(),b=m.playerApi,x=b==null?void 0:b.getVideoData(),P=(x==null?void 0:x.isLive)||!1;x=x==null?void 0:x.video_id;P={videoDuration:R$F(b||void 0),isLive:P,videoId:x};P.videoId!==m.videoId&&(P=Object.assign({},_.jXR(b),P));if(c==null?0:c.playertype)P.playerType=c.playertype;if(b){P.captionsAvailable=_.Xd(b);c=P;var p;x=(p=b.getStoryboardLevel(b.getNumberOfStoryboardLevels()-1))==null?void 0:p.intervalMs;c.storyboardInterval=x?x/1E3:void 0;P.captionsAvailable&&
(P.captionsEnabled=_.yef(b))}P.volumeMuted=!(b==null||!b.isMuted());m.setState(P)}};
Wp1=function(J){return function(c){var m=J(),b=m.playerApi;if(b){var x=b.getPresentingPlayerType();c={playedTime:c||0,percentLoaded:b.getVideoLoadedFraction(),playerType:x};m.playerState===0&&(c.playedTime=m.videoDuration);m.isLive&&(x=b.getProgressState(x),c.playedTime-=x.seekableStart,c.videoDuration=R$F(b));if(m.playerType===1)b=!1;else{var P;if((P=m.uxConfig)==null?0:P.showCuedOverlay){var p;b=!((p=m.playerApi)==null?0:p.getPlayerStateObject(m.playerType).isDomPaused)}else b=!0}b&&delete c.playedTime;
m.setState(c)}}};
zVR=function(J){return function(){var c=J(),m,b,x,P={volume:(x=(m=c.playerApi)==null?void 0:m.getVolume())!=null?x:0,volumeMuted:!((b=c.playerApi)==null||!b.isMuted())};c.setState(P)}};
utp=function(J){return function(){var c=J(),m=c.playerApi;if(m){var b={captionsAvailable:_.Xd(m)};b.captionsAvailable&&(b.captionsEnabled=_.yef(m));c.setState(b)}}};
fd4=function(J){return function(){var c=J();if(c.playerApi&&!(c.volumeMuted||c.controlsVisible&&c.isProbablyAScreenreaderUser)){c.setState({controlsVisible:!0,isProbablyAScreenreaderUser:!0});var m;(m=document.querySelector(".player-control-play-pause-icon"))==null||m.focus()}}};
YzR=function(J){return{appApi:Object.assign({},_.vfG(),{showCaptionsToggleToast:function(c){var m,b;(b=(m=J()).showCaptionsToggleToast)==null||b.call(m,c)},
openInMiniplayer:function(){var c,m;(m=(c=J()).openInMiniplayer)==null||m.call(c)}})}};
Xmr=function(J,c){var m,b,x;return!!(J==null?0:(m=J.playerResponse)==null?0:(b=m.playerConfig)==null?0:(x=b.inlinePlaybackConfig)==null?0:x.showScrubbingControls)&&!(c==null?0:c.hideScrubbingControls)};
_.Zw4=function(J){var c=!J.miniplayerIsActive;return[5,2,0].includes(J.miniplayerPlaybackState)||c};
qzs={FILLED:"youtube_fill",OUTLINE:"youtube_outline"};UAs=function(J,c){var m,b,x,P,p;_.N(function(t){if(!c.length)return t.return([]);m=[];b=_.M(c);for(x=b.next();!x.done;x=b.next())P=x.value,(p=J.resolveIcon(P))&&!J.iconCache[p.url]&&m.push(_.onL(J,p).then(function(){}).catch(function(){}));
return t.return(Promise.all(m))})};
Szo=function(J,c){var m=[];c=(new Set(c)).values();c=_.M(c);for(var b=c.next();!b.done;b=c.next()){b=b.value;for(var x=_.M(Object.values(qzs)),P=x.next();!P.done;P=x.next())m.push({iconName:b,iconStyle:P.value})}UAs(J.iconManager,m)};
_.hVF=function(J,c,m){var b=m!=null?m:J.iconsToFetch;b!=null&&b.length?c!==void 0&&c>=0?_.rv(_.ft,function(){Szo(J,b)},c):Szo(J,b):Promise.resolve()};
H6r=function(J,c){c=new _.HTr(new _.CVr(c));_.vH&&J.prototype&&(0,_.vH)(c,J.prototype);return c};
i6s=function(J){return J};
n01=function(J,c,m){var b=this;this.renderFn=J;this.listeners=c;this.context=m;this.eventListenerCleanupFunctions=[];this.recentlyNavigated=!1;var x;this.lastSeenPlayerApi=_.q_((x=this.playerControlsData)==null?void 0:x.playerApi);this.boundSetState=this.setState.bind(this);this.state=Object.assign({},_.jXR(),void 0);_.w("player_controls_render_optimization")&&window.addEventListener("state-navigatestart",function(){iwS(b).setState({playerState:-1});b.resetRecentlyNavigatedJobId&&_.ft.cancelJob(b.resetRecentlyNavigatedJobId);
b.recentlyNavigated=!0;b.resetRecentlyNavigatedJobId=_.ft.addJob(function(){b.recentlyNavigated=!1},8,1E4)})};
n01.prototype.setState=function(J){if(!_.w("mweb_player_skip_no_op_state_changes")||!oh4(J,this.state))if(this.state=Object.assign({},this.state,J),!_.w("player_controls_render_optimization")||this.state.playerState!==-1&&this.state.playerState!==5||!this.recentlyNavigated)J=-1,_.w("player_controls_log_creation_killswitch")||Qh5()||(J=(0,_.y4)()),_.Y2("pcu_s"),_.Y2("pcu_se"),_.Y2("pcu_rs"),this.renderFn(iwS(this)),_.Y2("pcu_re"),e$1(J),_.ft.addJob(function(){_.Y2("pcu_ap")},8)};
var iwS=function(J){var c;var m=_.q_((c=J.playerControlsData)==null?void 0:c.playerApi);return Object.assign({},J.state,{setState:J.boundSetState,domMeasurements:{progressBarLineRect:J.progressBarLineRect},playerApi:m,appApi:J.context.appApi,playerContainer:J.context.playerContainer,playerControlContainer:J.context.playerControlContainer,uxConfig:J.context.uxConfig})},T74=function(J){J.listeners.forEach(function(c){J.eventListenerCleanupFunctions.push(c.register(function(){return iwS(J)},function(){return J.getData()}))})},
wmR=function(J){J.eventListenerCleanupFunctions.forEach(function(c){c()});
J.eventListenerCleanupFunctions.length=0};
n01.prototype.getData=function(){return this.playerControlsData};
var Jz=new _.Q("abuseReportFlowState");var dAs=new _.Q("feedbackFormFlowState");var $Ar=new _.Q("inputBoxViewModel");var GO4=new _.Q("flowNextStepCommand");var E0s=new _.Q("flowPrevStepCommand");var v0e=new _.Q("updateFlowCommand");_.OwR=new _.Q("flowStepRenderer");_.UM5=new _.Q("lengthValidationRule");var hNr=new _.Q("regexValidationRule");var $M4=new _.Q("selectedValidationRule");var Ako=new _.Q("talkToRecsViewModel");var RVS=new _.Q("creatorGoalSetUpFlowDropdownItemViewModel");var o0f=new _.Q("creatorGoalSetUpFlowDropdownViewModel");var Idp=new _.Q("thumbnailBadgeViewModel");_.QwR=new _.Q("radioButtonGroupViewModel");var yDr=new _.Q("panelFooterViewModel");var eVh=new _.Q("ypcCancelRecurrenceCommand");var jwR=new _.Q("cancellationFlowState");var slp=new _.Q("premiumPurchaseFlowState");var Fps=new _.Q("surveyAnswerCardRenderer");var ld4=new _.Q("showMoreButtonRenderer");var ykR;var B74,g0s=function(){if(B74!==void 0)return B74;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);var c=J.content,m=c.insertBefore;ykR===void 0&&(ykR=document.createElement("template"));var b=ykR;m.call(c,b.content.cloneNode(!0),J.content.firstChild);return B74=J};var cC=function(){var J=_.h.apply(this,arguments)||this;J.goal="CREATOR_GOALS_PURCHASE_TARGET_10_SC";J.goalDescription="";J.timer="CREATOR_GOAL_TIME_LIMIT_30_MINUTES";J.tier="CREATOR_GOALS_ELIGIBLE_PURCHASE_TYPE_TEAL_SC";J.startButtonId="start-button";J.exampleButtonId="example-button";return J};
_.D(cC,_.h);_.V=cC.prototype;_.V.getGoalDropdownItems=function(){var J,c;return(c=_.L((J=this.data)==null?void 0:J.purchaseTargetDropdown,o0f))==null?void 0:c.dropdownItems};
_.V.getTimerDropdownItems=function(){var J,c;return(c=_.L((J=this.data)==null?void 0:J.timerDropdown,o0f))==null?void 0:c.dropdownItems};
_.V.getColorDropdownItems=function(){var J,c;return(c=_.L((J=this.data)==null?void 0:J.colorDropdown,o0f))==null?void 0:c.dropdownItems};
_.V.getDropdownItemText=function(J){var c;return(c=_.L(J,RVS))==null?void 0:c.itemLabel};
_.V.getDropdownItemValue=function(J){J=_.L(J,RVS);return(J==null?void 0:J.timeLimit)||(J==null?void 0:J.purchaseTarget)||(J==null?void 0:J.eligiblePurchaseType)};
_.V.updateFlowState=function(J){_.m9(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{creatorGoalSetUpFlowState:J}])};
_.V.attached=function(){this.updateFlowState({goalDescription:this.goalDescription,targetPurchases:this.goal,goalDuration:this.timer,eligiblePurchaseType:this.tier})};
_.V.updateGoalValue=function(J){this.goal=J.detail.value;this.updateFlowState({targetPurchases:this.goal})};
_.V.onTextValueChanged=function(J){this.goalDescription=J.detail.value;this.updateFlowState({goalDescription:this.goalDescription})};
_.V.updateTimerValue=function(J){this.timer=J.detail.value;this.updateFlowState({goalDuration:this.timer})};
_.V.updateTierValue=function(J){this.tier=J.detail.value;this.updateFlowState({eligiblePurchaseType:this.tier})};
_.V.getButtonViewModel=function(J){J=(J==null?void 0:J.length)>0?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED";var c,m=_.L((c=this.data)==null?void 0:c.startGoalButton,_.ri);return Object.assign({},m,{state:J})};
_.eE.Object.defineProperties(cC,{template:{configurable:!0,enumerable:!0,get:function(){return g0s()}}});
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],cC.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],cC.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],cC.prototype,"goal",void 0);_.O([_.U(),_.R("design:type",Object)],cC.prototype,"goalDescription",void 0);_.O([_.U(),_.R("design:type",Object)],cC.prototype,"timer",void 0);_.O([_.U(),_.R("design:type",Object)],cC.prototype,"tier",void 0);
_.O([_.U(),_.R("design:type",Object)],cC.prototype,"startButtonId",void 0);_.O([_.U(),_.R("design:type",Object)],cC.prototype,"exampleButtonId",void 0);cC=_.O([_.uM({is:"yt-creator-goal-set-up-flow-view-model",disableElementRegistration:!0,noInjection:!0})],cC);_.v(cC,"yt-creator-goal-set-up-flow-view-model",function(){return g0s()},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var JyR;var cyu;var mie;var mk=function(){return _.h.apply(this,arguments)||this};
_.D(mk,_.h);_.O([_.U(),_.R("design:type",Object)],mk.prototype,"data",void 0);mk=_.O([_.uM({is:"yt-survey-answer-card-renderer",disableElementRegistration:!0})],mk);
_.v(mk,"yt-survey-answer-card-renderer",function(){if(mie===void 0){var J=document.createElement("template");_.z(J,'\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>');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;cyu===void 0&&(cyu=document.createElement("template"));var b=cyu;m.call(c,b.content.cloneNode(!0),J.content.firstChild);mie=J}J=mie;return J},{mode:2});var bcS;var xio;var bf=function(){return _.h.apply(this,arguments)||this};
_.D(bf,_.h);_.V=bf.prototype;_.V.onSelectedItemChanged=function(){this.selectedItem&&this.selectedItemChanged(this.selectedItem)};
_.V.selectedItemChanged=function(J){_.m9(this.hostElement,"yt-survey-flow-step-option-changed",[{feedbackTokens:[J.feedbackToken||""]}])};
_.V.surveyAnswerCardRendererClicked=function(J){if(J.target&&_.L(J.model.item,Fps)){var c=J.target;J=_.L(J.model.item,Fps);J.onTapCommand?_.PA(c,[J.onTapCommand],c):this.data.onTapCommand&&_.PA(c,[this.data.onTapCommand],c);this.selectedItemChanged(J)}};
_.V.checkIsCancellationStyle=function(J){return J==="SURVEY_FLOW_STEP_RENDERER_STYLE_CANCELLATION"};
_.V.updateSelectedItemFromBinding=function(J){this.selectedItem=J.detail.value};
bf.prototype.onSelectedItemChanged=bf.prototype.onSelectedItemChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],bf.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],bf.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],bf.prototype,"selectedItem",void 0);_.O([_.U({computed:"checkIsCancellationStyle(data.style)",reflectToAttribute:!0}),_.R("design:type",Boolean)],bf.prototype,"isCancellationStyle",void 0);
_.O([_.NE("selectedItem"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],bf.prototype,"onSelectedItemChanged",null);bf=_.O([_.uM({is:"yt-survey-flow-step-renderer",disableElementRegistration:!0})],bf);
_.v(bf,"yt-survey-flow-step-renderer",function(){if(xio===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;bcS===void 0&&(bcS=document.createElement("template"));var b=bcS;m.call(c,b.content.cloneNode(!0),J.content.firstChild);xio=J}J=xio;return J},{mode:2});var xo=function(){var J=_.h.apply(this,arguments)||this;J.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged"};return J};
_.D(xo,_.h);xo.prototype.handleSurveyFlowStepOptionChanged=function(J){this.ytdReduxBehavior.dispatch(_.J7({type:"YPC_UPDATE_SURVEY_FEEDBACK_DATA",payload:J}));_.m9(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:J}}])};
_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],xo.prototype,"ytActionHandlerBehavior",void 0);_.O([_.f(_.fY),_.R("design:type",Object)],xo.prototype,"ytdReduxBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],xo.prototype,"data",void 0);xo=_.O([_.E({disableElementRegistration:!0,is:"ytd-survey-flow-step-renderer"})],xo);
_.v(xo,"ytd-survey-flow-step-renderer",function(){if(JyR!==void 0)return JyR;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return JyR=J},{mode:1});var jho;jho=_.Hg({avatarViewModel:_.s8,buttonViewModel:_.XU,subscribeButtonViewModel:_.sF,imageBannerViewModel:_.lWQ});_.Vjr=_.IO(_.lxR);_.J5(_.lxR);var Pdu;var Vc=function(){return _.h.apply(this,arguments)||this};
_.D(Vc,_.h);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],Vc.prototype,"ytComponentBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Vc.prototype,"data",void 0);Vc=_.O([_.E({is:"ytd-channel-history-renderer",disableElementRegistration:!0})],Vc);
_.v(Vc,"ytd-channel-history-renderer",function(){if(Pdu!==void 0)return Pdu;var J=document.createElement("template");_.z(J,'\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>');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return Pdu=J},{mode:1});var Mju;var PC=function(){return _.h.apply(this,arguments)||this};
_.D(PC,_.h);_.O([_.U(),_.R("design:type",Object)],PC.prototype,"data",void 0);PC=_.O([_.E({is:"ytd-feature-enablement-info-renderer",disableElementRegistration:!0})],PC);
_.v(PC,"ytd-feature-enablement-info-renderer",function(){if(Mju!==void 0)return Mju;var J=document.createElement("template");_.z(J,'\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>');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return Mju=J},{mode:1});var pao;var Nmr;var Mn=function(){var J=_.h.apply(this,arguments)||this;J.textBoxMaxLength=_.w("enable_tvod_campaign_code_integration")?15:12;return J};
_.D(Mn,_.h);_.V=Mn.prototype;_.V.dataChanged=function(){this.userInput=this.data.couponCode?this.data.couponCode:"";this.validate()};
_.V.onSubmit=function(){var J=this.data.serviceEndpoint,c=_.L(J,_.c8);c&&J&&(c.couponCode=this.userInput,_.BG().resolve(_.gu).resolveCommand(J,{form:{element:this.hostElement}}))};
_.V.validate=function(){var J=!(!this.data||!this.data.couponCode||this.data.couponCode!==this.userInput);this.showTick=J&&!this.data.errorMessage;this.showErrorMessage=J&&!!this.data.errorMessage;this.hideApplyButton=!this.userInput||this.showTick||this.showErrorMessage;this.disableApplyButton=_.w("enable_tvod_campaign_code_integration")?this.userInput.match(/^[\d\w]{5,15}$/)===null:this.userInput.match(/^[\d\w]{12}$/)===null};
_.V.computeStyle=function(J){return J};
_.V.computeShowValidationBelowInput=function(J){return J!=="YPC_COUPON_RENDERER_STYLE_END_ALIGN"};
_.V.updateUserInputFromBinding=function(J){this.userInput=J.currentTarget.value};
_.V.updateShowErrorMessageFromBinding=function(J){this.showErrorMessage=J.detail.value};
_.eE.Object.defineProperties(Mn.prototype,{validationState:{configurable:!0,enumerable:!0,get:function(){return this.showTick?"success":this.showErrorMessage?"error":this.userInput?"user-input":"default"}}});
Mn.prototype.dataChanged=Mn.prototype.dataChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Mn.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Mn.prototype,"data",void 0);_.O([_.U(),_.R("design:type",String)],Mn.prototype,"userInput",void 0);_.O([_.U(),_.R("design:type",Boolean)],Mn.prototype,"disableApplyButton",void 0);_.O([_.U(),_.R("design:type",Boolean)],Mn.prototype,"hideApplyButton",void 0);
_.O([_.U(),_.R("design:type",Boolean)],Mn.prototype,"hideErrorMessage",void 0);_.O([_.U(),_.R("design:type",Boolean)],Mn.prototype,"showTick",void 0);_.O([_.U(),_.R("design:type",Boolean)],Mn.prototype,"showErrorMessage",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.R("design:type",String)],Mn.prototype,"couponStyle",void 0);
_.O([_.U({reflectToAttribute:!0,computed:"computeShowValidationBelowInput(data.style)"}),_.R("design:type",Boolean)],Mn.prototype,"showValidationBelowInput",void 0);_.O([_.U(),_.R("design:type",Object)],Mn.prototype,"textBoxMaxLength",void 0);_.O([_.kr("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Mn.prototype,"dataChanged",null);
_.O([_.q("showTick","showErrorMessage","userInput"),_.R("design:type",String),_.R("design:paramtypes",[])],Mn.prototype,"validationState",null);Mn=_.O([_.E({disableElementRegistration:!0,is:"ytd-ypc-coupon-renderer"})],Mn);
_.v(Mn,"ytd-ypc-coupon-renderer",function(){if(Nmr!==void 0)return Nmr;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return Nmr=J},{mode:1});var pW=function(){return _.h.apply(this,arguments)||this};
_.D(pW,_.h);pW.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"}}}};
pW.prototype.computeStyle=function(J){return J};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],pW.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],pW.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],pW.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.R("design:type",String)],pW.prototype,"buttonStyle",void 0);pW=_.O([_.E({is:"ytd-flow-bottom-bar-renderer",disableElementRegistration:!0})],pW);
_.v(pW,"ytd-flow-bottom-bar-renderer",function(){if(pao!==void 0)return pao;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return pao=J},{mode:1});var tjh;var ISp;var K5h;var Nn=function(){return _.h.apply(this,arguments)||this};
_.D(Nn,_.h);Nn.prototype.configureRendererStamper=function(){return{"data.trailingButtons":{id:"trailing-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.backButton":{id:"back-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Nn.prototype.focus=function(J){this.title&&_.ef(this.title,J)};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Nn.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],Nn.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Nn.prototype,"data",void 0);_.O([_.Iu("#title"),_.R("design:type",HTMLElement)],Nn.prototype,"title",void 0);Nn=_.O([_.E({is:"ytd-flow-top-bar-renderer",disableElementRegistration:!0})],Nn);
_.v(Nn,"ytd-flow-top-bar-renderer",function(){if(K5h!==void 0)return K5h;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return K5h=J},{mode:1});var CdR;var aSo;var kjo;var tz=function(){return _.h.apply(this,arguments)||this};
_.D(tz,_.h);tz.prototype.freeTextValueChanged=function(){_.m9(this.hostElement,"yt-free-text-flow-step-input-changed",[{freeTextAnswers:[{answer:this.freeTextValue}]}])};
tz.prototype.updateFreeTextValueFromBinding=function(J){this.freeTextValue=J.detail.value};
_.eE.Object.defineProperties(tz.prototype,{characterLimitClass:{configurable:!0,enumerable:!0,get:function(){var J,c,m=(c=(J=this.data)==null?void 0:J.responseMaxLength)!=null?c:500,b;return((b=this.freeTextValue)!=null?b:"").length>=m?"maxed-out":""}}});
tz.prototype.freeTextValueChanged=tz.prototype.freeTextValueChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],tz.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],tz.prototype,"data",void 0);_.O([_.U(),_.R("design:type",String)],tz.prototype,"freeTextValue",void 0);_.O([_.Iu("#user-input"),_.R("design:type",HTMLTextAreaElement)],tz.prototype,"input",void 0);
_.O([_.q("freeTextValue"),_.R("design:type",Object),_.R("design:paramtypes",[])],tz.prototype,"characterLimitClass",null);_.O([_.NE("freeTextValue"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],tz.prototype,"freeTextValueChanged",null);tz=_.O([_.uM({is:"yt-free-text-input-flow-step-renderer",disableElementRegistration:!0})],tz);
_.v(tz,"yt-free-text-input-flow-step-renderer",function(){if(kjo===void 0){var J=document.createElement("template");_.z(J,'\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>');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;aSo===void 0&&(aSo=document.createElement("template"));var b=aSo;m.call(c,b.content.cloneNode(!0),J.content.firstChild);kjo=J}J=kjo;return J},{mode:2});var Ii=function(){var J=_.h.apply(this,arguments)||this;J.actionMap={"yt-free-text-flow-step-input-changed":"handleFreeTextFlowStepInputChanged"};return J};
_.D(Ii,_.h);Ii.prototype.handleFreeTextFlowStepInputChanged=function(J){_.m9(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:J}}])};
_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],Ii.prototype,"ytActionHandlerBehavior",void 0);_.O([_.f(_.fY),_.R("design:type",Object)],Ii.prototype,"ytdReduxBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Ii.prototype,"data",void 0);Ii=_.O([_.E({disableElementRegistration:!0,is:"ytd-free-text-input-flow-step-renderer"})],Ii);
_.v(Ii,"ytd-free-text-input-flow-step-renderer",function(){if(CdR!==void 0)return CdR;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return CdR=J},{mode:1});var Hcr;var icR;var KW=function(){return _.h.apply(this,arguments)||this};
_.D(KW,_.h);_.O([_.U(),_.R("design:type",Object)],KW.prototype,"data",void 0);KW=_.O([_.E({disableElementRegistration:!0,is:"ytd-metadata-line-renderer"})],KW);
_.v(KW,"ytd-metadata-line-renderer",function(){if(icR!==void 0)return icR;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return icR=J},{mode:1});var CW=function(){return _.h.apply(this,arguments)||this};
_.D(CW,_.h);CW.prototype.configureRendererStamper=function(){return{"data.metadataLines":{id:"metadata-lines",mapping:{metadataLineRenderer:{component:"ytd-metadata-line-renderer"}}}}};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],CW.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],CW.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],CW.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],CW.prototype,"isMasthead",void 0);CW=_.O([_.E({disableElementRegistration:!0,is:"ytd-media-product-renderer"})],CW);
_.v(CW,"ytd-media-product-renderer",function(){if(Hcr!==void 0)return Hcr;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return Hcr=J},{mode:1});var n95;var ai=function(){return _.h.apply(this,arguments)||this};
_.D(ai,_.h);ai.prototype.attached=function(){this.billboardImage.notifyOnLoaded=!0};
ai.prototype.onBillboardImageLoaded=function(){_.cA(this.hostElement,"yt-refit")};
ai.prototype.onBillboardImageLoaded=ai.prototype.onBillboardImageLoaded;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],ai.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],ai.prototype,"data",void 0);_.O([_.Iu("#billboardImage"),_.R("design:type",Object)],ai.prototype,"billboardImage",void 0);_.O([_.ps("yt-img-shadow-loaded"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],ai.prototype,"onBillboardImageLoaded",null);
ai=_.O([_.E({disableElementRegistration:!0,is:"ytd-billboard-masthead-renderer"})],ai);
_.v(ai,"ytd-billboard-masthead-renderer",function(){if(n95!==void 0)return n95;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return n95=J},{mode:1});var TmR;var ko=function(){var J=_.h.apply(this,arguments)||this;J.smallSize=!1;return J};
_.D(ko,_.h);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],ko.prototype,"ytComponentBehaviorType",void 0);_.O([_.U(),_.R("design:type",Object)],ko.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],ko.prototype,"smallSize",void 0);ko=_.O([_.E({disableElementRegistration:!0,is:"ytd-bullet-formatted-string"})],ko);
_.v(ko,"ytd-bullet-formatted-string",function(){if(TmR!==void 0)return TmR;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return TmR=J},{mode:1});var waS;var HC=function(){return _.h.apply(this,arguments)||this};
_.D(HC,_.h);HC.prototype.configureRendererStamper=function(){return{"data.product":{id:"product",mapping:{mediaProductRenderer:"ytd-media-product-renderer"}}}};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],HC.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],HC.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],HC.prototype,"data",void 0);HC=_.O([_.E({disableElementRegistration:!0,is:"ytd-offer-detail-renderer"})],HC);
_.v(HC,"ytd-offer-detail-renderer",function(){if(waS!==void 0)return waS;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return waS=J},{mode:1});var ryF;var nW=function(){return _.h.apply(this,arguments)||this};
_.D(nW,_.h);nW.prototype.configureRendererStamper=function(){return{"data.masthead":{id:"masthead",mapping:{billboardMastheadRenderer:"ytd-billboard-masthead-renderer",mediaProductRenderer:{component:"ytd-media-product-renderer",params:{isMasthead:!0}}}},"data.body":{id:"body",mapping:{offerDetailRenderer:"ytd-offer-detail-renderer"}}}};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],nW.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],nW.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],nW.prototype,"data",void 0);nW=_.O([_.E({disableElementRegistration:!0,is:"ytd-offer-detail-step-renderer"})],nW);
_.v(nW,"ytd-offer-detail-step-renderer",function(){if(ryF!==void 0)return ryF;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return ryF=J},{mode:1});var saf;var Tp=function(){var J=_.h.apply(this,arguments)||this;J.isInOfferModule=!1;return J};
_.D(Tp,_.h);_.V=Tp.prototype;_.V.computeHasEndpoint=function(){var J;return!((J=this.data)==null||!J.onClickCommand)};
_.V.dataChanged=function(){var J;if((J=this.data)==null?0:J.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")};
_.V.detached=function(){var J;if((J=this.data)==null?0:J.onClickCommand)this.hostElement.removeEventListener("click",this.handleClickEvent),this.hostElement.removeEventListener("keydown",this.onContentKeyDown),this.hostElement.removeEventListener("keyup",this.onContentKeyUp)};
_.V.handleClickEvent=function(){var J;if((J=this.data)==null?0:J.onClickCommand){var c;this.componentBehavior.resolveCommand((c=this.data)==null?void 0:c.onClickCommand)}};
_.V.onContentKeyDown=function(J){J.key==="Enter"?this.handleClickEvent(J):J.key===" "&&J.preventDefault()};
_.V.onContentKeyUp=function(J){J.key===" "&&this.handleClickEvent(J)};
Tp.prototype.dataChanged=Tp.prototype.dataChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Tp.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],Tp.prototype,"componentBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Tp.prototype,"data",void 0);_.O([_.U({computed:"computeHasEndpoint(data)",reflectToAttribute:!0}),_.R("design:type",Boolean)],Tp.prototype,"hasEndpoint",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Tp.prototype,"isInOfferModule",void 0);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Tp.prototype,"dataChanged",null);Tp=_.O([_.E({disableElementRegistration:!0,is:"ytd-channel-masthead-renderer"})],Tp);
_.v(Tp,"ytd-channel-masthead-renderer",function(){if(saf!==void 0)return saf;var J=document.createElement("template");_.z(J,'\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>');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return saf=J},{mode:1});var L5S;var wg=function(){var J=_.h.apply(this,arguments)||this;J.thumbnailObjectFit="CONTAIN";J.thumbnailObjectPosition="LEFT";J.isExpanded=!1;return J};
_.D(wg,_.h);_.V=wg.prototype;_.V.configureRendererStamper=function(){return{data:{id:"thumbnail",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail]]",objectFit:"[[thumbnailObjectFit]]",objectPosition:"[[thumbnailObjectPosition]]"}}}}}};
_.V.dataChanged=function(){this.resetStates()};
_.V.computeisTapOnOfferInfoContainerEnabled=function(){var J;return((J=this.data)==null?void 0:J.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"};
_.V.onExpandBtnClick=function(){var J,c=_.L((J=this.data)==null?void 0:J.showMoreButtonRenderer,ld4);c&&_.b6(_.C7(),c.trackingParams);this.isExpanded=!this.isExpanded};
_.V.onOfferInfoClick=function(J){this.isTapOnOfferInfoContainerEnabled&&(_.AP(_.OT(J)||[],this.hostElement,["A".toString(),"BUTTON".toString()])||_.RO(_.OT(J)||[],this.hostElement,["expand-button"])||this.executeTapCommand())};
_.V.onBottomBarClick=function(){this.executeTapCommand()};
_.V.executeTapCommand=function(){var J,c=(J=this.data)==null?void 0:J.tapCommand;c&&this.ytComponentBehavior.resolveCommand(c)};
_.V.resetStates=function(){this.isExpanded=!1};
_.eE.Object.defineProperties(wg.prototype,{hasThumbnail:{configurable:!0,enumerable:!0,get:function(){var J;return!((J=this.data)==null||!J.thumbnail)}},
enableExpandButton:{configurable:!0,enumerable:!0,get:function(){var J=!(!this.showMoreButtonTitle||!this.showLessButtonTitle),c,m,b;return((c=this.data)==null?void 0:c.styleType)==="CARD_STYLE_TYPE_INTERACTIVE_CARD"&&J&&!!((m=this.data)==null?0:(b=m.benefits)==null?0:b.length)}},
enableOfferContentIcon:{configurable:!0,enumerable:!0,get:function(){var J;return((J=this.data)==null?void 0:J.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"&&!this.enableExpandButton}},
showMoreButtonTitle:{configurable:!0,enumerable:!0,get:function(){var J,c,m;return((c=_.L((J=this.data)==null?void 0:J.showMoreButtonRenderer,ld4))==null?void 0:c.showMoreButtonTitle)||((m=this.data)==null?void 0:m.showMoreButtonTitle)}},
showLessButtonTitle:{configurable:!0,enumerable:!0,get:function(){var J,c,m;return((c=_.L((J=this.data)==null?void 0:J.showMoreButtonRenderer,ld4))==null?void 0:c.showLessButtonTitle)||((m=this.data)==null?void 0:m.showLessButtonTitle)}},
expandedBtnText:{configurable:!0,enumerable:!0,get:function(){if(this.isExpanded){var J;return(J=this.showLessButtonTitle)!=null?J:""}var c;return(c=this.showMoreButtonTitle)!=null?c:""}},
enableBottomBar:{configurable:!0,enumerable:!0,get:function(){var J,c,m;return((J=this.data)==null?void 0:J.layoutType)==="CARD_LAYOUT_TYPE_FULL"&&!!(((c=this.data)==null?0:c.footerTitle)||((m=this.data)==null?0:m.footerSubtitle))}}});
wg.prototype.dataChanged=wg.prototype.dataChanged;_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],wg.prototype,"ytComponentBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],wg.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],wg.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",String)],wg.prototype,"thumbnailObjectFit",void 0);
_.O([_.U(),_.R("design:type",String)],wg.prototype,"thumbnailObjectPosition",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeisTapOnOfferInfoContainerEnabled(data)"}),_.R("design:type",Boolean)],wg.prototype,"isTapOnOfferInfoContainerEnabled",void 0);_.O([_.U(),_.R("design:type",Object)],wg.prototype,"isExpanded",void 0);_.O([_.U(),_.R("design:type",Object)],wg.prototype,"data",void 0);_.O([_.U({computed:"computeIcon_(data.footerIcon)"}),_.R("design:type",String)],wg.prototype,"icon",void 0);
_.O([_.kr("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],wg.prototype,"dataChanged",null);_.O([_.q("data.thumbnail"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],wg.prototype,"hasThumbnail",null);_.O([_.q("showMoreButtonTitle","showLessButtonTitle","data.styleType","data.benefits"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],wg.prototype,"enableExpandButton",null);
_.O([_.q("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],wg.prototype,"enableOfferContentIcon",null);_.O([_.q("data.showMoreButtonRenderer","data.showMoreButtonTitle"),_.R("design:type",Object),_.R("design:paramtypes",[])],wg.prototype,"showMoreButtonTitle",null);_.O([_.q("data.showMoreButtonRenderer","data.showLessButtonTitle"),_.R("design:type",Object),_.R("design:paramtypes",[])],wg.prototype,"showLessButtonTitle",null);
_.O([_.q("isExpanded","showMoreButtonRenderer","showLessButtonTitle"),_.R("design:type",String),_.R("design:paramtypes",[])],wg.prototype,"expandedBtnText",null);_.O([_.q("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],wg.prototype,"enableBottomBar",null);wg=_.O([_.E({disableElementRegistration:!0,is:"ytd-offer-card-renderer"})],wg);
_.v(wg,"ytd-offer-card-renderer",function(){if(L5S!==void 0)return L5S;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return L5S=J},{mode:1});var Di1;var rg=function(){return _.h.apply(this,arguments)||this};
_.D(rg,_.h);rg.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"}}}};
rg.prototype.onClick=function(J){if(!_.AP(J.composedPath()||[],this.hostElement,["A".toString()])){var c,m;if((J=(m=_.L((c=this.data)==null?void 0:c.actionButton,_.ur))==null?void 0:m.command)&&!this.ytComponentBehavior.resolveCommand(J)){var b;(b=_.C7())==null||b.clickCommand(J);_.BG().resolve(_.gu).resolveCommand(J,{form:{element:this.hostElement}})}}};
_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],rg.prototype,"ytComponentBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],rg.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],rg.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],rg.prototype,"data",void 0);rg=_.O([_.E({disableElementRegistration:!0,is:"ytd-offer-content-renderer"})],rg);
_.v(rg,"ytd-offer-content-renderer",function(){if(Di1!==void 0)return Di1;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return Di1=J},{mode:1});var W5e;var su=function(){return _.h.apply(this,arguments)||this};
_.D(su,_.h);su.prototype.configureRendererStamper=function(){return{"data.offerList":{id:"offer-list",mapping:{offerContentRenderer:{component:"ytd-offer-content-renderer"},offerCardRenderer:{component:"ytd-offer-card-renderer"}}}}};
_.eE.Object.defineProperties(su.prototype,{hasHeaderData:{configurable:!0,enumerable:!0,get:function(){var J,c;return!((J=this.data)==null||!J.title)||!((c=this.data)==null||!c.description)}}});
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],su.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],su.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],su.prototype,"data",void 0);_.O([_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],su.prototype,"hasHeaderData",null);su=_.O([_.E({disableElementRegistration:!0,is:"ytd-offer-section-renderer"})],su);
_.v(su,"ytd-offer-section-renderer",function(){if(W5e!==void 0)return W5e;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return W5e=J},{mode:1});var ze1;var LW=function(){return _.h.apply(this,arguments)||this};
_.D(LW,_.h);
LW.prototype.configureRendererStamper=function(){return{"data.masthead":{id:"masthead",mapping:{billboardMastheadRenderer:"ytd-billboard-masthead-renderer",channelMastheadRenderer:"ytd-channel-masthead-renderer",mediaProductRenderer:{component:"ytd-media-product-renderer",params:{isMasthead:!0}}}},"data.body":{id:"body",mapping:{offerSectionRenderer:{component:"ytd-offer-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}},"data.coupon":{id:"coupon-section",mapping:{cardItemRenderer:{component:"yt-card-item-renderer"}}},"data.terms":{id:"terms-section",
mapping:{offerSectionRenderer:{component:"ytd-offer-section-renderer"}}}}};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],LW.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],LW.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],LW.prototype,"data",void 0);LW=_.O([_.E({disableElementRegistration:!0,is:"ytd-offer-selection-step-renderer"})],LW);
_.v(LW,"ytd-offer-selection-step-renderer",function(){if(ze1!==void 0)return ze1;var J=document.createElement("template");_.z(J,'\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>');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return ze1=J},{mode:1});var uZ4;var Dg=function(){return _.h.apply(this,arguments)||this};
_.D(Dg,_.h);Dg.prototype.computeStyle=function(J){return J};
Dg.prototype.computeImageWidth=function(J){return J==="CONFIRMATION_MASTHEAD_RENDERER_STYLE_WIDE"?150:90};
_.O([_.U({reflectToAttribute:!0,value:"CONFIRMATION_MASTHEAD_RENDERER_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.R("design:type",String)],Dg.prototype,"containerStyle",void 0);_.O([_.U({reflectToAttribute:!0,value:90,computed:"computeImageWidth(data.style)"}),_.R("design:type",String)],Dg.prototype,"imageWidth",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Dg.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Dg.prototype,"data",void 0);
Dg=_.O([_.E({disableElementRegistration:!0,is:"ytd-confirmation-masthead-renderer"})],Dg);
_.v(Dg,"ytd-confirmation-masthead-renderer",function(){if(uZ4!==void 0)return uZ4;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return uZ4=J},{mode:1});var fSe;var WC=function(){return _.h.apply(this,arguments)||this};
_.D(WC,_.h);WC.prototype.computeStyle=function(J){return J};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],WC.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],WC.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0,value:"PURCHASE_COMPLETE_DETAIL_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.R("design:type",String)],WC.prototype,"containerStyle",void 0);WC=_.O([_.E({disableElementRegistration:!0,is:"ytd-purchase-complete-detail-renderer"})],WC);
_.v(WC,"ytd-purchase-complete-detail-renderer",function(){if(fSe!==void 0)return fSe;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return fSe=J},{mode:1});var Y7R;var zp=function(){var J=_.h.apply(this,arguments)||this;J.scriptsAppended=!1;return J};
_.D(zp,_.h);zp.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"}}}};
zp.prototype.onDataChanged=function(){var J=this.get("data.gtmId");J&&(_.n9(J,_.Ub("GL","")),this.setupConversionTracking())};
zp.prototype.setupConversionTracking=function(){if(!this.scriptsAppended){var J=document.createElement("noscript");J.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(J);this.scriptsAppended=!0}};
zp.prototype.onDataChanged=zp.prototype.onDataChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],zp.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],zp.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],zp.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],zp.prototype,"scriptsAppended",void 0);
_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],zp.prototype,"onDataChanged",null);zp=_.O([_.E({disableElementRegistration:!0,is:"ytd-purchase-complete-step-renderer"})],zp);
_.v(zp,"ytd-purchase-complete-step-renderer",function(){if(Y7R!==void 0)return Y7R;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return Y7R=J},{mode:1});var XaS;var uf=function(){var J=_.h.apply(this,arguments)||this;J.darkerDarkTheme=_.w("web_darker_dark_theme");return J};
_.D(uf,_.h);uf.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],uf.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],uf.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],uf.prototype,"darkerDarkTheme",void 0);uf=_.O([_.E({disableElementRegistration:!0,is:"ytd-ypc-transaction-error-message-renderer"})],uf);
_.v(uf,"ytd-ypc-transaction-error-message-renderer",function(){if(XaS!==void 0)return XaS;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return XaS=J},{mode:1});var ZcR;var q74;var fW=function(){var J=_.h.apply(this,arguments)||this;J.handlePhoneVerificationSuccess=function(c){if(J.isValidPhoneVerificationCompletionMessageEvent(c)){var m;((m=J.data)==null?0:m.nextStepCommand)&&J.ytComponentBehavior.resolveCommand(J.data.nextStepCommand)}};
return J};
_.D(fW,_.h);fW.prototype.isValidPhoneVerificationCompletionMessageEvent=function(J){if(J.data!=="yt-phone-verification-complete")return!1;J=_.es(J.origin);return J!==null&&J.includes("youtube.com")};
fW.prototype.attached=function(){window.addEventListener("message",this.handlePhoneVerificationSuccess)};
fW.prototype.detached=function(){window.removeEventListener("message",this.handlePhoneVerificationSuccess)};
_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],fW.prototype,"ytComponentBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],fW.prototype,"data",void 0);fW=_.O([_.uM({is:"yt-feature-enablement-soft-entry-renderer",disableElementRegistration:!0})],fW);
_.v(fW,"yt-feature-enablement-soft-entry-renderer",function(){if(q74===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;ZcR===void 0&&(ZcR=document.createElement("template"));var b=ZcR;m.call(c,b.content.cloneNode(!0),J.content.firstChild);q74=J}J=q74;return J},{mode:1});var Ui5;var S7R;var heF;var dih;var Yo=function(){return _.h.apply(this,arguments)||this};
_.D(Yo,_.h);_.O([_.U(),_.R("design:type",Object)],Yo.prototype,"data",void 0);Yo=_.O([_.uM({is:"yt-benefits-item-renderer",disableElementRegistration:!0})],Yo);
_.v(Yo,"yt-benefits-item-renderer",function(){if(dih===void 0){var J=document.createElement("template");_.z(J,'\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>');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;heF===void 0&&(heF=document.createElement("template"));var b=heF;m.call(c,b.content.cloneNode(!0),J.content.firstChild);dih=J}J=dih;return J},{mode:2});var $i1;var Gje;var Xf=function(){return _.h.apply(this,arguments)||this};
_.D(Xf,_.h);Xf.prototype.configureRendererStamper=function(){return{"data.items":{id:"benefits-items",mapping:{benefitsItemRenderer:{component:"yt-benefits-item-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
Xf.prototype.computeisWithoutPadding=function(){var J;return((J=this.data)==null?void 0:J.benefitsSectionStyle)==="BENEFITS_SECTION_RENDERER_STYLE_NO_MARGIN"};
_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],Xf.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Xf.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeisWithoutPadding(data)"}),_.R("design:type",Boolean)],Xf.prototype,"isWithoutPadding",void 0);Xf=_.O([_.uM({is:"yt-benefits-section-renderer",disableElementRegistration:!0})],Xf);
_.v(Xf,"yt-benefits-section-renderer",function(){if(Gje===void 0){var J=document.createElement("template");_.z(J,'\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>');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);var c=J.content,m=c.insertBefore;$i1===void 0&&($i1=document.createElement("template"));var b=$i1;m.call(c,b.content.cloneNode(!0),J.content.firstChild);Gje=J}J=Gje;return J},{mode:2});var Zg=function(){return _.h.apply(this,arguments)||this};
_.D(Zg,_.h);Zg.prototype.configureRendererStamper=function(){return{"data.benefitsSections":{id:"benefits-sections",mapping:{benefitsSectionRenderer:{component:"yt-benefits-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
Zg.prototype.computeisUsingLargeWidth=function(){var J;return((J=this.data)==null?void 0:J.widthType)==="BENEFITS_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],Zg.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Zg.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeisUsingLargeWidth(data)"}),_.R("design:type",Boolean)],Zg.prototype,"isUsingLargeWidth",void 0);Zg=_.O([_.uM({is:"yt-benefits-flow-step-renderer",disableElementRegistration:!0})],Zg);
_.v(Zg,"yt-benefits-flow-step-renderer",function(){if(S7R===void 0){var J=document.createElement("template");_.z(J,'\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>');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);var c=J.content,m=c.insertBefore;Ui5===void 0&&(Ui5=document.createElement("template"));var b=Ui5;m.call(c,b.content.cloneNode(!0),J.content.firstChild);S7R=J}J=S7R;return J},{mode:2});var E94;var v9p;var qn=function(){return _.h.apply(this,arguments)||this};
_.D(qn,_.h);qn.prototype.checkIsUsingLargeWidth=function(){var J;return((J=this.data)==null?void 0:J.widthType)==="CONFIRMATION_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.O([_.U(),_.R("design:type",Object)],qn.prototype,"data",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],qn.prototype,"ytRendererBehavior",void 0);_.O([_.U({reflectToAttribute:!0,computed:"checkIsUsingLargeWidth(data)"}),_.R("design:type",Boolean)],qn.prototype,"isUsingLargeWidth",void 0);qn=_.O([_.uM({is:"yt-confirmation-flow-step-renderer",disableElementRegistration:!0})],qn);
_.v(qn,"yt-confirmation-flow-step-renderer",function(){if(v9p===void 0){var J=document.createElement("template");_.z(J,'\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>');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);var c=J.content,m=c.insertBefore;E94===void 0&&(E94=document.createElement("template"));var b=E94;m.call(c,b.content.cloneNode(!0),J.content.firstChild);v9p=J}J=v9p;return J},{mode:2});var Oc4;var Ayu;var Uu=function(){return _.h.apply(this,arguments)||this};
_.D(Uu,_.h);_.O([_.U(),_.R("design:type",Object)],Uu.prototype,"data",void 0);Uu=_.O([_.uM({is:"yt-info-flow-step-renderer",disableElementRegistration:!0})],Uu);
_.v(Uu,"yt-info-flow-step-renderer",function(){if(Ayu===void 0){var J=document.createElement("template");_.z(J,'\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>');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;Oc4===void 0&&(Oc4=document.createElement("template"));var b=Oc4;m.call(c,b.content.cloneNode(!0),J.content.firstChild);Ayu=J}J=Ayu;return J},{mode:2});var Res;var o9R;var Si=function(){return _.h.apply(this,arguments)||this};
_.D(Si,_.h);_.O([_.U(),_.R("design:type",Object)],Si.prototype,"data",void 0);Si=_.O([_.uM({is:"yt-info-list-flow-step-renderer",disableElementRegistration:!0})],Si);
_.v(Si,"yt-info-list-flow-step-renderer",function(){if(o9R===void 0){var J=document.createElement("template");_.z(J,'\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>');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;Res===void 0&&(Res=document.createElement("template"));var b=Res;m.call(c,b.content.cloneNode(!0),J.content.firstChild);o9R=J}J=o9R;return J},{mode:2});var Qa1=_.Q1(function(J){var c=J.data;return _.C("styled-text-view-model",{class:_.pq("ytStyledTextViewModelHost",function(){return N8u(c().fontAttributes)},function(){return pRr(c().color)})},_.C(_.j8,{text:function(){return c().text},
ariaLabel:function(){var m,b,x;return(x=(m=c().accessibility)==null?void 0:(b=m.accessibilityData)==null?void 0:b.label)!=null?x:""}}))},"af");
Qa1.idomCompat=!0;var eeF=_.Q1(function(J){var c=function(){var x,P,p,t;return(t=(p=(x=J.alt)==null?void 0:x.call(J))!=null?p:(P=J.data().accessibilityData)==null?void 0:P.label)!=null?t:""},m=function(){return J.data().imageWidth},b=function(){return J.data().imageHeight};
return _.C("themed-image-view-model",{class:"ytThemedImageViewModelHost"},_.C(_.n,{cond:function(){var x=J.data();if(x){var P,p,t;var I=((P=_.BG().resolve(_.y6(_.Ev)))==null?0:P())?(p=x.imageDark)!=null?p:x.imageLight:(t=x.imageLight)!=null?t:x.imageDark}else I=void 0;return I},
then:function(x){return _.C(_.RA,Object.assign({},J,{data:x,alt:c,targetWidth:m,targetHeight:b,preserveHeight:!0,preserveWidth:!0}))}}))},"bf");
eeF.idomCompat=!0;var hz=_.Q1(function(J){var c=J.data;J=_.Ru(function(){return c().slots},[]);
var m=_.Ru(function(){return c().layoutProperties},{}),b=_.BG().resolve(_.Ov);
return _.C("container-layout-view-model",{class:"ytContainerLayoutViewModelHost",style:b6u(m,b)},_.C(_.Te,{each:J,keyBy:"INDEX"},function(x){return _.C("div",{class:"ytContainerLayoutViewModelSlot",style:b6u(function(){return x().layoutProperties},b)},_.C(_.wi,{data:function(){return x().contents}},{containerLayoutViewModel:hz,
badgeViewModel:_.Fo,buttonViewModel:_.XU,styledTextViewModel:Qa1,contentPreviewImageViewModel:function(P){return _.C(_.lF,{data:P.data,className:"ytContainerLayoutViewModelImage"})},
themedImageViewModel:function(P){return _.C(eeF,{data:P.data,preserveWidth:!0,preserveHeight:!0})}}))}))},"cf");
hz.idomCompat=!0;var jae=_.Q1(function(J){var c=J.data;var m=J.stateFns;var b=function(){var a=c(),k=a.productId;return!(!a.clearGroupId&&!k)},x=function(){var a=c(),k=a.clearGroupId;
return(a=a.productId)?m().isProductSelected(a):k?m().getSelectedProductByGroupId(k)==null:!1},P=function(){var a=c(),k=a.clearGroupId;
if(a=a.productId)m().onProductSelected(a);else if(k)m().onClearGroupSelected(k)},p=function(){var a=c(),k=a.clearGroupId;
if(a=a.productId){var H;return"group:"+(((H=m().getProductById(a))==null?void 0:H.groupId)||"")}return k?"group:"+k:""},t=_.Ru(function(){return c().header},[]),I=_.Ru(function(){return c().body},[]);
return _.C("pdp-card-section-view-model",{class:"ytPdpCardSectionViewModelHost"},_.C(_.n,{cond:function(){return t().length>0||b()},
then:function(){return _.C("label",{class:"ytPdpCardSectionViewModelHeaderSection"},_.C("div",{class:"ytPdpCardSectionViewModelHeaderContent"},_.C(_.wi,{data:t},{containerLayoutViewModel:function(a){return _.C("div",{class:"ytPdpCardSectionViewModelContentItem"},_.C(hz,{data:a.data}))},
styledTextViewModel:function(a){return _.C("div",{class:"ytPdpCardSectionViewModelContentItem"},_.C(Qa1,{data:a.data}))}})),_.C(_.n,{cond:b,
then:function(){return _.C("div",{class:"ytPdpCardSectionViewModelHeaderRadioContainer"},_.C(_.Lx,{checked:x,name:p,onChange:P}))}}))}}),_.C(_.n,{cond:function(){return I().length>0},
then:function(){return _.C("div",null,_.C(_.wi,{data:I},{containerLayoutViewModel:function(a){return _.C("div",{class:"ytPdpCardSectionViewModelContentItem"},_.C(hz,{data:a.data}))}}))}}))},"df");
jae.idomCompat=!0;var F5f=_.Q1(function(J){var c=J.data;var m=J.stateFns;return _.C("pdp-card-view-model",{class:"ytPdpCardViewModelHost"},_.C(_.n,{cond:function(){return c().banner},
then:function(b){return _.C("div",{class:"ytPdpCardViewModelBanner"},_.C(_.j8,{text:b}))}}),_.C(_.wi,{data:function(){return c().sections}},{pdpCardSectionViewModel:function(b){b=b.data;
var x={};return _.C("div",{class:_.pq("ytPdpCardViewModelSectionContainer",(x.ytPdpCardViewModelShowDividers=function(){return c().showDividers},x))},_.C(jae,{data:b,
stateFns:m}))}}))},"ef");
F5f.idomCompat=!0;var lSf=_.Q1(function(J){var c=J.data;var m=J.isOverlay;J={};return _.C("pdp-masthead-view-model",{class:_.pq("ytPdpMastheadViewModelHost",(J.ytPdpMastheadViewModelIsOverlay=m,J))},_.C(_.wi,{data:function(){return c().image}},{contentPreviewImageViewModel:_.lF,
themedImageViewModel:function(b){return _.C(eeF,{data:b.data,alt:"",className:"ytPdpMastheadViewModelImage"})}}),_.C(_.n,{cond:function(){return c().title},
then:function(b){return _.C("h1",{class:"ytPdpMastheadViewModelHeading"},_.C(_.j8,{text:b,isOverlay:m}))}}),_.C(_.Te,{each:function(){var b;
return(b=c().finePrint)!=null?b:[]}},function(b){return _.C("div",{class:"ytPdpMastheadViewModelFinePrint"},_.C(_.j8,{text:b,
isOverlay:m}))}))},"ff");
lSf.idomCompat=!0;var yy1=_.Q1(function(J){var c=J.data;var m=J.stateFns;return _.C("pdp-pricing-option-selector-view-model",{class:"ytPdpPricingOptionSelectorViewModelHost"},_.C(_.Te,{each:function(){var b=m().getSelectedPricingOptions().map(function(P){return P.pricingOptionId}),x=m().getSelectedProductByGroupId(c().groupId);
return x?x.pricingOptions.map(function(P){return{pricingOption:P,isSelected:b.includes(P.pricingOptionId)}}):(_.Zt(Error("Fj`"+c().groupId)),[])},
keyBy:"INDEX"},function(b){return _.C("label",{class:"ytPdpPricingOptionSelectorViewModelOption"},_.C("div",{class:"ytPdpPricingOptionSelectorViewModelOptionContent"},_.C(_.wi,{data:function(){return b().pricingOption.pricingOptionSelectorOption}},{containerLayoutViewModel:hz})),_.C("div",{class:"ytPdpPricingOptionSelectorViewModelOptionRadio"},_.C(_.Lx,{checked:function(){return b().isSelected},
onClick:function(){m().onPricingOptionSelected(b().pricingOption.pricingOptionId);var x=b().pricingOption.onSelectPricingOption;if(x=_.ZG(x)){var P;(P=_.BG().resolve(_.gu))==null||P.resolveCommand(x)}}})))}))},"gf");
yy1.idomCompat=!0;var BmR=_.Q1(function(J){var c=J.data;var m=J.stateFns;return _.C("pdp-primary-button-view-model",{class:"ytPdpPrimaryButtonViewModelHost"},_.C(_.wi,{data:function(){var b,x;return(x=(b=m().getSelectedPricingOptions()[0])==null?void 0:b.primaryButton)!=null?x:c().emptyStateButton}},{buttonViewModel:_.XU}))},"hf");
BmR.idomCompat=!0;var g9f=_.Q1(function(J){var c=J.stateFns;return _.C("pdp-summary-view-model",{class:"ytPdpSummaryViewModelHost"},_.C(_.wi,{data:function(){return c().getSelectedPricingOptions().flatMap(function(m){return m.summaryLines}).filter(function(m){return!!m})}},{containerLayoutViewModel:function(m){return _.C("div",{class:"ytPdpSummaryViewModelLineItem"},_.C(hz,{data:m.data}))}}))},"jf");
g9f.idomCompat=!0;var J$h=_.Q1(function(J){function c(Z){var d=p();_.AO(_.DI("pdpStateEntity",d,{key:d,selectedPricingOptions:Z}))}
var m=J.data;var b=J.internalScrolling;var x=J.stateFnsForTesting;var P=_.Ru(function(){return m().allProducts},[]),p=_.Ru(function(){return m().pdpStateEntityKey},""),t=_.tT(tt5,p),I=_.n2(function(){_.XD(!0);
var Z;return(Z=x==null?void 0:x())!=null?Z:T8s(t,P,c)},void 0,"POBqwe"),a=_.Ru(function(){return m().body},[]),k=_.Ru(function(){return m().columnBreakHints},[]),H=function(){return m().backgroundMode==="PDP_BACKGROUND_MODE_FORCE_DARK"},T=function(){return H()||m().backgroundMode==="PDP_BACKGROUND_MODE_DARK"},r=_.n2(function(){var Z=_.e8(m().background),d;
if(Z==null?0:(d=Z.sources)==null?0:d.length){var G=G===void 0?!0:G;Z=_.Iat(void 0,Z.sources,void 0,G,G?1E3:void 0,G?void 0:1E3)}else Z=null;return Z},void 0,"BkCmEd");
J=_.kx({"--pdp-view-model-background":function(){return r()?"url("+r()+")":void 0}});
var W={};b=_.pq("ytPdpViewModelHost",(W.ytPdpViewModelHasBackground=function(){return T()||!!r()},W.ytPdpViewModelHasDarkBackground=T,W.ytPdpViewModelHasScrim=H,W.ytPdpViewModelInternalScrolling=_.Ru(b,!1),W));
var Y=function(Z){var d={};return _.pq("ytPdpViewModelItem",(d.ytPdpViewModelFullBleed=function(){return _.v4Q(Z())==="dividerViewModel"||_.v4Q(Z())==="sectionHeaderViewModel"},d.ytPdpViewModelNoVerticalPadding=function(){return _.v4Q(Z())==="sectionHeaderViewModel"},d))};
_.uN(function(){var Z=m().onStartCommand;if(Z&&(Z=_.ZG(Z))){var d;(d=_.BG().resolve(_.gu))==null||d.resolveCommand(Z)}});
return _.C("pdp-view-model",{class:b,style:J},_.C("div",{class:"ytPdpViewModelColumnContainer"},_.C(_.Te,{each:function(){return wRo(a(),k())},
keyBy:"INDEX"},function(Z){return _.C("div",{class:"ytPdpViewModelColumn"},_.C(_.wi,{data:Z},{containerLayoutViewModel:function(d,G){d=d.data;return _.C("div",{class:Y(function(){return Z()[G()]})},_.C(hz,{data:d}))},
dividerViewModel:function(d,G){d=d.data;return _.C("div",{class:Y(function(){return Z()[G()]})},_.C(_.b8z,{data:d}))},
pdpCardViewModel:function(d,G){d=d.data;return _.C("div",{class:Y(function(){return Z()[G()]})},_.C(F5f,{data:d,
stateFns:I}))},
pdpMastheadViewModel:function(d,G){d=d.data;return _.C("div",{class:Y(function(){return Z()[G()]})},_.C(lSf,{data:d,
isOverlay:T}))},
pdpPricingOptionSelectorViewModel:function(d,G){d=d.data;return _.C("div",{class:Y(function(){return Z()[G()]})},_.C(yy1,{data:d,
stateFns:I}))},
pdpPrimaryButtonViewModel:function(d,G){d=d.data;return _.C("div",{class:Y(function(){return Z()[G()]})},_.C(BmR,{data:d,
stateFns:I}))},
pdpSummaryViewModel:function(d,G){d=d.data;return _.C("div",{class:Y(function(){return Z()[G()]})},_.C(g9f,{data:d,
stateFns:I}))},
sectionHeaderViewModel:function(d,G){d=d.data;return _.C("div",{class:Y(function(){return Z()[G()]})},_.C(_.m8,{data:d}))}}))})))},"kf");
J$h.idomCompat=!0;_.lv(J$h,"pdp-view-model",{props:{data:_.vt,stateFnsForTesting:_.Fz,internalScrolling:_.Fz}});var c$r=_.Q1(function(J){var c=J.data;var m=J.className;var b=_.tT(_.B8,function(){return c().flowStateEntityKey});
return _.C("ytm-premium-purchase-button-renderer",{class:_.pq("yt-premium-purchase-button-renderer",m)},_.C(_.wi,{data:function(){var x;return(x=_.L(b(),slp))==null?void 0:x.primaryButtonOverride}},{buttonRenderer:function(x){return _.C(_.GM,{data:x.data,
className:m})},
buttonViewModel:function(x){return _.C(_.XU,{data:x.data,className:m})}}))},"lf");
c$r.idomCompat=!0;var msu=_.Q1(function(J){var c=J.data;var m=function(){return rDu(c().style)},b=_.pq("yt-flow-bottom-bar-renderer__flow-bottom-bar-primary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",m),x=_.pq("yt-flow-bottom-bar-renderer__flow-bottom-bar-secondary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",m);
return _.C("yt-flow-bottom-bar-renderer",{class:_.pq("yt-flow-bottom-bar-renderer",J.className,m)},_.C(_.wi,{data:function(){return c().secondaryButton}},{buttonRenderer:function(P){return _.C(_.GM,{data:P.data,
className:x})},
buttonViewModel:function(P){return _.C(_.XU,{data:P.data,className:x})},
premiumPurchaseButtonRenderer:function(P){return _.C(c$r,{data:P.data,className:x})}}),_.C(_.wi,{data:function(){return c().primaryButton}},{buttonRenderer:function(P){return _.C(_.GM,{data:P.data,
className:b})},
buttonViewModel:function(P){return _.C(_.XU,{data:P.data,className:b})},
premiumPurchaseButtonRenderer:function(P){return _.C(c$r,{data:P.data,className:b})}}))},"mf");
msu.idomCompat=!0;_.lv(msu,"yt-flow-bottom-bar-renderer",{props:{data:_.vt,className:_.vt}});var b2f=_.Q1(function(J){return _.C("yt-offer-summary-renderer",{class:_.pq(J.className,"ytOfferSummaryRendererHost")},_.C("div",{class:"ytOfferSummaryRendererTextContainer"},_.C("div",{class:"ytOfferSummaryRendererEyebrowText"},_.C(_.j8,{text:function(){return J.data().eyebrowText}})),_.C("div",{class:"ytOfferSummaryRendererTitle"},_.C(_.j8,{text:function(){return J.data().title}})),_.C("div",{class:"ytOfferSummaryRendererSubtitle"},_.C(_.j8,{text:function(){return J.data().subtitle}})),_.C("div",
{class:"ytOfferSummaryRendererFeatureListData"},_.C(_.Te,{each:function(){var c;
return(c=J.data().featureListData)!=null?c:[]}},function(c){var m;
return _.C("div",{class:"ytOfferSummaryRendererFeatureList"},_.C(_.HP,{icon:(m=c.icon)==null?void 0:m.iconType,className:c.style==="BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT"?"ytOfferSummaryRendererFeatureListIconGreen":"ytOfferSummaryRendererFeatureListIconDefault"}),_.C("div",{class:"ytOfferSummaryRendererFeatureListText"},_.C(_.j8,{text:c.text})))})),_.C("div",{class:"ytOfferSummaryRendererDescription"},_.C(_.j8,{text:function(){return J.data().description}}))))},"nf");_.lv(_.Q1(function(J){var c={};c=_.pq("ytOfferSummaryFlowStepRendererHost",(c.ytOfferSummaryFlowStepRendererDisableHeaderTopMargin=J.shouldDisableHeaderTopMargin,c));return _.C("yt-offer-summary-flow-step-renderer",{id:"yt-offer-summary-flow-step-renderer",class:c},_.C("div",{class:"ytOfferSummaryFlowStepRendererHeaderContainer ytOfferSummaryFlowStepRendererChild"},_.C("div",{class:"ytOfferSummaryFlowStepRendererHeader"},_.C(_.j8,{text:function(){return J.data().header}})),_.C("div",{class:"ytOfferSummaryFlowStepRendererSubtitle"},
_.C(_.j8,{text:function(){return J.data().subtitle}}))),_.C("div",{class:"ytOfferSummaryFlowStepRendererChild"},_.C(_.wi,{data:function(){return J.data().offerSummary}},{offerSummaryRenderer:function(m){return _.C(b2f,{data:m.data,
className:J.flowClassName})}})))},"of"),"yt-offer-summary-flow-step-renderer",{props:{data:_.Fz,
flowClassName:_.Fz,flowStateEntityKey:_.Fz,shouldDisableHeaderTopMargin:_.Fz}});var xss=_.Q1(function(J){var c=J.data;var m=J.className;var b=J.flowStateEntityKey;var x=J.selectionStepStyle;J=_.Kq(function(I){var a=c(),k=b==null?void 0:b();I.target&&(I.stopPropagation(),I=k||"",k=_.B8(_.v9().getState(),I),a=Object.assign({},k,{premiumPurchaseFlowState:{selectedOptionId:a.optionId,primaryButtonOverride:a.primaryButtonOverride}}),_.v9().dispatch(_.It("flowStateEntity",I,a)));return!1});
var P=function(){return(b==null?void 0:b())||""},p=_.tT(_.B8,P);
_.uN(function(){var I=c(),a=P(),k=p();I.defaultSelected&&a!==""&&I.primaryButtonOverride&&LNF(I.optionId||"",a,I.primaryButtonOverride,k)});
var t={};return _.C("ytm-option-item-renderer",{"on:click":J,class:_.pq(m,"ytm-option-item-renderer",(t["ytm-option-item-renderer--lp2-style"]=function(){return(x==null?void 0:x())==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},t))},_.C("div",{class:"ytm-option-item-renderer__option-item-radio-container"},_.C("input",{type:"radio",
class:"ytm-option-item-renderer__option-item-radio-button","prop:checked":function(){var I=c(),a=P(),k=p();k=_.L(k,slp);return(k?(k==null?void 0:k.selectedOptionId)||"":I.defaultSelected&&a!==""?(I==null?void 0:I.optionId)||"":"")===c().optionId},
name:("input"+_.Df(_.rY)).toString()})),_.C("div",{class:"ytm-option-item-renderer__option-item-text-container"},_.C(_.n,{cond:function(){return c().eyebrowText},
then:function(){return _.C("div",{class:"ytm-option-item-renderer__option-item-eyebrow-text"},_.C(_.j8,{text:function(){return c().eyebrowText}}))}}),_.C("div",{class:"ytm-option-item-renderer__option-item-title"},_.C(_.j8,{text:function(){return c().title}})),_.C("div",{class:"ytm-option-item-renderer__option-item-subtitle"},_.C(_.j8,{text:function(){return c().subtitle}})),_.C(_.n,{cond:function(){return c().featureListData},
then:function(){return _.C("div",{class:"ytm-option-item-renderer__feature-list-data"},_.C(_.Te,{each:function(){return c().featureListData||[]}},function(I){var a;
return _.C("div",{class:"ytm-option-item-renderer__feature-list"},_.C(_.HP,{icon:(a=I.icon)==null?void 0:a.iconType,className:I.style==="BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT"?"ytm-option-item-renderer__feature-list-icon-green":"ytm-option-item-renderer__feature-list-icon-default"}),_.C("div",{class:"ytm-option-item-renderer__feature-list-text"},_.C(_.j8,{text:I.text})))}))}}),_.C("div",{class:"ytm-option-item-renderer__option-item-description"},_.C(_.j8,{text:function(){return c().description}}))))},
"pf");var VAS=_.Q1(function(J){var c=J.data;var m=J.flowClassName;var b=J.flowStateEntityKey;var x=J.selectionStepStyle;return _.C("yt-option-section-renderer",{id:"yt-option-section-renderer",class:"yt-option-section-renderer"},_.C("div",{class:"yt-option-section-renderer__option-section-header-section"},_.C("div",{class:"yt-option-section-renderer__option-section-header"},_.C(_.j8,{text:function(){return c().title}}),_.C(_.wi,{data:function(){return c().titleBadge}},{badgeViewModel:function(P){return _.C(_.Fo,
{data:P.data,
class:"yt-option-section-renderer__option-section-title-badge"})}})),_.C(_.n,{cond:function(){return c().subtitle},
then:function(){return _.C("div",{class:"yt-option-section-renderer__option-section-subtitle"},_.C(_.j8,{text:function(){return c().subtitle}}))}}),_.C(_.n,{cond:function(){return c().featureListData},
then:function(P){return _.C("div",{class:"yt-option-section-renderer__option-section-feature-list"},_.C(_.Te,{each:P},function(p){var t;return _.C("div",{class:"yt-option-section-renderer__option-section-feature-item"},_.C(_.HP,{icon:(t=p.icon)==null?void 0:t.iconType,className:p.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"}),_.C("div",
{class:"yt-option-section-renderer__option-section-feature-item-text"},_.C(_.j8,{text:p.text})))}))}}),_.C(_.n,{cond:function(){return c().secondaryTitle},
then:function(){return _.C("div",{class:"yt-option-section-renderer__option-section-secondary-title"},_.C(_.j8,{text:function(){return c().secondaryTitle}}))}}),_.C(_.Te,{each:function(){return c().sectionDisclaimers||[]}},function(P){return _.C("div",{class:"yt-option-section-renderer__option-section-disclaimer"},_.C(_.j8,{text:P}))})),_.C(_.wi,{data:function(){return c().optionItems}},{optionItemRenderer:function(P){return _.C("div",{class:"yt-option-section-renderer__option-item"},_.C(xss,{data:P.data,
className:m,flowStateEntityKey:b,selectionStepStyle:x}))}}),_.C(_.n,{cond:function(){return c().offerText},
then:function(){return _.C("div",{class:"yt-option-section-renderer__option-section-offer-text"},_.C(_.j8,{text:function(){return c().offerText}}))}}))},"qf");
VAS.idomCompat=!0;var Pie=_.Q1(function(J){var c=J.data;var m=J.flowClassName;var b=J.flowStateEntityKey;J=J.isDesktop;var x=function(){var a;return(a=c().flowStateEntityKey)!=null?a:b==null?void 0:b()},P=function(){return(x==null?void 0:x())||""},p=function(){return c().style},t=_.tT(_.B8,P);
_.uN(function(){var a=c(),k=P(),H=t();!_.L(H,slp)&&a.noPreselect&&k!==""&&a.defaultButtonOverride&&LNF("default",k,a.defaultButtonOverride,H)});
var I={};return _.C("yt-option-selection-flow-step-renderer",{id:"yt-option-selection-flow-step-renderer",class:_.pq("ytm-option-selection-flow-step-renderer",(I["ytm-option-selection-flow-step-renderer--desktop"]=J,I["ytm-option-selection-flow-step-renderer--lp2-style"]=function(){return c().style==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},I))},_.C("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"},
_.C("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header"},_.C(_.j8,{text:function(){return c().header}})),_.C("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-subtitle"},_.C(_.j8,{text:function(){return c().subtitle}}))),_.C(_.wi,{data:function(){return c().optionItems||[]}},{optionItemRenderer:function(a){return _.C("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.C(xss,{data:a.data,
className:m,flowStateEntityKey:x,selectionStepStyle:p}))},
optionSectionRenderer:function(a){return _.C("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.C(VAS,{data:a.data,flowClassName:m,flowStateEntityKey:x,selectionStepStyle:p}))}}))},"rf");
Pie.idomCompat=!0;_.lv(Pie,"yt-option-selection-flow-step-renderer",{props:{data:_.vt,flowClassName:_.vt,flowStateEntityKey:_.vt,isDesktop:_.vt}});var DMR,WNh;_.dg=_.Q1(function(J){var c=_.ou(J,{type:1,disablePadding:!1,disablePrimaryButton:!1}),m=c.data,b=c.type;J=c.disablePadding;var x=c.disablePrimaryButton,P=c.onClickPrimaryButton,p=function(){return m().stacking==="PANEL_FOOTER_STACKING_VERTICAL"},t=function(){return{disabled:x(),
state:x()?"disabled":"active"}},I=function(){return m().leadingLabel||m().trailingLabel};
c={};return _.C("yt-panel-footer-view-model",{class:_.pq("yt-panel-footer-view-model-wiz",(c["yt-panel-footer-view-model-wiz--hide-divider"]=function(){return m().shouldHideDivider},c["yt-panel-footer-view-model-wiz--disable-padding"]=J,c))},_.C(_.n,{cond:I,
then:function(){var a={},k={};return _.C("div",{class:_.pq("yt-panel-footer-view-model-wiz__text-row",(a["yt-panel-footer-view-model-wiz--row-bottom-padding"]=function(){var H=m();return!(!H.leadingLabel&&!H.trailingLabel||!H.primaryButton&&!H.secondaryButton)},a))},_.C(_.j8,{text:function(){return m().leadingLabel},
className:_.pq((k["yt-panel-footer-view-model-wiz--text-padding"]=I,k))}),_.C(_.j8,{text:function(){return m().trailingLabel}}))}}),_.C(_.n,{cond:p,
then:function(){var a={};return _.C("div",{class:"yt-panel-footer-view-model-wiz__button-stack"},_.C("div",{class:_.pq("yt-panel-footer-view-model-wiz__primary-button",(a["yt-panel-footer-view-model-wiz__button-stack--top-button"]=function(){return m().secondaryButton},a))},_.C(_.wi,{data:function(){return m().primaryButton}},{buttonViewModel:function(k){return _.C(_.XU,{data:k.data,
buttonOverrides:t,onClick:P})}})),_.C(_.wi,{data:function(){return m().secondaryButton}},{buttonViewModel:_.XU}))}}),_.C(_.n,{cond:function(){return!p()},
then:function(){var a={},k={},H={};return _.C("div",{class:_.pq("yt-panel-footer-view-model-wiz__button-row",(a["yt-panel-footer-view-model-wiz__button-row--trailing"]=function(){return 3===b()},a))},_.C("div",{class:_.pq("yt-panel-footer-view-model-wiz__button-row--left-button",(k["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 1===b()},k["yt-panel-footer-view-model-wiz__button-row--hidden"]=function(){return!m().secondaryButton||0===b()},k["yt-panel-footer-view-model-wiz__button-row--shrink"]=
function(){return 2===b()},k))},_.C(_.wi,{data:function(){return m().secondaryButton}},{buttonViewModel:_.XU})),_.C("div",{class:_.pq("yt-panel-footer-view-model-wiz__primary-button",(H["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 0===b()||1===b()},H["yt-panel-footer-view-model-wiz__button-row--expand"]=function(){return 2===b()},H))},_.C(_.wi,{data:function(){return m().primaryButton}},{buttonViewModel:function(T){return _.C(_.XU,{data:T.data,
buttonOverrides:t,onClick:P})}})))}}))},"sf");
_.dg.idomCompat=!0;_.MAo=_.Q1(function(J){J=_.ou(J,{disablePadding:!1});var c=J.data,m=J.disablePadding;J=_.YwR(function(){return c().formId});
var b=J.onSubmit,x=J.isValid,P=J.isSubmitting;return _.C("yt-form-footer-view-model",{class:"ytFormFooterViewModelHost"},_.C(_.wi,{data:function(){return c().panelFooter}},{panelFooterViewModel:function(p){return _.C(_.dg,{data:p.data,
onClickPrimaryButton:function(){b()},
disablePrimaryButton:function(){return!x()||P()},
disablePadding:m})}}))},"tf");_.lv(_.MAo,"yt-form-footer-view-model",{props:{data:_.vt,disablePadding:_.vt}});_.lv(_.Q1(function(J){return _.C("yt-contributor-zero-state-view-model",{class:"ytContributorZeroStateViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 132px);"},_.C("div",{class:"ytContributorZeroStateViewModelCenterAlignedContent"},_.C(_.n,{cond:function(){var c;return(c=J.data())==null?void 0:c.image},
then:function(c){return _.C(_.RA,{data:c,alt:"",className:"ytContributorZeroStateViewModelCenterAlignedContentImage"})}}),_.C("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentTitle"},_.C(_.j8,{text:function(){var c;
return(c=J.data())==null?void 0:c.title}})),_.C("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentSubtitle"},_.C(_.j8,{text:function(){var c;
return(c=J.data())==null?void 0:c.subtitle}})),_.C("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentButton"},_.C(_.wi,{data:function(){var c;
return(c=J.data())==null?void 0:c.viewTipsButton}},{buttonViewModel:_.XU}))))},"uf"),"yt-contributor-zero-state-view-model",{props:{data:_.vt}});var pFf=_.Q1(function(J){var c=_.tT(XRS,_.Ru(function(){var m;return(m=J.data())==null?void 0:m.noteFeedEntityKey},""));
return _.C("yt-note-view-model",{class:"ytNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 136px);"},_.C("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.C("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.C(_.n,{cond:function(){var m,b;return(m=J.data())==null?void 0:(b=m.noteData)==null?void 0:b.isPinned},
then:function(){return _.C(_.HP,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIconPin"})}}),_.C(_.j8,{text:function(){var m,b;
return(m=J.data())==null?void 0:(b=m.noteData)==null?void 0:b.headerText}}),_.C("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataDelimiter"},_.C(_.j8,{text:function(){var m,b;
return(m=J.data())==null?void 0:(b=m.noteData)==null?void 0:b.delimiter}})),_.C(_.j8,{text:function(){var m,b;
return(m=c())==null?void 0:(b=m.contributorNote)==null?void 0:b.publishedTimeText}})),_.C(_.wi,{data:function(){var m,b,x,P=(m=J.data())==null?void 0:m.noteData;
m=(b=c())==null?void 0:(x=b.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:P.deleteActionText,onTap:{innertubeCommand:{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:P.deleteActionText},leadingImage:{sources:[{clientResource:{imageName:"TRASH_CAN"}}]},
rendererContext:{commandContext:{onTap:{innertubeCommand:{confirmDialogEndpoint:{content:{confirmDialogRenderer:{title:{runs:[{text:P.deleteDialogTitle}]},dialogMessages:[{runs:[{text:P.deleteDialogSubtitle}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:P.deleteActionText}]},command:{performCommentActionEndpoint:{action:m}}}},cancelButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:P.cancelActionText}]},command:{dismissDialogCommand:{}}}}}}}}}}}}}]}}}}}}}}}}}},
{buttonViewModel:function(m){return _.C(_.XU,{data:m.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.C("div",{class:"ytNoteViewModelNoteContent"},_.C(_.j8,{text:function(){var m,b;
return(m=c())==null?void 0:(b=m.contributorNote)==null?void 0:b.text}})))},"vf");
pFf.idomCompat=!0;_.lv(pFf,"yt-note-view-model",{props:{data:_.vt}});var $o=_.Q1(function(J){var c=_.ou(J,{label:"",text:"",placeholder:"",hint:"",rows:1,overflowStyle:"scroll-vertically",outline:!1,disabled:!1,disableNewLines:!1,characterLimit:void 0,validation:void 0}),m=c.label,b=c.text,x=c.placeholder,P=c.hint;J=c.rows;var p=c.overflowStyle,t=c.outline,I=c.disabled,a=c.disableNewLines,k=c.characterLimit,H=c.validation,T=c.onInput,r=_.oN("textarea");c=_.M(_.aO(function(){return b()}));
var W=c.next().value,Y=c.next().value;c=_.M(_.K2(!1,void 0,"fXvinf"));var Z=c.next().value,d=c.next().value,G=function(){d(!0)},e=function(){d(!1)};
_.uN(function(){var oR=r.value,Em=p(),X$=W();Em==="expand-vertically"&&X$&&Z6R(oR);r.value.addEventListener("focusin",G);r.value.addEventListener("focusout",e)});
_.f2(function(){r.value.removeEventListener("focusin",G);r.value.removeEventListener("focusout",e)});
var A=function(){var oR;return(oR=H())==null?void 0:oR.validate(W())},l=function(){return k()&&!A()&&W().length>k().maxChars},y=function(){return!!A()||l()};
c=_.Kq(function(oR){if(!oR.currentTarget)return!1;oR=oR.currentTarget;Y(oR.value);p()==="expand-vertically"&&Z6R(oR);T==null||T(oR.value);return!0});
var pG=_.Kq(function(oR){a()&&oR.key==="Enter"&&oR.preventDefault();return!1}),kt=_.Kq(function(){r.value.focus()}),nG=function(){return x()||m()},fG={},Yt={},Z3={};
return _.C("textarea-shape",{class:"ytStandardsTextareaShapeHost"},_.C("div",{class:_.pq("ytStandardsTextareaShapeTextareaContainer",(fG.ytStandardsTextareaShapeTextareaContainerOutline=t,fG.ytStandardsTextareaShapeTextareaContainerOutlineDisabled=I,fG.ytStandardsTextareaShapeTextareaContainerOutlineError=y,fG)),"on:click":kt},_.C("label",{class:_.pq("ytStandardsTextareaShapeLabel",(Yt.ytStandardsTextareaShapeLabelFocused=Z,Yt.ytStandardsTextareaShapeLabelDisabled=I,Yt.ytStandardsTextareaShapeLabelError=
function(){return y()&&!I()},Yt.ytStandardsTextareaShapeLabelHidden=function(){return!Z()&&!W()&&!!nG()},Yt))},m),_.C("div",{class:_.pq("ytStandardsTextareaShapePlaceholder",(Z3.ytStandardsTextareaShapePlaceholderVisible=function(){return!Z()&&!W()},Z3)),
"aria-hidden":"true"},nG),_.C("textarea",{el:r,class:"ytStandardsTextareaShapeTextarea",rows:J,disabled:I,placeholder:nG,"on:input":c,"on:keydown":pG},W)),_.C(_.n,{cond:function(){return P()&&!y()},
then:function(){var oR={};return _.C("div",{class:_.pq("ytStandardsTextareaShapeHint",(oR.ytStandardsTextareaShapeHintDisabled=I,oR))},_.C("div",{class:"ytStandardsTextareaShapeHintHintMessage"},P))}}),_.C(_.n,{cond:A,
then:function(){return _.C(N_s,{disabled:I},_.C("div",{class:"ytStandardsTextareaShapeErrorMessage"},A))}}),_.C(_.n,{cond:k,
then:function(oR){return _.C(_.n,{cond:l,then:function(){return _.C(N_s,{disabled:I},_.C("div",{class:"ytStandardsTextareaShapeErrorMessage"},function(){return oR().errorMessage}),_.C("div",{class:"ytStandardsTextareaShapeErrorCharacterCount"},function(){return W().length+"/"+oR().maxChars}))}})}}))},"wf");
$o.idomCompat={callbacks:{onInput:!0}};var N_s=_.Q1(function(J){var c={};return _.C("div",{class:_.pq("ytStandardsTextareaShapeError",(c.ytStandardsTextareaShapeErrorDisabled=J.disabled,c)),role:"alert"},_.C(_.HP,{icon:"INFO",className:"ytStandardsTextareaShapeErrorIcon",size:16}),J.children)},"xf");_.tAF=_.Q1(function(J){var c=J.data;return _.C("text-field-view-model",{class:"ytTextFieldViewModelHost"},_.C($o,{text:J.text,label:function(){var m;return(m=c().contentProperties)==null?void 0:m.labelText},
placeholder:function(){var m;return(m=c().contentProperties)==null?void 0:m.placeholderText},
hint:function(){var m;return(m=c().contentProperties)==null?void 0:m.hintText},
outline:function(){var m;return!((m=c().displayProperties)==null?0:m.hideBorder)},
overflowStyle:function(){var m;return((m=c().displayProperties)==null?0:m.isMultiline)?"expand-vertically":"scroll-vertically"},
disabled:J.disabled,disableNewLines:function(){var m;return(m=c().displayProperties)==null?void 0:m.disableNewLines},
onInput:J.onInput,characterLimit:J.characterLimit,validation:J.validation,rows:function(){var m;return(m=c().displayProperties)==null?void 0:m.rows}}))},"yf");_.I7p=_.Q1(function(J){var c=J.data;return _.C("text-form-field-view-model",{class:"ytTextFormFieldViewModelHost"},_.C($o,{text:J.text,label:function(){var m;return(m=c().contentProperties)==null?void 0:m.labelText},
placeholder:function(){var m;return(m=c().contentProperties)==null?void 0:m.placeholderText},
hint:function(){var m;return(m=c().contentProperties)==null?void 0:m.hintText},
outline:function(){var m;return!((m=c().displayProperties)==null?0:m.hideBorder)},
overflowStyle:function(){var m;return((m=c().displayProperties)==null?0:m.isMultiline)?"expand-vertically":"scroll-vertically"},
disableNewLines:function(){var m;return(m=c().displayProperties)==null?void 0:m.disableNewLines},
onInput:J.onInput,characterLimit:J.characterLimit,validation:J.validation,rows:function(){var m;return(m=c().displayProperties)==null?void 0:m.rows}}))},"zf");var KY1=_.Q1(function(J){var c=_.M(_.aO(function(){var nG,fG;return((nG=J.data().structuredContextNoteFormSchema)==null?0:(fG=nG.initialValues)==null?0:fG.noteBody)?J.data().structuredContextNoteFormSchema.initialValues.noteBody:""})),m=c.next().value,b=c.next().value;
c=_.M(_.aO(function(){J.data();return!1}));
var x=c.next().value,P=c.next().value;c=_.M(_.aO(function(){J.data();return!1}));
var p=c.next().value,t=c.next().value;c=_.M(_.aO(function(){var nG,fG;return((nG=J.data().structuredContextNoteFormSchema)==null?0:(fG=nG.initialValues)==null?0:fG.timestamp)?J.data().structuredContextNoteFormSchema.initialValues.timestamp:""}));
var I=c.next().value,a=c.next().value;c=_.M(_.aO(function(){J.data();return!1}));
var k=c.next().value,H=c.next().value;c=_.M(_.aO(function(){var nG,fG;return((nG=J.data().structuredContextNoteFormSchema)==null?0:(fG=nG.initialValues)==null?0:fG.sources)?[J.data().structuredContextNoteFormSchema.initialValues.sources]:[]}));
var T=c.next().value,r=c.next().value;c=_.M(_.aO(function(){J.data();return!1}));
var W=c.next().value,Y=c.next().value;c=_.M(_.aO(function(){return!1}));
var Z=c.next().value,d=c.next().value;_.uN(function(){var nG;_.fFR((nG=J.data().structuredContextNoteFormSchema)==null?void 0:nG.id,{isSubmitting:Z,onSubmit:function(){d(!0);var fG=vLS(m(),I(),T(),J.data()),Yt=_.BG().resolve(_.gu);fG&&Yt&&Yt.resolveCommand(fG,{commandController:{onSuccess:function(){d(!1)}}})},
isValid:function(){return x()&&!p()&&!k()&&!W()}})});
var G=function(nG){if(nG!==void 0&&(b(nG),!x()&&nG.length>0&&P(!0),x())){var fG=Sws(J.data());if(fG){var Yt=fG.minLength;fG=fG.maxLength;Yt&&nG.length<Yt?t(!0):fG&&nG.length>fG?t(!0):t(!1)}}},e=function(nG){if(nG!==void 0){a(nG);
if(nG.length>0){var fG,Yt,Z3,oR,Em=dMr((fG=J.data())==null?void 0:(Yt=fG.structuredContextNoteFormSchema)==null?void 0:(Z3=Yt.fieldSchemas)==null?void 0:(oR=Z3.timestamp)==null?void 0:oR.validationSchema);if(Em&&(fG=Em.regex)&&!(new RegExp(fG)).test(nG)){H(!0);return}}H(!1)}},A=function(nG){if(nG!==void 0){var fG=nG.split(/[ \n]/).map(function(Yt){return Yt.trim()});
r(fG);if(nG.length>0)for(nG=_.M(fG),fG=nG.next();!fG.done;fG=nG.next())if(!ELs(fG.value)){Y(!0);return}Y(!1)}},l=function(){return{validate:function(nG){if(x()){var fG=Sws(J.data());
if(fG){var Yt=fG.minLength;fG=fG.translations;if(Yt&&nG.length<Yt)return fG==null?void 0:fG.minLengthErrorMessage}}}}},y=function(){var nG=Sws(J.data()),fG=nG==null?void 0:nG.maxLength,Yt;
nG=nG==null?void 0:(Yt=nG.translations)==null?void 0:Yt.maxLengthErrorMessage;if(fG&&nG)return{maxChars:fG,errorMessage:nG}},pG=function(){return{validate:function(nG){if(nG){var fG,Yt,Z3,oR,Em=dMr((fG=J.data())==null?void 0:(Yt=fG.structuredContextNoteFormSchema)==null?void 0:(Z3=Yt.fieldSchemas)==null?void 0:(oR=Z3.timestamp)==null?void 0:oR.validationSchema);
if(Em&&(fG=Em.regex,Em=Em.translations,fG&&!(new RegExp(fG)).test(nG)))return Em==null?void 0:Em.regexErrorMessage}}}},kt=function(){return{validate:function(nG){if(nG){var fG,Yt,Z3,oR,Em=GG1((fG=J.data())==null?void 0:(Yt=fG.structuredContextNoteFormSchema)==null?void 0:(Z3=Yt.fieldSchemas)==null?void 0:(oR=Z3.sources)==null?void 0:oR.validationSchema);
if(Em&&(fG=Em.translations,fG==null?0:fG.selectedErrorMessage))for(nG=nG.split(/[ \n]/).map(function(X$){return X$.trim()}),nG=_.M(nG),Yt=nG.next();!Yt.done;Yt=nG.next())if(!ELs(Yt.value))return nG=void 0,(nG=fG)==null?void 0:nG.selectedErrorMessage}}}};
return _.C("yt-structured-context-note-view-model",{class:"ytStructuredContextNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 209px);"},_.C("div",{class:"ytStructuredContextNoteViewModelTextField"},_.C(_.wi,{data:function(){var nG;return(nG=J.data())==null?void 0:nG.noteContents}},{textFormFieldViewModel:function(nG){return _.C(_.I7p,{data:nG.data,
onInput:G,validation:l,characterLimit:y})},
textFieldViewModel:function(nG){return _.C(_.tAF,{data:nG.data,onInput:G,validation:l,characterLimit:y})}})),_.C("div",{class:"ytStructuredContextNoteViewModelTextField"},_.C(_.wi,{data:function(){var nG;
return(nG=J.data())==null?void 0:nG.noteTimestamp}},{textFormFieldViewModel:function(nG){return _.C(_.I7p,{data:nG.data,
onInput:e,validation:pG})},
textFieldViewModel:function(nG){return _.C(_.tAF,{data:nG.data,onInput:e,validation:pG})}})),_.C("div",{class:"ytStructuredContextNoteViewModelTextField"},_.C(_.wi,{data:function(){var nG;
return(nG=J.data())==null?void 0:nG.noteSources}},{textFormFieldViewModel:function(nG){return _.C(_.I7p,{data:nG.data,
onInput:A,validation:kt})},
textFieldViewModel:function(nG){return _.C(_.tAF,{data:nG.data,onInput:A,validation:kt})}})))},"Af");
KY1.idomCompat=!0;_.lv(KY1,"yt-structured-context-note-view-model",{props:{data:_.vt}});var Ci4=_.Q1(function(J){var c=_.M(_.aO(function(){var P;if((P=J.controlled)==null?0:P.call(J))return[];var p;return(((p=J.data())==null?void 0:p.chips)||[]).map(function(t){t=_.L(t,_.ZA);if(t==null?0:t.selected)return O61(t.chipValue)}).filter(function(t){return t!==void 0})})),m=c.next().value,b=c.next().value,x=function(P){var p=O61(P.chipValue);
if(p!==void 0){var t;if((t=J.controlled)==null?0:t.call(J))return void J.controlled().onTap(p);P=m().includes(p)?[].concat(_.L6(m().filter(function(a){return a!==p}))):[].concat(_.L6(m()),[p]);
b(P);var I;if((I=J.uncontrolled)==null?0:I.call(J))J.uncontrolled().onUpdate(P)}};
return _.C("chip-selection-form-field-view-model",{class:"ytChipSelectionFormFieldViewModelHost"},_.C(_.Te,{each:function(){return J.data().chips||[]}},function(P){return _.C("div",{class:"ytChipSelectionFormFieldViewModelChipWrapper"},_.C(_.coB,{data:function(){return _.L(P,_.ZA)},
selected:function(){var p;if(p=_.L(P,_.ZA)){var t=O61(p.chipValue);if(t!==void 0){var I;p=((I=J.controlled)==null?0:I.call(J))?J.controlled().selectedValues.includes(t):m().includes(t)}else p=void 0}else p=!1;return p},
callback:x}))}))},"Bf");var a7r=_.Q1(function(J){var c=J.data;var m=function(){var t;return((t=c())==null?void 0:t.flowStateKey)||""},b=_.tT(_.B8,m),x=function(){var t;
return(t=_.L(b(),dAs))==null?void 0:t.chips},P=function(t){if(t!==void 0){var I=x()||[];
I=I.find(function(a){return a===t})?I.filter(function(a){return a!==t}):[].concat(_.L6(I),[t]);
I=Object.assign({},b(),{feedbackFormFlowState:Object.assign({},_.L(b(),dAs),{chips:I})});_.AO(_.It("flowStateEntity",m(),I))}},p=function(){var t;
return _.L((t=c())==null?void 0:t.inputBox,$Ar)};
J=_.Kd(function(t){var I=p();I=!(I==null?0:I.maxChars)||t.length<=I.maxChars;t=Object.assign({},b(),{feedbackFormFlowState:Object.assign({},_.L(b(),dAs),{detail:t}),abuseReportFlowState:Object.assign({},_.L(b(),Jz),{navigationEnabled:I})});_.AO(_.It("flowStateEntity",m(),t))},150);
return _.C("yt-feedback-form-view-model",{class:"ytFeedbackFormViewModelHost"},_.C("div",{class:"ytFeedbackFormViewModelChips"},_.C(_.wi,{data:function(){var t;return(t=c())==null?void 0:t.chipSelection}},{chipSelectionFormFieldViewModel:function(t){return _.C(Ci4,{data:t.data,
controlled:function(){return{selectedValues:x()||[],onTap:P}}})}})),_.C("div",{class:"ytFeedbackFormViewModelInputBox"},_.C($o,{text:function(){var t;
return(t=_.L(b(),dAs))==null?void 0:t.detail},
placeholder:function(){var t;return((t=p())==null?void 0:t.placeholderText)||""},
outline:!0,rows:4,characterLimit:function(){var t=p();if(t&&t.maxChars)return{maxChars:t.maxChars,errorMessage:t.maxCharsExceededErrorMessage||""}},
onInput:J})),_.C("div",{class:"ytFeedbackFormViewModelFooterText"},_.C(_.j8,{text:function(){return c().footerText}})))},"Cf");
a7r.idomCompat=!0;_.lv(a7r,"yt-feedback-form-view-model",{props:{data:_.vt}});var kLF=_.Q1(function(J){var c=J.data;var m=function(){return c().flowStateKey||""},b=_.tT(vh4,m),x=function(){return _.L(b(),Jz)},P=function(){if(_.w("enable_gff_accessibility_fix")){var p=!0,t;
if((t=x())==null?0:t.navigationEnabled){var I;_.hd((I=x())==null?void 0:I.navigationCommand);p=!1}t=Object.assign({},b(),{abuseReportFlowState:Object.assign({},x(),{isReportFormDirty:p})});_.AO(_.It("flowStateEntity",m(),t))}else _.hd((p=x())==null?void 0:p.navigationCommand)};
return _.C("yt-report-form-bottom-bar-view-model",{class:"ytWebReportFormBottomBarViewModelHost"},_.C("div",{class:"ytWebReportFormBottomBarViewModelBottomBarContainer"},_.C(_.wi,{data:function(){return c().cancelButton}},{buttonViewModel:function(p){return _.C(_.XU,{data:p.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:P})}}),_.C(_.wi,{data:function(){var p;
if(c().navButton){var t=Object;var I=t.assign,a=_.L(c().navButton,_.ri),k=((p=x())==null?0:p.navigationEnabled)||_.w("enable_gff_accessibility_fix")?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",H,T;p=_.L((H=x())==null?void 0:H.navigationCommand,_.Xz);H=(T=_.L(p,_.Ee))==null?void 0:T.url;t={buttonViewModel:I.call(t,{},a,{state:k,iconName:H?"OPEN_IN_NEW":""})}}else t=void 0;return t}},{buttonViewModel:function(p){return _.C(_.XU,{data:p.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:P})}})))},"Df");
kLF.idomCompat=!0;_.lv(kLF,"yt-report-form-bottom-bar-view-model",{props:{data:_.vt}});var H2R=_.Q1(function(J){var c=J.nextStep;return _.C("div",{class:"ytWebReportFormConfirmationPageViewModelRow"},_.C("div",{class:"ytWebReportFormConfirmationPageViewModelIcon","aria-hidden":"true"},_.C(_.HP,{icon:function(){return c().iconName||""}})),_.C("div",null,_.C(_.j8,{text:function(){return c().text},
className:"ytWebReportFormConfirmationPageViewModelNextStepText"})))},"Ef"),i2s=_.Q1(function(J){var c=J.data;
var m,b=(m=_.BG().resolve(_.y6(_.Ev)))==null?void 0:m(),x=_.tT(_.B8,function(){return c().flowStateKey||""});
return _.C("yt-report-form-confirmation-page-view-model",{class:function(){var P;return((P=_.L(x(),Jz))==null?void 0:P.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelHostDialog":"ytWebReportFormConfirmationPageViewModelHostPanel"}},_.C("div",{class:function(){var P;
return((P=_.L(x(),Jz))==null?void 0:P.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelImageDialog":"ytWebReportFormConfirmationPageViewModelImagePanel"}},_.C(_.RA,{data:function(){return b&&c().imageDark?c().imageDark:c().image},
alt:"",targetHeight:115,targetWidth:178,preserveHeight:!0,preserveWidth:!0})),_.C("div",{class:"ytWebReportFormConfirmationPageViewModelConfirmationContainer"},_.C("h1",{class:"ytWebReportFormConfirmationPageViewModelHeader"},function(){return c().confirmationHeader}),_.C("div",{class:"ytWebReportFormConfirmationPageViewModelBody"},_.C(_.j8,{text:function(){return c().confirmationText}})),_.C("div",{class:"ytWebReportFormConfirmationPageViewModelLawEnforcementText"},_.C(_.j8,{text:function(){return c().lawEnforcementText}})),
_.C("h1",{class:"ytWebReportFormConfirmationPageViewModelExpectHeader"},function(){return c().whatToExpectHeader}),_.C(_.n,{cond:function(){return c().nextSteps},
then:function(P){return _.C("div",null,_.C(_.Te,{each:P},function(p){return _.C(H2R,{nextStep:p})}))}}),_.C(_.n,{cond:function(){return c().legalReportText},
then:function(P){return _.C("div",null,_.C(_.j8,{text:P,className:"ytWebReportFormConfirmationPageViewModelLegalText"}))}})))},"Ff");
i2s.idomCompat=!0;_.lv(i2s,"yt-report-form-confirmation-page-view-model",{props:{data:_.vt}});var nBF=_.Q1(function(J){var c=J.data;var m=function(){var P;return((P=_.L(c().inputBox,$Ar))==null?void 0:P.maxChars)||500},b=function(){return c().flowStateKey||""},x=_.tT(_.B8,b);
J=_.Kd(function(P){P=Object.assign({},x(),{flowFormState:{isValid:P.length<=m()},abuseReportFlowState:{userComments:P,navigationEnabled:!(P.length>m()),isReportFormDirty:!0}});_.v9().dispatch(_.DI("flowStateEntity",b(),P))},150);
_.uN(function(){var P=Object.assign({},x(),{flowFormState:{isValid:!0}});_.v9().dispatch(_.DI("flowStateEntity",b(),P))});
return _.C("yt-report-form-details-page-view-model",{class:function(){var P;return((P=_.L(x(),Jz))==null?void 0:P.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHostDialog":"ytWebReportFormDetailsPageViewModelHostPanel"}},_.C("h1",{class:function(){var P;
return((P=_.L(x(),Jz))==null?void 0:P.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHeaderDialog":"ytWebReportFormDetailsPageViewModelHeaderPanel"}},function(){return c().detailsPageHeader}),_.C("div",{class:"ytWebReportFormDetailsPageViewModelBody"},_.C(_.j8,{text:function(){return c().bodyText}})),_.C("div",{class:"ytWebReportFormDetailsPageViewModelInput"},_.C($o,{label:function(){var P;
return((P=_.L(c().inputBox,$Ar))==null?void 0:P.placeholderText)||""},
outline:!0,rows:10,characterLimit:function(){var P;return{errorMessage:((P=_.L(c().inputBox,$Ar))==null?void 0:P.maxCharsExceededErrorMessage)||"",maxChars:m()}},
onInput:J})))},"Gf");
nBF.idomCompat=!0;_.lv(nBF,"yt-report-form-details-page-view-model",{props:{data:_.vt}});var T_F=_.Q1(function(J){var c=J.data;var m=J.selectedKey;var b=J.onSelected;var x=J.groupName;var P=function(){return c().text},p=function(){return c().attributedText},t=function(){return c().subtext},I=function(){return c().attributedSubtext},a=_.C("div",{class:"ytRadioButtonItemViewModelLabel"},_.C(_.n,{cond:P,
then:function(){return _.C("div",null,P)}}),_.C(_.n,{cond:p,
then:function(){return _.C(_.j8,{text:p})}}),_.C(_.n,{cond:t,
then:function(){return _.C("div",{class:"ytRadioButtonItemViewModelSubText"},t)}}),_.C(_.n,{cond:I,
then:function(){return _.C("div",{class:"ytRadioButtonItemViewModelSubText"},_.C(_.j8,{text:I}))}})),k=function(){if(p()){var T;
return(T=p())==null?void 0:T.content}return P()},H=function(){if(I()){var T;
return(T=I())==null?void 0:T.content}return t()};
J={};return _.C("yt-radio-button-item-view-model",{class:"ytRadioButtonItemViewModelHost"},_.C(_.Lx,{name:x,checked:function(){return!(m==null||!m()||c().key!==(m==null?void 0:m()))},
onChange:function(T){b==null||b(T.target,c(),x==null?void 0:x())},
labelRenderable:function(){return a},
ariaLabel:function(){return H()?k()+", "+H():k()},
className:_.pq((J.ytRadioButtonItemViewModelSubTitle=function(){return!!c().subtext},J))}))},"Hf");_.wFu=_.Q1(function(J){var c=J.data;var m=J.onSelected;var b=J.selectedKey;var x=J.groupName;return _.C("yt-radio-button-group-view-model",{class:"yt-radio-button-group-view-model",tabindex:0},_.C("fieldset",{class:"yt-radio-button-group-view-model__fieldset"},_.C(_.wi,{data:function(){return c().radioButtons}},{radioButtonItemViewModel:function(P){return _.C(T_F,{data:P.data,
onSelected:m,selectedKey:b,groupName:function(){return(x==null?void 0:x())||c().key}})}})))},"If");var r$1=_.Q1(function(J){var c=J.data;var m=_.Q5("div"),b=function(){return c().flowStateKey||""},x=_.tT(_.B8,b),P=function(){return _.L(x(),Jz)};
_.ui(function(){var p,t;if(((p=P())==null?0:p.isReportFormDirty)&&((t=P())==null||!t.navigationEnabled)&&_.w("enable_gff_accessibility_fix")){var I;if(((I=P())==null?void 0:I.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"){var a;(a=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderDialog"))==null||a.scrollIntoView()}else{var k;(k=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderPanel"))==null||k.scrollIntoView()}}},"VvP2Ne");
return _.C("yt-report-form-reason-select-page-view-model",{class:function(){var p;return((p=P())==null?void 0:p.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHostDialog":"ytWebReportFormReasonSelectPageViewModelHostPanel"}},_.C("h1",{class:function(){var p;
return((p=P())==null?void 0:p.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHeaderDialog":"ytWebReportFormReasonSelectPageViewModelHeaderPanel"}},function(){return c().pageHeader}),_.C("div",{class:"ytWebReportFormReasonSelectPageViewModelBody"},_.C(_.j8,{text:function(){return c().bodyText}})),_.C("div",{class:function(){var p;
return((p=P())==null?void 0:p.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelReasonsDialog":"ytWebReportFormReasonSelectPageViewModelReasonsPanel"}},_.C(_.n,{cond:function(){var p,t;
return((p=P())==null?void 0:p.isReportFormDirty)&&!((t=P())==null?0:t.navigationEnabled)&&_.w("enable_gff_accessibility_fix")},
then:function(){return _.C("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonError",el:m},_.C(_.HP,{icon:"INFO",className:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorIcon",size:16}),_.C("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorMessage","aria-live":"polite"},function(){return c().emptyReasonSelectErrorMessage}))}}),_.C(_.wFu,{data:function(){return _.L(c().radioButtonGroup,_.QwR)},
onSelected:function(p,t){p=Object.assign({},x(),{abuseReportFlowState:Object.assign({},P(),{reasonKey:t.key,navigationEnabled:!0,isReportFormDirty:!0,navigationCommand:t.command})});_.AO(_.It("flowStateEntity",b(),p))},
selectedKey:function(){var p;return(p=P())==null?void 0:p.reasonKey},
groupName:"report-form-reason-select-page"})))},"Jf");
r$1.idomCompat=!0;_.lv(r$1,"yt-report-form-reason-select-page-view-model",{props:{data:_.vt}});var sDf=_.Q1(function(J){var c=J.data;var m,b=(m=_.BG().resolve(_.y6(_.Ev)))==null?void 0:m();return _.C("yt-report-form-sign-in-page-view-model",{class:"yt-report-form-sign-in-page-view-model"},_.C("div",{class:"yt-report-form-sign-in-page-view-model__sign-in-prompt-image"},_.C(_.RA,{data:function(){return b&&c().imageDark?c().imageDark:c().image},
alt:""})),_.C("div",{class:"yt-report-form-sign-in-page-view-model__sign-in-text-content"},_.C("h1",{class:"yt-report-form-sign-in-page-view-model__sign-in-prompt-header"},function(){return c().header}),_.C(_.j8,{text:function(){return c().text},
className:"yt-report-form-sign-in-page-view-model__sign-in-prompt-body"})))},"Kf");
sDf.idomCompat=!0;_.lv(sDf,"yt-report-form-sign-in-page-view-model",{props:{data:_.vt}});_.lv(_.Q1(function(J){var c=J.data;var m=function(){var a;return(a=c().textInputPlaceholder)==null?void 0:a.content},b=function(a){a=a.target.value.trim();
var k=c().onUpdateText;k&&_.hd(k,{form:{userQuery:a}});c().userQuery=a},x=_.Kd(function(a){b(a)},150),P=_.Kq(function(a){x(a);
return!1}),p=_.Kq(function(a){a.key==="Enter"&&(b(a),(a=c().onNextStepCommand)&&_.hd(a,{}));
return!1}),t=_.oN("yt-talk-to-recs-view-model"),I=function(){if(_.w("web_hide_explore_hub_until_user_navigates_back_to_home")){var a,k,H;
(H=(k=(a=t.value)==null?void 0:a.closest("ytd-flow-step-renderer"))==null?void 0:k.querySelector("yt-flow-bottom-bar-view-model button-view-model button"))==null||H.click()}};
return _.C("yt-talk-to-recs-view-model",{class:"ytwTalkToRecsHost",el:t},_.C("div",{class:"ytwTalkToRecsTopCornerButton","aria-label":"More options"},_.C(_.wi,{data:function(){return c().topCornerButton}},{buttonViewModel:_.XU})),_.C("div",{class:"ytwTalkToRecsTalkToRecsWrapper"},_.C("div",{class:"ytwTalkToRecsTitle",
role:"heading",tabindex:0},_.C(_.j8,{text:function(){return c().title}}),_.C("sup",{class:"ytwTalkToRecsSuperScript"},"BETA")),_.C("div",{class:"ytwTalkToRecsSubtitle"},_.C(_.j8,{text:function(){return c().subtitle}})),_.C("div",{class:"ytwTalkToRecsChipsShelf"},_.C(_.wi,{data:function(){return c().answersShelf}},{chipsShelfViewModel:function(a){return _.C("div",{class:"ytwTalkToRecsChipsShelfViewModel"},_.C(_.tqQ,{data:a.data,
callback:I,enableSingleChipSelection:!0}))}})),_.C(_.n,{cond:function(){return c().showOpenTextInput&&!_.w("web_hide_explore_hub_until_user_navigates_back_to_home")},
then:function(){return _.C("div",{class:"ytwTalkToRecsUserInputBox"},_.C("input",{type:"text",class:"ytwTalkToRecsTextInput",placeholder:m,value:function(){return c().userQuery},
"on:input":P,"on:keyup":p,maxlength:200}))}})))},"Lf"),"yt-talk-to-recs-view-model",{props:{data:_.vt}});var ADF={sources:[{clientResource:{imageName:"CHECK"}}]};_.LYp=_.Q1(function(J){var c=_.oN("div");J=_.ou(J,{error:void 0});var m=J.data,b=J.error,x=J.onSelected;J=_.M(_.aO(function(){return Ql5(m())}));
var P=J.next().value,p=J.next().value;lFR(m,function(H){p(H);var T,r,W=oLF((T=m().options)==null?void 0:(r=T[H])==null?void 0:r.value,m().type);x==null||x(W);c.value.focus()});
J=_.Kq(function(){if(!m().disabled){var H=m(),T=P(),r=c.value;H.options&&(H=RN4(H.options,T,H.label),_.BG().resolve(_.wW).openSheet({viewModel:H},r))}});
var t=_.lm2(),I=function(){return!!b()},a=function(){return!!m().disabled},k={};
k=_.pq("ytDropdownViewModelDropdownContainer",(k.ytDropdownViewModelDropdownContainerErrorBorder=I,k.ytDropdownViewModelDropdownContainerDisabled=a,k));return _.C("dropdown-view-model",{class:"ytDropdownViewModelHost"},_.C("div",{class:k,"on:click":J,el:c,role:"combobox",tabindex:0,"on:keydown":t,"aria-invalid":I,"aria-disabled":a,"aria-describedby":function(){return I()?"dropdown-view-model-error":void 0}},_.C("div",{class:"ytDropdownViewModelText"},eNr(m,I,P),jlr(m,P)),_.C("div",{class:"ytDropdownViewModelChevronDown"},
_.C(_.HP,{icon:"CHEVRON_DOWN"}))),FN1(m,b))},"Mf");_.lv(_.Q1(function(J){var c=J.data;var m=function(x){var P=B8R(c());P.videoMetadata||(P.videoMetadata={});P.videoMetadata.sponsorshipsMetadata||(P.videoMetadata.sponsorshipsMetadata={});P.videoMetadata.sponsorshipsMetadata.minRequiredTier=String(x)},b=function(x){var P=B8R(c());
P.scheduledRedirectMetadata||(P.scheduledRedirectMetadata={});P.scheduledRedirectMetadata.scheduledRedirectTimeDeltaSec=String(x)};
return _.C("ytfz-schedule-fanzone-view-model",{class:"ytfzScheduleFanzoneViewModelHost"},_.C("section",{class:"ytfzScheduleFanzoneViewModelContentSection"},_.C("h2",{class:"ytfzScheduleFanzoneViewModelTitleGroup"},_.C(_.j8,{text:function(){return c().title}}),_.C(_.HP,{icon:"SCHEDULE_FANZONE",
className:"ytfzScheduleFanzoneViewModelIllustration"})),_.C(_.j8,{text:function(){return c().description},
className:"ytfzScheduleFanzoneViewModelDescription"}),_.C(_.wi,{data:function(){return c().tierChoices}},{dropdownViewModel:function(x){return _.C("div",{class:"ytfzScheduleFanzoneViewModelTierDropdown"},_.C(_.LYp,{data:x.data,
onSelected:m}))}}),_.C(_.wi,{data:function(){return c().startTimeChoices}},{dropdownViewModel:function(x){return _.C("div",{class:"ytfzScheduleFanzoneViewModelStartTimeDropdown"},_.C(_.LYp,{data:x.data,
onSelected:b}))}}),_.C(_.j8,{text:function(){return c().notice},
className:"ytfzScheduleFanzoneViewModelNotice"})),_.C("footer",{class:"ytfzScheduleFanzoneViewModelFooterSection"},_.C(_.wi,{data:function(){return c().scheduleButton}},{panelFooterViewModel:_.dg})))},"Nf"),"ytfz-schedule-fanzone-view-model",{props:{data:_.vt}});_.lv(_.Q1(function(J){var c=J.data;J=J.className===void 0?"":J.className;var m=_.tT(vh4,function(){return c().flowStateEntityKey||""}),b={};
b=_.pq("ytFlowBottomBarViewModelFlowBottomBarButtons",(b.ytFlowBottomBarViewModelFlowBottomBarButtonsDistributed=function(){return c().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"||c().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE"},b));
var x={},P=_.pq("ytFlowBottomBarViewModelFlowBottomBarPrimaryButton",b,(x.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonVerticalCentered=function(){return c().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},x.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonFlexPrimary=function(){return c().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY"},x));
x={};var p=_.pq("ytFlowBottomBarViewModelFlowBottomBarSecondaryButton",b,(x.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonVerticalCentered=function(){return c().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},x.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonFullDistributed=function(){return c().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"},x));
b={};b=_.pq("ytFlowBottomBarViewModelFlowBottomBarButtonSection",(b.ytFlowBottomBarViewModelFlowBottomBarButtonSectionVerticalCentered=function(){return c().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},b.ytFlowBottomBarViewModelFlowBottomBarButtonSectionJustifyEnd=function(){return c().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END"},b.ytFlowBottomBarViewModelFlowBottomBarButtonSectionSpaceBetween=function(){return c().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_SPACE_BETWEEN"},
b));
return _.C("yt-flow-bottom-bar-view-model",{class:_.pq("ytFlowBottomBarViewModelHost",J)},_.C(_.n,{cond:function(){var t;return(t=c())==null?void 0:t.textSection},
then:function(t){return _.C("div",{class:"ytFlowBottomBarViewModelFlowBottomBarTextSection"},_.C(_.j8,{text:t}))}}),_.C("div",{class:b},_.C(_.wi,{data:function(){return c().secondaryButton}},{buttonViewModel:function(t){return _.C(_.XU,{data:t.data,
className:p})}}),_.C(_.wi,{data:function(){return c().primaryButton}},{buttonViewModel:function(t){return _.C(_.XU,{data:t.data,
className:P,buttonOverrides:function(){var I;return{disabled:!((I=m())==null||!I.primaryButtonDisabled)}}})}})))},"Of"),"yt-flow-bottom-bar-view-model",{props:{data:_.vt,
className:_.Fz}});var DsR="add arrow_left article check circle circle_full creator_academy lock price_tag".split(" "),Gp=function(){var J=_.h.apply(this,arguments)||this;J.enableScrollingFix=!0;J.bottomBar=!1;J.hideBottomBar=!1;J.fitContent=!1;return J};
_.D(Gp,_.h);_.V=Gp.prototype;_.V.ready=function(){_.w("enable_pdp_icon_prefetch")&&_.hVF(_.BG().resolve(_.xX),0,DsR)};
_.V.focus=function(J){this.topBar?_.ef(this.topBar,J):this.paperDialog.focus(J)};
_.V.attached=function(){this.paperDialog||(this.paperDialog=this.hostElement.closest("tp-yt-paper-dialog"));this.JSC$16824_scroller&&(this.JSC$16824_scroller.dialogElement=this.paperDialog,this.JSC$16824_scroller.attached&&typeof this.JSC$16824_scroller.attached==="function"&&this.JSC$16824_scroller.attached())};
_.V.onDataChanged=function(){var J;this.fitContent=!((J=this.data)==null||!J.fitContent);var c;this.bottomBar=!((c=this.data)==null||!c.bottomBar);this.hideBottomBar=this.containsExploreHub};
_.V.onProgressChanged=function(){var J,c,m=((c=(J=this.data)==null?void 0:J.progress)!=null?c:0)*100;this.progressElement.style.width=m+"%"};
_.V.isProgressHidden=function(){var J;return!((J=this.data)==null?0:J.progress)};
_.V.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(J){return _.w("enable_wiz_next_lp2_msof")&&J&&!J.couponRenderer?"yt-flow-bottom-bar-renderer":"ytd-flow-bottom-bar-renderer"}}}}}};
_.eE.Object.defineProperties(Gp.prototype,{containsExploreHub:{configurable:!0,enumerable:!0,get:function(){var J;return _.w("web_hide_explore_hub_until_user_navigates_back_to_home")&&!!_.L((J=this.data)==null?void 0:J.content,Ako)}}});
Gp.prototype.onProgressChanged=Gp.prototype.onProgressChanged;Gp.prototype.onDataChanged=Gp.prototype.onDataChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Gp.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],Gp.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Gp.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Gp.prototype,"enableScrollingFix",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Gp.prototype,"bottomBar",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Gp.prototype,"hideBottomBar",void 0);_.O([_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],Gp.prototype,"containsExploreHub",null);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Gp.prototype,"fitContent",void 0);_.O([_.Iu("#progress"),_.R("design:type",HTMLElement)],Gp.prototype,"progressElement",void 0);
_.O([_.Iu("#scroller"),_.R("design:type",Object)],Gp.prototype,"JSC$16824_scroller",void 0);_.O([_.Iu("ytd-flow-top-bar-renderer"),_.R("design:type",HTMLElement)],Gp.prototype,"topBar",void 0);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Gp.prototype,"onDataChanged",null);_.O([_.NE("data.progress"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Gp.prototype,"onProgressChanged",null);
Gp=_.O([_.E({is:"ytd-flow-step-renderer",disableElementRegistration:!0})],Gp);
_.v(Gp,"ytd-flow-step-renderer",function(){if(ISp!==void 0)return ISp;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return ISp=J},{mode:1});var WYs=function(J){this.resolveCommand=J;this.steps={}},zGu=function(J,c){c=_.M(c||[]);
for(var m=c.next();!m.done;m=c.next()){m=m.value;var b=Object.values(m)[0],x=void 0;if((x=b)==null?0:x.stepId)J.steps[b.stepId]=m}},Yso=function(J,c){var m,b,x,P,p;
return _.N(function(t){if((m=J.state)==null||!m.currentStepId)return t.return(void 0);b=uD1(J);if(!b)return t.return(f71(J));if(x=_.L(b,_.OwR)){var I;((I=x.screenLoggingData)==null?0:I.screenVeType)&&_.ge(_.C7(),x.screenLoggingData.screenVeType);((P=x)==null?0:P.onStepStartCommand)&&J.resolveCommand((p=x)==null?void 0:p.onStepStartCommand,{})}if(x&&c){I=x;var a,k,H,T;((a=c.flowLoggingData)==null?0:a.eventNamespace)&&((k=I.flowEventData)==null?0:k.eventType)&&((H=I.flowEventData)==null?0:H.eventMetadata)&&
((T=c.flowLoggingData)==null?0:T.flowType)&&(a=_.VS(c.flowLoggingData.eventNamespace,I.flowEventData.eventType,I.flowEventData.eventMetadata),_.Pj(_.Mr(),a,c.flowLoggingData.flowType));c.steps&&!c.steps.includes(b)&&c.steps.push(b)}return t.return(b)})};
WYs.prototype.back=function(){var J;(J=this.state)!=null&&J.stepIdStack&&(this.state.currentStepId=this.state.stepIdStack.pop())};
WYs.prototype.handleUpdateFlowCommand=function(J){J.steps&&zGu(this,J.steps);J.entityUpdateCommand&&this.resolveCommand(J.entityUpdateCommand,{});J.flowContinuationCommand&&(J=J.flowContinuationCommand)&&(this.getFlowContinuationCommand=J);this.awaitFlowContinuation&&(this.awaitFlowContinuation(uD1(this)),this.awaitFlowContinuation=void 0)};
WYs.prototype.reset=function(){this.state=void 0;this.steps={};this.awaitFlowContinuation=this.getFlowContinuationCommand=void 0};
var f71=function(J){return _.N(function(c){return J.getFlowContinuationCommand?c.return(new Promise(function(m){J.awaitFlowContinuation=m;J.getFlowContinuationCommand&&J.resolveCommand(J.getFlowContinuationCommand,{flow_state:J.state})})):c.return(Promise.resolve(void 0))})},uD1=function(J){var c;
if((c=J.state)!=null&&c.currentStepId)return J.steps[J.state.currentStepId]};var Eu=function(){var J=_.h.apply(this,arguments)||this;J.flowState=new WYs(function(c,m){m=m===void 0?{}:m;_.p7.instance.resolveCommand(c,{form:{form:m,element:J.hostElement}})});
J.initialState=!0;J.isLoading=!1;J.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 J};
_.D(Eu,_.h);_.V=Eu.prototype;_.V.onPopupClosed=function(J){J&&this.hostElement!==J.detail.popupRenderer||(this.flowState.reset(),this.currentFlowStep=this.data=void 0,this.initialState=!0)};
_.V.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"}}}};
_.V.focus=function(J){var c=this;_.S5(function(){var m=_.Bj(c.hostElement).querySelector("ytd-flow-step-renderer");(m==null?0:m.topBar)?m.focus(J):c.topBar&&_.ef(c.topBar,J)},1)};
_.V.attached=function(){this.hostElement.setAttribute("dialog","true")};
_.V.computeTopBarHidden=function(J){var c;return!((c=_.L(J,_.OwR))==null||!c.topBarOverride)};
_.V.dataChanged=function(){var J=this,c,m;return _.N(function(b){if(b.nextAddress==1){((c=J.data)==null?0:c.steps)&&zGu(J.flowState,J.data.steps);if((m=J.data)==null?0:m.flowContinuationCommand){var x=J.flowState,P=J.data.flowContinuationCommand;P&&(x.getFlowContinuationCommand=P)}return _.K(b,Yso(J.flowState,J.data),2)}J.currentFlowStep=b.yieldResult;_.tD(b)})};
_.V.flowChanged=function(){var J=this,c;return _.N(function(m){if(m.nextAddress==1){if(!J.flow)return m.return();J.flowState.state=J.flow;J.isLoading=!0;return _.K(m,Yso(J.flowState,J.data),2)}c=m.yieldResult;if(!c||J.flow.isLoading)return m.return();J.currentFlowStep=c;J.initialState=!1;J.isLoading=!1;J.autofocusAndRefit();_.tD(m)})};
_.V.autofocusAndRefit=function(){var J=this,c=_.BG().resolve(_.y6(_.Js)),m=document.activeElement&&(document.activeElement.tagName==="TEXTAREA"||document.activeElement.tagName==="INPUT"||document.activeElement.tagName==="BUTTON"),b=document.querySelector("yt-report-form-confirmation-page-view-model"),x=document.querySelector("yt-report-form-details-page-view-model"),P=document.querySelector("yt-report-form-reason-select-page-view-model"),p=document.querySelector("yt-contributor-zero-state-view-model"),
t=document.querySelector("yt-structured-context-note-view-model"),I=document.querySelector("yt-note-view-model");(!m&&c&&c.isKeyBoardInUse()||b||!m&&x||!m&&P||p||t||I)&&_.jf(this.hostElement);_.o3(this,function(){_.cA(J.hostElement,"yt-refit")})};
_.V.handleUpdateFlowCommand=function(J){this.data&&(J=_.L(J,v0e),J.targetId===this.data.targetId&&(J.flowContinuationCommand&&(this.data.flowContinuationCommand=J.flowContinuationCommand),this.flowState.handleUpdateFlowCommand(J),this.autofocusAndRefit()))};
_.V.handleFlowNextStepCommand=function(J){this.data&&this.flow&&this.flow.key&&(J=_.L(J,GO4),J.targetId===this.data.targetId&&(J=J.stepId||"",this.ytdReduxBehavior.dispatch(_.DI("flowStateEntity",this.flow.key,{currentStepId:J,stepIdStack:(this.flow.stepIdStack||[]).concat(J)}))))};
_.V.handleFlowPrevStepCommand=function(J){if(this.data&&this.flow&&this.flow.key&&(J=_.L(J,E0s),J.targetId===this.data.targetId)){var c=[].concat(_.L6(this.flow.stepIdStack||[]));c.length>1?(c.pop(),this.ytdReduxBehavior.dispatch(_.DI("flowStateEntity",this.flow.key,{currentStepId:c[c.length-1],stepIdStack:c}))):J.onFirstStepCommand&&this.ytComponentBehavior.resolveCommand(J.onFirstStepCommand)}};
_.V.handleYpcCancelRecurrenceCommand=function(J){if(this.data&&this.flow&&this.flow.key&&(J=_.L(J,eVh),J.targetId===this.data.targetId&&J.endpointCommand)){var c=_.L(this.flow,jwR);c&&_.L(J.endpointCommand,_.fAQ)&&(_.L(J.endpointCommand,_.fAQ).feedbackData=c.surveyFeedback);this.ytComponentBehavior.resolveCommand(J.endpointCommand)}};
_.V.handlePartialUpdateFlowStateEntity=function(J){this.data&&this.flow&&this.flow.key&&this.ytdReduxBehavior.dispatch(_.DI("flowStateEntity",this.flow.key,J,"REPEATED_FIELDS_MERGE_OPTION_REPLACE"))};
Eu.prototype.flowChanged=Eu.prototype.flowChanged;Eu.prototype.dataChanged=Eu.prototype.dataChanged;Eu.prototype.onPopupClosed=Eu.prototype.onPopupClosed;_.O([_.f(_.fY),_.R("design:type",Object)],Eu.prototype,"ytdReduxBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Eu.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],Eu.prototype,"ytComponentBehavior",void 0);
_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],Eu.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],Eu.prototype,"ytActionHandlerBehavior",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Eu.prototype,"initialState",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Eu.prototype,"isLoading",void 0);_.O([_.U(),_.R("design:type",Object)],Eu.prototype,"data",void 0);
_.O([_.U(),_.R("design:type",Object)],Eu.prototype,"currentFlowStep",void 0);_.O([_.ps("yt-popup-closed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],Eu.prototype,"onPopupClosed",null);_.O([_.U({selectorArgs:["data.flowStateEntityKey"],selector:vh4}),_.R("design:type",Object)],Eu.prototype,"flow",void 0);_.O([_.Iu("ytd-flow-top-bar-renderer"),_.R("design:type",HTMLElement)],Eu.prototype,"topBar",void 0);
_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype",Promise)],Eu.prototype,"dataChanged",null);_.O([_.kr("flow"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype",Promise)],Eu.prototype,"flowChanged",null);Eu=_.O([_.E({is:"ytd-flow-root-renderer",disableElementRegistration:!0})],Eu);
_.XFr=_.cd()(Eu,"ytd-flow-root-renderer",function(){if(tjh!==void 0)return tjh;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return tjh=J},{mode:_.mP("kevlar_poly_si_batch_j025")?1:2});var Z25;var Bn=null;_.lv(_.Q1(function(J){return _.C("yt-thumbnail-overlay-attribution-view-model",{class:"ytThumbnailOverlayAttributionViewModelHost"},_.C("div",{class:"ytThumbnailOverlayAttributionViewModelInnerContainer"},_.C(_.j8,{text:function(){return J.data().text}}),_.C("span",{class:"ytThumbnailOverlayAttributionViewModelBottomRightCorner"})))},"Pf"),"yt-thumbnail-overlay-attribution-view-model",{props:{data:_.vt}});var qsh=_.Q1(function(J){var c=J.playerControlsProps;var m=J.isShortsPage;return _.C("yt-bigboard",null,_.C(_.n,{cond:function(){return c().isDragging},
then:function(){return _.C("div",{class:"ytBigboardStoryboardHost"},_.C(_.HrR,{progressBarProps:c,isShortsPage:m}))}}))},"Qf");
qsh.idomCompat=!0;_.vC={ACCOUNT_LABEL:gk("ACCOUNT_LABEL"),ACT_ON_THIS_COMMENT:gk("ACT_ON_THIS_COMMENT"),ADD_TO_DROPDOWN_LABEL:gk("ADD_TO_DROPDOWN_LABEL"),AD_BADGE_HINT:gk("AD_BADGE_HINT"),AD_BADGE_TEXT:gk("AD_BADGE_TEXT"),ALL_CHANNELS_LABEL:gk("ALL_CHANNELS_LABEL"),AMBIENT_MODE:gk("AMBIENT_MODE"),AMBIENT_MODE_OFF:gk("AMBIENT_MODE_OFF"),AMBIENT_MODE_ON:gk("AMBIENT_MODE_ON"),ANDROID_DEPRECATION_MESSAGE_BODY:gk("ANDROID_DEPRECATION_MESSAGE_BODY"),ANDROID_DEPRECATION_MESSAGE_HEADER:gk("ANDROID_DEPRECATION_MESSAGE_HEADER"),
APP_UPSELL_SUBTITLE:gk("APP_UPSELL_SUBTITLE"),APP_UPSELL_TITLE:gk("APP_UPSELL_TITLE"),AUTONAV_TOGGLE:gk("AUTONAV_TOGGLE"),AUTOPLAY_IN_TEN_SECONDS:gk("AUTOPLAY_IN_TEN_SECONDS"),AUTOPLAY_PAUSED:gk("AUTOPLAY_PAUSED"),AUTOPLAY_PLAY_NOW:gk("AUTOPLAY_PLAY_NOW"),AUTOPLAY_UP_NEXT_IN:gk("AUTOPLAY_UP_NEXT_IN"),BACK:gk("BACK"),CANCEL:gk("CANCEL"),CHANNEL_SWITCHER_LABEL:gk("CHANNEL_SWITCHER_LABEL"),CLOSE:gk("CLOSE","close"),CLOSED_CAPTIONS_DISABLED:gk("CLOSED_CAPTIONS_DISABLED"),CLOSED_CAPTIONS_OFF:gk("CLOSED_CAPTIONS_OFF"),
CLOSED_CAPTIONS_ON:gk("CLOSED_CAPTIONS_ON"),CLOSED_CAPTIONS_ON_LANGUAGE:gk("CLOSED_CAPTIONS_ON_LANGUAGE"),CLOSE_SEARCH_LABEL:gk("CLOSE_SEARCH_LABEL"),CLOSE_SETTINGS_LABEL:gk("CLOSE_SETTINGS_LABEL"),COMMENT_MODAL_CONTENT:gk("COMMENT_MODAL_CONTENT"),CONFIRM_OK:gk("CONFIRM_OK"),CONNECT_TO_THE_INTERNET:gk("CONNECT_TO_THE_INTERNET"),COPIED_TO_CLIPBOARD:gk("COPIED_TO_CLIPBOARD"),COPY:gk("COPY"),COPY_DEBUG_INFO:gk("COPY_DEBUG_INFO"),COPY_EMBED_CODE:gk("COPY_EMBED_CODE"),COPY_LINK_LABEL:gk("COPY_LINK_LABEL"),
COPY_VIDEO_URL:gk("COPY_VIDEO_URL"),COPY_VIDEO_URL_AT_CURRENT_TIME:gk("COPY_VIDEO_URL_AT_CURRENT_TIME"),CREATE_CHANNEL_TITLE:gk("CREATE_CHANNEL_TITLE"),DELETE_FROM_DOWNLOADS:gk("DELETE_FROM_DOWNLOADS"),DIALOG:gk("DIALOG"),DONE:gk("DONE"),DOWNLOAD:gk("DOWNLOAD"),FAILED_COPY_ERROR_MESSAGE:gk("FAILED_COPY_ERROR_MESSAGE"),FLAG_CONFIRM:gk("FLAG_CONFIRM"),FLAG_CONTENT:gk("FLAG_CONTENT"),FLAG_LABEL:gk("FLAG_LABEL"),FLAG_TITLE:gk("FLAG_TITLE"),FULLSCREEN_GENERIC_ERROR:gk("FULLSCREEN_GENERIC_ERROR"),GOOGLE_COMPANY:gk("GOOGLE_COMPANY"),
HIDE_PLAYER_CONTROLS:gk("HIDE_PLAYER_CONTROLS","Hide player controls"),HIDE_PLAYLIST_VIDEOS:gk("HIDE_PLAYLIST_VIDEOS"),HIDE_SEARCH_FILTERS_LABEL:gk("HIDE_SEARCH_FILTERS_LABEL"),HOME:gk("HOME","Home"),INVALID_RESPONSE_RECEIVED:gk("INVALID_RESPONSE_RECEIVED"),LIBRARY:gk("LIBRARY","Library"),LISTENING:gk("LISTENING"),LOADING:gk("LOADING"),LONG_PRESS_MIC_TO_SPEAK:gk("LONG_PRESS_MIC_TO_SPEAK","Long press mic_icon_placeholder to speak"),LOOP:gk("LOOP"),MENU_DESKTOP:gk("MENU_DESKTOP"),MENU_EXIT:gk("MENU_EXIT"),
MENU_FEEDBACK:gk("MENU_FEEDBACK"),MENU_HELP:gk("MENU_HELP"),MENU_IMPRESSUM:gk("MENU_IMPRESSUM"),MENU_PLAYER_SETTINGS:gk("MENU_PLAYER_SETTINGS"),MENU_SETTINGS:gk("MENU_SETTINGS"),MENU_SIGN_IN:gk("MENU_SIGN_IN"),MENU_TITLE:gk("MENU_TITLE"),MENU_YOUR_DATA:gk("MENU_YOUR_DATA"),MORE_INFO:gk("MORE_INFO"),MORE_OPTIONS:gk("MORE_OPTIONS"),MUTE_VOLUME:gk("MUTE_VOLUME"),NEW_PLAYLIST:gk("NEW_PLAYLIST"),NEXT_VIDEO:gk("NEXT_VIDEO"),NOTIFICATION_ERROR_MESSAGE:gk("NOTIFICATION_ERROR_MESSAGE"),NOT_FOUND_CTA:gk("NOT_FOUND_CTA"),
NOT_FOUND_MESSAGE:gk("NOT_FOUND_MESSAGE"),NOT_FOUND_TITLE:gk("NOT_FOUND_TITLE"),NO_DOWNLOADS:gk("NO_DOWNLOADS"),NO_MIC_INPUT:gk("NO_MIC_INPUT"),OFFLINE_CHECK_CONNECTION:gk("OFFLINE_CHECK_CONNECTION"),OOPS_MESSAGE:gk("OOPS_MESSAGE"),OPEN_APP:gk("OPEN_APP"),OPEN_YOUTUBE:gk("OPEN_YOUTUBE"),PAUSE:gk("PAUSE"),PLAY:gk("PLAY"),PLAYER_CAPTION:gk("PLAYER_CAPTION"),PLAYER_CAPTION_OFF:gk("PLAYER_CAPTION_OFF"),PLAYER_CAPTION_ON:gk("PLAYER_CAPTION_ON"),PLAYER_DOUBLE_SPEED_USER_EDU:gk("PLAYER_DOUBLE_SPEED_USER_EDU"),
PLAYER_DOUBLE_TAP_TO_SEEK:gk("PLAYER_DOUBLE_TAP_TO_SEEK"),PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS:gk("PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS"),PLAYER_EXIT_FULLSCREEN:gk("PLAYER_EXIT_FULLSCREEN"),PLAYER_FASTFORWARD_SECONDS:gk("PLAYER_FASTFORWARD_SECONDS"),PLAYER_FULLSCREEN:gk("PLAYER_FULLSCREEN"),PLAYER_LIVE_LABEL:gk("PLAYER_LIVE_LABEL"),PLAYER_LIVE_NOW:gk("PLAYER_LIVE_NOW"),PLAYER_MINIMIZE:gk("PLAYER_MINIMIZE"),PLAYER_NEXT:gk("PLAYER_NEXT"),PLAYER_PAUSE:gk("PLAYER_PAUSE"),PLAYER_PLAY:gk("PLAYER_PLAY"),
PLAYER_PREVIOUS:gk("PLAYER_PREVIOUS"),PLAYER_PROGRESS_BAR:gk("PLAYER_PROGRESS_BAR"),PLAYER_QUALITY:gk("PLAYER_QUALITY"),PLAYER_QUALITY_AUTO:gk("PLAYER_QUALITY_AUTO"),PLAYER_REPLAY:gk("PLAYER_REPLAY"),PLAYER_REWIND_SECONDS:gk("PLAYER_REWIND_SECONDS"),PLAYER_SPEED:gk("PLAYER_SPEED"),PLAYER_SPEEDUP_USER_EDU:gk("PLAYER_SPEEDUP_USER_EDU"),PLAYER_SPEED_DECREASE:gk("PLAYER_SPEED_DECREASE"),PLAYER_SPEED_INCREASE:gk("PLAYER_SPEED_INCREASE"),PLAYER_SPEED_NORMAL:gk("PLAYER_SPEED_NORMAL"),PLAYER_SPEED_RECENT:gk("PLAYER_SPEED_RECENT"),
PLAYER_TIME_DURATION:gk("PLAYER_TIME_DURATION"),PLAYER_TIME_ELAPSED:gk("PLAYER_TIME_ELAPSED"),PLAYLIST_DESCRIPTION_INVALID_CHARACTERS:gk("PLAYLIST_DESCRIPTION_INVALID_CHARACTERS"),PLAYLIST_MIX_DETAILED_LONG_BYLINE:gk("PLAYLIST_MIX_DETAILED_LONG_BYLINE"),PLAYLIST_NAME_INVALID_CHARACTERS:gk("PLAYLIST_NAME_INVALID_CHARACTERS"),PLAYLIST_NAME_MISSING:gk("PLAYLIST_NAME_MISSING"),PLAYLIST_NAME_TOO_LONG:gk("PLAYLIST_NAME_TOO_LONG"),PLAYLIST_PANEL_END_OF_PLAYLIST:gk("PLAYLIST_PANEL_END_OF_PLAYLIST"),PLAYLIST_PANEL_NEXT:gk("PLAYLIST_PANEL_NEXT"),
PLAYLIST_PANEL_UNLISTED_PLAYLIST:gk("PLAYLIST_PANEL_UNLISTED_PLAYLIST"),PLAYLIST_TEXT_INPUT_CHAR_COUNT:gk("PLAYLIST_TEXT_INPUT_CHAR_COUNT"),PLAY_ALL:gk("PLAY_ALL"),PLEASE_FIX_ERRORS:gk("PLEASE_FIX_ERRORS"),PREMIUM_BADGE_LABEL:gk("PREMIUM_BADGE_LABEL","Premium"),PREVIOUS_VIDEO:gk("PREVIOUS_VIDEO"),PRIVACY_POLICY:gk("PRIVACY_POLICY"),RELOAD:gk("RELOAD"),REQUIRED_LABEL:gk("REQUIRED_LABEL"),SAVE_PLAYLIST:gk("SAVE_PLAYLIST"),SCRUB_SLIDE_USER_EDU:gk("SCRUB_SLIDE_USER_EDU"),SEARCH:gk("SEARCH","Search"),
SEARCH_APPEND_LABEL:gk("SEARCH_APPEND_LABEL"),SEARCH_CHANNEL:gk("SEARCH_CHANNEL"),SEARCH_CLEAR_LABEL:gk("SEARCH_CLEAR_LABEL"),SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST:gk("SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST","Album"),SEARCH_ENTITY_SUGGESTION_MOVIE:gk("SEARCH_ENTITY_SUGGESTION_MOVIE","Movie"),SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST:gk("SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST","Song"),SEARCH_ENTITY_SUGGESTION_TV_SHOW:gk("SEARCH_ENTITY_SUGGESTION_TV_SHOW","TV Show"),SEARCH_FILTERS_LABEL:gk("SEARCH_FILTERS_LABEL"),
SEARCH_LABEL:gk("SEARCH_LABEL"),SEARCH_PPP_PLACEHOLDER_TEXT:gk("SEARCH_PPP_PLACEHOLDER_TEXT"),SEEK_SLIDER:gk("SEEK_SLIDER"),SETTINGS_LABEL:gk("SETTINGS_LABEL"),SETTINGS_MIC_PERMISSION:gk("SETTINGS_MIC_PERMISSION"),SHORTS_TAB_LABEL:gk("SHORTS_TAB_LABEL","Shorts"),SHOW_LESS:gk("SHOW_LESS"),SHOW_MORE:gk("SHOW_MORE"),SHOW_PLAYER_CONTROLS:gk("SHOW_PLAYER_CONTROLS","Show player controls"),SHOW_PLAYLIST_VIDEOS:gk("SHOW_PLAYLIST_VIDEOS"),SHOW_SEARCH_FILTERS_LABEL:gk("SHOW_SEARCH_FILTERS_LABEL"),SIGN_IN_LABEL:gk("SIGN_IN_LABEL"),
SIGN_IN_ON_WEB:gk("SIGN_IN_ON_WEB"),STABLE_VOLUME:gk("STABLE_VOLUME"),STABLE_VOLUME_OFF:gk("STABLE_VOLUME_OFF"),STABLE_VOLUME_ON:gk("STABLE_VOLUME_ON"),STATS_FOR_NERDS:gk("STATS_FOR_NERDS"),SUGGESTION_DISMISSED_LABEL:gk("SUGGESTION_DISMISSED_LABEL"),SUGGESTION_DISMISS_LABEL:gk("SUGGESTION_DISMISS_LABEL"),SUGGESTION_NEW_VIDEOS_TEXT:gk("SUGGESTION_NEW_VIDEOS_TEXT"),SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL:gk("SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL","View image source"),SUGGESTION_THUMBNAIL_LABEL:gk("SUGGESTION_THUMBNAIL_LABEL"),
TERMS_OF_SERVICE:gk("TERMS_OF_SERVICE"),TIMESTAMP_MINUTES:gk("TIMESTAMP_MINUTES"),TIMESTAMP_SECONDS:gk("TIMESTAMP_SECONDS"),TOGGLE_OFF:gk("TOGGLE_OFF"),TOGGLE_ON:gk("TOGGLE_ON"),TRENDING:gk("TRENDING"),TROUBLESHOOT_PLAYBACK_ISSUE:gk("TROUBLESHOOT_PLAYBACK_ISSUE"),TRY_AGAIN_LATER:gk("TRY_AGAIN_LATER"),TRY_AGAIN_MIC_PERMISSION:gk("TRY_AGAIN_MIC_PERMISSION"),TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE:gk("TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE"),TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION:gk("TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION"),
TURN_OFF_AUTOPLAY_DIALOG_TITLE:gk("TURN_OFF_AUTOPLAY_DIALOG_TITLE"),UNMUTE_VOLUME:gk("UNMUTE_VOLUME"),VIDEO_LINK_LABEL:gk("VIDEO_LINK_LABEL")};var UsS=_.Q1(function(J){var c=J.playerApi;J=_.oN("button",function(b){_.Zm(b,36843)});
var m=gk("PLAYER_FASTFORWARD_SECONDS","",{seconds_placeholder:"30"});return _.C("jump-forward-button",{class:"ytPlayerControlsJumpForwardButtonHost"},_.C("button",{el:J,class:"ytPlayerControlsJumpForwardButtonButton",title:m,"aria-label":m,"on:click":_.Kq(function(){_.qW(36843);c&&c().seekBy(30);window.dispatchEvent(new CustomEvent("jump-forward-clicked"));return!1})},_.C("span",null,_.C(_.HP,{icon:"FAST_FORWARD"}))))},"Rf");var Ssu=_.Q1(function(J){var c=J.appApi;J=_.oN("button",function(b){_.Zm(b,62946)});
var m=gk("OPEN_IN_MINIPLAYER");return _.C("miniplayer-button",{class:"ytMiniplayerButtonHost"},_.C("button",{el:J,class:"ytMiniplayerButtonButton",title:m,"aria-label":m,"on:click":_.Kq(function(){_.qW(62946);var b,x;(x=(b=c()).openInMiniplayer)==null||x.call(b);return!1})},_.C(_.HP,{icon:"PICTURE_IN_PICTURE",
active:!1})))},"Sf");var hG5=_.Q1(function(J){var c=J.playerApi;J=_.oN("button",function(P){_.Zm(P,142812)});
var m=_.M(_.K2(!1,void 0,"I3VCyb")),b=m.next().value,x=m.next().value;m=function(){return gk("SET_PLAYBACK_SPEED_X","",{speed_rate_placeholder:""+(b()?1:2)})};
return _.C("yt-playback-speed-button",{class:"ytPlaybackSpeedButtonHost"},_.C("button",{el:J,class:"ytPlaybackSpeedButtonButton",title:m,"aria-label":m,"on:click":_.Kq(function(){_.qW(142812);if(c){var P=c(),p=b();P.setPlaybackRate(p?1:2);x(!b())}return!1})},_.C("span",null,_.C(_.HP,{icon:function(){return b()?"PLAY_ARROW_HALF_CIRCLE_FILLED":"PLAY_ARROW_HALF_CIRCLE"}}))))},"Tf");var dsR=_.Q1(function(J){var c=J.title;var m=J.ariaLabel;var b=J.icon;var x=J.command;var P=J.veType;J=_.oN("button",function(p){P&&_.Zm(p,P())});
return _.C("ytd-thumbnail-overlay-button",{class:"ytdThumbnailOverlayButtonHost"},_.C("button",{el:J,class:"ytdThumbnailOverlayButtonButton",title:c,"aria-label":m,"on:click":_.Kq(function(){P&&_.qW(P());x&&_.BG().resolve(_.gu).resolveCommand(x())})},_.C(_.HP,{icon:b})))},"Uf");var Fd="";var $sF=_.Q1(function(J){var c=J.playerControlsProps,m=J.onClickFn;J=_.n2(function(){var P=c(),p=-1;P.captionsAvailable&&(p=P.captionsEnabled?1:0);return p},void 0,"WecR8e");
var b=_.n2(function(){var P=c();return P.captionsAvailable?_.CX(P.captionsEnabled?"CLOSED_CAPTIONS_ON":"CLOSED_CAPTIONS_OFF"):_.CX("CLOSED_CAPTIONS_DISABLED")},void 0,"atEfde"),x=_.n2(function(){var P=c();
P=P.captionsAvailable?P.captionsEnabled:void 0;return P},void 0,"Q17ly");
return _.C("yt-closed-captions-toggle-button",null,_.C(_.Na4,{captionIconType:J,ariaLabel:b,ariaPressed:x,onClick:function(P){var p=c();if(p.captionsAvailable){var t=p.playerApi;if(t){var I=p.playerApi;if(I){var a=Fd;if(a){I=I.getOption("captions","track");var k;Fd=(k=I?I.displayName:null)!=null?k:a}else _.Xd(I)?(a=_.qdR(I),Fd=a.length?(k=O1f(a))?k.displayName:a[0].displayName:""):Fd=""}AGs(t);_.w("mweb_disable_set_state_captions_killswitch")&&p.setState({captionsEnabled:!p.captionsEnabled})}}var H,
T;(T=(H=p.appApi).showCaptionsToggleToast)==null||T.call(H,p);m==null||m(P)},
isOverlay:!0}))},"Vf");var GLr=_.Q1(function(J){var c=J.data;return _.C("yt-premiere-trailer-badge",{class:"yt-premiere-trailer-badge"},_.C(_.QG,{data:function(){return{type:16,text:_.twu(c().label)}}}))},"Wf");var EBF=_.Q1(function(J){var c=_.pq("ytPlayerControlsAnimatedSeekArrowsArrow",function(){return J.direction()===1?"ytPlayerControlsAnimatedSeekArrowsForwardArrow":"ytPlayerControlsAnimatedSeekArrowsBackwardArrow"},function(){return J.size()==="small"?"ytPlayerControlsAnimatedSeekArrowsArrowSmall":"ytPlayerControlsAnimatedSeekArrowsArrowLarge"},function(){return J.size()==="small"?J.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowSmallForward":"ytPlayerControlsAnimatedSeekArrowsArrowSmallBackward":
J.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowLargeForward":"ytPlayerControlsAnimatedSeekArrowsArrowLargeBackward"});
return _.C("animated-seek-arrows",{class:_.pq("ytPlayerControlsAnimatedSeekArrowsHost")},_.C("span",{class:c}),_.C("span",{class:c}),_.C("span",{class:c}))},"Xf");
EBF.idomCompat=!0;var vBp=_.Q1(function(){var J=_.CX("PLAYER_SECONDS",{seconds_placeholder:"30"}),c=_.M(_.K2(!1,void 0,"Yj8msb")),m=c.next().value,b=c.next().value,x=_.M(_.K2(!1,void 0,"r9Z50e"));c=x.next().value;var P=x.next().value;x={};var p=_.pq("jumpForwardOverlayOverlay",(x.jumpForwardOverlayOverlayHidden=c,x));_.uN(function(){var t=null,I=null,a=function(){t!==null&&_.LZ().cancelJob(t);I!==null&&_.LZ().cancelJob(I);P(!0);b(!0);_.cP(_.LZ(),function(){P(!1)});
t=_.cP(_.LZ(),function(){P(!0);I=_.cP(_.LZ(),function(){b(!1)},200)},600)};
window.addEventListener("jump-forward-clicked",a);_.f2(function(){window.removeEventListener("jump-forward-clicked",a)})});
return _.C("jump-forward-overlay",{class:"jumpForwardOverlayHost"},_.C(_.n,{cond:m,then:function(){return _.C("div",{class:p},_.C(EBF,{direction:1,size:"large"}),_.C("div",null,J))}}))},"Yf");var ade=_.vC.MUTE_VOLUME,CKh=_.vC.UNMUTE_VOLUME,O2r=_.Q1(function(J){var c=J.muteIconType;var m=J.onClick;var b=J.useOutlineIcon;J=_.oN("button",function(P){_.Zm(P,28662)});
var x=function(){return kOR(c(),b==null?void 0:b()).ariaLabel};
return _.C("ytm-mute-button",{class:"ytmMuteButtonHost"},_.C("button",{el:J,class:"ytmMuteButtonButton",title:x,"aria-label":x,"on:click":_.Kq(function(P){_.qW(28662);m==null||m(P);return!1})},_.C("span",null,_.C(_.HP,{icon:function(){return kOR(c(),b==null?void 0:b()).iconName}}))))},"Zf");var A$R=_.Q1(function(J){var c=J.volumeProps;var m=J.onClickFn;var b=J.useOutlineIcon;return _.C("yt-mute-toggle-button",null,_.C(O2r,{muteIconType:function(){var x=c(),P=!_.w("mweb_treat_zero_volume_as_muted_killswitch")&&x.volume===0;return x.volumeMuted||P?0:1},
onClick:function(x){var P=c().playerApi;P&&(P.isMuted()?P.unMute():P.mute(!1));m==null||m(x)},
useOutlineIcon:function(){return!(b==null||!b())}}))},"$f");
A$R.idomCompat=!0;var RGh=_.Q1(function(J){var c=J.data;var m=_.oN("ytm-paid-content-overlay-renderer");return _.C("ytm-paid-content-overlay-renderer",{class:"ytmPaidContentOverlayHost",el:m,"on:animationend":_.Kq(function(){m.value.classList.add("ytmPaidContentOverlayHidden");return!1})},_.C(_.cL,{command:function(){return c().navigationEndpoint},
className:"ytmPaidContentOverlayLink"},_.C(_.n,{cond:function(){var b;return(b=c().icon)==null?void 0:b.iconType},
then:function(){return _.C("span",null,_.C(_.HP,{icon:function(){var b;return(b=c().icon)==null?void 0:b.iconType}}))}}),_.C("div",{class:"ytmPaidContentOverlayText"},_.C(_.j8,{text:function(){return c().text}})),_.C(_.n,{cond:function(){return c().navigationEndpoint},
then:function(){return _.C(_.HP,{icon:"CHEVRON_RIGHT"})}})))},"ag");
RGh.idomCompat=!0;var Hw4=[].concat(_.L6([{register:function(J){var c=zVR(J),m;(m=J().playerApi)==null||m.addEventListener("onVolumeChange",c);return function(){}}},
{register:function(J){var c=utp(J);J=J().playerApi;J==null||J.addEventListener("captionschanged",c);J==null||J.addEventListener("captionssettingschanged",c);J==null||J.addEventListener("onCaptionsTrackListChanged",c);return function(){}}},
{register:function(J){if(!_.w("mweb_screenreader_accessible_player"))return function(){};
var c=fd4(J),m=document.querySelector("video");m==null||m.addEventListener("touchend",c);return function(){m==null||m.removeEventListener("touchend",c)}}},
{register:function(J){if(!_.w("mweb_screenreader_detect_screenreader_user_focus"))return function(){};
var c=fd4(J),m=document.querySelector("video");m==null||m.addEventListener("focus",c);return function(){m==null||m.removeEventListener("focus",c)}}}]),[{register:function(J){var c=swR(J),m;
(m=J().playerApi)==null||m.addEventListener("onStateChange",c);return function(){}}},
{register:function(J){var c=LpR(J),m;(m=J().playerApi)==null||m.addEventListener("onPlaybackRateChange",c);return function(){}}},
{register:function(J){var c=DAe(J),m;(m=J().playerApi)==null||m.addEventListener("onVideoDataChange",c);return function(){}}},
{register:function(J){var c=Wp1(J),m,b;(m=J())==null||(b=m.playerApi)==null||b.addEventListener("onVideoProgress",c);return function(){}}}]);var oBR=_.Q1(function(J){var c=J.data;var m=function(){return _.CX("PLAYBACK_SPEED_X",{speed_rate_placeholder:""+c().playbackRate})};
return _.C(_.n,{cond:function(){return c().playbackRate&&c().playbackRate!==1},
then:function(){return _.C("yt-playback-rate-overlay",{class:"ytPlaybackRateOverlayHost"},_.C("div",{class:"ytPlaybackRateOverlayOverlay"},_.C(EBF,{direction:1,size:"small"}),_.C("div",{class:"ytPlaybackRateOverlayLabel"},m)))}})},"bg");var QDS=_.Q1(function(J){var c=J.data;return _.C("div",{class:"ytInlinePlayerControlsTopLeftControls"},_.C(_.n,{cond:function(){var m,b=(m=c())==null?void 0:m.playerResponse,x;return b==null?void 0:(x=b.paidContentOverlay)==null?void 0:x.paidContentOverlayRenderer},
then:function(m){return _.C(RGh,{data:m})}}))},"dg"),eG1=_.Q1(function(J){var c=J.props;
var m=J.data;var b=J.options;var x=function(){var a,k,H,T;return(a=m())==null?void 0:(k=a.playerResponse)==null?void 0:(H=k.playerConfig)==null?void 0:(T=H.inlinePlaybackConfig)==null?void 0:T.showAudioControls},P=function(){var a,k;
if(x()&&((a=b())==null?void 0:(k=a.additionalButton)==null?void 0:k.button)!==void 0){var H,T,r;a=(H=m())==null?void 0:(T=H.playerApi)==null?void 0:(r=T.getSize())==null?void 0:r.height;if(!(a===void 0||a<180)){var W,Y;return(W=b())==null?void 0:(Y=W.additionalButton)==null?void 0:Y.button}}},p=function(){var a,k;
return(a=b())==null?void 0:(k=a.additionalButton)==null?void 0:k.thumbnailOverlayButtonRenderers},t=function(){var a,k;
return(a=b())==null?void 0:(k=a.additionalButton)==null?void 0:k.thumbnailOverlayButtonViewModels},I=function(){var a=[_.C(A$R,{volumeProps:c}),
_.C($sF,{playerControlsProps:c})];P()===1&&a.push(_.C(UsS,{playerApi:function(){return c().playerApi}}));
P()===2&&a.push(_.C(Ssu,{appApi:function(){return c().appApi}}));
P()===3&&a.push(_.C(hG5,{playerApi:function(){return c().playerApi}}));
var k=p();if(P()===4&&k){k=_.M(k);for(var H=k.next(),T={};!H.done;T={tooltip$jscomp$2:void 0,ariaLabel$jscomp$20:void 0,icon$jscomp$52:void 0,command$jscomp$569:void 0},H=k.next()){H=H.value;T.tooltip$jscomp$2=H.tooltip;var r=void 0,W=void 0;T.ariaLabel$jscomp$20=((r=H.accessibility)==null?void 0:(W=r.accessibilityData)==null?void 0:W.label)||T.tooltip$jscomp$2;r=void 0;T.icon$jscomp$52=(r=H.icon)==null?void 0:r.iconType;T.command$jscomp$569=H.command;T.tooltip$jscomp$2&&T.ariaLabel$jscomp$20&&T.icon$jscomp$52&&
a.push(_.C(dsR,{title:function(Y){return function(){return Y.tooltip$jscomp$2}}(T),
ariaLabel:function(Y){return function(){return Y.ariaLabel$jscomp$20}}(T),
icon:function(Y){return function(){return Y.icon$jscomp$52}}(T),
command:function(Y){return function(){return Y.command$jscomp$569}}(T)}))}}k=t();
if(P()===4&&k)for(k=_.M(k),H=k.next(),T={};!H.done;T={tooltip$jscomp$3:void 0,ariaLabel$jscomp$21:void 0,icon$jscomp$53:void 0,command$jscomp$570:void 0},H=k.next())H=H.value,T.tooltip$jscomp$3=H.title,T.ariaLabel$jscomp$21=H.accessibilityText||T.tooltip$jscomp$3,T.icon$jscomp$53=H.iconName,T.command$jscomp$570=_.ZG(H.onTap),T.tooltip$jscomp$3&&T.ariaLabel$jscomp$21&&T.icon$jscomp$53&&a.push(_.C(dsR,{title:function(Y){return function(){return Y.tooltip$jscomp$3}}(T),
ariaLabel:function(Y){return function(){return Y.ariaLabel$jscomp$21}}(T),
icon:function(Y){return function(){return Y.icon$jscomp$53}}(T),
command:function(Y){return function(){return Y.command$jscomp$570}}(T)}));
return a};
return _.C(_.n,{cond:x,then:function(){return _.C("div",{class:"ytInlinePlayerControlsTopRightControls"},_.C(_.Te,{each:I},function(a){return _.C("div",{class:"ytInlinePlayerControlsTopRightControlsCircleButton"},_.C("div",{class:"ytInlinePlayerControlsButtonIcon"},a))}))}})},"eg"),l7R=_.Q1(function(J){var c=J.props;
var m=J.data;var b=J.options;J={};J=_.pq("ytInlinePlayerControlsBottomRightControls",(J.ytInlinePlayerControlsBottomRightControlsHidden=function(){var x;return Xmr(m(),b())&&((x=b())==null?void 0:x.insetProgressBar)&&(c().isHovering||c().isDragging)},J));
return _.C("div",{class:J},_.C(jDp,{data:m}),_.C(_.n,{cond:function(){var x;return!((x=b())==null?0:x.hideTimeDisplay)},
then:function(){return _.C(FYF,{props:c,data:m})}}))},"fg"),jDp=_.Q1(function(J){var c=J.data;
return _.C(_.wi,{data:function(){var m;return tUs((m=c())==null?void 0:m.thumbnailOverlays)}},{premiereTrailerBadgeRenderer:GLr})},"gg"),FYF=_.Q1(function(J){var c=J.props;
var m=J.data;return _.C(_.n,{cond:function(){return c().isLive},
then:function(){return _.C(y$R,null)},
else:function(){return _.C(B_F,{props:c,data:m})}})},"hg"),B_F=_.Q1(function(J){var c=J.props;
var m=J.data;var b=_.n2(function(){var x;return Kpf((x=m())==null?void 0:x.thumbnailOverlays)},void 0,"kUmuA");
return _.C("div",{class:_.pq("ytInlinePlayerControlsTimeDisplay"),"aria-label":function(){return _.vC.PLAYER_TIME_ELAPSED+" "+_.HnT(c().playedTime)}},_.C(_.QG,{data:function(){var x=_.HnT(c().videoDuration-c().playedTime);
return Object.assign({},{type:16,text:x},b())}}))},"ig"),y$R=_.Q1(function(){return _.C("div",{class:_.pq("ytInlinePlayerControlsTimeDisplay","ytInlinePlayerControlsLiveBadge")},_.C(_.QG,{data:{type:17,
text:_.vC.PLAYER_LIVE_LABEL,icon:"LIVE"}}))},"jg"),gBR=_.Q1(function(J){var c=J.props;
var m=J.data;var b=J.options;return _.C(_.sFo,{progressBarProps:c,config:function(){var x,P=_.L((x=m())==null?void 0:x.multiMarkersPlayerBar,_.JZL),p;x=((p=b())==null?0:p.insetProgressBar)?2:1;var t;p=(t=b())==null?void 0:t.useFinePointerTargetSizes;return{unmuteOnSeek:!1,position:x,chapterData:P,isInlinePlayback:!0,doSeekOnClick:p,playheadDotBehavior:p?1:0}}})},"kg");_.lv(_.Q1(function(J){var c=J.data;var m=J.appApi;var b=J.options;var x=rkR(c,YzR(m));J={};m={};return _.C("yt-inline-player-controls",{class:"ytInlinePlayerControlsHost"},_.C("div",{class:_.pq("ytInlinePlayerControlsDarkenedOverlay",(J.ytInlinePlayerControlsDarkenedOverlayShow=function(){return x().isHovering},J))}),_.C(vBp,null),_.C(oBR,{data:x}),_.C(QDS,{data:c}),_.C(qsh,{playerControlsProps:x,
isShortsPage:!1}),_.C("div",{class:_.pq((m.ytInlinePlayerControlsControlsHidden=function(){return x().isDragging},m))},_.C(eG1,{props:x,
data:c,options:b}),_.C(l7R,{props:x,data:c,options:b})),_.C(_.n,{cond:function(){return Xmr(c(),b())},
then:function(){return _.C(gBR,{props:x,data:c,options:b})}}))},"cg"),"yt-inline-player-controls",{props:{data:_.vt,
appApi:_.Fz,options:_.vt}});var Ou=function(){var J=_.h.apply(this,arguments)||this;J.opts=null;J.playerControlsData=null;J.playerControlsAppApi={openInMiniplayer:function(){J.openInMiniplayer()}};
J.playerControlsOptions={};J.noAnimation=!1;J.playbackIntentTriggered=!1;J.positionData=null;J.hidden=!0;J.active=!1;J.playing=!1;J.videoPreviewDataIndex=0;J.JSC$16880_playerPromise=null;J.player=null;J.enableAudioControls=!1;J.hasBeenUnmuted=!1;J.captionsHaveBeenTurnedOff=!1;J.JSC$16880_playerEvents=new Map;J.videoPreviewFetchRequest=null;J.scheduledPreviewEndJobId=null;J.JSC$16880_preventProgressSaveTimer=null;J.watchEndpointStartTimeUpdaterInterval=null;J.actionMap={"yt-open-video-preview-action":"handleOpenVideoPreviewAction",
"yt-terminate-video-preview-action":"onTerminateVideoPreviewAction","yt-get-inline-preview-player-action":"getInlinePreviewPlayer","yt-window-resized":"onWindowResized"};J.windowOnBlurFn=function(){J.deactivate()};
return J};
_.D(Ou,_.h);_.V=Ou.prototype;
_.V.configureRendererStamper=function(){return{"opts.videoPreviewData.thumbnailOverlays":_.w("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"}}}};
_.V.attached=function(){window.addEventListener("blur",this.windowOnBlurFn);this.JSC$16880_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$16880_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$16880_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete);this.JSC$16880_playerEvents.set("captionschanged",this.onCaptionsChanged);document.addEventListener("yt-page-type-changed",_.ME(this,this.onPageTypeChange));this.pagePath=location.pathname;window.addEventListener("scroll",
_.ME(this,this.onScroll))};
_.V.detached=function(){window.removeEventListener("blur",this.windowOnBlurFn);window.removeEventListener("scroll",_.ME(this,this.onScroll))};
_.V.onPageTypeChange=function(){this.deactivate()};
_.V.onWindowResized=function(){this.deactivate()};
_.V.onCaptionsChanged=function(J){J=!!J.languageCode;this.playing&&this.allowCaptions()&&(this.captionsHaveBeenTurnedOff=!J);this.setCaptionSize()};
_.V.setCaptionSize=function(){var J;if(this.active&&!this.captionsHaveBeenTurnedOff&&((J=this.player)==null?0:J.getCaptionWindowContainerId())){var c;(c=this.player)==null||c.updateSubtitlesUserSettings({fontSizeIncrement:2},!1)}};
_.V.currentPageAllowed=function(){return!this.isWatchPage};
_.V.alignVideoPreviewForAnimation=function(){this.hidden=!1;this.noAnimation=!0;this.positionData=this.getThumbnailPositionData();if(!this.positionData)return!1;var J=this.positionData,c=J.initialTopPosition,m=J.initialHorizontalPosition;_.V1(this.hostElement,{"--ytd-video-preview-translate-left":J.finalHorizontalPosition-m+"px","--ytd-video-preview-translate-top":J.finalTopPosition-c+"px","--ytd-video-preview-original-top-position":c+"px","--ytd-video-preview-original-horizontal-position":m+"px",
"--ytd-video-preview-initial-scale":"scale("+J.initialScale+")","--ytd-video-preview-width":J.videoPreviewWidth+"px","--ytd-video-preview-height":J.videoPreviewHeight+"px"});return!0};
_.V.handleOpenVideoPreviewAction=function(J){var c=this,m;return _.N(function(b){if(!c.currentPageAllowed())return b.return(0);c.opts=J;return(m=c.alignVideoPreviewForAnimation(J.thumbnail))?b.return(c.activate()):b.return(0)})};
_.V.onMouseLeave=function(J){this.shouldDeactivateOnMouseLeave(J)&&this.deactivate()};
_.V.onScroll=function(){var J,c;((J=this.opts)==null?0:J.isAutoplay)&&((c=this.opts)==null?0:c.mediaRenderer)&&this.opts.mediaRenderer.getBoundingClientRect().top<0&&this.deactivate()};
_.V.optsChanged=function(){this.scheduledPreviewEndJobId&&(_.ft.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=null)};
_.V.onInlinePreviewIsEnabledChange=function(){!this.inlinePreviewIsEnabled&&this.playbackIntentTriggered&&this.deactivate()};
_.V.onIsAdsVideoChange=function(){this.isAdsVideo&&this.ytSparklesClickLocationBehavior.configureClickTargets("video-preview-container",Ou.JSC$16879_DEFAULT_CLICK_LOCATION_BEHAVIOR,Ou.JSC$16879_CLICK_LOCATION_ID_MAP)};
_.V.shouldDeactivateOnMouseLeave=function(J){J=J.relatedTarget;if(!J)return!0;var c;return(c=this.opts)!=null&&c.mediaRenderer?!_.gB(this.opts.mediaRenderer).contains(J):!0};
_.V.onPlayerStateChange=function(){this.player&&this.player.getPlayerState()===0&&(this.hasMultipleVideoPreviews()?this.startPlaybackForNextVideo():this.deactivate({resetWatchEndpointStartTime:!0}))};
_.V.onPlaybackStart=function(){var J=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$16880_preventProgressSaveTimer=
_.cP(_.ft,function(){J.resetPreventProgressSaveTimer()},1E4);
var c;if((c=this.opts)==null?0:c.videoPreviewDurationMs)this.scheduledPreviewEndJobId=_.cP(_.ft,function(){J.hasMultipleVideoPreviews()?J.startPlaybackForNextVideo():J.deactivate()},this.opts.videoPreviewDurationMs);
var m;this.player.setGlobalCrop(((m=this.opts)==null?0:m.cropPlayerToFillThumbnailHorizontally)?"fullwidth":null)}};
_.V.getRoundedCornersSize=function(){var J;if((J=this.opts)==null?0:J.roundedCornersSize){var c;return(c=this.opts)==null?void 0:c.roundedCornersSize}var m;if((m=this.opts)==null?0:m.enableRounding){var b;if(((b=this.opts)==null?void 0:b.thumbnailSize)==="small")return 1;var x;if(((x=this.opts)==null?void 0:x.thumbnailSize)==="medium")return 2;var P;if(((P=this.opts)==null?void 0:P.thumbnailSize)==="large")return 3}return _.w("web_imp_inset_progress_bar")?3:0};
_.V.onSeekComplete=function(){this.resetPreventProgressSaveTimer()};
_.V.onTerminateVideoPreviewAction=function(){this.deactivate()};
_.V.onMediaContainerClick=function(J){this.isShortcutClick(J)||(this.navigateToWatch(J),J.preventDefault(),J.stopPropagation())};
_.V.activate=function(){var J=this,c,m,b,x,P,p,t,I,a;return _.N(function(k){switch(k.nextAddress){case 1:if(!J.currentPageAllowed())return k.return(0);m=(c=J.videoPreviewData)==null?void 0:c.inlinePlaybackEndpoint;b=_.Sp.instance;if(!m||!b)return k.return(0);J.playbackIntentTriggered=!0;((x=J.opts)==null?0:x.mediaRenderer)&&((P=J.opts)==null||!P.isAutoplay)&&pms(J.opts.mediaRenderer,function(){J.deactivate()});
_.o3(J,function(){J.revealPreviewUi()});
p={};_.w("enable_unknown_lact_fix_on_html5")&&(_.BG().resolve(_.Lq),p.lact=_.cO());J.videoPreviewFetchRequest=mAS(b,J.getInlinePlaybackRequestData(J.videoPreviewData),p);_.xL(k,2);return _.K(k,J.videoPreviewFetchRequest,4);case 4:t=k.yieldResult;if(((I=t)==null?void 0:(a=I.playabilityStatus)==null?void 0:a.status)==="OK")return k.return(J.handlePlayerResponse(t));throw Error("Hj");case 2:_.NM(k),J.deactivate();case 3:return k.return(1)}})};
_.V.getInlinePlaybackRequestData=function(J){var c,m=_.w("web_imp_player_mute_params")?((c=this.opts)==null?void 0:c.forceMutedVolume)||!this.hasBeenUnmuted:!0;return{endpoint:J.inlinePlaybackEndpoint,startPlaybackInMutedState:m}};
_.V.handlePlayerResponse=function(J){var c=this,m,b,x,P,p,t,I,a,k,H;return _.N(function(T){if(T.nextAddress==1){m=c.getInlinePlaybackVideoId();if(!(((b=J)==null?0:(x=b.videoDetails)==null?0:x.videoId)&&c.currentPageAllowed()&&c.playbackIntentTriggered&&c.opts&&m))return c.deactivate(),T.return(0);if(J.videoDetails.videoId!==m)return T.return(0);c.enableAudioControls=!!((P=J.playerConfig)==null?0:(p=P.inlinePlaybackConfig)==null?0:p.showAudioControls);J.trackingParams=c.getInlinePlaybackTrackingParams();
if(!c.inlinePlayer)return T.return(0);t={};if(a=_.L((I=c.videoPreviewData)==null?void 0:I.inlinePlaybackEndpoint,_.Rz))t.watch_endpoint=a;if(c.videoPreviewData){var r,W=(r=_.L(c.videoPreviewData.inlinePlaybackEndpoint,_.Rz))==null?void 0:r.startTimeSeconds;W!==void 0&&(J.playerConfig||(J.playerConfig={}),J.playerConfig.playbackStartConfig||(J.playerConfig.playbackStartConfig={}),J.playerConfig.playbackStartConfig.startPosition||(J.playerConfig.playbackStartConfig.startPosition={}),J.playerConfig.playbackStartConfig.startSeconds=
W,J.playerConfig.playbackStartConfig.startPosition.streamTimeMillis=String(W*1E3))}c.inlinePlayer.loadVideoWithPlayerResponse(J,t);if(c.JSC$16880_playerPromise)return T.jumpTo(2);c.JSC$16880_playerPromise=c.inlinePlayer.getPlayerPromise();return _.K(T,c.JSC$16880_playerPromise,3)}T.nextAddress!=2&&(k=T.yieldResult,k.setInlinePreview(!0),k.setSizeStyle(!1,!0),c.ytPlayerListenerBehavior.listenToPlayerEvents(k,c.JSC$16880_playerEvents),c.player=k,_.cA(c.hostElement,"player-api-ready"));((H=c.opts)==
null?0:H.showPlayerControls)&&c.videoPreviewData&&c.player&&(c.playerControlsData={playerResponse:J,isInlinePlayback:!0,thumbnailOverlays:c.videoPreviewData.thumbnailOverlays,playerApi:c.player},c.playerControlsOptions={useFinePointerTargetSizes:!0,insetProgressBar:!c.unroundCornersForPlayback,additionalButton:c.getAdditionalButtonType(c.videoPreviewData.thumbnailOverlays)});return T.return(2)})};
_.V.revealPreviewUi=function(){var J=this;this.playbackIntentTriggered&&_.dJ2(this,function(){J.hasThumbnailPositionChangedSinceTriggered()||(J.updateActiveState(!0),J.noAnimation=!1)})};
_.V.hasThumbnailPositionChangedSinceTriggered=function(){var J=this.positionData,c=this.getThumbnailPositionData();return(J==null?void 0:J.initialTopPosition)!==(c==null?void 0:c.initialTopPosition)||(J==null?void 0:J.initialHorizontalPosition)!==(c==null?void 0:c.initialHorizontalPosition)};
_.V.getThumbnailPositionData=function(){var J,c;if((c=this.opts)==null||!c.thumbnail)return null;c=this.opts.thumbnail;var m=((J=this.opts)==null?0:J.cropPlayerToFillThumbnailHorizontally)?!1:!0;var b=c.getBoundingClientRect();J=b.width;c=b.height;var x=b.top+window.scrollY;b=b.left+window.scrollX;var P=m?Math.ceil(J):J;m=m?Math.ceil(c):c;var p=J/P;J={initialScale:p,initialTopPosition:x-12*p,finalTopPosition:x-12-(m-c)/2,initialHorizontalPosition:b-(12+(P-J)/2),finalHorizontalPosition:b-12-(P-J)/
2,videoPreviewWidth:P,videoPreviewHeight:m};return J};
_.V.updateActiveState=function(J){this.active=J;this.ytdReduxBehavior.dispatch(_.J7({type:"SET_INLINE_PREVIEW_IS_ACTIVE",payload:J}))};
_.V.stopPlayer=function(J){J=J.resetWatchEndpointStartTime===void 0?!1:J.resetWatchEndpointStartTime;this.player&&(this.active&&(this.playing&&this.allowUnmuting()&&(this.hasBeenUnmuted=!this.player.isMuted()),this.updateWatchEndpointStartTime(J)),this.player.setPlaybackRate(1),this.player.stopVideo());this.playing=!1;this.videoPreviewFetchRequest=null;this.resetPreventProgressSaveTimer();this.endStartTimeUpdater();this.scheduledPreviewEndJobId&&(_.ft.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=
null)};
_.V.deactivate=function(J){J=J===void 0?{}:J;J=J.resetWatchEndpointStartTime===void 0?!1:J.resetWatchEndpointStartTime;Bn&&(Bn.disconnect(),Bn=null);this.stopPlayer({resetWatchEndpointStartTime:J});this.updateActiveState(!1);this.playbackIntentTriggered=!1;this.videoPreviewDataIndex=0;this.opts=null;this.hidden=!0;this.playerControlsData=null};
_.V.isValidThumbnailOverlayButton=function(J,c){J=J.thumbnailOverlayButtonRenderer;var m;return!!J&&!!J.tooltip&&!((m=J.icon)==null||!m.iconType)&&c.includes(J.icon.iconType)};
_.V.isValidThumbnailOverlayButtonViewModel=function(J,c){var m;J=_.L((m=J.thumbnailOverlayButtonViewModel)==null?void 0:m.overlayButton,_.ri);return!!J&&!!J.title&&!!J.iconName&&c.includes(J.iconName)};
_.V.getAdditionalButtonType=function(J){var c=this;if(_.w("web_imp_fastforward_button"))return{button:1};if(_.w("web_imp_miniplayer_button"))return{button:2};if(_.w("web_imp_playback_speed_button"))return{button:3};var m=["BOX_STACK_3"],b=(J||[]).filter(function(P){return c.isValidThumbnailOverlayButton(P,m)}).map(function(P){return P.thumbnailOverlayButtonRenderer});
if(b.length)return{button:4,thumbnailOverlayButtonRenderers:b};var x=["BOX_STACK_3"];J=(J||[]).filter(function(P){return c.isValidThumbnailOverlayButtonViewModel(P,x)}).map(function(P){return _.L(P.thumbnailOverlayButtonViewModel.overlayButton,_.ri)});
if(J.length)return{button:4,thumbnailOverlayButtonViewModels:J}};
_.V.allowCaptions=function(){var J;return!((J=this.opts)==null?0:J.forceCaptionsOff)};
_.V.allowUnmuting=function(){var J;return this.enableAudioControls&&!((J=this.opts)==null?0:J.forceMutedVolume)};
_.V.beginStartTimeUpdater=function(){var J=this;this.endStartTimeUpdater();this.watchEndpointStartTimeUpdaterInterval=_.MU(function(){J.updateWatchEndpointStartTime()},1E3)};
_.V.endStartTimeUpdater=function(){this.watchEndpointStartTimeUpdaterInterval!==null&&window.clearInterval(this.watchEndpointStartTimeUpdaterInterval);this.watchEndpointStartTimeUpdaterInterval=null};
_.V.resetPreventProgressSaveTimer=function(){this.JSC$16880_preventProgressSaveTimer!==null&&(_.ft.cancelJob(this.JSC$16880_preventProgressSaveTimer),this.JSC$16880_preventProgressSaveTimer=null,this.hasMultipleVideoPreviews()||this.beginStartTimeUpdater())};
_.V.updateWatchEndpointStartTime=function(J){var c=this.videoPreviewData;if(this.player&&c!=null&&c.inlinePlaybackEndpoint&&!this.JSC$16880_preventProgressSaveTimer){J=J?0:Math.floor(this.player.getCurrentTime());var m=_.L(c.navigationEndpoint,_.Rz);m&&(m.startTimeSeconds=J);if(c=_.L(c.inlinePlaybackEndpoint,_.Rz))c.startTimeSeconds=J}};
_.V.isShortcutClick=function(J){return!!J&&(J.ctrlKey||J.shiftKey||J.metaKey)};
_.V.getInlinePreviewPlayer=function(){return this.inlinePlayer};
_.V.openInMiniplayer=function(){var J=this,c,m;return _.N(function(b){if(b.nextAddress==1){m=(c=J.videoPreviewData)==null?void 0:c.navigationEndpoint;if(!m)return b.return();_.Mh().lockupActivation=!0;return _.K(b,_.Q8C(_.BG().resolve(_.Uo),m),2)}_.Mh().userActivation=!0;_.tD(b)})};
_.V.navigateToWatch=function(J){var c,m=(c=this.videoPreviewData)==null?void 0:c.navigationEndpoint;if(m){if(this.isAdsVideo)this.ytSparklesClickLocationBehavior.handleClick(m,J,!0);else{if(_.w("web_thumbnail_to_watch_transition")){var b,x;(b=this.opts)==null||(x=b.onNavigateToWatchCallback)==null||x.call(b)}_.cA(this.hostElement,"yt-navigate",{endpoint:m})}this.deactivate()}};
_.V.getInlinePlaybackVideoId=function(){var J,c;return(c=_.L((J=this.videoPreviewData)==null?void 0:J.inlinePlaybackEndpoint,_.Rz))==null?void 0:c.videoId};
_.V.getInlinePlaybackTrackingParams=function(){var J,c;return(J=this.videoPreviewData)==null?void 0:(c=J.inlinePlaybackEndpoint)==null?void 0:c.clickTrackingParams};
_.V.hasMultipleVideoPreviews=function(){var J;return!!(((J=this.opts)==null?0:J.videoPreviewData)&&Array.isArray(this.opts.videoPreviewData))};
_.V.startPlaybackForNextVideo=function(){var J;(J=this.opts)!=null&&J.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())};
_.eE.Object.defineProperties(Ou.prototype,{thumbnailData:{configurable:!0,enumerable:!0,get:function(){return this.videoPreviewData?{thumbnail:this.videoPreviewData.thumbnail}:null}},
hidePlayerControls:{configurable:!0,enumerable:!0,get:function(){var J;return!((J=this.opts)==null?0:J.showPlayerControls)||!this.active}},
isAdsVideo:{configurable:!0,enumerable:!0,get:function(){var J;return!((J=this.opts)==null||!J.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 J;if(Array.isArray((J=this.opts)==null?void 0:J.videoPreviewData)){var c;return(c=this.opts)==null?void 0:c.videoPreviewData[this.videoPreviewDataIndex]}var m;return(m=this.opts)==null?void 0:m.videoPreviewData}}});
Ou.prototype.onIsAdsVideoChange=Ou.prototype.onIsAdsVideoChange;Ou.prototype.onInlinePreviewIsEnabledChange=Ou.prototype.onInlinePreviewIsEnabledChange;Ou.prototype.optsChanged=Ou.prototype.optsChanged;Ou.prototype.onMouseLeave=Ou.prototype.onMouseLeave;Ou.JSC$16879_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"]]);Ou.JSC$16879_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:21,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}];
_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],Ou.prototype,"actionHandlerBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],Ou.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.Ex.YtPlayerListenerBehavior),_.R("design:type",_.vX)],Ou.prototype,"ytPlayerListenerBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],Ou.prototype,"componentBehavior",void 0);
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Ou.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.fY),_.R("design:type",Object)],Ou.prototype,"ytdReduxBehavior",void 0);_.O([_.f(_.FP.YtSparklesClickLocationBehavior),_.R("design:type",Object)],Ou.prototype,"ytSparklesClickLocationBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Ou.prototype,"opts",void 0);_.O([_.U(),_.R("design:type",Object)],Ou.prototype,"playerControlsData",void 0);
_.O([_.U(),_.R("design:type",Object)],Ou.prototype,"playerControlsAppApi",void 0);_.O([_.U(),_.R("design:type",Object)],Ou.prototype,"playerControlsOptions",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Ou.prototype,"noAnimation",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Ou.prototype,"hidden",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Ou.prototype,"active",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Ou.prototype,"playing",void 0);_.O([_.U({selector:_.aAm}),_.R("design:type",Boolean)],Ou.prototype,"inlinePreviewIsEnabled",void 0);_.O([_.U(),_.R("design:type",String)],Ou.prototype,"pagePath",void 0);_.O([_.U({selector:_.uW}),_.R("design:type",Boolean)],Ou.prototype,"isWatchPage",void 0);_.O([_.q("videoPreviewData"),_.R("design:type",Object),_.R("design:paramtypes",[])],Ou.prototype,"thumbnailData",null);
_.O([_.q("opts","active"),_.U({reflectToAttribute:!0}),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Ou.prototype,"hidePlayerControls",null);_.O([_.q("opts"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Ou.prototype,"isAdsVideo",null);_.O([_.q("opts"),_.U({reflectToAttribute:!0}),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Ou.prototype,"roundedCornersSmall",null);
_.O([_.q("opts"),_.U({reflectToAttribute:!0}),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Ou.prototype,"roundedCornersMedium",null);_.O([_.q("opts"),_.U({reflectToAttribute:!0}),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Ou.prototype,"roundedCornersLarge",null);_.O([_.q("opts"),_.U({reflectToAttribute:!0}),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Ou.prototype,"unroundCornersForPlayback",null);
_.O([_.q("opts","videoPreviewDataIndex"),_.R("design:type",Object),_.R("design:paramtypes",[])],Ou.prototype,"videoPreviewData",null);_.O([_.U(),_.R("design:type",Object)],Ou.prototype,"videoPreviewDataIndex",void 0);_.O([_.Iu("#inline-player"),_.R("design:type",Object)],Ou.prototype,"inlinePlayer",void 0);_.O([_.ps("mouseleave"),_.R("design:type",Function),_.R("design:paramtypes",[MouseEvent]),_.R("design:returntype")],Ou.prototype,"onMouseLeave",null);
_.O([_.kr("opts"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Ou.prototype,"optsChanged",null);_.O([_.kr("inlinePreviewIsEnabled"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Ou.prototype,"onInlinePreviewIsEnabledChange",null);_.O([_.NE("isAdsVideo"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Ou.prototype,"onIsAdsVideoChange",null);
Ou=_.O([_.E({is:"ytd-video-preview",disableElementRegistration:!0})],Ou);
_.v(Ou,"ytd-video-preview",function(){if(Z25!==void 0)return Z25;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return Z25=J},{mode:2});
}catch(e){_._DumpException(e)}
try{
var vDe,OLr,AbS;vDe=function(J){return _.w("kevlar_watch_cinematics_invisible")||J.fullscreen&&_.w("kevlar_watch_cinematics_invisible_in_fullscreen")||J.theater&&!J.fullscreen&&_.w("kevlar_watch_cinematics_invisible_in_theater")};
OLr=function(){var J=document.createElement("canvas"),c=J.getContext("2d");if(!c)throw Error("Wl");_.u_(J,{position:"absolute",width:"100%",height:"100%"});return{element:J,context:c}};
AbS=function(){return!("filter"in CanvasRenderingContext2D.prototype)||_.w("kevlar_watch_cinematics_css_blur")};
_.RTs=function(J,c,m){return Math.abs(J-c)<=(m||1E-6)};
_.oD4=function(J,c){return J==c?!0:J&&c?J.width==c.width&&J.height==c.height:!1};_.Qoo=new _.Q("notificationActionRenderer");var eTs=function(J){var c=this;this.element=new Image;this.failed=this.loaded=!1;this.resolver=new _.xb;this.element.addEventListener("load",function(){c.loaded=!0;c.resolver.resolve(c.element)});
this.element.addEventListener("error",function(){c.failed=!0});
this.element.src=J};var jof=function(J,c){this.image=J;this.frame=c};
jof.prototype.drawToCanvas=function(J,c){var m=this.frame.width/this.frame.columns,b=this.frame.height/this.frame.rows,x=c.offsetX,P=c.offsetY;vDe(c)?(J.fillStyle=c.fullscreen?"#000":"#0f0f0f",J.fillRect(x,P,(c==null?void 0:c.width)||m,(c==null?void 0:c.height)||b)):J.drawImage(this.image,this.frame.column*m,this.frame.row*b,m,b,x,P,(c==null?void 0:c.width)||m,(c==null?void 0:c.height)||b)};
var FZe=function(J){this.color=J};
FZe.prototype.drawToCanvas=function(J,c){var m=c.offsetX,b=c.offsetY,x=c.width,P=c.height;J.fillStyle=vDe(c)?c.fullscreen?"#000":"#0f0f0f":this.color;J.fillRect(m,b,x,P)};var B1=function(J,c){_.ei.call(this);this.playerApi=c;this.mosaics=new Map;this.colorStore=new Map;this.pendingStoryboardIndex=this.currentStoryboardIndex=this.colorStoreTimeInterval=NaN;this.currentStoryboardSize=new _.tk(NaN,NaN);this.lastUpdateTime=NaN;this.paused=!1;this.addEventListeners();lMh(this,J);yb5(this);this.update()};
_.D(B1,_.ei);B1.prototype.addEventListeners=function(){var J=this,c=function(){J.update()},m=function(x){J.paused||(x.type==="newdata"&&(J.mosaics.clear(),B$1(J),JB(J)),yb5(J),J.update())},b=function(){J.onPlayerStateChange()};
this.playerApi.addEventListener("onVideoProgress",c);this.playerApi.addEventListener("onVideoDataChange",m);this.playerApi.addEventListener("onStateChange",b);this.addOnDisposeCallback(function(){J.playerApi.removeEventListener("onVideoProgress",c);J.playerApi.removeEventListener("onVideoDataChange",m);J.playerApi.removeEventListener("onStateChange",b)})};
var lMh=function(J,c){J.cinematicContainerRenderer!==c&&(J.cinematicContainerRenderer=c,B$1(J),JB(J),J.colorStoreUpdateJobId=_.ft.addLowPriorityJob(function(){var m;if((m=J.cinematicContainerRenderer.colorStore)!=null&&m.sampledColors){m=Infinity;for(var b=_.M(J.cinematicContainerRenderer.colorStore.sampledColors),x=b.next();!x.done;x=b.next()){x=x.value;var P=Number(x.key);P!==0&&P<m&&(m=P);P=_.Zn(x.value);J.colorStore.set(x.key,P)}J.colorStoreTimeInterval=m}}))},B$1=function(J){J.colorStoreUpdateJobId&&
(_.ft.cancelJob(J.colorStoreUpdateJobId),J.colorStoreUpdateJobId=void 0);
J.colorStore.clear();J.currentStoryboardColor=void 0},gD1=function(J,c){var m;
return(m=J.getStoryboardFrame(c))==null?void 0:m.url};
B1.prototype.onPlayerStateChange=function(){this.update()};
B1.prototype.isAdPlaying=function(){return this.playerApi.getPresentingPlayerType()===2};
var yb5=function(J){var c=J.getStoryboardFrame(0);c&&(c=new _.tk(c.width/c.columns,c.height/c.rows),_.oD4(J.currentStoryboardSize,c)||(J.currentStoryboardSize=c,J.publish("STORYBOARD_SIZE_CHANGED",J.currentStoryboardSize)))},JnS=function(J,c){J.currentStoryboardIndex=c;
J.pendingStoryboardIndex=NaN;c=J.getStoryboardFrame(J.currentStoryboardIndex);J.currentStoryboard=new jof(J.mosaics.get(c.url).element,c);J.publish("STORYBOARD_CHANGED",J.currentStoryboard);J.lastUpdateTime=(0,_.y4)()};
B1.prototype.isShorts=function(){return this.cinematicContainerRenderer.config.pageType==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
var JB=function(J){J.currentStoryboardIndex=NaN;J.pendingStoryboardIndex=NaN;J.currentStoryboard&&(J.currentStoryboard=void 0,J.publish("STORYBOARD_CHANGED",void 0));J.lastUpdateTime=NaN};
B1.prototype.update=function(){if(!this.paused&&this.playerApi.getNumberOfStoryboardLevels()>0)if(this.isAdPlaying()||this.isShorts()&&this.playerApi.getProgressState().duration<15)JB(this);else{var J=this.playerApi.getPlayerState(1);if(J===-1||J===5||J===0)JB(this);else if(isNaN(this.lastUpdateTime)||!((0,_.y4)()<this.lastUpdateTime+this.cinematicContainerRenderer.config.animationConfig.minImageUpdateIntervalMs))if(J=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){J=""+Math.round(J*1E3/this.colorStoreTimeInterval)*this.colorStoreTimeInterval;var c=this.colorStore.get(J);c?c!==this.currentStoryboardColor&&(this.currentStoryboardColor=this.currentStoryboardColor=c,this.currentStoryboard=new FZe(c),this.publish("STORYBOARD_CHANGED",this.currentStoryboard),
this.lastUpdateTime=(0,_.y4)()):(_.qz(new _.w3("Could not find color for timestamp: "+J,this.cinematicContainerRenderer)),JB(this))}else JB(this);else cnp(this,J)}};
var cnp=function(J,c){var m=J.getStoryboardFrameIndex(c);if(m!==J.currentStoryboardIndex&&m!==J.pendingStoryboardIndex){c=gD1(J,m);var b=J.mosaics.get(c);b?b.loaded&&JnS(J,m):(J.pendingStoryboardIndex=m,m=new eTs(c),J.mosaics.set(c,m),m.resolver.promise.then(function(){if(!J.isDisposed()&&!J.paused&&!isNaN(J.pendingStoryboardIndex)){var x=gD1(J,J.pendingStoryboardIndex);if(x){var P;(P=J.mosaics.get(x))!=null&&P.loaded&&JnS(J,J.pendingStoryboardIndex)}else JB(J)}}))}};
B1.prototype.getStoryboardFrameIndex=function(J){var c=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0;return this.playerApi.getStoryboardFrameIndex(J,c)};
B1.prototype.getStoryboardFrame=function(J){var c=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0,m,b;return((b=(m=this.playerApi).getStoryboardFrame)==null?void 0:b.call(m,J,c))||null};
B1.prototype.pause=function(){this.lastUpdateTime=NaN;this.paused=!0};var m3=function(J,c,m,b){b=b===void 0?!1:b;_.DS.call(this);this.cinematicContainerRenderer=c;this.playerApi=m;this.theater=this.fullscreen=!1;var x;this.ambientLightThemeEnabled=!b&&!!(c==null?0:(x=c.config)==null?0:x.enableInLightTheme);this.ambientFullscreenEnabled=b&&_.w("web_cinematic_fullscreen");this.container=document.createElement("div");J.appendChild(this.container);var P;if(_.w("web_cinematic_theater_mode")||_.w("web_cinematic_fullscreen")||(c==null?0:(P=c.config)==null?0:P.enableInLightTheme))this.ambientV2Container=
document.createElement("div"),this.container.appendChild(this.ambientV2Container);m5R(this);J=this.ambientV2Container||this.container;this.backCanvas=OLr();this.frontCanvas=OLr();J.appendChild(this.backCanvas.element);J.appendChild(this.frontCanvas.element);this.storyboardManager=new B1(c,this.playerApi);_.Kc(this,this.storyboardManager);this.addEventListeners();beR(this)?x5R(this,100+c5(this)*3*2,100+c5(this)*3*2):Vlh(this);P2r(this,this.storyboardManager.currentStoryboard)};
_.D(m3,_.DS);var m5R=function(J){J.ambientV2Container?Mls(J):(_.u_(J.container,{position:"absolute",top:"0",left:"0",right:"0",bottom:"0","pointer-events":"none",transform:"scale("+poR(J)+", "+Njr(J)+")"}),AbS()&&_.u_(J.container,"filter","blur("+_.c7("cinematic_watch_css_filter_blur_strength",40)+"px)"))},Mls=function(J){if(J.ambientV2Container){var c=J.playerApi.getVideoAspectRatio();
_.u_(J.container,{"aspect-ratio":""+c,"max-width":"100%",height:"100%",margin:"0 auto",display:"flex","flex-direction":"column","justify-content":"center","pointer-events":"none"});_.u_(J.ambientV2Container,{"aspect-ratio":""+c,position:"relative","max-height":"100%","max-width":"100%","pointer-events":"none",transform:"scale("+poR(J)+", "+Njr(J)+")"});AbS()&&_.u_(J.ambientV2Container,"filter","blur("+_.c7("cinematic_watch_css_filter_blur_strength",40)+"px)")}};
m3.prototype.setFullscreen=function(J,c){this.fullscreen=J;this.theater=!!c;m5R(this);if(this.ambientFullscreenEnabled||this.ambientLightThemeEnabled)this.backCanvas.context.clearRect(0,0,this.backCanvas.element.width,this.backCanvas.element.height),J=this.storyboardManager.currentStoryboard,tle(this),J&&I8R(this,J)};
m3.prototype.addEventListeners=function(){var J=this,c=this.storyboardManager.subscribe("STORYBOARD_CHANGED",function(x){P2r(J,x)}),m=this.storyboardManager.subscribe("STORYBOARD_SIZE_CHANGED",function(){Vlh(J)});
this.addOnDisposeCallback(function(){J.storyboardManager.unsubscribeByKey(c);J.storyboardManager.unsubscribeByKey(m)});
if(this.ambientV2Container){var b=function(){Mls(J)};
this.playerApi.addEventListener("onVideoDataChange",b);this.addOnDisposeCallback(function(){J.playerApi.removeEventListener("onVideoDataChange",b)})}};
var Vlh=function(J){if(!beR(J)){var c=J.storyboardManager.currentStoryboardSize;isNaN(c.width)||isNaN(c.height)||x5R(J,Number(c.width)+c5(J)*3*2,Number(c.height)+c5(J)*3*2)}},x5R=function(J,c,m){J.backCanvas.element.width=c;
J.backCanvas.element.height=m;J.frontCanvas.element.width=c;J.frontCanvas.element.height=m},beR=function(J){return J.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"},P2r=function(J,c,m){m=m===void 0?!1:m;
var b=J.frontCanvas.element.getAnimations()[0];b?(b.pause(),J.backCanvas.context.globalAlpha=Number(getComputedStyle(J.frontCanvas.element).opacity),J.frontCanvas.element.style.opacity="0",b.finish()):J.backCanvas.context.globalAlpha=1;J.backCanvas.context.drawImage(J.frontCanvas.element,0,0,J.backCanvas.element.width,J.backCanvas.element.height);tle(J);c&&I8R(J,c);c=c?J.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs:_.c7("cinematic_watch_fade_out_duration",500);b=_.c7("cinematic_watch_transition_frame_rate")/
1E3;var x={};b&&(x={easing:"steps("+Math.round(c*b)+")"});(m===void 0?0:m)||J.frontCanvas.element.animate([{opacity:0},{opacity:1}],Object.assign({},{duration:c,iterations:1},x));J.frontCanvas.element.style.opacity="1"},tle=function(J){var c=J.ambientLightThemeEnabled,m=J.ambientLightThemeEnabled||J.ambientFullscreenEnabled&&!_.w("web_cinematic_fullscreen_v2");
J.frontCanvas.context.fillStyle=J.theater&&c||J.fullscreen&&m?"#000":"#0f0f0f";AbS()||(J.frontCanvas.context.filter="blur(0)");J.frontCanvas.context.fillRect(0,0,J.frontCanvas.element.width,J.frontCanvas.element.height)},I8R=function(J,c){AbS()||(J.frontCanvas.context.filter="blur("+c5(J)+"px)");
J.frontCanvas.context.globalAlpha=_.c7("cinematic_watch_effect_opacity",.4);var m={offsetX:c5(J)*3,offsetY:c5(J)*3,theater:J.theater,fullscreen:J.fullscreen};beR(J)&&(m.width=100,m.height=100);c.drawToCanvas(J.frontCanvas.context,m);J.frontCanvas.context.globalAlpha=1},c5=function(J){var c;
return(c=J.cinematicContainerRenderer.config.blurStrength)!=null?c:5},poR=function(J){var c,m;
if((J.fullscreen||J.theater)&&((c=J.cinematicContainerRenderer.config)==null?0:(m=c.watchFullscreenConfig)==null?0:m.colorSourceWidthMultiplier))return J.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceWidthMultiplier;var b;return(b=J.cinematicContainerRenderer.config.colorSourceWidthMultiplier)!=null?b:J.cinematicContainerRenderer.config.colorSourceSizeMultiplier},Njr=function(J){var c,m;
if((J.fullscreen||J.theater)&&((c=J.cinematicContainerRenderer.config)==null?0:(m=c.watchFullscreenConfig)==null?0:m.colorSourceHeightMultiplier))return J.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceHeightMultiplier;var b;return(b=J.cinematicContainerRenderer.config.colorSourceHeightMultiplier)!=null?b:J.cinematicContainerRenderer.config.colorSourceSizeMultiplier};
m3.prototype.disposeInternal=function(){_.DS.prototype.disposeInternal.call(this);this.container.remove()};
m3.prototype.clear=function(){P2r(this,void 0,!0)};
m3.prototype.pause=function(){this.storyboardManager.pause()};var K1h;K1h=_.IS(function(){var J,c,m=!((c=(J=document.createElement("canvas")).getContext)==null||!c.call(J,"2d")),b;J=!((b=CSS)==null||!b.supports("filter: blur(0)"));b=!!Element.prototype.animate&&!!Element.prototype.getAnimations;c=_.w("web_cinematic_fullscreen")||_.w("web_cinematic_theater_mode")||_.w("web_cinematic_light_theme")||!1;var x;return m&&J&&b&&(!c||!((x=CSS)==null||!x.supports("aspect-ratio: 1 / 1")))});
_.bm=function(J,c){_.ei.call(this);this.container=J;this.playerApi=c;this.fullscreen=this.theater=this.settingEnabled=this.isDarkModeEnabled=this.wasAllowed=!1;this.prefersReducedMotionQuery=C2e(this);this.update()};
_.D(_.bm,_.ei);_.a8p=function(J){var c=document.documentElement.hasAttribute("dark");J.isDarkModeEnabled=c;J.update()};
_.kl4=function(J,c){J.settingEnabled=c;J.update()};
_.bm.prototype.setFullscreen=function(J,c){this.fullscreen=J;this.theater=!!c;this.update()};
_.Heh=function(J,c){J.cinematicContainerRenderer=c;J.cinematicContainerRenderer&&(J.cinematicsVe=_.rs(J.isShorts()?227858:159022),_.JM(_.C7(),J.cinematicsVe),J.loggingClientData={watchCinematicContainerData:{presentationStyle:J.cinematicContainerRenderer.presentationStyle}});J.update()};
_.bm.prototype.isShorts=function(){var J,c;return((J=this.cinematicContainerRenderer)==null?void 0:(c=J.config)==null?void 0:c.pageType)==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
_.bm.prototype.isAllowed=function(){var J;if(J=K1h()){var c,m,b;J=((m=this.cinematicContainerRenderer)==null?void 0:m.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"&&!((b=this.cinematicContainerRenderer)==null||!b.colorStore)||((c=this.cinematicContainerRenderer)==null?void 0:c.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_BLURRED"}if(J)if(_.w("web_cinematics_pausing")){var x,P;J=this.isDarkModeEnabled||!!((x=this.cinematicContainerRenderer)==
null?0:(P=x.config)==null?0:P.enableInLightTheme)}else{var p,t;x=!!((p=this.cinematicContainerRenderer)==null?0:(t=p.config)==null?0:t.enableInLightTheme)&&(_.Ub("INNERTUBE_CLIENT_NAME")==="MWEB"||this.fullscreen||this.theater);J=this.isDarkModeEnabled||x}if(p=J){var I,a;p=!((a=(I=this.prefersReducedMotionQuery)==null?void 0:I.matches)!=null&&a)}return p};
_.ieR=function(J){(J=J.currentCinematicEffect)!=null&&(J=J.storyboardManager,J.paused=!1,yb5(J),J.update())};
_.bm.prototype.isEnabled=function(){return this.isAllowed()&&this.settingEnabled};
var C2e=function(J){if(!_.w("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&window.matchMedia){var c=window.matchMedia("(prefers-reduced-motion: reduce)"),m=function(){J.update()};
c.addListener(m);J.addOnDisposeCallback(function(){c.removeListener(m)});
return c}};
_.bm.prototype.update=function(){this.isAllowed()!==this.wasAllowed&&(this.wasAllowed=this.isAllowed(),this.publish("CINEMATICS_ALLOWED_CHANGED",this.wasAllowed));if(this.isEnabled()){var J=this.cinematicContainerRenderer;this.currentCinematicEffect||(this.currentCinematicEffect=new m3(this.container,J,this.playerApi,this.isDarkModeEnabled),_.Kc(this,this.currentCinematicEffect));this.currentCinematicEffect.setFullscreen(this.fullscreen,this.theater);var c=this.currentCinematicEffect;c.cinematicContainerRenderer!==
J&&(c.cinematicContainerRenderer=J,lMh(c.storyboardManager,J),m5R(c));J=_.HA();_.iJ(0,194,!0);J.save();J=_.Y3();this.cinematicsVe&&J&&_.vA(J,[this.cinematicsVe],this.loggingClientData)}else this.currentCinematicEffect&&(J=_.Y3(),this.cinematicsVe&&J&&_.O2(J,[this.cinematicsVe],!1,this.loggingClientData),_.yr(this.currentCinematicEffect),this.currentCinematicEffect=void 0)};
_.eE.Object.defineProperties(_.bm.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
}catch(e){_._DumpException(e)}
try{
var HL5;var iL1;_.sB({_template:function(){if(iL1!==void 0)return iL1;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);var c=
J.content,m=c.insertBefore;HL5===void 0&&(HL5=document.createElement("template"));var b=HL5;m.call(c,b.content.cloneNode(!0),J.content.firstChild);return iL1=J},
is:"tp-yt-iron-pages",behaviors:[_.rI,_.$r],properties:{activateEvent:{type:String,value:null}},observers:["_selectedPageChanged(selected)"],_selectedPageChanged:function(){this.async(this.notifyResize)}});
}catch(e){_._DumpException(e)}
try{
var ImR;_.Kr4=function(){if(_.w("kevlar_home_skeleton")&&!ImR){var J=document.querySelector("#home-page-skeleton");J&&(_.Y2("hgcr"),_.nc(J),ImR=!0)}};
ImR=!1;_.wG=new _.Q("cinematicContainerRenderer");
}catch(e){_._DumpException(e)}
try{
var NHF,tcf,IV5,KHS,C91,aVo,izS,THe,wxu,n4r,kQ5,Hzf,LHR,D$R;_.pxR=function(J,c,m){c=c===void 0?5:c;if(c!==0){var b=typeof J==="function"?J():document.querySelector(J);b?(m==null?0:m.enableSmartFocus)?_.gBT(b):b.focus():setTimeout(function(){_.pxR(J,c-1,m)},500)}};
NHF=function(J){return _.gqr(_.BdG(J&16777215))<.5};
tcf=function(J,c,m){var b=m.minimumRowsOfVideosBetweenSections===void 0?1:m.minimumRowsOfVideosBetweenSections;return J<(m.minimumRowsOfVideosAtStart===void 0?2:m.minimumRowsOfVideosAtStart)||c!==null&&J-c<=b?!1:!0};
IV5=function(J,c){var m=0,b=0;J=_.M(J);for(var x=J.next();!x.done;x=J.next()){var P=x.value;if(P.richItemRenderer)P.richItemRenderer.rowIndex=b,P.richItemRenderer.colIndex=m++,m===c&&(m=0,b++);else if(P.richGroupRenderer&&P.richGroupRenderer.numColumns!==void 0)P.richGroupRenderer.rowIndex=b,P.richGroupRenderer.colIndex=m,m+=P.richGroupRenderer.numColumns,m===c&&(m=0,b++);else if(P.richSectionRenderer){var p=x=void 0;if(P=_.L((x=P)==null?void 0:(p=x.richSectionRenderer)==null?void 0:p.content,_.Ls$))P.rowIndex=
b++}}};
KHS=function(J,c){var m=c.contentElement;c=c.rendererToTagNameMap;if(m&&c&&c.size!==0){for(var b=new Map,x=_.M(m.children),P=x.next();!P.done;P=x.next()){P=P.value;var p=P.tagName.toLowerCase(),t=b.get(p);t||(t=[],b.set(p,t));t.push(P)}if(b.size!==0)for(x=Math.min(J.length,m.children.length),P=new Map,p=0;p<x;p++){t=Object.keys(J[p])[0];t=c.get(t);if(!t)break;var I=P.get(t);I===void 0&&(I=0,P.set(t,I));var a=b.get(t);if(!a||I>=a.length)break;P.set(t,I+1);t=a[I];I=m.children[p];I!==t&&(_.RO3=!0,_.oiQ.set(t,
!0),m.insertBefore(t,I),_.oiQ.delete(t),_.RO3=!1)}}};
C91=function(J,c,m,b,x,P,p){b=b===void 0?{}:b;if(!J||!J.length)return[];J=J.slice();var t=[],I=[];x=null;for(var a=0,k=function(d){I.sort(function(A,l){return l.skippedOnRow-A.skippedOnRow});
for(var G,e=(G=I.shift())==null?void 0:G.content;e;)!e.richSectionRenderer&&d||t.push(e),G=void 0,e=(G=I.shift())==null?void 0:G.content},H=[];J.length>0||I.length>0;){for(var T=[],r=c;r>0;){var W=void 0,Y=void 0,Z=(Y=I[0]&&I[0].skippedOnRow<a?(W=I.shift())==null?void 0:W.content:void 0)!=null?Y:J.shift();
if(!Z)break;if(Z.richItemRenderer)W=Z.richItemRenderer.targetId,Y=void 0,W&&((Y=p)==null?0:Y.has(W))&&H.push(p.get(W)),T.push(Z),r--;else if(Z.richGroupRenderer&&Z.richGroupRenderer.numColumns!==void 0)Z.richGroupRenderer.numColumns<=r?(T.push(Z),r-=Z.richGroupRenderer.numColumns):r===c&&Z.richGroupRenderer.numColumns>c?(T.push({richGroupRenderer:Object.assign({},Z.richGroupRenderer,{numColumns:c})}),r=0):I.push({content:Z,skippedOnRow:a});else if(Z.richSectionRenderer)if(tcf(a,x,b)&&r===c){t.push(Z);
x=a;a++;continue}else I.push({content:Z,skippedOnRow:a});else if(Z.continuationItemRenderer){k(!0);t.push(Z);r=0;break}if(r===0)t.push.apply(t,_.L6(T));else if(!m&&J.length===0){k(!1);t.push.apply(t,_.L6(T));r=0;break}}a++;H=_.M(H);for(T=H.next();!T.done;T=H.next())t.push(T.value),a++;H=[]}IV5(t,c);P&&KHS(t,P);return t};
aVo=function(J){return J.talkToRecs};
izS=function(J,c){if(c){var m=_.Rc().getState().entities.flowStateEntity,b=kQ5(J),x=[c];b&&b!==c&&x.push(b);var P=!0,p;if(m&&J.flowStateEntityKey&&((p=m[J.flowStateEntityKey])==null?void 0:p.primaryButtonDisabled)!==void 0){var t;P=!((t=m[J.flowStateEntityKey])==null||!t.primaryButtonDisabled)}Hzf(J,b!=null?b:c,x,P)}};
THe=function(J){return _.Nh(_.Rc(),function(c){return c.entities.flowStateEntity},function(c,m){if(J.flowStateEntityKey){var b,x=c==null?void 0:(b=c[J.flowStateEntityKey])==null?void 0:b.currentStepId,P;
m=m==null?void 0:(P=m[J.flowStateEntityKey])==null?void 0:P.currentStepId;P=_.Rc().getState().talkToRecs;if(x&&x!==m){var p;c=(c==null?void 0:(p=c[J.flowStateEntityKey])==null?void 0:p.stepIdStack)||Object.keys(P.stepStates);p=!n4r(P==null?void 0:P.stepStates[x]);Hzf(J,x,c,p)}}})};
wxu=function(J){return _.Nh(_.Rc(),aVo,function(c){var m=kQ5(J);if(m){var b=Object.keys(c.stepStates);c=!n4r(c==null?void 0:c.stepStates[m]);Hzf(J,m,b,c)}})};
n4r=function(J){var c=Object.keys((J==null?void 0:J.selectionStates)||{}).reduce(function(P,p){return P||(J==null?void 0:J.selectionStates[p].isSelected)},!1),m,b,x=!!(J==null?0:(m=J.userQuery)==null?0:(b=m.userQuery)==null?0:b.trim());
return c||x};
kQ5=function(J){if(J.flowStateEntityKey){var c,m,b=(c=_.Rc().getState().entities.flowStateEntity)==null?void 0:(m=c[J.flowStateEntityKey])==null?void 0:m.currentStepId;if(b)return b}};
Hzf=function(J,c,m,b){_.Rc().dispatch(_.It("flowStateEntity",J.flowStateEntityKey,{currentStepId:c,stepIdStack:m,key:J.flowStateEntityKey,primaryButtonDisabled:b}))};
_.rho=function(J,c){return _.P2(J.entities,"youchatPendingResponseEntity",c)};
_.sdf=function(J){return function(c){_.AO(_.It("youchatPendingResponseEntity",J,{entityKey:J,isPendingResponse:c}))}};
LHR=function(J){J==null||J.addEventListener("DOMLoaded",function(){J.goToAndPlay(J.totalFrames-48,!0)})};var WHS;_.sB({_template:function(){if(WHS!==void 0)return WHS;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);
var c=J.content,m=c.insertBefore;D$R===void 0&&(D$R=document.createElement("template"));var b=D$R;m.call(c,b.content.cloneNode(!0),J.content.firstChild);return WHS=J},
is:"tp-yt-paper-material",properties:{elevation:{type:Number,reflectToAttribute:!0,value:1},animated:{type:Boolean,reflectToAttribute:!0,value:!1}}});var zye=new _.Q("talkToRecsFlowRenderer");var upp=new _.Q("flowRootRenderer");var fVo=new _.Q("learningJourneyQuizViewModel");var YER=new _.Q("chipsShelfViewModel");var Xxr=new _.Q("responsiveContainerConfiguration");var ZzR=new _.Q("horizontalShelfViewModel");_.qE1=new _.Q("engagementPanelSectionListRenderer");var U$h=new _.Q("conversationResourceViewModel");var SE5=function(){this.horizontal=!1},hyf=function(J,c){J.horizontal=c};
SE5.prototype.position=function(J,c,m,b){b=b===void 0?1:b;J=this.delta(J)*b+c;b=Math.max(c,m);return J>=Math.min(c,m)&&J<=b?J:m};
SE5.prototype.axis=function(J){J=this.direction(J);return J==="up"||J==="down"?"Y":"X"};var Pl=function(J,c,m){c=c===void 0?_.ks():c;this.target=J;this.manager=c;this.touchAction=m;this.events=[];this.attached=!1;this.eventMap={};this.onSwipeDown=function(){};
this.onSwipeUp=function(){};
this.onPanStart=function(){};
this.onPanMove=function(){};
this.onPanEnd=function(){}};
Pl.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(_.L6(this.events)));for(var J=_.M(this.events),c=J.next();!c.done;c=J.next())this.listen(c.value)}};
Pl.prototype.detach=function(){if(this.attached){this.attached=!1;this.manager.unregisterTouchEvents.apply(this.manager,[this.target].concat(_.L6(this.events)));for(var J=_.M(this.events),c=J.next();!c.done;c=J.next())this.unlisten(c.value)}};
Pl.prototype.listen=function(J){this.eventMap[J]&&this.target.addEventListener(J,this.eventMap[J])};
Pl.prototype.unlisten=function(J){this.eventMap[J]&&this.target.removeEventListener(J,this.eventMap[J])};var Mt=function(){SE5.apply(this,arguments)};
_.D(Mt,SE5);Mt.prototype.direction=function(J){var c=J.detail;J=c.deltaY;c=c.deltaX;return J&&!this.horizontal?J>0?"down":"up":c&&this.horizontal?c>0?"right":"left":"none"};
Mt.prototype.distance=function(J){return Math.abs(this.delta(J))};
Mt.prototype.delta=function(J){var c=this.direction(J),m=J.detail;J=m.deltaX;m=m.deltaY;return c==="up"||c==="down"?m||0:J||0};
Mt.prototype.velocity=function(J){var c=this.direction(J),m=J.detail;J=m.velocityX;m=m.velocityY;return Math.abs(c==="up"||c==="down"?m||0:J||0)};_.pT=function(J,c,m,b,x,P){x=x===void 0?new Mt:x;P=P===void 0?_.ks():P;Pl.call(this,c,P,b);var p=this;this.element=J;this.target=c;this.config=m;this.input=x;this.manager=P;this.events=["panstart","panmove","panend"];this.onPanStart=function(){p.config.draggingClass&&p.element.classList.add(p.config.draggingClass);p.config.startAction&&p.config.startAction()};
this.onPanMove=function(t){var I=d$S(p,t);if(I){p.move(t,I);I.fade&&p.fade(t,I);var a=p.input.direction(t);I.moveAction&&I.moveAction($$p(p,t,I),a)}};
this.onPanEnd=function(t){var I,a,k,H,T,r;return _.N(function(W){if(W.nextAddress==1){p.animationRequestId&&cancelAnimationFrame(p.animationRequestId);p.animationRequestId=void 0;I=d$S(p,t);if(!I)return W.return();a=I;k=a.triggerAction;H=a.fade;T=a.disableFinish;r=a.translateBack;var Y=p.input.velocity(t),Z=p.input.distance(t),d=p.threshold(I);return Y>.3&&Z>10||Z>d?T?W.jumpTo(6):H?_.K(W,GQ4(p,t),6):_.K(W,E44(p,t,I),6):r?_.K(W,p.translateBack(t),3):W.jumpTo(3)}W.nextAddress!=3&&k&&k();p.config.draggingClass&&
p.element.classList.remove(p.config.draggingClass);p.reset();_.tD(W)})};
J=Object.keys(m.triggers);this.directions=new Set(J);hyf(this.input,this.directions.has("right")||this.directions.has("left"))};
_.D(_.pT,Pl);_.pT.prototype.reset=function(){this.element.style.transform="";this.element.style.opacity="";this.config.resetAction&&this.config.resetAction()};
var d$S=function(J,c){c=J.input.direction(c);return J.config.triggers[c]};
_.pT.prototype.move=function(J,c){var m=this;this.animationRequestId||(this.animationRequestId=requestAnimationFrame(function(){var b=m.input.axis(J),x=m.input.position(J,m.config.startPosition,c.endPosition,c.moveRatio||1);m.element.style.transform="translate"+b+"("+x+"px)";m.animationRequestId=void 0}))};
var $$p=function(J,c,m){var b=m.moveRatio||1;m=Math.abs(J.config.startPosition-m.endPosition);return Math.min(J.input.distance(c)*b,m)/m};
_.pT.prototype.fade=function(J,c){var m=c.endOpacity;J=$$p(this,J,c);J>0&&(this.element.style.opacity=""+(((m||0)-1)*J+1))};
_.pT.prototype.threshold=function(J){return J.threshold?J.threshold:Math.abs(J.endPosition-this.config.startPosition)/3};
var E44=function(J,c,m){var b,x,P,p,t,I,a;return _.N(function(k){if(k.nextAddress==1)return b=J.input.delta(c)+J.config.startPosition,x=J.input.axis(c),P=m,p=P.endPosition,t=P.transitionEndPosition,a=(I=t)!=null?I:p,_.K(k,J.element.animate([{transform:"translate"+x+"("+b+"px)"},{transform:"translate"+x+"("+a+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);J.element.style.transform="translate"+x+"("+a+"px)";_.tD(k)})};
_.pT.prototype.translateBack=function(J){var c=this,m,b;return _.N(function(x){if(x.nextAddress==1){if(!c.element.style.transform)return x.return();m=c.input.axis(J);b=c.config.startPosition;return _.K(x,c.element.animate([{transform:c.element.style.transform},{transform:"translate"+m+"("+b+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2)}c.element.style.transform="translate"+m+"("+b+"px)";_.tD(x)})};
var GQ4=function(J,c){var m,b,x,P;return _.N(function(p){if(p.nextAddress==1)return m=J.input.delta(c)+J.config.startPosition,b=J.input.axis(c),x=m+70,P=J.element.style.opacity===""?1:J.element.style.opacity,_.K(p,J.element.animate([{transform:"translate"+b+"("+m+"px)",opacity:P},{transform:"translate"+b+"("+x+"px)",opacity:0}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);J.element.style.transform="translate"+b+"("+x+"px)";J.element.style.opacity="0";_.tD(p)})};var Nt=function(){var J=_.Cs.apply(this,arguments)||this;J._noAccessors=!0;J.scrollRate=3;J.autoScrollAnimationStart=0;J.autoScrollPaused=!1;J.autoScrollRafId=0;return J};
_.D(Nt,_.Cs);_.V=Nt.prototype;_.V.created=function(){var J=this;this.boundAutoScrollHandler=function(c){J.autoScroll(c)}};
_.V.detached=function(){this.hostElement.removeEventListener("mouseout",_.ME(this,this.startAutoScroll));this.hostElement.removeEventListener("click",_.ME(this,this.endAutoScroll));this.hostElement.removeEventListener("mouseover",_.ME(this,this.endAutoScroll));this.endAutoScroll&&this.endAutoScroll()};
_.V.autoScrollEnabledChanged=function(){this.autoScrollEnabled?(this.hostElement.addEventListener("mouseout",_.ME(this,this.startAutoScroll)),this.hostElement.addEventListener("click",_.ME(this,this.endAutoScroll)),this.hostElement.addEventListener("mouseover",_.ME(this,this.endAutoScroll)),this.startAutoScroll()):(this.hostElement.removeEventListener("mouseout",_.ME(this,this.startAutoScroll)),this.hostElement.removeEventListener("click",_.ME(this,this.endAutoScroll)),this.hostElement.removeEventListener("mouseover",
_.ME(this,this.endAutoScroll)),this.endAutoScroll())};
_.V.autoScroll=function(J){this.autoScrollAnimationStart||(this.autoScrollAnimationStart=J);var c;if(c=!this.autoScrollPaused&&this.scrollTarget)c=this.scrollTarget,c=c.scrollHeight-c.scrollTop!==c.clientHeight;c&&(c=1E3/this.scrollRate,J-=this.autoScrollAnimationStart,J>c&&(this.scrollTarget.scrollTop+=Math.ceil(J/c),this.autoScrollAnimationStart=0),this.startAutoScroll())};
_.V.startAutoScroll=function(){this.autoScrollPaused=!1;this.autoScrollRafId=window.requestAnimationFrame(this.boundAutoScrollHandler)};
_.V.endAutoScroll=function(){this.autoScrollPaused=!0;window.cancelAnimationFrame(this.autoScrollRafId)};
Nt.prototype.autoScrollEnabledChanged=Nt.prototype.autoScrollEnabledChanged;_.O([_.U(),_.R("design:type",Object)],Nt.prototype,"scrollRate",void 0);_.O([_.U(),_.R("design:type",Object)],Nt.prototype,"scrollTarget",void 0);_.O([_.U(),_.R("design:type",Boolean)],Nt.prototype,"autoScrollEnabled",void 0);_.O([_.NE("autoScrollEnabled"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Nt.prototype,"autoScrollEnabledChanged",null);Nt=_.O([_.au()],Nt);_.v41=[Nt.prototype];var Ozf;var t1=function(){var J=_.h.apply(this,arguments)||this;J.buttonUpdate=_.w("web_button_rework");J.dismissButtonOverrides=_.w("web_button_rework")?{iconPosition:"icon-only",style:"overlay-dark",type:"tonal",size:"M",state:"active"}:void 0;J.forceDarkTheme=!1;J.forceLightTheme=!1;J.dynamicTextHeight=94;J.hasOverflowButton=!1;J.isInfeedModernization=!1;return J};
_.D(t1,_.h);_.V=t1.prototype;_.V.computeUrlImg=function(J){if(J)return _.Bd(J.thumbnails)};
_.V.getLogoHeight=function(J){return this.logoWithPadding(J)?"31":"24"};
_.V.getLogoClassName=function(J){return this.logoWithPadding(J)?"ytd-banner-promo-renderer-logo-with-padding":"ytd-banner-promo-renderer-logo"};
_.V.logoWithPadding=function(J){var c,m;return(J=(c=J.thumbnails)==null?void 0:(m=c[0])==null?void 0:m.height)&&J%31===0?!0:!1};
_.V.sendImpressionEndpoints=function(J){J.impressionEndpoints&&_.Vq(this.hostElement,J.impressionEndpoints)};
_.V.observeBasicPalette=function(){var J,c,m=(J=this.data)==null?void 0:(c=J.colorData)==null?void 0:c.basicColorPaletteData;m?_.DL(this.hostElement,m):_.DL(this.hostElement,{})};
_.V.observeDataChanged=function(){var J;this.dynamicTextHeight=((J=this.data)==null?0:J.supplementalText)?74:94;var c;this.hasSupplementalText=!((c=this.data)==null||!c.supplementalText);if(_.w("web_button_rework")){var m,b,x,P;J=(m=this.data)==null?void 0:(b=m.actionButton)==null?void 0:(x=b.buttonRenderer)==null?void 0:(P=x.colorData)==null?void 0:P.basicColorPaletteData;var p,t,I;if(!((p=this.data)==null?0:(t=p.actionButton)==null?0:(I=t.buttonRenderer)==null?0:I.style)&&J){this.computeIsInfeedModernization(this.data)||
(J.borderColor=J.foregroundTitleColor);var a,k;this.set("data.actionButton.buttonRenderer",_.Lw.unsafeClone((a=this.data)==null?void 0:(k=a.actionButton)==null?void 0:k.buttonRenderer))}}};
_.V.observeDataForCounterfactual=function(){if(_.w("kevlar_banner_cf_extra_logging")){var J;((J=this.data)==null?0:J.isVisible)||this.sendImpressionEndpoints(this.data)}};
_.V.computeSupplementalStyle=function(){var J;if((J=this.data)!=null&&J.supplementalText){var c,m,b;if((c=this.data)==null?0:(m=c.colorData)==null?0:(b=m.basicColorPaletteData)==null?0:b.foregroundActivatedColor)return J=_.XB(this.data.colorData.basicColorPaletteData.foregroundActivatedColor),"--yt-endpoint-color:"+J+"; --yt-endpoint-hover-color:"+J+"; --yt-endpoint-visited-color:"+J+"; --yt-formatted-string-bold-font-weight:700;"}};
_.V.computeForcedDarkTheme=function(){var J,c,m,b=(J=this.data)==null?void 0:(c=J.actionButton)==null?void 0:(m=c.buttonRenderer)==null?void 0:m.style,x,P,p;J=NHF(((x=this.data)==null?void 0:(P=x.colorData)==null?void 0:(p=P.basicColorPaletteData)==null?void 0:p.backgroundColor)||0);return b&&J};
_.V.computeForcedLightTheme=function(){var J,c,m,b=(J=this.data)==null?void 0:(c=J.actionButton)==null?void 0:(m=c.buttonRenderer)==null?void 0:m.style,x,P,p;J=!NHF(((x=this.data)==null?void 0:(P=x.colorData)==null?void 0:(p=P.basicColorPaletteData)==null?void 0:p.backgroundColor)||0);return b&&J};
_.V.computeHasOverflowButton=function(J){return!!J.overflowButton};
_.V.computeHasTitle=function(J){return!!J.title};
_.V.computeTitleMaxFontSize=function(J){return this.computeHasOverflowButton(J)?28:64};
_.V.onDismissClick=function(){this.hostElement.classList.add("dismissed")};
_.V.computeIsInfeedModernization=function(){var J,c,m,b,x=(J=this.data)==null?void 0:(c=J.actionButton)==null?void 0:(m=c.buttonRenderer)==null?void 0:(b=m.colorData)==null?void 0:b.basicColorPaletteData;return(x==null?void 0:x.backgroundColor)===452984831||(x==null?void 0:x.backgroundColor)===218103808};
t1.prototype.observeDataForCounterfactual=t1.prototype.observeDataForCounterfactual;t1.prototype.observeDataChanged=t1.prototype.observeDataChanged;t1.prototype.observeBasicPalette=t1.prototype.observeBasicPalette;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],t1.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.XP),_.R("design:type",Object)],t1.prototype,"ytdDismissibleItemBehavior",void 0);
_.O([_.f(_.SO.YtdGuideStateAwareBehavior),_.R("design:type",Object)],t1.prototype,"ytdGuideStateAwareBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],t1.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],t1.prototype,"buttonUpdate",void 0);_.O([_.U({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],t1.prototype,"hasSupplementalText",void 0);_.O([_.U(),_.R("design:type",Object)],t1.prototype,"dismissButtonOverrides",void 0);
_.O([_.U({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.R("design:type",Boolean)],t1.prototype,"hasTitle",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeForcedDarkTheme(data)"}),_.R("design:type",Object)],t1.prototype,"forceDarkTheme",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeForcedLightTheme(data)"}),_.R("design:type",Object)],t1.prototype,"forceLightTheme",void 0);_.O([_.U(),_.R("design:type",Object)],t1.prototype,"dynamicTextHeight",void 0);
_.O([_.U({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.R("design:type",Object)],t1.prototype,"hasOverflowButton",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeIsInfeedModernization(data)"}),_.R("design:type",Object)],t1.prototype,"isInfeedModernization",void 0);_.O([_.NE("data.colorData.basicColorPaletteData"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],t1.prototype,"observeBasicPalette",null);
_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],t1.prototype,"observeDataChanged",null);_.O([_.NE("data.isVisible"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],t1.prototype,"observeDataForCounterfactual",null);t1=_.O([_.E({is:"ytd-banner-promo-renderer",disableElementRegistration:!0})],t1);
_.v(t1,"ytd-banner-promo-renderer",function(){if(Ozf!==void 0)return Ozf;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return Ozf=J},{mode:1});var AhR;var Ryf;var o4S;var Iq=function(){return _.h.apply(this,arguments)||this};
_.D(Iq,_.h);_.O([_.U(),_.R("design:type",Object)],Iq.prototype,"data",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Iq.prototype,"ytRendererBehavior",void 0);Iq=_.O([_.E({is:"ytd-hashtag-grid-tile-renderer",disableElementRegistration:!0})],Iq);
_.v(Iq,"ytd-hashtag-grid-tile-renderer",function(){if(o4S!==void 0)return o4S;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return o4S=J},{mode:1});var KT=function(){return _.h.apply(this,arguments)||this};
_.D(KT,_.h);KT.prototype.configureRendererStamper=function(){return{"data.tiles":{id:"tiles",mapping:{hashtagGridTileRenderer:"ytd-hashtag-grid-tile-renderer"}}}};
KT.prototype.updateRichGridTrendingHashtagsVisibility=function(){var J,c;if(((J=this.data)==null||!J.isExpanded)&&(c=this.data)!=null&&c.tiles){J=this.data.tiles.length;c=J>this.richGridItemsPerRow?this.richGridItemsPerRow+1:J;var m=Math.ceil(J/c);this.fullyVisibleRows=J%c===1&&m===2?1:Math.min(m,2);this.isShowMoreVisible=this.fullyVisibleRows<m}};
KT.prototype.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
KT.prototype.updateRichGridTrendingHashtagsVisibility=KT.prototype.updateRichGridTrendingHashtagsVisibility;_.O([_.U(),_.R("design:type",Object)],KT.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Number)],KT.prototype,"fullyVisibleRows",void 0);_.O([_.U({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],KT.prototype,"isShowMoreVisible",void 0);_.O([_.U({selector:_.W2,value:0}),_.R("design:type",Number)],KT.prototype,"richGridItemsPerRow",void 0);
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],KT.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],KT.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.fY),_.R("design:type",Object)],KT.prototype,"ytdReduxBehavior",void 0);_.O([_.NE("data","richGridItemsPerRow"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],KT.prototype,"updateRichGridTrendingHashtagsVisibility",null);
KT=_.O([_.E({is:"ytd-hashtag-grid-shelf-renderer",disableElementRegistration:!0})],KT);
_.v(KT,"ytd-hashtag-grid-shelf-renderer",function(){if(Ryf!==void 0)return Ryf;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return Ryf=J},{mode:1});var QdS;var eyR;var CT=function(){var J=_.h.apply(this,arguments)||this;J.visibleVideos=[];J.hiddenVideos=[];J.modern=_.w("web_modern_buttons");J.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return J};
_.D(CT,_.h);_.V=CT.prototype;_.V.attached=function(){var J=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",J);this.onDarkModeToggledAction(J)};
_.V.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"}}}};
_.V.dataChanged=function(){var J=this;this.requestElementsPerRow();var c,m;this.currentColorPalette=this.isDarkTheme?(c=this.data)==null?void 0:c.darkColorData:(m=this.data)==null?void 0:m.lightColorData;var b;if((b=this.currentColorPalette)==null?0:b.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor;this.updateButtonPalette();this.setHasMovieRenderer();this.setVisibleVideos(this.hasMovieRenderer);_.o3(this,function(){J.updateVisibilityForHiddenVideos()});
this.checkExpanded(this.data)};
_.V.elementsPerRowChanged=function(){this.updateTitleSpec();this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.V.slimItemsPerRowChanged=function(){this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.V.computeIsFirstFeedItem=function(J){return J};
_.V.onDarkModeToggledAction=function(J){J!==this.isDarkTheme&&this.set("isDarkTheme",J);this.data&&(this.currentColorPalette=J?this.data.darkColorData:this.data.lightColorData,this.updateButtonPalette())};
_.V.getCurrentLogo=function(J,c){if(J)return c?J.darkLogoImage:J.lightLogoImage};
_.V.computeTitleStyle=function(J){var c;if((c=this.data)!=null&&c.title&&J&&J.textPrimary!==void 0)return"color:"+_.XB(J.textPrimary)+";"};
_.V.computeSubtitleStyle=function(J){var c;if((c=this.data)!=null&&c.subtitle&&J&&J.textSecondary!==void 0)return"color:"+_.XB(J.textSecondary)+";"};
_.V.computeDismissIconStyle=function(J){if(this.data&&this.data.dismissButton&&J&&J.textPrimary!==void 0)return"--yt-button-color:"+_.XB(J.textPrimary)+";"};
_.V.computeOverflowButtonStyle=function(J){if(this.data&&this.data.overflowButton&&J&&J.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.XB(J.textPrimary)+";--yt-spec-icon-active-other:"+_.XB(J.textPrimary)+";"};
_.V.computeBackgroundStyle=function(J){if(J&&this.data){var c="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var m=_.Bd((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);m&&(c+='background-image:url("'+m+'");')}J.backgroundColor!==void 0&&(c+="background-color:"+_.Zn(J.backgroundColor)+";");return c}};
_.V.computeButton=function(){var J,c=Object.assign({},_.L((J=this.data)==null?void 0:J.showMoreButton,_.ur));if(this.modern&&c){c.style="STYLE_MONO_OUTLINE";var m;if(J=(m=this.currentColorPalette)==null?void 0:m.textPrimary)c.colorData={basicColorPaletteData:{foregroundTitleColor:J,borderColor:J}}}return c};
_.V.shouldShowBottomButton=function(J,c){return!(J==null?0:J.header)&&!(J==null||!J.primaryButton)&&c<3};
_.V.checkExpanded=function(J){this.isExpanded=J&&J.content?this.hiddenVideos.length===0:!0};
_.V.onShowMoreTap=function(){this.data&&(this.isExpanded=!0,this.updateVisibilityForHiddenVideos())};
_.V.getLogoHeight=function(J){return this.logoWithPadding(J)?"26":"20"};
_.V.getLogoImageId=function(J){return this.logoWithPadding(J)?"logo-image-with-padding":"logo-image"};
_.V.computeHasSectionHeader=function(J){return!!J.header};
_.V.updateButtonPalette=function(){if(this.data)if(this.currentColorPalette){var J;if((J=this.data.primaryButton)==null?0:J.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 c;((c=this.data.dismissButton)==null?0:c.buttonRenderer)&&this.currentColorPalette.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData})}else{var m,b;((m=this.data)==null?0:(b=m.primaryButton)==null?0:b.buttonRenderer)&&this.set("primaryButton",this.data.primaryButton.buttonRenderer)}};
_.V.setVisibleVideos=function(J){if(this.data&&this.data.content)if(this.data.content.length){var c=this.data.content.length;this.data.header?J?(this.visibleVideos=this.data.content.slice(0,Math.min(c,this.slimItemsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(c,this.slimItemsPerRow),c)):(this.visibleVideos=this.data.content.slice(0,Math.min(c,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(c,this.elementsPerRow),c)):this.elementsPerRow<3?(this.visibleVideos=
this.data.content.slice(0,Math.min(c,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(c,this.elementsPerRow),c)):(this.visibleVideos=this.data.content.slice(0,Math.min(c,this.elementsPerRow-1)),this.hiddenVideos=this.data.content.slice(Math.min(c,this.elementsPerRow-1),c))}else this.visibleVideos=[],this.hiddenVideos=[]};
_.V.setHasMovieRenderer=function(){var J;if((J=this.data)!=null&&J.content){var c;this.hasMovieRenderer=!!_.L((c=this.data)==null?void 0:c.content[0],_.g1_)}else this.hasMovieRenderer=!1};
_.V.requestElementsPerRow=function(){_.cA(this.hostElement,"yt-request-elements-per-row")};
_.V.updateVisibilityForHiddenVideos=function(){if(this.data&&this.data.content){for(var J=_.M(this.hiddenMediaRenderers),c=J.next();!c.done;c=J.next())c.value.hidden=!this.isExpanded;this.isExpanded&&this.hiddenMediaRenderers[0]&&(J=_.Bj(this.hiddenMediaRenderers[0]).querySelector("#video-title-link"))&&J.focus()}};
_.V.updateTitleSpec=function(){var J;(J=this.data)!=null&&J.titleLength&&(this.largeTitle=this.elementsPerRow===2&&this.data.titleLength>10?!0:!1)};
_.V.logoWithPadding=function(J){var c,m,b;return(J=(c=this.getCurrentLogo(J,this.isDarkTheme))==null?void 0:(m=c.thumbnails)==null?void 0:(b=m[0])==null?void 0:b.height)&&J%31===0?!0:!1};
_.V.onUpdateElementsPerRowAction=function(J,c,m){J&&this.elementsPerRow!==J&&(this.elementsPerRow=J);m&&this.slimItemsPerRow!==m&&(this.slimItemsPerRow=m)};
CT.prototype.slimItemsPerRowChanged=CT.prototype.slimItemsPerRowChanged;CT.prototype.elementsPerRowChanged=CT.prototype.elementsPerRowChanged;CT.prototype.dataChanged=CT.prototype.dataChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],CT.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],CT.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.XP),_.R("design:type",Object)],CT.prototype,"ytdDismissibleItemBehavior",void 0);
_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],CT.prototype,"actionHandlerBehavior",void 0);_.O([_.f(_.fY),_.R("design:type",Object)],CT.prototype,"ytdReduxBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],CT.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],CT.prototype,"currentColorPalette",void 0);_.O([_.U(),_.R("design:type",Array)],CT.prototype,"visibleVideos",void 0);_.O([_.U(),_.R("design:type",Array)],CT.prototype,"hiddenVideos",void 0);
_.O([_.U(),_.R("design:type",Object)],CT.prototype,"primaryButton",void 0);_.O([_.U({reflectToAttribute:!0,value:3}),_.R("design:type",Number)],CT.prototype,"elementsPerRow",void 0);_.O([_.U({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],CT.prototype,"isDarkTheme",void 0);_.O([_.U({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],CT.prototype,"isExpanded",void 0);_.O([_.U({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],CT.prototype,"largeTitle",void 0);
_.O([_.U({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],CT.prototype,"hasMovieRenderer",void 0);_.O([_.U(),_.R("design:type",Number)],CT.prototype,"slimItemsPerRow",void 0);_.O([_.U(),_.R("design:type",Boolean)],CT.prototype,"showLightVideoMetadata",void 0);_.O([_.U(),_.R("design:type",Boolean)],CT.prototype,"showDarkVideoMetadata",void 0);_.O([_.U(),_.R("design:type",Number)],CT.prototype,"videoMetadataColor",void 0);
_.O([_.U({reflectToAttribute:!0,selector:_.DZ}),_.R("design:type",Boolean)],CT.prototype,"miniMode",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.R("design:type",Boolean)],CT.prototype,"isFirstFeedItem",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeHasSectionHeader(data)"}),_.R("design:type",Boolean)],CT.prototype,"hasSectionHeader",void 0);
_.O([_.U({reflectToAttribute:!0,value:!0}),_.R("design:type",Boolean)],CT.prototype,"roundedContainer",void 0);_.O([_.Ks("#visible-video-container ytd-rich-grid-media"),_.R("design:type",Array)],CT.prototype,"visibleMediaRenderers",void 0);_.O([_.Ks("#hidden-video-container ytd-rich-grid-media"),_.R("design:type",Array)],CT.prototype,"hiddenMediaRenderers",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],CT.prototype,"modern",void 0);
_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],CT.prototype,"dataChanged",null);_.O([_.NE("elementsPerRow"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],CT.prototype,"elementsPerRowChanged",null);_.O([_.NE("slimItemsPerRow"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],CT.prototype,"slimItemsPerRowChanged",null);
CT=_.O([_.E({is:"ytd-brand-video-shelf-renderer",disableElementRegistration:!0})],CT);
_.v(CT,"ytd-brand-video-shelf-renderer",function(){if(eyR!==void 0)return eyR;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return eyR=J},{mode:1});var jd1;var aq=function(){var J=_.h.apply(this,arguments)||this;J.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return J};
_.D(aq,_.h);_.V=aq.prototype;_.V.attached=function(){var J=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",J);this.onDarkModeToggledAction(J)};
_.V.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"}}}};
_.V.dataChanged=function(){this.requestElementsPerRow();var J,c;this.currentColorPalette=this.isDarkTheme?(J=this.data)==null?void 0:J.darkColorData:(c=this.data)==null?void 0:c.lightColorData;this.computeVideoMetadataColor(this.isDarkTheme);this.updateButtonPalette()};
_.V.elementsPerRowChanged=function(){this.updateTitleSpec()};
_.V.computeIsFirstFeedItem=function(J){return J};
_.V.onDarkModeToggledAction=function(J){J!==this.isDarkTheme&&this.set("isDarkTheme",J);this.data&&(this.currentColorPalette=J?this.data.darkColorData:this.data.lightColorData,this.computeVideoMetadataColor(J),this.updateButtonPalette())};
_.V.shouldShowThumbnailInMetadata=function(J){return J<=1};
_.V.computeVideoMetadataColor=function(){if(this.data){var J;if((J=this.currentColorPalette)==null?0:J.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor}};
_.V.computeTitleStyle=function(J){var c;if((c=this.data)!=null&&c.title&&J&&J.textPrimary!==void 0)return"color:"+_.XB(J.textPrimary)+";"};
_.V.computeSubtitleStyle=function(J){var c;if((c=this.data)!=null&&c.subtitle&&J&&J.textSecondary!==void 0)return"color:"+_.XB(J.textSecondary)+";"};
_.V.computeOverflowButtonStyle=function(J){var c;if(this.data&&this.data.overflowButton&&(J==null?0:(c=J.dismissButtonColorData)==null?0:c.foregroundTitleColor))return"--ytd-menu-renderer-button-color:"+_.XB(J.dismissButtonColorData.foregroundTitleColor)+";--yt-spec-icon-active-other:"+_.XB(J.dismissButtonColorData.foregroundTitleColor)+";"};
_.V.computeBackgroundStyle=function(J){if(J&&this.data){var c="";J.backgroundColor!==void 0&&(c+="background-color:"+_.Zn(J.backgroundColor)+";");return c}};
_.V.computeHasOverflowButton=function(J){return!!J.overflowButton};
_.V.updateButtonPalette=function(){if(this.data){var J;if((J=this.data.primaryButton)==null?0:J.buttonRenderer){var c;if((c=this.currentColorPalette)==null?0:c.primaryButtonColorData)this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0;else{var m;((m=this.currentColorPalette)==null?0:m.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)})}}};
_.V.requestElementsPerRow=function(){_.cA(this.hostElement,"yt-request-elements-per-row")};
_.V.updateTitleSpec=function(){var J;(J=this.data)!=null&&J.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")};
_.V.onUpdateElementsPerRowAction=function(J){J&&this.elementsPerRow!==J&&(this.elementsPerRow=J)};
aq.prototype.elementsPerRowChanged=aq.prototype.elementsPerRowChanged;aq.prototype.dataChanged=aq.prototype.dataChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],aq.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],aq.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.XP),_.R("design:type",Object)],aq.prototype,"ytdDismissibleItemBehavior",void 0);
_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],aq.prototype,"actionHandlerBehavior",void 0);_.O([_.f(_.fY),_.R("design:type",Object)],aq.prototype,"ytdReduxBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],aq.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],aq.prototype,"currentColorPalette",void 0);_.O([_.U(),_.R("design:type",Object)],aq.prototype,"primaryButton",void 0);
_.O([_.U({reflectToAttribute:!0,value:3}),_.R("design:type",Number)],aq.prototype,"elementsPerRow",void 0);_.O([_.U({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],aq.prototype,"isDarkTheme",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",String)],aq.prototype,"titleSize",void 0);_.O([_.U(),_.R("design:type",Number)],aq.prototype,"videoMetadataColor",void 0);_.O([_.U({reflectToAttribute:!0,selector:_.DZ}),_.R("design:type",Boolean)],aq.prototype,"miniMode",void 0);
_.O([_.U({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.R("design:type",Boolean)],aq.prototype,"isFirstFeedItem",void 0);_.O([_.U({reflectToAttribute:!0,value:!0}),_.R("design:type",Boolean)],aq.prototype,"roundedContainer",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.R("design:type",Boolean)],aq.prototype,"hasOverflowButton",void 0);
_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],aq.prototype,"dataChanged",null);_.O([_.NE("elementsPerRow"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],aq.prototype,"elementsPerRowChanged",null);aq=_.O([_.E({is:"ytd-brand-video-singleton-renderer",disableElementRegistration:!0})],aq);
_.v(aq,"ytd-brand-video-singleton-renderer",function(){if(jd1!==void 0)return jd1;var J=document.createElement("template");_.z(J,'\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>');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return jd1=J},{mode:_.mP("kevlar_poly_si_batch_j070")?1:2});var FH5;var lV5=_.Q1(function(J){var c=J.data;return _.C(_.RA,{data:function(){return c().thumbnail},
alt:"",className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail-image",targetHeight:function(){a:switch(c().variant){case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_VERTICAL":var m=108;break a;case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_FULL_BLEED_HORIZONTAL":m=88;break a;default:m=88}return m},
preserveHeight:!0,preserveWidth:!0,useWidth:!1,contentMode:function(){return c().thumbnail.contentMode||"CONTENT_MODE_SCALE_ASPECT_FIT"}})},"oi"),BHs=_.Q1(function(J){var c=J.metadataRow;
var m=J.delimiter;return _.C(_.Te,{each:function(){return c().textParts||[]},
keyBy:"INDEX"},function(b,x){return _.C(_.cG,null,_.C(_.j8,{text:b,noWrap:!0,userInput:!0}),_.C(yhf,{delimiter:m,max:function(){return c().textParts.length},
index:x}))})},"pi"),yhf=_.Q1(function(J){var c=J.delimiter;
var m=J.max;var b=J.index;return _.C(_.n,{cond:function(){return(c==null?void 0:c())&&m()-1>b()},
then:function(){return _.C("span",null,c)}})},"qi"),g4R=_.Q1(function(J){var c=J.data;
J={};return _.C("yt-profile-page-header-information-view-model",{class:_.pq("profile-page-header-information-view-model-wiz",(J["profile-page-header-information-view-model-wiz--mobile"]=!1,J))},_.C(_.n,{cond:function(){return c().onTap},
then:function(){return _.C(_.cL,{className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail",command:function(){return _.ZG(c().onTap)}},_.C(_.wi,{data:function(){return c().thumbnail}},{profilePageHeaderThumbnailViewModel:lV5}))},
else:function(){return _.C("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail"},_.C(_.wi,{data:function(){return c().thumbnail}},{profilePageHeaderThumbnailViewModel:lV5}))}}),_.C("div",{class:"profile-page-header-information-view-model-wiz__flex-container"},_.C(_.n,{cond:function(){return c().onTap},
then:function(){return _.C(_.wi,{data:function(){return c().title}},{profilePageHeaderTitleViewModel:function(m){var b=m.data;
return _.C(_.cL,{className:"profile-page-header-information-view-model-wiz__profile-page-header-title",command:function(){return _.ZG(b().onTap)}},_.C(_.j8,{text:function(){return b().title}}))}})},
else:function(){return _.C(_.wi,{data:function(){return c().title}},{profilePageHeaderTitleViewModel:function(m){var b=m.data;
return _.C(_.j8,{text:function(){return b().title},
className:"profile-page-header-information-view-model-wiz__profile-page-header-title"})}})}}),_.C(_.wi,{data:function(){return c().metadata}},{profilePageHeaderMetadataViewModel:function(m){var b=m.data;
return _.C(_.n,{cond:function(){return b().metadataRows},
then:function(x){return _.C("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-metadata"},_.C(_.Te,{each:x,keyBy:"INDEX"},function(P,p){return _.C(_.cG,null,_.C(BHs,{metadataRow:P,delimiter:" \u2022 "}),_.C(yhf,{delimiter:" \u2022 ",max:function(){return x().length},
index:p}))}))}})}})))},"ri");
g4R.idomCompat=!0;_.lv(g4R,"yt-profile-page-header-information-view-model",{props:{data:_.vt}});var kk=function(){return _.h.apply(this,arguments)||this};
_.D(kk,_.h);kk.prototype.configureRendererStamper=function(){return{"data.information":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],kk.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],kk.prototype,"data",void 0);kk=_.O([_.E({is:"ytd-effect-pivot-header-view-model",disableElementRegistration:!0})],kk);
_.v(kk,"ytd-effect-pivot-header-view-model",function(){if(FH5!==void 0)return FH5;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return FH5=
J},{mode:1});var J_p;var Hl=function(){return _.h.apply(this,arguments)||this};
_.D(Hl,_.h);Hl.prototype.configureRendererStamper=function(){return{"data.headerInformation":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],Hl.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Hl.prototype,"data",void 0);Hl=_.O([_.E({is:"ytd-source-pivot-header-renderer",disableElementRegistration:!0})],Hl);
_.v(Hl,"ytd-source-pivot-header-renderer",function(){if(J_p!==void 0)return J_p;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return J_p=J},{mode:1});_.c_u=_.Q1(function(J){var c=J.data;J=_.oN("content-list-item-view-model");_.vg(J,function(){return c().rendererContext});
var m=function(){var b;return _.Ec((b=c())==null?void 0:b.rendererContext)};
return _.C("content-list-item-view-model",{el:J,class:"ytContentListItemViewModelHost",role:function(){return m()?"listitem":void 0},
tabindex:function(){return m()?0:void 0}},_.C("div",{class:"ytContentListItemViewModelContentListItemWrapper"},_.C("div",{class:"ytContentListItemViewModelImageContainer"},_.C(_.n,{cond:function(){return c().image},
then:function(b){return _.C(_.RA,{data:b,alt:"",targetWidth:72,targetHeight:72,preserveWidth:!0,preserveHeight:!0,className:"ytContentListItemViewModelimageClassName"})}}),_.C(_.wi,{data:function(){var b;
return(b=c())==null?void 0:b.avatar}},{avatarViewModel:_.s8})),_.C("div",{class:"ytContentListItemViewModelTitleMetadataWrapper"},_.C("div",{class:"ytContentListItemViewModelTitle"},_.C(_.j8,{text:function(){return c().title}})),_.C("div",{class:"ytContentListItemViewModelMetadata"},_.C(_.wi,{data:function(){return c().metadata}},{contentMetadataViewModel:function(b){return _.C(_.mn$,{data:b.data,
layout:1})}})))),_.C("div",{class:"ytContentListItemViewModelActionButton"},_.C(_.wi,{data:function(){var b;
return(b=c())==null?void 0:b.actionButton}},{buttonViewModel:_.XU,
toggleButtonViewModel:_.LK})))},"si");_.lv(_.Q1(function(J){var c={},m={},b={},x={};return _.C("yt-card-view-model",{class:_.pq("ytCardViewModelHost",J.className,(c.ytCardViewModelOutline=function(){return J.data().cardStyle==="CARD_STYLE_OUTLINE"},c),(m.ytCardViewModelRaised=function(){return J.data().cardStyle==="CARD_STYLE_RAISED"||J.data().cardStyle==="CARD_STYLE_UNSPECIFIED"},m),(b.ytCardViewModelTonal=function(){return J.data().cardStyle==="CARD_STYLE_TONAL"},b),(x.ytCardViewModelInverted=function(){return J.data().cardStyle===
"CARD_STYLE_INVERSE"},x))},_.C(_.wi,{data:function(){return J.data().background}},{cinematicContainerViewModel:function(P){return _.C(_.AoQ,{data:P.data})}}),_.C("div",{class:"ytCardViewModelContentWrapper"},_.C(_.wi,{data:function(){return J.data().content}},{contentListItemViewModel:function(P){return _.C(_.c_u,{data:P.data})}})),_.C(_.wi,{data:function(){return J.data().dismissAction}},{buttonViewModel:function(P){return _.C(_.XU,{data:P.data})}}))},"ti"),"yt-card-view-model",{props:{data:_.vt,
className:_.vt}});_.lv(_.Q1(function(J){var c=function(){return _.L(J.data().flowRoot,upp)};
_.uN(function(){var m=c(),b=function(){},x=function(){};
if(m){var P,p,t,I=((t=_.L((P=c())==null?void 0:(p=P.steps)==null?void 0:p[0],_.OwR))==null?void 0:t.stepId)||"";izS(m,I);b=THe(m);x=wxu(m)}_.f2(function(){var a=c();a&&_.Rc().dispatch(_.It("flowStateEntity",a.flowStateEntityKey));b();b=function(){};
x();x=function(){}})});
return _.C("ytd-talk-to-recs-flow-renderer",{class:"ytdTalkToRecsFlowRendererHost"},_.C(_.PfZ,{contentId:function(){return J.data().contentId}},function(){return _.C("div",{class:"ytdTalkToRecsFlowRendererFlowContent"},_.C(_.n,{cond:c,
then:function(m){return _.C(_.XFr,{data:m})}}))}))},"ui"),"ytd-talk-to-recs-flow-renderer",{props:{data:_.vt}});_.lv(_.Q1(function(){return _.C("ytd-chips-shelf-with-video-shelf-ghost-card-view-model",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelHost"},_.C("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelTitle"}),_.C("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelChipsShelf"},_.C(_.H3F,null)),_.C(_.MWa,{data:{rows:1},isExploreHub:!0}))},"vi"),"ytd-chips-shelf-with-video-shelf-ghost-card-view-model");_.lv(_.Q1(function(J){var c=J.data;var m=J.standardUnitMinWidth;J=_.oN("ytd-chips-shelf-with-video-shelf-renderer");var b=_.M((0,_.IMZ)(c)),x=b.next().value,P=b.next().value,p=function(){var I,a=(I=x())==null?void 0:I.contents;return a==null||a.length===0},t=function(){P(Object.assign({},x(),{contents:[]}))};
_.gv(J,{showOption:{calledOnce:!0,state:"visible"},visibilityCallback:function(){var I=_.L(c().chipsShelf,YER);if(I!=null&&I!=null&&I.autoselectChipOnVisible){var a,k,H=_.L(I==null?void 0:(a=I.contents)==null?void 0:a[(k=I.autoselectedChipIndex)!=null?k:0],_.ZA);H&&H.tapCommand&&_.hd(H.tapCommand)}}});
return _.C("ytd-chips-shelf-with-video-shelf-renderer",{class:"ytdChipsShelfWithVideoShelfRendererHost",el:J},_.C(_.PfZ,{contentId:function(){return c().contentId},
useLegacyShelfStyle:function(){return!0}},function(){return _.C("div",null,_.C("div",{class:"ytdChipsShelfWithVideoShelfRendererHeader"},_.C(_.wi,{data:function(){return c().header}},{sectionHeaderViewModel:function(I){return _.C(_.m8,{data:I.data,
disableHorizontalPadding:!0})}})),_.C("div",{class:"ytdChipsShelfWithVideoShelfRendererChipsShelf"},_.C(_.wi,{data:function(){return c().chipsShelf}},{chipsShelfViewModel:function(I){return _.C(_.tqQ,{data:I.data,
callback:t,enableSingleChipSelection:!0})}})),_.C("div",null,_.C(_.n,{cond:p,
then:function(){return _.C("div",{class:"ytdChipsShelfWithVideoShelfRendererGhostCards"},_.C(_.MWa,{data:{rows:1},isExploreHub:!0}))}}),_.C(_.wi,{data:function(){var I;
return(I=x())==null?void 0:I.contents}},{richShelfRenderer:function(I){return _.C(_.tIQ,{data:I.data,
isInnerShelf:!0,standardUnitMinWidth:m})}})))}))},"wi"),"ytd-chips-shelf-with-video-shelf-renderer",{props:{data:_.vt,
standardUnitMinWidth:_.vt}});var iV=function(){return _.h.apply(this,arguments)||this};
_.D(iV,_.h);
iV.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}}};
iV.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
_.O([_.f(_.fY),_.R("design:type",Object)],iV.prototype,"ytdReduxBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],iV.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.Sy),_.R("design:type",Object)],iV.prototype,"ytContinuationHandlerBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],iV.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],iV.prototype,"data",void 0);
_.O([_.U(),_.R("design:type",Number)],iV.prototype,"standardUnitMinWidth",void 0);iV=_.O([_.E({is:"ytd-rich-section-renderer",disableElementRegistration:!0})],iV);
_.v(iV,"ytd-rich-section-renderer",function(){if(QdS!==void 0)return QdS;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return QdS=J},{mode:_.mP("kevlar_poly_si_batch_j029")?
1:2});_.lv(_.Vjr,"yt-profile-identity-info-view-model",{props:{data:_.vt,hideDivider:_.vt}});_.lv(_.BXQ,"yt-page-header-view-model",{props:{data:_.vt,noPadding:_.vt,enableBanner:_.vt,cinematicContainerTopbarOffset:_.vt,allowCinematicContainerOverflow:_.vt,displayAsSidebar:_.vt,displayAsPanel:_.vt}});_.lv(_.Q1(function(J){var c=J.data;var m=function(){var x;return(x=c().numColumns)!=null?x:2},b=function(){return m()>1?3:2};
J={};return _.C("ytd-rich-grid-group",{class:_.pq("ytdRichGridGroupHost",(J.ytdRichGridGroupHostFirstColumn=function(){return c().colIndex===0},J)),
style:_.kx({"--ytd-rich-grid-group-num-columns":m,"--ytd-rich-grid-items-per-group":b})},_.C("div",{class:"ytdRichGridGroupContents"},_.C(_.wi,{data:function(){var x;return(x=c().contents)==null?void 0:x.slice(0,b())}},{richItemRenderer:function(x){return _.C(_.pvu,{data:x.data,
noGutterMargins:!0,isInlineGroupItem:!0,insetMetadata:!0})}})))},"xi"),"ytd-rich-grid-group",{props:{data:_.vt}});var nT=function(){var J=_.h.apply(this,arguments)||this;J.resizeOnObserverInit=!1;J.isInlinePreviewDisabled=_.w("web_disable_inline_preview");J.disableStickyFilterBar=!1;J.transparentBackgroundChipsBar=!1;J.hideChipsBar=!1;J.isWatchDefaultLayout=!0;J.continuationShowButton=!1;J.rowReducedHorizontalMargin=!1;J.useCompactList=!1;J.manualDownloadsPresent=!1;J.smartDownloadsPresent=!1;J.shouldRenderDownloadsBanner=!1;J.hasOptedIntoSmartDownloads=!1;J.elementsPerRow=4;J.typographyBump=!1;J.showGnomeContents=
!1;J.showExploreHubContents=!1;J.slimItemsPerRow=1;J.pageLoadingFromNavigation=!1;J.loggingRefactor=_.w("kevlar_rich_grid_logging_fix");J.resizeObserver=null;J.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"};J.rendererToTagNameMap=
new Map(Object.entries(J.contentMapping()).map(function(c){var m=_.M(c);c=m.next().value;m=m.next().value;return[c,m.component]}));
J.insertedContent=new Map;return J};
_.D(nT,_.h);_.V=nT.prototype;_.V.onUseCompactListChange=function(){if(this.useCompactList!==void 0)for(var J=_.M(_.Bj(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),c=J.next();!c.done;c=J.next())c.value.useCompactList=this.useCompactList};
_.V.onSizingChange=function(){if(this.sizing!==void 0&&this.typographyBump!==void 0)for(var J=_.M(_.Bj(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),c=J.next();!c.done;c=J.next())c=c.value,c.sizing=this.sizing,c.typographyBump=this.typographyBump};
_.V.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.V.contentMapping=function(){return{richGroupRenderer:{component:"ytd-rich-grid-group"},richItemRenderer:{component:"ytd-rich-item-renderer",properties:{isShortsGrid:"[[isShortsGrid]]",isSlimGrid:"[[isSlimGrid]]",isCompactGrid:"[[isCompactGrid]]",isShortsPanelGrid:"[[isShortsPanel]]",noGutterMargins:"[[noRichItemGutterMargins]]",force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]",useCompactList:"[[useCompactList]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",itemWidth:"[[itemWidth]]",
isHomeGrid:"[[isHomePage]]"},params:{renderedFromRichGrid:!0}},richSectionRenderer:{component:"ytd-rich-section-renderer",properties:{standardUnitMinWidth:"[[data.minItemWidth]]"}},continuationItemRenderer:{component:"ytd-continuation-item-renderer",properties:{isShortsGrid:"[[isShortsGrid]]",showButton:"[[continuationShowButton]]",continuationTriggerOffset:"[[continuationTriggerOffset]]"}}}};
_.V.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}}};
_.V.attached=function(){document.addEventListener("yt-page-type-changed",_.ME(this,this.onPageChange));this.updateItemMinAndMaxWidth();this.JSC$19271_throttledOnResize=new _.FU(this.resizeObserved,_.c7("rich_grid_resize_delay_ms",50),this)};
_.V.detached=function(){var J;(J=this.resizeObserver)==null||J.disconnect();document.removeEventListener("yt-page-type-changed",_.ME(this,this.onPageChange))};
_.V.insertRichSection=function(J){var c=J.richItemTargetId;J=J.richSectionRendererToInsert;c&&J&&(this.insertedContent.set(c,J),this.reflowContent())};
_.V.computeIsReloading=function(){return this.ytContinuationHandlerBehavior.continuationIsReloading};
_.V.computeIsInlinePreviewEnabled=function(J,c,m){return _.w("web_disable_inline_preview")?!1:!m&&_.Zw4({miniplayerIsActive:J,miniplayerPlaybackState:c})};
_.V.computeSizing=function(){var J=_.JbQ(this.data);if(J||!(this.isShortsGrid||this.isSlimGrid||this.isCompactGrid||this.isShortsPanel))return J?this.useCompactList?"COMPACT":J:this.miniMode?"COMPACT":_.w("web_use_layout_library_for_rich_grid")?"STANDARD":void 0};
_.V.updateItemMinAndMaxWidth=function(){var J=_.c7("rich_grid_max_item_width",500);J>0&&_.V1(this.hostElement,{"--ytd-rich-grid-item-max-width":J+"px"});var c;J=this.getRichItemMinWidth((c=this.hostElement)==null?void 0:c.clientWidth);J>0&&_.V1(this.hostElement,{"--ytd-rich-grid-item-min-width":J+"px"})};
_.V.forceRefreshAndLog=function(){this.refreshGridLayout(!0);this.updateRichItemGridPositions()};
_.V.resizeObserved=function(){_.bJ(this.hostElement,"yt-rich-grid-resize-observed");this.refreshGridLayout(!1,!0)&&this.updateRichItemGridPositions()};
_.V.navigateBackToHome=function(){_.w("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=!1);_.w("web_hide_explore_hub_until_user_navigates_back_to_home")&&(this.showExploreHubContents=!1);var J=_.BG().resolve(_.oO).isOnWatch(),c,m=((c=_.Nr(location.pathname))==null?void 0:c.toString())||"";(["search".toString(),"subscriptions".toString(),"shorts".toString()].includes(m)||J)&&this.gnomeContents&&_.w("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=
!0);J&&this.exploreHubContents&&_.w("web_hide_explore_hub_until_user_navigates_back_to_home")&&(_.Rc().dispatch(_.J7({type:"TALK_TO_RECS_RESET_STEP_STATES",payload:null})),this.showExploreHubContents=!0)};
_.V.onPageChange=function(){var J=this;this.isCurrentPage()?(this.pageLoadingFromNavigation=!0,_.w("disable_chip_select_on_nav")||_.bJ(this.hostElement,"yt-chip-cloud-chip-deselect-action"),_.ft.addJob(function(){J.pageLoadingFromNavigation=!1;_.w("disable_chip_select_on_nav")&&_.w("h5_reset_cache_and_filter_before_update_masthead")&&J.resetCacheAndIsFilteredFeed();J.setMasthead();J.maybeSetBigYoodle();J.forceRefreshAndLog();J.terminateVideoPreview();_.w("web_hide_gnome_until_user_navigates_back_to_home")&&
(J.dataChanged(),_.o3(J,function(){if(J.showGnomeContents){var c=Array.from(_.Bj(J.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(b){b=_.Bj(b).querySelector("ytd-rich-shelf-renderer");return!!b&&b.isGnomeShelf()});
if(c){c=c.offsetTop-J.contentsElement.offsetTop;var m=_.BG().resolve(_.oO).getCurrentPage();m&&m.getPageScrollingElement().scrollTo({top:c,behavior:"smooth"})}}}));
_.w("web_hide_explore_hub_until_user_navigates_back_to_home")&&(J.dataChanged(),_.o3(J,function(){if(J.showExploreHubContents&&!_.w("web_explore_hub_no_scroll")){var c=Array.from(_.Bj(J.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(b){return!!b.querySelector("ytd-talk-to-recs-flow-renderer")});
if(c){c=c.offsetTop-J.contentsElement.offsetTop;var m=_.BG().resolve(_.oO).getCurrentPage();m&&m.getPageScrollingElement().scrollTo({top:c,behavior:"smooth"})}}}))},8)):((_.w("web_hide_gnome_until_user_navigates_back_to_home")||_.w("web_hide_explore_hub_until_user_navigates_back_to_home"))&&this.navigateBackToHome(),this.mastheadData&&(this.mastheadData=void 0))};
_.V.dataChanged=function(){var J=this,c=_.c7("web_rich_grid_row_margin",0);c>0&&_.V1(this.hostElement,{"--ytd-rich-grid-row-margin":c+"px"});_.bJ(this.hostElement,"ytd-update-grid-state-action");this.data&&this.pageLoadingFromNavigation||(this.pagePath=location.pathname,this.resetCacheAndIsFilteredFeed(),this.maybeSetBigYoodle(),this.setMasthead(),this.refreshGridLayout(),_.o3(this,function(){J.updateRichItemGridPositions();J.contentsElement&&_.V1(J.hostElement,{"--ytd-rich-grid-content-offset-top":J.contentsElement.offsetTop+
"px"})}),this.initResizeObserver())};
_.V.initResizeObserver=function(){var J=this;if(window.ResizeObserver){var c;(c=this.resizeObserver)==null||c.disconnect();var m=!1;this.resizeObserver=new ResizeObserver(function(){if(m){var b;(b=J.resizeObserver)==null||b.disconnect();var x;(x=J.JSC$19271_throttledOnResize)==null||x.fire();requestAnimationFrame(function(){var p;(p=J.JSC$19271_throttledOnResize)==null||p.fire();J.initResizeObserver()})}else if(m=!0,J.resizeOnObserverInit){var P;
(P=J.JSC$19271_throttledOnResize)==null||P.fire()}});
this.resizeObserver.observe(this.hostElement)}};
_.V.contentLengthChanged=function(){if(_.w("rich_grid_contents_check_width_ks")||this.containerWidth||this.isShortsPanel)this.reflowContent(),_.bJ(this.hostElement,"ytd-rich-item-index-update-action")};
_.V.updateElementsPerRow=function(){_.bJ(this.hostElement,"ytd-update-elements-per-row-action",[this.elementsPerRow,this.postsPerRow,this.slimItemsPerRow,this.gameCardsPerRow,this.miniGameCardsPerRow,this.containerWidth]);this.ytdReduxBehavior.dispatch(_.J7({type:"SET_RICH_GRID_ITEMS_PER_ROW",payload:this.elementsPerRow}));this.ytdReduxBehavior.dispatch(_.J7({type:"SET_RICH_GRID_SLIM_ITEMS_PER_ROW",payload:this.slimItemsPerRow}))};
_.V.onRequestElementsPerRow=function(){this.updateElementsPerRow()};
_.V.onRichShelfRendererCollapse=function(J){if(this.shownItems){var c=J.detail;J=this.shownItems.findIndex(function(b){var x,P;return((P=_.L(b==null?void 0:(x=b.richSectionRenderer)==null?void 0:x.content,_.Ls$))==null?void 0:P.trackingParams)===c});
var m=J+1;J<0||m>=this.contentsElement.children.length||!this.shownItems[m].richItemRenderer||this.contentsElement.children[m].scrollIntoView({behavior:"smooth",block:"start"})}};
_.V.onSoftReloadPage=function(){this.scrollUpToTop()};
_.V.handleRerenderDownloadsData=function(){_.w("kevlar_modern_downloads_page")&&this.entityDrivenRichGridData&&this.set("data.contents",this.entityDrivenRichGridData.contents)};
_.V.handlePlaylistRemoveVideosAction=function(J){var c;if(((c=_.L(J,_.AmQ))==null?0:c.setVideoIds)&&this.data&&this.data.contents){J=_.L(J,_.AmQ).setVideoIds;for(c=this.data.contents.length-1;c>=0;){var m=_.L(this.data.contents[c],_.re);(m=m&&_.L(m.content,_.z3))&&m.setVideoId&&J.includes(m.setVideoId)&&this.splice("data.contents",c,1);c--}this.updateIndices()}};
_.V.updateIndices=function(){if(this.data&&this.data.contents)for(var J=0;J<this.data.contents.length;J++)this.set("data.contents."+J+".richItemRenderer.index",_.v2(String(J+1)))};
_.V.hasTopRowInlinePlayableVideoWithEndorsement=function(J){var c;return!((c=J.slice(0,this.getItemsPerRow()))==null||!c.some(function(m){var b;m=_.L(m==null?void 0:(b=m.richItemRenderer)==null?void 0:b.content,_.YW);var x;return(m==null?void 0:m.inlinePlaybackEndpoint)&&(m==null?void 0:(x=m.thumbnailOverlays)==null?void 0:x.some(function(P){return P.thumbnailOverlayEndorsementRenderer}))}))};
_.V.refreshGridLayoutNew=function(J,c,m,b){var x=b.postsPerRow;var P=b.slimItemsPerRow;var p=b.gameCardsPerRow;b=b.miniGameCardsPerRow;var t;if((t=this.data)==null||!t.contents||!this.containerWidth)return!1;var I;if((I=this.data.responsiveContainerConfiguration)==null?0:I.responsiveSize){var a=_.hRJ(this.data.responsiveContainerConfiguration,this.containerWidth),k;t=_.ot(Object.assign({},a,{standardUnitMinWidth:(k=this.data)==null?void 0:k.minItemWidth}));this.useCompactList=!!(this.containerWidth<
528&&a.isCompactList)}else t=_.ot({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,isCompactList:this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST",standardUnitMinWidth:(a=this.data)==null?void 0:a.minItemWidth}),this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST"&&(this.useCompactList=this.containerWidth<528);this.typographyBump=t.typographyBump;k=!1;if(J||this.elementsPerRow!==t.numItems||this.postsPerRow!==x||this.slimItemsPerRow!==P||this.gameCardsPerRow!==
p||this.miniGameCardsPerRow!==b||this.gutter!==t.gutter)k=this.elementsPerRow!==t.numItems,this.elementsPerRow=t.numItems,this.postsPerRow=x,this.slimItemsPerRow=P,this.gameCardsPerRow=p,this.miniGameCardsPerRow=b,this.gutter=t.gutter,this.itemWidth=t.itemWidth,this.reflowContent(c),_.V1(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":t.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(m);this.ytdReduxBehavior.dispatch(_.J7({type:"SET_RICH_GRID_CONTAINER_WIDTH",payload:t.maxContainerWidth}));return k};
_.V.refreshGridLayout=function(J,c){var m,b=(m=this.hostElement)==null?void 0:m.clientWidth;this.containerWidth=this.adjustRichGridWidth(b,!0);var x;if((x=this.data)==null||!x.contents||!this.containerWidth)return J&&(this.pendingForceReflow=!0),!1;this.pendingForceReflow&&!_.w("rg_pending_reflow_ks")&&(J=!0,this.pendingForceReflow=!1);m=this.getRichItemMinWidth(b);var P=this.isShortsPanel?146:194,p=this.getMiniGameCardMinWidth(),t=this.isShortsGridSlim?2:this.isShortsGrid||this.isCompactGrid?3:6;
b=m=this.calcElementsPerRow(m,t);(x=m<=3&&this.miniModeAllowed())&&(m=this.calcElementsPerRow(240,4));var I=this.calcMaxSlimElementsPerRow(m,t,this.isDefaultGrid);t=this.calcElementsPerRow(P,I);var a=this.calcElementsPerRow(this.isCompactGrid?P:154,I);P=this.calcElementsPerRow(this.isCompactGrid?P:p,I);p=!1;if(this.sizing)return this.refreshGridLayoutNew(J,c,x,{postsPerRow:b,slimItemsPerRow:t,gameCardsPerRow:a,miniGameCardsPerRow:P});if(J||this.elementsPerRow!==m||this.postsPerRow!==b||this.slimItemsPerRow!==
t||this.gameCardsPerRow!==a||this.miniGameCardsPerRow!==P)p=this.elementsPerRow!==m,this.elementsPerRow=m,this.postsPerRow=b,this.slimItemsPerRow=t,this.gameCardsPerRow=a,this.miniGameCardsPerRow=P,this.reflowContent(c),this.updateElementsPerRow(),_.V1(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)&&_.V1(this.hostElement,{"--ytd-rich-grid-shorts-item-margin":this.slimItemsPerRow<4?"1px":"4px"});this.updateMiniMode(x);_.bJ(this.hostElement,"yt-rich-grid-layout-refreshed");return p};
_.V.getRichItemMinWidth=function(J){var c=_.c7("rich_grid_min_item_width",310);if(!_.w("kevlar_disable_min_width_override")){var m,b;c=(b=(m=this.data)==null?void 0:m.minItemWidth)!=null?b:c}return c+_.e7D(J)};
_.V.calcMaxSlimElementsPerRow=function(J,c,m){return(m===void 0?0:m)?J===1?2:J%2===0?_.w("web_shorts_2_by_3_reduce_items_per_row")&&J>=4?J/2*3-1:J/2*3:_.w("web_shorts_2_by_3_reduce_items_per_row")&&J>=3?J+1:J+2:c*2};
_.V.adjustRichGridWidth=function(J,c){var m=_.w("disable_rich_grid_guide_compensation");if(!this.isWatch&&!m){m=_.BG().resolve(_.y6(_.Ux));var b=m==null?void 0:m.guideElement;if(!(!m||m.getData()||b!=null&&b.opened||m.getMiniGuideVisible()))if(m.canFitPersistentGuide(J)&&m.getGuideExpandsAutomatically()){var x,P,p=Number((x=window.getComputedStyle(this.hostElement))==null?void 0:(P=x.getPropertyValue("--app-drawer-width"))==null?void 0:P.replace("px",""));J-=p||0}else if(m.canFitMiniGuide(J)){var t;
x=Number((p=window.getComputedStyle(this.hostElement))==null?void 0:(t=p.getPropertyValue("--ytd-mini-guide-width"))==null?void 0:t.replace("px",""));J-=x||0}}J>600&&(this.isShortsGrid||this.isShortsGridSlim||this.isCompactGrid||(J-=c?32:48));return J};
_.V.calcElementsPerRow=function(J,c){var m=this.adjustRichGridWidth(this.hostElement.clientWidth,!1),b=this.isShortsPanel?2:this.isShortsGrid||this.isCompactGrid?4:16;return Math.min(Math.floor((m+b)/(J+b))||1,c)};
_.V.reflowContent=function(J){var c=this;if(!this.isReflowing){this.isReflowing=!0;var m,b,x=!!((m=this.data)==null?0:(b=m.contents)==null?0:b.some(function(r){return _.L(r,_.cH)}));
m=this.getItemsPerRow();var P;b=(P=this.data)==null?void 0:P.reflowOptions;J&&(_.Y2("rgr_s"),_.o3(this,function(){_.Y2("rgr_nrf")}));
J={};(P=_.Bj(this.hostElement).querySelector("#contents"))&&(J={contentElement:P,rendererToTagNameMap:this.rendererToTagNameMap});P=(P=this.data.contents)?P.slice():[];var p=(_.w("web_hide_gnome_behind_feed_filter_chip")||_.w("web_hide_gnome_until_user_navigates_back_to_home"))&&!this.showGnomeContents,t=_.w("web_hide_explore_hub_until_user_navigates_back_to_home")&&!this.showExploreHubContents,I=-1,a=-1;if(this.isHomePage&&t){for(t=0;t<P.length;t++){var k=void 0,H=void 0;_.L((k=P[t])==null?void 0:
(H=k.richSectionRenderer)==null?void 0:H.content,zye)&&(a=t)}a>-1&&(this.exploreHubContents=P.splice(a,1))}if(this.isHomePage&&p){for(a=0;a<P.length;a++)H=k=void 0,(t=_.L((k=P[a])==null?void 0:(H=k.richSectionRenderer)==null?void 0:H.content,_.Ls$))&&p&&(H=k=void 0,t=_.L((k=t)==null?void 0:(H=k.contents)==null?void 0:H[0],_.re),k=void 0,_.L((k=t)==null?void 0:k.content,_.WEu)&&(I=a));I>-1&&(this.gnomeContents=P.splice(I,1))}var T=C91(P,m,x,b,this.getRichGridStyle(),J,this.insertedContent);x=function(){c.shownItems=
T;c.isReflowing=!1};
this.shownItems.length===0?(this.shownItems=this.getFirstRowItems(T),_.o3(this,x)):x()}};
_.V.getFirstRowItems=function(J){for(var c=[],m=0;m<J.length;m++){var b=void 0,x=void 0,P=void 0,p=void 0,t=void 0,I=void 0;if(((b=J[m])==null?void 0:(x=b.richItemRenderer)==null?void 0:x.rowIndex)===0||((P=J[m])==null?void 0:(p=P.richGroupRenderer)==null?void 0:p.rowIndex)===0||((t=J[m])==null?void 0:(I=t.richSectionRenderer)==null?void 0:I.rowIndex)===0)c.push(J[m]);else break}return c};
_.V.getItemsPerRow=function(){return this.isShortsGrid||this.isCompactGrid?this.slimItemsPerRow:this.elementsPerRow};
_.V.handleChipCloudChipSelectAction=function(J,c){this.terminateVideoPreview();this.cachedContents||this.setCacheAndIsFilteredFeed();_.w("web_hide_gnome_behind_feed_filter_chip")&&(c?(this.showGnomeContents=!0,this.set("data.contents",this.gnomeContents)):this.showGnomeContents=!1)};
_.V.onReloadContinuationFinish=function(){this.data&&this.data.header&&Array.isArray(this.data.header)&&this.data.header.length>0&&(this.data.header=this.data.header[0]);_.w("enable_rich_grid_continuation_reflow_fix")||this.reflowContent();this.isShortsPanel||this.scrollUpToTop();this.ytRendererBehavior.markDirty()};
_.V.handleChipCloudChipDeselectAction=function(){this.terminateVideoPreview();_.w("web_hide_gnome_behind_feed_filter_chip")&&(this.showGnomeContents=!1);this.cachedContents&&(this.set("data.contents",this.cachedContents),this.resetCacheAndIsFilteredFeed(),this.reflowContent(),this.scrollUpToTop())};
_.V.terminateVideoPreview=function(){_.bJ(this.hostElement,"yt-terminate-video-preview-action")};
_.V.updateRichItemGridPositions=function(){var J={gridData:{gridColumnCount:this.elementsPerRow}},c;if((c=this.data)==null?0:c.trackingParams)this.loggingRefactor?_.C7().stateChanged(this.data.trackingParams,J):(c=_.Y3())&&_.on(c,_.n7(this.data.trackingParams),J);_.bJ(this.hostElement,"ytd-rich-item-index-update-action")};
_.V.miniModeAllowed=function(){return _.w("disable_channels_mini_mode")?!1:this.isChannelPage};
_.V.getMiniGameCardMinWidth=function(){return 154};
_.V.updateMiniMode=function(J){this.miniMode=this.miniModeAllowed()&&J;this.ytdReduxBehavior.dispatch(_.J7({type:"SET_RICH_GRID_MINI_MODE",payload:J}))};
_.V.isCurrentPage=function(){return location.pathname===this.pagePath};
_.V.scrollUpToTop=function(){if(!this.isChannelPage&&!this.isWatch){var J=_.BG().resolve(_.oO).getCurrentPage();J&&J.setScrollTop(0)}};
_.V.setCacheAndIsFilteredFeed=function(){this.cachedContents=this.get("contents",this.data);this.isFilteredFeed=!0};
_.V.resetCacheAndIsFilteredFeed=function(){this.cachedContents=void 0;this.isFilteredFeed=!1};
_.V.maybeSetBigYoodle=function(){var J,c=(J=this.data)==null?void 0:J.bigYoodle;this.bigYoodleData!==c&&(this.bigYoodleData=c)};
_.V.setMasthead=function(){var J;((J=this.data)==null?0:J.masthead)?this.mastheadData=this.data.masthead:_.w("disable_cached_masthead_data")&&(this.mastheadData=void 0)};
_.V.getRichGridStyle=function(){var J,c;return(c=(J=this.data)==null?void 0:J.style)!=null?c:"RICH_GRID_STYLE_UNKNOWN"};
_.V.onIsShortsGridChange=function(){var J=this.ytdReduxBehavior,c=J.dispatch,m=this.getRichGridStyle();c.call(J,_.J7({type:"SET_RICH_GRID_STYLE",payload:m}))};
_.eE.Object.defineProperties(nT.prototype,{entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var J;return((J=this.data)==null?void 0:J.entitySelectorType)||"RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
isSub:{configurable:!0,enumerable:!0,get:function(){var J;return(((J=this.data)==null?void 0:J.targetId)||"")==="browse-feedFEsubscriptions_shorts"}},
isWatch:{configurable:!0,enumerable:!0,get:function(){var J;return(((J=this.data)==null?void 0:J.targetId)||"")==="watch-next-feed"}},
isShortsPanel:{configurable:!0,enumerable:!0,get:function(){var J=_.BG().resolve(_.oO).getCurrentPage(),c,m,b;return(((c=this.data)==null?void 0:c.targetId)==="browse-feedFEsfv_audio_pivot"||_.w("web_enable_channel_pivot_panel")&&((m=this.data)==null?void 0:m.targetId)==="browse-feedFEsfv_channel_pivot"||_.w("web_enable_effect_pivot_panel")&&((b=this.data)==null?void 0:b.targetId)==="browse-feedFEsfv_effect_pivot")&&(J==null?void 0:J.pageSubtype)==="shorts"}},
reducedTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.w("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 J;return!((J=this.data)==null?0:J.header)}},
isChannelPage:{configurable:!0,enumerable:!0,get:function(){var J;return((J=_.BG().resolve(_.oO).getCurrentPage())==null?void 0:J.pageSubtype)==="channels"}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var J;return((J=_.BG().resolve(_.oO).getCurrentPage())==null?void 0:J.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 J;return this.hideChipsBar||(((J=this.data)==null?void 0:J.targetId)||"")==="browse-feedFEwhat_to_watch"&&_.w("kevlar_hide_chips_on_home")}},
hideChipsBarOnWatch:{configurable:!0,enumerable:!0,get:function(){var J;return(((J=this.data)==null?void 0:J.targetId)||"")==="watch-next-feed"&&!_.w("swatcheroo_disable_chips")}},
force16By9ThumbnailAspectRatio:{configurable:!0,enumerable:!0,get:function(){var J,c,m;return((J=this.data)==null?0:J.enableContentSpecificAspectRatio)||((c=this.data)==null?0:(m=c.responsiveContainerConfiguration)==null?0:m.enableContentSpecificAspectRatio)?!1:!0}},
continuationTriggerOffset:{configurable:!0,enumerable:!0,get:function(){return this.isHomePage?_.c7("web_continuation_handler_margin",0):0}}});
nT.prototype.onIsShortsGridChange=nT.prototype.onIsShortsGridChange;nT.prototype.onReloadContinuationFinish=nT.prototype.onReloadContinuationFinish;nT.prototype.reflowContent=nT.prototype.reflowContent;nT.prototype.handleRerenderDownloadsData=nT.prototype.handleRerenderDownloadsData;nT.prototype.onRichShelfRendererCollapse=nT.prototype.onRichShelfRendererCollapse;nT.prototype.onRequestElementsPerRow=nT.prototype.onRequestElementsPerRow;nT.prototype.contentLengthChanged=nT.prototype.contentLengthChanged;
nT.prototype.dataChanged=nT.prototype.dataChanged;nT.prototype.onSizingChange=nT.prototype.onSizingChange;nT.prototype.onUseCompactListChange=nT.prototype.onUseCompactListChange;_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],nT.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],nT.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.rI),_.R("design:type",Object)],nT.prototype,"ironResizableBehavior",void 0);
_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],nT.prototype,"actionHandlerBehavior",void 0);_.O([_.f(_.Sy),_.R("design:type",Object)],nT.prototype,"ytContinuationHandlerBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],nT.prototype,"componentBehavior",void 0);_.O([_.f(_.fY),_.R("design:type",Object)],nT.prototype,"ytdReduxBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],nT.prototype,"data",void 0);
_.O([_.U({reflectToAttribute:!0,selector:_.DZ}),_.R("design:type",Boolean)],nT.prototype,"miniMode",void 0);_.O([_.U({value:[]}),_.R("design:type",Array)],nT.prototype,"shownItems",void 0);_.O([_.U({value:!1}),_.R("design:type",Boolean)],nT.prototype,"isReflowing",void 0);_.O([_.U({value:!1}),_.R("design:type",Boolean)],nT.prototype,"isFilteredFeed",void 0);_.O([_.U({selector:_.tGG}),_.R("design:type",Boolean)],nT.prototype,"guideIsExpanded",void 0);
_.O([_.U({selectorArgs:["entitySelectorType"],selector:function(J,c){if(_.w("kevlar_modern_downloads_page")&&c&&c!=="RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(c){case "RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS":var m=J.entities;c=_.rf(m);var b=_.sG(m),x=_.fAG(J),P=_.uIe(J);J=_.YPu(J);var p=_.mZD(m),t=_.H2(c);m=_.Lk(m);return _.fUD(c,b,p,x,P,t,m,J);case "RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS":return c=_.rf(J.entities),_.XV3(c);case "RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS":return c=
_.BIJ(J.entities),_.ZpG(c);default:_.qz(new _.w3("Error: entitySelectorType defined but not matched in selector.",J,c))}}}),
_.R("design:type",Object)],nT.prototype,"entityDrivenRichGridData",void 0);_.O([_.U(),_.R("design:type",Object)],nT.prototype,"resizeOnObserverInit",void 0);_.O([_.U(),_.R("design:type",Object)],nT.prototype,"bigYoodleData",void 0);_.O([_.U(),_.R("design:type",Object)],nT.prototype,"mastheadData",void 0);_.O([_.U(),_.R("design:type",Boolean)],nT.prototype,"isInlinePreviewDisabled",void 0);_.O([_.U(),_.R("design:type",Object)],nT.prototype,"disableStickyFilterBar",void 0);
_.O([_.U(),_.R("design:type",Object)],nT.prototype,"transparentBackgroundChipsBar",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],nT.prototype,"hideChipsBar",void 0);_.O([_.U(),_.R("design:type",Object)],nT.prototype,"isWatchDefaultLayout",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],nT.prototype,"continuationShowButton",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],nT.prototype,"rowReducedHorizontalMargin",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],nT.prototype,"useCompactList",void 0);_.O([_.U({selector:function(J){return _.sG(J.entities).length>0}}),
_.R("design:type",Object)],nT.prototype,"manualDownloadsPresent",void 0);_.O([_.U({selector:function(J){return _.rf(J.entities).length>0}}),
_.R("design:type",Object)],nT.prototype,"smartDownloadsPresent",void 0);_.O([_.U({selector:_.uIe}),_.R("design:type",Object)],nT.prototype,"shouldRenderDownloadsBanner",void 0);_.O([_.U({selector:_.fAG}),_.R("design:type",Object)],nT.prototype,"hasOptedIntoSmartDownloads",void 0);_.O([_.NE("useCompactList"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],nT.prototype,"onUseCompactListChange",null);
_.O([_.NE("sizing","typographyBump"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],nT.prototype,"onSizingChange",null);_.O([_.U({selector:_.k3T}),_.R("design:type",Number)],nT.prototype,"miniplayerPlaybackState",void 0);_.O([_.U({selector:_.z2}),_.R("design:type",Boolean)],nT.prototype,"miniplayerIsActive",void 0);
_.O([_.U({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.R("design:type",Boolean)],nT.prototype,"isInlinePreviewEnabled",void 0);_.O([_.U({computed:"computeSizing(data, useCompactList, miniMode, isShortsGrid, isSlimGrid, isCompactGrid, isShortsPanel)"}),_.R("design:type",String)],nT.prototype,"sizing",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],nT.prototype,"elementsPerRow",void 0);
_.O([_.U(),_.R("design:type",Object)],nT.prototype,"typographyBump",void 0);_.O([_.U(),_.R("design:type",Number)],nT.prototype,"itemWidth",void 0);_.O([_.Iu("#header"),_.R("design:type",HTMLElement)],nT.prototype,"headerElement",void 0);_.O([_.Iu("#contents"),_.R("design:type",HTMLElement)],nT.prototype,"contentsElement",void 0);_.O([_.kr("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],nT.prototype,"dataChanged",null);
_.O([_.kr("data.contents.length"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],nT.prototype,"contentLengthChanged",null);_.O([_.ps("yt-request-elements-per-row"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],nT.prototype,"onRequestElementsPerRow",null);
_.O([_.ps("yt-rich-shelf-renderer-collapse"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],nT.prototype,"onRichShelfRendererCollapse",null);_.O([_.kr("shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","manualDownloadsPresent","smartDownloadsPresent"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],nT.prototype,"handleRerenderDownloadsData",null);
_.O([_.q("data"),_.R("design:type",String),_.R("design:paramtypes",[])],nT.prototype,"entitySelectorType",null);_.O([_.U({reflectToAttribute:!0}),_.q("data.targetId"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],nT.prototype,"isSub",null);_.O([_.U({reflectToAttribute:!0}),_.q("data.targetId"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],nT.prototype,"isWatch",null);
_.O([_.U({reflectToAttribute:!0}),_.q("data.targetId"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],nT.prototype,"isShortsPanel",null);_.O([_.U({reflectToAttribute:!0}),_.q("isWatch"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],nT.prototype,"reducedTopMargin",null);_.O([_.U({reflectToAttribute:!0}),_.q("data","isWatch","isWatchDefaultLayout"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],nT.prototype,"noTopMargin",null);
_.O([_.U({reflectToAttribute:!0}),_.q("isInlinePreviewEnabled","shownItems"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],nT.prototype,"topRowEndorsement",null);_.O([_.q("data.header"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],nT.prototype,"hideHeader",null);_.O([_.ps("yt-rich-grid-reflow"),_.R("design:type",Function),_.R("design:paramtypes",[Boolean]),_.R("design:returntype")],nT.prototype,"reflowContent",null);
_.O([_.ps("yt-reload-continuation-finish"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],nT.prototype,"onReloadContinuationFinish",null);_.O([_.q("data"),_.U({reflectToAttribute:!0}),_.R("design:type",Boolean),_.R("design:paramtypes",[])],nT.prototype,"isSlimGrid",null);_.O([_.q("data"),_.U({reflectToAttribute:!0}),_.R("design:type",Boolean),_.R("design:paramtypes",[])],nT.prototype,"isShortsGrid",null);
_.O([_.q("data","isSlimGrid","isShortsGrid"),_.U(),_.R("design:type",Boolean),_.R("design:paramtypes",[])],nT.prototype,"noRichItemGutterMargins",null);_.O([_.q("data"),_.U({reflectToAttribute:!0}),_.R("design:type",Boolean),_.R("design:paramtypes",[])],nT.prototype,"isShortsGridSlim",null);_.O([_.q("data"),_.U({reflectToAttribute:!0}),_.R("design:type",Boolean),_.R("design:paramtypes",[])],nT.prototype,"isCompactGrid",null);
_.O([_.q("data"),_.U({reflectToAttribute:!0}),_.R("design:type",Boolean),_.R("design:paramtypes",[])],nT.prototype,"isDefaultGrid",null);_.O([_.q("data.targetId"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],nT.prototype,"hideChipsBarOnHome",null);_.O([_.q("data.targetId"),_.U({reflectToAttribute:!0}),_.R("design:type",Boolean),_.R("design:paramtypes",[])],nT.prototype,"hideChipsBarOnWatch",null);
_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],nT.prototype,"onIsShortsGridChange",null);_.O([_.q("data.enableContentSpecificAspectRatio"),_.U(),_.R("design:type",Boolean),_.R("design:paramtypes",[])],nT.prototype,"force16By9ThumbnailAspectRatio",null);_.O([_.q("data"),_.R("design:type",Number),_.R("design:paramtypes",[])],nT.prototype,"continuationTriggerOffset",null);nT=_.O([_.E({is:"ytd-rich-grid-renderer",disableElementRegistration:!0})],nT);
_.v(nT,"ytd-rich-grid-renderer",function(){if(AhR!==void 0)return AhR;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return AhR=J},{mode:2});var mWR=_.Q1(function(J){var c=J.thumbsUp,m=J.thumbsDown,b=J.rightAlignThumbs;J=_.M(_.K2(!1,void 0,"FjNDrf"));var x=J.next().value,P=J.next().value;J=_.M(_.K2(!1,void 0,"Tphjfb"));var p=J.next().value,t=J.next().value;J={};return _.C("div",{class:_.pq("ytwThumbsUpDownThumbs",(J.ytwThumbsUpDownRightAlign=function(){return b==null?void 0:b()},J))},_.C(_.LK,{data:c,
onToggle:function(I){P(I);p()&&t(!1)},
buttonShapeOverrides:function(){return{toggled:x()}}}),_.C(_.LK,{data:m,
onToggle:function(I){t(I);x()&&P(!1)},
buttonShapeOverrides:function(){return{toggled:p()}}}))},"yi");
mWR.idomCompat=!0;var xWR=_.Q1(function(J){var c=function(){return J.data().pendingStateEntityKey||""},m=_.tT(_.rho,c),b=function(){var x;
if(!(x=J.disabled())){var P;x=!((P=m())==null||!P.isPendingResponse)}return x};
return _.C("you-chat-chips-data",{class:"ytwYouChatChipsDataHost"},_.C(_.Te,{each:function(){return J.data().chipData||[]},
keyBy:"REFERENCE"},function(x){return _.C(bDF,{data:x,disabled:b,pendingStateKey:c,onError:J.onError})}))},"zi"),bDF=_.Q1(function(J){var c=_.oN("button"),m=_.M(_.K2(!0,void 0,"HBREAe")),b=m.next().value,x=m.next().value,P=function(){return J.data().text.content},p=_.Kq(function(t){var I,a,k,H,T,r,W,Y;
return _.N(function(Z){switch(Z.nextAddress){case 1:t.stopPropagation();if(J.disabled())return Z.return();a=String(Math.floor(((I=_.b$())==null?void 0:I.getCurrentTime())||0)*1E3);k="youchat-"+Date.now();H=function(){_.ql(J.data().onClick||{});var d={continuationCommand:{token:J.data().continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}},G={inputComposerFormData:{clientMessageId:k,playerOffsetMs:a}};return new Promise(function(e,A){_.ql(d,{form:{formData:G},commandController:{onSuccess:function(l,
y){e(y)},
onServerError:function(l,y){A(y.error)}}})})};
T=_.sdf(J.pendingStateKey());T(!0);_.pxR("#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);_.xL(Z,2);return _.K(Z,H(),4);case 4:_.EO(Z,3);break;case 2:r=_.NM(Z),(Y=(W=J).onError)==null||Y.call(W,r);case 3:T(!1),_.tD(Z)}})});
return _.C(_.n,{cond:b,then:function(){return _.C("div",{class:"ytwYouChatChipsDataChipWrapper"},_.C("button",{el:c,class:"ytwYouChatChipsDataChip","data-disabled":J.disabled,"on:click":p,tabindex:0},P))}})},"Ai");var VXp=_.Q1(function(J){var c=J.data;return _.C("yt-conversation-resource-view-model",{class:_.pq("ytConversationResourceViewModelHost","ytConversationResourceViewModelHostSectionList")},_.C(_.wi,{data:function(){var m,b;return((m=c().conversationResourceData)==null?void 0:(b=m.learningGuideData)==null?void 0:b.sections)||[]}},{expandableMetadataViewModel:function(m){return _.C(_.hjQ,{data:m.data})}}))},"Bi");
VXp.idomCompat=!0;var PZs=_.Q1(function(J){var c=function(){var A;return(A=J.data().text)==null?void 0:A.content},m=function(){var A,l;
return(A=J.data().webData)==null?void 0:(l=A.textResult)==null?void 0:l.content},b=_.BG().resolve(_.Ov),x=_.xM(),P=function(){return J.data().chatResponseStyle},p=function(){return!J.data().transparentBackground},t=function(){return J.data().rightAlignThumbs},I=function(){return{animationConfig:{autoplay:!1,
loop:!1,renderer:"svg",rendererSettings:{viewBoxSize:"12 0 48 48"},name:"YOUCHAT_ICON",path:J.data().animationUrl||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}}},a=function(){var A;
return J.data().webData||((A=J.data().text)==null?void 0:A.content)||J.data().videoResultsData||J.data().conversationResourceViewModel||J.data().quiz},k=function(){var A;
return(A=J.data().videoResultsData)==null?void 0:A.videoShelf},H=function(){var A;
return _.L(((A=J.data().videoResultsData)==null?void 0:A.videoShelf)||{},ZzR)},T=function(){var A;
return(A=J.data().webData)==null?void 0:A.sourcesShelf},r=function(){var A;
return _.L(((A=J.data().webData)==null?void 0:A.sourcesShelf)||{},ZzR)},W=function(){return _.L(J.data().conversationResourceViewModel||{},U$h)},Y=function(){return _.L(J.data().quiz||{},fVo)},Z=function(){return P()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"||P()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"?!1:J.data().thumbsDownViewModel&&J.data().thumbsUpViewModel},d=function(){return _.L(J.data().thumbsUpViewModel,_.sc)},G=function(){return _.L(J.data().thumbsDownViewModel,_.sc)};
_.WG(function(){requestAnimationFrame(function(){var A;(A=J.shouldAnimateIcon)!=null&&A.call(J)&&LHR(x.lottieEl)})});
var e={};return _.C("you-chat-item-view-model",{class:_.pq("ytwYouChatItemViewModelYouChatItemViewModel",(e.ytwYouChatItemViewModelHostNoPadding=function(){return!1},e)),
"data-target-id":function(){return J.data().id||""}},_.C(_.n,{cond:function(){return J.data().removeIcon?!1:a()},
then:function(){var A={};return _.C("div",{"aria-hidden":"true"},_.C(_.Nd,{className:_.pq("ytwYouChatItemViewModelIcon",(A.ytwYouChatItemViewModelRtl=b==="rtl",A.ytwYouChatItemViewModelHidden=function(){return!(J.data().hideIcon||P()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"||P()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"?0:a())},A)),
animationName:"YOUCHAT_ICON",data:I,animationRef:x}))}}),_.C(_.n,{cond:a,
then:function(){var A={};return _.C("div",{class:_.pq("ytwYouChatItemViewModelHost",(A.ytwYouChatItemViewModelChatResponseStyleMultiPartStart=function(){return P()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"},A.ytwYouChatItemViewModelChatResponseStyleMultiPartMiddle=function(){return P()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"},A.ytwYouChatItemViewModelChatResponseStyleMultiPartEnd=function(){return P()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"},A.ytwYouChatItemViewModelGradientBackground=p,A)),
role:"alert"},_.C(_.n,{cond:c,then:function(l){return _.C(_.fx,{text:l})}}),_.C(_.n,{cond:m,
then:function(l){return _.C(_.fx,{text:l})}}),_.C(_.n,{cond:k,
then:function(){return _.C("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.C(_.zT,{data:H,hasPeek:!0,disableArrows:!1,protectBackground:!0}))}}),_.C(_.n,{cond:T,
then:function(){return _.C("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.C(_.zT,{data:r,hasPeek:!0,disableArrows:!1}))}}),_.C(_.n,{cond:W,
then:function(){return _.C(VXp,{data:W})}}),_.C(_.n,{cond:Y,
then:function(){return _.C(_.UQu,{data:Y})}}),_.C(_.n,{cond:Z,
then:function(){return _.C(mWR,{thumbsUp:d,thumbsDown:G,rightAlignThumbs:t})}}))}}),_.C(_.n,{cond:function(){return J.data().chipsData},
then:function(A){return _.C(xWR,{data:A,disabled:J.pending,onError:J.onError})}}))},"Ci");
PZs.idomCompat={callbacks:{onError:!0,onSend:!0}};var MXS=_.Q1(function(J){var c=function(){return J.data().choiceSelectedText};
return _.C("yt-you-chat-user-turn",{class:"ytYouChatUserTurnHost"},_.C(_.n,{cond:c,then:function(){return _.C("div",{class:"ytYouChatUserTurnChoiceSelected"},_.C(_.j8,{text:c}))}}),_.C("div",{class:"ytYouChatUserTurnUserMessage"},function(){return J.data().text}))},"Di");var pn1=_.Q1(function(J){var c=_.M((0,_.aM6)(J.data)).next().value;return _.C("yt-item-section-renderer",{class:"ytItemSectionRendererHost","data-target-id":function(){return J.data().targetId||""}},_.C(_.wi,{data:function(){return J.data().header}},{chipBarViewModel:_.mQj}),_.C(_.wi,{data:function(){return c().contents}},{accordionViewModel:_.dQB,
alertBannerViewModel:_.NX$,chatLoadingViewModel:_.i3u,chatUserTurnViewModel:MXS,learningJourneyLoaderViewModel:_.qga,lockupViewModel:function(m){return _.C(_.g1,{data:m.data,className:"ytItemSectionRendererLockup",containerLayoutConfig:J.containerLayoutConfig,thumbnailFixedWidth:"200px"})},
youChatItemViewModel:function(m){return _.C(PZs,{data:m.data,pending:!1})}}))},"Ei");_.lv(_.Q1(function(J){var c=_.M((0,_.aM6)(J.data)).next().value,m=_.oN("yt-section-list-renderer"),b=_.M(_.K2(void 0,void 0,"rQpPgc")),x=b.next().value,P=b.next().value,p=function(){var t;return _.L((t=J.data().sectionListLayoutConfiguration)==null?void 0:t.layoutConfiguration,Xxr)};
_.uN(function(){var t,I=(t=m.value)==null?void 0:t.clientWidth;if(p()){t=p();var a=t.responsiveSize;I=I<528?"CONTAINER_SIZE_NARROW":I<1024?"CONTAINER_SIZE_MEDIUM":"CONTAINER_SIZE_WIDE";b:{var k=_.M(t.responsiveMap||[]);for(var H=k.next();!H.done;H=k.next())if(H=H.value,H.containerSize===I){k=H.containerType;break b}k=void 0}if(k&&a){b:{if(k==="CONTAINER_TYPE_VERTICAL_LIST")if(a==="RESPONSIVE_SIZE_STANDARD"){if(I!=="CONTAINER_SIZE_NARROW"){H="50%";break b}}else{H=I==="CONTAINER_SIZE_NARROW"?"50%":
"33.3%";break b}H=void 0}t={responsiveSize:a,containerSize:I,containerType:k,force16By9ThumbnailAspectRatio:!t.enableContentSpecificAspectRatio,contentPreviewWidth:H,fullbleed:(k==="CONTAINER_TYPE_VERTICAL_LIST"||k==="CONTAINER_TYPE_GRID")&&I==="CONTAINER_SIZE_NARROW"&&!1}}else t=void 0}else t=void 0;P(t)});
return _.C("yt-section-list-renderer",{class:_.pq("ytSectionListRendererHost",J.className),el:m,"data-target-id":function(){return J.data().targetId||""}},_.C(_.wi,{data:function(){return c().contents}},{itemSectionRenderer:function(t){return _.C(pn1,{data:t.data,
containerLayoutConfig:x})}}))},"Fi"),"yt-section-list-renderer",{props:{data:_.vt,
className:_.Fz}});var NkS;var tXh;var TJ=function(){return _.h.apply(this,arguments)||this};
_.D(TJ,_.h);_.O([_.U(),_.R("design:type",Object)],TJ.prototype,"data",void 0);TJ=_.O([_.uM({is:"yt-alert-renderer",disableElementRegistration:!0})],TJ);
_.v(TJ,"yt-alert-renderer",function(){if(tXh===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;NkS===void 0&&(NkS=document.createElement("template"));var b=NkS;m.call(c,b.content.cloneNode(!0),J.content.firstChild);tXh=J}J=tXh;return J},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.GRF=function(J,c){var m,b;c=c===void 0?{}:c;var x,P,p,t,I,a,k,H,T,r,W,Y;return _.N(function(Z){switch(Z.nextAddress){case 1:x=c;P=x.shouldWrap===void 0?!0:x.shouldWrap;p=x.skipTransitionTimeoutMs===void 0?300:x.skipTransitionTimeoutMs;t=x.beforeTransition;I=x.afterTransition;if(!P||!document.startViewTransition||document.visibilityState==="hidden")return Z.return(J());m=window.innerWidth;b=window.innerHeight;a=!1;(k=t)==null||k();_.xL(Z,2);H=document.startViewTransition(J);T=setTimeout(function(){H.skipTransition();
a=!0},p);
return _.K(Z,H.ready,4);case 4:return clearTimeout(T),_.K(Z,H.finished,5);case 5:clearTimeout(T);(r=I)==null||r();_.EO(Z,0);break;case 2:W=_.NM(Z),(Y=I)==null||Y(),W&&!a&&document.visibilityState!=="hidden"&&m===window.innerWidth&&b===window.innerHeight&&_.Xc(W),_.tD(Z)}})};
_.LD=function(){for(var J=Array(36),c=0,m,b=0;b<36;b++)b==8||b==13||b==18||b==23?J[b]="-":b==14?J[b]="4":(c<=2&&(c=33554432+Math.random()*16777216|0),m=c&15,c>>=4,J[b]=_.vrj[b==19?m&3|8:m]);return J.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 Elf=_.Oo(['<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>']),
vlR=_.f1j(Elf);vlR.setAttribute("style","display: none;");document.head.appendChild(vlR.content);_.Dm=_.ra2(function(J){var c=_.id("DIV");J&&(c.className=J);c.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";J=_.id("DIV");_.GDz(J,"200px","200px");c.appendChild(J);document.body.appendChild(c);J=c.offsetWidth-c.clientWidth;_.nc(c);return J});var OUs;var Aer;var Wn=function(){var J=_.h.apply(this,arguments)||this;J.icon=null;return J};
_.D(Wn,_.h);Wn.prototype.dismiss=function(){_.cA(this.hostElement,"yt-live-chat-error-message-dismiss")};
Wn.prototype.computeIcon=function(J){return J&&J.iconType?"yt-icons:"+J.iconType.toLowerCase():"yt-icons:close"};
_.O([_.U(),_.R("design:type",Object)],Wn.prototype,"data",void 0);_.O([_.U({computed:"computeIcon(data.icon)"}),_.R("design:type",Object)],Wn.prototype,"icon",void 0);Wn=_.O([_.uM({disableElementRegistration:!0,is:"yt-live-chat-error-message-renderer",noInjection:!0})],Wn);
_.v(Wn,"yt-live-chat-error-message-renderer",function(){if(Aer===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;OUs===void 0&&(OUs=document.createElement("template"));var b=OUs;m.call(c,b.content.cloneNode(!0),J.content.firstChild);Aer=J}J=Aer;return J},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});
}catch(e){_._DumpException(e)}
try{
var ipR,nFS,TEp,wVu,zRp,uqr,fU4,Yp5,XVe,W5,Zpr,qpF,zF,UVF,SpR,hRR,dVS,$Vo,Gsh,EF4,vFo,OpR,Ar4,RRR,oFu,QK1,eRu,jKe,FD4,lUR,yrs,BE4,um,gFe,JlF,clR,xNr,VVs,PtS,MVs,pqr,Nto,mNR,bjR,I9p,Kdp,CtR,a9R,kVs,tVo,ijF;ipR=function(J,c){return _.P2(J.entities,"timedMarkersListSyncEntity",c)};
nFS=function(J,c){return _.P2(J.entities,"liveReactionsDataEntity",c)};
TEp=function(J,c){J=_.P2(J.entities,"booleanEntity",c);return!(!J||!J.value)};
wVu=function(J,c){var m=_.Y3();m&&J&&_.$2(m,_.n7(J),c)};
_.rru=function(){_.w("web_watch_log_theater_mode")&&_.$W3("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED")};
_.sKf=function(J,c,m){if(!J.includes("START_TIME_PLACEHOLDER")||!J.includes("END_TIME_PLACEHOLDER"))return J;var b=new Date(0),x=new Date(0);b.setUTCMilliseconds(c);x.setUTCMilliseconds(m);return J.replace("START_TIME_PLACEHOLDER",_.df(b,7)).replace("END_TIME_PLACEHOLDER",_.df(x,7))};
_.LDu=function(J){return J.watch.isWatchActive};
_.DVR=function(J){return _.qx(J)||_.Uc(J)||_.ODQ(J)};
_.WDF=function(J){return!_.DVR(J)};
_.D6=function(J){return J.watch.watchScrollTop};
zRp=function(J){return J.watch.isLiveChatCollapsed};
uqr=function(J){return J.watch.openEngagementPanels};
fU4=function(J,c){return _.P2(J.entities,"booleanEntity",c)};
Yp5=function(){return function(J){_.AO(_.It("booleanEntity","chat_input_view_model_state",{key:"chat_input_view_model_state",value:J}))}};
XVe=function(J){switch(J){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}};
W5=function(J,c,m){var b=_.ZG(m);J&&c&&b&&J.getPlayerPromise().then(function(x){_.kPT(b)&&_.YH();(new _.kP(x)).executeCommand(b,c);_.w("continue_playback_on_desktop_companion_click")||x.pauseVideo()})};
Zpr=function(J){var c=_.ep(),m;if(m=_.$y("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var b;m=(b=m())==null?void 0:b.layoutId}else m=null;W5(c,m,J)};
qpF=function(J){var c=_.ep(),m;if(m=_.$y("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var b;m=(b=m())==null?void 0:b.layoutId}else m=null;W5(c,m,J)};
zF=function(J,c){var m=J<0?"-":"";J=Math.abs(J);var b=Math.floor(J/3600),x=Math.floor(J)%3600,P=Math.floor(x/60);x=Math.floor(x)%60;var p="";(c===void 0?0:c)&&(p="."+Math.round((J-Math.floor(J))*10));return b>0?m+b+":"+(P<10?"0"+P:""+P)+":"+(x<10?"0"+x:""+x)+p:m+P+":"+(x<10?"0"+x:""+x)+p};
UVF=function(J){var c=J.match(/[^0-9:\.]/g);if(c&&c.length>0)return null;J=J.split(":");if(J.length===0||J.length>3)return null;c=1;for(var m=0;J.length>0;){var b=J.pop();if(b===void 0)break;var x=Number(b);if(b===""||isNaN(x))return null;m+=x*c;c*=60}return m};
SpR=function(J,c,m,b){J=Math.max(m,J);c=Math.min(c,b-m);J+c>b?(m=b,J=m-c):m=J+c;return{start:J,end:m}};
hRR=function(J,c,m,b,x,P){J<m?J=m:J+x>b&&(J=b-x);c>b&&(c=b);c=Math.min(J+P,Math.max(J+x,c));return{start:J,end:c}};
dVS=function(J,c,m,b,x,P){c>b?c=b:c-x<m&&(c=m+x);J<m&&(J=m);J=Math.min(c-x,Math.max(c-P,J));return{start:J,end:c}};
$Vo=function(J){return _.w("web_transcript_cue_id_killswitch")?String(J):"ytd-transcript-renderer_"+J};
Gsh=function(J){return _.w("web_transcript_cue_id_killswitch")?!0:J.startsWith("ytd-transcript-renderer")};
EF4=function(J){var c=_.ep(),m;if(m=_.$y("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var b;m=(b=m())==null?void 0:b.layoutId}else m=null;W5(c,m,J)};
vFo=function(J){J.style.height="auto";J.style.height=Math.min(J.scrollHeight||20,80)+"px"};
OpR=function(J,c){return{listMutationCommand:{operations:{operations:[{insertItemSectionContent:{contents:[{chatUserTurnViewModel:{text:c}}],insertByPositionInSection:{sectionTargetId:J,position:"INSERTION_POSITION_LAST"}}}]}}}};
Ar4=function(J){var c=_.ep(),m;m=(m=_.$y("yt.www.ads.eventcache.getLastCompanionData"))?(m=m())&&m.layoutId:null;W5(c,m,J)};
RRR=function(J){var c=_.ep(),m;m=(m=_.$y("yt.www.ads.eventcache.getLastCompanionData"))?(m=m())&&m.layoutId:null;W5(c,m,J)};
oFu=function(J,c){c=c===void 0?!1:c;if(J.simpleText)J=[{text:J.simpleText}];else{var m;J=((m=J.runs)!=null?m:[]).map(function(b){return Object.assign({},b)})}if(c)for(c=_.M(J),m=c.next();!m.done;m=c.next())m.value.bold=!0;
return J};
QK1=function(J){var c=J.startEndTimeTemplate,m=J.startTimeUtcMillis;J=J.endTimeUtcMillis;if(c&&m&&J)return _.v2(_.sKf(_.OG(c),Number(m),Number(J)))};
eRu=function(J,c){var m,b,x=J==null?void 0:(m=J.viewCount)==null?void 0:(b=m.videoViewCountRenderer)==null?void 0:b.shortViewCount;if(!c&&x)return x;var P,p;return J==null?void 0:(P=J.viewCount)==null?void 0:(p=P.videoViewCountRenderer)==null?void 0:p.viewCount};
jKe=function(J,c){var m=J==null?void 0:J.relativeDateText;return!c&&m?[m,!0]:[J==null?void 0:J.dateText,!1]};
FD4=function(J,c,m,b,x){b=b===void 0?!0:b;x=x===void 0?"":x;var P=eRu(J,c),p=_.M(jKe(J,c)),t=p.next().value;p=p.next().value;c=c?J==null?void 0:J.sponsorsOnlyFirstTimeLongText:J==null?void 0:J.sponsorsOnlyFirstTimeShortText;var I=[];m&&P&&I.push(P);!m&&p||!t||I.push(t);J=[].concat(_.L6(I),[c,J==null?void 0:J.stationName,J==null?void 0:J.rating,J?QK1(J):void 0,J==null?void 0:J.upNextProgramText,J==null?void 0:J.superTitleLink]).filter(function(a){return!!a});
m={runs:[]};for(P=0;P<J.length;P++)m.runs.push.apply(m.runs,_.L6(oFu(J[P],b))),P<J.length-1&&m.runs.push({text:" "+x+" ",bold:b});return m};
lUR=function(J){if(J)return{runs:[{text:J,bold:!0}]}};
yrs=function(J){var c,m,b,x;if(J=J==null?void 0:(c=J.contents)==null?void 0:(m=c.twoColumnWatchNextResults)==null?void 0:(b=m.results)==null?void 0:(x=b.results)==null?void 0:x.contents){var P,p;return(p=(P=J.find(function(t){return!!t.videoPrimaryInfoRenderer}))==null?void 0:P.videoPrimaryInfoRenderer)==null?void 0:p.updatedMetadataEndpoint}};
BE4=function(J,c){var m;return(m=J.sourceConfigs)==null?void 0:m.find(function(b){return b.videoId===c})};
um=function(J){return J==="End of video"||J==="End of playlist"};
gFe=function(J){var c,m,b,x;return(c=J.getWatchNextResponse())==null?void 0:(m=c.contents)==null?void 0:(b=m.twoColumnWatchNextResults)==null?void 0:(x=b.playlist)==null?void 0:x.playlist};
JlF=function(J){var c,m,b,x,P,p;return(c=gFe(J))==null?void 0:(m=c.playlistButtons)==null?void 0:(b=m.menuRenderer)==null?void 0:(x=b.topLevelButtons)==null?void 0:(P=x[0])==null?void 0:(p=P.playlistLoopButtonRenderer)==null?void 0:p.playlistLoopStateEntityKey};
clR=function(J){var c=_.BG().resolve(_.zn),m;return(c=(m=_.L(c.getAutoplayEndpoint(),_.Rz))==null?void 0:m.playlistId)&&c===J};
xNr=function(J,c,m,b,x){function P(){_.ft.cancelJob(fm);var p=mNR(c,m/J.getPlaybackRate()),t=p.hours,I=p.minutes;p=(p.seconds*1E3||6E4)/J.getPlaybackRate();J.setVideoTimeLeft(bjR(t,I));b&&J.getPlayerState()!==0&&J.setSleepTimerTimeLeft(bjR(t,I,!0));(t>0||I>0)&&!x&&(fm=_.at(_.ft,P,p))}
_.ft.cancelJob(fm);fm=_.at(_.ft,P)};
VVs=function(J,c,m){function b(){_.ft.cancelJob(Yj);var x=mNR(c,m),P=x.hours;x=x.minutes;var p=6E4/J.getPlaybackRate();if(P>0||x>0)J.setSleepTimerTimeLeft(bjR(P,x,!0)),Yj=_.at(_.ft,b,p)}
_.ft.cancelJob(Yj);Yj=_.at(_.ft,b)};
PtS=function(J,c){var m=J.getVolume()/(c/500),b=function(x){_.ft.cancelJob(XC);var P=Math.floor(x-m);J.setVolume(P,!1);P>0&&(XC=_.at(_.ft,function(){b(P)},500))};
_.ft.cancelJob(XC);XC=_.at(_.ft,function(){b(J.getVolume())})};
MVs=function(J,c){_.ft.cancelJob(XC);c&&J.syncVolume()};
pqr=function(){var J={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.CX("SLEEP_TIMER_DISRUPTED")}}}}};_.BG().resolve(_.gu).resolveCommand(J)};
Nto=function(J){return(J.getDuration()-J.getProgressState().current)*1E3};
mNR=function(J,c){J=J+c-(0,_.y4)();if(J<=0)return{hours:0,minutes:0,seconds:0};var m=new tVo(0,0,0,0,0,0,J);J=m.getHours();c=m.getMinutes();m=m.getSeconds();m!==0&&c++;c!==0&&c%60===0&&(J++,c=0);return{hours:J,minutes:c,seconds:m}};
bjR=function(J,c,m){return J>0&&c>0?m?_.CX("TIME_LEFT_HOURS_MINUTES",{hours:J.toString(),minutes:c.toString()}):_.CX("TIME_HOURS_MINUTES",{hours:J.toString(),minutes:c.toString()}):J>0?m?_.an("TIME_LEFT_HOURS",J):_.an("TIME_HOURS",J):m?_.CX("TIME_LEFT_MINUTES",{minutes:c.toString()}):_.CX("TIME_MINUTES",{minutes:c.toString()})};
I9p=function(J,c){if(J.timelyActions)return J.timelyActions.find(function(m){var b;return((b=_.L(m,Z6))==null?void 0:b.cueRangeId)===c})};
Kdp=function(J){var c=["expflag","debug_forced_internalcountrycode","internalcountrycode"];_.gb(J);J.keyMap_.forEach(function(m,b){_.Aq(c,b)||this.remove(b)},J)};
CtR=function(J,c){J.reloadContinuationItemsCommandMatcher=c};
_.qT=function(J,c){J.insertBefore(c,J.childNodes[0]||null)};
a9R=function(J){if(J>=48&&J<=57||J>=96&&J<=106||J>=65&&J<=90||_.ms&&J==0)return!0;switch(J){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 _.ce;default:return!1}};
kVs=function(J){if(J.altKey&&!J.ctrlKey||J.metaKey||J.keyCode>=112&&J.keyCode<=123)return!1;if(a9R(J.keyCode))return!0;switch(J.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!_.ce;default:return J.keyCode<166||J.keyCode>183}};
tVo=function(J,c,m,b,x,P,p){this.date=typeof J==="number"?new Date(J,c||0,m||1,b||0,x||0,P||0,p||0):new Date(J&&J.getTime?J.getTime():_.lc())};
_.yv(tVo,_.a9);_.V=tVo.prototype;_.V.getHours=function(){return this.date.getHours()};
_.V.getMinutes=function(){return this.date.getMinutes()};
_.V.getSeconds=function(){return this.date.getSeconds()};
_.V.getMilliseconds=function(){return this.date.getMilliseconds()};
_.V.getUTCDay=function(){return this.date.getUTCDay()};
_.V.getUTCHours=function(){return this.date.getUTCHours()};
_.V.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.V.getUTCSeconds=function(){return this.date.getUTCSeconds()};
_.V.getUTCMilliseconds=function(){return this.date.getUTCMilliseconds()};
_.V.setHours=function(J){this.date.setHours(J)};
_.V.setMinutes=function(J){this.date.setMinutes(J)};
_.V.setSeconds=function(J){this.date.setSeconds(J)};
_.V.setMilliseconds=function(J){this.date.setMilliseconds(J)};
_.V.setUTCHours=function(J){this.date.setUTCHours(J)};
_.V.setUTCMinutes=function(J){this.date.setUTCMinutes(J)};
_.V.setUTCSeconds=function(J){this.date.setUTCSeconds(J)};
_.V.setUTCMilliseconds=function(J){this.date.setUTCMilliseconds(J)};
_.V.add=function(J){_.a9.prototype.add.call(this,J);J.hours&&this.setUTCHours(this.date.getUTCHours()+J.hours);J.minutes&&this.setUTCMinutes(this.date.getUTCMinutes()+J.minutes);J.seconds&&this.setUTCSeconds(this.date.getUTCSeconds()+J.seconds)};
_.V.JSC$9237_toIsoString=function(J){var c=_.a9.prototype.JSC$9237_toIsoString.call(this,J);return J?c+"T"+_.Fy(this.getHours(),2)+":"+_.Fy(this.getMinutes(),2)+":"+_.Fy(this.getSeconds(),2):c+"T"+_.Fy(this.getHours(),2)+_.Fy(this.getMinutes(),2)+_.Fy(this.getSeconds(),2)};
_.V.equals=function(J){return this.getTime()==J.getTime()};
_.V.toString=function(){return this.JSC$9237_toIsoString()};
_.V.clone=function(){var J=new tVo(this.date);J.firstDayOfWeek_=this.firstDayOfWeek_;J.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return J};
_.Hjf=function(J){return _.J7({type:"SET_IS_WATCH_NARROW_WIDTH",payload:{isWatchNarrowWidth:J}})};
ijF=new _.Q("imageTileRenderer");var nE5=new _.Q("adGridCardCollectionViewModel");var Ttf=new _.Q("carouselTitleViewModel");var wq1=new _.Q("ctaCarouselItemViewModel");var rlp=new _.Q("textFieldViewModel");_.sB1=new _.Q("engagementPanelHeaderShowNavigationButtonCommand");var Ld1=new _.Q("hideEngagementPanelScrimAction");var DNe=new _.Q("setActivePanelItemAction");var Wdf=new _.Q("showEngagementPanelScrimAction");var zHf=new _.Q("updateEngagementPanelAction");var uOp=new _.Q("updateSearchInVideoResultsAction");var f9f=new _.Q("transcriptCueGroupRenderer");var YrR=new _.Q("transcriptCueRenderer");var Xqp=new _.Q("transcriptFooterRenderer");var Zjs=new _.Q("engagementPanelAdSubtitleRenderer");var qr5=new _.Q("videoDescriptionFantasySectionViewModel");var UNs=new _.Q("deleteClipEngagementPanelCommand");var SrS=new _.Q("loopCommand");var hHS=new _.Q("changeCreatorEndscreenVisibilityCommand");var dNs=new _.Q("liveChatCallForQuestionsRenderer");var $NR=new _.Q("updateTimedMarkersSyncObserverCommand");var Z6=new _.Q("timelyActionViewModel");var GVR=new _.Q("timelyActionsOverlayViewModel");var EEu=new _.Q("repeatChapterCommand");var vEs=new _.Q("watchPlayerOverflowMenuCommand");var Ojf=new _.Q("compositeVideoOverlayRenderer");var Alu=new _.Q("sortFilterSubMenuRenderer");var RHf=new _.Q("switchListItemViewModel");var oEf=new _.Q("inputComposerViewModel");var QBR=new _.Q("transcriptEditSegmentCommand");var eHs=new _.Q("transcriptUpdateSegmentTextCommand");var jBf=new _.Q("transcriptSearchBoxRenderer");var Fdu=new _.Q("transcriptSegmentListRenderer");var l9R=new _.Q("transcriptSegmentRenderer");_.ylf=new _.Q("updateDateTextAction");var BtR=new _.Q("updateTitleAction");var gE5=new _.Q("updateViewershipAction");var JwR=new _.Q("carouselLockupRenderer");var cwu=new _.Q("expandableVideoDescriptionBodyRenderer");var m1h=new _.Q("videoDescriptionYouchatSectionViewModel");_.UJ=_.c7("kevlar_watch_page_horizontal_margin",24);_.bf1=_.c7("kevlar_watch_page_columns_top_padding",24);_.x1h=426+_.UJ*2;_.S0=_.c7("kevlar_watch_two_column_width_threshold",1E3);_.VIR=_.UJ*2;_.PSp=_.c7("kevlar_watch_secondary_width",402);_.MI1=_.c7("kevlar_watch_max_player_width",1280);_.pvR=_.c7("kevlar_watch_flexy_metadata_height",136);_.NZf=_.VIR+310+_.UJ;_.tIr=_.VIR+360+_.UJ;var Iz4={PAUSE_CHAT:18};var Khp;var CSR;var hB=function(){return _.h.apply(this,arguments)||this};
_.D(hB,_.h);hB.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
hB.prototype.onEnabledChange=function(){if(this.data&&this.data.button){var J=_.L(this.data.button,_.ri);J&&(J.state=this.enabled?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",this.data=Object.assign({},this.data))}};
_.eE.Object.defineProperties(hB,{template:{configurable:!0,enumerable:!0,get:function(){if(CSR===void 0){var J=document.createElement("template");_.z(J,'\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>');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);var c=J.content,m=c.insertBefore;Khp===void 0&&(Khp=document.createElement("template"));var b=Khp;m.call(c,b.content.cloneNode(!0),J.content.firstChild);CSR=J}J=CSR;return J}}});
_.O([_.f(_.XL),_.R("design:type",Object)],hB.prototype,"ytLiveChatReduxBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],hB.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U({selectorArgs:["data.enabledEntityKey"],selector:TEp,observer:"onEnabledChange"}),_.R("design:type",Boolean)],hB.prototype,"enabled",void 0);_.O([_.U(),_.R("design:type",Object)],hB.prototype,"data",void 0);hB=_.O([_.uM({is:"yt-disableable-button-view-model",noInjection:!0})],hB);var azF;var kxs;var Hf1=["transVert01","transVert02","transVert03"],ifF="transHorizLeft01 transHorizRight01 transHorizLeft02 transHorizRight02 transHorizLeft03 transHorizRight03 transHorizLeft04 transHorizRight04".split(" "),dh=function(){var J=_.h.apply(this,arguments)||this;J.emojiManager=_.Xh;J.isDarkTheme=document.documentElement.hasAttribute("dark");J.actionMap={"yt-create-user-reaction-animation":"createUserReactionAnimation"};J.reactionBuckets=[];J.noEmojiIdentifier="NO_EMOJI";return J};
_.D(dh,_.h);_.V=dh.prototype;_.V.isActiveChanged=function(){this.isActive||this.cleanupFountain()};
_.V.desktopFountainEmojiSizePxChanged=function(){_.V1(this.hostElement,{"--emoji-size":this.desktopFountainEmojiSizePx+"px"})};
_.V.createUserReactionAnimation=function(J){this.createEmojiAnimation(J,!0)};
_.V.cleanupFountain=function(){clearTimeout(this.emojiBucketTimerId);clearTimeout(this.emojiAnimationTimerId);var J;((J=this.data)==null?0:J.emojiFountainDataEntityKey)&&this.ytLiveChatReduxBehavior.dispatch(_.It("emojiFountainDataEntity",this.data.emojiFountainDataEntityKey,{}));[].concat(_.L6(this.emojiContainer.children)).forEach(function(c){c.remove()})};
_.V.detached=function(){this.cleanupFountain()};
_.V.onEmojiFountainDataEntityUpdate=function(){if(this.isActive){clearTimeout(this.emojiBucketTimerId);var J;this.reactionBuckets=_.Lw.unsafeClone((J=this.emojiFountainData)==null?void 0:J.reactionBuckets)||[];this.processEmojiBucket(0)}};
_.V.processEmojiBucket=function(J){var c=this;if(this.reactionBuckets&&!(J>=this.reactionBuckets.length)){clearTimeout(this.emojiAnimationTimerId);var m=this.reactionBuckets[J];this.generateEmojiAnimations(m);if(J<this.reactionBuckets.length-1){var b;if(m==null?0:(b=m.duration)==null?0:b.seconds)this.emojiBucketTimerId=setTimeout(function(){c.processEmojiBucket(J+1)},Number(m.duration.seconds)*1E3)}}};
_.V.generateEmojiAnimations=function(J){var c=this,m=this.getRandomEmojiIdFromBucketWithOverride(J);if(m&&m!==this.noEmojiIdentifier){var b=0;J.targetEps?(b=this.linearInterpolateBounded(1,20,100,12,J.emojiSizeIndex||0),this.createEmojiAnimation(m,!1,J.emojiAnimationMs,b),b=this.getEmojiDelayMsFromTargetEps(J.targetEps)):(this.createEmojiAnimation(m),b=this.getEmojiDelayMsFromDistribution(J.intensityScore));this.emojiAnimationTimerId=setTimeout(function(){c.generateEmojiAnimations(J)},b)}};
_.V.getRandomEmojiIdFromBucketWithOverride=function(J){if(!(J&&J.reactionsData&&J.reactionsData.length&&J.totalReactions))return this.noEmojiIdentifier;for(var c=J.totalReactions,m=1,b=_.M(J.reactionsData),x=b.next();!x.done;x=b.next())x=x.value,(x.reactionWeightOverride||x.reactionWeightOverride===0)&&x.reactionCount&&(c-=x.reactionCount,m-=x.reactionWeightOverride);b=!0;m<0&&(b=!1,c=J.totalReactions,m=1);if(b&&m>0&&c===0)if(m===1){x=0;for(var P=_.M(J.reactionsData),p=P.next();!p.done;p=P.next())p=
p.value,p.reactionCount&&p.reactionCount>0&&x++;x=1/x;P=_.M(J.reactionsData);for(p=P.next();!p.done;p=P.next())p.value.reactionWeightOverride=x}else for(x=1/(1-m),P=_.M(J.reactionsData),p=P.next();!p.done;p=P.next())p=p.value,p.reactionWeightOverride&&(p.reactionWeightOverride*=x);x=Math.random();P=0;p=_.M(J.reactionsData);for(var t=p.next();!t.done;t=p.next())if(t=t.value,t.reactionCount&&(P=(t.reactionWeightOverride||t.reactionWeightOverride===0)&&b?P+t.reactionWeightOverride:P+m*t.reactionCount/
c,P>x&&(t.reactionCount--,J.totalReactions--,t=this.reactionItemToEmojiString(t),t!==this.noEmojiIdentifier)))return t;return this.noEmojiIdentifier};
_.V.reactionItemToEmojiString=function(J){if(J.unicodeEmojiId)return J.unicodeEmojiId;if(J.emoteId)return J.emoteId;if(J.videoReactionType)switch(J.videoReactionType){case "VIDEO_REACTION_TYPE_LIKE":return"yt-icons:like-filled"}return this.noEmojiIdentifier};
_.V.createEmojiAnimation=function(J,c,m,b){c=c===void 0?!1:c;this.lastEmojiRequestedForTesting=J;var x=J.startsWith("yt-icons:"),P=_.fo(this.emojiManager,J);if(P||x){var p=document.createElement("emoji");p.classList.add("yt-emoji-fountain-view-model");p.classList.add(Hf1[Math.floor(Math.random()*Hf1.length)]);var t=document.createElement("div");t.classList.add("yt-emoji-fountain-view-model");t.classList.add("horizontal-container");t.classList.add(ifF[Math.floor(Math.random()*ifF.length)]);c?(m=document.createElement("div"),
m.classList.add("user-reaction-bubble"),m.classList.add("yt-emoji-fountain-view-model"),t.appendChild(m)):(m&&(p.style.animationDuration=m+"ms",t.style.animationDuration=m+"ms"),b&&(p.style.width=b+"px",p.style.height=b+"px"));x?(x=document.createElement("yt-icon"),x.polymerController.icon=J,b&&(x.style.width=b+"px",x.style.height=b+"px"),J=x):J=this.emojiManager.createEmoji(P,!1);J.classList.add("yt-emoji-fountain-view-model");t.appendChild(J);p.appendChild(t);this.emojiContainer.appendChild(p);
p.addEventListener("animationend",function(){p.remove()});
var I,a;if((I=this.data)==null?0:(a=I.loggingDirectives)==null?0:a.trackingParams)c=c?_.rs(183501):_.rs(183500),wVu(this.data.loggingDirectives.trackingParams,c),_.L2u(c);setTimeout(function(){p&&p.remove()},2E3)}};
_.V.getEmojiDelayMsFromDistribution=function(J){return Math.random()*(J||1)*1E3};
_.V.getEmojiDelayMsFromTargetEps=function(J){return Math.random()*2*(1/J)*1E3};
_.V.linearInterpolateBounded=function(J,c,m,b,x){x=Math.min(Math.max(x,J),m);return(c*(m-x)+b*(x-J))/(m-J)};
dh.prototype.onEmojiFountainDataEntityUpdate=dh.prototype.onEmojiFountainDataEntityUpdate;dh.prototype.desktopFountainEmojiSizePxChanged=dh.prototype.desktopFountainEmojiSizePxChanged;dh.prototype.isActiveChanged=dh.prototype.isActiveChanged;_.O([_.U(),_.R("design:type",_.uH)],dh.prototype,"emojiManager",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],dh.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.XL),_.R("design:type",Object)],dh.prototype,"ytLiveChatReduxBehavior",void 0);
_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],dh.prototype,"ytActionHandlerBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],dh.prototype,"data",void 0);_.O([_.U({selectorArgs:["data.emojiFountainDataEntityKey"],selector:function(J,c){return _.P2(J.entities,"emojiFountainDataEntity",c)}}),
_.R("design:type",Object)],dh.prototype,"emojiFountainData",void 0);_.O([_.U(),_.R("design:type",Boolean)],dh.prototype,"isActive",void 0);_.O([_.NE("isActive"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],dh.prototype,"isActiveChanged",null);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],dh.prototype,"isDarkTheme",void 0);_.O([_.U(),_.R("design:type",String)],dh.prototype,"lastEmojiRequestedForTesting",void 0);
_.O([_.U({value:function(){return _.c7("desktop_fountain_emoji_size_px",20)}}),
_.R("design:type",Number)],dh.prototype,"desktopFountainEmojiSizePx",void 0);_.O([_.NE("desktopFountainEmojiSizePx"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],dh.prototype,"desktopFountainEmojiSizePxChanged",null);_.O([_.Iu("#emoji-container"),_.R("design:type",HTMLElement)],dh.prototype,"emojiContainer",void 0);
_.O([_.NE("emojiFountainData"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],dh.prototype,"onEmojiFountainDataEntityUpdate",null);dh=_.O([_.uM({disableElementRegistration:!0,is:"yt-emoji-fountain-view-model",noInjection:!0})],dh);
_.v(dh,"yt-emoji-fountain-view-model",function(){if(kxs===void 0){var J=document.createElement("template");_.z(J,'\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>');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;azF===void 0&&(azF=document.createElement("template"));var b=azF;m.call(c,b.content.cloneNode(!0),J.content.firstChild);kxs=J}J=kxs;return J},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var nwR;var TZR;var GF=function(){return _.h.apply(this,arguments)||this};
_.D(GF,_.h);GF.prototype.onChoiceChanged=function(){this.data&&_.V1(this.hostElement,{"--yt-live-chat-poll-choice-vote-bar-transform":"translateX("+(100*(this.data.voteRatio||0)-100+"%)")})};
GF.prototype.onChoiceChanged=GF.prototype.onChoiceChanged;_.O([_.U(),_.R("design:type",Object)],GF.prototype,"data",void 0);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],GF.prototype,"onChoiceChanged",null);GF=_.O([_.E({disableElementRegistration:!0,is:"yt-live-chat-banner-poll-choice"})],GF);
_.v(GF,"yt-live-chat-banner-poll-choice",function(){if(TZR===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;nwR===void 0&&(nwR=document.createElement("template"));var b=nwR;m.call(c,b.content.cloneNode(!0),J.content.firstChild);TZR=J}J=TZR;return J},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var wvs;var rwF;var EJ=function(){var J=_.h.apply(this,arguments)||this;J.modern=_.w("web_button_rework_with_live");J.small=!1;return J};
_.D(EJ,_.h);EJ.prototype.computeIsSmall=function(){var J;return((J=this.buttonOverrides)==null?void 0:J.size)==="S"};
EJ.prototype.computeId=function(){return this.data&&this.data.targetId};
_.O([_.f(_.ZO.YtLiveChatTooltipTargetingBehavior),_.R("design:type",Object)],EJ.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.O([_.U({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.R("design:type",String)],EJ.prototype,"id",void 0);_.O([_.U(),_.R("design:type",Object)],EJ.prototype,"buttonOverrides",void 0);_.O([_.U(),_.R("design:type",Object)],EJ.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],EJ.prototype,"modern",void 0);
_.O([_.U({reflectToAttribute:!0,computed:"computeIsSmall(buttonOverrides)"}),_.R("design:type",Object)],EJ.prototype,"small",void 0);EJ=_.O([_.E({disableElementRegistration:!0,is:"yt-live-chat-button"})],EJ);
_.v(EJ,"yt-live-chat-button",function(){if(rwF===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;wvs===void 0&&(wvs=document.createElement("template"));var b=wvs;m.call(c,b.content.cloneNode(!0),J.content.firstChild);rwF=J}J=rwF;return J},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var s8R;var Lhr;var v5=function(){var J=_.h.apply(this,arguments)||this;J.inCollapsedBanner=!1;J.buttonOverrides={size:"S",style:"mono-inverse",iconPosition:"icon-only"};J.questionButtonOverrides={style:"mono",type:"filled"};return J};
_.D(v5,_.h);_.V=v5.prototype;_.V.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]]"}}}}}};
_.V.onContextMenuButtonClick=function(J){this.ytLiveChatItemBehavior.showContextMenu(J)};
_.V.onYtRendererstamperFinished=function(){this.menuButton=_.Bj(this.hostElement).querySelector("#menu-button")};
_.V.dataChanged=function(){var J,c;if((c=_.L((J=this.data)==null?void 0:J.overflowMenuButton,_.ur))==null?0:c.command)this.data.contextMenuEndpoint=_.L(this.data.overflowMenuButton,_.ur).command};
_.V.onButtonClick=function(){var J,c=_.L((J=this.data)==null?void 0:J.askQuestionButton,_.ur);if(c){if(c.trackingParams&&(J=_.n7(c.trackingParams))){var m=_.Y3();m&&_.AS(m,J)}_.cA(this.hostElement,"innertube-command",c.command)}};
v5.prototype.onYtRendererstamperFinished=v5.prototype.onYtRendererstamperFinished;_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],v5.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.XL),_.R("design:type",Object)],v5.prototype,"ytLiveChatReduxBehavior",void 0);_.O([_.f(_.Zo.YtLiveChatItemBehavior),_.R("design:type",_.q7)],v5.prototype,"ytLiveChatItemBehavior",void 0);_.O([_.U({observer:"dataChanged"}),_.R("design:type",Object)],v5.prototype,"data",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],v5.prototype,"inCollapsedBanner",void 0);_.O([_.U(),_.R("design:type",Object)],v5.prototype,"buttonOverrides",void 0);_.O([_.U(),_.R("design:type",Object)],v5.prototype,"questionButtonOverrides",void 0);_.O([_.ps("yt-rendererstamper-finished"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],v5.prototype,"onYtRendererstamperFinished",null);
v5=_.O([_.E({disableElementRegistration:!0,is:"yt-live-chat-call-for-questions-renderer"})],v5);
_.v(v5,"yt-live-chat-call-for-questions-renderer",function(){if(Lhr===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;s8R===void 0&&(s8R=document.createElement("template"));var b=s8R;m.call(c,b.content.cloneNode(!0),J.content.firstChild);Lhr=J}J=Lhr;return J},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var D1r={};D1r.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 J=this;window.requestAnimationFrame(function(){J.restoreFocusNode_||(J.restoreFocusNode_=document.activeElement);var c=_.BpQ(J.hostElement);c.length&&c[c.length-1].focus()})},
isAttachedChanged_:function(J,c){J?this.focusChild_():c&&this.restoreFocus_()},
hiddenChanged_:function(){this.hidden?this.restoreFocus_():this.focusChild_()},
restoreFocus_:function(){this.restoreFocusNode_&&(this.restoreFocusNode_.focus(),this.restoreFocusNode_=null)},
onFocus_:function(J){this.hidden||_.OT(J).indexOf(this.hostElement)!==-1||(J.stopPropagation(),this.focusChild_())}};var Whu;var zzf;var OJ=function(){return _.h.apply(this,arguments)||this};
_.D(OJ,_.h);OJ.prototype.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm_button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.cancelButton":{id:"cancel_button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
OJ.prototype.onClick=function(J){J.target!==this.confirmButton&&J.target!==this.cancelButton&&(this.hidden=!0)};
_.O([_.Iu("#confirm_button"),_.R("design:type",Object)],OJ.prototype,"confirmButton",void 0);_.O([_.Iu("#cancel_button"),_.R("design:type",Object)],OJ.prototype,"cancelButton",void 0);_.O([_.U(),_.R("design:type",uj1)],OJ.prototype,"data",void 0);_.O([_.U({value:!0,reflectToAttribute:!0}),_.R("design:type",Boolean)],OJ.prototype,"hidden",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],OJ.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.f(D1r.YtLiveChatDialogBehavior),_.R("design:type",Object)],OJ.prototype,"ytLiveChatDialogBehavior",void 0);OJ=_.O([_.uM({disableElementRegistration:!0,is:"yt-live-chat-dialog-renderer",noInjection:!0})],OJ);
var uj1=_.v(OJ,"yt-live-chat-dialog-renderer",function(){if(zzf===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;Whu===void 0&&(Whu=document.createElement("template"));var b=Whu;m.call(c,b.content.cloneNode(!0),J.content.firstChild);zzf=J}J=zzf;return J},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var fzF;var YAe,Xvo=function(){if(YAe!==void 0)return YAe;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);var c=J.content,m=c.insertBefore;fzF===void 0&&(fzF=document.createElement("template"));var b=fzF;m.call(c,b.content.cloneNode(!0),J.content.firstChild);return YAe=J};var Zf5;var qAr;var AB=function(){var J=_.h.apply(this,arguments)||this;J.tooltip=null;J.data=null;J.id="";J.active=!1;J.icon="";J.disabled=!1;J.showTooltip=!1;J.useToggledActiveState=!0;J.actionMap={"yt-live-chat-actions":"handleLiveChatActions"};return J};
_.D(AB,_.h);_.V=AB.prototype;
_.V.dataChanged=function(){var J;((J=this.data)==null?0:J.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,_.xr)(this.tooltip).textContent=this.data.tooltip):this.tooltip&&(this.hostElement.removeChild(this.tooltip),this.tooltip=null);var c;if((c=this.data)==null?0:c.disabled)this.disabled=!0};
_.V.computeId=function(J){return J};
_.V.computeIcon=function(J,c){if(!J)return"";if(this.useToggledActiveState)return"yt-icons:"+J.toLowerCase();var m,b;return c&&((m=this.data)==null?0:(b=m.toggledIcon)==null?0:b.iconType)?"yt-icons:"+this.data.toggledIcon.iconType.toLowerCase():"yt-icons:"+J.toLowerCase()};
_.V.logPDGEntryPoint=function(){_.ygm(_.VS("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")};
_.V.immediatelyShowTooltip=function(){var J=_.Bj(this.hostElement).querySelector("#tooltip");J.animationDelay=0;J.animationConfig={entry:[{name:"fade-in-animation",timing:{}}]};J.show()};
_.V.disabledChanged=function(){this.disabled?this.hostElement.setAttribute("aria-disabled",""):this.hostElement.removeAttribute("aria-disabled")};
_.V.onClick=function(J){var c;((c=this.data)==null?0:c.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(),J.stopPropagation())),this.id!=="creator"&&this.id!=="product-picker"||this.removeBubble(),_.cA(this.hostElement,"yt-live-chat-icon-toggle-button-renderer-toggle",{targetId:this.id}))};
_.V.computeShowTooltip=function(J,c){return!!(J&&J.tooltip&&c)};
_.V.maybeUpdateTooltipText=function(){var J=this,c;if((c=this.data)==null?0:c.tooltip){var m=this.active&&this.data.activeTooltip?this.data.activeTooltip:this.data.tooltip;setTimeout(function(){(0,_.xr)(J.tooltip).textContent=m},250)}};
_.V.handleLiveChatActions=function(J){var c=this;J.length&&(this.id!=="creator"&&this.id!=="product-picker"||J.forEach(function(m){(m=c.get("addLiveChatTickerItemAction.item.liveChatTickerPaidMessageItemRenderer",m))&&m.durationSec===m.fullDurationSec&&c.startBubble(c.colorFromDecimal(m.startBackgroundColor))}))};
_.V.onAnimationEnd=function(){this.hostElement.removeAttribute("bubble")};
_.V.startBubble=function(J){_.V1(this.hostElement,{"--yt-live-chat-monetization-button-glow":J});this.hostElement.setAttribute("bubble","")};
_.V.removeBubble=function(){this.hostElement.removeAttribute("bubble")};
_.V.colorFromDecimal=function(J){typeof J==="string"&&(J=Number(J));return"rgba("+[J>>16&255,J>>8&255,J&255,(J>>24&255)/255].join()+")"};
AB.prototype.onAnimationEnd=AB.prototype.onAnimationEnd;AB.prototype.disabledChanged=AB.prototype.disabledChanged;AB.prototype.dataChanged=AB.prototype.dataChanged;_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],AB.prototype,"ytActionHandlerBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],AB.prototype,"ytRendererBehavior",void 0);
_.O([_.f(_.ZO.YtLiveChatTooltipTargetingBehavior),_.R("design:type",Object)],AB.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],AB.prototype,"data",void 0);_.O([_.U({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.R("design:type",Object)],AB.prototype,"id",void 0);_.O([_.U({notify:!0,reflectToAttribute:!0}),_.R("design:type",Object)],AB.prototype,"active",void 0);
_.O([_.U({readOnly:!0,computed:"computeIcon(data.icon.iconType, active)"}),_.R("design:type",Object)],AB.prototype,"icon",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],AB.prototype,"disabled",void 0);_.O([_.U({computed:"computeShowTooltip(data, disabled)"}),_.R("design:type",Object)],AB.prototype,"showTooltip",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],AB.prototype,"useToggledActiveState",void 0);
_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],AB.prototype,"dataChanged",null);_.O([_.NE("disabled"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],AB.prototype,"disabledChanged",null);_.O([_.ps("animationend"),_.R("design:type",Function),_.R("design:paramtypes",[Event]),_.R("design:returntype")],AB.prototype,"onAnimationEnd",null);
AB=_.O([_.uM({disableElementRegistration:!0,is:"yt-live-chat-icon-toggle-button-renderer",noInjection:!0})],AB);
_.v(AB,"yt-live-chat-icon-toggle-button-renderer",function(){if(qAr===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;Zf5===void 0&&(Zf5=document.createElement("template"));var b=Zf5;m.call(c,b.content.cloneNode(!0),J.content.firstChild);qAr=J}J=qAr;return J},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var U1R;var SAe;var RI=function(){return _.h.apply(this,arguments)||this};
_.D(RI,_.h);RI.prototype.configureRendererStamper=function(){return{"data.helpButton":{id:"help-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.O([_.U(),_.R("design:type",Object)],RI.prototype,"data",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],RI.prototype,"ytRendererstamperBehavior",void 0);RI=_.O([_.E({disableElementRegistration:!0,is:"yt-live-chat-message-input-prompt-header-renderer"})],RI);
_.v(RI,"yt-live-chat-message-input-prompt-header-renderer",function(){if(SAe===void 0){var J=document.createElement("template");_.z(J,'\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>');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;U1R===void 0&&(U1R=document.createElement("template"));var b=U1R;m.call(c,b.content.cloneNode(!0),J.content.firstChild);SAe=J}J=SAe;return J},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var hzR;var d1p;var $1F;var Gxr;var Ew4;var vwo;var oI=function(){return _.h.apply(this,arguments)||this};
_.D(oI,_.h);_.O([_.U(),_.R("design:type",Object)],oI.prototype,"data",void 0);oI=_.O([_.uM({disableElementRegistration:!0,is:"yt-live-chat-message-subtext-renderer",noInjection:!0})],oI);
_.v(oI,"yt-live-chat-message-subtext-renderer",function(){if(vwo===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;Ew4===void 0&&(Ew4=document.createElement("template"));var b=Ew4;m.call(c,b.content.cloneNode(!0),J.content.firstChild);vwo=J}J=vwo;return J},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var Qk=function(){var J=_.h.apply(this,arguments)||this;J.subtextOnBottom=!1;J.buttonOverrides={style:"mono",type:"tonal"};return J};
_.D(Qk,_.h);Qk.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},"data.subtext":{id:"subtext",mapping:{messageSubtextRenderer:"yt-live-chat-message-subtext-renderer"}}}};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Qk.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],Qk.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Qk.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Qk.prototype,"subtextOnBottom",void 0);_.O([_.U(),_.R("design:type",Object)],Qk.prototype,"buttonOverrides",void 0);
Qk=_.O([_.uM({disableElementRegistration:!0,is:"yt-live-chat-message-renderer",noInjection:!0})],Qk);
_.v(Qk,"yt-live-chat-message-renderer",function(){if(Gxr===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;$1F===void 0&&($1F=document.createElement("template"));var b=$1F;m.call(c,b.content.cloneNode(!0),J.content.firstChild);Gxr=J}J=Gxr;return J},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var Ofr;var Awh;var e0=function(){var J=_.h.apply(this,arguments)||this;J.isRemovable=!1;J.hasPrefilledText=!1;J.isInputDirty=!1;J.overCharacterLimit=!1;J.underCharacterLimit=!1;J.showErrorMessage=!1;return J};
_.D(e0,_.h);_.V=e0.prototype;_.V.computeId=function(){return this.data.id};
_.V.computeInputData=function(){return this.data.inputData};
_.V.computeHasPrefilledText=function(){return this.data.hasPrefilledText};
_.V.computeIsRemovable=function(){return!!this.data&&!!this.data.isRemovable};
_.V.computeShowErrorMessage=function(){return this.data&&this.data.charCountErrorText?this.overCharacterLimit||this.underCharacterLimit&&this.isInputDirty:!1};
_.V.getLiveChatRichMessageInput=function(){return _.Bj(this.hostElement).querySelector("#input").liveChatRichMessageInput};
_.V.clearInput=function(){_.Bj(this.hostElement).querySelector("#input").setLiveChatRichMessageInput(null)};
_.V.computeCharactersRemaining=function(){if(this.data&&this.data.maxCharacterLimit!==void 0&&this.characterCount!==void 0)return this.data.maxCharacterLimit-this.characterCount};
_.V.computeOverCharacterLimit=function(){return this.charactersRemaining!==void 0&&this.charactersRemaining<0};
_.V.computeUnderCharacterLimit=function(){return this.hasPrefilledText?!1:!!this.data&&this.characterCount!==void 0&&this.data.minCharacterLimit>this.characterCount};
_.V.handleTextInputCharCountChanged=function(J){J=J.detail&&J.detail.characterCount;J!==void 0&&(this.characterCount=J,J!==0&&(this.isInputDirty=!0))};
_.V.onInputFocusOut=function(){this.isInputDirty=!0};
_.V.onClickCloseButton=function(){_.cA(this.hostElement,"yt-live-chat-poll-editor-input-closed",{id:this.id})};
e0.prototype.handleTextInputCharCountChanged=e0.prototype.handleTextInputCharCountChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],e0.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],e0.prototype,"data",void 0);_.O([_.U({computed:"computeId(data.id)"}),_.R("design:type",String)],e0.prototype,"id",void 0);_.O([_.U({computed:"computeInputData(data.inputData)"}),_.R("design:type",Object)],e0.prototype,"inputData",void 0);
_.O([_.U({reflectToAttribute:!0,computed:"computeIsRemovable(data.isRemovable)"}),_.R("design:type",Object)],e0.prototype,"isRemovable",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeHasPrefilledText(data.hasPrefilledText)"}),_.R("design:type",Object)],e0.prototype,"hasPrefilledText",void 0);_.O([_.U({computed:"computeCharactersRemaining(data.maxCharacterLimit, characterCount)"}),_.R("design:type",Number)],e0.prototype,"charactersRemaining",void 0);
_.O([_.U(),_.R("design:type",Number)],e0.prototype,"characterCount",void 0);_.O([_.U(),_.R("design:type",Object)],e0.prototype,"isInputDirty",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeOverCharacterLimit(charactersRemaining)"}),_.R("design:type",Object)],e0.prototype,"overCharacterLimit",void 0);_.O([_.U({computed:"computeUnderCharacterLimit(data, characterCount, hasPrefilledText)"}),_.R("design:type",Object)],e0.prototype,"underCharacterLimit",void 0);
_.O([_.U({reflectToAttribute:!0,computed:"computeShowErrorMessage(data.charCountErrorText, overCharacterLimit, isInputDirty, characterCount)"}),_.R("design:type",Object)],e0.prototype,"showErrorMessage",void 0);_.O([_.ps("yt-live-chat-text-input-field-renderer-character-count-changed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],e0.prototype,"handleTextInputCharCountChanged",null);
e0=_.O([_.uM({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-input",noInjection:!0})],e0);
_.v(e0,"yt-live-chat-poll-editor-input",function(){if(Awh===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;Ofr===void 0&&(Ofr=document.createElement("template"));var b=Ofr;m.call(c,b.content.cloneNode(!0),J.content.firstChild);Awh=J}J=Awh;return J},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var Rz5;var owR;var Q81={minPollOptions:2,maxPollOptions:4,minPollOptionChars:1,maxPollOptionChars:35,maxPollQuestionChars:100,optionPlaceholderText:{simpleText:""},questionPlaceholderText:{simpleText:""},customOptionPlaceholderText:[],pollOptionData:{}},j0=function(){var J=_.h.apply(this,arguments)||this;J.modern=_.w("web_button_rework_with_live");J.closeButtonOverrides={iconPosition:"icon-only"};J.startButtonOverrides={style:"mono",type:"filled"};J.addOptionButtonOverrides={style:"mono",type:"text"};return J};
_.D(j0,_.h);_.V=j0.prototype;
_.V.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"}}}}};
_.V.dataChanged=function(){this.isValidPoll=this.getIsValidPoll();var J;_.L((J=this.data)==null?void 0:J.startButton,_.ur)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.V.computeId=function(){return this.data&&this.data.id||""};
_.V.computeOverQuestionCharacterLimit=function(){return this.pollEditorInfoWithDefaults?this.pollQuestionCharacterCount>this.pollEditorInfoWithDefaults.maxPollQuestionChars:!1};
_.V.computeCurrentNumPollOptions=function(){return this.pollOptionsData.length};
_.V.computeHasMaxNumPollOptions=function(){return!this.pollEditorInfoWithDefaults||this.currentNumPollOptions>=this.pollEditorInfoWithDefaults.maxPollOptions};
_.V.computeShowQuestionErrorMessage=function(){return!!this.pollEditorInfoWithDefaults&&this.overQuestionCharacterLimit&&!!this.pollEditorInfoWithDefaults.pollQuestionCharCountErrorText};
_.V.shouldInitializePollChanged=function(){if(this.shouldInitializePoll)for(var J=0;J<this.pollEditorInfoWithDefaults.minPollOptions;J++)this.addPollOptionData()};
_.V.getIsValidPoll=function(){var J=this;if(!this.pollEditorInfoWithDefaults)return!1;var c=this.pollEditorInfoWithDefaults,m=c.minPollOptionChars,b=c.maxPollOptionChars,x=c.customOptionPlaceholderText;if(this.pollQuestionCharacterCount>c.maxPollQuestionChars)return!1;c=_.Bj(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input");return Array.from(c).every(function(P,p){P=P.characterCount;!P&&x[p]&&(P=J.ytRendererBehavior.getSimpleString(x[p]).length);return P!==void 0&&P>=m&&P<=b})};
_.V.isValidPollChanged=function(){var J;_.L((J=this.data)==null?void 0:J.startButton,_.ur)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.V.addPollOptionData=function(){var J=this.pollEditorInfoWithDefaults,c=J.maxPollOptionChars,m=J.optionPlaceholderText,b=J.customOptionPlaceholderText,x=J.pollOptionData;this.currentNumPollOptions>=J.maxPollOptions||(J={liveChatPollOptionInput:{inputData:{placeholder:b[this.currentNumPollOptions]||m,maxCharacterLimit:c},maxCharacterLimit:c,minCharacterLimit:J.minPollOptionChars,hasPrefilledText:!!b[this.currentNumPollOptions],isRemovable:this.currentNumPollOptions>=J.minPollOptions}},x.charCountErrorText&&
(J.liveChatPollOptionInput.charCountErrorText=x.charCountErrorText),x.charsRemainingAltLabel&&(J.liveChatPollOptionInput.charsRemainingAltLabel=x.charsRemainingAltLabel),x.removeOptionAltText&&(J.liveChatPollOptionInput.removeOptionAltText=x.removeOptionAltText),this.push("pollOptionsData",J),x=Array.from(_.Bj(_.Bj(this.hostElement).querySelector("#poll-options")).children),x.forEach(function(P,p){P.polymerController.set("data.id",p)}),_.Bj(x[x.length-1]).querySelector("#input").focus())};
_.V.getPollOptionInputValues=function(){var J=this,c=[],m=_.Bj(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input"),b=this.get("data.pollEditorInfo.customOptionPlaceholderText")||[];Array.from(m).forEach(function(x,P){var p=null;x=x.getLiveChatRichMessageInput();var t;(x==null?0:(t=x.textSegments)==null?0:t.length)?p=_.ZL(x):b[P]&&(p=J.formattedStringToLiveChatRichMessageInput(b[P]));c.push(p)});
return c};
_.V.requestCreateAndStartPoll=function(J){var c=this.getPollOptionInputValues();if(!c.some(function(b){return!b})){c={optionText:c};
var m=_.Bj(_.Bj(this.hostElement).querySelector("#poll-question")).firstChild;m&&m.liveChatRichMessageInput&&(c.questionText=_.ZL(m.liveChatRichMessageInput));_.Vq(this.hostElement,[J,c])}};
_.V.selectedChanged=function(){if(this.selected){var J=_.Bj(_.Bj(this.hostElement).querySelector("#start-button")).firstElementChild;if(J){var c;(c=_.Bj(J).querySelector("#button")||_.gB(J).querySelector("button"))==null||c.focus()}}};
_.V.handleTextInputChanged=function(J){var c;((c=J.target)==null?void 0:c.id)==="poll-question-input"&&(this.pollQuestionCharacterCount=J.detail.characterCount);this.isValidPoll=this.getIsValidPoll()};
_.V.handleStartButtonAction=function(J){J.detail.actionName==="yt-service-request"&&(J.stopPropagation(),(J=J.detail.args[1])&&this.requestCreateAndStartPoll(J))};
_.V.handleServiceRequestSent=function(){this.createPollRequestInFlight=!0};
_.V.handleServiceRequestCompleted=function(J){this.createPollRequestInFlight=!1;(J=J.detail&&J.detail.data)&&J.success&&(_.cA(this.hostElement,"picker-cancelled"),_.m9(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels"))};
_.V.onCloseClick=function(){_.cA(this.hostElement,"picker-cancelled");_.m9(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.V.onAddOptionButtonClick=function(){this.addPollOptionData();this.isValidPoll=this.getIsValidPoll()};
_.V.handlePollEditorInputClosed=function(J){var c=this.pollOptionsData.findIndex(function(m){return m.liveChatPollOptionInput.id===J.detail.id});
this.splice("pollOptionsData",c,1);this.isValidPoll=this.getIsValidPoll()};
_.V.onPickerCancelled=function(){this.reset()};
_.V.reset=function(){if(this.pollEditorInfoWithDefaults){for(;this.currentNumPollOptions>this.pollEditorInfoWithDefaults.minPollOptions;)this.pop("pollOptionsData");var J=_.Bj(_.Bj(this.hostElement).querySelector("#poll-question")).firstChild;J&&J.setLiveChatRichMessageInput(null);if(J=_.Bj(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input")){J=_.M(Array.from(J));for(var c=J.next();!c.done;c=J.next())c.value.clearInput()}this.isValidPoll=this.getIsValidPoll()}};
_.V.formattedStringToLiveChatRichMessageInput=function(J){return J.simpleText?{text_segments:[J.simpleText]}:{text_segments:J.runs}};
_.eE.Object.defineProperties(j0.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(Q81,this.data.pollEditorInfo)}},
shouldInitializePoll:{configurable:!0,enumerable:!0,get:function(){return!!this.pollEditorInfoWithDefaults&&!this.pollOptionsData.length}}});
j0.prototype.onPickerCancelled=j0.prototype.onPickerCancelled;j0.prototype.handlePollEditorInputClosed=j0.prototype.handlePollEditorInputClosed;j0.prototype.handleServiceRequestCompleted=j0.prototype.handleServiceRequestCompleted;j0.prototype.handleServiceRequestSent=j0.prototype.handleServiceRequestSent;j0.prototype.handleTextInputChanged=j0.prototype.handleTextInputChanged;j0.prototype.selectedChanged=j0.prototype.selectedChanged;j0.prototype.isValidPollChanged=j0.prototype.isValidPollChanged;
j0.prototype.shouldInitializePollChanged=j0.prototype.shouldInitializePollChanged;j0.prototype.dataChanged=j0.prototype.dataChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],j0.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],j0.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],j0.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],j0.prototype,"modern",void 0);
_.O([_.U(),_.R("design:type",Object)],j0.prototype,"closeButtonOverrides",void 0);_.O([_.U(),_.R("design:type",Object)],j0.prototype,"startButtonOverrides",void 0);_.O([_.U(),_.R("design:type",Object)],j0.prototype,"addOptionButtonOverrides",void 0);_.O([_.U({computed:"computeId(data.id)",reflectToAttribute:!0}),_.R("design:type",String)],j0.prototype,"id",void 0);_.O([_.U({value:function(){return[]}}),
_.R("design:type",Array)],j0.prototype,"pollOptionsData",void 0);_.O([_.q("pollEditorInfoWithDefaults"),_.R("design:type",Object),_.R("design:paramtypes",[])],j0.prototype,"pollQuestionData",null);_.O([_.U({value:0}),_.R("design:type",Number)],j0.prototype,"pollQuestionCharacterCount",void 0);_.O([_.q("pollEditorInfoWithDefaults.maxPollQuestionChars","pollQuestionCharacterCount"),_.R("design:type",Object),_.R("design:paramtypes",[])],j0.prototype,"pollQuestionCharactersRemaining",null);
_.O([_.U({reflectToAttribute:!0,computed:"computeOverQuestionCharacterLimit(pollQuestionCharacterCount, pollEditorInfoWithDefaults)"}),_.R("design:type",Boolean)],j0.prototype,"overQuestionCharacterLimit",void 0);_.O([_.q("data.pollEditorInfo"),_.R("design:type",Object),_.R("design:paramtypes",[])],j0.prototype,"pollEditorInfoWithDefaults",null);_.O([_.U({computed:"computeCurrentNumPollOptions(pollOptionsData.splices)",value:0}),_.R("design:type",Number)],j0.prototype,"currentNumPollOptions",void 0);
_.O([_.U({computed:"computeHasMaxNumPollOptions(pollEditorInfoWithDefaults, currentNumPollOptions)",reflectToAttribute:!0}),_.R("design:type",Boolean)],j0.prototype,"hasMaxNumPollOptions",void 0);_.O([_.q("pollEditorInfoWithDefaults","pollOptionsData"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],j0.prototype,"shouldInitializePoll",null);_.O([_.U(),_.R("design:type",Object)],j0.prototype,"isValidPoll",void 0);
_.O([_.U({value:!1,reflectToAttribute:!0}),_.R("design:type",Boolean)],j0.prototype,"createPollRequestInFlight",void 0);_.O([_.U(),_.R("design:type",Object)],j0.prototype,"selected",void 0);_.O([_.U({value:!1,reflectToAttribute:!0,computed:"computeShowQuestionErrorMessage(pollEditorInfoWithDefaults, overQuestionCharacterLimit)"}),_.R("design:type",Boolean)],j0.prototype,"showQuestionErrorMessage",void 0);
_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],j0.prototype,"dataChanged",null);_.O([_.NE("shouldInitializePoll"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],j0.prototype,"shouldInitializePollChanged",null);_.O([_.NE("isValidPoll"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],j0.prototype,"isValidPollChanged",null);
_.O([_.NE("selected"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],j0.prototype,"selectedChanged",null);_.O([_.ps("yt-live-chat-text-input-field-renderer-character-count-changed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],j0.prototype,"handleTextInputChanged",null);
_.O([_.ps("yt-service-request-sent"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],j0.prototype,"handleServiceRequestSent",null);_.O([_.ps("yt-service-request-completed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],j0.prototype,"handleServiceRequestCompleted",null);
_.O([_.ps("yt-live-chat-poll-editor-input-closed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],j0.prototype,"handlePollEditorInputClosed",null);_.O([_.ps("picker-cancelled"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],j0.prototype,"onPickerCancelled",null);j0=_.O([_.uM({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-panel-renderer",noInjection:!0})],j0);
_.v(j0,"yt-live-chat-poll-editor-panel-renderer",function(){if(owR===void 0){var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);var c=J.content,m=c.insertBefore;Rz5===void 0&&(Rz5=document.createElement("template"));var b=Rz5;m.call(c,b.content.cloneNode(!0),J.content.firstChild);owR=J}J=owR;return J},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var ez5;var j8p;var FC=function(){return _.h.apply(this,arguments)||this};
_.D(FC,_.h);FC.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
FC.prototype.onClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.eE.Object.defineProperties(FC.prototype,{itemId:{configurable:!0,enumerable:!0,get:function(){var J,c;return(J=this.data)==null?void 0:(c=J.title)==null?void 0:c.content}},
hasPromotion:{configurable:!0,enumerable:!0,get:function(){var J;return!((J=this.data)==null||!J.hasBlueDot)}},
innertubeCommand:{configurable:!0,enumerable:!0,get:function(){var J;return _.ZG((J=this.data)==null?void 0:J.onTapCommand)}}});
_.O([_.f(_.ts.YtEndpointBehavior),_.R("design:type",Object)],FC.prototype,"ytEndpointBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],FC.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],FC.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],FC.prototype,"itemId",null);
_.O([_.U({reflectToAttribute:!0}),_.q("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],FC.prototype,"hasPromotion",null);_.O([_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],FC.prototype,"innertubeCommand",null);FC=_.O([_.uM({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-item-view-model",noInjection:!0})],FC);
_.v(FC,"yt-live-chat-product-picker-panel-item-view-model",function(){if(j8p===void 0){var J=document.createElement("template");_.z(J,'\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>');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);var c=J.content,m=c.insertBefore;ez5===void 0&&(ez5=document.createElement("template"));var b=ez5;m.call(c,b.content.cloneNode(!0),J.content.firstChild);j8p=J}J=j8p;return J},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var FhR;var lz4;var lm=function(){var J=_.h.apply(this,arguments)||this;J.id="product-picker";J.selected=!1;J.closeButtonId="close-button";J.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return J};
_.D(lm,_.h);_.V=lm.prototype;_.V.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatProductPickerPanelItemViewModel:"yt-live-chat-product-picker-panel-item-view-model"}}}};
_.V.observeSelected=function(){this.selected&&this.hostElement.focus();var J=_.Bj(this.hostElement).querySelectorAll("yt-live-chat-product-picker-panel-item-view-model");J.length&&J[0].focus()};
_.V.onCloseBuyFlow=function(){_.cA(this.hostElement,"picker-cancelled")};
_.V.onCloseClick=function(){_.cA(this.hostElement,"picker-cancelled");var J;((J=this.data)==null?0:J.closeButton)&&this.ytRendererBehavior.logExplicitClick(_.L(this.data.closeButton,_.ri))};
_.V.onCloseEngageWithAudienceEditorPanels=function(){_.cA(this.hostElement,"picker-cancelled")};
lm.prototype.observeSelected=lm.prototype.observeSelected;_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],lm.prototype,"ytActionHandlerBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],lm.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],lm.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],lm.prototype,"data",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],lm.prototype,"id",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],lm.prototype,"selected",void 0);_.O([_.U(),_.R("design:type",Object)],lm.prototype,"closeButtonId",void 0);_.O([_.NE("selected"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],lm.prototype,"observeSelected",null);
lm=_.O([_.uM({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-view-model",noInjection:!0})],lm);
_.v(lm,"yt-live-chat-product-picker-panel-view-model",function(){if(lz4===void 0){var J=document.createElement("template");_.z(J,'\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>');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;FhR===void 0&&(FhR=document.createElement("template"));var b=FhR;m.call(c,b.content.cloneNode(!0),J.content.firstChild);lz4=J}J=lz4;return J},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var ywS;var BZs;var yk=function(){var J=_.h.apply(this,arguments)||this;J.iconId="";J.icon="";J.disabled=!1;J.systemIcons=_.w("kevlar_system_icons");return J};
_.D(yk,_.h);_.V=yk.prototype;_.V.attached=function(){_.w("live_chat_compute_product_button_aria_label")||(this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem"),this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1"))};
_.V.computeIconId=function(J){return J&&J.icon&&J.icon.iconType?J.icon.iconType.toLowerCase():""};
_.V.computeIcon=function(J){return J&&J.icon&&J.icon.iconType?(J=J.icon.iconType.toLowerCase(),(J.toLowerCase()=="gift"?"yt-sys-icons":"yt-icons")+":"+J):""};
_.V.computeDisabled=function(J){return!!J};
_.V.computeCommand=function(J,c){return c?void 0:J};
_.V.computeTooltip=function(J,c){return c&&J?J:""};
_.V.onClick=function(){this.data&&!this.disabled&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.eE.Object.defineProperties(yk.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){if(!_.w("live_chat_compute_product_button_aria_label"))return"";var J,c,m;if((J=this.data)==null?0:(c=J.text)==null?0:(m=c.runs)==null?0:m.length)return this.data.text.runs[0].text||"";var b,x;return((b=this.data)==null?0:(x=b.text)==null?0:x.simpleText)?this.data.text.simpleText:""}}});
_.O([_.f(_.ts.YtEndpointBehavior),_.R("design:type",Object)],yk.prototype,"ytEndpointBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],yk.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],yk.prototype,"data",void 0);_.O([_.U({computed:"computeIconId(data)",reflectToAttribute:!0}),_.R("design:type",Object)],yk.prototype,"iconId",void 0);
_.O([_.U({computed:"computeIcon(data)",reflectToAttribute:!0}),_.R("design:type",Object)],yk.prototype,"icon",void 0);_.O([_.U({computed:"computeDisabled(data.isDisabled)",reflectToAttribute:!0}),_.R("design:type",Object)],yk.prototype,"disabled",void 0);_.O([_.U({computed:"computeCommand(data.command, disabled)"}),_.R("design:type",Object)],yk.prototype,"command",void 0);_.O([_.U({computed:"computeTooltip(data.disabledTooltip, disabled)"}),_.R("design:type",String)],yk.prototype,"tooltip",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],yk.prototype,"systemIcons",void 0);_.O([_.q("data.text"),_.U(),_.R("design:type",String),_.R("design:paramtypes",[])],yk.prototype,"ariaLabel",null);yk=_.O([_.uM({disableElementRegistration:!0,is:"yt-live-chat-product-button-renderer",noInjection:!0})],yk);
_.v(yk,"yt-live-chat-product-button-renderer",function(){if(BZs===void 0){var J=document.createElement("template");_.z(J,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-product-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_product_button_renderer.yt.live.chat.product.button.renderer.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope yt-live-chat-product-button-renderer" data="[[command]]" title$="[[tooltip]]">\n  <tp-yt-paper-item id="container" aria-label$="[[ariaLabel]]" disabled$="[[disabled]]" role="menuitem" on-click="onClick" class="style-scope yt-live-chat-product-button-renderer">\n    <div id="icon" class="style-scope yt-live-chat-product-button-renderer">\n      <yt-icon icon="[[icon]]" class="style-scope yt-live-chat-product-button-renderer"></yt-icon>\n      <span hidden="[[!data.iconBadgeText]]" id="icon-badge-text" class="style-scope yt-live-chat-product-button-renderer">[[data.iconBadgeText]]</span>\n    </div>\n    <div id="text" class="style-scope yt-live-chat-product-button-renderer">\n      <yt-formatted-string text="[[data.text]]" class="style-scope yt-live-chat-product-button-renderer"></yt-formatted-string>\n      <div id="subtext" class="style-scope yt-live-chat-product-button-renderer">\n        <yt-formatted-string text="[[data.subtext]]" class="style-scope yt-live-chat-product-button-renderer"></yt-formatted-string>\n      </div>\n    </div>\n  </tp-yt-paper-item>\n</a>\n');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;ywS===void 0&&(ywS=document.createElement("template"));var b=ywS;m.call(c,b.content.cloneNode(!0),J.content.firstChild);BZs=J}J=BZs;return J},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var gwh;var Jph;var B5=function(){var J=_.h.apply(this,arguments)||this;J.selected=!1;J.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels","yt-signal-action-close-engage-with-audience-editor-panel":"onCloseEngageWithAudienceEditorPanels"};return J};
_.D(B5,_.h);_.V=B5.prototype;_.V.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"}}}};
_.V.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.V.computeId=function(J){return J.id||""};
_.V.onCloseClick=function(){_.cA(this.hostElement,"picker-cancelled")};
_.V.observeSelected=function(){this.selected&&this.hostElement.focus();var J=this.hostElement.querySelectorAll("yt-live-chat-product-button-renderer");J.length&&J[0].focus()};
_.V.onCloseBuyFlow=function(){_.cA(this.hostElement,"picker-cancelled")};
_.V.onCloseEngageWithAudienceEditorPanels=function(){_.cA(this.hostElement,"picker-cancelled")};
B5.prototype.observeSelected=B5.prototype.observeSelected;_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],B5.prototype,"ytActionHandlerBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],B5.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],B5.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],B5.prototype,"data",void 0);
_.O([_.U({computed:"computeId(data)",reflectToAttribute:!0}),_.R("design:type",String)],B5.prototype,"id",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],B5.prototype,"selected",void 0);_.O([_.NE("selected"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],B5.prototype,"observeSelected",null);B5=_.O([_.uM({disableElementRegistration:!0,is:"yt-live-chat-product-picker-renderer",noInjection:!0})],B5);
_.v(B5,"yt-live-chat-product-picker-renderer",function(){if(Jph===void 0){var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);var c=J.content,m=c.insertBefore;gwh===void 0&&(gwh=document.createElement("template"));var b=gwh;m.call(c,b.content.cloneNode(!0),J.content.firstChild);Jph=J}J=Jph;return J},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var cpr;var mjr;var bbu;var xjR;var gh=function(){return _.h.apply(this,arguments)||this};
_.D(gh,_.h);gh.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()};
gh.prototype.computeUseRegularBackground=function(){return!this.useLargeBackground&&!this.useAnimationBackground};
gh.prototype.created=function(){this.ids={background:_.LD(),maskOne:_.LD(),maskTwo:_.LD(),gradient:_.LD(),largeBackground:_.LD(),largeGradientOne:_.LD(),largeGradientTwo:_.LD(),largeGradientPath:_.LD()}};
gh.prototype.maybeLoadAnimationBackground=gh.prototype.maybeLoadAnimationBackground;_.O([_.U({value:!1}),_.R("design:type",Boolean)],gh.prototype,"useLargeBackground",void 0);_.O([_.U({value:!1}),_.R("design:type",Boolean)],gh.prototype,"useAnimationBackground",void 0);_.O([_.U({value:!0,computed:"computeUseRegularBackground(useLargeBackground, useAnimationBackground)"}),_.R("design:type",Boolean)],gh.prototype,"useRegularBackground",void 0);
_.O([_.U(),_.R("design:type",Object)],gh.prototype,"ids",void 0);_.O([_.U(),_.R("design:type",Object)],gh.prototype,"lottieAnimation",void 0);_.O([_.Iu("#animation-background"),_.R("design:type",HTMLDivElement)],gh.prototype,"animationBackground",void 0);_.O([_.NE("useAnimationBackground"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],gh.prototype,"maybeLoadAnimationBackground",null);
gh=_.O([_.uM({disableElementRegistration:!0,is:"yt-live-interactivity-component-background",noInjection:!0})],gh);
_.v(gh,"yt-live-interactivity-component-background",function(){if(xjR===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;bbu===void 0&&(bbu=document.createElement("template"));var b=bbu;m.call(c,b.content.cloneNode(!0),J.content.firstChild);xjR=J}J=xjR;return J},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var Jx=function(){var J=_.h.apply(this,arguments)||this;J.characterCount=0;J.showInputErrorMessage=!1;J.startQnaRequestInFlight=!1;J.modern=_.w("web_button_rework_with_live");J.buttonOverrides={style:"mono",type:"filled"};J.closeButtonOverrides={iconPosition:"icon-only"};J.actionMap={"yt-live-chat-open-qna-start-panel":"handleOpenQnaStartPanel"};return J};
_.D(Jx,_.h);_.V=Jx.prototype;
_.V.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]]"}}}}}};
_.V.onCharacterCountChanged=function(J){var c,m,b,x,P=(m=_.L(this==null?void 0:(c=this.data)==null?void 0:c.creatorCallForQuestions,dNs))==null?void 0:(b=m.inputField)==null?void 0:(x=b.liveChatTextInputFieldRenderer)==null?void 0:x.maxCharacterLimit,p,t;P!=null&&(J==null?void 0:(p=J.detail)==null?void 0:p.characterCount)!=null&&_.L(this==null?void 0:(t=this.data)==null?void 0:t.startButton,_.ur)&&(c=J.detail.characterCount>P,this.set("data.startButton.buttonRenderer.isDisabled",J.detail.characterCount===
0||c),this.showInputErrorMessage=c)};
_.V.onCloseClick=function(){_.cA(this.hostElement,"picker-cancelled");_.m9(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.V.onPickerCancelled=function(){var J=_.Bj(this.hostElement).querySelector("#qna-creator-text-input-field");J&&J.setLiveChatRichMessageInput(null)};
_.V.handleOpenQnaStartPanel=function(){var J=_.Bj(this.hostElement).querySelector("#qna-creator-text-input-field");J&&J.focus()};
_.V.handleStartButtonAction=function(J){var c=this;if(J.detail.actionName==="yt-service-request"&&(J.stopPropagation(),J=J.detail.args[1])){var m=_.Bj(this.hostElement).querySelector("#qna-creator-text-input-field"),b;(m==null?0:(b=m.liveChatRichMessageInput)==null?0:b.textSegments)&&m.liveChatRichMessageInput.textSegments.length!==0&&(b={rich_message:_.ZL(m.liveChatRichMessageInput)},_.Vq(this.hostElement,[J,b]).then(function(){_.cA(c.hostElement,"picker-cancelled")}))}};
_.V.handleServiceRequestSent=function(){this.startQnaRequestInFlight=!0};
_.V.handleServiceRequestCompleted=function(J){var c;J=J==null?void 0:(c=J.detail)==null?void 0:c.data;(J==null?0:J.actions)&&J.actions.length>0?this.startQnaRequestInFlight=!1:_.m9(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.V.handleServiceRequestError=function(){this.startQnaRequestInFlight=!1};
Jx.prototype.handleServiceRequestError=Jx.prototype.handleServiceRequestError;Jx.prototype.handleServiceRequestCompleted=Jx.prototype.handleServiceRequestCompleted;Jx.prototype.handleServiceRequestSent=Jx.prototype.handleServiceRequestSent;Jx.prototype.onPickerCancelled=Jx.prototype.onPickerCancelled;Jx.prototype.onCharacterCountChanged=Jx.prototype.onCharacterCountChanged;_.O([_.U(),_.R("design:type",Object)],Jx.prototype,"characterCount",void 0);
_.O([_.U(),_.R("design:type",Object)],Jx.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Jx.prototype,"showInputErrorMessage",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Jx.prototype,"startQnaRequestInFlight",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Jx.prototype,"modern",void 0);_.O([_.U(),_.R("design:type",Object)],Jx.prototype,"buttonOverrides",void 0);
_.O([_.U(),_.R("design:type",Object)],Jx.prototype,"closeButtonOverrides",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],Jx.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.XL),_.R("design:type",Object)],Jx.prototype,"ytLiveChatReduxBehavior",void 0);_.O([_.f(_.Zo.YtLiveChatItemBehavior),_.R("design:type",_.q7)],Jx.prototype,"ytLiveChatItemBehavior",void 0);
_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],Jx.prototype,"ytActionHandlerBehavior",void 0);_.O([_.ps("yt-live-chat-text-input-field-renderer-character-count-changed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],Jx.prototype,"onCharacterCountChanged",null);_.O([_.ps("picker-cancelled"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Jx.prototype,"onPickerCancelled",null);
_.O([_.ps("yt-service-request-sent"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Jx.prototype,"handleServiceRequestSent",null);_.O([_.ps("yt-service-request-completed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],Jx.prototype,"handleServiceRequestCompleted",null);
_.O([_.ps("yt-service-request-error"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],Jx.prototype,"handleServiceRequestError",null);Jx=_.O([_.E({disableElementRegistration:!0,is:"yt-live-chat-qna-start-panel-renderer"})],Jx);
_.v(Jx,"yt-live-chat-qna-start-panel-renderer",function(){if(mjr===void 0){var J=document.createElement("template");_.z(J,'\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>');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;cpr===void 0&&(cpr=document.createElement("template"));var b=cpr;m.call(c,b.content.cloneNode(!0),J.content.firstChild);mjr=J}J=mjr;return J},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var Vbs;var PYh;var cZ=function(){return _.h.apply(this,arguments)||this};
_.D(cZ,_.h);cZ.prototype.dismiss=function(){_.cA(this.hostElement,"yt-live-chat-error-message-dismiss")};
cZ.prototype.edit=function(){_.cA(this.hostElement,"yt-live-chat-error-message-edit",this.data.originalRichMessage)};
_.O([_.U(),_.R("design:type",Object)],cZ.prototype,"data",void 0);cZ=_.O([_.uM({disableElementRegistration:!0,is:"yt-live-chat-text-actions-error-message-renderer",noInjection:!0})],cZ);
_.v(cZ,"yt-live-chat-text-actions-error-message-renderer",function(){if(PYh===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;Vbs===void 0&&(Vbs=document.createElement("template"));var b=Vbs;m.call(c,b.content.cloneNode(!0),J.content.firstChild);PYh=J}J=PYh;return J},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var Mbh;var p_R;var N5F;var tbu;var mF=function(){var J=_.h.apply(this,arguments)||this;J.isDarkTheme=document.documentElement.hasAttribute("dark");J.newnessDotEligible=!1;return J};
_.D(mF,_.h);mF.prototype.sendReaction=function(){var J,c,m=((J=this.data)==null?void 0:J.emojiId)||((c=this.data)==null?void 0:c.emoteId),b;m&&((b=this.data)==null?0:b.shouldTriggerAnimation)&&_.m9(this.hostElement,"yt-create-user-reaction-animation",[m]);var x;(J=_.ZG((x=this.data)==null?void 0:x.onTap))&&_.Nl(J,this.hostElement);this.showNewnessDot&&_.m9(this.hostElement,"yt-hide-newness-dot")};
mF.prototype.onClick=function(J){(!J||J.clientX||J.clientY)&&this.sendReaction()};
mF.prototype.onKeyDown=function(J){J.key!=="Enter"&&J.key!==" "||J.repeat||this.sendReaction()};
_.eE.Object.defineProperties(mF.prototype,{showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var J;return!((J=this.data)==null||!J.maybeShowNewnessDot)&&this.newnessDotEligible}},
useYtImage:{configurable:!0,enumerable:!0,get:function(){var J,c;return!!(((J=this.data)==null?0:J.emojiId)||((c=this.data)==null?0:c.emoteId))}}});
_.O([_.U(),_.R("design:type",Object)],mF.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],mF.prototype,"isDarkTheme",void 0);_.O([_.U(),_.R("design:type",Object)],mF.prototype,"newnessDotEligible",void 0);_.O([_.q("data.maybeShowNewnessDot"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],mF.prototype,"showNewnessDot",null);_.O([_.q("data.emojiId","data.emoteId"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],mF.prototype,"useYtImage",null);
mF=_.O([_.uM({disableElementRegistration:!0,is:"yt-reaction-control-panel-button-view-model",noInjection:!0})],mF);
_.v(mF,"yt-reaction-control-panel-button-view-model",function(){if(tbu===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;N5F===void 0&&(N5F=document.createElement("template"));var b=N5F;m.call(c,b.content.cloneNode(!0),J.content.firstChild);tbu=J}J=tbu;return J},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var IDs;var Kg1;var bl=function(){var J=_.h.apply(this,arguments)||this;J.reactionControlPanelExpanded=!1;J.isDarkTheme=document.documentElement.hasAttribute("dark");J.newnessDotEligible=!1;return J};
_.D(bl,_.h);_.V=bl.prototype;_.V.expandedButtonsChanged=function(){var J,c;_.V1(this.hostElement,{"--expanded-buttons-height":((c=(J=this.expandedButtonsData)==null?void 0:J.length)!=null?c:0)*36+"px"})};
_.V.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}}};
_.V.onMouseEnter=function(){clearTimeout(this.collapseTimer);this.collapseTimer=void 0;this.reactionControlPanelExpanded=!0};
_.V.onMouseLeave=function(){var J=this;this.collapseTimer=setTimeout(function(){J.reactionControlPanelExpanded=!1},500)};
_.V.onFocusIn=function(){this.onMouseEnter()};
_.V.onFocusOut=function(){this.onMouseLeave()};
_.V.onCollapsedButtonFocusIn=function(){var J=this;setTimeout(function(){var c;(c=J.expandedButtons.querySelector("button"))==null||c.focus()},100)};
_.V.onCollapsedButtonFocusOut=function(J){J.stopPropagation()};
_.eE.Object.defineProperties(bl.prototype,{expandedButtonsData:{configurable:!0,enumerable:!0,get:function(){var J,c;return _.Lw.unsafeClone((J=this.liveReactionsData)==null?void 0:J.emojiButtonData)||((c=this.data)==null?void 0:c.expandedButtons)}},
showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var J;return this.newnessDotEligible&&!this.reactionControlPanelExpanded&&!((J=this.data)==null||!J.maybeShowNewnessDot)}}});
bl.prototype.expandedButtonsChanged=bl.prototype.expandedButtonsChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],bl.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],bl.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.XL),_.R("design:type",Object)],bl.prototype,"ytLiveChatReduxBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],bl.prototype,"data",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],bl.prototype,"reactionControlPanelExpanded",void 0);_.O([_.U({selectorArgs:["data.liveReactionsDataEntityKey"],selector:nFS}),_.R("design:type",Object)],bl.prototype,"liveReactionsData",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],bl.prototype,"isDarkTheme",void 0);_.O([_.U(),_.R("design:type",Object)],bl.prototype,"newnessDotEligible",void 0);
_.O([_.q("liveReactionsData","data.expandedButtons"),_.R("design:type",Object),_.R("design:paramtypes",[])],bl.prototype,"expandedButtonsData",null);_.O([_.q("newnessDotEligible","reactionControlPanelExpanded","data.maybeShowNewnessDot"),_.U({reflectToAttribute:!0}),_.R("design:type",Object),_.R("design:paramtypes",[])],bl.prototype,"showNewnessDot",null);_.O([_.Iu("#expanded-buttons"),_.R("design:type",HTMLElement)],bl.prototype,"expandedButtons",void 0);
_.O([_.NE("expandedButtonsData"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],bl.prototype,"expandedButtonsChanged",null);bl=_.O([_.uM({disableElementRegistration:!0,is:"yt-reaction-control-panel-view-model",noInjection:!0})],bl);
_.v(bl,"yt-reaction-control-panel-view-model",function(){if(Kg1===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;IDs===void 0&&(IDs=document.createElement("template"));var b=IDs;m.call(c,b.content.cloneNode(!0),J.content.firstChild);Kg1=J}J=Kg1;return J},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var xv=new _.Un("yt-live-chat"),CYf=Date.parse("2024-7-24"),V9=function(){var J=_.h.apply(this,arguments)||this;J.emojiManager=_.Xh;J.newnessDotEligible=!1;J.newnessDotImpressionCounted=!1;J.actionMap={"yt-live-reactions-mute":"handleReactionsMute","yt-hide-newness-dot":"hideNewnessDot"};return J};
_.D(V9,_.h);_.V=V9.prototype;_.V.emojiCustomizationEnabledChanged=function(){var J;((J=this.data)==null?0:J.emojiCustomizationEnabled)&&!this.newnessDotImpressionCounted&&((J=xv.getCreationTime("emoji-customization-count"))&&J<CYf&&xv.set("emoji-customization-count","0"),J=Number(xv.get("emoji-customization-count"))||0,J<3&&(this.newnessDotEligible=!0,xv.set("emoji-customization-count",(J+1).toString())),this.newnessDotImpressionCounted=!0)};
_.V.hideNewnessDot=function(){this.newnessDotEligible=!1;xv.set("emoji-customization-count",(3).toString());this.data=Object.assign({},this.data||{})};
_.V.handleReactionsMute=function(J){var c=_.Y3(),m=_.rs(206221),b={checkboxData:{state:J?"CHECKBOX_STATE_OFF":"CHECKBOX_STATE_ON"}};c&&_.AS(c,m,b);this.reactionsMuted=J};
_.V.liveReactionsSettingChanged=function(){this.data=Object.assign({},this.data||{})};
_.V.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}}};
_.eE.Object.defineProperties(V9.prototype,{liveReactionsEnabled:{configurable:!0,enumerable:!0,get:function(){var J;return(!((J=this.liveReactionsData)==null||!J.isEnabled)||this.liveReactionsSetting)&&!this.reactionsMuted}}});
V9.prototype.liveReactionsSettingChanged=V9.prototype.liveReactionsSettingChanged;V9.prototype.emojiCustomizationEnabledChanged=V9.prototype.emojiCustomizationEnabledChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],V9.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],V9.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.XL),_.R("design:type",Object)],V9.prototype,"ytLiveChatReduxBehavior",void 0);
_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],V9.prototype,"ytActionHandlerBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],V9.prototype,"data",void 0);_.O([_.U(),_.R("design:type",_.uH)],V9.prototype,"emojiManager",void 0);_.O([_.U(),_.R("design:type",Object)],V9.prototype,"newnessDotEligible",void 0);_.O([_.U(),_.R("design:type",Object)],V9.prototype,"newnessDotImpressionCounted",void 0);
_.O([_.U({selectorArgs:["data.liveReactionsSettingEntityKey"],selector:TEp}),_.R("design:type",Boolean)],V9.prototype,"liveReactionsSetting",void 0);_.O([_.U({selectorArgs:["data.liveReactionsDataEntityKey"],selector:nFS}),_.R("design:type",Object)],V9.prototype,"liveReactionsData",void 0);_.O([_.U({value:function(){var J=_.w("enable_lwe_web_mute"),c=xv.get("allow-reactions");return c===void 0?!1:!c&&J}}),
_.R("design:type",Boolean)],V9.prototype,"reactionsMuted",void 0);_.O([_.U({reflectToAttribute:!0}),_.q("liveReactionsSetting","reactionsMuted","liveReactionsData"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],V9.prototype,"liveReactionsEnabled",null);_.O([_.NE("data.emojiCustomizationEnabled"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],V9.prototype,"emojiCustomizationEnabledChanged",null);
_.O([_.NE("liveReactionsEnabled"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],V9.prototype,"liveReactionsSettingChanged",null);V9=_.O([_.uM({disableElementRegistration:!0,is:"yt-reaction-control-panel-overlay-view-model",noInjection:!0})],V9);
_.v(V9,"yt-reaction-control-panel-overlay-view-model",function(){if(p_R===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;Mbh===void 0&&(Mbh=document.createElement("template"));var b=Mbh;m.call(c,b.content.cloneNode(!0),J.content.firstChild);p_R=J}J=p_R;return J},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var aDh={YtPickerBehavior:{listeners:{"picker-cancelled":"onPickerCancel_"},togglePicker_:function(J){var c=this.$.pickers.selected;if(c){_.Bj(this.hostElement).removeAttribute(c+"-open");var m="#picker-buttons";this.hostElement.tagName=="YT-LIVE-CHAT-MESSAGE-INPUT-RENDERER"&&(m="#picker-buttons",c==="emoji"&&_.Bj(this.hostElement).querySelector("#emoji-picker-button")&&(m="#emoji-picker-button"));if(m=_.Bj(this.hostElement).querySelector(m).querySelector("#"+c))m.active=!1}m=J;c==J&&(m=null);c!=
J&&_.Bj(this.hostElement).setAttribute(J+"-open","");this.$.pickers.selected=m;_.m9(this.hostElement,"yt-live-chat-picker-changed",[m])},
onPickerCancel_:function(){this.togglePicker_(this.$.pickers.selected)}}};var PZ=function(){var J=_.h.apply(this,arguments)||this;J.numSentMessages=0;J.timeoutDurationMs=0;J.timeoutMs=0;J.lastTimeoutTimeMs=0;J.pendingMessageId="";J.hasFiredInitialFocusActions=!1;J.isBeforeFocusEnabled=!0;J.id="";J.characterCount=0;J.maxCharacterLimit=0;J.remainingCharacterCount=0;J.inputExpanded=!1;J.buttonOverrides={iconPosition:"icon-only"};J.inReplyPanel=!1;J.countdownRatio=0;J.isTooltipVisible=!1;J.tooltipTimeout=1E4;J.systemIcons=_.w("kevlar_system_icons");J.tallerEmojiPicker=_.w("live_chat_taller_emoji_picker");
J.blockSendMessageWithCountdown=!_.w("live_chat_enable_send_button_in_slow_mode");J.sendReplyMessageInFlight=!1;J.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"};J.onResize=function(){J.maybeToggleCharacterCount()};
return J};
_.D(PZ,_.h);_.V=PZ.prototype;
_.V.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"}}}};
_.V.attached=function(){window.addEventListener("resize",this.onResize)};
_.V.detached=function(){window.removeEventListener("resize",this.onResize)};
_.V.dataChanged=function(){this.data.sendButton&&this.data.sendButton.buttonRenderer&&(this.data.sendButton.buttonRenderer.isDisabled=this.sendDisabled)};
_.V.sendMessage=function(){var J=this,c,m,b,x;return _.N(function(P){if(J.sendDisabled)return P.return();J.isTooltipVisible&&_.m9(J.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);if(J.data.sendButton&&J.data.sendButton.buttonRenderer){J.input.completeEmojis();c=J.data.sendButton.buttonRenderer.serviceEndpoint;if(!c)return P.return();b=((m=_.L(c,_.jSB))==null?void 0:m.clientIdPrefix)||"";x={client_message_id:b+String(J.numSentMessages++),rich_message:_.ZL(J.input.liveChatRichMessageInput)};
J.pendingMessageId=x.client_message_id;J.inReplyPanel&&(J.sendReplyMessageInFlight=!0);_.Vq(J.hostElement,[c,x]);J.input.setLiveChatRichMessageInput(null)}_.tD(P)})};
_.V.handleSendButtonAction=function(J){J.detail.actionName==="yt-service-request"&&(J.stopPropagation(),this.sendMessage())};
_.V.onSendCompleted=function(J,c){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);(J=this.get("timeoutDurationUsec",c.data))&&this.handleTimeout(Number(J)/1E3);this.errorMessage=this.get("errorMessage",c.data);this.pendingMessageId=""};
_.V.onSendError=function(){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);this.pendingMessageId&&_.m9(this.hostElement,"yt-dim-chat-item-action",[{dimChatItemAction:{clientAssignedId:this.pendingMessageId}}]);this.pendingMessageId="";this.genericErrorMessage&&(this.errorMessage={liveChatErrorMessageRenderer:{errorText:this.genericErrorMessage}})};
_.V.handlePickerButtonToggle=function(J){J=J.detail.targetId;this.ytPickerBehavior.togglePicker_(J);if(J==="emoji")this.input.focus();else if(J==="qna-start-panel"){var c,m;(c=_.Bj(this.hostElement).querySelector("yt-live-chat-qna-start-panel-renderer"))==null||(m=c.querySelector("#qna-creator-text-input-field"))==null||m.focus()}};
_.V.onComponentReplaced=function(J){var c,m;J.toReplace==="REPLACE_LIVE_CHAT_ACTION_PANEL"&&((c=J.replacement.liveChatMessageInputRenderer)==null?0:(m=c.headerRenderer)==null?0:m.liveChatQnaInputPromptHeaderRenderer)&&this.input.focus()};
_.V.onEmojiSelect=function(J){this.input.focus();this.input.insertEmoji(J.detail)};
_.V.onDisableBeforeFocus=function(){this.isBeforeFocusEnabled=!1};
_.V.onInputFocusIn=function(){this.data&&(this.data.beforeFocusCommand&&this.isBeforeFocusEnabled?_.m9(this.hostElement,"yt-live-chat-actions",[[this.data.beforeFocusCommand]]):this.data.onInitialFocusCommand&&!this.hasFiredInitialFocusActions&&(_.m9(this.hostElement,"yt-live-chat-actions",[[this.data.onInitialFocusCommand]]),this.hasFiredInitialFocusActions=!0))};
_.V.onOpenPopupAction=function(J,c){var m=this;c===this.hostElement&&(this.isTooltipVisible=!0);this.tooltipTimeout&&setTimeout(function(){_.m9(m.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},this.tooltipTimeout)};
_.V.onClosePopupAction=function(){this.isTooltipVisible=!1};
_.V.characterCountChanged=function(){this.maybeToggleCharacterCount()};
_.V.focusChanged=function(){this.maybeToggleCharacterCount()};
_.V.maybeToggleCharacterCount=function(){if(this.maxCharacterLimit){var J=this.characterCount/this.maxCharacterLimit*100;this.count.classList.toggle("warning",this.characterCount!==0&&this.input.clientHeight>36);this.count.classList.toggle("error",J>100)}this.inputExpanded=this.characterCount!==0&&this.inputContainer.clientHeight>36};
_.V.computeId=function(){return this.data&&this.data.targetId||""};
_.V.computeSendDisabled=function(J,c,m,b){J=!!(this.blockSendMessageWithCountdown&&m||!J||c&&J>c||b);(c=_.Bj(this.hostElement).querySelector("#send-button"))&&c.children.length&&(c.children[0].disabled=J);return J};
_.V.handleTimeout=function(J){this.timeoutDurationMs=this.timeoutMs=J;this.countdownRatio=1;this.lastTimeoutTimeMs===0&&window.requestAnimationFrame(this.updateTimeout.bind(this))};
_.V.updateTimeout=function(J){this.lastTimeoutTimeMs&&(this.timeoutMs=Math.max(0,this.timeoutMs-(J-this.lastTimeoutTimeMs)),this.countdownRatio=this.timeoutMs/this.timeoutDurationMs);this.isAttached&&this.timeoutMs?(this.lastTimeoutTimeMs=J,window.requestAnimationFrame(this.updateTimeout.bind(this))):this.lastTimeoutTimeMs=0};
_.V.onErrorMessageDismiss=function(){this.errorMessage=void 0};
_.V.onErrorMessageEdit=function(J){this.input.setLiveChatRichMessageInput(J.detail);this.input.focusAtEnd();this.errorMessage=void 0};
_.V.errorMessageChanged=function(){var J=this;_.S5(function(){_.m9(J.hostElement,"yt-live-chat-maybe-scroll-to-bottom")})};
_.V.computeAuthorNameColor=function(J){var c;if(_.w("live_chat_author_name_color_usernames")&&(J==null?0:(c=J.authorName)==null?0:c.simpleText))return _.Cpu(_.ayr(J.authorName.simpleText));if(_.w("live_chat_seed_color_usernames")&&(J==null?0:J.authorSeedColorArgb))return _.Cpu(_.xV(J.authorSeedColorArgb));if(_.w("live_chat_colored_usernames"))return"#cc0000";var m;return _.w("live_chat_simple_color_usernames")&&(J==null?0:(m=J.authorName)==null?0:m.simpleText)&&(J==null?0:J.authorUsernameColorLight)&&
(J==null?0:J.authorUsernameColorDark)?document.documentElement.hasAttribute("dark")?_.xV(J.authorUsernameColorDark):_.xV(J.authorUsernameColorLight):""};
_.V.onIsTooltipVisibleChanged=function(){var J=_.Bj(this.hostElement).querySelector("#tooltip-accessibility-text");this.isTooltipVisible?setTimeout(function(){J.hidden=!1;J.setAttribute("role","alert")},0):(J.hidden=!0,J.removeAttribute("role"))};
_.V.onFocusedChanged=function(J){this.inputFocused=J.detail.value};
_.eE.Object.defineProperties(PZ.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 J;return!((J=this.data)==null||!J.authorPhoto)&&this.characterCount>0}},
hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var J,c;return((J=this.data)==null?void 0:(c=J.pickers)==null?void 0:c.find(function(m){return m.liveChatProductPickerPanelViewModel}))!==void 0}},
tooltipMessage:{configurable:!0,enumerable:!0,get:function(){var J=this.get("data.onInitialFocusCommand.showLiveChatTooltipCommand.tooltip.tooltipRenderer.detailsText");return J?this.ytRendererBehavior.getSimpleString(J):""}},
authorNameColor:{configurable:!0,enumerable:!0,get:function(){return this.computeAuthorNameColor(this.data)}}});
PZ.prototype.onIsTooltipVisibleChanged=PZ.prototype.onIsTooltipVisibleChanged;PZ.prototype.errorMessageChanged=PZ.prototype.errorMessageChanged;PZ.prototype.onErrorMessageEdit=PZ.prototype.onErrorMessageEdit;PZ.prototype.onErrorMessageDismiss=PZ.prototype.onErrorMessageDismiss;PZ.prototype.focusChanged=PZ.prototype.focusChanged;PZ.prototype.characterCountChanged=PZ.prototype.characterCountChanged;PZ.prototype.onEmojiSelect=PZ.prototype.onEmojiSelect;PZ.prototype.handlePickerButtonToggle=PZ.prototype.handlePickerButtonToggle;
PZ.prototype.onSendError=PZ.prototype.onSendError;PZ.prototype.onSendCompleted=PZ.prototype.onSendCompleted;PZ.prototype.sendMessage=PZ.prototype.sendMessage;PZ.prototype.dataChanged=PZ.prototype.dataChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],PZ.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],PZ.prototype,"ytActionHandlerBehavior",void 0);
_.O([_.f(aDh.YtPickerBehavior),_.R("design:type",Object)],PZ.prototype,"ytPickerBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],PZ.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.ZO.YtLiveChatTooltipTargetingBehavior),_.R("design:type",Object)],PZ.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],PZ.prototype,"hasFiredInitialFocusActions",void 0);
_.O([_.U(),_.R("design:type",Object)],PZ.prototype,"isBeforeFocusEnabled",void 0);_.O([_.U(),_.R("design:type",Object)],PZ.prototype,"data",void 0);_.O([_.U({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.R("design:type",Object)],PZ.prototype,"id",void 0);_.O([_.U(),_.R("design:type",Object)],PZ.prototype,"characterCount",void 0);_.O([_.U(),_.R("design:type",Object)],PZ.prototype,"maxCharacterLimit",void 0);
_.O([_.U(),_.R("design:type",Object)],PZ.prototype,"remainingCharacterCount",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],PZ.prototype,"inputExpanded",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],PZ.prototype,"inputFocused",void 0);_.O([_.U({value:!1}),_.R("design:type",Boolean)],PZ.prototype,"disableEmojiPickerIncrementalLoading",void 0);_.O([_.U(),_.R("design:type",_.hs)],PZ.prototype,"participantsManager",void 0);
_.O([_.U(),_.R("design:type",Object)],PZ.prototype,"buttonOverrides",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],PZ.prototype,"inReplyPanel",void 0);_.O([_.q("characterCount, maxCharacterLimit, countdownActive","blockSendMessageWithCountdown"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],PZ.prototype,"sendDisabled",null);_.O([_.U(),_.R("design:type",Object)],PZ.prototype,"countdownRatio",void 0);
_.O([_.q("countdownRatio"),_.R("design:type",Number),_.R("design:paramtypes",[])],PZ.prototype,"countdownStrokeDashOffset",null);_.O([_.q("countdownRatio"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],PZ.prototype,"countdownActive",null);_.O([_.q("data.interactionMessage"),_.U({reflectToAttribute:!0}),_.R("design:type",Boolean),_.R("design:paramtypes",[])],PZ.prototype,"hasInteractionMessage",null);
_.O([_.q("data.emojiPickerButton"),_.U({reflectToAttribute:!0}),_.R("design:type",Boolean),_.R("design:paramtypes",[])],PZ.prototype,"hasEmojiPickerButton",null);_.O([_.q("data, characterCount"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],PZ.prototype,"showAvatar",null);_.O([_.q("data.pickers"),_.U({reflectToAttribute:!0}),_.R("design:type",Boolean),_.R("design:paramtypes",[])],PZ.prototype,"hasProductPickerPanelViewModel",null);
_.O([_.U(),_.R("design:type",Object)],PZ.prototype,"errorMessage",void 0);_.O([_.U(),_.R("design:type",Object)],PZ.prototype,"genericErrorMessage",void 0);_.O([_.U(),_.R("design:type",Object)],PZ.prototype,"isTooltipVisible",void 0);_.O([_.U(),_.R("design:type",Object)],PZ.prototype,"tooltipTimeout",void 0);_.O([_.q("data.onInitialFocusCommand"),_.R("design:type",String),_.R("design:paramtypes",[])],PZ.prototype,"tooltipMessage",null);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],PZ.prototype,"systemIcons",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],PZ.prototype,"tallerEmojiPicker",void 0);_.O([_.q("data"),_.R("design:type",String),_.R("design:paramtypes",[])],PZ.prototype,"authorNameColor",null);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],PZ.prototype,"blockSendMessageWithCountdown",void 0);_.O([_.U(),_.R("design:type",Object)],PZ.prototype,"sendReplyMessageInFlight",void 0);
_.O([_.Iu("#input"),_.R("design:type",_.rCj)],PZ.prototype,"input",void 0);_.O([_.Iu("#count"),_.R("design:type",HTMLElement)],PZ.prototype,"count",void 0);_.O([_.Iu("#input-container"),_.R("design:type",HTMLElement)],PZ.prototype,"inputContainer",void 0);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],PZ.prototype,"dataChanged",null);
_.O([_.ps("yt-live-chat-send-message"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype",Promise)],PZ.prototype,"sendMessage",null);_.O([_.ps("yt-service-request-completed"),_.R("design:type",Function),_.R("design:paramtypes",[Event,_.Oi]),_.R("design:returntype")],PZ.prototype,"onSendCompleted",null);_.O([_.ps("yt-service-request-error"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],PZ.prototype,"onSendError",null);
_.O([_.ps("yt-live-chat-icon-toggle-button-renderer-toggle"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],PZ.prototype,"handlePickerButtonToggle",null);_.O([_.ps("yt-emoji-select"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],PZ.prototype,"onEmojiSelect",null);
_.O([_.NE("characterCount"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],PZ.prototype,"characterCountChanged",null);_.O([_.NE("inputFocused"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],PZ.prototype,"focusChanged",null);_.O([_.ps("yt-live-chat-error-message-dismiss"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],PZ.prototype,"onErrorMessageDismiss",null);
_.O([_.ps("yt-live-chat-error-message-edit"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],PZ.prototype,"onErrorMessageEdit",null);_.O([_.NE("errorMessage"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],PZ.prototype,"errorMessageChanged",null);_.O([_.NE("isTooltipVisible"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],PZ.prototype,"onIsTooltipVisibleChanged",null);
PZ=_.O([_.uM({disableElementRegistration:!0,is:"yt-live-chat-message-input-renderer",noInjection:!0})],PZ);
_.v(PZ,"yt-live-chat-message-input-renderer",function(){if(d1p===void 0){var J=document.createElement("template");_.z(J,'\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>');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;hzR===void 0&&(hzR=document.createElement("template"));var b=hzR;m.call(c,b.content.cloneNode(!0),J.content.firstChild);d1p=J}J=d1p;return J},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var kC1;var HbS;var MK=function(){var J=_.h.apply(this,arguments)||this;J.systemIcons=_.w("kevlar_system_icons");J.firedOnClickCommand=!1;J.inReplyPanel=!1;return J};
_.D(MK,_.h);
MK.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"}}}};
MK.prototype.onButtonToggle=function(J){J.target.disabled||this.ytPickerBehavior.togglePicker_(J.detail.targetId)};
MK.prototype.onClick=function(){var J=this;this.get("onClickCommand.liveChatAddToToastAction",this.data)&&!this.firedOnClickCommand&&(_.m9(this.hostElement,"yt-live-chat-add-to-toast-action",[this.data.onClickCommand]),this.firedOnClickCommand=!0,setTimeout(function(){return J.firedOnClickCommand=!1},5E3))};
_.eE.Object.defineProperties(MK.prototype,{hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var J,c;return((J=this.data)==null?void 0:(c=J.panels)==null?void 0:c.find(function(m){return m.liveChatProductPickerPanelViewModel}))!==void 0}}});
MK.prototype.onButtonToggle=MK.prototype.onButtonToggle;_.O([_.f(aDh.YtPickerBehavior),_.R("design:type",Object)],MK.prototype,"ytPickerBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],MK.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],MK.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],MK.prototype,"data",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],MK.prototype,"systemIcons",void 0);_.O([_.U({reflectToAttribute:!1}),_.R("design:type",Object)],MK.prototype,"firedOnClickCommand",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],MK.prototype,"inReplyPanel",void 0);_.O([_.q("data.pickers"),_.U({reflectToAttribute:!0}),_.R("design:type",Boolean),_.R("design:paramtypes",[])],MK.prototype,"hasProductPickerPanelViewModel",null);
_.O([_.ps("yt-live-chat-icon-toggle-button-renderer-toggle"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],MK.prototype,"onButtonToggle",null);MK=_.O([_.uM({disableElementRegistration:!0,is:"yt-live-chat-restricted-participation-renderer",noInjection:!0})],MK);
_.v(MK,"yt-live-chat-restricted-participation-renderer",function(){if(HbS===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;kC1===void 0&&(kC1=document.createElement("template"));var b=kC1;m.call(c,b.content.cloneNode(!0),J.content.firstChild);HbS=J}J=HbS;return J},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var pP=function(){var J=_.h.apply(this,arguments)||this;J.genericErrorMessage=_.v2("Error, try again.");J.inReplyPanel=!1;J.hideBorder=!1;return J};
_.D(pP,_.h);pP.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}}}}}};
_.eE.Object.defineProperties(pP,{template:{configurable:!0,enumerable:!0,get:function(){return Xvo()}}});
_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],pP.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],pP.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],pP.prototype,"genericErrorMessage",void 0);_.O([_.U(),_.R("design:type",Object)],pP.prototype,"inReplyPanel",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],pP.prototype,"hideBorder",void 0);
pP=_.O([_.uM({is:"yt-live-chat-engagement-panel-input-renderer",disableElementRegistration:!0,noInjection:!0})],pP);_.v(pP,"yt-live-chat-engagement-panel-input-renderer",function(){return Xvo()},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var ibh,naR;ibh=_.rs(115994);naR=_.rs(115993);_.NK=function(J,c,m){var b=this;var x=m.dragDownAction;this.layer=0;this.JSC$19919_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return b.dragDownAction()}}}};
this.JSC$19919_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return b.dragDownAction()}}}};
this.fullscreen=!1;var P=_.C7();_.c$(P,ibh,this.layer);_.c$(P,naR,this.layer);this.dragDownAction=function(){x();_.Ui(P,{visualElement:b.fullscreen?ibh:naR})};
this.gesture=new _.pT(J,c,this.JSC$19919_watchConfig,"pandown");this.attach()};
_.NK.prototype.attach=function(){this.gesture.attach()};
_.NK.prototype.detach=function(){this.gesture.detach()};
_.NK.prototype.update=function(J){this.fullscreen=J;this.gesture.config=J?this.JSC$19919_watchFullScreenConfig:this.JSC$19919_watchConfig};var T5R={YtMacroReplacementBehavior:[{sendServiceRequestAction:function(J){if(J&&J.length==1&&Array.isArray(J[0].loggingUrls)){J=_.Lw.unsafeClone(J[0]);var c=this.macros||{},m=this.getAdModuleClient_();if(!m)return _.ML();J.loggingUrls.forEach(function(b){if(b.baseUrl){var x=b.baseUrl;var P=c;P=P===void 0?{}:P;x=m.getOptions().includes("replaceUrlMacros")?_.quQ(m,"replaceUrlMacros",{url:x,additionalMapping:P}):x;b.baseUrl=x}},this);
J=[J]}return _.Vq(this.hostElement,J)},
getAdModuleClient_:function(){var J=_.ep(this);return J?(J=J.getPlayer())?new _.kP(J):null:null}}]};var w_o;var tx=function(){var J=_.h.apply(this,arguments)||this;J.isCollapsed=!1;J.modernPanels=_.w("kevlar_watch_modern_panels");J.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-update-donation-shelf-command":"handleUpdate","yt-open-popup-action":"handleOpenPopupAction"};return J};
_.D(tx,_.h);_.V=tx.prototype;_.V.configureRendererStamper=function(){return{"data.donateButton":{id:"donate-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.V.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.V.onDonateTap=function(){var J=this.get("data.donateButton.buttonRenderer.command");if(J){var c=_.Y3(),m=this.get("data.donateButton.buttonRenderer.trackingParams");c&&m&&_.AS(c,_.n7(m));this.ytOpenPopupBehavior.openPopup(J)}};
_.V.onShowMore=function(){this.isCollapsed=!1;var J=_.Y3(),c=this.get("data.expandButton.buttonRenderer.trackingParams");J&&c&&_.AS(J,_.n7(c))};
_.V.onShowLess=function(){this.isCollapsed=!0};
_.V.dataChanged=function(){_.V1(this.hostElement,{"--progress-bar-completion":this.data.progress*100+"%"})};
_.V.onDarkModeToggledAction=function(J){this.isDarkTheme=J};
_.V.handleUpdate=function(J){if(J=this.get("updateDonationShelfCommand.donationShelf.donationShelfRenderer",J))this.set("data.startLabel",J.startLabel),this.set("data.endLabel",J.endLabel),this.set("data.progress",J.progress),this.set("data.amountRaisedLabel",J.amountRaisedLabel),this.dataChanged()};
_.V.handleOpenPopupAction=function(J){this.get("openPopupAction.popup.ypcTransactionErrorMessageRenderer",J)&&_.m9(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"])};
_.V.computeHeaderBackgroundUrl=function(J,c){if(J)return c?J.headerBackgroundDarkUrl:J.headerBackgroundUrl};
_.V.isProgressBarVisible=function(J){return!(!J||J.progress===void 0)};
_.V.headerBackgroundClass=function(){return _.Ub("HTML_DIR")==="rtl"?"flip":""};
tx.prototype.dataChanged=tx.prototype.dataChanged;_.O([_.f(_.M7.YtOpenPopupBehavior),_.R("design:type",Object)],tx.prototype,"ytOpenPopupBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],tx.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],tx.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],tx.prototype,"ytActionHandlerBehavior",void 0);
_.O([_.U(),_.R("design:type",Object)],tx.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],tx.prototype,"isCollapsed",void 0);_.O([_.U({computed:"computeHeaderBackgroundUrl(data, isDarkTheme)"}),_.R("design:type",String)],tx.prototype,"headerBackgroundUrl",void 0);_.O([_.U(),_.R("design:type",Boolean)],tx.prototype,"isDarkTheme",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],tx.prototype,"modernPanels",void 0);
_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],tx.prototype,"dataChanged",null);tx=_.O([_.E({is:"ytd-donation-shelf-renderer",disableElementRegistration:!0})],tx);
_.v(tx,"ytd-donation-shelf-renderer",function(){if(w_o!==void 0)return w_o;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return w_o=J},{mode:1});var rpr;var I$=function(){return _.h.apply(this,arguments)||this};
_.D(I$,_.h);_.O([_.U(),_.R("design:type",Object)],I$.prototype,"data",void 0);I$=_.O([_.E({is:"ytd-donation-unavailable-renderer",disableElementRegistration:!0})],I$);
_.v(I$,"ytd-donation-unavailable-renderer",function(){if(rpr!==void 0)return rpr;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return rpr=J},{mode:1});var sk5;var KP=function(){return _.h.apply(this,arguments)||this};
_.D(KP,_.h);KP.prototype.computeIconType=function(J){return J?"yt-icons:"+J.toLowerCase():null};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],KP.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],KP.prototype,"data",void 0);KP=_.O([_.E({is:"ytd-limited-state-message-renderer",disableElementRegistration:!0})],KP);
_.v(KP,"ytd-limited-state-message-renderer",function(){if(sk5!==void 0)return sk5;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return sk5=J},{mode:1});var Lg5;var CP=function(){return _.h.apply(this,arguments)||this};
_.D(CP,_.h);CP.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
CP.prototype.onTap=function(J){var c=this.data&&this.data.endpoint;c&&!_.AP(_.OT(J),this.hostElement,["YTD-SUBSCRIBE-BUTTON-RENDERER","YTD-BUTTON-RENDERER"])&&_.cA(this.hostElement,"yt-navigate",{endpoint:c})};
_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],CP.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],CP.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],CP.prototype,"data",void 0);CP=_.O([_.E({is:"ytd-autotagging-metadata-renderer",disableElementRegistration:!0})],CP);
_.v(CP,"ytd-autotagging-metadata-renderer",function(){if(Lg5!==void 0)return Lg5;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return Lg5=J},{mode:1});var Djp;var a$=function(){return _.h.apply(this,arguments)||this};
_.D(a$,_.h);a$.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{autotaggingMetadataRenderer:"ytd-autotagging-metadata-renderer"}}}};
_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],a$.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],a$.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],a$.prototype,"data",void 0);a$=_.O([_.E({is:"ytd-autotagging-metadata-row-renderer",disableElementRegistration:!0})],a$);
_.v(a$,"ytd-autotagging-metadata-row-renderer",function(){if(Djp!==void 0)return Djp;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return Djp=J},{mode:1});var Wgp;var zxS;var kv=function(){var J=_.h.apply(this,arguments)||this;J.engagementPanelContent=!1;return J};
_.D(kv,_.h);kv.prototype.computeHasDividerLine=function(J,c){return J&&!c};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],kv.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],kv.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine, engagementPanelContent)"}),_.R("design:type",Boolean)],kv.prototype,"hasDividerLine",void 0);_.O([_.U(),_.R("design:type",Object)],kv.prototype,"engagementPanelContent",void 0);
kv=_.O([_.E({is:"ytd-metadata-row-header-renderer",disableElementRegistration:!0})],kv);
_.v(kv,"ytd-metadata-row-header-renderer",function(){if(zxS!==void 0)return zxS;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return zxS=J},{mode:1});var u31;var HZ=function(){return _.h.apply(this,arguments)||this};
_.D(HZ,_.h);HZ.prototype.computeHasDividerLine=function(J){return J};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],HZ.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],HZ.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.R("design:type",Boolean)],HZ.prototype,"hasDividerLine",void 0);HZ=_.O([_.E({is:"ytd-metadata-row-renderer",disableElementRegistration:!0})],HZ);
_.v(HZ,"ytd-metadata-row-renderer",function(){if(u31!==void 0)return u31;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return u31=J},{mode:1});var fD5;var il=function(){return _.h.apply(this,arguments)||this};
_.D(il,_.h);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],il.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],il.prototype,"data",void 0);il=_.O([_.E({is:"ytd-metadata-with-image-row-renderer",disableElementRegistration:!0})],il);
_.v(il,"ytd-metadata-with-image-row-renderer",function(){if(fD5!==void 0)return fD5;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return fD5=J},{mode:1});var Yd5;var nP=function(){var J=_.h.apply(this,arguments)||this;J.rounded=!0;J.fixie=!1;J.fullWidth=!1;return J};
_.D(nP,_.h);_.V=nP.prototype;_.V.configureRendererStamper=function(){return{"data.informationButton":{id:"information-button-container",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.V.onDataChanged=function(){var J=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(c){J.onEndpointLinkKeyPress(c)}))};
_.V.onEndpointLinkKeyPress=function(J){J.target===this.endpointLink&&J.keyCode===13&&_.cA(this.hostElement,"click")};
_.V.onClick=function(){if(!this.endpointHref){this.endpointLink.blur();var J;if((J=this.data)==null?0:J.endpoint)_.PA(this.hostElement,[this.data.endpoint],this.hostElement),this.ytRendererBehavior.logExplicitClick(this.data)}};
_.V.onYtNavigate=function(J){this.endpointHref||(J.stopPropagation(),J.preventDefault())};
_.V.onInformationButtonContainerClick=function(J){J.target.id!=="information-button-container"&&(J.stopPropagation(),J.preventDefault())};
_.V.computeStyle=function(J){return J};
_.V.computeIsThumbnailStyle=function(J){return J==="RICH_METADATA_RENDERER_STYLE_THUMBNAIL"};
_.V.computeThumbnailWidth=function(J){switch(J){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}};
_.V.computeThumbnailObjectFit=function(J){switch(J){case "RICH_METADATA_RENDERER_STYLE_SQUARE":return"CONTAIN"}};
_.eE.Object.defineProperties(nP.prototype,{endpointHref:{configurable:!0,enumerable:!0,get:function(){var J;return((J=this.data)==null?0:J.endpoint)?this.componentBehavior.computeOptionalHref_(this.data.endpoint):null}}});
nP.prototype.onYtNavigate=nP.prototype.onYtNavigate;nP.prototype.onClick=nP.prototype.onClick;nP.prototype.onDataChanged=nP.prototype.onDataChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],nP.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],nP.prototype,"componentBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],nP.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.U(),_.R("design:type",Object)],nP.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.R("design:type",String)],nP.prototype,"componentStyle",void 0);_.O([_.U({computed:"computeIsThumbnailStyle(data.style)"}),_.R("design:type",Boolean)],nP.prototype,"isThumbnailStyle",void 0);_.O([_.U({computed:"computeThumbnailObjectFit(data.style)"}),_.R("design:type",String)],nP.prototype,"thumbnailObjectFit",void 0);
_.O([_.U({computed:"computeThumbnailWidth(data.style)"}),_.R("design:type",Number)],nP.prototype,"thumbnailWidth",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],nP.prototype,"rounded",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],nP.prototype,"fixie",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],nP.prototype,"fullWidth",void 0);_.O([_.Iu("#endpoint-link"),_.R("design:type",HTMLAnchorElement)],nP.prototype,"endpointLink",void 0);
_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],nP.prototype,"onDataChanged",null);_.O([_.q("data.endpoint"),_.R("design:type",Object),_.R("design:paramtypes",[])],nP.prototype,"endpointHref",null);_.O([_.ps("click"),_.R("design:type",Function),_.R("design:paramtypes",[Event]),_.R("design:returntype")],nP.prototype,"onClick",null);
_.O([_.ps("yt-navigate"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],nP.prototype,"onYtNavigate",null);nP=_.O([_.E({is:"ytd-rich-metadata-renderer",disableElementRegistration:!0})],nP);
_.v(nP,"ytd-rich-metadata-renderer",function(){if(Yd5!==void 0)return Yd5;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return Yd5=J},{mode:_.mP("kevlar_poly_si_batch_j075")?1:2});var X_S;var T6=function(){var J=_.h.apply(this,arguments)||this;J.fixie=!1;J.fullWidth=!1;return J};
_.D(T6,_.h);T6.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richMetadataRenderer:{component:"ytd-rich-metadata-renderer",properties:{fixie:"[[fixie]]",fullWidth:"[[fullWidth]]"}}}}}};
T6.prototype.computeHasDividerLine=function(J){return J};
_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],T6.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],T6.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.R("design:type",Boolean)],T6.prototype,"hasDividerLine",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],T6.prototype,"fixie",void 0);_.O([_.U(),_.R("design:type",Object)],T6.prototype,"fullWidth",void 0);
T6=_.O([_.E({is:"ytd-rich-metadata-row-renderer",disableElementRegistration:!0})],T6);
_.v(T6,"ytd-rich-metadata-row-renderer",function(){if(X_S!==void 0)return X_S;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return X_S=J},{mode:1});var ww=function(){var J=_.h.apply(this,arguments)||this;J.engagementPanelContent=!1;J.fixie=!1;J.fullWidth=!1;return J};
_.D(ww,_.h);
ww.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"}}}};
ww.prototype.computeCollapsibleItems=function(J,c,m){return J===void 0||c===void 0||m===void 0||m?[]:J.slice(c)};
ww.prototype.computeAlwaysShownItems=function(J,c){return J&&J.length?J.slice(0,c):[]};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],ww.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],ww.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],ww.prototype,"data",void 0);_.O([_.U({value:!1}),_.R("design:type",Boolean)],ww.prototype,"collapsed",void 0);
_.O([_.U({computed:"computeAlwaysShownItems(data.rows,data.collapsedItemCount)"}),_.R("design:type",Array)],ww.prototype,"alwaysShownItems",void 0);_.O([_.U({computed:"computeCollapsibleItems(data.rows,data.collapsedItemCount,collapsed)"}),_.R("design:type",Array)],ww.prototype,"collapsibleItems",void 0);_.O([_.U(),_.R("design:type",Object)],ww.prototype,"engagementPanelContent",void 0);_.O([_.U(),_.R("design:type",Object)],ww.prototype,"fixie",void 0);
_.O([_.U(),_.R("design:type",Object)],ww.prototype,"fullWidth",void 0);ww=_.O([_.E({is:"ytd-metadata-row-container-renderer",disableElementRegistration:!0})],ww);
_.v(ww,"ytd-metadata-row-container-renderer",function(){if(Wgp!==void 0)return Wgp;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return Wgp=J},{mode:1});var Zbs;var rw=function(){var J=_.h.apply(this,arguments)||this;J.currentPageUrl="";J.baseUrl="";J.isHiddenByUser=null;J.hidden=!1;J.showAboveScrim=!1;J.watchNextGrid=_.w("kevlar_watch_grid");J.modernButtons=_.w("web_modern_buttons");J.roundedContainer=!0;J.noBorder=!1;J.roundBackground=!_.w("live_chat_round_background_killswitch");J.overflowHideChat=_.w("live_chat_overflow_hide_chat");J.forceDarkTheme=!1;J.theaterWatchWhile=!1;J.isListeningForPlayerProgress=!1;J.JSC$19955_playerEvents=new Map;J.isFrameReady=
!1;J.player=null;J.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 J};
_.D(rw,_.h);_.V=rw.prototype;_.V.onShowHideChat=function(){this.isHiddenByUser=!this.collapsed;_.bJ(this.hostElement,"yt-set-live-chat-collapsed",[this.collapsed])};
_.V.created=function(){var J=this;this.handleIframeEventListener=function(c){J.handleIframeEvent(c)};
this.handleKeyboardEventListener=function(c){J.handleKeyboardEvent(c)};
this.JSC$19955_playerEvents.set("onVideoProgress",this.playerProgressHandler);this.JSC$19955_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$19955_playerEvents.set("onAdEnd",this.playerAdEndHandler);this.JSC$19955_playerEvents.set("onStateChange",this.playerStateChangeHandler);this.JSC$19955_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.V.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()};
_.V.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};
_.V.computeBaseUrl=function(J){var c="/live_chat";this.isChatReplay()&&(c="/live_chat_replay");return _.jo(_.eo(_.Qh(_.O7(J),c),null),"").toString()};
_.V.dataChanged=function(){_.w("web_watch_theater_chat")&&(this.isHiddenByUser=null)};
_.V.urlChanged=function(){if(this.url!==void 0){this.isFrameReady=!this.isChatReplay();var J=this.url;if(this.isChatReplay()&&this.player){var c=Math.floor(this.player.getProgressState().current*1E3);J=_.Ra(_.O7(J),"playerOffsetMs",c.toString()).toString()}c=this.chatframe;try{var m=J==="about:blank"?_.OPt:_.n1(J),b=c.contentDocument.location,x=_.Dx(m);x!==void 0&&b.replace(x)}catch(P){c.src=J}}};
_.V.collapsedChanged=function(){_.cA(this.hostElement,"yt-chat-collapsed-changed",this.collapsed)};
_.V.handleIframeEvent=function(J){if(J&&this.baseUrl.startsWith(J.origin)&&J.source===this.chatframe.contentWindow&&_.cB(J.data))if(J.data["yt-iframed-buyflow-launcher"])this.handleBuyflowMessages(J);else if(J.data["yt-iframed-player-progress-relay"])this.handleChatFrameReady();else if(J.data["yt-show-feedback-dialog"]){var c=_.BG().resolve(_.y6(_.rQ6));if(c){var m=J.ports,b;m&&m.length&&(b=function(){m[0].postMessage({})});
J=J.data["yt-show-feedback-dialog"];c.showFeedbackDialog(J.customProductData,J.feedbackContent,b,J.bucket)}}else if(J.data["yt-show-survey"])_.cA(this.hostElement,"yt-show-survey",J.data["yt-show-survey"]);else if(J.data["yt-purchase-membership"])_.BG().resolve(_.gu).resolveCommand(J.data["yt-purchase-membership"],{form:{element:this.hostElement}});else if(J.data["yt-tunnel-out-live-service-request"])this.ytComponentBehavior.resolveCommand(J.data["yt-tunnel-out-live-service-request"]);else if(J.data["yt-user-activity"])_.JI();
else if(J.data["yt-attach-live-chat-response-tracking-params"])this.attachLiveChatResponseVeTrackingParams(J.data["yt-attach-live-chat-response-tracking-params"].trackingParams);else if(J.data["yt-open-popup"])this.ytOpenPopupBehavior.openPopup(J.data["yt-open-popup"]);else if(J.data["yt-log-flow-logging-event-command"])this.ytComponentBehavior.resolveCommand(J.data["yt-log-flow-logging-event-command"]);else if(J.data["yt-hide-live-chat"])this.onShowHideChat();else J.data["yt-report-moderation-state-log"]&&
this.player&&(c={cpn:this.player.getVideoData().cpn},_.zB("liveChatBeingModerated",c))};
_.V.attachLiveChatResponseVeTrackingParams=function(J){J=_.n7(J);var c=_.Y3(),m=_.$y("liveChatRenderer.trackingParams",this.data);c&&m&&_.$2(c,_.n7(m),J)};
_.V.handleBuyflowMessages=function(J){var c=J.data["yt-iframed-buyflow-launcher"].encryptedPurchaseParams,m=J.data["yt-iframed-buyflow-launcher"].serializedTransactionFlowLoggingParams,b=J.data["yt-iframed-buyflow-launcher"].serializedPaymentsClientParams;_.exQ(_.mm(_.vj),c.replace(/-/g,"+").replace(/_/g,"/"),function(x){J.ports[0].postMessage({success:!0,buyFlowResponse:x})},void 0,function(x){J.ports[0].postMessage({success:!1,
error:x&&x.message||"Buyflow rejected without error."})},_.HA().get("hl"),void 0,function(){J.ports[0].postMessage({closed:!0})},m,b)};
_.V.setupPlayerProgressRelay=function(){var J=this;if(!this.isListeningForPlayerProgress){var c=_.jp();c!=null&&c.getPlayerPromise&&(c.getPlayerPromise().then(function(m){J.playerApiReady(m)}),this.isListeningForPlayerProgress=!0)}};
_.V.handleChatFrameReady=function(){this.isFrameReady=!0;this.player&&this.player.getAdState()===1&&this.postToContentWindow({"yt-player-ad-start":""})};
_.V.playerApiReady=function(J){this.setPlayer(J)};
_.V.playerProgressHandler=function(){if(this.player){var J=this.player.getProgressState();this.postToContentWindow({"yt-player-video-progress":J.current})}};
_.V.playerAdStartHandler=function(J){this.postToContentWindow({"yt-player-ad-start":J})};
_.V.playerAdEndHandler=function(){this.postToContentWindow({"yt-player-ad-end":!0})};
_.V.playerStateChangeHandler=function(J){this.postToContentWindow({"yt-player-state-change":J})};
_.V.setPlayer=function(J){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19955_playerEvents);J&&(this.player=J,this.ytPlayerListenerBehavior.listenToPlayerEvents(J,this.JSC$19955_playerEvents),_.cA(this.hostElement,"player-api-ready"))};
_.V.liveChatPageUrl=function(J,c,m,b){return!m||c?"about:blank":m.liveChatRenderer?(c=_.O7(this.currentPageUrl).JSC$8042_queryData_,Kdp(c),J=_.O7(J),c.add("continuation",m.liveChatRenderer.continuations[0].reloadContinuationData.continuation),m=_.wB()==="USER_INTERFACE_THEME_DARK",(b||m)&&c.add("dark_theme","true"),_.eo(J,c),b=_.O7(J.toString()),m=b.JSC$8042_queryData_,"SESSION_INDEX"in _.Zc&&(m.add("authuser",_.Ub("SESSION_INDEX")),"DELEGATED_SESSION_ID"in _.Zc&&m.add("pageId",_.Ub("DELEGATED_SESSION_ID"))),
"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"in _.Zc&&m.add("sdc",_.Ub("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT")),b.toString()):""};
_.V.isCollapsed=function(J,c){return c!==null?c:this.isChatReplay()||J&&J.conversationBarRenderer&&J.conversationBarRenderer.availabilityMessage?!0:J?J.liveChatRenderer?J.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_COLLAPSED":!_.w("live_chat_hide_premiere_replay_message")||J.conversationBarRenderer&&J.conversationBarRenderer.availabilityMessage?!1:!0:!1};
_.V.isHidden=function(J,c,m){var b=c&&c.conversationBarRenderer&&c.conversationBarRenderer.availabilityMessage,x=c&&c.liveChatRenderer&&c.liveChatRenderer.showHideButton,P=c&&c.liveChatRenderer&&c.liveChatRenderer.showButton;return m&&J&&!b&&!P||!m&&J&&!b&&!x?!0:c&&c.liveChatRenderer&&c.liveChatRenderer.initialDisplayState?c.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_HIDDEN":!1};
_.V.computeButtonOverride=function(J,c){if(J&&c)return{type:"outline"}};
_.V.setCollapsedState=function(J){_.L(J,_.UkL)&&(this.isHiddenByUser=!!_.L(J,_.UkL).collapsed,!this.isHiddenByUser&&_.w("enable_teaser_framework_web_client")&&_.m9(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement]))};
_.V.forwardReduxActionToIframe=function(J){this.postToContentWindow({"yt-live-chat-forward-redux-action":J})};
_.V.onLoopRangeChange=function(J){this.showAboveScrim=!(J==null||!J.postId)};
_.V.onDarkThemeAction=function(){this.sendDarkThemePostMessage(!0)};
_.V.onLightThemeAction=function(){this.sendDarkThemePostMessage(!1)};
_.V.onClosePdgBuyFlow=function(){this.postToContentWindow({"yt-live-chat-close-buy-flow":!0})};
_.V.sendDarkThemePostMessage=function(J){this.postToContentWindow({"yt-live-chat-set-dark-theme":J})};
_.V.onLiveChatBuyFlowCallback=function(J){this.postToContentWindow({"yt-live-chat-buy-flow-callback":J})};
_.V.handleKeyboardEvent=function(J){(0,_.Lw.containsValue)(Iz4,J.keyCode)&&this.postToContentWindow({"yt-live-chat-keyboard-event":{eventType:J.type,keyCode:J.keyCode}})};
_.V.isChatReplay=function(){return!!(this.data&&this.data.liveChatRenderer&&this.data.liveChatRenderer.isReplay)};
_.V.postToContentWindow=function(J){if(this.isFrameReady)try{var c=window.location.protocol+"//"+window.location.host,m;(m=this.chatframe)!=null&&m.contentWindow?this.chatframe.contentWindow.postMessage(J,c):_.qz(new _.w3("Tried posting a message to an iframe with no content window",J))}catch(b){_.Xc(b)}};
_.V.shouldHideChatFrame=function(J){return J&&_.w("hide_live_chat_button_when_collapsed")};
_.eE.Object.defineProperties(rw.prototype,{enableShowWithoutHideChatButton:{configurable:!0,enumerable:!0,get:function(){if(_.w("live_chat_overflow_hide_chat")||_.w("web_watch_chat_hide_button_killswitch"))return _.w("live_chat_overflow_hide_chat");var J,c,m,b;return!!((J=this.data)==null?0:(c=J.liveChatRenderer)==null?0:(m=c.header)==null?0:(b=m.liveChatHeaderRenderer)==null?0:b.collapseButton)}}});
rw.prototype.collapsedChanged=rw.prototype.collapsedChanged;rw.prototype.urlChanged=rw.prototype.urlChanged;rw.prototype.dataChanged=rw.prototype.dataChanged;rw.prototype.onShowHideChat=rw.prototype.onShowHideChat;_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],rw.prototype,"ytActionHandlerBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],rw.prototype,"ytRendererBehavior",void 0);
_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],rw.prototype,"ytComponentBehavior",void 0);_.O([_.f(_.Ex.YtPlayerListenerBehavior),_.R("design:type",_.vX)],rw.prototype,"ytPlayerListenerBehavior",void 0);_.O([_.f(_.M7.YtOpenPopupBehavior),_.R("design:type",Object)],rw.prototype,"ytOpenPopupBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],rw.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],rw.prototype,"currentPageUrl",void 0);
_.O([_.U({computed:"computeBaseUrl(currentPageUrl,data)"}),_.R("design:type",Object)],rw.prototype,"baseUrl",void 0);_.O([_.U({computed:"liveChatPageUrl(baseUrl, collapsed, data, forceDarkTheme)"}),_.R("design:type",String)],rw.prototype,"url",void 0);_.O([_.U(),_.R("design:type",Object)],rw.prototype,"isHiddenByUser",void 0);_.O([_.U({reflectToAttribute:!0,computed:"isHidden(collapsed, data, enableShowWithoutHideChatButton)"}),_.R("design:type",Object)],rw.prototype,"hidden",void 0);
_.O([_.U({reflectToAttribute:!0,computed:"isCollapsed(data,isHiddenByUser)"}),_.R("design:type",Boolean)],rw.prototype,"collapsed",void 0);_.O([_.U({reflectToAttribute:!0,computed:"shouldHideChatFrame(collapsed)"}),_.R("design:type",Boolean)],rw.prototype,"hideChatFrame",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],rw.prototype,"showAboveScrim",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],rw.prototype,"watchNextGrid",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],rw.prototype,"modernButtons",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],rw.prototype,"roundedContainer",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],rw.prototype,"noBorder",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],rw.prototype,"roundBackground",void 0);
_.O([_.U({computed:"computeButtonOverride(collapsed,modernButtons)"}),_.R("design:type",Object)],rw.prototype,"toggleButtonOverride",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],rw.prototype,"overflowHideChat",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],rw.prototype,"forceDarkTheme",void 0);_.O([_.q("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],rw.prototype,"enableShowWithoutHideChatButton",null);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],rw.prototype,"theaterWatchWhile",void 0);_.O([_.Iu("#chatframe"),_.R("design:type",HTMLIFrameElement)],rw.prototype,"chatframe",void 0);_.O([_.ps("yt-toggle-button"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],rw.prototype,"onShowHideChat",null);_.O([_.kr("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],rw.prototype,"dataChanged",null);
_.O([_.NE("url"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],rw.prototype,"urlChanged",null);_.O([_.NE("collapsed"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],rw.prototype,"collapsedChanged",null);rw=_.O([_.E({is:"ytd-live-chat-frame",disableElementRegistration:!0})],rw);
_.v(rw,"ytd-live-chat-frame",function(){if(Zbs!==void 0)return Zbs;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return Zbs=J},{mode:1});var qdF;var sU=function(){var J=_.h.apply(this,arguments)||this;J.modern=_.w("web_modern_buttons");J.buttonOverrides={style:"call-to-action",type:"filled"};return J};
_.D(sU,_.h);sU.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=_.XB(this.data.backgroundColor)))};
sU.prototype.onHeadlineClick=function(){if(this.data&&this.data.headline){var J=this.getFormattedStringLoggingDirectives(this.data.headline);J&&this.rendererBehavior.logExplicitClick(J)}};
sU.prototype.onDescriptionClick=function(){if(this.data&&this.data.description){var J=this.getFormattedStringLoggingDirectives(this.data.description);J&&this.rendererBehavior.logExplicitClick(J)}};
sU.prototype.getFormattedStringLoggingDirectives=function(J){return J&&J.runs&&J.runs.length>0&&J.runs[0]&&J.runs[0].loggingDirectives?J.runs[0].loggingDirectives:null};
sU.prototype.dataChanged=sU.prototype.dataChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],sU.prototype,"rendererBehavior",void 0);_.O([_.f(T5R.YtMacroReplacementBehavior),_.R("design:type",Object)],sU.prototype,"macroReplacementBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],sU.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],sU.prototype,"navigationEndpoint",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],sU.prototype,"enableColors",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],sU.prototype,"modern",void 0);_.O([_.U(),_.R("design:type",Object)],sU.prototype,"buttonOverrides",void 0);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],sU.prototype,"dataChanged",null);sU=_.O([_.E({is:"ytd-action-basic-immersive-content-renderer",disableElementRegistration:!0})],sU);
_.v(sU,"ytd-action-basic-immersive-content-renderer",function(){if(qdF!==void 0)return qdF;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return qdF=J},{mode:1});var Uj5;var SdR;var LP=function(){return _.h.apply(this,arguments)||this};
_.D(LP,_.h);LP.prototype.dataChanged=function(){var J;((J=this.data)==null?void 0:J.backgroundColor)!==void 0&&_.V1(this.hostElement,{"--bgu-color":_.XB(this.data.backgroundColor)})};
LP.prototype.onImageTileClick=function(){var J;((J=this.data)==null?0:J.navigationEndpoint)&&_.cA(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});var c;((c=this.data)==null?0:c.clickCommand)&&this.componentBehavior.resolveCommand(this.data.clickCommand)};
_.eE.Object.defineProperties(LP.prototype,{hasBackgroundColor:{configurable:!0,enumerable:!0,get:function(){var J;return((J=this.data)==null?void 0:J.backgroundColor)!==void 0}},
getObjectFit:{configurable:!0,enumerable:!0,get:function(){var J;if(((J=this.data)==null?void 0:J.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 J;return((J=this.data)==null?void 0:J.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"}},
getSecondaryDetails:{configurable:!0,enumerable:!0,get:function(){var J,c,m;if(((J=this.data)==null?void 0:(c=J.detailsLine)==null?void 0:c.texts)!=null&&((m=this.data)==null?void 0:m.detailsLine.texts.length)>0){var b;return(b=this.data)==null?void 0:b.detailsLine.texts.map(function(x){return x.text}).join("")}return null}},
getOptionalDetails:{configurable:!0,enumerable:!0,get:function(){var J,c,m;if(((J=this.data)==null?void 0:(c=J.optionalDetailsLine)==null?void 0:c.texts)!=null&&((m=this.data)==null?void 0:m.optionalDetailsLine.texts.length)>0){var b;return(b=this.data)==null?void 0:b.optionalDetailsLine.texts.map(function(x){return x.text}).join("")}return null}}});
LP.prototype.dataChanged=LP.prototype.dataChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],LP.prototype,"rendererBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],LP.prototype,"componentBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],LP.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.q("data.backgroundColor"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],LP.prototype,"hasBackgroundColor",null);
_.O([_.q("data.objectFit"),_.R("design:type",Object),_.R("design:paramtypes",[])],LP.prototype,"getObjectFit",null);_.O([_.U({reflectToAttribute:!0}),_.q("data.tileRenderingStyle"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],LP.prototype,"hasTileMetadata",null);_.O([_.q("data.detailsLine"),_.R("design:type",Object),_.R("design:paramtypes",[])],LP.prototype,"getSecondaryDetails",null);
_.O([_.q("data.optionalDetailsLine"),_.R("design:type",Object),_.R("design:paramtypes",[])],LP.prototype,"getOptionalDetails",null);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],LP.prototype,"dataChanged",null);LP=_.O([_.E({is:"ytd-image-tile-renderer",disableElementRegistration:!0})],LP);
_.v(LP,"ytd-image-tile-renderer",function(){if(SdR!==void 0)return SdR;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return SdR=J},{mode:1});var hx5;var DH=function(){return _.h.apply(this,arguments)||this};
_.D(DH,_.h);DH.prototype.getOpenLinkIcon=function(){return _.w("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"open_in_new"};
DH.prototype.onSitelinkTap=function(){_.cA(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});if(this.data&&this.data.clickCommands)if(_.w("kevlar_command_handler_migration_killswitch"))_.PA(this.hostElement,this.data.clickCommands,this.hostElement);else for(var J=_.M(this.data.clickCommands),c=J.next();!c.done;c=J.next())this.ytComponentBehavior.resolveCommand(c.value)};
_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],DH.prototype,"ytComponentBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],DH.prototype,"rendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],DH.prototype,"data",void 0);DH=_.O([_.E({is:"ytd-sitelink-renderer",disableElementRegistration:!0})],DH);
_.v(DH,"ytd-sitelink-renderer",function(){if(hx5!==void 0)return hx5;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return hx5=J},{mode:1});var WZ=function(){var J=_.h.apply(this,arguments)||this;J.paddingFix=_.w("enable_ads_web_ep_buenos_aires_and_padding_fix");return J};
_.D(WZ,_.h);WZ.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"}}}};
WZ.prototype.dataChanged=function(){var J=this;this.data&&this.data.impressionCommands&&this.data.impressionCommands.forEach(function(c){c.clickTrackingParams&&delete c.clickTrackingParams;J.ytMacroReplacementBehavior.sendServiceRequestAction([c])})};
WZ.prototype.shouldHideFooter=function(J){return!(J&&_.w("use_ads_engagement_panel_desktop_footer_cta"))};
_.eE.Object.defineProperties(WZ.prototype,{removeBorderFromImageTiles:{configurable:!0,enumerable:!0,get:function(){var J,c;return((J=this.data)==null?void 0:J.imageTileRenderers)===void 0||((c=this.data)==null?void 0:c.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(m){var b;return(b=_.L(m,ijF))==null?void 0:b.removeBorder})}},
useFooteredMetadataRenderingStyle:{configurable:!0,enumerable:!0,get:function(){var J,c;return((J=this.data)==null?void 0:J.imageTileRenderers)===void 0||((c=this.data)==null?void 0:c.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(m){var b;return((b=_.L(m,ijF))==null?void 0:b.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"})}}});
WZ.prototype.dataChanged=WZ.prototype.dataChanged;_.O([_.f(T5R.YtMacroReplacementBehavior),_.R("design:type",Object)],WZ.prototype,"ytMacroReplacementBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],WZ.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],WZ.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],WZ.prototype,"data",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],WZ.prototype,"paddingFix",void 0);_.O([_.U({reflectToAttribute:!0}),_.q("data.imageTileRenderers"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],WZ.prototype,"removeBorderFromImageTiles",null);_.O([_.U({reflectToAttribute:!0}),_.q("data.imageTileRenderers"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],WZ.prototype,"useFooteredMetadataRenderingStyle",null);
_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],WZ.prototype,"dataChanged",null);WZ=_.O([_.E({is:"ytd-action-engagement-panel-content-renderer",disableElementRegistration:!0})],WZ);
_.v(WZ,"ytd-action-engagement-panel-content-renderer",function(){if(Uj5!==void 0)return Uj5;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return Uj5=J},{mode:1});var djR;var $ju=_.Q1(function(J){var c=J.data;var m=J.customCommandResolver;J=_.oN("ad-grid-card-image-full-metadata-view-model");_.Rt(J,function(){return c().interaction},m);
_.gv(J,{visibilityCallback:function(b){var x,P=(x=c().interaction)==null?void 0:x.onFirstVisible;b&&P&&_.hd(P)},
showOption:_.QC});return _.C("ad-grid-card-image-full-metadata-view-model",{class:function(){var b;return((b=c().interaction)==null?0:b.onTap)?"ytwAdGridCardImageFullMetadataViewModelHostIsClickableAdComponent":"ytwAdGridCardImageFullMetadataViewModelHost"},
el:J,"aria-label":function(){var b,x;return(b=c().interaction)==null?void 0:(x=b.accessibility)==null?void 0:x.label}},_.C("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostImage"},_.C(_.wi,{data:function(){return c().adImage}},{adImageViewModel:function(b){return _.C(_.PU,{data:b.data,
customCommandResolver:m})}})),_.C("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadata"},_.C(_.n,{cond:function(){return c().headline},
then:function(b){return _.C(_.j8,{text:b,className:"ytwAdGridCardImageFullMetadataViewModelHostMetadataHeadline"})}}),_.C(_.n,{cond:function(){return c().detailsLine},
then:function(b){return _.C("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataPrimary"},_.C(_.wi,{data:b},{adDetailsLineViewModel:function(x){return _.C(_.BW,{data:x.data,customCommandResolver:m,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}}),_.C(_.n,{cond:function(){return c().secondaryDetailsLine},
then:function(b){return _.C("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataSecondary"},_.C(_.wi,{data:b},{adDetailsLineViewModel:function(x){return _.C(_.BW,{data:x.data,customCommandResolver:m,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}})))},"Ni");var GCp=_.Q1(function(J){var c=J.data;var m=J.customCommandResolver;J=_.oN("ad-grid-card-image-view-model");_.Rt(J,function(){return c().interaction},m);
_.gv(J,{visibilityCallback:function(b){var x,P=(x=c().interaction)==null?void 0:x.onFirstVisible;b&&P&&_.hd(P)},
showOption:_.QC});return _.C("ad-grid-card-image-view-model",{class:function(){var b;return((b=c().interaction)==null?0:b.onTap)?"ytwAdGridCardImageViewModelHostIsClickableAdComponent":"ytwAdGridCardImageViewModelHost"},
el:J,"aria-label":function(){var b,x;return(b=c().interaction)==null?void 0:(x=b.accessibility)==null?void 0:x.label}},_.C(_.wi,{data:function(){return c().adImage}},{adImageViewModel:function(b){return _.C(_.PU,{data:b.data,
customCommandResolver:m})}}),_.C("div",{class:"ytwAdGridCardImageViewModelHostCardBadge"},_.C(_.wi,{data:function(){return c().adCardBadge}},{adCardBadgeViewModel:_.cnZ})))},"Oi");var Ear=_.Q1(function(J){var c=J.data;var m=J.customCommandResolver;J=_.oN("ad-grid-card-text-view-model");_.Rt(J,function(){return c().interaction},m);
_.gv(J,{visibilityCallback:function(b){var x,P=(x=c().interaction)==null?void 0:x.onFirstVisible;b&&P&&_.hd(P)},
showOption:_.QC});return _.C("ad-grid-card-text-view-model",{class:function(){var b;return((b=c().interaction)==null?0:b.onTap)?"ytwAdGridCardTextViewModelHostIsClickableAdComponent":"ytwAdGridCardTextViewModelHost"},
el:J,"aria-label":function(){var b,x;return(b=c().interaction)==null?void 0:(x=b.accessibility)==null?void 0:x.label}},_.C("div",{class:"ytwAdGridCardTextViewModelHostMetadata"},_.C(_.n,{cond:function(){return c().title},
then:function(b){return _.C(_.j8,{text:b,className:"ytwAdGridCardTextViewModelHostMetadataHeadline"})}}),_.C("div",{class:function(){return _.w("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInline":"ytwAdGridCardTextViewModelHostMetadataDescription"}},_.C(_.Te,{each:function(){var b;
return((b=c())==null?void 0:b.descriptions)||[]},
keyBy:"INDEX"},function(b){return _.C(_.j8,{text:b,className:function(){return _.w("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInlineStringInline":"ytwAdGridCardTextViewModelHostMetadataDescriptionString"}})}))),_.C("div",{class:"ytwAdGridCardTextViewModelHostButton"},_.C(_.wi,{data:function(){return c().moreInfoButton}},{adButtonViewModel:function(b){return _.C(_.j7,{data:b.data,
customCommandResolver:m})}})))},"Pi");var vap=_.Q1(function(J){var c=J.data;var m=J.customCommandResolver;var b=J.adGridCardCollectionStyle;J=_.oN("ad-grid-card-collection-view-model");_.gv(J,{visibilityCallback:function(x){var P,p=(P=c().interaction)==null?void 0:P.onFirstVisible;x&&p&&_.hd(p)},
showOption:_.QC});return _.C("ad-grid-card-collection-view-model",{class:function(){return"ytwAdGridCardCollectionViewModelHost"},
el:J,style:function(){return"grid-template-columns: repeat("+XVe(b?b():c().style)+", minmax(0, 1fr));"}},_.C(_.wi,{data:function(){var x;
return(x=c())==null?void 0:x.gridCards}},{adGridCardImageViewModel:function(x){return _.C(GCp,{data:x.data,
customCommandResolver:m})},
adGridCardImageFullMetadataViewModel:function(x){return _.C($ju,{data:x.data,customCommandResolver:m})},
adGridCardTextViewModel:function(x){return _.C(Ear,{data:x.data,customCommandResolver:m})}}))},"Qi");_.lv(_.Q1(function(J){var c=J.data;J=_.oN("panel-text-icon-image-tiles-button-layout-content-view-model");_.Rt(J,function(){return c().interaction},Zpr);
_.gv(J,{visibilityCallback:function(m){var b,x=(b=c().interaction)==null?void 0:b.onFirstVisible;m&&x&&_.hd(x)},
showOption:_.QC});return _.C("panel-text-icon-image-tiles-button-layout-content-view-model",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHost",el:J},_.C("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostCardCollection"},_.C(_.n,{cond:_.zHq("(min-width: "+((0,_.Dm)()+_.S0)+"px)"),then:function(){return _.C(_.wi,{data:function(){return c().adGridCardCollection}},{adGridCardCollectionViewModel:function(m){return _.C(vap,{data:m.data,
customCommandResolver:Zpr})}})},
else:function(){return _.C(_.wi,{data:function(){return c().adGridCardCollection}},{adGridCardCollectionViewModel:function(m){return _.C(vap,{data:m.data,
customCommandResolver:Zpr,adGridCardCollectionStyle:"AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS"})}})}})),_.C("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostButton"},_.C(_.wi,{data:function(){return c().adButton}},{adButtonViewModel:function(m){return _.C(_.j7,{data:m.data,
customCommandResolver:Zpr})}})))},"Ri"),"panel-text-icon-image-tiles-button-layout-content-view-model",{props:{data:_.vt}});_.lv(_.Q1(function(J){var c=J.data;J=_.oN("panel-text-icon-text-grid-cards-sub-layout-content-view-model");_.Rt(J,function(){return c().interaction},qpF);
_.gv(J,{visibilityCallback:function(m){var b,x=(b=c().interaction)==null?void 0:b.onFirstVisible;m&&x&&_.hd(x)},
showOption:_.QC});return _.C("panel-text-icon-text-grid-cards-sub-layout-content-view-model",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHost",el:J},_.C("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostCardCollection"},_.C(_.wi,{data:function(){if(_.zHq("(min-width: "+((0,_.Dm)()+_.S0)+"px)")())var m=c().adGridCardCollection;else{m=Object.assign({},_.L(c().adGridCardCollection,nE5));var b;m.gridCards!==void 0&&((b=m.gridCards)==null?void 0:b.length)>1?m.style=
"AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":m.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN";m={adGridCardCollectionViewModel:m}}return m}},{adGridCardCollectionViewModel:function(m){return _.C(vap,{data:m.data,
customCommandResolver:qpF})}})),_.C("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostButton"},_.C(_.wi,{data:function(){return c().adButton}},{adButtonViewModel:function(m){return _.C(_.j7,{data:m.data,
customCommandResolver:qpF})}})))},"Si"),"panel-text-icon-text-grid-cards-sub-layout-content-view-model",{props:{data:_.vt}});var z6=function(){var J=_.h.apply(this,arguments)||this;J.actionMap={"yt-ad-engagement-panel-click-action":"handleAdsEngagementPanelClick"};return J};
_.D(z6,_.h);_.V=z6.prototype;_.V.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"}}}};
_.V.attached=function(){this.getDataFromPlayerAndRender()};
_.V.dataChanged=function(){this.getDataFromPlayerAndRender()};
_.V.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=null)};
_.V.getDataFromPlayerAndRender=function(){var J=this,c=_.ep(this.hostElement);c&&c.getPlayerPromise().then(function(m){J.getCachedDataAndListen(m)})};
_.V.getCachedDataAndListen=function(J){this.resolveCachedActions();this.player||(this.ytPlayerListenerBehavior.listenToPlayerEvent(J,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.listenToPlayerEvent(J,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=J)};
_.V.resolveCachedActions=function(){var J=_.$y("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction");(J=J&&J())&&!_.Lw.isEmpty(J)&&this.sendUpdateEngagementPanelAction(J);(J=(J=_.$y("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction"))&&J())&&!_.Lw.isEmpty(J)&&this.sendChangeEngagementPanelVisibilityAction(J);(J=(J=_.$y("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand"))&&J())&&!_.Lw.isEmpty(J)&&this.sendScrollToEngagementPanelCommand(J)};
_.V.sendUpdateEngagementPanelAction=function(J){var c;_.m9(this.hostElement,"yt-update-engagement-panel-action",[(c=_.Lw.get(J,"action"))!=null?c:J])};
_.V.sendChangeEngagementPanelVisibilityAction=function(J){_.m9(this.hostElement,"yt-change-engagement-panel-visibility-action",[J])};
_.V.sendScrollToEngagementPanelCommand=function(J){_.m9(this.hostElement,"yt-scroll-to-engagement-panel-command",[J])};
_.V.handleAdsEngagementPanelClick=function(){this.player?(this.player.onAdUxClicked("ads-engagement-panel"),_.w("pause_ad_video_on_desktop_engagement_panel_click")&&this.player.pauseVideo()):_.qz(Error("fm"))};
z6.prototype.dataChanged=z6.prototype.dataChanged;_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],z6.prototype,"actionHandlerBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],z6.prototype,"componentBehavior",void 0);_.O([_.f(_.Ex.YtPlayerListenerBehavior),_.R("design:type",_.vX)],z6.prototype,"ytPlayerListenerBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],z6.prototype,"ytRendererBehavior",void 0);
_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],z6.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],z6.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],z6.prototype,"player",void 0);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],z6.prototype,"dataChanged",null);z6=_.O([_.E({is:"ytd-ads-engagement-panel-content-renderer",disableElementRegistration:!0})],z6);
_.v(z6,"ytd-ads-engagement-panel-content-renderer",function(){if(djR!==void 0)return djR;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);
return djR=J},{mode:1});var Obe;var ul=function(){var J=_.h.apply(this,arguments)||this;J.player=null;J.JSC$19992_playerEvents=new Map;J.actionMap={"yt-delete-clip-engagement-panel-command":"onYtDeleteClipEngagementPanelCommand"};return J};
_.D(ul,_.h);_.V=ul.prototype;_.V.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]]"}}}}}};
_.V.created=function(){this.player=null;this.JSC$19992_playerEvents=new Map;this.JSC$19992_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange);this.JSC$19992_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$19992_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$19992_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.V.attached=function(){var J=this,c=_.ep();this.set("isDarkTheme",!!document.documentElement.hasAttribute("dark"));c&&c.getPlayerPromise().then(function(m){J.setPlayer(m);J.set("isPageLoad",!1)})};
_.V.setPlayer=function(J){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19992_playerEvents);this.set("player",J);J&&(this.ytPlayerListenerBehavior.listenToPlayerEvents(J,this.JSC$19992_playerEvents),J.getPresentingPlayerType()===2&&this.playerAdStartHandler())};
_.V.onLoopRangeChange=function(J){var c=_.BG().resolve(_.y6(_.oO));if((!c||c.isOnWatch())&&this.hostElement.clientHeight){var m;!J&&((m=this.data)==null?0:m.onScrubExit)&&this.ytComponentBehavior.resolveCommand(this.data.onScrubExit)}};
_.V.onVideoProgress=function(J){var c,m,b=((c=this.player)==null?void 0:(m=c.getPresentingPlayerType)==null?void 0:m.call(c))===2;this.isAdPlaying!==b&&this.set("isAdPlaying",b);var x;if(!b&&(x=this.player)!=null&&x.getLoopRange()){m=this.player.getLoopRange();c=m.startTimeMs;m=m.endTimeMs;b=this.player.getProgressState(1).seekableStart;var P;c<b*1E3&&((P=this.data)==null?0:P.onClipViewInvalidCommand)&&(this.player.seekToLiveHead(),this.ytComponentBehavior.resolveCommand(this.data.onClipViewInvalidCommand));
J=m<J*1E3;var p;((p=this.player)==null?0:p.getLoopRange())&&J&&this.player.seekTo(c/1E3)}};
_.V.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.V.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.V.onYtDeleteClipEngagementPanelCommand=function(J){_.L(J,UNs).command&&this.ytComponentBehavior.resolveCommand(_.L(J,UNs).command)};
_.eE.Object.defineProperties(ul.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var J;return((J=this.data)==null?void 0:J.voteCount)||_.v2("0")}},
channelEndpoint:{configurable:!0,enumerable:!0,get:function(){var J;return(J=this.data)==null?void 0:J.channelNavigationEndpoint}},
channelHref:{configurable:!0,enumerable:!0,get:function(){return this.ytComponentBehavior.computeHref_(this.channelEndpoint)}}});
_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],ul.prototype,"ytComponentBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],ul.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],ul.prototype,"ytActionHandlerBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],ul.prototype,"ytRendererBehavior",void 0);
_.O([_.f(_.Ex.YtPlayerListenerBehavior),_.R("design:type",_.vX)],ul.prototype,"ytPlayerListenerBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],ul.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],ul.prototype,"isAdPlaying",void 0);_.O([_.U({reflectToAttribute:!0,value:!0}),_.R("design:type",Boolean)],ul.prototype,"isPageLoad",void 0);_.O([_.U({reflectToAttribute:!0,value:!0}),_.R("design:type",Boolean)],ul.prototype,"isDarkTheme",void 0);
_.O([_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],ul.prototype,"voteCount",null);_.O([_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],ul.prototype,"channelEndpoint",null);_.O([_.q("channelEndpoint"),_.R("design:type",Object),_.R("design:paramtypes",[])],ul.prototype,"channelHref",null);ul=_.O([_.E({is:"ytd-clip-attribution-renderer",disableElementRegistration:!0})],ul);
_.v(ul,"ytd-clip-attribution-renderer",function(){if(Obe!==void 0)return Obe;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return Obe=J},{mode:1});var ApR;var fP=function(){var J=_.h.apply(this,arguments)||this;J.player=null;J.JSC$19997_playerEvents=new Map;return J};
_.D(fP,_.h);_.V=fP.prototype;_.V.created=function(){this.player=null;this.JSC$19997_playerEvents=new Map;this.JSC$19997_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$19997_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$19997_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.V.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.V.attached=function(){var J=this,c=_.ep();c&&c.getPlayerPromise().then(function(m){J.setPlayer(m);J.set("isPageLoad",!1)})};
_.V.setPlayer=function(J){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19997_playerEvents);this.set("player",J);if(J){this.ytPlayerListenerBehavior.listenToPlayerEvents(J,this.JSC$19997_playerEvents);var c;(J==null?void 0:(c=J.getPresentingPlayerType)==null?void 0:c.call(J))===2&&this.playerAdStartHandler()}};
_.V.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.V.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.V.onVideoProgress=function(){var J,c,m=((J=this.player)==null?void 0:(c=J.getPresentingPlayerType)==null?void 0:c.call(J))===2;this.isAdPlaying!==m&&this.set("isAdPlaying",m)};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],fP.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],fP.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.Ex.YtPlayerListenerBehavior),_.R("design:type",_.vX)],fP.prototype,"ytPlayerListenerBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],fP.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],fP.prototype,"isAdPlaying",void 0);
_.O([_.U({reflectToAttribute:!0,value:!0}),_.R("design:type",Boolean)],fP.prototype,"isPageLoad",void 0);fP=_.O([_.E({is:"ytd-clip-section-footer-renderer",disableElementRegistration:!0})],fP);
_.v(fP,"ytd-clip-section-footer-renderer",function(){if(ApR!==void 0)return ApR;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return ApR=J},{mode:1});var RxR;var oar;var Yv=function(){return _.h.apply(this,arguments)||this};
_.D(Yv,_.h);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Yv.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Yv.prototype,"data",void 0);Yv=_.O([_.E({is:"ytd-clip-ad-state-renderer",disableElementRegistration:!0})],Yv);
_.v(Yv,"ytd-clip-ad-state-renderer",function(){if(oar!==void 0)return oar;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return oar=J},{mode:1});var Qk4;var Xr=function(){var J=_.h.apply(this,arguments)||this;J.value="";J.valid=!1;J.userChangedValue=!1;J.disabled=!1;J.actionMap={"yt-clip-creation-disable":"onClipCreationDisable","yt-clip-creation-enable":"onClipCreationEnable","yt-clip-creation-visibility-changed":"onClipCreationVisibilityChange"};return J};
_.D(Xr,_.h);_.V=Xr.prototype;_.V.detached=function(){this.userChangedValue=!1};
_.V.handleKeyDown=function(J){if(_.ce)var c=13;else _.gku&&_.ms?c=13:c=13;J.keyCode===c&&J.preventDefault()};
_.V.handleInput=function(){var J=_.Bj(this.hostElement).querySelector("#title");if(J){var c=(J.value||"").replace(/\r|\n/g," ");this.set("value",c);J.value=c;this.valid=J.validate();this.userChangedValue=!0}};
_.V.handleBlur=function(){this.valid=_.Bj(this.hostElement).querySelector("#title").validate()};
_.V.onValueChanged=function(){_.cA(this.hostElement,"title-changed",{title:this.value})};
_.V.onValidChanged=function(){_.cA(this.hostElement,"title-valid-changed",{valid:this.valid})};
_.V.setInput=function(J,c){var m=_.Bj(this.hostElement).querySelector("#title");m&&(m.value=J,this.handleInput(),c&&(m.invalid=!1,this.valid=!0))};
_.V.onClipCreationDisable=function(){this.set("disabled",!0)};
_.V.onClipCreationEnable=function(){this.set("disabled",!1)};
_.V.onClipCreationVisibilityChange=function(J){var c=this;J.visible?requestAnimationFrame(function(){var m;((m=_.Bj(c.hostElement).querySelector("#title"))==null?void 0:m.inputElement).textarea.focus()}):(this.setInput("",!0),this.userChangedValue=!1)};
Xr.prototype.onValidChanged=Xr.prototype.onValidChanged;Xr.prototype.onValueChanged=Xr.prototype.onValueChanged;Xr.prototype.handleBlur=Xr.prototype.handleBlur;Xr.prototype.handleInput=Xr.prototype.handleInput;Xr.prototype.handleKeyDown=Xr.prototype.handleKeyDown;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Xr.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],Xr.prototype,"ytActionHandlerBehavior",void 0);
_.O([_.U(),_.R("design:type",Object)],Xr.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],Xr.prototype,"value",void 0);_.O([_.U(),_.R("design:type",Object)],Xr.prototype,"valid",void 0);_.O([_.U(),_.R("design:type",Object)],Xr.prototype,"userChangedValue",void 0);_.O([_.U(),_.R("design:type",Object)],Xr.prototype,"disabled",void 0);_.O([_.ps("keydown"),_.R("design:type",Function),_.R("design:paramtypes",[KeyboardEvent]),_.R("design:returntype")],Xr.prototype,"handleKeyDown",null);
_.O([_.ps("input"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Xr.prototype,"handleInput",null);_.O([_.ps("blur"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Xr.prototype,"handleBlur",null);_.O([_.NE("value"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Xr.prototype,"onValueChanged",null);
_.O([_.NE("valid"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Xr.prototype,"onValidChanged",null);Xr=_.O([_.E({is:"ytd-clip-creation-text-input-renderer",disableElementRegistration:!0})],Xr);
_.v(Xr,"ytd-clip-creation-text-input-renderer",function(){if(Qk4!==void 0)return Qk4;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return Qk4=J},{mode:1});var ex1;var jks;var Fg4;var lD1;var yp4;var ZH=function(){var J=_.h.apply(this,arguments)||this;J.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled_","yt-clip-creation-enable":"onClipCreationEnable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};J.pendingStoryboardImages_={};J.pixelRatioBreakpoints_=["1dppx","1.5dppx","2dppx","3dppx"];J.tickLabelInterval=30;J.mediumTickInterval=5;J.largeTickInterval=15;J.aboveRulerHeight=32;J.rulerHeight=50;J.smallTickHeight=4;J.mediumTickHeight=8;J.largeTickHeight=16;J.mediaListeners_=
{};return J};
_.D(ZH,_.h);_.V=ZH.prototype;_.V.attached=function(){var J=this;this.updatePixelRatio_();this.pixelRatioBreakpoints_.forEach(function(c){c=_.M(["screen and (min-resolution: "+c+")","screen and (max-resolution: "+c+")"]);for(var m=c.next();!m.done;m=c.next()){m=m.value;var b=window.matchMedia(m);b&&(J.mediaListeners_[m]=J.updatePixelRatio_.bind(J),b.addEventListener?b.addEventListener("change",J.mediaListeners_[m]):b.addListener?b.addListener(J.mediaListeners_[m]):delete J.mediaListeners_[m])}})};
_.V.detached=function(){this.setPlayer(null);for(var J=_.M(Object.keys(this.mediaListeners_)),c=J.next();!c.done;c=J.next()){var m=c.value;c=this.mediaListeners_[m];(m=window.matchMedia(m))&&(m.removeEventListener?m.removeEventListener("change",c):m.removeListener&&m.removeListener(c))}this.mediaListeners_={};this.storyboardImages_&&this.splice("storyboardImages_",0,this.storyboardImages_.length)};
_.V.onVisibilityChangedAction_=function(J){var c=this;J.visible&&!this.player_&&(J=_.ep())&&J.getPlayerPromise().then(function(m){c.setPlayer(m)})};
_.V.setPlayer=function(J){J&&this.set("player_",J)};
_.V.updatePixelRatio_=function(){this.set("devicePixelRatio_",Math.max(1,window.devicePixelRatio))};
_.V.setUpCanvas_=function(){var J=this.rulerWidth,c=this.devicePixelRatio_,m=this.visible;this.set("canvasReady_",!1);if(m&&c!==0){m=this.aboveRulerHeight+this.rulerHeight;var b=_.Bj(this.hostElement).querySelector("#ticks");b.width=J*c;b.height=m*c;b.style.width=J+"px";b.style.height=m+"px";b.getContext("2d").scale(c,c);this.set("canvasReady_",!0)}};
_.V.drawRuler_=function(J,c,m,b,x,P,p,t,I,a,k,H){J&&m&&c&&(J=_.Bj(this.hostElement).querySelector("#ticks"),c=J.getContext("2d"),c.clearRect(0,0,J.width,J.height),c.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),c.lineWidth=2,c.beginPath(),c.moveTo(0,this.aboveRulerHeight),c.lineTo(J.width,this.aboveRulerHeight),c.moveTo(0,J.height),c.lineTo(J.width,J.height),c.stroke(),this.drawRulerTicks_(J,P,x,b),this.drawStoryboardImages_(J,m,P,x,b),c.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-themed-overlay-background"),
c.fillRect(0,this.aboveRulerHeight,this.timeToPixels_(p-P,b,!1),this.rulerHeight),m=this.timeToPixels_(t-P,b,!1),c.fillRect(m,this.aboveRulerHeight,J.width-m,this.rulerHeight),this.drawSpeedLines_(J,P,H))};
_.V.drawRulerTicks_=function(J,c,m,b){var x=J.getContext("2d");x.save();x.lineWidth=1;for(var P=Math.floor(Math.max(0,c-this.tickLabelInterval));P<c+m;P++){x.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled");var p=(P-c)*b;x.beginPath();x.moveTo(p,J.height);var t=this.smallTickHeight;P%this.largeTickInterval===0?t=this.largeTickHeight:P%this.mediumTickInterval===0&&(t=this.mediumTickHeight);x.lineTo(p,J.height-t);x.stroke();P%this.tickLabelInterval===0&&(x.font=
getComputedStyle(this.hostElement).getPropertyValue("font"),x.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled"),x.fillText(zF(P),p+4,12),x.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),x.moveTo(p,0),x.lineTo(p,this.aboveRulerHeight),x.stroke())}x.restore()};
_.V.percentToHex_=function(J){J=Math.round(J*255).toString(16);J.length<2&&(J="0"+J);return J};
_.V.drawSpeedLines_=function(J,c,m){var b=J.getContext("2d");b.save();var x=Math.min(25,Math.abs(m)-15)/25,P=J.width*.3*x,p=J.width*-.3,t=J.width*1.3,I=this.aboveRulerHeight;J=J.height;var a=Math.round(4*x),k=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-primary");k.length<7&&(k="#"+k.substring(1,4).repeat(2));var H=this.percentToHex_(.5+x/2);H=k+H;k+="00";if(x>0)for(x=0;x<a;x++){var T=p+Math.random()*(t-p),r=I+Math.random()*(J-I),W=P+c%P,Y=b.createLinearGradient(T,r,T+W,r);
m<0?(Y.addColorStop(0,H),Y.addColorStop(.4,H),Y.addColorStop(.9,k)):(Y.addColorStop(.1,k),Y.addColorStop(.6,H),Y.addColorStop(1,H));b.strokeStyle=Y;b.lineWidth=1;b.beginPath();b.moveTo(T,r);b.lineTo(T+W,r);b.stroke()}b.restore()};
_.V.getStoryboardForTime_=function(J,c,m){m===void 0&&(m=c.getNumberOfStoryboardLevels()-1);J=c.getStoryboardFrameIndex(J,m);return c.getStoryboardFrame(J,m)};
_.V.drawStoryboardImages_=function(J,c,m,b,x){if(!this.disabled){J=J.getContext("2d");var P=this.getStoryboardForTime_(0,c);if(P){var p=P.width/P.columns;P=P.height/P.rows;var t=p/P,I=this.rulerHeight*t;I=this.tickLabelInterval*(t<this.tickLabelInterval*x/this.rulerHeight?1/Math.floor(this.tickLabelInterval*x/I):Math.round(I/(this.tickLabelInterval*x)));var a=I*x,k=this.rulerHeight,H=a/this.rulerHeight,T=Math.floor(Math.max(0,m-I));for(T-=T%I;T<m+b;T+=I){var r=this.getStoryboardForTime_(T,c),W=this.getPreloadedStoryboard_(r.url);
if(W){var Y=(T-m)*x,Z=this.aboveRulerHeight,d=r.column*p,G=r.row*P;if(t<H){var e=k/(a/t);r=p;e*=P;G+=(P-e)/2}else r=a/(k*t)*p,e=P,d+=(p-r)/2;J.drawImage(W,d,G,r,e,Y,Z,a,k)}else this.fetchStoryboardImage_(r)}}}};
_.V.getPreloadedStoryboard_=function(J){return this.storyboardImages_.find(function(c){if(c.src==J)return!0;var m=c.src.indexOf(J);return m!=-1&&m==c.src.length-J.length})};
_.V.fetchStoryboardImage_=function(J){var c=this,m=this.getPreloadedStoryboard_(J.url),b=this.pendingStoryboardImages_[J.url];m||b!==void 0||(m=new Promise(function(x){var P=new Image(J.width,J.height);P.src=J.url;P.onload=function(){x(P)};
P.onerror=function(){x(null)}}),this.pendingStoryboardImages_[J.url]=m,m.then(function(x){x&&c.push("storyboardImages_",x);
return x}).finally(function(){delete c.pendingStoryboardImages_[J.url]}))};
_.V.onClipCreationEnable_=function(){this.set("forceRender_",this.forceRender_+1)};
_.V.timeToPixels_=function(J,c,m){J*=c;return m===void 0||m?J+"px":J};
_.V.onDarkModeToggled_=function(){this.set("forceRender_",this.forceRender_+1)};
ZH.prototype.drawRuler_=ZH.prototype.drawRuler_;ZH.prototype.setUpCanvas_=ZH.prototype.setUpCanvas_;_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],ZH.prototype,"ytActionHandlerBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],ZH.prototype,"ytRendererBehavior",void 0);_.O([_.U({value:0}),_.R("design:type",Number)],ZH.prototype,"start",void 0);_.O([_.U({value:30}),_.R("design:type",Number)],ZH.prototype,"end",void 0);
_.O([_.U({value:!1}),_.R("design:type",Boolean)],ZH.prototype,"visible",void 0);_.O([_.U(),_.R("design:type",Object)],ZH.prototype,"player_",void 0);_.O([_.U(),_.R("design:type",Number)],ZH.prototype,"tickSpacing",void 0);_.O([_.U(),_.R("design:type",Number)],ZH.prototype,"windowSizeSec",void 0);_.O([_.U({value:0}),_.R("design:type",Number)],ZH.prototype,"rulerWidth",void 0);_.O([_.U({value:0}),_.R("design:type",Number)],ZH.prototype,"rulerShift",void 0);
_.O([_.U({value:!1}),_.R("design:type",Boolean)],ZH.prototype,"canvasReady_",void 0);_.O([_.U({value:function(){return[]}}),
_.R("design:type",Array)],ZH.prototype,"storyboardImages_",void 0);_.O([_.U({value:!1,reflectToAttribute:!0}),_.R("design:type",Boolean)],ZH.prototype,"disabled",void 0);_.O([_.U({value:0}),_.R("design:type",Number)],ZH.prototype,"forceRender_",void 0);_.O([_.U({value:1}),_.R("design:type",Number)],ZH.prototype,"devicePixelRatio_",void 0);_.O([_.U({value:0}),_.R("design:type",Number)],ZH.prototype,"windowSpeed",void 0);
_.O([_.NE("visible","devicePixelRatio_","rulerWidth"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],ZH.prototype,"setUpCanvas_",null);
_.O([_.NE("visible","canvasReady_","player_","tickSpacing","windowSizeSec","rulerShift","start","end","storyboardImages_.*","forceRender_","disabled","windowSpeed"),_.R("design:type",Function),_.R("design:paramtypes",[Boolean,Boolean,Object,Number,Number,Number,Number,Number,Object,Number,Boolean,Number]),_.R("design:returntype")],ZH.prototype,"drawRuler_",null);ZH=_.O([_.uM({is:"yt-clip-creation-scrubber-canvas",disableElementRegistration:!0})],ZH);
_.v(ZH,"yt-clip-creation-scrubber-canvas",function(){if(yp4===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);yp4=J}J=yp4;return J},
{mode:2});var B5S;var gap;var qK=function(){var J=_.h.apply(this,arguments)||this;J.start=0;J.end=30;J.visible=!1;J.draggingLeft_=!1;J.draggingRight_=!1;J.draggingRuler_=!1;J.draggingWindow_=!1;J.seekableStart=0;J.seekableEnd=0;J.rulerWidth_=0;J.rulerShift_=0;J.windowSlideSpeed=0;J.disabled=!1;J.initialized=!1;J.durationAccessibilityLabel="";J.activeLoopRange_=!1;J.rulerDragMouseStart_=0;J.rulerDragRulerStart_=0;J.rulerDragStartTime_=0;J.rulerDragEndTime_=0;J.dragMouseLastX_=0;J.scrollInterval_=null;J.scrubberVe_=null;J.boundHandlers_=
{};J.actionMap={"yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return J};
_.D(qK,_.h);_.V=qK.prototype;
_.V.created=function(){var J=this;this.JSC$20010_playerEvents=new Map;this.JSC$20010_playerEvents.set("onVideoProgress",this.onVideoProgress_);this.JSC$20010_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete_);this.JSC$20010_playerEvents.set("onStateChange",this.onStateChange_);var c={mouseup:this.endDrag_,mousemove:this.handleMouseDrag_,resize:this.updateRulerSize_,handles_mousedown:this.beginHandleDrag_,ruler_mousedown:this.beginRulerDrag_};Object.keys(c).forEach(function(m){J.boundHandlers_[m]=c[m].bind(J)})};
_.V.attached=function(){this.activeLoopRange_=!1;_.Bj(this.hostElement).querySelector("#handles").addEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.Bj(this.hostElement).querySelector("#ticks").addEventListener("mousedown",this.boundHandlers_.ruler_mousedown);window.addEventListener("resize",this.boundHandlers_.resize);this.scrubberVe_=_.rs(156731)};
_.V.detached=function(){this.setPlayer(null);window.removeEventListener("resize",this.boundHandlers_.resize);this.removeMouseEventHandlers_();_.Bj(this.hostElement).querySelector("#handles").removeEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.Bj(this.hostElement).querySelector("#ticks").removeEventListener("mousedown",this.boundHandlers_.ruler_mousedown)};
_.V.onVisibilityChangedAction_=function(J){var c=this;J.visible&&!this.player_&&(J=_.ep())&&J.getPlayerPromise().then(function(m){c.setPlayer(m)})};
_.V.setPlayer=function(J){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$20010_playerEvents);J&&(this.set("player_",J),this.ytPlayerListenerBehavior.listenToPlayerEvents(J,this.JSC$20010_playerEvents))};
_.V.addMouseEventHandlers_=function(){window.addEventListener("mouseup",this.boundHandlers_.mouseup);window.addEventListener("mousemove",this.boundHandlers_.mousemove)};
_.V.removeMouseEventHandlers_=function(){window.removeEventListener("mouseup",this.boundHandlers_.mouseup);window.removeEventListener("mousemove",this.boundHandlers_.mousemove)};
_.V.beginHandleDrag_=function(J){this.disabled||(J.preventDefault(),this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1,this.dragMouseLastX_=J.clientX,J.target===_.Bj(this.hostElement).querySelector("#handle-left")?this.beginLeftHandleDrag_():J.target===_.Bj(this.hostElement).querySelector("#handle-right")?this.beginRightHandleDrag_():this.beginWindowDrag_())};
_.V.beginLeftHandleDrag_=function(){this.draggingLeft_=!0;this.beginDrag_()};
_.V.beginRightHandleDrag_=function(){this.draggingRight_=!0;this.beginDrag_()};
_.V.beginWindowDrag_=function(){this.disabled||(this.draggingWindow_=!0,this.beginWindowScroll_(),this.beginDrag_())};
_.V.beginRulerDrag_=function(J){this.disabled||(J.preventDefault(),this.draggingRight_=this.draggingLeft_=!1,this.draggingRuler_=!0,this.draggingWindow_=!1,this.rulerDragMouseStart_=J.clientX,this.rulerDragRulerStart_=this.rulerShift_,this.rulerDragStartTime_=this.start,this.rulerDragEndTime_=this.end,this.beginDrag_())};
_.V.beginDrag_=function(){this.player_.pauseVideo();this.addMouseEventHandlers_()};
_.V.beginWindowScroll_=function(){var J=this;this.scrollInterval_=setInterval(function(){var c=J.windowSlideSpeed;if(c=_.RTs(J.start,J.boundedRulerStartLimit_())?c-.1:_.RTs(J.end,J.boundedRulerEndLimit_())?c+.1:0){var m=J.capRulerOffset_(J.rulerShift_+c);m==J.rulerShift_?c=0:(J.set("rulerShift_",m),_.cA(J.hostElement,"set-fixed-length-range",{start:J.start+c,duration:J.end-J.start}))}J.set("windowSlideSpeed",c)},33)};
_.V.endWindowScroll_=function(){this.scrollInterval_&&(clearInterval(this.scrollInterval_),this.scrollInterval_=null,this.windowSlideSpeed=0)};
_.V.endDrag_=function(){this.logClick();var J=void 0;this.draggingRight_?J=this.end-1:this.draggingLeft_&&(J=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,J);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))};
_.V.onVisibleChanged_=function(){this.visible&&this.updateRulerSize_()};
_.V.updateRulerSize_=function(){this.set("rulerWidth_",_.Bj(this.hostElement).querySelector("#ruler").getBoundingClientRect().width)};
_.V.handleMouseDrag_=function(J){J.buttons==0&&(this.draggingLeft_||this.draggingRight_||this.draggingRuler_||this.draggingWindow_)&&this.endDrag_();this.disabled||(this.draggingRuler_?this.handleRulerDrag_(J):this.draggingLeft_||this.draggingRight_?this.handleWindowHandleDrag_(J):this.draggingWindow_&&this.handleWindowDrag_(J))};
_.V.handleRulerDrag_=function(J){J=this.pixelsToTime_(J.clientX-this.rulerDragMouseStart_);J=this.capRulerOffset_(this.rulerDragRulerStart_-J);this.set("rulerShift_",J);var c=this.rulerDragStartTime_-(this.rulerDragRulerStart_-J);_.cA(this.hostElement,"set-fixed-length-range",{start:c,duration:this.rulerDragEndTime_-(this.rulerDragRulerStart_-J)-c})};
_.V.handleWindowDrag_=function(J){var c=J.clientX-this.dragMouseLastX_;this.dragMouseLastX_=J.clientX;J=this.pixelsToTime_(c);_.cA(this.hostElement,"set-fixed-length-range",{start:this.start+J,duration:this.end-this.start,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.V.capRulerOffset_=function(J){var c=this.seekableStart-this.pixelsToTime_(16),m=this.seekableEnd-this.windowSizeSec_+this.pixelsToTime_(16);return Math.min(Math.max(c,J),m)};
_.V.boundedRulerStartLimit_=function(){return this.rulerShift_+this.pixelsToTime_(16)};
_.V.boundedRulerEndLimit_=function(){return this.rulerShift_+this.windowSizeSec_-this.pixelsToTime_(16)};
_.V.draggableStartLimit_=function(){return Math.max(this.boundedRulerStartLimit_(),this.seekableStart)};
_.V.draggableEndLimit_=function(){return Math.min(this.boundedRulerEndLimit_(),this.seekableEnd)};
_.V.handleWindowHandleDrag_=function(J){var c=J.clientX-this.dragMouseLastX_;this.dragMouseLastX_=J.clientX;J=this.pixelsToTime_(c);if(this.draggingLeft_){var m=this.start+J;var b=this.end}else this.draggingRight_&&(m=this.start,b=this.end+J);_.cA(this.hostElement,"set-range",{start:m,end:b,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.V.onVideoProgress_=function(J){this.disabled||(J=this.timeToPixels_(J-this.rulerShift_,this.tickSpacing_),_.Bj(this.hostElement).querySelector("#playhead").style.transform="translateX("+J+")")};
_.V.onClipCreationDisable_=function(){this.endDrag_()};
_.V.timeToPixels_=function(J,c,m){J*=c;return m===void 0||m?J+"px":J};
_.V.pixelsToTime_=function(J){return J/this.tickSpacing_};
_.V.onInitializedChanged_=function(){this.initialized&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.V.centerRuler_=function(J,c,m){this.set("rulerShift_",this.capRulerOffset_(J+(c-J)/2-m/2))};
_.V.onUpdateLoopRange=function(){this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end)};
_.V.updateLoopRange_=function(J,c,m,b,x,P,p){J&&(c&&b&&!m?(this.draggingLeft_||this.draggingRuler_||this.draggingWindow_?(J.pauseVideo(),J.seekTo(x,!1,void 0,void 0,50)):this.draggingRight_?(J.pauseVideo(),J.seekTo(P-.1,!1,void 0,void 0,50)):(p!==void 0?J.seekTo(p,!0,void 0,void 0,50):(c=J.getCurrentTime(),c<x||c>P?J.seekTo(x,!0,void 0,void 0,50):J.seekTo(c,!0,void 0,void 0,50)),J.playVideo()),J.setLoopRange({startTimeMs:x*1E3,endTimeMs:P*1E3,type:"clips"}),this.activeLoopRange_=!0,this.onVideoProgress_(J.getCurrentTime())):
this.activeLoopRange_&&(J.setLoopRange(null),this.activeLoopRange_=!1))};
_.V.updateHandles_=function(){_.Bj(this.hostElement).querySelector("#handles").style.left=String(this.timeToPixels_(this.start-this.rulerShift_,this.tickSpacing_));_.Bj(this.hostElement).querySelector("#handles").style.width=String(this.timeToPixels_(this.end-this.start,this.tickSpacing_))};
_.V.updateRuler_=function(){var J=this.end,c=this.start,m=this.draggableStartLimit_(),b=this.draggableEndLimit_();(c<m-.001||J>b+.001)&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.V.computeDurationLabel_=function(J,c){return J?J.replace("$clip_length",parseFloat(c).toFixed(1)):""};
_.V.computeDuration_=function(J,c){return this.isValidTime_(J)&&this.isValidTime_(c)&&J<c?c-J:0};
_.V.isValidTime_=function(J){return isNaN(parseFloat(J))||J<0?!1:this.player_?J>=this.seekableStart&&J<=this.seekableEnd:!0};
_.V.computeWindowSizeSec_=function(J,c,m){return Math.min((J||12E4)/1E3,m-c)};
_.V.computeTickSpacing_=function(J,c){return c?c/J:1};
_.V.onDragStateChanged_=function(){_.cA(this.hostElement,"clips-drag-state",{startChanging:this.draggingLeft_||this.draggingWindow_||this.draggingRuler_,endChanging:this.draggingRight_||this.draggingWindow_||this.draggingRuler_})};
_.V.centerRangeOnTime_=function(J){var c=this.duration;J=SpR(J-c/2,c,this.seekableStart,this.seekableEnd);_.cA(this.hostElement,"set-fixed-length-range",{start:J.start,duration:J.end-J.start})};
_.V.nearlyLessThan_=function(J,c,m){return J+(m===void 0?1E-6:m)<c};
_.V.onSeekComplete_=function(){if(this.visible&&!this.disabled&&this.dragState=="none"){var J=this.player_.getCurrentTime();(!this.player_.getLoopRange()||this.nearlyLessThan_(J,this.start)||this.nearlyLessThan_(this.end,J))&&this.centerRangeOnTime_(J)}};
_.V.onStateChange_=function(J){this.visible&&!this.disabled&&J==0&&this.centerRangeOnTime_(this.seekableEnd)};
_.V.computeDragState_=function(J,c,m,b){return J?"left":c?"right":m?"ruler":b?"window":"none"};
_.V.logClick=function(){var J=_.Y3(),c=_.fl();J&&c&&this.scrubberVe_&&(_.w("combine_ve_grafts")?_.JM(_.C7(),this.scrubberVe_,c):_.$2(J,c,this.scrubberVe_),_.AS(J,this.scrubberVe_))};
qK.prototype.onDragStateChanged_=qK.prototype.onDragStateChanged_;qK.prototype.updateRuler_=qK.prototype.updateRuler_;qK.prototype.updateHandles_=qK.prototype.updateHandles_;qK.prototype.onUpdateLoopRange=qK.prototype.onUpdateLoopRange;qK.prototype.onInitializedChanged_=qK.prototype.onInitializedChanged_;qK.prototype.onVisibleChanged_=qK.prototype.onVisibleChanged_;_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],qK.prototype,"ytActionHandlerBehavior",void 0);
_.O([_.f(_.Ex.YtPlayerListenerBehavior),_.R("design:type",Object)],qK.prototype,"ytPlayerListenerBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],qK.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],qK.prototype,"start",void 0);_.O([_.U(),_.R("design:type",Object)],qK.prototype,"end",void 0);_.O([_.U({computed:"computeDuration_(start, end)"}),_.R("design:type",Number)],qK.prototype,"duration",void 0);
_.O([_.U(),_.R("design:type",String)],qK.prototype,"lengthTemplate",void 0);_.O([_.U({computed:"computeDurationLabel_(lengthTemplate, duration)"}),_.R("design:type",String)],qK.prototype,"durationLabel",void 0);_.O([_.U(),_.R("design:type",Object)],qK.prototype,"visible",void 0);_.O([_.U(),_.R("design:type",Object)],qK.prototype,"player_",void 0);_.O([_.U(),_.R("design:type",Object)],qK.prototype,"draggingLeft_",void 0);_.O([_.U(),_.R("design:type",Object)],qK.prototype,"draggingRight_",void 0);
_.O([_.U(),_.R("design:type",Object)],qK.prototype,"draggingRuler_",void 0);_.O([_.U({value:!1}),_.R("design:type",Object)],qK.prototype,"draggingWindow_",void 0);_.O([_.U({computed:"computeTickSpacing_(windowSizeSec_, rulerWidth_)"}),_.R("design:type",Number)],qK.prototype,"tickSpacing_",void 0);_.O([_.U(),_.R("design:type",Object)],qK.prototype,"seekableStart",void 0);_.O([_.U(),_.R("design:type",Object)],qK.prototype,"seekableEnd",void 0);
_.O([_.U(),_.R("design:type",Number)],qK.prototype,"windowSizeMs",void 0);_.O([_.U({computed:"computeWindowSizeSec_(windowSizeMs, seekableStart, seekableEnd)"}),_.R("design:type",Number)],qK.prototype,"windowSizeSec_",void 0);_.O([_.U(),_.R("design:type",Object)],qK.prototype,"rulerWidth_",void 0);_.O([_.U(),_.R("design:type",Object)],qK.prototype,"rulerShift_",void 0);_.O([_.U(),_.R("design:type",Object)],qK.prototype,"windowSlideSpeed",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],qK.prototype,"disabled",void 0);_.O([_.U(),_.R("design:type",Object)],qK.prototype,"initialized",void 0);_.O([_.U(),_.R("design:type",Object)],qK.prototype,"durationAccessibilityLabel",void 0);_.O([_.U({computed:"computeDragState_(draggingLeft_, draggingRight_, draggingRuler_, draggingWindow_)",reflectToAttribute:!0}),_.R("design:type",String)],qK.prototype,"dragState",void 0);
_.O([_.NE("visible"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],qK.prototype,"onVisibleChanged_",null);_.O([_.NE("initialized"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],qK.prototype,"onInitializedChanged_",null);_.O([_.NE("player_","visible","disabled","initialized","start","end"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],qK.prototype,"onUpdateLoopRange",null);
_.O([_.NE("start","end","rulerShift_","tickSpacing_","windowSizeSec_"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],qK.prototype,"updateHandles_",null);_.O([_.NE("start","end"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],qK.prototype,"updateRuler_",null);
_.O([_.NE("draggingLeft_","draggingRight_","draggingRuler_","draggingWindow_"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],qK.prototype,"onDragStateChanged_",null);qK=_.O([_.uM({is:"yt-clip-creation-scrubber-view",disableElementRegistration:!0})],qK);
_.v(qK,"yt-clip-creation-scrubber-view",function(){if(gap===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;B5S===void 0&&(B5S=document.createElement("template"));var b=B5S;m.call(c,b.content.cloneNode(!0),J.content.firstChild);gap=J}J=gap;return J},{mode:2});var UU=function(){var J=_.h.apply(this,arguments)||this;J.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_","yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-enable":"onClipCreationEnable_"};J.startHighlightTimeout=0;J.endHighlightTimeout=0;return J};
_.D(UU,_.h);_.V=UU.prototype;_.V.attached=function(){var J=this;this.startInput.addEventListener("input",function(c){return J.handleStartInput_(c)});
this.endInput.addEventListener("input",function(c){return J.handleEndInput_(c)});
this.startInput.addEventListener("focusout",function(c){return J.handleStartBlur_(c)});
this.endInput.addEventListener("focusout",function(c){return J.handleEndBlur_(c)})};
_.V.setPlayer=function(J){this.set("player_",J)};
_.V.onSetFixedLengthRange_=function(J){var c=J.detail;J=c.start;var m=c.duration,b=c.startLimit;c=c.endLimit;b||(b=this.seekableStart_);c||(c=this.seekableEnd_);J=SpR(J,m,b,c);this.start=J.start;this.end=J.end};
_.V.onSetRange_=function(J){var c=J.detail;J=c.start;var m=c.end,b=c.startLimit;c=c.endLimit;b||(b=this.seekableStart_);c||(c=this.seekableEnd_);if(J=hRR(J,m,b,c,this.minLengthSec,this.maxLengthSec))this.start=J.start,this.end=J.end};
_.V.updateInputs_=function(){var J=this.end,c=this.start;this.startInput.focused||(this.startInput.value=zF(c,!0));this.endInput.focused||(this.endInput.value=zF(J,!0))};
_.V.handleStartInput_=function(J){J=UVF(J.target.value);if(J===null)this.set("startValid",!1);else{var c=this.end,m=hRR(J,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);m?(this.set("endWillUpdate",m.end!==c),this.set("startValid",m.start===J)):this.set("startValid",!1)}};
_.V.handleEndInput_=function(J){J=UVF(J.target.value);if(J===null)this.set("endValid",!1);else{var c=this.start,m=dVS(this.start,J,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);m?(this.set("startWillUpdate",m.start!==c),this.set("endValid",m.end===J)):this.set("endValid",!1)}};
_.V.handleStartBlur_=function(J){J=UVF(J.target.value);J===null?this.startInput.value=zF(this.start,!0):this.forceUpdateInputs_(hRR(J,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.V.handleEndBlur_=function(J){J=UVF(J.target.value);J===null?this.endInput.value=zF(this.end,!0):this.forceUpdateInputs_(dVS(this.start,J,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.V.forceUpdateInputs_=function(J){J&&(this.start=J.start,this.end=J.end);this.startInput.value=zF(this.start,!0);this.endInput.value=zF(this.end,!0);this.endValid=this.startValid=!0;this.startWillUpdate=this.endWillUpdate=!1};
_.V.initializeClipRange_=function(){var J=this.seekableEnd_,c=this.seekableStart_,m=this.visible_,b=this.player_;if(!b||!m||c===null||!J)this.set("initialized",!1);else if(!this.initialized){var x=b.getCurrentTime(),P=this.getDefaultLengthSec_();m=b.getVideoData();var p=b.getPlayerState()==1,t=m.isLive;P=Math.min(P,J-c);x=Math.max(0,x);J=t?dVS(x-P,x,c,J,this.minLengthSec,this.maxLengthSec):p?SpR(x-P/2,P,c,J):SpR(x,P,c,J);this.start=J.start;this.end=J.end;this.set("initialized",!0);m.isLive&&b.seekTo(J.start);
this.startInput.value=zF(this.start,!0);this.endInput.value=zF(this.end,!0)}};
_.V.onStartChanged_=function(){var J=this;_.cA(this.hostElement,"start-changed",{start:this.start});var c;isNaN((c=this.oldStart)!=null?c:NaN)||(this.set("highlightStart",!0),clearTimeout(this.startHighlightTimeout),this.startHighlightTimeout=setTimeout(function(){J.set("highlightStart",!1);J.startHighlightTimeout=0;J.oldStart=J.start},3E3))};
_.V.onEndChanged_=function(){var J=this;_.cA(this.hostElement,"end-changed",{end:this.end});var c;isNaN((c=this.oldEnd)!=null?c:NaN)||(this.set("highlightEnd",!0),clearTimeout(this.endHighlightTimeout),this.endHighlightTimeout=setTimeout(function(){J.set("highlightEnd",!1);J.endHighlightTimeout=0;J.oldEnd=J.end},3E3))};
_.V.onVisibilityChangedAction_=function(J){var c=this;this.set("visible_",J.visible);this.visible_&&!this.player_&&(J=_.ep())&&J.getPlayerPromise().then(function(m){c.setPlayer(m)})};
_.V.computeMinLengthSec_=function(J){return J/1E3||5};
_.V.computeMaxLengthSec_=function(J){return J/1E3||60};
_.V.computeDefaultLengthSec_=function(J){return J/1E3};
_.V.getDefaultLengthSec_=function(){return this.defaultLengthSec||30};
_.V.computeSeekableStart_=function(J,c){return J&&c?J.getProgressState(1).seekableStart:0};
_.V.computeSeekableEnd_=function(J,c){return J&&c?J.getProgressState(1).seekableEnd:0};
_.V.onClipCreationDisable_=function(){this.set("disabled",!0)};
_.V.onClipCreationEnable_=function(){this.set("disabled",!1)};
_.V.onDragState_=function(J){this.set("highlightStart",J.detail.startChanging);this.set("highlightEnd",J.detail.endChanging)};
UU.prototype.onDragState_=UU.prototype.onDragState_;UU.prototype.onEndChanged_=UU.prototype.onEndChanged_;UU.prototype.onStartChanged_=UU.prototype.onStartChanged_;UU.prototype.initializeClipRange_=UU.prototype.initializeClipRange_;UU.prototype.updateInputs_=UU.prototype.updateInputs_;UU.prototype.onSetRange_=UU.prototype.onSetRange_;UU.prototype.onSetFixedLengthRange_=UU.prototype.onSetFixedLengthRange_;
_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],UU.prototype,"ytActionHandlerBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],UU.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],UU.prototype,"data",void 0);_.O([_.U({value:0}),_.R("design:type",Number)],UU.prototype,"start",void 0);_.O([_.U({value:!0}),_.R("design:type",Boolean)],UU.prototype,"startValid",void 0);
_.O([_.U({value:!1,reflectToAttribute:!0}),_.R("design:type",Boolean)],UU.prototype,"startWillUpdate",void 0);_.O([_.U({value:30}),_.R("design:type",Number)],UU.prototype,"end",void 0);_.O([_.U({value:!0}),_.R("design:type",Boolean)],UU.prototype,"endValid",void 0);_.O([_.U({value:!1,reflectToAttribute:!0}),_.R("design:type",Boolean)],UU.prototype,"endWillUpdate",void 0);_.O([_.U({computed:"computeMinLengthSec_(data.minLengthMs)"}),_.R("design:type",Number)],UU.prototype,"minLengthSec",void 0);
_.O([_.U({computed:"computeMaxLengthSec_(data.maxLengthMs)"}),_.R("design:type",Number)],UU.prototype,"maxLengthSec",void 0);_.O([_.U({computed:"computeDefaultLengthSec_(data.defaultLengthMs)"}),_.R("design:type",Number)],UU.prototype,"defaultLengthSec",void 0);_.O([_.U({value:!1}),_.R("design:type",Boolean)],UU.prototype,"visible_",void 0);_.O([_.U(),_.R("design:type",Object)],UU.prototype,"player_",void 0);
_.O([_.U({value:0,computed:"computeSeekableStart_(player_, visible_)"}),_.R("design:type",Number)],UU.prototype,"seekableStart_",void 0);_.O([_.U({computed:"computeSeekableEnd_(player_, visible_)"}),_.R("design:type",Number)],UU.prototype,"seekableEnd_",void 0);_.O([_.U({value:!1}),_.R("design:type",Boolean)],UU.prototype,"initialized",void 0);_.O([_.U({value:!1,reflectToAttribute:!0}),_.R("design:type",Boolean)],UU.prototype,"disabled",void 0);
_.O([_.U({value:!1,reflectToAttribute:!0}),_.R("design:type",Boolean)],UU.prototype,"highlightStart",void 0);_.O([_.U({value:!1,reflectToAttribute:!0}),_.R("design:type",Boolean)],UU.prototype,"highlightEnd",void 0);_.O([_.Iu("#start"),_.R("design:type",HTMLInputElement)],UU.prototype,"startInput",void 0);_.O([_.Iu("#end"),_.R("design:type",HTMLInputElement)],UU.prototype,"endInput",void 0);
_.O([_.ps("set-fixed-length-range"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],UU.prototype,"onSetFixedLengthRange_",null);_.O([_.ps("set-range"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],UU.prototype,"onSetRange_",null);_.O([_.NE("start","end"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],UU.prototype,"updateInputs_",null);
_.O([_.NE("player_","visible_","seekableStart_","seekableEnd_"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],UU.prototype,"initializeClipRange_",null);_.O([_.NE("start"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],UU.prototype,"onStartChanged_",null);_.O([_.NE("end"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],UU.prototype,"onEndChanged_",null);
_.O([_.ps("clips-drag-state"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],UU.prototype,"onDragState_",null);UU=_.O([_.uM({is:"yt-clip-creation-scrubber-renderer",disableElementRegistration:!0})],UU);
_.v(UU,"yt-clip-creation-scrubber-renderer",function(){if(lD1===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;Fg4===void 0&&(Fg4=document.createElement("template"));var b=Fg4;m.call(c,b.content.cloneNode(!0),J.content.firstChild);lD1=J}J=lD1;return J},{mode:2});var Sx=function(){var J=_.h.apply(this,arguments)||this;J.player_=null;J.JSC$20024_playerEvents=new Map;J.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return J};
_.D(Sx,_.h);_.V=Sx.prototype;_.V.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"}}}};
_.V.created=function(){this.JSC$20024_playerEvents.set("onAdStart",this.playerAdStartHandler_);this.JSC$20024_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler_);this.JSC$20024_playerEvents.set("onVideoDataChange",this.onVideoDataChange_);this.JSC$20024_playerEvents.set("onVideoProgress",this.onVideoProgress_)};
_.V.detached=function(){this.setPlayer(null)};
_.V.onVisibilityChangedAction_=function(J){var c=this,m;if((m=this.data)==null?0:m.externalVideoId){var b;this.videoId=(b=this.data)==null?void 0:b.externalVideoId}this.getPlayer().then(function(x){if(J.visible)c.returnTime=x.getCurrentTime(),c.isAtLiveHead=x.getProgressState().isAtLiveHead;else{var P=c.returnTime;c.isAtLiveHead&&(P=Number.POSITIVE_INFINITY);x.seekTo(P,void 0,void 0,void 0,51)}})};
_.V.getPlayer=function(){var J=this;if(!this.player_){var c=_.ep();if(c)return c.getPlayerPromise().then(function(m){J.setPlayer(m);return m})}return Promise.resolve(this.player_)};
_.V.setPlayer=function(J){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$20024_playerEvents);if(J){this.player_=J;var c;((c=this.data)==null?0:c.externalVideoId)||this.set("videoId",J.getVideoData().video_id||"");var m;(J==null?void 0:(m=J.getPresentingPlayerType)==null?void 0:m.call(J))===2&&(this.set("isAdPlaying",!0),_.m9(this.hostElement,"yt-clip-creation-disable"));this.ytPlayerListenerBehavior.listenToPlayerEvents(J,this.JSC$20024_playerEvents)}};
_.V.ready=function(){_.Bj(this.hostElement).querySelector("#share").addEventListener("tap",this.onSubmit_.bind(this))};
_.V.onTitleChanged_=function(J){this.set("titleValue",J.detail.title)};
_.V.onStartChanged_=function(J){this.set("start",J.detail.start)};
_.V.onEndChanged_=function(J){this.set("end",J.detail.end)};
_.V.onTitleValidChanged_=function(J){this.set("titleValid",J.detail.valid)};
_.V.onStartValidChanged_=function(J){this.set("startValid",J.detail.valid)};
_.V.onEndValidChanged_=function(J){this.set("endValid",J.detail.valid)};
_.V.onVideoDataChange_=function(){var J;if((J=this.data)==null||!J.externalVideoId){var c;this.set("videoId",((c=this.player_)==null?void 0:c.getVideoData().video_id)||"")}};
_.V.computeFormValid_=function(J,c,m,b){return!!(J&&c&&m&&b)};
_.V.computeCancelButton_=function(J,c,m){return J&&_.L(J,_.ur)?{buttonRenderer:Object.assign({},_.L(J,_.ur),{isDisabled:c||m})}:null};
_.V.computeSubmitButton_=function(J,c,m){return J&&_.L(J,_.ur)?{buttonRenderer:Object.assign({},_.L(J,_.ur),{command:void 0,isDisabled:!this.formValid||c||m})}:null};
_.V.computeSubmitCommand_=function(J){return J||null};
_.V.onSubmit_=function(J){var c=this;J.stopPropagation();J.preventDefault();this.submitCommand_&&(J={},J.comment_text=this.titleValue,J.clip_external_video_id=this.videoId,J.clip_offset_ms=parseInt(this.start*1E3,10),J.clip_duration_ms=parseInt((this.end-this.start)*1E3,10),this.set("isLoading_",!0),_.Vq(this.hostElement,[this.submitCommand_,J]).then(function(){c.set("isLoading_",!1)},function(){c.set("isLoading_",!1)}))};
_.V.playerAdStartHandler_=function(){_.m9(this.hostElement,"yt-clip-creation-disable");this.set("isAdPlaying",!0)};
_.V.playerAdEndHandler_=function(){_.m9(this.hostElement,"yt-clip-creation-enable");this.set("isAdPlaying",!1)};
_.V.onVideoProgress_=function(){var J=this;this.getPlayer().then(function(c){var m,b=(c==null?void 0:(m=c.getPresentingPlayerType)==null?void 0:m.call(c))===2;J.isAdPlaying!==b&&(b?J.playerAdStartHandler_():J.playerAdEndHandler_())})};
Sx.prototype.onEndValidChanged_=Sx.prototype.onEndValidChanged_;Sx.prototype.onStartValidChanged_=Sx.prototype.onStartValidChanged_;Sx.prototype.onTitleValidChanged_=Sx.prototype.onTitleValidChanged_;Sx.prototype.onEndChanged_=Sx.prototype.onEndChanged_;Sx.prototype.onStartChanged_=Sx.prototype.onStartChanged_;Sx.prototype.onTitleChanged_=Sx.prototype.onTitleChanged_;_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],Sx.prototype,"ytActionHandlerBehavior",void 0);
_.O([_.f(_.Ex.YtPlayerListenerBehavior),_.R("design:type",Object)],Sx.prototype,"ytPlayerListenerBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],Sx.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Sx.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Sx.prototype,"data",void 0);_.O([_.U({value:""}),_.R("design:type",String)],Sx.prototype,"titleValue",void 0);
_.O([_.U({value:!1}),_.R("design:type",Boolean)],Sx.prototype,"titleValid",void 0);_.O([_.U({value:0}),_.R("design:type",Number)],Sx.prototype,"start",void 0);_.O([_.U({value:!0}),_.R("design:type",Boolean)],Sx.prototype,"startValid",void 0);_.O([_.U({value:0}),_.R("design:type",Number)],Sx.prototype,"end",void 0);_.O([_.U({value:!0}),_.R("design:type",Boolean)],Sx.prototype,"endValid",void 0);_.O([_.U({value:""}),_.R("design:type",String)],Sx.prototype,"videoId",void 0);
_.O([_.U({computed:"computeFormValid_(data, titleValid, startValid, endValid)"}),_.R("design:type",Boolean)],Sx.prototype,"formValid",void 0);_.O([_.U({computed:"computeSubmitButton_(data.saveButton, isAdPlaying, isLoading_, formValid)"}),_.R("design:type",Object)],Sx.prototype,"submitButton_",void 0);_.O([_.U({computed:"computeSubmitCommand_(data.saveButton.buttonRenderer.command)"}),_.R("design:type",Object)],Sx.prototype,"submitCommand_",void 0);
_.O([_.U({computed:"computeCancelButton_(data.cancelButton, isAdPlaying, isLoading_)"}),_.R("design:type",Object)],Sx.prototype,"cancelButton_",void 0);_.O([_.U({value:!1}),_.R("design:type",Boolean)],Sx.prototype,"isLoading_",void 0);_.O([_.U({value:!1,reflectToAttribute:!0}),_.R("design:type",Boolean)],Sx.prototype,"isAdPlaying",void 0);_.O([_.U({value:0}),_.R("design:type",Number)],Sx.prototype,"returnTime",void 0);_.O([_.U({value:!1}),_.R("design:type",Boolean)],Sx.prototype,"isAtLiveHead",void 0);
_.O([_.ps("title-changed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],Sx.prototype,"onTitleChanged_",null);_.O([_.ps("start-changed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],Sx.prototype,"onStartChanged_",null);_.O([_.ps("end-changed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],Sx.prototype,"onEndChanged_",null);
_.O([_.ps("title-valid-changed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],Sx.prototype,"onTitleValidChanged_",null);_.O([_.ps("start-valid-changed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],Sx.prototype,"onStartValidChanged_",null);_.O([_.ps("end-valid-changed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],Sx.prototype,"onEndValidChanged_",null);
Sx=_.O([_.uM({is:"yt-clip-creation-renderer",disableElementRegistration:!0})],Sx);
_.v(Sx,"yt-clip-creation-renderer",function(){if(jks===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;ex1===void 0&&(ex1=document.createElement("template"));var b=ex1;m.call(c,b.content.cloneNode(!0),J.content.firstChild);jks=J}J=jks;return J},{mode:2});var hx=function(){return _.h.apply(this,arguments)||this};
_.D(hx,_.h);hx.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"}}}};
hx.prototype.onPanelContentVisibleChanged=function(){this.data&&this.data.contents&&this.data.contents.some(function(J){return J.hasOwnProperty("clipCreationRenderer")})&&_.m9(this.hostElement,"yt-clip-creation-visibility-changed",[{visible:!!this.panelContentVisible}])};
hx.prototype.onPanelContentVisibleChanged=hx.prototype.onPanelContentVisibleChanged;_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],hx.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],hx.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.hg.YtVisibilityBehavior),_.R("design:type",Object)],hx.prototype,"ytVisibilityBehavior",void 0);_.O([_.f(_.fY),_.R("design:type",Object)],hx.prototype,"ytdReduxBehavior",void 0);
_.O([_.U(),_.R("design:type",Object)],hx.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],hx.prototype,"panelContentVisible",void 0);_.O([_.NE("panelContentVisible"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],hx.prototype,"onPanelContentVisibleChanged",null);hx=_.O([_.E({is:"ytd-clip-section-renderer",disableElementRegistration:!0})],hx);
_.v(hx,"ytd-clip-section-renderer",function(){if(RxR!==void 0)return RxR;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return RxR=J},{mode:1});var Joe;var dw=function(){return _.h.apply(this,arguments)||this};
_.D(dw,_.h);_.V=dw.prototype;
_.V.onKeyDown=function(J){if(this.snippetElements.length!==0&&(J=J.keyCode,J===38||J===40)){this.highlightedIndex>=0&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);J===38?this.highlightedIndex--:this.highlightedIndex++;this.highlightedIndex=_.fZ(this.highlightedIndex,-1,this.snippetElements.length);J=this.snippetElements.length;var c=this.highlightedIndex%J;this.highlightedIndex=c*J<0?c+J:c;J=this.snippetElements[this.highlightedIndex];this.highlightSnippet(J);this.ensureVisible(J)}};
_.V.onKeyUp=function(J){var c=this;kVs(J)&&(J.keyCode===13?(this.selectSnippet(this.snippetElements[this.highlightedIndex]),this.inputElement.blur()):this.filterSnippets(this.snippets,this.typedValue),this.inputTimerId&&_.ft.cancelJob(this.inputTimerId),this.inputTimerId=_.ft.addLowPriorityJob(function(){c.typedValue&&(c.fetchSnippets(c.typedValue),c.logInputGesture(c.data))},1E3))};
_.V.onClick=function(J){(J=_.Sm_(J.target,null,"snippet-item"))&&this.selectSnippet(J)};
_.V.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inputElement.focus()};
_.V.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-update-search-in-video-results-action":"onUpdateSearchInVideoResults"}};
_.V.ready=function(){var J=this;this.inputElement.addEventListener("focus",function(){J.snippetsWrapper.style.removeProperty("display")})};
_.V.dataChanged=function(){this.typedValue="";this.snippets=[];this.fetchSnippets("")};
_.V.getSourceTimelines=function(){if(!this.data)return[];var J=[];if(this.data.searchInVideoSources)for(var c=_.M(this.data.searchInVideoSources),m=c.next();!m.done;m=c.next())m=m.value,m==="SEARCH_IN_VIDEO_SOURCE_ASR"?J.push({type:"TIMELINE_TYPE_STRUCTURAL_ASR"}):m==="SEARCH_IN_VIDEO_SOURCE_OCR"&&J.push({type:"TIMELINE_TYPE_OCR_LABEL_SPAN"});return J};
_.V.fetchSnippets=function(J){var c=_.m9(this.hostElement,"yt-get-current-video-id-action")[0],m=this.getSourceTimelines();J={getSearchInVideoCommand:{externalVideoId:c,query:J!=null?J:"",sourceTimelines:m},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/in_video/search",sendPost:!0}}};_.BG().resolve(_.gu).resolveCommand(J,{form:{element:this.hostElement}})};
_.V.filterSnippets=function(J,c){var m=this;if(c){this.filteredSnippets=(0,_.Lw.unsafeClone)(J);var b=RegExp(_.Rvr(c),"i");this.filteredSnippets=this.filteredSnippets.filter(function(p){return b.test(m.ytRendererBehavior.getSimpleString(p.snippet))});
J=_.M(this.filteredSnippets);for(var x=J.next();!x.done;x=J.next()){x=x.value;var P=this.ytRendererBehavior.getSimpleString(x.snippet);x.snippet={runs:[{text:P.substring(0,P.toLowerCase().indexOf(c))},{text:P.substring(P.toLowerCase().indexOf(c),P.toLowerCase().indexOf(c)+c.length),bold:!0},{text:P.substring(P.toLowerCase().indexOf(c)+c.length,P.length)}]}}}else this.filteredSnippets=J};
_.V.onUpdateSearchInVideoResults=function(J){if(!(this.snippets.length>0)){var c,m,b;if((b=(c=_.L(J,uOp))==null?void 0:(m=c.results)==null?void 0:m.length)!=null&&b){var x;this.filteredSnippets=this.snippets=((x=_.L(J,uOp))==null?void 0:x.results).map(function(P){var p,t,I;return{startMs:P==null?void 0:(p=P.searchInVideoResultRenderer)==null?void 0:p.startMs,startTimeText:P==null?void 0:(t=P.searchInVideoResultRenderer)==null?void 0:t.startTimeText,snippet:P==null?void 0:(I=P.searchInVideoResultRenderer)==
null?void 0:I.snippet}})}}};
_.V.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};
_.V.highlightSnippet=function(J){J.classList.add("highlighted")};
_.V.removeSnippetHighlight=function(J){J.classList.remove("highlighted")};
_.V.selectSnippet=function(J){this.typedValue=String(J.dataset.text);this.filterSnippets(this.snippets,this.typedValue);this.snippetsWrapper.style.display="none";this.seekPlayer(J);this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.V.ensureVisible=function(J){var c=this.snippetsWrapper.scrollTop,m=c+this.snippetsWrapper.clientHeight,b=J.offsetTop-this.snippetsWrapper.offsetTop;J=b+J.clientHeight;b<c?this.snippetsWrapper.scrollTop-=c-b:J>m&&(this.snippetsWrapper.scrollTop+=J-m)};
_.V.seekPlayer=function(J){var c,m;return _.N(function(b){if(b.nextAddress==1){if(!J)return b.jumpTo(0);c=Number(J.dataset.startOffset);return _.K(b,_.jp().getPlayerPromise(),3)}m=b.yieldResult;m.seekTo(c/1E3,!0);m.wakeUpControls();_.tD(b)})};
_.V.logInputGesture=function(J){var c=_.Y3();c&&(J==null?0:J.trackingParams)&&_.Rn(c,_.n7(J.trackingParams),"INTERACTION_LOGGING_GESTURE_TYPE_INPUT_TEXT")};
_.V.typedValueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.SJ("typed-value-changed",this.typedValue))};
_.V.updateTypedValueFromBinding=function(J){this.typedValue=J.currentTarget.value};
dw.prototype.typedValueChangedForBinding=dw.prototype.typedValueChangedForBinding;dw.prototype.dataChanged=dw.prototype.dataChanged;dw.prototype.panelContentVisibleChanged=dw.prototype.panelContentVisibleChanged;dw.prototype.onClick=dw.prototype.onClick;dw.prototype.onKeyUp=dw.prototype.onKeyUp;dw.prototype.onKeyDown=dw.prototype.onKeyDown;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],dw.prototype,"ytRendererBehavior",void 0);
_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],dw.prototype,"ytActionHandlerBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],dw.prototype,"data",void 0);_.O([_.U({value:[]}),_.R("design:type",Array)],dw.prototype,"snippets",void 0);_.O([_.U({value:[]}),_.R("design:type",Array)],dw.prototype,"filteredSnippets",void 0);_.O([_.U({value:[]}),_.R("design:type",Array)],dw.prototype,"snippetElements",void 0);
_.O([_.Iu("#siv-input"),_.R("design:type",HTMLElement)],dw.prototype,"inputElement",void 0);_.O([_.Iu("#siv-snippets-wrapper"),_.R("design:type",HTMLElement)],dw.prototype,"snippetsWrapper",void 0);_.O([_.U(),_.R("design:type",String)],dw.prototype,"typedValue",void 0);_.O([_.U({value:-1}),_.R("design:type",Number)],dw.prototype,"highlightedIndex",void 0);_.O([_.ps("keydown"),_.R("design:type",Function),_.R("design:paramtypes",[_.pI]),_.R("design:returntype")],dw.prototype,"onKeyDown",null);
_.O([_.ps("keyup"),_.R("design:type",Function),_.R("design:paramtypes",[_.pI]),_.R("design:returntype")],dw.prototype,"onKeyUp",null);_.O([_.ps("click"),_.R("design:type",Function),_.R("design:paramtypes",[Event]),_.R("design:returntype")],dw.prototype,"onClick",null);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],dw.prototype,"panelContentVisible",void 0);
_.O([_.NE("panelContentVisible"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],dw.prototype,"panelContentVisibleChanged",null);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],dw.prototype,"dataChanged",null);_.O([_.NE("typedValue"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],dw.prototype,"typedValueChangedForBinding",null);
dw=_.O([_.E({is:"ytd-search-in-video-renderer",disableElementRegistration:!0})],dw);
_.v(dw,"ytd-search-in-video-renderer",function(){if(Joe!==void 0)return Joe;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return Joe=J},{mode:1});var cou;var $v=function(){return _.h.apply(this,arguments)||this};
_.D($v,_.h);$v.prototype.computeButtonOverride=function(){if(this.data)return{size:"S"}};
$v.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]]"}}}}}};
$v.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var J,c,m,b,x=(c=_.L((J=this.data)==null?void 0:J.onClickCommand,_.CO))==null?void 0:(m=c.item)==null?void 0:(b=m.notificationTextRenderer)==null?void 0:b.successResponseText;x&&_.eTe(this.hostElement,x)}};
_.eE.Object.defineProperties($v.prototype,{useCenterLayoutContainer:{configurable:!0,enumerable:!0,get:function(){return this.isProductPlaceholder}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var J;return!((J=this.data)==null||!J.isProductPlaceholder)}},
showDropCountdown:{configurable:!0,enumerable:!0,get:function(){var J,c,m,b;return this.isProductPlaceholder&&((J=this.data)==null?void 0:(c=J.hiddenProductOptions)==null?void 0:c.showDropCountdown)&&!!((m=this.data)==null?0:(b=m.hiddenProductOptions)==null?0:b.dropTimestamp)}},
showBrandName:{configurable:!0,enumerable:!0,get:function(){var J;return!this.isProductPlaceholder&&!((J=this.data)==null?0:J.merchantName)}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var J;return!((J=this.data)==null||!J.priceReplacementText)}},
showPrice:{configurable:!0,enumerable:!0,get:function(){var J,c;return!((J=this.data)==null?0:J.priceReplacementText)&&!((c=this.data)==null||!c.price)}},
showMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.isProductPlaceholder}}});
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],$v.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],$v.prototype,"componentBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],$v.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],$v.prototype,"data",void 0);
_.O([_.U({reflectToAttribute:!0}),_.q("isProductPlaceholder"),_.R("design:type",Object),_.R("design:paramtypes",[])],$v.prototype,"useCenterLayoutContainer",null);_.O([_.U({computed:"computeButtonOverride(data)"}),_.R("design:type",Object)],$v.prototype,"buttonOverride",void 0);_.O([_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],$v.prototype,"isProductPlaceholder",null);
_.O([_.q("isProductPlaceholder"),_.R("design:type",Object),_.R("design:paramtypes",[])],$v.prototype,"showDropCountdown",null);_.O([_.q("isProductPlaceholder","data"),_.R("design:type",Object),_.R("design:paramtypes",[])],$v.prototype,"showBrandName",null);_.O([_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],$v.prototype,"showPriceReplacementText",null);_.O([_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],$v.prototype,"showPrice",null);
_.O([_.q("isProductPlaceholder"),_.R("design:type",Object),_.R("design:paramtypes",[])],$v.prototype,"showMetadata",null);$v=_.O([_.E({disableElementRegistration:!0,is:"ytd-product-list-item-renderer"})],$v);
_.v($v,"ytd-product-list-item-renderer",function(){if(cou!==void 0)return cou;var J=document.createElement("template");_.z(J,'\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>');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return cou=J},{mode:1});var mQS;var G6=function(){return _.h.apply(this,arguments)||this};
_.D(G6,_.h);G6.prototype.created=function(){this.ytRendererBehavior.monitorScroll=!0};
G6.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{productListHeaderRenderer:"ytd-product-list-header-renderer",productListItemRenderer:"ytd-product-list-item-renderer"}}}};
G6.prototype.panelContentVisibleChanged=function(){var J=this,c;return _.N(function(m){if(m.nextAddress==1)return J.playerApi?m.jumpTo(2):_.K(m,_.jp().getPlayerPromise(),3);m.nextAddress!=2&&(J.playerApi=m.yieldResult);(c=J.playerApi)==null||c.productsInVideoVisibilityUpdated(!!J.panelContentVisible);_.tD(m)})};
G6.prototype.panelContentVisibleChanged=G6.prototype.panelContentVisibleChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],G6.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],G6.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],G6.prototype,"panelContentVisible",void 0);_.O([_.U(),_.R("design:type",Object)],G6.prototype,"data",void 0);
_.O([_.NE("panelContentVisible"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype",Promise)],G6.prototype,"panelContentVisibleChanged",null);G6=_.O([_.E({disableElementRegistration:!0,is:"ytd-product-list-renderer"})],G6);
_.v(G6,"ytd-product-list-renderer",function(){if(mQS!==void 0)return mQS;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return mQS=J},{mode:1});var b84;var EU=function(){var J=_.h.apply(this,arguments)||this;J.hideTimestamps=!!_.m7("hide-transcript-timestamps");J.currentCueIndex=-1;J.flatCues=[];J.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-player-time-changed":"onYtPlayerTimeChanged"};J.TEST_ONLY={getFlatCues:function(){return J.flatCues}};
return J};
_.D(EU,_.h);_.V=EU.prototype;_.V.hideTimestampsChanged=function(){_.ct("hide-transcript-timestamps",this.hideTimestamps)};
_.V.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.V.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.V.dataChanged=function(){var J;if((J=this.data)!=null&&J.cueGroups){this.flatCues.length=0;this.currentCueIndex=-1;J=_.M(this.data.cueGroups);for(var c=J.next();!c.done;c=J.next()){c=_.M(_.L(c.value,f9f).cues);for(var m=c.next();!m.done;m=c.next())this.flatCues.push(Number(_.L(m.value,YrR).startOffsetMs))}}};
_.V.onYtPlayerTimeChanged=function(J){if(!(J<0)){for(var c=this.currentCueIndex,m=c;;){var b=m>=0?this.flatCues[m]/1E3:-1;if(J+.5<b)--m;else if(b=m+1<this.flatCues.length?this.flatCues[m+1]/1E3:Infinity,J+.5>b)m+=1;else break}m!==c&&(c>=0&&((J=this.getCueElement(c))&&J.classList.remove("active"),(c=this.getCueGroupElement(c))&&c.classList.remove("active")),(c=this.getCueElement(m))&&c.classList.add("active"),(c=this.getCueGroupElement(m))&&c.classList.add("active"),this.currentCueIndex=m,this.isHovered||
this.scrollElementToTop(m))}};
_.V.scrollElementToTop=function(J){J=this.getCueElement(J>=3?J-3:0);this.hostElement.scrollTop=Math.min(J.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.V.getCueElement=function(J){return _.Bj(this.hostElement).querySelector('.cue[start-offset="'+this.flatCues[J]+'"]')};
_.V.getCueGroupElement=function(J){return(J=this.getCueElement(J))&&J.parentElement?J.parentElement.parentElement:null};
_.V.onTap=function(J){var c=_.Ac(J);J.target.classList.contains("cue")&&this.seekCueElement(c)};
_.V.onKeyPress=function(J){J.keyCode==13&&(J=_.Sm_(J.target,null,"cue"))&&this.seekCueElement(J)};
_.V.seekCueElement=function(J){J=Number(J.getAttribute("start-offset"));_.m9(this.hostElement,"yt-transcript-player-seek",[J/1E3])};
_.V.onMouseEnter=function(){this.isHovered=!0};
_.V.onMouseLeave=function(){this.isHovered=!1};
EU.prototype.onMouseLeave=EU.prototype.onMouseLeave;EU.prototype.onMouseEnter=EU.prototype.onMouseEnter;EU.prototype.onKeyPress=EU.prototype.onKeyPress;EU.prototype.onTap=EU.prototype.onTap;EU.prototype.dataChanged=EU.prototype.dataChanged;EU.prototype.hideTimestampsChanged=EU.prototype.hideTimestampsChanged;_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],EU.prototype,"ytActionHandlerBehavior",void 0);
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],EU.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],EU.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],EU.prototype,"hideTimestamps",void 0);_.O([_.U(),_.R("design:type",Boolean)],EU.prototype,"isHovered",void 0);_.O([_.NE("hideTimestamps"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],EU.prototype,"hideTimestampsChanged",null);
_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],EU.prototype,"dataChanged",null);_.O([_.ps("tap"),_.R("design:type",Function),_.R("design:paramtypes",[Event]),_.R("design:returntype")],EU.prototype,"onTap",null);_.O([_.ps("keypress"),_.R("design:type",Function),_.R("design:paramtypes",[Event]),_.R("design:returntype")],EU.prototype,"onKeyPress",null);
_.O([_.ps("mouseenter"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],EU.prototype,"onMouseEnter",null);_.O([_.ps("mouseleave"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],EU.prototype,"onMouseLeave",null);EU=_.O([_.E({disableElementRegistration:!0,is:"ytd-transcript-body-renderer"})],EU);
_.v(EU,"ytd-transcript-body-renderer",function(){if(b84!==void 0)return b84;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return b84=J},{mode:1});var xQ5;var vZ=function(){var J=_.h.apply(this,arguments)||this;J.darkerPanels=_.w("web_watch_darker_panels");return J};
_.D(vZ,_.h);vZ.prototype.configureRendererStamper=function(){return{"data.languageMenu":{id:"menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],vZ.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],vZ.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],vZ.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],vZ.prototype,"darkerPanels",void 0);vZ=_.O([_.E({disableElementRegistration:!0,is:"ytd-transcript-footer-renderer"})],vZ);
_.v(vZ,"ytd-transcript-footer-renderer",function(){if(xQ5!==void 0)return xQ5;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return xQ5=J},{mode:1});var Vqo;var PzS;var OU=function(){var J=_.h.apply(this,arguments)||this;J.systemIcons=_.w("kevlar_system_icons");J.showClearButton=!1;return J};
_.D(OU,_.h);_.V=OU.prototype;_.V.handleInput=function(J){var c=this;J.target.value.length?_.hO(this,"ytdTranscriptSearchBoxSearch",function(){c.emitSearchEvent(J)},500):(_.sVr(this,"ytdTranscriptSearchBoxSearch"),this.emitClearEvent());
this.showClearButton=J.target.value.length>0};
_.V.clear=function(){this.inputBox.value="";this.showClearButton=!1};
_.V.handleClick=function(){var J,c=(J=this.data)==null?void 0:J.trackingParams;c&&_.b6(_.C7(),c)};
_.V.handleClear=function(){_.sVr(this,"ytdTranscriptSearchBoxSearch");this.emitClearEvent();var J,c,m=(c=_.L((J=this.data)==null?void 0:J.clearButton,_.ur))==null?void 0:c.trackingParams;m&&_.b6(_.C7(),m);this.clear()};
_.V.emitSearchEvent=function(J){_.cA(this.hostElement,"yt-transcript-search-box-search",{query:J.target.value});var c,m;(J=(m=_.L((c=this.data)==null?void 0:c.searchButton,_.ur))==null?void 0:m.trackingParams)&&_.b6(_.C7(),J)};
_.V.emitClearEvent=function(){_.cA(this.hostElement,"yt-transcript-search-box-clear")};
_.eE.Object.defineProperties(OU.prototype,{inputBox:{configurable:!0,enumerable:!0,get:function(){return _.Bj(this.hostElement).querySelector("#transcript-search-box-input")}},
value:{configurable:!0,enumerable:!0,get:function(){return this.inputBox.value}}});
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],OU.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],OU.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],OU.prototype,"systemIcons",void 0);OU=_.O([_.E({disableElementRegistration:!0,is:"ytd-transcript-search-box-renderer"})],OU);
_.v(OU,"ytd-transcript-search-box-renderer",function(){if(PzS!==void 0)return PzS;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return PzS=J},{mode:1});var Mqo;var pfF;var Ax=function(){return _.h.apply(this,arguments)||this};
_.D(Ax,_.h);Ax.prototype.dataChanged=function(){if(this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData){var J,c;this.sectionHeaderAriaLabel=(J=this.data)==null?void 0:(c=J.accessibility)==null?void 0:c.accessibilityData.label}};
Ax.prototype.fireSelectedEvent=function(J){_.cA(this.hostElement,"ytd-transcript-section-header",{startMs:J})};
Ax.prototype.handleClick=function(){this.data&&this.fireSelectedEvent(Number(this.data.startMs))};
Ax.prototype.handleKeyPress=function(J){this.data&&J.key==="Enter"&&this.fireSelectedEvent(Number(this.data.startMs))};
_.eE.Object.defineProperties(Ax.prototype,{enableTappableTranscriptHeader:{configurable:!0,enumerable:!0,get:function(){var J,c;return(c=(J=this.data)==null?void 0:J.enableTappableTranscriptHeader)!=null?c:!1}}});
Ax.prototype.dataChanged=Ax.prototype.dataChanged;_.O([_.U(),_.R("design:type",Object)],Ax.prototype,"data",void 0);_.O([_.U(),_.R("design:type",String)],Ax.prototype,"sectionHeaderAriaLabel",void 0);_.O([_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],Ax.prototype,"enableTappableTranscriptHeader",null);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Ax.prototype,"dataChanged",null);
Ax=_.O([_.E({disableElementRegistration:!0,is:"ytd-transcript-section-header-renderer"})],Ax);
_.v(Ax,"ytd-transcript-section-header-renderer",function(){if(pfF!==void 0)return pfF;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return pfF=J},{mode:1});var NXs;var tqr;var R$=function(){var J=_.h.apply(this,arguments)||this;J.isEditMode=!1;J.touchCaptionsEnabled=!1;J.deleteCaptionCorrectionPopupCommand=null;J.voteCaptionCorrectionPopupCommand=null;J.roundedContainer=!0;J.mouseOver=!1;J.textChanged=!1;J.messages={suggest_correction:_.CX("suggest_correction",void 0,"Edit caption"),suggested_caption:_.CX("suggested_caption",void 0,"Suggested caption"),submit_correction:_.CX("submit_correction",void 0,"Submit for review"),cancel_correction:_.CX("cancel_correction",
void 0,"Cancel"),replay_segment:_.CX("replay_segment",void 0,"Re-play segment"),delete_correction:_.CX("delete_correction",void 0,"Delete correction")};J.actionMap={"yt-transcript-update-segment-text-command":"handleUpdateSegmentText","yt-transcript-edit-segment-command":"handleEditSegmentCommand"};return J};
_.D(R$,_.h);_.V=R$.prototype;_.V.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)};
_.V.handleDelete=function(J){if(this.deleteCaptionCorrectionPopupCommand){var c=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.deleteCaptionCorrectionPopupCommand);c&&this.ytdOpenPopupBehavior.openPopup(c);J.stopPropagation()}};
_.V.handleSubmit=function(J){if(this.data&&this.data.submitCaptionCorrectionCommand&&(J.stopPropagation(),this.textChanged)){var c;J=(c=_.L(this.data.submitCaptionCorrectionCommand,_.Qeu))==null?void 0:c.params;c=Object.assign({},this.data.submitCaptionCorrectionCommand,{transcriptSubmitCaptionCorrectionCommand:{params:J,correctionText:String(this.ironTextAreaElement.value),originalText:_.OG(this.data.snippet)}});this.ytComponentBehavior.resolveCommand(c);this.isEditMode=!1}};
_.V.handleUpdateSegmentText=function(J){(J=_.L(J,eHs))&&J.targetId&&this.data&&J.targetId===this.data.targetId&&(J.userCorrection&&(this.editedText=J.userCorrection),J.restoreOriginalCaption&&(this.editedText=void 0,this.ironTextAreaElement.value=_.OG(this.data.snippet)),J.deleteCaptionCorrectionPopupCommand?this.deleteCaptionCorrectionPopupCommand=J.deleteCaptionCorrectionPopupCommand:this.deleteCaptionCorrectionPopupCommand=null,this.voteCaptionCorrectionPopupCommand=J.voteCaptionCorrectionPopupCommand?
J.voteCaptionCorrectionPopupCommand:null,J.accessibility&&(this.segmentAriaLabel=J.accessibility.accessibilityData.label))};
_.V.handleCancel=function(J){this.isEditMode=!1;J.stopPropagation();this.logClientVe(159409)};
_.V.handleEditSegmentCommand=function(J){(J=_.L(J,QBR))&&J.targetId&&this.data&&J.targetId===this.data.targetId&&this.handleEdit()};
_.V.handleEditButtonClick=function(J){this.data&&(this.handleEdit(),J.stopPropagation())};
_.V.handleEdit=function(){if(this.data){this.fireEditEvent(Number(this.data.startMs),Number(this.data.endMs));this.isEditMode=!0;var J;(J=this.ironTextAreaElement.textarea)==null||J.focus();this.logClientVe(159407)}};
_.V.handleMouseEnter=function(){this.mouseOver=!0};
_.V.handleMouseLeave=function(){this.mouseOver=!1};
_.V.handleReplay=function(J){this.data&&(this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs)),J.stopPropagation(),this.logClientVe(159408))};
_.V.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()))};
_.V.handleKeypress=function(J){this.data&&(this.isEditMode?J.stopPropagation():this.isEnterPress(J)?(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()):this.isCopyPress(J)&&this.logClientVe(138758))};
_.V.handleTextboxClick=function(J){J.stopPropagation()};
_.V.handleTextboxKeydown=function(J){this.isControlEnterPress(J)?this.handleSubmit(J):J.key==="Escape"&&this.handleCancel(J)};
_.V.handleTextboxKeyup=function(){this.textChanged=_.OG(this.latestText)!==String(this.ironTextAreaElement.value)};
_.V.fireSelectedEvent=function(J){_.cA(this.hostElement,"yt-transcript-segment-selected",{startMs:J})};
_.V.fireReplayEvent=function(J,c){_.cA(this.hostElement,"yt-transcript-segment-replay",{startMs:Math.max(J-100,0),endMs:c})};
_.V.fireEditEvent=function(J,c){_.cA(this.hostElement,"yt-transcript-segment-edit",{startMs:J,endMs:c})};
_.V.isEnterPress=function(J){return J.key==="Enter"||J.code==="Enter"||J.code==="NumpadEnter"||J.keyCode===13?!0:!1};
_.V.isControlEnterPress=function(J){var c=J.key==="Enter"||J.code==="Enter"||J.code==="NumpadEnter"||J.keyCode===13;return(J.ctrlKey||J.metaKey)&&c};
_.V.isCopyPress=function(J){var c=J.ctrlKey;return J.key==="c"&&c};
_.V.logClick=function(){var J,c=(J=this.data)==null?void 0:J.trackingParams;c&&_.b6(_.C7(),c)};
_.V.logClientVe=function(J){_.mn(_.C7(),_.rs(J))};
_.eE.Object.defineProperties(R$.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}}});
R$.prototype.handleMouseLeave=R$.prototype.handleMouseLeave;R$.prototype.handleMouseEnter=R$.prototype.handleMouseEnter;R$.prototype.dataChanged=R$.prototype.dataChanged;_.O([_.f(_.yw.YtActionHandlerBehavior),_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],R$.prototype,"ytComponentBehavior",void 0);_.O([_.f(_.vL),_.R("design:type",Object)],R$.prototype,"ytdOpenPopupBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],R$.prototype,"ytRendererBehavior",void 0);
_.O([_.U(),_.R("design:type",Object)],R$.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],R$.prototype,"isEditMode",void 0);_.O([_.U(),_.R("design:type",Object)],R$.prototype,"touchCaptionsEnabled",void 0);_.O([_.U(),_.R("design:type",Object)],R$.prototype,"editedText",void 0);_.O([_.U(),_.R("design:type",Object)],R$.prototype,"deleteCaptionCorrectionPopupCommand",void 0);_.O([_.U(),_.R("design:type",Object)],R$.prototype,"voteCaptionCorrectionPopupCommand",void 0);
_.O([_.U(),_.R("design:type",String)],R$.prototype,"segmentAriaLabel",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],R$.prototype,"roundedContainer",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],R$.prototype,"mouseOver",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],R$.prototype,"textChanged",void 0);_.O([_.U(),_.R("design:type",Object)],R$.prototype,"messages",void 0);
_.O([_.Iu("#suggestion"),_.R("design:type",Object)],R$.prototype,"ironTextAreaElement",void 0);_.O([_.q("data","editedText"),_.R("design:type",Object),_.R("design:paramtypes",[])],R$.prototype,"latestText",null);_.O([_.q("touchCaptionsEnabled","isEditMode"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],R$.prototype,"enableEditButton",null);
_.O([_.q("enableEditButton","deleteCaptionCorrectionPopupCommand"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],R$.prototype,"enableUndoButton",null);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],R$.prototype,"dataChanged",null);_.O([_.ps("mouseenter"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],R$.prototype,"handleMouseEnter",null);
_.O([_.ps("mouseleave"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],R$.prototype,"handleMouseLeave",null);R$=_.O([_.E({disableElementRegistration:!0,is:"ytd-transcript-segment-renderer"})],R$);
_.v(R$,"ytd-transcript-segment-renderer",function(){if(tqr!==void 0)return tqr;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return tqr=J},{mode:1});var o$=function(){var J=_.h.apply(this,arguments)||this;J.actionMap={"yt-player-time-changed":"onYtPlayerTimeChanged"};J.isError=!1;J.darkerPanels=_.w("web_watch_darker_panels");J.useParentMaxHeight=_.w("web_watch_transscript_use_parent_max_height");J.segmentOffsets=[];J.segmentIndex=-1;return J};
_.D(o$,_.h);_.V=o$.prototype;_.V.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"}}}}};
_.V.segmentsChanged=function(){this.updateOffsets()};
_.V.onYtPlayerTimeChanged=function(J){for(var c=this.segmentIndex,m=c;;){if(m>=0){var b=this.segmentOffsets[m].start;var x=this.segmentOffsets[m].isAutoScrollable}else b=-1,x=!0;var P=J+.5;if(!x){b=m+1<this.segmentOffsets.length?this.segmentOffsets[m+1].start:Infinity;if(P>=b){m+=1;continue}m=-1;break}if(P<b)b=m-1>=0&&this.segmentOffsets[m-1].isAutoScrollable,x=m===0||b?1:2,m-=x;else if(x=m+1<this.segmentOffsets.length&&this.segmentOffsets[m+1].isAutoScrollable?1:2,b=m+x<this.segmentOffsets.length?
this.segmentOffsets[m+x].start:Infinity,P>b)m+=x;else{if(m<0)break;m<this.segmentOffsets.length&&P>this.segmentOffsets[m].end&&(m=-1);break}}if(c!==m){if(c>=0){var p;(p=this.getSegmentElement(c))==null||p.classList.remove("active")}this.segmentIndex=m;if(!(m<0)){var t;(t=this.getSegmentElement(m))==null||t.classList.add("active");this.isHovered||this.scrollElementToTop(m)}}};
_.V.handleSegmentEdit=function(J){J.target&&(this.lastSegmentEdited&&(this.lastSegmentEdited.isEditMode=!1),this.lastSegmentEdited=J.target,_.m9(this.hostElement,"yt-transcript-player-edit",[J.detail.startMs/1E3,J.detail.endMs/1E3]))};
_.V.handleSegmentSelected=function(J){_.m9(this.hostElement,"yt-transcript-player-seek",[J.detail.startMs/1E3])};
_.V.handleSegmentReplay=function(J){_.m9(this.hostElement,"yt-transcript-player-replay",[J.detail.startMs/1E3,J.detail.endMs/1E3])};
_.V.handleSectionHeaderSelected=function(J){_.m9(this.hostElement,"yt-transcript-player-seek",[J.detail.startMs/1E3])};
_.V.onMouseEnter=function(){this.isHovered=!0};
_.V.onMouseLeave=function(){this.isHovered=!1};
_.V.onRetryButtonClick=function(){_.cA(this.hostElement,"transcript-retry-button-click")};
_.V.getSegmentElement=function(J){return _.Bj(this.hostElement).querySelector(":nth-child("+(J+1)+")")};
_.V.scrollElementToTop=function(J){J=this.getSegmentElement(J>=2?J-2:0);this.hostElement.scrollTop=Math.min(J.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.V.updateOffsets=function(){this.segmentOffsets=this.segments.map(function(J){var c,m=(c=J.transcriptSegmentRenderer)!=null?c:J.transcriptSectionHeaderRenderer;return{start:Number(m.startMs)/1E3,end:Number(m.endMs)/1E3,isAutoScrollable:J.transcriptSegmentRenderer!==void 0}});
this.segmentIndex=-1;this.clearHighlightedSegments()};
_.V.clearHighlightedSegments=function(){var J=_.Bj(this.hostElement);J=_.M(J.querySelectorAll("ytd-transcript-segment-renderer"));for(var c=J.next();!c.done;c=J.next())c.value.classList.remove("active")};
_.eE.Object.defineProperties(o$.prototype,{segments:{configurable:!0,enumerable:!0,get:function(){var J,c;return((J=this.data)==null?void 0:J.searchResultSegments)||((c=this.data)==null?void 0:c.initialSegments)||[]}},
displayNoResults:{configurable:!0,enumerable:!0,get:function(){return!!this.segments&&this.segments.length===0&&!!this.noResultLabel}}});
o$.prototype.onMouseLeave=o$.prototype.onMouseLeave;o$.prototype.onMouseEnter=o$.prototype.onMouseEnter;o$.prototype.handleSectionHeaderSelected=o$.prototype.handleSectionHeaderSelected;o$.prototype.handleSegmentReplay=o$.prototype.handleSegmentReplay;o$.prototype.handleSegmentSelected=o$.prototype.handleSegmentSelected;o$.prototype.handleSegmentEdit=o$.prototype.handleSegmentEdit;o$.prototype.segmentsChanged=o$.prototype.segmentsChanged;
_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],o$.prototype,"ytActionHandlerBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],o$.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],o$.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],o$.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],o$.prototype,"isError",void 0);
_.O([_.U(),_.R("design:type",Object)],o$.prototype,"noResultLabel",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],o$.prototype,"darkerPanels",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],o$.prototype,"useParentMaxHeight",void 0);_.O([_.q("data"),_.R("design:type",Array),_.R("design:paramtypes",[])],o$.prototype,"segments",null);
_.O([_.q("segments","noResultLabel"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],o$.prototype,"displayNoResults",null);_.O([_.NE("segments"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],o$.prototype,"segmentsChanged",null);_.O([_.ps("yt-transcript-segment-edit"),_.R("design:type",Function),_.R("design:paramtypes",[Event]),_.R("design:returntype")],o$.prototype,"handleSegmentEdit",null);
_.O([_.ps("yt-transcript-segment-selected"),_.R("design:type",Function),_.R("design:paramtypes",[Event]),_.R("design:returntype")],o$.prototype,"handleSegmentSelected",null);_.O([_.ps("yt-transcript-segment-replay"),_.R("design:type",Function),_.R("design:paramtypes",[Event]),_.R("design:returntype")],o$.prototype,"handleSegmentReplay",null);
_.O([_.ps("ytd-transcript-section-header"),_.R("design:type",Function),_.R("design:paramtypes",[Event]),_.R("design:returntype")],o$.prototype,"handleSectionHeaderSelected",null);_.O([_.ps("mouseenter"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],o$.prototype,"onMouseEnter",null);_.O([_.ps("mouseleave"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],o$.prototype,"onMouseLeave",null);
o$=_.O([_.E({disableElementRegistration:!0,is:"ytd-transcript-segment-list-renderer"})],o$);
_.v(o$,"ytd-transcript-segment-list-renderer",function(){if(NXs!==void 0)return NXs;var J=document.createElement("template");_.z(J,'\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>');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return NXs=J},{mode:1});var Q9=function(){var J=_.h.apply(this,arguments)||this;J.hideTimestamps=!!_.m7("hide-transcript-timestamps");J.isLoadingTranscripts=!1;J.darkerPanels=_.w("web_watch_darker_panels");J.isError=!1;J.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-signal-action-copy-transcript":"handleSignalActionCopyTranscript"};return J};
_.D(Q9,_.h);_.V=Q9.prototype;_.V.headerChanged=function(){var J,c;this.baseGetTranscriptsCommand=(c=_.L((J=this.data)==null?void 0:J.header,jBf))==null?void 0:c.onTextChangeCommand};
_.V.bodyChanged=function(){var J=this.getBodyRenderer();J&&(J.initialSegments&&(this.initialTranscriptsRenderer=J),J.noResultLabel&&(this.noResultLabel=J.noResultLabel),J.retryLabel&&(this.retryLabel=J.retryLabel))};
_.V.detached=function(){this.clearSearchBoxText()};
_.V.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"body"}};
_.V.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"}}}};
_.V.onReloadContinuationFinish=function(){this.isLoadingTranscripts=!1};
_.V.fireSearch=function(J){var c=this;if(J){var m=J.detail.query;if(this.baseGetTranscriptsCommand){var b;J=(b=_.L(this.baseGetTranscriptsCommand,_.XeQ))==null?void 0:b.params;var x;b=_.L((x=this.data)==null?void 0:x.footer,Xqp);var P;if((x=(P=_.L(b==null?void 0:b.languageMenu,Alu))==null?void 0:P.subMenuItems)&&x.length>0&&(P=x.find(function(I){return I.selected}))){var p,t;
J=(p=P.continuation)==null?void 0:(t=p.reloadContinuationData)==null?void 0:t.continuation}p=Object.assign({},this.baseGetTranscriptsCommand,{getTranscriptEndpoint:{params:J,searchQuery:m}});this.ytComponentBehavior.resolveCommand(p,{commandController:{onServerError:function(){c.setError()}}});
this.isLoadingTranscripts=!0;this.set("data.body",{});CtR(this.ytContinuationHandlerBehavior,function(){return m===c.getCurrentSearchBoxText()})}}};
_.V.searchCleared=function(){this.data&&this.data.body&&(this.isLoadingTranscripts=!1,this.set("data.body",{transcriptSegmentListRenderer:this.initialTranscriptsRenderer}))};
_.V.onRetryButtonClick=function(){this.isError=!1;var J={query:this.getCurrentSearchBoxText()};this.fireSearch(new CustomEvent("yt-transcript-search-box-search",{detail:J}))};
_.V.hideTimestampsChanged=function(){_.ct("hide-transcript-timestamps",this.hideTimestamps)};
_.V.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.V.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.V.handleSignalActionCopyTranscript=function(){var J=this,c=this.getBodyRenderer();c&&(c=((c==null?void 0:c.searchResultSegments)||(c==null?void 0:c.initialSegments)||[]).map(function(m){return _.L(m,l9R)}).filter(function(m){return!!m}).map(function(m){return{snippet:m.snippet||{runs:[{text:""}]},
startTimeText:m.startTimeText||{simpleText:""}}}).map(function(m){var b=(m.snippet.runs||[]).reduce(function(x,P){return x+P.text},"");
return J.hideTimestamps?b:m.startTimeText.simpleText+" "+b}).join("\n"),this.copyToClipboard(c))};
_.V.copyToClipboard=function(J){navigator.clipboard&&navigator.clipboard.writeText(J)};
_.V.getCurrentSearchBoxText=function(){var J;return(J=this.searchBox)==null?void 0:J.value};
_.V.clearSearchBoxText=function(){this.searchBox&&this.searchBox.clear()};
_.V.getBodyRenderer=function(){var J;return _.L((J=this.data)==null?void 0:J.body,Fdu)};
_.V.setError=function(){this.isLoadingTranscripts=!1;this.isError=!0};
_.eE.Object.defineProperties(Q9.prototype,{searchBox:{configurable:!0,enumerable:!0,get:function(){return _.Bj(this.hostElement).querySelector("ytd-transcript-search-box-renderer")}}});
Q9.prototype.hideTimestampsChanged=Q9.prototype.hideTimestampsChanged;Q9.prototype.searchCleared=Q9.prototype.searchCleared;Q9.prototype.fireSearch=Q9.prototype.fireSearch;Q9.prototype.onReloadContinuationFinish=Q9.prototype.onReloadContinuationFinish;Q9.prototype.bodyChanged=Q9.prototype.bodyChanged;Q9.prototype.headerChanged=Q9.prototype.headerChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Q9.prototype,"ytRendererBehavior",void 0);
_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],Q9.prototype,"ytComponentBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],Q9.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.Sy),_.R("design:type",Object)],Q9.prototype,"ytContinuationHandlerBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Q9.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Q9.prototype,"hideTimestamps",void 0);
_.O([_.U(),_.R("design:type",Object)],Q9.prototype,"isLoadingTranscripts",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Q9.prototype,"darkerPanels",void 0);_.O([_.U(),_.R("design:type",Object)],Q9.prototype,"isError",void 0);_.O([_.NE("data.header"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Q9.prototype,"headerChanged",null);
_.O([_.kr("data.body"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Q9.prototype,"bodyChanged",null);_.O([_.ps("yt-reload-continuation-finish"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Q9.prototype,"onReloadContinuationFinish",null);_.O([_.ps("yt-transcript-search-box-search"),_.R("design:type",Function),_.R("design:paramtypes",[Event]),_.R("design:returntype")],Q9.prototype,"fireSearch",null);
_.O([_.ps("yt-transcript-search-box-clear"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Q9.prototype,"searchCleared",null);_.O([_.NE("hideTimestamps"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Q9.prototype,"hideTimestampsChanged",null);Q9=_.O([_.E({disableElementRegistration:!0,is:"ytd-transcript-search-panel-renderer"})],Q9);
_.v(Q9,"ytd-transcript-search-panel-renderer",function(){if(Mqo!==void 0)return Mqo;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return Mqo=J},{mode:1});var ex=function(){var J=_.h.apply(this,arguments)||this;J.player=null;J.playerPollJobId=0;return J};
_.D(ex,_.h);_.V=ex.prototype;_.V.panelContentVisibleChanged=function(){this.updatePlayerListening()};
_.V.onLoadReloadContinuation=function(J){_.w("enable_att_for_transcript_request_on_web_client")?this.ytComponentBehavior.resolveCommand({getTranscriptEndpoint:{params:J.target.data.continuation}}):(J={clickTrackingParams:J.target.data.clickTrackingParams,getTranscriptEndpoint:{params:J.target.data.continuation},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/get_transcript",sendPost:!0}}},_.BG().resolve(_.gu).resolveCommand(J,{form:{element:this.hostElement}}))};
_.V.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"}}}};
_.V.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-transcript-player-edit":"onYtTranscriptPlayerEdit","yt-transcript-player-seek":"onYtTranscriptPlayerSeek","yt-transcript-player-replay":"onYtTranscriptPlayerReplay"}};
_.V.attached=function(){this.updatePlayerListening()};
_.V.detached=function(){this.updatePlayerListening()};
_.V.updatePlayerListening=function(){this.isAttached&&this.panelContentVisible?(this.player&&this.stopPlayerListening(),this.startPlayerListening()):this.stopPlayerListening()};
_.V.startPlayerListening=function(){var J=this,c;return _.N(function(m){if(m.nextAddress==1)return(c=_.ep())?_.K(m,c.getPlayerPromise(),2):m.return();J.player=m.yieldResult;J.playerPollJobId=_.ft.addLowPriorityJob(function(){J.getPlayerVideoProgress()},1E3);
J.player.addEventListener("onCueRangeEnter",function(b){J.onCueRangeEnter(b)});
J.player.addEventListener("onCueRangeExit",function(b){J.onCueRangeExit(b)});
J.player.addEventListener("onStateChange",function(b){J.onPlayerStateChange(b)});
J.player.addEventListener("SEEK_TO",function(b){J.onPlayerSeek(b)});
_.tD(m)})};
_.V.getPlayerVideoProgress=function(){var J=this;_.ft.cancelJob(this.playerPollJobId);if(this.player){var c=this.player.getCurrentTime();_.m9(this.hostElement,"yt-player-time-changed",[c])}this.playerPollJobId=_.ft.addLowPriorityJob(function(){J.getPlayerVideoProgress()},1E3)};
_.V.stopPlayerListening=function(){this.player=null;_.ft.cancelJob(this.playerPollJobId)};
_.V.onPlayerStateChange=function(J){J===2&&this.removePendingCue()};
_.V.onPlayerSeek=function(J){var c;if(c=this.pendingReplayCueId)c=this.pendingReplayCueId,c=J===(_.w("web_transcript_cue_id_killswitch")?Number(c):Number(c.split("_")[1]));c||this.removePendingCue()};
_.V.onCueRangeEnter=function(J){Gsh(J)&&(this.pendingReplayCueId=J)};
_.V.onCueRangeExit=function(J){Gsh(J)&&this.player&&(this.player.pauseVideo(),this.removePendingCue())};
_.V.removePendingCue=function(){this.player&&this.pendingReplayCueId&&this.player.removeCueRange(this.pendingReplayCueId);this.pendingReplayCueId=void 0};
_.V.onYtTranscriptPlayerSeek=function(J){this.player&&this.player.seekTo(J,!0)};
_.V.onYtTranscriptPlayerReplay=function(J,c){this.player&&(this.player.addCueRange($Vo(J),J,c),this.player.seekTo(J,!0),this.player.playVideo())};
_.V.onYtTranscriptPlayerEdit=function(J,c){this.player&&(this.player.getPlayerState()===1&&this.player.addCueRange($Vo(J),J,c),this.player.seekTo(J,!0))};
ex.prototype.onLoadReloadContinuation=ex.prototype.onLoadReloadContinuation;ex.prototype.panelContentVisibleChanged=ex.prototype.panelContentVisibleChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],ex.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],ex.prototype,"ytComponentBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],ex.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],ex.prototype,"ytActionHandlerBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],ex.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],ex.prototype,"panelContentVisible",void 0);_.O([_.NE("panelContentVisible"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],ex.prototype,"panelContentVisibleChanged",null);
_.O([_.ps("yt-load-reload-continuation"),_.R("design:type",Function),_.R("design:paramtypes",[Object]),_.R("design:returntype")],ex.prototype,"onLoadReloadContinuation",null);ex=_.O([_.E({disableElementRegistration:!0,is:"ytd-transcript-renderer"})],ex);
_.v(ex,"ytd-transcript-renderer",function(){if(Vqo!==void 0)return Vqo;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return Vqo=J},{mode:1});var IWe;var K4f;var jx=function(){return _.h.apply(this,arguments)||this};
_.D(jx,_.h);jx.prototype.onTap=function(){this.data&&(this.data.navigationEndpoint&&_.cA(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.clickCommand&&_.PA(this.hostElement,[this.data.clickCommand],this.hostElement))};
jx.prototype.computeHideMediaQuery=function(){return"(min-width: 600px) and (max-width: "+((0,_.Dm)()+_.S0)+"px)"};
jx.prototype.updateShouldHideFromBinding=function(J){this.shouldHide=J.detail.value};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],jx.prototype,"rendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],jx.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Boolean)],jx.prototype,"shouldHide",void 0);jx=_.O([_.E({is:"ytd-ad-engagement-panel-banner-renderer",disableElementRegistration:!0})],jx);
_.v(jx,"ytd-ad-engagement-panel-banner-renderer",function(){if(K4f!==void 0)return K4f;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return K4f=J},{mode:_.mP("kevlar_poly_si_batch_j070")?1:2});var Czu;var Fr=function(){var J=_.h.apply(this,arguments)||this;J.modernPanels=_.w("kevlar_watch_modern_panels");J.buttonUpdate=_.w("web_modern_buttons");J.adsSemanticText=_.w("enable_ads_web_ep_buenos_aires_and_padding_fix");return J};
_.D(Fr,_.h);Fr.prototype.computeHideDefaultAdBadge=function(){return this.data&&!this.data.badges};
_.O([_.U(),_.R("design:type",Object)],Fr.prototype,"data",void 0);_.O([_.U({computed:"computeHideDefaultAdBadge(data)"}),_.R("design:type",Boolean)],Fr.prototype,"hideDefaultAdBadge",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Fr.prototype,"modernPanels",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Fr.prototype,"buttonUpdate",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Fr.prototype,"adsSemanticText",void 0);
Fr=_.O([_.E({is:"ytd-engagement-panel-ad-subtitle-renderer",disableElementRegistration:!0})],Fr);
_.v(Fr,"ytd-engagement-panel-ad-subtitle-renderer",function(){if(Czu!==void 0)return Czu;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return Czu=J},{mode:1});var aWR;var ll=function(){var J=_.h.apply(this,arguments)||this;J.darkerPanels=_.w("web_watch_darker_panels");J.enableSqueezebackPanels=_.w("web_shorts_enable_squeezeback_panels");J.enableAnchoredPanel=_.w("desktop_shorts_v2_anchored_panel");J.modernPanels=_.w("kevlar_watch_modern_panels");J.actionMap={"yt-engagement-panel-header-show-navigation-button-command":"onYtEngagementPanelHeaderShowNavigationButtonCommand"};return J};
_.D(ll,_.h);_.V=ll.prototype;_.V.computeAdsInfoButton=function(){if(_.w("web_modern_buttons")){var J,c;return(c=_.L((J=this.data)==null?void 0:J.subtitleComplex,Zjs))==null?void 0:c.adInfoRenderer}};
_.V.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}}}}}};
_.V.collapsedChanged=function(){var J;(J=this.data)!=null&&J.actionButton?this.hideActionButton=this.targetId==="engagement-panel-ads"&&_.w("use_ads_engagement_panel_desktop_footer_cta")?!this.collapsed:!1:this.hideActionButton=!0};
_.V.focus=function(J){this.titleElement&&_.ef(this.titleElement,J)};
_.V.computeTitleAriaLabel=function(J){var c=[];if(J.title){var m,b;c.push(this.ytRendererBehavior.getSimpleString(J.title)||((m=J.title.accessibility)==null?void 0:(b=m.accessibilityData)==null?void 0:b.label))}J.contextualInfo&&c.push(this.ytRendererBehavior.getSimpleString(J.contextualInfo));return c.join(" ")};
_.V.onHeaderClick=function(J){this.shouldTriggerHeaderClick(J)&&this.data&&(this.data.navigationEndpoint||this.data.onClickCommand?(this.data.navigationEndpoint&&_.cA(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.onClickCommand&&_.PA(this.hostElement,[this.data.onClickCommand],this.hostElement)):(J=this.getVisibilityToggleButton())&&J.click())};
_.V.onVisibilityButtonClick=function(){if(this.data&&this.data.visibilityButton){var J=_.L(this.data.visibilityButton,_.ur)||_.L(this.data.visibilityButton,_.fO);J&&this.ytRendererBehavior.logExplicitClick(J)}};
_.V.getVisibilityToggleButton=function(){var J=_.Bj(this.hostElement).querySelector("#visibility-button").firstElementChild;return(J==null?void 0:J.is)==="ytd-toggle-button-renderer"?J:null};
_.V.shouldTriggerHeaderClick=function(J){return!_.AP(_.OT(J),this.hostElement,["YTD-MENU-RENDERER","YTD-BUTTON-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])};
_.V.onYtEngagementPanelHeaderShowNavigationButtonCommand=function(J){J=_.L(J,_.sB1);this.targetId&&(J==null?void 0:J.targetId)===this.targetId&&(J=J.navigationButton)&&this.set("data.navigationButton",J)};
_.eE.Object.defineProperties(ll.prototype,{adsSemanticText:{configurable:!0,enumerable:!0,get:function(){return _.w("enable_ads_web_ep_buenos_aires_and_padding_fix")&&this.targetId==="engagement-panel-ads"}},
isActionButtonHidden:{configurable:!0,enumerable:!0,get:function(){var J;return!!(((J=this.entity)==null?0:J.isActionButtonHidden)||this.hideActionButton)}}});
ll.prototype.collapsedChanged=ll.prototype.collapsedChanged;_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],ll.prototype,"actionHandlerBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],ll.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],ll.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.fY),_.R("design:type",Object)],ll.prototype,"ytdReduxBehavior",void 0);
_.O([_.U(),_.R("design:type",Object)],ll.prototype,"data",void 0);_.O([_.U(),_.R("design:type",String)],ll.prototype,"targetId",void 0);_.O([_.U(),_.R("design:type",Boolean)],ll.prototype,"collapsed",void 0);_.O([_.U(),_.R("design:type",Boolean)],ll.prototype,"hideActionButton",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],ll.prototype,"shortsPanel",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],ll.prototype,"liveChatEngagementPanel",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],ll.prototype,"darkerPanels",void 0);_.O([_.Iu("#title"),_.R("design:type",HTMLElement)],ll.prototype,"titleElement",void 0);_.O([_.U({computed:"computeAdsInfoButton(data)"}),_.R("design:type",Object)],ll.prototype,"adsInfoButton",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],ll.prototype,"enableSqueezebackPanels",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],ll.prototype,"enableAnchoredPanel",void 0);_.O([_.U({selectorArgs:["data.engagementPanelTitleHeaderEntityKey"],selector:function(J,c){return _.P2(J.entities,"engagementPanelTitleHeaderEntity",c)}}),
_.R("design:type",Object)],ll.prototype,"entity",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],ll.prototype,"modernPanels",void 0);_.O([_.U({reflectToAttribute:!0}),_.q("targetId"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],ll.prototype,"adsSemanticText",null);_.O([_.kr("collapsed"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],ll.prototype,"collapsedChanged",null);
_.O([_.q("entity","hideActionButton"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],ll.prototype,"isActionButtonHidden",null);ll=_.O([_.E({is:"ytd-engagement-panel-title-header-renderer",disableElementRegistration:!0})],ll);
_.v(ll,"ytd-engagement-panel-title-header-renderer",function(){if(aWR!==void 0)return aWR;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return aWR=J},{mode:1});var kw5;var y9=function(){return _.h.apply(this,arguments)||this};
_.D(y9,_.h);y9.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.editButton":{id:"edit",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],y9.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],y9.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],y9.prototype,"data",void 0);y9=_.O([_.E({is:"ytd-macro-markers-info-item-renderer",disableElementRegistration:!0})],y9);
_.v(y9,"ytd-macro-markers-info-item-renderer",function(){if(kw5!==void 0)return kw5;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return kw5=J},{mode:1});var H8R;var TXo=function(J,c,m,b,x,P){_.DS.call(this);var p=this;this.JSC$20126_containerElement=J;this.hostElement=c;this.supportedSyncItems=m;this.syncEntityKey=b;this.options=x;this.renderLazyListItems=P;this.activeItemBelowSyncPosition=this.contentVisible=this.browsingMode=!1;i8h(this);n5R(this);this.JSC$20126_scrollAnimation=new _.X0(function(t){J.scrollTop=t});
_.Kc(this,this.JSC$20126_scrollAnimation);this.addOnDisposeCallback(function(){p.exitBrowsingMode(!1);p.activeItem&&p.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}))})};
_.D(TXo,_.DS);var i8h=function(J){var c=_.Nh(_.BG().resolve(_.f9),function(m){return m.entities.markersEngagementPanelSyncEntity||{}},function(m,b){var x;
m[J.syncEntityKey]!==b[J.syncEntityKey]&&((x=m[J.syncEntityKey])==null?void 0:x.activeItemIndex)!==void 0&&J.updatePanelActiveItem(m[J.syncEntityKey].activeItemIndex)});
J.unsubscribeFromTimedMarkersListSyncEntity=c;J.addOnDisposeCallback(c);wfp(J)},wfp=function(J){var c=_.BG().resolve(_.f9);
c=_.wNt(c.getState(),J.syncEntityKey);(c==null?void 0:c.activeItemIndex)!==void 0&&(c=J.getItemByIndex(c.activeItemIndex))&&J.setActiveItem(c)},n5R=function(J){var c=new _.FU(J.onScroll,50,J);
_.Kc(J,c);var m=function(){c.fire()};
J.JSC$20126_containerElement.addEventListener("scroll",m);J.addOnDisposeCallback(function(){J.JSC$20126_containerElement.removeEventListener("scroll",m)})};
_.V=TXo.prototype;
_.V.updatePanelActiveItem=function(J){var c=this.getItemByIndex(J);if(c){if(this.setActiveItem(c),this.contentVisible)if(this.browsingMode){var m;((m=this.options)==null?void 0:m.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(J=roR(this),c.offsetTop<this.JSC$20126_containerElement.clientHeight+this.JSC$20126_containerElement.scrollTop&&J&&!this.activeItemBelowSyncPosition&&this.exitBrowsingMode(!1));s4r(this)}else this.scrollToItem(c)}else _.qz(new _.w3("Could not find "+this.supportedSyncItems+
" sync child to set active.",J,this.JSC$20126_containerElement.querySelectorAll(this.supportedSyncItems).length))};
_.V.getItemByIndex=function(J){var c;(c=this.renderLazyListItems)==null||c.call(this,J);c=this.JSC$20126_containerElement.querySelectorAll(this.supportedSyncItems);if(c.length>J)return c[J]};
_.V.setActiveItem=function(J){this.activeItem&&this.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}));J.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!0}}));this.activeItem=J};
_.V.scrollToItem=function(J){J=this.getScrollPositionForItem(J);this.JSC$20126_containerElement.scrollTop!==J&&this.JSC$20126_scrollAnimation.start(this.JSC$20126_containerElement.scrollTop,J,300)};
_.V.getScrollPositionForItem=function(J){if(this.JSC$20126_containerElement.querySelectorAll(this.supportedSyncItems)[0]===J)return 0;var c,m=((c=this.options)==null?0:c.percentOffset)?this.JSC$20126_containerElement.clientHeight*this.options.percentOffset:0;J=_.Xt(J).y+this.JSC$20126_containerElement.scrollTop-(_.Xt(this.JSC$20126_containerElement).y+m);return Math.max(0,Math.min(J,this.JSC$20126_containerElement.scrollHeight-this.JSC$20126_containerElement.offsetHeight))};
_.V.onScroll=function(){this.activeItemBelowSyncPosition=roR(this);if(this.activeItem&&!this.JSC$20126_scrollAnimation.isAnimating()&&Math.abs(this.JSC$20126_containerElement.scrollTop-this.getScrollPositionForItem(this.activeItem))>10){var J;switch((J=this.options)==null?void 0:J.floatingPillType){case "FLOATING_PILL_TYPE_MODERN_TRANSCRIPT":this.enterBrowsingMode(!L4u(this));s4r(this);break;default:this.enterBrowsingMode(!0)}}};
_.V.enterBrowsingMode=function(J){var c=this,m,b;return _.N(function(x){if(x.nextAddress==1){if(c.browsingMode)return x.return();c.browsingMode=!0;J&&c.hostElement.classList.add("browsing-mode");c.playerExitBrowsingModeListener=function(){c.exitBrowsingMode(!1)};
return _.K(x,_.mf(),2)}m=x.yieldResult;(b=m)==null||b.addEventListener("SEEK_TO",c.playerExitBrowsingModeListener);_.tD(x)})};
_.V.exitBrowsingMode=function(J){J=J===void 0?!0:J;this.browsingMode&&(this.browsingMode=!1,this.hostElement.classList.remove("browsing-mode"),J&&this.scrollToItem(this.activeItem),this.removePlayerSeekListener())};
_.V.removePlayerSeekListener=function(){var J=this,c,m;return _.N(function(b){if(b.nextAddress==1)return J.playerExitBrowsingModeListener?_.K(b,_.mf(),3):b.jumpTo(0);c=b.yieldResult;(m=c)==null||m.removeEventListener("SEEK_TO",J.playerExitBrowsingModeListener);J.playerExitBrowsingModeListener=void 0;_.tD(b)})};
var s4r=function(J){var c;((c=J.options)==null?void 0:c.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(L4u(J)?J.hostElement.classList.remove("browsing-mode"):J.activeItem&&J.hostElement.classList.add("browsing-mode"))},roR=function(J){if(!J.activeItem)return!1;
var c,m=((c=J.options)==null?0:c.percentOffset)?J.JSC$20126_containerElement.clientHeight*J.options.percentOffset:0;return J.activeItem.offsetTop>=J.JSC$20126_containerElement.scrollTop+m},L4u=function(J){if(!J.activeItem)return!1;
var c=J.activeItem.offsetTop+14<=J.JSC$20126_containerElement.scrollTop+J.JSC$20126_containerElement.clientHeight;return J.activeItem.offsetTop+J.activeItem.clientHeight-14>=J.JSC$20126_containerElement.scrollTop&&c};
TXo.prototype.panelContentVisibleChanged=function(J){(this.contentVisible=J)&&!this.browsingMode&&this.activeItem&&this.scrollToItem(this.activeItem)};
var DQo=function(J,c){J.syncEntityKey=c;var m;(m=J.unsubscribeFromTimedMarkersListSyncEntity)==null||m.call(J);i8h(J)},W4h=function(J,c){J.options=c};var BZ=function(){var J=_.h.apply(this,arguments)||this;J.browsingMode=!1;J.modern=_.w("web_button_rework");J.actionMap={"yt-set-active-panel-item-action":"handleSetActivePanelItemAction"};return J};
_.D(BZ,_.h);_.V=BZ.prototype;_.V.activeItemChanged=function(){if(!_.w("synced_panel_scrolling_controller")){var J;((J=this.syncEntity)==null?void 0:J.activeItemIndex)!==void 0&&this.updatePanelActiveItem(this.syncEntity.activeItemIndex)}};
_.V.created=function(){var J=this;_.w("synced_panel_scrolling_controller")||(this.JSC$20130_scrollAnimation=new _.X0(function(c){J.contents.scrollTop=c}),this.boundExitBrowsingMode=function(){J.exitBrowsingMode(!1)})};
_.V.detached=function(){if(_.w("synced_panel_scrolling_controller")){var J;(J=this.scrollController)==null||J.dispose();this.scrollController=void 0}else this.removePlayerSeekListener()};
_.V.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"}}}};
_.V.dataChanged=function(){var J=this;_.w("synced_panel_scrolling_controller")?_.o3(this,function(){if(J.scrollController){var c;(c=J.scrollController)==null||c.exitBrowsingMode(!1);var m,b,x;(b=J.scrollController)==null||DQo(b,(x=(m=J.data)==null?void 0:m.syncModelEntityKey)!=null?x:"default-macro-markers-list-renderer-entity-key");var P,p,t;(t=J.scrollController)==null||W4h(t,{percentOffset:(P=J.data)==null?void 0:P.selectedItemAlignmentPercentOffset,floatingPillType:(p=J.data)==null?void 0:p.floatingPillType})}else{var I,
a,k,H;J.scrollController=new TXo(J.contents,J.hostElement,"ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model",(H=(I=J.data)==null?void 0:I.syncModelEntityKey)!=null?H:"default-macro-markers-list-renderer-entity-key",{percentOffset:(a=J.data)==null?void 0:a.selectedItemAlignmentPercentOffset,floatingPillType:(k=J.data)==null?void 0:k.floatingPillType},function(T){J.renderLazyListItems(T)})}J.scrollController.panelContentVisibleChanged(!!J.panelContentVisible)}):this.exitBrowsingMode()};
_.V.computeButtonShape=function(){var J=this;if(this.data&&this.data.syncButtonLabel&&this.modern)return{onTap:function(){J.onSyncClick()},
style:"mono",type:"filled",state:"active",size:"S",focused:!1,buttonText:this.ytRendererBehavior.getSimpleString(this.data.syncButtonLabel)}};
_.V.computeSyncEnabled=function(J){return!(J==null||!J.syncButtonLabel)};
_.V.renderLazyListItems=function(J){for(var c=this.contents.children,m=0,b=0;b<c.length;b++){var x=void 0;(x=c[b].ytLazyListBehavior)==null||x.fillRemainingListItems();var P=void 0,p=void 0;x=_.L((P=this.data)==null?void 0:(p=P.contents)==null?void 0:p[b],_.q_Z);p=P=void 0;if((P=x)==null?0:(p=P.contents)==null?0:p.length)m+=x.contents.length;if(m>=J)break}};
_.V.getItemByIndex=function(J){this.renderLazyListItems(J);var c=this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model");if(c.length>J)return c[J]};
_.V.setActiveItem=function(J){this.currentActiveItem&&this.currentActiveItem.active!==void 0&&(this.currentActiveItem.active=!1);J.active!==void 0&&(J.active=!0);this.currentActiveItem=J};
_.V.handleSetActivePanelItemAction=function(J){if((J=_.L(J,DNe))&&this.panelTargetId===J.panelTargetId){J=J.itemIndex;if(_.w("synced_panel_scrolling_controller")){var c,m;var b=(m=(c=this.data)==null?void 0:c.syncModelEntityKey)!=null?m:"default-macro-markers-list-renderer-entity-key"}else{var x;b=(x=this.data)==null?void 0:x.syncModelEntityKey}if(b){var P;((P=this.syncEntity)==null?void 0:P.activeItemIndex)!==J&&this.ytdReduxBehavior.dispatch(_.It("markersEngagementPanelSyncEntity",b,{key:b,activeItemIndex:J}))}else this.updatePanelActiveItem(J)}};
_.V.updatePanelActiveItem=function(J){var c=this.getItemByIndex(J);c?(this.setActiveItem(c),!this.browsingMode&&this.panelContentVisible&&this.scrollToItem(c)):_.qz(new _.w3("Could not find ytd-macro-markers-list-renderer sync child to set active.",J,this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model").length))};
_.V.scrollToItem=function(J){J=this.getScrollPositionForItem(J);this.contents.scrollTop!==J&&this.JSC$20130_scrollAnimation.start(this.contents.scrollTop,J,300)};
_.V.getScrollPositionForItem=function(J){if(this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model")[0]===J)return 0;J=_.Xt(J).y+this.contents.scrollTop-_.Xt(this.contents).y-this.getStickyHeaderHeight(J);return Math.min(J,this.contents.scrollHeight-this.contents.offsetHeight)};
_.V.getStickyHeaderHeight=function(J){if(J.nodeName==="MACRO-MARKERS-PANEL-ITEM-VIEW-MODEL"){var c,m,b;return(b=(c=J.closest('ytd-item-section-renderer[header-style="sticky-header"]'))==null?void 0:(m=c.header)==null?void 0:m.offsetHeight)!=null?b:0}return 0};
_.V.onScroll=function(){_.w("synced_panel_scrolling_controller")||(this.ytRendererBehavior.markDirty(),this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&!this.JSC$20130_scrollAnimation.isAnimating()&&Math.abs(this.contents.scrollTop-this.getScrollPositionForItem(this.currentActiveItem))>10&&this.enterBrowsingMode())};
_.V.enterBrowsingMode=function(){var J=this;return _.N(function(c){if(c.nextAddress==1){if(J.browsingMode)return c.return();J.browsingMode=!0;return _.K(c,_.jp().getPlayerPromise(),2)}J.player=c.yieldResult;J.player.addEventListener("SEEK_TO",J.boundExitBrowsingMode);_.tD(c)})};
_.V.exitBrowsingMode=function(J){this.browsingMode&&(this.browsingMode=!1,(J===void 0||J)&&this.scrollToItem(this.currentActiveItem),this.removePlayerSeekListener())};
_.V.removePlayerSeekListener=function(){this.player&&(this.player.removeEventListener("SEEK_TO",this.boundExitBrowsingMode),this.player=void 0)};
_.V.onSyncClick=function(){if(_.w("synced_panel_scrolling_controller")){var J;(J=this.scrollController)==null||J.exitBrowsingMode()}else this.exitBrowsingMode()};
_.V.panelContentVisibleChanged=function(){if(_.w("synced_panel_scrolling_controller")){var J;(J=this.scrollController)==null||J.panelContentVisibleChanged(!!this.panelContentVisible)}else this.panelContentVisible&&this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&this.scrollToItem(this.currentActiveItem)};
BZ.prototype.panelContentVisibleChanged=BZ.prototype.panelContentVisibleChanged;BZ.prototype.dataChanged=BZ.prototype.dataChanged;BZ.prototype.activeItemChanged=BZ.prototype.activeItemChanged;_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],BZ.prototype,"actionHandlerBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],BZ.prototype,"ytRendererBehavior",void 0);
_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],BZ.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.fY),_.R("design:type",Object)],BZ.prototype,"ytdReduxBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],BZ.prototype,"data",void 0);_.O([_.U({value:!1,reflectToAttribute:!0}),_.R("design:type",Boolean)],BZ.prototype,"useCustomColors",void 0);_.O([_.U({computed:"computeSyncEnabled(data)"}),_.R("design:type",Boolean)],BZ.prototype,"syncEnabled",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",String)],BZ.prototype,"panelTargetId",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],BZ.prototype,"panelContentVisible",void 0);_.O([_.Iu("#contents"),_.R("design:type",HTMLElement)],BZ.prototype,"contents",void 0);_.O([_.Iu("#sync-container"),_.R("design:type",HTMLElement)],BZ.prototype,"syncContainer",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],BZ.prototype,"browsingMode",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],BZ.prototype,"modern",void 0);_.O([_.U({selectorArgs:["data.syncModelEntityKey"],selector:_.wNt}),_.R("design:type",Object)],BZ.prototype,"syncEntity",void 0);_.O([_.NE("syncEntity.activeItemIndex"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],BZ.prototype,"activeItemChanged",null);
_.O([_.kr("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],BZ.prototype,"dataChanged",null);_.O([_.NE("panelContentVisible"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],BZ.prototype,"panelContentVisibleChanged",null);BZ=_.O([_.E({is:"ytd-macro-markers-list-renderer",disableElementRegistration:!0})],BZ);
_.v(BZ,"ytd-macro-markers-list-renderer",function(){if(H8R!==void 0)return H8R;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return H8R=J},{mode:1});var z9s;var gw=function(){return _.h.apply(this,arguments)||this};
_.D(gw,_.h);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],gw.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],gw.prototype,"ytComponentBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],gw.prototype,"data",void 0);gw=_.O([_.E({is:"ytd-error-corrections-section-item-renderer",disableElementRegistration:!0})],gw);
_.v(gw,"ytd-error-corrections-section-item-renderer",function(){if(z9s!==void 0)return z9s;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return z9s=J},{mode:1});var uN4;var J9=function(){return _.h.apply(this,arguments)||this};
_.D(J9,_.h);J9.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer"}}}};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],J9.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],J9.prototype,"ytComponentBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],J9.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],J9.prototype,"data",void 0);J9=_.O([_.E({is:"ytd-error-corrections-section-renderer",disableElementRegistration:!0})],J9);
_.v(J9,"ytd-error-corrections-section-renderer",function(){if(uN4!==void 0)return uN4;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return uN4=J},{mode:1});var fWo;var cD=function(){return _.h.apply(this,arguments)||this};
_.D(cD,_.h);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],cD.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],cD.prototype,"componentBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],cD.prototype,"data",void 0);cD=_.O([_.E({is:"ytd-topic-link-renderer",disableElementRegistration:!0})],cD);
_.v(cD,"ytd-topic-link-renderer",function(){if(fWo!==void 0)return fWo;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return fWo=J},{mode:1});var YgR;var mi=function(){var J=_.h.apply(this,arguments)||this;J.modern=_.w("kevlar_modern_sd_v2");J.modernLockupV2=_.w("modernize_structured_description_playlist_lockups_v2");J.modernTypography=_.w("web_modern_typography");return J};
_.D(mi,_.h);mi.prototype.configureRendererStamper=function(){return{"data.mediaLockups":{id:"media-lockups",mapping:{structuredDescriptionPlaylistLockupRenderer:{component:"ytd-structured-description-playlist-lockup-renderer",properties:{showSidePanelThumbnailOverlay:"[[modernLockupV2]]"}}}},"data.topicLink":{id:"topic-link",mapping:{topicLinkRenderer:"ytd-topic-link-renderer"}}}};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],mi.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],mi.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],mi.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],mi.prototype,"modern",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],mi.prototype,"modernLockupV2",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],mi.prototype,"modernTypography",void 0);mi=_.O([_.E({is:"ytd-video-description-course-section-renderer",disableElementRegistration:!0})],mi);
_.v(mi,"ytd-video-description-course-section-renderer",function(){if(YgR!==void 0)return YgR;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return YgR=J},{mode:1});var XfS;var b7=function(){var J=_.h.apply(this,arguments)||this;J.modern=_.w("kevlar_modern_sd_v2");J.modernTypography=_.w("web_modern_typography");return J};
_.D(b7,_.h);b7.prototype.configureRendererStamper=function(){return{"data.files":{id:"file-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.viewAllButton":{id:"view-all-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],b7.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],b7.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],b7.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],b7.prototype,"modern",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],b7.prototype,"modernTypography",void 0);
b7=_.O([_.E({is:"ytd-video-description-files-section-renderer",disableElementRegistration:!0})],b7);
_.v(b7,"ytd-video-description-files-section-renderer",function(){if(XfS!==void 0)return XfS;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return XfS=J},{mode:1});var Z8e;var xn=function(){return _.h.apply(this,arguments)||this};
_.D(xn,_.h);xn.prototype.configureRendererStamper=function(){return{"data.mediaLockups":{id:"media-lockups",mapping:{mediaLockupRenderer:"ytd-media-lockup-renderer"}},"data.topicLink":{id:"topic-link",mapping:{topicLinkRenderer:"ytd-topic-link-renderer"}}}};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],xn.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],xn.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],xn.prototype,"data",void 0);xn=_.O([_.E({is:"ytd-video-description-gaming-section-renderer",disableElementRegistration:!0})],xn);
_.v(xn,"ytd-video-description-gaming-section-renderer",function(){if(Z8e!==void 0)return Z8e;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return Z8e=J},{mode:1});var qg5;var VN=function(){var J=_.h.apply(this,arguments)||this;J.isExpanded=!1;return J};
_.D(VN,_.h);VN.prototype.computeHasDefaultMetadataEndpoint=function(J){var c;J=J==null?void 0:(c=J.defaultMetadata)==null?void 0:c.runs;return!(!J||J.length!==1||!J[0].navigationEndpoint)};
VN.prototype.onRowExpand=function(){this.isExpandable&&!this.isExpanded&&(this.isExpanded=!0)};
_.eE.Object.defineProperties(VN.prototype,{isExpandable:{configurable:!0,enumerable:!0,get:function(){var J;return!((J=this.data)==null||!J.expandedMetadata)}},
showExpandedMetadata:{configurable:!0,enumerable:!0,get:function(){return!(!this.isExpandable||!this.isExpanded)}}});
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],VN.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],VN.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],VN.prototype,"isExpanded",void 0);_.O([_.U({computed:"computeHasDefaultMetadataEndpoint(data)",reflectToAttribute:!0}),_.R("design:type",Boolean)],VN.prototype,"hasDefaultMetadataEndpoint",void 0);
_.O([_.q("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],VN.prototype,"isExpandable",null);_.O([_.q("data","isExpandable","isExpanded"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],VN.prototype,"showExpandedMetadata",null);VN=_.O([_.E({is:"ytd-info-row-renderer",disableElementRegistration:!0})],VN);
_.v(VN,"ytd-info-row-renderer",function(){if(qg5!==void 0)return qg5;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return qg5=J},{mode:1});var UQR;var PD=function(){var J=_.h.apply(this,arguments)||this;J.currentIndex=0;J.supportComponentResize=!0;J.modern=_.w("kevlar_modern_sd_v2");J.JSC$20156_lastScrollContainerWidth=NaN;return J};
_.D(PD,_.h);_.V=PD.prototype;
_.V.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"}}}};
_.V.getItemsPath=function(){return"videoLockups"};
_.V.hiddenChanged=function(){this.contentHidden||this.updateVideoLockupStyles()};
_.V.onIronResize=function(){this.updateVideoLockupStyles()};
_.V.dataChanged=function(){this.updateVideoLockupStyles();this.ytdHorizontalListBehavior.reset()};
_.V.updateVideoLockupStyles=function(){var J;this.JSC$20156_scrollContainer!==void 0&&(J=this.videoLockups)!=null&&J.length&&(J=this.JSC$20156_scrollContainer.clientWidth,J!==this.JSC$20156_lastScrollContainerWidth&&(this.JSC$20156_lastScrollContainerWidth=J,_.V1(this.hostElement,{"--ytd-compact-video-renderer-width":Math.min(J*.8,415)+"px"}),_.cA(this.hostElement,"iron-resize")))};
_.eE.Object.defineProperties(PD.prototype,{videoLockups:{configurable:!0,enumerable:!0,get:function(){var J=[],c;if((c=this.data)==null||!c.carouselLockups)return J;c=_.M(this.data.carouselLockups);for(var m=c.next();!m.done;m=c.next()){m=m.value;var b=void 0;((b=_.L(m,JwR))==null?0:b.videoLockup)&&J.push(_.L(m,JwR).videoLockup)}return J}},
hasVideoLockups:{configurable:!0,enumerable:!0,get:function(){var J;return!((J=this.videoLockups)==null||!J.length)}},
infoRows:{configurable:!0,enumerable:!0,get:function(){var J=[],c;if((c=this.data)==null||!c.carouselLockups)return J;var m;return(m=_.L(this.data.carouselLockups[this.scrollCount],JwR))==null?void 0:m.infoRows}}});
PD.prototype.dataChanged=PD.prototype.dataChanged;PD.prototype.onIronResize=PD.prototype.onIronResize;PD.prototype.hiddenChanged=PD.prototype.hiddenChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],PD.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],PD.prototype,"componentBehavior",void 0);_.O([_.f(_.yI.YtdHorizontalListBehavior),_.R("design:type",Object)],PD.prototype,"ytdHorizontalListBehavior",void 0);
_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],PD.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],PD.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],PD.prototype,"inlineStructuredDescription",void 0);_.O([_.U({value:2}),_.R("design:type",Number)],PD.prototype,"initialCount",void 0);_.O([_.U(),_.R("design:type",Object)],PD.prototype,"currentIndex",void 0);
_.O([_.U(),_.R("design:type",Number)],PD.prototype,"scrollCount",void 0);_.O([_.U(),_.R("design:type",Object)],PD.prototype,"supportComponentResize",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],PD.prototype,"contentHidden",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],PD.prototype,"modern",void 0);_.O([_.Iu("#scroll-container"),_.R("design:type",HTMLDivElement)],PD.prototype,"JSC$20156_scrollContainer",void 0);
_.O([_.NE("contentHidden"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],PD.prototype,"hiddenChanged",null);_.O([_.q("data"),_.R("design:type",Array),_.R("design:paramtypes",[])],PD.prototype,"videoLockups",null);_.O([_.q("videoLockups"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],PD.prototype,"hasVideoLockups",null);
_.O([_.ps("iron-resize"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],PD.prototype,"onIronResize",null);_.O([_.q("data","scrollCount"),_.R("design:type",Object),_.R("design:paramtypes",[])],PD.prototype,"infoRows",null);_.O([_.kr("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],PD.prototype,"dataChanged",null);PD=_.O([_.E({is:"ytd-video-description-music-section-renderer",disableElementRegistration:!0})],PD);
_.v(PD,"ytd-video-description-music-section-renderer",function(){if(UQR!==void 0)return UQR;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return UQR=J},{mode:_.mP("kevlar_poly_si_batch_j081")?1:2});var Sgp;var MO=function(){var J=_.h.apply(this,arguments)||this;J.modern=_.w("kevlar_modern_sd_v2");J.modernTypography=_.w("web_modern_typography");return J};
_.D(MO,_.h);MO.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],MO.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],MO.prototype,"ytRendererBehavior",void 0);_.O([_.U({}),_.R("design:type",Object)],MO.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],MO.prototype,"modern",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],MO.prototype,"modernTypography",void 0);
MO=_.O([_.E({is:"ytd-video-description-transcript-section-renderer",disableElementRegistration:!0})],MO);
_.v(MO,"ytd-video-description-transcript-section-renderer",function(){if(Sgp!==void 0)return Sgp;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return Sgp=J},{mode:1});var h9p;_.lv(_.Q1(function(J){var c=_.tT(_.DWD,function(){return J.data().firstProviderLinkStatusEntityKey}),m=_.tT(_.DWD,function(){return J.data().secondProviderLinkStatusEntityKey}),b=function(){var x,P;
return((x=c())==null?void 0:x.linked)||((P=m())==null?void 0:P.linked)};
return _.C("ytw-video-description-fantasy-section-view-model",{class:"ytwVideoDescriptionFantasySectionViewModelHost"},_.C(_.j8,{className:"ytwVideoDescriptionFantasySectionViewModelTitle",text:function(){return J.data().sectionTitle}}),_.C(_.j8,{className:"ytwVideoDescriptionFantasySectionViewModelMessage",
text:function(){return b()?J.data().connectedMessage:J.data().notConnectedMessage}}),_.C(_.n,{cond:b,
then:function(){return _.C(_.wi,{data:function(){return J.data().connectedButton}},{buttonViewModel:function(x){return _.C(_.XU,{data:x.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}),_.C(_.n,{cond:function(){return!b()},
then:function(){return _.C(_.wi,{data:function(){return J.data().notConnectedButton}},{buttonViewModel:function(x){return _.C(_.XU,{data:x.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}))},"Ti"),"ytw-video-description-fantasy-section-view-model",{props:{data:_.vt}});_.lv(_.Q1(function(J){var c=J.data;return _.C("how-this-was-made-section-view-model",{class:"ytwHowThisWasMadeSectionViewModelHost",tabindex:-1},_.C("div",{class:"ytwHowThisWasMadeSectionViewModelSectionTitle"},_.C(_.j8,{text:function(){return c().sectionTitle}})),_.C("div",{class:"ytwHowThisWasMadeSectionViewModelBodyHeader"},_.C(_.j8,{text:function(){return c().bodyHeader}})),_.C("div",{class:"ytwHowThisWasMadeSectionViewModelBodyText"},_.C(_.j8,{text:function(){return c().bodyText}})),_.C(_.n,
{cond:function(){return c().attributionText},
then:function(){return _.C("div",{class:"ytwHowThisWasMadeSectionViewModelAttributionText"},_.C(_.j8,{text:function(){return c().attributionText}}))}}))},"Ui"),"how-this-was-made-section-view-model",{props:{data:_.vt}});_.lv(_.Q1(function(J){return _.C("yt-video-description-youchat-section-view-model",{class:_.pq("ytVideoDescriptionYouchatSectionViewModelHost")},_.C("div",{class:"ytVideoDescriptionYouchatSectionViewModelSectionTitle"},_.C(_.j8,{text:function(){return J.data().sectionTitle}})),_.C("div",{class:"ytVideoDescriptionYouchatSectionViewModelSubHeaderText"},_.C(_.j8,{text:function(){return J.data().subHeaderText}})),_.C("div",{class:"ytVideoDescriptionYouchatSectionViewModelPrimaryButton"},_.C(_.XU,{data:function(){return _.L(J.data().primaryButton,
_.ri)}})))},"Vi"),"yt-video-description-youchat-section-view-model",{props:{data:_.vt}});var ph=function(){var J=_.h.apply(this,arguments)||this;J.modern=_.w("kevlar_modern_sd_v2");J.actionMap={"yt-set-active-panel-item-action":"handleSetActiveItemAction"};return J};
_.D(ph,_.h);_.V=ph.prototype;
_.V.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}}}}}};
_.V.panelContentVisibleChanged=function(){this.description&&(this.description.panelContentVisible=this.panelContentVisible)};
_.V.dataChanged=function(){var J,c;this.hasDescriptionOnly=!(((J=this.data)==null?void 0:(c=J.items)==null?void 0:c.length)!==1||!_.L(this.data.items[0],cwu))};
_.V.onHiddenChanged=function(){this.musicMetadataSection&&(this.musicMetadataSection.contentHidden=this.hidden);this.hidden||this.resize()};
_.V.onYtExpanderMoreTapped=function(){this.autoFocusDescription()};
_.V.autoFocusDescription=function(){var J;((J=_.BG().resolve(_.y6(_.Js)))==null?0:J.isKeyBoardInUse())&&this.description&&_.jf(this.description)};
_.V.resize=function(){if(_.w("kevlar_disable_sd_resize"))this.JSC$20164_cardList&&_.cA(this.JSC$20164_cardList,"iron-resize"),this.problemWalkthroughCardList&&_.cA(this.problemWalkthroughCardList,"iron-resize"),this.musicMetadataSection&&_.cA(this.musicMetadataSection,"iron-resize");else if(this.ironResizableBehavior.notifyResize(),this.shelfSection)this.shelfSection.onParentResize()};
_.V.scrollToSection=function(J){if(J=this.getSectionElement(J))_.m9(this.hostElement,"yt-scroll-to-watch-element",[J]),J.focus()};
_.V.getSectionElement=function(J){switch(J){case "infocards-item-section":var c;return(c=this.infocardsSection)!=null?c:null;case "transcript-item-section":var m;return(m=this.transcriptSection)!=null?m:null;case "how-this-was-made-section-item-section":var b;return(b=this.howThisWasMadeSection)!=null?b:null;case "files-item-section":var x;return(x=this.filesSection)!=null?x:null;default:return null}};
_.V.handleSetActiveItemAction=function(J){var c=_.L(J,DNe),m=c&&(c==null?void 0:c.panelTargetId)==="engagement-panel-macro-markers-problem-walkthroughs"?this.problemWalkthroughCardList:this.JSC$20164_cardList;if(c&&m){J=this.currentActiveChapter;var b=this.currentActiveProblem;c=m==null?void 0:m.getItemByIndex(c.itemIndex);var x=m=!0;c&&(c.active=!0,c.carouselType==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_DEFAULT"?(m=J!==c,x=!1,this.currentActiveChapter=c):(c==null?void 0:c.carouselType)===
"MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"&&(m=!1,x=b!==c,this.currentActiveProblem=c));J&&m&&(J.active=!1);b&&x&&(b.active=!1)}};
_.eE.Object.defineProperties(ph.prototype,{showVideoSummary:{configurable:!0,enumerable:!0,get:function(){return _.w("web_watch_move_summary_to_sd")&&!!this.videoSummary}}});
ph.prototype.onYtExpanderMoreTapped=ph.prototype.onYtExpanderMoreTapped;ph.prototype.onHiddenChanged=ph.prototype.onHiddenChanged;ph.prototype.dataChanged=ph.prototype.dataChanged;ph.prototype.panelContentVisibleChanged=ph.prototype.panelContentVisibleChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],ph.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],ph.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],ph.prototype,"actionHandlerBehavior",void 0);_.O([_.f(_.rI),_.R("design:type",Object)],ph.prototype,"ironResizableBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],ph.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Boolean)],ph.prototype,"panelContentVisible",void 0);_.O([_.U(),_.R("design:type",Boolean)],ph.prototype,"hasDescriptionOnly",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],ph.prototype,"inlineStructuredDescription",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],ph.prototype,"hidden",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],ph.prototype,"shortsPanel",void 0);_.O([_.U(),_.R("design:type",Object)],ph.prototype,"videoSummary",void 0);_.O([_.U(),_.R("design:type",Object)],ph.prototype,"merchShelf",void 0);
_.O([_.q("videoSummary"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],ph.prototype,"showVideoSummary",null);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],ph.prototype,"modern",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],ph.prototype,"engagementPanel",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],ph.prototype,"watchWhileSdp",void 0);
_.O([_.Iu("ytd-expandable-video-description-body-renderer"),_.R("design:type",Object)],ph.prototype,"description",void 0);_.O([_.Iu("ytd-horizontal-card-list-renderer"),_.R("design:type",Object)],ph.prototype,"JSC$20164_cardList",void 0);_.O([_.Iu("ytd-horizontal-card-list-renderer[center-items]"),_.R("design:type",Object)],ph.prototype,"problemWalkthroughCardList",void 0);_.O([_.Iu("ytd-shelf-renderer"),_.R("design:type",Object)],ph.prototype,"shelfSection",void 0);
_.O([_.Iu("ytd-video-description-music-section-renderer"),_.R("design:type",Object)],ph.prototype,"musicMetadataSection",void 0);_.O([_.Iu("ytd-video-description-infocards-section-renderer"),_.R("design:type",Object)],ph.prototype,"infocardsSection",void 0);_.O([_.Iu("ytd-video-description-transcript-section-renderer"),_.R("design:type",Object)],ph.prototype,"transcriptSection",void 0);
_.O([_.Iu("how-this-was-made-section-view-model"),_.R("design:type",Object)],ph.prototype,"howThisWasMadeSection",void 0);_.O([_.Iu("ytd-video-description-files-section-renderer"),_.R("design:type",Object)],ph.prototype,"filesSection",void 0);_.O([_.NE("panelContentVisible"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],ph.prototype,"panelContentVisibleChanged",null);
_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],ph.prototype,"dataChanged",null);_.O([_.NE("hidden"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],ph.prototype,"onHiddenChanged",null);_.O([_.ps("yt-expander-more-tapped"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],ph.prototype,"onYtExpanderMoreTapped",null);
ph=_.O([_.E({is:"ytd-structured-description-content-renderer",disableElementRegistration:!0})],ph);
_.v(ph,"ytd-structured-description-content-renderer",function(){if(h9p!==void 0)return h9p;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return h9p=J},{mode:2});var dQu;var $Q1;var NO=function(){return _.h.apply(this,arguments)||this};
_.D(NO,_.h);NO.prototype.computeAriaLabel=function(J){var c,m;return(J==null?void 0:(c=J.accessibility)==null?void 0:(m=c.accessibilityData)==null?void 0:m.label)||_.CX("LOADING",void 0,"Loading")};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],NO.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],NO.prototype,"data",void 0);_.O([_.U({computed:"computeAriaLabel(data)"}),_.R("design:type",String)],NO.prototype,"ariaLabel",void 0);NO=_.O([_.uM({disableElementRegistration:!0,is:"yt-content-loading-renderer"})],NO);
_.v(NO,"yt-content-loading-renderer",function(){if($Q1===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;dQu===void 0&&(dQu=document.createElement("template"));var b=dQu;m.call(c,b.content.cloneNode(!0),J.content.firstChild);$Q1=J}J=$Q1;return J},{mode:_.mP("kevlar_poly_si_batch_j043")?1:2});_.lv(_.Q1(function(J){var c=_.M(_.K2(!1,void 0,"WbYeXc")),m=c.next().value,b=c.next().value;c=_.M(_.K2(!1,void 0,"msXkzc"));var x=c.next().value,P=c.next().value;_.uN(function(){var I=_.L(J.data().collaboratePlaylistCollaborationSetting,RHf);I&&b(I.switchedOnByDefault);var a=_.L(J.data().allowNewCollaboratorsPlaylistCollaborationSetting,RHf);a&&P(a.switchedOnByDefault);if(!I&&!a||!I&&J.data().collaborationType==="COLLABORATION_TYPE_TASTE_MATCH")b(!0),P(!0)});
var p=function(I){b(I);P(I);var a=J.data().playlistCollaborationEntityKey||"";var k=_.v9().getState();(k=_.P2(k.entities,"playlistCollaborationEntity",a))&&(k==null?void 0:k.isCollaborative)===I||_.v9().dispatch(_.It("playlistCollaborationEntity",a,Object.assign({},k,{isCollaborative:I})))},t=function(I){P(I)};
return _.C("playlist-collaboration-view-model",{class:"ytPlaylistCollaborationViewModelHost"},_.C("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.C(_.wi,{data:function(){return J.data().collaboratePlaylistCollaborationSetting}},{switchListItemViewModel:function(I){return _.C(_.TX_,{data:I.data,
onSwitch:p})}})),_.C(_.n,{cond:m,
then:function(){return _.C("div",null,_.C("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.C(_.wi,{data:function(){return J.data().allowNewCollaboratorsPlaylistCollaborationSetting}},{switchListItemViewModel:function(I){return _.C(_.TX_,{data:I.data,
onSwitch:t,overrideDisabled:!1})}})),_.C(_.n,{cond:x,
then:function(){return _.C("div",{class:"ytPlaylistCollaborationViewModelButtonViewModelWrapper"},_.C(_.wi,{data:function(){return J.data().copyLinkButton}},{buttonViewModel:_.XU}))}}),_.C("div",{class:"ytPlaylistCollaborationViewModelContentListItemViewModelWrapper"},_.C(_.wi,{data:function(){return J.data().playlistCollaborators}},{contentListItemViewModel:_.c_u})))}}))},"Wi"),"playlist-collaboration-view-model",{props:{data:_.vt}});var Gwh=_.Q1(function(J){var c=J.data;var m=J.customCommandResolver;return _.C(_.cG,null,_.C("div",{class:"ytwAdAvatarLockupViewModelHostAvatarStyleCompact"},_.C(_.wi,{data:function(){return c().adAvatar}},{adAvatarViewModel:function(b){return _.C(_.Miu,{data:b.data,
customCommandResolver:m})}})),_.C("div",{class:"ytwAdAvatarLockupViewModelHostTextsStyleCompact"},_.C(_.n,{cond:function(){return c().headline},
then:function(b){return _.C(_.j8,{text:b,className:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactHeadlineWidthUnlocked"}})}}),_.C("div",{class:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactDescriptionWidthUnlocked"}},_.C(_.wi,{data:function(){return c().adBadge}},{adBadgeViewModel:function(b){return _.C(_.yC,{data:b.data,
hasDot:function(){return c().primaryDetailsLine!==void 0},
customCommandResolver:m,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}),_.C(_.wi,{data:function(){return c().primaryDetailsLine}},{adDetailsLineViewModel:function(b){return _.C(_.BW,{data:b.data,
customCommandResolver:m,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))))},"Xi"),E5h=_.Q1(function(J){var c=J.data;
var m=J.customCommandResolver;J=_.oN("ad-avatar-lockup-view-model");_.Rt(J,function(){return c().interaction},m);
_.gv(J,{visibilityCallback:function(b){var x,P=(x=c().interaction)==null?void 0:x.onFirstVisible;b&&P&&_.hd(P)},
showOption:_.QC});return _.C("ad-avatar-lockup-view-model",{class:function(){var b;return((b=c().interaction)==null?0:b.onTap)?"ytwAdAvatarLockupViewModelHostIsClickableAdComponent":"ytwAdAvatarLockupViewModelHost"},
el:J,"aria-label":function(){var b,x;return(b=c().interaction)==null?void 0:(x=b.accessibility)==null?void 0:x.label}},_.C(_.sb,null,_.C(_.wu,{when:function(){return c().style==="AD_AVATAR_LOCKUP_STYLE_COMPACT"}},function(){return _.C(Gwh,{data:c,
customCommandResolver:m})}),_.C(_.ru,null,function(){return null})))},"Yi");_.lv(_.Q1(function(J){var c=J.data;var m=J.panelContentVisibility;J=_.oN("panel-ad-header-image-lockup-view-model");_.Rt(J,function(){return c().interaction},EF4);
_.gv(J,{visibilityCallback:function(x){var P,p=(P=c().interaction)==null?void 0:P.onFirstVisible;x&&p&&_.hd(p)},
showOption:_.QC});_.Z7(function(){var x,P;if(P=_.$y("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var p;P=(p=P())==null?void 0:p.onLayoutVisibleCallback}else P=null;(x=P)==null||x()});
var b=function(){return m()==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"};
return _.C("panel-ad-header-image-lockup-view-model",{class:"ytwPanelAdHeaderImageLockupViewModelHost",el:J},_.C("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeader"},_.C("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderBannerImage"},_.C(_.n,{cond:_.zHq("(min-width: "+((0,_.Dm)()+_.S0)+"px) or (max-width: 600px)"),then:function(){return _.C(_.wi,{data:function(){return c().adImage}},{adImageViewModel:function(x){return _.C(_.PU,{data:x.data,
targetHeight:80,customCommandResolver:EF4})}})}})),_.C("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadata"},_.C("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataAvatarLockup"},_.C(_.wi,{data:function(){return c().adAvatarLockup}},{adAvatarLockupViewModel:function(x){return _.C(E5h,{data:x.data,
customCommandResolver:EF4})}})),_.C(_.n,{cond:b,
then:function(){return _.C(_.wi,{data:function(){return c().adButton}},{adButtonViewModel:function(x){return _.C(_.j7,{data:x.data,
customCommandResolver:EF4})}})},
else:function(){return _.C(_.wi,{data:function(){return c().menu}},{buttonViewModel:_.XU})}}),_.C("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataMenu"},_.C(_.wi,{data:function(){var x=_.L(c().toggleButton,_.sc);
return{toggleButtonViewModel:Object.assign({},x,{isTogglingDisabled:!0,isToggled:b()})}}},{toggleButtonViewModel:_.LK})))))},"Zi"),"panel-ad-header-image-lockup-view-model",{props:{data:_.vt,
panelContentVisibility:_.vt}});_.lv(_.Q1(function(J){var c=function(){return _.L(J.data().inputComposerViewModel,oEf)},m=function(){var W;
return((W=c())==null?void 0:W.youchatPendingResponseEntityKey)||""},b=_.tT(_.rho,m),x=function(){var W;
return!((W=b())==null||!W.isPendingResponse)},P=_.M(_.K2(!0,void 0,"DR0q1d")),p=P.next().value,t=P.next().value,I=function(){return c().sectionTargetId||"youchat_messages_section"};
P=_.Q5("yt-chat-input-view-model");var a=_.oN("textarea"),k=_.tT(fU4,"chat_input_view_model_state"),H=Yp5(),T=function(){var W;return!((W=k())==null||!W.value)};
_.uN(function(){var W;!T()&&((W=c())==null?0:W.welcomeFeatureContinuation)&&(W={continuationCommand:{token:c().welcomeFeatureContinuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}},_.ql(W),H(!0));var Y=I(),Z;(Z=_.BG().resolve(_.y6(_.C9)))==null||Z.addEventListener("yt-navigate-start",function(){_.i$.remove(Y);H(!1)},{once:!0})});
var r=function(){var W,Y,Z,d,G,e,A,l,y;return _.N(function(pG){W=a.value.value;a.value.value="";vFo(a.value);Y=OpR(I(),W);_.ql(Y);Z=_.sdf(m());_.hd(((d=c())==null?void 0:d.onSubmitCommand)||{});Z(!0);e=String(Math.floor(((G=_.b$())==null?void 0:G.getCurrentTime())||0)*1E3);l={continuationCommand:{token:(A=c())==null?void 0:A.continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};y={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),userInputText:W,playerOffsetMs:e}};_.ql(l,{form:{formData:y},
commandController:{onSuccess:function(){Z(!1)},
onServerError:function(){var kt=I();_.ql({listMutationCommand:{operations:{operations:[{removeItem:{removeByTargetId:{targetIds:["loading_response_message_id"]},sectionTargetId:kt}}]}}});Z(!1)}}});
_.tD(pG)})};
return _.C("yt-chat-input-view-model",{class:"chatInputViewModelChatInputViewModel",el:P},_.C("div",{class:"chatInputViewModelChatInputWrapper"},_.C("form",{class:"chatInputViewModelChatInputForm"},_.C("textarea",{class:"chatInputViewModelChatInput",el:a,"on:keydown":_.Kq(function(W){var Y=x()||!1;vFo(a.value);Y||W.key!=="Enter"||W.shiftKey||(W.preventDefault(),r());return!1}),
"on:keyup":_.Kq(function(){t(a.value.value.length===0);return!1}),
placeholder:function(){var W,Y;var Z=_.L((Y=c())==null?void 0:Y.inputFormField,rlp);return Z==null?void 0:(W=Z.contentProperties)==null?void 0:W.placeholderText},
rows:1}),_.C(_.XU,{data:function(){return _.L(J.data().sendButton,_.ri)},
onClick:function(W){W.preventDefault();r();t(a.value.value.length===0)},
buttonOverrides:function(){return{disabled:p()||x()}}})),_.C(_.j8,{className:"chatInputViewModelChatDisclaimer",
text:function(){var W;return(W=_.L(J.data().disclaimer,_.Uwz))==null?void 0:W.text}})))},"$i"),"yt-chat-input-view-model",{props:{data:_.vt}});var v5R=["engagement-panel-clip-create","engagement-panel-clip-view"],O8o=0,t9=function(){var J=_.h.apply(this,arguments)||this;var c;J.headerData=(c=J.data)==null?void 0:c.header;J.darkerPanels=_.w("web_watch_darker_panels");J.matchContentTheme=_.w("web_watch_panel_content_match_theme");J.disableAutoFill=!1;J.isFullscreen=!1;J.isTheaterMode=!1;J.modernPanels=_.w("kevlar_watch_modern_panels");J.liveChatReplyPanel=!1;J.enableAnchoredPanel=_.w("desktop_shorts_v2_anchored_panel");J.disableBackdropFilter=
_.w("web_disable_backdrop_filter");J.trackEngagementPanelVisibility=_.w("web_watch_track_engagement_panel_visibility");J.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 J};
_.D(t9,_.h);_.V=t9.prototype;
_.V.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(J){var c;
return(J==null?void 0:(c=J.webComponentHint)==null?void 0:c.componentVersion)==="WEB_COMPONENT_VERSION_SHARED"?"yt-section-list-renderer":"ytd-section-list-renderer"},
params:{engagementPanel:!0},properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",inReplyPanel:"[[liveChatReplyPanel]]",engagementPanelDropdown:"[[dropdown]]",engagementPanelDialog:"[[dialog]]",disableAutoFill:"[[disableAutoFill]]"}},continuationItemRenderer:"ytd-continuation-item-renderer",richGridRenderer:"ytd-rich-grid-renderer",transcriptRenderer:"ytd-transcript-renderer",clipSectionRenderer:"ytd-clip-section-renderer",adsEngagementPanelContentRenderer:"ytd-ads-engagement-panel-content-renderer",
macroMarkersListRenderer:"ytd-macro-markers-list-renderer",searchInVideoRenderer:"ytd-search-in-video-renderer",structuredDescriptionContentRenderer:{component:"ytd-structured-description-content-renderer",params:{engagementPanel:!0},properties:{shortsPanel:"[[shortsPanel]]",watchWhileSdp:"[[isWatchWhilePanel]]"}},mediaUpsellRenderer:"ytd-media-upsell-renderer",productListRenderer:"ytd-product-list-renderer",contentLoadingRenderer:"yt-content-loading-renderer",flowRootRenderer:"ytd-flow-root-renderer",
sponsorshipsGiftingOptInRenderer:"ytd-sponsorships-gifting-opt-in-renderer",playlistCollaborationViewModel:"playlist-collaboration-view-model"},events:!0},"data.footer":{id:"footer",mapping:{commerceCartCheckoutButtonRenderer:{component:"ytd-commerce-cart-checkout-button-renderer",params:{fullWidth:!0}},cardItemRenderer:"yt-card-item-renderer",chatInputViewModel:"yt-chat-input-view-model",liveChatEngagementPanelInputRenderer:{component:"yt-live-chat-engagement-panel-input-renderer",properties:{inReplyPanel:"[[liveChatReplyPanel]]",
hideBorder:"[[hideFooterBorder]]"}},liveLeaderboardItemViewModel:"ytvl-live-leaderboard-item-view-model",disableableButtonViewModel:"yt-disableable-button-view-model"}}}};
_.V.attached=function(){this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.dialog=!0);var J;if((J=this.hostElement.parentElement)==null?0:J.classList.contains("tp-yt-iron-dropdown"))this.dropdown=!0;this.disableAutoFill=!(!this.dialog&&!this.dropdown)};
_.V.detached=function(){this.updateTheaterDisablement()};
_.V.showPanel=function(){var J=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");this.showDelayMs?_.ft.addJob(function(){J.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"},2,this.showDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"};
_.V.maybeScrollToItemSection=function(J){var c=this,m,b=J==null?void 0:(m=J.sectionListEngagementPanelExtras)==null?void 0:m.scrollToItemSectionIdentifier;b&&_.ft.addJob(function(){var x;(x=c.sectionListRendererElement)==null||x.scrollToItemSection(b)},8)};
_.V.hidePanel=function(){var J=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_HIDDEN");this.hideDelayMs?_.ft.addJob(function(){J.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"},2,this.hideDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.V.isVisible=function(){return!!this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.V.getPanelContent=function(){return{engagementPanelSectionListRenderer:this.data}};
_.V.updatePanel=function(J,c,m,b){var x=this;if((J=J==null?void 0:J.engagementPanelSectionListRenderer)||b){if(J){b=J.header;var P=J.content,p=J.footer;(J=J.targetId)&&this.set("data.targetId",J);b&&this.set("data.header",b);P&&this.set("data.content",P);p&&this.set("data.footer",p)}else b&&(J=b.content,P=b.secondaryHeaderContent,(b=b.targetId)&&this.set("data.targetId",b),J&&this.set("data.content",J),P&&(this.secondaryHeaderData=P));this.updateChildVisibilityProperties();if(c){var t;_.w("kevlar_update_panel_focus_scroll_killswitch")||
(t={preventScroll:!0});this.focus(t)}_.o3(this,function(){_.cA(x.hostElement,"yt-refit");x.maybeScrollToItemSection(m)})}};
_.V.computeHeaderData=function(){var J,c=(0,_.Lw.unsafeClone)((J=this.data)==null?void 0:J.header);if(c){J=new _.Q(Object.keys(c)[0]);var m=_.L(c,J),b=_.L(this.secondaryHeaderData,J);b&&_.zg(c,J,Object.assign({},b,m))}return c};
_.V.getReloadContinuation=function(){var J,c,m,b=_.M(((J=this.data)==null?void 0:(c=J.content)==null?void 0:(m=c.sectionListRenderer)==null?void 0:m.continuations)||[]);for(J=b.next();!J.done;J=b.next())if(J=J.value,J.reloadContinuationData)return J.reloadContinuationData.continuation};
_.V.onYtRendererstamperFinished=function(){this.updateChildVisibilityProperties();var J;((J=this.data)==null?0:J.targetId)&&(J=this.contentElement.firstElementChild)&&J.setAttribute("panel-target-id",this.data.targetId)};
_.V.forwardPopupClosedToFlowRootRenderer=function(){var J=_.Bj(this.hostElement).querySelector("ytd-flow-root-renderer");if(J)J.onPopupClosed()};
_.V.dataChanged=function(){this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_LIVE_CHAT"&&(this.liveChatEngagementPanel=!0,this.getIdentifier()==="PAreply_thread"&&(this.liveChatReplyPanel=!0));var J=_.w("web_watch_imax_theater_mode")&&this.isTheaterMode;J=_.w("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||J;if(_.w("kevlar_watch_metadata_ep_killswitch")||this.getIdentifier()!=="engagement-panel-structured-description"||this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_SHORTS"||J){var c;this.visibility=
(c=this.data)==null?void 0:c.visibility;var m;this.trackEngagementPanelVisibility&&((m=this.data)==null?void 0:m.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");var b,x,P,p;this.contentEmpty=!!(((b=this.data)==null?0:(x=b.content)==null?0:x.structuredDescriptionContentRenderer)&&Object.keys((P=this.data)==null?void 0:(p=P.content)==null?void 0:p.structuredDescriptionContentRenderer).length===0);(c=_.BG().resolve(_.Tr))&&c.registerPanel(this.getIdentifier(),
this);this.updateTheaterDisablement()}else this.data.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",this.visibility=this.data.visibility};
_.V.isTheaterModeChanged=function(){_.w("web_watch_imax_theater_mode")&&(this.liveChatEngagementPanel||this.hidePanel())};
_.V.isFullscreenChanged=function(){_.w("web_watch_close_eps_on_fullscreen")&&(this.liveChatEngagementPanel||this.hidePanel())};
_.V.focus=function(J){if(this.header)this.header.focus(J);else{var c;(c=_.Bj(this.hostElement).querySelector("ytd-flow-root-renderer"))==null||c.focus(J)}};
_.V.visibilityChanged=function(){if(!_.w("kevlar_use_engagement_panel_management_component")){this.updateChildVisibilityProperties();var J=this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",c=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",m=this.lastVisibility&&this.lastVisibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",b=this.lastVisibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",x=b||!this.lastVisibility,P,p,t=(P=this.data)==null?void 0:(p=P.identifier)==null?void 0:p.tag,
I;if(((I=this.data)==null?0:I.onShowCommands)&&J&&x)_.PA(this.hostElement,this.data.onShowCommands,this.hostElement),t&&_.Rc().dispatch(_.J7({type:"ADD_OPEN_ENGAGEMENT_PANEL",payload:{panelToAdd:t}}));else{var a;((a=this.data)==null?0:a.onHideCommands)&&c&&m&&(_.PA(this.hostElement,this.data.onHideCommands,this.hostElement),t&&_.Rc().dispatch(_.J7({type:"REMOVE_OPEN_ENGAGEMENT_PANEL",payload:{panelToRemove:t}})))}J&&this.lastVisibility!==void 0&&(this.hostElement.style.order=String(-1*O8o++));_.w("kevlar_watch_focus_on_engagement_panels")&&
J&&b&&this.focus({preventScroll:!0});this.updateTheaterDisablement()}this.lastVisibility=this.visibility};
_.V.notifyVisibilityChanged=function(J){var c;_.bJ(this.hostElement,"yt-engagement-panel-visible-changed",[this.data,J,(c=this.data)==null?void 0:c.targetId])};
_.V.updateTheaterDisablement=function(){if(!_.w("kevlar_watch_theater_disablement_killswitch")){var J=this.theaterDisablementPanelIdentifier||this.getIdentifier()||"";if(this.isWatch&&v5R.includes(J)&&!_.w("watch_next_grid_ignore_disallowed_panels")){var c=_.qx(_.Rc().getState()),m=this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";J!==this.getIdentifier()&&this.originalTheaterState?this.clearTheaterDisablement():m?(this.originalTheaterState===void 0&&(this.originalTheaterState=c,this.theaterDisablementPanelIdentifier=
J),c&&_.m9(this.hostElement,"yt-toggle-theater-mode",[!1,!1])):this.originalTheaterState&&this.clearTheaterDisablement()}}};
_.V.clearTheaterDisablement=function(){_.m9(this.hostElement,"yt-toggle-theater-mode",[!0,!1]);this.theaterDisablementPanelIdentifier=this.originalTheaterState=void 0};
_.V.updateChildVisibilityProperties=function(){this.hostElement||_.w("kevlar_panel_property_init_killswitch")||this._enableProperties();var J=this.visibility;this.adHeaderImageLockupViewModel&&(this.adHeaderImageLockupViewModel.panelContentVisibility=J);var c,m=(c=this.headerElement)==null?void 0:c.firstElementChild;if(m&&!this.adHeaderImageLockupViewModel){c=J==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED";m.collapsed=c;m=_.Bj(m).querySelector("#visibility-button");if(!m)return;(m=m.firstElementChild)&&
m.polymerController.is==="ytd-toggle-button-renderer"&&m.polymerController.data.isToggled!==c&&m.polymerController.set("data.isToggled",c)}var b;if(c=(b=this.contentElement)==null?void 0:b.firstElementChild)if(J&&J!=="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")c.removeAttribute("panel-content-visible");else{c.setAttribute("panel-content-visible","");var x;(x=c.markDirty)==null||x.call(c)}};
_.V.onYtChangeEngagementPanelVisibilityAction=function(J){var c=this,m,b=(m=this.data)==null?void 0:m.targetId,x,P,p;m=((x=this.data)==null?void 0:(P=x.identifier)==null?void 0:P.tag)||((p=this.data)==null?void 0:p.panelIdentifier);var t=_.L(J,_.Egz),I;J=b&&(t==null?void 0:t.targetId)===b||m&&(t==null?void 0:(I=t.panelIdentifier)==null?void 0:I.tag)===m;this.dialog&&J&&(t==null?void 0:t.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(b==="engagement-panel-comments-section"?_.m9(this.hostElement,
"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer"]):_.m9(this.hostElement,"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer",m]));!_.w("kevlar_use_engagement_panel_management_component")&&J&&(b=t.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",this.hideDelayMs&&!b?_.ft.addJob(function(){c.visibility=t.visibility},2,this.hideDelayMs):this.visibility=t.visibility,t.visibility&&this.notifyVisibilityChanged(t.visibility))};
_.V.onYtScrollToEngagementPanelCommand=function(J){var c,m=(c=this.data)==null?void 0:c.targetId,b,x,P;c=((b=this.data)==null?void 0:(x=b.identifier)==null?void 0:x.tag)||((P=this.data)==null?void 0:P.panelIdentifier);J=_.L(J,_.ymu);var p;(m&&(J==null?void 0:J.targetId)===m||c&&(J==null?void 0:(p=J.panelIdentifier)==null?void 0:p.tag)===c)&&this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&_.m9(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement])};
_.V.attachVEs=function(J){var c,m;(J==null?0:(c=J.content)==null?0:(m=c.productListRenderer)==null?0:m.trackingParams)&&_.C7().graftServerVe(J.content.productListRenderer.trackingParams);var b,x;(J==null?0:(b=J.content)==null?0:(x=b.transcriptRenderer)==null?0:x.trackingParams)&&_.C7().graftServerVe(J.content.transcriptRenderer.trackingParams)};
_.V.onYtUpdateEngagementPanelAction=function(J){var c,m=(c=this.data)==null?void 0:c.targetId;J=_.L(J,zHf);m&&(J==null?void 0:J.targetId)===m&&(this.updatePanel({engagementPanelSectionListRenderer:{header:J==null?void 0:J.header,content:J==null?void 0:J.content}},!1),this.attachVEs(J))};
_.V.onYtShowEngagementPanelScrimAction=function(J){var c,m=(c=this.data)==null?void 0:c.targetId;J=_.L(J,Wdf);m&&(J==null?void 0:J.engagementPanelTargetId)===m&&(this.scrimmed=!0)};
_.V.onYtHideEngagementPanelScrimAction=function(J){var c,m=(c=this.data)==null?void 0:c.targetId;J=_.L(J,Ld1);m&&(J==null?void 0:J.engagementPanelTargetId)===m&&(this.scrimmed=!1)};
_.V.getIdentifier=function(){var J,c,m;return((J=this.data)==null?void 0:J.panelIdentifier)||((c=this.data)==null?void 0:(m=c.identifier)==null?void 0:m.tag)};
_.V.getSurface=function(){var J,c;return(J=this.data)==null?void 0:(c=J.identifier)==null?void 0:c.surface};
_.eE.Object.defineProperties(t9.prototype,{targetId:{configurable:!0,enumerable:!0,get:function(){var J;return(J=this.data)==null?void 0:J.targetId}},
webSize:{configurable:!0,enumerable:!0,get:function(){var J;return(J=this.data)==null?void 0:J.size}},
hideFooterBorder:{configurable:!0,enumerable:!0,get:function(){var J=this.getIdentifier();return J==="engagement-panel-youchat"||J==="PAyouchat"}}});
t9.prototype.visibilityChanged=t9.prototype.visibilityChanged;t9.prototype.isFullscreenChanged=t9.prototype.isFullscreenChanged;t9.prototype.isTheaterModeChanged=t9.prototype.isTheaterModeChanged;t9.prototype.dataChanged=t9.prototype.dataChanged;t9.prototype.forwardPopupClosedToFlowRootRenderer=t9.prototype.forwardPopupClosedToFlowRootRenderer;t9.prototype.onYtRendererstamperFinished=t9.prototype.onYtRendererstamperFinished;
_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],t9.prototype,"actionHandlerBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],t9.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.fY),_.R("design:type",Object)],t9.prototype,"ytdReduxBehavior",void 0);_.O([_.f(_.Ci.YtEventForwardingBehavior),_.R("design:type",Object)],t9.prototype,"ytEventForwardingBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],t9.prototype,"data",void 0);
_.O([_.U({computed:"computeHeaderData(data.header, secondaryHeaderData)"}),_.R("design:type",Object)],t9.prototype,"headerData",void 0);_.O([_.U(),_.R("design:type",Object)],t9.prototype,"secondaryHeaderData",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],t9.prototype,"visibility",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],t9.prototype,"contentEmpty",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],t9.prototype,"scrimmed",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],t9.prototype,"dialog",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],t9.prototype,"dropdown",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],t9.prototype,"darkerPanels",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],t9.prototype,"matchContentTheme",void 0);_.O([_.U(),_.R("design:type",Object)],t9.prototype,"disableAutoFill",void 0);
_.O([_.U({reflectToAttribute:!0,value:_.w("optimal_reading_width_comments_ep")}),_.R("design:type",Boolean)],t9.prototype,"optimalReadingWidthComments",void 0);_.O([_.U(),_.R("design:type",Number)],t9.prototype,"hideDelayMs",void 0);_.O([_.U({selector:_.Uc,reflectToAttribute:!0}),_.R("design:type",Object)],t9.prototype,"isFullscreen",void 0);_.O([_.U({selector:_.qx,reflectToAttribute:!0}),_.R("design:type",Object)],t9.prototype,"isTheaterMode",void 0);
_.O([_.U(),_.R("design:type",Number)],t9.prototype,"showDelayMs",void 0);_.O([_.U({reflectToAttribute:!0}),_.q("data.targetId"),_.R("design:type",Object),_.R("design:paramtypes",[])],t9.prototype,"targetId",null);_.O([_.U({reflectToAttribute:!0}),_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],t9.prototype,"webSize",null);_.O([_.U(),_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],t9.prototype,"hideFooterBorder",null);
_.O([_.U(),_.R("design:type",Object)],t9.prototype,"isWatch",void 0);_.O([_.U(),_.R("design:type",Object)],t9.prototype,"originalTheaterState",void 0);_.O([_.U(),_.R("design:type",Object)],t9.prototype,"theaterDisablementPanelIdentifier",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],t9.prototype,"modernPanels",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],t9.prototype,"isWatchWhilePanel",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],t9.prototype,"shortsPanel",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],t9.prototype,"liveChatEngagementPanel",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],t9.prototype,"liveChatReplyPanel",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],t9.prototype,"enableAnchoredPanel",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],t9.prototype,"disableBackdropFilter",void 0);_.O([_.U(),_.R("design:type",Object)],t9.prototype,"trackEngagementPanelVisibility",void 0);_.O([_.Iu("#header"),_.R("design:type",HTMLElement)],t9.prototype,"headerElement",void 0);_.O([_.Iu("#header > *"),_.R("design:type",HTMLElement)],t9.prototype,"header",void 0);_.O([_.Iu("ytd-section-list-renderer"),_.R("design:type",Object)],t9.prototype,"sectionListRendererElement",void 0);
_.O([_.Iu("panel-ad-header-image-lockup-view-model"),_.R("design:type",HTMLElement)],t9.prototype,"adHeaderImageLockupViewModel",void 0);_.O([_.Iu("#content"),_.R("design:type",HTMLElement)],t9.prototype,"contentElement",void 0);_.O([_.ps("yt-rendererstamper-finished"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],t9.prototype,"onYtRendererstamperFinished",null);
_.O([_.ps("yt-popup-closed"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],t9.prototype,"forwardPopupClosedToFlowRootRenderer",null);_.O([_.kr("data","isFullscreen","isTheaterMode"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],t9.prototype,"dataChanged",null);_.O([_.NE("isTheaterMode"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],t9.prototype,"isTheaterModeChanged",null);
_.O([_.NE("isFullscreen"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],t9.prototype,"isFullscreenChanged",null);_.O([_.NE("visibility"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],t9.prototype,"visibilityChanged",null);t9=_.O([_.E({is:"ytd-engagement-panel-section-list-renderer",disableElementRegistration:!0})],t9);
_.v(t9,"ytd-engagement-panel-section-list-renderer",function(){if(IWe!==void 0)return IWe;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return IWe=J},{mode:_.mP("kevlar_poly_si_batch_j028")?1:2});var Aor;var Ij=function(){var J=_.h.apply(this,arguments)||this;J.lastRenderedPanelIds=new Set;J.visiblePanels=[];J.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return J};
_.D(Ij,_.h);_.V=Ij.prototype;_.V.dataChanged=function(){if(this.data){for(var J=[],c=_.M(this.data),m=c.next();!m.done;m=c.next()){m=m.value;var b=void 0,x=void 0,P=(b=m)==null?void 0:(x=b.engagementPanelSectionListRenderer)==null?void 0:x.visibility;x=b=void 0;((b=m)==null?0:(x=b.engagementPanelSectionListRenderer)==null?0:x.targetId)&&P!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&J.push(m)}this.visiblePanels=J}else this.visiblePanels=[]};
_.V.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}}};
_.V.withoutVisiblePanelById=function(J){return this.visiblePanels.filter(function(c){var m;return((m=c.engagementPanelSectionListRenderer)==null?void 0:m.targetId)!==J})};
_.V.onYtChangeEngagementPanelVisibilityAction=function(J){var c=this,m=_.L(J,_.Egz);if(this.data&&(m==null?0:m.targetId)&&(m==null?0:m.visibility)){var b,x=(b=this.data.find(function(p){var t;return((t=p.engagementPanelSectionListRenderer)==null?void 0:t.targetId)===m.targetId}))==null?void 0:b.engagementPanelSectionListRenderer;
if(x){var P=this.withoutVisiblePanelById(m.targetId);m.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(J=this.data.find(function(p){var t;return((t=p.engagementPanelSectionListRenderer)==null?void 0:t.targetId)===m.targetId}))&&(P=[J].concat(_.L6(P)));
this.hideDelayMs&&m.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&P.length===0?_.ft.addJob(function(){x.visibility=m.visibility;c.visiblePanels=P},10,this.hideDelayMs):(x.visibility=m.visibility,this.visiblePanels=P);
_.bJ(this.hostElement,"yt-engagement-panels-visible-changed",[P])}}};
_.V.onRendererstamperFinished=function(){var J=new Set(this.visiblePanels.map(function(c){var m;return(m=c.engagementPanelSectionListRenderer)==null?void 0:m.targetId}));
this.handlePanelVisibilityChange(J,this.lastRenderedPanelIds);this.lastRenderedPanelIds=J};
_.V.handlePanelVisibilityChange=function(J,c){J=J===void 0?new Set:J;c=c===void 0?new Set:c;if(this.data)for(var m=_.M(this.data),b=m.next();!b.done;b=m.next()){b=b.value;var x=void 0,P=void 0,p=(x=b)==null?void 0:(P=x.engagementPanelSectionListRenderer)==null?void 0:P.targetId;if(p&&(x=c.has(p),P=J.has(p),p=void 0,!x&&P?(P=x=void 0,p=(x=b)==null?void 0:(P=x.engagementPanelSectionListRenderer)==null?void 0:P.onShowCommands):x&&!P&&(P=x=void 0,p=(x=b)==null?void 0:(P=x.engagementPanelSectionListRenderer)==
null?void 0:P.onHideCommands),p))for(b=_.M(p),p=b.next();!p.done;p=b.next())this.ytComponentBehavior.resolveCommand(p.value)}};
Ij.prototype.onRendererstamperFinished=Ij.prototype.onRendererstamperFinished;Ij.prototype.dataChanged=Ij.prototype.dataChanged;_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],Ij.prototype,"ytComponentBehavior",void 0);_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],Ij.prototype,"actionHandlerBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Ij.prototype,"ytRendererBehavior",void 0);
_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],Ij.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Ij.prototype,"lastRenderedPanelIds",void 0);_.O([_.U(),_.R("design:type",Number)],Ij.prototype,"hideDelayMs",void 0);_.O([_.U(),_.R("design:type",Array)],Ij.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Array)],Ij.prototype,"visiblePanels",void 0);_.O([_.U(),_.R("design:type",Boolean)],Ij.prototype,"isWatchWhilePanel",void 0);
_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Ij.prototype,"dataChanged",null);_.O([_.ps("yt-rendererstamper-finished"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Ij.prototype,"onRendererstamperFinished",null);Ij=_.O([_.E({is:"ytd-watch-engagement-panels",disableElementRegistration:!0})],Ij);
_.v(Ij,"ytd-watch-engagement-panels",function(){if(Aor!==void 0)return Aor;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return Aor=J},{mode:1});var R9r;var Kh=function(){return _.h.apply(this,arguments)||this};
_.D(Kh,_.h);Kh.prototype.dataChanged=function(){this.data&&this.data.companionLegalText!==void 0&&this.data.companionLegalText!==null&&_.G$(_.Bj(this.hostElement).querySelector("#text"),_.FiJ(_.BND,this.data.companionLegalText))};
Kh.prototype.computeAutoScrollEnabled=function(J,c){return J&&!c};
Kh.prototype.expandedChanged=function(){this.expanderIcon=this.expanded?"expand-less":"expand-more"};
Kh.prototype.onToggleTap=function(){this.expanded=!this.expanded};
Kh.prototype.expandedChanged=Kh.prototype.expandedChanged;Kh.prototype.dataChanged=Kh.prototype.dataChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Kh.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.v41),_.R("design:type",Object)],Kh.prototype,"ytdAutoScrollBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Kh.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],Kh.prototype,"expanded",void 0);
_.O([_.U({computed:"computeAutoScrollEnabled(data.companionLegalTextEnableAutoscroll, expanded)"}),_.R("design:type",Boolean)],Kh.prototype,"autoScrollEnabled",void 0);_.O([_.U(),_.R("design:type",String)],Kh.prototype,"expanderIcon",void 0);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Kh.prototype,"dataChanged",null);
_.O([_.NE("expanded"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Kh.prototype,"expandedChanged",null);Kh=_.O([_.E({disableElementRegistration:!0,is:"ytd-companion-legal-text-renderer"})],Kh);
_.v(Kh,"ytd-companion-legal-text-renderer",function(){if(R9r!==void 0)return R9r;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return R9r=J},{mode:1});var o55;var Ch=function(){var J=_.h.apply(this,arguments)||this;J.buttonUpdate=_.w("web_modern_buttons");J.kevlarWatchGrid=_.w("kevlar_watch_grid");J.centerAlignDescription=_.w("action_companion_center_align_description");J.truncateDomain=_.w("action_companion_truncate_domain");return J};
_.D(Ch,_.h);_.V=Ch.prototype;_.V.computeButtonOverride=function(){if(this.buttonUpdate)return{style:"call-to-action",type:"filled"}};
_.V.getOnLayoutVisibleCallback=function(){var J=_.$y("yt.www.ads.eventcache.getLastCompanionData");return J?(J=J())&&J.onLayoutVisibleCallback:null};
_.V.getLayoutId=function(){var J=_.$y("yt.www.ads.eventcache.getLastCompanionData");return J?(J=J())&&J.layoutId:null};
_.V.dataChanged=function(){if(this.data){this.data.adBadge||this.set("data.adBadge",Ch.JSC$20211_DEFAULT_AD_BADGE_RENDERER);var J=this.getOnLayoutVisibleCallback();J&&J()}};
_.V.getButtonRenderer=function(J){return J.actionButton&&_.L(J.actionButton,_.ur)?(delete _.L(J.actionButton,_.ur).navigationEndpoint,_.L(J.actionButton,_.ur)):{}};
_.V.onClick=function(J){var c=this;if((!_.w("web_modern_buttons")||!_.AP(_.OT(J),this.hostElement,["YTD-AD-HOVER-TEXT-BUTTON-RENDERER"]))&&this.data&&this.data.navigationEndpoint){J=_.ep();var m=this.getLayoutId();J&&m&&_.w("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?J.getPlayerPromise().then(function(b){(new _.kP(b)).executeCommand(c.data.navigationEndpoint,m)}):_.w("kevlar_companion_resolve_command_killswitch")?_.cA(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):
this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);
_.m9(this.hostElement,"yt-companion-ad-clicked",["action-companion",m])}};
_.eE.Object.defineProperties(Ch.prototype,{getRating:{configurable:!0,enumerable:!0,get:function(){var J,c,m;return((J=this.data)==null?0:(c=J.detailsLine)==null?0:(m=c.adRating)==null?0:m.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 J,c,m,b;return((J=this.data)==null?0:(c=J.detailsLine)==null?0:(m=c.adRating)==null?0:(b=m.ratingIcon)==null?0:b.iconType)?_.Pd(this.data.detailsLine.adRating.ratingIcon.iconType):null}},
getDetailsLine:{configurable:!0,enumerable:!0,get:function(){var J,c,m,b;return((J=this.data)==null?0:(c=J.detailsLine)==null?0:(m=c.texts)==null?0:(b=m[0])==null?0:b.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 J,c;return((J=this.data)==null?0:(c=J.description)==null?0:c.text)?this.data.description.text:null}},
computeDescriptionTextHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDescriptionText}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var J=_.$y("yt.www.ads.eventcache.getLastCompanionData");return J?(J=J())&&J.interactionLoggingClientData:null}},
hideBanner:{configurable:!0,enumerable:!0,get:function(){var J=this.data.bannerImage&&this.get("thumbnail.thumbnails.0.url",this.data.bannerImage);return J?J.indexOf("/default_banner")!==-1:!0}}});
Ch.prototype.onClick=Ch.prototype.onClick;Ch.prototype.dataChanged=Ch.prototype.dataChanged;Ch.JSC$20211_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.CX("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],Ch.prototype,"ytComponentBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Ch.prototype,"rendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Ch.prototype,"data",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Ch.prototype,"buttonUpdate",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Ch.prototype,"kevlarWatchGrid",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Ch.prototype,"centerAlignDescription",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Ch.prototype,"truncateDomain",void 0);
_.O([_.U({computed:"computeButtonOverride(buttonUpdate)"}),_.R("design:type",Object)],Ch.prototype,"buttonOverride",void 0);_.O([_.q("data.detailsLine.adRating.ratingText"),_.R("design:type",Object),_.R("design:paramtypes",[])],Ch.prototype,"getRating",null);_.O([_.q("getRating"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Ch.prototype,"computeRatingHidden",null);
_.O([_.q("data.detailsLine.adRating.ratingIcon.iconType"),_.R("design:type",Object),_.R("design:paramtypes",[])],Ch.prototype,"iconType",null);_.O([_.q("data.detailsLine.texts.0.text"),_.R("design:type",Object),_.R("design:paramtypes",[])],Ch.prototype,"getDetailsLine",null);_.O([_.q("getDetailsLine"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Ch.prototype,"computeDetailsLineHidden",null);
_.O([_.q("data.description.text"),_.R("design:type",Object),_.R("design:paramtypes",[])],Ch.prototype,"getDescriptionText",null);_.O([_.q("getDescriptionText"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Ch.prototype,"computeDescriptionTextHidden",null);_.O([_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],Ch.prototype,"interactionLoggingClientData",null);
_.O([_.U({reflectToAttribute:!0}),_.q("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Ch.prototype,"hideBanner",null);_.O([_.kr("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Ch.prototype,"dataChanged",null);_.O([_.ps("click"),_.R("design:type",Function),_.R("design:paramtypes",[Event]),_.R("design:returntype")],Ch.prototype,"onClick",null);Ch=_.O([_.E({is:"ytd-action-companion-ad-renderer",disableElementRegistration:!0})],Ch);
_.v(Ch,"ytd-action-companion-ad-renderer",function(){if(o55!==void 0)return o55;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return o55=J},{mode:_.mP("kevlar_poly_si_batch_j067")?1:2});var Q4R;var e9r;var aj=function(){var J=_.h.apply(this,arguments)||this;J.buttonUpdate=_.w("web_modern_buttons");J.hideLegacyBanner=_.w("enable_dsa_one_click_ata_translators_infeed_elements");J.adInfoButtonStyle="mono";J.adInfoButtonType="text";J.noDotAdBadge=!0;return J};
_.D(aj,_.h);_.V=aj.prototype;_.V.getOnLayoutVisibleCallback=function(){var J=_.$y("yt.www.ads.eventcache.getLastCompanionData");return J?(J=J())&&J.onLayoutVisibleCallback:null};
_.V.getLayoutId=function(){var J=_.$y("yt.www.ads.eventcache.getLastCompanionData");return J?(J=J())&&J.layoutId:null};
_.V.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 J=this.data.image.thumbnail.thumbnails[0];this.imageSrc=J.url?_.n1(J.url):void 0;this.imageWidth=J.width||0;this.imageHeight=J.height||0}this.data.clickthroughEndpoint&&_.L(this.data.clickthroughEndpoint,_.Ee)&&(J=_.L(this.data.clickthroughEndpoint,_.Ee).url,_.w("kevlar_sanitize_image_companion_killswitch")?this.clickThroughUrl=
J||"":J?(J=_.n1(J),this.clickThroughUrl=_.ah(J)):this.clickThroughUrl=void 0);(J=this.getOnLayoutVisibleCallback())&&J()}};
_.V.onClick=function(J){_.AP(_.OT(J),this.hostElement,["A".toString(),"BUTTON".toString()])||this.handleClick(J)};
_.V.handleClick=function(){var J=this;this.data&&this.data.clickthroughEndpoint&&(_.cA(this.hostElement,"yt-navigate",{endpoint:this.data.clickthroughEndpoint}),this.data.onClickCommands&&this.data.onClickCommands.forEach(function(c){J.macroReplacementBehavior.sendServiceRequestAction([c])}),_.m9(this.hostElement,"yt-companion-ad-clicked",["image-companion",
this.getLayoutId()]))};
_.V.onLoad=function(){_.bJ(this.hostElement,"yt-refit-popups-action")};
_.eE.Object.defineProperties(aj.prototype,{macros:{configurable:!0,enumerable:!0,get:function(){var J=_.$y("yt.www.ads.eventcache.getLastCompanionData");return J?(J=J())&&J.macros||{}:{}}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var J=_.$y("yt.www.ads.eventcache.getLastCompanionData");return J?(J=J())&&J.interactionLoggingClientData:null}}});
aj.prototype.onLoad=aj.prototype.onLoad;aj.prototype.onClick=aj.prototype.onClick;aj.prototype.dataChanged=aj.prototype.dataChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],aj.prototype,"rendererBehavior",void 0);_.O([_.f(T5R.YtMacroReplacementBehavior),_.R("design:type",Object)],aj.prototype,"macroReplacementBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],aj.prototype,"data",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],aj.prototype,"buttonUpdate",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],aj.prototype,"hideLegacyBanner",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],aj.prototype,"adInfoButtonStyle",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],aj.prototype,"adInfoButtonType",void 0);_.O([_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],aj.prototype,"macros",null);
_.O([_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],aj.prototype,"interactionLoggingClientData",null);_.O([_.U(),_.R("design:type",String)],aj.prototype,"clickThroughUrl",void 0);_.O([_.U(),_.R("design:type",_.Ih)],aj.prototype,"imageSrc",void 0);_.O([_.U(),_.R("design:type",Number)],aj.prototype,"imageWidth",void 0);_.O([_.U(),_.R("design:type",Number)],aj.prototype,"imageHeight",void 0);_.O([_.U(),_.R("design:type",Object)],aj.prototype,"noDotAdBadge",void 0);
_.O([_.kr("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],aj.prototype,"dataChanged",null);_.O([_.ps("click"),_.R("design:type",Function),_.R("design:paramtypes",[Event]),_.R("design:returntype")],aj.prototype,"onClick",null);_.O([_.ps("load"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],aj.prototype,"onLoad",null);aj=_.O([_.E({is:"ytd-image-companion-renderer",disableElementRegistration:!0})],aj);
_.v(aj,"ytd-image-companion-renderer",function(){if(e9r!==void 0)return e9r;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return e9r=J},{mode:_.mP("kevlar_poly_si_batch_j067")?1:2});var j4u;var kn=function(){return _.h.apply(this,arguments)||this};
_.D(kn,_.h);_.V=kn.prototype;_.V.dataChanged=function(){this.set("data.adBadge",kn.JSC$20220_DEFAULT_AD_BADGE_RENDERER);if(this.data){var J=this.getOnLayoutVisibleCallback();J&&J()}};
_.V.getOnLayoutVisibleCallback=function(){var J=_.$y("yt.www.ads.eventcache.getLastCompanionData");return J?(J=J())&&J.onLayoutVisibleCallback:null};
_.V.getLayoutId=function(){var J=_.$y("yt.www.ads.eventcache.getLastCompanionData");return J?(J=J())&&J.layoutId:null};
_.V.onCompanionClicked=function(J){this.data&&(J.target!==this.shopTitle&&this.sendTrackingPings(this.data.clickTrackingEndpoints),_.m9(this.hostElement,"yt-companion-ad-clicked",["shopping-companion",this.getLayoutId()]))};
_.V.onShopTextTap=function(){if(this.data&&this.data.clickToAdvSiteEndpoint){var J=_.ep(),c=this.getLayoutId(),m=this.data.clickToAdvSiteEndpoint;J&&c&&_.w("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?J.getPlayerPromise().then(function(b){(new _.kP(b)).executeCommand(m,c)}):_.cA(this.hostElement,"yt-navigate",{endpoint:m})}};
_.V.sendTrackingPings=function(J){if(J&&J.length!==0&&J[0].loggingUrls&&(J=J[0].loggingUrls.map(this.getBaseUrl)))for(var c=0;c<J.length;c++)_.En(J[c])};
_.V.getBaseUrl=function(J){return J.baseUrl||""};
_.eE.Object.defineProperties(kn.prototype,{interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var J=_.$y("yt.www.ads.eventcache.getLastCompanionData");return J?(J=J())&&J.interactionLoggingClientData:null}}});
kn.prototype.onCompanionClicked=kn.prototype.onCompanionClicked;kn.prototype.dataChanged=kn.prototype.dataChanged;kn.JSC$20220_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.CX("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],kn.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],kn.prototype,"data",void 0);_.O([_.Iu("#title"),_.R("design:type",HTMLElement)],kn.prototype,"shopTitle",void 0);
_.O([_.kr("data.impressionEndpoints"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],kn.prototype,"dataChanged",null);_.O([_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],kn.prototype,"interactionLoggingClientData",null);_.O([_.ps("yt-navigate"),_.R("design:type",Function),_.R("design:paramtypes",[Event]),_.R("design:returntype")],kn.prototype,"onCompanionClicked",null);
kn=_.O([_.E({is:"ytd-shopping-companion-renderer",disableElementRegistration:!0})],kn);
_.v(kn,"ytd-shopping-companion-renderer",function(){if(j4u!==void 0)return j4u;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return j4u=J},{mode:1});_.lv(_.Q1(function(J){var c=J.data;var m=_.oN("banner-image-layout-view-model");_.Rt(m,function(){return c().interaction},Ar4);
_.gv(m,{visibilityCallback:function(b){var x,P=(x=c().interaction)==null?void 0:x.onFirstVisible;b&&P&&_.hd(P)},
showOption:_.QC});_.Z7(function(){var b,x;x=(x=_.$y("yt.www.ads.eventcache.getLastCompanionData"))?(x=x())&&x.onLayoutVisibleCallback:null;(b=x)==null||b()});
return _.C("banner-image-layout-view-model",{class:"ytwBannerImageLayoutViewModelHost","on:load":_.Kq(function(){_.bJ(m.value,"yt-refit-popups-action")}),
el:m,"aria-label":function(){var b,x;return(b=c().interaction)==null?void 0:(x=b.accessibility)==null?void 0:x.label}},_.C("div",{class:"ytwBannerImageLayoutViewModelHostBannerImage"},_.C(_.wi,{data:function(){return c().adImage}},{adImageViewModel:function(b){return _.C(_.PU,{data:b.data,
targetHeight:80,customCommandResolver:Ar4})}})),_.C("div",{class:"ytwBannerImageLayoutViewModelHostMetadata"},_.C("div",{class:"ytwBannerImageLayoutViewModelHostMetadataAdBadge"},_.C(_.wi,{data:function(){return c().adBadge}},{adBadgeViewModel:function(b){return _.C(_.yC,{data:b.data,
hasDot:!1,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}})),_.C("div",{class:"ytwBannerImageLayoutViewModelHostMetadataMenu"},_.C(_.wi,{data:function(){return c().menu}},{buttonViewModel:_.XU}))))},"aj"),"banner-image-layout-view-model",{props:{data:_.vt}});_.lv(_.Q1(function(J){var c=J.data;J=_.oN("top-banner-image-text-icon-buttoned-layout-view-model");_.Rt(J,function(){return c().interaction},RRR);
_.gv(J,{visibilityCallback:function(m){var b,x=(b=c().interaction)==null?void 0:b.onFirstVisible;m&&x&&_.hd(x)},
showOption:_.QC});_.Z7(function(){var m,b;b=(b=_.$y("yt.www.ads.eventcache.getLastCompanionData"))?(b=b())&&b.onLayoutVisibleCallback:null;(m=b)==null||m()});
return _.C("top-banner-image-text-icon-buttoned-layout-view-model",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHost",el:J},_.C("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostBannerImage"},_.C(_.wi,{data:function(){return c().adImage}},{adImageViewModel:function(m){return _.C(_.PU,{data:m.data,
targetHeight:80,customCommandResolver:RRR})}})),_.C("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadata"},_.C("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataAvatarLockup"},_.C(_.wi,{data:function(){return c().adAvatarLockup}},{adAvatarLockupViewModel:function(m){return _.C(E5h,{data:m.data,
customCommandResolver:RRR})}})),_.C(_.wi,{data:function(){return c().adButton}},{adButtonViewModel:function(m){return _.C(_.j7,{data:m.data,
customCommandResolver:RRR})}}),_.C("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataMenu"},_.C(_.wi,{data:function(){return c().menu}},{buttonViewModel:_.XU}))))},"bj"),"top-banner-image-text-icon-buttoned-layout-view-model",{props:{data:_.vt}});var F44={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"},HD=function(){var J=_.h.apply(this,arguments)||this;J.updateCompanionDataJobId=0;J.contentVideoId=null;J.player=null;J.actionMap={"yt-companion-ad-clicked":"handleCompanionAdClicked"};
return J};
_.D(HD,_.h);_.V=HD.prototype;_.V.configureRendererStamper=function(){return{oneofRenderer:{id:"companion",mapping:F44}}};
_.V.attached=function(){var J=this,c=_.ep();c&&c.getPlayerPromise().then(function(m){J.getCachedDataAndListen(m)})};
_.V.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateKevlarOrC3Companion",this.receiveCompanionData),this.player=null)};
_.V.updateRendererStamper=function(){var J={};if(this.data)for(var c in F44)if(this.data[c]){J[c]=this.data[c];break}if(this.oneofRenderer!=void 0||Object.keys(J).length)this.oneofRenderer=J};
_.V.getCachedDataAndListen=function(J){var c=this.retrieveCachedCompanionData();c&&Object.keys(c).length&&this.receiveCompanionData(c);this.ytPlayerListenerBehavior.listenToPlayerEvent(J,"updateKevlarOrC3Companion",this.receiveCompanionData);this.player=J};
_.V.retrieveCachedCompanionData=function(){return _.mo.yt&&_.mo.yt.www&&_.mo.yt.www.ads&&_.mo.yt.www.ads.eventcache&&_.mo.yt.www.ads.eventcache.getLastCompanionData?_.mo.yt.www.ads.eventcache.getLastCompanionData():null};
_.V.receiveCompanionData=function(J){J&&Object.keys(J).length?(this.contentVideoId=J.contentVideoId,this.setCompanionData(J)):this.setCompanionData(J)};
_.V.setCompanionData=function(J){this.cancelPendingCompanionAdJobs();if(J){this.updateCompanionDataJobId=0;for(var c in F44)F44.hasOwnProperty(c)&&(this.data[c]=void 0);J.shoppingCompanionCarouselRenderer?this.set("data.shoppingCompanionCarouselRenderer",J.shoppingCompanionCarouselRenderer):J.imageCompanionAdRenderer?this.set("data.imageCompanionAdRenderer",J.imageCompanionAdRenderer):J.actionCompanionAdRenderer?(this.set("data.actionCompanionAdRenderer",J.actionCompanionAdRenderer),_.bJ(this.hostElement,
"yt-hide-unlimited-offer-module"),_.bJ(this.hostElement,"yt-hide-tvfilm-offer-module")):J.bannerImageLayoutViewModel?this.set("data.bannerImageLayoutViewModel",J.bannerImageLayoutViewModel):J.topBannerImageTextIconButtonedLayoutViewModel&&this.set("data.topBannerImageTextIconButtonedLayoutViewModel",J.topBannerImageTextIconButtonedLayoutViewModel);this.updateRendererStamper()}};
_.V.dataChanged=function(){var J=this,c=_.ep();c?c.getPlayerPromise().then(function(m){J.contentVideoId&&m.getVideoUrl().includes("v="+J.contentVideoId)||(J.cancelPendingCompanionAdJobs(),J.updateRendererStamper())}):_.Ge(Error("gm"))};
_.V.cancelPendingCompanionAdJobs=function(){this.updateCompanionDataJobId&&(_.ft.cancelJob(this.updateCompanionDataJobId),this.updateCompanionDataJobId=0)};
_.V.handleCompanionAdClicked=function(J,c){this.player.onAdUxClicked(J,c);this.player.pauseVideo()};
HD.prototype.dataChanged=HD.prototype.dataChanged;_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],HD.prototype,"ytComponentBehavior",void 0);_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],HD.prototype,"ytActionHandlerBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],HD.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],HD.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.f(_.Ex.YtPlayerListenerBehavior),_.R("design:type",_.vX)],HD.prototype,"ytPlayerListenerBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],HD.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],HD.prototype,"oneofRenderer",void 0);_.O([_.kr("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],HD.prototype,"dataChanged",null);HD=_.O([_.E({is:"ytd-companion-slot-renderer",disableElementRegistration:!0})],HD);
_.v(HD,"ytd-companion-slot-renderer",function(){if(Q4R!==void 0)return Q4R;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return Q4R=J},{mode:_.mP("kevlar_poly_si_batch_j067")?
1:2});var lWr;var i7=function(){return _.h.apply(this,arguments)||this};
_.D(i7,_.h);i7.prototype.dataChanged=function(){this.companionSlotData={hack:!0}};
i7.prototype.dataChanged=i7.prototype.dataChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],i7.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],i7.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],i7.prototype,"companionSlotData",void 0);_.O([_.kr("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],i7.prototype,"dataChanged",null);
i7=_.O([_.E({disableElementRegistration:!0,is:"ytd-player-legacy-desktop-watch-ads-renderer"})],i7);
_.v(i7,"ytd-player-legacy-desktop-watch-ads-renderer",function(){if(lWr!==void 0)return lWr;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return lWr=J},{mode:1});var yor;var nh=function(){var J=_.h.apply(this,arguments)||this;J.skinnyMode=!1;J.COMPACT_EVENT_COUNT=4;J.onShelfToggleButtonTap=function(){J.logTap(J.data);J.showingMore=!J.showingMore};
J.onShelfToggleButtonFocus=function(){J.showingMore||(J.logTap(J.data),J.showingMore=!0,_.o3(J,function(){var c=J.COMPACT_EVENT_COUNT-1,m;(m=_.Bj(J.hostElement).querySelector("#event-"+c))==null||m.focus()}))};
return J};
_.D(nh,_.h);_.V=nh.prototype;_.V.attached=function(){this.shelfToggleButton.addEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.addEventListener("focus",this.onShelfToggleButtonFocus);this.addInfoTooltipListeners()};
_.V.detached=function(){this.shelfToggleButton.removeEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.removeEventListener("focus",this.onShelfToggleButtonFocus);this.removeInfoTooltipListeners()};
_.V.addInfoTooltipListeners=function(){this.infoContainer.addEventListener("tap",_.ME(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseenter",_.ME(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("focus",_.ME(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseleave",_.ME(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.addEventListener("blur",_.ME(this.infoTooltip,this.infoTooltip.hide))};
_.V.removeInfoTooltipListeners=function(){this.infoContainer.removeEventListener("tap",_.ME(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseenter",_.ME(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("focus",_.ME(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseleave",_.ME(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.removeEventListener("blur",_.ME(this.infoTooltip,this.infoTooltip.hide))};
_.V.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)};
_.V.onShowingMoreChanged=function(){var J;this.showingMoreChanged((J=this.showingMore)!=null?J:!1)};
_.V.showingMoreChanged=function(J){var c=this.get("data.events")||[];this.set("restEvents",c.slice(1,J?c.length:this.COMPACT_EVENT_COUNT).map(function(m){return m.ticketEventRenderer}));
c.slice(0,J?c.length:this.COMPACT_EVENT_COUNT).forEach(function(m){var b=_.Y3();m=m.ticketEventRenderer.trackingParams;_.fl()&&b&&m&&(m=_.n7(m),b&&_.E2(b,m))});
this.shelfTogglerLabelText=this.showingMore?this.data.showLess||"":this.data.showMore||"";this.shelfTogglerIcon=this.showingMore?"yt-icons:expand-less":"yt-icons:expand-more"};
_.V.computeAriaLabel=function(J){return J.subtitle1+", "+J.subtitle2};
_.V.logTap=function(J){_.fl()&&this.ytRendererBehavior.logExplicitClick(J)};
_.V.isKeyboardAction=function(J){return this.get("detail.x",J)===0&&this.get("detail.y",J)===0};
_.V.onFirstEventTap=function(J){J.target&&this.handleTap(J.target,this.firstEvent,this.isKeyboardAction(J))};
_.V.onTicketLinkTap=function(J){J.target&&this.handleTap(J.target,J.model.item,this.isKeyboardAction(J))};
_.V.handleTap=function(J,c,m){if(c.buttonCommand)if(c.hasMultipleOffers)Object.assign(_.L(c.buttonCommand,_.T3),{properties:{source:m?"keyboard":"tap"}}),this.logTap(c),this.popupPositionTarget=J,_.PA(this.hostElement,[c.buttonCommand],this.hostElement);else{var b;if((b=_.L(c.buttonCommand,_.Ee))==null?0:b.url)this.logTap(c),_.Zx(window,_.L(c.buttonCommand,_.Ee).url)}};
nh.prototype.onShowingMoreChanged=nh.prototype.onShowingMoreChanged;nh.prototype.dataChanged=nh.prototype.dataChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],nh.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],nh.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],nh.prototype,"firstEvent",void 0);_.O([_.U(),_.R("design:type",Object)],nh.prototype,"restEvents",void 0);_.O([_.U(),_.R("design:type",String)],nh.prototype,"imageUrl",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],nh.prototype,"showingMore",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],nh.prototype,"canShowMore",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],nh.prototype,"skinnyMode",void 0);_.O([_.U(),_.R("design:type",HTMLElement)],nh.prototype,"popupPositionTarget",void 0);_.O([_.Iu("#banner-info-tooltip"),_.R("design:type",Object)],nh.prototype,"infoTooltip",void 0);
_.O([_.Iu("#info-container"),_.R("design:type",HTMLElement)],nh.prototype,"infoContainer",void 0);_.O([_.Iu("#shelf-toggler"),_.R("design:type",HTMLElement)],nh.prototype,"shelfToggleButton",void 0);_.O([_.Iu("#separator"),_.R("design:type",HTMLDivElement)],nh.prototype,"separator",void 0);_.O([_.U(),_.R("design:type",String)],nh.prototype,"shelfTogglerLabelText",void 0);_.O([_.U(),_.R("design:type",String)],nh.prototype,"shelfTogglerIcon",void 0);
_.O([_.kr("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],nh.prototype,"dataChanged",null);_.O([_.kr("showingMore"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],nh.prototype,"onShowingMoreChanged",null);nh=_.O([_.E({disableElementRegistration:!0,is:"ytd-ticket-shelf-renderer"})],nh);
_.v(nh,"ytd-ticket-shelf-renderer",function(){if(yor!==void 0)return yor;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return yor=J},{mode:1});var BXr;var g5s;var T0=function(){return _.h.apply(this,arguments)||this};
_.D(T0,_.h);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],T0.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],T0.prototype,"data",void 0);T0=_.O([_.E({disableElementRegistration:!0,is:"ytd-comments-entry-point-message-renderer"})],T0);
_.v(T0,"ytd-comments-entry-point-message-renderer",function(){if(g5s!==void 0)return g5s;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return g5s=J},{mode:1});var Ju1;var wN=function(){return _.h.apply(this,arguments)||this};
_.D(wN,_.h);_.eE.Object.defineProperties(wN.prototype,{hasAvatar:{configurable:!0,enumerable:!0,get:function(){var J;return!((J=this.data)==null||!J.teaserAvatar)}}});
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],wN.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],wN.prototype,"data",void 0);_.O([_.q("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],wN.prototype,"hasAvatar",null);wN=_.O([_.E({disableElementRegistration:!0,is:"ytd-comments-entry-point-teaser-renderer"})],wN);
_.v(wN,"ytd-comments-entry-point-teaser-renderer",function(){if(Ju1!==void 0)return Ju1;var J=document.createElement("template");_.z(J,'\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>');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return Ju1=J},{mode:1});var cu1;var rN=function(){return _.h.apply(this,arguments)||this};
_.D(rN,_.h);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],rN.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],rN.prototype,"data",void 0);rN=_.O([_.E({disableElementRegistration:!0,is:"ytd-comments-simplebox-renderer"})],rN);
_.v(rN,"ytd-comments-simplebox-renderer",function(){if(cu1!==void 0)return cu1;var J=document.createElement("template");_.z(J,'\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>');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return cu1=J},{mode:1});var st=function(){var J=_.h.apply(this,arguments)||this;J.fullHeight=!_.w("comment_teaser_full_height_kill_switch")&&_.w("kevlar_watch_grid");return J};
_.D(st,_.h);st.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"}}}};
st.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
st.prototype.onTap=function(){var J=this.tapCommand;J&&(this.data&&this.ytRendererBehavior.logExplicitClick(this.data),this.ytComponentBehavior.resolveCommand(J))};
st.prototype.onKeyUp=function(J){if(J.keyCode===13)this.onTap()};
_.eE.Object.defineProperties(st.prototype,{tapCommand:{configurable:!0,enumerable:!0,get:function(){var J;if((J=this.data)==null?0:J.onTap)return this.data.onTap;var c,m;if(((c=this.data)==null?0:c.teaserContent)||((m=this.data)==null?0:m.simpleboxPlaceholder))return{signalAction:{signal:"SCROLL_TO_COMMENTS"}}}},
simpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){var J;return(J=this.data)==null?void 0:J.simpleboxPlaceholder}},
hasSimpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){return!!this.simpleboxPlaceholder}},
simpleboxAvatar:{configurable:!0,enumerable:!0,get:function(){var J;return(J=this.data)==null?void 0:J.simpleboxAvatar}},
teaserContent:{configurable:!0,enumerable:!0,get:function(){var J;return(J=this.data)==null?void 0:J.teaserContent}},
hasTeaserContent:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserContent}},
teaserAvatar:{configurable:!0,enumerable:!0,get:function(){var J;return(J=this.data)==null?void 0:J.teaserAvatar}},
hasTeaserAvatar:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserAvatar}},
messageText:{configurable:!0,enumerable:!0,get:function(){var J;return(J=this.data)==null?void 0:J.messageText}},
contentRenderer:{configurable:!0,enumerable:!0,get:function(){var J;return(J=this.data)==null?void 0:J.contentRenderer}},
hasContents:{configurable:!0,enumerable:!0,get:function(){var J;return(J=this.data)!=null&&J.contents?this.data.contents.length>0:!1}},
hasContentRenderer:{configurable:!0,enumerable:!0,get:function(){return!!this.contentRenderer}}});
st.prototype.onKeyUp=st.prototype.onKeyUp;st.prototype.onTap=st.prototype.onTap;_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],st.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],st.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],st.prototype,"ytComponentBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],st.prototype,"data",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],st.prototype,"fullHeight",void 0);_.O([_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],st.prototype,"tapCommand",null);_.O([_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],st.prototype,"simpleboxPlaceholder",null);_.O([_.q("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],st.prototype,"hasSimpleboxPlaceholder",null);
_.O([_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],st.prototype,"simpleboxAvatar",null);_.O([_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],st.prototype,"teaserContent",null);_.O([_.q("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],st.prototype,"hasTeaserContent",null);_.O([_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],st.prototype,"teaserAvatar",null);
_.O([_.q("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],st.prototype,"hasTeaserAvatar",null);_.O([_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],st.prototype,"messageText",null);_.O([_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],st.prototype,"contentRenderer",null);_.O([_.q("data"),_.U({reflectToAttribute:!0}),_.R("design:type",Boolean),_.R("design:paramtypes",[])],st.prototype,"hasContents",null);
_.O([_.q("data"),_.U({reflectToAttribute:!0}),_.R("design:type",Boolean),_.R("design:paramtypes",[])],st.prototype,"hasContentRenderer",null);_.O([_.ps("click"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],st.prototype,"onTap",null);_.O([_.ps("keypress"),_.R("design:type",Function),_.R("design:paramtypes",[_.pI]),_.R("design:returntype")],st.prototype,"onKeyUp",null);st=_.O([_.E({disableElementRegistration:!0,is:"ytd-comments-entry-point-header-renderer"})],st);
_.v(st,"ytd-comments-entry-point-header-renderer",function(){if(BXr!==void 0)return BXr;var J=document.createElement("template");_.z(J,'\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>');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return BXr=J},{mode:1});var mY5;_.w("web_enable_sink_animated_rolling_character_and_number")?_.lv(_.Xkz,"yt-animated-rolling-number",{props:{numberText:_.vt,numberValue:_.vt,heightPx:_.vt,fontSizeMultiplier:_.vt,shouldAnimate:_.vt,forceRollUp:_.vt}}):_.xx(_.ter,"yt-animated-rolling-number",{propNames:["numberText","numberValue","heightPx","shouldAnimate","forceRollUp"]});var bB1=Number(getComputedStyle(document.documentElement).fontSize.replace("px","")),xY4={numberText:"",heightPx:2*bB1,shouldAnimate:!1},Lh=function(){var J=_.h.apply(this,arguments)||this;J.usingAnimatedComponents=!0;J.wasDetailed=!1;J.JSC$20257_browserSupportsAnimation=_.w("web_supports_animations_api");J.actionMap={"yt-update-viewership-action":"onYtUpdateViewershipAction","yt-update-date-text-action":"onYtUpdateDateTextAction"};J.detailed=!1;J.shouldAnimate=!1;J.viewCountProps=xY4;J.dateTextProps=
xY4;J.metadataBadgesInDescription=_.w("web_metadata_badges_in_description");return J};
_.D(Lh,_.h);_.V=Lh.prototype;_.V.resetAnimationState=function(){this.shouldAnimate=!1};
_.V.updateDynamicMetadata=function(){if(this.JSC$20257_browserSupportsAnimation){if(!this.detailed){var J,c,m,b;var x=(J=this.videoPrimaryInfoRenderer)==null?void 0:(c=J.viewCount)==null?void 0:(m=c.videoViewCountRenderer)==null?void 0:(b=m.extraShortViewCount)==null?void 0:b.simpleText;var P,p,t,I;var a=(P=this.videoPrimaryInfoRenderer)==null?void 0:(p=P.viewCount)==null?void 0:(t=p.videoViewCountRenderer)==null?void 0:(I=t.shortViewCount)==null?void 0:I.simpleText}if(!a){var k,H,T,r;x=(k=this.videoPrimaryInfoRenderer)==
null?void 0:(H=k.viewCount)==null?void 0:(T=H.videoViewCountRenderer)==null?void 0:(r=T.unlabeledViewCountValue)==null?void 0:r.simpleText;var W,Y,Z,d;a=(W=this.videoPrimaryInfoRenderer)==null?void 0:(Y=W.viewCount)==null?void 0:(Z=Y.videoViewCountRenderer)==null?void 0:(d=Z.viewCount)==null?void 0:d.simpleText}var G,e,A;J=Number((G=this.videoPrimaryInfoRenderer)==null?void 0:(e=G.viewCount)==null?void 0:(A=e.videoViewCountRenderer)==null?void 0:A.originalViewCount);var l,y;G=(l=this.videoPrimaryInfoRenderer)==
null?void 0:(y=l.relativeDateText)==null?void 0:y.simpleText;var pG;l=!((pG=this.videoPrimaryInfoRenderer)==null||!pG.relativeDateText);if(x&&a&&J&&(G||!l)){this.wasDetailed!==this.detailed&&(this.shouldAnimate=!1);this.wasDetailed=this.detailed;pG=a.split(new RegExp("("+x+")"));x=lUR(pG[0]);var kt;a={numberText:(kt=pG[1])!=null?kt:"",numberValue:J,heightPx:2*bB1,shouldAnimate:this.shouldAnimate&&!!this.viewCountProps.numberText};var nG;kt=((nG=pG[2])!=null?nG:"")+"  ";this.setViewCount(a,x,lUR(kt));
if(!this.detailed&&l){x=G.split(/(\d+)/);nG=lUR(x[0]);var fG;kt={numberText:(fG=x[1])!=null?fG:"",heightPx:2*bB1,shouldAnimate:this.shouldAnimate&&!!this.dateTextProps.numberText};var Yt;fG=((Yt=x[2])!=null?Yt:"")+"  ";this.setDateText(kt,nG,lUR(fG))}else this.setDateText();this.usingAnimatedComponents=!0;this.shouldAnimate=!1}else this.usingAnimatedComponents=!1,this.setViewCount(),this.setDateText()}else this.usingAnimatedComponents=!1};
_.V.setViewCount=function(J,c,m){_.OG(c)!==_.OG(this.viewCountPreNumberText)&&(this.viewCountPreNumberText=c);this.viewCountProps.numberText!==(J==null?void 0:J.numberText)&&(this.viewCountProps=J||xY4);_.OG(m)!==_.OG(this.viewCountPostNumberText)&&(this.viewCountPostNumberText=m)};
_.V.setDateText=function(J,c,m){_.OG(c)!==_.OG(this.dateTextPreNumberText)&&(this.dateTextPreNumberText=c);this.dateTextProps.numberText!==(J==null?void 0:J.numberText)&&(this.dateTextProps=J||xY4);_.OG(m)!==_.OG(this.dateTextPostNumberText)&&(this.dateTextPostNumberText=m)};
_.V.onYtUpdateViewershipAction=function(J){this.videoPrimaryInfoRenderer&&(_.L(J,gE5).isEmpty?this.set("videoPrimaryInfoRenderer.viewCount",null):_.L(J,gE5).viewCount&&(this.shouldAnimate=!0,this.set("videoPrimaryInfoRenderer.viewCount",_.L(J,gE5).viewCount)))};
_.V.onYtUpdateDateTextAction=function(J){if(this.videoPrimaryInfoRenderer){J=_.L(J,_.ylf).dateText;this.shouldAnimate=!0;var c;((c=this.videoPrimaryInfoRenderer)==null?0:c.relativeDateText)?this.set("videoPrimaryInfoRenderer.relativeDateText",J):this.set("videoPrimaryInfoRenderer.dateText",J)}};
_.eE.Object.defineProperties(Lh.prototype,{infoText:{configurable:!0,enumerable:!0,get:function(){return FD4(this.videoPrimaryInfoRenderer,this.detailed,!this.usingAnimatedComponents)}},
descriptionInfoTooltipText:{configurable:!0,enumerable:!0,get:function(){return _.OG(FD4(this.videoPrimaryInfoRenderer,!0,!0,!1,"\u2022"))}},
showDescriptionInfoTooltip:{configurable:!0,enumerable:!0,get:function(){return!this.detailed}},
animatedViewCountAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.OG(this.viewCountPreNumberText),this.viewCountProps.numberText,_.OG(this.viewCountPostNumberText)].join("")}},
animatedDateTextAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.OG(this.dateTextPreNumberText),this.dateTextProps.numberText,_.OG(this.dateTextPostNumberText)].join("")}}});
Lh.prototype.updateDynamicMetadata=Lh.prototype.updateDynamicMetadata;Lh.prototype.resetAnimationState=Lh.prototype.resetAnimationState;_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],Lh.prototype,"ytComponentBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Lh.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],Lh.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],Lh.prototype,"ytActionHandlerBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Lh.prototype,"videoPrimaryInfoRenderer",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Lh.prototype,"detailed",void 0);_.O([_.U(),_.R("design:type",Object)],Lh.prototype,"shouldAnimate",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Lh.prototype,"viewCountPreNumberText",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Lh.prototype,"viewCountProps",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Lh.prototype,"viewCountPostNumberText",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Lh.prototype,"dateTextPreNumberText",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Lh.prototype,"dateTextProps",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Lh.prototype,"dateTextPostNumberText",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Lh.prototype,"metadataBadgesInDescription",void 0);_.O([_.q("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed","usingAnimatedComponents"),_.R("design:type",Object),_.R("design:paramtypes",[])],Lh.prototype,"infoText",null);
_.O([_.q("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount"),_.R("design:type",String),_.R("design:paramtypes",[])],Lh.prototype,"descriptionInfoTooltipText",null);_.O([_.q("detailed"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Lh.prototype,"showDescriptionInfoTooltip",null);
_.O([_.q("viewCountPreNumberText","viewCountProps.numberText","viewCountPostNumberText"),_.R("design:type",String),_.R("design:paramtypes",[])],Lh.prototype,"animatedViewCountAccessibilityLabel",null);_.O([_.q("dateTextPreNumberText","dateTextProps.numberText","dateTextPostNumberText"),_.R("design:type",String),_.R("design:paramtypes",[])],Lh.prototype,"animatedDateTextAccessibilityLabel",null);
_.O([_.NE("videoPrimaryInfoRenderer"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Lh.prototype,"resetAnimationState",null);_.O([_.NE("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Lh.prototype,"updateDynamicMetadata",null);Lh=_.O([_.E({disableElementRegistration:!0,is:"ytd-watch-info-text"})],Lh);
_.v(Lh,"ytd-watch-info-text",function(){if(mY5!==void 0)return mY5;var J=document.createElement("template");_.z(J,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-info-text--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="info-container" class="style-scope ytd-watch-info-text">\n  <div id="view-count" aria-label$="[[animatedViewCountAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number force-roll-up="[[viewCountProps.forceRollUp]]" height-px="[[viewCountProps.heightPx]]" number-text="[[viewCountProps.numberText]]" number-value="[[viewCountProps.numberValue]]" should-animate="[[viewCountProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <div id="date-text" aria-label$="[[animatedDateTextAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number force-roll-up="true" height-px="[[dateTextProps.heightPx]]" number-text="[[dateTextProps.numberText]]" number-value="[[dateTextProps.numberValue]]" should-animate="[[dateTextProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="info" text="[[infoText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  <template is="dom-if" if="[[metadataBadgesInDescription]]" class="style-scope ytd-watch-info-text">\n    <ytd-badge-supported-renderer badges="[[videoPrimaryInfoRenderer.badges]]" hidden="[[!videoPrimaryInfoRenderer.badges]]" class="style-scope ytd-watch-info-text">\n    </ytd-badge-supported-renderer>\n  </template>\n</div>\n<template is="dom-if" restamp="" if="[[showDescriptionInfoTooltip]]" class="style-scope ytd-watch-info-text">\n  <tp-yt-paper-tooltip class="style-scope ytd-watch-info-text">[[descriptionInfoTooltipText]]</tp-yt-paper-tooltip>\n</template>\n');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return mY5=J},{mode:1});var VCp;var P85=_.Q1(function(J){var c=J.data;var m=J.setTapCommand;_.ui(function(){var b=_.ZG(c().onTap);m(b)},"X4onJd");
return _.C("yt-comment-input-box-carousel-item-view-model",{class:"ytCommentInputBoxCarouselItemViewModelHost"},_.C(_.wi,{data:function(){return c().avatar}},{avatarViewModel:_.s8}),_.C("div",{class:"ytCommentInputBoxCarouselItemViewModelInputBox"},_.C("span",null,function(){return c().simpleboxText})))},"cj");var MC4=_.Q1(function(J){return _.C("comments-entry-point-teaser-view-model",{class:"ytCommentsEntryPointTeaserViewModelHost"},_.C(_.n,{cond:function(){return _.L(J.data().avatar,_.Oc)},
then:function(c){return _.C(_.s8,{data:c,avatarButtonCustomClassName:"ytCommentsEntryPointTeaserViewModelAvatar"})}}),_.C("div",{class:"ytCommentsEntryPointTeaserViewModelTeaser"},_.C(_.j8,{text:function(){return J.data().teaserText}})))},"dj");var phr=_.Q1(function(J){var c=J.data;var m=J.setTapCommand;_.ui(function(){var b=_.ZG(c().onTap);m(b)},"PmAol");
return _.C("yt-comment-teaser-carousel-item-view-model",{class:"ytCommentTeaserCarouselItemViewModelHost"},_.C(_.wi,{data:function(){return c().teasers}},{commentsEntryPointTeaserViewModel:MC4}))},"ej");var NqF=_.Q1(function(J){var c=J.data;var m=J.setTapCommand;_.ui(function(){var b=_.ZG(c().onTap);m(b)},"Nh3Hjd");
return _.C("yt-comments-entry-point-message-view-model",{class:"ytCommentsEntryPointMessageViewModelHost"},_.C(_.j8,{text:function(){return c().messageText}}))},"fj");var tCs=_.Q1(function(J){var c=J.data;var m=J.setTapCommand;var b=J.isDisabled;_.ui(function(){var x=(b==null?0:b())?void 0:_.ZG(c().onTap);m(x)},"omeiWe");
return _.C("yt-text-carousel-item-view-model",{class:"ytTextCarouselItemViewModelHost"},_.C(_.HP,{icon:function(){return c().iconName},
className:"ytTextCarouselItemViewModelImageType"}),_.C(_.n,{cond:function(){return c().image},
then:function(x){return _.C(_.RA,{data:x,alt:"",className:"ytTextCarouselItemViewModelImageType"})}}),_.C(_.j8,{text:function(){return c().text},
className:function(){return c().image||c().iconName?"ytTextCarouselItemViewModelText":"ytTextCarouselItemViewModelTextWithoutImage"},
ellipsisTruncate:!0}),_.C(_.wi,{data:function(){return c().button}},{buttonViewModel:function(x){return _.C(_.XU,{data:x.data,
className:"ytTextCarouselItemViewModelButton",buttonOverrides:function(){return{disabled:b==null?void 0:b()}}})}}))},"gj");var IEo=_.Q1(function(J){var c=J.data;var m=J.itemIndex;var b=J.selectedIndex;var x=J.indexUpdatedCallback;var P=J.observer;J=J.title;var p=_.oN("yt-carousel-item-view-model",function(H){_.w("web_metadata_carousel_elref_bugfix")&&P&&P().observe(H)}),t=function(H){m()===b()&&x(H)},I=_.fq(zRp),a=_.fq(uqr),k=function(){var H,T,r;
return((H=c())==null?void 0:H.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_LIVE_CHAT_STATIC_TEXT"&&!I()||((T=c())==null?void 0:T.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_QUIZ_TEASER_STATIC_TEXT"&&a().includes("PAposts_by_host")||((r=c())==null?void 0:r.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_YOUCHAT_STATIC_TEXT"&&a().includes("PAyouchat")};
_.uN(function(){_.w("web_metadata_carousel_elref_bugfix")||P&&P().observe(p.value)});
return _.C("yt-carousel-item-view-model",{el:p,class:"ytCarouselItemViewModelHost",tabindex:0,"aria-label":J},_.C(_.wi,{data:function(){var H,T;return(T=(H=_.L(c().carouselItem,wq1))==null?void 0:H.textCarousel)!=null?T:c().carouselItem}},{textCarouselItemViewModel:function(H){return _.C(tCs,{data:H.data,
setTapCommand:t,isDisabled:k})},
commentTeaserCarouselItemViewModel:function(H){return _.C(phr,{data:H.data,setTapCommand:t})},
commentInputBoxCarouselItemViewModel:function(H){return _.C(P85,{data:H.data,setTapCommand:t})},
commentsEntryPointMessageViewModel:function(H){return _.C(NqF,{data:H.data,setTapCommand:t})}}))},"hj");var KWh=_.Q1(function(J){var c=J.numDots;var m=J.activeIndex;return _.C("yt-carousel-dots-shape",{class:"ytCarouselDotsShapeHost"},_.C(_.Te,{each:function(){return Array.from({length:c()})},
keyBy:"INDEX"},function(b,x){return _.C("div",{class:function(){var P={};return _.tP("ytCarouselDotsShapeDot",(P.ytCarouselDotsShapeDotActive=x===m(),P))}})}))},"ij");var C84=_.Q1(function(J){var c=J.data;var m=J.handleCarouselNavigation;var b=J.numItems;var x=J.selectedIndex;var P=function(){return{disabled:x()===0}},p=function(){return{disabled:x()===b()-1}};
return _.C("yt-carousel-title-view-model",{class:"ytCarouselTitleViewModelHost"},_.C("div",null,_.C("h2",{class:"ytCarouselTitleViewModelTitle","aria-live":"polite"},function(){return c().title}),_.C(_.n,{cond:function(){return c().subtitle},
then:function(t){return _.C("span",{class:"ytCarouselTitleViewModelSubtitle","aria-label":function(){return c().subtitleAccessibilityText}},t)}})),_.C(_.n,{cond:function(){return b()>1},
then:function(){return _.C("div",{class:"ytCarouselTitleViewModelNavigation"},_.C(KWh,{numDots:b,activeIndex:x}),_.C(_.n,{cond:function(){return c().previousButton},
then:function(t){return _.C(_.wi,{data:t},{buttonViewModel:function(I){return _.C(_.XU,{data:I.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return m(-1)},
buttonOverrides:P})}})}}),_.C(_.n,{cond:function(){return c().nextButton},
then:function(t){return _.C(_.wi,{data:t},{buttonViewModel:function(I){return _.C(_.XU,{data:I.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return m(1)},
buttonOverrides:p})}})}}))}}))},"jj");_.lv(_.Q1(function(J){var c=J.data;var m,b=_.oN("yt-video-metadata-carousel-view-model"),x=_.oN("div",function(l){if(_.w("web_metadata_carousel_elref_bugfix")){var y=function(){var pG=l.offsetWidth*Y(),kt=24*(Y()-1);T(pG+kt)};
y();window.ResizeObserver&&(m=new ResizeObserver(y),m.observe(l))}}),P=_.Ub("HTML_DIR")==="rtl",p=!1,t=0,I=0;
J=_.M(_.K2(0,void 0,"f4aYxe"));var a=J.next().value,k=J.next().value;J=_.M(_.K2(0,void 0,"kU9O9"));var H=J.next().value,T=J.next().value;J=_.M(_.K2(!1,void 0,"GqphDd"));var r=J.next().value,W=J.next().value,Y=function(){var l,y,pG;return(pG=(l=c())==null?void 0:(y=l.carouselTitles)==null?void 0:y.length)!=null?pG:0},Z=function(){x.value&&x.value.scrollLeft!==t&&k((P?x.value.scrollLeft<t:x.value.scrollLeft>t)?Math.min(a()+1,Y()-1):Math.max(a()-1,0))},d;
window.IntersectionObserver&&(d=new IntersectionObserver(function(l){l=_.M(l);for(var y=l.next();!y.done;y=l.next())if(y.value.isIntersecting){if(p){p=!1;break}Z()}else k(I)},{threshold:.2}));
_.ui(function(){if(x.value){var l=(P?-1:1)*(H()/Y()+12)*(r()&&d?I:a());typeof x.value.scrollTo==="function"?x.value.scrollTo({left:l,behavior:"smooth"}):x.value.scrollLeft=l;t=l;I=r()&&d?I:a()}},"ZP1VMb");
var G,e=function(l){G=l};
_.uN(function(){if(!_.w("web_metadata_carousel_elref_bugfix")){var l=function(){var pG=x.value.offsetWidth*Y(),kt=24*(Y()-1);T(pG+kt)};
l();if(window.ResizeObserver){var y=new ResizeObserver(l);y.observe(x.value);_.f2(function(){y.disconnect();d&&d.disconnect()})}}});
_.f2(function(){if(_.w("web_metadata_carousel_elref_bugfix")){var l;(l=m)==null||l.disconnect();var y;(y=d)==null||y.disconnect()}});
var A=function(l){l=a()+l;l>=0&&l<Y()&&(p=!0,k(l))};
return _.C("yt-video-metadata-carousel-view-model",{class:"ytVideoMetadataCarouselViewModelHost",el:b,"on:click":_.Kq(function(l){if(_.$M(_.di(l),b.value,["BUTTON".toString()])||!G)return!1;_.BG().resolve(_.gu).resolveCommand(G,{forceClickLogging:!0});return!1}),
"on:touchstart":_.Kq(function(){W(!0);return!1}),
"on:touchend":_.Kq(function(){d||Z();W(!1);return!1}),
hidden:function(){var l,y;return!((l=c())==null?0:(y=l.carouselItems)==null?0:y.length)}},_.C("div",{class:"ytVideoMetadataCarouselViewModelTitleSection"},_.C(_.n,{cond:function(){return c().carouselTitles},
then:function(l){return _.C(_.wi,{data:function(){return l()[r()&&d?I:a()]}},{carouselTitleViewModel:function(y){return _.C(C84,{data:y.data,
handleCarouselNavigation:A,numItems:Y,selectedIndex:a})}})}})),_.C("div",{class:"ytVideoMetadataCarouselViewModelCarouselContainer",
el:x},_.C("div",{class:"ytVideoMetadataCarouselViewModelItemSection",style:function(){return"min-width: "+H()+"px;"}},_.C(_.n,{cond:function(){return c().carouselItems},
then:function(l){return _.C(_.Te,{each:l},function(y,pG){return _.C(_.wi,{data:function(){return y}},{carouselItemViewModel:function(kt){return _.C(IEo,{data:kt.data,
itemIndex:pG,selectedIndex:a,indexUpdatedCallback:e,observer:d,title:function(){a:{var nG=pG();var fG,Yt=(fG=c())==null?void 0:fG.carouselTitles;if(Yt&&(nG=Yt[nG])){var Z3;nG=(Z3=_.L(nG,Ttf))==null?void 0:Z3.title;break a}nG=void 0}return nG}})}})})}}))))},"kj"),"yt-video-metadata-carousel-view-model",{props:{data:_.vt}});var aE5=_.w("web_action_buttons_update_owner_width")?32:12,Dk=function(){var J=_.h.apply(this,arguments)||this;J.metadataBadgesInDescription=_.w("web_metadata_badges_in_description");J.descriptionCollapsed=!0;J.useFadedScrimDescription=_.w("kevlar_enable_faded_scrim_on_description");J.skinnyMode=!1;J.playlist=!1;J.isDark=document.documentElement.hasAttribute("dark");J.disableVideoOwnerOnTap=_.w("swatchie_video_owner_on_tap_ks");J.swatcherooDelayLoad=_.w("swatcheroo_enable_ghost_cards");J.primaryMenuWidth=
0;J.videoId="";J.titleHeadlineXs=_.w("web_watch_typography_title_headline_xs");J.titleHeadlineS=_.w("web_watch_typography_title_headline_s");J.titleHeadlineM=_.w("web_watch_typography_title_headline_m");J.titleHashtagBlackLinkified=_.w("web_title_hashtag_black_linkified");J.titleHashtagGreyLinkified=_.w("web_title_hashtag_grey_linkified");J.actionButtonsUpdateOwnerWidth=_.w("web_action_buttons_update_owner_width");J.shouldForceIconOnly=!1;J.actionMap={"yt-update-title-action":"onYtUpdateTitleAction",
"yt-update-description-action":"onYtUpdateDescriptionAction","yt-dark-mode-toggled-action":"onYtDarkModeToggledAction"};J.isFullscreen=!1;J.isTheaterMode=!1;return J};
_.D(Dk,_.h);_.V=Dk.prototype;_.V.ready=function(){this.updateOwnerAndDescriptionPosition()};
_.V.updateOwnerAndDescriptionPosition=function(){_.w("kevlar_watch_grid")&&(this.skinnyMode?(this.titleElement.appendChild(this.descriptionElement),_.qT(this.bottomRowElement,this.ownerElement)):(_.qT(this.bottomRowElement,this.descriptionElement),_.qT(this.topRowElement,this.ownerElement)))};
_.V.titleOnTap=function(J){if(this.descriptionExpandCommand&&this.skinnyMode&&!_.AP(_.OT(J)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var c;((c=window.getSelection())==null?0:c.toString().length)||this.handleExpandDescriptionCommands()}};
_.V.videoOwnerOnTap=function(J){this.disableVideoOwnerOnTap||this.skinnyMode&&this.videoOwnerCommand&&(_.AP(_.OT(J)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])||this.ytComponentBehavior.resolveCommand(this.videoOwnerCommand))};
_.V.detached=function(){var J=this,c;return _.N(function(m){(c=J.resizeObserver)==null||c.disconnect();_.tD(m)})};
_.V.maybeAttachResizeObserver=function(){var J=this;this.flexMenuEnabled&&window.ResizeObserver&&(this.resizeThrottle||(this.resizeThrottle=new _.FU(this.resize,200,this)),this.resizeObserver=this.resizeObserver||new ResizeObserver(function(){J.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement))};
_.V.maybeUpdateActionsOnSeparateLine=function(){if(this.skinnyMode)this.actionsOnSeparateLine=!0;else if(this.primaryMenuWidth){var J=this.hostElement.clientWidth,c=Math.max(this.largerItemWrap?400:350,J/2-aE5);if(_.w("web_action_buttons_update_owner_width")){var m;c=(((m=document.getElementById("owner"))==null?void 0:m.clientWidth)||0)+aE5}this.actionsOnSeparateLine=this.primaryMenuWidth>J-c?!0:!1}};
_.V.stripAttributedDescription=function(J){return{content:J.content.replace(/[\r\n]{2,}/g,"\n")}};
_.V.configureRendererStamper=function(){return{"videoPrimaryInfoRenderer.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,disableTextTransformOnButtons:!0,tonalOverride:_.w("web_modern_buttons"),forceIconButton:!_.w("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:_.w("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"}}}};
_.V.videoPrimaryInfoRendererChanged=function(){var J;if((J=this.videoPrimaryInfoRenderer)==null?0:J.trackingParams)this.data={trackingParams:this.videoPrimaryInfoRenderer.trackingParams};this.flexMenuEnabled&&(this.maybeAttachResizeObserver(),this.updatePrimaryMenuWidth())};
_.V.videoSecondaryInfoRendererChanged=function(){var J,c;(c=(J=this.descriptionInlineExpander).collapse)==null||c.call(J);this.descriptionExpandClientVe=_.rs(110509);this.descriptionCollapseClientVe=_.rs(110510);J=_.Y3();c=_.fl();J&&c&&(_.w("combine_ve_grafts")?(_.JM(_.C7(),this.descriptionExpandClientVe,c),_.JM(_.C7(),this.descriptionCollapseClientVe,c)):_.Gm(J,c,[this.descriptionExpandClientVe,this.descriptionCollapseClientVe]))};
_.V.structuredDescriptionContentRendererChanged=function(){_.w("ytd-watch-metadata-manual-sd-updates-killswitch")||(this.useFadedScrimDescription&&this.fadedStructuredDescriptionContentRendererElement?this.fadedStructuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRenderer:this.structuredDescriptionContentRendererElement&&(this.structuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRenderer))};
_.V.updateTopLevelIconsOnly=function(){var J=this;_.w("top_level_update_killswitch")||this.menu&&_.ft.addLowPriorityJob(function(){J.menu.topLevelIconsOnly=J.skinnyMode},_.c7("swathceroo_delay_flexible_menu_update",100))};
_.V.updateShouldForceIconOnly=function(){this.shouldForceIconOnly=this.skinnyMode||_.w("web_action_buttons_minimize_subscribe")};
_.V.moveActionsElement=function(){this.skinnyMode?this.bottomActionsElement.appendChild(this.actionsElement):this.topRowElement.appendChild(this.actionsElement)};
_.V.onYtTextInlineExpanderExpandClicked=function(){this.logExpandClick()};
_.V.onYtTextInlineExpanderCollapseClicked=function(){this.logCollapseClick();this.isWatchFlexy&&this.scrollToTopOfContainer()};
_.V.onYtTextInlineExpanderExpandedChanged=function(){if(!_.w("kevlar_watch_grid")){this.descriptionCollapsed=!this.descriptionInlineExpander.isExpanded;var J,c;(c=(J=this.structuredDescriptionContentRendererElement).resize)==null||c.call(J)}};
_.V.onRenderStamperFinished=function(J){(J==null?void 0:J.target)===this.hostElement&&this.updatePrimaryMenuWidth()};
_.V.onYtExpanderMoreTapped=function(){this.handleExpandDescriptionCommands()};
_.V.onYtExpanderLessTapped=function(){var J,c=(J=this.videoSecondaryInfoRenderer)==null?void 0:J.showLessCommand;c&&this.ytComponentBehavior.resolveCommand(c)};
_.V.onDescriptionDown=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerDown()};
_.V.onDescriptionUp=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerUp()};
_.V.onDescriptionClick=function(J){if(!_.AP(_.OT(J)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var c;((c=window.getSelection())==null?0:c.toString().length)||(this.descriptionCollapsed?this.handleExpandDescriptionClick():_.w("kevlar_watch_metadata_entire_collapse_click_target")&&this.handleCollapseDescriptionClick())}};
_.V.handleExpandDescriptionClick=function(){this.descriptionCollapsed&&(this.useFadedScrimDescription&&this.logExpandClick(),this.expandDescription())};
_.V.handleCollapseDescriptionClick=function(){!this.descriptionCollapsed&&this.useFadedScrimDescription&&(this.collapseDescription(),this.scrollToTopOfContainer(),this.logCollapseClick())};
_.V.logCollapseClick=function(){var J=_.Y3();J&&this.descriptionCollapseClientVe&&_.AS(J,this.descriptionCollapseClientVe)};
_.V.logExpandClick=function(){var J=_.Y3();J&&this.descriptionExpandClientVe&&_.AS(J,this.descriptionExpandClientVe)};
_.V.collapseDescription=function(){this.descriptionCollapsed=!0};
_.V.scrollToTopOfContainer=function(){_.m9(this.hostElement,"yt-scroll-to-watch-element",[this.titleElement])};
_.V.expandDescription=function(){if(this.descriptionCollapsed)if(this.useFadedScrimDescription)this.descriptionCollapsed=!1,this.handleExpandDescriptionCommands();else this.descriptionInlineExpander.onExpandClick()};
_.V.handleExpandDescriptionCommands=function(){this.descriptionExpandCommand&&!this.structuredDescriptionContentRenderer&&this.ytComponentBehavior.resolveCommand(this.descriptionExpandCommand)};
_.V.getAboveTheFoldHeight=function(){return this.aboveTheFoldContainer.offsetHeight};
_.V.resize=function(){if(this.descriptionInlineExpander){var J,c;(c=(J=this.descriptionInlineExpander).resize)==null||c.call(J)}else _.qz(new _.w3("Tried to resize description inline expander when the HTML element was null",this.videoSecondaryInfoRenderer));if(this.flexMenuEnabled){var m;(m=this.menu)==null||m.maybeFlushDebouncer();this.primaryMenuWidth===0?this.updatePrimaryMenuWidth():(_.w("web_action_buttons_overlap_fix")&&this.updatePrimaryMenuWidth(),this.maybeUpdateActionsOnSeparateLine())}};
_.V.updatePrimaryMenuWidth=function(){if(this.flexMenuEnabled&&this.menu){var J,c,m,b,x=_.w("web_action_buttons_update_owner_width")?(m=(J=_.Bj(this.menu).querySelector("#button-shape"))==null?void 0:J.clientWidth)!=null?m:0:(b=(c=_.Bj(this.menu).querySelector("#button"))==null?void 0:c.clientWidth)!=null?b:0,P,p;J=((p=(P=_.Bj(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:P.clientWidth)!=null?p:0)+8+x;var t,I;x=(I=(t=_.Bj(this.menu).querySelector("#top-level-buttons-computed"))==
null?void 0:t.children.length)!=null?I:2;J<=8*x||(this.primaryMenuWidth=J)}};
_.V.onYtUpdateTitleAction=function(J){this.videoPrimaryInfoRenderer&&this.set("videoPrimaryInfoRenderer.title",_.L(J,BtR).title)};
_.V.onYtUpdateDescriptionAction=function(J){if(J=_.L(J,_.yVQ)){var c,m=!((c=this.videoSecondaryInfoRenderer)==null||!c.attributedDescription);J.isEmpty||!J.description&&!J.attributedDescription?(this.set("videoSecondaryInfoRenderer.attributedDescription",null),this.set("videoSecondaryInfoRenderer.description",null)):J.attributedDescription?this.set("videoSecondaryInfoRenderer.attributedDescription",J.attributedDescription):J.description&&(m?this.set("videoSecondaryInfoRenderer.attributedDescription",
_.uv(J.description)):this.set("videoSecondaryInfoRenderer.description",J.description))}};
_.V.onYtDarkModeToggledAction=function(J){this.isDark=J};
_.V.registerPanel=function(){if(!_.w("kevlar_watch_metadata_ep_killswitch")&&this.hasInlineStructuredDescription){var J=_.w("web_watch_imax_theater_mode")&&this.isTheaterMode;J=_.w("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||J;var c=_.BG().resolve(_.Tr);c&&!J&&c.registerPanel("engagement-panel-structured-description",this)}};
_.V.resetDescriptionState=function(){this.useFadedScrimDescription&&(this.descriptionCollapsed=!0)};
_.V.showPanel=function(J){this.expandDescription();var c=this.useFadedScrimDescription?this.fadedStructuredDescriptionContentRendererElement:this.structuredDescriptionContentRendererElement;c.resize();var m,b=J==null?void 0:(m=J.sectionListEngagementPanelExtras)==null?void 0:m.scrollToItemSectionIdentifier;b?_.ft.addJob(function(){c==null||c.scrollToSection(b)},8):this.scrollToTopOfContainer()};
_.V.isVisible=function(){return!this.descriptionCollapsed};
_.V.getReloadContinuation=function(){};
_.V.hidePanel=function(){};
_.V.updatePanel=function(){};
_.eE.Object.defineProperties(Dk.prototype,{productShelf:{configurable:!0,enumerable:!0,get:function(){var J;if((J=this.structuredDescriptionContentRenderer)!=null&&J.items){var c;J=_.M((c=this.structuredDescriptionContentRenderer)==null?void 0:c.items);for(c=J.next();!c.done;c=J.next())if(c=_.L(c.value,_.yiQ))return c}}},
shouldHideBadges:{configurable:!0,enumerable:!0,get:function(){var J;return!((J=this.videoPrimaryInfoRenderer)==null?0:J.badges)||this.metadataBadgesInDescription}},
shouldShowProductShelf:{configurable:!0,enumerable:!0,get:function(){return!(!this.productShelf||this.descriptionCollapsed)}},
largerItemWrap:{configurable:!0,enumerable:!0,get:function(){var J,c,m;return!!((J=this.videoSecondaryInfoRenderer)==null?0:(c=J.owner)==null?0:(m=c.videoOwnerRenderer)==null?0:m.membershipButton)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){if(this.skinnyMode&&!_.w("swatchie_sd_new_line_strip_ks")){var J,c;if((J=this.videoSecondaryInfoRenderer)==null?0:(c=J.attributedDescription)==null?0:c.content){var m,b;return(b=this.stripAttributedDescription((m=this.videoSecondaryInfoRenderer)==null?void 0:m.attributedDescription))!=null?b:{runs:[]}}}var x,P,p,t;return(t=(p=(x=this.videoSecondaryInfoRenderer)==null?void 0:x.description)!=null?p:(P=this.videoSecondaryInfoRenderer)==null?
void 0:P.attributedDescription)!=null?t:{runs:[]}}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var J,c;return(c=(J=this.videoSecondaryInfoRenderer)==null?void 0:J.headerRuns)!=null?c:[]}},
hasTeaser:{configurable:!0,enumerable:!0,get:function(){var J;return!((J=this.commentsEntryPointHeaderRenderer)==null||!J.commentsEntryPointHeaderRenderer)}},
hasTeaserCarousel:{configurable:!0,enumerable:!0,get:function(){var J;return!((J=this.videoMetadataCarousel)==null||!J.videoMetadataCarouselViewModel)}},
descriptionMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.skinnyMode?_.c7("swatchie_desc_lines",3):this.hasTeaserCarousel?_.c7("teaser_carousel_desc_lines",2):3}},
collapsibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){var J,c,m=Object.assign({},(J=this.videoSecondaryInfoRenderer)==null?void 0:(c=J.metadataRowContainer)==null?void 0:c.metadataRowContainerRenderer);if(m&&m.rows&&m.collapsedItemCount!==void 0&&!(m.rows.length<=m.collapsedItemCount))return m.rows=m.rows.slice(m.collapsedItemCount),m.collapsedItemCount=0,m}},
alwaysVisibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){if(!this.suppressTopLevelMetadataRows){var J,c,m=Object.assign({},(J=this.videoSecondaryInfoRenderer)==null?void 0:(c=J.metadataRowContainer)==null?void 0:c.metadataRowContainerRenderer);if(m&&m.rows&&m.collapsedItemCount!==void 0)return m.rows=m.rows.slice(0,m.collapsedItemCount),m.collapsedItemCount=m.rows.length,m}}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){var J,c;return!!((J=this.structuredDescriptionContentRenderer)==null?0:(c=J.items)==null?0:c.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 J;return(J=this.videoSecondaryInfoRenderer)==null?void 0:J.showMoreCommand}},
videoOwnerCommand:{configurable:!0,enumerable:!0,get:function(){var J,c,m;return((J=this.videoSecondaryInfoRenderer)==null?0:(c=J.owner)==null?0:(m=c.videoOwnerRenderer)==null?0:m.navigationEndpoint)?this.videoSecondaryInfoRenderer.owner.videoOwnerRenderer.navigationEndpoint:null}},
flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var J,c,m,b;return!!((J=this.videoPrimaryInfoRenderer)==null?0:(c=J.videoActions)==null?0:(m=c.menuRenderer)==null?0:(b=m.flexibleItems)==null?0:b.length)}},
showAttributedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&_.vd(this.descriptionText)}},
showFormattedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&!_.vd(this.descriptionText)}},
showFadedStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.useFadedScrimDescription||!this.hasInlineStructuredDescription||this.descriptionCollapsed)}},
videoTitle:{configurable:!0,enumerable:!0,get:function(){var J=this;if(_.w("web_title_hashtag_grey_delinkified")){var c,m=_.Lw.unsafeClone((c=this.videoPrimaryInfoRenderer)==null?void 0:c.title);(c=m==null?void 0:m.runs)&&c.forEach(function(b){if(b==null?0:b.navigationEndpoint)b.textColor=4284506208,J.isDark&&(b.textColor=4289374890)});
return m}return(m=this.videoPrimaryInfoRenderer)==null?void 0:m.title}},
noEndpoints:{configurable:!0,enumerable:!0,get:function(){return _.w("web_title_hashtag_black_delinkified")||_.w("web_title_hashtag_grey_delinkified")}}});
Dk.prototype.resetDescriptionState=Dk.prototype.resetDescriptionState;Dk.prototype.registerPanel=Dk.prototype.registerPanel;Dk.prototype.onYtExpanderLessTapped=Dk.prototype.onYtExpanderLessTapped;Dk.prototype.onYtExpanderMoreTapped=Dk.prototype.onYtExpanderMoreTapped;Dk.prototype.onRenderStamperFinished=Dk.prototype.onRenderStamperFinished;Dk.prototype.onYtTextInlineExpanderExpandedChanged=Dk.prototype.onYtTextInlineExpanderExpandedChanged;Dk.prototype.onYtTextInlineExpanderCollapseClicked=Dk.prototype.onYtTextInlineExpanderCollapseClicked;
Dk.prototype.onYtTextInlineExpanderExpandClicked=Dk.prototype.onYtTextInlineExpanderExpandClicked;Dk.prototype.moveActionsElement=Dk.prototype.moveActionsElement;Dk.prototype.updateShouldForceIconOnly=Dk.prototype.updateShouldForceIconOnly;Dk.prototype.updateTopLevelIconsOnly=Dk.prototype.updateTopLevelIconsOnly;Dk.prototype.structuredDescriptionContentRendererChanged=Dk.prototype.structuredDescriptionContentRendererChanged;Dk.prototype.videoSecondaryInfoRendererChanged=Dk.prototype.videoSecondaryInfoRendererChanged;
Dk.prototype.videoPrimaryInfoRendererChanged=Dk.prototype.videoPrimaryInfoRendererChanged;Dk.prototype.maybeUpdateActionsOnSeparateLine=Dk.prototype.maybeUpdateActionsOnSeparateLine;Dk.prototype.updateOwnerAndDescriptionPosition=Dk.prototype.updateOwnerAndDescriptionPosition;_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],Dk.prototype,"ytActionHandlerBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],Dk.prototype,"ytComponentBehavior",void 0);
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Dk.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],Dk.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.fY),_.R("design:type",Object)],Dk.prototype,"ytdReduxBehavior",void 0);_.O([_.Iu("#above-the-fold"),_.R("design:type",HTMLElement)],Dk.prototype,"aboveTheFoldContainer",void 0);_.O([_.Iu("#menu ytd-menu-renderer"),_.R("design:type",Object)],Dk.prototype,"menu",void 0);
_.O([_.Iu("#description-inline-expander"),_.R("design:type",Object)],Dk.prototype,"descriptionInlineExpander",void 0);_.O([_.Iu("#faded-structured-description"),_.R("design:type",Object)],Dk.prototype,"fadedStructuredDescriptionContentRendererElement",void 0);_.O([_.Iu("#structured-description"),_.R("design:type",Object)],Dk.prototype,"structuredDescriptionContentRendererElement",void 0);_.O([_.Iu("#title"),_.R("design:type",HTMLElement)],Dk.prototype,"titleElement",void 0);
_.O([_.Iu("#description"),_.R("design:type",HTMLElement)],Dk.prototype,"descriptionElement",void 0);_.O([_.Iu("#description-interaction"),_.R("design:type",Object)],Dk.prototype,"descriptionInteraction",void 0);_.O([_.Iu("#owner"),_.R("design:type",HTMLElement)],Dk.prototype,"ownerElement",void 0);_.O([_.Iu("#top-row"),_.R("design:type",HTMLElement)],Dk.prototype,"topRowElement",void 0);_.O([_.Iu("#bottom-row"),_.R("design:type",HTMLElement)],Dk.prototype,"bottomRowElement",void 0);
_.O([_.Iu("#actions"),_.R("design:type",HTMLElement)],Dk.prototype,"actionsElement",void 0);_.O([_.Iu("#bottom-actions"),_.R("design:type",HTMLElement)],Dk.prototype,"bottomActionsElement",void 0);_.O([_.Iu("#ytd-watch-info-text"),_.R("design:type",Object)],Dk.prototype,"watchInfoTextElement",void 0);_.O([_.U(),_.R("design:type",Object)],Dk.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],Dk.prototype,"videoPrimaryInfoRenderer",void 0);
_.O([_.U(),_.R("design:type",Object)],Dk.prototype,"videoSecondaryInfoRenderer",void 0);_.O([_.U(),_.R("design:type",Object)],Dk.prototype,"commentsEntryPointHeaderRenderer",void 0);_.O([_.U(),_.R("design:type",Object)],Dk.prototype,"videoMetadataCarousel",void 0);_.O([_.U(),_.R("design:type",Object)],Dk.prototype,"structuredDescriptionContentRenderer",void 0);_.O([_.U(),_.R("design:type",Object)],Dk.prototype,"videoSummary",void 0);
_.O([_.U(),_.R("design:type",Object)],Dk.prototype,"merchShelf",void 0);_.O([_.U(),_.R("design:type",Object)],Dk.prototype,"infoPanelBelowMetadata",void 0);_.O([_.q("structuredDescriptionContentRenderer"),_.R("design:type",Object),_.R("design:paramtypes",[])],Dk.prototype,"productShelf",null);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Dk.prototype,"metadataBadgesInDescription",void 0);
_.O([_.q("videoPrimaryInfoRenderer"),_.R("design:type",Object),_.R("design:paramtypes",[])],Dk.prototype,"shouldHideBadges",null);_.O([_.q("productShelf","descriptionCollapsed"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Dk.prototype,"shouldShowProductShelf",null);_.O([_.U(),_.R("design:type",Boolean)],Dk.prototype,"isWatchFlexy",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Dk.prototype,"descriptionCollapsed",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],Dk.prototype,"useFadedScrimDescription",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Dk.prototype,"skinnyMode",void 0);_.O([_.U({reflectToAttribute:!0}),_.q("videoSecondaryInfoRenderer"),_.R("design:type",Object),_.R("design:paramtypes",[])],Dk.prototype,"largerItemWrap",null);_.O([_.U(),_.R("design:type",Object)],Dk.prototype,"playlist",void 0);_.O([_.U(),_.R("design:type",Object)],Dk.prototype,"clarifyBox",void 0);
_.O([_.U(),_.R("design:type",Object)],Dk.prototype,"playerAds",void 0);_.O([_.U(),_.R("design:type",Boolean)],Dk.prototype,"isDark",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],Dk.prototype,"actionsOnSeparateLine",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Dk.prototype,"disableVideoOwnerOnTap",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Dk.prototype,"swatcherooDelayLoad",void 0);
_.O([_.U(),_.R("design:type",Boolean)],Dk.prototype,"suppressTopLevelMetadataRows",void 0);_.O([_.U(),_.R("design:type",Object)],Dk.prototype,"primaryMenuWidth",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Dk.prototype,"videoId",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Dk.prototype,"titleHeadlineXs",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Dk.prototype,"titleHeadlineS",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Dk.prototype,"titleHeadlineM",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Dk.prototype,"titleHashtagBlackLinkified",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Dk.prototype,"titleHashtagGreyLinkified",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Dk.prototype,"actionButtonsUpdateOwnerWidth",void 0);
_.O([_.U(),_.R("design:type",Object)],Dk.prototype,"shouldForceIconOnly",void 0);_.O([_.kr("skinnyMode"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Dk.prototype,"updateOwnerAndDescriptionPosition",null);_.O([_.kr("skinnyMode"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Dk.prototype,"maybeUpdateActionsOnSeparateLine",null);
_.O([_.q("videoSecondaryInfoRenderer.description","videoSecondaryInfoRenderer.attributedDescription"),_.R("design:type",Object),_.R("design:paramtypes",[])],Dk.prototype,"descriptionText",null);_.O([_.q("videoSecondaryInfoRenderer.headerRuns"),_.R("design:type",Array),_.R("design:paramtypes",[])],Dk.prototype,"headerRuns",null);_.O([_.U({value:!1}),_.q("commentsEntryPointHeaderRenderer"),_.R("design:type",Object),_.R("design:paramtypes",[])],Dk.prototype,"hasTeaser",null);
_.O([_.U({value:!1,reflectToAttribute:!0}),_.q("videoMetadataCarousel"),_.R("design:type",Object),_.R("design:paramtypes",[])],Dk.prototype,"hasTeaserCarousel",null);_.O([_.U({value:3}),_.q("skinnyMode","playerAds","clarifyBox","hasTeaserCarousel"),_.R("design:type",Object),_.R("design:paramtypes",[])],Dk.prototype,"descriptionMaxLines",null);_.O([_.q("videoSecondaryInfoRenderer.metadataRowContainer"),_.R("design:type",Object),_.R("design:paramtypes",[])],Dk.prototype,"collapsibleMetadataRows",null);
_.O([_.q("videoSecondaryInfoRenderer.metadataRowContainer","suppressTopLevelMetadataRows"),_.R("design:type",Object),_.R("design:paramtypes",[])],Dk.prototype,"alwaysVisibleMetadataRows",null);_.O([_.q("videoSecondaryInfoRenderer","structuredDescriptionContentRenderer"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Dk.prototype,"hasInlineStructuredDescription",null);
_.O([_.q("useFadedScrimDescription","hasInlineStructuredDescription","descriptionCollapsed"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Dk.prototype,"showInlineStructuredDescription",null);_.O([_.q("data","hasInlineStructuredDescription","videoSecondaryInfoRenderer"),_.R("design:type",Object),_.R("design:paramtypes",[])],Dk.prototype,"descriptionExpandCommand",null);
_.O([_.q("videoSecondaryInfoRenderer.owner"),_.R("design:type",Object),_.R("design:paramtypes",[])],Dk.prototype,"videoOwnerCommand",null);_.O([_.U({reflectToAttribute:!0}),_.q("videoPrimaryInfoRenderer.videoActions"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Dk.prototype,"flexMenuEnabled",null);_.O([_.U({selector:_.Uc,reflectToAttribute:!0}),_.R("design:type",Object)],Dk.prototype,"isFullscreen",void 0);
_.O([_.U({selector:_.qx,reflectToAttribute:!0}),_.R("design:type",Object)],Dk.prototype,"isTheaterMode",void 0);_.O([_.q("descriptionText","useFadedScrimDescription"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Dk.prototype,"showAttributedStringDescription",null);_.O([_.q("descriptionText","useFadedScrimDescription"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Dk.prototype,"showFormattedStringDescription",null);
_.O([_.q("useFadedScrimDescription","descriptionCollapsed","hasInlineStructuredDescription"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Dk.prototype,"showFadedStructuredDescription",null);_.O([_.kr("videoPrimaryInfoRenderer"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Dk.prototype,"videoPrimaryInfoRendererChanged",null);_.O([_.q("videoPrimaryInfoRenderer.title"),_.R("design:type",Object),_.R("design:paramtypes",[])],Dk.prototype,"videoTitle",null);
_.O([_.q("videoPrimaryInfoRenderer"),_.R("design:type",Object),_.R("design:paramtypes",[])],Dk.prototype,"noEndpoints",null);_.O([_.kr("videoSecondaryInfoRenderer"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Dk.prototype,"videoSecondaryInfoRendererChanged",null);
_.O([_.NE("videoPrimaryInfoRenderer","structuredDescriptionContentRenderer"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Dk.prototype,"structuredDescriptionContentRendererChanged",null);_.O([_.NE("skinnyMode"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Dk.prototype,"updateTopLevelIconsOnly",null);
_.O([_.NE("skinnyMode"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Dk.prototype,"updateShouldForceIconOnly",null);_.O([_.NE("skinnyMode"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Dk.prototype,"moveActionsElement",null);_.O([_.ps("yt-text-inline-expander-expand-clicked"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Dk.prototype,"onYtTextInlineExpanderExpandClicked",null);
_.O([_.ps("yt-text-inline-expander-collapse-clicked"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Dk.prototype,"onYtTextInlineExpanderCollapseClicked",null);_.O([_.ps("yt-text-inline-expander-expanded-changed"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Dk.prototype,"onYtTextInlineExpanderExpandedChanged",null);
_.O([_.ps("yt-rendererstamper-finished"),_.R("design:type",Function),_.R("design:paramtypes",[Event]),_.R("design:returntype")],Dk.prototype,"onRenderStamperFinished",null);_.O([_.ps("yt-expander-more-tapped"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Dk.prototype,"onYtExpanderMoreTapped",null);_.O([_.ps("yt-expander-less-tapped"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Dk.prototype,"onYtExpanderLessTapped",null);
_.O([_.NE("videoPrimaryInfoRenderer","hasInlineStructuredDescription","isFullscreen"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Dk.prototype,"registerPanel",null);_.O([_.NE("videoSecondaryInfoRenderer"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Dk.prototype,"resetDescriptionState",null);Dk=_.O([_.E({disableElementRegistration:!0,is:"ytd-watch-metadata"})],Dk);
_.v(Dk,"ytd-watch-metadata",function(){if(VCp!==void 0)return VCp;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return VCp=J},{mode:2});_.sX5=function(J){_.DS.call(this);this.JSC$20280_watchApi=J;this.temporaryTheaterMode=this.autonavCancelledBySignal=!1;kNR(this);HB5(this);iBS(this);nf1(this);Tqu(this);whh(this);ruR(this)};
_.D(_.sX5,_.DS);var iBS=function(J){var c=function(){_.w("kevlar_is_pupi_enabled")||WD(J)};
J.JSC$20280_watchApi.getRoot().addEventListener("yt-player-updated",c);J.addOnDisposeCallback(function(){J.JSC$20280_watchApi.getRoot().removeEventListener("yt-player-updated",c)})},Tqu=function(J){if(_.w("kevlar_endscreen_auto_theater_mode")){var c=J.JSC$20280_watchApi.subscribeToActiveChanged(function(){LWp(J)},!1);
J.addOnDisposeCallback(c)}},kNR=function(J){var c,m,b,x,P;
_.N(function(p){if(p.nextAddress==1)return _.K(p,J.JSC$20280_watchApi.playerApi,2);c=p.yieldResult;m=function(t){t=!!t;z0(J)&&(t=t?2:1,_.AZ.getInstance().setState(t,!0,!1))};
b=function(t){t&&_.WDF(_.Rc().getState())&&(_.m9(J.JSC$20280_watchApi.getRoot(),"yt-toggle-theater-mode",[!0,!1]),J.temporaryTheaterMode=!0)};
x=function(t){_.w("kevlar_player_update_autonav_on_new_data")&&t.type==="newdata"&&(_.w("kevlar_is_pupi_enabled")||WD(J))};
P=function(t){J.onPlayerStateChange(t)};
_.w("kevlar_endscreen_auto_theater_mode")&&c.addEventListener("onAutonavCancelled",b);c.addEventListener("onAutonavChangeRequest",m);c.addEventListener("onVideoDataChange",x);c.addEventListener("onStateChange",P);J.addOnDisposeCallback(function(){c.removeEventListener("onAutonavChangeRequest",m);c.removeEventListener("onVideoDataChange",x);c.removeEventListener("onStateChange",P);_.w("kevlar_endscreen_auto_theater_mode")&&c.removeEventListener("onAutonavCancelled",b)});
_.tD(p)})},HB5=function(J){J.JSC$20280_watchApi.registerActionHandler("yt-signal-action-cancel-autonav",function(){J.autonavCancelledBySignal=!0;
_.w("kevlar_is_pupi_enabled")||WD(J)});
J.JSC$20280_watchApi.registerActionHandler("yt-autonav-state-changed-action",function(c,m,b){m&&WD(J,b)});
J.JSC$20280_watchApi.registerActionHandler("yt-enable-autoplay-command",function(){z0(J)&&_.AZ.getInstance().setState(2,!0,!0)});
J.JSC$20280_watchApi.registerActionHandler("yt-disable-autoplay-command",function(){z0(J)&&_.AZ.getInstance().setState(1,!0,!0)});
J.addOnDisposeCallback(function(){J.JSC$20280_watchApi.unregisterActionHandler("yt-signal-action-cancel-autonav");J.JSC$20280_watchApi.unregisterActionHandler("yt-autonav-state-changed-action");J.JSC$20280_watchApi.unregisterActionHandler("yt-enable-autoplay-command");J.JSC$20280_watchApi.unregisterActionHandler("yt-disable-autoplay-command")})},nf1=function(J){var c=J.JSC$20280_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){ruR(J)}),m=J.JSC$20280_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",
function(){whh(J)});
J.addOnDisposeCallback(function(){J.JSC$20280_watchApi.unsubscribeByKey(c);J.JSC$20280_watchApi.unsubscribeByKey(m)})},ruR=function(J){J.autonavCancelledBySignal=!1;
_.w("kevlar_is_pupi_enabled")||WD(J)},whh=function(J){var c=J.JSC$20280_watchApi.getWatchNextResponse(),m,b;
var x=(c=(b=_.L(c==null?void 0:(x=c.playerOverlays)==null?void 0:(m=x.playerOverlayRenderer)==null?void 0:m.autonavToggle,_.gUL))==null?void 0:b.enabled)?2:1;_.w("kevlar_is_pupi_enabled")?_.AZ.getInstance().setState(x,!1,!1):WD(J);_.w("web_persist_server_autonav_state_on_client")&&typeof c==="boolean"&&_.LRt(x===2)},z0=function(J){if(J.autonavCancelledBySignal)return!1;
var c,m,b,x;return!!((c=J.JSC$20280_watchApi.getWatchNextResponse())==null?0:(m=c.contents)==null?0:(b=m.twoColumnWatchNextResults)==null?0:(x=b.autoplay)==null?0:x.autoplay)};
_.sX5.prototype.onPlayerStateChange=function(J){if(J===0){J=!_.AZ.getInstance().isAutoplaySetExplicitly();var c=this.JSC$20280_watchApi.getWatchNextResponse(),m,b,x,P;c=_.L(c==null?void 0:(m=c.contents)==null?void 0:(b=m.twoColumnWatchNextResults)==null?void 0:(x=b.autoplay)==null?void 0:(P=x.autoplay)==null?void 0:P.autoplayExplicitChoiceDialogRenderer,_.LcQ);z0(this)&&J&&c&&_.p7.instance.resolveCommand({openPopupAction:{popup:{confirmDialogRenderer:c},popupType:"DIALOG"}})}else LWp(this)};
var LWp=function(J){J.temporaryTheaterMode&&(J.temporaryTheaterMode=!1,_.m9(J.JSC$20280_watchApi.getRoot(),"yt-toggle-theater-mode",[!1,!1]))},WD=function(J,c){c=c===void 0?!1:c;
var m;_.N(function(b){if(b.nextAddress==1)return _.K(b,J.JSC$20280_watchApi.playerApi,2);m=b.yieldResult;z0(J)?m.setAutonavState(_.AZ.getInstance().getState(),c):m.setAutonavState(1,c);_.tD(b)})};var DYR={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"};_.zq5=function(J){_.DS.call(this);var c=this;this.JSC$20285_watchApi=J;var m=this.JSC$20285_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){WWR(c)});
this.addOnDisposeCallback(function(){c.JSC$20285_watchApi.unsubscribeByKey(m)});
WWR(this)};
_.D(_.zq5,_.DS);var WWR=function(J){var c=J.JSC$20285_watchApi.getPlayerResponse(),m=J.JSC$20285_watchApi.getWatchNextResponse();if(!_.R9G(c==null?void 0:c.playabilityStatus,m==null?void 0:m.playerOverlays)){var b;var x=c==null?void 0:(b=c.playabilityStatus)==null?void 0:b.errorScreen}J.JSC$20285_watchApi.provideRenderingData("ERROR_SCREEN",x)};var uiR=_.Q1(function(J){var c=J.data;var m=_.fq(_.Uc);J={};return _.C("yt-player-overlay-video-details-renderer",{class:"ytPlayerOverlayVideoDetailsRendererHost","on:click":_.Kq(function(){var b=c().onTap;b&&_.BG().resolve(_.gu).resolveCommand(b)})},_.C("div",{class:_.pq("ytPlayerOverlayVideoDetailsRendererTitle",(J.ytPlayerOverlayVideoDetailsRendererTitleCompact=function(){return!m()},J))},_.C(_.j8,{text:function(){return c().title}})),_.C("div",{class:"ytPlayerOverlayVideoDetailsRendererSubtitle"},
_.C(_.wi,{data:function(){return c().channelAvatar}},{avatarViewModel:_.s8}),_.C(_.j8,{text:function(){return c().subtitle}})))},"lj");var u7={LIKE:"LIKE_DELHI_PLAYER",DISLIKE:"DISLIKE_DELHI_PLAYER",SHARE:"SHARE_DELHI_PLAYER",COMMENT:"COMMENT_DELHI_PLAYER"},fES=_.Q1(function(J){var c=J.data;var m=_.fq(_.Uc);return _.C("yt-player-quick-action-buttons",{class:_.pq("ytPlayerQuickActionButtonsHost")},_.C(_.Te,{each:function(){var b=c(),x=m();b=JSON.parse(JSON.stringify(b));for(var P=_.w("web_watch_action_bar_resize_buttons"),p=_.w("delhi_modern_web_player_icons")&&!_.w("enable_web_delhi_icons"),t=_.M(b),I=t.next();!I.done;I=t.next()){var a=
I.value,k=void 0;I=_.L((k=_.L(a,_.Wg))==null?void 0:k.toggleButtonViewModel,_.sc);var H=void 0;k=_.L((H=_.L(a,_.z9))==null?void 0:H.toggleButtonViewModel,_.sc);a=_.L(a,_.ri);I?(k=_.L(I.defaultButtonViewModel,_.ri),I=_.L(I.toggledButtonViewModel,_.ri),k&&(p&&k.iconName&&(k.iconName=u7[k.iconName]),!x&&P&&(k.buttonSize="BUTTON_VIEW_MODEL_SIZE_DEFAULT")),I&&(p&&I.iconName&&(I.iconName=u7[I.iconName]),!x&&P&&(I.buttonSize="BUTTON_VIEW_MODEL_SIZE_DEFAULT"))):k?(I=_.L(k.defaultButtonViewModel,_.ri),k=_.L(k.toggledButtonViewModel,
_.ri),I&&(p&&I.iconName&&(I.iconName=u7[I.iconName]),!x&&P&&(I.buttonSize="BUTTON_VIEW_MODEL_SIZE_DEFAULT")),k&&(p&&k.iconName&&(k.iconName=u7[k.iconName]),!x&&P&&(k.buttonSize="BUTTON_VIEW_MODEL_SIZE_DEFAULT"))):a&&(p&&a.iconName&&(a.iconName=u7[a.iconName]),!x&&P&&(a.buttonSize="BUTTON_VIEW_MODEL_SIZE_DEFAULT"))}return b}},function(b){return _.C(_.wi,{data:function(){return b}},{buttonViewModel:_.XU,
likeButtonViewModel:function(x){return _.C(_.zr,{data:x.data,disableIconAnimation:!0})},
dislikeButtonViewModel:_.WT})}))},"mj");_.XhS=function(J){_.DS.call(this);var c=this;this.JSC$20288_watchApi=J;J=_.M(_.K2({},void 0,"ufFdVc"));this.quickActionsViewModel=J.next().value;this.setQuickActionsViewModel=J.next().value;J=_.M(_.K2({},void 0,"atbdp"));this.playerOverlayVideoDetailsRenderer=J.next().value;this.setPlayerOverlayVideoDetailsRenderer=J.next().value;var m=this.JSC$20288_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){YVS(c)});
this.addOnDisposeCallback(function(){c.JSC$20288_watchApi.unsubscribeByKey(m)});
YVS(this)};
_.D(_.XhS,_.DS);
var YVS=function(J){var c,m,b,x,P,p,t,I,a,k,H,T,r,W;_.N(function(Y){if(Y.nextAddress==1)return _.K(Y,J.JSC$20288_watchApi.playerApi,2);c=Y.yieldResult;m=J.JSC$20288_watchApi.getWatchNextResponse();P=(b=m)==null?void 0:(x=b.playerOverlays)==null?void 0:x.playerOverlayRenderer;t=_.L((p=P)==null?void 0:p.fullscreenQuickActionsBar,_.xwZ);(a=(I=J).setQuickActionsViewModel)==null||a.call(I,t||{});t&&ZBR(J,c);T=(k=P)==null?void 0:(H=k.videoDetails)==null?void 0:H.playerOverlayVideoDetailsRenderer;(W=(r=
J).setPlayerOverlayVideoDetailsRenderer)==null||W.call(r,T||{});T&&qVu(J,c);_.tD(Y)})},ZBR=function(J,c){if(!J.quickActionButtonsContainer){J.quickActionButtonsContainer=document.createElement("div");
c.setFullscreenQuickActions(J.quickActionButtonsContainer);var m=function(){return J.quickActionsViewModel().quickActionButtons||[]},b=_.Dc(J.quickActionButtonsContainer,function(){return _.C(fES,{data:m})});
J.addOnDisposeCallback(function(){c.setFullscreenQuickActions(void 0);b()})}},qVu=function(J,c){if(!J.playerOverlayVideoDetailsRendererContainer){J.playerOverlayVideoDetailsRendererContainer=document.createElement("div");
c.setPlayerOverlayVideoDetailsRenderer(J.playerOverlayVideoDetailsRendererContainer);var m=_.Dc(J.playerOverlayVideoDetailsRendererContainer,function(){return _.C(uiR,{data:J.playerOverlayVideoDetailsRenderer})});
J.addOnDisposeCallback(function(){c.setPlayerOverlayVideoDetailsRenderer(void 0);m()})}};_.fh=function(J){_.DS.call(this);var c=this;this.JSC$20293_watchApi=J;this.JSC$20293_miniplayerActive=this.isFullscreen=this.shouldShowFullerscreenEdu=this.fullerscreenEduButtonClickedThisPlayback=this.fullerscreenEduButtonShownThisPlayback=!1;J=_.Nh(_.Rc(),_.Uc,function(m){c.onFullscreenChanged(m)});
this.addOnDisposeCallback(J);J=_.Nh(_.Rc(),_.D6,function(m){c.onWatchScroll(m)});
this.addOnDisposeCallback(J);_.w("kevlar_watch_while_v2")&&(J=_.Nh(_.Rc(),_.z2,function(m){UYs(c,m)}),this.addOnDisposeCallback(J));
SVe(this);hqs(this);dYo();this.onWatchScroll(_.D6(_.Rc().getState()));_.Ss("START_IN_FULL_WINDOW_MODE")&&this.JSC$20293_watchApi.dispatchEvent("yt-set-fullerscreen-styles")};
_.D(_.fh,_.DS);var SVe=function(J){J.JSC$20293_watchApi.registerActionHandler("yt-fullscreen-change-action",function(c){var m=J.JSC$20293_watchApi.isActive();c&&!m||_.Rc().dispatch(_.J7({type:"SET_IS_WATCH_FULLSCREEN",payload:{isWatchFullscreen:!!c}}))});
J.addOnDisposeCallback(function(){J.JSC$20293_watchApi.unregisterActionHandler("yt-fullscreen-change-action")})},hqs=function(J){var c,m;
_.N(function(b){if(b.nextAddress==1)return _.K(b,J.JSC$20293_watchApi.playerApi,2);c=b.yieldResult;m=function(){J.onFullerscreenEduClicked()};
c.addEventListener("onFullerscreenEduClicked",m);J.addOnDisposeCallback(function(){c.removeEventListener("onFullerscreenEduClicked",m)});
_.tD(b)})};
_.fh.prototype.onFullscreenChanged=function(J){var c=this,m;return _.N(function(b){if(b.nextAddress==1)return c.isFullscreen=!!_.yM(),_.K(b,c.JSC$20293_watchApi.playerApi,2);m=b.yieldResult;c.JSC$20293_miniplayerActive||m.setFauxFullscreen(c.isFullscreen);if(J&&(c.JSC$20293_watchApi.focusOnPlayer(),!c.fullerscreenEduButtonShownThisPlayback)){c.fullerscreenEduButtonShownThisPlayback=!0;var x=_.m7("yt-fullerscreen-edu-button-shown-count")||0;_.ct("yt-fullerscreen-edu-button-shown-count",x+1,31536E3);
c.updateFullerscreenEduButtonSubtleModeState()}_.tD(b)})};
var UYs=function(J,c){var m;_.N(function(b){if(b.nextAddress==1)return J.JSC$20293_miniplayerActive=c,_.K(b,J.JSC$20293_watchApi.playerApi,2);m=b.yieldResult;m.setFauxFullscreen(!J.JSC$20293_miniplayerActive&&J.isFullscreen);_.tD(b)})};
_.fh.prototype.onWatchScroll=function(J){var c=this,m,b;return _.N(function(x){if(x.nextAddress==1)return _.w("external_fullscreen_with_edu")?_.K(x,c.JSC$20293_watchApi.playerApi,2):x.return();m=x.yieldResult;b=J<=0;c.shouldShowFullerscreenEdu!==b&&(c.shouldShowFullerscreenEdu=b,m.updateFullerscreenEduButtonVisibility(!c.shouldShowFullerscreenEdu));_.tD(x)})};
_.fh.prototype.onFullerscreenEduClicked=function(){this.JSC$20293_watchApi.scrollWatchTo(186,!0);if(!this.fullerscreenEduButtonClickedThisPlayback){this.fullerscreenEduButtonClickedThisPlayback=!0;var J=_.m7("yt-fullerscreen-edu-button-click-count")||0;_.ct("yt-fullerscreen-edu-button-click-count",J+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState()}};
_.fh.prototype.updateFullerscreenEduButtonSubtleModeState=function(){var J=this,c,m,b,x,P,p;return _.N(function(t){if(t.nextAddress==1)return c=_.m7("yt-fullerscreen-edu-button-click-count")||0,m=_.m7("yt-fullerscreen-edu-button-shown-count")||0,b=_.c7("external_fullscreen_button_click_threshold"),x=_.c7("external_fullscreen_button_shown_threshold"),P=c>=b||m>=x,_.K(t,J.JSC$20293_watchApi.playerApi,2);p=t.yieldResult;p.updateFullerscreenEduButtonSubtleModeState(P);_.tD(t)})};
_.fh.prototype.disposeInternal=function(){_.DS.prototype.disposeInternal.call(this);var J=_.yM();_.w("kevlar_exit_fullscreen_leaving_watch")&&J&&_.BS(J)};
var dYo=function(){if(_.w("web_watch_add_viewport_meta_tag")){var J=document.querySelector("meta[name=viewport]"),c=document.head;c&&!J&&(J=document.createElement("meta"),J.name="viewport",J.content="width=device-width, initial-scale=1.0, viewport-fit=cover",c.appendChild(J))}};_.Yn=function(J){_.DS.call(this);var c=this;this.JSC$20297_watchApi=J;this.jobId=0;this.pendingRequestId=void 0;var m=this.JSC$20297_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){$YR(c)});
this.addOnDisposeCallback(function(){c.JSC$20297_watchApi.unsubscribeByKey(m)});
$YR(this)};
_.D(_.Yn,_.DS);var GNs=function(J){_.ft.cancelJob(J.jobId);J.pendingRequestId=void 0},$YR=function(J){GNs(J);
var c=yrs(J.JSC$20297_watchApi.getWatchNextResponse());if(c){var m=250,b,x=(b=_.L(c,_.Po$))==null?void 0:b.initialDelayMs;_.w("web_watch_updated_metadata_server_initial_delay")&&x&&(m=x);J.jobId=_.ft.addLowPriorityJob(function(){return J.fetchUpdatedMetadata(c)},m)}};
_.Yn.prototype.fetchUpdatedMetadata=function(J,c){var m=this,b,x,P,p,t,I,a,k,H,T,r,W,Y,Z,d;return _.N(function(G){switch(G.nextAddress){case 1:c&&(b={continuation:c});if(!_.w("web_get_updated_metadata_fantasy_panel_continuation_params")){G.jumpTo(2);break}x=_.BG().resolve(_.Tr);P="PAsports_fantasy";return _.K(G,x.isVisible(P,!0),3);case 3:G.yieldResult&&(a=(t=(p=x).getUpdatePanelContinuationData)==null?void 0:(I=t.call(p,P))==null?void 0:I.updatePanelContinuationRequest)&&(b||(b={}),b.clientParams=
{panelContinuationParams:{panelContinuation:a}});case 2:k=_.BG().resolve(_.zh);if(!k)return _.Xc(Error("hm")),G.return();H={};m.pendingRequestId=H;return _.K(G,_.ds(k,J,b),4);case 4:T=G.yieldResult;if(H!==m.pendingRequestId)return G.return();Y=(r=T)==null?void 0:(W=r.continuation)==null?void 0:W.timedContinuationData;((Z=Y)==null?0:Z.continuation)&&((d=Y)==null?0:d.timeoutMs)&&(m.jobId=_.ft.addLowPriorityJob(function(){return m.fetchUpdatedMetadata(J,Y.continuation)},Y.timeoutMs));
_.tD(G)}})};
_.Yn.prototype.disposeInternal=function(){_.DS.prototype.disposeInternal.call(this);GNs(this)};var Ef5=_.Q1(function(J){var c=_.Kq(function(){var b=J.data().videoId;if(J.active())b=_.lJ(b),_.BG().resolve(_.gu).resolveCommand(b);else{var x=J.playerApi(),P=x.getAvailableAudioTracks(),p,t,I=(p=J.sourceVideoConfig().audioTracks)==null?void 0:(t=p.find(function(a){return a.isDefaultForSource}))==null?void 0:t.id;
if(P=P.find(function(a){return a.getLanguageInfo().getId()===I}))x.setAudioTrack(P,!0),x.setCompositeParam({activeVideoId:b}),J.setActiveSourceId(b)}}),m={};
return _.C("ytw-composite-source-video-overlay",{class:_.pq("ytwCompositeSourceVideoOverlayHost",(m.ytwCompositeSourceVideoOverlayActive=J.active,m.ytwCompositeSourceVideoOverlayInteracting=J.interacting,m)),style:_.kx({left:function(){var b;return((b=J.data().topLeftCornerX)!=null?b:0)*100+"%"},
top:function(){var b;return((b=J.data().topLeftCornerY)!=null?b:0)*100+"%"},
width:function(){var b;return((b=J.data().width)!=null?b:0)*100+"%"},
height:function(){var b;return((b=J.data().height)!=null?b:0)*100+"%"}}),
"on:click":c},_.C("div",{class:"ytwCompositeSourceVideoOverlayOutline"}))},"nj");var vfr=_.Q1(function(J){var c=_.M(_.aO(function(){var p,t=(p=J.data().sources)==null?void 0:p.find(function(I){return I.isActive});
if(t)return t.videoId})),m=c.next().value,b=c.next().value;
c=_.M(_.K2(!1,void 0,"WI4BUb"));var x=c.next().value,P=c.next().value;return _.C("ytw-composite-video-overlay-renderer",{class:"ytwCompositeVideoOverlayRendererHost","on:mouseover":_.Kq(function(){P(!0)}),
"on:mouseout":_.Kq(function(){P(!1)})},_.C(_.n,{cond:function(){return J.data().sources},
then:function(p){return _.C(_.Te,{each:p},function(t){return _.C(Ef5,{data:t,active:function(){return t.videoId===m()},
setActiveSourceId:b,interacting:x,playerApi:J.playerApi,sourceVideoConfig:function(){return BE4(J.compositeVideoConfig(),t.videoId)}})})}}))},"oj");_.Rqp=function(J){_.DS.call(this);this.JSC$20313_watchApi=J;J=_.M(_.K2({},void 0,"gyAjHd"));this.compositeVideoOverlayRenderer=J.next().value;this.setCompositeVideoOverlayRenderer=J.next().value;J=_.M(_.K2({},void 0,"U5hcq"));this.compositeVideoConfig=J.next().value;this.setCompositeVideoConfig=J.next().value;OBo(this);AuS(this)};
_.D(_.Rqp,_.DS);var OBo=function(J){var c=J.JSC$20313_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){AuS(J)});
J.addOnDisposeCallback(function(){J.JSC$20313_watchApi.unsubscribeByKey(c)})},ofS=function(J){var c;
return _.N(function(m){if(m.nextAddress==1)return _.K(m,J.JSC$20313_watchApi.playerApi,2);c=m.yieldResult;c.setCompositeVideoOverlayRendererComponent(J.container);_.tD(m)})},QXS=function(J){var c;
return _.N(function(m){if(m.nextAddress==1)return _.K(m,J.JSC$20313_watchApi.playerApi,2);c=m.yieldResult;c.setCompositeVideoOverlayRendererComponent(void 0);_.tD(m)})},eqe=function(J){var c,m;
return _.N(function(b){if(b.nextAddress==1)return _.K(b,J.JSC$20313_watchApi.playerApi,2);c=b.yieldResult;J.container=document.createElement("div");m=_.Dc(J.container,function(){return _.C(vfr,{data:J.compositeVideoOverlayRenderer,compositeVideoConfig:J.compositeVideoConfig,playerApi:c})});
J.addOnDisposeCallback(m);_.tD(b)})},AuS=function(J){var c,m,b,x,P,p,t,I;
_.N(function(a){return a.nextAddress==1?(c=J.JSC$20313_watchApi.getPlayerResponse(),P=_.L((m=c)==null?void 0:(b=m.overlay)==null?void 0:(x=b.playerControlsOverlayRenderer)==null?void 0:x.compositeVideoOverlay,Ojf),I=(p=c)==null?void 0:(t=p.playerConfig)==null?void 0:t.compositeVideoConfig,P&&J.setCompositeVideoOverlayRenderer(P),I&&J.setCompositeVideoConfig(I),P&&I?J.container?a.jumpTo(6):_.K(a,eqe(J),6):jXF(J)?_.K(a,QXS(J),0):a.jumpTo(0)):jXF(J)?a.jumpTo(0):_.K(a,ofS(J),0)})},jXF=function(J){var c;
return!((c=J.container)==null||!c.parentElement)};
_.Rqp.prototype.disposeInternal=function(){jXF(this)&&QXS(this);_.DS.prototype.disposeInternal.call(this)};_.gfu=function(J){_.DS.call(this);var c=this;this.JSC$20319_watchApi=J;var m=this.JSC$20319_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){var b=c.JSC$20319_watchApi.getPlayerResponse();if(b){var x,P;if(b=_.L((x=b.endscreen)==null?void 0:(P=x.endscreenRenderer)==null?void 0:P.hideButton,_.sc)){var p;(p=c.setEndscreenHideButton)==null||p.call(c,b);FWu(c)}}});
this.addOnDisposeCallback(function(){c.JSC$20319_watchApi.unsubscribeByKey(m)});
J=_.M(_.K2({},void 0,"PPHRb"));this.endscreenHideButton=J.next().value;this.setEndscreenHideButton=J.next().value;lE4(this);yuf(this);BqR(this)};
_.D(_.gfu,_.DS);var FWu=function(J){var c,m;_.N(function(b){if(b.nextAddress==1)return J.creatorEndscreenHideButtonContainer?b.return():_.K(b,J.JSC$20319_watchApi.playerApi,2);c=b.yieldResult;J.creatorEndscreenHideButtonContainer=document.createElement("div");_.oa(J.creatorEndscreenHideButtonContainer,!1);c.setCreatorEndscreenHideButton(J.creatorEndscreenHideButtonContainer);m=_.Dc(J.creatorEndscreenHideButtonContainer,function(){return _.C(_.LK,{data:J.endscreenHideButton,useOutlinedIcon:!0})});
J.addOnDisposeCallback(function(){m();c.setCreatorEndscreenHideButton(void 0)});
_.tD(b)})},lE4=function(J){var c,m;
_.N(function(b){if(b.nextAddress==1)return _.K(b,J.JSC$20319_watchApi.playerApi,2);c=b.yieldResult;m=function(){J.creatorEndscreenHideButtonContainer&&_.oa(J.creatorEndscreenHideButtonContainer,!0)};
c.addEventListener("endscreenelementshown",m);J.addOnDisposeCallback(function(){c.removeEventListener("endscreenelementshown",m)});
_.tD(b)})},yuf=function(J){var c=function(){J.creatorEndscreenHideButtonContainer&&_.oa(J.creatorEndscreenHideButtonContainer,!1)},m=J.JSC$20319_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",c),b=J.JSC$20319_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",c);
J.addOnDisposeCallback(function(){J.JSC$20319_watchApi.unsubscribeByKey(m);J.JSC$20319_watchApi.unsubscribeByKey(b)})},BqR=function(J){J.JSC$20319_watchApi.registerActionHandler("yt-change-creator-endscreen-visibility-command",function(c){var m=_.L(c,hHS);
J.JSC$20319_watchApi.playerApi.then(function(b){b==null||b.setCreatorEndscreenVisibility(!!m.hide)})});
J.addOnDisposeCallback(function(){J.JSC$20319_watchApi.unregisterActionHandler("yt-change-creator-endscreen-visibility-command")})};_.cj1=function(J){_.DS.call(this);this.JSC$20325_watchApi=J;Jjp(this)};
_.D(_.cj1,_.DS);var Jjp=function(J){var c,m;_.N(function(b){if(b.nextAddress==1)return _.K(b,J.JSC$20325_watchApi.playerApi,2);c=b.yieldResult;m=function(x){_.Rc().dispatch(_.J7({type:"SET_IS_WATCH_RETRO_MODE",payload:{isWatchRetroMode:x}}))};
c.addEventListener("onRetroModeChanged",m);J.addOnDisposeCallback(function(){c.removeEventListener("onRetroModeChanged",m)});
_.tD(b)})};var Yj=0,fm=0,XC=0;var mmh;mmh=new Map([["10",6E5],["15",9E5],["20",12E5],["30",18E5],["45",27E5],["60",36E5]]);_.Xu=function(J){_.DS.call(this);this.JSC$20338_watchApi=J;this.selectedOption="Off";this.pauseAutonavPlayback=!1;this.adjustmentsCount=this.presetPauseSchedulerId=this.presetFadeSchedulerId=0;bnp(this)};
_.D(_.Xu,_.DS);
var bnp=function(J){var c,m,b;_.N(function(x){if(x.nextAddress==1)return _.K(x,J.JSC$20338_watchApi.playerApi,2);c=x.yieldResult;if(J.isDisposed())return x.return();J.sessionStorage=_.Smo("yt-sleep-timer");J.sessionStorage||_.qz(new _.w3("SessionStorage for Sleep Timer is undefined."));((m=J.sessionStorage)==null?void 0:m.get("yt-sleep-timer"))==="true"&&(pqr(),(b=J.sessionStorage)==null||b.remove("yt-sleep-timer"),c.syncVolume());xmp(J,c);V1h(J,c);Pne(J,c);_.tD(x)})},xmp=function(J,c){var m=function(a){J.onSleepTimerSettingsChanged(a,
c)},b=function(a){J.onPlayerStateChange(a,c)},x=function(){J.onLoopChange(c)},P=function(){J.onCloseMiniplayer(c)},p=function(){xNr(c,(0,_.y4)(),Nto(c),J.selectedOption==="End of video",c.getPlayerState()!==1)},t=function(){J.onSeekComplete(c)},I=function(){_.ft.cancelJob(fm);
var a=c.getCurrentTime()>=c.getDuration(),k=J.selectedOption==="End of video"||J.selectedOption==="End of playlist"&&!clR(J.playlistId);a&&k&&M14(J,c)};
c.addEventListener("onSleepTimerSettingsChanged",m);c.addEventListener("onLoopChange",x);c.addEventListener("onLoopRangeChange",x);c.addEventListener("onStateChange",b);c.addEventListener("onCloseMiniplayer",P);c.addEventListener("onSleepTimerFeatureAvailable",p);c.addEventListener("SEEK_COMPLETE",t);c.addEventListener("onAdStart",I);J.addOnDisposeCallback(function(){c.removeEventListener("onSleepTimerSettingsChanged",m);c.removeEventListener("onLoopChange",x);c.removeEventListener("onLoopRangeChange",
x);c.removeEventListener("onStateChange",b);c.removeEventListener("onCloseMiniplayer",P);c.removeEventListener("onSleepTimerFeatureAvailable",p);c.removeEventListener("SEEK_COMPLETE",t);c.removeEventListener("onAdStart",I)})},V1h=function(J,c){var m=J.JSC$20338_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){a:{var b=c.getVideoData().video_id,x,P=(x=gFe(J.JSC$20338_watchApi))==null?void 0:x.playlistId;
J.pauseAutonavPlayback&&(c.pauseVideo(),c.syncVolume(),J.pauseAutonavPlayback=!1);if(J.selectedOption==="End of video"&&b!==J.videoId)Zk(J,c);else{if(J.selectedOption==="End of playlist"){x=clR(J.playlistId);if(P!==J.playlistId){Zk(J,c);break a}x?x&&pM1(J,c):NQf(J,c)}J.videoId=b;J.playlistId=P}}});
J.addOnDisposeCallback(function(){J.JSC$20338_watchApi.unsubscribeByKey(m)})},Pne=function(J,c){var m=_.BG().resolve(_.f9),b=_.Nh(m,_.KMm,function(P){P&&J.selectedOption!=="Off"&&Zk(J,c)}),x=J.JSC$20338_watchApi.subscribeToActiveChanged(function(P){var p,t;
return _.N(function(I){if(I.nextAddress==1)return _.K(I,_.Mh().navigationFinishPromise,2);p=!_.CH$();t=_.BG().resolve(_.Uo).isMiniplayerActive();P||!um(J.selectedOption)||t||p||Zk(J,c);_.tD(I)})},!1);
m=_.Nh(m,function(P){return P.entities.playlistLoopStateEntity||{}},function(P){P=P===void 0?{}:P;
var p=JlF(J.JSC$20338_watchApi);if(p){var t;((t=P[p])==null?void 0:t.state)==="PLAYLIST_LOOP_STATE_ALL"&&um(J.selectedOption)&&Zk(J,c)}});
J.addOnDisposeCallback(b);J.addOnDisposeCallback(m);J.addOnDisposeCallback(x)};
_.Xu.prototype.onSleepTimerSettingsChanged=function(J,c){switch(J){case "Off":this.selectedOption!=="Off"&&Zk(this,c);break;case "End of video":case "End of playlist":t1h(this,J,c);break;default:t1h(this,J,c,mmh.get(J))}};
_.Xu.prototype.onLoopChange=function(J){(J.getLoopVideo()||J.getLoopRange())&&um(this.selectedOption)&&Zk(this,J)};
_.Xu.prototype.onCloseMiniplayer=function(J){um(this.selectedOption)&&Zk(this,J)};
var t1h=function(J,c,m,b){ITr(J,m);J.selectedOption=c;J.videoId=m.getVideoData().video_id;J.playlistId="";var x;(x=J.sessionStorage)==null||x.set("yt-sleep-timer","true");J.adjustmentsCount++;xNr(m,(0,_.y4)(),Nto(m),J.selectedOption==="End of video");if(J.selectedOption==="End of video")NQf(J,m),KuR(J,m);else if(J.selectedOption==="End of playlist"){KuR(J,m);var P,p;J.playlistId=(p=(P=gFe(J.JSC$20338_watchApi))==null?void 0:P.playlistId)!=null?p:"";clR(J.playlistId)||NQf(J,m)}else b&&(J.presetFadeSchedulerId=
_.at(_.ft,function(){PtS(m,15E3)},b-15E3),J.presetPauseSchedulerId=_.at(_.ft,function(){M14(J,m)},b),VVs(m,(0,_.y4)(),b))},M14=function(J,c){if(J.JSC$20338_watchApi.isActive()){var m={dismissDialogEndpoint:{}};
var b={commandExecutorCommand:{commands:[m,{watchPlayerOverflowMenuCommand:{openMenuItemKey:"menu_item_sleep_timer"}}]}};m={buttonViewModel:{title:_.CX("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:m}}};b={buttonViewModel:{title:_.CX("SLEEP_TIMER_ADD_TIME_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:b}}};var x={dialogHeaderViewModel:{headline:{content:_.CX("SLEEP_TIMER_ENDED_TITLE")}}},
P={basicContentViewModel:{paragraphs:[{text:{content:_.CX("SLEEP_TIMER_ENDED_TEXT")}}]}};m={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:x,content:P,footer:{panelFooterViewModel:{primaryButton:m,secondaryButton:b,shouldHideDivider:!0}}}}}}};_.BG().resolve(_.gu).resolveCommand(m,{form:{element:J}})}else pqr();CnR(J,!1);aTp(J,c);c.pauseVideo();_.AZ.getInstance().getState()===2&&c.getPlayerState()===5&&(J.pauseAutonavPlayback=!0)},Zk=function(J,c){CnR(J,!0);
aTp(J,c);pqr()},aTp=function(J,c){ITr(J,c);
J.selectedOption="Off";J.videoId="";J.playlistId="";J.adjustmentsCount=0;var m;(m=J.sessionStorage)==null||m.remove("yt-sleep-timer");_.ft.cancelJob(Yj);c.resetSleepTimerMenuSettings()},CnR=function(J,c){c={timer_length_adjustment_times_during_session:J.adjustmentsCount-1,
is_session_cancelled:c};switch(J.selectedOption){case "Off":c.option_type="SLEEP_TIMER_OPTION_TYPE_OFF";break;case "End of video":c.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_VIDEO";break;case "End of playlist":c.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_PLAYLIST";break;default:c.option_type="SLEEP_TIMER_OPTION_TYPE_FIXED_MINUTES_DURATION",c.option_duration_in_minutes=mmh.get(J.selectedOption)/6E4}_.zB("sleepTimerSessionFinishEvent",c)};
_.Xu.prototype.onPlayerStateChange=function(J,c){J===1?xNr(c,(0,_.y4)(),Nto(c),this.selectedOption==="End of video"):J===0?(_.ft.cancelJob(fm),c.setVideoTimeLeft(bjR(0,0))):J===2&&_.ft.cancelJob(fm);this.selectedOption==="End of video"?J===0?M14(this,c):J===2&&MVs(c):this.selectedOption!=="End of playlist"||clR(this.playlistId)||(J===0?M14(this,c):J===2&&MVs(c))};
_.Xu.prototype.onSeekComplete=function(J){J.getPlayerState()===2&&xNr(J,(0,_.y4)(),Nto(J),this.selectedOption==="End of video",!0)};
_.Xu.prototype.onCueRangeEnter=function(J,c){J==="sleep-timer-fade-audio"&&PtS(c,(c.getDuration()-c.getProgressState().current)*1E3)};
_.Xu.prototype.onCueRangeExit=function(J,c){J==="sleep-timer-fade-audio"&&c.getPlayerState()!==0&&MVs(c,!0)};
var NQf=function(J,c){c.addCueRange("sleep-timer-fade-audio",c.getDuration()-15,c.getDuration());c.addEventListener("onCueRangeEnter",function(m){J.onCueRangeEnter(m,c)});
c.addEventListener("onCueRangeExit",function(m){J.onCueRangeExit(m,c)})},pM1=function(J,c){c.removeCueRange("sleep-timer-fade-audio");
c.removeEventListener("onCueRangeEnter",function(m){J.onCueRangeEnter(m,c)});
c.removeEventListener("onCueRangeExit",function(m){J.onCueRangeExit(m,c)})},ITr=function(J,c){um(J.selectedOption)?pM1(J,c):(_.ft.cancelJob(J.presetPauseSchedulerId),_.ft.cancelJob(J.presetFadeSchedulerId),J.presetPauseSchedulerId=0,J.presetFadeSchedulerId=0);
MVs(c,!0)},KuR=function(J,c){c.setLoop(!1);
c.setLoopVideo(!1);c.setLoopRange(null);(J=JlF(J.JSC$20338_watchApi))&&_.BG().resolve(_.f9).dispatch(_.It("playlistLoopStateEntity",J,{key:J,state:"PLAYLIST_LOOP_STATE_NONE"}))};_.nms=function(J){_.DS.call(this);this.JSC$20341_watchApi=J;kIr(this);HnR(this);in5(this);J=J.getRoot();if(J.is==="ytd-watch-flexy"||J.is==="ytd-watch-grid")J.onTheaterReduxValueUpdate(this.getState());this.getState()&&_.rru();_.w("web_watch_log_theater_mode_cookie_state")&&_.ar.get("wide","0")==="1"&&_.$W3("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED")};
_.D(_.nms,_.DS);var kIr=function(J){var c,m;_.N(function(b){if(b.nextAddress==1)return _.K(b,J.JSC$20341_watchApi.playerApi,2);c=b.yieldResult;m=function(x){TQo(J,!!x)};
c.addEventListener("SIZE_CLICKED",m);J.addOnDisposeCallback(function(){c.removeEventListener("SIZE_CLICKED",m)});
_.tD(b)})},HnR=function(J){J.JSC$20341_watchApi.registerActionHandler("yt-toggle-theater-mode",function(c,m){TQo(J,c,m===void 0?!0:m)});
J.addOnDisposeCallback(function(){J.JSC$20341_watchApi.unregisterActionHandler("yt-toggle-theater-mode")})};
_.nms.prototype.getState=function(){return _.qx(_.Rc().getState())};
var TQo=function(J,c,m){m=m===void 0?!0:m;var b,x,P,p=_.w("enable_player_resize_transition")&&!!J.JSC$20341_watchApi.getWatchNextResponse()&&!((b=J.JSC$20341_watchApi.getWatchNextResponse())==null?0:(x=b.contents)==null?0:(P=x.twoColumnWatchNextResults)==null?0:P.conversationBar);_.GRF(function(){_.Rc().dispatch(_.J7({type:"SET_IS_THEATER_MODE",payload:{isTheaterMode:c}}));_.w("theater_mode_scroll_to_top_killswitch")||J.JSC$20341_watchApi.scrollWatchTo(0,!1);_.yM()&&_.w("external_fullscreen")&&_.BS(document.documentElement);
in5(J);m&&_.kK("wide",c?"1":"0",-1);_.m9(J.JSC$20341_watchApi.getRoot(),"yt-close-popup-action",["yt-tooltip-renderer"]);J.JSC$20341_watchApi.dispatchEvent("yt-set-theater-mode-enabled",{enabled:c});c&&_.rru()},{shouldWrap:p})},in5=function(J){var c;
_.N(function(m){if(m.nextAddress==1)return _.K(m,J.JSC$20341_watchApi.playerApi,2);c=m.yieldResult;c.setSizeStyle(!0,J.getState());_.tD(m)})};var sYh=function(J){_.DS.call(this);var c=this;this.playerApi=J;this.timeToPanelSyncKeyMap={};var m;if(J==null?0:(m=J.isReady)==null?0:m.call(J)){m=_.Nh(_.BG().resolve(_.f9),function(x){return x.entities.timedMarkersListSyncEntity||{}},function(x,P){x=x===void 0?{}:x;
P=P===void 0?{}:P;for(var p=_.M(Object.keys(P)),t=p.next();!t.done;t=p.next())t=t.value,x[t]!==P[t]&&wMS(c,P[t]);P=_.M(Object.keys(x));for(p=P.next();!p.done;p=P.next())p=p.value,t=x[p],c.timeToPanelSyncKeyMap[p]&&rjR(c,t)});
this.addOnDisposeCallback(m);var b=function(x){c.onCueRangeEnter(x)};
J.addEventListener("onCueRangeEnter",b);this.addOnDisposeCallback(function(){var x;(x=J.removeEventListener)==null||x.call(J,"onCueRangeEnter",b)})}};
_.D(sYh,_.DS);
var rjR=function(J,c){var m,b;if((m=J.playerApi)==null?0:(b=m.isReady)==null?0:b.call(m)){var x;if((m=c==null?void 0:(x=c.timedListData)==null?void 0:x.sections)&&c!=null&&c.key)for(x=_.M(m),m=x.next();!m.done;m=x.next())if(m=m.value,m.timedSyncDataList&&m.sectionId)for(b=0;b<m.timedSyncDataList.length;b++){var P=m.timedSyncDataList[b];P.syncItemId&&J.playerApi.addCueRange(m.sectionId+"_"+c.key+"_"+P.syncItemId,Number(P.videoTimeMs)/1E3,b===m.timedSyncDataList.length-1?0x8000000000000:Number(m.timedSyncDataList[b+
1].videoTimeMs)/1E3)}}},wMS=function(J,c){var m,b;
if((m=J.playerApi)==null?0:(b=m.isReady)==null?0:b.call(m)){var x;if((m=c==null?void 0:(x=c.timedListData)==null?void 0:x.sections)&&c!=null&&c.key)for(x=_.M(m),m=x.next();!m.done;m=x.next())if(m=m.value,m.timedSyncDataList&&m.sectionId){b=_.M(m.timedSyncDataList);for(var P=b.next();!P.done;P=b.next())P=P.value,P.syncItemId&&J.playerApi.removeCueRange(m.sectionId+"_"+c.key+"_"+P.syncItemId)}}};
sYh.prototype.onCueRangeEnter=function(J){for(var c=_.M(Object.keys(this.timeToPanelSyncKeyMap)),m=c.next();!m.done;m=c.next()){m=m.value;var b=_.M(J.split("_"+m+"_")),x=b.next().value;b=b.next().value;if(x&&b){J=_.BG().resolve(_.f9);c=this.timeToPanelSyncKeyMap[m];var P=_.wNt(J.getState(),c);m=Lue(m,x,b);if(m===-1)break;m={activeSyncId:b,activeItemIndex:m,activeSectionInfo:{sectionIdentifier:x}};P?J.dispatch(_.DI("markersEngagementPanelSyncEntity",c,m)):J.dispatch(_.It("markersEngagementPanelSyncEntity",
c,Object.assign({},{key:c},m)));break}}};
var Lue=function(J,c,m){var b=_.BG().resolve(_.f9),x,P;J=(x=ipR(b.getState(),J))==null?void 0:(P=x.timedListData)==null?void 0:P.sections;if(!J)return-1;x=0;P=_.M(J);for(J=P.next();!J.done;J=P.next()){J=J.value;b=J.timedSyncDataList||[];if(J.sectionId===c)return c=b.findIndex(function(p){return p.syncItemId===m}),c===-1?c:x+c;
x+=b.length}return-1};_.z3r=function(J){_.DS.call(this);var c=this;this.JSC$20353_watchApi=J;this.unresolvedCommands=[];this.JSC$20353_watchApi.registerActionHandler("yt-update-timed-markers-sync-observer-command",function(m){DmF(c,m)});
this.addOnDisposeCallback(function(){c.JSC$20353_watchApi.unregisterActionHandler("yt-update-timed-markers-sync-observer-command")});
Wuu(this)};
_.D(_.z3r,_.DS);var Wuu=function(J){var c;_.N(function(m){if(m.nextAddress==1)return _.K(m,J.JSC$20353_watchApi.playerApi,2);c=m.yieldResult;if(J.isDisposed())return m.return();J.timedSyncObserver=new sYh(c);J.unresolvedCommands.length&&(J.unresolvedCommands.forEach(function(b){return DmF(J,b)}),J.unresolvedCommands=[]);
_.Kc(J,J.timedSyncObserver);_.tD(m)})},DmF=function(J,c){if(J.timedSyncObserver){var m=_.L(c,$NR);
if(m&&m.timedSyncEntityKey&&m.panelSyncEntityKey){J=J.timedSyncObserver;c=m.timedSyncEntityKey;var b=m.panelSyncEntityKey;m=!!m.isEnabled;m=m===void 0?!0:m;var x=_.BG().resolve(_.f9);x=ipR(x.getState(),c);m?J.timeToPanelSyncKeyMap[c]||(J.timeToPanelSyncKeyMap[c]=b,rjR(J,x)):(delete J.timeToPanelSyncKeyMap[c],wMS(J,x))}}else J.unresolvedCommands.push(c)};var uah=_.Q1(function(J){var c=J.data,m=J.maybeLogSmartSkipClientData,b=_.oN("ytw-timely-action-view-model");_.vg(b,function(){return c().rendererContext},{onTap:function(k,H){H({disableClickTracking:!0})}});
var x=null,P=null,p=_.w("web_enable_auto_focus_for_timely_action_button"),t=function(){x=document.activeElement},I=function(){c().smartSkipMetadata&&(x=document.activeElement,_.pxR(function(){return P}))},a=function(k){if(c().smartSkipMetadata&&(!k||k.key!=="Enter")){x&&x.isConnected&&(_.pxR(function(){return x}),x=null);
var H;(H=P)==null||H.blur()}};
J=_.Kq(function(){m==null||m(!0,c());return!1});
_.gv(b,{visibilityCallback:function(k){if(p)k?P&&c().smartSkipMetadata&&(I(),document.addEventListener("focusin",t)):(document.removeEventListener("focusin",t),a());else if(k&&_.w("web_ephemeral_actions")){k=_.G9(c().rendererContext);var H=Number(c().maxVisibleDurationMilliseconds),T,r=(T=_.L(c().rendererContext,_.KO))==null?void 0:T.label;k&&H&&r&&(T={label:r,command:k,durationMs:H},_.BG().resolve(_.Pn).enqueue(T))}},
showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}});_.WG(function(){if(p){var k;if((P=(k=b.value)==null?void 0:k.querySelector("button"))&&c().smartSkipMetadata){var H;(H=b.value)==null||H.addEventListener("keydown",a)}}});
_.f2(function(){p&&(P&&c().smartSkipMetadata&&P.removeEventListener("keydown",a),document.removeEventListener("focusin",t),a())});
return _.C("ytw-timely-action-view-model",{class:"ytwTimelyActionViewModelHost",el:b,"on:click":J},_.C(_.wi,{data:function(){return c().content}},{buttonViewModel:_.XU}))},"pj");var fTr=_.Q1(function(J){var c=J.data,m=J.playerApi,b=_.BG().resolve(_.vja);J=_.M(_.aO(function(){c()}));
var x=J.next().value,P=J.next().value,p=function(){return I9p(c(),x())},t=function(a,k){var H,T,r=(H=_.L(k==null?void 0:k.rendererContext,_.aA))==null?void 0:(T=H.loggingDirectives)==null?void 0:T.trackingParams;
if((k=k==null?void 0:k.smartSkipMetadata)&&k.loggingData&&(T=k.loggingData,k=T.algorithmId,H=T.startMilliseconds,T=T.endMilliseconds,k&&H!==void 0&&T!==void 0)){var W,Y;a={smartSkipData:Object.assign({},{versionName:k,startMediaTimeMs:H,endMediaTimeMs:T},a&&{userInteractionMediaTimeMs:(Math.floor(((W=_.ep())==null?void 0:(Y=W.getPlayer())==null?void 0:Y.getCurrentTime())||0)*1E3).toString()})};W=_.Y3();var Z;r&&(Z=_.n7(r));W&&Z&&_.on(W,Z,a)}},I=function(a,k){var H=I9p(c(),a);
if(H){var T=_.L(H,Z6),r;if(r=k)r=m(),H=_.L(H,Z6),r=H!=null&&H.smartSkipMetadata?!(r==null?0:r.isSameMarkerTypeVisible((H==null?void 0:H.smartSkipMetadata.markerKey)||"")):!0;if(r){var W,Y;(T==null?0:(W=T.smartSkipMetadata)==null?0:(Y=W.loggingData)==null?0:Y.isCounterfactual)||(t(!1,T),P(a))}else k||x()!==a||P(void 0)}};
_.ui(function(){var a=c().timelyActions;if(a){a=_.M(a);for(var k=a.next();!k.done;k=a.next()){k=_.L(k.value,Z6);var H=void 0;(H=k)!=null&&H.cueRangeId&&b.timelyActionsMap.set(k.cueRangeId,I)}_.f2(function(){b.timelyActionsMap.clear()})}},"Z1Qwtc");
return _.C("ytw-timely-actions-overlay-view-model",{class:"ytwTimelyActionsOverlayViewModelHost"},_.C(_.wi,{data:p},{timelyActionViewModel:function(a){return _.C(uah,{data:a.data,maybeLogSmartSkipClientData:function(){t(!0,_.L(p(),Z6))}})}}))},"qj");_.XMf=function(J){_.DS.call(this);this.JSC$20365_watchApi=J;J=_.M(_.K2({},void 0,"pLDp2"));this.timelyActionsOverlay=J.next().value;this.setTimelyActionsOverlay=J.next().value;Y6p(this)};
_.D(_.XMf,_.DS);var Y6p=function(J){var c,m,b,x;_.N(function(P){if(P.nextAddress==1)return ZnR(J),q61(J),J.timelyActionsContainer=document.createElement("div"),_.K(P,J.JSC$20365_watchApi.playerApi,2);c=P.yieldResult;(b=(m=c).insertTimelyActionUi)==null||b.call(m,J.timelyActionsContainer);x=_.Dc(J.timelyActionsContainer,function(){return _.C(fTr,{data:J.timelyActionsOverlay,playerApi:c})});
J.addOnDisposeCallback(x);_.tD(P)})},q61=function(J){var c=J.JSC$20365_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){ZnR(J)});
J.addOnDisposeCallback(function(){J.JSC$20365_watchApi.unsubscribeByKey(c)})},ZnR=function(J){var c=J.JSC$20365_watchApi.getWatchNextResponse();
if(c){var m,b;if(c=_.L((m=c.playerOverlays)==null?void 0:(b=m.playerOverlayRenderer)==null?void 0:b.timelyActionsOverlayViewModel,GVR)){var x;(x=J.setTimelyActionsOverlay)==null||x.call(J,c)}}};_.S6h=function(J){_.DS.call(this);this.JSC$20369_watchApi=J;Um1(this)};
_.D(_.S6h,_.DS);var Um1=function(J){var c,m;_.N(function(b){if(b.nextAddress==1)return _.K(b,J.JSC$20369_watchApi.playerApi,2);c=b.yieldResult;m=function(x){_.p7.instance.resolveCommand({openPopupAction:{popup:{notificationActionRenderer:_.L(x,_.Qoo)},popupType:"TOAST"}})};
c.addEventListener("onYtShowToast",m);J.addOnDisposeCallback(function(){c.removeEventListener("onYtShowToast",m)});
_.tD(b)})};var h3R,GIF,dms,$me,Ajo,vmf,Onr,omo,QYo;h3R=!1;_.Em1=function(J){_.DS.call(this);this.JSC$20372_watchApi=J;this.fullscreen=this.theater=!1;dms(this);$me(this);GIF(this)};
_.D(_.Em1,_.DS);GIF=function(J){var c,m,b;_.N(function(x){if(x.nextAddress==1)return _.K(x,J.JSC$20372_watchApi.playerApi,2);c=x.yieldResult;if(J.isDisposed())return x.return();m=J.JSC$20372_watchApi.getElement("CINEMATICS");if(!m)return x.return();J.JSC$20372_cinematicController=new _.bm(m,c);_.Kc(J,J.JSC$20372_cinematicController);_.a8p(J.JSC$20372_cinematicController);vmf(J,_.tJo());b=J.JSC$20372_cinematicController.subscribe("CINEMATICS_ALLOWED_CHANGED",function(P){Onr(J,P)});
J.addOnDisposeCallback(function(){J.JSC$20372_watchApi.unsubscribeByKey(b)});
Ajo(J);Onr(J,J.JSC$20372_cinematicController.isAllowed());_.R34(J,J.fullscreen,J.theater);omo(J);_.tD(x)})};
dms=function(J){var c=J.JSC$20372_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Ajo(J)});
J.addOnDisposeCallback(function(){J.JSC$20372_watchApi.unsubscribeByKey(c)})};
$me=function(J){var c,m;_.N(function(b){if(b.nextAddress==1)return _.K(b,J.JSC$20372_watchApi.playerApi,2);c=b.yieldResult;m=function(x){vmf(J,x)};
c.addEventListener("cinematicSettingsToggleChange",m);J.addOnDisposeCallback(function(){c.removeEventListener("cinematicSettingsToggleChange",m)});
_.tD(b)})};
Ajo=function(J){var c=J.JSC$20372_watchApi.getWatchNextResponse(),m;c=_.L(c==null?void 0:(m=c.pageVisualEffects)==null?void 0:m[0],_.wG);var b;(b=J.JSC$20372_cinematicController)==null||_.Heh(b,c)};
vmf=function(J,c){var m;(m=J.JSC$20372_cinematicController)==null||_.kl4(m,c);QYo(J)};
Onr=function(J,c){var m;_.N(function(b){if(b.nextAddress==1)return _.w("kevlar_watch_cinematics_invisible")&&(c=!1),_.K(b,J.JSC$20372_watchApi.playerApi,2);m=b.yieldResult;m.updateCinematicSettings(c);QYo(J);_.tD(b)})};
omo=function(J){var c=_.HA();if(_.w("kevlar_measure_ambient_mode_idle")&&!c.getFlag(192)&&!h3R){h3R=!0;var m=_.rv(_.ft,function(){_.BG().resolve(_.qmR).start(1E4)},5E3);
J.addOnDisposeCallback(function(){_.ft.cancelJob(m);_.BG().resolve(_.qmR).stop()})}};
_.R34=function(J,c,m){J.fullscreen=c;J.theater=m;var b;(b=J.JSC$20372_cinematicController)==null||b.setFullscreen(J.fullscreen,J.theater);if(_.w("web_cinematics_pausing")&&!document.documentElement.hasAttribute("dark"))if(J.theater||J.fullscreen){var x;(x=J.JSC$20372_cinematicController)==null||_.ieR(x)}else if((J=J.JSC$20372_cinematicController)!=null){var P;(P=J.currentCinematicEffect)==null||P.pause()}};
QYo=function(J){if(_.w("web_cinematic_theater_mode")||_.w("web_cinematic_fullscreen")){var c;J.JSC$20372_watchApi.getRoot().toggleCinematicsActive(!((c=J.JSC$20372_cinematicController)==null||!c.isEnabled()))}};_.lTR=function(J){_.DS.call(this);var c=this;this.JSC$20375_watchApi=J;this.commentsReady=!1;this.setCommentsJobId=0;J=_.Nh(_.Rc(),_.D6,function(){e3R(c)});
this.addOnDisposeCallback(J);var m=this.JSC$20375_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){jYe(c)}),b=this.JSC$20375_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){jYe(c)});
this.addOnDisposeCallback(function(){c.JSC$20375_watchApi.unsubscribeByKey(m);c.JSC$20375_watchApi.unsubscribeByKey(b)});
var x=function(){_.w("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&Fuo(c,"false")};
this.JSC$20375_watchApi.getRoot().addEventListener("yt-page-data-will-update",x);this.addOnDisposeCallback(function(){c.JSC$20375_watchApi.getRoot().removeEventListener("yt-page-data-will-update",x)});
jYe(this)};
_.D(_.lTR,_.DS);var jYe=function(J){J.commentsReady=!1;_.ft.cancelJob(J.setCommentsJobId);J.setCommentsJobId=_.rv(_.ft,function(){e3R(J)},1E3)},e3R=function(J){if(!J.commentsReady){_.Y2("cmi");
_.ft.cancelJob(J.setCommentsJobId);var c,m,b,x,P=(c=J.JSC$20375_watchApi.getWatchNextResponse())==null?void 0:(m=c.contents)==null?void 0:(b=m.twoColumnWatchNextResults)==null?void 0:(x=b.results)==null?void 0:x.results.contents;c=void 0;if(P&&P.length)for(P=_.M(P),m=P.next();!m.done;m=P.next())if(m=m.value,x=b=void 0,((b=m)==null?void 0:(x=b.itemSectionRenderer)==null?void 0:x.sectionIdentifier)==="comment-item-section"){_.w("web_watch_provide_undefined_comments")?c=m.itemSectionRenderer:J.JSC$20375_watchApi.provideRenderingData("COMMENTS",
m.itemSectionRenderer);Fuo(J,"true");break}_.w("web_watch_provide_undefined_comments")&&J.JSC$20375_watchApi.provideRenderingData("COMMENTS",c);J.commentsReady=!0;J.JSC$20375_watchApi.dispatchEvent("yt-watch-comments-ready")}},Fuo=function(J,c){var m;
(m=J.JSC$20375_watchApi.getElement("COMMENTS"))==null||m.setAttribute("canScheduleJobs",c)};_.h9=function(J){_.DS.call(this);var c=this;this.JSC$20378_watchApi=J;this.providePlayerJobId=this.provideWatchNextJobId=this.provideRichGridJobId=0;this.directlyProvideComments=_.w("swatcheroo_directly_provide_comments");this.provideWatchNextSecondaryResults=_.w("web_watch_provide_secondary_results_renderer");this.swatcherooProvideAllDataOnScheduledJob=_.w("swatcheroo_provide_all_data_on_scheduled_job");this.provideAllDataDelayMs=_.c7("swatcheroo_provide_all_data_delay_ms",250);if(this.swatcherooProvideAllDataOnScheduledJob)yjR(this);
else{var m=this.JSC$20378_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){qO(c);Ut(c)}),b=this.JSC$20378_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){SS(c);
Ut(c)});
this.JSC$20378_watchApi.getRoot().is==="ytd-watch-grid"&&_.w("swatcheroo_pbs_load_grid")&&(BQ5(this),gmp(this));this.addOnDisposeCallback(function(){c.JSC$20378_watchApi.unsubscribeByKey(m);c.JSC$20378_watchApi.unsubscribeByKey(b);_.ft.cancelJob(c.provideRichGridJobId)});
qO(this);SS(this)}};
_.D(_.h9,_.DS);var yjR=function(J){var c=J.JSC$20378_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){J.providePlayerJobId=_.T9(_.ft,function(){qO(J);Ut(J)},J.provideAllDataDelayMs)}),m=J.JSC$20378_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){J.provideWatchNextJobId=_.T9(_.ft,function(){SS(J);
Ut(J)},J.provideAllDataDelayMs)}),b=J.JSC$20378_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){J.provideWatchNextJobId=_.T9(_.ft,function(){SS(J);
Ut(J)},J.provideAllDataDelayMs)});
J.JSC$20378_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.rv(_.ft,function(){qO(J);SS(J);Ut(J)},100)});
J.JSC$20378_watchApi.addPageDisposeJob(function(){_.ft.cancelJob(J.provideWatchNextJobId);_.ft.cancelJob(J.providePlayerJobId)});
J.addOnDisposeCallback(function(){J.JSC$20378_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");J.JSC$20378_watchApi.unsubscribeByKey(c);J.JSC$20378_watchApi.unsubscribeByKey(m);J.JSC$20378_watchApi.unsubscribeByKey(b);_.ft.cancelJob(J.providePlayerJobId);_.ft.cancelJob(J.provideWatchNextJobId)});
qO(J);SS(J)},qO=function(J){var c=J.JSC$20378_watchApi.getPlayerResponse(),m,b,x=(b=c==null?void 0:(m=c.playabilityStatus)==null?void 0:m.messageRenderers)!=null?b:[],P,p;
c=(p=c==null?void 0:(P=c.playabilityStatus)==null?void 0:P.messages)!=null?p:[];P=_.M(c);for(p=P.next();!p.done;p=P.next())x.push({alertRenderer:{text:_.v2(p.value),type:"WARNING"}});J.JSC$20378_watchApi.provideRenderingData("ALERTS",x)},SS=function(J){var c=[],m,b,x,P=J.JSC$20378_watchApi.getWatchNextResponse(),p,t,I,a,k=P==null?void 0:(p=P.contents)==null?void 0:(t=p.twoColumnWatchNextResults)==null?void 0:(I=t.results)==null?void 0:(a=I.results)==null?void 0:a.contents;
if(k)for(p=_.M(k),t=p.next();!t.done;t=p.next())if(t=t.value,t.videoPrimaryInfoRenderer)var H=t;else if(t.videoSecondaryInfoRenderer){var T=t;a=I=void 0;t=Object.assign({},(I=t.videoSecondaryInfoRenderer)==null?void 0:(a=I.metadataRowContainer)==null?void 0:a.metadataRowContainerRenderer);if(t.rows&&t.collapsedItemCount!==void 0){t.rows=t.rows.slice(0,t.collapsedItemCount).filter(function(j6){return!!j6.richMetadataRowRenderer});
t.collapsedItemCount=t.rows.length;var r={metadataRowContainerRenderer:t}}}else if(t.merchandiseShelfRenderer)var W=t;else if(t.ticketShelfRenderer)var Y=t;else if(t.expandableMetadataRenderer)var Z=t;else if(t.itemSectionRenderer)if(I=t.itemSectionRenderer.contents,a=void 0,J.directlyProvideComments&&((a=t.itemSectionRenderer)==null?void 0:a.sectionIdentifier)==="comment-item-section")_.Y2("cmi"),J.JSC$20378_watchApi.provideRenderingData("COMMENTS",t.itemSectionRenderer);else if(I)for(t=_.M(I),I=
t.next();!I.done;I=t.next())if(I=I.value,I.commentsEntryPointHeaderRenderer)var d=I;else if(I.clarificationRenderer||I.infoPanelContainerRenderer||I.infoPanelContentRenderer||I.emergencyOneboxRenderer){c.push(I);var G=G||!!T}else I.limitedStateMessageRenderer?b=I:I.videoMetadataCarouselViewModel&&(x=I);if(_.w("web_watch_merch_in_sd_when_ticket_shelf_present")&&W&&Y){var e=W;W=void 0}if(J.provideWatchNextSecondaryResults){var A,l,y;J.JSC$20378_watchApi.provideRenderingData("WATCH_NEXT_SECONDARY_RESULTS",
P==null?void 0:(A=P.contents)==null?void 0:(l=A.twoColumnWatchNextResults)==null?void 0:(y=l.secondaryResults)==null?void 0:y.secondaryResults)}if(J.JSC$20378_watchApi.getRoot().is==="ytd-watch-grid"){var pG,kt;J.JSC$20378_watchApi.provideRenderingData("LIVE_CHAT",P==null?void 0:(pG=P.contents)==null?void 0:(kt=pG.twoColumnWatchNextResults)==null?void 0:kt.conversationBar)}var nG,fG,Yt,Z3;(A=P==null?void 0:(nG=P.contents)==null?void 0:(fG=nG.twoColumnWatchNextResults)==null?void 0:(Yt=fG.secondaryResults)==
null?void 0:(Z3=Yt.secondaryResults)==null?void 0:Z3.offerModule)&&(A.donationShelfRenderer||A.donationUnavailableRenderer)&&J.JSC$20378_watchApi.getRoot().is!=="ytd-watch-grid"&&(m=A);nG=J.JSC$20378_watchApi.getPlayerResponse();if(!nG||!_.R9G(nG.playabilityStatus,P==null?void 0:P.playerOverlays)){var oR;if(P==null?0:(oR=P.contents)==null?0:oR.singleColumnWatchNextResults){var Em,X$;var Hu=P==null?void 0:(Em=P.contents.singleColumnWatchNextResults.results)==null?void 0:(X$=Em.results)==null?void 0:
X$.contents}else{var S6,a2,Nu,cu;oR=!!(k==null?0:(S6=k[0])==null?0:(a2=S6.itemSectionRenderer)==null?0:(Nu=a2.contents)==null?0:(cu=Nu[0])==null?0:cu.backgroundPromoRenderer);var t8,I_;S6=!!(P==null?0:(t8=P.contents)==null?0:(I_=t8.twoColumnWatchNextResults)==null?0:I_.secondaryResults);oR&&!S6&&(Hu=k)}}k=c[0];t8=c[1];G&&c.length===1&&(t8=k,k=void 0);J.JSC$20378_watchApi.provideRenderingData("PRIMARY_INFO",H);J.JSC$20378_watchApi.provideRenderingData("SECONDARY_INFO",T);J.JSC$20378_watchApi.provideRenderingData("COMMENTS_ENTRY_POINT_HEADER",
d);J.JSC$20378_watchApi.provideRenderingData("VIDEO_METADATA_CAROUSEL",x);J.JSC$20378_watchApi.provideRenderingData("CLARIFICATION",k);J.JSC$20378_watchApi.provideRenderingData("RICH_METADATA",r);J.JSC$20378_watchApi.provideRenderingData("MERCH_SHELF",W);_.w("web_watch_merch_in_sd_when_ticket_shelf_present")&&J.JSC$20378_watchApi.provideRenderingData("MERCH_SHELF_IN_SD",e);J.JSC$20378_watchApi.provideRenderingData("TICKET_SHELF",Y);J.JSC$20378_watchApi.provideRenderingData("LIMITED_STATE",b);J.JSC$20378_watchApi.getRoot().is!==
"ytd-watch-grid"&&J.JSC$20378_watchApi.provideRenderingData("DONATION_SHELF",m);J.JSC$20378_watchApi.provideRenderingData("SINGLE_COLUMN_CONTENTS",Hu);J.JSC$20378_watchApi.provideRenderingData("INFO_PANEL_BELOW_METADATA",t8);J.JSC$20378_watchApi.provideRenderingData("EXPANDABLE_METADATA",Z);if(J.swatcherooProvideAllDataOnScheduledJob){var fU,Nf,wL,qu,O5,LQ;H=P==null?void 0:(fU=P.contents)==null?void 0:(Nf=fU.twoColumnWatchNextResults)==null?void 0:(wL=Nf.secondaryResults)==null?void 0:(qu=wL.secondaryResults)==
null?void 0:(O5=qu.results)==null?void 0:(LQ=O5[0])==null?void 0:LQ.richGridRenderer;J.JSC$20378_watchApi.provideRenderingData("RICH_GRID_RENDERER",H)}};
_.h9.prototype.hasCompanionAds=function(J){var c,m;return(m=J==null?void 0:(c=J.adPlacements)==null?void 0:c.some(function(b){var x,P,p,t;return(b==null?void 0:(x=b.adPlacementRenderer)==null?void 0:(P=x.renderer)==null?void 0:P.actionCompanionAdRenderer)||(b==null?void 0:(p=b.adPlacementRenderer)==null?void 0:(t=p.renderer)==null?void 0:t.topBannerImageTextIconButtonedLayoutViewModel)}))!=null?m:!1};
var Ut=function(J){if(!_.w("swaterdoo_ps_wn_handle_ks")){J.swatcherooProvideAllDataOnScheduledJob||gmp(J,3E3);var c=J.JSC$20378_watchApi.getPlayerResponse(),m,b,x,P,p,t=(m=J.JSC$20378_watchApi.getWatchNextResponse())==null?void 0:(b=m.contents)==null?void 0:(x=b.twoColumnWatchNextResults)==null?void 0:(P=x.secondaryResults)==null?void 0:(p=P.secondaryResults)==null?void 0:p.offerModule;c=J.hasCompanionAds(c);var I,a;m=(t==null?void 0:(I=t.tvfilmOfferModuleRenderer)==null?void 0:I.clientShouldSuppressIfCompanionAdDisplayed)||
(t==null?void 0:(a=t.unlimitedOfferModuleRenderer)==null?void 0:a.suppressIfCompanionAds);I=c&&m;J.JSC$20378_watchApi.getRoot().is==="ytd-watch-grid"&&J.JSC$20378_watchApi.provideRenderingData("OFFER_MODULE",I?void 0:t)}},gmp=function(J,c){_.w("swatcheroo_pbs_load_grid")&&(J.provideRichGridJobId&&_.ft.cancelJob(J.provideRichGridJobId),J.provideRichGridJobId=_.T9(_.ft,function(){J.provideRichGridJobId=0;
var m,b,x,P,p,t,I,a=(m=J.JSC$20378_watchApi.getWatchNextResponse())==null?void 0:(b=m.contents)==null?void 0:(x=b.twoColumnWatchNextResults)==null?void 0:(P=x.secondaryResults)==null?void 0:(p=P.secondaryResults)==null?void 0:(t=p.results)==null?void 0:(I=t[0])==null?void 0:I.richGridRenderer;a&&J.JSC$20378_watchApi.provideRenderingData("RICH_GRID_RENDERER",a)},c))},BQ5=function(J){var c,m;
_.N(function(b){if(b.nextAddress==1)return _.K(b,J.JSC$20378_watchApi.playerApi,2);c=b.yieldResult;m=function(){J.onPlaybackStart()};
c.addEventListener("onPlaybackStartExternal",m);J.addOnDisposeCallback(function(){c.removeEventListener("onPlaybackStartExternal",m)});
_.tD(b)})};
_.h9.prototype.onPlaybackStart=function(){gmp(this)};_.c1F=function(J){_.DS.call(this);var c=this;this.JSC$20388_watchApi=J;J.playerApi.then(function(m){c.player=m});
this.gestures=new _.NK(this.JSC$20388_watchApi.getRoot(),J.getElement("PLAYER_CONTAINER"),{dragDownAction:function(){if(_.LDu(_.Rc().getState())&&_.D6(_.Rc().getState())<=0)if(_.Uc(_.Rc().getState())){var m;(m=c.player)==null||m.toggleFullscreen()}else _.m9(c.JSC$20388_watchApi.getRoot(),"yt-activate-miniplayer-from-watch-action")}});
J1u(this)};
_.D(_.c1F,_.DS);var J1u=function(J){var c=_.Nh(_.Rc(),_.Uc,function(m){J.onFullscreenChanged(m)});
J.addOnDisposeCallback(c);c=_.Nh(_.Rc(),_.D6,function(m){J.gestures&&(m>0?J.gestures.detach():J.gestures.attach())});
J.addOnDisposeCallback(c)};
_.c1F.prototype.onFullscreenChanged=function(J){this.gestures&&this.gestures.update(J)};_.bT5=function(J){_.DS.call(this);var c=this;this.JSC$20391_watchApi=J;this.clearDataJobId=0;this.pageDisposalDataTypes=[];this.runPageDisposeJob=function(){};
this.runClearDataJob=function(){};
this.runOnYtNavigateAwayFinish=function(){};
this.addOnDisposeCallback(J.subscribeToActiveChanged(function(m){c.onActiveChanged(m)}));
mt1(this)};
_.D(_.bT5,_.DS);var xto=function(J){if(_.w("swatcheroo_page_dispose_all_watch_data"))J.pageDisposalDataTypes=Object.values(DYR).filter(function(m){return m!=="PLAYLIST"});
else if(_.w("swatcheroo_page_dispose_rich_grid")){var c;(c=J.pageDisposalDataTypes)==null||c.push("RICH_GRID_RENDERER")}},mt1=function(J){_.w("swatcheroo_enable_ghost_cards")&&(xto(J),J.JSC$20391_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.ft.cancelJob(J.clearDataJobId);
J.clearDataJobId=0}),J.runPageDisposeJob=function(){var c=_.BG().resolve(_.oO).getDestinationPageType()==="watch";
J.clearDataJobId=_.T9(_.ft,J.runClearDataJob,c?0:_.c7("web_watch_delay_page_dispose_ms",1E4))},J.runClearDataJob=function(){VPh(J)},J.runOnYtNavigateAwayFinish=function(){J.clearDataJobId&&(_.ft.cancelJob(J.clearDataJobId),J.clearDataJobId=0,VPh(J))},document.addEventListener("yt-navigate-finish",J.runOnYtNavigateAwayFinish),J.JSC$20391_watchApi.addPageDisposeJob(J.runPageDisposeJob),J.addOnDisposeCallback(function(){J.JSC$20391_watchApi.removePageDisposeJob(J.runPageDisposeJob);
J.JSC$20391_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");document.removeEventListener("yt-navigate-finish",J.runOnYtNavigateAwayFinish)}))},VPh=function(J){J.pageDisposalDataTypes.forEach(function(c){J.JSC$20391_watchApi.provideRenderingData(c,void 0)});
J.clearDataJobId=0};
_.bT5.prototype.onActiveChanged=function(J){J&&((J=document.querySelector("#watch-page-skeleton"))&&_.nc(J),PV5(this),document.body.removeAttribute("no-y-overflow"),_.Ss("IS_SHELL_LOAD")&&_.Kr4())};
var PV5=function(J){_.N(function(c){if(c.nextAddress==1)return _.K(c,J.JSC$20391_watchApi.playerApi,2);_.og();_.tD(c)})};var MP5;MP5=_.w("kevlar_watch_while_counterfactual")?0:.25;_.dN=function(J){_.DS.call(this);this.JSC$20394_watchApi=J;this.JSC$20394_watchWhileEnabled=_.w("kevlar_watch_while_v2");this.pipEnabled=_.w("web_enable_pip_on_miniplayer");plR(this);NG5(this);tPh(this)};
_.D(_.dN,_.DS);var plR=function(J){J.JSC$20394_watchApi.registerActionHandler("yt-activate-miniplayer-from-watch-action",function(){I$5(J)});
J.addOnDisposeCallback(function(){J.JSC$20394_watchApi.unregisterActionHandler("yt-activate-miniplayer-from-watch-action")})},NG5=function(J){var c,m;
_.N(function(b){if(b.nextAddress==1)return _.K(b,J.JSC$20394_watchApi.playerApi,2);c=b.yieldResult;m=function(){I$5(J)};
c.addEventListener("onCollapseMiniplayer",m);J.addOnDisposeCallback(function(){c.removeEventListener("onCollapseMiniplayer",m)});
_.tD(b)})},tPh=function(J){var c=J.JSC$20394_watchApi.getElement("PLAYER_CONTAINER");
window.IntersectionObserver&&c&&J.JSC$20394_watchWhileEnabled&&(J.playerIntersectionObserver=new IntersectionObserver(function(m){J.handleIntersect(m)},{threshold:[MP5]}),J.playerIntersectionObserver.observe(c),J.addOnDisposeCallback(function(){var m;
(m=J.playerIntersectionObserver)==null||m.disconnect()}))},I$5=function(J){var c,m,b;
_.N(function(x){if(x.nextAddress==1){c=_.BG().resolve(_.oO);m=c.data;b=_.GNe(m.response,m.playerResponse);_.Mh().miniplayerButtonActivation=!0;if(J.pipEnabled)return _.Mh().watchPipActivation=!0,x.jumpTo(2);_.BG().resolve(_.Uo).collapse();return _.K(x,_.Mh().navigationFinishPromise,2)}if(x.nextAddress!=4)return _.Mh().currentEndpoint=b.watchEndpoint||null,_.K(x,_.BG().resolve(_.Uo).activate(J.JSC$20394_watchApi.getElement("PLAYER"),b,m),4);_.Mh().userActivation=!0;_.tD(x)})};
_.dN.prototype.handleIntersect=function(J){Kb5(this,J[J.length-1])};
var Kb5=function(J,c){J.watchWhileJobId&&_.ft.cancelJob(J.watchWhileJobId);J.watchWhileJobId=_.ft.addLowPriorityJob(function(){var m,b;return _.N(function(x){if(x.nextAddress==1)return J.watchWhileJobId=void 0,m=_.BG().resolve(_.Uo),c.intersectionRatio>MP5?m.isMiniplayerActive()?_.K(x,m.deactivate(),0):x.jumpTo(0):(b=!m.isMiniplayerActive())?_.K(x,CVu(J),5):x.jumpTo(4);x.nextAddress!=4&&(b=x.yieldResult);if(!b)return x.jumpTo(0);_.Mh().watchWhileActivation=!0;return _.K(x,a$R(J),0)})},100)},CVu=function(J){return _.N(function(c){return c.nextAddress==
1?_.w("kevlar_watch_while_paused")?c.return(!0):_.K(c,J.isPlayerPlaying(),2):c.return(c.yieldResult)})};
_.dN.prototype.isPlayerPlaying=function(){var J=this,c;return _.N(function(m){if(m.nextAddress==1)return _.K(m,J.JSC$20394_watchApi.playerApi,2);c=m.yieldResult;return m.return(c.getPlayerStateObject().isPlaying)})};
var a$R=function(J){var c,m;return _.N(function(b){c=_.BG().resolve(_.oO).data;m=_.GNe(c.response,c.playerResponse);_.Mh().currentEndpoint=m.watchEndpoint||null;return _.K(b,_.BG().resolve(_.Uo).activate(J.JSC$20394_watchApi.getElement("PLAYER"),m,c),0)})};_.iT1=function(J){_.DS.call(this);this.JSC$20398_watchApi=J;kJR(this);HTu(this)};
_.D(_.iT1,_.DS);var HTu=function(J){var c,m;_.N(function(b){if(b.nextAddress==1)return _.K(b,J.JSC$20398_watchApi.playerApi,2);c=b.yieldResult;m=function(x){var P;x.sessionData&&x.sessionData.itct&&(P=x.sessionData.itct);var p=x.watchEndpoint;if(p&&x.sessionData&&x.sessionData.autonav)p=_.XJq(p,P);else{var t;p=_.lJ(x.videoId,(t=x.listId)!=null?t:void 0,P)}P={endpoint:p};x.sessionData&&(P.tempData=x.sessionData);J.JSC$20398_watchApi.dispatchEvent("yt-navigate",P)};
c.addEventListener("onPlayVideo",m);J.addOnDisposeCallback(function(){c.removeEventListener("onPlayVideo",m)});
_.tD(b)})},kJR=function(J){var c=function(m){J.onYtNavigate(m)};
J.JSC$20398_watchApi.getRoot().addEventListener("yt-navigate",c);J.addOnDisposeCallback(function(){J.JSC$20398_watchApi.getRoot().removeEventListener("yt-navigate",c)})};
_.iT1.prototype.onYtNavigate=function(J){var c=this,m,b,x,P,p,t,I,a,k;return _.N(function(H){if(H.nextAddress==1){if(!((m=J.detail)==null?0:(b=m.endpoint)==null?0:b.watchEndpoint))return H.return();x=J.detail.endpoint.watchEndpoint;P=c.JSC$20398_watchApi.getWatchNextResponse();t=_.L((p=P)==null?void 0:p.currentVideoEndpoint,_.Rz);if(!t)return H.return();if(x.videoId!==t.videoId||x.playlistId&&x.playlistId!==t.playlistId||typeof x.startTimeSeconds!=="number")return H.jumpTo(0);J.stopPropagation();
(I=_.w("kevlar_watch_while_v2")&&!_.w("kevlar_watch_while_counterfactual"))&&_.BG().resolve(_.Uo).isMiniplayerActive()||c.JSC$20398_watchApi.scrollWatchTo(0,!0);return _.K(H,c.JSC$20398_watchApi.playerApi,3)}a=H.yieldResult;k=x.startTimeSeconds;a.seekTo(k,void 0,void 0,void 0,84);a.wakeUpControls();k<a.getDuration()&&a.playVideo();_.tD(H)})};_.TGs=function(J){_.DS.call(this);var c=this;this.JSC$20401_watchApi=J;var m=this.JSC$20401_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){nkR(c)});
this.addOnDisposeCallback(function(){c.JSC$20401_watchApi.unsubscribeByKey(m)});
nkR(this)};
_.D(_.TGs,_.DS);var nkR=function(J){var c=J.JSC$20401_watchApi.getWatchNextResponse();if(c){var m,b=[].concat(_.L6((m=c==null?void 0:c.engagementPanels)!=null?m:[]));b.unshift.apply(b,_.L6(wlo(c)));J.JSC$20401_watchApi.provideRenderingData("ENGAGEMENT_PANELS",b)}},r1R=function(J){var c,m,b,x=(c=J.engagementPanels)==null?void 0:(m=c.find(function(r){var W;
return((W=r.engagementPanelSectionListRenderer)==null?void 0:W.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(b=m.engagementPanelSectionListRenderer.content)==null?void 0:b.structuredDescriptionContentRenderer,P;
if(_.L(x==null?void 0:(P=x.items)==null?void 0:P.find(function(r){return!!_.L(r,m1h)}),m1h))return!0;
var p,t,I,a;if(J=(((p=J.contents)==null?void 0:(t=p.twoColumnWatchNextResults)==null?void 0:(I=t.results)==null?void 0:(a=I.results)==null?void 0:a.contents)||[]).find(function(r){return r.videoPrimaryInfoRenderer})){var k,H,T;
return(((k=J.videoPrimaryInfoRenderer)==null?void 0:(H=k.videoActions)==null?void 0:(T=H.menuRenderer)==null?void 0:T.flexibleItems)||[]).some(function(r){r=_.L(r,_.WcL);if(!r)return!1;var W,Y;r=(W=r.topLevelButton)==null?void 0:(Y=W.buttonViewModel)==null?void 0:Y.onTap;if(!r)return!1;W=_.ZG(r);if(!W)return!1;var Z;return((Z=_.L(W,_.zt))==null?void 0:Z.panelIdentifier)==="PAyouchat"})}return!1},wlo=function(J){var c=[];
if(!_.w("web_watch_inject_placeholder_fantasy_panel_killswitch")){var m,b,x,P=(m=J.engagementPanels)==null?void 0:(b=m.find(function(t){var I;return((I=t.engagementPanelSectionListRenderer)==null?void 0:I.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(x=b.engagementPanelSectionListRenderer.content)==null?void 0:x.structuredDescriptionContentRenderer,p;
_.L(P==null?void 0:(p=P.items)==null?void 0:p.find(function(t){return!!_.L(t,qr5)}),qr5)&&(m=_.X_o("PAsports_fantasy"),m.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",c.push(m))}r1R(J)&&(J=_.X_o("PAyouchat"),J.engagementPanelSectionListRenderer.targetId="PAyouchat",J.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",c.push(J));
return c};_.Lb5=function(J){_.DS.call(this);this.JSC$20404_watchApi=J;sqh(this)};
_.D(_.Lb5,_.DS);var sqh=function(J){J.JSC$20404_watchApi.registerActionHandler("yt-loop-command",function(c){DtF(J,c)});
J.JSC$20404_watchApi.registerActionHandler("yt-repeat-chapter-command",function(c){Wbo(J,c)});
J.addOnDisposeCallback(function(){J.JSC$20404_watchApi.unregisterActionHandler("yt-loop-command");J.JSC$20404_watchApi.unregisterActionHandler("yt-repeat-chapter-command")})},DtF=function(J,c){var m;
_.N(function(b){if(b.nextAddress==1)return _.K(b,J.JSC$20404_watchApi.playerApi,2);m=b.yieldResult;_.L(c,SrS).loop?(m.setLoopRange({startTimeMs:Number(_.L(c,SrS).startTimeMs),endTimeMs:Number(_.L(c,SrS).endTimeMs),postId:_.L(c,SrS).postId,type:"clips"}),m.playVideo()):m.setLoopRange(null);_.tD(b)})},Wbo=function(J,c){var m,b;
_.N(function(x){if(x.nextAddress==1)return _.K(x,J.JSC$20404_watchApi.playerApi,2);m=x.yieldResult;b=_.L(c,EEu).repeat;b==="REPEAT_CHAPTER_TYPE_ENABLE_REPEAT"?(m.setLoopRange({startTimeMs:Number(_.L(c,EEu).startTimeMs),endTimeMs:Number(_.L(c,EEu).endTimeMs),type:"repeatChapter"}),m.playVideo()):b==="REPEAT_CHAPTER_TYPE_DISABLE_REPEAT"&&m.setLoopRange(null);_.tD(x)})};_.uKf=function(J){_.DS.call(this);this.JSC$20409_watchApi=J;zUs(this)};
_.D(_.uKf,_.DS);var zUs=function(J){J.JSC$20409_watchApi.registerActionHandler("yt-watch-player-overflow-menu-command",function(c){f$R(J,c)});
J.addOnDisposeCallback(function(){J.JSC$20409_watchApi.unregisterActionHandler("yt-watch-player-overflow-menu-command")})},f$R=function(J,c){var m,b,x,P,p,t,I,a,k,H,T;
_.N(function(r){if(r.nextAddress==1)return _.K(r,J.JSC$20409_watchApi.playerApi,2);m=r.yieldResult;if(P=(x=(b=_.L(c,vEs))==null?void 0:b.highlightedMenuItemKey)!=null?x:"")(t=(p=m).highlightSettingsMenuItem)==null||t.call(p,P);if(k=(a=(I=_.L(c,vEs))==null?void 0:I.openMenuItemKey)!=null?a:"")(T=(H=m).openSettingsMenuItem)==null||T.call(H,k);_.tD(r)})};var YNu=_.V_("/youtube/app/watch/player_state","playerStateEntity");_.ZTh=function(J){_.DS.call(this);this.JSC$20412_watchApi=J;Xl5(this)};
_.D(_.ZTh,_.DS);var qNu=function(J){switch(J){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"}},Xl5=function(J){var c,m;
_.N(function(b){if(b.nextAddress==1)return _.K(b,J.JSC$20412_watchApi.playerApi,2);c=b.yieldResult;m=function(x){J.onPlayerStateChange(x)};
c.addEventListener("onStateChange",m);J.addOnDisposeCallback(function(){c.removeEventListener("onStateChange",m)});
_.tD(b)})};
_.ZTh.prototype.onPlayerStateChange=function(J){var c=this,m,b;return _.N(function(x){if(x.nextAddress==1)return _.K(x,c.JSC$20412_watchApi.playerApi,2);m=x.yieldResult;b=m.getVideoData().video_id;_.v9().dispatch(_.It("playerStateEntity",YNu,{key:YNu,playerState:qNu(J),videoId:b}));_.tD(x)})};_.SN1=function(J){_.DS.call(this);var c=this;this.JSC$20416_watchApi=J;this.enableExternalPlaylistPanelInPlayer=_.w("delhi_web_player_use_external_playlist_panel");_.BG().resolve(_.zn).setPlayer(this.JSC$20416_watchApi.getElement("PLAYER"));J=this.JSC$20416_watchApi.subscribeToActiveChanged(function(m){c.onActiveChanged(m)});
this.addOnDisposeCallback(J);Uto(this)};
_.D(_.SN1,_.DS);var Uto=function(J){var c,m;_.N(function(b){if(b.nextAddress==1)return J.enableExternalPlaylistPanelInPlayer?_.K(b,J.JSC$20416_watchApi.playerApi,2):b.return();c=b.yieldResult;m=function(){if(J.playlistPanelElement)J.playlistPanelElement.onToggleExpanded()};
c.addEventListener("onToggleExternalPlaylistPanel",m);J.addOnDisposeCallback(function(){c.removeEventListener("onToggleExternalPlaylistPanel",m)});
_.tD(b)})};
_.SN1.prototype.onActiveChanged=function(J){var c=this,m=_.BG().resolve(_.zn),b=function(){hUR(c)};
J?(this.playlistPanelElement=this.JSC$20416_watchApi.getElement("PLAYLIST_PANEL"))?(m.setPlaylistComponent(this.playlistPanelElement),m.addEventListener("yt-playlist-data-updated",b),this.addOnDisposeCallback(function(){m.removeEventListener("yt-playlist-data-updated",b)}),hUR(this)):_.Ge(Error("im")):(m.removeEventListener("yt-playlist-data-updated",b),m.cancelVideoSkip())};
var hUR=function(J){var c=_.BG().resolve(_.zn);J.JSC$20416_watchApi.provideRenderingData("PLAYLIST",c.getPlaylistData())};_.$n=function(J){_.DS.call(this);var c=this;this.JSC$20419_watchApi=J;this.onPageScroll=function(){c.scrollThrottle.fire();c.mastheadScrollThrottle.fire()};
this.scrollThrottle=new _.FU(this.onThrottledScroll,200,this);_.Kc(this,this.scrollThrottle);this.mastheadScrollThrottle=new _.FU(this.onMastheadThrottledScroll,50,this);_.Kc(this,this.mastheadScrollThrottle);this.animation=new _.X0(function(m){c.JSC$20419_watchApi.getRoot().setScrollTop(m)});
J=_.Nh(_.Rc(),_.Uc,function(){c.onFullscreenChanged()});
this.addOnDisposeCallback(J);dte(this);$to(this);this.onThrottledScroll()};
_.D(_.$n,_.DS);
_.$n.prototype.onFullscreenChanged=function(){var J=this,c=this.JSC$20419_watchApi.getRoot();!this.pageScrollElement&&c.pageScrollElement?(this.pageScrollElement=c.pageScrollElement,c.pageScrollElement.addEventListener("scroll",this.onPageScroll),this.addOnDisposeCallback(function(){J.pageScrollElement&&J.pageScrollElement.removeEventListener("scroll",J.onPageScroll)})):this.pageScrollElement&&!c.pageScrollElement&&(this.pageScrollElement.removeEventListener("scroll",this.onPageScroll),this.pageScrollElement=
void 0)};
var dte=function(J){window.addEventListener("scroll",J.onPageScroll);J.addOnDisposeCallback(function(){window.removeEventListener("scroll",J.onPageScroll)})},$to=function(J){J.JSC$20419_watchApi.registerActionHandler("yt-scroll-to-watch-element",function(c){a:{var m;
if(m=J.JSC$20419_watchApi.getRoot().contains(c)&&!J.animation.isAnimating()){m=c.tagName==="YTD-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER";var b,x,P=(c==null?void 0:(b=c.parentElement)==null?void 0:(x=b.parentElement)==null?void 0:x.id)==="fixed-secondary";m=!(m&&P)}if(m){if(_.w("kevlar_watch_scroll_manager_absolute_offset_killswitch"))b=c.offsetTop;else for(b=0,x=c;x!==null;)b+=x.offsetTop,b-=x.scrollTop,x=x.offsetParent;x=b;b=x-24;c=x+c.offsetHeight+24;x=J.JSC$20419_watchApi.getRoot().getPageScrollingElement();
m=J.JSC$20419_watchApi.getRoot().getScrollTop();P=m+x.clientHeight-56;if(b<m+56)c=b-56;else if(c>P)c-=x.clientHeight;else break a;J.scrollWatchTo(Math.max(0,c),!0)}}});
J.addOnDisposeCallback(function(){J.JSC$20419_watchApi.unregisterActionHandler("yt-scroll-to-watch-element")})};
_.$n.prototype.onThrottledScroll=function(){var J=_.Rc(),c=J.dispatch,m=this.JSC$20419_watchApi.getRoot().getScrollTop();c.call(J,_.J7({type:"SET_WATCH_SCROLL_TOP",payload:{watchScrollTop:m}}))};
_.$n.prototype.onMastheadThrottledScroll=function(){this.JSC$20419_watchApi.dispatchEvent("yt-watch-masthead-scroll",this.JSC$20419_watchApi.getRoot().getScrollTop())};
_.$n.prototype.scrollWatchTo=function(J,c){(c===void 0?0:c)?this.animation.start(this.JSC$20419_watchApi.getRoot().getScrollTop(),Math.max(0,J),500):this.JSC$20419_watchApi.getRoot().setScrollTop(J)};_.vk5=function(J){_.DS.call(this);var c=this;this.JSC$20422_watchApi=J;var m=this.JSC$20422_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){GJR(c)}),b=this.JSC$20422_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Ekr(c)});
this.addOnDisposeCallback(function(){c.JSC$20422_watchApi.unsubscribeByKey(m);c.JSC$20422_watchApi.unsubscribeByKey(b)});
GJR(this);Ekr(this)};
_.D(_.vk5,_.DS);
var GJR=function(J){var c,m,b,x=(b=(c=J.JSC$20422_watchApi.getPlayerResponse())==null?void 0:(m=c.videoDetails)==null?void 0:m.title)!=null?b:"";J.JSC$20422_watchApi.dispatchEvent("yt-update-title",x)},Ekr=function(J){var c,m,b,x,P,p,t,I=(t=((p=(c=J.JSC$20422_watchApi.getWatchNextResponse())==null?void 0:(m=c.contents)==null?void 0:(b=m.twoColumnWatchNextResults)==null?void 0:(x=b.results)==null?void 0:(P=x.results)==null?void 0:P.contents)!=null?p:[]).find(function(a){return!!a.videoPrimaryInfoRenderer}))==null?
void 0:t.videoPrimaryInfoRenderer;
(c=_.OG(I==null?void 0:I.title))&&J.JSC$20422_watchApi.dispatchEvent("yt-update-title",c)};_.A1e=function(J){_.DS.call(this);this.JSC$20425_watchApi=J;OT4(this)};
_.D(_.A1e,_.DS);var OT4=function(J){var c,m;_.N(function(b){if(b.nextAddress==1)return _.K(b,J.JSC$20425_watchApi.playerApi,2);c=b.yieldResult;m=function(){J.onYpcContentRequest()};
c.addEventListener("onYpcContentRequest",m);J.addOnDisposeCallback(function(){c.removeEventListener("onYpcContentRequest",m)});
_.tD(b)})};
_.A1e.prototype.onYpcContentRequest=function(){var J,c,m,b,x,P=(J=this.JSC$20425_watchApi.getWatchNextResponse())==null?void 0:(c=J.contents)==null?void 0:(m=c.twoColumnWatchNextResults)==null?void 0:(b=m.secondaryResults)==null?void 0:(x=b.secondaryResults)==null?void 0:x.offerModule,p,t,I,a;J=(a=(I=(t=(p=P==null?void 0:P.episodeOfferModuleRenderer)!=null?p:P==null?void 0:P.movieOfferModuleRenderer)!=null?t:P==null?void 0:P.unlimitedOfferModuleRenderer)!=null?I:P==null?void 0:P.liveOfferModuleRenderer)!=
null?a:P==null?void 0:P.tvfilmOfferModuleRenderer;var k,H,T;P=(T=P==null?void 0:(k=P.tvfilmOfferModuleRenderer)==null?void 0:(H=k.actionButtons)==null?void 0:H.length)!=null?T:0;H=Math.max(P-1,0);var r,W,Y;k=(Y=J==null?void 0:(r=J.offerButton)==null?void 0:r.buttonRenderer)!=null?Y:J==null?void 0:(W=J.actionButtons)==null?void 0:W[H].buttonRenderer;var Z,d;(r=(d=(Z=k==null?void 0:k.navigationEndpoint)!=null?Z:k==null?void 0:k.serviceEndpoint)!=null?d:k==null?void 0:k.command)&&_.p7.instance.resolveCommand(r)};
}catch(e){_._DumpException(e)}
try{
var PNh,b3o,car;_.m35=function(){var J=_.Lw.clone(Jaf),c;return(new _.IN(function(m,b){J.onSuccess=function(x){_.$8Q(x)?m(new car(x)):b(new _.Az("Request failed, status="+_.xK(x),"net.badstatus",x))};
J.onError=function(x){b(new _.Az("Unknown request error","net.unknown",x))};
J.onTimeout=function(x){b(new _.Az("Request timed out","net.timeout",x))};
c=_.tL("//googleads.g.doubleclick.net/pagead/id",J)})).thenCatch(function(m){if(m instanceof _.OQ){var b;
(b=c)==null||b.abort()}return _.sv(m)})};
_.x34=function(J){a:{var c="EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(c="EMBEDDED_PLAYER_MODE_PFL");var m=J.raw_embedded_player_response;if(!m&&(J=J.embedded_player_response))try{m=JSON.parse(J)}catch(x){break a}if(m)b:for(var b in b3o)if(b3o[b]==m.embeddedPlayerMode){c=b3o[b];break b}}return c==="EMBEDDED_PLAYER_MODE_PFL"};
_.VsF=function(){if(_.w("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("nf");if(!_.xBe())return Error("of");var J=_.Ub("PLAYER_VARS",{});if(_.Lw.get(J,"privembed",!1)=="1")return Error("pf");if(_.x34(J))return Error("qf")};
PNh=function(J){switch(J){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:_.Pu(J,"unknown result type")}};
_.MsF=function(J,c,m){c=_.F7f[c];m={detected:J===0,source:c.oZ9,detectionResult:PNh(J),contentCpn:m};_.zB("biscottiBasedDetection",m);_.V$Q.increment(c.oZ9,J);c.j1v!==void 0&&_.q3("CATSTAT",_.elJ(J,c))};
_.Ri=function(J,c){var m={};m.key=J;m.value=c;return _.foq().then(function(b){return new Promise(function(x,P){try{var p=b.transaction("swpushnotificationsstore","readwrite").objectStore("swpushnotificationsstore").put(m);p.onsuccess=function(){x()};
p.onerror=function(){P()}}catch(t){P(t)}})})};
_.NuF=function(){var J=_.c7("user_engagement_experiments_rate_limit_ms"),c=pGe.get("last-user-engagement-exp-trigger-timestamp");return!c||(0,_.y4)()>=c+J?(pGe.set("last-user-engagement-exp-trigger-timestamp",(0,_.y4)()),!0):!1};
_.oi=function(J,c,m,b,x){c=c===void 0?null:c;m=m===void 0?null:m;b=b===void 0?null:b;x=x===void 0?null:x;J={youThereEventType:J};m&&(J.lactThresholdMs=m.lactThresholdMs,J.mediaPosSec=m.promptDelaySec,J.lactServerRequestMs=m.lactServerRequestMs,J.triggerReason=m.triggerReason);x!=null&&(J.renderingMediaPosSec=Math.round(x));c||(c=_.Y3());c&&(J.clientScreenNonce=c);b&&(J.clientPlaybackNonce=b);_.zB("youThere",J)};
b3o={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"};car=function(J){this.xhr=J};
_.Az=function(J,c,m){_.Jq.call(this,J+", errorCode="+c);this.errorCode=c;this.xhr=m;this.name="PromiseAjaxError"};
_.D(_.Az,_.Jq);var Jaf={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0};var pGe=new _.Un("ratelimit");
}catch(e){_._DumpException(e)}
try{
_.G$R=function(J){return _.J7({type:"SET_SINGLE_OPTION_SURVEY_IS_ACTIVE",payload:J})};
}catch(e){_._DumpException(e)}
try{
var Ot,JQe,mSR,bR5,xSh,VNu,MNR,kAR,HRR,iRu,P51,cQs,IBR,tNR,w1S;_.gko=function(){var J=window.location.hash;J.charAt(0)==="#"&&(J=J.charAt(1)==="!"?J.substring(2):J.substring(1));return _.Ob(J)};
Ot=function(J,c,m){var b;return _.N(function(x){if(x.nextAddress==1)return _.K(x,c(),2);b=x.yieldResult;m(b,J);_.tD(x)})};
JQe=function(){return _.N(function(J){return J.nextAddress==1?_.K(J,(_.VsF()!==void 0?_.sv(Error("rf")):_.m35()).then(function(){return 1},function(c){if(c.message==="Biscotti id is disabled")return 3;
_.qz("Failed fetching bid");return 0}),2):J.return(J.yieldResult)})};
mSR=function(){var J=_.jk("cHZqZjBveXQtaGF2ZW4tZW1iZWQtcGxheWVyIzN1M2Npdg=="),c=_.jk("YzB2N2draWZyYW1lI2s0OGdkMw==");return document.querySelector(c+cQs+J)?0:1};
bR5=function(){return _.UHu(_.SB)};
xSh=function(){return _.SWe()===0?0:_.hlq()};
VNu=function(){return _.vsJ(_.mH3([["player-ads",["ytd-merch-shelf-renderer","ytp-featured-product"],null]]))};
MNR=function(){return _.W72(P51)};
_.p1R=function(J){_.N(function(c){switch(c.nextAddress){case 1:return _.K(c,Ot("b.f_",JQe,J),2);case 2:return _.K(c,Ot("j.s_",_.L7q,J),3);case 3:return _.K(c,Ot("r.s_",_.wtD,J),4);case 4:return _.K(c,Ot("e.h_",MNR,J),5);case 5:if(!_.w("ab_det_sc_inj")){c.jumpTo(6);break}return _.K(c,Ot("s.i_",_.Z9o,J),6);case 6:if(_.w("ab_deg_unex_thr")){c.jumpTo(8);break}return _.K(c,Ot("a.o_",_.YWR,J),8);case 8:if(_.w("ks_get_o_pp")){c.jumpTo(10);break}return _.K(c,Ot("g.o_",_.fOt,J),10);case 10:if(_.w("ks_det_gpbl")){c.jumpTo(12);
break}return _.K(c,Ot("p.i_",_.uLt,J),12);case 12:return _.K(c,Ot("f.i_",_.NF2,J),14);case 14:return _.K(c,Ot("a.b_",_.nsD,J),15);case 15:return _.K(c,Ot("p.m_",_.K7f,J),16);case 16:if(!_.w("ab_det_el_h_v2")){c.jumpTo(17);break}return _.K(c,Ot("n.h_",VNu,J),17);case 17:return _.K(c,Ot("o.p_",bR5,J),19);case 19:return _.K(c,Ot("e.i_",mSR,J),20);case 20:if(_.w("ab_det_apm"))return _.K(c,Ot("o.a_",xSh,J),0);c.jumpTo(0)}})};
_.Nco=function(J,c){J={videoId:J};c&&(J.playlistId=c);return J};
_.KJ1=function(){if(_.xBe()){var J=_.Ub("PLAYER_VARS",{});if(_.Lw.get(J,"privembed",!1)!="1"&&!_.x34(J)){var c=function(){tNR=!0;"google_ad_status"in window?_.q3("DCLKSTAT",1):_.q3("DCLKSTAT",2)};
try{_.dK("//static.doubleclick.net/instream/ad_status.js",c)}catch(m){}IBR.push(_.ft.addLowPriorityJob(function(){if(!(tNR||"google_ad_status"in window)){try{_.lYe("//static.doubleclick.net/instream/ad_status.js",c)}catch(m){}tNR=!0;_.q3("DCLKSTAT",3)}},5E3))}}};
_.A9=function(J,c,m){m=m===void 0?!1:m;var b=Math.max(J.width,_.x1h);if(_.w("kevlar_watch_feed_big_thumbs")&&J.width>=1550-_.Dm()&&J.height>=800)b-=_.tIr;else if(J.width>=_.S0){var x=_.VIR+_.PSp+_.UJ;_.w("kevlar_watch_feed_big_thumbs")&&(x=_.NZf);b-=x}else b-=_.VIR;b=Math.min(b,_.MI1);x=240;m&&(x=380);c<.5624||(!_.w("kevlar_watch_flexy_disable_small_window_sizing")&&(J.height<630&&J.width>=657||J.height>=630&&J.width>=_.S0&&J.width<1327)?x=360:!_.w("kevlar_watch_flexy_disable_large_window_sizing")&&
J.height>=630&&J.width>=1327&&(x=480));var P=Math.min(b*c,J.height-(56+_.bf1+_.pvR));P=Math.max(P,x);c<1?b=P/c:J.width>=_.S0&&(b=_.A9(J,.5625,m).width);return new _.tk(Math.round(b),Math.round(P))};
_.C5R=function(J){var c=0;J.indexOf("h")!=-1&&(J=J.split("h"),c=J[0]*60*60,J=J[1]);J.indexOf("m")!=-1&&(J=J.split("m"),c=J[0]*60+c,J=J[1]);J.indexOf("s")!=-1?(J=J.split("s"),c=J[0]*1+c):c=J*1+c;return c};
_.aBS=function(){_.c7("service_worker_push_logged_out_prompt_watches")!=-1&&_.jX("WatchCount").then(function(J){J>=100||_.Ri("WatchCount",J+1)})};
kAR=function(J){var c=J.externalVideoId||"";return c?J.isShortsEligible?"https://www.youtube.com/shorts/"+c:"https://www.youtube.com/watch?v="+c:""};
HRR=function(J){var c=[];J.viewCount&&c.push({"@type":"InteractionCounter",interactionType:"https://schema.org/WatchAction",userInteractionCount:J.viewCount});J.likeCount&&c.push({"@type":"InteractionCounter",interactionType:"https://schema.org/LikeAction",userInteractionCount:J.likeCount});return c};
iRu=function(J){var c,m,b={"@context":"https://schema.org","@type":"VideoObject",description:_.OG(J.description),duration:"PT"+(J.lengthSeconds||"0")+"S",embedUrl:J.embed?J.embed.iframeUrl:"",name:_.OG(J.title),thumbnailUrl:((c=J.thumbnail)==null?void 0:(m=c.thumbnails)==null?void 0:m.map(function(k){return k&&k.url||""}))||[],
uploadDate:J.publishDate};_.w("mweb_video_schema_id_killswitch")||(b["@id"]=kAR(J));c=HRR(J);c.length&&(b.interactionStatistic=c);J.category&&(b.genre=J.category);J.ownerChannelName&&(b.author=J.ownerChannelName);J.liveBroadcastDetails&&(b.publication=[{"@type":"BroadcastEvent",isLiveBroadcast:!0,startDate:J.liveBroadcastDetails.startTimestamp,endDate:J.liveBroadcastDetails.endTimestamp}]);if(J.learningResource){J=J.learningResource;b["@type"]=["VideoObject","LearningResource"];var x;if((x=J.learningResourceType)==
null?0:x.length)b.learningResourceType=J.learningResourceType[0];var P;if((P=J.educationalAlignment)==null?0:P.length)b.educationalAlignment={"@type":"AlignmentObject",targetName:J.educationalAlignment[0]};var p;if((p=J.educationalLevel)==null?0:p.length){x=J.educationalLevel[0];var t;if((t=J.educationalLevelCountry)==null?0:t.length)x+=" ("+J.educationalLevelCountry+")";b.educationalLevel=x}var I,a;if(((I=J.learningResourceType)==null?0:I.length)&&J.learningResourceType[0]==="Problem walkthrough"&&
((a=J.problemDescriptions)==null?0:a.length))for(b.hasPart=[],t=_.M(J.problemDescriptions),I=t.next();!I.done;I=t.next())x=I.value,I=x.problemDescriptionText,a=x.startOffset,x=x.url,I&&a!==void 0&&x&&b.hasPart.push({"@type":["Clip","LearningResource"],learningResourceType:"Problem walkthrough",name:I,text:I,startOffset:a,url:x})}return b};
_.nz4=function(J){return _.J7({type:"SET_IS_LIVE_CHAT_COLLAPSED",payload:{isLiveChatCollapsed:J}})};
P51=[[["YnB3anE0cHJpbWFyeSNqNzBuYmI=",null,null],[null,["ZXF1anEyeXRkLXR3by1jb2x1bW4tYnJvd3NlLXJlc3VsdHMtcmVuZGVyZXIjbGtlcjM2","aGUwYzlkc3R5bGUtc2NvcGUjeXh1aG54"],null],["aGdxZzRzbWFzdGhlYWQtYWQjdHhlMGZx",["czR5bGUyeXRkLXJpY2gtZ3JpZC1yZW5kZXJlciNpNGozNjc="],null],[null,["ZHR0YXo0eXRkLXJpY2gtZ3JpZC1yZW5kZXJlciNsZDVmenA=","MnBmMXo2c3R5bGUtc2NvcGUjYXJ3OTVm"],null],[null,["N3J1OHl0eXRkLWJhbm5lci1wcm9tby1yZW5kZXJlciM3M3hrN2U=","N3ZrdGRkc3R5bGUtc2NvcGUjYWxqNGJr"],null],[null,["M241bHVieXRkLWFkLXNsb3QtcmVuZGVyZXIjMXFiemoz"],
null]],[["dnUyemltcGxheWVyLWFkcyNhdnYxNm4=",null,null]]];cQs="#";IBR=[];tNR=!1;_.Tcf=["engagement-panel-ads"];w1S=new _.Q("updateSentimentBarStateCommand");_.rQh=new _.Q("showSurveyCommand");_.Rj=new _.Q("changeMarkersVisibilityCommand");var LJo,DSR,fBh,uQs,zt1,oj;_.sfp=function(J,c){this.playerProvider_=J;this.actionSenderElement_=c;this.pausePlaybackJob_=this.showBlockingWarningJob_=this.showWarningJob_=0;this.youThereData_=null;this.inYouThereFlow_=this.ignoreFullscreenExitUserActivity_=this.isUserPredictedAbsent_=!1};
_.sfp.prototype.reset=function(){LJo(this);this.isUserPredictedAbsent_=!1};
LJo=function(J,c){!J.youThereData_||J.showWarningJob_||c!==void 0&&c||(_.oi("YOU_THERE_EVENT_TYPE_NAVIGATED_OUT",_.Y3(),J.youThereData_,J.clientPlaybackNonce_),_.YH());_.ft.cancelJob(J.showWarningJob_);J.showWarningJob_=0;_.ft.cancelJob(J.showBlockingWarningJob_);J.showBlockingWarningJob_=0;_.ft.cancelJob(J.pausePlaybackJob_);J.pausePlaybackJob_=0;J.youThereData_=null;J.clientPlaybackNonce_=void 0;J.inYouThereFlow_=!1};
_.WJS=function(J,c){var m,b,x;_.N(function(P){if(P.nextAddress==1)return J.reset(),_.K(P,J.playerProvider_().getPlayerPromise(),2);m=P.yieldResult;J.clientPlaybackNonce_=m.getVideoData().cpn;J.youThereData_=c.configData.youThereData;if(!J.youThereData_)return P.return();if(J.youThereData_.triggerReason&&J.youThereData_.triggerReason=="YOU_THERE_TRIGGER_REASON_3"&&!_.NuF())return _.oi("YOU_THERE_EVENT_TYPE_RATE_LIMITED",_.Y3(),J.youThereData_,J.clientPlaybackNonce_),P.return();b=J.youThereData_.promptDelaySec;
x=m.getCurrentTime();J.showWarningJob_=_.ft.addLowPriorityJob(function(){return _.N(function(p){J.showWarningJob_=0;return _.K(p,DSR(J),0)})},Math.max(b-x,0)*1E3);
_.tD(P)})};
DSR=function(J){var c,m,b,x,P,p;return _.N(function(t){if(t.nextAddress==1)return _.K(t,J.playerProvider_().getPlayerPromise(),2);if(t.nextAddress!=3)return c=t.yieldResult,m=c.getCurrentTime(),_.K(t,zt1(J),3);b=t.yieldResult;if(!b||!J.youThereData_)return t.return();if(_.w("check_user_lact_at_prompt_shown_time_on_web")&&(x=parseInt(J.youThereData_.lactThresholdMs,10),_.cO()<x))return _.oi("YOU_THERE_EVENT_TYPE_BELOW_LACT_THRESHOLD",_.Y3(),J.youThereData_,J.clientPlaybackNonce_),t.return();if(J.youThereData_.playbackPauseDelayMs<=
0)return uQs(J),t.return();!_.w("external_fullscreen")&&(P=_.yM())&&(J.ignoreFullscreenExitUserActivity_=!0,_.ft.addLowPriorityJob(function(){J.ignoreFullscreenExitUserActivity_=!1},2E3),_.BS(P));
J.youThereData_.showToastWarningPrompt&&(oj(J,J.youThereData_.showWarningActions),J.inYouThereFlow_=!0,_.oi("YOU_THERE_EVENT_TYPE_PROMPT_SHOWN",_.Y3(),J.youThereData_,J.clientPlaybackNonce_,m),_.oi("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN",_.Y3(),J.youThereData_,J.clientPlaybackNonce_,m));p=0;J.youThereData_.blockingPromptDelayMs&&(p=J.youThereData_.blockingPromptDelayMs);J.showBlockingWarningJob_=_.ft.addLowPriorityJob(function(){return _.N(function(I){J.showBlockingWarningJob_=0;return _.K(I,
fBh(J),0)})},p);
_.tD(t)})};
fBh=function(J){var c,m,b;return _.N(function(x){if(x.nextAddress==1)return _.K(x,zt1(J),2);c=x.yieldResult;if(!J.youThereData_)return x.return();c&&(J.youThereData_.showBlockingWarningAction&&(_.oi("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN_IN_DIALOG",_.Y3(),J.youThereData_,J.clientPlaybackNonce_),(m=_.L(J.youThereData_.showBlockingWarningAction,_.pX))?oj(J,m.commands):oj(J,[J.youThereData_.showBlockingWarningAction]),J.inYouThereFlow_=!0),b=J.youThereData_.playbackPauseDelayMs,J.pausePlaybackJob_=
_.ft.addLowPriorityJob(function(){return _.N(function(P){J.pausePlaybackJob_=0;return _.K(P,uQs(J),0)})},b));
_.tD(x)})};
uQs=function(J){var c;return _.N(function(m){if(m.nextAddress==1)return _.K(m,zt1(J),2);c=m.yieldResult;if(!J.youThereData_)return m.return();c&&(_.oi("YOU_THERE_EVENT_TYPE_PLAYBACK_PAUSED",_.Y3(),J.youThereData_,J.clientPlaybackNonce_),oj(J,J.youThereData_.showPausedActions),J.inYouThereFlow_=!0);_.tD(m)})};
_.sfp.prototype.onUserActivity=function(){if(this.youThereData_){if(this.ignoreFullscreenExitUserActivity_)return;if(this.youThereData_.userActiveDuringFlowAction){var J=_.L(this.youThereData_.userActiveDuringFlowAction,_.pX);J?oj(this,J.commands):oj(this,[this.youThereData_.userActiveDuringFlowAction])}this.inYouThereFlow_&&(_.oi("YOU_THERE_EVENT_TYPE_LACT_RESET",_.Y3(),this.youThereData_,this.clientPlaybackNonce_),_.YH());LJo(this,!0)}_.YC5(this,!1)};
_.X1R=function(J){_.oi("YOU_THERE_EVENT_TYPE_USER_RESPONDED",_.Y3(),J.youThereData_,J.clientPlaybackNonce_)};
zt1=function(J){var c,m;return _.N(function(b){if(b.nextAddress==1)return _.K(b,J.playerProvider_().getPlayerPromise(),2);c=b.yieldResult;m=c.getPlayerState();return b.return(m==-1||m==1||m==3)})};
_.YC5=function(J,c){var m;_.N(function(b){if(b.nextAddress==1){if(J.isUserPredictedAbsent_==c)return b.jumpTo(0);J.isUserPredictedAbsent_=c;return _.K(b,J.playerProvider_().getPlayerPromise(),3)}m=b.yieldResult;m.setUserEngagement(c);c&&_.oi("YOU_THERE_EVENT_TYPE_ABR_TRIGGERED",_.Y3(),J.youThereData_,J.clientPlaybackNonce_);_.tD(b)})};
oj=function(J,c){if(_.w("handle_service_request_actions")||_.w("kevlar_youthere_service_endpoint_actions_killswitch"))_.PA(J.actionSenderElement_,c,J.actionSenderElement_);else{c=_.M(c);for(var m=c.next();!m.done;m=c.next())m=m.value,m.commandMetadata&&m.commandMetadata.webCommandMetadata&&m.commandMetadata.webCommandMetadata.sendPost?_.Vq(J.actionSenderElement_,[m]):_.PA(J.actionSenderElement_,[m],J.actionSenderElement_)}};var ZR1;var qCR;var QN=function(){var J=_.h.apply(this,arguments)||this;J.systemIcons=_.w("kevlar_system_icons");J.actionMap={"yt-update-sentiment-bar-state-command":"handleUpdateSentimentBarStateCommand"};return J};
_.D(QN,_.h);QN.prototype.observeLikeStatus=function(){if(this.data){if(this.data.likeStatus==="DISLIKE"){var J=this.data.percentIfDisliked||0;this.activated=!0}else this.data.likeStatus==="LIKE"?(J=this.data.percentIfLiked||0,this.activated=!0):(J=this.data.percentIfIndifferent||0,this.activated=!1);_.Bj(this.hostElement).querySelector("#like-bar").style.width=J+"%"}};
QN.prototype.handleUpdateSentimentBarStateCommand=function(J){this.data&&this.set("data.likeStatus",_.L(J,w1S).likeStatus)};
QN.prototype.observeLikeStatus=QN.prototype.observeLikeStatus;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],QN.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],QN.prototype,"ytActionHandlerBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],QN.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],QN.prototype,"activated",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],QN.prototype,"systemIcons",void 0);_.O([_.NE("data.likeStatus"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],QN.prototype,"observeLikeStatus",null);QN=_.O([_.E({is:"ytd-sentiment-bar-renderer",disableElementRegistration:!0})],QN);
_.v(QN,"ytd-sentiment-bar-renderer",function(){if(qCR!==void 0)return qCR;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return qCR=J},{mode:1});var USs;var eS=function(){var J=_.h.apply(this,arguments)||this;J.small=!0;return J};
_.D(eS,_.h);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],eS.prototype,"ytComponentBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],eS.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],eS.prototype,"small",void 0);eS=_.O([_.E({disableElementRegistration:!0,is:"ytd-video-view-count-renderer"})],eS);
_.v(eS,"ytd-video-view-count-renderer",function(){if(USs!==void 0)return USs;var J=document.createElement("template");_.z(J,'\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>');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return USs=J},{mode:_.mP("kevlar_poly_si_batch_j080")?1:2});var jS=function(){var J=_.h.apply(this,arguments)||this;J.infoFormattedStrings=[];J.wrapVideoActions=_.w("kevar_watch_wrap_video_actions");J.hideSentimentBar=_.w("kevlar_watch_hide_sentiment_bar");J.actionMap={};return J};
_.D(jS,_.h);_.V=jS.prototype;_.V.configureRendererStamper=function(){return{"data.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.w("web_modern_buttons"),forceIconButton:!_.w("web_modern_buttons")}}}},"data.viewCount":{id:"count",mapping:{videoViewCountRenderer:"ytd-video-view-count-renderer"}}}};
_.V.dataChanged=function(){_.w("web_watch_get_updated_metadata_manager")||this.scheduleInitialUpdatedMetadataRequest();this.setSentimentBarWidth()};
_.V.computeInfoFormattedStrings=function(J){if(!J)return[];var c=[];J.dateText&&c.push(J.dateText);J.stationName&&c.push(J.stationName);J.rating&&c.push(J.rating);J.startEndTimeTemplate&&J.startTimeUtcMillis&&J.endTimeUtcMillis&&c.push(_.v2(_.sKf(_.OG(J.startEndTimeTemplate),Number(J.startTimeUtcMillis),Number(J.endTimeUtcMillis))));J.upNextProgramText&&c.push(J.upNextProgramText);return c};
_.V.scheduleInitialUpdatedMetadataRequest=function(){var J,c=(J=this.data)==null?void 0:J.updatedMetadataEndpoint;if(c){var m;J=Number((m=_.L(c,_.Po$))==null?void 0:m.initialDelayMs);m=isNaN(J)?250:J;this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this),m)}};
_.V.setSentimentBarWidth=function(){var J=this;_.o3(this,function(){var c=_.Bj(J.hostElement).querySelector("ytd-menu-renderer");if(c){c=c.topLevelButtons;for(var m=0,b=0;b<c.length;b++){var x=c[b],P=J.get("toggleButtonSupportedData.toggleButtonIdData.id",x.data);if(P==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"||P==="TOGGLE_BUTTON_ID_TYPE_LIKE")m+=x.clientWidth+8;else break}m&&(J.sentiment.style.width=m-8+" px")}})};
_.V.fetchUpdatedMetadata=function(J){var c;J&&(c={continuation:J});var m;(J=(m=this.data)==null?void 0:m.updatedMetadataEndpoint)&&_.BG().resolve(_.gu).resolveCommand(J,{form:Object.assign({},c,{element:this.hostElement})})};
_.V.onYtServiceRequestSent=function(J,c){c.endpoint&&_.L(c.endpoint,_.$R)&&(this.hasUpdateSentimentBarStateCommands()&&!_.w("kevlar_sentiment_bar_update_killswitch")||this.set("data.sentimentBar.sentimentBarRenderer.likeStatus",_.L(c.endpoint,_.$R).status),this.setSentimentBarWidth())};
_.V.hasUpdateSentimentBarStateCommands=function(){var J,c,m,b,x=(b=(J=this.data)==null?void 0:(c=J.videoActions)==null?void 0:(m=c.menuRenderer)==null?void 0:m.topLevelButtons)!=null?b:[];J=_.M(x);for(c=J.next();!c.done;c=J.next()){c=c.value;x=b=m=void 0;var P=(m=c.toggleButtonRenderer)==null?void 0:(b=m.toggleButtonSupportedData)==null?void 0:(x=b.toggleButtonIdData)==null?void 0:x.id;if(P==="TOGGLE_BUTTON_ID_TYPE_LIKE"||P==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"){b=m=void 0;c=(b=_.L((m=c.toggleButtonRenderer)==
null?void 0:m.defaultServiceEndpoint,_.pX))==null?void 0:b.commands;if(!c)break;c=_.M(c);for(m=c.next();!m.done;m=c.next())if(_.L(m.value,w1S))return!0}}return!1};
_.V.onYtServiceRequestCompleted=function(J,c){var m;(J=(m=c.data)==null?void 0:m.loggingDirectives)&&_.r_J(_.C7(),J);this.get("continuation.timedContinuationData",c.data)&&this.data&&this.data.updatedMetadataEndpoint&&(c=c.data.continuation.timedContinuationData,this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this,c.continuation),c.timeoutMs))};
_.V.computeHasDateText=function(J){return!!J&&!!J.dateText};
_.eE.Object.defineProperties(jS.prototype,{flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var J,c,m,b;return!((b=(J=this.data)==null?void 0:(c=J.videoActions)==null?void 0:(m=c.menuRenderer)==null?void 0:m.flexibleItems)==null||!b.length)}}});
jS.prototype.onYtServiceRequestCompleted=jS.prototype.onYtServiceRequestCompleted;jS.prototype.onYtServiceRequestSent=jS.prototype.onYtServiceRequestSent;jS.prototype.dataChanged=jS.prototype.dataChanged;_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],jS.prototype,"ytActionHandlerBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],jS.prototype,"ytRendererBehavior",void 0);
_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],jS.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.Qw.YtTaskEmitterBehavior),_.R("design:type",Object)],jS.prototype,"ytTaskEmitterBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],jS.prototype,"data",void 0);_.O([_.U({computed:"computeInfoFormattedStrings(data)"}),_.R("design:type",Array)],jS.prototype,"infoFormattedStrings",void 0);
_.O([_.U({computed:"computeHasDateText(data)",reflectToAttribute:!0}),_.R("design:type",Boolean)],jS.prototype,"hasDateText",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],jS.prototype,"wrapVideoActions",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],jS.prototype,"hideSentimentBar",void 0);_.O([_.U({reflectToAttribute:!0}),_.q("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],jS.prototype,"flexMenuEnabled",null);
_.O([_.Iu("#sentiment"),_.R("design:type",Object)],jS.prototype,"sentiment",void 0);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],jS.prototype,"dataChanged",null);_.O([_.ps("yt-service-request-sent"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,_.qd]),_.R("design:returntype")],jS.prototype,"onYtServiceRequestSent",null);
_.O([_.ps("yt-service-request-completed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,_.Oi]),_.R("design:returntype")],jS.prototype,"onYtServiceRequestCompleted",null);
_.v(jS,"ytd-video-primary-info-renderer",function(){if(ZR1===void 0){var J=document.createElement("template");_.z(J,'\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>');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);ZR1=J}J=ZR1;return J},{mode:1});var SCh;var Fu=function(){var J=_.h.apply(this,arguments)||this;J.actionMap={"yt-update-date-text-action":"handleUpdateDateTextAction","yt-update-description-action":"handleUpdateDescriptionAction","yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return J};
_.D(Fu,_.h);_.V=Fu.prototype;_.V.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"}}}};
_.V.dataChanged=function(){var J;this.descriptionToggled=!((J=this.data)==null||!J.defaultExpanded);var c;this.collapsed=this.descriptionAlwaysCollapsed||!((c=this.data)==null?0:c.defaultExpanded);this.subscribeButtonData=this.data.subscribeButton;this.descriptionCollapsedHeight=(this.data.descriptionCollapsedLines||3)*20;this.showMoreClientVe=_.rs(110509);this.showLessClientVe=_.rs(110510);J=_.Y3();c=_.fl();J&&c&&_.Gm(J,c,[this.showMoreClientVe,this.showLessClientVe])};
_.V.onYtExpanderMoreTapped=function(){var J,c=(J=this.data)==null?void 0:J.showMoreCommand;c&&!this.hasInlineStructuredDescription&&this.componentBehavior.resolveCommand(c);(J=_.Y3())&&this.showMoreClientVe&&_.AS(J,this.showMoreClientVe)};
_.V.onYtExpanderLessTapped=function(){var J=_.Y3();J&&this.showLessClientVe&&_.AS(J,this.showLessClientVe);var c;(J=(c=this.data)==null?void 0:c.showLessCommand)&&this.componentBehavior.resolveCommand(J)};
_.V.handleUpdateDateTextAction=function(J){this.data&&this.data.dateText&&this.set("data.dateText",_.L(J,_.ylf).dateText)};
_.V.handleUpdateDescriptionAction=function(J){if(J=_.L(J,_.yVQ))J.isEmpty||!J.description?this.description.hidden=!0:this.hasAttributedDescription?this.set("data.attributedDescription",_.uv(J.description)):this.set("data.description",J.description)};
_.V.onYtChangeEngagementPanelVisibilityAction=function(J){if(_.w("web_structured_description_show_more")||_.w("web_engagement_panel_open_description")){var c,m=(c=_.L(J,_.Egz))==null?void 0:c.targetId,b;J=((b=_.L(J,_.Egz))==null?void 0:b.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED";m==="engagement-panel-structured-description"&&J&&(this.descriptionToggled=!0)}};
_.V.updateCollapsedFromBinding=function(J){this.collapsed=J.detail.value};
_.V.updateDescriptionToggledFromBinding=function(J){this.descriptionToggled=J.detail.value};
_.V.updateCanCollapseFromBinding=function(J){this.canCollapse=J.detail.value};
_.eE.Object.defineProperties(Fu.prototype,{metadataCollapsible:{configurable:!0,enumerable:!0,get:function(){var J,c,m=(J=this.data)==null?void 0:(c=J.metadataRowContainer)==null?void 0:c.metadataRowContainerRenderer;return!!m&&!!m.rows&&m.rows.length>m.collapsedItemCount}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!!this.structuredDescriptionContentRenderer}},
hasAttributedDescription:{configurable:!0,enumerable:!0,get:function(){var J;return!((J=this.data)==null||!J.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}}});
Fu.prototype.onYtExpanderLessTapped=Fu.prototype.onYtExpanderLessTapped;Fu.prototype.onYtExpanderMoreTapped=Fu.prototype.onYtExpanderMoreTapped;Fu.prototype.dataChanged=Fu.prototype.dataChanged;_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],Fu.prototype,"ytActionHandlerBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Fu.prototype,"ytRendererBehavior",void 0);
_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],Fu.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],Fu.prototype,"componentBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Fu.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Boolean)],Fu.prototype,"collapsed",void 0);_.O([_.U(),_.R("design:type",Boolean)],Fu.prototype,"descriptionToggled",void 0);
_.O([_.U(),_.R("design:type",Boolean)],Fu.prototype,"canCollapse",void 0);_.O([_.U(),_.R("design:type",Object)],Fu.prototype,"subscribeButtonData",void 0);_.O([_.U(),_.R("design:type",Number)],Fu.prototype,"descriptionCollapsedHeight",void 0);_.O([_.U(),_.R("design:type",Object)],Fu.prototype,"structuredDescriptionContentRenderer",void 0);_.O([_.U({value:function(){return _.w("web_watch_description_always_collapsed")}}),
_.R("design:type",Boolean)],Fu.prototype,"descriptionAlwaysCollapsed",void 0);_.O([_.Iu("#description"),_.R("design:type",HTMLDivElement)],Fu.prototype,"description",void 0);_.O([_.kr("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Fu.prototype,"dataChanged",null);_.O([_.ps("yt-expander-more-tapped"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Fu.prototype,"onYtExpanderMoreTapped",null);
_.O([_.ps("yt-expander-less-tapped"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Fu.prototype,"onYtExpanderLessTapped",null);_.O([_.q("data.metadataRowContainer"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Fu.prototype,"metadataCollapsible",null);_.O([_.q("data","structuredDescriptionContentRenderer"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Fu.prototype,"hasInlineStructuredDescription",null);
_.O([_.q("data.attributedDescription"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Fu.prototype,"hasAttributedDescription",null);_.O([_.q("hasInlineStructuredDescription","collapsed"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Fu.prototype,"loadStructuredDescription",null);_.O([_.q("data","structuredDescriptionContentRenderer","collapsed"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Fu.prototype,"showInlineStructuredDescription",null);
_.O([_.q("data","hasInlineStructuredDescription","metadataCollapsible"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Fu.prototype,"descriptionAlwaysCollapsible",null);
_.v(Fu,"ytd-video-secondary-info-renderer",function(){if(SCh===void 0){var J=document.createElement("template");_.z(J,'\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>');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);SCh=J}J=SCh;return J},{mode:2});var htf;var l7=function(){return _.h.apply(this,arguments)||this};
_.D(l7,_.h);l7.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:_.w("web_modern_buttons"),forceIconButton:!_.w("web_modern_buttons")}}}},"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
l7.prototype.activate=function(J){J.appendTo(this.player);J.getPlayerPromise().then(function(c){c.setMinimized(!0)});
this.active=!0};
l7.prototype.deactivate=function(){var J=this.player.firstElementChild;J.getPlayerPromise().then(function(c){c.setMinimized(!1)});
this.active=!1;return J};
l7.prototype.onScrollUpTap=function(){var J=_.BG().resolve(_.oO).getCurrentPage();J&&J.setScrollTop(0)};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],l7.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],l7.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],l7.prototype,"componentBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],l7.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],l7.prototype,"active",void 0);
_.O([_.U({reflectToAttribute:!0,value:function(){return _.w("kevlar_watch_while_miniplayer_bar_dark_launch")}}),
_.R("design:type",Boolean)],l7.prototype,"darkLaunch",void 0);_.O([_.Iu("#player"),_.R("design:type",HTMLDivElement)],l7.prototype,"player",void 0);l7=_.O([_.E({disableElementRegistration:!0,is:"ytd-miniplayer-bar-renderer"})],l7);
_.v(l7,"ytd-miniplayer-bar-renderer",function(){if(htf!==void 0)return htf;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return htf=J},{mode:1});_.lv(_.Q1(function(J){var c=_.oN("script");_.ui(function(){var m;if(m=JSON)m=iRu(J.data()),m=_.S3(JSON.stringify(m).replace(/</g,"\\u003C"));var b=J.data(),x=_.OG(b.title).trim().length===0,P=!b.publishDate||b.publishDate.trim().length===0,p,t,I,a,k=!((p=b.thumbnail)==null?0:(t=p.thumbnails)==null?0:t.length)||!((I=b.thumbnail)==null?0:I.thumbnails[0].url)||((a=b.thumbnail)==null?void 0:a.thumbnails[0].url.trim().length)===0;c.value&&m&&!(x||P||k)&&_.da(c.value,m)},"I9AhLd");
return _.C("player-microformat-renderer",{class:"playerMicroformatRendererHost"},_.C("script",{el:c,type:"application/ld+json"}))},"rj"),"player-microformat-renderer",{props:{data:_.Fz}});
}catch(e){_._DumpException(e)}
try{
var l$h;_.RUf=function(J){return J.watch.watchWindowSize};
_.okp=function(J){return _.J7({type:"SET_IS_WATCH_ACTIVE",payload:{isWatchActive:J}})};
l$h=function(J){_.DS.call(this);var c=this;this.JSC$20429_watchApi=J;J=_.Nh(_.Rc(),_.ODQ,function(){Qqo(c)});
this.addOnDisposeCallback(J);J=_.Nh(_.Rc(),_.RUf,function(){Qqo(c)});
this.addOnDisposeCallback(J);eUh(this);jqu(this);Fb4()};
_.D(l$h,_.DS);var eUh=function(J){var c=function(b){_.Rc().dispatch(_.Hjf(b.matches))},m=window.matchMedia("(max-width: "+(999+_.Dm())+"px)");
m.addListener(c);J.addOnDisposeCallback(function(){m.removeListener(c)});
c(m)},jqu=function(J){J.JSC$20429_watchApi.registerActionHandler("yt-window-resized",function(){Fb4()});
J.addOnDisposeCallback(function(){J.JSC$20429_watchApi.unregisterActionHandler("yt-window-resized")})},Fb4=function(){var J=_.a1();
_.Rc().dispatch(_.J7({type:"SET_WATCH_WINDOW_SIZE",payload:{watchWindowSize:{width:J.width,height:J.height}}}))},Qqo=function(J){var c;
_.N(function(m){if(m.nextAddress==1)return _.K(m,J.JSC$20429_watchApi.playerApi,2);c=m.yieldResult;c.setSize(NaN,NaN);_.tD(m)})};_.G0=function(J){_.ei.call(this);var c=this;this.rootElement=J;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return c.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(m){c.initOrDisposeActiveModules(m)}));
this.onAttached()};
_.D(_.G0,_.ei);_.V=_.G0.prototype;_.V.getRoot=function(){return this.rootElement};
_.V.getElement=function(J){return this.rootElement.getElement(J)};
_.V.setPlayerResponse=function(J){this.playerResponse=J;this.publish("PLAYER_RESPONSE_UPDATED",J)};
_.V.getPlayerResponse=function(){return this.playerResponse};
_.V.setWatchNextResponse=function(J){this.watchNextResponse===J?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=J,this.publish("WATCH_NEXT_RESPONSE_UPDATED",J))};
_.V.getWatchNextResponse=function(){return this.watchNextResponse};
_.V.registerActionHandler=function(J,c){var m=this;if(_.w("web_watch_controller_reg_multiple_handlers_killswitch")){var b={};_.Oe(_.vO.getInstance(),(b[J]=c,b),this.getRoot())}else this.actionHandlers.has(J)||(this.actionHandlers.set(J,[]),b={},_.Oe(_.vO.getInstance(),(b[J]=function(){var x=_.s$.apply(0,arguments);return(m.actionHandlers.get(J)||[]).map(function(P){return P.apply(null,_.L6(x))})},b),this.getRoot())),this.actionHandlers.get(J).push(c)};
_.V.unregisterActionHandler=function(J){if(_.w("web_watch_controller_reg_multiple_handlers_killswitch")){var c={};_.AI(_.vO.getInstance(),(c[J]=!0,c),this.getRoot())}else(c=this.actionHandlers.get(J))?(c.pop(),c.length===0&&(c={},_.AI(_.vO.getInstance(),(c[J]=!0,c),this.getRoot()),this.actionHandlers.delete(J))):_.qz(new _.w3("Attempted to unregister an action handler which is not registered.",J))};
_.V.addPageDisposeJob=function(J){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.QJ(this.rootElement.pageDisposeJobs,J)};
_.V.removePageDisposeJob=function(J){this.rootElement.pageDisposeJobs&&_.j2(this.rootElement.pageDisposeJobs,J)};
_.V.dispatchEvent=function(J,c){_.cA(this.rootElement,J,c)};
_.V.provideRenderingData=function(J,c){this.rootElement.provideRenderingData(J,c)};
_.V.scrollWatchTo=function(J,c){var m;(m=this.watchScrollManager)==null||m.scrollWatchTo(J,c)};
_.V.focusOnPlayer=function(){var J=this.getElement("PLAYER");_.o3(J,function(){if(J&&J.firstElementChild){var c=J.querySelector(".html5-video-player");c&&(_.eO(_.BG().resolve(_.Lq)),c.focus())}else _.qz(Error("jm"))})};
_.V.updateCinematicFullscreenConfig=function(){var J=!!this.rootElement.theater,c=!!this.rootElement.fullscreen,m;(m=this.watchCinematicManager)==null||_.R34(m,c,J)};
_.V.subscribeToActiveChanged=function(J,c){c=c===void 0?!0:c;var m=_.Nh(_.Rc(),_.LDu,function(b){J(b)});
c&&J(_.LDu(_.Rc().getState()));return m};
_.V.isActive=function(){return _.LDu(_.Rc().getState())};
_.V.onAttached=function(){var J=_.w("external_fullscreen");_.w("use_unified_flag_accessor")&&(J=_.BG().resolve(_.kDR).retriever.getFlag(_.wR_));(J||_.Ss("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
var y1s=function(J){return J.getRoot().is==="ytd-watch-flexy"||J.getRoot().is==="ytd-watch-grid"},Et=function(J){return J.getRoot().is==="ytd-watch-fixie"};
_.G0.prototype.initPersistentModules=function(){if(Et(this)||y1s(this)&&_.w("kevlar_watch_flexy_theater_manager")){var J=new _.nms(this);_.Kc(this,J)}J=new _.bT5(this);_.Kc(this,J);J=new _.fh(this);_.Kc(this,J);J=new _.h9(this);_.Kc(this,J);J=new _.ZTh(this);_.Kc(this,J);J=new _.Xu(this);_.Kc(this,J);if(Et(this)||y1s(this)&&_.w("kevlar_watch_flexy_playlist_manager"))J=new _.SN1(this),_.Kc(this,J)};
_.G0.prototype.initOrDisposeActiveModules=function(J){J?(this.watchScrollManager=new _.$n(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.iT1(this)),this.activeModules.push(new _.sX5(this)),Et(this)&&this.activeModules.push(new l$h(this)),this.activeModules.push(new _.vk5(this)),this.activeModules.push(new _.dN(this)),(Et(this)||_.w("kevlar_watch_flexy_error_screen_data_provider"))&&this.activeModules.push(new _.zq5(this)),this.activeModules.push(new _.Lb5(this)),
(Et(this)||_.w("kevlar_watch_flexy_ypc_manager"))&&this.activeModules.push(new _.A1e(this)),(Et(this)||_.w("kevlar_watch_flexy_ads_manager"))&&this.activeModules.push(new _.S6h(this)),_.w("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.Em1(this),this.activeModules.push(this.watchCinematicManager),this.updateCinematicFullscreenConfig()),_.w("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.uKf(this)),_.w("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.c1F(this)),
J=_.w("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.w("kevlar_watch_flexy_comments_manager")&&!J&&this.activeModules.push(new _.lTR(this)),_.w("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.Yn(this)),this.activeModules.push(new _.z3r(this)),this.activeModules.push(new _.TGs(this)),_.w("web_enable_timely_actions")&&this.activeModules.push(new _.XMf(this)),_.w("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.gfu(this)),
_.w("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.Rqp(this)),_.w("web_fullscreen_video_action_bar")&&this.activeModules.push(new _.XhS(this)),_.w("web_player_rtr_ctrls")&&this.activeModules.push(new _.cj1(this))):(_.Bm(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.G0.prototype.disposeInternal=function(){_.ei.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.eE.Object.defineProperties(_.G0.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});
}catch(e){_._DumpException(e)}
try{
var amR,sN,ku1,HDs,nXF,Tk5,iDS,wnp;amR=function(){var J=_.nX();J.info||(J.info={});return J.info};
sN=function(J){return Math.round(_.wM()+J)};
ku1=function(){var J;if(_.w("csi_use_performance_navigation_timing")){var c,m,b,x=_.Tm==null?void 0:(J=_.Tm.getEntriesByType)==null?void 0:(c=J.call(_.Tm,"navigation"))==null?void 0:(m=c[0])==null?void 0:(b=m.toJSON)==null?void 0:b.call(m);x?(x.requestStart=sN(x.requestStart),x.responseEnd=sN(x.responseEnd),x.redirectStart=sN(x.redirectStart),x.redirectEnd=sN(x.redirectEnd),x.domainLookupEnd=sN(x.domainLookupEnd),x.connectStart=sN(x.connectStart),x.connectEnd=sN(x.connectEnd),x.responseStart=sN(x.responseStart),
x.secureConnectionStart=sN(x.secureConnectionStart),x.domainLookupStart=sN(x.domainLookupStart),x.isPerformanceNavigationTiming=!0,J=x):J=_.Tm.timing}else J=_.w("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(_.Tm.timing)):_.Tm.timing;return J};
HDs=function(){if(_.Tm.getEntriesByType){var J=_.Tm.getEntriesByType("paint");if(J=_.$t(J,function(m){return m.name==="first-paint"}))return sN(J.startTime)}var c;
_.w("csi_use_performance_navigation_timing")?c=_.Tm.getEntriesByType("first-paint")[0].startTime:c=_.Tm.timing.msFirstPaint;return c?Math.max(0,c):0};
nXF=function(){var J=window.location.protocol,c=_.Tm.getEntriesByType("resource");c=_.BH(c,function(m){return m.name.indexOf(J+"//fonts.gstatic.com/s/")===0});
(c=iDS(c,function(m,b){return b.duration>m.duration?b:m}))&&c.startTime>0&&c.responseEnd>0&&(_.LX("wffs",sN(c.startTime)),_.LX("wffe",sN(c.responseEnd)))};
Tk5=function(J,c){J=document.querySelector(J);if(!J)return!1;var m="",b=J.nodeName;b==="SCRIPT"?(m=J.src,m||(m=J.getAttribute("data-timing-href"))&&(m=window.location.protocol+m)):b==="LINK"&&(m=J.href);_.q2(document)&&J.setAttribute("nonce",_.q2(document));return m?(J=_.Tm.getEntriesByName(m))&&J[0]&&(J=J[0],m=_.wM(),_.LX("rsf_"+c,m+Math.round(J.fetchStart)),_.LX("rse_"+c,m+Math.round(J.responseEnd)),J.transferSize!==void 0&&J.transferSize===0)?!0:!1:!1};
_.LT=function(J,c){_.du(function(){_.SZm("").info.actionType=J;c&&_.q3("TIMING_AFT_KEYS",c);_.q3("TIMING_ACTION",J);var m=_.yEt(_.Ub("TIMING_INFO",{}));Object.keys(m).length>0&&_.Du(m);m={isNavigation:!0,actionType:_.$Bq(_.Ub("TIMING_ACTION"))};var b=_.Ub("PREVIOUS_ACTION");b&&(m.previousAction=_.$Bq(b));if(b=_.Ub("CLIENT_PROTOCOL"))m.httpProtocol=b;if(b=_.Ub("CLIENT_TRANSPORT"))m.transportProtocol=b;(b=_.Y3())&&b!=="UNDEFINED_CSN"&&(m.clientScreenNonce=b);b=_.lft();if(b===1||b===-1)m.isVisible=!0;
b=_.u8D().loadType==="cold";var x=amR();b||(b=x.yt_lt==="cold");if(b){m.loadType="cold";b=amR();x=ku1();var P=_.wM(),p=_.Ub("CSI_START_TIMESTAMP_MILLIS",0);p>0&&!_.w("embeds_web_enable_csi_start_override_killswitch")&&(P=p);P&&(_.LX("srt",x.responseStart),b.prerender!==1&&_.AEf(P));b=HDs();b>0&&_.LX("fpt",b);b=ku1();b.isPerformanceNavigationTiming&&_.Du({performanceNavigationTiming:!0},void 0);_.LX("nreqs",b.requestStart,void 0);_.LX("nress",b.responseStart,void 0);_.LX("nrese",b.responseEnd,void 0);
b.redirectEnd-b.redirectStart>0&&(_.LX("nrs",b.redirectStart,void 0),_.LX("nre",b.redirectEnd,void 0));b.domainLookupEnd-b.domainLookupStart>0&&(_.LX("ndnss",b.domainLookupStart,void 0),_.LX("ndnse",b.domainLookupEnd,void 0));b.connectEnd-b.connectStart>0&&(_.LX("ntcps",b.connectStart,void 0),_.LX("ntcpe",b.connectEnd,void 0));b.secureConnectionStart>=_.wM()&&b.connectEnd-b.secureConnectionStart>0&&(_.LX("nstcps",b.secureConnectionStart,void 0),_.LX("ntcpe",b.connectEnd,void 0));_.Tm&&"getEntriesByType"in
_.Tm&&nXF();b=[];if(document.querySelector&&_.Tm&&_.Tm.getEntriesByName)for(var t in wnp)wnp.hasOwnProperty(t)&&(x=wnp[t],Tk5(t,x)&&b.push(x));if(b.length>0)for(m.resourceInfo=[],t=_.M(b),b=t.next();!b.done;b=t.next())m.resourceInfo.push({resourceCache:b.value})}_.Du(m);m=_.YZ3();m.preLoggedGelInfos||(m.preLoggedGelInfos=[]);t=m.preLoggedGelInfos;m=_.Xsf();b=void 0;for(x=0;x<t.length;x++)if(P=t[x],P.loadType){b=P.loadType;break}if(_.u8D().loadType==="cold"&&(m.loadType==="cold"||b==="cold")){b=_.ff2();
x=_.YZ3();x=x.gelTicks?x.gelTicks:x.gelTicks={};for(var I in b)if(!(I in x))if(typeof b[I]==="number")_.LX(I,_.WA(I));else if(_.w("log_repeated_ytcsi_ticks"))for(P=_.M(b[I]),p=P.next();!p.done;p=P.next())p=p.value,_.LX(I.slice(1),p);I={};b=!1;t=_.M(t);for(x=t.next();!x.done;x=t.next())b=x.value,_.Xze(m,b),_.Xze(I,b),b=!0;b&&_.Du(I)}_.gcG(!0);I=_.Ub("TIMING_ACTION");_.$y("ytglobal.timingready_")&&I&&_.NDo()&&_.B2J()&&_.jEG()})()};
iDS=function(J,c){return Array.prototype.reduce.call(J,c,{duration:0})};
wnp={'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 r_R={};r_R.YtVisibilityRootBehavior=[_.B0Q.YtVisibilityObserverBehavior,{isVisibilityRoot:!0,resetVisibilityRoot:function(){_.yr(this.visibilityObserverForChild_)},
disconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.disconnect(_.Ub("INNERTUBE_CLIENT_NAME")==="WEB")},
reconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.reconnect();var J=_.Ub("INNERTUBE_CLIENT_NAME")!=="WEB";_.w("kevlar_use_vimio_behavior")&&J&&_.yga()}}];_.D$={};_.D$.YtPageBehavior=[[{listeners:{"yt-get-context-provider":"getContextProvider_"},attached:function(){this.getProvidedContext()&&this.getProvidedContext().start()},
detached:function(){this.getProvidedContext()&&this.getProvidedContext().pause()},
getContextProvider_:function(J){J.detail.contextProvider=this;J.stopPropagation()},
getProvidedContext:function(){return null}},
{created:function(){this.pageContext=null},
getProvidedContext:function(){return this.pageContext}}],
r_R.YtVisibilityRootBehavior,{_noAccessors:!0,properties:{active:Boolean,data:Object,loading:Boolean,pageDisposeJobs:Array},observers:["ytPageBehaviorActiveObserver_(active)"],created:function(){this.pageCount=0;this.readyResolver_=_.$x();this.pageScrollElement=null;this.isVisibilityRoot=!0},
ready:function(){this.readyResolver_.resolve()},
getReady:function(){return this.readyResolver_.promise},
loadPage:function(J){var c=this;this.pageCount+=1;_.w("kevlar_use_vimio_behavior")&&(_.Ub("INNERTUBE_CLIENT_NAME")==="WEB"?_.ft.addJob(function(){c.reconnectVisibilityRoot()},8):(this.disconnectVisibilityRoot(),this.reconnectVisibilityRoot()));
this.loadPage_(J)},
loadPage_:function(J){this.data=J},
ytPageBehaviorActiveObserver_:function(J){var c=this;_.w("kevlar_use_vimio_behavior")&&(J?_.Ub("INNERTUBE_CLIENT_NAME")==="WEB"?_.ft.addJob(function(){c.reconnectVisibilityRoot()},8):this.reconnectVisibilityRoot():this.disconnectVisibilityRoot())},
setScrollTop:function(J){if(!this.setScrollTopJobId_){var c=this;this.setScrollTopJobId_=window.requestAnimationFrame(function(){c.setScrollTopJobId_=0;var m=_.BG().resolve(_.y6(_.Lq));m&&_.eO(m);this.getPageScrollingElement().scrollTop=J}.bind(this))}},
getPageScrollingElement:function(){return this.pageScrollElement||_.i_(document)},
getScrollTop:function(){return this.getPageScrollingElement().scrollTop}}];
}catch(e){_._DumpException(e)}
try{
var CZs;var rG=function(){var J=_.h.apply(this,arguments)||this;J.playerListenerConfig=null;J.actionMap={"yt-show-watch-page-survey":"openSurvey"};return J};
_.D(rG,_.h);_.V=rG.prototype;_.V.dataChanged=function(){var J=this,c=_.ep();c&&c.getPlayerPromise().then(function(b){J.maybeRemovePlayerListeners(b)});
var m=this.data&&this.data.survey;m&&((m=(m=m.singleOptionSurveyRenderer||m.checkboxSurveyRenderer||m.multiStageSurveyRenderer)&&m.watchPageDisplayTriggers)?this.triggerWatchPageSurvey(c,m):this.openSurvey())};
_.V.triggerWatchPageSurvey=function(J,c){var m=this,b,x,P,p,t,I,a,k,H;return _.N(function(T){if(T.nextAddress==1)return J?_.K(T,J.getPlayerPromise(),2):T.return();m.player=T.yieldResult;if(!m.player)return T.return();b={};x=_.M(c);for(P=x.next();!P.done;P=x.next())p=P.value,t=_.M(m.createEventListenerPair(p)),I=t.next().value,a=t.next().value,k=I,H=a,k&&H&&(b[k]=H,m.ytPlayerListenerBehavior.listenToPlayerEvent(m.player,k,H));m.playerListenerConfig=b;_.tD(T)})};
_.V.createEventListenerPair=function(J){var c=J.playbackEventTrigger;return c?this.handlePlaybackTrigger(c):(J=J.watchTimeTrigger)?this.handleWatchTimeTrigger(J):[void 0,void 0]};
_.V.handleWatchTimeTrigger=function(J){var c=this;this.accumulatedMediaTime=this.lastKnownPlaybackPosition=0;var m=J.videoWatchFraction,b=J.watchTimeSec;return b&&m?["onVideoProgress",function(){c.player&&c.isWatchTimeConditionMet(c.player,m,b)&&c.showSurvey()}]:[void 0,
void 0]};
_.V.isWatchTimeConditionMet=function(J,c,m){var b=J.getProgressState(),x=b.current-this.lastKnownPlaybackPosition;x<5&&(this.accumulatedMediaTime+=x);this.lastKnownPlaybackPosition=b.current;b=Math.round(this.accumulatedMediaTime/b.duration*1E3)/1E3;return J.getPresentingPlayerType&&J.getPresentingPlayerType()===1&&(this.accumulatedMediaTime>m||b>c)};
_.V.handlePlaybackTrigger=function(J){var c=this;J=J.playbackEvent;if(J==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_PLAYBACK_FINISH"){var m="onStateChange";var b=function(x){x===0&&c.showSurvey()}}else J==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_CONTENT_VIDEO_START"?(m="onVideoProgress",b=function(x){c.player&&c.player.getPresentingPlayerType&&c.player.getPresentingPlayerType()===1&&x&&c.showSurvey()}):J==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_AD_FINISH"&&(m="onAdEnd",b=this.showSurvey);
return[m,b]};
_.V.showSurvey=function(){this.openSurvey();this.player&&this.maybeRemovePlayerListeners(this.player)};
_.V.openSurvey=function(){var J=this,c=this.data&&this.data.survey;this.ytdReduxBehavior.dispatch(_.G$R(!!c));_.ft.addJob(function(){J.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"SURVEY",popup:c}})},0,0)};
_.V.maybeRemovePlayerListeners=function(J){if(this.playerListenerConfig){for(var c=_.M(Object.keys(this.playerListenerConfig)),m=c.next();!m.done;m=c.next())m=m.value,this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(J,m,this.playerListenerConfig[m]);this.playerListenerConfig=null}};
rG.prototype.dataChanged=rG.prototype.dataChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],rG.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.vL),_.R("design:type",Object)],rG.prototype,"ytdOpenPopupBehavior",void 0);_.O([_.f(_.Ex.YtPlayerListenerBehavior),_.R("design:type",_.vX)],rG.prototype,"ytPlayerListenerBehavior",void 0);_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],rG.prototype,"ytActionHandlerBehavior",void 0);
_.O([_.f(_.fY),_.R("design:type",Object)],rG.prototype,"ytdReduxBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],rG.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],rG.prototype,"playerListenerConfig",void 0);_.O([_.U({value:0}),_.R("design:type",Number)],rG.prototype,"lastKnownPlaybackPosition",void 0);_.O([_.U({value:0}),_.R("design:type",Number)],rG.prototype,"accumulatedMediaTime",void 0);_.O([_.U(),_.R("design:type",Object)],rG.prototype,"player",void 0);
_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],rG.prototype,"dataChanged",null);rG=_.O([_.E({is:"ytd-survey-trigger-renderer",disableElementRegistration:!0})],rG);
_.v(rG,"ytd-survey-trigger-renderer",function(){if(CZs!==void 0)return CZs;var J=document.createElement("template");_.z(J,"\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");J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return CZs=J},{mode:1});
}catch(e){_._DumpException(e)}
try{
var Vwo=new _.Q("promotedSparklesWebRenderer");var PPe=new _.Q("relatedChipCommand");var Mws;var pVo;var kj=function(){return _.h.apply(this,arguments)||this};
_.D(kj,_.h);kj.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],kj.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],kj.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],kj.prototype,"data",void 0);kj=_.O([_.E({disableElementRegistration:!0,is:"ytd-compact-tvfilm-entry-point-renderer"})],kj);
_.v(kj,"ytd-compact-tvfilm-entry-point-renderer",function(){if(pVo!==void 0)return pVo;var J=document.createElement("template");_.z(J,'\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>');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return pVo=J},{mode:1});var NER;var two;var IU5;var H5=function(){return _.h.apply(this,arguments)||this};
_.D(H5,_.h);H5.prototype.ready=function(){this.initializeDefs()};
H5.prototype.initializeDefs=function(){var J=this.meta.byKey("yt-icons"),c=_.Bj(J).querySelector("#star"),m=_.Bj(J).querySelector("#star_half");J=_.Bj(J).querySelector("#star_border");c&&this.defs.appendChild(c.cloneNode(!0));m&&this.defs.appendChild(m.cloneNode(!0));J&&this.defs.appendChild(J.cloneNode(!0))};
H5.prototype.percentChanged=function(){for(var J=this.rating;J.firstChild;)J.removeChild(J.firstChild);var c=Math.round(this.percent/10);J=Math.floor(c/2);c%=2;var m=5-J-c;this.appendStars("star",J,0);this.appendStars("star_half",c,J);this.appendStars("star_border",m,J+c)};
H5.prototype.appendStars=function(J,c,m){for(var b=0;b<c;b++){var x=(18+this.spacing)*(b+m),P=document.createElementNS("http://www.w3.org/2000/svg","use");_.Eho(P,"#"+J);P.setAttribute("x",""+x);P.setAttribute("y","0");this.rating.appendChild(P)}};
H5.prototype.percentChanged=H5.prototype.percentChanged;_.O([_.Iu("#defs"),_.R("design:type",HTMLElement)],H5.prototype,"defs",void 0);_.O([_.Iu("#rating"),_.R("design:type",HTMLElement)],H5.prototype,"rating",void 0);_.O([_.U(),_.R("design:type",Number)],H5.prototype,"percent",void 0);_.O([_.U({value:6}),_.R("design:type",Number)],H5.prototype,"spacing",void 0);_.O([_.U({value:_.CH.create("iron-meta",{type:"iconset"})}),_.R("design:type",_.io)],H5.prototype,"meta",void 0);
_.O([_.NE("percent"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],H5.prototype,"percentChanged",null);H5=_.O([_.E({disableElementRegistration:!0,is:"ytd-ratings"})],H5);
_.v(H5,"ytd-ratings",function(){if(IU5!==void 0)return IU5;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return IU5=J},{mode:1});var im=function(){return _.h.apply(this,arguments)||this};
_.D(im,_.h);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],im.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],im.prototype,"data",void 0);im=_.O([_.E({is:"ytd-offer-review-renderer",disableElementRegistration:!0})],im);
_.v(im,"ytd-offer-review-renderer",function(){if(two!==void 0)return two;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return two=J},{mode:1});var nm=function(){var J=_.h.apply(this,arguments)||this;J.badges=[{textBadge:{label:_.v2("CC")}}];return J};
_.D(nm,_.h);_.V=nm.prototype;_.V.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
_.V.dataChanged=function(){var J=this.get("data.offerButton.buttonRenderer.serviceEndpoint");if(J&&J.commandMetadata&&_.L(J.commandMetadata,_.we)&&_.L(J.commandMetadata,_.we).fireAutomatically)_.BG().resolve(_.gu).resolveCommand(J,{form:{element:this.hostElement}});else{var c;J&&((c=_.L(J,_.we))==null?0:c.fireAutomatically)&&_.BG().resolve(_.gu).resolveCommand(J,{form:{element:this.hostElement}})}};
_.V.isEmptyContent=function(J){return this.isStorefrontEntryPointEmpty(J)&&this.shouldHideOfferModule(J)};
_.V.isStorefrontEntryPointEmpty=function(J){return!J||!J.storefrontEntryPoint};
_.V.shouldHideOfferModule=function(J){return!!J.hideVideoDetails};
_.V.isOfferModuleNavigationInactive=function(J){return!J.navigationEndpoint&&!J.serviceEndpoint};
_.V.maybeNavigateWithServiceEndpoint=function(){this.data&&this.data.navigationEndpoint||this.data&&this.data.serviceEndpoint&&_.BG().resolve(_.gu).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
nm.prototype.dataChanged=nm.prototype.dataChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],nm.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],nm.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],nm.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0,computed:"isEmptyContent(data)"}),_.R("design:type",Boolean)],nm.prototype,"hidden",void 0);
_.O([_.U(),_.R("design:type",Object)],nm.prototype,"badges",void 0);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],nm.prototype,"dataChanged",null);nm=_.O([_.E({disableElementRegistration:!0,is:"ytd-movie-offer-module-renderer"})],nm);
_.v(nm,"ytd-movie-offer-module-renderer",function(){if(NER!==void 0)return NER;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return NER=J},{mode:1});var KDe;var TF=function(){return _.h.apply(this,arguments)||this};
_.D(TF,_.h);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],TF.prototype,"componentBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],TF.prototype,"data",void 0);TF=_.O([_.E({disableElementRegistration:!0,is:"ytd-media-masthead-renderer"})],TF);
_.v(TF,"ytd-media-masthead-renderer",function(){if(KDe!==void 0)return KDe;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return KDe=J},{mode:1});var CP5;_.lv(_.e9Q,"course-metadata-view-model",{props:{data:_.Fz,isOverlay:_.Fz}});var wh=function(){var J=_.h.apply(this,arguments)||this;J.isMetadataVisible=!1;J.modernPanels=_.w("kevlar_watch_modern_panels");J.actionMap={"yt-hide-tvfilm-offer-module":"handleHideAction"};return J};
_.D(wh,_.h);_.V=wh.prototype;
_.V.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"}}}}};
_.V.descriptionChanged=function(){this.expander.collapsed=!0;this.expander.reset()};
_.V.dataChanged=function(){this.hostElement.hidden=!1;this.isMetadataVisible=this.isExpandButtonToggled()};
_.V.expanderChanged=function(){var J;if((J=this.data)==null?0:J.expandedMetadata)this.expander.hidden=this.isMetadataVisible};
_.V.isExpandButtonToggled=function(){var J,c;return(c=_.L((J=this.data)==null?void 0:J.expandMetadataButton,_.sc))==null?void 0:c.isToggled};
_.V.onVisibilityButtonClick=function(){var J;if((J=this.data)==null?0:J.expandMetadataButton)this.isMetadataVisible=!this.isMetadataVisible};
_.V.handleHideAction=function(){this.data&&this.data.clientShouldSuppressIfCompanionAdDisplayed&&(this.hostElement.hidden=!0)};
wh.prototype.expanderChanged=wh.prototype.expanderChanged;wh.prototype.dataChanged=wh.prototype.dataChanged;wh.prototype.descriptionChanged=wh.prototype.descriptionChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],wh.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],wh.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f([_.yw.YtActionHandlerBehavior]),_.R("design:type",Object)],wh.prototype,"actionHandlerBehavior",void 0);
_.O([_.U(),_.R("design:type",Object)],wh.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],wh.prototype,"isMetadataVisible",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],wh.prototype,"modernPanels",void 0);_.O([_.Iu("#expander"),_.R("design:type",Object)],wh.prototype,"expander",void 0);_.O([_.NE("data.description"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],wh.prototype,"descriptionChanged",null);
_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],wh.prototype,"dataChanged",null);_.O([_.NE("isMetadataVisible"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],wh.prototype,"expanderChanged",null);wh=_.O([_.E({disableElementRegistration:!0,is:"ytd-tvfilm-offer-module-renderer"})],wh);
_.v(wh,"ytd-tvfilm-offer-module-renderer",function(){if(CP5!==void 0)return CP5;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return CP5=J},{mode:2});var aUo;var rh=function(){var J=_.h.apply(this,arguments)||this;J.actionMap={"yt-hide-unlimited-offer-module":"handleHideAction"};return J};
_.D(rh,_.h);rh.prototype.dataChanged=function(){this.hostElement.hidden=!1};
rh.prototype.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
rh.prototype.onThumbnailTap=function(J){this.data&&this.data.serviceEndpoint&&(_.BG().resolve(_.gu).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),J.stopPropagation())};
rh.prototype.handleHideAction=function(){this.data&&this.data.suppressIfCompanionAds&&(this.hostElement.hidden=!0)};
rh.prototype.dataChanged=rh.prototype.dataChanged;_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],rh.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],rh.prototype,"rendererBehaviors",void 0);_.O([_.f([_.yw.YtActionHandlerBehavior]),_.R("design:type",Object)],rh.prototype,"actionHandlerBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],rh.prototype,"data",void 0);
_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],rh.prototype,"dataChanged",null);rh=_.O([_.E({is:"ytd-unlimited-offer-module-renderer",disableElementRegistration:!0})],rh);
_.v(rh,"ytd-unlimited-offer-module-renderer",function(){if(aUo!==void 0)return aUo;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return aUo=J},{mode:1});var ksR;var Hpf;var sJ=function(){var J=_.h.apply(this,arguments)||this;J.actionMap={"yt-related-chip-command":"handleRelatedChipCommand"};return J};
_.D(sJ,_.h);sJ.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{chipCloudRenderer:{component:"yt-chip-cloud-renderer"}}}}};
sJ.prototype.handleRelatedChipCommand=function(J){J=_.L(J,PPe);var c=J.contents;c?_.bJ(this.hostElement,"yt-item-section-replace-action",[c,J.targetSectionIdentifier]):_.bJ(this.hostElement,"yt-item-section-continuation-action",[J.continuationData,J.targetSectionIdentifier])};
_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],sJ.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],sJ.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],sJ.prototype,"actionHandlerBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],sJ.prototype,"data",void 0);sJ=_.O([_.uM({is:"yt-related-chip-cloud-renderer",disableElementRegistration:!0})],sJ);
_.v(sJ,"yt-related-chip-cloud-renderer",function(){if(Hpf===void 0){var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);var c=J.content,m=c.insertBefore;ksR===void 0&&(ksR=document.createElement("template"));var b=ksR;m.call(c,b.content.cloneNode(!0),J.content.firstChild);Hpf=J}J=Hpf;return J},{mode:2});var Lm=function(){var J=_.h.apply(this,arguments)||this;J.isTwoColumns=!0;J.hideOfferModules=!1;J.watchFeedBigThumbs=_.w("kevlar_watch_feed_big_thumbs");J.watchNextGridHideChips=_.w("kevlar_watch_grid_hide_chips");J.eligibleToSwitchToGrid=_.w("web_watch_eligible_to_switch_to_grid");J.disableShortsShelfHeightOverride=_.w("web_shorts_wn_shelf_ratio_tuning");J.isWatchNextGrid=!1;J.reuseComponents=!_.w("kevlar_watch_grid");J.nextContinuation={continuationType:"watchNextSecondaryResultsContinuation",contentsArray:"data.results",
continuationsArray:"data.continuations",responseContentsKey:"results",requestPath:"/related_ajax"};return J};
_.D(Lm,_.h);_.V=Lm.prototype;
_.V.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:!_.w("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}}};
_.V.getItemsPath=function(){return"data.results"};
_.V.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"results","yt-reload-continuation-items-command-body":"results"}};
_.V.created=function(){this.ytLazyListBehavior.initialCount=1};
_.V.ready=function(){_.V1(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%"})};
_.V.resultsChanged=function(){if(this.data&&this.data.results){for(var J=this.data.results,c=null,m=null,b=0;b<J.length;b++)J[b].relatedChipCloudRenderer?c=J[b].relatedChipCloudRenderer:J[b].itemSectionRenderer&&(m=J[b].itemSectionRenderer);if(c&&m)for(this.set("data.continuations",[]),J=_.L(c.content,_.fr2).chips,c=0;c<J.length;c++)if(b=this.get("chipCloudChipRenderer.navigationEndpoint.relatedChipCommand",J[c]),b.loadCached||!b.contents){b.contents=m.contents;break}}};
_.V.dataChanged=function(){var J=this,c;if((c=this.data)!=null&&c.results&&this.hasAllowedInstreamAd(this.playerData)){if(c=this.data.results.filter(function(t){return!!t.promotedSparklesWebRenderer})){for(var m=0;m<c.length;m++){var b=this.get("promotedSparklesWebRenderer.errorCommand.loggingUrls",c[m]);
if(b)for(var x=0;x<b.length;x++)b[x]&&b[x].baseUrl&&_.En(b[x].baseUrl)}this.set("data.results",this.data.results.filter(function(t){return!t.promotedSparklesWebRenderer}))}if(c=this.data.results.filter(function(t){return!!J.getSparklesAd(t)})){c=_.M(c);
for(x=c.next();!x.done;x=c.next())if(b=m=void 0,x=(m=this.getSparklesAd(x.value))==null?void 0:(b=m.errorCommand)==null?void 0:b.loggingUrls)for(m=_.M(x),b=m.next();!b.done;b=m.next())(b=b.value)&&b.baseUrl&&_.En(b.baseUrl);var P,p;this.set("data.results",(P=this.data)==null?void 0:(p=P.results)==null?void 0:p.filter(function(t){return!t.adSlotRenderer}))}}};
_.V.getSparklesAd=function(J){var c,m;J=_.L((c=J.adSlotRenderer)==null?void 0:(m=c.fulfillmentContent)==null?void 0:m.fulfilledLayout,_.jg$);return _.L(J==null?void 0:J.renderingContent,Vwo)};
_.V.hasAllowedInstreamAd=function(J){J=this.get("adPlacements",J)||[];for(var c=0;c<J.length;c++){var m=this.get("adPlacementRenderer.config.adPlacementConfig",J[c]);if(m&&m.suppressDisplayAd)return!0}return!1};
_.V.computeHideUnlimitedOfferModule=function(J,c){return J&&J.offerModule&&c&&J.offerModule.unlimitedOfferModuleRenderer&&J.offerModule.unlimitedOfferModuleRenderer.suppressIfCompanionAds&&this.hasCompanionAds(c)?!0:!1};
_.V.hideUnlimitedOfferModuleChanged=function(){var J=_.Bj(this.hostElement).querySelector("ytd-unlimited-offer-module-renderer");J&&(J.hidden=this.hideUnlimitedOfferModule)};
_.V.updateLockupContainerTypes=function(J){if(this.eligibleToSwitchToGrid){var c;(c=Array.from(this.hostElement.querySelectorAll("#items yt-lockup-view-model")))==null||c.forEach(function(m){m.containerType=J})}};
_.V.computeHideTvfilmOfferModule=function(J,c){var m,b;return!!((J==null?0:(m=J.offerModule)==null?0:(b=m.tvfilmOfferModuleRenderer)==null?0:b.clientShouldSuppressIfCompanionAdDisplayed)&&c&&this.hasCompanionAds(c))};
_.V.hideTvfilmOfferModuleChanged=function(){var J=_.Bj(this.hostElement).querySelector("ytd-tvfilm-offer-module-renderer");J&&(J.hidden=this.hideTvfilmOfferModule)};
_.V.hasCompanionAds=function(J){J=this.get("adPlacements",J)||[];for(var c=0;c<J.length;c++){if(this.get("adPlacementRenderer.renderer.actionCompanionAdRenderer",J[c]))return!0;var m=void 0,b=void 0,x=void 0;if(!_.w("web_watch_top_banner_companion_check_killswitch")&&((m=J[c])==null?0:(b=m.adPlacementRenderer)==null?0:(x=b.renderer)==null?0:x.topBannerImageTextIconButtonedLayoutViewModel))return!0}return!1};
_.V.hasSuppressedResults=function(J){return J==null?!0:J.filter(function(c){return!c.continuationItemRenderer&&!c.compactPromotedVideoRenderer&&!c.promotedSparklesWebRenderer}).length===0};
_.V.computeShowButton=function(J,c){return this.isWatchNextGrid?J:J||this.hasSuppressedResults(c)};
_.V.showButtonChanged=function(){if(this.isWatchNextGrid){var J=_.Bj(this.hostElement).querySelector("ytd-rich-grid-renderer");J&&this.showButton!==null&&(J.continuationShowButton=this.showButton)}else{J=_.Bj(this.hostElement).querySelector("yt-next-continuation");var c=_.Bj(this.hostElement).querySelector("ytd-continuation-item-renderer"),m=_.Bj(this.hostElement).querySelector("ytd-item-section-renderer");J&&(J.showButton=this.showButton);c&&(c.showButton=this.showButton);m&&(m.continuationShowButton=
this.showButton)}};
_.V.continuationTap=function(J){var c;if(((c=this.data)==null?void 0:c.continuations)!=null&&J.target.tagName==="TP-YT-PAPER-BUTTON")for(J=this.data.continuations,c=0;c<J.length;c++)J[c].nextContinuationData&&this.ytRendererBehavior.logExplicitClick(J[c].nextContinuationData||{})};
_.V.shownItemsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.SJ("shown-items-changed",this.shownItems))};
_.eE.Object.defineProperties(Lm.prototype,{lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
containsLockups:{configurable:!0,enumerable:!0,get:function(){var J;return!((J=this.shownItems)==null||!J.some(function(c){return!!c.lockupViewModel||c.compactVideoRenderer}))}}});
Lm.prototype.shownItemsChangedForBinding=Lm.prototype.shownItemsChangedForBinding;Lm.prototype.showButtonChanged=Lm.prototype.showButtonChanged;Lm.prototype.hideTvfilmOfferModuleChanged=Lm.prototype.hideTvfilmOfferModuleChanged;Lm.prototype.updateLockupContainerTypes=Lm.prototype.updateLockupContainerTypes;Lm.prototype.hideUnlimitedOfferModuleChanged=Lm.prototype.hideUnlimitedOfferModuleChanged;Lm.prototype.dataChanged=Lm.prototype.dataChanged;Lm.prototype.resultsChanged=Lm.prototype.resultsChanged;
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Lm.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],Lm.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.lu.YtLazyListBehavior),_.R("design:type",Object)],Lm.prototype,"ytLazyListBehavior",void 0);_.O([_.f(_.hA.YtNextContinuationBehavior),_.R("design:type",Object)],Lm.prototype,"ytNextContinuationBehavior",void 0);
_.O([_.f(_.Sy),_.R("design:type",Object)],Lm.prototype,"ytContinuationHandlerBehavior",void 0);_.O([_.f(_.fY),_.R("design:type",Object)],Lm.prototype,"ytdReduxBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Lm.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],Lm.prototype,"playerData",void 0);_.O([_.U({value:!0}),_.R("design:type",Boolean)],Lm.prototype,"autoFill",void 0);_.O([_.U({value:60}),_.R("design:type",Number)],Lm.prototype,"targetFramerate",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Lm.prototype,"isTwoColumns",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Lm.prototype,"hideOfferModules",void 0);_.O([_.U(),_.R("design:type",Object)],Lm.prototype,"shownItems",void 0);_.O([_.U({computed:"computeHideUnlimitedOfferModule(data, playerData)"}),_.R("design:type",Boolean)],Lm.prototype,"hideUnlimitedOfferModule",void 0);
_.O([_.U({computed:"computeHideTvfilmOfferModule(data, playerData)"}),_.R("design:type",Boolean)],Lm.prototype,"hideTvfilmOfferModule",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Lm.prototype,"watchFeedBigThumbs",void 0);_.O([_.U(),_.R("design:type",Object)],Lm.prototype,"watchNextGridHideChips",void 0);_.O([_.U(),_.R("design:type",Object)],Lm.prototype,"eligibleToSwitchToGrid",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Lm.prototype,"disableShortsShelfHeightOverride",void 0);_.O([_.U({selector:_.S8,reflectToAttribute:!0}),_.R("design:type",Object)],Lm.prototype,"isGridViewEnabled",void 0);_.O([_.U({value:!1}),_.R("design:type",Boolean)],Lm.prototype,"showMoreButton",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Lm.prototype,"isWatchNextGrid",void 0);
_.O([_.U({computed:"computeShowButton(showMoreButton, data.results)"}),_.R("design:type",Boolean)],Lm.prototype,"showButton",void 0);_.O([_.kr("data.results.*"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Lm.prototype,"resultsChanged",null);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Lm.prototype,"dataChanged",null);
_.O([_.NE("hideUnlimitedOfferModule"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Lm.prototype,"hideUnlimitedOfferModuleChanged",null);_.O([_.q("isGridViewEnabled","containsLockups","data"),_.U({reflectToAttribute:!0}),_.R("design:type",Number),_.R("design:paramtypes",[])],Lm.prototype,"lockupContainerType",null);
_.O([_.NE("lockupContainerType","data"),_.R("design:type",Function),_.R("design:paramtypes",[Number]),_.R("design:returntype")],Lm.prototype,"updateLockupContainerTypes",null);_.O([_.NE("hideTvfilmOfferModule"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Lm.prototype,"hideTvfilmOfferModuleChanged",null);_.O([_.NE("showButton"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Lm.prototype,"showButtonChanged",null);
_.O([_.NE("shownItems"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Lm.prototype,"shownItemsChangedForBinding",null);_.O([_.q("shownItems"),_.U({reflectToAttribute:!0}),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Lm.prototype,"containsLockups",null);
_.v(Lm,"ytd-watch-next-secondary-results-renderer",function(){if(Mws===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);Mws=J}J=Mws;return J},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.dSr={};
_.dSr.YtdWatchBehavior=[_.g.YtRendererBehavior,_.Ex.YtPlayerListenerBehavior,_.lU.YtRendererstamperBehavior,_.yw.YtActionHandlerBehavior,_.D$.YtPageBehavior,_.ts.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 _.Ss("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.w("web_watch_provide_secondary_results_renderer")}},
enableFullBleedSingleColumnDefaultPlayer:{type:Boolean,value:function(){return _.w("full_bleed_single_column_default_player")}},
fullscreen:{type:Boolean,reflectToAttribute:!0},playlist:{type:Boolean,reflectToAttribute:!0,computed:"hasPlaylist_(playlistData, loadingData.playlist)",observer:"secondaryColumnModulePresenceChanged_"},alerts:{type:Object,computed:"getAlerts_(playerData.playabilityStatus, alertsValue)"},alertsValue:{type:Object},microformat:{type:Object,computed:"getPlayerMicroformatRenderer_(playerData.microformat)"},commentsReady:{type:Boolean,observer:"commentsReadyChanged_"},theaterRequested_:{type:Boolean,reflectToAttribute:!0,
value:function(){return _.Ss("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 _.w("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.w("kevlar_use_engagement_panel_management_component")}},
watchMetadataRefresh:{type:Boolean,value:!1,computed:"computeWatchMetadataRefresh(videoPrimaryInfoRenderer)",reflectToAttribute:!0},liveChatCollapsed:{type:Boolean},liveChatPresentAndExpanded:{type:Boolean,reflectToAttribute:!0,computed:"computeLiveChatPresentAndExpanded(shouldStampChat, liveChatCollapsed)"},playlistPanelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1},engagementPanelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1},panelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1,
computed:"computePanelExpanded(engagementPanelExpanded, playlistPanelExpanded, liveChatPresentAndExpanded)"},swatcherooSqueezeback:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"swatcherooSqueezebackChanged",computed:"computeSwatcherooSqueezeback(panelExpanded, fullBleedPlayer, isTwoColumns_)"},squeezeback:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"squeezebackChanged",computed:"computeSqueezeback(engagementPanelExpanded,liveChatPresentAndExpanded, playlistPanelExpanded, fullscreen, theater)"},
richItemMinWidth:{type:Number,value:function(){return _.c7("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.c7("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!_.w("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.w("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 _.w("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.w("web_watch_fullerscreen_deprecation_ui")}},
iMaxTheaterMode:{type:Boolean,reflectToAttribute:!0,value:function(){return _.w("web_watch_imax_theater_mode")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.w("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.w("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.w("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.w("kevlar_watch_frame0_loading_state")}},
retroMode:{type:Boolean,value:!1},roundedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeRoundedPlayer(defaultLayout, retroMode)"},showExpandableMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeShowExpandableMetadata(expandableMetadata)"},fullBleedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeFullBleedPlayer(fullscreen, theater, isTwoColumns_)"},defaultLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultLayout(fullBleedPlayer)"},defaultTwoColumnLayout:{type:Boolean,
reflectToAttribute:!0,computed:"computeDefaultTwoColumnLayout(fullBleedPlayer, isTwoColumns_)"},swatcherooSplitScroll:{type:Boolean,reflectToAttribute:!0,value:function(){return _.w("swatcheroo_split_scroll")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.w("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.w("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.w("swatcheroo_binary_layout")}},
swatcherooGhostCards:{type:Boolean,reflectToAttribute:!0,value:function(){return _.w("swatcheroo_enable_ghost_cards")}},
metadataSkinnyMode:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computeMetadataSkinnyMode(swatcherooBinaryLayout, isTwoColumns_, defaultTwoColumnLayout)"},fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.w("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 _.w("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.w("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 _.w("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 J={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:_.uZ(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.uZ(["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"||_.w("swa_prov_panels_ks")?J.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}:(J.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatch:!0}}}},J.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}},reuseComponents:!1});return J},
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 J=this;this.watchController=void 0;this.pageDisposeJobs=[function(){J.showMetadataPlaceholder_()},
function(){_.w("web_watch_dont_clear_comments")||J.clearComments_()},
function(){J.clearPlayerAds_()},
function(){J.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;_.w("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.w("web_watch_start_chat_in_theater_mode")&&
(this.theaterEnabledForChat=!1);this.youThereManager_=new _.sfp(function(){return _.Qd(J)},this.hostElement);
this.pageDisposeJobs.push(function(){J.youThereManager_.reset()});
_.w("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){J.resetFullerscreenEduButtonForNewPlayback_()}));
this.fullHeightPanelPositionUpdateJobId=this.panelMaxHeightUpdateJob_=0;this.playerEvents_=new _.gy;this.playerEvents_.set("onFeedbackStartRequest",this.onPlayerFeedbackStartRequest_);this.playerEvents_.set("onFeedbackArticleRequest",this.onPlayerFeedbackArticleRequest_);this.playerEvents_.set("onYpcContentRequest",this.onPlayerYpcContentRequest_);this.playerEvents_.set("onAutonavPauseRequest",this.onPlayerAutonavPauseRequest_);this.playerEvents_.set("onAdStateChange",this.onAdStateChange_);this.playerEvents_.set("onStateChange",
this.onPlayerStateChange_);this.playerEvents_.set("SUBSCRIBE",this.onPlayerSubscribe_);this.playerEvents_.set("UNSUBSCRIBE",this.onPlayerUnsubscribe_);this.playerEvents_.set("onYtShowToast",this.onPlayerAdYtShowToast_);this.playerEvents_.set("onFullscreenChange",this.onPlayerFullscreenChange_);this.playerEvents_.set("onVideoDataChange",this.onPlayerPresentingVideoDataChange_);this.engagementPanelScrimOnClickCommands_=null;this.watchMetadata=void 0;_.w("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));_.w("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.ME(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(J){J&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:J}),J.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(J){_.w("kevlar_watch_flexy_theater_manager")&&(this.theater=J,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(J){!_.w("kevlar_watch_while_v2")&&!_.w("web_watch_pip")||J||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(J){this.active!==void 0&&(this.fullscreen=J,_.w("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(J){this.active!==void 0&&(_.cA(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.w("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.w("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(J>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(J){this.initCsi_();this.updatePageData_(J)},
updatePageData_:function(J){var c=this;if(J)if(this.data===J){this.onPageLoadWithSameData_();var m;(m=this.watchController)==null||m.setWatchNextResponse(this.data)}else this.data=J;this.playlist&&_.uJ({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.Y2("nw");this.loading=!1;_.rv(_.ft,function(){c.initDclkstatus_();var b,x=((b=c.player)==null?void 0:b.getVideoData().cpn)||"";_.p1R(function(P,p){_.MsF(P,p,x)})})},
onPageLoadWithSameData_:function(){_.w("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 J=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!J);this.set("loadingData.playlistLoading",J&&J!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),J=this.watchNextSkeletonEl_.firstElementChild;J;)J.classList.remove("hidden"),J=J.nextElementSibling;if(_.w("kevlar_watch_frame0_loading_state")){var c,m,b;J=(c=this.loadingData)==null?void 0:(m=c.endpoint)==null?void 0:(b=m.watchEndpoint)==null?void 0:b.videoId;var x;J&&(x="https://i.ytimg.com/vi/"+J+"/frame0.jpg");_.Bj(this.hostElement).querySelector("#player").style.backgroundImage=x?"url("+x+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var J=_.Bj(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&J&&(J.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var c,m;(m=(c=this.watchMetadata).updateSentimentBarWidth)==
null||m.call(c);var b,x;(x=(b=this.watchMetadata).resize)==null||x.call(b)}_.w("kevlar_watch_frame0_loading_state")&&(_.Bj(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(J){var c=_.Bj(this.hostElement).querySelector(J);c?_.gK(c,!1):_.qz(new _.w3("Overscroll monitor not found for component: ",J))},
removeSplitScrollMouseTrap:function(J){var c=_.Bj(this.hostElement).querySelector(J);c?_.JS(c):_.qz(new _.w3("Disposal component for  overscroll monitoring not found: ",J))},
onLoadingChanged_:function(J){J?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(J){var c=this;J?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.ft.addLowPriorityJob(function(){c.onWindowResized_(_.a1(!0))})},
updateTheaterModeState_:function(J){if(!_.w("kevlar_watch_flexy_theater_manager")){J=J||this.fullWindowMode_;if(this.theater!==void 0||J)this.theater=J;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();J&&_.rru()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation();this.updatePanelsLocation()},
updatePlayerLocation:function(){var J=this.theater||this.enableFullBleedSingleColumnDefaultPlayer&&this.fullBleedPlayer;_.w("external_fullscreen")&&this.fullscreen&&(J=!0);J=J?_.Bj(this.hostElement).querySelector("#player-full-bleed-container"):_.Bj(this.hostElement).querySelector("#player-container-inner");var c=this.getPlayerContainer(),m=_.w("kevlar_watch_while_v2")||_.w("web_watch_pip");c.parentElement!==J&&(m&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.Qd(this).appendTo(J,
c),J.appendChild(_.Bj(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var J=this;return _.N(function(c){if(c.nextAddress==1)return _.K(c,_.BG().resolve(_.Uo).deactivate(),2);J.updatePlayerLocation();_.tD(c)})},
updateCinematicsLocation:function(){var J=this.getElement("CINEMATICS");if(J){var c=this.getCinematicsLocationContainer();J.parentElement!==c&&c.appendChild(J);var m;(m=this.watchController)==null||m.updateCinematicFullscreenConfig()}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.Bj(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.Bj(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(J,c){var m=document.documentElement.hasAttribute("dark"),b=m&&_.w("web_cinematic_theater_mode"),x=m&&_.w("web_cinematic_fullscreen");m=!m&&this.cinematicLightTheme;return J&&b||c&&x||(c||J)&&m},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var J=this,c;(c=this.watchController)==null||c.setWatchNextResponse(this.data);_.w("kevlar_watch_flexy_comments_manager")||this.initComments_();_.w("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.BG().resolve(_.zn).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,_.w("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.ft.addLowPriorityJob(function(){_.bJ(J.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.w("web_watch_start_chat_in_theater_mode")){var m,b,x;if((m=this.data)==null?0:(b=m.contents)==null?0:(x=b.twoColumnWatchNextResults)==null?0:x.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var P,p;((P=this.data)==null?0:(p=P.contents)==null?0:p.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(J){var c;(c=this.watchController)==null||c.setPlayerResponse(this.playerData);J&&J.playabilityStatus&&(c=this.isVideoPlayable_(J.playabilityStatus,this.getPlayerOverlays_(this.data)),J=this.isLiveStreamOffline_(J.playabilityStatus),c&&!J||_.o3(this,function(){_.Y2("pbu")}));
this.setPlayerAds_();_.bJ(this.hostElement,"ytd-watch-player-data-changed")},
computePlayerContainerBackgroundImage:function(J,c){if((_.w("kevlar_watch_while_v2")||_.w("web_watch_pip"))&&this.playerData&&c)return this.playerData.videoDetails},
watchPageActiveChanged_:function(J){_.Rc().dispatch(_.okp(this.active));J?this.activate_():this.deactivate_()},
attached:function(){var J=this;this.watchController=new _.G0(this.hostElement);this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.addSplitScrollMouseTrap("#primary"),this.addSplitScrollMouseTrap("#fixed-secondary"));this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data);_.w("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var c=_.Qd(this);_.w("kevlar_disable_prepare_player")||
c.preparePlayer();_.w("kevlar_watch_flexy_playlist_manager")||_.BG().resolve(_.zn).setPlayer(c);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();c={"--ytd-watch-flexy-scrollbar-width":_.Dm()+"px"};this.is==="ytd-watch-grid"&&(c["--ytd-watch-flexy-sidebar-width"]=_.PSp+"px",c["--ytd-watch-grid-horizontal-page-margins"]=_.UJ+"px",c["--ytd-watch-grid-columns-top-margins"]=_.bf1+"px",c["--ytd-watch-grid-min-player-height-medium"]="360px");!_.c7("kv_pl_mx_sz_ks")&&
_.c7("kevlar_watch_max_player_width")&&(c["--ytd-watch-flexy-max-player-width-wide-screen"]=_.MI1+"px");_.c7("kevlar_watch_flexy_metadata_height")&&(c["--ytd-watch-flexy-space-below-player"]=_.pvR+"px");this.safeUpdateStyles(c);_.w("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new _.NK(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return J.onPlayerTouchPanDown_()}}));
this.watchMetadata=_.Bj(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])")},
updatePageMediaQueries:function(){var J=_.Dm(),c=_.S0+J,m=c;this.fixedPanels&&(c+=_.PSp);var b=657+J;J=1327+J;_.Bj(this.hostElement).querySelector("#two-column-query").query="(min-width: "+c+"px)";_.Bj(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(b+"px), (min-height: 630px) and (min-width: ")+(c+"px) and (max-width: ")+(J+"px)");_.Bj(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(J+"px)");
_.Bj(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+m+"px)"},
calculateCurrentPlayerSize_:function(){var J=_.Bj(this.hostElement).querySelector("#miniplayer-bar").firstChild,c=this.squeezeback&&!_.w("web_watch_squeezeback_player_size_killswitch");return J&&J.active||this.theater||_.w("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||c||!this.active||!this.windowSize_||this.enableFullBleedSingleColumnDefaultPlayer&&this.fullBleedPlayer?new _.tk(NaN,NaN):_.A9(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||
this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.A9(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.yr(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var J=this;this.onWindowResized_(_.a1());_.w("browse_skeleton_removal_on_watch_killswitch")||_.Ss("IS_SHELL_LOAD")&&_.Kr4();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var c=_.Qd(this);c.addEventListener("yt-player-updated",_.ME(this,this.onPlayerUpdated_));c.getPlayerPromise().then(function(m){J.playerApiReady_(m)});
_.w("kevlar_watch_flexy_playlist_manager")||(c=_.BG().resolve(_.zn),_.w("kevlar_watch_observe_playlist_navigations_killswitch")&&c.addEventListener("yt-navigate",_.ME(this,this.onYtNavigate_)),c.setPlaylistComponent(_.Bj(this.hostElement).querySelector("#playlist")),c.addEventListener("yt-playlist-data-updated",_.ME(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.ft.addLowPriorityJob(function(){_.cA(J.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.Qd(this).removeEventListener("yt-player-updated",_.ME(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.w("kevlar_watch_flexy_playlist_manager")){var J=_.BG().resolve(_.zn);_.w("kevlar_watch_observe_playlist_navigations_killswitch")&&J.removeEventListener("yt-navigate",_.ME(this,this.onYtNavigate_));
J.cancelVideoSkip();J.removeEventListener("yt-playlist-data-updated",_.ME(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.w("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.cA(this.hostElement,"yt-autonav-pause-player",!1);J=_.yM();_.w("kevlar_exit_fullscreen_leaving_watch")&&J&&_.BS(J)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(J){this.player&&this.player.updateVideoData({rvs:J.rvs})},
getPageContents:function(J){return J&&J.contents&&J.contents.twoColumnWatchNextResults&&J.contents.twoColumnWatchNextResults.results&&J.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(J){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",J)},
onRetrieveLocation_:function(J,c){c.hasComments?c.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):c.locationRetrieved("/related_ajax",void 0);J.stopPropagation()},
onSubscriptionChanged_:function(J,c){this.player&&(c?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.LT("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.Bj(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.Bj(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(J){this.player=J;this.setPlayerState(J.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.w("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.w("kevlar_unified_player")||_.w("kevlar_player_new_bootstrap_adoption"))&&_.og()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(J,c){c=c===void 0?!0:c;_.yM()&&_.w("external_fullscreen")&&_.BS(document.documentElement);this.theaterRequested_=J;c&&_.kK("wide",J?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();this.schedulePanelMaxHeightUpdate_();_.m9(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.cA(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(J){_.Ue(J,typeof this.player),this.player&&_.Ue(J,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var J;((J=this.player)==null?0:J.isFullscreen())?this.player.toggleFullscreen():_.m9(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(J,c){return this.loading?c:!!Object.keys(J).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(J){if(J){J=_.M(J);for(var c=J.next();!c.done;c=J.next())c=c.value,c.youThereRenderer&&_.WJS(this.youThereManager_,c.youThereRenderer)}},
setPlaylistData_:function(J){return J||{}},
userEngagementConfigDataChanged_:function(J){if(J)if(J.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var c=this.youThereManager_;_.cO()<J.lowEngagementThresholdMs||_.YC5(c,!0)}else J.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.m9(this.hostElement,"yt-autonav-pause-user-engagement",[J])},
isPlayerUnavailable_:function(J,c,m){return!!J&&!this.isVideoPlayable_(J,m)&&!c},
getPlayerOverlays_:function(J){return(J==null?void 0:J.playerOverlays)||null},
isVideoPlayable_:function(J,c){if(!J)return!1;var m=J.status==="OK"||J.status==="LIVE_STREAM_OFFLINE",b=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",J)||this.get("errorScreen.ypcTrailerRenderer",J);J=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",J);var x;c=c==null?void 0:(x=c.playerOverlayRenderer)==null?void 0:x.gatedActionsOverlayRenderer;return!!m||!!b||!!J||!!c},
hasWatchNextResponseErrorRenderer:function(J){var c=this.getPageContents(J),m,b,x,P,p;return!(J==null?0:(m=J.contents)==null?0:(b=m.twoColumnWatchNextResults)==null?0:b.secondaryResults)&&!!((x=c[0])==null?0:(P=x.itemSectionRenderer)==null?0:(p=P.contents[0])==null?0:p.backgroundPromoRenderer)},
isLiveStreamOffline_:function(J){return J?J.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(J,c,m){var b=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",c),x=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];x=_.w("web_no_skip_video_on_verification_checks")?(J==null?void 0:J.status)&&x.includes(J.status):J&&J.status==="AGE_CHECK_REQUIRED";var P=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",J);P==void 0&&(P=!0);!m||this.isVideoPlayable_(J,this.getPlayerOverlays_(c))||
b||x||!P||_.BG().resolve(_.zn).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.aBS()},
onPlayerFeedbackStartRequest_:function(J){_.m9(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:J}])},
onPlayerFeedbackArticleRequest_:function(J){_.m9(this.hostElement,"yt-help-dialog-requested",[J])},
onPlayerYpcContentRequest_:function(){var J,c,m,b,x,P,p,t,I=((J=this.data)==null?NaN:(c=J.contents)==null?NaN:(m=c.twoColumnWatchNextResults)==null?NaN:(b=m.secondaryResults)==null?NaN:(x=b.secondaryResults)==null?NaN:(P=x.offerModule)==null?NaN:(p=P.tvfilmOfferModuleRenderer)==null?NaN:(t=p.actionButtons)==null?NaN:t.length)-1;J=[".offerButton.buttonRenderer.",".actionButtons."+(I>=0?I:0)+".buttonRenderer."];c=_.M(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(m=c.next();!m.done;m=c.next())for(m=m.value,b=_.M(J),x=b.next();!x.done;x=b.next())if(x="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+m+x.value,x=this.get(x+"navigationEndpoint",this.data)||this.get(x+"serviceEndpoint",this.data)||this.get(x+"command",this.data)){_.Nl(x,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(J){_.cA(this.hostElement,"yt-autonav-pause-player",J)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(J){J()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(J){switch(J){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(J){switch(J){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.cA(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(J)},
setPlayerState:function(J){_.Rc().dispatch(_.I5Z(J))},
onPlayerSubscribe_:function(J){_.m9(this.hostElement,"yt-player-subscribe",[J])},
onPlayerUnsubscribe_:function(J){_.m9(this.hostElement,"yt-player-unsubscribe",[J])},
onPlayerAdYtShowToast_:function(J){_.m9(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:J.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(J){if(J)return J},
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(J){return!_.w("web_watch_move_summary_to_sd")&&!!J},
computeWatchMetadataRefresh:function(){return _.w("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
computeRoundedPlayer:function(){return this.defaultLayout&&!(_.w("web_player_rtr_ctrls")&&this.retroMode)},
watchNextSecondaryResultsChanged:function(){if(this.is!=="ytd-watch-grid"&&!this.useProviderForSecondaryResultsRenderer){var J,c,m,b;this.watchNextSecondaryResults=(J=this.data)==null?void 0:(c=J.contents)==null?void 0:(m=c.twoColumnWatchNextResults)==null?void 0:(b=m.secondaryResults)==null?void 0:b.secondaryResults}},
swatcherooRichGridRendererDataChanged:function(){if(this.is==="ytd-watch-grid"&&this.swatcherooDirectUseRichGrid&&!_.w("swatcheroo_pbs_load_grid")&&!_.w("swatcheroo_provide_all_data_on_scheduled_job")){_.ft.cancelJob(this.setRichGridJobId_);var J,c,m,b,x,P,p;this.setRichGridRendererData((J=this.data)==null?void 0:(c=J.contents)==null?void 0:(m=c.twoColumnWatchNextResults)==null?void 0:(b=m.secondaryResults)==null?void 0:(x=b.secondaryResults)==null?void 0:(P=x.results)==null?void 0:(p=P[0])==null?
void 0:p.richGridRenderer)}},
setRichGridRendererData:function(J){this.richGridRendererData=J},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var J,c=(J=this.data)==null?void 0:J.engagementPanels;if(c==null?0:c.length){J=null;c=_.M(c);for(var m=c.next();!m.done;m=c.next()){m=m.value;var b=void 0;if(((b=m.engagementPanelSectionListRenderer)==null?void 0:b.targetId)==="engagement-panel-structured-description"){J=m;break}}var x,P,p;J=(x=J)==null?void 0:(P=x.engagementPanelSectionListRenderer)==null?void 0:(p=P.content)==null?void 0:p.structuredDescriptionContentRenderer;if(J==null?0:J.items){x=
[];P=_.M(J.items);for(p=P.next();!p.done;p=P.next()){p=p.value;if(!_.w("sd_horizontal_list_show_nav_killswitch")){var t=b=m=c=J=void 0,I=void 0,a=(J=p.horizontalCardListRenderer)==null?void 0:(c=J.header)==null?void 0:(m=c.richListHeaderRenderer)==null?void 0:(b=m.navigationButton)==null?void 0:(t=b.buttonRenderer)==null?void 0:(I=t.command)==null?void 0:I.commandExecutorCommand;a&&a.commands&&(a.commands=a.commands.filter(function(k){return!_.L(k,_.sB1)}))}p.expandableVideoDescriptionBodyRenderer||
p.videoDescriptionHeaderRenderer||x.push(p)}return{items:x}}}},
constructWarning_:function(J){return{text:_.v2(J),type:"WARNING"}},
isPlaShelfEnabled_:function(J){if((this.get("adPlacements",J)||[]).length)return!0;J=this.get("playerAds",J)||[];return!(!J.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",J[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var J=this;_.cA(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.w("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var c=this.getScrollTop()>0;this.gestures_&&(c?this.gestures_.detach():this.gestures_.attach());c!==this.showFullerscreenEdu_&&_.w("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=c,_.Qd(this).getPlayerPromise().then(function(m){m.updateFullerscreenEduButtonVisibility(J.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.cA(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var J=this;this.commentsReady=!1;_.ft.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.rv(_.ft,function(){J.setComments_()},1E3)},
setComments_:function(){if(!_.w("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.Y2("cmi");_.ft.cancelJob(this.setCommentsJobId_);var J=this.getPageContents(this.data);if(J&&J.length){J=_.M(J);for(var c=J.next();!c.done;c=J.next())if(c=c.value,this.get("itemSectionRenderer.sectionIdentifier",c)==="comment-item-section"){this.comments=c.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.cA(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.w("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.w("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.Y2("cmc")},
doRemoveComments_:function(){this.comments={};_.w("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.ft.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.ft.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(J,c){var m=_.L(c.endpoint,_.Rz);m&&(!(c=this.get("data.currentVideoEndpoint.watchEndpoint"))||m.videoId!==c.videoId||m.playlistId&&m.playlistId!==c.playlistId||m.index!==void 0&&m.index!==c.index||typeof m.startTimeSeconds!=="number"||(J.stopPropagation(),this.setScrollTop(0),_.Qd(this).getPlayerPromise().then(function(b){var x=m.startTimeSeconds;b.seekTo(x);b.wakeUpControls();x<b.getDuration()&&b.playVideo()})))},
updatePlayerStartTime_:function(){var J=_.gko();"t"in J&&(J=_.C5R(J.t),this.player.seekTo(J,!0))},
updateTitleFromWatchNext:function(J){J=this.getPageContents(J);var c,m;(J=_.OG(J==null?void 0:(c=J[0])==null?void 0:(m=c.videoPrimaryInfoRenderer)==null?void 0:m.title))&&_.cA(this.hostElement,"yt-update-title",J)},
updateTitle_:function(J){J=this.get("videoDetails.title",J)||"";_.cA(this.hostElement,"yt-update-title",J)},
syncWithRemoteVideo_:function(J,c,m){if(this.active&&this.player){var b=this.player.getVideoData();if(b.video_id===m&&(m=b.list,_.w("polymer_enable_mdx_queue")&&m&&m.startsWith("RQ")&&(m=void 0),b.video_id!==J||m!=c)){var x;_.w("kevlar_player_watch_endpoint_navigation")?x=_.XJq(_.Nco(J,c)):x=this.buildWatchEndpoint_(J,c);_.cA(this.hostElement,"yt-navigate",{endpoint:x,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(J,c,m){return _.lJ(J,c,m)},
initDclkstatus_:function(){_.KJ1()},
attachWatchPageSkeleton_:function(){var J=document.querySelector("#watch-page-skeleton");if(J){var c=J.querySelector("#primary-info"),m=J.querySelector("#secondary-info"),b=J.querySelector("#related");c&&_.Bj(this.hostElement).querySelector("#info-skeleton").appendChild(c);m&&_.Bj(this.hostElement).querySelector("#meta-skeleton").appendChild(m);b&&(_.Bj(this.hostElement).querySelector("#related-skeleton").appendChild(b),this.watchNextSkeletonEl_=b);_.nc(J)}},
handlePlayerUpdated_:function(){_.Qd(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(J,c){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof c!=="undefined"){var m=this.watchNextSkeletonEl_.children,b=J&&J.indexSplices.length?J.indexSplices[0].index:0;J=Math.min(this.watchNextShownItems.length,m.length);c||(b=0,J=m.length);for(c=b;c<J;c++)m[c].classList.add("hidden")}},
onPlayerFullscreenChange_:function(J){_.w("external_fullscreen")||_.m9(this.hostElement,"yt-player-fullscreen",[J.fullscreen])},
onFullscreenChange_:function(J){this.fullscreen=J;this.gestures_&&this.gestures_.update(this.fullscreen);var c=_.Qd(this);c.getPlayerPromise().then(function(m){m.setFauxFullscreen(!!_.yM())});
this.updateFullBleedElementLocations();J&&(c.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(J,c){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!c},
computeIsDonationShelfCollapsed_:function(J){return J},
computeShouldShowMerchShelf:function(J,c){return c&&!!J},
computeResponseHasComments:function(J){var c,m,b,x,P;return!!(J==null?0:(c=J.contents)==null?0:(m=c.twoColumnWatchNextResults)==null?0:(b=m.results)==null?0:(x=b.results)==null?0:(P=x.contents)==null?0:P.some(function(p){var t;return(p==null?void 0:(t=p.itemSectionRenderer)==null?void 0:t.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(J,c,m,b){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&b?!1:!!J&&!!Object.keys(J).length&&!c},
identity:_.GD,onWindowResized_:function(J){this.windowSize_=J;this.active&&(this.schedulePlayerSizeUpdate_(!0),this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate());_.w("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(J){var c=this;J&&J.type!=="dataloaded"&&J.type!=="dataupdated"||_.Qd(this).getPlayerPromise().then(function(m){var b=m.getPlayerState();b!==5&&b!==0&&(m=1/m.getVideoAspectRatio(),c.videoHeightToWidthRatio_!==m&&(c.videoHeightToWidthRatio_=m))})},
schedulePlayerSizeUpdate_:function(J){var c=this,m=_.w("kevlar_watch_while_v2")||_.w("web_watch_pip"),b=function(){if(c.watchMetadata){var x,P;(P=(x=c.watchMetadata).resize)==null||P.call(x)}_.Qd(c).getPlayerPromise().then(function(p){if(_.w("kevlar_set_internal_player_size")){if(!m||!c.isMiniplayerActive()){var t=c.calculateCurrentPlayerSize_();p.setInternalSize(t.width,t.height)}}else p.setSize(NaN,NaN);_.w("kevlar_watch_while")&&c.updateWatchWhileScrollThreshold_()})};
J?b():_.T9(_.ft,b)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(J){this.set("data.survey",J.detail)},
onYtShowSurveyCommand_:function(J){this.set("data.survey",_.L(J,_.rQh).survey)},
onDownloadedVideoDeleted:function(J){var c=this,m,b;return _.N(function(x){if(x.nextAddress==1){if(!c.active||(m=c.playerData)==null||!m.offlineState||c.videoId!==J)return x.return();(b=c.player)==null||b.stopVideo();_.Mh().navigatingAwayFromWatchDeletedVideo=!0;_.Nl(_.nFo,c.hostElement);return _.K(x,_.Mh().navigationFinishPromise,2)}_.Mh().navigatingAwayFromWatchDeletedVideo=!1;_.tD(x)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var J;this.theater?J=_.fZ(.5625*this.windowSize_.width,480,this.windowSize_.height-185):J=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==J&&(this.watchWhileScrollThreshold_=J,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var J=_.Bj(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&J){var c=this.windowSize_.height>=624,m=this.active?this.getScrollTop():0;!J.active&&c&&m>=this.watchWhileScrollThreshold_?(J.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):J.active&&(!c||m<this.watchWhileScrollThreshold_&&!_.yM())&&(J.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var J=_.Bj(this.hostElement).querySelector("#secondary-inner");if(J){var c=_.Bj(this.hostElement).querySelector("#below"),m=_.Bj(this.hostElement).querySelector("#secondary"),b=_.Bj(this.hostElement).querySelector("#comments");b&&m&&c&&(this.defaultTwoColumnLayout?(J.appendChild(b),m.appendChild(J)):(c.appendChild(b),_.qT(c,J)))}}},
isTwoColumnsChanged_:function(J,c){if(J!==!0||c!==void 0)if(this.enableFullBleedSingleColumnDefaultPlayer&&this.updateFullBleedElementLocations(),this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(J=_.Bj(this.hostElement).querySelector("#secondary-inner"))){c=_.Bj(this.hostElement).querySelector("#below");var m=_.Bj(this.hostElement).querySelector("#secondary"),b=_.Bj(this.hostElement).querySelector("#comments");b&&m&&c&&(this.isTwoColumns_?(J.appendChild(b),m.appendChild(J)):(c.appendChild(b),
_.qT(c,J)))}}else{J=!_.w("web_watch_enable_fs_squeezeback_panels")||!(this.fullscreen||this.iMaxTheaterMode&&this.theater);c=_.Bj(this.hostElement).querySelector("#panels");var x=_.Bj(this.hostElement).querySelector("#alerts");m=_.Bj(this.hostElement).querySelector("#playlist");b=_.Bj(this.hostElement).querySelector("#related");var P=_.Bj(this.hostElement).querySelector("#donation-shelf"),p=_.Bj(this.hostElement).querySelector("#comments");this.isTwoColumns_?(x=_.Bj(this.hostElement).querySelector("#secondary-inner"),
J&&(x.appendChild(c),x.appendChild(m)),x.appendChild(P),x.appendChild(b)):(J&&(_.sK(c,x),_.sK(m,x)),_.sK(P,x),p&&_.sK(b,p));this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.w("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&!_.w("web_watch_enable_fs_squeezeback_panels")&&_.w("web_watch_theater_chat")){var J=_.Bj(this.hostElement).querySelector("#chat-container"),c=this.theater&&!this.fullscreen||_.w("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&c?(c=_.Bj(this.hostElement).querySelector("#columns"),(J==null?void 0:J.parentElement)!==c&&c.append(J),this.fixedPanels=!0):(this.fixedPanels=
!1,c=_.Bj(this.hostElement).querySelector("#playlist"),J&&c?_.Ld(J,c):_.qz(new _.w3("Missing element when updating chat location",{"chatContainer defined":!!J,"playlist defined":!!c})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(J,c){return _.w("sw_metadata_vis_toggle_ks")?!0:!!J||!!c},
computeForceDarkPanelTheme:function(J){return _.w("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&J:!1},
safeUpdateStyles:function(J){try{_.V1(this.hostElement,J)}catch(c){_.qz(c)}},
videoHeightToWidthRatioChanged_:function(J,c){c&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(J){this.videoHeightToWidthRatio_=1/J},
computeIsVerticalVideo_:function(J){return J>=1},
computeIsFourThreeToSixteenNineVideo_:function(J){return J<=.7501&&J>=.5624},
computeIsExtraWideVideo_:function(J){return J<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.Qd(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.Qd(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.X1R(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(J){var c=_.m7(J)||0;_.ct(J,c+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var J=_.m7("yt-fullerscreen-edu-button-click-count")||0,c=_.m7("yt-fullerscreen-edu-button-shown-count")||0,m=_.c7("external_fullscreen_button_shown_threshold"),b=J>=_.c7("external_fullscreen_button_click_threshold")||c>=m;_.Qd(this).getPlayerPromise().then(function(x){x.updateFullerscreenEduButtonSubtleModeState(b)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(J,c){return c},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.BG().resolve(_.zn).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var J=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.ft.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.ft.addLowPriorityJob(function(){J.fullHeightPanelPositionUpdateJobId=0;var c=_.Bj(J.hostElement).querySelector("#secondary"),m=_.Bj(J.hostElement).querySelector("#fixed-secondary");c=c.getBoundingClientRect();var b=c.width;J.swatcherooSqueezeback&&
(b+=_.UJ);if(J.swatcherooSqueezeback){var x=_.Bj(J.hostElement).querySelector("#squeezeback-constraining-container");x.style.width=b+"px";x.style.flex="0 0 "+b+"px"}m.style.width=b+"px";m.style.left=c.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var J=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.ft.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.ft.addLowPriorityJob(function(){J.panelMaxHeightUpdateJob_=0;var c;!J.isTwoColumns_||J.theater||J.fullscreen?c=460:c=J.calculateNormalPlayerSize_().height;var m=c+"px";_.w("live_chat_taller_height")&&!J.theater&&(m="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.w("live_chat_medium_height")&&!J.theater&&(m="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.w("live_chat_scaled_height")&&!J.theater&&(m="calc(100vh - var(--ytd-toolbar-height) - 238px)");J.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":c+"px","--ytd-watch-flexy-chat-max-height":m,"--ytd-watch-flexy-structured-description-max-height":c+"px","--ytd-watch-flexy-comments-panel-max-height":c+"px","--ytd-comments-engagement-panel-content-height":c+"px"})}))},
onYtShowEngagementPanelScrimAction_:function(J){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",J)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.PA(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(J){var c=_.Bj(this.hostElement).querySelector("#engagement-panel-scrim");J?c.addEventListener("tap",_.ME(this,this.onEngagementPanelScrimClick_)):c.removeEventListener("tap",_.ME(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(J){if(this.hostElement.contains(J)&&!this.scrollToAnimation_.isAnimating()){var c=J.offsetTop-24;J=J.offsetTop+J.offsetHeight+24;var m=this.getPageScrollingElement(),b=this.getScrollTop(),x=b+m.clientHeight-56;if(c<b+56)c-=56;else if(J>x)c=J-m.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,c),500)}},
onYtSignalActionScrollToComments:function(){var J=this.hostElement.querySelector("#comments");if(J&&!this.scrollToAnimation_.isAnimating()){J=J.offsetTop-56-24;if(_.w("kevlar_comment_teaser_scroll_to_midpoint")&&(J-=_.Iw().height/3,J<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,J),500)}},
onYtEngagementPanelVisibleChanged:function(J,c,m){if(this.active&&this.trackEngagementPanelVisibility&&!_.Tcf.includes(m)){if(c==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"){if(this.swatcherooBinaryLayout||this.squeezeback)if(this.onSetPlaylistCollapsed(!0),_.bJ(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]),_.w("kevlar_single_panel_fullscreen")){var b=_.BG().resolve(_.Tr);this.visiblePanelIdentifiers_.forEach(function(x){x!==m&&b.hidePanel(x)})}this.visiblePanelIdentifiers_.add(m)}c!==
"ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&c!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(m);
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0}},
computeLegacyMetadataClass:function(J){return J?"":"watch-active-metadata"},
computeNewMetadataClass:function(J){return J?"watch-active-metadata":""},
computeFullBleedPlayer:function(J,c,m){return J||c||this.enableFullBleedSingleColumnDefaultPlayer&&!m},
computeDefaultLayout:function(J){return!J},
computeDefaultTwoColumnLayout:function(J,c){return!J&&c},
updatePanelsLocation:function(){if(_.w("web_watch_enable_fs_squeezeback_panels")){var J=_.Bj(this.hostElement).querySelector("#below"),c=_.Bj(this.hostElement).querySelector("#panels"),m=_.Bj(this.hostElement).querySelector("#playlist"),b=_.Bj(this.hostElement).querySelector("#chat-container"),x=_.Bj(this.hostElement).querySelector("#panels-full-bleed-container"),P=_.Bj(this.hostElement).querySelector("#secondary-inner"),p=this.fullscreen||this.theater&&this.iMaxTheaterMode,t=this.theater&&!this.iMaxTheaterMode&&
this.liveChatPresentAndExpanded;this.fixedPanels=!1;p?(x.appendChild(c),x.appendChild(b),x.appendChild(m)):this.isTwoColumns_?(t?(J=_.Bj(this.hostElement).querySelector("#columns"),(b==null?void 0:b.parentElement)!==J&&J.append(b),this.fixedPanels=!0):_.qT(P,b),_.qT(P,c),_.qT(P,m)):(J.appendChild(c),J.appendChild(b),J.appendChild(m))}},
swatcherooUpdatePanelsLocation:function(J,c,m,b,x,P){if(this.is==="ytd-watch-grid"){c=J&&!c;this.swatcherooSplitScroll&&(c?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));m=_.Bj(this.hostElement).querySelector("#panels");var p=_.Bj(this.hostElement).querySelector("#playlist"),t=_.Bj(this.hostElement).querySelector("#fixed-secondary"),I=_.Bj(this.hostElement).querySelector("#fixed-below"),
a=_.Bj(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),k=_.Bj(this.hostElement).querySelector("#chat-container");P&&(J?t.appendChild(m):I.appendChild(m));x?J?t.appendChild(k):I.appendChild(k):_.Ld(k,a);b?J?t.appendChild(p):I.appendChild(p):_.Ld(p,a);this.swatcherooSplitScroll&&(J=_.Bj(this.hostElement).querySelector("#secondary"),b=_.Bj(this.hostElement).querySelector("#columns"),x=_.Bj(this.hostElement).querySelector("#fixed-columns-secondary"),c?
x.appendChild(J):b.appendChild(J))}},
computeMetadataSkinnyMode:function(J,c,m){return this.is!=="ytd-watch-grid"?!1:J?m:c},
computeWatchWhilePanelsActive:function(J,c){return J||c},
computeNoBorderOnChat:function(J){return _.w("web_watch_theater_chat_no_border")&&J},
computeLiveChatPresentAndExpanded:function(J,c){return J&&!c},
computePanelExpanded:function(J,c,m){return J||c||m},
computeSqueezeback:function(J,c,m,b){if(_.w("web_watch_enable_fs_squeezeback_panels")){var x=this.iMaxTheaterMode&&this.theater;return(J||c||m)&&(b||x)}},
computeSwatcherooSqueezeback:function(J,c,m){return this.is!=="ytd-watch-grid"||_.w("ww_squeezeback_killswitch")?!1:J&&c&&m},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
squeezebackChanged:function(){this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(J){_.Qd(this).getPlayerPromise().then(function(c){var m;(m=c.changeMarkerVisibility)==null||m.call(c,_.L(J,_.Rj).isVisible||!1,_.L(J,_.Rj).entityKeys||[],_.L(J,_.Rj).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(J){this.liveChatCollapsed=J.detail;_.Rc().dispatch(_.nz4(J.detail))},
onSetPlaylistCollapsed:function(J){_.w("delhi_web_player_use_external_playlist_panel")&&(this.playlistPanelExpanded=this.playlist&&!J)},
provideRenderingData:function(J,c){switch(J){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=c;break;case "PRIMARY_INFO":_.w("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=c);this.videoPrimaryInfoRendererValue=c==null?void 0:c.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.w("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=c);this.videoSecondaryInfoRendererValue=c==null?void 0:c.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
c;break;case "CLARIFICATION":this.clarifyBoxValue=c;break;case "LIVE_CHAT":this.conversationBar=c;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=c;break;case "PLAYLIST":this.externalPlaylistData_=c!=null?c:{};break;case "MERCH_SHELF":this.merchShelfValue=c==null?void 0:c.merchandiseShelfRenderer;break;case "MERCH_SHELF_IN_SD":this.merchShelfInSd=c;break;case "TICKET_SHELF":this.ticket=c;break;case "OFFER_MODULE":this.offerModule=c;break;case "LIMITED_STATE":this.limitedStateValue=
c;break;case "DONATION_SHELF":this.donation=c;break;case "ALERTS":this.alertsValue=c;break;case "COMMENTS":this.comments=c;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=c;break;case "ENGAGEMENT_PANELS":this.engagementPanels=c;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=c;break;case "RICH_GRID_RENDERER":this.richGridRendererData=c;break;case "EXPANDABLE_METADATA":this.expandableMetadata=c;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=
c}},
toggleCinematicsActive:function(J){this.cinematicsActive=J},
isMiniplayerActive:function(){return _.BG().resolve(_.Uo).isMiniplayerActive()}}];
}catch(e){_._DumpException(e)}
try{
var Kv1;_.tso=function(J){return J.shorts.isShortsActive};
_.Icf=function(J){if(!(0,_.ztQ)(J))throw Error("H``"+String(J));};
_.CN1=function(J){return J.findIndex(function(c){return Kv1.indexOf(c.tagName)>-1})>-1};
_.acF=function(J){return _.J7({type:"SET_IS_FULLSCREEN",payload:{isFullscreen:J}})};
_.ke1=function(){var J=_.BG().resolve(_.NH);_.vbq(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null&&(J.isFullscreenEnabled()?_.BS(document.documentElement):_.KRR(document.documentElement))};
Kv1=["INPUT".toString(),"SELECT".toString(),"TEXTAREA".toString(),"EMBED".toString(),"YTD-COMMENTBOX","YT-LIVE-CHAT-RENDERER","YTD-PDG-BUY-FLOW-RENDERER"];_.ji=new Map;_.ji.set(32,59972);_.ji.set(27,50765);_.ji.set(70,60102);_.ji.set(76,60221);_.ji.set(77,60222);_.ji.set(74,60223);_.ji.set(84,60224);_.ji.set(38,61941);_.ji.set(40,61942);_.ji.set(73,62521);_.ji.set(67,62522);_.ji.set(80,63390);_.ji.set(78,63397);_.ji.set(75,59972);_.ji.set(188,63385);_.ji.set(190,63384);_.ji.set(36,63387);
_.ji.set(35,63386);_.ji.set(37,63388);_.ji.set(39,63389);_.ji.set(79,63423);_.ji.set(87,63424);_.ji.set(107,63426);_.ji.set(109,63425);_.ji.set(65,63428);_.ji.set(83,63430);_.ji.set(68,63429);_.ji.set(221,63431);_.ji.set(219,63432);_.ji.set(97,63439);_.ji.set(98,63440);_.ji.set(99,63441);_.ji.set(100,63442);_.ji.set(101,63443);_.ji.set(102,63444);_.ji.set(103,63445);_.ji.set(104,63446);_.ji.set(105,63447);_.Ff=new Map;_.Ff.set(80,63390);_.Ff.set(78,63397);_.Ff.set(188,63400);_.Ff.set(190,63401);
_.Ff.set(191,60765);_.Ff.set(13,247917);_.lf=new Map;_.yc=new Map;
}catch(e){_._DumpException(e)}
try{
var axR,i1f,nhh,Ta1;_.t3F=function(J){return J.ui.guideIsVisibleButNotPersistent};
_.Ixp=function(J){return J.ui.tabGesturesIsActive};
_.K_p=function(){var J=_.mG("service_worker_scope");try{return navigator.serviceWorker.getRegistration(J)}catch(c){return Promise.reject(c)}};
_.CsF=function(J){return!(!J||!J.pushManager)};
axR=function(){return _.K_p().then(_.CsF).catch(function(){return!1})};
_.k$4=function(){return navigator.serviceWorker&&navigator.serviceWorker.getRegistration&&window.Notification?axR():Promise.resolve(!1)};
_.H1F=function(){return window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/mp4; codecs="av01.0.05M.08"')};
i1f=function(){var J,c,m;return _.N(function(b){switch(b.nextAddress){case 1:return _.K(b,_.H$.getInstance(),2);case 2:J=b.yieldResult;if(!J){c=void 0;b.jumpTo(3);break}return _.K(b,J.get("lmqf"),4);case 4:c=b.yieldResult;case 3:switch((m=c)||(m="SD"),m){case "HD":return b.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD");case "HD_1080":return b.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080");case "SD":return b.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD");case "LD":return b.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD");
default:return b.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN")}}})};
nhh=function(J){var c,m,b;return _.N(function(x){if(x.nextAddress==1){if(window.localStorage&&window.localStorage["yt-player-av1-pref"]&&!_.w("disable_av1_setting")){var P=window.localStorage["yt-player-av1-pref"];P=P==="480"?"SETTINGS_OPTIONS_ID_TYPE_AV1_SD":P==="8192"?"SETTINGS_OPTIONS_ID_TYPE_AV1_ALWAYS":"SETTINGS_OPTIONS_ID_TYPE_UNKNOWN"}else P="SETTINGS_OPTIONS_ID_TYPE_AV1_AUTO";if(c=J===P)return x.jumpTo(2);b=m=J;return _.K(x,i1f(),3)}x.nextAddress!=2&&(c=b===x.yieldResult);return x.return(c)})};var w04;var rGp=_.kU.IronButtonState,shu=(0,_.KH)(HTMLElement);
_.sB({_template:function(){if(w04!==void 0)return w04;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;Ta1===void 0&&(Ta1=document.createElement("template"));var b=Ta1;m.call(c,b.content.cloneNode(!0),J.content.firstChild);return w04=J},
is:"tp-yt-paper-dropdown-menu",hostAttributes:{"style-target":"host"},behaviors:[rGp,_.CV,_.HY,_.TY],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(J){var c=(0,_.kA)(this);c.attachShadow({mode:"open",delegatesFocus:!0,
shadyUpgradeFragment:J});c.shadowRoot.appendChild(J);return shu.prototype._attachDom.call(this,J)},
focus:function(){this.$.input._focusableElement.focus()},
attached:function(){var J=this.contentElement;J&&J.selectedItem&&this._setSelectedItem(J.selectedItem)},
get contentElement(){for(var J=_.rK(this.$.content).getDistributedNodes(),c=0,m=J.length;c<m;c++)if(J[c].nodeType===Node.ELEMENT_NODE)return J[c]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(J){this._setSelectedItem(J.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(J){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(J)===this&&this.open()},
_selectedItemChanged:function(J){var c="";J?c=J.label||J.getAttribute("label")||J.textContent.trim():c="";this.value=c;this._setSelectedItemLabel(c)},
_computeMenuVerticalOffset:function(J,c){return c?c:J?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var J=this.opened?"true":"false",c=this.contentElement;c&&c.setAttribute("aria-expanded",J)}});_.$X=new _.Q("navigateAction");var L_R=new _.Q("formRenderer");var Gu=function(){var J=_.Cs.apply(this,arguments)||this;J.showInput=!1;return J};
_.D(Gu,_.Cs);_.V=Gu.prototype;_.V.detached=function(){this.showInput&&window.removeEventListener("click",_.ME(this,this.closeOnOutsideClick_))};
_.V.stopPropagation_=function(J){this.showInput&&J.stopPropagation()};
_.V.closeOnOutsideClick_=function(J){this.closeOnOutsideClickCondition(J)&&(this.showInput=!1,window.removeEventListener("click",_.ME(this,this.closeOnOutsideClick_)),this.closeOnOutsideClickHandler())};
_.V.closeOnOutsideClickCondition=function(){return!0};
_.V.closeOnOutsideClickHandler=function(){};
_.V.openOnClick_=function(){this.showInput=!0;window.addEventListener("click",_.ME(this,this.closeOnOutsideClick_));this.openOnClickHandler()};
_.V.openOnClickHandler=function(){};
_.V.showInputChanged=function(){};
_.V.setShowInput=function(J){this.showInput=J};
Gu.prototype.setShowInput=Gu.prototype.setShowInput;Gu.prototype.showInputChanged=Gu.prototype.showInputChanged;Gu.prototype.openOnClickHandler=Gu.prototype.openOnClickHandler;Gu.prototype.openOnClick_=Gu.prototype.openOnClick_;Gu.prototype.closeOnOutsideClickHandler=Gu.prototype.closeOnOutsideClickHandler;Gu.prototype.closeOnOutsideClickCondition=Gu.prototype.closeOnOutsideClickCondition;Gu.prototype.closeOnOutsideClick_=Gu.prototype.closeOnOutsideClick_;Gu.prototype.stopPropagation_=Gu.prototype.stopPropagation_;
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Gu.prototype,"showInput",void 0);_.O([_.ps("click"),_.ps("keydown"),_.R("design:type",Function),_.R("design:paramtypes",[Event]),_.R("design:returntype")],Gu.prototype,"stopPropagation_",null);_.O([_.NE("showInput"),_.R("design:type",Function),_.R("design:paramtypes",[Boolean]),_.R("design:returntype")],Gu.prototype,"showInputChanged",null);Gu=_.O([_.au()],Gu);_.D2u=[Gu.prototype];var W_F;var z$S;var Ey=function(){return _.h.apply(this,arguments)||this};
_.D(Ey,_.h);_.V=Ey.prototype;_.V.computePreselectedOption=function(J,c){return c===this.itemSelected_?J:void 0};
_.V.dataChanged_=function(){var J=this;this.preselectedSubreason=this.itemSelected_=-1;var c;(c=this.data)!=null&&c.key&&_.o3(this,function(){var m,b=Number((m=J.data)==null?void 0:m.key);!Number.isNaN(b)&&(J.itemSelected_=b,m=(m=(J.data.items||[])[b])&&m.optionSelectableItemRenderer&&m.optionSelectableItemRenderer.preselectedIndex)&&(J.preselectedSubreason=m)})};
_.V.isSubReasonHidden_=function(J,c){return J!=c};
_.V.onTopItemSelected_=function(J,c){for(var m=_.Bj(this.hostElement).querySelectorAll("tp-yt-paper-listbox"),b=0,x=m.length;b<x;b++)m[b].select(0);_.m9(this.hostElement,"yt-report-form-update",[c.item.value]);J.stopPropagation()};
_.V.onItemSelected_=function(J,c){_.m9(this.hostElement,"yt-report-form-update",[c.item.value]);J.stopPropagation()};
_.V.getItem_=function(J){return J.serviceItem?J.serviceItem:J.navigationItem?J.navigationItem:J.optionSelectableItemRenderer?J.optionSelectableItemRenderer:null};
_.V.computeText_=function(J){return(J=this.getItem_(J))?this.ytRendererBehavior.getSimpleString(J.text):null};
_.V.validate=function(){return this.itemSelected_!==-1};
_.V.computeAriaLabel_=function(J){var c=_.OG(J.text);(J=J.accessibility&&J.accessibility.accessibilityData&&J.accessibility.accessibilityData.label)&&(c+=". "+J);return c};
_.V.computeItemSelected_=function(J){return J};
_.V.preventSelection_=function(J){J.stopPropagation();this.tooltipTapped=!0};
_.V.onPaperRippleTransitionEnd_=function(){this.tooltipTapped=!1};
_.V.updateItemSelectedFromBinding=function(J){this.itemSelected_=J.detail.value};
_.V.save=function(){var J;this.validate()&&(J=this.data)!=null&&J.items&&(J=this.data.items[this.itemSelected_],J!=null&&J.optionSelectableItemRenderer&&(this.ytComponentBehavior.resolveCommand(J.optionSelectableItemRenderer.submitEndpoint)||_.Vq(this.hostElement,[J.optionSelectableItemRenderer.submitEndpoint])))};
Ey.prototype.onPaperRippleTransitionEnd_=Ey.prototype.onPaperRippleTransitionEnd_;Ey.prototype.dataChanged_=Ey.prototype.dataChanged_;_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],Ey.prototype,"ytComponentBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Ey.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Ey.prototype,"data",void 0);_.O([_.U({value:-1}),_.R("design:type",Number)],Ey.prototype,"itemSelected_",void 0);
_.O([_.U({computed:"computeItemSelected_(itemSelected_)"}),_.R("design:type",Number)],Ey.prototype,"value",void 0);_.O([_.U({value:!1}),_.R("design:type",Boolean)],Ey.prototype,"restoreFocusOnClose",void 0);_.O([_.U({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],Ey.prototype,"tooltipTapped",void 0);_.O([_.U({value:-1}),_.R("design:type",Number)],Ey.prototype,"preselectedSubreason",void 0);
_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Ey.prototype,"dataChanged_",null);_.O([_.ps("transitionend"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Ey.prototype,"onPaperRippleTransitionEnd_",null);Ey=_.O([_.uM({is:"yt-options-renderer",disableElementRegistration:!0})],Ey);
_.v(Ey,"yt-options-renderer",function(){if(z$S===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;W_F===void 0&&(W_F=document.createElement("template"));var b=W_F;m.call(c,b.content.cloneNode(!0),J.content.firstChild);z$S=J}J=z$S;return J},{mode:2});var uHo;var fxs;var Y$F;var X0r;var Z1R;var q$p;var vn=function(){return _.h.apply(this,arguments)||this};
_.D(vn,_.h);vn.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.onShow()};
vn.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
vn.prototype.onTap=function(J){if(this.hostElement.classList.contains("selected")||_.x2(this.hostElement,"yt-share-panel-can-select-contact-action"))J&&J.detail&&(J.detail.x||J.detail.y)&&_.Bj(this.hostElement).querySelector("#target").blur(),(J=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),J={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!1,serialization:J?this.data.serializedContactInvitee:
null,undoFn:this.onTap.bind(this)},_.m9(this.hostElement,"yt-share-panel-select-contact-action",[J])};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],vn.prototype,"ytRendererBehavior",void 0);_.O([_.U({observer:"onDataChanged"}),_.R("design:type",Object)],vn.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.R("design:type",String)],vn.prototype,"componentTitle",void 0);_.O([_.Iu("#thumbnail"),_.R("design:type",Object)],vn.prototype,"thumbnail",void 0);vn=_.O([_.uM({is:"yt-enrolled-contact-renderer",disableElementRegistration:!0})],vn);
_.v(vn,"yt-enrolled-contact-renderer",function(){if(q$p===void 0){var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);var c=J.content,m=c.insertBefore;Z1R===void 0&&(Z1R=document.createElement("template"));var b=Z1R;m.call(c,b.content.cloneNode(!0),J.content.firstChild);q$p=J}J=q$p;return J},{mode:2});var U2R;var S$s;var Oy=function(){return _.h.apply(this,arguments)||this};
_.D(Oy,_.h);Oy.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.polymerController.onShow_()};
Oy.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
Oy.prototype.onTap=function(J){if(this.hostElement.classList.contains("selected")||_.x2(this.hostElement,"yt-share-panel-can-select-contact-action"))J&&J.detail&&(J.detail.x||J.detail.y)&&_.Bj(this.hostElement).querySelector("#target").blur(),(J=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),J={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!0,serialization:J?this.data.serializedSuggestedContact:
null,undoFn:this.onTap.bind(this)},_.m9(this.hostElement,"yt-share-panel-select-contact-action",[J])};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Oy.prototype,"ytRendererBehavior",void 0);_.O([_.U({observer:"onDataChanged"}),_.R("design:type",Object)],Oy.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.R("design:type",String)],Oy.prototype,"componentTitle",void 0);_.O([_.Iu("#thumbnail"),_.R("design:type",Object)],Oy.prototype,"thumbnail",void 0);Oy=_.O([_.uM({is:"yt-suggested-contact-renderer",disableElementRegistration:!0})],Oy);
_.v(Oy,"yt-suggested-contact-renderer",function(){if(S$s===void 0){var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);var c=J.content,m=c.insertBefore;U2R===void 0&&(U2R=document.createElement("template"));var b=U2R;m.call(c,b.content.cloneNode(!0),J.content.firstChild);S$s=J}J=S$s;return J},{mode:2});var A_=function(){var J=_.h.apply(this,arguments)||this;J.actionMap={"yt-share-panel-reset-action":"onReset"};return J};
_.D(A_,_.h);A_.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"}}}}}};
A_.prototype.onDataChanged=function(){this.data&&this.data.selectMessageRenderer&&this.data.selectMessageRenderer.contactSelectMessageRenderer&&_.m9(this.hostElement,"yt-share-panel-set-select-message-renderer-action",[this.data.selectMessageRenderer.contactSelectMessageRenderer])};
A_.prototype.onReset=function(){for(var J=_.Bj(this.hostElement).querySelector("#contents").getElementsByClassName("selected"),c=J.length-1;c>=0;c--)J[c].classList.toggle("selected")};
_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],A_.prototype,"ytActionHandlerBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],A_.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],A_.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U({observer:"onDataChanged"}),_.R("design:type",Object)],A_.prototype,"data",void 0);
A_=_.O([_.uM({is:"yt-contact-section-renderer",disableElementRegistration:!0})],A_);
_.v(A_,"yt-contact-section-renderer",function(){if(X0r===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;Y$F===void 0&&(Y$F=document.createElement("template"));var b=Y$F;m.call(c,b.content.cloneNode(!0),J.content.firstChild);X0r=J}J=X0r;return J},{mode:2});var R0=function(){var J=_.h.apply(this,arguments)||this;J.actionMap={"yt-refresh-form-command":"onYtRefreshFormCommand"};return J};
_.D(R0,_.h);_.V=R0.prototype;_.V.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"}}}};
_.V.onYtRefreshFormCommand=function(J){var c;(J=_.L((c=_.L(J,_.Fmj))==null?void 0:c.formRenderer,L_R))&&this.set("data",J)};
_.V.reset=function(){var J=_.Bj(this.hostElement).querySelector("#fields").children;J=_.M(J);for(var c=J.next();!c.done;c=J.next())c=c.value,c.reset&&c.reset()};
_.V.getForm=function(){var J={},c=_.Bj(this.hostElement).querySelector("#fields").children;c=_.M(c);for(var m=c.next();!m.done;m=c.next()){m=m.value;if(!m.validate())return null;J[m.data.key]=m.value}return J};
_.V.submitFormFields=function(){if(this.fields)for(var J=_.M(this.fields),c=J.next();!c.done;c=J.next())c=c.value,c.nodeName==="YT-TEXT-INPUT-FORM-FIELD-RENDERER"?c.save():c.nodeName==="YT-OPTIONS-RENDERER"&&c.save()};
_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],R0.prototype,"ytActionHandlerBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],R0.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],R0.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],R0.prototype,"data",void 0);_.O([_.Ks("#fields > *"),_.R("design:type",Array)],R0.prototype,"fields",void 0);
R0=_.O([_.uM({is:"yt-form-renderer",disableElementRegistration:!0})],R0);
_.v(R0,"yt-form-renderer",function(){if(fxs===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;uHo===void 0&&(uHo=document.createElement("template"));var b=uHo;m.call(c,b.content.cloneNode(!0),J.content.firstChild);fxs=J}J=fxs;return J},{mode:2});var h$S;var o0=function(){var J=_.h.apply(this,arguments)||this;J.actionMap={"yt-settings-update-checkbox-command":"handleUpdateCheckboxCommand"};return J};
_.D(o0,_.h);o0.prototype.onCheckboxChange=function(J){this.data&&(J=(this.checked=_.Ac(J).checked)?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&_.BG().resolve(_.gu).resolveCommand(J,{form:{element:this.hostElement}})};
o0.prototype.handleUpdateCheckboxCommand=function(J){(J=_.L(J,_.IbQ))&&this.data&&this.data.id===J.id&&(this.set("data.disabled",J.disabled),this.set("data.title",J.title))};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],o0.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],o0.prototype,"ytActionHandlerBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],o0.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Boolean)],o0.prototype,"checked",void 0);o0=_.O([_.E({is:"ytd-settings-checkbox-renderer",disableElementRegistration:!0})],o0);
_.v(o0,"ytd-settings-checkbox-renderer",function(){if(h$S!==void 0)return h$S;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return h$S=J},{mode:1});var d2s;var Qe=function(){var J=_.h.apply(this,arguments)||this;J.actionMap={"yt-select-settings-radio-option":"onSelectOption"};return J};
_.D(Qe,_.h);Qe.prototype.dataChanged=function(){var J=this,c;return _.N(function(m){if(m.nextAddress==1)return J.radio.removeAttribute("checked"),!J.data||!J.data.id||J.data.id!=="SETTINGS_OPTIONS_ID_TYPE_AV1_SD"||_.H1F()&&window.SourceBuffer&&window.SourceBuffer.prototype.changeType?(c=J.data&&J.data.id)?_.K(m,nhh(J.data.id),4):m.jumpTo(3):(J.set("data.hidden",!0),m.jumpTo(0));m.nextAddress!=3&&(c=m.yieldResult);c&&_.m9(J.hostElement,"yt-select-settings-radio-option",[J.data.id]);_.tD(m)})};
Qe.prototype.onButtonChanged=function(J){_.Ac(J).checked?this.data&&this.data.id&&(this.data.serviceEndpoint&&_.BG().resolve(_.gu).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),_.m9(this.hostElement,"yt-select-settings-radio-option",[this.data.id])):this.radio.setAttribute("checked","")};
Qe.prototype.onSelectOption=function(J){this.data&&this.data.id&&(this.data.id===J?this.radio.setAttribute("checked",""):this.radio.removeAttribute("checked"))};
Qe.prototype.dataChanged=Qe.prototype.dataChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Qe.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],Qe.prototype,"ytActionHandlerBehavior",void 0);_.O([_.Iu("#radio"),_.R("design:type",Object)],Qe.prototype,"radio",void 0);_.O([_.U(),_.R("design:type",Object)],Qe.prototype,"data",void 0);
_.O([_.kr("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype",Promise)],Qe.prototype,"dataChanged",null);Qe=_.O([_.E({is:"ytd-settings-radio-option-renderer",disableElementRegistration:!0})],Qe);
_.v(Qe,"ytd-settings-radio-option-renderer",function(){if(d2s!==void 0)return d2s;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return d2s=J},{mode:1});var $2f;var eX=function(){var J=_.h.apply(this,arguments)||this;J.actionMap={"yt-settings-update-text-command":"handleUpdateTextCommand","yt-settings-update-connected-app-renderer-command":"handleUpdateConnectedAppRendererCommand"};return J};
_.D(eX,_.h);
eX.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"}}}};
eX.prototype.handleUpdateTextCommand=function(J){(J=_.L(J,_.Ksz))&&this.data&&this.data.id===J.id&&this.set("data",J)};
eX.prototype.handleUpdateConnectedAppRendererCommand=function(J){if(_.L(J,_.k8u)&&this.data){var c,m;if(J=(c=_.L(J,_.k8u))==null?void 0:(m=c.newConnectedAppRenderer)==null?void 0:m.connectedAppRenderer)this.data=J}};
eX.prototype.computeConnectedAppStyle=function(J){return J.style?J.style.toLowerCase().replace(/_/g,"-"):""};
_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],eX.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],eX.prototype,"ytActionHandlerBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],eX.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],eX.prototype,"data",void 0);
_.O([_.U({reflectToAttribute:!0,computed:"computeConnectedAppStyle(data)"}),_.R("design:type",String)],eX.prototype,"connectedAppStyle",void 0);eX=_.O([_.E({is:"ytd-connected-app-renderer",disableElementRegistration:!0})],eX);
_.v(eX,"ytd-connected-app-renderer",function(){if($2f!==void 0)return $2f;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return $2f=J},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.ZS("iuT5Oc");

_.qi();
}catch(e){_._DumpException(e)}
try{
_.ZS("L3n37");
var Rts=function(J){return J.watch.isLearningJourneyActive},ozo=_.rs(115994),Qfe=_.rs(115993),etp=function(J,c,m){var b=this;
var x=m.dragDownAction;this.layer=0;this.JSC$20492_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return b.dragDownAction()}}}};
this.JSC$20492_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return b.dragDownAction()}}}};
this.fullscreen=!1;var P=_.C7();_.c$(P,ozo,this.layer);_.c$(P,Qfe,this.layer);this.dragDownAction=function(){x();_.Ui(P,{visualElement:b.fullscreen?ozo:Qfe})};
this.gesture=new _.pT(J,c,this.JSC$20492_watchConfig,"pandown");this.attach()};
etp.prototype.attach=function(){this.gesture.attach()};
etp.prototype.detach=function(){this.gesture.detach()};
etp.prototype.update=function(J){this.fullscreen=J;this.gesture.config=J?this.JSC$20492_watchFullScreenConfig:this.JSC$20492_watchConfig};var jf5=function(J){_.ei.call(this);var c=this;this.rootElement=J;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return c.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(m){c.initOrDisposeActiveModules(m)}));
this.onAttached()};
_.D(jf5,_.ei);_.V=jf5.prototype;_.V.getRoot=function(){return this.rootElement};
_.V.getElement=function(J){return this.rootElement.getElement(J)};
_.V.setPlayerResponse=function(J){this.playerResponse=J;this.publish("PLAYER_RESPONSE_UPDATED",J)};
_.V.getPlayerResponse=function(){return this.playerResponse};
_.V.setWatchNextResponse=function(J){this.watchNextResponse===J?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=J,this.publish("WATCH_NEXT_RESPONSE_UPDATED",J))};
_.V.getWatchNextResponse=function(){return this.watchNextResponse};
_.V.registerActionHandler=function(J,c){var m=this;if(_.w("web_watch_controller_reg_multiple_handlers_killswitch")){var b={};_.Oe(_.vO.getInstance(),(b[J]=c,b),this.getRoot())}else this.actionHandlers.has(J)||(this.actionHandlers.set(J,[]),b={},_.Oe(_.vO.getInstance(),(b[J]=function(){var x=_.s$.apply(0,arguments);return(m.actionHandlers.get(J)||[]).map(function(P){return P.apply(null,_.L6(x))})},b),this.getRoot())),this.actionHandlers.get(J).push(c)};
_.V.unregisterActionHandler=function(J){if(_.w("web_watch_controller_reg_multiple_handlers_killswitch")){var c={};_.AI(_.vO.getInstance(),(c[J]=!0,c),this.getRoot())}else(c=this.actionHandlers.get(J))?(c.pop(),c.length===0&&(c={},_.AI(_.vO.getInstance(),(c[J]=!0,c),this.getRoot()),this.actionHandlers.delete(J))):_.qz(new _.w3("Attempted to unregister an action handler which is not registered.",J))};
_.V.addPageDisposeJob=function(J){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.QJ(this.rootElement.pageDisposeJobs,J)};
_.V.removePageDisposeJob=function(J){this.rootElement.pageDisposeJobs&&_.j2(this.rootElement.pageDisposeJobs,J)};
_.V.dispatchEvent=function(J,c){_.cA(this.rootElement,J,c)};
_.V.provideRenderingData=function(J,c){this.rootElement.provideRenderingData(J,c)};
_.V.scrollWatchTo=function(J,c){var m;(m=this.watchScrollManager)==null||m.scrollWatchTo(J,c)};
_.V.focusOnPlayer=function(){var J=this.getElement("PLAYER");_.o3(J,function(){if(J&&J.firstElementChild){var c=J.querySelector(".html5-video-player");c&&(_.eO(_.BG().resolve(_.Lq)),c.focus())}else _.qz(Error("jm"))})};
_.V.updateCinematicFullscreenConfig=function(){var J=!!this.rootElement.theater,c=!!this.rootElement.fullscreen,m;(m=this.watchCinematicManager)==null||_.R34(m,c,J)};
_.V.subscribeToActiveChanged=function(J,c){c=c===void 0?!0:c;var m=_.Nh(_.Rc(),Rts,function(b){J(b)});
c&&J(Rts(_.Rc().getState()));return m};
_.V.isActive=function(){return Rts(_.Rc().getState())};
_.V.onAttached=function(){var J=_.w("external_fullscreen");_.w("use_unified_flag_accessor")&&(J=_.BG().resolve(_.kDR).retriever.getFlag(_.wR_));(J||_.Ss("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
_.V.initPersistentModules=function(){if(_.w("kevlar_watch_flexy_theater_manager")){var J=new _.nms(this);_.Kc(this,J)}J=new _.bT5(this);_.Kc(this,J);J=new _.fh(this);_.Kc(this,J);J=new _.h9(this);_.Kc(this,J);J=new _.ZTh(this);_.Kc(this,J);J=new _.Xu(this);_.Kc(this,J);_.w("kevlar_watch_flexy_playlist_manager")&&(J=new _.SN1(this),_.Kc(this,J))};
_.V.initOrDisposeActiveModules=function(J){J?(this.watchScrollManager=new _.$n(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.iT1(this)),this.activeModules.push(new _.sX5(this)),this.activeModules.push(new _.vk5(this)),this.activeModules.push(new _.dN(this)),_.w("kevlar_watch_flexy_error_screen_data_provider")&&this.activeModules.push(new _.zq5(this)),this.activeModules.push(new _.Lb5(this)),_.w("kevlar_watch_flexy_ypc_manager")&&this.activeModules.push(new _.A1e(this)),
_.w("kevlar_watch_flexy_ads_manager")&&this.activeModules.push(new _.S6h(this)),_.w("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.Em1(this),this.activeModules.push(this.watchCinematicManager),this.updateCinematicFullscreenConfig()),_.w("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.uKf(this)),_.w("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.c1F(this)),J=_.w("swatcheroo_directly_provide_comments")&&this.getRoot().is===
"ytd-watch-grid",_.w("kevlar_watch_flexy_comments_manager")&&!J&&this.activeModules.push(new _.lTR(this)),_.w("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.Yn(this)),this.activeModules.push(new _.z3r(this)),this.activeModules.push(new _.TGs(this)),_.w("web_enable_timely_actions")&&this.activeModules.push(new _.XMf(this)),_.w("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.gfu(this)),_.w("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.Rqp(this)),
_.w("web_fullscreen_video_action_bar")&&this.activeModules.push(new _.XhS(this)),_.w("web_player_rtr_ctrls")&&this.activeModules.push(new _.cj1(this))):(_.Bm(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.V.disposeInternal=function(){_.ei.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.eE.Object.defineProperties(jf5.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});var FJ5={},lBR=["learning-journey-engagement-panel","PAlearning_chat"];
FJ5.YtdLearningJourneyWatchBehavior=[_.g.YtRendererBehavior,_.Ex.YtPlayerListenerBehavior,_.lU.YtRendererstamperBehavior,_.yw.YtActionHandlerBehavior,_.D$.YtPageBehavior,_.ts.YtEndpointBehavior,{_noAccessors:!0,properties:{data:{type:Object,observer:"dataChanged_"},info:{type:Object},meta:{type:Object},ticket:{type:Object},donation:{type:Object},clarifyBox:{type:Object,computed:"getClarifyBox(data, clarifyBoxValue)"},offerModule:{type:Object},engagementPanels:{type:Object},inlineEngagementPanels:{type:Object},
learningJourneyEngagementPanels:{type:Object,computed:"getLearningJourneyEngagementPanels(engagementPanels, learningJourneyEngagementPanelsValue)"},nonLearningJourneyEngagementPanels:{type:Object,computed:"getNonLearningJourneyEngagementPanels(engagementPanels, learningJourneyEngagementPanelsValue)"},clarifyBoxValue:{type:Object},conversationBar:{type:Object},infoPanelBelowMetadata:{type:Object},expandableMetadata:{type:Object},limitedState:{type:Object,computed:"getLimitedState(data, limitedStateValue)"},
limitedStateValue:{type:Object},merchShelf:{type:Object,computed:"getMerchShelf(data, merchShelfValue)"},merchShelfValue:{type:Object},singleColumn:{type:Object,computed:"getSingleColumn(playerData.playabilityStatus, data, singleColumnValue)"},singleColumnValue:{type:Object},comments:{type:Object,value:null},playerData:{type:Object,observer:"playerDataChanged_"},playerAds:{type:Object,value:null},localPlaylistData_:{type:Object,value:{},computed:"setPlaylistData_(data.contents.twoColumnWatchNextResults.playlist.playlist)"},
externalPlaylistData_:{type:Object,value:{}},playlistData:{type:Object,computed:"computePlaylistData_(localPlaylistData_, externalPlaylistData_)"},theater:{type:Boolean,value:!1,reflectToAttribute:!0},fullWindowMode_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Ss("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.w("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 _.Ss("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 _.w("kevlar_watch_js_panel_height")},
reflectToAttribute:!0},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.w("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.w("kevlar_use_engagement_panel_management_component")}},
watchMetadataRefresh:{type:Boolean,value:!1,computed:"computeWatchMetadataRefresh(videoPrimaryInfoRenderer)",reflectToAttribute:!0},liveChatCollapsed:{type:Boolean},liveChatPresentAndExpanded:{type:Boolean,reflectToAttribute:!0,computed:"computeLiveChatPresentAndExpanded(shouldStampChat, liveChatCollapsed)"},playlistPanelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1},engagementPanelExpanded:{type:Boolean,value:!1},panelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computePanelExpanded(engagementPanelExpanded, playlistPanelExpanded, liveChatPresentAndExpanded)"},
richItemMinWidth:{type:Number,value:function(){return _.c7("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.c7("wn_grid_max_item_width",700)}},
commentsEntryPointHeaderRenderer:{type:Object,computed:"computeCommentsEntryPointHeaderRenderer(data, commentsEntryPointHeaderRendererValue, defaultTwoColumnLayout, isTwoColumns_)"},commentsEntryPointHeaderRendererValue:{type:Object},videoMetadataCarousel:{type:Object},richGridRendererData:{type:Object},watchNextSecondaryResults:{type:Object},videoPrimaryInfoRenderer:{type:Object,computed:"computeVideoPrimaryInfoRenderer(data, videoPrimaryInfoRendererValue)"},videoPrimaryInfoRendererValue:{type:Object},
videoSecondaryInfoRenderer:{type:Object,computed:"computeVideoSecondaryInfoRenderer(data, videoSecondaryInfoRendererValue)"},videoSecondaryInfoRendererValue:{type:Object},inlineStructuredDescriptionData:{type:Object,computed:"computeInlineStructuredDescriptionData(data)"},flexyEnableSmallWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.w("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.w("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 _.w("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.w("web_watch_fullerscreen_deprecation_ui")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.w("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.w("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.w("kevlar_watch_frame0_loading_state")}},
roundedPlayerMedium:{type:Boolean,reflectToAttribute:!0,value:function(){return _.w("web_watch_rounded_player_medium")}},
roundedPlayerLarge:{type:Boolean,reflectToAttribute:!0,value:function(){return _.w("web_watch_rounded_player_large")||_.w("watch_next_grid_round_player")}},
showExpandableMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeShowExpandableMetadata(expandableMetadata)"},fullBleedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeFullBleedPlayer(fullscreen, theater)"},defaultLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultLayout(fullBleedPlayer)"},defaultTwoColumnLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultTwoColumnLayout(fullBleedPlayer, isTwoColumns_)"},trackEngagementPanelVisibility:{type:Boolean,
value:function(){return _.w("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.w("web_watch_show_comment_teaser")}},
fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.w("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 _.w("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.w("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 _.w("web_thumbnail_to_watch_transition")}}},
observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);updateChatLocation(liveChatPresentAndExpanded);watchNextSecondaryResultsChanged(data)".split(";"),monitorScroll:!0,configureRendererStamper:function(){return{info:{id:"info-contents",
mapping:{videoPrimaryInfoRenderer:{component:"ytd-video-primary-info-renderer"}}},meta:{id:"meta-contents",mapping:{videoSecondaryInfoRenderer:{component:"ytd-video-secondary-info-renderer",properties:{structuredDescriptionContentRenderer:"[[inlineStructuredDescriptionData]]"}}}},ticket:{id:"ticket-shelf",mapping:{ticketShelfRenderer:{component:"ytd-ticket-shelf-renderer",properties:{skinnyMode:"[[isTwoColumns_]]"}}}},offerModule:{id:"offer-module",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",
properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"},movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",properties:{hidden:"[[hideUnlimitedOfferModule]]"}},
tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},expandableMetadata:{id:"expandable-metadata",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",params:{isWatch:!0}}}},donation:{id:"donation-shelf",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"}}},
clarifyBox:{id:"clarify-box",mapping:{clarificationRenderer:"ytd-clarification-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",infoPanelContentRenderer:"ytd-info-panel-content-renderer",emergencyOneboxRenderer:{component:"ytd-emergency-onebox-renderer",attributes:{"class":"watch"}}}},limitedState:{id:"limited-state",mapping:{limitedStateMessageRenderer:"ytd-limited-state-message-renderer"}},playerAds:{id:"player-ads",mapping:{playerLegacyDesktopWatchAdsRenderer:"ytd-player-legacy-desktop-watch-ads-renderer"},
initialRenderPriority:3,waitForSignal:_.uZ(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.uZ(["aa","eocs"])},alerts:{id:"alerts",mapping:{alertRenderer:"yt-alert-renderer",alertWithButtonRenderer:"ytd-alert-with-button-renderer"}},"data.contents.twoColumnWatchNextResults.miniplayerBar":{id:"miniplayer-bar",mapping:{miniplayerBarRenderer:"ytd-miniplayer-bar-renderer"}},microformat:{id:"microformat",mapping:{playerMicroformatRenderer:"player-microformat-renderer"}},
singleColumn:{id:"single-column-container",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}},learningJourneyEngagementPanels:{id:"plj-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}},nonLearningJourneyEngagementPanels:{id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}}},
listeners:{"yt-retrieve-location":"onRetrieveLocation_","yt-subscription-changed":"onSubscriptionChanged_","yt-show-survey":"onYtShowSurvey_","yt-chat-collapsed-changed":"onYtChatCollapsedChanged"},actionMap:{"yt-sync-with-remote-video":"syncWithRemoteVideo_","yt-window-resized":"onWindowResized_","yt-initial-video-aspect-ratio":"onYtInitialVideoAspectRatio_","yt-update-player-next-video":"onUpdatePlayerNextVideo_","yt-signal-action-pause-player":"handleSignalActionPausePlayer_","yt-signal-action-play-player":"handleSignalActionPlayPlayer_",
"yt-signal-action-acknowledge-youthere":"handleSignalActionAcknowledgeYouThere_","yt-user-activity":"onYtUserActivity_","yt-show-engagement-panel-scrim-action":"onYtShowEngagementPanelScrimAction_","yt-hide-engagement-panel-scrim-action":"onYtHideEngagementPanelScrimAction_","yt-get-current-video-id-action":"onGetCurrentVideoIdAction_","yt-show-survey-command":"onYtShowSurveyCommand_","yt-signal-action-scroll-to-comments":"onYtSignalActionScrollToComments","yt-engagement-panel-visible-changed":"onYtEngagementPanelVisibleChanged",
"yt-downloaded-video-deleted":"onDownloadedVideoDeleted","yt-change-markers-visibility-command":"onChangeMarkersVisibility","yt-updated-playability-status":"onYtUpdatedPlayabilityStatus"},created:function(){var J=this;this.watchController=void 0;this.pageDisposeJobs=[function(){J.showMetadataPlaceholder_()},
function(){_.w("web_watch_dont_clear_comments")||J.clearComments_()},
function(){J.clearPlayerAds_()},
function(){J.resetAutonavCanceledForNewPlayback_()}];
this.player=this.playerContainerEl=this.playerEl=this.watchNextSkeletonEl_=null;this.onPlayingCallbacks_=[];this.clearPlayerAdsJobId_=this.setRichGridJobId_=this.setCommentsJobId_=0;this.showFullerscreenEdu_=!1;this.windowSize_=null;this.trackEngagementPanelVisibility&&(this.visiblePanelIdentifiers_=new Set);this.autonavCanceledSignal_=!1;_.w("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.w("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=!1);this.youThereManager_=
new _.sfp(function(){return _.Qd(J)},this.hostElement);
this.pageDisposeJobs.push(function(){J.youThereManager_.reset()});
_.w("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){J.resetFullerscreenEduButtonForNewPlayback_()}));
_.w("kevlar_watch_js_panel_height")&&(this.panelMaxHeightUpdateJob_=0);this.fullHeightPanelPositionUpdateJobId=0;this.playerEvents_=new _.gy;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;_.w("kevlar_watch_metadata_refresh")&&
(this.watchMetadata=void 0);_.w("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));_.w("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.ME(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(J){J&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:J}),J.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(J){_.w("kevlar_watch_flexy_theater_manager")&&(this.theater=J,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),_.w("kevlar_watch_js_panel_height")&&this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(J){!_.w("kevlar_watch_while_v2")&&!_.w("web_watch_pip")||J||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(J){this.active!==void 0&&(this.fullscreen=J,_.w("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(J){this.active!==void 0&&(_.cA(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.w("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.w("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(J>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(J){this.initCsi_();this.updatePageData_(J)},
updatePageData_:function(J){var c=this;if(J)if(this.data===J){this.onPageLoadWithSameData_();var m;(m=this.watchController)==null||m.setWatchNextResponse(this.data)}else this.data=J;this.playlist&&_.uJ({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.Y2("nw");this.loading=!1;_.rv(_.ft,function(){c.initDclkstatus_();var b,x=((b=c.player)==null?void 0:b.getVideoData().cpn)||"";_.p1R(function(P,p){_.MsF(P,p,x)})})},
onPageLoadWithSameData_:function(){_.w("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 J=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!J);this.set("loadingData.playlistLoading",J&&J!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),J=this.watchNextSkeletonEl_.firstElementChild;J;)J.classList.remove("hidden"),J=J.nextElementSibling;if(_.w("kevlar_watch_frame0_loading_state")){var c,m,b;J=(c=this.loadingData)==null?void 0:(m=c.endpoint)==null?void 0:(b=m.watchEndpoint)==null?void 0:b.videoId;var x;J&&(x="https://i.ytimg.com/vi/"+J+"/frame0.jpg");_.Bj(this.hostElement).querySelector("#player").style.backgroundImage=x?"url("+x+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var J=_.Bj(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&J&&(J.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var c,m;(m=(c=this.watchMetadata).updateSentimentBarWidth)==
null||m.call(c);var b,x;(x=(b=this.watchMetadata).resize)==null||x.call(b)}_.w("kevlar_watch_frame0_loading_state")&&(_.Bj(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(J){var c=_.Bj(this.hostElement).querySelector(J);c?_.gK(c,!1):_.qz(new _.w3("Overscroll monitor not found for component: ",J))},
removeSplitScrollMouseTrap:function(J){var c=_.Bj(this.hostElement).querySelector(J);c?_.JS(c):_.qz(new _.w3("Disposal component for  overscroll monitoring not found: ",J))},
onLoadingChanged_:function(J){J?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(J){var c=this;J?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.ft.addLowPriorityJob(function(){c.onWindowResized_(_.a1(!0))})},
updateTheaterModeState_:function(J){if(!_.w("kevlar_watch_flexy_theater_manager")){J=J||this.fullWindowMode_;if(this.theater!==void 0||J)this.theater=J;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();J&&_.rru()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation()},
updatePlayerLocation:function(){var J=this.theater;_.w("external_fullscreen")&&this.fullscreen&&(J=!0);J=J?_.Bj(this.hostElement).querySelector("#player-full-bleed-container"):_.Bj(this.hostElement).querySelector("#player-container-inner");var c=this.getPlayerContainer(),m=_.w("kevlar_watch_while_v2")||_.w("web_watch_pip");c.parentElement!==J&&(m&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.Qd(this).appendTo(J,c),J.appendChild(_.Bj(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var J=this;return _.N(function(c){if(c.nextAddress==1)return _.K(c,_.BG().resolve(_.Uo).deactivate(),2);J.updatePlayerLocation();_.tD(c)})},
updateCinematicsLocation:function(){var J=this.getElement("CINEMATICS");if(J){var c=this.getCinematicsLocationContainer();J.parentElement!==c&&c.appendChild(J);var m;(m=this.watchController)==null||m.updateCinematicFullscreenConfig()}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.Bj(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.Bj(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(J,c){var m=document.documentElement.hasAttribute("dark"),b=m&&_.w("web_cinematic_theater_mode"),x=m&&_.w("web_cinematic_fullscreen");m=!m&&this.cinematicLightTheme;return J&&b||c&&x||(c||J)&&m},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var J;(J=this.watchController)==null||J.setWatchNextResponse(this.data);_.w("kevlar_watch_flexy_comments_manager")||this.initComments_();_.w("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.BG().resolve(_.zn).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());this.data&&this.updateCinematicsLocation();if(_.w("web_watch_start_chat_in_theater_mode")){var c,
m,b;if((c=this.data)==null?0:(m=c.contents)==null?0:(b=m.twoColumnWatchNextResults)==null?0:b.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var x,P;((x=this.data)==null?0:(P=x.contents)==null?0:P.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=!1)}}},
playerDataChanged_:function(J){var c;(c=this.watchController)==null||c.setPlayerResponse(this.playerData);J&&J.playabilityStatus&&(c=this.isVideoPlayable_(J.playabilityStatus,this.getPlayerOverlays_(this.data)),J=this.isLiveStreamOffline_(J.playabilityStatus),c&&!J||_.o3(this,function(){_.Y2("pbu")}));
this.setPlayerAds_();_.bJ(this.hostElement,"ytd-watch-player-data-changed")},
watchPageActiveChanged_:function(J){_.Rc().dispatch(_.J7({type:"SET_IS_LEARNING_JOURNEY_ACTIVE",payload:{isLearningJourneyActive:this.active}}));J?this.activate_():this.deactivate_()},
attached:function(){var J=this;this.watchController=new jf5(this.hostElement);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data);_.w("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var c=_.Qd(this);_.w("kevlar_disable_prepare_player")||c.preparePlayer();_.w("kevlar_watch_flexy_playlist_manager")||_.BG().resolve(_.zn).setPlayer(c);this.updatePageMediaQueries();c={"--ytd-watch-flexy-scrollbar-width":_.Dm()+
"px"};!_.c7("kv_pl_mx_sz_ks")&&_.c7("kevlar_watch_max_player_width")&&(c["--ytd-watch-flexy-max-player-width-wide-screen"]=_.MI1+"px");_.c7("kevlar_watch_flexy_metadata_height")&&(c["--ytd-watch-flexy-space-below-player"]=_.pvR+"px");this.safeUpdateStyles(c);_.w("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new etp(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return J.onPlayerTouchPanDown_()}}));
_.w("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.Bj(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var J=_.Dm(),c=_.S0+J,m=c;this.fixedPanels&&(c+=_.PSp);var b=657+J;J=1327+J;_.Bj(this.hostElement).querySelector("#two-column-query").query="(min-width: "+c+"px)";_.Bj(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(b+"px), (min-height: 630px) and (min-width: ")+(c+"px) and (max-width: ")+(J+"px)");_.Bj(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(J+"px)");
_.Bj(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+m+"px)"},
calculateCurrentPlayerSize_:function(){var J=_.Bj(this.hostElement).querySelector("#miniplayer-bar").firstChild;return J&&J.active||this.theater||_.w("web_watch_fullscreen_panels")&&this.fullscreen||!this.active||!this.windowSize_?new _.tk(NaN,NaN):_.A9(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.A9(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.yr(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var J=this;this.onWindowResized_(_.a1());_.w("browse_skeleton_removal_on_watch_killswitch")||_.Ss("IS_SHELL_LOAD")&&_.Kr4();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var c=_.Qd(this);c.addEventListener("yt-player-updated",_.ME(this,this.onPlayerUpdated_));c.getPlayerPromise().then(function(m){J.playerApiReady_(m)});
_.w("kevlar_watch_flexy_playlist_manager")||(c=_.BG().resolve(_.zn),_.w("kevlar_watch_observe_playlist_navigations_killswitch")&&c.addEventListener("yt-navigate",_.ME(this,this.onYtNavigate_)),c.setPlaylistComponent(_.Bj(this.hostElement).querySelector("#playlist")),c.addEventListener("yt-playlist-data-updated",_.ME(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.ft.addLowPriorityJob(function(){_.cA(J.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.Qd(this).removeEventListener("yt-player-updated",_.ME(this,this.onPlayerUpdated_));if(!_.w("kevlar_watch_flexy_playlist_manager")){var J=_.BG().resolve(_.zn);_.w("kevlar_watch_observe_playlist_navigations_killswitch")&&J.removeEventListener("yt-navigate",_.ME(this,this.onYtNavigate_));J.cancelVideoSkip();J.removeEventListener("yt-playlist-data-updated",_.ME(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.w("kevlar_watch_while")&&
this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.cA(this.hostElement,"yt-autonav-pause-player",!1);J=_.yM();_.w("kevlar_exit_fullscreen_leaving_watch")&&J&&_.BS(J)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(J){this.player&&this.player.updateVideoData({rvs:J.rvs})},
getPageContents:function(J){return J&&J.contents&&J.contents.twoColumnWatchNextResults&&J.contents.twoColumnWatchNextResults.results&&J.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(J){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",J)},
onRetrieveLocation_:function(J,c){c.hasComments?c.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):c.locationRetrieved("/related_ajax",void 0);J.stopPropagation()},
onSubscriptionChanged_:function(J,c){this.player&&(c?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.LT("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.Bj(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.Bj(this.hostElement).querySelector("#ytd-plj-player"));return this.playerEl},
playerApiReady_:function(J){this.player=J;this.setPlayerState(J.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.w("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.w("kevlar_unified_player")||_.w("kevlar_player_new_bootstrap_adoption"))&&_.og()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(J,c){c=c===void 0?!0:c;_.yM()&&_.w("external_fullscreen")&&_.BS(document.documentElement);this.theaterRequested_=J;c&&_.kK("wide",J?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();_.w("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_();_.m9(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.cA(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(J){_.Ue(J,typeof this.player),this.player&&_.Ue(J,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var J;((J=this.player)==null?0:J.isFullscreen())?this.player.toggleFullscreen():_.m9(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(J,c){return this.loading?c:!!Object.keys(J).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(J){if(J){J=_.M(J);for(var c=J.next();!c.done;c=J.next())c=c.value,c.youThereRenderer&&_.WJS(this.youThereManager_,c.youThereRenderer)}},
setPlaylistData_:function(J){return J||{}},
userEngagementConfigDataChanged_:function(J){if(J)if(J.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var c=this.youThereManager_;_.cO()<J.lowEngagementThresholdMs||_.YC5(c,!0)}else J.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.m9(this.hostElement,"yt-autonav-pause-user-engagement",[J])},
isPlayerUnavailable_:function(J,c,m){return!!J&&!this.isVideoPlayable_(J,m)&&!c},
getPlayerOverlays_:function(J){return(J==null?void 0:J.playerOverlays)||null},
isVideoPlayable_:function(J,c){if(!J)return!1;var m=J.status==="OK"||J.status==="LIVE_STREAM_OFFLINE",b=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",J)||this.get("errorScreen.ypcTrailerRenderer",J);J=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",J);var x;c=c==null?void 0:(x=c.playerOverlayRenderer)==null?void 0:x.gatedActionsOverlayRenderer;return!!m||!!b||!!J||!!c},
hasWatchNextResponseErrorRenderer:function(J){var c=this.getPageContents(J),m,b,x,P,p;return!(J==null?0:(m=J.contents)==null?0:(b=m.twoColumnWatchNextResults)==null?0:b.secondaryResults)&&!!((x=c[0])==null?0:(P=x.itemSectionRenderer)==null?0:(p=P.contents[0])==null?0:p.backgroundPromoRenderer)},
isLiveStreamOffline_:function(J){return J?J.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(J,c,m){var b=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",c),x=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];x=_.w("web_no_skip_video_on_verification_checks")?(J==null?void 0:J.status)&&x.includes(J.status):J&&J.status==="AGE_CHECK_REQUIRED";var P=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",J);P==void 0&&(P=!0);!m||this.isVideoPlayable_(J,this.getPlayerOverlays_(c))||
b||x||!P||_.BG().resolve(_.zn).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.aBS()},
onPlayerFeedbackStartRequest_:function(J){_.m9(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:J}])},
onPlayerFeedbackArticleRequest_:function(J){_.m9(this.hostElement,"yt-help-dialog-requested",[J])},
onPlayerYpcContentRequest_:function(){var J,c,m,b,x,P,p,t,I=((J=this.data)==null?NaN:(c=J.contents)==null?NaN:(m=c.twoColumnWatchNextResults)==null?NaN:(b=m.secondaryResults)==null?NaN:(x=b.secondaryResults)==null?NaN:(P=x.offerModule)==null?NaN:(p=P.tvfilmOfferModuleRenderer)==null?NaN:(t=p.actionButtons)==null?NaN:t.length)-1;J=[".offerButton.buttonRenderer.",".actionButtons."+(I>=0?I:0)+".buttonRenderer."];c=_.M(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(m=c.next();!m.done;m=c.next())for(m=m.value,b=_.M(J),x=b.next();!x.done;x=b.next())if(x="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+m+x.value,x=this.get(x+"navigationEndpoint",this.data)||this.get(x+"serviceEndpoint",this.data)||this.get(x+"command",this.data)){_.Nl(x,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(J){_.cA(this.hostElement,"yt-autonav-pause-player",J)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(J){J()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(J){switch(J){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(J){switch(J){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.cA(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(J)},
setPlayerState:function(J){_.Rc().dispatch(_.I5Z(J))},
onPlayerSubscribe_:function(J){_.m9(this.hostElement,"yt-player-subscribe",[J])},
onPlayerUnsubscribe_:function(J){_.m9(this.hostElement,"yt-player-unsubscribe",[J])},
onPlayerAdYtShowToast_:function(J){_.m9(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:J.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(J){if(J)return J},
computeCommentsEntryPointHeaderRenderer:function(){if(this.commentTeaserEnabled)return this.defaultTwoColumnLayout?void 0:this.commentsEntryPointHeaderRendererValue},
computeShowExpandableMetadata:function(J){return!_.w("web_watch_move_summary_to_sd")&&!!J},
computeWatchMetadataRefresh:function(){return _.w("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var J,c,m,b;this.watchNextSecondaryResults=(J=this.data)==null?void 0:(c=J.contents)==null?void 0:(m=c.twoColumnWatchNextResults)==null?void 0:(b=m.secondaryResults)==null?void 0:b.secondaryResults}},
setRichGridRendererData:function(J){this.richGridRendererData=J},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var J,c=(J=this.data)==null?void 0:J.engagementPanels;if(c==null?0:c.length){J=null;c=_.M(c);for(var m=c.next();!m.done;m=c.next()){m=m.value;var b=void 0;if(((b=m.engagementPanelSectionListRenderer)==null?void 0:b.targetId)==="engagement-panel-structured-description"){J=m;break}}var x,P,p;J=(x=J)==null?void 0:(P=x.engagementPanelSectionListRenderer)==null?void 0:(p=P.content)==null?void 0:p.structuredDescriptionContentRenderer;if(J==null?0:J.items){x=
[];P=_.M(J.items);for(p=P.next();!p.done;p=P.next()){p=p.value;if(!_.w("sd_horizontal_list_show_nav_killswitch")){var t=b=m=c=J=void 0,I=void 0,a=(J=p.horizontalCardListRenderer)==null?void 0:(c=J.header)==null?void 0:(m=c.richListHeaderRenderer)==null?void 0:(b=m.navigationButton)==null?void 0:(t=b.buttonRenderer)==null?void 0:(I=t.command)==null?void 0:I.commandExecutorCommand;a&&a.commands&&(a.commands=a.commands.filter(function(k){return!_.L(k,_.sB1)}))}p.expandableVideoDescriptionBodyRenderer||
p.videoDescriptionHeaderRenderer||x.push(p)}return{items:x}}}},
constructWarning_:function(J){return{text:_.v2(J),type:"WARNING"}},
isPlaShelfEnabled_:function(J){if((this.get("adPlacements",J)||[]).length)return!0;J=this.get("playerAds",J)||[];return!(!J.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",J[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var J=this;_.cA(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.w("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var c=this.getScrollTop()>0;this.gestures_&&(c?this.gestures_.detach():this.gestures_.attach());c!==this.showFullerscreenEdu_&&_.w("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=c,_.Qd(this).getPlayerPromise().then(function(m){m.updateFullerscreenEduButtonVisibility(J.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.cA(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var J=this;this.commentsReady=!1;_.ft.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.rv(_.ft,function(){J.setComments_()},1E3)},
setComments_:function(){if(!_.w("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.Y2("cmi");_.ft.cancelJob(this.setCommentsJobId_);var J=this.getPageContents(this.data);if(J&&J.length){J=_.M(J);for(var c=J.next();!c.done;c=J.next())if(c=c.value,this.get("itemSectionRenderer.sectionIdentifier",c)==="comment-item-section"){this.comments=c.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.cA(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.w("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.w("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.Y2("cmc")},
doRemoveComments_:function(){this.comments={};_.w("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.ft.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.ft.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(J,c){var m=_.L(c.endpoint,_.Rz);m&&(!(c=this.get("data.currentVideoEndpoint.watchEndpoint"))||m.videoId!==c.videoId||m.playlistId&&m.playlistId!==c.playlistId||m.index!==void 0&&m.index!==c.index||typeof m.startTimeSeconds!=="number"||(J.stopPropagation(),this.setScrollTop(0),_.Qd(this).getPlayerPromise().then(function(b){var x=m.startTimeSeconds;b.seekTo(x);b.wakeUpControls();x<b.getDuration()&&b.playVideo()})))},
updatePlayerStartTime_:function(){var J=_.gko();"t"in J&&(J=_.C5R(J.t),this.player.seekTo(J,!0))},
updateTitleFromWatchNext:function(J){J=this.getPageContents(J);var c,m;(J=_.OG(J==null?void 0:(c=J[0])==null?void 0:(m=c.videoPrimaryInfoRenderer)==null?void 0:m.title))&&_.cA(this.hostElement,"yt-update-title",J)},
updateTitle_:function(J){J=this.get("videoDetails.title",J)||"";_.cA(this.hostElement,"yt-update-title",J)},
syncWithRemoteVideo_:function(J,c,m){if(this.active&&this.player){var b=this.player.getVideoData();if(b.video_id===m&&(m=b.list,_.w("polymer_enable_mdx_queue")&&m&&m.startsWith("RQ")&&(m=void 0),b.video_id!==J||m!=c)){var x;_.w("kevlar_player_watch_endpoint_navigation")?x=_.XJq(_.Nco(J,c)):x=this.buildWatchEndpoint_(J,c);_.cA(this.hostElement,"yt-navigate",{endpoint:x,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(J,c,m){return _.lJ(J,c,m)},
initDclkstatus_:function(){_.KJ1()},
attachWatchPageSkeleton_:function(){var J=document.querySelector("#watch-page-skeleton");if(J){var c=J.querySelector("#primary-info"),m=J.querySelector("#secondary-info"),b=J.querySelector("#related");c&&_.Bj(this.hostElement).querySelector("#info-skeleton").appendChild(c);m&&_.Bj(this.hostElement).querySelector("#meta-skeleton").appendChild(m);b&&(_.Bj(this.hostElement).querySelector("#related-skeleton").appendChild(b),this.watchNextSkeletonEl_=b);_.nc(J)}},
handlePlayerUpdated_:function(){_.Qd(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(J,c){if(this.watchNextSkeletonEl_&&typeof c!=="undefined"){var m=this.watchNextSkeletonEl_.children,b=J&&J.indexSplices.length?J.indexSplices[0].index:0;J=Math.min(this.watchNextShownItems.length,m.length);c||(b=0,J=m.length);for(c=b;c<J;c++)m[c].classList.add("hidden")}},
onPlayerFullscreenChange_:function(J){_.w("external_fullscreen")||_.m9(this.hostElement,"yt-player-fullscreen",[J.fullscreen])},
onFullscreenChange_:function(J){this.fullscreen=J;this.gestures_&&this.gestures_.update(this.fullscreen);var c=_.Qd(this);c.getPlayerPromise().then(function(m){m.setFauxFullscreen(!!_.yM())});
this.updateFullBleedElementLocations();J&&(c.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(J,c){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!c},
computeIsDonationShelfCollapsed_:function(J){return J},
computeShouldShowMerchShelf:function(J,c){return c&&!!J},
computeResponseHasComments:function(J){var c,m,b,x,P;return!!(J==null?0:(c=J.contents)==null?0:(m=c.twoColumnWatchNextResults)==null?0:(b=m.results)==null?0:(x=b.results)==null?0:(P=x.contents)==null?0:P.some(function(p){var t;return(p==null?void 0:(t=p.itemSectionRenderer)==null?void 0:t.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(J,c){this.responseHasComments=this.computeResponseHasComments(this.data);return!!J&&!!Object.keys(J).length&&!c},
identity:_.GD,onWindowResized_:function(J){this.windowSize_=J;this.active&&(this.schedulePlayerSizeUpdate_(!0),_.w("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_());_.w("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(J){var c=this;J&&J.type!=="dataloaded"&&J.type!=="dataupdated"||_.Qd(this).getPlayerPromise().then(function(m){var b=m.getPlayerState();b!==5&&b!==0&&(m=1/m.getVideoAspectRatio(),c.videoHeightToWidthRatio_!==m&&(c.videoHeightToWidthRatio_=m))})},
schedulePlayerSizeUpdate_:function(J){var c=this,m=_.w("kevlar_watch_while_v2")||_.w("web_watch_pip"),b=function(){if(c.watchMetadata){var x,P;(P=(x=c.watchMetadata).resize)==null||P.call(x)}_.Qd(c).getPlayerPromise().then(function(p){if(_.w("kevlar_set_internal_player_size")){if(!m||!c.isMiniplayerActive()){var t=c.calculateCurrentPlayerSize_();p.setInternalSize(t.width,t.height)}}else p.setSize(NaN,NaN);_.w("kevlar_watch_while")&&c.updateWatchWhileScrollThreshold_()})};
J?b():_.T9(_.ft,b)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(J){this.set("data.survey",J.detail)},
onYtShowSurveyCommand_:function(J){this.set("data.survey",_.L(J,_.rQh).survey)},
onDownloadedVideoDeleted:function(J){var c=this,m,b;return _.N(function(x){if(x.nextAddress==1){if(!c.active||(m=c.playerData)==null||!m.offlineState||c.videoId!==J)return x.return();(b=c.player)==null||b.stopVideo();_.Mh().navigatingAwayFromWatchDeletedVideo=!0;_.Nl(_.nFo,c.hostElement);return _.K(x,_.Mh().navigationFinishPromise,2)}_.Mh().navigatingAwayFromWatchDeletedVideo=!1;_.tD(x)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var J;this.theater?J=_.fZ(.5625*this.windowSize_.width,480,this.windowSize_.height-185):J=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==J&&(this.watchWhileScrollThreshold_=J,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var J=_.Bj(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&J){var c=this.windowSize_.height>=624,m=this.active?this.getScrollTop():0;!J.active&&c&&m>=this.watchWhileScrollThreshold_?(J.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):J.active&&(!c||m<this.watchWhileScrollThreshold_&&!_.yM())&&(J.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
isTwoColumnsChanged_:function(J,c){if(J!==!0||c!==void 0){J=!_.w("live_chat_over_engagement_panels");c=_.Bj(this.hostElement).querySelector("#chat-container");var m=_.Bj(this.hostElement).querySelector("#plj-sidebar"),b=_.Bj(this.hostElement).querySelector("#panels"),x=_.Bj(this.hostElement).querySelector("#plj-panels"),P=_.Bj(this.hostElement).querySelector("#plj-playlist"),p=_.Bj(this.hostElement).querySelector("#alerts"),t=_.Bj(this.hostElement).querySelector("#playlist"),I=_.Bj(this.hostElement).querySelector("#related"),
a=_.Bj(this.hostElement).querySelector("#donation-shelf"),k=_.Bj(this.hostElement).querySelector("#comments");this.isTwoColumns_?(p=_.Bj(this.hostElement).querySelector("#secondary-inner"),p.appendChild(m),m.appendChild(P),P.appendChild(t),m.appendChild(x),J&&p.appendChild(b),_.w("web_watch_theater_chat")||p.appendChild(c),J||p.appendChild(b),p.appendChild(a),p.appendChild(I)):(J&&_.sK(b,p),_.sK(t,p),_.w("web_watch_theater_chat")||_.sK(c,p),J||_.sK(b,p),_.sK(a,p),k&&(x&&_.sK(x,k),_.sK(I,k)));_.w("kevlar_watch_js_panel_height")&&
this.active&&this.schedulePanelMaxHeightUpdate_()}},
watchWhileWindowSizeSufficientChanged:function(){_.w("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(_.w("web_watch_theater_chat")){var J=_.Bj(this.hostElement).querySelector("#chat-container"),c=this.theater&&!this.fullscreen||_.w("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&c?_.w("web_watch_theater_chat_beside_player")?(c=_.Bj(this.hostElement).querySelector("#panels-full-bleed-container"),(J==null?void 0:J.parentElement)!==c&&c.append(J),this.panelsBesidePlayer=!0):_.w("web_watch_theater_fixed_chat")&&
(c=_.Bj(this.hostElement).querySelector("#columns"),(J==null?void 0:J.parentElement)!==c&&c.append(J),this.fixedPanels=!0):(_.w("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.w("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),c=_.Bj(this.hostElement).querySelector("#playlist"),J&&c?_.Ld(J,c):_.qz(new _.w3("Missing element when updating chat location",{"chatContainer defined":!!J,"playlist defined":!!c})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(J,c){return _.w("sw_metadata_vis_toggle_ks")?!0:!!J||!!c},
computeForceDarkPanelTheme:function(J){return _.w("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&J:!1},
safeUpdateStyles:function(J){try{_.V1(this.hostElement,J)}catch(c){_.qz(c)}},
videoHeightToWidthRatioChanged_:function(J,c){c&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),_.w("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(J){this.videoHeightToWidthRatio_=1/J},
computeIsVerticalVideo_:function(J){return J>=1},
computeIsFourThreeToSixteenNineVideo_:function(J){return J<=.7501&&J>=.5624},
computeIsExtraWideVideo_:function(J){return J<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.Qd(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.Qd(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.X1R(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(J){var c=_.m7(J)||0;_.ct(J,c+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var J=_.m7("yt-fullerscreen-edu-button-click-count")||0,c=_.m7("yt-fullerscreen-edu-button-shown-count")||0,m=_.c7("external_fullscreen_button_shown_threshold"),b=J>=_.c7("external_fullscreen_button_click_threshold")||c>=m;_.Qd(this).getPlayerPromise().then(function(x){x.updateFullerscreenEduButtonSubtleModeState(b)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(J,c){return c},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.BG().resolve(_.zn).getPlaylistData()||{}},
schedulePanelMaxHeightUpdate_:function(){var J=this;this.panelMaxHeightUpdateJob_&&_.ft.cancelJob(this.panelMaxHeightUpdateJob_);this.panelMaxHeightUpdateJob_=_.ft.addLowPriorityJob(function(){J.panelMaxHeightUpdateJob_=0;var c;!J.isTwoColumns_||J.theater||J.fullscreen?c=460:c=J.calculateNormalPlayerSize_().height;var m=c+"px";_.w("live_chat_taller_height")&&!J.theater&&(m="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");_.w("live_chat_medium_height")&&
!J.theater&&(m="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.w("live_chat_scaled_height")&&!J.theater&&(m="calc(100vh - var(--ytd-toolbar-height) - 238px)");J.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":c+"px","--ytd-watch-flexy-chat-max-height":m,"--ytd-watch-flexy-structured-description-max-height":c+"px","--ytd-watch-flexy-comments-panel-max-height":c+"px","--ytd-comments-engagement-panel-content-height":c+"px"})})},
onYtShowEngagementPanelScrimAction_:function(J){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",J)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.PA(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(J){var c=_.Bj(this.hostElement).querySelector("#engagement-panel-scrim");J?c.addEventListener("tap",_.ME(this,this.onEngagementPanelScrimClick_)):c.removeEventListener("tap",_.ME(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(J){if(this.hostElement.contains(J)&&!this.scrollToAnimation_.isAnimating()){var c=J.offsetTop-24;J=J.offsetTop+J.offsetHeight+24;var m=this.getPageScrollingElement(),b=this.getScrollTop(),x=b+m.clientHeight-56;if(c<b+56)c-=56;else if(J>x)c=J-m.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,c),500)}},
onYtSignalActionScrollToComments:function(){var J=this.hostElement.querySelector("#comments");if(J&&!this.scrollToAnimation_.isAnimating()){J=J.offsetTop-56-24;if(_.w("kevlar_comment_teaser_scroll_to_midpoint")&&(J-=_.Iw().height/3,J<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,J),500)}},
onYtEngagementPanelVisibleChanged:function(J,c,m){this.active&&this.trackEngagementPanelVisibility&&!_.Tcf.includes(m)&&(c==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.visiblePanelIdentifiers_.add(m),c!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&c!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(m),this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(J){return J?"":"watch-active-metadata"},
computeNewMetadataClass:function(J){return J?"watch-active-metadata":""},
computeFullBleedPlayer:function(J,c){return J||c},
computeDefaultLayout:function(J){return!J},
computeDefaultTwoColumnLayout:function(J,c){return!J&&c},
computeWatchWhilePanelsActive:function(J,c){return J||c},
computeNoBorderOnChat:function(J){return _.w("web_watch_theater_chat_no_border")&&J},
computeLiveChatPresentAndExpanded:function(J,c){return J&&!c},
computePanelExpanded:function(J,c,m){return J||c||m},
onChangeMarkersVisibility:function(J){_.Qd(this).getPlayerPromise().then(function(c){var m;(m=c.changeMarkerVisibility)==null||m.call(c,_.L(J,_.Rj).isVisible||!1,_.L(J,_.Rj).entityKeys||[],_.L(J,_.Rj).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(J){this.liveChatCollapsed=J.detail;_.Rc().dispatch(_.nz4(J.detail))},
provideRenderingData:function(J,c){switch(J){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=c;break;case "PRIMARY_INFO":_.w("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=c);this.videoPrimaryInfoRendererValue=c==null?void 0:c.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.w("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=c);this.videoSecondaryInfoRendererValue=c==null?void 0:c.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
c;break;case "CLARIFICATION":this.clarifyBoxValue=c;break;case "LIVE_CHAT":this.conversationBar=c;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=c;break;case "PLAYLIST":this.externalPlaylistData_=c!=null?c:{};break;case "MERCH_SHELF":this.merchShelfValue=c==null?void 0:c.merchandiseShelfRenderer;break;case "TICKET_SHELF":this.ticket=c;break;case "OFFER_MODULE":this.offerModule=c;break;case "LIMITED_STATE":this.limitedStateValue=c;break;case "DONATION_SHELF":this.donation=c;break;
case "ALERTS":this.alertsValue=c;break;case "COMMENTS":this.comments=c;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=c;break;case "ENGAGEMENT_PANELS":this.engagementPanels=c;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=c;break;case "RICH_GRID_RENDERER":this.richGridRendererData=c;break;case "EXPANDABLE_METADATA":this.expandableMetadata=c;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=c}},
toggleCinematicsActive:function(J){this.cinematicsActive=J},
isMiniplayerActive:function(){return _.BG().resolve(_.Uo).isMiniplayerActive()},
getLearningJourneyEngagementPanels:function(J){return lBR.map(function(c){return J.find(function(m){var b;return(m==null?void 0:(b=m.engagementPanelSectionListRenderer)==null?void 0:b.targetId)===c})}).filter(function(c){return c!==void 0})},
getNonLearningJourneyEngagementPanels:function(J){return J.filter(function(c){var m;return!lBR.includes((c==null?void 0:(m=c.engagementPanelSectionListRenderer)==null?void 0:m.targetId)||"")})}}];var yQe;var gN=function(){var J=_.h.apply(this,arguments)||this;J.flexy=!0;J.learningJourney=!0;J.roundedInfoPanel=!0;J.viewTransitionEnabled=_.w("enable_player_resize_transition");J.smallerChatMinHeight=_.w("live_chat_smaller_min_height");J.cinematicTheaterMode=_.w("web_cinematic_theater_mode");J.transparentTheaterMode=_.w("web_transparent_theater_mode");J.cinematicFullscreen=_.w("web_cinematic_fullscreen");J.useLargerMaxPlayerValue=_.w("kevlar_flexy_use_larger_player_value");J.cinematicFullscreenV2=_.w("web_cinematic_fullscreen_v2");
J.isDarkTheme=document.documentElement.hasAttribute("dark");J.theaterLargerPlayer=_.w("web_watch_theater_larger_player");J.defaultCollapsePlaylist=_.w("web_watch_default_collapse_playlist");return J};
_.D(gN,_.h);_.V=gN.prototype;_.V.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.V.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.V.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.V.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.V.ready=function(){var J=this,c=function(){J.onColumnScroll()};
this.primary.addEventListener("scroll",c);this.secondary.addEventListener("scroll",c)};
_.V.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.V.updateIsTwoColumnsFromBinding=function(J){_.w("web_watch_update_narrow_width_killswitch")||_.Rc().dispatch(_.Hjf(!J.detail.value));this.ytdWatchBehavior.isTwoColumns_=J.detail.value};
_.V.updateFlexySmallWindowFromBinding=function(J){this.ytdWatchBehavior.flexySmallWindow_=J.detail.value};
_.V.updateFlexyLargeWindowFromBinding=function(J){this.ytdWatchBehavior.flexyLargeWindow_=J.detail.value};
_.V.updateWatchWhileWindowSizeSufficientFromBinding=function(J){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=J.detail.value};
_.V.updateWatchNextCanShowMoreFromBinding=function(J){this.ytdWatchBehavior.watchNextCanShowMore=J.detail.value};
_.V.updateShownItemsFromBinding=function(J){J.detail.path?this.set(J.detail.path,J.detail.value):this.ytdWatchBehavior.watchNextShownItems=J.detail.value};
_.V.getElement=function(J){switch(J){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20501_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20501_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.eE.Object.defineProperties(gN.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var J;if((J=this.data)==null||!J.pageVisualEffects)return!1;for(var c=0;c<this.data.pageVisualEffects.length;c++)if(J=_.L(this.data.pageVisualEffects[c],_.wG))return c=void 0,(c=J.config)==null?void 0:c.enableInLightTheme;return!1}},
hasLearningJourneyPanels:{configurable:!0,enumerable:!0,get:function(){var J;return((J=this.learningJourneyEngagementPanels)==null?void 0:J.length)>0}},
backButtonData:{configurable:!0,enumerable:!0,get:function(){var J,c=(J=this.learningJourneyEngagementPanels)==null?void 0:J.find(function(T){var r;return(T==null?void 0:(r=T.engagementPanelSectionListRenderer)==null?void 0:r.panelIdentifier)==="learning-journey-engagement-panel"});
if(c){var m,b,x,P,p,t,I,a,k;if(J=(a=((I=(p=((P=c==null?void 0:(m=c.engagementPanelSectionListRenderer)==null?void 0:(b=m.content)==null?void 0:(x=b.sectionListRenderer)==null?void 0:x.contents)!=null?P:[])[0])==null?void 0:(t=p.itemSectionRenderer)==null?void 0:t.contents)!=null?I:[])[0])==null?void 0:(k=a.accordionViewModel)==null?void 0:k.onTitleTap){var H=_.ZG(J);if(H)return{type:"filled",style:"mono",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){_.p7.instance.resolveCommand(H)}}}}}}});
_.eE.Object.defineProperties(gN,{template:{configurable:!0,enumerable:!0,get:function(){if(yQe===void 0){var J=document.createElement("template");_.z(J,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-learning-journey--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-learning-journey"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-learning-journey"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-learning-journey">\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-learning-journey"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n\n  <div id="secondary" class="style-scope ytd-watch-learning-journey">\n    <div id="secondary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="plj-sidebar" class="style-scope ytd-watch-learning-journey">\n        <div id="plj-playlist" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="plj-panels" class="style-scope ytd-watch-learning-journey"></div>\n      </div>\n      <div id="panels" class="style-scope ytd-watch-learning-journey">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-learning-journey">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-learning-journey"></div>\n      <div id="chat-container" class="style-scope ytd-watch-learning-journey">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-learning-journey">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-learning-journey">\n        <div id="player-ads" class="style-scope ytd-watch-learning-journey"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="primary" class="style-scope ytd-watch-learning-journey">\n    <div id="primary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="player" class="style-scope ytd-watch-learning-journey">\n        <div id="cinematics-container" class="style-scope ytd-watch-learning-journey">\n          <div id="cinematics" class="style-scope ytd-watch-learning-journey"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-learning-journey">\n          <div id="player-container-inner" class="style-scope ytd-watch-learning-journey">\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-learning-journey">\n              <ytd-player id="ytd-plj-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_LEARNING_JOURNEY_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-learning-journey">\n              </ytd-player>\n            </div>\n          </div>\n          <div id="player-button-overlays" class="style-scope ytd-watch-learning-journey">\n            <yt-button-shape data="[[backButtonData]]" hidden="[[!backButtonData]]" icon-name="x_cairo" class="style-scope ytd-watch-learning-journey">\n          </yt-button-shape></div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-learning-journey">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-learning-journey">\n        <div id="alerts" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="messages" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-learning-journey"></div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-learning-journey"></div>\n        <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-learning-journey" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-learning-journey="" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n        </ytd-watch-metadata>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-learning-journey">\n          <div id="info" class="style-scope ytd-watch-learning-journey">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-learning-journey">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n          </div>\n        </div>\n        <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-learning-journey"></div>\n        \n        <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-learning-journey">\n          <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-learning-journey">\n        </ytd-comments>\n      </div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-learning-journey"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-learning-journey"></div>\n');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);yQe=J}J=yQe;return J}}});
gN.prototype.updateMiniplayerIsActiveValue=gN.prototype.updateMiniplayerIsActiveValue;gN.prototype.updateScrollTopValue=gN.prototype.updateScrollTopValue;gN.prototype.updateFullscreenValue=gN.prototype.updateFullscreenValue;gN.prototype.updateTheaterValue=gN.prototype.updateTheaterValue;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],gN.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],gN.prototype,"ytComponentBehavior",void 0);
_.O([_.f(FJ5.YtdLearningJourneyWatchBehavior),_.R("design:type",Object)],gN.prototype,"ytdWatchBehavior",void 0);_.O([_.f(_.fY),_.R("design:type",Object)],gN.prototype,"ytdReduxBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],gN.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],gN.prototype,"playerData",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],gN.prototype,"flexy",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],gN.prototype,"learningJourney",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],gN.prototype,"roundedInfoPanel",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],gN.prototype,"viewTransitionEnabled",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],gN.prototype,"smallerChatMinHeight",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],gN.prototype,"cinematicTheaterMode",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],gN.prototype,"transparentTheaterMode",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],gN.prototype,"cinematicFullscreen",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],gN.prototype,"useLargerMaxPlayerValue",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],gN.prototype,"cinematicFullscreenV2",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],gN.prototype,"isDarkTheme",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],gN.prototype,"theaterLargerPlayer",void 0);_.O([_.U(),_.R("design:type",Object)],gN.prototype,"defaultCollapsePlaylist",void 0);_.O([_.U({selector:_.qx}),_.R("design:type",Object)],gN.prototype,"theaterValue",void 0);
_.O([_.U({selector:_.Uc}),_.R("design:type",Object)],gN.prototype,"fullscreenValue",void 0);_.O([_.U({selector:_.D6}),_.R("design:type",Object)],gN.prototype,"scrollTopValue",void 0);_.O([_.U({selector:_.z2}),_.R("design:type",Object)],gN.prototype,"miniplayerIsActiveValue",void 0);_.O([_.Iu("#ytd-plj-player"),_.R("design:type",HTMLElement)],gN.prototype,"ytdPlayer",void 0);_.O([_.Iu("#playlist"),_.R("design:type",HTMLElement)],gN.prototype,"JSC$20501_ytdPlaylistPanelRenderer",void 0);
_.O([_.Qc("ytd-comments"),_.R("design:type",HTMLElement)],gN.prototype,"ytdComments",void 0);_.O([_.Iu("#primary"),_.R("design:type",HTMLElement)],gN.prototype,"primary",void 0);_.O([_.Iu("#secondary"),_.R("design:type",HTMLElement)],gN.prototype,"secondary",void 0);_.O([_.Iu("#player-container"),_.R("design:type",HTMLElement)],gN.prototype,"playerContainer",void 0);_.O([_.Iu("#cinematics"),_.R("design:type",HTMLElement)],gN.prototype,"JSC$20501_cinematics",void 0);
_.O([_.NE("theaterValue"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],gN.prototype,"updateTheaterValue",null);_.O([_.NE("fullscreenValue"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],gN.prototype,"updateFullscreenValue",null);_.O([_.NE("scrollTopValue"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],gN.prototype,"updateScrollTopValue",null);
_.O([_.NE("miniplayerIsActiveValue"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],gN.prototype,"updateMiniplayerIsActiveValue",null);_.O([_.U({reflectToAttribute:!0}),_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],gN.prototype,"cinematicLightTheme",null);_.O([_.U({reflectToAttribute:!0}),_.q("learningJourneyEngagementPanels"),_.R("design:type",Object),_.R("design:paramtypes",[])],gN.prototype,"hasLearningJourneyPanels",null);
_.O([_.q("learningJourneyEngagementPanels"),_.R("design:type",Object),_.R("design:paramtypes",[])],gN.prototype,"backButtonData",null);gN=_.O([_.E({is:"ytd-watch-learning-journey"})],gN);_.l6.registerService(_.h3J,gN);
_.qi();
}catch(e){_._DumpException(e)}
try{
_.ZS("Tm0L3c");
var GAS;var Ezf;var vz1=function(){return _.h.apply(this,arguments)||this};
_.D(vz1,_.h);vz1=_.O([_.E({is:"ytd-ghost-comments-renderer",disableElementRegistration:!0})],vz1);
_.v(vz1,"ytd-ghost-comments-renderer",function(){if(Ezf===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);Ezf=J}J=Ezf;return J},{mode:1});var ORh;var AQf=function(){return _.h.apply(this,arguments)||this};
_.D(AQf,_.h);AQf=_.O([_.E({is:"ytd-ghost-watch-metadata-renderer",disableElementRegistration:!0})],AQf);
_.v(AQf,"ytd-ghost-watch-metadata-renderer",function(){if(ORh===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);ORh=J}J=ORh;return J},{mode:1});var BD=function(){var J=_.h.apply(this,arguments)||this;J.ghostGridRenderer={rows:6};J.roundedInfoPanel=!0;J.hideOfferModules=!0;J.smallerChatMinHeight=_.w("live_chat_smaller_min_height");J.cinematicTheaterMode=_.w("web_cinematic_theater_mode");J.transparentTheaterMode=_.w("web_transparent_theater_mode");J.darkerPanels=_.w("web_watch_darker_panels");J.cinematicFullscreen=_.w("web_cinematic_fullscreen");J.cinematicFullscreenV2=_.w("web_cinematic_fullscreen_v2");J.isDarkTheme=document.documentElement.hasAttribute("dark");
return J};
_.D(BD,_.h);_.V=BD.prototype;_.V.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.V.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.V.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.V.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.V.ready=function(){var J=this,c=function(){J.onColumnScroll()};
this.primary.addEventListener("scroll",c);this.secondary.addEventListener("scroll",c)};
_.V.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.V.updateIsTwoColumnsFromBinding=function(J){this.ytdWatchBehavior.isTwoColumns_=J.detail.value};
_.V.updateFlexySmallWindowFromBinding=function(J){this.ytdWatchBehavior.flexySmallWindow_=J.detail.value};
_.V.updateFlexyLargeWindowFromBinding=function(J){this.ytdWatchBehavior.flexyLargeWindow_=J.detail.value};
_.V.updateWatchWhileWindowSizeSufficientFromBinding=function(J){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=J.detail.value};
_.V.updateWatchNextCanShowMoreFromBinding=function(J){this.ytdWatchBehavior.watchNextCanShowMore=J.detail.value};
_.V.updateShownItemsFromBinding=function(J){_.w("swatcheroo_direct_use_rich_grid")||(J.detail.path?this.set(J.detail.path,J.detail.value):this.ytdWatchBehavior.watchNextShownItems=J.detail.value)};
_.V.getElement=function(J){switch(J){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20489_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20489_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.eE.Object.defineProperties(BD.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var J;if((J=this.data)==null||!J.pageVisualEffects)return!1;for(var c=0;c<this.data.pageVisualEffects.length;c++)if(J=_.L(this.data.pageVisualEffects[c],_.wG))return c=void 0,(c=J.config)==null?void 0:c.enableInLightTheme;return!1}}});
BD.prototype.updateMiniplayerIsActiveValue=BD.prototype.updateMiniplayerIsActiveValue;BD.prototype.updateScrollTopValue=BD.prototype.updateScrollTopValue;BD.prototype.updateFullscreenValue=BD.prototype.updateFullscreenValue;BD.prototype.updateTheaterValue=BD.prototype.updateTheaterValue;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],BD.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],BD.prototype,"ytComponentBehavior",void 0);
_.O([_.f(_.dSr.YtdWatchBehavior),_.R("design:type",Object)],BD.prototype,"ytdWatchBehavior",void 0);_.O([_.f(_.fY),_.R("design:type",Object)],BD.prototype,"ytdReduxBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],BD.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],BD.prototype,"ghostGridRenderer",void 0);_.O([_.U(),_.R("design:type",Object)],BD.prototype,"playerData",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],BD.prototype,"roundedInfoPanel",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],BD.prototype,"hideOfferModules",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],BD.prototype,"smallerChatMinHeight",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],BD.prototype,"cinematicTheaterMode",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],BD.prototype,"transparentTheaterMode",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],BD.prototype,"darkerPanels",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],BD.prototype,"cinematicFullscreen",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],BD.prototype,"cinematicFullscreenV2",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],BD.prototype,"isDarkTheme",void 0);_.O([_.U({selector:_.qx}),_.R("design:type",Object)],BD.prototype,"theaterValue",void 0);
_.O([_.U({selector:_.Uc}),_.R("design:type",Object)],BD.prototype,"fullscreenValue",void 0);_.O([_.U({selector:_.D6}),_.R("design:type",Object)],BD.prototype,"scrollTopValue",void 0);_.O([_.U({selector:_.z2}),_.R("design:type",Object)],BD.prototype,"miniplayerIsActiveValue",void 0);_.O([_.Iu("#ytd-player"),_.R("design:type",HTMLElement)],BD.prototype,"ytdPlayer",void 0);_.O([_.Iu("#playlist"),_.R("design:type",HTMLElement)],BD.prototype,"JSC$20489_ytdPlaylistPanelRenderer",void 0);
_.O([_.Iu("#ytd-comments"),_.R("design:type",HTMLElement)],BD.prototype,"ytdComments",void 0);_.O([_.Iu("#primary"),_.R("design:type",HTMLElement)],BD.prototype,"primary",void 0);_.O([_.Iu("#secondary"),_.R("design:type",HTMLElement)],BD.prototype,"secondary",void 0);_.O([_.Iu("#player-container"),_.R("design:type",HTMLElement)],BD.prototype,"playerContainer",void 0);_.O([_.Iu("#cinematics"),_.R("design:type",HTMLElement)],BD.prototype,"JSC$20489_cinematics",void 0);
_.O([_.NE("theaterValue"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],BD.prototype,"updateTheaterValue",null);_.O([_.NE("fullscreenValue"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],BD.prototype,"updateFullscreenValue",null);_.O([_.NE("scrollTopValue"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],BD.prototype,"updateScrollTopValue",null);
_.O([_.NE("miniplayerIsActiveValue"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],BD.prototype,"updateMiniplayerIsActiveValue",null);_.O([_.U({reflectToAttribute:!0}),_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],BD.prototype,"cinematicLightTheme",null);
_.v(BD,"ytd-watch-grid",function(){if(GAS===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);GAS=J}J=GAS;return J},{mode:2});_.l6.registerService(_.S62,BD);
_.qi();
}catch(e){_._DumpException(e)}
try{
_.ZS("CF909");
var $SF;var yN=function(){var J=_.h.apply(this,arguments)||this;J.flexy=!0;J.roundedInfoPanel=!0;J.viewTransitionEnabled=_.w("enable_player_resize_transition");J.smallerChatMinHeight=_.w("live_chat_smaller_min_height");J.cinematicTheaterMode=_.w("web_cinematic_theater_mode");J.transparentTheaterMode=_.w("web_transparent_theater_mode");J.cinematicFullscreen=_.w("web_cinematic_fullscreen");J.useLargerMaxPlayerValue=_.w("kevlar_flexy_use_larger_player_value");J.cinematicFullscreenV2=_.w("web_cinematic_fullscreen_v2");
J.isDarkTheme=document.documentElement.hasAttribute("dark");J.defaultCollapsePlaylist=_.w("web_watch_default_collapse_playlist");J.retroModeReduxValue=!1;return J};
_.D(yN,_.h);_.V=yN.prototype;_.V.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.V.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.V.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.V.updateRetroModeReduxValue=function(){_.w("web_player_rtr_ctrls")&&(this.ytdWatchBehavior.retroMode=this.retroModeReduxValue)};
_.V.ready=function(){var J=this,c=function(){J.onColumnScroll()};
this.primary.addEventListener("scroll",c);this.secondary.addEventListener("scroll",c)};
_.V.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.V.updateIsTwoColumnsFromBinding=function(J){_.w("web_watch_update_narrow_width_killswitch")||_.Rc().dispatch(_.Hjf(!J.detail.value));this.ytdWatchBehavior.isTwoColumns_=J.detail.value};
_.V.updateFlexySmallWindowFromBinding=function(J){this.ytdWatchBehavior.flexySmallWindow_=J.detail.value};
_.V.updateFlexyLargeWindowFromBinding=function(J){this.ytdWatchBehavior.flexyLargeWindow_=J.detail.value};
_.V.updateWatchWhileWindowSizeSufficientFromBinding=function(J){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=J.detail.value};
_.V.updateWatchNextCanShowMoreFromBinding=function(J){this.ytdWatchBehavior.watchNextCanShowMore=J.detail.value};
_.V.updateShownItemsFromBinding=function(J){J.detail.path?this.set(J.detail.path,J.detail.value):this.ytdWatchBehavior.watchNextShownItems=J.detail.value};
_.V.getElement=function(J){switch(J){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20484_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20484_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.eE.Object.defineProperties(yN.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var J;if((J=this.data)==null||!J.pageVisualEffects)return!1;for(var c=0;c<this.data.pageVisualEffects.length;c++)if(J=_.L(this.data.pageVisualEffects[c],_.wG))return c=void 0,(c=J.config)==null?void 0:c.enableInLightTheme;return!1}}});
_.eE.Object.defineProperties(yN,{template:{configurable:!0,enumerable:!0,get:function(){if($SF===void 0){var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);$SF=J}J=$SF;return J}}});
yN.prototype.updateRetroModeReduxValue=yN.prototype.updateRetroModeReduxValue;yN.prototype.updateScrollTopValue=yN.prototype.updateScrollTopValue;yN.prototype.updateFullscreenValue=yN.prototype.updateFullscreenValue;yN.prototype.updateTheaterValue=yN.prototype.updateTheaterValue;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],yN.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],yN.prototype,"ytComponentBehavior",void 0);
_.O([_.f(_.dSr.YtdWatchBehavior),_.R("design:type",Object)],yN.prototype,"ytdWatchBehavior",void 0);_.O([_.f(_.fY),_.R("design:type",Object)],yN.prototype,"ytdReduxBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],yN.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],yN.prototype,"playerData",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],yN.prototype,"flexy",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],yN.prototype,"roundedInfoPanel",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],yN.prototype,"viewTransitionEnabled",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],yN.prototype,"smallerChatMinHeight",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],yN.prototype,"cinematicTheaterMode",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],yN.prototype,"transparentTheaterMode",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],yN.prototype,"cinematicFullscreen",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],yN.prototype,"useLargerMaxPlayerValue",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],yN.prototype,"cinematicFullscreenV2",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],yN.prototype,"isDarkTheme",void 0);_.O([_.U(),_.R("design:type",Object)],yN.prototype,"defaultCollapsePlaylist",void 0);_.O([_.U({selector:_.qx}),_.R("design:type",Object)],yN.prototype,"theaterValue",void 0);_.O([_.U({selector:_.Uc}),_.R("design:type",Object)],yN.prototype,"fullscreenValue",void 0);_.O([_.U({selector:_.D6}),_.R("design:type",Object)],yN.prototype,"scrollTopValue",void 0);
_.O([_.U({selector:_.z2}),_.R("design:type",Object)],yN.prototype,"miniplayerIsActive",void 0);_.O([_.U({selector:function(J){return J.watch.isWatchRetroMode}}),
_.R("design:type",Object)],yN.prototype,"retroModeReduxValue",void 0);_.O([_.Qc("ytd-player"),_.R("design:type",HTMLElement)],yN.prototype,"ytdPlayer",void 0);_.O([_.Iu("#playlist"),_.R("design:type",HTMLElement)],yN.prototype,"JSC$20484_ytdPlaylistPanelRenderer",void 0);_.O([_.Qc("ytd-comments"),_.R("design:type",HTMLElement)],yN.prototype,"ytdComments",void 0);_.O([_.Iu("#primary"),_.R("design:type",HTMLElement)],yN.prototype,"primary",void 0);
_.O([_.Iu("#secondary"),_.R("design:type",HTMLElement)],yN.prototype,"secondary",void 0);_.O([_.Iu("#player-container"),_.R("design:type",HTMLElement)],yN.prototype,"playerContainer",void 0);_.O([_.Iu("#cinematics"),_.R("design:type",HTMLElement)],yN.prototype,"JSC$20484_cinematics",void 0);_.O([_.NE("theaterValue"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],yN.prototype,"updateTheaterValue",null);
_.O([_.NE("fullscreenValue"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],yN.prototype,"updateFullscreenValue",null);_.O([_.NE("scrollTopValue"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],yN.prototype,"updateScrollTopValue",null);_.O([_.NE("retroModeReduxValue"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],yN.prototype,"updateRetroModeReduxValue",null);
_.O([_.U({reflectToAttribute:!0}),_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],yN.prototype,"cinematicLightTheme",null);yN=_.O([_.E({is:"ytd-watch-flexy"})],yN);_.l6.registerService(_.UmQ,yN);
_.qi();
}catch(e){_._DumpException(e)}
try{
_.ZS("nmfa2d");
var BGo;var vD=function(){var J=_.h.apply(this,arguments)||this;J.hidden=!1;J.errorScreen=null;J.playlistData={};return J};
_.D(vD,_.h);_.V=vD.prototype;_.V.getPlayer=function(){return this.ytdPlayer};
_.V.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:_.uZ(["aa","eocs"])}}};
_.V.onActiveChanged=function(){_.Rc().dispatch(_.okp(this.ytPageBehavior.active))};
_.V.playerDataChanged=function(){var J;(J=this.watchController)==null||J.setPlayerResponse(this.playerData)};
_.V.dataChanged=function(){var J;(J=this.watchController)==null||J.setWatchNextResponse(this.data)};
_.V.sizeChanged=function(){var J,c;(c=(J=this.metadata).resize)==null||c.call(J)};
_.V.attached=function(){this.watchController=new _.G0(this);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data)};
_.V.detached=function(){_.yr(this.watchController);this.watchController=void 0};
_.V.getPlayerContainer=function(){return this.playerContainer};
_.V.getElement=function(J){switch(J){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20436_playlistPanel}};
_.V.provideRenderingData=function(J,c){switch(J){case "SINGLE_COLUMN_CONTENTS":this.singleColumnContents=c;break;case "ERROR_SCREEN":this.errorScreen=c!=null?c:null;break;case "PRIMARY_INFO":this.videoPrimaryInfoRenderer=c;break;case "SECONDARY_INFO":this.videoSecondaryInfoRenderer=c;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRenderer=c;break;case "RICH_METADATA":this.richMetadataRowContainer=c;break;case "CLARIFICATION":this.clarificationData=c;break;case "PLAYLIST":this.playlistData=
c!=null?c:{};break;case "MERCH_SHELF":this.merchShelf=c;break;case "TICKET_SHELF":this.ticketShelf=c;break;case "LIMITED_STATE":this.limitedState=c;break;case "DONATION_SHELF":this.donationShelf=c;break;case "ALERTS":this.alerts=c}};
_.eE.Object.defineProperties(vD.prototype,{hasPlaylistData:{configurable:!0,enumerable:!0,get:function(){return this.playlistData&&!!Object.keys(this.playlistData).length}},
hasChat:{configurable:!0,enumerable:!0,get:function(){var J,c,m;return!this.hidden&&!!((J=this.data)==null?0:(c=J.contents)==null?0:(m=c.twoColumnWatchNextResults)==null?0:m.conversationBar)}}});
vD.prototype.sizeChanged=vD.prototype.sizeChanged;vD.prototype.dataChanged=vD.prototype.dataChanged;vD.prototype.playerDataChanged=vD.prototype.playerDataChanged;vD.prototype.onActiveChanged=vD.prototype.onActiveChanged;_.O([_.f(_.D$.YtPageBehavior),_.R("design:type",Object)],vD.prototype,"ytPageBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],vD.prototype,"ytComponentBehavior",void 0);
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],vD.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],vD.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.fY),_.R("design:type",Object)],vD.prototype,"ytdReduxBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],vD.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],vD.prototype,"playerData",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],vD.prototype,"hidden",void 0);_.O([_.Iu("#ytd-player"),_.R("design:type",HTMLElement)],vD.prototype,"ytdPlayer",void 0);_.O([_.Iu("#player-container"),_.R("design:type",HTMLElement)],vD.prototype,"playerContainer",void 0);_.O([_.Iu("#metadata"),_.R("design:type",Object)],vD.prototype,"metadata",void 0);_.O([_.Iu("#playlist"),_.R("design:type",HTMLElement)],vD.prototype,"JSC$20436_playlistPanel",void 0);
_.O([_.U({selector:_.WDF,reflectToAttribute:!0}),_.R("design:type",Object)],vD.prototype,"fixie",void 0);_.O([_.U({selector:_.DVR,reflectToAttribute:!0}),_.R("design:type",Object)],vD.prototype,"singleColumn",void 0);_.O([_.U({selector:function(J){return _.qx(J)&&!_.Uc(J)},
reflectToAttribute:!0}),_.R("design:type",Object)],vD.prototype,"theater",void 0);_.O([_.U({selector:_.Uc,reflectToAttribute:!0}),_.R("design:type",Object)],vD.prototype,"fullscreen",void 0);_.O([_.U({selector:_.RUf}),_.R("design:type",Object)],vD.prototype,"windowSize",void 0);_.O([_.U(),_.R("design:type",Object)],vD.prototype,"singleColumnContents",void 0);_.O([_.U(),_.R("design:type",Object)],vD.prototype,"errorScreen",void 0);_.O([_.U(),_.R("design:type",Object)],vD.prototype,"playlistData",void 0);
_.O([_.U(),_.R("design:type",Object)],vD.prototype,"videoPrimaryInfoRenderer",void 0);_.O([_.U(),_.R("design:type",Object)],vD.prototype,"videoSecondaryInfoRenderer",void 0);_.O([_.U(),_.R("design:type",Object)],vD.prototype,"richMetadataRowContainer",void 0);_.O([_.U(),_.R("design:type",Object)],vD.prototype,"clarificationData",void 0);_.O([_.U(),_.R("design:type",Object)],vD.prototype,"commentsEntryPointHeaderRenderer",void 0);_.O([_.U(),_.R("design:type",Object)],vD.prototype,"ticketShelf",void 0);
_.O([_.U(),_.R("design:type",Object)],vD.prototype,"merchShelf",void 0);_.O([_.U(),_.R("design:type",Object)],vD.prototype,"donationShelf",void 0);_.O([_.U(),_.R("design:type",Object)],vD.prototype,"limitedState",void 0);_.O([_.U(),_.R("design:type",Object)],vD.prototype,"alerts",void 0);_.O([_.q("playlistData"),_.R("design:type",Object),_.R("design:paramtypes",[])],vD.prototype,"hasPlaylistData",null);
_.O([_.q("data","hidden"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],vD.prototype,"hasChat",null);_.O([_.NE("active"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],vD.prototype,"onActiveChanged",null);_.O([_.NE("playerData"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],vD.prototype,"playerDataChanged",null);
_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],vD.prototype,"dataChanged",null);_.O([_.NE("windowSize","singleColumn"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],vD.prototype,"sizeChanged",null);
_.v(vD,"ytd-watch-fixie",function(){if(BGo===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);BGo=J}J=BGo;return J},{mode:1});_.l6.registerService(_.q6Q,vD);
_.qi();
}catch(e){_._DumpException(e)}
try{
_.ZS("xwEKAe");
var neS=function(J){var c=_.HA();if(c.getFlag(202))c=c.getFlag(201);else{var m;c=(J==null?void 0:(m=J.config)==null?void 0:m.settingOnByDefault)!==void 0?J.config.settingOnByDefault:!_.w("web_shorts_cinematics_disabled_by_default")}return c},TjF=function(J){var c=_.HA();
_.iJ(0,201,J);_.iJ(0,202,!0);c.save()},woR=function(J){return(J=_.VmG(J))?_.MmR(J):0},rn5=function(J){return J.shorts.isSmallScreenSqueezeback},sZ1=function(J){return J.shorts.isPlaybackStarted},W1f=function(J){var c=_.uke(2),m=new Set;
_.f2(function(){return void m.forEach(function(b){return void b()})});
return function(b){var x=_.Ba(c);try{var P=L14(D5h(J),b);m.add(P);return function(){P();m.delete(P)}}finally{_.Ba(x)}}},zPh=function(J){var c=J.children;
var m=J.root;_.WG(function(){var b=W1f(m)(c);_.f2(b)});
return document.createTextNode("")},L14=function(J,c){var m=u5r(J);
J=_.M(_.rPe(c,!0));c=J.next().value;var b=J.next().value;m.append.apply(m,_.L6(c));return function(){b();m.remove()}},D5h=function(J){if(typeof J==="string")return J=document.querySelector(J),_.Icf(J),J;
if(_.bN(J)&&J.nodeType===Node.ELEMENT_NODE)return J;try{if(!J.__hasErrored){if(J.__count&&J.__count>1)throw _.L3.USE_ELEMENT_MULTIPLE_ASSIGNMENTS(_.eg);if(J.__value){if(_.eg!==_.eg){var c=J.__value.tagName.toLowerCase();if(c!==_.eg.toLowerCase())throw _.L3.USE_ELEMENT_UNEXPECTED_ELEMENT(_.eg,c);}}else throw _.L3.USE_ELEMENT_NOT_ASSIGNED(_.eg);}}catch(b){var m;(m=_.bi.handleError)==null||m.call.apply(m,[_.bi].concat(_.L6(_.Us(b,c))))}finally{J.__count=0}return J.value},u5r=function(J){var c=document.createElementNS(J.namespaceURI,
J.namespaceURI==="http://www.w3.org/2000/svg"?"g":"div");
return J.appendChild(c)},f8F=function(J,c,m,b){J=c-J;
m=b-m;return Math.sqrt(J*J+m*m)},Yju=function(J,c){J&&_.BG().resolve(_.gu).resolveCommand(J,{forceClickLogging:!0,
form:{element:c}})},Xo4=function(J,c,m,b){J=c-J;
m=b-m;return Math.sqrt(J*J+m*m)},Ze5=function(J,c){J&&_.BG().resolve(_.gu).resolveCommand(J,{forceClickLogging:!0,
form:{element:c}})},qjs=function(J){J.unsubscribeFromStore=_.Nh(J.storeWithShorts,_.tso,function(c){J.initOrDisposeActiveModules(c);
!c&&J.storeWithShorts.getState().shorts.isFullscreen&&(_.BS(document.documentElement),J.storeWithShorts.dispatch(_.acF(!1)))});
J.initOrDisposeActiveModules(_.tso(J.storeWithShorts.getState()))},U5u=function(J){var c=_.BG().resolve(_.NH);
c.rootElement=J;qjs(c)},Sjh=function(){return _.BG().resolve(_.NH).dismissedIndices},hPR=function(J){return _.J7({type:"SET_IS_WATCH_WHILE_MODE",
payload:{isWatchWhileMode:J}})},d55=function(J){return _.J7({type:"SET_IS_SMALL_SCREEN_SQUEEZEBACK",
payload:{isSmallScreenSqueezeback:J}})},xj=function(J){return _.J7({type:"SET_IS_PLAYBACK_STARTED",
payload:{isPlaybackStarted:J}})};var Vk=function(J,c){if(J instanceof Vk)this.array_=J.array_;else{var m;if(m=_.yJ(J))a:{for(var b=m=0;b<J.length;b++){if(!_.yJ(J[b])||m>0&&J[b].length!=m){m=!1;break a}for(var x=0;x<J[b].length;x++)if(typeof J[b][x]!=="number"){m=!1;break a}m==0&&(m=J[b].length)}m=m!=0}if(m)this.array_=_.Fe(J);else if(J instanceof _.tk)this.array_=$5R(J.height,J.width);else if(typeof J==="number"&&typeof c==="number"&&J>0&&c>0)this.array_=$5R(J,c);else throw Error("Xl");}this.size_=new _.tk(this.array_[0].length,
this.array_.length)},Glr=function(J,c,m){for(var b=0;b<J.getSize().height;b++)for(var x=0;x<J.getSize().width;x++)c.call(m,J.array_[b][x],b,x,J)},Eef=function(J,c){var m=new Vk(J.getSize());
Glr(J,function(b,x,P){m.array_[x][P]=c.call(void 0,b,x,P,J)});
return m},$5R=function(J,c){for(var m=[],b=0;b<J;b++){m[b]=[];
for(var x=0;x<c;x++)m[b][x]=0}return m};
Vk.prototype.add=function(J){if(!_.oD4(this.size_,J.getSize()))throw Error("Yl");return Eef(this,function(c,m,b){return c+J.array_[m][b]})};
Vk.prototype.equals=function(J,c){if(this.size_.width!=J.size_.width||this.size_.height!=J.size_.height)return!1;c=c||0;for(var m=0;m<this.size_.height;m++)for(var b=0;b<this.size_.width;b++)if(!_.RTs(this.array_[m][b],J.array_[m][b],c))return!1;return!0};
Vk.prototype.getSize=function(){return this.size_};
var P5=function(J,c,m){return c>=0&&c<J.size_.height&&m>=0&&m<J.size_.width?J.array_[c][m]:null};
Vk.prototype.isSquare=function(){return this.size_.width==this.size_.height};
var MT=function(J,c,m,b){if(!(c>=0&&c<J.size_.height&&m>=0&&m<J.size_.width))throw Error("Zl`"+c+"`"+m+"`"+J.size_.height+"`"+J.size_.width);J.array_[c][m]=b};
Vk.prototype.multiply=function(J){if(J instanceof Vk){if(this.size_.width!=J.getSize().height)throw Error("$l");return veR(this,J)}if(typeof J==="number")return OeR(this,J);throw Error("am");};
var veR=function(J,c){var m=new Vk(J.size_.height,c.getSize().width);Glr(m,function(b,x,P){for(var p=b=0;p<this.size_.width;p++)b+=P5(this,x,p)*P5(c,p,P);MT(m,x,P,b)},J);
return m},OeR=function(J,c){return Eef(J,function(m){return m*c})};var AnR=new _.Q("inlineSurveyRenderer");var RPf=new _.Q("interstitialViewModel");var oer=new _.Q("reelNavigateCommand");var QZs=new _.Q("reelNonVideoContentDismissalCommand");var ePR=new _.Q("showReelsCommentsOverlayCommand");var jZR=new _.Q("shortsSuggestedActionViewModel");var F15=new _.Q("videoInteractionPopUpRenderer");var l8r;var ynR;var Bjh;var pm=function(){var J=_.h.apply(this,arguments)||this;J.ctaVisualElement=null;J.currentCsn=null;return J};
_.D(pm,_.h);_.V=pm.prototype;_.V.onDataChanged=function(){this.maybeLogShows()};
_.V.computeButtonShape=function(){var J=this;if(this.data)return{buttonText:_.OG(this.data.text),state:"active",onTap:function(){J.onTap()},
iconPosition:"leading",style:"overlay-dark",type:"tonal",size:"M"}};
_.V.maybeCreateCtaVe=function(){var J;if((J=this.data)!=null&&J.badgeInteractionLogging){var c;if(J=(c=this.data.badgeInteractionLogging)==null?void 0:c.trackingParams)this.ctaVisualElement=_.n7(J)}};
_.V.maybeLogClicks=function(){this.currentCsn=_.Y3(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.AS(this.currentCsn,this.ctaVisualElement)};
_.V.maybeLogShows=function(){this.currentCsn=_.Y3(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.vA(this.currentCsn,[this.ctaVisualElement])};
_.V.onTap=function(){var J;if((J=this.data)!=null&&J.onClickCommand){var c;this.ytComponentBehavior.resolveCommand((c=this.data)==null?void 0:c.onClickCommand);this.maybeLogClicks()}};
pm.prototype.onDataChanged=pm.prototype.onDataChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],pm.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],pm.prototype,"ytComponentBehavior",void 0);_.O([_.U({}),_.R("design:type",Object)],pm.prototype,"data",void 0);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],pm.prototype,"onDataChanged",null);
pm=_.O([_.E({disableElementRegistration:!0,is:"ytd-shopping-overlay-badge-renderer"})],pm);
_.v(pm,"ytd-shopping-overlay-badge-renderer",function(){if(Bjh!==void 0)return Bjh;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return Bjh=J},{mode:1});_.lv(_.$OB,"reel-sound-metadata-view-model",{props:{data:_.Fz,overlayDensity:_.Fz}});_.lv(_.zoh,"player-disclosure-view-model",{props:{data:_.vt}});_.lv(_.P2Q,"pivot-button-view-model",{props:{data:_.Fz,className:_.Fz}});_.lv(_.Ml$,"reel-action-bar-view-model",{props:{data:_.vt,buttonShapeOverrideables:_.vt}});_.lv(_.Q1(function(J){function c(){var kt,nG,fG,Yt,Z3=(nG=_.L((kt=e())==null?void 0:kt.command,_.CO))==null?void 0:(fG=nG.item)==null?void 0:(Yt=fG.notificationTextRenderer)==null?void 0:Yt.successResponseText;if(Z3)_.m9(b.value,"yt-open-popup-action",[_.Q_(Z3),b.value]);else if(A())Yju(A(),W.value);else{var oR;Yju((oR=e())==null?void 0:oR.command,W.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var m=J.data;var b=_.oN("yt-player-overlay-video-interactions");J=_.M(_.K2("0px",void 0,"O1N7Ce"));var x=J.next().value,P=J.next().value;J=_.M(_.K2("0px",void 0,"tTDBdb"));var p=J.next().value,t=J.next().value;J=_.M(_.K2(0,void 0,"fh8Zkc"));var I=J.next().value,a=J.next().value;J=_.M(_.K2(0,void 0,"CUjqGd"));var k=J.next().value,H=J.next().value,T=function(){var kt;if(((kt=_.b$())==null?void 0:kt.getPlayerState())!==-1){b.value.style.display="inherit";var nG;(nG=_.b$())==null||nG.removeEventListener("onStateChange",
T)}r()},r=function(){var kt=document.querySelector("video");
if(kt){a(kt.getBoundingClientRect().width);H(kt.getBoundingClientRect().height);var nG;P((kt==null?void 0:(nG=kt.style)==null?void 0:nG.left)||"0px");var fG;t((kt==null?void 0:(fG=kt.style)==null?void 0:fG.top)||"0px")}};
_.ui(function(){var kt,nG,fG;if(((kt=_.b$())==null?void 0:kt.getPlayerState())===-1&&Math.round(((fG=(nG=_.b$())==null?void 0:nG.getVideoAspectRatio())!=null?fG:0)*100)!==Math.round(I()/k()*100)){b.value.style.display="none";var Yt,Z3;H(I()/((Z3=(Yt=_.b$())==null?void 0:Yt.getVideoAspectRatio())!=null?Z3:1))}},"VB5m5");
_.WG(function(){var kt;(kt=_.b$())==null||kt.addEventListener("onStateChange",T);window.addEventListener("resize",r);r();var nG,fG,Yt;if((Yt=(nG=m())==null?void 0:(fG=nG.regions)==null?void 0:fG[0])==null||!Yt.transformationMatrix)throw Error("em");var Z3;if((Z3=m())==null?0:Z3.trackingParams){var oR;_.C7().graftServerVe((oR=m().trackingParams)!=null?oR:"")}_.f2(function(){var Em;(Em=_.b$())==null||Em.removeEventListener("onStateChange",T);window.removeEventListener("resize",r)})});
var W=_.oN("svg"),Y=_.M(_.K2(!1,void 0,"TPsTce"));J=Y.next().value;var Z=Y.next().value,d=_.M(_.K2(!1,void 0,"Uz6CHf"));Y=d.next().value;var G=d.next().value,e=function(){var kt;return _.L((kt=m())==null?void 0:kt.popUp,F15)},A=function(){var kt;
return(kt=m())==null?void 0:kt.command},l=function(){return _.L(A(),_.KK)!==void 0};
d=_.Kq(function(){c();return!1});
var y={},pG={};return _.C("yt-player-overlay-video-interactions",{el:b},_.C("svg",{"on:mouseover":_.Kq(function(){l()&&Z(!0);G(!0);return!1}),
"on:mouseout":_.Kq(function(){Z(!1);G(!1);return!1}),
"on:keydown":_.Kq(function(kt){kt.key==="Enter"&&c();return!1}),
"on:focus":_.Kq(function(){l()&&Z(!0);return!1}),
"on:blur":_.Kq(function(){l()&&Z(!1);return!1}),
el:W,tabindex:0,"aria-label":function(){var kt;return(kt=m())==null?void 0:kt.a11yString},
id:"player-overlay-video-interaction-svg",class:_.pq("yt-player-overlay-video-interactions__interactions-svg",(y["yt-player-overlay-video-interactions__interactions-svg-hover"]=J,y),(pG["yt-player-overlay-video-interactions__interactions-svg-hide-outline"]=Y,pG)),role:"button",style:function(){var kt,nG,fG,Yt=(fG=(kt=m())==null?void 0:(nG=kt.regions)==null?void 0:nG[0].transformationMatrix)!=null?fG:[];kt=I();nG=k();fG=[];for(var Z3=0,oR=-1;Z3<Yt.length;Z3++)Z3%3===0&&(oR++,fG[oR]=[]),fG[oR].push(Yt[Z3]);
Yt=new Vk(fG);fG=new Vk([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);fG=Yt.multiply(fG);Yt=new Vk([[0,0],[0,0],[0,0],[0,0]]);for(Z3=0;Z3<fG.getSize().width;Z3++){oR=P5(fG,0,Z3);var Em=P5(fG,1,Z3);if(oR===null||Em===null)throw Error("dm`"+(Z3+1).toString());MT(Yt,Z3,0,oR*kt);MT(Yt,Z3,1,Em*nG)}kt=P5(Yt,0,0);Z3=P5(Yt,1,0);nG=P5(Yt,0,1);oR=P5(Yt,1,1);if(kt===null||Z3===null||nG===null||oR===null)throw Error("bm");fG=f8F(kt,Z3,nG,oR);Em=P5(Yt,3,0);Yt=P5(Yt,3,1);if(Em===null||Yt===null)throw Error("cm");Yt=f8F(kt,
Em,nG,Yt);oR=(Number((oR*-1).toFixed(2))-Number((nG*-1).toFixed(2)))/(Number(Z3.toFixed(2))-Number(kt.toFixed(2)));Em=Math.atan(oR)*180/Math.PI;Z3=oR===Number.POSITIVE_INFINITY?-90:oR===Number.NEGATIVE_INFINITY?90:Object.is(oR,-0)?180:oR===0?0:oR>0?Em*-1:kt<Z3?Em*-1:Math.abs(Em)+180;return"left:calc("+kt+"px + "+x()+"); top:calc("+(nG+"px + "+p()+"); width:")+(fG+"px; height:")+(Yt+"px; transform:rotate(")+(Z3+"deg);")},
"on:click":d}))},"Ji"),"yt-player-overlay-video-interactions",{props:{data:_.vt}});_.lv(_.ZrS,"yt-reel-metapanel-view-model",{props:{data:_.vt,overlayDensity:_.vt}});var ges=_.Q1(function(J){var c=J.children;var m=J.region;J=_.M(_.K2(void 0,void 0,"rwJZyc"));var b=J.next().value,x=J.next().value;J=_.M(_.K2("0px",void 0,"H14H5c"));var P=J.next().value,p=J.next().value;J=_.M(_.K2("0px",void 0,"Mn8Uvf"));var t=J.next().value,I=J.next().value;J=_.M(_.K2(0,void 0,"QQCIqc"));var a=J.next().value,k=J.next().value;J=_.M(_.K2(0,void 0,"HyEvh"));var H=J.next().value,T=J.next().value,r=function(){var e=b();if(e){var A;if(((A=_.b$())==null?void 0:A.getPlayerState())!==-1){e.style.display=
"inherit";var l;(l=_.b$())==null||l.removeEventListener("onStateChange",r)}Y()}},W=function(){var e=document.querySelectorAll("video");
return Array.from(e).find(function(A){return A==null?void 0:A.style})},Y=function(){var e=W();
if(e){k(e.getBoundingClientRect().width);T(e.getBoundingClientRect().height);var A;p((e==null?void 0:(A=e.style)==null?void 0:A.left)||"0px");var l;I((e==null?void 0:(l=e.style)==null?void 0:l.top)||"0px")}};
_.ui(function(){var e=b();if(e){var A,l,y;if(((A=_.b$())==null?void 0:A.getPlayerState())===-1&&Math.round(((y=(l=_.b$())==null?void 0:l.getVideoAspectRatio())!=null?y:0)*100)!==Math.round(a()/H()*100)){e.style.display="none";var pG,kt;T(a()/((kt=(pG=_.b$())==null?void 0:pG.getVideoAspectRatio())!=null?kt:1))}}},"RdGxIf");
var Z=function(){Y()},d;
_.WG(function(){Y();var e;if(!(m==null?0:(e=m())==null?0:e.transformationMatrix))throw Error("em");var A;(A=_.b$())==null||A.addEventListener("onStateChange",r);if(window.ResizeObserver){if(e=W())d=new ResizeObserver(Z),d.observe(e)}else window.addEventListener("resize",Y);_.f2(function(){var l;(l=_.b$())==null||l.removeEventListener("onStateChange",r);d?d.disconnect():window.removeEventListener("resize",Y)})});
var G=function(){var e,A,l=(A=m==null?void 0:(e=m())==null?void 0:e.transformationMatrix)!=null?A:[];e=a();A=H();for(var y=[],pG=0,kt=-1;pG<l.length;pG++)pG%3===0&&(kt++,y[kt]=[]),y[kt].push(l[pG]);l=new Vk(y);y=new Vk([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);y=l.multiply(y);l=new Vk([[0,0],[0,0],[0,0],[0,0]]);for(pG=0;pG<y.getSize().width;pG++){kt=P5(y,0,pG);var nG=P5(y,1,pG);if(kt===null||nG===null)throw Error("dm`"+(pG+1).toString());MT(l,pG,0,kt*e);MT(l,pG,1,nG*A)}e=P5(l,0,0);pG=P5(l,1,0);A=P5(l,0,1);
kt=P5(l,1,1);if(e===null||pG===null||A===null||kt===null)throw Error("bm");y=Xo4(e,pG,A,kt);nG=P5(l,3,0);l=P5(l,3,1);if(nG===null||l===null)throw Error("cm");l=Xo4(e,nG,A,l);kt=(Number((kt*-1).toFixed(2))-Number((A*-1).toFixed(2)))/(Number(pG.toFixed(2))-Number(e.toFixed(2)));nG=Math.atan(kt)*180/Math.PI;pG=kt===Number.POSITIVE_INFINITY?-90:kt===Number.NEGATIVE_INFINITY?90:Object.is(kt,-0)?180:kt===0?0:kt>0?nG*-1:e<pG?nG*-1:Math.abs(nG)+180;return"left:calc("+e+"px + "+P()+"); top:calc("+(A+"px + "+
t()+"); width:")+(y+"px; height:")+(l+"px; transform:rotate(")+(pG+"deg);")};
return _.C(zPh,{root:"#sticker-layer"},function(){return _.C("yt-overlay-sticker",{el:_.Qn(x),style:G,class:"ytOverlayStickerHost"},c)})},"Ki");_.lv(_.Q1(function(J){function c(){var r,W,Y,Z,d=(W=_.L((r=I())==null?void 0:r.command,_.CO))==null?void 0:(Y=W.item)==null?void 0:(Z=Y.notificationTextRenderer)==null?void 0:Z.successResponseText;if(d)_.m9(b.value,"yt-open-popup-action",[_.Q_(d),b.value]);else if(a())Ze5(a(),b.value);else{var G;Ze5((G=I())==null?void 0:G.command,b.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var m=J.data;_.WG(function(){var r;if((r=m())==null?0:r.trackingParams){var W;_.C7().graftServerVe((W=m().trackingParams)!=null?W:"")}});
var b=_.oN("svg"),x=_.M(_.K2(!1,void 0,"Gjm8Mb"));J=x.next().value;var P=x.next().value,p=_.M(_.K2(!1,void 0,"JN7Pdb"));x=p.next().value;var t=p.next().value,I=function(){var r;return _.L((r=m())==null?void 0:r.popUp,F15)},a=function(){var r;
return(r=m())==null?void 0:r.command},k=function(){return _.L(a(),_.KK)!==void 0};
p=_.Kq(function(){c();return!1});
var H={},T={};return _.C("yt-player-overlay-interaction",null,_.C(ges,{region:function(){var r,W;return(r=m())==null?void 0:(W=r.regions)==null?void 0:W[0]}},_.C("svg",{"on:mouseover":_.Kq(function(){k()&&P(!0);
t(!0);return!1}),
"on:mouseout":_.Kq(function(){P(!1);t(!1);return!1}),
"on:keydown":_.Kq(function(r){r.key==="Enter"&&c();return!1}),
"on:focus":_.Kq(function(){k()&&P(!0);return!1}),
"on:blur":_.Kq(function(){k()&&P(!1);return!1}),
el:b,tabindex:0,"aria-label":function(){var r;return(r=m())==null?void 0:r.a11yString},
id:"player-overlay-video-interaction-svg",class:_.pq("ytPlayerOverlayInteractionInteractionsSvg",(H.ytPlayerOverlayInteractionInteractionsSvgHover=J,H),(T.ytPlayerOverlayInteractionInteractionsSvgHideOutline=x,T)),role:"button","on:click":p})))},"Li"),"yt-player-overlay-interaction",{props:{data:_.vt}});var NT=function(){var J=_.h.apply(this,arguments)||this;J.showScrubber=!1;J.isWatchWhileMode=!1;J.enableRemixButton=_.w("web_enable_shorts_remix_handoff_ep");J.enableAnchoredPanel=_.w("desktop_shorts_v2_anchored_panel");J.enableNewStickers=_.w("use_shorts_sticker_overlay_web");J.anchoredPanelActive=!1;J.enableLivingroomLayout=_.w("reels_enable_livingroom_layout");J.enablePlayerMetadataContainer=_.w("reels_web_enable_metadata_container");J.enableSqueezebackPanels=_.w("web_shorts_enable_squeezeback_panels");
J.useAspectRatio=_.w("web_use_aspect_ratio");J.isSqueezebackActive=!1;J.smallScreenSqueezeback=!1;J.isPlayerStarted=!1;J.overlayDensity=0;J.isOverlay=!1;J.isImmersive=!1;J.isImmersiveHorizontal=!1;J.isFullscreen=!1;J.onWindowResized=function(){var c;J.set("isImmersive",((c=window.getComputedStyle(J.hostElement))==null?void 0:c.getPropertyValue("--immersive-mode-on"))==="1");J.set("isImmersiveHorizontal",J.isImmersive&&J.enableLivingroomLayout&&!J.isWatchWhileMode)};
return J};
_.D(NT,_.h);_.V=NT.prototype;_.V.updateIsOverlay=function(J){this.isOverlay=J.detail.value};
_.V.computeIsShortsOverlay=function(){this.enableLivingroomLayout&&(this.isWatchWhileMode?(this.isImmersiveHorizontal=!1,this.isOverlay=!0):(!this.isOverlay&&this.isImmersive&&(this.isImmersiveHorizontal=!0),this.isOverlay=!1));if(_.w("web_enable_flexible_overlay")||_.w("web_enable_format_first")||_.w("web_enable_format_first_organic_only"))this.isOverlay=this.overlayDensity===2;return this.isWatchWhileMode&&!this.enableAnchoredPanel&&!this.enableLivingroomLayout||this.isOverlay};
_.V.computeIsShortsImmersive=function(){return!this.isWatchWhileMode&&this.isImmersive&&!this.anchoredPanelActive};
_.V.onIsActiveChanged=function(){this.isActive||this.setEmptyOverlayMetadata()};
_.V.computeActionBarButtonOverride=function(){return{style:this.isOverlay||this.isWatchWhileMode&&!this.enableAnchoredPanel?"overlay-dark":"mono",iconPosition:"icon-with-label",size:"L"}};
_.V.computeButtonOverride=function(){return{style:this.isOverlay||this.isWatchWhileMode&&!this.enableAnchoredPanel?"overlay-dark":"mono",type:"tonal",iconPosition:"icon-with-label",size:"L"}};
_.V.attached=function(){window.addEventListener("resize",this.onWindowResized);this.onWindowResized()};
_.V.detached=function(){window.removeEventListener("resize",this.onWindowResized)};
_.V.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",_.mG("reels_metadata_justified_content")||"flex-start");this.hostElement.style.setProperty("--action-justify-content",_.mG("reels_action_justified_content")||"flex-start")};
_.V.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}}};
_.V.setFakeLoadingButtons=function(){this.set("data.likeButton",{likeButtonRenderer:{likesAllowed:!0,likeStatus:"INDIFFERENT",likeCountText:{simpleText:_.CX("LIKE_LABEL",void 0,"Like")},dislikeCountText:{simpleText:_.CX("DISLIKE_LABEL",void 0,"Dislike")}}});this.set("data.viewCommentsButton",{buttonRenderer:{icon:{iconType:"SHORTS_COMMENT"},text:{simpleText:_.CX("COMMENT_LABEL",void 0,"Comment")}}});this.set("data.shareButton",{buttonRenderer:{icon:{iconType:"SHORTS_SHARE"},text:{simpleText:_.CX("SHARE_LABEL",
void 0,"Share")}}});_.w("web_enable_shorts_remix_handoff_ep")&&this.set("data.remixButton",{buttonRenderer:{icon:{iconType:"REMIX_FILLED"},text:{simpleText:_.CX("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()};
_.V.setEmptyOverlayMetadata=function(){_.w("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}))};
_.eE.Object.defineProperties(NT.prototype,{hasInfoPanel:{configurable:!0,enumerable:!0,get:function(){var J;return!((J=this.data)==null||!J.infoPanel)}}});
NT.prototype.onIsActiveChanged=NT.prototype.onIsActiveChanged;_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],NT.prototype,"ytComponentBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],NT.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.fY),_.R("design:type",Object)],NT.prototype,"ytdReduxBehavior",void 0);_.O([_.f(_.SO.YtdGuideStateAwareBehavior),_.R("design:type",Object)],NT.prototype,"ytdGuideStateAwareBehavior",void 0);
_.O([_.U(),_.R("design:type",Object)],NT.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Boolean)],NT.prototype,"isActive",void 0);_.O([_.U({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],NT.prototype,"hidden",void 0);_.O([_.U({value:!0}),_.R("design:type",Boolean)],NT.prototype,"useShortsIcon",void 0);_.O([_.U({value:"left"}),_.R("design:type",String)],NT.prototype,"buttonTooltipPosition",void 0);
_.O([_.U({value:_.w("reels_enable_livingroom_layout")?"top":"left"}),_.R("design:type",String)],NT.prototype,"likeButtonTooltipPosition",void 0);_.O([_.U({value:"none"}),_.R("design:type",String)],NT.prototype,"textTransform",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],NT.prototype,"showScrubber",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],NT.prototype,"isWatchWhileMode",void 0);
_.O([_.U({reflectToAttribute:!0}),_.q("data.infoPanel"),_.R("design:type",Object),_.R("design:paramtypes",[])],NT.prototype,"hasInfoPanel",null);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],NT.prototype,"enableRemixButton",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],NT.prototype,"enableAnchoredPanel",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],NT.prototype,"enableNewStickers",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],NT.prototype,"anchoredPanelActive",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],NT.prototype,"enableLivingroomLayout",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],NT.prototype,"enablePlayerMetadataContainer",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],NT.prototype,"enableSqueezebackPanels",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],NT.prototype,"useAspectRatio",void 0);_.O([_.U({selector:_.woT,reflectToAttribute:!0}),_.R("design:type",Object)],NT.prototype,"isSqueezebackActive",void 0);_.O([_.U({selector:rn5,reflectToAttribute:!0}),_.R("design:type",Object)],NT.prototype,"smallScreenSqueezeback",void 0);_.O([_.U({selector:sZ1}),_.R("design:type",Object)],NT.prototype,"isPlayerStarted",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],NT.prototype,"overlayDensity",void 0);_.O([_.U(),_.R("design:type",Object)],NT.prototype,"isOverlay",void 0);_.O([_.U({computed:"computeIsShortsOverlay(isOverlay, isWatchWhileMode, overlayDensity)"}),_.R("design:type",Boolean)],NT.prototype,"isShortsOverlay",void 0);_.O([_.U(),_.R("design:type",Object)],NT.prototype,"isImmersive",void 0);_.O([_.U(),_.R("design:type",Object)],NT.prototype,"isImmersiveHorizontal",void 0);
_.O([_.U({computed:"computeIsShortsImmersive(isImmersive, isWatchWhileMode, anchoredPanelActive)"}),_.R("design:type",Boolean)],NT.prototype,"isShortsImmersive",void 0);_.O([_.U({computed:"computeButtonOverride(isOverlay, isWatchWhileMode)"}),_.R("design:type",Object)],NT.prototype,"buttonOverride",void 0);_.O([_.U({computed:"computeActionBarButtonOverride(isOverlay, isWatchWhileMode)"}),_.R("design:type",Object)],NT.prototype,"actionBarButtonOverride",void 0);
_.O([_.U({selector:_.t3,reflectToAttribute:!0}),_.R("design:type",Object)],NT.prototype,"isFullscreen",void 0);_.O([_.NE("isActive"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],NT.prototype,"onIsActiveChanged",null);NT=_.O([_.E({is:"ytd-reel-player-overlay-renderer",disableElementRegistration:!0})],NT);
_.v(NT,"ytd-reel-player-overlay-renderer",function(){if(ynR!==void 0)return ynR;var J=document.createElement("template");_.z(J,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-player-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="metadata-container style-scope ytd-reel-player-overlay-renderer" role="heading" aria-level="1">\n  <div id="overlay" class="style-scope ytd-reel-player-overlay-renderer">\n    <template is="dom-if" if="[[!enableNewStickers]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <template is="dom-repeat" items="[[data.videoInteractions.interactions]]" as="item" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-player-overlay-video-interactions data="[[item]]" class="style-scope ytd-reel-player-overlay-renderer">\n        </yt-player-overlay-video-interactions>\n      </template>\n    </template>\n    <template is="dom-if" if="[[enableNewStickers]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <template is="dom-repeat" items="[[data.videoInteractions.interactions]]" as="item" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-player-overlay-interaction data="[[item]]" class="style-scope ytd-reel-player-overlay-renderer">\n        </yt-player-overlay-interaction>\n      </template>\n    </template>\n    <template is="dom-if" if="[[data.metapanel]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="metapanel" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-reel-metapanel-view-model data="[[data.metapanel.reelMetapanelViewModel]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-player-overlay-renderer"></yt-reel-metapanel-view-model>\n      </div>\n    </template>\n  </div>\n  <div id="info-panel" class="style-scope ytd-reel-player-overlay-renderer"></div>\n</div>\n\n<div class="action-container style-scope ytd-reel-player-overlay-renderer">\n  <div id="actions" class="style-scope ytd-reel-player-overlay-renderer">\n    <div id="menu-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n      <ytd-menu-renderer data="[[data.menu.menuRenderer]]" is-overlay="[[isShortsOverlay]]" three-dot-size="L" tonal-override="" use-overlay-dark="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-menu-renderer>\n    </div>\n    <template is="dom-if" if="[[data.buttonBar]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="button-bar" class="style-scope ytd-reel-player-overlay-renderer">\n        <reel-action-bar-view-model button-shape-overrideables="[[actionBarButtonOverride]]" data="[[data.buttonBar.reelActionBarViewModel]]" class="style-scope ytd-reel-player-overlay-renderer"></reel-action-bar-view-model>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.likeButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="like-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-like-button-renderer button-tooltip-position="[[likeButtonTooltipPosition]]" data="[[data.likeButton.likeButtonRenderer]]" overrides="[[buttonOverride]]" text-transform="[[textTransform]]" use-shorts-icon="[[useShortsIcon]]" vertical="[[!isImmersiveHorizontal]]" class="style-scope ytd-reel-player-overlay-renderer"></ytd-like-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.viewCommentsButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="comments-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.viewCommentsButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.shareButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="share-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.shareButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.remixButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="remix-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.remixButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <div id="pivot-button" class="button-container style-scope ytd-reel-player-overlay-renderer" tabindex="0"></div>\n  </div>\n</div>\n<iron-media-query id="overlay-query" query="(max-width: 599px)" query-matches="[[isOverlay]]" on-query-matches-changed="updateIsOverlay" class="style-scope ytd-reel-player-overlay-renderer"></iron-media-query>\n');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return ynR=J},{mode:1});var Jr5;var tB=function(){var J=_.h.apply(this,arguments)||this;J.videoDuration=0;J.playedTime=0;J.isActive=!1;J.JSC$19698_playerEvents=new Map;return J};
_.D(tB,_.h);_.V=tB.prototype;_.V.created=function(){this.JSC$19698_playerEvents.set("onVideoDataChange",this.onVideoDataChange);this.JSC$19698_playerEvents.set("onVideoProgress",this.onVideoProgress)};
_.V.attached=function(){this.getPlayerAndInitializeListeners()};
_.V.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19698_playerEvents),this.player=null);document.removeEventListener("yt-page-type-changed",_.ME(this,this.onPageChanged))};
_.V.getPlayerAndInitializeListeners=function(){var J=this,c;return _.N(function(m){if(m.nextAddress==1)return c=_.ep(),c?_.K(m,c.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.ME(J,J.onPageChanged)),m.jumpTo(0));J.player=m.yieldResult;J.initializePlayerListeners();_.tD(m)})};
_.V.onPageChanged=function(J){var c=this;return _.N(function(m){if(m.nextAddress==1)return J.detail.newPageType!=="ytd-shorts"?m.return():_.K(m,_.jp().getPlayerPromise(),2);c.player=m.yieldResult;c.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.ME(c,c.onPageChanged));_.tD(m)})};
_.V.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$19698_playerEvents)};
_.V.onVideoDataChange=function(J){var c=this;return _.N(function(m){if(!c.player||J.type!=="newdata")return m.return();c.videoDuration=_.w("web_shorts_use_progress_state_for_gapless")?c.player.getProgressState(J.playertype).seekableEnd:c.player.getDuration(J.playertype);c.playedTime=0;_.tD(m)})};
_.V.onVideoProgress=function(J){var c=this,m,b;return _.N(function(x){if(!c.player)return x.return();m=c.player.getPresentingPlayerType();b=c.player.getPlayerState();c.videoDuration=_.w("web_shorts_use_progress_state_for_gapless")?c.player.getProgressState(m).seekableEnd:c.player.getDuration(m);c.playedTime=b===0?c.videoDuration:J;_.tD(x)})};
_.V.getPercentPlayed=function(J,c){return J?_.fZ(c/J,0,1):0};
_.eE.Object.defineProperties(tB.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 J="";return J=this.videoDuration&&this.playedTime?J+("transform:scaleX("+this.getPercentPlayed(this.videoDuration,this.playedTime)+");"):J+"transform:scaleX(0);"}},
hideProgressBar:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration?!(this.isActive&&this.videoDuration>30):!1}}});
_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],tB.prototype,"componentBehavior",void 0);_.O([_.f(_.Ex.YtPlayerListenerBehavior),_.R("design:type",_.vX)],tB.prototype,"ytPlayerListenerBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],tB.prototype,"player",void 0);_.O([_.U(),_.R("design:type",Object)],tB.prototype,"videoDuration",void 0);_.O([_.U(),_.R("design:type",Object)],tB.prototype,"playedTime",void 0);_.O([_.U(),_.R("design:type",Object)],tB.prototype,"isActive",void 0);
_.O([_.q("videoDuration","playedTime"),_.R("design:type",Number),_.R("design:paramtypes",[])],tB.prototype,"percentPlayed",null);_.O([_.q("videoDuration","playedTime"),_.R("design:type",Object),_.R("design:paramtypes",[])],tB.prototype,"percentPlayedStyle",null);_.O([_.q("videoDuration","isActive"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],tB.prototype,"hideProgressBar",null);
_.v(tB,"ytd-progress-bar-line",function(){if(Jr5===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);Jr5=J}J=Jr5;return J},{mode:_.mP("kevlar_poly_si_batch_j028")?1:2});var crs;_.lv(_.Na4,"ytm-closed-captioning-button",{props:{captionIconType:_.vt,onClick:_.Fz,ariaLabel:_.vt,ariaPressed:_.vt,isOverlay:_.Fz,isModern:_.Fz}});_.lv(_.WSF,"desktop-shorts-volume-controls",{props:{orientation:_.vt}});var II=function(){var J=_.h.apply(this,arguments)||this;J.playerState=null;J.isMuted=!1;J.shortsModernControlsEnabled=_.w("web_shorts_modern_controls");J.volumeControlsOrientationState=_.w("web_shorts_modern_controls")?"vertical_down":"horizontal_right";J.isOverlay=!0;J.captionIconType=-1;J.ariaLabel="";J.overlayDensity=0;J.JSC$19701_playerEvents=new Map;J.onClosedCaptionsButtonClick=function(){J.player&&_.Xd(J.player)&&(J.player.toggleSubtitles(),J.updateCaptionIconType())};
return J};
_.D(II,_.h);_.V=II.prototype;_.V.created=function(){this.JSC$19701_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$19701_playerEvents.set("onVolumeChange",this.onPlayerVolumeChange);this.shortsModernControlsEnabled&&this.JSC$19701_playerEvents.set("captionschanged",this.updateCaptionIconType)};
_.V.attached=function(){this.getPlayerAndInitializeListeners();this.muteButtonClientVE=_.rs(28662);this.playPauseButtonClientVE=_.rs(36842);this.fullscreenButtonToggleOffClientVE=_.rs(222256);this.fullscreenButtonToggleOnClientVE=_.rs(222257);var J=_.Y3(),c=_.fl();J&&c&&(_.w("combine_ve_grafts")?(_.JM(_.C7(),this.muteButtonClientVE,c),_.JM(_.C7(),this.playPauseButtonClientVE,c)):_.Gm(J,c,[this.muteButtonClientVE,this.playPauseButtonClientVE,this.fullscreenButtonToggleOffClientVE,this.fullscreenButtonToggleOnClientVE]))};
_.V.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19701_playerEvents),this.player=null)};
_.V.updateCaptionIconType=function(){var J=-1,c=void 0,m=_.CX("CLOSED_CAPTIONS_DISABLED");this.player&&_.Xd(this.player)&&(_.yef(this.player)?(c=!0,m=_.CX("CLOSED_CAPTIONS_ON"),J=1):(c=!1,m=_.CX("CLOSED_CAPTIONS_OFF"),J=0));this.captionIconType=J;this.ariaPressedState=c;this.ariaLabel=m};
_.V.getPlayerAndInitializeListeners=function(){var J=this,c;return _.N(function(m){if(m.nextAddress==1)return c=_.ep(),c?_.K(m,c.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.ME(J,J.onPageChanged)),m.jumpTo(0));J.player=m.yieldResult;J.initializePlayerListeners();_.tD(m)})};
_.V.onPageChanged=function(J){var c=this;return _.N(function(m){if(m.nextAddress==1)return J.detail.newPageType!=="ytd-shorts"?m.return():_.K(m,_.jp().getPlayerPromise(),2);c.player=m.yieldResult;c.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.ME(c,c.onPageChanged));_.tD(m)})};
_.V.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$19701_playerEvents);this.shortsModernControlsEnabled&&this.updateCaptionIconType()};
_.V.onPlayerStateChange=function(J){this.playerState=J};
_.V.onPlayerVolumeChange=function(J){this.isMuted=J.muted};
_.V.onPlayPauseButtonClick=function(){var J=this,c,m;return _.N(function(b){if(b.nextAddress==1)return _.K(b,_.jp().getPlayerPromise(),2);c=b.yieldResult;(m=_.Y3())&&J.playPauseButtonClientVE&&_.AS(m,J.playPauseButtonClientVE);c.getPlayerState()!==1?c.playVideo():c.pauseVideo();_.tD(b)})};
_.V.computePlayPauseIcon=function(J){return J===2||J===-1||J===5?_.w("web_shorts_modern_controls")?"PLAY_ARROW_DELHI_PLAYER_FILLED":"PLAY_ARROW_FILLED":_.w("web_shorts_modern_controls")?"PAUSE_DELHI_PLAYER_FILLED":_.w("enable_web_delhi_icons")?"PAUSE_FILLED":"miniplayer:shorts-pause"};
_.V.computeFullscreenLabel=function(J){return J?_.CX("FULLSCREEN_EXIT_LABEL"):_.CX("FULLSCREEN_ENTER_LABEL")};
_.V.computePlayPauseLabel=function(J){return J===1||J===3?_.CX("PLAYER_LABEL_PAUSE"):_.CX("PLAYER_LABEL_PLAY")};
_.V.onMuteButtonClick=function(){var J=this,c,m;return _.N(function(b){if(b.nextAddress==1)return _.K(b,_.jp().getPlayerPromise(),2);c=b.yieldResult;(m=_.Y3())&&J.muteButtonClientVE&&_.AS(m,J.muteButtonClientVE);c.isMuted()?c.unMute(!0):c.mute(!0);_.tD(b)})};
_.V.computeMuteIcon=function(J){return J?"miniplayer:volume-off":"miniplayer:volume-up"};
_.V.computeMuteLabel=function(J){return J?_.CX("PLAYER_LABEL_UNMUTE"):_.CX("PLAYER_LABEL_MUTE")};
_.V.onFullscreenButtonClick=function(){var J=_.Y3();J&&(this.fullscreenButtonToggleOffClientVE&&this.isFullscreen?_.AS(J,this.fullscreenButtonToggleOffClientVE):this.fullscreenButtonToggleOnClientVE&&!this.isFullscreen&&_.AS(J,this.fullscreenButtonToggleOnClientVE));document.activeElement instanceof HTMLElement&&document.activeElement.blur();_.ke1()};
_.eE.Object.defineProperties(II.prototype,{playPauseButtonData:{configurable:!0,enumerable:!0,get:function(){var J=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(){J.onPlayPauseButtonClick()},
disableBackdropFilter:this.shortsModernControlsEnabled,customColors:this.shortsModernControlsEnabled?{backgroundColor:"var(--yt-spec-static-overlay-additive-background)"}:{}}}},
fullscreenButtonData:{configurable:!0,enumerable:!0,get:function(){return{disabled:!1,accessibilityLabel:this.computeFullscreenLabel(this.isFullscreen),iconPosition:"icon-only",size:"L",state:"active",style:"overlay-dark",type:"tonal",tooltipText:this.computeFullscreenLabel(this.isFullscreen),disableBackdropFilter:this.shortsModernControlsEnabled,customColors:this.shortsModernControlsEnabled?{backgroundColor:"transparent"}:{}}}},
fullscreenIcon:{configurable:!0,enumerable:!0,get:function(){return this.isFullscreen?_.w("web_shorts_modern_controls")?"player_full_exit_delhi_player":_.w("enable_web_delhi_icons")?"player_full_exit":"screen_full_exit":_.w("web_shorts_modern_controls")?"player_full_enter_delhi_player":_.w("enable_web_delhi_icons")?"SCREEN_FULLSCREEN":"screen_full"}}});
_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],II.prototype,"componentBehavior",void 0);_.O([_.f(_.Ex.YtPlayerListenerBehavior),_.R("design:type",_.vX)],II.prototype,"ytPlayerListenerBehavior",void 0);_.O([_.f(_.fY),_.R("design:type",Object)],II.prototype,"ytdReduxBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],II.prototype,"player",void 0);_.O([_.U(),_.R("design:type",Object)],II.prototype,"playerState",void 0);_.O([_.U(),_.R("design:type",Object)],II.prototype,"isMuted",void 0);
_.O([_.U({computed:"computePlayPauseIcon(playerState)"}),_.R("design:type",String)],II.prototype,"playPauseIcon",void 0);_.O([_.U({computed:"computeMuteIcon(isMuted)"}),_.R("design:type",String)],II.prototype,"muteIcon",void 0);_.O([_.U({selector:_.t3}),_.R("design:type",Boolean)],II.prototype,"isFullscreen",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],II.prototype,"shortsModernControlsEnabled",void 0);
_.O([_.U(),_.R("design:type",Object)],II.prototype,"volumeControlsOrientationState",void 0);_.O([_.U(),_.R("design:type",Object)],II.prototype,"isOverlay",void 0);_.O([_.U(),_.R("design:type",Object)],II.prototype,"captionIconType",void 0);_.O([_.U(),_.R("design:type",Object)],II.prototype,"ariaLabel",void 0);_.O([_.U(),_.R("design:type",Object)],II.prototype,"ariaPressedState",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],II.prototype,"overlayDensity",void 0);
_.O([_.q("playerState"),_.R("design:type",Object),_.R("design:paramtypes",[])],II.prototype,"playPauseButtonData",null);_.O([_.q("isFullscreen"),_.R("design:type",Object),_.R("design:paramtypes",[])],II.prototype,"fullscreenButtonData",null);_.O([_.U(),_.R("design:type",Object)],II.prototype,"onClosedCaptionsButtonClick",void 0);_.O([_.q("isFullscreen"),_.R("design:type",String),_.R("design:paramtypes",[])],II.prototype,"fullscreenIcon",null);
_.v(II,"ytd-shorts-player-controls",function(){if(crs===void 0){var J=document.createElement("template");_.z(J,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts-player-controls--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-button-shape id="play-pause-button-shape" data="[[playPauseButtonData]]" icon-name="[[playPauseIcon]]" class="style-scope ytd-shorts-player-controls">\n</yt-button-shape>\n<template is="dom-if" if="[[shortsModernControlsEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <div id="right-controls" class="style-scope ytd-shorts-player-controls">\n    <desktop-shorts-volume-controls orientation="[[volumeControlsOrientationState]]" class="style-scope ytd-shorts-player-controls"></desktop-shorts-volume-controls>\n    <div id="closed-captioning-button-container" class="style-scope ytd-shorts-player-controls">\n      <ytm-closed-captioning-button aria-label="[[ariaLabel]]" aria-pressed="[[ariaPressedState]]" caption-icon-type="[[captionIconType]]" is-modern="[[shortsModernControlsEnabled]]" is-overlay="[[isOverlay]]" on-click="[[onClosedCaptionsButtonClick]]" class="style-scope ytd-shorts-player-controls">\n      </ytm-closed-captioning-button>\n    </div>\n    <yt-button-shape id="fullscreen-button-shape" data="[[fullscreenButtonData]]" icon-name="[[fullscreenIcon]]" on-click="onFullscreenButtonClick" class="style-scope ytd-shorts-player-controls">\n    </yt-button-shape>\n  </div>\n</template>\n<template is="dom-if" if="[[!shortsModernControlsEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <desktop-shorts-volume-controls class="style-scope ytd-shorts-player-controls"></desktop-shorts-volume-controls>\n  <yt-button-shape id="fullscreen-button-shape" data="[[fullscreenButtonData]]" icon-name="[[fullscreenIcon]]" on-click="onFullscreenButtonClick" class="style-scope ytd-shorts-player-controls">\n  </yt-button-shape>\n</template>\n');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);crs=J}J=crs;return J},{mode:1});var mVS;_.lv(_.fB6,"yt-interstitial-view-model",{props:{data:_.vt}});var bpo=_.Q1(function(J){var c=J.data;return _.C("reel-watch-break-view-model",{class:"reelWatchBreakViewModelHost"},_.C("h1",{class:"reelWatchBreakViewModelHostTitle"},_.C(_.j8,{text:function(){return c().title}})),_.C("h2",{class:"reelWatchBreakViewModelHostBody"},_.C(_.j8,{text:function(){return c().body},
isOverlay:!0})),_.C(_.wi,{data:function(){return c().buttons}},{buttonViewModel:function(m,b){return _.C("div",{class:function(){return b()===0?"reelWatchBreakViewModelHostContinueWatchingButton":"reelWatchBreakViewModelHostGoHomeButton"}},_.C(_.XU,{data:m.data}))}}))},"Mi");
bpo.idomCompat=!0;_.lv(bpo,"reel-watch-break-view-model",{props:{data:_.vt}});var Km=function(){return _.h.apply(this,arguments)||this};
_.D(Km,_.h);Km.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}}};
_.eE.Object.defineProperties(Km.prototype,{isSurvey:{configurable:!0,enumerable:!0,get:function(){var J;return!!_.L((J=this.data)==null?void 0:J.renderer,AnR)}},
isInterstitialViewModel:{configurable:!0,enumerable:!0,get:function(){var J;return!!_.L((J=this.data)==null?void 0:J.renderer,RPf)}}});
_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],Km.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],Km.prototype,"ytComponentBehavior",void 0);_.O([_.f(_.fY),_.R("design:type",Object)],Km.prototype,"ytdReduxBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Km.prototype,"data",void 0);
_.O([_.U({reflectToAttribute:!0}),_.q("data.renderer"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Km.prototype,"isSurvey",null);_.O([_.U({reflectToAttribute:!0}),_.q("data.renderer"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Km.prototype,"isInterstitialViewModel",null);Km=_.O([_.E({is:"ytd-reel-non-video-content-renderer",disableElementRegistration:!0})],Km);
_.v(Km,"ytd-reel-non-video-content-renderer",function(){if(mVS!==void 0)return mVS;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);
return mVS=J},{mode:_.mP("kevlar_poly_si_batch_j028")?1:2});var xVf;_.lv(_.DRu,"desktop-shorts-player-controls",{});var Cm=function(){var J=_.h.apply(this,arguments)||this;J.isPlayerPaused=!1;J.isPlayerStarted=!1;J.showPlayerControls=!1;J.showScrubber=!1;J.autoHideJobId=0;J.modern=_.w("web_button_rework");J.overlayType=_.mG("web_shorts_expanded_overlay_type");J.panelData=void 0;J.isWatchWhileMode=!1;J.hasError=!1;J.panelShowDelayMs=1;J.scrubberComponent={};J.isFullscreen=!1;J.shouldHideOverlay=!1;J.enableAnchoredPanel=_.w("desktop_shorts_v2_anchored_panel");J.enablePersistentAnchoredPanel=_.w("desktop_shorts_v2_persistent_anchored_panel");
J.hideWatchWhilePanel=_.w("web_shorts_hide_watch_while_panel");J.useAspectRatio=_.w("web_use_aspect_ratio");J.isPersistentPanelActive=!1;J.anchoredPanelActive=!1;J.isShortsPipActive=!1;J.smallScreenSqueezeback=!1;J.enableFlexibleOverlay=_.w("web_enable_flexible_overlay");J.overlayDensity=0;J.actionMap={"yt-show-reels-comments-overlay-command":"handleShowReelsCommentsOverlayCommand","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged"};J.onWindowResized=function(){_.hO(J,
"calculateOverlayDensity",function(){J.calculateOverlayDensity()},100)};
return J};
_.D(Cm,_.h);_.V=Cm.prototype;_.V.updateShouldHideOverlay=function(){this.shouldHideOverlay=this.isActive&&this.hasError};
_.V.onScrubberDataChange=function(){this.shouldRenderScrubber?this.scrubberComponent={desktopShortsPlayerControls:{}}:this.scrubberComponent={}};
_.V.onEngagementPanelsChanged=function(){if(this.watchWhileEngagementPanels)if(this.isActive){if(this.panelData=this.watchWhileEngagementPanels,this.isActive){var J=_.BG().resolve(_.Tr);this.isWatchWhileMode&&(_.w("web_enable_shorts_new_carousel")?_.ft.addJob(function(){J.showPanel("shorts-comments-panel",void 0,void 0,void 0,null)},0):J.showPanel("shorts-comments-panel",void 0,void 0,void 0,null))}}else this.panelData=void 0};
_.V.handleShowReelsCommentsOverlayCommand=function(J){J=_.L(J,ePR);this.isActive&&(J==null?0:J.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))};
_.V.updateEngagementPanelVisibility=function(J,c){J&&this.ytComponentBehavior.resolveCommand({changeEngagementPanelVisibilityAction:{visibility:c?"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED":"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",targetId:J}})};
_.V.detached=function(){this.panelData=this.watchWhileEngagementPanels=void 0;this.isWatchWhileMode=!1;(this.enableFlexibleOverlay||this.enableFormatFirst)&&window.removeEventListener("resize",this.onWindowResized)};
_.V.handleEngagementPanelVisibilityChanged=function(){this.isActive&&!this.enablePersistentAnchoredPanel&&(_.BG().resolve(_.NH).watchWhileIndices.has(this.index)?this.anchoredPanelActive=!0:this.anchoredPanelActive=!1)};
_.V.handleWatchWhilePanelScrimClick=function(){var J=_.BG().resolve(_.Tr);this.activeWatchWhilePanel&&(J.hidePanel(this.activeWatchWhilePanel),this.isWatchWhileMode=!1,this.activeWatchWhilePanel=void 0)};
_.V.attached=function(){this.isFirstReel()&&this.handlePlayerClick();if(this.enableFlexibleOverlay||this.enableFormatFirst)window.addEventListener("resize",this.onWindowResized),this.calculateOverlayDensity()};
_.V.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:_.w("web_enable_shorts_new_carousel")?0:void 0}}};
_.V.handlePlayerClick=function(J){var c=this,m,b;if((b=(m=window).matchMedia)!=null&&b.call(m,"(any-pointer: coarse)").matches||!J)this.showPlayerControls=!0,_.ft.cancelJob(this.autoHideJobId),this.autoHideJobId=_.rv(_.ft,function(){c.showPlayerControls=!1},4E3)};
_.V.isFirstReel=function(){return this.index===0};
_.V.handleMouseenter=function(){_.ft.cancelJob(this.autoHideJobId);this.showPlayerControls=!0};
_.V.handleMouseleave=function(){this.isPlayerPaused||(this.showPlayerControls=!1)};
_.V.handleScrubberEnter=function(){this.showScrubber=!0};
_.V.handleScrubberLeave=function(){this.showScrubber=!1};
_.V.maybeLogNonDefaultAspectRatio=function(){var J;(J=this.data)!=null&&J.thumbnail&&this.isActive&&.5625!==woR(this.data.thumbnail)&&_.$W3("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO")};
_.V.calculateOverlayDensity=function(){if(this.enableFlexibleOverlay||this.enableFormatFirst){var J=document.querySelector("#shorts-container");if(J){J=J.offsetWidth/2-this.playerContainer.offsetWidth/2;J=J>=368?1:J>=72?0:2;this.enableFormatFirst&&!this.enableFlexibleOverlay&&J===1&&(J=0);this.isPersistentPanelActive&&(J=0);window.innerWidth<=599&&(J=2);this.overlayDensity=J;var c;(c=this.onOverlayDensityChanged)==null||c.call(this,this.index,this.overlayDensity)}}};
_.V.onOverlayDensityChange=function(){var J;(J=this.onOverlayDensityChanged)==null||J.call(this,this.index,this.overlayDensity);(J=_.Bj(this.hostElement).querySelector("ytd-reel-player-overlay-renderer"))&&J.set("overlayDensity",this.overlayDensity);if(J=this.hostElement.querySelector("reels-player-overlay-layout-view-model"))J.overlayDensity=this.overlayDensity};
_.V.isVideoContent=function(J){_.BG().resolve(_.NH);return!!_.L(J,_.kb)};
_.V.isNonVideoContent=function(J){_.BG().resolve(_.NH);return!!_.L(J,_.W3)};
_.V.closeInactiveWatchWhilePanel=function(){this.activeWatchWhilePanel&&this.isWatchWhileMode&&this.updateEngagementPanelVisibility(this.activeWatchWhilePanel,!1)};
_.eE.Object.defineProperties(Cm.prototype,{enableFormatFirst:{configurable:!0,enumerable:!0,get:function(){var J,c;return _.w("web_enable_format_first")||((J=this.data)==null?void 0:J.adsOverlay)&&_.w("web_enable_format_first_ads_only")||((c=this.data)==null?void 0:c.reelPlayerOverlayRenderer)&&_.w("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 J;return!this.isActive||!this.isPlayerStarted||(J=this.data)!=null&&J.adsOverlay?!1:!0}},
overlayComponent:{configurable:!0,enumerable:!0,get:function(){var J;if(((J=this.data)==null?0:J.command)&&this.isVideoContent(this.data.command)){var c,m;if(((c=this.data)==null?0:c.adsOverlay)&&Object.keys((m=this.data)==null?void 0:m.adsOverlay).length>0)return{adsOverlay:this.data.adsOverlay};var b,x;if(((b=this.data)==null?0:b.reelPlayerOverlayRenderer)&&Object.keys((x=this.data)==null?void 0:x.reelPlayerOverlayRenderer).length>0)return{reelPlayerOverlayRenderer:this.data.reelPlayerOverlayRenderer}}return{}}}});
Cm.prototype.onOverlayDensityChange=Cm.prototype.onOverlayDensityChange;Cm.prototype.calculateOverlayDensity=Cm.prototype.calculateOverlayDensity;Cm.prototype.maybeLogNonDefaultAspectRatio=Cm.prototype.maybeLogNonDefaultAspectRatio;Cm.prototype.onEngagementPanelsChanged=Cm.prototype.onEngagementPanelsChanged;Cm.prototype.onScrubberDataChange=Cm.prototype.onScrubberDataChange;Cm.prototype.updateShouldHideOverlay=Cm.prototype.updateShouldHideOverlay;
_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],Cm.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],Cm.prototype,"ytComponentBehavior",void 0);_.O([_.f(_.SO.YtdGuideStateAwareBehavior),_.R("design:type",Object)],Cm.prototype,"ytdGuideStateAwareBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Cm.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Number)],Cm.prototype,"index",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],Cm.prototype,"isActive",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],Cm.prototype,"isHiddenInDom",void 0);_.O([_.U(),_.R("design:type",Object)],Cm.prototype,"isPlayerPaused",void 0);_.O([_.U({selector:sZ1}),_.R("design:type",Object)],Cm.prototype,"isPlayerStarted",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Cm.prototype,"showPlayerControls",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Cm.prototype,"showScrubber",void 0);_.O([_.U(),_.R("design:type",Object)],Cm.prototype,"autoHideJobId",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Cm.prototype,"modern",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Cm.prototype,"overlayType",void 0);_.O([_.f(_.fY),_.R("design:type",Object)],Cm.prototype,"ytdReduxBehavior",void 0);
_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],Cm.prototype,"ytActionHandlerBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Cm.prototype,"watchWhileEngagementPanels",void 0);_.O([_.U(),_.R("design:type",Object)],Cm.prototype,"panelData",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Cm.prototype,"isWatchWhileMode",void 0);_.O([_.U(),_.R("design:type",String)],Cm.prototype,"activeWatchWhilePanel",void 0);
_.O([_.U(),_.R("design:type",Object)],Cm.prototype,"hasError",void 0);_.O([_.U(),_.R("design:type",Object)],Cm.prototype,"panelShowDelayMs",void 0);_.O([_.U(),_.R("design:type",Object)],Cm.prototype,"scrubberComponent",void 0);_.O([_.U({selector:_.t3,reflectToAttribute:!0}),_.R("design:type",Object)],Cm.prototype,"isFullscreen",void 0);_.O([_.U(),_.R("design:type",Object)],Cm.prototype,"shouldHideOverlay",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Cm.prototype,"enableAnchoredPanel",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Cm.prototype,"enablePersistentAnchoredPanel",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Cm.prototype,"hideWatchWhilePanel",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Cm.prototype,"useAspectRatio",void 0);
_.O([_.U({selector:_.woT,reflectToAttribute:!0}),_.R("design:type",Object)],Cm.prototype,"isPersistentPanelActive",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Cm.prototype,"anchoredPanelActive",void 0);_.O([_.U({selector:_.Ig,reflectToAttribute:!0}),_.R("design:type",Object)],Cm.prototype,"isShortsPipActive",void 0);_.O([_.U({selector:rn5,reflectToAttribute:!0}),_.R("design:type",Object)],Cm.prototype,"smallScreenSqueezeback",void 0);
_.O([_.U({reflectToAttribute:!0}),_.q("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.R("design:type",Object),_.R("design:paramtypes",[])],Cm.prototype,"enableFormatFirst",null);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Cm.prototype,"enableFlexibleOverlay",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Cm.prototype,"overlayDensity",void 0);_.O([_.U(),_.R("design:type",Function)],Cm.prototype,"onOverlayDensityChanged",void 0);
_.O([_.U(),_.q("isActive","hasError"),_.R("design:type",Object),_.R("design:paramtypes",[])],Cm.prototype,"shouldRenderPlayerElements",null);_.O([_.U(),_.q("isActive","isWatchWhileMode"),_.R("design:type",Object),_.R("design:paramtypes",[])],Cm.prototype,"watchWhileOrPersistentActive",null);_.O([_.NE("isActive","hasError","showingExpandedOverlay"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Cm.prototype,"updateShouldHideOverlay",null);
_.O([_.U({reflectToAttribute:!0}),_.q("isActive","isPlayerStarted","data"),_.R("design:type",Object),_.R("design:paramtypes",[])],Cm.prototype,"shouldRenderScrubber",null);_.O([_.NE("shouldRenderScrubber"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Cm.prototype,"onScrubberDataChange",null);_.O([_.q("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.R("design:type",Object),_.R("design:paramtypes",[])],Cm.prototype,"overlayComponent",null);
_.O([_.NE("watchWhileEngagementPanels"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Cm.prototype,"onEngagementPanelsChanged",null);_.O([_.Iu("#player-container"),_.R("design:type",HTMLElement)],Cm.prototype,"playerContainer",void 0);_.O([_.Iu("#cinematic-container"),_.R("design:type",HTMLElement)],Cm.prototype,"cinematicContainer",void 0);
_.O([_.NE("isPersistentPanelActive","data.thumbnail"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Cm.prototype,"maybeLogNonDefaultAspectRatio",null);_.O([_.NE("isPersistentPanelActive"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Cm.prototype,"calculateOverlayDensity",null);_.O([_.NE("overlayDensity"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Cm.prototype,"onOverlayDensityChange",null);
Cm=_.O([_.E({is:"ytd-reel-video-renderer",disableElementRegistration:!0})],Cm);
_.v(Cm,"ytd-reel-video-renderer",function(){if(xVf!==void 0)return xVf;var J=document.createElement("template");_.z(J,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="short-video-container style-scope ytd-reel-video-renderer" id="short-video-container" hidden="[[!isVideoContent(data.command)]]">\n  <div id="sticker-layer" class="sticker-layer style-scope ytd-reel-video-renderer"></div>\n  <div id="cinematic-container" class="cinematic-container style-scope ytd-reel-video-renderer"></div>\n  <div class="player-wrapper style-scope ytd-reel-video-renderer">\n    <div id="player-container" class="player-container style-scope ytd-reel-video-renderer" on-click="handlePlayerClick" on-mouseenter="handleMouseenter" on-mouseleave="handleMouseleave">\n      <div class="pip-blur-filter style-scope ytd-reel-video-renderer" hidden="[[!isShortsPipActive]]"></div>\n          <template is="dom-if" if="[[shouldRenderPlayerElements]]" restamp="" class="style-scope ytd-reel-video-renderer">\n            <div class="player-controls style-scope ytd-reel-video-renderer">\n              <ytd-shorts-player-controls disable-upgrade="[[!isActive]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-video-renderer"></ytd-shorts-player-controls>\n            </div>\n          </template>\n    </div>\n    <div id="scrubber" on-mouseenter="handleScrubberEnter" on-mouseleave="handleScrubberLeave" class="style-scope ytd-reel-video-renderer">\n    </div>\n  </div>\n</div>\n<div id="experiment-overlay" class="overlay style-scope ytd-reel-video-renderer"></div>\n<template is="dom-if" if="[[isNonVideoContent(data.command)]]" class="style-scope ytd-reel-video-renderer">\n  <ytd-reel-non-video-content-renderer data="[[data.reelNonVideoContentRenderer]]" class="style-scope ytd-reel-video-renderer">\n  </ytd-reel-non-video-content-renderer>\n</template>\n');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return xVf=J},{mode:_.mP("kevlar_poly_si_batch_j028")?1:2});var aI=function(){var J=_.h.apply(this,arguments)||this;J.isPreviousPageShorts=!1;J.index=0;J.delayedActiveIndex=0;J.playablePreviousIndex=null;J.isPlayerPaused=!1;J.isPlayerStarted=!1;J.intersectionObserverThreshold=.6;J.fitToVisibleBounds=!1;J.pageSubtype="shorts";J.enablePreviousContinuation=_.w("shorts_in_playlists_web");J.shortsPipEnabled=_.w("web_shorts_pip");J.isDark=document.documentElement.hasAttribute("dark");J.shortsViewTransitions=_.w("web_shorts_view_transitions");J.isFullscreen=!1;J.isShortsPipActive=
!1;J.buttonOverride={iconPosition:"icon-only",size:"XL"};J.anchoredPanelActive=!1;J.isActive=!1;J.smallScreenPersistentPanel=!1;J.isPersistentPanelActive=!1;J.smallScreenSqueezeBack=!1;J.enableScrollIntoViewCenter=_.w("web_scroll_into_view_center");J.formatFirst=_.w("web_enable_format_first")||_.w("web_enable_format_first_ads_only")||_.w("web_enable_format_first_organic_only");J.enableFlexibleOverlay=_.w("web_enable_flexible_overlay");J.useAspectRatio=_.w("web_use_aspect_ratio");J.isShortsInitialized=
!1;J.hidePreviousButtonImmediately=!1;J.showPreviousButtonImmediately=!1;J.endOfNextContinuation=!1;J.currentPlayerIndex=0;J.nextReelVe=_.rs(56921);J.prevReelVe=_.rs(56922);J.loopToggleOffVe=_.rs(198013);J.loopToggleOnVe=_.rs(198014);J.ambientModeToggleVe=_.rs(227860);J.reelPlayerPausedStateRendererVe=_.rs(141313);J.storedPlaybackSpeed=null;J.actionMap={"yt-append-reel-watch-sequence-continuation-entries-action":"processAppendReelWatchSequenceContinuationEntriesAction","yt-reel-navigate-command":"handleReelNavigateCommand",
"yt-reel-non-video-content-dismissal-command":"processReelNonVideoContentDismissalCommand","yt-signal-action-toggle-cinematic-shorts-on":"handleSignalActionToggleCinematicShortsOn","yt-signal-action-toggle-cinematic-shorts-off":"handleSignalActionToggleCinematicShortsOff","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged","yt-signal-action-toggle-loop-shorts-on":"handleSignalActionToggleLoopShortsOn","yt-signal-action-toggle-loop-shorts-off":"handleSignalActionToggleLoopShortsOff",
"yt-miniplayer-navigate-shorts":"handleMiniplayerNavigateShorts","yt-signal-action-toggle-shorts-picture-in-picture":"handleSignalActionToggleShortsPictureInPicture"};J.onOverlayDensityChanged=function(c,m){var b;(b=J.getActiveReelVideo(c))==null||b.setAttribute("overlay-density",String(m))};
return J};
_.D(aI,_.h);_.V=aI.prototype;
_.V.deflateInactivePreviousSlides=function(){var J=_.c7("web_shorts_deflate_inactive_slides_aggressive_distance");if(J>0&&this.shortsProcessedSequence&&this.activeIndex){J=this.activeIndex-J;for(var c=0;c<=J;c++){var m=void 0;((m=this.shortsProcessedSequence[c].reelPlayerOverlayRenderer)==null?0:m.metapanel)&&this.set("shortsProcessedSequence."+c+".reelPlayerOverlayRenderer",{});m=void 0;((m=this.shortsProcessedSequence[c].adsOverlay)==null?0:m.adSlotMetadata)&&this.set("shortsProcessedSequence."+c+
".adsOverlay",{})}}};
_.V.calculateIsSmallWidth=function(){return window.innerWidth<=599};
_.V.onResize=function(){var J=_.Rc(),c=J.dispatch,m=this.calculateIsSmallWidth();c.call(J,_.J7({type:"SET_IS_DESKTOP_SMALL_WIDTH",payload:{isDesktopSmallWidth:m}}));this.updateBackNavContainerWidth();this.calculateSqueezebackPanelSize()};
_.V.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:_.w("web_enable_shorts_new_carousel")?0:void 0},anchoredEngagementPanels:{id:"anchored-panel",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatchWhilePanel:!0,shortsPanel:!0}}},renderPriority:0}}};
_.V.updateBackNavContainerWidth=function(){if(this.player&&this.backNavButton){var J=(this.hostElement.clientWidth-this.shortsInnerContainer.clientWidth)/2,c=J,m=0;J<250&&(c=J+this.shortsInnerContainer.clientWidth,m=24);_.V1(this.hostElement,{"--ytd-shorts-header-width":c+"px","--ytd-shorts-top-spacing":m+"px"})}};
_.V.isFirstShorts=function(J){return J?this.index===-J.length:this.index===0};
_.V.isActiveReel=function(J,c,m){m&&(c=this.calculatePrevIndex(c,m));return J===c};
_.V.onFullscreenChange=function(){if(_.w("web_fullscreen_shorts")){var J;(J=this.getActiveReelVideo(this.activeIndex))==null||J.scrollIntoView({behavior:"instant",block:"nearest",inline:this.enableScrollIntoViewCenter?"center":"start"});this.isFullscreen&&this.isShortsPipActive&&_.BG().resolve(_.Uo).close(!0)}};
_.V.engagementPanelsChanged=function(){var J;this.watchWhileEngagementPanels=(J=this.data)==null?void 0:J.engagementPanels};
_.V.unregisterPanels=function(){var J=_.BG().resolve(_.Tr);if(this.watchWhileEngagementPanels)for(var c=_.M(this.watchWhileEngagementPanels),m=c.next();!m.done;m=c.next()){var b=void 0,x=void 0;m=(b=m.value.engagementPanelSectionListRenderer)==null?void 0:(x=b.identifier)==null?void 0:x.tag;J&&m&&J.panelMap.delete(m)}};
_.V.isVideoContent=function(J){return this.isVideoContentCommand(J==null?void 0:J.command)};
_.V.getActiveReelVideo=function(J){return _.Bj(this.hostElement).querySelector('.reel-video-in-sequence-new[id="'+J+'"]')};
_.V.calculatePrevIndex=function(J,c){return c?J-((c==null?void 0:c.length)||0):-1};
_.V.onKeydown=function(J){var c=_.OT(J)||[];if(!_.CN1(c))if(J.code==="ArrowUp")J.preventDefault(),this.handlePrevButtonClick();else if(J.code==="ArrowDown")J.preventDefault(),this.handleNextButtonClick();else if(J.code==="KeyM")this.toggleMuteUnmuteVideo();else if(J.code==="KeyK"||J.code==="Space")this.togglePlayPauseVideo();else if((J.code==="KeyA"||J.code==="ArrowLeft")&&_.w("web_shorts_keyboard_enable_seek_shortcuts")){var m;(m=this.player)==null||m.seekBy(-5)}else if((J.code==="KeyD"||J.code===
"ArrowRight")&&_.w("web_shorts_keyboard_enable_seek_shortcuts")&&this.player&&this.player.getDuration()>this.player.getCurrentTime()+6){var b;(b=this.player)==null||b.seekBy(5)}};
_.V.onServiceRequestCompleted=function(J,c){J=c.data;J.continuationEndpoint&&J.entries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{entries:J.entries,continuationEndpoint:J.continuationEndpoint}}):J.prevContinuationEndpoint&&J.prevEntries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{prevEntries:J.prevEntries,prevContinuationEndpoint:J.prevContinuationEndpoint}}):this.shortsProcessedSequence&&
this.index>0&&(this.endOfNextContinuation=!0)};
_.V.handleEngagementPanelVisibilityChanged=function(J,c){var m=_.BG().resolve(_.Tr);if(J&&m){var b,x=((b=J.identifier)==null?void 0:b.tag)||J.panelIdentifier||J.targetId;if(c==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")if(this.anchoredPanelActive&&this.activePanel!==x){m.hidePanel(this.activePanel);var P;this.activePanel=((P=J.identifier)==null?void 0:P.tag)||J.panelIdentifier}else this.isPersistentPanelActive=!0,_.Rc().dispatch(hPR(!0)),this.anchoredPanelActive=!0,this.activePanel=x;else c==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&
this.activePanel===x&&(this.isPersistentPanelActive=this.anchoredPanelActive=!1,_.Rc().dispatch(hPR(!1)))}};
_.V.handlePanelScrimClick=function(){var J=_.BG().resolve(_.Tr);this.activePanel&&(J.hidePanel(this.activePanel),_.Rc().dispatch(hPR(!1)))};
_.V.getShortsLoopSetting=function(){var J,c,m,b,x;return _.N(function(P){switch(P.nextAddress){case 1:return _.w("kevlar_shorts_auto_advance")?_.K(P,_.H$.getInstance(),2):P.return(!0);case 2:return(J=P.yieldResult)?_.K(P,J.get("sfvles"),3):P.return(!0);case 3:return m=(c=P.yieldResult)!=null?c:!1,_.K(P,J.get("sfvle"),4);case 4:return x=(b=P.yieldResult)!=null?b:!0,m?P.return(x):P.return(!0)}})};
_.V.handleSignalActionToggleLoopShortsOff=function(){var J=this,c,m,b;return _.N(function(x){switch(x.nextAddress){case 1:if(!J.player)return x.return();J.player.setLoopVideo(!1);c=_.C7();_.mn(c,J.loopToggleOffVe);return _.K(x,_.H$.getInstance(),2);case 2:return(m=x.yieldResult)?_.K(x,m.set("sfvle",!1),3):x.return();case 3:return _.K(x,m.set("sfvles",!0),4);case 4:b=_.HA(),_.iJ(0,203,!1),_.iJ(0,204,!0),b.save(),_.tD(x)}})};
_.V.handleSignalActionToggleLoopShortsOn=function(){var J=this,c,m,b;return _.N(function(x){switch(x.nextAddress){case 1:if(!J.player)return x.return();J.player.setLoopVideo(!0);c=_.C7();_.mn(c,J.loopToggleOnVe);return _.K(x,_.H$.getInstance(),2);case 2:return(m=x.yieldResult)?_.K(x,m.set("sfvle",!0),3):x.return();case 3:return _.K(x,m.set("sfvles",!0),4);case 4:b=_.HA(),_.iJ(0,203,!0),_.iJ(0,204,!0),b.save(),_.tD(x)}})};
_.V.handleSignalActionToggleCinematicShortsOn=function(){TjF(!0);var J;(J=this.JSC$19725_cinematicController)==null||_.kl4(J,!0);_.mn(_.C7(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!1}})};
_.V.handleSignalActionToggleCinematicShortsOff=function(){TjF(!1);var J;(J=this.JSC$19725_cinematicController)==null||_.kl4(J,!1);_.mn(_.C7(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!0}})};
_.V.toggleMuteUnmuteVideo=function(){this.player&&(this.player.isMuted()?this.player.unMute():this.player.mute())};
_.V.togglePlayPauseVideo=function(){this.player&&(this.player.getPlayerState()===1?this.player.pauseVideo():this.player.getPlayerState()===2&&this.player.playVideo())};
_.V.unhideCurrentOverlay=function(){if(this.overlayContainer){var J=this.overlayContainer.querySelector("#experiment-overlay");J&&_.ft.addLowPriorityJob(function(){J.style.display="unset"},100)}};
_.V.getCurrentShort=function(){if(this.currentEndpoint){var J=this.currentEndpoint;if(this.isNonVideoContentCommand(J)){var c=_.L(J,_.W3);return{reelNonVideoContentRenderer:_.L(c==null?void 0:c.renderer,_.i_z),command:J}}if(this.data){var m;c=(m=_.L(this.currentEndpoint,_.kb))==null?void 0:m.thumbnail;var b;m=(b=this.data.overlay)==null?void 0:b.reelPlayerOverlayRenderer;_.BG().resolve(_.NH);J=this.data;var x,P;b=(x=J.overlay)==null?void 0:(P=x.shortsAdsRenderer)==null?void 0:P.adSlots;if(b!==void 0)b.length===
0?(_.yG("Shorts ads returned no ad slots."),J=void 0):(b.length>1&&_.yG("Shorts ads has more than one ad slots."),J=_.L(b[0],_.liB));else{var p,t;J=_.L((p=J.overlay)==null?void 0:(t=p.shortsAdsRenderer)==null?void 0:t.overlay,_.liB)}p=J;J=Object.assign({},this.currentEndpoint,{reelWatchEndpoint:Object.assign({},_.L(this.currentEndpoint,_.kb),{sequenceParams:void 0,sequenceProvider:void 0,racyCheckOk:void 0,contentCheckOk:void 0})});return{reelPlayerOverlayRenderer:m,thumbnail:c,command:J,adsOverlay:p}}}};
_.V.created=function(){var J=this;this.scrollToVideoThrottle=new _.FU(function(c){var m;(m=J.getActiveReelVideo(c))==null||m.scrollIntoView({behavior:"smooth",block:"nearest",inline:J.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.transitionToVideoThrottle=new _.FU(function(c){var m;(m=J.getActiveReelVideo(c))==null||m.scrollIntoView({behavior:"auto",block:"nearest",inline:J.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.maybeCreateIntersectionObserver()};
_.V.onScroll=function(){this.scrollToVideoThrottle.fire(this.index)};
_.V.attached=function(){var J=this;U5u(this);this.pageScrollElement=_.Bj(this.hostElement).querySelector("#shorts-container");document.addEventListener("yt-shorts-reset",_.ME(this,this.processResetAction));_.w("web_reels_min_height_adjustment")&&this.hostElement.style.setProperty("--ytd-reels-min-height","460px");_.w("web_fullscreen_shorts")&&window.ResizeObserver&&!this.resizeObserver&&(this.resizeObserver=this.onResizeFinished(this.shortsContainer,function(){var c=J.getActiveReelVideo(J.activeIndex);
J.maybeCreateIntersectionObserver();c==null||c.scrollIntoView({behavior:"instant",block:"nearest",inline:J.enableScrollIntoViewCenter?"center":"start"});J.shortsContainer.style.overflowY="scroll"}))};
_.V.calculateSqueezebackPanelSize=function(){var J=this,c=window.innerWidth-456-(window.innerHeight-106)*.5625;_.ft.addLowPriorityJob(function(){c<360?_.Rc().dispatch(d55(!0)):(J.hostElement.style.setProperty("--anchored-panel-width",Math.min(c,480)+"px"),_.Rc().dispatch(d55(!1)))})};
_.V.detached=function(){var J=_.BG().resolve(_.NH);J.rootElement=void 0;var c;(c=J.unsubscribeFromStore)==null||c.call(J);J.unsubscribeFromStore=void 0;document.removeEventListener("yt-shorts-reset",_.ME(this,this.processResetAction));this.intersectionObserver=this.resizeObserver=void 0};
_.V.onResizeFinished=function(J,c){var m=this,b=new ResizeObserver(function(){m.shortsContainer.style.overflowY="hidden";_.ft.addLowPriorityJob(function(){c()},100)});
b.observe(J);return b};
_.V.resetDocumentScrollTop=function(){var J,c;if((J=document)==null?0:(c=J.scrollingElement)==null?0:c.scrollTop)document.scrollingElement.scrollTop=0};
_.V.loadPage_=function(J){var c=this;this.resetDocumentScrollTop();if(this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint))this.data=this.playerData=void 0;else if(this.initCsi(),this.updateTitle(this.playerData),J){var m;if((m=_.L(this.currentEndpoint,_.kb))==null?0:m.sequenceParams)this.index=0,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index);this.data=J;this.isPlayerStarted?this.handleOnPlaybackCommand():this.afterPlayerStarted=function(){c.isPlayerStarted&&
(c.handleOnPlaybackCommand(),c.afterPlayerStarted=function(){})};
this.registerPanel(J)}};
_.V.afterPlayerStarted=function(){};
_.V.handleOnPlaybackCommand=function(){if(_.w("web_shorts_comment_stickers")&&this.isPlayerStarted){var J,c=(J=_.L(this.currentEndpoint,_.kb))==null?void 0:J.onPlaybackCommand;c&&this.ytComponentBehavior.resolveCommand(c)}};
_.V.maybeCreateIntersectionObserver=function(){var J=this,c=this.calculateIntersectionObserverThreshold();if(!this.intersectionObserver||this.intersectionObserverThreshold!==c){this.intersectionObserverThreshold=c;var m={rootMargin:"0px",threshold:c},b;(b=this.intersectionObserver)==null||b.disconnect();this.intersectionObserver=new IntersectionObserver(function(x){x=_.M(x);for(var P=x.next();!P.done;P=x.next())if(P=P.value,P.intersectionRatio>c){P=Number(P.target.id);if(isNaN(P))break;if(P===J.index)break;
_.Vzo();J.loadVideo(P);_.Zu("r_vtc")}},m);
this.observeShorts()}};
_.V.observeShorts=function(){var J=[].concat(_.L6(_.Bj(this.hostElement).querySelectorAll(".reel-video-in-sequence-new")));J=_.M(J);for(var c=J.next();!c.done;c=J.next()){c=c.value;var m=void 0;(m=this.intersectionObserver)==null||m.observe(c)}};
_.V.initCsi=function(){_.LT("reel_watch","pbs pbp pbu r_vtc r_tr cpt".split(" "));var J={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"}},c,m;if((c=this.playerData)==null?0:(m=c.cacheMetadata)==null?0:m.isCacheHit)J.isCacheHit=!0;var b;if(c=(b=_.L(this.currentEndpoint,_.kb))==null?void 0:
b.prefetchTaskId)J.prefetchInfo={taskId:c};_.uJ(J)};
_.V.isAd=function(){var J,c;return!!((J=_.L(this.currentEndpoint,_.kb))==null?0:(c=J.adClientParams)==null?0:c.isAd)};
_.V.getPlayer=function(){this.$||this._enableProperties();return this.playerElement};
_.V.getPlayerContainer=function(){var J;return(J=_.Bj(this.hostElement).querySelector("ytd-reel-video-renderer"))==null?void 0:J.playerContainer};
_.V.onPlayerStateChange=function(J){var c=this;this.isPlayerPaused=J===2;J!==1&&this.isShortPlayable()||this.currentPlayerIndex===this.index?J===1&&this.index===0&&(this.isPlayerStarted||_.Rc().dispatch(xj(!0))):(this.movePlayerToVideo(this.index),this.isPlayerStarted||_.Rc().dispatch(xj(!0)));this.player&&!this.player.getLoopVideo()&&_.ft.addLowPriorityJob(function(){c.getShortsLoopSetting().then(function(m){var b;(b=c.player)==null||b.setLoopVideo(m)})});
this.isPlayerPaused&&_.w("web_shorts_paused_state_logging")&&_.vA(_.Y3(),[this.reelPlayerPausedStateRendererVe])};
_.V.isInBackground=function(){var J=window.document.visibilityState;return!(!J||J==="visible")};
_.V.isShortPlayable=function(){if(_.w("kevlar_playable_short_killswitch"))return!0;var J;return(J=this.playerData)!=null&&J.playabilityStatus?this.playerData.playabilityStatus.status==="OK":!1};
_.V.setNormalPlaybackSpeed=function(){var J=this,c,m;return _.N(function(b){if(b.nextAddress==1)return _.K(b,J.getPlayer().getPlayerPromise(),2);c=b.yieldResult;m=c.getPlaybackRate();m!==1&&(J.storedPlaybackSpeed=m,c.setPlaybackRate(1));_.tD(b)})};
_.V.restorePlaybackSpeed=function(){var J=this,c;return _.N(function(m){if(m.nextAddress==1)return J.storedPlaybackSpeed===null?m.jumpTo(0):_.K(m,J.getPlayer().getPlayerPromise(),3);c=m.yieldResult;c.setPlaybackRate(J.storedPlaybackSpeed);J.storedPlaybackSpeed=null;_.tD(m)})};
_.V.playerDataChanged=function(){var J=this,c,m,b,x,P,p,t,I,a;return _.N(function(k){if(k.nextAddress==1){c=J.getPlayer();_.w("web_shorts_dynamic_intersection_observer_threshold")&&((m=J.intersectionObserver)==null||m.disconnect());if(J.playerData){if(((b=J.playerData.videoDetails)==null?void 0:b.videoId)!==((x=c.getPlayer())==null?void 0:x.getVideoData().video_id)){P={};if(p=_.L(J.currentEndpoint,_.kb))P.watch_endpoint=p,p.endTimeSeconds&&(P.end=p.endTimeSeconds);c.loadVideoWithPlayerResponse(J.playerData,
P)}}else return k.return();return J.player?k.jumpTo(2):_.K(k,c.getPlayerPromise(),3)}k.nextAddress!=2&&(J.player=k.yieldResult,J.JSC$19725_playerStateChangeListener=J.onPlayerStateChange.bind(J),J.player.addEventListener("onStateChange",J.JSC$19725_playerStateChangeListener),_.w("kevlar_client_enable_shorts_player_bootstrap")&&_.og(),J.scrollToVideoThrottle.fire(J.index),J.movePlayerToVideo(J.index),_.ft.addLowPriorityJob(function(){J.getShortsLoopSetting().then(function(H){var T;(T=J.player)==null||
T.setLoopVideo(H)})}),_.mGB.resolve(J.player),J.player.syncVolume(),J.getPlayer().focusOnPlayer());
_.w("web_shorts_caption_language_entity_killswitch")||_.ft.addLowPriorityJob(function(){var H=_.BG().resolve(_.NH),T,r=(T=J.player)==null?void 0:T.getOption("captions","track");T=_.V_("/youtube/app/player_caption_language_entity_key","stringEntity",2);if(r){var W,Y=(W=_.tT(_.F2r,T)())==null?void 0:W.value,Z;W=typeof(r==null?void 0:r.translationLanguage)==="object"&&((Z=r.translationLanguage)==null?void 0:Z.languageName)||r.displayName||"";Y!==W&&H.store.dispatch(_.It("stringEntity",T,{key:T,value:W.toString()}))}else H.store.dispatch(_.It("stringEntity",
T,{key:T,value:"CAPTIONS_UNAVAILABLE"}))});
_.ft.addLowPriorityJob(function(){J.observeShorts()},100);
t=J.player.getPlayerState(J.player.getPresentingPlayerType());t!==1||J.isPlayerStarted||_.Rc().dispatch(xj(!0));J.updateBackNavContainerWidth();I=_.L(J.currentEndpoint,_.kb);((a=I)==null?0:a.startTimeSeconds)&&J.player.seekTo(I.startTimeSeconds);if(J.JSC$19725_cinematicController||J.cinematicsInitializeJobId)return k.return();J.cinematicsInitializeJobId=_.ft.addLowPriorityJob(function(){J.initCinematicController();J.cinematicsInitializeJobId=void 0});
_.tD(k)})};
_.V.onShortUndoDismiss=function(){var J=this,c=Sjh().pop();c!==void 0&&(_.o3(this,function(){J.showCardWithIndex(c)}),this.playablePreviousIndex=this.getPlayablePreviousIndex())};
_.V.onShortsDismiss=function(J){if(J=J.detail.reelDismissalActionRenderer)(J=_.L(J.onDismissalCompletionRenderer,_.Qoo))&&this.ytComponentBehavior.resolveCommand({openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:J}}}),this.scrollAndDismissCard()};
_.V.processReelNonVideoContentDismissalCommand=function(J){var c=this;this.activeDimissalTimeout&&(clearTimeout(this.activeDimissalTimeout),this.activeDimissalTimeout=void 0);J=_.L(J,QZs);this.activeDimissalTimeout=setTimeout(function(){c.scrollAndDismissCard()},Number(J==null?void 0:J.delayMs))};
_.V.scrollAndDismissCard=function(){var J=this,c=this.index;Sjh().push(c);_.o3(this,function(){var m=J.getPlayableNextIndex();m!==null&&(m=J.getActiveReelVideo(m),J.hideCardWithIndex(c),m==null||m.scrollIntoView({behavior:"smooth",block:"nearest",inline:J.enableScrollIntoViewCenter?"center":"start"}))})};
_.V.hideCardWithIndex=function(J){if(J=this.getActiveReelVideo(J))J.hidden=!0};
_.V.showCardWithIndex=function(J){if(J=this.getActiveReelVideo(J))J.hidden=!1};
_.V.onActiveChanged=function(){this.activeChanged(this.ytPageBehavior.active)};
_.V.activeChanged=function(J){_.Rc().dispatch(_.J7({type:"SET_IS_SHORTS_ACTIVE",payload:{isShortsActive:J}}));if(J)document.addEventListener("keydown",_.ME(this,this.onKeydown)),document.body.setAttribute("no-y-overflow",""),this.setNormalPlaybackSpeed(),this.getPlayer().focusOnPlayer();else{if(this.isAd()){var c;(c=this.player)==null||c.sendAbandonmentPing()}var m;(m=this.player)==null||m.cueVideoByPlayerVars({videoId:"00000000"});document.removeEventListener("keydown",_.ME(this,this.onKeydown));
document.body.removeAttribute("no-y-overflow");this.restorePlaybackSpeed();this.processResetAction()}};
_.V.graftClientVisualElements=function(){if(this.data){var J=_.C7();_.csL(J,_.ML({response:this.reelWatchSequenceResponse}));_.JM(J,this.nextReelVe);_.JM(J,this.prevReelVe);_.w("kevlar_shorts_auto_advance")&&(_.JM(J,this.loopToggleOffVe),_.JM(J,this.loopToggleOnVe));_.JM(J,this.ambientModeToggleVe);_.vA(_.Y3(),[this.nextReelVe,this.prevReelVe]);_.w("web_shorts_paused_state_logging")&&_.JM(J,this.reelPlayerPausedStateRendererVe)}};
_.V.graftNvcRenderer=function(){var J,c,m,b,x=this.index<0?(J=this.shortsProcessedPrevSequence)==null?void 0:(c=J[this.shortsProcessedPrevSequence.length+this.index])==null?void 0:c.command:(m=this.shortsProcessedSequence)==null?void 0:(b=m[this.index])==null?void 0:b.command;if(x&&this.isNonVideoContentCommand(x)){J=_.L(x,_.W3);var P,p;(J=(P=_.L(J==null?void 0:J.renderer,_.i_z))==null?void 0:(p=P.loggingDirectives)==null?void 0:p.trackingParams)&&_.C7().graftServerVe(J)}};
_.V.setActiveIndex=function(){_.BG().resolve(_.NH).setActiveIndex(this.index)};
_.V.onShortsPipActiveChanged=function(){this.isShortsMiniplayerActive()&&this.updateMiniplayerData()};
_.V.lazyUpdateMiniplayerData=function(){var J=this;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.updateMiniplayerDataJobId=_.ft.addLowPriorityJob(function(){J.updateMiniplayerData();J.updateMiniplayerDataJobId=void 0}))};
_.V.cancelPreviousMiniplayerDataUpdate=function(){this.updateMiniplayerDataJobId&&_.ft.cancelJob(this.updateMiniplayerDataJobId)};
_.V.updateMiniplayerData=function(){var J,c,m,b=_.BG().resolve(_.Uo),x={shortsData:this.getCurrentShort(),previousButtonDisabled:!((J=this.prevButtonData)==null||!J.isDisabled),nextButtonDisabled:!((c=this.nextButtonData)==null||!c.isDisabled),playabilityStatus:(m=this.playerData)==null?void 0:m.playabilityStatus};_.Tu(b,x)};
_.V.resetPlayerLocation=function(){var J=this.getPlayer();this.initialPlayerContainer&&J.appendTo(this.initialPlayerContainer,void 0,!0);this.shortsInnerContainer&&this.overlayContainer&&(this.shortsInnerContainer.appendChild(this.overlayContainer),this.overlayContainer=void 0)};
_.V.movePlayerToVideo=function(J,c){var m=this;c=c===void 0?!0:c;var b=this.getActiveReelVideo(J),x=this.getPlayer();if(b){this.overlayContainer||(this.overlayContainer=_.Bj(this.hostElement).querySelector("ytd-reel-video-renderer")||void 0,this.isShortsMiniplayerActive()||x.appendTo(this.overlayContainer.playerContainer,void 0,!0));b.appendChild(this.overlayContainer);var P;(P=this.player)==null||P.setSize(NaN,NaN);this.isActive||_.rv(_.ft,function(){m.isActive=!0});
x.style.visibility="visible";_.w("reels_web_disable_rtr_tick")||_.w("reels_web_use_pbs_first_shorts")&&J===0||_.Y2("r_tr");this.currentPlayerIndex=J;b.appendChild(this.errorScreenContainer);var p;(p=this.JSC$19725_cinematicController)==null||_.ieR(p)}else c?_.ft.addLowPriorityJob(function(){m.movePlayerToVideo(m.index,!1)}):Math.random()<=_.c7("web_shorts_error_logging_threshold")&&_.Zt(new _.w3("Trying to movePlayerToVideo with undefined container.",{firstAttempt:c,
index:J}))};
_.V.enableFormatFirst=function(J){return _.w("web_enable_format_first")||J.adsOverlay&&_.w("web_enable_format_first_ads_only")||J.reelPlayerOverlayRenderer&&_.w("web_enable_format_first_organic_only")};
_.V.getAspectRatio=function(J){if(J!=null&&J.thumbnail&&this.enableFormatFirst(J))return"--ytd-shorts-player-ratio: "+woR(J.thumbnail)};
_.V.getBackgroundImage=function(J){if(J!=null&&J.thumbnail)return(J=_.Bd(J.thumbnail.thumbnails))?'background-image:url("'+J+'");':"background-color:black;"};
_.V.onPersistentPanelActiveChanged=function(){var J=this.getCurrentShort();if(J&&this.enableFormatFirst(J)&&(J==null?0:J.thumbnail)&&woR(J.thumbnail)!==.5625){var c;(c=this.player)==null||c.setSize(NaN,NaN)}};
_.V.isShortsMiniplayerActive=function(){return this.shortsPipEnabled&&this.isShortsPipActive};
_.V.moveCinematicsToVideo=function(){var J=_.Bj(this.hostElement).querySelector("ytd-reel-video-renderer");(J==null?0:J.cinematicContainer)&&J.cinematicContainer!==this.shortsCinematicContainer.parentElement&&J.cinematicContainer.appendChild(this.shortsCinematicContainer)};
_.V.onPrevButtonDataChange=function(){this.updatePrevButtonData()};
_.V.updatePrevButtonData=function(){var J=this.get("overlay.reelPlayerOverlayRenderer.prevItemButton.buttonRenderer",this.data);if(J){var c;this.prevButtonData=J=Object.assign({},J,{accessibility:{label:_.CX("PREVIOUS_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_UP"},isDisabled:J.isDisabled||this.index===-(((c=this.shortsProcessedPrevSequence)==null?void 0:c.length)||0),tooltip:this.isUpArrowHidden?"":_.CX("PREVIOUS_VIDEO_LABEL")})}else this.prevButtonData&&(this.prevButtonData=J=Object.assign({},
this.prevButtonData,{isDisabled:!1}))};
_.V.onNextButtonDataChange=function(){this.updateNextButtonData()};
_.V.updateNextButtonData=function(){var J=this.get("overlay.reelPlayerOverlayRenderer.nextItemButton.buttonRenderer",this.data);if(J){var c;this.nextButtonData=J=Object.assign({},J,{accessibility:{label:_.CX("NEXT_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_DOWN"},isDisabled:J.isDisabled||this.index===((c=this.shortsProcessedSequence)==null?void 0:c.length),tooltip:_.CX("NEXT_VIDEO_LABEL")||""})}};
_.V.getPlayablePreviousIndex=function(){for(var J,c=this.index-1;c>=-(((J=this.prevShortsSequence)==null?void 0:J.length)||0);c--)if(!Sjh().includes(c))return c;return null};
_.V.getIndexInSequence=function(J,c){return J.findIndex(function(m){var b;return((b=_.L(m.command,_.kb))==null?void 0:b.videoId)===c})};
_.V.handlePrevButtonClick=function(J){var c=this,m,b;return _.N(function(x){m=c.getPlayablePreviousIndex();if(m===null)return x.return();c.gestureType=((b=J)==null?void 0:b.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";m===0&&(c.hidePreviousButtonImmediately=!0);if(c.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){c.transitionToVideoThrottle.fire(m)}),x.return();
c.scrollToVideoThrottle.fire(m);_.tD(x)})};
_.V.getPlayableNextIndex=function(){for(var J,c=this.index+1;c<(((J=this.shortsProcessedSequence)==null?void 0:J.length)||0);c++)if(!Sjh().includes(c))return c;return null};
_.V.handleNextButtonClick=function(J,c){var m=this,b,x;return _.N(function(P){b=m.getPlayableNextIndex();if(b===null)return P.return();b===1&&(m.showPreviousButtonImmediately=!0);m.gestureType=((x=J)==null?void 0:x.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";c&&(m.gestureType=c);if(m.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){m.transitionToVideoThrottle.fire(b)}),P.return();
m.scrollToVideoThrottle.fire(b);_.tD(P)})};
_.V.handleReelNavigateCommand=function(J,c,m){(J=_.L(J,oer))&&c&&J.destination==="REEL_NAVIGATION_DESTINATION_NEXT"&&this.handleNextButtonClick(m)};
_.V.loadVideo=function(J,c){c=c===void 0?!1:c;if(J!==this.currentPlayerIndex){_.Rc().dispatch(xj(!1));if(this.isAd()&&!c){var m;(m=this.player)==null||m.notifyShortsAdSwipeEvent()}if((c=this.JSC$19725_cinematicController)!=null){var b;(b=c.currentCinematicEffect)==null||b.pause()}if((b=this.JSC$19725_cinematicController)!=null){var x;(x=b.currentCinematicEffect)==null||x.clear()}b=J>this.index;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.setMiniplayerPreview(b));
this.getPlayer().style.visibility="hidden";this.overlayContainer&&(this.overlayContainer.querySelector("#experiment-overlay").style.display="none");var P,p,t,I;x=J<0?(P=this.shortsProcessedPrevSequence)==null?void 0:(p=P[this.shortsProcessedPrevSequence.length+J])==null?void 0:p.command:(t=this.shortsProcessedSequence)==null?void 0:(I=t[J])==null?void 0:I.command;this.index=J;this.gestureType||(this.gestureType=b?"INTERACTION_LOGGING_GESTURE_TYPE_SWIPE":"INTERACTION_LOGGING_GESTURE_TYPE_BACK_SWIPE");
x&&this.isVideoContentCommand(x)&&(this.ytComponentBehavior.resolveCommand(x,{form:{createScreenConfig:{clickedVisualElement:b?this.nextReelVe:this.prevReelVe,implicitGestureType:this.gestureType}}}),this.gestureType=void 0);if(x&&this.isNonVideoContentCommand(x)){this.currentEndpoint=x;this.data=void 0;P=_.C7();p=_.L(x,_.W3);var a,k;(p=(a=_.L(p==null?void 0:p.renderer,_.i_z))==null?void 0:(k=a.screenLoggingData)==null?void 0:k.screenVeType)&&_.ge(P,p);this.currentPlayerIndex=-1;this.player&&this.isShortPlayable()&&
this.player.pauseVideo();(a=this.getActiveReelVideo(J))&&a.appendChild(this.overlayContainer)}var H,T;if(((H=this.reelWatchSequenceResponse)==null?0:H.continuationEndpoint)&&((T=this.reelWatchSequenceResponse)==null?0:T.entries)&&J===this.reelWatchSequenceResponse.entries.length-1){var r,W;H={contentPlaybackContext:_.nv({},(W=_.L((r=this.currentEndpoint)==null?void 0:r.commandMetadata,_.lk))==null?void 0:W.url,window.location.href)};this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.continuationEndpoint,
{form:H})}var Y,Z,d;((Y=this.reelWatchSequenceResponse)==null?0:Y.prevContinuationEndpoint)&&J===-(((Z=this.reelWatchSequenceResponse)==null?void 0:(d=Z.prevEntries)==null?void 0:d.length)||0)&&this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.prevContinuationEndpoint)}};
_.V.setMiniplayerPreview=function(J){J=(J===void 0?0:J)?this.getPlayableNextIndex():this.getPlayablePreviousIndex();var c,m,b=_.BG().resolve(_.Uo),x={shortsData:void 0,shortsPreviewThumbnail:J?(c=this.shortsProcessedSequence)==null?void 0:(m=c[J])==null?void 0:m.thumbnail:void 0};_.Tu(b,x)};
_.V.updateTitle=function(J){var c,m;J=(J==null?0:J.adSlots)?"":(m=J==null?void 0:(c=J.videoDetails)==null?void 0:c.title)!=null?m:"";_.cA(this.hostElement,"yt-update-title",J)};
_.V.registerPanel=function(J){var c=_.BG().resolve(_.Tr);if(c){J=_.M(J.engagementPanels||[]);for(var m=J.next();!m.done;m=J.next()){m=m.value;var b=m.engagementPanelSectionListRenderer,x=void 0,P=void 0,p=void 0,t=void 0,I=((x=b)==null?void 0:x.targetId)||((P=b)==null?void 0:P.panelIdentifier)||((p=b)==null?void 0:(t=p.identifier)==null?void 0:t.tag);x=b=void 0;(x=(b=c).registerPanelContent)==null||x.call(b,I,m)}}};
_.V.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;_.Rc().dispatch(xj(!1));this.isShortsInitialized=!1;this.resetPlayerLocation();_.Rc().dispatch(hPR(!1));var J=_.BG().resolve(_.NH);J.dismissedIndices=[];J.watchWhileIndices.clear();this.isShortsMiniplayerActive()&&_.BG().resolve(_.Uo).close(!0)};
_.V.processAppendReelWatchSequenceContinuationEntriesAction=function(J){var c=this,m;(m=this.intersectionObserver)==null||m.disconnect();J=J.appendReelWatchSequenceContinuationEntriesAction;if(J==null?0:J.entries){var b;this.reelWatchSequenceResponse=Object.assign({},this.reelWatchSequenceResponse,{entries:[].concat(_.L6(((b=this.reelWatchSequenceResponse)==null?void 0:b.entries)||[]),_.L6(J.entries)),continuationEndpoint:J.continuationEndpoint})}else if(J==null?0:J.prevEntries){var x;this.reelWatchSequenceResponse=
Object.assign({},this.reelWatchSequenceResponse,{prevEntries:[].concat(_.L6(((x=this.reelWatchSequenceResponse)==null?void 0:x.prevEntries)||[]),_.L6(J.prevEntries)),prevContinuationEndpoint:J.prevContinuationEndpoint});_.ft.addLowPriorityJob(function(){c.movePlayerToVideo(c.index);var P;(P=c.getActiveReelVideo(c.index))==null||P.scrollIntoView({block:"nearest",inline:c.enableScrollIntoViewCenter?"center":"start"})})}else return;
_.ft.addLowPriorityJob(function(){c.observeShorts()},100)};
_.V.processWatchSequence=function(J){var c=this;return J.map(function(m){m=m.command;if(c.isVideoContentCommand(m)){var b=_.L(m,_.kb);return{reelPlayerOverlayRenderer:_.L(b==null?void 0:b.overlay,_.n_Q),thumbnail:b.thumbnail,command:m}}return c.isNonVideoContentCommand(m)?(b=_.L(m,_.W3),{reelNonVideoContentRenderer:_.L(b==null?void 0:b.renderer,_.i_z),command:m}):{command:m}})};
_.V.calculateIntersectionObserverThreshold=function(){if(!_.w("web_shorts_dynamic_intersection_observer_threshold"))return.6;var J=_.Bj(this.hostElement).querySelector("ytd-reel-video-renderer"),c=1;(J==null?0:J.offsetHeight)&&(J==null?0:J.offsetWidth)&&(c=Math.min(J.offsetHeight,this.shortsContainer.offsetHeight)/J.offsetHeight*(Math.min(J.offsetWidth,this.shortsContainer.offsetWidth)/J.offsetWidth));return Math.round(c*.6*10)/10};
_.V.isVideoContentCommand=function(J){_.BG().resolve(_.NH);return!!_.L(J,_.kb)};
_.V.isNonVideoContentCommand=function(J){_.BG().resolve(_.NH);return!!_.L(J,_.W3)};
_.V.initCinematicController=function(){var J=this;if(this.player&&this.shortsCinematicContainer){this.JSC$19725_cinematicController=new _.bm(this.shortsCinematicContainer,this.player);var c,m=_.L((c=this.data)==null?void 0:c.background,_.wG);_.Heh(this.JSC$19725_cinematicController,m);_.kl4(this.JSC$19725_cinematicController,neS(m));_.a8p(this.JSC$19725_cinematicController);_.ft.addLowPriorityJob(function(){J.moveCinematicsToVideo()})}};
_.V.handleMiniplayerNavigateShorts=function(J){J==="REEL_NAVIGATION_DESTINATION_NEXT"?this.handleNextButtonClick():J==="REEL_NAVIGATION_DESTINATION_PREV"&&this.handlePrevButtonClick()};
_.V.handleSignalActionToggleShortsPictureInPicture=function(){if(_.BG().resolve(_.Uo).pictureInPictureSupported()){var J=_.BG().resolve(_.NH);if(_.w("web_shorts_pip")){var c=_.BG().resolve(_.Uo);J.isShortsPipActive()?c.deactivate():c.isMiniplayerActive()||(_.Mh().shortsPipActivation=!0,_.ho4(c))}}else(J=this.player)==null||J.togglePictureInPicture()};
_.eE.Object.defineProperties(aI.prototype,{prevShortsSequence:{configurable:!0,enumerable:!0,get:function(){var J;if((J=this.reelWatchSequenceResponse)!=null&&J.prevEntries)return this.processWatchSequence([].concat(_.L6(this.reelWatchSequenceResponse.prevEntries)).reverse())}},
shortsProcessedPrevSequence:{configurable:!0,enumerable:!0,get:function(){if(this.prevShortsSequence){var J=this.getCurrentShort();if(this.index>=0&&this.shortsProcessedPrevSequence||!J)return this.shortsProcessedPrevSequence;if(this.shortsProcessedPrevSequence){if(this.shortsProcessedPrevSequence.length<this.prevShortsSequence.length){var c=this.prevShortsSequence.length-this.shortsProcessedPrevSequence.length;return[].concat(_.L6(this.prevShortsSequence.slice(0,c)),[J],_.L6(this.prevShortsSequence.slice(c+
1)))}c=this.index+this.shortsProcessedPrevSequence.length;J.thumbnail=this.shortsProcessedPrevSequence[c].thumbnail;return[].concat(_.L6(this.shortsProcessedPrevSequence.slice(0,c)),[J],_.L6(this.shortsProcessedPrevSequence.slice(c+1)))}return this.prevShortsSequence}}},
shortsSequence:{configurable:!0,enumerable:!0,get:function(){var J;if((J=this.reelWatchSequenceResponse)!=null&&J.entries)return this.processWatchSequence(this.reelWatchSequenceResponse.entries)}},
shortsProcessedSequence:{configurable:!0,enumerable:!0,get:function(){if(this.data||this.shortsSequence){var J=this.getCurrentShort();if(!J||this.index<0)return this.shortsProcessedSequence;if(!this.shortsSequence)return[J];if(J==null||!J.reelNonVideoContentRenderer){var c=this.getIndexInSequence(this.shortsSequence,_.L(this.currentEndpoint,_.kb).videoId);if(this.index===0&&c!==-1)return this.currentPlayerIndex=this.index=c,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index),
[].concat(_.L6(this.shortsSequence.slice(0,this.index)),[J],_.L6(this.shortsSequence.slice(this.index+1)))}if(this.shortsProcessedSequence){J.thumbnail=this.shortsProcessedSequence[this.index].thumbnail;var m,b,x,P;c=((b=_.L((m=this.shortsProcessedSequence[0])==null?void 0:m.command,_.kb))==null?void 0:b.videoId)===((P=_.L((x=this.shortsSequence[0])==null?void 0:x.command,_.kb))==null?void 0:P.videoId)?this.index+1:this.index;this.deflateInactivePreviousSlides();return[].concat(_.L6(this.shortsProcessedSequence.slice(0,
this.index)),[J],_.L6(this.shortsSequence.slice(c)))}return[J].concat(_.L6(this.shortsSequence))}}},
isUpArrowHidden:{configurable:!0,enumerable:!0,get:function(){this.playablePreviousIndex=this.getPlayablePreviousIndex();var J=this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null;J&&(this.hidePreviousButtonImmediately=!1);if(this.showPreviousButtonImmediately){if(J)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 J,c;return this.index===((J=this.reelWatchSequenceResponse)==null?void 0:(c=J.entries)==null?void 0:c.length)}var m;return!((m=this.reelWatchSequenceResponse)==null?0:m.entries)&&this.index===0}},
activeIndex:{configurable:!0,enumerable:!0,get:function(){var J;(J=this.delayedActiveIndexUpdateDebouncer)==null||J.fire(this.index);return this.index}},
shouldRenderOfflineContent:{configurable:!0,enumerable:!0,get:function(){var J,c,m;return this.isShortPlayable()||((c=_.L((J=this.data)==null?void 0:J.watchStatus,_.ul2))==null?void 0:(m=c.style)==null?void 0:m.value)!=="BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"?!1:!0}},
anchoredEngagementPanels:{configurable:!0,enumerable:!0,get:function(){var J=this,c=this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint),m;if((this.data||c)&&(((m=this.data)==null?0:m.engagementPanels)||this.isAd()||c)){c=!1;this.activePanel="shorts-comments-panel";var b;m=_.M(((b=this.data)==null?void 0:b.engagementPanels)||[]);for(b=m.next();!b.done;b=m.next()){b=b.value.engagementPanelSectionListRenderer;var x=void 0,P=void 0,p=void 0,t=void 0;if((((x=b)==null?void 0:(P=x.identifier)==
null?void 0:P.tag)||((p=b)==null?void 0:p.targetId)||((t=b)==null?void 0:t.panelIdentifier))===this.activePanel){c=!0;break}}if(this.isPersistentPanelActive){var I=_.BG().resolve(_.Tr);_.rv(_.ft,function(){I.showPanel(J.activePanel,void 0,void 0,void 0,null)},100)}var a;
m=[].concat(_.L6(Object.values(((a=this.data)==null?void 0:a.engagementPanels)||{})));if(_.w("enable_preview_panel_for_shorts_search_suggested_action")){var k,H,T,r,W;((r=_.L((k=this.data)==null?void 0:(H=k.overlay)==null?void 0:(T=H.reelPlayerOverlayRenderer)==null?void 0:T.metapanel,_.H_6))==null?void 0:(W=r.metadataItems)==null?void 0:W.find(function(Y){var Z,d;return((Z=_.L(Y,jZR))==null?void 0:(d=Z.icon)==null?void 0:d.iconType)==="SEARCH"}))!==void 0&&m.push({engagementPanelSectionListRenderer:{identifier:{tag:"PAsearch_preview"},
targetId:"PAsearch_preview"}})}a=this.get("overlay.reelPlayerOverlayRenderer.viewCommentsButton.buttonRenderer",this.data);k=this.get("overlay.reelPlayerOverlayRenderer.buttonBar.reelActionBarViewModel.buttonViewModels.2.buttonViewModel",this.data);return a===void 0&&k===void 0||(a==null?0:a.isDisabled)||(k==null?void 0:k.state)==="BUTTON_VIEW_MODEL_STATE_DISABLED"||this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint)||this.isAd()||!c?(c=m==null?void 0:m.findIndex(function(Y){var Z,
d;return((Z=Y.engagementPanelSectionListRenderer)==null?void 0:(d=Z.identifier)==null?void 0:d.tag)==="shorts-comments-panel"}),c===-1||c===void 0||m!=null&&m.splice(c,1),[{engagementPanelSectionListRenderer:{header:{engagementPanelTitleHeaderRenderer:{title:{runs:[{text:_.CX("COMMENTS",void 0,"Comments")}]},
visibilityButton:{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CLOSE"},accessibilityData:{accessibilityData:{label:_.CX("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:_.CX("COMMENTS_OFF",void 0,"Comments are turned off. ")},
{text:" "},{text:_.CX("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(_.L6(Object.values(m||
{})))):m}}},
activeReel:{configurable:!0,enumerable:!0,get:function(){var J;return(J=this.shortsProcessedSequence)==null?void 0:J[this.activeIndex]}},
errorScreen:{configurable:!0,enumerable:!0,get:function(){var J=this,c,m,b;if((c=this.playerData)==null?0:(m=c.playabilityStatus)==null?0:(b=m.errorScreen)==null?0:b.playerInterstitialRenderer)return _.ft.addLowPriorityJob(function(){J.movePlayerToVideo(J.index)}),this.playerData.playabilityStatus.errorScreen;
var x,P;return((x=this.data)==null?void 0:x.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&((P=this.data)==null?0:P.watchStatus)&&_.L(this.data.watchStatus,_.uYC)?(_.ft.addLowPriorityJob(function(){J.movePlayerToVideo(J.index)}),this.data.watchStatus):null}},
hasError:{configurable:!0,enumerable:!0,get:function(){return!!this.errorScreen}}});
_.eE.Object.defineProperties(aI,{template:{configurable:!0,enumerable:!0,get:function(){if(l8r===void 0){var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);l8r=J}J=l8r;return J}}});
aI.prototype.onNextButtonDataChange=aI.prototype.onNextButtonDataChange;aI.prototype.onPrevButtonDataChange=aI.prototype.onPrevButtonDataChange;aI.prototype.onPersistentPanelActiveChanged=aI.prototype.onPersistentPanelActiveChanged;aI.prototype.lazyUpdateMiniplayerData=aI.prototype.lazyUpdateMiniplayerData;aI.prototype.onShortsPipActiveChanged=aI.prototype.onShortsPipActiveChanged;aI.prototype.setActiveIndex=aI.prototype.setActiveIndex;aI.prototype.graftNvcRenderer=aI.prototype.graftNvcRenderer;
aI.prototype.graftClientVisualElements=aI.prototype.graftClientVisualElements;aI.prototype.onActiveChanged=aI.prototype.onActiveChanged;aI.prototype.onShortsDismiss=aI.prototype.onShortsDismiss;aI.prototype.onShortUndoDismiss=aI.prototype.onShortUndoDismiss;aI.prototype.playerDataChanged=aI.prototype.playerDataChanged;aI.prototype.afterPlayerStarted=aI.prototype.afterPlayerStarted;aI.prototype.unhideCurrentOverlay=aI.prototype.unhideCurrentOverlay;aI.prototype.onServiceRequestCompleted=aI.prototype.onServiceRequestCompleted;
aI.prototype.engagementPanelsChanged=aI.prototype.engagementPanelsChanged;aI.prototype.onFullscreenChange=aI.prototype.onFullscreenChange;aI.prototype.onResize=aI.prototype.onResize;_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],aI.prototype,"ytComponentBehavior",void 0);_.O([_.f(_.D$.YtPageBehavior),_.R("design:type",Object)],aI.prototype,"ytPageBehavior",void 0);_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],aI.prototype,"ytActionHandlerBehavior",void 0);
_.O([_.f(_.rI),_.R("design:type",Object)],aI.prototype,"ironResizableBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],aI.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.XP),_.R("design:type",Object)],aI.prototype,"ytdDismissibleItemBehavior",void 0);_.O([_.f(_.SO.YtdGuideStateAwareBehavior),_.R("design:type",Object)],aI.prototype,"ytdGuideStateAwareBehavior",void 0);_.O([_.f(_.fY),_.R("design:type",Object)],aI.prototype,"ytdReduxBehavior",void 0);
_.O([_.U(),_.R("design:type",Object)],aI.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],aI.prototype,"playerData",void 0);_.O([_.U(),_.R("design:type",Object)],aI.prototype,"reelWatchSequenceResponse",void 0);_.O([_.U(),_.R("design:type",Object)],aI.prototype,"cachedReelWatchSequenceResponse",void 0);_.O([_.U(),_.R("design:type",Object)],aI.prototype,"currentEndpoint",void 0);_.O([_.U(),_.R("design:type",Object)],aI.prototype,"nextButtonData",void 0);
_.O([_.U(),_.R("design:type",Object)],aI.prototype,"prevButtonData",void 0);_.O([_.U(),_.R("design:type",Object)],aI.prototype,"isPreviousPageShorts",void 0);_.O([_.U(),_.R("design:type",Object)],aI.prototype,"index",void 0);_.O([_.U(),_.R("design:type",Object)],aI.prototype,"delayedActiveIndex",void 0);_.O([_.U(),_.R("design:type",Object)],aI.prototype,"playablePreviousIndex",void 0);_.O([_.U(),_.R("design:type",Object)],aI.prototype,"player",void 0);
_.O([_.U(),_.R("design:type",Object)],aI.prototype,"isPlayerPaused",void 0);_.O([_.U({selector:sZ1}),_.R("design:type",Object)],aI.prototype,"isPlayerStarted",void 0);_.O([_.U(),_.R("design:type",Object)],aI.prototype,"intersectionObserver",void 0);_.O([_.U(),_.R("design:type",Number)],aI.prototype,"cinematicsInitializeJobId",void 0);_.O([_.U(),_.R("design:type",Number)],aI.prototype,"updateMiniplayerDataJobId",void 0);_.O([_.U(),_.R("design:type",Object)],aI.prototype,"fitToVisibleBounds",void 0);
_.O([_.U(),_.R("design:type",Object)],aI.prototype,"pageSubtype",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],aI.prototype,"enablePreviousContinuation",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],aI.prototype,"shortsPipEnabled",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],aI.prototype,"isDark",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],aI.prototype,"shortsViewTransitions",void 0);
_.O([_.U({selector:_.t3,reflectToAttribute:!0}),_.R("design:type",Object)],aI.prototype,"isFullscreen",void 0);_.O([_.U({selector:_.Ig,reflectToAttribute:!0}),_.R("design:type",Object)],aI.prototype,"isShortsPipActive",void 0);_.O([_.Iu("#shorts-inner-container"),_.R("design:type",HTMLElement)],aI.prototype,"shortsInnerContainer",void 0);_.O([_.Iu("#back-nav-button ytd-button-renderer"),_.R("design:type",_.As)],aI.prototype,"backNavButton",void 0);
_.O([_.Iu("#shorts-container"),_.R("design:type",HTMLElement)],aI.prototype,"shortsContainer",void 0);_.O([_.Qc("error-screen"),_.R("design:type",HTMLElement)],aI.prototype,"errorScreenContainer",void 0);_.O([_.Qc("player"),_.R("design:type",Object)],aI.prototype,"playerElement",void 0);_.O([_.Qc("shorts-cinematic-container"),_.R("design:type",HTMLElement)],aI.prototype,"shortsCinematicContainer",void 0);
_.O([_.Qc("initial-player-container"),_.R("design:type",HTMLElement)],aI.prototype,"initialPlayerContainer",void 0);_.O([_.U(),_.R("design:type",Object)],aI.prototype,"buttonOverride",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],aI.prototype,"anchoredPanelActive",void 0);_.O([_.U(),_.R("design:type",String)],aI.prototype,"activePanel",void 0);_.O([_.U(),_.R("design:type",Object)],aI.prototype,"isActive",void 0);
_.O([_.U({selector:rn5,reflectToAttribute:!0}),_.R("design:type",Object)],aI.prototype,"smallScreenPersistentPanel",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],aI.prototype,"isPersistentPanelActive",void 0);_.O([_.U(),_.R("design:type",Object)],aI.prototype,"smallScreenSqueezeBack",void 0);_.O([_.U(),_.R("design:type",Object)],aI.prototype,"enableScrollIntoViewCenter",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],aI.prototype,"formatFirst",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],aI.prototype,"enableFlexibleOverlay",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],aI.prototype,"useAspectRatio",void 0);_.O([_.U(),_.R("design:type",Object)],aI.prototype,"panelContainer",void 0);_.O([_.U(),_.R("design:type",Object)],aI.prototype,"overlayContainer",void 0);_.O([_.U(),_.R("design:type",Object)],aI.prototype,"isShortsInitialized",void 0);
_.O([_.q("reelWatchSequenceResponse"),_.R("design:type",Object),_.R("design:paramtypes",[])],aI.prototype,"prevShortsSequence",null);_.O([_.q("data","prevShortsSequence"),_.R("design:type",Object),_.R("design:paramtypes",[])],aI.prototype,"shortsProcessedPrevSequence",null);_.O([_.q("reelWatchSequenceResponse"),_.R("design:type",Object),_.R("design:paramtypes",[])],aI.prototype,"shortsSequence",null);
_.O([_.q("data","shortsSequence"),_.R("design:type",Object),_.R("design:paramtypes",[])],aI.prototype,"shortsProcessedSequence",null);_.O([_.U({reflectToAttribute:!0}),_.q("index","playablePreviousIndex","prevShortsSequence","hidePreviousButtonImmediately","showPreviousButtonImmediately"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],aI.prototype,"isUpArrowHidden",null);
_.O([_.U({reflectToAttribute:!0}),_.q("reelWatchSequenceResponse","index","endOfNextContinuation"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],aI.prototype,"isDownArrowHidden",null);_.O([_.U(),_.q("index"),_.R("design:type",Number),_.R("design:paramtypes",[])],aI.prototype,"activeIndex",null);_.O([_.q("isShortPlayable","data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],aI.prototype,"shouldRenderOfflineContent",null);
_.O([_.ps("iron-resize"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],aI.prototype,"onResize",null);_.O([_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],aI.prototype,"anchoredEngagementPanels",null);_.O([_.U(),_.R("design:type",Object)],aI.prototype,"watchWhileEngagementPanels",void 0);_.O([_.NE("isFullscreen"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],aI.prototype,"onFullscreenChange",null);
_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],aI.prototype,"engagementPanelsChanged",null);_.O([_.ps("yt-service-request-completed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,_.Oi]),_.R("design:returntype")],aI.prototype,"onServiceRequestCompleted",null);_.O([_.q("data","shortsSequence","index"),_.R("design:type",Object),_.R("design:paramtypes",[])],aI.prototype,"activeReel",null);
_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],aI.prototype,"unhideCurrentOverlay",null);_.O([_.NE("isPlayerStarted"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],aI.prototype,"afterPlayerStarted",null);_.O([_.q("playerData","reelWatchSequenceResponse","data"),_.R("design:type",Object),_.R("design:paramtypes",[])],aI.prototype,"errorScreen",null);
_.O([_.q("errorScreen"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],aI.prototype,"hasError",null);_.O([_.NE("playerData"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype",Promise)],aI.prototype,"playerDataChanged",null);_.O([_.ps("yt-dismissible-item-undo-feedback"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],aI.prototype,"onShortUndoDismiss",null);
_.O([_.ps("yt-disable-lockup-interaction"),_.R("design:type",Function),_.R("design:paramtypes",[Object]),_.R("design:returntype")],aI.prototype,"onShortsDismiss",null);_.O([_.kr("active"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],aI.prototype,"onActiveChanged",null);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],aI.prototype,"graftClientVisualElements",null);
_.O([_.NE("currentPlayerIndex"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],aI.prototype,"graftNvcRenderer",null);_.O([_.NE("index"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],aI.prototype,"setActiveIndex",null);_.O([_.NE("isShortsPipActive"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],aI.prototype,"onShortsPipActiveChanged",null);
_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],aI.prototype,"lazyUpdateMiniplayerData",null);_.O([_.U(),_.R("design:type",Object)],aI.prototype,"onOverlayDensityChanged",void 0);_.O([_.NE("isPersistentPanelActive"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],aI.prototype,"onPersistentPanelActiveChanged",null);
_.O([_.NE("index","data","isUpArrowHidden"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],aI.prototype,"onPrevButtonDataChange",null);_.O([_.NE("index","data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],aI.prototype,"onNextButtonDataChange",null);aI=_.O([_.E({is:"ytd-shorts"})],aI);_.l6.registerService(_.Znf,aI);
_.qi();
}catch(e){_._DumpException(e)}
try{
_.ZS("JzFVk");
var T$4=function(J){return _.C("ytd-button-banner-view-model",{class:"ytwYtdButtonBannerViewModelHost"},nDR(J.data.ctaButton,{buttonViewModel:{}}),_.C(_.j8,{text:J.data.subtext,className:"ytwYtdButtonBannerViewModelSubtext"}))};var w6r;var rbR;var ZB=function(){return _.h.apply(this,arguments)||this};
_.D(ZB,_.h);ZB.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
ZB.prototype.computeBlueBottomLink=function(J){return J};
_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],ZB.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],ZB.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],ZB.prototype,"data",void 0);_.O([_.U({computed:"computeIcon_(data.bottomIcon)"}),_.R("design:type",String)],ZB.prototype,"bottomIcon",void 0);
_.O([_.U({computed:"computeBlueBottomLink(data.blueBottomLink)",reflectToAttribute:!0}),_.R("design:type",Boolean)],ZB.prototype,"enableBlueBottomLink",void 0);ZB=_.O([_.E({is:"ytd-web-answer-renderer",disableElementRegistration:!0})],ZB);
_.v(ZB,"ytd-web-answer-renderer",function(){if(rbR!==void 0)return rbR;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return rbR=J},{mode:_.mP("kevlar_poly_si_batch_j035")?1:2});var so4;var qS=function(){var J=_.h.apply(this,arguments)||this;J.hasChipBar=!1;return J};
_.D(qS,_.h);qS.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}}};
qS.prototype.computeHasChipBar=function(J){return!(J==null||!J.chipBar)};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],qS.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],qS.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],qS.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeHasChipBar(data)"}),_.R("design:type",Object)],qS.prototype,"hasChipBar",void 0);qS=_.O([_.E({is:"ytd-search-header-renderer",disableElementRegistration:!0})],qS);
_.v(qS,"ytd-search-header-renderer",function(){if(so4!==void 0)return so4;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return so4=J},{mode:1});var LZ4;var UC=function(){return _.h.apply(this,arguments)||this};
_.D(UC,_.h);UC.prototype.configureRendererStamper=function(){return{"data.pages":{id:"pages",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],UC.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],UC.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],UC.prototype,"data",void 0);UC=_.O([_.E({disableElementRegistration:!0,is:"ytd-page-continuation"})],UC);
_.v(UC,"ytd-page-continuation",function(){if(LZ4!==void 0)return LZ4;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return LZ4=J},{mode:1});var DqF;var WZo;var zTR;var SN=function(){return _.h.apply(this,arguments)||this};
_.D(SN,_.h);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],SN.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],SN.prototype,"data",void 0);SN=_.O([_.E({disableElementRegistration:!0,is:"ytd-watch-card-one-vs-one-event"})],SN);
_.v(SN,"ytd-watch-card-one-vs-one-event",function(){if(zTR!==void 0)return zTR;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return zTR=J},{mode:1});var hQ=function(){return _.h.apply(this,arguments)||this};
_.D(hQ,_.h);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],hQ.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],hQ.prototype,"data",void 0);hQ=_.O([_.E({is:"ytd-watch-card-hero-one-vs-one-event-renderer",disableElementRegistration:!0})],hQ);
_.v(hQ,"ytd-watch-card-hero-one-vs-one-event-renderer",function(){if(WZo!==void 0)return WZo;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return WZo=J},{mode:1});var uJR;var dc=function(){return _.h.apply(this,arguments)||this};
_.D(dc,_.h);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],dc.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],dc.prototype,"data",void 0);dc=_.O([_.E({is:"ytd-banner-and-box-hero-image-renderer",disableElementRegistration:!0})],dc);
_.v(dc,"ytd-banner-and-box-hero-image-renderer",function(){if(uJR!==void 0)return uJR;var J=document.createElement("template");_.z(J,'\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>');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return uJR=J},{mode:1});var fMe;var $z=function(){var J=_.h.apply(this,arguments)||this;J.modern=_.w("web_modern_buttons");return J};
_.D($z,_.h);$z.prototype.computeIcon=function(){var J,c,m=(J=this.data)==null?void 0:(c=J.icon)==null?void 0:c.iconType;if(m)return _.Pd(m)};
$z.prototype.computeButtonShape=function(){var J;return{buttonText:_.OG((J=this.data)==null?void 0:J.label),iconPosition:"leading",style:"overlay",type:"filled",size:"M",state:"active"}};
_.eE.Object.defineProperties($z.prototype,{buttonColor:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style.replace("CALL_TO_ACTION_BUTTON_RENDERER_STYLE_",""):"RED"}}});
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],$z.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],$z.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],$z.prototype,"modern",void 0);_.O([_.U({type:_.w("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.q("data.style"),_.R("design:type",Object),_.R("design:paramtypes",[])],$z.prototype,"buttonColor",null);
$z=_.O([_.E({is:"ytd-call-to-action-button-renderer",disableElementRegistration:!0})],$z);
_.v($z,"ytd-call-to-action-button-renderer",function(){if(fMe!==void 0)return fMe;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return fMe=J},{mode:1});var Y3F;var GA=function(){return _.h.apply(this,arguments)||this};
_.D(GA,_.h);GA.prototype.onLeftThumbnailChanged=function(){this.data&&this.data.leftThumbnail&&(_.Bj(this.hostElement).querySelector("#section-left").style.backgroundImage="url("+_.yn(this.data.leftThumbnail.thumbnails,216)+")")};
GA.prototype.onLeftThumbnailChanged=GA.prototype.onLeftThumbnailChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],GA.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],GA.prototype,"data",void 0);_.O([_.NE("data.leftThumbnail"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],GA.prototype,"onLeftThumbnailChanged",null);GA=_.O([_.E({is:"ytd-collage-hero-image-renderer",disableElementRegistration:!0})],GA);
_.v(GA,"ytd-collage-hero-image-renderer",function(){if(Y3F!==void 0)return Y3F;var J=document.createElement("template");_.z(J,'\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>');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return Y3F=J},{mode:1});var X6o;var EC=function(){return _.h.apply(this,arguments)||this};
_.D(EC,_.h);EC.prototype.computeStyle=function(J){return J};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],EC.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],EC.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.R("design:type",String)],EC.prototype,"componentStyle",void 0);EC=_.O([_.E({is:"ytd-single-hero-image-renderer",disableElementRegistration:!0})],EC);
_.v(EC,"ytd-single-hero-image-renderer",function(){if(X6o!==void 0)return X6o;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return X6o=J},{mode:1});var ZLR;var v1=function(){return _.h.apply(this,arguments)||this};
_.D(v1,_.h);_.V=v1.prototype;
_.V.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:_.w("defer_overlays")?0:void 0,waitForSignal:"eocs"}}};
_.V.computeSubtitle=function(J){if(this.data){var c;if(this.data.upcomingEventData){J=_.OG(J.subtitle);var m=Number(this.data.upcomingEventData.startTime);isNaN(m)||(c=_.v2(_.ZI(J,m)))}else c=J.subtitle;return c}};
_.V.onHeroTap=function(J){J.preventDefault();var c=this.data&&this.data.navigationEndpoint;!c||!_.AP(_.OT(J),this.hostElement,["YTD-CALL-TO-ACTION-BUTTON-RENDERER"])&&_.AP(_.OT(J),this.hostElement,["A".toString(),"BUTTON".toString()])||(_.w("kevlar_watchcard_hero_video_renderer_killswitch")?_.cA(this.hostElement,"yt-navigate",{navigationEndpoint:c}):this.ytComponentBehavior.resolveCommand(c))};
_.V.computeHeroTabIndex=function(J){return J&&J.simpleText?-1:0};
_.V.computeHeroRole=function(J){return J&&J.simpleText?"":"link"};
_.V.computeIsReminderButtonPresent=function(J){return!(!J||!J.reminderButton)};
_.V.computeHideBottomItems=function(J){return!(this.computeIsReminderButtonPresent(J)||J.subtitle)};
_.V.dataChanged=function(){var J=this.get("data.buttons.buttonRenderer.serviceEndpoint"),c;((c=_.L(J==null?void 0:J.commandMetadata,_.we))==null?0:c.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(J)};
v1.prototype.dataChanged=v1.prototype.dataChanged;_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],v1.prototype,"ytComponentBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],v1.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],v1.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],v1.prototype,"data",void 0);
_.O([_.U({computed:"computeSubtitle(data)"}),_.R("design:type",String)],v1.prototype,"subtitle",void 0);_.O([_.U({computed:"computeIsReminderButtonPresent(data)",reflectToAttribute:!0}),_.R("design:type",Boolean)],v1.prototype,"isReminderButtonPresent",void 0);_.O([_.U({computed:"computeHideBottomItems(data)",reflectToAttribute:!0}),_.R("design:type",Boolean)],v1.prototype,"hideBottomItems",void 0);
_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],v1.prototype,"dataChanged",null);v1=_.O([_.E({is:"ytd-watch-card-hero-video-renderer",disableElementRegistration:!0})],v1);
_.v(v1,"ytd-watch-card-hero-video-renderer",function(){if(ZLR!==void 0)return ZLR;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return ZLR=J},{mode:1});var q3u;var OC=function(){return _.h.apply(this,arguments)||this};
_.D(OC,_.h);_.V=OC.prototype;_.V.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"}}}};
_.V.computeTitleBadges=function(J){return J?[J]:[]};
_.V.computeHeaderStyle=function(J){return J?J.replace("WATCH_CARD_RICH_HEADER_RENDERER_STYLE_","").toLowerCase():""};
_.V.computeAvatarAriaLabel=function(J){if(J){var c,m,b,x;return(x=(c=J.avatar)==null?void 0:(m=c.accessibility)==null?void 0:(b=m.accessibilityData)==null?void 0:b.label)!=null?x:_.OG(J==null?void 0:J.title)}};
_.V.computeAvatarHeight=function(J){return J==="WATCH_CARD_RICH_HEADER_RENDERER_STYLE_LEFT_AVATAR"?72:48};
_.V.computeBadgeRowClass=function(J){return(J==null?0:J[0].metadataBadgeRenderer)?"layout-block":"layout-inline"};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],OC.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],OC.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],OC.prototype,"data",void 0);_.O([_.U({computed:"computeTitleBadges(data.titleBadge)"}),_.R("design:type",Array)],OC.prototype,"titleBadges",void 0);
_.O([_.U({reflectToAttribute:!0,computed:"computeHeaderStyle(data.style)"}),_.R("design:type",String)],OC.prototype,"headerStyle",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeBadgeRowClass(data.badges)"}),_.R("design:type",String)],OC.prototype,"badgeRowClass",void 0);OC=_.O([_.E({is:"ytd-watch-card-rich-header-renderer",disableElementRegistration:!0})],OC);
_.v(OC,"ytd-watch-card-rich-header-renderer",function(){if(q3u!==void 0)return q3u;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return q3u=J},{mode:1});var Uqf;var S3e;var AQ=function(){return _.h.apply(this,arguments)||this};
_.D(AQ,_.h);AQ.prototype.onMetadataTap=function(J){var c=this.data&&this.data.navigationEndpoint;c&&!_.AP(_.OT(J),this.hostElement,["A".toString()])&&_.cA(this.hostElement,"yt-navigate",{endpoint:c})};
_.eE.Object.defineProperties(AQ.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 J;if(this.data.upcomingEventData){var c=_.OG(this.data.subtitle),m=Number(this.data.upcomingEventData.startTime);isNaN(m)||(J=_.v2(_.ZI(c,m)))}else J=this.data.subtitle;return J}}}});
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],AQ.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],AQ.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.q("data.style"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],AQ.prototype,"isCondensed",null);_.O([_.U({reflectToAttribute:!0}),_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],AQ.prototype,"subtitle",null);
AQ=_.O([_.E({is:"ytd-watch-card-compact-video-renderer",disableElementRegistration:!0})],AQ);
_.v(AQ,"ytd-watch-card-compact-video-renderer",function(){if(S3e!==void 0)return S3e;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return S3e=J},{mode:1});var hTS;var Rf=function(){return _.h.apply(this,arguments)||this};
_.D(Rf,_.h);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Rf.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Rf.prototype,"data",void 0);Rf=_.O([_.E({is:"ytd-watch-card-one-vs-one-event-compact-video-renderer",disableElementRegistration:!0})],Rf);
_.v(Rf,"ytd-watch-card-one-vs-one-event-compact-video-renderer",function(){if(hTS!==void 0)return hTS;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return hTS=J},{mode:1});var of=function(){return _.h.apply(this,arguments)||this};
_.D(of,_.h);of.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{watchCardCompactVideoRenderer:{component:"ytd-watch-card-compact-video-renderer",noInjection:!0},watchCardOneVsOneEventCompactVideoRenderer:{component:"ytd-watch-card-one-vs-one-event-compact-video-renderer",noInjection:!0}}}}};
_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],of.prototype,"ytRendererStamperBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],of.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],of.prototype,"data",void 0);of=_.O([_.E({is:"ytd-vertical-watch-card-list-renderer",disableElementRegistration:!0})],of);
_.v(of,"ytd-vertical-watch-card-list-renderer",function(){if(Uqf!==void 0)return Uqf;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return Uqf=J},{mode:1});var dqr;var QE=function(){var J=_.h.apply(this,arguments)||this;J.ariaExpanded="false";return J};
_.D(QE,_.h);_.V=QE.prototype;_.V.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:"ytd-vertical-watch-card-list-renderer"}}}};
_.V.dataChanged=function(){var J;this.currentSeasonIndex=((J=this.data)==null?void 0:J.dropdownDefaultSelectedIndex)||0;this.lists.select(this.currentSeasonIndex);this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex])};
_.V.computeEpisodesInfo=function(J,c,m){if(J!==void 0&&c.length===J.length)return J[m]};
_.V.onSeasonSelect=function(){this.ytRendererBehavior.markDirty()};
_.V.currentSeasonIndexChanged=function(){this.data&&this.data.dropdownTitles&&(this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex]))};
_.V.onLabelClick=function(){this.hostElement.ariaExpanded="true"};
_.V.onIronOverlayClosed=function(){this.hostElement.ariaExpanded="false"};
_.V.getUppercaseSimpleString=function(J){return this.ytRendererBehavior.getSimpleString(J).toUpperCase()};
_.V.updateCurrentSeasonIndexFromBinding=function(J){this.currentSeasonIndex=J.detail.value};
QE.prototype.onIronOverlayClosed=QE.prototype.onIronOverlayClosed;QE.prototype.currentSeasonIndexChanged=QE.prototype.currentSeasonIndexChanged;QE.prototype.dataChanged=QE.prototype.dataChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],QE.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],QE.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],QE.prototype,"data",void 0);
_.O([_.U(),_.R("design:type",String)],QE.prototype,"label",void 0);_.O([_.U({value:0}),_.R("design:type",Number)],QE.prototype,"currentSeasonIndex",void 0);_.O([_.U({computed:"computeEpisodesInfo(data.dropdownSubtitles,data.dropdownTitles,currentSeasonIndex)"}),_.R("design:type",Object)],QE.prototype,"episodesInfo",void 0);_.O([_.U({value:"false"}),_.R("design:type",Object)],QE.prototype,"ariaExpanded",void 0);_.O([_.Iu("#lists"),_.R("design:type",Object)],QE.prototype,"lists",void 0);
_.O([_.kr("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],QE.prototype,"dataChanged",null);_.O([_.kr("currentSeasonIndex"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],QE.prototype,"currentSeasonIndexChanged",null);_.O([_.ps("iron-overlay-closed"),_.R("design:type",Function),_.R("design:paramtypes",[Event]),_.R("design:returntype")],QE.prototype,"onIronOverlayClosed",null);
QE=_.O([_.E({is:"ytd-watch-card-section-dropdown-renderer",disableElementRegistration:!0})],QE);
_.v(QE,"ytd-watch-card-section-dropdown-renderer",function(){if(dqr!==void 0)return dqr;var J=document.createElement("template");_.z(J,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-section-dropdown-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="season-picker-container style-scope ytd-watch-card-section-dropdown-renderer">\n  <tp-yt-paper-menu-button id="input" dynamic-align="" horizontal-align="left" class="style-scope ytd-watch-card-section-dropdown-renderer">\n    <tp-yt-paper-button id="label" class="dropdown-trigger style-scope ytd-watch-card-section-dropdown-renderer" slot="dropdown-trigger" aria-expanded$="[[ariaExpanded]]" aria-label$="[[label]]" on-tap="onLabelClick">\n      <div id="label-text" class="style-scope ytd-watch-card-section-dropdown-renderer">[[label]]</div>\n      <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-watch-card-section-dropdown-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="seasons" class="dropdown-content style-scope ytd-watch-card-section-dropdown-renderer" slot="dropdown-content" selected="[[currentSeasonIndex]]" on-iron-select="onSeasonSelect" on-selected-changed="updateCurrentSeasonIndexFromBinding">\n      <template is="dom-repeat" items="[[data.dropdownTitles]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n        <tp-yt-paper-item aria-label$="[[item.accessibility.accessibilityData.label]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n          [[getUppercaseSimpleString(item)]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n  <span id="spacer" class="style-scope ytd-watch-card-section-dropdown-renderer"></span>\n  <yt-formatted-string id="episodes" text="[[episodesInfo]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n  </yt-formatted-string>\n</div>\n<tp-yt-iron-pages id="lists" selected="[[currentSeasonIndex]]" on-selected-changed="updateCurrentSeasonIndexFromBinding" class="style-scope ytd-watch-card-section-dropdown-renderer">\n  \n</tp-yt-iron-pages>\n');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return dqr=J},{mode:1});var $qh;var eN=function(){var J=_.h.apply(this,arguments)||this;J.isSearch=!1;return J};
_.D(eN,_.h);eN.prototype.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:{component:"ytd-vertical-watch-card-list-renderer",noInjection:!0},horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{isSearch:"[[isSearch]]"},noInjection:!0}}}}};
_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],eN.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],eN.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],eN.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],eN.prototype,"isSearch",void 0);eN=_.O([_.E({is:"ytd-watch-card-section-sequence-renderer",disableElementRegistration:!0})],eN);
_.v(eN,"ytd-watch-card-section-sequence-renderer",function(){if($qh!==void 0)return $qh;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);
return $qh=J},{mode:1});var nDR=_.Hg({buttonViewModel:_.XU});_.J5(T$4);_.xx(T$4,"ytd-button-banner-view-model",{propNames:["data"]});var jN=function(){var J=_.h.apply(this,arguments)||this;J.isSearch=!1;return J};
_.D(jN,_.h);
jN.prototype.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{watchCardRichHeaderRenderer:{component:"ytd-watch-card-rich-header-renderer",noInjection:!0}}},"data.callToAction":{id:"hero",mapping:{watchCardHeroVideoRenderer:{component:"ytd-watch-card-hero-video-renderer",noInjection:!0},watchCardHeroOneVsOneEventRenderer:{component:"ytd-watch-card-hero-one-vs-one-event-renderer",noInjection:!0}}},"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",noInjection:!0}}},
"data.sections":{id:"sections",mapping:{watchCardSectionDropdownRenderer:{component:"ytd-watch-card-section-dropdown-renderer",noInjection:!0},watchCardSectionSequenceRenderer:{component:"ytd-watch-card-section-sequence-renderer",properties:{isSearch:"[[isSearch]]"},noInjection:!0}}},"data.footer":{id:"footer",mapping:{buttonBannerViewModel:"ytd-button-banner-view-model"}}}};
_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],jN.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],jN.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],jN.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0,value:!0}),_.R("design:type",Boolean)],jN.prototype,"rounded",void 0);_.O([_.U(),_.R("design:type",Object)],jN.prototype,"isSearch",void 0);
jN=_.O([_.E({is:"ytd-universal-watch-card-renderer",disableElementRegistration:!0})],jN);
_.v(jN,"ytd-universal-watch-card-renderer",function(){if(DqF!==void 0)return DqF;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return DqF=J},{mode:1});var Gqo;_.lv(_.Q1(function(J){var c=J.data;var m;J=!((m=_.BG().resolve(_.y6(_.Ev)))==null||!m());m={};return _.C("overview-message-view-model",{class:_.pq("ytwOverviewMessageViewModelHost",(m.ytwOverviewMessageViewModelDarkBackground=J,m.ytwOverviewMessageViewModelLightBackground=!J,m))},_.C(_.n,{cond:function(){return c().primaryImage},
then:function(b){return _.C(_.RA,{data:b,contentMode:"CONTENT_MODE_CENTER",alt:"",targetWidth:120,targetHeight:120,className:"ytwOverviewMessageViewModelMessageImage"})}}),_.C(_.n,{cond:function(){return c().primaryText},
then:function(){return _.C("div",{class:"ytwOverviewMessageViewModelPrimaryMessageText"},_.C(_.j8,{text:function(){return c().primaryText}}))}}),_.C(_.n,{cond:function(){return c().secondaryText},
then:function(){return _.C("div",{class:"ytwOverviewMessageViewModelSecondaryMessageText"},_.C(_.j8,{text:function(){return c().secondaryText}}))}}))},"Ii"),"overview-message-view-model",{props:{data:_.vt}});_.xx(_.bBC,"ytd-overview-answer-view-model",{propNames:["data"]});var FQ=function(){return _.h.apply(this,arguments)||this};
_.D(FQ,_.h);FQ.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"}}}};
FQ.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents"}};
_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],FQ.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],FQ.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.Sy),_.R("design:type",Object)],FQ.prototype,"ytContinuationHandlerBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],FQ.prototype,"data",void 0);_.O([_.U({value:!1}),_.R("design:type",Boolean)],FQ.prototype,"isSearch",void 0);
FQ=_.O([_.E({disableElementRegistration:!0,is:"ytd-secondary-search-container-renderer"})],FQ);
_.v(FQ,"ytd-secondary-search-container-renderer",function(){if(Gqo!==void 0)return Gqo;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);
return Gqo=J},{mode:1});var EDR;var l5=function(){var J=_.h.apply(this,arguments)||this;J.renderSecondarySearchContainer=!1;J.isSearch=!1;J.isSearchDova=_.w("dova_on_search");return J};
_.D(l5,_.h);_.V=l5.prototype;_.V.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"}}}};
_.V.created=function(){var J=this;this.boundStampSecondarySearchContainerIfFits=function(){J.stampSecondarySearchContainerIfFits()};
_.q3("REMAINING_DOVA_DEFERRED_CHUNKS",1)};
_.V.computeIsSearchFrictionPage=function(J){var c,m,b,x,P;J=J==null?void 0:(c=J.primaryContents)==null?void 0:(m=c.sectionListRenderer)==null?void 0:(b=m.contents)==null?void 0:(x=b[0])==null?void 0:(P=x.itemSectionRenderer)==null?void 0:P.contents;if(!J)return!1;c=_.M(J);for(m=c.next();!m.done;m=c.next())if(b=void 0,(b=m.value)==null?0:b.searchFrictionViewModel)return!0;return!1};
_.V.computeShowSecondaryColumn=function(J,c){return!!(c&&c.secondaryContents&&J)};
_.V.activeChanged=function(){var J=this;this.active&&!this.renderSecondarySearchContainer?(window.addEventListener("resize",_.ME(this,this.debounceStampSecondarySearchContainerIfFits)),_.S5(function(){J.debounceStampSecondarySearchContainerIfFits()})):this.active||window.removeEventListener("resize",_.ME(this,this.debounceStampSecondarySearchContainerIfFits))};
_.V.persistentGuideChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
_.V.stampSecondarySearchContainerIfFits=function(){!this.renderSecondarySearchContainer&&window.innerWidth>=1090&&(this.renderSecondarySearchContainer=!0)};
_.V.debounceStampSecondarySearchContainerIfFits=function(){_.hO(this,"stampSecondarySearchContainerIfFits",this.boundStampSecondarySearchContainerIfFits)};
_.V.onRetrieveLocation=function(J,c){c.locationRetrieved(location.pathname+location.search+"&pbj=1",void 0);J.stopPropagation()};
_.V.dataChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
l5.prototype.dataChanged=l5.prototype.dataChanged;l5.prototype.onRetrieveLocation=l5.prototype.onRetrieveLocation;l5.prototype.persistentGuideChanged=l5.prototype.persistentGuideChanged;l5.prototype.activeChanged=l5.prototype.activeChanged;_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],l5.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],l5.prototype,"ytRendererBehavior",void 0);
_.O([_.f(_.SO.YtdGuideStateAwareBehavior),_.R("design:type",Object)],l5.prototype,"ytdGuideStateAwareBehavior",void 0);_.O([_.f(_.rI),_.R("design:type",Object)],l5.prototype,"ironResizableBehavior",void 0);_.O([_.U(),_.R("design:type",Boolean)],l5.prototype,"active",void 0);_.O([_.U(),_.R("design:type",Object)],l5.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0,value:function(){return _.w("enable_desktop_search_bigger_thumbs")}}),
_.R("design:type",Boolean)],l5.prototype,"useBiggerThumbs",void 0);_.O([_.U({reflectToAttribute:!0,value:function(){return _.mG("desktop_search_bigger_thumbs_style")}}),
_.R("design:type",String)],l5.prototype,"biggerThumbsStyle",void 0);_.O([_.U(),_.R("design:type",Object)],l5.prototype,"renderSecondarySearchContainer",void 0);_.O([_.U({computed:"computeShowSecondaryColumn(renderSecondarySearchContainer, data)"}),_.R("design:type",Boolean)],l5.prototype,"showSecondaryColumn",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeIsSearchFrictionPage(data)"}),_.R("design:type",Boolean)],l5.prototype,"isSearchFrictionPage",void 0);
_.O([_.U(),_.R("design:type",Object)],l5.prototype,"isSearch",void 0);_.O([_.U(),_.R("design:type",Object)],l5.prototype,"isSearchDova",void 0);_.O([_.NE("active"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],l5.prototype,"activeChanged",null);_.O([_.NE("guidePersistentAndVisible"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],l5.prototype,"persistentGuideChanged",null);
_.O([_.ps("yt-retrieve-location"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,Object]),_.R("design:returntype")],l5.prototype,"onRetrieveLocation",null);_.O([_.kr("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],l5.prototype,"dataChanged",null);l5=_.O([_.E({disableElementRegistration:!0,is:"ytd-two-column-search-results-renderer"})],l5);
_.v(l5,"ytd-two-column-search-results-renderer",function(){if(EDR!==void 0)return EDR;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return EDR=J},{mode:1});var yE=function(){var J=_.h.apply(this,arguments)||this;J.hasSearchHeader=!1;J.hasSecondaryContent=!1;J.hasBiggerThumbs=_.w("enable_desktop_search_bigger_thumbs");J.actionMap={"yt-show-search-contents-command":"onYtShowSearchContentsCommand"};return J};
_.D(yE,_.h);_.V=yE.prototype;_.V.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:_.uZ(["aa","eocs"])}}};
_.V.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.V.loadPage_=function(J){this.initCsi();J&&(this.data=J,_.q3("REFINEMENTS_TUPLE",["FromSearchResponse",J.refinements||[]]),this.ytRendererBehavior.parentComponent&&_.jf(this.ytRendererBehavior.parentComponent));this.updateTitle()};
_.V.initCsi=function(){_.LT("results",["ol","cpt"])};
_.V.updateTitle=function(){var J=_.E7(window.location.href,"q");J||(J=_.E7(window.location.href,"search_query"));_.cA(this.hostElement,"yt-update-title",J||"")};
_.V.onYtShowSearchContentsCommand=function(){this.set("data.hideContents",!1)};
_.V.dataChanged=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data);_.w("web_srp_data_changed_terminate_imp_killswitch")||_.m9(this.hostElement,"yt-terminate-video-preview-action")};
_.V.onReloadContinuationFinish=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data)};
_.V.computeHasSearchHeader=function(J){var c;J=J==null?void 0:(c=J.header)==null?void 0:c.searchHeaderRenderer;return!!J&&(!!J.searchFilterButton||!!J.chipBar)};
_.V.computeHasSecondaryContent=function(J){var c,m;return!!(J==null?0:(c=J.contents)==null?0:(m=c.twoColumnSearchResultsRenderer)==null?0:m.secondaryContents)};
_.eE.Object.defineProperties(yE,{template:{configurable:!0,enumerable:!0,get:function(){if(w6r===void 0){var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);w6r=J}J=w6r;return J}}});
yE.prototype.onReloadContinuationFinish=yE.prototype.onReloadContinuationFinish;yE.prototype.dataChanged=yE.prototype.dataChanged;_.O([_.f(_.D$.YtPageBehavior),_.R("design:type",Object)],yE.prototype,"ytPageBehavior",void 0);_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],yE.prototype,"actionHandlerBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],yE.prototype,"ytRendererBehavior",void 0);
_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],yE.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.Sy),_.R("design:type",Object)],yE.prototype,"ytContinuationHandlerBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],yE.prototype,"data",void 0);_.O([_.U({value:!0}),_.R("design:type",Boolean)],yE.prototype,"monitorScroll",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],yE.prototype,"hasSearchHeader",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],yE.prototype,"hasSecondaryContent",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],yE.prototype,"hasBiggerThumbs",void 0);_.O([_.kr("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],yE.prototype,"dataChanged",null);
_.O([_.ps("yt-reload-continuation-finish"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],yE.prototype,"onReloadContinuationFinish",null);yE=_.O([_.E({is:"ytd-search"})],yE);_.l6.registerService(_.XMq,yE);
_.qi();
}catch(e){_._DumpException(e)}
try{
_.ZS("h8y2qb");
var s0R=function(J){if(J=_.VmG(J)){var c;(c=J.sources)!=null&&c[0]?(c=_.MmR(J),c=c<1?"VERTICAL":c>1?"HORIZONTAL":"SQUARE"):c=void 0;return c}},Wl=function(J){_.CC.call(this,"upload");
this.opts.query=J},DW4=function(J,c){return _.C(Lre,{data:J,
onYtNavigate:c})},Wrs=function(J,c){return _.P2(J.entities,"pageHeaderEntity",c)},udu=function(J,c){return J.map(function(m){if(m.tabRenderer)return zaf(m.tabRenderer);
if(m.expandableTabRenderer&&c){var b=m.expandableTabRenderer;return{customTabRenderable:function(){return c(b)}}}return{}})},zaf=function(J){return{identifier:J.tabIdentifier,
aTagConfig:_.Uv({innertubeCommand:J.endpoint,forceNewState:!0}),title:J.title,selected:J.selected,disabled:J.unselectable,icon:J.icon}},fm1=function(J){return _.J7({type:"SET_TAB_GESTURES_IS_ACTIVE",
payload:J})},YyR=function(J){if(!_.FG(document,"gtm-noscript")){var c=document.createElement("noscript");
c.id="gtm-noscript";c.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id='+J+'" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(c)}};_.yv(Wl,_.CC);Wl.prototype.JSC$8084_setLabel=function(J){Wl.superClass_.JSC$8084_setLabel.call(this,J);return this};
Wl.prototype.addUploadMetadata=function(J,c){Wl.superClass_.addUploadMetadata.call(this,J,c);return this};var XnF=function(J){if(J!=="youtubebanner"&&J!=="youtube-channel-banner")throw Error("Tl");Wl.call(this,J)};
_.D(XnF,Wl);XnF.prototype.JSC$8084_setLabel=function(J){Wl.prototype.JSC$8084_setLabel.call(this,J);return this};
XnF.prototype.addUploadMetadata=function(J,c){Wl.prototype.addUploadMetadata.call(this,J,c);return this};var ZDo=[_.rI,{listeners:{"app-reset-layout":"_appResetLayoutHandler","iron-resize":"resetLayout"},attached:function(){this.fire("app-reset-layout")},
_appResetLayoutHandler:function(J){_.rK(J).path[0]!==this&&(this.resetLayout(),J.stopPropagation())},
_updateLayoutStates:function(){console.error("unimplemented")},
resetLayout:function(){var J=this._updateLayoutStates.bind(this);this._layoutDebouncer=_.BE(this._layoutDebouncer,_.rp,J);_.gD(this._layoutDebouncer);this._notifyDescendantResize()},
_notifyLayoutChanged:function(){var J=this;requestAnimationFrame(function(){J.fire("app-reset-layout")})},
_notifyDescendantResize:function(){this.isAttached&&this._interestedResizables.forEach(function(J){this.resizerShouldNotify(J)&&this._notifyDescendant(J)},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 qyR=[_.SBZ,{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(J,c){var m=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[J];if(!m)throw new ReferenceError(this._getUndefinedMsg(J));J=this._boundEffect(m,c||{});J.setUp();return J},
_effectsChanged:function(J,c,m){this._tearDownEffects();J&&m&&(J.split(" ").forEach(function(b){var x;b!==""&&((x=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[b])?this._effects.push(this._boundEffect(x,c[b])):console.warn(this._getUndefinedMsg(b)))},this),this._setUpEffect())},
_layoutIfDirty:function(){return this.offsetWidth},
_boundEffect:function(J,c){c=c||{};var m=parseFloat(c.startsAt||0),b=parseFloat(c.endsAt||1),x=b-m,P=function(){};
b=m===0&&b===1?J.run:function(p,t){J.run.call(this,Math.max(0,(p-m)/x),t)};
return{setUp:J.setUp?J.setUp.bind(this,c):P,run:J.run?b.bind(this):P,tearDown:J.tearDown?J.tearDown.bind(this):P}},
_setUpEffect:function(){this.isAttached&&this._effects&&(this._effectsRunFn=[],this._effects.forEach(function(J){J.setUp()!==!1&&this._effectsRunFn.push(J.run)},this))},
_tearDownEffects:function(){this._effects&&this._effects.forEach(function(J){J.tearDown()});
this._effectsRunFn=[];this._effects=[]},
_runEffects:function(J,c){this._effectsRunFn&&this._effectsRunFn.forEach(function(m){m(J,c)})},
_scrollHandler:function(){this._scrollStateChanged()},
_scrollStateChanged:function(){if(!this.disabled){var J=this._clampedScrollTop;this._updateScrollState(J);this.threshold>0&&this._setThresholdTriggered(J>=this.threshold)}},
_getDOMRef:function(J){console.warn("_getDOMRef","`"+J+"` is undefined")},
_getUndefinedMsg:function(J){return"Scroll effect `"+J+"` is undefined. Did you forget to import app-layout/app-scroll-effects/effects/"+J+".html ?"}}];if(_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]!=null)throw Error("Ul`parallax-background");
_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]={setUp:function(J){var c={};J=parseFloat(J.scalar);c.background=this._getDOMRef("background");c.backgroundFrontLayer=this._getDOMRef("backgroundFrontLayer");c.backgroundRearLayer=this._getDOMRef("backgroundRearLayer");c.deltaBg=c.backgroundFrontLayer.offsetHeight-c.background.offsetHeight;c.deltaBg===0?(isNaN(J)&&(J=.8),c.deltaBg=(this._dHeight||0)*J):(isNaN(J)&&(J=
1),c.deltaBg*=J);this._fxParallaxBackground=c},
run:function(J){var c=this._fxParallaxBackground;this.transform("translate3d(0px, "+c.deltaBg*Math.min(1,J)+"px, 0px)",c.backgroundFrontLayer);c.backgroundRearLayer&&this.transform("translate3d(0px, "+c.deltaBg*Math.min(1,J)+"px, 0px)",c.backgroundRearLayer)},
tearDown:function(){delete this._fxParallaxBackground}};var UWs;var SyR;var ha5=function(){};
_.V=ha5.prototype;_.V._scrollTargetChanged=function(){};
_.V.scroll=function(){};
_.V._isValidScrollTarget=function(){};
_.V._toggleScrollListener=function(){};
_.V.toggleScrollListener=function(){};
_.V.createEffect=function(){};
_.V._effectsChanged=function(){};
_.V._layoutIfDirty=function(){};
_.V._boundEffect=function(){};
_.V._setUpEffect=function(){};
_.V._tearDownEffects=function(){};
_.V._runEffects=function(){};
_.V._scrollHandler=function(){};
_.V._scrollStateChanged=function(){};
_.V._getUndefinedMsg=function(){};
_.V.notifyResize=function(){};
_.V.assignParentResizable=function(){};
_.V.stopResizeNotificationsFor=function(){};
_.V._subscribeIronResize=function(){};
_.V._unsubscribeIronResize=function(){};
_.V.resizerShouldNotify=function(){};
_.V._onDescendantIronResize=function(){};
_.V._fireResize=function(){};
_.V._onIronRequestResizeNotifications=function(){};
_.V._parentResizableChanged=function(){};
_.V._notifyDescendant=function(){};
_.V._requestResizeNotifications=function(){};
_.V._findParent=function(){};
_.V._appResetLayoutHandler=function(){};
_.V.resetLayout=function(){};
_.V._notifyLayoutChanged=function(){};
_.V._notifyDescendantResize=function(){};
_.V._setThresholdTriggered=function(){};
ha5=_.sB({_template:function(){if(SyR!==void 0)return SyR;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);var c=J.content,m=c.insertBefore;UWs===void 0&&(UWs=document.createElement("template"));var b=UWs;m.call(c,b.content.cloneNode(!0),J.content.firstChild);return SyR=J},
is:"tp-yt-app-header",behaviors:[qyR,ZDo],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 J=_.rK(this.$.slot).getDistributedNodes(),c=0,m;m=J[c];c++)if(m.nodeType===Node.ELEMENT_NODE)if(m.hasAttribute("sticky")){this._stickyElRef=m;break}else this._stickyElRef||(this._stickyElRef=m);return this._stickyElRef},_configChanged:function(){this.resetLayout();this._notifyLayoutChanged()},
_updateLayoutStates:function(){if(this.offsetWidth!==0||this.offsetHeight!==0){var J=this._clampedScrollTop,c=this._height===0||J===0,m=this.disabled;this._height=this.offsetHeight;this._stickyElRef=null;this.disabled=!0;c||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();c?this._updateScrollState(J,!0):(this._updateScrollState(this._lastScrollTop,
!0),this._layoutIfDirty());this.disabled=m}},
_updateScrollState:function(J,c){if(this._height!==0){var m=0,b=this._top;var x=this._maxHeaderTop;var P=J-this._lastScrollTop,p=Math.abs(P),t=J>this._lastScrollTop,I=performance.now();this._mayMove()&&(m=this._clamp(this.reveals?b+P:J,0,x));J>=this._dHeight&&(m=this.condenses&&!this.fixed?Math.max(this._dHeight,m):m,this.style.transitionDuration="0ms");if(this.reveals&&!this.disabled&&p<100){if(I-this._initTimestamp>300||this._wasScrollingDown!==t)this._initScrollTop=J,this._initTimestamp=I;J>=x&&
(Math.abs(this._initScrollTop-J)>30||p>10?(t&&J>=x?m=x:!t&&J>=this._dHeight&&(m=this.condenses&&!this.fixed?this._dHeight:0),this.style.transitionDuration=this._clamp((m-b)/(P/(I-this._lastTimestamp)),0,300)+"ms"):m=this._top)}x=this._dHeight===0?J>0?1:0:m/this._dHeight;c||(this._lastScrollTop=J,this._top=m,this._wasScrollingDown=t,this._lastTimestamp=I);if(c||x!==this._progress||b!==m||J===0)this._progress=x,this._runEffects(x,m),this._transformHeader(m)}},
_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(J){this.translate3d(0,-J+"px",0);this._stickyEl&&this.translate3d(0,this.condenses&&J>=this._stickyElTop?Math.min(J,this._dHeight)-this._stickyElTop+"px":0,0,this._stickyEl)},
_clamp:function(J,c,m){return Math.min(m,Math.max(c,J))},
_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),_.rK(this.root).insertBefore(this._bgContainer,this.$.contentContainer))},
_getDOMRef:function(J){switch(J){case "backgroundFrontLayer":return this._ensureBgContainers(),this._bgFront;case "backgroundRearLayer":return this._ensureBgContainers(),this._bgRear;case "background":return this._ensureBgContainers(),this._bgContainer;case "mainTitle":return _.rK(this).querySelector("[main-title]");case "condensedTitle":return _.rK(this).querySelector("[condensed-title]")}return null},
getScrollState:function(){return{progress:this._progress,top:this._top}}});var dWo;var $We;_.sB({_template:function(){if($We!==void 0)return $We;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);var c=J.content,m=c.insertBefore;dWo===void 0&&(dWo=document.createElement("template"));var b=dWo;m.call(c,b.content.cloneNode(!0),J.content.firstChild);return $We=J},
is:"tp-yt-app-header-layout",behaviors:[ZDo],properties:{hasScrollingRegion:{type:Boolean,value:!1,reflectToAttribute:!0}},observers:["resetLayout(isAttached, hasScrollingRegion)"],get header(){return _.rK(this.$.headerSlot).getDistributedNodes()[0]},_updateLayoutStates:function(){var J=this.header;if(this.isAttached&&J){this.$.wrapper.classList.remove("initializing");J.scrollTarget=this.hasScrollingRegion?this.$.contentContainer:this.ownerDocument.documentElement;if(this.hasScrollingRegion)J.style.left=
"",J.style.right="";else{var c=this.getBoundingClientRect(),m=document.documentElement.clientWidth-c.right;J.style.left=c.left+"px";J.style.right=m+"px"}c=this.$.contentContainer.style;m=J.offsetHeight;J.fixed&&!J.condenses&&this.hasScrollingRegion?(c.marginTop=m+"px",c.paddingTop=""):(c.paddingTop=m+"px",c.marginTop="")}}});var Guu=new _.Q("replaceFeedContentAction");var EXs=new _.Q("alertCommand");var vXR=new _.Q("manageLabsStateCommand");var OD1=new _.Q("inlineFormRenderer");var zJ=new _.Q("playlistSidebarPrimaryInfoRenderer");var A_R=new _.Q("productDetailsThumbnailRenderer"),RaS=new _.Q("productDetailsVariantRenderer"),oXs=new _.Q("productDetailsVariantOptionRenderer"),Q0S=new _.Q("productDetailsOffersContainerRenderer"),eah=new _.Q("productDetailsOfferRenderer");var j01=new _.Q("shoppingFlaggingRenderer");var Fro=new _.Q("playlistBylineRenderer");var lmh=new _.Q("insertChannelTabCommand");var uV=function(){return _.Cs.apply(this,arguments)||this};
_.D(uV,_.Cs);_.V=uV.prototype;_.V.activeChanged=function(){if(this.active){var J=_.Bj(this.hostElement).querySelector("#header");J&&_.cA(J,"iron-resize");window.addEventListener("scroll",_.ME(this,this.onScroll))}else window.removeEventListener("scroll",_.ME(this,this.onScroll)),_.cA(this.hostElement,"yt-request-panel-mode-change",{mode:"seamed"})};
_.V.guideVisibleChanged=function(){var J=_.Bj(this.hostElement).querySelector("#header");J&&_.cA(J,"iron-resize")};
_.V.onScroll=function(){var J=this;_.hO(this,"onScroll",function(){var c=_.Bj(J.hostElement).querySelector("#header");c&&c.polymerController&&(c=c.polymerController.getScrollState().progress===1?"standard":"seamed",_.cA(J.hostElement,"yt-request-panel-mode-change",{mode:c}))},10)};
_.V.tabsChanged=function(){if(this.tabs){for(var J=null,c=0,m=this.tabs.length;c<m;++c){var b=this.tabs[c].tabRenderer;if(b&&b.selected){J=c;break}}this.selected=J}};
_.V.onTabsActivate=function(J){_.cA(this.hostElement,"yt-navigate",{endpoint:this.tabs[J.detail.selected].tabRenderer.endpoint})};
uV.prototype.tabsChanged=uV.prototype.tabsChanged;uV.prototype.guideVisibleChanged=uV.prototype.guideVisibleChanged;uV.prototype.activeChanged=uV.prototype.activeChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],uV.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.SO.YtdGuideStateAwareBehavior),_.R("design:type",Object)],uV.prototype,"ytdGuideStateAwareBehavior",void 0);_.O([_.U(),_.R("design:type",Array)],uV.prototype,"tabs",void 0);
_.O([_.U(),_.R("design:type",Object)],uV.prototype,"selected",void 0);_.O([_.U(),_.R("design:type",Boolean)],uV.prototype,"active",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],uV.prototype,"disableHeaderFluidWidth",void 0);_.O([_.NE("active"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],uV.prototype,"activeChanged",null);
_.O([_.NE("guidePersistentAndVisible"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],uV.prototype,"guideVisibleChanged",null);_.O([_.NE("tabs"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],uV.prototype,"tabsChanged",null);uV=_.O([_.au()],uV);var y_R=[_.g.YtRendererBehavior,_.SO.YtdGuideStateAwareBehavior,uV.prototype];var Bk5=2/3,gXh=_.rs(130749),JzF=function(J,c){var m=this;this.element=J;this.layer=0;this.refreshConfig={startPosition:0,startAction:function(){m.startAction()},
draggingClass:"gesture-dragging",triggers:{down:{endPosition:80,threshold:120,disableFinish:!0,translateBack:!0,moveRatio:Bk5,moveAction:function(b){m.moveAction(b)},
triggerAction:function(){m.element.isReloading=!0;_.Ui(_.C7(),{visualElement:gXh});_.p7.instance.resolveCommand({signalAction:{signal:"SOFT_RELOAD_PAGE"}},{form:{element:m.element}})}}}};
_.c$(_.C7(),gXh,this.layer);this.gesture=new _.pT(J,c,this.refreshConfig,"pan-down");this.attach()};
_.V=JzF.prototype;_.V.attach=function(){this.gesture.attach()};
_.V.detach=function(){this.gesture.detach()};
_.V.reset=function(){this.element.close()};
_.V.startAction=function(){this.element.reset();this.element.isReloading=!1};
_.V.moveAction=function(J){this.element.rotation=J*360};var cz1=_.rs(130750),fT=function(J,c,m,b,x){var P=this;this.element=J;this.parent=m;this.channelHeader=b;this.ytdReduxDispatch=x;this.layer=0;this.scrollPositionNeedsUpdate=!1;this.scrollPositionForTabs=new Map;this.tabConfig={startPosition:0,draggingClass:"gesture-tab-dragging",startAction:function(){P.tabsStartAtInPx=P.channelHeader.clientHeight-48;var p;(p=P.selectedTab)!=null&&p.title&&(p=_.BG().resolve(_.y6(_.oO)))&&(p=p.getCurrentPage(),P.lastVisitedTabScrollPosition=p.getScrollTop(),P.previousTab&&
((P.lastVisitedTabScrollPosition===void 0?0:P.lastVisitedTabScrollPosition<P.channelHeader.clientHeight-48)?P.scrollPositionForTabs.has(P.selectedTab.title)&&P.scrollPositionForTabs.delete(P.selectedTab.title):P.scrollPositionForTabs.set(P.selectedTab.title,p.getScrollTop())))},
triggers:{right:{endPosition:500,threshold:100,transitionEndPosition:mns(),triggerAction:function(){P.navigate(P.previousTab)},
moveAction:function(p,t){P.moveAction(p,t)}},
left:{endPosition:-500,threshold:-100,transitionEndPosition:-mns(),triggerAction:function(){P.navigate(P.nextTab)},
moveAction:function(p,t){P.moveAction(p,t)}}}};
_.c$(_.C7(),cz1,this.layer);this.gesture=new _.pT(J,c,this.tabConfig);this.attach()};
fT.prototype.attach=function(){this.gesture.attach()};
fT.prototype.detach=function(){this.gesture.detach()};
fT.prototype.tabsChanged=function(J){if(J){var c=void 0;this.nextTab=this.previousTab=this.selectedTab=void 0;J=_.M(J);for(var m=J.next();!m.done;m=J.next()){m=m.value.tabRenderer;this.selectedTab&&!this.nextTab&&(this.nextTab=m);var b=void 0;if((b=m)==null?0:b.selected)this.previousTab=c,this.selectedTab=m;c=m}c=this.gesture;J=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}});
c.config=J;this.scrollPositionNeedsUpdate=!0}};
fT.prototype.moveAction=function(J,c){if(!this.tabsElement){var m;this.tabsElement=(m=this.parent.header)==null?void 0:m.tabsElement;c==="right"&&this.previousTab?_.BWQ(_.IT.instance,this.previousTab.endpoint,{},""):c==="left"&&this.nextTab&&_.BWQ(_.IT.instance,this.nextTab.endpoint,{},"");if(!this.tabsElement)return}m=this.tabsElement._pos;c==="right"&&(J*=-1);this.tabsElement._positionBar(m.width,m.left*1+m.width*J)};
var mns=function(){var J,c;return(c=(J=_.BG().resolve(_.oO).getCurrentPage())==null?void 0:J.clientWidth)!=null?c:0};
fT.prototype.navigate=function(J){this.element.data=void 0;if(J=J==null?void 0:J.endpoint)this.ytdReduxDispatch(fm1(!0)),_.Ui(_.C7(),{visualElement:cz1}),_.p7.instance.resolveCommand({navigateAction:{endpoint:J}},{form:{element:this.element}})};var bWu;var xnR;var Yk=function(){return _.h.apply(this,arguments)||this};
_.D(Yk,_.h);Yk.prototype.configureRendererStamper=function(){return{"data.deleteButton":{id:"delete-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Yk.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],Yk.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Yk.prototype,"data",void 0);Yk=_.O([_.E({is:"ytd-labs-edit-renderer",disableElementRegistration:!0})],Yk);
_.v(Yk,"ytd-labs-edit-renderer",function(){if(xnR!==void 0)return xnR;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return xnR=J},{mode:1});var Vi4;var XK=function(){var J=_.h.apply(this,arguments)||this;J.dark=!1;J.headerBackgroundLight="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";J.headerBackgroundDark="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";J.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return J};
_.D(XK,_.h);XK.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
XK.prototype.ready=function(){var J=document.documentElement.hasAttribute("dark");this.setBackgroundImage(J);this.dark=J};
XK.prototype.onDarkModeToggledAction=function(J){this.setBackgroundImage(J);this.dark=J};
XK.prototype.setBackgroundImage=function(J){_.V1(this.hostElement,{"--yt-labs-header-background":"url("+(J?this.headerBackgroundDark:this.headerBackgroundLight)+")"})};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],XK.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],XK.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],XK.prototype,"ytActionHandlerBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],XK.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],XK.prototype,"dark",void 0);
XK=_.O([_.E({is:"ytd-labs-header-renderer",disableElementRegistration:!0})],XK);
_.v(XK,"ytd-labs-header-renderer",function(){if(Vi4!==void 0)return Vi4;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return Vi4=J},{mode:1});var Pfp;var Z$=function(){var J=_.h.apply(this,arguments)||this;J.actionMap={"yt-check-labs-opted-in-state":"onCheckLabsOptedInState","yt-manage-labs-state-command":"onManageLabsState"};return J};
_.D(Z$,_.h);Z$.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"}}}}}};
Z$.prototype.onYtToggleButton=function(J){this.notifyPath("data.primaryButton.toggleButtonRenderer.isToggled",J.detail.toggled)};
Z$.prototype.onManageLabsState=function(J){if(J=_.L(J,vXR))J.stateChange==="LABS_STATE_TYPE_OVERRIDE_OPT_IN"&&this.data?J.labsItemId!==this.data.labsItemId?this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1):this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0):this.data&&J.labsItemId===this.data.labsItemId&&(J.stateChange==="LABS_STATE_TYPE_OPT_IN"?_.m9(this.hostElement,"yt-check-labs-opted-in-state").some(function(c){return c})&&this.data.confirmationDialogCommand?_.PA(this.hostElement,
[this.data.confirmationDialogCommand],this.hostElement):this.data.optInCommand&&(_.BG().resolve(_.gu).resolveCommand(this.data.optInCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0)):this.data.optOutCommand&&J.stateChange==="LABS_STATE_TYPE_OPT_OUT"&&(_.BG().resolve(_.gu).resolveCommand(this.data.optOutCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1)))};
Z$.prototype.onCheckLabsOptedInState=function(){var J=this.get("data.primaryButton.toggleButtonRenderer");return J?J.isToggled:!1};
_.eE.Object.defineProperties(Z$.prototype,{itemStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.itemStyle}}});
Z$.prototype.onYtToggleButton=Z$.prototype.onYtToggleButton;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Z$.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],Z$.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],Z$.prototype,"ytActionHandlerBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Z$.prototype,"data",void 0);
_.O([_.U({reflectToAttribute:!0}),_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],Z$.prototype,"itemStyle",null);_.O([_.ps("yt-toggle-button"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],Z$.prototype,"onYtToggleButton",null);Z$=_.O([_.E({is:"ytd-labs-item-renderer",disableElementRegistration:!0})],Z$);
_.v(Z$,"ytd-labs-item-renderer",function(){if(Pfp!==void 0)return Pfp;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return Pfp=J},{mode:1});var MiR;var pC4;var qt=function(){return _.h.apply(this,arguments)||this};
_.D(qt,_.h);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],qt.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],qt.prototype,"data",void 0);qt=_.O([_.E({is:"ytd-live-chat-history-new-sponsor-chip-renderer",disableElementRegistration:!0})],qt);
_.v(qt,"ytd-live-chat-history-new-sponsor-chip-renderer",function(){if(pC4!==void 0)return pC4;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return pC4=J},{mode:1});var Ng5;var UN=function(){return _.h.apply(this,arguments)||this};
_.D(UN,_.h);UN.prototype.observeSuperchatChip=function(){if(this.data){var J={"--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)};_.V1(this.hostElement,J)}};
UN.prototype.colorFromDecimal=function(J){return _.Zn(Number(J||0))};
UN.prototype.observeSuperchatChip=UN.prototype.observeSuperchatChip;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],UN.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],UN.prototype,"data",void 0);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],UN.prototype,"observeSuperchatChip",null);UN=_.O([_.E({is:"ytd-live-chat-history-super-chat-chip-renderer",disableElementRegistration:!0})],UN);
_.v(UN,"ytd-live-chat-history-super-chat-chip-renderer",function(){if(Ng5!==void 0)return Ng5;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return Ng5=J},{mode:1});var SP=function(){return _.h.apply(this,arguments)||this};
_.D(SP,_.h);SP.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"}}}};
_.eE.Object.defineProperties(SP.prototype,{hideMessageBlock:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!this.data.charityName&&!!this.data.chip}}});
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],SP.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],SP.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.XP),_.R("design:type",Object)],SP.prototype,"ytdDismissibleItemBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],SP.prototype,"data",void 0);_.O([_.q("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],SP.prototype,"hideMessageBlock",null);
SP=_.O([_.E({is:"ytd-live-chat-history-entry-renderer",disableElementRegistration:!0})],SP);
_.v(SP,"ytd-live-chat-history-entry-renderer",function(){if(MiR!==void 0)return MiR;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return MiR=J},{mode:1});var tiS;var h1=function(){return _.h.apply(this,arguments)||this};
_.D(h1,_.h);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],h1.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],h1.prototype,"data",void 0);h1=_.O([_.E({is:"ytd-channel-options-renderer",disableElementRegistration:!0})],h1);
_.v(h1,"ytd-channel-options-renderer",function(){if(tiS!==void 0)return tiS;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return tiS=J},{mode:1});var Ige;var dG=function(){return _.h.apply(this,arguments)||this};
_.D(dG,_.h);dG.prototype.configureRendererStamper=function(){return{"data.resumeButton":{id:"resume-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],dG.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],dG.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],dG.prototype,"data",void 0);dG=_.O([_.E({is:"ytd-settings-email-item-renderer",disableElementRegistration:!0})],dG);
_.v(dG,"ytd-settings-email-item-renderer",function(){if(Ige!==void 0)return Ige;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return Ige=J},{mode:1});var Kkf;var $k=function(){return _.h.apply(this,arguments)||this};
_.D($k,_.h);$k.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"}}}};
$k.prototype.getExpansionIcon=function(J){return J?"COLLAPSE":"EXPAND"};
$k.prototype.onToggleListExpansion=function(){this.expanded=!this.expanded};
_.eE.Object.defineProperties($k.prototype,{emailListExpanded:{configurable:!0,enumerable:!0,get:function(){return this.expanded?"true":"false"}}});
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],$k.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],$k.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],$k.prototype,"data",void 0);_.O([_.U({value:!1,reflectToAttribute:!0}),_.R("design:type",Boolean)],$k.prototype,"expanded",void 0);_.O([_.q("expanded"),_.R("design:type",String),_.R("design:paramtypes",[])],$k.prototype,"emailListExpanded",null);
_.O([_.Iu("#options"),_.R("design:type",Object)],$k.prototype,"options",void 0);$k=_.O([_.E({is:"ytd-settings-email-list-renderer",disableElementRegistration:!0})],$k);
_.v($k,"ytd-settings-email-list-renderer",function(){if(Kkf!==void 0)return Kkf;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return Kkf=J},{mode:1});var Cfe;var GJ=function(){var J=_.h.apply(this,arguments)||this;J.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return J};
_.D(GJ,_.h);GJ.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"}}}};
GJ.prototype.handleSignalActionSubmitForm=function(){var J,c=(J=this.formRenderer)==null?void 0:J.getForm();c&&this.data.serviceEndpoint&&_.BG().resolve(_.gu).resolveCommand(this.data.serviceEndpoint,{form:Object.assign({},c,{element:this.hostElement})})};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],GJ.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],GJ.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],GJ.prototype,"ytActionHandlerBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],GJ.prototype,"data",void 0);_.O([_.Iu("yt-form-renderer"),_.R("design:type",Object)],GJ.prototype,"formRenderer",void 0);
GJ=_.O([_.E({is:"ytd-settings-gaia-link-renderer",disableElementRegistration:!0})],GJ);
_.v(GJ,"ytd-settings-gaia-link-renderer",function(){if(Cfe!==void 0)return Cfe;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return Cfe=J},{mode:1});var agp;var EN=function(){var J=_.h.apply(this,arguments)||this;J.actionMap={"yt-settings-update-options-command":"handleUpdateOptionsCommand"};return J};
_.D(EN,_.h);EN.prototype.dataChanged=function(){this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_AV1_OPTIONS"&&_.H1F()&&this.set("data.hidden",!1)};
EN.prototype.onSwitchReady=function(){var J=this;this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_PUSH_NOTIFICATIONS_ENABLED"&&_.w("service_worker_push_enabled")&&navigator.serviceWorker.ready.then(function(){_.k$4().then(function(c){c&&(Notification.permission==="default"?J.set("data.hidden",!1):Notification.permission==="granted"&&_.jX("NotificationsDisabled").then(function(m){m||_.m9(J.hostElement,"yt-toggle-settings-switch",[J.data.id,!m]);J.set("data.hidden",!1)}).catch(function(){}))})})};
EN.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}}}}};
EN.prototype.handleUpdateOptionsCommand=function(J){(J=_.L(J,_.C0C))&&this.data&&this.data.id===J.id&&(this.set("data.hidden",J.hidden),J.text!==void 0&&this.set("data.text",J.text),J.clearOptions&&this.set("data.options",[]))};
EN.prototype.onSwitchReady=EN.prototype.onSwitchReady;EN.prototype.dataChanged=EN.prototype.dataChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],EN.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],EN.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],EN.prototype,"ytActionHandlerBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],EN.prototype,"data",void 0);
_.O([_.kr("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],EN.prototype,"dataChanged",null);_.O([_.ps("yt-settings-switch-ready"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],EN.prototype,"onSwitchReady",null);EN=_.O([_.E({is:"ytd-settings-options-renderer",disableElementRegistration:!0})],EN);
_.v(EN,"ytd-settings-options-renderer",function(){if(agp!==void 0)return agp;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return agp=J},{mode:1});var kpR;var vl=function(){return _.h.apply(this,arguments)||this};
_.D(vl,_.h);vl.prototype.onYtExpanderMoreTapped=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
vl.prototype.configureRendererStamper=function(){return{"data.attributionLinkButtonRenderer":{id:"attribution-link-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{disableTextTransform:!0}}}}}};
vl.prototype.onYtExpanderMoreTapped=vl.prototype.onYtExpanderMoreTapped;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],vl.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],vl.prototype,"ytComponentBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],vl.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],vl.prototype,"data",void 0);
_.O([_.ps("yt-expander-more-tapped"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],vl.prototype,"onYtExpanderMoreTapped",null);vl=_.O([_.E({disableElementRegistration:!0,is:"ytd-product-details-description-renderer"})],vl);
_.v(vl,"ytd-product-details-description-renderer",function(){if(kpR!==void 0)return kpR;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return kpR=J},{mode:1});var HWr;var ON=function(){var J=_.h.apply(this,arguments)||this;J.shippingIcon="https://www.gstatic.com/images/icons/material/system/1x/local_shipping_grey600_48dp.png";J.shippingAddressIcon="https://www.gstatic.com/images/icons/material/system/1x/location_on_grey600_48dp.png";J.googleGuaranteeIcon="https://www.gstatic.com/images/icons/material/system/1x/google_guarantee_grey600_48dp.png";J.returnPolicyIcon="https://www.gstatic.com/images/icons/material/system/1x/undo_grey600_48dp.png";return J};
_.D(ON,_.h);ON.prototype.configureRendererStamper=function(){return{"data.purchaseButtonRenderer":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.purchaseButtonRenderers":{id:"purchase-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.eE.Object.defineProperties(ON.prototype,{showAdditionalFees:{configurable:!0,enumerable:!0,get:function(){var J,c;return((J=this.data)==null?void 0:(c=J.offerData)==null?void 0:c.additionalFeesText)!==""}},
showMultiPurchaseButtons:{configurable:!0,enumerable:!0,get:function(){var J,c;return((J=this.data)==null?void 0:J.purchaseButtonRenderers)!==void 0&&((c=this.data)==null?void 0:c.purchaseButtonRenderers.length)!==0}},
showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var J,c;return!((J=this.data)==null||!J.formattedFromMerchantText)&&(!((c=this.data)==null||!c.purchaseButtonRenderer)||this.showMultiPurchaseButtons)}}});
_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],ON.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],ON.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],ON.prototype,"ytComponentBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],ON.prototype,"data",void 0);
_.O([_.U({type:_.w("kevlar_property_type_migration_killswitch")?String:void 0}),_.R("design:type",Object)],ON.prototype,"shippingIcon",void 0);_.O([_.U({type:_.w("kevlar_property_type_migration_killswitch")?String:void 0}),_.R("design:type",Object)],ON.prototype,"shippingAddressIcon",void 0);_.O([_.U({type:_.w("kevlar_property_type_migration_killswitch")?String:void 0}),_.R("design:type",Object)],ON.prototype,"googleGuaranteeIcon",void 0);
_.O([_.U({type:_.w("kevlar_property_type_migration_killswitch")?String:void 0}),_.R("design:type",Object)],ON.prototype,"returnPolicyIcon",void 0);_.O([_.q("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],ON.prototype,"showAdditionalFees",null);_.O([_.q("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],ON.prototype,"showMultiPurchaseButtons",null);
_.O([_.q("data","showMultiPurchaseButtons"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],ON.prototype,"showPurchaseData",null);ON=_.O([_.E({disableElementRegistration:!0,is:"ytd-product-details-hero-offer-renderer"})],ON);
_.v(ON,"ytd-product-details-hero-offer-renderer",function(){if(HWr!==void 0)return HWr;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return HWr=J},{mode:1});var iWS;var noR;var A1=function(){return _.h.apply(this,arguments)||this};
_.D(A1,_.h);_.V=A1.prototype;_.V.attached=function(){this.hostElement.addEventListener("click",this.handleSelection);this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
_.V.onKeyDown=function(J){J=J.keyCode;J!==13&&J!==32||this.handleSelection()};
_.V.onMouseEnterImage=function(){var J;((J=this.data)==null?void 0:J.thumbnailDetails)!==void 0&&_.bJ(this.polymerController.hostElement,"ytd-product-details-variant-image-select",[this.data.thumbnailDetails])};
_.V.onMouseLeaveImage=function(){_.bJ(this.polymerController.hostElement,"ytd-product-details-variant-image-unselect")};
_.V.handleSelection=function(){this.data&&_.cA(this.hostElement,"ytd-product-details-thumbnail-renderer-selected",this.data.index)};
_.eE.Object.defineProperties(A1.prototype,{isSelected:{configurable:!0,enumerable:!0,get:function(){var J;return!((J=this.data)==null||!J.isSelected)}}});
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],A1.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],A1.prototype,"data",void 0);_.O([_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],A1.prototype,"isSelected",null);A1=_.O([_.E({disableElementRegistration:!0,is:"ytd-product-details-thumbnail-renderer"})],A1);
_.v(A1,"ytd-product-details-thumbnail-renderer",function(){if(noR!==void 0)return noR;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return noR=J},{mode:1});var Rq=function(){var J=_.h.apply(this,arguments)||this;var c={};J.actionMap=(c["ytd-product-details-variant-image-select"]="handlePreviewImageSelect",c["ytd-product-details-variant-image-unselect"]="handlePreviewImageDeselect",c);J.selectedThumbnailIndex=0;J.selectItem=function(m){m.target.onKeyDown(m)};
return J};
_.D(Rq,_.h);_.V=Rq.prototype;_.V.handlePreviewImageSelect=function(J){this.hoverThumbnail=J};
_.V.handlePreviewImageDeselect=function(){this.hoverThumbnail=void 0};
_.V.configureRendererStamper=function(){return{"populatedData.imageRenderer":{id:"items",mapping:{productDetailsThumbnailRenderer:{component:"ytd-product-details-thumbnail-renderer",attributes:{role:"option"}}}}}};
_.V.onThumbnailSelected=function(J,c){this.selectedThumbnailIndex=c};
_.V.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.selectedThumbnailIndex=0};
_.V.updateOffset=function(){var J=_.Bj(this.hostElement).querySelector("#scroll-container").clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-J));this.ytdHorizontalListBehavior.reposition_()};
_.eE.Object.defineProperties(Rq.prototype,{showThumbnails:{configurable:!0,enumerable:!0,get:function(){var J;if((J=this.data)==null?0:J.imageRenderer){var c,m;return((c=this.data)==null?void 0:(m=c.imageRenderer)==null?void 0:m.length)>1}return!1}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.hoverThumbnail!==void 0)return this.hoverThumbnail;var J;if((J=this.data)==null?0:J.imageRenderer){var c;return(c=_.L(this.data.imageRenderer[this.selectedThumbnailIndex],A_R))==null?void 0:c.thumbnailDetails}}},
populatedData:{configurable:!0,enumerable:!0,get:function(){var J=this,c,m,b,x=(b=(c=this.data)==null?void 0:(m=c.imageRenderer)==null?void 0:m.map(function(P,p){return{productDetailsThumbnailRenderer:Object.assign({},_.L(P,A_R),{index:p,isSelected:p===J.selectedThumbnailIndex})}}))!=null?b:[];
return Object.assign({},this.data,{imageRenderer:x})}}});
Rq.prototype.updateOffset=Rq.prototype.updateOffset;Rq.prototype.dataChanged=Rq.prototype.dataChanged;Rq.prototype.onThumbnailSelected=Rq.prototype.onThumbnailSelected;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Rq.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],Rq.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.yI.YtdHorizontalListBehavior),_.R("design:type",Object)],Rq.prototype,"ytdHorizontalListBehavior",void 0);
_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],Rq.prototype,"componentBehavior",void 0);_.O([_.f([_.yw.YtActionHandlerBehavior]),_.R("design:type",Object)],Rq.prototype,"actionHandlerBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Rq.prototype,"data",void 0);_.O([_.U({value:"$.items.children"}),_.R("design:type",String)],Rq.prototype,"itemsPath",void 0);_.O([_.U({value:3}),_.R("design:type",Number)],Rq.prototype,"initialCount",void 0);
_.O([_.Iu("#items"),_.R("design:type",Object)],Rq.prototype,"items",void 0);_.O([_.U(),_.R("design:type",Object)],Rq.prototype,"selectedThumbnailIndex",void 0);_.O([_.U(),_.R("design:type",Object)],Rq.prototype,"hoverThumbnail",void 0);_.O([_.q("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Rq.prototype,"showThumbnails",null);
_.O([_.ps("ytd-product-details-thumbnail-renderer-selected"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,Number]),_.R("design:returntype")],Rq.prototype,"onThumbnailSelected",null);_.O([_.q("data","selectedThumbnailIndex","hoverThumbnail"),_.R("design:type",Object),_.R("design:paramtypes",[])],Rq.prototype,"thumbnailDetails",null);_.O([_.q("data","selectedThumbnailIndex"),_.R("design:type",Object),_.R("design:paramtypes",[])],Rq.prototype,"populatedData",null);
_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Rq.prototype,"dataChanged",null);_.O([_.ps("iron-resize"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Rq.prototype,"updateOffset",null);Rq=_.O([_.E({disableElementRegistration:!0,is:"ytd-product-details-image-carousel-renderer"})],Rq);
_.v(Rq,"ytd-product-details-image-carousel-renderer",function(){if(iWS!==void 0)return iWS;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return iWS=J},{mode:_.mP("kevlar_poly_si_batch_j079")?1:2});var Tgf;var oq=function(){return _.h.apply(this,arguments)||this};
_.D(oq,_.h);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],oq.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],oq.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],oq.prototype,"componentBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],oq.prototype,"data",void 0);oq=_.O([_.E({disableElementRegistration:!0,is:"ytd-product-details-offer-renderer"})],oq);
_.v(oq,"ytd-product-details-offer-renderer",function(){if(Tgf!==void 0)return Tgf;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return Tgf=J},{mode:1});var wCf;var Qy=function(){var J=_.h.apply(this,arguments)||this;J.isOffersHidden=!0;return J};
_.D(Qy,_.h);Qy.prototype.toggleOffers=function(){this.isOffersHidden=!this.isOffersHidden;var J,c=_.L((J=this.data)==null?void 0:J.viewOffersButton,_.ur);c&&this.ytRendererBehavior.logExplicitClick(c)};
Qy.prototype.configureRendererStamper=function(){return{"data.offers":{id:"offer",mapping:{productDetailsOfferRenderer:"ytd-product-details-offer-renderer"}}}};
_.eE.Object.defineProperties(Qy.prototype,{firstOfferVendorLogoUrl:{configurable:!0,enumerable:!0,get:function(){var J,c,m,b;return(m=_.L((J=this.data)==null?void 0:(c=J.offers)==null?void 0:c[0],eah))==null?void 0:(b=m.offerData)==null?void 0:b.vendorLogoUrl}}});
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Qy.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],Qy.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],Qy.prototype,"componentBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Qy.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],Qy.prototype,"isOffersHidden",void 0);
_.O([_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],Qy.prototype,"firstOfferVendorLogoUrl",null);Qy=_.O([_.E({disableElementRegistration:!0,is:"ytd-product-details-offers-container-renderer"})],Qy);
_.v(Qy,"ytd-product-details-offers-container-renderer",function(){if(wCf!==void 0)return wCf;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return wCf=J},{mode:1});var rz5;var siR;var eP=function(){return _.h.apply(this,arguments)||this};
_.D(eP,_.h);eP.prototype.ready=function(){this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
eP.prototype.onMouseEnterImage=function(){this.isImageButton&&this.thumbnailDetails!==void 0&&_.bJ(this,"ytd-product-details-variant-image-select",[this.thumbnailDetails])};
eP.prototype.onMouseLeaveImage=function(){this.isImageButton&&_.bJ(this,"ytd-product-details-variant-image-unselect")};
_.eE.Object.defineProperties(eP.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 J;return((J=this.data)==null?void 0:J.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"}},
isUnavailable:{configurable:!0,enumerable:!0,get:function(){var J,c,m;return((J=this.data)==null?void 0:J.variantAvailability)==="VARIANT_AVAILABILITY_NO_OFFERS"||((c=this.data)==null?void 0:c.variantOptionState)==="VARIANT_OPTION_STATE_OTHER_ATTRIBUTE_WILL_CHANGE"||((m=this.data)==null?void 0:m.variantOptionState)==="VARIANT_OPTION_STATE_DISABLED"}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.isImageButton){var J;if(((J=this.data)==null?void 0:J.imageDetails)!==void 0)return this.data.imageDetails}}},
accessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var J,c;return this.isUnavailable?(J=this.data)==null?void 0:J.variantOptionUnavailableAccessibilityLabel:(c=this.data)==null?void 0:c.variantOptionAccessibilityLabel}}});
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],eP.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],eP.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],eP.prototype,"componentBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],eP.prototype,"data",void 0);_.O([_.U(),_.R("design:type",String)],eP.prototype,"displayType",void 0);
_.O([_.q("displayType","data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],eP.prototype,"isImageButton",null);_.O([_.q("displayType","data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],eP.prototype,"isPillButton",null);_.O([_.q("data"),_.U({reflectToAttribute:!0}),_.R("design:type",Boolean),_.R("design:paramtypes",[])],eP.prototype,"isActive",null);
_.O([_.q("data"),_.U({reflectToAttribute:!0}),_.R("design:type",Boolean),_.R("design:paramtypes",[])],eP.prototype,"isUnavailable",null);_.O([_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],eP.prototype,"thumbnailDetails",null);_.O([_.q("isUnavailable","data"),_.R("design:type",Object),_.R("design:paramtypes",[])],eP.prototype,"accessibilityLabel",null);eP=_.O([_.E({disableElementRegistration:!0,is:"ytd-product-details-variant-option-renderer"})],eP);
_.v(eP,"ytd-product-details-variant-option-renderer",function(){if(siR!==void 0)return siR;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return siR=J},{mode:1});var LkF;var jP=function(){var J=_.h.apply(this,arguments)||this;J.variantsExpanded=!1;J.hideShowMoreLessVariantButton=!0;J.initialized=!1;J.computeVariantsDebouncer=null;J.computeVariants=function(c){c=c===void 0?!1:c;J.variantsExpanded||J.showOptions()||!c||(J.variantsExpanded=!0);if(J.variantsExpanded){c=_.M(J.items.children);for(var m=c.next();!m.done;m=c.next())m.value.hidden=!1}J.initialized=!0};
return J};
_.D(jP,_.h);_.V=jP.prototype;_.V.ready=function(){var J=this;setTimeout(function(){J.computeVariants(!0)})};
_.V.showOptions=function(){for(var J=_.M(this.items.children),c=J.next();!c.done;c=J.next())c.value.hidden=!0;var m=this.container.getBoundingClientRect().width,b=0,x=J=0;c=!1;for(var P=_.M(this.items.children),p=P.next();!p.done;p=P.next()){p=p.value;p.hidden=!1;var t=p.getBoundingClientRect().width;if(b+t<m)b+=t;else if(++x<2)b=t;else break;J+=1;p.hasAttribute("is-active")&&(c=!0)}for(m=J;m<this.items.children.length;m++)this.items.children[m].hidden=!0;this.hideShowMoreLessVariantButton=J===this.items.children.length;
return c};
_.V.debouncedComputeVariants=function(){this.computeVariantsDebouncer=_.BE(this.computeVariantsDebouncer,_.E_.after(100),this.computeVariants)};
_.V.onShowMoreLessVariantsButtonClick=function(){var J;(J=this.data)!=null&&J.variantOptionRenderers&&(this.variantsExpanded=!this.variantsExpanded,this.computeVariants())};
_.V.configureRendererStamper=function(){return{"data.variantOptionRenderers":{id:"items",mapping:{productDetailsVariantOptionRenderer:{component:"ytd-product-details-variant-option-renderer",properties:{displayType:"[[displayType]]"}}}}}};
_.eE.Object.defineProperties(jP.prototype,{selectedOptionName:{configurable:!0,enumerable:!0,get:function(){var J,c,m=(J=this.data)==null?void 0:(c=J.variantOptionRenderers)==null?void 0:c.find(function(P){return _.L(P,oXs).variantOptionState==="VARIANT_OPTION_STATE_SELECTED"}),b,x;
return(x=(b=_.L(m,oXs))==null?void 0:b.name)!=null?x:""}},
displayType:{configurable:!0,enumerable:!0,get:function(){var J;return((J=this.data)==null?void 0:J.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"}}}});
jP.prototype.debouncedComputeVariants=jP.prototype.debouncedComputeVariants;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],jP.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],jP.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],jP.prototype,"componentBehavior",void 0);_.O([_.f(_.rI),_.R("design:type",Object)],jP.prototype,"ironResizableBehavior",void 0);
_.O([_.U(),_.R("design:type",Object)],jP.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],jP.prototype,"variantsExpanded",void 0);_.O([_.U(),_.R("design:type",Object)],jP.prototype,"hideShowMoreLessVariantButton",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],jP.prototype,"initialized",void 0);_.O([_.Iu("#items"),_.R("design:type",HTMLDivElement)],jP.prototype,"items",void 0);_.O([_.Iu("#container"),_.R("design:type",HTMLDivElement)],jP.prototype,"container",void 0);
_.O([_.Iu("#more-variants-button"),_.R("design:type",HTMLElement)],jP.prototype,"moreVariantsButton",void 0);_.O([_.q("data"),_.R("design:type",String),_.R("design:paramtypes",[])],jP.prototype,"selectedOptionName",null);_.O([_.NE("data","variantsExpanded"),_.ps("iron-resize"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],jP.prototype,"debouncedComputeVariants",null);
_.O([_.q("data"),_.R("design:type",String),_.R("design:paramtypes",[])],jP.prototype,"displayType",null);_.O([_.q("displayType"),_.R("design:type",Object),_.R("design:paramtypes",[])],jP.prototype,"variantItemsClassname",null);jP=_.O([_.E({disableElementRegistration:!0,is:"ytd-product-details-variant-renderer"})],jP);
_.v(jP,"ytd-product-details-variant-renderer",function(){if(LkF!==void 0)return LkF;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return LkF=J},{mode:1});var FK=function(){return _.h.apply(this,arguments)||this};
_.D(FK,_.h);
FK.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"}}}};
_.eE.Object.defineProperties(FK.prototype,{showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var J;return!((J=this.data)==null||!J.heroOfferRenderer)}},
showHeroOfferRenderer:{configurable:!0,enumerable:!0,get:function(){var J;return!((J=this.data)==null||!J.heroOfferRenderer)}},
showBrandText:{configurable:!0,enumerable:!0,get:function(){var J;return!((J=this.data)==null||!J.formattedByBrandText)}},
showOffers:{configurable:!0,enumerable:!0,get:function(){var J,c,m=(c=_.L((J=this.data)==null?void 0:J.offersContainerRenderer,Q0S))==null?void 0:c.offers;return m!==void 0&&(m==null?void 0:m.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 J,c,m;return((m=(J=this.data)==null?void 0:(c=J.variants)==null?void 0:c.map(function(b){var x,P;b=(P=(x=_.L(b,RaS))==null?void 0:x.variantOptionRenderers)==null?void 0:P.find(function(t){var I;return((I=_.L(t,oXs))==null?void 0:I.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"});
var p;return(p=_.L(b,oXs))==null?void 0:p.name}).filter(function(b){return typeof b==="string"}))!=null?m:[]).join(" \u2022 ")}},
shoppingReportingButtonData:{configurable:!0,enumerable:!0,get:function(){var J,c,m,b=(c=_.L((J=this.data)==null?void 0:J.shoppingFlaggingRenderer,j01))==null?void 0:(m=c.reportButton)==null?void 0:m.buttonRenderer;if(b)return{text:b.text,command:b.command,icon:{iconType:"FLAG"},accessibilityData:b.accessibilityData,trackingParams:b.trackingParams,loggingDirectives:b.loggingDirectives}}}});
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],FK.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],FK.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],FK.prototype,"componentBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],FK.prototype,"data",void 0);_.O([_.Iu("#image-carousel-renderer"),_.R("design:type",Object)],FK.prototype,"imageCarouselRenderer",void 0);
_.O([_.Iu("#hero-offer-renderer"),_.R("design:type",Object)],FK.prototype,"productDetailsHeroOfferRenderer",void 0);_.O([_.Iu("#variants"),_.R("design:type",Object)],FK.prototype,"productDetailsVariantRenderer",void 0);_.O([_.Iu("#offers"),_.R("design:type",Object)],FK.prototype,"productDetailsOffersContainerRenderer",void 0);_.O([_.Iu("#description-renderer"),_.R("design:type",Object)],FK.prototype,"productDetailsDescriptionRenderer",void 0);
_.O([_.q("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],FK.prototype,"showPurchaseData",null);_.O([_.q("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],FK.prototype,"showHeroOfferRenderer",null);_.O([_.q("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],FK.prototype,"showBrandText",null);_.O([_.q("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],FK.prototype,"showOffers",null);
_.O([_.q("showOffers","showPurchaseData"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],FK.prototype,"showBuySeparator",null);_.O([_.q("showOffers","showPurchaseData"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],FK.prototype,"showBuyCard",null);_.O([_.q("data"),_.R("design:type",String),_.R("design:paramtypes",[])],FK.prototype,"selectedVariantsText",null);_.O([_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],FK.prototype,"shoppingReportingButtonData",null);
FK=_.O([_.E({disableElementRegistration:!0,is:"ytd-product-details-renderer"})],FK);
_.v(FK,"ytd-product-details-renderer",function(){if(rz5!==void 0)return rz5;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return rz5=J},{mode:1});var Dno;var Wkr;var z7h;var lV=function(){return _.h.apply(this,arguments)||this};
_.D(lV,_.h);lV.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.eE.Object.defineProperties(lV.prototype,{vcBalanceWidgetStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_BALANCE_WIDGET_STYLE_UNKNOWN"}}});
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],lV.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],lV.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],lV.prototype,"data",void 0);_.O([_.U(),_.R("design:type",String)],lV.prototype,"formattedAmount",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],lV.prototype,"ariaLabel",void 0);
_.O([_.U({reflectToAttribute:!0}),_.q("data.style"),_.R("design:type",String),_.R("design:paramtypes",[])],lV.prototype,"vcBalanceWidgetStyle",null);lV=_.O([_.uM({is:"yt-vc-balance-renderer",disableElementRegistration:!0})],lV);
_.v(lV,"yt-vc-balance-renderer",function(){if(z7h===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;Wkr===void 0&&(Wkr=document.createElement("template"));var b=Wkr;m.call(c,b.content.cloneNode(!0),J.content.firstChild);z7h=J}J=z7h;return J},{mode:2});_.zH("vcBalanceRenderer","vcBalanceRenderer","ytd-vc-balance-renderer");var yy=function(){return _.h.apply(this,arguments)||this};
_.D(yy,_.h);_.eE.Object.defineProperties(yy.prototype,{formattedAmount:{configurable:!0,enumerable:!0,get:function(){return this.vcBalanceEntity&&this.vcBalanceEntity.formattedAmount?this.vcBalanceEntity.formattedAmount:""}},
vcBalanceAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.vcBalanceEntity&&this.vcBalanceEntity.accessibilityFormattedAmount?this.vcBalanceEntity.accessibilityFormattedAmount:""}}});
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],yy.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.fY),_.R("design:type",Object)],yy.prototype,"ytdReduxBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],yy.prototype,"data",void 0);_.O([_.U({selectorArgs:["data.vcBalanceEntityKey"],selector:function(J,c){return _.P2(J.entities,"vcBalanceEntity",c)}}),
_.R("design:type",Object)],yy.prototype,"vcBalanceEntity",void 0);_.O([_.q("vcBalanceEntity"),_.R("design:type",String),_.R("design:paramtypes",[])],yy.prototype,"formattedAmount",null);_.O([_.q("vcBalanceEntity"),_.R("design:type",String),_.R("design:paramtypes",[])],yy.prototype,"vcBalanceAriaLabel",null);yy=_.O([_.E({disableElementRegistration:!0,is:"ytd-vc-balance-renderer"})],yy);
_.v(yy,"ytd-vc-balance-renderer",function(){if(Dno!==void 0)return Dno;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return Dno=J},{mode:1});var ufo;var Bl=function(){var J=_.h.apply(this,arguments)||this;J.rotation=0;J.isReloading=!1;return J};
_.D(Bl,_.h);Bl.prototype.rotationChanged=function(){this.icon.style.transform="rotate("+(this.rotation+180)+"deg)";this.icon.style.opacity=""+(.7/360*this.rotation+.3)};
Bl.prototype.reset=function(){this.hostElement.style.opacity=""};
Bl.prototype.close=function(){var J=this;return _.N(function(c){if(c.nextAddress==1)return _.K(c,J.hostElement.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.4)",opacity:0}],{duration:150,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);J.hostElement.style.opacity="0";_.tD(c)})};
Bl.prototype.rotationChanged=Bl.prototype.rotationChanged;_.O([_.U(),_.R("design:type",Object)],Bl.prototype,"rotation",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Bl.prototype,"isReloading",void 0);_.O([_.Iu("#icon"),_.R("design:type",HTMLElement)],Bl.prototype,"icon",void 0);_.O([_.NE("rotation"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Bl.prototype,"rotationChanged",null);
Bl=_.O([_.E({disableElementRegistration:!0,is:"ytd-refresh"})],Bl);
_.v(Bl,"ytd-refresh",function(){if(ufo!==void 0)return ufo;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return ufo=J},{mode:1});var fgu;var gG=function(){return _.h.apply(this,arguments)||this};
_.D(gG,_.h);gG.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"}}}};
gG.prototype.dataChanged=function(){if(this.data){var J=this.hasBannerArt;this.hasBannerArt=!1;if(this.data&&this.data.banner){var c=_.yn(this.data.banner.thumbnails,this.hostElement.clientWidth);c&&(c.indexOf("//")===0&&(c="https:"+c),this.hasBannerArt=!0,_.V1(this.hostElement,{"--ytd-interactive-tabbed-header-renderer-banner-url":"url("+c+")"}))}this.hasBannerArt!==J&&_.Bj(this.hostElement).querySelector("#header").fire("iron-resize")}};
gG.prototype.updateSelectedFromBinding=function(J){this.selected=J.detail.value};
gG.prototype.dataChanged=gG.prototype.dataChanged;_.O([_.f(y_R),_.R("design:type",Object)],gG.prototype,"ytdTabbedHeaderBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],gG.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.qG),_.R("design:type",Object)],gG.prototype,"ytdGridStateAwareBehavior",void 0);_.O([_.f(_.SO.YtdGuideStateAwareBehavior),_.R("design:type",Object)],gG.prototype,"ytdGuideStateAwareBehavior",void 0);
_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],gG.prototype,"componentBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],gG.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Number)],gG.prototype,"selected",void 0);_.O([_.U(),_.R("design:type",Boolean)],gG.prototype,"active",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],gG.prototype,"hasBannerArt",void 0);
_.O([_.kr("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],gG.prototype,"dataChanged",null);gG=_.O([_.E({is:"ytd-interactive-tabbed-header-renderer",disableElementRegistration:!0})],gG);
_.v(gG,"ytd-interactive-tabbed-header-renderer",function(){if(fgu!==void 0)return fgu;var J=document.createElement("template");_.z(J,'\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>');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return fgu=J},{mode:1});var Yus;var JQ=function(){return _.h.apply(this,arguments)||this};
_.D(JQ,_.h);JQ.prototype.configureRendererStamper=function(){return{"data.leftActions":{id:"left-actions",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.actions":{id:"actions",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
JQ.prototype.computeActionsAlignment=function(J){return(J==null?void 0:J.actionsAlignment)||""};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],JQ.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],JQ.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],JQ.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeActionsAlignment(data)"}),_.R("design:type",String)],JQ.prototype,"actionsAlignment",void 0);
JQ=_.O([_.E({is:"ytd-page-footer-renderer",disableElementRegistration:!0})],JQ);
_.v(JQ,"ytd-page-footer-renderer",function(){if(Yus!==void 0)return Yus;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return Yus=J},{mode:1});var XCS;var ZWS;var c1=function(){var J=_.h.apply(this,arguments)||this;J.isEditing=!1;J.useSlot=!1;J.isMultiline=!1;return J};
_.D(c1,_.h);_.V=c1.prototype;_.V.onKeydown=function(J){if(J.keyCode===13&&!this.isMultiline)this.onSave();else if(J.keyCode===27)this.onCancel()};
_.V.computeComponentStyle=function(J){return(J==null?0:J.style)?J.style:"INLINE_FORM_STYLE_UNKNOWN"};
_.V.computeisMultiline=function(J){if(this.multilineOverride!==void 0)return this.multilineOverride;var c,m;return!!(J==null?0:(c=J.formField)==null?0:(m=c.textInputFormFieldRenderer)==null?0:m.isMultiline)};
_.V.computeTextDisplayed=function(J,c){if(J)return J;if(c)return c};
_.V.onEdit=function(){this.isEditing=!0;this.textForm.focusTextInput()};
_.V.onSave=function(){if(this.textForm.validate()){this.textForm.save();var J=this.textForm.value;if(J)this.set("data.textDisplayed",_.v2(J));else{var c;((c=this.data)==null?0:c.placeholder)&&this.set("data.textDisplayed",this.data.placeholder)}this.hostElement.dispatchEvent(new _.SJ("inline-form-changed",this.data));this.isEditing=!1}};
_.V.onCancel=function(){var J=_.OG(this.data.textDisplayed);J===this.data.placeholder?this.textForm.reset(""):this.textForm.reset(J);this.isEditing=!1};
c1.prototype.onKeydown=c1.prototype.onKeydown;_.O([_.f(_.Ci.YtEventForwardingBehavior),_.R("design:type",Object)],c1.prototype,"ytEventForwardingBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],c1.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],c1.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],c1.prototype,"data",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],c1.prototype,"isEditing",void 0);_.O([_.U(),_.R("design:type",Object)],c1.prototype,"useSlot",void 0);_.O([_.U(),_.R("design:type",Boolean)],c1.prototype,"multilineOverride",void 0);_.O([_.U(),_.R("design:type",Boolean)],c1.prototype,"enableOverlayTheme",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeComponentStyle(data)"}),_.R("design:type",String)],c1.prototype,"componentStyle",void 0);
_.O([_.U({computed:"computeisMultiline(data)"}),_.R("design:type",Object)],c1.prototype,"isMultiline",void 0);_.O([_.Iu("#text-form"),_.R("design:type",Object)],c1.prototype,"textForm",void 0);_.O([_.ps("keydown"),_.R("design:type",Function),_.R("design:paramtypes",[KeyboardEvent]),_.R("design:returntype")],c1.prototype,"onKeydown",null);c1=_.O([_.E({is:"ytd-inline-form-renderer",disableElementRegistration:!0})],c1);
_.v(c1,"ytd-inline-form-renderer",function(){if(ZWS!==void 0)return ZWS;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return ZWS=J},{mode:1});var quR;var mJ=function(){var J=_.h.apply(this,arguments)||this;J.previousSelectValue=void 0;J.selectedItemMessage=void 0;return J};
_.D(mJ,_.h);mJ.prototype.detached=function(){this.selectedItemMessage=this.previousSelectValue=void 0};
mJ.prototype.selectedValueChanged=function(){if(this.selectedValue!==void 0){var J,c,m,b,x=(J=this.data)==null?void 0:(c=J.dropdown)==null?void 0:(m=c.dropdownRenderer)==null?void 0:(b=m.entries)==null?void 0:b.map(function(t){return t.privacyDropdownItemRenderer});
J=_.M(x!=null?x:[]);for(c=J.next();!c.done;c=J.next())if((c=c.value)&&c.int32Value===this.selectedValue){this.selectedItemMessage=c.itemMessage;break}}else this.selectedItemMessage=void 0;var P;(P=this.onValueChanged)==null||P.call(this);if(this.selectedValue!==-1)if(this.previousSelectValue===void 0)this.previousSelectValue=this.selectedValue;else if(this.previousSelectValue!==this.selectedValue){var p;(p=this.data)!=null&&p.key&&this.data.onChange&&(this.set(this.data.key,this.selectedValue,this.data.onChange),
this.ytComponentBehavior.resolveCommand(this.data.onChange),this.previousSelectValue=this.selectedValue)}};
mJ.prototype.onValueChangedForSelectedValue=function(J){this.selectedValue=J.detail.value};
mJ.prototype.selectedValueChanged=mJ.prototype.selectedValueChanged;_.O([_.f(_.Ci.YtEventForwardingBehavior),_.R("design:type",Object)],mJ.prototype,"ytEventForwardingBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],mJ.prototype,"ytComponentBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],mJ.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],mJ.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],mJ.prototype,"data",void 0);_.O([_.U(),_.R("design:type",String)],mJ.prototype,"theme",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Number)],mJ.prototype,"selectedValue",void 0);_.O([_.U(),_.R("design:type",Function)],mJ.prototype,"onValueChanged",void 0);
_.O([_.kr("selectedValue"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],mJ.prototype,"selectedValueChanged",null);mJ=_.O([_.E({is:"ytd-dropdown-form-field-renderer",disableElementRegistration:!0})],mJ);
_.v(mJ,"ytd-dropdown-form-field-renderer",function(){if(quR!==void 0)return quR;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return quR=J},{mode:_.mP("kevlar_poly_si_batch_j025")?1:2});var Uns;var b5=function(){return _.h.apply(this,arguments)||this};
_.D(b5,_.h);_.eE.Object.defineProperties(b5.prototype,{byline:{configurable:!0,enumerable:!0,get:function(){for(var J=[],c=_.M(this.data||[]),m=c.next();!m.done;m=c.next())(m=_.L(m.value,Fro))&&J.push(m);return J}}});
_.O([_.U(),_.R("design:type",Array)],b5.prototype,"data",void 0);_.O([_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],b5.prototype,"byline",null);b5=_.O([_.E({is:"ytd-playlist-byline-renderer",disableElementRegistration:!0})],b5);
_.v(b5,"ytd-playlist-byline-renderer",function(){if(Uns!==void 0)return Uns;var J=document.createElement("template");_.z(J,'\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>');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return Uns=J},{mode:1});var Su1;var xz=function(){var J=_.h.apply(this,arguments)||this;J.rtlBullet=_.w("web_playlist_stats_rtl_bullet_icon_killswitch");J.modern=_.w("web_modern_buttons");J.actionMap={"yt-update-playlist-action":"onUpdatePlaylistAction"};return J};
_.D(xz,_.h);_.V=xz.prototype;_.V.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"}}}}};
_.V.attached=function(){};
_.V.computeIsCustomThumbnail=function(J){return J?!!J.playlistCustomThumbnailRenderer:!1};
_.V.onYtNavigate=function(J,c){if(c&&c.actions&&c.actions.indexOf("shuffle")>-1){J=_.BG().resolve(_.zn);var m=c.tempData||{};m.watch_params=this.get("menu.menuRenderer.topLevelButtons[1].buttonRenderer.navigationEndpoint.watchEndpoint.params",this.data);c.tempData=m;J.isShuffleNextPlaylist=!0}};
_.V.onUpdatePlaylistAction=function(J){var c;J=(c=_.L(J,_.RbC))==null?void 0:c.updatedRenderer;if(c=_.L(J,zJ))this.data=c};
_.V.computeStyleType=function(J){return J?J.toLowerCase().replace(/_/g,"-"):""};
_.V.computeThumbnailWidth=function(J){return J==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"?412:357};
_.V.computeHideThumbnailAria=function(J){if(J==null?0:J.thumbnailOverlays)for(var c=0;c<J.thumbnailOverlays.length;c++){var m=void 0;if((m=J.thumbnailOverlays[c])==null?0:m.tvfilmShowWatchForwardOverlayRenderer)return!1}return!0};
xz.prototype.onYtNavigate=xz.prototype.onYtNavigate;_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],xz.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],xz.prototype,"ytActionHandlerBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],xz.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],xz.prototype,"ytComponentBehavior",void 0);
_.O([_.U(),_.R("design:type",Object)],xz.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],xz.prototype,"rtlBullet",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeStyleType(data.style)"}),_.R("design:type",String)],xz.prototype,"styleType",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeThumbnailWidth(data.style)"}),_.R("design:type",Number)],xz.prototype,"thumbnailWidth",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],xz.prototype,"modern",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeIsCustomThumbnail(data.thumbnailRenderer)"}),_.R("design:type",Boolean)],xz.prototype,"isCustomThumbnail",void 0);_.O([_.ps("yt-navigate"),_.R("design:type",Function),_.R("design:paramtypes",[Event,Object]),_.R("design:returntype")],xz.prototype,"onYtNavigate",null);
xz=_.O([_.E({is:"ytd-playlist-sidebar-primary-info-renderer",disableElementRegistration:!0})],xz);
_.v(xz,"ytd-playlist-sidebar-primary-info-renderer",function(){if(Su1!==void 0)return Su1;var J=document.createElement("template");_.z(J,'\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>');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return Su1=J},{mode:1});var h7p;var VE=function(){return _.h.apply(this,arguments)||this};
_.D(VE,_.h);VE.prototype.computeOwnerVisibility=function(J){return!(!J.videoOwner&&!J.button)};
VE.prototype.configureRendererStamper=function(){return{"data.videoOwner":{id:"video-owner",mapping:{videoOwnerRenderer:"ytd-video-owner-renderer"}},"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer",subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}}}};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],VE.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],VE.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],VE.prototype,"data",void 0);VE=_.O([_.E({is:"ytd-playlist-sidebar-secondary-info-renderer",disableElementRegistration:!0})],VE);
_.v(VE,"ytd-playlist-sidebar-secondary-info-renderer",function(){if(h7p!==void 0)return h7p;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return h7p=J},{mode:1});var dnS;var P1=function(){var J=_.h.apply(this,arguments)||this;J.expanded=!1;J.isCompact=!1;return J};
_.D(P1,_.h);_.V=P1.prototype;_.V.attached=function(){this.ytdAutoScrollBehavior.scrollTarget=this.text};
_.V.dataChanged=function(){this.data&&_.G$(_.Bj(this.text),_.FiJ(_.BND,_.OG(this.data.text||null)))};
_.V.computeAutoScrollEnabled=function(J,c){return J&&!c};
_.V.expandedChanged=function(){this.expanderIcon.icon="yt-icons:expand-"+(this.expanded?"less":"more")};
_.V.toggleOnTap=function(){this.expanded=!this.expanded};
P1.prototype.expandedChanged=P1.prototype.expandedChanged;P1.prototype.dataChanged=P1.prototype.dataChanged;_.O([_.f(_.v41),_.R("design:type",Object)],P1.prototype,"ytdAutoScrollBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],P1.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],P1.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],P1.prototype,"expanded",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],P1.prototype,"isCompact",void 0);_.O([_.U({computed:"computeAutoScrollEnabled(data.autoscroll, expanded)"}),_.R("design:type",Boolean)],P1.prototype,"autoScrollEnabled",void 0);_.O([_.Iu("#text"),_.R("design:type",Object)],P1.prototype,"text",void 0);_.O([_.Iu("#expander-icon"),_.R("design:type",Object)],P1.prototype,"expanderIcon",void 0);
_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],P1.prototype,"dataChanged",null);_.O([_.NE("expanded"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],P1.prototype,"expandedChanged",null);P1=_.O([_.E({disableElementRegistration:!0,is:"ytd-channel-legal-info-renderer"})],P1);
_.v(P1,"ytd-channel-legal-info-renderer",function(){if(dnS!==void 0)return dnS;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return dnS=J},{mode:1});var $n4;var Gp4=_.CX("DOWNLOAD",{},"Download"),EoR=_.CX("DOWNLOADING",{},"Downloading"),voR=_.CX("DOWNLOADED",{},"Downloaded"),MS=function(){var J=_.h.apply(this,arguments)||this;J.downloadProgress=0;J.isDownloadComplete=!1;J.transferState="TRANSFER_STATE_UNKNOWN";return J};
_.D(MS,_.h);_.V=MS.prototype;_.V.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.V.dataChanged=function(){var J;(J=this.data)!=null&&J.tooltip||(J=_.XM(_.Rc().getState(),this.playlistId),this.updateButtonState(J))};
_.V.computePlaylistId=function(J){return J};
_.V.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.V.updateButtonState=function(J){if(this.data&&(this.data.tooltip!==EoR||!_.kY(J))){this.isDownloadComplete=!1;switch(J){case "TRANSFER_STATE_UNKNOWN":J=Gp4;var c="OFFLINE_DOWNLOAD";var m="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_COMPLETE":J=voR;c="OFFLINE_PIN";m="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":J=EoR;c="OFFLINE_DOWNLOADING_ZERO";m="ACTION_REMOVE_WITH_PROMPT";
break;default:J=Gp4,c="OFFLINE_DOWNLOAD",m="ACTION_ADD"}var b=Object.assign({},this.data);b.tooltip=J;b.accessibilityData={accessibilityData:{label:J}};b.icon={iconType:c};b.size="SIZE_DEFAULT";_.L(b.command,_.pK)&&(_.L(b.command,_.pK).action=m);this.set("data",b)}};
_.V.updateProgress=function(){if(this.data&&this.transferState!=="TRANSFER_STATE_COMPLETE"){this.isDownloadComplete=!1;var J="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?J="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?J="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?J="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?J="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<
1?J="OFFLINE_DOWNLOADING_EIGHTY":this.downloadProgress===1&&(J="OFFLINE_PIN",this.isDownloadComplete=!0);var c;J!==((c=this.data.icon)==null?void 0:c.iconType)&&(c=Object.assign({},this.data),c.tooltip=EoR,c.accessibilityData={accessibilityData:{label:EoR}},c.icon={iconType:J},_.L(c.command,_.pK)&&(_.L(c.command,_.pK).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",c))}};
MS.prototype.updateProgress=MS.prototype.updateProgress;MS.prototype.onTransferStateChanged=MS.prototype.onTransferStateChanged;MS.prototype.dataChanged=MS.prototype.dataChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],MS.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.fY),_.R("design:type",Object)],MS.prototype,"ytdReduxBehavior",void 0);_.O([_.U({value:!1}),_.R("design:type",Boolean)],MS.prototype,"forceIconButton",void 0);
_.O([_.U({value:!0}),_.R("design:type",Boolean)],MS.prototype,"forceIconOnly",void 0);_.O([_.U({value:!1}),_.R("design:type",Boolean)],MS.prototype,"overrides",void 0);_.O([_.U({value:!1}),_.R("design:type",Boolean)],MS.prototype,"buttonTooltipPosition",void 0);_.O([_.U({value:!1}),_.R("design:type",Boolean)],MS.prototype,"styleActionButton",void 0);_.O([_.U({value:!1}),_.R("design:type",Boolean)],MS.prototype,"disableTextTransform",void 0);
_.O([_.U({computed:"computePlaylistId(data.command.offlinePlaylistEndpoint.playlistId)"}),_.R("design:type",String)],MS.prototype,"playlistId",void 0);_.O([_.U(),_.R("design:type",Object)],MS.prototype,"data",void 0);_.O([_.U({selector:_.LMm,selectorArgs:["playlistId"]}),_.R("design:type",Object)],MS.prototype,"downloadProgress",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],MS.prototype,"isDownloadComplete",void 0);
_.O([_.U({selector:_.XM,selectorArgs:["playlistId"]}),_.R("design:type",String)],MS.prototype,"transferState",void 0);_.O([_.U({value:!0}),_.R("design:type",Boolean)],MS.prototype,"showTooltips",void 0);_.O([_.U({value:!0}),_.R("design:type",Boolean)],MS.prototype,"sendCommandWhenDisabled",void 0);_.O([_.U({value:!1}),_.R("design:type",Boolean)],MS.prototype,"disabled",void 0);
_.O([_.kr("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],MS.prototype,"dataChanged",null);_.O([_.kr("transferState"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],MS.prototype,"onTransferStateChanged",null);_.O([_.kr("downloadProgress"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],MS.prototype,"updateProgress",null);
MS=_.O([_.E({disableElementRegistration:!0,is:"ytd-download-playlist-button-renderer"})],MS);
_.v(MS,"ytd-download-playlist-button-renderer",function(){if($n4!==void 0)return $n4;var J=document.createElement("template");_.z(J,'\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>');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return $n4=J},{mode:1});var OWr;_.lv(_.SyL,"thumbnail-overlay-button-view-model",{props:{data:_.vt,lockupExperiments:_.vt}});var pR=function(){var J=_.h.apply(this,arguments)||this;J.isSquare=!1;J.isVertical=!1;return J};
_.D(pR,_.h);pR.prototype.computeIsSquare=function(J){return J!=null&&J.thumbnail?s0R(J.thumbnail)==="SQUARE":!1};
pR.prototype.computeIsVertical=function(J){return J!=null&&J.thumbnail?s0R(J.thumbnail)==="VERTICAL":!1};
pR.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayButtonViewModel:"thumbnail-overlay-button-view-model"}}}};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],pR.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],pR.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeIsSquare(data)"}),_.R("design:type",Object)],pR.prototype,"isSquare",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeIsVertical(data)"}),_.R("design:type",Object)],pR.prototype,"isVertical",void 0);
_.O([_.U(),_.R("design:type",Object)],pR.prototype,"data",void 0);pR=_.O([_.E({disableElementRegistration:!0,is:"ytd-hero-playlist-thumbnail-renderer"})],pR);
_.v(pR,"ytd-hero-playlist-thumbnail-renderer",function(){if(OWr!==void 0)return OWr;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return OWr=J},{mode:1});var NS=function(){var J=_.h.apply(this,arguments)||this;J.isDarkTheme=!1;J.isUltraWide=!1;J.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-window-resized":"onWindowResize"};return J};
_.D(NS,_.h);_.V=NS.prototype;_.V.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");_.BG();var J;(J=_.BG().resolve(_.y6(_.OR)))!=null&&(J.headerElement=this.hostElement)};
_.V.detached=function(){var J;(J=_.BG().resolve(_.y6(_.OR)))!=null&&(J.headerElement=void 0)};
_.V.onUpdateHeader=function(J){(J=J.detail)&&this.set("data",J)};
_.V.computeTextDisplayed=function(J){if(J)return J.textDisplayed?J.textDisplayed:J.placeholder};
_.V.gradientColorToLinearGradientStop=function(J){var c=this.isDarkTheme?J.darkThemeColor:J.lightThemeColor;return c?_.Zn(c)+" "+((J==null?void 0:J.startLocation)||0)*100+"%":"transparent"};
_.V.onWindowResize=function(){var J;((J=this.data)==null?0:J.descriptionForm)?this.editableDescriptionInlineExpander.resize():this.descriptionInlineExpander.resize()};
_.V.onIronResize=function(J){this.isUltraWide=!J.detail.value};
_.V.onDarkModeToggledAction=function(J){this.isDarkTheme=J};
_.V.onUpdatePlaylistName=function(J){var c=this;this.set("data.titleForm.inlineFormRenderer",Object.assign({},J.detail.value));_.o3(this,function(){var m;(m=c.editableTitle)==null||m.resize()})};
_.V.onUpdatePlaylistDescription=function(J){var c=this;this.set("data.descriptionForm.inlineFormRenderer",Object.assign({},J.detail.value));_.o3(this,function(){var m;(m=c.editableDescriptionInlineExpander)==null||m.resize()})};
_.V.getCinematicData=function(J){return _.L(J==null?void 0:J.cinematicContainer,_.wG)};
_.eE.Object.defineProperties(NS.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 J,c=(J=this.getCinematicData(this.data))==null?void 0:J.config;return(J=this.isDarkTheme?c==null?void 0:c.darkThemeBackgroundColor:c==null?void 0:c.lightThemeBackgroundColor)?"background-color:"+_.XB(J)+";":"background-color:transparent;"}},
descriptionFormData:{configurable:!0,enumerable:!0,get:function(){var J;return _.L((J=this.data)==null?void 0:J.descriptionForm,OD1)}},
getDropdownTheme:{configurable:!0,enumerable:!0,get:function(){return this.noCinematicData?"":"WHITE_THEME"}},
gradientStyle:{configurable:!0,enumerable:!0,get:function(){var J=this,c,m,b;return"background:linear-gradient(to bottom, "+(((b=(c=this.getCinematicData(this.data))==null?void 0:(m=c.gradientColorConfig)==null?void 0:m.map(function(x){return J.gradientColorToLinearGradientStop(x)}))==null?void 0:b.join(", "))+");")}},
descriptionTapText:{configurable:!0,enumerable:!0,get:function(){var J;return _.OG((J=this.data)==null?void 0:J.descriptionTapText)}}});
NS.prototype.onUpdateHeader=NS.prototype.onUpdateHeader;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],NS.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],NS.prototype,"actionHandlerBehavior",void 0);_.O([_.Iu("#description-inline-expander"),_.R("design:type",Object)],NS.prototype,"descriptionInlineExpander",void 0);
_.O([_.Iu("#editable-description-inline-expander"),_.R("design:type",Object)],NS.prototype,"editableDescriptionInlineExpander",void 0);_.O([_.U(),_.R("design:type",Object)],NS.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],NS.prototype,"isUltraWide",void 0);_.O([_.Iu("#editable-title-display"),_.R("design:type",Object)],NS.prototype,"editableTitle",void 0);_.O([_.q("isUltraWide"),_.R("design:type",Object),_.R("design:paramtypes",[])],NS.prototype,"maxDescriptionLines",null);
_.O([_.U({reflectToAttribute:!0}),_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],NS.prototype,"noCinematicData",null);_.O([_.ps("yt-new-playlist-header"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],NS.prototype,"onUpdateHeader",null);_.O([_.q("data","isDarkTheme"),_.R("design:type",Object),_.R("design:paramtypes",[])],NS.prototype,"backgroundStyle",null);
_.O([_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],NS.prototype,"descriptionFormData",null);_.O([_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],NS.prototype,"getDropdownTheme",null);_.O([_.q("data","isDarkTheme"),_.R("design:type",String),_.R("design:paramtypes",[])],NS.prototype,"gradientStyle",null);_.O([_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],NS.prototype,"descriptionTapText",null);
NS=_.O([_.E({is:"ytd-playlist-header-renderer",disableElementRegistration:!0})],NS);
_.v(NS,"ytd-playlist-header-renderer",function(){if(XCS!==void 0)return XCS;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return XCS=J},{mode:_.mP("kevlar_poly_si_batch_j078")?1:2});var AzS;var R7h;var tQ=function(){return _.h.apply(this,arguments)||this};
_.D(tQ,_.h);tQ.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{gridShowRenderer:"ytd-grid-show-renderer"}}}};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],tQ.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],tQ.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],tQ.prototype,"data",void 0);tQ=_.O([_.E({is:"ytd-playlist-sidebar-tertiary-info-renderer",disableElementRegistration:!0})],tQ);
_.v(tQ,"ytd-playlist-sidebar-tertiary-info-renderer",function(){if(R7h!==void 0)return R7h;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return R7h=J},{mode:1});var If=function(){return _.h.apply(this,arguments)||this};
_.D(If,_.h);
If.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}}}}};
If.prototype.computeUsePremiumShowStyle=function(J){if(!J||!J.items)return!1;for(var c=0;c<J.items.length;c++)if(_.L(J.items[c],zJ)){var m=void 0;return((m=_.L(J.items[c],zJ))==null?void 0:m.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],If.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],If.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],If.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeUsePremiumShowStyle(data)"}),_.R("design:type",Boolean)],If.prototype,"usePremiumShowStyle",void 0);
If=_.O([_.E({is:"ytd-playlist-sidebar-renderer",disableElementRegistration:!0})],If);
_.v(If,"ytd-playlist-sidebar-renderer",function(){if(AzS!==void 0)return AzS;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return AzS=J},{mode:1});var oo1;var Qip;var e74=function(J,c,m,b,x,P,p,t){this.minWidth=J;this.minHeight=c;this.recommendedWidth=m;this.recommendedHeight=b;this.JSC$19482_maxFileSize=x;this.title=P;this.bannerGalleryTitle=p;this.channelId=t;this.picker_=null;J=_.TdJ("yt-banner");c=J.addView;m=(new XnF("youtubebanner")).addUploadMetadata("silo_id","19");m.opts.ytMaxFileSize=this.JSC$19482_maxFileSize;b=this.recommendedHeight;m.opts.ytRecWidth=this.recommendedWidth;m.opts.ytRecHeight=b;c.call(J,m);J.addView(new _.Hs);c=J.addView;m=new _.Hs;
m.opts.type="ytbanner";c.call(J,m.JSC$8084_setLabel(this.bannerGalleryTitle));c=J.setTitle(this.title).setSize(1E3);c.urlParamMap_.set("thumbs","orig");m=this.minWidth;b=this.minHeight;if(isNaN(m)||isNaN(b))throw Error("kb`"+m+"`"+b);c.urlParamMap_.set("minSize",m+"x"+b);c.urlParamMap_.set("cropMode","ytcb");this.builder_=J};
e74.prototype.open=function(){var J=this;return new _.IN(function(c,m){_.Xaj(J.builder_,function(b){b.action=="picked"?c(b):b.action=="cancel"&&m(Error("Vl"))});
J.picker_&&J.picker_.dispose();J.picker_=J.builder_.build();J.picker_.setVisible(!0)})};
e74.prototype.dispose=function(){this.picker_&&(this.picker_.dispose(),this.picker_=null)};var jih=function(J){this.channelId=J},FkR=function(J,c){var m="";
c.viewToken&&(m=c.viewToken[2].type);var b=c.docs[0];c=b.crop;J={channel_id:J.channelId,fife_url:b.thumbnails[0].url,photo_id:b.id,is_gallery_image:m=="ytbanner"};c&&(J.crop_top=c.top,J.crop_right=c.right,J.crop_bottom=c.bottom,J.crop_left=c.left);return _.fzR("/channels_profile_ajax?action_update_banner_image=1",{method:"POST",postParams:J})};var KR=function(){var J=_.h.apply(this,arguments)||this;J.ariaLabel=null;return J};
_.D(KR,_.h);_.V=KR.prototype;_.V.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.V.detached=function(){this.picker&&this.picker.dispose()};
_.V.dataChanged=function(){this.uploader=this.picker=this.message=null};
_.V.computeAriaLabel=function(J){return J};
_.V.onTap=function(){var J=this,c;if((c=this.data)==null||!c.editBannerCommand){this.message=null;!this.picker&&this.data&&(this.picker=new e74(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 m;(m=this.picker)==null||m.open().then(function(b){J.handleBannerPicked(b)},function(){})}};
_.V.handleBannerPicked=function(J){var c=this;this.uploader||(this.uploader=new jih(this.data.channelId||""));this.message=this.data.uploadingText;FkR(this.uploader,J).then(function(m){c.handleBannerUploadSucceeded(m)},function(m){c.handleBannerUploadFailed(m)})};
_.V.handleBannerUploadSucceeded=function(J){J&&J.errors?this.handleBannerUploadFailed(J):(_.cA(this.hostElement,"yt-banner-updated",J),this.message=null)};
_.V.handleBannerUploadFailed=function(J){this.message=J&&J.errors&&J.errors.length?J.errors[0]:null};
KR.prototype.dataChanged=KR.prototype.dataChanged;_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],KR.prototype,"componentBehavior",void 0);_.O([_.f(_.Dj),_.R("design:type",Object)],KR.prototype,"ironButtonState",void 0);_.O([_.U(),_.R("design:type",Object)],KR.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.buttonLabel)"}),_.R("design:type",Object)],KR.prototype,"ariaLabel",void 0);
_.O([_.U(),_.R("design:type",Object)],KR.prototype,"message",void 0);_.O([_.U(),_.R("design:type",Object)],KR.prototype,"picker",void 0);_.O([_.U(),_.R("design:type",Object)],KR.prototype,"uploader",void 0);_.O([_.kr("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],KR.prototype,"dataChanged",null);KR=_.O([_.E({is:"ytd-channel-banner-editor-renderer",disableElementRegistration:!0})],KR);
_.v(KR,"ytd-channel-banner-editor-renderer",function(){if(Qip!==void 0)return Qip;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return Qip=J},{mode:1});var lg4;var yz4=_.Oo(["#"]),CR=function(){return _.h.apply(this,arguments)||this};
_.D(CR,_.h);CR.prototype.computeHrefWithDefault=function(J){return this.ytComponentBehavior.computeHref_(J,!0)||_.L1(yz4)};
CR.prototype.dataChanged=function(){var J=this.data;J&&J.targetId&&_.aNB(_.aT(),J.targetId,this.moreIcon)};
CR.prototype.dataChanged=CR.prototype.dataChanged;_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],CR.prototype,"ytComponentBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],CR.prototype,"data",void 0);_.O([_.Iu("#more-icon"),_.R("design:type",Object)],CR.prototype,"moreIcon",void 0);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],CR.prototype,"dataChanged",null);
CR=_.O([_.E({is:"ytd-channel-tagline-renderer",disableElementRegistration:!0})],CR);
_.v(CR,"ytd-channel-tagline-renderer",function(){if(lg4!==void 0)return lg4;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return lg4=J},{mode:1});var BgR;var af=function(){return _.h.apply(this,arguments)||this};
_.D(af,_.h);_.V=af.prototype;_.V.ready=function(){var J=this;_.Bj(this.hostElement).querySelector("#form").addEventListener("submit",function(c){J.onSubmit(c)})};
_.V.onDataChanged=function(){var J;((J=this.data)==null?0:J.selected)&&this.ytdExpandableInputBehavior.setShowInput(!0)};
_.V.onIconButtonKeydown=function(J){J.keyCode===13&&this.iconButton.click()};
_.V.closeOnOutsideClickHandler=function(){this.set("data.expandedText","")};
_.V.openOnClickHandler=function(){this.input.focus()};
_.V.onSubmit=function(J){J.preventDefault();return!1};
_.V.submitOnEnterKeyUp=function(J){var c;if(J.keyCode===13&&((c=this.data)==null?0:c.expandedText)){J=this.data.endpoint;c=_.Lw.unsafeClone(J);var m;((m=_.L(c==null?void 0:c.commandMetadata,_.lk))==null?0:m.url)?(_.L(c.commandMetadata,_.lk).url=_.hI(_.L(c.commandMetadata,_.lk).url,"query",this.data.expandedText),_.L(c,_.I1)&&(_.L(c,_.I1).query=this.data.expandedText),_.cA(this.hostElement,"yt-navigate",{endpoint:c,tempData:{disableCache:!0}})):(m=new _.w3("Error: Trying to navigate to an endpoint without url",
J),_.Xc(m))}};
_.V.updateDataExpandedTextFromBinding=function(J){this.set("data.expandedText",J.detail.value)};
_.eE.Object.defineProperties(af.prototype,{searchIcon:{configurable:!0,enumerable:!0,get:function(){return _.w("enable_web_delhi_icons")?"search":"yt-icons:search"}}});
af.prototype.onDataChanged=af.prototype.onDataChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],af.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.D2u),_.R("design:type",Object)],af.prototype,"ytdExpandableInputBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],af.prototype,"data",void 0);_.O([_.Iu("#input"),_.R("design:type",Object)],af.prototype,"input",void 0);_.O([_.Iu("#icon-button"),_.R("design:type",HTMLElement)],af.prototype,"iconButton",void 0);
_.O([_.U(),_.R("design:type",String),_.R("design:paramtypes",[])],af.prototype,"searchIcon",null);_.O([_.kr("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],af.prototype,"onDataChanged",null);af=_.O([_.E({disableElementRegistration:!0,is:"ytd-expandable-tab-renderer"})],af);
var Lre=_.cd()(af,"ytd-expandable-tab-renderer",function(){if(BgR===void 0){var J=document.createElement("template");_.z(J,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-tab-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button id="icon-button" label="[[data.title]]" on-click="openOnClick_" on-keydown="onIconButtonKeydown" class="style-scope ytd-expandable-tab-renderer">\n  <yt-icon icon="[[searchIcon]]" class="style-scope ytd-expandable-tab-renderer"></yt-icon>\n</yt-icon-button>\n<form id="form" action="[[data.endpoint.commandMetadata.webCommandMetadata.url]]" class="style-scope ytd-expandable-tab-renderer">\n  <tp-yt-paper-input id="input" autocomplete="off" label="[[data.title]]" max-length="100" name="query" no-label-float="" value="[[data.expandedText]]" on-keyup="submitOnEnterKeyUp" on-value-changed="updateDataExpandedTextFromBinding" class="style-scope ytd-expandable-tab-renderer">\n   </tp-yt-paper-input>\n</form>\n');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);BgR=J}J=BgR;return J},{allowedProps:["data"],
callbackProps:["onYtNavigate"],mode:1});var gos;var kz=function(){var J=_.h.apply(this,arguments)||this;J.avatarSize=80;J.ariaLabel=_.CX("EDIT_AVATAR_LABEL",void 0,"Edit channel icon");return J};
_.D(kz,_.h);kz.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
kz.prototype.computeHref=function(J){var c;return((c=_.L(J,_.Ee))==null?0:c.url)?this.componentBehavior.computeHref_(J):null};
kz.prototype.onTap=function(){var J,c;(J=this.data)==null||!J.editAvatarServiceEndpoint||((c=_.L(this.data.editAvatarServiceEndpoint,_.Ee))==null?0:c.url)||_.BG().resolve(_.gu).resolveCommand(this.data.editAvatarServiceEndpoint,{form:{element:this.hostElement}})};
_.O([_.f(_.Dj),_.R("design:type",Object)],kz.prototype,"ironButtonState",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],kz.prototype,"componentBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],kz.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],kz.prototype,"avatarSize",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",String)],kz.prototype,"ariaLabel",void 0);kz=_.O([_.E({disableElementRegistration:!0,is:"ytd-channel-avatar-editor"})],kz);
_.v(kz,"ytd-channel-avatar-editor",function(){if(gos!==void 0)return gos;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return gos=J},{mode:1});var Jb1=_.Q1(function(J){var c=J.data;var m=J.noPadding;var b=J.enableBanner;var x=J.cinematicContainerTopbarOffset;var P=J.allowCinematicContainerOverflow;var p=J.displayAsSidebar;J=J.className;_.ui(function(){c().tagManagerId&&(_.n9(c().tagManagerId,_.Ub("GL")),YyR(c().tagManagerId))},"xVTVTe");
var t=_.tT(Wrs,function(){return c().pageHeaderEntityKey});
return _.C("yt-page-header-renderer",{class:_.pq("page-header-renderer-wiz",J)},_.C(_.wi,{data:function(){var I;return((I=t())==null?0:I.header)?t().header:(p==null?0:p())&&c().sidebarContent?c().sidebarContent:c().content}},{pageHeaderViewModel:function(I){return _.C(_.BXQ,{data:I.data,
noPadding:m,enableBanner:b,cinematicContainerTopbarOffset:x,allowCinematicContainerOverflow:P,displayAsSidebar:function(){return(p==null?void 0:p())&&c().enableSidebarView}})}}))},"Gi");
Jb1.idomCompat=!0;_.lv(Jb1,"yt-page-header-renderer",{props:{data:_.vt,noPadding:_.vt,enableBanner:_.vt,cinematicContainerTopbarOffset:_.vt,allowCinematicContainerOverflow:_.vt,displayAsSidebar:_.vt,className:_.vt}});_.lv(_.lWQ,"yt-image-banner-view-model",{props:{data:_.vt,isPositionRelative:_.vt}});_.lv(_.aEa,"yt-tab-group-shape",{props:{shape:_.vt}});var H1=function(){var J=_.h.apply(this,arguments)||this;J.expandableCustomTabRenderable=function(c){return DW4(c,function(){return void J.onSearchNavigate()})};
J.isRichGrid=!1;J.isConstrainedList=!1;J.richGridMiniMode=!1;J.richGridStyle="RICH_GRID_STYLE_UNKNOWN";J.isRichGridShorts=!1;J.responsiveSizing="COMPACT";J.disableGridStateAware=!1;J.actionMap={"yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-window-resized":"onWindowResize"};return J};
_.D(H1,_.h);_.V=H1.prototype;_.V.computeHeaderDisabled=function(J,c){return c||!J||this.tabsHidden};
_.V.computeTabsHidden=function(){return!this.tabs||this.tabs.length<=1};
_.V.computeIsRichGridShorts=function(J){return J==="RICH_GRID_STYLE_SHORTS_GRID"||J==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"};
_.V.computeImageBannerViewModel=function(){var J,c;return _.L((c=_.L((J=this.data)==null?void 0:J.content,_.hsa))==null?void 0:c.banner,_.XY$)};
_.V.computeHasCinematicContainer=function(){var J,c;return!((c=_.L((J=this.data)==null?void 0:J.content,_.hsa))==null||!c.background)};
_.V.handleHeaderResize=function(){var J=_.Bj(this.hostElement).querySelector("#header");J&&_.cA(J,"iron-resize")};
_.V.handleInsertTabCommand=function(J){var c=_.L(J,lmh);c&&(c.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(m){return m.tabRenderer&&m.tabRenderer.tabIdentifier===c.tabIdentifier})||this.splice("tabs",c.tabIndex||-1,0,c.tab))};
_.V.handleRefreshChannelTabAction=function(J){this.ytdTabbedHeaderBehavior.selected&&this.ytdTabbedHeaderBehavior.tabs[this.ytdTabbedHeaderBehavior.selected].tabRenderer.tabIdentifier===J&&_.cA(this.hostElement,"yt-navigate",{endpoint:this.ytdGuideStateAwareBehavior.activeEndpoint,tempData:{disableCache:!0}})};
_.V.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.V1(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.V.observerRichGridSlimItemsPerRow=function(){_.V1(this.hostElement,{"--ytd-rich-grid-slim-items-per-row":""+this.richGridSlimItemsPerRow})};
_.V.updateCssVars=function(){this.richGridItemsPerRow&&_.V1(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.c7("rich_grid_max_item_width",500))+16)-16+"px"})};
_.V.updateCssVarsForResponsiveGrid=function(){this.richGridContainerWidth&&_.V1(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridContainerWidth+"px"})};
_.V.onDataChanged=function(){this.handleHeaderResize()};
_.V.onWindowResize=function(){this.handleHeaderResize()};
_.V.onFocusedChanged=function(J){(J=_.Ac(J))&&J.is==="tp-yt-paper-tab"&&J.hasRipple()&&(J.getRipple().holdDown=!J.pointerDown&&J.focused)};
_.V.updateSelectedFromBinding=function(J){this.ytdTabbedHeaderBehavior.selected=J.detail.value};
_.V.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.eE.Object.defineProperties(H1.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:udu(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasBanner:{configurable:!0,enumerable:!0,get:function(){return!!this.imageBannerViewModel}},
hasInsetBanner:{configurable:!0,enumerable:!0,get:function(){var J;return((J=this.imageBannerViewModel)==null?void 0:J.style)==="IMAGE_BANNER_STYLE_INSET"}}});
H1.prototype.onDataChanged=H1.prototype.onDataChanged;H1.prototype.updateCssVarsForResponsiveGrid=H1.prototype.updateCssVarsForResponsiveGrid;H1.prototype.updateCssVars=H1.prototype.updateCssVars;H1.prototype.observerRichGridSlimItemsPerRow=H1.prototype.observerRichGridSlimItemsPerRow;H1.prototype.observerRichGridItemsPerRow=H1.prototype.observerRichGridItemsPerRow;_.O([_.f(_.qG),_.R("design:type",Object)],H1.prototype,"ytdGridStateAwareBehavior",void 0);
_.O([_.f(y_R),_.R("design:type",Object)],H1.prototype,"ytdTabbedHeaderBehavior",void 0);_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],H1.prototype,"ytActionHandlerBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],H1.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.SO.YtdGuideStateAwareBehavior),_.R("design:type",Object)],H1.prototype,"ytdGuideStateAwareBehavior",void 0);
_.O([_.f(_.fY),_.R("design:type",Object)],H1.prototype,"ytdReduxBehavior",void 0);_.O([_.Iu("#tabs"),_.R("design:type",Object)],H1.prototype,"tabsElement",void 0);_.O([_.U(),_.R("design:type",Array)],H1.prototype,"tabs",void 0);_.O([_.U(),_.R("design:type",Object)],H1.prototype,"expandableCustomTabRenderable",void 0);_.O([_.q("tabs.*"),_.R("design:type",Object),_.R("design:paramtypes",[])],H1.prototype,"tabGroupShape",null);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],H1.prototype,"isRichGrid",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],H1.prototype,"isConstrainedList",void 0);_.O([_.U({reflectToAttribute:!0,selector:_.DZ}),_.R("design:type",Object)],H1.prototype,"richGridMiniMode",void 0);_.O([_.U({selector:function(J){return J.ui.richGridStyle}}),
_.R("design:type",Object)],H1.prototype,"richGridStyle",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeIsRichGridShorts(richGridStyle)"}),_.R("design:type",Object)],H1.prototype,"isRichGridShorts",void 0);_.O([_.U({selector:_.W2}),_.R("design:type",Number)],H1.prototype,"richGridItemsPerRow",void 0);_.O([_.U({selector:function(J){return J.ui.richGridContainerWidth}}),
_.R("design:type",Number)],H1.prototype,"richGridContainerWidth",void 0);_.O([_.U({selector:_.Net}),_.R("design:type",Number)],H1.prototype,"richGridSlimItemsPerRow",void 0);_.O([_.U(),_.R("design:type",Object)],H1.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],H1.prototype,"responsiveSizing",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],H1.prototype,"disableGridStateAware",void 0);
_.O([_.U({computed:"computeImageBannerViewModel(data)"}),_.R("design:type",Object)],H1.prototype,"imageBannerViewModel",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeHasCinematicContainer(data)"}),_.R("design:type",Boolean)],H1.prototype,"hasCinematicContainer",void 0);_.O([_.U({selector:_.t3F,reflectToAttribute:!0}),_.R("design:type",Boolean)],H1.prototype,"guideIsVisibleButNotPersistent",void 0);
_.O([_.U({reflectToAttribute:!0}),_.q("imageBannerViewModel"),_.R("design:type",Object),_.R("design:paramtypes",[])],H1.prototype,"hasBanner",null);_.O([_.U({reflectToAttribute:!0}),_.q("imageBannerViewModel"),_.R("design:type",Object),_.R("design:paramtypes",[])],H1.prototype,"hasInsetBanner",null);_.O([_.U({computed:"computeTabsHidden(tabs)",value:!0}),_.R("design:type",Boolean)],H1.prototype,"tabsHidden",void 0);
_.O([_.NE("richGridItemsPerRow","isRichGrid"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],H1.prototype,"observerRichGridItemsPerRow",null);_.O([_.NE("richGridSlimItemsPerRow"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],H1.prototype,"observerRichGridSlimItemsPerRow",null);
_.O([_.NE("richGridItemsPerRow","richGridMiniMode"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],H1.prototype,"updateCssVars",null);_.O([_.NE("richGridContainerWidth"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],H1.prototype,"updateCssVarsForResponsiveGrid",null);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],H1.prototype,"onDataChanged",null);
H1=_.O([_.E({is:"ytd-tabbed-page-header",disableElementRegistration:!0})],H1);
_.v(H1,"ytd-tabbed-page-header",function(){if(oo1!==void 0)return oo1;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return oo1=J},{mode:1});var cbu;var i5=function(){return _.h.apply(this,arguments)||this};
_.D(i5,_.h);i5.prototype.observerRichGridItemsPerRow=function(){this.richGridItemsPerRow&&_.V1(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.eE.Object.defineProperties(i5.prototype,{badgeIconName:{configurable:!0,enumerable:!0,get:function(){var J,c;return this.componentBehavior.computeIcon_(((c=_.L((J=this.data)==null?void 0:J.badge,_.DC$))==null?void 0:c.icon)||null)}},
badgeLabel:{configurable:!0,enumerable:!0,get:function(){var J,c;return(c=_.L((J=this.data)==null?void 0:J.badge,_.DC$))==null?void 0:c.label}}});
i5.prototype.observerRichGridItemsPerRow=i5.prototype.observerRichGridItemsPerRow;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],i5.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],i5.prototype,"componentBehavior",void 0);_.O([_.f(_.fY),_.R("design:type",Object)],i5.prototype,"ytdReduxBehavior",void 0);_.O([_.U({reflectToAttribute:!0,selector:_.DZ}),_.R("design:type",Boolean)],i5.prototype,"richGridMiniMode",void 0);
_.O([_.U({selector:_.W2}),_.R("design:type",Number)],i5.prototype,"richGridItemsPerRow",void 0);_.O([_.U(),_.R("design:type",Object)],i5.prototype,"data",void 0);_.O([_.NE("richGridItemsPerRow"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],i5.prototype,"observerRichGridItemsPerRow",null);_.O([_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],i5.prototype,"badgeIconName",null);
_.O([_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],i5.prototype,"badgeLabel",null);i5=_.O([_.E({is:"ytd-member-hub-profile-renderer",disableElementRegistration:!0})],i5);
_.v(i5,"ytd-member-hub-profile-renderer",function(){if(cbu!==void 0)return cbu;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return cbu=J},{mode:1});var mqp;var nR=function(){return _.h.apply(this,arguments)||this};
_.D(nR,_.h);nR.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0}}}}};
_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],nR.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],nR.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],nR.prototype,"data",void 0);nR=_.O([_.E({is:"ytd-settings-sidebar-renderer",disableElementRegistration:!0})],nR);
_.v(nR,"ytd-settings-sidebar-renderer",function(){if(mqp!==void 0)return mqp;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return mqp=J},{mode:1});var bLS;var TA=function(){var J=_.h.apply(this,arguments)||this;J.expandableCustomTabRenderable=function(c){return DW4(c,function(){return void J.onSearchNavigate()})};
return J};
_.D(TA,_.h);TA.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
TA.prototype.onSearchNavigate=function(){this.selected=void 0};
TA.prototype.onTabsChange=function(){var J,c=(J=this.tabs)==null?void 0:J.findIndex(function(m){var b;return m==null?void 0:(b=m.tabRenderer)==null?void 0:b.selected});
c!==void 0&&(this.selected=c)};
TA.prototype.onTabsActive=function(J){if(this.tabs!==void 0){var c,m;(J=(c=this.tabs[J.detail.selected])==null?void 0:(m=c.tabRenderer)==null?void 0:m.endpoint)&&_.cA(this.hostElement,"yt-navigate",{endpoint:J})}};
_.eE.Object.defineProperties(TA.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:udu(this.tabs,this.expandableCustomTabRenderable)}:{}}},
tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
TA.prototype.onTabsChange=TA.prototype.onTabsChange;_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],TA.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.qG),_.R("design:type",Object)],TA.prototype,"ytdGridStateAwareBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],TA.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.SO.YtdGuideStateAwareBehavior),_.R("design:type",Object)],TA.prototype,"ytdGuideStateAwareBehavior",void 0);
_.O([_.U(),_.R("design:type",Object)],TA.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Array)],TA.prototype,"tabs",void 0);_.O([_.U(),_.R("design:type",Number)],TA.prototype,"selected",void 0);_.O([_.q("tabs.*"),_.R("design:type",Object),_.R("design:paramtypes",[])],TA.prototype,"tabGroupShape",null);_.O([_.U(),_.R("design:type",Object)],TA.prototype,"expandableCustomTabRenderable",void 0);
_.O([_.q("tabs"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],TA.prototype,"tabsEnabled",null);_.O([_.kr("tabs"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],TA.prototype,"onTabsChange",null);TA=_.O([_.E({is:"ytd-topic-channel-details-renderer",disableElementRegistration:!0})],TA);
_.v(TA,"ytd-topic-channel-details-renderer",function(){if(bLS!==void 0)return bLS;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return bLS=J},{mode:1});var xqf;var wc=function(){var J=_.h.apply(this,arguments)||this;J.disableGridStateAware=!1;return J};
_.D(wc,_.h);wc.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]]"}}}}}};
wc.prototype.activeChanged=function(){this.carousel&&(this.carousel.active=this.active)};
wc.prototype.updateCssVars=function(){_.V1(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.c7("rich_grid_max_item_width",500))+16)-16+"px"})};
wc.prototype.updateCssVars=wc.prototype.updateCssVars;wc.prototype.activeChanged=wc.prototype.activeChanged;_.O([_.f(_.SO.YtdGuideStateAwareBehavior),_.R("design:type",Object)],wc.prototype,"ytdGuideStateAwareBehavior",void 0);_.O([_.f(_.fY),_.R("design:type",Object)],wc.prototype,"ytdReduxBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],wc.prototype,"ytRendererBehavior",void 0);
_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],wc.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],wc.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Array)],wc.prototype,"tabs",void 0);_.O([_.U(),_.R("design:type",Boolean)],wc.prototype,"active",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],wc.prototype,"disableGridStateAware",void 0);
_.O([_.U({selector:_.W2}),_.R("design:type",Number)],wc.prototype,"richGridItemsPerRow",void 0);_.O([_.U({selector:_.DZ}),_.R("design:type",Boolean)],wc.prototype,"richGridMiniMode",void 0);_.O([_.Iu("ytd-carousel-item-renderer"),_.R("design:type",Object)],wc.prototype,"carousel",void 0);_.O([_.NE("active"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],wc.prototype,"activeChanged",null);
_.O([_.NE("richGridItemsPerRow","richGridMiniMode"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],wc.prototype,"updateCssVars",null);wc=_.O([_.E({disableElementRegistration:!0,is:"ytd-carousel-header-renderer"})],wc);
_.v(wc,"ytd-carousel-header-renderer",function(){if(xqf!==void 0)return xqf;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return xqf=J},{mode:1});var VW1;var Pbh=_.Oo(["https://www.google-analytics.com/analytics.js"]),rc=function(){var J=_.h.apply(this,arguments)||this;J.scriptAnalyticsAdded=!1;return J};
_.D(rc,_.h);rc.prototype.dataChanged=function(){this.data&&this.data.analyticsId&&this.sendGoogleAnalyticsPageview(this.data.analyticsId);var J,c=(J=this.data)==null?void 0:J.tagManagerId;c&&(_.n9(c,_.Ub("GL")),YyR(c))};
rc.prototype.sendGoogleAnalyticsPageview=function(J){this.scriptAnalyticsAdded||this.appendAnalyticsScript();window.ga=window.ga||function(){var m=_.s$.apply(0,arguments);(window.ga.q=window.ga.q||[]).push(m)};
var c=window.ga;c("set","page",window.location.pathname);c.l=+new Date;c("set","forceSSL",!0);c("create",J,"'auto'");c("send","pageview")};
rc.prototype.appendAnalyticsScript=function(){this.scriptAnalyticsAdded=!0;var J=_.id("SCRIPT");J.name="ga-analytics";var c=_.cm(Pbh);_.$h(J,c);J.async=!0;_.Bj(this.hostElement).appendChild(J)};
rc.prototype.dataChanged=rc.prototype.dataChanged;_.O([_.U(),_.R("design:type",Object)],rc.prototype,"data",void 0);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],rc.prototype,"dataChanged",null);rc=_.O([_.E({disableElementRegistration:!0,is:"ytd-channel-metadata-renderer"})],rc);
_.v(rc,"ytd-channel-metadata-renderer",function(){if(VW1!==void 0)return VW1;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return VW1=J},{mode:1});var MW5;var p6o;var sC=function(){return _.h.apply(this,arguments)||this};
_.D(sC,_.h);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],sC.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],sC.prototype,"data",void 0);sC=_.O([_.E({is:"ytd-sub-feed-option-renderer",disableElementRegistration:!0})],sC);
_.v(sC,"ytd-sub-feed-option-renderer",function(){if(p6o!==void 0)return p6o;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return p6o=J},{mode:1});var N$5;var LR=function(){return _.h.apply(this,arguments)||this};
_.D(LR,_.h);LR.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{subFeedOptionRenderer:{component:"ytd-sub-feed-option-renderer",noInjection:!0}}}}};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],LR.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],LR.prototype,"ytRendererStamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],LR.prototype,"data",void 0);LR=_.O([_.E({is:"ytd-sub-feed-selector-renderer",disableElementRegistration:!0})],LR);
_.v(LR,"ytd-sub-feed-selector-renderer",function(){if(N$5!==void 0)return N$5;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return N$5=J},{mode:1});var DB=function(){return _.h.apply(this,arguments)||this};
_.D(DB,_.h);
DB.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{buttonRenderer:{component:"ytd-button-renderer",noInjection:!0},searchBoxRenderer:{component:"ytd-search-box-renderer",noInjection:!0},subFeedSelectorRenderer:{component:"ytd-sub-feed-selector-renderer",noInjection:!0},toggleButtonRenderer:{component:"ytd-toggle-button-renderer",noInjection:!0},compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0},eomSettingsDisclaimerRenderer:{component:"ytd-eom-settings-disclaimer-renderer",noInjection:!0}}}}};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],DB.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],DB.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],DB.prototype,"data",void 0);DB=_.O([_.E({is:"ytd-browse-feed-actions-renderer",disableElementRegistration:!0})],DB);
_.v(DB,"ytd-browse-feed-actions-renderer",function(){if(MW5!==void 0)return MW5;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return MW5=J},{mode:1});var tW5;var IMp;var W1=function(){return _.h.apply(this,arguments)||this};
_.D(W1,_.h);W1.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],W1.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],W1.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],W1.prototype,"data",void 0);W1=_.O([_.E({is:"ytd-mini-channel-renderer",disableElementRegistration:!0})],W1);
_.v(W1,"ytd-mini-channel-renderer",function(){if(IMp!==void 0)return IMp;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return IMp=J},{mode:1});var KZ5;var zA=function(){return _.h.apply(this,arguments)||this};
_.D(zA,_.h);zA.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{miniChannelRenderer:"ytd-mini-channel-renderer"}}}};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],zA.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],zA.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],zA.prototype,"data",void 0);zA=_.O([_.E({disableElementRegistration:!0,is:"ytd-vertical-channel-section-renderer"})],zA);
_.v(zA,"ytd-vertical-channel-section-renderer",function(){if(KZ5!==void 0)return KZ5;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return KZ5=J},{mode:1});var u5=function(){return _.h.apply(this,arguments)||this};
_.D(u5,_.h);u5.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{verticalChannelSectionRenderer:{component:"ytd-vertical-channel-section-renderer",noInjection:!0}}}}};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],u5.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],u5.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],u5.prototype,"data",void 0);u5=_.O([_.E({is:"ytd-browse-secondary-contents-renderer",disableElementRegistration:!0})],u5);
_.v(u5,"ytd-browse-secondary-contents-renderer",function(){if(tW5!==void 0)return tW5;var J=document.createElement("template");_.z(J,'\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>');J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);
return tW5=J},{mode:1});var Cbr;var fR=function(){var J=_.h.apply(this,arguments)||this;J.actionMap={"yt-replace-feed-content-action":"onReplaceFeedContentAction"};J.notActive=!1;J.isConstrainedList=!1;return J};
_.D(fR,_.h);_.V=fR.prototype;
_.V.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(J){var c;return(J==null?void 0:(c=J.webComponentHint)==null?void 0:c.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}}}}};
_.V.getPath=function(J,c){var m="data.tabs.#"+c+".";J.tabs[c].tabRenderer?m+="tabRenderer.":J.tabs[c].expandableTabRenderer&&(m+="expandableTabRenderer.");return m+"content.sectionListRenderer"};
_.V.computeDisplayedContent=function(J){this.unlinkPaths("content");if(J&&J.tabs)for(var c=J.tabs.length,m=0;m<c;m++){var b=J.tabs[m].tabRenderer||J.tabs[m].expandableTabRenderer;if(b.selected&&b.content)return this.linkPaths("content",this.getPath(J,m)),b.content}return null};
_.V.computeHasSecondaryColumnData=function(J){return!!J&&!!J.secondaryContents};
_.V.onRetrieveLocation=function(J,c){c.locationRetrieved(c.hasComments?"/comment_service_ajax?action_get_comments=1&pbj=1":"/browse_ajax",void 0);J.stopPropagation()};
_.V.onYtServiceRequestSent=function(J,c){_.w("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(c)};
_.V.onYtServiceRequestCompleted=function(J,c){_.w("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(c)};
_.V.onReplaceFeedContentAction=function(J){if(!_.w("replace_feed_content_action_killswitch")&&!this.notActive){var c;(J=(c=_.L(J,Guu))==null?void 0:c.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(J)}};
_.V.handleServiceRequestActions=function(J){if(J=J.actions){J=_.M(J);for(var c=J.next();!c.done;c=J.next()){c=c.value;var m=void 0;((m=_.L(c,Guu))==null?0:m.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(_.L(c,Guu).items)}}};
fR.prototype.onYtServiceRequestCompleted=fR.prototype.onYtServiceRequestCompleted;fR.prototype.onYtServiceRequestSent=fR.prototype.onYtServiceRequestSent;fR.prototype.onRetrieveLocation=fR.prototype.onRetrieveLocation;_.O([_.f(_.qG),_.R("design:type",Object)],fR.prototype,"ytdGridStateAwareBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],fR.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],fR.prototype,"ytActionHandlerBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],fR.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],fR.prototype,"data",void 0);_.O([_.U({computed:"computeDisplayedContent(data)"}),_.R("design:type",Object)],fR.prototype,"content",void 0);
_.O([_.U({computed:"computeHasSecondaryColumnData(data)",reflectToAttribute:!0}),_.R("design:type",Boolean)],fR.prototype,"hasSecondaryColumnData",void 0);_.O([_.U({value:function(){return window.outerHeight>1024?3:2}}),
_.R("design:type",Number)],fR.prototype,"initialCount",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",String)],fR.prototype,"pageSubtype",void 0);_.O([_.Iu("ytd-section-list-renderer"),_.R("design:type",Object)],fR.prototype,"listRenderer",void 0);_.O([_.U(),_.R("design:type",Object)],fR.prototype,"notActive",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],fR.prototype,"isConstrainedList",void 0);
_.O([_.U(),_.R("design:type",String)],fR.prototype,"responsiveSizing",void 0);_.O([_.ps("yt-retrieve-location"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,Object]),_.R("design:returntype")],fR.prototype,"onRetrieveLocation",null);_.O([_.ps("yt-service-request-sent"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,_.qd]),_.R("design:returntype")],fR.prototype,"onYtServiceRequestSent",null);
_.O([_.ps("yt-service-request-completed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,_.Oi]),_.R("design:returntype")],fR.prototype,"onYtServiceRequestCompleted",null);fR=_.O([_.E({disableElementRegistration:!0,is:"ytd-two-column-browse-results-renderer"})],fR);
_.v(fR,"ytd-two-column-browse-results-renderer",function(){if(Cbr!==void 0)return Cbr;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return Cbr=J},{mode:2});var aMh;var kqo;var Yz=function(){var J=_.h.apply(this,arguments)||this;J.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"]);J.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"]);J.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};
return J};
_.D(Yz,_.h);_.V=Yz.prototype;_.V.attached=function(){this.requestElementsPerRow()};
_.V.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_]]"}}}}}};
_.V.onUpdateElementsPerRowAction=function(J){J&&this.elementsPerRow!==J&&(this.elementsPerRow=J)};
_.V.dismissButtonTap_=function(){this.set("data.isVisible",!this.closeOnDismissButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.V.acceptButtonTap_=function(){this.set("data.isVisible",!this.closeOnAcceptButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.V.computeAlertStyle_=function(J){return J};
_.V.observerElementsPerRow=function(){this.elementsPerRow&&_.V1(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow})};
_.V.onIsVisibleChanged_=function(){this.data&&!this.data.isVisible&&this.ytRendererBehavior.impressionLog()};
_.V.requestElementsPerRow=function(){_.cA(this.hostElement,"yt-request-elements-per-row")};
Yz.prototype.onIsVisibleChanged_=Yz.prototype.onIsVisibleChanged_;Yz.prototype.observerElementsPerRow=Yz.prototype.observerElementsPerRow;_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],Yz.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Yz.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],Yz.prototype,"actionHandlerBehavior",void 0);
_.O([_.U(),_.R("design:type",Object)],Yz.prototype,"data",void 0);_.O([_.U({value:6,reflectToAttribute:!0}),_.R("design:type",Number)],Yz.prototype,"elementsPerRow",void 0);_.O([_.U({value:!1,reflectToAttribute:!0}),_.R("design:type",Boolean)],Yz.prototype,"wrapButtons",void 0);_.O([_.U({value:_.Ub("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.R("design:type",Boolean)],Yz.prototype,"isMusic",void 0);
_.O([_.U({reflectToAttribute:!0,computed:"computeAlertStyle_(data.alertType.type)"}),_.R("design:type",String)],Yz.prototype,"alertStyle",void 0);_.O([_.U({value:function(){return this.dismissButtonTap_.bind(this)}}),
_.R("design:type",Function)],Yz.prototype,"dismissBoundButtonTap_",void 0);_.O([_.U({value:function(){return this.acceptButtonTap_.bind(this)}}),
_.R("design:type",Function)],Yz.prototype,"acceptBoundButtonTap_",void 0);_.O([_.NE("elementsPerRow"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Yz.prototype,"observerElementsPerRow",null);_.O([_.NE("data.isVisible"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Yz.prototype,"onIsVisibleChanged_",null);Yz=_.O([_.uM({is:"yt-alert-with-actions-renderer",disableElementRegistration:!0})],Yz);
_.v(Yz,"yt-alert-with-actions-renderer",function(){if(kqo===void 0){var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);var c=J.content,m=c.insertBefore;aMh===void 0&&(aMh=document.createElement("template"));var b=aMh;m.call(c,b.content.cloneNode(!0),J.content.firstChild);kqo=J}J=kqo;return J},{mode:2});_.lv(_.Q1(function(J){function c(T){var r={};return _.C(_.j8,{text:T,className:_.pq("ytPersonalGreetingViewModelHeadline",(r.ytPersonalGreetingViewModelHeadlineSmall=function(){return t()===48},r))})}
function m(T,r){return _.C("span",{el:T,class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},c(r))}
var b=_.oN("yt-personal-greeting-view-model"),x=_.oN("span"),P=_.oN("span"),p=function(){return J.data().canvasPromoData},t=function(){var T;
return(T=J.data().bannerHeight)!=null?T:56},I=_.VVe(b,{throttleMs:100}),a=_.VVe(x,{throttleMs:100}),k=_.VVe(P,{throttleMs:100}),H=function(){return a.width()-I.width()>1};
_.vg(b,function(){var T;return(T=J.data())==null?void 0:T.rendererContext},void 0,void 0,void 0,!0);
return _.C("yt-personal-greeting-view-model",{el:b,"aria-hidden":H,class:_.pq(J.className,"ytPersonalGreetingViewModelHost"),style:_.kx({height:(0,_.sX)(function(){return H()?0:t()})})},_.C(_.n,{cond:function(){return J.data().avatar&&!(k.width()+(J.data().avatar?48:0)-I.width()>1)},
then:function(){return _.C(_.wi,{data:function(){return J.data().avatar}},{decoratedAvatarViewModel:function(T){return _.C(_.Li,{data:T.data,
className:_.pq("ytPersonalGreetingViewModelAvatar")})}})}}),_.C("h1",null,c(function(){var T;
return(p==null?void 0:(T=p())==null?void 0:T.headline)||(k.width()+(J.data().avatar?48:0)-I.width()>1?J.data().shorterGreeting:J.data().greeting)})),m(P,function(){return J.data().greeting}),m(x,function(){return J.data().shorterGreeting}))},"Hi"),"yt-personal-greeting-view-model",{props:{data:_.vt,
className:_.vt}});var XQ=function(){var J=_.h.apply(this,arguments)||this;J.hidden=!1;J.isConstrainedList=!1;J.darkerDarkTheme=_.w("web_darker_dark_theme");J.responsiveSizing="COMPACT";J.attachedPlayers=_.w("kevlar_channel_trailer_multi_attach")?[]:void 0;J.player=null;J.actionMap={"yt-alert-command":"handleAlertCommand","yt-playlist-deletion-redirect-command":"handleYtPlaylistDeletionRedirect"};return J};
_.D(XQ,_.h);_.V=XQ.prototype;
_.V.configureRendererStamper=function(){return{mastheadAdData:{id:"masthead-ad",mapping:{bannerPromoRenderer:{component:"ytd-banner-promo-renderer",noInjection:!0},videoMastheadAdV3Renderer:{component:"ytd-video-masthead-ad-v3-renderer",noInjection:!0}},reuseComponents:!1},alertBannerData:{id:"alert-banner",mapping:{alertWithActionsRenderer:{component:"yt-alert-with-actions-renderer",noInjection:!0}}},greetingData:{id:"personal-greeting",mapping:{personalGreetingViewModel:{component:"yt-personal-greeting-view-model",properties:{className:"[[is]]"},
noInjection:!0}}},"data.alerts":{id:"alerts",mapping:{alertRenderer:{component:"yt-alert-renderer",noInjection:!0},unlimitedUserNotificationRenderer:{component:"yt-unlimited-user-notification-renderer",noInjection:!0},alertWithButtonRenderer:{component:"ytd-alert-with-button-renderer",noInjection:!0}},initialRenderPriority:3,waitForSignal:"eocs"},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:{component:"ytd-survey-trigger-renderer",noInjection:!0}},initialRenderPriority:3,waitForSignal:"eocs"},
"data.metadata":{id:"metadata",mapping:{channelMetadataRenderer:{component:"ytd-channel-metadata-renderer",noInjection:!0}}},"data.header":{id:"header",mapping:{pageHeaderRenderer:{component:"ytd-tabbed-page-header",properties:{active:"[[active]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]",isRichGrid:"[[richGrid]]",disableGridStateAware:"[[fluidWidth]]",disableHeaderFluidWidth:"[[disableHeaderFluidWidth]]",isConstrainedList:"[[isConstrainedList]]",responsiveSizing:"[[responsiveSizing]]"}},
interactiveTabbedHeaderRenderer:{component:"ytd-interactive-tabbed-header-renderer",properties:{active:"[[active]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]"},noInjection:!0},carouselHeaderRenderer:{component:"ytd-carousel-header-renderer",properties:{active:"[[active]]",disableGridStateAware:"[[fluidWidth]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]"},noInjection:!0},memberHubProfileRenderer:{component:"ytd-member-hub-profile-renderer",noInjection:!0}},events:!0},
"data.footer":{id:"footer",mapping:{pageFooterRenderer:{component:"ytd-page-footer-renderer",noInjection:!0}}}}};
_.V.created=function(){var J=this;this.ytRendererBehavior.monitorScroll=!0;this.ytPageBehavior.pageDisposeJobs=[function(){J.disposeMastheadAd()}]};
_.V.attached=function(){this.pageSubtype==="home"&&this.refresh&&this.contents&&(this.refreshGesture=new JzF(this.refresh,this.contents))};
_.V.detached=function(){this.tabGestures&&(this.tabGestures.detach(),this.tabGestures=void 0);this.refreshGesture&&(this.refreshGesture.detach(),this.refreshGesture=void 0)};
_.V.activeChanged=function(){var J=this.ytPageBehavior.active;this.header&&this.header.firstChild&&(this.header.firstChild.active=J)};
_.V.tabsChanged=function(){var J=this,c,m;if(this.pageSubtype==="channels"||_.w("kevlar_tab_gestures_for_tabbed_header_data")&&((c=this.data)==null?0:(m=c.header)==null?0:m.carouselHeaderRenderer))this.tabGestures=new fT(this.contents,this.contents,this.hostElement,this.header,function(p){J.ytdReduxBehavior.dispatch(p)});
var b,x,P;c=(b=this.data)==null?void 0:(x=b.contents)==null?void 0:(P=x.twoColumnBrowseResultsRenderer)==null?void 0:P.tabs;this.tabGestures&&this.tabGestures.tabsChanged(c)};
_.V.scrollAtTopChanged=function(){this.refreshGesture&&(this.scrollAtTop?this.refreshGesture.attach():this.refreshGesture.detach())};
_.V.engagementPanelsChanged=function(){var J=_.BG().resolve(_.Tr);if(J){if(this.engagementPanels)for(var c=_.M(this.engagementPanels),m=c.next();!m.done;m=c.next()){var b=void 0;(m=(b=m.value.identifier)==null?void 0:b.tag)&&J.panelMap.delete(m)}this.engagementPanels=[];var x;c=_.M(((x=this.data)==null?void 0:x.panels)||[]);for(x=c.next();!x.done;x=c.next()){x=_.L(x.value,_.qE1);var P=m=void 0,p=void 0,t=void 0;if(b=((m=x)==null?void 0:m.targetId)||((P=x)==null?void 0:P.panelIdentifier)||((p=x)==
null?void 0:(t=p.identifier)==null?void 0:t.tag))P=m=void 0,(P=(m=J).registerPanelContent)==null||P.call(m,b,{engagementPanelSectionListRenderer:x}),this.engagementPanels.push(x)}}};
_.V.onStampFinished=function(){var J=this;_.o3(this,function(){if(J.tabGestures){var c=J.tabGestures;if(c.scrollPositionNeedsUpdate){var m=_.BG().resolve(_.y6(_.oO)),b;if((b=c.selectedTab)!=null&&b.title&&m&&(b=m.getCurrentPage())){if(c.scrollPositionForTabs.has(c.selectedTab.title)){var x,P;m=(P=(x=m.getCurrentPage())==null?void 0:x.clientHeight)!=null?P:0;x=c.scrollPositionForTabs.get(c.selectedTab.title);b.setScrollTop(x);m>x+100&&(c.scrollPositionNeedsUpdate=!1)}else b.setScrollTop(Math.min(c.lastVisitedTabScrollPosition!==
void 0?c.lastVisitedTabScrollPosition:Number.MAX_SAFE_INTEGER,c.tabsStartAtInPx)),c.scrollPositionNeedsUpdate=!1;c.ytdReduxDispatch(fm1(!1))}}}})};
_.V.loadPage_=function(J){this.initCsi();J&&(this.data=J);this.updateTitle(this.data);this.setMastheadAd(this.data)};
_.V.getTitle=function(J){if(this.pageSubtype=="home")return"";if(this.get("microformat.microformatDataRenderer.title",J))return this.get("microformat.microformatDataRenderer.title",J);if(this.get("header.feedTabbedHeaderRenderer.title",J))return _.OG(this.get("header.feedTabbedHeaderRenderer.title",J));if(this.get("header.interactiveTabbedHeaderRenderer.title",J))return this.get("header.interactiveTabbedHeaderRenderer.title",J);if(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",
J))return _.OG(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",J));var c,m;return _.w("enable_page_header_page_title")&&(J==null?0:(c=J.header)==null?0:(m=c.pageHeaderRenderer)==null?0:m.pageTitle)?J.header.pageHeaderRenderer.pageTitle:""};
_.V.updateTitle=function(J){_.cA(this.hostElement,"yt-update-title",this.getTitle(J))};
_.V.initCsi=function(){_.LT(this.pageSubtype||"browse",["ol","cpt"])};
_.V.getPlayer=function(){if(_.w("kevlar_channel_trailer_multi_attach")){for(var J=_.M(this.attachedPlayers),c=J.next();!c.done;c=J.next())if(c=c.value,c.isConnected||_.Gj(this.hostElement,c))return c;return null}return this.player};
_.V.getPlayerContainer=function(){return null};
_.V.onPlayerAttached=function(J,c){_.w("kevlar_channel_trailer_multi_attach")?this.attachedPlayers.push(c):this.player=c};
_.V.onPlayerDetached=function(J,c){_.w("kevlar_channel_trailer_multi_attach")?(J=this.attachedPlayers.indexOf(c),J<0||this.attachedPlayers.splice(J,1)):this.player=null};
_.V.getServiceTrackingParams=function(){var J,c;return((J=this.data)==null?void 0:(c=J.responseContext)==null?void 0:c.serviceTrackingParams)||[]};
_.V.setMastheadAd=function(J){J&&J.mastheadAd&&(this.mastheadAdData=void 0);this.mastheadAdData=J&&J.mastheadAd};
_.V.dataChanged=function(){var J=this;this.refreshGesture&&this.refreshGesture.reset();this.get("filler",this.data)||_.Kr4();_.o3(this,function(){_.bJ(J.hostElement,"ytd-update-grid-state-action")})};
_.V.disposeMastheadAd=function(){this.mastheadAdData=void 0};
_.V.computeAlertBannerData=function(){if(this.data&&this.data.alerts){var J=this.data.alerts;return J&&J.find(function(c){return!!c.alertWithActionsRenderer})}};
_.V.computeGreetingData=function(){if(this.data&&this.data.alerts){var J=this.data.alerts;return J&&J.find(function(c){return!!c.personalGreetingViewModel})}};
_.V.computeHasMemberHubProfileRenderer=function(J){var c;return!!(J==null?0:(c=J.header)==null?0:c.memberHubProfileRenderer)};
_.V.handleAlertCommand=function(J){this.get("alertCommand.alert.alertWithActionsRenderer",J)&&(J=_.L(J,EXs),this.data.alerts||this.set("data.alerts",[]),this.unshift("data.alerts",J.alert))};
_.V.handleYtPlaylistDeletionRedirect=function(J){J=this.get("playlistDeletionRedirectCommand.redirectEndpoint",J);_.cA(this.hostElement,"yt-navigate",{endpoint:J})};
_.V.computeFluidWidth=function(J,c,m){if(c==="mini_app"||m)return!0;var b,x,P;J=J==null?void 0:(b=J.contents)==null?void 0:(x=b.twoColumnBrowseResultsRenderer)==null?void 0:(P=x.tabs)==null?void 0:P.find(function(I){var a;return I==null?void 0:(a=I.tabRenderer)==null?void 0:a.selected});
if(!J)return!1;var p,t;return!!((p=J.tabRenderer)==null?0:(t=p.content)==null?0:t.richGridRenderer)&&!["channel","channels","playables"].includes(c)};
_.V.computeHeaderFluidWidth=function(J){return J==="hashtag-landing-page"};
_.V.computeHasSidebar=function(J){var c;return!!(J.sidebar||((c=J.header)==null?0:c.playlistHeaderRenderer))};
_.V.computeHasPageHeaderSidebar=function(J){var c,m;return!!((c=J.header)==null?0:(m=c.pageHeaderRenderer)==null?0:m.enableSidebarView)};
_.V.computeUseUnifiedShowPageLayout=function(J){if(!J||this.pageSubtype!=="show"||!J.sidebar||!J.sidebar.playlistSidebarRenderer)return!1;J=J.sidebar.playlistSidebarRenderer;if(!J.items)return!1;for(var c=0;c<J.items.length;c++)if(_.L(J.items[c],zJ)){var m=void 0;return((m=_.L(J.items[c],zJ))==null?void 0:m.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.V.computeIsConstrainedList=function(J){return _.w("web_enable_constrained_list_subscriptions_channels")&&J==="subscriptions-channels"};
_.V.computeResponsiveSizing=function(J){return J==="subscriptions-channels"?"STANDARD":"COMPACT"};
_.eE.Object.defineProperties(XQ.prototype,{usePlaylistHeaderRenderer:{configurable:!0,enumerable:!0,get:function(){var J,c;return((J=this.data)==null?0:(c=J.header)==null?0:c.playlistHeaderRenderer)?!0:!1}},
useOldPlaylistSidebarRenderer:{configurable:!0,enumerable:!0,get:function(){var J,c;if(!((J=this.data)==null?0:(c=J.sidebar)==null?0:c.playlistSidebarRenderer))return!1;var m;return(m=this.data)!=null&&m.header?!1:!0}}});
_.eE.Object.defineProperties(XQ,{template:{configurable:!0,enumerable:!0,get:function(){if(bWu===void 0){var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);bWu=J}J=bWu;return J}}});
XQ.prototype.dataChanged=XQ.prototype.dataChanged;XQ.prototype.onPlayerDetached=XQ.prototype.onPlayerDetached;XQ.prototype.onPlayerAttached=XQ.prototype.onPlayerAttached;XQ.prototype.onStampFinished=XQ.prototype.onStampFinished;XQ.prototype.engagementPanelsChanged=XQ.prototype.engagementPanelsChanged;XQ.prototype.scrollAtTopChanged=XQ.prototype.scrollAtTopChanged;XQ.prototype.tabsChanged=XQ.prototype.tabsChanged;XQ.prototype.activeChanged=XQ.prototype.activeChanged;
_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],XQ.prototype,"ytActionHandlerBehavior",void 0);_.O([_.f(_.vL),_.R("design:type",Object)],XQ.prototype,"ytdOpenPopupBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],XQ.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.fY),_.R("design:type",Object)],XQ.prototype,"ytdReduxBehavior",void 0);_.O([_.f(_.D$.YtPageBehavior),_.R("design:type",Object)],XQ.prototype,"ytPageBehavior",void 0);
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],XQ.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.SO.YtdGuideStateAwareBehavior),_.R("design:type",Object)],XQ.prototype,"ytdGuideStateAwareBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],XQ.prototype,"ytComponentBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],XQ.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],XQ.prototype,"hidden",void 0);
_.O([_.U(),_.R("design:type",Object)],XQ.prototype,"mastheadAdData",void 0);_.O([_.U({readOnly:!0,computed:"computeAlertBannerData(data.alerts.*)"}),_.R("design:type",Object)],XQ.prototype,"alertBannerData",void 0);_.O([_.U({readOnly:!0,computed:"computeGreetingData(data.alerts.*)"}),_.R("design:type",Object)],XQ.prototype,"greetingData",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",String)],XQ.prototype,"pageSubtype",void 0);
_.O([_.U({reflectToAttribute:!0,computed:"computeHasMemberHubProfileRenderer(data)"}),_.R("design:type",Boolean)],XQ.prototype,"hasMemberHubProfileRenderer",void 0);_.O([_.U({computed:"computeHasSidebar(data)",reflectToAttribute:!0}),_.R("design:type",Boolean)],XQ.prototype,"hasSidebar",void 0);_.O([_.U({computed:"computeHasPageHeaderSidebar(data)",reflectToAttribute:!0}),_.R("design:type",Boolean)],XQ.prototype,"hasPageHeaderSidebar",void 0);
_.O([_.U({reflectToAttribute:!0,value:!0}),_.R("design:type",Boolean)],XQ.prototype,"roundedContainer",void 0);_.O([_.U({computed:"computeUseUnifiedShowPageLayout(data)",reflectToAttribute:!0}),_.R("design:type",Boolean)],XQ.prototype,"useUnifiedShowPageLayout",void 0);_.O([_.U({computed:"computeIsConstrainedList(pageSubtype)"}),_.R("design:type",Object)],XQ.prototype,"isConstrainedList",void 0);
_.O([_.q("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],XQ.prototype,"usePlaylistHeaderRenderer",null);_.O([_.q("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],XQ.prototype,"useOldPlaylistSidebarRenderer",null);_.O([_.U({computed:"computeFluidWidth(data, pageSubtype, isConstrainedList)"}),_.R("design:type",Boolean)],XQ.prototype,"fluidWidth",void 0);_.O([_.U({selector:function(J){return J.ui.scrollAtTop}}),
_.R("design:type",Boolean)],XQ.prototype,"scrollAtTop",void 0);_.O([_.U({selector:_.Ixp}),_.R("design:type",Boolean)],XQ.prototype,"tabGesturesIsActive",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],XQ.prototype,"darkerDarkTheme",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeHeaderFluidWidth(pageSubtype)"}),_.R("design:type",Boolean)],XQ.prototype,"disableHeaderFluidWidth",void 0);
_.O([_.U({reflectToAttribute:!0,computed:"computeResponsiveSizing(pageSubtype)"}),_.R("design:type",String)],XQ.prototype,"responsiveSizing",void 0);_.O([_.Iu("ytd-two-column-browse-results-renderer"),_.R("design:type",HTMLElement)],XQ.prototype,"contents",void 0);_.O([_.Iu("#header"),_.R("design:type",HTMLElement)],XQ.prototype,"header",void 0);_.O([_.Iu("ytd-refresh"),_.R("design:type",Object)],XQ.prototype,"refresh",void 0);
_.O([_.NE("active"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],XQ.prototype,"activeChanged",null);_.O([_.NE("data.contents.twoColumnBrowseResultsRenderer.tabs"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],XQ.prototype,"tabsChanged",null);_.O([_.NE("scrollAtTop"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],XQ.prototype,"scrollAtTopChanged",null);
_.O([_.U(),_.R("design:type",Object)],XQ.prototype,"engagementPanels",void 0);_.O([_.NE("data.panels"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],XQ.prototype,"engagementPanelsChanged",null);_.O([_.ps("yt-rendererstamper-finished"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],XQ.prototype,"onStampFinished",null);
_.O([_.ps("yt-player-attached"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,Element]),_.R("design:returntype")],XQ.prototype,"onPlayerAttached",null);_.O([_.ps("yt-player-detached"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,Element]),_.R("design:returntype")],XQ.prototype,"onPlayerDetached",null);_.O([_.kr("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],XQ.prototype,"dataChanged",null);
XQ=_.O([_.E({is:"ytd-browse"})],XQ);_.l6.registerService(_.Y6t,XQ);
_.qi();
}catch(e){_._DumpException(e)}
try{
_.ZS("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 BC=function(J){if(!J)return"browse";var c=J.page,m=J.url,b,x,P,p=(b=J.response)==null?void 0:(x=b.responseContext)==null?void 0:(P=x.webResponseContextExtensionData)==null?void 0:P.pageTheme;if(p)c=p.toLowerCase().replace(/_/g,"-");else if(c!=="watch"&&c!=="learning_journey_watch"){var t,I;if((c==="browse"||c==="settings")&&((t=J.response)==null?0:(I=t.sidebar)==null?0:I.settingsSidebarRenderer))c="WEB_PAGE_TYPE_SETTINGS";else{var a,k;c==="browse"&&((a=J.response)==null?0:(k=a.metadata)==null?
0:k.channelMetadataRenderer)?c="channel":m&&(c=_.Nr(m)||c)}}return c},ny5=function(){var J=_.$y("yt.aba.att");
return J?J:_.lT.instance!==void 0?_.lT.instance.zYv.bind(_.lT.instance):null},Tue=function(J,c){var m;
return _.N(function(b){return(m=ny5())?b.return(m(J,c,6E4)):b.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})},wGe=function(J,c,m,b,x){c=c===void 0?[]:c;
x=x?{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:x}]}}:void 0;return{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.yq(J),dialogMessages:c.map(function(P){return _.yq(P)}),
confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.yq(m),serviceEndpoint:x}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.yq(b)}}}}}},rah=function(J){var c=!!_.Zl().queueProxy;
var m,b,x;J=J==null?void 0:(m=J.response)==null?void 0:(b=m.currentVideoEndpoint)==null?void 0:(x=b.watchEndpoint)==null?void 0:x.playlistId;return!(!c&&!J)},sPp=function(J,c){var m=_.Mh();
if(rah(J))return m.playlistWatchPageActivation=!0;switch(BC(c)){case "yts-products":return m.productDetailsPageActivation=!0;case "mini_app":return m.miniAppPageActivation=!0;case "playables":return m.playablesDestPageActivation=!0;default:return!1}},Lvo=function(J,c,m){for(var b=typeof J==="string"?J.split(""):J,x=J.length-1;x>=0;--x)x in b&&c.call(m,b[x],x,J)},D3e=function(J,c){c=_.iGJ(J,c);
c>=0&&_.e2(J,c)},WvR=function(J){return Array.prototype.concat.apply([],arguments)},zMp=function(J){var c=0;
c=c===void 0?0:c;if(!_.nr(J))throw _.CQ("uint64");var m=typeof J;switch(c){case 512:switch(m){case "string":return _.t6R(J);case "bigint":return String((0,_.Sh)(64,J));default:return _.pBQ(J)}case 1024:switch(m){case "string":return _.I_m(J);case "bigint":return _.F$((0,_.Sh)(64,J));default:return _.NLG(J)}case 0:switch(m){case "string":return _.t6R(J);case "bigint":return _.F$((0,_.Sh)(64,J));default:return _.M62(J)}default:return _.Pu(c,"Unknown format requested type for int64")}},uks=function(J){J!=
null&&(J=J.JSC$6830_value_||"",J=typeof J==="string"?J:new Uint8Array(J));
return J},fcr=function(J){for(var c=_.s$.apply(1,arguments),m=J[0],b=0;b<J.length-1;b++)m+=String(c[b]),m+=J[b+1];
c=document.implementation.createHTMLDocument("");b=c.createElement("style");c.head.appendChild(b);c=b.sheet;c.insertRule(m,0);if(c.cssRules.length===1&&(m=c.cssRules[0],m instanceof CSSStyleRule))return new _.AG(m.cssText.replace(/</g,"\\3C "))},Ybp=function(J,c){if(/-[a-z]/.test(c))return null;
if(_.CC_&&J.dataset){if(_.pr2()&&!(c in J.dataset))return null;J=J.dataset[c];return J===void 0?null:J}return J.getAttribute("data-"+_.Kl(c))},Z3f=function(){var J=XGh;
_.$y("yt.ads.biscotti.getId_")||_.jD("yt.ads.biscotti.getId_",J)},qbF=function(J){_.jD("yt.ads.biscotti.lastId_",J)},Sbe=function(){var J={};
for(_.W7=new U3r(J.handleError===void 0?_.Zt:J.handleError,J.logEvent===void 0?_.zB:J.logEvent);_.zo.length>0;)switch(J=_.zo.shift(),J.type){case "ERROR":_.W7.logError(J.payload);break;case "EVENT":_.W7.logEvent(J.eventType,J.payload)}},hMR=function(J,c,m){return _.Olu(function(b){return m?b.userIdentifier!==void 0&&!J.includes(b.userIdentifier)&&m.includes(b.publicName):b.userIdentifier!==void 0&&!J.includes(b.userIdentifier)},c)},d3R=function(J){var c,m;
return _.N(function(b){if(b.nextAddress==1)return c=_.ij("YtIdbMeta hasAnyMeta other"),_.K(b,_.Olu(function(x){return x.userIdentifier!==void 0&&x.userIdentifier!==c},J),2);
m=b.yieldResult;return b.return(m.length>0)})},Gep=function(J,c){$31||($31=_.ft.addLowPriorityJob(function(){var m,b,x,P,p;
return _.N(function(t){switch(t.nextAddress){case 1:return _.K(t,_.Fb(),2);case 2:m=t.yieldResult;if(!m)return t.return();b=!0;_.xL(t,3);return _.K(t,hMR(J,m,c),5);case 5:x=t.yieldResult;if(!x.length){b=!1;t.jumpTo(6);break}P=x[0];return _.K(t,_.v7(P.actualName),7);case 7:return _.K(t,_.Rr(P.actualName,m),6);case 6:_.EO(t,4);break;case 3:p=_.NM(t),_.uj(p),b=!1;case 4:_.ft.cancelJob($31),$31=0,b&&Gep(J,c),_.tD(t)}})}))},Eyp=function(){var J;
return _.N(function(c){return c.nextAddress==1?_.K(c,_.Fb(),2):(J=c.yieldResult)?c.return(d3R(J)):c.return(!1)})},vyo=function(J){var c=100;
c=c===void 0?500:c;var m,b,x,P,p,t;return _.N(function(I){return I.nextAddress==1?(m=_.Ub("INNERTUBE_CONTEXT_CLIENT_NAME",0),b=[m,(0,_.y4)()-2592E6],x=[m,(0,_.y4)()],P=IDBKeyRange.bound(b,x),_.K(I,_.anf(J),2)):I.nextAddress!=3?(p=I.yieldResult,t=[],_.K(I,_.AL(p,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(a){t.length=0;return _.B7(a.objectStore("SWHealthLog").index("swHealthNewRequest"),{query:P,direction:"prev"},function(k){if(k.getValue()&&t.length<c)return t.push(k.getValue()),
k.delete().then(function(){return k.continue()})})}),3)):I.return(t)})},O3o=function(){var J;
return _.N(function(c){if(c.nextAddress==1)return _.K(c,_.Fb(),2);J=c.yieldResult;if(!J||!_.To()&&!_.w("nwl_init_require_datasync_id_killswitch")||!_.Urm())return c.jumpTo(0);_.hgo=!0;_.STT.isNwlInitialized=_.hgo;return _.K(c,_.s6Z().awaitInitialization(),0)})},gg=function(J,c){_.BBG[J]=!0;
var m=_.mC();m&&m.publish.apply(m,arguments);_.BBG[J]=!1},RM4=function(){if(_.YGt()&&!Aap){var J=function(m){m=m.data;
if(m.op==="serializedGelBatch"){var b=_.grR.get(m.key);b&&(_.cdQ(m.serializedBatch,b.client,b.resolve,b.networklessOptions,b.isIsolated,b.useVSSEndpoint,b.dangerousLogToVisitorSession,b.requestsOutstanding),_.grR.delete(m.key))}},c=_.fZD();
c&&(c.addEventListener("message",J),c.onerror=function(){_.grR.clear()});
Aap=!0}},Jb=function(){this.relativeTimeStart_=_.lc()},oys=function(J,c){J!=null&&this.append.apply(this,arguments)},QPS=function(){return _.SK("SLI_NAME_YOUTUBE_WEB_YT_GUIDE_DATA_PRESENT","GUIDE_DATA_PRESENT",6E4,"FAILURE")},eMR=function(J,c,m){m=m===void 0?!1:m;
var b,x,P,p,t;return _.N(function(I){switch(I.nextAddress){case 1:_.kK("SOCS",J,34128E3,"youtube.com",!0);if(_.xd)return x=fetch(c,{method:"POST",mode:_.vS(c),credentials:_.EH(c),cache:"no-store",headers:{"Content-Type":"text/plain"}}).catch(function(){}),P=fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",
mode:_.vS("/upgrade_visitor_cookie?eom=1"),credentials:_.EH("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),_.K(I,Promise.all([x,P]).then(function(a){return a[1]}),5);
fetch(c,{method:"POST",mode:_.vS(c),credentials:_.EH(c),cache:"no-store",headers:{"Content-Type":"text/plain"}});return _.K(I,fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",mode:_.vS("/upgrade_visitor_cookie?eom=1"),credentials:_.EH("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),4);case 4:b=I.yieldResult;I.jumpTo(3);break;case 5:b=p=I.yieldResult;case 3:if(!b.ok)throw Error("mf");return _.K(I,b.text(),7);case 7:t=I.yieldResult,
!t.includes('"state_switch":true')&&!m||t.includes("skip_reload_for_test")||window.location.reload(),_.tD(I)}})},jPF=function(J){return _.N(function(c){return c.nextAddress==1?_.K(c,eMR(J.socsCookie,J.savePreferenceUrl,!0),2):c.return()})},Fv1=function(J){return _.N(function(c){return c.nextAddress==1?_.K(c,eMR(J.socsCookie,J.savePreferenceUrl),2):c.return()})},yaR=function(J){J=J.xhr.responseText;
if(!_.xt(J,")]}'"))throw new c6;J=JSON.parse(J.substr(4));if((J.type||1)>1)throw new c6;J=J.id;qbF(J);mZ=_.de(J);lcR(18E5,2);return J},gye=function(J,c){c=new BuR(c);
qbF("");mZ=_.e52(c);J>0&&lcR(12E4,J-1);throw c;},lcR=function(J,c){_.P7(function(){_.m35().then(yaR,function(m){return gye(c,m)}).thenCatch(_.tF)},J)},XGh=function(){var J=_.VsF();
if(J!==void 0)return _.sv(J);mZ||(mZ=_.m35().then(yaR).thenCatch(function(c){return gye(2,c)}));
return mZ},JL5=function(){var J=document;
return _.$t(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(c){return"on"+c.toLowerCase()in J})},cLR=function(J){J.addEventListener("click",function(c){var m=c.target;
m&&m.getAttribute("href")&&(m=m.getAttribute("href"),_.Zx(window,m,"_blank"),c.preventDefault(),c.stopImmediatePropagation())})},mU5=function(J){var c,m,b,x=(b=(m=((c=J.mainDownloadsListEntity)!=null?c:{})[_.bOR])==null?void 0:m.refresh)!=null?b:"",P;
J=(P=J.refresh)==null?void 0:P[x];x=J!=null?J:{};return(x==null?0:x.refreshTime)?Number(x==null?void 0:x.refreshTime):0},bgR=function(J,c){var m=_.wf(J);
return c.every(function(b){var x;b=b==null?void 0:(x=b.playbackDataEntity)==null?void 0:x.key;if(!b)return!1;x=_.V_(_.mA(b).entityId,"mainVideoEntity");return!!m[x]})},xUR=function(J){J=_.iW(J.entities);
return _.HVQ(J).length},VDo=function(J,c){if(c){var m;
J=(m=_.P2(J.entities,"downloadQualityPickerEntity",c))!=null?m:void 0}else J=void 0;return J},p7p=function(){Pjh||(_.EG=_.gWG,Pjh=new MDR);
return Pjh},N3F=function(J){var c=document.getElementsByTagName("ytd-enforcement-message-view-model");
c.length===0||getComputedStyle(c[0]).display==="none"?J(0,"p.h_"):J(1,"p.h_")},tDo=function(){bb=0;
var J=[_.a1(!0)];xD&&_.bJ(xD,"yt-window-resized",J)},I4S=function(){bb||(bb=_.ft.addLowPriorityJob(tDo,200))},Cjp=function(){Vz=0;
KGr=_.a3a(document);var J=[KGr];xD&&_.bJ(xD,"yt-window-scrolled",J)},a4R=function(){Vz||(Vz=_.ft.addLowPriorityJob(Cjp,200))},Hgu=function(J){J=J===void 0?null:J;
koR.push(_.B4(window,"resize",I4S));koR.push(_.B4(window,"scroll",a4R));J&&(xD=J)},nKR=function(){var J={isWide:_.ar.get("wide","0")==="1"},c=_.HA();
if(c=c.getFlag(165)||c.getFlag(174))J.theme=_.wB(!0);if(_.CHe()){var m=_.Th()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";J.systemTheme=m}!c&&_.w("parent_tools_enable_app_settings")&&_.Aa(window.location.href).theme!==void 0&&(J.theme=_.wB());if((c=P6)?!_.Lw.equals(c,J):J)c={currentValue:J},igr&&(c.timeSinceLastSnapshotSecs=Math.round(((0,_.y4)()-igr)/1E3)),P6&&(c.previousValue=P6),_.zB("appSettingsCaptured",c),P6=J,igr=(0,_.y4)()},T3s=function(J){_.N(function(c){if(c.nextAddress==1)return _.K(c,
J.delete("yt-appshell-assets"),2);
_.tD(c)})},w7R=function(J){return _.OO((0,_.Lta)(),J)},srp=function(){var J;
_.N(function(c){return c.nextAddress==1?_.K(c,Mq.getInstance(),2):(J=c.yieldResult)?_.K(c,rL5(J),0):c.jumpTo(0)})},DUf=function(){var J;
_.N(function(c){return c.nextAddress==1?_.K(c,pL.getInstance(),2):(J=c.yieldResult)?_.K(c,LGe(J),0):c.jumpTo(0)})},WGf=function(J){T3s(J);
srp();DUf()},zkh=function(J){var c,m;
return _.N(function(b){if(b.nextAddress==1)return _.K(b,_.h0r(J),2);if(c=b.yieldResult){var x;a:{if(c.headers&&(x=c.headers.get("date"))&&(x=Date.parse(x),!isNaN(x))){x=Math.round((0,_.y4)()-x);break a}x=-1}m=x;if(m>-1)return b.return(m)}return b.return(-1)})},ubf=function(){var J=_.mo.caches,c=_.Ss("IS_SHELL_LOAD"),m,b;
_.N(function(x){if(x.nextAddress==1)return m=-1,c?_.K(x,zkh(J),3):(b=_.wM(),m=Math.round((0,_.y4)()-b),x.jumpTo(2));x.nextAddress!=2&&(m=x.yieldResult);m>=0&&m<2147483648&&_.uJ({appInstallDataAgeMs:m});_.tD(x)})},f4p=function(J){var c=_.O7(_.mo.location.href),m={};
"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(b){var x=c.JSC$8042_queryData_.getValues(b);if(x==null?0:x.length)m[b]=x});
return _.mp(J,new Map(Object.entries(m)))},YO1=function(J){J=J.match(/(.*)::.*::.*/);
if(J!==null)return J[1]},X7S=function(J){if(_.JHT()){var c=Object.keys(window.localStorage);
c=_.M(c);for(var m=c.next();!m.done;m=c.next()){m=m.value;var b=YO1(m);b===void 0||J.includes(b)||self.localStorage.removeItem(m)}}},Zgo=function(){if(!_.JHT())return!1;
var J=_.ij(),c=Object.keys(window.localStorage);c=_.M(c);for(var m=c.next();!m.done;m=c.next())if(m=YO1(m.value),m!==void 0&&m!==J)return!0;return!1},qOR=function(J){return _.Ri("NotificationsDisabled",J)},UU4=function(){return Notification.permission!="granted"?Promise.resolve():_.K_p().then(function(J){return J?J.pushManager.getSubscription().then(function(c){if(c)return Promise.resolve();
c={userVisibleOnly:!0,applicationServerKey:_.I2("BPr83OIQ0ehMqbAUQWSaFHZOJeRvvXddR5EONgwwQcHR6FRe6G43LgD36pJq1IuGN10mmMv-V7IKSIZludF9G1k")};return J.pushManager.subscribe(c).then(function(){return Promise.resolve()},function(){return Promise.resolve()})}):Promise.resolve()}).catch(function(){})},SOp=function(J){return _.K_p().then(function(c){if(!c||!c.active)return Promise.reject(new _.w3("serviceworker.postMessage",J,c));
try{return c.active.postMessage(J),Promise.resolve()}catch(m){return Promise.reject(m)}})},hkp=function(){SOp({type:"notifications_register",
data:_.Ub("ID_TOKEN")})},dUR=function(){if(!_.Ss("LOGGED_IN"))return Promise.resolve(!1);
var J=_.mG("service_worker_push_force_notification_prompt_tag");return J?_.jX("PromptTags").then(function(c){if(!c)return!0;var m=[];try{m=JSON.parse(c)}catch(b){return!1}return m&&m.indexOf(J)==-1}):Promise.resolve(!1)},$Uo=function(){var J=_.c7("service_worker_push_prompt_delay_microseconds");
return J?_.jX("PromptTime").then(function(c){return Promise.resolve(Date.now()-J>(c||0))}):Promise.resolve(!0)},Goo=function(){var J=_.c7("service_worker_push_logged_out_prompt_watches");
return J==-1?Promise.resolve(!1):_.jX("WatchCount").then(function(c){return c>=J})},EKF=function(){var J=_.FG(document,"yt-push-prompt-modal-bg");
J&&_.nc(J)},vK4=function(){return _.c7("service_worker_push_prompt_cap")==-1?Promise.resolve(!0):_.jX("PromptCount").then(function(J){J||(J=0);
return Promise.resolve(J<_.c7("service_worker_push_prompt_cap"))})},Ogp=function(J){return _.Ss("SERVICE_WORKER_PROMPT_NOTIFICATIONS")||_.Ss("LOGGED_IN")&&(J===void 0?0:J)?dUR().then(function(c){if(c)return!0;
c=[vK4(),$Uo()];_.Ss("LOGGED_IN")||c.push(Goo());return Promise.all(c).then(function(m){return m.every(function(b){return b})})}):Promise.resolve(!1)},ALF=function(){_.jX("PromptCount").then(function(J){return _.Ri("PromptCount",J+1)}).then(function(){return _.Ri("PromptTime",Date.now())}).then(function(){var J=_.mG("service_worker_push_force_notification_prompt_tag");
if(J)return _.jX("PromptTags").then(function(c){var m=[];if(c)try{m=JSON.parse(c)}catch(b){return!1}m||(m=[]);m.push(J);return _.Ri("PromptTags",JSON.stringify(m))})})},oKR=function(){Rku||EKF()},Qrs=function(J){J.style.zIndex=2147483648;
J.style.pointerEvents="auto";J.style.backgroundColor="rgba(0, 0, 0, 0.6)";J.style.width="100%";J.style.height="100vh";J.style.position="absolute";J.style.top="0";J.style.left="0";J.style.border="none"},ekr=function(){var J=_.FG(document,"yt-push-prompt-modal-bg");
Rku=_.w("service_worker_push_prompt_modal_ignore_click");J?Qrs(J):(J=_.nd("div",{id:"yt-push-prompt-modal-bg"}),Qrs(J),document.body.appendChild(J),_.j1q(document,"click",oKR))},jrp=function(){var J=arguments;
_.w("service_worker_push_prompt_modal_enable")&&ekr();return Notification.requestPermission().then(function(c){EKF();var m=document.getElementById("ticker");m&&(m.className=m.classList.remove("show"));if(c=="granted")return UU4().then(function(){qOR(!1);hkp();return Promise.resolve(!0)});
c=="denied"&&hkp();return Promise.resolve(!1)}).catch(function(){EKF();
return Promise.reject.apply(Promise,_.L6(J))})},FG1=function(J){J=J===void 0?!1:J;
var c=_.nqu().client;if(c&&c.browserVersion){var m=c.browserVersion,b=c.browserName=="CHROME"&&_.aR(m,"50.0.0")<0;c=c.browserName=="OPERA"&&_.aR(m,"42.0.0")<0;if(b||c)return Promise.resolve()}return _.k$4().then(function(x){if(!x)return Promise.resolve();x=UU4().then(function(){return SOp({type:"notifications_check_registration",data:_.Ub("ID_TOKEN")})});
return Notification.permission!="default"?x.catch(function(){}):x.then(function(){return Ogp(J)}).then(function(P){if(P)return ALF(),jrp().then(function(){})}).catch(function(){})})},l4R=function(J){return _.CsF(J)?FG1():Promise.resolve()},yLe=function(J){var c=J.installing||J.waiting;
return J.active||!c?Promise.resolve(J):new Promise(function(m){var b=function(x){x=x.target;if(x.state==="activated"||x.state==="redundant")c.removeEventListener("statechange",b),m(J)};
c.addEventListener("statechange",b)})},B31=function(){var J=new _.dbo("SLI_NAME_YOUTUBE_WEB_SERVICE_WORKER_REGISTRATION","",12E4,"TIMEOUT");
_.N_(J,{mainAppWeb:_.$b()});var c=_.vJ2;_.w("service_worker_forward_exp_params")&&(c=f4p(c));try{var m=_.wXu(c).catch(function(){_.tm(J,"FAILURE");return new Promise(function(){})});
_.w("service_worker_push_enabled")&&m.then(function(b){_.tm(J,"SUCCESS");return b}).then(yLe).then(l4R)}catch(b){if(_.tm(J,"FAILURE"),b.name!=="SecurityError")throw b;
}},gKr=function(){navigator.serviceWorker&&navigator.serviceWorker.getRegistrations&&window.location.protocol==="https:"&&B31()},JUo=function(J,c){var m={};
c&&(m.serializedYpcFamilyCreateLoggingParams=c);_.zB(J,m);_.YH()},cU4=function(J,c){var m={};
m.serializedYpcRefundFlowLoggingParams=c;J&&(m.eventType=J);_.zB("ypcRefundFlowEvent",m);_.YH()},mX4=function(J){J&&_.sMt("transactionFlowSucceeded",J)},btS=function(J){J&&_.zu("ypcCancelFlowFailed","serializedYpcCancelFlowLoggingParams",J,void 0,"YPC_ERROR_REASON_YPC_CANCEL_RECURRENCE_TRANSACTION_FAILURE")},xXF=function(J){var c,m,b,x,P,p,t;
_.N(function(I){if(I.nextAddress==1)return _.K(I,_.x4J(),2);if(I.nextAddress!=3){if(!I.yieldResult)return I.return(!1);c=[];return _.K(I,_.m$.keys(),3)}m=I.yieldResult;b=_.M(m);for(x=b.next();!x.done;x=b.next())P=x.value,p=_.m4r(P),t=p.datasyncId,!t||J.includes(t)||c.push(_.m$.delete(P));return I.return(Promise.all(c).then(function(a){return a.some(function(k){return k})}))})},Vff=function(){var J,c,m,b,x,P,p;
return _.N(function(t){if(t.nextAddress==1)return _.K(t,_.x4J(),2);if(t.nextAddress!=3){if(!t.yieldResult)return t.return(!1);J=_.ij("cache contains other");return _.K(t,_.m$.keys(),3)}c=t.yieldResult;m=_.M(c);for(b=m.next();!b.done;b=m.next())if(x=b.value,P=_.m4r(x),(p=P.datasyncId)&&p!==J)return t.return(!0);return t.return(!1)})},POr=function(){var J=_.BG().resolve(_.y6(_.zSZ));
return J?J.getCurrentTime():0},MfR=function(){var J,c,m,b,x,P,p,t,I,a,k,H,T,r;
return _.N(function(W){switch(W.nextAddress){case 1:J={},c=_.F0u(),m=_.M(Object.entries(c)),b=m.next();case 4:if(b.done){W.jumpTo(3);break}x=b.value;P=_.M(x);p=P.next().value;t=P.next().value;I=p;a=t;if(!a){W.jumpTo(5);break}return _.K(W,a(),8);case 8:J[I]=W.yieldResult;case 5:b=m.next();W.jumpTo(4);break;case 2:k=_.M(void 0),H=k.next();case 9:if(H.done){W.jumpTo(3);break}T=H.value;r=c[T];if(!r){W.jumpTo(10);break}return _.K(W,r(),13);case 13:J[T]=W.yieldResult;case 10:H=k.next();W.jumpTo(9);break;
case 3:return W.return(J)}})},p4f=function(){var J;
_.N(function(c){if(c.nextAddress==1)return _.K(c,MfR(),2);J=c.yieldResult;return _.K(c,navigator.clipboard.writeText(JSON.stringify(J,null,2)),0)})},NoF=function(J,c){return _.P2(J.entities,"superThanksSelectedTierEntity",c)},tfR=function(J){var c;
return(c=J.sharedUi)==null?void 0:c.currentPageType},ICs=function(J,c){return{popup:{searchSuggestionReportDialog:{searchQuery:J,
title:_.CX("SBOX_INAPPROPRIATE_TITLE"),suggestions:c,categoryLabel:_.CX("SBOX_INAPPROPRIATE_CATEGORY"),categories:[{id:1,label:_.CX("SBOX_INAPPROPRIATE_HATEFUL")},{id:2,label:_.CX("SBOX_INAPPROPRIATE_EXPLICIT")},{id:3,label:_.CX("SBOX_INAPPROPRIATE_VIOLENT")},{id:4,label:_.CX("SBOX_INAPPROPRIATE_DANGEROUS")},{id:5,label:_.CX("SBOX_INAPPROPRIATE_OTHER"),reasonLabel:_.CX("SBOX_INAPPROPRIATE_REASON")}],detailsPlaceholderLabel:_.CX("SBOX_INAPPROPRIATE_ADDITIONAL"),cancelButtonLabel:_.CX("SBOX_INAPPROPRIATE_CANCEL"),
submitButtonLabel:_.CX("SBOX_INAPPROPRIATE_REPORT")}},popupType:"DIALOG"}},KLu=function(J){var c,m,b,x,P,p,t,I,a,k,H,T,r,W,Y,Z,d,G,e;
return _.N(function(A){switch(A.nextAddress){case 1:return _.K(A,_.Ny(),2);case 2:return(c=A.yieldResult)?_.K(A,_.i82(c),3):A.return();case 3:m=A.yieldResult;if(!m)return A.return();x=((b=m.offlineVideos)==null?void 0:b.length)||0;p=((P=m.offlinePlaylists)==null?void 0:P.length)||0;if(x===0&&p===0)return A.return();t=0;if(m.offlineVideos)for(I=_.M(m.offlineVideos),a=I.next();!a.done;a=I.next())k=a.value,"OFFLINE_VIDEO_STATE_PLAYABLE"===k.videoState&&(t+=1);J.offline_videos_count=x.toString();_.w("kevlar_log_offline_current_network_type_ks")||
(J.offline_current_network_type=(H=_.kvu())!=null?H:"CONN_INVALID");_.w("kevlar_log_updated_time_for_smart_downloads")&&(T=_.Rc().getState().entities,r=_.Lk(T),W=mU5(T),J.offline_smart_downloads_last_sync_time_ms=r.toString(),J.offline_smart_downloads_next_sync_time_ms=W.toString());J.offline_videos_playable=t.toString();J.offline_playlists_count=p.toString();if(!_.w("woffle_used_state_report")){A.jumpTo(4);break}m.offlineVideos&&(Y=m.offlineVideos.reduce(function(l,y){y.downloadedBytes&&(l+=Number(y.downloadedBytes));
return l},0).toString())&&(J.offline_used_disk_space_bytes=Y);
if(!((Z=navigator)==null?0:(d=Z.storage)==null?0:d.estimate)){A.jumpTo(4);break}return _.K(A,navigator.storage.estimate(),6);case 6:G=A.yieldResult,J.offline_free_disk_space_bytes=(((e=G)==null?void 0:e.quota)||0).toString();case 4:J.offline_client_state=JSON.stringify(m),_.tD(A)}})},COR=function(J){J=J.match(/(.*)::.*::.*/);
if(J!==null)return J[1]},aCR=function(J){if(_.C8D()){var c=Object.keys(window.sessionStorage);
c=_.M(c);for(var m=c.next();!m.done;m=c.next()){m=m.value;var b=COR(m);b===void 0||J.includes(b)||self.sessionStorage.removeItem(m)}}},k7R=function(){if(!_.C8D())return!1;
var J=_.ij(),c=Object.keys(window.sessionStorage);c=_.M(c);for(var m=c.next();!m.done;m=c.next())if(m=COR(m.value),m!==void 0&&m!==J)return!0;return!1},Nq=function(J,c,m){(_.w("desktop_keyboard_shortcut_usage_log")||m&&_.w("web_shorts_keyboard_shortcut_usage_log"))&&(c?_.Ff.get(J):_.ji.get(J))&&(J=c?_.yc.get(J):_.lf.get(J))&&_.AS(_.Y3(),J)},Hth=function(J){return J.visibility!=="hidden"&&J.display!=="none"},it1=function(J){if(!J.matches("a[href],a[tabindex],area[href],iframe,[tabindex],[contentEditable],summary,details:not(:has(summary)),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),button:not([disabled]),object:not([disabled])"))return-1;
J=J.getAttribute("tabindex")||"0";return Number(J)},n$o=function(J){return J.some(function(c){return it1(c)>0})},Tof=function(J){if(J.textContent)return!0;
if(J instanceof HTMLInputElement){if(!J.labels)return!1;J=_.M(J.labels);for(var c=J.next();!c.done;c=J.next())if(c.value.textContent)return!0}return!1},w4R=function(J){return J.sort(function(c,m){return it1(m)-it1(c)})},rU1=function(J){J=Array.from(J.querySelectorAll("a[href],a[tabindex],area[href],iframe,[tabindex],[contentEditable],summary,details:not(:has(summary)),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),button:not([disabled]),object:not([disabled])")).filter(function(c){return(Hth(c.style)?
Hth(window.getComputedStyle(c)):!1)&&Tof(c)});
return n$o(J)?w4R(J):J},s6p=function(J){J=rU1(J);
J.length>0&&J[0].focus()},LLp=function(J,c){c.stack&&(J.stack+="\n"+c.stack);
return J},z2o=function(J){var c=tb(J,"Content-Type");
if(!c)return null;c=c.toLowerCase();if(c.startsWith("application/json"))return c.startsWith("application/json+protobuf")?new DXp:new _.le;if(c.startsWith("application/x-protobuf")){J=tb(J,"Content-Transfer-Encoding");if(!J)return new Io;if(J.toLowerCase()=="base64")return new WLR}return null},h2S=function(J,c,m,b){var x=new u_r(function(t,I){return fC5.has(I)?t.sentinel==="gal"&&t.event!==void 0:!1},function(t){t.event?(t=Yno(t.event),t=!t||X4u(b,t)?!0:_.I5(J.lastEvent,KL,2,CL)?!_.I5(t,ao,1,CL)&&
!_.I5(t,KL,2,CL):!_.I5(t,ao,1,CL)&&!_.I5(t,KL,3,CL)):t=!0;
return t});
m=_.mp(J.trustedUrl,new Map([["result_channel","5"],["origin",(new URL(window.location.href)).origin],["color_scheme",Ztu(m)]]));if(J.nestedOrigins!==void 0)for(var P=_.M(J.nestedOrigins),p=P.next();!p.done;p=P.next())m=_.mp(m,new Map([["origin",p.value]]));return qnf(x,m,c).then(function(t){t=UXu(t.event);if(_.I5(t,ao,1,CL)){var I,a=(I=_.u0(t,ao,1,CL))==null?void 0:_.Db(I,2);a&&b.JSC$17101_logErrorEvent(SnR(a));I=_.u0(t,ao,1,CL);_.Db(I,2)===4?(t=_.u0(t,ao,1,CL),t={statusCode:11,statusMessage:_.L0(t,
3)}):(t=_.u0(t,ao,1,CL),t={statusCode:12,statusMessage:_.L0(t,3)});return t}_.I5(t,KL,3,CL)?(t=_.u0(t,KL,3,CL),t={statusCode:1,consentLanguageKeys:_.L0(t,2)}):t={statusCode:1};return t}).catch(function(t){return t.errorCode!==void 0?{statusCode:t.errorCode,
statusMessage:t.errorMessage}:{statusCode:7,statusMessage:"Data Usage Notice screen did not return result"}})},E$o=function(J){var c={};
if(J===void 0||J===null)return c;J.getToken()!==void 0&&dXo(J.getToken())&&dXo(J.getToken()).length>0&&(c.scopes=new Set(dXo(J.getToken())));J.getToken()!==void 0&&$Xe(J.getToken())&&$Xe(J.getToken()).length>0&&(c.capabilities=new Set($Xe(J.getToken())));_.L0(J,3)!==void 0&&(c.consistencyKey=_.L0(J,3));J.getName()!==void 0&&J.getName()!==""&&(c.linkName=J.getName());_.tK(J,G7h,4)&&(J=_.JU(J,G7h,4),J=Object.assign({},_.L0(J,1)&&{userId:_.L0(J,1)},_.L0(J,2)&&{displayName:_.L0(J,2)},_.L0(J,3)&&{email:_.L0(J,
3)},_.L0(J,5)&&{username:_.L0(J,5)},_.L0(J,4)&&{profilePicture:_.L0(J,4)}),c.profile=J);return c},v$s=function(J,c){var m=J.flowParams;
return{serviceId:m.serviceId,sessionId:m.sessionId,currentFlow:J.currentFlow,googleScopesString:c,linkingSessionSerialized:J.session.serialize(),consentLanguageKeys:m.consentLanguageKeys,callerState:J.callerState,dynamicUrlParameters:m.dynamicUrlParameters,partnerConfigMinReadTimestamp:m.partnerConfigMinReadTimestamp}},Q6S=function(J){var c=J.googleScopes!==void 0?Array.from(J.googleScopes).join(","):"";
OtR(v$s(J,c));c=AUp(J);return c===null?Promise.resolve(R25):c.start().then(function(m){var b,x=(b=m.link)==null?void 0:b.consistencyKey;return m.statusCode===1&&J.googleScopes!==void 0&&J.googleScopes.size>0&&x!==void 0?(b=J.flowParams,o$h(b.serviceId,b.sessionId,J.googleScopes,x,b.galService,J.config,m)):m})},e21=function(J){var c=AUp(J);
return c===null?Promise.resolve(kD({statusCode:7,statusMessage:"Failed to create flow object"},J.callerState)):c.complete().then(function(m){var b,x=(b=m.link)==null?void 0:b.consistencyKey;return m.statusCode===1&&J.googleScopes!==void 0&&J.googleScopes.size>0&&x!==void 0?(b=J.flowParams,o$h(b.serviceId,b.sessionId,J.googleScopes,x,b.galService,J.config,m)):kD(m,J.callerState)},function(m){return kD({statusCode:12,
statusMessage:"Failed to complete the flow: "+m.message},J.callerState)})},o$h=function(J,c,m,b,x,P,p){return j61(x,{serviceId:J,
sessionId:c,googleScopes:m,consistencyKey:b}).then(function(){return p},function(t){return x.deleteLink({serviceId:J,
sessionId:c,accountLinkingEntryPoint:P.accountLinkingEntryPoint}).then(function(){return{statusCode:12,statusMesaage:"2-way linking failed: "+t.message}},function(I){return{statusCode:12,
statusMesaage:"2-way linking failed and did not cleanup the link:\n                            "+I.message}})})},AUp=function(J){switch(J.currentFlow){case 1:var c=J.flowParams;
J=_.JU(J.session,FLh,1);return H6.createOAuthFlow(c,J);case 2:case 3:return c=J.flowParams,J=_.JU(J.session,lCh,6),ib.createStreamlinedFlow(c,J);default:return null}},yU4=function(J,c){J===2&&(J=3);
var m=0;nL.indexOf(J)!==-1&&(m=nL.indexOf(J)+1);for(J=m;J<nL.length;J++)if(c.has(nL[J]))return nL[J]},JI4=function(J){var c=J.serviceId;
var m=J.sessionId;var b=J.config;var x=J.galService;var P=J.capabilities;var p=J.scopes;var t=J.loginHint;var I=J.callerState;var a=J.consentLanguageKeys;var k=J.linkName;var H=J.dynamicUrlParameters;var T=J.partnerConfigMinReadTimestamp;J=b.dataUsageNoticeConfig?b.dataUsageNoticeConfig.enabledDataUsageNoticeUis:void 0;return x.startLinkingSession({serviceId:c,sessionId:m,capabilities:P,scopes:p,loginHint:t,callerState:I,supportedFlows:Bor(b.supportedFlows),completionUrl:b.completionUrl,accountLinkingEntryPoint:b.accountLinkingEntryPoint,
consentLanguageKeys:a,dataUsageNoticeConfig:J,linkName:k,dynamicUrlParameters:H,partnerConfigMinReadTimestamp:T}).then(function(r){return new g$S(c,m,b,x,r,void 0,I,a,H,T)})},VgR=function(J,c,m){a:{var b=new cIR;
if(b.storage!==null)try{var x=b.storage.get("SAVED_SESSION");if(x===void 0){var P=null;break a}if(x.serviceId===J){P=x;break a}}catch(p){}P=null}if(P===null)return Promise.resolve({statusCode:2});mz4(J);b=b4r(P.linkingSessionSerialized);return xzR(new g$S(J,P.sessionId,c,m,b,P.googleScopesString!==""&&P.googleScopesString!==void 0?new Set(P.googleScopesString.split(",")):void 0,P.callerState,P.consentLanguageKeys,P.dynamicUrlParameters,P.partnerConfigMinReadTimestamp),P.currentFlow,P.consentLanguageKeys)},
OtR=function(J){var c=new cIR;
c.storage!==null&&c.storage.set("SAVED_SESSION",J)},mz4=function(J){var c=new cIR;
if(c.storage!==null){var m=c.storage.get("SAVED_SESSION");m!==void 0&&m.serviceId===J&&c.storage.remove("SAVED_SESSION")}},Bor=function(J){var c=new Set;
J=_.M(J);for(var m=J.next();!m.done;m=J.next())m=m.value,m!==1&&P3e.has(m)&&c.add(P3e.get(m));return c},kD=function(J,c){c!==void 0&&(J.callerState=c);
return J},Mgo=function(J){switch(J){case 5:return 3;
case 7:return 4;case 16:return 5;case 13:return 7;default:return 12}},tgs=function(){var J={timeout:5E3};
J=J===void 0?{}:J;return pOR!=null?pOR:pOR=Nve(J)},ItR=function(){return new Promise(function(J,c){window.gapi.load("client",{callback:J,
onerror:c})})},Nve=function(J){J=J===void 0?{}:J;
var c;return _.N(function(m){if(m.nextAddress==1){if((c=window.gapi)&&c.client&&c.client.load)m=m.return(c);else{var b=_.p1("https://apis.google.com/js/api.js");m=_.K(m,_.sZ(b,J),2)}return m}if(m.nextAddress!=3){c=window.gapi;if(!c)throw Error("Xj");return c.client&&c.client.load?m.jumpTo(3):_.K(m,ItR(),3)}return m.return(c)})},C3R=function(J,c){c=c===void 0?0:c;
var m=J.auth2.getAuthInstance().currentUser.get(),b=m.getAuthResponse(!0);if(b&&b.expires_at-Date.now()<c){if(KCe.has(J))return KCe.get(J);c=Promise.resolve(m.reloadAuthResponse()).finally(function(){KCe.delete(J)});
KCe.set(J,c);return c}return Promise.resolve()},atr=function(J,c){var m;
return J.client.init({apiKey:c.apiKey,clientId:c.clientId,scope:c.scope,discoveryDocs:c.discoveryDocs,hostedDomain:c.hostedDomain,fetchBasicProfile:(m=c.fetchBasicProfile)!=null?m:!0})},kBs=function(J){if(J.queryParams!=null){var c={},m;
for(m in J.queryParams)J.queryParams[m]!==void 0&&(c[m]=J.queryParams[m]);J.queryParams=c}},nH1=function(J){return new H4r(J,new i4h(J))},rIe=function(J,c){c=c===void 0?!1:c;
var m=document.createElement("div");J&&(m.style.transform="scaleX(-1)");m.style.backgroundColor=c?"rgba(138,180,248,.24)":"#e8f0fe";m.style.height="4px";m.style.overflow="hidden";m.style.position="absolute";m.style.top="0";m.style.width="100%";m.style.zIndex="1500";m.setAttribute("aria-label","Loading");m.setAttribute("aria-live","polite");J=document.createElement("style");J.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  }";
m.appendChild(J);J=Tv1();J.style.animation="omdc-linear-progress-primary-indeterminate-translate 2s infinite linear";J.style.left="-145.166611%";var b=wOu(c);b.style.animation="omdc-linear-progress-primary-indeterminate-scale 2s infinite linear";J.appendChild(b);m.appendChild(J);J=Tv1();J.style.animation="omdc-linear-progress-secondary-indeterminate-translate 2s infinite linear";J.style.left="-54.888891%";c=wOu(c);c.style.animation="omdc-linear-progress-secondary-indeterminate-scale 2s infinite linear";
J.appendChild(c);m.appendChild(J);return m},Tv1=function(){var J=document.createElement("div");
J.style.height="100%";J.style.position="absolute";J.style.transformOrigin="top left";J.style.width="100%";return J},wOu=function(J){var c=document.createElement("span");
c.style.borderTop=J?"4px solid #669df6":"4px solid #4285f4";c.style.display="inline-block";c.style.position="absolute";c.style.width="100%";return c},sNu=function(J){return J==null?void 0:_.wBC(J).valueOf()},zwo=function(J){var c=document.body,m=!1,b=function(){m||(m=!0,LC5(x,P),setTimeout(function(){c.removeChild(P);
c.removeChild(x)},150))},x=Dze(J,getComputedStyle(c).direction==="rtl",b),P=WCe(b);
LC5(x,P);c.appendChild(P);c.appendChild(x);window.requestAnimationFrame(function(){P.style.opacity="1";x.style.opacity="1";x.style.transform="translate(-50%, -50%) scale(1)";x.children[0].focus()})},Dze=function(J,c,m){var b=document.createElement("div");
b.style.position="fixed";b.style.alignItems="center";b.style.backgroundColor=J?"rgb(32, 33, 36)":"white";b.style.boxShadow="0px 1px 2px rgba(60,64,67,0.3), 0px 2px 6px 2px rgba(60,64,67,0.15);";b.style.display="flex";b.style.flexDirection="column";b.style.justifyContent="center";b.style.left="50%";b.style.top="50%";b.style.transition="opacity 75ms linear,transform 150ms cubic-bezier(0,0,0.2,1)";b.style.zIndex="2002";document.body.clientWidth>=660?(b.style.borderRadius="8px",b.style.minHeight="220px",
b.style.maxHeight="90%",b.style.maxWidth="90%",b.style.minWidth="540px"):(b.style.height="100%",b.style.width="100%");b.setAttribute("aria-label","Error");b.setAttribute("aria-modal","true");b.setAttribute("role","alertdialog");b.addEventListener("keydown",function(P){P.key==="Escape"&&m()});
c=ucF(J,c,m);b.appendChild(ftu(c));b.appendChild(c);var x=document.createElement("img");x.src=J?"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","");b.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=J?"rgb(232,234,237)":"#3c4043";b.appendChild(x);b.appendChild(ftu(c));return b},ucF=function(J,c,m){var b=document.createElement("button");
b.style.backgroundColor="transparent";b.style.border="none";b.style.borderRadius="50%";b.style.cursor="pointer";b.style.outline="none";b.style.padding="12px";b.setAttribute("aria-label","Close dialog");b.style.position="absolute";b.style.top="0";c?b.style.right="0":b.style.left="0";b.addEventListener("focus",function(){b.style.backgroundColor=J?"rgba(232, 234, 237,.12)":"rgba(0,0,0,.12)"});
b.addEventListener("blur",function(){b.style.backgroundColor="transparent"});
b.addEventListener("mouseenter",function(){b.style.backgroundColor=J?"rgba(232, 234, 237, .04) ":"rgba(0,0,0,.04)"});
b.addEventListener("mouseleave",function(){b.style.backgroundColor="transparent"});
b.addEventListener("click",m);b.addEventListener("keydown",function(x){x.key!=="Enter"&&x.key!=="Space"||m()});
c=document.createElement("img");c.src=J?"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";c.style.display="block";c.style.height="24px";c.style.width="24px";c.setAttribute("alt","");b.appendChild(c);return b},ftu=function(J){var c=document.createElement("div");
c.setAttribute("tabindex","0");c.setAttribute("aria-hidden","true");c.addEventListener("focus",function(){return void J.focus()});
return c},WCe=function(J){var c=document.createElement("div");
c.style.backgroundColor="rgba(32,33,36,0.6)";c.style.bottom="0";c.style.left="0";c.style.position="fixed";c.style.right="0";c.style.top="0";c.style.transition=" opacity 150 ms linear";c.style.zIndex="2001";c.addEventListener("click",J);return c},LC5=function(J,c){c.style.opacity="0";
J.style.opacity="0";J.style.transform="translate(-50%, -50%) scale(0.8)"},Yef=function(J,c){J.sandbox&&J.sandbox.add&&(J.sandbox.add("allow-same-origin","allow-scripts","allow-forms","allow-popups","allow-popups-to-escape-sandbox","allow-storage-access-by-user-activation"),J.sandbox.add("allow-downloads"));
J.src=c},Tq=function(J){XO4.call(this,J)},w$=function(J,c){c=c===void 0?!1:c;
this.parsedImageUrl_=null;J instanceof Z41||(qeR==void 0&&(qeR=new Uz1),J=qeR.parse(J.toString(),c));J=this.parsedImageUrl_=J;J.JSC$17332_parsedOptions_==void 0&&((c=J.getOptions())||(c=""),J.JSC$17332_parsedOptions_=(new See).parse(c));XO4.call(this,J.JSC$17332_parsedOptions_);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;J=this.parsedImageUrl_;c=J.uri_.JSC$8042_port_;this.JSC$17334_domain_=J.uri_.JSC$8042_domain_+(c?":"+c:"");this.JSC$17334_query_=this.parsedImageUrl_.uri_.JSC$8042_queryData_.toString()},
hw5=function(J){this.mode=4;
this.data=J;this.parsedData=[];J=0;for(var c=this.data.length;J<c;J++){var m=[],b=this.data.charCodeAt(J);b>65536?(m[0]=240|(b&1835008)>>>18,m[1]=128|(b&258048)>>>12,m[2]=128|(b&4032)>>>6,m[3]=128|b&63):b>2048?(m[0]=224|(b&61440)>>>12,m[1]=128|(b&4032)>>>6,m[2]=128|b&63):b>128?(m[0]=192|(b&1984)>>>6,m[1]=128|b&63):m[0]=b;this.parsedData.push(m)}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))},dzf=function(J){this.typeNumber=0;
this.errorCorrectLevel=J===void 0?2:J;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]},r$=function(J,c){if(J.length==void 0)throw Error("rk`"+J.length+"`"+c);
for(var m=0;m<J.length&&J[m]==0;)m++;this.num=Array(J.length-m+c);for(c=0;c<J.length-m;c++)this.num[c]=J[c+m]},$zp=function(J,c){this.totalCount=J;
this.dataCount=c},GB4=function(){this.buffer=[];
this.length=0},EHs=function(){var J=!1;
if(_.Ko2()){J=_.Hr();var c="";_.kDf()?(c=/Windows (?:NT|Phone) ([0-9.]+)/,c=(J=c.exec(J))?J[1]:"0.0"):_.S2()?(c=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,c=(J=c.exec(J))&&J[1].replace(/_/g,".")):_.a3m()?(c=/Mac OS X ([0-9_.]+)/,c=(J=c.exec(J))?J[1].replace(/_/g,"."):"10"):_.IR(_.Hr(),"KaiOS")?(c=/(?:KaiOS)\/(\S+)/i,c=(J=c.exec(J))&&J[1]):_.Ko2()?(c=/Android\s+([^\);]+)(\)|;)/,c=(J=c.exec(J))&&J[1]):_.HGG()&&(c=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,c=(J=c.exec(J))&&J[1]);J=c||""}return J},QNF=function(J,
c){this.JSC$17357__htOption={width:256,
height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:2};if(c)for(var m in c)this.JSC$17357__htOption[m]=c[m];this.JSC$17357__htOption.useSVG&&(vH4=O4F);this.JSC$17357__android=EHs();this.JSC$17357__el=J;this._oQRCode=null;this._oDrawing=new vH4(this.JSC$17357__el,this.JSC$17357__htOption);this.JSC$17357__htOption.text&&(J=this.JSC$17357__htOption.text,this._oQRCode=new dzf(this.JSC$17357__htOption.correctLevel),AIo(this._oQRCode,J),c=this._oQRCode,RwR(c,!1,oHu(c)),this.JSC$17357__el.title=
J,this._oDrawing.draw(this._oQRCode),this.makeImage())},ewr=function(J,c,m,b,x){J.save();
var P=new Path2D;P.roundRect(c,m,b*7,b*7,b*2);P.roundRect(c+b,m+b,b*5,b*5,b*1.3);P.roundRect(c+2*b,m+2*b,b*3,b*3,b);J.clip(P,"evenodd");J.fillStyle=x;J.fillRect(0,0,J.canvas.width,J.canvas.height);J.restore()},s3=function(J,c){if(typeof J!=="function")throw Error("uk");
return _.mo.setTimeout(function(){J()},c)},LL=function(){},FCR=function(J,c,m,b,x){(new LL).debug("TestLoadImageWithRetries: "+x);
if(b==0)m(!1);else{var P=x||0;b--;jNR(J,c,function(p){p?m(!0):_.mo.setTimeout(function(){FCR(J,c,m,b,P)},P)})}},jNR=function(J,c,m){var b=new LL;
b.debug("TestLoadImage: loading "+J);var x=new Image;x.onload=function(){try{b.debug("TestLoadImage: loaded"),lt4(x),m(!0)}catch(P){}};
x.onerror=function(){try{b.debug("TestLoadImage: error"),lt4(x),m(!1)}catch(P){}};
x.onabort=function(){try{b.debug("TestLoadImage: abort"),lt4(x),m(!1)}catch(P){}};
x.ontimeout=function(){try{b.debug("TestLoadImage: timeout"),lt4(x),m(!1)}catch(P){}};
_.mo.setTimeout(function(){if(x.ontimeout)x.ontimeout()},c);
x.src=J},lt4=function(J){J.onload=null;
J.onerror=null;J.onabort=null;J.ontimeout=null},yIR=function(){this.front_=[];
this.back_=[]},Bvr=function(J,c){_.DS.call(this);
this.delay_=new _.zj(this.JSC$17483_onTick_,0,this);_.Kc(this,this.delay_);this.JSC$17481_interval_=5E3;this.nextTickTime_=0;if(typeof J==="function")c&&(J=(0,_.Wa)(J,c));else if(J&&typeof J.handleEvent==="function")J=(0,_.Wa)(J.handleEvent,J);else throw Error("Ca");this.JSC$17483_listener_=J},DM=function(J,c,m,b,x,P,p,t,I,a,k,H,T,r){m=m===void 0?!1:m;
b=b===void 0?function(){return""}:b;
x=x===void 0?!1:x;P=P===void 0?!1:P;p=p===void 0?!1:p;t=t===void 0?function(){return _.ML({})}:t;
I=I===void 0?!1:I;k=k===void 0?!1:k;H=H===void 0?!1:H;T=T===void 0?!1:T;r=r===void 0?!1:r;this.JSC$17484_pathPrefix_=J;this.defaultQueryParams_=c;this.pubsub_=new _.Kg;this.reconnectTimer_=new Bvr(this.safeReconnect_,this);this.JSC$17484_channel_=null;this.JSC$17484_disposed_=!1;this.connectionParams_=null;this.sCookie_="";this.disconnectUi_=this.connectUi_=0;this.JSC$17484_pendingMessages_=[];this.enableAsyncTest_=m;this.JSC$17484_getXsrfToken_=b;this.useAsyncBrowserChannelHandler_=P;this.getAuthorizationHeader_=
t;this.getAuthorizationHeaderSync_=a;this.enableCachedUpdateAuthorizationHeader_=p;this.updateAuthorizationHeaderPromise_=null;this.connectPromise_=_.ML();this.enableLoungeTokenRefresh_=x;this.enableAsyncMdxLibraryWithoutAuthHeaderFetch_=I;this.disableMdxAuthForNonPlaybackMessages_=k;this.disableMdxAuthForAdMessages_=H;this.enableMdxAuthForConnectionOnly_=T;this.disableMdxAuthForShortsMessages_=r;this.JSC$17484_channelOpenedCounter=new gHr;this.JSC$17484_channelClosedCounter=new J54;this.channelMessageSentCounter=
new c5u;this.JSC$17484_channelMessageReceivedCounter=new m8r;this.JSC$17484_channelErrorCounter=new bNh;this.pendingMapsOnClosedCounter=new x8R;this.undeliveredMapsOnClosedCounter=new VEp},W6=function(J){this.scheme="https";
this.port=this.domain="";this.basePath="/api/lounge";this.supportCors=!0;J=J||document.location.href;var c=Number(_.Q6(J)[4]||null)||"";c&&(this.port=":"+c);this.domain=_.es(J)||"";J=_.Hr();J.search("MSIE")>=0&&_.aR(J.match(/MSIE ([\d.]+)/)[1],"10.0")<0&&(this.supportCors=!1)},zq=function(J){J=J||{};
this.name=J.name||"";this.id=J.id||J.screenId||"";this.token=J.token||J.loungeToken||"";this.uuid=J.uuid||J.dialId||"";this.idType=J.screenIdType||"normal"},Pa1=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(J){var c=Math.random()*16|0;
return(J=="x"?c:c&3|8).toString(16)})},ME5=function(J){return _.Wm(J,function(c){return{key:c.id,
name:c.name}})},pyr=function(J,c){return _.$t(J,function(m){return m||c?!m!=!c?!1:m.id==c.id:!0})},fL=function(J,c){return _.$t(J,function(m){return ub(m,c)})},Cah=function(){var J=NPp(),c=tE1();
if(I1f()){var m=J,b=_.rqr(m,c);b<0&&_.wro(m,-(b+1),0,c)}J=KeF(J);if(J.length==0)try{_.IPt("remote_sid")}catch(x){}else try{_.kK("remote_sid",J.join(","),-1)}catch(x){}},NPp=function(){var J=_.m7("yt-remote-connected-devices")||[];
J.sort(_.xZ);return J},KeF=function(J){if(J.length==0)return[];
var c=J[0].indexOf("#"),m=c==-1?J[0]:J[0].substring(0,c);return _.Wm(J,function(b,x){return x==0?b:b.substring(m.length)})},a1h=function(J){_.ct("yt-remote-connected-devices",J,86400)},tE1=function(){if(kk5)return kk5;
var J=_.m7("yt-remote-device-id");J||(J=Pa1(),_.ct("yt-remote-device-id",J,31536E3));for(var c=NPp(),m=1,b=J;_.Aq(c,b);)m++,b=J+"#"+m;return kk5=b},HNu=function(){return _.m7("yt-remote-session-browser-channel")},I1f=function(){return _.m7("yt-remote-session-screen-id")},TPh=function(J){J.length>5&&(J=J.slice(J.length-5));
var c=_.Wm(iN1(),function(b){return b.loungeToken}),m=_.Wm(J,function(b){return b.loungeToken});
_.ysQ(m,function(b){return!_.Aq(c,b)})&&nA1();
_.ct("yt-remote-local-screens",J,31536E3)},iN1=function(){return _.m7("yt-remote-local-screens")||[]},nA1=function(){_.ct("yt-remote-lounge-token-expiration",!0,86400)},YD=function(J){J||(_.bU("yt-remote-session-screen-id"),_.bU("yt-remote-session-video-id"));
Cah();J=NPp();_.j2(J,tE1());a1h(J)},r51=function(){wys();
return XJ?!!XJ.get("yt-remote-use-staging-server"):!1},wys=function(){if(!XJ){var J=_.wS2();
J&&(XJ=new _.r3(J))}},Wee=function(J,c,m,b,x){m=m===void 0?function(){return""}:m;
var P=function(){return new DM(ZM(J,"/bc"),c,!1,m,b)};
return _.w("enable_mdx_web_channel_desktop")?new s3r(function(){return new Leh(ZM(J,"/wc"),c,m)}):new D8p(P,x)},Y4F=function(){var J=zFf;
u6S();qq.push(J);f1S()},U3=function(J,c){u6S();
var m=Xyh(J,String(c));qq.length==0?ZNh(m):(f1S(),_.vG(qq,function(b){b(m)}))},SW=function(J){U3("CP",J)},u6S=function(){qq||(qq=_.$y("yt.mdx.remote.debug.handlers_")||[],_.jD("yt.mdx.remote.debug.handlers_",qq))},ZNh=function(J){var c=(hb+1)%50;
hb=c;q4R[c]=J;U8u||(U8u=c==49)},f1S=function(){var J=qq;
if(q4R[0]){var c=U8u?hb:-1,m={};do m={record$jscomp$13:void 0},c=(c+1)%50,m.record$jscomp$13=q4R[c],_.vG(J,function(b){return function(x){x(b.record$jscomp$13)}}(m));
while(c!=hb);q4R=Array(50);hb=-1;U8u=!1}},Xyh=function(J,c){var m=(Date.now()-S4F)/1E3;
m.toFixed&&(m=m.toFixed(3));var b=[];b.push("[",m+"s","] ");b.push("[","yt.mdx.remote","] ");b.push(J+": "+c,"\n");return b.join("")},d$=function(J){_.ei.call(this);
this.JSC$17508_logName_=J;this.screens=[]},Gq=function(J){d$.call(this,"LocalScreenService");
this.JSC$17515_http_=J;this.loungeTokenRefreshTimer_=NaN;$D(this);this.info("Initializing with "+hFR(this.screens))},E3=function(J,c){c=c===void 0?!1:c;
d$.call(this,"ScreenService");this.JSC$17521_http_=J;this.disableAutomaticScreenCache_=c;this.onlineScreenService_=this.localScreenService_=null;this.automaticScreens_=[];this.deviceToScreenId_={};d8f(this)},v6=function(J,c,m){_.ei.call(this);
this.JSC$17525_logName_=m;this.JSC$17525_screenService_=J;this.receiver_=c;this.screen_=null},BPS=function(J,c,m){m.disableCastApi?O3("Cannot initialize because disabled by Mdx config."):$81()?GkR(J,m)&&(EAF(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?vAR(c):(window.__onGCastApiAvailable=function(b,x){b?vAR(c):(Ab("Failed to load cast API: "+x),ONh(!1),EAF(!1),_.bU("yt-remote-cast-available"),_.bU("yt-remote-cast-receiver"),A51(),c(!1))},m.loadCastApiSetupScript?_.dK("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?RFo()>=60&&oAr():!window.chrome||!window.navigator.presentation||window.navigator.userAgent.indexOf("Edge")>=0?Q3e():RFo()>=89?eFh():(j3R(),Fe1(l1p.map(y5r))))):O3("Cannot initialize because not running Chrome")},A51=function(){O3("dispose");
var J=Ro();J&&J.dispose();_.jD("yt.mdx.remote.cloudview.instance_",null);gAR(!1);_.gb2(J0F);J0F.length=0},c04=function(){return!!_.m7("yt-remote-cast-installed")},mah=function(){var J=_.m7("yt-remote-cast-receiver");
return J?J.friendlyName:null},blu=function(){O3("clearCurrentReceiver");
_.bU("yt-remote-cast-receiver")},xaf=function(){return c04()?Ro()?Ro().getCastSession():(Ab("getCastSelector: Cast is not initialized."),null):(Ab("getCastSelector: Cast API is not installed!"),null)},PkF=function(J,c){VKR()?Ro().setConnectedScreenStatus(J,c):Ab("setConnectedScreenStatus called before ready.")},$81=function(){var J=_.Hr().search(/ (CrMo|Chrome|CriOS)\//)>=0;
return _.Va||J},GkR=function(J,c){var m=!1;
Ro()||(J=new oo(J,c),J.subscribe("yt-remote-cast2-availability-change",function(b){_.ct("yt-remote-cast-available",b);gg("yt-remote-cast2-availability-change",b)}),J.subscribe("yt-remote-cast2-receiver-selected",function(b){O3("onReceiverSelected: "+b.friendlyName);
_.ct("yt-remote-cast-receiver",b);gg("yt-remote-cast2-receiver-selected",b)}),J.subscribe("yt-remote-cast2-receiver-resumed",function(b){O3("onReceiverResumed: "+b.friendlyName);
_.ct("yt-remote-cast-receiver",b);gg("yt-remote-cast2-receiver-resumed",b)}),J.subscribe("yt-remote-cast2-session-change",function(b){O3("onSessionChange: "+MKR(b));
b||_.bU("yt-remote-cast-receiver");gg("yt-remote-cast2-session-change",b)}),_.jD("yt.mdx.remote.cloudview.instance_",J),m=!0);
O3("cloudview.createSingleton_: "+m);return m},Ro=function(){return _.$y("yt.mdx.remote.cloudview.instance_")},vAR=function(J){ONh(!0);
EAF(!1);Ro().init(!1,function(c){c?(gAR(!0),_.JOm("yt-remote-cast2-api-ready")):(Ab("Failed to initialize cast API."),ONh(!1),_.bU("yt-remote-cast-available"),_.bU("yt-remote-cast-receiver"),A51());J(c)})},O3=function(J){U3("cloudview",J)},Ab=function(J){U3("cloudview",J)},ONh=function(J){O3("setCastInstalled_ "+J);
_.ct("yt-remote-cast-installed",J)},VKR=function(){return!!_.$y("yt.mdx.remote.cloudview.apiReady_")},gAR=function(J){O3("setApiReady_ "+J);
_.jD("yt.mdx.remote.cloudview.apiReady_",J)},EAF=function(J){_.jD("yt.mdx.remote.cloudview.initializing_",J)},Qz=function(J){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(J)},pSS=function(){var J,c;
return _.N(function(m){if(m.nextAddress==1)return(_.dru()||_.w("use_new_nwl"))&&_.qTo().isNetworkAvailable()?_.K(m,_.Fb(),2):m.return();if(m.nextAddress!=3)return(J=m.yieldResult)?_.K(m,vyo(J),3):m.return();c=m.yieldResult;if(!c.length)return m.return();c.forEach(function(b){var x={timestamp:b.timestamp};b=b.appShellAssetLoadReport?{payloadName:"appShellAssetLoadReport",payload:b.appShellAssetLoadReport,options:x}:b.clientError?{payloadName:"clientError",payload:b.clientError,options:x}:void 0;b&&
_.zB(b.payloadName,b.payload,b.options)});
c.length===100&&_.ft.addLowPriorityJob(pSS);_.tD(m)})},NK1=function(J){if(J.playerResponse){if(J=J.playerResponse,J.messages&&J.messages.length>0&&(J=J.messages.find(function(c){return!(!c||!c.mealbarPromoRenderer)}))&&J.mealbarPromoRenderer)return J.mealbarPromoRenderer}else if(J.response&&(J=J.response)&&J.overlay&&J.overlay.mealbarPromoRenderer)return J.overlay.mealbarPromoRenderer},tKo=function(J){if(J.response){var c=J.response;
if(c&&c.overlay&&c.overlay.tooltipRenderer)return c.overlay.tooltipRenderer}if(J.playerResponse&&(J=J.playerResponse,J.messages&&J.messages.length>0&&(J=J.messages.find(function(m){return!(!m||!m.tooltipRenderer)}))&&J.tooltipRenderer))return J.tooltipRenderer},KyR=function(J){if(!IPp&&(J=J||_.Ub("ZWIEBACK_PING_URLS"))&&J.length){IPp=!0;
for(var c=0;c<J.length;c++)_.En(J[c])}},aPf=function(J){if(_.Lw.get(_.Ub("PLAYER_VARS",{}),"privembed",!1)!="1"){J&&Z3f();
try{Ck1().then(function(){},function(){}),_.P7(aPf,18E5)}catch(c){_.ha(c)}}},kvo=function(){var J=_.HA(),c=J.getFlag(119),m=window.devicePixelRatio>1;
document.body&&_.qb(document.body,"exp-invert-logo")&&(m&&!_.qb(document.body,"inverted-hdpi")?_.oA(document.body,"inverted-hdpi"):!m&&_.qb(document.body,"inverted-hdpi")&&_.Ad(document.body,"inverted-hdpi"));c!=m&&(_.iJ(0,119,m),J.save())},HlF=function(J){return J.filter(function(c){return"ypcGetCartEndpoint"in c||"ypcFixInstrumentEndpoint"in c})},ilf=function(J){return J.filter(function(c){return!_.L(c,_.X3j)})},TK5=function(J){J=_.M(J);
for(var c=J.next(),m={};!c.done;m={setter$jscomp$6:void 0},c=J.next()){var b=c.value;c=b.params;b=b.service;c&&b&&(m.setter$jscomp$6=n3p[b],m.setter$jscomp$6&&c.forEach(function(x){return function(P){var p=P.key;P=P.value;p&&P&&(0,x.setter$jscomp$6)(p,P)}}(m)))}},r0p=function(J,c){var m,b,x,P,p,t,I;
_.N(function(a){switch(a.nextAddress){case 1:m=_.Lv.getInstance();b=_.p7.instance;x=_.Sp.instance;if(!x)return wSh(J,b,c),a.return();_.xL(a,2);J.onLoadingCommand&&b.resolveCommand(J.onLoadingCommand);return _.K(a,m.getCurrentPositionFromGeolocation(),4);case 4:P=a.yieldResult;if(!J.resolveLocationCommand){a.jumpTo(5);break}p=m.createLocationInfo(P);return _.K(a,_.ds(x,J.resolveLocationCommand,{locationInfo:p}),6);case 6:t=a.yieldResult;if(!t||"error"in t&&t.error||t.errorMetadata)return wSh(J,b,c),
a.return();var k;if(t==null?0:(k=t.onResponseReceivedActions)==null?0:k.length){k=_.M(t.onResponseReceivedActions);for(var H=k.next();!H.done;H=k.next())b.resolveCommand(H.value)}(_.L(J.onSuccessCommand,_.Rz)||_.L(J.onSuccessCommand,_.I1))&&_.cA(c.hostElement,"yt-navigate",{endpoint:J.onSuccessCommand,reload:!0});case 5:_.EO(a,0);break;case 2:I=_.NM(a);if(I instanceof GeolocationPositionError&&I.code===GeolocationPositionError.PERMISSION_DENIED)return J.onDeniedCommand&&b.resolveCommand(J.onDeniedCommand),
a.return();wSh(J,b,c);_.tD(a)}})},wSh=function(J,c,m){J.onFailureCommand&&(c.resolveCommand(J.onFailureCommand),_.m9(m.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]))},Lyf=function(J,c){var m=_.L(J,_.ogZ);
if(m&&c){J=m.videoIds||[m.videoId];var b;c=(b=_.cA(c,"yt-lockup-requested",{videoIds:J}).detail)==null?void 0:b.returnValue;var x;m.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"?x=c?c:J.map(function(P){return{videoId:P,navigationEndpoint:m.videoCommand}}):c&&(x=c);
x&&(b=x.map(function(P){var p=Object,t=p.assign;var I=P.navigationEndpoint;if(!_.L(I,_.kb)){var a=_.L(I,_.Rz);if(a){if(delete a.index,delete a.playlistId,a=_.L(I==null?void 0:I.commandMetadata,_.lk),a==null?0:a.url){var k=a.url;k=_.FR(k,"list");k=_.FR(k,"index");a.url=k}}else I=void 0}return t.call(p,{},P,{ownerBadges:void 0,topStandaloneBadge:void 0,menu:void 0,navigationEndpoint:I})}),szS(b,m))}},DaR=function(J){var c=_.Zl();
if(J=_.L(J,_.Qx_))J.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"&&c.clearQueue(),J.closeMiniplayer&&_.BG().resolve(_.Uo).close(!0)},zmR=function(J){WyR(_.Zl(),J)},uRR=function(J){var c;
(J=(c=_.L(J,_.AmQ))==null?void 0:c.setVideoIds)&&J.forEach(function(m){_.Rc8(_.Zl(),m)})},YHR=function(J){fPo(_.Zl(),J)},XSs=function(){try{return!(!window.AudioContext&&!window.webkitAudioContext)}catch(J){return!1}},Zlf=function(){var J,c;
return(c=(J=window).matchMedia)==null?void 0:c.call(J,"(prefers-reduced-motion: reduce)").matches},qHe=function(J){var c=_.BG().resolve(_.y6(_.a0));
if(c){var m={beforeTransition:function(){J.style.viewTransitionName="miniplayer-page-transition"},
afterTransition:function(){J.style.viewTransitionName=""}};
eW(c,"slide",m);eW(c,"zoom",m)}},Uas=function(J,c,m){return{horizontalAlignment:J.x+m.width/2<c.width/2?"west":"east",
verticalAlignment:J.y+m.height/2<c.height/2?"north":"south"}},dar=function(J,c,m,b,x){x=x===void 0?new _.zO(0,0):x;
return SHR(hmS(J,c,m,b),x)},hmS=function(J,c,m,b){return new _.zO(J==="west"?16:m.width-b.width-16,c==="north"?16:m.height-b.height-16)},$aR=function(J,c){var m=0;
J&&(m+=76);c&&(m+=285);return m},Gvh=function(J){var c=["h",
"m","s"],m=_.Fe(c);m.reverse();var b={};J=(J.toLowerCase().match(/\d+\s*[hms]?/g)||[]).filter(function(p){var t=(p.match(/[hms]/)||[""])[0];return t?(b[t]=parseInt(p.match(/\d+/)[0],10),!1):!0});
for(J.reverse();J.length&&m.length;){var x=m.shift();x in b||(b[x]=parseInt(J.shift(),10))}if(J.length||b.s>59||b.m>59||b.h>9)return null;var P="";c.forEach(function(p){b[p]&&(P+=""+b[p]+p)});
return P||null},E3r=function(J){J=J.data;
return _.C("yt-profile-badge-view-model",{class:"profile-badge-view-model-wiz"},_.C("div",{class:"profile-badge-view-model-wiz__badge-icon-container"},_.C(_.RA,{data:{thumbnails:[{url:J.badgeIconUrl}]},alt:"",targetWidth:36,targetHeight:36})),_.C("div",{class:"profile-badge-view-model-wiz__content"},_.C("div",{class:"profile-badge-view-model-wiz__badge-description"},J.badgeDesc),J.badgeSubtitle?_.C("div",{class:"profile-badge-view-model-wiz__badge-subtitle"},J.badgeSubtitle):null))},v3f=function(J){J=
J.data;
var c=_.oN("yt-comment-interaction-view-model");_.czQ(c,J.rendererContext);return _.C("yt-comment-interaction-view-model",{el:c,class:"yt-comment-interaction-view-model-wiz"},_.C("div",{class:"yt-comment-interaction-view-model-wiz__frame",role:"button","aria-label":J.onTapA11yLabel,"on:keydown":_.Fru(),tabindex:0},_.C("div",{class:"yt-comment-interaction-view-model-wiz__header"},_.C("div",{class:"yt-comment-interaction-view-model-wiz__video-title"},J.headerPrefix,' "',J.videoTitle),_.C("div",{class:"yt-comment-interaction-view-model-wiz__video-title-quote"},
'"')),_.C("div",{class:"yt-comment-interaction-view-model-wiz__content"},_.C("div",{class:"yt-comment-interaction-view-model-wiz__comment-content"},J.commentContent),_.C("div",{class:"yt-comment-interaction-view-model-wiz__chevron"},_.C(_.RA,{data:{thumbnails:[{url:J.chevronUrl}]},alt:"",targetWidth:18,targetHeight:18})))))},A0R=function(J){J=J.data;
return _.C("yt-shared-subscription-view-model",{class:"yt-shared-subscription-view-model-wiz"},Olo(J.avatar),_.C("div",{class:"yt-shared-subscription-view-model-wiz__channel-name"},J.channelName))},o34=function(J){J=J.data;
var c;return _.C("div",{class:"yt-profile-info-view-model-wiz__activity"},_.C("div",{class:"yt-profile-info-view-model-wiz__header"},_.C("div",{class:"yt-profile-info-view-model-wiz__section-title"},J.commentsInteractionTitle)),(c=J.comments)==null?void 0:c.map(function(m){return _.C("div",{class:"yt-profile-info-view-model-wiz__activity"},RmR(m))}))},Qze=function(J){J=J.data;
var c=_.Uv({elementsCommand:J.subscriptionsAccessButtonCommand}),m=_.oN("a");_.ZWo(m,_.ZG(J.subscriptionsAccessButtonCommand));var b;return _.C("div",{class:"yt-profile-info-view-model-wiz__sub-section"},_.C("div",{class:"yt-profile-info-view-model-wiz__sub-header"},_.C("a",{el:m,"on:click":_.Kq(function(x){if(c==null?0:c.onclick)c.onclick(x);return!1}),
class:"yt-profile-info-view-model-wiz__another-header"},_.C("div",{class:"yt-profile-info-view-model-wiz__section-title-modern"},J.sharedSubscriptionsTitle),_.C("div",null,RmR(J.subscriptionsAccessButton)))),_.C("div",{class:"yt-profile-info-view-model-wiz__subs"},(b=J.sharedSubscriptions)==null?void 0:b.slice(0,5).map(function(x){return _.C("div",{class:"yt-profile-info-view-model-wiz__sub"}," ",RmR(x))})))},emS=function(J){J=J.data;
var c;return _.C("div",{class:"yt-profile-info-view-model-wiz__sub-section"},_.C("div",{class:"yt-profile-info-view-model-wiz__sub-header"},_.C("h2",{class:"yt-profile-info-view-model-wiz__section-title"},J.sharedSubscriptionsTitle)),_.C("div",{class:"yt-profile-info-view-model-wiz__subs"},(c=J.sharedSubscriptions)==null?void 0:c.slice(0,5).map(function(m){return _.C("div",{class:"yt-profile-info-view-model-wiz__sub"}," ",RmR(m))})))},jzu=function(J){J=J.data;
return _.C("div",{class:"yt-profile-info-view-model-wiz__activity"},[J.profileBadgeInfoYtWide,J.profileBadgeInfoChannelWide].map(function(c){var m,b,x,P,p;return c?_.C(_.cG,null,_.C("div",{class:"yt-profile-info-view-model-wiz__header"},_.C("div",{class:"yt-profile-info-view-model-wiz__section-title"},c==null?void 0:c.profileSectionTitle),_.C("div",{class:"yt-profile-info-view-model-wiz__section-desc"},_.C("div",{class:"yt-profile-info-view-model-wiz__section-subtitle"},c==null?void 0:(m=c.commentBadge)==
null?void 0:m.commentDesc),(c==null?0:(b=c.commentBadge)==null?0:b.blackHeartDesc)?_.C("div",{class:"yt-profile-info-view-model-wiz__section-divider"},"\u2022"):null,_.C("div",{class:"yt-profile-info-view-model-wiz__section-heart-icon"},_.C(_.RA,{data:{thumbnails:[{url:c==null?void 0:(x=c.commentBadge)==null?void 0:x.blackHeartIconUrl}]},alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})),_.C("div",{class:"yt-profile-info-view-model-wiz__section-subtitle"},c==null?void 0:(P=
c.commentBadge)==null?void 0:P.blackHeartDesc))),_.C("div",{class:"yt-profile-info-view-model-wiz__badge"},c==null?void 0:(p=c.badges)==null?void 0:p.map(function(t){return _.C(E3r,{data:t})}))):null}))},Fys=function(J){J=J.data;
return _.C("yt-profile-info-view-model",{class:"yt-profile-info-view-model-wiz"},_.C(jzu,{data:J}),J.comments?_.C(o34,{data:J}):null,J.sharedSubscriptionsTitle?J.subscriptionsAccessButtonCommand?_.C(Qze,{data:J}):_.C(emS,{data:J}):null)},y0s=function(J){var c=J.data;
J=c?lPF(c.profileIdentityInfo):void 0;c=c?lPF(c.profileInfo):void 0;return _.C("yt-profile-card-view-model",{class:"yt-profile-card-view-model-wiz",style:"overflow: hidden"},J,c)},BKF=function(J,c){var m=_.Wx$(c,{},J,!0);
return new Promise(function(b,x){m.listenOnce("n",function(){x(Error("el`"+m.JSC$25878_getErrorDescription()))});
m.listenOnce("l",function(){var P=m.getResponseCode();if(P!==200)x(Error("fl`"+c+"`"+J.type+"`"+J.size+"`"+P));else try{b(JSON.parse(m.getResponseText()).encryptedBlobId)}catch(p){x(p)}});
m.run()})},g3h=function(J){return J.substring(J.indexOf(":")+1,J.indexOf(";"))},JSR=function(J){return new Promise(function(c,m){var b=new FileReader;
b.onloadend=function(){try{var x=new Uint8Array(b.result);x.length<8&&m(void 0);var P=x.subarray(0,8);x="";for(var p=0;p<P.length;p++)x+=("0"+P[p].toString(16)).substr(-2);x.startsWith("ffd8ff")?c("image/jpeg"):x.startsWith("47494638")?c("image/gif"):x.startsWith("89504e470d0a1a0a")?c("image/png"):x.startsWith("424d")?c("image/bmp"):c(void 0)}catch(t){m(t)}};
b.onerror=m;b.readAsArrayBuffer(J)})},cSp=function(J){return new Promise(function(c,m){var b=new Image;
b.crossOrigin="anonymous";b.onload=function(){var x=document.createElement("canvas");x.width=b.naturalWidth;x.height=b.naturalHeight;var P=x.getContext("2d");if(!P)throw Error("gl");P.drawImage(b,0,0);P=g3h(J);x.toBlob(function(p){p?c(p):m()},P)};
b.src=J})},bXr=function(J,c){var m;
if(((m=_.L(J,_.kb))==null?void 0:m.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var b;_.cA((b=c.hostElement)!=null?b:c,"yt-shorts-reset");_.j7Q(_.BG().resolve(_.NH),J).then(function(P){mLp(P,c,J)})}else{var x;
_.Vq((x=c.hostElement)!=null?x:c,[J]).then(function(P){P&&mLp(P.data,c,J)})}},mLp=function(J,c,m){if(J){var b=_.L(J.replacementEndpoint,_.kb);
if(b){J.sequenceContinuation&&(b.sequenceParams=J.sequenceContinuation);var x;_.cA((x=c.hostElement)!=null?x:c,"yt-navigate",{endpoint:J.replacementEndpoint})}else if((J==null?void 0:J.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&(J==null?0:J.watchStatus)&&_.L(J.watchStatus,_.uYC)){var P;_.cA((P=c.hostElement)!=null?P:c,"yt-navigate",{endpoint:m})}}},xLr=function(J){var c=_.BG().resolve(_.f9),m=tfR(c.getState())||"";
c=_.$nD(c.getState())||"";m=m==="ytd-browse"&&c==="home";return _.w("web_guide_entry_enable_cache_for_non_home_pages")?(J=(J==null?void 0:J.navigationEndpoint)&&_.tc(J.navigationEndpoint)==="home",{disableCache:m&&J}):{disableCache:m}},VH1=function(J){if(!J)return!1;
try{if(J.host&&J.host.tagName==="YT-FORMATTED-STRING"&&J.host.id==="contenteditable-textarea"||J.nodeType===Node.ELEMENT_NODE&&J.tagName==="YTD-COMMENT-INPUT")return!0}catch(c){return!1}return VH1(J.parentNode)},jW=function(J){return J?J.tagName==="A"&&J.href&&J.classList.contains("yt-simple-endpoint"):!1},PJo=function(J){return J?J.tagName==="IMG"&&J.classList.contains("emoji"):!1},MHu=function(J,c,m){if(!J)return null;
var b=jW(J);if(b&&m)return c=J.pathname.substring(J.pathname.indexOf("/channel/")+9),document.createTextNode("@"+c);if(b&&!m)return document.createTextNode("");if(PJo(J))return m=J.alt,J=J.dataset.emojiId,!J&&c&&(c=_.Cy(c,m))&&c.isCustomEmoji&&(J=c.emojiId),J?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+J+">"):document.createTextNode(m);b=J.cloneNode(!1);for(var x=0;x<J.childNodes.length;++x){var P=MHu(J.childNodes[x],c,m);P&&b.appendChild(P)}return b},FJ=function(J){return J?jW(J)?J:FJ(J.lastChild):
null},pAr=function(J){return J?jW(J)?J:pAr(J.firstChild):null},NMh=function(J){if(!J)return null;
for(var c=J.previousSibling;c;)if(c.nodeType===Node.ELEMENT_NODE&&c.nodeName==="BR")c=c.previousSibling;else if(c.nodeType===Node.TEXT_NODE&&/\s+/.test(c.textContent))c=c.previousSibling;else break;(c=FJ(c))?J=c:J=(J=J.parentNode)?FJ(J.previousElementSibling):null;return J},tHs=function(J){if(!J)return null;
for(var c=J.nextSibling;c;)if(c.nodeType===Node.ELEMENT_NODE&&c.nodeName==="BR")c=c.nextSibling;else if(c.nodeType===Node.TEXT_NODE&&/\s+/.test(c.textContent))c=c.nextSibling;else break;return(c=pAr(c))?c:tHs(J.parentNode)},IuF=function(J){var c=_.kR(),m=c.JSC$9254_getStartNode();
if(!VH1(m.parentNode))return null;c=c.JSC$9254_getStartOffset();if(m.nodeType===Node.TEXT_NODE){var b=_.qA(m,jW);if(b){if(J&&c===0||!J&&c===m.length)return b}else{if(J&&c===m.length)return!m||m.nodeName==="BR"||m.nextElementSibling&&_.H8(m.nextElementSibling,"display")==="block"?null:pAr(m.nextElementSibling);if(!J&&c===0)return m?FJ(m.previousElementSibling):null}}if(m.nodeType===Node.ELEMENT_NODE)if(J){if(0<=c&&c<m.childNodes.length)return pAr(m.childNodes[c])}else if(0<c&&c<=m.childNodes.length)return FJ(m.childNodes[c-
1]);return null},K9R=function(J,c,m){if(!J)return null;
if(J.nodeType===Node.TEXT_NODE)if(m){var b=NMh(J);if(b&&!/^\s+\S/.test(J.wholeText.substr(0,c)))return b}else if((b=tHs(J))&&!/\S\s+/.test(J.wholeText.substr(c,J.wholeText.length)))return b;return J.nodeType===Node.ELEMENT_NODE?m?NMh(J.childNodes[c]):tHs(J.childNodes[c]):K9R(J.parentNode,c,m)},CJf=function(J){if(J.hasChildNodes())switch(J.tagName){case "DIV":case "A":case "SPAN":var c="";
for(J=J.firstChild;J;J=J.nextSibling)c+=CJf(J);return c;default:return""}else switch(J.nodeType){case 3:return J.textContent;default:return""}},auh=function(J){J=J.data;
return _.C("ytd-menu-title-renderer",{class:"ytd-menu-title-renderer"},_.C("div",null,_.C(_.j8,{text:J.title})),J.subtitle?_.C("div",{class:"ytd-menu-title-renderer__subtitle"},_.C(_.j8,{text:J.subtitle})):null)},kmR=function(J){switch(J){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"}},HXp=function(J){return J.map(function(c){return{settingsRadioOptionRenderer:{title:_.gM(c.name),
asideText:_.gM(c.approximateSize),id:kmR(c.format)}}})},n25=function(J){if(J&&J.length!==0)return J.filter(iXS()).map(function(c){return{settingsRadioOptionRenderer:{title:c.name,
asideText:c.approximateSize,id:kmR(c.formatType)}}})},lb=function(J){if(J)return J.replaceAll("&nbsp;"," ").replaceAll("&#39;","'")},TMF=function(J,c){J=new Set(J!=null?J:[]);
if(J.has(790))return"YOUTUBE_ENTITY_TYPE_CHANNEL";if(J.has(788))return"YOUTUBE_ENTITY_TYPE_TV_SHOW";if(J.has(789))return"YOUTUBE_ENTITY_TYPE_MOVIE";if(J.has(786))return"YOUTUBE_ENTITY_TYPE_SONG";if(J.has(787))return"YOUTUBE_ENTITY_TYPE_ALBUM";if(c)return"YOUTUBE_ENTITY_TYPE_DEFAULT"},wAR=function(J){var c=J.indexOf("(");
return c!==-1?J.substring(c+1,J.length-1):J},rSs=function(J){switch(J){case 38:return-1;
case 40:return 1;case 37:return-1;case 39:return 1;default:return 0}},L91=function(J,c,m,b,x,P){var p=_.Lw.clone(snF);
p.locale=_.Ub("SBOX_SETTINGS",{}).REQUEST_LANGUAGE;p.report={description:x||"<empty>"};x=_.Ub("SBOX_SETTINGS",{});c=c.join(",");var t=Date.now();J={choice_cc:b,choice_id_cc:m,choices_sc:c,gl:x.REQUEST_DOMAIN,hl:x.REQUEST_LANGUAGE,query:J,time:t};P&&(J.choice_additional_comment_cc=P);_.Zyj(p,J)},DL4=function(J){var c=new Map;
c.set("authuser",_.Ub("SESSION_INDEX","0"));return _.mp(J,c)},zYf=function(J){var c;
return _.N(function(m){switch(m.nextAddress){case 1:if(!J||!W9u(J))return m.return(null);c=null;switch(_.Ub("INNERTUBE_CLIENT_NAME")){case "WEB":return m.jumpTo(2);case "WEB_REMIX":c=J.getPlayer()}m.jumpTo(3);break;case 2:return _.K(m,J.getPlayerPromise(),4);case 4:c=m.yieldResult;m.jumpTo(3);break;case 3:return m.return(c)}})},W9u=function(J){return["ytd-player",
"ytmusic-player"].includes(String(J.tagName||"").toLowerCase())},uvo=function(J){J=Math.round(J);
return J%2?J-1:J},fup=function(J){J=Math.round(J);
return J%2===0?J-1:J},Y2S=function(J){var c,m,b;
if(J=(c=J.createPlaylistDialogFormSchema)==null?void 0:(m=c.fieldSchemas)==null?void 0:(b=m.title)==null?void 0:b.validationSchema)for(c=[J.syncStep,J.asyncStep].filter(function(x){return x!==void 0}),c=_.M(c),m=c.next();!m.done;m=c.next()){m=m.value.rules;
if(!m)break;m=_.M(m);for(m=m.next();!m.done;m=m.next())return _.L(m.value,_.UM5)}},ZXs=function(J){var c,m,b;
if(J=(c=J.createPlaylistDialogFormSchema)==null?void 0:(m=c.fieldSchemas)==null?void 0:(b=m.visibility)==null?void 0:b.validationSchema)for(c=[J.syncStep,J.asyncStep].filter(function(x){return x!==void 0}),c=_.M(c),m=c.next();!m.done;m=c.next()){m=m.value.rules;
if(!m)break;m=_.M(m);for(b=m.next();!b.done;b=m.next())if(b=_.L(b.value,XAo))return c=void 0,(c=b.translations)==null?void 0:c.visibilityNotValidErrorMessage}},q2F=function(){var J,c;
return(c=(J=_.BG().resolve(_.y6(_.Ev)))==null?void 0:J())!=null?c:!1},ULp=function(J){var c=21;
if(!J)return c;c+=J.headerTitle?27:0;c+=J.headerTitle&&J.hasHeaderActionHeader?4:0;return c+=J.headerTitle&&J.headerSubtitle?16:0},S24=function(J){var c=0;
if(!J)return c;c+=J.hasFooterPrimaryButton||J.hasFooterSecondaryButton?48:0;c+=J.footerTrailingLabel||J.footerLeadingLabel?30:0;return c+=J.hasFooterPrimaryButton||J.hasFooterSecondaryButton||!J.footerTrailingLabel&&!J.footerLeadingLabel?0:12},hYu=function(J){var c=new _.Kg,m=J;
return{subscribe:function(b){c.subscribe("changed",b)},
dispatch:function(b,x){var P=m;b==="Touch Start"?m=Object.assign({},P,{isAnimating:!1,initialY:x.event.touches[0].clientY}):b==="Touch Move"?(b=Math.min(x.fullContentWrapperHeight,x.contentHeightMap[x.contentWrapperId]+ULp(x.header)-S24(x.footer)),m=Object.assign({},P,{currentY:Math.max(x.contentScrollable?-1*(P.initialY-24):0,x.event.touches[0].clientY-P.initialY),maxHeightForContentWrapper:Math.min(b,Math.max(0,(P.isFullScreen?b:x.contentWrapperHeight)-P.currentY))})):m=b==="Snap To Full Screen"?
Object.assign({},P,{isAnimating:!1,currentY:0,isFullScreen:!0,maxHeightForContentWrapper:x.maxHeight}):b==="Snap To Neutral Position"?Object.assign({},P,{isAnimating:!1,currentY:0,isFullScreen:!1,maxHeightForContentWrapper:x.maxHeight}):b==="Close Sheet"?Object.assign({},P,{isAnimating:!0,currentY:x.clientHeight,isFullScreen:!1,maxHeightForContentWrapper:x.maxHeight}):P;c.publish("changed",m)}}},dLf=function(J){return _.Kq(function(c){J(c);
return!1})},$LF=function(){_.BG().resolve(_.wW).closeSheet()},GmR=function(J){var c,m,b,x,P,p,t,I,a,k,H;
return{headerTitle:(c=J.headerTitle)==null?void 0:c.call(J),headerSubtitle:(m=J.headerSubtitle)==null?void 0:m.call(J),headerActionHeader:J.headerActionHeader,footerPrimaryButton:J.footerPrimaryButton,footerSecondaryButton:J.footerSecondaryButton,footerButtonType:(b=J.footerButtonType)==null?void 0:b.call(J),footerLeadingLabel:(x=J.footerLeadingLabel)==null?void 0:x.call(J),footerTrailingLabel:(P=J.footerTrailingLabel)==null?void 0:P.call(J),shouldShowIcons:(p=J.shouldShowIcons)==null?void 0:p.call(J),
skipContentClick:(t=J.skipContentClick)==null?void 0:t.call(J),additionalClassName:(I=J.additionalClassName)==null?void 0:I.call(J),onClosedCallback:J.onClosedCallback,focusOnClose:(a=J.focusOnClose)==null?void 0:a.call(J),isDisabled:(k=J.isDisabled)==null?void 0:k.call(J),disabledCommand:(H=J.disabledCommand)==null?void 0:H.call(J),headerFn:J.headerFn,contentFn:J.contentFn,footerFn:J.footerFn,hasHeaderFn:J.hasHeaderFn(),hasContentFn:J.hasContentFn(),hasFooterFn:J.hasFooterFn(),hasFooterPrimaryButton:J.hasFooterPrimaryButton(),
hasFooterSecondaryButton:J.hasFooterSecondaryButton(),hasHeaderActionHeader:J.hasHeaderActionHeader()}},E2h=function(J){switch(J){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""}},v2F=function(J){switch(J){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""}},OXp=function(J){switch(J){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""}},AS1=function(J,c,m){c.forEach(function(b){_.b6(_.BG().resolve(_.no),b)});
_.m9(J,"yt-close-popup-action",["yt-gen-ai-feedback-form-view-model",m])},eYR=function(J,c,m,b){var x=_.L(m,_.qZ).commandLifeCycleConfig;
x&&x.onStartCommand&&_.PA(J,[x.onStartCommand],c);_.A3(c);var P=_.Sp.instance;P&&_.hP(P,m)?_.ds(P,m,b).then(function(p){if(!p||(p==null?0:p.error))return p=_.L(m,_.qZ).serializedTransactionFlowLoggingParams,_.Rg(c),_.sv(new yz("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",p));_.Rg(c);return{data:p}}).then(function(p){_.Rg(c);
RY5(p.data);var t=p.data.command;t&&_.PA(J,[t],c);t=o2R(m,p.data);if(!t){var I=p.data;p=!1;if(I&&I.command&&_.L(I.command,_.pX)){var a;I=((a=_.L(I.command,_.pX))==null?void 0:a.commands)||[];for(a=0;a<I.length;a++)if(_.L(I[a],_.Crz)){p=!0;break}}p||_.TK('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}')}!t&&x&&x.onSuccessCommand?_.PA(J,[x.onSuccessCommand],c):t&&x&&x.onFailureCommand&&_.PA(J,[x.onFailureCommand],c)},function(){_.Rg(c);
x&&x.onFailureCommand&&_.PA(J,[x.onFailureCommand],c);Qns(m)}):_.Xc(Error("xl"),"ERROR")},jnR=function(J,c,m){var b=[c];
m&&b.push(m);return _.Vq(J,b).then(function(x){var P=_.L(c,_.qZ).serializedTransactionFlowLoggingParams,p=x.data,t=o2R(c,p);t?x=_.sv(new yz(t,P)):RY5(p);return x},function(){var x=_.L(c,_.qZ).serializedTransactionFlowLoggingParams;
Qns(c);return _.sv(new yz("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",x))})},o2R=function(J,c){J=_.L(J,_.qZ).serializedTransactionFlowLoggingParams;
var m=null;switch(c.ypcResponseCode){case "YPC_RESPONSE_CODE_ERROR":m="TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE";break;case "YPC_RESPONSE_CODE_ERROR_PROMO_CODE_POLICY_VIOLATION":m="TRANSACTION_ERROR_TYPE_REJECTED_WITH_PROMO_CODE_POLICY_VIOLATION";break;case "YPC_RESPONSE_CODE_LIVE_CHAT_BACKEND_ERROR":m="TRANSACTION_ERROR_TYPE_LIVE_CHAT_BACKEND_ERROR"}m?_.ET(m,J):mX4(J);return m},Qns=function(J){_.ET("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",_.L(J,_.qZ).serializedTransactionFlowLoggingParams)},
RY5=function(J){if(J.trackingParams){var c=_.Y3(),m=_.fl();
c&&m&&_.$2(c,m,_.n7(J.trackingParams))}},F9h=function(J,c,m){var b=_.Sp.instance,x=_.RxJ(_.Ub("YPC_MB_URL")),P=(new _.Ob3).init(),p=_.ApJ(),t=_.L(m,_.NeZ).languageCode;
t===void 0?_.Xc(Error("Bi"),"ERROR"):_.k1([P,x]).then(function(){var I={ctk:payments.business.integration.ClientTokenFactory.createClientToken(t,p)};b&&_.hP(b,m)?_.ds(b,m,I).then(function(a){return{data:a}}).then(function(a){_.cA(c,"yt-service-request-completed",a);
a.code!=="ERROR"&&(a=a.data.command)&&_.PA(J,[a],c)}):_.Xc(Error("xl"),"ERROR")})},BMu=function(J,c,m,b){var x=_.Sp.instance;
x&&_.hP(x,m)?_.ds(x,m,b).then(function(P){return{data:P}}).then(function(P){lue(J,c,m,P)},function(){ySs(m)}):(x=_.BG().resolve(_.y6(_.Wj)))&&x.requestDataForServiceEndpoint(m,b).then(function(P){lue(J,c,m,P)},function(){ySs(m)})},lue=function(J,c,m,b){_.cA(c,"yt-service-request-completed",b);
if(b.code&&b.code=="ERROR")ySs(m);else{(b=b.data.commands)&&_.PA(J,b,c);var x;(J=(x=_.L(m,_.k3L))==null?void 0:x.serializedYpcPauseFlowLoggingParams)&&J&&_.zu("ypcPauseFlowSucceeded","serializedYpcPauseFlowLoggingParams",J)}},ySs=function(J){var c;
(J=(c=_.L(J,_.k3L))==null?void 0:c.serializedYpcPauseFlowLoggingParams)&&J&&_.zu("ypcPauseFlowFailed","serializedYpcPauseFlowLoggingParams",J,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")},c7R=function(J,c,m){var b=_.Sp.instance;
b&&_.hP(b,m)?_.ds(b,m).then(function(x){return{data:x}}).then(function(x){g2R(J,c,m,x)},function(){J7R(m)}):(b=_.BG().resolve(_.y6(_.Wj)))&&b.requestDataForServiceEndpoint(m).then(function(x){g2R(J,c,m,x)},function(){J7R(m)})},g2R=function(J,c,m,b){_.cA(c,"yt-service-request-completed",b);
b.code&&b.code=="ERROR"?J7R(m):((b=b.data.commands)&&_.PA(J,b,c),(J=_.L(m,_.HOL).serializedYpcResumeFlowLoggingParams)&&J&&_.zu("ypcResumeFlowSucceeded","serializedYpcResumeFlowLoggingParams",J))},J7R=function(J){(J=_.L(J,_.HOL).serializedYpcResumeFlowLoggingParams)&&J&&_.zu("ypcResumeFlowFailed","serializedYpcResumeFlowLoggingParams",J,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")},myo=function(J){J=J===void 0?{}:J;
_.BG().resolve(_.rQ6).showFeedbackDialog(J.customProductData,J.feedbackContent,J.onFeedbackSubmitted,J.bucket)},bkf=function(J){J=J===void 0?{}:J;
_.BG().resolve(_.rQ6).showHelpDialog(J.helpContext,J.articleId,J.productData)},xyF=function(){bkf()},Vk5=function(){myo()},Mko=function(J,c,m){var b,x,P,p,t,I,a;
return _.N(function(k){switch(k.nextAddress){case 1:b=_.L(J,PWe);if((x=b)==null?0:x.productId){I={productId:b.productId,bucket:b.bucket,enableAnonymousFeedback:(t=b.enableAnonymousFeedback)!=null?t:!0,allowNonLoggedInFeedback:!0};a={feedbackChoice:m.feedbackChoice};if(!_.w("web_collect_offline_state")){k.jumpTo(8);break}_.xL(k,9);return _.K(k,KLu(a),11)}p={bucket:(P=b)==null?void 0:P.bucket};if(!_.w("web_collect_offline_state")){k.jumpTo(4);break}p.customProductData={};_.xL(k,5);return _.K(k,KLu(p.customProductData),
7);case 7:_.EO(k,4);break;case 5:_.NM(k);case 4:myo(p);k.jumpTo(0);break;case 11:_.EO(k,8);break;case 9:_.NM(k);case 8:_.hzJ(a),_.SA3("GFEEDBACK",a),b.productId==="5295751"&&(a.client_attestation=Number(_.Ub("CATSTAT",0))),b.productId==="5295751"&&(a.client_time=Date.now()/1E3/3600),b.productId==="5295751"&&(a.original_playback_id=_.ctB||""),_.Zyj(I,a),_.tD(k)}})},p2R=function(J){if(J=_.L(J,_.Ugt)){var c={bucket:J.bucketIdentifier};
J.additionalDatas&&(c.customProductData={},J.additionalDatas.forEach(function(m){if(m=m.userFeedbackEndpointProductSpecificValueData)c.customProductData[m.key]=m.value}));
myo(c)}},Nff=function(J){var c=_.vO.getInstance();
var m=_.CX("DELETE_ALL_DOWNLOADS_PROMPT",void 0,"Delete all downloads?");var b=_.CX("DELETE",void 0,"Delete"),x=_.CX("CANCEL",void 0,"Cancel");m=wGe(m,void 0,b,x,{signal:"DELETE_ALL_DOWNLOADS"});_.WE(c,[{openPopupAction:m}],J)},IZ4=function(){return _.N(function(J){return J.nextAddress==1?_.K(J,_.BG().resolve(_.jc),2):_.K(J,tke(),0)})},KAR=function(J){var c,m;
return _.N(function(b){return b.nextAddress==1?(m=(c=_.L(J,_.$H))==null?void 0:c.targetId)?_.K(b,_.BG().resolve(_.jc),3):b.jumpTo(0):_.K(b,_.BG().resolve(_.ec).deleteVideo(m),0)})},aZ1=function(J){var c,m;
return _.N(function(b){return b.nextAddress==1?(m=(c=_.L(J,_.$H))==null?void 0:c.targetId)?_.K(b,_.BG().resolve(_.jc),3):b.jumpTo(0):_.K(b,CWf(_.BG().resolve(_.ec),m),0)})},HkF=function(J){var c,m;
return _.N(function(b){return(m=(c=_.L(J,_.$H))==null?void 0:c.targetId)?_.K(b,k25(m),0):b.jumpTo(0)})},nYF=function(){_.w("kevlar_woffle_refresh_dl_load_killswitch")||iku()},w2p=function(){_.w("kevlar_woffle")&&_.sT.instance&&TfF()},scR=function(J){var c;
if((c=_.L(J,_.Mx))==null||!c.videoId)return!1;r7s(_.BG().resolve(_.ec),_.L(J,_.Mx),J.clickTrackingParams);return!0},Dyf=function(J){var c;
if((c=_.L(J,_.pK))==null||!c.playlistId)return!1;LAu(_.BG().resolve(_.ec),_.L(J,_.pK),J.clickTrackingParams);return!0},zE4=function(J){var c=_.L(J,_.pYB);
(c==null?void 0:c.settingItemId)!=="SMART_DOWNLOADS_ENABLED"&&(c==null?void 0:c.settingItemId)!=="SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED"||WA4(_.BG().resolve(_.ec),_.L(J,_.pYB))},fZ4=function(J){J=_.L(J,_.hCC);
var c;(J==null?0:(c=J.actions)==null?0:c.length)&&uMu(J)},Zk4=function(J){var c,m;
return _.N(function(b){c=_.L(J,YGp);return(m=c)!=null&&m.localWatchHistoryCommandType?_.K(b,X2R(c),0):b.return()})},qGh=function(J){setTimeout(function(){requestAnimationFrame(J)},80)},Uy4=function(J){return Object.entries(J).map(function(c){return c.join(":")}).join(";")},hES=function(J){var c,m,b;
_.N(function(x){if(x.nextAddress==1)return _.K(x,SGe(),2);c=x.yieldResult;m=_.p7.instance;switch(c){case "granted":b=J.getLocationCommand;break;case "denied":b=J.openDeniedDialogAction;break;case "prompt":b=J.openCollectionDialogAction;break;default:b=J.openCollectionDialogAction}b&&m.resolveCommand(b);_.tD(x)})},SGe=function(){var J,c;
return _.N(function(m){if(m.nextAddress==1)return J="prompt",navigator.permissions?_.K(m,navigator.permissions.query({name:"geolocation"}),3):m.jumpTo(2);m.nextAddress!=2&&(c=m.yieldResult,J=c.state);return m.return(J)})},$yS=function(){_.N(function(J){return _.K(J,_.dyR(),0)})},G2e=function(){var J,c,m;
return _.N(function(b){if(b.nextAddress==1)return J=_.BG().resolve(_.zh),J?_.K(b,_.ds(J,{signalServiceEndpoint:{signal:"GET_DATASYNC_IDS"}}),2):(_.qz(Error("Al")),b.return(void 0));if(c=b.yieldResult){if(c.errorMetadata)return _.qz(Error("Bl`"+c.errorMetadata.status+"`"+c.error)),b.return(void 0);m=c.datasyncIds;_.rBL=m.length;return b.return(m)}_.qz(Error("Cl"));return b.return(void 0)})},EYe=function(){G2e().then(function(J){J&&(Gep(J),xXF(J),X7S(J),aCR(J))})},vYR=function(J){_.ft.addLowPriorityJob(function(){var c,
m,b,x,P;
return _.N(function(p){switch(p.nextAddress){case 1:if(_.w("ytidb_clear_optimizations_killswitch")){p.jumpTo(2);break}c=_.ij("clear");if(c.startsWith("V")&&c.endsWith("||")){var t=[c];Gep(t);xXF(t);X7S(t);aCR(t);return p.return()}m=Zgo();b=k7R();return _.K(p,Vff(),3);case 3:return x=p.yieldResult,_.K(p,Eyp(),4);case 4:if(P=p.yieldResult,!(m||b||x||P))return p.return();case 2:J.isNetworkAvailable()?EYe():J.listenOnce("publicytnetworkstatus-online",EYe),_.tD(p)}})})},B6=function(J){J={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:_.v2(J)}}}};_.p7.instance&&_.p7.instance.resolveCommand(J)},Okh=function(J){if(J){var c=_.C7();
_.ge(c,3854,void 0,{layer:0,parentLayer:4});switch(J){case 1:var m=238708;break;case 2:m=238715;break;case 3:m=238710;break;case 6:m=238709}m&&(J=_.K7(c,{veType:m}))&&_.mn(c,J)}},A71=function(J){if(J){var c=_.C7();
_.ge(c,3854,void 0,{layer:0,parentLayer:4});switch(J){case 1:var m=238714;break;case 2:m=238711;break;case 8:m=238709;break;case 7:m=238713;break;case 3:case 4:case 5:m=238712}m&&(J=_.K7(c,{veType:m}))&&_.mn(c,J)}},REf=function(J){switch(J.latencyType){case 0:_.fX("consent_primitive_flow");
_.Y2("cpit",J.timestampEpochMillis,"consent_primitive_flow");break;case 3:_.Y2("cpist",J.timestampEpochMillis,"consent_primitive_flow");break;case 5:_.Y2("cprtif",J.timestampEpochMillis,"consent_primitive_flow");break;case 4:_.Y2("cprtli",J.timestampEpochMillis,"consent_primitive_flow");break;case 6:_.Y2("cprt",J.timestampEpochMillis,"consent_primitive_flow");break;case 7:_.Y2("cpdt",J.timestampEpochMillis,"consent_primitive_flow");break;case 8:_.Y2("cpjct",J.timestampEpochMillis,"consent_primitive_flow")}},
Jc4=function(J,c){var m,b,x,P,p,t,I,a,k,H,T,r,W,Y,Z,d,G,e,A,l;
return _.N(function(y){switch(y.nextAddress){case 1:_.xL(y,2);(b=(m=_.L(J,oYo))==null?void 0:m.serializedConsentRequest)||(b=(x=_.L(J,Qc4))==null?void 0:x.serializedConsentRequest);b&&(P=eER(_.I2(b)));if(P===void 0)return y.return();p=jcf(P);p.latencyCallback=REf;c&&FA5(p,function(){c.then(function(pG){pG.pauseVideo();(new lZf).increment()})});
return((t=_.L(J,oYo))==null?void 0:t.consentAction)==="CONSENT_ACTION_PREWARM"||((I=_.L(J,Qc4))==null?void 0:I.consentAction)==="CONSENT_ACTION_PREWARM"?_.K(y,y7f(p),5):_.K(y,Bfp(p),6);case 6:a=y.yieldResult;k=_.a5(a,g$);if(k===1){if(((H=_.u0(a,Jn,1,g$))==null?void 0:_.Db(H,1))===1||((T=_.u0(a,Jn,1,g$))==null?void 0:_.Db(T,1))===2||((r=_.u0(a,Jn,1,g$))==null?void 0:_.Db(r,1))===3)_.L(J,Qc4)?B6(_.CX("MMG_CONFIRMATION",{},"Your choices have been saved. You can change your choices anytime in your Google Account.")):
B6(_.CX("DMA_CONSENT_CONFIRMATION2",{},"Your choices have been saved. You can change your choices anytime in your Google Account."));Okh((W=_.u0(a,Jn,1,g$))==null?void 0:_.Db(W,1),_.Jy(a,gYu,3,_.ca()))}else k===2?(((Y=co(a))==null?void 0:_.Db(Y,1))===5?_.L(J,Qc4)?B6(_.CX("MMG_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):B6(_.CX("DMA_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):((Z=co(a))==null?void 0:_.Db(Z,1))===1||((d=co(a))==null?void 0:_.Db(d,1))===4?B6(_.CX("DMA_CONSENT_GENERAL_ERROR",
{},"Something went wrong while loading")):((G=co(a))==null?void 0:_.Db(G,1))===7&&((e=P)==null?void 0:(A=_.JU(e,m1,4))==null?void 0:_.Db(A,4))!==1&&B6(_.CX("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),A71((l=co(a))==null?void 0:_.Db(l,1))):B6(_.CX("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading"));y.jumpTo(5);break;case 5:_.EO(y,0);break;case 2:_.NM(y),B6(_.CX("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),_.tD(y)}})},mrR=function(){if(!ccu.has("Worker")){ccu.set("Worker",
!0);
var J={api:"BROWSER_API_WEB_WORKER"};J.available="Worker"in window?!0:!1;_.zB("apiTest",J)}},bvR=function(J){return typeof J==="undefined"?"-1":String(Math.ceil(J/1048576))},MrR=function(J,c){xrr(new VrS(_.L(c,Pqs).addToken,_.L(c,Pqs).commonToken)).then(function(){_.cA(J,"yt-invoke-instrument-manager-action-completed")},function(m){_.cA(J,"yt-invoke-instrument-manager-action-error",m)})},pju=function(J){return _.qC(J)},NBs=function(J){var c=1;
J=J.split(":");for(var m=[];c>0&&J.length;)m.push(J.shift()),c--;J.length&&m.push(J.join(":"));return m},trF=function(J,c){c=J.aspectRatio()<=c.aspectRatio()?c.width/J.width:c.height/J.height;
J.scale(c)},InF=function(J,c){c=J.aspectRatio()>c.aspectRatio()?c.width/J.width:c.height/J.height;
return J.scale(c)},KUF=function(J){var c=new _.Ji;
return _.f0(c,11,J)},Cqs=function(J){var c={};
J=J.getAllResponseHeaders().split("\r\n");for(var m=0;m<J.length;m++)if(!_.Mf(J[m])){var b=NBs(J[m]),x=b[0];b=b[1];if(typeof b==="string"){b=b.trim();var P=c[x]||[];c[x]=P;P.push(b)}}return _.Lw.map(c,function(p){return p.join(", ")})},tb=function(J,c){return J.JSC$7807_xhr_?J.JSC$7807_xhr_.getResponseHeader(c):null},b2=function(J,c,m){Array.isArray(m)||(m=[String(m)]);
_.ad_(J.JSC$8042_queryData_,c,m);return J},TfF=function(){var J=_.sT.instance;
_.N(function(c){return J.deferredInstallPrompt?_.K(c,J.deferredInstallPrompt.prompt(),0):c.jumpTo(0)})},anR=function(J,c,m){if(_.yJ(J))_.vG(J,c,m);
else for(J=_.rLa(J);;){var b=J.next();if(b.done)break;c.call(m,b.value,void 0,J)}},khS={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}"]},IhS,KqR,CM1,ahp,k1f,Hss,isu,nrF,TUh,k25,CWf,tke,w9R,rOs,suF,LqF,DE1,LAu,r7s,Wq1,z8p,uFp,iku,WA4,fhu,uMu,YBR,X2R,X9h,ZsR,qBf,UE5,SBp,h8o,dEp,eW,$Er,G1S,
WyR,szS,Erf,N5,tn,IZ,Ke,vrS,Osf,AOo,R8F,orR,QuR,e85,juS,Fqo,lhR;khS={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 Hve=function(J,c){var m=[];anR(c,function(b){try{var x=_.my.prototype.getWrapper.call(this,b,!0)}catch(P){if(P=="Storage: Invalid value was encountered")return;throw P;}x===void 0?m.push(b):_.w7L(x)&&m.push(b)},J);
return m},ive=function(J,c){Hve(J,c).forEach(function(m){_.my.prototype.remove.call(this,m)},J)},nb1=function(J){var c=_.ST;
c._minimumZ=Math.max(c._minimumZ,J)},TB1=["www.youtube-nocookie.com",
"www.youtubeeducation.com","youtube.googleapis.com"],wjo=function(J,c){_.yr(J.vA);J.vA=c},rcp=function(J,c,m,b){J.setState(5);
var x=!!J.qcu&&TB1.includes(_.es(J.qcu)||"");try{var P=new _.DY({program:c,globalName:m,pP:{disable:!_.w("att_web_record_metrics")||!_.w("att_skip_metrics_for_cookieless_domains_ks")&&x,gw:"aGIf"}});P.kf2.then(function(){J.setState(6);b&&b(c)});
wjo(J,P)}catch(p){J.setState(7),p instanceof Error&&_.qz(p)}},s1R=function(J,c,m,b,x,P){var p=p===void 0?"trayride":p;
m?(J.setState(2),_.dK(m,function(){if(window[p])rcp(J,b,p,x);else{J.setState(3);var t=_.yiG(m),I=document.getElementById(t);I&&(_.mEm(t),I.parentNode.removeChild(I));_.qz(new _.w3("BL:ULB",m))}},P)):c?(P=_.id("SCRIPT"),c instanceof _.U$?_.da(P,c):P.textContent=c,P.nonce=_.q2(document),document.head.appendChild(P),document.head.removeChild(P),window[p]?rcp(J,b,p,x):(J.setState(4),_.qz(new _.w3("BL:ULBJ")))):_.qz(new _.w3("BL:ULV"))},LUR=function(){this.state=1;
this.vA=null;this.qcu=void 0};
_.V=LUR.prototype;_.V.initialize=function(J,c,m,b){this.qcu=b;if(J.program){var x;b=(x=J.interpreterUrl)!=null?x:null;if(J.interpreterSafeScript)x=_.Dyq(J.interpreterSafeScript);else{var P;x=(P=J.interpreterScript)!=null?P:null}J.interpreterSafeUrl&&(b=_.Y$(J.interpreterSafeUrl).toString());s1R(this,x,b,J.program,c,m)}else _.qz(Error("kf"))};
_.V.isInitialized=function(){return!!this.vA};
_.V.getState=function(){return this.state};
_.V.isLoading=function(){return this.state===2};
_.V.invoke=function(J){J=J===void 0?{}:J;var c;this.vA?c=_.m2u(this.vA,{qb:J}):c=null;return c};
_.V.dispose=function(){wjo(this,null);this.setState(8)};
_.V.setState=function(J){this.state=J};
var Dru=function(J,c){return J.vA.snapshot(c)},WUu=function(J,c){var m=_.c7("botguard_async_snapshot_timeout_ms",3E3);
c=c===void 0?{}:c;m=m===void 0?3E3:m;return J.vA?new Promise(function(b,x){var P=!1,p=_.ft.addJob(function(){P=!0;x(Error("lf"))},1,m);
J.vA?Dru(J,{qb:c}).then(function(t){_.ft.cancelJob(p);P||b(t)}).catch(function(t){_.ft.cancelJob(p);
P||x(t)}):(_.ft.cancelJob(p),b(null))}):Promise.resolve(null)},zgp=["att/log"],uBf;
uBf={searchEndpoint:{},commandMetadata:{webCommandMetadata:{url:"/results?search_query=",rootVe:4724,webPageType:"WEB_PAGE_TYPE_SEARCH"}}};var fnR={signalServiceEndpoint:{signal:"LOAD_GUIDE"}},YTh=function(J,c){return _.Kk(J,{mode:"readwrite",enableRetries:!0},function(m){return _.DP3(m,c,"settingEntity")})},Xj1=function(J,c,m){return _.Kk(J,{mode:"readonly",
enableRetries:!0},function(b){return _.Eq$(b,c,m)})},Zvs=function(J){if(!J.storage)return!1;
a:{if(J.storage){try{var c=J.storage.get("TLPQtimestamp")}catch(m){}J=Number(c);if(!isNaN(J))break a}J=void 0}return J?Date.now()-J<864E5:!1},qTS=function(J){if(J.storage){try{var c=J.storage.get("TLPQindex")}catch(m){}J=Number(c);
if(!isNaN(J))return J}},Ur5=function(J,c){J.queueProxy&&c.forEach(function(m){if(m.videoId&&m.trackingParams&&J.queueProxy instanceof _.L$){var b=_.Y3();
J.queueProxy.attributionData.set(m.videoId,{enqueueingVe:_.n7(m.trackingParams).getAsJson(),enqueueingCsn:b?b:void 0,clientEnqueueingTimeMs:Math.floor((0,_.y4)()).toString()})}})},STR=function(J){var c=_.TWZ(J);
c!=J.currentSnapState_&&(J.currentSnapState_=c,J.actionRouter_.triggerOptionalAction("ytd-update-grid-state-action"))},xe=function(J){this.JSC$11051_networkManager_=J;
this.partCallbacks_=[]};
xe.prototype.getCacheKeyForEndpoint=function(J){return _.VJf(J,!1)};
xe.prototype.onPartsCallback_=function(J){this.partCallbacks_.forEach(function(c){J&&c(J)})};
var Vf=function(J,c,m){xe.call(this,J);this.player_=c;this.autoplayData_=m};
_.D(Vf,xe);Vf.prototype.getCacheKeyForEndpoint=function(J){return _.VJf(J,!!this.autoplayData_)};
Vf.prototype.getTempData=function(J,c){c=c.timeBeforeNextVideo;J={itct:J.clickTrackingParams,lact:_.cO(),pbis:c,prefetch_reason:"hc_pbis",vis:this.player_.getVisibilityState()};this.autoplayData_&&(J.autonav=1);return J};
Vf.prototype.getXhrParams=function(J){return Object.assign({pbj:"prefetch"},J)};
Vf.prototype.getParams=function(J){J={frags:J.fragmentsRequested.join(",")};_.w("kevlar_droppable_prefetchable_requests")&&(J.prefetch=1);return J};
var hgS=function(J){J.playerEvents_.forEach(function(c){J.player.removeEventListener(c.eventName,c.callback)});
J.playerEvents_.length=0},Po=function(J,c,m){this.player=J;
this.JSC$11061_taskManager=c;this.prefetchDelay=m;this.completionResolver_=null;this.playerEvents_=[]};
Po.prototype.start=function(){var J=this;this.completionResolver_=_.$x();_.Hz(this.completionResolver_.promise,function(){hgS(J);J.completionResolver_=null});
this.prepareTrigger(this.completionResolver_);return this.completionResolver_.promise};
var dro=function(J,c,m){J.player.addEventListener(c,m);J.playerEvents_.push({eventName:c,callback:m})},$ro={watch:{pageFragments:["pl",
"wn"],prefetchedFragments:["pl"]},shorts:{pageFragments:["pl","riw"],prefetchedFragments:["pl"]}},GhR={pl:{requiredKeys:["playerResponse"],graftedKeys:["playerResponse"]},wn:{requiredKeys:["response"],graftedKeys:["response"]}},Ebp=function(J,c,m){Po.call(this,J,c,m);this.cueId_="playbackTrigger-"+Math.random()};
_.D(Ebp,Po);
Ebp.prototype.prepareTrigger=function(J){var c=this,m=this.player.getDuration(),b=this.player.getVideoData(),x=b.isLive&&b.hasProgressBarBoundaries;if(x&&b.progressBarEndPositionUtcTimeMillis){var P=b.progressBarEndPositionUtcTimeMillis/1E3;isNaN(P)||(m=P)}var p=0;this.prefetchDelay>=0?x?b.progressBarStartPositionUtcTimeMillis&&(b=b.progressBarStartPositionUtcTimeMillis/1E3,isNaN(b)||(p=b+this.prefetchDelay)):p=this.prefetchDelay:p=m+this.prefetchDelay;x?this.player.addUtcCueRange(this.cueId_,p,m):
this.player.addCueRange(this.cueId_,p,m);_.Hz(J.promise,function(){c.player.removeCueRange(c.cueId_)});
dro(this,"onCueRangeEnter",function(t){t==c.cueId_&&J.resolve(m-p)})};
var vbf=function(J,c){J.fragmentConfiguration_[c].requiredKeys.every(function(m){return!!J.prefetchedData_[m]})&&(J.validatedFragments_.push(c),c=J.missingFragments_.indexOf(c),c!==-1&&J.missingFragments_.splice(c,1))},OvR=function(J){J.prefetchedFragments_.forEach(function(c){vbf(J,c)})},Acu=function(J,c,m){this.pageFragments_=J;
this.prefetchedFragments_=c;this.fragmentConfiguration_=GhR;this.prefetchedData_=m;this.validatedFragments_=[];this.missingFragments_=this.pageFragments_.slice();this.mergedPrefetchedData_=null;OvR(this)},Rgh=function(){},ob1=function(J){this.JSC$11075_playlistManager_=J};
_.D(ob1,Rgh);ob1.prototype.getPrefetchEndpoint=function(){return this.JSC$11075_playlistManager_.getAutoplayEndpoint()};
var Q15=function(J){this.autonavEndpoints_=J};
_.D(Q15,Rgh);Q15.prototype.getPrefetchEndpoint=function(){return this.autonavEndpoints_.length?this.autonavEndpoints_[0]:void 0};
var ege=function(J,c,m,b,x){this.autonavEndpoints=J;this.foregroundTrigger=c;this.backgroundTrigger=m;this.pageType=b;this.isInPlaylist=x},j1f=function(J,c){if(J.webPrefetchData&&J.webPrefetchData.navigationEndpoints&&J.webPrefetchData.navigationEndpoints.length){J=J.webPrefetchData.navigationEndpoints;
var m=_.L(J[0],_.Rz);if(m.watchEndpointSupportedPrefetchConfig&&m.watchEndpointSupportedPrefetchConfig.prefetchHintConfig){var b=m.watchEndpointSupportedPrefetchConfig.prefetchHintConfig;m=b.playbackRelativeSecondsPrefetchCondition;m=typeof m==="number"&&Math.abs(m)<c.videoDuration?m:void 0;b=b.countdownUiRelativeSecondsPrefetchCondition;b=typeof b!=="number"||_.w("prefetch_job_config_cleanup_ks")&&c.inPlaylist?void 0:b;if(typeof b==="number")return new ege(J,c.makeUpNextTrigger(b),c.makePlaybackTrigger(b),
"watch",c.inPlaylist);if(typeof m==="number")return new ege(J,c.makePlaybackTrigger(m),null,"watch",c.inPlaylist)}}},FUR=function(J){return J.prefetchJobConfig_.backgroundTrigger?_.du(_.lft)()==0?J.prefetchJobConfig_.backgroundTrigger:J.prefetchJobConfig_.foregroundTrigger:J.prefetchJobConfig_.foregroundTrigger},lnr=function(J){_.Is(document,"visibilitychange",J.onVisibilityChange_,!1,J)},M5=function(J){xe.call(this,J)};
_.D(M5,xe);M5.prototype.getCacheKeyForEndpoint=function(J){return xe.prototype.getCacheKeyForEndpoint.call(this,J)};
M5.prototype.getTempData=function(){return{}};
M5.prototype.getXhrParams=function(J){return J};
M5.prototype.getParams=function(){return{}};
var ycp=function(J,c,m){var b=J.prefetchDelay*1E3;if(Math.abs(b)>c)m.promise.cancel("Not enough time to prefetch, cancelling prefetch job");else{var x=b,P=c-b;b<0&&(x=c+b,P=Math.abs(b));var p=J.JSC$11061_taskManager.addJob(function(){m.resolve(P/1E3)},10,x);
m.promise.thenCatch(function(){J.JSC$11061_taskManager.cancelJob(p)})}},BBr=function(J,c,m){Po.call(this,J,c,m)};
_.D(BBr,Po);BBr.prototype.prepareTrigger=function(J){var c=this;dro(this,"onAutonavCoundownStarted",function(m){ycp(c,m,J)})};
var gbh=function(J){J.pendingPrefetchJob_&&(J.pendingPrefetchJob_.cancel(),J.pendingPrefetchJob_=null)},JO5=function(J,c,m){if(!J.triggeredTargets.has(c)){var b=_.CFB(J,c);
b.action=m;_.INj(J,c,b)}},cO5=function(J){_.BS_();
_.pER("cpt")&&_.qz(Error("ih"));_.mo.requestAnimationFrame(function(){_.mo.setTimeout(function(){_.Y2("cpt");var c=_.qL("vpl"),m=_.qL("cpt");c&&m&&_.Y2("ol",Math.max(c,m))})});
try{_.Y2("fr_s"),J()}catch(c){_.Xc(c)}_.mo.requestAnimationFrame(function(){_.Y2("bcp")})},mE5=function(J,c){J.serviceEndpointHandlers.push(c)},bsr=function(J,c){c=J.pendingPages_.indexOf(c);
c>-1&&J.pendingPages_.splice(c,1)},xE5=function(J,c){var m=_.aJa.indexOf(c);
m>-1&&_.aJa.splice(m,1);J.targetPage_==c?(J.abort(),_.HAQ(J)):bsr(J,c)},V5s=function(J,c,m,b){c={challenge:c};
m&&(c.webResponse=m);return _.W$(J.innertubeTransportService,c,_.oc(zgp),b)},PMR=function(J,c,m){if(!c.challenge)throw Error("ki");
if(c.botguardData&&c.botguardData.program){var b=new LUR;b.initialize(c.botguardData,function(){WUu(b,{atr_challenge:c.challenge}).then(function(x){if(!x)throw Error("li");return V5s(J,c.challenge,x,m)}).catch(function(x){_.qz(x);
return V5s(J,c.challenge,void 0,m)})},void 0)}else V5s(J,c.challenge,void 0,m)},M5R=function(J,c,m){var b={};
c.ids&&(b.ids=[].concat(_.L6(c.ids)));c.engagementType&&(b.engagementType=c.engagementType);return _.W$(J.innertubeTransportService,b,_.oc(_.mha),m).then(function(x){if(!x)throw new _.w3("GetAttestationChallenge returned falsy");PMR(J,x,m)}).thenCatch(function(x){_.Xc(x)})},p91=function(J,c,m){return new _.IN(function(b,x){var P;
return _.N(function(p){if(p.nextAddress==1){var t=c.engagementType,I=c.ids,a={};I=_.M(I!=null?I:[]);for(var k=I.next();!k.done;k=I.next())k=k.value,k.encryptedVideoId?a.encryptedVideoId=k.encryptedVideoId:k.externalChannelId?a.externalChannelId=k.externalChannelId:k.commentId?a.commentId=k.commentId:k.externalOwnerId?a.externalOwnerId=k.externalOwnerId:k.artistId?a.artistId=k.artistId:k.playlistId?a.playlistId=k.playlistId:k.externalPostId?a.externalPostId=k.externalPostId:k.shareId&&(a.shareId=k.shareId);
return _.K(p,Tue(t,a),2)}P=p.yieldResult;if(!P.challenge)return _.qz(Error("mi")),M5R(J,c,m).then(b,x),p.return();t=P;a={challenge:t.challenge};a.webResponse=t.webResponse;a.engagementType=c.engagementType;a.ids=c.ids;_.W$(J.innertubeTransportService,a,_.oc(zgp),m).then(b,x);_.tD(p)})})},fPo=function(J,c){var m,b,x,P;
_.N(function(p){if(p.nextAddress==1){m=_.L(c,_.jxj);if(!(m&&m.listId&&J.response&&J.response.playingVideoId)||J.listId!==m.listId)return p.return();J.index===void 0&&(J.index=0);return _.K(p,_.rH8(J.JSC$10806_playlistNetworkManager,m.listId,J.index,J.response.playingVideoId),2)}b=p.yieldResult;if(!b)return p.return();x=b.playlistId;P=b.playlistPanelRenderer;J.setPlaylistData(x,P,b.autoplayRenderer);_.tD(p)})},NUh=function(J,c,m){var b=J.getParams(m),x=_.Svr(c,b),P=J.getTempData(c,m);
P.endpoint=JSON.stringify(c);_.w("enable_unknown_lact_fix_on_html5")&&(_.BG().resolve(_.Lq),P.lact=_.cO());var p={headers:{"X-YouTube-STS":_.Ub("STS"),"x-youtube-csoc":1}};_.jK(x,P);return new _.IN(function(t,I){var a=J.getXhrParams(b),k;_.w("kevlar_cache_on_ttl_player")&&(k=_.IT.instance);k&&_.RJ2(k,c)?_.BWQ(k,c,P,window.location.href).then(function(H){H?t(H):I()},I):_.K8a(J.JSC$11051_networkManager_,c,a,J.onPartsCallback_.bind(J),p).then(function(H){H?t(H):I()},I)})},t5R=function(J,c){J.triggerPromise_=
c.start();
J.triggerPromise_.then(function(m){var b=J.prefetchEndpointProvider_.getPrefetchEndpoint();if(b){var x=$ro[J.prefetchJobConfig_.pageType].prefetchedFragments;J.prefetchRequestPromise_=NUh(J.JSC$11087_networkPrefetchRequest_,b,{fragmentsRequested:x,timeBeforeNextVideo:m});J.prefetchResponseCacheKey_=J.JSC$11087_networkPrefetchRequest_.getCacheKeyForEndpoint(b);lnr(J);J.prefetchRequestPromise_.then(function(P){J.storePrefetchedDataCallback_(J.prefetchResponseCacheKey_,P);if(_.w("web_prefetch_preload_video")&&
x.length===1&&x[0]==="pl"&&P&&!P.playerAds&&!P.adPlacements){var p=_.L(b,_.kb),t=p!=null,I={raw_player_response:P,watch_endpoint:p};(P=_.BG().resolve(t?_.bYL:_.BP))&&b&&P.then(function(a){t&&_.w("web_queue_preload_video")?(I.prefer_gapless=!0,a.queueNextVideo(I)):a.preloadVideoByPlayerVars(I)})}})}})},pe=function(J,c,m,b){this.prefetchEndpointProvider_=J;
this.prefetchRequestPromise_=this.triggerPromise_=null;this.storePrefetchedDataCallback_=c;this.prefetchJobConfig_=m;this.JSC$11087_networkPrefetchRequest_=b;this.prefetchResponseCacheKey_=null};
pe.prototype.enqueue=function(){this.triggerPromise_||(t5R(this,FUR(this)),_.wp(document,"visibilitychange",this.onVisibilityChange_,!1,this))};
pe.prototype.resolve=function(){this.cancel()};
pe.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.");lnr(this)};
pe.prototype.onVisibilityChange_=function(){var J=this;_.du(_.lft)()==0?this.triggerPromise_&&(this.triggerPromise_.thenCatch(function(){J.triggerPromise_=null}),this.triggerPromise_.cancel("Visibility changed to background, trigger promise cancelled.")):this.triggerPromise_||t5R(this,FUR(this))};
IhS=function(J,c,m,b,x){c&&(c==null?0:c.videoId)&&m&&m.entries&&_.w("kevlar_enable_shorts_prefetch_in_sequence")&&(gbh(J),c=m.entries.map(function(P){var p;return(p=_.L(P.command,_.kb))==null?void 0:p.videoId}).indexOf(c.videoId),m=m.entries[c+1],m!=null&&m.command&&!_.L(m==null?void 0:m.command,_.W3)&&(b=new ege([m.command],new Ebp(b,_.ft,1),null,"shorts",!1),J.pendingPrefetchJob_=new pe(new Q15(b.autonavEndpoints),function(){return!1},b,new M5(x)),J.pendingPrefetchJob_.enqueue()))};
KqR=function(J,c,m,b,x,P){var p=_.AZ.getInstance();if(!_.w("block_all_player_prefetch_requests")){gbh(J);var t=!!m.getPlaylistId(),I=m.getVideoData().isLive&&m.getVideoData().hasProgressBarBoundaries;if((p.getState()==2||t||I)&&(!m.getVideoData().isLive||I)){p={inPlaylist:t,videoDuration:m.getDuration(),makeUpNextTrigger:function(k){return new BBr(m,_.ft,k)},
makePlaybackTrigger:function(k){return new Ebp(m,_.ft,k)}};
var a=j1f(c,p);a&&(J.pendingPrefetchJob_=new pe(a.isInPlaylist?new ob1(x):new Q15(a.autonavEndpoints),function(k,H){H=new Acu($ro[a.pageType].pageFragments,$ro[a.pageType].prefetchedFragments,H);return _.m9C(H)?(J.prefetchCache_.set(k,H),!0):!1},a,new Vf(b,m,P,x)),J.pendingPrefetchJob_.enqueue())}}};
CM1=function(){var J=_.Zl();J.signals.parkOrScheduleJob(function(){var c=J.storage;if(c.storage)if(Zvs(c)){var m=c.getPlaylistId();c=qTS(c);m=!!m&&c!==void 0}else c.clear(),m=!1;else m=!1;if(m){m=J.pageManager.isOnWatch();a:{var b=J.storage;if(b.storage&&Zvs(b)&&(c=b.getPlaylistId(),b=qTS(b),c&&b!==void 0)){m={recoverPlaylistCommand:{listId:c,index:b,openMiniplayer:!m,openListPanel:m,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}};break a}m=void 0}m&&_.WE(J.JSC$10806_actionRouter,[m],null)}},0,"ma")};
ahp=function(J,c,m,b,x,P){var p=_.rs(7111);_.JM(J.JSC$16106_screenManager,p,P?_.n7(P):void 0);_.mn(J.JSC$16106_screenManager,p,{offlineabilityData:{offlineModeType:"OFFLINE_NOW",offlineObjectType:b,offlineId:c,offlineabilityFormatType:m,isDefaultFormatType:x==="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED",downloadQualitySettingsAction:x}})};
k1f=function(J,c,m,b,x){var P,p,t,I,a;return _.N(function(k){if(k.nextAddress==1)return _.K(k,J.JSC$16106_playerApiPromise,2);P=k.yieldResult;ahp(J,c,m,"OFFLINE_OBJECT_TYPE_PLAYLIST",b,x);if(t=_.e02[J.entityTypeMap.listEntityType])a={},p=(a[t]={maximumDownloadQuality:(I=m)!=null?I:void 0},a);return _.K(k,P.queueOfflineAction(c,J.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",p),0)})};
Hss=function(J,c){var m,b,x,P;return _.N(function(p){if(p.nextAddress==1)return _.K(p,J.JSC$16106_persistentStorePromiseAccessor(),2);if(p.nextAddress!=3){m=p.yieldResult;if(!m)return _.qz(new _.w3("PES is undefined")),p.return();b=_.V_(c,"downloadStatusEntity");return _.K(p,Xj1(m,b,"downloadStatusEntity"),3)}x=p.yieldResult;return p.return((P=x)==null?void 0:P.downloadState)})};
isu=function(J,c,m,b,x){var P,p,t,I,a,k;return _.N(function(H){switch(H.nextAddress){case 1:return _.K(H,J.JSC$16106_playerApiPromise,2);case 2:P=H.yieldResult;ahp(J,c,m,"OFFLINE_OBJECT_TYPE_VIDEO",b,x);if(t=_.e02[J.entityTypeMap.singleEntityType])a={},p=(a[t]={maximumDownloadQuality:(I=m)!=null?I:void 0},a);return _.K(H,Hss(J,c),3);case 3:k=H.yieldResult;if(k!=="DOWNLOAD_STATE_USER_DELETED"){H.jumpTo(4);break}return _.K(H,J.deleteVideo(c),4);case 4:return _.K(H,P.queueOfflineAction(c,J.entityTypeMap.singleEntityType,
"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",p),0)}})};
nrF=function(J,c,m,b,x){return _.N(function(P){return P.nextAddress==1?_.K(P,J.deleteVideo(c,"OFFLINE_DELETE_REASON_FAILED_VIDEO_RETRY"),2):_.K(P,isu(J,c,m,b,x),0)})};
TUh=function(J,c,m){var b,x;return _.N(function(P){if(P.nextAddress==1)return _.K(P,J.JSC$16106_playerApiPromise,2);b=P.yieldResult;x=_.V_(c,"mainVideoDownloadStateEntity");return _.K(P,b.updateDownloadState(x,m),0)})};
k25=function(J){var c=_.BG().resolve(_.ec);return _.N(function(m){if(m.nextAddress==1)return c.previousDownloadStateForVideo[J]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&c.previousDownloadStateForVideo[J]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"?m.jumpTo(2):_.K(m,c.resumeVideoDownload(J),2);if(m.nextAddress!=4)return _.K(m,TUh(c,J,c.previousDownloadStateForVideo[J]),4);delete c.previousDownloadStateForVideo[J];_.tD(m)})};
CWf=function(J,c){var m;return _.N(function(b){if(b.nextAddress==1)return _.K(b,J.JSC$16106_playerApiPromise,2);m=b.yieldResult;return _.K(b,m.queueOfflineAction(c,J.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"),0)})};
tke=function(){var J=_.BG().resolve(_.ec),c,m;return _.N(function(b){if(b.nextAddress==1)return _.K(b,J.JSC$16106_playerApiPromise,2);if(b.nextAddress!=3)return c=b.yieldResult,m={offlineLoggingData:{offlineDeleteReason:"OFFLINE_DELETE_REASON_SETTINGS_DELETE_ALL"}},_.K(b,c.queueOfflineAction("!*$_ALL_ENTITIES_!*$",J.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",m),3);var x=J.JSC$16106_commandHandler,P=x.resolveCommand,p=_.CX("DELETING_ALL",void 0,"Downloads are being deleted");
P.call(x,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.yq(p)}},popupType:"TOAST"}});_.tD(b)})};
w9R=function(J){var c,m;return _.N(function(b){if(b.nextAddress==1)return _.K(b,J.JSC$16106_prefStorage,2);c=b.yieldResult;return b.return((m=c)==null?void 0:m.get("sdois"))})};
rOs=function(J){var c,m,b,x,P,p;return _.N(function(t){if(t.nextAddress==1)return _.K(t,J.JSC$16106_persistentStorePromiseAccessor(),2);if(t.nextAddress!=3){c=t.yieldResult;if(!c)return _.qz(new _.w3("PES is undefined")),t.return();m=_.V_("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");return _.K(t,Xj1(c,m,"settingEntity"),3)}b=t.yieldResult;return t.return((p=(x=b)==null?void 0:(P=x.settingOptionValue)==null?void 0:P.boolValue)!=null?p:!1)})};
suF=function(J,c){var m,b,x,P;return _.N(function(p){switch(p.nextAddress){case 1:return((m=c)==null?void 0:m.formatType)===void 0?p.return():_.K(p,J.JSC$16106_prefStorage,2);case 2:b=p.yieldResult;if(b===void 0)return p.return();if(((x=c)==null?void 0:x.settingsAction)==="DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE")return _.K(p,b.set("lmqf",c.formatType),8);if(((P=c)==null?void 0:P.settingsAction)!=="DOWNLOAD_QUALITY_SETTINGS_ACTION_EXPIRING_SAVE"){p.jumpTo(0);break}return _.K(p,b.set("lmqf",c.formatType),
6);case 6:return _.K(p,b.set("lmqflst",Math.floor((0,_.y4)())),0);case 8:return _.K(p,b.remove("lmqflst"),0)}})};
LqF=function(J){var c,m;return _.N(function(b){switch(b.nextAddress){case 1:return _.K(b,J.JSC$16106_prefStorage,2);case 2:c=b.yieldResult;if(!c){b.jumpTo(3);break}return _.K(b,c.get("lmqflst"),4);case 4:if(m=b.yieldResult,m!==void 0)return b.return(m);case 3:return b.return(0)}})};
DE1=function(J){var c,m;return _.N(function(b){switch(b.nextAddress){case 1:return _.K(b,J.JSC$16106_prefStorage,2);case 2:c=b.yieldResult;if(c===void 0){b.jumpTo(3);break}return _.K(b,c.get("lmqf"),4);case 4:if(m=b.yieldResult,m!==void 0)return b.return(m);case 3:return b.return("SD")}})};
LAu=function(J,c,m){var b,x,P,p,t,I,a,k;_.N(function(H){switch(H.nextAddress){case 1:return _.K(H,suF(J,(b=c)==null?void 0:b.actionParams),2);case 2:x=c.playlistId;if(!x)return H.return();if(c.action==="ACTION_ADD")return((p=c.actionParams)==null?0:p.formatType)?_.K(H,k1f(J,x,c.actionParams.formatType,(k=c.actionParams)==null?void 0:k.settingsAction,m),0):_.K(H,J.offlineWebClientEligibility,14);if(c.action==="ACTION_REMOVE_WITH_PROMPT"){var T=J.JSC$16106_commandHandler,r=T.resolveCommand,W=_.Ub("INNERTUBE_CLIENT_NAME");
var Y=W==="WEB_REMIX"?_.CX("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.CX("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var Z=W==="WEB_REMIX"?[_.CX("REMOVE_DOWNLOAD_CONFIRMATION",void 0,"Items you remove will no longer play without an internet connection.")]:[];W=W==="WEB_REMIX"?_.CX("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.CX("DELETE",void 0,"Delete");var d=_.CX("CANCEL",void 0,"Cancel");Y=wGe(Y,Z,W,d,{signal:"DELETE_PLAYLIST_DOWNLOAD",targetId:x});r.call(T,{openPopupAction:Y});
return H.return()}if(c.action==="ACTION_REMOVE")return _.K(H,CWf(J,x),0);if(c.action!=="ACTION_SYNC"){H.jumpTo(0);break}return _.K(H,J.JSC$16106_playerApiPromise,9);case 9:return P=H.yieldResult,_.K(H,P.queueOfflineAction(x,J.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);case 14:return t=H.yieldResult,_.K(H,DE1(J),15);case 15:return I=H.yieldResult,_.K(H,LqF(J),16);case 16:a=H.yieldResult,c.onAddCommand&&J.JSC$16106_commandHandler.resolveCommand(c.onAddCommand,{form:{preferredFormatType:I,
offlineWebClientEligibility:t,lastOfflineQualitySettingsSavedMs:a.toString()}}),H.jumpTo(0)}})};
r7s=function(J,c,m){var b,x,P,p,t,I,a,k,H,T,r,W,Y,Z;_.N(function(d){switch(d.nextAddress){case 1:return _.K(d,suF(J,(b=c)==null?void 0:b.actionParams),2);case 2:x=c.videoId;if(!x)return d.return();if(c.action==="ACTION_REMOVE_WITH_PROMPT"){var G=J.JSC$16106_commandHandler,e=G.resolveCommand,A=_.Ub("INNERTUBE_CLIENT_NAME");var l=A==="WEB_REMIX"?_.CX("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.CX("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var y=A==="WEB_REMIX"?[_.CX("REMOVE_DOWNLOAD_CONFIRMATION_TRACK_OFFLINE",
void 0,"This track won't be available to listen offline.")]:[];A=A==="WEB_REMIX"?_.CX("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.CX("DELETE",void 0,"Delete");var pG=_.CX("CANCEL",void 0,"Cancel");l=wGe(l,y,A,pG,{signal:"DELETE_DOWNLOAD",targetId:x});e.call(G,{openPopupAction:l});return d.return()}if(c.action==="ACTION_ADD")return((T=c.actionParams)==null?0:T.formatType)?_.K(d,isu(J,x,c.actionParams.formatType,(Z=c.actionParams)==null?void 0:Z.settingsAction,m),0):_.K(d,J.offlineWebClientEligibility,
23);if(c.action==="ACTION_RETRY")return _.K(d,DE1(J),19);if(c.action==="ACTION_PAUSE")return _.K(d,J.pauseVideoDownload(x),0);if(c.action==="ACTION_RESUME")return _.K(d,J.resumeVideoDownload(x),0);if(c.action!=="ACTION_REMOVE"){d.jumpTo(0);break}return _.K(d,Hss(J,x),13);case 13:return P=d.yieldResult,J.previousDownloadStateForVideo[x]=(p=P)!=null?p:"DOWNLOAD_STATE_UNKNOWN",_.K(d,TUh(J,x,"DOWNLOAD_STATE_USER_DELETED"),14);case 14:if(J.previousDownloadStateForVideo[x]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&
J.previousDownloadStateForVideo[x]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"){d.jumpTo(15);break}return _.K(d,J.pauseVideoDownload(x),15);case 15:G=_.CX("DELETED_VIDEO",void 0,"Video deleted from downloads.");e=_.CX("UNDO_ACTION",void 0,"Undo");l=_.CX("CLOSE",void 0,"Close");t={openPopupAction:{popup:{notificationActionRenderer:{responseText:_.yq(G),actionButton:{buttonRenderer:{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.yq(e),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"UNDO_DELETE_DOWNLOAD",
targetId:x}}]}},loggingDirectives:{clientVeSpec:{uiType:169048}},accessibilityData:{accessibilityData:{label:G+" "+e}}}},closeActionButton:{buttonRenderer:{icon:{iconType:"CLOSE"},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"DELETE_DOWNLOAD",targetId:x}}]}},loggingDirectives:{clientVeSpec:{uiType:169049}},accessibilityData:{accessibilityData:{label:l}}}},loggingDirectives:{clientVeSpec:{uiType:169047}}}},popupType:"TOAST"}};J.JSC$16106_commandHandler.resolveCommand(t);
d.jumpTo(0);break;case 19:I=d.yieldResult;I==="UNKNOWN_FORMAT_TYPE"&&(I="SD");a="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED";if((k=c.actionParams)==null?0:k.formatType)I=c.actionParams.formatType,a=(H=c.actionParams)==null?void 0:H.settingsAction;return _.K(d,nrF(J,x,I,a,m),20);case 20:return d.return();case 23:return r=d.yieldResult,_.K(d,DE1(J),24);case 24:return W=d.yieldResult,_.K(d,LqF(J),25);case 25:Y=d.yieldResult,c.onAddCommand&&J.JSC$16106_commandHandler.resolveCommand(c.onAddCommand,
{form:{preferredFormatType:W,offlineWebClientEligibility:r,lastOfflineQualitySettingsSavedMs:Y.toString()}}),d.jumpTo(0)}})};
Wq1=function(J,c){var m,b,x,P,p,t,I;return _.N(function(a){if(a.nextAddress==1)return _.K(a,J.JSC$16106_persistentStorePromiseAccessor(),2);m=a.yieldResult;if(!m)return _.qz(new _.w3("PES is undefined")),a.return();if((b=c)==null||!b.settingItemId)return a.return();x=c;P=x.settingItemId;p=x.boolValue;t=_.V_(P,"settingEntity");I={key:t,settingOptionValue:{boolValue:p}};return _.K(a,YTh(m,I),0)})};
z8p=function(J,c){var m,b,x,P,p,t,I;return _.N(function(a){switch(a.nextAddress){case 1:return _.K(a,J.JSC$16106_prefStorage,2);case 2:return m=a.yieldResult,b=_.HA(),_.K(a,J.JSC$16106_persistentStorePromiseAccessor(),3);case 3:return x=a.yieldResult,m?x?_.K(a,m.get("sdois"),4):(_.qz(new _.w3("PES is undefined")),a.return()):(_.qz(new _.w3("prefStorage is undefined")),a.return());case 4:P=a.yieldResult;t=(p=c)==null?void 0:p.boolValue;t===void 0||_.w("kevlar_set_sd_enabled_flag_killswitch")||_.iJ(0,
197,!0);P===void 0&&t===void 0&&(t=!1);if(t===void 0){a.jumpTo(0);break}return _.K(a,m.set("sdois",t),6);case 6:return _.w("kevlar_set_sd_enabled_flag_killswitch")||(_.iJ(0,196,t),b.save()),I={settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:t},_.K(a,Wq1(J,I),0)}})};
uFp=function(J,c,m){var b,x,P,p,t;return _.N(function(I){switch(I.nextAddress){case 1:return _.K(I,w9R(J),2);case 2:return b=I.yieldResult,_.K(I,z8p(J,m),3);case 3:return _.K(I,w9R(J),4);case 4:return x=I.yieldResult,P=x!==b,_.K(I,rOs(J),5);case 5:p=I.yieldResult&&!_.w("kevlar_modern_downloads_page");if((t=!x&&!p)||P)return _.K(I,c.queueOfflineAction("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);I.jumpTo(0)}})};
iku=function(){var J=_.BG().resolve(_.ec),c;_.N(function(m){switch(m.nextAddress){case 1:return _.K(m,J.JSC$16106_playerApiPromise,2);case 2:c=m.yieldResult;if(!_.w("kevlar_force_refresh_smart_downloads")){m.jumpTo(3);break}return _.K(m,c.refreshAllStaleEntities(0),4);case 4:return m.return();case 3:return _.K(m,c.refreshAllStaleEntities(),5);case 5:return _.K(m,uFp(J,c),0)}})};
WA4=function(J,c){var m,b;_.N(function(x){switch(x.nextAddress){case 1:return _.K(x,J.JSC$16106_playerApiPromise,2);case 2:m=x.yieldResult;switch((b=c)==null?void 0:b.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 _.K(x,uFp(J,m,c),6);case 6:x.jumpTo(0);break;case 4:return _.K(x,Wq1(J,c),7);case 7:x.jumpTo(0)}})};
fhu=function(J,c){var m,b,x;return _.N(function(P){if(P.nextAddress==1)return _.K(P,J.JSC$16106_persistentStorePromiseAccessor(),2);if(P.nextAddress!=3){m=P.yieldResult;if(!m)return _.qz(new _.w3("PES is undefined")),P.return(!1);if(!c)return P.return(!1);b=_.V_(c,"mainVideoEntity");return _.K(P,Xj1(m,b,"mainVideoEntity"),3)}x=P.yieldResult;return P.return(x!==void 0)})};
uMu=function(J){var c=_.BG().resolve(_.ec),m,b,x,P,p,t,I,a,k,H,T;_.N(function(r){switch(r.nextAddress){case 1:return _.K(r,c.JSC$16106_playerApiPromise,2);case 2:m=r.yieldResult;x=(b=J)==null?void 0:b.actions;if(!x)return r.return();P=_.M(x);p=P.next();case 3:if(p.done){r.jumpTo(0);break}t=p.value;a=I=void 0;if(!(((I=t)==null?0:I.entityKey)&&((a=t)==null?0:a.actionType))){r.jumpTo(4);break}k=_.mA(t.entityKey);H=k.entityId;T=k.entityType;return _.K(r,m.queueOfflineAction(H,T,t.actionType),4);case 4:p=
P.next(),r.jumpTo(3)}})};
YBR=function(J,c){var m,b,x,P,p;return _.N(function(t){if(t.nextAddress==1)return _.K(t,J.JSC$16106_prefStorage,2);if(t.nextAddress!=3)return(m=t.yieldResult)?_.K(t,m.get("psi"),3):t.return();b=t.yieldResult;p={isPaused:c,lastSyncTimestamp:(P=(x=b)==null?void 0:x.lastSyncTimestamp)!=null?P:"0"};return _.K(t,m.set("psi",p),0)})};
X2R=function(J){var c=_.BG().resolve(_.ec),m,b,x,P,p,t,I,a;return _.N(function(k){switch(k.nextAddress){case 1:return _.K(k,c.JSC$16106_playerApiPromise,2);case 2:m=k.yieldResult;x=((b=J)==null?void 0:b.localWatchHistoryCommandType)==="LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE";switch((t=J)==null?void 0:t.localWatchHistoryCommandType){case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_CLEAR":P="!*$_ALL_ENTITIES_!*$";p="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE";break;case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE":case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_RESUME":return k.jumpTo(3);
case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_REMOVE":return k.jumpTo(4)}k.jumpTo(5);break;case 3:return _.K(k,YBR(c,x),6);case 6:k.jumpTo(5);break;case 4:return _.K(k,fhu(c,(I=J)==null?void 0:I.videoId),7);case 7:k.yieldResult&&(P=(a=J)==null?void 0:a.videoId,p="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE");k.jumpTo(5);break;case 5:if(P&&p)return _.K(k,m.queueOfflineAction(P,"videoPlaybackPositionEntity",p),0);k.jumpTo(0)}})};
X9h=function(J,c){var m;c!==1||((m=J.currentPersistentToast)==null?0:m.isOpened())?J.openToast():J.currentPersistentToast=void 0};
ZsR=function(){var J,c,m,b;return _.N(function(x){if(x.nextAddress==1)return J=navigator,(c=J.storage)!=null&&c.persisted?_.K(x,(m=J.storage)==null?void 0:m.persisted(),2):x.return("PERSISTED_STATE_NOT_SUPPORTED");b=x.yieldResult;return x.return(b?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})};
qBf=function(){var J,c,m,b;return _.N(function(x){if(x.nextAddress==1)return J=navigator,(c=J.storage)!=null&&c.persist?_.K(x,(m=J.storage)==null?void 0:m.persist(),2):x.return("PERSISTED_STATE_NOT_SUPPORTED");b=x.yieldResult;return x.return(b?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})};
UE5=function(){var J,c;return _.N(function(m){switch(m.nextAddress){case 1:return J="PERSISTED_STATE_NOT_SUPPORTED",_.xL(m,2),_.K(m,ZsR(),4);case 4:J=m.yieldResult;if(J!=="PERSISTED_STATE_NOT_GRANTED"){m.jumpTo(5);break}return _.K(m,qBf(),6);case 6:J=m.yieldResult;case 5:_.EO(m,3);break;case 2:c=_.NM(m),c instanceof Error&&_.Xc(c);case 3:return _.zB("persistentStorageStateChecked",{persistedState:J}),m.return(J)}})};
SBp=function(J,c){var m=[],b=!1;c=_.M(c);for(var x=c.next();!x.done;x=c.next()){x=J.moduleRegistry[x.value];var P=void 0,p=void 0;((P=x)==null?0:P.isFetching)&&((p=x)==null?0:p.resolver)?(m.push(x.resolver.promise),b=!0):(x=new _.xb,x.resolve(void 0),m.push(x.promise))}return b?Promise.all(m):void 0};
h8o=function(J,c,m){m=m===void 0?{}:m;var b=J.defaultViewTransitionOptions,x=c.map(function(p){return p.beforeTransition}),P=c.map(function(p){return p.afterTransition});
return Object.assign({},b,m,{beforeTransition:function(){var p;(p=b.beforeTransition)==null||p.call(b);var t,I;(I=(t=m).beforeTransition)==null||I.call(t);p=_.M(x);for(t=p.next();!t.done;t=p.next())t=t.value,t()},
afterTransition:function(){var p;(p=b.afterTransition)==null||p.call(b);var t,I;(I=(t=m).afterTransition)==null||I.call(t);p=_.M(P);for(t=p.next();!t.done;t=p.next())t=t.value,t()}})};
dEp=function(J,c,m){var b,x,P,p,t,I,a;_.N(function(k){if(J.config.disableAllTransitions)return k.return(c());if((b=m)==null||!b.transitionName)return k.return(_.GRF(c,(x=m)==null?void 0:x.viewTransitionOptions));P=m;p=P.transitionName;t=P.viewTransitionOptions;I=J.config.transitionConfigs.get(p);if(!I)return k.return(c());var H;a=(H=J.transitionTasksMap.get(p))!=null?H:[];return k.return(_.GRF(c,h8o(I,a,t)))})};
eW=function(J,c,m){J.transitionTasksMap.has(c)?J.transitionTasksMap.get(c).push(m):(J=new _.w3("Transition task registered for unknown transition name",c),_.Xc(J))};
$Er=function(J,c,m){if(J.isInitialized()){var b=BC(m),x=b==="watch";b=b==="shorts";var P=BC(c)==="watch";if(x)P||(J.backgroundPageData=c),J.watchPipMode&&P||J.deactivate(m.endpoint);else if(b){if(BC(c)!=="shorts"){var p;(p=J.getPlayerElement())==null||p.pause()}}else P&&!J.watchPipMode&&(sPp(c,m)?(J.watchWhileMode&&_.vpR(J,!1),_.S5p(J,c)):J.isMiniplayerActive()&&J.watchWhileMode&&J.deactivate());P&&_.AfS(J);J.shortsPipMode&&!b&&(window.focus(),J.deactivate());if(J.pictureInPictureEnabled())if(b&&
J.shortsPipEnabled||x&&J.watchPipEnabled)_.W42(J.handleMediaSessionPipActivation);else if(!J.isMiniplayerActive()&&(J.shortsPipEnabled||J.watchPipEnabled)&&window.documentPictureInPicture&&_.Xe()&&_.I3T("Chromium")>=120){J=_.DQu().mediaSession;try{J.setActionHandler("enterpictureinpicture",null)}catch(t){}}}};
G1S=function(J,c){var m,b;_.N(function(x){if(x.nextAddress==1){if(!J||!J.navigationEndpoint)return x.return();_.Mh().lockupActivation=!0;var P;c?P=_.v2(_.CX("QUEUE",void 0,"Queue")):P=J.longBylineText;b=(m=P)&&J.title?{miniplayerTitle:J.title,miniplayerSubtitle:m,playlistData:null}:void 0;return _.K(x,_.Q8C(_.BG().resolve(_.Uo),J.navigationEndpoint,!0,b),2)}_.Mh().userActivation=!0;_.tD(x)})};
WyR=function(J,c){var m,b,x,P,p,t;_.N(function(I){if(I.nextAddress==1){m=_.L(c,_.ebL);if(!m||!m.listId)return I.return();J.index=m.index||J.index||0;b=J.response&&J.response.playingVideoId||void 0;return _.K(I,_.rH8(J.JSC$10806_playlistNetworkManager,m.listId,J.index,b),2)}x=I.yieldResult;if(!x)return I.return();P=x.playlistId;p=x.playlistPanelRenderer;!J.queueProxy&&P&&p&&P.startsWith("TLPQ")&&(J.queueProxy=new _.L$(J.JSC$10806_playlistNetworkManager,P,J.setPlaylistData.bind(J),J.clearQueue.bind(J),
_.yMo(p),J.storage));if(m.openMiniplayer&&(t=_.BV2(p))&&!J.pageManager.isOnWatch()){var a=t,k=m.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE";J.isMiniplayerActive()?J.openToast(a):G1S(a,k)}J.setPlaylistData(P,p,x.autoplayRenderer);_.tD(I)})};
szS=function(J,c){var m=_.Zl();m.index===void 0&&(m.index=0);m.temporaryItems.push.apply(m.temporaryItems,_.L6(J));if((c.videoId||c.videoIds)&&m.index!==void 0&&c.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"){if(!m.queueProxy){var b=[];if(m.response){var x=_.BG().resolve(_.Uo).isMiniplayerActive();if(m.response.playlistPanelRenderer&&m.response.playlistId&&!m.response.playlistId.startsWith("TLPQ")){if(m.pageManager.isOnWatch()||x)b=_.yMo(m.response.playlistPanelRenderer)}else m.response.playingVideoId&&
!c.openMiniplayer?b.push(m.response.playingVideoId):x&&m.response.playingVideoId&&c.openMiniplayer&&b.push(m.response.playingVideoId)}m.queueProxy=new _.L$(m.JSC$10806_playlistNetworkManager,"",m.setPlaylistData.bind(m),m.clearQueue.bind(m),b,m.storage);m.queueProxy.JSC$10752_setCurrentIndex(m.index)}m.queueProxy.addVideos(c.videoIds||[c.videoId],c)}Ur5(m,J);m.response&&_.qh(m,_.Ul(m,m.response.autoplayRenderer));m.pageManager.isOnWatch()?m.isMiniplayerActive()&&m.openToast(J[0]):(J=J[0],c=c.listType===
"PLAYLIST_EDIT_LIST_TYPE_QUEUE",m.isMiniplayerActive()?m.openToast(J):G1S(J,c))};
Erf=function(J){var c=_.IF(J);if(c=="object"||c=="array"){if(typeof J.clone==="function")return J.clone();if(typeof Map!=="undefined"&&J instanceof Map)return new Map(J);if(typeof Set!=="undefined"&&J instanceof Set)return new Set(J);c=c=="array"?[]:{};for(var m in J)c[m]=Erf(J[m]);return c}return J};
N5=function(J,c){return _.FoQ(_.NC(J,c,void 0,_.p0))};
tn=function(J,c){return _.Wu(_.NC(J,c,void 0,_.p0))};
IZ=function(J,c){return _.a_J(_.NC(J,c,void 0,_.p0))};
Ke=function(J,c){return _.NC(J,c,void 0,_.p0,_.tf)};
vrS=_.R_(function(J,c,m){if(J.nextWireType_!==0)return!1;_.o_(c,m,_.Zb(J.decoder_,_.mS));return!0},_.lR,_.Sn);
Osf=_.R_(function(J,c,m,b){if(J.nextWireType_!==0)return!1;_.C0(c,m,b,_.Zb(J.decoder_,_.mS));return!0},_.lR,_.Sn);
AOo=_.R_(function(J,c,m){if(J.nextWireType_!==1)return!1;var b=J.decoder_;J=_.US(b);b=_.US(b);J=_.gL(J,b);_.o_(c,m,J);return!0},_.eo3,_.K32);
R8F=_.R_(function(J,c,m){if(J.nextWireType_!==5)return!1;_.o_(c,m,_.US(J.decoder_));return!0},function(J,c,m){c=_.z4(c);
c!=null&&(_.e9(J,m,5),_.F7(J.encoder_,c))},_.I6r);
orR=_.R_(function(J,c,m){if(J.nextWireType_!==0)return!1;J=_.ozu(J.decoder_);_.o_(c,m,J===!1?void 0:J);return!0},_.jFu,_.M03);
QuR=_.R_(function(J,c,m){if(J.nextWireType_!==2)return!1;J=_.yQ3(J);_.o_(c,m,J===""?void 0:J);return!0},_.leo,_.p5m);
e85=_.R_(function(J,c,m){if(J.nextWireType_!==2)return!1;J=_.Bc3(J);_.o_(c,m,J===_.dL()?void 0:J);return!0},_.BRf,_.kFm);
juS=_.$Rq(function(J,c,m){if(J.nextWireType_!==0&&J.nextWireType_!==2)return!1;c=_.D2(c,c[_.sa]|0,m);J.nextWireType_==2?_.gzu(J,pju,c):c.push(_.qC(J.decoder_));return!0},function(J,c,m){c=_.dRJ(_.Wu,c,!0);
if(c!=null&&c.length){m=_.C1r(J,m);for(var b=0;b<c.length;b++)_.Afo(J.encoder_,c[b]);_.aee(J,m)}},_.Hmo);
Fqo=_.R_(function(J,c,m){if(J.nextWireType_!==0)return!1;J=_.qC(J.decoder_);_.o_(c,m,J===0?void 0:J);return!0},_.gpm,_.Hmo);
lhR=_.R_(function(J,c,m,b){if(J.nextWireType_!==0)return!1;_.C0(c,m,b,_.qC(J.decoder_));return!0},_.gpm,_.Hmo);
_.AG=function(J){this.privateDoNotAccessOrElseWrappedStyleSheet=J};
_.AG.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedStyleSheet};
var SHR=function(J,c){return new _.zO(J.x+c.x,J.y+c.y)},yOu=function(J){return J.previousElementSibling!==void 0?J.previousElementSibling:_.rqB(J.previousSibling,!1)},BUR=function(J,c){var m=[];
for(c=c||0;c<J.length;c+=2)_.t62(J[c],J[c+1],m);return m.join("&")},grF=function(J,c){var m=arguments.length==2?BUR(arguments[1],0):BUR(arguments,1);
return _.NLQ(J,m)},Jd4=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(Jd4,_.d6);Jd4.prototype.getValue=function(){var J=_.NC(this,2);if(Array.isArray(J)||J instanceof _.d6)throw Error("aa");return _.K0(this,2)};
var gHr=function(){var J=_.Jc();this.JSC$7928_streamzService=J;J.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/opened",_.Vx("channel_type"))};
gHr.prototype.increment=function(J){this.JSC$7928_streamzService.JSC$7798_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/opened",J)};
var J54=function(){var J=_.Jc();this.JSC$7931_streamzService=J;J.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/closed",_.Vx("channel_type"))};
J54.prototype.increment=function(J){this.JSC$7931_streamzService.JSC$7798_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/closed",J)};
var m8r=function(){var J=_.Jc();this.JSC$7934_streamzService=J;J.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",_.Vx("channel_type"))};
m8r.prototype.increment=function(J){this.JSC$7934_streamzService.JSC$7798_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",J)};
var c5u=function(){var J=_.Jc();this.JSC$7937_streamzService=J;J.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
c5u.prototype.increment=function(){this.JSC$7937_streamzService.JSC$7798_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
var bNh=function(){var J=_.Jc();this.JSC$7940_streamzService=J;J.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/error",_.Vx("channel_type"),_.Vx("error_type"))};
bNh.prototype.increment=function(J,c){this.JSC$7940_streamzService.JSC$7798_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/error",J,c)};
var x8R=function(){var J=_.Jc();this.JSC$7943_streamzService=J;J.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
x8R.prototype.increment=function(){this.JSC$7943_streamzService.JSC$7798_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
var VEp=function(){var J=_.Jc();this.JSC$7946_streamzService=J;J.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
VEp.prototype.increment=function(){this.JSC$7946_streamzService.JSC$7798_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
var lZf=function(){var J=_.Jc();this.JSC$7952_streamzService=J;J.addNewCounter("/client_streamz/youtube/identity/dma_pause_player")};
lZf.prototype.increment=function(){this.JSC$7952_streamzService.JSC$7798_incrementCounter("/client_streamz/youtube/identity/dma_pause_player")};
var cd1=function(J){return J.getCount&&typeof J.getCount=="function"?J.getCount():_.yJ(J)||typeof J==="string"?J.length:_.Lw.getCount(J)},mlR=function(J,c){if(typeof J.every=="function")return J.every(c,void 0);
if(_.yJ(J)||typeof J==="string")return Array.prototype.every.call(J,c,void 0);for(var m=_.VUj(J),b=_.O9(J),x=b.length,P=0;P<x;P++)if(!c.call(void 0,b[P],m&&m[P],J))return!1;return!0},b7R=function(J,c,m,b){var x=new _.oz(null);
J&&_.Ai(x,J);c&&_.Rs(x,c);m&&_.os(x,m);b&&_.Qh(x,b);return x},xlo=function(){var J=_.UO&&_.aR(_.i2$,10)>=0,c;
if(c=_.VNr)c=_.aR(_.H2L,10)>=0;var m=_.Va&&_.aR(_.i2$,85)>=0;return _.ce||J||c||m},VM1=function(J){var c=_.RuQ(J);
return c&&xlo()?-J.scrollLeft:c&&_.$9(J,"overflowX")!="visible"?J.scrollWidth-J.clientWidth-J.scrollLeft:J.scrollLeft},Pvo=function(J,c){c=Math.max(c,0);
_.RuQ(J)?xlo()?J.scrollLeft=-c:J.scrollLeft=J.scrollWidth-c-J.clientWidth:J.scrollLeft=c},$31=0,Aap=!1;
Jb.prototype.set=function(J){this.relativeTimeStart_=J};
Jb.prototype.reset=function(){this.set(_.lc())};
Jb.prototype.get=function(){return this.relativeTimeStart_};
var MMR=null,pd5=function(){MMR||(MMR=new Jb)},NpR=function(){MMR||(MMR=new Jb)};
_.yv(NpR,pd5);_.V=oys.prototype;_.V.JSC$9263_buffer_="";_.V.set=function(J){this.JSC$9263_buffer_=""+J};
_.V.append=function(J,c,m){this.JSC$9263_buffer_+=String(J);if(c!=null)for(var b=1;b<arguments.length;b++)this.JSC$9263_buffer_+=arguments[b];return this};
_.V.clear=function(){this.JSC$9263_buffer_=""};
_.V.getLength=function(){return this.JSC$9263_buffer_.length};
_.V.toString=function(){return this.JSC$9263_buffer_};
var tMs=function(){var J={type:"unit",style:"narrow"};this.listType_=J&&J.type?J.type:"conjunction";this.listStyle_=J&&J.style?J.style:"long";this.listSymbols_=khS;J=0;switch(this.listStyle_){case "short":J=1;break;case "narrow":J=2}switch(this.listType_){case "conjunction":this.listStartPattern_=this.listSymbols_.AND_START[J];this.listTwoPattern_=(this.listSymbols_.AND_TWO||this.listSymbols_.AND_END)[J];this.listMiddlePattern_=(this.listSymbols_.AND_MIDDLE||this.listSymbols_.AND_START)[J];this.listEndPattern_=
this.listSymbols_.AND_END[J];break;case "disjunction":this.listStartPattern_=(this.listSymbols_.OR_START||this.listSymbols_.AND_START)[J];this.listTwoPattern_=(this.listSymbols_.OR_TWO||this.listSymbols_.OR_END)[J];this.listMiddlePattern_=(this.listSymbols_.OR_MIDDLE||this.listSymbols_.AND_START)[J];this.listEndPattern_=this.listSymbols_.OR_END[J];break;case "unit":this.listStartPattern_=(this.listSymbols_.UNIT_START||this.listSymbols_.AND_START)[J],this.listTwoPattern_=(this.listSymbols_.UNIT_TWO||
this.listSymbols_.UNIT_END)[J],this.listMiddlePattern_=(this.listSymbols_.UNIT_MIDDLE||this.listSymbols_.AND_START)[J],this.listEndPattern_=this.listSymbols_.UNIT_END[J]}};
tMs.prototype.format=function(J){return IG5(this,J)};
var IG5=function(J,c){var m=c.length;switch(m){case 0:return"";case 1:return String(c[0]);case 2:return J.listTwoPattern_.replace("{0}",String(c[0])).replace("{1}",String(c[1]))}for(var b=J.listStartPattern_.replace("{0}",String(c[0])).replace("{1}",String(c[1])),x=2;x<m-1;++x)b=J.listMiddlePattern_.replace("{0}",b).replace("{1}",String(c[x]));return J.listEndPattern_.replace("{0}",b).replace("{1}",String(c[m-1]))},MDR=function(){var J={style:1};
this.style_=(J==null?void 0:J.style)||0;this.durationSymbols_=_.FXZ||_.BMB},KP5=function(J,c){switch(c){default:case "years":return J.durationSymbols_.YEAR;
case "months":return J.durationSymbols_.MONTH;case "weeks":return J.durationSymbols_.WEEK;case "days":return J.durationSymbols_.DAY;case "hours":return J.durationSymbols_.HOUR;case "minutes":return J.durationSymbols_.MINUTE;case "seconds":return J.durationSymbols_.SECOND}},Ce=function(J,c,m){a:{m=KP5(J,m);
switch(J.style_){case 1:if(m.LONG!=void 0){J=m.LONG;break a}case 2:if(m.NARROW!=void 0){J=m.NARROW;break a}default:J=m.SHORT;break a}J=void 0}return J?(new _.w2Z("{DURATION_VALUE,plural,"+J+"}")).format({DURATION_VALUE:c}):""};
MDR.prototype.format=function(J){var c=[],m=J.years,b=J.months,x=J.weeks,P=J.days,p=J.hours,t=J.minutes;J=J.seconds;m!=null&&c.push(Ce(this,m,"years"));b!=null&&c.push(Ce(this,b,"months"));x!=null&&c.push(Ce(this,x,"weeks"));P!=null&&c.push(Ce(this,P,"days"));p!=null&&c.push(Ce(this,p,"hours"));t!=null&&c.push(Ce(this,t,"minutes"));J!=null&&c.push(Ce(this,J,"seconds"));return(new tMs).format(c)};
var Cv1=!1,BuR=function(J){_.Jq.call(this,J.message||J.description||J.name);this.isMissing=J instanceof c6;this.isTimeout=J instanceof _.Az&&J.errorCode=="net.timeout";this.isCanceled=J instanceof _.OQ};
_.D(BuR,_.Jq);BuR.prototype.name="BiscottiError";var c6=function(){_.Jq.call(this,"Biscotti ID is missing from server")};
_.D(c6,_.Jq);c6.prototype.name="BiscottiMissingError";var mZ=null,Ck1=function(){try{var J=_.$y("yt.ads.biscotti.getId_");return J?J():XGh()}catch(c){return _.sv(c)}},Pjh,aGe=function(J){return _.J7({type:"SET_GUIDE_IS_EXPANDED",
payload:J})},kg4=function(J){return _.J7({type:"SET_ONLINE_STATUS",
payload:J})},H7R=function(J,c){return _.J7({type:"SET_TRANSCRIPTION_STATE",
payload:{high:J,low:c}})},i7F=function(J){return _.J7({type:"SET_OVERLAY_STATE",
payload:J})},nVR=0,Tp4=function(J,c,m){var b=this;
this.priority=c;this.delay=m;this.jobId=0;this.completionCallback=_.tF;this.wrappedJob=function(){J();b.completionCallback()};
this.id=++nVR};
Tp4.prototype.enqueue=function(J){this.completionCallback=J;this.jobId=_.ft.addJob(this.wrappedJob,this.priority,this.delay)};
var aZ=function(){_.j_.call(this);this.isActive=!1;this.suspendedTasks=new Set;this.scheduledTasks=new Set;this.taskIdToTask=new Map};
_.D(aZ,_.j_);aZ.prototype.addJob=function(J,c,m){J=new Tp4(J,c,m);this.taskIdToTask.set(J.id,J);this.isActive?wde(this,J):this.suspendedTasks.add(J);return J.id};
var wde=function(J,c){J.scheduledTasks.add(c);c.enqueue(function(){J.scheduledTasks.delete(c)})};
aZ.prototype.cancelJob=function(J){(J=this.taskIdToTask.get(J))&&(this.scheduledTasks.delete(J)?_.ft.cancelJob(J.jobId):this.suspendedTasks.delete(J))};
aZ.prototype.pause=function(){var J=this;this.isActive=!1;this.scheduledTasks.forEach(function(c){_.ft.cancelJob(c.jobId);J.suspendedTasks.add(c)});
this.scheduledTasks.clear()};
aZ.prototype.start=function(){var J=this;this.isActive=!0;this.suspendedTasks.forEach(function(c){wde(J,c)});
this.suspendedTasks.clear()};
aZ.prototype.reset=function(){this.scheduledTasks.forEach(function(J){_.ft.cancelJob(J.jobId)});
this.scheduledTasks.clear();this.suspendedTasks.clear();this.taskIdToTask.clear()};
var ke=function(J,c){this.JSC$10935_networkService_=J;this.pageRequestPromise=c};
ke.prototype.fetchData=function(J){rdR(this,this.JSC$10935_networkService_.fetchData(J))};
ke.prototype.postData=function(J,c){rdR(this,this.JSC$10935_networkService_.postData(J,c))};
ke.prototype.requestDataForServiceEndpoint=function(J,c){rdR(this,this.JSC$10935_networkService_.requestDataForServiceEndpoint(J,c))};
var rdR=function(J,c){c.then(J.pageRequestPromise.onSuccess,J.pageRequestPromise.onFailure,J.pageRequestPromise)};
ke.prototype.cancel=function(){this.pageRequestPromise.cancel()};
var Ho=function(J){this.buildNetworkRequest_=J;this.pendingRequests_=new Set};
Ho.prototype.reset=function(){this.pendingRequests_.forEach(function(J){J.cancel()});
this.pendingRequests_.clear()};
Ho.prototype.fetchData=function(J){var c=sAe(this);c.fetchData(J);return c.pageRequestPromise};
Ho.prototype.postData=function(J,c){var m=sAe(this);m.postData(J,c);return m.pageRequestPromise};
Ho.prototype.requestDataForServiceEndpoint=function(J,c){var m=sAe(this);m.requestDataForServiceEndpoint(J,c);return m.pageRequestPromise};
var sAe=function(J){var c=J.buildNetworkRequest_();J.pendingRequests_.add(c);var m=function(){J.pendingRequests_.delete(c)};
c.pageRequestPromise.then(m,m);return c},LPu=function(J){var c=new aZ;
this.JSC$10942_networkService_=J;this.JSC$10942_taskManager_=c;this.JSC$10942_networkManager_=new Ho(this.networkRequestFactory_.bind(this))};
_.V=LPu.prototype;_.V.networkRequestFactory_=function(){return new ke(this.JSC$10942_networkService_,new _.eB(this.JSC$10942_taskManager_))};
_.V.reset=function(){this.JSC$10942_taskManager_.reset();this.JSC$10942_networkManager_.reset()};
_.V.start=function(){this.JSC$10942_taskManager_.start()};
_.V.pause=function(){this.JSC$10942_taskManager_.pause()};
_.V.getTaskManager=function(){return this.JSC$10942_taskManager_};
_.V.getNetworkManager=function(){return this.JSC$10942_networkManager_};
var KGr=null,koR=[],bb=0,Vz=0,xD=null,Dlh=!1,P6=null,igr=void 0,WPF=function(){var J=(0,_.SF_)();J&&ive(J,J.mechanism.__iterator__(!0))},pL=function(J){this.token=J};
pL.getInstance=function(){var J;return _.N(function(c){if(c.nextAddress==1)return _.K(c,_.Fb(),2);J=c.yieldResult;if(!J)return c.return();pL.instance||(pL.instance=new pL(J));return c.return(pL.instance)})};
var LGe=function(J){var c;return _.N(function(m){if(m.nextAddress==1)return _.K(m,w7R(J.token),2);c=m.yieldResult;return m.return(c.clear("resource-manifest-assets"))})},Mq=function(J){this.token=J};
Mq.getInstance=function(){var J;return _.N(function(c){if(c.nextAddress==1)return _.K(c,_.Fb(),2);J=c.yieldResult;if(!J)return c.return();Mq.instance||(Mq.instance=new Mq(J));return c.return(Mq.instance)})};
var rL5=function(J){var c;return _.N(function(m){if(m.nextAddress==1)return _.K(m,w7R(J.token),2);c=m.yieldResult;return _.K(m,c.clear("auth"),0)})},Rku=!1,zZR=function(J){_.Jq.call(this,J)};
_.D(zZR,_.JbC);var RFo=function(){var J=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return J?parseInt(J[1],10):0},uz1=function(J){return!!document.currentScript&&(document.currentScript.src.indexOf("?"+J)!=-1||document.currentScript.src.indexOf("&"+J)!=-1)},fGS=function(){return typeof window.__onGCastApiAvailable=="function"?window.__onGCastApiAvailable:null},Fe1=function(J){J.length?Yvr(J.shift(),function(){Fe1(J)}):Q3e()},y5r=function(J){return"chrome-extension://"+J+"/cast_sender.js"},Yvr=function(J,
c,m){var b=document.createElement("script");
b.onerror=c;m&&(b.onload=m);_.$h(b,_.ud(J));(document.head||document.documentElement).appendChild(b)},Xdp=function(){var J=RFo(),c=[];
if(J>1){var m=J-1;c.push("//www.gstatic.com/eureka/clank/"+J+"/cast_sender.js");c.push("//www.gstatic.com/eureka/clank/"+m+"/cast_sender.js")}return c},Q3e=function(){var J=fGS();
J&&J(!1,"No cast extension found")},j3R=function(){if(Z7h){var J=2,c=fGS(),m=function(){J--;
J==0&&c&&c(!0)};
window.__onGCastApiAvailable=m;Yvr("//www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js",Q3e,m)}},oAr=function(){j3R();
var J=Xdp();J.push("//www.gstatic.com/eureka/clank/cast_sender.js");Fe1(J)},eFh=function(){j3R();
var J=Xdp();J.push.apply(J,_.L6(l1p.map(y5r)));J.push("//www.gstatic.com/eureka/clank/cast_sender.js");Fe1(J)},Z7h=uz1("loadCastFramework")||uz1("loadCastApplicationFramework"),l1p=["pkedcjkdefgpdelpbcmbmeomcjbeemfm",
"enhhojjnijigcajfphajepfemndkmdlo"];var qvF=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(qvF,_.d6);var UlF=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(UlF,_.d6);var Svu=function(){var J=new UlF;return _.Yd(J,1,3)};var i2=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(i2,_.d6);var G7h=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(G7h,_.d6);var hZR=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(hZR,_.d6);hZR.prototype.getToken=function(){return _.L0(this,1)};
hZR.prototype.setToken=function(J){return _.eQ(this,1,J)};
var dXo=function(J){return _.TR(J,3,_.E5,_.ca())},$Xe=function(J){return _.TR(J,6,_.E5,_.ca())};var ne=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(ne,_.d6);ne.prototype.getToken=function(){return _.JU(this,hZR,2)};
ne.prototype.setToken=function(J){return _.m_(this,2,J)};
ne.prototype.getName=function(){return _.L0(this,6)};
var dlu=_.JG(ne);var $lR=function(J,c,m){this.requestMessage=J;this.methodDescriptor=c;this.metadata=m};
$lR.prototype.getMetadata=function(){return this.metadata};var Ggo=function(J,c){c=c===void 0?{}:c;this.responseMessage=J;this.metadata=c;this.status=null};
Ggo.prototype.getMetadata=function(){return this.metadata};
Ggo.prototype.getStatus=function(){return this.status};var Tl=function(J,c,m,b,x){this.name=J;this.methodType="unary";this.requestType=c;this.responseType=m;this.requestSerializeFn=b;this.responseDeserializeFn=x},EV4=function(J,c,m){m=m===void 0?{}:m;
return new $lR(c,J,m)};
Tl.prototype.getName=function(){return this.name};var wj=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(wj,_.d6);wj.prototype.setHeader=function(J){return _.m_(this,1,J)};
wj.prototype.hasHeader=function(){return _.tK(this,i2,1)};var vVp=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(vVp,_.d6);var O7e=new Tl("/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",wj,vVp,function(J){return J.serialize()},_.JG(vVp));var rj=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(rj,_.d6);rj.prototype.setHeader=function(J){return _.m_(this,1,J)};
rj.prototype.hasHeader=function(){return _.tK(this,i2,1)};var Adh=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(Adh,_.d6);var RZs=new Tl("/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",rj,Adh,function(J){return J.serialize()},_.JG(Adh));var sj=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(sj,_.d6);sj.prototype.setHeader=function(J){return _.m_(this,1,J)};
sj.prototype.hasHeader=function(){return _.tK(this,i2,1)};var oVp=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(oVp,_.d6);oVp.prototype.getLink=function(){return _.JU(this,ne,1)};var QAh=new Tl("/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",sj,oVp,function(J){return J.serialize()},_.JG(oVp));var Le=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(Le,_.d6);Le.prototype.setHeader=function(J){return _.m_(this,1,J)};
Le.prototype.hasHeader=function(){return _.tK(this,i2,1)};var eZr=new Tl("/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",Le,ne,function(J){return J.serialize()},dlu);var jAS=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(jAS,_.d6);var FPu=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(FPu,_.d6);FPu.prototype.getUrl=function(){return _.L0(this,2)};
FPu.prototype.setUrl=function(J){return _.eQ(this,2,J)};var lG5=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(lG5,_.d6);var yd4=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(yd4,_.d6);var Bpr=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(Bpr,_.d6);var lCh=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(lCh,_.d6);var FLh=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(FLh,_.d6);var gVs=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(gVs,_.d6);var b4r=_.JG(gVs);var JPo=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(JPo,_.d6);var D8=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(D8,_.d6);D8.prototype.setHeader=function(J){return _.m_(this,1,J)};
D8.prototype.hasHeader=function(){return _.tK(this,i2,1)};
D8.prototype.getCompletionUrl=function(){return _.L0(this,6)};
D8.prototype.getDeviceId=function(){return _.L0(this,11)};var cP4=new Tl("/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",D8,gVs,function(J){return J.serialize()},b4r);var md5=new Set(["SAPISIDHASH","APISIDHASH"]);var bqh=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(bqh,_.d6);bqh.prototype.getMessage=function(){return _.L0(this,2)};
var xds=_.JG(bqh);var Wo=function(J,c){this.xhrNodeReadableStream_=J.nodeReadableStream;this.grpcResponseDeserializeFn_=c;this.JSC$17026_xhr_=J.xhr;this.onDataCallbacks_=[];this.onMetadataCallbacks_=[];this.onStatusCallbacks_=[];this.onEndCallbacks_=[];this.JSC$17026_onErrorCallbacks_=[];this.xhrNodeReadableStream_&&VpF(this)},ILR=function(J,c){var m=new PBS;
_.wp(J.JSC$17026_xhr_,"complete",function(){if(J.JSC$17026_xhr_.isSuccess()){var b=J.JSC$17026_xhr_.getResponseText();var x;if(x=c)x=J.JSC$17026_xhr_,x.JSC$7807_xhr_&&x.isComplete()?(x=x.JSC$7807_xhr_.getResponseHeader("Content-Type"),x=x===null?void 0:x):x=void 0,x=x==="text/plain";if(x){if(!atob)throw Error("Ij");b=atob(b)}try{var P=J.grpcResponseDeserializeFn_(b)}catch(t){zl(J,LLp(new _.nI(13,"Error when deserializing response data; error: "+t+(", response: "+b)),m));return}b=_.ty(J.JSC$17026_xhr_.getStatus());
MpF(J,pPR(J));b==0?Ns4(J,P):zl(J,LLp(new _.nI(b,"Xhr succeeded but the status code is not 200"),m))}else{b=J.JSC$17026_xhr_.getResponseText();P=pPR(J);if(b){var p=tp4(J,b);b=p.code;x=p.details;p=p.metadata}else b=2,x="Rpc failed due to xhr error. uri: "+String(J.JSC$17026_xhr_.JSC$7807_lastUri_)+", error code: "+J.JSC$17026_xhr_.JSC$7807_lastErrorCode_+", error: "+J.JSC$17026_xhr_.getLastError(),p=P;MpF(J,P);zl(J,LLp(new _.nI(b,x,p),m))}})},VpF=function(J){J.xhrNodeReadableStream_.on("data",function(c){if("1"in
c){var m=c["1"];
try{var b=J.grpcResponseDeserializeFn_(m)}catch(x){zl(J,new _.nI(13,"Error when deserializing response data; error: "+x+(", response: "+m)))}b&&Ns4(J,b)}if("2"in c)for(c=tp4(J,c["2"]),m=0;m<J.onStatusCallbacks_.length;m++)J.onStatusCallbacks_[m](c)});
J.xhrNodeReadableStream_.on("end",function(){MpF(J,pPR(J));for(var c=0;c<J.onEndCallbacks_.length;c++)J.onEndCallbacks_[c]()});
J.xhrNodeReadableStream_.on("error",function(){if(J.JSC$17026_onErrorCallbacks_.length!=0){var c=J.JSC$17026_xhr_.JSC$7807_lastErrorCode_;c!==0||J.JSC$17026_xhr_.isSuccess()||(c=6);var m=-1;switch(c){case 0:var b=2;break;case 7:b=10;break;case 8:b=4;break;case 6:m=J.JSC$17026_xhr_.getStatus();b=_.ty(m);break;default:b=14}MpF(J,pPR(J));c=_.d0z(c)+", error: "+J.JSC$17026_xhr_.getLastError();m!=-1&&(c+=", http status code: "+m);zl(J,new _.nI(b,c))}})},pPR=function(J){var c={},m=Cqs(J.JSC$17026_xhr_);
Object.keys(m).forEach(function(b){c[b]=m[b]});
return c},tp4=function(J,c){var m=2,b={};
try{var x=xds(c);m=_.m5(x,1);var P=x.getMessage();_.Jy(x,Jd4,3,_.ca()).length&&(b["grpc-web-status-details-bin"]=c)}catch(p){J.JSC$17026_xhr_&&J.JSC$17026_xhr_.getStatus()===404?(m=5,P="Not Found: "+String(J.JSC$17026_xhr_.JSC$7807_lastUri_)):(m=14,P="Unable to parse RpcStatus: "+p)}return{code:m,details:P,metadata:b}};
Wo.prototype.on=function(J,c){J=="data"?this.onDataCallbacks_.push(c):J=="metadata"?this.onMetadataCallbacks_.push(c):J=="status"?this.onStatusCallbacks_.push(c):J=="end"?this.onEndCallbacks_.push(c):J=="error"&&this.JSC$17026_onErrorCallbacks_.push(c);return this};
var u2=function(J,c){c=J.indexOf(c);c>-1&&J.splice(c,1)};
Wo.prototype.removeListener=function(J,c){J=="data"?u2(this.onDataCallbacks_,c):J=="metadata"?u2(this.onMetadataCallbacks_,c):J=="status"?u2(this.onStatusCallbacks_,c):J=="end"?u2(this.onEndCallbacks_,c):J=="error"&&u2(this.JSC$17026_onErrorCallbacks_,c);return this};
Wo.prototype.cancel=function(){this.JSC$17026_xhr_.abort()};
var Ns4=function(J,c){for(var m=0;m<J.onDataCallbacks_.length;m++)J.onDataCallbacks_[m](c)},MpF=function(J,c){for(var m=0;m<J.onMetadataCallbacks_.length;m++)J.onMetadataCallbacks_[m](c)},zl=function(J,c){for(var m=0;m<J.JSC$17026_onErrorCallbacks_.length;m++)J.JSC$17026_onErrorCallbacks_[m](c)};
Wo.prototype.cancel=Wo.prototype.cancel;Wo.prototype.removeListener=Wo.prototype.removeListener;Wo.prototype.on=Wo.prototype.on;var PBS=function(){var J=Error.call(this);this.message=J.message;"stack"in J&&(this.stack=J.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="AsyncStack"};
_.D(PBS,Error);var fe=function(J){this.JSC$17035_worker_=J.worker||null;this.JSC$17035_streamBinaryChunks_=J.streamBinaryChunks||!1;this.JSC$17035_credentialsMode_=void 0};
_.yv(fe,_.F5q);fe.prototype.createInstance=function(){var J=new Ye(this.JSC$17035_worker_,this.JSC$17035_streamBinaryChunks_);this.JSC$17035_credentialsMode_&&J.setCredentialsMode(this.JSC$17035_credentialsMode_);return J};
fe.prototype.setCredentialsMode=function(J){this.JSC$17035_credentialsMode_=J};
var Ye=function(J,c){_.KI.call(this);this.JSC$17039_worker_=J;this.JSC$17039_streamBinaryChunks_=c;this.JSC$17039_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$17039_responseHeaders_=null;this.JSC$17039_method_="GET";this.JSC$17039_url_="";this.inProgress_=!1;this.JSC$17039_textDecoder_=this.currentReader_=this.fetchResponse_=null};
_.yv(Ye,_.KI);Ye.prototype.open=function(J,c){if(this.readyState!=0)throw this.abort(),Error("Jj");this.JSC$17039_method_=J;this.JSC$17039_url_=c;this.readyState=1;X5(this)};
Ye.prototype.send=function(J){if(this.readyState!=1)throw this.abort(),Error("Kj");this.inProgress_=!0;var c={headers:this.requestHeaders_,method:this.JSC$17039_method_,credentials:this.JSC$17039_credentialsMode_,cache:void 0};J&&(c.body=J);(this.JSC$17039_worker_||_.mo).fetch(new Request(this.JSC$17039_url_,c)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
Ye.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,Z8(this));this.readyState=0};
Ye.prototype.handleResponse_=function(J){if(this.inProgress_&&(this.fetchResponse_=J,this.JSC$17039_responseHeaders_||(this.status=this.fetchResponse_.status,this.statusText=this.fetchResponse_.statusText,this.JSC$17039_responseHeaders_=J.headers,this.readyState=2,X5(this)),this.inProgress_&&(this.readyState=3,X5(this),this.inProgress_)))if(this.responseType==="arraybuffer")J.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if(typeof _.mo.ReadableStream!==
"undefined"&&"body"in J){this.currentReader_=J.body.getReader();if(this.JSC$17039_streamBinaryChunks_){if(this.responseType)throw Error("Lj");this.response=[]}else this.response=this.responseText="",this.JSC$17039_textDecoder_=new TextDecoder;K$R(this)}else J.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};
var K$R=function(J){J.currentReader_.read().then(J.handleDataFromStream_.bind(J)).catch(J.handleSendFailure_.bind(J))};
Ye.prototype.handleDataFromStream_=function(J){if(this.inProgress_){if(this.JSC$17039_streamBinaryChunks_&&J.value)this.response.push(J.value);else if(!this.JSC$17039_streamBinaryChunks_){var c=J.value?J.value:new Uint8Array(0);if(c=this.JSC$17039_textDecoder_.decode(c,{stream:!J.done}))this.response=this.responseText+=c}J.done?Z8(this):X5(this);this.readyState==3&&K$R(this)}};
Ye.prototype.handleResponseText_=function(J){this.inProgress_&&(this.response=this.responseText=J,Z8(this))};
Ye.prototype.handleResponseArrayBuffer_=function(J){this.inProgress_&&(this.response=J,Z8(this))};
Ye.prototype.handleSendFailure_=function(){this.inProgress_&&Z8(this)};
var Z8=function(J){J.readyState=4;J.fetchResponse_=null;J.currentReader_=null;J.JSC$17039_textDecoder_=null;X5(J)};
Ye.prototype.setRequestHeader=function(J,c){this.requestHeaders_.append(J,c)};
Ye.prototype.getResponseHeader=function(J){return this.JSC$17039_responseHeaders_?this.JSC$17039_responseHeaders_.get(J.toLowerCase())||"":""};
Ye.prototype.getAllResponseHeaders=function(){if(!this.JSC$17039_responseHeaders_)return"";for(var J=[],c=this.JSC$17039_responseHeaders_.entries(),m=c.next();!m.done;)m=m.value,J.push(m[0]+": "+m[1]),m=c.next();return J.join("\r\n")};
Ye.prototype.setCredentialsMode=function(J){this.JSC$17039_credentialsMode_=J};
var X5=function(J){J.onreadystatechange&&J.onreadystatechange.call(J)};
Object.defineProperty(Ye.prototype,"withCredentials",{get:function(){return this.JSC$17039_credentialsMode_==="include"},
set:function(J){this.setCredentialsMode(J?"include":"same-origin")}});var CBS=function(J){var c="";_.Lw.forEach(J,function(m,b){c+=b;c+=":";c+=m;c+="\r\n"});
return c},aLS=function(J,c,m){if(_.Lw.isEmpty(m))return J;
m=CBS(m);if(typeof J==="string")return _.UK(J,_.Eb(c),m);_.Ra(J,c,m);return J};var kHR=function(){this.isInputValid_=!0;this.JSC$17045_streamPos_=0;this.leftoverInput_=""};
kHR.prototype.isInputValid=function(){return this.isInputValid_};var Io=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.JSC$17048_streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};
Io.prototype.isInputValid=function(){return this.state_!=3};
var q5=function(J,c,m,b){J.state_=3;J.errorMessage_="The stream is broken @"+J.JSC$17048_streamPos_+"/"+m+". Error: "+b+". With input:\n"+c;throw Error(J.errorMessage_);};
Io.prototype.acceptsBinaryInput=function(){return!0};
Io.prototype.parse=function(J){function c(I){I&128&&q5(P,p,t,"invalid tag");(I&7)!=2&&q5(P,p,t,"invalid wire type");P.tag_=I>>>3;P.tag_!=1&&P.tag_!=2&&P.tag_!=15&&q5(P,p,t,"unexpected tag");P.state_=1;P.length_=0;P.countLengthBytes_=0}
function m(I){P.countLengthBytes_++;P.countLengthBytes_==5&&I&240&&q5(P,p,t,"message length too long");P.length_|=(I&127)<<(P.countLengthBytes_-1)*7;I&128||(P.state_=2,P.countMessageBytes_=0,typeof Uint8Array!=="undefined"?P.messageBuffer_=new Uint8Array(P.length_):P.messageBuffer_=Array(P.length_),P.length_==0&&x())}
function b(I){P.messageBuffer_[P.countMessageBytes_++]=I;P.countMessageBytes_==P.length_&&x()}
function x(){if(P.tag_<15){var I={};I[P.tag_]=P.messageBuffer_;P.result_.push(I)}P.state_=0}
for(var P=this,p=J instanceof Array?J:new Uint8Array(J),t=0;t<p.length;){switch(P.state_){case 3:q5(P,p,t,"stream already broken");break;case 0:c(p[t]);break;case 1:m(p[t]);break;case 2:b(p[t]);break;default:throw Error("Nj`"+P.state_);}P.JSC$17048_streamPos_++;t++}J=P.result_;P.result_=[];return J.length>0?J:null};var WLR=function(){this.errorMessage_=null;this.JSC$17051_streamPos_=0;this.base64Decoder_=new kHR;this.pbParser_=new Io};
WLR.prototype.isInputValid=function(){return this.errorMessage_===null};
var Hqs=function(J,c,m){J.errorMessage_="The stream is broken @"+J.JSC$17051_streamPos_+". Error: "+m+". With input:\n"+c;throw Error(J.errorMessage_);};
WLR.prototype.acceptsBinaryInput=function(){return!1};
WLR.prototype.parse=function(J){this.errorMessage_!==null&&Hqs(this,J,"stream already broken");var c=null;try{var m=this.base64Decoder_;if(!m.isInputValid_)throw m.isInputValid_=!1,Error("Mj`"+m.JSC$17045_streamPos_+"`stream already broken`"+J);m.leftoverInput_+=J;var b=Math.floor(m.leftoverInput_.length/4);if(b==0)var x=null;else{try{var P=_.lzD(m.leftoverInput_.slice(0,b*4))}catch(I){var p=m.leftoverInput_,t=I.message;m.isInputValid_=!1;throw Error("Mj`"+m.JSC$17045_streamPos_+"`"+t+"`"+p);}m.JSC$17045_streamPos_+=
b*4;m.leftoverInput_=m.leftoverInput_.slice(b*4);x=P}c=x===null?null:this.pbParser_.parse(x)}catch(I){Hqs(this,J,I.message)}this.JSC$17051_streamPos_+=J.length;return c};var DXp=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.JSC$17054_streamPos_=0;this.result_=[];this.statusParsed_=!1};
DXp.prototype.isInputValid=function(){return this.errorMessage_===null};
DXp.prototype.acceptsBinaryInput=function(){return!1};
DXp.prototype.parse=function(J){function c(I){P.state_=6;P.errorMessage_="The stream is broken @"+P.JSC$17054_streamPos_+"/"+p+". Error: "+I+". With input:\n";throw Error(P.errorMessage_);}
function m(){P.jsonStreamParser_=new _.le({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}
function b(I){if(I)for(var a=0;a<I.length;a++){var k={};k[1]=I[a];P.result_.push(k)}}
function x(I){if(I){(P.statusParsed_||I.length>1)&&c("extra status: "+I);P.statusParsed_=!0;var a={};a[2]=I[0];P.result_.push(a)}}
for(var P=this,p=0;p<J.length;){var t;if(t=P.state_!==2){a:{for(;p<J.length;){if(!_.F2(J[p])){t=!0;break a}p++;P.JSC$17054_streamPos_++}t=!1}t=!t}if(t)return null;switch(P.state_){case 6:c("stream already broken");break;case 0:J[p]==="["?(P.state_=1,p++,P.JSC$17054_streamPos_++):c("unexpected input token");break;case 1:J[p]==="["?(P.state_=2,m()):J[p]===","||J.slice(p,p+5)=="null,"?P.state_=3:J[p]==="]"?(P.state_=5,p++,P.JSC$17054_streamPos_++):c("unexpected input token");break;case 2:t=P.jsonStreamParser_.parse(J.substring(p));
b(t);P.jsonStreamParser_.done()?(P.state_=3,t=P.jsonStreamParser_.JSC$9390_buffer_,P.JSC$17054_streamPos_+=J.length-p-t.length,J=t,p=0):(P.JSC$17054_streamPos_+=J.length-p,p=J.length);break;case 3:J[p]===","||J.slice(p,p+5)=="null,"?(P.state_=4,m(),P.jsonStreamParser_.parse("["),p+=J[p]===","?1:5,P.JSC$17054_streamPos_++):J[p]==="]"&&(P.state_=5,p++,P.JSC$17054_streamPos_++);break;case 4:t=P.jsonStreamParser_.parse(J.substring(p));x(t);P.jsonStreamParser_.done()?(P.state_=5,t=P.jsonStreamParser_.JSC$9390_buffer_,
P.JSC$17054_streamPos_+=J.length-p-t.length,J=t,p=0):(P.JSC$17054_streamPos_+=J.length-p,p=J.length);break;case 5:c("extra input after stream end")}}return P.result_.length>0?(J=P.result_,P.result_=[],J):null};var iqr=function(J){this.JSC$17057_xhr_=J;this.JSC$17057_parser_=null;this.status_=this.JSC$17057_pos_=0;this.hasStreamingResponseData_=!1;this.dataHandler_=this.statusHandler_=this.JSC$17057_textDecoder_=null;this.JSC$17057_eventHandler_=new _.J0(this);this.JSC$17057_eventHandler_.listen(this.JSC$17057_xhr_,"readystatechange",this.JSC$17059_readyStateChangeHandler_)},Uj=function(J,c){J.status_!=c&&(J.status_=c,J.statusHandler_&&J.statusHandler_())},Sl=function(J){J.JSC$17057_eventHandler_.removeAll();
if(J.JSC$17057_xhr_){var c=J.JSC$17057_xhr_;J.JSC$17057_xhr_=null;c.abort();c.dispose()}};
iqr.prototype.getStatus=function(){return this.status_};
iqr.prototype.JSC$17059_readyStateChangeHandler_=function(J){J=J.target;try{if(J==this.JSC$17057_xhr_)a:{var c=_.rb(this.JSC$17057_xhr_),m=this.JSC$17057_xhr_.JSC$7807_lastErrorCode_,b=this.JSC$17057_xhr_.getStatus(),x=this.JSC$17057_xhr_.getResponseText();J=[];if(this.JSC$17057_xhr_.getResponse()instanceof Array){var P=this.JSC$17057_xhr_.getResponse();P.length>0&&P[0]instanceof Uint8Array&&(this.hasStreamingResponseData_=!0,J=P)}if(!(c<3||c==3&&!x&&J.length==0))if(b=b==200||b==206,c==4&&(m==8?Uj(this,
7):m==7?Uj(this,8):b||Uj(this,3)),this.JSC$17057_parser_||(this.JSC$17057_parser_=z2o(this.JSC$17057_xhr_),this.JSC$17057_parser_==null&&Uj(this,5)),this.status_>2)Sl(this);else{if(J.length>this.JSC$17057_pos_){var p=J.length;m=[];try{if(this.JSC$17057_parser_.acceptsBinaryInput())for(var t=0;t<p;t++){var I=this.JSC$17057_parser_.parse(Array.from(J[t]));I&&(m=m.concat(I))}else{I="";if(!this.JSC$17057_textDecoder_){if(typeof TextDecoder==="undefined")throw Error("Oj");this.JSC$17057_textDecoder_=new TextDecoder}for(t=
0;t<p;t++)I+=this.JSC$17057_textDecoder_.decode(J[t],{stream:c==4&&t==p-1});m=this.JSC$17057_parser_.parse(I)}J.splice(0,p);m&&this.dataHandler_(m)}catch(k){Uj(this,5);Sl(this);break a}}else if(x.length>this.JSC$17057_pos_){t=x.slice(this.JSC$17057_pos_);this.JSC$17057_pos_=x.length;try{var a=this.JSC$17057_parser_.parse(t);a!=null&&this.dataHandler_&&this.dataHandler_(a)}catch(k){Uj(this,5);Sl(this);break a}}c==4?(x.length!=0||this.hasStreamingResponseData_?Uj(this,2):Uj(this,4),Sl(this)):Uj(this,
1)}}}catch(k){Uj(this,6),Sl(this)}};var nxR=function(J){J=this.xhrReader_=J;var c=(0,_.Wa)(this.onData_,this);J.dataHandler_=c;J=this.xhrReader_;c=(0,_.Wa)(this.onStatusChange_,this);J.statusHandler_=c;this.JSC$17061_callbackMap_={};this.callbackOnceMap_={}};
_.V=nxR.prototype;_.V.on=function(J,c){var m=this.JSC$17061_callbackMap_[J];m||(m=[],this.JSC$17061_callbackMap_[J]=m);m.push(c);return this};
_.V.addListener=function(J,c){this.on(J,c);return this};
_.V.removeListener=function(J,c){var m=this.JSC$17061_callbackMap_[J];m&&_.j2(m,c);(J=this.callbackOnceMap_[J])&&_.j2(J,c);return this};
_.V.once=function(J,c){var m=this.callbackOnceMap_[J];m||(m=[],this.callbackOnceMap_[J]=m);m.push(c);return this};
_.V.onData_=function(J){var c=this.JSC$17061_callbackMap_.data;c&&Tsr(J,c);(c=this.callbackOnceMap_.data)&&Tsr(J,c);this.callbackOnceMap_.data=[]};
var Tsr=function(J,c){for(var m={},b=0;b<J.length;m={message$jscomp$969:void 0},b++)m.message$jscomp$969=J[b],c.forEach(function(x){return function(P){try{P(x.message$jscomp$969)}catch(p){}}}(m))};
nxR.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:wPe(this,"readable");break;case 5:case 6:case 4:case 7:case 3:wPe(this,"error");break;case 8:wPe(this,"close");break;case 2:wPe(this,"end")}};
var wPe=function(J,c){var m=J.JSC$17061_callbackMap_[c];m&&m.forEach(function(b){try{b()}catch(x){}});
(m=J.callbackOnceMap_[c])&&m.forEach(function(b){b()});
J.callbackOnceMap_[c]=[]};var rPs=function(){var J={format:"jspb"};J=J===void 0?{}:J;this.suppressCorsPreflight=J.suppressCorsPreflight||_.$y("suppressCorsPreflight",J)||!1;this.withCredentials=J.withCredentials||_.$y("withCredentials",J)||!1;this.streamInterceptors=J.streamInterceptors||[];this.unaryInterceptors=J.unaryInterceptors||[];this.workerScope=J.workerScope;this.chunkedServerStreaming=J.useFetchDownloadStreams||!1},DdS=function(J,c,m,b,x,P){P=P===void 0?{}:P;
var p=c.substring(0,c.length-x.name.length),t,I=(t=P)==null?void 0:t.signal;return sOo(function(a){return new Promise(function(k,H){if(I==null?0:I.aborted){var T=new _.nI(1,"Aborted");T.cause=I.reason;H(T)}else{var r={},W=L$p(J,a,p);W.on("error",function(Y){return void H(Y)});
W.on("metadata",function(Y){r=Y});
W.on("data",function(Y){var Z=r;Z=Z===void 0?{}:Z;k(new Ggo(Y,Z))});
I&&I.addEventListener("abort",function(){W.cancel();var Y=new _.nI(1,"Aborted");Y.cause=I.reason;H(Y)})}})},J.unaryInterceptors).call(J,EV4(x,m,b)).then(function(a){return a.responseMessage})},hn=function(J,c,m,b,x,P){P=P===void 0?{}:P;
return DdS(J,c,m,b,x,P)};
rPs.prototype.serverStreaming=function(J,c,m,b){var x=this,P=J.substring(0,J.length-b.name.length);return W$R(function(p){var t=p.methodDescriptor,I=p.getMetadata(),a=zpf(x,!1);I=uG4(x,I,a,P+t.getName());var k=fLo(a,t.responseDeserializeFn,!0);p=t.requestSerializeFn(p.requestMessage);a.send(I,"POST",p);return k},this.streamInterceptors).call(this,EV4(b,c,m))};
var L$p=function(J,c,m){var b=c.methodDescriptor,x=c.getMetadata(),P=zpf(J,!0);J=uG4(J,x,P,m+b.getName());m=fLo(P,b.responseDeserializeFn,!1);ILR(m,x["X-Goog-Encode-Response-If-Executable"]==="base64");c=b.requestSerializeFn(c.requestMessage);P.send(J,"POST",c);return m},zpf=function(J,c){c=J.chunkedServerStreaming&&!c;
return J.workerScope||c?new _.wb(new fe({worker:J.workerScope,streamBinaryChunks:c})):new _.wb},uG4=function(J,c,m,b){c["Content-Type"]="application/json+protobuf";
c["X-User-Agent"]="grpc-web-javascript/0.1";var x=c.Authorization;if(x&&md5.has(x.split(" ")[0])||J.withCredentials)m.JSC$7807_withCredentials_=!0;if(J.suppressCorsPreflight)b=aLS(b,"$httpHeaders",c);else for(J=_.M(Object.keys(c)),x=J.next();!x.done;x=J.next())x=x.value,m.headers.set(x,c[x]);return b},fLo=function(J,c,m){if(m){m=new iqr(J);
var b=new nxR(m)}return new Wo({xhr:J,nodeReadableStream:b},c)},W$R=function(J,c){return c.reduce(function(m,b){return function(x){return b.intercept(x,m)}},J)},sOo=function(J,c){return c.reduce(function(m,b){return function(x){return b.intercept(x,m)}},J)};var YiR=function(J){this.client_=new rPs;this.hostname_=J==void 0?J:J.replace(/\/+$/,"")};
_.V=YiR.prototype;_.V.JSC$17080_depositGoogleCredential=function(J,c,m){return hn(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",J,c||{},RZs,m)};
_.V.deleteLink=function(J,c,m){return hn(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",J,c||{},O7e,m)};
_.V.JSC$17080_finishOAuth=function(J,c,m){return hn(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",J,c||{},QAh,m)};
_.V.getLink=function(J,c,m){return hn(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",J,c||{},eZr,m)};
_.V.startLinkingSession=function(J,c,m){return hn(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",J,c||{},cP4,m)};var XPf=[0,orR,1,juS,[0,_.ve,[0,QuR,-1]],[0,e85],[0,Fqo,-1]];var ZqS=function(){this.storage=new Map},UdF=function(J,c,m,b,x){if(!J.storage.has(c))return null;
J=_.M(J.storage.get(c));for(c=J.next();!c.done;c=J.next())if(c=c.value,!x||c.linkName===x)if(m&&c.scopes&&qi1(c.scopes,m)||b&&c.capabilities&&qi1(c.capabilities,b))return c;return null},Sis=function(J,c,m){if(!m)J.storage.delete(c);
else if(J.storage.has(c)){var b=J.storage.get(c).filter(function(x){return x.linkName!==m});
b.length>0?J.storage.set(c,b):J.storage.delete(c)}},qi1=function(J,c){c=_.M(c);
for(var m=c.next();!m.done;m=c.next())if(!J.has(m.value))return!1;return!0};var hpS=function(){var J=_.Ub("LINK_GAL_DOMAIN");this.alsDomain1p=_.Ub("LINK_GAL_DOMAIN");this.alsDomain3p=J;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},ddS=function(J,c){J.apiKey=c;
return J};
hpS.prototype.build=function(){var J={};if(this.supportedFlows===void 0||this.supportedFlows.size===0)throw Error("Pj");J.supportedFlows=this.supportedFlows;if(this.dataUsageNoticeConfig!==void 0){if(this.dataUsageNoticeConfig.enabledDataUsageNoticeUis.size===0)throw Error("Qj");if(!this.dataUsageNoticeConfig.uiAdapter)throw Error("Rj");J.dataUsageNoticeConfig=this.dataUsageNoticeConfig}this.galSdkEventHandler!==void 0&&(J.galSdkEventHandler=this.galSdkEventHandler);if(this.apiKey!==void 0)J.apiKey=
this.apiKey,J.alsDomain=this.alsDomain1p;else{if(this.oauthToken===void 0)throw Error("Sj");J.oauthToken=this.oauthToken;J.alsDomain=this.alsDomain3p}J.clientXd3=this.clientXd3;J.accountLinkingEntryPoint=this.accountLinkingEntryPoint;this.authUser!==void 0&&(J.authUser=this.authUser);this.bucket!==void 0&&(J.bucket=this.bucket);this.completionUrl!==void 0&&(J.completionUrl=this.completionUrl);this.interactionMode!==void 0&&(J.interactionMode=this.interactionMode);this.redirectServiceUrl!==void 0&&
(J.redirectServiceUrl=this.redirectServiceUrl);this.locale!==void 0&&(J.locale=this.locale);J.loggerType=this.loggerType;J.clientEnvironment=this.clientEnvironment;J.colorScheme=this.colorScheme;J.showCloseOption=this.showCloseOption;return J};var KL=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(KL,_.d6);var $dp=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D($dp,_.d6);var GHr=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(GHr,_.d6);var ao=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(ao,_.d6);var Exf=function(J){return _.Db(J,1)};var vx1=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(vx1,_.d6);var UXu=_.JG(vx1),CL=[1,2,3,4,5];var Yno=function(J){try{return UXu(J)}catch(c){return null}},Oq1=function(){},X4u=function(J,c){switch(_.a5(c,CL)){case 4:return(c=_.u0(c,GHr,4,CL))&&J.logStateTransition(_.Db(c,1)),!0;
case 5:return(c=_.u0(c,$dp,5,CL))&&J.logInternalEvent(_.Db(c,1)),!0}return!1},SnR=function(J){switch(J){case 0:return 0;
case 1:return 6;case 2:return 2;case 3:return 3;case 4:return 50;default:_.Pu(J)}};var u_r=function(J,c){var m=this;this.validator=J;this.messageListener=c;this.dismissCallback=function(){APp(m,{errorCode:9,errorMessage:"iFrame closed by parent window"})};
this.JSC$17109_receiveMessage=function(b){b.type==="message"&&(b=b.event_,b!==null&&(new URL(m.iframe.src)).origin===b.origin&&m.validator(b.data,b.origin)&&!m.messageListener(b.data)&&(m.JSC$17109_resolveCb!==void 0&&m.JSC$17109_resolveCb(b.data),Rph(m)))}},qnf=function(J,c,m){J.uiHandler!==void 0&&APp(J,{errorCode:7,
errorMessage:"iFrame window is already open"});return new Promise(function(b,x){J.JSC$17109_resolveCb=b;J.JSC$17109_rejectCb=x;J.iframe=document.createElement("iframe");_.Yh(J.iframe,c);J.uiHandler=m.displayContent(J.iframe,J.dismissCallback);_.wp(window,"message",J.JSC$17109_receiveMessage,!1,J)})},APp=function(J,c){J.JSC$17109_rejectCb!==void 0&&J.JSC$17109_rejectCb(c);
Rph(J)},Rph=function(J){J.uiHandler!==void 0&&J.uiHandler.hideContent();
_.Is(window,"message",J.JSC$17109_receiveMessage,!1,J);J.JSC$17109_resolveCb=void 0;J.JSC$17109_rejectCb=void 0;J.uiHandler=void 0;J.iframe=void 0};var oxs=function(J){if(J===2){var c;J=((c=window)==null?0:c.matchMedia("(prefers-color-scheme: dark)").matches)?1:0}return J},Ztu=function(J){J=oxs(J);
switch(J){case 0:return"light";case 1:return"dark";default:_.Pu(J)}};var fC5=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),QO1=function(J,c){this.JSC$17121_linkingSession=J;this.noticeConfig=c;this.displayInfoMap=new Map;var m=new Map;if(_.tK(this.JSC$17121_linkingSession,lG5,7))for(J=_.JU(this.JSC$17121_linkingSession,lG5,7),J=_.Jy(J,FPu,1,_.ca()),J=_.M(J),c=J.next();!c.done;c=J.next())c=c.value,m.set(_.Db(c,1),_.Ssr(_.JU(c,_.cpG,3)));if(m.size>
0&&this.noticeConfig!==void 0&&this.noticeConfig.enabledDataUsageNoticeUis.size>0){c=this.noticeConfig.enabledDataUsageNoticeUis;J=c.has(0)?m.get(1):void 0;c=c.has(1)?m.get(2):void 0;m=J!==void 0&&c!==void 0?m.get(3):void 0;var b=this.noticeConfig.nestedOrigins;var x=new vx1;var P=new KL;x=_.bs(x,2,CL,P);P=new vx1;var p=new KL;P=_.bs(P,3,CL,p);p=[];J!==void 0&&(this.displayInfoMap.set(1,[{trustedUrl:J,lastEvent:x,nestedOrigins:b}]),p.push({trustedUrl:J,lastEvent:x,nestedOrigins:b}));c!==void 0&&(this.displayInfoMap.set(2,
[{trustedUrl:c,lastEvent:P,nestedOrigins:b}]),p.push({trustedUrl:c,lastEvent:P,nestedOrigins:b}));m!==void 0?this.displayInfoMap.set(3,[{trustedUrl:m,lastEvent:P,nestedOrigins:b}]):this.displayInfoMap.set(3,p)}};var epu=function(J){var c=new ZqS;this.galService=J;this.galCache=c};
epu.prototype.getLink=function(J){var c=J.serviceId;var m=J.scopes;var b=J.capabilities;var x=J.linkName;var P=this,p;return _.N(function(t){if(b!==void 0&&m!==void 0)throw Error("Tj");p=UdF(P.galCache,c,m,b,x);return p!==null?t.return(p):t.return(P.galService.getLink({serviceId:c,sessionId:Math.floor(Math.random()*2147483648),scopes:m,capabilities:b,linkName:x}).then(function(I){I=E$o(I);var a=P.galCache;a.storage.has(c)?a.storage.get(c).push(I):a.storage.set(c,[I]);return I}))})};
epu.prototype.deleteLink=function(J,c,m){var b=this;return _.N(function(x){Sis(b.galCache,J,m);return x.return(b.galService.deleteLink({serviceId:J,sessionId:Math.floor(Math.random()*2147483648),accountLinkingEntryPoint:c,linkName:m}).then(function(){return!0}))})};var F$1=function(J,c){var m=this;this.validator=J;this.msgHandler=c;this.closedPopupTimeout=this.JSC$17143_rejectCb=this.JSC$17143_resolveCb=this.popup=null;this.JSC$17143_receiveMessage=function(b){if(b!==null&&(b=b.event_,b.source===m.popup)){var x=b.data;if(m.validator(x,b.origin)){var P;(P=m.msgHandler)!=null&&P.call(m,x)||(m.JSC$17143_resolveCb!==null&&m.JSC$17143_resolveCb(x),jOf(m))}}}};
F$1.prototype.open=function(J,c){var m=this;this.popup!==null&&lLs(this);return new Promise(function(b,x){m.JSC$17143_resolveCb=b;m.JSC$17143_rejectCb=x;m.popup=_.Zx(window,J,"",c);_.wp(window,"message",m.JSC$17143_receiveMessage,!1,m);yPR(m)})};
var lLs=function(J,c){J.JSC$17143_rejectCb!==null&&J.JSC$17143_rejectCb(c);jOf(J)},jOf=function(J){J.closedPopupTimeout&&(J.closedPopupTimeout.cancel(),J.closedPopupTimeout=null);
J.popup&&J.popup.close();_.Is(window,"message",J.JSC$17143_receiveMessage,!1,J);J.popup=null;J.JSC$17143_resolveCb=null;J.JSC$17143_rejectCb=null},yPR=function(J){J.closedPopupTimeout=_.ZUL(100).then(function(){J.popup?J.popup.closed?Bsr(J):yPR(J):lLs(J,{errorCode:8,
errorMessage:"Popup blocked by the browser"})},function(){})},Bsr=function(J){J.closedPopupTimeout=_.ZUL(100).then(function(){lLs(J,{errorCode:9,
errorMessage:"Popup closed by the user"})},function(){})};var gxr=new Set(["https://oauth-redirect.googleusercontent.com","https://oauth-redirect-sandbox.googleusercontent.com","https://oauth-redirect-test.googleusercontent.com"]),JT1=function(J,c,m,b,x,P,p,t,I,a){var k=this;this.serviceId=J;this.sessionId=c;this.galService=m;this.oauthDetails=b;this.galLogger=x;this.interactionMode=P;this.redirectServiceUrl=p;this.consentLanguageKeys=t;this.dynamicUrlParameters=I;this.partnerConfigMinReadTimestamp=a;this.started=!1;this.JSC$17149_dataValidator=function(H,
T){var r=gxr.has(T);r||k.redirectServiceUrl===void 0||(r=k.redirectServiceUrl===T);return r?H.sentinel==="gdi":!1}};
JT1.prototype.complete=function(){var J=this,c;return _.N(function(m){if(J.interactionMode!==1)return m.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));c=H6.getRedirectStateFromUri();return c===null?m.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"})):m.return(cTp(J,c))})};
JT1.prototype.start=function(){var J=this,c;return _.N(function(m){if(J.started)return m.return(Promise.resolve({statusCode:12,statusMessage:"OAuth flow is already active."}));if(!_.L0(J.oauthDetails,1))return m.return(Promise.resolve({statusCode:7,statusMessage:"OAuth flow does not have redirect URL"}));if(J.interactionMode===1)return H6.setLocation(_.L0(J.oauthDetails,1)),m.return(Promise.resolve({statusCode:6,statusMessage:"OAuth flow redirected to different page"}));J.started=!0;J.galLogger.logStateTransition(5);
c=H6.getPostMessagePopup(J.JSC$17149_dataValidator);return m.return(c.open(_.L0(J.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(b){J.started=!1;var x=J.galLogger;if((b==null?void 0:b.error)!==void 0)throw x.logInternalEvent(59),Error("Uj");if((b==null?void 0:b.redirect_state)===void 0)throw x.logInternalEvent(131),Error("Vj");return cTp(J,b.redirect_state)}).catch(function(b){J.started=
!1;
return b.errorCode!==void 0?{statusCode:b.errorCode,statusMessage:b.errorMessage}:{statusCode:7,statusMessage:"OAuth flow popup page did not return result"}}))})};
var cTp=function(J,c){return _.N(function(m){return m.return(mxR(J.galService,{serviceId:J.serviceId,sessionId:J.sessionId,dynamicUrlParameters:J.dynamicUrlParameters,redirectState:c,consentLanguageKeys:J.consentLanguageKeys,partnerConfigMinReadTimestamp:J.partnerConfigMinReadTimestamp}).then(function(b){var x={statusCode:1,link:E$o(b.getLink())};uks(_.K0(b,3))!==void 0&&(x.callerState=uks(_.K0(b,3)));J.galLogger.logInternalEvent(134);return x}))})},H6={getPostMessagePopup:function(J){return new F$1(J)},
getRedirectStateFromUri:function(){var J=_.O7(H6.getLocation()).fragment_;return(new _.lA(J)).get("redirect_state",null)},
getLocation:function(){return window.location.href},
setLocation:function(J){_.Rh(window.location,_.n1(J))},
createOAuthFlow:function(J,c){return new JT1(J.serviceId,J.sessionId,J.galService,c,J.galLogger,J.interactionMode,J.redirectServiceUrl,J.consentLanguageKeys,J.dynamicUrlParameters,J.partnerConfigMinReadTimestamp)}};var bKu=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(bKu,_.d6);var xxR=_.JG(bKu);var V8S=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),P$F=function(J,c,m,b,x,P,p,t,I){var a=this;this.serviceId=J;this.sessionId=c;this.galService=m;this.gsiWebFlowDetails=b;this.colorScheme=x;this.showCloseOption=P;this.galLogger=p;this.interactionMode=t;this.redirectServiceUrl=I;this.started=!1;this.JSC$17161_dataValidator=function(k,H){var T=V8S.has(H);T||a.redirectServiceUrl===
void 0||(T=a.redirectServiceUrl===H);return T?k.sentinel==="gal":!1};
this.logEventProcessor=function(k){return k.result?(k=Yno(k.result))?X4u(a.galLogger,k):!1:!1}};
P$F.prototype.complete=function(){var J=this,c,m;return _.N(function(b){if(J.interactionMode!==1)return b.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));c=ib.getRedirectStateFromUri();if(c===void 0)return J.galLogger.JSC$17101_logErrorEvent(131),b.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"}));try{return m=M85(J,c),b.return(pgF(J,m))}catch(x){return b.return(Promise.resolve({statusCode:12,statusMessage:"`e`"}))}})};
P$F.prototype.start=function(){var J=this,c;return _.N(function(m){if(J.started)return m.return(Promise.resolve({statusCode:12,statusMessage:"Streamlined flow is already active."}));if(!_.L0(J.gsiWebFlowDetails,1))return m.return(Promise.resolve({statusCode:7,statusMessage:"Streamlined flow does not have URL"}));if(J.interactionMode===1)return ib.setLocation(NiS(J,_.L0(J.gsiWebFlowDetails,1))),m.return(Promise.resolve({statusCode:6,statusMessage:"Streamlined flow redirected to different page"}));
J.started=!0;c=ib.getPostMessagePopup(J.JSC$17161_dataValidator,J.logEventProcessor);return m.return(c.open(NiS(J,_.L0(J.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(b){J.started=!1;if((b==null?void 0:b.result)===void 0)throw J.galLogger.JSC$17101_logErrorEvent(131),Error("Vj");b=M85(J,b.result);return pgF(J,b)}).catch(function(b){J.started=!1;
return b.errorCode!==void 0?{statusCode:b.errorCode,statusMessage:b.errorMessage}:{statusCode:7,statusMessage:"Streamlined flow popup page did not return result"}}))})};
var NiS=function(J,c){J=["result_channel",J.interactionMode===1?"2":"1","color_scheme",Ztu(J.colorScheme),"show_close_option",J.showCloseOption];return grF(c,J)},pgF=function(J,c){if(c!==null&&_.tK(c,ao,2)){var m,b=c==null?void 0:(m=_.JU(c,ao,2))==null?void 0:_.Db(m,2);
b&&J.galLogger.JSC$17101_logErrorEvent(SnR(b));return Exf(_.JU(c,ao,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 J.galService.getLink({serviceId:J.serviceId,sessionId:J.sessionId,consistencyKey:_.L0(c,1)}).then(function(x){x=E$o(x);J.galLogger.logInternalEvent(134);return{statusCode:1,link:x}})},M85=function(J,c){c=xxR(c);
if(!_.tK(c,ao,2)&&_.L0(c,1)==="")throw J.galLogger.JSC$17101_logErrorEvent(5),Error("Wj");return c},ib={getPostMessagePopup:function(J,c){return new F$1(J,c)},
getRedirectStateFromUri:function(){return _.Ay(_.O7(ib.getLocation()),"redirect_state")},
getLocation:function(){return window.location.href},
setLocation:function(J){_.Rh(window.location,_.n1(J))},
createStreamlinedFlow:function(J,c){return new P$F(J.serviceId,J.sessionId,J.galService,c,J.colorScheme,J.showCloseOption,J.galLogger,J.interactionMode,J.redirectServiceUrl)}};var cIR=function(){var J=_.r0t("GAL");this.storage=J?new _.r3(J):null};var dj=function(){};
_.D(dj,Oq1);dj.prototype.logStateTransition=function(){};
dj.prototype.logInternalEvent=function(){};
dj.prototype.JSC$17101_logErrorEvent=function(){};var t8s=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(t8s,_.d6);t8s.prototype.getCompletionUrl=function(){return _.L0(this,15)};var $e=function(J,c,m,b,x,P){this.serviceId=J;this.environment=c;this.sessionId=m;this.colorSchemeSelected=b;this.colorThemeDisplayed=x;this.JSC$17174_transport=P;this.currentState=1};
_.D($e,Oq1);$e.prototype.logStateTransition=function(J){var c=II4(this);c=_.c4(c,3,this.currentState);c=_.c4(c,1,J);this.currentState=J;J=KUF(1);this.dispatch(c,J)};
$e.prototype.logInternalEvent=function(J){J=KUF(J);this.dispatch(II4(this),J)};
$e.prototype.JSC$17101_logErrorEvent=function(J){var c=II4(this);c=_.c4(c,1,10);J=KUF(J);this.dispatch(c,J)};
var II4=function(J){var c=new t8s;c=_.c4(c,1,J.currentState);c=_.aw(c,7,J.serviceId);var m,b;var x=((m=window)==null?0:(b=m.location)==null?0:b.href)?_.O7(window.location.href).JSC$8042_domain_:"NO_PACKAGE_NAME";m=_.aw(c,8,x);m=_.c4(m,6,J.environment);m=_.aw(m,5,"100");m=_.c4(m,11,J.colorSchemeSelected);return _.c4(m,12,J.colorThemeDisplayed)};
$e.prototype.dispatch=function(J,c){c===void 0&&(c=new _.Ji);var m=c;J=J.serialize();m=_.aw(m,8,J);_.TB(m,12,this.sessionId);this.JSC$17174_transport.dispatch(c)};var Kfo=function(J,c){this.loggerType=J;this.sessionIndex=c!=null?c:0},C$5;
Kfo.prototype.create=function(J,c,m,b,x){switch(this.loggerType){case 0:return new dj;case 1:return C$5||(C$5=(new _.Ia(555,this.sessionIndex.toString())).build()),new $e(J,c,m,b,x,C$5);default:_.Pu(this.loggerType,"unknown logger type")}};var nL=[6,2,3,1],P3e=new Map([[4,1],[1,6],[2,2],[3,3]]),R25={statusCode:7,statusMessage:"Failed to create flow object"},g$S=function(J,c,m,b,x,P,p,t,I,a){this.serviceId=J;this.sessionId=c;this.config=m;this.galService=b;this.JSC$17181_linkingSession=x;this.googleScopes=P;this.callerState=p;this.consentLanguageKeys=t;this.dynamicUrlParameters=I;this.partnerConfigMinReadTimestamp=a;this.currentFlow=0;b=this.JSC$17181_linkingSession;x=new Set;_.tK(b,FLh,1)&&x.add(1);_.tK(b,Bpr,2)&&_.tK(b,lCh,6)&&x.add(2);
_.tK(b,yd4,3)&&_.tK(b,lCh,6)&&x.add(3);_.tK(b,jAS,4)&&x.add(6);this.supportedFlows=x;b=m.loggerType;x=m.clientEnvironment;a:{P=m.colorScheme;switch(P){case 0:P=1;break a;case 1:P=2;break a;case 2:P=3;break a;default:_.Pu(P)}P=void 0}a:{p=m.colorScheme;p=oxs(p);switch(p){case 0:p=1;break a;case 1:p=2;break a;default:_.Pu(p)}p=void 0}this.galLogger=(new Kfo(b,m.authUser)).create(J,x,c,P,p)},k9f=function(J){return new Promise(function(c){var m,b,x,P,p,t,I,a,k,H;
return _.N(function(T){switch(T.nextAddress){case 1:m=yU4(J.currentFlow,J.supportedFlows),b=!1,x=new QO1(J.JSC$17181_linkingSession,J.config.dataUsageNoticeConfig);case 2:if(m===void 0){T.jumpTo(4);break}_.xL(T,5);var r=x,W=m,Y=void 0;b?W===1&&(Y=r.displayInfoMap.get(2)):W===2||W===3?Y=r.displayInfoMap.get(1):W===1&&(Y=r.displayInfoMap.get(3));P=Y?Y:[];p=J.consentLanguageKeys;t=_.M(P);I=t.next();case 7:if(I.done)return J.currentFlow=m,_.K(T,Q6S(aIu(J,p)),11);a=I.value;return _.K(T,h2S(a,J.config.dataUsageNoticeConfig.uiAdapter,
J.config.colorScheme,J.galLogger),10);case 10:k=T.yieldResult;if(k.statusCode!==1)return mz4(J.serviceId),J.currentFlow=0,c(kD({statusCode:k.statusCode,statusMessage:k.statusMessage},J.callerState)),T.return();k.consentLanguageKeys!==void 0&&(p=k.consentLanguageKeys);I=t.next();T.jumpTo(7);break;case 11:H=T.yieldResult;if(H.statusCode!==10)return H.statusCode!==6&&(mz4(J.serviceId),J.currentFlow=0),H.statusCode!==1&&J.callerState!==void 0&&(H.callerState=J.callerState),c(H),T.return();_.EO(T,6);break;
case 5:_.NM(T);case 6:m=yU4(J.currentFlow,J.supportedFlows);b=!0;T.jumpTo(2);break;case 4:mz4(J.serviceId),J.currentFlow=0,c(kD({statusCode:12,statusMessage:"Linking failed"},J.callerState)),_.tD(T)}})})},xzR=function(J,c,m){J.currentFlow=c;
return e21(aIu(J,m)).then(function(b){return b.statusCode===10&&J.config.interactionMode===1&&yU4(J.currentFlow,J.supportedFlows)!==void 0?k9f(J):b})},aIu=function(J,c){return{flowParams:{serviceId:J.serviceId,
sessionId:J.sessionId,galService:J.galService,galLogger:J.galLogger,interactionMode:J.config.interactionMode,redirectServiceUrl:J.config.redirectServiceUrl,colorScheme:J.config.colorScheme,consentLanguageKeys:c,dynamicUrlParameters:J.dynamicUrlParameters,showCloseOption:J.config.showCloseOption,partnerConfigMinReadTimestamp:J.partnerConfigMinReadTimestamp},currentFlow:J.currentFlow,config:J.config,session:J.JSC$17181_linkingSession,googleScopes:J.googleScopes,callerState:J.callerState}};var H4r=function(J,c){this.config=J;this.galService=c.getService();this.JSC$17194_galRepository=c.JSC$17231_galRepository};
H4r.prototype.getLink=function(J,c){return HKf(this,J,c)};
var HKf=function(J,c,m){return J.JSC$17194_galRepository.getLink({serviceId:c,scopes:void 0,capabilities:void 0,linkName:m}).then(function(b){return{statusCode:1,link:b}}).catch(function(b){return{statusCode:Mgo(b.code),
statusMessage:b.message}})};
H4r.prototype.deleteLink=function(J,c){return this.JSC$17194_galRepository.deleteLink(J,this.config.accountLinkingEntryPoint,c).then(function(){return{statusCode:1}}).catch(function(m){return{statusCode:Mgo(m.code),
statusMessage:m.message}})};
H4r.prototype.startLinkingSession=function(J){var c=J.serviceId;var m=J.sessionId;return JI4({serviceId:c,sessionId:m!==void 0?m:Math.floor(Math.random()*2147483648),config:this.config,galService:this.galService,loginHint:J.loginHint,callerState:J.callerState,consentLanguageKeys:J.consentLanguageKeys,linkName:J.linkName,dynamicUrlParameters:J.dynamicUrlParameters,partnerConfigMinReadTimestamp:J.partnerConfigMinReadTimestamp})};var pOR=null,KCe=new WeakMap;var iKh=function(){};
iKh.prototype.send=function(J,c){kBs(J);return this.makeRequest(J).then(function(m){if(c){var b=new c;if(m!=null){if(c==null)throw Error("Yj");new c;throw Error("$j");}m=b}return m})};var nM5=function(J,c,m,b,x){this.gapiUrl=J;this.gapiKey=c;this.gapiConfigUpdates=m||{};this.gapiAuthParams=b||{};this.defaultApiId=x};
_.D(nM5,iKh);var wgo=function(J){return tgs().then(function(c){c=c||window.gapi;Tip(J,c);return atr(c,{apiKey:J.gapiKey,clientId:J.gapiAuthParams.clientId,scope:J.gapiAuthParams.scope,hostedDomain:J.gapiAuthParams.hostedDomain,fetchBasicProfile:J.gapiAuthParams.fetchBasicProfile}).then(function(){return c})})};
nM5.prototype.makeRequest=function(J){var c=this;return wgo(this).then(function(m){return _.N(function(b){if(b.nextAddress==1)return c.gapiAuthParams.minAuthTokenTimeRemaining===void 0?b.jumpTo(2):_.K(b,C3R(m,c.gapiAuthParams.minAuthTokenTimeRemaining),2);Tip(c,m);return b.return(rTR(m.client.request({root:c.gapiUrl,path:J.path,method:J.httpMethod,body:J.body,params:J.queryParams,headers:J.headers,authType:J.authType,apiId:J.apiId||c.defaultApiId})))})})};
var rTR=function(J){return new Promise(function(c,m){J.then(function(b){c(b.result===!1&&b.body!=null?{data:b.body}:b.result)},function(b){m(b.result===!1&&b.body!=null?{data:b.body}:b.result)})})},Tip=function(J,c){for(var m in J.gapiConfigUpdates)if(J.gapiConfigUpdates.hasOwnProperty(m)){var b=c,x=m,P=J.gapiConfigUpdates[m],p=b.config.get(x);
P!==p&&b.config.update(x,P)}};
nM5.$inject=["gapiUrl","gapiKey","gapiConfigUpdates","gapiAuthParams","defaultApiId"];var Gl=function(J,c,m,b,x,P,p,t){this.apiKey=c;this.authUser=m;this.oauthToken=b;this.bucket=x;this.locale=p;this.galSdkEventHandler=t;if(b===void 0){if(c===void 0)throw Error("ak");this.requestService=new nM5(J,c,{"googleapis.config/auth/useFirstPartyAuth":!0,"googleapis.config/auth/useFirstPartyAuthV2":!0,"client/xd4":P===void 0||P===!1,"client/xd3":P===!0})}this.galServiceClient=new YiR(J)};
Gl.prototype.deleteLink=function(J){var c=J.serviceId;var m=J.sessionId;var b=J.accountLinkingEntryPoint;var x=J.linkName;var P=this,p;return _.N(function(t){var I=(new wj).setHeader(Ej(P,m));var a=st1({serviceId:c,linkName:x});I=_.m_(I,2,a);p=_.Yd(I,3,b);return t.return(P.makeRequest(P.galServiceClient.deleteLink,p,[1,3],[2,4]))})};
var mxR=function(J,c){var m=c.serviceId;var b=c.sessionId;var x=c.dynamicUrlParameters;var P=c.redirectState;var p=c.consentLanguageKeys;var t=c.partnerConfigMinReadTimestamp;var I;return _.N(function(a){var k=(new sj).setHeader(Ej(J,b,x));k=_.eQ(k,2,m);I=_.eQ(k,4,P);p!==void 0&&_.eQ(I,5,p);t!==void 0&&_.m_(I,6,t);return a.return(J.makeRequest(J.galServiceClient.JSC$17080_finishOAuth,I,[1,3],[2,4]))})};
Gl.prototype.getLink=function(J){var c=J.serviceId;var m=J.sessionId;var b=J.scopes;var x=J.capabilities;var P=J.consistencyKey;var p=J.linkName;var t=this,I;return _.N(function(a){var k=(new Le).setHeader(Ej(t,m)),H=st1({serviceId:c,scopes:b,capabilities:x,linkName:p});I=_.m_(k,2,H);P!==void 0&&(k=Svu(),k=_.eQ(k,2,P),_.m_(I,3,k));return a.return(t.makeRequest(t.galServiceClient.getLink,I,[1,3],[2,4]))})};
var j61=function(J,c){var m=c.serviceId;var b=c.sessionId;var x=c.googleScopes;var P=c.consistencyKey;var p;return _.N(function(t){var I=(new rj).setHeader(Ej(J,b));I=_.eQ(I,2,m);var a=Array.from(x.values());I=_.s1(I,3,a,_.dR);a=Svu();a=_.eQ(a,2,P);p=_.m_(I,4,a);return t.return(J.makeRequest(J.galServiceClient.JSC$17080_depositGoogleCredential,p,[1,3],[2,4]))})};
Gl.prototype.startLinkingSession=function(J){var c=J.serviceId;var m=J.sessionId;var b=J.scopes;var x=J.capabilities;var P=J.loginHint;var p=J.supportedFlows;var t=J.completionUrl;var I=J.usePingPong;var a=J.twoWayLinking;var k=J.accountLinkingEntryPoint;var H=J.callerState;var T=J.consentLanguageKeys;var r=J.googleScopes;var W=J.dataUsageNoticeConfig;var Y=J.linkName;var Z=J.dynamicUrlParameters;var d=J.partnerConfigMinReadTimestamp;var G=this,e,A;return _.N(function(l){if(x!==void 0&&b!==void 0)throw Error("Tj");
var y=(new D8).setHeader(Ej(G,m,Z));e=_.eQ(y,2,c);Y!==void 0&&_.eQ(e,14,Y);if(x!==void 0){y=e;var pG=Array.from(x.values());_.s1(y,5,pG,_.dR)}else b!==void 0&&(y=e,pG=Array.from(b.values()),_.s1(y,3,pG,_.dR));t!==void 0&&_.eQ(e,6,t);I!==void 0&&_.WS(e,15,I);p!==void 0&&(y=e,pG=Array.from(p.values()),_.s1(y,4,pG,_.s5));if(a!==void 0){if(a&&(!r||r.size===0))throw Error("bk");_.WS(e,8,a)}k!==void 0&&_.Yd(e,9,k);P!==void 0&&_.eQ(e,13,P);H!==void 0&&(y=e,pG=(new TextEncoder).encode(H),_.LU(y,12,_.$Z(pG,
!1),_.dL()));T!==void 0&&_.eQ(e,16,T);d!==void 0&&_.m_(e,18,d);if(W!==void 0&&W.size>0||r!==void 0&&r.size>0)A=new JPo,r!==void 0&&r.size>0&&(y=A,pG=Array.from(r.values()),_.s1(y,1,pG,_.dR)),W!==void 0&&(W.has(0)&&_.MhR(A,2,_.s5,1,_.Lr),W.has(1)&&_.MhR(A,2,_.s5,2,_.Lr)),_.m_(e,17,A);return l.return(G.makeRequest(G.galServiceClient.startLinkingSession,e,[1],[2]))})};
Gl.prototype.getMetadata=function(){var J=this,c,m,b;return _.N(function(x){if(x.nextAddress==1)return c={},J.requestService?_.K(x,wgo(J.requestService),3):(c.Authorization="Bearer "+J.oauthToken,x.jumpTo(2));x.nextAddress!=2&&(m=x.yieldResult,c["X-Goog-Api-Key"]=J.apiKey,c["X-Goog-AuthUser"]=J.authUser!==void 0?J.authUser.toString():"0",(b=m.auth.getAuthHeaderValueForFirstParty([]))&&(c.Authorization=b));J.locale&&(c["accept-language"]=J.locale);return x.return(c)})};
Gl.prototype.makeRequest=function(J,c,m,b){var x=this,P;return _.N(function(p){if(p.nextAddress==1)return _.K(p,x.getMetadata(),2);P=p.yieldResult;Lf1(x,m);return p.return(J.bind(x.galServiceClient)(c,P).finally(function(){Lf1(x,b)}))})};
var Lf1=function(J,c){J.galSdkEventHandler!==void 0&&c.forEach(function(m){J.galSdkEventHandler.onEvent(m)})},Ej=function(J,c,m){var b=new i2;
c=_.LU(b,2,_.De(c),0);c=_.Yd(c,5,3);m=_.s1(c,8,m,_.dR);J.bucket!==void 0&&_.eQ(m,1,J.bucket);return m},st1=function(J){var c=J.serviceId;
var m=J.scopes;var b=J.capabilities;J=J.linkName;if(b!==void 0&&m!==void 0)throw Error("Tj");var x=new qvF;c=_.eQ(x,1,c);b!==void 0?(m=Array.from(b.values()),_.s1(c,5,m,_.dR)):m!==void 0&&(m=Array.from(m.values()),_.s1(c,3,m,_.dR));J!==void 0&&_.eQ(c,6,J);return c};var i4h=function(J){this.galService=new Gl(J.alsDomain,J.apiKey,J.authUser,J.oauthToken,J.bucket,J.clientXd3,J.locale,J.galSdkEventHandler);this.JSC$17231_galRepository=new epu(this.galService)};
i4h.prototype.getService=function(){return this.galService};var DxS=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(DxS,_.d6);var WfS=function(J){var c=new DxS;return _.c4(c,1,J)};
DxS.prototype.setErrorMessage=function(J){return _.aw(this,2,J)};var z1r=[0,_.AK,_.ES,_.AK];var vo=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(vo,_.d6);var uUR=[0,[1,2,3],_.OS,[0,vrS,R8F,-1],_.OS,[0,AOo,-1],_.uCo];var fIr=[0,_.$d,1,_.AK,_.ES,-1,1,_.X5e,_.hK,_.AK,-1,uUR];var Yce=[0,_.AK,[0,_.X5e,_.hK,[0,_.ES]],_.G8,[0,_.AK,-1]];var m1=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(m1,_.d6);var Xgs=[0,_.ES,_.AK,-2,_.$d,_.AK,_.$d,_.AK,-2,1,_.G8];var ZKu=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(ZKu,_.d6);var qch=[0,_.$d];var UxR=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(UxR,_.d6);var Scr=[0,_.AK,Yce,qch,Xgs,fIr];var eER=_.yb(UxR,Scr);var h11=[0,XPf];var gYu=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(gYu,_.d6);var dxR=[0,[1,3],lhR,_.AK,lhR];var Jn=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(Jn,_.d6);var $xs=[0,_.AK];var G95=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(G95,_.d6);var co=function(J){return _.u0(J,DxS,2,g$)},EMo=function(J){var c=new G95;
return _.bs(c,2,g$,J)},g$=[1,
2];var vMS=[0,g$,_.OS,$xs,_.OS,z1r,_.ve,dxR,1,_.AK,h11];var OKr=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(OKr,_.d6);var R1u=function(J){var c=new OKr;return _.bs(c,3,ATu,J)},ATu=[2,
3];var Oj=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(Oj,_.d6);var oMs=function(J,c){return _.m_(J,2,c)},Qt4=function(J,c){return _.m_(J,8,c)},e1F=function(J,c){return _.m_(J,3,c)};var jtR=[0,_.AK,vMS,Scr,_.qa6,[0,[5,6],[0,_.AK,-2],[0,_.$d,_.AK,_.ES],[0,uUR],[0,_.ES,_.AK,-1,_.ZQQ,_.AK],_.OS,[0,[0,_.$d],_.AK,-1],_.OS,[0,[3,4],_.AK,-1,_.OS,[0,[0,_.AK,_.G8]],_.OS,[0,[0,[0,[1,2],_.OS,[0],_.OS,[0]]]]]],_.qa6,-1,[0,ATu,_.AK,_.OS,$xs,_.OS,z1r,_.ve,dxR,[0,XPf]]];var FfF=_.yb(Oj,jtR),lI4=_.Bw(jtR);var yTp=function(){_.DS.call(this)};
_.D(yTp,_.DS);yTp.prototype.init=function(){};
new yTp;var BiR=_.Oo(["data-"]),gM1=_.Oo(["aria-"]),J3f=_.Oo(["aria-"]),An=function(J,c){this.isLatencyMeasurementExperiment=J===void 0?!1:J;this.enableDialogA11yFix=c===void 0?!1:c;this.JSC$17260_win=window;this.focusChangeListener=this.handleFocusChange.bind(this);this.origin=_.V6L(_.mo.location.href)},FA5=function(J,c){J.onConsentPrimitiveShownCallback=c},c3s=function(J,c){return J.overriddenIframeLoadTimeout?J.overriddenIframeLoadTimeout:c!==void 0?c:5E3},y7f=function(J){if(J.prewarmPromise!==void 0)return J.prewarmPromise;
J.prewarmPromise=new Promise(function(c,m){RZ(J,1);mJ4(J,byu(J,!0),xJ4(J));J.iframe?J.prewarmChannel||VQu(J,J.iframe,c):m(Error("ck"))});
J.prewarmPromise.finally(function(){J.prewarmPromise=void 0});
return J.prewarmPromise};
An.prototype.showPrimitive=function(){var J=this;if(this.consentPromise!==void 0)return this.consentPromise;var c=Date.now();PDR(this,c);this.consentPromise=new Promise(function(m,b){RZ(J,0,c);var x=J.isDarkTheme();J.isLatencyMeasurementExperiment||J.initialLoadingStrategy===1||J.initialLoadingStrategy===2||(J.loadingBar||(J.loadingBar=rIe(getComputedStyle(document.body).direction==="rtl",x),J.loadingBar.style.position="fixed",J.loadingBar.style.zIndex="15000"),document.body.appendChild(J.loadingBar));
mJ4(J,byu(J),xJ4(J));J.iframe?J.channel||MQ5(J,J.iframe,m,b):(p85(J),b(Error("ck")))});
this.consentPromise.finally(function(){J.consentPromise=void 0});
return this.consentPromise};
var MQ5=function(J,c,m,b){var x,P;_.N(function(p){switch(p.nextAddress){case 1:RZ(J,3);x=!1;setTimeout(function(){if(!x){p85(J);NJf(J);tQf(J);var t=WfS(7).setErrorMessage("Timeout connecting to iframe");m(Qt4(oMs(new Oj,EMo(t)),R1u(t)))}},c3s(J,Ii4(J)));
if(!J.prewarmPromise){p.jumpTo(2);break}_.xL(p,3);return _.K(p,J.prewarmPromise,5);case 5:_.EO(p,2);break;case 3:_.NM(p),P=WfS(4).setErrorMessage("Error while prewarming."),m(Qt4(oMs(new Oj,EMo(P)),R1u(P)));case 2:J.prewarmChannel&&J.prewarmChannel.send(lI4(e1F(new Oj,J.consentPrimitiveRequest))),J.channel=_.Qa({destination:J.JSC$17260_win,iframe:c,origin:Kxh(J),channelName:"cpw",onEstablished:function(){x=!0;p85(J);J.isLatencyMeasurementExperiment||(J.JSC$17260_previousBodyOverflow=document.body.style.overflow,
J.JSC$17260_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior,J.JSC$17260_previousBodyOverscroll=document.body.style.overscrollBehavior,document.documentElement.style.overscrollBehavior="contain",document.body.style.overscrollBehavior="contain",document.body.style.overflow="hidden",J.enableDialogA11yFix&&window.addEventListener("blur",J.focusChangeListener));var t=J.iframe;t.style.bottom="0";t.style.position="fixed";t.style.right="0";t.style.border="none";t.style.left="0";t.style.top=
"0";t.style.zIndex="5000";t.style.pointerEvents="";t.style.visibility="";J.initialLoadingStrategy===2||J.initialLoadingStrategy===3?RZ(J,4):RZ(J,6);var I;(I=J.onConsentPrimitiveShownCallback)==null||I.call(J)},
onMessage:function(t){t=FfF(t.data);switch(_.Db(t,1)){case 1:NJf(J);var I=sNu(_.JU(t,_.UQ,7));I&&(J.initialLoadingStrategy!==2&&J.initialLoadingStrategy!==3||RZ(J,6,I),RZ(J,5,I));if(I=sNu(_.JU(t,_.UQ,6)))RZ(J,7,I),RZ(J,8);var a,k;((a=_.JU(t,G95,2))==null?void 0:_.a5(a,g$))!==0&&((k=_.JU(t,OKr,8))==null?void 0:_.a5(k,ATu))!==0||b(Error("dk"));m(t);break;case 2:tQf(J)}}}),_.tD(p)}})},VQu=function(J,c,m){J.prewarmChannel=_.Qa({destination:J.JSC$17260_win,
iframe:c,origin:Kxh(J),channelName:"pwcp",onEstablished:function(){RZ(J,2);m()}})},Kxh=function(J){var c=_.N2(J.src).toString();
return c&&c.indexOf("://")<0&&c.indexOf("//")!==0?J.origin:_.V6L(c)},byu=function(J,c){c=c===void 0?!1:c;
var m,b=new Map([["origin",J.origin],["hl",(m=CDR(J))!=null?m:null]]);c&&b.set("pw","1");c=_.M([["cpr",J.consentPrimitiveRequest.serialize()]]);for(m=c.next();!m.done;m=c.next()){var x=_.M(m.value);m=x.next().value;x=x.next().value;b.set(m,x)}J.isDarkTheme()&&b.set("color_scheme","dark");return _.mp(J.src,b)},p85=function(J){J.isLatencyMeasurementExperiment||J.loadingBar&&document.body.removeChild(J.loadingBar)};
An.prototype.getSrc=function(){var J=_.es(this.origin),c;var m=(c=_.JU(this.consentPrimitiveRequest,ZKu,3))==null?void 0:_.m5(c,1);c="consent.google.com";m=m?"/u/"+encodeURIComponent(m.toString()):"";(J==null?0:J.endsWith("youtube.com"))?c="consent.youtube.com":(J=J==null?void 0:J.match("google\\.(co\\.)?([a-z]{2,3})$"))&&(c="consent.google."+((J[1]?"co.":"")+encodeURIComponent(J[2])));return _.p1("https://"+c+"/signedin"+m+"/landing")};
var mJ4=function(J,c,m){J.iframe||(J.iframe=document.createElement("iframe"),J.iframe.style.width="100%",J.iframe.style.height="100%",m!==112496729&&(J.iframe.style.colorScheme="auto"),J.isLatencyMeasurementExperiment&&(J.iframe.style.display="none"),_.Yh(J.iframe,c),J.iframe.setAttribute("jsname","C5o1O"),aio(J.iframe),document.body.appendChild(J.iframe))},aio=function(J){J.style.bottom="-200vh";
J.style.position="fixed";J.style.right="-200vw";J.style.border="";J.style.left="";J.style.top="";J.style.zIndex="";J.style.pointerEvents="none";J.style.visibility="hidden"},NJf=function(J){J.iframe&&(J.isLatencyMeasurementExperiment||(J.JSC$17260_previousHtmlOverscroll!==void 0&&(document.documentElement.style.overscrollBehavior=J.JSC$17260_previousHtmlOverscroll),J.JSC$17260_previousBodyOverscroll!==void 0&&(document.body.style.overscrollBehavior=J.JSC$17260_previousBodyOverscroll),J.JSC$17260_previousBodyOverflow!==
void 0&&(document.body.style.overflow=J.JSC$17260_previousBodyOverflow),J.enableDialogA11yFix&&kUf(J,!1)),aio(J.iframe))};
An.prototype.handleFocusChange=function(){document.activeElement===this.iframe&&(kUf(this,!0),window.removeEventListener("blur",this.focusChangeListener))};
var kUf=function(J,c){var m,b,x=(m=J.iframe)==null?void 0:(b=m.parentElement)==null?void 0:b.children;if(x)for(m=0;m<x.length;m++)b=x[m],b!==J.iframe&&(c?(b.hasAttribute("aria-hidden")&&_.E$([_.g8(BiR)],b,"data-old-aria-hidden",b.getAttribute("aria-hidden")),_.E$([_.g8(gM1)],b,"aria-hidden","true")):(b.removeAttribute("aria-hidden"),b.hasAttribute("data-old-aria-hidden")&&(_.E$([_.g8(J3f)],b,"aria-hidden",b.getAttribute("data-old-aria-hidden")),b.removeAttribute("data-old-aria-hidden"))))},RZ=function(J,
c,m){var b;
(b=J.latencyCallback)==null||b.call(J,{latencyType:c,timestampEpochMillis:m!=null?m:Date.now()})};var Hyh=function(J,c,m){An.call(this,c,m===void 0?!1:m);this.consentPrimitiveRequest=J;J=CDR(this);_.Icf(J);this.src=this.getSrc();var b;this.initialLoadingStrategy=(b=_.JU(this.consentPrimitiveRequest,m1,4))==null?void 0:_.Db(b,4)},iyR;
_.D(Hyh,An);var jcf=function(J){var c=_.w("enable_primitive_dialog_aria_hide_siblings");J={request:J,enableDialogA11yFix:c===void 0?!1:c};iyR||(iyR=new Hyh(J.request,J.isLatencyMeasurementExperiment||_.Db(J.request,1)===2,J.enableDialogA11yFix));return iyR},CDR=function(J){var c;
return(c=_.JU(J.consentPrimitiveRequest,m1,4))==null?void 0:_.L0(c,1)},PDR=function(J,c){if(!_.tK(J.consentPrimitiveRequest,vo,5)){var m=J.consentPrimitiveRequest,b=new vo;
_.m_(m,5,b)}var x;if((x=_.JU(J.consentPrimitiveRequest,vo,5))==null||_.Kjf(_.NC(x,8))==null){var P;(P=_.JU(J.consentPrimitiveRequest,vo,5))!=null&&_.TB(P,8,c)}},xJ4=function(J){var c;
return(c=_.JU(J.consentPrimitiveRequest,vo,5))==null?void 0:_.m5(c,1)};
Hyh.prototype.isDarkTheme=function(){var J;return((J=_.JU(this.consentPrimitiveRequest,m1,4))==null?void 0:_.Db(J,2))===2};
var Ii4=function(J){var c;return((c=_.JU(J.consentPrimitiveRequest,m1,4))==null?void 0:_.m5(c,5))||void 0},tQf=function(J){J.channel=void 0;
J.prewarmChannel=void 0;J.iframe&&(document.body.contains(J.iframe)&&document.body.removeChild(J.iframe),J.iframe=void 0);iyR=void 0},Bfp=function(J){return An.prototype.showPrimitive.call(J).then(function(c){return _.JU(c,G95,2)})};for(var oZ={},nRr=(oZ[64]="ma",oZ[73]="ogb",oZ[89]="cr",oZ[21]="test",oZ[0]="unkn",oZ[137]="con",oZ[155]="hl",oZ[78]="yt",oZ[171]="lp",oZ[172]="ap",oZ[177]="amo",oZ[178]="pqe",oZ[74]="gg",oZ[1]="gm",oZ[140]="am",oZ[193]="sc",oZ),TJ4=_.M(Object.keys(nRr)),w8F=TJ4.next();!w8F.done;w8F=TJ4.next());var r3u=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(r3u,_.d6);var sg5=[0,[2,3,4],_.AK,Osf,lhR,_.uCo];var LxR=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(LxR,_.d6);var DJ5=_.yb(LxR,[0,Fqo,_.ES,_.AK,_.ES,_.AK,sg5]);var Wxs=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(Wxs,_.d6);Wxs.prototype.getCommand=function(){return _.Db(this,1)};
var zhf=function(){var J=new Wxs;return _.Yd(J,1,0)};var uWR=_.Bw([0,Fqo,_.ES,[0,_.AK,_.ES,-1]]);var fi1=new _.Pz("s"),YQR=new _.Pz("t"),X8p=new _.Pz("u"),ZyS=new _.Pz("v"),qQR=function(J,c,m){_.Mb.call(this,fi1);this.mediaKey=J;this.photoUrl=c;this.photoSource=m};
_.D(qQR,_.Mb);var UJR=function(){_.Mb.call(this,YQR)};
_.D(UJR,_.Mb);var SQo=function(J){J=J===void 0?!1:J;_.Mb.call(this,X8p);this.isError=J};
_.D(SQo,_.Mb);var hh4=function(){_.Mb.call(this,ZyS)};
_.D(hh4,_.Mb);var dJh=/^\[([a-z0-9-]+)(="([^\\"]*)")?]$/,vR5=function(J){if(typeof J=="string"){if(J.charAt(0)==".")return $Jf(J.substr(1));if(J.charAt(0)=="["){var c=dJh.exec(J);J=J.indexOf("=")==-1?void 0:c[3];return GUe(c[1],J)}return ERS(J)}return J},$Jf=function(J){return function(c){return c.getAttribute&&_.qb(c,J)}},GUe=function(J,c){return function(m){return c!==void 0?m.getAttribute&&m.getAttribute(J)==c:m.hasAttribute&&m.hasAttribute(J)}},ERS=function(J){J=J.toUpperCase();
return function(c){return(c=c.tagName)&&c.toUpperCase()==J}},Oyu=function(){return!0};var Qf=function(J,c){this.JSC$17288_key_=J;this.JSC$17288_value_=c},el=function(J){throw Error("ek`"+J.JSC$17288_key_);
},A3R=function(J,c){return new TypeError("fk`"+c+"`"+J.JSC$17288_key_+"`"+J.JSC$17288_value_+"`"+typeof J.JSC$17288_value_)};
Qf.prototype.string=function(J){if(arguments.length==0)var c=Rho(this);else{var m;c=(m=oRr(this))!=null?m:J}return c};
var Rho=function(J){var c=oRr(J);c===null&&el(J);return c},oRr=function(J){var c=J.JSC$17288_value_;
if(c==null)return null;if(typeof c==="string")return c;throw A3R(J,"string");};
Qf.prototype.bool=function(J){if(arguments.length==0){var c=this.optionalBool();c===null&&el(this)}else{var m;c=(m=this.optionalBool())!=null?m:J}return c};
Qf.prototype.optionalBool=function(){var J=this.JSC$17288_value_;if(J==null)return null;if(typeof J==="boolean")return J;if(typeof J==="string"){J=J.toLowerCase();if(J==="true"||J==="1")return!0;if(J==="false"||J==="0")return!1}throw A3R(this,"boolean");};
Qf.prototype.number=function(J){if(arguments.length==0){var c=QgR(this);c===null&&el(this)}else{var m;c=(m=QgR(this))!=null?m:J}return c};
var QgR=function(J){var c=J.JSC$17288_value_;if(c==null)return null;if(typeof c==="number")return c;if(typeof c==="string"){var m=Number(c);if(!isNaN(m)&&(m!==0||c.trim().length!==0))return m}throw A3R(J,"number");};
Qf.prototype.toString=function(){return Rho(this)};
Qf.prototype.array=function(J){if(arguments.length==0){var c=ehR(this);c===null&&el(this);return c}c=ehR(this);return c==null?J:c};
var ehR=function(J){var c=J.JSC$17288_value_;if(c==null)return null;Array.isArray(c)||(typeof c!=="string"?c=[c]:(c=c.trim(),c=c==""?[]:c.split(",").map(function(m){return m.trim()})));
return jgs(J,c)},jgs=function(J,c){var m=J.JSC$17288_key_+"[";
return Array.from(c,function(b,x){return new Qf(m+x+"]",b)})};
Qf.prototype.object=function(J){var c=this.JSC$17288_value_;if(c==null)return J===void 0&&el(this),J;if(typeof c==="object"&&c.constructor===Object){J={};var m=this.JSC$17288_key_+".",b;for(b in c)J[b]=new Qf(m+b,c[b]);return J}throw A3R(this,"object");};var jl=function(J){this.list_=Fxe(J)},Fxe=function(J){if(J instanceof jl)J=J.list_;
else if(J[0]instanceof jl){for(var c=new Set,m=0;m<J.length;m++)for(var b=_.M(J[m].list_),x=b.next();!x.done;x=b.next())c.add(x.value);J=c}return[].concat(_.L6(J))};
_.V=jl.prototype;_.V.each=function(J,c,m){((m===void 0?0:m)?Lvo:_.vG)(this.list_,J,c);return this};
_.V.size=function(){return this.list_.length};
_.V.isEmpty=function(){return this.list_.length===0};
_.V.get=function(J){return this.list_[J]||null};
_.V.el=function(){return this.list_[0]||null};
_.V.map=function(J,c){return _.Wm(this.list_,J,c)};
_.V.equals=function(J){return this===J||_.Mu(this.list_,J.list_)};
_.V.first=function(){return this.list_.length==0?null:new F5(this.list_[0])};
_.V.find=function(J){var c=[];this.each(function(m){m=m.querySelectorAll(String(J));for(var b=0;b<m.length;b++)c.push(m[b])});
return new jl(c)};
_.V.parent=function(){var J=[];this.each(function(c){(c=c.parentElement||null)&&!_.Aq(J,c)&&J.push(c)});
return new jl(J)};
_.V.children=function(){var J=[];this.each(function(c){c=_.DK(c);for(var m=0;m<c.length;m++)J.push(c[m])});
return new jl(J)};
_.V.filter=function(J){J=_.BH(this.list_,vR5(J));return new jl(J)};
_.V.closest=function(J){var c=[],m=vR5(J),b=function(x){return _.F_(x)&&m(x)};
this.each(function(x){(x=_.qA(x,b,!0))&&!_.Aq(c,x)&&c.push(x)});
return new jl(c)};
_.V.next=function(J){return liu(this,_.sR6,J)};
_.V.prev=function(J){return liu(this,yOu,J)};
var liu=function(J,c,m){var b=[];var x=m?vR5(m):Oyu;J.each(function(P){(P=c(P))&&x(P)&&b.push(P)});
return new jl(b)};
jl.prototype.setClass=function(J){return this.each(function(c){_.ZY(c,J)})};
var y3R=function(J,c){return J.each(function(m){_.oA(m,c)})},BJr=function(J,c){return J.each(function(m){_.Ad(m,c)})};
jl.prototype.toggleClass=function(J,c){return c===!0?y3R(this,J):c===!1?BJr(this,J):this.each(function(m){_.qb(m,J)?_.Ad(m,J):_.oA(m,J)})};
jl.prototype.setText=function(J){return this.each(function(c){_.WQ(c,J)})};
var gR4=function(J){J.each(function(c){c.removeAttribute("aria-hidden")})};
jl.prototype.getStyle=function(J){if(this.list_.length>0){var c=this.list_[0],m=c.style[_.Cl(J)];return typeof m!=="undefined"?m:c.style[_.hua(c,J)]||""}};
jl.prototype.getData=function(J){if(this.list_.length===0)return new Qf(J,null);var c=Ybp(this.list_[0],J);return new Qf(J,c)};
jl.prototype.focus=function(J){try{J?this.el().focus(J):this.el().focus()}catch(c){}return this};
jl.prototype.click=function(){var J=_.fw(this.el());if(J.createEvent){var c=J.createEvent("MouseEvents");c.initMouseEvent("click",!0,!0,J.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);this.el().dispatchEvent(c)}else J=J.createEventObject(),J.clientX=0,J.clientY=0,J.screenX=0,J.screenY=0,J.altKey=!1,J.ctrlKey=!1,J.shiftKey=!1,J.button=0,this.el().fireEvent("onclick",J)};
var l2=function(J,c,m,b){function x(t,I,a){var k=I;I&&I.parentNode&&(k=I.cloneNode(!0));t(k,a)}
b=b===void 0?!1:b;if(J.list_.length==1){var P=J.list_[0],p=function(t){return c(t,P)};
m instanceof jl?m.each(p,void 0,b):Array.isArray(m)?(b?Lvo:_.vG)(m,p):p(m);return J}return J.each(function(t){m instanceof jl?m.each(function(I){x(c,I,t)}):Array.isArray(m)?_.vG(m,function(I){x(c,I,t)}):x(c,m,t)})};
_.V=jl.prototype;_.V.append=function(J){return l2(this,function(c,m){c&&m.appendChild(c)},J)};
_.V.appendTo=function(J){(new jl([J])).append(this);return this};
_.V.remove=function(){return l2(this,function(J,c){_.nc(c)},null)};
_.V.empty=function(){return l2(this,function(J,c){_.rC(c)},null)};
_.V.after=function(J,c){return l2(this,function(m,b){m&&_.Ld(m,b)},J,!(c===void 0||c))};
_.V.before=function(J){return l2(this,function(c,m){c&&_.sK(c,m)},J)};
_.V.replaceWith=function(J){return l2(this,function(c,m){c&&_.TTL(c,m)},J)};
_.V.toggle=function(J){return this.each(function(c){_.oa(c,J)})};
_.V.show=function(){return this.toggle(!0)};
_.V.hide=function(){return this.toggle(!1)};
_.V.trigger=function(J,c,m,b){return Jm1(this,J,c,m,b)};
var Jm1=function(J,c,m,b,x){return J.each(function(P){_.Lvu(_.fw(P)).triggerWizEventInternal(P,c,m,b,x)})},F5=function(J,c){J instanceof jl&&(c=J.list_,J=null);
this.list_=Fxe(J!=null?[J]:c)};
_.yv(F5,jl);_.V=F5.prototype;_.V.children=function(){return new jl(Array.prototype.slice.call(_.DK(this.list_[0])))};
_.V.each=function(J,c){J.call(c,this.list_[0],0);return this};
_.V.size=function(){return 1};
_.V.el=function(){return this.list_[0]};
_.V.first=function(){return this};var yf=function(J,c){c=c===void 0?window:c;this.hostId=J;this.JSC$17299_win=c;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$17299_previousHtmlOverscroll=this.JSC$17299_previousBodyOverscroll=this.JSC$17299_previousBodyOverflow="";this.eventTarget=new _.KI;this.JSC$17299_win.location.hostname.indexOf("youtube.com")>=0&&(this.domain="profilewidgets.youtube.com")},
bZ5=function(J){var c=cm4(cm4(cm4(new m_f(78),"po"),"hppp"),"hhc");
c.authUser=Number(_.Ub("SESSION_INDEX","0"));c.colorScheme=J;return c};
yf.prototype.getOrigin=function(){return this.origin?this.origin:_.os(_.Rs(_.Ai(new _.oz,this.JSC$17299_win.location.protocol),this.JSC$17299_win.location.hostname),this.JSC$17299_win.location.port).toString()};
yf.prototype.getTargetOrigin=function(){return _.os(_.Rs(_.Ai(new _.oz,this.scheme),this.domain),this.port)};
yf.prototype.preloadIframe=function(J){var c=this;if(this.iframeLoadPromise===void 0){var m=document.createElement("iframe");this.iframe=m;Yef(m,J);this.iframeLoadPromise=new Promise(function(b,x){var P=!1,p=function(t){t.stopPropagation();m.removeEventListener("error",p);m.removeEventListener("securitypolicyviolation",p);x(Error("gk",{cause:t}))};
m.addEventListener("error",p);m.addEventListener("securitypolicyviolation",p);setTimeout(function(){P||x(Error("hk"))},3E4);
x_F(c,m,function(){P=!0;m.removeEventListener("error",p);m.removeEventListener("securitypolicyviolation",p);b()})});
VLo(this);J=this.getTargetOrigin().toString();m.setAttribute("allow","camera "+J+"; display-capture "+J);this.parentElement.appendChild(m)}return this.iframeLoadPromise};
var pHR=function(J,c){var m,b;return _.N(function(x){if(x.nextAddress==1)return m=rIe(getComputedStyle(J.parentElement).direction==="rtl"),J.parentElement.appendChild(m),document.activeElement instanceof HTMLElement&&(J.elementToFocusAfterClose=document.activeElement),_.xL(x,2),_.K(x,J.preloadIframe(c),4);if(x.nextAddress!=2){J.parentElement.removeChild(m);J.JSC$17299_previousBodyOverflow=J.parentElement.style.overflow;J.JSC$17299_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior;
J.JSC$17299_previousBodyOverscroll=J.parentElement.style.overscrollBehavior;document.documentElement.style.overscrollBehavior="contain";J.parentElement.style.overscrollBehavior="contain";J.parentElement.style.overflow="hidden";var P=J.iframe;P.style.bottom="0";P.style.border="none";P.style.height="100%";P.style.left="0";P.style.position=J.iframePosition;P.style.right="0";P.style.top="0";P.style.width="100%";P.style.zIndex="2202";P.setAttribute("aria-hidden","false");P.setAttribute("aria-modal","true");
J.opened=!0;PcR(J);return _.EO(x,0)}b=_.NM(x);J.parentElement.removeChild(m);zwo(J.isDarkTheme());ML4(J,!1);throw Error("ik",{cause:b});})},ML4=function(J,c){c=c===void 0?!0:c;
J.iframe!==void 0&&(Nx1(J),document.documentElement.style.overscrollBehavior=J.JSC$17299_previousHtmlOverscroll,J.parentElement.style.overscrollBehavior=J.JSC$17299_previousBodyOverscroll,J.parentElement.style.overflow=J.JSC$17299_previousBodyOverflow,J.elementToFocusAfterClose!==void 0&&(J.elementToFocusAfterClose.focus(),J.elementToFocusAfterClose=void 0),c?VLo(J):(J.parentElement.removeChild(J.iframe),J.iframe=void 0,J.iframeLoadPromise=void 0,J.mainChannel=void 0),J.opened=!1)},Nx1=function(J){J.backgroundElementsAriaHiddenIsNull&&
(gR4(J.backgroundElementsAriaHiddenIsNull),J.backgroundElementsAriaHiddenIsNull=void 0);
J.backgroundElementsAriaHiddenIsFalse&&(J.backgroundElementsAriaHiddenIsFalse.each(function(c){c.setAttribute("aria-hidden","false")}),J.backgroundElementsAriaHiddenIsFalse=void 0);
J.backgroundElementsWithoutInert&&(J.backgroundElementsWithoutInert.each(function(c){c.removeAttribute("inert")}),J.backgroundElementsWithoutInert=void 0)},PcR=function(J){J.backgroundElementsAriaHiddenIsNull=(new F5(J.iframe.parentElement)).children().filter(function(c){return c.getAttribute("aria-hidden")===null&&c!==J.iframe});
J.backgroundElementsAriaHiddenIsNull.each(function(c){c.setAttribute("aria-hidden","true")});
J.backgroundElementsAriaHiddenIsFalse=(new F5(J.iframe.parentElement)).children().filter(function(c){return c.getAttribute("aria-hidden")==="false"&&c!==J.iframe});
J.backgroundElementsAriaHiddenIsFalse.each(function(c){c.setAttribute("aria-hidden","true")});
J.backgroundElementsWithoutInert=(new F5(J.iframe.parentElement)).children().filter(function(c){return!c.hasAttribute("inert")&&c!==J.iframe});
J.backgroundElementsWithoutInert.each(function(c){c.setAttribute("inert","true")})},VLo=function(J){J=J.iframe;
J.style.bottom="-1000px";J.style.position="fixed";J.style.right="-1000px";J.style.border="";J.style.height="";J.style.left="";J.style.top="";J.style.width="";J.style.zIndex="";J.setAttribute("aria-hidden","true");J.setAttribute("aria-modal","false")};
yf.prototype.isDarkTheme=function(){return this.colorScheme==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches&&this.colorScheme!=="light"};var m_f=function(J,c){yf.call(this,nRr[J],c);this.options=[];this.style=""};
_.D(m_f,yf);var tL1=function(J){J.style="youtube";return J},Ivs=function(J,c){J.eventTarget.listen(X8p,c);
return J},Kme=function(J,c){J.eventTarget.listen(fi1,c);
return J},cm4=function(J,c){J.options.push(c);
return J},Ccs=function(J){var c=[J.getOrigin()];
J.ancestorOrigins&&c.push.apply(c,_.L6(J.ancestorOrigins));var m=new _.oz(J.JSC$17299_win.location.href),b=J.startUrl?J.startUrl:J.options.includes("po")?"profile-picture/art":"profile-picture";c=b2(_.Qh(J.getTargetOrigin(),b),"origin",c);J.startUrl&&_.Ra(c,"startPath",J.startUrl);J.authUser>0&&_.Ra(c,"authuser",J.authUser);J.pageId!==void 0&&_.Ra(c,"pageId",J.pageId);_.Ra(c,"hostId",J.hostId);J.jsMode!==void 0&&_.Ra(c,"jsmode",J.jsMode);J.rectangleRatio!==void 0&&_.Ra(c,"rectangleRatio",J.rectangleRatio);
J.options.length>0&&_.Ra(c,"opts",J.options.join(","));try{for(var x=_.M(["utm_source","utm_medium","utm_campaign","utm_content"]),P=x.next();!P.done;P=x.next()){var p=P.value;_.Ay(m,p)&&_.Ra(c,p,_.Ay(m,p))}var t,I=(t=J.hl)!=null?t:_.Ay(m,"hl");I!==void 0&&_.Ra(c,"hl",I)}catch(a){if(!(a instanceof URIError))throw a;}J.colorScheme&&_.Ra(c,"theme",J.colorScheme);J.style&&_.Ra(c,"style",J.style);return c},avu=function(J,c){J.mainChannel=_.Qa({destination:J.JSC$17299_win,
iframe:c,origin:J.getTargetOrigin().toString(),channelName:"ow",onMessage:function(m){m=DJ5(m.data);if(c===J.iframe)switch(_.Db(m,1)){case 1:J.eventTarget.dispatchEvent(new SQo);ML4(J);break;case 2:J.eventTarget.dispatchEvent(new qQR(_.L0(m,4),_.L0(m,2),_.Db(m,5),_.JU(m,r3u,6)));break;case 0:var b;J.eventTarget.dispatchEvent(new UJR(_.L0(m,2),(b=_.Db(m,3))!=null?b:0));break;case 3:J.eventTarget.dispatchEvent(new SQo(!0));ML4(J,!1);break;case 4:J.eventTarget.dispatchEvent(new hh4)}}})},x_F=function(J,
c,m){_.Qa({destination:J.JSC$17299_win,
iframe:c,origin:_.os(_.Rs(_.Ai(new _.oz,J.scheme),J.domain),J.port).toString(),channelName:"owi",onMessage:function(b){c===J.iframe&&(m!==void 0&&m(),avu(J,c),J.opened&&J.mainChannel.send(uWR(zhf())),b.reply(),x_F(J,c))}})};
m_f.prototype.preloadIframe=function(){return this.iframeLoadPromise===void 0?yf.prototype.preloadIframe.call(this,Ccs(this).toString()):this.iframeLoadPromise};
m_f.prototype.openPicker=function(J){var c=this;return _.N(function(m){if(m.nextAddress==1)return c.startUrl=J?J:c.options.includes("po")?"profile-picture/art":"profile-picture",_.K(m,pHR(c,Ccs(c).toString()),2);if(c.mainChannel){var b=c.mainChannel,x=b.send;var P=zhf();P=_.aw(P,2,c.startUrl);x.call(b,uWR(P))}_.tD(m)})};var kth=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(kth,_.d6);_.V=kth.prototype;_.V.getSize=function(){return tn(this,1)};
_.V.setSize=function(J){return _.f0(this,1,J)};
_.V.getWidth=function(){return tn(this,12)};
_.V.getHeight=function(){return tn(this,13)};
_.V.setCenterCrop=function(J){return _.Pa(this,20,J)};
_.V.getHtml=function(){return _.w9(this,4)};
_.V.getToken=function(){return _.Ha(this,24)};
_.V.setToken=function(J){return _.aw(this,24,J)};
_.V.getBackgroundColor=function(){return tn(this,87)};
_.V.hasBackgroundColor=function(){return _.Wu(_.NC(this,87))!=null};
_.V.getStoryboardLevel=function(){return tn(this,109)};var Bo=function(J){this.JSC$17307_value_=void 0;this.childNodes_={};if(J){var c=_.VUj(J);J=_.O9(J);for(var m=0;m<c.length;m++)this.set(c[m],J[m])}};
Bo.prototype.set=function(J,c){HZs(this,J,c,!1)};
Bo.prototype.add=function(J,c){HZs(this,J,c,!0)};
var HZs=function(J,c,m,b){for(var x=0;x<c.length;x++){var P=c.charAt(x);J.childNodes_[P]||(J.childNodes_[P]=new Bo);J=J.childNodes_[P]}if(b&&J.JSC$17307_value_!==void 0)throw Error("jk`"+c);J.JSC$17307_value_=m},iZ1=function(J,c){for(var m=0;m<c.length;m++)if(J=J.childNodes_[c.charAt(m)],!J)return;
return J};
Bo.prototype.get=function(J){return(J=iZ1(this,J))?J.JSC$17307_value_:void 0};
Bo.prototype.getValues=function(){var J=[];ngs(this,J);return J};
var ngs=function(J,c){J.JSC$17307_value_!==void 0&&c.push(J.JSC$17307_value_);for(var m in J.childNodes_)ngs(J.childNodes_[m],c)};
Bo.prototype.getKeys=function(J){var c=[];if(J){for(var m=this,b=0;b<J.length;b++){var x=J.charAt(b);if(!m.childNodes_[x])return[];m=m.childNodes_[x]}Txr(m,J,c)}else Txr(this,"",c);return c};
var Txr=function(J,c,m){J.JSC$17307_value_!==void 0&&m.push(c);for(var b in J.childNodes_)Txr(J.childNodes_[b],c+b,m)};
_.V=Bo.prototype;_.V.containsKey=function(J){return this.get(J)!==void 0};
_.V.containsValue=function(J){if(this.JSC$17307_value_===J)return!0;for(var c in this.childNodes_)if(this.childNodes_[c].containsValue(J))return!0;return!1};
_.V.clear=function(){this.childNodes_={};this.JSC$17307_value_=void 0};
_.V.remove=function(J){for(var c=this,m=[],b=0;b<J.length;b++){var x=J.charAt(b);if(!c.childNodes_[x])throw Error("kk`"+J);m.push([c,x]);c=c.childNodes_[x]}J=c.JSC$17307_value_;for(delete c.JSC$17307_value_;m.length>0;)if(b=m.pop(),c=b[0],b=b[1],c.childNodes_[b].isEmpty())delete c.childNodes_[b];else break;return J};
_.V.clone=function(){return new Bo(this)};
_.V.getCount=function(){return cd1(this.getValues())};
_.V.isEmpty=function(){return this.JSC$17307_value_===void 0&&_.Lw.isEmpty(this.childNodes_)};var See=function(){if(!wHF){var J=wHF=new Bo,c;for(c in IYf)J.add(c,IYf[c])}},wHF,gj=function(J,c){this.types=J;
this.setters=c},IYf={a:new gj([3,
0],[function(J,c){_.Pa(J,21,c)},
function(J,c){_.f0(J,56,c)}]),
al:new gj([3],[function(J,c){_.Pa(J,74,c)}]),
b:new gj([3,0],[function(J,c){_.Pa(J,23,c)},
function(J,c){_.f0(J,38,c)}]),
ba:new gj([0],[function(J,c){_.f0(J,85,c)}]),
bc:new gj([0],[function(J,c){_.f0(J,87,c)}]),
br:new gj([0],[function(J,c){_.f0(J,86,c)}]),
c:new gj([3,0],[function(J,c){_.Pa(J,2,c)},
function(J,c){_.f0(J,39,c)}]),
cc:new gj([3],[function(J,c){_.Pa(J,51,c)}]),
ci:new gj([3],[function(J,c){_.Pa(J,32,c)}]),
ckm:new gj([3],[function(J,c){_.Pa(J,104,c)}]),
cp:new gj([0],[function(J,c){_.f0(J,92,c)}]),
cr:new gj([3],[function(J,c){_.Pa(J,108,c)}]),
cv:new gj([0],[function(J,c){_.f0(J,94,c)}]),
d:new gj([3],[function(J,c){_.Pa(J,3,c)}]),
dc:new gj([5],[function(J,c){_.aw(J,99,c)}]),
df:new gj([3],[function(J,c){_.Pa(J,80,c)}]),
dv:new gj([3],[function(J,c){_.Pa(J,90,c)}]),
e:new gj([0],[function(J,c){_.f0(J,15,c)}]),
em:new gj([0],[function(J,c){_.f0(J,107,c)}]),
f:new gj([4],[function(J,c){_.aw(J,16,c)}]),
fg:new gj([3],[function(J,c){_.Pa(J,34,c)}]),
fh:new gj([3],[function(J,c){_.Pa(J,30,c)}]),
fm:new gj([3],[function(J,c){_.Pa(J,84,c)}]),
fo:new gj([2],[function(J,c){_.mL(J,79,_.NR(c))}]),
ft:new gj([3],[function(J,c){_.Pa(J,50,c)}]),
fv:new gj([3],[function(J,c){_.Pa(J,31,c)}]),
g:new gj([3],[function(J,c){_.Pa(J,14,c)}]),
gce:new gj([4],[function(J,c){_.aw(J,112,c)}]),
gd:new gj([3],[function(J,c){_.Pa(J,83,c)}]),
gm:new gj([3],[function(J,c){_.Pa(J,105,c)}]),
h:new gj([3,0],[function(J,c){_.Pa(J,4,c)},
function(J,c){_.f0(J,13,c)}]),
i:new gj([3],[function(J,c){_.Pa(J,22,c)}]),
ic:new gj([0],[function(J,c){_.f0(J,71,c)}]),
id:new gj([3],[function(J,c){_.Pa(J,70,c)}]),
il:new gj([3],[function(J,c){_.Pa(J,96,c)}]),
ip:new gj([3],[function(J,c){_.Pa(J,54,c)}]),
iv:new gj([0],[function(J,c){_.TB(J,75,c)}]),
j:new gj([1],[function(J,c){c=c==null?c:zMp(c);_.mL(J,29,c)}]),
k:new gj([3,0],[function(J,c){_.Pa(J,17,c)},
function(J,c){_.f0(J,42,c)}]),
l:new gj([0],[function(J,c){_.f0(J,44,c)}]),
lf:new gj([3],[function(J,c){_.Pa(J,65,c)}]),
lo:new gj([3],[function(J,c){_.Pa(J,97,c)}]),
m:new gj([0],[function(J,c){_.f0(J,63,c)}]),
md:new gj([3],[function(J,c){_.Pa(J,91,c)}]),
mm:new gj([4],[function(J,c){_.aw(J,81,c)}]),
mo:new gj([3],[function(J,c){_.Pa(J,73,c)}]),
mv:new gj([3],[function(J,c){_.Pa(J,66,c)}]),
n:new gj([3],[function(J,c){J.setCenterCrop(c)}]),
nc:new gj([3],[function(J,c){_.Pa(J,55,c)}]),
nd:new gj([3],[function(J,c){_.Pa(J,53,c)}]),
ng:new gj([3],[function(J,c){_.Pa(J,95,c)}]),
ngm:new gj([3],[function(J,c){_.Pa(J,106,c)}]),
no:new gj([3],[function(J,c){_.Pa(J,37,c)}]),
ns:new gj([3],[function(J,c){_.Pa(J,40,c)}]),
nt0:new gj([4],[function(J,c){_.aw(J,36,c)}]),
ntm:new gj([3],[function(J,c){_.Pa(J,114,c)}]),
nu:new gj([3],[function(J,c){_.Pa(J,46,c)}]),
nw:new gj([3],[function(J,c){_.Pa(J,48,c)}]),
o:new gj([1,3],[function(J,c){c=c==null?c:zMp(c);_.mL(J,7,c)},
function(J,c){_.Pa(J,27,c)}]),
p:new gj([3,0],[function(J,c){_.Pa(J,19,c)},
function(J,c){_.f0(J,43,c)}]),
pa:new gj([3],[function(J,c){_.Pa(J,61,c)}]),
pc:new gj([0],[function(J,c){_.f0(J,88,c)}]),
pd:new gj([3],[function(J,c){_.Pa(J,60,c)}]),
pf:new gj([3],[function(J,c){_.Pa(J,67,c)}]),
pg:new gj([3],[function(J,c){_.Pa(J,72,c)}]),
pi:new gj([2],[function(J,c){_.mL(J,76,_.NR(c))}]),
pp:new gj([3],[function(J,c){_.Pa(J,52,c)}]),
pt:new gj([4],[function(J,c){_.aw(J,111,c)}]),
q:new gj([4],[function(J,c){_.aw(J,28,c)}]),
r:new gj([3,0],[function(J,c){_.Pa(J,6,c)},
function(J,c){_.f0(J,26,c)}]),
ra:new gj([3],[function(J,c){_.Pa(J,103,c)}]),
rf:new gj([3],[function(J,c){_.Pa(J,100,c)}]),
rg:new gj([3],[function(J,c){_.Pa(J,59,c)}]),
rh:new gj([3],[function(J,c){_.Pa(J,49,c)}]),
rj:new gj([3],[function(J,c){_.Pa(J,57,c)}]),
ro:new gj([2],[function(J,c){_.mL(J,78,_.NR(c))}]),
rp:new gj([3],[function(J,c){_.Pa(J,58,c)}]),
rw:new gj([3],[function(J,c){_.Pa(J,35,c)}]),
rwa:new gj([3],[function(J,c){_.Pa(J,64,c)}]),
rwu:new gj([3],[function(J,c){_.Pa(J,41,c)}]),
s:new gj([3,0],[function(J,c){_.Pa(J,33,c)},
function(J,c){J.setSize(c)}]),
sb:new gj([0],[function(J,c){_.f0(J,110,c)}]),
sc:new gj([0],[function(J,c){_.f0(J,89,c)}]),
sg:new gj([3],[function(J,c){_.Pa(J,82,c)}]),
sl:new gj([0],[function(J,c){_.f0(J,109,c)}]),
sm:new gj([3],[function(J,c){_.Pa(J,93,c)}]),
t:new gj([4],[function(J,c){J.setToken(c)}]),
tm:new gj([3],[function(J,c){_.Pa(J,113,c)}]),
u:new gj([3],[function(J,c){_.Pa(J,18,c)}]),
ut:new gj([3],[function(J,c){_.Pa(J,45,c)}]),
v:new gj([0],[function(J,c){_.f0(J,62,c)}]),
vb:new gj([0],[function(J,c){_.TB(J,68,c)}]),
vf:new gj([4],[function(J,c){_.aw(J,102,c)}]),
vl:new gj([0],[function(J,c){_.TB(J,69,c)}]),
vm:new gj([3],[function(J,c){_.Pa(J,98,c)}]),
w:new gj([0],[function(J,c){_.f0(J,12,c)}]),
x:new gj([0],[function(J,c){_.f0(J,9,c)}]),
y:new gj([0],[function(J,c){_.f0(J,10,c)}]),
ya:new gj([2],[function(J,c){_.mL(J,77,_.NR(c))}]),
z:new gj([0],[function(J,c){_.f0(J,11,c)}])};
See.prototype.parse=function(J){var c=new kth,m=new kth;if(J=="")J=!0;else{J=J.split("-");for(var b=!0,x=0;x<J.length;x++){var P=J[x];if(P.length==0)b=!1;else{var p=P,t=!1;var I=p;var a=p.charAt(0);a!=a.toLowerCase()&&(t=!0,I=p.charAt(0).toLowerCase()+p.substring(1));var k=wHF;for(a=1;a<=I.length;++a){var H=k,T=I.substring(0,a);if(T.length==0?H.isEmpty():!iZ1(H,T))break}I=a==1?null:(I=k.get(I.substring(0,a-1)))?{option:p.substring(0,a-1),value:p.substring(a-1),signed:t,attributes:I}:null;if(I){p=
[];t=[];a=!1;for(k=0;k<I.attributes.types.length;k++){H=I.attributes.types[k];var r=I.value;T=x;if(I.signed&&H==1)for(var W=r.length;W<12&&T<J.length-1;)r+="-"+J[T+1],W=r.length,++T;else if(H==2)for(;T<J.length-1&&J[T+1].match(/^[\d\.]/);)r+="-"+J[T+1],++T;W=I.attributes.setters[k];r=KVR(this,H)(I.option,r,c,m,W);if(r===null){a=!0;x=T;break}else p.push(H),t.push(r)}if(!a)for(I=0;I<t.length;I++)k=p[I],r=t[I],CA4(this,k)(P,r);b=b&&a}else b=!1}}J=b}return new aY1(c,m,J)};
var Jr=function(J,c,m,b,x,P){x(m,c);J=J.charAt(0);P=P(J==J.toUpperCase());x(b,P)};
_.V=See.prototype;_.V.parseAndSetIntOption_=function(J,c,m,b,x){if(c=="")return 0;isFinite(c)&&(c=String(c));c=typeof c==="string"?/^\s*-?0x/i.test(c)?parseInt(c,16):parseInt(c,10):NaN;if(isNaN(c))return 1;Jr(J,c,m,b,x,Number);return null};
_.V.logIntParseError_=function(){};
_.V.parseAndSetFloatOption_=function(J,c,m,b,x){if(c=="")return 0;var P=Number(c);c=P==0&&_.Mf(c)?NaN:P;if(isNaN(c))return 1;Jr(J,c,m,b,x,Number);return null};
_.V.logFloatParseError_=function(){};
_.V.parseAndSetBoolOption_=function(J,c,m,b,x){if(c!="")return 2;Jr(J,!0,m,b,x,Boolean);return null};
_.V.logBoolParseError_=function(){};
_.V.parseAndSetStringOption_=function(J,c,m,b,x){if(c=="")return 0;Jr(J,c,m,b,x,function(P){return P?"1":""});
return null};
_.V.logStringParseError_=function(){};
_.V.parseAndSetUint64Base64Option_=function(J,c,m,b,x){if(c=="")return 0;Jr(J,c,m,b,x,function(P){return P?1:0});
return null};
var KVR=function(J,c){switch(c){case 0:return(0,_.Wa)(J.parseAndSetIntOption_,J);case 2:return(0,_.Wa)(J.parseAndSetFloatOption_,J);case 3:return(0,_.Wa)(J.parseAndSetBoolOption_,J);case 4:return(0,_.Wa)(J.parseAndSetStringOption_,J);case 1:return(0,_.Wa)(J.parseAndSetUint64Base64Option_,J);default:return function(){}}},CA4=function(J,c){switch(c){case 0:return(0,_.Wa)(J.logIntParseError_,J);
case 2:return(0,_.Wa)(J.logFloatParseError_,J);case 3:return(0,_.Wa)(J.logBoolParseError_,J);case 4:case 1:return(0,_.Wa)(J.logStringParseError_,J);default:return function(){}}},aY1=function(J,c,m){this.valueProto_=J;
this.signatureFlagProto_=c;this.JSC$17319_valid_=m};
aY1.prototype.isValid=function(){return this.JSC$17319_valid_};var XO4=function(J){this.JSC$17320_parser_=null;this.JSC$17320_components_=[];this.JSC$17320_parsedOptions_=null;kEf(this,J)},HIS=function(J){J.JSC$17320_parser_==null&&(J.JSC$17320_parser_=new See);
return J.JSC$17320_parser_},kEf=function(J,c){J.JSC$17320_parsedOptions_=c?typeof c==="string"?HIS(J).parse(c):c:HIS(J).parse("")},cV=function(J,c){return J==c?!1:!0};
_.V=XO4.prototype;_.V.JSC$17322_setCrop=function(J){J=J||void 0;var c=this.JSC$17320_parsedOptions_,m=c.valueProto_;cV(J,_.w9(m,2),_.w9(c.signatureFlagProto_,2))&&_.Pa(m,2,J);return this};
_.V.JSC$17322_setCircleCrop=function(J){J=J||void 0;var c=this.JSC$17320_parsedOptions_,m=c.valueProto_;cV(J,N5(m,51),N5(c.signatureFlagProto_,51))&&_.Pa(m,51,J);return this};
_.V.JSC$17322_setImageCrop=function(J){J=J||void 0;var c=this.JSC$17320_parsedOptions_,m=c.valueProto_;cV(J,N5(m,32),N5(c.signatureFlagProto_,32))&&_.Pa(m,32,J);return this};
_.V.JSC$17322_setHeight=function(J){var c=this.JSC$17320_parsedOptions_,m=c.valueProto_;cV(J,m.getHeight(),c.signatureFlagProto_.getHeight())&&_.f0(m,13,J);return this};
_.V.setCenterCrop=function(J){J=J||void 0;var c=this.JSC$17320_parsedOptions_,m=c.valueProto_;cV(J,_.w9(m,20),_.w9(c.signatureFlagProto_,20))&&m.setCenterCrop(J);return this};
_.V.JSC$17322_setSmartCrop=function(J){J=J||void 0;var c=this.JSC$17320_parsedOptions_,m=c.valueProto_;cV(J,_.w9(m,19),_.w9(c.signatureFlagProto_,19))&&_.Pa(m,19,J);return this};
_.V.JSC$17322_setPad=function(J){J=J||void 0;var c=this.JSC$17320_parsedOptions_,m=c.valueProto_;cV(J,N5(m,60),N5(c.signatureFlagProto_,60))&&_.Pa(m,60,J);return this};
_.V.JSC$17322_setSmartCropUseFace=function(J){J=J||void 0;var c=this.JSC$17320_parsedOptions_,m=c.valueProto_;cV(J,_.w9(m,67),_.w9(c.signatureFlagProto_,67))&&_.Pa(m,67,J);return this};
_.V.JSC$17322_setSmartCropNoClip=function(J){J=J||void 0;var c=this.JSC$17320_parsedOptions_,m=c.valueProto_;cV(J,_.w9(m,52),_.w9(c.signatureFlagProto_,52))&&_.Pa(m,52,J);return this};
_.V.setSize=function(J){var c=this.JSC$17320_parsedOptions_,m=c.valueProto_;cV(J,m.getSize(),c.signatureFlagProto_.getSize())&&m.setSize(J);return this};
_.V.setToken=function(J){J=J||void 0;var c=this.JSC$17320_parsedOptions_,m=c.valueProto_;cV(J,m.getToken(),c.signatureFlagProto_.getToken())&&m.setToken(J);return this};
_.V.JSC$17322_setWidth=function(J){var c=this.JSC$17320_parsedOptions_,m=c.valueProto_;cV(J,m.getWidth(),c.signatureFlagProto_.getWidth())&&_.f0(m,12,J);return this};
_.V.clearOptions=function(){kEf(this,"");return this};
_.V.build=function(){this.JSC$17320_components_.length=0;var J=this.JSC$17320_parsedOptions_,c=J.valueProto_;J=J.signatureFlagProto_;mD(this,"s",c.getSize(),J.getSize());mD(this,"w",c.getWidth(),J.getWidth());bP(this,"c",_.w9(c,2),_.w9(J,2));bP(this,"d",_.w9(c,3),_.w9(J,3));mD(this,"h",c.getHeight(),J.getHeight());bP(this,"s",N5(c,33),N5(J,33));bP(this,"h",c.getHtml(),J.getHtml());bP(this,"p",_.w9(c,19),_.w9(J,19));bP(this,"pp",_.w9(c,52),_.w9(J,52));bP(this,"pf",_.w9(c,67),_.w9(J,67));bP(this,"n",
_.w9(c,20),_.w9(J,20));mD(this,"r",tn(c,26),tn(J,26));bP(this,"r",_.w9(c,6),_.w9(J,6));bP(this,"o",N5(c,27),N5(J,27));var m=_.T8(c,7,_.p0);xF(this,"o",m,_.T8(J,7,_.p0));m=_.T8(c,29,_.p0);xF(this,"j",m,_.T8(J,29,_.p0));mD(this,"x",tn(c,9),tn(J,9));mD(this,"y",tn(c,10),tn(J,10));mD(this,"z",tn(c,11),tn(J,11));bP(this,"g",_.w9(c,14),_.w9(J,14));mD(this,"e",tn(c,15),tn(J,15));xF(this,"f",_.Ha(c,16),_.Ha(J,16));bP(this,"k",N5(c,17),N5(J,17));bP(this,"u",N5(c,18),!0);bP(this,"ut",N5(c,45),!0);bP(this,"i",
N5(c,22),!0);bP(this,"a",N5(c,21),N5(J,21));bP(this,"b",_.w9(c,23),_.w9(J,23));mD(this,"b",tn(c,38),tn(J,38));mD(this,"c",tn(c,39),tn(J,39),16,8);xF(this,"q",_.Ha(c,28),_.Ha(J,28));bP(this,"fh",N5(c,30),N5(J,30));bP(this,"fv",N5(c,31),N5(J,31));bP(this,"fg",_.w9(c,34),_.w9(J,34));bP(this,"ci",N5(c,32),N5(J,32));xF(this,"t",c.getToken(),J.getToken());xF(this,"nt0",_.Ha(c,36),_.Ha(J,36));bP(this,"rw",_.w9(c,35),_.w9(J,35));bP(this,"rwu",_.w9(c,41),_.w9(J,41));bP(this,"rwa",_.w9(c,64),_.w9(J,64));bP(this,
"nw",_.w9(c,48),_.w9(J,48));bP(this,"rh",_.w9(c,49),_.w9(J,49));bP(this,"no",_.w9(c,37),_.w9(J,37));bP(this,"ns",N5(c,40),N5(J,40));mD(this,"k",tn(c,42),tn(J,42));mD(this,"p",tn(c,43),tn(J,43));mD(this,"l",tn(c,44),tn(J,44));mD(this,"v",tn(c,62),tn(J,62));bP(this,"nu",N5(c,46),N5(J,46));bP(this,"ft",N5(c,50),N5(J,50));bP(this,"cc",N5(c,51),N5(J,51));bP(this,"nd",N5(c,53),N5(J,53));bP(this,"ip",N5(c,54),N5(J,54));bP(this,"nc",N5(c,55),N5(J,55));mD(this,"a",tn(c,56),tn(J,56));bP(this,"rj",N5(c,57),
N5(J,57));bP(this,"rp",N5(c,58),N5(J,58));bP(this,"rg",N5(c,59),N5(J,59));bP(this,"pd",N5(c,60),N5(J,60));bP(this,"pa",N5(c,61),N5(J,61));mD(this,"m",tn(c,63),tn(J,63));mD(this,"vb",IZ(c,68),IZ(J,68));mD(this,"vl",IZ(c,69),IZ(J,69));bP(this,"lf",N5(c,65),N5(J,65));bP(this,"mv",N5(c,66),N5(J,66));bP(this,"id",N5(c,70),N5(J,70));mD(this,"ic",tn(c,71),!0);bP(this,"pg",_.w9(c,72),_.w9(J,72));bP(this,"mo",N5(c,73),N5(J,73));bP(this,"al",N5(c,74),N5(J,74));mD(this,"iv",IZ(c,75),IZ(J,75));mD(this,"pi",Ke(c,
76),Ke(J,76));mD(this,"ya",Ke(c,77),Ke(J,77));mD(this,"ro",Ke(c,78),Ke(J,78));mD(this,"fo",Ke(c,79),Ke(J,79));bP(this,"df",N5(c,80),N5(J,80));xF(this,"mm",_.Ha(c,81),_.Ha(J,81));bP(this,"sg",N5(c,82),N5(J,82));bP(this,"gd",N5(c,83),N5(J,83));bP(this,"fm",N5(c,84),N5(J,84));mD(this,"ba",tn(c,85),tn(J,85));mD(this,"br",tn(c,86),tn(J,86));mD(this,"bc",c.getBackgroundColor(),J.getBackgroundColor(),16,8);mD(this,"pc",tn(c,88),tn(J,88),16,8);mD(this,"sc",tn(c,89),tn(J,89),16,8);bP(this,"dv",N5(c,90),N5(J,
90));bP(this,"md",N5(c,91),N5(J,91));mD(this,"cp",tn(c,92),tn(J,92));bP(this,"sm",N5(c,93),N5(J,93));mD(this,"cv",tn(c,94),tn(J,94));bP(this,"ng",N5(c,95),N5(J,95));bP(this,"il",N5(c,96),N5(J,96));bP(this,"lo",N5(c,97),N5(J,97));bP(this,"vm",N5(c,98),N5(J,98));xF(this,"dc",_.Ha(c,99),_.Ha(J,99));bP(this,"rf",N5(c,100),N5(J,100));xF(this,"vf",_.Ha(c,102),_.Ha(J,102));bP(this,"ra",_.w9(c,103),_.w9(J,103));bP(this,"ckm",N5(c,104),N5(J,104));bP(this,"gm",N5(c,105),N5(J,105));bP(this,"ngm",N5(c,106),N5(J,
106));mD(this,"em",tn(c,107),tn(J,107));bP(this,"cr",N5(c,108),N5(J,108));mD(this,"sl",c.getStoryboardLevel(),J.getStoryboardLevel());mD(this,"sb",tn(c,110),tn(J,110));xF(this,"pt",_.Ha(c,111),_.Ha(J,111));xF(this,"gce",_.Ha(c,112),_.Ha(J,112));bP(this,"tm",N5(c,113),N5(J,113));bP(this,"ntm",N5(c,114),N5(J,114));return this.JSC$17320_components_.join("-")};
var mD=function(J,c,m,b,x,P){if(m!=null){var p=x==void 0||x!=10&&x!=16?10:x;m=Number(m).toString(p);x=new oys;x.append(p==16?"0x":"");p=x.append;P==void 0?P="":(P-=m.length,P=P<=0?"":(0,_.VSe)("0",P));p.call(x,P);x.append(m);iIr(J,c,x.toString(),!!Number(b))}},bP=function(J,c,m,b){m&&iIr(J,c,"",!!b)},xF=function(J,c,m,b){m&&iIr(J,c,String(m),!!Number(b))},iIr=function(J,c,m,b){b&&(c=c.charAt(0).toUpperCase()+c.substring(1));
J.JSC$17320_components_.push(c+m)};_.yv(Tq,XO4);_.V=Tq.prototype;_.V.JSC$17322_setCrop=function(J){J&&VZ(this);return Tq.superClass_.JSC$17322_setCrop.call(this,J)};
_.V.JSC$17322_setHeight=function(J){J=J==null||J<0?void 0:J;J!=null&&this.setSize();return Tq.superClass_.JSC$17322_setHeight.call(this,J)};
_.V.JSC$17322_setImageCrop=function(J){J&&VZ(this);return Tq.superClass_.JSC$17322_setImageCrop.call(this,J)};
_.V.JSC$17322_setCircleCrop=function(J){J&&VZ(this);return Tq.superClass_.JSC$17322_setCircleCrop.call(this,J)};
_.V.setSize=function(J){_.cB(J)&&(J=Math.max(J.width,J.height));J=J==null||J<0?void 0:J;J!=null&&(this.JSC$17322_setWidth(),this.JSC$17322_setHeight());return Tq.superClass_.setSize.call(this,J)};
_.V.JSC$17322_setSmartCrop=function(J){J&&VZ(this);return Tq.superClass_.JSC$17322_setSmartCrop.call(this,J)};
_.V.JSC$17322_setSmartCropNoClip=function(J){J&&VZ(this);return Tq.superClass_.JSC$17322_setSmartCropNoClip.call(this,J)};
_.V.JSC$17322_setSmartCropUseFace=function(J){J&&VZ(this);return Tq.superClass_.JSC$17322_setSmartCropUseFace.call(this,J)};
_.V.setCenterCrop=function(J){J&&VZ(this);return Tq.superClass_.setCenterCrop.call(this,J)};
_.V.JSC$17322_setPad=function(J){J&&VZ(this);return Tq.superClass_.JSC$17322_setPad.call(this,J)};
_.V.JSC$17322_setWidth=function(J){J=J==null||J<0?void 0:J;J!=null&&this.setSize();return Tq.superClass_.JSC$17322_setWidth.call(this,J)};
var n1u=function(J){J.clearOptions();var c=J.JSC$17320_parsedOptions_,m=c.valueProto_;cV(!0,_.w9(m,3),_.w9(c.signatureFlagProto_,3))&&_.Pa(m,3,!0);return J},VZ=function(J){J.setCenterCrop();
J.JSC$17322_setCircleCrop();J.JSC$17322_setCrop();J.JSC$17322_setImageCrop();J.JSC$17322_setPad();J.JSC$17322_setSmartCrop();J.JSC$17322_setSmartCropNoClip();J.JSC$17322_setSmartCropUseFace()};
Tq.prototype.build=function(){var J=this.JSC$17320_parsedOptions_.valueProto_;N5(J,18)||N5(J,45)?J.getSize()||this.setSize(0):(J=this.JSC$17320_parsedOptions_.valueProto_,J.getSize()||J.getWidth()||J.getHeight()||(this.setSize(),this.JSC$17322_setHeight(),this.JSC$17322_setWidth(),VZ(this)));return Tq.superClass_.build.call(this)};var TbR=/^[^\/]*\/\//,PV=function(J,c){c=c===void 0?!1:c;this.original_=J;this.originalPrefix_="";(J=this.original_.match(TbR))&&J[0]?(this.originalPrefix_=J[0],J=this.originalPrefix_.match(/\w+/)?this.original_:"http://"+this.original_.substring(this.originalPrefix_.length)):J="http://"+this.original_;this.uri_=_.O7(J,!0);this.isFreeformUrl_=c;this.JSC$17326_valid_=!0;this.obfuscated_=!1},wzR=function(J,c){J.JSC$17328_pathPrefix_=J.JSC$17328_pathPrefix_?J.JSC$17328_pathPrefix_+("/"+c):c},MV=function(J){if(J.JSC$17328_components_==
void 0){var c=J.uri_.getPath().substring(1);
J.JSC$17328_pathPrefix_=null;if(J.isFreeformUrl_){J.JSC$17328_components_=[];if((c.match(/=/g)||[]).length>1)return J.JSC$17326_valid_=!1,J.JSC$17328_components_;var m=c.indexOf("=");m!=-1?(J.JSC$17328_components_.push(c.substr(0,m)),J.JSC$17328_components_.push(c.substr(m+1))):J.JSC$17328_components_.push(c);return J.JSC$17328_components_}J.JSC$17328_components_=c.split("/");c=J.JSC$17328_components_.length;c>2&&J.JSC$17328_components_[0]=="u"&&(wzR(J,J.JSC$17328_components_[0]+"/"+J.JSC$17328_components_[1]),
J.JSC$17328_components_.shift(),J.JSC$17328_components_.shift(),c-=2);if(c==0||c==4||c>7)return J.JSC$17326_valid_=!1,J.JSC$17328_components_;if(c==2)wzR(J,J.JSC$17328_components_[0]);else if(J.JSC$17328_components_[0]=="image")wzR(J,J.JSC$17328_components_[0]);else if(c==7||c==3)return J.JSC$17326_valid_=!1,J.JSC$17328_components_;if(c<=3){J.obfuscated_=!0;c==3&&(wzR(J,J.JSC$17328_components_[1]),J.JSC$17328_components_.shift(),--c);--c;m=J.JSC$17328_components_[c];var b=m.indexOf("=");b!=-1&&(J.JSC$17328_components_[c]=
m.substr(0,b),J.JSC$17328_components_.push(m.substr(b+1)))}}return J.JSC$17328_components_};
PV.prototype.isValid=function(){MV(this);return this.JSC$17326_valid_};
PV.prototype.isObfuscated=function(){MV(this);return this.obfuscated_};
var ri4=function(J){MV(J);return J.isFreeformUrl_},pp=function(J){MV(J);
J.JSC$17328_pathPrefix_==void 0&&(J.JSC$17328_pathPrefix_=null);return J.JSC$17328_pathPrefix_},ssF=function(J){switch(MV(J).length){case 7:return!0;
case 6:return pp(J)==null;case 5:return!1;case 3:return!0;case 2:return pp(J)==null;case 1:return!1;default:return!1}},NV=function(J,c){if(ri4(J))a:{switch(c){case 7:c=0;
break;case 4:if(!ssF(J)){J=null;break a}c=1;break;default:J=null;break a}J=MV(J)[c]}else if(J.isObfuscated())a:{var m=pp(J)!=null?1:0;switch(c){case 6:c=m;break;case 4:if(!ssF(J)){J=null;break a}c=1+m;break;default:J=null;break a}J=MV(J)[c]}else a:{m=pp(J)!=null?1:0;switch(c){case 0:c=m;break;case 1:c=1+m;break;case 2:c=2+m;break;case 3:c=3+m;break;case 4:if(!ssF(J)){J=null;break a}c=4+m;break;case 5:c=ssF(J)?1:0;c=4+m+c;break;default:J=null;break a}J=MV(J)[c]}return J};
PV.prototype.getOptions=function(){this.options_==void 0&&(this.options_=NV(this,4));return this.options_};var Uz1=function(){};
Uz1.prototype.parse=function(J,c){return new Z41(J,c===void 0?!1:c)};
var Z41=function(J,c){PV.call(this,J,c===void 0?!1:c)};
_.D(Z41,PV);_.yv(w$,Tq);var qeR;w$.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
w$.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.original_;var J=w$.superClass_.build.call(this),c=[];pp(this.parsedImageUrl_)!=null&&c.push(pp(this.parsedImageUrl_));var m=ri4(this.parsedImageUrl_);if(this.parsedImageUrl_.isObfuscated()){var b=this.parsedImageUrl_;b.obfuscatedData_==void 0&&(b.obfuscatedData_=NV(b,6));c.push(b.obfuscatedData_+(J?"="+J:""))}else if(m){b=c.push;var x=this.parsedImageUrl_;x.freeformUrlPath_===void 0&&(x.freeformUrlPath_=NV(x,
7));b.call(c,x.freeformUrlPath_);J&&c.push(J)}else b=c.push,x=this.parsedImageUrl_,x.obfuscatedGaiaId_==void 0&&(x.obfuscatedGaiaId_=NV(x,0)),b.call(c,x.obfuscatedGaiaId_),b=c.push,x=this.parsedImageUrl_,x.photoId_==void 0&&(x.photoId_=NV(x,1)),b.call(c,x.photoId_),b=c.push,x=this.parsedImageUrl_,x.imageVersion_==void 0&&(x.imageVersion_=NV(x,2)),b.call(c,x.imageVersion_),b=c.push,x=this.parsedImageUrl_,x.signature_==void 0&&(x.signature_=NV(x,3)),b.call(c,x.signature_),J&&c.push(J),J=c.push,b=this.parsedImageUrl_,
b.filename_==void 0&&(b.filename_=NV(b,5)),J.call(c,b.filename_);c=m?c.join("="):c.join("/");c=_.O7(this.protocolPrefix_+this.JSC$17334_domain_+"/"+c+(this.JSC$17334_query_?"?"+this.JSC$17334_query_:"")).toString();c.startsWith("%3a//")&&(c=c.replace("%3a//","://"));return c};var LVs=_.Oo(["viewBox"]),DbR=_.Oo(["width"]),WVR=_.Oo(["height"]),z65=_.Oo(["fill"]),u44=_.Oo(["id"]),fYs=_.Oo(["x"]),Y9S=_.Oo(["y"]);hw5.prototype.getLength=function(){return this.parsedData.length};
hw5.prototype.write=function(J){for(var c=0,m=this.parsedData.length;c<m;c++)J.put(this.parsedData[c],8)};
var AIo=function(J,c){var m=new hw5(c);J.dataList.push(m);m=J.errorCorrectLevel;var b=1,x=encodeURI(c).toString().replace(/%[0-9a-fA-F]{2}/g,"a");c=x.length+(x.length!=c?3:0);x=0;for(var P=tr.length;x<=P;x++){var p=0;switch(m){case 1:p=tr[x][0];break;case 0:p=tr[x][1];break;case 3:p=tr[x][2];break;case 2:p=tr[x][3]}if(c<=p)break;else b++}if(b>tr.length)throw Error("tk");J.typeNumber=b;J.dataCache=null};
dzf.prototype.isDark=function(J,c){if(J<0||this.moduleCount<=J||c<0||this.moduleCount<=c)throw Error("lk`"+J+"`"+c);return this.modules[J][c]};
for(var RwR=function(J,c,m){J.moduleCount=J.typeNumber*4+17;J.modules=Array(J.moduleCount);for(var b=0;b<J.moduleCount;b++){J.modules[b]=Array(J.moduleCount);for(var x=0;x<J.moduleCount;x++)J.modules[b][x]=null}Xzs(J,0,0);Xzs(J,J.moduleCount-7,0);Xzs(J,0,J.moduleCount-7);b=ZIu[J.typeNumber-1];for(x=0;x<b.length;x++)for(var P=0;P<b.length;P++){var p=b[x],t=b[P];if(J.modules[p][t]==null)for(var I=-2;I<=2;I++)for(var a=-2;a<=2;a++)J.modules[p+I][t+a]=I==-2||I==2||a==-2||a==2||I==0&&a==0?!0:!1}for(b=
8;b<J.moduleCount-8;b++)J.modules[b][6]==null&&(J.modules[b][6]=b%2==0);for(b=8;b<J.moduleCount-8;b++)J.modules[6][b]==null&&(J.modules[6][b]=b%2==0);b=J.errorCorrectLevel<<3|m;for(x=b<<10;IK(x)-IK(1335)>=0;)x^=1335<<IK(x)-IK(1335);b=(b<<10|x)^21522;for(x=0;x<15;x++)P=!c&&(b>>x&1)==1,x<6?J.modules[x][8]=P:x<8?J.modules[x+1][8]=P:J.modules[J.moduleCount-15+x][8]=P;for(x=0;x<15;x++)P=!c&&(b>>x&1)==1,x<8?J.modules[8][J.moduleCount-x-1]=P:x<9?J.modules[8][15-x-1+1]=P:J.modules[8][15-x-1]=P;J.modules[J.moduleCount-
8][8]=!c;if(J.typeNumber>=7){b=J.typeNumber;for(x=b<<12;IK(x)-IK(7973)>=0;)x^=7973<<IK(x)-IK(7973);b=b<<12|x;for(x=0;x<18;x++)P=!c&&(b>>x&1)==1,J.modules[Math.floor(x/3)][x%3+J.moduleCount-8-3]=P;for(x=0;x<18;x++)P=!c&&(b>>x&1)==1,J.modules[x%3+J.moduleCount-8-3][Math.floor(x/3)]=P}if(J.dataCache==null){x=J.typeNumber;P=J.dataList;c=J.errorCorrectLevel;b=q9e(x,c);if(b==void 0)throw Error("sk`"+x+"`"+c);p=b.length/3;c=[];for(t=0;t<p;t++){I=b[t*3];a=b[t*3+1];for(var k=b[t*3+2],H=0;H<I;H++)c.push(new $zp(a,
k))}b=new GB4;for(p=0;p<P.length;p++)t=P[p],b.put(t.mode,4),b.put(t.getLength(),UbS(t.mode,x)),t.write(b);for(p=x=0;p<c.length;p++)x+=c[p].dataCount;if(b.length>x*8)throw Error("mk`"+b.length+"`"+x*8);for(b.length+4<=x*8&&b.put(0,4);b.length%8!=0;)S94(b,!1);for(;!(b.length>=x*8);){b.put(236,8);if(b.length>=x*8)break;b.put(17,8)}P=x=a=0;p=Array(c.length);t=Array(c.length);for(I=0;I<c.length;I++){H=c[I].dataCount;var T=c[I].totalCount-H;x=Math.max(x,H);P=Math.max(P,T);p[I]=Array(H);for(k=0;k<p[I].length;k++)p[I][k]=
255&b.buffer[k+a];a+=H;k=T;H=new r$([1],0);for(T=0;T<k;T++)H=H.multiply(new r$([1,h61(T)],0));k=H;H=(new r$(p[I],k.getLength()-1)).mod(k);t[I]=Array(k.getLength()-1);for(k=0;k<t[I].length;k++)T=k+H.getLength()-t[I].length,t[I][k]=T>=0?H.get(T):0}for(k=b=0;k<c.length;k++)b+=c[k].totalCount;b=Array(b);for(k=a=0;k<x;k++)for(I=0;I<c.length;I++)k<p[I].length&&(b[a++]=p[I][k]);for(k=0;k<P;k++)for(I=0;I<c.length;I++)k<t[I].length&&(b[a++]=t[I][k]);J.dataCache=b}c=J.dataCache;b=-1;x=J.moduleCount-1;P=7;p=
0;for(t=J.moduleCount-1;t>0;t-=2)for(t==6&&t--;;){for(I=0;I<2;I++)J.modules[x][t-I]==null&&(a=!1,p<c.length&&(a=(c[p]>>>P&1)==1),dbS(m,x,t-I)&&(a=!a),J.modules[x][t-I]=a,P--,P==-1&&(p++,P=7));x+=b;if(x<0||J.moduleCount<=x){x-=b;b=-b;break}}},Xzs=function(J,c,m){for(var b=-1;b<=7;b++)if(!(c+b<=-1||J.moduleCount<=c+b))for(var x=-1;x<=7;x++)m+x<=-1||J.moduleCount<=m+x||(J.modules[c+b][m+x]=0<=b&&b<=6&&(x==0||x==6)||0<=x&&x<=6&&(b==0||b==6)||2<=b&&b<=4&&2<=x&&x<=4?!0:!1)},oHu=function(J){for(var c=0,
m=0,b=0;b<8;b++){RwR(J,!0,b);
var x=J;for(var P=x.moduleCount,p=0,t=0;t<P;t++)for(var I=0;I<P;I++){for(var a=0,k=x.isDark(t,I),H=-1;H<=1;H++)if(!(t+H<0||P<=t+H))for(var T=-1;T<=1;T++)I+T<0||P<=I+T||(H!=0||T!=0)&&k==x.isDark(t+H,I+T)&&a++;a>5&&(p+=3+a-5)}for(t=0;t<P-1;t++)for(I=0;I<P-1;I++)if(a=0,x.isDark(t,I)&&a++,x.isDark(t+1,I)&&a++,x.isDark(t,I+1)&&a++,x.isDark(t+1,I+1)&&a++,a==0||a==4)p+=3;for(t=0;t<P;t++)for(I=0;I<P-6;I++)x.isDark(t,I)&&!x.isDark(t,I+1)&&x.isDark(t,I+2)&&x.isDark(t,I+3)&&x.isDark(t,I+4)&&!x.isDark(t,I+5)&&
x.isDark(t,I+6)&&(p+=40);for(I=0;I<P;I++)for(t=0;t<P-6;t++)x.isDark(t,I)&&!x.isDark(t+1,I)&&x.isDark(t+2,I)&&x.isDark(t+3,I)&&x.isDark(t+4,I)&&!x.isDark(t+5,I)&&x.isDark(t+6,I)&&(p+=40);for(I=a=0;I<P;I++)for(t=0;t<P;t++)x.isDark(t,I)&&a++;x=p+=Math.abs(100*a/P/P-50)/5*10;if(b==0||c>x)c=x,m=b}return m},ZIu=[[],
[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]],IK=function(J){for(var c=0;J!=0;)c++,J>>>=1;return c},dbS=function(J,c,m){switch(J){case 0:return(c+m)%2==0;
case 1:return c%2==0;case 2:return m%3==0;case 3:return(c+m)%3==0;case 4:return(Math.floor(c/2)+Math.floor(m/3))%2==0;case 5:return c*m%2+c*m%3==0;case 6:return(c*m%2+c*m%3)%2==0;case 7:return(c*m%3+(c+m)%2)%2==0;default:throw Error("nk`"+J);}},UbS=function(J,c){if(1<=c&&c<10)switch(J){case 1:return 10;
case 2:return 9;case 4:return 8;case 8:return 8;default:throw Error("ok`"+J);}else if(c<27)switch(J){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw Error("ok`"+J);}else if(c<41)switch(J){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw Error("ok`"+J);}else throw Error("pk`"+c);},Kp=function(J){if(J<1)throw Error("qk`"+J);
return $bu[J]},h61=function(J){for(;J<0;)J+=255;
for(;J>=256;)J-=255;return Cp[J]},Cp=Array(256),$bu=Array(256),GEp=0;GEp<8;GEp++)Cp[GEp]=1<<GEp;
for(var aK=8;aK<256;aK++)Cp[aK]=Cp[aK-4]^Cp[aK-5]^Cp[aK-6]^Cp[aK-8];for(var E1R=0;E1R<255;E1R++)$bu[Cp[E1R]]=E1R;r$.prototype.get=function(J){return this.num[J]};
r$.prototype.getLength=function(){return this.num.length};
r$.prototype.multiply=function(J){for(var c=Array(this.getLength()+J.getLength()-1),m=0;m<this.getLength();m++)for(var b=0;b<J.getLength();b++)c[m+b]^=h61(Kp(this.get(m))+Kp(J.get(b)));return new r$(c,0)};
r$.prototype.mod=function(J){if(this.getLength()-J.getLength()<0)return this;for(var c=Kp(this.get(0))-Kp(J.get(0)),m=Array(this.getLength()),b=0;b<this.getLength();b++)m[b]=this.get(b);for(b=0;b<J.getLength();b++)m[b]^=h61(Kp(J.get(b))+c);return(new r$(m,0)).mod(J)};
var v1S=[[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]],q9e=function(J,c){switch(c){case 1:return v1S[(J-1)*4];case 0:return v1S[(J-1)*4+1];case 3:return v1S[(J-1)*4+2];case 2:return v1S[(J-1)*4+3]}};
GB4.prototype.get=function(J){return(this.buffer[Math.floor(J/8)]>>>7-J%8&1)==1};
GB4.prototype.put=function(J,c){for(var m=0;m<c;m++)S94(this,(J>>>c-m-1&1)==1)};
var S94=function(J,c){var m=Math.floor(J.length/8);J.buffer.length<=m&&J.buffer.push(0);c&&(J.buffer[m]|=128>>>J.length%8);J.length++},tr=[[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]],O4F=function(){var J=function(c,m){this.JSC$17354__el=c;this.JSC$17354__htOption=m};
J.prototype.draw=function(c){function m(k,H){k=document.createElementNS("http://www.w3.org/2000/svg",k);for(var T in H)H.hasOwnProperty(T)&&(T==="href"?_.Eho(k,H[T]):_.E$([_.g8(LVs),_.g8(DbR),_.g8(WVR),_.g8(z65),_.g8(u44),_.g8(fYs),_.g8(Y9S)],k,T,H[T]));return k}
var b=this.JSC$17354__htOption,x=this.JSC$17354__el,P=c.moduleCount;this.clear();var p=m("svg",{viewBox:"0 0 "+String(P)+" "+String(P),width:"100%",height:"100%",fill:b.colorLight,"xmlns:xlink":"http://www.w3.org/1999/xlink"});x.appendChild(p);p.appendChild(m("rect",{fill:b.colorLight,width:"100%",height:"100%"}));p.appendChild(m("rect",{fill:b.colorDark,width:"1",height:"1",id:"template"}));for(var t=0;t<P;t++)for(var I=0;I<P;I++)if(c.isDark(t,I)){var a=m("use",{x:String(t),y:String(I),href:"#template"});
p.appendChild(a)}};
J.prototype.clear=function(){for(;this.JSC$17354__el.hasChildNodes();)this.JSC$17354__el.removeChild(this.JSC$17354__el.lastChild)};
return J}(),vH4=document.documentElement.tagName.toLowerCase()==="svg"?O4F:typeof CanvasRenderingContext2D!="undefined"?function(){var J=function(c,m){this._bIsPainted=!1;
EHs();this.JSC$17354__htOption=m;this._elCanvas=document.createElement("canvas");this._elCanvas.width=m.width;this._elCanvas.height=m.height;c.appendChild(this._elCanvas);this.JSC$17354__el=c;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$17354__el.appendChild(this._elImage);this._bSupportDataURI=null};
J.prototype._onMakeImage=function(){var c=this._elCanvas.toDataURL("image/png");this._elImage.src=c;this._elImage.style.display="block";this._elCanvas.style.display="none"};
J.prototype._safeSetDataURI=function(c,m){var b=this;b._fFail=m;b._fSuccess=c;b._bSupportDataURI===null?(c=_.id("IMG"),m=function(){b._bSupportDataURI=!1;b._fFail&&b._fFail.call(b)},c.onabort=m,c.onerror=m,c.onload=function(){b._bSupportDataURI=!0;
b._fSuccess&&b._fSuccess.call(b)},c.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="):b._bSupportDataURI===!0&&b._fSuccess?b._fSuccess.call(b):b._bSupportDataURI===!1&&b._fFail&&b._fFail.call(b)};
J.prototype.draw=function(c){var m=this._oContext,b=this.JSC$17354__htOption,x=c.moduleCount,P=b.width/x,p=b.height/x,t=Math.round(P),I=Math.round(p);this._elImage.style.display="none";this.clear();for(var a=0;a<x;a++)for(var k=0;k<x;k++){var H=c.isDark(a,k),T=k*P,r=a*p;m.strokeStyle=H?b.colorDark:b.colorLight;m.lineWidth=1;m.fillStyle=H?b.colorDark:b.colorLight;m.fillRect(T,r,P,p);m.strokeRect(Math.floor(T)+.5,Math.floor(r)+.5,t,I);m.strokeRect(Math.ceil(T)-.5,Math.ceil(r)-.5,t,I)}this._bIsPainted=
!0};
J.prototype.makeImage=function(){this._bIsPainted&&this._safeSetDataURI(this._onMakeImage,function(){})};
J.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height);this._bIsPainted=!1};
J.prototype.round=function(c){return c?Math.floor(c*1E3)/1E3:c};
return J}():function(){var J=function(c,m){this.JSC$17354__el=c;
this.JSC$17354__htOption=m};
J.prototype.draw=function(c){for(var m=this.JSC$17354__htOption,b=this.JSC$17354__el,x=c.moduleCount,P=Math.floor(m.width/x),p=Math.floor(m.height/x),t=['<table style="border:0;border-collapse:collapse;">'],I=0;I<x;I++){t.push("<tr>");for(var a=0;a<x;a++)t.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+P+"px;height:"+p+"px;background-color:"+(c.isDark(I,a)?m.colorDark:m.colorLight)+';"></td>');t.push("</tr>")}t.push("</table>");c=t.join("");c=_.FiJ(_.y9G,c);_.G$(b,c);
c=b.childNodes[0];x=(m.width-c.offsetWidth)/2;P=(m.height-c.offsetHeight)/2;x>0&&P>0&&(c.style.margin=P+"px "+x+"px")};
J.prototype.clear=function(){this.JSC$17354__el.textContent=""};
return J}();
QNF.prototype.makeImage=function(){typeof this._oDrawing.makeImage=="function"&&(!this.JSC$17357__android||this.JSC$17357__android>=3)&&this._oDrawing.makeImage()};
QNF.prototype.clear=function(){this._oDrawing.clear()};
_.mo.QRCode=QNF;var OIR={cellSize:16,cellStyle:2,relativeCircleSize:.9375,color:"white",backgroundColor:"black",autoClear:!0,logoPadding:1,padding:0,borderRadius:0};var kF=function(){};
kF.prototype.stringify=function(J){return _.mo.JSON.stringify(J,void 0)};
kF.prototype.parse=function(J){return _.mo.JSON.parse(J,void 0)};var AiR=function(){_.Mb.call(this,"z")};
_.yv(AiR,_.Mb);var R61=function(){_.Mb.call(this,"y")};
_.yv(R61,_.Mb);var o1R=null,QsS=function(){return o1R=o1R||new _.KI},e6R=function(J){_.Mb.call(this,"serverreachability",J)};
_.yv(e6R,_.Mb);var HV=function(J){var c=QsS();c.dispatchEvent(new e6R(c,J))},jsu=function(J){_.Mb.call(this,"statevent",J)};
_.yv(jsu,_.Mb);var iP=function(J){var c=QsS();c.dispatchEvent(new jsu(c,J))},FVh=function(J,c,m,b){_.Mb.call(this,"timingevent",J);
this.size=c;this.rtt=m;this.retries=b};
_.yv(FVh,_.Mb);var lYs=function(J,c,m){var b=QsS();b.dispatchEvent(new FVh(b,J,c,m))},np=function(J,c){if(typeof J!=="function")throw Error("uk");
return _.mo.setTimeout(function(){J()},c)};var Ts=function(){this.redactEnabled_=!0};
Ts.prototype.disableRedact=function(){this.redactEnabled_=!1};
var yir=function(J,c,m,b,x,P){J.info(function(){if(J.redactEnabled_)if(P){var p="";for(var t=P.split("&"),I=0;I<t.length;I++){var a=t[I].split("=");if(a.length>1){var k=a[0];a=a[1];var H=k.split("_");p=H.length>=2&&H[1]=="type"?p+(k+"="+a+"&"):p+(k+"=redacted&")}}}else p=null;else p=P;return"XMLHTTP REQ ("+b+") [attempt "+x+"]: "+c+"\n"+m+"\n"+p})},Bbs=function(J,c,m,b,x,P,p){J.info(function(){return"XMLHTTP RESP ("+b+") [ attempt "+x+"]: "+c+"\n"+m+"\n"+P+" "+p})},wE=function(J,c,m,b){J.info(function(){return"XMLHTTP TEXT ("+
c+"): "+g1e(J,m)+(b?" "+b:"")})},JE4=function(J,c){J.info(function(){return"TIMEOUT: "+c})};
Ts.prototype.debug=function(){};
Ts.prototype.info=function(){};
Ts.prototype.warning=function(){};
var g1e=function(J,c){if(!J.redactEnabled_)return c;if(!c)return null;try{var m=JSON.parse(c);if(m)for(var b=0;b<m.length;b++)if(Array.isArray(m[b])){var x=m[b];if(!(x.length<2)){var P=x[1];if(Array.isArray(P)&&!(P.length<1)){var p=P[0];if(p!="noop"&&p!="stop"&&p!="close")for(var t=1;t<P.length;t++)P[t]=""}}}return(0,_.TE)(m)}catch(I){return J.debug("Exception parsing expected JS array - probably was not JS"),c}};var rE=function(J,c,m,b,x){this.JSC$17379_channel_=J;this.JSC$17379_channelDebug_=c;this.sid_=m;this.JSC$17379_rid_=b;this.JSC$17379_retryId_=x||1;this.JSC$17379_eventHandler_=new _.J0(this);this.timeout_=45E3;this.JSC$17379_extraHeaders_=null;this.JSC$17379_successful_=!1;this.JSC$17379_postData_=this.JSC$17379_requestUri_=this.JSC$17379_baseUri_=this.JSC$17379_type_=this.JSC$17379_requestStartTime_=this.JSC$17379_watchDogTimeoutTime_=this.JSC$17379_watchDogTimerId_=null;this.JSC$17379_pendingMessages_=
[];this.JSC$17379_xmlHttp_=null;this.JSC$17379_xmlHttpChunkStart_=0;this.JSC$17379_lastError_=this.JSC$17379_verb_=null;this.JSC$17379_lastStatusCode_=-1;this.JSC$17379_cancelled_=!1;this.JSC$17379_readyStateChangeThrottleMs_=0;this.JSC$17379_readyStateChangeThrottle_=null;this.firstByteReceived_=this.initialResponseDecoded_=this.decodeInitialResponse_=this.decodeChunks_=!1;this.fetchResponseState_=new cER},cER=function(){this.textDecoder=null;
this.responseBuffer="";this.responseArrivedForFetch=!1},mB4=function(J,c){switch(J){case 0:return"Non-200 return code ("+c+")";
case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},bCR={},xBs={};
rE.prototype.setTimeout=function(J){this.timeout_=J};
var Pg1=function(J,c,m){J.JSC$17379_type_=1;J.JSC$17379_baseUri_=_.Bz(c.clone());J.JSC$17379_postData_=m;J.decodeChunks_=!0;V_p(J,null)},V_p=function(J,c){J.JSC$17379_requestStartTime_=Date.now();
M_5(J);J.JSC$17379_requestUri_=J.JSC$17379_baseUri_.clone();b2(J.JSC$17379_requestUri_,"t",J.JSC$17379_retryId_);J.JSC$17379_xmlHttpChunkStart_=0;var m=J.JSC$17379_channel_.JSC$17398_supportsCrossDomainXhrs_;J.fetchResponseState_=new cER;J.JSC$17379_xmlHttp_=psR(J.JSC$17379_channel_,m?c:null,!J.JSC$17379_postData_);J.JSC$17379_readyStateChangeThrottleMs_>0&&(J.JSC$17379_readyStateChangeThrottle_=new _.FU((0,_.Wa)(J.JSC$17383_xmlHttpHandler_,J,J.JSC$17379_xmlHttp_),J.JSC$17379_readyStateChangeThrottleMs_));
J.JSC$17379_eventHandler_.listen(J.JSC$17379_xmlHttp_,"readystatechange",J.JSC$17383_readyStateChangeHandler_);c=J.JSC$17379_extraHeaders_?_.Lw.clone(J.JSC$17379_extraHeaders_):{};J.JSC$17379_postData_?(J.JSC$17379_verb_||(J.JSC$17379_verb_="POST"),c["Content-Type"]="application/x-www-form-urlencoded",J.JSC$17379_xmlHttp_.send(J.JSC$17379_requestUri_,J.JSC$17379_verb_,J.JSC$17379_postData_,c)):(J.JSC$17379_verb_="GET",J.JSC$17379_xmlHttp_.send(J.JSC$17379_requestUri_,J.JSC$17379_verb_,null,c));HV(1);
yir(J.JSC$17379_channelDebug_,J.JSC$17379_verb_,J.JSC$17379_requestUri_,J.JSC$17379_rid_,J.JSC$17379_retryId_,J.JSC$17379_postData_)};
rE.prototype.JSC$17383_readyStateChangeHandler_=function(J){J=J.target;var c=this.JSC$17379_readyStateChangeThrottle_;c&&_.rb(J)==3?(this.JSC$17379_channelDebug_.debug("Throttling readystatechange."),c.fire()):this.JSC$17383_xmlHttpHandler_(J)};
rE.prototype.JSC$17383_xmlHttpHandler_=function(J){try{J==this.JSC$17379_xmlHttp_?N2S(this):this.JSC$17379_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(c){this.JSC$17379_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_"),t_s(this)}finally{}};
var N2S=function(J){var c=_.rb(J.JSC$17379_xmlHttp_),m=J.JSC$17379_xmlHttp_.JSC$7807_lastErrorCode_,b=J.JSC$17379_xmlHttp_.getStatus();if(!(c<3||c==3&&!t_s(J))){J.JSC$17379_cancelled_||c!=4||m==7||(m==8||b<=0?HV(3):HV(2));Ifh(J);var x=J.JSC$17379_xmlHttp_.getStatus();J.JSC$17379_lastStatusCode_=x;m=KRF(J);t_s(J)||J.JSC$17379_channelDebug_.debug(function(){return"No response text for uri "+J.JSC$17379_requestUri_+" status "+x});
J.JSC$17379_successful_=x==200;Bbs(J.JSC$17379_channelDebug_,J.JSC$17379_verb_,J.JSC$17379_requestUri_,J.JSC$17379_rid_,J.JSC$17379_retryId_,c,x);if(J.JSC$17379_successful_){if(J.decodeInitialResponse_&&!J.initialResponseDecoded_)if(b=Cgr(J))wE(J.JSC$17379_channelDebug_,J.JSC$17379_rid_,b,"Initial handshake response via X-HTTP-Initial-Response"),J.initialResponseDecoded_=!0,afr(J,b);else{J.JSC$17379_successful_=!1;J.JSC$17379_lastError_=3;iP(12);J.JSC$17379_channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+
J.JSC$17379_rid_+")");sp(J);Lp(J);return}J.decodeChunks_?k_f(J,c,m):(wE(J.JSC$17379_channelDebug_,J.JSC$17379_rid_,m,null),afr(J,m));c==4&&sp(J);J.JSC$17379_successful_&&!J.JSC$17379_cancelled_&&(c==4?HCp(J.JSC$17379_channel_,J):(J.JSC$17379_successful_=!1,M_5(J)))}else Cqs(J.JSC$17379_xmlHttp_),x==400&&m.indexOf("Unknown SID")>0?(J.JSC$17379_lastError_=3,iP(12),J.JSC$17379_channelDebug_.warning("XMLHTTP Unknown SID ("+J.JSC$17379_rid_+")")):(J.JSC$17379_lastError_=0,iP(13),J.JSC$17379_channelDebug_.warning("XMLHTTP Bad status "+
x+" ("+J.JSC$17379_rid_+")")),sp(J),Lp(J)}},Cgr=function(J){return J.JSC$17379_xmlHttp_&&(J=tb(J.JSC$17379_xmlHttp_,"X-HTTP-Initial-Response"))&&!_.Mf(J)?J:null},KRF=function(J){if(!iCR(J))return J.JSC$17379_xmlHttp_.getResponseText();
var c=J.JSC$17379_xmlHttp_.getResponse();if(c==="")return"";var m="",b=c.length,x=_.rb(J.JSC$17379_xmlHttp_)==4;if(!J.fetchResponseState_.textDecoder){if(typeof TextDecoder==="undefined")return sp(J),Lp(J),"";J.fetchResponseState_.textDecoder=new _.mo.TextDecoder}for(var P=0;P<b;P++)J.fetchResponseState_.responseArrivedForFetch=!0,m+=J.fetchResponseState_.textDecoder.decode(c[P],{stream:!(x&&P==b-1)});c.length=0;J.fetchResponseState_.responseBuffer+=m;J.JSC$17379_xmlHttpChunkStart_=0;return J.fetchResponseState_.responseBuffer},
t_s=function(J){return J.JSC$17379_xmlHttp_?J.fetchResponseState_.responseArrivedForFetch?!0:!(!J.JSC$17379_xmlHttp_.getResponseText()&&!J.JSC$17379_xmlHttp_.getResponse()):!1},iCR=function(J){return J.JSC$17379_xmlHttp_?J.JSC$17379_verb_=="GET"&&J.JSC$17379_type_!=2&&J.JSC$17379_channel_.usesFetchStreams_:!1},k_f=function(J,c,m){for(var b=!0,x;!J.JSC$17379_cancelled_&&J.JSC$17379_xmlHttpChunkStart_<m.length;)if(x=ncR(J,m),x==xBs){c==4&&(J.JSC$17379_lastError_=4,iP(14),b=!1);
wE(J.JSC$17379_channelDebug_,J.JSC$17379_rid_,null,"[Incomplete Response]");break}else if(x==bCR){J.JSC$17379_lastError_=4;iP(15);wE(J.JSC$17379_channelDebug_,J.JSC$17379_rid_,m,"[Invalid Chunk]");b=!1;break}else wE(J.JSC$17379_channelDebug_,J.JSC$17379_rid_,x,null),afr(J,x);iCR(J)&&J.JSC$17379_xmlHttpChunkStart_!=0&&(J.fetchResponseState_.responseBuffer=J.fetchResponseState_.responseBuffer.slice(J.JSC$17379_xmlHttpChunkStart_),J.JSC$17379_xmlHttpChunkStart_=0);c!=4||m.length!=0||J.fetchResponseState_.responseArrivedForFetch||
(J.JSC$17379_lastError_=1,iP(16),b=!1);J.JSC$17379_successful_=J.JSC$17379_successful_&&b;b?m.length>0&&!J.firstByteReceived_&&(J.firstByteReceived_=!0,c=J.JSC$17379_channel_,c.JSC$17398_backChannelRequest_==J&&c.detectBufferingProxy_&&!c.bpDetectionDone_&&(c.JSC$17398_channelDebug_.info("Great, no buffering proxy detected. Bytes received: "+m.length),T2R(c),c.bpDetectionDone_=!0,iP(11))):(wE(J.JSC$17379_channelDebug_,J.JSC$17379_rid_,m,"[Invalid Chunked Response]"),sp(J),Lp(J))},ncR=function(J,c){var m=
J.JSC$17379_xmlHttpChunkStart_,b=c.indexOf("\n",m);
if(b==-1)return xBs;m=Number(c.substring(m,b));if(isNaN(m))return bCR;b+=1;if(b+m>c.length)return xBs;c=c.slice(b,b+m);J.JSC$17379_xmlHttpChunkStart_=b+m;return c};
rE.prototype.cancel=function(){this.JSC$17379_cancelled_=!0;sp(this)};
var M_5=function(J){J.JSC$17379_watchDogTimeoutTime_=Date.now()+J.timeout_;wsf(J,J.timeout_)},wsf=function(J,c){if(J.JSC$17379_watchDogTimerId_!=null)throw Error("vk");
J.JSC$17379_watchDogTimerId_=np((0,_.Wa)(J.JSC$17383_onWatchDogTimeout_,J),c)},Ifh=function(J){J.JSC$17379_watchDogTimerId_&&(_.mo.clearTimeout(J.JSC$17379_watchDogTimerId_),J.JSC$17379_watchDogTimerId_=null)};
rE.prototype.JSC$17383_onWatchDogTimeout_=function(){this.JSC$17379_watchDogTimerId_=null;var J=Date.now();J-this.JSC$17379_watchDogTimeoutTime_>=0?(JE4(this.JSC$17379_channelDebug_,this.JSC$17379_requestUri_),this.JSC$17379_type_!=2&&(HV(3),iP(17)),sp(this),this.JSC$17379_lastError_=2,Lp(this)):(this.JSC$17379_channelDebug_.warning("WatchDog timer called too early"),wsf(this,this.JSC$17379_watchDogTimeoutTime_-J))};
var Lp=function(J){J.JSC$17379_channel_.state_==0||J.JSC$17379_cancelled_||HCp(J.JSC$17379_channel_,J)},sp=function(J){Ifh(J);
_.yr(J.JSC$17379_readyStateChangeThrottle_);J.JSC$17379_readyStateChangeThrottle_=null;J.JSC$17379_eventHandler_.removeAll();if(J.JSC$17379_xmlHttp_){var c=J.JSC$17379_xmlHttp_;J.JSC$17379_xmlHttp_=null;c.abort();c.dispose()}};
rE.prototype.getLastError=function(){return this.JSC$17379_lastError_};
var afr=function(J,c){try{var m=J.JSC$17379_channel_;if(m.state_!=0&&(m.JSC$17398_backChannelRequest_==J||rES(m.forwardChannelRequestPool_,J)))if(!J.initialResponseDecoded_&&rES(m.forwardChannelRequestPool_,J)&&m.state_==3){try{var b=m.wireCodec_.JSC$17393_parser_.parse(c)}catch(t){b=null}if(Array.isArray(b)&&b.length==3){c=b;if(c[0]==0)a:if(m.JSC$17398_channelDebug_.debug("Server claims our backchannel is missing."),m.JSC$17398_backChannelTimerId_)m.JSC$17398_channelDebug_.debug("But we are currently starting the request.");
else{if(m.JSC$17398_backChannelRequest_)if(m.JSC$17398_backChannelRequest_.JSC$17379_requestStartTime_+3E3<J.JSC$17379_requestStartTime_)sEu(m),LRp(m);else break a;else m.JSC$17398_channelDebug_.warning("We do not have a BackChannel established");DBR(m);iP(18)}else{m.JSC$17398_lastPostResponseArrayId_=c[1];var x=m.JSC$17398_lastPostResponseArrayId_-m.JSC$17398_lastArrayId_;if(0<x){var P=c[2];m.JSC$17398_channelDebug_.debug(P+" bytes (in "+x+" arrays) are outstanding on the BackChannel");P<37500&&
m.enableStreaming_&&m.JSC$17398_backChannelRetryCount_==0&&!m.JSC$17398_deadBackChannelTimerId_&&(m.JSC$17398_deadBackChannelTimerId_=np((0,_.Wa)(m.JSC$17400_onBackChannelDead_,m),6E3))}}if(WR1(m.forwardChannelRequestPool_)<=1&&m.forwardChannelFlushedCallback_){try{m.forwardChannelFlushedCallback_()}catch(t){}m.forwardChannelFlushedCallback_=void 0}}else m.JSC$17398_channelDebug_.debug("Bad POST response data returned"),DU(m,11)}else if((J.initialResponseDecoded_||m.JSC$17398_backChannelRequest_==
J)&&sEu(m),!_.Mf(c)){var p=m.wireCodec_.JSC$17393_parser_.parse(c);m.onInput_(p,J)}HV(4)}catch(t){}};var zC5=function(J,c){this.JSC$17386_mapId=J;this.map=c;this.context=null};var u84=function(J){this.maxPoolSizeConfigured_=J||10;_.mo.PerformanceNavigationTiming?(J=_.mo.performance.getEntriesByType("navigation"),J=J.length>0&&(J[0].nextHopProtocol=="hq"||J[0].nextHopProtocol=="h2")):J=!!(_.mo.chrome&&_.mo.chrome.loadTimes&&_.mo.chrome.loadTimes()&&_.mo.chrome.loadTimes().wasFetchedViaSpdy);this.JSC$17389_maxSize_=J?this.maxPoolSizeConfigured_:1;this.requestPool_=null;this.JSC$17389_maxSize_>1&&(this.requestPool_=new Set);this.JSC$17389_request_=null;this.JSC$17389_pendingMessages_=
[]},ffh=function(J){return J.JSC$17389_request_?!0:J.requestPool_?J.requestPool_.size>=J.JSC$17389_maxSize_:!1},WR1=function(J){return J.JSC$17389_request_?1:J.requestPool_?J.requestPool_.size:0},rES=function(J,c){return J.JSC$17389_request_?J.JSC$17389_request_==c:J.requestPool_?J.requestPool_.has(c):!1},YZe=function(J,c){J.requestPool_?J.requestPool_.add(c):J.JSC$17389_request_=c},XsR=function(J,c){J.JSC$17389_request_&&J.JSC$17389_request_==c?J.JSC$17389_request_=null:J.requestPool_&&J.requestPool_.has(c)&&
J.requestPool_.delete(c)};
u84.prototype.cancel=function(){this.JSC$17389_pendingMessages_=ZC5(this);if(this.JSC$17389_request_)this.JSC$17389_request_.cancel(),this.JSC$17389_request_=null;else if(this.requestPool_&&this.requestPool_.size!==0){for(var J=_.M(this.requestPool_.values()),c=J.next();!c.done;c=J.next())c.value.cancel();this.requestPool_.clear()}};
var ZC5=function(J){if(J.JSC$17389_request_!=null)return J.JSC$17389_pendingMessages_.concat(J.JSC$17389_request_.JSC$17379_pendingMessages_);if(J.requestPool_!=null&&J.requestPool_.size!==0){var c=J.JSC$17389_pendingMessages_;J=_.M(J.requestPool_.values());for(var m=J.next();!m.done;m=J.next())c=c.concat(m.value.JSC$17379_pendingMessages_);return c}return _.Fe(J.JSC$17389_pendingMessages_)},qZr=function(J,c){J.JSC$17389_pendingMessages_=J.JSC$17389_pendingMessages_.concat(c)};var UB4=function(J,c){var m=new Ts;m.debug("TestLoadImage: loading "+J);if(_.mo.Image){var b=new Image;b.onload=_.k2(WV,m,"TestLoadImage: loaded",!0,c,b);b.onerror=_.k2(WV,m,"TestLoadImage: error",!1,c,b);b.onabort=_.k2(WV,m,"TestLoadImage: abort",!1,c,b);b.ontimeout=_.k2(WV,m,"TestLoadImage: timeout",!1,c,b);_.mo.setTimeout(function(){if(b.ontimeout)b.ontimeout()},1E4);
b.src=J}else c(!1)},SZ5=function(J,c){var m=new Ts,b=new AbortController,x=setTimeout(function(){b.abort();
WV(m,"TestPingServer: timeout",!1,c)},1E4);
fetch(J,{signal:b.signal}).then(function(P){clearTimeout(x);P.ok?WV(m,"TestPingServer: ok",!0,c):WV(m,"TestPingServer: server error",!1,c)}).catch(function(){clearTimeout(x);
WV(m,"TestPingServer: error",!1,c)})},WV=function(J,c,m,b,x){try{J.debug(c),x&&(x.onload=null,x.onerror=null,x.onabort=null,x.ontimeout=null),b(m)}catch(P){}};var hC1=function(){this.JSC$17393_parser_=new kF},dBs=function(J,c,m){var b=m||"";
try{_.PKZ(J,function(x,P){var p=x;_.cB(x)&&(p=(0,_.TE)(x));c.push(b+P+"="+encodeURIComponent(p))})}catch(x){throw c.push(b+"type="+encodeURIComponent("_badmap")),x;
}};var zs=function(J,c,m){return m&&m.internalChannelParams?m.internalChannelParams[J]||c:c},uP=function(J){this.serverVersion_=0;
this.JSC$17398_outgoingMaps_=[];this.JSC$17398_channelDebug_=new Ts;this.JSC$17398_hostPrefix_=this.JSC$17398_backChannelUri_=this.JSC$17398_forwardChannelUri_=this.JSC$17398_path_=this.JSC$17398_backChannelRequest_=this.httpSessionId_=this.httpSessionIdParam_=this.JSC$17398_extraParams_=this.httpHeadersOverwriteParam_=this.initHeaders_=this.JSC$17398_extraHeaders_=null;this.JSC$17398_nextMapId_=this.JSC$17398_nextRid_=0;this.JSC$17398_failFast_=zs("failFast",!1,J);this.enableStreaming_=this.JSC$17398_deadBackChannelTimerId_=
this.JSC$17398_backChannelTimerId_=this.JSC$17398_forwardChannelTimerId_=this.handler_=null;this.allowStreamingMode_=!0;this.errorResponseStatusCode_=this.JSC$17398_lastPostResponseArrayId_=this.JSC$17398_lastArrayId_=-1;this.JSC$17398_backChannelAttemptId_=this.JSC$17398_backChannelRetryCount_=this.JSC$17398_forwardChannelRetryCount_=0;this.JSC$17398_baseRetryDelayMs_=zs("baseRetryDelayMs",5E3,J);this.JSC$17398_retryDelaySeedMs_=zs("retryDelaySeedMs",1E4,J);this.JSC$17398_forwardChannelMaxRetries_=
zs("forwardChannelMaxRetries",2,J);this.JSC$17398_forwardChannelRequestTimeoutMs_=zs("forwardChannelRequestTimeoutMs",2E4,J);this.JSC$17398_xmlHttpFactory_=J&&J.xmlHttpFactory||void 0;this.networkTestUrl_=J&&J.networkTestUrl||void 0;this.usesFetchStreams_=J&&J.useFetchStreams||!1;this.backChannelRequestTimeoutMs_=void 0;this.JSC$17398_supportsCrossDomainXhrs_=J&&J.supportsCrossDomainXhr||!1;this.sid_="";this.forwardChannelRequestPool_=new u84(J&&J.concurrentRequestLimit);this.wireCodec_=new hC1;this.fastHandshake_=
J&&J.fastHandshake||!1;this.encodeInitMessageHeaders_=J&&J.encodeInitMessageHeaders||!1;this.fastHandshake_&&this.encodeInitMessageHeaders_&&(this.JSC$17398_channelDebug_.warning("Ignore encodeInitMessageHeaders because fastHandshake is set."),this.encodeInitMessageHeaders_=!1);this.blockingHandshake_=J&&J.blockingHandshake||!1;J&&J.disableRedact&&this.JSC$17398_channelDebug_.disableRedact();J&&J.forceLongPolling&&(this.allowStreamingMode_=!1);this.detectBufferingProxy_=!this.fastHandshake_&&this.allowStreamingMode_&&
J&&J.detectBufferingProxy||!1;this.longPollingTimeout_=void 0;J&&J.longPollingTimeout&&J.longPollingTimeout>0&&(this.longPollingTimeout_=J.longPollingTimeout);this.forwardChannelFlushedCallback_=void 0;this.handshakeRttMs_=0;this.bpDetectionDone_=!1;this.nonAckedMapsAtChannelClose_=this.bpDetectionTimerId_=null};
uP.prototype.JSC$17400_channelVersion_=8;uP.prototype.state_=1;
uP.prototype.connect=function(J,c,m,b){this.JSC$17398_channelDebug_.debug("connect()");iP(0);this.JSC$17398_path_=J;this.JSC$17398_extraParams_=c||{};m&&b!==void 0&&(this.JSC$17398_extraParams_.OSID=m,this.JSC$17398_extraParams_.OAID=b);this.enableStreaming_=this.allowStreamingMode_;this.JSC$17398_channelDebug_.debug("connectChannel_()");J=$Bf(this,null,this.JSC$17398_path_);this.JSC$17398_channelDebug_.debug("GetForwardChannelUri: "+J);this.JSC$17398_forwardChannelUri_=J;G_R(this)};
uP.prototype.disconnect=function(){this.JSC$17398_channelDebug_.debug("disconnect()");Eco(this);if(this.state_==3){var J=this.JSC$17398_nextRid_++,c=this.JSC$17398_forwardChannelUri_.clone();_.Ra(c,"SID",this.sid_);_.Ra(c,"RID",J);_.Ra(c,"TYPE","terminate");fp(this,c);J=new rE(this,this.JSC$17398_channelDebug_,this.sid_,J);J.JSC$17379_type_=2;J.JSC$17379_baseUri_=_.Bz(c.clone());c=!1;if(_.mo.navigator&&_.mo.navigator.sendBeacon)try{c=_.mo.navigator.sendBeacon(J.JSC$17379_baseUri_.toString(),"")}catch(m){}!c&&
_.mo.Image&&((new Image).src=J.JSC$17379_baseUri_,c=!0);c||(J.JSC$17379_xmlHttp_=psR(J.JSC$17379_channel_,null),J.JSC$17379_xmlHttp_.send(J.JSC$17379_baseUri_));J.JSC$17379_requestStartTime_=Date.now();M_5(J)}vcS(this)};
var LRp=function(J){J.JSC$17398_backChannelRequest_&&(T2R(J),J.JSC$17398_backChannelRequest_.cancel(),J.JSC$17398_backChannelRequest_=null)},Eco=function(J){LRp(J);
J.JSC$17398_backChannelTimerId_&&(_.mo.clearTimeout(J.JSC$17398_backChannelTimerId_),J.JSC$17398_backChannelTimerId_=null);sEu(J);J.forwardChannelRequestPool_.cancel();J.JSC$17398_forwardChannelTimerId_&&(typeof J.JSC$17398_forwardChannelTimerId_==="number"&&_.mo.clearTimeout(J.JSC$17398_forwardChannelTimerId_),J.JSC$17398_forwardChannelTimerId_=null)};
uP.prototype.getState=function(){return this.state_};
var G_R=function(J){ffh(J.forwardChannelRequestPool_)||J.JSC$17398_forwardChannelTimerId_||(J.JSC$17398_forwardChannelTimerId_=!0,_.as(J.JSC$17400_onStartForwardChannelTimer_,J),J.JSC$17398_forwardChannelRetryCount_=0)},AER=function(J,c){if(WR1(J.forwardChannelRequestPool_)>=J.forwardChannelRequestPool_.JSC$17389_maxSize_-(J.JSC$17398_forwardChannelTimerId_?1:0))return!1;
if(J.JSC$17398_forwardChannelTimerId_)return J.JSC$17398_channelDebug_.debug("Use the retry request that is already scheduled."),J.JSC$17398_outgoingMaps_=c.JSC$17379_pendingMessages_.concat(J.JSC$17398_outgoingMaps_),!0;if(J.state_==1||J.state_==2||J.JSC$17398_forwardChannelRetryCount_>=(J.JSC$17398_failFast_?0:J.JSC$17398_forwardChannelMaxRetries_))return!1;J.JSC$17398_channelDebug_.debug("Going to retry POST");J.JSC$17398_forwardChannelTimerId_=np((0,_.Wa)(J.JSC$17400_onStartForwardChannelTimer_,
J,c),OCo(J,J.JSC$17398_forwardChannelRetryCount_));J.JSC$17398_forwardChannelRetryCount_++;return!0};
uP.prototype.JSC$17400_onStartForwardChannelTimer_=function(J){if(this.JSC$17398_forwardChannelTimerId_)if(this.JSC$17398_forwardChannelTimerId_=null,this.JSC$17398_channelDebug_.debug("startForwardChannel_"),this.state_==1){if(!J){this.JSC$17398_channelDebug_.debug("open_()");this.JSC$17398_nextRid_=Math.floor(Math.random()*1E5);J=this.JSC$17398_nextRid_++;var c=new rE(this,this.JSC$17398_channelDebug_,"",J),m=this.JSC$17398_extraHeaders_;this.initHeaders_&&(m?(m=_.Lw.clone(m),_.Lw.extend(m,this.initHeaders_)):
m=this.initHeaders_);this.httpHeadersOverwriteParam_!==null||this.encodeInitMessageHeaders_||(c.JSC$17379_extraHeaders_=m,m=null);var b;if(this.fastHandshake_)a:{for(var x=b=0;x<this.JSC$17398_outgoingMaps_.length;x++){b:{var P=this.JSC$17398_outgoingMaps_[x];if("__data__"in P.map&&(P=P.map.__data__,typeof P==="string")){P=P.length;break b}P=void 0}if(P===void 0)break;b+=P;if(b>4096){b=x;break a}if(b===4096||x===this.JSC$17398_outgoingMaps_.length-1){b=x+1;break a}}b=1E3}else b=1E3;b=RCh(this,c,b);
x=this.JSC$17398_forwardChannelUri_.clone();_.Ra(x,"RID",J);_.Ra(x,"CVER",22);this.httpSessionIdParam_&&_.Ra(x,"X-HTTP-Session-Id",this.httpSessionIdParam_);fp(this,x);m&&(this.encodeInitMessageHeaders_?b="headers="+_.Eb(CBS(m))+"&"+b:this.httpHeadersOverwriteParam_&&aLS(x,this.httpHeadersOverwriteParam_,m));YZe(this.forwardChannelRequestPool_,c);this.blockingHandshake_&&_.Ra(x,"TYPE","init");this.fastHandshake_?(_.Ra(x,"$req",b),_.Ra(x,"SID","null"),c.decodeInitialResponse_=!0,Pg1(c,x,null)):Pg1(c,
x,b);this.state_=2}}else this.state_==3&&(J?och(this,J):this.JSC$17398_outgoingMaps_.length==0?this.JSC$17398_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):ffh(this.forwardChannelRequestPool_)||(och(this),this.JSC$17398_channelDebug_.debug("startForwardChannel_ finished, sent request")))};
var och=function(J,c){var m;c?m=c.JSC$17379_rid_:m=J.JSC$17398_nextRid_++;var b=J.JSC$17398_forwardChannelUri_.clone();_.Ra(b,"SID",J.sid_);_.Ra(b,"RID",m);_.Ra(b,"AID",J.JSC$17398_lastArrayId_);fp(J,b);J.httpHeadersOverwriteParam_&&J.JSC$17398_extraHeaders_&&aLS(b,J.httpHeadersOverwriteParam_,J.JSC$17398_extraHeaders_);m=new rE(J,J.JSC$17398_channelDebug_,J.sid_,m,J.JSC$17398_forwardChannelRetryCount_+1);J.httpHeadersOverwriteParam_===null&&(m.JSC$17379_extraHeaders_=J.JSC$17398_extraHeaders_);c&&
(J.JSC$17398_outgoingMaps_=c.JSC$17379_pendingMessages_.concat(J.JSC$17398_outgoingMaps_));c=RCh(J,m,1E3);m.setTimeout(Math.round(J.JSC$17398_forwardChannelRequestTimeoutMs_*.5)+Math.round(J.JSC$17398_forwardChannelRequestTimeoutMs_*.5*Math.random()));YZe(J.forwardChannelRequestPool_,m);Pg1(m,b,c)},fp=function(J,c){J.JSC$17398_extraParams_&&_.Lw.forEach(J.JSC$17398_extraParams_,function(m,b){_.Ra(c,b,m)});
J.handler_&&_.PKZ({},function(m,b){_.Ra(c,b,m)})},RCh=function(J,c,m){m=Math.min(J.JSC$17398_outgoingMaps_.length,m);
var b=J.handler_?(0,_.Wa)(J.handler_.JSC$17404_badMapError,J.handler_,J):null;a:{for(var x=J.JSC$17398_outgoingMaps_,P=-1;;){var p=["count="+m];P==-1?m>0?(P=x[0].JSC$17386_mapId,p.push("ofs="+P)):P=0:p.push("ofs="+P);for(var t=!0,I=0;I<m;I++){var a=x[I].JSC$17386_mapId,k=x[I].map;a-=P;if(a<0)P=Math.max(0,x[I].JSC$17386_mapId-100),t=!1;else try{dBs(k,p,"req"+a+"_")}catch(H){b&&b(k)}}if(t){b=p.join("&");break a}}b=void 0}J=J.JSC$17398_outgoingMaps_.splice(0,m);c.JSC$17379_pendingMessages_=J;return b},
QE5=function(J){J.JSC$17398_backChannelRequest_||J.JSC$17398_backChannelTimerId_||(J.JSC$17398_backChannelAttemptId_=1,_.as(J.JSC$17400_onStartBackChannelTimer_,J),J.JSC$17398_backChannelRetryCount_=0)},DBR=function(J){if(J.JSC$17398_backChannelRequest_||J.JSC$17398_backChannelTimerId_||J.JSC$17398_backChannelRetryCount_>=3)return!1;
J.JSC$17398_channelDebug_.debug("Going to retry GET");J.JSC$17398_backChannelAttemptId_++;J.JSC$17398_backChannelTimerId_=np((0,_.Wa)(J.JSC$17400_onStartBackChannelTimer_,J),OCo(J,J.JSC$17398_backChannelRetryCount_));J.JSC$17398_backChannelRetryCount_++;return!0};
uP.prototype.JSC$17400_onStartBackChannelTimer_=function(){this.JSC$17398_backChannelTimerId_=null;eCh(this);if(this.detectBufferingProxy_&&!this.bpDetectionDone_)if(this.JSC$17398_backChannelRequest_==null||this.handshakeRttMs_<=0)this.JSC$17398_channelDebug_.warning("Skip bpDetectionTimerId_ "+this.JSC$17398_backChannelRequest_+" "+this.handshakeRttMs_);else{var J=2*this.handshakeRttMs_;this.JSC$17398_channelDebug_.info("BP detection timer enabled: "+J);this.bpDetectionTimerId_=np((0,_.Wa)(this.onBpDetectionTimer_,
this),J)}};
uP.prototype.onBpDetectionTimer_=function(){if(this.bpDetectionTimerId_){this.bpDetectionTimerId_=null;this.JSC$17398_channelDebug_.info("BP detection timeout reached.");if(this.JSC$17398_backChannelRequest_.JSC$17379_xmlHttp_!=null){var J=this.JSC$17398_backChannelRequest_.JSC$17379_xmlHttp_.getResponseText();J&&this.JSC$17398_channelDebug_.warning("Timer should have been cancelled : "+J)}this.JSC$17398_channelDebug_.info("Buffering proxy detected and switch to long-polling!");this.enableStreaming_=
!1;this.bpDetectionDone_=!0;iP(10);LRp(this);eCh(this)}else this.JSC$17398_channelDebug_.warning("Invalid operation.")};
var T2R=function(J){J.bpDetectionTimerId_!=null&&(J.JSC$17398_channelDebug_.debug("Cancel the BP detection timer."),_.mo.clearTimeout(J.bpDetectionTimerId_),J.bpDetectionTimerId_=null)},eCh=function(J){J.JSC$17398_channelDebug_.debug("Creating new HttpRequest");
J.JSC$17398_backChannelRequest_=new rE(J,J.JSC$17398_channelDebug_,J.sid_,"rpc",J.JSC$17398_backChannelAttemptId_);J.httpHeadersOverwriteParam_===null&&(J.JSC$17398_backChannelRequest_.JSC$17379_extraHeaders_=J.JSC$17398_extraHeaders_);J.JSC$17398_backChannelRequest_.JSC$17379_readyStateChangeThrottleMs_=0;var c=J.JSC$17398_backChannelUri_.clone();_.Ra(c,"RID","rpc");_.Ra(c,"SID",J.sid_);_.Ra(c,"AID",J.JSC$17398_lastArrayId_);_.Ra(c,"CI",J.enableStreaming_?"0":"1");!J.enableStreaming_&&J.longPollingTimeout_&&
_.Ra(c,"TO",J.longPollingTimeout_);_.Ra(c,"TYPE","xmlhttp");fp(J,c);J.httpHeadersOverwriteParam_&&J.JSC$17398_extraHeaders_&&aLS(c,J.httpHeadersOverwriteParam_,J.JSC$17398_extraHeaders_);J.backChannelRequestTimeoutMs_&&J.JSC$17398_backChannelRequest_.setTimeout(J.backChannelRequestTimeoutMs_);var m=J.JSC$17398_backChannelRequest_,b=J.JSC$17398_hostPrefix_;m.JSC$17379_type_=1;m.JSC$17379_baseUri_=_.Bz(c.clone());m.JSC$17379_postData_=null;m.decodeChunks_=!0;V_p(m,b);J.JSC$17398_channelDebug_.debug("New Request created")};
uP.prototype.JSC$17400_onBackChannelDead_=function(){this.JSC$17398_deadBackChannelTimerId_!=null&&(this.JSC$17398_deadBackChannelTimerId_=null,LRp(this),DBR(this),iP(19))};
var sEu=function(J){J.JSC$17398_deadBackChannelTimerId_!=null&&(_.mo.clearTimeout(J.JSC$17398_deadBackChannelTimerId_),J.JSC$17398_deadBackChannelTimerId_=null)},HCp=function(J,c){J.JSC$17398_channelDebug_.debug("Request complete");
var m=null;if(J.JSC$17398_backChannelRequest_==c){sEu(J);T2R(J);J.JSC$17398_backChannelRequest_=null;var b=2}else if(rES(J.forwardChannelRequestPool_,c))m=c.JSC$17379_pendingMessages_,XsR(J.forwardChannelRequestPool_,c),b=1;else return;if(J.state_!=0)if(c.JSC$17379_successful_)b==1?(lYs(c.JSC$17379_postData_?c.JSC$17379_postData_.length:0,Date.now()-c.JSC$17379_requestStartTime_,J.JSC$17398_forwardChannelRetryCount_),G_R(J)):QE5(J);else{var x=c.JSC$17379_lastStatusCode_,P=c.getLastError();if(P==3||
P==0&&x>0)J.JSC$17398_channelDebug_.debug("Not retrying due to error type"),x>200&&(J.errorResponseStatusCode_=c.JSC$17379_lastStatusCode_);else{J.JSC$17398_channelDebug_.debug(function(){return"Maybe retrying, last error: "+mB4(P,J.errorResponseStatusCode_)});
if(b==1&&AER(J,c)||b==2&&DBR(J))return;J.JSC$17398_channelDebug_.debug("Exceeded max number of retries")}m&&m.length>0&&qZr(J.forwardChannelRequestPool_,m);J.JSC$17398_channelDebug_.debug("Error: HTTP request failed");switch(P){case 1:DU(J,5);break;case 4:DU(J,10);break;case 3:DU(J,6);break;default:DU(J,2)}}},OCo=function(J,c){var m=J.JSC$17398_baseRetryDelayMs_+Math.floor(Math.random()*J.JSC$17398_retryDelaySeedMs_);
J.isActive()||(J.JSC$17398_channelDebug_.debug("Inactive channel"),m*=2);return m*c};
uP.prototype.onInput_=function(J,c){for(var m=0;m<J.length;m++){var b=J[m];this.JSC$17398_lastArrayId_=b[0];b=b[1];if(this.state_==2)if(b[0]=="c"){this.sid_=b[1];this.JSC$17398_hostPrefix_=b[2];var x=b[3];x!=null&&(this.JSC$17400_channelVersion_=x,this.JSC$17398_channelDebug_.info("VER="+this.JSC$17400_channelVersion_));x=b[4];x!=null&&(this.serverVersion_=x,this.JSC$17398_channelDebug_.info("SVER="+this.serverVersion_));b=b[5];b!=null&&typeof b==="number"&&b>0&&(this.backChannelRequestTimeoutMs_=
b*=1.5,this.JSC$17398_channelDebug_.info("backChannelRequestTimeoutMs_="+b));if(b=c.JSC$17379_xmlHttp_){var P=tb(b,"X-Client-Wire-Protocol");P&&(x=this.forwardChannelRequestPool_,!x.requestPool_&&(_.tq(P,"spdy")||_.tq(P,"quic")||_.tq(P,"h2"))&&(x.JSC$17389_maxSize_=x.maxPoolSizeConfigured_,x.requestPool_=new Set,x.JSC$17389_request_&&(YZe(x,x.JSC$17389_request_),x.JSC$17389_request_=null)));this.httpSessionIdParam_&&((b=tb(b,"X-HTTP-Session-Id"))?(this.httpSessionId_=b,_.Ra(this.JSC$17398_forwardChannelUri_,
this.httpSessionIdParam_,b)):this.JSC$17398_channelDebug_.warning("Missing X_HTTP_SESSION_ID in the handshake response"))}this.state_=3;this.handler_&&this.handler_.JSC$17404_channelOpened();this.detectBufferingProxy_&&(this.handshakeRttMs_=Date.now()-c.JSC$17379_requestStartTime_,this.JSC$17398_channelDebug_.info("Handshake RTT: "+this.handshakeRttMs_+"ms"));b=c;x=$Bf(this,this.JSC$17398_supportsCrossDomainXhrs_?this.JSC$17398_hostPrefix_:null,this.JSC$17398_path_);this.JSC$17398_channelDebug_.debug("GetBackChannelUri: "+
x);this.JSC$17398_backChannelUri_=x;b.initialResponseDecoded_?(this.JSC$17398_channelDebug_.debug("Upgrade the handshake request to a backchannel."),XsR(this.forwardChannelRequestPool_,b),x=b,(P=this.backChannelRequestTimeoutMs_)&&x.setTimeout(P),x.JSC$17379_watchDogTimerId_&&(Ifh(x),M_5(x)),this.JSC$17398_backChannelRequest_=b):QE5(this);this.JSC$17398_outgoingMaps_.length>0&&G_R(this)}else b[0]!="stop"&&b[0]!="close"||DU(this,7);else this.state_==3&&(b[0]=="stop"||b[0]=="close"?b[0]=="stop"?DU(this,
7):this.disconnect():b[0]!="noop"&&this.handler_&&this.handler_.JSC$17404_channelHandleArray(b),this.JSC$17398_backChannelRetryCount_=0)}};
var DU=function(J,c){J.JSC$17398_channelDebug_.info("Error code "+c);if(c==2){var m=(0,_.Wa)(J.testNetworkCallback_,J),b=J.networkTestUrl_,x=!b;b=new _.oz(b||"//www.google.com/images/cleardot.gif");_.mo.location&&_.mo.location.protocol=="http"||_.Ai(b,"https");_.Bz(b);x?UB4(b.toString(),m):SZ5(b.toString(),m)}else iP(2);J.onError_(c)};
uP.prototype.testNetworkCallback_=function(J){J?(this.JSC$17398_channelDebug_.info("Successfully pinged google.com"),iP(2)):(this.JSC$17398_channelDebug_.info("Failed to ping google.com"),iP(1))};
uP.prototype.onError_=function(J){this.JSC$17398_channelDebug_.debug("HttpChannel: error - "+J);this.state_=0;this.handler_&&this.handler_.JSC$17404_channelError(J);vcS(this);Eco(this)};
var vcS=function(J){J.state_=0;J.nonAckedMapsAtChannelClose_=[];if(J.handler_){var c=ZC5(J.forwardChannelRequestPool_);if(c.length!=0||J.JSC$17398_outgoingMaps_.length!=0)J.JSC$17398_channelDebug_.debug(function(){return"Number of undelivered maps, pending: "+c.length+", outgoing: "+J.JSC$17398_outgoingMaps_.length}),_.Br(J.nonAckedMapsAtChannelClose_,c),_.Br(J.nonAckedMapsAtChannelClose_,J.JSC$17398_outgoingMaps_),J.forwardChannelRequestPool_.JSC$17389_pendingMessages_.length=0,_.Fe(J.JSC$17398_outgoingMaps_),
J.JSC$17398_outgoingMaps_.length=0;
J.handler_.JSC$17404_channelClosed()}},jEr=function(J){if(J.state_==0)return J.nonAckedMapsAtChannelClose_;
var c=[];_.Br(c,ZC5(J.forwardChannelRequestPool_));_.Br(c,J.JSC$17398_outgoingMaps_);return c},$Bf=function(J,c,m){var b=_.O7(m);
b.JSC$8042_domain_!=""?(c&&_.Rs(b,c+"."+b.JSC$8042_domain_),_.os(b,b.JSC$8042_port_)):(b=_.mo.location,b=b7R(b.protocol,c?c+"."+b.hostname:b.hostname,+b.port,m));c=J.httpSessionIdParam_;m=J.httpSessionId_;c&&m&&_.Ra(b,c,m);_.Ra(b,"VER",J.JSC$17400_channelVersion_);fp(J,b);return b},psR=function(J,c,m){if(c&&!J.JSC$17398_supportsCrossDomainXhrs_)throw Error("wk");
c=J.usesFetchStreams_&&!J.JSC$17398_xmlHttpFactory_?new _.wb(new fe({streamBinaryChunks:m})):new _.wb(J.JSC$17398_xmlHttpFactory_);c.JSC$7807_withCredentials_=J.JSC$17398_supportsCrossDomainXhrs_;return c};
uP.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
var FRR=function(){};
_.V=FRR.prototype;_.V.JSC$17404_channelOpened=function(){};
_.V.JSC$17404_channelHandleArray=function(){};
_.V.JSC$17404_channelError=function(){};
_.V.JSC$17404_channelClosed=function(){};
_.V.isActive=function(){return!0};
_.V.JSC$17404_badMapError=function(){};var lfp=function(){},Xq=function(J,c){_.KI.call(this);
this.JSC$17407_channel_=new uP(c);this.JSC$17407_url_=J;this.messageUrlParams_=c&&c.messageUrlParams||null;J=c&&c.messageHeaders||null;c&&c.clientProtocolHeaderRequired&&(J?_.Lw.set(J,"X-Client-Protocol","webchannel"):J=_.Lw.create("X-Client-Protocol","webchannel"));this.JSC$17407_channel_.JSC$17398_extraHeaders_=J;J=c&&c.initMessageHeaders||null;c&&c.messageContentType&&(J?_.Lw.set(J,"X-WebChannel-Content-Type",c.messageContentType):J=_.Lw.create("X-WebChannel-Content-Type",c.messageContentType));
c&&c.clientProfile&&(J?_.Lw.set(J,"X-WebChannel-Client-Profile",c.clientProfile):J=_.Lw.create("X-WebChannel-Client-Profile",c.clientProfile));this.JSC$17407_channel_.initHeaders_=J;(J=c&&c.httpHeadersOverwriteParam)&&!_.Mf(J)&&(this.JSC$17407_channel_.httpHeadersOverwriteParam_=J);this.supportsCrossDomainXhr_=c&&c.supportsCrossDomainXhr||!1;this.sendRawJson_=c&&c.sendRawJson||!1;(c=c&&c.httpSessionIdParam)&&!_.Mf(c)&&(this.JSC$17407_channel_.httpSessionIdParam_=c,_.Lw.containsKey(this.messageUrlParams_,
c)&&_.Lw.remove(this.messageUrlParams_,c));this.channelHandler_=new YF(this)};
_.yv(Xq,_.KI);Xq.prototype.open=function(){this.JSC$17407_channel_.handler_=this.channelHandler_;this.supportsCrossDomainXhr_&&(this.JSC$17407_channel_.JSC$17398_supportsCrossDomainXhrs_=!0);this.JSC$17407_channel_.connect(this.JSC$17407_url_,this.messageUrlParams_||void 0)};
Xq.prototype.close=function(){this.JSC$17407_channel_.disconnect()};
Xq.prototype.send=function(J){var c=this.JSC$17407_channel_;if(typeof J==="string"){var m={};m.__data__=J;J=m}else this.sendRawJson_&&(m={},m.__data__=(0,_.TE)(J),J=m);c.JSC$17398_outgoingMaps_.push(new zC5(c.JSC$17398_nextMapId_++,J));c.state_==3&&G_R(c)};
Xq.prototype.disposeInternal=function(){this.JSC$17407_channel_.handler_=null;delete this.channelHandler_;this.JSC$17407_channel_.disconnect();delete this.JSC$17407_channel_;Xq.superClass_.disposeInternal.call(this)};
var yEp=function(J){AiR.call(this);J.__headers__&&(this.headers=J.__headers__,this.statusCode=J.__status__,delete J.__headers__,delete J.__status__);var c=J.__sm__;c?this.data=(this.metadataKey=_.Lw.getAnyKey(c))?_.Lw.get(c,this.metadataKey):c:this.data=J};
_.yv(yEp,AiR);var B2R=function(J){R61.call(this);this.status=1;this.errorCode=J};
_.yv(B2R,R61);var YF=function(J){this.JSC$17414_channel_=J};
_.yv(YF,FRR);YF.prototype.JSC$17404_channelOpened=function(){this.JSC$17414_channel_.dispatchEvent("w")};
YF.prototype.JSC$17404_channelHandleArray=function(J){this.JSC$17414_channel_.dispatchEvent(new yEp(J))};
YF.prototype.JSC$17404_channelError=function(J){this.JSC$17414_channel_.dispatchEvent(new B2R(J))};
YF.prototype.JSC$17404_channelClosed=function(){this.JSC$17414_channel_.dispatchEvent("x")};
var gcr=function(J,c){this.transportChannel_=J;this.JSC$17417_channel_=c},JWR=function(J){return jEr(J.JSC$17417_channel_).map(function(c){var m=J.transportChannel_;
c=c.map;"__data__"in c?(c=c.__data__,m=m.sendRawJson_?(0,_.hAu)(c):c):m=c;return m})};var ZU=function(J){cWR.dispatchEvent(new mwR(cWR,J))},cWR=new _.KI,mwR=function(J){_.Mb.call(this,"statevent",J)};
_.D(mwR,_.Mb);var qV=function(J,c,m,b,x){this.JSC$17422_channel_=J;this.JSC$17422_channelDebug_=c;this.sid_=m;this.JSC$17422_rid_=b;this.JSC$17422_retryId_=x||1;this.timeout_=45E3;this.JSC$17422_eventHandler_=new _.J0(this);this.pollingTimer_=new _.gP;this.pollingTimer_.setInterval(250)};
_.V=qV.prototype;_.V.JSC$17424_extraHeaders_=null;_.V.JSC$17424_successful_=!1;_.V.JSC$17424_watchDogTimerId_=null;_.V.JSC$17424_watchDogTimeoutTime_=null;_.V.JSC$17424_requestStartTime_=null;_.V.JSC$17424_type_=null;_.V.JSC$17424_baseUri_=null;_.V.JSC$17424_requestUri_=null;_.V.JSC$17424_postData_=null;_.V.JSC$17424_xmlHttp_=null;_.V.JSC$17424_xmlHttpChunkStart_=0;_.V.trident_=null;_.V.JSC$17424_verb_=null;_.V.JSC$17424_lastError_=null;_.V.JSC$17424_lastStatusCode_=-1;_.V.sendClose_=!0;
_.V.JSC$17424_cancelled_=!1;_.V.JSC$17424_readyStateChangeThrottleMs_=0;_.V.JSC$17424_readyStateChangeThrottle_=null;var b_F=function(J,c){switch(J){case 0:return"Non-200 return code ("+c+")";case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},xwp={},VzS={};
qV.prototype.setTimeout=function(J){this.timeout_=J};
var Mzf=function(J,c,m){J.JSC$17424_type_=1;J.JSC$17424_baseUri_=_.Bz(c.clone());J.JSC$17424_postData_=m;J.decodeChunks_=!0;P4o(J,null)},pEF=function(J,c,m,b,x){J.JSC$17424_type_=1;
J.JSC$17424_baseUri_=_.Bz(c.clone());J.JSC$17424_postData_=null;J.decodeChunks_=m;x&&(J.sendClose_=!1);P4o(J,b)},P4o=function(J,c){J.JSC$17424_requestStartTime_=Date.now();
NDS(J);J.JSC$17424_requestUri_=J.JSC$17424_baseUri_.clone();b2(J.JSC$17424_requestUri_,"t",J.JSC$17422_retryId_);J.JSC$17424_xmlHttpChunkStart_=0;J.JSC$17424_xmlHttp_=J.JSC$17422_channel_.JSC$17431_createXhrIo(J.JSC$17422_channel_.JSC$17431_shouldUseSecondaryDomains()?c:null);J.JSC$17424_readyStateChangeThrottleMs_>0&&(J.JSC$17424_readyStateChangeThrottle_=new _.FU((0,_.Wa)(J.JSC$17424_xmlHttpHandler_,J,J.JSC$17424_xmlHttp_),J.JSC$17424_readyStateChangeThrottleMs_));J.JSC$17422_eventHandler_.listen(J.JSC$17424_xmlHttp_,
"readystatechange",J.JSC$17424_readyStateChangeHandler_);c=J.JSC$17424_extraHeaders_?_.Lw.clone(J.JSC$17424_extraHeaders_):{};J.JSC$17424_postData_?(J.JSC$17424_verb_="POST",c["Content-Type"]="application/x-www-form-urlencoded",J.JSC$17424_xmlHttp_.send(J.JSC$17424_requestUri_,J.JSC$17424_verb_,J.JSC$17424_postData_,c)):(J.JSC$17424_verb_="GET",J.sendClose_&&!_.ms&&(c.Connection="close"),J.JSC$17424_xmlHttp_.send(J.JSC$17424_requestUri_,J.JSC$17424_verb_,null,c));J.JSC$17422_channel_.notifyServerReachabilityEvent(1);
c=J.JSC$17422_channelDebug_;var m=J.JSC$17424_postData_;if(m){var b="";m=m.split("&");for(var x=0;x<m.length;x++){var P=m[x].split("=");if(P.length>1){var p=P[0];P=P[1];var t=p.split("_");b=t.length>=2&&t[1]=="type"?b+(p+"="+P+"&"):b+(p+"=redacted&")}}}else b=null;c.info("XMLHTTP REQ ("+J.JSC$17422_rid_+") [attempt "+J.JSC$17422_retryId_+"]: "+J.JSC$17424_verb_+"\n"+J.JSC$17424_requestUri_+"\n"+b)};
qV.prototype.JSC$17424_readyStateChangeHandler_=function(J){J=J.target;var c=this.JSC$17424_readyStateChangeThrottle_;c&&_.rb(J)==3?(this.JSC$17422_channelDebug_.debug("Throttling readystatechange."),c.fire()):this.JSC$17424_xmlHttpHandler_(J)};
qV.prototype.JSC$17424_xmlHttpHandler_=function(J){try{if(J==this.JSC$17424_xmlHttp_)a:{var c=_.rb(this.JSC$17424_xmlHttp_),m=this.JSC$17424_xmlHttp_.JSC$7807_lastErrorCode_,b=this.JSC$17424_xmlHttp_.getStatus();if(_.ms&&!_.b0("420+")){if(c<4)break a}else if(c<3||c==3&&!this.JSC$17424_xmlHttp_.getResponseText())break a;this.JSC$17424_cancelled_||c!=4||m==7||(m==8||b<=0?this.JSC$17422_channel_.notifyServerReachabilityEvent(3):this.JSC$17422_channel_.notifyServerReachabilityEvent(2));tzr(this);var x=
this.JSC$17424_xmlHttp_.getStatus();this.JSC$17424_lastStatusCode_=x;var P=this.JSC$17424_xmlHttp_.getResponseText();P||this.JSC$17422_channelDebug_.debug("No response text for uri "+this.JSC$17424_requestUri_+" status "+x);this.JSC$17424_successful_=x==200;this.JSC$17422_channelDebug_.info("XMLHTTP RESP ("+this.JSC$17422_rid_+") [ attempt "+this.JSC$17422_retryId_+"]: "+this.JSC$17424_verb_+"\n"+this.JSC$17424_requestUri_+"\n"+c+" "+x);if(this.JSC$17424_successful_){c==4&&Up(this);if(this.decodeChunks_){for(J=
!0;!this.JSC$17424_cancelled_&&this.JSC$17424_xmlHttpChunkStart_<P.length;){var p=Ir4(this,P);if(p==VzS){c==4&&(this.JSC$17424_lastError_=4,ZU(15),J=!1);Sw(this.JSC$17422_channelDebug_,this.JSC$17422_rid_,null,"[Incomplete Response]");break}else if(p==xwp){this.JSC$17424_lastError_=4;ZU(16);Sw(this.JSC$17422_channelDebug_,this.JSC$17422_rid_,P,"[Invalid Chunk]");J=!1;break}else Sw(this.JSC$17422_channelDebug_,this.JSC$17422_rid_,p,null),Kcs(this,p)}c==4&&P.length==0&&(this.JSC$17424_lastError_=1,
ZU(17),J=!1);this.JSC$17424_successful_=this.JSC$17424_successful_&&J;J||(Sw(this.JSC$17422_channelDebug_,this.JSC$17422_rid_,P,"[Invalid Chunked Response]"),Up(this),C45(this))}else Sw(this.JSC$17422_channelDebug_,this.JSC$17422_rid_,P,null),Kcs(this,P);this.JSC$17424_successful_&&!this.JSC$17424_cancelled_&&(c==4?this.JSC$17422_channel_.JSC$17431_onRequestComplete(this):(this.JSC$17424_successful_=!1,NDS(this)))}else x==400&&P.indexOf("Unknown SID")>0?(this.JSC$17424_lastError_=3,ZU(13),this.JSC$17422_channelDebug_.warning("XMLHTTP Unknown SID ("+
this.JSC$17422_rid_+")")):(this.JSC$17424_lastError_=0,ZU(14),this.JSC$17422_channelDebug_.warning("XMLHTTP Bad status "+x+" ("+this.JSC$17422_rid_+")")),Up(this),C45(this)}else this.JSC$17422_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(t){this.JSC$17422_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_")}finally{}};
var Ir4=function(J,c){var m=J.JSC$17424_xmlHttpChunkStart_,b=c.indexOf("\n",m);if(b==-1)return VzS;m=Number(c.substring(m,b));if(isNaN(m))return xwp;b+=1;if(b+m>c.length)return VzS;c=c.slice(b,b+m);J.JSC$17424_xmlHttpChunkStart_=b+m;return c};
qV.prototype.cancel=function(){this.JSC$17424_cancelled_=!0;Up(this)};
var NDS=function(J){J.JSC$17424_watchDogTimeoutTime_=Date.now()+J.timeout_;ar1(J,J.timeout_)},ar1=function(J,c){if(J.JSC$17424_watchDogTimerId_!=null)throw Error("vk");
J.JSC$17424_watchDogTimerId_=s3((0,_.Wa)(J.JSC$17424_onWatchDogTimeout_,J),c)},tzr=function(J){J.JSC$17424_watchDogTimerId_&&(_.mo.clearTimeout(J.JSC$17424_watchDogTimerId_),J.JSC$17424_watchDogTimerId_=null)};
qV.prototype.JSC$17424_onWatchDogTimeout_=function(){this.JSC$17424_watchDogTimerId_=null;var J=Date.now();J-this.JSC$17424_watchDogTimeoutTime_>=0?(this.JSC$17422_channelDebug_.info("TIMEOUT: "+this.JSC$17424_requestUri_),this.JSC$17424_type_!=2&&this.JSC$17422_channel_.notifyServerReachabilityEvent(3),Up(this),this.JSC$17424_lastError_=2,ZU(18),C45(this)):(this.JSC$17422_channelDebug_.warning("WatchDog timer called too early"),ar1(this,this.JSC$17424_watchDogTimeoutTime_-J))};
var C45=function(J){J.JSC$17422_channel_.JSC$17431_isClosed()||J.JSC$17424_cancelled_||J.JSC$17422_channel_.JSC$17431_onRequestComplete(J)},Up=function(J){tzr(J);
_.yr(J.JSC$17424_readyStateChangeThrottle_);J.JSC$17424_readyStateChangeThrottle_=null;J.pollingTimer_.stop();J.JSC$17422_eventHandler_.removeAll();if(J.JSC$17424_xmlHttp_){var c=J.JSC$17424_xmlHttp_;J.JSC$17424_xmlHttp_=null;c.abort();c.dispose()}J.trident_&&(J.trident_=null)};
qV.prototype.getLastError=function(){return this.JSC$17424_lastError_};
var Kcs=function(J,c){try{J.JSC$17422_channel_.JSC$17431_onRequestData(J,c),J.JSC$17422_channel_.notifyServerReachabilityEvent(4)}catch(m){}};var Sw=function(J,c,m,b){var x=J.info;a:if(m&&m!="y2f%"){try{var P=JSON.parse(m);if(P)for(var p=0;p<P.length;p++)if(Array.isArray(P[p])){var t=P[p];if(!(t.length<2)){var I=t[1];if(Array.isArray(I)&&!(I.length<1)){var a=I[0];if(a!="noop"&&a!="stop")for(var k=1;k<I.length;k++)I[k]=""}}}var H=(0,_.TE)(P);break a}catch(T){J.debug("Exception parsing expected JS array - probably was not JS");H=m;break a}H=void 0}else H=m;x.call(J,"XMLHTTP TEXT ("+c+"): "+H+(b?" "+b:""))};
LL.prototype.debug=function(J){this.info(J)};
LL.prototype.info=function(){};
LL.prototype.warning=function(){};var kcs=function(J,c){this.JSC$17429_channel_=J;this.JSC$17429_channelDebug_=c;this.JSC$17429_parser_=new kF};
_.V=kcs.prototype;_.V.JSC$17431_extraHeaders_=null;_.V.JSC$17431_request_=null;_.V.receivedIntermediateResult_=!1;_.V.JSC$17431_path_=null;_.V.state_=null;_.V.JSC$17431_lastStatusCode_=-1;_.V.JSC$17431_hostPrefix_=null;_.V.blockedPrefix_=null;
_.V.connect=function(J){this.JSC$17431_path_=J;J=H_h(this.JSC$17429_channel_,this.JSC$17431_path_);ZU(3);Date.now();var c=this.JSC$17429_channel_.firstTestResults_;c!=null?(this.JSC$17431_hostPrefix_=c[0],(this.blockedPrefix_=c[1])?(this.state_=1,i_4(this)):(this.state_=2,n_R(this))):(b2(J,"MODE","init"),this.JSC$17431_request_=new qV(this,this.JSC$17429_channelDebug_),this.JSC$17431_request_.JSC$17424_extraHeaders_=this.JSC$17431_extraHeaders_,pEF(this.JSC$17431_request_,J,!1,null,!0),this.state_=
0)};
var i_4=function(J){var c=TDe(J.JSC$17429_channel_,J.blockedPrefix_,"/mail/images/cleardot.gif");_.Bz(c);FCR(c.toString(),5E3,(0,_.Wa)(J.checkBlockedCallback_,J),3,2E3);J.notifyServerReachabilityEvent(1)};
kcs.prototype.checkBlockedCallback_=function(J){if(J)this.state_=2,n_R(this);else{ZU(4);var c=this.JSC$17429_channel_;c.JSC$17432_channelDebug_.debug("Test Connection Blocked");c.JSC$17436_lastStatusCode_=c.connectionTest_.JSC$17431_lastStatusCode_;hr(c,9)}J&&this.notifyServerReachabilityEvent(2)};
var n_R=function(J){J.JSC$17429_channelDebug_.debug("TestConnection: starting stage 2");var c=J.JSC$17429_channel_.secondTestResults_;c!=null?(J.JSC$17429_channelDebug_.debug("TestConnection: skipping stage 2, precomputed result is "+c?"Buffered":"Unbuffered"),ZU(5),c?(ZU(11),dE(J.JSC$17429_channel_,J,!1)):(ZU(12),dE(J.JSC$17429_channel_,J,!0))):(J.JSC$17431_request_=new qV(J,J.JSC$17429_channelDebug_),J.JSC$17431_request_.JSC$17424_extraHeaders_=J.JSC$17431_extraHeaders_,c=wEo(J.JSC$17429_channel_,
J.JSC$17431_hostPrefix_,J.JSC$17431_path_),ZU(5),b2(c,"TYPE","xmlhttp"),pEF(J.JSC$17431_request_,c,!1,J.JSC$17431_hostPrefix_,!1))};
_.V=kcs.prototype;_.V.JSC$17431_createXhrIo=function(J){return this.JSC$17429_channel_.JSC$17431_createXhrIo(J)};
_.V.abort=function(){this.JSC$17431_request_&&(this.JSC$17431_request_.cancel(),this.JSC$17431_request_=null);this.JSC$17431_lastStatusCode_=-1};
_.V.JSC$17431_isClosed=function(){return!1};
_.V.JSC$17431_onRequestData=function(J,c){this.JSC$17431_lastStatusCode_=J.JSC$17424_lastStatusCode_;if(this.state_==0)if(this.JSC$17429_channelDebug_.debug("TestConnection: Got data for stage 1"),c){try{var m=this.JSC$17429_parser_.parse(c)}catch(b){rWS(this.JSC$17429_channel_,this);return}this.JSC$17431_hostPrefix_=m[0];this.blockedPrefix_=m[1]}else this.JSC$17429_channelDebug_.debug("TestConnection: Null responseText"),rWS(this.JSC$17429_channel_,this);else this.state_==2&&(this.receivedIntermediateResult_?
(ZU(7),Date.now()):c=="11111"?(ZU(6),this.receivedIntermediateResult_=!0,Date.now(),this.JSC$17431_lastStatusCode_=200,this.JSC$17431_request_.cancel(),this.JSC$17429_channelDebug_.debug("Test connection succeeded; using streaming connection"),ZU(12),dE(this.JSC$17429_channel_,this,!0)):(ZU(8),Date.now(),this.receivedIntermediateResult_=!1))};
_.V.JSC$17431_onRequestComplete=function(){this.JSC$17431_lastStatusCode_=this.JSC$17431_request_.JSC$17424_lastStatusCode_;this.JSC$17431_request_.JSC$17424_successful_?this.state_==0?(this.JSC$17429_channelDebug_.debug("TestConnection: request complete for initial check"),this.blockedPrefix_?(this.state_=1,i_4(this)):(this.state_=2,n_R(this))):this.state_==2&&(this.JSC$17429_channelDebug_.debug("TestConnection: request complete for stage 2"),this.receivedIntermediateResult_?(this.JSC$17429_channelDebug_.debug("Test connection succeeded; using streaming connection"),
ZU(12),dE(this.JSC$17429_channel_,this,!0)):(this.JSC$17429_channelDebug_.debug("Test connection failed; not using streaming"),ZU(11),dE(this.JSC$17429_channel_,this,!1))):(this.JSC$17429_channelDebug_.debug("TestConnection: request failed, in state "+this.state_),this.state_==0?ZU(9):this.state_==2&&ZU(10),rWS(this.JSC$17429_channel_,this,this.JSC$17431_request_.getLastError()))};
_.V.JSC$17431_shouldUseSecondaryDomains=function(){return this.JSC$17429_channel_.JSC$17431_shouldUseSecondaryDomains()};
_.V.isActive=function(){return this.JSC$17429_channel_.isActive()};
_.V.notifyServerReachabilityEvent=function(J){this.JSC$17429_channel_.notifyServerReachabilityEvent(J)};var $F=function(J,c,m){this.state_=1;this.JSC$17432_outgoingMaps_=[];this.pendingMaps_=[];this.JSC$17432_channelDebug_=new LL;this.JSC$17432_parser_=new kF;this.firstTestResults_=J||null;this.secondTestResults_=c!=null?c:null;this.asyncTest_=m||!1},sbR=function(J,c){this.JSC$17434_mapId=J;
this.map=c;this.context=null};
_.V=$F.prototype;_.V.JSC$17436_extraHeaders_=null;_.V.JSC$17436_extraParams_=null;_.V.forwardChannelRequest_=null;_.V.JSC$17436_backChannelRequest_=null;_.V.JSC$17436_path_=null;_.V.JSC$17436_forwardChannelUri_=null;_.V.JSC$17436_backChannelUri_=null;_.V.JSC$17436_hostPrefix_=null;_.V.JSC$17436_nextRid_=0;_.V.JSC$17436_nextMapId_=0;_.V.handler_=null;_.V.JSC$17436_forwardChannelTimerId_=null;_.V.JSC$17436_backChannelTimerId_=null;_.V.JSC$17436_deadBackChannelTimerId_=null;_.V.connectionTest_=null;
_.V.useChunked_=null;_.V.JSC$17436_lastArrayId_=-1;_.V.JSC$17436_lastPostResponseArrayId_=-1;_.V.JSC$17436_lastStatusCode_=-1;_.V.JSC$17436_forwardChannelRetryCount_=0;_.V.JSC$17436_backChannelRetryCount_=0;_.V.JSC$17436_channelVersion_=8;var Lcr={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},Dwh=function(J,c,m,b){_.Mb.call(this,"timingevent",J);this.size=c;this.rtt=m;this.retries=b};
_.yv(Dwh,_.Mb);var WcR=function(J){_.Mb.call(this,"serverreachability",J)};
_.yv(WcR,_.Mb);$F.prototype.connect=function(J,c,m,b,x){this.JSC$17432_channelDebug_.debug("connect()");ZU(0);this.JSC$17436_path_=c;this.JSC$17436_extraParams_=m||{};b&&x!==void 0&&(this.JSC$17436_extraParams_.OSID=b,this.JSC$17436_extraParams_.OAID=x);this.asyncTest_?(s3((0,_.Wa)(this.connectTest_,this,J),100),zXs(this)):this.connectTest_(J)};
$F.prototype.disconnect=function(){this.JSC$17432_channelDebug_.debug("disconnect()");ulF(this);if(this.state_==3){var J=this.JSC$17436_nextRid_++,c=this.JSC$17436_forwardChannelUri_.clone();_.Ra(c,"SID",this.sid_);_.Ra(c,"RID",J);_.Ra(c,"TYPE","terminate");Gs(this,c);J=new qV(this,this.JSC$17432_channelDebug_,this.sid_,J);J.JSC$17424_type_=2;J.JSC$17424_baseUri_=_.Bz(c.clone());(new Image).src=J.JSC$17424_baseUri_.toString();J.JSC$17424_requestStartTime_=Date.now();NDS(J)}frF(this)};
$F.prototype.connectTest_=function(J){this.JSC$17432_channelDebug_.debug("connectTest_()");this.connectionTest_=new kcs(this,this.JSC$17432_channelDebug_);this.connectionTest_.JSC$17431_extraHeaders_=this.JSC$17436_extraHeaders_;this.connectionTest_.JSC$17429_parser_=this.JSC$17432_parser_;this.connectionTest_.connect(J)};
var zXs=function(J){J.JSC$17432_channelDebug_.debug("connectChannel_()");J.JSC$17436_ensureInState_(1,0);J.JSC$17436_forwardChannelUri_=H_h(J,J.JSC$17436_path_);Y_R(J)},ulF=function(J){J.connectionTest_&&(J.connectionTest_.abort(),J.connectionTest_=null);
J.JSC$17436_backChannelRequest_&&(J.JSC$17436_backChannelRequest_.cancel(),J.JSC$17436_backChannelRequest_=null);J.JSC$17436_backChannelTimerId_&&(_.mo.clearTimeout(J.JSC$17436_backChannelTimerId_),J.JSC$17436_backChannelTimerId_=null);XE4(J);J.forwardChannelRequest_&&(J.forwardChannelRequest_.cancel(),J.forwardChannelRequest_=null);J.JSC$17436_forwardChannelTimerId_&&(_.mo.clearTimeout(J.JSC$17436_forwardChannelTimerId_),J.JSC$17436_forwardChannelTimerId_=null)},Z_F=function(J,c){if(J.state_==0)throw Error("yk");
J.JSC$17432_outgoingMaps_.length==1E3&&J.JSC$17432_parser_.stringify(c);J.JSC$17432_outgoingMaps_.push(new sbR(J.JSC$17436_nextMapId_++,c));J.state_!=2&&J.state_!=3||Y_R(J)};
$F.prototype.JSC$17431_isClosed=function(){return this.state_==0};
$F.prototype.getState=function(){return this.state_};
var Y_R=function(J){J.forwardChannelRequest_||J.JSC$17436_forwardChannelTimerId_||(J.JSC$17436_forwardChannelTimerId_=s3((0,_.Wa)(J.JSC$17436_onStartForwardChannelTimer_,J),0),J.JSC$17436_forwardChannelRetryCount_=0)};
$F.prototype.JSC$17436_onStartForwardChannelTimer_=function(J){this.JSC$17436_forwardChannelTimerId_=null;q_p(this,J)};
var q_p=function(J,c){J.JSC$17432_channelDebug_.debug("startForwardChannel_");if(J.state_==1){if(!c){J.JSC$17432_channelDebug_.debug("open_()");J.JSC$17436_nextRid_=Math.floor(Math.random()*1E5);c=J.JSC$17436_nextRid_++;var m=new qV(J,J.JSC$17432_channelDebug_,"",c);m.JSC$17424_extraHeaders_=J.JSC$17436_extraHeaders_;var b=Uw4(J),x=J.JSC$17436_forwardChannelUri_.clone();_.Ra(x,"RID",c);_.Ra(x,"CVER","1");Gs(J,x);Mzf(m,x,b);J.forwardChannelRequest_=m;J.state_=2}}else J.state_==3&&(c?S_u(J,c):J.JSC$17432_outgoingMaps_.length==
0?J.JSC$17432_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):J.forwardChannelRequest_||(S_u(J),J.JSC$17432_channelDebug_.debug("startForwardChannel_ finished, sent request")))},S_u=function(J,c){if(c)if(J.JSC$17436_channelVersion_>6){J.JSC$17432_outgoingMaps_=J.pendingMaps_.concat(J.JSC$17432_outgoingMaps_);
J.pendingMaps_.length=0;var m=J.JSC$17436_nextRid_-1;c=Uw4(J)}else m=c.JSC$17422_rid_,c=c.JSC$17424_postData_;else m=J.JSC$17436_nextRid_++,c=Uw4(J);var b=J.JSC$17436_forwardChannelUri_.clone();_.Ra(b,"SID",J.sid_);_.Ra(b,"RID",m);_.Ra(b,"AID",J.JSC$17436_lastArrayId_);Gs(J,b);m=new qV(J,J.JSC$17432_channelDebug_,J.sid_,m,J.JSC$17436_forwardChannelRetryCount_+1);m.JSC$17424_extraHeaders_=J.JSC$17436_extraHeaders_;m.setTimeout(1E4+Math.round(1E4*Math.random()));J.forwardChannelRequest_=m;Mzf(m,b,c)},
Gs=function(J,c){J.handler_&&(J=J.handler_.JSC$17443_getAdditionalParams())&&_.Lw.forEach(J,function(m,b){_.Ra(c,b,m)})},Uw4=function(J){var c=Math.min(J.JSC$17432_outgoingMaps_.length,1E3),m=["count="+c];
if(J.JSC$17436_channelVersion_>6&&c>0){var b=J.JSC$17432_outgoingMaps_[0].JSC$17434_mapId;m.push("ofs="+b)}else b=0;for(var x={},P=0;P<c;x={mapId$jscomp$3:void 0},P++){x.mapId$jscomp$3=J.JSC$17432_outgoingMaps_[P].JSC$17434_mapId;var p=J.JSC$17432_outgoingMaps_[P].map;x.mapId$jscomp$3=J.JSC$17436_channelVersion_<=6?P:x.mapId$jscomp$3-b;try{_.Lw.forEach(p,function(t){return function(I,a){m.push("req"+t.mapId$jscomp$3+"_"+a+"="+encodeURIComponent(I))}}(x))}catch(t){m.push("req"+x.mapId$jscomp$3+"_type="+
encodeURIComponent("_badmap"))}}J.pendingMaps_=J.pendingMaps_.concat(J.JSC$17432_outgoingMaps_.splice(0,c));
return m.join("&")},hX5=function(J){J.JSC$17436_backChannelRequest_||J.JSC$17436_backChannelTimerId_||(J.JSC$17436_backChannelAttemptId_=1,J.JSC$17436_backChannelTimerId_=s3((0,_.Wa)(J.JSC$17436_onStartBackChannelTimer_,J),0),J.JSC$17436_backChannelRetryCount_=0)},$wR=function(J){if(J.JSC$17436_backChannelRequest_||J.JSC$17436_backChannelTimerId_||J.JSC$17436_backChannelRetryCount_>=3)return!1;
J.JSC$17432_channelDebug_.debug("Going to retry GET");J.JSC$17436_backChannelAttemptId_++;J.JSC$17436_backChannelTimerId_=s3((0,_.Wa)(J.JSC$17436_onStartBackChannelTimer_,J),dwr(J,J.JSC$17436_backChannelRetryCount_));J.JSC$17436_backChannelRetryCount_++;return!0};
$F.prototype.JSC$17436_onStartBackChannelTimer_=function(){this.JSC$17436_backChannelTimerId_=null;this.JSC$17432_channelDebug_.debug("Creating new HttpRequest");this.JSC$17436_backChannelRequest_=new qV(this,this.JSC$17432_channelDebug_,this.sid_,"rpc",this.JSC$17436_backChannelAttemptId_);this.JSC$17436_backChannelRequest_.JSC$17424_extraHeaders_=this.JSC$17436_extraHeaders_;this.JSC$17436_backChannelRequest_.JSC$17424_readyStateChangeThrottleMs_=0;var J=this.JSC$17436_backChannelUri_.clone();_.Ra(J,
"RID","rpc");_.Ra(J,"SID",this.sid_);_.Ra(J,"CI",this.useChunked_?"0":"1");_.Ra(J,"AID",this.JSC$17436_lastArrayId_);Gs(this,J);_.Ra(J,"TYPE","xmlhttp");pEF(this.JSC$17436_backChannelRequest_,J,!0,this.JSC$17436_hostPrefix_,!1);this.JSC$17432_channelDebug_.debug("New Request created")};
var dE=function(J,c,m){J.JSC$17432_channelDebug_.debug("Test Connection Finished");J.useChunked_=J.secondTestResults_==null?m:!J.secondTestResults_;J.JSC$17436_lastStatusCode_=c.JSC$17431_lastStatusCode_;J.asyncTest_||zXs(J)},rWS=function(J,c){J.JSC$17432_channelDebug_.debug("Test Connection Failed");
J.JSC$17436_lastStatusCode_=c.JSC$17431_lastStatusCode_;hr(J,2)};
$F.prototype.JSC$17431_onRequestData=function(J,c){if(this.state_!=0&&(this.JSC$17436_backChannelRequest_==J||this.forwardChannelRequest_==J))if(this.JSC$17436_lastStatusCode_=J.JSC$17424_lastStatusCode_,this.forwardChannelRequest_==J&&this.state_==3)if(this.JSC$17436_channelVersion_>7){try{var m=this.JSC$17432_parser_.parse(c)}catch(b){m=null}if(Array.isArray(m)&&m.length==3)if(c=m,c[0]==0)a:if(this.JSC$17432_channelDebug_.debug("Server claims our backchannel is missing."),this.JSC$17436_backChannelTimerId_)this.JSC$17432_channelDebug_.debug("But we are currently starting the request.");
else{if(this.JSC$17436_backChannelRequest_)if(this.JSC$17436_backChannelRequest_.JSC$17424_requestStartTime_+3E3<this.forwardChannelRequest_.JSC$17424_requestStartTime_)XE4(this),this.JSC$17436_backChannelRequest_.cancel(),this.JSC$17436_backChannelRequest_=null;else break a;else this.JSC$17432_channelDebug_.warning("We do not have a BackChannel established");$wR(this);ZU(19)}else this.JSC$17436_lastPostResponseArrayId_=c[1],J=this.JSC$17436_lastPostResponseArrayId_-this.JSC$17436_lastArrayId_,0<
J&&(c=c[2],this.JSC$17432_channelDebug_.debug(c+" bytes (in "+J+" arrays) are outstanding on the BackChannel"),c<37500&&this.useChunked_&&this.JSC$17436_backChannelRetryCount_==0&&!this.JSC$17436_deadBackChannelTimerId_&&(this.JSC$17436_deadBackChannelTimerId_=s3((0,_.Wa)(this.JSC$17436_onBackChannelDead_,this),6E3)));else this.JSC$17432_channelDebug_.debug("Bad POST response data returned"),hr(this,11)}else c!="y2f%"&&(this.JSC$17432_channelDebug_.debug("Bad data returned - missing/invald magic cookie"),
hr(this,11));else this.JSC$17436_backChannelRequest_==J&&XE4(this),_.Mf(c)||(J=this.JSC$17432_parser_.parse(c),this.onInput_(J))};
$F.prototype.JSC$17436_onBackChannelDead_=function(){this.JSC$17436_deadBackChannelTimerId_!=null&&(this.JSC$17436_deadBackChannelTimerId_=null,this.JSC$17436_backChannelRequest_.cancel(),this.JSC$17436_backChannelRequest_=null,$wR(this),ZU(20))};
var XE4=function(J){J.JSC$17436_deadBackChannelTimerId_!=null&&(_.mo.clearTimeout(J.JSC$17436_deadBackChannelTimerId_),J.JSC$17436_deadBackChannelTimerId_=null)};
$F.prototype.JSC$17431_onRequestComplete=function(J){this.JSC$17432_channelDebug_.debug("Request complete");if(this.JSC$17436_backChannelRequest_==J){XE4(this);this.JSC$17436_backChannelRequest_=null;var c=2}else if(this.forwardChannelRequest_==J)this.forwardChannelRequest_=null,c=1;else return;this.JSC$17436_lastStatusCode_=J.JSC$17424_lastStatusCode_;if(this.state_!=0)if(J.JSC$17424_successful_)if(c==1){c=J.JSC$17424_postData_?J.JSC$17424_postData_.length:0;J=Date.now()-J.JSC$17424_requestStartTime_;
var m=cWR;m.dispatchEvent(new Dwh(m,c,J,this.JSC$17436_forwardChannelRetryCount_));Y_R(this);this.handler_&&this.handler_.JSC$17443_channelSuccess(this,this.pendingMaps_);this.pendingMaps_.length=0}else hX5(this);else{m=J.getLastError();if(m==3||m==7||m==0&&this.JSC$17436_lastStatusCode_>0)this.JSC$17432_channelDebug_.debug("Not retrying due to error type");else{this.JSC$17432_channelDebug_.debug("Maybe retrying, last error: "+b_F(m,this.JSC$17436_lastStatusCode_));var b;if(b=c==1)this.forwardChannelRequest_||
this.JSC$17436_forwardChannelTimerId_||this.state_==1||this.JSC$17436_forwardChannelRetryCount_>=2?b=!1:(this.JSC$17432_channelDebug_.debug("Going to retry POST"),this.JSC$17436_forwardChannelTimerId_=s3((0,_.Wa)(this.JSC$17436_onStartForwardChannelTimer_,this,J),dwr(this,this.JSC$17436_forwardChannelRetryCount_)),this.JSC$17436_forwardChannelRetryCount_++,b=!0);if(b||c==2&&$wR(this))return;this.JSC$17432_channelDebug_.debug("Exceeded max number of retries")}this.JSC$17432_channelDebug_.debug("Error: HTTP request failed");
switch(m){case 1:hr(this,5);break;case 4:hr(this,10);break;case 3:hr(this,6);break;case 7:hr(this,12);break;default:hr(this,2)}}};
var dwr=function(J,c){var m=5E3+Math.floor(Math.random()*1E4);J.isActive()||(J.JSC$17432_channelDebug_.debug("Inactive channel"),m*=2);return m*c};
$F.prototype.onInput_=function(J){for(var c=0;c<J.length;c++){var m=J[c];this.JSC$17436_lastArrayId_=m[0];m=m[1];this.state_==2?m[0]=="c"?(this.sid_=m[1],this.JSC$17436_hostPrefix_=m[2],m=m[3],m!=null?this.JSC$17436_channelVersion_=m:this.JSC$17436_channelVersion_=6,this.state_=3,this.handler_&&this.handler_.JSC$17443_channelOpened(),this.JSC$17436_backChannelUri_=wEo(this,this.JSC$17436_hostPrefix_,this.JSC$17436_path_),hX5(this)):m[0]=="stop"&&hr(this,7):this.state_==3&&(m[0]=="stop"?hr(this,7):
m[0]!="noop"&&this.handler_&&this.handler_.JSC$17443_channelHandleArray(m),this.JSC$17436_backChannelRetryCount_=0)}};
$F.prototype.JSC$17436_ensureInState_=function(J){if(!_.Aq(arguments,this.state_))throw Error("zk`"+this.state_);};
var hr=function(J,c){J.JSC$17432_channelDebug_.info("Error code "+c);if(c==2||c==9){var m=null;J.handler_&&(m=null);var b=(0,_.Wa)(J.testGoogleComCallback_,J);m||(m=new _.oz("//www.google.com/images/cleardot.gif"),_.Bz(m));jNR(m.toString(),1E4,b)}else ZU(2);J.onError_(c)};
$F.prototype.testGoogleComCallback_=function(J){J?(this.JSC$17432_channelDebug_.info("Successfully pinged google.com"),ZU(2)):(this.JSC$17432_channelDebug_.info("Failed to ping google.com"),ZU(1),this.onError_(8))};
$F.prototype.onError_=function(J){this.JSC$17432_channelDebug_.debug("HttpChannel: error - "+J);this.state_=0;this.handler_&&this.handler_.JSC$17443_channelError(J);frF(this);ulF(this)};
var frF=function(J){J.state_=0;J.JSC$17436_lastStatusCode_=-1;if(J.handler_)if(J.pendingMaps_.length==0&&J.JSC$17432_outgoingMaps_.length==0)J.handler_.JSC$17443_channelClosed();else{J.JSC$17432_channelDebug_.debug("Number of undelivered maps, pending: "+J.pendingMaps_.length+", outgoing: "+J.JSC$17432_outgoingMaps_.length);var c=_.Fe(J.pendingMaps_),m=_.Fe(J.JSC$17432_outgoingMaps_);J.pendingMaps_.length=0;J.JSC$17432_outgoingMaps_.length=0;J.handler_.JSC$17443_channelClosed(c,m)}},H_h=function(J,
c){c=TDe(J,null,c);
J.JSC$17432_channelDebug_.debug("GetForwardChannelUri: "+c);return c},wEo=function(J,c,m){c=TDe(J,J.JSC$17431_shouldUseSecondaryDomains()?c:null,m);
J.JSC$17432_channelDebug_.debug("GetBackChannelUri: "+c);return c},TDe=function(J,c,m){var b=_.O7(m);
if(b.JSC$8042_domain_!="")c&&_.Rs(b,c+"."+b.JSC$8042_domain_),_.os(b,b.JSC$8042_port_);else{var x=window.location;b=b7R(x.protocol,c?c+"."+x.hostname:x.hostname,+x.port,m)}J.JSC$17436_extraParams_&&_.Lw.forEach(J.JSC$17436_extraParams_,function(P,p){_.Ra(b,p,P)});
_.Ra(b,"VER",J.JSC$17436_channelVersion_);Gs(J,b);return b};
$F.prototype.JSC$17431_createXhrIo=function(J){if(J)throw Error("wk");J=new _.wb;J.JSC$7807_withCredentials_=!1;return J};
$F.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
$F.prototype.notifyServerReachabilityEvent=function(J){var c=cWR;c.dispatchEvent(new WcR(c,J))};
$F.prototype.JSC$17431_shouldUseSecondaryDomains=function(){return!1};
new NpR;var GcF=function(){};
_.V=GcF.prototype;_.V.JSC$17443_channelOpened=function(){};
_.V.JSC$17443_channelHandleArray=function(){};
_.V.JSC$17443_channelSuccess=function(){};
_.V.JSC$17443_channelError=function(){};
_.V.JSC$17443_channelClosed=function(){};
_.V.JSC$17443_getAdditionalParams=function(){return{}};
_.V.isActive=function(){return!0};var E_h=function(J){J.front_.length===0&&(J.front_=J.back_,J.front_.reverse(),J.back_=[])};
_.V=yIR.prototype;_.V.enqueue=function(J){this.back_.push(J)};
_.V.peek=function(){E_h(this);return _.dT(this.front_)};
_.V.getCount=function(){return this.front_.length+this.back_.length};
_.V.isEmpty=function(){return this.front_.length===0&&this.back_.length===0};
_.V.clear=function(){this.front_=[];this.back_=[]};
_.V.contains=function(J){return _.Aq(this.front_,J)||_.Aq(this.back_,J)};
_.V.remove=function(J){var c=this.front_;var m=Array.prototype.lastIndexOf.call(c,J,c.length-1);m>=0?(_.e2(c,m),c=!0):c=!1;return c||_.j2(this.back_,J)};
_.V.getValues=function(){for(var J=[],c=this.front_.length-1;c>=0;--c)J.push(this.front_[c]);c=this.back_.length;for(var m=0;m<c;++m)J.push(this.back_[m]);return J};var Ep=function(J){this.JSC$17447_map_=new _.gy;this.size=0;J&&this.addAll(J)},v_e=function(J){var c=typeof J;
return c=="object"&&J||c=="function"?"o"+_.mj(J):c.charAt(0)+J};
_.V=Ep.prototype;_.V.getCount=function(){return this.JSC$17447_map_.size};
_.V.add=function(J){this.JSC$17447_map_.set(v_e(J),J);this.size=this.JSC$17447_map_.size};
_.V.addAll=function(J){J=_.O9(J);for(var c=J.length,m=0;m<c;m++)this.add(J[m]);this.size=this.JSC$17447_map_.size};
_.V.removeAll=function(J){J=_.O9(J);for(var c=J.length,m=0;m<c;m++)this.remove(J[m]);this.size=this.JSC$17447_map_.size};
_.V.delete=function(J){J=this.JSC$17447_map_.remove(v_e(J));this.size=this.JSC$17447_map_.size;return J};
_.V.remove=function(J){return this.delete(J)};
_.V.clear=function(){this.JSC$17447_map_.clear();this.size=0};
_.V.isEmpty=function(){return this.JSC$17447_map_.size===0};
_.V.has=function(J){return this.JSC$17447_map_.containsKey(v_e(J))};
_.V.contains=function(J){return this.JSC$17447_map_.containsKey(v_e(J))};
_.V.getValues=function(){return this.JSC$17447_map_.getValues()};
_.V.values=function(){return this.JSC$17447_map_.values()};
_.V.clone=function(){return new Ep(this)};
_.V.equals=function(J){return this.getCount()==cd1(J)&&O_R(this,J)};
var O_R=function(J,c){var m=cd1(c);if(J.getCount()>m)return!1;!(c instanceof Ep)&&m>5&&(c=new Ep(c));return mlR(J,function(b){var x=c;return x.contains&&typeof x.contains=="function"?x.contains(b):x.containsValue&&typeof x.containsValue=="function"?x.containsValue(b):_.yJ(x)||typeof x==="string"?_.Aq(x,b):_.Lw.containsValue(x,b)})};
Ep.prototype.__iterator__=function(){return this.JSC$17447_map_.__iterator__(!1)};
Ep.prototype[Symbol.iterator]=function(){return this.values()};var AWs={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(J){return(this._clampValue(J)-this.min)/(this.max-this.min)},
_clampValue:function(J){return Math.min(this.max,Math.max(this.min,this._calcStep(J)))},
_calcStep:function(J){J=parseFloat(J);if(!this.step)return J;J=Math.round((J-this.min)/this.step);return this.step<1?J/(1/this.step)+this.min:J*this.step+this.min},
_validateValue:function(){var J=this._clampValue(this.value);this.value=this.oldValue=isNaN(J)?this.oldValue:J;return this.value!==J},
_update:function(){this._validateValue();this._setRatio(this._calcRatio(this.value)*100)}};var RXR;var o_s;_.sB({_template:function(){if(o_s!==void 0)return o_s;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);var c=J.content,m=c.insertBefore;RXR===void 0&&(RXR=document.createElement("template"));var b=RXR;m.call(c,b.content.cloneNode(!0),J.content.firstChild);return o_s=J},
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(){_.o3(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(J){J.keyCode===27&&(J.preventDefault(),this.close())},
_track:function(J){if(!this.persistent&&!this.disableSwipe)switch(J.preventDefault(),J.detail.state){case "start":this._trackStart(J);break;case "track":this._trackMove(J);break;case "end":this._trackEnd(J)}},
_trackStart:function(){this._drawerState=this._DRAWER_STATE.TRACKING;var J=this.$.contentContainer.getBoundingClientRect();this._savedWidth=J.width;this._translateOffset=this.position==="left"?J.left:J.right-window.innerWidth;this._trackDetails=[];this._styleTransitionDuration(0);this.style.visibility="visible"},
_trackMove:function(J){this._trackDetails&&(this._translateDrawer(J.detail.dx+this._translateOffset),this._trackDetails.push({dx:J.detail.dx,timeStamp:Date.now()}))},
_trackEnd:function(J){if(this._trackDetails){var c=J.detail.dx+this._translateOffset,m=this.getWidth();c=this.position==="left"?c>=0||c<=-m:c<=0||c>=m;if(!c){var b=this._trackDetails;this._trackDetails=null;this._flingDrawer(J,b);if(this._drawerState===this._DRAWER_STATE.FLINGING)return}m/=2;J.detail.dx<-m?this.opened=this.position==="right":J.detail.dx>m&&(this.opened=this.position==="left");c?this.debounce("_resetDrawerState",this._resetDrawerState):this.debounce("_resetDrawerState",this._resetDrawerState,
this.transitionDuration);this._styleTransitionDuration(this.transitionDuration);this._resetDrawerTranslate();this.style.visibility=""}},
_calculateVelocity:function(J,c){for(var m=Date.now(),b=m-100,x,P=0,p=c.length-1;P<=p;){var t=P+p>>1,I=c[t];I.timeStamp>=b?(x=I,p=t-1):P=t+1}return x?(J.detail.dx-x.dx)/(m-x.timeStamp||1):0},
_flingDrawer:function(J,c){c=this._calculateVelocity(J,c);if(!(Math.abs(c)<this._MIN_FLING_THRESHOLD)){this._drawerState=this._DRAWER_STATE.FLINGING;J=J.detail.dx+this._translateOffset;var m=this.getWidth(),b=this.position==="left",x=c>0;x?(c=Math.max(c,this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="left"):(c=Math.min(c,-this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="right");c=this._FLING_INITIAL_SLOPE*(!x&&b?-(J+m):x&&!b?m-J:-J)/c;this._styleTransitionDuration(c);this._styleTransitionTimingFunction(this._FLING_TIMING_FUNCTION);
this._resetDrawerTranslate();this.debounce("_resetDrawerState",this._resetDrawerState,c)}},
_styleTransitionDuration:function(J){this.style.transitionDuration=J+"ms";this.$.contentContainer.style.transitionDuration=J+"ms";this.$.scrim.style.transitionDuration=J+"ms"},
_styleTransitionTimingFunction:function(J){this.$.contentContainer.style.transitionTimingFunction=J;this.$.scrim.style.transitionTimingFunction=J},
_translateDrawer:function(J){var c=this.getWidth();this.position==="left"?(J=Math.max(-c,Math.min(J,0)),this.$.scrim.style.opacity=1+J/c):(J=Math.max(0,Math.min(J,c)),this.$.scrim.style.opacity=1-J/c);this.translate3d(J+"px","0","0",this.$.contentContainer)},
_resetDrawerTranslate:function(){this.$.scrim.style.opacity="";this.transform("",this.$.contentContainer)},
_resetDrawerState:function(){var J=this._drawerState;J===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;J!==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=""),J!==this._DRAWER_STATE.INIT&&this.fire("app-drawer-transitioned"))},
resetLayout:function(){this.fire("app-reset-layout")},
_setKeyboardFocusTrap:function(){if(!this.noFocusTrap){var J=_.rK(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"])');J.length>0?(this._firstTabStop=J[0],this._lastTabStop=J[J.length-1]):
this._lastTabStop=this._firstTabStop=null;(J=this.getAttribute("tabindex"))&&parseInt(J,10)>-1?this.focus():this._firstTabStop&&this._firstTabStop.focus()}},
_tabKeydownHandler:function(J){this.noFocusTrap||this._drawerState!==this._DRAWER_STATE.OPENED||J.keyCode!==9||(J.shiftKey?this._firstTabStop&&_.rK(J).localTarget===this._firstTabStop&&(J.preventDefault(),this._lastTabStop.focus()):this._lastTabStop&&_.rK(J).localTarget===this._lastTabStop&&(J.preventDefault(),this._firstTabStop.focus()))},
_openedPersistentChanged:function(J,c){this.toggleClass("visible",J&&!c,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 Qb5;var eXu;_.sB({_template:function(){if(eXu!==void 0)return eXu;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);var c=J.content,m=c.insertBefore;Qb5===void 0&&(Qb5=document.createElement("template"));var b=Qb5;m.call(c,b.content.cloneNode(!0),J.content.firstChild);return eXu=J},
is:"tp-yt-paper-progress",behaviors:[AWs],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(J){this.toggleClass("indeterminate",J,this.$.primaryProgress)},
_transformProgress:function(J,c){J.style.transform=J.style.webkitTransform="scaleX("+c/100+")"},
_mainRatioChanged:function(J){this._transformProgress(this.$.primaryProgress,J)},
_progressChanged:function(J,c,m,b,x){J=this._clampValue(J);c=this._clampValue(c);var P=this._calcRatio(J)*100,p=this._calcRatio(c)*100;this._setSecondaryRatio(P);this._transformProgress(this.$.secondaryProgress,P);this._transformProgress(this.$.primaryProgress,p);this.secondaryProgress=J;x?this.removeAttribute("aria-valuenow"):this.setAttribute("aria-valuenow",c);this.setAttribute("aria-valuemin",m);this.setAttribute("aria-valuemax",b)},
_disabledChanged:function(J){this.setAttribute("aria-disabled",J?"true":"false")},
_hideSecondaryProgress:function(J){return J===0}});var jbp;var Fc4;var lrp=function(){};
_.V=lrp.prototype;_.V.registered=function(){};
_.V.addOwnKeyBinding=function(){};
_.V.removeOwnKeyBindings=function(){};
_.V.keyboardEventMatchesKeys=function(){};
_.V._collectKeyBindings=function(){};
_.V._prepKeyBindings=function(){};
_.V._addKeyBinding=function(){};
_.V._resetKeyEventListeners=function(){};
_.V._listenKeyEventListeners=function(){};
_.V._unlistenKeyEventListeners=function(){};
_.V._onKeyBindingEvent=function(){};
_.V._triggerKeyHandler=function(){};
_.V._tapHandler=function(){};
_.V._focusChanged=function(){};
_.V._detectKeyboardFocus=function(){};
_.V._userActivate=function(){};
_.V._upHandler=function(){};
_.V._spaceKeyDownHandler=function(){};
_.V._spaceKeyUpHandler=function(){};
_.V._asyncClick=function(){};
_.V._pressedChanged=function(){};
_.V._ariaActiveAttributeChanged=function(){};
_.V._activeChanged=function(){};
_.V._controlStateChanged=function(){};
_.V._changedButtonState=function(){};
_.V._focusBlurHandler=function(){};
_.V._disabledChanged=function(){};
_.V._changedControlState=function(){};
_.V._buttonStateChanged=function(){};
_.V._downHandler=function(){};
_.V.ensureRipple=function(){};
_.V.getRipple=function(){};
_.V.hasRipple=function(){};
_.V._noinkChanged=function(){};
_.V._calcRatio=function(){};
_.V._clampValue=function(){};
_.V._calcStep=function(){};
_.V._validateValue=function(){};
_.V._update=function(){};
_.V._setImmediateValue=function(){};
_.V._setExpand=function(){};
_.V._setDragging=function(){};
_.V._setTransiting=function(){};
_.V._setMarkers=function(){};
_.V._setPressed=function(){};
_.V._setPointerDown=function(){};
_.V._setReceivedFocusFromKeyboard=function(){};
_.V._setFocused=function(){};
_.V._setRatio=function(){};
lrp=_.sB({_template:function(){if(Fc4!==void 0)return Fc4;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);var c=J.content,m=c.insertBefore;jbp===void 0&&(jbp=document.createElement("template"));var b=jbp;m.call(c,b.content.cloneNode(!0),J.content.firstChild);return Fc4=J},
is:"tp-yt-paper-slider",behaviors:[_.KV,_.HY,_.nxu,AWs],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&&_.YA(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(J,c,m){this.setAttribute("aria-valuemin",c);this.setAttribute("aria-valuemax",m);this.setAttribute("aria-valuenow",J);this._positionKnob(this._calcRatio(J)*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(J){this._setImmediateValue(this._calcStep(this._calcKnobPosition(J)));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(J){return(this.max-this.min)*J/100+this.min},
_onTrack:function(J){J.stopPropagation();switch(J.detail.state){case "start":this._trackStart(J);break;case "track":this._trackX(J);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(J){this.dragging||this._trackStart(J);this._x=this._startx+Math.min(this._maxx,Math.max(this._minx,J.detail.dx*(this._isRTL?-1:1)));J=this._calcStep(this._calcKnobPosition(this._x/this._w*100));this._setImmediateValue(J);J=this._calcRatio(this.immediateValue)*this._w-this._knobstartx;this.translate3d(J+"px",0,0,this.$.sliderKnob)},
_trackEnd:function(){var J=this.$.sliderKnob.style;this.$.sliderKnob.classList.remove("dragging");this._setDragging(!1);this._resetKnob();this.value=this.immediateValue;J.transform=J.webkitTransform="";this.fire("change",{composed:!0})},
_knobdown:function(J){this._expandKnob();J.preventDefault();this.focus()},
_bartrack:function(J){this._allowBarEvent(J)&&this._onTrack(J)},
_barclick:function(J){this._w=this.$.sliderBar.offsetWidth;var c=this.$.sliderBar.getBoundingClientRect();c=(J.detail.x-c.left)/this._w*100;this._isRTL&&(c=100-c);var m=this.ratio;this._setTransiting(!0);this._positionKnob(c);m===this.ratio&&this._setTransiting(!1);this.async(function(){this.fire("change",{composed:!0})});
J.preventDefault();this.focus()},
_bardown:function(J){this._allowBarEvent(J)&&(this.debounce("expandKnob",this._expandKnob,60),this._barclick(J))},
_knobTransitionEnd:function(J){J.target===this.$.sliderKnob&&this._setTransiting(!1)},
_updateMarkers:function(J,c,m,b){b||this._setMarkers([]);c=Math.round((m-c)/this.step);c>J&&(c=J);if(c<0||!isFinite(c))c=0;this._setMarkers(Array(c))},
_mergeClasses:function(J){return Object.keys(J).filter(function(c){return J[c]}).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(J){return!this.ignoreBarTouch||J.detail.sourceEvent instanceof MouseEvent},
get _isRTL(){this.__isRTL===void 0&&(this.__isRTL=window.getComputedStyle(this).direction==="rtl");return this.__isRTL},_leftKey:function(J){this._isRTL?this._incrementKey(J):this._decrementKey(J)},
_rightKey:function(J){this._isRTL?this._decrementKey(J):this._incrementKey(J)},
_incrementKey:function(J){this.disabled||(J.detail.key==="end"?this.value=this.max:this.increment(),this.fire("change"),J.preventDefault())},
_decrementKey:function(J){this.disabled||(J.detail.key==="home"?this.value=this.min:this.decrement(),this.fire("change"),J.preventDefault())},
_changeValue:function(J){this.value=J.target.value;this.fire("change",{composed:!0})},
_inputKeyDown:function(J){J.stopPropagation()},
_createRipple:function(){this._rippleContainer=this.$.sliderKnob;return _.iqQ._createRipple.call(this)},
_focusedChanged:function(J){J&&this.ensureRipple();this.hasRipple()&&(this._ripple.style.display=J?"":"none",this._ripple.holdDown=J)}});var yWo;var BDR;var vV=null,g_s=function(){};
_.V=g_s.prototype;_.V.fit=function(){};
_.V._discoverInfo=function(){};
_.V.resetFit=function(){};
_.V.refit=function(){};
_.V.position=function(){};
_.V.constrain=function(){};
_.V._sizeDimension=function(){};
_.V.__sizeDimension=function(){};
_.V.center=function(){};
_.V.__getNormalizedRect=function(){};
_.V.__getOffscreenArea=function(){};
_.V.__getPosition=function(){};
_.V.notifyResize=function(){};
_.V.assignParentResizable=function(){};
_.V.stopResizeNotificationsFor=function(){};
_.V._subscribeIronResize=function(){};
_.V._unsubscribeIronResize=function(){};
_.V.resizerShouldNotify=function(){};
_.V._onDescendantIronResize=function(){};
_.V._fireResize=function(){};
_.V._onIronRequestResizeNotifications=function(){};
_.V._parentResizableChanged=function(){};
_.V._notifyDescendant=function(){};
_.V._requestResizeNotifications=function(){};
_.V._findParent=function(){};
_.V.toggle=function(){};
_.V.open=function(){};
_.V.close=function(){};
_.V.cancel=function(){};
_.V.invalidateTabbables=function(){};
_.V._ensureSetup=function(){};
_.V._canceledChanged=function(){};
_.V._withBackdropChanged=function(){};
_.V._prepareRenderOpened=function(){};
_.V._finishRenderOpened=function(){};
_.V._finishRenderClosed=function(){};
_.V._preparePositioning=function(){};
_.V._finishPositioning=function(){};
_.V._applyFocus=function(){};
_.V._onCaptureClick=function(){};
_.V._onCaptureFocus=function(){};
_.V._onCaptureEsc=function(){};
_.V._onCaptureTab=function(){};
_.V._onIronResize=function(){};
_.V._onNodesChange=function(){};
_.V.__ensureFirstLastFocusables=function(){};
_.V.__openedChanged=function(){};
_.V.__deraf=function(){};
_.V.__updateScrollObservers=function(){};
_.V.__addScrollListeners=function(){};
_.V.__removeScrollListeners=function(){};
_.V.__isValidScrollAction=function(){};
_.V.__onCaptureScroll=function(){};
_.V.__saveScrollPosition=function(){};
_.V.__restoreScrollPosition=function(){};
_.V._setCanceled=function(){};
g_s=_.sB({_template:function(){if(BDR!==void 0)return BDR;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);var c=J.content,m=c.insertBefore;yWo===void 0&&(yWo=document.createElement("template"));var b=yWo;m.call(c,b.content.cloneNode(!0),J.content.firstChild);return BDR=J},
is:"tp-yt-paper-toast",behaviors:[_.dI],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(){_.CH._warn("`visible` is deprecated, use `opened` instead");return this.opened},get _canAutoClose(){return this.duration>0&&this.duration!==Infinity},created:function(){this._autoClose=null;_.Zj.requestAvailability()},
show:function(J){typeof J=="string"&&(J={text:J});for(var c in J)c.indexOf("_")===0?_.CH._warn('The property "'+c+'" is private and was not set.'):c in this?this[c]=J[c]:_.CH._warn('The property "'+c+'" is not valid.');this.open()},
hide:function(){this.close()},
isOpened:function(){return this.opened},
__onTransitionEnd:function(J){J&&J.target===this&&J.propertyName==="opacity"&&(this.opened?this._finishRenderOpened():this._finishRenderClosed())},
_openedChanged:function(){this._autoClose!==null&&(this.cancelAsync(this._autoClose),this._autoClose=null);this.opened?(vV&&vV!==this&&vV.close(),vV=this,this._fireIronAnnounce(),this._canAutoClose&&(this._autoClose=this.async(this.close,this.duration))):vV===this&&(vV=null);_.hV._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(J){this.positionTarget=J},
_fireIronAnnounce:function(){this.noIronAnnounce||this.fire("iron-announce",{text:this.label||this.text})}});var JN1=new _.Q("disablePersonalizationAction");var oYo=new _.Q("showDmaConsentFlowCommand");var Qc4=new _.Q("showMmgNoticeCommand");var cN4=new _.Q("saveConsentAction");var mPp=function(J){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.mT(J)};
_.D(mPp,_.d6);var bHf=_.g6(mPp);var xPp=new _.Q("updateTopbarAvatarAction");var Vvr=new _.Q("channelHandleValidationResultRenderer");var Peo=new _.Q("generateHandleFromNameResultRenderer");var MvS=new _.Q("channelHandleInputRenderer");var piu=new _.Q("copyLinkRenderer");var Nye=new _.Q("timedCommand");var tvf=new _.Q("clearCookieAction");var IQe=new _.Q("getMultiPageMenuAction");var KQp=new _.Q("addToGuideSectionAction"),Ceh=new _.Q("removeFromGuideSectionAction");var aQS=new _.Q("updateNotificationsUnseenCountAction");var kWe=new _.Q("resetChannelUnreadCountCommand");var HH4=new _.Q("resetSubscriptionsUnreadDotCommand");var iHf=new _.Q("selectLanguageCommand");var PWe=new _.Q("sendFeedbackAction");var n6s=new _.Q("uploadImageToScottyCommand");var Ty5=new _.Q("registerPromoCommand");var wip=new _.Q("setPushNotificationsEnabledCommand");var rN1=new _.Q("desktopTopbarRenderer");var s9F=new _.Q("surveyFollowUpRenderer");var LQp=new _.Q("handlesClaimingRadioOptionRenderer");var DPe=new _.Q("hotkeyDialogRenderer");var WQe=new _.Q("modifyReportFormCommand");var zBr=new _.Q("accountLinkCommand");var u2u=new _.Q("accountUnlinkCommand");var fQs=new _.Q("logAccountLinkingEventCommand");var YIe=new _.Q("guideCollapsibleEntryRenderer");var Xif=new _.Q("guideDownloadsEntryRenderer");var Op=new _.Q("guideEntryRenderer");var ZH4=new _.Q("getLocationCommand");var qI5=new _.Q("locationCollectionCommand");var UPu=new _.Q("storiesItemViewModel");var SIu=new _.Q("addToRemoteQueueAction");var hBS=new _.Q("insertInRemoteQueueAction");var dP1=new _.Q("removeFromRemoteQueueAction");var $PR=new _.Q("notificationRenderer");var YGp=new _.Q("localWatchHistoryCommand");var GW4=new _.Q("pdgBuyFlowHeaderRenderer");var E6f=new _.Q("pdgColorSliderRenderer");var v6S=new _.Q("pdgCommentOptionRenderer");var OH5=new _.Q("pdgCommentPreviewRenderer");var ANF=new _.Q("superVodSelectableItemButtonRenderer");var RB4=new _.Q("switchButtonRenderer");var o65=new _.Q("upsellDialogRenderer");var Q94=new _.Q("feedbackQuestionRenderer"),eBr=new _.Q("feedbackOptionRenderer");var j9F=new _.Q("sponsorshipsTierRenderer"),FQ4=new _.Q("sponsorshipsPromotionChannelRenderer");var lQs=new _.Q("simpleSurveyMessageRenderer");var Pqs=new _.Q("invokeInstrumentManagerAction");var yNh=new _.Q("logYpcFlowDismissCommand");var Byf=new _.Q("logYpcFlowStartCommand");var g6h=new _.Q("unlimitedCreateFamilyEndpoint");var JV5=new _.Q("iconBadgeRenderer");var XAo=new _.Q("collaborativePlaylistVisibilityValidationRule");var cVR=function(J){_.Mb.call(this,"channelMessage");this.message=J};
_.D(cVR,_.Mb);var mDs=function(J){_.Mb.call(this,"channelError");this.error=J};
_.D(mDs,_.Mb);var bVR={AUTOPLAY:"atp",SKA_SKIPPABLE_ADS:"ska",QUEUE_SUPPORT:"que",MULTI_USER_SESSIONS:"mus",SINGLE_USER_SESSIONS:"sus",HAS_DISPLAY:"dsp",SCREEN_EXTENDED_QUEUE_SUPPORT:"seq",MIC:"mic",DPAD:"dpa",MULTISTATE_LOOP_MODE:"mlm",DISCONNECT_STRATEGY_DEFFERRED_TO_RECEIVER:"dsdtr",NATIVE_BROWSE:"ntb",VARIABLE_SPEED:"vsp",ENABLE_VIDEO_SOURCE_CLIENT_NAME:"scn",RECEIVER_PLAYLIST_EXPANSION:"rpe",DISABLE_CURRENTINDEX_IN_NOWPLAYING:"dcn",DISABLE_CURRENTINDEX_IN_PLAYLISTMODIFIED:"dcp",PAUSE_AT_START:"pas",DISABLE_QUEUE_FOR_RECEIVER_ONLY_SESSION:"drq",
ONUSERACTIVITY_POLLING_FREQUENCY:"opf",ENABLE_LOUNGE_STATUS_PLAYBACK:"els",ENABLE_IDENTITY_SWITCH_TO_GUEST:"isg",SERVER_QUEUES:"svq",MULTIVIEW_PLAYBACK:"mvp",ACTIVE_DEVICE_STORE_WRITES:"ads",STREAM_TRANSFER_CREATE_PLAYLIST:"stcp",SHORTS_ACTIVE_DEVICE_STORE_WRITES:"sads",DISABLE_LOGGED_OUT_CASTING:"dloc",DUAL_CTT_WRITES:"dcw",ACTIVE_STREAM_WRITES_FOR_CONNECTED_REMOTES:"asw",ACTIVE_PLAYBACK_WRITES_FOR_CONNECTED_REMOTES:"apw"},xDu={UNKNOWN_THEME:"u",CLASSIC:"cl",KIDS:"k",INSTANT:"i",CREATOR:"cr",MUSIC:"m",
GAMING:"g",UNPLUGGED:"up"},VTF={AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange"},Pos={NOW_PLAYING:"nowPlaying",ON_STATE_CHANGE:"onStateChange",AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange",NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"},MT1={NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"};var Ar=function(J){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 _.gy;this.localChannelEncryptionKey=this.remoteControllerUrl="";this.deviceContext=void 0;this.model=this.brand="";this.year=0;this.chipset=this.osVersion=this.os="";this.mdxDialServerType=
"MDX_DIAL_SERVER_TYPE_UNKNOWN";this.pairingType="unknown";this.castUserId=void 0;J&&(this.id=J.id||J.name,this.name=J.name,this.clientName=J.clientName?J.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.app=J.app,this.type=J.type||"REMOTE_CONTROL",this.username=J.user||"",this.avatar=J.userAvatarUri||"",this.obfuscatedGaiaId=J.obfuscatedGaiaId||"",this.ownerObfuscatedGaiaId=J.ownerObfuscatedGaiaId||"",this.castUserId=J.castUserId||"",this.theme=J.theme||"u",pYu(this,J.capabilities||""),NIR(this,
J.compatibleSenderThemes||""),tT5(this,J.experiments||""),this.remoteControllerUrl=J.remoteControllerUrl||"",this.localChannelEncryptionKey=J.localChannelEncryptionKey||"",this.deviceContext=J.deviceContext,this.brand=J.brand||"",this.model=J.model||"",this.year=J.year||0,this.os=J.os||"",this.osVersion=J.osVersion||"",this.chipset=J.chipset||"",this.mdxDialServerType=J.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN",this.pairingType=J.pairingType||"unknown",J=J.deviceInfo)&&(J=JSON.parse(J),this.brand=
J.brand||"",this.model=J.model||"",this.year=J.year||0,this.os=J.os||"",this.osVersion=J.osVersion||"",this.chipset=J.chipset||"",this.clientName=J.clientName?J.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.mdxDialServerType=J.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN")};
Ar.prototype.copy=function(){var J={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&&(J.brand=this.brand);
this.model&&(J.model=this.model);this.year&&(J.year=this.year);this.os&&(J.os=this.os);this.osVersion&&(J.osVersion=this.osVersion);this.chipset&&(J.chipset=this.chipset);this.clientName!=="UNKNOWN_INTERFACE"&&(J.clientName=this.clientName);this.mdxDialServerType!=="MDX_DIAL_SERVER_TYPE_UNKNOWN"&&(J.mdxDialServerType=this.mdxDialServerType);J=new Ar(J);J.connected=this.connected;J.remoteControllerUrl=this.remoteControllerUrl;J.localChannelEncryptionKey=this.localChannelEncryptionKey;J.deviceContext=
this.deviceContext;J.castUserId=this.castUserId;return J};
Ar.prototype.equals=function(J){return J?this.id==J.id:!1};
var pYu=function(J,c){J.capabilities.clear();_.BH(c.split(","),_.k2(_.Lw.contains,bVR)).forEach(function(m){J.capabilities.add(m)})},NIR=function(J,c){J.compatibleSenderThemes.clear();
_.BH(c.split(","),_.k2(_.Lw.contains,xDu)).forEach(function(m){J.compatibleSenderThemes.add(m)})},tT5=function(J,c){J.experiments.clear();
c.split(",").forEach(function(m){J.experiments.add(m)})};var Ijf=function(J,c){this.action=J;this.params=c||{}};_.yv(Bvr,_.DS);_.V=Bvr.prototype;_.V.JSC$17483_onTick_=function(){this.JSC$17481_interval_=Math.min(3E5,this.JSC$17481_interval_*2);this.JSC$17483_listener_();this.nextTickTime_&&this.start()};
_.V.start=function(){var J=this.JSC$17481_interval_+15E3*Math.random(),c=this.delay_;c.isActive()||c.start(J);this.nextTickTime_=Date.now()+J};
_.V.stop=function(){this.delay_.stop();this.nextTickTime_=0};
_.V.isActive=function(){return this.delay_.isActive()};
_.V.reset=function(){this.delay_.stop();this.JSC$17481_interval_=5E3};_.yv(DM,GcF);_.V=DM.prototype;_.V.subscribe=function(J,c,m){return this.pubsub_.subscribe(J,c,m)};
_.V.unsubscribe=function(J,c,m){return this.pubsub_.unsubscribe(J,c,m)};
_.V.unsubscribeByKey=function(J){return this.pubsub_.unsubscribeByKey(J)};
_.V.publish=function(J,c){return this.pubsub_.publish.apply(this.pubsub_,arguments)};
_.V.dispose=function(){this.JSC$17484_disposed_||(this.JSC$17484_disposed_=!0,_.yr(this.pubsub_),this.disconnect(),_.yr(this.reconnectTimer_),this.reconnectTimer_=null,this.JSC$17484_getXsrfToken_=function(){return""},this.getAuthorizationHeader_=function(){return _.ML({})})};
_.V.isDisposed=function(){return this.JSC$17484_disposed_};
_.V.connect=function(J,c,m){var b=this,x,P,p,t;return _.N(function(I){if(I.nextAddress==1)return _.MM(I,2),b.useAsyncBrowserChannelHandler_?_.K(I,b.connectPromise_,2):I.jumpTo(2);_.PR(I);if(b.JSC$17484_disposed_||b.JSC$17484_channel_&&b.JSC$17484_channel_.getState()==2)return I.return();b.sCookie_="";b.reconnectTimer_.stop();b.connectionParams_=J||null;b.connectUi_=c||0;x=b.JSC$17484_pathPrefix_+"/test";P=b.JSC$17484_pathPrefix_+"/bind";p=new $F(m?m.firstTestResults:null,m?m.secondTestResults:null,
b.enableAsyncTest_);if(t=b.JSC$17484_channel_)t.handler_=null;p.handler_=b;b.JSC$17484_channel_=p;if(b.useAsyncBrowserChannelHandler_)return b.connectPromise_=KOu(b).then(function(){return Cof(b,x,P,t,m)}),I.return(b.connectPromise_.then(function(){b.connectPromise_=_.ML()}));
Cof(b,x,P,t,m);return _.p6(I,0)})};
var Cof=function(J,c,m,b,x){ajo(J);if(J.JSC$17484_channel_){var P=_.Ub("ID_TOKEN"),p=J.JSC$17484_channel_.JSC$17436_extraHeaders_||{};P?p["x-youtube-identity-token"]=P:delete p["x-youtube-identity-token"];J.JSC$17484_channel_.JSC$17436_extraHeaders_=p}kYR(J);b?(b.getState(),J.JSC$17484_channel_.connect(c,m,J.defaultQueryParams_,b.sid_,b.JSC$17436_lastArrayId_)):x?J.JSC$17484_channel_.connect(c,m,J.defaultQueryParams_,x.sessionId,x.arrayId):J.JSC$17484_channel_.connect(c,m,J.defaultQueryParams_)};
DM.prototype.disconnect=function(J){try{this.useAsyncBrowserChannelHandler_&&(this.connectPromise_.cancel(),this.connectPromise_=_.ML())}finally{this.disconnectUi_=J||0,this.reconnectTimer_&&this.reconnectTimer_.stop(),ajo(this),this.JSC$17484_channel_&&(this.JSC$17484_channel_.getState()==3&&q_p(this.JSC$17484_channel_),this.JSC$17484_channel_.disconnect()),this.disconnectUi_=0}};
DM.prototype.sendMessage=function(J,c){var m=this,b;return _.N(function(x){switch(x.nextAddress){case 1:_.MM(x,2);if(!m.useAsyncBrowserChannelHandler_){x.jumpTo(2);break}return _.K(x,m.connectPromise_,2);case 2:_.PR(x);if(m.JSC$17484_disposed_)return x.return();b={_sc:J};c&&_.Lw.extend(b,c);if(m.reconnectTimer_.isActive()||(m.JSC$17484_channel_?m.JSC$17484_channel_.getState():0)==2){m.JSC$17484_pendingMessages_.push(b);x.jumpTo(6);break}if(!m.isChannelOpened()){x.jumpTo(6);break}_.MM(x,8);if(!m.useAsyncBrowserChannelHandler_||
HV1(m,J)){x.jumpTo(8);break}return _.K(x,KOu(m),8);case 8:_.PR(x,0,0,1);m.isChannelOpened()&&(HV1(m,J)||kYR(m),ajo(m),Z_F(m.JSC$17484_channel_,b));_.p6(x,6,1);break;case 6:_.p6(x,0)}})};
var HV1=function(J,c){return J.enableMdxAuthForConnectionOnly_?!0:J.disableMdxAuthForAdMessages_?Object.values(VTF).includes(c):J.disableMdxAuthForNonPlaybackMessages_?!Object.values(Pos).includes(c):J.disableMdxAuthForShortsMessages_?Object.values(MT1).includes(c):!1};
DM.prototype.JSC$17443_channelOpened=function(){this.reconnectTimer_.reset();this.connectionParams_=null;this.connectUi_=0;if(this.JSC$17484_pendingMessages_.length)if(this.useAsyncBrowserChannelHandler_)iVp(this);else{var J=this.JSC$17484_pendingMessages_;this.JSC$17484_pendingMessages_=[];var c=J.length;kYR(this);nU5(this,J,c);TIs(this)}else TIs(this)};
var iVp=function(J){var c,m;_.N(function(b){if(b.nextAddress==1)return _.MM(b,2),_.K(b,KOu(J),2);_.PR(b);c=J.JSC$17484_pendingMessages_;J.JSC$17484_pendingMessages_=[];m=c.length;nU5(J,c,m);TIs(J);return _.p6(b,0)})},nU5=function(J,c,m){for(var b=0;b<m;++b)Z_F(J.JSC$17484_channel_,c[b]);
TIs(J)},TIs=function(J){J.publish("handlerOpened");
J.JSC$17484_channelOpenedCounter.increment("BROWSER_CHANNEL")};
_.V=DM.prototype;_.V.JSC$17443_channelError=function(J){var c=J==2&&this.JSC$17484_channel_.JSC$17436_lastStatusCode_==401;J==4||c||this.reconnectTimer_.start();this.publish("handlerError",J,c);c=Object.keys(Lcr).find(function(m){return Lcr[m]===J});
this.JSC$17484_channelErrorCounter.increment("BROWSER_CHANNEL",c!=null?c:"UNKNOWN")};
_.V.JSC$17443_channelClosed=function(J,c){if(!this.reconnectTimer_.isActive())this.publish("handlerClosed");else if(c)for(var m=c.length,b=0;b<m;++b){var x=c[b].map;x&&this.JSC$17484_pendingMessages_.push(x)}this.JSC$17484_channelClosedCounter.increment("BROWSER_CHANNEL");J&&this.pendingMapsOnClosedCounter.JSC$7943_streamzService.JSC$7798_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps",J.length);c&&this.undeliveredMapsOnClosedCounter.JSC$7946_streamzService.JSC$7798_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps",
c.length)};
_.V.JSC$17443_channelSuccess=function(J,c){c!=null&&J!=null&&this.channelMessageSentCounter.increment()};
_.V.JSC$17443_getAdditionalParams=function(){var J={v:2};this.sCookie_&&(J.gsessionid=this.sCookie_);this.connectUi_!=0&&(J.ui=""+this.connectUi_);this.disconnectUi_!=0&&(J.ui=""+this.disconnectUi_);this.connectionParams_&&_.Lw.extend(J,this.connectionParams_);return J};
_.V.JSC$17443_channelHandleArray=function(J){J[0]=="S"?this.sCookie_=J[1]:J[0]=="gracefulReconnect"?(this.reconnectTimer_.start(),this.JSC$17484_channel_.disconnect()):this.publish("handlerMessage",new Ijf(J[0],J[1]));this.JSC$17484_channelMessageReceivedCounter.increment("BROWSER_CHANNEL")};
_.V.isChannelOpened=function(){return!!this.JSC$17484_channel_&&this.JSC$17484_channel_.getState()==3};
var ajo=function(J){if(J.JSC$17484_channel_){var c=J.JSC$17484_getXsrfToken_(),m=J.JSC$17484_channel_.JSC$17436_extraHeaders_||{};c?m["x-youtube-lounge-xsrf-token"]=c:delete m["x-youtube-lounge-xsrf-token"];J.JSC$17484_channel_.JSC$17436_extraHeaders_=m}},KOu=function(J){if(J.enableAsyncMdxLibraryWithoutAuthHeaderFetch_)return _.ML();
if(!J.enableCachedUpdateAuthorizationHeader_)return wYu(J);J.updateAuthorizationHeaderPromise_===null&&(J.updateAuthorizationHeaderPromise_=wYu(J));return J.updateAuthorizationHeaderPromise_},wYu=function(J){return _.Hz(J.getAuthorizationHeader_().then(function(c){rV5(J,c)}).thenCatch(function(){}),function(){J.updateAuthorizationHeaderPromise_=null})},rV5=function(J,c){if(J.JSC$17484_channel_){var m=J.JSC$17484_channel_.JSC$17436_extraHeaders_||{};
c&&Object.keys(c).length>0?m=Object.assign({},m,c):delete m.Authorization;J.JSC$17484_channel_.JSC$17436_extraHeaders_=m}},kYR=function(J){J.getAuthorizationHeaderSync_&&!J.useAsyncBrowserChannelHandler_&&rV5(J,J.getAuthorizationHeaderSync_())};
_.V=DM.prototype;_.V.setLoungeToken=function(J){(this.defaultQueryParams_.loungeIdToken=J)||this.reconnectTimer_.stop();if(this.enableLoungeTokenRefresh_&&this.JSC$17484_channel_){var c=this.JSC$17484_channel_.JSC$17436_extraHeaders_||{};J?c["X-YouTube-LoungeId-Token"]=J:delete c["X-YouTube-LoungeId-Token"];this.JSC$17484_channel_.JSC$17436_extraHeaders_=c}};
_.V.getDeviceId=function(){return this.defaultQueryParams_.id};
_.V.getReconnectTimeout=function(){return this.reconnectTimer_.isActive()?this.reconnectTimer_.nextTickTime_-Date.now():NaN};
_.V.reconnect=function(){var J=this.reconnectTimer_;J.delay_.fire();J.start()};
_.V.safeReconnect_=function(){var J=this.JSC$17484_channel_,c=0;J.JSC$17436_backChannelRequest_&&c++;J.forwardChannelRequest_&&c++;c==0&&this.connect(this.connectionParams_,this.connectUi_)};var ZM=function(J,c){var m=J.basePath;J.supportCors&&(m=J.scheme+"://"+J.domain+J.port+J.basePath);return _.oP(m+c,{})};
W6.prototype.sendRequest=function(J,c,m,b,x,P,p){J={format:P?"RAW":"JSON",method:J,context:this,timeout:5E3,withCredentials:!!p,onSuccess:_.k2(this.JSC$17489_onSuccess_,b,!P),onError:_.k2(this.onError_,x),onTimeout:_.k2(this.JSC$17489_onTimeout_,x)};m&&(J.postParams=m,J.headers={"Content-Type":"application/x-www-form-urlencoded"});return _.tL(c,J)};
W6.prototype.JSC$17489_onSuccess_=function(J,c,m,b){c?J(b):J({text:m.responseText})};
W6.prototype.onError_=function(J,c){J(Error("Ak`"+c.status))};
W6.prototype.JSC$17489_onTimeout_=function(J){J(Error("Bk"))};var ub=function(J,c){return!!c&&(J.id==c||J.uuid==c)},see=function(J){return{name:J.name,
screenId:J.id,loungeToken:J.token,dialId:J.uuid,screenIdType:J.idType}},LOh=function(J){return new zq(J)},DDu=function(J){return Array.isArray(J)?_.Wm(J,LOh):[]},MKR=function(J){if(!J)return"null";
var c=J.token?".."+J.token.slice(-6):"-",m=J.uuid?".."+J.uuid.slice(-6):"-";return'{name:"'+J.name+'",id:'+J.id.substr(0,6)+"..,token:"+(c+",uuid:"+m+",idType:"+J.idType+"}")},hFR=function(J){return Array.isArray(J)?"["+_.Wm(J,MKR).join(",")+"]":"null"};var kk5="",XJ=null;var D8p=function(J,c){_.KI.call(this);var m=this;this.handler=J();this.handler.subscribe("handlerOpened",this.JSC$17496_onOpened,this);this.handler.subscribe("handlerClosed",this.onClosed,this);this.handler.subscribe("handlerError",function(b,x){m.onError(x)});
this.handler.subscribe("handlerMessage",this.onMessage,this);this.currentScreenId=c};
_.D(D8p,_.KI);_.V=D8p.prototype;_.V.connect=function(J,c,m){this.handler.connect(J,c,m)};
_.V.disconnect=function(J){this.handler.disconnect(J)};
_.V.reconnect=function(){this.handler.reconnect()};
_.V.getDeviceId=function(){return this.handler.getDeviceId()};
_.V.getReconnectTimeout=function(){return this.handler.getReconnectTimeout()};
_.V.isChannelOpened=function(){return this.handler.isChannelOpened()};
_.V.JSC$17496_onOpened=function(){this.dispatchEvent("channelOpened");var J=this.handler,c=this.currentScreenId;_.ct("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!J.JSC$17484_channel_.useChunked_,sessionId:J.JSC$17484_channel_.sid_,arrayId:J.JSC$17484_channel_.JSC$17436_lastArrayId_});_.ct("yt-remote-session-screen-id",c);J=NPp();c=tE1();_.Aq(J,c)||J.push(c);a1h(J);Cah()};
_.V.onClosed=function(){this.dispatchEvent("channelClosed")};
_.V.onMessage=function(J){this.dispatchEvent(new cVR(J))};
_.V.onError=function(J){this.dispatchEvent(new mDs(J?1:0))};
_.V.sendMessage=function(J,c){this.handler.sendMessage(J,c)};
_.V.setLoungeToken=function(J){this.handler.setLoungeToken(J)};
_.V.dispose=function(){this.handler.dispose()};var Leh=function(J,c,m){var b=this;m=m===void 0?function(){return""}:m;
var x=x===void 0?new lfp:x;var P=P===void 0?new _.Kg:P;this.pathPrefix=J;this.defaultQueryParams=c;this.getXsrfToken=m;this.JSC$17499_pubsub=P;this.connectionParams=null;this.disconnectUi=this.connectUi=0;this.channel=null;this.channelState=0;this.reconnectTimer=new Bvr(function(){var p;((p=b.channel)==null?void 0:WR1((new gcr(p,p.JSC$17407_channel_)).JSC$17417_channel_.forwardChannelRequestPool_))===0&&b.connect(b.connectionParams,b.connectUi)});
this.webChannelMessageHeaders={};this.webChannelMessageUrlParams={};this.JSC$17499_disposed=!1;this.logger=null;this.nonAckedMessagesOnChannelClosed=[];this.lastStatusCode=void 0;this.JSC$17499_channelOpenedCounter=new gHr;this.JSC$17499_channelClosedCounter=new J54;this.JSC$17499_channelMessageReceivedCounter=new m8r;this.JSC$17499_channelErrorCounter=new bNh};
Leh.prototype.connect=function(J,c){J=J===void 0?{}:J;c=c===void 0?0:c;this.channelState!==2&&(this.reconnectTimer.stop(),this.connectionParams=J,this.connectUi=c,WOo(this),(J=_.Ub("ID_TOKEN"))?this.webChannelMessageHeaders["x-youtube-identity-token"]=J: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 Xq(this.pathPrefix,{httpSessionIdParam:"gsessionid",messageHeaders:this.webChannelMessageHeaders,
messageUrlParams:this.webChannelMessageUrlParams}),this.channel.open(),this.channelState=2,zse(this))};
var zse=function(J){_.wp(J.channel,"w",function(){J.channelState=3;J.reconnectTimer.reset();J.connectionParams=null;J.connectUi=0;for(var c=_.M(J.nonAckedMessagesOnChannelClosed),m=c.next();!m.done;m=c.next())m=m.value,J.channel&&J.channel.send(m);J.nonAckedMessagesOnChannelClosed=[];J.publish("webChannelOpened");J.JSC$17499_channelOpenedCounter.increment("WEB_CHANNEL")});
_.wp(J.channel,"x",function(){J.channelState=0;J.reconnectTimer.isActive()||J.publish("webChannelClosed");var c,m=(c=J.channel)==null?void 0:JWR(new gcr(c,c.JSC$17407_channel_));m&&(J.nonAckedMessagesOnChannelClosed=[].concat(_.L6(m)));J.JSC$17499_channelClosedCounter.increment("WEB_CHANNEL")});
_.wp(J.channel,"z",function(c){var m=c.data;m[0]==="gracefulReconnect"?(J.reconnectTimer.start(),J.channel&&J.channel.close()):J.publish("webChannelMessage",new Ijf(m[0],m[1]));J.lastStatusCode=c.statusCode;J.JSC$17499_channelMessageReceivedCounter.increment("WEB_CHANNEL")});
_.wp(J.channel,"y",function(){J.lastStatusCode===401||J.reconnectTimer.start();J.publish("webChannelError");J.JSC$17499_channelErrorCounter.increment("WEB_CHANNEL","")})};
_.V=Leh.prototype;_.V.disconnect=function(J){this.disconnectUi=J===void 0?0:J;this.reconnectTimer.stop();WOo(this);this.channel&&(this.disconnectUi!==0?this.webChannelMessageUrlParams.ui=""+this.disconnectUi:delete this.webChannelMessageUrlParams.ui,this.channel.close());this.disconnectUi=0};
_.V.getReconnectTimeout=function(){return this.reconnectTimer.isActive()?this.reconnectTimer.nextTickTime_-Date.now():NaN};
_.V.reconnect=function(){var J=this.reconnectTimer;J.delay_.fire();J.start()};
_.V.sendMessage=function(J,c){this.channel&&(WOo(this),J=Object.assign({},{_sc:J},c),this.channel.send(J))};
_.V.setLoungeToken=function(J){J||this.reconnectTimer.stop();J?this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]=J:delete this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]};
var WOo=function(J){var c=J.getXsrfToken();c?J.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]=c:delete J.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]};
_.V=Leh.prototype;_.V.getDeviceId=function(){return this.defaultQueryParams?this.defaultQueryParams.id:""};
_.V.publish=function(J){return this.JSC$17499_pubsub.publish.apply(this.JSC$17499_pubsub,[J].concat(_.L6(_.s$.apply(1,arguments))))};
_.V.subscribe=function(J,c,m){return this.JSC$17499_pubsub.subscribe(J,c,m)};
_.V.unsubscribe=function(J,c,m){return this.JSC$17499_pubsub.unsubscribe(J,c,m)};
_.V.unsubscribeByKey=function(J){return this.JSC$17499_pubsub.unsubscribeByKey(J)};
_.V.dispose=function(){this.JSC$17499_disposed||(this.JSC$17499_disposed=!0,_.yr(this.JSC$17499_pubsub),this.disconnect(),_.yr(this.reconnectTimer),this.getXsrfToken=function(){return""})};
_.V.isDisposed=function(){return this.JSC$17499_disposed};var s3r=function(J){_.KI.call(this);this.webChannelService=J();this.webChannelService.subscribe("webChannelOpened",this.JSC$17507_onOpened,this);this.webChannelService.subscribe("webChannelClosed",this.onClosed,this);this.webChannelService.subscribe("webChannelError",this.onError,this);this.webChannelService.subscribe("webChannelMessage",this.onMessage,this)};
_.D(s3r,_.KI);_.V=s3r.prototype;_.V.connect=function(J,c){this.webChannelService.connect(J,c)};
_.V.disconnect=function(J){this.webChannelService.disconnect(J)};
_.V.reconnect=function(){this.webChannelService.reconnect()};
_.V.getDeviceId=function(){return this.webChannelService.getDeviceId()};
_.V.getReconnectTimeout=function(){return this.webChannelService.getReconnectTimeout()};
_.V.isChannelOpened=function(){return this.webChannelService.channelState===3};
_.V.JSC$17507_onOpened=function(){this.dispatchEvent("channelOpened")};
_.V.onClosed=function(){this.dispatchEvent("channelClosed")};
_.V.onMessage=function(J){this.dispatchEvent(new cVR(J))};
_.V.onError=function(){this.dispatchEvent(new mDs(this.webChannelService.lastStatusCode===401?1:0))};
_.V.sendMessage=function(J,c){this.webChannelService.sendMessage(J,c)};
_.V.setLoungeToken=function(J){this.webChannelService.setLoungeToken(J)};
_.V.dispose=function(){this.webChannelService.dispose()};var S4F=Date.now(),qq=null,q4R=Array(50),hb=-1,U8u=!1;_.yv(d$,_.ei);d$.prototype.getScreens=function(){return this.screens};
d$.prototype.contains=function(J){return!!pyr(this.screens,J)};
d$.prototype.get=function(J){return J?fL(this.screens,J):null};
var ugo=function(J,c){var m=J.get(c.uuid)||J.get(c.id);if(m)return J=m.name,m.id=c.id||m.id,m.name=c.name,m.token=c.token,m.uuid=c.uuid||m.uuid,m.name!=J;J.screens.push(c);return!0},fjs=function(J,c){var m=J.screens.length!=c.length;
J.screens=_.BH(J.screens,function(P){return!!pyr(c,P)});
for(var b=c.length,x=0;x<b;x++)m=ugo(J,c[x])||m;return m},YqR=function(J,c){var m=J.screens.length;
J.screens=_.BH(J.screens,function(b){return!(b||c?!b!=!c?0:b.id==c.id:1)});
return J.screens.length<m};
d$.prototype.info=function(J){U3(this.JSC$17508_logName_,J)};var XYs=function(J,c,m,b,x){_.ei.call(this);this.JSC$17511_http_=J;this.pairingCode_=c;this.deviceId_=m;this.friendlyName_=b;this.enableShortLivedLoungeToken_=x;this.pollIndex_=0;this.JSC$17511_xhr_=null;this.JSC$17511_timer_=NaN};
_.D(XYs,_.ei);_.V=XYs.prototype;_.V.start=function(){!this.JSC$17511_xhr_&&isNaN(this.JSC$17511_timer_)&&this.poll_()};
_.V.stop=function(){this.JSC$17511_xhr_&&(this.JSC$17511_xhr_.abort(),this.JSC$17511_xhr_=null);isNaN(this.JSC$17511_timer_)||(_.pg(this.JSC$17511_timer_),this.JSC$17511_timer_=NaN)};
_.V.disposeInternal=function(){this.stop();_.ei.prototype.disposeInternal.call(this)};
_.V.poll_=function(){this.JSC$17511_timer_=NaN;this.JSC$17511_xhr_=_.tL(ZM(this.JSC$17511_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:this.pairingCode_},timeout:5E3,onSuccess:(0,_.Wa)(this.JSC$17513_onSuccess_,this),onError:(0,_.Wa)(this.onError_,this),onTimeout:(0,_.Wa)(this.JSC$17513_onTimeout_,this)})};
_.V.JSC$17513_onSuccess_=function(J,c){this.JSC$17511_xhr_=null;J=c.screen||{};J.dialId=this.deviceId_;J.name=this.friendlyName_;c=-1;this.enableShortLivedLoungeToken_&&J.shortLivedLoungeToken&&J.shortLivedLoungeToken.value&&J.shortLivedLoungeToken.refreshIntervalMs&&(J.screenIdType="shortLived",J.loungeToken=J.shortLivedLoungeToken.value,c=J.shortLivedLoungeToken.refreshIntervalMs);this.publish("pairingComplete",new zq(J),c)};
_.V.onError_=function(J){this.JSC$17511_xhr_=null;J.status&&J.status==404?this.pollIndex_>=ZVf.length?this.publish("pairingFailed",Error("Ck")):(J=ZVf[this.pollIndex_],this.JSC$17511_timer_=_.P7((0,_.Wa)(this.poll_,this),J),this.pollIndex_++):this.publish("pairingFailed",Error("Dk`"+J.status))};
_.V.JSC$17513_onTimeout_=function(){this.JSC$17511_xhr_=null;this.publish("pairingFailed",Error("Ek"))};
var ZVf=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];_.yv(Gq,d$);_.V=Gq.prototype;_.V.start=function(){$D(this)&&this.publish("screenChange");!_.m7("yt-remote-lounge-token-expiration")&&qqu(this);_.pg(this.loungeTokenRefreshTimer_);this.loungeTokenRefreshTimer_=_.P7((0,_.Wa)(this.start,this),1E4)};
_.V.add=function(J,c){$D(this);ugo(this,J);UDp(this,!1);this.publish("screenChange");c(J);J.token||qqu(this)};
_.V.remove=function(J,c){var m=$D(this);YqR(this,J)&&(UDp(this,!1),m=!0);c(J);m&&this.publish("screenChange")};
_.V.updateName=function(J,c,m,b){var x=$D(this),P=this.get(J.id);P?(P.name!=c&&(P.name=c,UDp(this,!1),x=!0),m(J)):b(Error("Fk"));x&&this.publish("screenChange")};
_.V.disposeInternal=function(){_.pg(this.loungeTokenRefreshTimer_);Gq.superClass_.disposeInternal.call(this)};
var qqu=function(J){if(J.screens.length){var c=_.Wm(J.screens,function(b){return b.id}),m=ZM(J.JSC$17515_http_,"/pairing/get_lounge_token_batch");
J.JSC$17515_http_.sendRequest("POST",m,{screen_ids:c.join(",")},(0,_.Wa)(J.handleLoungeTokens_,J),(0,_.Wa)(J.handleLoungeTokenError_,J))}};
Gq.prototype.handleLoungeTokens_=function(J){$D(this);var c=this.screens.length;J=J&&J.screens||[];for(var m=J.length,b=0;b<m;++b){var x=J[b],P=this.get(x.screenId);P&&(P.token=x.loungeToken,--c)}UDp(this,!c);c&&U3(this.JSC$17508_logName_,"Missed "+c+" lounge tokens.")};
Gq.prototype.handleLoungeTokenError_=function(J){U3(this.JSC$17508_logName_,"Requesting lounge tokens failed: "+J)};
var $D=function(J){if(_.w("deprecate_pair_servlet_enabled"))return fjs(J,[]);var c=DDu(iN1());c=_.BH(c,function(m){return!m.uuid});
return fjs(J,c)},UDp=function(J,c){TPh(_.Wm(J.screens,see));
c&&nA1()};var RK=function(J,c){_.ei.call(this);this.getScreensToCheck_=c;c=(c=_.m7("yt-remote-online-screen-ids")||"")?c.split(","):[];for(var m={},b=this.getScreensToCheck_(),x=b.length,P=0;P<x;++P){var p=b[P].id;m[p]=_.Aq(c,p)}this.screenIdSet_=m;this.JSC$17518_http_=J;this.refreshTimer_=this.fastCheckEndTime_=NaN;this.currentRequest_=null;Sqo("Initialized with "+(0,_.TE)(this.screenIdSet_))};
_.D(RK,_.ei);RK.prototype.isOnline=function(J){return!!this.screenIdSet_[J]};
RK.prototype.start=function(){var J=parseInt(_.m7("yt-remote-fast-check-period")||"0",10);(this.fastCheckEndTime_=_.lc()-144E5<J?0:J)?hs5(this):(this.fastCheckEndTime_=_.lc()+3E5,_.ct("yt-remote-fast-check-period",this.fastCheckEndTime_),this.requestScreenAvailability_())};
RK.prototype.isEmpty=function(){return _.Lw.isEmpty(this.screenIdSet_)};
RK.prototype.update=function(){Sqo("Updating availability on schedule.");var J=this.getScreensToCheck_(),c=_.Lw.filter(this.screenIdSet_,function(m,b){return m&&!!fL(J,b)},this);
dD4(this,c)};
var $De=function(J,c,m){var b=ZM(J.JSC$17518_http_,"/pairing/get_screen_availability");J.JSC$17518_http_.sendRequest("POST",b,{lounge_token:c.token},(0,_.Wa)(function(x){x=x.screens||[];for(var P=x.length,p=0;p<P;++p)if(x[p].loungeToken==c.token){m(x[p].status=="online");return}m(!1)},J),(0,_.Wa)(function(){m(!1)},J))};
RK.prototype.disposeInternal=function(){_.pg(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&(this.currentRequest_.abort(),this.currentRequest_=null);_.ei.prototype.disposeInternal.call(this)};
var dD4=function(J,c){a:if(_.Lw.getCount(c)!=_.Lw.getCount(J.screenIdSet_))var m=!1;else{m=_.Lw.getKeys(c);for(var b=m.length,x=0;x<b;++x)if(!J.screenIdSet_[m[x]]){m=!1;break a}m=!0}m||(Sqo("Updated online screens: "+(0,_.TE)(J.screenIdSet_)),J.screenIdSet_=c,J.publish("screenChange"));GYe(J)},hs5=function(J){isNaN(J.refreshTimer_)||_.pg(J.refreshTimer_);
J.refreshTimer_=_.P7((0,_.Wa)(J.requestScreenAvailability_,J),J.fastCheckEndTime_>0&&J.fastCheckEndTime_<_.lc()?2E4:1E4)};
RK.prototype.requestScreenAvailability_=function(){_.pg(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&this.currentRequest_.abort();var J=EUS(this);if(_.Lw.getCount(J)){var c=ZM(this.JSC$17518_http_,"/pairing/get_screen_availability"),m={lounge_token:_.Lw.getKeys(J).join(",")};this.currentRequest_=this.JSC$17518_http_.sendRequest("POST",c,m,(0,_.Wa)(this.onScreenAvailability_,this,J),(0,_.Wa)(this.onScreenAvailabilityError_,this))}else dD4(this,{}),hs5(this)};
RK.prototype.onScreenAvailability_=function(J,c){this.currentRequest_=null;var m=_.Lw.getKeys(EUS(this));if(_.Mu(m,_.Lw.getKeys(J))){c=c.screens||[];m={};for(var b=c.length,x=0;x<b;++x)m[J[c[x].loungeToken]]=c[x].status=="online";dD4(this,m);hs5(this)}else this.warn_("Changing Screen set during request."),this.requestScreenAvailability_()};
RK.prototype.onScreenAvailabilityError_=function(J){this.warn_("Screen availability failed: "+J);this.currentRequest_=null;hs5(this)};
var Sqo=function(J){U3("OnlineScreenService",J)};
RK.prototype.warn_=function(J){U3("OnlineScreenService",J)};
var EUS=function(J){var c={};_.vG(J.getScreensToCheck_(),function(m){m.token?c[m.token]=m.id:this.warn_("Requesting availability of screen w/o lounge token.")});
return c},GYe=function(J){J=_.Lw.getKeys(_.Lw.filter(J.screenIdSet_,function(c){return c}));
J.sort(_.xZ);J.length?_.ct("yt-remote-online-screen-ids",J.join(","),60):_.bU("yt-remote-online-screen-ids")};_.yv(E3,d$);_.V=E3.prototype;_.V.start=function(){this.localScreenService_.start();this.onlineScreenService_.start();this.screens.length&&(this.publish("screenChange"),this.onlineScreenService_.isEmpty()||this.publish("onlineScreenChange"))};
_.V.add=function(J,c,m){this.localScreenService_.add(J,c,m)};
_.V.remove=function(J,c,m){this.localScreenService_.remove(J,c,m);this.onlineScreenService_.update()};
_.V.updateName=function(J,c,m,b){this.localScreenService_.contains(J)?this.localScreenService_.updateName(J,c,m,b):(J="Updating name of unknown screen: "+J.name,U3(this.JSC$17508_logName_,J),b(Error(J)))};
_.V.getScreens=function(J){return J?this.screens:WvR(this.screens,_.BH(this.automaticScreens_,function(c){return!this.contains(c)},this))};
_.V.JSC$17523_getOnlineScreens=function(){return _.BH(this.getScreens(!0),function(J){return this.onlineScreenService_.isOnline(J.id)},this)};
var OV1=function(J,c,m,b,x,P){J.info("getAutomaticScreenByIds "+m+" / "+c);m||(m=J.deviceToScreenId_[c]);var p=J.getScreens(),t=m?fL(p,m):null;m&&(J.disableAutomaticScreenCache_||t)||(t=fL(p,c));if(t){t.uuid=c;var I=oK(J,t);$De(J.onlineScreenService_,I,function(a){x(a?I:null)})}else m?vUe(J,m,(0,_.Wa)(function(a){var k=oK(this,new zq({name:b,
screenId:m,loungeToken:a,dialId:c||""}));$De(this.onlineScreenService_,k,function(H){x(H?k:null)})},J),P):x(null)};
E3.prototype.JSC$17523_getScreenByPollingPairingCode=function(J,c,m,b,x,P){var p=this;this.info("getDialScreenByPairingCode "+J+" / "+c);var t=new XYs(this.JSC$17521_http_,J,c,m,b);t.subscribe("pairingComplete",function(I,a){_.yr(t);x(oK(p,I),a)});
t.subscribe("pairingFailed",function(I){_.yr(t);P(I)});
t.start();return(0,_.Wa)(t.stop,t)};
var AV4=function(J,c){for(var m=J.screens.length,b=0;b<m;++b)if(J.screens[b].name==c)return J.screens[b];return null};
E3.prototype.JSC$17523_getScreenByPairingCode=function(J,c,m,b){_.tL(ZM(this.JSC$17521_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:J},timeout:5E3,onSuccess:(0,_.Wa)(function(x,P){x=new zq(P.screen||{});if(!x.name||AV4(this,x.name)){a:{P=x.name;for(var p=2,t=c(P,p);AV4(this,t);){p++;if(p>20)break a;t=c(P,p)}P=t}x.name=P}m(oK(this,x))},this),
onError:(0,_.Wa)(function(x){b(Error("Gk`"+x.status))},this),
onTimeout:(0,_.Wa)(function(){b(Error("Hk"))},this)})};
var Rs1=function(J,c,m){$De(J.onlineScreenService_,c,m)};
E3.prototype.disposeInternal=function(){_.yr(this.localScreenService_);_.yr(this.onlineScreenService_);E3.superClass_.disposeInternal.call(this)};
var vUe=function(J,c,m,b){J.info("requestLoungeToken_ for "+c);var x={postParams:{screen_ids:c},method:"POST",context:J,onSuccess:function(P,p){P=p&&p.screens||[];P[0]&&P[0].screenId==c?m(P[0].loungeToken):b(Error("Ik"))},
onError:function(){b(Error("Jk"))}};
_.tL(ZM(J.JSC$17521_http_,"/pairing/get_lounge_token_batch"),x)},oUR=function(J){J.screens=J.localScreenService_.getScreens();
for(var c=_.Lw.transpose(J.deviceToScreenId_),m=J.screens.length,b=0;b<m;++b){var x=J.screens[b];x.uuid=c[x.id]||""}J.info("Updated manual screens: "+hFR(J.screens))};
E3.prototype.handleScreenChange_=function(){oUR(this);this.publish("screenChange");this.onlineScreenService_.update()};
var d8f=function(J){QeR(J);J.localScreenService_=new Gq(J.JSC$17521_http_);J.localScreenService_.subscribe("screenChange",(0,_.Wa)(J.handleScreenChange_,J));oUR(J);J.disableAutomaticScreenCache_||(J.automaticScreens_=DDu(_.m7("yt-remote-automatic-screen-cache")||[]));QeR(J);J.info("Initializing automatic screens: "+hFR(J.automaticScreens_));J.onlineScreenService_=new RK(J.JSC$17521_http_,(0,_.Wa)(J.getScreens,J,!0));J.onlineScreenService_.subscribe("screenChange",(0,_.Wa)(function(){this.publish("onlineScreenChange")},
J))},oK=function(J,c){var m=J.get(c.id);
m?(m.uuid=c.uuid,c=m):((m=fL(J.automaticScreens_,c.uuid))?(m.id=c.id,m.token=c.token,c=m):J.automaticScreens_.push(c),J.disableAutomaticScreenCache_||esR(J));QeR(J);J.deviceToScreenId_[c.uuid]=c.id;_.ct("yt-remote-device-id-map",J.deviceToScreenId_,31536E3);return c},esR=function(J){J=_.BH(J.automaticScreens_,function(c){return c.idType!="shortLived"});
_.ct("yt-remote-automatic-screen-cache",_.Wm(J,see))},QeR=function(J){J.deviceToScreenId_=_.m7("yt-remote-device-id-map")||{}};
E3.prototype.dispose=E3.prototype.dispose;_.yv(v6,_.ei);var QZ=function(J,c){J.screen_=c;J.publish("sessionScreen",J.screen_)},je1=function(J,c){J.screen_&&(J.screen_.token=c,oK(J.JSC$17525_screenService_,J.screen_));
J.publish("sessionScreen",J.screen_)};
v6.prototype.onSessionStopped=function(J){this.isDisposed()||(J&&(ew(this,""+J),this.publish("sessionFailed")),this.screen_=null,this.publish("sessionScreen",null))};
v6.prototype.info=function(J){U3(this.JSC$17525_logName_,J)};
var ew=function(J,c){U3(J.JSC$17525_logName_,c)};
v6.prototype.JSC$17527_getCastSession=function(){return null};
v6.prototype.setDisplayStatus=function(J){var c=this.receiver_;J?(c.displayStatus=new chrome.cast.ReceiverDisplayStatus(J,[]),c.displayStatus.showStop=!0):c.displayStatus=null;chrome.cast.setReceiverDisplayStatus(c,(0,_.Wa)(function(){this.info("Updated receiver status for "+c.friendlyName+": "+J)},this),(0,_.Wa)(function(){ew(this,"Failed to update receiver status for: "+c.friendlyName)},this))};
v6.prototype.disposeInternal=function(){this.setDisplayStatus("");v6.superClass_.disposeInternal.call(this)};var jw=function(J,c,m){v6.call(this,J,c,"CastSession");var b=this;this.config_=m;this.JSC$17530_session_=null;this.JSC$17530_boundSessionUpdate_=(0,_.Wa)(this.JSC$17532_onSessionUpdate_,this);this.boundYoutubeMessage_=(0,_.Wa)(this.onYoutubeMessage_,this);this.sessionStatusTimeoutKey_=_.P7(function(){FOr(b,null)},12E4);
this.getLoungeTokenTimeoutKey_=this.onLoungeTokenTimeoutKey_=this.JSC$17530_checkScreenAvailabilityTimeoutKey_=this.getScreenTimeoutKey_=0;this.JSC$17530_isInitLoungeToken_=!1;this.JSC$17530_lastLoungeTokenRefreshError_="unknown"};
_.D(jw,v6);_.V=jw.prototype;
_.V.setCastSession=function(J){if(this.JSC$17530_session_){if(this.JSC$17530_session_==J)return;ew(this,"Overriding cast session with new session object");ljs(this);this.JSC$17530_isInitLoungeToken_=!1;this.JSC$17530_lastLoungeTokenRefreshError_="unknown";this.JSC$17530_session_.removeUpdateListener(this.JSC$17530_boundSessionUpdate_);this.JSC$17530_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_)}this.JSC$17530_session_=J;this.JSC$17530_session_.addUpdateListener(this.JSC$17530_boundSessionUpdate_);this.JSC$17530_session_.addMessageListener("urn:x-cast:com.google.youtube.mdx",
this.boundYoutubeMessage_);yVr(this,"getMdxSessionStatus")};
_.V.launchWithParams=function(J){this.info("launchWithParams no-op for Cast: "+(0,_.TE)(J))};
_.V.stop=function(){if(this.JSC$17530_session_)this.JSC$17530_session_.stop((0,_.Wa)(function(){this.onSessionStopped()},this),(0,_.Wa)(function(){this.onSessionStopped(Error("Kk"))},this));
else this.onSessionStopped(Error("Lk"))};
_.V.setDisplayStatus=function(){};
_.V.disposeInternal=function(){this.info("disposeInternal");ljs(this);this.JSC$17530_session_&&(this.JSC$17530_session_.removeUpdateListener(this.JSC$17530_boundSessionUpdate_),this.JSC$17530_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_));this.JSC$17530_session_=null;v6.prototype.disposeInternal.call(this)};
var gUR=function(J,c){_.pg(J.getLoungeTokenTimeoutKey_);J.getLoungeTokenTimeoutKey_=0;c==0?BIR(J):J.getLoungeTokenTimeoutKey_=_.P7(function(){BIR(J)},c)},BIR=function(J){yVr(J,"getLoungeToken");
_.pg(J.onLoungeTokenTimeoutKey_);J.onLoungeTokenTimeoutKey_=_.P7(function(){JZR(J,null)},3E4)},yVr=function(J,c){J.info("sendYoutubeMessage_: "+c+" "+(0,_.TE)(void 0));
var m={};m.type=c;J.JSC$17530_session_?J.JSC$17530_session_.sendMessage("urn:x-cast:com.google.youtube.mdx",m,function(){},(0,_.Wa)(function(){ew(this,"Failed to send message: "+c+".")},J)):ew(J,"Sending yt message without session: "+(0,_.TE)(m))};
jw.prototype.onYoutubeMessage_=function(J,c){if(!this.isDisposed())if(c)if(c=(0,_.DP)(c),_.cB(c))switch(J=""+c.type,c=c.data||{},this.info("onYoutubeMessage_: "+J+" "+(0,_.TE)(c)),J){case "mdxSessionStatus":FOr(this,c);break;case "loungeToken":JZR(this,c);break;default:ew(this,"Unknown youtube message: "+J)}else ew(this,"Unable to parse message.");else ew(this,"No data in message.")};
var cZS=function(J,c){if(c)J.info("onConnectedScreenId_: Received screenId: "+c),J.screen_&&J.screen_.id==c||J.getScreen_(c,function(m){QZ(J,m)},function(){return J.onSessionStopped()},5);
else J.onSessionStopped(Error("Mk"))},bOF=function(J,c,m){J.info("onConnectedScreenData_: Received screenData: "+JSON.stringify(c));
var b=new zq(c);mZ4(J,b,function(x){x?(J.JSC$17530_isInitLoungeToken_=!0,oK(J.JSC$17525_screenService_,b),QZ(J,b),J.JSC$17530_lastLoungeTokenRefreshError_="unknown",gUR(J,m)):(_.ha(Error("Nk`"+JSON.stringify(c))),J.onSessionStopped())},5)},FOr=function(J,c){_.pg(J.sessionStatusTimeoutKey_);
J.sessionStatusTimeoutKey_=0;if(c)J.config_.enableCastLoungeToken&&c.loungeToken?c.deviceId?J.screen_&&J.screen_.uuid==c.deviceId||(c.loungeTokenRefreshIntervalMs?bOF(J,{name:J.receiver_.friendlyName,screenId:c.screenId,loungeToken:c.loungeToken,dialId:c.deviceId,screenIdType:"shortLived"},c.loungeTokenRefreshIntervalMs):(_.ha(Error("Pk`"+JSON.stringify(c))),cZS(J,c.screenId))):(_.ha(Error("Ok`"+JSON.stringify(c))),cZS(J,c.screenId)):cZS(J,c.screenId);else J.onSessionStopped(Error("Mk"))},JZR=function(J,
c){_.pg(J.onLoungeTokenTimeoutKey_);
J.onLoungeTokenTimeoutKey_=0;var m=null;if(c)if(c.loungeToken){var b;((b=J.screen_)==null?void 0:b.token)==c.loungeToken&&(m="staleLoungeToken")}else m="missingLoungeToken";else m="noLoungeTokenResponse";m?(J.info("Did not receive a new lounge token in onLoungeToken_ with data: "+(JSON.stringify(c)+", error: "+m)),J.JSC$17530_lastLoungeTokenRefreshError_=m,gUR(J,3E4)):(je1(J,c.loungeToken),J.JSC$17530_isInitLoungeToken_=!1,J.JSC$17530_lastLoungeTokenRefreshError_="unknown",gUR(J,c.loungeTokenRefreshIntervalMs))};
jw.prototype.getScreen_=function(J,c,m,b){_.pg(this.getScreenTimeoutKey_);this.getScreenTimeoutKey_=0;OV1(this.JSC$17525_screenService_,this.receiver_.label,J,this.receiver_.friendlyName,(0,_.Wa)(function(x){x?c(x):b>=0?(ew(this,"Screen "+J+" appears to be offline. "+b+" retries left."),this.getScreenTimeoutKey_=_.P7((0,_.Wa)(this.getScreen_,this,J,c,m,b-1),300)):m(Error("Qk"))},this),m)};
var mZ4=function(J,c,m,b){_.pg(J.JSC$17530_checkScreenAvailabilityTimeoutKey_);J.JSC$17530_checkScreenAvailabilityTimeoutKey_=0;Rs1(J.JSC$17525_screenService_,c,function(x){x||b<0?m(x):J.JSC$17530_checkScreenAvailabilityTimeoutKey_=_.P7(function(){mZ4(J,c,m,b-1)},300)})};
jw.prototype.JSC$17527_getCastSession=function(){return this.JSC$17530_session_};
jw.prototype.JSC$17532_onSessionUpdate_=function(J){this.isDisposed()||J||(ew(this,"Cast session died."),this.onSessionStopped())};
var ljs=function(J){_.pg(J.getScreenTimeoutKey_);J.getScreenTimeoutKey_=0;_.pg(J.JSC$17530_checkScreenAvailabilityTimeoutKey_);J.JSC$17530_checkScreenAvailabilityTimeoutKey_=0;_.pg(J.sessionStatusTimeoutKey_);J.sessionStatusTimeoutKey_=0;_.pg(J.onLoungeTokenTimeoutKey_);J.onLoungeTokenTimeoutKey_=0;_.pg(J.getLoungeTokenTimeoutKey_);J.getLoungeTokenTimeoutKey_=0};var Fq=function(J,c,m,b){v6.call(this,J,c,"DialSession");this.config_=b;this.JSC$17534_session_=this.launchData_=null;this.reversePairingCode_="";this.JSC$17534_theme_=m;this.connectData_=null;this.deferredLaunch_=function(){};
this.JSC$17534_deferredLaunchDeadlineTimer_=NaN;this.JSC$17534_boundSessionUpdate_=(0,_.Wa)(this.JSC$17536_onSessionUpdate_,this);this.cancelPolling_=function(){};
this.getDialAppInfoTimeoutKey_=this.JSC$17534_checkScreenAvailabilityTimeoutKey_=0;this.JSC$17534_isInitLoungeToken_=!1;this.JSC$17534_lastLoungeTokenRefreshError_="unknown"};
_.D(Fq,v6);Fq.prototype.setCastSession=function(J){this.JSC$17534_session_=J;this.JSC$17534_session_.addUpdateListener(this.JSC$17534_boundSessionUpdate_)};
Fq.prototype.launchWithParams=function(J){this.connectData_=J;this.deferredLaunch_()};
Fq.prototype.stop=function(){xZR(this);if(this.JSC$17534_session_)this.JSC$17534_session_.stop((0,_.Wa)(this.onSessionStopped,this,null),(0,_.Wa)(this.onSessionStopped,this,"Failed to stop DIAL device."));else this.onSessionStopped()};
Fq.prototype.disposeInternal=function(){xZR(this);this.JSC$17534_session_&&this.JSC$17534_session_.removeUpdateListener(this.JSC$17534_boundSessionUpdate_);this.JSC$17534_session_=null;v6.prototype.disposeInternal.call(this)};
var VGs=function(J){var c;return!!(J.config_.enableDialLoungeToken&&((c=J.JSC$17534_session_)==null?0:c.getDialAppInfo))},Prf=function(J){J.cancelPolling_=J.JSC$17525_screenService_.JSC$17523_getScreenByPollingPairingCode(J.reversePairingCode_,J.receiver_.label,J.receiver_.friendlyName,VGs(J),function(c,m){J.cancelPolling_=function(){};
J.JSC$17534_isInitLoungeToken_=!0;QZ(J,c);c.idType=="shortLived"&&m>0&&lP(J,m)},function(c){J.cancelPolling_=function(){};
J.onSessionStopped(c)})};
Fq.prototype.JSC$17536_onSessionUpdate_=function(J){this.isDisposed()||J||(ew(this,"DIAL session died."),this.cancelPolling_(),this.cancelPolling_=function(){},this.onSessionStopped())};
var MGS=function(J){var c={};c.pairingCode=J.reversePairingCode_;c.theme=J.JSC$17534_theme_;r51()&&(c.env_useStageMdx=1);return _.Ir(c)},p3o=function(J){return new Promise(function(c){J.reversePairingCode_=Pa1();
if(J.connectData_){var m=new chrome.cast.DialLaunchResponse(!0,MGS(J));c(m);Prf(J)}else J.deferredLaunch_=function(){_.pg(J.JSC$17534_deferredLaunchDeadlineTimer_);J.deferredLaunch_=function(){};
J.JSC$17534_deferredLaunchDeadlineTimer_=NaN;var b=new chrome.cast.DialLaunchResponse(!0,MGS(J));c(b);Prf(J)},J.JSC$17534_deferredLaunchDeadlineTimer_=_.P7(function(){J.deferredLaunch_()},100)})},tGr=function(J,c,m){J.info("initOnConnectedScreenDataPromise_: Received screenData: "+JSON.stringify(c));
var b=new zq(c);return(new Promise(function(x){Nep(J,b,function(P){P?(J.JSC$17534_isInitLoungeToken_=!0,oK(J.JSC$17525_screenService_,b),QZ(J,b),lP(J,m)):_.ha(Error("Sk`"+JSON.stringify(c)));x(P)},5)})).then(function(x){return x?new chrome.cast.DialLaunchResponse(!1):p3o(J)})},IAs=function(J,c){var m=J.launchData_.receiver.label,b=J.receiver_.friendlyName;
return(new Promise(function(x){OV1(J.JSC$17525_screenService_,m,c,b,function(P){P&&P.token&&QZ(J,P);x(P)},function(P){ew(J,"Failed to get DIAL screen: "+P);
x(null)})})).then(function(x){return x&&x.token?new chrome.cast.DialLaunchResponse(!1):p3o(J)})},Nep=function(J,c,m,b){_.pg(J.JSC$17534_checkScreenAvailabilityTimeoutKey_);
J.JSC$17534_checkScreenAvailabilityTimeoutKey_=0;Rs1(J.JSC$17525_screenService_,c,function(x){x||b<0?m(x):J.JSC$17534_checkScreenAvailabilityTimeoutKey_=_.P7(function(){Nep(J,c,m,b-1)},300)})},lP=function(J,c){J.info("getDialAppInfoWithTimeout_ "+c);
VGs(J)&&(_.pg(J.getDialAppInfoTimeoutKey_),J.getDialAppInfoTimeoutKey_=0,c==0?KM5(J):J.getDialAppInfoTimeoutKey_=_.P7(function(){KM5(J)},c))},KM5=function(J){VGs(J)&&J.JSC$17534_session_.getDialAppInfo(function(c){J.info("getDialAppInfo dialLaunchData: "+JSON.stringify(c));
c=c.extraData||{};var m=null;if(c.loungeToken){var b;((b=J.screen_)==null?void 0:b.token)==c.loungeToken&&(m="staleLoungeToken")}else m="missingLoungeToken";m?(J.JSC$17534_lastLoungeTokenRefreshError_=m,lP(J,3E4)):(J.JSC$17534_isInitLoungeToken_=!1,J.JSC$17534_lastLoungeTokenRefreshError_="unknown",je1(J,c.loungeToken),lP(J,c.loungeTokenRefreshIntervalMs))},function(c){J.info("getDialAppInfo error: "+c);
J.JSC$17534_lastLoungeTokenRefreshError_="noLoungeTokenResponse";lP(J,3E4)})},xZR=function(J){_.pg(J.JSC$17534_checkScreenAvailabilityTimeoutKey_);
J.JSC$17534_checkScreenAvailabilityTimeoutKey_=0;_.pg(J.getDialAppInfoTimeoutKey_);J.getDialAppInfoTimeoutKey_=0;J.cancelPolling_();J.cancelPolling_=function(){};
_.pg(J.JSC$17534_deferredLaunchDeadlineTimer_)};var yZ=function(J,c){v6.call(this,J,c,"ManualSession");this.JSC$17538_deferredLaunchDeadlineTimer_=_.P7((0,_.Wa)(this.launchWithParams,this,null),150)};
_.D(yZ,v6);yZ.prototype.stop=function(){this.onSessionStopped()};
yZ.prototype.setCastSession=function(){};
yZ.prototype.launchWithParams=function(){_.pg(this.JSC$17538_deferredLaunchDeadlineTimer_);this.JSC$17538_deferredLaunchDeadlineTimer_=NaN;var J=fL(this.JSC$17525_screenService_.getScreens(),this.receiver_.label);if(J)QZ(this,J);else this.onSessionStopped(Error("Tk"))};
yZ.prototype.disposeInternal=function(){_.pg(this.JSC$17538_deferredLaunchDeadlineTimer_);this.JSC$17538_deferredLaunchDeadlineTimer_=NaN;v6.prototype.disposeInternal.call(this)};var oo=function(J,c){_.ei.call(this);this.config_=c;this.JSC$17541_screenService_=J;this.JSC$17541_appId_=c.appId||"233637DE";this.JSC$17541_theme_=c.theme||"cl";this.disableDial_=c.disableCastApi||!1;this.forceMirroring_=c.forceMirroring||!1;this.JSC$17541_session_=null;this.hasCastReceiver_=!1;this.customReceivers_=[];this.boundReceiverActionListener_=(0,_.Wa)(this.onReceiverAction_,this)};
_.D(oo,_.ei);
oo.prototype.init=function(J,c){chrome.cast.timeout.requestSession=3E4;var m=new chrome.cast.SessionRequest(this.JSC$17541_appId_,[chrome.cast.Capability.AUDIO_OUT]);_.w("desktop_enable_cast_connect")&&(m.androidReceiverCompatible=!0);this.disableDial_||(m.dialRequest=new chrome.cast.DialRequest("YouTube"));var b=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;J=J||this.forceMirroring_?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION;var x=(0,_.Wa)(this.onReceiverUpdated_,
this);m=new chrome.cast.ApiConfig(m,(0,_.Wa)(this.onSessionEstablished_,this),x,b,J);m.customDialLaunchCallback=(0,_.Wa)(this.onDialLaunchRequested_,this);chrome.cast.initialize(m,(0,_.Wa)(function(){this.isDisposed()||(chrome.cast.addReceiverActionListener(this.boundReceiverActionListener_),Y4F(),this.JSC$17541_screenService_.subscribe("onlineScreenChange",(0,_.Wa)(this.JSC$17543_onScreenChange_,this)),this.customReceivers_=Cr4(this),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},
(0,_.Wa)(function(P){this.warn_("Failed to set initial custom receivers: "+(0,_.TE)(P))},this)),this.publish("yt-remote-cast2-availability-change",BV(this)),c(!0))},this),(0,_.Wa)(function(P){this.warn_("Failed to initialize API: "+(0,_.TE)(P));
c(!1)},this))};
oo.prototype.setConnectedScreenStatus=function(J,c){gE("Setting connected screen ID: "+J+" -> "+c);if(this.JSC$17541_session_){var m=this.JSC$17541_session_.screen_;if(!J||m&&m.id!=J)gE("Unsetting old screen status: "+this.JSC$17541_session_.receiver_.friendlyName),Jl(this,null)}if(J&&c){if(!this.JSC$17541_session_){J=fL(this.JSC$17541_screenService_.getScreens(),J);if(!J){gE("setConnectedScreenStatus: Unknown screen.");return}if(J.idType=="shortLived"){gE("setConnectedScreenStatus: Screen with id type to be short lived.");
return}m=aA5(this,J);m||(gE("setConnectedScreenStatus: Connected receiver not custom..."),m=new chrome.cast.Receiver(J.uuid?J.uuid:J.id,J.name),m.receiverType=chrome.cast.ReceiverType.CUSTOM,this.customReceivers_.push(m),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.Wa)(function(b){this.warn_("Failed to set initial custom receivers: "+(0,_.TE)(b))},this)));
gE("setConnectedScreenStatus: new active receiver: "+m.friendlyName);Jl(this,new yZ(this.JSC$17541_screenService_,m),!0)}this.JSC$17541_session_.setDisplayStatus(c)}else gE("setConnectedScreenStatus: no screen.")};
var aA5=function(J,c){return c?_.$t(J.customReceivers_,function(m){return ub(c,m.label)},J):null};
oo.prototype.setLaunchParams=function(J){this.isDisposed()?this.warn_("Setting connection data on disposed cast v2"):this.JSC$17541_session_?this.JSC$17541_session_.launchWithParams(J):this.warn_("Setting connection data without a session")};
oo.prototype.JSC$17543_stopSession=function(){this.isDisposed()?this.warn_("Stopping session on disposed cast v2"):this.JSC$17541_session_?(this.JSC$17541_session_.stop(),Jl(this,null)):gE("Stopping non-existing session")};
oo.prototype.requestSession=function(){chrome.cast.requestSession((0,_.Wa)(this.onSessionEstablished_,this),(0,_.Wa)(this.onSessionRequestFailed_,this))};
oo.prototype.disposeInternal=function(){this.JSC$17541_screenService_.unsubscribe("onlineScreenChange",(0,_.Wa)(this.JSC$17543_onScreenChange_,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.boundReceiverActionListener_);_.j2(_.$y("yt.mdx.remote.debug.handlers_")||[],zFf);_.yr(this.JSC$17541_session_);_.ei.prototype.disposeInternal.call(this)};
var gE=function(J){U3("Controller",J)};
oo.prototype.warn_=function(J){U3("Controller",J)};
var zFf=function(J){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(J)},BV=function(J){return J.hasCastReceiver_||!!J.customReceivers_.length||!!J.JSC$17541_session_},Jl=function(J,c,m){c!=J.JSC$17541_session_&&(_.yr(J.JSC$17541_session_),(J.JSC$17541_session_=c)?(m?J.publish("yt-remote-cast2-receiver-resumed",c.receiver_):J.publish("yt-remote-cast2-receiver-selected",c.receiver_),c.subscribe("sessionScreen",(0,_.Wa)(J.onSessionScreen_,J,c)),c.subscribe("sessionFailed",
function(){return k3R(J,c)}),c.screen_?J.publish("yt-remote-cast2-session-change",c.screen_):m&&J.JSC$17541_session_.launchWithParams(null)):J.publish("yt-remote-cast2-session-change",null))},k3R=function(J,c){J.JSC$17541_session_==c&&J.publish("yt-remote-cast2-session-failed")};
_.V=oo.prototype;_.V.onSessionScreen_=function(J,c){this.JSC$17541_session_==J&&(c||Jl(this,null),this.publish("yt-remote-cast2-session-change",c))};
_.V.onReceiverAction_=function(J,c){if(!this.isDisposed())if(J)switch(J.friendlyName=chrome.cast.unescape(J.friendlyName),gE("onReceiverAction_ "+J.label+" / "+J.friendlyName+"-- "+c),c){case chrome.cast.ReceiverAction.CAST:if(this.JSC$17541_session_)if(this.JSC$17541_session_.receiver_.label!=J.label)gE("onReceiverAction_: Stopping active receiver: "+this.JSC$17541_session_.receiver_.friendlyName),this.JSC$17541_session_.stop();else{gE("onReceiverAction_: Casting to active receiver.");this.JSC$17541_session_.screen_&&
this.publish("yt-remote-cast2-session-change",this.JSC$17541_session_.screen_);break}switch(J.receiverType){case chrome.cast.ReceiverType.CUSTOM:Jl(this,new yZ(this.JSC$17541_screenService_,J));break;case chrome.cast.ReceiverType.DIAL:Jl(this,new Fq(this.JSC$17541_screenService_,J,this.JSC$17541_theme_,this.config_));break;case chrome.cast.ReceiverType.CAST:Jl(this,new jw(this.JSC$17541_screenService_,J,this.config_));break;default:this.warn_("Unknown receiver type: "+J.receiverType)}break;case chrome.cast.ReceiverAction.STOP:this.JSC$17541_session_&&
this.JSC$17541_session_.receiver_.label==J.label?this.JSC$17541_session_.stop():this.warn_("Stopping receiver w/o session: "+J.friendlyName)}else this.warn_("onReceiverAction_ called without receiver.")};
_.V.onDialLaunchRequested_=function(J){if(this.isDisposed())return Promise.reject(Error("Uk"));var c=J.receiver;c.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.warn_("Not DIAL receiver: "+c.friendlyName),c.receiverType=chrome.cast.ReceiverType.DIAL);var m=this.JSC$17541_session_?this.JSC$17541_session_.receiver_:null;if(!m||m.label!=c.label)return this.warn_("Receiving DIAL launch request for non-clicked DIAL receiver: "+c.friendlyName),Promise.reject(Error("Vk"));if(m&&m.label==c.label&&m.receiverType!=
chrome.cast.ReceiverType.DIAL){if(this.JSC$17541_session_.screen_)return gE("Reselecting dial screen."),this.publish("yt-remote-cast2-session-change",this.JSC$17541_session_.screen_),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.warn_('Changing CAST intent from "'+m.receiverType+'" to "dial" for '+c.friendlyName);Jl(this,new Fq(this.JSC$17541_screenService_,c,this.JSC$17541_theme_,this.config_))}c=this.JSC$17541_session_;c.launchData_=J;c.launchData_.appState==chrome.cast.DialAppState.RUNNING?
(J=c.launchData_.extraData||{},m=J.screenId||null,VGs(c)&&J.loungeToken?J.loungeTokenRefreshIntervalMs?J=tGr(c,{name:c.receiver_.friendlyName,screenId:J.screenId,loungeToken:J.loungeToken,dialId:c.launchData_.receiver.label,screenIdType:"shortLived"},J.loungeTokenRefreshIntervalMs):(_.ha(Error("Rk`"+JSON.stringify(J))),J=IAs(c,m)):J=IAs(c,m)):J=p3o(c);return J};
_.V.onSessionEstablished_=function(J){var c=this;if(!this.isDisposed()&&!this.forceMirroring_){gE("New cast session ID: "+J.sessionId);var m=J.receiver;if(m.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.JSC$17541_session_)if(m.receiverType==chrome.cast.ReceiverType.CAST)gE("Got resumed cast session before resumed mdx connection."),m.friendlyName=chrome.cast.unescape(m.friendlyName),Jl(this,new jw(this.JSC$17541_screenService_,m,this.config_),!0);else{this.warn_("Got non-cast session without previous mdx receiver event, or mdx resume.");
return}var b=this.JSC$17541_session_.receiver_,x=fL(this.JSC$17541_screenService_.getScreens(),b.label);x&&ub(x,m.label)&&b.receiverType!=chrome.cast.ReceiverType.CAST&&m.receiverType==chrome.cast.ReceiverType.CAST&&(gE("onSessionEstablished_: manual to cast session change "+m.friendlyName),_.yr(this.JSC$17541_session_),this.JSC$17541_session_=new jw(this.JSC$17541_screenService_,m,this.config_),this.JSC$17541_session_.subscribe("sessionScreen",(0,_.Wa)(this.onSessionScreen_,this,this.JSC$17541_session_)),
this.JSC$17541_session_.subscribe("sessionFailed",function(){return k3R(c,c.JSC$17541_session_)}),this.JSC$17541_session_.launchWithParams(null));
this.JSC$17541_session_.setCastSession(J)}}};
_.V.JSC$17543_getCastSession=function(){return this.JSC$17541_session_?this.JSC$17541_session_.JSC$17527_getCastSession():null};
_.V.onSessionRequestFailed_=function(J){this.isDisposed()||(this.warn_("Failed to estabilish a session: "+(0,_.TE)(J)),J.code!=chrome.cast.ErrorCode.CANCEL&&Jl(this,null),this.publish("yt-remote-cast2-session-failed"))};
_.V.onReceiverUpdated_=function(J){gE("Receiver availability updated: "+J);if(!this.isDisposed()){var c=BV(this);this.hasCastReceiver_=J==chrome.cast.ReceiverAvailability.AVAILABLE;BV(this)!=c&&this.publish("yt-remote-cast2-availability-change",BV(this))}};
var Cr4=function(J){var c=J.JSC$17541_screenService_.JSC$17523_getOnlineScreens(),m=J.JSC$17541_session_&&J.JSC$17541_session_.receiver_;J=_.Wm(c,function(b){m&&ub(b,m.label)&&(m=null);var x=b.uuid?b.uuid:b.id,P=aA5(this,b);P?(P.label=x,P.friendlyName=b.name):(P=new chrome.cast.Receiver(x,b.name),P.receiverType=chrome.cast.ReceiverType.CUSTOM);return P},J);
m&&(m.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(m=new chrome.cast.Receiver(m.label,m.friendlyName),m.receiverType=chrome.cast.ReceiverType.CUSTOM),J.push(m));return J};
oo.prototype.JSC$17543_onScreenChange_=function(){this.isDisposed()||(this.customReceivers_=Cr4(this),gE("Updating custom receivers: "+(0,_.TE)(this.customReceivers_)),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.Wa)(function(){this.warn_("Failed to set custom receivers.")},this)),this.publish("yt-remote-cast2-availability-change",BV(this)))};
oo.prototype.setLaunchParams=oo.prototype.setLaunchParams;oo.prototype.setConnectedScreenStatus=oo.prototype.setConnectedScreenStatus;oo.prototype.stopSession=oo.prototype.JSC$17543_stopSession;oo.prototype.getCastSession=oo.prototype.JSC$17543_getCastSession;oo.prototype.requestSession=oo.prototype.requestSession;oo.prototype.init=oo.prototype.init;oo.prototype.dispose=oo.prototype.dispose;var J0F=[];var HOR=function(J){J.audioTrackId=null;J.trackData=null;J.playerState=-1;J.hasPrevious=!1;J.hasNext=!1;J.playerTime_=0;J.playerTimeAt_=_.lc();J.seekableStart_=0;J.seekableEnd_=0;J.duration_=0;J.loadedTime=0;J.liveIngestionTime_=NaN;J.isLive_=!1};
_.V=Qz.prototype;
_.V.reset=function(J){this.listId="";this.stopPlayer();this.volume=-1;this.muted=!1;J&&(this.index=J.index,this.listId=J.listId,this.videoId=J.videoId,this.playerState=J.playerState,this.volume=J.volume,this.muted=J.muted,this.audioTrackId=J.audioTrackId,this.trackData=J.trackData,this.hasPrevious=J.hasPrevious,this.hasNext=J.hasNext,this.playerTime_=J.playerTime,this.playerTimeAt_=J.playerTimeAt,this.seekableStart_=J.seekableStart,this.seekableEnd_=J.seekableEnd,this.duration_=J.duration,this.loadedTime=
J.loadedTime,this.liveIngestionTime_=J.liveIngestionTime,this.isLive_=!isNaN(this.liveIngestionTime_))};
_.V.stopPlayer=function(){this.index=-1;this.videoId="";HOR(this)};
_.V.isPlaying=function(){return this.playerState==1};
_.V.isBuffering=function(){return this.playerState==3};
_.V.isAdPlaying=function(){return this.playerState==1081};
var cq=function(J,c){J.playerTime_=c;J.playerTimeAt_=_.lc()},iOe=function(J){switch(J.playerState){case 1:case 1081:return(_.lc()-J.playerTimeAt_)/1E3+J.playerTime_;
case -1E3:return 0}return J.playerTime_};
Qz.prototype.getDuration=function(){return this.isLive_?this.duration_+(this.isPlaying()?(_.lc()-this.playerTimeAt_)/1E3:0):this.duration_};
var nWp=function(J,c,m){var b=J.videoId;J.videoId=c;J.index=m;c!=b&&HOR(J)},Te4=function(J){var c={};
c.index=J.index;c.listId=J.listId;c.videoId=J.videoId;c.playerState=J.playerState;c.volume=J.volume;c.muted=J.muted;c.audioTrackId=J.audioTrackId;c.trackData=_.Lw.unsafeClone(J.trackData);c.hasPrevious=J.hasPrevious;c.hasNext=J.hasNext;c.playerTime=J.playerTime_;c.playerTimeAt=J.playerTimeAt_;c.seekableStart=J.seekableStart_;c.seekableEnd=J.seekableEnd_;c.duration=J.duration_;c.loadedTime=J.loadedTime;c.liveIngestionTime=J.liveIngestionTime_;return c};
Qz.prototype.clone=function(){return new Qz(Te4(this))};var md=function(J,c){_.ei.call(this);var m=this;this.state_=0;this.connection_=J;this.contextSubscriptions_=[];this.actionQueue_=new yIR;this.castSession_=this.castMedia_=null;this.boundCastStatusListener_=(0,_.Wa)(this.onCastStatusUpdate_,this);this.boundCastMediaListener_=(0,_.Wa)(this.onCastMediaChange_,this);this.boundCastMediaUpdateListener_=(0,_.Wa)(this.onCastMediaUpdate_,this);this.boundCloudviewAvailabilityChange_=(0,_.Wa)(this.onCloudviewAvailabilityChange_,this);var b=0;J?(b=J.getProxyState(),
b!=3&&(J.subscribe("proxyStateChange",this.setState_,this),w3R(this))):b=3;b!=0&&(c?this.setState_(b):_.P7(function(){m.setState_(b)},0));
(J=xaf())&&rZs(this,J);this.subscribe("yt-remote-cast2-session-change",this.boundCloudviewAvailabilityChange_)};
_.D(md,_.ei);md.prototype.getState=function(){return this.state_};
md.prototype.getReconnectTimeout=function(){return this.connection_.getReconnectTimeout()};
md.prototype.reconnect=function(){this.connection_.reconnect()};
var bt=function(J){return new Qz(J.connection_.getPlayerContextData())};
_.V=md.prototype;_.V.play=function(){xE(this)?(this.castMedia_?this.castMedia_.play(null,_.tF,syR(this,"play")):V$(this,"play"),LM5(this,1,iOe(bt(this))),this.publish("remotePlayerChange")):Pq(this,this.play)};
_.V.pause=function(){xE(this)?(this.castMedia_?this.castMedia_.pause(null,_.tF,syR(this,"pause")):V$(this,"pause"),LM5(this,2,iOe(bt(this))),this.publish("remotePlayerChange")):Pq(this,this.pause)};
_.V.seekTo=function(J){if(xE(this)){if(this.castMedia_){var c=bt(this),m=new chrome.cast.media.SeekRequest;m.currentTime=J;c.isPlaying()||c.isBuffering()?m.resumeState=chrome.cast.media.ResumeState.PLAYBACK_START:m.resumeState=chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.castMedia_.seek(m,_.tF,syR(this,"seekTo",{newTime:J}))}else V$(this,"seekTo",{newTime:J});LM5(this,3,J);this.publish("remotePlayerChange")}else Pq(this,_.k2(this.seekTo,J))};
_.V.stop=function(){if(xE(this)){this.castMedia_?this.castMedia_.stop(null,_.tF,syR(this,"stopVideo")):V$(this,"stopVideo");var J=bt(this);J.stopPlayer();MN(this,J);this.publish("remotePlayerChange")}else Pq(this,this.stop)};
_.V.setVolume=function(J,c){if(xE(this)){var m=bt(this);if(this.castSession_){if(m.volume!=J){var b=Math.round(J)/100;this.castSession_.setReceiverVolumeLevel(b,(0,_.Wa)(function(){SW("set receiver volume: "+b)},this),(0,_.Wa)(function(){this.warn_("failed to set receiver volume.")},this))}m.muted!=c&&this.castSession_.setReceiverMuted(c,(0,_.Wa)(function(){SW("set receiver muted: "+c)},this),(0,_.Wa)(function(){this.warn_("failed to set receiver muted.")},this))}else{var x={volume:J,
muted:c};m.volume!=-1&&(x.delta=J-m.volume);V$(this,"setVolume",x)}m.muted=c;m.volume=J;MN(this,m)}else Pq(this,_.k2(this.setVolume,J,c))};
_.V.setAudioTrack=function(J,c){xE(this)?(c=c.getLanguageInfo().getId(),V$(this,"setAudioTrack",{videoId:J,audioTrackId:c}),J=bt(this),J.audioTrackId=c,MN(this,J)):Pq(this,_.k2(this.setAudioTrack,J,c))};
_.V.addVideo=function(J){xE(this)?V$(this,"addVideo",{videoId:J}):Pq(this,_.k2(this.addVideo,J))};
_.V.addPlaylist=function(J){xE(this)?V$(this,"addVideos",{listId:J}):Pq(this,_.k2(this.addPlaylist,J))};
_.V.addVideos=function(J){J.length==0?this.warn_("Ignore add videos request due to empty list"):xE(this)?V$(this,"addVideos",{videoIds:J.join(",")}):Pq(this,_.k2(this.addVideos,J))};
_.V.JSC$17553_removeVideo=function(J){xE(this)?V$(this,"removeVideo",{videoId:J}):Pq(this,_.k2(this.JSC$17553_removeVideo,J))};
_.V.JSC$17553_insertVideo=function(J){xE(this)?V$(this,"insertVideo",{videoId:J}):Pq(this,_.k2(this.JSC$17553_insertVideo,J))};
_.V.playVideo=function(J,c,m,b,x,P,p){b=b===void 0?null:b;x=x===void 0?null:x;P=P===void 0?null:P;p=p===void 0?null:p;var t=bt(this),I={videoId:J};m!==void 0&&(I.currentIndex=m);nWp(t,J,m||0);c!==void 0&&(cq(t,c),I.currentTime=c);b&&(I.listId=b);x&&(I.playerParams=x);P&&(I.clickTrackingParams=P);p&&(I.locationInfo=(0,_.TE)(p));V$(this,"setPlaylist",I);b||MN(this,t)};
_.V.nextVideo=function(J,c){if(xE(this)){if(J&&c){var m=bt(this);nWp(m,J,c);MN(this,m)}V$(this,"next")}else Pq(this,_.k2(this.nextVideo,J,c))};
_.V.clearPlaylist=function(){if(xE(this)){V$(this,"clearPlaylist");var J=bt(this);J.reset();MN(this,J);this.publish("remotePlayerChange")}else Pq(this,this.clearPlaylist)};
_.V.dispose=function(){if(this.state_!=3){var J=this.state_;this.state_=3;this.publish("proxyStateChange",J,this.state_)}_.ei.prototype.dispose.call(this)};
_.V.disposeInternal=function(){DZF(this);this.connection_=null;this.actionQueue_.clear();rZs(this,null);_.ei.prototype.disposeInternal.call(this)};
var w3R=function(J){_.vG("nowAutoplaying autoplayDismissed remotePlayerChange remoteQueueChange autoplayModeChange autoplayUpNext previousNextChange multiStateLoopEnabled loopModeChange".split(" "),function(c){this.contextSubscriptions_.push(this.connection_.subscribe(c,_.k2(this.onProxyEvent_,c),this))},J)},DZF=function(J){_.vG(J.contextSubscriptions_,function(c){this.connection_.unsubscribeByKey(c)},J);
J.contextSubscriptions_.length=0},xE=function(J){return J.getState()==1},Pq=function(J,c){J.actionQueue_.getCount()<50&&J.actionQueue_.enqueue(c)},LM5=function(J,c,m){var b=bt(J);
cq(b,m);b.playerState!=-1E3&&(b.playerState=c);MN(J,b)},V$=function(J,c,m){J.connection_.sendMessage(c,m)},MN=function(J,c){DZF(J);
J.connection_.setPlayerContextData(Te4(c));w3R(J)};
md.prototype.setState_=function(J){if((J!=this.state_||J==2)&&this.state_!=3&&J!=0){var c=this.state_;this.state_=J;this.publish("proxyStateChange",c,J);if(J==1)for(;!this.actionQueue_.isEmpty();)J=this.actionQueue_,E_h(J),J.front_.pop().apply(this);else J==3&&this.dispose()}};
md.prototype.onProxyEvent_=function(J,c){this.publish(J,c)};
var rZs=function(J,c){J.castSession_&&(J.castSession_.removeUpdateListener(J.boundCastStatusListener_),J.castSession_.removeMediaListener(J.boundCastMediaListener_),J.onCastMediaChange_(null));J.castSession_=c;if(J.castSession_&&(SW("Setting cast session: "+J.castSession_.sessionId),J.castSession_.addUpdateListener(J.boundCastStatusListener_),J.castSession_.addMediaListener(J.boundCastMediaListener_),J.castSession_.media.length))J.onCastMediaChange_(J.castSession_.media[0])};
md.prototype.onCastStatusUpdate_=function(J){if(!J)this.onCastMediaChange_(null),rZs(this,null);else if(this.castSession_.receiver.volume){J=this.castSession_.receiver.volume;var c=bt(this),m=Math.round(100*J.level||0);if(c.volume!=m||c.muted!=J.muted)SW("Cast volume update: "+J.level+(J.muted?" muted":"")),c.volume=m,c.muted=!!J.muted,MN(this,c)}};
md.prototype.onCastMediaChange_=function(J){SW("Cast media: "+!!J);this.castMedia_&&this.castMedia_.removeUpdateListener(this.boundCastMediaUpdateListener_);if(this.castMedia_=J)this.castMedia_.addUpdateListener(this.boundCastMediaUpdateListener_),WMu(this),this.publish("remotePlayerChange")};
var WMu=function(J){var c=J.castMedia_.media,m=J.castMedia_.customData;if(c&&m){var b=bt(J);c.contentId!=b.videoId&&SW("Cast changing video to: "+c.contentId);b.videoId=c.contentId;b.playerState=m.playerState;cq(b,J.castMedia_.getEstimatedTime());MN(J,b)}else SW("No cast media video. Ignoring state update.")};
md.prototype.onCastMediaUpdate_=function(J){if(J)WMu(this),this.publish("remotePlayerChange");else this.onCastMediaChange_(null)};
md.prototype.onCloudviewAvailabilityChange_=function(){var J=xaf();J&&rZs(this,J)};
md.prototype.warn_=function(J){U3("CP",J)};
var syR=function(J,c,m){return(0,_.Wa)(function(b){this.warn_("Failed to "+c+" with cast v2 channel. Error code: "+b.code);b.code!=chrome.cast.ErrorCode.TIMEOUT&&(this.warn_("Retrying "+c+" using MDx browser channel."),V$(this,c,m))},J)};var NN=function(J,c,m,b){b=b===void 0?!1:b;_.ei.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$17560_http_=J;this.enableConnectWithInitialState_=b;this.listeners_.push(_.B4(window,"beforeunload",function(){x.JSC$17563_disconnect_(2)}));
this.connectedDevices_=[];this.playerContext_=new Qz;this.currentScreenId_=c.id;this.currentScreenIdType_=c.idType;this.channelService=Wee(this.JSC$17560_http_,m,this.JSC$17563_getXsrfToken_,this.currentScreenIdType_=="shortLived",this.currentScreenId_);this.channelService.listen("channelOpened",function(){z5p(x)});
this.channelService.listen("channelClosed",function(){pj("Channel closed");isNaN(x.connectTimerId_)?YD(!0):YD();x.dispose()});
this.channelService.listen("channelError",function(P){YD();isNaN(x.getReconnectTimeout_())?(P==1&&x.currentScreenIdType_=="shortLived"&&x.publish("browserChannelAuthError",P),pj("Channel error: "+P+" without reconnection"),x.dispose()):(x.reconnecting_=!0,pj("Channel error: "+P+" with reconnection in "+x.getReconnectTimeout_()+" ms"),uIs(x,2))});
this.channelService.listen("channelMessage",function(P){fAr(x,P)});
this.channelService.setLoungeToken(c.token);this.subscribe("remoteQueueChange",function(){var P=x.playerContext_.videoId;I1f()&&_.ct("yt-remote-session-video-id",P)})};
_.D(NN,_.ei);
NN.prototype.connect=function(J,c){if(c){var m=c.listId,b=c.videoId,x=c.videoIds,P=c.playerParams,p=c.clickTrackingParams,t=c.index,I={videoId:b},a=c.currentTime,k=c.locationInfo;c=c.loopMode;a!==void 0&&(I.currentTime=a<=5?0:a);P&&(I.playerParams=P);k&&(I.locationInfo=k);p&&(I.clickTrackingParams=p);m&&(I.listId=m);x&&x.length>0&&(I.videoIds=x.join(","));t!==void 0&&(I.currentIndex=t);this.enableConnectWithInitialState_&&(I.loopMode=c||"LOOP_MODE_OFF");m&&(this.playerContext_.listId=m);this.playerContext_.videoId=
b;this.playerContext_.index=t||0;this.playerContext_.state=3;cq(this.playerContext_,a);this.autoplayMode_="UNSUPPORTED";m=this.enableConnectWithInitialState_?"setInitialState":"setPlaylist";pj("Connecting with "+m+" and params: "+(0,_.TE)(I));this.channelService.connect({method:m,params:(0,_.TE)(I)},J,HNu())}else pj("Connecting without params"),this.channelService.connect({},J,HNu());YPo(this)};
NN.prototype.setLoungeToken=function(J){this.channelService.setLoungeToken(J)};
NN.prototype.dispose=function(){this.isDisposed()||(_.jD("yt.mdx.remote.remoteClient_",null),this.publish("beforeDispose"),uIs(this,3));_.ei.prototype.dispose.call(this)};
NN.prototype.disposeInternal=function(){X3S(this);ZOe(this);qPR(this);_.pg(this.clientSetVideoTimerId_);this.clientSetVideoTimerId_=NaN;_.pg(this.idleDisconnectTimerId_);this.idleDisconnectTimerId_=NaN;this.clientVideoId_=null;_.eg3(this.listeners_);this.listeners_.length=0;this.channelService.dispose();_.ei.prototype.disposeInternal.call(this);this.autoplayMode_=this.autoplayVideoId_=this.connectedDevices_=this.playerContext_=this.channelService=null};
var UZF=function(J){return _.$t(J.connectedDevices_,function(c){return c.type=="LOUNGE_SCREEN"})},pj=function(J){U3("conn",J)},uIs=function(J,c){J.publish("proxyStateChange",c)},YPo=function(J){J.connectTimerId_=_.P7(function(){pj("Connecting timeout");
J.JSC$17563_disconnect_(1)},2E4)},X3S=function(J){_.pg(J.connectTimerId_);
J.connectTimerId_=NaN},qPR=function(J){_.pg(J.reconnectedCheckScreenTimeout_);
J.reconnectedCheckScreenTimeout_=NaN},SPo=function(J){ZOe(J);
J.playingSyncTimerId_=_.P7(function(){tl(J,"getNowPlaying")},2E4)},ZOe=function(J){_.pg(J.playingSyncTimerId_);
J.playingSyncTimerId_=NaN},z5p=function(J){pj("Channel opened");
J.reconnecting_&&(J.reconnecting_=!1,qPR(J),J.reconnectedCheckScreenTimeout_=_.P7(function(){pj("Timing out waiting for a screen.");J.JSC$17563_disconnect_(1)},15E3))},dZe=function(J,c){var m=null;
if(c){var b=UZF(J);b&&(m={clientName:b.clientName,deviceMake:b.brand,deviceModel:b.model,osVersion:b.osVersion})}_.jD("yt.mdx.remote.remoteClient_",m);c&&(X3S(J),qPR(J));m=J.channelService.isChannelOpened()&&isNaN(J.connectTimerId_);c==m?c&&(uIs(J,1),tl(J,"getSubtitlesTrack")):c?(J.getOtherConnectedRemoteId_()&&J.playerContext_.reset(),uIs(J,1),tl(J,"getNowPlaying"),h5R(J)):J.JSC$17563_disconnect_(1)},$Zo=function(J,c){var m=c.params.videoId;
delete c.params.videoId;m==J.playerContext_.videoId&&(_.Lw.isEmpty(c.params)?J.playerContext_.trackData=null:J.playerContext_.trackData=c.params,J.publish("remotePlayerChange"))},G3F=function(J,c,m){var b=c.params.videoId||c.params.video_id,x=parseInt(c.params.currentIndex,10);
J.playerContext_.listId=c.params.listId||J.playerContext_.listId;nWp(J.playerContext_,b,x);J.publish("remoteQueueChange",m)},EWu=function(J,c){c.params=c.params||{};
G3F(J,c,"NOW_PLAYING_MAY_CHANGE");J.onStateChange_(c);J.publish("autoplayDismissed")};
NN.prototype.onStateChange_=function(J){var c=parseInt(J.params.currentTime||J.params.current_time,10);cq(this.playerContext_,isNaN(c)?0:c);c=parseInt(J.params.state,10);c=isNaN(c)?-1:c;c==-1&&this.playerContext_.playerState==-1E3&&(c=-1E3);this.playerContext_.playerState=c;c=Number(J.params.loadedTime);this.playerContext_.loadedTime=isNaN(c)?0:c;c=Number(J.params.duration);this.playerContext_.duration_=isNaN(c)?0:c;c=this.playerContext_;var m=Number(J.params.liveIngestionTime);c.liveIngestionTime_=
m;c.isLive_=isNaN(m)?!1:!0;c=this.playerContext_;m=Number(J.params.seekableStartTime);J=Number(J.params.seekableEndTime);c.seekableStart_=isNaN(m)?0:m;c.seekableEnd_=isNaN(J)?0:J;this.playerContext_.playerState==1?SPo(this):ZOe(this);this.publish("remotePlayerChange")};
NN.prototype.onAdStateChange_=function(J){if(this.playerContext_.playerState!=-1E3){var c=1085;switch(parseInt(J.params.adState,10)){case 1:c=1081;break;case 2:c=1084;break;case 0:c=1083}this.playerContext_.playerState=c;J=parseInt(J.params.currentTime,10);cq(this.playerContext_,isNaN(J)?0:J);this.publish("remotePlayerChange")}};
var vWe=function(J,c){var m=c.params.muted=="true";J.playerContext_.volume=parseInt(c.params.volume,10);J.playerContext_.muted=m;J.publish("remotePlayerChange")},OOr=function(J,c){J.autoplayVideoId_=c.params.videoId;
J.publish("nowAutoplaying",parseInt(c.params.timeout,10))},AZu=function(J,c){J.autoplayVideoId_=c.params.videoId||null;
J.publish("autoplayUpNext",J.autoplayVideoId_)},R5R=function(J,c){J.autoplayMode_=c.params.autoplayMode;
J.publish("autoplayModeChange",J.autoplayMode_);J.autoplayMode_=="DISABLED"&&J.publish("autoplayDismissed")},oWp=function(J,c){var m=c.params.hasNext=="true";
J.playerContext_.hasPrevious=c.params.hasPrevious=="true";J.playerContext_.hasNext=m;J.publish("previousNextChange")};
NN.prototype.isCapabilitySupportedOnConnectedDevices_=function(J){if(!this.connectedDevices_||this.connectedDevices_.length===0)return!1;for(var c=_.M(this.connectedDevices_),m=c.next();!m.done;m=c.next())if(!m.value.capabilities.has(J))return!1;return!0};
var fAr=function(J,c){c=c.message;c.params?pj("Received: action="+c.action+", params="+(0,_.TE)(c.params)):pj("Received: action="+c.action+" {}");switch(c.action){case "loungeStatus":c=(0,_.DP)(c.params.devices);J.connectedDevices_=_.Wm(c,function(b){return new Ar(b)});
c=!!_.$t(J.connectedDevices_,function(b){return b.type=="LOUNGE_SCREEN"});
dZe(J,c);c=J.isCapabilitySupportedOnConnectedDevices_("mlm");J.publish("multiStateLoopEnabled",c);break;case "loungeScreenDisconnected":D3e(J.connectedDevices_,function(b){return b.type=="LOUNGE_SCREEN"});
dZe(J,!1);break;case "remoteConnected":var m=new Ar((0,_.DP)(c.params.device));_.$t(J.connectedDevices_,function(b){return b.equals(m)})||_.QJ(J.connectedDevices_,m);
break;case "remoteDisconnected":m=new Ar((0,_.DP)(c.params.device));D3e(J.connectedDevices_,function(b){return b.equals(m)});
break;case "gracefulDisconnect":break;case "playlistModified":G3F(J,c,"QUEUE_MODIFIED");break;case "nowPlaying":EWu(J,c);break;case "onStateChange":J.onStateChange_(c);break;case "onAdStateChange":J.onAdStateChange_(c);break;case "onVolumeChanged":vWe(J,c);break;case "onSubtitlesTrackChanged":$Zo(J,c);break;case "nowAutoplaying":OOr(J,c);break;case "autoplayDismissed":J.publish("autoplayDismissed");break;case "autoplayUpNext":AZu(J,c);break;case "onAutoplayModeChanged":R5R(J,c);break;case "onHasPreviousNextChanged":oWp(J,
c);break;case "requestAssistedSignIn":J.publish("assistedSignInRequested",c.params.authCode);break;case "onLoopModeChanged":J.publish("loopModeChange",c.params.loopMode);break;default:pj("Unrecognized action: "+c.action)}};
_.V=NN.prototype;_.V.getProxyState_=function(){var J=3;this.isDisposed()||(J=0,isNaN(this.getReconnectTimeout_())?this.channelService.isChannelOpened()&&isNaN(this.connectTimerId_)&&(J=1):J=2);return J};
_.V.JSC$17563_disconnect_=function(J){pj("Disconnecting with "+J);_.jD("yt.mdx.remote.remoteClient_",null);X3S(this);this.publish("beforeDisconnect",J);J==1&&YD();this.channelService.disconnect(J);this.dispose()};
_.V.getPlayerContextData_=function(){var J=this.playerContext_;this.clientVideoId_&&(J=this.playerContext_.clone(),nWp(J,this.clientVideoId_,J.index));return Te4(J)};
_.V.setPlayerContextData_=function(J){var c=this,m=new Qz(J);m.videoId&&m.videoId!=this.playerContext_.videoId&&(this.clientVideoId_=m.videoId,_.pg(this.clientSetVideoTimerId_),this.clientSetVideoTimerId_=_.P7(function(){if(c.clientVideoId_){var x=c.clientVideoId_;c.clientVideoId_=null;c.playerContext_.videoId!=x&&tl(c,"getNowPlaying")}},5E3));
var b=[];this.playerContext_.listId==m.listId&&this.playerContext_.videoId==m.videoId&&this.playerContext_.index==m.index||b.push("remoteQueueChange");this.playerContext_.playerState==m.playerState&&this.playerContext_.volume==m.volume&&this.playerContext_.muted==m.muted&&iOe(this.playerContext_)==iOe(m)&&(0,_.TE)(this.playerContext_.trackData)==(0,_.TE)(m.trackData)||b.push("remotePlayerChange");this.playerContext_.reset(J);_.vG(b,function(x){this.publish(x)},this)};
_.V.getOtherConnectedRemoteId_=function(){var J=this.channelService.getDeviceId(),c=_.$t(this.connectedDevices_,function(m){return m.type=="REMOTE_CONTROL"&&m.id!=J});
return c?c.id:""};
_.V.getReconnectTimeout_=function(){return this.channelService.getReconnectTimeout()};
_.V.getAutoplayMode_=function(){return this.autoplayMode_||"UNSUPPORTED"};
_.V.getAutoplayVideoId_=function(){return this.autoplayVideoId_||""};
_.V.JSC$17563_reconnect_=function(){!isNaN(this.getReconnectTimeout_())&&this.channelService.reconnect()};
var h5R=function(J){_.pg(J.idleDisconnectTimerId_);J.idleDisconnectTimerId_=_.P7(function(){J.JSC$17563_disconnect_(1)},864E5)},tl=function(J,c,m){m?pj("Sending: action="+c+", params="+(0,_.TE)(m)):pj("Sending: action="+c);
J.channelService.sendMessage(c,m)};
NN.prototype.sendMessageWithUserAction_=function(J,c){tl(this,J,c);h5R(this)};
NN.prototype.JSC$17563_getXsrfToken_=function(){var J=_.ar.get("SAPISID","")||_.ar.get("__Secure-1PAPISID",void 0)||"",c=_.ar.get("__Secure-3PAPISID","")||"";if(!J&&!c)return"";J=_.yR(_.s7(J),2);c=_.yR(_.s7(c),2);return _.yR(_.s7(","+J+","+c),2)};
NN.prototype.subscribe=NN.prototype.subscribe;NN.prototype.unsubscribeByKey=NN.prototype.unsubscribeByKey;NN.prototype.getProxyState=NN.prototype.getProxyState_;NN.prototype.disconnect=NN.prototype.JSC$17563_disconnect_;NN.prototype.getPlayerContextData=NN.prototype.getPlayerContextData_;NN.prototype.setPlayerContextData=NN.prototype.setPlayerContextData_;NN.prototype.getOtherConnectedRemoteId=NN.prototype.getOtherConnectedRemoteId_;NN.prototype.getReconnectTimeout=NN.prototype.getReconnectTimeout_;
NN.prototype.getAutoplayMode=NN.prototype.getAutoplayMode_;NN.prototype.getAutoplayVideoId=NN.prototype.getAutoplayVideoId_;NN.prototype.reconnect=NN.prototype.JSC$17563_reconnect_;NN.prototype.sendMessage=NN.prototype.sendMessageWithUserAction_;NN.prototype.getXsrfToken=NN.prototype.JSC$17563_getXsrfToken_;NN.prototype.isCapabilitySupportedOnConnectedDevices=NN.prototype.isCapabilitySupportedOnConnectedDevices_;var Qyh=function(J){d$.call(this,"ScreenServiceProxy");this.instance_=J;this.subscriptionKeys_=[];this.subscriptionKeys_.push(this.instance_.$_s("screenChange",(0,_.Wa)(this.JSC$17566_onScreenChange_,this)));this.subscriptionKeys_.push(this.instance_.$_s("onlineScreenChange",(0,_.Wa)(this.onOnlineScreenChange_,this)))};
_.D(Qyh,d$);_.V=Qyh.prototype;_.V.getScreens=function(J){return this.instance_.$_gs(J)};
_.V.contains=function(J){return!!this.instance_.$_c(J)};
_.V.get=function(J){return this.instance_.$_g(J)};
_.V.start=function(){this.instance_.$_st()};
_.V.add=function(J,c,m){this.instance_.$_a(J,c,m)};
_.V.remove=function(J,c,m){this.instance_.$_r(J,c,m)};
_.V.updateName=function(J,c,m,b){this.instance_.$_un(J,c,m,b)};
_.V.disposeInternal=function(){for(var J=this.subscriptionKeys_.length,c=0;c<J;++c)this.instance_.$_ubk(this.subscriptionKeys_[c]);this.subscriptionKeys_.length=0;this.instance_=null;d$.prototype.disposeInternal.call(this)};
_.V.JSC$17566_onScreenChange_=function(){this.publish("screenChange")};
_.V.onOnlineScreenChange_=function(){this.publish("onlineScreenChange")};
E3.prototype.$_st=E3.prototype.start;E3.prototype.$_gspc=E3.prototype.JSC$17523_getScreenByPairingCode;E3.prototype.$_gsppc=E3.prototype.JSC$17523_getScreenByPollingPairingCode;E3.prototype.$_c=E3.prototype.contains;E3.prototype.$_g=E3.prototype.get;E3.prototype.$_a=E3.prototype.add;E3.prototype.$_un=E3.prototype.updateName;E3.prototype.$_r=E3.prototype.remove;E3.prototype.$_gs=E3.prototype.getScreens;E3.prototype.$_gos=E3.prototype.JSC$17523_getOnlineScreens;E3.prototype.$_s=E3.prototype.subscribe;
E3.prototype.$_ubk=E3.prototype.unsubscribeByKey;var gWr=function(J){wys();if(!XJ||!XJ.get("yt-remote-disable-remote-module-for-dev")){J=_.Ub("MDX_CONFIG")||J;WPF();Cah();IB||(IB=new W6(J?J.loungeApiHost:void 0),r51()&&(IB.basePath="/api/loungedev"));Kj||(Kj=_.$y("yt.mdx.remote.deferredProxies_")||[],_.jD("yt.mdx.remote.deferredProxies_",Kj));e5F();var c=Cj();if(!c){var m=new E3(IB,J?J.disableAutomaticScreenCache||!1:!1);_.jD("yt.mdx.remote.screenService_",m);c=Cj();var b={};J&&(b={appId:J.appId,disableDial:J.disableDial,theme:J.theme,loadCastApiSetupScript:J.loadCastApiSetupScript,
disableCastApi:J.disableCastApi,enableDialLoungeToken:J.enableDialLoungeToken,enableCastLoungeToken:J.enableCastLoungeToken,forceMirroring:J.forceMirroring});_.jD("yt.mdx.remote.enableConnectWithInitialState_",J?J.enableConnectWithInitialState||!1:!1);BPS(m,function(P){P?aB()&&PkF(aB(),"YouTube TV"):m.subscribe("onlineScreenChange",function(){gg("yt-remote-receiver-availability-change")})},b)}if(J&&!_.$y("yt.mdx.remote.initialized_")){_.jD("yt.mdx.remote.initialized_",!0);
kE("Initializing: "+(0,_.TE)(J));Hq.push(_.V5("yt-remote-cast2-api-ready",function(){gg("yt-remote-api-ready")}));
Hq.push(_.V5("yt-remote-cast2-availability-change",function(){gg("yt-remote-receiver-availability-change")}));
Hq.push(_.V5("yt-remote-cast2-receiver-selected",function(){jy4();gg("yt-remote-auto-connect","cast-selector-receiver")}));
Hq.push(_.V5("yt-remote-cast2-receiver-resumed",function(){gg("yt-remote-receiver-resumed","cast-selector-receiver")}));
Hq.push(_.V5("yt-remote-cast2-session-change",FM5));Hq.push(_.V5("yt-remote-connection-change",function(P){P?PkF(aB(),"YouTube TV"):lAr()||(PkF(null,null),blu())}));
Hq.push(_.V5("yt-remote-cast2-session-failed",function(){gg("yt-remote-connection-failed")}));
b=yZs();J.isAuto&&(b.id+="#dial");var x=J.capabilities||[];x.length>0&&(b.capabilities=x);b.name=J.device;b.app=J.app;(J=J.theme)&&(b.theme=J);kE(" -- with channel params: "+(0,_.TE)(b));b?(_.ct("yt-remote-session-app",b.app),_.ct("yt-remote-session-name",b.name)):(_.bU("yt-remote-session-app"),_.bU("yt-remote-session-name"));_.jD("yt.mdx.remote.channelParams_",b);c.start();aB()||BeS()}}},cMe=function(){var J=Cj().instance_.$_gos();
var c=JMp();c&&nj()&&(pyr(J,c)||J.push(c));return ME5(J)},mh5=function(){var J=cMe(),c=JMp();
c||(c=lAr());return _.$t(J,function(m){return c&&ub(c,m.key)?!0:!1})},JMp=function(){var J=aB();
if(!J)return null;var c=Cj().getScreens();return fL(c,J)},FM5=function(J){kE("remote.onCastSessionChange_: "+MKR(J));
if(J){var c=JMp();c&&c.id==J.id?(PkF(c.id,"YouTube TV"),J.idType=="shortLived"&&(J=J.token)&&(c=nj())&&c.setLoungeToken(J)):(c&&b$F(),xh4(J,1))}else nj()&&b$F()},b$F=function(){VKR()?Ro().stopSession():Ab("stopSession called before API ready.");
var J=nj();J&&(J.disconnect(1),VBR(null))},P6S=function(){var J=nj();
return J&&J.getProxyState()!=3?new md(nj(),void 0):null},kE=function(J){U3("remote",J)},Cj=function(){if(!MB5){var J=_.$y("yt.mdx.remote.screenService_");
MB5=J?new Qyh(J):null}return MB5},aB=function(){return _.$y("yt.mdx.remote.currentScreenId_")},p$h=function(J){_.jD("yt.mdx.remote.currentScreenId_",J)},jy4=function(){_.jD("yt.mdx.remote.connectData_",null)},nj=function(){return _.$y("yt.mdx.remote.connection_")},VBR=function(J){var c=nj();
jy4();J||p$h("");_.jD("yt.mdx.remote.connection_",J);Kj&&(_.vG(Kj,function(m){m(J)}),Kj.length=0);
c&&!J?gg("yt-remote-connection-change",!1):!c&&J&&gg("yt-remote-connection-change",!0)},lAr=function(){var J=I1f();
if(!J)return null;var c=Cj();if(!c)return null;c=c.getScreens();return fL(c,J)},xh4=function(J,c){p$h(J.id);
J=new NN(IB,J,yZs(),_.$y("yt.mdx.remote.enableConnectWithInitialState_")||!1);J.connect(c,_.$y("yt.mdx.remote.connectData_"));J.subscribe("beforeDisconnect",function(m){gg("yt-remote-before-disconnect",m)});
J.subscribe("beforeDispose",function(){nj()&&VBR(null)});
J.subscribe("browserChannelAuthError",function(){var m=JMp();m&&m.idType=="shortLived"&&(VKR()?Ro().handleBrowserChannelAuthError():Ab("refreshLoungeToken called before API ready."))});
VBR(J)},BeS=function(){var J=lAr();
J?(kE("Resume connection to: "+MKR(J)),xh4(J,0)):(YD(),blu(),kE("Skipping connecting because no session screen found."))},IB=null,Kj=null,MB5=null,e5F=function(){var J=yZs();
if(_.Lw.isEmpty(J)){J=tE1();var c=_.m7("yt-remote-session-name")||"",m=_.m7("yt-remote-session-app")||"";J={device:"REMOTE_CONTROL",id:J,name:c,app:m,mdxVersion:3};J.authuser=String(_.Ub("SESSION_INDEX","0"));(c=_.Ub("DELEGATED_SESSION_ID"))&&(J.pageId=String(c));_.jD("yt.mdx.remote.channelParams_",J)}},yZs=function(){return _.$y("yt.mdx.remote.channelParams_")||{}},Hq=[];var NVe=new _.Un("yt-menu"),tBR=function(){},Knr=function(J,c,m){J=c=="right-click"?m.rightClickMenuPopupHint:m.menuPopupHint;
if(!(IlR(c)>10))return c=c||"default",NVe.set(c+"-impression",IlR(c)+1),J},IlR=function(J){return parseInt(NVe.get((J||"default")+"-impression")||0,10)};
_.F1(tBR);var C6h=function(){this.contexts_=new WeakMap;this.JSC$17572_networkService_=this.activeContext_=null},al1=function(J,c,m){var b=J.contexts_.get(c);
b||(b=new LPu(J.JSC$17572_networkService_),J.contexts_.set(c,b));J.activeContext_=b;m&&J.activeContext_.reset();J.activeContext_.start();return J.activeContext_};var TV=function(){};
TV.prototype.enqueue=function(){var J=this,c;return _.N(function(m){if(J.isCounterfactual())return(c=J.getCounterfactualData())&&J.shouldLogCounterfactualImpression()&&J.sendImpressionEndpoints(c),m.return();J.doEnqueue();_.tD(m)})};
TV.prototype.sendImpressionEndpoints=function(J){_.vO.getInstance().triggerOptionalAction("yt-service-request",{},J[0])};var wt=function(J,c){this.renderer=J;this.page=c};
_.D(wt,TV);wt.prototype.getCounterfactualData=function(){if(this.renderer.impressionCommand)return[this.renderer.impressionCommand]};
wt.prototype.isCounterfactual=function(){return!this.renderer.isVisible};
wt.prototype.shouldLogCounterfactualImpression=function(){return!0};
wt.prototype.doEnqueue=function(){var J=_.Qd(this.page);J&&J.pause();this.renderer.impressionCommand&&_.vO.getInstance().triggerOptionalAction("yt-service-request",{},this.renderer.impressionCommand);this.renderer.promoCommand&&_.WE(_.vO.getInstance(),[this.renderer.promoCommand],this.page)};var knR=function(J,c){this.renderer=J;this.resolver=_.$x();this.JSC$17584_enforcementCounter=new _.Vtu;c?this.JSC$17584_playerManager=_.Qd(c):this.JSC$17584_playerManager=null;_.pv(1,!0)};
_.D(knR,TV);_.V=knR.prototype;_.V.getCounterfactualData=function(){if(this.renderer.impressionEndpoints){var J=[];this.renderer.impressionEndpoints.forEach(function(c){(c=_.ZG(c))&&J.push(c)});
return J}};
_.V.isCounterfactual=function(){return this.renderer.isVisible===!1};
_.V.shouldLogCounterfactualImpression=function(){var J=_.Rzm();J?(this.JSC$17584_enforcementCounter.increment("POPUP"),_.pv(3)):_.pv(2);return J};
_.V.cancel=function(){this.resolver.promise.cancel()};
_.V.doEnqueue=function(){var J=this;_.Rzm()?(this.JSC$17584_enforcementCounter.increment("POPUP"),_.pv(3),H$s(this)):this.JSC$17584_playerManager?(this.resolver.promise.then(function(){H$s(J)}),i$S(this.resolver,this.JSC$17584_playerManager)):_.pv(2)};
var i$S=function(J,c){var m=_.$x();c.getPlayerPromise().then(function(b){m.resolve(b)});
m.promise.then(function(b){b.addEventListener("onAbnormalityDetected",J.resolve);_.Hz(J.promise,function(){b.removeEventListener("onAbnormalityDetected",J.resolve)})});
J.promise.thenCatch(function(){m.promise.cancel()})},H$s=function(J){_.pv(3);
var c={popupType:"LOCKED_MODAL",popup:{enforcementMessageViewModel:J.renderer}};c=_.vO.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:c},{});Promise.all(c).then(function(){n7S();J.JSC$17584_playerManager&&J.JSC$17584_playerManager.pause()})},n7S=function(){N3F(function(J,c){_.MsF(J,c);
J===0?_.pv(7):_.pv(4)})};var TVs=function(J,c){this.renderer=J;this.page=c;this.resolver=_.$x()};
_.D(TVs,TV);_.V=TVs.prototype;_.V.cancel=function(){this.resolver.promise.cancel()};
_.V.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.V.isCounterfactual=function(){return!this.renderer.isVisible};
_.V.shouldLogCounterfactualImpression=function(){return!0};
_.V.doEnqueue=function(){var J=this;this.resolver.promise.then(function(){var m={popup:{mealbarPromoRenderer:J.renderer},popupType:"MEALBAR"};_.vO.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:m},{})});
switch(this.renderer.triggerCondition){case "TRIGGER_CONDITION_POST_AD":if(this.page){var c=_.Qd(this.page);c&&w$4(this.resolver,c)}break;default:this.resolver.resolve()}};
var w$4=function(J,c){var m=_.$x();c.getPlayerPromise().then(function(b){m.resolve(b)});
m.promise.then(function(b){b.addEventListener("onAdEnd",J.resolve);_.Hz(J.promise,function(){b.removeEventListener("onAdEnd",J.resolve)})});
J.promise.thenCatch(function(){m.promise.cancel()})};var rMe=function(J,c){this.renderer=J;this.page=c};
_.D(rMe,TV);_.V=rMe.prototype;_.V.cancel=function(){this.JSC$17592_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$17592_downloadedVideosCountSelectorUnsubscriber(),this.JSC$17592_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.V.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.V.isCounterfactual=function(){return!this.renderer.isVisible};
_.V.shouldLogCounterfactualImpression=function(){return!0};
_.V.doEnqueue=function(){var J=this,c,m;((c=this.renderer.upsellDialogTriggerConditionSupportedDatas)==null?void 0:(m=c.playbackUpsellDialogTriggerConditionData)==null?void 0:m.triggerType)==="TRIGGER_TYPE_POST_DOWNLOAD"?this.JSC$17592_downloadedVideosCountSelectorUnsubscriber=_.Nh(_.Rc(),xUR,function(b,x){b>x&&(sQo(J),J.cancel())}):sQo(this)};
var sQo=function(J){var c={popup:{upsellDialogRenderer:J.renderer},popupType:"MODAL"};_.vO.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:c},{});(J=_.Qd(J.page))&&J.pause()};var rt={},LnR=(rt.TOOLTIP_POSITION_TYPE_BELOW="OPEN_POPUP_POSITION_BOTTOM",rt.TOOLTIP_POSITION_TYPE_START="OPEN_POPUP_POSITION_LEFT",rt.TOOLTIP_POSITION_TYPE_END="OPEN_POPUP_POSITION_RIGHT",rt.TOOLTIP_POSITION_TYPE_BELOW_START="OPEN_POPUP_POSITION_BOTTOMLEFT",rt.TOOLTIP_POSITION_TYPE_BELOW_END="OPEN_POPUP_POSITION_BOTTOMRIGHT",rt.TOOLTIP_POSITION_TYPE_ABOVE_START="OPEN_POPUP_POSITION_TOPLEFT",rt.TOOLTIP_POSITION_TYPE_ABOVE_END="OPEN_POPUP_POSITION_TOPRIGHT",rt),Dh1=function(J,c){this.renderer=J;this.targetManager=
c};
_.D(Dh1,TV);_.V=Dh1.prototype;_.V.cancel=function(){this.renderer.triggerCondition==="TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD"&&this.JSC$17599_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$17599_downloadedVideosCountSelectorUnsubscriber(),this.JSC$17599_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.V.getCounterfactualData=function(){if(this.isCounterfactual()){var J;return(J=this.renderer.promoConfig)==null?void 0:J.impressionEndpoints}};
_.V.isCounterfactual=function(){return!(!this.renderer.promoConfig||!this.renderer.promoConfig.isCounterfactual)};
_.V.shouldLogCounterfactualImpression=function(){return!0};
_.V.doEnqueue=function(){var J=this;if(this.renderer.targetId)switch(this.renderer.triggerCondition){case "TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD":this.JSC$17599_downloadedVideosCountSelectorUnsubscriber=_.Nh(_.Rc(),xUR,function(c,m){J.renderer.targetId&&c>m&&(JO5(J.targetManager,J.renderer.targetId,Wn5(J)),J.cancel())});
break;default:JO5(this.targetManager,this.renderer.targetId,Wn5(this))}};
var Wn5=function(J){var c;if((c=J.renderer.suggestedPosition)==null?0:c.type)var m=LnR[J.renderer.suggestedPosition.type];m||(m="OPEN_POPUP_POSITION_BOTTOM");return{openPopupAction:{popup:{tooltipRenderer:J.renderer},popupType:"HINT",position:m}}};var zff=function(){this.previousPage=null},uAr;
zff.prototype.registerPromoCommand=function(J,c){flR(this,void 0,void 0,_.L(J.roadblock,o65),void 0,void 0,c)};
var flR=function(J,c,m,b,x,P,p){J.previousPage!==p&&J.pendingTooltipPromo&&J.pendingTooltipPromo.cancel();J.previousPage=p;x?(J.pendingEnforcementPromo&&J.pendingEnforcementPromo.cancel(),J.pendingEnforcementPromo=new knR(x,p),J.pendingEnforcementPromo.enqueue()):P?(J.pendingCommandWrapperPromo=new wt(P,p),J.pendingCommandWrapperPromo.enqueue()):b?(J.pendingRoadblockPromo&&J.pendingRoadblockPromo.cancel(),J.pendingRoadblockPromo=new rMe(b,p),J.pendingRoadblockPromo.enqueue()):c?(J.pendingMealbarPromo&&
J.pendingMealbarPromo.cancel(),J.pendingMealbarPromo=new TVs(c,p),J.pendingMealbarPromo.enqueue()):m&&(J.pendingTooltipPromo&&J.pendingTooltipPromo.cancel(),J.pendingTooltipPromo=new Dh1(m,_.aT()),J.pendingTooltipPromo.enqueue())},Yl5=function(){uAr||(uAr=new zff);
return uAr};var IPp=!1;var VrS=function(J,c){var m=_.Ub("SESSION_INDEX");this.actionToken_=J;this.commonToken_=c;this.sessionIndex_=m},xrr=function(J){var c=_.$x(),m=_.$y("payments.business.integration.bootstrap"),b=_.$y("payments.business.integration"),x=b.Style.create().withMaterialDesignStyle(),P=b.mashupMode.popup("instrument-manager");
m.asMashupMode(P).usingUserIndex(J.sessionIndex_).usingDefaultActivityStatusChangeHandler().usingStyle(x).inStandaloneContext(b.standaloneContextAuthId.forUserId()).instrumentManager(J.actionToken_,J.commonToken_.length>0?J.commonToken_:void 0,function(p){var t=p.instrumentId;t?c.resolve(t):(t=_.$y("payments.business.integration.scenario.InstrumentManager"),c.reject(p.errorCode&&p.errorCode===t.FailureReason.CANCELLED?"instrumentManagerCancelled":"instrumentManagerCallbackError"))}).load(null,function(p){_.ha(p);
c.reject("instrumentManagerLoadError")});
return c.promise};var yz=function(J,c,m){this.payloadName="transactionFlowFailed";this.payload={errorType:J,serializedTransactionFlowLoggingParams:c,isUserDismiss:m===void 0?!1:m}};
_.jD("yt.ypc.shared.YpcTransactionFlowError",yz);var sr=function(){return _.Cs.apply(this,arguments)||this};
_.D(sr,_.Cs);sr.prototype.beforeRegister=function(){this.stampDom||(this.stampDom={});this.stampDom.errorRenderer={id:"error",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer"}}};
sr.prototype.onErrorMessageDismiss=function(){this._setErrorRenderer(null)};
sr.prototype.onErrorMessageDismiss=sr.prototype.onErrorMessageDismiss;_.O([_.U({readOnly:!0,observer:"errorRendererChanged"}),_.R("design:type",Object)],sr.prototype,"errorRenderer",void 0);_.O([_.ps("yt-live-chat-error-message-dismiss"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],sr.prototype,"onErrorMessageDismiss",null);sr=_.O([_.au()],sr);var X$p=[sr.prototype];var Z$f;var qls;var UhR=new _.Un("yt-live-chat"),Slo=new Map;Slo.set("timestamp_toggle","show-timestamps");Slo.set("reactions_toggle","allow-reactions");var Lj=function(){return _.h.apply(this,arguments)||this};
_.D(Lj,_.h);_.V=Lj.prototype;_.V.menuItemIdentifierChanged=function(){var J;(J=this.data)!=null&&J.menuItemIdentifier&&(J=Slo.get(this.data.menuItemIdentifier))&&(_.w("enable_lwe_web_mute")?(J=UhR.get(J),this.isToggled=!(J===void 0?!this.data.isToggled:!J)):this.isToggled=UhR.get(J))};
_.V.onFocus=function(){this.toggleButton.focus()};
_.V.onTap=function(){var J=this.data.command;J&&this.componentBehavior.resolveCommand(J)};
_.V.computeText=function(J,c,m){return this.componentBehavior.getSimpleString(J?m:c)};
_.V.computeIcon=function(J,c,m){return(J=J?m:c)&&J.iconType?_.Pd(J.iconType):""};
Lj.prototype.onTap=Lj.prototype.onTap;Lj.prototype.onFocus=Lj.prototype.onFocus;Lj.prototype.menuItemIdentifierChanged=Lj.prototype.menuItemIdentifierChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Lj.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],Lj.prototype,"componentBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Lj.prototype,"data",void 0);
_.O([_.U({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.R("design:type",String)],Lj.prototype,"icon",void 0);_.O([_.U({value:!1}),_.R("design:type",Boolean)],Lj.prototype,"isToggled",void 0);_.O([_.Iu("tp-yt-paper-toggle-button"),_.R("design:type",Object)],Lj.prototype,"toggleButton",void 0);_.O([_.NE("data.menuItemIdentifier"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Lj.prototype,"menuItemIdentifierChanged",null);
_.O([_.ps("focus"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Lj.prototype,"onFocus",null);_.O([_.ps("tap"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Lj.prototype,"onTap",null);Lj=_.O([_.uM({disableElementRegistration:!0,is:"yt-live-chat-toggle-renderer",noInjection:!0})],Lj);
_.v(Lj,"yt-live-chat-toggle-renderer",function(){if(qls===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;Z$f===void 0&&(Z$f=document.createElement("template"));var b=Z$f;m.call(c,b.content.cloneNode(!0),J.content.firstChild);qls=J}J=qls;return J},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var hfF=new _.oE("NAVIGATION_PROGRESS_TOKEN");_.q3("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",{});var dhu={},n3p=(dhu.CSI=function(J,c){var m={};m[J]=c;J=_.du(_.yEt)(m);Object.keys(J).length>0&&_.uJ(J)},dhu.ECATCHER=function(J){return function(c,m){_.Ub(J)[c]=m}}("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"),dhu);var $hs={},Gn5={},E7F=(Gn5[qI5.name]=!0,Gn5),D9=function(){var J=_.Cs.apply(this,arguments)||this;J._noAccessors=!0;J.tabGesturesIsActive=!1;J.actionRouterIsRoot=!0;J.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"};J.pageTitle="";J.titleSuffix="YouTube";J.unseenNotificationCount=
0;J.hasNavigated=!1;J.hasSetScrollTopForNavigation=!1;J.pagePreparer=null;J.zwiebackInitJobId=0;J.dataUpdatePromise=null;J.loadDepsPromise=_.ML();J.hasPendingNavigation=!1;J.pendingPlayerOnResponseReceivedActions=[];return J};
_.D(D9,_.Cs);D9.prototype.attached=function(){v7h(this);document.addEventListener("yt-navigate-cache",_.ME(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.registerActionMap(this.appBehaviorActionMap);var J=Wq();J.init();J.dispatchElement=this.hostElement};
var v7h=function(J,c){c=c===void 0?0:c;var m=_.BG().resolve(_.y6(_.C9));if(m)O$R(J,m);else{if(c>=5)throw Error("Wk");setTimeout(function(){v7h(J,c+1)},0)}},O$R=function(J,c){c.addEventListener("yt-navigate-start",_.ME(J,J.onYtNavigateStart));
c.addEventListener("yt-navigate-finish",_.ME(J,J.onYtNavigateFinish));c.addEventListener("yt-navigate-error",_.ME(J,J.onYtNavigateError));c.addEventListener("yt-page-data-fetched",_.ME(J,J.onYtPageDataFetched))};
_.V=D9.prototype;_.V.detached=function(){var J=_.BG().resolve(_.C9);J.removeEventListener("yt-navigate-start",_.ME(this,this.onYtNavigateStart));J.removeEventListener("yt-navigate-finish",_.ME(this,this.onYtNavigateFinish));J.removeEventListener("yt-navigate-error",_.ME(this,this.onYtNavigateError));J.removeEventListener("yt-page-data-fetched",_.ME(this,this.onYtPageDataFetched));document.removeEventListener("yt-navigate-cache",_.ME(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.unregisterActionMap(this.appBehaviorActionMap)};
_.V.setPageOffset=function(J,c){J?_.m9(this.hostElement,"yt-set-page-offset",[J,c]):_.Xc(Error("Xk"))};
_.V.setPageOffsetForNavigation=function(J,c){this.hasSetScrollTopForNavigation||(this.hasSetScrollTopForNavigation=!0,this.setPageOffset(J,c))};
_.V.onYtNavigateSetPageOffset=function(J,c){this.setPageOffsetForNavigation(c.page,c.offset)};
_.V.getPageOffset=function(){var J=_.Bj(this.hostElement).querySelector("#page-manager").getCurrentPage(),c=0;J&&(c=_.m9(this.hostElement,"yt-get-page-offset",[J])[0]);return c};
_.V.onYtHistoryPop=function(J,c){if(_.Ss("DISABLE_WARM_LOADS"))J.preventDefault(),window.location.reload();else{var m=_.BG().resolve(_.C9);m.hasPendingNavigation()&&J.preventDefault();m.cancelPendingNavigation();_.bJ(this.hostElement,"yt-pending-navigation-cancelled");c.errorMsg&&(J=c.errorMsg.split(" - "),c=Error(J[0]),J.length==2&&J[1]&&(_.Ue(c,J[1]),_.qz(c)),window.location.reload())}};
_.V.onYtHistoryLoad=function(J,c){var m=this;if(_.Ss("DISABLE_WARM_LOADS"))window.location.reload();else{(J=c.endpoint)&&Object.keys(J).length||(J=null);var b=c.historyEntry,x=_.BG().resolve(_.C9),P=_.BG().resolve(_.oO),p=null;b&&b.rootData&&(p=b.rootData);var t=p&&AM1(p);!p||t||p.filler?J?(x.navigate(J,!0),RfF(this,J)):(c.legacyBorder||t||(c.JSC$26575_savedComponentState==null&&p==null?_.qz(new _.w3("Incomplete history entry",c.forward)):_.Zt(new _.w3("Malformed history entry",c.JSC$26575_savedComponentState,
c.forward,p))),window.location.reload()):(_.Vzo({isHot:!0}),_.uJ({webInfo:{navigationReason:"h"}}),_.xcD(),_.Y2("srt"),_.Y2("pdc"),this.cancelPendingTasks(),o7s(this,c.forward,p),p.player&&(p.player.loaded=!1),RfF(this,J),_.yR_(x,J||{},p,2,{},!1,c).then(function(){m.setPageOffset(P.getCurrentPage(),b.scrollTop||0)}))}};
_.V.initHistoryManager=function(J){if(!this.hasNavigated){this.hasNavigated=!0;var c=_.Bj(this.hostElement).querySelector("#page-manager").getCurrentData();J=isNaN(J)?this.getPageOffset():J;var m=_.BG().resolve(_.C9).currentEndpoint;this.replaceState(m,c,J)}};
_.V.cancelPendingTasks=function(){this.pagePreparer&&this.pagePreparer.cancel()};
_.V.onYtNavigateStart=function(J,c){this.cancelPendingTasks();c.noProgressBar||(J=_.BG().resolve(_.y6(hfF)))&&J.start();J=this.hasPendingNavigation?null:this.data;var m=_.BG().resolve(_.oO),b,x,P;_.w("kevlar_use_vimio_behavior")&&!((b=c.endpoint)==null?0:(x=b.commandMetadata)==null?0:(P=x.webCommandMetadata)==null?0:P.ignoreNavigation)&&(b=m.getCurrentPage())&&b.disconnectVisibilityRoot();m.prepareForNavigation(c.pageType,c.endpoint);_.w("kevlar_remove_page_dom_on_switch")||(this.pagePreparer=new _.jF(1,
"pcl"),_.FL(this.pagePreparer,m.preparePage.bind(m,c.pageType,c.endpoint)));b=this.getPageOffset();this.initHistoryManager(b);c.reload||this.hasPendingNavigation?this.replaceState(c.endpoint,J,b):(J==null?void 0:J.page)==="watch"&&c.pageType==="watch"&&_.w("kevlar_replace_watch_to_watch_history_state")?this.replaceState(c.endpoint,J,b):(J==null?void 0:J.page)!=="shorts"||c.pageType!=="shorts"||c.endpoint.reelWatchEndpoint.sequenceParams||_.w("short_to_short_back_nav_killswitch")?c.type!="navigate-back"&&
c.type!="navigate-forward"&&(c.pageType==="shorts"&&_.cA(this.hostElement,"yt-shorts-reset"),this.saveAndPush(c.url,c.endpoint,J,b)):this.replaceState(c.endpoint,J,0);this.hasPendingNavigation=!0};
var QQf=function(J){J.hasPendingNavigation=!1;(J=_.BG().resolve(_.y6(hfF)))&&J.finish()};
D9.prototype.onYtNavigateError=function(J,c){QQf(this);J=this.get("endpoint.commandMetadata.webCommandMetadata.url",c);var m=_.Aa(window.location.href);J&&!m.pbjreload&&(c=c.navigationErrorReason||"10",_.w("kevlar_parent_on_pbjreload")&&(m={csn:_.Y3()},this.get("data.endpoint.clickTrackingParams")&&(m.itct=this.data.endpoint.clickTrackingParams),_.jK(J,m)),_.dB(_.RP(J,{pbjreload:c})))};
D9.prototype.onYtNavigateCache=function(J,c){var m=this,b=c.url,x=c.endpoint,P=c.data;J=!!c.miniplayer;c=!!c.skipHistory;if(b&&x&&P){var p=this.getPageOffset(),t=this.data||null;c||this.saveAndPush(b,x,t,p);b=_.yR_(_.BG().resolve(_.C9),x,P,J?4:3,{},J);J&&b.then(function(){m.dataUpdatePromise&&m.dataUpdatePromise.then(function(){var I=_.BG().resolve(_.oO);m.setPageOffset(I.getCurrentPage(),0)})})}};
D9.prototype.onYtNavigateFinish=function(J,c){var m=this;this.dataUpdatePromise&&this.dataUpdatePromise.then(function(){eff(m,c.fromHistory)})};
var eff=function(J,c){QQf(J);if(J.pendingPlayerOnResponseReceivedActions){for(var m=_.M(J.pendingPlayerOnResponseReceivedActions),b=m.next();!b.done;b=m.next())_.Nl(b.value,J.hostElement);J.pendingPlayerOnResponseReceivedActions=[]}m=_.BG().resolve(_.oO);!c&&J.hasNavigated&&((c=m.getCurrentPage())?c.is==="ytd-shorts"||J.tabGesturesIsActive||J.setPageOffsetForNavigation(c,0):_.qz(Error("Yk")));_.S5(function(){_.S5(function(){_.Y2("pda")})})};
D9.prototype.onYtNavigate=function(J){if(!J.detail.endpoint){var c=new _.w3("Error: Missing yt-navigate endpoint from target:",J.target,J.target.nodeName);_.Xc(c)}if(c=_.w("cold_missing_history"))c=Wq(),c.init(!1),c=!(c.browserHistory.boundHistoryReplaceState&&c.browserHistory.boundHistoryPushState);if(c){_.q3("DISABLE_WARM_LOADS",!0);c=new _.w3("Failed to initialize history manager",this.getDebugString());var m=navigator.userAgent&&navigator.userAgent.includes("Version/11.1.2 Safari");this.getThirdPartyManipulationSuspected()||
m?_.qz(c):_.Xc(c)}c=J.detail.endpoint;var b,x;_.w("debug_forward_web_query_parameters")&&((b=c.commandMetadata)==null?0:(x=b.webCommandMetadata)==null?0:x.url)&&(c=JSON.parse(JSON.stringify(c)),c.commandMetadata.webCommandMetadata.url=_.Q33(c.commandMetadata.webCommandMetadata.url,window.location.search));J={type:0,command:c,form:{params:J.detail.params,tempData:J.detail.tempData||{},requestType:J.detail.type,createScreenConfig:J.detail.createScreenConfig,reload:J.detail.reload?J.detail.reload:!1,
requestForm:J.detail}};_.w("kevlar_yt_navigate_command_handler")?(b=_.BG().resolve(_.gu),J.form.skipDefaultElement=!0,b.resolveCommand(c,{form:J.form})):this.handleNavigate(J)};
D9.prototype.handleNavigate=function(J){this.hasSetScrollTopForNavigation=!1;var c=_.BG().resolve(_.C9),m=J.form||{};c.navigate(J.command,m.reload,m.params,m.tempData,m.requestType,m.createScreenConfig,m.ignoreConfirmation,m.requestForm)&&RfF(this,J.command,m.tempData)};
D9.prototype.onYtPageDataFetched=function(J,c){try{_.BS_().reset();this.data=c.pageData;this.dataUpdatePromise&&(this.dataUpdatePromise.cancel("canceled dataUpdatePromise_"),this.dataUpdatePromise=null);this.pendingPlayerOnResponseReceivedActions=[];this.dataUpdatePromise=_.BG().resolve(_.oO).updatePageData(this.data);var m=this.get("playerResponse.responseContext.serviceTrackingParams",this.data);m&&TK5(m);var b=this.get("response.responseContext.serviceTrackingParams",this.data);b&&TK5(b);var x=
this.get("playerResponse.onResponseReceivedActions",this.data);x&&(x=jQ4(this,x));x&&_.PA(this.hostElement,x,this.hostElement);var P=this.get("playerResponse.responseContext.consistencyTokenJar",this.data),p=this.get("response.responseContext.consistencyTokenJar",this.data);if(P||p){var t=_.iou(),I=(0,_.Lw.getValues)(t.tokenJars);P&&t.replace(I,P);p&&t.replace(I,p)}}catch(a){_.Xc(a)}};
var RfF=function(J,c,m){try{J.onYtEndpointChangeHandler(c,m)}catch(b){_.Xc(b)}};
_.V=D9.prototype;_.V.onYtEndpointChangeHandler=function(){};
_.V.setPageTitle=function(J){J=(this.pageTitle=J)?J+" - "+this.titleSuffix:this.titleSuffix;document.title=(this.unseenNotificationCount?"("+this.unseenNotificationCount+") ":"")+J};
_.V.onYtUpdateTitle=function(J,c){this.setPageTitle(c)};
_.V.setUnseenNotificationCount=function(J){this.unseenNotificationCount=J;this.setPageTitle(this.pageTitle)};
_.V.handleUpdateNotificationsUnseenCountAction=function(J){_.L(J,aQS)&&((J=_.L(J,aQS).unseenCount)?this.setUnseenNotificationCount(J):this.setUnseenNotificationCount(0))};
_.V.handleClearCookieAction=function(J){var c;(J=(c=_.L(J,tvf))==null?void 0:c.cookieName)&&_.IPt(J)};
_.V.onYtUpdateUnseenNotificationCount=function(J,c){this.setUnseenNotificationCount(c)};
_.V.loadData=function(J){var c=this;this.loadDepsPromise.then(function(){var m=_.BG().resolve(_.y6(_.C9));m||_.Xc(Error("Zk"));if(J&&J.response){if(!J.endpoint){var b=_.Gv(window.document.location.href)||"/",x="";if(b==="/"||b.startsWith("/?"))x="WEB_PAGE_TYPE_BROWSE";J.endpoint={commandMetadata:{webCommandMetadata:{url:b,webPageType:x,rootVe:3854}}}}_.yR_(m,J.endpoint,J,5,{})}else J.endpoint?m.navigate(J.endpoint):m.navigate(_.p$);_.ft.cancelJob(c.zwiebackInitJobId);c.zwiebackInitJobId=_.ft.addLowPriorityJob(KyR)})};
var Wq=function(){return _.BG().resolve(_.M6)};
D9.prototype.getDebugString=function(){return Wq().getDebugString()};
D9.prototype.getThirdPartyManipulationSuspected=function(){return Wq().getThirdPartyManipulationSuspected()};
D9.prototype.replaceState=function(J,c,m){Wq().saveAndReplace(J,c,m)};
D9.prototype.saveAndPush=function(J,c,m,b){Wq().saveAndPush(J,c,m,b)};
var AM1=function(J){return _.L(J.endpoint,_.Rz)||_.L(J.endpoint,_.kb)?!0:!J||isNaN(J.expirationTime)?!1:(0,_.y4)()>J.expirationTime},o7s=function(J,c,m){var b=J.get("response.trackingParams",m),x=_.fl(),P=_.Y3();
if(b&&x&&P&&(b=J.get("response.responseContext.webResponseContextExtensionData.ytConfigData.rootVisualElementType",m),!b&&m.rootVe&&(b=m.rootVe),x=c?"forwardButton":"backButton",c=J.get("playerResponse.topbar.desktopTopbarRenderer."+x+".buttonRenderer.command.clickTrackingParams",J.data),J=J.get("response.topbar.desktopTopbarRenderer."+x+".buttonRenderer.command.clickTrackingParams",J.data),c=(J=c||J)?_.n7(J):void 0,J=_.C7(),x=[_.ML(m)],_.ge(J,b,c,{dataPromises:x,csnToClone:m.csn}),m.graftedVes))for(m=
_.M(m.graftedVes),b=m.next();!b.done;b=m.next())_.JM(J,b.value)};
D9.prototype.onStoreGraftedVeAction=function(J){this.data?(this.data.graftedVes||(this.data.graftedVes=[]),this.data.graftedVes.push(J)):_.qz(Error("$k"))};
var jQ4=function(J,c){return c.filter(function(m){for(var b in m)if(E7F[b])return J.pendingPlayerOnResponseReceivedActions.push(m),!0;return!1})};
_.eE.Object.defineProperties(D9.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){}}});
D9.prototype.onStoreGraftedVeAction=D9.prototype.onStoreGraftedVeAction;D9.prototype.loadData=D9.prototype.loadData;D9.prototype.onYtUpdateUnseenNotificationCount=D9.prototype.onYtUpdateUnseenNotificationCount;D9.prototype.handleClearCookieAction=D9.prototype.handleClearCookieAction;D9.prototype.handleUpdateNotificationsUnseenCountAction=D9.prototype.handleUpdateNotificationsUnseenCountAction;D9.prototype.setUnseenNotificationCount=D9.prototype.setUnseenNotificationCount;
D9.prototype.onYtUpdateTitle=D9.prototype.onYtUpdateTitle;D9.prototype.setPageTitle=D9.prototype.setPageTitle;D9.prototype.onYtEndpointChangeHandler=D9.prototype.onYtEndpointChangeHandler;D9.prototype.onYtPageDataFetched=D9.prototype.onYtPageDataFetched;D9.prototype.handleNavigate=D9.prototype.handleNavigate;D9.prototype.onYtNavigate=D9.prototype.onYtNavigate;D9.prototype.onYtNavigateFinish=D9.prototype.onYtNavigateFinish;D9.prototype.onYtNavigateCache=D9.prototype.onYtNavigateCache;
D9.prototype.onYtNavigateError=D9.prototype.onYtNavigateError;D9.prototype.onYtNavigateStart=D9.prototype.onYtNavigateStart;D9.prototype.cancelPendingTasks=D9.prototype.cancelPendingTasks;D9.prototype.initHistoryManager=D9.prototype.initHistoryManager;D9.prototype.onYtHistoryLoad=D9.prototype.onYtHistoryLoad;D9.prototype.onYtHistoryPop=D9.prototype.onYtHistoryPop;D9.prototype.onYtNavigateSetPageOffset=D9.prototype.onYtNavigateSetPageOffset;D9.prototype.setPageOffset=D9.prototype.setPageOffset;
_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],D9.prototype,"ytActionHandlerBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],D9.prototype,"data",void 0);_.O([_.ps("yt-navigate-set-page-offset"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,Object]),_.R("design:returntype")],D9.prototype,"onYtNavigateSetPageOffset",null);
_.O([_.ps("yt-history-pop"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,Object]),_.R("design:returntype")],D9.prototype,"onYtHistoryPop",null);_.O([_.ps("yt-history-load"),_.R("design:type",Function),_.R("design:paramtypes",[Event,_.iaL]),_.R("design:returntype")],D9.prototype,"onYtHistoryLoad",null);_.O([_.ps("yt-navigate"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],D9.prototype,"onYtNavigate",null);
_.O([_.ps("yt-update-title"),_.R("design:type",Function),_.R("design:paramtypes",[Event,String]),_.R("design:returntype")],D9.prototype,"onYtUpdateTitle",null);_.O([_.ps("yt-update-unseen-notification-count"),_.R("design:type",Function),_.R("design:paramtypes",[Event,Number]),_.R("design:returntype")],D9.prototype,"onYtUpdateUnseenNotificationCount",null);D9=_.O([_.au()],D9);$hs.YtdAppBehavior=[_.yw.YtActionHandlerBehavior,D9.prototype];var zV=function(){var J=_.Cs.apply(this,arguments)||this;J._noAccessors=!0;return J};
_.D(zV,_.Cs);zV.prototype.ready=function(){var J=this;_.Bj(this.hostElement).querySelector("#checkbox").addEventListener("change",function(){J.onChange_()})};
zV.prototype.dataChanged_=function(){_.Bj(this.hostElement).querySelector("#checkbox").checked=!1};
zV.prototype.onChange_=function(){var J=_.Bj(this.hostElement).querySelector("#checkbox").checked?"selected":"deselected";_.cA(this.hostElement,"yt-dismissal-reason-"+J,this.data.feedbackToken)};
zV.prototype.dataChanged_=zV.prototype.dataChanged_;_.O([_.U(),_.R("design:type",Object)],zV.prototype,"data",void 0);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],zV.prototype,"dataChanged_",null);zV=_.O([_.au()],zV);var Fnu=[zV.prototype];var ut=function(){var J=_.Cs.apply(this,arguments)||this;J.timeoutJobId=0;J.actionMap={"yt-open-popup-action":"startTimeout","yt-close-popup-action":"cancelTimeout"};return J};
_.D(ut,_.Cs);ut.prototype.ytdHatsSurveyBehaviorDataChanged=function(){this.cancelTimeout()};
ut.prototype.startTimeout=function(){var J=this,c=this.data&&this.data.displayDurationSeconds;c&&!this.timeoutJobId&&(this.timeoutJobId=_.rv(_.ft,function(){_.m9(J.hostElement,"yt-close-popup-action",[J.is]);J.timeoutJobId=0},c*1E3))};
ut.prototype.cancelTimeout=function(){_.ft.cancelJob(this.timeoutJobId);this.timeoutJobId=0};
ut.prototype.ytdHatsSurveyBehaviorDataChanged=ut.prototype.ytdHatsSurveyBehaviorDataChanged;_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],ut.prototype,"ytActionHandlerBehavior",void 0);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],ut.prototype,"ytdHatsSurveyBehaviorDataChanged",null);ut=_.O([_.au()],ut);var llR=[_.yw.YtActionHandlerBehavior,ut.prototype];var yMS=function(J,c){return J.SHARED_RENDERERS_.hasOwnProperty(c)?"yt":J.prefix},fj={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}};fj.MEALBAR={component:"tp-yt-paper-dialog",properties:{keepBelowPlayer:!_.w("kevlar_mealbar_above_player"),modern:_.w("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"}};
fj.BOTTOM_SHEET={component:"tp-yt-paper-dialog",properties:{},styles:{position:"fixed",bottom:"0",width:"100%",margin:"0"}};fj.MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0},forceFocus:!0,preventAutonav:!0};fj.LOCKED_MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0,scrollAction:"lock"},forceFocus:!0,preventAutonav:!0};
fj.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)"}};
fj.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};
fj.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};
fj.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};
fj.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};fj.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"}};
fj.TOP_ALIGNED_DIALOG={component:"tp-yt-paper-dialog",properties:{withBackdrop:!0,verticalAlign:"top",horizontalAlign:"center"},styles:{margin:"8px 0 0 0"},targetContainer:!0};fj.TOAST={component:null,properties:{}};var BVh=new function(J,c,m){this.supportedPopups=J;this.navigationEndpointPopupMap=c;this.popupTypeMap=m;this.supportedPopups=J;this.navigationEndpointPopupMap=c;this.popupTypeMap=m}({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:_.w("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"}),g71=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$17651_popupConfig=fj;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 Jg5=function(){this.pageNameToElement=new Map;this.TEST_ONLY=void 0;this.elementPoolPopulator=_.LY.getInstance()},YE=function(J,c){var m=J.pageNameToElement.get(c);
if(!m){switch(c){case "watch":var b=_.w("web_watch_force_learning_journey_for_testing")?_.eF("ytd-watch-learning-journey"):_.w("kevlar_watch_fixie")?_.eF("ytd-watch-fixie"):_.w("kevlar_watch_grid")?_.eF("ytd-watch-grid"):_.eF("ytd-watch-flexy");break;case "learning_journey_watch":b=_.eF("ytd-watch-learning-journey");break;case "shorts":b=_.eF("ytd-shorts");break;case "search":b=_.eF("ytd-search");break;case "channel":b=_.eF("ytd-browse");b.pageSubtype="channels";break;case "trending":b=_.eF("ytd-browse");
b.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":b=
_.eF("ytd-browse");b.pageSubtype=c;break;case "browse":b=_.eF("ytd-browse");break;default:_.qz(new _.w3("Error getting page element for type",c))}m=b;J.pageNameToElement.set(c,m)}return m};
Jg5.prototype.preparePage=function(J,c,m){m&&(J=_.tc(m)||J);if(J!=="watch"){var b=this.elementPoolPopulator,x=J;x!=b.targetPage_&&b.pendingPages_.indexOf(x)>-1&&(b.targetPage_&&(b.pendingPages_.unshift(b.targetPage_),b.abort()),bsr(b,x),_.kSQ(b,x))}if((b=YE(this,J))||!_.L(m,_.Ee)){b.isAttached||b===c||(b.hidden=!0);if(!(b.data||J==="watch"&&_.w("swatcheroo_page_pool_dont_provide_filler_data"))){var P;if(J=(P=_.Ub("FILLER_DATA",{})[J])==null?void 0:P.response)b.data=J}return b}};var cgs=function(J){this.JSC$28466_clientRoot=J;this.playlistHandlerActionMap={"yt-add-to-playlist-command":Lyf,"yt-end-playlist-command":DaR,"yt-recover-playlist-command":zmR,"yt-refresh-playlist-command":YHR,"yt-playlist-remove-videos-action":uRR};_.Oe(_.vO.getInstance(),this.playlistHandlerActionMap,this.JSC$28466_clientRoot);CM1()},mHe;var XO=function(J,c,m){this.apiKey=J;this.endpoint=c;this.confidenceThreshold=m===void 0?.5:m;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=c==="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||c==="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||
c==="https://embeddedassistant-frontend-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||c==="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";new lfp};
_.V=XO.prototype;
_.V.start=function(J){if(this.state===0)if(this.isOnline()){J.supportsHttpHeadersOverwriteParam!==void 0&&(this.supportsHttpHeadersOverwriteParam=J.supportsHttpHeadersOverwriteParam);J.startCustomCsiTimeline!==void 0&&(this.startCustomCsiTimeline=J.startCustomCsiTimeline);this.startCustomCsiTimeline&&_.fX("voice_assistant");_.Xv("voz_ms",void 0,"voice_assistant");this.state=1;this.receivedEndOfUtterance=!1;this.languageCode=J.languageCode||"en-US";this.supportsCrossDomainXhr=J.supportsCrossDomainXhr||this.supportsCrossDomainXhr;
this.youtubeAssistantRequest=J.youtubeAssistantRequest||null;this.listeningHandler=J.listeningHandler||this.listeningHandler;this.audioDetectedHandler=J.audioDetectedHandler||this.audioDetectedHandler;this.stopHandler=J.stopHandler||this.stopHandler;this.completeHandler=J.completeHandler||this.completeHandler;this.transcriptionCompleteHandler=J.transcriptionCompleteHandler||this.transcriptionCompleteHandler;this.vaaConsentUpdateHandler=J.vaaConsentUpdateHandler||this.vaaConsentUpdateHandler;this.errorHandler=
J.errorHandler||this.errorHandler;this.transcriptionUpdateHandler=J.transcriptionUpdateHandler||this.transcriptionUpdateHandler;this.accessToken=J.accessToken;this.additionalHeaders=J.additionalHeaders||{};var c;this.prefetchResponseTimeoutMs=(c=J.prefetchResponseTimeoutMs)!=null?c:this.prefetchResponseTimeoutMs;b9p(this);this.startAudio();xHo(this)}else this.errorHandler("OFFLINE")};
_.V.stop=function(J){var c=J===void 0?{}:J;J=c.logCancel===void 0?!0:c.logCancel;var m=c.logMicClosed===void 0?!0:c.logMicClosed;var b=c.handleError===void 0?!0:c.handleError;c=c.handleStop===void 0?!0:c.handleStop;this.state!==0&&(J&&Z9("voz_cx"),qN(this,{logMicClosed:m,handleStop:c}),b&&this.errorHandler("ABORTED"))};
_.V.getState=function(){return this.state};
_.V.isSupported=function(){return!0};
_.V.stopAudio=function(J){(J===void 0||J)&&Z9("voz_mf")};
_.V.startAudio=function(){Z9("voz_vp");return _.ML(null)};
var VFS=function(J,c){J.channelOpen&&(J.state!==2&&(J.state=2,Z9("voz_ss"),J.listeningHandler()),c=new Uint8Array(c),c='{ "audioIn": "'+_.yR(c)+'" }',J.channel.send(c))},qN=function(J,c){var m=c===void 0?{}:c;
c=m.logMicClosed===void 0?!0:m.logMicClosed;m=m.handleStop===void 0?!0:m.handleStop;J.vozEndOfDataTimeout>-1&&(clearTimeout(J.vozEndOfDataTimeout),J.vozEndOfDataTimeout=-1);PUf(J);J.stopAudio(c);J.channel&&(J.channelOpen=!1,J.manuallyClosedChannel=!0,J.channel.close(),J.channel=void 0);J.transcribedSpeechResults=[];J.state=0;m&&J.stopHandler()},b9p=function(J){var c={httpHeadersOverwriteParam:J.supportsHttpHeadersOverwriteParam?"$httpHeaders":void 0,
httpSessionIdParam:"gsessionid",sendRawJson:!0,initMessageHeaders:Object.assign({},J.additionalHeaders,J.accessToken&&J.isUsingVoz?{Authorization:"Bearer "+J.accessToken}:{"x-goog-api-key":J.apiKey}),supportsCrossDomainXhr:J.supportsCrossDomainXhr};J.channel=new Xq(J.endpoint,c);J.channel.open();_.wp(J.channel,"w",function(){var m=J.channel,b=m.send,x=J.isUsingVoz?"PLACEHOLDER":"example";x={config:{dialogStateIn:{languageCode:J.languageCode},deviceConfig:{deviceId:x,deviceModelId:x},audioInConfig:{encoding:"LINEAR16",
sampleRateHertz:16E3},audioOutConfig:{encoding:"MP3",sampleRateHertz:22050,volumePercentage:0}}};if(!J.isUsingVoz)x.config.requestType=4;else if(J.isUsingVoz&&J.youtubeAssistantRequest){var P=JSON.stringify(J.youtubeAssistantRequest);x.config.internalIn={youtubeAssistantS3InputJson:P}}b.call(m,x);J.channelOpen=!0;J.manuallyClosedChannel=!1});
_.wp(J.channel,"x",function(){J.manuallyClosedChannel||(J.channelOpen=!1,J.channel=void 0,qN(J))});
_.wp(J.channel,"z",function(m){if(m.data){PUf(J);for(var b=0;b<m.data.length;b++){var x=J,P=m.data[b],p=P.speechResults;if(p)a:{var t=[];P=[];var I=!1;p=_.M(p);for(var a=p.next();!a.done;a=p.next()){a=a.value;if(a.noSpeech){qN(x);x.errorHandler("NO_SPEECH");break a}a.transcript!==void 0&&a.stability!==void 0&&(a.stability<x.confidenceThreshold&&(I=!0),I?P.push(a.transcript):t.push(a.transcript))}if(t.length!==0||P.length!==0)t=t.join(" "),P=P.join(" "),x.receivedEndOfUtterance&&!x.isUsingVoz?x.isUsingVoz||
x.completeHandler([t,P]):(I=x,p=t,a=P,Z9("voz_sf"),I.transcriptionUpdateHandler(p,a),I.transcribedSpeechResults=[p,a]),x.receivedEndOfUtterance&&(Z9("voz_eou"),x.transcriptionCompleteHandler([t,P]),x.isUsingVoz&&(x.prefetchResponseTimeoutMs===0?qN(x,{logMicClosed:!1,handleStop:!0}):x.prefetchResponseTimeoutMs>0&&MF1(x)))}else x.isUsingVoz&&(P==null?0:P.internalOut)?(P=JSON.parse(P.internalOut.youtubeAssistantS3OutputJson),P.userHasOptedInToVaa||P.vaaConsent?x.vaaConsentUpdateHandler(!!P.userHasOptedInToVaa,
!!P.vaaConsent):(ptp(x),P&&(t=x.transcribedSpeechResults,Z9("voz_rqf"),x.completeHandler(t,P)))):P.eventType==="END_OF_UTTERANCE"?x.receivedEndOfUtterance=!0:(Z9("voz_err"),x.errorHandler("UNEXPECTED_ASSISTANT_RESPONSE"),_.qz(Error("al")))}}});
_.wp(J.channel,"y",function(m){qN(J);switch(m.status){case 1:m="WEBCHANNEL_NETWORK_ERROR";break;case 2:m="WEBCHANNEL_SERVER_ERROR";break;default:m="WEBCHANNEL_UNKNOWN_ERROR"}J.errorHandler(m);J.logError(Error(m))})};
XO.prototype.logError=function(J){_.Xc(J)};
XO.prototype.isOnline=function(){return!0};
var MF1=function(J){ptp(J);J.prefetchResponseSetTimeoutId=setTimeout(function(){qN(J,{logMicClosed:!1,handleStop:!0})},J.prefetchResponseTimeoutMs)},ptp=function(J){J.prefetchResponseSetTimeoutId>-1&&(clearTimeout(J.prefetchResponseSetTimeoutId),J.prefetchResponseSetTimeoutId=-1)},xHo=function(J){PUf(J);
J.noResponseReceivedTimeout=window.setTimeout(function(){qN(J);J.errorHandler("NO_SPEECH")},11E3)},PUf=function(J){J.noResponseReceivedTimeout>-1&&(window.clearTimeout(J.noResponseReceivedTimeout),J.noResponseReceivedTimeout=-1)},Z9=function(J){_.Y2(J,void 0,"voice_assistant")};var Ur=function(){XO.apply(this,arguments);this.audioContext=this.processor=null;this.audioDetected=!1};
_.D(Ur,XO);Ur.prototype.isSupported=function(){return XSs()};
Ur.prototype.startAudio=function(){var J=this;if(!navigator||!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)return _.sv(null);this.audioContext=new (window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive"});this.processor=this.audioContext.createScriptProcessor(1024,1,1);this.processor.onaudioprocess=function(b){NFh(J,b)};
this.processor.connect(this.audioContext.destination);var c=function(b){J.stream=b;if(!J.audioContext)return _.ML(null);b=J.audioContext.createMediaStreamSource(b);J.processor&&b.connect(J.processor);return _.ML(null)},m={audio:{sampleSize:16,
channelCount:1},video:!1};this.stream?c(this.stream):navigator.mediaDevices.getUserMedia(m).then(c).catch(function(b){qN(J);b.name&&b.name==="NotAllowedError"?J.errorHandler("NO_MICROPHONE_PERMISSION"):(J.errorHandler("AUDIO_ERROR"),J.logError(b));return _.sv(null)});
return XO.prototype.startAudio.call(this)};
Ur.prototype.stopAudio=function(J){J=J===void 0?!0:J;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(c){c.stop()}),this.stream=null));
this.processor=null;this.audioDetected=!1;XO.prototype.stopAudio.call(this,J)};
Ur.prototype.isOnline=function(){return navigator.onLine};
var NFh=function(J,c){if(J.audioContext)if(window.OfflineAudioContext){var m=J.audioContext.sampleRate,b=c.inputBuffer.getChannelData(0);c=new window.OfflineAudioContext(1,b.length,16E3);for(var x=c.createBuffer(1,b.length,m),P=x.getChannelData(0),p=0,t=0;t<b.length;t++)P[t]=b[t],p+=P[t]*P[t];!J.audioDetected&&Math.sqrt(p/b.length)>.01&&(J.audioDetected=!0,J.audioDetectedHandler());b=c.createBufferSource();b.buffer=x;b.connect(c.destination);b.start(0);c.oncomplete=function(I){I=I.renderedBuffer.getChannelData(0);
for(var a=Math.floor(16384E3/m),k=new Int16Array(a),H=0;H<a;++H)k[H]=Math.max(-1,Math.min(1,I[H]))*32767;VFS(J,k.buffer)};
c.startRendering()}else tF1(J,c)},tF1=function(J,c){var m=J.audioContext.sampleRate,b=c.inputBuffer.getChannelData(0),x=Math.floor((m+8E3)/16E3);
m=b.length/x;c=new Float32Array(m);for(var P=0;P<m;++P)c[P]=b[P*x];b=new Int16Array(m);for(x=0;x<m;++x)b[x]=Math.max(-1,Math.min(1,c[x]))*32767;VFS(J,b.buffer)};var IO5={FAILURE:"failure",NO_INPUT:"no_input",OPEN:"open",SUCCESS:"success"};var K7R=function(){this.JSC$17716_audioEnabled=!0;this.audioFeedbackHolder={}};
K7R.prototype.isPlaying=function(J){return J.currentTime>0&&!J.paused&&!J.ended&&J.readyState>2};
var CUp=function(J){for(var c=_.M(Object.values(IO5)),m=c.next();!m.done;m=c.next())m=m.value,J.audioFeedbackHolder[m]=new Audio,J.audioFeedbackHolder[m].src="/s/search/audio/"+m+".mp3",J.audioFeedbackHolder[m].load()},SV=function(J,c){if(J.JSC$17716_audioEnabled!==!1&&c in J.audioFeedbackHolder){for(var m=_.M(Object.values(J.audioFeedbackHolder)),b=m.next();!b.done;b=m.next())b=b.value,J.isPlaying(b)&&b.pause();
J.audioFeedbackHolder[c].currentTime=0;J.audioFeedbackHolder[c].play().catch(function(){})}};var aOe=function(J,c){var m=this;this.store=J;this.service=c;this.stream=null;this.permissionsSupported=!0;this.enableFirstPartyAuth=this.enableInlineSearchResponse=!1;this.audioPlayer=null;this.enableFPAForSignedInUsers=this.disableHttpHeadersOverwrite=!1;this.handleOfflineEvent=function(){m.setState("offline");m.stop()};
this.audioPlayer=new K7R;var b;(b=this.audioPlayer)==null||CUp(b)};
_.V=aOe.prototype;_.V.getService=function(){return this.service};
_.V.isEnabled=function(){return!!this.service};
_.V.isSupported=function(){var J;return(J=this.service)==null?void 0:J.isSupported()};
_.V.start=function(){var J=this,c,m,b,x,P,p,t,I,a,k,H,T,r;return _.N(function(W){switch(W.nextAddress){case 1:J.store.dispatch(H7R("",""));if(!navigator.onLine)return J.setState("offline"),W.return();window.addEventListener("offline",J.handleOfflineEvent);J.stream=null;if(!J.permissionsSupported){W.jumpTo(2);break}_.xL(W,3);return _.K(W,kK1(J),5);case 5:c=W.yieldResult;if(!c)return(m=J.audioPlayer)==null||SV(m,"failure"),W.return();J.service.stream=J.stream;J.setState("listening");_.EO(W,2);break;
case 3:_.NM(W),J.permissionsSupported=!1;case 2:b={context:_.n2m(_.g3())},b.youtubeAssistantParams={searchParams:{inlineSearchResponse:J.enableInlineSearchResponse}},x=function(Y,Z){J.store.dispatch(i7F("transcribing"));J.store.dispatch(H7R(Y,Z))},P=function(){var Y;
(Y=J.audioPlayer)==null||SV(Y,"open");J.setState("listening")},p=function(){J.setState("transcribing")},t=function(Y){J.setErrorState(Y)},I=function(Y,Z){var d;
(d=J.audioPlayer)==null||SV(d,"success");Z&&(_.w("kevlar_voice_search_inline_search")&&(J.responseProcessor=_.BG().resolve(_.OnG),J.responseProcessor&&(d=Z.navigationAction,Y=Z.prefetchedSearchResponse,d&&Y&&(d=(new _.k6a).JSC$11006_getStoreKey(d),_.$g(J.responseProcessor,Y,d)))),J.JSC$17734_actionRouter.triggerOptionalAction("yt-speech-query-complete-action",Z))},a=function(){window.removeEventListener("offline",J.handleOfflineEvent)},k=_.uvu(!1),H=k.Authorization!=null,T=J.enableFirstPartyAuth||
J.enableFPAForSignedInUsers&&H?k:{"X-Goog-Visitor-Id":k["X-Goog-Visitor-Id"]},r={completeHandler:I,
errorHandler:t,listeningHandler:P,audioDetectedHandler:p,stopHandler:a,transcriptionUpdateHandler:x,youtubeAssistantRequest:b,languageCode:H9F(),additionalHeaders:T,supportsCrossDomainXhr:J.enableFirstPartyAuth||J.enableFPAForSignedInUsers&&H,supportsHttpHeadersOverwriteParam:!J.disableHttpHeadersOverwrite},J.service.start(r),_.tD(W)}})};
_.V.stop=function(){this.service.getState()!==0&&this.service.stop()};
_.V.reset=function(){this.store.dispatch(_.J7({type:"RESET_VOICE_SEARCH_STATE"}))};
_.V.setState=function(J){this.store.dispatch(i7F(J))};
_.V.setErrorState=function(J){switch(J){case "OFFLINE":case "WEBCHANNEL_NETWORK_ERROR":case "WEBCHANNEL_SERVER_ERROR":case "WEBCHANNEL_UNKNOWN_ERROR":var c;(c=this.audioPlayer)==null||SV(c,"failure");this.setState("offline");break;case "NO_MICROPHONE_PERMISSION":if(this.permissionsSupported)kK1(this);else{var m;(m=this.audioPlayer)==null||SV(m,"failure");this.setState("permission-denied")}break;case "ABORTED":var b;(b=this.audioPlayer)==null||SV(b,"no_input");break;default:var x;(x=this.audioPlayer)==
null||SV(x,"no_input");this.setState("timeout")}};
var kK1=function(J){var c,m;return _.N(function(b){switch(b.nextAddress){case 1:return _.K(b,navigator.permissions.query({name:"microphone"}),2);case 2:c=b.yieldResult;if(c.state==="granted")return b.return(!0);if(c.state==="denied")return J.setState("permission-denied"),b.return(!1);J.setState("permission");m={audio:{sampleSize:16,channelCount:1},video:!1};_.xL(b,3);return _.K(b,navigator.mediaDevices.getUserMedia(m),5);case 5:return J.stream=b.yieldResult,b.return(!0);case 3:return _.NM(b),J.setState("permission-denied"),
b.return(!1)}})},H9F=function(){var J=_.Ub("INNERTUBE_CONTEXT_HL"),c=_.Ub("INNERTUBE_CONTEXT_GL");
return J.indexOf("-")>-1?J:J+"-"+c};var i91=function(J,c,m){aOe.call(this,c,m);this.JSC$17734_actionRouter=J;this.enableInlineSearchResponse=_.w("kevlar_voice_search_inline_search");this.enableFirstPartyAuth=_.w("kevlar_voice_search_auth_enabled");this.disableHttpHeadersOverwrite=!0;this.enableFPAForSignedInUsers=_.w("kevlar_voice_search_enable_fpa_signedin_users")},ns4;
_.D(i91,aOe);
var TFR=function(){if(!ns4){var J="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";_.w("kevlar_voice_search_auth_enabled")||_.w("kevlar_voice_search_use_yt_endpoint")?J="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel":_.w("kevlar_voice_search_use_fp_endpoint")&&(J="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel");ns4=
new i91(_.vO.getInstance(),_.Rc(),new Ur(_.Ub("VOZ_API_KEY"),J,.5))}return ns4};var wt4=function(J){this.JSC$17738_clientRoot=J;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$17738_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)]]));J=_.M(this.eventListeners);for(var c=J.next();!c.done;c=J.next()){var m=_.M(c.value);c=m.next().value;m=m.next().value;m=_.M(m);for(var b=m.next();!b.done;b=m.next()){var x=
_.M(b.value);b=x.next().value;x=x.next().value;c.addEventListener(b,x)}}_.Oe(_.vO.getInstance(),this.autonavPauseActionMap,this.JSC$17738_clientRoot)},rgh,sT4=function(J){return _.w("kevlar_autonav_popup_filtering")?(J=_.Ac(J))?J.hasAttribute("prevent-autonav"):!0:!0};
_.V=wt4.prototype;_.V.onIronOverlayOpened=function(J){sT4(J)&&(this.autonavPauseReasons.overlayOpen=!0,hl(this))};
_.V.onIronOverlayClosed=function(J){sT4(J)&&(this.autonavPauseReasons.overlayOpen=!1,hl(this))};
_.V.onYtAutonavPauseFocus=function(){this.autonavPauseReasons.inputBoxFocus=!0;hl(this)};
_.V.onYtAutonavPauseBlur=function(){var J=this;_.ft.addJob(function(){J.isInBackground()||(J.autonavPauseReasons.inputBoxFocus=!1,hl(J))},8,0)};
_.V.onYtAutonavPauseGuideOpened=function(){this.autonavPauseReasons.guideOpen=!0;hl(this)};
_.V.onYtAutonavPauseGuideClosed=function(){this.autonavPauseReasons.guideOpen=!1;hl(this)};
_.V.onYtAutonavPauseScroll=function(){var J=_.BG().resolve(_.oO);J.isOnWatch()&&(J=J.getCurrentPage().getPlayerContainer())&&(this.autonavPauseReasons.scroll=J.getBoundingClientRect().top<-200,hl(this))};
_.V.onYtAutonavPauseUserEngagement=function(J){var c=this;if(_.w("user_engagement_enable_autoplay_pause_feature")){var m=Number(J.lowEngagementThresholdMs);isNaN(m)||m<=0||J.lowUserEngagementAction!=="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"?_.oi("YOU_THERE_EVENT_TYPE_F_AUTONAV_INVALID_LACT_THRESHOLD"):(_.BG().resolve(_.Lq),_.cO()<m?_.rv(_.ft,function(){_.oi("YOU_THERE_EVENT_TYPE_F_AUTONAV_BELOW_LACT_THRESHOLD")}):_.NuF()?(this.userEngagementCsn=_.Y3(),_.rv(_.ft,function(){_.oi("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_ENABLED",
c.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!0,hl(this)):_.oi("YOU_THERE_EVENT_TYPE_F_AUTONAV_RATE_LIMITED"))}else _.Z72(Error("bl`"+JSON.stringify(J)))};
_.V.onYtAutonavPausePlayer=function(J){this.autonavPauseReasons.requestedByPlayer=!!J.detail;hl(this)};
_.V.onYtAutonavVisibilityChanged=function(){var J=this,c,m,b;return _.N(function(x){if(x.nextAddress==1)return(c=_.ep())?_.K(x,c.getPlayerPromise(),2):x.return();m=x.yieldResult;b=m.isMuted()||m.getVolume()===0;J.autonavPauseReasons.backgroundAndMute=J.isInBackground()&&b;hl(J);_.tD(x)})};
_.V.onYtAutonavPausePlayerEnded=function(){_.BG().resolve(_.Lq);var J=144E5;_.w("user_engagement_enable_autoplay_pause_feature")||_.w("is_part_of_any_user_engagement_experiment")||(J=45E5);this.autonavPauseReasons.longIdle=_.cO()>J;L7f(this);hl(this)};
_.V.onYtUserActivity=function(){var J=this;this.autonavPauseReasons.userEngagement&&(_.rv(_.ft,function(){_.oi("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_DISABLED_BY_LACT_RESET",J.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!1,hl(this));
this.autonavPauseReasons.youthereLactExperiment&&(_.rv(_.ft,function(){_.oi("YOU_THERE_EVENT_TYPE_AUTOPLAY_RESUMED",J.userEngagementCsn);_.YH()}),this.autonavPauseReasons.youthereLactExperiment=!1,hl(this));
this.autonavPauseReasons.longIdle&&!_.w("disable_kevlar_resume_autonav_after_user_activity")&&(this.autonavPauseReasons.longIdle=!1,hl(this))};
_.V.isInBackground=function(){var J=window.document.visibilityState;return!(!J||J==="visible")};
var hl=function(J){for(var c=!1,m=_.M(Object.values(J.autonavPauseReasons)),b=m.next();!b.done;b=m.next())b=b.value,c=c||b;c?_.AZ.getInstance().pause(J.autonavPauseReasons):(J=_.AZ.getInstance(),J.autonavState_==3?(J.setState(2,!1,!1),J.autonavPauseReason_=void 0):J.autonavState_==1&&(J.disabledAutonavPauseReason_=void 0))},L7f=function(J){var c=!1;
if(_.w("enable_autoplay_pause_by_lact")){_.BG().resolve(_.Lq);c=_.c7("autoplay_pause_by_lact_sec")*1E3;var m=_.c7("autoplay_pause_by_lact_sampling_fraction");(c=_.cO()>=c&&Math.random()<m)&&!_.NuF()&&(_.rv(_.ft,function(){_.oi("YOU_THERE_EVENT_TYPE_AUTOPLAY_RATE_LIMITED")}),c=!1)}c!==J.autonavPauseReasons.youthereLactExperiment&&(J.autonavPauseReasons.youthereLactExperiment=c)&&(J.userEngagementCsn=_.Y3(),_.rv(_.ft,function(){_.oi("YOU_THERE_EVENT_TYPE_AUTOPLAY_PAUSED",J.userEngagementCsn)}));
J.autonavPauseReasons.userEngagement&&_.rv(_.ft,function(){_.oi("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSED",J.userEngagementCsn)})};
wt4.prototype.onYtEndpointChanged=function(){this.autonavPauseReasons.youthereLactExperiment&&(_.oi("YOU_THERE_EVENT_TYPE_AUTOPLAY_NAVIGATED_OUT",this.userEngagementCsn),_.YH(),this.autonavPauseReasons.youthereLactExperiment=!1,hl(this));this.autonavPauseReasons.userEngagement&&(_.oi("YOU_THERE_EVENT_TYPE_F_AUTONAV_NAVIGATED_OUT",this.userEngagementCsn),this.autonavPauseReasons.userEngagement=!1,hl(this))};
wt4.prototype.onYtGetAutonavPauseDebugState=function(){return JSON.stringify(this.autonavPauseReasons)};var dt=function(){var J=_.h.apply(this,arguments)||this;J.miniGuideVisible=!1;J.guideOpened=_.w("disable_initial_guide_state_fix")?!1:J.canFitPersistentGuide(J.initialBodyClientWidth);J.guideUserStateOpened=J.getInitialGuideUserStateOpened();J.isFullscreenShorts=!1;J.miniGuideWidthThreshold=_.c7("kevlar_mini_guide_width_threshold",791);J.persistentGuideBlockedPages="/clip /musicpremium /new /handle /premium /premiumlite /red /watch".split(" ");J.persistentGuideBlockedPagesPatterns="^/clip(/|$) ^/musicpremium(/|$) ^/new(/|$) ^/handle(/|$) ^/premium(/|$) ^/premiumlite(/|$) ^/red(/|$) ^/watch(/|$) ^/playables/(?!saved).".split(" ");
J.persistentGuideBlockedPagePathRegex=new RegExp(J.persistentGuideBlockedPagesPatterns.join("|"));J.animationTransitionDuration=0;J.lateDataResolver=_.$x();J.initialGuideDataFetchFailed=!1;J.initialLoad=!0;J.guideRenderers=new Set;J.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts"};return J};
_.D(dt,_.h);_.V=dt.prototype;_.V.onGuidePersistendAndVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-and-visible-changed",{detail:{value:this.guidePersistentAndVisible,queueProperty:!0}}))};
_.V.onGuideIsVisibleButNotPersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-is-visible-but-not-persistent-changed",{detail:{value:this.guideIsVisibleButNotPersistent,queueProperty:!0}}))};
_.V.onMiniGuideVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("mini-guide-visible-changed",{detail:{value:this.miniGuideVisible,queueProperty:!0}}))};
_.V.onActiveEndpointChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.V.onRenderGuideChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("render-guide-changed",{detail:{value:this.renderGuide,queueProperty:!0}}))};
_.V.onGuidePersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-changed",{detail:{queueProperty:!0,value:this.guidePersistent}}))};
_.V.ready=function(){_.BG().addProvider({provide:_.Ux,useValue:this.hostElement})};
_.V.attached=function(){var J=this;this.cachedClientWidth=this.initialBodyClientWidth;this.resetGuide();document.addEventListener("yt-navigate-finish",_.ME(this,this.onYtNavigateFinish));document.addEventListener("yt-guide-toggle",_.ME(this,this.onYtGuideToggle));document.addEventListener("yt-guide-close",_.ME(this,this.onYtGuideClose));document.addEventListener("yt-guide-show",_.ME(this,this.onYtGuideShow));_.o3(this,function(){J.animationTransitionDuration=200})};
_.V.detached=function(){document.removeEventListener("yt-navigate-finish",_.ME(this,this.onYtNavigateFinish));document.removeEventListener("yt-guide-toggle",_.ME(this,this.onYtGuideToggle));document.removeEventListener("yt-guide-close",_.ME(this,this.onYtGuideClose));document.removeEventListener("yt-guide-show",_.ME(this,this.onYtGuideShow));this.guideElement&&(this.guideElement.removeEventListener("opened-changed",_.ME(this,this.onDrawerOpenedChanged)),this.guideElement.removeEventListener("app-drawer-transitioned",
_.ME(this,this.onAppDrawerTransitioned)),this.guideElement.removeEventListener("app-drawer-transitioned",_.ME(this,this.onAppDrawerTransitionedFromKeyInput)))};
_.V.getData=function(){return this.data};
_.V.load=function(){var J=this,c,m,b,x;return _.N(function(P){switch(P.nextAddress){case 1:if(!window.ytInitialGuideData&&window.ytInitialGuideDataPresent)return window.loadGuideDataHook=J.lateDataResolver.resolve.bind(J),P.return(J.lateDataResolver.promise);if(window.ytInitialGuideData)return c=_.$x(),c.resolve(window.ytInitialGuideData),P.return(c.promise);b=!1;_.xL(P,2);return _.K(P,J.fetchGuideData(),4);case 4:m=P.yieldResult;_.EO(P,3);break;case 2:x=_.NM(P),x.message==="Returned error"&&(b=!0);
case 3:if(m)return P.return(m);J.onYtGuideClose();b||(J.initialGuideDataFetchFailed=!0);return P.return(J.lateDataResolver.promise)}})};
_.V.fetchGuideData=function(){var J=this,c,m,b,x,P,p,t;return _.N(function(I){if(I.nextAddress==1)return c=_.BG(),J.guidePromise||(m=c.resolve(_.zh),J.guidePromise=_.ds(m,fnR)),_.K(I,J.guidePromise,2);if(I.nextAddress!=3)return b=I.yieldResult,x=c.resolve(_.GQ),_.K(I,x(),3);(P=I.yieldResult)&&((p=b)==null?void 0:(t=p.responseContext)==null?void 0:t.maxAgeSeconds)!==0&&P.put("service:guide:fallback",new _.bG({innertubeResponse:b}));return I.return(b)})};
_.V.initializeGuideDataIfEmpty=function(){var J=this,c,m;return _.N(function(b){if(b.nextAddress==1){if(!J.initialGuideDataFetchFailed||J.data)return b.return();_.xL(b,2);return _.K(b,J.fetchGuideData(),4)}if(b.nextAddress!=2)return(c=b.yieldResult)&&J.lateDataResolver.resolve(c),_.EO(b,0);m=_.NM(b);_.qz(m);_.tD(b)})};
_.V.initializeGuideData=function(){var J=this,c;return _.N(function(m){switch(m.nextAddress){case 1:return _.N_(QPS(),{mainAppWeb:_.$b()}),_.xL(m,2),_.K(m,J.load(),4);case 4:J.data=m.yieldResult;_.EO(m,3);break;case 2:_.NM(m),_.tm(QPS(),"FAILURE");case 3:c=J.data&&J.data.items&&J.data.items.length>0?"SUCCESS":"FAILURE",_.tm(QPS(),c),_.tD(m)}})};
_.V.setGuideData=function(J){var c=this,m,b;return _.N(function(x){if(x.nextAddress==1)return c.disabled?x.return():c.data?(J.data=c.data,c.guideRenderers.add(J),x.return()):_.K(x,c.initializeGuideData(),2);c.graftGuideToPage();m=_.Ss("IS_HOMEPAGE_COLD")?"eop":void 0;_.w("disable_element_pool_populator")?c.setGuideDataAfterInit(J):(b=new _.jF(1,m),_.FL(b,c.setGuideDataAfterInit.bind(c,J)));_.tD(x)})};
_.V.setGuideDataAfterInit=function(J){J.data=this.data;J.markDirty();this.guideRenderers.add(J);_.S5(function(){_.Y2("gle")});
_.o3(this,function(){_.Y2("gpe")})};
_.V.graftGuideToPage=function(){if(this.data){var J=this.data&&this.data.trackingParams;J&&(J=_.n7(J),_.c$(_.C7(),J))}};
_.V.onGuideElementChanged=function(){this.guideElement.addEventListener("opened-changed",_.ME(this,this.onDrawerOpenedChanged));this.guideElement.swipeOpen=!0};
_.V.onDrawerOpenedChanged=function(J,c){!c.value&&this.guideOpened&&(this.guideOpened=!1)};
_.V.onYtGuideToggle=function(J){var c=this.guideOpened;this.guideOpened=!c;if(this.guidePersistent){this.guideUserStateOpened=this.guideOpened;var m=_.HA();_.iJ(0,109,!this.guideUserStateOpened);m.save()}this.updateGuideDrawerElementState();if(this.guideElement){var b;this.guideOpened&&((b=J.detail)==null?0:b.isKeyInput)&&this.guideElement.addEventListener("app-drawer-transitioned",_.ME(this,this.onAppDrawerTransitionedFromKeyInput));this.guideElement.addEventListener("app-drawer-transitioned",_.ME(this,
this.onAppDrawerTransitioned))}c||this.initializeGuideDataIfEmpty()};
_.V.onAppDrawerTransitionedFromKeyInput=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.ME(this,this.onAppDrawerTransitionedFromKeyInput));this.guideOpened&&this.guideElement&&_.jf(this.guideElement)};
_.V.onAppDrawerTransitioned=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.ME(this,this.onAppDrawerTransitioned));this.ytdReduxBehavior.dispatch(aGe(this.guideOpened))};
_.V.guidePersistentAndVisibleChanged=function(){_.bJ(this.hostElement,"ytd-update-guide-state-action",[this.guidePersistentAndVisible])};
_.V.guideIsVisibleButNotPersistentChanged=function(){this.ytdReduxBehavior.dispatch(_.J7({type:"SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT",payload:this.guideIsVisibleButNotPersistent}))};
_.V.miniGuideVisibleChanged=function(){_.bJ(this.hostElement,"ytd-update-mini-guide-state-action",[this.miniGuideVisible])};
_.V.guideOpenedChanged=function(){this.initialLoad&&(this.ytdReduxBehavior.dispatch(aGe(this.guideOpened)),this.initialLoad=!1);_.bJ(this.hostElement,"ytd-update-guide-opened-action",[this.guideOpened])};
_.V.activeEndpointChanged=function(){_.bJ(this.hostElement,"ytd-update-active-endpoint-action",[this.activeEndpoint]);this.initializeGuideDataIfEmpty()};
_.V.resetGuide=function(){this.forceMiniGuideClose=!1;if(this.persistentGuideEnabled(this.pageType,this.pageUrl))this.onYtGuideShow();else this.onYtGuideClose()};
_.V.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()};
_.V.cachedClientWidthChanged=function(){if(this.persistentGuideEnabled(this.pageType,this.pageUrl)){var J=this.canFitPersistentGuide(this.cachedClientWidth);J?this.guideOpened=this.guideUserStateOpened:this.guidePersistent&&(this.guideOpened=!1);this.guidePersistent=J}this.updateGuideDrawerElementState()};
_.V.getGuidePersistentAndVisible=function(){return!!this.guidePersistentAndVisible};
_.V.getGuideOpened=function(){return this.guideOpened};
_.V.getGuideExpandsAutomatically=function(){return this.guideUserStateOpened};
_.V.getActiveEndpoint=function(){return this.activeEndpoint};
_.V.getMiniGuideVisible=function(){return this.miniGuideVisible};
_.V.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&&_.cA(this.hostElement,"yt-guide-hover"),!this.guideOpened||this.guidePersistent)&&(document.body.style.overflow="")};
_.V.computeGuidePersistentAndVisible=function(){var J=this;_.hO(this,"computeGuidePersistentAndVisible",function(){J.guidePersistentAndVisible=J.guideOpened&&J.guidePersistent;J.guideIsVisibleButNotPersistent=!(!J.guideOpened||J.guidePersistent)})};
_.V.observeForMiniGuideVisible=function(){this.guidePersistentAndVisible!==void 0&&(this.miniGuideVisible=!this.forceMiniGuideClose&&!this.guidePersistentAndVisible&&this.canFitMiniGuide(this.cachedClientWidth)&&this.persistentGuideEnabled(this.pageType,this.pageUrl))};
_.V.closeGuide=function(){this.guideOpened=!1;this.updateGuideDrawerElementState()};
_.V.onYtGuideClose=function(){this.closeGuide();this.forceMiniGuideClose=!0;this.guidePersistent=this.miniGuideVisible=!1};
_.V.startLoadingWatch=function(){this.closeGuide()};
_.V.startLoadingShorts=function(){_.w("web_hide_guide_on_shorts")&&this.closeGuide()};
_.V.onYtNavigateFinish=function(J,c){if(!_.JK||c){this.activeEndpoint=c.endpoint;this.pageType=c.pageType;this.pageUrl=c.response.url;var m,b;J=(b=_.L((m=c.endpoint)==null?void 0:m.commandMetadata,_.lk))==null?void 0:b.url;!this.pageUrl&&J&&(this.pageUrl=J);_.w("kevlar_use_vimio_behavior")&&this.markGuideRendererDirty(this.getVisibleGuideRenderer())}};
_.V.getVisibleGuideRenderer=function(){for(var J=_.M(this.guideRenderers),c=J.next();!c.done;c=J.next())if(c=c.value,this.miniGuideVisible&&c.is==="ytd-mini-guide-renderer"||this.guideOpened&&c.is==="ytd-guide-renderer")return c;return null};
_.V.markGuideRendererDirty=function(J){if(J){typeof J.markDirty==="function"&&J.markDirty();J=_.M([].concat(_.L6(_.Bj(J).children)));for(var c=J.next();!c.done;c=J.next())this.markGuideRendererDirty(c.value)}};
_.V.persistentGuideEnabled=function(J,c){if(!c||J==="watch"||J==="settings"||J==="shorts"&&this.isFullscreenShorts||_.w("reels_web_disable_persistent_guide_shorts")&&J==="shorts")return!1;var m=_.NU(c)||"";return _.w("kevlar_premium_guide_collapse_killswitch")?!this.persistentGuideBlockedPages.some(function(b){return m===b}):!this.persistentGuideBlockedPagePathRegex.test(m)};
_.V.canFitPersistentGuide=function(J){var c=_.c7("kevlar_persistent_guide_width_threshold",1312);return c===-1||_.w("reels_web_show_mini_guide_on_shorts")&&this.pageType==="shorts"?!1:J>c};
_.V.canFitMiniGuide=function(J){return this.miniGuideWidthThreshold===-1?!1:J>this.miniGuideWidthThreshold};
_.V.onResize=function(){var J=this;_.hO(this,"calculateGuideState",function(){J.onResizeDebounced()})};
_.V.onResizeDebounced=function(){this.cachedClientWidth=window.innerWidth};
_.V.disableGuideAnimation=function(){this.guideElement.transitionDuration=0};
_.V.enableGuideAnimation=function(){this.guideElement.transitionDuration=this.animationTransitionDuration};
_.V.getInitialGuideUserStateOpened=function(){return!_.HA().getFlag(109)};
_.eE.Object.defineProperties(dt.prototype,{initialBodyClientWidth:{configurable:!0,enumerable:!0,get:function(){return _.Ub("initialBodyClientWidth")||window.innerWidth}}});
dt.prototype.onResize=dt.prototype.onResize;dt.prototype.observeForMiniGuideVisible=dt.prototype.observeForMiniGuideVisible;dt.prototype.computeGuidePersistentAndVisible=dt.prototype.computeGuidePersistentAndVisible;dt.prototype.cachedClientWidthChanged=dt.prototype.cachedClientWidthChanged;dt.prototype.resetGuide=dt.prototype.resetGuide;dt.prototype.activeEndpointChanged=dt.prototype.activeEndpointChanged;dt.prototype.guideOpenedChanged=dt.prototype.guideOpenedChanged;
dt.prototype.miniGuideVisibleChanged=dt.prototype.miniGuideVisibleChanged;dt.prototype.guideIsVisibleButNotPersistentChanged=dt.prototype.guideIsVisibleButNotPersistentChanged;dt.prototype.guidePersistentAndVisibleChanged=dt.prototype.guidePersistentAndVisibleChanged;dt.prototype.onGuideElementChanged=dt.prototype.onGuideElementChanged;dt.prototype.onGuidePersistentChanged=dt.prototype.onGuidePersistentChanged;dt.prototype.onRenderGuideChanged=dt.prototype.onRenderGuideChanged;
dt.prototype.onActiveEndpointChanged=dt.prototype.onActiveEndpointChanged;dt.prototype.onMiniGuideVisibleChanged=dt.prototype.onMiniGuideVisibleChanged;dt.prototype.onGuideIsVisibleButNotPersistentChanged=dt.prototype.onGuideIsVisibleButNotPersistentChanged;dt.prototype.onGuidePersistendAndVisibleChanged=dt.prototype.onGuidePersistendAndVisibleChanged;_.O([_.f(_.rI),_.R("design:type",Object)],dt.prototype,"ironResizableBehavior",void 0);
_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],dt.prototype,"ytActionHandlerBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],dt.prototype,"ytComponentBehavior",void 0);_.O([_.f(_.fY),_.R("design:type",Object)],dt.prototype,"ytdReduxBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],dt.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Boolean)],dt.prototype,"disabled",void 0);
_.O([_.U(),_.R("design:type",Boolean)],dt.prototype,"guidePersistentAndVisible",void 0);_.O([_.NE("guidePersistentAndVisible"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],dt.prototype,"onGuidePersistendAndVisibleChanged",null);_.O([_.U(),_.R("design:type",Boolean)],dt.prototype,"guideIsVisibleButNotPersistent",void 0);
_.O([_.NE("guideIsVisibleButNotPersistent"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],dt.prototype,"onGuideIsVisibleButNotPersistentChanged",null);_.O([_.U(),_.R("design:type",Object)],dt.prototype,"miniGuideVisible",void 0);_.O([_.NE("miniGuideVisible"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],dt.prototype,"onMiniGuideVisibleChanged",null);_.O([_.U(),_.R("design:type",Boolean)],dt.prototype,"forceMiniGuideClose",void 0);
_.O([_.U(),_.R("design:type",Object)],dt.prototype,"activeEndpoint",void 0);_.O([_.NE("activeEndpoint"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],dt.prototype,"onActiveEndpointChanged",null);_.O([_.U(),_.R("design:type",Boolean)],dt.prototype,"renderGuide",void 0);_.O([_.NE("renderGuide"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],dt.prototype,"onRenderGuideChanged",null);
_.O([_.U(),_.R("design:type",Object)],dt.prototype,"guideOpened",void 0);_.O([_.U(),_.R("design:type",Boolean)],dt.prototype,"guidePersistent",void 0);_.O([_.NE("guidePersistent"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],dt.prototype,"onGuidePersistentChanged",null);_.O([_.U(),_.R("design:type",Object)],dt.prototype,"guideUserStateOpened",void 0);_.O([_.U(),_.R("design:type",String)],dt.prototype,"pageUrl",void 0);
_.O([_.U(),_.R("design:type",String)],dt.prototype,"pageType",void 0);_.O([_.U(),_.R("design:type",Number)],dt.prototype,"cachedClientWidth",void 0);_.O([_.U(),_.R("design:type",Object)],dt.prototype,"guideElement",void 0);_.O([_.U({selector:_.t3}),_.R("design:type",Object)],dt.prototype,"isFullscreenShorts",void 0);_.O([_.NE("guideElement"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],dt.prototype,"onGuideElementChanged",null);
_.O([_.NE("guidePersistentAndVisible"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],dt.prototype,"guidePersistentAndVisibleChanged",null);_.O([_.kr("guideIsVisibleButNotPersistent"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],dt.prototype,"guideIsVisibleButNotPersistentChanged",null);
_.O([_.NE("miniGuideVisible"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],dt.prototype,"miniGuideVisibleChanged",null);_.O([_.kr("guideOpened"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],dt.prototype,"guideOpenedChanged",null);_.O([_.NE("activeEndpoint"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],dt.prototype,"activeEndpointChanged",null);
_.O([_.kr("pageUrl"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],dt.prototype,"resetGuide",null);_.O([_.kr("cachedClientWidth"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],dt.prototype,"cachedClientWidthChanged",null);_.O([_.NE("guideOpened","guidePersistent"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],dt.prototype,"computeGuidePersistentAndVisible",null);
_.O([_.kr("guidePersistentAndVisible","pageUrl","cachedClientWidth"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],dt.prototype,"observeForMiniGuideVisible",null);_.O([_.ps("iron-resize"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],dt.prototype,"onResize",null);dt=_.O([_.E({disableElementRegistration:!0,is:"yt-guide-manager"})],dt);var DHr=_.v(dt,"yt-guide-manager",void 0,{mode:_.mP("kevlar_poly_si_batch_j081")?1:2});var $E=function(){var J=_.h.apply(this,arguments)||this;J.JSC$17748_keyboardInUse=!1;J.boundHandleCapturedKeydownEvent=function(c){J.handleCapturedKeydownEvent(c)};
return J};
_.D($E,_.h);_.V=$E.prototype;_.V.attached=function(){this.listenToDocument(document)};
_.V.listenToDocument=function(J){J.addEventListener("keydown",_.ME(this,this.onKeyDownEvent));J.addEventListener("keyup",_.ME(this,this.onKeyUpEvent));J.addEventListener("mousedown",_.ME(this,this.onMouseDownEvent));_.w("desktop_keyboard_capture_keydown_killswitch")||J.addEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);J.addEventListener("yt-page-data-updated",_.ME(this,this.onPageUpdate))};
_.V.detached=function(){this.unlistenFromDocument(document)};
_.V.unlistenFromDocument=function(J){J.removeEventListener("keydown",_.ME(this,this.onKeyDownEvent));J.removeEventListener("keyup",_.ME(this,this.onKeyUpEvent));J.removeEventListener("mousedown",_.ME(this,this.onMouseDownEvent));_.w("desktop_keyboard_capture_keydown_killswitch")||J.removeEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);J.removeEventListener("yt-page-data-updated",_.ME(this,this.onPageUpdate))};
_.V.ready=function(){_.BG().addProvider({provide:_.Js,useValue:this})};
_.V.isKeyBoardInUse=function(){return this.JSC$17748_keyboardInUse};
_.V.handleCapturedKeydownEvent=function(J){if(J.keyCode===32&&!this.isKeyBoardInUse())this.onKeyDownEvent(J)};
_.V.onMouseDownEvent=function(){this.JSC$17748_keyboardInUse=!1};
_.V.onPageUpdate=function(){if(_.w("desktop_keyboard_shortcut_usage_log")||this.isShortsPage&&_.w("web_shorts_keyboard_shortcut_usage_log")){_.lf.clear();for(var J=_.M(_.ji),c=J.next();!c.done;c=J.next()){var m=_.M(c.value);c=m.next().value;m=m.next().value;m=_.rs(m);_.lf.set(c,m);_.$2(_.Y3(),_.fl(),m)}_.yc.clear();J=_.M(_.Ff);for(c=J.next();!c.done;c=J.next())m=_.M(c.value),c=m.next().value,m=m.next().value,m=_.rs(m),_.yc.set(c,m),_.$2(_.Y3(),_.fl(),m);_.Gm(_.Y3(),_.fl(),[].concat(_.L6(_.yc.values()),
_.L6(_.lf.values())));_.vA(_.Y3(),[].concat(_.L6(_.yc.values()),_.L6(_.lf.values())))}};
_.V.onMiniplayerActiveChange=function(){var J;(J=_.BG().resolve(_.Uo).pipController.getWindow())&&(this.miniplayerIsActive?this.listenToDocument(J.document):this.unlistenFromDocument(J.document))};
_.V.ignoreKeyEvent=function(J){if(J.ctrlKey||J.altKey)if(_.w("kevlar_macro_markers_keyboard_shortcut")){if(J.keyCode!==37&&J.keyCode!==39)return!0}else return!0;var c=_.OT(J)||[];return _.CN1(c)?!0:J.defaultPrevented?(Nq(J.keyCode,J.shiftKey,this.isShortsPage),!0):J.keyCode===32&&this.isKeyBoardInUse()?this.isSpacebarClick(J):!1};
_.V.isSpacebarClick=function(J){var c=J||window.event;var m;c.composedPath&&typeof c.composedPath==="function"?m=c.composedPath():m=c.path;m&&m.length?c=m[0]:(c=c||window.event,c=c.target||c.srcElement,c.nodeType==3&&(c=c.parentNode));return c&&J.keyCode===32&&(J=c.tagName==="BUTTON"||c.tagName==="A"||c.tagName==="INPUT",c=(c=c.getAttribute("role"))&&(c==="option"||c==="button"||c.indexOf("menuitem")===0),J||c)?!0:!1};
_.V.onKeyDownEvent=function(J){if(!this.ignoreKeyEvent(J)&&(J.keyCode===191&&(J.shiftKey||J.metaKey?J.repeat!=null&&J.repeat||(this.openHotkeyDialog(),Nq(J.keyCode,J.shiftKey,this.isShortsPage)):(this.focusSearchBox(),J.preventDefault())),!J.metaKey)){var c=_.BG().resolve(_.Uo);switch(J.keyCode){case 9:this.JSC$17748_keyboardInUse=!0;break;case 32:this.handlePlayerSpaceKey(J);break;case 84:c.pipController.getWindow()&&window.focus();this.toggleTheaterMode(J.keyCode,J.shiftKey);break;case 73:c.pipController.getWindow()&&
window.focus();this.toggleMiniplayer(J.keyCode,J.shiftKey);break;case 70:if(this.isShortsPage&&_.w("web_fullscreen_shorts")){_.ke1();break}this.isMiniplayerActive()?c.pipController.getWindow()&&(c.close(!0),window.focus()):this.passEventToPlayer(J);break;case 27:this.closeMiniplayer(J.keyCode,J.shiftKey)||this.passEventToPlayer(J);break;case 13:J.shiftKey&&_.w("web_ephemeral_actions")&&_.BG().resolve(_.Pn).activate(J);break;default:this.passEventToPlayer(J)}}};
_.V.onKeyUpEvent=function(J){if(!this.ignoreKeyEvent(J))if(_.w("web_speedmaster_spacebar_control")&&J.keyCode===32)this.handlePlayerSpaceKey(J,!0);else{var c=this.getPlayerManager();c&&(c=c.getPlayer())&&c.handleGlobalKeyUp(J.keyCode,J.shiftKey,J.ctrlKey,J.altKey,J.metaKey,J.key,J.code)}};
_.V.getPlayerManager=function(){var J=_.ep(),c=_.BG().resolve(_.y6(_.oO));return J&&c&&c.isOnWatch()?J:null};
_.V.passEventToPlayer=function(J,c){var m=this,b,x,P;return _.N(function(p){if(p.nextAddress==1)return!_.w("desktop_keyboard_shortcuts_enabled_miniplayer_killswitch")&&m.isMiniplayerActive()?b=_.BG().resolve(_.Uo).getPlayerElement():m.inlinePreviewIsActive?(x=_.bJ(m.hostElement,"yt-get-inline-preview-player-action"))&&x[0]&&(b=x[0]):b=_.ep(),b?_.K(p,b.getPlayerPromise(),3):p.jumpTo(0);P=p.yieldResult;c?P.handleGlobalKeyUp(J.keyCode,J.shiftKey,J.ctrlKey,J.altKey,J.metaKey,J.key,J.code,J.repeat):P.handleGlobalKeyDown(J.keyCode,
J.shiftKey,J.ctrlKey,J.altKey,J.metaKey,J.key,J.code,J.repeat);J.keyCode!==38&&J.keyCode!==40&&Nq(J.keyCode,J.shiftKey,m.isShortsPage);_.tD(p)})};
_.V.focusSearchBox=function(){_.cA(this.hostElement,"yt-focus-searchbox")};
_.V.openHotkeyDialog=function(){_.cA(this.hostElement,"yt-open-hotkey-dialog")};
_.V.isMiniplayerActive=function(){return _.BG().resolve(_.Uo).isMiniplayerActive()};
_.V.closeMiniplayer=function(J,c){return this.isMiniplayerActive()?(_.BG().resolve(_.Uo).close(),Nq(J,c,this.isShortsPage),!0):!1};
_.V.toggleTheaterMode=function(J,c){var m=_.qx(_.Rc().getState()),b=this.getPlayerManager(),x=_.w("disable_theater_mode_keyboard")||_.Ss("START_IN_FULL_WINDOW_MODE");b&&!x&&(m=!m,_.yM()&&_.w("external_fullscreen")&&(m=!0),_.m9(this.hostElement,"yt-toggle-theater-mode",[m]),Nq(J,c,this.isShortsPage))};
_.V.toggleMiniplayer=function(J,c){var m=this.getPlayerManager();if(this.isMiniplayerActive()){var b;((b=_.BG().resolve(_.y6(_.oO)))==null?0:b.isOnWatch())?_.BG().resolve(_.Uo).close(!0):_.kX(_.BG().resolve(_.Uo));Nq(J,c,this.isShortsPage)}else m&&(_.m9(this.hostElement,"yt-activate-miniplayer-from-watch-action"),Nq(J,c,this.isShortsPage))};
_.V.handlePlayerSpaceKey=function(J,c){var m=!!_.ep()||this.isMiniplayerActive();m=_.w("disable_space_scroll_fix")||m;_.w("global_spacebar_pause")&&!this.isKeyBoardInUse()&&m&&(J.preventDefault(),this.passEventToPlayer(J,c))};
$E.prototype.onMiniplayerActiveChange=$E.prototype.onMiniplayerActiveChange;_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],$E.prototype,"ytComponentBehavior",void 0);_.O([_.f(_.fY),_.R("design:type",Object)],$E.prototype,"ytdReduxBehavior",void 0);_.O([_.U({selector:_.CrD}),_.R("design:type",Boolean)],$E.prototype,"inlinePreviewIsActive",void 0);_.O([_.U({selector:_.tso}),_.R("design:type",Boolean)],$E.prototype,"isShortsPage",void 0);
_.O([_.U({selector:_.z2}),_.R("design:type",Boolean)],$E.prototype,"miniplayerIsActive",void 0);_.O([_.NE("miniplayerIsActive"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],$E.prototype,"onMiniplayerActiveChange",null);$E=_.O([_.E({disableElementRegistration:!0,is:"yt-hotkey-manager"})],$E);_.v($E,"yt-hotkey-manager",void 0,{mode:_.mP("kevlar_poly_si_batch_j081")?1:2});var GV=function(){var J=_.h.apply(this,arguments)||this;J.loopStateEntityKey_=null;J.playlistLoopStateEntity_=null;J.isShuffleNextPlaylist=!1;J.PLAYER_EVENTS_=new Map;J.playerListenersSetup_=!1;J.videoSkipJob_=0;J.canAutoAdvance_=!1;J.playerManager_=null;J.TEST_ONLY={};return J};
_.D(GV,_.h);_.V=GV.prototype;_.V.ready=function(){_.BG().addProvider({provide:_.zn,useValue:this.hostElement})};
_.V.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_)};
_.V.attached=function(){document.addEventListener("yt-navigate-start",_.ME(this,this.onYtNavigateStart_));document.addEventListener("yt-navigate-finish",_.ME(this,this.onYtNavigateFinish_))};
_.V.detached=function(){document.removeEventListener("yt-navigate-start",_.ME(this,this.onYtNavigateStart_));document.removeEventListener("yt-navigate-finish",_.ME(this,this.onYtNavigateFinish_))};
_.V.updatePlaylistEventListeners=function(J,c){c&&!this.playerListenersSetup_?(this.playerManager_=J,this.registerPlaylistEventListeners_(J)):!c&&this.playerListenersSetup_&&(this.playerManager_=null,this.removePlaylistEventListeners_(J))};
_.V.setPlayer=function(J){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_);this.playerManager_=J};
_.V.activate_=function(){this.playerManager_&&this.registerPlaylistEventListeners_(this.playerManager_)};
_.V.deactivate_=function(){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_)};
_.V.registerPlaylistEventListeners_=function(J){var c=this;J.getPlayerPromise().then(function(m){c.playerListenersSetup_||(c.ytPlayerListenerBehavior.listenToPlayerEvents(m,c.PLAYER_EVENTS_),c.playerListenersSetup_=!0)})};
_.V.removePlaylistEventListeners_=function(J){var c=this;J.getPlayerPromise().then(function(m){c.playerListenersSetup_&&(c.ytPlayerListenerBehavior.unlistenFromPlayerEvents(m,c.PLAYER_EVENTS_),c.playerListenersSetup_=!1)})};
_.V.setPlaylistComponent=function(J){this.playlistComponent&&(this.playlistComponent.removeEventListener("yt-navigate",_.ME(this,this.onPlaylistYtNavigate_)),J&&(J.data&&this.playlistComponent.data&&J.data.playlistId==this.playlistComponent.data.playlistId?(J.loopOn=this.playlistComponent.loopOn,J.shuffleOn=this.playlistComponent.shuffleOn):(J.loopOn=!1,J.shuffleOn=!1),this.isShuffleNextPlaylist&&(J.shuffleOn=!0,this.isShuffleNextPlaylist=!1)));this.playlistComponent=J;this.playlistComponent.addEventListener("yt-navigate",
_.ME(this,this.onPlaylistYtNavigate_))};
_.V.setAutoplayRenderer=function(J){this.autoplayData=J};
_.V.setPlaylistData=function(J){this.currentPlaylistData_=J;_.cA(this.hostElement,"yt-playlist-data-updated");_.Lw.isEmpty(J)?this.deactivate_():this.activate_();this.setLoopStateEntityKey_(J)};
_.V.setPlayerPlaybackControlData=function(J){this.playerManager_&&this.playerManager_.updatePlayerComponents(J.playlistPanelRenderer)};
_.V.getPlaylistData=function(){return this.currentPlaylistData_};
_.V.getTempData_=function(J,c){if(this.playlistComponent==null)return null;J={};this.playlistComponent.shuffleOn&&(J.shuffle_on=this.playlistComponent.shuffleOn);this.playlistComponent.loopOn&&(J.loop_on=this.playlistComponent.loopOn);c&&(J.autonav="1",_.BG().resolve(_.Lq),c=_.cO(),c>0&&(J.lact=c),this.playerManager_&&(c=this.playerManager_.getPlayer())&&c.shouldSendVisibilityState()&&(c=c.getVisibilityState(),c!=0&&(J.vis=c)));_.w("enable_unknown_lact_fix_on_html5")&&(_.BG().resolve(_.Lq),J.lact=
_.cO());return J};
_.V.getPlaylistState_=function(){return this.playlistComponent.loopOn&&this.playlistComponent.shuffleOn?"LOOP_SHUFFLE":this.playlistComponent.loopOn?"LOOP":this.playlistComponent.shuffleOn?"SHUFFLE":"NORMAL"};
_.V.setLoopStateEntityKey_=function(J){var c;this.loopStateEntityKey_=((c=this.getPlaylistLoopData_(J))==null?void 0:c.playlistLoopStateEntityKey)||null};
_.V.onPlaylistNext=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"nextButtonVideo")};
_.V.onPlaylistPrevious=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"previousButtonVideo")};
_.V.skipVideo=function(){var J=this,c=_.w("web_playlist_queue_multiple_skips_ks");if(!this.videoSkipJob_||c)c=this.isInBackground_()?1E3:5E3,this.videoSkipJob_=_.at(_.ft,function(){J.onPlaylistNext();J.videoSkipJob_=0},c)};
_.V.cancelVideoSkip=function(){this.videoSkipJob_&&(_.ft.cancelJob(this.videoSkipJob_),this.videoSkipJob_=0)};
_.V.isInBackground_=function(){var J=window.document.visibilityState;return!(!J||J=="visible")};
_.V.onPlaylistIndex_=function(J){this.playlistComponent&&(J=this.playlistComponent.data.contents[J].playlistPanelVideoRenderer.navigationEndpoint,_.cA(this.hostElement,"yt-navigate",{endpoint:J,tempData:this.getTempData_(J)}))};
_.V.onPlayerStateChange_=function(J){if(J=J==0&&this.playlistComponent&&this.canAutoAdvance_)J=_.AZ.getInstance(),J=!(J.autonavState_===3?J.autonavPauseReason_&&J.autonavPauseReason_.inputBoxFocus===!0:J.autonavState_===1&&J.disabledAutonavPauseReason_&&J.disabledAutonavPauseReason_.inputBoxFocus===!0);J&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"autoplayVideo",!0)};
_.V.onYtNavigateStart_=function(){this.canAutoAdvance_=!1};
_.V.onYtNavigateFinish_=function(){this.canAutoAdvance_=!0};
_.V.navigateToAutoplayWatchEndpoint_=function(J,c,m){var b=this.playlistComponent.data.currentIndex,x=this.getNumPlayableVideos_();J=="NORMAL"&&c=="autoplayVideo"&&b+1>=x&&m||!(J=this.getVideoEndpoint_(J,c))||(m=this.getTempData_(J,m),_.cA(this.hostElement,"yt-navigate",{endpoint:J,tempData:m}))};
_.V.getNumPlayableVideos_=function(){for(var J=0,c=_.M(this.playlistComponent.data.contents||[]),m=c.next();!m.done;m=c.next())m.value.playlistPanelVideoRenderer&&(J+=1);return J};
_.V.getVideoEndpoint_=function(J,c){if(this.autoplayData&&this.autoplayData.sets)for(var m=0,b=this.autoplayData.sets.length;m<b;m++){var x=this.autoplayData.sets[m];if(x.mode==J){if(x[c])return x[c];break}}else J=new _.w3("AutoplayData is undefined in playlist manager","Mode: "+J+" endpoint: "+c),_.qz(J)};
_.V.getAutoplayEndpoint=function(){if(this.playlistComponent)return this.getVideoEndpoint_(this.getPlaylistState_(),"autoplayVideo")};
_.V.onPlaylistYtNavigate_=function(J){if(J.detail.endpoint){J.stopPropagation();var c=J.detail;c.tempData=this.getTempData_(J.detail.endpoint);_.cA(this.hostElement,"yt-navigate",c)}};
_.V.hasAutoplayData=function(){return!(!this.autoplayData||!this.autoplayData.sets)};
_.V.onPlaylistLoopStateEntityChanged=function(){this.playlistLoopStateEntityChanged_(this.playlistLoopStateEntity_)};
_.V.playlistLoopStateEntityChanged_=function(J){var c=this,m,b,x;return _.N(function(P){if(P.nextAddress==1){if(!J)return P.return();m=J.state==="PLAYLIST_LOOP_STATE_ONE";return c.playerManager_?_.K(P,c.playerManager_.getPlayerPromise(),3):P.jumpTo(2)}P.nextAddress!=2&&(b=P.yieldResult,b.setLoopVideo(m));x=J.state==="PLAYLIST_LOOP_STATE_ALL";c.playlistComponent&&(c.playlistComponent.loopOn=x);_.tD(P)})};
_.V.getPlaylistLoopData_=function(J){var c,m;if(J=J==null?void 0:(c=J.playlistButtons)==null?void 0:(m=c.menuRenderer)==null?void 0:m.topLevelButtons)for(c=_.M(J),m=c.next();!m.done;m=c.next())if(m=m.value,m.playlistLoopButtonRenderer)return m.playlistLoopButtonRenderer};
_.V.getLoopStateCommand_=function(J){var c=this.getPlaylistData(),m;c=((m=this.getPlaylistLoopData_(c))==null?void 0:m.states)||[];var b;J=(b=_.L(c[J?1:2],_.zvZ))==null?void 0:b.button;var x;return(x=_.L(J,_.ur))==null?void 0:x.command};
_.V.onPlayerLoopChange_=function(J){this.playlistLoopStateEntity_&&(J?"PLAYLIST_LOOP_STATE_ONE":"PLAYLIST_LOOP_STATE_NONE")!==this.playlistLoopStateEntity_.state&&(J=this.getLoopStateCommand_(J))&&this.ytComponentBehavior.resolveCommand(J)};
_.V.onSleepTimerSettingsChanged_=function(J){this.canAutoAdvance_=J!=="End of video"};
GV.prototype.onPlaylistLoopStateEntityChanged=GV.prototype.onPlaylistLoopStateEntityChanged;_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],GV.prototype,"ytComponentBehavior",void 0);_.O([_.f(_.Ex.YtPlayerListenerBehavior),_.R("design:type",_.vX)],GV.prototype,"ytPlayerListenerBehavior",void 0);_.O([_.f(_.fY),_.R("design:type",Object)],GV.prototype,"ytdReduxBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],GV.prototype,"loopStateEntityKey_",void 0);
_.O([_.U({selectorArgs:["loopStateEntityKey_"],selector:_.sHe}),_.R("design:type",Object)],GV.prototype,"playlistLoopStateEntity_",void 0);_.O([_.NE("playlistLoopStateEntity_"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],GV.prototype,"onPlaylistLoopStateEntityChanged",null);GV=_.O([_.E({disableElementRegistration:!0,is:"yt-playlist-manager"})],GV);_.v(GV,"yt-playlist-manager",void 0,{mode:_.mP("kevlar_poly_si_batch_j081")?1:2});var W7h,zlR=function(){if(W7h!==void 0)return W7h;var J=document.createElement("template");_.z(J,"\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");J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return W7h=J};var Al=function(){var J=_.h.apply(this,arguments)||this;J.lastCallback=null;J.getAccountLinkPromises={};J.redirectModeProviderAllowlist=new Set(["football.fantasysports.yahoo.com","riotgames.com"]);J.actionMap={"yt-initialize-third-party":"handleInitializeRequest","yt-account-link-command":"handleAccountLinkCommand","yt-account-unlink-command":"handleAccountUnlinkCommand","yt-log-account-linking-event-command":"handleLogAccountLinkingEventCommand"};return J};
_.D(Al,_.h);_.V=Al.prototype;_.V.getLocation=function(){return window.location.href};
_.V.getCompletionUrl=function(){return _.eK(this.getLocation())};
_.V.containsRedirectState=function(J){return(J=_.so(_.c6r(J)))?(new URLSearchParams(J)).get("redirect_state")!==null:!1};
_.V.createGalConfig=function(J,c){var m=new hpS;J=m=c?this.getPopupOrRedirectSetting(m,_.Ub("LINK_API_KEY"),_.Ub("LINK_API_KEY_REDIRECT"),J):ddS(m,_.Ub("LINK_API_KEY"));J.authUser=_.Ub("SESSION_INDEX")||0;J.supportedFlows=new Set([4]);return J.build()};
_.V.getPopupOrRedirectSetting=function(J,c,m,b){this.isGalInteractionPopupMode(b)?(J.interactionMode=0,J=ddS(J,c)):(J.interactionMode=1,c=this.getCompletionUrl(),J.completionUrl=c,J=ddS(J,m));return J};
_.V.isGalInteractionPopupMode=function(J){if(this.redirectModeProviderAllowlist.has(J))switch(J){case "football.fantasysports.yahoo.com":return!1;case "riotgames.com":return!1;default:return!1}return!0};
_.V.getStatusEntityKeyForProviderId=function(J){return _.V_(J+":all","accountLinkStatusEntity")};
_.V.findNestedPropValue=function(J,c){var m=!1,b=null;JSON.stringify(J,function(x,P){m||x!==c||(m=!0,b=P);return m?null:P});
return b};
_.V.findAccountLinkButtonViewModel=function(J,c){var m=null,b=!1;JSON.stringify(J,function(x,P){b||P.accountLinkStatusEntityKey!==c||P.accountLinkStatusSecondaryEntityKey||(b=!0,m=P);return b?null:P});
return m};
_.V.executeLinkingSuccessOrFailureCommands=function(J,c,m){var b=null,x;(c==null?0:(x=c.url)==null?0:x.includes("account_sharing"))?b=c==null?void 0:c.response:b=c==null?void 0:c.response;(c=this.findAccountLinkButtonViewModel(b,J))?(J=m?this.findNestedPropValue(c,"onSuccessCommand"):this.findNestedPropValue(c,"onFailureCommand"))?_.tS([J],this.hostElement):_.Ge(Error("cl")):_.Ge(Error("dl`"+J))};
_.V.handleInitializeRequest=function(J,c){var m=this,b=nH1(this.createGalConfig(J,!0));this.containsRedirectState(this.getLocation())?VgR(J,b.config,b.galService).then(function(x){var P=m.getStatusEntityKeyForProviderId(J);if(x.statusCode===1)c&&m.executeLinkingSuccessOrFailureCommands(P,c,!0),x=m.getLocation().indexOf("#"),x!==-1&&window.history.pushState(null,"",m.getLocation().substring(0,x));else return c&&m.executeLinkingSuccessOrFailureCommands(P,c,!1),Promise.reject(Error(x.statusMessage))}).catch(function(x){_.qz(x);
_.zB("gamingAccountLinkStatusChanged",{serviceId:J,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(x)}):this.getAccountLinkPromises[J]=b.startLinkingSession({serviceId:J})};
_.V.handleAccountLinkCommand=function(J){_.L(J,zBr)&&this.handleLinkRequest(_.L(J,zBr))};
_.V.handleLinkRequest=function(J){var c=this,m=J.thirdPartyId;if(m)if(this.isGalInteractionPopupMode(m)){var b=function(){c.closeAndFire("ytd-gaming-account-link-setting-renderer",J.onFailureCommand)},x=function(){c.closeAndFire("ytd-gaming-account-link-setting-renderer",J.onSuccessCommand)};
this.lastCallback=x;this.getAccountLinkPromises[m].then(function(P){k9f(P).then(function(p){p.statusCode===1?x():b()})}).catch(function(){b()})}else this.getAccountLinkPromises[m].then(function(P){k9f(P).then(function(p){if(p.statusCode!==1)return Promise.reject(Error(p.statusMessage))})}).catch(function(P){_.qz(P);
_.zB("gamingAccountLinkStatusChanged",{serviceId:m,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(P)})};
_.V.closeAndFire=function(J,c){_.m9(this.hostElement,"yt-close-popup-action",[J]);c&&_.tS([c],this.hostElement)};
_.V.handleAccountUnlinkCommand=function(J){_.L(J,u2u)&&this.handleUnlinkRequest(_.L(J,u2u))};
_.V.handleUnlinkRequest=function(J){var c=this,m=J.thirdPartyId;if(m){var b=function(){c.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",J.onFailureCommand)},x=function(){c.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",J.onSuccessCommand)};
this.lastCallback=x;var P=nH1(this.createGalConfig(m,!1));this.unlinkUserGal(P,m).then(function(p){p.statusCode===1?x():b()}).catch(function(){b()})}};
_.V.unlinkUserGal=function(J,c){return J.deleteLink(c)};
_.V.handleLogAccountLinkingEventCommand=function(J){_.w("enable_gel_log_commands")&&_.L(J,fQs)&&(J=_.L(J,fQs).event)&&_.zB("gamingAccountLinkStatusChanged",J)};
_.eE.Object.defineProperties(Al,{template:{configurable:!0,enumerable:!0,get:function(){return zlR()}}});
_.O([_.f(_.M7.YtOpenPopupBehavior),_.R("design:type",Object)],Al.prototype,"ytOpenPopupBehavior",void 0);_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],Al.prototype,"ytActionHandlerBehavior",void 0);Al=_.O([_.E({disableElementRegistration:!0,is:"ytd-third-party-manager"})],Al);_.v(Al,"ytd-third-party-manager",function(){return zlR()},{mode:_.mP("kevlar_poly_si_batch_j081")?1:2});var uLp,fOp=function(){return uLp!==void 0?uLp:uLp=document.createElement("template")};
document.head.appendChild(fOp().content);var YWF,Xth=function(){if(YWF!==void 0)return YWF;var J=document.createElement("template");_.z(J,"\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");J.content.insertBefore(fOp().content.cloneNode(!0),J.content.firstChild);J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return YWF=J};var Z9S=_.Oo(["\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      "]),RB=function(){var J=_.h.apply(this,arguments)||this;J.currentPage=void 0;J.renderLoadingStateJobId=0;J.updatePageDataJobId=0;J.pageDisposeJobsets=new WeakMap;J.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts","yt-start-loading-learning-journey":"startLoadingLearningJourney",
"yt-get-page-offset":"getPageOffset","yt-set-page-offset":"setPageOffset","yt-pause-active-page-context":"pauseActiveContext","yt-prepare-page-dispose":"preparePageDispose","yt-stop-old-player":"onYtStopOldPlayer"};J.applyZoomTransition=_.mG("web_page_transition_type")==="zoom";J.applySlideTransition=_.mG("web_page_transition_type")==="slide";J.TEST_ONLY=void 0;return J};
_.D(RB,_.h);_.V=RB.prototype;_.V.ready=function(){var J=_.BG();J.addProvider({provide:_.oO,useValue:this});J.addProvider({provide:_.$t_,useValue:this})};
_.V.created=function(){this.pagePool=new Jg5;this.contextSwitcher=new C6h};
_.V.attached=function(){_.cA(this.hostElement,"attached");var J=_.BG().resolve(_.y6(_.Wj));J&&(this.contextSwitcher.JSC$17572_networkService_=J);this.viewTransitionManager=_.BG().resolve(_.y6(_.a0));this.setupPageTransitionAnimation()};
_.V.getPageOffset=function(J){return J.getScrollTop()};
_.V.setPageOffset=function(J,c){try{J.setScrollTop(c)}catch(m){}};
_.V.setPageOffsetForNavigation=function(J,c){_.cA(this.hostElement,"yt-navigate-set-page-offset",{page:J,offset:c===void 0?0:c})};
_.V.pauseActiveContext=function(){var J=this.contextSwitcher;J.activeContext_&&J.activeContext_.pause()};
_.V.getModuleNameForType=function(J){return J==="watch"?_.w("kevlar_watch_fixie")?"watchFixie":_.w("kevlar_watch_grid")?"watchGrid":"watchFlexy":J==="shorts"||J==="search"?J:"browse"};
_.V.attachPage=function(J){var c,m=!_.w("pc_is_attached_ks")&&(J==null?void 0:(c=J.polymerController)==null?void 0:c.isAttached);if(!J.isAttached&&!m)try{_.Bj(this.hostElement).appendChild(J)}catch(x){var b;_.qz(new _.w3("Error attaching page element for component",{origin:(b=this.currentPage)==null?void 0:b.is,component:J.is}))}};
_.V.setActivePage=function(J){var c=this,m=!1,b=function(){var x=c.isOnWatch(),P=c.currentPage;if(J)if(J!==c.currentPage){P&&(P.hidden=!0,P.active=!1,P.removeAttribute("role"));c.currentPage=J;var p,t=_.tc((p=c.data)==null?void 0:p.endpoint);P&&_.cA(c.hostElement,"yt-page-type-changed",{oldPageType:P.is,newPageType:J.is,newPageSubtype:t});_.v9().dispatch(_.J7({type:"SET_SHARED_CURRENT_PAGE_TYPE",payload:J.is}));_.v9().dispatch(_.J7({type:"SET_SHARED_CURRENT_PAGE_SUB_TYPE",payload:t||""}));J.hidden=
!1;c.attachPage(J);J.active=!0;J.setAttribute("role","main");P&&c.setPageOffsetForNavigation(J,0);_.w("kevlar_remove_page_dom_on_switch")&&!x&&P&&_.Bj(c.hostElement).removeChild(P)}else m=!0;else x=new _.w3("Unable to set active page",P?P.is:"unknown origin",(t=c.data)==null?void 0:t.endpoint),_.Xc(x)};
this.viewTransitionManager?dEp(this.viewTransitionManager,b,this.viewTransitionConfigForSetActivePage(this.currentPage,J)):b();return m};
_.V.viewTransitionConfigForSetActivePage=function(J,c){return _.w("web_thumbnail_to_watch_transition")&&(J==null?void 0:J.is)==="ytd-browse"&&this.isWatchPage(c)?{viewTransitionOptions:{shouldWrap:!0}}:(this.applySlideTransition||this.applyZoomTransition)&&(J==null?void 0:J.is)==="ytd-browse"&&(c==null?void 0:c.is)==="ytd-browse"&&J!==c?this.applySlideTransition?{transitionName:"slide"}:{transitionName:"zoom"}:{viewTransitionOptions:{shouldWrap:!1}}};
_.V.updatePageData=function(J){var c=this,m=this.data;this.updatePageDataJobId&&_.ft.cancelJob(this.updatePageDataJobId);this.data=J;return new _.IN(function(b){var x=function(){J.filler?c.performDataUpdate(J,m):cO5(function(){c.performDataUpdate(J,m)});
var I=_.f$();_.Y7(I,"cr")||I.processSignal("cr");b()},P=function(){J&&J.page==="watch"?c.updatePageDataJobId=_.at(_.ft,x):x()};
if(_.w("kevlar_enable_mss_page_modules_client")&&J){var p=_.BG().resolve(_.hm),t=c.getModuleNameForType(J.page);(p=SBp(p,[t]))?p.then(P):P()}else P()})};
_.V.isDownloadsPage=function(J){var c,m;return(J==null?void 0:(c=J.endpoint)==null?void 0:(m=c.browseEndpoint)==null?void 0:m.browseId)==="FEdownloads"};
_.V.setPlayerSyncInterval=function(J){var c;return _.N(function(m){if(m.nextAddress==1)return _.K(m,_.BG().resolve(_.BP),2);c=m.yieldResult;c.setUpPositionSyncInterval(J);_.tD(m)})};
_.V.performDataUpdate=function(J,c){_.w("kevlar_early_popup_close")||_.m9(this.hostElement,"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);var m=!J.filler;m&&(_.Y2("lps"),_.w("config_age_report_killswitch")||ubf());var b=BC(J),x,P=!1;if(_.w("kevlar_remove_page_dom_on_switch")){var p=c&&BC(c);b===p&&(x=this.getCurrentPage())}x||(x=YE(this.pagePool,b));m&&xE5(this.pagePool.elementPoolPopulator,b);m&&!this.renderLoadingStateJobId&&(P=this.setActivePage(x));if(x){p=b==="watch";var t=
b==="shorts",I=b==="learning_journey_watch";_.w("kevlar_flush_jobs_before_setting_player_response")&&this.flushPageDisposeJobset(x);if(p||t||I)x.playerData=J.playerResponse;if(t){J.reelWatchSequenceResponse?x.reelWatchSequenceResponse=J.reelWatchSequenceResponse:J.cachedReelWatchSequenceResponse?x.reelWatchSequenceResponse=J.cachedReelWatchSequenceResponse:_.w("web_enable_cached_reel_sequence_fix")&&x.cachedReelWatchSequenceResponse&&!x.reelWatchSequenceResponse&&(x.reelWatchSequenceResponse=x.cachedReelWatchSequenceResponse);
x.currentEndpoint=J.endpoint;var a;x.isPreviousPageShorts=!!(c==null?0:(a=c.endpoint)==null?0:a.reelWatchEndpoint);J.cachedReelWatchSequenceResponse=J.reelWatchSequenceResponse||J.cachedReelWatchSequenceResponse||(c==null?void 0:c.cachedReelWatchSequenceResponse);x.cachedReelWatchSequenceResponse=J.cachedReelWatchSequenceResponse}a=this.isDownloadsPage(J);var k=this.isDownloadsPage(c);a&&!k?this.setPlayerSyncInterval(6E5):!a&&k&&this.setPlayerSyncInterval();_.w("block_all_player_prefetch_requests")||
this.preparePrefetchRequest(J,x,m,p,t,I);$Er(_.BG().resolve(_.Uo),c,J);_.eO(_.BG().resolve(_.Lq));_.w("kevlar_flush_jobs_before_setting_player_response")||this.flushPageDisposeJobset(x);m?(m=typeof x.loadPage,m==="function"?(x.pageContext=al1(this.contextSwitcher,x,x.data!==J.response),m=function(){x.loadPage(J.response)},(this.applySlideTransition||this.applyZoomTransition)&&this.viewTransitionManager&&x.is==="ytd-browse"&&P&&this.isDifferentBrowseId(J==null?void 0:J.endpoint,c==null?void 0:c.endpoint)?
this.applySlideTransition?dEp(this.viewTransitionManager,m,{transitionName:"slide"}):dEp(this.viewTransitionManager,m,{transitionName:"zoom"}):m()):_.Zt(new _.w3("b/38014653 ",[b,
x.is,x.nodeName,m,x.isAttached,c&&BC(c),this.hostElement.children.length])),_.Y2("pdl")):(x.hidden=!0,J.response.filler=!0,x.data=J.response,this.attachPage(x));_.cA(this.hostElement,"yt-page-data-updated",{pageType:b})}_.rv(_.ft,function(){_.w("logging_avoid_blocking_during_navigation")&&_.b7f().transition("none");var H=Yl5(),T=x;if(J){var r=NK1(J),W=tKo(J),Y;a:{if(J.playerResponse){var Z=J.playerResponse,d;if((Y=Z.auxiliaryUi)==null?0:(d=Y.messageRenderers)==null?0:d.upsellDialogRenderer){Y=Z.auxiliaryUi.messageRenderers.upsellDialogRenderer;
break a}}else if(J.response&&(Y=J.response,(Z=Y.overlay)==null?0:Z.upsellDialogRenderer)){Y=Y.overlay.upsellDialogRenderer;break a}Y=void 0}var G;var e;d=(G=J.playerResponse)==null?void 0:(e=G.auxiliaryUi)==null?void 0:e.messageRenderers;G=(d==null?void 0:d.enforcementMessageViewModel)||(d==null?void 0:d.bkaEnforcementMessageViewModel);G=(G==null?void 0:G.displayType)!=="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"?G:void 0;var A;a:{if(J.response&&(e=J.response,(A=e.overlay)==null?0:A.commandWrapperPromoRenderer)){A=
e.overlay.commandWrapperPromoRenderer;break a}A=void 0}flR(H,r,W,Y,G,A,T)}})};
_.V.preparePrefetchRequest=function(J,c,m,b,x,P){var p,t,I,a,k,H,T,r,W,Y,Z,d,G,e,A;return _.N(function(l){if(l.nextAddress==1)return!m||!(b||x||P)||_.w("kevlar_disable_background_prefetch")&&_.du(_.lft)()===0?l.return():(p=_.Qd(c))?_.K(l,p.getPlayerPromise(),2):l.return();t=l.yieldResult;I=_.BG().resolve(_.y6(_.Wj));if(!I)return l.return();if(x)return a=_.mm(_.K9),IhS(a,(k=J.endpoint)==null?void 0:k.reelWatchEndpoint,c.reelWatchSequenceResponse,t,I),l.return();r=(H=J.response)==null?void 0:(T=H.responseContext)==
null?void 0:T.webResponseContextExtensionData;if(!r)return l.return();G=(W=J.response)==null?void 0:(Y=W.contents)==null?void 0:(Z=Y.twoColumnWatchNextResults)==null?void 0:(d=Z.autoplay)==null?void 0:d.autoplay;e=_.BG().resolve(_.zn);A=_.mm(_.K9);KqR(A,r,t,I,e,G);_.tD(l)})};
_.V.movePlayerToWatch=function(J){var c=this,m,b;return _.N(function(x){m=YE(c.pagePool,"watch");b=m.getPlayerContainer();J.appendTo(b);_.tD(x)})};
_.V.movePlayerToShorts=function(J){var c=this,m,b,x;return _.N(function(P){m=YE(c.pagePool,"shorts");b=m.getPlayerContainer();(x=J)==null||x.appendTo(b,void 0,!0);_.tD(P)})};
_.V.getPlayerFromWatch=function(){var J=YE(this.pagePool,"watch");return _.Qd(J)};
_.V.getPlayerFromShorts=function(){var J=YE(this.pagePool,"shorts");return _.Qd(J)};
_.V.startLoadingWatch=function(){var J=YE(this.pagePool,"watch");this.renderLoadingStateJobId?(_.ft.cancelJob(this.renderLoadingStateJobId),this.renderLoadingStateJobId=0,this.renderPageLoadingState("watch")):this.setActivePage(J)};
_.V.startLoadingShorts=function(){var J=YE(this.pagePool,"shorts");this.setActivePage(J)};
_.V.startLoadingLearningJourney=function(){var J=YE(this.pagePool,"learning_journey_watch");this.setActivePage(J)};
_.V.getCurrentPage=function(){return this.currentPage};
_.V.getDestinationPageType=function(){return this.destinationPageType};
_.V.getCurrentData=function(){return this.data};
_.V.isOnWatch=function(){return this.isWatchPage(this.currentPage)};
_.V.isOnShorts=function(){var J;return((J=this.currentPage)==null?void 0:J.is)==="ytd-shorts"};
_.V.isWatchPage=function(J){return!!J&&(J.is==="ytd-watch-flexy"||J.is==="ytd-watch-fixie"||J.is==="ytd-watch-grid")};
_.V.preparePage=function(J,c){var m=this,b=function(){var p=m.pagePool.preparePage(J,m.currentPage,c);p&&m.attachPage(p)},x=function(p){_.Ue(p,c);
_.qz(p)};
if(_.w("kevlar_enable_mss_page_modules_client")){var P=this.getModuleNameForType(J);if(P=SBp(_.BG().resolve(_.hm),[P])){P.then(b.bind(this)).catch(x.bind(this));return}}try{b()}catch(p){x(p)}};
_.V.lazyPrepareCriticalPages=function(J,c){J=_.tc(c)||J;_.w("kevlar_enable_mss_page_modules_client")?this.downloadPageModules(J).then(this.maybePrepareWatchPage.bind(this,J)):this.maybePrepareWatchPage(J)};
_.V.maybePrepareWatchPage=function(J){J!=="watch"&&_.rv(_.ft,this.preparePage.bind(this,"watch"))};
_.V.downloadPageModules=function(J){J=this.getModuleNameForType(J);var c=new Set(["browse","search","shorts",this.getModuleNameForType("watch")]);c.delete(J);var m=_.BG().resolve(_.hm);m.JSC$16307_loadModules(J);return m.JSC$16307_loadModules.apply(m,_.L6(c))};
_.V.renderPageLoadingState=function(J,c){this.preparePage(J,c);var m=YE(this.pagePool,J);m.loadingData&&(m.loadingData.endpoint=c);m.loading=!0;this.setActivePage(m);J==="watch"&&_.cA(this.hostElement,"yt-guide-close")};
_.V.prepareForNavigation=function(J,c){var m=this;if(this.currentPage&&this.data){var b=_.tc(c)||J;this.destinationPageType=b;BC(this.data)==b&&_.cA(this.currentPage,"yt-page-data-will-update",{bubbles:!1})}if(J==="watch"&&this.data&&this.data.page!=="watch"){this.renderLoadingStateJobId&&_.ft.cancelJob(this.renderLoadingStateJobId);_.BG().resolve(_.Uo).deactivate(c);var x=this.data;this.renderLoadingStateJobId=_.T9(_.ft,function(){if(m.data!=x){var P=YE(m.pagePool,J);m.setActivePage(P)}else m.renderPageLoadingState(J,
c);m.renderLoadingStateJobId=0},150)}};
_.V.preparePageDispose=function(){if(this.currentPage&&Array.isArray(this.currentPage.pageDisposeJobs)&&this.currentPage.pageDisposeJobs.length!==0){var J=new _.jF(1);this.currentPage.pageDisposeJobs.forEach(function(c){_.FL(J,c)});
this.pageDisposeJobsets.set(this.currentPage,J)}};
_.V.flushPageDisposeJobset=function(J){var c=this.pageDisposeJobsets.get(J);c&&(c.flushJobs(),this.pageDisposeJobsets.delete(J))};
_.V.onYtStopOldPlayer=function(J,c){c=c===void 0?!1:c;var m,b=_.bj("kevlar_new_stop_old_player_logic_pages");if(_.w("kevlar_check_current_page_on_stop_old_player")&&(b.length===0||this.currentPage&&b.includes(this.currentPage.is)))if(this.data&&(m=BC(this.data)),BC(J)===m&&this.currentPage&&BC(this.currentPage.data)!==m)var x=_.Qd(this.currentPage);else m=BC(this.data),x=YE(this.pagePool,m),x=_.Qd(x);else this.data&&(m=BC(this.data),x=YE(this.pagePool,m),x=_.Qd(x));if(x)if(J=BC(J),b=YE(this.pagePool,
J),b=_.Qd(b),x==b)c&&!_.w("kevlar_disable_preemptive_player_reset")&&x.resetForNewPlayback();else if(c=m==="watch"&&J!=="watch",!c||J==="shorts"||_.CH$()&&!rah(this.data)&&J!=="yts-products"&&J!="mini_app"&&J!="playables")m=_.BG().resolve(_.Uo),c&&m.isMiniplayerActive()&&m.pipController.getWindow()||x.stop()};
_.V.setupPageTransitionAnimation=function(){var J=this;if((this.applyZoomTransition||this.applySlideTransition)&&this.viewTransitionManager){eW(this.viewTransitionManager,"slide",{beforeTransition:function(){J.hostElement.style.viewTransitionName="page-manager-slide"},
afterTransition:function(){J.hostElement.style.viewTransitionName=""}});
eW(this.viewTransitionManager,"zoom",{beforeTransition:function(){J.hostElement.style.viewTransitionName="page-manager-zoom"},
afterTransition:function(){J.hostElement.style.viewTransitionName=""}});
var c=_.c7("web_page_transition_exit_ms"),m=_.c7("web_page_transition_wait_ms"),b=_.c7("web_page_transition_enter_ms");if(!isNaN(c)||!isNaN(m)||!isNaN(b))if(c=fcr(Z9S,c,m,b))m=document.createElement("style"),m.textContent=_.LTD(c),document.head.appendChild(m)}};
_.V.isDifferentBrowseId=function(J,c){J=_.L(J,_.I1);c=_.L(c,_.I1);return(J==null?void 0:J.browseId)!==(c==null?void 0:c.browseId)};
_.eE.Object.defineProperties(RB,{template:{configurable:!0,enumerable:!0,get:function(){return Xth()}}});
_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],RB.prototype,"ytActionHandlerBehavior",void 0);RB=_.O([_.E({disableElementRegistration:!0,is:"ytd-page-manager"})],RB);_.v(RB,"ytd-page-manager",function(){return Xth()},{mode:_.mP("kevlar_poly_si_batch_j081")?1:2});var oB=function(J,c,m){m=m===void 0?!1:m;_.DS.call(this);this.draggableElement=J;this.callbacks=c;this.allowClicks=m;this.dragOccurred=!1;this.internalDragger=new _.fC(this.draggableElement);this.dragDelay=new _.la(this.delayedDrag.bind(this));qWh(this);this.allowClicks&&(_.WY$(this.internalDragger,5),J.addEventListener("click",_.ME(this,this.validateClick),{capture:!0}))};
_.D(oB,_.DS);var qWh=function(J){_.wp(J.internalDragger,"earlycancel",function(){J.allowClicks&&(J.dragOccurred=!1)});
_.wp(J.internalDragger,"start",function(c){var m,b;(b=(m=J.callbacks).onStartDrag)==null||b.call(m,c);!c.defaultPrevented&&J.allowClicks&&(J.dragOccurred=!0)});
_.wp(J.internalDragger,"beforedrag",function(c){c.preventDefault();J.lastOffset=new _.zO(c.clientX-J.internalDragger.startX,c.clientY-J.internalDragger.startY);J.dragDelay.start()});
_.wp(J.internalDragger,"end",function(){J.dragDelay.stop();var c,m;(m=(c=J.callbacks).onEndDrag)==null||m.call(c);J.lastOffset=void 0})};
oB.prototype.delayedDrag=function(){if(this.lastOffset)this.callbacks.onDrag(this.lastOffset)};
oB.prototype.disposeInternal=function(){this.internalDragger.dispose();this.allowClicks&&this.draggableElement.removeEventListener("click",_.ME(this,this.validateClick),{capture:!0})};
oB.prototype.validateClick=function(J){this.dragOccurred&&(this.dragOccurred=!1,J.stopPropagation(),J.preventDefault())};var Q$=function(J,c){_.DS.call(this);this.JSC$17773_resizeContainer=J;this.callbacks=c;this.aspectRatio=16/9;this.JSC$17773_resizers=[];J=_.M(this.JSC$17773_resizeContainer.children);for(c=J.next();!c.done;c=J.next())UHo(this,c.value)};
_.D(Q$,_.DS);Q$.prototype.disposeInternal=function(){for(var J=_.M(this.JSC$17773_resizers),c=J.next();!c.done;c=J.next())c.value.dispose();J=_.M(this.JSC$17773_resizeContainer.children);for(c=J.next();!c.done;c=J.next())c.value.setAttribute("disabled","");this.JSC$17773_resizers.length=0};
Q$.prototype.setSize=function(J){this.currentMiniplayerSize=J};
Q$.prototype.setAspectRatio=function(J){this.aspectRatio=J};
Q$.prototype.update=function(J,c){for(var m=_.M(this.JSC$17773_resizeContainer.children),b=m.next();!b.done;b=m.next()){b=b.value;var x=b.getAttribute("alignment");_.bM(b,"disabled",x===J||x===c)}};
var UHo=function(J,c){var m=c.getAttribute("alignment"),b=new oB(c,{onStartDrag:function(x){if(c.hasAttribute("disabled"))x.preventDefault();else{J.dragStartSize=J.currentMiniplayerSize;var P,p;(p=(P=J.callbacks).onStartResize)==null||p.call(P)}},
onDrag:function(x){if(J.dragStartSize){m!=="north"&&m!=="west"||x.scale(-1);var P=m==="north"||m==="south";x=P?x.y:x.x;P&&J.aspectRatio>=1?x*=J.aspectRatio:!P&&J.aspectRatio<1&&(x/=J.aspectRatio);J.callbacks.onResize(J.dragStartSize+x)}}});
J.JSC$17773_resizers.push(b)};var SWs,hlf=function(){return SWs!==void 0?SWs:SWs=document.createElement("template")};
document.head.appendChild(hlf().content);var dHR;var $Hr=_.Q1(function(J){var c=_.oN("yt-draggable"),m=J.onDrag,b=J.onDragStart,x=J.onDragEnd,P=_.ou(J,{allowClicks:!1,dragThreshold:5}),p=P.dragThreshold,t=P.allowClicks;J=P.children;P=P.className;var I=void 0,a=void 0,k=new _.zO(0,0),H=!1;_.uN(function(){I=new _.fC(c.value);a=new _.la(r);T(I,a);if(t()){_.WY$(I,p());var Y;(Y=c.value)==null||Y.addEventListener("click",W,{capture:!0})}_.f2(function(){var Z;(Z=I)==null||Z.dispose();if(t()){var d;(d=c.value)==null||d.removeEventListener("click",W,{capture:!0})}})});
var T=function(Y,Z){_.wp(Y,"earlycancel",function(){t()&&(H=!1)});
_.wp(Y,"start",function(d){b==null||b(d);d.defaultPrevented||t()&&(H=!0)});
_.wp(Y,"beforedrag",function(d){I&&a&&(d.preventDefault(),k=new _.zO(d.clientX-I.startX,d.clientY-I.startY),a.start())});
_.wp(Y,"end",function(){Z.stop();x==null||x();k=new _.zO(0,0)})},r=function(){k&&m(k)},W=function(Y){H&&(H=!1,Y.stopPropagation(),Y.preventDefault())};
return _.C("yt-draggable",{el:c,class:_.pq("ytDraggableComponentHost",P)},J)},"ng");var GKr=_.Q1(function(J){var c=_.M(_.K2(0,void 0,"CvAwBd")),m=c.next().value,b=c.next().value;c=function(x){var P={},p={};return _.C($Hr,{className:_.pq("ytdMiniplayerComponentResizer",(P.ytdMiniplayerComponentResizerDisabled=function(){return x===J.horizontalAlignment()||x===J.verticalAlignment()},P.ytdMiniplayerComponentResizerNorth=x==="north",P.ytdMiniplayerComponentResizerEast=x==="east",P.ytdMiniplayerComponentResizerSouth=x==="south",P.ytdMiniplayerComponentResizerWest=x==="west",P)),
onDragStart:function(){b(J.currentMiniplayerSize());if(J.onResizeStart)J.onResizeStart()},
onDrag:function(t){x!=="north"&&x!=="west"||t.scale(-1);var I;t=(I=x==="north"||x==="south")?t.y:t.x;var a=J.currentAspectRatio();I&&a>=1?t*=a:!I&&a<1&&(t/=a);I=t;J.onResize(m()+I)}},_.C("div",{class:_.pq("ytdMiniplayerComponentResizerCorner",(p.ytdMiniplayerComponentResizerNorthCorner=x==="north",p.ytdMiniplayerComponentResizerEastCorner=x==="east",p.ytdMiniplayerComponentResizerSouthCorner=x==="south",p.ytdMiniplayerComponentResizerWestCorner=x==="west",p))}))};
return _.C("div",{class:"ytdMiniplayerComponentResizers"},c("north"),c("east"),c("south"),c("west"))},"og");var Esu=16/9,vsR=_.Q1(function(){var J=_.oN("ytd-miniplayer"),c=_.M(_.K2(new _.tk(NaN,NaN),void 0,"YeKki")),m=c.next().value,b=c.next().value;c=_.M(_.K2(!1,void 0,"DcXgUd"));var x=c.next().value,P=c.next().value;c=_.M(_.K2(!1,void 0,"aDeXOc"));var p=c.next().value,t=c.next().value;c=_.M(_.K2(!1,void 0,"JpZfjb"));var I=c.next().value,a=c.next().value;c=_.M(_.K2(!1,void 0,"EmCWpc"));var k=c.next().value,H=c.next().value;c=_.M(_.K2(!1,void 0,"ovvtt"));var T=c.next().value,r=c.next().value;c=_.M(_.K2(!1,
void 0,"wPIoNd"));var W=c.next().value,Y=c.next().value;c=_.M(_.K2(Esu,void 0,"AmisJf"));var Z=c.next().value,d=c.next().value,G=_.M(_.K2(!1,void 0,"uNKP1c"));c=G.next().value;var e=G.next().value;G=_.M(_.K2(!1,void 0,"n9hvIf"));var A=G.next().value,l=G.next().value;G=_.M(_.K2(void 0,void 0,"Sjx4Dc"));var y=G.next().value,pG=G.next().value;G=_.M(_.K2(_.Ub("HTML_DIR")==="rtl"?"west":"east",void 0,"Qv2TXd"));var kt=G.next().value,nG=G.next().value;G=_.M(_.K2("south",void 0,"jyzxy"));var fG=G.next().value,
Yt=G.next().value;G=_.M(_.K2(400,void 0,"JFUs2d"));var Z3=G.next().value,oR=G.next().value,Em=_.BG().resolve(_.Uo).miniplayerPropSignalMap[0],X$=Em.data,Hu=Em.externalPlaylistData;G=Em.toastData;var S6=Em.playabilityStatus,a2=Em.isReadyToResume,Nu=Em.isDisabled,cu=Em.watchWhile,t8=Em.playerVe,I_=Em.expandVe,fU=Em.closeVe,Nf=Em.readyToResumeVe,wL=Em.readyToResumeCloseVe,qu=Em.repositionVe,O5=Em.resizeVe;Em=_.M(_.aO(a2));var LQ=Em.next().value,j6=Em.next().value,Ow=!1,QQ=!1,VQ;_.uN(function(){b(_.a1());
J.value.addEventListener("animationend",function(A8){A8.target===J.value&&(r(!1),Y(!1))});
qHe(J.value)});
_.RN("yt-window-resized",function(A8){A8&&b(A8)});
var vB=function(){VQ&&d(VQ.getVideoAspectRatio())},T4=function(){if(VQ){var A8=VQ.getPlayerState()===1;
LQ()&&A8&&j6(!1)}},Tz=function(){var A8=I_();
if(A8){var wR=_.Y3(3);wR&&_.AS(wR,A8)}},uC=function(){var A8=fU(),wR=wL();
A8&&_.AS(_.Y3(3),A8);a2()&&wR&&_.AS(_.Y3(3),wR)};
_.RN("yt-activate-miniplayer",function(A8){var wR;return _.N(function(Bu){if(Bu.nextAddress==1)return x()?Bu.return():_.K(Bu,(wR=_.BG().resolve(_.Uo).getPlayerElement())==null?void 0:wR.getPlayerPromise(),2);VQ=Bu.yieldResult;if(!VQ)return Bu.return();!A()&&_.w("kevlar_watch_while_v2")&&(Yt(A8&&!_.w("kevlar_watch_while_bottom_align")?"north":"south"),nG(_.Ub("HTML_DIR")==="rtl"?"west":"east"));var M0=VQ;M0.addEventListener("onVideoDataChange",vB);M0.addEventListener("onStateChange",T4);M0.addEventListener("onExpandMiniplayer",
Tz);M0.addEventListener("onCloseMiniplayer",uC);d(VQ.getVideoAspectRatio());P(!0);Zlf()||r(!0);_.tD(Bu)})});
_.RN("yt-deactivate-miniplayer",function(A8){return _.N(function(wR){if(!x())return wR.return();P(!1);j6(!1);Y(A8);H(!1);t(!1);if(VQ){var Bu=VQ;Bu.removeEventListener("onVideoDataChange",vB);Bu.removeEventListener("onStateChange",T4);Bu.removeEventListener("onExpandMiniplayer",Tz);Bu.removeEventListener("onCloseMiniplayer",uC)}Zlf()||r(!0);_.tD(wR)})});
var Kr=function(){return!(cu()&&_.w("kevlar_watch_while_modern"))},M2=function(){var A8;
return!((A8=Hu())==null||!A8.contents)},MR=function(){var A8=Z3();
var wR=m();wR=Math.min(Math.min(wR.width,wR.height)-32,720);var Bu=Z(),M0=Kr(),ii=M2()&&p(),GO=Math.min(A8,wR);A8=new _.tk(192,M0?116:192);Bu=InF(new _.tk(ii?Esu:Bu,1),new _.tk(GO,M0?GO-76:GO));A8.width<=Bu.width&&A8.height<=Bu.height||(trF(Bu,A8),Bu.width=Math.min(Bu.width,wR),Bu.height=Math.min(Bu.height,wR));return new _.tk(Bu.width,_.fZ(192,Bu.height+$aR(M0,ii),720))},w8=function(){var A8=MR(),wR=Kr(),Bu=M2()&&p();
return new _.tk(A8.width,A8.height-$aR(wR,Bu))},NL=function(){var A8=function(wR){wR.target===J.value&&k()&&(H(!1),J.value.removeEventListener("transitionend",A8))};
Zlf()||(J.value.addEventListener("transitionend",A8),H(!0));t(!p())};
_.ui(function(){var A8=t8(),wR=_.Y3(3),Bu=_.fl(3);if(wR&&Bu&&A8){_.$2(wR,Bu,A8);Bu=qu();var M0=O5(),ii=I_(),GO=fU(),IP=wL();ii&&GO&&IP&&(_.Gm(wR,A8,[ii,GO,IP]),_.vA(wR,[ii,GO]));Bu&&M0&&_.Gm(wR,A8,[Bu,M0])}},"yiTJkc");
_.ui(function(){var A8=Nf();if(A8){var wR=_.Y3(0),Bu=_.fl(0);wR&&Bu&&(_.$2(wR,Bu,A8),_.vA(wR,[A8]))}},"fy89qe");
Em={};return _.C("ytd-miniplayer",{el:J,class:_.pq("ytdMiniplayerComponentHost",(Em.ytdMiniplayerComponentVisible=function(){return x()||T()},Em.ytdMiniplayerComponentAnimatingSnap=I,Em.ytdMiniplayerComponentAnimatingPlaylistExpand=k,Em.ytdMiniplayerComponentAnimatingFade=T,Em),function(){if(T()){var A8=fG();
var wR=x(),Bu=W();A8=wR?A8==="south"?"ytdMiniplayerComponentAnimatingFadeInSouth":"ytdMiniplayerComponentAnimatingFadeInNorth":Bu?A8==="south"?"ytdMiniplayerComponentAnimatingFadeOutNorth":"ytdMiniplayerComponentAnimatingFadeOutSouth":A8==="south"?"ytdMiniplayerComponentAnimatingFadeOutSouth":"ytdMiniplayerComponentAnimatingFadeOutNorth"}else A8="";return A8}),
style:_.kx({top:function(){return fG()==="north"?"16px":""},
right:function(){return kt()==="east"?"16px":""},
bottom:function(){return fG()==="south"?"16px":""},
left:function(){return kt()==="west"?"16px":""},
width:function(){return MR().width+"px"},
height:function(){return MR().height+"px"},
transform:function(){var A8=y();return A8?"translate("+A8.x+"px, "+A8.y+"px)":""}})},_.C("div",{class:"ytdMiniplayerComponentContent"},_.C($Hr,{allowClicks:!0,
className:"ytdMiniplayerComponentDraggable",onDragStart:function(A8){var wR=dar(kt(),fG(),m(),MR(),y()),Bu=w8();Math.abs(A8.clientY-(wR.y+Bu.height))>15?(e(!0),A8=_.Y3(3),wR=qu(),Ow||(Ow=!0,A8&&wR&&_.vA(A8,[wR])),A8&&wR&&_.AS(A8,wR)):A8.preventDefault()},
onDrag:function(A8){pG(A8)},
onDragEnd:function(){var A8=Uas(dar(kt(),fG(),m(),MR(),y()),m(),MR()),wR=hmS(kt(),fG(),m(),MR()),Bu=hmS(A8.horizontalAlignment,A8.verticalAlignment,m(),MR());Bu=new _.zO(Bu.x-wR.x,Bu.y-wR.y);var M0;wR=wR.y+(((M0=y())==null?void 0:M0.y)||0)+MR().height/2;var ii=function(){kt()===A8.horizontalAlignment&&fG()===A8.verticalAlignment||l(!0);nG(A8.horizontalAlignment);Yt(A8.verticalAlignment);pG(void 0)},GO=function(IP){IP.target===J.value&&I()&&(a(!1),ii(),J.value.removeEventListener("transitionend",GO))};
e(!1);fG()==="south"&&wR>m().height?(ii(),_.BG().resolve(_.Uo).close()):(J.value.addEventListener("transitionend",GO),a(!0),pG(Bu))}},_.C(_.n,{cond:x,
then:function(){return _.C(_.EZR,{isDisabled:Nu,playabilityStatus:S6,size:w8})}}),_.C(_.n,{cond:Kr,
then:function(){return _.C(_.$us,{isReadyToResume:LQ,data:X$,expanded:p,onExpandClick:NL,playlistData:Hu})}}),_.C(_.n,{cond:c,
then:function(){return _.C("div",{class:"ytdMiniplayerComponentDraggableDragCover"})}})),_.C(_.n,{cond:function(){return M2()&&p()||k()},
then:function(){return _.C(_.MNu,{className:"ytdMiniplayerComponentPlaylistPanel",data:Hu,hideHeaderText:!0,withinMiniplayer:!0})}}),_.C("div",{class:"ytdMiniplayerComponentToast"},_.C(_.vZo,{toastData:G}))),_.C(GKr,{onResize:function(A8){oR(_.fZ(192,A8,720))},
onResizeStart:function(){var A8=_.Y3(3),wR=O5();QQ||(QQ=!0,A8&&wR&&_.vA(A8,[wR]));A8&&wR&&_.AS(A8,wR)},
currentAspectRatio:Z,currentMiniplayerSize:Z3,horizontalAlignment:kt,verticalAlignment:fG}))},"pg");_.w("ytd_miniplayer_to_wiz")&&_.lv(vsR,"ytd-miniplayer",{});_.lv(_.vZo,"ytd-miniplayer-toast",{props:{toastData:_.vt}});var O9R=16/9,AgF=new _.tk(400,400/O9R),eV=function(){var J=_.h.apply(this,arguments)||this;J.active=!1;J.hasNoData=!1;J.enabled=!1;J.expanded=!1;J.readyToResume=!1;J.isDisabled=!1;J.externalPlaylistData={};J.premiumBadges=[];J.watchWhile=!1;J.playerState=null;J.verticalAttachment="south";J.horizontalAttachment=_.Ub("HTML_DIR")==="rtl"?"west":"east";J.isAnimatingFade=!1;J.isAnimatingSnap=!1;J.isAnimatingExpand=!1;J.isDragging=!1;J.playerHidden=!1;J.hasPlaylistData=!1;J.closed=!1;J.expandedClosed=!1;
J.isForReadyToResume=!1;J.watchResponse=null;J.player=null;J.playerVe=null;J.expandVe=null;J.closeVe=null;J.readyToResumeCloseVe=null;J.disabledInitialStateIsPlaying=!1;J.PLAYER_EVENTS=new Map;J.aspectRatio=O9R;J.currentMiniplayerSize=400;J.userSetSize=!1;J.userSetPosition=!1;J.userHasDragged=!1;J.maxMiniplayerSize=720;J.transform=new _.zO(0,0);J.windowDimensions=new _.tk(NaN,NaN);J.dimensions=AgF;J.screenLayer=3;J.actionMap={"yt-activate-miniplayer-action":"activate","yt-deactivate-miniplayer-action":"deactivate",
"yt-window-resized":"onWindowResized"};return J};
_.D(eV,_.h);_.V=eV.prototype;_.V.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()};
_.V.ready=function(){this.setUpDragging();this.setUpResizing()};
_.V.attached=function(){this.onWindowResized(_.a1());this.hostElement.addEventListener("animationend",_.ME(this,this.resetFadingAnimation))};
_.V.detached=function(){this.hostElement.removeEventListener("animationend",_.ME(this,this.resetFadingAnimation))};
_.V.resetFadingAnimation=function(J){J.target===this.hostElement&&(this.isAnimatingFade=!1)};
_.V.hasPlaylistDataChanged=function(){!this.hasPlaylistData&&this.expanded&&(this.expanded=!1);this.updateDimensionsAndResize()};
_.V.onPlayerVeChange=function(){this.playerVe&&this.logMiniplayer()};
_.V.premiumBrandingChanged=function(){if(this.premiumBranding){this.readyToResume=this.isForReadyToResume=!0;var J=_.Y3(this.screenLayer);this.readyToResumeCloseVe&&J&&_.vA(J,[this.readyToResumeCloseVe]);this.set("premiumBadges",[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}])}};
_.V.readyToResumeVeChanged=function(){if(this.readyToResumeVe){var J=_.Y3(0),c=_.fl(0);J&&c&&(_.$2(J,c,this.readyToResumeVe),_.vA(J,[this.readyToResumeVe]))}};
_.V.onIsDisabledChanged=function(){if(this.isDisabled&&this.player){var J=this.player.getPlayerState();(this.disabledInitialStateIsPlaying=J===-1||J===1||J===3)&&this.player.pauseVideo()}};
_.V.activate=function(J,c){c=c===void 0?!1:c;var m=this,b;return _.N(function(x){if(x.nextAddress==1)return m.setInitialActivatePositioning(c),m.enabled=!0,m.active=!0,m.expanded=!1,m.closed=!1,m.expandedClosed=!1,m.watchWhileHidden||(m.isAnimatingFade=!0),_.BG().resolve(_.zn).setPlaylistComponent(m.JSC$17784_playlistPanel),J.appendTo(m.playerContainer),_.K(x,J.getPlayerPromise(),2);b=x.yieldResult;b.setSizeStyle(!1,!0);m.ytPlayerListenerBehavior.listenToPlayerEvents(b,m.PLAYER_EVENTS);m.player=b;
m.watchWhile&&_.w("kevlar_watch_while_minimum_size")&&m.setMiniplayerSize(192);m.setAspectRatio(m.player.getVideoAspectRatio());m.onIsDisabledChanged();_.tD(x)})};
_.V.setInitialActivatePositioning=function(J){if(!this.userSetPosition&&_.w("kevlar_watch_while_v2")){this.verticalAttachment=J&&!_.w("kevlar_watch_while_bottom_align")?"north":"south";this.horizontalAttachment=_.Ub("HTML_DIR")==="rtl"?"west":"east";var c;(c=this.JSC$17784_resizers)==null||c.update(this.horizontalAttachment,this.verticalAttachment)}};
_.V.deactivate=function(J,c){var m=this;return _.N(function(b){if(!m.active)return b.return();J||(m.expanded?m.expandedClosed=!0:m.closed=!0);m.active=!1;m.isForReadyToResume=!1;c&&_.w("kevlar_watch_while_counterfactual")||(m.isAnimatingFade=!0);m.player&&m.ytPlayerListenerBehavior.unlistenFromPlayerEvents(m.player,m.PLAYER_EVENTS);m.player=null;_.tD(b)})};
_.V.onMetadataTap=function(J){this.expandVe&&(J===void 0||J)&&(J=_.Y3(this.screenLayer))&&_.AS(J,this.expandVe);_.kX(_.BG().resolve(_.Uo))};
_.V.onDisabledTap=function(J){J.target===_.Bj(this.hostElement).querySelector("#blocking-container")&&(this.disabledInitialStateIsPlaying&&this.player.playVideo(),this.onMetadataTap())};
_.V.onPlaylistExpandTap=function(J){if(this.hasPlaylistData){J=_.OT(J)||[];J=_.M(J);for(var c=J.next();!c.done;c=J.next()){c=c.value;if(c===this.hostElement)break;if(c.classList&&c.classList.contains("miniplayer-title"))return}this.playlistExpand()}};
_.V.playlistExpand=function(){this.hostElement.addEventListener("transitionend",_.ME(this,this.animatedResizePlaylist));this.isAnimatingExpand=!0;this.ytRendererBehavior.markDirty();this.expanded=!this.expanded;this.updateDimensionsAndResize()};
_.V.animatedResizePlaylist=function(J){J.target===this.hostElement&&(this.isAnimatingExpand=!1,this.hostElement.removeEventListener("transitionend",_.ME(this,this.animatedResizePlaylist)))};
_.V.getExpandIcon=function(J){return J?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"};
_.V.onPlayerVideoDataChange=function(){var J,c=(J=this.player)==null?void 0:J.getVideoAspectRatio();c&&c!==this.aspectRatio&&this.setAspectRatio(c)};
_.V.setAspectRatio=function(J){if(this.active){this.aspectRatio=J;this.updateDimensionsAndResize();var c;(c=this.JSC$17784_resizers)==null||c.setAspectRatio(J)}};
_.V.updateDimensionsAndResize=function(){var J=Math.min(this.currentMiniplayerSize,this.maxMiniplayerSize),c=this.expanded?O9R:this.aspectRatio,m=new _.tk(192,this.showInfoBar?116:192);J=InF(new _.tk(c,1),new _.tk(J,this.showInfoBar?J-76:J));m.width<=J.width&&m.height<=J.height||(trF(J,m),J.width=Math.min(J.width,this.maxMiniplayerSize),J.height=Math.min(J.height,this.maxMiniplayerSize),this.setMiniplayerSize(this.showInfoBar&&c<=1?Math.max(J.width,J.height)+76:Math.max(J.width,J.height)));this.dimensions=
new _.tk(J.width,this.clamp(J.height+this.getNonPlayerHeight()));this.resize()};
_.V.resize=function(){this.hostElement.style.width=this.dimensions.width+"px";this.hostElement.style.height=this.dimensions.height+"px";var J=this.getPlayerSize(this.dimensions);this.playerContainer.style.height=J.height+"px";var c;(c=this.player)==null||c.setInternalSize(J.width,J.height)};
_.V.getPlayerSize=function(J){var c=Math.max(0,J.height-this.getNonPlayerHeight());return new _.tk(J.width,c)};
_.V.getNonPlayerHeight=function(){var J=0;this.showInfoBar&&(J+=76);this.expanded&&(J+=285);return J};
_.V.onDisabledCloseMiniplayer=function(){this.logClosingClick();_.BG().resolve(_.Uo).close()};
_.V.onPlayerCloseMiniplayer=function(){this.logClosingClick()};
_.V.logClosingClick=function(){this.closeVe&&_.AS(_.Y3(this.screenLayer),this.closeVe);this.isForReadyToResume&&this.readyToResumeCloseVe&&_.AS(_.Y3(this.screenLayer),this.readyToResumeCloseVe)};
_.V.onPlayerExpandMiniplayer=function(){if(this.expandVe){var J=_.Y3(this.screenLayer);J&&_.AS(J,this.expandVe)}};
_.V.onPlayerStateChange=function(){if(this.player){this.playerState=this.player.getPlayerState();var J=this.playerState===1;this.continueWatching&&J&&(this.continueWatching=!1);this.premiumBadges.length&&J&&(this.set("premiumBadges",[]),this.readyToResume=this.premiumBranding=!1,this.updateDimensionsAndResize())}};
_.V.getScreenLayer=function(){return this.screenLayer};
_.V.logMiniplayer=function(){var J=_.Y3(this.screenLayer),c=_.fl(this.screenLayer);J&&c&&this.playerVe&&(_.$2(J,c,this.playerVe),this.expandVe&&this.closeVe&&this.readyToResumeCloseVe&&(_.Gm(J,this.playerVe,[this.expandVe,this.closeVe,this.readyToResumeCloseVe]),_.vA(J,[this.expandVe,this.closeVe])),this.repositionVe&&this.resizeVe&&_.Gm(J,this.playerVe,[this.repositionVe,this.resizeVe]))};
_.V.computePlaylistData=function(J,c){return c};
_.V.computeHasPlaylistData=function(){return!!this.playlistData&&!!this.playlistData.contents};
_.V.computeExpandButtonHidden=function(J,c,m){return!J||!c||m};
_.V.computePlaylistIndexHidden=function(J,c){return!J||c};
_.V.computePlaylistPanelHidden=function(J,c){return!c&&!J};
_.V.computeExpandButtonLabel=function(J){return J?_.CX("MINIPLAYER_COLLAPSE_LABEL"):_.CX("MINIPLAYER_EXPAND_LABEL")};
_.V.computeDisabledStateCloseButtonLabel=function(){return _.CX("MINIPLAYER_CLOSE",void 0,"Close")};
_.V.onWindowResized=function(J){J&&(J=this.windowDimensions=J,this.maxMiniplayerSize=Math.min(Math.min(J.width,J.height)-32,720),this.updateDimensionsAndResize())};
_.V.setUpResizing=function(){var J=this;this.JSC$17784_resizers||(this.JSC$17784_resizers=new Q$(this.JSC$17784_resizeContainer,{onStartResize:function(){J.handleResizeStart()},
onResize:function(c){J.handleResize(c)}}),this.JSC$17784_resizers.setSize(this.currentMiniplayerSize),this.JSC$17784_resizers.update(this.horizontalAttachment,this.verticalAttachment))};
_.V.handleResizeStart=function(){var J=_.Y3(this.screenLayer);this.userSetSize||(this.userSetSize=!0,J&&this.resizeVe&&_.vA(J,[this.resizeVe]));J&&this.resizeVe&&_.AS(J,this.resizeVe)};
_.V.handleResize=function(J){this.setMiniplayerSize(J);this.updateDimensionsAndResize()};
_.V.setUpDragging=function(){var J=this;this.JSC$17784_dragger||(this.JSC$17784_dragger=new oB(this.draggableContainer,{onStartDrag:function(c){!J.isSafeToDrag(c)||J.isAnimatingSnap?c.preventDefault():J.handleDragStart()},
onDrag:function(c){J.transform=c;J.setTransform(J.transform)},
onEndDrag:function(){J.handleDragEnd()}},!0))};
_.V.handleDragStart=function(){this.isDragging=!0;var J=_.Y3(this.screenLayer);this.userHasDragged||(this.userHasDragged=!0,J&&this.repositionVe&&_.vA(J,[this.repositionVe]));J&&this.repositionVe&&_.AS(J,this.repositionVe)};
_.V.handleDragEnd=function(){this.isDragging=!1;var J=this.getCurrentGlobalPosition().y+this.dimensions.height/2;this.verticalAttachment==="south"&&J>this.windowDimensions.height&&_.BG().resolve(_.Uo).close();this.animateSnapToCorner()};
_.V.animateSnapToCorner=function(){var J=this.getGlobalPositionFromAttachments(this.horizontalAttachment,this.verticalAttachment),c=this.getNearestAttachments();c=this.getGlobalPositionFromAttachments(c.horizontalAttachment,c.verticalAttachment);J=new _.zO(c.x-J.x,c.y-J.y);this.isAnimatingSnap=!0;this.setTransform(J);this.hostElement.addEventListener("transitionend",_.ME(this,this.endSnapAnimation))};
_.V.endSnapAnimation=function(J){J.target===this.hostElement&&this.isAnimatingSnap&&(this.hostElement.removeEventListener("transitionend",_.ME(this,this.endSnapAnimation)),this.endDrag())};
_.V.endDrag=function(){this.isAnimatingSnap=!1;this.updateAttachments();this.setTransform(null)};
_.V.setTransform=function(J){this.hostElement.style.transform=J?"translate("+J.x+"px, "+J.y+"px)":""};
_.V.getGlobalPositionFromAttachments=function(J,c){return new _.zO(J==="west"?16:this.windowDimensions.width-this.dimensions.width-16,c==="north"?16:this.windowDimensions.height-this.dimensions.height-16)};
_.V.updateAttachments=function(){var J=this.getNearestAttachments();if(this.horizontalAttachment!==J.horizontalAttachment||this.verticalAttachment!==J.verticalAttachment)this.userSetPosition=!0;this.horizontalAttachment=J.horizontalAttachment;this.verticalAttachment=J.verticalAttachment;var c;(c=this.JSC$17784_resizers)==null||c.update(this.horizontalAttachment,this.verticalAttachment)};
_.V.getNearestAttachments=function(){var J=this.getCurrentGlobalPosition();return{horizontalAttachment:J.x+this.dimensions.width/2<this.windowDimensions.width/2?"west":"east",verticalAttachment:J.y+this.dimensions.height/2<this.windowDimensions.height/2?"north":"south"}};
_.V.getCurrentGlobalPosition=function(){var J=this.getGlobalPositionFromAttachments(this.horizontalAttachment,this.verticalAttachment);return SHR(J,this.transform)};
_.V.isSafeToDrag=function(J){var c=this.playerContainer.getBoundingClientRect();return Math.abs(J.clientY-(c.y+c.height))>15};
_.V.setMiniplayerSize=function(J){this.currentMiniplayerSize=this.clamp(J);var c;(c=this.JSC$17784_resizers)==null||c.setSize(this.currentMiniplayerSize)};
_.V.clamp=function(J){return _.fZ(192,J,720)};
_.V.registerViewTransitionTasks=function(){var J=this,c=_.BG().resolve(_.y6(_.a0));if(c){var m={beforeTransition:function(){J.hostElement&&(J.hostElement.style.viewTransitionName="miniplayer-page-transition")},
afterTransition:function(){J.hostElement&&(J.hostElement.style.viewTransitionName="")}};
eW(c,"slide",m);eW(c,"zoom",m)}};
_.eE.Object.defineProperties(eV.prototype,{showInfoBar:{configurable:!0,enumerable:!0,get:function(){return this.watchWhile?!_.w("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:_.CX("CONTINUE_WATCHING",void 0,"Continue watching")};var J;if((J=this.externalPlaylistData)==null?0:J.contents)return this.externalPlaylistData.titleText;var c;return(c=this.data)==null?void 0:c.miniplayerSubtitle}},
miniplayerTitle:{configurable:!0,enumerable:!0,get:function(){var J;if((J=this.externalPlaylistData)==null?0:J.contents){var c;return(c=_.BV2(this.externalPlaylistData))==null?void 0:c.title}var m;return(m=this.data)==null?void 0:m.miniplayerTitle}},
playlistIndexMessage:{configurable:!0,enumerable:!0,get:function(){var J,c,m,b;return((J=this.externalPlaylistData)==null?void 0:J.currentIndex)!==void 0&&((c=this.externalPlaylistData)==null?0:c.totalVideos)&&!((m=this.data)==null?0:(b=m.playlistData)==null?0:b.isCourse)?this.externalPlaylistData.currentIndex+1+" / "+this.externalPlaylistData.totalVideos:null}},
showErrorScreen:{configurable:!0,enumerable:!0,get:function(){return!!this.playabilityStatus&&!_.R9G(this.playabilityStatus)}},
watchWhileHidden:{configurable:!0,enumerable:!0,get:function(){return this.watchWhile&&_.w("kevlar_watch_while_counterfactual")}}});
eV.prototype.onIsDisabledChanged=eV.prototype.onIsDisabledChanged;eV.prototype.readyToResumeVeChanged=eV.prototype.readyToResumeVeChanged;eV.prototype.premiumBrandingChanged=eV.prototype.premiumBrandingChanged;eV.prototype.onPlayerVeChange=eV.prototype.onPlayerVeChange;eV.prototype.hasPlaylistDataChanged=eV.prototype.hasPlaylistDataChanged;_.O([_.f(_.Ex.YtPlayerListenerBehavior),_.R("design:type",_.vX)],eV.prototype,"ytPlayerListenerBehavior",void 0);
_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],eV.prototype,"ytActionHandlerBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],eV.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],eV.prototype,"ytComponentBehavior",void 0);_.O([_.f(_.fY),_.R("design:type",Object)],eV.prototype,"ytdReduxBehavior",void 0);_.O([_.Iu("#draggable"),_.R("design:type",HTMLDivElement)],eV.prototype,"draggableContainer",void 0);
_.O([_.Iu("#resize-container"),_.R("design:type",HTMLDivElement)],eV.prototype,"JSC$17784_resizeContainer",void 0);_.O([_.Iu("#video-container"),_.R("design:type",HTMLDivElement)],eV.prototype,"videoContainer",void 0);_.O([_.Iu("#player-container"),_.R("design:type",HTMLDivElement)],eV.prototype,"playerContainer",void 0);_.O([_.Iu("#playlist"),_.R("design:type",HTMLDivElement)],eV.prototype,"JSC$17784_playlistPanel",void 0);_.O([_.U(),_.R("design:type",Object)],eV.prototype,"data",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],eV.prototype,"active",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],eV.prototype,"hasNoData",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],eV.prototype,"enabled",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],eV.prototype,"expanded",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],eV.prototype,"readyToResume",void 0);
_.O([_.U(),_.R("design:type",Object)],eV.prototype,"isDisabled",void 0);_.O([_.U(),_.R("design:type",Object)],eV.prototype,"externalPlaylistData",void 0);_.O([_.U(),_.R("design:type",Array)],eV.prototype,"premiumBadges",void 0);_.O([_.U(),_.R("design:type",Object)],eV.prototype,"toastData",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],eV.prototype,"watchWhile",void 0);_.O([_.U(),_.R("design:type",Boolean)],eV.prototype,"premiumBranding",void 0);
_.O([_.U(),_.R("design:type",Object)],eV.prototype,"playerState",void 0);_.O([_.U(),_.R("design:type",Boolean)],eV.prototype,"continueWatching",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",String)],eV.prototype,"verticalAttachment",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",String)],eV.prototype,"horizontalAttachment",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],eV.prototype,"isAnimatingFade",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],eV.prototype,"isAnimatingSnap",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],eV.prototype,"isAnimatingExpand",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],eV.prototype,"isDragging",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],eV.prototype,"playerHidden",void 0);
_.O([_.U({computed:"computePlaylistData(data.playlistData, externalPlaylistData)"}),_.R("design:type",Object)],eV.prototype,"playlistData",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeHasPlaylistData(playlistData)"}),_.R("design:type",Object)],eV.prototype,"hasPlaylistData",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],eV.prototype,"closed",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],eV.prototype,"expandedClosed",void 0);
_.O([_.U({selector:_.IAe}),_.R("design:type",Boolean)],eV.prototype,"isSingleOptionSurveyActive",void 0);_.O([_.U({reflectToAttribute:!0,selector:_.uW}),_.R("design:type",Boolean)],eV.prototype,"isWatchPage",void 0);_.O([_.U({reflectToAttribute:!0}),_.q("watchWhile"),_.R("design:type",Object),_.R("design:paramtypes",[])],eV.prototype,"showInfoBar",null);_.O([_.q("premiumBadges","showInfoBar"),_.R("design:type",Object),_.R("design:paramtypes",[])],eV.prototype,"showOverlayPremiumBadges",null);
_.O([_.U(),_.R("design:type",Object)],eV.prototype,"watchResponse",void 0);_.O([_.U(),_.R("design:type",Object)],eV.prototype,"miniplayerRenderer",void 0);_.O([_.U(),_.R("design:type",Object)],eV.prototype,"playabilityStatus",void 0);_.O([_.U(),_.R("design:type",Object)],eV.prototype,"playerVe",void 0);_.O([_.U(),_.R("design:type",Object)],eV.prototype,"expandVe",void 0);_.O([_.U(),_.R("design:type",Object)],eV.prototype,"closeVe",void 0);
_.O([_.U(),_.R("design:type",Object)],eV.prototype,"readyToResumeCloseVe",void 0);_.O([_.U(),_.R("design:type",_.uk)],eV.prototype,"readyToResumeVe",void 0);_.O([_.U(),_.R("design:type",_.uk)],eV.prototype,"resizeVe",void 0);_.O([_.U(),_.R("design:type",_.uk)],eV.prototype,"repositionVe",void 0);_.O([_.NE("hasPlaylistData"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],eV.prototype,"hasPlaylistDataChanged",null);
_.O([_.NE("playerVe"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],eV.prototype,"onPlayerVeChange",null);_.O([_.NE("premiumBranding"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],eV.prototype,"premiumBrandingChanged",null);_.O([_.NE("readyToResumeVe"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],eV.prototype,"readyToResumeVeChanged",null);
_.O([_.NE("isDisabled"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],eV.prototype,"onIsDisabledChanged",null);_.O([_.q("continueWatching","data.miniplayerSubtitle","externalPlaylistData"),_.R("design:type",Object),_.R("design:paramtypes",[])],eV.prototype,"miniplayerSubtitle",null);_.O([_.q("data.miniplayerTitle","externalPlaylistData"),_.R("design:type",Object),_.R("design:paramtypes",[])],eV.prototype,"miniplayerTitle",null);
_.O([_.q("externalPlaylistData","continueWatching"),_.R("design:type",Object),_.R("design:paramtypes",[])],eV.prototype,"playlistIndexMessage",null);_.O([_.U({reflectToAttribute:!0}),_.q("playabilityStatus"),_.R("design:type",Object),_.R("design:paramtypes",[])],eV.prototype,"showErrorScreen",null);_.O([_.U({reflectToAttribute:!0}),_.q("watchWhile"),_.R("design:type",Object),_.R("design:paramtypes",[])],eV.prototype,"watchWhileHidden",null);
_.w("ytd_miniplayer_to_wiz")||_.v(eV,"ytd-miniplayer",function(){if(dHR===void 0){var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(hlf().content.cloneNode(!0),J.content.firstChild);J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);dHR=J}J=dHR;return J},{mode:2});var Rlf;var jV=function(){var J=_.h.apply(this,arguments)||this;J.useListItemStyles=_.w("web_list_item_style_for_menu_items");J.systemIcons=_.w("kevlar_system_icons");return J};
_.D(jV,_.h);_.V=jV.prototype;_.V.ready=function(){this.hostElement.addEventListener("tap",_.ME(this,this.onEndpointTapExtra))};
_.V.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.V.onFocus=function(){var J;(J=_.Bj(this.hostElement).querySelector("tp-yt-paper-item"))==null||J.focus()};
_.V.onEndpointTapExtra=function(J){_.cA(this.hostElement,"iron-activate");var c=this.data.navigationEndpoint;c&&_.L(c,_.Ugt)&&(J.stopPropagation(),_.PA(this.hostElement,[c],this.hostElement))};
_.V.computeIcon=function(J){return J&&J.iconType?_.Pd(J.iconType):""};
_.V.computeHasSeparator=function(){return!(!this.data||!this.data.hasSeparator)};
_.V.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.V.forceUpdateStylesOnLegacyBrowsers=function(){_.w("kevlar_legacy_browsers")&&_.V1(this.hostElement)};
jV.prototype.forceUpdateStylesOnLegacyBrowsers=jV.prototype.forceUpdateStylesOnLegacyBrowsers;jV.prototype.onFocus=jV.prototype.onFocus;_.O([_.f(_.vL),_.R("design:type",Object)],jV.prototype,"ytdOpenPopupBehavior",void 0);_.O([_.f(_.tNQ.YtConditionalRendererBehavior),_.R("design:type",Object)],jV.prototype,"ytConditionalRendererBehavior",void 0);_.O([_.f(_.ts.YtEndpointBehavior),_.R("design:type",Object)],jV.prototype,"ytEndpointBehavior",void 0);
_.O([_.U(),_.R("design:type",Object)],jV.prototype,"data",void 0);_.O([_.U({computed:"computeIcon(data.icon)",value:""}),_.R("design:type",String)],jV.prototype,"icon",void 0);_.O([_.U({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],jV.prototype,"useIcons",void 0);_.O([_.U({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.R("design:type",Boolean)],jV.prototype,"hasSeparator",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],jV.prototype,"useListItemStyles",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],jV.prototype,"systemIcons",void 0);_.O([_.ps("focus"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],jV.prototype,"onFocus",null);_.O([_.NE("useIcons","hasSeparator"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],jV.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.v(jV,"ytd-menu-navigation-item-renderer",function(){if(Rlf===void 0){var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);Rlf=J}J=Rlf;return J},{mode:1});var osf;var QTs=_.v2(_.CX("DOWNLOAD",{},"Download")),elR=_.v2(_.CX("DELETE_FROM_DOWNLOADS",{},"Delete from downloads")),jTS=_.v2(_.CX("RETRY",{},"Retry")),F7R=_.v2(_.CX("PAUSE_DOWNLOADING",{},"Pause downloading")),lOo=_.v2(_.CX("RESUME_DOWNLOAD",{},"Resume download")),FO=function(){var J=_.h.apply(this,arguments)||this;J.primaryText=QTs;J.primaryIconType="OFFLINE_DOWNLOAD";J.hasSecondaryContent=!1;J.hasSeparator=!1;J.transferState="TRANSFER_STATE_UNKNOWN";J.isVideoDeletedByUser=!1;J.isHidden=!1;J.offlineabilityState=
"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED";return J};
_.D(FO,_.h);_.V=FO.prototype;_.V.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.V.onFocus=function(){this.primaryEntry.focus()};
_.V.onPrimaryClicked=function(){this.sendOfflineAction(this.primaryAction)};
_.V.onSecondaryClicked=function(){this.sendOfflineAction(this.secondaryAction)};
_.V.getRemoveAction=function(){return"ACTION_REMOVE"};
_.V.sendOfflineAction=function(J){var c=this.data.serviceEndpoint;if(c){var m=_.L(c,_.Mx);m&&J&&(m.action=J);this.ytComponentBehavior.resolveCommand(c)}};
_.V.onTransferStateChange=function(){this.hasSecondaryContent=!1;this.secondaryAction=this.primaryAction=void 0;if(this.isVideoDeletedByUser)this.primaryText=QTs,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD";else switch(this.transferState){case "TRANSFER_STATE_UNKNOWN":this.primaryText=QTs;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":this.primaryText=jTS;
this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RETRY";this.secondaryText=elR;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_PAUSED_BY_USER":this.primaryText=lOo;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RESUME";this.secondaryText=elR;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_TRANSFERRING":this.primaryText=
F7R;this.primaryIconType="OFFLINE_PAUSE";this.primaryAction="ACTION_PAUSE";this.secondaryText=elR;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_COMPLETE":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":this.primaryText=elR;this.primaryIconType="DELETE";this.primaryAction=this.getRemoveAction();break;default:this.primaryText=QTs,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD"}};
_.V.showHideButton=function(){this.isHidden=this.offlineabilityState!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
_.V.isSecondaryEntryHidden=function(J,c){return J?!0:!c};
_.V.computeHasSeparator=function(){var J;return!((J=this.data)==null||!J.hasSeparator)};
FO.prototype.showHideButton=FO.prototype.showHideButton;FO.prototype.onTransferStateChange=FO.prototype.onTransferStateChange;FO.prototype.onFocus=FO.prototype.onFocus;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],FO.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.fY),_.R("design:type",Object)],FO.prototype,"ytdReduxBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],FO.prototype,"ytComponentBehavior",void 0);
_.O([_.U(),_.R("design:type",Object)],FO.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],FO.prototype,"primaryText",void 0);_.O([_.U(),_.R("design:type",String)],FO.prototype,"primaryIconType",void 0);_.O([_.U(),_.R("design:type",String)],FO.prototype,"primaryAction",void 0);_.O([_.U(),_.R("design:type",Object)],FO.prototype,"secondaryText",void 0);_.O([_.U(),_.R("design:type",String)],FO.prototype,"secondaryIconType",void 0);
_.O([_.U(),_.R("design:type",String)],FO.prototype,"secondaryAction",void 0);_.O([_.U(),_.R("design:type",Object)],FO.prototype,"hasSecondaryContent",void 0);_.O([_.U({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.R("design:type",Object)],FO.prototype,"hasSeparator",void 0);_.O([_.U({selector:_.YY,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.R("design:type",String)],FO.prototype,"transferState",void 0);
_.O([_.U({selector:_.ZO3,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.R("design:type",Object)],FO.prototype,"isVideoDeletedByUser",void 0);_.O([_.U(),_.R("design:type",Object)],FO.prototype,"isHidden",void 0);_.O([_.U({selector:_.WMr,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.R("design:type",Object)],FO.prototype,"offlineabilityState",void 0);_.O([_.Iu("#primary-entry"),_.R("design:type",Object)],FO.prototype,"primaryEntry",void 0);
_.O([_.ps("focus"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],FO.prototype,"onFocus",null);_.O([_.kr("transferState","isVideoDeletedByUser"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],FO.prototype,"onTransferStateChange",null);_.O([_.kr("offlineabilityState"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],FO.prototype,"showHideButton",null);
_.v(FO,"ytd-menu-service-item-download-renderer",function(){if(osf===void 0){var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);osf=J}J=osf;return J},{mode:1});var yg5;var lt=function(){var J=_.h.apply(this,arguments)||this;J.useIcons=!1;J.systemIcons=_.w("kevlar_system_icons");J.useListItemStyles=_.w("web_list_item_style_for_menu_items");return J};
_.D(lt,_.h);_.V=lt.prototype;_.V.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.V.onFocus=function(){var J;(J=_.Bj(this.hostElement).querySelector("tp-yt-paper-item"))==null||J.focus()};
_.V.onTap=function(){_.bJ(this.hostElement,"yt-menu-service-item-selected-action",[this.data]);var J=this.data.serviceEndpoint,c=this.data.command;if(J){var m,b=(m=this.data)==null?void 0:m.trackingParams;m=!!_.L(J,_.Xsu);b&&m&&_.Rc().dispatch(_.J7({type:"SET_PARENT_CLICK_TRACKING_PARAMS",payload:{parentClickTrackingParams:b}}));this.ytComponentBehavior.resolveCommand(J)||_.BG().resolve(_.gu).resolveCommand(J,{form:{element:this.hostElement}})}c&&(this.ytComponentBehavior.resolveCommand(c)||_.PA(this.hostElement,
[c],this.hostElement))};
_.V.computeIcon=function(J){return J&&J.iconType?_.Pd(J.iconType):""};
_.V.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.V.computeHasSeparator=function(){var J;return!((J=this.data)==null||!J.hasSeparator)};
_.V.forceUpdateStylesOnLegacyBrowsers=function(){_.w("kevlar_legacy_browsers")&&_.V1(this.hostElement)};
_.V.computeIsSelected=function(){var J;return!((J=this.data)==null||!J.isSelected)};
lt.prototype.forceUpdateStylesOnLegacyBrowsers=lt.prototype.forceUpdateStylesOnLegacyBrowsers;lt.prototype.onTap=lt.prototype.onTap;lt.prototype.onFocus=lt.prototype.onFocus;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],lt.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.vL),_.R("design:type",Object)],lt.prototype,"ytdOpenPopupBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],lt.prototype,"ytComponentBehavior",void 0);
_.O([_.f(_.tNQ.YtConditionalRendererBehavior),_.R("design:type",Object)],lt.prototype,"ytConditionalRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],lt.prototype,"data",void 0);_.O([_.U({computed:"computeIcon(data.icon)",value:""}),_.R("design:type",String)],lt.prototype,"icon",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],lt.prototype,"useIcons",void 0);
_.O([_.U({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.R("design:type",Boolean)],lt.prototype,"hasSeparator",void 0);_.O([_.U({computed:"computeIsSelected(data.isSelected)",reflectToAttribute:!0}),_.R("design:type",Boolean)],lt.prototype,"isSelected",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],lt.prototype,"systemIcons",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],lt.prototype,"useListItemStyles",void 0);
_.O([_.ps("focus"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],lt.prototype,"onFocus",null);_.O([_.ps("tap"),_.R("design:type",Function),_.R("design:paramtypes",[Event]),_.R("design:returntype")],lt.prototype,"onTap",null);_.O([_.NE("useIcons","hasSeparator"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],lt.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.v(lt,"ytd-menu-service-item-renderer",function(){if(yg5===void 0){var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);yg5=J}J=yg5;return J},{mode:2});var BFr;var y$=function(){return _.h.apply(this,arguments)||this};
_.D(y$,_.h);_.V=y$.prototype;_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.V.onDataChanged=function(){var J=this;_.o3(this,function(){J.postbox.openDialog();J.focus();_.cA(J.hostElement,"yt-refit")})};
_.V.focus=function(){this.postbox.focus()};
_.V.closePopup=function(){_.m9(this.hostElement,"yt-close-popup-action")};
_.V.onYtCommentboxDismiss=function(){this.closePopup()};
y$.prototype.onYtCommentboxDismiss=y$.prototype.onYtCommentboxDismiss;y$.prototype.onDataChanged=y$.prototype.onDataChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],y$.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],y$.prototype,"data",void 0);_.O([_.U({value:function(){return _.CX("SBOX_INAPPROPRIATE_CANCEL")}}),
_.R("design:type",String)],y$.prototype,"closeButtonAriaLabel",void 0);_.O([_.Iu("#postbox"),_.R("design:type",Object)],y$.prototype,"postbox",void 0);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],y$.prototype,"onDataChanged",null);_.O([_.ps("yt-commentbox-dismiss"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],y$.prototype,"onYtCommentboxDismiss",null);
y$=_.O([_.E({disableElementRegistration:!0,is:"ytd-backstage-post-dialog-popup-renderer"})],y$);
_.v(y$,"ytd-backstage-post-dialog-popup-renderer",function(){if(BFr!==void 0)return BFr;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return BFr=J},{mode:1});var gsS;var Bq=function(){return _.h.apply(this,arguments)||this};
_.D(Bq,_.h);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Bq.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Bq.prototype,"data",void 0);Bq=_.O([_.E({disableElementRegistration:!0,is:"ytd-sender-id-section-renderer"})],Bq);
_.v(Bq,"ytd-sender-id-section-renderer",function(){if(gsS!==void 0)return gsS;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);
return gsS=J},{mode:1});var JsR;var csR;var m7F;var gt=function(){return _.h.apply(this,arguments)||this};
_.D(gt,_.h);gt.prototype.closePopup=function(){_.m9(this.hostElement,"yt-close-popup-action")};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],gt.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],gt.prototype,"data",void 0);gt=_.O([_.uM({is:"yt-community-post-section-renderer",disableElementRegistration:!0})],gt);
_.v(gt,"yt-community-post-section-renderer",function(){if(m7F===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;csR===void 0&&(csR=document.createElement("template"));var b=csR;m.call(c,b.content.cloneNode(!0),J.content.firstChild);m7F=J}J=m7F;return J},{mode:2});var bos;var x7r;var VJR;var PHR;var MJR;var pLR;var Jw=function(){return _.h.apply(this,arguments)||this};
_.D(Jw,_.h);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Jw.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Jw.prototype,"data",void 0);Jw=_.O([_.uM({is:"yt-share-start-time-with-context-renderer",disableElementRegistration:!0})],Jw);
_.v(Jw,"yt-share-start-time-with-context-renderer",function(){if(pLR===void 0){var J=document.createElement("template");_.z(J,'\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>');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;MJR===void 0&&(MJR=document.createElement("template"));var b=MJR;m.call(c,b.content.cloneNode(!0),J.content.firstChild);pLR=J}J=pLR;return J},{mode:2});var cv=function(){return _.h.apply(this,arguments)||this};
_.D(cv,_.h);cv.prototype.configureRendererStamper=function(){return{"data.subtitle":{id:"subtitle",mapping:{shareStartTimeWithContextRenderer:"yt-share-start-time-with-context-renderer"}}}};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],cv.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],cv.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],cv.prototype,"data",void 0);cv=_.O([_.uM({is:"yt-share-panel-title-v15-renderer",disableElementRegistration:!0})],cv);
_.v(cv,"yt-share-panel-title-v15-renderer",function(){if(PHR===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;VJR===void 0&&(VJR=document.createElement("template"));var b=VJR;m.call(c,b.content.cloneNode(!0),J.content.firstChild);PHR=J}J=PHR;return J},{mode:2});var mh=function(){return _.h.apply(this,arguments)||this};
_.D(mh,_.h);mh.prototype.configureRendererStamper=function(){return{"data.title":{id:"title",mapping:{sharePanelTitleV15Renderer:"yt-share-panel-title-v15-renderer"}},"data.communityPost":{id:"community-post",mapping:{communityPostSectionRenderer:"yt-community-post-section-renderer"}}}};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],mh.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],mh.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],mh.prototype,"data",void 0);mh=_.O([_.uM({is:"yt-share-panel-header-renderer",disableElementRegistration:!0})],mh);
_.v(mh,"yt-share-panel-header-renderer",function(){if(x7r===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;bos===void 0&&(bos=document.createElement("template"));var b=bos;m.call(c,b.content.cloneNode(!0),J.content.firstChild);x7r=J}J=x7r;return J},{mode:2});var NdS;var tJS;var bS=function(){var J=_.h.apply(this,arguments)||this;J.actionMap={"yt-open-popup-action":"onOpen"};return J};
_.D(bS,_.h);_.V=bS.prototype;_.V.attached=function(){this.onOpen()};
_.V.updateTimeSecs=function(J){this.currentTimeSecs=J};
_.V.computeTimeString=function(J){J=J.toString();var c=Math.floor(Number(J)/3600),m=Math.floor(Number(J)%3600%60);return(c>0?c+":":"")+_.Fy(Math.floor(Number(J)%3600/60),c>0?2:1)+":"+_.Fy(m,2)};
_.V.computeTimeStringA11y=function(J){J=_.UZR({seconds:J});var c=J.hours===void 0?0:J.hours,m=J.minutes===void 0?0:J.minutes,b=J.seconds===void 0?0:J.seconds;J=[];if(c>0){var x=p7p().format({hours:c});if(!"be bg es et hu it ka lv pl pt-PT sl sq".split(" ").includes(_.UG)||c>9999)x=x.replace(c.toString(),_.SPu(c)),_.UG==="km"&&(x=x.replace(".",","));J.push(x)}m>0&&J.push(p7p().format({minutes:m}));b>0&&J.push(p7p().format({seconds:b}));c="be gu ja kk km ko mn ru tr uz zh-HK zh-TW".split(" ");m=_.UG==
"am"?"{0}\u1363 ":_.UG=="fa"?"{0}\u060c\u200f ":_.UG=="my"?"{0} - ":_.UG=="ne"?"{0},":_.UG=="th"?"{0} ":_.UG=="ur"?"{0}\u060c ":_.UG=="ar"||_.UG=="ar-XB"?"{0} \u0648":_.UG=="ja"||_.UG=="zh-CN"||_.UG=="zh-HK"||_.UG=="zh-TW"?"{0}\u3001":"{0}, ";b=_.UG=="am"?"\u1363 ":_.UG=="fa"?"\u060c\u200f ":_.UG=="my"?" - ":_.UG=="th"?" ":_.UG=="ur"?"\u060c ":_.UG=="ar"||_.UG=="ar-XB"?" \u0648":_.UG=="ja"||_.UG=="zh-CN"||_.UG=="zh-HK"||_.UG=="zh-TW"?"\u3001":", ";x=_.UG=="am"?" \u12a5\u1293 {0}":_.UG=="as"?" \u0986\u09f0\u09c1 {0}":
_.UG=="az"?" v\u0259 {0}":_.UG=="bn"?" \u098f\u09ac\u0982 {0}":_.UG=="cs"?" a\u00a0{0}":_.UG=="de"?" und {0}":_.UG=="el"?" \u03ba\u03b1\u03b9 {0}":_.UG=="eu"?" eta {0}":_.UG=="fa"?"\u060c \u0648 {0}":_.UG=="fil"?", at {0}":_.UG=="gu"?" \u0a85\u0aa8\u0ac7 {0}":_.UG=="hi"?", \u0914\u0930 {0}":_.UG=="hu"?" \u00e9s {0}":_.UG=="hy"?" \u0587 {0}":_.UG=="id"?", dan {0}":_.UG=="iw"?" \u05d5-{0}":_.UG=="ja"?"\u3001{0}":_.UG=="ka"?" \u10d3\u10d0 {0}":_.UG=="km"?" \u1793\u17b7\u1784 {0}":_.UG=="kn"?", \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {0}":
_.UG=="ko"?" \ubc0f {0}":_.UG=="ky"?" \u0436\u0430\u043d\u0430 {0}":_.UG=="lt"?" ir {0}":_.UG=="lv"?" un {0}":_.UG=="ml"?", {0} \u0d0e\u0d28\u0d4d\u0d28\u0d3f\u0d35":_.UG=="mr"?" \u0906\u0923\u093f {0}":_.UG=="ms"?" dan {0}":_.UG=="my"?"\u1014\u103e\u1004\u1037\u103a {0}":_.UG=="ne"?" \u0930 {0}":_.UG=="or"?", \u0b13 {0}":_.UG=="pa"?" \u0a05\u0a24\u0a47 {0}":_.UG=="ro"?" \u0219i {0}":_.UG=="si"?", \u0dc3\u0dc4 {0}":_.UG=="sk"?" a {0}":_.UG=="sl"?" in {0}":_.UG=="sq"?" dhe {0}":_.UG=="sv"?" och {0}":
_.UG=="sw"?" na {0}":_.UG=="ta"?" \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {0}":_.UG=="te"?" \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {0}":_.UG=="th"?" \u0e41\u0e25\u0e30{0}":_.UG=="tr"?" ve {0}":_.UG=="ur"?"\u060c \u0627\u0648\u0631 {0}":_.UG=="uz"?" va {0}":_.UG=="vi"?" v\u00e0 {0}":_.UG=="zh-HK"?"\u53ca{0}":_.UG=="zu"?", ne-{0}":_.UG=="af"||_.UG=="nl"?" en {0}":_.UG=="ar"||_.UG=="ar-XB"?" \u0648{0}":_.UG=="be"||_.UG=="uk"?" \u0456 {0}":_.UG=="en-GB"||_.UG=="en-IN"?" and {0}":_.UG=="en"||_.UG=="en-XA"?
", and {0}":_.UG=="et"||_.UG=="fi"?" ja {0}":_.UG=="fr"||_.UG=="fr-CA"?" et {0}":_.UG=="zh-CN"||_.UG=="zh-TW"?"\u548c{0}":_.UG=="da"||_.UG=="is"||_.UG=="no"?" og {0}":_.UG=="es"||_.UG=="es-419"||_.UG=="es-US"?" y {0}":_.UG=="kk"||_.UG=="lo"||_.UG=="mn"?", {0}":_.UG=="bg"||_.UG=="mk"||_.UG=="ru"||_.UG=="sr"?" \u0438 {0}":_.UG=="gl"||_.UG=="it"||_.UG=="pt-BR"||_.UG=="pt-PT"?" e {0}":" i {0}";var P=_.UG=="am"?"{0} \u12a5\u1293 {1}":_.UG=="as"?"{0} \u0986\u09f0\u09c1 {1}":_.UG=="az"?"{0} v\u0259 {1}":
_.UG=="bn"?"{0} \u098f\u09ac\u0982 {1}":_.UG=="de"?"{0} und {1}":_.UG=="el"?"{0} \u03ba\u03b1\u03b9 {1}":_.UG=="eu"?"{0} eta {1}":_.UG=="fa"?"{0} \u0648 {1}":_.UG=="fil"?"{0} at {1}":_.UG=="gu"?"{0} \u0a85\u0aa8\u0ac7 {1}":_.UG=="hi"?"{0} \u0914\u0930 {1}":_.UG=="hu"?"{0} \u00e9s {1}":_.UG=="hy"?"{0} \u0587 {1}":_.UG=="iw"?"{0} \u05d5-{1}":_.UG=="ja"?"{0}\u3001{1}":_.UG=="ka"?"{0} \u10d3\u10d0 {1}":_.UG=="kk"?"{0} \u0436\u04d9\u043d\u0435 {1}":_.UG=="km"?"{0} \u1793\u17b7\u1784\u200b{1}":_.UG=="kn"?
"{0} \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {1}":_.UG=="ko"?"{0} \ubc0f {1}":_.UG=="ky"?"{0} \u0436\u0430\u043d\u0430 {1}":_.UG=="lo"?"{0} \u0ec1\u0ea5\u0eb0 {1}":_.UG=="lt"?"{0} ir {1}":_.UG=="lv"?"{0} un {1}":_.UG=="ml"?"{0} \u0d15\u0d42\u0d1f\u0d3e\u0d24\u0d46 {1}":_.UG=="mn"?"{0}, {1}":_.UG=="mr"?"{0} \u0906\u0923\u093f {1}":_.UG=="my"?"{0}\u1014\u103e\u1004\u1037\u103a {1}":_.UG=="ne"?"{0} \u0930 {1}":_.UG=="or"?"{0} \u0b13 {1}":_.UG=="pa"?"{0} \u0a05\u0a24\u0a47 {1}":_.UG=="ro"?"{0} \u0219i {1}":_.UG==
"si"?"{0} \u0dc3\u0dc4 {1}":_.UG=="sl"?"{0} in {1}":_.UG=="sq"?"{0} dhe {1}":_.UG=="sv"?"{0} och {1}":_.UG=="sw"?"{0} na {1}":_.UG=="ta"?"{0} \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {1}":_.UG=="te"?"{0} \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {1}":_.UG=="th"?"{0}\u0e41\u0e25\u0e30{1}":_.UG=="tr"?"{0} ve {1}":_.UG=="ur"?"{0} \u0627\u0648\u0631 {1}":_.UG=="uz"?"{0} va {1}":_.UG=="vi"?"{0} v\u00e0 {1}":_.UG=="zh-HK"?"{0}\u53ca{1}":_.UG=="zu"?"{0} ne-{1}":_.UG=="af"||_.UG=="nl"?"{0} en {1}":_.UG=="ar"||_.UG==
"ar-XB"?"{0} \u0648{1}":_.UG=="be"||_.UG=="uk"?"{0} \u0456 {1}":_.UG=="cs"||_.UG=="sk"?"{0} a\u00a0{1}":_.UG=="et"||_.UG=="fi"?"{0} ja {1}":_.UG=="fr"||_.UG=="fr-CA"?"{0} et {1}":_.UG=="id"||_.UG=="ms"?"{0} dan {1}":_.UG=="zh-CN"||_.UG=="zh-TW"?"{0}\u548c{1}":_.UG=="da"||_.UG=="is"||_.UG=="no"?"{0} og {1}":_.UG=="es"||_.UG=="es-419"||_.UG=="es-US"?"{0} y {1}":_.UG=="bg"||_.UG=="mk"||_.UG=="ru"||_.UG=="sr"?"{0} \u0438 {1}":_.UG=="en"||_.UG=="en-GB"||_.UG=="en-IN"||_.UG=="en-XA"?"{0} and {1}":_.UG==
"gl"||_.UG=="it"||_.UG=="pt-BR"||_.UG=="pt-PT"?"{0} e {1}":"{0} i {1}";_.UG==="sq"?(x=x.replace("dhe","e"),P=P.replace("dhe","e")):_.UG==="th"?(b=b.replace("{0}"," {0}"),P=P.replace("{0}","{0} "),P=P.replace("{1}"," {1}")):_.UG==="ne"?b=",":_.UG==="zh-CN"?b="":c.includes(_.UG)&&(b=" ");return J.length<2?J.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(_.UG)?J.length===2?
P.replace("{0}",J[0]).replace("{1}",J[1]):m.replace("{0}",J[0])+J.slice(1,-1).join(b)+x.replace("{0}",J[J.length-1]):J.join(b)};
_.V.getTimeParam=function(){return Gvh(this.timeString)};
_.V.onChangeStartAtCheckbox=function(){this.startAtTimestamp.disabled=!this.isStartAtChecked;this.setTimestamp();var J={checkboxData:{state:this.isStartAtChecked?"CHECKBOX_STATE_ON":"CHECKBOX_STATE_OFF"}},c;_.b6(_.C7(),(c=this.data)==null?void 0:c.trackingParams,J,7)};
_.V.onChangeStartAtTimestamp=function(){for(var J=this.startAtTimestamp.value.split(":"),c=0,m=1,b=J.length-1;b>=0;b--)c+=Number(J[b])*m,m*=60;this.updateTimeSecs(c);this.setTimestamp()};
_.V.onOpen=function(){var J=this;this.updateTimeSecs(0);this.isStartAtChecked=!1;var c=_.ep();c?c.getPlayerPromise().then(function(m){m=m.getCurrentTime();J.updateTimeSecs(m)}):POr()&&this.updateTimeSecs(POr())};
_.V.setTimestamp=function(){var J=Math.floor(this.currentTimeSecs);_.m9(this.hostElement,"yt-share-panel-set-timestamp-action",[{isSet:this.isStartAtChecked&&!!J,timestamp:J||""}])};
_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],bS.prototype,"ytActionHandlerBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],bS.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],bS.prototype,"data",void 0);_.O([_.U({value:!1,notify:!0}),_.R("design:type",Boolean)],bS.prototype,"isStartAtChecked",void 0);_.O([_.U(),_.R("design:type",Number)],bS.prototype,"currentTimeSecs",void 0);
_.O([_.U({computed:"computeTimeString(currentTimeSecs)"}),_.R("design:type",String)],bS.prototype,"timeString",void 0);_.O([_.U({computed:"computeTimeStringA11y(currentTimeSecs)"}),_.R("design:type",String)],bS.prototype,"timeStringA11y",void 0);_.O([_.Iu("#start-at-timestamp"),_.R("design:type",Object)],bS.prototype,"startAtTimestamp",void 0);bS=_.O([_.uM({is:"yt-start-at-renderer",disableElementRegistration:!0})],bS);
_.v(bS,"yt-start-at-renderer",function(){if(tJS===void 0){var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);var c=J.content,m=c.insertBefore;NdS===void 0&&(NdS=document.createElement("template"));var b=NdS;m.call(c,b.content.cloneNode(!0),J.content.firstChild);tJS=J}J=tJS;return J},{mode:2});var Io4;var KXu;var CHs=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"]]),aoh=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"]]),ki5=new Map([["ARROW_CHART_NEUTRAL","yt-icons:"],["OFFLINE_NO_CONTENT","offline-no-content:"],["YOUTUBE","yt-logos:"]]);var HoS={};HoS.YtBindingExpressionsBehavior={identity:_.GD,msg:function(J,c){c=c===void 0?{}:c;return _.CX(J,c,J)},
msgPlural:function(J,c){return _.an(J,c)},
getMusicIconFromType:function(J){if(_.w("music_web_enable_icon_wil"))J=_.Pd(J);else if(aoh.has(J))J="yt-sys-icons:"+aoh.get(J);else{var c=CHs.get(J)||_.Pd(J).split(":")[1];c=_.WlG(c);var m;J=((m=ki5.get(J))!=null?m:"yt-sys-icons:")+c}return J}};var ioo;var nqo;var TdR;var wLh=document.head,rs5=wLh.appendChild,svp;if(TdR===void 0){var LXR=document.createElement("template");_.z(LXR,'\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>');TdR=LXR}svp=TdR;rs5.call(wLh,svp.content);var xw=function(){var J=_.h.apply(this,arguments)||this;J.screenLayer=7;return J};
_.D(xw,_.h);xw.prototype.getScreenLayer=function(){return this.screenLayer};
xw.prototype.onTap=function(J){J&&J.detail&&(J.detail.x||J.detail.y)&&_.Bj(this.hostElement).querySelector("#target").blur();this.data.serviceEndpoint?_.Vq(this.hostElement,[this.data.serviceEndpoint]):this.data.navigationEndpoint&&(J=this.getScreenLayer(),_.cA(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint,createScreenConfig:{layer:J}}));this.data.onTapCommand&&this.ytComponentBehavior.resolveCommand(this.data.onTapCommand,{form:{createScreenConfig:{layer:this.getScreenLayer()}}})};
_.eE.Object.defineProperties(xw.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()}}});
xw.prototype.onTap=xw.prototype.onTap;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],xw.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],xw.prototype,"ytComponentBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],xw.prototype,"data",void 0);_.O([_.q("data.title"),_.R("design:type",Object),_.R("design:paramtypes",[])],xw.prototype,"title",null);
_.O([_.q("data.serviceName"),_.R("design:type",String),_.R("design:paramtypes",[])],xw.prototype,"icon",null);_.O([_.ps("tap"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],xw.prototype,"onTap",null);xw=_.O([_.uM({is:"yt-share-target-renderer",disableElementRegistration:!0})],xw);
_.v(xw,"yt-share-target-renderer",function(){if(nqo===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;ioo===void 0&&(ioo=document.createElement("template"));var b=ioo;m.call(c,b.content.cloneNode(!0),J.content.firstChild);nqo=J}J=nqo;return J},{mode:2});var D7R;var WXs;var VL=function(){var J=_.h.apply(this,arguments)||this;J.SHARE_TARGET_WIDTH=70;J.SHARE_TARGET_MARGIN_RIGHT=8;J.PAGE_SCROLL_SPEED=9;J.actionMap={"yt-share-panel-reset-action":"onReset_"};return J};
_.D(VL,_.h);_.V=VL.prototype;_.V.configureRendererStamper=function(){return{"data.shareTargets":{id:"contents",mapping:{shareTargetRenderer:{component:"yt-share-target-renderer",attributes:{role:"button"}}}}}};
_.V.onDataChanged_=function(){this.data&&this.data.shareTargets&&(_.Bj(this.hostElement).querySelector("#scroll-button-back").hidden=!0,_.Bj(this.hostElement).querySelector("#scroll-button-forward").hidden=this.data.shareTargets.length<=6)};
_.V.onReset_=function(){if(_.Bj(this.hostElement).querySelector("#list")){var J=_.Bj(this.hostElement).querySelector("#list");var c=_.Bj(this.hostElement).querySelector("#list");var m=c.offsetLeft,b=c.offsetParent;b||_.$f8(c)!="fixed"||(b=_.fw(c).documentElement);if(b){if(_.ce&&!_.b0(58)){var x=_.QR_(b);m+=x.left}else Number(_.kAT)>=8&&!(Number(_.kAT)>=9)&&(x=_.QR_(b),m-=x.left);c=_.RuQ(b)?b.clientWidth-(m+c.offsetWidth):m}else c=m;Pvo(J,c);this.updateScrollButtons_()}};
_.V.onScrollBack_=function(){this.smoothScrollByOnePage_(!1)};
_.V.onScrollForward_=function(){this.smoothScrollByOnePage_(!0)};
_.V.onScrollWheel_=function(J){J.stopPropagation();J.preventDefault();var c=VM1(_.Bj(this.hostElement).querySelector("#list"));J=Math.abs(J.deltaX)>Math.abs(J.deltaY)?J.deltaX:J.deltaY;Pvo(_.Bj(this.hostElement).querySelector("#list"),c+J);this.updateScrollButtons_()};
_.V.smoothScrollByOnePage_=function(J){var c=_.Bj(this.hostElement).querySelector("#list"),m=(Math.floor(c.clientWidth/this.SHARE_TARGET_WIDTH)*(this.SHARE_TARGET_WIDTH+this.SHARE_TARGET_MARGIN_RIGHT)-this.SHARE_TARGET_MARGIN_RIGHT)/2,b=VM1(c),x=m*(J?1:-1),P=this.PAGE_SCROLL_SPEED,p=this.updateScrollButtons_.bind(this),t=0,I;(function k(){t+=P;I=t/m*2;Pvo(c,b+x*(I<1?I*I:-I*I+4*I-2));t<m?window.requestAnimationFrame(k):p()})()};
_.V.updateScrollButtons_=function(){var J=VM1(_.Bj(this.hostElement).querySelector("#list")),c=_.Bj(this.hostElement).querySelector("#list").scrollWidth-_.Bj(this.hostElement).querySelector("#list").clientWidth;_.Bj(this.hostElement).querySelector("#scroll-button-back").hidden=J<=0;_.Bj(this.hostElement).querySelector("#scroll-button-forward").hidden=J>=c};
VL.prototype.onScrollWheel_=VL.prototype.onScrollWheel_;VL.prototype.onDataChanged_=VL.prototype.onDataChanged_;_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],VL.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],VL.prototype,"ytActionHandlerBehavior",void 0);_.O([_.f(HoS.YtBindingExpressionsBehavior),_.R("design:type",Object)],VL.prototype,"ytBindingExpressionsBehavior",void 0);
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],VL.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],VL.prototype,"data",void 0);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],VL.prototype,"onDataChanged_",null);_.O([_.ps("wheel"),_.R("design:type",Function),_.R("design:paramtypes",[WheelEvent]),_.R("design:returntype")],VL.prototype,"onScrollWheel_",null);
VL=_.O([_.uM({is:"yt-third-party-share-target-section-renderer",disableElementRegistration:!0})],VL);
_.v(VL,"yt-third-party-share-target-section-renderer",function(){if(WXs===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;D7R===void 0&&(D7R=document.createElement("template"));var b=D7R;m.call(c,b.content.cloneNode(!0),J.content.firstChild);WXs=J}J=WXs;return J},{mode:2});var Pv=function(){return _.h.apply(this,arguments)||this};
_.D(Pv,_.h);Pv.prototype.configureRendererStamper=function(){return{"data.shareTargetContainer":{id:"share-targets",mapping:{thirdPartyShareTargetSectionRenderer:"yt-third-party-share-target-section-renderer"}},"data.copyLinkContainer":{id:"copy-link",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}},"data.startAtContainer":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Pv.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],Pv.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Pv.prototype,"data",void 0);Pv=_.O([_.uM({is:"yt-third-party-network-section-renderer",disableElementRegistration:!0})],Pv);
_.v(Pv,"yt-third-party-network-section-renderer",function(){if(KXu===void 0){var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);var c=J.content,m=c.insertBefore;Io4===void 0&&(Io4=document.createElement("template"));var b=Io4;m.call(c,b.content.cloneNode(!0),J.content.firstChild);KXu=J}J=KXu;return J},{mode:2});_.lv(_.Q1(function(J){return _.C("first-party-network-section-view-model",{class:"ytwFirstPartyNetworkSectionViewModelHost"},_.C("div",{class:"ytwFirstPartyNetworkSectionViewModelfirstPartyItems"},_.C(_.wi,{data:function(){return J.data().firstPartyItems}},{listItemViewModel:_.Da})))},"qg"),"first-party-network-section-view-model",{props:{data:_.vt}});var z0R=_.Oo(["data:image/svg+xml;charset=UTF-8;base64,",""]),M1=function(){var J=_.h.apply(this,arguments)||this;J.screenLayer=7;J.qrCodeEnabled=_.w("web_enable_sharing_qr_code");J.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp"};return J};
_.D(M1,_.h);_.V=M1.prototype;_.V.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"}}}};
_.V.attached=function(){this.JSC$17836_scroller&&(this.JSC$17836_scroller.dialogElement=this.hostElement.parentNode,this.JSC$17836_scroller.attached&&typeof this.JSC$17836_scroller.attached==="function"&&this.JSC$17836_scroller.attached(),this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true"))};
_.V.onDataChanged=function(){var J=this,c;(c=this.data)!=null&&c.contents&&(this.hostElement.setAttribute("links-only","true"),_.bM(this.hostElement,"can-post",this.hasCommunityPostRenderer()),this.logSharePanelPage(),this.maybeRenderQrCode(this.shortUrl()),_.o3(this,function(){_.cA(J.hostElement,"yt-refit");J.focusSharePanelHeader()}))};
_.V.focusSharePanelHeader=function(){this.header&&(this.header.setAttribute("tabindex","-1"),this.header.focus())};
_.V.handleSetTimestamp=function(J){var c=this.shortUrl();J.isSet&&(c=_.UK(c,"t",J.timestamp));this.maybeRenderQrCode(c)};
_.V.shortUrl=function(){var J,c=(J=this.data)==null?void 0:J.contents;if(c)for(J=0;J<c.length;J++){var m=void 0,b=void 0;if((m=c[J])==null?0:(b=m.thirdPartyNetworkSection)==null?0:b.copyLinkContainer){var x=b=m=void 0;return(x=_.L((m=c[J])==null?void 0:(b=m.thirdPartyNetworkSection)==null?void 0:b.copyLinkContainer,piu))==null?void 0:x.shortUrl}}};
_.V.maybeRenderQrCode=function(J){var c=this,m,b,x,P,p,t,I,a,k;return _.N(function(H){if(H.nextAddress==1){m=_.Bj(c.hostElement).querySelector("#qr-code");if(!c.qrCodeEnabled||!J)return m&&(m.style.display="none"),H.return();b=_.d4e(_.BG().resolve(_.Ml),{iconName:"youtube_logo_icon",iconStyle:"youtube_fill"});x=document.createElement("div");return typeof b==="function"?(b(x),H.jumpTo(2)):_.K(H,b,3)}H.nextAddress!=2&&(P=H.yieldResult,P(x));I=(p=x)==null?void 0:(t=p.firstChild)==null?void 0:t.firstChild;
a=document.createElement("img");k=_.L1(z0R,btoa(I.outerHTML));a.onload=function(){var T={canvas:m,cellStyle:1,backgroundColor:"white",borderRadius:30,color:"black",padding:10,width:256,logo:a},r=new dzf;AIo(r,J);RwR(r,!1,oHu(r));var W=r.modules,Y=Object.assign({},OIR,T);W=structuredClone(W);T=W.length;var Z,d=(Z=Y.canvas)!=null?Z:document.createElement("canvas");Z=Y.cellSize;r=Y.logo;var G,e=(G=Y.logoSize)!=null?G:Math.floor(T/4);T%2!==e%2&&e++;var A=Y.logoPadding,l=Y.backgroundColor;G=T*Z;var y=
Y.width,pG=0;y&&(pG=Y.padding,pG=Math.ceil(pG*G/(y-pG*2)),d.style.width=y+"px",d.style.height=y+"px");d.width!==G+pG*2&&(d.width=G+pG*2);d.height!==G+pG*2&&(d.height=G+pG*2);G=d.getContext("2d");Y.autoClear&&G.clearRect(0,0,d.width,d.height);G.fillStyle=l;G.beginPath();G.roundRect(0,0,d.width,d.height,Y.borderRadius);G.fill();G.save();G.translate(pG,pG);if(r)for(d=Math.floor(T-e)/2-A,A=Math.floor(T+e)/2+A,l=d;l<A;l++)for(y=d;y<A;y++)W[l][y]=!1;for(d=0;d<T;d++)for(A=0;A<T;A++)(d<7&&A<7||d<7&&A>=T-
7||d>=T-7&&A<7)&&(W[d][A]=!1);var kt;d=(kt=Y.markerColor)!=null?kt:Y.color;ewr(G,0,0,Z,d);ewr(G,Z*(T-7),0,Z,d);ewr(G,0,Z*(T-7),Z,d);switch(Y.cellStyle){case 0:kt=W;W=kt.length;d=Y.cellSize;G.beginPath();for(A=0;A<W;A++)for(l=0;l<W;l++)kt[A][l]&&G.rect(A*d,l*d,d,d);G.fillStyle=Y.color;G.fill();break;case 1:kt=W;W=kt.length;d=Y.cellSize;A=d*Y.relativeCircleSize;G.fillStyle=Y.color;G.beginPath();for(Y=0;Y<W;Y++)for(l=0;l<W;l++)kt[Y][l]&&(G.beginPath(),G.ellipse((Y+.5)*d,(l+.5)*d,A/2,A/2,0,0,2*Math.PI),
G.fill());G.fill();break;case 2:kt=W;W=kt.length;d=Y.cellSize;G.fillStyle=Y.color;Y=[[1,1],[-1,1],[-1,-1],[1,-1]];G.beginPath();for(A=0;A<W;A++)for(l=0;l<W;l++)if(kt[A][l])G.roundRect(A*d,l*d,d,d,d/2),A+1<W&&kt[A+1][l]&&G.rect(A*d+d/2,l*d,d,d),l+1<W&&kt[A][l+1]&&G.rect(A*d,l*d+d/2,d,d);else{y=A*d+d/2;pG=l*d+d/2;for(var nG=0;nG<4;nG++){var fG=_.M(Y[nG]),Yt=fG.next().value;fG=fG.next().value;A+Yt>=0&&A+Yt<W&&l+fG>=0&&l+fG<W&&kt[A+Yt][l]&&kt[A][l+fG]&&kt[A+Yt][l+fG]&&(Yt=nG*Math.PI/2,fG=d/2,G.moveTo(y+
fG*Math.cos(Yt),pG+fG*Math.sin(Yt)),G.arc(y,pG,d/2,Yt,Yt+Math.PI/2,!1),G.lineTo(y+fG*(Math.cos(Yt)-Math.sin(Yt)),pG+fG*(Math.cos(Yt)+Math.sin(Yt))),G.lineTo(y+fG*Math.cos(Yt),pG+fG*Math.sin(Yt)))}}G.fill()}r&&G.drawImage(r,(T-e)*Z/2,(T-e)*Z/2,e*Z,e*Z);G.restore();m.style.removeProperty("display")};
a.src=_.ah(k);_.tD(H)})};
_.V.hasCommunityPostRenderer=function(){var J,c,m,b;return!!((J=this.data)==null?0:(c=J.header)==null?0:(m=c.sharePanelHeaderRenderer)==null?0:(b=m.communityPost)==null?0:b.communityPostSectionRenderer)};
_.V.onTapClose=function(){_.m9(this.hostElement,"yt-close-popup-action",["ytd-unified-share-panel-renderer"])};
_.V.getScreenLayer=function(){return this.screenLayer};
_.V.logSharePanelPage=function(){if(!_.w("enable_share_panel_navigation_logging_fix_on_web")){var J;if((J=this.data)!=null&&J.trackingParams){J=this.data.trackingParams;var c=this.parentClickTrackingParams;c=c?_.n7(c):void 0;var m=_.C7();_.ge(m,21760,c,{layer:7,parentLayer:0});m.graftServerVe(J,void 0,7);_.Rc().dispatch(_.J7({type:"CLEAR_PARENT_CLICK_TRACKING_PARAMS"}))}}};
M1.prototype.onDataChanged=M1.prototype.onDataChanged;_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],M1.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],M1.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.fY),_.R("design:type",Object)],M1.prototype,"ytdReduxBehavior",void 0);_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],M1.prototype,"ytActionHandlerBehavior",void 0);
_.O([_.U(),_.R("design:type",Object)],M1.prototype,"data",void 0);_.O([_.U({value:_.CX("SBOX_INAPPROPRIATE_CANCEL")}),_.R("design:type",String)],M1.prototype,"closeButtonAriaLabel",void 0);_.O([_.Iu("yt-share-panel-header-renderer"),_.R("design:type",HTMLElement)],M1.prototype,"header",void 0);_.O([_.U({selector:function(J){return J.share.parentClickTrackingParams}}),
_.R("design:type",String)],M1.prototype,"parentClickTrackingParams",void 0);_.O([_.U(),_.R("design:type",Object)],M1.prototype,"qrCodeEnabled",void 0);_.O([_.Iu("#scroller"),_.R("design:type",Object)],M1.prototype,"JSC$17836_scroller",void 0);_.O([_.kr("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],M1.prototype,"onDataChanged",null);M1=_.O([_.E({disableElementRegistration:!0,is:"ytd-unified-share-panel-renderer"})],M1);
_.v(M1,"ytd-unified-share-panel-renderer",function(){if(JsR!==void 0)return JsR;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return JsR=J},{mode:1});var uhs;var pf=function(){var J=_.h.apply(this,arguments)||this;J.modernModal=_.w("kevlar_sign_in_modal_modernization");return J};
_.D(pf,_.h);pf.prototype.attached=function(){this.hostElement.setAttribute("modal","true")};
pf.prototype.computeShouldHideOldButtons=function(){var J;return!((J=this.data)==null?0:J.button)};
_.eE.Object.defineProperties(pf.prototype,{buttonRendererData:{configurable:!0,enumerable:!0,get:function(){var J,c;if(this.modernModal&&((J=this.data)==null?0:(c=J.button)==null?0:c.buttonRenderer))return Object.assign({},this.data.button.buttonRenderer,{style:"STYLE_MONO_FILLED"});var m,b;return(m=this.data)==null?void 0:(b=m.button)==null?void 0:b.buttonRenderer}}});
_.O([_.U(),_.R("design:type",Object)],pf.prototype,"data",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],pf.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.Ci.YtEventForwardingBehavior),_.R("design:type",Object)],pf.prototype,"ytEventForwardingBehavior",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],pf.prototype,"modernModal",void 0);_.O([_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],pf.prototype,"buttonRendererData",null);
pf=_.O([_.E({disableElementRegistration:!0,is:"ytd-modal-with-title-and-button-renderer"})],pf);
_.v(pf,"ytd-modal-with-title-and-button-renderer",function(){if(uhs!==void 0)return uhs;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return uhs=J},{mode:1});var fof;var N1=function(){return _.h.apply(this,arguments)||this};
_.D(N1,_.h);N1.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.SJ("page-changed",this.page))};
N1.prototype.pageChangedForBinding=N1.prototype.pageChangedForBinding;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],N1.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],N1.prototype,"data",void 0);_.O([_.U(),_.R("design:type",String)],N1.prototype,"page",void 0);_.O([_.NE("page"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],N1.prototype,"pageChangedForBinding",null);
N1=_.O([_.E({is:"ytd-account-item-section-header-renderer",disableElementRegistration:!0})],N1);
_.v(N1,"ytd-account-item-section-header-renderer",function(){if(fof!==void 0)return fof;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return fof=J},{mode:1});var Y0h;var tw=function(){return _.h.apply(this,arguments)||this};
_.D(tw,_.h);tw.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"}}}};
tw.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],tw.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],tw.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.Sy),_.R("design:type",Object)],tw.prototype,"ytContinuationHandlerBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],tw.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!1}),_.R("design:type",Function)],tw.prototype,"onAccountItemTap",void 0);
tw=_.O([_.E({is:"ytd-account-item-section-renderer",disableElementRegistration:!0})],tw);
_.v(tw,"ytd-account-item-section-renderer",function(){if(Y0h!==void 0)return Y0h;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return Y0h=J},{mode:1});var XLS;var Zos;var I8=function(){return _.h.apply(this,arguments)||this};
_.D(I8,_.h);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],I8.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],I8.prototype,"data",void 0);I8=_.O([_.E({is:"ytd-accounts-dialog-header-renderer",disableElementRegistration:!0})],I8);
_.v(I8,"ytd-accounts-dialog-header-renderer",function(){if(Zos!==void 0)return Zos;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return Zos=J},{mode:1});var q04;var Kf=function(){return _.h.apply(this,arguments)||this};
_.D(Kf,_.h);Kf.prototype.configureRendererStamper=function(){return{"data.managedAccountDisclaimer":{id:"managedAccountDisclaimer",mapping:{compactLinkRenderer:"ytd-compact-link-renderer"}}}};
_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],Kf.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Kf.prototype,"data",void 0);Kf=_.O([_.E({is:"ytd-google-account-header-renderer",disableElementRegistration:!0})],Kf);
_.v(Kf,"ytd-google-account-header-renderer",function(){if(q04!==void 0)return q04;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return q04=J},{mode:1});var Cf=function(){return _.h.apply(this,arguments)||this};
_.D(Cf,_.h);Cf.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"}}}};
Cf.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.SJ("page-changed",this.page))};
Cf.prototype.pageChangedForBinding=Cf.prototype.pageChangedForBinding;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Cf.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],Cf.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Cf.prototype,"data",void 0);_.O([_.U(),_.R("design:type",String)],Cf.prototype,"page",void 0);
_.O([_.NE("page"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Cf.prototype,"pageChangedForBinding",null);Cf=_.O([_.E({is:"ytd-account-section-list-renderer",disableElementRegistration:!0})],Cf);
_.cd()(Cf,"ytd-account-section-list-renderer",function(){if(XLS===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);XLS=J}J=XLS;return J},{allowedProps:["data"],
mode:1});var U7S;var a8=function(){var J=_.h.apply(this,arguments)||this;J.enableHandlesAccountMenuSwitcher=_.w("enable_handles_account_menu_switcher");return J};
_.D(a8,_.h);a8.prototype.dataChanged=function(){if(this.data)this.avatar.onShow()};
a8.prototype.dataChanged=a8.prototype.dataChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],a8.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],a8.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],a8.prototype,"enableHandlesAccountMenuSwitcher",void 0);_.O([_.Iu("#avatar"),_.R("design:type",Object)],a8.prototype,"avatar",void 0);
_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],a8.prototype,"dataChanged",null);a8=_.O([_.E({is:"ytd-active-account-header-renderer",disableElementRegistration:!0})],a8);
_.cd()(a8,"ytd-active-account-header-renderer",function(){if(U7S===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);U7S=J}J=U7S;return J},{allowedProps:["data"],
mode:1});var S05;var h0u;var kw=function(){return _.h.apply(this,arguments)||this};
_.D(kw,_.h);kw.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
kw.prototype.onBackTap=function(){_.cA(this.hostElement,"yt-menu-back-tapped")};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],kw.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],kw.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],kw.prototype,"data",void 0);kw=_.O([_.E({is:"ytd-simple-menu-header-renderer",disableElementRegistration:!0})],kw);
_.cd()(kw,"ytd-simple-menu-header-renderer",function(){if(h0u===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);h0u=J}J=h0u;return J},{allowedProps:["data"],
mode:2});var d71;var Hv=function(){return _.h.apply(this,arguments)||this};
_.D(Hv,_.h);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Hv.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Hv.prototype,"data",void 0);Hv=_.O([_.E({is:"ytd-comment-video-thumbnail-header-renderer",disableElementRegistration:!0})],Hv);
_.v(Hv,"ytd-comment-video-thumbnail-header-renderer",function(){if(d71!==void 0)return d71;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return d71=J},{mode:1});var $7R;var iS=function(){return _.h.apply(this,arguments)||this};
_.D(iS,_.h);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],iS.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],iS.prototype,"data",void 0);iS=_.O([_.E({is:"ytd-abuse-type-selector-renderer",disableElementRegistration:!0})],iS);
_.v(iS,"ytd-abuse-type-selector-renderer",function(){if($7R!==void 0)return $7R;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return $7R=J},{mode:1});var Gio;var nf=function(){return _.h.apply(this,arguments)||this};
_.D(nf,_.h);nf.prototype.attached=function(){var J=this;this.additionalContext=this.additionalContextRedux||"";requestAnimationFrame(function(){J.additionalContextInput.focusTextInput()})};
nf.prototype.handleAdditionalContextChanged=function(){var J=this;_.hO(this,"ytd-report-channel-additional-context-update",function(){J.ytdReduxBehavior.dispatch(_.J7({type:"ADDITIONAL_CONTEXT_UPDATED",payload:J.additionalContext}))},300)};
nf.prototype.updateAdditionalContextFromBinding=function(J){this.additionalContext=J.detail.value};
nf.prototype.handleAdditionalContextChanged=nf.prototype.handleAdditionalContextChanged;_.O([_.f(_.fY),_.R("design:type",Object)],nf.prototype,"ytdReduxBehavior",void 0);_.O([_.U(),_.R("design:type",String)],nf.prototype,"additionalContext",void 0);_.O([_.U({selector:function(J){return J.reportChannelAbuse.additionalContext}}),
_.R("design:type",String)],nf.prototype,"additionalContextRedux",void 0);_.O([_.U(),_.R("design:type",Object)],nf.prototype,"data",void 0);_.O([_.Iu("yt-text-input-form-field-renderer"),_.R("design:type",Object)],nf.prototype,"additionalContextInput",void 0);_.O([_.NE("additionalContext"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],nf.prototype,"handleAdditionalContextChanged",null);
nf=_.O([_.E({is:"ytd-report-channel-modal-additional-context-renderer",disableElementRegistration:!0})],nf);
_.v(nf,"ytd-report-channel-modal-additional-context-renderer",function(){if(Gio!==void 0)return Gio;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return Gio=J},{mode:1});var Eqs;var Tx=function(){var J=_.h.apply(this,arguments)||this;J.nextButtonDisabled=null;J.submitEndpoint=null;J.navigationEndpoint=null;J.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-signal-action-submit-form":"handleSignalActionSubmitForm","ytd-report-channel-modal-disable-next-button-action":"handleReportChannelModalDisableNextButtonAction"};return J};
_.D(Tx,_.h);_.V=Tx.prototype;_.V.computeNextButtonData=function(J,c,m){var b={};c&&(b.navigationEndpoint=c);m&&(b.serviceEndpoint=m);J&&J.buttonRenderer&&_.Lw.extend(b,J.buttonRenderer);return b};
_.V.handleReportChannelModalDisableNextButtonAction=function(J){this.setNextButtonIsDisabled(J)};
_.V.handleReportFormEndpointUpdateAction=function(J){this.setNextButtonIsDisabled(!!J.disableSubmitButton);this.resetEndpointData();J.submitEndpoint?this.submitEndpoint=J.submitEndpoint:J.submitNavigationEndpoint&&(this.navigationEndpoint=J.submitNavigationEndpoint)};
_.V.handleSignalActionSubmitForm=function(){var J,c=Object.keys(((J=this.reportChannelAbuseForm)==null?void 0:J.selectedVideoIds)||{}),m;J=((m=this.reportChannelAbuseForm)==null?void 0:m.additionalContext)||"";var b;m=((b=this.reportChannelAbuseForm)==null?void 0:b.impersonatedChannelUrl)||"";var x;if((x=this.data)==null?0:x.submitEndpoint){c={impersonated_channel_url:m,text:J,video_ids:c};var P;_.BG().resolve(_.gu).resolveCommand((P=this.data)==null?void 0:P.submitEndpoint,{form:Object.assign({},
c,{element:this.hostElement})})}this.setNextButtonIsDisabled(!0)};
_.V.onYtServiceRequestCompleted=function(){this.resetEndpointData()};
_.V.onYtServiceRequestError=function(J){this.setNextButtonIsDisabled(!1);_.Bg(this.hostElement,J.detail.error.message)};
_.V.setNextButtonIsDisabled=function(J){this.set("data.nextButton.buttonRenderer.isDisabled",J)};
_.V.resetEndpointData=function(){this.submitEndpoint=this.navigationEndpoint=null};
Tx.prototype.onYtServiceRequestError=Tx.prototype.onYtServiceRequestError;Tx.prototype.onYtServiceRequestCompleted=Tx.prototype.onYtServiceRequestCompleted;_.O([_.U(),_.R("design:type",Object)],Tx.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],Tx.prototype,"nextButtonDisabled",void 0);_.O([_.f(_.fY),_.R("design:type",Object)],Tx.prototype,"ytdReduxBehavior",void 0);_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],Tx.prototype,"ytActionHandlerBehavior",void 0);
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Tx.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Tx.prototype,"submitEndpoint",void 0);_.O([_.U(),_.R("design:type",Object)],Tx.prototype,"navigationEndpoint",void 0);_.O([_.U({selector:function(J){return J.reportChannelAbuse}}),
_.R("design:type",Object)],Tx.prototype,"reportChannelAbuseForm",void 0);_.O([_.ps("yt-service-request-completed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],Tx.prototype,"onYtServiceRequestCompleted",null);_.O([_.ps("yt-service-request-error"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],Tx.prototype,"onYtServiceRequestError",null);
Tx=_.O([_.E({is:"ytd-report-channel-modal-footer-renderer",disableElementRegistration:!0})],Tx);
_.v(Tx,"ytd-report-channel-modal-footer-renderer",function(){if(Eqs!==void 0)return Eqs;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return Eqs=J},{mode:1});var vqr;var wZ=function(){var J=_.h.apply(this,arguments)||this;J.boundOnTapDismissButton=function(){J.closePopup()};
return J};
_.D(wZ,_.h);wZ.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapDismissButton]]"}}}}}};
wZ.prototype.handleDataChanged=function(){_.ef(this.hostElement)};
wZ.prototype.closePopup=function(){_.m9(this.hostElement,"yt-close-popup-action")};
wZ.prototype.handleDataChanged=wZ.prototype.handleDataChanged;_.O([_.U(),_.R("design:type",Object)],wZ.prototype,"boundOnTapDismissButton",void 0);_.O([_.U(),_.R("design:type",Object)],wZ.prototype,"data",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],wZ.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],wZ.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],wZ.prototype,"handleDataChanged",null);wZ=_.O([_.E({is:"ytd-report-channel-modal-header-renderer",disableElementRegistration:!0})],wZ);
_.v(wZ,"ytd-report-channel-modal-header-renderer",function(){if(vqr!==void 0)return vqr;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return vqr=J},{mode:1});var OoF;var rZ=function(){var J=_.h.apply(this,arguments)||this;J.autoValidate=!1;J.invalid=!1;J.actionMap={"yt-modify-report-form-command":"handleModifyReportFormCommand"};return J};
_.D(rZ,_.h);_.V=rZ.prototype;_.V.attached=function(){var J=this;this.impersonatedChannelUrlRedux?(this.impersonatedChannelUrl=this.impersonatedChannelUrlRedux,this.handleImpersonatedChannelUrlChanged()):this.impersonatedChannelUrl="";requestAnimationFrame(function(){J.channelUrlInput.focusTextInput()})};
_.V.disableNextButton=function(J){_.m9(this.hostElement,"ytd-report-channel-modal-disable-next-button-action",[J])};
_.V.handleImpersonatedChannelUrlChanged=function(){var J=this;this.disableNextButton(!0);this.invalid=!1;_.hO(this,"ytd-report-channel-impersonated-channel-update",function(){var c=J.impersonatedChannelUrl.trim();J.ytdReduxBehavior.dispatch(_.J7({type:"IMPERSONATED_CHANNEL_URL_UPDATED",payload:c}));var m;((m=J.data)==null?0:m.submitEndpoint)&&c&&_.BG().resolve(_.gu).resolveCommand(J.data.submitEndpoint,{form:{impersonated_channel_url:c,element:J.hostElement}})},500)};
_.V.handleModifyReportFormCommand=function(J){this.invalid=this.get("modifyReportFormCommand.action",J)!=="REPORT_FORM_ACTION_ENABLE_SUBMIT_BUTTON";this.disableNextButton(this.invalid)};
_.V.updateInvalidFromBinding=function(J){this.invalid=J.detail.value};
_.V.updateImpersonatedChannelUrlFromBinding=function(J){this.impersonatedChannelUrl=J.detail.value};
rZ.prototype.handleImpersonatedChannelUrlChanged=rZ.prototype.handleImpersonatedChannelUrlChanged;_.O([_.f(_.fY),_.R("design:type",Object)],rZ.prototype,"ytdReduxBehavior",void 0);_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],rZ.prototype,"ytActionHandlerBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],rZ.prototype,"autoValidate",void 0);_.O([_.U(),_.R("design:type",Object)],rZ.prototype,"invalid",void 0);
_.O([_.U(),_.R("design:type",String)],rZ.prototype,"impersonatedChannelUrl",void 0);_.O([_.U({selector:function(J){return J.reportChannelAbuse.impersonatedChannelUrl}}),
_.R("design:type",String)],rZ.prototype,"impersonatedChannelUrlRedux",void 0);_.O([_.U(),_.R("design:type",Object)],rZ.prototype,"data",void 0);_.O([_.Iu("#text-input"),_.R("design:type",Object)],rZ.prototype,"channelUrlInput",void 0);_.O([_.NE("impersonatedChannelUrl"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],rZ.prototype,"handleImpersonatedChannelUrlChanged",null);
rZ=_.O([_.E({is:"ytd-report-channel-modal-impersonation-renderer",disableElementRegistration:!0})],rZ);
_.v(rZ,"ytd-report-channel-modal-impersonation-renderer",function(){if(OoF!==void 0)return OoF;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return OoF=J},{mode:1});var Ash;var R0R;var sA=function(){return _.h.apply(this,arguments)||this};
_.D(sA,_.h);sA.prototype.onCheckboxToggled=function(J){var c,m,b=(m=_.L((c=this.data)==null?void 0:c.video,_.YW))==null?void 0:m.videoId;b&&this.ytdReduxBehavior.dispatch(J.target.checked?_.J7({type:"VIDEO_SELECTED",payload:b}):_.J7({type:"VIDEO_UNSELECTED",payload:b}))};
sA.prototype.configureRendererStamper=function(){return{video:{id:"video",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isPostCompactVideo:!0}}}}}};
_.eE.Object.defineProperties(sA.prototype,{video:{configurable:!0,enumerable:!0,get:function(){var J,c=(J=this.data)==null?void 0:J.video;if(!c)return{};var m;J=(m=_.L(c,_.YW))==null?void 0:m.navigationEndpoint;if(!J)return c;_.L(J==null?void 0:J.commandMetadata,_.lk)&&(_.L(J.commandMetadata,_.lk).ignoreNavigation=!0);return c}}});
_.O([_.U({reflectToAttribute:!0,selector:function(J,c){return c in J.reportChannelAbuse.selectedVideoIds},
selectorArgs:["data.video.videoRenderer.videoId"]}),_.R("design:type",Boolean)],sA.prototype,"checked",void 0);_.O([_.U(),_.R("design:type",Object)],sA.prototype,"data",void 0);_.O([_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],sA.prototype,"video",null);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],sA.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],sA.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.f(_.fY),_.R("design:type",Object)],sA.prototype,"ytdReduxBehavior",void 0);sA=_.O([_.E({is:"ytd-selectable-video-renderer",disableElementRegistration:!0})],sA);
_.v(sA,"ytd-selectable-video-renderer",function(){if(R0R!==void 0)return R0R;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return R0R=J},{mode:1});var Lf=function(){var J=_.h.apply(this,arguments)||this;J.monitorScroll=!0;return J};
_.D(Lf,_.h);Lf.prototype.configureRendererStamper=function(){return{"data.selectableVideos":{id:"selectable-videos",mapping:{selectableVideoRenderer:{component:"ytd-selectable-video-renderer"}},events:!0}}};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Lf.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],Lf.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Lf.prototype,"data",void 0);Lf=_.O([_.E({is:"ytd-selectable-video-list-renderer",disableElementRegistration:!0})],Lf);
_.v(Lf,"ytd-selectable-video-list-renderer",function(){if(Ash!==void 0)return Ash;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return Ash=J},{mode:1});var oqe;_.zH("multiPageMenuSectionItems","toggleItemRenderer","ytd-toggle-item-renderer");var Dz=function(){return _.h.apply(this,arguments)||this};
_.D(Dz,_.h);Dz.prototype.onChange=function(J){if(J=_.Ac(J).checked?this.data.toggleOnActions:this.data.toggleOffActions)if(_.w("kevlar_command_handler_migration_killswitch"))_.PA(this.hostElement,J,this.hostElement);else{J=_.M(J);for(var c=J.next();!c.done;c=J.next())this.ytComponentBehavior.resolveCommand(c.value)}};
Dz.prototype.isEnabled=function(){return!!this.data.toggleOnActions||!!this.data.toggleOffActions};
Dz.prototype.updateDataToggledFromBinding=function(J){this.set("data.toggled",J.detail.value)};
_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],Dz.prototype,"ytComponentBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Dz.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Dz.prototype,"data",void 0);_.O([_.U({computed:"isEnabled(data)"}),_.R("design:type",Boolean)],Dz.prototype,"enabled",void 0);Dz=_.O([_.E({is:"ytd-toggle-item-renderer",disableElementRegistration:!0})],Dz);
_.v(Dz,"ytd-toggle-item-renderer",function(){if(oqe!==void 0)return oqe;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return oqe=J},{mode:1});var Qvf;var e0F;var jvo;var Wv=function(){var J=_.h.apply(this,arguments)||this;J.setVisible=!1;J.boundOnSubmitButtonClick=function(){J.onSubmitButtonClick()};
J.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged","yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return J};
_.D(Wv,_.h);Wv.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}}}}}};
Wv.prototype.handleSurveyFlowStepOptionChanged=function(){this.setVisible=!0};
Wv.prototype.onSubmitButtonClick=function(){var J;((J=this.data)==null?0:J.submitEndpoint)&&!_.w("enable_ytc_refunds_submit_form_signal_action")&&_.Vq(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
Wv.prototype.handleSignalActionSubmitForm=function(){var J;((J=this.data)==null?0:J.submitEndpoint)&&_.Vq(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
_.eE.Object.defineProperties(Wv.prototype,{visibilityHidden:{configurable:!0,enumerable:!0,get:function(){var J;return!((J=this.data)==null||!J.hiddenByDefault)&&!this.setVisible}}});
_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],Wv.prototype,"ytActionHandlerBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Wv.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],Wv.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Wv.prototype,"setVisible",void 0);_.O([_.U(),_.R("design:type",Object)],Wv.prototype,"data",void 0);
_.O([_.U(),_.R("design:type",Object)],Wv.prototype,"surveyFeedbackData",void 0);_.O([_.U(),_.R("design:type",Object)],Wv.prototype,"boundOnSubmitButtonClick",void 0);_.O([_.U({reflectToAttribute:!0}),_.q("data","setVisible"),_.R("design:type",Object),_.R("design:paramtypes",[])],Wv.prototype,"visibilityHidden",null);Wv=_.O([_.uM({is:"yt-flow-footer-renderer",disableElementRegistration:!0})],Wv);
_.v(Wv,"yt-flow-footer-renderer",function(){if(jvo===void 0){var J=document.createElement("template");_.z(J,'\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>');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);var c=J.content,m=c.insertBefore;e0F===void 0&&(e0F=document.createElement("template"));var b=e0F;m.call(c,b.content.cloneNode(!0),J.content.firstChild);jvo=J}J=jvo;return J},{mode:2});var zx=function(){return _.h.apply(this,arguments)||this};
_.D(zx,_.h);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],zx.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.fY),_.R("design:type",Object)],zx.prototype,"ytdReduxBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],zx.prototype,"data",void 0);_.O([_.U({selector:function(J){return J.ypc.surveyFeedbackData}}),
_.R("design:type",Object)],zx.prototype,"surveyFeedbackData",void 0);zx=_.O([_.E({disableElementRegistration:!0,is:"ytd-flow-footer-renderer"})],zx);
_.v(zx,"ytd-flow-footer-renderer",function(){if(Qvf!==void 0)return Qvf;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return Qvf=J},{mode:_.mP("kevlar_poly_si_batch_j025")?1:2});var FXp;var loR;var uS=function(){var J=_.h.apply(this,arguments)||this;J.actionMap={"yt-broadcast-user-invalidation-action":"updateMenu_","yt-hide-enclosing-action":"handleHideEnclosingAction_"};return J};
_.D(uS,_.h);_.V=uS.prototype;_.V.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:_.uB("multiPageMenuSectionItems")}}};
_.V.handleHideEnclosingAction_=function(J){if(this.data&&this.data.items)for(var c=0;c<this.data.items.length;c++){var m=this.data.items[c].notificationRenderer;if(m&&m.notificationId==J.hideEnclosingAction.notificationId){this.splice("data.items",c,1);_.m9(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.maybeHideNotificationSection_();break}}};
_.V.maybeHideNotificationSection_=function(){this.data&&this.data.items&&this.data.items.length==0&&_.bM(this.hostElement,"hidden",!0)};
_.V.updateMenu_=function(J){if(this.ytRendererBehavior.parentComponent.isPopUpOpen&&this.data&&this.data.continuations&&J&&!J.doNotRefreshInbox){J=this.data.continuations;for(var c=0;c<J.length;c++)if(J[c].invalidationContinuationData){var m=void 0;var b=(m=J[c].invalidationContinuationData)==null?void 0:m.continuation;break}J=_.Lw.clone(this.data.continuationUpdateEndpoint||null);J.continuation=b;J.click_tracking_params=this.data.trackingParams;_.Vq(this.hostElement,[J])}};
_.V.onServiceRequestCompleted_=function(J,c){if(this.data&&(J=c.actions)){c=0;for(var m=J.length;c<m;c++){var b=_.L(J[c],_.Gtu);if(!b)break;if((b.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"||b.target==="CONTINUATION_TARGET_CONVERSATION_MENU")&&b.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(b.continuationItems))}}}};
uS.prototype.onServiceRequestCompleted_=uS.prototype.onServiceRequestCompleted_;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],uS.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],uS.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],uS.prototype,"ytActionHandlerBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],uS.prototype,"data",void 0);
_.O([_.ps("yt-service-request-completed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,_.Oi]),_.R("design:returntype")],uS.prototype,"onServiceRequestCompleted_",null);uS=_.O([_.uM({is:"yt-multi-page-menu-section-renderer",disableElementRegistration:!0})],uS);
_.cd()(uS,"yt-multi-page-menu-section-renderer",function(){if(loR===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;FXp===void 0&&(FXp=document.createElement("template"));var b=FXp;m.call(c,b.content.cloneNode(!0),J.content.firstChild);loR=J}J=loR;return J},{allowedProps:["data"],
mode:2});var ys1;var Bdr;var ff=function(){return _.h.apply(this,arguments)||this};
_.D(ff,_.h);ff.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}}}};
_.eE.Object.defineProperties(ff.prototype,{showProgressBar:{configurable:!0,enumerable:!0,get:function(){var J;return((J=this.data)==null?void 0:J.progress)!=null}},
progress:{configurable:!0,enumerable:!0,get:function(){var J;return((J=this.data)==null?void 0:J.progress)==null?0:this.data.progress*100}}});
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],ff.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],ff.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],ff.prototype,"data",void 0);_.O([_.q("data.progress"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],ff.prototype,"showProgressBar",null);
_.O([_.q("data.progress"),_.R("design:type",Number),_.R("design:paramtypes",[])],ff.prototype,"progress",null);ff=_.O([_.uM({is:"yt-flow-header-renderer",disableElementRegistration:!0})],ff);
_.v(ff,"yt-flow-header-renderer",function(){if(Bdr===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;ys1===void 0&&(ys1=document.createElement("template"));var b=ys1;m.call(c,b.content.cloneNode(!0),J.content.firstChild);Bdr=J}J=Bdr;return J},{mode:2});var gqu;var JHR;var Yw=function(){return _.h.apply(this,arguments)||this};
_.D(Yw,_.h);Yw.prototype.configureRendererStamper=function(){return{"data.text":{id:"text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Yw.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],Yw.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Yw.prototype,"data",void 0);Yw=_.O([_.uM({is:"yt-post-confirmation-flow-step-renderer",disableElementRegistration:!0})],Yw);
_.v(Yw,"yt-post-confirmation-flow-step-renderer",function(){if(JHR===void 0){var J=document.createElement("template");_.z(J,'\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>');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);var c=J.content,m=c.insertBefore;gqu===void 0&&(gqu=document.createElement("template"));var b=gqu;m.call(c,b.content.cloneNode(!0),J.content.firstChild);JHR=J}J=JHR;return J},{mode:2});var cHR;var mGu;var Xj=function(){return _.h.apply(this,arguments)||this};
_.D(Xj,_.h);
Xj.prototype.configureRendererStamper=function(){return{"data.userInfo":{id:"user-info",mapping:{cardItemTextWithImageRenderer:{component:"yt-card-item-text-with-image-renderer"}}},"data.confirmationText":{id:"confirmation-text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},"data.confirmationDetailsHeader":{id:"confirmation-details",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"}}},"data.productDetails":{id:"product-details",mapping:{activityItemRenderer:{component:"yt-activity-item-renderer"}}},
"data.billingDetails":{id:"billing-details",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Xj.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],Xj.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Xj.prototype,"data",void 0);Xj=_.O([_.uM({is:"yt-refund-confirmation-flow-step-renderer",disableElementRegistration:!0})],Xj);
_.v(Xj,"yt-refund-confirmation-flow-step-renderer",function(){if(mGu===void 0){var J=document.createElement("template");_.z(J,'\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>');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);var c=J.content,m=c.insertBefore;cHR===void 0&&(cHR=document.createElement("template"));var b=cHR;m.call(c,b.content.cloneNode(!0),J.content.firstChild);mGu=J}J=mGu;return J},{mode:2});_.J5(E3r);_.J5(v3f);var Olo=_.Hg({avatarViewModel:_.s8});_.J5(A0R);var RmR=_.Hg({commentInteractionViewModel:v3f,sharedSubscriptionViewModel:A0R,buttonViewModel:_.XU});_.J5(o34);_.J5(Qze);_.J5(emS);_.J5(jzu);_.J5(Fys);var lPF=_.Hg({profileIdentityInfoViewModel:_.lxR,profileInfoViewModel:Fys});_.J5(y0s);_.xx(y0s,"yt-profile-card-view-model",{propNames:["data"]});var Zz=function(){var J=_.h.apply(this,arguments)||this;J.enableFocusFix=_.w("music_web_enable_focus_on_setting_menu_fix")&&_.Ss("IS_MOBILE_WEB",!1);J.covered=!1;J.hideMenu=!1;J.isCommentNotificationOnProfileCard=!1;J.scrolledByTouch=!1;J.disableBackdropFilter=_.w("web_disable_backdrop_filter");J.HIGH_PRIORITY_NOTIFICATION_DISPLAY_TIMEOUT_MS=4E3;return J};
_.D(Zz,_.h);_.V=Zz.prototype;
_.V.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"}}}};
_.V.ready=function(){var J=this;this.JSC$17945_containerElement.addEventListener("scroll",function(){J.ytRendererBehavior.markDirty()})};
_.V.attributeChanged=function(J,c){J==="menu-style"&&_.m9(this.hostElement,"yt-multi-page-menu-closed-action",[c])};
_.V.detached=function(){this.hostElement.removeEventListener("yt-rendererstamper-finished",_.ME(this,this.focusOnStampFinished))};
_.V.focusFirstItem=function(){this.doFocus();this.hostElement.addEventListener("yt-rendererstamper-finished",_.ME(this,this.focusOnStampFinished))};
_.V.reset=function(){this.closeJobId&&(_.ft.cancelJob(this.closeJobId),this.closeJobId=0);this.covered=!1};
_.V.focusOnStampFinished=function(J){J.detail.container===this.sectionsElement&&(this.hostElement.removeEventListener("yt-rendererstamper-finished",_.ME(this,this.focusOnStampFinished)),this.doFocus())};
_.V.doFocus=function(){var J=_.BpQ(this.sectionsElement);J.length&&J[0].focus()};
_.V.computeMenuStyle=function(J){return J?J.toLowerCase().replace(/_/g,"-"):""};
_.V.computeIsCommentNotificationOnProfileCard=function(J){return _.w("enable_profile_cards_on_comments")&&J.style==="MULTI_PAGE_MENU_STYLE_TYPE_PROFILE_CARD_COMMENTS"};
_.V.computeHideMenu=function(J,c){return J||!(!c||!c.showLoadingSpinner)};
_.V.onPopupClosed=function(){this.isPopUpOpen=!1;_.m9(this.hostElement,"yt-multi-page-menu-closed-action",[this.menuStyle])};
_.V.onPopupOpened=function(J,c){this.isPopUpOpen=!0;c.is==="ytd-multi-page-menu-renderer"&&(this.reset(),_.cA(this.hostElement,"yt-refit"),this.enableFocusFix&&this.doFocus(),this.data.style==="MULTI_PAGE_MENU_STYLE_TYPE_REPORT_CHANNEL"&&this.ytdReduxBehavior.dispatch(_.J7({type:"CHANNEL_REPORT_RESET"})))};
_.V.onYtNavigate=function(J,c){this.shouldCloseOnNavigateEvent(c.endpoint)&&_.m9(this.hostElement,"yt-close-all-popups-action")};
_.V.handleEndpoint=function(J){J=_.L(J,_.LO);!this.isCommentNotificationOnProfileCard&&J&&(this.spinnerElement.hidden=!1,this.headerElement.hidden=!0,this.JSC$17945_containerElement.hidden=!0,this.submenuElement.hidden=!0)};
_.V.handleActions=function(J){for(var c=0,m=J.length;c<m;c++){var b=_.L(J[c],IQe);b&&this.handleGetMultiPageMenuAction(b);(b=_.L(J[c],_.Gtu))&&this.handleAppendContinuationItemsAction(b)}};
_.V.onServiceRequestSentOrCompleted=function(J,c){J.detail&&J.detail.endpoint&&this.handleEndpoint(J.detail.endpoint);c.actions&&this.handleActions(c.actions)};
_.V.handleGetMultiPageMenuAction=function(J){var c=document.createElement("ytd-multi-page-menu-renderer");this.refitAfterRender();this.emptySubmenuContainer();_.Bj(this.submenuElement).appendChild(c);(J=J.menu.multiPageMenuRenderer)&&this.logSubmenu(J);c.data=J;c.covered=!1;this.covered=!0;this.spinnerElement.hidden=!0};
_.V.handleAppendContinuationItemsAction=function(J){if(this.data&&J.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"&&J.continuationItems&&this.data.sections){var c=this.data.sections.length-1;this.data.sections[c].continuationItemRenderer&&(this.splice("data.sections",this.data.sections.length-1,1),c--);if(this.data.sections[c].multiPageMenuNotificationSectionRenderer&&J.continuationItems){J=_.M(J==null?void 0:J.continuationItems);for(var m=J.next();!m.done;m=J.next())if(m=m.value,_.L(m,$PR)){var b=
void 0,x=void 0,P=void 0,p=void 0,t=void 0;((b=this)==null?0:(x=b.data)==null?0:(P=x.sections)==null?0:(p=P[c])==null?0:(t=p.multiPageMenuNotificationSectionRenderer)==null?0:t.items)&&this.push("data.sections."+c+".multiPageMenuNotificationSectionRenderer.items",m)}else if(_.L(m,_.Wsj)||_.L(m,_.cH))this.push("data.sections",m),c++}}};
_.V.logSubmenu=function(J){if(!_.w("kevlar_multi_page_menu_sub_page_loggin_killswitch")){var c=this.ytRendererBehavior.getScreenLayer(),m=_.Y3(c),b=_.fl(c);if((J=J.trackingParams)&&m&&b){var x=_.n7(J);_.w("combine_ve_grafts")?_.C7().graftServerVe(J,b,c):_.$2(m,b,x)}}};
_.V.emptySubmenuContainer=function(){for(var J=_.Bj(this.submenuElement);J.firstChild;)J.removeChild(J.firstChild)};
_.V.onMenuBackTap=function(J){_.cA(this.hostElement,"yt-submenu-closed");J.stopPropagation()};
_.V.onSubmenuClosed=function(J){_.Ac(J)!==this.hostElement&&(this.covered=!1,_.cA(this.hostElement,"yt-refit"),J.stopPropagation())};
_.V.onRetrieveLocation=function(J,c){c.hasComments&&(c.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0),J.stopPropagation())};
_.V.shouldCloseOnNavigateEvent=function(J){if(!J)return!0;if(_.L(J,_.LRZ)||_.L(J,_.DBu)||_.L(J,_.sEB)||_.L(J,_.Ee))return!1;var c;return((c=_.L(J==null?void 0:J.commandMetadata,_.lk))==null?0:c.ignoreNavigation)?!1:!0};
_.V.onContainerTouchStart=function(){this.scrolledByTouch=!0};
_.V.onContainerTouchEnd=function(){this.scrolledByTouch=!1};
_.V.refitAfterRender=function(){var J=this;_.o3(this,function(){_.cA(J.hostElement,"yt-refit")})};
Zz.prototype.refitAfterRender=Zz.prototype.refitAfterRender;Zz.prototype.onRetrieveLocation=Zz.prototype.onRetrieveLocation;Zz.prototype.onSubmenuClosed=Zz.prototype.onSubmenuClosed;Zz.prototype.onMenuBackTap=Zz.prototype.onMenuBackTap;Zz.prototype.onServiceRequestSentOrCompleted=Zz.prototype.onServiceRequestSentOrCompleted;Zz.prototype.onYtNavigate=Zz.prototype.onYtNavigate;Zz.prototype.onPopupOpened=Zz.prototype.onPopupOpened;Zz.prototype.onPopupClosed=Zz.prototype.onPopupClosed;
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Zz.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.Ci.YtEventForwardingBehavior),_.R("design:type",Object)],Zz.prototype,"ytEventForwardingBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],Zz.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.fY),_.R("design:type",Object)],Zz.prototype,"ytdReduxBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Zz.prototype,"data",void 0);
_.O([_.U(),_.R("design:type",Object)],Zz.prototype,"enableFocusFix",void 0);_.O([_.U(),_.R("design:type",Object)],Zz.prototype,"covered",void 0);_.O([_.U({computed:"computeHideMenu(covered, data)"}),_.R("design:type",Object)],Zz.prototype,"hideMenu",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeMenuStyle(data.style)"}),_.R("design:type",String)],Zz.prototype,"menuStyle",void 0);
_.O([_.U({computed:"computeIsCommentNotificationOnProfileCard(data)"}),_.R("design:type",Object)],Zz.prototype,"isCommentNotificationOnProfileCard",void 0);_.O([_.U(),_.R("design:type",Boolean)],Zz.prototype,"isPopUpOpen",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Zz.prototype,"scrolledByTouch",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Zz.prototype,"disableBackdropFilter",void 0);
_.O([_.Iu("#sections"),_.R("design:type",HTMLElement)],Zz.prototype,"sectionsElement",void 0);_.O([_.Iu("#spinner"),_.R("design:type",HTMLElement)],Zz.prototype,"spinnerElement",void 0);_.O([_.Iu("#header"),_.R("design:type",HTMLElement)],Zz.prototype,"headerElement",void 0);_.O([_.Iu("#container"),_.R("design:type",HTMLElement)],Zz.prototype,"JSC$17945_containerElement",void 0);_.O([_.Iu("#submenu"),_.R("design:type",HTMLElement)],Zz.prototype,"submenuElement",void 0);
_.O([_.ps("yt-popup-closed"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Zz.prototype,"onPopupClosed",null);_.O([_.ps("yt-popup-opened"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,Object]),_.R("design:returntype")],Zz.prototype,"onPopupOpened",null);_.O([_.ps("yt-navigate"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,Object]),_.R("design:returntype")],Zz.prototype,"onYtNavigate",null);
_.O([_.ps("yt-service-request-completed"),_.ps("yt-service-request-sent"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,_.Oi]),_.R("design:returntype")],Zz.prototype,"onServiceRequestSentOrCompleted",null);_.O([_.ps("yt-menu-back-tapped"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],Zz.prototype,"onMenuBackTap",null);
_.O([_.ps("yt-submenu-closed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],Zz.prototype,"onSubmenuClosed",null);_.O([_.ps("yt-retrieve-location"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,Object]),_.R("design:returntype")],Zz.prototype,"onRetrieveLocation",null);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Zz.prototype,"refitAfterRender",null);
Zz=_.O([_.E({is:"ytd-multi-page-menu-renderer",disableElementRegistration:!0})],Zz);
_.v(Zz,"ytd-multi-page-menu-renderer",function(){if(S05!==void 0)return S05;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return S05=J},{mode:1});var bYR;var q1=function(){var J=_.h.apply(this,arguments)||this;J.actionMap={"yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction","yt-update-topbar-avatar-action":"handleUpdateTopbarAvatarAction"};return J};
_.D(q1,_.h);_.V=q1.prototype;_.V.created=function(){this.showTooltips=!0};
_.V.computeAccessibility_=function(J){return this.get("accessibility.accessibilityData",J)||null};
_.V.onTap=function(){var J=_.bJ(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]);this.toggleIconState(!0);if(J&&J.length===1&&J[0])_.m9(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);else{var c;if((c=this.data)==null?0:c.menuRenderer)this.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:this.data.menuRenderer}});else{var m;((m=this.data)==null?0:m.menuRequest)&&_.Vq(this.hostElement,[this.data.menuRequest])}}};
_.V.handleTopbarMenuClosedAction=function(J){var c,m;(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(J)===((c=this.data)==null?void 0:(m=c.icon)==null?void 0:m.iconType)&&this.toggleIconState(!1)};
_.V.toggleIconState=function(J){_.w("kevlar_system_icons")&&this.iconButton&&(this.iconButton.pressed=J)};
_.V.handleUpdateTopbarAvatarAction=function(J){var c;J=(c=_.L(J,xPp))==null?void 0:c.avatarUrl;var m,b;c=(m=this.data)==null?void 0:(b=m.avatar)==null?void 0:b.thumbnails;J&&c&&(m={thumbnails:[Object.assign({},c[0],{url:J})]},this.set("data.avatar",m))};
_.eE.Object.defineProperties(q1.prototype,{container:{configurable:!0,enumerable:!0,get:function(){return _.Bj(this.hostElement).querySelector("#button")}}});
q1.prototype.onTap=q1.prototype.onTap;_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],q1.prototype,"ytActionHandlerBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],q1.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.vL),_.R("design:type",Object)],q1.prototype,"ytdOpenPopupBehavior",void 0);_.O([_.f(_.Br$.YtButtonBehavior),_.R("design:type",Object)],q1.prototype,"ytButtonBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],q1.prototype,"data",void 0);
_.O([_.Iu("yt-icon-button#button"),_.R("design:type",Object)],q1.prototype,"iconButton",void 0);_.O([_.ps("tap"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],q1.prototype,"onTap",null);q1=_.O([_.E({is:"ytd-topbar-menu-button-renderer",disableElementRegistration:!0})],q1);
_.v(q1,"ytd-topbar-menu-button-renderer",function(){if(bYR!==void 0)return bYR;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return bYR=J},{mode:1});var xGR;var UA=function(){return _.h.apply(this,arguments)||this};
_.D(UA,_.h);UA.prototype.getSelected=function(){return this.reasons.selected};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],UA.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],UA.prototype,"data",void 0);_.O([_.Iu("#reasons"),_.R("design:type",Object)],UA.prototype,"reasons",void 0);UA=_.O([_.E({is:"ytd-ad-feedback-content",disableElementRegistration:!0})],UA);
_.v(UA,"ytd-ad-feedback-content",function(){if(xGR!==void 0)return xGR;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return xGR=J},{mode:1});var VOR;var SI=function(){return _.h.apply(this,arguments)||this};
_.D(SI,_.h);_.V=SI.prototype;_.V.onPopupOpened=function(){_.m9(this.hostElement,"yt-mute-ad-action",["ytd-ad-feedback-renderer",this])};
_.V.computeConfirmButton=function(J){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:J.confirmLabel}};
_.V.computeCancelButton=function(J){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:J.cancelLabel}};
_.V.onConfirmTap=function(){var J=this.content.getSelected();J!==void 0&&(J=this.data.reasons[J].endpoint)&&(_.BG().resolve(_.gu).resolveCommand(J,{form:{element:this.hostElement}}),_.m9(this.hostElement,"yt-close-popup-action"),this.sendFeedbackSubmitToastAction())};
_.V.sendFeedbackSubmitToastAction=function(){var J;(J=this.data)!=null&&J.completionMessage&&_.m9(this.hostElement,"yt-open-popup-action",[_.Q_(this.data.completionMessage),this])};
_.V.onCancelTap=function(){_.m9(this.hostElement,"yt-close-popup-action")};
SI.prototype.onPopupOpened=SI.prototype.onPopupOpened;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],SI.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],SI.prototype,"data",void 0);_.O([_.Iu("#content"),_.R("design:type",Object)],SI.prototype,"content",void 0);_.O([_.ps("yt-popup-opened"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],SI.prototype,"onPopupOpened",null);
SI=_.O([_.E({is:"ytd-ad-feedback-renderer",disableElementRegistration:!0})],SI);
_.v(SI,"ytd-ad-feedback-renderer",function(){if(VOR!==void 0)return VOR;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return VOR=J},{mode:1});var PuF;var hw=function(){return _.h.apply(this,arguments)||this};
_.D(hw,_.h);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],hw.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],hw.prototype,"data",void 0);hw=_.O([_.E({is:"ytd-ad-info-dialog-content",disableElementRegistration:!0})],hw);
_.v(hw,"ytd-ad-info-dialog-content",function(){if(PuF!==void 0)return PuF;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return PuF=J},{mode:1});var MOR;var dZ=function(){return _.h.apply(this,arguments)||this};
_.D(dZ,_.h);dZ.prototype.computeConfirmButton=function(J){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:J.confirmLabel}};
dZ.prototype.onConfirmTap=function(){_.m9(this.hostElement,"yt-close-popup-action",["ytd-ad-info-dialog-renderer"])};
dZ.prototype.computeShouldShowTitle=function(){var J;return!((J=this.data)==null||!J.title)};
dZ.prototype.onPopupClosed=function(){this.data&&this.data.confirmServiceEndpoint&&_.BG().resolve(_.gu).resolveCommand(this.data.confirmServiceEndpoint,{form:{element:this.hostElement}})};
dZ.prototype.onPopupClosed=dZ.prototype.onPopupClosed;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],dZ.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],dZ.prototype,"data",void 0);_.O([_.ps("yt-popup-closed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],dZ.prototype,"onPopupClosed",null);dZ=_.O([_.E({is:"ytd-ad-info-dialog-renderer",disableElementRegistration:!0})],dZ);
_.v(dZ,"ytd-ad-info-dialog-renderer",function(){if(MOR!==void 0)return MOR;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return MOR=J},{mode:1});var pXR;var $w=function(){var J=_.h.apply(this,arguments)||this;J.actionButtonClass="action-button";J.dismissButtonId="dismiss-button";J.dialogDismiss=!0;return J};
_.D($w,_.h);_.V=$w.prototype;_.V.computeInPlayer=function(J){return(J==null?void 0:J.displayType)==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"};
_.V.computedLogo=function(){var J,c;return this.isDarkTheme()?(J=this.data)==null?void 0:J.logoDark:(c=this.data)==null?void 0:c.logo};
_.V.computedHeaderImage=function(){var J,c;return this.isDarkTheme()?(J=this.data)==null?void 0:J.headerImageDark:(c=this.data)==null?void 0:c.headerImage};
_.V.computeLogoIconId=function(){var J,c,m,b=(J=this.computedLogo())==null?void 0:(c=J.sources)==null?void 0:(m=c[0])==null?void 0:m.height;return b&&b%31===0?"logo-icon-with-padding":"logo-icon"};
_.V.computeLogoIconHeight=function(){var J,c,m,b=(J=this.computedLogo())==null?void 0:(c=J.sources)==null?void 0:(m=c[0])==null?void 0:m.height;return b&&b%31===0?"31":"24"};
_.V.onPopupClosed=function(){_.BG().resolve(_.cc).dispose()};
_.V.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")||this.inPlayer};
_.V.onShow=function(){this.inPlayer&&_.pv(6)};
_.V.impressionLog=function(){if(this.data&&this.data.impressionEndpoints)for(var J=0;J<this.data.impressionEndpoints.length;J++){var c=_.L(this.data.impressionEndpoints[J],_.Xz);c&&this.ytComponentBehavior.resolveCommand(c)}};
_.V.onDismissClicked=function(){getComputedStyle(this.dismissButton).getPropertyValue("pointer-events")!=="none"&&_.m9(this.hostElement,"yt-close-popup-action",["ytd-enforcement-message-view-model"])};
_.eE.Object.defineProperties($w.prototype,{hasHeaderImage:{configurable:!0,enumerable:!0,get:function(){var J,c;return!((J=this.data)==null||!J.headerImageDark)&&!((c=this.data)==null||!c.headerImage)}},
hasPremiumButton:{configurable:!0,enumerable:!0,get:function(){var J;return!((J=this.data)==null||!J.secondaryButton)}}});
$w.prototype.onPopupClosed=$w.prototype.onPopupClosed;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],$w.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],$w.prototype,"ytComponentBehavior",void 0);_.O([_.f(_.hg.YtVisibilityBehavior),_.R("design:type",Object)],$w.prototype,"ytVisibilityBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],$w.prototype,"data",void 0);
_.O([_.U(),_.R("design:type",Object)],$w.prototype,"actionButtonClass",void 0);_.O([_.U(),_.R("design:type",Object)],$w.prototype,"dismissButtonId",void 0);_.O([_.U(),_.R("design:type",Object)],$w.prototype,"dialogDismiss",void 0);_.O([_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],$w.prototype,"hasHeaderImage",null);_.O([_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],$w.prototype,"hasPremiumButton",null);
_.O([_.U({reflectToAttribute:!0,computed:"computeInPlayer(data)"}),_.R("design:type",Boolean)],$w.prototype,"inPlayer",void 0);_.O([_.Iu("#dismiss-button"),_.R("design:type",HTMLElement)],$w.prototype,"dismissButton",void 0);_.O([_.ps("yt-popup-closed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],$w.prototype,"onPopupClosed",null);$w=_.O([_.E({is:"ytd-enforcement-message-view-model",disableElementRegistration:!0})],$w);
_.v($w,"ytd-enforcement-message-view-model",function(){if(pXR!==void 0)return pXR;var J=document.createElement("template");_.z(J,'\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>');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return pXR=J},{mode:1});var NOp;var tOu;var Gx=function(){var J=_.h.apply(this,arguments)||this;J.TEST_ONLY={immediateValidation:function(){J.immediateValidation()},
onValidationResponse:function(c){J.onValidationResponse(c)},
onGenerateHandleFromNameResponse:function(c){J.onGenerateHandleFromNameResponse(c)}};
return J};
_.D(Gx,_.h);_.V=Gx.prototype;_.V.onValueChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("value-changed",{detail:{value:this.value,queueProperty:!0}}))};
_.V.validate=function(){this.immediateValidation()};
_.V.applyHandleEdit=function(){this.handleEdit!==void 0&&this.setHandleInputValue(this.handleEdit)};
_.V.setHandleInputValue=function(J){this.handleDir=this.getHandleDir(J);this.handleInput.value=J;this.validationState={status:"PENDING"};this.immediateValidation()};
_.V.getHandleDir=function(J){var c=J===""&&!1;return(c=_.RMz.test.call(_.RMz,J))?"rtl":"ltr"};
_.V.onDataChanged=function(){var J,c;this.handleDir=this.getHandleDir((c=(J=this.data)==null?void 0:J.handle)!=null?c:"");var m;this.validationState=((m=this.data)==null?0:m.handle)?{status:"UNKNOWN",handle:this.data.handle}:void 0;var b;((b=this.data)==null?0:b.validateOnInit)&&this.immediateValidation()};
_.V.stopPropagation=function(J){J.stopPropagation()};
_.V.onInput=function(){var J;this.handleDir=this.getHandleDir((J=this.handleInput.value)!=null?J:"");this.wasEdited=!0;this.validationState={status:"PENDING"};this.delayedValidation()};
_.V.onFocusout=function(J){this.handleInput.contains(J.relatedTarget)||this.validationState!==void 0&&this.validationState.status!=="PENDING"||this.immediateValidation()};
_.V.delayedValidation=function(){var J,c;this.debouncedValidation((c=(J=this.data)==null?void 0:J.validationDelayMs)!=null?c:1E3)};
_.V.immediateValidation=function(){this.debouncedValidation(0)};
_.V.debouncedValidation=function(J){var c=this;_.hO(this,"debouncedValidation",function(){var m,b=c.staticValidation((m=c.handleInput.value)!=null?m:"");if(b!==void 0)c.validationState={status:"INVALID",errorIndicator:"BORDER",errorMessage:b};else{var x;if((x=c.data)!=null&&x.validateChannelHandleCommand){c.validationState={status:"LOADING"};var P;c.ytComponentBehavior.resolveCommand(c.data.validateChannelHandleCommand,{form:{handle:(P=c.handleInput.value)!=null?P:""},commandController:{onSuccess:function(p,
t){c.onValidationResponse(t)},
onServerError:function(p,t){c.onValidationServerError(t)}}})}else c.handleUnexpectedValidationError(new _.w3("Missing validateChannelHandleCommand in ChannelHandleInputRenderer.",c.data))}},J)};
_.V.staticValidation=function(J){var c;if(((c=this.data)==null?void 0:c.channelHandleStaticValidationParams)!==void 0){c=this.data.channelHandleStaticValidationParams;if(this.validValueRegexp!==void 0&&!this.validValueRegexp.test(J)&&c.validValueRegexpErrorMessage!==void 0)return c.validValueRegexpErrorMessage;if(c.minLength!==void 0&&J.length<c.minLength&&c.minLengthErrorMessage!==void 0)return c.minLengthErrorMessage;if(c.maxLength!==void 0&&J.length>c.maxLength&&c.maxLengthErrorMessage!==void 0)return c.maxLengthErrorMessage}};
_.V.onValidationResponse=function(J){var c=_.L(J.result,Vvr);c===void 0?this.handleUnexpectedValidationError(new _.w3("ValidateChannelHandleResponse does not contain ChannelHandleValidationResultRenderer.",J)):this.handleValidationResultRenderer(c)};
_.V.onValidationServerError=function(J){this.handleUnexpectedValidationError(new _.w3("ValidateChannelHandle request failed.",J))};
_.V.handleValidationResultRenderer=function(J){if(J.handle===void 0)this.handleUnexpectedValidationError(new _.w3("ChannelHandleValidationResultRenderer does not contain handle.",J));else if(J.handle===this.handleInput.value)switch(J.result){case "CHANNEL_HANDLE_VALIDATION_RESULT_OK":this.validationState={status:"OK",handle:J.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:J.errorMessage};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNKNOWN":case void 0:this.handleUnexpectedValidationError(new _.w3("Unrecognized ChannelHandleValidationResult",J));break;default:_.Pu(J.result)}};
_.V.handleUnexpectedValidationError=function(J){var c;this.validationState={status:"UNKNOWN",handle:(c=this.handleInput.value)!=null?c:""};_.qz(J)};
_.V.stopEventPropagation=function(J){J.stopPropagation()};
_.V.updateHandleOnChannelNameInputChange=function(J){if(!this.wasEdited){var c,m;this.debouncedGenerateHandleFromName(J,(m=(c=this.data)==null?void 0:c.validationDelayMs)!=null?m:1E3)}};
_.V.debouncedGenerateHandleFromName=function(J,c){var m=this;_.hO(this,"debouncedGenerateHandleFromName",function(){var b;(b=m.data)!=null&&b.validateChannelHandleCommand?m.ytComponentBehavior.resolveCommand(m.data.validateChannelHandleCommand,{form:{name:J},commandController:{onSuccess:function(x,P){m.onGenerateHandleFromNameResponse(P)},
onServerError:function(x,P){_.qz(new _.w3("Error calling GenerateHandleFromName",P))}}}):_.qz(new _.w3("Missing validateChannelHandleCommand in ChannelHandleInputRenderer when generate handle from name.",m.data))},c)};
_.V.onGenerateHandleFromNameResponse=function(J){this.wasEdited||((J=_.L(J.result,Peo))?this.setHandleInputValue(J.handle):_.qz(new _.w3("Invalid results when generate handle from name")))};
_.eE.Object.defineProperties(Gx.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var J;if(J=this.validationState)J=this.validationState,J=J.status==="OK"||J.status==="UNKNOWN";if(J)return this.validationState.handle}},
errorIndicator:{configurable:!0,enumerable:!0,get:function(){var J;if(((J=this.validationState)==null?void 0:J.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 J,c=(J=this.channelHandleEntity)==null?void 0:J.handleEdit;this.handleDir=this.getHandleDir(c!=null?c:"");return c}},
validValueRegexp:{configurable:!0,enumerable:!0,get:function(){var J,c;if(((J=this.data)==null?void 0:(c=J.channelHandleStaticValidationParams)==null?void 0:c.validValueRegexp)!==void 0)return new RegExp("^"+this.data.channelHandleStaticValidationParams.validValueRegexp+"$")}}});
Gx.prototype.stopEventPropagation=Gx.prototype.stopEventPropagation;Gx.prototype.onDataChanged=Gx.prototype.onDataChanged;Gx.prototype.applyHandleEdit=Gx.prototype.applyHandleEdit;Gx.prototype.onValueChanged=Gx.prototype.onValueChanged;_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],Gx.prototype,"ytComponentBehavior",void 0);_.O([_.f(_.fY),_.R("design:type",Object)],Gx.prototype,"ytdReduxBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Gx.prototype,"data",void 0);
_.O([_.U(),_.R("design:type",Boolean)],Gx.prototype,"wasEdited",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",String)],Gx.prototype,"handleDir",void 0);_.O([_.Iu("#handle-input"),_.R("design:type",Object)],Gx.prototype,"handleInput",void 0);_.O([_.U(),_.q("validationState"),_.R("design:type",Object),_.R("design:paramtypes",[])],Gx.prototype,"value",null);
_.O([_.NE("value"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Gx.prototype,"onValueChanged",null);_.O([_.q("validationState"),_.R("design:type",Object),_.R("design:paramtypes",[])],Gx.prototype,"errorIndicator",null);_.O([_.U({reflectToAttribute:!0}),_.q("errorIndicator"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Gx.prototype,"borderErrorIndicator",null);
_.O([_.U({selectorArgs:["data.channelHandleEntityKey"],selector:function(J,c){return _.P2(J.entities,"channelHandle",c)}}),
_.R("design:type",Object)],Gx.prototype,"channelHandleEntity",void 0);_.O([_.q("channelHandleEntity"),_.R("design:type",Object),_.R("design:paramtypes",[])],Gx.prototype,"handleEdit",null);_.O([_.NE("handleEdit"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Gx.prototype,"applyHandleEdit",null);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Gx.prototype,"onDataChanged",null);
_.O([_.q("data.channelHandleStaticValidationParams.validValueRegexp"),_.R("design:type",Object),_.R("design:paramtypes",[])],Gx.prototype,"validValueRegexp",null);_.O([_.ps("yt-service-request-sent"),_.ps("yt-service-request-completed"),_.ps("yt-service-request-error"),_.R("design:type",Function),_.R("design:paramtypes",[Event]),_.R("design:returntype")],Gx.prototype,"stopEventPropagation",null);Gx=_.O([_.E({is:"ytd-channel-handle-input-renderer",disableElementRegistration:!0})],Gx);
_.v(Gx,"ytd-channel-handle-input-renderer",function(){if(tOu!==void 0)return tOu;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return tOu=J},{mode:_.mP("kevlar_poly_si_batch_j025")?1:2});var EA=function(){var J=_.h.apply(this,arguments)||this;J.data=null;J.errorMessage=null;J.isLoading=!0;J.hideContainer=!1;J.enableNewChannelCreationOnIdForAll=_.w("enable_new_channel_creation_for_id4all");J.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"};J.testOnly={setErrorMessage:function(c){J.resetErrorState();
J.setErrorState(c)}};
return J};
_.D(EA,_.h);_.V=EA.prototype;_.V.created=function(){this.logScreenVe()};
_.V.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")};
_.V.dataChanged=function(){this.set("isLoading",!1);this.graftServerVe();this.set("errorMessage",null);var J;((J=this.zeroStepErrorMessageEntity)==null?0:J.value)&&this.set("errorMessage",_.v2(this.zeroStepErrorMessageEntity.value))};
_.V.onCreateTap=function(){var J=this;if(this.data&&this.data.channelCreationEndpoint){var c,m;if(!((c=this.data.createChannelButton)==null?0:(m=c.buttonRenderer)==null?0:m.isDisabled)){var b;if((b=this.nameInput)!=null&&b.value){this.setLoadingState();var x,P;c=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((P=this.handleInput)==null?void 0:P.value),isDefaultProfilePhoto:this.data.isDefaultProfilePhoto,obakeImageSource:this.obakeImageSource,enableIdentityForAllChannelCreationDialog:this.enableIdentityForAllChannelCreationDialog});this.ytComponentBehavior.resolveCommand(this.data.channelCreationEndpoint,{form:c,commandController:{onSuccess:function(p,t){J.onChannelCreationEndpointSuccess(t);J.obakeImageSource&&_.zB("channelCreatedWithObakeImage",{imageSourceType:J.obakeImageSource})},
onServerError:function(){J.onChannelCreationEndpointError()}}});
this.maybeWipeZeroStepErrorMessage()}}}};
_.V.endpointRequiresServiceRequestAction=function(J){return!!_.L(J,_.zt)||!!_.L(J,xPp)};
_.V.isNavigateAction=function(J){var c;return!!_.L(J,_.$X)||!!_.L((c=_.L(J,Nye))==null?void 0:c.command,_.$X)};
_.V.isPlaylistAction=function(J){return!!_.L(J,_.DA)||!!_.L(J,_.XI)};
_.V.onChannelCreationEndpointSuccess=function(J){if(J.createChannelError){var c;this.setErrorState((c=J.createChannelError)==null?void 0:c.errorMessage);this.handleInput&&this.handleInput.validate()}else{_.w("enable_secondary_channel_creation_form")&&J.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(J.navigationEndpoint);if(J.actions){c=_.M(J.actions);for(var m=c.next();!m.done;m=c.next())if(m=m.value,this.endpointRequiresServiceRequestAction(m)&&this.ytComponentBehavior.resolveCommand(m),
this.isNavigateAction(m)){var b=void 0;m=_.L((b=_.L(m,Nye))==null?void 0:b.command,_.$X);b=void 0;this.isPlaylistAction((b=m)==null?void 0:b.endpoint)&&(_.m9(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"]),b=void 0,this.ytComponentBehavior.resolveCommand((b=m)==null?void 0:b.endpoint))}}J.actions&&J.actions.some(function(x){var P;return _.L(x,_.$X)||_.L((P=_.L(x,Nye))==null?void 0:P.command,_.$X)})||_.m9(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"])}};
_.V.onChannelCreationEndpointError=function(){this.setErrorState();this.handleInput&&this.handleInput.validate()};
_.V.onCancelTap=function(){var J,c,m;if(!((J=this.data)==null?0:(c=J.cancelButton)==null?0:(m=c.buttonRenderer)==null?0:m.isDisabled)){var b,x,P;J=(b=this.data)==null?void 0:(x=b.cancelButton)==null?void 0:(P=x.buttonRenderer)==null?void 0:P.command;if(!J||!_.L(J,_.IsT)){var p;this.nameInput&&((p=this.data)==null?0:p.name)&&(this.nameInput.value=this.data.name);var t;this.handleInput&&((t=this.data)==null?0:t.channelHandleInput)&&(this.handleInput.data=_.L(this.data.channelHandleInput,MvS));this.encryptedBlobId=
this.previewDataUrl=void 0;this.maybeWipeZeroStepErrorMessage()}}};
_.V.toggleCreateChannelButton=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!this.nameInput.value||this.handleInput&&this.handleInput.value===void 0)};
_.V.onChannelNameInput=function(){this.toggleCreateChannelButton();this.handleInput&&this.nameInput.value&&this.handleInput.updateHandleOnChannelNameInputChange(this.nameInput.value)};
_.V.onClearProfilePhotoTap=function(){var J,c,m;((J=this.data)==null?0:(c=J.clearProfilePhotoButton)==null?0:(m=c.buttonRenderer)==null?0:m.isDisabled)||(this.set("data.isDefaultProfilePhoto",!0),this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0))};
_.V.onEditAvatarTap=function(){var J,c,m;((J=this.data)==null?0:(c=J.editAvatarButton)==null?0:(m=c.buttonRenderer)==null?0:m.isDisabled)||(this.hideContainer=!0,this.openProfilePicturePicker())};
_.V.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)};
_.V.resetErrorState=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);var J;this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",((J=this.data)==null?0:J.isDefaultProfilePhoto)?!0:!1);this.set("isLoading",!1);this.set("errorMessage",null)};
_.V.setErrorState=function(J){this.resetErrorState();if(J)this.set("errorMessage",J);else{var c;if((c=this.zeroStepErrorMessageEntity)==null?0:c.value)this.set("errorMessage",_.v2(this.zeroStepErrorMessageEntity.value));else{var m;((m=this.data)==null?0:m.errorMessage)?this.set("errorMessage",this.data.errorMessage):this.set("errorMessage",null)}}};
_.V.fetchImageBlobWithAlr=function(J,c){c=c===void 0?5:c;var m=this,b,x,P,p,t;return _.N(function(I){switch(I.nextAddress){case 1:return _.K(I,fetch(J,{method:"GET",mode:"cors"}),2);case 2:b=I.yieldResult;if(b.ok){I.jumpTo(3);break}if(c===0)throw Error();x=m.addJitter(Math.pow(2,5-c));return _.K(I,new Promise(function(a){setTimeout(a,x*1E3)}),4);
case 4:return I.return(m.fetchImageBlobWithAlr(J,c-1));case 3:if(!b.headers.get("content-type").split(";").some(function(a){return a.trim()==="text/plain"})){I.jumpTo(5);
break}P=m;p=P.fetchImageBlobWithAlr;return _.K(I,b.text(),6);case 6:return I.return(p.call(P,I.yieldResult,c-1));case 5:return _.K(I,b.blob(),7);case 7:return t=I.yieldResult,I.return(t)}})};
_.V.addJitter=function(J){var c=J*.3*Math.random();Math.random()>.5&&(c*=-1);return J+c};
_.V.openProfilePicturePicker=function(){var J=this,c,m,b,x,P;return _.N(function(p){if(p.nextAddress==1){c=J.data.scottyUploadUrl;if(!c)return p.return();m=document.documentElement.hasAttribute("dark");b=document.body.style.colorScheme;m&&(document.body.style.colorScheme="dark");x=Ivs(Kme(tL1(bZ5(m?"dark":"light")),function(t){var I,a,k,H,T;return _.N(function(r){if(r.nextAddress==1)return I=_.UK(n1u(new w$(t.photoUrl,!1)).build(),"alr","yes"),J.obakeImageSource=J.pictureChangeSourceToObakeImageSourceType(t.photoSource),
_.xL(r,2),J.setLoadingState(),_.K(r,J.fetchImageBlobWithAlr(I),4);if(r.nextAddress!=2)return a=r.yieldResult,k=new FileReader,k.addEventListener("load",function(){var W,Y,Z,d,G,e;return _.N(function(A){if(A.nextAddress==1){if(a.size>15728640)return J.setErrorState((W=J.data)==null?void 0:W.imageSizeErrorMessage),_.qz(Error("hl")),A.return();if(!k.result)return J.setErrorState((Y=J.data)==null?void 0:Y.genericImageLoadErrorMessage),_.qz(Error("il")),A.return();Z=k.result;_.xL(A,2);return _.K(A,BKF(a,
c),4)}if(A.nextAddress!=2)return d=A.yieldResult,J.handleImageUpdatedAction(Z,d),J.resetErrorState(),_.EO(A,0);G=_.NM(A);J.setErrorState((e=J.data)==null?void 0:e.uploadErrorMessage);if(G instanceof Error)_.Xc(G);else{var l=new _.w3(JSON.stringify(G));_.Xc(l)}_.tD(A)})}),k.readAsDataURL(a),_.EO(r,0);
H=_.NM(r);J.setErrorState((T=J.data)==null?void 0:T.genericImageLoadErrorMessage);H instanceof Error?_.Xc(H):_.Zt(new _.w3(JSON.stringify(H)));_.tD(r)})}),function(){J.hideContainer=!1;
document.body.style.colorScheme=b});
_.xL(p,2);return _.K(p,x.openPicker(),4)}if(p.nextAddress!=2)return _.EO(p,0);_.NM(p);J.setErrorState((P=J.data)==null?void 0:P.selectImageErrorMessage);_.tD(p)})};
_.V.pictureChangeSourceToObakeImageSourceType=function(J){switch(J){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}};
_.V.logScreenVe=function(){_.ge(_.C7(),124448)};
_.V.graftServerVe=function(){var J=_.fl(),c,m,b=(c=this.data)==null?void 0:(m=c.loggingDirectives)==null?void 0:m.trackingParams;b&&J&&(this.channelCreationFormVe=_.C7().graftServerVe(b,J),J={visualElement:this.channelCreationFormVe},_.IA().reportShown(J))};
_.V.isNameChanged=function(J){var c;return((c=this.data)==null?void 0:c.name)!==J};
_.V.isHandleChanged=function(J){var c,m=_.L((c=this.data)==null?void 0:c.channelHandleInput,MvS);return m&&J?m.handle!==J:!1};
_.V.handleImageUpdatedAction=function(J,c){this.hideContainer=!1;this.previewDataUrl=J;this.encryptedBlobId=c};
_.V.handleImageSelectionErrorAction=function(J){this.hideContainer=!1;this.setErrorState(J)};
_.V.handleImageSelectionResetErrorAction=function(){this.hideContainer=!1;this.resetErrorState()};
_.V.showContainer=function(){this.hideContainer=!1};
_.V.maybeWipeZeroStepErrorMessage=function(){var J,c=(J=this.data)==null?void 0:J.zeroStepErrorMessageEntityKey,m;c&&((m=this.zeroStepErrorMessageEntity)==null?0:m.value)&&this.ytdReduxBehavior.dispatch(_.It("stringEntity",c,{key:c,value:""}))};
_.eE.Object.defineProperties(EA.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 J;return((J=this.photoThumbnail)==null?0:J.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 J;return!((J=this.data)==null||!J.descriptionInfo)}},
description:{configurable:!0,enumerable:!0,get:function(){var J;return(J=this.data)==null?void 0:J.descriptionInfo}}});
EA.prototype.dataChanged=EA.prototype.dataChanged;_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],EA.prototype,"ytComponentBehavior",void 0);_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],EA.prototype,"ytActionHandlerBehavior",void 0);_.O([_.f(_.fY),_.R("design:type",Object)],EA.prototype,"ytdReduxBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],EA.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],EA.prototype,"errorMessage",void 0);
_.O([_.U(),_.R("design:type",Object)],EA.prototype,"isLoading",void 0);_.O([_.U(),_.R("design:type",String)],EA.prototype,"previewDataUrl",void 0);_.O([_.U(),_.R("design:type",Number)],EA.prototype,"obakeImageSource",void 0);_.O([_.U(),_.R("design:type",Object)],EA.prototype,"hideContainer",void 0);_.O([_.Iu("#title-input"),_.R("design:type",Object)],EA.prototype,"nameInput",void 0);_.O([_.Iu("#handle-input"),_.R("design:type",Object)],EA.prototype,"handleInput",void 0);
_.O([_.U(),_.R("design:type",Boolean)],EA.prototype,"enableNewChannelCreationOnIdForAll",void 0);_.O([_.U({selectorArgs:["data.zeroStepErrorMessageEntityKey"],selector:_.F2r}),_.R("design:type",Object)],EA.prototype,"zeroStepErrorMessageEntity",void 0);_.O([_.q("data","data.isDefaultProfilePhoto","previewDataUrl"),_.R("design:type",Object),_.R("design:paramtypes",[])],EA.prototype,"photoThumbnail",null);
_.O([_.q("data","data.isDefaultProfilePhoto","photoThumbnail"),_.R("design:type",Object),_.R("design:paramtypes",[])],EA.prototype,"userSetPhotoThumbnailUrl",null);_.O([_.q("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],EA.prototype,"hideProfilePhotoButtonLayer",null);_.O([_.U({reflectToAttribute:!0}),_.q("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],EA.prototype,"enableIdentityForAllChannelCreationDialog",null);
_.O([_.kr("data","zeroStepErrorMessageEntity"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],EA.prototype,"dataChanged",null);_.O([_.U({reflectToAttribute:!0}),_.q("data.descriptionInfo","zeroStepErrorMessageEntity"),_.R("design:type",Object),_.R("design:paramtypes",[])],EA.prototype,"description",null);EA=_.O([_.E({is:"ytd-channel-creation-dialog-renderer",disableElementRegistration:!0})],EA);
_.v(EA,"ytd-channel-creation-dialog-renderer",function(){if(NOp!==void 0)return NOp;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return NOp=J},{mode:1});var I5p;var vv=function(){var J=_.h.apply(this,arguments)||this;J.isLoading=!1;J.isDisabled=!1;return J};
_.D(vv,_.h);vv.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
vv.prototype.updateDisabled=function(){var J;this.isDisabled=this.isLoading||((J=this.handleInput)==null?void 0:J.value)===void 0;this.set("data.saveButton.buttonRenderer.isDisabled",this.isDisabled)};
vv.prototype.onSaveClick=function(){var J=this;if(!this.isDisabled&&this.handleInput.value!==void 0){var c;((c=this.data)==null?void 0:c.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 m;if((m=J.data)==null?0:m.nextEndpoint){var b;J.ytComponentBehavior.resolveCommand((b=J.data)==null?void 0:b.nextEndpoint)}else J.isLoading=
!1,J.closeDialog()},
onServerError:function(){J.isLoading=!1;J.handleInput.validate();var m;J.errorMessage=(m=J.data)==null?void 0:m.errorMessage}}}))}};
vv.prototype.closeDialog=function(){_.m9(this.hostElement,"yt-close-popup-action",[this.is])};
vv.prototype.updateDisabled=vv.prototype.updateDisabled;_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],vv.prototype,"ytComponentBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],vv.prototype,"data",void 0);_.O([_.Iu("#handle-input"),_.R("design:type",Object)],vv.prototype,"handleInput",void 0);_.O([_.NE("isLoading"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],vv.prototype,"updateDisabled",null);
vv=_.O([_.E({is:"ytd-channel-handle-edit-dialog-renderer",disableElementRegistration:!0})],vv);
_.v(vv,"ytd-channel-handle-edit-dialog-renderer",function(){if(I5p!==void 0)return I5p;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return I5p=J},{mode:1});var KKr;var OA=function(){return _.h.apply(this,arguments)||this};
_.D(OA,_.h);OA.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.feedback":{id:"feedback",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],OA.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],OA.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],OA.prototype,"data",void 0);OA=_.O([_.E({is:"ytd-channel-switcher-footer-renderer",disableElementRegistration:!0})],OA);
_.v(OA,"ytd-channel-switcher-footer-renderer",function(){if(KKr!==void 0)return KKr;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return KKr=J},{mode:1});var Cu5;var a5R;var Aw=function(){return _.h.apply(this,arguments)||this};
_.D(Aw,_.h);Aw.prototype.onIronChange=function(){if(this.checkbox&&this.onDontAskAgainChanged)this.onDontAskAgainChanged(this.checkbox.checked)};
Aw.prototype.onIronChange=Aw.prototype.onIronChange;_.O([_.U(),_.R("design:type",Object)],Aw.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!1}),_.R("design:type",Function)],Aw.prototype,"onDontAskAgainChanged",void 0);_.O([_.Iu("#checkbox"),_.R("design:type",Object)],Aw.prototype,"checkbox",void 0);_.O([_.ps("iron-change"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Aw.prototype,"onIronChange",null);
Aw=_.O([_.E({is:"ytd-identity-prompt-footer-renderer",disableElementRegistration:!0})],Aw);
_.v(Aw,"ytd-identity-prompt-footer-renderer",function(){if(a5R!==void 0)return a5R;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return a5R=J},{mode:1});var R8=function(){var J=_.h.apply(this,arguments)||this;J.dontAskAgain=!1;J.showPopup=!1;J.boundDontAskAgainChanged=function(c){J.dontAskAgainChanged(c)};
J.boundOnAccountItemTap=function(c){J.onAccountItemTap(c)};
return J};
_.D(R8,_.h);_.V=R8.prototype;
_.V.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]]"}}}}}};
_.V.ready=function(){var J=this;_.Bj(this.hostElement).querySelector("#container").addEventListener("scroll",function(){J.ytRendererBehavior.markDirty()})};
_.V.dontAskAgainChanged=function(J){this.dontAskAgain=J};
_.V.onAccountItemTap=function(J){if(J){var c={};this.dontAskAgain&&(c={dont_ask_again:this.dontAskAgain});_.dB(J,c)}};
_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.V.dataChanged=function(){this.data&&this.redirectOnlyAccount(this.data)};
_.V.redirectOnlyAccount=function(J){J.sections&&J.sections.length>0&&(J=_.L(J.sections[0],_.dJ6),(J==null?0:J.contents)&&(J==null?void 0:J.contents.length)<=1?(J=_.Aa(window.location.href),(J==null?0:J.next)&&_.We3(J.next)?_.dB(J.next):_.dB("/")):this.showPopup=!0)};
R8.prototype.dataChanged=R8.prototype.dataChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],R8.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],R8.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],R8.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!1}),_.R("design:type",Object)],R8.prototype,"dontAskAgain",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],R8.prototype,"showPopup",void 0);_.O([_.U({reflectToAttribute:!1}),_.R("design:type",Object)],R8.prototype,"boundDontAskAgainChanged",void 0);_.O([_.U({reflectToAttribute:!1}),_.R("design:type",Object)],R8.prototype,"boundOnAccountItemTap",void 0);_.O([_.kr("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],R8.prototype,"dataChanged",null);
R8=_.O([_.E({is:"ytd-channel-switcher-renderer",disableElementRegistration:!0})],R8);
_.v(R8,"ytd-channel-switcher-renderer",function(){if(Cu5!==void 0)return Cu5;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return Cu5=J},{mode:1});var kXu;var o8=function(){return _.h.apply(this,arguments)||this};
_.D(o8,_.h);_.eE.Object.defineProperties(o8.prototype,{steps:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.steps?this.data.steps:[]}}});
_.O([_.U(),_.R("design:type",Object)],o8.prototype,"data",void 0);_.O([_.q("data"),_.R("design:type",Array),_.R("design:paramtypes",[])],o8.prototype,"steps",null);o8=_.O([_.E({is:"ytd-channel-transfer-stepper-renderer",disableElementRegistration:!0})],o8);
_.v(o8,"ytd-channel-transfer-stepper-renderer",function(){if(kXu!==void 0)return kXu;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return kXu=J},{mode:1});var HY1;var QL=function(){var J=_.h.apply(this,arguments)||this;J.data=null;J.isError=!1;J.isLoading=!1;return J};
_.D(QL,_.h);_.V=QL.prototype;_.V.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"}}}};
_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.V.dataChanged=function(){this.set("isLoading",!1);this.set("isError",!1)};
_.V.computeProfileName=function(J){return J?J.givenNameValue+" "+J.familyNameValue:""};
_.V.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)};
_.V.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)};
QL.prototype.onYtServiceRequestError=QL.prototype.onYtServiceRequestError;QL.prototype.onYtServiceRequestSent=QL.prototype.onYtServiceRequestSent;QL.prototype.dataChanged=QL.prototype.dataChanged;_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],QL.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],QL.prototype,"data",void 0);
_.O([_.U({computed:"computeProfileName(data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer)"}),_.R("design:type",String)],QL.prototype,"profileName",void 0);_.O([_.U(),_.R("design:type",Object)],QL.prototype,"isError",void 0);_.O([_.U(),_.R("design:type",Object)],QL.prototype,"isLoading",void 0);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],QL.prototype,"dataChanged",null);
_.O([_.ps("yt-service-request-sent"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,_.qd]),_.R("design:returntype")],QL.prototype,"onYtServiceRequestSent",null);_.O([_.ps("yt-service-request-error"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,_.qd]),_.R("design:returntype")],QL.prototype,"onYtServiceRequestError",null);QL=_.O([_.E({is:"ytd-channel-warm-welcome-cont-renderer",disableElementRegistration:!0})],QL);
_.v(QL,"ytd-channel-warm-welcome-cont-renderer",function(){if(HY1!==void 0)return HY1;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return HY1=J},{mode:1});var iYu;var eI=function(){var J=_.h.apply(this,arguments)||this;J.data=null;return J};
_.D(eI,_.h);eI.prototype.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
eI.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("autofocus")||this.hostElement.setAttribute("autofocus","true")};
_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],eI.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],eI.prototype,"data",void 0);eI=_.O([_.E({is:"ytd-channel-warm-welcome-renderer",disableElementRegistration:!0})],eI);
_.v(eI,"ytd-channel-warm-welcome-renderer",function(){if(iYu!==void 0)return iYu;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return iYu=J},{mode:1});var nNp;var jI=function(){return _.h.apply(this,arguments)||this};
_.D(jI,_.h);_.eE.Object.defineProperties(jI.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var J;return((J=this.data)==null?void 0:J.authorThumbnail)||{}}}});
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],jI.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],jI.prototype,"data",void 0);_.O([_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],jI.prototype,"thumbnailDetails",null);jI=_.O([_.E({is:"ytd-comment-preview-renderer",disableElementRegistration:!0})],jI);
_.v(jI,"ytd-comment-preview-renderer",function(){if(nNp!==void 0)return nNp;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return nNp=J},{mode:1});var TO5;var Fj=function(){return _.h.apply(this,arguments)||this};
_.D(Fj,_.h);Fj.prototype.configureRendererStamper=function(){return{submitButton:{id:"submit-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.eE.Object.defineProperties(Fj.prototype,{submitButton:{configurable:!0,enumerable:!0,get:function(){var J;return(J=this.data)==null?void 0:J.submitButton}}});
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Fj.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],Fj.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Fj.prototype,"data",void 0);_.O([_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],Fj.prototype,"submitButton",null);Fj=_.O([_.E({is:"ytd-notice-renderer",disableElementRegistration:!0})],Fj);
_.v(Fj,"ytd-notice-renderer",function(){if(TO5!==void 0)return TO5;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return TO5=J},{mode:1});var wXo;var lS=function(){return _.h.apply(this,arguments)||this};
_.D(lS,_.h);lS.prototype.configureRendererStamper=function(){return{"data.comment":{id:"comment-preview",mapping:{commentPreviewRenderer:{component:"ytd-comment-preview-renderer"}}}}};
_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],lS.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],lS.prototype,"data",void 0);lS=_.O([_.E({is:"ytd-preview-comment-dialog-content",disableElementRegistration:!0})],lS);
_.v(lS,"ytd-preview-comment-dialog-content",function(){if(wXo!==void 0)return wXo;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return wXo=J},{mode:1});var rHf;var yL=function(){return _.h.apply(this,arguments)||this};
_.D(yL,_.h);yL.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
yL.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],yL.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],yL.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],yL.prototype,"data",void 0);yL=_.O([_.E({is:"ytd-preview-comment-dialog-renderer",disableElementRegistration:!0})],yL);
_.v(yL,"ytd-preview-comment-dialog-renderer",function(){if(rHf!==void 0)return rHf;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return rHf=J},{mode:1});var sMp;var LKh=_.w("web_button_rework")&&_.Ss("BUTTON_REWORK")||_.w("web_button_rework_with_live"),Bv=function(){var J=_.h.apply(this,arguments)||this;J.closeLabel=_.CX("CLOSE");J.selectedAmountIndex=1;J.privacyCheckboxValue=!1;J.useAmsterdamStyle=LKh;J.amountPlaceholderIndex=-1;return J};
_.D(Bv,_.h);_.V=Bv.prototype;_.V.onAmountClick=function(J){this.selectedAmountIndex=_.Bj(this.hostElement).querySelector("#amounts").indexForElement(J.currentTarget)};
_.V.onCloseClick=function(){this.hostElement.hasAttribute("live-chat")&&(_.m9(this.hostElement,"yt-live-chat-close-buy-flow"),this.ytLiveChatErrorMessageBehavior._setErrorRenderer(null))};
_.V.onDonateButtonClick=function(){if(this.hostElement.hasAttribute("live-chat"))this.donateCommand&&_.m9(this.hostElement,"yt-live-chat-start-buy-flow",[this.donateCommand,{},this.donationCallback.bind(this)]);else{_.m9(this.hostElement,"yt-close-popup-action",[this.is]);var J;(J=_.ep())==null||J.getPlayerPromise().then(function(c){c.pauseVideo()})}};
_.V.donationCallback=function(J){J.success?(this.hostElement.hasAttribute("live-chat")&&J.response&&J.response.data&&J.response.data.actions&&_.m9(this.hostElement,"yt-live-chat-open-popup",[J.response.data.actions[0]]),_.m9(this.hostElement,"yt-close-popup-action",[this.is]),_.m9(this.hostElement,"yt-live-chat-close-buy-flow")):J.errorMessageRenderer&&this.ytLiveChatErrorMessageBehavior._setErrorRenderer(J.errorMessageRenderer)};
_.V.setFocusOnCustomAmountInput=function(){this.customAmount!==null&&_.Bj(this.hostElement).querySelector("#custom-amount-input").focus()};
_.V.updateConfirmationDialogTextWithAmount=function(J){var c=this.getConfirmDialogRuns();c&&this.set(["data","confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs",this.getAmountPlaceholderIndex(c),"text"],this.getFormattedAmount(J))};
_.V.getConfirmDialogRuns=function(){return this.get(["confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs"],this.data)};
_.V.getAmountPlaceholderIndex=function(J){this.amountPlaceholderIndex<0&&(this.amountPlaceholderIndex=J.findIndex(function(c){return c.text==="${amount}"}));
return this.amountPlaceholderIndex};
_.V.getFormattedAmount=function(J){var c;return(new _.Sk(4,((c=this.data)==null?void 0:c.currencyCode)||"")).format(J)};
_.V.isAmountValid=function(J){if(J==="")return!1;J=Number(J)*1E6;var c=this.get("minAmountMicros",this.data),m=this.get("maxAmountMicros",this.data);return c&&J<c||m&&J>m?!1:!0};
_.V.setInputError=function(){this.shouldShowValidationError?_.Bj(this.hostElement).querySelector("#custom-amount-input").setAttribute("invalid",""):_.Bj(this.hostElement).querySelector("#custom-amount-input").removeAttribute("invalid")};
_.V.setInitialCheckboxValue=function(){var J;this.privacyCheckboxValue=!((J=this.data)==null||!J.privacyCheckboxInitialState)};
_.V.updateCustomAmountInputFromBinding=function(J){this.customAmountInput=J.detail.value};
_.V.updatePrivacyCheckboxValueFromBinding=function(J){this.privacyCheckboxValue=J.detail.value};
_.eE.Object.defineProperties(Bv.prototype,{suggestedAmountButtons:{configurable:!0,enumerable:!0,get:function(){var J=this,c,m;return((c=this.data)==null?void 0:(m=c.suggestedAmounts)==null?void 0:m.map(function(b,x){return{buttonRenderer:{style:J.selectedAmountIndex===x?"STYLE_PRIMARY":"STYLE_SUGGESTIVE",text:b.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 J;return!((J=this.data)==null||!J.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 J=this.hostElement.hasAttribute("live-chat")?this.get("payFromLiveChat",this.data):this.get("donateButton.buttonRenderer.command",this.data);if(J&&this.amountMicros!==null)return Object.assign({},J,{ypcGetCartEndpoint:Object.assign({},J.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 J=this.get("confirmLargeAmount",this.data);if(J&&this.amountMicros)return this.updateConfirmationDialogTextWithAmount(this.amountMicros/1E6),this.set("data.confirmLargeAmount.openPopupAction.popup.confirmDialogRenderer.confirmButton.buttonRenderer.command",this.donateCommand),J}},
donateButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var J=this.get("donateButton.buttonRenderer",this.data);if(J)return Object.assign({},J,{isDisabled:!this.isDonateButtonEnabled,command:this.hostElement.hasAttribute("live-chat")?void 0:this.donateCommandWithConfirmation})}}});
Bv.prototype.setInitialCheckboxValue=Bv.prototype.setInitialCheckboxValue;Bv.prototype.setInputError=Bv.prototype.setInputError;Bv.prototype.setFocusOnCustomAmountInput=Bv.prototype.setFocusOnCustomAmountInput;_.O([_.f(X$p),_.R("design:type",Object)],Bv.prototype,"ytLiveChatErrorMessageBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Bv.prototype,"ytRendererBehavior",void 0);
_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],Bv.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Bv.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],Bv.prototype,"closeLabel",void 0);_.O([_.U(),_.R("design:type",Object)],Bv.prototype,"selectedAmountIndex",void 0);_.O([_.U(),_.R("design:type",String)],Bv.prototype,"customAmountInput",void 0);_.O([_.U(),_.R("design:type",Object)],Bv.prototype,"privacyCheckboxValue",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],Bv.prototype,"useAmsterdamStyle",void 0);_.O([_.NE("customAmount"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Bv.prototype,"setFocusOnCustomAmountInput",null);_.O([_.q("data","selectedAmountIndex"),_.R("design:type",Array),_.R("design:paramtypes",[])],Bv.prototype,"suggestedAmountButtons",null);
_.O([_.q("data","selectedAmountIndex"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Bv.prototype,"isCustomAmountSelected",null);_.O([_.q("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Bv.prototype,"showPrivacyCheckbox",null);_.O([_.q("data","selectedAmountIndex","customAmount"),_.R("design:type",Object),_.R("design:paramtypes",[])],Bv.prototype,"amountMicros",null);
_.O([_.q("isCustomAmountSelected","customAmountInput"),_.R("design:type",Object),_.R("design:paramtypes",[])],Bv.prototype,"customAmount",null);_.O([_.q("customAmount"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Bv.prototype,"shouldShowValidationError",null);_.O([_.q("customAmount"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Bv.prototype,"isDonateButtonEnabled",null);
_.O([_.q("data","isDonateButtonEnabled","amountMicros","privacyCheckboxValue"),_.R("design:type",Object),_.R("design:paramtypes",[])],Bv.prototype,"donateCommand",null);_.O([_.q("donateCommand","isCustomAmountSelected","confirmLargeAmountCommand","amountMicros"),_.R("design:type",Object),_.R("design:paramtypes",[])],Bv.prototype,"donateCommandWithConfirmation",null);_.O([_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],Bv.prototype,"largeDonationThreshold",null);
_.O([_.q("customAmount","donateCommand","amountMicros"),_.R("design:type",Object),_.R("design:paramtypes",[])],Bv.prototype,"confirmLargeAmountCommand",null);_.O([_.q("data","isDonateButtonEnabled","donateCommandWithConfirmation"),_.R("design:type",Object),_.R("design:paramtypes",[])],Bv.prototype,"donateButtonRenderer",null);_.O([_.NE("shouldShowValidationError"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Bv.prototype,"setInputError",null);
_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Bv.prototype,"setInitialCheckboxValue",null);Bv=_.O([_.E({is:"ytd-donation-amount-picker-renderer",disableElementRegistration:!0})],Bv);
_.v(Bv,"ytd-donation-amount-picker-renderer",function(){if(sMp!==void 0)return sMp;var J=document.createElement("template");_.z(J,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-amount-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" aria-label="[[getSimpleString(data.pickerTitle)]]" class="style-scope ytd-donation-amount-picker-renderer">\n  <div id="top-box" class="style-scope ytd-donation-amount-picker-renderer">\n    <div id="title-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <div id="title" class="style-scope ytd-donation-amount-picker-renderer">\n        <div class="title-text style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.pickerTitle)]]</div>\n        <yt-icon-button dialog-dismiss="" label="[[closeLabel]]" on-click="onCloseClick" class="style-scope ytd-donation-amount-picker-renderer">\n          <yt-icon icon="yt-icons:dismissal" class="style-scope ytd-donation-amount-picker-renderer"></yt-icon>\n        </yt-icon-button>\n      </div>\n    </div>\n    <div id="campaign-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <yt-img-shadow object-fit="CONTAIN" thumbnail="[[data.campaignThumbnail]]" class="style-scope ytd-donation-amount-picker-renderer"> </yt-img-shadow>\n      <div id="text-container" class="style-scope ytd-donation-amount-picker-renderer">\n        <div id="campaign-title" class="style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignTitle)]]</div>\n        <div id="campaign-subtitle" class="style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignSubtitle)]]</div>\n        <div id="description-column" class="style-scope ytd-donation-amount-picker-renderer">\n          <div class="separator style-scope ytd-donation-amount-picker-renderer"></div>\n          <div class="campaign-description style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignDescription)]]</div>\n        </div>\n      </div>\n    </div>\n    <div id="live-chat-description-column" class="style-scope ytd-donation-amount-picker-renderer">\n      <div class="campaign-description style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignDescription)]]</div>\n      <div class="separator style-scope ytd-donation-amount-picker-renderer"></div>\n    </div>\n  </div>\n  <div id="bottom-box" class="style-scope ytd-donation-amount-picker-renderer">\n    <div id="nonprofit-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <div class="style-scope ytd-donation-amount-picker-renderer">\n        <div id="nonprofit-title" class="style-scope ytd-donation-amount-picker-renderer">\n          [[getSimpleString(data.nonprofitTitle)]]\n          <yt-icon id="verified-icon" class="inline-icon style-scope ytd-donation-amount-picker-renderer" icon="check_circle" default-to-filled="true">\n          </yt-icon>\n        </div>\n        <yt-formatted-string id="nonprofit-subtitle" text="[[data.nonprofitSubtitle]]" class="style-scope ytd-donation-amount-picker-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <div id="amount-selector" class="style-scope ytd-donation-amount-picker-renderer">\n      <div id="suggested-amount-buttons-row" class="style-scope ytd-donation-amount-picker-renderer">\n        <template id="amounts" is="dom-repeat" items="[[suggestedAmountButtons]]" class="style-scope ytd-donation-amount-picker-renderer">\n          <ytd-button-renderer class="suggested-amount style-scope ytd-donation-amount-picker-renderer" data="[[item.buttonRenderer]]" on-click="onAmountClick"></ytd-button-renderer>\n        </template>\n      </div>\n      <div id="custom-amount-container" class="style-scope ytd-donation-amount-picker-renderer">\n        <tp-yt-paper-input id="custom-amount-input" allowed-pattern="[0-9]" always-float-label="" error-message="[[getSimpleString(data.amountError)]]" hidden="[[!isCustomAmountSelected]]" label="[[getSimpleString(data.customAmountLabel)]]" use-v2-underline="" value="[[customAmountInput]]" on-value-changed="updateCustomAmountInputFromBinding" class="style-scope ytd-donation-amount-picker-renderer">\n          <div prefix="" slot="prefix" class="style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.currencySymbol)]]\u00a0</div>\n        </tp-yt-paper-input>\n      </div>\n    </div>\n\n    <tp-yt-paper-checkbox id="privacy-checkbox" checked="[[privacyCheckboxValue]]" hidden="[[!showPrivacyCheckbox]]" on-checked-changed="updatePrivacyCheckboxValueFromBinding" class="style-scope ytd-donation-amount-picker-renderer">\n      <yt-formatted-string split-lines="" text="[[data.privacyCheckboxText]]" class="style-scope ytd-donation-amount-picker-renderer"> </yt-formatted-string>\n    </tp-yt-paper-checkbox>\n\n    <div id="button-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <ytd-button-renderer data="[[donateButtonRenderer]]" on-click="onDonateButtonClick" class="style-scope ytd-donation-amount-picker-renderer">\n      </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return sMp=J},{mode:1});var DGS;var gZ=function(){return _.h.apply(this,arguments)||this};
_.D(gZ,_.h);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],gZ.prototype,"ytComponentBehavior",void 0);_.O([_.U({}),_.R("design:type",Object)],gZ.prototype,"data",void 0);gZ=_.O([_.E({is:"ytd-donation-post-transaction-content",disableElementRegistration:!0})],gZ);
_.v(gZ,"ytd-donation-post-transaction-content",function(){if(DGS!==void 0)return DGS;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return DGS=J},{mode:1});var WK5;var Jp=function(){return _.h.apply(this,arguments)||this};
_.D(Jp,_.h);Jp.prototype.configureRendererStamper=function(){return{"data.doneButton":{id:"done-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],Jp.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Jp.prototype,"ytRendererBehavior",void 0);_.O([_.U({}),_.R("design:type",Object)],Jp.prototype,"data",void 0);Jp=_.O([_.E({is:"ytd-donation-post-transaction-renderer",disableElementRegistration:!0})],Jp);
_.v(Jp,"ytd-donation-post-transaction-renderer",function(){if(WK5!==void 0)return WK5;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return WK5=J},{mode:1});var zco;var uPR;var c_=function(){return _.h.apply(this,arguments)||this};
_.D(c_,_.h);c_.prototype.computeIsStreamingProvider=function(J){return!!J.isStreamingShelf};
c_.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],c_.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],c_.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],c_.prototype,"data",void 0);_.O([_.U({computed:"computeIsStreamingProvider(data)",reflectToAttribute:!0}),_.R("design:type",Boolean)],c_.prototype,"isStreamingProvider",void 0);
c_=_.O([_.E({is:"ytd-media-provider-renderer",disableElementRegistration:!0})],c_);
_.v(c_,"ytd-media-provider-renderer",function(){if(uPR!==void 0)return uPR;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return uPR=J},{mode:1});var f51;var mg=function(){return _.h.apply(this,arguments)||this};
_.D(mg,_.h);mg.prototype.observeLightsourcePalette=function(){var J,c=(J=this.data)==null?void 0:J.vibrantsourceColorPaletteData;c&&_.DL(this.hostElement,c)};
mg.prototype.observeLightsourcePalette=mg.prototype.observeLightsourcePalette;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],mg.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],mg.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],mg.prototype,"data",void 0);
_.O([_.NE("data.vibrantsourceColorPaletteData"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],mg.prototype,"observeLightsourcePalette",null);mg=_.O([_.E({is:"ytd-streaming-pop-up-dialog",disableElementRegistration:!0})],mg);
_.v(mg,"ytd-streaming-pop-up-dialog",function(){if(f51!==void 0)return f51;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return f51=J},{mode:1});var bY=function(){return _.h.apply(this,arguments)||this};
_.D(bY,_.h);bY.prototype.onPopupOpened_=function(){var J;((J=this.data)==null?0:J.serviceEndpoint)&&_.BG().resolve(_.gu).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
bY.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
bY.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"}}}}};
bY.prototype.onPopupOpened_=bY.prototype.onPopupOpened_;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],bY.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],bY.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.Sy),_.R("design:type",Object)],bY.prototype,"ytContinuationHandlerBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],bY.prototype,"data",void 0);
_.O([_.ps("yt-popup-opened"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],bY.prototype,"onPopupOpened_",null);bY=_.O([_.E({is:"ytd-brandconnect-popup-renderer",disableElementRegistration:!0})],bY);
_.v(bY,"ytd-brandconnect-popup-renderer",function(){if(zco!==void 0)return zco;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return zco=J},{mode:1});var YxR;var xa=function(){return _.h.apply(this,arguments)||this};
_.D(xa,_.h);_.V=xa.prototype;_.V.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{checkboxSurveyOptionRenderer:"ytd-checkbox-survey-option-renderer"}}}};
_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.V.dataChanged=function(){for(var J=0;J<this.getOptionRenderers().length;J++)this.notifyPath("data.options."+J+".checkboxSurveyOptionRenderer.checked"),this.set("data.options."+J+".checkboxSurveyOptionRenderer.checked",!1);this.updateSubmitButton(!1)};
_.V.updateSubmitButton=function(J){this.set("data.submitButton.buttonRenderer.isDisabled",!J)};
_.V.computeAlt=function(J){return _.OG(J)};
_.V.onDismissTap=function(){_.m9(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.BG().resolve(_.gu).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.V.getOptionRenderers=function(J){return(J=J||this.data)&&J.options?J.options.reduce(function(c,m){m.checkboxSurveyOptionRenderer&&c.push(m.checkboxSurveyOptionRenderer);return c},[]):[]};
_.V.onOptionChange=function(J){var c=this,m=!1;if(J.detail.checked)for(var b=this.getOptionRenderers().find(function(t){return t.value===J.detail.value}),x=this.getOptionRenderers(),P=0;P<x.length;P++){var p=x[P];
this.notifyPath("data.options."+P+".checkboxSurveyOptionRenderer.checked");p.checked&&((b==null?0:b.isExclusiveOption)?!p.isExclusiveOption:p.isExclusiveOption)?this.set("data.options."+P+".checkboxSurveyOptionRenderer.checked",!1):p.checked&&(m=!0)}else m=this.getOptionRenderers().some(function(t,I){c.notifyPath("data.options."+I+".checkboxSurveyOptionRenderer.checked");return t.checked});
this.updateSubmitButton(m)};
_.V.onSubmitTap=function(){var J=this.getOptionRenderers().filter(function(P){return P.checked});
if(J.length!==0){var c=J.map(function(P){return P.responseEndpoint});
J=[];for(var m=1;m<c.length;m++){var b=void 0,x=(b=_.L(c[m],_.uc))==null?void 0:b.feedbackToken;x&&J.push(x)}c=[c[0]];J.length&&c.push({extra_feedback_tokens:J});_.Vq(this.hostElement,c);_.m9(this.hostElement,"yt-close-popup-action",["ytd-checkbox-survey-renderer"]);J=this.data&&this.data.submitActions||[];if(_.w("kevlar_command_handler_migration_killswitch"))_.PA(this.hostElement,J,this.hostElement);else for(J=_.M(J),c=J.next();!c.done;c=J.next())this.ytComponentBehavior.resolveCommand(c.value)}};
xa.prototype.onOptionChange=xa.prototype.onOptionChange;xa.prototype.dataChanged=xa.prototype.dataChanged;_.O([_.f(_.Ci.YtEventForwardingBehavior),_.R("design:type",Object)],xa.prototype,"ytEventForwardingBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],xa.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],xa.prototype,"ytComponentBehavior",void 0);
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],xa.prototype,"ytRendererBehavior",void 0);_.O([_.f(llR),_.R("design:type",Object)],xa.prototype,"ytdHatsSurveyBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],xa.prototype,"data",void 0);_.O([_.kr("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],xa.prototype,"dataChanged",null);
_.O([_.ps("ytd-checkbox-survey-option-changed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],xa.prototype,"onOptionChange",null);xa=_.O([_.E({is:"ytd-checkbox-survey-renderer",disableElementRegistration:!0})],xa);
_.v(xa,"ytd-checkbox-survey-renderer",function(){if(YxR!==void 0)return YxR;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return YxR=J},{mode:1});var XXs;var ZYF;var VA=function(){return _.h.apply(this,arguments)||this};
_.D(VA,_.h);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],VA.prototype,"ytRendererBehavior",void 0);_.O([_.f(Fnu),_.R("design:type",Object)],VA.prototype,"ytdDismissalReasonBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],VA.prototype,"data",void 0);VA=_.O([_.E({is:"ytd-dismissal-reason-text-renderer",disableElementRegistration:!0})],VA);
_.v(VA,"ytd-dismissal-reason-text-renderer",function(){if(ZYF!==void 0)return ZYF;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return ZYF=J},{mode:1});var qxs;var P_=function(){return _.h.apply(this,arguments)||this};
_.D(P_,_.h);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],P_.prototype,"ytRendererBehavior",void 0);_.O([_.f(Fnu),_.R("design:type",Object)],P_.prototype,"ytdDismissalReasonBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],P_.prototype,"data",void 0);P_=_.O([_.E({is:"ytd-dismissal-reason-video-renderer",disableElementRegistration:!0})],P_);
_.v(P_,"ytd-dismissal-reason-video-renderer",function(){if(qxs!==void 0)return qxs;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return qxs=J},{mode:1});var Mj=function(){var J=_.h.apply(this,arguments)||this;J.darkerDarkTheme=_.w("web_darker_dark_theme");return J};
_.D(Mj,_.h);_.V=Mj.prototype;_.V.created=function(){this.selectedFeedbackTokens=new Ep};
_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.V.configureRendererStamper=function(){return{"data.reasons":{id:"reasons",mapping:{dismissalReasonTextRenderer:"ytd-dismissal-reason-text-renderer",dismissalReasonVideoRenderer:"ytd-dismissal-reason-video-renderer"}}}};
_.V.dataChanged=function(){this.hasReasonsSelected=!1;this.selectedFeedbackTokens.clear()};
_.V.onDismissalReasonSelected=function(J,c){_.cA(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.add(c);this.hasReasonsSelected=!0};
_.V.onDismissalReasonDeselected=function(J,c){_.cA(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.delete(c);this.hasReasonsSelected=this.selectedFeedbackTokens.size!==0};
_.V.onCancelTap=function(){_.m9(this.hostElement,"yt-close-popup-action")};
_.V.onSubmitTap=function(){var J=Array.from(this.selectedFeedbackTokens.values());this.data.submitFeedbackEndpoint&&(J={feedback_tokens:J},_.BG().resolve(_.gu).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},J,{element:this.hostElement})}));_.m9(this.hostElement,"yt-close-popup-action")};
Mj.prototype.onDismissalReasonDeselected=Mj.prototype.onDismissalReasonDeselected;Mj.prototype.onDismissalReasonSelected=Mj.prototype.onDismissalReasonSelected;Mj.prototype.dataChanged=Mj.prototype.dataChanged;_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],Mj.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Mj.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Mj.prototype,"data",void 0);
_.O([_.U(),_.R("design:type",Boolean)],Mj.prototype,"hasReasonsSelected",void 0);_.O([_.U(),_.R("design:type",Ep)],Mj.prototype,"selectedFeedbackTokens",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Mj.prototype,"darkerDarkTheme",void 0);_.O([_.kr("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Mj.prototype,"dataChanged",null);
_.O([_.ps("yt-dismissal-reason-selected"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,String]),_.R("design:returntype")],Mj.prototype,"onDismissalReasonSelected",null);_.O([_.ps("yt-dismissal-reason-deselected"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,String]),_.R("design:returntype")],Mj.prototype,"onDismissalReasonDeselected",null);Mj=_.O([_.E({is:"ytd-dismissal-follow-up-renderer",disableElementRegistration:!0})],Mj);
_.v(Mj,"ytd-dismissal-follow-up-renderer",function(){if(XXs!==void 0)return XXs;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return XXs=J},{mode:1});var UGF;var pb=function(){return _.h.apply(this,arguments)||this};
_.D(pb,_.h);_.V=pb.prototype;_.V.onCheckedChange=function(){this.multiselect||_.cA(this.hostElement,"yt-feedback-single-select-changed");_.Bj(this.hostElement).querySelector("#freeform").focus();_.cA(this.hostElement,"yt-refit")};
_.V.showTextBox=function(J,c){return J&&c};
_.V.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))};
_.V.updateDataCheckedFromBinding=function(J){this.set("data.checked",J.detail.value)};
_.V.updateDataResultTextFromBinding=function(J){this.set("data.resultText",J.detail.value)};
pb.prototype.dataChanged=pb.prototype.dataChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],pb.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],pb.prototype,"data",void 0);_.O([_.U({value:!1}),_.R("design:type",Boolean)],pb.prototype,"multiselect",void 0);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],pb.prototype,"dataChanged",null);
pb=_.O([_.E({is:"ytd-feedback-option-renderer",disableElementRegistration:!0})],pb);
_.v(pb,"ytd-feedback-option-renderer",function(){if(UGF!==void 0)return UGF;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return UGF=J},{mode:1});var SxR;var Nj=function(){return _.h.apply(this,arguments)||this};
_.D(Nj,_.h);Nj.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{feedbackOptionRenderer:{component:"ytd-feedback-option-renderer",properties:{multiselect:"[[data.multiSelect]]"}}}}}};
Nj.prototype.onSingleSelectCheckedChanged=function(J){J=_.Ac(J);for(var c=0;c<this.data.options.length;c++)if(J.data!==_.L(this.data.options[c],eBr)){var m="data.options."+c+".feedbackOptionRenderer.checked";this.notifyPath(m);this.set(m,!1)}};
Nj.prototype.onSingleSelectCheckedChanged=Nj.prototype.onSingleSelectCheckedChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Nj.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],Nj.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Nj.prototype,"data",void 0);
_.O([_.ps("yt-feedback-single-select-changed"),_.R("design:type",Function),_.R("design:paramtypes",[Event]),_.R("design:returntype")],Nj.prototype,"onSingleSelectCheckedChanged",null);Nj=_.O([_.E({is:"ytd-feedback-question-renderer",disableElementRegistration:!0})],Nj);
_.v(Nj,"ytd-feedback-question-renderer",function(){if(SxR!==void 0)return SxR;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return SxR=J},{mode:1});var hc4;var tp=function(){return _.h.apply(this,arguments)||this};
_.D(tp,_.h);tp.prototype.configureRendererStamper=function(){return{"data.questions":{id:"questions",mapping:{feedbackQuestionRenderer:"ytd-feedback-question-renderer"}}}};
tp.prototype.getSelectedFeedbackResults=function(){for(var J={},c=0;c<this.data.questions.length;c++)for(var m=_.L(this.data.questions[c],Q94),b=0;b<m.options.length;b++){var x=_.L(m.options[b],eBr);x&&x.checked&&(J[x.optionKey]=x.resultText)}return J};
tp.prototype.onKeyUp=function(){var J=this;_.cP(_.ft,function(){_.cA(J.hostElement,"yt-refit")});
_.ft.start()};
tp.prototype.submitSurvey=function(){var J=this.getSelectedFeedbackResults();Object.keys(J).length>0&&this.data.submitFeedbackEndpoint&&(J={survey_results:J,is_feedback_token_unencrypted:!0},_.BG().resolve(_.gu).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},J,{element:this.hostElement})}))};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],tp.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],tp.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],tp.prototype,"data",void 0);tp=_.O([_.E({is:"ytd-feedback-survey-renderer",disableElementRegistration:!0})],tp);
_.v(tp,"ytd-feedback-survey-renderer",function(){if(hc4!==void 0)return hc4;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return hc4=J},{mode:1});var dGr;var $Ge;var Ik=function(){return _.h.apply(this,arguments)||this};
_.D(Ik,_.h);Ik.prototype.computeAlt=function(J){return _.OG(J)};
Ik.prototype.submitResponse=function(){var J,c;(J=this.data)!=null&&J.feedbackToken&&((c=this.data)==null?void 0:c.nextStageIndex)!==void 0&&(_.bJ(this.hostElement,"yt-single-select-submit-feedback",[this.data.feedbackToken]),_.bJ(this.hostElement,"yt-survey-set-stage-index",[this.data.nextStageIndex]))};
Ik.prototype.onClick=function(){this.submitResponse()};
Ik.prototype.onClick=Ik.prototype.onClick;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Ik.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Ik.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],Ik.prototype,"vertical",void 0);_.O([_.ps("click"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Ik.prototype,"onClick",null);
Ik=_.O([_.E({is:"ytd-single-select-answer-option-renderer",disableElementRegistration:!0})],Ik);
_.v(Ik,"ytd-single-select-answer-option-renderer",function(){if($Ge!==void 0)return $Ge;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return $Ge=J},{mode:1});var GXh;var Kb=function(){var J=_.h.apply(this,arguments)||this;J.darkerDarkTheme=_.w("web_darker_dark_theme");J.actionMap={"yt-single-select-submit-feedback":"submitFeedback"};return J};
_.D(Kb,_.h);Kb.prototype.configureRendererStamper=function(){return{"data.answerOptions":{id:"options",mapping:{singleSelectAnswerOptionRenderer:{component:"ytd-single-select-answer-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
Kb.prototype.dataChanged=function(){var J,c;this.vertical=((c=(J=this.data)==null?void 0:J.answerOrientation)!=null?c:"SURVEY_LAYOUT_TYPE_HORIZONTAL")==="SURVEY_LAYOUT_TYPE_VERTICAL"};
Kb.prototype.submitFeedback=function(J){var c;((c=this.data)==null?0:c.responseEndpoint)&&J&&_.Vq(this.hostElement,[this.data.responseEndpoint,{extra_feedback_tokens:[J]}])};
Kb.prototype.dataChanged=Kb.prototype.dataChanged;_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],Kb.prototype,"ytActionHandlerBehavior",void 0);_.O([_.f(_.Ci.YtEventForwardingBehavior),_.R("design:type",Object)],Kb.prototype,"eventForwardingBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Kb.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],Kb.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.U(),_.R("design:type",Object)],Kb.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],Kb.prototype,"vertical",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Kb.prototype,"darkerDarkTheme",void 0);_.O([_.kr("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Kb.prototype,"dataChanged",null);Kb=_.O([_.E({is:"ytd-single-select-question-renderer",disableElementRegistration:!0})],Kb);
_.v(Kb,"ytd-single-select-question-renderer",function(){if(GXh!==void 0)return GXh;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return GXh=J},{mode:1});var Cb=function(){var J=_.h.apply(this,arguments)||this;J.actionMap={"yt-survey-set-stage-index":"jumpToStage"};return J};
_.D(Cb,_.h);_.V=Cb.prototype;_.V.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"}}}};
_.V.dataChanged=function(){this.jumpToStage(0)};
_.V.jumpToStage=function(J){var c,m;if((c=this.data)==null?0:(m=c.stages)==null?0:m[J])this.currentStage=this.data.stages[J],this.refitAfterRender()};
_.V.computeAlt=function(J){return _.OG(J)};
_.V.computeSimpleMessage=function(J){var c;return(c=_.L(J,lQs))==null?void 0:c.messageText};
_.V.computeHideDismiss=function(J){var c;return(c=_.L(J,s9F))==null?void 0:c.hideParentDismissButton};
_.V.onDismissTap=function(){_.m9(this.hostElement,"yt-close-popup-action");_.L(this.currentStage,lQs)||this.data.dismissalEndpoint&&_.BG().resolve(_.gu).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.V.refitAfterRender=function(){var J=this;_.o3(this,function(){_.cA(J.hostElement,"yt-refit")})};
Cb.prototype.dataChanged=Cb.prototype.dataChanged;_.O([_.f(_.Ci.YtEventForwardingBehavior),_.R("design:type",Object)],Cb.prototype,"eventForwardingBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Cb.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],Cb.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],Cb.prototype,"ytActionHandlerBehavior",void 0);
_.O([_.f(llR),_.R("design:type",Object)],Cb.prototype,"ytdHatsSurveyBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Cb.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],Cb.prototype,"currentStage",void 0);_.O([_.kr("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Cb.prototype,"dataChanged",null);Cb=_.O([_.E({is:"ytd-multi-stage-survey-renderer",disableElementRegistration:!0})],Cb);
_.v(Cb,"ytd-multi-stage-survey-renderer",function(){if(dGr!==void 0)return dGr;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return dGr=J},{mode:1});var EN1;var ak=function(){return _.h.apply(this,arguments)||this};
_.D(ak,_.h);ak.prototype.computeAlt=function(J){return _.OG(J)};
ak.prototype.submitResponse=function(){this.data&&this.data.submissionEndpoint&&(_.BG().resolve(_.gu).resolveCommand(this.data.submissionEndpoint,{form:{element:this.hostElement}}),_.m9(this.hostElement,"yt-close-popup-action",["ytd-single-option-survey-renderer"]),this.ytdReduxBehavior.dispatch(_.G$R(!1)))};
ak.prototype.onTap=function(){this.vertical&&this.submitResponse()};
ak.prototype.onTap=ak.prototype.onTap;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],ak.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.fY),_.R("design:type",Object)],ak.prototype,"ytdReduxBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],ak.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],ak.prototype,"vertical",void 0);
_.O([_.ps("tap"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],ak.prototype,"onTap",null);ak=_.O([_.E({is:"ytd-single-option-survey-option-renderer",disableElementRegistration:!0})],ak);
_.v(ak,"ytd-single-option-survey-option-renderer",function(){if(EN1!==void 0)return EN1;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return EN1=J},{mode:1});var vNr;var ka=function(){return _.h.apply(this,arguments)||this};
_.D(ka,_.h);_.V=ka.prototype;_.V.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{singleOptionSurveyOptionRenderer:{component:"ytd-single-option-survey-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.V.dataChanged=function(){var J,c;this.vertical=(((J=this.data)==null?void 0:(c=J.surveyOrientation)==null?void 0:c.type)||"HORIZONTAL")==="VERTICAL"};
_.V.computeAlt=function(J){return _.OG(J)};
_.V.onDismissTap=function(){_.m9(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.BG().resolve(_.gu).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}});this.ytdReduxBehavior.dispatch(_.G$R(!1))};
ka.prototype.dataChanged=ka.prototype.dataChanged;_.O([_.f(_.Ci.YtEventForwardingBehavior),_.R("design:type",Object)],ka.prototype,"eventForwardingBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],ka.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],ka.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(llR),_.R("design:type",Object)],ka.prototype,"ytdHatsSurveyBehavior",void 0);
_.O([_.f(_.fY),_.R("design:type",Object)],ka.prototype,"ytdReduxBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],ka.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],ka.prototype,"vertical",void 0);_.O([_.kr("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],ka.prototype,"dataChanged",null);ka=_.O([_.E({is:"ytd-single-option-survey-renderer",disableElementRegistration:!0})],ka);
_.v(ka,"ytd-single-option-survey-renderer",function(){if(vNr!==void 0)return vNr;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return vNr=J},{mode:1});var OYR;var H_=function(){var J=_.h.apply(this,arguments)||this;J.darkerDarkTheme=_.w("web_darker_dark_theme");return J};
_.D(H_,_.h);H_.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
H_.prototype.onDismissTap=function(){_.m9(this.hostElement,"yt-close-popup-action")};
H_.prototype.onNavigate=function(){_.m9(this.hostElement,"yt-close-popup-action")};
H_.prototype.onNavigate=H_.prototype.onNavigate;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],H_.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.Ci.YtEventForwardingBehavior),_.R("design:type",Object)],H_.prototype,"ytEventForwardingBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],H_.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],H_.prototype,"darkerDarkTheme",void 0);
_.O([_.ps("yt-navigate"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],H_.prototype,"onNavigate",null);H_=_.O([_.E({is:"ytd-survey-follow-up-renderer",disableElementRegistration:!0})],H_);
_.v(H_,"ytd-survey-follow-up-renderer",function(){if(OYR!==void 0)return OYR;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return OYR=J},{mode:1});var AHS;var Rcf;var oNR;var iY=function(){var J=_.h.apply(this,arguments)||this;J.polymer2="Element"in Polymer;return J};
_.D(iY,_.h);_.V=iY.prototype;_.V.ready=function(){this.secondsEl.addEventListener("blur",this.formatSeconds.bind(this))};
_.V.secondsChanged=function(){this.secondsEl.focused||this.formatSeconds()};
_.V.formatSeconds=function(){this.seconds.length===1&&(this.seconds="0"+this.seconds)};
_.V.minutesChangedForBinding=function(){this.hostElement.dispatchEvent(new _.SJ("minutes-changed",this.minutes))};
_.V.secondsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.SJ("seconds-changed",this.seconds))};
_.V.updateMinutesFromBinding=function(J){this.minutes=J.detail.value};
_.V.updateSecondsFromBinding=function(J){this.seconds=J.detail.value};
iY.prototype.secondsChangedForBinding=iY.prototype.secondsChangedForBinding;iY.prototype.minutesChangedForBinding=iY.prototype.minutesChangedForBinding;iY.prototype.secondsChanged=iY.prototype.secondsChanged;_.O([_.U(),_.R("design:type",String)],iY.prototype,"minutes",void 0);_.O([_.U(),_.R("design:type",String)],iY.prototype,"seconds",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],iY.prototype,"polymer2",void 0);
_.O([_.Iu("#seconds"),_.R("design:type",Object)],iY.prototype,"secondsEl",void 0);_.O([_.NE("seconds"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],iY.prototype,"secondsChanged",null);_.O([_.NE("minutes"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],iY.prototype,"minutesChangedForBinding",null);
_.O([_.NE("seconds"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],iY.prototype,"secondsChangedForBinding",null);iY=_.O([_.uM({is:"yt-timestamp-input",disableElementRegistration:!0})],iY);
_.v(iY,"yt-timestamp-input",function(){if(oNR===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;Rcf===void 0&&(Rcf=document.createElement("template"));var b=Rcf;m.call(c,b.content.cloneNode(!0),J.content.firstChild);oNR=J}J=oNR;return J},{mode:2});var nb=function(){return _.h.apply(this,arguments)||this};
_.D(nb,_.h);_.V=nb.prototype;_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.JSC$18117_scroller.dialogElement=this.hostElement.parentNode};
_.V.dataChanged=function(){var J=this;this.description.value="";this.seconds=this.minutes=this.fullName.value="";this.toggleSubmitButton(!1);this.showTimestamp&&_.jp().getPlayerPromise().then(function(c){c=c.getCurrentTime();J.minutes=Math.floor(c/60).toString();J.seconds=(Math.floor(c)%60).toString()})};
_.V.onTapSubmit=function(J){J.stopPropagation();this.serviceEndpoint&&!this.get("submitButton.isDisabled")&&(J={flag_description:this.descriptionText.trim(),flag_issue_type:this.issueType,flag_affiliation:this.affiliation},this.fullNameText&&(J.flag_full_name=this.fullNameText.trim()),this.showTimestamp&&(J.minutes=this.minutes,J.seconds=this.seconds),_.BG().resolve(_.gu).resolveCommand(this.serviceEndpoint,{form:Object.assign({},J,{element:this.hostElement})}))};
_.V.onYtServiceRequestSent=function(){this.toggleSubmitButton(!1)};
_.V.onYtServiceRequestCompleted=function(J,c){c=c.actions;if(Array.isArray(c))for(var m=0,b=c.length;m<b;m++)_.L(c[m],_.T3)&&(J.stopPropagation(),this.hostElement.parentElement.close(),this.ytOpenPopupBehavior.openPopup(c[m]))};
_.V.onYtServiceRequestError=function(){this.toggleSubmitButton(!0)};
_.V.toggleSubmitButton=function(J){this.set("submitButton.isDisabled",!J)};
_.V.handleInput=function(){var J=this.issueType,c=this.affiliation,m=this.minutes,b=this.seconds;m=!this.showTimestamp||!!m&&!!b;this.toggleSubmitButton(!!this.descriptionText&&!!J&&!!c&&m)};
_.V.computeServiceEndpoint=function(J){return this.get("submitButton.buttonRenderer.serviceEndpoint",J)};
_.V.computeSubmitButton=function(J){(J=this.get("submitButton.buttonRenderer",J))&&(J=Object.assign({},J,{serviceEndpoint:void 0}));return J};
_.V.computeShowTimestamp=function(J){return!!J};
_.V.onValueChangedForIssueType=function(J){this.issueType=J.detail.value};
_.V.onValueChangedForAffiliation=function(J){this.affiliation=J.detail.value};
_.V.updateDescriptionTextFromBinding=function(J){this.descriptionText=J.detail.value};
_.V.updateFullNameTextFromBinding=function(J){this.fullNameText=J.detail.value};
_.V.updateMinutesFromBinding=function(J){this.minutes=J.detail.value};
_.V.updateSecondsFromBinding=function(J){this.seconds=J.detail.value};
nb.prototype.handleInput=nb.prototype.handleInput;nb.prototype.onYtServiceRequestError=nb.prototype.onYtServiceRequestError;nb.prototype.onYtServiceRequestCompleted=nb.prototype.onYtServiceRequestCompleted;nb.prototype.onYtServiceRequestSent=nb.prototype.onYtServiceRequestSent;nb.prototype.dataChanged=nb.prototype.dataChanged;_.O([_.f(_.M7.YtOpenPopupBehavior),_.R("design:type",Object)],nb.prototype,"ytOpenPopupBehavior",void 0);
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],nb.prototype,"ytRendererBehavior",void 0);_.O([_.Iu("#scroller"),_.R("design:type",Object)],nb.prototype,"JSC$18117_scroller",void 0);_.O([_.Iu("#description"),_.R("design:type",HTMLInputElement)],nb.prototype,"description",void 0);_.O([_.Iu("#full-name"),_.R("design:type",Object)],nb.prototype,"fullName",void 0);_.O([_.U(),_.R("design:type",Object)],nb.prototype,"data",void 0);
_.O([_.U({computed:"computeShowTimestamp(data.timestampLabel)"}),_.R("design:type",Boolean)],nb.prototype,"showTimestamp",void 0);_.O([_.U({readOnly:!0,computed:"computeServiceEndpoint(data)"}),_.R("design:type",Object)],nb.prototype,"serviceEndpoint",void 0);_.O([_.U({computed:"computeSubmitButton(data)"}),_.R("design:type",Object)],nb.prototype,"submitButton",void 0);_.O([_.U(),_.R("design:type",String)],nb.prototype,"descriptionText",void 0);
_.O([_.U(),_.R("design:type",Number)],nb.prototype,"issueType",void 0);_.O([_.U(),_.R("design:type",Number)],nb.prototype,"affiliation",void 0);_.O([_.U(),_.R("design:type",String)],nb.prototype,"fullNameText",void 0);_.O([_.U(),_.R("design:type",String)],nb.prototype,"minutes",void 0);_.O([_.U(),_.R("design:type",String)],nb.prototype,"seconds",void 0);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],nb.prototype,"dataChanged",null);
_.O([_.ps("yt-service-request-sent"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,_.qd]),_.R("design:returntype")],nb.prototype,"onYtServiceRequestSent",null);_.O([_.ps("yt-service-request-completed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,_.Oi]),_.R("design:returntype")],nb.prototype,"onYtServiceRequestCompleted",null);
_.O([_.ps("yt-service-request-error"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],nb.prototype,"onYtServiceRequestError",null);_.O([_.NE("descriptionText","issueType","affiliation","fullNameText","minutes","seconds"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],nb.prototype,"handleInput",null);nb=_.O([_.E({is:"ytd-legal-report-details-form-renderer",disableElementRegistration:!0})],nb);
_.v(nb,"ytd-legal-report-details-form-renderer",function(){if(AHS!==void 0)return AHS;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return AHS=J},{mode:1});var QMh;var TC=function(){var J=_.h.apply(this,arguments)||this;J.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm","yt-signal-action-submit-popup-form-fields":"handleSignalActionSubmitPopupFormFields"};return J};
_.D(TC,_.h);TC.prototype.configureRendererStamper=function(){return{"data.form":{id:"form",mapping:{formRenderer:"yt-form-renderer"}}}};
TC.prototype.handleSignalActionSubmitForm=function(){if(this.formRenderer){var J=this.formRenderer.getForm();J&&this.data.submitEndpoint&&(_.BG().resolve(_.gu).resolveCommand(this.data.submitEndpoint,{form:Object.assign({},J,{element:this.hostElement})}),_.m9(this.hostElement,"yt-close-popup-action"))}};
TC.prototype.handleSignalActionSubmitPopupFormFields=function(){this.formRenderer&&(this.formRenderer.submitFormFields(),_.m9(this.hostElement,"yt-close-popup-action"))};
TC.prototype.onPopupClosed=function(){this.formRenderer&&this.formRenderer.reset()};
TC.prototype.onPopupClosed=TC.prototype.onPopupClosed;_.O([_.f(_.Ci.YtEventForwardingBehavior),_.R("design:type",Object)],TC.prototype,"ytEventForwardingBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],TC.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],TC.prototype,"ytActionHandlerBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],TC.prototype,"ytRendererBehavior",void 0);
_.O([_.Iu("yt-form-renderer"),_.R("design:type",Object)],TC.prototype,"formRenderer",void 0);_.O([_.U(),_.R("design:type",Object)],TC.prototype,"data",void 0);_.O([_.ps("yt-popup-closed"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],TC.prototype,"onPopupClosed",null);TC=_.O([_.E({is:"ytd-form-popup-content",disableElementRegistration:!0})],TC);
_.v(TC,"ytd-form-popup-content",function(){if(QMh!==void 0)return QMh;var J=document.createElement("template");_.z(J,'\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>');J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return QMh=J},{mode:1});var ecR;var w5=function(){return _.h.apply(this,arguments)||this};
_.D(w5,_.h);w5.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
w5.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
w5.prototype.onPopupOpened=function(){_.cA(this.hostElement,"yt-invalidate-popup-tabbables")};
w5.prototype.onYtServiceRequestCompleted=function(J,c){c.data&&c.data.success&&(this.set("data.buttons.1.buttonRenderer.isDisabled",!1),_.cA(this.hostElement,"yt-invalidate-popup-tabbables"))};
w5.prototype.onYtServiceRequestCompleted=w5.prototype.onYtServiceRequestCompleted;w5.prototype.onPopupOpened=w5.prototype.onPopupOpened;_.O([_.f(_.Ci.YtEventForwardingBehavior),_.R("design:type",Object)],w5.prototype,"ytEventForwardingBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],w5.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],w5.prototype,"ytRendererBehavior",void 0);
_.O([_.U(),_.R("design:type",Object)],w5.prototype,"data",void 0);_.O([_.ps("yt-popup-opened"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],w5.prototype,"onPopupOpened",null);_.O([_.ps("yt-service-request-completed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,_.Oi]),_.R("design:returntype")],w5.prototype,"onYtServiceRequestCompleted",null);w5=_.O([_.E({is:"ytd-form-popup-renderer",disableElementRegistration:!0})],w5);
_.v(w5,"ytd-form-popup-renderer",function(){if(ecR!==void 0)return ecR;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return ecR=J},{mode:1});var jMs;var r5=function(){var J=_.h.apply(this,arguments)||this;J.isLoading=!1;return J};
_.D(r5,_.h);_.V=r5.prototype;_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");cLR(this.hostElement)};
_.V.onYtServiceRequestSent=function(){this.isLoading=!0};
_.V.onYtServiceRequestCompleted=function(){_.m9(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-confirm-dialog-renderer"])};
_.V.fireOnCloseActions=function(){this.isLoading=!1;this.data&&this.data.onClosedActions&&_.PA(this.hostElement,this.data.onClosedActions,this.hostElement)};
_.V.closePopupHandler=function(){this.fireOnCloseActions()};
_.V.onHeaderImageChanged=function(){if(this.data){this.data.headerImage?this.hostElement.setAttribute("dialog-with-header-image",""):this.hostElement.removeAttribute("dialog-with-header-image");var J=this.get("data.headerImage.thumbnails");J&&(J=_.yn(J,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+J+")")}};
_.V.onYtNavigate=function(J){(J=_.Ac(J))&&J.parentElement===this.confirmButton&&this.hostElement.parentElement&&this.hostElement.parentElement.close()};
r5.prototype.onYtNavigate=r5.prototype.onYtNavigate;r5.prototype.onHeaderImageChanged=r5.prototype.onHeaderImageChanged;r5.prototype.closePopupHandler=r5.prototype.closePopupHandler;r5.prototype.onYtServiceRequestCompleted=r5.prototype.onYtServiceRequestCompleted;r5.prototype.onYtServiceRequestSent=r5.prototype.onYtServiceRequestSent;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],r5.prototype,"ytRendererBehavior",void 0);
_.O([_.f(_.Ci.YtEventForwardingBehavior),_.R("design:type",Object)],r5.prototype,"ytEventForwardingBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],r5.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],r5.prototype,"isLoading",void 0);_.O([_.Iu("#header"),_.R("design:type",HTMLDivElement)],r5.prototype,"header",void 0);_.O([_.Iu("#confirm-button"),_.R("design:type",_.kq)],r5.prototype,"confirmButton",void 0);
_.O([_.ps("yt-service-request-sent"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],r5.prototype,"onYtServiceRequestSent",null);_.O([_.ps("yt-service-request-completed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],r5.prototype,"onYtServiceRequestCompleted",null);
_.O([_.ps("yt-popup-closed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,Object]),_.R("design:returntype")],r5.prototype,"closePopupHandler",null);_.O([_.NE("data.headerImage"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],r5.prototype,"onHeaderImageChanged",null);_.O([_.ps("yt-navigate"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],r5.prototype,"onYtNavigate",null);
r5=_.O([_.E({is:"ytd-gaming-account-link-confirm-dialog-renderer",disableElementRegistration:!0})],r5);
_.v(r5,"ytd-gaming-account-link-confirm-dialog-renderer",function(){if(jMs!==void 0)return jMs;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return jMs=J},{mode:1});var FKF;var sd=function(){var J=_.h.apply(this,arguments)||this;J.isLoading=!1;return J};
_.D(sd,_.h);_.V=sd.prototype;_.V.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"}}}};
_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable&&(this.scrollable.dialogElement=this.hostElement.parentNode);cLR(this.hostElement)};
_.V.onYtServiceRequestCompleted=function(){_.m9(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-setting-renderer"])};
_.V.onYtServiceRequestError=function(J){_.Bg(this.hostElement,J.detail.error.message)};
_.V.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.V.onButtonClick=function(){this.data&&(this.data.isContinueDialog||this.data.thirdPartyId&&this.data.thirdPartyId!=="gpg"&&_.m9(this.hostElement,"yt-initialize-third-party",[this.data.thirdPartyId]),this.isLoading=!0)};
_.V.onDataChanged=function(){this.isLoading=!1;var J=this.get("data.headerImage.thumbnails");J&&(J=_.yn(J,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+J+")");J=_.Y3();var c=_.fl(),m=this.get("data.trackingParams");m&&c&&J&&_.$2(J,c,_.n7(m))};
_.eE.Object.defineProperties(sd.prototype,{hasDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||!this.data.descriptions)}}});
sd.prototype.onDataChanged=sd.prototype.onDataChanged;sd.prototype.onDomChange=sd.prototype.onDomChange;sd.prototype.onYtServiceRequestError=sd.prototype.onYtServiceRequestError;sd.prototype.onYtServiceRequestCompleted=sd.prototype.onYtServiceRequestCompleted;_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],sd.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],sd.prototype,"ytRendererBehavior",void 0);
_.O([_.U(),_.R("design:type",Object)],sd.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],sd.prototype,"isLoading",void 0);_.O([_.U({reflectToAttribute:!0}),_.q("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],sd.prototype,"hasDescription",null);_.O([_.Iu("tp-yt-paper-dialog-scrollable"),_.R("design:type",Object)],sd.prototype,"scrollable",void 0);_.O([_.Iu("#header"),_.R("design:type",HTMLElement)],sd.prototype,"header",void 0);
_.O([_.ps("yt-service-request-completed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],sd.prototype,"onYtServiceRequestCompleted",null);_.O([_.ps("yt-service-request-error"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],sd.prototype,"onYtServiceRequestError",null);
_.O([_.ps("dom-change"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],sd.prototype,"onDomChange",null);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],sd.prototype,"onDataChanged",null);sd=_.O([_.E({is:"ytd-gaming-account-link-setting-renderer",disableElementRegistration:!0})],sd);
_.v(sd,"ytd-gaming-account-link-setting-renderer",function(){if(FKF!==void 0)return FKF;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return FKF=J},{mode:1});var l5h;var yHR;var Lb=function(){var J=_.h.apply(this,arguments)||this;J.isHeader=!1;J.getEndpointForm=function(){return xLr(J.data)};
return J};
_.D(Lb,_.h);_.V=Lb.prototype;_.V.triggerHintActions=function(){var J=this;this.data&&this.data.hintActions&&this.taskEmitterBehavior.getTaskManager().addLowPriorityJob(function(){var c=_.bJ(J.hostElement,"yt-get-opened-popups-action");!(c&&c.length===1?c[0]:[]).some(function(m){m=m.openPopupAction.popupType;return m==="SURVEY"||m==="MEALBAR"||m==="HINT"})&&J.data.hintActions&&J.guideOpened&&(_.PA(J.hostElement,J.data.hintActions,J.hostElement),J.data.hintActions=void 0)})};
_.V.getBadgeIconType=function(J){return J&&J.liveBroadcasting?"live":null};
_.V.onDown=function(){this.interaction.triggerDown()};
_.V.onUp=function(){this.interaction.triggerUp()};
_.V.onTap=function(J){if(this.data.serviceEndpoint){var c;_.w("shorts_controller_retrieve_seedless_sequence_v2")&&((c=_.L(this.data.serviceEndpoint,_.kb))==null?void 0:c.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.componentBehavior.resolveCommand(this.data.serviceEndpoint):bXr(this.data.serviceEndpoint,this);J.preventDefault()}else this.data.navigationEndpoint&&!_.AP(_.OT(J),this.hostElement,["A".toString()])&&_.cA(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})};
_.V.computeActive=function(J,c){if(!J)return!1;var m=J.navigationEndpoint;J=J.serviceEndpoint;if(!m&&!J||!c)return!1;if(m){J=(J=_.tc(c))&&["subscriptions","filteredsubscriptions"].includes(J);if(_.L(m,_.I1)&&_.L(c,_.I1)&&!J){var b=_.L(m,_.I1).browseId;c=_.L(c,_.I1).browseId;return b!==void 0&&c!==void 0&&(b===c||b==="VLWL"&&c==="FEwatch_later"||b==="FEwatch_later"&&c==="VLWL")}var x;m=(x=_.L(m.commandMetadata,_.lk))==null?void 0:x.url;c=(b=_.L(c.commandMetadata,_.lk))==null?void 0:b.url;return!(!m||
!c||m!==c&&m!==_.NU(c))}return this.isActiveShortsTab(J,c)};
_.V.isActiveShortsTab=function(J,c){c=!!_.L(c,_.kb)||!!_.L(c,_.W3);return(!!_.L(J,_.kb)||!!_.L(J,_.W3))&&c};
_.V.computeIsPrimary=function(J){return!!J};
_.eE.Object.defineProperties(Lb.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 J=this.get("data.accessibility.accessibilityData.label");if(this.lineEndStyle!=="none"&&J)return J}}});
Lb.prototype.onTap=Lb.prototype.onTap;Lb.prototype.onUp=Lb.prototype.onUp;Lb.prototype.onDown=Lb.prototype.onDown;Lb.prototype.triggerHintActions=Lb.prototype.triggerHintActions;_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],Lb.prototype,"componentBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Lb.prototype,"rendererBehavior",void 0);_.O([_.f(_.Qw.YtTaskEmitterBehavior),_.R("design:type",Object)],Lb.prototype,"taskEmitterBehavior",void 0);
_.O([_.U(),_.R("design:type",Object)],Lb.prototype,"activeEndpoint",void 0);_.O([_.U(),_.R("design:type",Object)],Lb.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Boolean)],Lb.prototype,"guideOpened",void 0);_.O([_.U(),_.R("design:type",String)],Lb.prototype,"type",void 0);_.O([_.Iu("yt-interaction"),_.R("design:type",Object)],Lb.prototype,"interaction",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Lb.prototype,"isHeader",void 0);
_.O([_.U({reflectToAttribute:!0}),_.q("data","activeEndpoint"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Lb.prototype,"active",null);_.O([_.U({reflectToAttribute:!0}),_.q("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Lb.prototype,"isPrimary",null);_.O([_.U({reflectToAttribute:!0}),_.q("data.count","data.presentationStyle","data.badges.*"),_.R("design:type",String),_.R("design:paramtypes",[])],Lb.prototype,"lineEndStyle",null);
_.O([_.q("lineEndStyle"),_.R("design:type",Object),_.R("design:paramtypes",[])],Lb.prototype,"ariaLabel",null);_.O([_.NE("data.hintActions","guideOpened"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Lb.prototype,"triggerHintActions",null);_.O([_.ps("down"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Lb.prototype,"onDown",null);
_.O([_.ps("up"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Lb.prototype,"onUp",null);_.O([_.ps("tap"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],Lb.prototype,"onTap",null);Lb=_.O([_.E({is:"ytd-guide-entry-renderer",disableElementRegistration:!0})],Lb);
_.v(Lb,"ytd-guide-entry-renderer",function(){if(yHR!==void 0)return yHR;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return yHR=J},{mode:1});var DD=function(){var J=_.h.apply(this,arguments)||this;J.userToggled=!1;return J};
_.D(DD,_.h);_.V=DD.prototype;_.V.getItemsPath=function(){return"data.expandableItems"};
_.V.configureRendererStamper=function(){return{shownItems:{id:"expandable-items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0}}}}};
_.V.onExpanderItemTapped=function(J){var c=this;this._setExpanded(!0);this.userToggled=!0;this.ytLazyListBehavior.fillRemainingListItems();this.expandableItems&&!_.w("kevlar_guide_expandable_items_killswitch")&&_.o3(this,function(){_.jf(c.expandableItems)});
J.preventDefault()};
_.V.onCollapserItemTapped=function(J){var c=this;this._setExpanded(!1);this.userToggled=!0;J.preventDefault();this.expandableItems&&!_.w("kevlar_guide_collapsible_items_killswitch")&&_.o3(this,function(){_.ef(c.hostElement)})};
_.V.observeActiveEndpoint=function(){for(var J=this.activeEndpoint,c=this.data,m=this.expandableItems.children,b=0,x=m.length;b<x;b++)m[b].activeEndpoint=J;c&&c.autoExpandCommand&&J&&!this.userToggled&&(m=this.data.autoExpandCommand,c=!(!_.L(m,_.I1)||!_.L(J,_.I1)||_.L(m,_.I1).browseId!==_.L(J,_.I1).browseId),J=this.get("commandMetadata.webCommandMetadata.url",J),m=this.get("commandMetadata.webCommandMetadata.url",m),c=c||!!(J&&m&&J.includes(m)),this._setExpanded(c),c&&this.ytLazyListBehavior.fillRemainingListItems())};
DD.prototype.observeActiveEndpoint=DD.prototype.observeActiveEndpoint;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],DD.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],DD.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.lu.YtLazyListBehavior),_.R("design:type",Object)],DD.prototype,"ytLazyListBehavior",void 0);_.O([_.Iu("#expandable-items"),_.R("design:type",HTMLElement)],DD.prototype,"expandableItems",void 0);
_.O([_.U(),_.R("design:type",Object)],DD.prototype,"data",void 0);_.O([_.U({readOnly:!0,reflectToAttribute:!0}),_.R("design:type",Boolean)],DD.prototype,"expanded",void 0);_.O([_.U({value:0}),_.R("design:type",Number)],DD.prototype,"initialCount",void 0);_.O([_.U(),_.R("design:type",Object)],DD.prototype,"activeEndpoint",void 0);_.O([_.NE("data","activeEndpoint","canShowMore"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],DD.prototype,"observeActiveEndpoint",null);
DD=_.O([_.E({is:"ytd-guide-collapsible-entry-renderer",disableElementRegistration:!0})],DD);
_.v(DD,"ytd-guide-collapsible-entry-renderer",function(){if(l5h!==void 0)return l5h;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return l5h=J},{mode:_.mP("kevlar_poly_si_batch_j079")?1:2});var BOR;var gNR;var W_=function(){var J=_.h.apply(this,arguments)||this;J.allVideosCount=0;J.renderGuideEntry=!1;return J};
_.D(W_,_.h);W_.prototype.observeRenderEntry=function(){var J;this.renderGuideEntry=!((J=this.data)==null||!J.alwaysShow)||!!this.allVideosCount};
W_.prototype.observeRenderEntry=W_.prototype.observeRenderEntry;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],W_.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.fY),_.R("design:type",Object)],W_.prototype,"ytdReduxBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],W_.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],W_.prototype,"activeEndpoint",void 0);_.O([_.U({selector:_.w3f}),_.R("design:type",Object)],W_.prototype,"allVideosCount",void 0);
_.O([_.U(),_.R("design:type",Object)],W_.prototype,"renderGuideEntry",void 0);_.O([_.kr("allVideosCount","data.alwaysShow"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],W_.prototype,"observeRenderEntry",null);W_=_.O([_.E({is:"ytd-guide-downloads-entry-renderer",disableElementRegistration:!0})],W_);
_.v(W_,"ytd-guide-downloads-entry-renderer",function(){if(gNR===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);gNR=J}J=gNR;return J},{mode:1});var zC=function(){var J=_.h.apply(this,arguments)||this;J.youtab=_.w("web_enable_youtab");J.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction"};return J};
_.D(zC,_.h);_.V=zC.prototype;_.V.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]]"}}}}}};
_.V.activeEndpointChanged=function(){if(this.activeEndpoint){this.headerEntry.activeEndpoint=this.activeEndpoint;for(var J=this.sectionItems.children,c=0,m=J.length;c<m;c++)J[c].activeEndpoint=this.activeEndpoint}};
_.V.handleAddToGuideSectionAction=function(J){var c=_.L(J,KQp);if(c&&this.data&&(J=c.items,c=c.handlerData,J&&c&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(c)>-1)){c=0;for(var m=J.length;c<m;c++)J[c].guideEntryRenderer&&this.data.sectionItems&&this.splice("data.sectionItems",this.data.sectionItems.length-1,0,J[c])}};
_.V.handleRemoveFromGuideSectionAction=function(J){var c=_.L(J,Ceh);c&&this.data&&(J=c.guideEntryId,c=c.handlerData,J&&c&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(c)>-1&&this.data&&this.data.sectionItems&&(this.removeFromExpandedSection(J,this.data.sectionItems),this.removeFromCollapsedSection(J,this.data.sectionItems)))};
_.V.removeFromExpandedSection=function(J,c){J=this.getEntryIndexMatchingId(J,c);J!==-1&&this.splice("data.sectionItems",J,1)};
_.V.removeFromCollapsedSection=function(J,c){var m=c.findIndex(function(b){return!!_.L(b,YIe)});
m&&m!==-1&&c[m]&&_.L(c[m],YIe)&&(c=_.L(c[m],YIe).expandableItems)&&(J=this.getEntryIndexMatchingId(J,c),J!==-1&&this.splice("data.sectionItems."+m+".guideCollapsibleEntryRenderer.expandableItems",J,1))};
_.V.getEntryIndexMatchingId=function(J,c){var m=this;return c.findIndex(function(b){return m.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",b)===J})};
zC.prototype.activeEndpointChanged=zC.prototype.activeEndpointChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],zC.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],zC.prototype,"actionHandlerBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],zC.prototype,"ytRendererstamperBehavior",void 0);_.O([_.Iu("#section-items"),_.R("design:type",HTMLDivElement)],zC.prototype,"sectionItems",void 0);
_.O([_.Iu("#header-entry"),_.R("design:type",Object)],zC.prototype,"headerEntry",void 0);_.O([_.U(),_.R("design:type",Object)],zC.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],zC.prototype,"activeEndpoint",void 0);_.O([_.U(),_.R("design:type",Object)],zC.prototype,"youtab",void 0);_.O([_.NE("activeEndpoint"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],zC.prototype,"activeEndpointChanged",null);
zC=_.O([_.E({is:"ytd-guide-collapsible-section-entry-renderer",disableElementRegistration:!0})],zC);
_.v(zC,"ytd-guide-collapsible-section-entry-renderer",function(){if(BOR===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);BOR=J}J=BOR;return J},{mode:1});var JtR;var ctu;var uY=function(){var J=_.h.apply(this,arguments)||this;J.modernTypography=_.w("web_modern_typography");J.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 J};
_.D(uY,_.h);_.V=uY.prototype;
_.V.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}}}}};
_.V.persistentGuideChanged=function(){if(!this.ytdGuideStateAwareBehavior.guidePersistentAndVisible){var J=_.bJ(this.hostElement,"yt-get-popup-opened-action",["yt-bubble-hint-renderer"]);J&&J.length===1&&J[0]&&_.bJ(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"])}};
_.V.handleResetChannelUnreadCountCommand=function(J){var c;(J=(c=_.L(J,kWe))==null?void 0:c.channelId)&&this.data&&this.data.items&&(c=this.getPathToEntryMatchingId(J))&&(this.set(c+".guideEntryRenderer.count",0),this.set(c+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.V.handleResetSubscriptionsUnreadDotCommand=function(J){var c,m=(c=_.L(J,HH4))==null?void 0:c.targetId,b;m&&(b=this.data)!=null&&b.items&&(J=this.data.items.findIndex(function(x){var P;return((P=x.guideEntryRenderer)==null?void 0:P.targetId)===m}),J<0||this.set("data.items."+J+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.V.getPathToEntryMatchingId=function(J){if(this.data&&this.data.items){var c=this.getEntryIndexMatchingId(J,this.data.items);if(c>-1)return"data.items."+c;for(var m=0;m<this.data.items.length;m++)if(c=this.get("guideCollapsibleEntryRenderer.expandableItems",this.data.items[m]))if(c=this.getEntryIndexMatchingId(J,c),c>-1)return"data.items."+m+".guideCollapsibleEntryRenderer.expandableItems."+c}};
_.V.handleAddToGuideSectionAction=function(J){var c=this;if(_.L(J,KQp)){var m=_.L(J,KQp).items;J=_.L(J,KQp).handlerData;var b,x;m&&J&&((b=this.data)==null?void 0:(x=b.handlerDatas)==null?void 0:x.indexOf(J))>-1&&(m=m.filter(function(P){return(P=c.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",P))&&!c.isGuideItemPresent(P)}),this.unshift.apply(this,["data.items"].concat(_.L6(m))))}};
_.V.isGuideItemPresent=function(J){if(this.data&&this.data.items){if(this.getEntryIndexMatchingId(J,this.data.items)!==-1)return!0;var c=this.data.items.find(function(m){return!!m.guideCollapsibleEntryRenderer});
if((c==null?0:c.guideCollapsibleEntryRenderer.expandableItems)&&this.getEntryIndexMatchingId(J,c.guideCollapsibleEntryRenderer.expandableItems)!==-1)return!0}return!1};
_.V.getEntryIndexMatchingId=function(J,c){var m=this;return c.findIndex(function(b){return m.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",b)===J})};
_.V.handleRemoveFromGuideSectionAction=function(J){if(_.L(J,Ceh)){var c=_.L(J,Ceh).guideEntryId;J=_.L(J,Ceh).handlerData;var m,b;c&&J&&((m=this.data)==null?void 0:(b=m.handlerDatas)==null?void 0:b.indexOf(J))>-1&&this.data&&this.data.items&&(this.removeFromExpandedSection(c,this.data.items),this.removeFromCollapsedSection(c,this.data.items))}};
_.V.removeFromExpandedSection=function(J,c){J=this.getEntryIndexMatchingId(J,c);J!==-1&&this.splice("data.items",J,1)};
_.V.removeFromCollapsedSection=function(J,c){var m=c.findIndex(function(b){return!!b.guideCollapsibleEntryRenderer});
m!==-1&&(c=c[m].guideCollapsibleEntryRenderer.expandableItems)&&(J=this.getEntryIndexMatchingId(J,c),J!==-1&&this.splice("data.items."+m+".guideCollapsibleEntryRenderer.expandableItems",J,1))};
_.V.activeEndpointChanged=function(){for(var J=_.Bj(this.hostElement).querySelector("#items").children,c=0,m=J.length;c<m;c++)J[c].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.V.guideOpenedChanged=function(){for(var J=_.Bj(this.hostElement).querySelector("#items").children,c=0,m=J.length;c<m;c++)J[c].guideOpened=this.ytdGuideStateAwareBehavior.guideOpened};
uY.prototype.guideOpenedChanged=uY.prototype.guideOpenedChanged;uY.prototype.activeEndpointChanged=uY.prototype.activeEndpointChanged;uY.prototype.persistentGuideChanged=uY.prototype.persistentGuideChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],uY.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],uY.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],uY.prototype,"ytActionHandlerBehavior",void 0);_.O([_.f(_.lu.YtLazyListBehavior),_.R("design:type",Object)],uY.prototype,"ytLazyListBehavior",void 0);_.O([_.f(_.SO.YtdGuideStateAwareBehavior),_.R("design:type",Object)],uY.prototype,"ytdGuideStateAwareBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],uY.prototype,"ytComponentBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],uY.prototype,"data",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],uY.prototype,"modernTypography",void 0);_.O([_.U(),_.R("design:type",String)],uY.prototype,"type",void 0);_.O([_.U({value:20}),_.R("design:type",Number)],uY.prototype,"initialCount",void 0);_.O([_.U({value:10}),_.R("design:type",Number)],uY.prototype,"targetFramerate",void 0);_.O([_.U({value:!0}),_.R("design:type",Boolean)],uY.prototype,"autoFill",void 0);_.O([_.U({value:50}),_.R("design:type",Number)],uY.prototype,"renderDelay",void 0);
_.O([_.NE("guidePersistentAndVisible"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],uY.prototype,"persistentGuideChanged",null);_.O([_.kr("activeEndpoint"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],uY.prototype,"activeEndpointChanged",null);_.O([_.kr("guideOpened"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],uY.prototype,"guideOpenedChanged",null);
uY=_.O([_.E({is:"ytd-guide-section-renderer",disableElementRegistration:!0})],uY);
_.v(uY,"ytd-guide-section-renderer",function(){if(ctu!==void 0)return ctu;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return ctu=J},{mode:_.mP("kevlar_poly_si_batch_j073")?1:2});var m65;var fb=function(){return _.h.apply(this,arguments)||this};
_.D(fb,_.h);_.eE.Object.defineProperties(fb.prototype,{alignByText:{configurable:!0,enumerable:!0,get:function(){return this.get("data.signInButton.buttonRenderer.style")==="STYLE_BLUE_TEXT"}}});
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],fb.prototype,"rendererBehaviors",void 0);_.O([_.U(),_.R("design:type",Object)],fb.prototype,"data",void 0);_.O([_.U(),_.q("data.signInButton.buttonRenderer.style"),_.R("design:type",Object),_.R("design:paramtypes",[])],fb.prototype,"alignByText",null);fb=_.O([_.E({is:"ytd-guide-signin-promo-renderer",disableElementRegistration:!0})],fb);
_.v(fb,"ytd-guide-signin-promo-renderer",function(){if(m65===void 0){var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);m65=J}J=m65;return J},{mode:1});var Ya=function(){var J=_.h.apply(this,arguments)||this;J.showFooter=!1;return J};
_.D(Ya,_.h);Ya.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}}}}};
Ya.prototype.attached=function(){var J=this,c;return _.N(function(m){if(m.nextAddress==1){c=_.BG().resolve(_.y6(_.Ux));if(!c)return m.jumpTo(0);c.setGuideData(J.hostElement);return _.K(m,0,3)}J.ytLazyListBehavior.initialCount=2;return m.return()})};
Ya.prototype.dataChanged=function(){this.data&&(this.showFooter=!0)};
Ya.prototype.dataChanged=Ya.prototype.dataChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Ya.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],Ya.prototype,"ytComponentBehavior",void 0);_.O([_.f(_.lu.YtLazyListBehavior),_.R("design:type",Object)],Ya.prototype,"ytLazyListBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],Ya.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.U(),_.R("design:type",Object)],Ya.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],Ya.prototype,"showFooter",void 0);_.O([_.U({value:!0}),_.R("design:type",Boolean)],Ya.prototype,"autoFill",void 0);_.O([_.kr("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Ya.prototype,"dataChanged",null);Ya=_.O([_.E({is:"ytd-guide-renderer",disableElementRegistration:!0})],Ya);
_.v(Ya,"ytd-guide-renderer",function(){if(JtR!==void 0)return JtR;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return JtR=J},{mode:_.mP("kevlar_poly_si_batch_j073")?1:2});var buR;var X3=function(){var J=_.h.apply(this,arguments)||this;J.systemIcons=_.w("kevlar_system_icons");J.frostedGlass=_.w("web_frosted_glass");J.getEndpointForm=function(){return xLr(J.data)};
return J};
_.D(X3,_.h);_.V=X3.prototype;_.V.attached=function(){this.hostElement.setAttribute("role","tab");this.hostElement.setAttribute("tabindex","0")};
_.V.dataChanged=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive);this.hostElement.setAttribute("aria-label",_.OG(this.data.formattedTitle))};
_.V.onActiveStateChange=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive)};
_.V.onDown=function(){this.interaction.triggerDown()};
_.V.onUp=function(){this.interaction.triggerUp()};
_.V.onTap=function(J){if(this.data.serviceEndpoint){var c;_.w("shorts_controller_retrieve_seedless_sequence_v2")&&((c=_.L(this.data.serviceEndpoint,_.kb))==null?void 0:c.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint):bXr(this.data.serviceEndpoint,this);J.preventDefault()}else{var m;((m=this.data)==null?0:m.navigationEndpoint)&&!_.AP(_.OT(J),this.hostElement,["A".toString()])&&_.cA(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.V.computeActive=function(J,c){if(!J)return!1;var m=J.navigationEndpoint;J=J.serviceEndpoint;if(!m&&!J||!c)return!1;if(m){J=_.L(m,_.I1);var b=_.L(c,_.I1);if(J&&b)return J.browseId===b.browseId&&J.params===b.params;var x;m=(x=_.L(m.commandMetadata,_.lk))==null?void 0:x.url;var P;c=(P=_.L(c.commandMetadata,_.lk))==null?void 0:P.url;return!(!m||!c||m!==c&&m!==_.NU(c))}return this.isActiveShortsTab(J,c)};
_.V.isActiveShortsTab=function(J,c){c=!!_.L(c,_.kb)||!!_.L(c,_.W3);return(!!_.L(J,_.kb)||!!_.L(J,_.W3))&&c};
_.V.computeTitle=function(J,c){return c?"":_.OG(J)};
_.eE.Object.defineProperties(X3.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){if(this.isActive!==void 0)return this.isActive.toString()}}});
X3.prototype.onTap=X3.prototype.onTap;X3.prototype.onUp=X3.prototype.onUp;X3.prototype.onDown=X3.prototype.onDown;X3.prototype.onActiveStateChange=X3.prototype.onActiveStateChange;X3.prototype.dataChanged=X3.prototype.dataChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],X3.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],X3.prototype,"ytComponentBehavior",void 0);
_.O([_.f(_.Dj),_.R("design:type",Object)],X3.prototype,"ironButtonState",void 0);_.O([_.U(),_.R("design:type",Object)],X3.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],X3.prototype,"activeEndpoint",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],X3.prototype,"noLabels",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeActive(data,activeEndpoint)"}),_.R("design:type",Boolean)],X3.prototype,"isActive",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],X3.prototype,"systemIcons",void 0);_.O([_.Iu("yt-interaction"),_.R("design:type",Object)],X3.prototype,"interaction",void 0);_.O([_.q("isActive"),_.R("design:type",Object),_.R("design:paramtypes",[])],X3.prototype,"ariaSelected",null);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],X3.prototype,"frostedGlass",void 0);
_.O([_.kr("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],X3.prototype,"dataChanged",null);_.O([_.NE("isActive"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],X3.prototype,"onActiveStateChange",null);_.O([_.ps("down"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],X3.prototype,"onDown",null);
_.O([_.ps("up"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],X3.prototype,"onUp",null);_.O([_.ps("tap"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],X3.prototype,"onTap",null);X3=_.O([_.E({is:"ytd-mini-guide-entry-renderer",disableElementRegistration:!0})],X3);
_.v(X3,"ytd-mini-guide-entry-renderer",function(){if(buR!==void 0)return buR;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return buR=J},{mode:_.mP("kevlar_poly_si_batch_j063")?1:2});var x65;var ZD=function(){var J=_.h.apply(this,arguments)||this;J.allVideosCount=0;J.noLabels=_.w("kevlar_mini_guide_no_labels");J.frostedGlass=_.w("web_frosted_glass");return J};
_.D(ZD,_.h);_.V=ZD.prototype;_.V.configureRendererStamper=function(){return{miniGuideItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-mini-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",noLabels:"[[noLabels]]"},noInjection:!0}}}}};
_.V.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","navigation")};
_.V.visibleChanged=function(){if(this.visible&&!this.data){var J=_.BG().resolve(_.y6(_.Ux));J&&J.setGuideData(this.hostElement)}};
_.V.dataChanged=function(){var J=[],c;if((c=this.data)!=null&&c.items){c=_.M(this.data.items);for(var m=c.next();!m.done;m=c.next()){m=m.value;var b=void 0;if((b=m.guideSectionRenderer)==null?0:b.items)for(b=void 0,m=_.M((b=m.guideSectionRenderer)==null?void 0:b.items),b=m.next();!b.done;b=m.next())if(b=b.value,b.guideEntryRenderer)b=b.guideEntryRenderer,b.isPrimary&&J.push({guideEntryRenderer:b});else if(b.guideCollapsibleSectionEntryRenderer){var x=void 0;((x=_.L(b.guideCollapsibleSectionEntryRenderer.headerEntry,
Op))==null?0:x.isPrimary)&&J.push({guideEntryRenderer:_.L(b.guideCollapsibleSectionEntryRenderer.headerEntry,Op)});if(b=b.guideCollapsibleSectionEntryRenderer.sectionItems)for(b=_.M(b),x=b.next();!x.done;x=b.next()){var P=x.value;x=_.L(P,Xif);var p=void 0;((p=_.L(P,Op))==null?0:p.isPrimary)?J.push({guideEntryRenderer:_.L(P,Op)}):x&&(P=void 0,_.L((P=x)==null?void 0:P.entryRenderer,Op)&&(x.alwaysShow||this.allVideosCount)&&J.push({guideEntryRenderer:_.L(x.entryRenderer,Op)}))}}}}this.miniGuideItems=
J};
_.V.activeEndpointChanged=function(){for(var J=this.items.children,c=0;c<J.length;c++)J[c].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
ZD.prototype.activeEndpointChanged=ZD.prototype.activeEndpointChanged;ZD.prototype.dataChanged=ZD.prototype.dataChanged;ZD.prototype.visibleChanged=ZD.prototype.visibleChanged;_.O([_.f(_.fY),_.R("design:type",Object)],ZD.prototype,"ytdReduxBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],ZD.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],ZD.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.f(_.SO.YtdGuideStateAwareBehavior),_.R("design:type",Object)],ZD.prototype,"ytdGuideStateAwareBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],ZD.prototype,"ytComponentBehavior",void 0);_.O([_.Iu("#items"),_.R("design:type",Object)],ZD.prototype,"items",void 0);_.O([_.U(),_.R("design:type",Object)],ZD.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Boolean)],ZD.prototype,"visible",void 0);
_.O([_.U(),_.R("design:type",Object)],ZD.prototype,"miniGuideItems",void 0);_.O([_.U({selector:_.w3f}),_.R("design:type",Object)],ZD.prototype,"allVideosCount",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],ZD.prototype,"noLabels",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],ZD.prototype,"frostedGlass",void 0);_.O([_.kr("visible"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],ZD.prototype,"visibleChanged",null);
_.O([_.kr("data","allVideosCount"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],ZD.prototype,"dataChanged",null);_.O([_.kr("activeEndpoint"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],ZD.prototype,"activeEndpointChanged",null);ZD=_.O([_.E({is:"ytd-mini-guide-renderer",disableElementRegistration:!0})],ZD);
_.v(ZD,"ytd-mini-guide-renderer",function(){if(x65===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);x65=J}J=x65;return J},{mode:1});var V$R;var PG1=/^[\x00-\x7F]+$/,qj=function(){var J=_.h.apply(this,arguments)||this;J.darkerDarkTheme=_.w("web_darker_dark_theme");return J};
_.D(qj,_.h);_.eE.Object.defineProperties(qj.prototype,{displayHandle:{configurable:!0,enumerable:!0,get:function(){var J,c=_.OG((J=this.data)==null?void 0:J.handle);if(c)return _.v2("@"+c)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){var J=_.OG(this.displayHandle),c,m=_.OG((c=this.data)==null?void 0:c.handleUrl);if(J&&m)return _.v2(m+J)}},
warningText:{configurable:!0,enumerable:!0,get:function(){var J=_.OG(this.displayHandle);if(J&&!PG1.test(J)){var c;return(c=this.data)==null?void 0:c.warningText}}},
urlInfoTextWithUrl:{configurable:!0,enumerable:!0,get:function(){var J=_.OG(this.displayHandleUrl),c,m=_.OG((c=this.data)==null?void 0:c.urlInfoText);if(J&&m)return _.v2(m+" "+J)}}});
_.O([_.U(),_.R("design:type",Object)],qj.prototype,"data",void 0);_.O([_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],qj.prototype,"displayHandle",null);_.O([_.q("displayHandle"),_.R("design:type",Object),_.R("design:paramtypes",[])],qj.prototype,"displayHandleUrl",null);_.O([_.q("displayHandle"),_.R("design:type",Object),_.R("design:paramtypes",[])],qj.prototype,"warningText",null);
_.O([_.q("displayHandleUrl"),_.R("design:type",Object),_.R("design:paramtypes",[])],qj.prototype,"urlInfoTextWithUrl",null);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],qj.prototype,"darkerDarkTheme",void 0);qj=_.O([_.E({is:"ytd-handles-claiming-confirm-dialog-content",disableElementRegistration:!0})],qj);
_.v(qj,"ytd-handles-claiming-confirm-dialog-content",function(){if(V$R!==void 0)return V$R;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return V$R=J},{mode:1});var M$u;var Ud=function(){var J=_.h.apply(this,arguments)||this;J.okButtonOverride={style:"mono",type:"outline",size:"M"};return J};
_.D(Ud,_.h);Ud.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Ud.prototype.configureRendererStamper=function(){return{"data.okButton":{id:"ok-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[okButtonOverride]]"}}}}}};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Ud.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],Ud.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Ud.prototype,"okButtonOverride",void 0);_.O([_.U(),_.R("design:type",Object)],Ud.prototype,"data",void 0);Ud=_.O([_.E({is:"ytd-handles-claiming-confirm-dialog-renderer",disableElementRegistration:!0})],Ud);
_.v(Ud,"ytd-handles-claiming-confirm-dialog-renderer",function(){if(M$u!==void 0)return M$u;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return M$u=J},{mode:1});var pTs;var NWs=/^[\x00-\x7F]+$/,Sb=function(){var J=_.h.apply(this,arguments)||this;J.isLoading=!1;J.darkerDarkTheme=_.w("web_darker_dark_theme");return J};
_.D(Sb,_.h);Sb.prototype.selectedHandleChanged=function(){if(this.handleInput&&this.onSelectedHandleChanged){var J;this.selectedHandle=(J=this.handleInput)==null?void 0:J.value;this.onSelectedHandleChanged(this.selectedHandle);_.bJ(this.hostElement,"yt-refit-popups-action")}};
_.eE.Object.defineProperties(Sb.prototype,{handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var J;return(J=this.data)==null?void 0:J.handleUrlPrefix}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.v2("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.v2(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!NWs.test(this.selectedHandle)){var J;return(J=this.data)==null?void 0:J.warningText}}}});
_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],Sb.prototype,"ytComponentBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Sb.prototype,"data",void 0);_.O([_.U(),_.R("design:type",String)],Sb.prototype,"selectedHandle",void 0);_.O([_.U(),_.R("design:type",Object)],Sb.prototype,"isLoading",void 0);_.O([_.U(),_.R("design:type",Function)],Sb.prototype,"onSelectedHandleChanged",void 0);_.O([_.Iu("#channel-handle-input"),_.R("design:type",Object)],Sb.prototype,"handleInput",void 0);
_.O([_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],Sb.prototype,"handleUrlPrefix",null);_.O([_.q("selectedHandle"),_.R("design:type",Object),_.R("design:paramtypes",[])],Sb.prototype,"displayHandle",null);_.O([_.q("selectedHandle"),_.R("design:type",Object),_.R("design:paramtypes",[])],Sb.prototype,"displayHandleUrl",null);_.O([_.q("selectedHandle"),_.R("design:type",Object),_.R("design:paramtypes",[])],Sb.prototype,"warningText",null);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Sb.prototype,"darkerDarkTheme",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Sb.prototype,"ytRendererBehavior",void 0);Sb=_.O([_.E({is:"ytd-handles-claiming-edit-dialog-content",disableElementRegistration:!0})],Sb);
_.v(Sb,"ytd-handles-claiming-edit-dialog-content",function(){if(pTs!==void 0)return pTs;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return pTs=J},{mode:1});var t$4;var hp=function(){var J=_.h.apply(this,arguments)||this;J.actionButtonOverride={style:"mono",type:"filled",size:"M"};J.cancelButtonOverride={style:"mono",type:"text",size:"M"};J.selectButtonDisabled=!1;J.isLoading=!1;J.hasSelectedHandleEventListener=!1;J.selectedHandleChanged=function(c){J.selectedHandle=c};
return J};
_.D(hp,_.h);_.V=hp.prototype;_.V.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled()};
_.V.onDataChanged=function(){var J,c;this.selectedHandle=(c=_.L((J=this.data)==null?void 0:J.inputField,MvS))==null?void 0:c.handle};
_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.V.onCancel=function(){this.selectedHandle="";_.m9(this.hostElement,"yt-close-popup-action",[this.is])};
_.V.onSelectHandle=function(){var J=this;if(this.selectedHandle!==void 0){var c;((c=this.data)==null?void 0:c.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(m,b){if(b.newHandleUpdateStatus!==void 0&&b.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&b.newHandleUpdateStatus.errorMessage)_.Bg(J.hostElement,_.OG(b.newHandleUpdateStatus.errorMessage)),
J.isLoading=!1;else{var x;if((x=J.data)==null?0:x.onChannelUpdateSuccess){m=J.data.onChannelUpdateSuccess;var P,p;if(b=(P=_.L(m,_.T3))==null?void 0:(p=P.popup)==null?void 0:p.handlesClaimingConfirmDialogRenderer)b.handle=_.v2(J.selectedHandle);J.ytComponentBehavior.resolveCommand(m);_.m9(J.hostElement,"yt-close-popup-action",[J.is])}else J.isLoading=!1}},
onServerError:function(){var m;J.content&&((m=J.content)==null?0:m.handleInput)&&J.content.handleInput.validate();J.isLoading=!1;_.Bg(J.hostElement,_.CX("TRY_AGAIN_LATER"))}}}))}};
_.V.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
hp.prototype.onDataChanged=hp.prototype.onDataChanged;hp.prototype.onSelectedHandleChanged=hp.prototype.onSelectedHandleChanged;_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],hp.prototype,"ytComponentBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],hp.prototype,"actionButtonOverride",void 0);_.O([_.U(),_.R("design:type",Object)],hp.prototype,"cancelButtonOverride",void 0);_.O([_.U(),_.R("design:type",Object)],hp.prototype,"data",void 0);
_.O([_.U(),_.R("design:type",String)],hp.prototype,"selectedHandle",void 0);_.O([_.U(),_.R("design:type",Object)],hp.prototype,"selectButtonDisabled",void 0);_.O([_.U(),_.R("design:type",Object)],hp.prototype,"isLoading",void 0);_.O([_.U(),_.R("design:type",Object)],hp.prototype,"hasSelectedHandleEventListener",void 0);_.O([_.U(),_.R("design:type",Object)],hp.prototype,"handleInput",void 0);
_.O([_.NE("selectedHandle"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],hp.prototype,"onSelectedHandleChanged",null);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],hp.prototype,"onDataChanged",null);_.O([_.Iu("ytd-handles-claiming-edit-dialog-content"),_.R("design:type",Object)],hp.prototype,"content",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],hp.prototype,"ytRendererBehavior",void 0);
_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],hp.prototype,"ytRendererstamperBehavior",void 0);hp=_.O([_.E({is:"ytd-handles-claiming-edit-dialog-renderer",disableElementRegistration:!0})],hp);
_.v(hp,"ytd-handles-claiming-edit-dialog-renderer",function(){if(t$4!==void 0)return t$4;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return t$4=J},{mode:1});var IXe;var d5=function(){return _.h.apply(this,arguments)||this};
_.D(d5,_.h);_.eE.Object.defineProperties(d5.prototype,{formattedHandle:{configurable:!0,enumerable:!0,get:function(){var J;if((J=this.data)==null?0:J.handle){var c;return _.v2("@"+_.OG((c=this.data)==null?void 0:c.handle))}}}});
_.O([_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],d5.prototype,"formattedHandle",null);_.O([_.U(),_.R("design:type",Object)],d5.prototype,"data",void 0);d5=_.O([_.E({is:"ytd-handles-claiming-radio-option-renderer",disableElementRegistration:!0})],d5);
_.v(d5,"ytd-handles-claiming-radio-option-renderer",function(){if(IXe!==void 0)return IXe;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return IXe=J},{mode:1});var KBo;var CG4=/^[\x00-\x7F]+$/,$a=function(){var J=_.h.apply(this,arguments)||this;J.initialRadioIndex="-1";J.isLoading=!1;J.darkerDarkTheme=_.w("web_darker_dark_theme");J.maybeSubmitFeedback=function(){J.feedbackSurveyRenderer.submitSurvey()};
return J};
_.D($a,_.h);$a.prototype.updateSelectedHandleIndexFromBinding=function(J){this.selectedRadioIndex=+J.detail.value;if(this.onSelectedRadioIndexChanged)this.onSelectedRadioIndexChanged(J)};
$a.prototype.selectedHandleChanged=function(J){if(this.handleInput&&Number(this.selectedRadioIndex)===this.radioButtonLength&&this.onSelectedHandleChanged){var c;this.selectedHandle=(c=this.handleInput)==null?void 0:c.value;this.onSelectedHandleChanged(J)}};
_.eE.Object.defineProperties($a.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var J;return(((J=this.data)==null?void 0:J.radioButton)||[]).length}},
handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var J;return this.ytRendererBehavior.getSimpleString((J=this.data)==null?void 0:J.handleUrlPrefix)}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.v2("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.v2(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!CG4.test(this.selectedHandle)){var J;return(J=this.data)==null?void 0:J.warningText}}}});
_.O([_.U(),_.R("design:type",Object)],$a.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],$a.prototype,"initialRadioIndex",void 0);_.O([_.U(),_.R("design:type",Number)],$a.prototype,"selectedRadioIndex",void 0);_.O([_.U(),_.R("design:type",String)],$a.prototype,"selectedHandle",void 0);_.O([_.U(),_.R("design:type",Object)],$a.prototype,"isLoading",void 0);_.O([_.U(),_.R("design:type",Function)],$a.prototype,"onSelectedHandleChanged",void 0);
_.O([_.U(),_.R("design:type",Function)],$a.prototype,"onSelectedRadioIndexChanged",void 0);_.O([_.Iu("#channel-handle-input"),_.R("design:type",Object)],$a.prototype,"handleInput",void 0);_.O([_.Iu("ytd-feedback-survey-renderer"),_.R("design:type",Object)],$a.prototype,"feedbackSurveyRenderer",void 0);_.O([_.q("data"),_.R("design:type",Number),_.R("design:paramtypes",[])],$a.prototype,"radioButtonLength",null);
_.O([_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],$a.prototype,"handleUrlPrefix",null);_.O([_.q("selectedHandle"),_.R("design:type",Object),_.R("design:paramtypes",[])],$a.prototype,"displayHandle",null);_.O([_.q("selectedHandle"),_.R("design:type",Object),_.R("design:paramtypes",[])],$a.prototype,"displayHandleUrl",null);_.O([_.q("selectedHandle"),_.R("design:type",Object),_.R("design:paramtypes",[])],$a.prototype,"warningText",null);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],$a.prototype,"darkerDarkTheme",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],$a.prototype,"ytRendererBehavior",void 0);$a=_.O([_.E({is:"ytd-handles-claiming-select-dialog-content",disableElementRegistration:!0})],$a);
_.v($a,"ytd-handles-claiming-select-dialog-content",function(){if(KBo!==void 0)return KBo;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return KBo=J},{mode:1});var aXF;var GC=function(){var J=_.h.apply(this,arguments)||this;J.actionButtonOverride={style:"mono",type:"filled",size:"M"};J.cancelButtonOverride={style:"mono",type:"text",size:"M"};J.initialRadioIndex="-1";J.selectButtonDisabled=!1;J.isLoading=!1;J.selectedRadioIndexChanged=function(c){J.selectedRadioIndex=Number(c.detail.value)};
J.selectedHandleChanged=function(c){J.selectedHandle=c.detail.value};
J.darkerDarkTheme=_.w("web_darker_dark_theme");return J};
_.D(GC,_.h);_.V=GC.prototype;_.V.onDataChanged=function(){this.initialRadioIndex="0";this.selectedRadioIndex=0};
_.V.onSelectedHandleIndexChanged=function(){this.updateSelectedHandle()};
_.V.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled();_.bJ(this.hostElement,"yt-refit-popups-action")};
_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.V.onCancel=function(){this.initialRadioIndex="-1";this.selectedRadioIndex=-1;_.m9(this.hostElement,"yt-close-popup-action",[this.is])};
_.V.onSelectHandle=function(){var J=this;if(this.selectedHandle!==void 0){var c;((c=this.data)==null?void 0:c.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(m,b){if(b.newHandleUpdateStatus!==void 0&&b.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&b.newHandleUpdateStatus.errorMessage)_.Bg(J.hostElement,_.OG(b.newHandleUpdateStatus.errorMessage)),
J.isLoading=!1;else{var x;if((x=J.data)==null?0:x.onChannelUpdateSuccess){m=J.data.onChannelUpdateSuccess;b=_.L(m,_.T3);var P;if(b==null?0:(P=b.popup)==null?0:P.handlesClaimingConfirmDialogRenderer)b.popup.handlesClaimingConfirmDialogRenderer.handle=_.v2(J.selectedHandle);J.ytComponentBehavior.resolveCommand(m);_.m9(J.hostElement,"yt-close-popup-action",[J.is])}else J.isLoading=!1}},
onServerError:function(){if(J.selectedRadioIndex===J.radioButtonLength){var m;J.content&&((m=J.content)==null?0:m.handleInput)&&J.content.handleInput.validate()}J.isLoading=!1;_.Bg(J.hostElement,_.CX("TRY_AGAIN_LATER"))}}}))}};
_.V.updateSelectedHandle=function(){if(this.selectedRadioIndex!==void 0)if(this.selectedRadioIndex<0)this.selectedHandle=void 0;else if(this.selectedRadioIndex===this.radioButtonLength){var J,c;this.selectedHandle=(J=this.content)==null?void 0:(c=J.handleInput)==null?void 0:c.value}else this.selectedRadioIndex>=0&&((J=this.getRadioItem(this.selectedRadioIndex))?this.selectedHandle=this.ytRendererBehavior.getSimpleString(J==null?void 0:J.handle):this.selectedHandle=void 0)};
_.V.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
_.V.getRadioItem=function(J){if(this.radioButtonLength>J&&J>=0)return _.L(this.data.radioButton[J],LQp)};
_.eE.Object.defineProperties(GC.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var J;return(((J=this.data)==null?void 0:J.radioButton)||[]).length}}});
GC.prototype.onSelectedHandleChanged=GC.prototype.onSelectedHandleChanged;GC.prototype.onSelectedHandleIndexChanged=GC.prototype.onSelectedHandleIndexChanged;GC.prototype.onDataChanged=GC.prototype.onDataChanged;_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],GC.prototype,"ytComponentBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],GC.prototype,"actionButtonOverride",void 0);_.O([_.U(),_.R("design:type",Object)],GC.prototype,"cancelButtonOverride",void 0);
_.O([_.U(),_.R("design:type",Object)],GC.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],GC.prototype,"initialRadioIndex",void 0);_.O([_.U(),_.R("design:type",Number)],GC.prototype,"selectedRadioIndex",void 0);_.O([_.U(),_.R("design:type",String)],GC.prototype,"selectedHandle",void 0);_.O([_.U(),_.R("design:type",Object)],GC.prototype,"selectButtonDisabled",void 0);_.O([_.U(),_.R("design:type",Object)],GC.prototype,"isLoading",void 0);
_.O([_.q("data"),_.R("design:type",Number),_.R("design:paramtypes",[])],GC.prototype,"radioButtonLength",null);_.O([_.Iu("ytd-handles-claiming-select-dialog-content"),_.R("design:type",Object)],GC.prototype,"content",void 0);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],GC.prototype,"onDataChanged",null);
_.O([_.NE("selectedRadioIndex"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],GC.prototype,"onSelectedHandleIndexChanged",null);_.O([_.NE("selectedHandle"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],GC.prototype,"onSelectedHandleChanged",null);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],GC.prototype,"darkerDarkTheme",void 0);
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],GC.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],GC.prototype,"ytRendererstamperBehavior",void 0);GC=_.O([_.E({is:"ytd-handles-claiming-select-dialog-renderer",disableElementRegistration:!0})],GC);
_.v(GC,"ytd-handles-claiming-select-dialog-renderer",function(){if(aXF!==void 0)return aXF;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return aXF=J},{mode:1});var kru;var Hu4;var Ed=function(){return _.h.apply(this,arguments)||this};
_.D(Ed,_.h);Ed.prototype.configureRendererStamper=function(){return{"data.badge":{id:"standalone-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}}}};
_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],Ed.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Ed.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Ed.prototype,"data",void 0);Ed=_.O([_.E({is:"ytd-hotkey-dialog-section-option-renderer",disableElementRegistration:!0})],Ed);
_.v(Ed,"ytd-hotkey-dialog-section-option-renderer",function(){if(Hu4!==void 0)return Hu4;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return Hu4=J},{mode:1});var iu4;var v_=function(){return _.h.apply(this,arguments)||this};
_.D(v_,_.h);v_.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{hotkeyDialogSectionOptionRenderer:"ytd-hotkey-dialog-section-option-renderer"}}}};
_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],v_.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],v_.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],v_.prototype,"data",void 0);v_=_.O([_.E({is:"ytd-hotkey-dialog-section-renderer",disableElementRegistration:!0})],v_);
_.v(v_,"ytd-hotkey-dialog-section-renderer",function(){if(iu4!==void 0)return iu4;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return iu4=J},{mode:1});var Od=function(){var J=_.h.apply(this,arguments)||this;J.darkerDarkTheme=_.w("web_darker_dark_theme");return J};
_.D(Od,_.h);Od.prototype.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{hotkeyDialogSectionRenderer:"ytd-hotkey-dialog-section-renderer"}}}};
_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],Od.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Od.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Od.prototype,"darkerDarkTheme",void 0);Od=_.O([_.E({is:"ytd-hotkey-dialog-content",disableElementRegistration:!0})],Od);
_.v(Od,"ytd-hotkey-dialog-content",function(){if(kru!==void 0)return kru;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return kru=J},{mode:1});var nT5;var Ap=function(){return _.h.apply(this,arguments)||this};
_.D(Ap,_.h);Ap.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var J=document.querySelector("ytd-hotkey-dialog-content #scrollable");J&&(J.dialogElement=this.hostElement.parentElement)};
Ap.prototype.onCloseTap=function(){_.m9(this.hostElement,"yt-close-popup-action")};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Ap.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Ap.prototype,"data",void 0);Ap=_.O([_.E({is:"ytd-hotkey-dialog-renderer",disableElementRegistration:!0})],Ap);
_.v(Ap,"ytd-hotkey-dialog-renderer",function(){if(nT5!==void 0)return nT5;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return nT5=J},{mode:1});var TWp;var Rk=function(){return _.h.apply(this,arguments)||this};
_.D(Rk,_.h);Rk.prototype.onYtServiceRequestError=function(){if(this.blocked){var J;var c=(J=this.data)==null?void 0:J.defaultServiceEndpoint}else{var m;c=(m=this.data)==null?void 0:m.toggledServiceEndpoint}var b;(c=(b=_.L(c,_.YKQ))==null?void 0:b.onFailureAction)&&this.ytComponentBehavior.resolveCommand(c);this.updateBlockState(!this.blocked)};
Rk.prototype.onYtToggleButton=function(J){this.updateBlockState(J.detail.toggled)};
Rk.prototype.updateBlockState=function(J){if(J!==this.blocked){var c=this.blockedEntityKey;c&&this.ytdReduxBehavior.dispatch(_.It("blockStateEntity",c,{key:c,blocked:J}));this.set("data.isToggled",J)}};
_.eE.Object.defineProperties(Rk.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)}}});
Rk.prototype.onYtToggleButton=Rk.prototype.onYtToggleButton;Rk.prototype.onYtServiceRequestError=Rk.prototype.onYtServiceRequestError;_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],Rk.prototype,"ytComponentBehavior",void 0);_.O([_.f(_.fY),_.R("design:type",Object)],Rk.prototype,"ytdReduxBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Rk.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],Rk.prototype,"blockedEntityKey",void 0);
_.O([_.U({selectorArgs:["blockedEntityKey"],selector:function(J,c){return _.P2(J.entities,"blockStateEntity",c)}}),
_.R("design:type",Object)],Rk.prototype,"blockStateEntity",void 0);_.O([_.q("data","blockStateEntity"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Rk.prototype,"blocked",null);_.O([_.ps("yt-service-request-error"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],Rk.prototype,"onYtServiceRequestError",null);
_.O([_.ps("yt-toggle-button"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],Rk.prototype,"onYtToggleButton",null);Rk=_.O([_.E({is:"ytd-block-button",disableElementRegistration:!0})],Rk);
_.v(Rk,"ytd-block-button",function(){if(TWp!==void 0)return TWp;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return TWp=J},
{mode:1});var wT1;var rth;var ok=function(){return _.h.apply(this,arguments)||this};
_.D(ok,_.h);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],ok.prototype,"ytComponentBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],ok.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],ok.prototype,"data",void 0);ok=_.O([_.E({is:"ytd-kids-blocklist-picker-item-renderer",disableElementRegistration:!0})],ok);
_.v(ok,"ytd-kids-blocklist-picker-item-renderer",function(){if(rth!==void 0)return rth;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return rth=J},{mode:1});var QA=function(){return _.h.apply(this,arguments)||this};
_.D(QA,_.h);QA.prototype.configureRendererStamper=function(){return{"data.childRows":{id:"child-rows",mapping:{kidsBlocklistPickerItemRenderer:"ytd-kids-blocklist-picker-item-renderer"}}}};
_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],QA.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],QA.prototype,"data",void 0);QA=_.O([_.E({is:"ytd-kids-blocklist-picker-content",disableElementRegistration:!0})],QA);
_.v(QA,"ytd-kids-blocklist-picker-content",function(){if(wT1!==void 0)return wT1;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return wT1=
J},{mode:_.mP("kevlar_poly_si_batch_j025")?1:2});var s7R;var eb=function(){var J=_.h.apply(this,arguments)||this;J.hasAnyRequestSucceeded=!1;J.hasAnyRequestFailed=!1;J.numPendingRequests=0;return J};
_.D(eb,_.h);_.V=eb.prototype;_.V.attached=function(){this.hostElement.setAttribute("dialog","")};
_.V.onDoneButtonTap=function(){_.m9(this.hostElement,"yt-close-popup-action",["ytd-kids-blocklist-picker-renderer"])};
_.V.onYtServiceRequestSent=function(){this.numPendingRequests+=1};
_.V.onYtServiceRequestCompleted=function(){--this.numPendingRequests;this.hasAnyRequestSucceeded=!0};
_.V.onYtServiceRequestError=function(){--this.numPendingRequests;this.hasAnyRequestFailed=!0};
_.V.onPopupClosed=function(J){var c,m;if(((c=J.detail)==null?void 0:(m=c.popup)==null?void 0:m.is)==="tp-yt-paper-dialog"){var b;this.numPendingRequests<=0&&this.hasAnyRequestSucceeded&&!this.hasAnyRequestFailed&&((b=this.data)==null?0:b.successfulToastActionMessage)&&this.ytComponentBehavior.resolveCommand(_.Q_(this.data.successfulToastActionMessage));this.hasAnyRequestFailed=this.hasAnyRequestSucceeded=!1;this.numPendingRequests=0}};
eb.prototype.onPopupClosed=eb.prototype.onPopupClosed;eb.prototype.onYtServiceRequestError=eb.prototype.onYtServiceRequestError;eb.prototype.onYtServiceRequestCompleted=eb.prototype.onYtServiceRequestCompleted;eb.prototype.onYtServiceRequestSent=eb.prototype.onYtServiceRequestSent;_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],eb.prototype,"ytComponentBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],eb.prototype,"ytRendererBehavior",void 0);
_.O([_.U(),_.R("design:type",Object)],eb.prototype,"data",void 0);_.O([_.ps("yt-service-request-sent"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],eb.prototype,"onYtServiceRequestSent",null);_.O([_.ps("yt-service-request-completed"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],eb.prototype,"onYtServiceRequestCompleted",null);
_.O([_.ps("yt-service-request-error"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],eb.prototype,"onYtServiceRequestError",null);_.O([_.ps("yt-popup-closed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],eb.prototype,"onPopupClosed",null);eb=_.O([_.E({is:"ytd-kids-blocklist-picker-renderer",disableElementRegistration:!0})],eb);
_.v(eb,"ytd-kids-blocklist-picker-renderer",function(){if(s7R!==void 0)return s7R;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return s7R=J},{mode:1});var LBh;var D61;var jb=function(){return _.h.apply(this,arguments)||this};
_.D(jb,_.h);jb.prototype.setTip=function(J){var c=this;this.data&&(this.tip=Knr(tBR.getInstance(),J,this.data),_.o3(this,function(){_.cA(c.hostElement,"yt-refit")}))};
jb.prototype.clearTip=function(){this.tip=void 0};
jb.prototype.computeHidden=function(J){return!J};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],jb.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],jb.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeHidden(tip)",value:!0}),_.R("design:type",Boolean)],jb.prototype,"hidden",void 0);_.O([_.U(),_.R("design:type",Object)],jb.prototype,"tip",void 0);jb=_.O([_.E({is:"ytd-menu-popup-tip-renderer",disableElementRegistration:!0})],jb);
_.v(jb,"ytd-menu-popup-tip-renderer",function(){if(D61!==void 0)return D61;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);
return D61=J},{mode:1});var WBR;var F3=function(){var J=_.h.apply(this,arguments)||this;J.useIcons=!1;J.systemIcons=_.w("kevlar_system_icons");J.useListItemStyles=_.w("web_list_item_style_for_menu_items");return J};
_.D(F3,_.h);_.V=F3.prototype;_.V.onFocus=function(){var J;(J=_.Bj(this.hostElement).querySelector("tp-yt-paper-item"))==null||J.focus()};
_.V.onTap=function(){var J=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.defaultServiceEndpoint;if(J&&_.L(J,_.pX))this.componentBehavior.resolveCommand(J),this.updateToggledStateInEntity();else if(J){this.componentBehavior.resolveCommand(J)||_.BG().resolve(_.gu).resolveCommand(J,{form:{element:this.hostElement}});var c;((c=_.L(J,_.In))==null?void 0:c.signal)==="CLIENT_SIGNAL"&&this.updateToggledStateInEntity()}};
_.V.onYtServiceRequestCompleted=function(){this.updateToggledStateInEntity()};
_.V.toggledStateEntityChanged=function(){this.toggleMenuServiceItemEntity&&this.set("data.isToggled",!!this.toggleMenuServiceItemEntity.isToggled)};
_.V.updateToggledStateInEntity=function(){var J=this.data.toggleMenuServiceItemEntityKey,c=!this.data.isToggled;J&&this.ytdReduxBehavior.dispatch(_.It("toggleMenuServiceItemEntity",J,{key:J,isToggled:c}))};
_.V.computeIcon=function(J,c,m){return(J=J?m:c)&&J.iconType?_.Pd(J.iconType):""};
_.V.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.V.isIconActive=function(J){return!_.w("toggle_menu_active_icon_killswitch")&&J};
_.eE.Object.defineProperties(F3.prototype,{toggleButtonText:{configurable:!0,enumerable:!0,get:function(){var J,c,m;return((J=this.data)==null?0:J.isToggled)?(c=this.data)==null?void 0:c.toggledText:(m=this.data)==null?void 0:m.defaultText}}});
F3.prototype.toggledStateEntityChanged=F3.prototype.toggledStateEntityChanged;F3.prototype.onYtServiceRequestCompleted=F3.prototype.onYtServiceRequestCompleted;F3.prototype.onTap=F3.prototype.onTap;F3.prototype.onFocus=F3.prototype.onFocus;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],F3.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],F3.prototype,"componentBehavior",void 0);
_.O([_.f(_.fY),_.R("design:type",Object)],F3.prototype,"ytdReduxBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],F3.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],F3.prototype,"useIcons",void 0);_.O([_.U({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.R("design:type",String)],F3.prototype,"icon",void 0);
_.O([_.U({selectorArgs:["data.toggleMenuServiceItemEntityKey"],selector:function(J,c){return _.P2(J.entities,"toggleMenuServiceItemEntity",c)}}),
_.R("design:type",Object)],F3.prototype,"toggleMenuServiceItemEntity",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],F3.prototype,"systemIcons",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],F3.prototype,"useListItemStyles",void 0);_.O([_.ps("focus"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],F3.prototype,"onFocus",null);
_.O([_.q("data.isToggled"),_.R("design:type",Object),_.R("design:paramtypes",[])],F3.prototype,"toggleButtonText",null);_.O([_.ps("tap"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],F3.prototype,"onTap",null);_.O([_.ps("yt-service-request-completed"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],F3.prototype,"onYtServiceRequestCompleted",null);
_.O([_.NE("toggleMenuServiceItemEntity.isToggled","data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],F3.prototype,"toggledStateEntityChanged",null);F3=_.O([_.E({is:"ytd-toggle-menu-service-item-renderer",disableElementRegistration:!0})],F3);
_.v(F3,"ytd-toggle-menu-service-item-renderer",function(){if(WBR!==void 0)return WBR;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return WBR=J},{mode:1});var zJ4;var lY=function(){return _.h.apply(this,arguments)||this};
_.D(lY,_.h);lY.prototype.onFocus=function(){var J;(J=_.Bj(this.hostElement).querySelector("tp-yt-paper-item"))==null||J.focus()};
_.eE.Object.defineProperties(lY.prototype,{imageSource:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.iconUrl)return _.n1(this.data.iconUrl)}}});
lY.prototype.onFocus=lY.prototype.onFocus;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],lY.prototype,"rendererBehavior",void 0);_.O([_.f(_.ts.YtEndpointBehavior),_.R("design:type",Object)],lY.prototype,"ytEndpointBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],lY.prototype,"data",void 0);_.O([_.ps("focus"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],lY.prototype,"onFocus",null);
_.O([_.q("data.iconUrl"),_.R("design:type",Object),_.R("design:paramtypes",[])],lY.prototype,"imageSource",null);lY=_.O([_.E({disableElementRegistration:!0,is:"ytd-menu-custom-icon-item-renderer"})],lY);
_.v(lY,"ytd-menu-custom-icon-item-renderer",function(){if(zJ4!==void 0)return zJ4;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return zJ4=J},{mode:_.mP("kevlar_poly_si_batch_j028")?1:2});_.lv(_.Da,"yt-list-item-view-model",{props:{data:_.vt,isMenuItem:_.vt,isCompact:_.vt,onTap:_.Fz,trailingAccessory:_.Fz,hideSelectionTextChevron:_.vt,disabled:_.vt,inPopup:_.vt,disableHorizontalPadding:_.vt,isOverlay:_.vt}});var yA=function(){var J=_.h.apply(this,arguments)||this;J.disableBackdropFilter=_.w("web_disable_backdrop_filter");return J};
_.D(yA,_.h);_.V=yA.prototype;
_.V.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"}}}};
_.V.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu")};
_.V.computeAriaLabel=function(J){return J};
_.V.onPopupOpened=function(){this.items.selected=0;for(var J=_.M(_.Bj(this.items).children),c=J.next();!c.done;c=J.next())c.value.popupPositionTarget=this.positionTarget;if(J=this.popupTip||void 0)J.setTip(this.source||""),this.source=void 0;this.veData&&(J=_.Y3())&&_.vA(J,[this.veData])};
_.V.onPopupClosed=function(){var J=this.popupTip||void 0;J&&J.clearTip()};
_.V.onIronActivate=function(J){this.shouldPersist(J)||_.m9(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.veData&&(J=_.Y3())&&_.AS(J,this.veData)};
_.V.shouldPersist=function(J){var c,m;if(((c=J.detail)==null?void 0:c.selected)===void 0||(m=this.data)==null||!m.items)return!1;var b,x;return!((x=(b=this.data.items[J.detail.selected])==null?void 0:b.toggleMenuServiceItemRenderer)==null||!x.persistentOnMenuPopup)};
_.V.computeUseIcons=function(){return this.data&&this.data.items?this.data.items.some(function(J){return J.menuNavigationItemRenderer?!!J.menuNavigationItemRenderer.icon:J.menuServiceItemRenderer?!!J.menuServiceItemRenderer.icon:J.menuConditionalServiceItemRenderer?!!J.menuConditionalServiceItemRenderer.icon:J.menuConditionalNavigationItemRenderer?!!J.menuConditionalNavigationItemRenderer.icon:J.toggleMenuServiceItemRenderer?!!J.toggleMenuServiceItemRenderer.defaultIcon:!1}):!1};
yA.prototype.onPopupClosed=yA.prototype.onPopupClosed;yA.prototype.onPopupOpened=yA.prototype.onPopupOpened;_.O([_.f(_.Ci.YtEventForwardingBehavior),_.R("design:type",Object)],yA.prototype,"ytEventForwardingBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],yA.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],yA.prototype,"ytRendererBehavior",void 0);
_.O([_.U(),_.R("design:type",Object)],yA.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],yA.prototype,"veData",void 0);_.O([_.U({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.menuPopupAccessibility.label)"}),_.R("design:type",String)],yA.prototype,"ariaLabel",void 0);_.O([_.U({computed:"computeUseIcons(data)",reflectToAttribute:!0}),_.R("design:type",Boolean)],yA.prototype,"useIcons",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],yA.prototype,"disableBackdropFilter",void 0);_.O([_.Iu("#items"),_.R("design:type",Object)],yA.prototype,"items",void 0);_.O([_.Iu("ytd-menu-popup-tip-renderer"),_.R("design:type",Object)],yA.prototype,"popupTip",void 0);_.O([_.ps("yt-popup-opened"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],yA.prototype,"onPopupOpened",null);
_.O([_.ps("yt-popup-closed"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],yA.prototype,"onPopupClosed",null);yA=_.O([_.E({is:"ytd-menu-popup-renderer",disableElementRegistration:!0})],yA);
_.v(yA,"ytd-menu-popup-renderer",function(){if(LBh!==void 0)return LBh;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return LBh=J},{mode:1});var uxF;var fXp=_.Q1(function(J){J=_.ou(J,{icon:void 0});var c=J.data;J=J.icon;var m=function(){return c().iconBadgeText},b={},x=_.pq("yt-spec-icon-badge-shape",function(){a:switch(c().iconBadgeType){case "notification":var P="yt-spec-icon-badge-shape--type-notification";
break a;case "cart":P="yt-spec-icon-badge-shape--type-cart";break a;default:P=""}return P},function(){a:switch(c().iconBadgeStyle){case "overlay":var P="yt-spec-icon-badge-shape--style-overlay";
break a;default:P=""}return P},(b["yt-spec-icon-badge-shape--text-size-small"]=function(){var P=m();
return!!((P==null?0:P.length)&&P.length>2)},b));
return _.C("yt-icon-badge-shape",null,_.C(_.n,{cond:J,then:function(P){return _.C("div",{class:x},_.C("div",{class:"yt-spec-icon-badge-shape__icon"},_.C(_.HP,{icon:P})),_.C(_.n,{cond:m,then:function(p){return _.C("div",{class:"yt-spec-icon-badge-shape__badge"},p)}}))}}))},"rg");
fXp.idomCompat=!0;_.lv(fXp,"yt-icon-badge-shape",{props:{data:_.vt,icon:_.vt}});var B_=function(){var J=_.h.apply(this,arguments)||this;J.actionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction"};J.unseenCount=0;J.isOverlay=!1;return J};
_.D(B_,_.h);_.V=B_.prototype;_.V.attached=function(){var J=this;this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);navigator&&navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",function(c){J.onServiceWorkerMessage(c)})};
_.V.onDataChanged=function(){this.isAttached&&!this.JSC$18248_lastData&&this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);this.JSC$18248_lastData=this.data};
_.V.computeIconBadgeShape=function(){return{iconBadgeType:"notification",iconBadgeText:this.unseenCount,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.V.computeIcon=function(){var J,c;return(J=this.data)==null?void 0:(c=J.icon)==null?void 0:c.iconType};
_.V.onServiceWorkerMessage=function(J){J.data.type==="update_unseen_notifications_count_signal"&&this.data&&this.data.updateUnseenCountEndpoint&&this.hasUnseenNotificationCountEndpoint()&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint)};
_.V.hasUnseenNotificationCountEndpoint=function(){return!!this.data&&!!this.data.updateUnseenCountEndpoint&&!!_.L(this.data.updateUnseenCountEndpoint,_.In)&&_.L(this.data.updateUnseenCountEndpoint,_.In).signal==="GET_UNSEEN_NOTIFICATION_COUNT"};
_.V.handleUpdateNotificationsUnseenCountAction=function(J){var c=this;J=_.L(J,aQS);J!=null&&J.unseenCount&&J.handlerData==="NOTIFICATION_ACTION_UPDATE_UNSEEN_COUNT"&&(this.updateCountUI(J.unseenCount),_.ft.addLowPriorityJob(function(){c.data.updateUnseenCountEndpoint&&c.ytComponentBehavior.resolveCommand(c.data.updateUnseenCountEndpoint)},J.timeoutMs))};
_.V.onClick=function(){_.cA(this.hostElement,"yt-update-unseen-notification-count",0);this.set("unseenCount",0);this.toggleIconState(!0);var J=_.bJ(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]),c=this.data.menuRequest;J&&J.length===1&&J[0]?_.m9(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]):c&&this.ytComponentBehavior.resolveCommand(c)};
_.V.handleTopbarMenuClosedAction=function(J){J==="multi-page-menu-style-type-notifications"&&this.toggleIconState(!1)};
_.V.toggleIconState=function(J){this.iconButton&&(this.iconButton.pressed=J)};
_.V.sendUnseenCountRequest=function(J){var c=this;_.rv(_.ft,function(){c.ytComponentBehavior.resolveCommand(J)})};
_.V.updateCountUI=function(J){this.set("unseenCount",J<9?J:"9+")};
_.eE.Object.defineProperties(B_.prototype,{showNotificationCount:{configurable:!0,enumerable:!0,get:function(){return this.unseenCount}}});
B_.prototype.handleUpdateNotificationsUnseenCountAction=B_.prototype.handleUpdateNotificationsUnseenCountAction;B_.prototype.onDataChanged=B_.prototype.onDataChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],B_.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],B_.prototype,"ytComponentBehavior",void 0);_.O([_.f(_.vL),_.R("design:type",Object)],B_.prototype,"ytdOpenPopupBehavior",void 0);
_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],B_.prototype,"ytActionHandlerBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],B_.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],B_.prototype,"unseenCount",void 0);_.O([_.U(),_.R("design:type",Object)],B_.prototype,"isOverlay",void 0);_.O([_.U({value:!0}),_.R("design:type",Boolean)],B_.prototype,"showTooltips",void 0);_.O([_.Iu("yt-icon-button"),_.R("design:type",Object)],B_.prototype,"iconButton",void 0);
_.O([_.q("unseenCount"),_.R("design:type",Object),_.R("design:paramtypes",[])],B_.prototype,"showNotificationCount",null);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],B_.prototype,"onDataChanged",null);_.O([_.ps("yt-update-notifications-unseen-count-action"),_.R("design:type",Function),_.R("design:paramtypes",[Object]),_.R("design:returntype")],B_.prototype,"handleUpdateNotificationsUnseenCountAction",null);
B_=_.O([_.E({is:"ytd-notification-topbar-button-renderer",disableElementRegistration:!0})],B_);
_.v(B_,"ytd-notification-topbar-button-renderer",function(){if(uxF!==void 0)return uxF;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return uxF=J},{mode:_.mP("kevlar_poly_si_batch_j025")?1:2});var YFh;var g5=function(){var J=_.h.apply(this,arguments)||this;J.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled"};return J};
_.D(g5,_.h);g5.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}}}}}};
g5.prototype.attached=function(){this.dark=document.documentElement.hasAttribute("dark")};
g5.prototype.onDarkModeToggled=function(J){this.dark=J};
_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],g5.prototype,"ytActionHandlerBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],g5.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],g5.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],g5.prototype,"data",void 0);_.O([_.U({value:!0,reflectToAttribute:!0}),_.R("design:type",Boolean)],g5.prototype,"dark",void 0);
g5=_.O([_.E({disableElementRegistration:!0,is:"yt-pdg-buy-flow-header-renderer"})],g5);
_.v(g5,"yt-pdg-buy-flow-header-renderer",function(){if(YFh!==void 0)return YFh;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return YFh=J},{mode:1});var XTp;var Zur;var Jo=function(){var J=_.h.apply(this,arguments)||this;J.immediateValue=0;J.isDarkTheme=!1;J.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return J};
_.D(Jo,_.h);_.V=Jo.prototype;_.V.created=function(){_.Zj.requestAvailability()};
_.V.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.V.dataChanged=function(){var J=_.Bj(this.hostElement).querySelector("#color-slider");J.immediateValue&&this.updateSliderKnobAndGradientStyles(J.immediateValue);this.data.notches[0].knobColorArgb&&_.V1(this.hostElement,{"--ytd-pdg-color-slider-first-knob-color":_.Zn(this.data.notches[0].knobColorArgb)});this.data.notches&&(this.maxMarkers=this.data.notches.length-1);_.Ub("HTML_DIR")==="rtl"&&_.Bj(this.hostElement).querySelector("#color-slider").setAttribute("dir","rtl");this.updateSliderAria()};
_.V.onSliderImmediateChange=function(){var J=_.Bj(this.hostElement).querySelector("#color-slider");J.dragging&&(J.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(J.immediateValue),this.updateSliderKnobAndGradientStyles(J.immediateValue)),this.updateSliderAria())};
_.V.onSliderChange=function(){var J=_.Bj(this.hostElement).querySelector("#color-slider");J.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(J.immediateValue),this.updateSliderKnobAndGradientStyles(J.immediateValue));this.updateSliderAria()};
_.V.updateSliderAria=function(){var J=_.Bj(this.hostElement).querySelector("#color-slider"),c=_.Bj(this.hostElement).querySelector("#color-slider");c=_.OG(this.data.notches[c.immediateValue].tierValue);_.qf()&&_.cA(this.hostElement,"iron-announce",{text:c});J.setAttribute("aria-valuetext",c)};
_.V.updateSuperThanksSelectedTierEntity=function(J){if(J!==this.immediateValue){var c,m,b=this==null?void 0:(c=this.data)==null?void 0:(m=c.superThanksSelectedTierEntity)==null?void 0:m.key;b&&b.length>0&&this.ytdReduxBehavior.dispatch(_.It("superThanksSelectedTierEntity",b,{key:b,index:J}))}};
_.V.onDarkModeToggledAction=function(J){this.isDarkTheme=J};
_.V.updateSliderKnobAndGradientStyles=function(J){this.immediateValue=J;J=this.data.notches[J];if(J==null?0:J.knobColorArgb)var c={"--ytd-pdg-color-slider-knob-color":_.Zn(J.knobColorArgb)};(J==null?0:J.linearGradientCssStyle)&&c!==null&&(c=Object.assign({},c,{"--ytd-pdg-color-slider-active-color":J==null?void 0:J.linearGradientCssStyle}));c!==null&&_.V1(this.hostElement,c)};
Jo.prototype.onSliderChange=Jo.prototype.onSliderChange;Jo.prototype.onSliderImmediateChange=Jo.prototype.onSliderImmediateChange;Jo.prototype.dataChanged=Jo.prototype.dataChanged;_.O([_.U(),_.R("design:type",Object)],Jo.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],Jo.prototype,"immediateValue",void 0);_.O([_.U(),_.R("design:type",Number)],Jo.prototype,"maxMarkers",void 0);
_.O([_.U({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:NoF}),_.R("design:type",Object)],Jo.prototype,"superThanksSelectedTierEntity",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Jo.prototype,"isDarkTheme",void 0);_.O([_.f(_.fY),_.R("design:type",Object)],Jo.prototype,"ytdReduxBehavior",void 0);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Jo.prototype,"dataChanged",null);
_.O([_.ps("immediate-value-change"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Jo.prototype,"onSliderImmediateChange",null);_.O([_.ps("change"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Jo.prototype,"onSliderChange",null);Jo=_.O([_.E({disableElementRegistration:!0,is:"ytd-pdg-color-slider-renderer"})],Jo);
_.v(Jo,"ytd-pdg-color-slider-renderer",function(){if(Zur!==void 0)return Zur;var J=document.createElement("template");_.z(J,'\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>');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return Zur=J},{mode:1});var qFR;var U6F;var cf=null;
_.sB({is:"ytd-comment-input",_template:function(){if(U6F!==void 0)return U6F;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return U6F=J},
behaviors:[_.c22.YtHostElementBehavior,_.KV,_.qH.YtComponentBehavior,_.lU.YtRendererstamperBehavior,_.Dg2.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 _.Xh}},
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",_.ME(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;_.be();this.focus()},
detached:function(){document.removeEventListener("tap",_.ME(this,this.onTap_))},
created:function(){document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1},
onEmojiSelect:function(J){J=J.detail;J=J.isCustomEmoji?J.shortcuts[0]:J.emojiId;var c=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(c,J);this.maybeUpdateTextDirection_();_.cA(this.hostElement,"input")},
getInputRange_:function(){var J=_.kR();if(J){J=J.getBrowserRangeObject();for(var c=J.commonAncestorContainer;c;){if(c===this.getEditableTextArea_())return J;c=c.parentNode}}J=this.getEditableTextArea_();J=_.zW(J,J.childNodes.length);J.select();return J.getBrowserRangeObject()},
insertTextWithEmojis_:function(J,c,m){(c=this.emojiManager.createDocumentFragment(c,!0,!1,m===void 0?!0:m))&&c.childNodes.length!==0&&(J.collapsed||J.deleteContents(),m=c.lastChild,J.insertNode(c),_.g36(m).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize())},
onSelectionChange_:function(){var J=_.kR();if(J){var c=J.JSC$9254_getStartNode(),m=J.JSC$9254_getEndNode();if(VH1(c)&&VH1(m)){var b=J.JSC$9254_getStartOffset(),x;if(_.xd&&c.nodeType===Node.ELEMENT_NODE&&(x=_.I3L(c)))_.zW(x,0).select();else{x=jW(c)?c:_.qA(c,jW);var P=jW(m)?m:_.qA(m,jW);if(x||P)if(J.isCollapsed()){if(c.nodeType===Node.TEXT_NODE){J=!0;b===c.length&&(J=!1);if(cf==="end"||cf==="right")J=!1;c=c.parentNode;J=[].concat(_.L6(c.parentNode.childNodes)).indexOf(c)+(J?0:1);_.zW(c.parentNode,J).select()}}else x?
x.previousSibling&&x.previousSibling.length>0?_.ue(m,J.JSC$9254_getEndOffset(),x.previousSibling,x.previousSibling.length-1).select():(c=document.createTextNode("\u200b"),x.parentNode.insertBefore(c,x),_.ue(m,J.JSC$9254_getEndOffset(),c,0).select()):P&&(P.nextSibling&&P.nextSibling.length>0?_.ue(c,J.JSC$9254_getStartOffset(),P.nextSibling,1).select():(m=document.createTextNode("\u200b"),P.parentNode.insertBefore(m,P.nextSibling),_.ue(c,J.JSC$9254_getStartOffset(),m,m.length).select()));cf=null}}else cf=
null}else cf=null},
leftKeyPressed_:function(){cf="left"},
rightKeyPressed_:function(){cf="right"},
endKeyPressed_:function(){cf="end"},
maybeDeleteChip_:function(){var J=IuF(!0);if(J){var c=_.kR(),m=c.JSC$9254_getStartNode();c=c.JSC$9254_getStartOffset();_.ry(m,c,J,J.childNodes.length).select()}},
maybeBackspaceChip_:function(){var J=IuF(!1);if(J){var c=_.kR(),m=c.JSC$9254_getStartNode();c=c.JSC$9254_getStartOffset();_.ry(m,c,J,0).select()}},
maybeBackspaceChipWordMode_:function(J){var c=_.kR();if(c.isCollapsed()){var m=c.JSC$9254_getStartNode();c=c.JSC$9254_getStartOffset();var b=K9R(m,c,!0);b&&(_.ry(m,c,b,0).select(),document.execCommand("delete"),J.preventDefault(),J.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(J){var c=_.kR();if(c.isCollapsed()){var m=c.JSC$9254_getStartNode();c=c.JSC$9254_getStartOffset();var b=K9R(m,c,!1);b&&(_.ry(m,c,b,b.childNodes.length).select(),document.execCommand("delete"),J.preventDefault(),J.stopImmediatePropagation())}},
onContentClick:function(J){J.target.id==="content"&&this.getEditableTextArea_().focus()},
onTap_:function(J){J.defaultPrevented||J.currentTarget.tagName==="YTD-COMMENT-INPUT"&&jW(J.target)&&J.preventDefault()},
clear:function(){this.errorMessage_=null;this.setTextAreaValue(this.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.receivedFocusPreviously_=!1},
getEditableTextArea_:function(){return _.Bj(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.Bj(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(J,c){J=MHu(J,this.emojiManager,c).cloneNode(!0);for(c=J.firstChild;c;)if(c.nodeType!==1)c=c.nextSibling;else switch(c.tagName){case "BR":var m=_.Ty();_.TTL(m,c);c=m.nextSibling;break;case "DIV":(m=c.lastChild)&&c.nextSibling&&_.Ld(_.Ty(),m);c.previousSibling&&(c.previousSibling.nodeType===1||c.previousSibling.nodeType===3&&!c.previousSibling.textContent.endsWith("\n"))&&_.sK(_.Ty(),c);m&&m.nodeName==="BR"&&_.nc(m);m=c;c.hasChildNodes()?(c=c.firstChild,
_.wrj(m)):(c=c.nextSibling,_.nc(m));break;default:c=c.nextSibling}return CJf(J)},
setTextAreaValue:function(J){J||(J="");var c=this.getEditableFormattedString_();c.text="";this.getEditableTextArea_().innerText="";typeof J==="string"&&(J={runs:[{text:J}]});c.text=J},
focus:function(){this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();cf=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var J=this.getEditableTextArea_();J&&(_.zW(J,J.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.Ub("HTML_DIR")==="rtl"){var J=this.getEditableTextArea_(),c=this.getTextAreaValue()!==""?"auto":"rtl";J.setAttribute("dir",c)}},
handleInputEvent_:function(){var J=null;if(this.isEmojiButtonDisplayed){var c=this.getInputRange_();c&&(J=this.emojiInput.retrieveTextBeforeRange(c))}this.insertText_(J,!0);this.updateCharCount_();J=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=J.scrollHeight>J.clientHeight);this.maybeHeightChanged()},
maybeHeightChanged:function(){var J=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:J})},
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(J){this.isEmojiButtonDisplayed&&(J.preventDefault(),J.stopImmediatePropagation(),J=J.clipboardData.getData("text/plain"),this.insertText_(J,!1,!1),_.cA(this.hostElement,"input"))},
insertText_:function(J,c,m){c=c===void 0?!1:c;m=m===void 0?!0:m;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&J){var b=this.getInputRange_().cloneRange();this.emojiManager&&b&&(c&&this.emojiInput.offsetStartOfRangeBy(b,J.length),this.insertTextWithEmojis_(b,J,m),PJo(this.getEditableTextArea_().lastChild)||(b=this.getInputRange_().cloneRange()),b&&(this.emojiInput.updateSuggestions(b,J),this.updateSuggestionOffset_(b)))}},
getSimpleString:_.OG,computeHasCommentChip_:function(){return this.commentChip!==void 0},
computeCreationBoxClass_:function(J){return J?"focused":"not-focused"},
computePlaceholderText_:function(J){return this.getSimpleString(J)},
computeEditableText_:function(J){return this.getSimpleString(J)},
onPrefilledContentDismissed_:function(J){J.stopPropagation();this.dismissPrefilledContent_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
isValidInput_:function(){return this.aboveCharLimit_?!1:!!this.getTextAreaValue().trim()},
onIsInputFocusChanged_:function(J,c){J?this.fire("yt-autonav-pause-focus"):c!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(J){var c=this.getEditableTextArea_();[].concat(_.L6(J.dataTransfer.items)).forEach(function(m){m.kind==="string"&&m.type.match("^text/plain")&&m.getAsString(function(b){c.appendChild(document.createTextNode(b))})});
J.preventDefault()},
preventDefault_:function(J){J.preventDefault()},
onSuggestionInsert_:function(J){this.insertTextWithEmojis_(J.detail.range,J.detail.text)},
onEmojiSuggestionClick_:function(J){this.emojiInput.insertSuggestion(J.detail)},
updateSuggestionOffset_:function(J){if(this.emojiInput&&_.Bj(this.emojiInput).querySelector("#dropdown")){var c=this.getEditableTextArea_().getBoundingClientRect().bottom,m=J.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(c-m)+5;c=this.getEditableTextArea_().getBoundingClientRect().left;J=J.getBoundingClientRect().left-c;_.Bj(this.emojiInput).querySelector("#dropdown").style.marginLeft=J+"px"}},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.Un("yt-post"));return this.localStorage}});var m4=function(){var J=_.h.apply(this,arguments)||this;J.currentCommentOptionIndex=0;J.isEmojiPickerDisplayed=!1;J.emojiManager=_.Xh;J.isUgcEmpty=!1;J.userGeneratedCommentChangedHandler=function(){_.cA(J.hostElement,"ytd-pdg-user-generated-comment-changed");J.isEmojiYtdCommentInputEnabled&&(J.isUgcEmpty=!J.ytdCommentInputEl.getTextAreaValue())};
J.pasteHandler=function(c){c.preventDefault();c.stopImmediatePropagation();var m;if(c=(m=c.clipboardData)==null?void 0:m.getData("text/plain"))m=document.getSelection().getRangeAt(0),m.collapsed||m.deleteContents(),c=document.createTextNode(c),m.insertNode(c),m.selectNodeContents(c),m.collapse(!1),c=window.getSelection(),c.removeAllRanges(),c.addRange(m)};
J.onDocumentClick=function(c){if(J.isEmojiPickerDisplayed){var m,b,x;!(c.target instanceof Node)||(m=c.composedPath())!=null&&m.includes(J.editableTextEl)||(b=c.composedPath())!=null&&b.includes(J.emojiButtonEl)||(x=c.composedPath())!=null&&x.includes(J.emojiPickerEl)||(J.isEmojiPickerDisplayed=!1)}};
return J};
_.D(m4,_.h);_.V=m4.prototype;_.V.configureRendererStamper=function(){return{emojiPicker:{id:"emoji-picker",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{emojiManager:"[[emojiManager]]"}}}}}};
_.V.attached=function(){this.containerEl.addEventListener("input",this.userGeneratedCommentChangedHandler);this.containerEl.addEventListener("paste",this.pasteHandler);document.addEventListener("click",this.onDocumentClick)};
_.V.detached=function(){var J;(J=this.contentEl)==null||J.removeEventListener("input",this.userGeneratedCommentChangedHandler);var c;(c=this.contentEl)==null||c.removeEventListener("paste",this.pasteHandler);document.removeEventListener("click",this.onDocumentClick)};
_.V.currentCommentOptionChanged=function(){this.handleBackgroundColorStyling()};
_.V.dataChanged=function(){this.containerEl.classList.add("ugc");if(this.contentEl){var J;this.contentEl.textContent=this.rendererBehavior.getSimpleString((J=this.data)==null?void 0:J.defaultCommentText)}this.isEmojiYtdCommentInputEnabled&&(this.containerEl.classList.add("emojis"),this.reloadEmojis());this.handleTextScrolling()};
_.V.reloadEmojis=function(){this.emojiPickerEl&&_.L(this.emojiPicker,_.v8B)&&this.emojiPickerEl.updateEmojiCategories()};
_.V.handleTextScrolling=function(){this.isEmojiYtdCommentInputEnabled||_.V1(this.hostElement,{"--ytd-pdg-comment-preview-max-height":"300px","--ytd-pdg-comment-preview-overflow":"auto"})};
_.V.handleBackgroundColorStyling=function(){var J;if((J=this.currentCommentOption)==null?0:J.commentBackgroundColorArgb){var c;_.V1(this.hostElement,{"--ytd-pdg-comment-preview-background-color":_.Zn((c=this.currentCommentOption)==null?void 0:c.commentBackgroundColorArgb)})}else _.V1(this.hostElement,{"--ytd-pdg-comment-preview-background-color":"initial"})};
_.V.onContainerClick=function(){if(this.isEmojiYtdCommentInputEnabled)this.containerEl.focus();else if(this.containerEl.classList.contains("ugc")){var J;(J=this.contentEl)==null||J.focus()}};
_.V.onEditButtonClick=function(J){var c=document.getSelection();c&&this.contentEl&&(J.stopPropagation(),J.preventDefault(),c.selectAllChildren(this.contentEl),c.collapseToEnd())};
_.V.onContentDrop=function(J){var c=this;if(J.dataTransfer){J=_.M(J.dataTransfer.items);for(var m=J.next();!m.done;m=J.next())m=m.value,m.kind==="string"&&m.type.match("^text/plain")&&m.getAsString(function(b){var x;(x=c.contentEl)==null||x.appendChild(document.createTextNode(b))})}};
_.V.onEmojiButtonClick=function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.emojiPickerEl.selected=!this.emojiPickerEl.selected};
_.V.getUserGeneratedCommentText=function(){var J,c=this.isEmojiYtdCommentInputEnabled?this.ytdCommentInputEl.getTextAreaValue():(J=this.contentEl)==null?void 0:J.textContent;return c?c.trim():""};
_.V.getIsEmojiYtdCommentInputEnabled=function(){return this.isEmojiYtdCommentInputEnabled};
_.V.onEmojiSelect=function(J){this.ytdCommentInputEl.onEmojiSelect(J)};
_.eE.Object.defineProperties(m4.prototype,{isEmojiYtdCommentInputEnabled:{configurable:!0,enumerable:!0,get:function(){var J;return!((J=this.data)==null||!J.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 J;return!((J=this.currentCommentOption)==null||!J.chipRenderer)}},
paidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var J;if(_.L((J=this.currentCommentOption)==null?void 0:J.chipRenderer,_.gcQ)){var c;return _.L((c=this.currentCommentOption)==null?void 0:c.chipRenderer,_.gcQ)}}},
currentCommentOption:{configurable:!0,enumerable:!0,get:function(){if(this.superThanksSelectedTierEntity&&this.superThanksSelectedTierEntity.index!==void 0){var J,c;return((J=this.data)==null?0:J.commentOptionRenderers)?_.L((c=this.data)==null?void 0:c.commentOptionRenderers[this.superThanksSelectedTierEntity.index],v6S):void 0}var m,b;return((m=this.data)==null?0:m.commentOptionRenderers)?_.L((b=this.data)==null?void 0:b.commentOptionRenderers[this.currentCommentOptionIndex],v6S):void 0}},
commentText:{configurable:!0,enumerable:!0,get:function(){var J;return this.rendererBehavior.getSimpleString((J=this.data)==null?void 0:J.defaultCommentText)}},
placeholderText:{configurable:!0,enumerable:!0,get:function(){var J;return this.rendererBehavior.getSimpleString((J=this.data)==null?void 0:J.placeholderText)}},
editableText:{configurable:!0,enumerable:!0,get:function(){var J,c;return(c=_.L((J=this.data)==null?void 0:J.commentDialog,_.qoZ))==null?void 0:c.editableText}},
emojiButton:{configurable:!0,enumerable:!0,get:function(){var J,c;return(c=_.L((J=this.data)==null?void 0:J.commentDialog,_.qoZ))==null?void 0:c.emojiButton}},
emojiPicker:{configurable:!0,enumerable:!0,get:function(){var J,c;return(c=_.L((J=this.data)==null?void 0:J.commentDialog,_.qoZ))==null?void 0:c.emojiPicker}},
isEmojiButtonDisplayed:{configurable:!0,enumerable:!0,get:function(){var J,c,m=(c=_.L((J=this.data)==null?void 0:J.commentDialog,_.qoZ))==null?void 0:c.emojiPicker;if(!_.L(m,_.v8B)||!_.L(m,_.v8B).categories)return!1;J=function(P){return P.emojiPickerCategoryRenderer?P.emojiPickerCategoryRenderer.emojiIds&&P.emojiPickerCategoryRenderer.emojiIds.length>0:P.emojiPickerUpsellCategoryRenderer?P.emojiPickerUpsellCategoryRenderer.emojis&&P.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1};
var b,x;return((b=_.L(m,_.v8B))==null?0:(x=b.categories)==null?0:x.find(J))?!0:!1}}});
m4.prototype.onEmojiSelect=m4.prototype.onEmojiSelect;m4.prototype.dataChanged=m4.prototype.dataChanged;m4.prototype.currentCommentOptionChanged=m4.prototype.currentCommentOptionChanged;_.O([_.f(_.fY),_.R("design:type",Object)],m4.prototype,"ytdReduxBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],m4.prototype,"rendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],m4.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.Iu("#content-dom-if"),_.R("design:type",_.Dh)],m4.prototype,"contentDomIfEl",void 0);_.O([_.Iu("#content-no-emojis"),_.R("design:type",HTMLElement)],m4.prototype,"contentEl",void 0);_.O([_.Iu("#container"),_.R("design:type",HTMLElement)],m4.prototype,"containerEl",void 0);_.O([_.Iu("#comment-chip-container"),_.R("design:type",HTMLElement)],m4.prototype,"paidCommentChipContainerEl",void 0);_.O([_.Iu("#text-input"),_.R("design:type",HTMLElement)],m4.prototype,"editableTextEl",void 0);
_.O([_.Iu("#emoji-button"),_.R("design:type",HTMLElement)],m4.prototype,"emojiButtonEl",void 0);_.O([_.Iu("#emoji-picker > yt-emoji-picker-renderer"),_.R("design:type",Object)],m4.prototype,"emojiPickerEl",void 0);_.O([_.Iu("#text-input > ytd-comment-input"),_.R("design:type",Object)],m4.prototype,"ytdCommentInputEl",void 0);_.O([_.U(),_.R("design:type",Object)],m4.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],m4.prototype,"currentCommentOptionIndex",void 0);
_.O([_.U({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:NoF}),_.R("design:type",Object)],m4.prototype,"superThanksSelectedTierEntity",void 0);_.O([_.U(),_.R("design:type",Object)],m4.prototype,"isEmojiPickerDisplayed",void 0);_.O([_.U(),_.R("design:type",Object)],m4.prototype,"emojiManager",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],m4.prototype,"isUgcEmpty",void 0);
_.O([_.NE("currentCommentOption"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],m4.prototype,"currentCommentOptionChanged",null);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],m4.prototype,"dataChanged",null);_.O([_.q("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],m4.prototype,"isEmojiYtdCommentInputEnabled",null);
_.O([_.q("data.title"),_.R("design:type",Object),_.R("design:paramtypes",[])],m4.prototype,"title",null);_.O([_.q("data.authorText"),_.R("design:type",Object),_.R("design:paramtypes",[])],m4.prototype,"channelName",null);_.O([_.q("data.commentOptionRenderers","currentCommentOption"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],m4.prototype,"shouldShowPaidCommentChipRenderer",null);
_.O([_.q("data.commentOptionRenderers","currentCommentOption"),_.R("design:type",Object),_.R("design:paramtypes",[])],m4.prototype,"paidCommentChipRenderer",null);_.O([_.q("data.commentOptionRenderers","currentCommentOptionIndex","superThanksSelectedTierEntity"),_.R("design:type",Object),_.R("design:paramtypes",[])],m4.prototype,"currentCommentOption",null);
_.O([_.q("data.defaultCommentText","superThanksSelectedTierEntity"),_.R("design:type",Object),_.R("design:paramtypes",[])],m4.prototype,"commentText",null);_.O([_.q("data.placeholderText"),_.R("design:type",Object),_.R("design:paramtypes",[])],m4.prototype,"placeholderText",null);_.O([_.q("data.commentDialog.commentDialogRenderer.editableText"),_.R("design:type",Object),_.R("design:paramtypes",[])],m4.prototype,"editableText",null);
_.O([_.q("data.commentDialog.commentDialogRenderer.emojiButton"),_.R("design:type",Object),_.R("design:paramtypes",[])],m4.prototype,"emojiButton",null);_.O([_.q("data.commentDialog.commentDialogRenderer.emojiPicker"),_.R("design:type",Object),_.R("design:paramtypes",[])],m4.prototype,"emojiPicker",null);
_.O([_.q("data.commentDialog.commentDialogRenderer.emojiPicker","data.commentDialog.commentDialogRenderer.emojiButton"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],m4.prototype,"isEmojiButtonDisplayed",null);_.O([_.ps("yt-emoji-select"),_.R("design:type",Function),_.R("design:paramtypes",[Event]),_.R("design:returntype")],m4.prototype,"onEmojiSelect",null);m4=_.O([_.E({disableElementRegistration:!0,is:"ytd-pdg-comment-preview-renderer"})],m4);
_.v(m4,"ytd-pdg-comment-preview-renderer",function(){if(qFR!==void 0)return qFR;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return qFR=J},{mode:2});var SFe;var bz=function(){var J=_.h.apply(this,arguments)||this;J.selected=!1;return J};
_.D(bz,_.h);_.V=bz.prototype;_.V.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onKeyboardSelect","space:keydown":"onKeyboardSelect"}};
_.V.attached=function(){this.hostElement.setAttribute("tabindex","0");this.hostElement.setAttribute("role","radio")};
_.V.dataChanged=function(){this.data&&(_.gB(this.hostElement).setAttribute("selectable","true"),this.data.chipColorArgb&&this.data.chipFontColorArgb&&_.V1(this.hostElement,{"--yt-pdg-super-vod-selectable-item-button-chip-background-color":_.Zn(this.data.chipColorArgb),"--yt-pdg-super-vod-selectable-item-button-chip-font-color":_.Zn(this.data.chipFontColorArgb)}),this.basePriceText=this.data.basePriceText,this.purchaseCommand=this.data.purchaseCommand)};
_.V.selectedChanged=function(){this.hostElement.setAttribute("aria-checked",this.selected.toString())};
_.V.onClick=function(){this.logClick()};
_.V.onKeyboardSelect=function(){_.cA(this.hostElement,"tap");this.onClick()};
_.V.logClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
bz.prototype.onClick=bz.prototype.onClick;bz.prototype.selectedChanged=bz.prototype.selectedChanged;bz.prototype.dataChanged=bz.prototype.dataChanged;_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],bz.prototype,"componentBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],bz.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.KV),_.R("design:type",Object)],bz.prototype,"ironA11yKeysBehavior",void 0);
_.O([_.f(_.$r),_.R("design:type",Object)],bz.prototype,"ironSelectableBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],bz.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],bz.prototype,"shownThumbnail",void 0);_.O([_.U(),_.R("design:type",Object)],bz.prototype,"basePriceText",void 0);_.O([_.U(),_.R("design:type",Object)],bz.prototype,"purchaseCommand",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],bz.prototype,"selected",void 0);
_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],bz.prototype,"dataChanged",null);_.O([_.NE("selected"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],bz.prototype,"selectedChanged",null);_.O([_.ps("click"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],bz.prototype,"onClick",null);
bz=_.O([_.E({disableElementRegistration:!0,is:"ytd-pdg-super-vod-selectable-item-button-renderer"})],bz);
_.v(bz,"ytd-pdg-super-vod-selectable-item-button-renderer",function(){if(SFe!==void 0)return SFe;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return SFe=J},{mode:1});var x5=function(){var J=_.h.apply(this,arguments)||this;J.selectedItemIndex=0;J.buyButtonDisabled=!1;return J};
_.D(x5,_.h);_.V=x5.prototype;
_.V.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]]"}}}}}};
_.V.onBuyButtonClick=function(){if(!this.buyButtonDisabled&&this.selectedItemIndex!==void 0){if(this.isColorSlider){var J;var c=(J=_.L(this.data.colorSlider,E6f))==null?void 0:J.notches[this.selectedItemIndex].purchaseCommand}else{var m;c=(m=_.L(this.data.selectableItemButtons[this.selectedItemIndex],ANF))==null?void 0:m.purchaseCommand}if(c){J=_.L(c,_.X3j);J.productData||(J.productData={});var b;J.productData={pdgData:{commentMessageText:(b=this.commentPreviewRenderer)==null?void 0:b.getUserGeneratedCommentText()}};
_.cA(this.hostElement,"yt-pdg-buy-flow-selection-submitted");this.ytComponentBehavior.resolveCommand(c)}}};
_.V.dataChanged=function(){if(this.data){_.Xh.emojis.length===0&&(this.data.unicodeEmojisUrl&&_.xFC(_.Xh,this.data.unicodeEmojisUrl),this.data.customEmojis&&_.Xh.load(this.data.customEmojis));this.isColorSlider=!!this.data.colorSlider;var J;this.buyButtonDisabled=!((J=_.L(this.data.commentPreview,OH5))==null||!J.placeholderText);this.updatePriceSelectorStatus();var c;if((c=this.data)==null?0:c.defaultPriceTier)this.selectedItemIndex=this.data.defaultPriceTier||0;J=[];this.data.preloadImages&&(J=this.data.preloadImages);
J=J.map(function(m){return _.yn(m.thumbnails,1920)});
J=_.M(J);for(c=J.next();!c.done;c=J.next())(c=c.value)&&_.smQ(c).thenCatch(function(){_.qz(Error("jl"))})}};
_.V.superThanksSelectedTierEntityChanged=function(){var J;(this==null?void 0:(J=this.superThanksSelectedTierEntity)==null?void 0:J.index)!==void 0&&(this.selectedItemIndex=this.superThanksSelectedTierEntity.index)};
_.V.selectedItemIndexChanged=function(){this.commentPreviewRenderer&&(this.commentPreviewRenderer.currentCommentOptionIndex=this.selectedItemIndex)};
_.V.updatePriceSelectorStatus=function(){this.isColorSlider?(_.Bj(this.hostElement).querySelector("#selectable-items").setAttribute("hidden","true"),_.Bj(this.hostElement).querySelector("#slider").removeAttribute("hidden")):(_.Bj(this.hostElement).querySelector("#selectable-items").removeAttribute("hidden"),_.Bj(this.hostElement).querySelector("#slider").setAttribute("hidden","true"))};
_.V.closeBuyFlow=function(){_.m9(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"])};
_.V.onUserGeneratedContentChanged=function(){var J;this.buyButtonDisabled=!((J=this.commentPreviewRenderer)==null?0:J.getUserGeneratedCommentText())};
_.V.updateSelectedItemIndexFromBinding=function(J){this.selectedItemIndex=J.detail.value};
_.eE.Object.defineProperties(x5.prototype,{isDisclaimerTextShown:{configurable:!0,enumerable:!0,get:function(){var J;return!((J=this.data)==null||!J.disclaimerText)}}});
x5.prototype.onUserGeneratedContentChanged=x5.prototype.onUserGeneratedContentChanged;x5.prototype.closeBuyFlow=x5.prototype.closeBuyFlow;x5.prototype.selectedItemIndexChanged=x5.prototype.selectedItemIndexChanged;x5.prototype.superThanksSelectedTierEntityChanged=x5.prototype.superThanksSelectedTierEntityChanged;x5.prototype.dataChanged=x5.prototype.dataChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],x5.prototype,"ytRendererBehavior",void 0);
_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],x5.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],x5.prototype,"ytComponentBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],x5.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],x5.prototype,"selectedItemIndex",void 0);_.O([_.U(),_.R("design:type",Boolean)],x5.prototype,"isColorSlider",void 0);
_.O([_.U(),_.R("design:type",Object)],x5.prototype,"buyButtonDisabled",void 0);_.O([_.U({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:NoF}),_.R("design:type",Object)],x5.prototype,"superThanksSelectedTierEntity",void 0);_.O([_.Iu("ytd-pdg-comment-preview-renderer"),_.R("design:type",Object)],x5.prototype,"commentPreviewRenderer",void 0);_.O([_.f(_.fY),_.R("design:type",Object)],x5.prototype,"ytdReduxBehavior",void 0);
_.O([_.kr("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],x5.prototype,"dataChanged",null);_.O([_.NE("superThanksSelectedTierEntity"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],x5.prototype,"superThanksSelectedTierEntityChanged",null);_.O([_.NE("selectedItemIndex"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],x5.prototype,"selectedItemIndexChanged",null);
_.O([_.ps("yt-service-request-completed"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],x5.prototype,"closeBuyFlow",null);_.O([_.ps("ytd-pdg-user-generated-comment-changed"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],x5.prototype,"onUserGeneratedContentChanged",null);_.O([_.q("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],x5.prototype,"isDisclaimerTextShown",null);
x5=_.O([_.E({disableElementRegistration:!0,is:"yt-super-vod-buy-flow-content-renderer"})],x5);
_.v(x5,"yt-super-vod-buy-flow-content-renderer",function(){if(XTp!==void 0)return XTp;var J=document.createElement("template");_.z(J,'\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>');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return XTp=J},{mode:1});var hJr;var Vm=function(){var J=_.h.apply(this,arguments)||this;J.lottieAnimationRef={};return J};
_.D(Vm,_.h);_.V=Vm.prototype;_.V.created=function(){_.Zj.requestAvailability();this.hostElement.addEventListener("iron-overlay-opened",_.ME(this,this.onPopupIronOverlayOpened));this.ironOverlayBehavior.scrollAction="lock";this.ironOverlayBehavior.noCancelOnEscKey=!0;this.ironOverlayBehavior.noCancelOnOutsideClick=!0;this.ironOverlayBehavior.allowClickThrough=!1};
_.V.onPopupIronOverlayOpened=function(){this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData&&this.data.accessibility.accessibilityData.label&&_.cA(this.hostElement,"iron-announce",{text:this.data.accessibility.accessibilityData.label})};
_.V.detached=function(){this.autoCloseJobId&&_.ft.cancelJob(this.autoCloseJobId);this.hostElement.removeEventListener("iron-overlay-opened",_.ME(this,this.onPopupIronOverlayOpened))};
_.V.dataChanged=function(){var J=this;this.data&&this.data.autoCloseDelay&&(_.m9(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"]),this.data.lottie||(this.autoCloseJobId=_.cP(_.ft,function(){J.closePopup()},(Number(this.data.autoCloseDelay.seconds)||0)*1E3)),this.data.lottieImageScalePercent&&this.data.lottie&&_.V1(this.hostElement,{"--ytd-desktop-image-overlay-scale-percent":this.data.lottieImageScalePercent+"%"}))};
_.V.onDOMLoadedLottie=function(){var J=this,c,m,b=Number((c=this.data)==null?void 0:(m=c.autoCloseDelay)==null?void 0:m.seconds)||0;this.fadeOutJobId=_.cP(_.ft,function(){J.lottiePlayerEl.classList.add("fadeout")},(b-.25)*1E3);
this.autoCloseJobId=_.cP(_.ft,function(){J.closePopup()},b*1E3)};
_.V.openPopup=function(){this.ironOverlayBehavior.open()};
_.V.closePopup=function(){this.ironOverlayBehavior.close();this.data&&(_.m9(this.hostElement,"yt-close-popup-action",["ytd-desktop-image-overlay-renderer"]),this.data.onCloseCommand&&_.PA(this.hostElement,[this.data.onCloseCommand],this.hostElement),this.data.onCloseSurveyCommand&&_.BG().resolve(_.gu).resolveCommand(this.data.onCloseSurveyCommand,{form:{element:this.hostElement}}),this.autoCloseJobId&&_.ft.cancelJob(this.autoCloseJobId),this.fadeOutJobId&&_.ft.cancelJob(this.fadeOutJobId),this.lottiePlayerEl.classList.contains("fadeout")&&
this.lottiePlayerEl.classList.remove("fadeout"))};
_.V.maybeInitializeLottie=function(){if(this.hasLottieAnimation){var J,c;(J=this.lottieAnimationRef)==null||(c=J.lottieEl)==null||c.destroy();J=this.data.lottie;var m,b;this.lottiePlayerProps={animationRef:this.lottieAnimationRef,animationConfig:{name:J.url+"_"+Math.random(),path:J.url,autoplay:!0,loop:(b=(m=J.settings)==null?void 0:m.loop)!=null?b:!1,renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid meet"}},listeners:{DOMLoaded:this.onDOMLoadedLottie.bind(this)}}}};
_.eE.Object.defineProperties(Vm.prototype,{hasLottieAnimation:{configurable:!0,enumerable:!0,get:function(){var J,c;return!!((J=this.data)==null?0:(c=J.lottie)==null?0:c.url)}}});
Vm.prototype.maybeInitializeLottie=Vm.prototype.maybeInitializeLottie;Vm.prototype.dataChanged=Vm.prototype.dataChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Vm.prototype,"rendererBehavior",void 0);_.O([_.f(_.dI),_.R("design:type",Object)],Vm.prototype,"ironOverlayBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Vm.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],Vm.prototype,"lottiePlayerProps",void 0);
_.O([_.U(),_.R("design:type",Object)],Vm.prototype,"lottieAnimationRef",void 0);_.O([_.Iu("ytd-lottie-player"),_.R("design:type",HTMLElement)],Vm.prototype,"lottiePlayerEl",void 0);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Vm.prototype,"dataChanged",null);_.O([_.q("data"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Vm.prototype,"hasLottieAnimation",null);
_.O([_.NE("data.lottie.url"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Vm.prototype,"maybeInitializeLottie",null);Vm=_.O([_.E({disableElementRegistration:!0,is:"ytd-desktop-image-overlay-renderer"})],Vm);
_.v(Vm,"ytd-desktop-image-overlay-renderer",function(){if(hJr!==void 0)return hJr;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return hJr=J},{mode:1});var d6R;var Pf=function(){return _.h.apply(this,arguments)||this};
_.D(Pf,_.h);_.V=Pf.prototype;_.V.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"}}}}};
_.V.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",_.ME(this,this.closePopup))};
_.V.detached=function(){this.hostElement.removeEventListener("yt-popup-closed",_.ME(this,this.closePopup))};
_.V.dataChanged=function(){_.bJ(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.data&&this.data.header&&_.L(this.data.header,GW4)&&(this.hasBackgroundBanner=!!_.L(this.data.header,GW4).backgroundBanner)};
_.V.handleBuyflowSelectionSubmitted=function(){this.hostElement.removeEventListener("yt-popup-closed",_.ME(this,this.closePopup))};
_.V.closePopup=function(){this.data&&this.data.onCloseCommand&&_.Vq(this.hostElement,[this.data.onCloseCommand])};
Pf.prototype.handleBuyflowSelectionSubmitted=Pf.prototype.handleBuyflowSelectionSubmitted;Pf.prototype.dataChanged=Pf.prototype.dataChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Pf.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],Pf.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Pf.prototype,"data",void 0);
_.O([_.U({value:!0,reflectToAttribute:!0}),_.R("design:type",Boolean)],Pf.prototype,"hasBackgroundBanner",void 0);_.O([_.kr("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Pf.prototype,"dataChanged",null);_.O([_.ps("yt-pdg-buy-flow-selection-submitted"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Pf.prototype,"handleBuyflowSelectionSubmitted",null);
Pf=_.O([_.E({disableElementRegistration:!0,is:"ytd-pdg-buy-flow-renderer"})],Pf);
_.v(Pf,"ytd-pdg-buy-flow-renderer",function(){if(d6R!==void 0)return d6R;var J=document.createElement("template");_.z(J,'\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>');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return d6R=J},{mode:1});var $6s;var MQ=function(){var J=_.h.apply(this,arguments)||this;J.isOpen=!1;J.isPlaylistCreated=!1;return J};
_.D(MQ,_.h);_.V=MQ.prototype;_.V.reset=function(){this.isPlaylistCreated=this.isOpen=!1;this.nameInput.reset();this.privacyInput.reset()};
_.V.onOpenTap=function(){this.isOpen=!0;this.isPlaylistCreated=!1;this.nameInput.focusTextInput();_.cA(this.hostElement,"yt-refit")};
_.V.onCreateTap=function(){var J=this;!this.isPlaylistCreated&&this.nameInput.validate()&&(_.Vq(this.hostElement,[this.data.serviceEndpoint,{create_playlist_title:this.nameInput.value,create_playlist_privacy_status:this.privacyInput.value},{onSuccess:function(c,m){if(!_.w("killswitch_ep_in_create_playlist_response")&&(m==null?0:m.actions))for(c=_.M(m.actions),m=c.next();!m.done;m=c.next())m=m.value,_.L(m,_.zt)&&J.ytComponentBehavior.resolveCommand(m)}}]),this.isPlaylistCreated=!0)};
_.V.onKeydown=function(J){if(J.keyCode===13)this.onCreateTap()};
_.V.onServiceRequestCompleted=function(J){J.stopPropagation();_.m9(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.V.computePrivacyBadge=function(J){return J?[{metadataBadgeRenderer:J}]:[]};
MQ.prototype.onServiceRequestCompleted=MQ.prototype.onServiceRequestCompleted;MQ.prototype.onKeydown=MQ.prototype.onKeydown;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],MQ.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],MQ.prototype,"ytComponentBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],MQ.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],MQ.prototype,"isOpen",void 0);
_.O([_.U(),_.R("design:type",Object)],MQ.prototype,"isPlaylistCreated",void 0);_.O([_.U({value:{REQUIRED_LABEL:_.CX("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.CX("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.R("design:type",Object)],MQ.prototype,"addToStrings",void 0);_.O([_.U({computed:"computePrivacyBadge(data.privacyInput.metadataBadgeRenderer)"}),_.R("design:type",Array)],MQ.prototype,"privacyBadge",void 0);
_.O([_.Iu("#privacy-input"),_.R("design:type",Object)],MQ.prototype,"privacyInput",void 0);_.O([_.Iu("#name-input"),_.R("design:type",Object)],MQ.prototype,"nameInput",void 0);_.O([_.ps("keydown"),_.R("design:type",Function),_.R("design:paramtypes",[KeyboardEvent]),_.R("design:returntype")],MQ.prototype,"onKeydown",null);_.O([_.ps("yt-service-request-completed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],MQ.prototype,"onServiceRequestCompleted",null);
MQ=_.O([_.E({is:"ytd-add-to-playlist-create-renderer",disableElementRegistration:!0})],MQ);
_.v(MQ,"ytd-add-to-playlist-create-renderer",function(){if($6s!==void 0)return $6s;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return $6s=J},{mode:1});var Gre;var ETR;var p8=function(){var J=_.h.apply(this,arguments)||this;J.transferState="TRANSFER_STATE_UNKNOWN";return J};
_.D(p8,_.h);p8.prototype.dataChanged=function(){this.data&&(this.checkbox.checked=this.data.containsSelectedVideos==="ALL")};
p8.prototype.onCheckboxChange=function(J){var c=this;this.data&&_.hO(this,"yt-playlist-checkbox-changed",function(){var m=_.Ac(J).checked?c.data.addToPlaylistServiceEndpoint:c.data.removeFromPlaylistServiceEndpoint;m&&_.BG().resolve(_.gu).resolveCommand(m,{form:{element:c.hostElement}});_.w("dl_playlist_killswitch")||c.transferState!=="TRANSFER_STATE_UNKNOWN"&&c.transferState!=="TRANSFER_STATE_FAILED"&&c.ytComponentBehavior.resolveCommand({offlinePlaylistEndpoint:{playlistId:c.data.playlistId,action:"ACTION_SYNC"}})},
100)};
p8.prototype.computeIconType=function(J){return J?"yt-icons:"+J.toLowerCase():null};
p8.prototype.dataChanged=p8.prototype.dataChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],p8.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],p8.prototype,"data",void 0);_.O([_.f(_.fY),_.R("design:type",Object)],p8.prototype,"ytdReduxBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],p8.prototype,"ytComponentBehavior",void 0);_.O([_.Iu("#checkbox"),_.R("design:type",HTMLInputElement)],p8.prototype,"checkbox",void 0);
_.O([_.U({selector:_.XM,selectorArgs:["data.playlistId"]}),_.R("design:type",String)],p8.prototype,"transferState",void 0);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],p8.prototype,"dataChanged",null);p8=_.O([_.E({is:"ytd-playlist-add-to-option-renderer",disableElementRegistration:!0})],p8);
_.v(p8,"ytd-playlist-add-to-option-renderer",function(){if(ETR!==void 0)return ETR;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return ETR=J},{mode:1});_.J5(auh);_.xx(auh,"ytd-menu-title-renderer",{propNames:["data"]});var NQ=function(){var J=_.h.apply(this,arguments)||this;J.addToStrings={ADD_TO_DROPDOWN_LABEL:_.CX("ADD_TO_DROPDOWN_LABEL",void 0,"Save to...")};J.closeButtonAriaLabel=_.CX("SBOX_INAPPROPRIATE_CANCEL");J.dialog=_.w("desktop_add_to_playlist_renderer_dialog_popup");return J};
_.D(NQ,_.h);_.V=NQ.prototype;_.V.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"}}}};
_.V.onPopupOpened=function(){_.mq(this.playlists,"scrollable",!0);this.createRenderer&&this.createRenderer.reset()};
_.V.onPopupClosed=function(){_.mq(this.playlists,"scrollable",!1)};
_.V.computeAriaLabel=function(){var J;if(this==null?0:(J=this.data)==null?0:J.actions){J=_.M(this.data.actions);for(var c=J.next();!c.done;c=J.next())if(c=c.value,c.menuTitleRenderer)return _.OG(c.menuTitleRenderer.title)}};
_.V.onTapClose=function(){_.m9(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.eE.Object.defineProperties(NQ.prototype,{menuTitleRenderer:{configurable:!0,enumerable:!0,get:function(){var J;if(this==null?0:(J=this.data)==null?0:J.actions){J=_.M(this.data.actions);for(var c=J.next();!c.done;c=J.next())if(c=c.value,c.menuTitleRenderer)return c.menuTitleRenderer}return!1}}});
NQ.prototype.onPopupClosed=NQ.prototype.onPopupClosed;NQ.prototype.onPopupOpened=NQ.prototype.onPopupOpened;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],NQ.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.Ci.YtEventForwardingBehavior),_.R("design:type",Object)],NQ.prototype,"ytEventForwardingBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],NQ.prototype,"ytRendererStamperBehavior",void 0);
_.O([_.U(),_.R("design:type",Object)],NQ.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],NQ.prototype,"addToStrings",void 0);_.O([_.U({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.R("design:type",String)],NQ.prototype,"ariaLabel",void 0);_.O([_.U(),_.R("design:type",String)],NQ.prototype,"closeButtonAriaLabel",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],NQ.prototype,"dialog",void 0);
_.O([_.Iu("#playlists"),_.R("design:type",HTMLElement)],NQ.prototype,"playlists",void 0);_.O([_.Iu("ytd-add-to-playlist-create-renderer"),_.R("design:type",Object)],NQ.prototype,"createRenderer",void 0);_.O([_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],NQ.prototype,"menuTitleRenderer",null);_.O([_.ps("yt-popup-opened"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],NQ.prototype,"onPopupOpened",null);
_.O([_.ps("yt-popup-closed"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],NQ.prototype,"onPopupClosed",null);NQ=_.O([_.E({is:"ytd-add-to-playlist-renderer",disableElementRegistration:!0})],NQ);
_.v(NQ,"ytd-add-to-playlist-renderer",function(){if(Gre!==void 0)return Gre;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return Gre=J},{mode:1});var vTu;var to=function(){var J=_.h.apply(this,arguments)||this;J.isPlaylistEditComplete=!1;J.isCollabEngagementDisabled=!1;J.closeButtonAriaLabel=_.CX("SBOX_INAPPROPRIATE_CANCEL");J.saveButton={title:_.CX("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"};J.onValueChanged=function(){J.updateSaveButtonState();J.computeCollabEngagementDisabled()};
return J};
_.D(to,_.h);_.V=to.prototype;_.V.attached=function(){this.JSC$18304_scroller&&(this.JSC$18304_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18304_scroller.attached&&typeof this.JSC$18304_scroller.attached==="function"&&this.JSC$18304_scroller.attached())};
_.V.reset=function(){this.isPlaylistEditComplete=!1;this.nameInput.reset();this.descriptionInput.reset();this.computeCollabEngagementDisabled();this.updateSaveButtonState()};
_.V.onPopupClosed=function(){this.reset()};
_.V.close=function(){_.m9(this.hostElement,"yt-close-popup-action",["ytd-playlist-settings-editor-renderer"])};
_.V.onClickSave=function(){var J=this;if(!this.isPlaylistEditComplete&&this.nameInput.validate()&&this.descriptionInput.validate()){var c=[];this.nameInput.value!==null&&c.push({action:"ACTION_SET_PLAYLIST_NAME",playlistName:this.nameInput.value});this.descriptionInput.value!==null&&c.push({action:"ACTION_SET_PLAYLIST_DESCRIPTION",playlistDescription:this.descriptionInput.value});if(this.privacyInput.value!==null){var m=Number(this.privacyInput.value);isNaN(m)||c.push({action:"ACTION_SET_PLAYLIST_PRIVACY",
playlistPrivacy:m})}this.votingInput.value!==null&&(m=this.votingInput.value)&&c.push({action:"ACTION_SET_ALLOW_ITEM_VOTE",itemVotePermission:m});if(c.length>0){var b;_.L((b=this.data)==null?void 0:b.updateSettingsEndpoint,_.DA).actions=c;var x;if((x=this.data)==null?0:x.updateSettingsEndpoint)this.ytComponentBehavior.resolveCommand(this.data.updateSettingsEndpoint,{commandController:{onSuccess:function(){J.close()}}}),this.isPlaylistEditComplete=!0}}};
_.V.computePrivacyBadge=function(J){return J?[{metadataBadgeRenderer:J}]:[]};
_.V.computeEditorData=function(J){var c,m;return J==null?void 0:(c=J.sections)==null?void 0:(m=c[0])==null?void 0:m.playlistSettingsEditorCasualSectionRenderer};
_.V.computeCollabEngagementDisabled=function(){this.isCollabEngagementDisabled=this.privacyInput.value===0};
_.V.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}}}}}};
_.V.computeAriaLabel=function(){var J,c,m,b=(J=this.data)==null?void 0:(c=J.sections)==null?void 0:(m=c[0])==null?void 0:m.playlistSettingsEditorCasualSectionRenderer;return _.OG(b==null?void 0:b.title)};
_.V.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"}))};
_.V.isFormValid=function(){return this.nameInput.validate()&&this.descriptionInput.validate()};
_.V.isFormChanged=function(){return this.isNameChanged()||this.isDescriptionChanged()||this.isPrivacyChanged()||this.isVotingChanged()};
_.V.isNameChanged=function(){var J,c,m;return(((J=this.editorData)==null?void 0:(c=J.name)==null?void 0:(m=c.textInputFormFieldRenderer)==null?void 0:m.value)||"")!==(this.nameInput.value||"")};
_.V.isDescriptionChanged=function(){var J,c,m;return(((J=this.editorData)==null?void 0:(c=J.description)==null?void 0:(m=c.textInputFormFieldRenderer)==null?void 0:m.value)||"")!==(this.descriptionInput.value||"")};
_.V.isPrivacyChanged=function(){var J,c,m,b,x,P,p,t;return((p=(J=this.editorData)==null?void 0:(c=J.privacy)==null?void 0:(m=c.dropdownFormFieldRenderer)==null?void 0:(b=m.dropdown)==null?void 0:(x=b.dropdownRenderer)==null?void 0:(P=x.entries)==null?void 0:P.find(function(I){var a;return I==null?void 0:(a=I.privacyDropdownItemRenderer)==null?void 0:a.isSelected}))==null?void 0:(t=p.privacyDropdownItemRenderer)==null?void 0:t.int32Value)!==this.privacyInput.value};
_.V.isVotingChanged=function(){var J,c,m,b,x,P,p,t;return((p=(J=this.editorData)==null?void 0:(c=J.voting)==null?void 0:(m=c.dropdownFormFieldRenderer)==null?void 0:(b=m.dropdown)==null?void 0:(x=b.dropdownRenderer)==null?void 0:(P=x.entries)==null?void 0:P.find(function(I){var a;return I==null?void 0:(a=I.privacyDropdownItemRenderer)==null?void 0:a.isSelected}))==null?void 0:(t=p.privacyDropdownItemRenderer)==null?void 0:t.int32Value)!==this.votingInput.value};
to.prototype.onPopupClosed=to.prototype.onPopupClosed;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],to.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],to.prototype,"ytComponentBehavior",void 0);_.O([_.f(_.Ci.YtEventForwardingBehavior),_.R("design:type",Object)],to.prototype,"ytEventForwardingBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],to.prototype,"ytRendererStamperBehavior",void 0);
_.O([_.U(),_.R("design:type",Object)],to.prototype,"data",void 0);_.O([_.U({computed:"computePrivacyBadge(editorData.privacy.metadataBadgeRenderer)"}),_.R("design:type",Array)],to.prototype,"privacyBadge",void 0);_.O([_.U({computed:"computeEditorData(data)"}),_.R("design:type",Object)],to.prototype,"editorData",void 0);_.O([_.U(),_.R("design:type",Object)],to.prototype,"isPlaylistEditComplete",void 0);_.O([_.U(),_.R("design:type",Object)],to.prototype,"isCollabEngagementDisabled",void 0);
_.O([_.U({value:{REQUIRED_LABEL:_.CX("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.CX("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.R("design:type",Object)],to.prototype,"addToStrings",void 0);_.O([_.U({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.R("design:type",String)],to.prototype,"ariaLabel",void 0);_.O([_.U(),_.R("design:type",String)],to.prototype,"closeButtonAriaLabel",void 0);
_.O([_.U(),_.R("design:type",Object)],to.prototype,"saveButton",void 0);_.O([_.Iu("#name-input"),_.R("design:type",Object)],to.prototype,"nameInput",void 0);_.O([_.Iu("#description-input"),_.R("design:type",Object)],to.prototype,"descriptionInput",void 0);_.O([_.Iu("#privacy-input"),_.R("design:type",Object)],to.prototype,"privacyInput",void 0);_.O([_.Iu("#voting-input"),_.R("design:type",Object)],to.prototype,"votingInput",void 0);
_.O([_.Iu("#scroller"),_.R("design:type",Object)],to.prototype,"JSC$18304_scroller",void 0);_.O([_.ps("yt-popup-closed"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],to.prototype,"onPopupClosed",null);_.O([_.U(),_.R("design:type",Object)],to.prototype,"onValueChanged",void 0);to=_.O([_.E({is:"ytd-playlist-settings-editor-renderer",disableElementRegistration:!0})],to);
_.v(to,"ytd-playlist-settings-editor-renderer",function(){if(vTu===void 0){var J=document.createElement("template");_.z(J,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-settings-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-playlist-settings-editor-renderer">\n  <div id="header-title" class="style-scope ytd-playlist-settings-editor-renderer">\n    <yt-formatted-string text="[[editorData.title]]" class="style-scope ytd-playlist-settings-editor-renderer"></yt-formatted-string>\n  </div>\n  <yt-icon-button id="close-button" label="[[closeButtonAriaLabel]]" on-click="close" class="style-scope ytd-playlist-settings-editor-renderer">\n    <yt-icon icon="close" class="style-scope ytd-playlist-settings-editor-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-playlist-settings-editor-renderer">\n  <div id="content" class="style-scope ytd-playlist-settings-editor-renderer">\n    <div id="thumbnail" class="style-scope ytd-playlist-settings-editor-renderer"></div>\n    <div id="edit-playlist-form" class="style-scope ytd-playlist-settings-editor-renderer">\n      <yt-text-input-form-field-renderer id="name-input" data="[[editorData.name.textInputFormFieldRenderer]]" disabled="[[editorData.name.textInputFormFieldRenderer.disabled]]" on-value-changed="[[onValueChanged]]" class="style-scope ytd-playlist-settings-editor-renderer">\n      </yt-text-input-form-field-renderer>\n      <yt-text-input-form-field-renderer id="description-input" data="[[editorData.description.textInputFormFieldRenderer]]" disabled="[[editorData.name.textInputFormFieldRenderer.disabled]]" on-value-changed="[[onValueChanged]]" class="style-scope ytd-playlist-settings-editor-renderer">\n      </yt-text-input-form-field-renderer>\n      <ytd-badge-supported-renderer badges="[[privacyBadge]]" hidden="[[!editorData.privacy.metadataBadgeRenderer]]" class="style-scope ytd-playlist-settings-editor-renderer">\n      </ytd-badge-supported-renderer>\n      <ytd-dropdown-renderer id="privacy-input" data="[[editorData.privacy.dropdownFormFieldRenderer.dropdown.dropdownRenderer]]" hidden="[[!editorData.privacy]]" on-value-changed="onValueChanged" class="style-scope ytd-playlist-settings-editor-renderer">\n      </ytd-dropdown-renderer>\n      <ytd-dropdown-renderer id="voting-input" data="[[editorData.voting.dropdownFormFieldRenderer.dropdown.dropdownRenderer]]" disabled="[[isCollabEngagementDisabled]]" hidden="[[!editorData.voting]]" on-value-changed="onValueChanged" class="style-scope ytd-playlist-settings-editor-renderer">\n      </ytd-dropdown-renderer>\n      <div id="collaborate" class="style-scope ytd-playlist-settings-editor-renderer">\n        <yt-list-item-view-model data="[[editorData.collaborate.listItemViewModel]]" disabled="[[isCollabEngagementDisabled]]" hidden$="[[!editorData.collaborate]]" class="style-scope ytd-playlist-settings-editor-renderer"></yt-list-item-view-model>\n      </div>\n    </div>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n<div id="actions" class="style-scope ytd-playlist-settings-editor-renderer">\n  <yt-button-view-model data="[[saveButton]]" scoping-class-name="[[is]]" on-click="onClickSave" class="style-scope ytd-playlist-settings-editor-renderer">\n  </yt-button-view-model>\n</div>\n');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);vTu=J}J=vTu;return J},{mode:1});var OuR;_.zH("itemSectionRenderer","redCancelSurveyRenderer","ytd-red-cancel-survey-renderer");var I4=function(){return _.h.apply(this,arguments)||this};
_.D(I4,_.h);_.V=I4.prototype;_.V.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}}}}}};
_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.V.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 J=this.get("data.nextButton.buttonRenderer.navigationEndpoint");J&&(this.nextNavigationEndpoint=J,this.set("data.nextButton.buttonRenderer.navigationEndpoint",void 0))};
_.V.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 J={feedbackTokens:[this.get(["data.singleOptions.styles",this.selectedResponseIndex]).radioButtonSurveyOptionRenderer.submissionEndpoint.feedbackEndpoint.feedbackToken]};
this.set("nextNavigationEndpoint.confirmDialogEndpoint.content.confirmDialogRenderer.confirmButton.buttonRenderer.serviceEndpoint.ypcCancelRecurrenceEndpoint.feedbackData",J)}}};
_.V.onPopupOpened=function(J){J.detail!==this&&J.detail!==this.hostElement||!_.w("enable_premium_voluntary_pause")||_.m9(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"])};
_.V.onNextButtonTap=function(){var J=this.nextNavigationEndpoint&&this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.nextNavigationEndpoint);J&&this.ytdOpenPopupBehavior.openPopup(J)};
_.V.updateSelectedResponseIndexFromBinding=function(J){this.selectedResponseIndex=J.detail.value};
I4.prototype.onPopupOpened=I4.prototype.onPopupOpened;I4.prototype.onSelectedResponseIndexChange=I4.prototype.onSelectedResponseIndexChange;I4.prototype.dataChanged=I4.prototype.dataChanged;_.O([_.f(_.vL),_.R("design:type",Object)],I4.prototype,"ytdOpenPopupBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],I4.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],I4.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.U(),_.R("design:type",Object)],I4.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Number)],I4.prototype,"selectedResponseIndex",void 0);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],I4.prototype,"dataChanged",null);_.O([_.NE("selectedResponseIndex"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],I4.prototype,"onSelectedResponseIndexChange",null);
_.O([_.ps("yt-popup-opened"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,Object]),_.R("design:returntype")],I4.prototype,"onPopupOpened",null);I4=_.O([_.E({is:"ytd-red-cancel-survey-renderer",disableElementRegistration:!0})],I4);
_.v(I4,"ytd-red-cancel-survey-renderer",function(){if(OuR!==void 0)return OuR;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return OuR=J},{mode:1});var Ato;var K8=function(){var J=_.h.apply(this,arguments)||this;J.closeButtonAriaLabel=_.CX("SBOX_INAPPROPRIATE_CANCEL");return J};
_.D(K8,_.h);K8.prototype.configureRendererStamper=function(){return{"data.groups":{id:"options",mapping:{searchFilterGroupRenderer:{component:"ytd-search-filter-group-renderer"}}}}};
K8.prototype.onClickClose=function(){_.m9(this.hostElement,"yt-close-popup-action",["ytd-search-filter-options-dialog-renderer"])};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],K8.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],K8.prototype,"rendererStamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],K8.prototype,"data",void 0);_.O([_.U(),_.R("design:type",String)],K8.prototype,"closeButtonAriaLabel",void 0);K8=_.O([_.E({is:"ytd-search-filter-options-dialog-renderer",disableElementRegistration:!0})],K8);
_.v(K8,"ytd-search-filter-options-dialog-renderer",function(){if(Ato!==void 0)return Ato;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return Ato=J},{mode:1});var RJF;var iXS=function(){return function(J){J=J.availabilityType;return J===void 0||J==="OFFLINEABILITY_AVAILABILITY_TYPE_UNKNOWN"||J==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?!0:!1}};var C8=function(){var J=_.h.apply(this,arguments)||this;J.qualityOptions=[];J.upsellOptions=[];J.showUpsellSection=!1;J.darkerDarkTheme=_.w("web_darker_dark_theme");J.rememberSettingsChecked=!1;return J};
_.D(C8,_.h);_.V=C8.prototype;_.V.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}}}}};
_.V.dataChanged=function(){this.updateRememberString();this.updateQualityOptions()};
_.V.updateQualityOptions=function(){if(this.formats===void 0)_.m9(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);else{var J=[],c=[];this.showUpsellSection=!1;for(var m=_.M(this.formats),b=m.next();!b.done;b=m.next())(b=b.value)&&(b.availabilityType==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?c.push(b):J.push(b));J.length&&(this.qualityOptions=HXp(J));c.length&&(this.showUpsellSection=!0,this.upsellOptions=HXp(c))}};
_.V.updateRememberString=function(){if(this.downloadQualityPickerEntity)var J=this.downloadQualityPickerEntity.rememberSettingString;else if(this.selectedUpsellQuality){var c;J=(c=this.data)==null?void 0:c.premiumRememberSettingString}else{var m;J=(m=this.data)==null?void 0:m.rememberSettingString}J=J===void 0?_.CX("REMEMBER_MY_SETTINGS",void 0,"Remember my settings"):J;this.rememberSettingsCheckboxRenderer={title:_.yq(J),disabled:!1}};
_.V.rememberSettingsCheckedChanged=function(){if(this.onRememberSettingsCheckedChanged)this.onRememberSettingsCheckedChanged(this.rememberSettingsCheckbox.checked)};
_.eE.Object.defineProperties(C8.prototype,{formats:{configurable:!0,enumerable:!0,get:function(){var J;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(J=this.data)==null?void 0:J.qualityFormats}}});
C8.prototype.updateRememberString=C8.prototype.updateRememberString;C8.prototype.updateQualityOptions=C8.prototype.updateQualityOptions;C8.prototype.dataChanged=C8.prototype.dataChanged;_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],C8.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],C8.prototype,"ytComponentBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],C8.prototype,"data",void 0);
_.O([_.f(_.fY),_.R("design:type",Object)],C8.prototype,"ytdReduxBehavior",void 0);_.O([_.U(),_.R("design:type",Boolean)],C8.prototype,"selectedUpsellQuality",void 0);_.O([_.U({computed:"computeIcon_(data.premiumIcon)",value:""}),_.R("design:type",String)],C8.prototype,"premiumIcon",void 0);_.O([_.U({selector:VDo,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.R("design:type",Object)],C8.prototype,"downloadQualityPickerEntity",void 0);
_.O([_.U(),_.R("design:type",Array)],C8.prototype,"qualityOptions",void 0);_.O([_.U(),_.R("design:type",Array)],C8.prototype,"upsellOptions",void 0);_.O([_.U(),_.R("design:type",Object)],C8.prototype,"showUpsellSection",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],C8.prototype,"darkerDarkTheme",void 0);_.O([_.U(),_.R("design:type",Object)],C8.prototype,"rememberSettingsCheckboxRenderer",void 0);
_.O([_.Iu("#remember-settings"),_.R("design:type",HTMLInputElement)],C8.prototype,"rememberSettingsCheckbox",void 0);_.O([_.U(),_.R("design:type",Object)],C8.prototype,"rememberSettingsChecked",void 0);_.O([_.U(),_.R("design:type",Function)],C8.prototype,"onRememberSettingsCheckedChanged",void 0);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],C8.prototype,"dataChanged",null);
_.O([_.NE("downloadQualityPickerEntity"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],C8.prototype,"updateQualityOptions",null);_.O([_.NE("selectedUpsellQuality"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],C8.prototype,"updateRememberString",null);C8=_.O([_.E({is:"ytd-download-quality-selector-content",disableElementRegistration:!0})],C8);
_.v(C8,"ytd-download-quality-selector-content",function(){if(RJF!==void 0)return RJF;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return RJF=J},{mode:1});var oTR;var a4=function(){var J=_.h.apply(this,arguments)||this;J.selectedUpsellQuality=!1;J.qualityOptions=[];J.darkerDarkTheme=_.w("web_darker_dark_theme");J.useUpsellDismissAlternate=_.w("use_not_now_dl_upsell_dismiss_cta");J.shouldShowAlternateUpsellDimiss=!1;J.rememberSettings=!1;J.rememberSettingsChecked=!1;J.actionMap={"yt-select-settings-radio-option":"onQualityOptionsSelect"};J.rememberSettingsCheckedChanged=function(c){J.rememberSettingsChecked=c};
return J};
_.D(a4,_.h);_.V=a4.prototype;
_.V.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.rememberSettingsCheckedChanged(!1);this.downloadButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.yq(_.CX("DOWNLOAD",void 0,"Download")),isDisabled:!0};this.upsellButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.yq(_.CX("GET_PREMIUM",void 0,"Get Premium")),isDisabled:!0};this.cancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.yq(_.CX("SBOX_INAPPROPRIATE_CANCEL",
void 0,"Cancel"))};this.upsellCancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.yq(_.CX("NOT_NOW",void 0,"Not now"))};this.updateQualityOptions()};
_.V.updateQualityOptions=function(){this.formats===void 0?_.m9(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]):this.qualityOptions=HXp(this.formats)};
_.V.onQualityOptionsSelect=function(J){if(this.qualityOptions&&J){J!==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 c=_.M(this.qualityOptions.entries()),m=c.next();!m.done;m=
c.next()){m=_.M(m.value);var b=m.next().value;m=m.next().value;var x=void 0,P=void 0;if(((x=m)==null?void 0:(P=x.settingsRadioOptionRenderer)==null?void 0:P.id)===J){this.selectedQualityIndex=b;J=void 0;this.shouldShowAlternateUpsellDimiss=(this.selectedUpsellQuality=((J=this.formats[b])==null?void 0:J.availabilityType)==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED")&&this.useUpsellDismissAlternate;break}}}};
_.V.onClickSubmit=function(){var J;if((J=this.downloadButtonRenderer)==null||!J.isDisabled){var c,m;J=(m=(c=this.data)==null?void 0:c.onSubmitEndpoint)!=null?m:{};var b,x;if(this.formats&&(((b=_.L(J,_.Mx))==null?0:b.videoId)||((x=_.L(J,_.pK))==null?0:x.playlistId))){var P,p,t,I,a,k;c={formatType:(I=(P=this.formats)==null?void 0:(p=P[(t=this.selectedQualityIndex)!=null?t:0])==null?void 0:p.format)!=null?I:"UNKNOWN_FORMAT_TYPE",settingsAction:this.getOfflineSettingsAction(this.rememberSettingsChecked,
(a=this.getOfflineEndpoint(J))==null?void 0:(k=a.actionParams)==null?void 0:k.settingsAction)};this.getOfflineEndpoint(J).actionParams=c;this.ytComponentBehavior.resolveCommand(J)}_.m9(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])}};
_.V.onClickUpsell=function(){var J;if((J=this.upsellButtonRenderer)==null||!J.isDisabled){var c,m;J=(m=(c=this.data)==null?void 0:c.upsellEndpoint)!=null?m:{};this.ytComponentBehavior.resolveCommand(J);_.m9(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);c="UNKNOWN_FORMAT_TYPE";if(this.rememberSettingsChecked){var b,x,P,p;c=(p=(b=this.formats)==null?void 0:(x=b[(P=this.selectedQualityIndex)!=null?P:0])==null?void 0:x.format)!=null?p:"UNKNOWN_FORMAT_TYPE"}this.ytComponentBehavior.resolveCommand({setPrefStorageEntryCommand:{key:"lmqf",
value:c}})}};
_.V.onClickClose=function(){_.m9(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])};
_.V.getOfflineSettingsAction=function(J,c){return J?c===void 0?"DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE":c:"DOWNLOAD_QUALITY_SETTINGS_ACTION_DONT_SAVE"};
_.V.getOfflineEndpoint=function(J){return _.L(J,_.Mx)?_.L(J,_.Mx):_.L(J,_.pK)};
_.eE.Object.defineProperties(a4.prototype,{titleText:{configurable:!0,enumerable:!0,get:function(){return _.yq(_.CX("DOWNLOAD_QUALITY",void 0,"Download Quality"))}},
formats:{configurable:!0,enumerable:!0,get:function(){var J;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(J=this.data)==null?void 0:J.qualityFormats}}});
a4.prototype.updateQualityOptions=a4.prototype.updateQualityOptions;a4.prototype.dataChanged=a4.prototype.dataChanged;_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],a4.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],a4.prototype,"ytComponentBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],a4.prototype,"ytRendererBehavior",void 0);
_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],a4.prototype,"ytActionHandlerBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],a4.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Number)],a4.prototype,"selectedQualityIndex",void 0);_.O([_.U(),_.R("design:type",Object)],a4.prototype,"selectedUpsellQuality",void 0);_.O([_.f(_.fY),_.R("design:type",Object)],a4.prototype,"ytdReduxBehavior",void 0);
_.O([_.U({selector:VDo,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.R("design:type",Object)],a4.prototype,"downloadQualityPickerEntity",void 0);_.O([_.U(),_.R("design:type",Array)],a4.prototype,"qualityOptions",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],a4.prototype,"darkerDarkTheme",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],a4.prototype,"useUpsellDismissAlternate",void 0);
_.O([_.U(),_.R("design:type",Object)],a4.prototype,"shouldShowAlternateUpsellDimiss",void 0);_.O([_.U(),_.R("design:type",Object)],a4.prototype,"downloadButtonRenderer",void 0);_.O([_.U(),_.R("design:type",Object)],a4.prototype,"upsellButtonRenderer",void 0);_.O([_.U(),_.R("design:type",Object)],a4.prototype,"cancelButtonRenderer",void 0);_.O([_.U(),_.R("design:type",Object)],a4.prototype,"upsellCancelButtonRenderer",void 0);_.O([_.U(),_.R("design:type",Object)],a4.prototype,"rememberSettings",void 0);
_.O([_.U(),_.R("design:type",Object)],a4.prototype,"rememberSettingsChecked",void 0);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],a4.prototype,"dataChanged",null);_.O([_.NE("downloadQualityPickerEntity"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],a4.prototype,"updateQualityOptions",null);a4=_.O([_.E({is:"ytd-download-quality-selector-renderer",disableElementRegistration:!0})],a4);
_.v(a4,"ytd-download-quality-selector-renderer",function(){if(oTR!==void 0)return oTR;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return oTR=J},{mode:1});var Q7p;var k5=function(){var J=_.h.apply(this,arguments)||this;J.darkerDarkTheme=_.w("web_darker_dark_theme");return J};
_.D(k5,_.h);k5.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
k5.prototype.configureRendererStamper=function(){return{"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:{attributes:{"dialog-dismiss":!0},component:"ytd-button-renderer"}}},"data.nextButton":{id:"next-button",mapping:{buttonRenderer:{attributes:{"dialog-dismiss":!0},component:"ytd-button-renderer"}}}}};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],k5.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],k5.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],k5.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],k5.prototype,"darkerDarkTheme",void 0);_.O([_.U({computed:"computeIcon_(data.infoIcon)"}),_.R("design:type",Object)],k5.prototype,"infoIcon",void 0);
_.O([_.U({computed:"computeIcon_(data.warningIcon)"}),_.R("design:type",Object)],k5.prototype,"warningIcon",void 0);k5=_.O([_.E({is:"ytd-cross-account-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],k5);
_.v(k5,"ytd-cross-account-transfer-channel-confirm-dialog-renderer",function(){if(Q7p!==void 0)return Q7p;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return Q7p=J},{mode:1});var eJs;var Hf=function(){var J=_.h.apply(this,arguments)||this;J.darkerDarkTheme=_.w("web_darker_dark_theme");return J};
_.D(Hf,_.h);Hf.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Hf.prototype.configureRendererStamper=function(){return{"data.stepper":{id:"stepper",mapping:{channelTransferStepperRenderer:"ytd-channel-transfer-stepper-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:{attributes:{"dialog-dismiss":!0},component:"ytd-button-renderer"}}},"data.signinButton":{id:"signin-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Hf.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],Hf.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Hf.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Hf.prototype,"darkerDarkTheme",void 0);Hf=_.O([_.E({is:"ytd-cross-account-transfer-channel-overview-renderer",disableElementRegistration:!0})],Hf);
_.v(Hf,"ytd-cross-account-transfer-channel-overview-renderer",function(){if(eJs!==void 0)return eJs;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return eJs=J},{mode:1});var j7R;var iz=function(){var J=_.h.apply(this,arguments)||this;J.darkerDarkTheme=_.w("web_darker_dark_theme");return J};
_.D(iz,_.h);iz.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
iz.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"}}}}};
iz.prototype.onServiceRequestSentOrCompleted=function(J,c){c&&c.actions&&c.actions.length>0&&_.m9(this.hostElement,"yt-close-popup-action",[this.is])};
iz.prototype.onServiceRequestSentOrCompleted=iz.prototype.onServiceRequestSentOrCompleted;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],iz.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],iz.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],iz.prototype,"darkerDarkTheme",void 0);_.O([_.U(),_.R("design:type",Object)],iz.prototype,"data",void 0);
_.O([_.ps("yt-service-request-completed"),_.ps("yt-service-request-sent"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,_.Oi]),_.R("design:returntype")],iz.prototype,"onServiceRequestSentOrCompleted",null);iz=_.O([_.E({is:"ytd-cross-account-transfer-channel-tnc-dialog-renderer",disableElementRegistration:!0})],iz);
_.v(iz,"ytd-cross-account-transfer-channel-tnc-dialog-renderer",function(){if(j7R!==void 0)return j7R;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return j7R=J},{mode:1});var FBh;var n8=function(){var J=_.h.apply(this,arguments)||this;J.darkerDarkTheme=_.w("web_darker_dark_theme");J.submitButtonDisabled=!0;return J};
_.D(n8,_.h);_.V=n8.prototype;_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.V.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{itemSectionRenderer:{component:"ytd-item-section-renderer",noInjection:!0}}}}};
_.V.onDataChanged=function(){var J,c,m;if(((J=this.data)==null?void 0:(c=J.confirmButton)==null?void 0:(m=c.buttonRenderer)==null?void 0:m.isDisabled)!==void 0){var b,x,P;this.submitButtonDisabled=(b=this.data)==null?void 0:(x=b.confirmButton)==null?void 0:(P=x.buttonRenderer)==null?void 0:P.isDisabled}};
_.V.checkboxChanged=function(){this.submitButtonDisabled=!this.submitButtonDisabled};
_.V.updateSubmitButtonDisabledFromBinding=function(J){this.submitButtonDisabled=J.detail.value};
_.V.updateSubmitButtonDisabledFromConfirmCheckbox=function(J){this.submitButtonDisabled=!J.detail.value};
n8.prototype.onDataChanged=n8.prototype.onDataChanged;_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],n8.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],n8.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],n8.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],n8.prototype,"darkerDarkTheme",void 0);
_.O([_.U(),_.R("design:type",Object)],n8.prototype,"submitButtonDisabled",void 0);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],n8.prototype,"onDataChanged",null);n8=_.O([_.E({is:"ytd-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],n8);
_.v(n8,"ytd-transfer-channel-confirm-dialog-renderer",function(){if(FBh!==void 0)return FBh;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return FBh=J},{mode:1});var lXR;var Tw=function(){return _.h.apply(this,arguments)||this};
_.D(Tw,_.h);_.eE.Object.defineProperties(Tw.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var J,c,m;return((J=this.data)==null?void 0:J.title)+" "+((c=this.data)==null?void 0:c.metadataPrimary)+" "+((m=this.data)==null?void 0:m.metadataSecondary)}}});
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Tw.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],Tw.prototype,"ytComponentBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Tw.prototype,"data",void 0);_.O([_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],Tw.prototype,"ariaLabel",null);Tw=_.O([_.E({disableElementRegistration:!0,is:"ytd-compact-product-list-item-renderer"})],Tw);
_.v(Tw,"ytd-compact-product-list-item-renderer",function(){if(lXR!==void 0)return lXR;var J=document.createElement("template");_.z(J,'\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>');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return lXR=J},{mode:1});var yts;var wX=function(){return _.h.apply(this,arguments)||this};
_.D(wX,_.h);wX.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]]"}}}}}};
_.eE.Object.defineProperties(wX.prototype,{buttonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono"}}}});
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],wX.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],wX.prototype,"ytComponentBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],wX.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],wX.prototype,"data",void 0);wX=_.O([_.E({disableElementRegistration:!0,is:"ytd-compact-product-list-renderer"})],wX);
_.v(wX,"ytd-compact-product-list-renderer",function(){if(yts!==void 0)return yts;var J=document.createElement("template");_.z(J,'\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>');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return yts=J},{mode:1});var BWR;var rX=function(){var J=_.h.apply(this,arguments)||this;J.darkerDarkTheme=_.w("web_darker_dark_theme");return J};
_.D(rX,_.h);_.V=rX.prototype;_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.V.configureRendererStamper=function(){return{"data.okayButton":{id:"okay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.V.getBackgroundUrl=function(){var J=this.get("data.headerImage.thumbnails");return J?"url("+_.yn(J,this.hostElement.clientWidth)+")":""};
_.V.onDataChanged=function(){var J=this.getBackgroundUrl();J&&(this.header.style.backgroundImage=J);J=_.Y3();var c=_.fl(),m=this.get("data.trackingParams");m&&c&&J&&_.$2(J,c,_.n7(m));J=_.M(this.hostElement.querySelectorAll("yt-img-shadow"));for(c=J.next();!c.done;c=J.next())c.value.onShow()};
_.V.onPopupClosed=function(J){_.Ac(J).localName==="ytd-membership-post-cancel-renderer"&&_.m9(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"])};
rX.prototype.onPopupClosed=rX.prototype.onPopupClosed;rX.prototype.onDataChanged=rX.prototype.onDataChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],rX.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],rX.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],rX.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],rX.prototype,"darkerDarkTheme",void 0);
_.O([_.Iu("#header"),_.R("design:type",HTMLDivElement)],rX.prototype,"header",void 0);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],rX.prototype,"onDataChanged",null);_.O([_.ps("yt-popup-closed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],rX.prototype,"onPopupClosed",null);rX=_.O([_.E({disableElementRegistration:!0,is:"ytd-membership-post-cancel-renderer"})],rX);
_.v(rX,"ytd-membership-post-cancel-renderer",function(){if(BWR!==void 0)return BWR;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return BWR=J},{mode:1});var gTF;var sg=function(){var J=_.h.apply(this,arguments)||this;J.darkerDarkTheme=_.w("web_darker_dark_theme");return J};
_.D(sg,_.h);sg.prototype.maybeSubmitFeedback=function(){this.feedbackSurveyRenderer&&this.feedbackSurveyRenderer.submitSurvey()};
sg.prototype.configureRendererStamper=function(){return{"data.feedbackSurvey":{id:"feedback-survey",mapping:{feedbackSurveyRenderer:"ytd-feedback-survey-renderer"}}}};
_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],sg.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],sg.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],sg.prototype,"darkerDarkTheme",void 0);_.O([_.Iu("ytd-feedback-survey-renderer"),_.R("design:type",Object)],sg.prototype,"feedbackSurveyRenderer",void 0);sg=_.O([_.E({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-content"})],sg);
_.v(sg,"ytd-sponsorship-confirm-cancel-content",function(){if(gTF!==void 0)return gTF;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return gTF=J},{mode:1});var J25;var L8=function(){var J=_.h.apply(this,arguments)||this;J.darkerDarkTheme=_.w("web_darker_dark_theme");J.maybeSubmitFeedback=function(){J.content&&J.content.maybeSubmitFeedback()};
return J};
_.D(L8,_.h);_.V=L8.prototype;_.V.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[maybeSubmitFeedback]]"}}}}}};
_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable.dialogElement=this.hostElement.parentNode;this.scrollable._ensureTarget();this.onDataChanged()};
_.V.onYtPopupOpened=function(J,c){c===this&&this.data&&this.data.onOpenCommands&&_.PA(this.hostElement,this.data.onOpenCommands,this.hostElement);_.m9(this.hostElement,"yt-close-popups-action",[["ytd-manage-membership-renderer","ytd-membership-offer-renderer"]])};
_.V.onYtPopupClosed=function(J,c){(c&&c.canceled===!0||c&&c.canceled===!1&&c.confirmed===!1)&&this.data&&this.data.onDismissCommands&&_.PA(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.V.onYtServiceRequestCompleted=function(){_.m9(this.hostElement,"yt-close-popup-action",["ytd-sponsorship-confirm-cancel-renderer"])};
_.V.onYtServiceRequestError=function(J){_.Bg(this.hostElement,J.detail.error.message)};
_.V.onDataChanged=function(){if(this.isAttached){var J=this.backgroundUrl;J&&(_.Bj(this.hostElement).querySelector("#header").style.backgroundImage=J)}};
_.eE.Object.defineProperties(L8.prototype,{backgroundUrl:{configurable:!0,enumerable:!0,get:function(){var J=this.get("data.header.sponsorshipDialogHeaderRenderer.headerImage.thumbnails");return J?"url("+_.yn(J,this.hostElement.clientWidth)+")":""}}});
L8.prototype.onDataChanged=L8.prototype.onDataChanged;L8.prototype.onYtServiceRequestError=L8.prototype.onYtServiceRequestError;L8.prototype.onYtServiceRequestCompleted=L8.prototype.onYtServiceRequestCompleted;L8.prototype.onYtPopupClosed=L8.prototype.onYtPopupClosed;L8.prototype.onYtPopupOpened=L8.prototype.onYtPopupOpened;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],L8.prototype,"ytRendererBehavior",void 0);
_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],L8.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],L8.prototype,"data",void 0);_.O([_.U({value:function(){return _.CX("SBOX_INAPPROPRIATE_CANCEL")}}),
_.R("design:type",String)],L8.prototype,"closeButtonAriaLabel",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],L8.prototype,"darkerDarkTheme",void 0);_.O([_.Iu("#scrollable"),_.R("design:type",Object)],L8.prototype,"scrollable",void 0);_.O([_.Iu("ytd-sponsorship-confirm-cancel-content"),_.R("design:type",Object)],L8.prototype,"content",void 0);
_.O([_.ps("yt-popup-opened"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,Object]),_.R("design:returntype")],L8.prototype,"onYtPopupOpened",null);_.O([_.ps("yt-popup-closed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,Object]),_.R("design:returntype")],L8.prototype,"onYtPopupClosed",null);
_.O([_.ps("yt-service-request-completed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],L8.prototype,"onYtServiceRequestCompleted",null);_.O([_.ps("yt-service-request-error"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],L8.prototype,"onYtServiceRequestError",null);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],L8.prototype,"onDataChanged",null);
L8=_.O([_.E({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-renderer"})],L8);
_.v(L8,"ytd-sponsorship-confirm-cancel-renderer",function(){if(J25!==void 0)return J25;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return J25=J},{mode:_.mP("kevlar_poly_si_batch_j081")?1:2});var c2h;var DW=function(){var J=_.h.apply(this,arguments)||this;J.darkerDarkTheme=_.w("web_darker_dark_theme");return J};
_.D(DW,_.h);DW.prototype.configureRendererStamper=function(){return{"data.contents":{id:"content",mapping:{sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}}}};
_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],DW.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],DW.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],DW.prototype,"darkerDarkTheme",void 0);DW=_.O([_.E({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-content"})],DW);
_.v(DW,"ytd-sponsorships-celebration-content",function(){if(c2h!==void 0)return c2h;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return c2h=
J},{mode:1});var m91;var bih=_.Oo(["\n      window.dataLayer = window.dataLayer || [];\n      function gtag(){dataLayer.push(arguments);}\n      gtag('event', 'conversion', {'send_to': 'AW-10800507011/WarlCOX0sIIDEIPRip4o', 'transaction_id': ''});\n    "]),Wf=function(){var J=_.h.apply(this,arguments)||this;J.scriptsAppended=!1;J.buttonOverrides={type:"tonal",style:"overlay-dark"};return J};
_.D(Wf,_.h);_.V=Wf.prototype;
_.V.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:_.w("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}}}}}};
_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.V.onDataChanged=function(){var J;(J=this.header)==null||J.style.setProperty("background-color",this.backgroundColor);if(J=this.headerImageUrl){var c;(c=this.header)==null||c.style.setProperty("background-image",J)}c=_.Y3(4);J=_.fl(4);var m=this.get("data.trackingParams");if(m&&J&&c){var b=_.n7(m);_.$2(c,J,b);_.w("combine_ve_grafts")?_.C7().graftServerVe(m,J,4):_.$2(c,J,b)}c=_.M(this.hostElement.querySelectorAll("yt-img-shadow"));for(J=c.next();!J.done;J=c.next())J.value.onShow();if(c=this.get("data.gtmId"))_.n9(c,
_.Ub("GL","")),this.setupConversionTracking()};
_.V.setupConversionTracking=function(){if(!this.scriptsAppended){var J=document.createElement("script");var c=_.S3(bih.join(""));_.da(J,c);document.head.appendChild(J);J=document.createElement("noscript");J.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(J);this.scriptsAppended=!0}};
_.V.onPopupClosed=function(J){if(_.Ac(J).localName==="ytd-sponsorships-celebration-renderer"){_.m9(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"]);var c;this.data&&((c=this.data)==null?0:c.dismissCommand)&&_.p7.instance.resolveCommand(this.data.dismissCommand,{form:{element:this.hostElement}})}};
_.eE.Object.defineProperties(Wf.prototype,{backgroundColor:{configurable:!0,enumerable:!0,get:function(){var J=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");return _.Zn(J)}},
headerImageUrl:{configurable:!0,enumerable:!0,get:function(){var J=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails");return J?"url("+_.yn(J,this.hostElement.getBoundingClientRect().width)+")":""}}});
Wf.prototype.onPopupClosed=Wf.prototype.onPopupClosed;Wf.prototype.onDataChanged=Wf.prototype.onDataChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Wf.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],Wf.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Wf.prototype,"data",void 0);_.O([_.Iu("#header"),_.R("design:type",HTMLElement)],Wf.prototype,"header",void 0);
_.O([_.U(),_.R("design:type",Object)],Wf.prototype,"scriptsAppended",void 0);_.O([_.U(),_.R("design:type",Object)],Wf.prototype,"buttonOverrides",void 0);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Wf.prototype,"onDataChanged",null);_.O([_.ps("yt-popup-closed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],Wf.prototype,"onPopupClosed",null);
Wf=_.O([_.E({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-renderer"})],Wf);
_.v(Wf,"ytd-sponsorships-celebration-renderer",function(){if(m91!==void 0)return m91;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return m91=J},{mode:1});var x9R;var zw=function(){var J=_.h.apply(this,arguments)||this;J.isToggleChecked=!1;return J};
_.D(zw,_.h);zw.prototype.onDataChanged=function(){var J;this.isToggleChecked=((J=this.data)==null?void 0:J.initialOptInStatus)==="SPONSORSHIPS_GIFTING_OPT_IN_STATUS_ENABLED"};
zw.prototype.close=function(){var J;((J=this.data)==null?0:J.closeCommand)&&this.ytComponentBehavior.resolveCommand(this.data.closeCommand)};
zw.prototype.handleOptInToggle=function(){this.isToggleChecked=!this.isToggleChecked;var J,c=_.L((J=this.data)==null?void 0:J.switchButton,RB4);c&&(this.isToggleChecked&&c.switchOnInnertubeCommand&&this.ytComponentBehavior.resolveCommand(c.switchOnInnertubeCommand),!this.isToggleChecked&&c.switchOffInnertubeCommand&&this.ytComponentBehavior.resolveCommand(c.switchOffInnertubeCommand))};
zw.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
zw.prototype.onDataChanged=zw.prototype.onDataChanged;_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],zw.prototype,"ytComponentBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],zw.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],zw.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],zw.prototype,"isToggleChecked",void 0);_.O([_.U({value:_.CX("CLOSE")}),_.R("design:type",String)],zw.prototype,"closeButtonAriaLabel",void 0);
_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],zw.prototype,"onDataChanged",null);zw=_.O([_.E({disableElementRegistration:!0,is:"ytd-sponsorships-gifting-opt-in-renderer"})],zw);
_.v(zw,"ytd-sponsorships-gifting-opt-in-renderer",function(){if(x9R!==void 0)return x9R;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return x9R=J},{mode:1});var V7S;var uz=function(){return _.h.apply(this,arguments)||this};
_.D(uz,_.h);_.V=uz.prototype;_.V.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"}}}}};
_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.V.detached=function(){this.playerElement.stop()};
_.V.onYtServiceRequestCompleted=function(){_.m9(this.hostElement,"yt-close-popup-action",["ytd-sponsorships-offer-renderer"])};
_.V.onYtServiceRequestError=function(J){_.Bg(this.hostElement,J.detail.error.message)};
_.V.onYtPopupOpened=function(){this.scrollable&&(this.scrollable.scrollTarget.scrollTop=0)};
_.V.onYtPopupClosed=function(){this.playerElement.stop();this.backgroundPlayerElement&&this.isBackgroundPlayerAlreadyPlaying&&!this.tierRenderer.purchaseButtonClicked&&this.backgroundPlayerElement.play();this.set("selectedTier",0)};
_.V.getTier=function(J,c){return!J||!J.tiers||c<0?null:_.L(J.tiers[c],j9F)};
_.V.moreThanOne=function(J){return!!(J&&J.length>1)};
_.V.tierOverviewTap=function(J){var c=this;this.selectedTier=J.model.index;_.o3(this,function(){_.cA(c.hostElement,"yt-refit")})};
_.V.computeSelectedClass=function(J,c){return this.isSelected(J,c)?"selected":""};
_.V.computeButtonAriaPressed=function(J,c){return this.isSelected(J,c)?"true":"false"};
_.V.isSelected=function(J,c){return J===c};
_.V.onDataChanged=function(){_.Bj(this.hostElement).querySelector("#header-overlay").style.visibility="";_.Bj(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 J=_.M(this.hostElement.querySelectorAll("yt-img-shadow")),
c=J.next();!c.done;c=J.next())c.value.onShow();var m;this.set("selectedTier",(m=this.get("data.targetTierIndex"))!=null?m:0);var b;(J=(b=this.data)==null?void 0:b.onVisible)&&this.ytComponentBehavior.resolveCommand(J)};
_.V.initializeVe=function(J){var c=_.Y3(),m=_.fl(),b=this.get("data.trackingParams");m&&c&&(this.screenLayer=4,c=_.du(_.n_J)(void 0,69877,{clientScreenNonce:c,visualElement:m},void 0,void 0,void 0),_.qa(c,69877,4),m=_.fl(4),b&&m&&(b=_.n7(b),_.$2(c,m,b),J&&(this.offerVideoVe=_.rs(74659),_.$2(c,b,this.offerVideoVe))))};
_.V.setHeaderBackground=function(){var J=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");_.Bj(this.hostElement).querySelector("#background-image-layer").style.backgroundColor=_.Zn(J);if(J=this.getHeaderImage())J=_.yn(J,screen.width),_.Bj(this.hostElement).querySelector("#background-image-layer").style.backgroundImage="url("+J+")"};
_.V.getHeaderImage=function(){var J=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode.thumbnails");return this.isAppDarkTheme()&&J?J:this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails")};
_.V.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.V.setupVideoPlayer=function(J){var c=this,m,b,x,P;return _.N(function(p){if(p.nextAddress==1)return m=c.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.autoplay"),b=c.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.playerWatchEndpointParams"),_.w("kevlar_player_update_killswitch")?c.playerElement.update({args:{autoplay:m,video_id:J,player_params:b}}):c.playerElement.loadVideoWithPlayerVars({autoplay:m,video_id:J,player_params:b}),
_.K(p,c.playerElement.getPlayerPromise(),2);x=p.yieldResult;x.addEventListener("onStateChange",function(t){c.onPlayerStateChange(t)});
x.setScreenLayer(c.screenLayer);(P=_.Y3(4))&&c.offerVideoVe&&_.E2(P,c.offerVideoVe);m&&(c.pauseOtherPlayers(),c.playerElement.focusOnPlayer(),c.playerElement.getPlayer().hideControls(),_.rv(_.ft,function(){c.fadeOutHeaderOverlay()},4E3));
_.tD(p)})};
_.V.onPlayerStateChange=function(J){J===1?this.backgroundPlayerElement&&(J=this.backgroundPlayerElement.player_.getPlayerState(),J!==1&&J!==3||this.backgroundPlayerElement.pause()):J===0&&(_.Bj(this.hostElement).querySelector("#header-overlay").style.visibility="",this.playerElement.getPlayer().hideControls(),_.Bj(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition"))};
_.V.fadeOutHeaderOverlay=function(){_.Bj(this.hostElement).querySelector("#header-overlay").classList.add("header-overlay-transition");this.playerElement.getPlayer().showControls()};
_.V.onHeaderTap=function(){if(this.offerVideo){_.Bj(this.hostElement).querySelector("#header-overlay").style.visibility="hidden";this.pauseOtherPlayers();var J;((J=this.playerElement.player_)==null?void 0:J.getPlayerState())===1?this.playerElement.pause():this.playerElement.play();(J=_.Y3(4))&&this.offerVideoVe&&_.AS(J,this.offerVideoVe)}};
_.V.getBackgroundImageLayerClass=function(J){return J?"background-image-layer-with-video":""};
_.V.getHeaderClass=function(J){return J?"header-with-video":""};
_.V.getHeaderOverlayClass=function(J){return J?"header-overlay-with-video":""};
_.V.getTitleContainerClass=function(J,c){return J?"title-container-with-video":c?"title-container-without-video-flexible":"title-container-without-video"};
_.V.tierTitleDisplayStatus=function(J){return this.moreThanOne(J)?"hide":"show"};
_.V.pauseOtherPlayers=function(){this.isMiniplayerActive()?this.backgroundPlayerElement=_.BG().resolve(_.Uo).getPlayerElement():this.backgroundPlayerElement=_.ep();if(this.backgroundPlayerElement&&this.backgroundPlayerElement.player_){var J=this.backgroundPlayerElement.player_.getPlayerState();this.isBackgroundPlayerAlreadyPlaying=J===1||J===3;this.backgroundPlayerElement.pause()}};
_.V.isMiniplayerActive=function(){return _.BG().resolve(_.Uo).isMiniplayerActive()};
_.V.selectedTierChangedForBinding=function(){this.hostElement.dispatchEvent(new _.SJ("selected-tier-changed",this.selectedTier))};
uz.prototype.selectedTierChangedForBinding=uz.prototype.selectedTierChangedForBinding;uz.prototype.onDataChanged=uz.prototype.onDataChanged;uz.prototype.onYtPopupClosed=uz.prototype.onYtPopupClosed;uz.prototype.onYtPopupOpened=uz.prototype.onYtPopupOpened;uz.prototype.onYtServiceRequestError=uz.prototype.onYtServiceRequestError;uz.prototype.onYtServiceRequestCompleted=uz.prototype.onYtServiceRequestCompleted;
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],uz.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],uz.prototype,"ytComponentBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],uz.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],uz.prototype,"data",void 0);_.O([_.U({value:0}),_.R("design:type",Number)],uz.prototype,"selectedTier",void 0);
_.O([_.U({value:""}),_.R("design:type",String)],uz.prototype,"offerVideo",void 0);_.O([_.U({value:!1}),_.R("design:type",Boolean)],uz.prototype,"isBackgroundPlayerAlreadyPlaying",void 0);_.O([_.U({value:function(){return"ytd-sponsorships-offer-with-video-renderer-"+_.mj(this)}}),
_.R("design:type",String)],uz.prototype,"playerId",void 0);_.O([_.Iu("tp-yt-paper-dialog-scrollable"),_.R("design:type",Object)],uz.prototype,"scrollable",void 0);_.O([_.Iu("ytd-sponsorships-tier-renderer"),_.R("design:type",Object)],uz.prototype,"tierRenderer",void 0);_.O([_.Iu("#player"),_.R("design:type",Object)],uz.prototype,"playerElement",void 0);
_.O([_.ps("yt-service-request-completed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],uz.prototype,"onYtServiceRequestCompleted",null);_.O([_.ps("yt-service-request-error"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],uz.prototype,"onYtServiceRequestError",null);
_.O([_.ps("yt-popup-opened"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],uz.prototype,"onYtPopupOpened",null);_.O([_.ps("yt-popup-closed"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],uz.prototype,"onYtPopupClosed",null);_.O([_.kr("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],uz.prototype,"onDataChanged",null);
_.O([_.NE("selectedTier"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],uz.prototype,"selectedTierChangedForBinding",null);uz=_.O([_.E({disableElementRegistration:!0,is:"ytd-sponsorships-offer-renderer"})],uz);
_.v(uz,"ytd-sponsorships-offer-renderer",function(){if(V7S!==void 0)return V7S;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return V7S=J},{mode:_.mP("kevlar_poly_si_batch_j077")?1:2});var PFs;var f8=function(){var J=_.h.apply(this,arguments)||this;J.buttonOverrides={type:"filled",style:"mono"};return J};
_.D(f8,_.h);f8.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}}}}}};
f8.prototype.backgroundColorChanged=function(){var J,c,m,b=(c=_.L((J=this.data)==null?void 0:J.content,FQ4))==null?void 0:(m=c.backgroundColor)==null?void 0:m.backgroundColor;b&&(J=_.XB(b),_.Bj(this.hostElement).querySelector("#banner").style.backgroundColor=J,_.Bj(this.hostElement).querySelector("#abstract-art").style.backgroundColor=J)};
f8.prototype.attached=function(){this.JSC$18390_scroller&&(this.JSC$18390_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18390_scroller.attached&&typeof this.JSC$18390_scroller.attached==="function"&&this.JSC$18390_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
f8.prototype.backgroundColorChanged=f8.prototype.backgroundColorChanged;_.O([_.U(),_.R("design:type",Object)],f8.prototype,"data",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],f8.prototype,"ytRendererstamperBehavior",void 0);_.O([_.Iu("#scroller"),_.R("design:type",Object)],f8.prototype,"JSC$18390_scroller",void 0);_.O([_.U(),_.R("design:type",Object)],f8.prototype,"buttonOverrides",void 0);
_.O([_.NE("data.content.sponsorshipsPromotionChannelRenderer.backgroundColor"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],f8.prototype,"backgroundColorChanged",null);f8=_.O([_.E({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-celebration-renderer"})],f8);
_.v(f8,"ytd-sponsorships-promotion-celebration-renderer",function(){if(PFs!==void 0)return PFs;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return PFs=J},{mode:_.mP("kevlar_poly_si_batch_j077")?1:2});var M7r;var pWo;var Y5=function(){return _.h.apply(this,arguments)||this};
_.D(Y5,_.h);Y5.prototype.getValue=function(){return this.checkbox.checked?this.data.params:void 0};
Y5.prototype.computeIsInitiallyChecked=function(J){return J===1};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Y5.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Y5.prototype,"data",void 0);_.O([_.Iu("#checkbox"),_.R("design:type",Object)],Y5.prototype,"checkbox",void 0);Y5=_.O([_.E({disableElementRegistration:!0,is:"ytd-subscription-toggle-option-renderer"})],Y5);
_.v(Y5,"ytd-subscription-toggle-option-renderer",function(){if(pWo!==void 0)return pWo;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return pWo=J},{mode:1});var XN=function(){var J=_.h.apply(this,arguments)||this;J.darkerDarkTheme=_.w("web_darker_dark_theme");J.actionMap={"yt-signal-action-submit-notification-options-form":"handleSignalActionSubmitNotificationOptionsForm"};return J};
_.D(XN,_.h);XN.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"}}}};
XN.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
XN.prototype.handleSignalActionSubmitNotificationOptionsForm=function(){var J=_.Bj(this.hostElement).querySelector("#options").selected;J=this.data.options[J].subscriptionRadioOptionRenderer.serviceEndpoint;var c=_.Bj(this.hostElement).querySelector("ytd-subscription-toggle-option-renderer");c&&J&&J.modifyChannelNotificationPreferenceEndpoint&&(c=c.getValue())&&(J.modifyChannelNotificationPreferenceEndpoint.secondaryParams=[c]);_.BG().resolve(_.gu).resolveCommand(J,{form:{element:this.hostElement}});
_.m9(this.hostElement,"yt-close-popup-action")};
_.eE.Object.defineProperties(XN.prototype,{initialIndex:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.options)return null;for(var J=this.data.options,c=0;c<J.length;c++){var m=J[c].subscriptionRadioOptionRenderer;if(m&&m.selected)return c}return null}}});
_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],XN.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],XN.prototype,"ytActionHandlerBehavior",void 0);_.O([_.f(_.Ci.YtEventForwardingBehavior),_.R("design:type",Object)],XN.prototype,"eventForwardingBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],XN.prototype,"ytRendererBehavior",void 0);
_.O([_.U(),_.R("design:type",Object)],XN.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],XN.prototype,"darkerDarkTheme",void 0);_.O([_.q("data.options"),_.R("design:type",Object),_.R("design:paramtypes",[])],XN.prototype,"initialIndex",null);XN=_.O([_.E({disableElementRegistration:!0,is:"ytd-subscription-notification-options-renderer"})],XN);
_.v(XN,"ytd-subscription-notification-options-renderer",function(){if(M7r!==void 0)return M7r;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return M7r=J},{mode:1});var N14;var ZW=function(){return _.h.apply(this,arguments)||this};
_.D(ZW,_.h);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],ZW.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],ZW.prototype,"data",void 0);ZW=_.O([_.E({disableElementRegistration:!0,is:"ytd-tvfilm-offer-groups-renderer"})],ZW);
_.v(ZW,"ytd-tvfilm-offer-groups-renderer",function(){if(N14!==void 0)return N14;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return N14=J},{mode:1});var t7S;var qQ=function(){var J=_.h.apply(this,arguments)||this;J.darkerDarkTheme=_.w("web_darker_dark_theme");return J};
_.D(qQ,_.h);_.V=qQ.prototype;_.V.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"}}}};
_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("aria-label")||this.hostElement.setAttribute("aria-label","Offers")};
_.V.computeThumbnailClass=function(J){return J.thumbnailOverlays?J.isShow?"thumbnail-show":"thumbnail-movie":J.isShow?"thumbnail-no-overlay-show":"thumbnail-no-overlay-movie"};
_.V.computeCommerceSectionClass=function(J){return J.offers&&J.offers.tvfilmOffersRenderer?"commerce-section-groups":"commerce-section-tabs"};
_.V.computeTitleClass=function(J){return J.offers&&J.offers.tvfilmOffersRenderer?"title-with-offer-groups":""};
_.V.onDataChanged=function(){[].concat(_.L6(this.hostElement.querySelectorAll("yt-img-shadow"))).forEach(function(J){J.onShow()})};
qQ.prototype.onDataChanged=qQ.prototype.onDataChanged;_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],qQ.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],qQ.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],qQ.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],qQ.prototype,"darkerDarkTheme",void 0);
_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],qQ.prototype,"onDataChanged",null);qQ=_.O([_.E({disableElementRegistration:!0,is:"ytd-ypc-offers-overlay-renderer"})],qQ);
_.v(qQ,"ytd-ypc-offers-overlay-renderer",function(){if(t7S!==void 0)return t7S;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return t7S=J},{mode:_.mP("kevlar_poly_si_batch_j028")?1:2});var INS;var Kt1=function(){this.usedMethods=new Set};
Kt1.prototype.add=function(J){this.usedMethods.add(J)};
Kt1.prototype.reset=function(){this.usedMethods.clear()};var kMo=function(J,c){this.query=J;this.previousSearchQuery=c;this.id=CFu++;if(!aNu){c=_.Ub("SBOX_SETTINGS");J="https://"+((c==null?void 0:c.SEARCHBOX_HOST_OVERRIDE)||"suggestqueries-clients6.youtube.com")+"/complete/search?ds=yt";var m=c==null?void 0:c.REQUEST_LANGUAGE;m&&(J+="&hl="+m);(m=c==null?void 0:c.REQUEST_DOMAIN)&&(J+="&gl="+m);J+="&client=youtube&gs_ri=youtube";(m=c==null?void 0:c.SUGG_EXP_ID)&&(J+="&sugexp="+encodeURIComponent(m));(m=c==null?void 0:c.PSUGGEST_TOKEN)&&(J+="&tok="+m);(c=
c==null?void 0:c.SESSION_INDEX)&&(J+="&authuser="+c);_.w("desktop_enable_visual_suggest")&&(J+="&h=180&w=320&ytvs=1");aNu=J}},Hi5=function(J){var c="q="+encodeURIComponent(J.query);
J.previousSearchQuery&&(c+="&pq="+encodeURIComponent(J.previousSearchQuery));return c},ii1=function(){var J=_.Ub("SBOX_SETTINGS"),c={};
if(J==null?0:J.SEND_VISITOR_DATA)c["X-Goog-Visitor-Id"]=J==null?void 0:J.VISITOR_DATA;return c},nJf=function(J){var c=aNu;
c+="&gs_id="+J.id.toString(36);c+="&q="+encodeURIComponent(J.query);c+="&cp="+J.query.length;J.previousSearchQuery&&(c+="&pq="+encodeURIComponent(J.previousSearchQuery));(J=window.URLSearchParams?(new URLSearchParams(window.location.search)).get("v"):null)&&(c+="&video_id="+J);return c},CFu=0,aNu="";var T1u=_.vC.SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST,wWR=_.vC.SEARCH_ENTITY_SUGGESTION_MOVIE,r21=_.vC.SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST,sCs=_.vC.SEARCH_ENTITY_SUGGESTION_TV_SHOW,Lt5=function(J,c){this.text=J;this.bold=c},D95=function(J,c,m){this.input=c;
this.index=m;this.text="";this.suggestionSources={COMPLETE_SERVER:1};this.text=J[0];this.type=J[1];this.subtypes=J[2];var b;this.displayText=lb((b=J[3])==null?void 0:b.b);var x;this.ignoredPrefix=lb((x=J[3])==null?void 0:x.a);var P,p;this.hasNewVideo=((P=J[3])==null?void 0:(p=P.zam)==null?void 0:p.toString())==="true"?!0:!1;var t;this.visualSuggestUrl=(t=J[3])==null?void 0:t.zai;var I;this.entityType=lb((I=J[3])==null?void 0:I.zap);var a;this.entityName=lb((a=J[3])==null?void 0:a.zao);var k;c=lb((k=
J[3])==null?void 0:k.zaf);var H;this.entityMid=(H=J[3])==null?void 0:H.zae;k=TMF(this.subtypes,this.entityMid);if(c&&k){if(c){H="";switch(k){case "YOUTUBE_ENTITY_TYPE_SONG":H=r21;break;case "YOUTUBE_ENTITY_TYPE_ALBUM":H=T1u;break;case "YOUTUBE_ENTITY_TYPE_TV_SHOW":H=sCs;break;case "YOUTUBE_ENTITY_TYPE_MOVIE":H=wWR}k=k==="YOUTUBE_ENTITY_TYPE_SONG"||k==="YOUTUBE_ENTITY_TYPE_ALBUM"?H+" \u2022  \u2022 "+c:c}else k="";this.entitySubtitle=k}var T;this.externalChannelId=(T=J[3])==null?void 0:T.zav;var r;
this.entityThumbnailAttributionUrl=(r=J[3])==null?void 0:r.zaq},zWe=function(J,c){var m=[],b,x=(b=J.displayText)!=null?b:J.text;
(c==null?0:c.useEntityName)&&WtR(J)&&J.entityName&&(x=J.entityName);if(J.type===33)return m.push(new Lt5(x,!1)),m;if(x.length>=J.input.length&&x.substring(0,J.input.length)===J.input)m.push(new Lt5(J.input,!1)),m.push(new Lt5(x.substring(J.input.length),!0));else{var P=new Set(J.input.split(/\s/)),p=x.split(/\s/);m=p.map(function(t,I){return new Lt5(t.trim()+(I===p.length-1?"":" "),!P.has(t))})}return m},WtR=function(J){var c=!!TMF(J.subtypes);
J=!!J.entityMid;return c||J};var uou=function(J){this.rawResponse=["",[],{}];this.suggestions=[];try{var c=JSON.parse(wAR(J));if(typeof c==="object"&&c!==null)this.rawResponse=c;else{console.log("Suggest: Unexpected type from JSON.parse!");return}}catch(b){console.log("Suggest: Failed to parse SuggestResponse!");return}var m=this.rawResponse[0];this.suggestions=this.rawResponse[1].map(function(b,x){return new D95(b,m,x)})};var fNp=function(){this.sessionNumber=this.startTime=-1;this.outOfSyncResponseCount=0;this.zeroPrefixSuggestionCount=-1;this.availableSuggestions=[];this.previousSuggestions={};this.selectedSuggestionIndex=-1;this.inputMethodsTracker=new Kt1;this.zeroPrefixRoundTripTime=this.maxRoundTripTime=this.JSC$18427_totalRoundTripTime=0;this.roundTripTimeHistogram=Array.from({length:10}).fill(0);this.lastEditTime=this.firstEditTime=this.lastQueryBuildTime=-1;this.experimentTriggeredBeforeFinal=this.experimentTriggeredFinal=
!1},Y8p,XWR=function(){Y8p||(Y8p=new fNp);
return Y8p};
fNp.prototype.updateSuggestions=function(J){var c=this;this.availableSuggestions.forEach(function(m){c.previousSuggestions[m]=!0});
this.availableSuggestions=J.map(function(m){var b=m.type.toString();m.subtypes.length>0&&(b+="i"+m.subtypes.join("i"),b+="k"+m.suggestionSources.COMPLETE_SERVER.toString());return b})};
var Zi1=function(J,c){var m=Date.now();J.firstEditTime<0&&(J.firstEditTime=m);c&&(J.lastQueryBuildTime=m);J.lastEditTime=m};
fNp.prototype.reset=function(){this.startTime=Date.now();++this.sessionNumber;this.inputMethodsTracker.reset();this.selectedSuggestionIndex=-1;this.maxRoundTripTime=this.JSC$18427_totalRoundTripTime=this.outOfSyncResponseCount=0;this.roundTripTimeHistogram.fill(0);this.zeroPrefixSuggestionCount=this.lastQueryBuildTime=this.lastEditTime=this.firstEditTime=-1};
var q8F=function(J){var c="";J.availableSuggestions.forEach(function(x){delete J.previousSuggestions[x]});
for(var m=_.M(Object.keys(J.previousSuggestions)),b=m.next();!b.done;b=m.next())b=b.value,J.previousSuggestions[b]&&(c+=(c?"j":"")+b);return c},U9S=function(J,c){var m=[];
c&&(m[1]=c.toString());m[0]="youtube";m[7]=Date.now()-J.startTime;m[6]=J.sessionNumber;J.zeroPrefixSuggestionCount>=0&&(m[33]=J.zeroPrefixSuggestionCount);m[13]=J.outOfSyncResponseCount;if(J.availableSuggestions.length>0){for(var b=c="",x=0,P=_.M(J.availableSuggestions),p=P.next();!p.done;p=P.next())p=p.value,p!==b&&(x>1&&(c+="l"+x),c+=(b?"j":"")+p,x=0,b=p),x+=1;x>1&&(c+="l"+x);m[3]=c}m[35]=q8F(J);J.selectedSuggestionIndex>=0&&(m[2]=J.selectedSuggestionIndex);var t;if(c=(t=_.Ub("SBOX_SETTINGS"))==
null?void 0:t.SUGG_EXP_ID)m[19]=J.normalize(c),t=0,J.experimentTriggeredBeforeFinal&&(t|=1),J.experimentTriggeredFinal&&(t|=2),m[20]=t;m[26]=Array.from(J.inputMethodsTracker.usedMethods).join("j");if(J.JSC$18427_totalRoundTripTime>0){m[15]=J.JSC$18427_totalRoundTripTime;m[14]=J.maxRoundTripTime;t=[];for(x=c=0;x<10;x++)b=J.roundTripTimeHistogram[x],b===0?c++:(c>1?t.push(x+"-"+b):c===1?t.push("0j"+b):t.push(b.toString()),c=0);t=t.join("j");m[16]=t}J.zeroPrefixRoundTripTime>0&&(m[36]=J.zeroPrefixRoundTripTime);
J.lastQueryBuildTime>0&&(m[18]=J.lastQueryBuildTime-J.startTime);J.firstEditTime>0&&(m[4]=J.firstEditTime-J.startTime);J.lastEditTime>0&&(m[5]=J.lastEditTime-J.startTime);return m.join(".")};
fNp.prototype.normalize=function(J){return J.replaceAll(".","-")};
var S8R=[0,1,2,3,4,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8];var Ug=function(){var J=_.h.apply(this,arguments)||this;J.microphoneSpinnerActive=!1;J.noAnimations=!1;J.boundExitClick=function(){J.onExitButtonClick()};
J.speechOverlayClassName="";J.isLevelAnimating=!1;J.playCloseDialogAudioFeedback=!0;J.actionMap={"yt-speech-query-complete-action":"handleSpeechQueryCompleteAction"};return J};
_.D(Ug,_.h);_.V=Ug.prototype;_.V.configureRendererStamper=function(){return{"data.exitButton":{id:"exit-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundExitClick]]"}}}}}};
_.V.attached=function(){this.hostElement.setAttribute("dialog","true");this.manager=TFR()};
_.V.dataChanged=function(){this.logDialog()};
_.V.onPopupClosed=function(){if(this.manager){this.manager.reset();if(!this.playCloseDialogAudioFeedback){var J;(J=this.manager.audioPlayer)!=null&&(J.JSC$17716_audioEnabled=!1)}this.manager.stop();(J=this.manager.audioPlayer)!=null&&(J.JSC$17716_audioEnabled=!0);this.playCloseDialogAudioFeedback=!0}};
_.V.handleSpeechQueryCompleteAction=function(J){var c=J.navigationAction;c&&(J.trackingParams&&_.C7().graftServerVe(J.trackingParams,this.dialogVe,5),_.cA(this.hostElement,"yt-navigate",{endpoint:c,tempData:this.getNavigationParams(c),createScreenConfig:{parentLayer:5}}),this.playCloseDialogAudioFeedback=!1,this.closeDialog())};
_.V.onExitButtonClick=function(){this.closeDialog()};
_.V.onMicrophoneTap=function(){if(this.state==="listening"||this.state==="transcribing"){var J;if((J=this.manager)!=null){var c;(c=J.audioPlayer)==null||SV(c,"failure");J.setState("microphone-off");J.stop()}}else(J=this.manager)==null||J.start()};
_.V.transcriptionChanged=function(){var J,c;(((J=this.transcription)==null?0:J.low)||((c=this.transcription)==null?0:c.high))&&this.setState("transcribing",this.transcription)};
_.V.stateChanged=function(){this.setState(this.state,this.transcription)};
_.V.logDialog=function(){var J;(J=this.data)!=null&&J.trackingParams&&(J=_.C7(),_.ge(J,22678,void 0,{layer:5,parentLayer:0}),this.dialogVe=J.graftServerVe(this.data.trackingParams,void 0,5))};
_.V.getNavigationParams=function(J){var c={};if(_.w("web_yt_searchbox")){var m=XWR();m.inputMethodsTracker.add(6);m=U9S(m,15);c.gs_l=m;var b;c.oq=((b=_.L(J,_.Kv))==null?void 0:b.query)||""}else if(J=window.ytvoicesearchloggingparams){if(J=J())c.oq=J.oq,c.gs_l=J.gs_l}else _.Ge(Error("kl"));return c};
_.V.closeDialog=function(){_.m9(this.hostElement,"yt-close-popup-action",["ytd-voice-search-dialog-renderer"])};
_.V.setState=function(J,c){if(this.data){var m=this.data,b={};switch(J){case "listening":b={headerText:m.placeholderHeader,microphoneState:"listening",microphoneAriaLabel:m.microphoneButtonAriaLabel};break;case "timeout":b={headerText:m.promptHeader,microphoneState:"try-again",microphoneLabel:m.promptMicrophoneLabel,microphoneAriaLabel:m.promptMicrophoneLabel};break;case "microphone-off":b={headerText:m.microphoneOffPromptHeader,microphoneState:"try-again",microphoneLabel:m.promptMicrophoneLabel,
microphoneAriaLabel:m.promptMicrophoneLabel};break;case "transcribing":(c==null?0:c.low)||(c==null?0:c.high)?b={transcriptionLow:c==null?void 0:c.low,transcriptionHigh:c==null?void 0:c.high,microphoneState:"speaking",microphoneAriaLabel:m.microphoneButtonAriaLabel}:b={headerText:m.placeholderHeader,microphoneState:"speaking",microphoneAriaLabel:m.microphoneButtonAriaLabel};break;case "processing":b={headerText:m.loadingHeader,microphoneState:"processing",microphoneAriaLabel:m.microphoneButtonAriaLabel};
break;case "offline":b={headerText:m.connectionErrorHeader,microphoneState:"try-again",microphoneLabel:m.connectionErrorMicrophoneLabel,microphoneAriaLabel:m.connectionErrorMicrophoneLabel};break;case "permission":b={headerText:m.permissionsHeader,bodyLine1:m.permissionsSubtext,microphoneState:"try-again",microphoneAriaLabel:m.permissionsSubtext};break;case "permission-denied":b={headerText:m.disabledHeader,bodyLine1:m.disabledSubtext,microphoneState:"try-again",microphoneAriaLabel:m.disabledSubtext}}b.className=
J;this.speechOverlayState=b;this.setClass(this.speechOverlayState.className);this.setMicrophoneState(this.speechOverlayState.microphoneState)}};
_.V.setMicrophoneState=function(J){var c=this.isLevelAnimating;this.isLevelAnimating=J==="speaking";!c&&this.isLevelAnimating&&this.runLevelAnimation();this.microphoneSpinnerActive=J==="processing"&&!this.noAnimations};
_.V.setClass=function(J){this.speechOverlayClassName&&_.mq(this.hostElement,this.speechOverlayClassName,!1);J&&(this.speechOverlayClassName=J,_.mq(this.hostElement,J,!0))};
_.V.runLevelAnimation=function(){var J=this;if(!this.noAnimations&&this.level)if(this.isLevelAnimating){var c=1+Math.random()*.75,m=Math.round(110+Math.random()*10);this.level.style.setProperty("transition","transform "+m/1E3+"s ease-in-out");this.level.style.setProperty("transform","scale("+c+")");_.ft.addJob(function(){J.runLevelAnimation()},3,m)}else this.level.style.removeProperty("opacity"),this.level.style.removeProperty("transition"),this.level.style.removeProperty("transform")};
Ug.prototype.stateChanged=Ug.prototype.stateChanged;Ug.prototype.transcriptionChanged=Ug.prototype.transcriptionChanged;Ug.prototype.onPopupClosed=Ug.prototype.onPopupClosed;Ug.prototype.dataChanged=Ug.prototype.dataChanged;_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],Ug.prototype,"ytActionHandlerBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Ug.prototype,"ytRendererBehavior",void 0);
_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],Ug.prototype,"rendererStamperBehavior",void 0);_.O([_.f(_.fY),_.R("design:type",Object)],Ug.prototype,"ytdReduxBehavior",void 0);_.O([_.f(_.Ci.YtEventForwardingBehavior),_.R("design:type",Object)],Ug.prototype,"eventForwardingBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Ug.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],Ug.prototype,"speechOverlayState",void 0);
_.O([_.U(),_.R("design:type",Object)],Ug.prototype,"microphoneSpinnerActive",void 0);_.O([_.U({type:_.w("kevlar_property_type_migration_killswitch")?Boolean:void 0,reflectToAttribute:!0}),_.R("design:type",Object)],Ug.prototype,"noAnimations",void 0);_.O([_.U({selector:function(J){var c;return(c=J.voiceSearch)==null?void 0:c.transcription}}),
_.R("design:type",Object)],Ug.prototype,"transcription",void 0);_.O([_.U({selector:function(J){var c;return(c=J.voiceSearch)==null?void 0:c.overlay}}),
_.R("design:type",String)],Ug.prototype,"state",void 0);_.O([_.U(),_.R("design:type",Object)],Ug.prototype,"boundExitClick",void 0);_.O([_.Iu("#microphone-levels"),_.R("design:type",HTMLElement)],Ug.prototype,"level",void 0);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Ug.prototype,"dataChanged",null);_.O([_.ps("yt-popup-closed"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Ug.prototype,"onPopupClosed",null);
_.O([_.kr("transcription"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Ug.prototype,"transcriptionChanged",null);_.O([_.kr("state"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Ug.prototype,"stateChanged",null);Ug=_.O([_.E({disableElementRegistration:!0,is:"ytd-voice-search-dialog-renderer"})],Ug);
_.v(Ug,"ytd-voice-search-dialog-renderer",function(){if(INS!==void 0)return INS;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return INS=J},{mode:1});var hW4;var Sq=function(){var J=_.h.apply(this,arguments)||this;J.isOverlay=!1;J.hidden=!1;return J};
_.D(Sq,_.h);_.V=Sq.prototype;_.V.onPopupClosed=function(){this.toggleIconState(!1)};
_.V.computeIcon=function(){var J,c,m;return(c=_.L((J=this.data)==null?void 0:J.icon,JV5))==null?void 0:(m=c.icon)==null?void 0:m.iconType};
_.V.computeIconBadgeShape=function(){var J;return{iconBadgeType:"cart",iconBadgeText:(J=this.iconBadgeEntity)==null?void 0:J.badgeText,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.V.onClick=function(){var J;(J=this.data)!=null&&J.onClick&&(this.toggleIconState(!0),this.ytComponentBehavior.resolveCommand(this.data.onClick))};
_.V.computeHidden=function(J){return!J};
_.V.toggleIconState=function(J){this.iconButton&&(this.iconButton.pressed=J)};
Sq.prototype.onPopupClosed=Sq.prototype.onPopupClosed;_.O([_.f(_.fY),_.R("design:type",Object)],Sq.prototype,"ytdReduxBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Sq.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],Sq.prototype,"ytComponentBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Sq.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],Sq.prototype,"isOverlay",void 0);
_.O([_.U({computed:"computeHidden(iconBadgeEntity.isVisible)",reflectToAttribute:!0}),_.R("design:type",Object)],Sq.prototype,"hidden",void 0);_.O([_.U({selectorArgs:["data.iconBadgeEntityKey"],selector:function(J,c){return _.P2(J.entities,"iconBadgeEntity",c)}}),
_.R("design:type",Object)],Sq.prototype,"iconBadgeEntity",void 0);_.O([_.Iu("yt-icon-button"),_.R("design:type",HTMLButtonElement)],Sq.prototype,"iconButton",void 0);_.O([_.ps("yt-popup-closed"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Sq.prototype,"onPopupClosed",null);Sq=_.O([_.E({disableElementRegistration:!0,is:"ytd-icon-badge-topbar-button-renderer"})],Sq);
_.v(Sq,"ytd-icon-badge-topbar-button-renderer",function(){if(hW4!==void 0)return hW4;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return hW4=J},{mode:1});var d9r;var ho=function(){var J=_.h.apply(this,arguments)||this;J.premiumOptions=[];J.darkerDarkTheme=_.w("web_darker_dark_theme");return J};
_.D(ho,_.h);ho.prototype.configureRendererStamper=function(){return{premiumOptions:{id:"premium-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.eE.Object.defineProperties(ho.prototype,{hasPremiumOptions:{configurable:!0,enumerable:!0,get:function(){return!!this.premiumOptions}}});
_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],ho.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],ho.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Array)],ho.prototype,"premiumOptions",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],ho.prototype,"darkerDarkTheme",void 0);_.O([_.q("premiumOptions"),_.R("design:type",Object),_.R("design:paramtypes",[])],ho.prototype,"hasPremiumOptions",null);
ho=_.O([_.E({disableElementRegistration:!0,is:"ytd-offline-promo-content"})],ho);
_.v(ho,"ytd-offline-promo-content",function(){if(d9r!==void 0)return d9r;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return d9r=J},{mode:1});var $9R;var dX=function(){var J=_.h.apply(this,arguments)||this;J.premiumOptions=[];return J};
_.D(dX,_.h);dX.prototype.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var J;this.premiumOptions=n25((J=this.data)==null?void 0:J.formats)};
dX.prototype.onClickSubmit=function(){_.m9(this.hostElement,"yt-close-popup-action",["ytd-offline-promo-renderer"]);var J;(J=_.ep())==null||J.pause()};
dX.prototype.attached=function(){this.JSC$18447_scroller&&(this.JSC$18447_scroller.dialogElement=this.hostElement.parentNode)};
_.eE.Object.defineProperties(dX.prototype,{showIcon:{configurable:!0,enumerable:!0,get:function(){return this.headersIcon}}});
dX.prototype.dataChanged=dX.prototype.dataChanged;_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],dX.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],dX.prototype,"ytComponentBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],dX.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],dX.prototype,"data",void 0);
_.O([_.U({computed:"computeIcon_(data.headersIcon)",value:""}),_.R("design:type",String)],dX.prototype,"headersIcon",void 0);_.O([_.U(),_.R("design:type",Array)],dX.prototype,"premiumOptions",void 0);_.O([_.Iu("#scroller"),_.R("design:type",Object)],dX.prototype,"JSC$18447_scroller",void 0);_.O([_.q("headersIcon"),_.R("design:type",Object),_.R("design:paramtypes",[])],dX.prototype,"showIcon",null);
_.O([_.kr("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],dX.prototype,"dataChanged",null);dX=_.O([_.E({disableElementRegistration:!0,is:"ytd-offline-promo-renderer"})],dX);
_.v(dX,"ytd-offline-promo-renderer",function(){if($9R!==void 0)return $9R;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return $9R=J},{mode:1});var GMr;var $5=function(){var J=_.h.apply(this,arguments)||this;J.playbackPauseInterval=NaN;J.isLoading=!1;J.hasError=!1;J.dialogClass="";J.youtubeLabel=_.CX("LOGO_ALT_LABEL",{},"YouTube Home");J.logoName="yt-logos-ext:yt-logo-updated";J.actionMap={"yt-save-consent-action":"handleSaveConsent","yt-disable-personalization-action":"handleDisablePersonalization"};return J};
_.D($5,_.h);_.V=$5.prototype;_.V.onDataChange=function(){var J;if(this.showEOMV1Text=!((J=this.data)==null||!J.eomV1Text))this.dialogClass="eom-v1-dialog"};
_.V.attached=function(){this.pausePlayer()};
_.V.detached=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN)};
_.V.handleLangSelect=function(J){this.langSelect.style.display="none";this.ytComponentBehavior.resolveCommand(this.data.languageList.dropdownRenderer.entries[J.target.selectedIndex].dropdownItemRenderer.onSelectCommand)};
_.V.showLangPicker=function(){this.langSelect.style.display=this.langSelect.style.display&&this.langSelect.style.display!=="none"?"none":"block"};
_.V.handleSaveConsent=function(J){var c=this;this.showLoadingSpinner();this.showLoadingSpinner();jPF(_.L(J,cN4)).catch(function(m){_.qz(new _.w3("Something went wrong when save consent "+(m.message?m.message:m)+"."));c.hideLoadingSpinner();c.showErrorMessage()})};
_.V.handleDisablePersonalization=function(J){var c=this;this.showLoadingSpinner();Fv1(_.L(J,JN1)).then(function(){c.dialog.close();c.resumePlayer()}).catch(function(m){_.qz(new _.w3("Something went wrong when disable personalization "+(m.message?m.message:m)+"."));
c.hideLoadingSpinner();c.showErrorMessage()})};
_.V.showLoadingSpinner=function(){var J=this;this.showSpinnerJobId=_.ft.addLowPriorityJob(function(){J.isLoading=!0},500)};
_.V.hideLoadingSpinner=function(){this.isLoading=!1;this.showSpinnerJobId!==void 0&&(_.ft.cancelJob(this.showSpinnerJobId),this.showSpinnerJobId=void 0)};
_.V.showErrorMessage=function(){var J=this;this.hasError=!0;_.ft.addLowPriorityJob(function(){J.hasError=!1},2E3)};
_.V.pausePlayer=function(){this.playbackPauseInterval||(this.playbackPauseInterval=_.MU(function(){try{var J=_.ep();J&&J.pause()}catch(c){}},100))};
_.V.resumePlayer=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN);try{var J=_.ep();J&&J.play()}catch(c){}};
_.eE.Object.defineProperties($5.prototype,{eomEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var J;if((J=this.data)==null||!J.eomV1Text)return[];J=[];for(var c=["SHIELD","WARNING","BAR_CHART"],m=this.data.eomV1Text.essentialCookieMsg.items,b=0;b<c.length&&b<m.length;b++)J.push({icon:c[b],text:m[b]});return J}},
eomNonEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var J;if((J=this.data)==null||!J.eomV1Text)return[];J=[];for(var c=["TRENDING_UP","BAR_CHART","AUTO_AWESOME","PURCHASES"],m=this.data.eomV1Text.nonEssentialCookieMsg.items,b=0;b<c.length&&b<m.length;b++)J.push({icon:c[b],text:m[b]});return J}}});
$5.prototype.onDataChange=$5.prototype.onDataChange;_.O([_.U(),_.R("design:type",Object)],$5.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Boolean)],$5.prototype,"showEOMV1Text",void 0);_.O([_.U(),_.R("design:type",Object)],$5.prototype,"isLoading",void 0);_.O([_.U(),_.R("design:type",Object)],$5.prototype,"hasError",void 0);_.O([_.U(),_.R("design:type",Number)],$5.prototype,"showSpinnerJobId",void 0);_.O([_.U(),_.R("design:type",Object)],$5.prototype,"dialogClass",void 0);
_.O([_.Iu("#dialog"),_.R("design:type",Object)],$5.prototype,"dialog",void 0);_.O([_.Iu("#cb-header"),_.R("design:type",HTMLElement)],$5.prototype,"header",void 0);_.O([_.Iu("#lang-select"),_.R("design:type",HTMLElement)],$5.prototype,"langSelect",void 0);_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],$5.prototype,"ytActionHandlerBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],$5.prototype,"ytComponentBehavior",void 0);
_.O([_.U(),_.R("design:type",String)],$5.prototype,"youtubeLabel",void 0);_.O([_.U(),_.R("design:type",Object)],$5.prototype,"logoName",void 0);_.O([_.kr("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],$5.prototype,"onDataChange",null);_.O([_.q("data"),_.R("design:type",Array),_.R("design:paramtypes",[])],$5.prototype,"eomEssentialCookieMsgItems",null);
_.O([_.q("data"),_.R("design:type",Array),_.R("design:paramtypes",[])],$5.prototype,"eomNonEssentialCookieMsgItems",null);$5=_.O([_.E({disableElementRegistration:!0,is:"ytd-consent-bump-v2-lightbox"})],$5);
_.v($5,"ytd-consent-bump-v2-lightbox",function(){if(GMr!==void 0)return GMr;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return GMr=J},{mode:1});var EJo;var Gw=function(){return _.h.apply(this,arguments)||this};
_.D(Gw,_.h);Gw.prototype.ready=function(){if(!_.H7()||Cv1)var J=!0;else Cv1=!0,J=!1;J||(J=document.querySelector("ytd-app"),J||(J=document.body),this.internalLightBox=_.Bj(J).appendChild(this.lightBox),this.internalLightBox.dialog.open())};
_.O([_.U(),_.R("design:type",Object)],Gw.prototype,"data",void 0);_.O([_.Iu("#lightbox"),_.R("design:type",Object)],Gw.prototype,"lightBox",void 0);Gw=_.O([_.E({disableElementRegistration:!0,is:"ytd-consent-bump-v2-renderer"})],Gw);
_.v(Gw,"ytd-consent-bump-v2-renderer",function(){if(EJo!==void 0)return EJo;var J=document.createElement("template");_.z(J,'\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>');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return EJo=J},{mode:1});var vJF;var Oi1;var A2R;var gX=function(){var J=_.h.apply(this,arguments)||this;J.ephemeralActionsEnabled=_.w("web_ephemeral_actions");return J};
_.D(gX,_.h);_.V=gX.prototype;_.V.toastOpenedChanged=function(){this.toastManager&&this.hasOpened&&this.toast&&!this.toast.opened&&this.toastType!==1&&X9h(this.toastManager,this.toastType)};
_.V.open=function(J){this.toast&&(this.ephemeralAction&&_.BG().resolve(_.Pn).enqueue(this.ephemeralAction),this.hasOpened=!0,this.toastManager?(this.toastType=J!=null?J:0,this.toastManager.enqueue(this.toast,J)):this.toast.open())};
_.V.close=function(J){var c;(c=this.toast)==null||c.close();this.toastManager&&J===1&&X9h(this.toastManager,J)};
_.V.refit=function(){var J;(J=this.toast)==null||J.refit()};
_.V.tapClose=function(){if(!this.useCloseButton||this.closeToastOnActionButtonClick){var J;(J=this.toast)==null||J.close()}};
_.V.setVerticalOffset=function(J){this.toast&&(this.toast.verticalOffset=J,this.toast.fit())};
_.V.computeButtonClass_=function(J){return J?"toast-button":""};
_.V.computeText_=function(J){return _.OG(J)};
_.V.toastOpenedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.SJ("toast-opened-changed",this.toastOpened))};
_.V.updateToastOpenedFromBinding=function(J){this.toastOpened=J.detail.value};
_.eE.Object.defineProperties(gX.prototype,{command:{configurable:!0,enumerable:!0,get:function(){var J,c,m=(J=this.data)==null?void 0:(c=J.actionButton)==null?void 0:c.buttonRenderer;return(m==null?void 0:m.command)||(m==null?void 0:m.serviceEndpoint)||(m==null?void 0:m.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 J=[],c;((c=this.data)==null?0:c.responseText)&&J.push(_.OG(this.data.responseText));var m;((m=this.data)==null?0:m.subText)&&J.push(_.OG(this.data.subText));var b,x;if((b=this.data)==null?0:(x=b.actionButton)==null?0:x.buttonRenderer){var P,p;J.push(((P=this.data.actionButton.buttonRenderer.accessibilityData)==null?void 0:(p=P.accessibilityData)==null?void 0:p.label)||_.OG(this.data.actionButton.buttonRenderer.text))}return J.filter(function(t){return t}).join(". ")}},
opened:{configurable:!0,enumerable:!0,get:function(){var J,c;return(c=(J=this.toast)==null?void 0:J.opened)!=null?c:!1}}});
gX.prototype.toastOpenedChangedForBinding=gX.prototype.toastOpenedChangedForBinding;gX.prototype.toastOpenedChanged=gX.prototype.toastOpenedChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],gX.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.Ci.YtEventForwardingBehavior),_.R("design:type",Object)],gX.prototype,"ytEventForwardingBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],gX.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],gX.prototype,"duration",void 0);
_.O([_.U(),_.R("design:type",Number)],gX.prototype,"toastType",void 0);_.O([_.U({value:!1}),_.R("design:type",Boolean)],gX.prototype,"useCloseButton",void 0);_.O([_.U({value:!1}),_.R("design:type",Boolean)],gX.prototype,"closeToastOnActionButtonClick",void 0);_.O([_.U({value:function(){return _.CX("SBOX_INAPPROPRIATE_CANCEL")}}),
_.R("design:type",String)],gX.prototype,"closeButtonAriaLabel",void 0);_.O([_.U(),_.R("design:type",Boolean)],gX.prototype,"toastOpened",void 0);_.O([_.U(),_.R("design:type",Boolean)],gX.prototype,"hasOpened",void 0);_.O([_.U(),_.R("design:type",Object)],gX.prototype,"ephemeralActionsEnabled",void 0);_.O([_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],gX.prototype,"command",null);
_.O([_.q("ephemeralActionsEnabled","labelText","command","duration"),_.R("design:type",Object),_.R("design:paramtypes",[])],gX.prototype,"ephemeralAction",null);_.O([_.q("ephemeralAction"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],gX.prototype,"hasEphemeralAction",null);_.O([_.Iu("#toast"),_.R("design:type",Object)],gX.prototype,"toast",void 0);_.O([_.U({value:function(){return{style:"call-to-action-inverse"}}}),
_.R("design:type",Object)],gX.prototype,"buttonOverrides",void 0);_.O([_.U({value:{style:"mono-inverse"}}),_.R("design:type",Object)],gX.prototype,"closeButtonOverrides",void 0);_.O([_.U({value:function(){return _.BG().resolve(_.y6(_.YtL))}}),
_.R("design:type",Object)],gX.prototype,"toastManager",void 0);_.O([_.q("data.responseText","data.subText","data.actionButton"),_.R("design:type",Object),_.R("design:paramtypes",[])],gX.prototype,"labelText",null);_.O([_.NE("toastOpened"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],gX.prototype,"toastOpenedChanged",null);
_.O([_.NE("toastOpened"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],gX.prototype,"toastOpenedChangedForBinding",null);gX=_.O([_.uM({is:"yt-notification-action-renderer",disableElementRegistration:!0})],gX);
_.v(gX,"yt-notification-action-renderer",function(){if(A2R===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;Oi1===void 0&&(Oi1=document.createElement("template"));var b=Oi1;m.call(c,b.content.cloneNode(!0),J.content.firstChild);A2R=J}J=A2R;return J},{mode:2});var Ju=function(){var J=_.h.apply(this,arguments)||this;J.duration=4E3;J.downloadingCount=0;J.downloadedCount=0;J.downloadingOnlySmartDownloads=!1;J.sessionTotalDownloads=0;J.sessionDownloaded=0;J.previousSessionsDownloaded=0;J.totalDownloadPercentage=0;J.currentDownloadProgress=0;J.currentDownloadPercentage=0;J.isLeaderTab=!0;J.isFullScreen=!1;J.actionMap={"yt-fullscreen-change-action":"handleFullscreenChange"};J.boundBeforeUnload=function(c){J.isLeaderTab&&J.downloadingCount>0&&(c.preventDefault(),
c.returnValue=!0)};
return J};
_.D(Ju,_.h);_.V=Ju.prototype;
_.V.open=function(){this.updateDownloadState();if(this.data){var J=this.sessionDownloaded+1,c=this.sessionTotalDownloads>1?_.CX("VIDEOS_DOWNLOADING_RATIO",{downloaded:J.toString(),total:this.sessionTotalDownloads.toString()},"Downloading... "+J+"/"+this.sessionTotalDownloads):_.CX("DOWNLOADING",void 0,"Downloading")+"...";this.downloadingOnlySmartDownloads&&(c=this.sessionTotalDownloads>1?_.CX("SMART_DOWNLOADS_UPDATING_RATIO",{downloaded:J.toString(),total:this.sessionTotalDownloads.toString()},"Updating Smart downloads... "+
J+"/"+this.sessionTotalDownloads):_.CX("SMART_DOWNLOADS_UPDATING",void 0,"`Updating Smart downloads..."));J=this.isLeaderTab?_.CX("KEEP_OPEN",{},"Keep window open to continue"):"";if(_.OG(this.data.responseText)!==c||_.OG(this.data.subText)!==J)this.set("data.responseText",_.v2(c)),this.set("data.subText",_.v2(J)),this.notificationActionRenderer.refit()}this.notificationActionRenderer.open(1);window.addEventListener("beforeunload",this.boundBeforeUnload)};
_.V.close=function(){this.previousSessionsDownloaded=this.sessionDownloaded=this.sessionTotalDownloads=0;this.notificationActionRenderer.hasOpened&&this.notificationActionRenderer.close(1);window.removeEventListener("beforeunload",this.boundBeforeUnload)};
_.V.updatePopup=function(){!this.data||this.isFullScreen||this.downloadingCount===0?this.close():this.open()};
_.V.updateCurrentDownloadProgress=function(){this.currentDownloadPercentage=Math.floor(this.currentDownloadProgress*100)};
_.V.updateDownloadState=function(){this.previousSessionsDownloaded===0&&(this.previousSessionsDownloaded=this.downloadedCount);var J=this.downloadedCount-this.previousSessionsDownloaded;J<this.sessionDownloaded&&(this.previousSessionsDownloaded-=this.sessionDownloaded-J);this.sessionDownloaded=this.downloadedCount-this.previousSessionsDownloaded;this.sessionTotalDownloads=this.downloadingCount+this.sessionDownloaded};
_.V.handleFullscreenChange=function(J){(this.isFullScreen=J)||this.updatePopup()};
Ju.prototype.updateCurrentDownloadProgress=Ju.prototype.updateCurrentDownloadProgress;Ju.prototype.updatePopup=Ju.prototype.updatePopup;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Ju.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.fY),_.R("design:type",Object)],Ju.prototype,"ytdReduxBehavior",void 0);_.O([_.f(_.Ci.YtEventForwardingBehavior),_.R("design:type",Object)],Ju.prototype,"ytEventForwardingBehavior",void 0);
_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],Ju.prototype,"actionHandlerBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Ju.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],Ju.prototype,"duration",void 0);_.O([_.U({selector:function(J){return _.wYr(J.entities).length}}),
_.R("design:type",Object)],Ju.prototype,"downloadingCount",void 0);_.O([_.U({selector:xUR}),_.R("design:type",Object)],Ju.prototype,"downloadedCount",void 0);_.O([_.U({selector:function(J){var c=_.wYr(J.entities);return bgR(J.entities,c)}}),
_.R("design:type",Object)],Ju.prototype,"downloadingOnlySmartDownloads",void 0);_.O([_.U(),_.R("design:type",Object)],Ju.prototype,"sessionTotalDownloads",void 0);_.O([_.U(),_.R("design:type",Object)],Ju.prototype,"sessionDownloaded",void 0);_.O([_.U(),_.R("design:type",Object)],Ju.prototype,"previousSessionsDownloaded",void 0);_.O([_.U(),_.R("design:type",Object)],Ju.prototype,"totalDownloadPercentage",void 0);
_.O([_.U({selector:function(J){var c;J=(c=_.wYr(J.entities))!=null?c:[];return J.length>0?_.NIJ(J.slice(-1)):0}}),
_.R("design:type",Object)],Ju.prototype,"currentDownloadProgress",void 0);_.O([_.U(),_.R("design:type",Object)],Ju.prototype,"currentDownloadPercentage",void 0);_.O([_.U({selector:_.DZR}),_.R("design:type",Object)],Ju.prototype,"isLeaderTab",void 0);_.O([_.Iu("yt-notification-action-renderer"),_.R("design:type",Object)],Ju.prototype,"notificationActionRenderer",void 0);
_.O([_.kr("downloadingCount","downloadedCount","downloadingOnlySmartDownloads","isLeaderTab"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Ju.prototype,"updatePopup",null);_.O([_.kr("currentDownloadProgress"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],Ju.prototype,"updateCurrentDownloadProgress",null);Ju=_.O([_.E({disableElementRegistration:!0,is:"ytd-video-download-toast-renderer"})],Ju);
_.v(Ju,"ytd-video-download-toast-renderer",function(){if(vJF!==void 0)return vJF;var J=document.createElement("template");_.z(J,'\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>');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return vJF=J},{mode:1});var RWR;var oJh;var ch=function(){return _.h.apply(this,arguments)||this};
_.D(ch,_.h);ch.prototype.computeIsRedLogo=function(J,c){!J&&c&&(J=c);return J==="YOUTUBE_RED_LOGO"||J==="YOUTUBE_PREMIUM_LOGO"};
ch.prototype.computeLogoName=function(J){J=this.componentBehavior.computeIcon_(J);return J===""?"yt-logos-ext:yt-logo-updated":J};
_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],ch.prototype,"componentBehavior",void 0);_.O([_.U({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(data.iconType, logoType)"}),_.R("design:type",Boolean)],ch.prototype,"isRedLogo",void 0);_.O([_.U({computed:"computeLogoName(data)"}),_.R("design:type",String)],ch.prototype,"logoName",void 0);_.O([_.U({value:{}}),_.R("design:type",Object)],ch.prototype,"data",void 0);
_.O([_.U(),_.R("design:type",Object)],ch.prototype,"logoType",void 0);ch=_.O([_.E({disableElementRegistration:!0,is:"ytd-logo"})],ch);
_.v(ch,"ytd-logo",function(){if(oJh!==void 0)return oJh;var J=document.createElement("template");_.z(J,'\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>');J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return oJh=J},{mode:_.mP("kevlar_poly_si_batch_j074")?1:2});var mW=function(){var J=_.h.apply(this,arguments)||this;J.animationRef={};return J};
_.D(mW,_.h);_.V=mW.prototype;_.V.attached=function(){document.addEventListener("yt-navigate-finish",_.ME(this,this.logYoodle))};
_.V.detached=function(){document.removeEventListener("yt-navigate-finish",_.ME(this,this.logYoodle))};
_.V.logYoodle=function(){var J,c;if((J=this.data)==null?0:(c=J.loggingDirectives)==null?0:c.trackingParams)this.ytRendererBehavior.markDirty(),_.C7().graftServerVe(this.data.loggingDirectives.trackingParams)};
_.V.computeHideImg=function(J,c){return!!J||!!c};
_.V.computeHideYtdLogo=function(J,c){return!J||!!c};
_.V.computeHideLottie=function(J){return!J};
_.V.computeIsRedLogo=function(J){return J==="YOUTUBE_RED_LOGO"||J==="YOUTUBE_PREMIUM_LOGO"};
_.V.renderLogoEntity=function(){var J=this.getThumbnailUrl(this.useDarkThemeYoodle,this.data),c=this.getAnimatedThumbnailUrl(this.useDarkThemeYoodle,this.data),m=this.getLogoTitleText(this.data),b=this.getLottieUrl(this.useDarkThemeYoodle,this.data);this.url!==J&&(this.url=J);this.animatedUrl!==c&&(this.animatedUrl=c);this.logoTitleText!==m&&(this.logoTitleText=m);this.lottieUrl!==b&&(this.lottieUrl=b,this.lottiePlayerProps=this.computeLottiePlayerProps(b))};
_.V.getSanitizedThumbnail=function(J){return J&&J.thumbnails?_.eOT(J.thumbnails,122)||"":""};
_.V.getThumbnailUrl=function(J,c){if(!c)return"";var m,b;J=J?(m=c.darkThemeLogo)==null?void 0:m.thumbnail:(b=c.lightThemeLogo)==null?void 0:b.thumbnail;return this.getSanitizedThumbnail(J)};
_.V.getAnimatedThumbnailUrl=function(J,c){return c?this.getSanitizedThumbnail(J?c.darkThemeAnimatedLogo:c.lightThemeAnimatedLogo):""};
_.V.getLogoTitleText=function(J){if(J)return _.OG(J.tooltipText)};
_.V.computeLogoIcon=function(J,c){if(c){var m,b;return J?(m=c.darkThemeLogo)==null?void 0:m.icon:(b=c.lightThemeLogo)==null?void 0:b.icon}};
_.V.playAnimation=function(){this.hideLottie||this.animationRef.lottieEl&&this.animationRef.lottieEl.isPaused&&this.animationRef.lottieEl.goToAndPlay(0)};
_.V.getLottieUrl=function(J,c){var m,b,x,P;return J?c==null?void 0:(m=c.darkThemeLogo)==null?void 0:(b=m.lottieAnimation)==null?void 0:b.url:c==null?void 0:(x=c.lightThemeLogo)==null?void 0:(P=x.lottieAnimation)==null?void 0:P.url};
_.V.computeLottiePlayerProps=function(J){if(J){var c;if((c=this.animationRef)==null?0:c.lottieEl){var m;(m=this.animationRef)==null||m.lottieEl.destroy()}return{animationRef:this.animationRef,animationConfig:{name:"LOGO_ENTITY_ANIMATION_NAME",path:J,autoplay:!0,loop:!1,rendererSettings:{viewBoxOnly:!1}},listeners:{data_failed:this.onLottieError.bind(this),error:this.onLottieError.bind(this)}}}};
_.V.onLottieError=function(){this.data&&this.lottieUrl&&_.cA(this.hostElement,"yoodle-error")};
_.V.onImgError=function(){this.data&&!this.lottieUrl&&_.cA(this.hostElement,"yoodle-error")};
mW.prototype.playAnimation=mW.prototype.playAnimation;mW.prototype.renderLogoEntity=mW.prototype.renderLogoEntity;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],mW.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],mW.prototype,"data",void 0);_.O([_.U({value:!1,computed:"computeHideImg(logoIcon, lottiePlayerProps)"}),_.R("design:type",Boolean)],mW.prototype,"hideImg",void 0);
_.O([_.U({value:!0,computed:"computeHideYtdLogo(logoIcon, lottiePlayerProps)"}),_.R("design:type",Boolean)],mW.prototype,"hideYtdLogo",void 0);_.O([_.U({value:!0,reflectToAttribute:!0,computed:"computeHideLottie(lottiePlayerProps)"}),_.R("design:type",Boolean)],mW.prototype,"hideLottie",void 0);_.O([_.U({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(logoType)"}),_.R("design:type",Boolean)],mW.prototype,"isRedLogo",void 0);
_.O([_.U(),_.R("design:type",Boolean)],mW.prototype,"useDarkThemeYoodle",void 0);_.O([_.U(),_.R("design:type",String)],mW.prototype,"url",void 0);_.O([_.U(),_.R("design:type",String)],mW.prototype,"animatedUrl",void 0);_.O([_.U(),_.R("design:type",String)],mW.prototype,"logoTitleText",void 0);_.O([_.U({value:{},computed:"computeLogoIcon(useDarkThemeYoodle, data)"}),_.R("design:type",Object)],mW.prototype,"logoIcon",void 0);_.O([_.U(),_.R("design:type",Object)],mW.prototype,"logoType",void 0);
_.O([_.U(),_.R("design:type",String)],mW.prototype,"lottieUrl",void 0);_.O([_.U(),_.R("design:type",Object)],mW.prototype,"lottiePlayerProps",void 0);_.O([_.U(),_.R("design:type",Object)],mW.prototype,"animationRef",void 0);_.O([_.NE("data"),_.NE("useDarkThemeYoodle"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],mW.prototype,"renderLogoEntity",null);
_.O([_.ps("click"),_.R("design:type",Function),_.R("design:paramtypes",[Event]),_.R("design:returntype")],mW.prototype,"playAnimation",null);mW=_.O([_.E({disableElementRegistration:!0,is:"ytd-yoodle-renderer"})],mW);
_.v(mW,"ytd-yoodle-renderer",function(){if(RWR!==void 0)return RWR;var J=document.createElement("template");_.z(J,'\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>');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return RWR=J},{mode:_.mP("kevlar_poly_si_batch_j074")?1:2});var QCR;var eW5;var b8=function(){var J=_.h.apply(this,arguments)||this;J.actionMap={"yt-navigate-home-action":"onNavigateHomeAction"};return J};
_.D(b8,_.h);_.V=b8.prototype;_.V.onYoodleError=function(){_.w("kevlar_yoodle_handle_load_failure_killswitch")||(this.yoodleError=!0)};
_.V.computeLogoName=function(J){J=this.componentBehavior.computeIcon_(J);return J===""?"yt-logos-ext:yt-logo-updated":J};
_.V.computeTitle=function(J,c,m){return m&&(c==null?0:c.tooltipText)?_.OG(c.tooltipText):_.OG(J)};
_.V.computeAriaLabel=function(J,c,m){return m&&(c==null?0:c.tooltipText)?_.OG(J):""};
_.V.computeShowYoodle=function(J,c,m){return!J||!c&&!!m&&!_.Lw.isEmpty(m)};
_.V.onNavigateHomeAction=function(){if(_.w("kevlar_miniplayer_navigate_home_from_app_killswitch")){var J;(J=_.Bj(this.hostElement).querySelector(".yt-simple-endpoint"))==null||J.click()}};
_.V.computeLogoHref=function(J,c,m){var b;(m==null?0:m.onTapCommand)?b=this.componentBehavior.computeHref_(m.onTapCommand):J&&(b=this.componentBehavior.computeHref_(J));return b?b:c};
_.V.computeCommand=function(J,c){return(c==null?void 0:c.onTapCommand)||J};
_.V.getEndpointForm=function(){if(_.w("kevlar_topbar_disable_cache_only_home")){var J=_.BG().resolve(_.f9),c=tfR(J.getState())||"";J=_.$nD(J.getState())||"";return{disableCache:c==="ytd-browse"&&J==="home"}}return{disableCache:!0}};
b8.prototype.onYoodleError=b8.prototype.onYoodleError;_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],b8.prototype,"ytActionHandlerBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],b8.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],b8.prototype,"componentBehavior",void 0);_.O([_.f(_.fY),_.R("design:type",Object)],b8.prototype,"ytdReduxBehavior",void 0);
_.O([_.U(),_.R("design:type",Object)],b8.prototype,"data",void 0);_.O([_.U(),_.R("design:type",String)],b8.prototype,"countryCode",void 0);_.O([_.U({selectorArgs:["data.overrideEntityKey"],selector:function(J,c){return _.P2(J.entities,"logoEntity",c)}}),
_.R("design:type",Object)],b8.prototype,"logoEntity",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeShowYoodle(data, yoodleError, logoEntity)"}),_.R("design:type",Boolean)],b8.prototype,"showYoodle",void 0);_.O([_.U({value:!1}),_.R("design:type",Boolean)],b8.prototype,"yoodleError",void 0);_.O([_.U({computed:"computeTitle(data.tooltipText, logoEntity, showYoodle)"}),_.R("design:type",String)],b8.prototype,"titleText",void 0);
_.O([_.U({value:"",computed:"computeAriaLabel(data.tooltipText, logoEntity, showYoodle)"}),_.R("design:type",String)],b8.prototype,"ariaLabelText",void 0);_.O([_.U({value:"/"}),_.R("design:type",String)],b8.prototype,"defaultEndpointUrl",void 0);_.O([_.U({computed:"computeLogoHref(data.endpoint, defaultEndpointUrl, logoEntity)"}),_.R("design:type",String)],b8.prototype,"endpointUrl",void 0);
_.O([_.U({computed:"computeCommand(data.endpoint, logoEntity)"}),_.R("design:type",String)],b8.prototype,"command",void 0);_.O([_.U(),_.R("design:type",Object)],b8.prototype,"logoType",void 0);_.O([_.U({}),_.R("design:type",Boolean)],b8.prototype,"useDarkThemeYoodle",void 0);_.O([_.ps("yoodle-error"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],b8.prototype,"onYoodleError",null);b8=_.O([_.E({disableElementRegistration:!0,is:"ytd-topbar-logo-renderer"})],b8);
_.v(b8,"ytd-topbar-logo-renderer",function(){if(eW5!==void 0)return eW5;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return eW5=J},{mode:_.mP("kevlar_poly_si_batch_j027")?1:2});var jCs=0;var Fts=_.vC.SEARCH_APPEND_LABEL,lN1=_.vC.SUGGESTION_NEW_VIDEOS_TEXT,y24=_.vC.SUGGESTION_THUMBNAIL_LABEL,B1p=_.vC.SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL,gJe=_.Q1(function(J){function c(uC){var Kr,M2;return _.N(function(MR){if(MR.nextAddress==1)return Kr=new Request(uC),_.xL(MR,2),_.K(MR,fetch(Kr,{credentials:"include"}),4);if(MR.nextAddress!=2)return I_(!0),_.EO(MR,0);M2=_.NM(MR);_.qz(M2);_.tD(MR)})}
var m=J.isHighlighted;var b=J.suggestion;var x=J.onClickCallback;var P=J.onHoverUpdateCallback;var p=J.labels;var t=J.queryBuilderFunction;var I=J.onRemoveCallback;var a=J.suggestionIndex;var k=J.generateUniqueId;var H=J.highlightedId;var T=J.useScrollMargin;var r=J.isKeyboardMode;var W=null,Y=null,Z=_.oN("div"),d=_.oN("span");J=_.M(_.K2(!1,void 0,"CgAMgc"));var G=J.next().value,e=J.next().value,A=_.Q5("a",function(uC){uC&&_.Yg(237477,uC,Y,function(Kr){Y=Kr})}),l=_.Q5("button",function(uC){uC&&_.Yg(237477,
uC,Y,function(Kr){Y=Kr})}),y=_.Kq(function(uC){if((uC==null?void 0:uC.button)===2)return uC.preventDefault(),!1;
var Kr=_.Y3();Kr&&W&&_.Rn(Kr,W,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");var M2;x(uC,b().text,b().index,b().entityMid,uC==null?void 0:(M2=uC.detail)==null?void 0:M2.wasSelectedByKeyboard);return!1}),pG=function(){return b().type===35},kt=function(){return _.w("desktop_enable_single_suggestion_highlight")},nG=function(){return _.c7("desktop_suggestions_panel_row_height")||0},fG=function(){var uC;
return _.w("desktop_enable_new_video_metadata")&&((uC=b())==null?void 0:uC.hasNewVideo)===!0},Yt=function(){return _.w("desktop_enable_visual_suggest")},Z3=function(){return _.w("desktop_enable_entity_suggest")&&WtR(b())},oR=function(){return b().entitySubtitle},Em=function(){return kt()?(m==null?void 0:m())||wL()&&!(r==null?0:r()):(m==null?void 0:m())||wL()},X$=function(){var uC=_.Ub("SBOX_SETTINGS");
return pG()&&!(uC==null?0:uC.HIDE_REMOVE_LINK)},Hu=function(){return zWe(b(),{useEntityName:Z3()})},S6,a2=!((S6=_.BG().resolve(_.y6(_.Ev)))==null||!S6()),Nu=function(){return pG()?_.w("enable_web_delhi_icons")?"HISTORY":"ARROW_TIME":"SEARCH"},cu=function(){return p==null?void 0:p().SUGGESTION_DISMISS_LABEL},t8=function(){return p==null?void 0:p().SUGGESTION_DISMISSED_LABEL};
J=_.M(_.K2(!1,void 0,"RcUcKd"));S6=J.next().value;var I_=J.next().value;J=_.M(_.K2(!1,void 0,"yGR7je"));var fU=J.next().value,Nf=J.next().value,wL=fU,qu=_.Kq(function(){t(d.value.innerText);return!1}),O5=_.Kq(function(uC){uC.preventDefault();
return!1}),LQ=_.Kq(function(uC){var Kr=b().text,M2=_.Ub("SBOX_SETTINGS"),MR="https://"+(M2.SEARCHBOX_HOST_OVERRIDE||"suggestqueries-clients6.youtube.com")+"/complete/deleteitems?client=youtube";
MR+="&delq="+encodeURIComponent(Kr);(Kr=M2==null?void 0:M2.PSUGGEST_TOKEN)&&(MR+="&tok="+Kr);(M2=M2==null?void 0:M2.SESSION_INDEX)&&(MR+="&authuser="+M2);c(MR);uC.preventDefault();(uC=_.Y3())&&Y&&_.Rn(uC,Y,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");I(a==null?void 0:a());return!1}),j6=_.Kq(function(){if(kt()&&(r==null?0:r()))return!1;
Nf(!0);P(!0);return!1}),Ow=_.Kq(function(){Nf(!1);
P(!1);return!1}),QQ=_.Kq(function(){e(!0);
return!1}),VQ=_.Kq(function(){e(!1);
return!1}),vB=_.Kq(function(uC){uC.preventDefault();
var Kr;(uC=(Kr=b().entityThumbnailAttributionUrl)!=null?Kr:"")&&_.kXr(uC);return!1});
J=_.M(_.K2("",void 0,"k9uVge"));var T4=J.next().value,Tz=J.next().value;_.WG(function(){X$()&&Tz(k==null?void 0:k(a==null?void 0:a()));Z.value&&_.Yg(12453,Z.value,W,function(uC){W=uC})});
return _.C(_.n,{cond:S6,then:function(){var uC={};return _.C("div",{class:_.pq("ytSuggestionComponentRemovedText",(uC.ytSuggestionComponentLargerRemovedText=function(){return Yt()},uC)),
style:function(){return nG()>0?"height: "+nG()+"px;":""},
role:"button"},t8)},
else:function(){var uC={},Kr={};return _.C("div",{class:_.pq("ytSuggestionComponentSuggestion",(uC.ytSuggestionComponentSuggestionHover=function(){return!kt()},uC.ytSuggestionComponentHighlighted=Em,uC.ytSuggestionComponentPersonalizedSuggestion=pG,uC.ytSuggestionComponentMweb=!1,uC.ytSuggestionComponentLargerSuggestion=function(){return fG()||Yt()},uC.ytSuggestionComponentThumbnailSuggestion=function(){return Yt()},uC.ytSuggestionComponentRoundedSuggestion=function(){return _.w("desktop_enable_scrollable_suggestions_panel")&&
_.w("desktop_enable_suggestions_panel_padding")},uC.ytSuggestionComponentThumbnailPadding=function(){return Yt()&&!pG()},uC)),
style:function(){return nG()>0?"height: "+nG()+"px;":""},
role:"presentation","on:mousedown":y,"on:mouseover":j6,"on:mouseout":Ow,el:Z},_.C("div",{class:_.pq("ytSuggestionComponentText",(Kr.ytSuggestionComponentScrollMargin=T,Kr)),"aria-label":function(){return fG()?b().text+" "+lN1:b().text},
id:function(){return k==null?void 0:k(a==null?void 0:a())},
"on:mousedown":y,role:"option"},_.C(_.n,{cond:function(){return b().type!==33},
then:function(){return _.C(_.HP,{icon:Nu,className:"ytSuggestionComponentIcon"})}}),_.C("div",{class:"ytSuggestionComponentLeftContainer"},_.C("span",{el:d,
role:"button",tabindex:0},_.C(_.Te,{each:Hu},function(M2){return M2.bold?_.C("span",{class:"ytSuggestionComponentBold"},M2.text):_.C("span",null,M2.text)})),_.C(_.n,{cond:function(){return Z3()&&!!b().entitySubtitle||fG()},
then:function(){return _.C("div",{class:"ytSuggestionComponentMetadataContainer"},_.C(_.n,{cond:function(){return Z3()&&!!b().entitySubtitle},
then:function(){return _.C("div",{class:"ytSuggestionComponentEntitySubtitle"},oR)}}),_.C(_.n,{cond:function(){return fG()},
then:function(){return _.C("div",{class:"ytSuggestionComponentNewVideoContainer"},_.C("div",{class:"ytSuggestionComponentNewVideoIcon"}),_.C("div",{class:"ytSuggestionComponentNewVideoText"},lN1))}}))}}))),_.C("div",{class:"ytSuggestionComponentRightContainer"},_.C(_.n,{cond:function(){return Yt()&&b().visualSuggestUrl!==void 0},
then:function(){var M2={};return _.C("div",{class:"ytSuggestionComponentThumbnailContainer"},_.C("img",{"aria-label":y24,class:_.pq("ytSuggestionComponentVisualSuggestThumbnail",(M2.ytSuggestionComponentCircularFrame=function(){return Z3()&&b().subtypes.includes(790)},M2.ytSuggestionComponentEntitySuggestThumbnail=function(){return Z3()},M2)),
src:function(){return b().visualSuggestUrl}}),_.C(_.n,{cond:function(){return Z3()&&!!b().entityThumbnailAttributionUrl},
then:function(){var MR={};return _.C("span",{title:B1p,role:"tooltip"},_.C("div",{"on:mouseover":QQ,"on:mouseout":VQ,"on:mousedown":vB,class:_.pq("ytSuggestionComponentThumbnailOverlay",(MR.ytSuggestionComponentThumbnailOverlayHidden=function(){return!G()},MR))},_.C(_.HP,{icon:"INFO",
className:"ytSuggestionComponentInfoIcon"})))}}))}}),_.C(_.sb,null,_.C(_.wu,{when:function(){return Yt()&&X$()}},function(){var M2={};
return _.C("button",{class:_.pq("ytSuggestionComponentRemoveLinkClearButton",(M2.ytSuggestionComponentRemoveLinkClearButtonSelected=function(){return T4()&&T4()===(H==null?void 0:H())},M2.ytSuggestionComponentRemoveLinkClearButtonHidden=function(){return!Em()},M2)),
el:l,"on:mousedown":LQ,"aria-label":cu,id:function(){return T4()}},_.C(_.HP,{icon:"DISMISSAL",
className:"ytSuggestionComponentClearButtonIcon"}))}),_.C(_.wu,{when:function(){return!(Yt()&&b().visualSuggestUrl!==void 0)&&X$()}},function(){var M2={};
return _.C("a",{class:_.pq("ytSuggestionComponentRemoveLink",(M2.ytSuggestionComponentRemoveLinkDark=a2,M2.ytSuggestionComponentRemoveLinkSelected=function(){return T4()&&T4()===(H==null?void 0:H())},M2)),
el:A,"on:mousedown":LQ,"aria-label":cu,tabindex:0,role:"button",id:function(){return T4()}},cu)}),_.C(_.wu,{when:function(){return!1}},function(){return _.C("button",{class:"ytSuggestionComponentQueryBuilderButton",
"on:click":qu,"on:mousedown":O5,role:"button","aria-label":Fts},_.C(_.HP,{icon:"ARROW_DIAGONAL",className:"ytSuggestionComponentQueryBuilderButtonIcon"}))}))))}})},"sg");var JA5=_.Q1(function(){return _.C("ytd-text-input-assistant",{class:"ytdTextInputAssistantHost"},_.C("button",{class:"ytdTextInputAssistantButton","on:click":_.Kq(function(){XWR().inputMethodsTracker.add(3);var J,c=(J=_.Ub("SBOX_SETTINGS"))==null?void 0:J.REQUEST_LANGUAGE;if(c)return _.dK("//www.google.com/textinputassistant/14/"+c+"_tia.js"),!1})},_.C("img",{class:"ytdTextInputAssistantIcon",
tia_field_name:"search_query",tia_disable_swap:"true",tia_property:"youtube",src:"//www.gstatic.com/inputtools/images/tia.png",alt:""})))},"tg");var cAh=function(){this.cache=new Map},mI4=function(J){for(var c=_.M(J.cache.entries()),m=c.next();!m.done;m=c.next()){var b=_.M(m.value);
m=b.next().value;b=b.next().value;b.suggestions.some(function(x){return x.type===35})&&J.cache.delete(m)}};var bSS=_.vC.SEARCH,xIu=_.vC.SEARCH_CLEAR_LABEL,Vyh=new _.oE("FAKE_SUGGEST_RESPONSE");_.lv(_.Q1(function(J){function c(){QQ||(QQ=setTimeout(function(){vB()},1E3))}
function m(iC,HB,rR){if(iC.trim()){Ow=iC;_.q3("REFINEMENTS_TUPLE",void 0);LQ=!0;var KU;HB=U9S(fU,HB);var PB=(KU=J.searchEndpoint)==null?void 0:KU.call(J);KU=Nu.value.value;PB||(PB=uBf);var T$;(T$=_.L(PB.commandMetadata,_.lk))!=null&&T$.url||(T$=Error("ll`"+JSON.stringify(PB)),_.Xc(T$),PB=uBf);T$=_.Lw.unsafeClone(PB);PB=_.hI(_.L(T$.commandMetadata,_.lk).url,"search_query",iC);_.E7(location.href,"sv")==="1"&&(_.L(T$,_.Kv).params="EgOAAgE%3D",PB=_.hI(PB,"sv","1"));_.L(T$,_.Kv)&&(_.L(T$,_.Kv).query=iC);
PB=PB.replace(/%20/g,"+");_.L(T$.commandMetadata,_.lk).url=PB;rR=_.w("desktop_enable_entity_suggest")?{entityMid:rR}:{};_.BG().resolve(_.gu).resolveCommand(T$,{form:{tempData:Object.assign({},{gs_l:HB,oq:KU!=null?KU:iC},rR)}});vB();Nu.value.value=iC;Nu.value.blur();fU.reset()}}
function b(iC){return _.N(function(HB){return HB.return(new Promise(function(rR){var KU=new XMLHttpRequest;KU.open("GET",nJf(iC),!0);KU.withCredentials=!0;var PB=_.Ub("SBOX_SETTINGS");(PB==null?0:PB.SEND_VISITOR_DATA)&&KU.setRequestHeader("X-Goog-Visitor-Id",PB==null?void 0:PB.VISITOR_DATA);KU.onload=function(){rR(KU.responseText)};
KU.onerror=function(){_.qz(Error("ml"));rR(null)};
setTimeout(function(){KU.abort()},1E4);
KU.send(null)}))})}
function x(iC){var HB,rR,KU,PB;return _.N(function(T$){switch(T$.nextAddress){case 1:return HB={credentials:"include",headers:ii1()},window.AbortController&&(rR=new AbortController,setTimeout(function(){rR.abort("ytsbox-suggest-timeout")},1E4),HB.signal=rR.signal),_.xL(T$,2),_.K(T$,fetch(nJf(iC),HB),4);
case 4:KU=T$.yieldResult.text();_.EO(T$,3);break;case 2:return PB=_.NM(T$),PB!=="ytsbox-abort-last"&&PB!=="ytsbox-suggest-timeout"&&_.qz(PB),T$.return(null);case 3:return T$.return(KU)}})}
function P(iC){var HB,rR,KU;return _.N(function(PB){switch(PB.nextAddress){case 1:if(HB=_.BG().resolve(_.y6(Vyh)))return PB.return(HB);rR=Date.now();c();return _.w("yt_searchbox_xhr")?_.K(PB,b(iC),5):_.K(PB,x(iC),4);case 4:KU=PB.yieldResult;PB.jumpTo(3);break;case 5:KU=PB.yieldResult;case 3:if(KU){QQ&&(clearTimeout(QQ),QQ=null);var T$=fU,jj=rR,S9=iC.query.length===0;jj=Date.now()-jj;S9?T$.zeroPrefixRoundTripTime=jj:(T$.JSC$18427_totalRoundTripTime+=jj,T$.maxRoundTripTime=Math.max(T$.maxRoundTripTime,
jj),S9=Math.floor(jj/100),S9>=S8R.length?++T$.roundTripTimeHistogram[9]:++T$.roundTripTimeHistogram[S8R[S9]])}return PB.return(KU)}})}
function p(iC){var HB,rR,KU;return _.N(function(PB){if(PB.nextAddress==1)return(HB=I_.cache.get(Hi5(iC)))?PB.return(HB):_.K(PB,P(iC),2);rR=PB.yieldResult;if(rR===null)return PB.return(null);KU=new uou(rR);iC.query.length===0&&KU.suggestions.length===0||I_.cache.set(Hi5(iC),KU);return PB.return(KU)})}
function t(iC){var HB,rR;return _.N(function(KU){if(KU.nextAddress==1){j6=!1;var PB=Ow;PB=_.Jno()==="search"?(_.E7(location.href,"search_query")||_.E7(location.href,"q"))===PB:!1;HB=new kMo(iC,PB?Ow:null);return _.K(KU,p(HB),2)}rR=KU.yieldResult;if(rR===null)return KU.return();HB.query.length===0&&(fU.zeroPrefixSuggestionCount=rR.suggestions.length);if(HB.id<=VQ)return fU.outOfSyncResponseCount++,KU.return();if(document.activeElement!==Nu.value)return KU.return();VQ=HB.id;var T$=fU,jj=rR.rawResponse[2]||
{};T$.experimentTriggeredBeforeFinal||(T$.experimentTriggeredBeforeFinal=T$.experimentTriggeredFinal);T$.experimentTriggeredFinal=!!jj.e;fU.updateSuggestions(rR.suggestions);Z(-1);X$([]);rR.suggestions!==r()&&V4(rR.suggestions.length);W(rR.suggestions);kt(rR.suggestions.length>0&&rR.suggestions[0].type===33);t8&&(t8.hidden=rR.suggestions.length===0,pG()?(t8.style.minWidth="",T$=t8.style,jj=(PB=r()[0])==null?void 0:PB.ignoredPrefix,T$.marginLeft=(jj?Math.min(jj.length*6,cu.value.offsetWidth):0).toString()+
"px"):(t8.style.minWidth=cu.value.offsetWidth+"px",t8.style.marginLeft="0"),C6());_.tD(KU)})}
function I(){if(!LQ)return!1;var iC=_.Ub("REFINEMENTS_TUPLE");return iC?(iC=iC[1].map(function(HB,rR){return new D95([HB,0,[71]],Nu.value.value,rR)}),r()!==iC&&V4(iC.length),X$([]),W(iC),fU.updateSuggestions(iC),LQ=!1,t8.hidden=iC.length===0,j6=iC.length>0,!0):!1}
function a(){var iC=Nu.value.value;(typeof iC==="string"||iC instanceof String)&&iC!==""?A(!0):A(!1)}
function k(){if(_.Jno()==="search"){var iC=window.location.href;try{var HB=_.E7(iC,"search_query")||_.E7(iC,"q")||""}catch(rR){HB=""}HB&&(Nu.value.value=HB,A(!0))}}
var H=_.M(_.K2([],void 0,"kGFAjf")),T=H.next().value;H=H.next().value;var r=T,W=H;T=_.M(_.K2(-1,void 0,"mLGL9e"));var Y=T.next().value,Z=T.next().value;T=_.M(_.K2(-1,void 0,"u2rYdc"));var d=T.next().value,G=T.next().value;T=_.M(_.K2(!1,void 0,"W9DFC"));var e=T.next().value,A=T.next().value;T=_.M(_.K2(!1,void 0,"Ip4dNc"));var l=T.next().value,y=T.next().value;H=_.M(_.K2(!1,void 0,"ZNKSQb"));T=H.next().value;H=H.next().value;var pG=T,kt=H;H=_.M(_.K2(!1,void 0,"JBrGLd"));T=H.next().value;var nG=H.next().value;
H=_.M(_.K2(!1,void 0,"P2pD6e"));var fG=H.next().value,Yt=H.next().value;H=_.M(_.K2(1,void 0,"SjP20c"));var Z3=H.next().value,oR=H.next().value;H=_.M(_.K2([],void 0,"h4dRaf"));var Em=H.next().value,X$=H.next().value;H=_.M(_.K2(!1,void 0,"TUTzaf"));var Hu=H.next().value,S6=H.next().value;H=_.w("web_searchbox_animate_suggestions")&&"contentVisibility"in document.documentElement.style&&"interpolateSize"in document.documentElement.style;var a2=_.oN("yt-searchbox"),Nu=_.oN("input"),cu=_.oN("div"),t8,I_=
new cAh,fU=XWR(),Nf=_.BG().resolve(_.y6(_.Ev)),wL=function(){var iC;return((iC=J.forceDarkMode)==null?void 0:iC.call(J))||!(Nf==null||!Nf())},qu=function(){return _.w("desktop_enable_scrollable_suggestions_panel")},O5="i"+jCs++,LQ=!1,j6=!1,Ow="",QQ=null,VQ=-1,vB=function(){X$([]);
W([]);kt(!1);t8&&(t8.hidden=!0);QQ&&(clearTimeout(QQ),QQ=null);Z(-1)},T4=function(iC,HB){iC.preventDefault();
S6(!0);t8&&(t8.hidden=!1);var rR=Y();iC=r();var KU=Em();HB=rSs(HB);rR+=HB;for(rR>=iC.length?rR=-1:rR<-1&&(rR=iC.length-1);rR!==-1&&(KU.includes(rR)||rR>=iC.length||rR<0);)rR+=HB,rR>=iC.length&&(rR=-1);Z(rR);Y()>=0&&(Nu.value.value=r()[Y()].text,G(0),a(),iC=Y(),KU=d(),(KU=document.getElementById(GO[iC][KU]))&&qu()&&(iC===r().length-1?t8.scrollTop=t8.scrollHeight:KU.scrollIntoView({block:"nearest",inline:"start"})))},Tz=_.Kq(function(iC){if(!(iC.relatedTarget instanceof Element&&iC.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){y(!0);
var HB;(HB=J.focusCallback)==null||HB.call(J,!0);I()||(j6?t8.hidden=!1:(_.cA(a2.value,"yt-autonav-pause-focus",{}),t(iC.target.value)))}}),uC=_.Kq(function(iC){if(!(iC.relatedTarget instanceof Element&&iC.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){y(!1);
var HB;(HB=J.focusCallback)==null||HB.call(J,!1);t8.scrollTop=0;t8.hidden=!0;_.cA(a2.value,"yt-autonav-pause-blur",{})}}),Kr=function(iC){iC=rSs(iC);
var HB;((HB=GO[Y()])==null?0:HB[d()+iC])&&G(d()+iC)},M2=_.Kq(function(iC){var HB=iC.target;
switch(iC.keyCode){case 13:iC.preventDefault();var rR;if((rR=GO[Y()])==null?0:rR[d()]){var KU;(KU=document.getElementById(GO[Y()][d()]))==null||KU.dispatchEvent(new CustomEvent("mousedown",{detail:{wasSelectedByKeyboard:!0}}));break}iC=iC.shiftKey?4:3;rR=fU;KU=Y();rR.selectedSuggestionIndex=KU;m(HB.value,iC);break;case 27:t8&&(t8.hidden=!0);break;case 40:T4(iC,40);break;case 38:T4(iC,38);break;case 39:Kr(39);break;case 37:Kr(37);break;case 229:fU.inputMethodsTracker.add(4);break;default:fU.inputMethodsTracker.add(1),
Zi1(fU)}return!1}),MR=_.Kq(function(iC){t(iC.target.value);
a();qu()&&t8&&(t8.scrollTop=0);return!1}),w8=_.Kq(function(){fU.inputMethodsTracker.add(2);
Zi1(fU);return!1});
_.WG(function(){if(t8){fU.reset();if(window.ResizeObserver){var iC=new ResizeObserver(function(){pG()||(t8.style.minWidth=cu.value.offsetWidth+"px")});
iC.observe(cu.value);(new ResizeObserver(function(){C6()})).observe(t8);
_.f2(function(){iC.disconnect()})}k();
window.addEventListener("yt-navigate-finish",k);window.addEventListener("yt-focus-searchbox",function(){Nu.value.focus()});
var HB;nG((HB=_.Ub("SBOX_SETTINGS"))==null?void 0:HB.HAS_ON_SCREEN_KEYBOARD)}else _.Xc(new _.w3("suggestionsEl was not set in onInit. Component may be broken."),"WARNING")});
var NL=_.Kq(function(iC){iC.preventDefault();m(Nu.value.value,12);return!1}),A8=_.Kq(function(iC){iC.preventDefault();
var HB,rR;(HB=Nu)==null||(rR=HB.value)==null||rR.focus();var KU,PB;((KU=Nu)==null?void 0:(PB=KU.value)==null?void 0:PB.value)!==""&&(Nu.value.value="",Nu.value.dispatchEvent(new Event("input")));return!1}),wR=_.Kq(function(){var iC=ICs(Nu.value.value,r().filter(function(HB){return HB.type!==35}).map(function(HB){return{label:HB.text}}));
_.m9(a2.value,"yt-open-popup-action",[{openPopupAction:iC},document.body]);return!1}),Bu=_.Kq(function(){Nu.value.focus();
return!1}),M0=function(iC,HB,rR,KU,PB){fU.selectedSuggestionIndex=rR;
m(HB,PB?3:1,KU)},ii=function(iC){Nu.value.value=iC;
Nu.value.dispatchEvent(new Event("input"));fU.inputMethodsTracker.add(5);Zi1(fU,!0)},GO=[[]],IP=function(iC){var HB="searchbox-suggestion"+_.Df(_.rY);
GO[iC].push(HB);return HB},V4=function(iC){if(r()){GO=[[]];
for(var HB=0;HB<iC;HB++)GO.push([])}},C6=function(){if(qu()){var iC=t8,HB=iC.scrollTop;
iC=iC.scrollHeight-iC.clientHeight;Yt(HB>=iC);HB=Math.abs(iC-HB);HB<=40?oR(1-(40-HB)/40):oR(1)}},qr=function(){return"opacity: "+Z3()*100+"%"},sm=_.Kq(function(){C6();
return!1}),hq=_.Kq(function(){S6(!1);
return!1}),Om,KQ={},VR={},Yl={},Cr={};
return _.C("yt-searchbox",{class:_.pq("ytSearchboxComponentHost",(KQ.ytSearchboxComponentMweb=!1,KQ.ytSearchboxComponentDesktop=!0,KQ["yt-searchbox-filled-query"]=function(){return e()},KQ["ytd-masthead"]=function(){return!l()},KQ.ytSearchboxComponentHostDark=wL,KQ)),
role:"search",el:a2,"client-ve-type":10349},_.C("div",{el:cu,"on:click":Bu,class:_.pq("ytSearchboxComponentInputBox",(VR.ytSearchboxComponentInputBoxDark=wL,VR.ytSearchboxComponentInputBoxHasFocus=l,VR))},_.C("form",{action:"/results",class:"ytSearchboxComponentSearchForm","on:submit":NL},_.C(_.n,{cond:l,then:function(){return _.C("div",{class:"ytSearchboxComponentInnerSearchIcon"},_.C(_.HP,{icon:"SEARCH"}))}}),_.C("input",{el:Nu,
class:_.pq("ytSearchboxComponentInput","yt-searchbox-input","title"),name:"search_query","aria-controls":O5,"aria-expanded":!((Om=t8)==null?0:Om.hidden),type:"text",autocomplete:"off",autocorrect:"off",spellcheck:!1,"on:blur":uC,"on:focus":Tz,"on:input":MR,"on:keydown":M2,"on:paste":w8,placeholder:J.placeholderText,"aria-activedescendant":function(){var iC;return(iC=GO[Y()])==null?void 0:iC[d()]},
"aria-autocomplete":"list",role:"combobox"})),_.C(_.n,{cond:T,then:function(){return _.C("div",{class:"ytSearchboxComponentYtdTextInputAssistantWrapper"},_.C(JA5,null))}}),_.C(_.n,{cond:e,
then:function(){return _.C("div",{class:"ytSearchboxComponentClearButtonWrapper"},_.C("button",{class:"ytSearchboxComponentClearButton","on:click":A8,"aria-label":J.clearButtonAriaLabel||xIu},_.C(_.HP,{icon:"DISMISSAL",className:"ytSearchboxComponentClearButtonIcon"}),_.C(_.TH,{model:{}})))}})),_.C("button",{class:_.pq("ytSearchboxComponentSearchButton",(Yl.ytSearchboxComponentSearchButtonDark=wL,Yl)),
"on:click":NL,"aria-label":bSS,title:J.placeholderText},_.C(_.HP,{icon:"SEARCH"})),_.C(_.n,{cond:function(){if(XSs()&&_.w("mweb_voice_search")&&J.voiceSearchButton)return J.voiceSearchButton()},
then:function(iC){var HB={};return _.C("div",{class:_.pq("ytSearchboxComponentVoiceSearchWrapper",(HB.ytSearchboxComponentHideVoiceSearchButton=function(){return e()},HB))},_.C(_.wi,{data:iC},{buttonRenderer:function(rR){return _.C(_.GM,{data:rR.data,
onButtonClickCallback:function(){}})}}))}}),_.C("div",{el:_.Qn(function(iC){return void(t8=iC)}),
id:O5,class:_.pq("ytSearchboxComponentSuggestionsContainer",(Cr.ytSearchboxComponentSuggestionsContainerDark=wL,Cr["yt-searchbox-suggestions-container"]=!1,Cr.ytSearchboxComponentSuggestionsContainerScrollable=qu(),Cr.ytSearchboxComponentSuggestionsContainerAnimated=H,Cr)),"on:scroll":sm,"on:mousemove":hq,role:"listbox",hidden:!0},_.C(_.Te,{each:r},function(iC,HB){return _.C(gJe,{suggestion:iC,isHighlighted:function(){return HB()===Y()},
onClickCallback:M0,onHoverUpdateCallback:function(rR){if(_.w("desktop_enable_single_suggestion_highlight")){var KU=HB();rR&&(G(0),Z(KU))}},
onRemoveCallback:function(rR){mI4(I_);rR===void 0||rR<0||Em().includes(rR)||X$([].concat(_.L6(Em()),[rR]))},
labels:J.labels,queryBuilderFunction:ii,suggestionIndex:HB,generateUniqueId:IP,highlightedId:function(){var rR;return(rR=GO[Y()])==null?void 0:rR[d()]},
useScrollMargin:qu(),isKeyboardMode:Hu})}),_.C(_.n,{cond:function(){return!pG()&&r().find(function(iC){return iC.type!==35})&&_.w("searchbox_reporting")},
then:function(){return _.C("button",{class:"ytSearchboxComponentReportButton","on:mousedown":wR},_.CX("SBOX_INAPPROPRIATE_PROMPT",void 0,"Report search predictions"))}}),_.C(_.n,{cond:function(){return!fG()&&qu()},
then:function(){return _.C("div",{class:"ytSearchboxComponentSuggestionsContainerFooter"},_.C("div",{class:"ytSearchboxComponentSuggestionsContainerFooterGradient",style:qr}))}})))},"ug"),"yt-searchbox",{props:{searchEndpoint:_.vt,
placeholderText:_.vt,labels:_.vt,voiceSearchButton:_.vt,focusCallback:_.Fz,clearButtonAriaLabel:_.vt,forceDarkMode:_.vt}});var xf=function(){var J=_.h.apply(this,arguments)||this;J.menuButtonTargetId="topbar-guide-menu";J.narrow=!1;J.menuStrings={BACK_ALT_LABEL:_.CX("BACK_ALT_LABEL",void 0,"Back"),GUIDE_ALT_LABEL:_.CX("GUIDE_ALT_LABEL",void 0,"Guide"),LOGO_ALT_LABEL:_.CX("LOGO_ALT_LABEL",void 0,"YouTube Home"),SEARCH_ALT_LABEL:_.CX("SBOX_PLACEHOLDER",void 0,"Search")};J.pageDarkTheme=document.documentElement.hasAttribute("dark");J.watchPageScrollTop=0;J.theater=!1;J.fullscreen=!1;J.desktopUnifiedSearchPanelMode=_.w("desktop_enable_unified_search_panel");
J.cinematicTheaterMode=_.w("web_cinematic_theater_mode");J.ytSearchboxFocused=!1;J.searchboxLabels=_.Ub("SBOX_LABELS");J.topbarIsAboveChipbar=!1;J.isDarkThemeForced=!1;J.areGhostCardsHidden=!1;J.guideKeyboardToggle=!1;J.voiceSearchManager=TFR();J.actionMap={"yt-send-feedback-action":"onYtSendFeedbackAction","yt-fullscreen-change-action":"onFullscreenChangeAction"};J.setYtSearchboxFocused=function(c){J.ytSearchboxFocused=c};
return J};
_.D(xf,_.h);_.V=xf.prototype;_.V.computeSimpleText=function(J){return _.OG(J)};
_.V.onDarkChanged=function(){for(var J=_.M(this.buttons||[]),c=J.next();!c.done;c=J.next())c.value.isOverlay=!!this.dark;J=_.M(this.buttonRenderers||[]);for(c=J.next();!c.done;c=J.next())c.value.overrides=this.computeButtonOverride()};
_.V.computeButtonOverride=function(){return this.dark?{style:"overlay"}:void 0};
_.V.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"}}}};
_.V.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","banner");var J=_.Y7(_.f$(),"aa");_.mq(this.hostElement,"shell",!1);!this.hostElement.classList.contains("dark")&&!this.hostElement.classList.contains("theater")||J||(this.isDarkThemeForced=this.dark=!0);this.logoType?(J=this.hostElement.querySelector("#masthead-logo"))&&(_.w("polymer_on_demand_shady_dom")?J.setAttribute("slot","masthead-logo-old"):_.nc(J)):this.logo.hidden=!0;document.addEventListener("yt-watch-masthead-scroll",
_.ME(this,this.onWatchScroll));document.addEventListener("yt-set-theater-mode-enabled",_.ME(this,this.onSetTheaterModeEnabled))};
_.V.detached=function(){document.removeEventListener("yt-watch-masthead-scroll",_.ME(this,this.onWatchScroll));document.removeEventListener("yt-set-theater-mode-enabled",_.ME(this,this.onSetTheaterModeEnabled))};
_.V.dataChanged=function(){var J=this.data;J&&(this.voiceEnabled=J.voiceSearchButton?TFR().isSupported():!1,_.aNB(_.aT(),this.menuButtonTargetId,this.guideButton),J.onReceivedActions&&J.onReceivedActions.length>0&&!this.hasShownCreatorEmailOptInPopup&&(_.PA(this.hostElement,J.onReceivedActions,this.hostElement),this.hasShownCreatorEmailOptInPopup=!0),!this.hasRenderedWithData&&J&&(this.hasRenderedWithData=!0,this.logo.hidden=!1,_.mq(this.hostElement,"dark",!1),_.mq(this.hostElement,"theater",!1),
(J=this.hostElement.querySelector("#masthead-logo"))&&(_.w("polymer_on_demand_shady_dom")?J.setAttribute("slot","masthead-logo-old"):_.nc(J))))};
_.V.computeCenterHidden=function(){var J;return this.data&&!((J=this.data.searchbox)==null?0:J.fusionSearchboxRenderer)};
_.V.onRendererStamperFinished=function(){this.areGhostCardsHidden||(_.mq(this.hostElement,"masthead-finish",!0),this.areGhostCardsHidden=!0)};
_.V.onWatchPageChange=function(){this.isWatchPage||this.resetBackground()};
_.V.onWatchScroll=function(J){this.watchPageScrollTop=J.detail||0;this.updateMastheadBackgroundOpacity()};
_.V.onFullscreenChangeAction=function(J){J||(this.watchPageScrollTop=0);this.fullscreen=J;this.updateMastheadBackgroundOpacity()};
_.V.onSetTheaterModeEnabled=function(J){this.theater=J.detail.enabled;this.updateMastheadBackgroundOpacity()};
_.V.updateMastheadBackgroundOpacity=function(){this.shouldShowCinematicMastHead()&&(this.isBigPlayer()?this.resetBackground():document.body.className.indexOf("lock-scrollbar")===-1&&this.setBackgroundOpacity(this.watchPageScrollTop))};
_.V.resetBackground=function(){this.background.style.removeProperty("opacity");this.watchPageScrollTop=0};
_.V.setBackgroundOpacity=function(J){J=this.calculateBackgroundOpacity(J);this.background.style.opacity=""+J};
_.V.calculateBackgroundOpacity=function(J){var c=this.theater&&this.cinematicTheaterMode?.6:0,m=this.hostElement.clientHeight/2;return Math.min(Math.max(J,0),m)/m*(1-c)+c};
_.V.shouldShowCinematicMastHead=function(){var J=_.w("kevlar_watch_grid")&&!_.w("swatchie_cinematic_masthead_ks");return this.isWatchPage&&(J||this.pageDarkTheme)};
_.V.isBigPlayer=function(){return this.fullscreen||this.theater&&!this.cinematicTheaterMode};
_.V.focusGuide=function(){this.guideButton.focus()};
_.V.onGuideToggleTap=function(){_.cA(this.hostElement,"yt-guide-toggle",{isKeyInput:this.guideKeyboardToggle});this.guideKeyboardToggle=!1};
_.V.onGuideButtonKeydown=function(){this.guideKeyboardToggle=!0};
_.V.onGuideToggleHover=function(){_.cA(this.hostElement,"yt-guide-hover")};
_.V.onSearchCloseClick=function(){this.ytdExpandableInputBehavior.showInput=!1};
_.V.narrowChanged=function(){this.narrow?this.ytSearchboxFocused&&this.ytdExpandableInputBehavior.openOnClick_():this.ytdExpandableInputBehavior.showInput=!1};
_.V.closeOnOutsideClickCondition=function(J){for(J=_.OT(J);J[0];){var c=J.shift();if(c instanceof Element&&c.id==="kbd")return!1}return!0};
_.V.onVoiceTap=function(){this.pausePlayer();this.voiceSearchManager.start()};
_.V.pausePlayer=function(){var J;(J=_.ep())==null||J.pause();this.pauseMiniplayer()};
_.V.pauseMiniplayer=function(){if(this.isMiniplayerActive()){var J;(J=_.BG().resolve(_.Uo).getPlayerElement())==null||J.pause()}};
_.V.isMiniplayerActive=function(){return _.BG().resolve(_.Uo).isMiniplayerActive()};
_.V.updateNarrowFromBinding=function(J){this.narrow=J.detail.value};
_.V.onYtSendFeedbackAction=function(){_.m9(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.eE.Object.defineProperties(xf.prototype,{guideIcon:{configurable:!0,enumerable:!0,get:function(){return _.w("enable_web_delhi_icons")?"menu":"yt-icons:menu"}},
shouldShowVoiceSearchButton:{configurable:!0,enumerable:!0,get:function(){return!!this.voiceEnabled&&!this.desktopUnifiedSearchPanelMode}},
voiceSearchButton:{configurable:!0,enumerable:!0,get:function(){if(this.desktopUnifiedSearchPanelMode){var J;return(J=this.data)==null?void 0:J.voiceSearchButton}}}});
xf.prototype.narrowChanged=xf.prototype.narrowChanged;xf.prototype.onWatchPageChange=xf.prototype.onWatchPageChange;xf.prototype.onRendererStamperFinished=xf.prototype.onRendererStamperFinished;xf.prototype.dataChanged=xf.prototype.dataChanged;xf.prototype.onDarkChanged=xf.prototype.onDarkChanged;_.O([_.f(_.rI),_.R("design:type",Object)],xf.prototype,"ironResizableBehavior",void 0);_.O([_.f(_.D2u),_.R("design:type",Object)],xf.prototype,"ytdExpandableInputBehavior",void 0);
_.O([_.f(_.SO.YtdGuideStateAwareBehavior),_.R("design:type",Object)],xf.prototype,"ytdGuideStateAwareBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],xf.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],xf.prototype,"ytComponentBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],xf.prototype,"ytRendererBehavior",void 0);
_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],xf.prototype,"ytActionHandlerBehavior",void 0);_.O([_.f(_.fY),_.R("design:type",Object)],xf.prototype,"ytdReduxBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],xf.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],xf.prototype,"narrow",void 0);_.O([_.U(),_.R("design:type",Object)],xf.prototype,"logoType",void 0);_.O([_.U(),_.R("design:type",Boolean)],xf.prototype,"voiceEnabled",void 0);
_.O([_.U(),_.R("design:type",Object)],xf.prototype,"menuStrings",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],xf.prototype,"dark",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],xf.prototype,"pageDarkTheme",void 0);_.O([_.U(),_.R("design:type",Object)],xf.prototype,"watchPageScrollTop",void 0);_.O([_.U({reflectToAttribute:!0,selector:_.uW}),_.R("design:type",Boolean)],xf.prototype,"isWatchPage",void 0);
_.O([_.U({reflectToAttribute:!0,selector:_.KMm}),_.R("design:type",Boolean)],xf.prototype,"isShortsPage",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],xf.prototype,"theater",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],xf.prototype,"fullscreen",void 0);_.O([_.U({reflectToAttribute:!0,selector:_.iO3}),_.R("design:type",String)],xf.prototype,"frostedGlassMode",void 0);_.O([_.U(),_.R("design:type",Object)],xf.prototype,"ytSearchboxFocused",void 0);
_.O([_.Ks("#buttons > *"),_.R("design:type",Array)],xf.prototype,"buttons",void 0);_.O([_.Ks("ytd-button-renderer"),_.R("design:type",Array)],xf.prototype,"buttonRenderers",void 0);_.O([_.Iu("#background"),_.R("design:type",HTMLDivElement)],xf.prototype,"background",void 0);_.O([_.Iu("#guide-button"),_.R("design:type",Object)],xf.prototype,"guideButton",void 0);_.O([_.Iu("#logo"),_.R("design:type",Object)],xf.prototype,"logo",void 0);
_.O([_.U({computed:"computeButtonOverride(dark)"}),_.R("design:type",Object)],xf.prototype,"buttonOverrides",void 0);_.O([_.kr("dark"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],xf.prototype,"onDarkChanged",null);_.O([_.U({value:function(){return this.onVoiceTap.bind(this)}}),
_.R("design:type",Function)],xf.prototype,"boundOnTapVoiceButton",void 0);_.O([_.U(),_.R("design:type",Object)],xf.prototype,"topbarIsAboveChipbar",void 0);_.O([_.U(),_.R("design:type",String),_.R("design:paramtypes",[])],xf.prototype,"guideIcon",null);_.O([_.q("voiceEnabled"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],xf.prototype,"shouldShowVoiceSearchButton",null);_.O([_.q("data"),_.R("design:type",Object),_.R("design:paramtypes",[])],xf.prototype,"voiceSearchButton",null);
_.O([_.kr("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],xf.prototype,"dataChanged",null);_.O([_.ps("yt-rendererstamper-finished"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],xf.prototype,"onRendererStamperFinished",null);_.O([_.kr("isWatchPage"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],xf.prototype,"onWatchPageChange",null);
_.O([_.kr("narrow"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],xf.prototype,"narrowChanged",null);xf=_.O([_.E({disableElementRegistration:!0,is:"ytd-masthead"})],xf);
_.v(xf,"ytd-masthead",function(){if(QCR!==void 0)return QCR;var J=document.createElement("template");_.z(J,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-masthead--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query query="max-width: 656px" query-matches="[[narrow]]" on-query-matches-changed="updateNarrowFromBinding" class="style-scope ytd-masthead">\n</iron-media-query>\n<div id="ticker" class="style-scope ytd-masthead"></div>\n<div id="interstitial" class="style-scope ytd-masthead"></div>\n<div id="background" hidden="[[hideBackground]]" class="style-scope ytd-masthead"></div>\n<div id="container" class="style-scope ytd-masthead">\n  <div id="start" class="style-scope ytd-masthead">\n    <yt-icon-button id="back-button" label="[[menuStrings.BACK_ALT_LABEL]]" on-click="onSearchCloseClick" class="style-scope ytd-masthead">\n      <yt-icon disable-upgrade$="[[!showInput]]" icon="yt-icons:arrow-back" class="style-scope ytd-masthead">\n      </yt-icon>\n    </yt-icon-button>\n    <tp-yt-paper-tooltip id="back-button-tooltip" disable-upgrade$="[[!showInput]]" for="back-button" class="style-scope ytd-masthead">\n      [[menuStrings.BACK_ALT_LABEL]]\n    </tp-yt-paper-tooltip>\n    <yt-icon-button id="guide-button" label="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="[[guideOpened]]" toggleable="true" on-click="onGuideToggleTap" on-keydown="onGuideButtonKeydown" on-mouseenter="onGuideToggleHover" class="style-scope ytd-masthead">\n      <yt-icon id="guide-icon" icon="[[guideIcon]]" class="style-scope ytd-masthead"></yt-icon>\n    </yt-icon-button>\n    <slot name="masthead-logo" class="style-scope ytd-masthead"></slot>\n    <ytd-topbar-logo-renderer id="logo" country-code="[[data.countryCode]]" data="[[data.logo.topbarLogoRenderer]]" logo-type="[[logoType]]" use-dark-theme-yoodle="[[dark]]" class="style-scope ytd-masthead">\n    </ytd-topbar-logo-renderer>\n    <div id="skip-navigation" class="style-scope ytd-masthead"></div>\n  </div>\n  <div id="center" hidden="[[computeCenterHidden(data)]]" class="style-scope ytd-masthead">\n    <yt-searchbox clear-button-aria-label="[[data.searchbox.fusionSearchboxRenderer.clearButton.buttonRenderer.accessibilityData.accessibilityData.label]]" focus-callback="[[setYtSearchboxFocused]]" force-dark-mode="[[dark]]" labels="[[searchboxLabels]]" placeholder-text="[[computeSimpleText(data.searchbox.fusionSearchboxRenderer.placeholderText)]]" search-endpoint="[[data.searchbox.fusionSearchboxRenderer.searchEndpoint]]" voice-search-button="[[voiceSearchButton]]" class="style-scope ytd-masthead">\n    </yt-searchbox>\n    <yt-icon-button id="search-button-narrow" label="[[menuStrings.SEARCH_ALT_LABEL]]" on-click="openOnClick_" class="style-scope ytd-masthead">\n      <yt-icon class="topbar-icons style-scope ytd-masthead" disable-upgrade$="[[!narrow]]" icon="yt-icons:search">\n      </yt-icon>\n      <tp-yt-paper-tooltip disable-upgrade$="[[!narrow]]" for="search-button-narrow" hidden="[[!narrow]]" class="style-scope ytd-masthead">\n        [[menuStrings.SEARCH_ALT_LABEL]]\n      </tp-yt-paper-tooltip>\n    </yt-icon-button>\n    <div id="voice-search-button" hidden="[[!shouldShowVoiceSearchButton]]" class="style-scope ytd-masthead">\n    </div>\n  </div>\n  <div id="end" class="style-scope ytd-masthead">\n    <slot name="masthead-skeleton" class="style-scope ytd-masthead"></slot>\n    <div id="buttons" class="style-scope ytd-masthead"></div>\n  </div>\n</div>\n');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return QCR=J},{mode:_.mP("kevlar_poly_si_batch_j036")?1:2});var PEr;var My1={},pIp={},N0S={},typ={},IqR=(typ.OFFLINE=(My1["publicytnetworkstatus-online"]="BACK_ONLINE",My1),typ.ONLINE=(pIp["publicytnetworkstatus-offline"]="OFFLINE",pIp),typ.BACK_ONLINE=(N0S["publicytnetworkstatus-offline"]="OFFLINE",N0S.TIMER_TRIGGER="ONLINE",N0S),typ),Vo=function(){var J=_.h.apply(this,arguments)||this;J.currentState="ONLINE";J.scheduledJobId=0;J.bannerString="";J.bannerVe=null;J.networkStatusManagerInstance=new _.On;return J};
_.D(Vo,_.h);_.V=Vo.prototype;_.V.attached=function(){var J=this;this.networkStatusManagerInstance.isNetworkAvailable()||this.stateChangeHandler("publicytnetworkstatus-offline");this.networkStatusManagerInstance.listen("publicytnetworkstatus-online",function(){J.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.listen("publicytnetworkstatus-offline",function(){J.stateChangeHandler("publicytnetworkstatus-offline")})};
_.V.detached=function(){var J=this;this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-online",function(){J.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-offline",function(){J.stateChangeHandler("publicytnetworkstatus-offline")})};
_.V.enterState=function(J){var c=this;this.scheduledJobId&&_.ft.cancelJob(this.scheduledJobId);J==="ONLINE"?(this.logVisibility(!1),this.bannerString=""):J==="OFFLINE"?(this.logVisibility(!0),this.bannerString=_.CX("NO_INTERNET_CONNECTION",void 0,"No internet connection")):J==="BACK_ONLINE"&&(this.bannerString=_.CX("BACK_ONLINE",void 0,"Back Online"),this.scheduledJobId=_.rv(_.ft,function(){c.stateChangeHandler("TIMER_TRIGGER")},3E3));
this.currentState=J};
_.V.stateChangeHandler=function(J){(J=IqR[this.currentState][J])&&this.enterState(J)};
_.V.logVisibility=function(J){var c=_.Y3();this.createBannerVe(J);c&&this.bannerVe&&(J?_.vA(c,[this.bannerVe]):_.O2(c,[this.bannerVe]))};
_.V.createBannerVe=function(J){!this.bannerVe&&J&&(this.bannerVe=_.rs(37929),_.c$(_.C7(),this.bannerVe))};
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",String)],Vo.prototype,"currentState",void 0);_.O([_.U(),_.R("design:type",Object)],Vo.prototype,"scheduledJobId",void 0);_.O([_.U(),_.R("design:type",Object)],Vo.prototype,"bannerString",void 0);Vo=_.O([_.E({disableElementRegistration:!0,is:"ytd-network-status-banner"})],Vo);
_.v(Vo,"ytd-network-status-banner",function(){if(PEr!==void 0)return PEr;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return PEr=
J},{mode:1});var Kap;var Ph=function(){var J=_.h.apply(this,arguments)||this;J.actionMap={"yt-update-permission-role-command":"handleUpdatePermissionRoleCommand"};J.hidden=!0;J.frostedGlass=_.w("web_frosted_glass");return J};
_.D(Ph,_.h);Ph.prototype.computeHidden=function(J){return J&&J.status?!1:!0};
Ph.prototype.handleUpdatePermissionRoleCommand=function(J){if(J=_.L(J,_.cWQ))if(J=_.L(J.renderer,_.JWu))this.data=J};
_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],Ph.prototype,"ytActionHandlerBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],Ph.prototype,"componentBehavior",void 0);_.O([_.U({value:!0,computed:"computeHidden(data)"}),_.R("design:type",Object)],Ph.prototype,"hidden",void 0);_.O([_.U(),_.R("design:type",Object)],Ph.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],Ph.prototype,"frostedGlass",void 0);
Ph=_.O([_.E({disableElementRegistration:!0,is:"ytd-permission-role-bottom-bar-renderer"})],Ph);
_.v(Ph,"ytd-permission-role-bottom-bar-renderer",function(){if(Kap!==void 0)return Kap;var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);return Kap=J},{mode:1});var CEo;var aqp;var snF={productId:"5047190",bucket:"suggest",enableAnonymousFeedback:!0,flow:"submit",allowNonLoggedInFeedback:!0};var MY=function(){return _.h.apply(this,arguments)||this};
_.D(MY,_.h);_.V=MY.prototype;_.V.attached=function(){this.JSC$18530_scroller&&(this.JSC$18530_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18530_scroller.attached&&typeof this.JSC$18530_scroller.attached==="function"&&this.JSC$18530_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.V.dataChanged=function(){if(this.data!==void 0){Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).forEach(function(m){m.checked=!1});
this.catagorySelected=this.suggestionSelected=!1;var J=_.Bj(this.hostElement);J.querySelector("tp-yt-paper-radio-group").selected="";var c=J.querySelector("#reason-text");c&&(c.value="");J.querySelector("#description-text").value=""}};
_.V.canSubmit=function(J,c){_.cA(this.hostElement,"yt-invalidate-popup-tabbables");return!(J&&c)};
_.V.onCancel=function(){_.m9(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"])};
_.V.onSubmit=function(){var J=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).filter(function(P){return P.active}).map(function(P){return P.innerText.trim()}),c=this.hostElement.querySelector("tp-yt-paper-radio-group"),m=c.selectedItem,b=m.name;
m=m.innerText.trim();var x=c.querySelector("#reason-text");c=void 0;x&&(c=x.value);(x=this.descriptionText.value)&&(x=x.trim());L91(this.data.searchQuery,J,b,m,x,c);_.m9(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"]);this.sendFormSubmitToast()};
_.V.sendFormSubmitToast=function(){var J=_.ek(_.CX("SBOX_INAPPROPRIATE_TOAST"));_.m9(this.hostElement,"yt-open-popup-action",[J,this])};
_.V.onIronChange=function(){this.suggestionSelected=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).some(function(J){return J.active})};
_.V.onIronSelect=function(){this.catagorySelected=!!this.hostElement.querySelector("tp-yt-paper-radio-group").selected};
MY.prototype.onIronSelect=MY.prototype.onIronSelect;MY.prototype.onIronChange=MY.prototype.onIronChange;MY.prototype.dataChanged=MY.prototype.dataChanged;_.O([_.U(),_.R("design:type",Object)],MY.prototype,"data",void 0);_.O([_.U({value:!0,computed:"canSubmit(suggestionSelected,catagorySelected)"}),_.R("design:type",Boolean)],MY.prototype,"submitDisabled",void 0);_.O([_.U(),_.R("design:type",Boolean)],MY.prototype,"suggestionSelected",void 0);
_.O([_.U(),_.R("design:type",Boolean)],MY.prototype,"catagorySelected",void 0);_.O([_.Iu("#scroller"),_.R("design:type",Object)],MY.prototype,"JSC$18530_scroller",void 0);_.O([_.Iu("#description-text"),_.R("design:type",Object)],MY.prototype,"descriptionText",void 0);_.O([_.kr("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],MY.prototype,"dataChanged",null);
_.O([_.ps("iron-change"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],MY.prototype,"onIronChange",null);_.O([_.ps("iron-select"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],MY.prototype,"onIronSelect",null);MY=_.O([_.E({disableElementRegistration:!0,is:"ytd-search-suggestion-report-dialog"})],MY);
_.v(MY,"ytd-search-suggestion-report-dialog",function(){if(aqp!==void 0)return aqp;var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return aqp=J},{mode:1});var pB=function(J){var c=J.openPopupAction;var m=J.target;var b=J.container;var x=J.popupContainerConfig;var P=J.getElement;J=J.removeWhenClosed===void 0?!1:J.removeWhenClosed;this.naturalHeight=this.popupContent=this.popup=void 0;this.openPopupAction=c;this.target=m;this.container=b;this.popupContainerConfig=x;this.getElement=P;this.JSC$18536_popupConfig=this.popupContainerConfig.JSC$17651_popupConfig[this.openPopupAction.popupType];this.rendererName=(c=this.getName())?_.$lJ(c,yMS(this.popupContainerConfig,
c)):"";_.w("ytpopup_disable_default_html_caching")&&(this.removeWhenClosed=J);this.createPopup()};
pB.prototype.updatePopup=function(J){this.openPopupAction=J;this.JSC$18536_popupConfig=this.popupContainerConfig.JSC$17651_popupConfig[this.openPopupAction.popupType];k5u(this);_.w("reorder_popup_updates_killswitch")&&HSF(this);_.w("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0)};
var T0h=function(J,c,m){J.target=m;var b;m=((b=J.target.polymerController)!=null?b:J.target).popupPositionTarget||J.target;J.JSC$18536_popupConfig.targetContainer&&(m=J.container);J.popup.positionTarget=m;J.popupContent.positionTarget=m;_.w("reorder_popup_updates_killswitch")||HSF(J);J.JSC$18536_popupConfig.forceFocus&&(J.popupContent.style.outline="none");J.popupContent.tabIndex=-1;J.JSC$18536_popupConfig.narrowProperties&&(J.popup.style.position="static");J.JSC$18536_popupConfig.preventAutonav&&
J.popup.setAttribute("prevent-autonav",!0);J.JSC$18536_popupConfig.forceCloseOnOutsideClick&&J.popup.setAttribute("force-close-on-outside-click",!0);iSf(J,c);nPh(J,J.JSC$18536_popupConfig.styles);J.isRtl()&&nPh(J,J.JSC$18536_popupConfig.rtlStyles);if(!J.openPopupAction.shouldStopParentSignal){var x;c=(x=J.target.polymerController)!=null?x:J.target;(J.popupContent.startForwardingEvents||J.popupContainerConfig.forwardingEnabledPopups.has(J.rendererName))&&c.parentComponent!==J.popupContent&&J.popupContent!==
J.target&&J.target!==document.body&&(J.popupContent.startForwardingEvents?J.popupContent.startForwardingEvents(J.popupContainerConfig.forwardedEvents,J.target):(J.JSC$18536_eventForwarder||(J.JSC$18536_eventForwarder=new _.pZ(J.popupContent)),J.JSC$18536_eventForwarder.start(J.popupContainerConfig.forwardedEvents,J.target)))}};
pB.prototype.refit=function(){this.popup.opened&&this.popup.refit()};
var iSf=function(J,c){wIe(J,c&&J.JSC$18536_popupConfig.narrowProperties?J.JSC$18536_popupConfig.narrowProperties:J.JSC$18536_popupConfig.properties);J.isRtl()&&wIe(J,J.JSC$18536_popupConfig.rtlProperties);HSF(J)};
pB.prototype.createPopup=function(){var J=this.JSC$18536_popupConfig.component;if(this.popupContent=rA4(this,this.rendererName)){if(J){this.popup=rA4(this,J);var c=this.popupContent;_.w("web_enable_wrapper_for_cow_component_in_popup")&&(c=document.createElement("div"),c.appendChild(this.popupContent));_.w("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0);this.JSC$18536_popupConfig.slotName&&c.setAttribute("slot",this.JSC$18536_popupConfig.slotName);J=this.popup;var m=this.container.tagName.toLowerCase(),
b=_.R1(c);_.buJ(_.QS(J),_.FB(c,m,b));document.body.appendChild(this.popup)}else this.popup=this.popupContent;_.w("ytpopup_disable_default_html_caching")&&(this.popup.removeWhenClosed=this.removeWhenClosed);_.Bj(this.container).appendChild(this.popup)}};
var k5u=function(J){var c,m,b=(c=J.openPopupAction.accessibilityData)==null?void 0:(m=c.accessibilityData)==null?void 0:m.label;b&&(J.popup.ariaLabel=b);var x;((x=J.popupContent.polymerController)!=null?x:J.popupContent).data=(0,_.Lw.unsafeClone)(J.openPopupAction.popup[J.getName()]);J.popupContent.duration=sVu(J);J.popupContent.positionType=J.openPopupAction.position;var P=J.openPopupAction.properties;P&&Object.keys(P).forEach(function(p){J.popupContent[p]=P[p]})},wIe=function(J,c){if(c)for(var m=
_.M(Object.keys(c)),b=m.next();!b.done;b=m.next())b=b.value,J.popup[b]=c[b]},HSF=function(J){if(J.openPopupAction.position){var c=J.JSC$18536_popupConfig.positionalProperties&&J.JSC$18536_popupConfig.positionalProperties[J.openPopupAction.position],m=J.JSC$18536_popupConfig.rtlPositionalProperties&&J.JSC$18536_popupConfig.rtlPositionalProperties[J.openPopupAction.position];
c=J.isRtl()&&m?m:c;c.shiftedHorizontalOffset&&(m=J.popup.style.display,J.popup.style.display="block",J.popupContent&&J.popup.positionTarget&&J.popupContent.clientWidth>J.popup.positionTarget.clientWidth&&(c.horizontalOffset=J.popup.positionTarget.clientWidth/2-c.shiftedHorizontalOffset),J.popup.style.display=m);wIe(J,c)}},nPh=function(J,c){if(c)for(var m=_.M(Object.keys(c)),b=m.next();!b.done;b=m.next())b=b.value,J.popup.style[b]=c[b]};
pB.prototype.getName=function(){return _.Xk(this.openPopupAction.popup,"renderer")||_.Xk(this.openPopupAction.popup,"dialog")||_.Xk(this.openPopupAction.popup,"model")||void 0};
var sVu=function(J){J=J.openPopupAction.durationHintMs;return J===0?J:Math.max(4E3,J||4E3)};
pB.prototype.isRtl=function(){return _.Ub("HTML_DIR")==="rtl"};
var rA4=function(J,c){J=J.getElement(c,J.target);J==null&&_.qz(new _.w3("popup getElement returned null",c));return J};var La1={};
La1.YtPopupContainerBehavior=[_.qH.YtComponentBehavior,_.yw.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_);_.gK(this.hostElement,!1)},
detached:function(){this.unregisterActionMap(this.popupContainerActionMap_);_.JS(this.hostElement)},
closePopup:function(J){var c=this.createCacheKey(void 0,J);this.popups_[c]&&this.handleClosePopupAction_(void 0,J)},
windowResizedOrScrolled_:function(){this.setPopupPositioningJobId_||(this.setPopupPositioningJobId_=_.ft.addLowPriorityJob(this.setPopupPositioning_.bind(this)));this.setPopupVisibilityJobId_||(this.setPopupVisibilityJobId_=_.ft.addLowPriorityJob(this.setPopupVisibility_.bind(this)))},
setPopupPositioning_:function(){this.dynamicallyPositionedElements_.forEach(function(J){J.opened&&J.keepBelowPlayer&&this.ensurePopupBelowPlayer(J)},this);
this.setPopupPositioningJobId_=0},
setPopupVisibility_:function(){for(var J in this.popups_){var c=this.popups_[J];if(c.popup.scrollAction==="refit"){var m=c.popup.positionTarget.getBoundingClientRect(),b=c.popup;m=m.top;var x=c;if(!x.naturalHeight){x.popup.hidden=!1;x.popup.style.position="fixed";x.popup.style.top="0px";x.popup.style.left="0px";var P=x.popup.getBoundingClientRect();x.naturalHeight=P.bottom-P.top;x.popup.refit()}b.hidden=!(m>=x.naturalHeight+60);c.popupContent.clientHeight===0&&c.popup.refit()}}this.setPopupVisibilityJobId_=
0},
ensurePopupBelowPlayer:function(){return!1},
initPopupContainerBehavior:function(J){this.popupContainerConfig=J},
handleOpenPopupAction:function(J,c){var m=J.openPopupAction,b=_.BG().resolve(_.y6(_.YtL))&&m.popupType==="TOAST";b&&!m.uniqueId&&(m.uniqueId=_.LD());if(!_.w("popup_container_parent_target_killswitch")){var x;c=(x=this.getParentTarget(c))!=null?x:c}var P=this.ensurePopup_(m,c);return new _.IN(function(p){P.then(function(t){if(!t)return p();this.maybeCreateNarrowMediaQuery_();var I=this.createCacheKey(t.rendererName,t.openPopupAction.uniqueId);if(m.showOncePerUniqueId){if(this.shownPopupKeys_.has(I))return p();
this.shownPopupKeys_.add(I)}I=this.popups_[I];var a=!(!I||!I.openPopupAction.beReused);a=!!m.reusePopup||a;if(t.popup.opened&&!a){b&&!t.openPopupAction.replacePopup||this.handleClosePopupAction_(t.rendererName,t.openPopupAction.uniqueId);a=m.popupType==="DIALOG"&&!_.w("popup_container_dialog_reopen_killswitch");if(!b&&!a&&I&&I.target==c&&!t.openPopupAction.replacePopup)return p();_.o3(t.popup,function(){this.completeOpenPopupAction_(m,c,t);p()}.bind(this))}else t.popup.opened?t.updatePopup(m):this.completeOpenPopupAction_(m,
c,t),p()}.bind(this))}.bind(this))},
getParentTarget:function(J){if(J&&J instanceof HTMLElement)for(var c=_.M(Object.entries(this.popups_)),m=c.next();!m.done;m=c.next())if(m=_.M(m.value),m.next(),m=m.next().value,m.popup.tagName==="TP-YT-IRON-DROPDOWN"&&J.closest(m.rendererName))return m.target},
completeOpenPopupAction_:function(J,c,m){_.w("reorder_popup_updates_killswitch")?(T0h(m,this.narrowMediaQuery_.queryMatches,c),m.updatePopup(J)):(m.updatePopup(J),T0h(m,this.narrowMediaQuery_.queryMatches,c));J=m.popup;J.addEventListener("iron-overlay-opened",_.ME(this,this.onPopupIronOverlayOpened_));J.addEventListener("iron-overlay-closed",_.ME(this,this.onPopupIronOverlayClosed_));J.addEventListener("iron-overlay-canceled",_.ME(this,this.onPopupIronOverlayCanceled_));J.addEventListener("yt-refit",
_.ME(this,this.refitPopup_));J.addEventListener("yt-invalidate-popup-tabbables",_.ME(this,this.handleInvalidatePopupTabbables_));J.open()},
getPopupDurationMs_:function(J){return J.durationHintMs===0?J.durationHintMs:Math.max(4E3,J.durationHintMs||4E3)},
handleClosePopupAction_:function(J,c){var m=_.w("web_popup_cache_key_killswitch")||!!c;if(J||m){var b=this.createCacheKey(J,c);J=(J=this.popups_[b])&&J.popup}else J=_.cPz(_.ST);if(J&&J.close){if(c=_.BG().resolve(_.y6(_.Js)))J.restoreFocusOnClose=c.isKeyBoardInUse();J.close();this.removePopup_(J,b)}},
handleClosePopupCommand_:function(J){J.closePopupCommand&&J.closePopupCommand.uniquePopupId&&this.handleClosePopupAction_(void 0,J.closePopupCommand.uniquePopupId)},
handleCloseAllPopupsAction_:function(J){var c={},m;for(m in this.popups_)if(c={key$jscomp$1165:c.key$jscomp$1165},c.key$jscomp$1165=m,!J||!J.some(function(P){return function(p){return p==P.key$jscomp$1165}}(c))){var b=this.popups_[c.key$jscomp$1165],x=b.popup;
_.BG().resolve(_.y6(_.YtL))&&b.openPopupAction.popupType==="TOAST"||(x&&x.close&&x.close(),this.removePopup_(x,c.key$jscomp$1165))}},
handleClosePopupsAction_:function(J){J.forEach(function(c){var m=this.popups_[c];m&&((m=m.popup)&&m.close&&m.close(),this.removePopup_(m,c))}.bind(this))},
handleGetPopupOpenedAction_:function(J,c){return(c=this.createCacheKey(J,c))&&this.popups_[c]?this.popups_[J].popup.opened:!1},
handleGetOpenedPopupsAction_:function(){var J=[],c;for(c in this.popups_){var m=this.popups_[c];m.popup.opened&&J.push(m)}return J},
getOpenedPopups:function(){this.handleGetOpenedPopupsActions_()},
handleSignalActionClosePopup_:function(){this.handleCloseAllPopupsAction_()},
removePopup_:function(J,c){_.w("ytpopup_disable_default_html_caching")&&J&&J.removeWhenClosed&&(_.Bj(this.hostElement).removeChild(J),c&&this.popups_[c]&&delete this.popups_[c])},
shouldReusePopup_:function(J){return!(!J||!J.reusePopup)||!(!J||!J.beReused)},
ensurePopup_:function(J,c){this.maybeCreateNarrowMediaQuery_();var m=_.Xk(J.popup,"renderer")||_.Xk(J.popup,"dialog")||_.Xk(J.popup,"model");if(!m)return _.ML();m=_.$lJ(m,yMS(this.popupContainerConfig,m));return _.ML(this.getAndMaybeCreatePopup_(J,m,c))},
getAndMaybeCreatePopup_:function(J,c,m){var b=this.createCacheKey(c,J.uniqueId);if(this.popups_[b])return this.popups_[b];J=new pB({openPopupAction:J,target:m,container:this.hostElement,popupContainerConfig:this.popupContainerConfig,getElement:this.getElement.bind(this),removeWhenClosed:this.shouldRemoveWhenClosed_(c)});return this.popups_[b]=J},
getElement:function(){return null},
shouldRemoveWhenClosed_:function(J){return _.w("ytpopup_disable_default_html_caching")?J&&J.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",_.ME(this,this.openPopupQueryMatchesChanged_)),_.Bj(this.hostElement).appendChild(this.narrowMediaQuery_))},
openPopupQueryMatchesChanged_:function(J){J=J.detail.value;for(var c in this.popups_)iSf(this.popups_[c],J)},
onPopupIronOverlayClosed_:function(J){var c=J.currentTarget,m=_.LB2(c);m=m.length>0?m[0]:c;if(m.is!=="ytd-reel-watch-while-dialog-renderer"||J.target.is!=="tp-yt-iron-dropdown"){J.detail.popup=c;J.detail.popupRenderer=m;var b,x={context:{openingElement:((b=this.popups_[(m==null?void 0:m.is)||""])==null?void 0:b.target)||void 0}};Object.assign(x,J.detail);var P;_.cA((P=m.hostElement)!=null?P:m,"yt-popup-closed",x);c.removeEventListener("yt-refit",_.ME(this,this.refitPopup_));c.removeEventListener("yt-invalidate-popup-tabbables",
_.ME(this,this.handleInvalidatePopupTabbables_));c.removeEventListener("iron-overlay-canceled",_.ME(this,this.onPopupIronOverlayCanceled_));c.removeEventListener("iron-overlay-closed",_.ME(this,this.onPopupIronOverlayClosed_));this.dynamicallyPositionedElements_.delete(c)}},
onPopupIronOverlayCanceled_:function(J,c){var m=J.currentTarget,b=_.LB2(m);b=b.length>0?b[0]:m;if(b.is!=="ytd-reel-watch-while-dialog-renderer"||J.target.is!=="tp-yt-iron-dropdown"){var x;_.cA((x=b.hostElement)!=null?x:b,"yt-popup-canceled",J.detail);x=c?_.OT(c):null;(!c||["click","tap"].includes(c.type))&&!m.hasAttribute("force-close-on-outside-click")&&m.positionTarget&&x&&x.includes(m.positionTarget)&&J.preventDefault();m.restoreFocusOnClose=_.KV.keyboardEventMatchesKeys(c,"esc")}},
onPopupIronOverlayOpened_:function(J){J=J.currentTarget;var c=_.LB2(J);c=c.length>0?c[0]:J;var m,b;_.cA((m=c.hostElement)!=null?m:c,"yt-popup-opened",(b=c.hostElement)!=null?b:c);J.keepBelowPlayer&&(this.ensurePopupBelowPlayer(J,!0),this.dynamicallyPositionedElements_.add(J));m=_.BG().resolve(_.y6(_.Js));b=!!c.querySelector("#toast");m&&m.isKeyBoardInUse()&&!b&&(typeof c.focusFirstItem==="function"?c.focusFirstItem():(c=_.BpQ(J),c.length&&c[0].focus()));J.removeEventListener("iron-overlay-opened",
_.ME(this,this.onPopupIronOverlayOpened_))},
refitPopup_:function(J){J=J.currentTarget;J.refit&&J.refit()},
refitPopups_:function(){for(var J in this.popups_)this.popups_[J].refit()},
handleInvalidatePopupTabbables_:function(J){J=J.currentTarget;J.invalidateTabbables&&J.invalidateTabbables()},
createCacheKey:function(J,c){return _.w("web_popup_cache_key_killswitch")?c?J+"#"+c:J:c?"#"+c:J},
openSheet:function(J,c){var m=J==null?void 0:J.openPopupActionCommand;!m&&(J==null?0:J.viewModel)&&(m={openPopupAction:{popup:{sheetViewModel:J.viewModel},popupType:"CONTEXTUAL_SHEET"}});m&&this.handleOpenPopupAction(m,c)},
closeSheet:function(){this.handleClosePopupAction_("yt-sheet-view-model")},
isSheetOpen:function(){var J=this;return _.N(function(c){return c.return(J.handleGetOpenedPopupsAction_().filter(function(m){var b;return((b=m.openPopupAction)==null?void 0:b.popupType)==="CONTEXTUAL_SHEET"}).length>0)})},
getSheetContainerElement:function(){return this.hostElement},
openDialog:function(J,c,m){if(_.w("web_dialog_utils_killswitch")){var b=J==null?void 0:J.openPopupActionCommand,x=(m==null?0:m.ariaLabel)?{accessibilityData:{accessibilityData:{label:m.ariaLabel}}}:void 0;!b&&(J==null?0:J.viewModel)&&(b={openPopupAction:Object.assign({},{popup:{dialogViewModel:J.viewModel},popupType:(m==null?0:m.isModal)?"MODAL":"DIALOG"},x&&x)});b&&this.handleOpenPopupAction(b,c)}else{if(x=J==null?void 0:J.viewModel){var P=m=m===void 0?{}:m;m=P.ariaLabel;x={popup:{dialogViewModel:x},
popupType:P.isModal?"MODAL":"DIALOG"};P={accessibilityData:{label:m}};m&&(x.accessibilityData=P);x={openPopupAction:x}}else x=void 0;(x=(b=x)!=null?b:J==null?void 0:J.openPopupActionCommand)&&this.handleOpenPopupAction(x,c)}},
closeDialog:function(){this.handleClosePopupAction_("yt-dialog-view-model")},
isDialogOpen:function(){var J=this;return _.N(function(c){return c.return(J.handleGetOpenedPopupsAction_().filter(function(m){var b;return((b=m.openPopupAction)==null?void 0:b.popupType)==="DIALOG"}).length>0)})}}];var DIe;var Wa5;var znr=_.Oo(["about:blank"]),NY=function(){var J=_.h.apply(this,arguments)||this;J.isMuted=!1;J.pageLoadTimeoutId=void 0;return J};
_.D(NY,_.h);_.V=NY.prototype;_.V.dataChanged=function(){var J=this;if(this.data){this.ytRendererBehavior.markDirty();this.isMuted=!1;var c=this.data.url,m=_.Y$(c);_.w("enable_yt_ata_iframe_authuser")?(m=_.Y$(c),_.Yh(this.iframe,DL4(m))):_.Yh(this.iframe,m);this.pageLoadTimeoutId=_.rv(_.LZ(),function(){return void J.logStateChanged({pageLoadTimedOut:!0})},5E3);
_.Qa({destination:window,iframe:this.iframe,origin:_.V6L(m.toString()),channelName:"ataiframe",onMessage:_.HPD(mPp,function(b){bHf(b.data)?(b=_.TR(b.data,1,_.Lr,_.ca()),b.length!==1?_.qz(Error("nl")):(b=b[0],b===3?(J.isMuted=!0,J.logStateChanged({adMuteRequested:!0})):b===1&&J.close())):_.qz(Error("ol"))}),
onEstablished:function(){J.cancelPageLoadTimeout();J.logStateChanged({pageLoadSucceeded:!0})}})}};
_.V.cancelPageLoadTimeout=function(){this.pageLoadTimeoutId!==void 0&&(_.LZ().cancelJob(this.pageLoadTimeoutId),this.pageLoadTimeoutId=void 0)};
_.V.logStateChanged=function(J){var c;if((c=this.data)==null?0:c.trackingParams)J={adsClientData:{aboutThisAdData:J}},_.C7().stateChanged(this.data.trackingParams,J)};
_.V.close=function(){_.m9(this.hostElement,"yt-close-popup-action",[this.is])};
_.V.handlesPopupClosed=function(J,c){var m=this,b,x;return _.N(function(P){if(P.nextAddress==1)return _.Ub("INNERTUBE_CLIENT_NAME")==="WEB_KIDS"?(_.m9(m.hostElement,"on-about-this-ad-popup-closed",[m.isMuted,c]),P.jumpTo(0)):J&&W9u(J)?_.K(P,zYf(J),4):(m.isMuted&&_.m9(m.hostElement,"yt-mute-ad-action",[m.is,m]),P.jumpTo(0));if(b=P.yieldResult){var p=x=new _.kP(b),t=m.isMuted;p.getOptions().includes("onAboutThisAdPopupClosed")?_.quQ(p,"onAboutThisAdPopupClosed",{isMuted:t,layoutId:c}):_.yG("Calling onAboutThisAdPopupClosed when adModule is not loaded")}_.tD(P)})};
_.V.onPopupClosed=function(J){var c=this,m,b;return _.N(function(x){m=_.cm(znr);_.Yh(c.iframe,m);c.cancelPageLoadTimeout();if(!c.data)return x.jumpTo(0);c.ytRendererBehavior.markDirty();b=J.detail.context.openingElement;return _.K(x,c.handlesPopupClosed(b,c.data.layoutId),0)})};
_.V.detached=function(){this.cancelPageLoadTimeout()};
_.V.ready=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
NY.prototype.onPopupClosed=NY.prototype.onPopupClosed;NY.prototype.dataChanged=NY.prototype.dataChanged;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],NY.prototype,"ytRendererBehavior",void 0);_.O([_.Iu("#iframe"),_.R("design:type",HTMLIFrameElement)],NY.prototype,"iframe",void 0);_.O([_.U(),_.R("design:type",Object)],NY.prototype,"data",void 0);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],NY.prototype,"dataChanged",null);
_.O([_.ps("yt-popup-closed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype",Promise)],NY.prototype,"onPopupClosed",null);NY=_.O([_.uM({is:"yt-about-this-ad-renderer",disableElementRegistration:!0})],NY);
_.v(NY,"yt-about-this-ad-renderer",function(){if(Wa5===void 0){var J=document.createElement("template");_.z(J,'\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>');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;DIe===void 0&&(DIe=document.createElement("template"));var b=DIe;m.call(c,b.content.cloneNode(!0),J.content.firstChild);Wa5=J}J=Wa5;return J},{mode:2});var u9h;var fq5;var tu=function(J){var c=Error.call(this,"Try adding a file that's {$maxFileSizeMB}MB or smaller");this.message=c.message;"stack"in c&&(this.stack=c.stack);this.maxFileSizeMB=J;Object.setPrototypeOf(this,tu.prototype)};
_.D(tu,Error);var Yff=function(J,c){var m=Error.call(this,"Images must be at least {$minWidth} x {$minHeight} pixels");this.message=m.message;"stack"in m&&(this.stack=m.stack);this.minWidth=J;this.minHeight=c;Object.setPrototypeOf(this,Yff.prototype)};
_.D(Yff,Error);var XIu=function(J){this.requirements=J;this.JSC$18564_maxFileSize=J.maxFileSizeMB*1024*1024},ZS4=function(J,c){if(c.size>J.JSC$18564_maxFileSize)throw new tu(J.requirements.maxFileSizeMB);
};var qfS=function(J,c){this.canvas=J;this.imageEditorBuilder=c};
qfS.prototype.addEventListeners=function(J){var c=function(x){UIu(J,x)};
this.JSC$18570_mouseDownEvent=c;var m=function(x){SfR(J,x)};
this.JSC$18570_mouseMoveEvent=m;var b=function(){hnh(J)};
this.JSC$18570_mouseUpEvent=b;this.canvas.addEventListener("mousedown",c);this.canvas.addEventListener("mousemove",m);document.addEventListener("mouseup",b)};
qfS.prototype.removeEventListeners=function(){this.JSC$18570_mouseDownEvent&&this.canvas.removeEventListener("mousedown",this.JSC$18570_mouseDownEvent);this.JSC$18570_mouseMoveEvent&&this.canvas.removeEventListener("mousemove",this.JSC$18570_mouseMoveEvent);this.JSC$18570_mouseUpEvent&&document.removeEventListener("mouseup",this.JSC$18570_mouseUpEvent)};
var dI1=function(J,c){J.removeEventListeners();return new Promise(function(m){var b=new Image;b.crossOrigin="anonymous";b.onload=function(){var x=J.imageEditorBuilder(J.canvas,b);J.addEventListeners(x);m(x)};
b.src=c})},IX=function(J,c,m,b,x,P,p,t){this.canvas=J;
this.image=c;this.requiredRatio=m;this.minImageCropDimension=b;this.minOutputImageResolution=x;this.component=P;this.styleFocusedCorner=t===void 0?!0:t;this.action=2;this.focusedCorner=this.resizeCorner=0;J=this.canvas.getContext("2d");if(!J)throw Error("pl");this.ctx=J;this.canvasMargin=p!=null?p:24;this.canvasInnerWidth=this.canvas.width-2*this.canvasMargin;p=this.image;J=this.canvasInnerWidth/p.width;p.height*J>912&&(J=p.width/p.height*912/p.width);p=J;this.scaledImageWidth=this.canvas.width%2?
fup(this.image.width*p):uvo(this.image.width*p);this.scaledImageHeight=Math.round(this.image.height*p);this.canvas.height=this.scaledImageHeight+2*this.canvasMargin;this.horizontalMargin=(this.canvas.width-this.scaledImageWidth)/2;this.JSC$18573_overlayMarginBottom=this.JSC$18573_overlayMarginTop=this.canvasMargin;this.JSC$18573_overlayMarginRight=this.JSC$18573_overlayMarginLeft=this.horizontalMargin;this.JSC$18573_overlayWidth=this.scaledImageWidth;this.JSC$18573_overlayHeight=this.scaledImageHeight;
J=this.image.width/this.image.height;J>this.requiredRatio?(this.JSC$18573_overlayWidth=this.canvas.width%2?fup(this.scaledImageHeight*this.requiredRatio):uvo(this.scaledImageHeight*this.requiredRatio),this.JSC$18573_overlayMarginRight=this.JSC$18573_overlayMarginLeft=(this.canvas.width-this.JSC$18573_overlayWidth)/2):J<this.requiredRatio&&(this.JSC$18573_overlayHeight=this.canvas.height%2?fup(this.scaledImageWidth/this.requiredRatio):uvo(this.scaledImageWidth/this.requiredRatio),this.JSC$18573_overlayMarginBottom=
this.JSC$18573_overlayMarginTop=(this.canvas.height-this.JSC$18573_overlayHeight)/2);this.minOverlayWidth=Math.min(this.minImageCropDimension[0]*p,this.scaledImageWidth);$Io(this)};
IX.prototype.getContext=function(){return this.ctx};
var UIu=function(J,c){c={x:Math.round(c.pageX-J.canvas.getBoundingClientRect().left),y:Math.round(c.pageY-J.canvas.getBoundingClientRect().top)};J.dragStart=c;G5s(J,c)!==0?(J.action=1,EPF(J,c),J.resizeCorner=G5s(J,c)):c.x>J.JSC$18573_overlayMarginLeft&&c.x<J.JSC$18573_overlayMarginLeft+J.JSC$18573_overlayWidth&&c.y>J.JSC$18573_overlayMarginTop&&c.y<J.JSC$18573_overlayMarginTop+J.JSC$18573_overlayHeight&&(J.action=0)},vPR=function(J,c){switch(c){case 1:return{x:J.JSC$18573_overlayMarginLeft,
y:J.JSC$18573_overlayMarginTop};case 2:return{x:J.JSC$18573_overlayMarginLeft,y:J.JSC$18573_overlayMarginTop+J.JSC$18573_overlayHeight};case 3:return{x:J.JSC$18573_overlayMarginLeft+J.JSC$18573_overlayWidth,y:J.JSC$18573_overlayMarginTop};case 4:return{x:J.JSC$18573_overlayMarginLeft+J.JSC$18573_overlayWidth,y:J.JSC$18573_overlayMarginTop+J.JSC$18573_overlayHeight};default:throw Error("ql");}},AAS=function(J,c){if(J.focusedCorner!==0){J.dragStart=vPR(J,J.focusedCorner);
J.action=1;J.resizeCorner=J.focusedCorner;var m=J.dragStart.x,b=J.dragStart.y;switch(c){case 0:J.focusedCorner===1||J.focusedCorner===4?(m-=10,b-=10):(m-=10,b+=10);break;case 1:J.focusedCorner===1||J.focusedCorner===4?(m+=10,b+=10):(m+=10,b-=10);break;case 2:m=J.focusedCorner===1||J.focusedCorner===4?m-10:m+10;b-=10;break;case 3:m=J.focusedCorner===1||J.focusedCorner===4?m+10:m-10;b+=10;break;default:throw Error("rl");}OS5(J,{x:m,y:b});$Io(J);J.action=2;J.dragStart=void 0}},SfR=function(J,c){c={x:Math.round(c.pageX-
J.canvas.getBoundingClientRect().left),
y:Math.round(c.pageY-J.canvas.getBoundingClientRect().top)};EPF(J,c);switch(J.action){case 1:OS5(J,c);break;case 0:J.dragStart&&(J.JSC$18573_overlayMarginLeft=Math.max(J.horizontalMargin,Math.min(J.JSC$18573_overlayMarginLeft-(J.dragStart.x-c.x),J.horizontalMargin+J.scaledImageWidth-J.JSC$18573_overlayWidth)),J.JSC$18573_overlayMarginRight=J.canvas.width-J.JSC$18573_overlayMarginLeft-J.JSC$18573_overlayWidth,J.JSC$18573_overlayMarginTop=Math.max(J.canvasMargin,Math.min(J.JSC$18573_overlayMarginTop-
(J.dragStart.y-c.y),J.scaledImageHeight-J.JSC$18573_overlayHeight+J.canvasMargin)),J.JSC$18573_overlayMarginBottom=J.canvas.height-(J.JSC$18573_overlayMarginTop+J.JSC$18573_overlayHeight));break;default:return}$Io(J);J.dragStart=c},hnh=function(J){J.action=2;
J.dragStart=void 0;document.body.style.cursor="auto"},EPF=function(J,c){switch(G5s(J,c)){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:J.action!==1&&(document.body.style.cursor="auto")}},G5s=function(J,c){var m=J.JSC$18573_overlayMarginLeft-5,b=J.JSC$18573_overlayMarginTop-5,x=J.JSC$18573_overlayMarginLeft+J.JSC$18573_overlayWidth-5;
J=J.JSC$18573_overlayMarginTop+J.JSC$18573_overlayHeight-5;return Rnf(c,{x:m,y:b})?1:Rnf(c,{x:x,y:b})?3:Rnf(c,{x:m,y:J})?2:Rnf(c,{x:x,y:J})?4:0},Rnf=function(J,c){return J.x>=c.x&&J.x<=c.x+10&&J.y>=c.y&&J.y<=c.y+10},OS5=function(J,c){if(J.dragStart)switch(J.resizeCorner){case 2:Math.abs((J.JSC$18573_overlayMarginLeft+J.JSC$18573_overlayWidth-c.x)/(c.y-J.JSC$18573_overlayMarginTop))>=J.requiredRatio?oPR(J,c.x):QVs(J,c.y);
break;case 1:Math.abs((J.JSC$18573_overlayMarginLeft+J.JSC$18573_overlayWidth-c.x)/(J.JSC$18573_overlayMarginTop+J.JSC$18573_overlayHeight-c.y))>=J.requiredRatio?enf(J,c.x):QVs(J,c.y);break;case 4:Math.abs((c.x-J.JSC$18573_overlayMarginLeft)/(c.y-J.JSC$18573_overlayMarginTop))>=J.requiredRatio?oPR(J,c.x):jVe(J,c.y);break;case 3:Math.abs((c.x-J.JSC$18573_overlayMarginLeft)/(J.JSC$18573_overlayMarginTop+J.JSC$18573_overlayHeight-c.y))>=J.requiredRatio?enf(J,c.x):jVe(J,c.y);break;default:throw Error("sl");
}},oPR=function(J,c){var m=J.JSC$18573_overlayMarginTop;
J.JSC$18573_overlayMarginBottom=Fao(J,c);J.JSC$18573_overlayHeight=J.canvas.height-J.JSC$18573_overlayMarginBottom-m;J.JSC$18573_overlayWidth=Math.round(J.JSC$18573_overlayHeight*J.requiredRatio);lqr(J)},enf=function(J,c){var m=J.JSC$18573_overlayMarginTop+J.JSC$18573_overlayHeight;
J.JSC$18573_overlayMarginTop=Fao(J,c);J.JSC$18573_overlayHeight=m-J.JSC$18573_overlayMarginTop;J.JSC$18573_overlayWidth=Math.round(J.JSC$18573_overlayHeight*J.requiredRatio);lqr(J)},lqr=function(J){switch(J.resizeCorner){case 2:case 1:J.JSC$18573_overlayMarginLeft=J.canvas.width-J.JSC$18573_overlayMarginRight-J.JSC$18573_overlayWidth;
break;case 4:case 3:J.JSC$18573_overlayMarginRight=J.canvas.width-J.JSC$18573_overlayMarginLeft-J.JSC$18573_overlayWidth;break;default:throw Error("sl");}},QVs=function(J,c){var m=J.JSC$18573_overlayMarginLeft+J.JSC$18573_overlayWidth;
J.JSC$18573_overlayMarginLeft=yAe(J,c);J.JSC$18573_overlayWidth=m-J.JSC$18573_overlayMarginLeft;J.JSC$18573_overlayHeight=Math.round(J.JSC$18573_overlayWidth/J.requiredRatio);B0R(J)},jVe=function(J,c){var m=J.JSC$18573_overlayMarginLeft;
J.JSC$18573_overlayMarginRight=yAe(J,c);J.JSC$18573_overlayWidth=J.canvas.width-J.JSC$18573_overlayMarginRight-m;J.JSC$18573_overlayHeight=Math.round(J.JSC$18573_overlayWidth/J.requiredRatio);B0R(J)},B0R=function(J){switch(J.resizeCorner){case 2:case 4:J.JSC$18573_overlayMarginBottom=J.canvas.height-J.JSC$18573_overlayMarginTop-J.JSC$18573_overlayHeight;
break;case 1:case 3:J.JSC$18573_overlayMarginTop=J.canvas.height-J.JSC$18573_overlayMarginBottom-J.JSC$18573_overlayHeight;break;default:throw Error("sl");}},Fao=function(J,c){switch(J.resizeCorner){case 2:c=J.canvas.height-(J.JSC$18573_overlayMarginTop+gP1(J,c));
break;case 4:c=J.canvas.height-(J.JSC$18573_overlayMarginTop+JJe(J,c));break;case 1:c=J.JSC$18573_overlayMarginTop+J.JSC$18573_overlayHeight-gP1(J,c);break;case 3:c=J.JSC$18573_overlayMarginTop+J.JSC$18573_overlayHeight-JJe(J,c);break;default:throw Error("sl");}return Math.max(c,J.canvasMargin)},gP1=function(J,c){c=J.JSC$18573_overlayMarginLeft+J.JSC$18573_overlayWidth-Math.max(c,J.horizontalMargin);
c=c<0?J.JSC$18573_overlayWidth:Math.max(c,J.minOverlayWidth);return Math.round(c/J.requiredRatio)},JJe=function(J,c){c=J.canvas.width-Math.max(J.canvas.width-c,J.horizontalMargin)-J.JSC$18573_overlayMarginLeft;
c=c<0?J.JSC$18573_overlayWidth:Math.max(c,J.minOverlayWidth);return Math.round(c/J.requiredRatio)},yAe=function(J,c){switch(J.resizeCorner){case 2:c=J.canvas.width-J.JSC$18573_overlayMarginRight-cJu(J,c);
break;case 4:c=J.canvas.width-J.JSC$18573_overlayMarginLeft-cJu(J,c);break;case 1:c=J.canvas.width-J.JSC$18573_overlayMarginRight-moF(J,c);break;case 3:c=J.canvas.width-J.JSC$18573_overlayMarginLeft-moF(J,c);break;default:throw Error("sl");}return Math.max(c,J.horizontalMargin)},cJu=function(J,c){c=J.canvas.height-Math.max(J.canvas.height-c,J.canvasMargin)-J.JSC$18573_overlayMarginTop;
return c<0?J.JSC$18573_overlayWidth:Math.max(Math.round(c*J.requiredRatio),J.minOverlayWidth)},moF=function(J,c){c=J.JSC$18573_overlayMarginTop+J.JSC$18573_overlayHeight-Math.max(c,J.canvasMargin);
return c<0?J.JSC$18573_overlayWidth:Math.max(Math.round(c*J.requiredRatio),J.minOverlayWidth)},$Io=function(J){J.ctx.clearRect(0,0,J.canvas.width,J.canvas.height);
J.ctx.drawImage(J.image,0,0,J.image.width,J.image.height,J.horizontalMargin,J.canvasMargin,J.canvas.width-2*J.horizontalMargin,J.scaledImageHeight);J.ctx.fillStyle="rgba(0, 0, 0, 0.7)";J.ctx.fillRect(J.horizontalMargin,J.JSC$18573_overlayMarginTop,J.JSC$18573_overlayMarginLeft-J.horizontalMargin,J.JSC$18573_overlayHeight);J.ctx.fillRect(J.JSC$18573_overlayMarginLeft+J.JSC$18573_overlayWidth,J.JSC$18573_overlayMarginTop,J.JSC$18573_overlayMarginRight-J.horizontalMargin,J.JSC$18573_overlayHeight);J.ctx.fillRect(J.horizontalMargin,
J.canvasMargin,J.scaledImageWidth,J.JSC$18573_overlayMarginTop-J.canvasMargin);J.ctx.fillRect(J.horizontalMargin,J.JSC$18573_overlayMarginTop+J.JSC$18573_overlayHeight,J.scaledImageWidth,J.JSC$18573_overlayMarginBottom-J.canvasMargin);J.drawOverlay();J.component&&_.cA(J.component,"image-updated")};
IX.prototype.drawOverlay=function(){this.ctx.lineWidth=2;this.ctx.strokeStyle="#3EA6FF";this.ctx.strokeRect(this.JSC$18573_overlayMarginLeft,this.JSC$18573_overlayMarginTop,this.JSC$18573_overlayWidth,this.JSC$18573_overlayHeight);bEe(this)};
var bEe=function(J){var c=J.JSC$18573_overlayMarginLeft-5,m=J.JSC$18573_overlayMarginTop-5,b=J.JSC$18573_overlayMarginLeft+J.JSC$18573_overlayWidth-5,x=J.JSC$18573_overlayMarginTop+J.JSC$18573_overlayHeight-5;J.ctx.fillStyle="#FFF";J.ctx.fillRect(c,m,10,10);J.ctx.strokeRect(c,m,10,10);J.ctx.fillRect(b,m,10,10);J.ctx.strokeRect(b,m,10,10);J.ctx.fillRect(c,x,10,10);J.ctx.strokeRect(c,x,10,10);J.ctx.fillRect(b,x,10,10);J.ctx.strokeRect(b,x,10,10);if(J.focusedCorner!==0&&J.styleFocusedCorner){J.ctx.lineWidth=
4;J.ctx.strokeStyle="#3EA6FF";switch(J.focusedCorner){case 1:--c;--m;break;case 2:--c;m=x-1;break;case 3:c=b-1;--m;break;case 4:c=b-1;m=x-1;break;default:return}J.ctx.strokeRect(c,m,12,12)}};
IX.prototype.crop=function(J,c){c=c===void 0?!0:c;var m=this.image.width/this.scaledImageWidth,b=document.createElement("canvas"),x=this.minOutputImageResolution?this.minOutputImageResolution[1]:this.minImageCropDimension[1],P=this.JSC$18573_overlayWidth*m,p=this.JSC$18573_overlayHeight*m;b.width=Math.max(P,this.minOutputImageResolution?this.minOutputImageResolution[0]:this.minImageCropDimension[0]);b.height=Math.max(p,x);J&&(b.width=Math.min(b.width,b.height),b.height=Math.min(b.width,b.height));
J=b.getContext("2d");if(!J)throw Error("gl");x=(this.JSC$18573_overlayMarginLeft-this.horizontalMargin)*m;m*=this.JSC$18573_overlayMarginTop-this.canvasMargin;c||(J.fillStyle="white",J.fillRect(0,0,b.width,b.height));J.drawImage(this.image,x,m,P,p,0,0,b.width,b.height);return b};var xoS=function(J,c,m,b,x){IX.call(this,J,c,m,b,void 0,x,8,!1)};
_.D(xoS,IX);xoS.prototype.drawOverlay=function(){var J=this.getContext(),c=this.JSC$18573_overlayWidth,m=this.JSC$18573_overlayHeight,b=this.JSC$18573_overlayMarginTop,x=this.JSC$18573_overlayMarginLeft;J.lineWidth=2;J.strokeStyle="#3EA6FF";J.beginPath();J.arc(x+c/2,b+m/2,c/2,0,2*Math.PI);J.stroke();J.strokeRect(x,b,c,m);bEe(this)};
var Vu4={maxFileSizeMB:15,minWidth:98,minHeight:98},PyF=["image/png","image/jpeg","image/gif"],KB=function(){var J=_.h.apply(this,arguments)||this;J.fileSelectorFocusListener=null;J.errorMessage=null;J.isLoading=!0;J.hideContainer=!0;J.actionMap={"yt-upload-image-to-scotty-command":"handleUploadImageToScottyCommand","yt-image-selection-error-action":"handleImageSelectionErrorAction"};return J};
_.D(KB,_.h);_.V=KB.prototype;_.V.cleanupFocusListener=function(){this.fileSelectorFocusListener&&window.removeEventListener("focus",this.fileSelectorFocusListener)};
_.V.setLoadingState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.isLoading=!0;this.errorMessage=null};
_.V.computePlaylistThumbnail=function(J){return J==="IMAGE_TYPE_PLAYLIST_THUMBNAIL"};
_.V.resetErrorState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.isLoading=!1;this.errorMessage=null;this.isPlaylistThumbnail||_.m9(this.hostElement,"yt-image-selection-reset-error-action",[])};
_.V.setErrorState=function(J){this.resetErrorState();J&&(this.errorMessage=J)};
_.V.showPopup=function(){var J=this;this.hideContainer=!1;_.rv(_.ft,function(){_.cA(J.hostElement,"yt-refit")});
this.isLoading=!1};
_.V.resetFileSelector=function(){this.fileSelector.value="";this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.V.closePopup=function(){this.resetFileSelector();_.m9(this.hostElement,"yt-close-popup-action",[this.is])};
_.V.onCancelTap=function(){this.isPlaylistThumbnail||_.m9(this.hostElement,"yt-show-caller-popup-action",[]);this.closePopup()};
_.V.openFileSelector=function(){var J=this;this.resetErrorState();try{this.fileSelector.click(),this.fileSelectorFocusListener=function(){_.rv(_.ft,function(){setTimeout(function(){if(!J.fileSelector.files||J.fileSelector.files.length===0)J.onCancelTap();J.cleanupFocusListener()},2E3)},500)},window.addEventListener("focus",this.fileSelectorFocusListener)}catch(c){c instanceof Error?_.Xc(c):_.Zt(new _.w3(JSON.stringify(c)))}};
_.V.handleFileSelection=function(){var J=this,c,m,b,x,P,p;return _.N(function(t){switch(t.nextAddress){case 1:_.xL(t,2);if(!J.fileSelector.files||!J.imageEditorCanvas)return J.onCancelTap(),t.return();c=J.fileSelector.files[0];ZS4(J.imageChecker,c);_.xL(t,4);return _.K(t,JSR(c),6);case 6:J.mimeType=t.yieldResult;_.EO(t,5,2);break;case 4:_.NM(t,2),_.m9(J.hostElement,"yt-image-selection-error-action",[(m=J.data)==null?void 0:m.genericImageLoadErrorMessage]),J.onCancelTap();case 5:b=new FileReader;b.addEventListener("load",
function(){var I,a;return _.N(function(k){if(k.nextAddress==1){if(!b.result)return _.qz(Error("il")),k.return();I=b.result;a=new Image;a.src=I;a.onload=function(){try{var H=J.imageChecker;if(a.width<H.requirements.minWidth||a.height<H.requirements.minHeight)throw new Yff(H.requirements.minWidth,H.requirements.minHeight);}catch(r){if(r instanceof Yff){var T;_.m9(J.hostElement,"yt-image-selection-error-action",[(T=J.data)==null?void 0:T.imageDimensionErrorMessage]);J.logImageDimensionErrorVe()}else r instanceof
Error?_.Xc(r):(H=new _.w3(JSON.stringify(r)),_.Xc(H));J.onCancelTap()}J.showPopup()};
a.onerror=function(){var H;_.m9(J.hostElement,"yt-image-selection-error-action",[(H=J.data)==null?void 0:H.genericImageLoadErrorMessage]);J.onCancelTap()};
return _.K(k,dI1(J.imageEditorCanvas,I),2)}J.imageEditor=k.yieldResult;J.updatePositionOfAllCorners();J.addEventListeners(J.imageEditor);_.tD(k)})},!1);
b.readAsDataURL(c);_.EO(t,0);break;case 2:x=_.NM(t),x instanceof tu?_.m9(J.hostElement,"yt-image-selection-error-action",[(P=J.data)==null?void 0:P.imageSizeErrorMessage]):(x instanceof Error?_.Xc(x):_.Zt(new _.w3(JSON.stringify(x))),_.m9(J.hostElement,"yt-image-selection-error-action",[(p=J.data)==null?void 0:p.genericImageLoadErrorMessage])),J.onCancelTap(),_.tD(t)}})};
_.V.logImageDimensionErrorVe=function(){if(this.isPlaylistThumbnail){var J=_.K7(_.C7(),{veType:232707,visualElement:_.rs(232707)});J&&(J={visualElement:J},_.IA().reportShown(J))}};
_.V.handleImageSelectionErrorAction=function(J){this.isPlaylistThumbnail&&_.eTe(this.hostElement,J)};
_.V.convertToImageFormatBundle=function(J){var c=this,m,b,x;return _.N(function(P){switch(P.nextAddress){case 1:return m=J.toDataURL(c.outputMimeType,1),_.K(P,cSp(m),2);case 2:b=P.yieldResult;_.xL(P,3);ZS4(c.imageChecker,b);_.EO(P,4);break;case 3:x=_.NM(P);if(!(x instanceof tu))throw x;_.qz(new _.w3("Output size is bigger than input size for image",c.mimeType,c.outputMimeType,b.size));m=J.toDataURL("image/jpeg",.95);return _.K(P,cSp(m),6);case 6:b=P.yieldResult;case 4:return P.return({dataUrl:m,imageFile:b})}})};
_.V.handleUploadImageToScottyCommand=function(J){var c=this,m,b,x,P,p,t,I,a,k,H;return _.N(function(T){switch(T.nextAddress){case 1:if(!c.imageEditor||!_.L(J,n6s))return T.return();m=_.L(J,n6s).scottyUploadUrl;if(!m){var r=new _.w3("Cannot handle UploadImageToScottyCommand without scotty upload\n    URL");_.Xc(r);return T.return()}_.xL(T,2);c.setLoadingState();b=c.imageEditor.crop(!1,!1);return _.K(T,c.convertToImageFormatBundle(b),4);case 4:return x=T.yieldResult,_.K(T,BKF(x.imageFile,m),5);case 5:P=
T.yieldResult;((p=c.data)==null?0:p.onUploadEndpoint)?(t=c.buildUploadServiceEndpoint(P),c.ytComponentBehavior.resolveCommand(t),I=_.L(t,_.DA),((a=I)==null?0:a.params)?c.closePopup():c.resetFileSelector()):(_.m9(c.hostElement,"yt-image-updated-action",[x.dataUrl,P]),c.closePopup());_.EO(T,0);break;case 2:k=_.NM(T),c.setErrorState((H=c.data)==null?void 0:H.uploadErrorMessage),k instanceof Error?_.Xc(k):(r=new _.w3(JSON.stringify(k)),_.Xc(r)),_.tD(T)}})};
_.V.buildUploadServiceEndpoint=function(J){return this.data&&this.data.onUploadEndpoint?(this.set("data.onUploadEndpoint.playlistEditEndpoint.actions.0.addedCustomThumbnail.playlistScottyEncryptedBlobId",J),this.data.onUploadEndpoint):null};
_.V.dataChanged=function(){var J=this,c;return _.N(function(m){if(m.nextAddress==1){if(!J.data||!J.canvasElement)return m.return();J.data.imageRatio&&J.data.minImageCropWidth||_.Zt(new _.w3("Renderer data is incomplete: missing image_ratio or \nmin_image_crop_width"));c=function(b,x){return J.data.imageType==="IMAGE_TYPE_AVATAR"?new xoS(b,x,J.data.imageRatio,[J.data.minImageCropWidth,J.data.minImageCropWidth/J.data.imageRatio],J.hostElement):new IX(b,x,J.data.imageRatio,[J.data.minImageCropWidth,
J.data.minImageCropWidth/J.data.imageRatio],void 0,J.hostElement,8,!1)};
J.imageEditorCanvas=new qfS(J.canvasElement,c);return J.data.url?_.K(m,dI1(J.imageEditorCanvas,J.data.url),3):(J.hideContainer=!0,J.openFileSelector(),m.jumpTo(0))}J.imageEditor=m.yieldResult;J.showPopup();J.addEventListeners(J.imageEditor);_.tD(m)})};
_.V.addEventListeners=function(J){this.removeEventListeners();var c=function(x){UIu(J,x)};
this.JSC$18581_mouseDownEvent=c;var m=function(x){SfR(J,x)};
this.JSC$18581_mouseMoveEvent=m;var b=function(){hnh(J)};
this.JSC$18581_mouseUpEvent=b;this.topLeftCorner.addEventListener("mousedown",c);this.topLeftCorner.addEventListener("mousemove",m);this.topLeftCorner.addEventListener("mouseup",b);this.topRightCorner.addEventListener("mousedown",c);this.topRightCorner.addEventListener("mousemove",m);this.topRightCorner.addEventListener("mouseup",b);this.bottomLeftCorner.addEventListener("mousedown",c);this.bottomLeftCorner.addEventListener("mousemove",m);this.bottomLeftCorner.addEventListener("mouseup",b);this.bottomRightCorner.addEventListener("mousedown",
c);this.bottomRightCorner.addEventListener("mousemove",m);this.bottomRightCorner.addEventListener("mouseup",b)};
_.V.removeEventListeners=function(){this.JSC$18581_mouseDownEvent&&(this.topLeftCorner.removeEventListener("mousedown",this.JSC$18581_mouseDownEvent),this.topRightCorner.removeEventListener("mousedown",this.JSC$18581_mouseDownEvent),this.bottomLeftCorner.removeEventListener("mousedown",this.JSC$18581_mouseDownEvent),this.bottomRightCorner.removeEventListener("mousedown",this.JSC$18581_mouseDownEvent));this.JSC$18581_mouseMoveEvent&&(this.topLeftCorner.removeEventListener("mousemove",this.JSC$18581_mouseMoveEvent),
this.topRightCorner.removeEventListener("mousemove",this.JSC$18581_mouseMoveEvent),this.bottomLeftCorner.removeEventListener("mousemove",this.JSC$18581_mouseMoveEvent),this.bottomRightCorner.removeEventListener("mousemove",this.JSC$18581_mouseMoveEvent));this.JSC$18581_mouseUpEvent&&(this.topLeftCorner.removeEventListener("mouseup",this.JSC$18581_mouseUpEvent),this.topRightCorner.removeEventListener("mouseup",this.JSC$18581_mouseUpEvent),this.bottomLeftCorner.removeEventListener("mouseup",this.JSC$18581_mouseUpEvent),
this.bottomRightCorner.removeEventListener("mouseup",this.JSC$18581_mouseUpEvent))};
_.V.setFocusInImageEditor=function(){if(!this.imageEditor)return!1;for(var J=document.activeElement;J&&J.shadowRoot&&J.shadowRoot.activeElement;)J=J.shadowRoot.activeElement;switch(J){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};
_.V.updatePositionOfCorner=function(J,c){var m=J.y-c.offsetHeight/2+4;c.style.left=J.x-c.offsetWidth/2+16+"px";c.style.top=m+"px"};
_.V.updatePositionOfAllCorners=function(){if(this.imageEditor)for(var J=_.M([{corner:1,div:this.topLeftCorner},{corner:3,div:this.topRightCorner},{corner:2,div:this.bottomLeftCorner},{corner:4,div:this.bottomRightCorner}]),c=J.next();!c.done;c=J.next()){c=c.value;var m=vPR(this.imageEditor,c.corner);this.updatePositionOfCorner(m,c.div)}};
_.V.onLeft=function(J){this.imageEditor&&this.setFocusInImageEditor()&&(AAS(this.imageEditor,0),this.updatePositionOfAllCorners(),J.preventDefault())};
_.V.onRight=function(J){this.imageEditor&&this.setFocusInImageEditor()&&(AAS(this.imageEditor,1),this.updatePositionOfAllCorners(),J.preventDefault())};
_.V.onUp=function(J){this.imageEditor&&this.setFocusInImageEditor()&&(AAS(this.imageEditor,2),this.updatePositionOfAllCorners(),J.preventDefault())};
_.V.onDown=function(J){this.imageEditor&&this.setFocusInImageEditor()&&(AAS(this.imageEditor,3),this.updatePositionOfAllCorners(),J.preventDefault())};
_.V.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={left:"onLeft",right:"onRight",up:"onUp",down:"onDown"}};
_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.V.detached=function(){this.removeEventListeners();this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.eE.Object.defineProperties(KB.prototype,{outputMimeType:{configurable:!0,enumerable:!0,get:function(){return this.mimeType&&PyF.includes(this.mimeType)?this.mimeType:"image/jpeg"}},
imageChecker:{configurable:!0,enumerable:!0,get:function(){var J,c,m;((c=this.data)==null?0:c.imageRatio)&&((m=this.data)==null?0:m.minImageCropWidth)?J={maxFileSizeMB:15,minWidth:this.data.minImageCropWidth,minHeight:this.data.minImageCropWidth/this.data.imageRatio}:J=Vu4;return new XIu(J)}}});
KB.prototype.updatePositionOfAllCorners=KB.prototype.updatePositionOfAllCorners;KB.prototype.dataChanged=KB.prototype.dataChanged;_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],KB.prototype,"ytActionHandlerBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],KB.prototype,"ytComponentBehavior",void 0);_.O([_.f(_.KV),_.R("design:type",Object)],KB.prototype,"ironA11yKeysBehavior",void 0);
_.O([_.Iu("#canvas"),_.R("design:type",HTMLCanvasElement)],KB.prototype,"canvasElement",void 0);_.O([_.Iu("#file-selector"),_.R("design:type",HTMLInputElement)],KB.prototype,"fileSelector",void 0);_.O([_.Iu("#top-left-corner"),_.R("design:type",HTMLDivElement)],KB.prototype,"topLeftCorner",void 0);_.O([_.Iu("#top-right-corner"),_.R("design:type",HTMLDivElement)],KB.prototype,"topRightCorner",void 0);
_.O([_.Iu("#bottom-left-corner"),_.R("design:type",HTMLDivElement)],KB.prototype,"bottomLeftCorner",void 0);_.O([_.Iu("#bottom-right-corner"),_.R("design:type",HTMLDivElement)],KB.prototype,"bottomRightCorner",void 0);_.O([_.U(),_.R("design:type",Object)],KB.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],KB.prototype,"errorMessage",void 0);_.O([_.U(),_.R("design:type",Object)],KB.prototype,"isLoading",void 0);_.O([_.U(),_.R("design:type",Object)],KB.prototype,"hideContainer",void 0);
_.O([_.U({reflectToAttribute:!0,computed:"computePlaylistThumbnail(data.imageType)"}),_.R("design:type",Boolean)],KB.prototype,"isPlaylistThumbnail",void 0);_.O([_.kr("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype",Promise)],KB.prototype,"dataChanged",null);_.O([_.ps("image-updated"),_.ps("yt-refit"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],KB.prototype,"updatePositionOfAllCorners",null);
KB=_.O([_.uM({is:"yt-image-editor-renderer",disableElementRegistration:!0})],KB);
_.v(KB,"yt-image-editor-renderer",function(){if(fq5===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;u9h===void 0&&(u9h=document.createElement("template"));var b=u9h;m.call(c,b.content.cloneNode(!0),J.content.firstChild);fq5=J}J=fq5;return J},{mode:2});var MuF;var pUR;var CB=function(){return _.h.apply(this,arguments)||this};
_.D(CB,_.h);CB.prototype.updateMinutesFromBinding=function(J){this.handleMinutesChanged&&this.handleMinutesChanged(J)};
CB.prototype.updateSecondsFromBinding=function(J){this.handleSecondsChanged&&this.handleSecondsChanged(J)};
CB.prototype.updateDescriptionFromBinding=function(J){this.handleDescriptionChanged&&this.handleDescriptionChanged(J)};
_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],CB.prototype,"ytComponentBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],CB.prototype,"data",void 0);_.O([_.U(),_.R("design:type",String)],CB.prototype,"minutes",void 0);_.O([_.U(),_.R("design:type",String)],CB.prototype,"seconds",void 0);_.O([_.U(),_.R("design:type",String)],CB.prototype,"description",void 0);_.O([_.U(),_.R("design:type",Function)],CB.prototype,"handleMinutesChanged",void 0);
_.O([_.U(),_.R("design:type",Function)],CB.prototype,"handleSecondsChanged",void 0);_.O([_.U(),_.R("design:type",Function)],CB.prototype,"handleDescriptionChanged",void 0);_.O([_.U(),_.R("design:type",Number)],CB.prototype,"characterLimit",void 0);_.O([_.U(),_.R("design:type",Number)],CB.prototype,"textNumRows",void 0);CB=_.O([_.uM({is:"yt-report-details-form-content",disableElementRegistration:!0})],CB);
_.v(CB,"yt-report-details-form-content",function(){if(pUR===void 0){var J=document.createElement("template");_.z(J,'\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>');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);var c=J.content,m=c.insertBefore;MuF===void 0&&(MuF=document.createElement("template"));var b=MuF;m.call(c,b.content.cloneNode(!0),J.content.firstChild);pUR=J}J=pUR;return J},{mode:2});var NSo;var tue;var aX=function(){var J=_.h.apply(this,arguments)||this;J.updateMinutesFromBinding=function(c){J.minutes=c.detail.value};
J.updateSecondsFromBinding=function(c){J.seconds=c.detail.value};
J.updateDescriptionFromBinding=function(c){J.description=c.detail.value};
return J};
_.D(aX,_.h);_.V=aX.prototype;_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isMusic&&(this.seconds=this.minutes="0")};
_.V.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"}}}};
_.V.ready=function(){_.Bj(this.hostElement).querySelector("#submit-button").addEventListener("yt-action",this.onSubmitYtAction.bind(this))};
_.V.onSubmitYtAction=function(J){var c=J.detail;c.actionName==="yt-service-request"&&(c=c.args[1],c.flagEndpoint&&(J.stopPropagation(),this.refireAction(c)))};
_.V.refireAction=function(J){var c={text:this.description,minutes:Number(this.minutes),seconds:Number(this.seconds)};this.vssId&&(c.vss_id=this.vssId);_.Vq(this.hostElement,[J,c]);this.submitDisabled=!0};
_.V.dataChanged=function(){var J=this;this.seconds=this.minutes="";this.isMusic&&(this.seconds=this.minutes="0");this.vssId=this.description="";this.submitDisabled=!1;var c=_.ep();c&&c.getPlayerPromise().then(function(m){var b=m.getOption("cc","track")||m.getOption("captions","track");b&&(J.vssId=b.vss_id);m=m.getCurrentTime();J.minutes=Math.floor(m/60).toString();J.seconds=(Math.floor(m)%60).toString()})};
_.V.updateSubmitButtonState=function(){var J;((J=this.data)==null?0:J.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==="")};
_.V.onYtServiceRequestCompleted=function(){_.m9(this.hostElement,"yt-close-popup-action")};
_.V.onYtServiceRequestError=function(){this.submitDisabled=!1};
_.eE.Object.defineProperties(aX.prototype,{characterLimit:{configurable:!0,enumerable:!0,get:function(){var J;return((J=this.data)==null?void 0:J.characterLimit)||500}},
textNumRows:{configurable:!0,enumerable:!0,get:function(){var J;return((J=this.data)==null?void 0:J.textNumRows)||4}}});
aX.prototype.onYtServiceRequestError=aX.prototype.onYtServiceRequestError;aX.prototype.onYtServiceRequestCompleted=aX.prototype.onYtServiceRequestCompleted;aX.prototype.updateSubmitButtonState=aX.prototype.updateSubmitButtonState;_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],aX.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],aX.prototype,"ytRendererBehavior",void 0);
_.O([_.U({observer:"dataChanged"}),_.R("design:type",Object)],aX.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Boolean)],aX.prototype,"submitDisabled",void 0);_.O([_.U(),_.R("design:type",String)],aX.prototype,"minutes",void 0);_.O([_.U(),_.R("design:type",String)],aX.prototype,"seconds",void 0);_.O([_.U(),_.R("design:type",String)],aX.prototype,"description",void 0);_.O([_.U(),_.R("design:type",String)],aX.prototype,"vssId",void 0);
_.O([_.U({value:_.Ub("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.R("design:type",Boolean)],aX.prototype,"isMusic",void 0);_.O([_.q("data"),_.R("design:type",Number),_.R("design:paramtypes",[])],aX.prototype,"characterLimit",null);_.O([_.q("data"),_.R("design:type",Number),_.R("design:paramtypes",[])],aX.prototype,"textNumRows",null);
_.O([_.kr("minutes","seconds","description","submitDisabled"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],aX.prototype,"updateSubmitButtonState",null);_.O([_.ps("yt-service-request-completed"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],aX.prototype,"onYtServiceRequestCompleted",null);
_.O([_.ps("yt-service-request-error"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],aX.prototype,"onYtServiceRequestError",null);aX=_.O([_.uM({is:"yt-report-details-form-renderer",disableElementRegistration:!0})],aX);
_.v(aX,"yt-report-details-form-renderer",function(){if(tue===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;NSo===void 0&&(NSo=document.createElement("template"));var b=NSo;m.call(c,b.content.cloneNode(!0),J.content.firstChild);tue=J}J=tue;return J});var I0h;var Kw5;var Cyu;var a05;var kf=function(){return _.h.apply(this,arguments)||this};
_.D(kf,_.h);
kf.prototype.onCheckedChanged_=function(){if(this.data){var J=_.Bj(this.hostElement).querySelector("#checkbox").checked;this.data.identifier==="yt-external-links-checkbox"?_.m9(this.hostElement,"yt-additional-detail-checkbox-update",[J]):this.data.identifier==="yt-hide-user-checkbox"?_.m9(this.hostElement,"yt-hide-user-checkbox-update",[J]):J&&this.data.enableCommand?_.m9(this.hostElement,"yt-modify-report-form-command",[_.L(this.data.enableCommand,WQe)]):!J&&this.data.disableCommand&&_.m9(this.hostElement,
"yt-modify-report-form-command",[_.L(this.data.enableCommand,WQe)])}};
kf.prototype.onLabelTap_=function(J){J.target.tagName!="A"&&(_.Bj(this.hostElement).querySelector("#checkbox").checked=!_.Bj(this.hostElement).querySelector("#checkbox").checked)};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],kf.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],kf.prototype,"data",void 0);kf=_.O([_.uM({is:"yt-boolean-form-field-v2-renderer",disableElementRegistration:!0})],kf);
_.v(kf,"yt-boolean-form-field-v2-renderer",function(){if(a05===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;Cyu===void 0&&(Cyu=document.createElement("template"));var b=Cyu;m.call(c,b.content.cloneNode(!0),J.content.firstChild);a05=J}J=a05;return J});var Hh=function(){var J=_.h.apply(this,arguments)||this;J.canShowAdditionalDetailCheckbox=!1;J.canShowCheckbox=!1;J.keepDropdownFocusedAfterSelection=!0;return J};
_.D(Hh,_.h);Hh.prototype.configureRendererStamper=function(){return{"data.legalReportCheckbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}},"data.additionalDetailCheckbox":{id:"additional-detail-checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],Hh.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Hh.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],Hh.prototype,"canShowAdditionalDetailCheckbox",void 0);_.O([_.U(),_.R("design:type",Object)],Hh.prototype,"canShowCheckbox",void 0);_.O([_.U(),_.R("design:type",Object)],Hh.prototype,"keepDropdownFocusedAfterSelection",void 0);
Hh=_.O([_.uM({is:"yt-report-form-modal-content",disableElementRegistration:!0})],Hh);
_.v(Hh,"yt-report-form-modal-content",function(){if(Kw5===void 0){var J=document.createElement("template");_.z(J,'\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>');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;I0h===void 0&&(I0h=document.createElement("template"));var b=I0h;m.call(c,b.content.cloneNode(!0),J.content.firstChild);Kw5=J}J=Kw5;return J},{mode:2});var kZR;var HER;var i8=function(){var J=_.h.apply(this,arguments)||this;J.submitting=!1;J.submitButtonDisabled=!0;J.command=null;J.canShowCheckbox=!1;J.canShowAdditionalDetailCheckbox=!1;J.canShowNextButton=!1;J.additionalDetailCheckboxChecked=!1;J.refitJob=0;J.keepDropdownFocusedAfterSelection=!0;J.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 J};
_.D(i8,_.h);_.V=i8.prototype;_.V.created=function(){this.refitJob=0};
_.V.attached=function(){this.JSC$18604_scroller&&(this.JSC$18604_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18604_scroller.attached&&typeof this.JSC$18604_scroller.attached==="function"&&this.JSC$18604_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.V.dataChanged=function(J){J&&(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,J.legalReportCheckbox&&this.set("data.legalReportCheckbox.booleanFormFieldV2Renderer.value",
!1),J.additionalDetailCheckbox&&this.set("data.additionalDetailCheckbox.booleanFormFieldV2Renderer.value",!1),this.updateDialogStyling())};
_.V.onYtPopupOpened=function(){var J=_.ep();J&&J.getPlayerPromise().then(function(c){c.pauseVideo()})};
_.V.onYtNavigate=function(J){_.L(J.detail.endpoint,_.avB)&&(J.stopPropagation(),this.hideReportForm=!0)};
_.V.onYtServiceRequestSent=function(){this.toggleSubmitButton(!0)};
_.V.onYtServiceRequestCompleted=function(J,c){var m=c.actions;if(m){if(m.length===1&&_.L(m[0],_.pX)){var b;m=((b=_.L(m[0],_.pX))==null?void 0:b.commands)||[]}b=0;for(var x=m.length;b<x;b++)_.L(m[b],_.T3)&&(J.stopPropagation(),this.hostElement.parentElement.close(),this.openPopupBehavior.openPopup(m[b]))}if(c.data&&(J=this.get("feedbackResponses",c.data)))for(c=0;c<J.length;c++)if(J[c].isThumbnailReporting){this.hostElement.parentElement.close();break}};
_.V.onYtServiceRequestError=function(){this.toggleSubmitButton(!1)};
_.V._onDescendantIronResize=function(J){J.stopPropagation();return!1};
_.V.handleReportFormEndpointUpdateAction=function(J){if(J.submitEndpoint){var c=this.command=J.submitEndpoint;c=_.L(c,_.cFB);if(c==null?0:c.additionalDetailCheckboxChecked)c.additionalDetailCheckboxChecked=this.additionalDetailCheckboxChecked;this.toggleSubmitButton(!1)}else J.submitNavigationEndpoint?(this.command=J.submitNavigationEndpoint,this.toggleSubmitButton(!1)):J.confirmDialog?(this.command={confirmDialogEndpoint:{content:{confirmDialogRenderer:J.confirmDialog.confirmDialogRenderer}}},this.toggleSubmitButton(!1)):
this.command=null;J.disableSubmitButton&&this.toggleSubmitButton(!0);this.handleModifyReportFormCommand(this.get("clickCommands.0.modifyReportFormCommand",J));this.refit()};
_.V.handleConfirmDialogCloseAction=function(J){J.confirmed?this.hostElement.parentElement.close():this.hideReportForm=!1};
_.V.submitButtonDisabledChanged=function(){var J=this.hostElement.parentElement;J&&J.invalidateTabbables&&J.invalidateTabbables()};
_.V.handleModifyReportFormCommand=function(J){J=this.get("action",J);J==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_HIDE"?this.canShowCheckbox=!1:J==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_SHOW"?this.canShowCheckbox=!0:J==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_HIDE"?this.canShowAdditionalDetailCheckbox=!1:J==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_SHOW"?this.canShowAdditionalDetailCheckbox=!0:J==="REPORT_FORM_ACTION_SUBMIT_BUTTON_SHOW"?this.canShowNextButton=!1:J==="REPORT_FORM_ACTION_NEXT_BUTTON_SHOW"&&
(this.canShowNextButton=!0);this.refit()};
_.V.updateDialogStyling=function(){var J,c,m,b,x,P=((x=(J=this.data)==null?void 0:(c=J.optionsSupportedRenderers)==null?void 0:(m=c.optionsRenderer)==null?void 0:(b=m.items)==null?void 0:b.length)!=null?x:0)<=2?0:240;_.V1(this.hostElement,{"--yt-report-form-modal-renderer-min-width":P+"px"})};
_.V.toggleSubmitButton=function(J){this.submitButtonDisabled=!J;this.submitButtonDisabled=J};
_.V.computeSubmitButtonData=function(J,c){var m={};_.L(c,_.avB)?m.navigationEndpoint=c:m.command=c||void 0;J&&J.buttonRenderer&&_.Lw.extend(m,J.buttonRenderer);return m};
_.V.computeNextButtonData=function(J,c){var m={};if(!J||!J.buttonRenderer)return m;_.Lw.extend(m,J.buttonRenderer);if(!c)return m;if(_.L(c,_.avB))m.navigationEndpoint=Erf(c);else if(m.command=Erf(c),J=_.L(m.command,_.cFB))J.legalCheckboxChecked=!0;return m};
_.V.computeShowNextButton=function(J,c,m){return!!J&&c&&m};
_.V.refit=function(){var J=this;this.refitJob||(this.refitJob=_.ft.addLowPriorityJob(function(){_.cA(J.hostElement,"yt-refit");J.refitJob=0}))};
_.V.handleAdditionalDetailCheckboxUpdateAction=function(J){this.additionalDetailCheckboxChecked=J;_.L(this.command,_.cFB).additionalDetailCheckboxChecked=J};
_.eE.Object.defineProperties(i8,{template:{configurable:!0,enumerable:!0,get:function(){if(HER===void 0){var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);var c=J.content,m=c.insertBefore;kZR===void 0&&(kZR=document.createElement("template"));var b=kZR;m.call(c,b.content.cloneNode(!0),J.content.firstChild);HER=J}J=HER;return J}}});
i8.prototype.onYtServiceRequestError=i8.prototype.onYtServiceRequestError;i8.prototype.onYtServiceRequestCompleted=i8.prototype.onYtServiceRequestCompleted;i8.prototype.onYtServiceRequestSent=i8.prototype.onYtServiceRequestSent;i8.prototype.onYtNavigate=i8.prototype.onYtNavigate;i8.prototype.onYtPopupOpened=i8.prototype.onYtPopupOpened;_.O([_.f(_.M7.YtOpenPopupBehavior),_.R("design:type",Object)],i8.prototype,"openPopupBehavior",void 0);
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],i8.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],i8.prototype,"ytActionHandlerBehavior",void 0);_.O([_.f(_.Ci.YtEventForwardingBehavior),_.R("design:type",Object)],i8.prototype,"eventForwardingBehavior",void 0);_.O([_.f(_.rI),_.R("design:type",Object)],i8.prototype,"ironResizableBehavior",void 0);_.O([_.U({observer:"dataChanged"}),_.R("design:type",Object)],i8.prototype,"data",void 0);
_.O([_.U(),_.R("design:type",Object)],i8.prototype,"submitting",void 0);_.O([_.U({observer:"submitButtonDisabledChanged"}),_.R("design:type",Object)],i8.prototype,"submitButtonDisabled",void 0);_.O([_.U(),_.R("design:type",Object)],i8.prototype,"command",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],i8.prototype,"hideReportForm",void 0);_.O([_.U(),_.R("design:type",Object)],i8.prototype,"canShowCheckbox",void 0);
_.O([_.U(),_.R("design:type",Object)],i8.prototype,"canShowAdditionalDetailCheckbox",void 0);_.O([_.U(),_.R("design:type",Object)],i8.prototype,"canShowNextButton",void 0);_.O([_.U(),_.R("design:type",Object)],i8.prototype,"additionalDetailCheckboxChecked",void 0);_.O([_.U(),_.R("design:type",Object)],i8.prototype,"refitJob",void 0);_.O([_.U(),_.R("design:type",Object)],i8.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.O([_.Iu("#scroller"),_.R("design:type",Object)],i8.prototype,"JSC$18604_scroller",void 0);_.O([_.ps("yt-popup-opened"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],i8.prototype,"onYtPopupOpened",null);_.O([_.ps("yt-navigate"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],i8.prototype,"onYtNavigate",null);
_.O([_.ps("yt-service-request-sent"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,_.qd]),_.R("design:returntype")],i8.prototype,"onYtServiceRequestSent",null);_.O([_.ps("yt-service-request-completed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,_.Oi]),_.R("design:returntype")],i8.prototype,"onYtServiceRequestCompleted",null);
_.O([_.ps("yt-service-request-error"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],i8.prototype,"onYtServiceRequestError",null);i8=_.O([_.uM({is:"yt-report-form-modal-renderer",notifyObserversOnUndefined:!1,noInjection:!0})],i8);var iEF;var nGS;var nB=function(){return _.h.apply(this,arguments)||this};
_.D(nB,_.h);_.V=nB.prototype;_.V.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.id="mealbar-promo-renderer"};
_.V.onVisible=function(){if(_.w("web_ephemeral_actions_focus")){var J,c;(c=_.BG().resolve(_.y6(_.Pn)))==null||c.enqueue({label:_.OG((J=this.data)==null?void 0:J.messageTitle),elementToFocus:this.hostElement})}};
_.V.onThumbnailLoaded=function(){_.cA(this.hostElement,"yt-refit")};
_.V.onDismissTap=function(){_.m9(this.hostElement,"yt-close-popup-action",["yt-mealbar-promo-renderer"])};
_.V.computeAlternateIcon=function(J){return J?J==="BACKSTAGE_ARTWORK"?"backstage:artwork":J:null};
_.V.computeFontFamily=function(J){return J==="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD"};
_.V.computeBackgroundStyle=function(J,c){if(J=this.computeBackgroundImage(J,c))if(J=_.Bd(J.thumbnails))return'background-image: url("'+J+'");'};
_.V.computeHasFullHeightImage=function(J){return!(!(J&&J.thumbnails&&J.thumbnails.length>0)||this.modern)};
_.V.isModernStyle=function(J){return J.style==="STYLE_MODERN"};
_.V.computeIcon=function(J,c){if(J&&J.icon)return c?J.iconDark:J.icon};
_.V.computeBackgroundImage=function(J,c){if(J&&J.backgroundImage)return c?J.backgroundImageDark:J.backgroundImage};
_.V.computeLogo=function(J,c){if(J&&J.logo)return c?J.logoDark:J.logo};
_.V.computeShouldShowModernIcon=function(J,c){return J&&!!c};
_.V.getLogoContainerClassName=function(J){return this.logoWithPadding(J)?"yt-mealbar-promo-renderer-logo-with-padding":"yt-mealbar-promo-renderer-logo"};
_.V.getLogoImageId=function(J){return this.logoWithPadding(J)?"mealbar-logo-with-padding":"mealbar-logo"};
_.V.logoWithPadding=function(J){var c,m,b;return(J=(c=this.computeLogo(J,this.isDarkTheme))==null?void 0:(m=c.thumbnails)==null?void 0:(b=m[0])==null?void 0:b.height)&&J%31===0?!0:!1};
nB.prototype.onThumbnailLoaded=nB.prototype.onThumbnailLoaded;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],nB.prototype,"ytRendererBehavior",void 0);_.O([_.U({}),_.R("design:type",Object)],nB.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0,computed:"isModernStyle(data)"}),_.R("design:type",Boolean)],nB.prototype,"modern",void 0);_.O([_.U({value:!1}),_.R("design:type",Boolean)],nB.prototype,"isDarkTheme",void 0);
_.O([_.U({computed:"computeIcon(data, isDarkTheme)"}),_.R("design:type",Object)],nB.prototype,"icon",void 0);_.O([_.U({computed:"computeLogo(data, isDarkTheme)"}),_.R("design:type",Object)],nB.prototype,"logo",void 0);_.O([_.U({computed:"computeBackgroundStyle(data, isDarkTheme)"}),_.R("design:type",Object)],nB.prototype,"backgroundStyle",void 0);_.O([_.U({computed:"computeAlternateIcon(data.alternateIcon.iconType)"}),_.R("design:type",Object)],nB.prototype,"alternateIcon",void 0);
_.O([_.U({reflectToAttribute:!0,computed:"computeHasFullHeightImage(data.icon)"}),_.R("design:type",Boolean)],nB.prototype,"hasFullHeightImage",void 0);_.O([_.U({reflectToAttribute:!0,computed:"computeFontFamily(data.font)"}),_.R("design:type",Boolean)],nB.prototype,"useYoutubeSans",void 0);_.O([_.U({computed:"computeShouldShowModernIcon(modern, icon)"}),_.R("design:type",Boolean)],nB.prototype,"shouldShowModernIcon",void 0);
_.O([_.ps("yt-img-shadow-loaded"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],nB.prototype,"onThumbnailLoaded",null);nB=_.O([_.uM({is:"yt-mealbar-promo-renderer",disableElementRegistration:!0})],nB);
_.v(nB,"yt-mealbar-promo-renderer",function(){if(nGS===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;iEF===void 0&&(iEF=document.createElement("template"));var b=iEF;m.call(c,b.content.cloneNode(!0),J.content.firstChild);nGS=J}J=nGS;return J},{mode:2});var TS5;var wUo;var TN=function(){return _.h.apply(this,arguments)||this};
_.D(TN,_.h);_.V=TN.prototype;_.V.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]]"}}}}}};
_.V.computeHasButtons_=function(J){return!(!J.dismissButton&&!J.acceptButton)};
_.V.computeStyle_=function(J){return J||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.V.observeImpressionEndpoints_=function(){var J=this;this.data&&this.data.promoConfig&&this.data.promoConfig.impressionEndpoints&&this.data.promoConfig.impressionEndpoints.forEach(function(c){c.clickTrackingParams&&delete c.clickTrackingParams;_.Vq(J.hostElement,[c])})};
_.V.onTap_=function(){_.m9(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])};
TN.prototype.observeImpressionEndpoints_=TN.prototype.observeImpressionEndpoints_;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],TN.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.Ci.YtEventForwardingBehavior),_.R("design:type",Object)],TN.prototype,"ytEventForwardingBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],TN.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],TN.prototype,"data",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],TN.prototype,"positionType",void 0);_.O([_.U({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.R("design:type",Boolean)],TN.prototype,"hasButtons_",void 0);_.O([_.U({value:function(){return this.onTap_.bind(this)}}),
_.R("design:type",Function)],TN.prototype,"boundOnTap_",void 0);_.O([_.U({value:{style:"mono-inverse"}}),_.R("design:type",Object)],TN.prototype,"buttonOverride",void 0);_.O([_.NE("data.promoConfig.impressionEndpoints"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],TN.prototype,"observeImpressionEndpoints_",null);TN=_.O([_.uM({is:"yt-tooltip-renderer",disableElementRegistration:!0})],TN);
_.v(TN,"yt-tooltip-renderer",function(){if(wUo===void 0){var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);var c=J.content,m=c.insertBefore;TS5===void 0&&(TS5=document.createElement("template"));var b=TS5;m.call(c,b.content.cloneNode(!0),J.content.firstChild);wUo=J}J=wUo;return J},{mode:2});var rJ4;var sW4;var Lwu={},Dop=(Lwu.WEB_REMIX="music.youtube.com",Lwu),wq=function(){var J=_.h.apply(this,arguments)||this;J.actionMap={"yt-signal-action-copy-share-embed-url":"handleSignalActionCopyShareEmbedUrl_","yt-share-panel-set-timestamp-action":"handleSetTimestamp_"};return J};
_.D(wq,_.h);_.V=wq.prototype;_.V.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"yt-button-renderer"}},"data.startAt":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.V.created=function(){this.embedHost_=Dop[_.Ub("INNERTUBE_CLIENT_NAME")]||"www.youtube.com"};
_.V.ready=function(){_.Bj(this.hostElement).querySelector("#embed-code").addEventListener("tap",this.onEmbedCode_.bind(this))};
_.V.computeEmbedCode_=function(J,c,m,b,x){if(!J)return"";var P=J.videoId,p=J.fullListId,t=[];J.attributionId&&t.push("si="+J.attributionId);b||t.push("controls=0");m&&Number(c)>0&&t.push("start="+c);p&&(P="videoseries",t.push("list="+p));m="https://"+(x?"www.youtube-nocookie.com":this.embedHost_)+"/embed/"+P;J.clipId&&(t.push("clip="+J.clipId),t.push("clipt="+J.clipTiming));c=t.length>0?m+"?"+t.join("&amp;"):m;J.encryptedEmbedConfig&&t.push("embed_config="+JSON.stringify({enc:J.encryptedEmbedConfig}));
t=t.length>0?m+"?"+t.join("&amp;"):m;_.w("web_sharing_embed_preview_killswitch")?_.Bj(this.videoPreviewContainer).innerHTML=this.getEmbedCode_(t,J.previewWidth||854,J.previewHeight||480):(_.rC(this.videoPreviewContainer),_.Bj(this.videoPreviewContainer).appendChild(this.buildIframeElement(t)));return this.getEmbedCode_(c,J.width||560,J.height||315)};
_.V.buildIframeElement=function(J){var c=document.createElement("iframe"),m,b;c.width=""+((b=(m=this.data)==null?void 0:m.previewWidth)!=null?b:854);var x,P;c.height=""+((P=(x=this.data)==null?void 0:x.previewHeight)!=null?P:480);_.nl3(c,2,J);c.title="YouTube video player";c.frameBorder="0";c.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share";c.referrerPolicy="strict-origin-when-cross-origin";c.allowFullscreen=!0;return c};
_.V.computeIsSquareAspectRatio_=function(J){return J.previewHeight&&J.previewWidth?J.previewHeight==J.previewWidth:!1};
_.V.computeShowEmbedOptions_=function(J){return!!J.enablePrivacyModeOptionLabel||!!J.showPlayerControlsOptionLabel};
_.V.getEmbedCode_=function(J,c,m){return'<iframe width="'+c+'" height="'+m+'" src="'+J+'" 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>'};
_.V.handleSignalActionCopyShareEmbedUrl_=function(){_.Bj(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();document.execCommand("copy");this.trackEmbedCopyUrl_()};
_.V.handleSetTimestamp_=function(J){this.startAtTimeStamp_=(this.startAtChecked_=J.isSet)?J.timestamp:0};
_.V.closePanel_=function(){_.m9(this.hostElement,"yt-close-popup-action",["yt-sharing-embed-renderer"])};
_.V.onEmbedCode_=function(){_.Bj(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();this.trackEmbedCopyUrl_()};
_.V.onYtPopupClosed_=function(){_.rC(_.Bj(this.hostElement).querySelector("#video-preview"))};
_.V.trackEmbedCopyUrl_=function(){this&&this.data&&this.data.actionButtons&&this.data.actionButtons.length>0&&_.L(this.data.actionButtons[0],_.ur)&&this.ytRendererBehavior.logExplicitClick(_.L(this.data.actionButtons[0],_.ur))};
wq.prototype.onYtPopupClosed_=wq.prototype.onYtPopupClosed_;_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],wq.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],wq.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],wq.prototype,"ytActionHandlerBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],wq.prototype,"data",void 0);
_.O([_.U({computed:"computeEmbedCode_(data, startAtTimeStamp_, startAtChecked_, isPlayerControlsOptionChecked_, isPrivacyModeOptionChecked_)"}),_.R("design:type",String)],wq.prototype,"embedCode_",void 0);_.O([_.U({value:!0}),_.R("design:type",Boolean)],wq.prototype,"isPlayerControlsOptionChecked_",void 0);_.O([_.U({value:!1}),_.R("design:type",Boolean)],wq.prototype,"isPrivacyModeOptionChecked_",void 0);_.O([_.U({value:!1,notify:!0}),_.R("design:type",Boolean)],wq.prototype,"startAtChecked_",void 0);
_.O([_.U({value:0}),_.R("design:type",Number)],wq.prototype,"startAtTimeStamp_",void 0);_.O([_.U({computed:"computeIsSquareAspectRatio_(data)",reflectToAttribute:!0}),_.R("design:type",Boolean)],wq.prototype,"isSquareAspectRatio_",void 0);_.O([_.Iu("#video-preview"),_.R("design:type",HTMLElement)],wq.prototype,"videoPreviewContainer",void 0);_.O([_.ps("yt-popup-closed"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],wq.prototype,"onYtPopupClosed_",null);
wq=_.O([_.uM({is:"yt-sharing-embed-renderer",disableElementRegistration:!0})],wq);
_.v(wq,"yt-sharing-embed-renderer",function(){if(sW4===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;rJ4===void 0&&(rJ4=document.createElement("template"));var b=rJ4;m.call(c,b.content.cloneNode(!0),J.content.firstChild);sW4=J}J=sW4;return J},{mode:2});var Wwe={};
Wwe.YtUnlimitedFamilyInterstitialBehavior=[_.M7.YtOpenPopupBehavior,_.yw.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(J){J=_.Sm_(_.Ac(J),"yt-button-renderer");return J?J.hasAttribute("footer-button")?(this.hostElement.parentElement.close(),!0):!1:!1},
pushToHistory:function(J){this.dialogHistory_.push(J)},
popFromHistory:function(){return this.dialogHistory_.pop()},
handleSignalActionShowPreviousFamilyDialog_:function(){var J=this.popFromHistory();if(J){var c={openPopupAction:{popupType:"DIALOG",popup:{}}};c.openPopupAction.popup[J.renderer]=J.data;this.showingPreviousDialog_=!0;this.openPopup(c)}},
handleOpenPopupAction_:function(J){if(this.showingPreviousDialog_)this.showingPreviousDialog_=!1;else{var c=["unlimitedFamilyMessageInterstitialRenderer","unlimitedFamilyProfileInterstitialRenderer"].some(function(b){return!!J.openPopupAction.popup[b]}),m=this.getElementName_();
c&&this.data&&(this.pushToHistory({renderer:m,data:this.data}),this.hostElement.parentElement.close())}},
handleUnlimitedCreateFamilyEndpoint_:function(J){if(J=_.L(J,g6h))this.loading=!0,_.m9(this.hostElement,"yt-open-create-family-dialog",[J,this.unicornReadyCallback_.bind(this)])},
getElementName_:function(){var J=this.hostElement.nodeName.split("-").slice(1).map(function(c){return""+c[0].toUpperCase()+c.slice(1).toLowerCase()}).join("");
return J[0].toLowerCase()+J.slice(1)},
unicornReadyCallback_:function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1}}];var zIR;var umr;var rq=function(){return _.h.apply(this,arguments)||this};
_.D(rq,_.h);_.V=rq.prototype;_.V.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}}}}}};
_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.m9(this.hostElement,"yt-register-create-family-dialog");_.Bj(this.hostElement).querySelector("#thumbnail").onShow()};
_.V.fireOnCloseCommand_=function(){var J;((J=this.data)==null?0:J.onCloseCommand)&&_.PA(this.hostElement,[this.data.onCloseCommand],this.hostElement)};
_.V.onYtServiceRequestSent_=function(J,c){c&&c.endpoint&&_.L(c.endpoint,_.In)||(this.loading=!0)};
_.V.onYtServiceRequestCompleted_=function(){var J=this.hostElement.parentElement;J.close&&J.close();this.loading=!1};
_.V.openPopupHandler_=function(J){if(J.detail==this){var c;((c=this.data)==null?0:c.onOpenCommands)&&_.PA(this.hostElement,this.data.onOpenCommands,this.hostElement)}};
_.V.closePopupHandler_=function(J,c){this.fireOnCloseCommand_();if(c&&c.canceled===!0||c&&c.canceled===!1&&c.confirmed===!1){var m;((m=this.data)==null?0:m.onDismissCommands)&&_.PA(this.hostElement,this.data.onDismissCommands,this.hostElement)}};
_.V.dataChanged_=function(){this.loading=!1};
rq.prototype.dataChanged_=rq.prototype.dataChanged_;rq.prototype.closePopupHandler_=rq.prototype.closePopupHandler_;rq.prototype.openPopupHandler_=rq.prototype.openPopupHandler_;rq.prototype.onYtServiceRequestCompleted_=rq.prototype.onYtServiceRequestCompleted_;rq.prototype.onYtServiceRequestSent_=rq.prototype.onYtServiceRequestSent_;_.O([_.f(_.Ci.YtEventForwardingBehavior),_.R("design:type",Object)],rq.prototype,"ytEventForwardingBehavior",void 0);
_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],rq.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(Wwe.YtUnlimitedFamilyInterstitialBehavior),_.R("design:type",Object)],rq.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],rq.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],rq.prototype,"data",void 0);
_.O([_.U({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],rq.prototype,"loading",void 0);_.O([_.ps("yt-service-request-sent"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,_.qd]),_.R("design:returntype")],rq.prototype,"onYtServiceRequestSent_",null);_.O([_.ps("yt-service-request-completed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,_.Oi]),_.R("design:returntype")],rq.prototype,"onYtServiceRequestCompleted_",null);
_.O([_.ps("yt-popup-opened"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,Object]),_.R("design:returntype")],rq.prototype,"openPopupHandler_",null);_.O([_.ps("yt-popup-closed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,Object]),_.R("design:returntype")],rq.prototype,"closePopupHandler_",null);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],rq.prototype,"dataChanged_",null);
rq=_.O([_.uM({is:"yt-unlimited-family-message-interstitial-renderer",disableElementRegistration:!0})],rq);
_.v(rq,"yt-unlimited-family-message-interstitial-renderer",function(){if(umr===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;zIR===void 0&&(zIR=document.createElement("template"));var b=zIR;m.call(c,b.content.cloneNode(!0),J.content.firstChild);umr=J}J=umr;return J},{mode:2});var f0o;var YM1;var sV=function(){return _.h.apply(this,arguments)||this};
_.D(sV,_.h);sV.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"}}}};
sV.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.Bj(this.hostElement).querySelectorAll(".secondary-thumbnail").forEach(function(J){J.onShow()});
_.Bj(this.hostElement).querySelector("#main-thumbnail").onShow()};
sV.prototype.onButtonTap_=function(J){this.ytUnlimitedFamilyInterstitialBehavior.maybeCloseDialogOnFooterButtonTap(J)};
sV.prototype.computeMainThumbnailWidth_=function(J){return J&&J.length!==0?72:96};
_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],sV.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],sV.prototype,"ytRendererBehavior",void 0);_.O([_.f(Wwe.YtUnlimitedFamilyInterstitialBehavior),_.R("design:type",Object)],sV.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],sV.prototype,"data",void 0);
_.O([_.U({computed:"computeMainThumbnailWidth_(data.secondaryThumbnails)"}),_.R("design:type",Number)],sV.prototype,"mainThumbnailWidth_",void 0);_.O([_.U({value:function(){return this.onButtonTap_.bind(this)}}),
_.R("design:type",Function)],sV.prototype,"boundButtonTap_",void 0);sV=_.O([_.uM({is:"yt-unlimited-family-profile-interstitial-renderer",disableElementRegistration:!0})],sV);
_.v(sV,"yt-unlimited-family-profile-interstitial-renderer",function(){if(YM1===void 0){var J=document.createElement("template");_.z(J,'\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>');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;f0o===void 0&&(f0o=document.createElement("template"));var b=f0o;m.call(c,b.content.cloneNode(!0),J.content.firstChild);YM1=J}J=YM1;return J},{mode:2});var XUS;var ZEe;var LB=function(){var J=_.h.apply(this,arguments)||this;J.sliderAriaValueText_=null;J.selectedIndex_=0;J.messages={PAUSE_SLIDER:_.CX("PAUSE_SLIDER",void 0,"Pause Duration")};return J};
_.D(LB,_.h);_.V=LB.prototype;_.V.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_]]"}}}}}};
_.V.onPopupOpened_=function(J){J.detail==this&&_.w("enable_premium_voluntary_pause")&&(_.m9(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]),this.handleOnOpenCommands_())};
_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.V.setDialogData=function(J){this.data=J;this.resetSlider_()};
_.V.dataChanged_=function(){this.data&&this.resetSlider_()};
_.V.onSubmitTap_=function(){if(this.data.confirmCommand){var J=this.data.confirmCommand;_.L(J,_.k3L)&&_.Vq(this.hostElement,[J,{resume_time_ms:parseInt(this.selectedData_.resumeTimeMs,10)}])}};
_.V.onExitButtonTap_=function(){_.m9(this.hostElement,"yt-close-popup-action",["yt-unplugged-pause-membership-dialog-renderer"])};
_.V.closePopupHandler_=function(J,c){(c&&c.canceled===!0||c.canceled===!1&&c.confirmed===!1)&&this.handleOnDismissCommands_()};
_.V.onSliderChange_=function(){this.selectedIndex_=_.Bj(this.hostElement).querySelector("#id-pause-slider").immediateValue;this.updateUiState_()};
_.V.updateUiState_=function(){this.data&&(this.selectedData_=this.data.endOptions[this.selectedIndex_],this.setSliderAriaValueText_())};
_.V.setSliderAriaValueText_=function(){this.selectedData_&&(this.sliderAriaValueText_=this.selectedData_.accessibilityData.label)};
_.V.resetSlider_=function(){if(this.data){var J=this.data.defaultEndOptionIndex||0,c=_.Bj(this.hostElement).querySelector("#id-pause-slider");if(c.immediateValue<J)for(;c.immediateValue!=J;)c.increment();else if(J<c.immediateValue)for(;c.immediateValue!=J;)c.decrement();this.selectedIndex_=J;this.selectIndexMax_=this.data.endOptions.length-1;this.updateUiState_()}};
_.V.handleOnOpenCommands_=function(){this.data&&this.data.onOpenCommands&&this.data.onOpenCommands&&_.PA(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.V.handleOnDismissCommands_=function(){this.data&&this.data.onDismissCommands&&this.data.onDismissCommands&&_.PA(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.V.onYtServiceRequestSent=function(){this.loading=!0};
_.V.onYtServiceRequestCompleted=function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1};
LB.prototype.onYtServiceRequestCompleted=LB.prototype.onYtServiceRequestCompleted;LB.prototype.onYtServiceRequestSent=LB.prototype.onYtServiceRequestSent;LB.prototype.closePopupHandler_=LB.prototype.closePopupHandler_;LB.prototype.dataChanged_=LB.prototype.dataChanged_;LB.prototype.onPopupOpened_=LB.prototype.onPopupOpened_;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],LB.prototype,"ytRendererBehavior",void 0);
_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],LB.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],LB.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],LB.prototype,"loading",void 0);_.O([_.U(),_.R("design:type",Number)],LB.prototype,"selectIndexMax_",void 0);_.O([_.U(),_.R("design:type",Object)],LB.prototype,"selectedData_",void 0);
_.O([_.U(),_.R("design:type",Object)],LB.prototype,"sliderAriaValueText_",void 0);_.O([_.U({value:function(){return this.onSubmitTap_.bind(this)}}),
_.R("design:type",Function)],LB.prototype,"onButtonTap_",void 0);_.O([_.U({value:function(){return this.onExitButtonTap_.bind(this)}}),
_.R("design:type",Function)],LB.prototype,"onSecondaryTap_",void 0);_.O([_.U(),_.R("design:type",Object)],LB.prototype,"messages",void 0);_.O([_.ps("yt-popup-opened"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,Object]),_.R("design:returntype")],LB.prototype,"onPopupOpened_",null);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],LB.prototype,"dataChanged_",null);
_.O([_.ps("yt-popup-closed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,Object]),_.R("design:returntype")],LB.prototype,"closePopupHandler_",null);_.O([_.ps("yt-service-request-sent"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,_.qd]),_.R("design:returntype")],LB.prototype,"onYtServiceRequestSent",null);
_.O([_.ps("yt-service-request-completed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,_.Oi]),_.R("design:returntype")],LB.prototype,"onYtServiceRequestCompleted",null);LB=_.O([_.uM({is:"yt-unplugged-pause-membership-dialog-renderer",disableElementRegistration:!0})],LB);
_.v(LB,"yt-unplugged-pause-membership-dialog-renderer",function(){if(ZEe===void 0){var J=document.createElement("template");_.z(J,'\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>');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;XUS===void 0&&(XUS=document.createElement("template"));var b=XUS;m.call(c,b.content.cloneNode(!0),J.content.firstChild);ZEe=J}J=ZEe;return J},{mode:2});var qMo;var UoR;var DE=function(){return _.h.apply(this,arguments)||this};
_.D(DE,_.h);DE.prototype.configureRendererStamper=function(){return{"data.vcBalance":{id:"vc-balance",mapping:_.uB("vcBalanceRenderer")}}};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],DE.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],DE.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],DE.prototype,"data",void 0);DE=_.O([_.uM({is:"yt-vc-offer-layout-header-renderer",disableElementRegistration:!0})],DE);
_.v(DE,"yt-vc-offer-layout-header-renderer",function(){if(UoR===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;qMo===void 0&&(qMo=document.createElement("template"));var b=qMo;m.call(c,b.content.cloneNode(!0),J.content.firstChild);UoR=J}J=UoR;return J},{mode:2});var SMS;var hI1;var do4;var $or;var Wh=function(){return _.h.apply(this,arguments)||this};
_.D(Wh,_.h);Wh.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.eE.Object.defineProperties(Wh.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.accessibilityText?this.data.accessibilityText:""}},
vcOfferStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_OFFER_STYLE_STANDARD"}},
showTitleText:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||this.data.style!=="VC_OFFER_STYLE_HERO"||!this.data.titleText)}}});
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Wh.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],Wh.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.t16.YtTappableItemBehavior),_.R("design:type",Object)],Wh.prototype,"ytTappableItemBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Wh.prototype,"data",void 0);
_.O([_.U({reflectToAttribute:!0}),_.q("data.accessibilityText"),_.R("design:type",String),_.R("design:paramtypes",[])],Wh.prototype,"ariaLabel",null);_.O([_.U({reflectToAttribute:!0}),_.q("data.style"),_.R("design:type",String),_.R("design:paramtypes",[])],Wh.prototype,"vcOfferStyle",null);_.O([_.q("data.style","data.titleText"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],Wh.prototype,"showTitleText",null);Wh=_.O([_.uM({is:"yt-vc-offer-renderer",disableElementRegistration:!0})],Wh);
_.v(Wh,"yt-vc-offer-renderer",function(){if($or===void 0){var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);var c=J.content,m=c.insertBefore;do4===void 0&&(do4=document.createElement("template"));var b=do4;m.call(c,b.content.cloneNode(!0),J.content.firstChild);$or=J}J=$or;return J},{mode:2});var zN=function(){return _.h.apply(this,arguments)||this};
_.D(zN,_.h);zN.prototype.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{vcOfferLayoutHeaderRenderer:{component:"yt-vc-offer-layout-header-renderer"}}},"data.offers":{id:"offers",mapping:{vcOfferRenderer:{component:"yt-vc-offer-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],zN.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],zN.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],zN.prototype,"data",void 0);zN=_.O([_.uM({is:"yt-vc-offer-layout-renderer",disableElementRegistration:!0})],zN);
_.v(zN,"yt-vc-offer-layout-renderer",function(){if(hI1===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;SMS===void 0&&(SMS=document.createElement("template"));var b=SMS;m.call(c,b.content.cloneNode(!0),J.content.firstChild);hI1=J}J=hI1;return J},{mode:2});var GZ1;var EGF;var vGh;var OER;var u8=function(){return _.h.apply(this,arguments)||this};
_.D(u8,_.h);u8.prototype.configureRendererStamper=function(){return{"data.dismiss":{id:"dismiss",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}},"data.helpLink":{id:"help-link",mapping:{buttonRenderer:{component:"yt-button-renderer",params:{noink:!0}}}}}};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],u8.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],u8.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],u8.prototype,"data",void 0);u8=_.O([_.uM({is:"yt-ypc-offers-modal-top-bar-renderer",disableElementRegistration:!0})],u8);
_.v(u8,"yt-ypc-offers-modal-top-bar-renderer",function(){if(OER===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;vGh===void 0&&(vGh=document.createElement("template"));var b=vGh;m.call(c,b.content.cloneNode(!0),J.content.firstChild);OER=J}J=OER;return J},{mode:2});var fB=function(){return _.h.apply(this,arguments)||this};
_.D(fB,_.h);fB.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"}}}}};
fB.prototype.ready=function(){this.hostElement.setAttribute("dialog","")};
fB.prototype.attached=function(){this.scrollable.dialogElement=this.hostElement.parentNode;var J=this.scrollable;J.attached&&typeof J.attached==="function"&&J.attached()};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],fB.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],fB.prototype,"ytRendererstamperBehavior",void 0);_.O([_.Iu("#scrollable"),_.R("design:type",Object)],fB.prototype,"scrollable",void 0);_.O([_.U(),_.R("design:type",Object)],fB.prototype,"data",void 0);fB=_.O([_.uM({is:"yt-ypc-offers-modal-renderer",disableElementRegistration:!0})],fB);
_.v(fB,"yt-ypc-offers-modal-renderer",function(){if(EGF===void 0){var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);var c=J.content,m=c.insertBefore;GZ1===void 0&&(GZ1=document.createElement("template"));var b=GZ1;m.call(c,b.content.cloneNode(!0),J.content.firstChild);EGF=J}J=EGF;return J},{mode:2});var AJf;var RIo;var Yf=function(){return _.h.apply(this,arguments)||this};
_.D(Yf,_.h);_.V=Yf.prototype;_.V.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}}}}}};
_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.Bj(this.hostElement).querySelector("#scrollable").dialogElement=this.hostElement.parentNode};
_.V.onYtServiceRequestCompleted_=function(){this.set("showSpinner",!1);_.m9(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"])};
_.V.onYtPopupOpened_=function(J,c){(c==null?void 0:c.is)==="yt-ypc-upgrade-dialog-renderer"&&this.data.onOpenCommands&&_.PA(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.V.onYtPopupClosed_=function(J,c){this.continueButtonTapped||c&&(c.canceled===!0||c.canceled===!1&&c.confirmed===!1)&&this.data.onDismissCommands&&_.PA(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.V.onYtServiceRequestError_=function(J){this.set("showSpinner",!1);_.Bg(this.hostElement,J.detail.error.message)};
_.V.onContinueTapped_=function(){this.set("continueButtonTapped",!0);_.w("enable_ypc_spinners")?_.m9(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"]):this.set("showSpinner",!0)};
Yf.prototype.onYtServiceRequestError_=Yf.prototype.onYtServiceRequestError_;Yf.prototype.onYtPopupClosed_=Yf.prototype.onYtPopupClosed_;Yf.prototype.onYtPopupOpened_=Yf.prototype.onYtPopupOpened_;Yf.prototype.onYtServiceRequestCompleted_=Yf.prototype.onYtServiceRequestCompleted_;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Yf.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],Yf.prototype,"ytRendererstamperBehavior",void 0);
_.O([_.U(),_.R("design:type",Object)],Yf.prototype,"data",void 0);_.O([_.U({value:!1}),_.R("design:type",Boolean)],Yf.prototype,"showSpinner",void 0);_.O([_.U({value:!1}),_.R("design:type",Boolean)],Yf.prototype,"continueButtonTapped",void 0);_.O([_.U({value:function(){return this.onContinueTapped_.bind(this)}}),
_.R("design:type",Function)],Yf.prototype,"bindOnContinueTapped_",void 0);_.O([_.ps("yt-service-request-completed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],Yf.prototype,"onYtServiceRequestCompleted_",null);_.O([_.ps("yt-popup-opened"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,Object]),_.R("design:returntype")],Yf.prototype,"onYtPopupOpened_",null);
_.O([_.ps("yt-popup-closed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,Object]),_.R("design:returntype")],Yf.prototype,"onYtPopupClosed_",null);_.O([_.ps("yt-service-request-error"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],Yf.prototype,"onYtServiceRequestError_",null);Yf=_.O([_.uM({is:"yt-ypc-upgrade-dialog-renderer",disableElementRegistration:!0})],Yf);
_.v(Yf,"yt-ypc-upgrade-dialog-renderer",function(){if(RIo===void 0){var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);var c=J.content,m=c.insertBefore;AJf===void 0&&(AJf=document.createElement("template"));var b=AJf;m.call(c,b.content.cloneNode(!0),J.content.firstChild);RIo=J}J=RIo;return J},{mode:2});var oG5;var QWo;var Xi=function(){return _.h.apply(this,arguments)||this};
_.D(Xi,_.h);Xi.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.confirmButton":{id:"accept-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Xi.prototype.computeHasButtons_=function(J){return!(!J.dismissButton&&!J.confirmButton)};
Xi.prototype.computeStyle_=function(J){return J||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],Xi.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.Ci.YtEventForwardingBehavior),_.R("design:type",Object)],Xi.prototype,"ytEventForwardingBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],Xi.prototype,"ytRendererstamperBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],Xi.prototype,"data",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],Xi.prototype,"positionType",void 0);
_.O([_.U({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.R("design:type",Boolean)],Xi.prototype,"hasButtons_",void 0);_.O([_.U({computed:"computeStyle_(data.style)",reflectToAttribute:!0}),_.R("design:type",Boolean)],Xi.prototype,"style_",void 0);Xi=_.O([_.uM({is:"yt-bubble-hint-renderer",disableElementRegistration:!0})],Xi);
_.v(Xi,"yt-bubble-hint-renderer",function(){if(QWo===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;oG5===void 0&&(oG5=document.createElement("template"));var b=oG5;m.call(c,b.content.cloneNode(!0),J.content.firstChild);QWo=J}J=QWo;return J},{mode:2});var eIr;var jWS;var ZE=function(){var J=_.jE.apply(this,arguments)||this;J.actionMap={"yt-hide-user-checkbox-update":"handleCheckBoxUpdateAction_"};return J};
_.D(ZE,_.jE);_.V=ZE.prototype;_.V.configureRendererStamper=function(){return{"data.checkbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.V.attached=function(){var J=this;this.hasAttribute("dialog")||this.setAttribute("dialog","true");this.$.scroller.dialogElement=this.parentNode;window.requestAnimationFrame(function(){J.$.thumbnail.onShow();J.$["header-image"].onShow()})};
_.V.handleCheckBoxUpdateAction_=function(J){this.canShowCheckboxEnabledConfirmButton=J};
_.V.computeUseOverlayForSpinner_=function(J,c){return!!J&&c};
_.V.computeShowSpinner_=function(J,c){return J||!!c};
_.V.fireOnCloseActions_=function(){var J,c=_.M(((J=this.data)==null?void 0:J.onClosedActions)||[]);for(J=c.next();!J.done;J=c.next())this.ytRendererBehavior.resolveCommand(J.value)};
_.V.fireOnOpenCommands_=function(J){var c,m=(c=this.data)==null?void 0:c.onOpenCommands;if(m)for(J.stopImmediatePropagation(),J=_.M(m),c=J.next();!c.done;c=J.next())this.ytRendererBehavior.resolveCommand(c.value)};
_.V.fireOnDismissCommands_=function(J){var c,m=(c=this.data)==null?void 0:c.onDismissCommands;if(m)for(J.stopImmediatePropagation(),J=_.M(m),c=J.next();!c.done;c=J.next())this.ytRendererBehavior.resolveCommand(c.value)};
_.V.openPopupHandler_=function(J){J.detail==this&&this.fireOnOpenCommands_(J)};
_.V.closePopupHandler_=function(J,c){_.bJ(this,"yt-confirm-dialog-close-action",[c]);this.fireOnCloseActions_();(c&&c.canceled===!0||c&&c.canceled===!1&&c.confirmed===!1)&&this.fireOnDismissCommands_(J)};
_.V.onHeaderImageChanged_=function(){var J;((J=this.data)==null?0:J.headerImage)?this.setAttribute("dialog-with-header-image",""):this.removeAttribute("dialog-with-header-image")};
_.V.computeHasHeaderImageWidth_=function(J){return J!=void 0};
_.V.computeHasLoadingMessage=function(J){return!!J};
_.V.onHeaderImageWidthChanged_=function(){var J,c=(J=this.data)==null?void 0:J.headerImageWidth;if(c){if(J=1.25*c*2+c,this.$.main.style.width=J+"px",c=this.$.scroller.firstElementChild)c.style.minWidth=J+"px"}else this.$.main.style.width="100%"};
_.V.onThumbnailChanged_=function(){var J;((J=this.data)==null?0:J.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")};
_.V.onYtNavigate_=function(J){J=_.Ac(J);J instanceof Node&&_.gB(this.$["confirm-button"]).contains(J)&&this.parentElement&&this.parentElement.close&&this.parentElement.close()};
_.V.computePrimaryIsCancel_=function(J){return J};
_.V.computeIsCancelButtonHidden_=function(J){return J.skipCancelButton||!J.cancelButton};
_.V.computeIsCheckboxHidden_=function(J){return!J.checkbox};
_.V.onThumbnailLoaded_=function(){this.parentElement&&this.parentElement.fit&&this.parentElement.fit()};
_.V.onYtServiceRequestSent_=function(){this.isActionInProgress_=!0};
_.V.onYtServiceRequestCompleted_=function(){var J;((J=this.data)==null?0:J.showLoadingSpinnerOnAction)&&this.parentElement&&this.parentElement.close&&this.parentElement.opened&&this.parentElement.close();this.isActionInProgress_=!1};
_.eE.Object.defineProperties(ZE,{template:{configurable:!0,enumerable:!0,get:function(){if(jWS===void 0){var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);var c=J.content,m=c.insertBefore;eIr===void 0&&(eIr=document.createElement("template"));var b=eIr;m.call(c,b.content.cloneNode(!0),J.content.firstChild);jWS=J}J=jWS;return J}}});
ZE.prototype.onYtServiceRequestCompleted_=ZE.prototype.onYtServiceRequestCompleted_;ZE.prototype.onYtServiceRequestSent_=ZE.prototype.onYtServiceRequestSent_;ZE.prototype.onThumbnailLoaded_=ZE.prototype.onThumbnailLoaded_;ZE.prototype.onYtNavigate_=ZE.prototype.onYtNavigate_;ZE.prototype.onThumbnailChanged_=ZE.prototype.onThumbnailChanged_;ZE.prototype.onHeaderImageWidthChanged_=ZE.prototype.onHeaderImageWidthChanged_;ZE.prototype.onHeaderImageChanged_=ZE.prototype.onHeaderImageChanged_;
ZE.prototype.closePopupHandler_=ZE.prototype.closePopupHandler_;ZE.prototype.openPopupHandler_=ZE.prototype.openPopupHandler_;_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],ZE.prototype,"ytActionHandlerBehavior",void 0);_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],ZE.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],ZE.prototype,"ytRendererBehavior",void 0);
_.O([_.f(_.Ci.YtEventForwardingBehavior),_.R("design:type",Object)],ZE.prototype,"ytEventForwardingBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],ZE.prototype,"data",void 0);_.O([_.U({computed:"computePrimaryIsCancel_(data.primaryIsCancel)",reflectToAttribute:!0,readOnly:!0}),_.R("design:type",Boolean)],ZE.prototype,"primaryIsCancel",void 0);_.O([_.U({computed:"computeIsCancelButtonHidden_(data)",readOnly:!0}),_.R("design:type",Boolean)],ZE.prototype,"isCancelButtonHidden",void 0);
_.O([_.U({computed:"computeIsCheckboxHidden_(data)",readOnly:!0}),_.R("design:type",Boolean)],ZE.prototype,"isCheckboxHidden",void 0);_.O([_.U({value:!1,reflectToAttribute:!0}),_.R("design:type",Boolean)],ZE.prototype,"canShowCheckboxEnabledConfirmButton",void 0);_.O([_.U({value:!1,computed:"computeUseOverlayForSpinner_(data.showLoadingSpinnerOnAction, isActionInProgress_)",reflectToAttribute:!0}),_.R("design:type",Boolean)],ZE.prototype,"useOverlayForSpinner_",void 0);
_.O([_.U({value:!1,computed:"computeShowSpinner_(useOverlayForSpinner_, data.showLoadingSpinner)"}),_.R("design:type",Boolean)],ZE.prototype,"showSpinner_",void 0);_.O([_.U({value:!1}),_.R("design:type",Boolean)],ZE.prototype,"isActionInProgress_",void 0);_.O([_.U({value:!1,reflectToAttribute:!0,computed:"computeHasHeaderImageWidth_(data.headerImageWidth)"}),_.R("design:type",Boolean)],ZE.prototype,"hasHeaderImageWidth_",void 0);
_.O([_.U({value:!1,reflectToAttribute:!0,computed:"computeHasLoadingMessage(data.loadingMessage)"}),_.R("design:type",Boolean)],ZE.prototype,"hasLoadingMessage",void 0);_.O([_.ps("yt-popup-opened"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,Object]),_.R("design:returntype")],ZE.prototype,"openPopupHandler_",null);_.O([_.ps("yt-popup-closed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,Object]),_.R("design:returntype")],ZE.prototype,"closePopupHandler_",null);
_.O([_.NE("data.headerImage"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],ZE.prototype,"onHeaderImageChanged_",null);_.O([_.NE("data.headerImageWidth"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],ZE.prototype,"onHeaderImageWidthChanged_",null);_.O([_.NE("data.thumbnail"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],ZE.prototype,"onThumbnailChanged_",null);
_.O([_.ps("yt-navigate"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],ZE.prototype,"onYtNavigate_",null);_.O([_.ps("yt-img-shadow-loaded"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],ZE.prototype,"onThumbnailLoaded_",null);_.O([_.ps("yt-service-request-sent"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,_.qd]),_.R("design:returntype")],ZE.prototype,"onYtServiceRequestSent_",null);
_.O([_.ps("yt-service-request-completed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,_.Oi]),_.R("design:returntype")],ZE.prototype,"onYtServiceRequestCompleted_",null);ZE=_.O([_.uM({is:"yt-confirm-dialog-renderer",noInjection:!0})],ZE);var Fwh;var l0s;var qY=function(){return _.h.apply(this,arguments)||this};
_.D(qY,_.h);qY.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.Bj(this.hostElement).querySelector("#scroller").dialogElement=this.hostElement.parentNode};
qY.prototype.computeConfirmButton_=function(J){var c={text:J.confirmLabel,size:"SIZE_DEFAULT",style:"STYLE_BLUE_TEXT"};J.confirmNavigationEndpoint?c.navigationEndpoint=J.confirmNavigationEndpoint:J.confirmServiceEndpoint&&(c.serviceEndpoint=J.confirmServiceEndpoint);return c};
qY.prototype.computeShowTitle_=function(J){return!(J==null||!J.title)};
_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],qY.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],qY.prototype,"data",void 0);_.O([_.U({computed:"computeShowTitle_(data)"}),_.R("design:type",Boolean)],qY.prototype,"showTitle",void 0);qY=_.O([_.uM({is:"yt-fancy-dismissible-dialog-renderer",disableElementRegistration:!0})],qY);
_.v(qY,"yt-fancy-dismissible-dialog-renderer",function(){if(l0s===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;Fwh===void 0&&(Fwh=document.createElement("template"));var b=Fwh;m.call(c,b.content.cloneNode(!0),J.content.firstChild);l0s=J}J=l0s;return J});var yJS;var BSe;var UV=function(){var J=_.h.apply(this,arguments)||this;J.spinnerActive=!1;return J};
_.D(UV,_.h);UV.prototype.created=function(){nb1(2201)};
UV.prototype.onIronOverlayOpened=function(){this.spinnerActive=!0};
UV.prototype.onIronOverlayClosed=function(){this.spinnerActive=!1};
UV.prototype.onIronOverlayClosed=UV.prototype.onIronOverlayClosed;UV.prototype.onIronOverlayOpened=UV.prototype.onIronOverlayOpened;_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],UV.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.dI),_.R("design:type",Object)],UV.prototype,"tpYtIronOverlayBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],UV.prototype,"data",void 0);_.O([_.U(),_.R("design:type",Object)],UV.prototype,"spinnerActive",void 0);
_.O([_.ps("iron-overlay-opened"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],UV.prototype,"onIronOverlayOpened",null);_.O([_.ps("iron-overlay-closed"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],UV.prototype,"onIronOverlayClosed",null);UV=_.O([_.uM({is:"yt-loading-renderer",disableElementRegistration:!0})],UV);
_.v(UV,"yt-loading-renderer",function(){if(BSe===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;yJS===void 0&&(yJS=document.createElement("template"));var b=yJS;m.call(c,b.content.cloneNode(!0),J.content.firstChild);BSe=J}J=BSe;return J},{mode:2});var gGR;var JXS;var SC=function(){var J=_.h.apply(this,arguments)||this;J.closeOnDismissButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);J.closeOnAcceptButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);J.defaultDismissStrategy_="UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN";J.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return J};
_.D(SC,_.h);_.V=SC.prototype;_.V.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.V.onDarkModeToggledAction=function(J){this.isDarkTheme=J};
_.V.dataChanged_=function(){this.data&&(this.hostElement.hidden=!this.data.isVisible,this.data.isVisible||this.ytRendererBehavior.impressionLog())};
_.V.openPopupHandler_=function(J){J.detail===this.hostElement&&this.hostElement.hidden&&_.m9(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"])};
_.V.onDismissButtonTap_=function(){var J;this.closeOnDismissButton_.has(((J=this.data)==null?void 0:J.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.m9(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.V.onAcceptButtonTap_=function(){var J;this.closeOnAcceptButton_.has(((J=this.data)==null?void 0:J.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.m9(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.V.computeHasHeader_=function(J){return!!J.headerBackgroundImage};
_.V.computeLayoutStyle_=function(J){return J};
_.V.computePopupSize_=function(J){return J};
_.V.computeIconType_=function(J){return J.dialogIcon&&J.dialogIcon.iconType?J.dialogIcon.iconType==="YOUTUBE_LOGO"?"yt-logos-ext:yt-logo-updated":J.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"?"yt-logos-ext:yt-logo-red-updated":J.dialogIcon.iconType:""};
_.V.computeIsLogo_=function(J){return!!J.dialogIcon&&!!J.dialogIcon.iconType&&(J.dialogIcon.iconType==="YOUTUBE_LOGO"||J.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"||J.dialogIcon.iconType==="YOUTUBE_MUSIC_LOGO_SHORT")};
_.V.computeHasCustomLogo=function(J){return!(J==null||!J.headerForegroundImage)};
_.V.computeCustomLogo=function(J,c){if(J!=null&&J.headerForegroundImage)return J.headerForegroundImageDark?c?J.headerForegroundImageDark:J.headerForegroundImage:J.headerForegroundImage};
_.V.computeHeaderBackgroundImage=function(J,c){if(J!=null&&J.headerBackgroundImage)return c&&(J==null?0:J.headerBackgroundImageDark)?J.headerBackgroundImageDark:J.headerBackgroundImage};
_.V.shouldShowIconContainer=function(J,c){return J&&!c};
_.V.shouldShowNonYouTubeIcon=function(J,c){return!J&&!c};
_.V.getLogoImageId=function(J){var c,m,b;return(J=(c=this.computeCustomLogo(J,this.isDarkTheme))==null?void 0:(m=c.thumbnails)==null?void 0:(b=m[0])==null?void 0:b.height)&&J%31===0?"custom-logo-with-padding":"custom-logo"};
SC.prototype.openPopupHandler_=SC.prototype.openPopupHandler_;SC.prototype.dataChanged_=SC.prototype.dataChanged_;_.O([_.f(_.lU.YtRendererstamperBehavior),_.R("design:type",Object)],SC.prototype,"ytRendererstamperBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],SC.prototype,"ytRendererBehavior",void 0);_.O([_.U(),_.R("design:type",Boolean)],SC.prototype,"isDarkTheme",void 0);
_.O([_.U({computed:"computeCustomLogo(data, isDarkTheme)"}),_.R("design:type",Object)],SC.prototype,"customLogo",void 0);_.O([_.U({computed:"computeHeaderBackgroundImage(data, isDarkTheme)"}),_.R("design:type",Object)],SC.prototype,"headerBackgroundImage",void 0);_.O([_.U(),_.R("design:type",Object)],SC.prototype,"data",void 0);_.O([_.U({computed:"computeHasHeader_(data)"}),_.R("design:type",Boolean)],SC.prototype,"hasHeader",void 0);
_.O([_.U({computed:"computeLayoutStyle_(data.layout)",reflectToAttribute:!0}),_.R("design:type",Object)],SC.prototype,"layoutStyle",void 0);_.O([_.U({computed:"computePopupSize_(data.popupSize)",reflectToAttribute:!0}),_.R("design:type",Object)],SC.prototype,"popupSize",void 0);_.O([_.U({computed:"computeIsLogo_(data)",reflectToAttribute:!0}),_.R("design:type",Boolean)],SC.prototype,"hasLogo",void 0);
_.O([_.U({computed:"computeHasCustomLogo(data)",reflectToAttribute:!0}),_.R("design:type",Boolean)],SC.prototype,"hasCustomLogo",void 0);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],SC.prototype,"dataChanged_",null);_.O([_.ps("yt-popup-opened"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],SC.prototype,"openPopupHandler_",null);
SC=_.O([_.uM({is:"yt-upsell-dialog-renderer",disableElementRegistration:!0})],SC);
_.v(SC,"yt-upsell-dialog-renderer",function(){if(JXS===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;gGR===void 0&&(gGR=document.createElement("template"));var b=gGR;m.call(c,b.content.cloneNode(!0),J.content.firstChild);JXS=J}J=JXS;return J},{mode:2});var cXF=_.Q1(function(J){return _.C("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-dialog-header"},_.C(_.n,{cond:J.title,then:function(c){return _.C("h2",{class:"mini-app-game-info-dialog-view-model-wiz__header-title"},c)}}))},"vg"),mpR=_.Q1(function(J){return _.C("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-dialog-footer"},_.C(_.wi,{data:J.closeButton},{buttonViewModel:function(c){return _.C("div",null,_.C(_.XU,{data:c.data}))}}))},"wg"),b5r=_.Q1(function(J){var c=
J.data;
return _.C(_.cG,null,_.C("div",{class:"mini-app-game-info-dialog-view-model-wiz__primary-game-info-details"},_.C("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-image-wrapper"},_.C(_.n,{cond:function(){return!!c().image&&!!c().title},
then:function(){return _.C(_.RA,{data:function(){return c().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.C("div",{class:"mini-app-game-info-dialog-view-model-wiz__primary-game-info"},_.C(_.n,{cond:function(){return c().title},
then:function(m){return _.C("h3",{class:"mini-app-game-info-dialog-view-model-wiz__title"},m)}}),_.C(_.n,{cond:function(){return c().primaryGenre},
then:function(m){return _.C("span",{class:"mini-app-game-info-dialog-view-model-wiz__genre"},m)}}))),_.C(_.n,{cond:function(){var m=c().description;
return m&&m.length<=150},
then:function(){return _.C("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-description-wrapper"},_.C("span",{class:"mini-app-game-info-dialog-view-model-wiz__game-description"},function(){return c().description}))}}))},"xg"),xp5=_.Q1(function(J){J=J.infoRows;
var c=_.BG().resolve(_.ZR),m=_.w("enable_displaying_ppn");return _.C("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-rows-wrapper"},_.C(_.Te,{each:J},function(b){return _.C("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-row"},_.C(_.n,{cond:function(){return b.label},
then:function(x){return _.C("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},x)}}),_.C(_.n,{cond:function(){return b.attributedLabel},
then:function(x){return _.C("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},_.C(_.j8,{text:x,noPreWrap:!0}))}}),_.C(_.n,{cond:function(){return b.value},
then:function(x){return _.C("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},x)}}),_.C(_.n,{cond:function(){return b.attributedValue},
then:function(x){return _.C("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},_.C(_.j8,{text:x,noPreWrap:!0}))}}))}),_.C(_.n,{cond:function(){return m&&c.clientData.has("post_play_nonce")},
then:function(){return _.C("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-row"},_.C("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},"Post Play Nonce"),_.C("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},c.getData("post_play_nonce")))}}))},"yg"),VZf=_.Q1(function(J){var c=J.data;
return _.C("yt-mini-app-game-info-dialog-view-model",{class:"mini-app-game-info-dialog-view-model-wiz"},_.C(cXF,{title:function(){return c().dialogTitle}}),_.C(b5r,{data:c}),_.C(_.n,{cond:function(){return c().infoRow},
then:function(m){return _.C(xp5,{infoRows:m})}}),_.C(mpR,{closeButton:function(){return c().closeButton}}))},"zg");
VZf.idomCompat=!0;_.lv(VZf,"yt-mini-app-game-info-dialog-view-model",{props:{data:_.vt}});_.lv(_.Q1(function(J){var c=J.data;return _.C("yt-gulp-triggering-dialog-view-model",{class:"ytGulpTriggeringDialogViewModelHost"},_.C(_.RA,{data:function(){return c().headerImage},
alt:"",className:"ytGulpTriggeringDialogViewModelHostImage"}),_.C("div",{class:"ytGulpTriggeringDialogViewModelHostDialog"},_.C("div",{class:"ytGulpTriggeringDialogViewModelHostIconDiv"},_.C(_.n,{cond:function(){var m=c().ytLogo;return m?m.iconType:null},
then:function(m){return _.C(_.HP,{icon:m,className:"ytGulpTriggeringDialogViewModelHostIcon"})}})),_.C("div",{class:"ytGulpTriggeringDialogViewModelHostContent"},_.C("p",{class:"ytGulpTriggeringDialogViewModelHostTitle"},_.C(_.j8,{text:function(){return c().title}})),_.C("p",{class:"ytGulpTriggeringDialogViewModelHostParagraph"},_.C(_.j8,{text:function(){return c().body}})),_.C("p",{class:"ytGulpTriggeringDialogViewModelHostLastParagraph"},_.C(_.j8,{text:function(){return c().verifyStateText}}))),
_.C("div",{class:"ytGulpTriggeringDialogViewModelHostButtonRow"},_.C("div",null,_.C(_.wi,{data:function(){return c().dismissButton}},{buttonViewModel:_.XU})),_.C("div",null,_.C(_.wi,{data:function(){return c().linkParentButton}},{buttonViewModel:_.XU})))))},"Ag"),"yt-gulp-triggering-dialog-view-model",{props:{data:_.vt}});var Ppe=_.Q1(function(J){var c=J.data;return _.C("installment-agreements-view-model",{class:_.pq("ytInstallmentAgreementsViewModelHost")},_.C(_.Te,{each:_.Ru(function(){return c().agreements},[])},function(m){return _.C("div",{class:"ytInstallmentAgreementsViewModelAgreementRow"},_.C("div",{class:"ytInstallmentAgreementsViewModelAgreementLabel"},_.C(_.j8,{text:m.label})),_.C("div",{class:"ytInstallmentAgreementsViewModelAgreementButton"},_.C(_.wi,{data:function(){return m.openButton}},{buttonViewModel:_.XU})))}))},
"Bg");
Ppe.idomCompat=!0;var MZe=_.Q1(function(J){return _.C("collaborative-playlist-invite-message-view-model",{class:"ytCollaborativePlaylistInviteMessageViewModelHost"},_.C("div",{class:"ytCollaborativePlaylistInviteMessageViewModelInviteMessageWrapper"},_.C(_.j8,{text:function(){return J.data().inviteMessage}})),_.C("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountSectionHeaderText"},_.C(_.j8,{text:function(){return J.data().attributedAccountSectionHeaderText}})),_.C("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountWrapper"},
_.C(_.wi,{data:function(){return J.data().accountAvatar}},{avatarViewModel:_.s8}),_.C("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountText"},_.C(_.j8,{text:function(){return J.data().accountName}}),_.C("div",{class:"ytCollaborativePlaylistInviteMessageViewModelHandle"},_.C(_.j8,{text:function(){return J.data().handle}}))),_.C(_.wi,{data:function(){return J.data().trailingButton}},{buttonViewModel:_.XU})),_.C("div",{class:"ytCollaborativePlaylistInviteMessageViewModelTermsOfService"},
_.C(_.j8,{text:function(){return J.data().termsOfService}})))},"Cg");var pks=_.Q1(function(J){var c=_.M(_.aO(function(){var y,pG;return((y=J.data().createPlaylistDialogFormSchema)==null?0:(pG=y.initialValues)==null?0:pG.title)?J.data().createPlaylistDialogFormSchema.initialValues.title:""})),m=c.next().value,b=c.next().value;
c=_.M(_.aO(function(){J.data();return!1}));
var x=c.next().value,P=c.next().value;c=_.M(_.aO(function(){J.data();return!1}));
var p=c.next().value,t=c.next().value;c=_.M(_.aO(function(){var y,pG;return(y=J.data().createPlaylistDialogFormSchema)==null?void 0:(pG=y.initialValues)==null?void 0:pG.visibility}));
var I=c.next().value,a=c.next().value;c=_.M(_.aO(function(){J.data();return!1}));
var k=c.next().value,H=c.next().value;c=_.M(_.aO(function(){var y,pG;return(y=J.data().createPlaylistDialogFormSchema)==null?void 0:(pG=y.initialValues)==null?void 0:pG.isCollaborative}));
var T=c.next().value,r=c.next().value,W=_.oN("div");_.ui(function(){var y=W.value.querySelector("textarea");y&&(y.value=m())},"OCauEe");
_.uN(function(){var y;_.fFR((y=J.data().createPlaylistDialogFormSchema)==null?void 0:y.id,{onSubmit:function(){var pG=m();var kt=I(),nG=T(),fG=J.data();pG={commandExecutorCommand:{commands:[{createPlaylistServiceEndpoint:{title:pG,privacyStatus:kt,videoIds:fG.videoIds,sourcePlaylistId:fG.sourcePlaylistId,params:nG?fG.createPlaylistParamsCollaborationEnabled:fG.createPlaylistParamsCollaborationDisabled}},{dismissDialogEndpoint:{}}]}};_.BG().resolve(_.gu).resolveCommand(pG)},
isValid:function(){return x()&&!p()&&!k()}})});
var Y=function(y){if(y!==void 0&&(b(y),!x()&&y.length>0&&P(!0),x())){var pG=Y2S(J.data());if(pG){var kt=pG.minLength;pG=pG.maxLength;kt&&y.length<kt?t(!0):pG&&y.length>pG?t(!0):t(!1)}}},Z=function(){var y=!(!T()||I()!=="PRIVATE");
H(y)},d=function(y){y!==void 0&&(a(y),Z())},G=function(){if(k())return ZXs(J.data())},e=function(){r(!T());
Z()},A=function(){return{validate:function(y){if(x()){var pG=Y2S(J.data());
if(pG){var kt=pG.minLength;pG=pG.translations;if(kt&&y.length<kt)return pG==null?void 0:pG.minLengthErrorMessage}}}}},l=function(){var y=Y2S(J.data()),pG=y==null?void 0:y.maxLength,kt;
y=y==null?void 0:(kt=y.translations)==null?void 0:kt.maxLengthErrorMessage;if(pG&&y)return{maxChars:pG,errorMessage:y}};
return _.C("yt-create-playlist-dialog-form-view-model",{class:"ytCreatePlaylistDialogFormViewModelHost"},_.C("div",{class:"ytCreatePlaylistDialogFormViewModelTitleField",el:W},_.C(_.wi,{data:function(){return J.data().playlistTitle}},{textFormFieldViewModel:function(y){return _.C(_.I7p,{data:y.data,
text:m,onInput:Y,validation:A,characterLimit:l})},
textFieldViewModel:function(y){return _.C(_.tAF,{data:y.data,text:m,onInput:Y,validation:A,characterLimit:l})}})),_.C("div",{class:"ytCreatePlaylistDialogFormViewModelVisibilityField"},_.C(_.wi,{data:function(){return J.data().playlistVisibility}},{dropdownViewModel:function(y){return _.C(_.LYp,{data:y.data,
onSelected:d,error:G})}})),_.C(_.n,{cond:function(){return!!J.data().playlistCollaborate},
then:function(){return _.C("div",null,_.C(_.wi,{data:function(){return J.data().playlistCollaborate}},{switchListItemViewModel:function(y){return _.C(_.TX_,{data:y.data,
onTap:e})}}))}}))},"Dg");var Nrs=_.Q1(function(J){var c=_.Ru(J.noPadding,!1),m=function(){var x,P;return(P=(x=J.data().logo.accessibilityData)==null?void 0:x.label)!=null?P:""},b={};
return _.C("upsell-view-model",{class:_.pq("ytUpsellViewModelHost",(b.ytUpsellViewModelHostNoPadding=function(){return c()},b))},_.C("div",{class:"ytUpsellViewModelHostUpsellLogo"},_.C(_.n,{cond:function(){return _.e8(J.data().logo)},
then:function(x){return _.C(_.RA,{data:x,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:m})}})),_.C("div",{class:"ytUpsellViewModelHostUpsellTitle"},_.C(_.j8,{text:function(){return J.data().title}})),_.C("div",{class:"ytUpsellViewModelHostUpsellSubtitleSection"},_.C(_.Te,{each:function(){var x;
return(x=J.data().subtitles)!=null?x:[]},
keyBy:"INDEX"},function(x){return _.C("div",{class:"ytUpsellViewModelHostUpsellSubtitleSectionSubtitle"},_.C(_.j8,{text:x}))})),_.C("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSection"},_.C(_.Te,{each:function(){var x;
return(x=J.data().benefitInfos)!=null?x:[]},
keyBy:"INDEX"},function(x){return _.C(_.n,{cond:function(){return x().info},
then:function(P){return _.C("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSectionBenefitInfo"},_.C(_.HP,{icon:"CHECK_CIRCLE_FILLED",className:"ytUpsellViewModelHostUpsellBenefitInfoSectionIcon"}),_.C(_.j8,{text:P}))}})})),_.C("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSection"},_.C(_.Te,{each:function(){var x;
return(x=J.data().legalInfos)!=null?x:[]},
keyBy:"INDEX"},function(x){return _.C("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfo"},_.C(_.j8,{text:x}))})))},"Eg");var tZo=_.Q1(function(J){var c=J.data;J={};J=(J.ytMiniAppScoreChallengeViewModelScoreRadial=!0,J.ytMiniAppScoreChallengeViewModelDarkScoreRadial=q2F(),J);return _.C("yt-mini-app-score-challenge-view-model",{class:"ytMiniAppScoreChallengeViewModelHost"},_.C("div",{class:"ytMiniAppScoreChallengeViewModelTitle"},function(){return c().title}),_.C("div",{class:"ytMiniAppScoreChallengeViewModelSubtitle"},function(){return c().subtitle}),_.C("div",{class:_.tP(J)},_.C("div",{class:"ytMiniAppScoreChallengeViewModelScore"},
function(){return c().score})),_.C("div",{class:"ytMiniAppScoreChallengeViewModelPrompt"},function(){return c().prompt}))},"Fg");var Iy5=function(){this.store=_.v9();this.formId=""};var Klf=_.Q1(function(J){function c(t){if(t&&(t=_.L(t,_.CK)))return Object.assign({},t,{isSelected:P()})}
var m=_.M(_.aO(function(){var t,I;return(I=(t=_.L(J.data().option,_.CK))==null?void 0:t.isSelected)!=null?I:!1})),b=m.next().value,x=m.next().value,P=b;
_.uN(function(){var t;_.fFR((t=J.data().formSchema)==null?void 0:t.id,{onSubmit:function(){var I=_.BG().resolve(_.gu),a=!!J.data().selectedCommand,k=!!J.data().unselectedCommand;if(P()){if(a)var H=J.data().selectedCommand}else k&&(H=J.data().unselectedCommand);H=_.ZG(H);c(J.data().option)&&!H?(I="",!a&&k?I="selected ":a&&!k&&(I="unselected "),a=new _.w3("No "+I+"command found for SelectionListItemFormViewModel"),_.Xc(a)):H&&I.resolveCommand(H)},
isValid:function(){return!0}})});
var p=function(){x(!P())};
_.f2(function(){var t,I,a=(t=J.data())==null?void 0:(I=t.formSchema)==null?void 0:I.id;a&&_.zN4()().delete(a)});
return _.C("yt-selection-list-item-form-view-model",{class:"ytSelectionListItemFormViewModelHost"},_.C("div",{class:"ytSelectionListItemFormViewModelParagraph"},_.C(_.j8,{text:function(){return J.data().paragraph}})),_.C(_.n,{cond:function(){return c(J.data().option)},
then:function(t){return _.C(_.Da,{data:t,isCompact:!0,hideSelectionTextChevron:!0,onTap:p,disableHorizontalPadding:!0})}}))},"Gg");var Cpo=_.Q1(function(J){var c=J.data;var m=J.disablePadding;var b=J.className;var x=_.oN("yt-dialog-header-view-model"),P=function(){var t=c().imageBanner;a:switch(c().assetContainerPaddingStyle){case "DIALOG_HEADER_ASSET_PADDING_STYLE_INSET":var I="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO";break a;default:I="CONTENT_PREVIEW_IMAGE_STYLE_DEFAULT"}return{themedImage:t,style:I,layoutMode:"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"}},p=function(){return c().assetContainerPaddingStyle!=="DIALOG_HEADER_ASSET_PADDING_STYLE_INSET"};
_.uN(function(){var t=function(){_.m9(x.value,"yt-refit-popups-action")},I;
(I=x.value)==null||I.addEventListener("image-loaded",t);_.f2(function(){var a;(a=x.value)==null||a.removeEventListener("image-loaded",t)})});
J={};return _.C("yt-dialog-header-view-model",{el:x,class:_.pq(b,(J.ytDialogHeaderViewModelHost=!0,J.ytDialogHeaderViewModelHostDisablePadding=m,J))},_.C(_.n,{cond:function(){return c().imageBanner},
then:function(){var t={};return _.C("div",{class:_.pq(b,(t.ytDialogHeaderViewModelBanner=!0,t.ytDialogHeaderViewModelBannerFullBleed=p,t)),style:_.kx({"max-height":function(){return c().assetContainerMaxHeight!==void 0?c().assetContainerMaxHeight+"px":void 0}})},_.C(_.lF,{data:P,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.C(_.n,{cond:function(){return c().headerBlock},
then:function(){return _.C("div",{class:"ytDialogHeaderViewModelHeaderBlock"},_.C(_.wi,{data:function(){return c().headerBlock}},{contentPreviewImageViewModel:function(t){return _.C(_.lF,{data:t.data,
notifyOnLoaded:!0})}}))}}),_.C(_.n,{cond:function(){return c().customAssetContainer},
then:function(t){return _.C("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},_.C(_.wi,{data:t},{avatarStackViewModel:_.DN}))}}),_.C(_.n,{cond:function(){return c().customBanner},
then:function(t){return _.C("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},_.C(_.wi,{data:t},{avatarStackViewModel:_.DN}))}}),_.C(_.n,{cond:function(){return c().headline},
then:function(t){return _.C("h2",null,_.C(_.j8,{text:t,className:"ytDialogHeaderViewModelText"}))}}))},"Hg");
Cpo.idomCompat=!0;var ayu=_.Q1(function(J){var c=_.YwR(function(){return J.data().formId}),m=c.onSubmit,b=c.isValid;
return _.C("yt-form-panel-footer-view-model",{class:"ytFormPanelFooterViewModelHost"},_.C(_.wi,{data:function(){return J.data().panelFooter}},{panelFooterViewModel:function(x){return _.C(_.dg,{data:x.data,
disablePadding:!0,disablePrimaryButton:function(){return!b()},
onClickPrimaryButton:function(){m()}})}}))},"Ig");var kaf=_.Q1(function(J){var c=function(){var m,b;return(b=(m=_.L(J.data().rendererContext,_.KO))==null?void 0:m.label)!=null?b:""};
return _.C("yt-dialog-image-content-view-model",{class:_.pq("ytDialogImageContentViewModelHost",J.className)},_.C(_.n,{cond:function(){return _.e8(J.data().image)},
then:function(m){return _.C(_.RA,{data:m,alt:c,className:"ytDialogImageContentViewModelImage",contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT"})}}),_.C(_.j8,{text:function(){return J.data().description},
className:"ytDialogImageContentViewModelDescription"}))},"Jg");var nOo=_.Q1(function(J){var c=_.ou(J,{headerPosition:0,buttonLayout:0,buttonStyle:0,contentAlignment:0,maxHeight:0,isFullscreen:!1,isHeaderWizDefined:!1,isFooterWizDefined:!1}),m=c.elRefCallback;J=c.iconWiz;var b=c.assetWiz,x=c.assetType,P=c.titleWiz,p=c.leadingActionHeaderWiz,t=c.trailingActionHeaderWiz,I=c.headerPosition,a=c.contentWiz,k=c.buttonLayout,H=c.buttonStyle,T=c.primaryButtonWiz,r=c.secondaryButtonWiz,W=c.contentAlignment,Y=c.isFullscreen,Z=c.width,d=c.maxHeight,G=c.isHeaderWizDefined,
e=c.headerWiz,A=c.isFooterWizDefined,l=c.footerWiz;c=_.oN("dialog-layout",function(Em){m==null||m(Em)});
var y=b?function(){return b({className:"yt-spec-dialog-layout__dialog-layout-asset-item"})}:void 0,pG=T?function(){var Em={};
return T({buttonOverrides:function(){return{style:(H==null?void 0:H())===1?"call-to-action":"mono",type:"filled",state:"active",size:"M"}},
className:_.pq((Em["yt-spec-dialog-layout__dialog-layout-button"]=!0,Em["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(k==null?void 0:k())===0||(k==null?void 0:k())===2},Em))})}:void 0,kt=r?function(){var Em={};
return r({buttonOverrides:{style:"mono",type:"outline",state:"active",size:"M"},className:_.pq((Em["yt-spec-dialog-layout__dialog-layout-button"]=!0,Em["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(k==null?void 0:k())===0||(k==null?void 0:k())===2},Em))})}:void 0,nG=function(){return(!!P||!!p||!!t)&&I()===0},fG={},Yt={},Z3={},oR={};
return _.C("dialog-layout",{el:c,class:_.pq((fG["yt-spec-dialog-layout"]=!0,fG["yt-spec-dialog-layout--dialog-layout-fullscreen"]=Y,fG["yt-spec-dialog-layout--dialog-layout-responsive"]=function(){return!Y()},fG["yt-spec-dialog-layout--dialog-layout-extended-max-height"]=function(){return d()===1},fG["yt-spec-dialog-layout--dialog-layout-asset-inset"]=function(){return(x==null?void 0:x())===1},fG)),
style:function(){return(Z==null?void 0:Z())!==void 0?"width: "+Z+"px;":""}},J?_.C("div",{class:_.pq((Yt["yt-spec-dialog-layout__dialog-layout-icon"]=!0,Yt["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-above-media"]=function(){return!!b&&I()===1},Yt["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-center-align"]=function(){return W()===1},Yt))},_.C(J,null)):null,_.C(_.n,{cond:G,
then:function(){return e?_.C("div",{class:"yt-spec-dialog-layout__dialog-header-container"},_.C(e,null)):null},
else:function(){return _.C(_.cG,null,_.C(_.n,{cond:nG,then:function(){return _.C(H51,{contentAlignment:W,LeadingActionHeader:p,TrailingActionHeader:t,Title:P,isAboveAsset:!!y})}}),y?_.C("div",{class:"yt-spec-dialog-layout__dialog-layout-asset"},_.C(y,null)):null)}}),_.C("div",{class:_.pq((Z3["yt-spec-dialog-layout__dialog-layout-container"]=!0,Z3["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(W==null?void 0:W())===1},Z3["yt-spec-dialog-layout__dialog-layout-container--dialog-layout-container-top-padding"]=
function(){return!P&&!e||!!y&&(I==null?void 0:I())===0},Z3))},_.C(_.n,{cond:function(){return P&&!e&&(I==null?void 0:I())===1},
then:function(){return _.C(H51,{contentAlignment:W,LeadingActionHeader:p,TrailingActionHeader:t,Title:P,isAboveAsset:!1})}}),a?_.C("div",{class:"yt-spec-dialog-layout__dialog-layout-content"},_.C("div",{class:"yt-spec-dialog-layout__dialog-layout-content-inner"},_.C(a,null))):null,_.C(_.n,{cond:A,
then:function(){return l?_.C("div",{class:"yt-spec-dialog-layout__dialog-layout-footer-container"},_.C(l,null)):null}}),pG||kt?_.C(i5s,{footerClasses:_.pq((oR["yt-spec-dialog-layout__dialog-layout-footer-container"]=!0,oR["yt-spec-dialog-layout__dialog-layout-footer"]=!0,oR["yt-spec-dialog-layout--dialog-buttons-stacked"]=function(){return(k==null?void 0:k())===2},oR["yt-spec-dialog-layout__dialog-layout-footer--dialog-buttons-inline-end"]=function(){return(k==null?void 0:k())===1},oR)),
PrimaryButton:pG,SecondaryButton:kt}):null))},"Kg"),H51=_.Q1(function(J){var c=_.ou(J,{isAboveAsset:!1,
enableLeadingActionHeader:!0}),m=c.contentAlignment,b=c.LeadingActionHeader;J=c.Title;var x=c.TrailingActionHeader,P=c.isAboveAsset,p=c.enableLeadingActionHeader;c={};return _.C("div",{class:_.pq((c["yt-spec-dialog-layout__dialog-header-container"]=!0,c["yt-spec-dialog-layout__dialog-header"]=!0,c["yt-spec-dialog-layout__dialog-header--dialog-header-above-asset"]=P,c["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(m==null?void 0:m())===1&&p()},c))},_.C(_.n,{cond:function(){return p()},
then:function(){return b?_.C("div",{class:"yt-spec-dialog-layout__dialog-leading-action-header"},_.C(b,null)):null}}),J?_.C("h2",{class:"yt-spec-dialog-layout__dialog-layout-title"},_.C(J,null)):null,x?_.C("div",null,_.C(x,null)):null)},"Lg"),i5s=_.Q1(function(J){var c=J.footerClasses;
var m=J.PrimaryButton;J=J.SecondaryButton;return _.C("div",{class:c},J?_.C(J,null):null,m?_.C(m,null):null)},"Mg");var Tr5=_.Q1(function(J){var c=J.data;return _.C("ytfz-fanzone-scheduled-info-view-model",{class:"ytfzFanzoneScheduledInfoViewModelHost"},_.C("div",{class:"ytfzFanzoneScheduledInfoViewModelAvatar"},_.C(_.wi,{data:function(){return c().avatar}},{avatarViewModel:_.s8})),_.C("h2",{class:"ytfzFanzoneScheduledInfoViewModelTitle"},_.C(_.j8,{text:function(){return c().title}})),_.C(_.j8,{text:function(){return c().description},
className:"ytfzFanzoneScheduledInfoViewModelDescription"}))},"Ng");var wkr=_.Q1(function(J){var c=J.data;return _.C("yt-access-confirmation-view-model",{class:"ytAccessConfirmationViewModelHost"},_.C("div",{class:"ytAccessConfirmationViewModelContent"},_.C(_.wi,{data:function(){return c().dualAvatar}},{dualAvatarViewModel:function(m){return _.C("div",{class:"ytAccessConfirmationViewModelDualAvatar"},_.C(_.Fbz,{data:m.data}))}}),_.C("h2",{class:"ytAccessConfirmationViewModelTitle"},_.C(_.j8,{text:function(){return c().title}})),_.C(_.j8,{text:function(){return c().subtitle},
className:"ytAccessConfirmationViewModelSubtitle"})))},"Og");var rXF=_.Q1(function(J){var c=J.data;var m=void 0;J=_.M(_.K2("",void 0,"bj3Bbf"));var b=J.next().value,x=J.next().value,P,p=function(){x("");var a;(a=m)!=null&&a.store.dispatch(_.J7({type:"RESET_COMMAND_MAP"}))};
_.uN(function(){m=new Iy5;window.addEventListener("yt-popup-closed",p)});
_.ui(function(){if(m&&P!==c().formId){var a=m,k=c();k.formId&&(a.formId=k.formId,a.store.dispatch(_.J7({type:"SET_CURRENT_FORM_ID",payload:{formId:a.formId}})));P=c().formId}},"h7G5O");
_.f2(function(){window.removeEventListener("yt-popup-closed",p)});
var t=function(a,k,H){k.key&&H&&k.key!==b()&&(x(k.key),m&&k.command&&m.store.dispatch(_.J7({type:"SET_COMMAND_FOR_GROUP_ID",payload:{groupId:H,command:k.command}})))},I=function(){if(_.L(c().content,_.QwR))return!(b==null?0:b())};
return _.C("yt-dialog-view-model",{class:_.pq("ytDialogViewModelHost","ytDialogViewModelResetSpacing"),dialog:!0},_.C(nOo,{headerWiz:function(){return _.C("span",{skip:!0},_.C(_.wi,{data:function(){return c().header}},{dialogHeaderViewModel:function(a){return _.C(Cpo,{data:a.data,
disablePadding:!0})}}))},
isHeaderWizDefined:function(){return!!c().header},
contentWiz:function(){return _.C("span",{skip:!0},_.C(_.wi,{data:function(){return c().customContent?c().customContent:c().content}},{basicContentViewModel:_.ZhQ,
createPlaylistDialogFormViewModel:pks,collaborativePlaylistInviteMessageViewModel:MZe,miniAppScoreChallengeViewModel:tZo,radioButtonGroupViewModel:function(a){return _.C(_.wFu,{data:a.data,selectedKey:b,onSelected:t})},
selectionListItemFormViewModel:Klf,upsellViewModel:function(a){return _.C(Nrs,{data:a.data,noPadding:!0})},
fanzoneScheduledInfoViewModel:Tr5,installmentAgreementsViewModel:Ppe,accessConfirmationViewModel:wkr,listViewModel:function(a){return _.C(_.uNz,{data:a.data,disableHorizontalPadding:!0})},
dialogImageContentViewModel:kaf}))},
footerWiz:function(){return _.C("span",{skip:!0},_.C(_.wi,{data:function(){return c().footer}},{panelFooterViewModel:function(a){return _.C(_.dg,{data:a.data,
disablePadding:!0,disablePrimaryButton:I})},
formPanelFooterViewModel:ayu,formFooterViewModel:function(a){return _.C(_.MAo,{data:a.data,disablePadding:!0})}}))},
isFooterWizDefined:function(){return!!c().footer}}))},"Pg");
rXF.idomCompat=!0;_.lv(rXF,"yt-dialog-view-model",{props:{data:_.vt},unsafeExternallySettableAttributes:new Set(["tabindex","style"])});var sJs=_.Q1(function(J){var c=J.data;J={};return _.C("yt-panel-header-view-model",{class:_.pq("yt-panel-header-view-model-wiz",(J["yt-panel-header-view-model-wiz--hide-divider"]=function(){return!!c().shouldHideDivider},J["yt-panel-header-view-model-wiz--compact"]=function(){return!!c().subtitle},J))},_.C("div",{class:"yt-panel-header-view-model-wiz__title-wrapper"},_.C(_.n,{cond:function(){return c().title},
then:function(m){return _.C(_.j8,{text:m,className:"yt-panel-header-view-model-wiz__title"})}}),_.C(_.n,{cond:function(){return c().subtitle},
then:function(m){return _.C(_.j8,{text:m,className:"yt-panel-header-view-model-wiz__subtitle"})}})),_.C("div",{class:"yt-panel-header-view-model-wiz__trailing-buttons"},_.C(_.wi,{data:function(){return c().trailingButtons}},{buttonViewModel:function(m){return _.C(_.XU,{data:m.data,
className:"yt-panel-header-view-model-wiz__button"})}})))},"Qg");
sJs.idomCompat=!0;var Llp=_.Q1(function(J){var c=_.Kq(function(P){var p;if((p=J.skipContentClick)==null?0:p.call(J))return!1;J.onContentWrapperClick(P);return!0}),m,b,x;
return _.C("div",{class:_.pq("yt-spec-bottom-sheet-layout","yt-spec-bottom-sheet-layout__bottom-sheet-renderer-container","yt-spec-bottom-sheet-layout--modern"),style:function(){return J.isAnimating()?"transform: translateY("+J.currentY()+"px);transition: 0.2s":""}},(m=J.header)==null?void 0:m.call(J),_.C("div",{id:J.contentWrapperId,
class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-content-wrapper",style:_.kx({"max-height":(0,_.sX)(J.maxHeightForContentWrapper)}),"on:scroll":dLf(J.onScroll),"on:touchmove":dLf(function(P){return void P.stopPropagation()})},_.C("div",{el:{onRender:J.contentWrapperEl},
class:"yt-spec-bottom-sheet-layout__bottom-sheet-content","on:click":c},(b=J.body)==null?void 0:b.call(J))),(x=J.footer)==null?void 0:x.call(J))},"Rg");
Llp.idomCompat={callbacks:{onScroll:!0,contentWrapperEl:!0,onContentWrapperClick:!0}};var Dp4=_.Q1(function(J){var c=_.Ru(J.leadingLabel),m=_.Ru(J.trailingLabel),b=_.Ru(J.footerButtonType),x=function(){return c()||m()||J.hasPrimaryButton()||J.hasSecondaryButton()},P={},p=_.pq("yt-spec-bottom-sheet-layout__primary-button",(P["yt-spec-bottom-sheet-layout__primary-button--default"]=function(){return b()===0&&J.hasPrimaryButton()},P["yt-spec-bottom-sheet-layout__primary-button--trailing-pair"]=function(){return b()===1&&J.hasPrimaryButton()},P["yt-spec-bottom-sheet-layout__primary-button--split-pair"]=
function(){return b()===2&&J.hasPrimaryButton()},P["yt-spec-bottom-sheet-layout__primary-button--primary-split-pair"]=function(){return b()===3&&J.hasPrimaryButton()},P));
P={};var t=_.pq("yt-spec-bottom-sheet-layout__secondary-button",(P["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-trailing-pair"]=function(){return b()===1&&J.hasSecondaryButton()},P["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-split-pair"]=function(){return b()===2&&J.hasSecondaryButton()},P["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-primary-split-pair"]=function(){return b()===3&&J.hasPrimaryButton()},P));
return _.C(_.n,{cond:J.hasFooterOverride,then:function(){var I;return _.C(_.cG,null,(I=J.footerOverride)==null?void 0:I.call(J))},
else:function(){return _.C(_.n,{cond:x,then:function(){return _.C("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-footer-wrapper"},_.C(_.n,{cond:function(){return c()||m()},
then:function(){var I={};return _.C("div",{class:_.pq("yt-spec-bottom-sheet-layout__footer-label-wrapper",(I["yt-spec-bottom-sheet-layout__footer-label-wrapper--without-buttons"]=function(){return!J.hasPrimaryButton()},I))},_.C(_.n,{cond:c,
then:function(){return _.C("div",{class:"yt-spec-bottom-sheet-layout__leading-label"},c)}}),_.C(_.n,{cond:m,
then:function(){return _.C("div",{class:"yt-spec-bottom-sheet-layout__trailing-label"},m)}}))}}),_.C(_.n,{cond:function(){return J.hasPrimaryButton()||J.hasSecondaryButton()},
then:function(){var I={};return _.C("div",{class:_.pq("yt-spec-bottom-sheet-layout__footer-button-wrapper",(I["yt-spec-bottom-sheet-layout__footer-button-wrapper--landscape-button-wrapper"]=_.GZC,I))},_.C(_.n,{cond:function(){return J.hasSecondaryButton()&&b()!==0},
then:function(){var a;return _.C("div",{class:t},(a=J.secondaryButton)==null?void 0:a.call(J))}}),_.C(_.n,{cond:J.hasPrimaryButton,
then:function(){var a;return _.C("div",{class:p},(a=J.primaryButton)==null?void 0:a.call(J))}}))}}))}})}})},"Sg");
Dp4.idomCompat={callbacks:{primaryButton:!0,secondaryButton:!0,footerOverride:!0}};var Wlr=_.Q1(function(J){var c=_.Ru(J.title),m=_.Ru(J.subtitle);return _.C("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper",id:J.headerId,"on:touchstart":_.Kq(function(b){var x;(x=J.touchstart)==null||x.call(J,b);return!1}),
"on:touchmove":_.Kq(function(b){var x;(x=J.touchmove)==null||x.call(J,b);return!1}),
"on:touchend":_.Kq(function(b){var x;(x=J.touchend)==null||x.call(J,b);return!1})},_.C("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-drag-line"}),_.C(_.n,{cond:J.hasHeaderOverride,
then:function(){var b;return _.C(_.cG,null,(b=J.headerOverride)==null?void 0:b.call(J))},
else:function(){var b={};return _.C("div",{class:_.pq((b["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header"]=!0,b["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header--with-title"]=c,b))},_.C("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-title-wrapper"},_.C(_.n,{cond:c,then:function(){return _.C(_.cG,null,_.C("h2",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-title"},c),_.C(_.n,{cond:m,then:function(){return _.C("h3",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-subtitle"},
m)}}))}})),_.C(_.n,{cond:function(){return c()&&J.hasActionHeader()},
then:function(){var x;return _.C("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-action-header"},(x=J.actionHeader)==null?void 0:x.call(J))}}))}}))},"Tg");
Wlr.idomCompat={callbacks:{touchstart:!0,touchmove:!0,touchend:!0,actionHeader:!0,headerOverride:!0}};_.Q1(function(J){function c(y){if(!d&&typeof MutationObserver!=="undefined"){var pG={childList:!0};"MutationObserver"in window&&(d=new MutationObserver(m.bind(void 0,y)),d.observe(y,pG))}}
function m(y){typeof d!=="undefined"&&(G["content-wrapper"]===void 0&&(G["content-wrapper"]=y.children[0].clientHeight),r(G["content-wrapper"]),T()>W()||Y(T()))}
function b(){H(window.innerHeight);T()>W()||Y(T());e.isFullScreen[0]()&&T()>W()?A().dispatch("Snap To Full Screen",{maxHeight:Z()}):A().dispatch("Snap To Neutral Position",{maxHeight:W()})}
function x(y){document.body.style.overscrollBehavior="none";y.preventDefault();A().dispatch("Touch Start",{event:y})}
function P(y){y.preventDefault();A().dispatch("Touch Move",{event:y,contentScrollable:T()>W(),fullContentWrapperHeight:Z(),contentWrapperHeight:W(),contentHeightMap:G,contentWrapperId:"content-wrapper",header:GmR(J),footer:GmR(J)})}
function p(){document.body.style.overscrollBehavior="";e.isFullScreen[0]()?e.currentY[0]()>=60?A().dispatch("Snap To Neutral Position",{maxHeight:W()}):A().dispatch("Snap To Full Screen",{maxHeight:Z()}):e.currentY[0]()>=60?t():e.currentY[0]()<=-60&&T()>W()?A().dispatch("Snap To Full Screen",{maxHeight:Z()}):A().dispatch("Snap To Neutral Position",{maxHeight:W()})}
function t(){A().dispatch("Close Sheet",{clientHeight:k(),maxHeight:0});setTimeout(function(){$LF()},250)}
var I=_.M(_.K2(window.innerHeight,void 0,"NWeFS")),a=I.next().value;I=I.next().value;var k=a,H=I;I=_.M(_.K2(0,void 0,"oxfm4"));a=I.next().value;I=I.next().value;var T=a,r=I;I=_.M(_.aO(function(){var y=GmR(J);return.6*k()-ULp(y)-S24(y)}));
a=I.next().value;I=I.next().value;var W=a,Y=I,Z=function(){var y=GmR(J);return k()-ULp(y)-S24(y)-24-24},d=null,G={},e={initialY:_.K2(0,void 0,"cYBE5c"),
currentY:_.K2(0,void 0,"RndqHc"),isAnimating:_.K2(!1,void 0,"vO9DVd"),isFullScreen:_.K2(!1,void 0,"UOfBcf"),maxHeightForContentWrapper:_.aO(W)},A=function(){var y=null;return function(){if(!y){var pG={initialY:e.initialY[0](),currentY:e.currentY[0](),isAnimating:e.isAnimating[0](),isFullScreen:e.isFullScreen[0](),maxHeightForContentWrapper:e.maxHeightForContentWrapper[0]()};y=hYu(pG)}return y}}();
_.uN(function(){window.addEventListener("resize",b);A().subscribe(function(y){e.initialY[1](y.initialY);e.currentY[1](y.currentY);e.isAnimating[1](y.isAnimating);e.isFullScreen[1](y.isFullScreen);e.maxHeightForContentWrapper[1](y.maxHeightForContentWrapper)})});
_.f2(function(){window.removeEventListener("resize",b);d&&(d.disconnect(),d=null)});
var l=_.pq({"bottom-sheet-content-without-icon":function(){var y;return!((y=J.shouldShowIcons)==null?0:y.call(J))}});
return _.C("bottom-sheet-layout",null,_.C(Llp,{contentWrapperId:"content-wrapper",isAnimating:function(){return e.isAnimating[0]()},
currentY:function(){return e.currentY[0]()},
maxHeightForContentWrapper:function(){return e.maxHeightForContentWrapper[0]()},
shouldShowIcons:J.shouldShowIcons,skipContentClick:J.skipContentClick,onScroll:function(){var y=document.getElementById("header-wrapper"),pG=document.getElementById("content-wrapper");if(y&&pG){var kt={};kt=(kt["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"]=!0,kt["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper--bottom-border"]=!0,kt);y.className=pG.scrollTop>1?_.tP(kt):"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"}},
onContentWrapperClick:$LF,contentWrapperEl:function(y){c(y);requestAnimationFrame(function(){m(y)})},
header:function(){return _.C(Wlr,{touchstart:x,touchmove:P,touchend:p,title:J.headerTitle,subtitle:J.headerSubtitle,headerId:"header-wrapper",headerOverride:J.headerFn,hasHeaderOverride:J.hasHeaderFn,actionHeader:J.headerActionHeader,hasActionHeader:J.hasHeaderActionHeader})},
footer:function(){return _.C(Dp4,{footerButtonType:J.footerButtonType,leadingLabel:J.footerLeadingLabel,trailingLabel:J.footerTrailingLabel,primaryButton:J.footerPrimaryButton,hasPrimaryButton:J.hasFooterPrimaryButton,secondaryButton:J.footerSecondaryButton,hasSecondaryButton:J.hasFooterSecondaryButton,footerOverride:J.footerFn,hasFooterOverride:J.hasFooterFn})},
body:function(){return _.C(_.n,{cond:J.hasContentFn,then:function(){var y;return _.C("div",{class:l},(y=J.contentFn)==null?void 0:y.call(J))}})}}))},"Ug").idomCompat={callbacks:{headerActionHeader:!0,
headerFn:!0,contentFn:!0,footerFn:!0,footerPrimaryButton:!0,footerSecondaryButton:!0}};var ziF=_.Q1(function(J){var c=_.BG().resolve(_.wW);return _.C("yt-contextual-sheet-layout",{class:"yt-contextual-sheet-layout-wiz","on:click":_.Kq(function(){return void c.closeSheet()})},_.C(_.n,{cond:function(){return!!J.header},
then:function(){return _.C("div",{class:"yt-contextual-sheet-layout-wiz__header-container"},J.header())}}),_.C(_.n,{cond:function(){return!!J.content},
then:function(){return _.C("div",{class:"yt-contextual-sheet-layout-wiz__content-container"},J.content())}}),_.C(_.n,{cond:function(){return!!J.footer},
then:function(){return _.C("div",{class:"yt-contextual-sheet-layout-wiz__footer-container"},J.footer())}}))},"Vg");
ziF.idomCompat={callbacks:{header:!0,content:!0,footer:!0}};var unh=_.Q1(function(J){J=J.data;var c=_.oN("yt-sheet-view-model",function(b){if(_.w("web_focus_first_element_sheet"))return b.addEventListener("focus",function(){s6p(b)}),function(){b.removeEventListener("focus",function(){s6p(b)})}}),m={};
return _.C("yt-sheet-view-model",{class:_.pq("yt-sheet-view-model-wiz",(m["yt-sheet-view-model-wiz--contextual"]=!0,m["yt-sheet-view-model-wiz--disable-backdrop-filter"]=_.w("web_disable_backdrop_filter"),m)),el:c,tabindex:-1},_.C(_.n,{cond:J,then:function(b){return _.C(ziF,{header:function(){return _.C(_.wi,{data:function(){return b().header}},{panelHeaderViewModel:sJs})},
content:function(){return _.C(_.wi,{data:function(){return b().content}},{listViewModel:function(x){return _.C(_.uNz,{data:x.data,
isCompact:!0,inPopup:!0})},
upsellViewModel:Nrs,miniAppScoreChallengeViewModel:tZo})},
footer:function(){return _.C(_.wi,{data:function(){return b().footer}},{panelFooterViewModel:_.dg})}})}}))},"Wg");
unh.idomCompat=!0;_.lv(unh,"yt-sheet-view-model",{props:{data:_.vt}});var YkS=_.Q1(function(J){var c=function(){var m;return(m=J.data().enableDebuggingFeatures)!=null?m:!1};
return _.C("yt-stories-sticker-layer-view-model",{class:"ytStoriesStickerLayerViewModelHost"},_.C(_.Te,{each:function(){var m;return(m=J.data().stickers)!=null?m:[]}},function(m){return _.C(fyh,{data:function(){return m},
debugMode:c})}))},"Xg"),fyh=_.Q1(function(J){var c=_.ou(J,{debugMode:!1}).debugMode,m=_.Ru(function(){var I;
return(I=J.data().region)==null?void 0:I.w},0),b=_.Ru(function(){var I;
return(I=J.data().region)==null?void 0:I.h},0),x=_.Ru(function(){var I;
return(I=J.data().region)==null?void 0:I.x},0),P=_.Ru(function(){var I;
return(I=J.data().region)==null?void 0:I.y},0),p=_.Kq(function(){var I=J.data().onTap;
I&&_.hd(I)}),t={};
return _.C("div",{class:_.pq("ytStoriesStickerLayerViewModelSticker",(t.ytStoriesStickerLayerViewModelDebugMode=c,t)),style:_.kx({width:function(){return 100*m()+"%"},
height:function(){return 100*b()+"%"},
left:function(){return 100*x()+"%"},
top:function(){return 100*P()+"%"},
"flex-direction":function(){return E2h(J.data().flexDirection)},
"justify-content":function(){return v2F(J.data().justifyContent)},
"align-items":function(){return OXp(J.data().alignItems)}}),
"on:click":p},_.C(_.wi,{data:function(){return J.data().button||J.data().toggleButton}},{buttonViewModel:function(I){return _.C(_.XU,{data:I.data,
className:"ytStoriesStickerLayerViewModelButton"})},
toggleButtonViewModel:function(I){return _.C(_.LK,{data:I.data,className:"ytStoriesStickerLayerViewModelButton"})}}))},"Yg");var Z5F=_.Q1(function(J){var c=function(){return J.data()},m=_.Ru(function(){return c().backgroundColor},0),b=_.Ru(function(){return c().actionButtons},[]),x=_.Ru(function(){return c().stickerLayer},{}),P={},p=function(){var I,a;
return{animationRef:P,animationConfig:{autoplay:!1,loop:!1,path:(a=(I=c().foregroundAnimation)==null?void 0:I.url)!=null?a:"",name:"stories_item_foreground_animation"},listeners:{complete:function(){J.navigateToNextItemOnLottieComplete()}}}},t=function(){var I,a,k,H,T,r,W,Y;
return{animationConfig:{autoplay:(r=(I=c().backgroundAnimation)==null?void 0:(a=I.settings)==null?void 0:a.autoplay)!=null?r:!1,loop:(W=(k=c().backgroundAnimation)==null?void 0:(H=k.settings)==null?void 0:H.loop)!=null?W:!1,path:(Y=(T=c().backgroundAnimation)==null?void 0:T.url)!=null?Y:"",name:"stories_item_background_animation"}}};
_.ui(function(){if(J.isVisible()){var I;(I=P.lottieEl)==null||I.play()}else{var a;(a=P.lottieEl)==null||a.stop()}},"GFKSgc");
return _.C("yt-stories-item-view-model",{class:"ytStoriesItemViewModelHost",style:_.kx({"background-color":function(){return _.Zn(m())+";"}})},_.C("div",{class:"ytStoriesItemViewModelAssetContent"},_.C(_.n,{cond:function(){return!!c().backgroundAnimation},
then:function(){return _.C(_.Nd,{data:t,animationName:function(){return t().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.C(_.n,{cond:function(){return!!c().backgroundImage},
then:function(){return _.C(_.RA,{data:function(){return c().backgroundImage},
className:"ytStoriesItemViewModelImage",alt:"background image"})}}),_.C(_.n,{cond:function(){return!!c().foregroundAnimation},
then:function(){return _.C(_.Nd,{data:p,animationName:function(){return p().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.C(_.n,{cond:function(){return!!c().foregroundImage},
then:function(){return _.C(_.RA,{data:function(){return c().foregroundImage},
className:"ytStoriesItemViewModelImage",alt:"foreground image"})}}),_.C("div",{class:"ytStoriesItemViewModelTopShadow"}),_.C(_.wi,{data:function(){return x()}},{storiesStickerLayerViewModel:YkS})),_.C("div",{class:"ytStoriesItemViewModelBottomShadow"},_.C("div",{class:"ytStoriesItemViewModelActionButtonWrapper",
"on:click":_.Kq(J.pauseAutoNavigation)},_.C(_.Te,{each:b},function(I){return _.C(Xk4,{data:function(){return I}})}))))},"Zg"),Xk4=_.Q1(function(J){var c={};
return _.C("div",{class:_.pq("ytStoriesItemViewModelActionButton",(c.ytStoriesItemViewModelStretchedActionButton=function(){return J.data().size==="STORIES_BUTTON_SIZE_STRETCH"},c))},_.C(_.wi,{data:function(){return J.data().button}},{buttonViewModel:function(m){return _.C(_.XU,{data:m.data,
className:"ytStoriesItemViewModelButton"})}}))},"$g");_.lv(_.Q1(function(J){var c=_.M(_.aO(function(){var G;return(G=J.data().startIndex)!=null?G:0})),m=c.next().value,b=c.next().value;
c=_.M(_.K2(!1,void 0,"klmjc"));var x=c.next().value,P=c.next().value,p=function(){var G;return(G=J.data().storyItems)!=null?G:[]},t=function(){return J.data().dismissButton},I=function(){var G;
return _.L((G=_.L(t(),_.ri))==null?void 0:G.onTap,_.Xz)},a=_.oN("div"),k,H=function(){var G;
(G=k)==null||G.cancel();k=T(m()).animate([{width:"0%"},{width:"100%"}],{duration:9E3,easing:"linear"});k.onfinish=function(){T(m()).style.width="100%";var e=_.L(p()[m()],UPu),A,l;e!=null&&e.foregroundAnimation&&((e==null?0:(A=e.foregroundAnimation)==null?0:A.url)||(e==null?0:(l=e.foregroundAnimation)==null?0:l.payload))||(m()!==p().length-1?(b(m()+1),H()):I()&&_.ql(I()))}},T=function(G){return a.value.children[G].children[0]},r=function(){for(var G=0;G<m();G++)T(G).style.width="100%"};
c=_.Kq(function(){x()?P(!1):(m()===p().length-1&&I()&&_.ql(I()),T(m()).style.width="100%",m()!==p().length-1&&(b(m()+1),H()))});
var W=_.Kq(function(){x()?P(!1):(T(m()).style.width="0%",m()!==0?b(m()-1):b(m()),H())}),Y=function(){P(!0)},Z=function(){T(m()).style.width="100%";
m()!==p().length-1?(b(m()+1),H()):I()&&_.ql(I())},d=_.Kq(function(){var G;
(G=k)==null||G.pause()});
_.ui(function(){if(x()){var G;(G=k)==null||G.pause()}else{var e;(e=k)==null||e.play()}},"cIZO2e");
_.ui(function(){r();m()===J.data().startIndex&&H()},"fCbrvf");
_.uN(function(){r();H()});
return _.C("yt-stories-viewer-view-model",{class:_.pq("ytStoriesViewerViewModelHost","ytStoriesViewerViewModelResetSpacing"),dialog:!0},_.C("div",{class:"ytStoriesViewerViewModelNavigationContainer"},_.C("div",{class:"ytStoriesViewerViewModelPreviousNavigation","on:click":W,"on:mousedown":d}),_.C("div",{class:"ytStoriesViewerViewModelNextNavigation","on:click":c,"on:mousedown":d})),_.C(_.wi,{data:p},{storiesItemViewModel:function(G,e){var A=G.data;return _.C(_.n,{cond:function(){return Math.abs(e()-
m())<=1},
then:function(){var l={};return _.C("div",{class:_.pq("ytStoriesViewerViewModelStoryItem",(l.ytStoriesViewerViewModelHiddenStoryItem=function(){return e()!==m()},l))},_.C(Z5F,{data:A,
pauseAutoNavigation:Y,navigateToNextItemOnLottieComplete:Z,isVisible:function(){return e()===m()}}))}})}}),_.C("div",{class:"ytStoriesViewerViewModelProgressBarsContainer",
el:a},_.C(_.Te,{each:p},function(){return _.C("div",{class:"ytStoriesViewerViewModelProgressBar"},_.C("div",{class:"ytStoriesViewerViewModelProgress"}))})),_.C("div",{class:"ytStoriesViewerViewModelActionButtonsContainer"},_.C(_.wi,{data:t},{buttonViewModel:_.XU})))},"ah"),"yt-stories-viewer-view-model",{props:{data:_.vt}});_.lv(_.Q1(function(J){var c=J.data;var m=_.oN("yt-gen-ai-feedback-form-view-model"),b=[];return _.C("yt-gen-ai-feedback-form-view-model",{el:m,class:"ytGenAiFeedbackFormViewModelHost"},_.C(_.j8,{text:function(){return c().title},
className:"ytGenAiFeedbackFormViewModelTitle"}),_.C("div",{class:"ytGenAiFeedbackFormViewModelChipsContainer"},_.C(_.wi,{data:function(){return c().feedbackChips}},{toggleButtonViewModel:function(x){var P=x.data;
return _.C(_.LK,{data:P,className:"ytGenAiFeedbackFormViewModelFeedbackChip",onToggle:function(p){var t=P();t=_.L(t,_.sc);t=_.L(t==null?void 0:t.defaultButtonViewModel,_.ri).trackingParams;p?b.push(t):(p=b.indexOf(t),p>-1&&b.splice(p,1))}})}})),_.C(_.j8,{text:function(){return c().disclaimer},
className:"ytGenAiFeedbackFormViewModelDisclaimer"}),_.C("div",{class:"ytGenAiFeedbackFormViewModelBottomButtonsContainer"},_.C(_.wi,{data:function(){return c().submitButton}},{buttonViewModel:function(x){return _.C(_.XU,{data:x.data,
className:"ytGenAiFeedbackFormViewModelSubmitButton",onClick:function(){AS1(m.value,b,c().uniqueId)}})}}),_.C(_.wi,{data:function(){return c().moreFeedbackButton}},{buttonViewModel:function(x){return _.C(_.XU,{data:x.data,
className:"ytGenAiFeedbackFormViewModelMoreFeedbackButton"})}})))},"bh"),"yt-gen-ai-feedback-form-view-model",{props:{data:_.vt},
unsafeExternallySettableAttributes:new Set(["tabindex"])});var hu=function(){return _.h.apply(this,arguments)||this};
_.D(hu,_.h);hu.prototype.created=function(){nb1(2200);this.ytPopupContainerBehavior.initPopupContainerBehavior(g71);var J=_.BG().resolve(_.KiQ);J&&(J.container=this.ytPopupContainerBehavior);if(J=_.BG().resolve(_.wW))J.container=this.ytPopupContainerBehavior;if(J=_.BG().resolve(_.rW)){var c=this.ytPopupContainerBehavior;J.containerWasInjected?_.qz(Error("aj")):J.container=c}};
hu.prototype.ensurePopupBelowPlayer=function(J,c){var m=_.BG().resolve(_.y6(_.oO));if(!m||!m.isOnWatch()||!_.ep())return!1;m=m.getCurrentPage().getPlayerContainer().getBoundingClientRect().bottom;_.a1().height>m+this.getPopupHeight(J,c)?(J.style.top="auto",J.style.bottom="0px"):(J.style.top=m+"px",J.style.bottom="auto");return!0};
hu.prototype.getPopupHeight=function(J,c){c&&(J.cachedPopupHeight=0);if(!J.cachedPopupHeight){c=0;var m=J.clientHeight,b=window.getComputedStyle(J);c+=parseInt(b.marginTop,10);c+=parseInt(b.marginBottom,10);J.cachedPopupHeight=m+c}return J.cachedPopupHeight};
hu.prototype.getElement=function(J){return document.createElement(J)};
_.O([_.f(La1.YtPopupContainerBehavior),_.R("design:type",Object)],hu.prototype,"ytPopupContainerBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],hu.prototype,"ytComponentBehavior",void 0);hu=_.O([_.E({disableElementRegistration:!0,is:"ytd-popup-container"})],hu);
_.v(hu,"ytd-popup-container",function(){if(CEo!==void 0)return CEo;var J=document.createElement("template");_.z(J,"\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");J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);return CEo=J},{mode:1});var qkR;var Upu={};Upu.YtLogYpcFlowCommandsBehavior=[_.yw.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(J){_.L(J,Byf)&&(J=_.L(J,Byf))&&(J.serializedTransactionFlowLoggingParams?_.LK2(J.serializedTransactionFlowLoggingParams):J.serializedYpcCancelFlowLoggingParams?(J=J.serializedYpcCancelFlowLoggingParams)&&_.zu("ypcCancelFlowStarted","serializedYpcCancelFlowLoggingParams",J):J.serializedYpcResumeFlowLoggingParams?(J=J.serializedYpcResumeFlowLoggingParams)&&_.zu("ypcResumeFlowStarted","serializedYpcResumeFlowLoggingParams",J):J.serializedYpcPauseFlowLoggingParams?(J=J.serializedYpcPauseFlowLoggingParams)&&
_.zu("ypcPauseFlowStarted","serializedYpcPauseFlowLoggingParams",J):J.serializedYpcRefundFlowLoggingParams?(J=J.serializedYpcRefundFlowLoggingParams)&&cU4("YPC_EVENT_TYPE_START",J):J.serializedYpcDeactivateFlowLoggingParams?(J=J.serializedYpcDeactivateFlowLoggingParams)&&_.zu("ypcDeactivateFlowStarted","serializedYpcDeactivateFlowLoggingParams",J):J.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams&&(J=J.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams)&&_.zu("ypcCancelFlowGoToPaymentProcessor",
"serializedYpcCancelFlowGoToPaymentProcessorLoggingParams",J))},
handleLogYpcFlowDismiss_:function(J){_.L(J,yNh)&&(J=_.L(J,yNh),J.serializedTransactionFlowLoggingParams?_.DGo(J.serializedTransactionFlowLoggingParams):J.serializedYpcCancelFlowLoggingParams?(J=J.serializedYpcCancelFlowLoggingParams)&&_.zu("ypcCancelFlowCancelled","serializedYpcCancelFlowLoggingParams",J):J.serializedYpcResumeFlowLoggingParams?(J=J.serializedYpcResumeFlowLoggingParams)&&_.zu("ypcResumeFlowCancelled","serializedYpcResumeFlowLoggingParams",J):J.serializedYpcPauseFlowLoggingParams?(J=
J.serializedYpcPauseFlowLoggingParams)&&_.zu("ypcPauseFlowCancelled","serializedYpcPauseFlowLoggingParams",J):J.serializedYpcRefundFlowLoggingParams&&(J=J.serializedYpcRefundFlowLoggingParams)&&cU4("YPC_EVENT_TYPE_CANCEL",J))}}];var Skr={};Skr.YtCancelRecurrenceBehavior=[_.qH.YtComponentBehavior,_.W8L,{attached:function(){var J=this;mE5(this,function(c,m){return J.ypcCancelRecurrenceHandler(c,m)})},
ypcCancelRecurrenceHandler:function(J,c){var m=this;if(!c||!c.ypcCancelRecurrenceEndpoint)return!1;if(!c.ypcCancelRecurrenceEndpoint.params)return _.ha(Error("tl")),!0;_.A3(this.hostElement);var b=_.Sp.instance,x=_.BG().resolve(_.y6(_.Wj));b&&_.hP(b,c)?_.ds(b,c).then(function(P){m.ypcCancelRecurrenceSuccess_(J,c,{data:P})},function(P){m.ypcCancelRecurrenceFailure_(J,c,P)}).thenCatch(function(){_.ha(Error("ul"))}):x?x.requestDataForServiceEndpoint(c).then(function(P){m.ypcCancelRecurrenceSuccess_(J,
c,P)},function(P){m.ypcCancelRecurrenceFailure_(J,c,P)}).thenCatch(function(){_.ha(Error("ul"))}):_.ha(Error("vl"));
return!0},
ypcCancelRecurrenceSuccess_:function(J,c,m){_.Rg(this.hostElement);m.data||(m={data:m});m.data&&m.data.actions&&_.PA(this.hostElement,m.data.actions,this.hostElement);m.data.messageRenderer?btS(c.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams):(c=c.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams)&&_.zu("ypcCancelFlowSucceeded","serializedYpcCancelFlowLoggingParams",c);_.cA(J,"yt-service-request-completed",m)},
ypcCancelRecurrenceFailure_:function(J,c,m){_.Rg(this.hostElement);btS(c.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams);_.cA(J,"yt-service-request-error",{error:m,params:[J,c]})}}];var hiR=function(J,c){_.Jq.call(this,c)};
_.D(hiR,zZR);var dpR={};dpR.YtCompleteTransactionBehavior=[_.qH.YtComponentBehavior,_.W8L,{attached:function(){var J=this;mE5(this,function(c,m){return J.ypcCompleteTransactionHandler(c,m)})},
completeTransaction:function(J,c){var m=this;c={payments_payload:window.btoa(c.integratorData),buybucket_params:J.data.buybucketParams,offer_params:J.data.offerParams};var b=_.BG().resolve(_.Wj),x=J.data.completeTransactionEndpoint,P=this.get("ypcCompleteTransactionEndpoint.actions",x);P&&_.PA(this.hostElement,P,this.hostElement);return(P=_.Sp.instance)&&_.hP(P,x)?_.ds(P,x,c).then(function(p){return!p||(p==null?0:p.error)?(p=m.get("data.serializedTransactionFlowLoggingParams",J),_.sv(new yz("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",
p))):{data:p}}).then(function(p){return m.handleCompleteTransactionSuccess_(p,J)},function(){return m.handleCompleteTransactionFailure_(J)}):b.requestDataForServiceEndpoint(x,c).then(function(p){return m.handleCompleteTransactionSuccess_(p,J)},function(){return m.handleCompleteTransactionFailure_(J)})},
handleCompleteTransactionSuccess_:function(J,c){J.data||(J={data:J});if(J.data.messageRenderer)return _.sv(new hiR(J.data.messageRenderer));if(J.data.trackingParams){var m=_.Y3(),b=_.fl();m&&b&&_.$2(m,b,_.n7(J.data.trackingParams))}c=this.get("data.serializedTransactionFlowLoggingParams",c);mX4(c);return _.ML(J)},
handleCompleteTransactionFailure_:function(J){J=this.get("data.serializedTransactionFlowLoggingParams",J);_.ET("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",J);return _.sv(new yz("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",J))},
ypcCompleteTransactionHandler:function(J,c){var m=this;if(!c.ypcCompleteTransactionEndpoint)return!1;if(!c.ypcCompleteTransactionEndpoint.transactionParams)return _.ha(Error("wl")),!0;c.ypcCompleteTransactionEndpoint&&c.ypcCompleteTransactionEndpoint.gtmData&&_.TK(c.ypcCompleteTransactionEndpoint.gtmData);var b=_.BG().resolve(_.y6(_.Wj));if(b){_.A3(this.hostElement);var x=_.Sp.instance;x&&_.hP(x,c)?_.ds(x,c).then(function(P){return!P||(P==null?0:P.error)?(P=m.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",
c),_.sv(new yz("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",P))):{data:P}}).then(function(P){_.cA(J,"yt-service-request-completed");
m.ypcCompleteTransactionSuccess_(c,P)},function(){return m.ypcCompleteTransactionFailure_(c)}):b.requestDataForServiceEndpoint(c).then(function(P){_.cA(J,"yt-service-request-completed");
m.ypcCompleteTransactionSuccess_(c,P)},function(){return m.ypcCompleteTransactionFailure_(c)})}return!0},
ypcCompleteTransactionSuccess_:function(J,c){_.Rg(this.hostElement);c.data||(c={data:c});_.m9(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);c.data.messageRenderer||c.data.ypcResponseCode==="YPC_RESPONSE_CODE_ERROR"?this.ypcCompleteTransactionFailure_(J):(_.TK('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'),this.logTransactionEvent_("transactionFlowSucceeded",J));c.data.actions&&(J=HlF(c.data.actions),c=ilf(c.data.actions),J.length&&_.Vq(this.hostElement,
J),c.length&&_.PA(this.hostElement,c,this.hostElement))},
ypcCompleteTransactionFailure_:function(J){_.Rg(this.hostElement);_.m9(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.logTransactionEvent_("transactionFlowFailed",J,"TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE")},
logTransactionEvent_:function(J,c,m){if(c=this.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",c))c={serializedTransactionFlowLoggingParams:c},m&&(c.errorType=m),_.zB(J,c),_.YH()}}];var $p1={};$p1.YtEndpointHandlerWithYpcBehavior=[_.W8L,_.yw.YtActionHandlerBehavior,[{openWalletDialog:function(J,c,m,b,x,P,p){var t=this,I=_.$x();c=c.replace(/-/g,"+").replace(/_/g,"/");var a=_.HA().get("hl");_.exQ(_.mm(_.vj),c,I.resolve,x,function(k){P&&P();I.reject(k)},a,function(k){return t.onServerBackendAnalyticEvent_(J,m,k)},this.onDialogClose_.bind(this),b,p);
return I.promise},
openFixFlowDialog:function(J,c,m,b){J=J.replace(/-/g,"+").replace(/_/g,"/");_.mm(_.vj).openFixFlowDialog(J,c,m,b)},
onDialogClose_:function(){_.m9(this,"yt-wallet-dialog-closed")},
onServerBackendAnalyticEvent_:function(J,c,m){_.cA(J,"yt-commerce-action-init-done");c&&_.Vq(this.hostElement,[c,{backend_analytics:m}])}}],
_.M7.YtOpenPopupBehavior,[{listeners:{"yt-service-request-completed":"onUpdateFopServiceRequestCompleted_"},onUpdateFopServiceRequestCompleted_:function(J,c){J=this.get("data.nativeFlowEndpoint",c);c=this.get("data.fallbackEndpoint",c);J?_.Vq(this.hostElement,[J]):c&&_.cA(this.hostElement,"yt-navigate",{endpoint:c})}}],
Skr.YtCancelRecurrenceBehavior,dpR.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 J=this;mE5(this,function(c,m,b){return J.handleYPCEndpoint(c,m,b)});
this.ypcRegisterActionMapJobId_=_.rv(_.ft,function(){J.registerActionMap(J.buyFlowActionMap_)})},
detached:function(){var J=this;_.ft.cancelJob(this.ypcRegisterActionMapJobId_);_.rv(_.ft,function(){J.unregisterActionMap(J.buyFlowActionMap_)})},
handleYPCEndpoint:function(J,c,m){var b=c.ypcGetCartEndpoint;if(b){_.fX("commerce_transaction");var x=b.gtmId;x&&_.n9(x);(b=b.gtmData)&&_.TK(b)}return this.get("ypcGetCartEndpoint.prefetchConfig.ypcGetCartPrefetchResponseDataConfig.encryptedPurchaseParams",c)!=null?(this.handleYPCGetCartEndpointWithPrefetch_(J,c),!0):this.get("ypcFixInstrumentEndpoint.encryptedFixInstrumentParameters",c)!=null?(this.handleYPCFixInstrumentEndpoint_(J,c),!0):c.ypcPauseSubscriptionCommand?(BMu(this.hostElement,J,c,m),
!0):c.ypcResumeSubscriptionCommand?(c7R(this.hostElement,J,c),!0):c.getPaymentInstrumentsParamsCommand?(F9h(this.hostElement,J,c),!0):c.ypcHandleTransactionEndpoint?(eYR(this.hostElement,J,c,m),!0):!1},
handleYPCGetCartEndpointWithPrefetch_:function(J,c){var m=this;_.Y2("ttcr",void 0,"commerce_transaction");c=c.ypcGetCartEndpoint;var b=c.prefetchConfig.ypcGetCartPrefetchResponseDataConfig,x=b.encryptedPurchaseParams,P=b.serializedTransactionFlowLoggingParams,p=b.serializedPaymentsClientParams,t=this.createGetCartResponseFromParams_(b,c.offerParams,P);this.changeButtonState(J,!0);_.Hz(this.openWalletDialog(J,x,b.ypcLogWalletAnalyticDataEndpoint,P,function(){m.changeButtonState(J,!1)},function(){m.changeButtonState(J,
!1)},p).then(function(I){return m.handleBuyFlowCompleteCallback_(J,t,I)},function(){return m.handleOnLoadError(t)}).then(function(I){return void m.handlePostPurchaseSuccess_(J,t,I)},function(I){return void m.handlePostPurchaseError_(I)}),function(){m.changeButtonState(J,!1);
J instanceof Element&&_.cA(J,"yt-commerce-action-done")})},
createGetCartResponseFromParams_:function(J,c,m){var b=J.completeTransactionEndpoint,x=J.handleTransactionEndpoint;c={data:{offerParams:window.btoa(c),serializedTransactionFlowLoggingParams:m}};x?c.data.handleTransactionEndpoint=x:c.data.completeTransactionEndpoint=b;J.onCartDismissCommand&&(c.data.onCartDismissCommand=J.onCartDismissCommand);return c},
onGetCartServiceRequestCompleted_:function(J,c){var m=this,b=J.target;if(c&&c.data&&c.data.messageRenderer)_.Rg(this.hostElement),this.handleMessageRenderer_(c.data.messageRenderer),this.changeButtonState(b,!1);else{var x=this.get("data.encryptedPurchaseParams",c),P=this.get("data.upgradeDialogRenderer.ypcUpgradeDialogRenderer",c),p=this.get("data.ypcLogWalletAnalyticDataEndpoint",c),t=this.get("data.serializedPaymentsClientParams",c),I=this.getLoggingParams_(c);if(I||x||P)J.stopPropagation(),_.Y2("ttcr",
void 0,"commerce_transaction"),x||_.Rg(this.hostElement),this.changeButtonState(b,!1),P?_.m9(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:_.Ub("openPopupConfig").popupTypeMap.ypcUpgradeDialogRenderer,popup:{ypcUpgradeDialogRenderer:P}}},this]):x&&(this.changeButtonState(b,!0),J=null,J=this.openWalletDialog(b,x,p,I,function(){_.Rg(m.hostElement);m.changeButtonState(b,!1)},function(){_.Rg(m.hostElement);
m.changeButtonState(b,!1)},t),_.Hz(J.then(function(a){return m.handleBuyFlowCompleteCallback_(b,c,a)},function(){return m.handleOnLoadError(c)}).then(function(a){return m.handlePostPurchaseSuccess_(b,c,a)},function(a){return m.handlePostPurchaseError_(a)}),function(){m.changeButtonState(b,!1);
_.cA(b,"yt-commerce-action-done")}))}},
onServiceRequestSent_:function(J,c){c&&c.endpoint&&c.endpoint.ypcGetCartEndpoint&&!c.endpoint.ypcGetCartEndpoint.prefetchConfig&&(this.get("commandLifeCycleConfig.onStartCommand",c.endpoint.ypcGetCartEndpoint)&&_.PA(this.hostElement,[this.get("commandLifeCycleConfig.onStartCommand",c.endpoint.ypcGetCartEndpoint)],J.target),_.A3(this.hostElement),this.changeButtonState(J.target,!0))},
onServiceRequestError_:function(J,c){if(c&&c.params&&c.params.length){c=_.M(c.params);for(var m=c.next();!m.done;m=c.next())if((m=m.value)&&m.ypcGetCartEndpoint){this.get("commandLifeCycleConfig.onFailureCommand",m.ypcGetCartEndpoint)&&_.PA(this.hostElement,[this.get("commandLifeCycleConfig.onFailureCommand",m.ypcGetCartEndpoint)],J.target);_.Rg(this.hostElement);this.changeButtonState(J.target,!1);break}}},
handleBuyFlowCompleteCallback_:function(J,c,m){var b=m.integratorData;return b==null||b===""||m.error!=null?(b=this.getLoggingParams_(c),String(m.error)==="-1"?(c.data.onCartDismissCommand&&_.PA(this.hostElement,[c.data.onCartDismissCommand],J),_.sv(new yz("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",b,!0))):_.sv(new yz("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",b))):c.data.handleTransactionEndpoint?jnR(this.hostElement,c.data.handleTransactionEndpoint,{payments_payload:b,funds_guarantee_callback_client_data:m.integratorClientCallbackData}):
this.completeTransaction(c,m)},
handlePostPurchaseSuccess_:function(J,c,m){c=m.data;var b=!1,x,P;if(c&&((x=c.command)==null?0:(P=x.commandExecutorCommand)==null?0:P.commands)){var p,t;x=(p=c.command)==null?void 0:(t=p.commandExecutorCommand)==null?void 0:t.commands;for(p=0;p<x.length;p++)if(_.L(x[p],_.Crz)){b=!0;break}}b||(c&&c.gtmDatas&&c.gtmDatas.length?_.TK(c.gtmDatas[0]):_.TK('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'));m.data&&m.data.actions&&(c=HlF(m.data.actions),m=ilf(m.data.actions),c.length&&
_.Vq(this.hostElement,c),m.length&&_.PA(this.hostElement,m,J))},
handlePostPurchaseError_:function(J){J&&J.payload&&J.payload.isUserDismiss||_.Xc(Error("yl"))},
handleOnLoadError:function(J){J=this.getLoggingParams_(J);return _.sv(new yz("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",J))},
getLoggingParams_:function(J){return this.get("data.serializedTransactionFlowLoggingParams",J)},
handleMessageRenderer_:function(J){var c=_.Xk(J,"renderer"),m=_.Ub("openPopupConfig");c==="confirmDialogRenderer"&&m&&_.m9(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:m.popupTypeMap[c],popup:J}},this])},
handleYPCFixInstrumentEndpoint_:function(J,c){var m=this,b=c.ypcFixInstrumentEndpoint;c=b.encryptedFixInstrumentParameters;this.logFixFopEvent_(b,"FIX_FOP_EVENT_TYPE_START");this.changeButtonState(J,!0);this.openFixFlowDialog(c,function(x,P){m.onFixFlowCompleteCallback_(b,x,P)},function(){return m.changeButtonState(J,!1)},function(){m.changeButtonState(J,!1);
m.logFixFopEvent_(b,"FIX_FOP_EVENT_TYPE_FAILURE","FIX_FOP_ERROR_TYPE_LOAD_FAILURE")})},
onFixFlowCompleteCallback_:function(J,c,m){var b=_.$y("payments.business.integration.scenario.FixInstrument");if(c==b.IntegratorCallbackType.ON_COMPLETE){c="FIX_FOP_EVENT_TYPE_CANCEL";var x=null;m.error!=null?m.error!=b.OnCompleteCallbackError.USER_CANCELLED&&(_.PA(this.hostElement,[J.errorAction],this.hostElement),c="FIX_FOP_EVENT_TYPE_FAILURE",x="FIX_FOP_ERROR_TYPE_UNSPECIFIED"):(_.PA(this.hostElement,[J.successAction],this.hostElement),c="FIX_FOP_EVENT_TYPE_SUCCESS");_.PA(this.hostElement,[J.onFinishAction],
this.hostElement);this.logFixFopEvent_(J,c,x)}},
logFixFopEvent_:function(J,c,m){(J=J.serializedFixFopLoggingParams)?(c={eventType:c,serializedFixFopLoggingParams:J},m!=null&&(c.errorType=m),_.zB("fixFopFlow",c),_.YH()):_.Xc(Error("zl"))},
changeButtonState:function(J,c){_.w("enable_ypc_spinners")&&J&&(J.is==="yt-button-renderer"||J.is==="ytd-button-renderer")&&(J.disabled=c)}}];var Gah=function(J){this.JSC$28766_clientRoot=J;this.feedbackCollectorActionMap={"yt-help-dialog-requested":bkf,"yt-feedback-dialog-requested":myo,"yt-signal-action-help":xyF,"yt-signal-action-send-feedback":Vk5,"yt-send-feedback-action":Mko,"yt-user-feedback-endpoint":p2R};_.Oe(_.vO.getInstance(),this.feedbackCollectorActionMap,this.JSC$28766_clientRoot)},EOs;var vOp=function(J){this.JSC$28771_clientRoot=J;this.downloadManagerActionMap={"yt-signal-action-delete-all-downloads-prompt":Nff.bind(null,this.JSC$28771_clientRoot),"yt-signal-action-delete-all-downloads":IZ4,"yt-signal-action-delete-download":KAR,"yt-signal-action-delete-playlist-download":aZ1,"yt-signal-action-install-pwa":w2p,"yt-signal-action-refresh-downloads":nYF,"yt-offline-video-endpoint":scR,"yt-offline-playlist-endpoint":Dyf,"yt-update-local-app-setting-command":zE4,"yt-offline-orchestration-action-command":fZ4,
"yt-signal-action-undo-delete-download":HkF,"yt-local-watch-history-command":Zk4};_.Oe(_.vO.getInstance(),this.downloadManagerActionMap,this.JSC$28771_clientRoot);_.sT.instance=new _.sT},O5r;var dq=function(){var J=_.h.apply(this,arguments)||this;J.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_"};J.remoteApi_=null;return J};
_.D(dq,_.h);_.V=dq.prototype;
_.V.ready=function(){_.w("polymer_enable_mdx")&&(gWr({device:"Desktop",app:"youtube-desktop",appId:this.appId,loadCastApiSetupScript:_.w("mdx_load_cast_api_bootstrap_script"),enableDialLoungeToken:_.w("enable_dial_short_lived_lounge_token"),enableCastLoungeToken:_.w("enable_cast_short_lived_lounge_token")}),_.V5("yt-remote-connection-change",this.handleConnectionChange_,this),_.V5("yt-remote-receiver-availability-change",this.handleReceiverAvailabilityChange_,this),(this.remoteApi_=P6S())&&this.remoteApi_.subscribe("remoteQueueChange",
this.handleRemoteQueueChange_,this))};
_.V.handleGetMdxStatus_=function(){return{connected:this.mdxConnected,receiverAvailable:this.receiverAvailable,receiverName:this.receiverName}};
_.V.handleConnectionChange_=function(J){(this.mdxConnected=J)?(J=mh5(),!J&&c04()&&mah()&&(J={key:"cast-selector-receiver",name:mah()}),J=J.name):J=null;this.receiverName=J;_.yr(this.remoteApi_);(this.remoteApi_=P6S())&&this.remoteApi_.subscribe("remoteQueueChange",this.handleRemoteQueueChange_,this)};
_.V.handleReceiverAvailabilityChange_=function(){var J=cMe();c04()&&_.m7("yt-remote-cast-available")&&J.push({key:"cast-selector-receiver",name:"Cast..."});this.receiverAvailable=J.length>0};
_.V.handleRemoteQueueChange_=function(){var J=this.currentVideoId_,c=this.currentListId_,m=bt(this.remoteApi_);this.currentVideoId_=m.videoId;this.currentListId_=m.listId;this.currentVideoId_&&_.m9(this.hostElement,"yt-sync-with-remote-video",[this.currentVideoId_,_.w("polymer_enable_mdx_queue")?this.currentListId_:null,J,c])};
_.V.handleAddToQueueAction_=function(J){J=_.L(J,SIu);this.remoteApi_&&(J.videoId?this.remoteApi_.addVideo(J.videoId):J.playlistId&&this.remoteApi_.addPlaylist(J.playlistId))};
_.V.handleClearQueueAction_=function(){this.remoteApi_&&this.remoteApi_.clearPlaylist()};
_.V.handleInsertInQueueAction_=function(J){J=_.L(J,hBS);this.remoteApi_&&J.videoId&&this.remoteApi_.JSC$17553_insertVideo(J.videoId)};
_.V.handleRemoveFromQueueAction_=function(J){J=_.L(J,dP1);this.remoteApi_&&J.videoId&&this.remoteApi_.JSC$17553_removeVideo(J.videoId)};
_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],dq.prototype,"ytActionHandlerBehavior",void 0);_.O([_.U(),_.R("design:type",Object)],dq.prototype,"appId",void 0);_.O([_.U(),_.R("design:type",Boolean)],dq.prototype,"mdxConnected",void 0);_.O([_.U(),_.R("design:type",Boolean)],dq.prototype,"receiverAvailable",void 0);_.O([_.U(),_.R("design:type",Object)],dq.prototype,"receiverName",void 0);_.O([_.U(),_.R("design:type",Object)],dq.prototype,"currentVideoId_",void 0);
_.O([_.U(),_.R("design:type",Object)],dq.prototype,"currentListId_",void 0);dq=_.O([_.uM({is:"yt-mdx-manager",disableElementRegistration:!0})],dq);_.v(dq,"yt-mdx-manager",void 0,{mode:2});var AX1;var Rih;var $f=function(){var J=_.h.apply(this,arguments)||this;J.APP_IDS={ytr:3,ytm:5};J.JSC$18794_timeoutId_=0;J.actionMap={"yt-open-create-family-dialog":"open"};return J};
_.D($f,_.h);_.V=$f.prototype;_.V.created=function(){nb1(2200)};
_.V.detached=function(){this.observer_&&this.observer_.disconnect()};
_.V.open=function(J,c){var m=this,b=J.serializedYpcFamilyCreateLoggingParams;this.JSC$18794_timeoutId_=setTimeout(this.abort_.bind(this,J.postFlowErrorEndpoint,b),3E4);c&&(this.onReadyCallback_=c);var x=_.Bj(this.hostElement).querySelector("#unicorn-iframe");b&&b&&JUo("ypcFamilyCreateFlowStarted",b);_.iCT("family_creation",function(){var P=_.$y("gapi.family_creation.render");_.$y("gapi.config.update")("iframes/family_creation/url",m.getFamilyCreationUrlWithUnicornParams_());var p=3;J.appId&&J.appId in
m.APP_IDS&&(p=m.APP_IDS[J.appId]);p={authUser:_.Ub("SESSION_INDEX")||0,clientId:p,darkmode:document.documentElement.hasAttribute("dark")?1:0,hl:_.Ub("HL"),initialflow:[4,5,6,7],m:m.isMobile?1:0,onFlowComplete:m.onUnicornFlowComplete_.bind(m,J.postFlowSuccessEndpoint,b),onError:m.onUnicornFlowError_.bind(m,J.postFlowErrorEndpoint,b),onReady:m.onUnicornFlowReady_.bind(m,J.referencePcidParams)};P(x,p)})};
_.V.close=function(){_.Bj(this.hostElement).querySelector("#dialog").close();this.observer_&&this.observer_.disconnect()};
_.V.onUnicornFlowComplete_=function(J,c){this.close();c&&c&&JUo("ypcFamilyCreateFlowSucceeded",c);_.cA(this.hostElement,"yt-navigate",{endpoint:J})};
_.V.onUnicornFlowError_=function(J,c){this.close();c&&JUo("ypcFamilyCreateFlowCancelled",c);_.cA(this.hostElement,"yt-navigate",{endpoint:J})};
_.V.onUnicornFlowReady_=function(J){var c=this;this.clearTimeout_();if(this.onReadyCallback_)this.onReadyCallback_();J&&_.$y("gapi.family_creation.setConfig")(0,J);this.observer_=new MutationObserver(function(){_.Bj(c.hostElement).querySelector("#dialog").fit()});
this.observer_.observe(_.Bj(this.hostElement).querySelector("#unicorn-iframe").querySelector("iframe"),{atttributes:!0,attributeFilter:["style"]});_.Bj(this.hostElement).querySelector("#dialog").open()};
_.V.getFamilyCreationUrlWithUnicornParams_=function(){return _.Ub("YTR_FAMILY_CREATION_URL")};
_.V.getCurrentUrl_=function(){return document.location.href};
_.V.abort_=function(J,c){this.clearTimeout_();this.onUnicornFlowError_(J,c)};
_.V.clearTimeout_=function(){clearTimeout(this.JSC$18794_timeoutId_)};
_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],$f.prototype,"ytActionHandlerBehavior",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],$f.prototype,"isMobile",void 0);_.O([_.U(),_.R("design:type",Object)],$f.prototype,"onReadyCallback_",void 0);_.O([_.U(),_.R("design:type",Object)],$f.prototype,"observer_",void 0);$f=_.O([_.uM({is:"yt-create-family-dialog",disableElementRegistration:!0})],$f);
_.v($f,"yt-create-family-dialog",function(){if(Rih===void 0){var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);var c=J.content,m=c.insertBefore;AX1===void 0&&(AX1=document.createElement("template"));var b=AX1;m.call(c,b.content.cloneNode(!0),J.content.firstChild);Rih=J}J=Rih;return J},{mode:2});var oO1;var QJ5;var GN=function(){var J=_.h.apply(this,arguments)||this;J.STEP=1;J.BLOCK_ON=80;J.MIN_PROGESS=0;J.MAX_PROGESS=100;return J};
_.D(GN,_.h);_.V=GN.prototype;_.V.created=function(){this.boundNextProgress_=this.nextProgress_.bind(this)};
_.V.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));_.BG().addProvider({provide:hfF,useValue:this})};
_.V.start=function(){this.progress=this.MIN_PROGESS;this.hostElement.hidden=!1;window.requestAnimationFrame(this.boundNextProgress_)};
_.V.finish=function(){var J=this;this.progress=this.MAX_PROGESS;qGh(function(){J.progress==J.MAX_PROGESS&&(J.hostElement.hidden=!0)})};
_.V.nextProgress_=function(){this.progress>=this.BLOCK_ON||(this.progress+=this.STEP,window.requestAnimationFrame(this.boundNextProgress_))};
_.eE.Object.defineProperties(GN.prototype,{progress:{configurable:!0,enumerable:!0,set:function(J){this.progress_=J;var c="scaleX("+J/this.MAX_PROGESS+")",m=_.Bj(this.hostElement).querySelector("#progress").style;m.transform=c;m.webkitTransform=c;this.hostElement.setAttribute("aria-valuenow",String(J))},
get:function(){return this.progress_}}});
_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],GN.prototype,"ytComponentBehavior",void 0);GN=_.O([_.uM({is:"yt-page-navigation-progress",disableElementRegistration:!0})],GN);
_.v(GN,"yt-page-navigation-progress",function(){if(QJ5===void 0){var J=document.createElement("template");_.z(J,'\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');J.content.insertBefore(_.B().content.cloneNode(!0),
J.content.firstChild);var c=J.content,m=c.insertBefore;oO1===void 0&&(oO1=document.createElement("template"));var b=oO1;m.call(c,b.content.cloneNode(!0),J.content.firstChild);QJ5=J}J=QJ5;return J},{mode:2});var eir={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"},jJu={"font-size":"12px","font-style":"italic"},Fl1={padding:"8px 0","font-size":"14px","font-weight":"bold",color:"#f00"};_.dyR=function(){return _.N(function(J){_.tD(J)})};_.lv(_.Q1(function(){var J=_.fq(_.H8T);return _.C("yt-ephemeral-actions",{class:"ytEphemeralActionsHost","aria-live":"polite","aria-atomic":"true"},function(){var c;return(c=J())==null?void 0:c.announcement})},"ch"),"yt-ephemeral-actions");var ccu=new Map;var U3r=function(J,c){var m=this;this.handleError=J;this.logEventInternal=c;this.hasUnloaded=!1;self.document===void 0||self.addEventListener("beforeunload",function(){m.hasUnloaded=!0});
this.shouldLogTransactionEndedThisSession=Math.random()<=.2};
U3r.prototype.logError=function(J){this.handleError(J)};
U3r.prototype.logEvent=function(J,c){switch(J){case "IDB_DATA_CORRUPTED":_.w("idb_data_corrupted_killswitch")||this.logEventInternal("idbDataCorrupted",c);break;case "IDB_UNEXPECTEDLY_CLOSED":this.logEventInternal("idbUnexpectedlyClosed",c);break;case "IS_SUPPORTED_COMPLETED":_.w("idb_is_supported_completed_killswitch")||this.logEventInternal("idbIsSupportedCompleted",c);break;case "QUOTA_EXCEEDED":lyp(this,c);break;case "TRANSACTION_ENDED":this.shouldLogTransactionEndedThisSession&&Math.random()<=
.1&&this.logEventInternal("idbTransactionEnded",c);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":J=Object.assign({},c,{hasWindowUnloaded:this.hasUnloaded}),this.logEventInternal("idbTransactionAborted",J)}};
var lyp=function(J,c){_.pD.getInstance().estimate().then(function(m){m=Object.assign({},c,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:bvR(m==null?void 0:m.usage),deviceStorageQuotaMbytes:bvR(m==null?void 0:m.quota)});J.logEventInternal("idbQuotaExceeded",m)})};var EV=function(){var J=_.h.apply(this,arguments)||this;J.tabGesturesIsActive=!1;J.deprecateFullerscreenUi=_.w("web_watch_fullerscreen_deprecation_ui");J.hasDelegation=!1;J.darkerDarkTheme=_.w("web_darker_dark_theme");J.isFrostedGlassInitialized=!1;J.frostedGlassExp=_.w("web_frosted_glass");J.mastheadHiddenFocusWithinKillswitch=_.w("web_masthead_hidden_focus_within_killswitch");J.ephemeralActionsEnabled=_.w("web_ephemeral_actions");J.scrollAtTop=!0;J.guideScrollTop=0;J.isTheaterModeSession=_.Ss("START_IN_THEATER_MODE");
J.iMaxTheaterMode=_.w("web_watch_imax_theater_mode");J.isFullWindowSession=_.Ss("START_IN_FULL_WINDOW_MODE");J.hasCreateFamilyDialog=!1;J.mastheadHeight=56;J.networkStatusManager=new _.On;J.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"};J.dynamicActionMap={"yt-run-attestation-command":function(c){var m=_.oz_.instance,b=_.L(c,_.qQQ);return b?_.w("use_rta_manager_for_async")&&
ny5()?p91(m,b,c.clickTrackingParams):M5R(m,b,c.clickTrackingParams):_.sv(Error("ji"))}};
J.isFrostedGlassDisabled=!1;J.isChannelOrPlaylistPage=!1;return J};
_.D(EV,_.h);_.V=EV.prototype;_.V.created=function(){var J=_.BG();_.w("kevlar_clear_duplicate_pref_cookie")&&_.rv(_.ft,function(){var c=_.ar.get("PREF");c&&!/f\d=/.test(c)&&(c=_.mG("kevlar_duplicate_pref_cookie_domain_override"),document.cookie=c?"PREF=null;domain="+c+";expires=Thu, 01 Jan 1970 00:00:01 GMT":"PREF=null;domain=.www.youtube.com;expires=Thu, 01 Jan 1970 00:00:01 GMT")});
_.w("gzip_gel_with_worker")&&_.UyD();_.w("jspb_serialize_with_worker")&&RM4();_.w("web_worker_availability_check")&&mrR();_.w("nwl_init_killswitch")||O3o().then(function(){_.ft.addLowPriorityJob(pSS)});
this.pageManagerAttachedPromise=_.$x();this.ytdAppBehavior.loadDepsPromise=_.k1([this.ytdAppBehavior.loadDepsPromise,this.pageManagerAttachedPromise.promise]);this.scrollThrottle=new _.FU(this.onThrottledScroll,200,this);_.w("external_fullscreen")&&(this.fullscreen=!1);this.boundOnTouchStart=this.onTouchStart.bind(this);Sbe();Dlh=!!_.$y("ytappsettings.initialized");P6=_.$y("ytappsettings.previousValue");igr=_.$y("ytappsettings.previousSnapshotTime");Dlh||(Dlh=!0,nKR());aPf();kvo();_.q3("DEFERRED_DETACH",
_.w("kevlar_tuner_should_defer_detach"));_.q3("REUSE_COMPONENTS",!0);_.q3("STAMPER_STABLE_LIST",!0);_.q3("SCHEDULED_LAZY_LIST",!0);_.q3("openPopupConfig",BVh);_.q3("useClickHandler",!0);_.w("kevlar_shell_cleanup")&&_.ft.addLowPriorityJob(WGf.bind(this,_.mo.caches));_.Ss("IS_SHELL_LOAD")&&_.uJ({shellStartupDurationMs:Math.round((0,_.y4)()-_.wM())});vYR(this.networkStatusManager);_.w("kevlar_is_hiring")&&(console.log("%cYouTube.com is hiring!",Uy4(eir)),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!",
Uy4(jJu)),console.log("%cVisit http://go/join-youtube-web to apply today.",Uy4(Fl1)));_.hVF(J.resolve(_.xX),1E3)};
_.V.ready=function(){this.guide.addEventListener("transitionend",this.processDrawerIronSelect.bind(this));this.guideInnerContent.addEventListener("scroll",this.ytRendererBehavior.markDirty.bind(this));var J=JL5();J&&!_.w("external_fullscreen_killswitch")&&document.addEventListener(J,this.setFullscreen.bind(this));(J=window.matchMedia("(prefers-color-scheme: dark)"))&&J.addEventListener&&J.addEventListener("change",this.onDeviceThemeChanged.bind(this));this.onDeviceThemeChanged()};
_.V.attached=function(){var J=this;_.f$().processSignal("ci");_.w("kevlar_passive_event_listeners")?this.hostElement.addEventListener("touchstart",this.boundOnTouchStart,_.txJ?{passive:!0}:void 0):this.hostElement.addEventListener("touchstart",this.boundOnTouchStart);_.tm(_.$br(),"SUCCESS");this.updateIconSet();_.gK(this.guideInnerContent,!1);_.aT().initVisibilityObserver();this.guideService.guideElement=this.guide;var c=document.createElement("ytd-miniplayer"),m=_.Bj(this.hostElement).querySelector("#content");
_.Bj(this.hostElement).insertBefore(c,m);_.f$().processSignal("ma");_.BG().resolve(_.Uo).init(c);_.Ss("IS_SHELL_LOAD")&&(m=document.createElement("ytd-network-status-banner"),_.Bj(this.hostElement).insertBefore(m,c));_.w("kevlar_right_click_on_lockups")&&_.ST._onCaptureClick&&document.addEventListener("contextmenu",_.ST._onCaptureClick.bind(_.ST),!0);var b=function(){var x=_.eF("yt-page-navigation-progress");_.Bj(J.hostElement).appendChild(x)};
setTimeout(function(){_.f$().parkOrScheduleJob(b,0,"eocs",16)},0);
_.w("service_worker_push_enabled")&&_.rv(_.ft,gKr);_.Oe(_.vO.getInstance(),this.dynamicActionMap,this.hostElement);_.cA(this.hostElement,"ytd-app-attached");_.f$().processSignal("aa");Hgu(this.hostElement);_.jD("gapi.load",_.iCT);this.networkStatusManager.listen("publicytnetworkstatus-online",this.onlineHandler.bind(this));this.networkStatusManager.listen("publicytnetworkstatus-offline",this.offlineHandler.bind(this));this.networkStatusManager.isNetworkAvailable()||this.offlineHandler();_.rv(_.ft,
function(){var x=document.createElement("ytd-video-preview");_.Bj(_.Bj(J.hostElement).querySelector("#video-preview")).appendChild(x)});
this.updateIsInlinePreviewDisabled();this.scheduleFrostedGlassInitialization();_.rv(_.ft,function(){$yS();J.registerViewTransitionTasks()});
if(_.rB()&&this.isAppDarkTheme()!==_.Th())this.onDarkModeToggledAction();else c=_.wB()==="USER_INTERFACE_THEME_DARK",this.isAppDarkTheme()!==c&&(_.w("enable_dark_theme_only_on_shorts")?_.dB(_.w("enable_dark_theme_only_on_shorts_control")?window.location.href:_.RP(window.location.href,{theme:"dark"})):_.qz(new _.w3("Theme was not applied",this.getThemeSettingsToLog()))),this.standalone||(mHe=new cgs(this.hostElement)),O5r=new vOp(this.hostElement),EOs=new Gah(this.hostElement),rgh=new wt4(this.hostElement)};
_.V.getThemeSettingsToLog=function(){var J=_.wB()==="USER_INTERFACE_THEME_DARK";J=_.rB()?_.Th()?"os-dark":"os-light":J?"dark":"light";return{appTheme:this.isAppDarkTheme()?"dark":"light",prefsTheme:J,cookiesEnabled:_.H7()}};
_.V.detached=function(){_.JS(this.guideInnerContent);_.ft.cancelJob(bb);bb=0;_.ft.cancelJob(Vz);Vz=0;_.eg3(koR);koR.length=0;KGr=_.boe=null;_.aT().dispose();_.w("kevlar_passive_event_listeners")&&this.hostElement.removeEventListener("touchstart",this.boundOnTouchStart);_.AI(_.vO.getInstance(),mHe.playlistHandlerActionMap,mHe.JSC$28466_clientRoot);_.AI(_.vO.getInstance(),O5r.downloadManagerActionMap,O5r.JSC$28771_clientRoot);_.AI(_.vO.getInstance(),EOs.feedbackCollectorActionMap,EOs.JSC$28766_clientRoot);
for(var J=_.M(rgh.eventListeners),c=J.next();!c.done;c=J.next()){var m=_.M(c.value);c=m.next().value;m=m.next().value;m=_.M(m);for(var b=m.next();!b.done;b=m.next()){var x=_.M(b.value);b=x.next().value;x=x.next().value;c.removeEventListener(b,x)}}_.AI(_.vO.getInstance(),rgh.autonavPauseActionMap,rgh.JSC$17738_clientRoot)};
_.V.updateIsInlinePreviewDisabled=function(){this.isInlinePreviewDisabled=_.HA().getFlag(186)};
_.V.computeIsInlinePreviewEnabled=function(J,c,m){return!m&&_.Zw4({miniplayerIsActive:J,miniplayerPlaybackState:c})};
_.V.dispatchFrostedGlassMode=function(){this.ytdReduxBehavior.dispatch(_.J7({type:"SET_FROSTED_GLASS_MODE",payload:!_.w("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"}))};
_.V.computeIsFrostedGlassDisabled=function(J,c,m,b){return J||c||m||b&&_.w("web_frosted_glass_disable_watch")};
_.V.isWatchPageChanged=function(){this.getCurrentPageScrollableElementType()&&(_.w("web_watch_update_scroll_killswitch")||this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode()))};
_.V.computeIsHomePage=function(J,c){if(!J||c==null||!c.endpoint)return!1;var m;return((m=_.L(c.endpoint,_.I1))==null?void 0:m.browseId)==="FEwhat_to_watch"};
_.V.updateIsChannelOrPlaylistPage=function(){if(_.w("web_frosted_glass")){var J,c,m=(c=(J=_.BG().resolve(_.y6(_.oO)))==null?void 0:J.getCurrentPage())==null?void 0:c.pageSubtype;this.isChannelOrPlaylistPage=m?["channel","channels","playlist"].includes(m):!1}};
_.V.scheduleFrostedGlassInitialization=function(){var J=this;_.w("web_frosted_glass")&&_.f$().parkOrScheduleJob(function(){J.isFrostedGlassInitialized=!0},0,_.uZ(["eocs",
"cr"]),300)};
_.V.isInlinePreviewEnabledChanged=function(){this.ytdReduxBehavior.dispatch(_.NOZ(this.isInlinePreviewEnabled));this.ytdReduxBehavior.dispatch(_.J7({type:"SET_SHARED_INLINE_PREVIEW_ENABLED",payload:this.isInlinePreviewEnabled}));this.ytdReduxBehavior.dispatch(_.J7({type:"SET_SHARED_ANIMATED_THUMBNAIL_ENABLED",payload:!this.isInlinePreviewDisabled}))};
_.V.onlineHandler=function(){this.ytdReduxBehavior.store.dispatch(kg4(!0))};
_.V.onYtSignalActionRequestPersistentStorage=function(){if(!_.w("request_persistent_storage_killswitch")){var J=_.BG().resolve(_.zj_);J.cachedPersistStatePromise||(J.cachedPersistStatePromise=UE5())}};
_.V.handleYtChannelCreationFormEndpoints=function(J){J&&this.ytComponentBehavior.resolveCommand(J)};
_.V.handleShowEngagementPanelEndpoint=function(J){J&&this.ytComponentBehavior.resolveCommand(J)};
_.V.offlineHandler=function(){this.ytdReduxBehavior.store.dispatch(kg4(!1))};
_.V.initIconDefs=function(J,c,m){var b=document.createElement("iron-iconset-svg");b.name=J;J=document.createElementNS("http://www.w3.org/2000/svg","svg");b.appendChild(J);J.appendChild(c);if(m)for(var x in m)b[x]=m[x];document.body.appendChild(b);return b};
_.V.onWindowResized=function(){_.m9(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);var J=_.wTC.getInstance();J.documentWidth_=document.body.clientWidth;STR(J)};
_.V.onWindowScrolled=function(){var J=_.BG().resolve(_.oO).getCurrentPage();if(J!=null&&J.getScrollTop){var c=this.ytdReduxBehavior,m=c.dispatch;J=J.getScrollTop()<=0;m.call(c,_.J7({type:"SET_SCROLL_AT_TOP",payload:J}))}};
_.V.guideIsVisibleButNotPersistentSelectorChanged=function(){var J=_.BG().resolve(_.oO).getCurrentPage();this.getCurrentPageScrollableElementType()==="HTML"&&this.guideIsVisibleButNotPersistent?(document.body.style.overflowY="scroll",this.guideScrollTop=J.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"),
J.setScrollTop(this.guideScrollTop));_.bJ(this.hostElement,"yt-rich-grid-layout-refreshed")};
_.V.getCurrentPageScrollableElementType=function(){var J=_.BG().resolve(_.oO).getCurrentPage();if(J&&J.getPageScrollingElement())return J.getPageScrollingElement().nodeName};
_.V.observeGuideVisibility=function(){var J=_.wTC.getInstance(),c=this.miniGuideVisible;J.guidePersistentAndVisible_=this.guidePersistentAndVisible;J.miniGuideVisible_=c;STR(J)};
_.V.handleEduDismissAction=function(J){J&&J.eduDismissAction&&(_.m9(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]),_.krB.getInstance(),_.Ol.set(J.eduDismissAction.key+"-dismissed",!0))};
_.V.handleEduImpressionAction=function(J){if(J&&J.eduImpressionAction){var c=_.krB.getInstance();J=J.eduImpressionAction.key;c.JSC$10907_eduDisplayedThisLoad_[_.aX2[J].setKey||J]=!0;_.Ol.set(J+"-impression",parseInt(_.Ol.get(J+"-impression")||0,10)+1)}};
_.V.onYtSignalActionConfirmMentionsEdu=function(){_.m9(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]);_.oQ.getInstance();_.RQ.set("edu-dismissed",!0)};
_.V.onYtSignalActionRecordMentionsEduImpression=function(){_.oQ.getInstance();var J=_.RQ.set,c=parseInt(_.RQ.get("edu-impressions"),10);J.call(_.RQ,"edu-impressions",(isFinite(c)?c:0)+1)};
_.V.onYtPageManagerAttached=function(J){var c;((c=_.Ac(J))==null?void 0:c.id)==="page-manager"&&this.pageManagerAttachedPromise.resolve()};
_.V.onInvokeInstrumentManagerAction=function(J,c){MrR(c,J)};
_.V.updateIconSet=function(){var J=this.hostElement.querySelector("#masthead");if(J){var c=_.gB(J),m=c.querySelector("g#yt-logo-updated");m&&(J=document.createElementNS("http://www.w3.org/2000/svg","defs"),J.appendChild(m.cloneNode(!0)),(c=c.querySelector("g#yt-logo-red-updated"))&&J.appendChild(c.cloneNode(!0)),this.initIconDefs("yt-logos-ext",J))}};
_.V.updateMastheadData=function(){var J=this,c,m,b,x,P;return _.N(function(p){if(p.nextAddress==1){c=J.data;m=J.hostElement.querySelector("#masthead");if(!m)return p.return();_.o3(J,function(){m.data=J.topbarData});
if(!J.get("response.topbar",c)||J.get("response.topbar.responseContext.maxAgeSeconds",c)===0)return p.jumpTo(0);if(b=_.BG().resolve(_.GQ))return _.K(p,b(),6);x=_.BG().resolve(_.mB);return _.K(p,x.put("service:topbar:fallback",new _.bG({innertubeResponse:J.get("response.topbar",c)})),0)}return(P=p.yieldResult)?_.K(p,P.put("service:topbar:fallback",new _.bG({innertubeResponse:J.get("response.topbar",c)})),0):p.jumpTo(0)})};
_.V.computeTopbarData=function(J){if(!J)return null;var c;return this.isShortsPage&&this.topbarData&&!_.L((c=J.response)==null?void 0:c.topbar,rN1)?this.topbarData:J.response&&"topbar"in J.response?_.L(J.response.topbar,rN1)||null:null};
_.V.onSetTheaterModeEnabled=function(J,c){this.isTheaterModeSession=c.enabled;this.setTheaterModeStyles(c.enabled)};
_.V.setTheaterModeStyles=function(){this.setMastheadTheme();this.iMaxTheaterMode&&this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode())};
_.V.onDarkModeToggledAction=function(){var J=_.NU(window.location.href);if(!_.ao2(J)){(J=!!_.Aa(window.location.href).themeRefresh)&&_.qz(new _.w3("themeRefresh param is in url.",this.getThemeSettingsToLog()));if(!J){nKR();J={themeRefresh:1};var c=_.BG().resolve(_.oO);if(c.isOnWatch()){var m,b;c=((m=c.getPlayerFromWatch())==null?void 0:(b=m.getPlayer())==null?void 0:b.getCurrentTime())||0;c>=1&&(J.time_continue=Math.floor(c))}_.H7()||_.wB()!=="USER_INTERFACE_THEME_DARK"||(J.theme="dark");_.dB(_.RP(window.location.href,
J))}_.w("web_appshell_refresh_trigger")&&_.mo.caches&&this.refreshAppShellResponse();m=_.Gv(window.location.href);_.PT(_.BG().resolve(_.M6),_.FR(m,"theme"))}};
_.V.onYtSignalActionToggleRestrictedModeOnAction=function(){this.setRestrictedMode(!0)};
_.V.onYtSignalActionToggleRestrictedModeOffAction=function(){this.setRestrictedMode(!1)};
_.V.onPlayerFullscreen=function(J){_.yM();this.playerFullscreen=J};
_.V.setRestrictedMode=function(J){var c=_.HA();_.iJ(0,58,J);c.save();_.BG().resolve(_.C9).reload()};
_.V.onPageChanged=function(J){J.detail.newPageType==="ytd-watch-flexy"||J.detail.newPageType==="ytd-watch-fixie"||J.detail.newPageType==="ytd-watch-grid"?this.ytdReduxBehavior.dispatch(_.Dv("WEB_PAGE_TYPE_WATCH")):J.detail.newPageType==="ytd-shorts"?this.ytdReduxBehavior.dispatch(_.Dv("WEB_PAGE_TYPE_SHORTS")):J.detail.newPageType==="ytd-browse"&&J.detail.newPageSubtype==="mini_app"?this.ytdReduxBehavior.dispatch(_.Dv("WEB_PAGE_TYPE_MINI_APP")):_.w("web_frosted_glass")&&J.detail.newPageType==="ytd-browse"?
this.ytdReduxBehavior.dispatch(_.Dv("WEB_PAGE_TYPE_BROWSE")):this.ytdReduxBehavior.dispatch(_.Dv("WEB_PAGE_TYPE_UNKNOWN"));J.detail.oldPageType&&this.setMastheadTheme();this.isFullWindowSession&&this.setFullscreen();this.updateIsInlinePreviewDisabled()};
_.V.onPageDataUpdated=function(){this.updateIsChannelOrPlaylistPage()};
_.V.onGuideToggleTap=function(){_.cA(this.hostElement,"yt-guide-toggle")};
_.V.onGuideToggleHover=function(){_.cA(this.hostElement,"yt-guide-hover")};
_.V.isTheaterMode=function(){return this.isWatchPage&&this.isTheaterModeSession};
_.V.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.V.setMastheadTheme=function(){var J=_.gB(this.hostElement).querySelector("#masthead");J&&(J.dark=J.isDarkThemeForced||this.isTheaterMode()||this.isAppDarkTheme(),J.isDarkThemeForced=!1)};
_.V.onRequestPanelModeChange=function(J,c){this.hideHeaderShadow=c.mode!=="seamed"};
_.V.onGuideOpenButtonHover=function(){this.renderGuide=!0};
_.V.onDrawerIronSelect=function(J){_.Ac(J).id==="guide"&&this.processDrawerIronSelect()};
_.V.processDrawerIronSelect=function(){this.ytRendererBehavior.markDirty();var J="closed";this.guide.opened&&(this.renderGuide=!0,this.guide.persistent||(J="opened"));_.cA(this.hostElement,"yt-autonav-pause-guide-"+J)};
_.V.onAddElementToApp=function(J){_.Bj(this.hostElement).appendChild(J.detail)};
_.V.onThrottledScroll=function(){var J=_.BG().resolve(_.oO).getCurrentPage();J&&(this.scrollAtTop=J.getScrollTop()<=0);this.mastheadHidden=this.canHideMasthead()};
_.V.canHideMasthead=function(){return this.scrollAtTop&&!!this.fullscreen};
_.V.setFullscreen=function(){if(_.w("external_fullscreen")||!this.isWatchPage){var J=_.w("kevlar_fullerscreen_root_only_killswitch")?!!_.yM():!!_.yM()&&_.yM()===document.documentElement;J=(this.isWatchPage||_.w("web_fullscreen_shorts")&&this.isShortsPage||this.isMiniAppPage)&&(J||this.isFullWindowSession);this.fullscreen!==J&&((this.fullscreen=J)&&_.bJ(this.hostElement,"yt-close-all-popups-action"),this.isShortsPage&&(_.Rc().dispatch(_.acF(this.fullscreen)),this.setFullscreenLoggingForShorts(this.fullscreen)),
this.updateScrollAndMasthead(this.isWatchPage&&this.fullscreen,this.isMiniAppPage&&this.fullscreen,this.isShortsPage&&this.fullscreen,this.isWatchPage&&this.isTheaterMode()),_.m9(this.hostElement,"yt-fullscreen-change-action",[this.fullscreen]))}};
_.V.setFullscreenLoggingForShorts=function(J){var c,m,b;return _.N(function(x){if(x.nextAddress==1)return _.K(x,(c=_.ep())==null?void 0:c.getPlayerPromise(),2);m=x.yieldResult;(b=m)==null||b.setAppFullscreen(J);_.tD(x)})};
_.V.updateMastheadCssHeight=function(){var J=this.mastheadHeight;this.fullscreen&&(J=0);_.V1(this.hostElement,{"--ytd-masthead-height":J+"px","--ytd-masthead-height-absolute":this.mastheadHeight+"px"})};
_.V.updateNetworkStatusBannerDisplayStatus=function(){var J="unset";this.fullscreen&&(J="none");_.V1(this.hostElement,{"--ytd-network-status-banner-display":J})};
_.V.updateNetworkStatusBannerCssHeight=function(){var J="unset";this.fullscreen&&(J="0px");_.V1(this.hostElement,{"--ytd-network-status-banner-max-height":J})};
_.V.updateScrollAndMasthead=function(J,c,m,b){this.iMaxTheaterMode||(b=!1);var x=_.BG().resolve(_.oO).getCurrentPage();J||c||b?(document.body.classList.add("no-scroll"),x.pageScrollElement=this.hostElement,this.scrolling=!0,this.hostElement.addEventListener("scroll",_.ME(this,this.onScroll)),x.setScrollTop(0),_.V1(this.hostElement,{"--ytd-app-fullerscreen-scrollbar-width":_.Dm()+"px"})):m?_.cA(this.hostElement,"yt-guide-close"):(this.isShortsPage&&_.cA(this.hostElement,"yt-guide-show"),document.body.classList.remove("no-scroll"),
x.pageScrollElement=null,this.scrolling=!1,this.hostElement.removeEventListener("scroll",_.ME(this,this.onScroll)));this.mastheadHidden=J||c||m;this.updateMastheadCssHeight();_.w("network_status_banner_display_none")?this.updateNetworkStatusBannerDisplayStatus():this.updateNetworkStatusBannerCssHeight()};
_.V.onScroll=function(){this.ytRendererBehavior.markDirty();this.scrollThrottle.fire()};
_.V.onYtNavigateAction=function(J){J=this.get("navigateAction.endpoint",J);_.cA(this.hostElement,"yt-navigate",{endpoint:J})};
_.V.onYtRegisterCreateFamilyDialog=function(){if(!this.hasCreateFamilyDialog){var J=document.createElement("yt-create-family-dialog");_.Bj(this.hostElement).appendChild(J);this.hasCreateFamilyDialog=!0}};
_.V.onSetPushNotificationsEnabledCommand=function(J){var c=this,m=_.L(J,wip);m&&typeof m.enabled==="boolean"&&(Notification.permission!=="granted"?jrp().then(function(){Notification.permission==="granted"?(qOR(!m.enabled).then(hkp),m.successAction&&_.Vq(c.hostElement,[m.successAction])):m.failureAction&&_.Vq(c.hostElement,[m.failureAction])}):(qOR(!m.enabled).then(hkp),m.successAction&&_.Vq(this.hostElement,[m.successAction])))};
_.V.onYtSignalActionEnableChromeNotifications=function(){FG1(!0)};
_.V.onOpenHotkeyDialog=function(){this.topbarData.hotkeyDialog&&this.ytOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:{hotkeyDialogRenderer:_.L(this.topbarData.hotkeyDialog,DPe)}}})};
_.V.onYtSignalActionShowKeyboardShortcutDialog=function(){_.m9(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);this.onOpenHotkeyDialog()};
_.V.onYtEndpointChangeHandler=function(J,c){var m=_.mm(_.K9);m.pendingPrefetchJob_&&(c=!(!c||c.autonav!="1"),m.pendingPrefetchJob_.resolve(J&&_.x7G(J)?_.VJf(J,c):""),m.pendingPrefetchJob_=null);_.m9(this.hostElement,"yt-pause-active-page-context");_.m9(this.hostElement,"ytd-log-youthere-nav");_.m9(this.hostElement,"yt-prepare-page-dispose")};
_.V.handleCommandWithCommandHandler=function(J,c){_.p7.instance.resolveCommand(J,{form:{element:c}})};
_.V.onYtTimedCommand=function(J){var c=this;J=_.L(J,Nye);var m=J.command;m&&_.T9(_.ft,function(){var b=_.L(m,_.$wQ);b?(_.p7.instance.resolveCommand(m),c.maybeLogGetAnswerRequestTick(b)):_.PA(c.hostElement,[m],c.hostElement)},J.timeoutMs||0)};
_.V.maybeLogGetAnswerRequestTick=function(J){J&&J.isFirstRequest&&(_.fX("search_overview_answer"),_.Y2("so_rq",void 0,"search_overview_answer"))};
_.V.onYtSignalActionSkipNavigation=function(){var J=_.BG().resolve(_.oO).getCurrentPage();_.jf(J)};
_.V.onYtSignalActionCopyDebugData=function(){p4f()};
_.V.handleEntityUpdateCommand=function(J){_.Ic(_.L(J,_.vdz).entityBatchUpdate,this.ytdReduxBehavior.store)};
_.V.logFlowLoggingEventCommand=function(J){if(J=_.L(J,_.Ri2))if(J.eventType==="FLOW_LOGGING_EVENT_CLASSIFICATION_START_EVENT"){var c=J.flowEventNamespace,m=J.flowEventType,b=J.flowType;b&&c&&m&&_.ygm(_.VS(c,m,J.flowEventMetadata),b)}else{c=_.Mr();m=J.flowEventNamespace;b=J.flowEventType;var x=J.flowType;x&&m&&b&&_.Pj(c,_.VS(m,b,J.flowEventMetadata),x,J.flowNonce)}};
_.V.onGuideTouchStart=function(){this.guideScrolledByTouch=!0};
_.V.onGuideTouchEnd=function(){this.guideScrolledByTouch=!1};
_.V.onTouchStart=function(){var J=_.ks();_.Y3()&&_.Ui(J.JSC$11134_screenManager,{visualElement:J.ve})};
_.V.handleSelectLanguageCommand=function(J){if(J=_.L(J,iHf).hl){var c=_.HA();c.set("hl",J);c.save();_.BG().resolve(_.C9).reload()}};
_.V.handleConfirmDialogEndpoint=function(J){(J=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(J))&&this.ytOpenPopupBehavior.openPopup(J)};
_.V.handleOpenPopupNavigationEndpoints=function(J,c){_.w("web_button_rework")&&(J=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(J))&&this.ytOpenPopupBehavior.openPopup(J,c)};
_.V.handleSaveCommandToSessionStorage=function(J){if(J=_.L(J,_.GU_)){var c=J.key;c&&J.command&&window.sessionStorage.setItem(c,JSON.stringify(J.command))}};
_.V.refreshAppShellResponse=function(){navigator.serviceWorker&&navigator.serviceWorker.ready.then(function(J){J&&J.active&&J.active.postMessage({type:"refresh_shell"})}).catch(function(J){J.name!=="SecurityError"&&_.Xc(J)})};
_.V.onDeviceThemeChanged=function(){var J=_.Th();_.iJ(_.HA(),185,J);_.HA().save()};
_.V.handleYtRegisterPromoCommand=function(J){if(_.L(J,Ty5)){var c=_.BG().resolve(_.oO).getCurrentPage()||this.hostElement;Yl5().registerPromoCommand(_.L(J,Ty5),c)}};
_.V.onYtNavigateHomeAction=function(){if(!_.w("kevlar_miniplayer_navigate_home_from_app_killswitch")){var J,c,m,b,x=(b=(J=this.topbarData)==null?void 0:(c=J.logo)==null?void 0:(m=c.topbarLogoRenderer)==null?void 0:m.endpoint)!=null?b:_.p$;this.ytComponentBehavior.resolveCommand(x)}};
_.V.onYtLocationCollectionCommand=function(J){hES(_.L(J,qI5))};
_.V.onYtGetLocationCommand=function(J){r0p(_.L(J,ZH4),this)};
_.V.updateRenderGuideFromBinding=function(J){this.renderGuide=J.detail.value};
_.V.updateGuidePersistentAndVisibleFromBinding=function(J){this.guidePersistentAndVisible=J.detail.value};
_.V.updateMiniGuideVisibleFromBinding=function(J){this.miniGuideVisible=J.detail.value};
_.V.onThemeSelected=function(J,c){var m=_.HA(),b=J||c?J:_.Th(),x=(b&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!b&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.ao2(_.NU(window.location.href));_.iJ(0,165,J);_.iJ(0,174,c);m.save();x&&_.m9(this.hostElement,"yt-dark-mode-toggled-action",[b]);_.m9(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.V.getCurrentTheme=function(){return _.rB()?this.isAppDarkTheme()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.wB()};
_.V.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.V.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.V.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
_.V.handleShowConsentPrimitive=function(J){var c=this,m,b;return _.N(function(x){if(x.nextAddress==1){try{m=(b=_.ep())==null?void 0:b.getPlayerPromise()}catch(P){}return _.K(x,Jc4(J,m),2)}_.m9(c.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);_.tD(x)})};
_.V.handleSelectActiveIdentityEndpointInternal=function(J){_.Sr();J=_.L(J,_.bVu);if(J!=null&&J.supportedTokens){J=_.M(J.supportedTokens);for(var c=J.next();!c.done;c=J.next())c=c.value,c.accountSigninToken&&_.dB(c.accountSigninToken.signinUrl,void 0,void 0,window.top)}};
_.V.handleUpdatePermissionRoleCommand=function(J){if(J=_.L(J,_.cWQ)){var c;this.hasDelegation=!((c=_.L(J.renderer,_.JWu))==null||!c.status)}};
_.V.registerViewTransitionTasks=function(){var J=this,c=_.BG().resolve(_.y6(_.a0));if(c){var m,b=(m=this.guide)==null?void 0:m.querySelector("#scrim"),x,P=(x=this.guide)==null?void 0:x.querySelector("#contentContainer");b&&P&&(m={beforeTransition:function(){var p;(p=J.guide)!=null&&p.persistent||(b.style.viewTransitionName="app-drawer-scrim",P.style.viewTransitionName="app-drawer-container")},
afterTransition:function(){var p;(p=J.guide)!=null&&p.persistent||(b.style.viewTransitionName="",P.style.viewTransitionName="")}},eW(c,"slide",m),eW(c,"zoom",m))}};
_.eE.Object.defineProperties(EV.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){return"youtube"}},
applyFrostedGlassToChipBar:{configurable:!0,enumerable:!0,get:function(){return _.w("web_frosted_glass")&&this.isHomePage&&this.chipBarIsSticky}}});
_.eE.Object.defineProperties(EV,{template:{configurable:!0,enumerable:!0,get:function(){if(qkR===void 0){var J=document.createElement("template");_.z(J,'\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');
J.content.insertBefore(_.B().content.cloneNode(!0),J.content.firstChild);qkR=J}J=qkR;return J}}});
EV.prototype.onOpenHotkeyDialog=EV.prototype.onOpenHotkeyDialog;EV.prototype.setFullscreen=EV.prototype.setFullscreen;EV.prototype.onAddElementToApp=EV.prototype.onAddElementToApp;EV.prototype.onDrawerIronSelect=EV.prototype.onDrawerIronSelect;EV.prototype.onGuideOpenButtonHover=EV.prototype.onGuideOpenButtonHover;EV.prototype.onRequestPanelModeChange=EV.prototype.onRequestPanelModeChange;EV.prototype.onPageDataUpdated=EV.prototype.onPageDataUpdated;EV.prototype.onPageChanged=EV.prototype.onPageChanged;
EV.prototype.onSetTheaterModeEnabled=EV.prototype.onSetTheaterModeEnabled;EV.prototype.updateMastheadData=EV.prototype.updateMastheadData;EV.prototype.onYtPageManagerAttached=EV.prototype.onYtPageManagerAttached;EV.prototype.observeGuideVisibility=EV.prototype.observeGuideVisibility;EV.prototype.guideIsVisibleButNotPersistentSelectorChanged=EV.prototype.guideIsVisibleButNotPersistentSelectorChanged;EV.prototype.isInlinePreviewEnabledChanged=EV.prototype.isInlinePreviewEnabledChanged;
EV.prototype.isWatchPageChanged=EV.prototype.isWatchPageChanged;EV.prototype.dispatchFrostedGlassMode=EV.prototype.dispatchFrostedGlassMode;_.O([_.f(_.fY),_.R("design:type",Object)],EV.prototype,"ytdReduxBehavior",void 0);_.O([_.f(_.Ci.YtEventForwardingBehavior),_.R("design:type",Object)],EV.prototype,"ytEventForwardingBehavior",void 0);_.O([_.f(_.M7.YtOpenPopupBehavior),_.R("design:type",Object)],EV.prototype,"ytOpenPopupBehavior",void 0);
_.O([_.f(_.yw.YtActionHandlerBehavior),_.R("design:type",Object)],EV.prototype,"ytActionHandlerBehavior",void 0);_.O([_.f({_noAccessors:!0,actionRouterIsRoot:!1,created:function(){this.actionRouter_=_.vO.getInstance();this.actionRouterNode=this.actionRouterIsRoot?document.body:this;this.onYtActionBoundListener_=this.onYtAction_.bind(this);this.actionRouterListenersRegistered_=!1;_.w("action_router_attached_only_killswitch")&&this.registerActionRouterEventListeners_()},
attached:function(){this.registerActionRouterEventListeners_()},
detached:function(){this.unregisterActionRouterEventListeners_()},
registerActionRouterEventListeners_:function(){if(!this.actionRouterListenersRegistered_){this.actionRouterListenersRegistered_=!0;var J;((J=this.actionRouterNode.hostElement)!=null?J:this.actionRouterNode).addEventListener("yt-action",this.onYtActionBoundListener_)}},
unregisterActionRouterEventListeners_:function(){this.actionRouterListenersRegistered_=!1;var J;((J=this.actionRouterNode.hostElement)!=null?J:this.actionRouterNode).removeEventListener("yt-action",this.onYtActionBoundListener_)},
onYtAction_:function(J){this.actionRouter_.handleAction(J.detail)}}),
_.R("design:type",Object)],EV.prototype,"ytActionRouterBehavior",void 0);_.O([_.f($hs.YtdAppBehavior),_.R("design:type",Object)],EV.prototype,"ytdAppBehavior",void 0);_.O([_.f(_.ts.YtEndpointBehavior),_.R("design:type",Object)],EV.prototype,"ytEndpointBehavior",void 0);_.O([_.f($p1.YtEndpointHandlerWithYpcBehavior),_.R("design:type",Object)],EV.prototype,"ytEndpointHandlerWithYpcBehavior",void 0);
_.O([_.f(Upu.YtLogYpcFlowCommandsBehavior),_.R("design:type",Object)],EV.prototype,"ytLogYpcFlowCommandsBehavior",void 0);_.O([_.f(_.g.YtRendererBehavior),_.R("design:type",Object)],EV.prototype,"ytRendererBehavior",void 0);_.O([_.f(_.qH.YtComponentBehavior),_.R("design:type",Object)],EV.prototype,"ytComponentBehavior",void 0);_.O([_.U({selector:_.Ixp}),_.R("design:type",Object)],EV.prototype,"tabGesturesIsActive",void 0);_.O([_.U(),_.R("design:type",Boolean)],EV.prototype,"renderGuide",void 0);
_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],EV.prototype,"guidePersistentAndVisible",void 0);_.O([_.U({selector:_.t3F}),_.R("design:type",Boolean)],EV.prototype,"guideIsVisibleButNotPersistent",void 0);_.O([_.U({value:!1,reflectToAttribute:!0}),_.R("design:type",Boolean)],EV.prototype,"standalone",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],EV.prototype,"miniGuideVisible",void 0);
_.O([_.U({selector:_.k3T}),_.R("design:type",Number)],EV.prototype,"miniplayerPlaybackState",void 0);_.O([_.U({selector:_.z2,reflectToAttribute:!0}),_.R("design:type",Boolean)],EV.prototype,"miniplayerIsActive",void 0);_.O([_.U({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.R("design:type",Boolean)],EV.prototype,"isInlinePreviewEnabled",void 0);_.O([_.U(),_.R("design:type",Boolean)],EV.prototype,"isInlinePreviewDisabled",void 0);
_.O([_.U({reflectToAttribute:!0,value:function(){return _.Ss("START_IN_FULL_WINDOW_MODE")}}),
_.R("design:type",Boolean)],EV.prototype,"mastheadHidden",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],EV.prototype,"playerFullscreen",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],EV.prototype,"deprecateFullerscreenUi",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],EV.prototype,"fullscreen",void 0);_.O([_.U({value:!1,reflectToAttribute:!0}),_.R("design:type",Boolean)],EV.prototype,"hideHeaderShadow",void 0);
_.O([_.U({value:{GUIDE_ALT_LABEL:_.CX("GUIDE_ALT_LABEL",void 0,"Guide")}}),_.R("design:type",Object)],EV.prototype,"menuStrings",void 0);_.O([_.U({computed:"computeTopbarData(data)"}),_.R("design:type",Object)],EV.prototype,"topbarData",void 0);_.O([_.U({selector:_.uW}),_.R("design:type",Boolean)],EV.prototype,"isWatchPage",void 0);_.O([_.U({selector:_.KMm,reflectToAttribute:!0}),_.R("design:type",Boolean)],EV.prototype,"isShortsPage",void 0);
_.O([_.U({selector:function(J){return J.ui.currentPageType==="WEB_PAGE_TYPE_MINI_APP"}}),
_.R("design:type",Boolean)],EV.prototype,"isMiniAppPage",void 0);_.O([_.U({selector:function(J){return J.ui.currentPageType==="WEB_PAGE_TYPE_BROWSE"}}),
_.R("design:type",Boolean)],EV.prototype,"isBrowsePage",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Boolean)],EV.prototype,"scrolling",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],EV.prototype,"hasDelegation",void 0);_.O([_.U({reflectToAttribute:!0,value:!1}),_.R("design:type",Boolean)],EV.prototype,"guideScrolledByTouch",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],EV.prototype,"darkerDarkTheme",void 0);
_.O([_.U(),_.R("design:type",Object)],EV.prototype,"isFrostedGlassInitialized",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],EV.prototype,"frostedGlassExp",void 0);_.O([_.U({selector:function(J){return J.ui.chipBarIsSticky}}),
_.R("design:type",Boolean)],EV.prototype,"chipBarIsSticky",void 0);_.O([_.U({computed:"computeIsHomePage(isBrowsePage, data)"}),_.R("design:type",Boolean)],EV.prototype,"isHomePage",void 0);_.O([_.U({reflectToAttribute:!0}),_.R("design:type",Object)],EV.prototype,"mastheadHiddenFocusWithinKillswitch",void 0);_.O([_.U(),_.R("design:type",Object)],EV.prototype,"ephemeralActionsEnabled",void 0);_.O([_.Qc("guide"),_.R("design:type",Object)],EV.prototype,"guide",void 0);
_.O([_.Qc("guide-service"),_.R("design:type",DHr)],EV.prototype,"guideService",void 0);_.O([_.Qc("guide-inner-content"),_.R("design:type",HTMLDivElement)],EV.prototype,"guideInnerContent",void 0);_.O([_.U({selector:_.iO3}),_.R("design:type",String)],EV.prototype,"frostedGlassMode",void 0);
_.O([_.NE("isFrostedGlassDisabled","isFrostedGlassInitialized","applyFrostedGlassToChipBar"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],EV.prototype,"dispatchFrostedGlassMode",null);_.O([_.U({computed:"computeIsFrostedGlassDisabled(isShortsPage, isMiniAppPage, isChannelOrPlaylistPage, isWatchPage)"}),_.R("design:type",Object)],EV.prototype,"isFrostedGlassDisabled",void 0);
_.O([_.NE("isWatchPage"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],EV.prototype,"isWatchPageChanged",null);_.O([_.q("isHomePage","chipBarIsSticky"),_.R("design:type",Boolean),_.R("design:paramtypes",[])],EV.prototype,"applyFrostedGlassToChipBar",null);_.O([_.U(),_.R("design:type",Object)],EV.prototype,"isChannelOrPlaylistPage",void 0);
_.O([_.kr("isInlinePreviewEnabled"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],EV.prototype,"isInlinePreviewEnabledChanged",null);_.O([_.NE("guideIsVisibleButNotPersistent"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],EV.prototype,"guideIsVisibleButNotPersistentSelectorChanged",null);
_.O([_.NE("guidePersistentAndVisible","miniGuideVisible"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],EV.prototype,"observeGuideVisibility",null);_.O([_.ps("attached"),_.R("design:type",Function),_.R("design:paramtypes",[Event]),_.R("design:returntype")],EV.prototype,"onYtPageManagerAttached",null);_.O([_.NE("data"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype",Promise)],EV.prototype,"updateMastheadData",null);
_.O([_.ps("yt-set-theater-mode-enabled"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent,Object]),_.R("design:returntype")],EV.prototype,"onSetTheaterModeEnabled",null);_.O([_.ps("yt-page-type-changed"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],EV.prototype,"onPageChanged",null);_.O([_.ps("yt-page-data-updated"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],EV.prototype,"onPageDataUpdated",null);
_.O([_.ps("yt-request-panel-mode-change"),_.R("design:type",Function),_.R("design:paramtypes",[Event,Object]),_.R("design:returntype")],EV.prototype,"onRequestPanelModeChange",null);_.O([_.ps("yt-guide-hover"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],EV.prototype,"onGuideOpenButtonHover",null);_.O([_.ps("app-drawer-transitioned"),_.R("design:type",Function),_.R("design:paramtypes",[Event]),_.R("design:returntype")],EV.prototype,"onDrawerIronSelect",null);
_.O([_.ps("yt-add-element-to-app"),_.R("design:type",Function),_.R("design:paramtypes",[CustomEvent]),_.R("design:returntype")],EV.prototype,"onAddElementToApp",null);_.O([_.ps("yt-set-fullerscreen-styles"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],EV.prototype,"setFullscreen",null);_.O([_.ps("yt-open-hotkey-dialog"),_.R("design:type",Function),_.R("design:paramtypes",[]),_.R("design:returntype")],EV.prototype,"onOpenHotkeyDialog",null);
EV=_.O([_.E({is:"ytd-app"})],EV);_.f$().processSignal("eor");
_.qi();
}catch(e){_._DumpException(e)}
}).call(this,this.default_kevlar_base);
// Google Inc.
